From 228cd80898f1a36a5b2ad9021cd01111ea40f998 Mon Sep 17 00:00:00 2001 From: tony062017 Date: Tue, 19 Mar 2024 08:45:27 +0000 Subject: [PATCH 01/30] merge --- Lib/Protocols/IdAuthenticationNTLM.pas | 1 - Lib/Protocols/IdNTLM.pas | 26 +- Lib/Protocols/IdResourceStringsOpenSSL.pas | 30 + Lib/Protocols/IdSSLOpenSSL.pas | 804 +- Lib/Protocols/IdSSLOpenSSLConsts.pas | 78 + .../IdSSLOpenSSLExceptionHandlers.pas | 189 + Lib/Protocols/IdSSLOpenSSLHeaders.pas | 27009 ---------------- Lib/Protocols/IdSSLOpenSSLHeaders_static.pas | 1079 - Lib/Protocols/IdSSLOpenSSLLoader.pas | 372 + Lib/Protocols/IdSSLOpenSSLUtils.pas | 1088 - Lib/Protocols/indyprotocolsfpc.pas | 483 +- .../opensslHdrs/AllOpenSSLHeaders.pas | 84 + .../opensslHdrs/IdOpenSSLHeaders_aes.pas | 203 + .../opensslHdrs/IdOpenSSLHeaders_asn1.pas | 2551 ++ .../opensslHdrs/IdOpenSSLHeaders_asn1_mac.pas | 44 + .../opensslHdrs/IdOpenSSLHeaders_asn1err.pas | 331 + .../opensslHdrs/IdOpenSSLHeaders_asn1t.pas | 1059 + .../opensslHdrs/IdOpenSSLHeaders_async.pas | 751 + .../opensslHdrs/IdOpenSSLHeaders_asyncerr.pas | 120 + .../opensslHdrs/IdOpenSSLHeaders_bio.pas | 3840 +++ .../opensslHdrs/IdOpenSSLHeaders_bioerr.pas | 202 + .../opensslHdrs/IdOpenSSLHeaders_blowfish.pas | 161 + .../opensslHdrs/IdOpenSSLHeaders_bn.pas | 1317 + .../opensslHdrs/IdOpenSSLHeaders_bnerr.pas | 178 + .../opensslHdrs/IdOpenSSLHeaders_buffer.pas | 137 + .../IdOpenSSLHeaders_buffererr.pas | 108 + .../opensslHdrs/IdOpenSSLHeaders_camellia.pas | 179 + .../opensslHdrs/IdOpenSSLHeaders_cast.pas | 148 + .../opensslHdrs/IdOpenSSLHeaders_cmac.pas | 148 + .../opensslHdrs/IdOpenSSLHeaders_cms.pas | 784 + .../opensslHdrs/IdOpenSSLHeaders_cmserr.pas | 275 + .../opensslHdrs/IdOpenSSLHeaders_comp.pas | 153 + .../opensslHdrs/IdOpenSSLHeaders_comperr.pas | 117 + .../opensslHdrs/IdOpenSSLHeaders_conf.pas | 392 + .../opensslHdrs/IdOpenSSLHeaders_conf_api.pas | 146 + .../opensslHdrs/IdOpenSSLHeaders_conferr.pas | 154 + .../opensslHdrs/IdOpenSSLHeaders_crypto.pas | 3337 ++ .../IdOpenSSLHeaders_cryptoerr.pas | 135 + .../opensslHdrs/IdOpenSSLHeaders_cterr.pas | 154 + .../opensslHdrs/IdOpenSSLHeaders_des.pas | 708 + .../opensslHdrs/IdOpenSSLHeaders_dh.pas | 2233 ++ .../opensslHdrs/IdOpenSSLHeaders_dherr.pas | 157 + .../opensslHdrs/IdOpenSSLHeaders_dsa.pas | 584 + .../opensslHdrs/IdOpenSSLHeaders_dsaerr.pas | 145 + .../opensslHdrs/IdOpenSSLHeaders_ebcdic.pas | 109 + .../opensslHdrs/IdOpenSSLHeaders_ec.pas | 2723 ++ .../opensslHdrs/IdOpenSSLHeaders_ecerr.pas | 348 + .../opensslHdrs/IdOpenSSLHeaders_engine.pas | 1448 + .../IdOpenSSLHeaders_engineerr.pas | 184 + .../opensslHdrs/IdOpenSSLHeaders_err.pas | 820 + .../opensslHdrs/IdOpenSSLHeaders_evp.pas | 10571 ++++++ .../opensslHdrs/IdOpenSSLHeaders_evperr.pas | 282 + .../opensslHdrs/IdOpenSSLHeaders_hmac.pas | 155 + .../opensslHdrs/IdOpenSSLHeaders_idea.pas | 153 + .../opensslHdrs/IdOpenSSLHeaders_kdferr.pas | 133 + .../opensslHdrs/IdOpenSSLHeaders_obj_mac.pas | 4102 +++ .../opensslHdrs/IdOpenSSLHeaders_objects.pas | 501 + .../IdOpenSSLHeaders_objectserr.pas | 120 + .../opensslHdrs/IdOpenSSLHeaders_ocsperr.pas | 151 + .../opensslHdrs/IdOpenSSLHeaders_ossl_typ.pas | 545 + .../opensslHdrs/IdOpenSSLHeaders_pem.pas | 723 + .../opensslHdrs/IdOpenSSLHeaders_pemerr.pas | 176 + .../opensslHdrs/IdOpenSSLHeaders_pkcs12.pas | 1237 + .../opensslHdrs/IdOpenSSLHeaders_pkcs7.pas | 663 + .../opensslHdrs/IdOpenSSLHeaders_pkcs7err.pas | 181 + .../opensslHdrs/IdOpenSSLHeaders_rand.pas | 205 + .../opensslHdrs/IdOpenSSLHeaders_randerr.pas | 172 + .../opensslHdrs/IdOpenSSLHeaders_rsa.pas | 951 + .../opensslHdrs/IdOpenSSLHeaders_rsaerr.pas | 245 + .../opensslHdrs/IdOpenSSLHeaders_sha.pas | 272 + .../opensslHdrs/IdOpenSSLHeaders_srtp.pas | 128 + .../opensslHdrs/IdOpenSSLHeaders_ssl.pas | 14819 +++++++++ .../opensslHdrs/IdOpenSSLHeaders_ssl3.pas | 332 + .../opensslHdrs/IdOpenSSLHeaders_sslerr.pas | 846 + .../opensslHdrs/IdOpenSSLHeaders_stack.pas | 2234 ++ .../opensslHdrs/IdOpenSSLHeaders_storeerr.pas | 170 + .../opensslHdrs/IdOpenSSLHeaders_tls1.pas | 1591 + .../opensslHdrs/IdOpenSSLHeaders_ts.pas | 1517 + .../opensslHdrs/IdOpenSSLHeaders_tserr.pas | 205 + .../opensslHdrs/IdOpenSSLHeaders_txt_db.pas | 153 + .../opensslHdrs/IdOpenSSLHeaders_ui.pas | 853 + .../opensslHdrs/IdOpenSSLHeaders_uierr.pas | 143 + .../opensslHdrs/IdOpenSSLHeaders_whrlpool.pas | 140 + .../opensslHdrs/IdOpenSSLHeaders_x509.pas | 4858 +++ .../opensslHdrs/IdOpenSSLHeaders_x509_vfy.pas | 3917 +++ .../opensslHdrs/IdOpenSSLHeaders_x509err.pas | 208 + .../opensslHdrs/IdOpenSSLHeaders_x509v3.pas | 1469 + 87 files changed, 83352 insertions(+), 29595 deletions(-) create mode 100644 Lib/Protocols/IdSSLOpenSSLConsts.pas create mode 100644 Lib/Protocols/IdSSLOpenSSLExceptionHandlers.pas delete mode 100644 Lib/Protocols/IdSSLOpenSSLHeaders.pas delete mode 100644 Lib/Protocols/IdSSLOpenSSLHeaders_static.pas create mode 100644 Lib/Protocols/IdSSLOpenSSLLoader.pas delete mode 100644 Lib/Protocols/IdSSLOpenSSLUtils.pas create mode 100644 Lib/Protocols/opensslHdrs/AllOpenSSLHeaders.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_aes.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1_mac.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1err.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1t.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_async.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asyncerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bio.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bioerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_blowfish.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bn.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bnerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_buffer.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_buffererr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_camellia.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cast.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cmac.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cms.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cmserr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_comp.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_comperr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conf.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conf_api.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conferr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_crypto.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cryptoerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cterr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_des.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dh.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dherr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dsa.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dsaerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ebcdic.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ec.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ecerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_engine.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_engineerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_err.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_evp.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_evperr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_hmac.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_idea.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_kdferr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_obj_mac.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_objects.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_objectserr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ocsperr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ossl_typ.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pem.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pemerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs12.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs7.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs7err.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rand.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_randerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rsa.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rsaerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_sha.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_srtp.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ssl.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ssl3.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_sslerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_stack.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_storeerr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_tls1.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ts.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_tserr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_txt_db.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ui.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_uierr.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_whrlpool.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509_vfy.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509err.pas create mode 100644 Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509v3.pas diff --git a/Lib/Protocols/IdAuthenticationNTLM.pas b/Lib/Protocols/IdAuthenticationNTLM.pas index b0f38f95b..191109e6a 100644 --- a/Lib/Protocols/IdAuthenticationNTLM.pas +++ b/Lib/Protocols/IdAuthenticationNTLM.pas @@ -82,7 +82,6 @@ implementation IdCoderMIME, IdResourceStringsOpenSSL, {.$IFDEF USE_OPENSSL} - IdSSLOpenSSLHeaders, IdSSLOpenSSL, {.$ENDIF} IdNTLM, diff --git a/Lib/Protocols/IdNTLM.pas b/Lib/Protocols/IdNTLM.pas index db7a9f851..ba59563fb 100644 --- a/Lib/Protocols/IdNTLM.pas +++ b/Lib/Protocols/IdNTLM.pas @@ -43,6 +43,7 @@ interface {$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} uses IdGlobal, @@ -284,12 +285,9 @@ implementation IdGlobalProtocols, IdHash, IdHashMessageDigest, - IdCoderMIME - {$IFNDEF DOTNET} - {.$IFDEF USE_OPENSSL} - , IdSSLOpenSSLHeaders - {.$ENDIF} - {$ENDIF} + IdCoderMIME, + IdSSLOpenSSLLoader, + IdOpenSSLHeaders_des {$IFDEF HAS_GENERICS_TArray_Copy} {$IFDEF HAS_UNIT_Generics_Collections} , System.Generics.Collections @@ -298,7 +296,7 @@ implementation ; type - Pdes_key_schedule = ^des_key_schedule; + Pdes_key_schedule = ^DES_key_schedule; const cProtocolStr: array[1..8] of Byte = (Ord('N'),Ord('T'),Ord('L'),Ord('M'),Ord('S'),Ord('S'),Ord('P'),$0); {Do not Localize} @@ -331,12 +329,14 @@ function NTLMFunctionsLoaded : Boolean; //{$IFNDEF USE_OPENSSL}{$IFDEF USE_INLINE} inline; {$ENDIF}{$ENDIF} begin {.$IFDEF USE_OPENSSL} - Result := IdSSLOpenSSLHeaders.Load; + Result := GetOpenSSLLoader.Load; + {$IFNDEF USE_EXTERNAL_LIBRARY} if Result then begin Result := Assigned(DES_set_odd_parity) and Assigned(DES_set_key) and Assigned(DES_ecb_encrypt); end; + {$ENDIF} {.$ELSE} //Result := False; {.$ENDIF} @@ -378,13 +378,13 @@ procedure calc_resp(keys: PDES_cblock; const ANonce: TIdBytes; results: Pdes_key begin setup_des_key(keys^, ks); Move(ANonce[0], nonce, 8); - des_ecb_encrypt(@nonce, Pconst_DES_cblock(results), ks, DES_ENCRYPT); + des_ecb_encrypt(@nonce, PDES_cblock(results), @ks, DES_ENCRYPT); setup_des_key(PDES_cblock(PtrUInt(keys) + 7)^, ks); - des_ecb_encrypt(@nonce, Pconst_DES_cblock(PtrUInt(results) + 8), ks, DES_ENCRYPT); + des_ecb_encrypt(@nonce, PDES_cblock(PtrUInt(results) + 8), @ks, DES_ENCRYPT); setup_des_key(PDES_cblock(PtrUInt(keys) + 14)^, ks); - des_ecb_encrypt(@nonce, Pconst_DES_cblock(PtrUInt(results) + 16), ks, DES_ENCRYPT); + des_ecb_encrypt(@nonce, PDES_cblock(PtrUInt(results) + 16), @ks, DES_ENCRYPT); end; Const @@ -419,10 +419,10 @@ function SetupLanManagerPassword(const APassword: String; const ANonce: TIdBytes //* create LanManager hashed password */ setup_des_key(pdes_cblock(@lm_pw[0])^, ks); - des_ecb_encrypt(@magic, Pconst_DES_cblock(@lm_hpw[0]), ks, DES_ENCRYPT); + des_ecb_encrypt(@magic, PDES_cblock(@lm_hpw[0]), @ks, DES_ENCRYPT); setup_des_key(pdes_cblock(PtrUInt(@lm_pw[0]) + 7)^, ks); - des_ecb_encrypt(@magic, Pconst_DES_cblock(PtrUInt(@lm_hpw[0]) + 8), ks, DES_ENCRYPT); + des_ecb_encrypt(@magic, PDES_cblock(PtrUInt(@lm_hpw[0]) + 8), @ks, DES_ENCRYPT); FillChar(lm_hpw[16], 5, 0); diff --git a/Lib/Protocols/IdResourceStringsOpenSSL.pas b/Lib/Protocols/IdResourceStringsOpenSSL.pas index b6bc296e3..5a28b92a9 100644 --- a/Lib/Protocols/IdResourceStringsOpenSSL.pas +++ b/Lib/Protocols/IdResourceStringsOpenSSL.pas @@ -1,3 +1,28 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ Originally written by: Fabian S. Biehn } +{ fbiehn@aagon.com (German & English) } +{ } +{ Contributers: } +{ Here could be your name } +{ } +{******************************************************************************} unit IdResourceStringsOpenSSL; interface @@ -15,6 +40,10 @@ interface RSOSSLConnectionDropped = 'SSL connection has dropped.'; RSOSSLCertificateLookup = 'SSL certificate request error.'; RSOSSLInternal = 'SSL library internal error.'; + ROSSLCantGetSSLVersionNo = 'Unable to determine SSL Library Version number'; + ROSSLAPIFunctionNotPresent = 'OpenSSL API Function/Procedure %s not found in SSL Library'; + ROSUnrecognisedLibName = 'Unrecognised SSL Library name (%s)'; + ROSCertificateNotAddedToStore = 'Unable to add X.509 Certificate to cert store'; //callback where strings RSOSSLAlert = '%s Alert'; RSOSSLReadAlert = '%s Read Alert'; @@ -29,6 +58,7 @@ interface RSOSSLConnectExit = 'Connect Exit'; RSOSSLHandshakeStart = 'Handshake Start'; RSOSSLHandshakeDone = 'Handshake Done'; + RSOSSLProcLoadErrorHdr = 'The following functions were not loaded'; implementation diff --git a/Lib/Protocols/IdSSLOpenSSL.pas b/Lib/Protocols/IdSSLOpenSSL.pas index c5124a57d..6fb2aa46b 100644 --- a/Lib/Protocols/IdSSLOpenSSL.pas +++ b/Lib/Protocols/IdSSLOpenSSL.pas @@ -4,18 +4,58 @@ $Revision$ $DateUTC$ $Id$ + } + {******************************************************************************} + { } + { Indy (Internet Direct) - Internet Protocols Simplified } + { } + { https://www.indyproject.org/ } + { https://gitter.im/IndySockets/Indy } + { } + {******************************************************************************} + { } + { This file is part of the Indy (Internet Direct) project, and is offered } + { under the dual-licensing agreement described on the Indy website. } + { (https://www.indyproject.org/license/) } + { } + { Copyright: } + { (c) 1993-2024, the Indy Pit Crew. All rights reserved. } + { } + {******************************************************************************} + { } + { Contributers: } + { Here could be your name } + { } + {******************************************************************************} - This file is part of the Indy (Internet Direct) project, and is offered - under the dual-licensing agreement described on the Indy website. - (http://www.indyproject.org/) - - Copyright: - (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserved. -} { $Log$ } { + Rev 1.41 22/02/2024 AWhyman + a. Property SSLProtocolVersion added to TSocket. This returns the SSL/TLS protocol + version that was negotiated when the session was created. + + b. SSL Headers now loaded using the IdOpenSSLLoader unit in order to support + OpenSSL 3 and later. + + c. New property TIdSSLOptions.UseSystemRootCertificateStore. Defaults to true. + If true then SSL_CTX_set_default_verify_paths is called. This causes the + certs in OPENSSLDIR/certs to be used for certificate verification + + d. Windows only: if OPENSSL_DONT_USE_WINDOWS_CERT_STORE not defined and + TIdSSLOptions.UseSystemRootCertificateStore is true then + Windows Root Certificate store is also loaded into SSL Context X.509 certificate store. + + e. Direct access to OpenSSL internal data structures (exposed in earlier versions, + but now opaque (typically 1.1.1 onwards) now uses getter and setter functions + provided by later versions of OpenSSL libraries with forwards compatibility + functions (in appropriate SSL Header unit) used to provide getters and setters + for earlier versions. + + f. New functions: OpenSSLVersion and OpenSSLDir. These are information access + that return, respectively, the OpenSSL Version string and the OpenSSL Directory. + Rev 1.40 03/11/2009 09:04:00 AWinkelsdorf Implemented fix for Vista+ SSL_Read and SSL_Write to allow connection timeout. @@ -200,6 +240,13 @@ interface {$I IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{$IFDEF WINDOWS} +{$IFNDEF OPENSSL_DONT_USE_WINDOWS_CERT_STORE} +{$DEFINE USE_WINDOWS_CERT_STORE} +{$ENDIF} +{$ENDIF} {$IFNDEF USE_OPENSSL} {$message error Should not compile if USE_OPENSSL is not defined!!!} @@ -219,7 +266,6 @@ interface IdException, IdStackConsts, IdSocketHandle, - IdSSLOpenSSLHeaders, IdComponent, IdIOHandler, IdGlobalProtocols, @@ -231,10 +277,15 @@ interface IdSSL, IdSocks, IdScheduler, - IdYarn; + IdYarn, + IdSSLOpenSSLExceptionHandlers, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_ssl, + IdOpenSSLHeaders_evp; type - TIdSSLVersion = (sslvSSLv2, sslvSSLv23, sslvSSLv3, sslvTLSv1,sslvTLSv1_1,sslvTLSv1_2); + TIdSSLVersion = (sslUnknown,sslvSSLv2, sslvSSLv23, sslvSSLv3, sslvTLSv1,sslvTLSv1_1, + sslvTLSv1_2, sslvTLSv1_3); TIdSSLVersions = set of TIdSSLVersion; TIdSSLMode = (sslmUnassigned, sslmClient, sslmServer, sslmBoth); TIdSSLVerifyMode = (sslvrfPeer, sslvrfFailIfNoPeerCert, sslvrfClientOnce); @@ -243,8 +294,8 @@ interface TIdSSLAction = (sslRead, sslWrite); const - DEF_SSLVERSION = sslvTLSv1; - DEF_SSLVERSIONS = [sslvTLSv1]; + DEF_SSLVERSION = sslvTLSv1_2; + DEF_SSLVERSIONS = [sslvTLSv1_3]; P12_FILETYPE = 3; MAX_SSL_PASSWORD_LENGTH = 128; @@ -278,7 +329,11 @@ TIdSSLCipher = class; TVerifyPeerEvent = function(Certificate: TIdX509; AOk: Boolean; ADepth, AError: Integer): Boolean of object; TIOHandlerNotify = procedure(ASender: TIdSSLIOHandlerSocketOpenSSL) of object; + { TIdSSLOptions } + TIdSSLOptions = class(TPersistent) + private + fUseSystemRootCertificateStore : boolean; protected fsRootCertFile, fsCertFile, @@ -303,17 +358,27 @@ TIdSSLOptions = class(TPersistent) property CertFile: String read fsCertFile write fsCertFile; property KeyFile: String read fsKeyFile write fsKeyFile; property DHParamsFile: String read fsDHParamsFile write fsDHParamsFile; - property Method: TIdSSLVersion read fMethod write SetMethod default DEF_SSLVERSION; - property SSLVersions : TIdSSLVersions read fSSLVersions write SetSSLVersions default DEF_SSLVERSIONS; + property Method: TIdSSLVersion read fMethod write SetMethod default DEF_SSLVERSION; {ignored with OpenSSL 1.1.0 or later} + property SSLVersions : TIdSSLVersions read fSSLVersions + write SetSSLVersions + default DEF_SSLVERSIONS; {SSLVersions is only used to determine min version with OpenSSL 1.1.0 or later} property Mode: TIdSSLMode read fMode write fMode; property VerifyMode: TIdSSLVerifyModeSet read fVerifyMode write fVerifyMode; property VerifyDepth: Integer read fVerifyDepth write fVerifyDepth; // property VerifyFile: String read fVerifyFile write fVerifyFile; property VerifyDirs: String read fVerifyDirs write fVerifyDirs; + property UseSystemRootCertificateStore: boolean read fUseSystemRootCertificateStore write fUseSystemRootCertificateStore default true; property CipherList: String read fCipherList write fCipherList; end; + { TIdSSLContext } + TIdSSLContext = class(TObject) + private + fUseSystemRootCertificateStore : boolean; + {$IFDEF USE_WINDOWS_CERT_STORE} + procedure LoadWindowsCertStore; + {$ENDIF} protected fMethod: TIdSSLVersion; fSSLVersions : TIdSSLVersions; @@ -359,13 +424,20 @@ TIdSSLContext = class(TObject) property DHParamsFile: String read fsDHParamsFile write fsDHParamsFile; // property VerifyMode: TIdSSLVerifyModeSet read GetVerifyMode write SetVerifyMode; // property VerifyFile: String read fVerifyFile write fVerifyFile; + property UseSystemRootCertificateStore: boolean read fUseSystemRootCertificateStore write fUseSystemRootCertificateStore; property VerifyDirs: String read fVerifyDirs write fVerifyDirs; property VerifyMode: TIdSSLVerifyModeSet read fVerifyMode write fVerifyMode; property VerifyDepth: Integer read fVerifyDepth write fVerifyDepth; end; + { TIdSSLSocket } + TIdSSLSocket = class(TObject) + private + fSession: PSSL_SESSION; + function GetProtocolVersion: TIdSSLVersion; + function GetSSLProtocolVersionStr: string; protected {$IFDEF USE_OBJECT_ARC}[Weak]{$ENDIF} fParent: TObject; fPeerCert: TIdX509; @@ -390,6 +462,8 @@ TIdSSLSocket = class(TObject) property PeerCert: TIdX509 read GetPeerCert; property Cipher: TIdSSLCipher read GetSSLCipher; property HostName: String read fHostName; + property SSLProtocolVersion: TIdSSLVersion read GetProtocolVersion; + property SSLProtocolVersionStr: string read GetSSLProtocolVersionStr; end; // TIdSSLIOHandlerSocketOpenSSL and TIdServerIOHandlerSSLOpenSSL have some common @@ -671,6 +745,7 @@ function LoadOpenSSLLibrary: Boolean; procedure UnLoadOpenSSLLibrary; function OpenSSLVersion: string; +function OpenSSLDir: string; implementation @@ -696,7 +771,123 @@ implementation IdCustomTransparentProxy, IdURI, SysUtils, - SyncObjs; + SyncObjs, + IdOpenSSLHeaders_x509, + IdOpenSSLHeaders_x509_vfy, + IdOpenSSLHeaders_pkcs12, + IdOpenSSLHeaders_sslerr, + IdOpenSSLHeaders_err, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_pem, + IdOpenSSLHeaders_stack, + IdOpenSSLHeaders_dh, + IdOpenSSLHeaders_crypto, + IdOpenSSLHeaders_tls1, + IdOpenSSLHeaders_objects, + IdOpenSSLHeaders_ssl3, + IdSSLOpenSSLConsts, + IdSSLOpenSSLLoader; + +type + TRAND_bytes = function(buf : PIdAnsiChar; num : integer) : integer; cdecl; + TRAND_pseudo_bytes = function(buf : PIdAnsiChar; num : integer) : integer; cdecl; + TRAND_seed = procedure(buf : PIdAnsiChar; num : integer); cdecl; + TRAND_add = procedure(buf : PIdAnsiChar; num : integer; entropy : integer); cdecl; + TRAND_status = function() : integer; cdecl; + {$IFDEF SYS_WIN} + TRAND_event = function(iMsg : UINT; wp : wparam; lp : lparam) : integer; cdecl; + {$ENDIF} + TRAND_cleanup = procedure; cdecl; + +var + _RAND_cleanup : TRAND_cleanup = nil; + _RAND_bytes : TRAND_bytes = nil; + _RAND_pseudo_bytes : TRAND_pseudo_bytes = nil; + _RAND_seed : TRAND_seed = nil; + _RAND_add : TRAND_add = nil; + _RAND_status : TRAND_status = nil; + {$IFDEF SYS_WIN} + // LIBEAY functions - open SSL 0.9.6a + _RAND_screen : procedure cdecl = nil; + _RAND_event : TRAND_event = nil; + {$ENDIF} + + function UTC_Time_Decode(UCTtime : PASN1_UTCTIME; var year, month, day, hour, min, sec: Word; + var tz_hour, tz_min: Integer): Integer; + var + i, tz_dir: Integer; + time_str: string; + {$IFNDEF USE_MARSHALLED_PTRS} + {$IFNDEF STRING_IS_ANSI} + LTemp: AnsiString; + {$ENDIF} + {$ENDIF} + begin + Result := 1; + if UCTtime^.length < 12 then begin + Exit; + end; + {$IFDEF USE_MARSHALLED_PTRS} + time_str := TMarshal.ReadStringAsAnsi(TPtrWrapper.Create(UCTtime^.data), UCTtime^.length); + {$ELSE} + {$IFDEF STRING_IS_ANSI} + SetString(time_str, PAnsiChar(UCTtime^.data), UCTtime^.length); + {$ELSE} + SetString(LTemp, PChar(UCTtime^.data), UCTtime^.length); + // TODO: do we need to use SetCodePage() here? + time_str := String(LTemp); // explicit convert to Unicode + {$ENDIF} + {$ENDIF} + // Check if first 12 chars are numbers + if not IsNumeric(time_str, 12) then begin + Exit; + end; + // Convert time from string to number + year := IndyStrToInt(Copy(time_str, 1, 2)) + 1900; + month := IndyStrToInt(Copy(time_str, 3, 2)); + day := IndyStrToInt(Copy(time_str, 5, 2)); + hour := IndyStrToInt(Copy(time_str, 7, 2)); + min := IndyStrToInt(Copy(time_str, 9, 2)); + sec := IndyStrToInt(Copy(time_str, 11, 2)); + // Fix year. This function is Y2k but isn't compatible with Y2k5 :-( {Do not Localize} + if year < 1950 then begin + Inc(year, 100); + end; + // Check TZ + tz_hour := 0; + tz_min := 0; + if CharIsInSet(time_str, 13, '-+') then begin {Do not Localize} + tz_dir := iif(CharEquals(time_str, 13, '-'), -1, 1); {Do not Localize} + for i := 14 to 18 do begin // Check if numbers are numbers + if i = 16 then begin + Continue; + end; + if not IsNumeric(time_str[i]) then begin + Exit; + end; + end; + tz_hour := IndyStrToInt(Copy(time_str, 14, 15)) * tz_dir; + tz_min := IndyStrToInt(Copy(time_str, 17, 18)) * tz_dir; + end; + end; + + procedure InitializeRandom; + begin + {$IFDEF SYS_WIN} + if Assigned(_RAND_screen) then begin + _RAND_screen; + end; + {$ENDIF} + end; + + procedure CleanupRandom; + begin + if Assigned(_RAND_cleanup) then begin + _RAND_cleanup; + end; + end; + + type // TODO: TIdThreadSafeObjectList instead? @@ -1031,6 +1222,7 @@ function IndySSL_CTX_use_PrivateKey_file_PKCS12(ctx: PSSL_CTX; const AFileName: CertChain: PSTACK_OF_X509; LPassword: array of TIdAnsiChar; LPasswordPtr: PIdAnsiChar; + default_passwd_cb: pem_password_cb; begin Result := 0; @@ -1056,8 +1248,9 @@ function IndySSL_CTX_use_PrivateKey_file_PKCS12(ctx: PSSL_CTX; const AFileName: SetLength(LPassword, MAX_SSL_PASSWORD_LENGTH+1); LPassword[MAX_SSL_PASSWORD_LENGTH] := TIdAnsiChar(0); LPasswordPtr := PIdAnsiChar(LPassword); - if Assigned(ctx^.default_passwd_callback) then begin - ctx^.default_passwd_callback(LPasswordPtr, MAX_SSL_PASSWORD_LENGTH, 0, ctx^.default_passwd_callback_userdata); + default_passwd_cb := SSL_CTX_get_default_passwd_cb(ctx); + if Assigned(default_passwd_cb) then begin + default_passwd_cb(LPasswordPtr, MAX_SSL_PASSWORD_LENGTH, 0, SSL_CTX_get_default_passwd_cb_userdata(ctx)); // TODO: check return value for failure end else begin // TODO: call PEM_def_callback(), like PEM_read_bio_X509() does @@ -1102,6 +1295,7 @@ function IndySSL_CTX_use_certificate_file_PKCS12(ctx: PSSL_CTX; const AFileName: CertChain: PSTACK_OF_X509; LPassword: array of TIdAnsiChar; LPasswordPtr: PIdAnsiChar; + default_passwd_callback: pem_password_cb; begin Result := 0; @@ -1127,8 +1321,9 @@ function IndySSL_CTX_use_certificate_file_PKCS12(ctx: PSSL_CTX; const AFileName: SetLength(LPassword, MAX_SSL_PASSWORD_LENGTH+1); LPassword[MAX_SSL_PASSWORD_LENGTH] := TIdAnsiChar(0); LPasswordPtr := PIdAnsiChar(LPassword); - if Assigned(ctx^.default_passwd_callback) then begin - ctx^.default_passwd_callback(LPasswordPtr, MAX_SSL_PASSWORD_LENGTH, 0, ctx^.default_passwd_callback_userdata); + default_passwd_callback := SSL_CTX_get_default_passwd_cb(ctx); + if Assigned(default_passwd_callback) then begin + default_passwd_callback(LPasswordPtr, MAX_SSL_PASSWORD_LENGTH, 0, SSL_CTX_get_default_passwd_cb_userdata(ctx)); // TODO: check return value for failure end else begin // TODO: call PEM_def_callback(), like PEM_read_bio_X509() does @@ -1175,7 +1370,7 @@ function IndySSL_CTX_use_certificate_file_PKCS12(ctx: PSSL_CTX; const AFileName: Pascal and made some modifications so that it will handle Unicode filenames. } -{$IFDEF STRING_IS_UNICODE} +{$IFDEF STRING_IS_UNICODE} {UCS-2 implied} {$IFDEF WINDOWS} @@ -1189,30 +1384,6 @@ function Indy_unicode_X509_load_cert_file(ctx: PX509_LOOKUP; const AFileName: St uses Unicode filenames instead of ASCII or UTF8. It is not meant to be portable at all. } -function by_Indy_unicode_file_ctrl(ctx: PX509_LOOKUP; cmd: TIdC_INT; - const argc: PAnsiChar; argl: TIdC_LONG; out ret: PAnsiChar): TIdC_INT; - cdecl; forward; - -const - Indy_x509_unicode_file_lookup: X509_LOOKUP_METHOD = - ( - name: PAnsiChar('Load file into cache'); - new_item: nil; // * new */ - free: nil; // * free */ - init: nil; // * init */ - shutdown: nil; // * shutdown */ - ctrl: by_Indy_unicode_file_ctrl; // * ctrl */ - get_by_subject: nil; // * get_by_subject */ - get_by_issuer_serial: nil; // * get_by_issuer_serial */ - get_by_fingerprint: nil; // * get_by_fingerprint */ - get_by_alias: nil // * get_by_alias */ - ); - -function Indy_Unicode_X509_LOOKUP_file(): PX509_LOOKUP_METHOD cdecl; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := @Indy_x509_unicode_file_lookup; -end; function by_Indy_unicode_file_ctrl(ctx: PX509_LOOKUP; cmd: TIdC_INT; const argc: PAnsiChar; argl: TIdC_LONG; out ret: PAnsiChar): TIdC_INT; cdecl; @@ -1305,7 +1476,7 @@ function Indy_unicode_X509_load_cert_file(ctx: PX509_LOOKUP; const AFileName: St Exit; end; end; - i := X509_STORE_add_cert(ctx^.store_ctx, LX); + i := X509_STORE_add_cert(X509_LOOKUP_get_store(ctx), LX); if i = 0 then begin Exit; end; @@ -1321,7 +1492,7 @@ function Indy_unicode_X509_load_cert_file(ctx: PX509_LOOKUP; const AFileName: St X509err(X509_F_X509_LOAD_CERT_FILE, ERR_R_ASN1_LIB); Exit; end; - i := X509_STORE_add_cert(ctx^.store_ctx, LX); + i := X509_STORE_add_cert(X509_LOOKUP_get_store(ctx), LX); if i = 0 then begin Exit; end; @@ -1388,13 +1559,13 @@ function Indy_unicode_X509_load_cert_crl_file(ctx: PX509_LOOKUP; const AFileName end; try for i := 0 to sk_X509_INFO_num(Linf) - 1 do begin - Litmp := sk_X509_INFO_value(Linf, i); + Litmp := PX509_INFO(sk_X509_INFO_value(Linf, i)); if Assigned(Litmp^.x509) then begin - X509_STORE_add_cert(ctx^.store_ctx, Litmp^.x509); + X509_STORE_add_cert(X509_LOOKUP_get_store(ctx), Litmp^.x509); Inc(count); end; if Assigned(Litmp^.crl) then begin - X509_STORE_add_crl(ctx^.store_ctx, Litmp^.crl); + X509_STORE_add_crl(X509_LOOKUP_get_store(ctx), Litmp^.crl); Inc(count); end; end; @@ -1551,8 +1722,8 @@ function IndySSL_CTX_use_PrivateKey_file(ctx: PSSL_CTX; const AFileName: String; begin j := ERR_R_PEM_LIB; LKey := PEM_read_bio_PrivateKey(B, nil, - ctx^.default_passwd_callback, - ctx^.default_passwd_callback_userdata); + SSL_CTX_get_default_passwd_cb(ctx), + SSL_CTX_get_default_passwd_cb_userdata(ctx)); end; SSL_FILETYPE_ASN1: begin @@ -1615,8 +1786,8 @@ function IndySSL_CTX_use_certificate_file(ctx: PSSL_CTX; SSL_FILETYPE_PEM: begin j := ERR_R_PEM_LIB; - LX := PEM_read_bio_X509(B, nil, ctx^.default_passwd_callback, - ctx^.default_passwd_callback_userdata); + LX := PEM_read_bio_X509(B, nil, SSL_CTX_get_default_passwd_cb(ctx), + SSL_CTX_get_default_passwd_cb_userdata(ctx)); end else begin SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE_FILE, SSL_R_BAD_SSL_FILETYPE); @@ -1671,8 +1842,8 @@ function IndySSL_CTX_use_certificate_chain_file(ctx :PSSL_CTX; Exit; end; try - LX := PEM_read_bio_X509_AUX(B, nil, ctx^.default_passwd_callback, - ctx^.default_passwd_callback_userdata); + LX := PEM_read_bio_X509_AUX(B, nil, SSL_CTX_get_default_passwd_cb(ctx), + SSL_CTX_get_default_passwd_cb_userdata(ctx)); if (Lx = nil) then begin SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE_CHAIN_FILE, ERR_R_PEM_LIB); end else begin @@ -1685,8 +1856,8 @@ function IndySSL_CTX_use_certificate_chain_file(ctx :PSSL_CTX; SSL_CTX_clear_chain_certs(ctx); repeat ca := PEM_read_bio_X509(B, nil, - ctx^.default_passwd_callback, - ctx^.default_passwd_callback_userdata); + SSL_CTX_get_default_passwd_cb(ctx), + SSL_CTX_get_default_passwd_cb_userdata(ctx)); if ca = nil then begin break; end; @@ -1731,19 +1902,22 @@ function IndyX509_STORE_load_locations(ctx: PX509_STORE; const AFileName, APathName: String): TIdC_INT; var lookup: PX509_LOOKUP; + method: PX509_LOOKUP_METHOD; {reference counted} begin Result := 0; if AFileName <> '' then begin - lookup := X509_STORE_add_lookup(ctx, Indy_Unicode_X509_LOOKUP_file); + method := X509_LOOKUP_meth_new('Load file into cache'); + lookup := X509_STORE_add_lookup(ctx, method); if not Assigned(lookup) then begin Exit; end; + X509_LOOKUP_meth_set_ctrl(method,@by_Indy_unicode_file_ctrl); // RLebeau: the PAnsiChar(Pointer(...)) cast below looks weird, but it is // intentional. X509_LOOKUP_load_file() takes a PAnsiChar as input, but // we are using Unicode strings here. So casting the UnicodeString to a // raw Pointer and then passing that to X509_LOOKUP_load_file() as PAnsiChar. // Indy_Unicode_X509_LOOKUP_file will cast it back to PWideChar for processing... - if (X509_LOOKUP_load_file(lookup, PAnsiChar(Pointer(AFileName)), X509_FILETYPE_PEM) <> 1) then begin + if (X509_LOOKUP_load_file(lookup, PAnsiChar(pointer(AFileName)), X509_FILETYPE_PEM) <> 1) then begin Exit; end; end; @@ -1763,7 +1937,7 @@ function IndySSL_CTX_load_verify_locations(ctx: PSSL_CTX; const ACAFile, ACAPath: String): TIdC_INT; {$IFDEF USE_INLINE} inline; {$ENDIF} begin - Result := IndyX509_STORE_load_locations(ctx^.cert_store, ACAFile, ACAPath); + Result := IndyX509_STORE_load_locations(SSL_CTX_get_cert_store(ctx), ACAFile, ACAPath); end; function IndySSL_CTX_use_DHparams_file(ctx: PSSL_CTX; @@ -1807,8 +1981,8 @@ function IndySSL_CTX_use_DHparams_file(ctx: PSSL_CTX; SSL_FILETYPE_PEM: begin j := ERR_R_DH_LIB; - LDH := PEM_read_bio_DHparams(B, nil, ctx^.default_passwd_callback, - ctx^.default_passwd_callback_userdata); + LDH := PEM_read_bio_DHparams(B, nil, SSL_CTX_get_default_passwd_cb(ctx), + SSL_CTX_get_default_passwd_cb_userdata(ctx)); end else begin SSLerr(SSL_F_SSL3_CTRL, SSL_R_BAD_SSL_FILETYPE); @@ -1992,8 +2166,8 @@ function IndySSL_CTX_use_DHparams_file(ctx: PSSL_CTX; SSL_FILETYPE_PEM: begin j := ERR_R_DH_LIB; - LDH := PEM_read_bio_DHparams(B, nil, ctx^.default_passwd_callback, - ctx^.default_passwd_callback_userdata); + LDH := PEM_read_bio_DHparams(B, nil, SSL_CTX_get_default_passwd_cb(ctx), + SSL_CTX_get_default_passwd_cb_userdata(ctx)); end else begin SSLerr(SSL_F_SSL3_CTRL, SSL_R_BAD_SSL_FILETYPE); @@ -2015,6 +2189,8 @@ function IndySSL_CTX_use_DHparams_file(ctx: PSSL_CTX; {$ENDIF} // UNIX {$ELSE} // STRING_IS_UNICODE +{this conditional section assumes that strings are UTF8 or perhaps use a codepage + and the calls typically resolve to direct calls to OpenSSL} function IndySSL_load_client_CA_file(const AFileName: String) : PSTACK_OF_X509_NAME; {$IFDEF USE_INLINE} inline; {$ENDIF} @@ -2095,8 +2271,8 @@ function IndySSL_CTX_use_DHparams_file(ctx: PSSL_CTX; SSL_FILETYPE_PEM: begin j := ERR_R_DH_LIB; - LDH := PEM_read_bio_DHparams(B, nil, ctx^.default_passwd_callback, - ctx^.default_passwd_callback_userdata); + LDH := PEM_read_bio_DHparams(B, nil, SSL_CTX_get_default_passwd_cb(ctx), + SSL_CTX_get_default_passwd_cb_userdata(ctx)); end else begin SSLerr(SSL_F_SSL3_CTRL, SSL_R_BAD_SSL_FILETYPE); @@ -2166,7 +2342,10 @@ procedure DumpCert(AOut: TStrings; AX509: PX509); LLen : TIdC_INT; LBufPtr : PIdAnsiChar; begin - if Assigned(X509_print) then begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + if Assigned(X509_print) then + {$ENDIF} + begin LMem := BIO_new(BIO_s_mem); if LMem <> nil then begin try @@ -2204,7 +2383,10 @@ procedure DumpCert(AOut: TStrings; AX509: PX509); {$IFNDEF WIN32_OR_WIN64} procedure _threadid_func(id : PCRYPTO_THREADID) cdecl; begin - if Assigned(CRYPTO_THREADID_set_numeric) then begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + if Assigned(CRYPTO_THREADID_set_numeric) then + {$ENDIF} + begin CRYPTO_THREADID_set_numeric(id, TIdC_ULONG(CurrentThreadId)); end; end; @@ -2250,7 +2432,14 @@ procedure PrepareOpenSSLLocking; begin LList := CallbackLockList.LockList; try - cnt := _CRYPTO_num_locks; + {$IFNDEF USE_EXTERNAL_LIBRARY} + if assigned(CRYPTO_num_locks) then + cnt := CRYPTO_num_locks + else + cnt := 0; + {$ELSE} + cnt := CRYPTO_num_locks; + {$ENDIF} for i := 0 to cnt - 1 do begin Lock := TIdCriticalSection.Create; try @@ -2352,25 +2541,22 @@ function LoadOpenSSLLibrary: Boolean; Result := True; Exit; end; - Result := IdSSLOpenSSLHeaders.Load; - if not Result then begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := GetOpenSSLLoader.Load; + if not Result then Exit; - end; + {$ENDIF} {$IFDEF OPENSSL_SET_MEMORY_FUNCS} // has to be done before anything that uses memory IdSslCryptoMallocInit; {$ENDIF} - // required eg to encrypt a private key when writing - OpenSSL_add_all_ciphers; - OpenSSL_add_all_digests; + OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS or OPENSSL_INIT_ADD_ALL_CIPHERS or + OPENSSL_INIT_ADD_ALL_DIGESTS or OPENSSL_INIT_LOAD_CRYPTO_STRINGS or + OPENSSL_INIT_LOAD_CONFIG or OPENSSL_INIT_ASYNC or + OPENSSL_INIT_ENGINE_ALL_BUILTIN ,nil); + + InitializeRandom; - // IdSslRandScreen; - SSL_load_error_strings; - // Successful loading if true - Result := SSLeay_add_ssl_algorithms > 0; - if not Result then begin - Exit; - end; // Create locking structures, we need them for callback routines Assert(LockInfoCB = nil); LockInfoCB := TIdCriticalSection.Create; @@ -2381,56 +2567,70 @@ function LoadOpenSSLLibrary: Boolean; PrepareOpenSSLLocking; CRYPTO_set_locking_callback(@SslLockingCallback); {$IFNDEF WIN32_OR_WIN64} +{$IFNDEF USE_EXTERNAL_LIBRARY} if Assigned(CRYPTO_THREADID_set_callback) then begin CRYPTO_THREADID_set_callback(@_threadid_func); end else begin CRYPTO_set_id_callback(@_GetThreadID); end; +{$ELSE} + CRYPTO_THREADID_set_callback(@_threadid_func); +{$ENDIF} {$ENDIF} SSLIsLoaded.Value := True; Result := True; finally SSLIsLoaded.Unlock; end; + end; procedure UnLoadOpenSSLLibrary; -// allow the user to call unload directly? -// will then need to implement reference count {$IFNDEF USE_OBJECT_ARC} var i: Integer; LList: TIdCriticalSectionList; {$ENDIF} begin - // ssl was never loaded - if Assigned(CRYPTO_set_locking_callback) then begin - CRYPTO_set_locking_callback(nil); - end; - CleanupRandom; // <-- RLebeau: why is this here and not in IdSSLOpenSSLHeaders.Unload()? - IdSSLOpenSSLHeaders.Unload; - FreeAndNil(LockInfoCB); - FreeAndNil(LockPassCB); - FreeAndNil(LockVerifyCB); - if Assigned(CallbackLockList) then begin - {$IFDEF USE_OBJECT_ARC} - CallbackLockList.Clear; // Items are auto-freed - {$ELSE} - LList := CallbackLockList.LockList; - begin - try - for i := 0 to LList.Count - 1 do begin - {$IFDEF HAS_GENERICS_TList}LList.Items[i]{$ELSE}TIdCriticalSection(LList.Items[i]){$ENDIF}.Free; + SSLIsLoaded.Lock; + try + if not SSLIsLoaded.Value then + Exit; + + {$IFNDEF USE_EXTERNAL_LIBRARY} + if Assigned(CRYPTO_set_locking_callback) then + {$ENDIF} + CRYPTO_set_locking_callback(nil); + + CleanupRandom; // <-- RLebeau: why is this here and not in IdSSLOpenSSLHeaders.Unload()? + {$IFNDEF USE_EXTERNAL_LIBRARY} + GetOpenSSLLoader.Unload; + {$ENDIF} + FreeAndNil(LockInfoCB); + FreeAndNil(LockPassCB); + FreeAndNil(LockVerifyCB); + if Assigned(CallbackLockList) then begin + {$IFDEF USE_OBJECT_ARC} + CallbackLockList.Clear; // Items are auto-freed + {$ELSE} + LList := CallbackLockList.LockList; + begin + try + for i := 0 to LList.Count - 1 do begin + {$IFDEF HAS_GENERICS_TList}LList.Items[i]{$ELSE}TIdCriticalSection(LList.Items[i]){$ENDIF}.Free; + end; + LList.Clear; + finally + CallbackLockList.UnlockList; end; - LList.Clear; - finally - CallbackLockList.UnlockList; end; + {$ENDIF} + FreeAndNil(CallbackLockList); end; - {$ENDIF} - FreeAndNil(CallbackLockList); + SSLIsLoaded.Value := False; + finally + SSLIsLoaded.Unlock; end; - SSLIsLoaded.Value := False; end; function OpenSSLVersion: string; @@ -2439,12 +2639,38 @@ function OpenSSLVersion: string; // RLebeau 9/7/2015: even if LoadOpenSSLLibrary() fails, _SSLeay_version() // might have been loaded OK before the failure occured. LoadOpenSSLLibrary() // does not unload .. - IdSSLOpenSSL.LoadOpenSSLLibrary; - if Assigned(_SSLeay_version) then begin - Result := String(_SSLeay_version(SSLEAY_VERSION)); + LoadOpenSSLLibrary; + {$IFNDEF USE_EXTERNAL_LIBRARY} + if Assigned(SSLeay_version) then + {$ENDIF} + Result := String(SSLeay_version(SSLEAY_VERSION_CONST)); +end; + +function OpenSSLDir : string; +var i: integer; +begin + Result := ''; + LoadOpenSSLLibrary; + {$IFNDEF USE_EXTERNAL_LIBRARY} + if Assigned(SSLeay_version) then + {$ENDIF} + Result := String(SSLeay_version(OPENSSL_DIR)); + {assumed format is 'OPENSSLDIR: ""'} + i := Pos('"',Result); + if i < 0 then + Result := '' + else + begin + Delete(Result,1,i); + i := Pos('"',Result); + if i < 0 then + Result := '' + else + Delete(Result,i,Length(Result)-i+1); end; end; + ////////////////////////////////////////////////////// // TIdSSLOptions /////////////////////////////////////////////////////// @@ -2454,6 +2680,7 @@ constructor TIdSSLOptions.Create; inherited Create; fMethod := DEF_SSLVERSION; fSSLVersions := DEF_SSLVERSIONS; + fUseSystemRootCertificateStore := true; end; procedure TIdSSLOptions.SetMethod(const AValue: TIdSSLVersion); @@ -2484,6 +2711,12 @@ procedure TIdSSLOptions.SetSSLVersions(const AValue: TIdSSLVersions); else if fSSLVersions = [sslvTLSv1_2 ] then begin fMethod := sslvTLSv1_2; end + else if fSSLVersions = [sslvTLSv1_3 ] then begin + if HasTLS_method then + fMethod := sslvTLSv1_3 + else + fMethod := sslvTLSv1_2; + end else begin fMethod := sslvSSLv23; if sslvSSLv23 in fSSLVersions then begin @@ -2510,6 +2743,7 @@ procedure TIdSSLOptions.AssignTo(Destination: TPersistent); LDest.Mode := Mode; LDest.VerifyMode := VerifyMode; LDest.VerifyDepth := VerifyDepth; + LDest.fUseSystemRootCertificateStore := fUseSystemRootCertificateStore; LDest.VerifyDirs := VerifyDirs; LDest.CipherList := CipherList; end else begin @@ -2550,6 +2784,7 @@ procedure TIdServerIOHandlerSSLOpenSSL.Init; fSSLContext.fVerifyDepth := SSLOptions.fVerifyDepth; fSSLContext.fVerifyMode := SSLOptions.fVerifyMode; // fSSLContext.fVerifyFile := SSLOptions.fVerifyFile; + fSSLContext.fUseSystemRootCertificateStore := SSLOptions.fUseSystemRootCertificateStore; fSSLContext.fVerifyDirs := SSLOptions.fVerifyDirs; fSSLContext.fCipherList := SSLOptions.fCipherList; fSSLContext.VerifyOn := Assigned(fOnVerifyPeer); @@ -2938,6 +3173,7 @@ procedure TIdSSLIOHandlerSocketOpenSSL.Init; fSSLContext.fVerifyDepth := SSLOptions.fVerifyDepth; fSSLContext.fVerifyMode := SSLOptions.fVerifyMode; // fSSLContext.fVerifyFile := SSLOptions.fVerifyFile; + fSSLContext.fUseSystemRootCertificateStore := SSLOptions.fUseSystemRootCertificateStore; fSSLContext.fVerifyDirs := SSLOptions.fVerifyDirs; fSSLContext.fCipherList := SSLOptions.fCipherList; fSSLContext.VerifyOn := Assigned(fOnVerifyPeer); @@ -3206,6 +3442,7 @@ constructor TIdSSLContext.Create; fVerifyMode := []; fMode := sslmUnassigned; fSessionId := 1; + fUseSystemRootCertificateStore := true; end; destructor TIdSSLContext.Destroy; @@ -3214,6 +3451,83 @@ destructor TIdSSLContext.Destroy; inherited Destroy; end; +{$IFDEF USE_WINDOWS_CERT_STORE} +const + wincryptdll = 'crypt32.dll'; + RootStore = 'ROOT'; + +type + HCERTSTORE = THandle; + HCRYPTPROV_LEGACY = PIdC_LONG; + PCERT_INFO = pointer; {don't need to know this structure} + PCCERT_CONTEXT = ^CERT_CONTEXT; + CERT_CONTEXT = record + dwCertEncodingType: DWORD; + pbCertEncoded: PByte; + cbCertEncoded: DWORD; + CertInfo: PCERT_INFO; + certstore: HCERTSTORE + end; + +{$IFDEF STRING_IS_ANSI} +{$EXTERNALSYM CertOpenSystemStoreA} +function CertOpenSystemStoreA(hProv: HCRYPTPROV_LEGACY; szSubsystemProtocol: PIdAnsiChar):HCERTSTORE; + stdcall; external wincryptdll; +{$ELSE} +{$EXTERNALSYM CertOpenSystemStoreW} +function CertOpenSystemStoreW(hProv: HCRYPTPROV_LEGACY; szSubsystemProtocol: PCHar):HCERTSTORE; + stdcall; external wincryptdll; +{$ENDIF} + +{$EXTERNALSYM CertCloseStore} +function CertCloseStore(certstore: HCERTSTORE; dwFlags: DWORD): boolean; stdcall; external wincryptdll; + +{$EXTERNALSYM CertEnumCertificatesInStore} +function CertEnumCertificatesInStore(certstore: HCERTSTORE; pPrevCertContext: PCCERT_CONTEXT): PCCERT_CONTEXT; + stdcall; external wincryptdll; + +{Copy Windows CA Certs to out cert store} +procedure TIdSSLContext.LoadWindowsCertStore; +var WinCertStore: HCERTSTORE; + X509Cert: PX509; + cert_context: PCCERT_CONTEXT; + error: integer; + SSLCertStore: PX509_STORE; + CertEncoded: PByte; +begin + cert_context := nil; + {$IFDEF STRING_IS_ANSI} + WinCertStore := CertOpenSystemStoreA(0,RootStore); + {$ELSE} + WinCertStore := CertOpenSystemStoreW(0,RootStore); + {$ENDIF} + if WinCertStore = 0 then + Exit; + + SSLCertStore := SSL_CTX_get_cert_store(fContext); + try + cert_context := CertEnumCertificatesInStore(WinCertStore,cert_context); + while cert_context <> nil do + begin + CertEncoded := cert_context^.pbCertEncoded; + X509Cert := d2i_X509(nil,@CertEncoded, cert_context^.cbCertEncoded); + if X509Cert <> nil then + begin + error := X509_STORE_add_cert(SSLCertStore, X509Cert); +//Ignore if cert already in store + if (error = 0) and + (ERR_GET_REASON(ERR_get_error) <> X509_R_CERT_ALREADY_IN_HASH_TABLE) then + EIdOpenSSLAPICryptoError.RaiseException(ROSCertificateNotAddedToStore); + X509_free(X509Cert); + end; + cert_context := CertEnumCertificatesInStore(WinCertStore,cert_context); + end; + finally + CertCloseStore(WinCertStore, 0); + end; +end; +{$ENDIF} + procedure TIdSSLContext.DestroyContext; begin if fContext <> nil then begin @@ -3247,57 +3561,80 @@ procedure TIdSSLContext.InitContext(CtxMode: TIdSSLCtxMode); if fContext = nil then begin EIdOSSLCreatingContextError.RaiseException(RSSSLCreatingContextError); end; + //set SSL Versions we will use + if HasTLS_method then + begin + if sslvSSLv3 in SSLVersions then + SSL_CTX_set_min_proto_version(fContext,SSL3_VERSION) + else + if sslvTLSv1 in SSLVersions then + SSL_CTX_set_min_proto_version(fContext,TLS1_VERSION) + else + if sslvTLSv1_1 in SSLVersions then + SSL_CTX_set_min_proto_version(fContext,TLS1_1_VERSION) + else + if sslvTLSv1_2 in SSLVersions then + SSL_CTX_set_min_proto_version(fContext,TLS1_2_VERSION) + else + if sslvTLSv1_3 in SSLVersions then + SSL_CTX_set_min_proto_version(fContext,TLS1_3_VERSION) + else + {Set to the lowest now possible} + SSL_CTX_set_min_proto_version(fContext,SSL3_VERSION); + end + else + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + {legacy code 1.0.2 and earlier} - // in OpenSSL 1.0.2g onwards, SSLv2 is disabled and not exported by default - // at compile-time. If OpenSSL is compiled with "enable-ssl2" enabled so the - // SSLv2_xxx_method() functions are exported, SSLv2 is still disabled by - // default in the SSLv23_xxx_method() functions and must be enabled explicitly... - if IsOpenSSL_SSLv2_Available then begin - if not (sslvSSLv2 in SSLVersions) then begin - SSL_CTX_set_options(fContext, SSL_OP_NO_SSLv2); - end - else if (fMethod = sslvSSLv23) then begin - SSL_CTX_clear_options(fContext, SSL_OP_NO_SSLv2); - end; - end; - // SSLv3 might also be disabled as well.. - if IsOpenSSL_SSLv3_Available then begin - if not (sslvSSLv3 in SSLVersions) then begin - SSL_CTX_set_options(fContext, SSL_OP_NO_SSLv3); - end - else if (fMethod = sslvSSLv23) then begin - SSL_CTX_clear_options(fContext, SSL_OP_NO_SSLv3); - end; - end; - // may as well do the same for all of them... - if IsOpenSSL_TLSv1_0_Available then begin - if not (sslvTLSv1 in SSLVersions) then begin - SSL_CTX_set_options(fContext, SSL_OP_NO_TLSv1); - end - else if (fMethod = sslvSSLv23) then begin - SSL_CTX_clear_options(fContext, SSL_OP_NO_TLSv1); - end; - end; -{IMPORTANT!!! Do not set SSL_CTX_set_options SSL_OP_NO_TLSv1_1 and -SSL_OP_NO_TLSv1_2 if that functionality is not available. OpenSSL 1.0 and -earlier do not support those flags. Those flags would only cause -an invalid MAC when doing SSL.} - if IsOpenSSL_TLSv1_1_Available then begin - if not (sslvTLSv1_1 in SSLVersions) then begin - SSL_CTX_set_options(fContext, SSL_OP_NO_TLSv1_1); - end - else if (fMethod = sslvSSLv23) then begin - SSL_CTX_clear_options(fContext, SSL_OP_NO_TLSv1_1); - end; - end; - if IsOpenSSL_TLSv1_2_Available then begin - if not (sslvTLSv1_2 in SSLVersions) then begin - SSL_CTX_set_options(fContext, SSL_OP_NO_TLSv1_2); - end - else if (fMethod = sslvSSLv23) then begin - SSL_CTX_clear_options(fContext, SSL_OP_NO_TLSv1_2); - end; + if IsOpenSSL_SSLv2_Available then begin + if not (sslvSSLv2 in SSLVersions) then begin + SSL_CTX_set_options(fContext, SSL_OP_NO_SSLv2); + end + else if (fMethod = sslvSSLv23) then begin + SSL_CTX_clear_options(fContext, SSL_OP_NO_SSLv2); + end; + end; + // SSLv3 might also be disabled as well.. + if IsOpenSSL_SSLv3_Available then begin + if not (sslvSSLv3 in SSLVersions) then begin + SSL_CTX_set_options(fContext, SSL_OP_NO_SSLv3); + end + else if (fMethod = sslvSSLv23) then begin + SSL_CTX_clear_options(fContext, SSL_OP_NO_SSLv3); + end; + end; + // may as well do the same for all of them... + if IsOpenSSL_TLSv1_0_Available then begin + if not (sslvTLSv1 in SSLVersions) then begin + SSL_CTX_set_options(fContext, SSL_OP_NO_TLSv1); + end + else if (fMethod = sslvSSLv23) then begin + SSL_CTX_clear_options(fContext, SSL_OP_NO_TLSv1); + end; + end; + {IMPORTANT!!! Do not set SSL_CTX_set_options SSL_OP_NO_TLSv1_1 and + SSL_OP_NO_TLSv1_2 if that functionality is not available. OpenSSL 1.0 and + earlier do not support those flags. Those flags would only cause + an invalid MAC when doing SSL.} + if IsOpenSSL_TLSv1_1_Available then begin + if not (sslvTLSv1_1 in SSLVersions) then begin + SSL_CTX_set_options(fContext, SSL_OP_NO_TLSv1_1); + end + else if (fMethod = sslvSSLv23) then begin + SSL_CTX_clear_options(fContext, SSL_OP_NO_TLSv1_1); + end; + end; + if IsOpenSSL_TLSv1_2_Available then begin + if not (sslvTLSv1_2 in SSLVersions) then begin + SSL_CTX_set_options(fContext, SSL_OP_NO_TLSv1_2); + end + else if (fMethod = sslvSSLv23) then begin + SSL_CTX_clear_options(fContext, SSL_OP_NO_TLSv1_2); + end; + end; + {$ENDIF} end; SSL_CTX_set_mode(fContext, SSL_MODE_AUTO_RETRY); @@ -3307,7 +3644,14 @@ procedure TIdSSLContext.InitContext(CtxMode: TIdSSLCtxMode); SSL_CTX_set_default_passwd_cb_userdata(fContext, Self); // end; - SSL_CTX_set_default_verify_paths(fContext); + if fUseSystemRootCertificateStore then + begin + {$IFDEF USE_WINDOWS_CERT_STORE} + LoadWindowsCertStore; + {$ELSE} + SSL_CTX_set_default_verify_paths(fContext); + {$ENDIF} + end; // load key and certificate files if (RootCertFile <> '') or (VerifyDirs <> '') then begin {Do not Localize} if not LoadRootCert then begin @@ -3415,6 +3759,8 @@ function TIdSSLContext.LoadVerifyLocations(FileName: String; Dirs: String): Bool Result := True; end; } + +{$IFNDEF USE_EXTERNAL_LIBRARY} function SelectTLS1Method(const AMode : TIdSSLMode) : PSSL_METHOD; {$IFDEF USE_INLINE} inline; {$ENDIF} begin @@ -3436,6 +3782,7 @@ function SelectTLS1Method(const AMode : TIdSSLMode) : PSSL_METHOD; end; end; end; +{$ENDIF} function TIdSSLContext.SetSSLMethod: PSSL_METHOD; begin @@ -3443,6 +3790,41 @@ function TIdSSLContext.SetSSLMethod: PSSL_METHOD; if fMode = sslmUnassigned then begin raise EIdOSSLModeNotSet.Create(RSOSSLModeNotSet); end; + if HasTLS_method then + {We are running with OpenSSL 1.1.1 or later. OpenSSL will negotiate the best + available SSL/TLS version and there is not much that we can do to influence this. + Hence, we ignore fMethod. + + Quoting from the OpenSSL man page: + + TLS_method(), TLS_server_method(), TLS_client_method() + + These are the general-purpose version-flexible SSL/TLS methods. The actual + protocol version used will be negotiated to the highest version mutually s + upported by the client and the server. The supported protocols are SSLv3, + TLSv1, TLSv1.1, TLSv1.2 and TLSv1.3. Applications should use these methods, + and avoid the version-specific methods described below [e.g. SSLv2_method), + which are deprecated. +} + begin + case fMode of + sslmClient: + Result := TLS_client_method(); + + sslmServer: + Result := TLS_server_method(); + + sslmBoth: + Result := TLS_Method(); + + end; + Exit; + end; + + {$IFNDEF USE_EXTERNAL_LIBRARY} + {we are using a legacy OpenSSL Library 1.0.2 or earlier and hence have to select + the SSL method the old way :(} + case fMethod of sslvSSLv2: case fMode of @@ -3559,6 +3941,7 @@ function TIdSSLContext.SetSSLMethod: PSSL_METHOD; if Result = nil then begin raise EIdOSSLGetMethodError.Create(RSSSLGetMethodError); end; + {$ENDIF} end; function TIdSSLContext.LoadRootCert: Boolean; @@ -3573,11 +3956,15 @@ function TIdSSLContext.LoadCert: Boolean; end else begin //OpenSSL 1.0.2 has a new function, SSL_CTX_use_certificate_chain_file //that handles a chain of certificates in a PEM file. That is prefered. + {$IFNDEF USE_EXTERNAL_LIBRARY} if Assigned(SSL_CTX_use_certificate_chain_file) then begin Result := IndySSL_CTX_use_certificate_chain_file(fContext, CertFile) > 0; end else begin Result := IndySSL_CTX_use_certificate_file(fContext, CertFile, SSL_FILETYPE_PEM) > 0; end; + {$ELSE} + Result := IndySSL_CTX_use_certificate_chain_file(fContext, CertFile) > 0; + {$ENDIF} end; end; @@ -3626,6 +4013,8 @@ constructor TIdSSLSocket.Create(Parent: TObject); destructor TIdSSLSocket.Destroy; begin + if fSession <> nil then + SSL_SESSION_free(fSession); if fSSL <> nil then begin // TODO: should this be moved to TIdSSLContext instead? Is this here // just to make sure the SSL shutdown does not log any messages? @@ -3742,6 +4131,7 @@ procedure TIdSSLSocket.Accept(const pHandle: TIdStackSocketHandle); if error <= 0 then begin EIdOSSLAcceptError.RaiseException(fSSL, error, RSSSLAcceptError); end; + fSession := SSL_get1_session(fSSL); if Supports(fParent, IIdSSLOpenSSLCallbackHelper, IInterface(LHelper)) then begin LParentIO := LHelper.GetIOHandlerSelf; if LParentIO <> nil then begin @@ -3789,7 +4179,9 @@ procedure TIdSSLSocket.Connect(const pHandle: TIdStackSocketHandle); SSL_copy_session_id(fSSL, LParentIO.fSSLSocket.fSSL); end; {$IFNDEF OPENSSL_NO_TLSEXT} - error := SSL_set_tlsext_host_name(fSSL, fHostName); + {Delphi appears to need the extra AnsiString coerction. Otherwise, only the + first character to the hostname is passed} + error := SSL_set_tlsext_host_name(fSSL, PIdAnsiChar(AnsiString(fHostName))); if error <= 0 then begin // RLebeau: for the time being, not raising an exception on error, as I don't // know which OpenSSL versions support this extension, and which error code(s) @@ -3805,6 +4197,7 @@ procedure TIdSSLSocket.Connect(const pHandle: TIdStackSocketHandle); // version, maybe one will succeed... EIdOSSLConnectError.RaiseException(fSSL, error, RSSSLConnectError); end; + fSession := SSL_get1_session(fSSL); // TODO: even if SSL_connect() returns success, the connection might // still be insecure if SSL_connect() detected that certificate validation // actually failed, but ignored it because SSL_VERIFY_PEER was disabled! @@ -3889,6 +4282,47 @@ function TIdSSLSocket.Send(const ABuffer: TIdBytes; AOffset, ALength: Integer): until False; end; +function TIdSSLSocket.GetProtocolVersion: TIdSSLVersion; +begin + if fSession = nil then + Result := sslUnknown + else + case SSL_SESSION_get_protocol_version(fSession) of + SSL3_VERSION: + Result := sslvSSLv3; + TLS1_VERSION: + Result := sslvTLSv1; + TLS1_1_VERSION: + Result := sslvTLSv1_1; + TLS1_2_VERSION: + Result := sslvTLSv1_2; + TLS1_3_VERSION: + Result := sslvTLSv1_3; + else + Result := sslUnknown; + end; +end; + +function TIdSSLSocket.GetSSLProtocolVersionStr: string; +begin + case SSLProtocolVersion of + sslUnknown: + Result := 'Unknown'; + sslvSSLv2: + Result := 'SSLv2'; + sslvSSLv3: + Result := 'SSLv3'; + sslvTLSv1: + Result := 'TLS'; + sslvTLSv1_1: + Result := 'TLSv1.1'; + sslvTLSv1_2: + Result := 'TLSv1.2'; + sslvTLSv1_3: + Result := 'TLSv1.3'; + end; +end; + function TIdSSLSocket.GetPeerCert: TIdX509; var LX509: PX509; @@ -3916,7 +4350,9 @@ function TIdSSLSocket.GetSessionID: TIdSSLByteArray; begin Result.Length := 0; Result.Data := nil; + {$IFNDEF USE_EXTERNAL_LIBRARY} if Assigned(SSL_get_session) and Assigned(SSL_SESSION_get_id) then + {$ENDIF} begin if fSSL <> nil then begin pSession := SSL_get_session(fSSL); @@ -4032,81 +4468,117 @@ function TIdX509Fingerprints.GetSHA1AsString: String; function TIdX509Fingerprints.GetSHA224 : TIdSSLEVP_MD; begin + {$IFDEF USE_EXTERNAL_LIBRARY} + X509_digest(FX509, EVP_sha224, PByte(@Result.MD), Result.Length); + {$ELSE} if Assigned(EVP_sha224) then begin X509_digest(FX509, EVP_sha224, PByte(@Result.MD), Result.Length); end else begin FillChar(Result, SizeOf(Result), 0); end; + {$ENDIF} end; function TIdX509Fingerprints.GetSHA224AsString : String; begin + {$IFDEF USE_EXTERNAL_LIBRARY} + Result := MDAsString(SHA224); + {$ELSE} if Assigned(EVP_sha224) then begin Result := MDAsString(SHA224); end else begin Result := ''; end; + {$ENDIF} end; function TIdX509Fingerprints.GetSHA256 : TIdSSLEVP_MD; begin + {$IFDEF USE_EXTERNAL_LIBRARY} + X509_digest(FX509, EVP_sha256, PByte(@Result.MD), Result.Length); + {$ELSE} if Assigned(EVP_sha256) then begin X509_digest(FX509, EVP_sha256, PByte(@Result.MD), Result.Length); end else begin FillChar(Result, SizeOf(Result), 0); end; + {$ENDIF} end; function TIdX509Fingerprints.GetSHA256AsString : String; begin + {$IFDEF USE_EXTERNAL_LIBRARY} + Result := MDAsString(SHA256); + {$ELSE} if Assigned(EVP_sha256) then begin Result := MDAsString(SHA256); end else begin Result := ''; end; + {$ENDIF} end; function TIdX509Fingerprints.GetSHA384 : TIdSSLEVP_MD; begin + {$IFDEF USE_EXTERNAL_LIBRARY} + X509_digest(FX509, EVP_SHA384, PByte(@Result.MD), Result.Length); + {$ELSE} if Assigned(EVP_SHA384) then begin X509_digest(FX509, EVP_SHA384, PByte(@Result.MD), Result.Length); end else begin FillChar(Result, SizeOf(Result), 0); end; + {$ENDIF} end; function TIdX509Fingerprints.GetSHA384AsString : String; begin + {$IFDEF USE_EXTERNAL_LIBRARY} + Result := MDAsString(SHA384); + {$ELSE} if Assigned(EVP_SHA384) then begin Result := MDAsString(SHA384); end else begin Result := ''; end; + {$ENDIF} end; function TIdX509Fingerprints.GetSHA512 : TIdSSLEVP_MD; begin + {$IFDEF USE_EXTERNAL_LIBRARY} + X509_digest(FX509, EVP_sha512, PByte(@Result.MD), Result.Length); + {$ELSE} if Assigned(EVP_sha512) then begin X509_digest(FX509, EVP_sha512, PByte(@Result.MD), Result.Length); end else begin FillChar(Result, SizeOf(Result), 0); end; + {$ENDIF} end; function TIdX509Fingerprints.GetSHA512AsString : String; begin + {$IFDEF USE_EXTERNAL_LIBRARY} + Result := MDAsString(SHA512); + {$ELSE} if Assigned(EVP_sha512) then begin Result := MDAsString(SHA512); end else begin Result := ''; end; + {$ENDIF} end; { TIdX509SigInfo } function TIdX509SigInfo.GetSignature: String; +var + sig_alg : PX509_ALGOR; + signature : PASN1_BIT_STRING; begin - Result := BytesToHexString(FX509^.signature^.data, FX509^.signature^.length); + X509_get0_signature(signature,sig_alg, FX509); + Result := BytesToHexString(signature^.data, signature^.length); end; function TIdX509SigInfo.GetSigType: TIdC_INT; @@ -4225,7 +4697,7 @@ function TIdX509.RnotBefore: TDateTime; end else begin //This is a safe typecast since PASN1_UTCTIME and PASN1_TIME are really //pointers to ASN1 strings since ASN1_UTCTIME amd ASM1_TIME are ASN1_STRING. - Result := UTCTime2DateTime(PASN1_UTCTIME(X509_get_notBefore(FX509))); + Result := UTCTime2DateTime(PASN1_UTCTIME(X509_get0_notBefore(FX509))); end; end; @@ -4234,7 +4706,7 @@ function TIdX509.RnotAfter:TDateTime; if FX509 = nil then begin Result := 0 end else begin - Result := UTCTime2DateTime(PASN1_UTCTIME(X509_get_notAfter(FX509))); + Result := UTCTime2DateTime(PASN1_UTCTIME(X509_get0_notAfter(FX509))); end; end; @@ -4282,7 +4754,7 @@ initialization {$I IdSymbolDeprecatedOff.inc} RegisterSSL('OpenSSL','Indy Pit Crew', {do not localize} - 'Copyright '+Char(169)+' 1993 - 2023'#10#13 + {do not localize} + 'Copyright '+Char(169)+' 1993 - 2014'#10#13 + {do not localize} 'Chad Z. Hower (Kudzu) and the Indy Pit Crew. All rights reserved.', {do not localize} 'Open SSL Support DLL Delphi and C++Builder interface', {do not localize} 'http://www.indyproject.org/'#10#13 + {do not localize} diff --git a/Lib/Protocols/IdSSLOpenSSLConsts.pas b/Lib/Protocols/IdSSLOpenSSLConsts.pas new file mode 100644 index 000000000..86c8ae881 --- /dev/null +++ b/Lib/Protocols/IdSSLOpenSSLConsts.pas @@ -0,0 +1,78 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2024, the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ Contributers: } +{ Here could be your name } +{ } +{******************************************************************************} +unit IdSSLOpenSSLConsts; + +interface + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +const + {The default SSLLibraryPath is empty. You can override this by setting the + OPENSSL_LIBRARY_PATH environment variable to the absolute path of the location + of your openssl library.} + + OpenSSLLibraryPath = 'OPENSSL_LIBRARY_PATH'; {environment variable name} + {$IFNDEF OPENSSL_NO_MIN_VERSION} + min_supported_ssl_version = (((byte(1) shl 8) + byte(0)) shl 8) shl 8 + byte(0); {1.0.0} + {$ELSE} + min_supported_ssl_version = 0; + {$ENDIF} + CLibCryptoBase = 'libcrypto'; + CLibSSLBase = 'libssl'; + + {The following lists are used when trying to locate the libcrypto and libssl libraries. + Default sufficies can be replaced by setting the IOpenSSLLoader.GetSSLLibVersions property} + {$IFDEF UNIX} + CLibCrypto = 'crypto'; + CLibSSL = 'ssl'; + DirListDelimiter = ':'; + LibSuffix = '.so'; + DefaultLibVersions = ':.3:.1.1:.1.0.2:.1.0.0:.0.9.9:.0.9.8:.0.9.7:.0.9.6'; + {$ENDIF} + {$IFDEF WINDOWS} + DirListDelimiter = ';'; + LibSuffix = ''; + LegacyLibCrypto = 'libeay32'; + LegacyLibssl = 'ssleay32'; + + {This list is a pragmatic solution to the following functions not being present + in the ssleay and libeay libraries for 1.0.2 distributed on the Indy github + website} + LegacyAllowFailed = 'BIO_s_log,ECPKPARAMETERS_it,ECPKPARAMETERS_new,ECPKPARAMETERS_free,'+ + 'ECPARAMETERS_it,ECPARAMETERS_new,ECPARAMETERS_free'; + {$IFDEF CPU64} + CLibCrypto = 'libcrypto-3-x64.dll'; + CLibSSL = 'libssl-3-x64.dll'; + DefaultLibVersions = ';-3-x64;-1-x64'; + {$ENDIF} + {$IFDEF CPU32} + CLibCrypto = 'libcrypto-3.dll'; + CLibSSL = 'libssl-3.dll'; + DefaultLibVersions = ';-3;-1'; + {$ENDIF} + {$ENDIF} + +implementation + +end. diff --git a/Lib/Protocols/IdSSLOpenSSLExceptionHandlers.pas b/Lib/Protocols/IdSSLOpenSSLExceptionHandlers.pas new file mode 100644 index 000000000..958a83f7d --- /dev/null +++ b/Lib/Protocols/IdSSLOpenSSLExceptionHandlers.pas @@ -0,0 +1,189 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ Originally written by: Fabian S. Biehn } +{ fbiehn@aagon.com (German & English) } +{ } +{ Contributers: } +{ Here could be your name } +{ } +{******************************************************************************} +unit IdSSLOpenSSLExceptionHandlers; + +{$I IdCompilerDefines.inc} + +interface + +uses + Classes, SysUtils, IdException, IdCTypes; + +type +//moved from IdSSLOpenSSL so we can use these classes in other places + EIdOpenSSLError = class(EIdException); + TIdOpenSSLAPISSLError = class of EIdOpenSSLAPISSLError; + + EIdOpenSSLAPISSLError = class(EIdOpenSSLError) + protected + FErrorCode : TIdC_INT; + FRetCode : TIdC_INT; + public + class procedure RaiseException(ASSL: Pointer; const ARetCode : TIdC_INT; const AMsg : String = ''); + class procedure RaiseExceptionCode(const AErrCode, ARetCode : TIdC_INT; const AMsg : String = ''); + property ErrorCode : TIdC_INT read FErrorCode; + property RetCode : TIdC_INT read FRetCode; + end; + + TIdSSLOpenSSLAPICryptoError = class of EIdOpenSSLAPICryptoError; + EIdOpenSSLAPICryptoError = class(EIdOpenSSLError) + protected + FErrorCode : TIdC_ULONG; + public + class procedure RaiseExceptionCode(const AErrCode : TIdC_ULONG; const AMsg : String = ''); + class procedure RaiseException(const AMsg : String = ''); + property ErrorCode : TIdC_ULONG read FErrorCode; + end; + EIdOSSLUnderlyingCryptoError = class(EIdOpenSSLAPICryptoError); + + EIdDigestError = class(EIdOpenSSLAPICryptoError); + EIdDigestFinalEx = class(EIdDigestError); + EIdDigestInitEx = class(EIdDigestError); + EIdDigestUpdate = class(EIdDigestError); + + { EIdAPIFunctionNotPresent } + + EIdAPIFunctionNotPresent = class(EIdOpenSSLError) + public + class procedure RaiseException(functionName: string); + end; + +implementation + +uses IdOpenSSLHeaders_err, IdGlobal, IdOpenSSLHeaders_ssl, + IdOpenSSLHeaders_ossl_typ, IdResourceStringsProtocols, + IdStack, IdResourceStringsOpenSSL; + +function GetErrorMessage(const AErr : TIdC_ULONG) : String; +{$IFDEF USE_INLINE} inline; {$ENDIF} +const + sMaxErrMsg = 160; +var + LErrMsg: array [0..sMaxErrMsg] of TIdAnsiChar; + {$IFDEF USE_MARSHALLED_PTRS} + LErrMsgPtr: TPtrWrapper; + {$ENDIF} +begin + {$IFDEF USE_MARSHALLED_PTRS} + LErrMsgPtr := TPtrWrapper.Create(@LErrMsg[0]); + {$ENDIF} + ERR_error_string_n(AErr, + {$IFDEF USE_MARSHALLED_PTRS} + LErrMsgPtr.ToPointer + {$ELSE} + LErrMsg + {$ENDIF}, sMaxErrMsg); + LErrMsg[sMaxErrMsg] := TIdAnsiChar(0); + {$IFDEF USE_MARSHALLED_PTRS} + Result := TMarshal.ReadStringAsAnsi(LErrMsgPtr); + {$ELSE} + Result := String(LErrMsg); + {$ENDIF} +end; + +{ EIdAPIFunctionNotPresent } + +class procedure EIdAPIFunctionNotPresent.RaiseException(functionName: string); +begin + raise EIdAPIFunctionNotPresent.CreateFmt(ROSSLAPIFunctionNotPresent,[functionName]); +end; + +{ EIdOpenSSLAPICryptoError } +class procedure EIdOpenSSLAPICryptoError.RaiseException(const AMsg : String = ''); +begin + RaiseExceptionCode(ERR_get_error(), AMsg); +end; + +class procedure EIdOpenSSLAPICryptoError.RaiseExceptionCode( + const AErrCode: TIdC_ULONG; const AMsg: String); +var + LMsg: String; + LException : EIdOpenSSLAPICryptoError; +begin + if AMsg <> '' then begin + LMsg := AMsg + sLineBreak + String(GetErrorMessage(AErrCode)); + end else begin + LMsg := String(GetErrorMessage(AErrCode)); + end; + LException := Create(LMsg); + LException.FErrorCode := AErrCode; + raise LException; +end; + +{ EIdOpenSSLAPISSLError } + +class procedure EIdOpenSSLAPISSLError.RaiseException(ASSL: Pointer; const ARetCode: TIdC_INT; + const AMsg: String); +begin + RaiseExceptionCode(SSL_get_error(PSSL(ASSL), ARetCode), ARetCode, AMsg); +end; + +class procedure EIdOpenSSLAPISSLError.RaiseExceptionCode(const AErrCode, ARetCode: TIdC_INT; + const AMsg: String); +var + LErrQueue : TIdC_ULONG; + LException : EIdOpenSSLAPISSLError; + LErrStr : String; +begin + if AMsg <> '' then begin + LErrStr := AMsg + sLineBreak; + end else begin + LErrStr := ''; + end; + case AErrCode of + SSL_ERROR_SYSCALL : + begin + LErrQueue := ERR_get_error; + if LErrQueue <> 0 then begin + EIdOSSLUnderlyingCryptoError.RaiseExceptionCode(LErrQueue, AMsg); + end; + if ARetCode = 0 then begin + LException := Create(LErrStr + RSSSLEOFViolation); + LException.FErrorCode := AErrCode; + LException.FRetCode := ARetCode; + raise LException; + end; + {Note that if LErrQueue returns 0 and ARetCode = -1, there probably + is an error in the underlying socket so you should raise a socket error} + if ARetCode = -1 then begin + // TODO: catch the socket exception and re-raise it as the InnerException + // for an EIdOpenSSLAPISSLError exception... + GStack.RaiseLastSocketError; + end; + end; + SSL_ERROR_SSL : begin + EIdOSSLUnderlyingCryptoError.RaiseException(AMsg); + end + end; + // everything else... + LException := Create(LErrStr + String(GetErrorMessage(AErrCode))); + LException.FErrorCode := AErrCode; + LException.FRetCode := ARetCode; + raise LException; +end; + +end. + diff --git a/Lib/Protocols/IdSSLOpenSSLHeaders.pas b/Lib/Protocols/IdSSLOpenSSLHeaders.pas deleted file mode 100644 index e18f5da6e..000000000 --- a/Lib/Protocols/IdSSLOpenSSLHeaders.pas +++ /dev/null @@ -1,27009 +0,0 @@ -{ - $Project$ - $Workfile$ - $Revision$ - $DateUTC$ - $Id$ - - This file is part of the Indy (Internet Direct) project, and is offered - under the dual-licensing agreement described on the Indy website. - (http://www.indyproject.org/) - - Copyright: - (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserved. -} -{ - $Log$ -} -{ - Rev 1.8 28.09.2004 21:38:44 Andreas Hausladen - commented out unused function ErrMsg - - Rev 1.7 2004-05-07 16:52:50 Mattias - Minor cleanup - - Rev 1.6 2004-05-07 16:34:36 Mattias - Implemented OpenSSL locking callbacks - - Rev 1.5 10/16/03 11:16:44 PM RLebeau - Updated to better support C++Builder by adding an $EXTERNSYM define to - 'time_t' so that it won't be included in the auto-generated HPP file. The - native time.h header file is used instead. - - Rev 1.4 10/17/2003 1:08:12 AM DSiders - Added localization comments. - - Rev 1.3 12/9/2002 12:48:42 PM JPMugaas - Fixed stupid compile error for the moment. The Macros in err.h have to be - sorted out later. - - Rev 1.1 12/8/2002 07:25:52 PM JPMugaas - Added published host and port properties. - - Rev 1.0 11/13/2002 08:01:32 AM JPMugaas -} -unit IdSSLOpenSSLHeaders; - -{ - Author: Gregor Ibic (gregor.ibic@intelicom.si) - Copyright: (c) Gregor Ibic, Intelicom d.o.o and Indy Working Group. -} -{ -Note to self:: -===== Win32 with mingw32 ==== -Configuring for mingw - no-camellia [default] OPENSSL_NO_CAMELLIA (skip dir) - no-capieng [default] OPENSSL_NO_CAPIENG (skip dir) - no-cms [default] OPENSSL_NO_CMS (skip dir) - no-gmp [default] OPENSSL_NO_GMP (skip dir) - no-jpake [experimental] OPENSSL_NO_JPAKE (skip dir) - no-krb5 [krb5-flavor not specified] OPENSSL_NO_KRB5 - no-mdc2 [default] OPENSSL_NO_MDC2 (skip dir) - no-montasm [default] - no-rc5 [default] OPENSSL_NO_RC5 (skip dir) - no-rfc3779 [default] OPENSSL_NO_RFC3779 (skip dir) - no-seed [default] OPENSSL_NO_SEED (skip dir) - no-shared [default] - no-zlib [default] - no-zlib-dynamic [default] -IsMK1MF=1 -CC =gcc -CFLAG =-DOPENSSL_THREADS -DDSO_WIN32 -mno-cygwin -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall -D_WIN32_WINNT=0x333 -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -EX_LIBS =-lwsock32 -lgdi32 -CPUID_OBJ =x86cpuid-cof.o -BN_ASM =bn86-cof.o co86-cof.o -DES_ENC =dx86-cof.o yx86-cof.o -AES_ASM_OBJ =ax86-cof.o -BF_ENC =bx86-cof.o -CAST_ENC =cx86-cof.o -RC4_ENC =rx86-cof.o rc4_skey.o -RC5_ENC =r586-cof.o -MD5_OBJ_ASM =mx86-cof.o -SHA1_OBJ_ASM =sx86-cof.o s512sse2-cof.o -RMD160_OBJ_ASM=rm86-cof.o -PROCESSOR = -RANLIB =true -ARFLAGS = -PERL =perl -THIRTY_TWO_BIT mode -DES_PTR used -DES_RISC1 used -DES_UNROLL used -BN_LLONG mode -RC4_INDEX mode -RC4_CHUNK is undefined - -Configured for mingw. -Generating x86 for GNU assember -Bignum -DES -crypt -Blowfish -CAST5 -RC4 -MD5 -SHA1 -RIPEMD160 -RC5\32 -CPUID -Generating makefile -Generating DLL definition files -Building the libraries -Building OpenSSL -===== Win64 ====== -Targeting Windows Server 2003 X64 RETAIL - -perl Configure VC-WIN64A - -W:\openssl\openssl-0.9.8k>perl Configure VC-WIN64A -Configuring for VC-WIN64A - no-camellia [default] OPENSSL_NO_CAMELLIA (skip dir) - no-capieng [default] OPENSSL_NO_CAPIENG (skip dir) - no-cms [default] OPENSSL_NO_CMS (skip dir) - no-gmp [default] OPENSSL_NO_GMP (skip dir) - no-jpake [experimental] OPENSSL_NO_JPAKE (skip dir) - no-krb5 [krb5-flavor not specified] OPENSSL_NO_KRB5 - no-mdc2 [default] OPENSSL_NO_MDC2 (skip dir) - no-montasm [default] - no-rc5 [default] OPENSSL_NO_RC5 (skip dir) - no-rfc3779 [default] OPENSSL_NO_RFC3779 (skip dir) - no-seed [default] OPENSSL_NO_SEED (skip dir) - no-shared [default] - no-zlib [default] - no-zlib-dynamic [default] -IsMK1MF=1 -CC =cl -CFLAG =-DOPENSSL_THREADS -DDSO_WIN32 -EX_LIBS = -CPUID_OBJ = -BN_ASM =bn_asm.o -DES_ENC =des_enc.o fcrypt_b.o -AES_ASM_OBJ =aes_core.o aes_cbc.o -BF_ENC =bf_enc.o -CAST_ENC =c_enc.o -RC4_ENC =rc4_enc.o rc4_skey.o -RC5_ENC =rc5_enc.o -MD5_OBJ_ASM = -SHA1_OBJ_ASM = -RMD160_OBJ_ASM= -PROCESSOR = -RANLIB =true -ARFLAGS = -PERL =perl -SIXTY_FOUR_BIT mode -DES_INT used -RC4_CHUNK is unsigned long long - -Configured for VC-WIN64A. - -W:\openssl\openssl-0.9.8k>ms\do_win64a - -W:\openssl\openssl-0.9.8k>perl util\mkfiles.pl 1>MINFO - -W:\openssl\openssl-0.9.8k>perl ms\uplink.pl win64a 1>ms\uptable.asm - -W:\openssl\openssl-0.9.8k>ml64 -c -Foms\uptable.obj ms\uptable.asm -Microsoft (R) Macro Assembler (AMD64) Version 8.00.40310.39 -Copyright (C) Microsoft Corporation. All rights reserved. - - Assembling: ms\uptable.asm - -W:\openssl\openssl-0.9.8k>perl util\mk1mf.pl no-asm VC-WIN64A 1>ms\nt.mak - -W:\openssl\openssl-0.9.8k>perl util\mk1mf.pl dll no-asm VC-WIN64A 1>ms\ntdll.ma -k - -W:\openssl\openssl-0.9.8k>perl util\mkdef.pl 32 libeay 1>ms\libeay32.def - -W:\openssl\openssl-0.9.8k>perl util\mkdef.pl 32 ssleay 1>ms\ssleay32.def - -CFLAG= /MD /Ox /W3 /Gs0 /GF /Gy /nologo --DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DOPENSSL_SYSNAME_WIN32 --DOPENSSL_SYSNAME_WINNT -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE --D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_USE_APPLINK -I. /Fdout32dll --DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 --DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_KRB5 --DOPENSSL_NO_DYNAMIC_ENGINE - -} - -interface - -{$I IdCompilerDefines.inc} - -{$IFNDEF USE_OPENSSL} - {$message error Should not compile if USE_OPENSSL is not defined!!!} -{$ENDIF} -{$WRITEABLECONST OFF} - -{$IFNDEF FPC} - {$IFDEF WIN32} - {$ALIGN OFF} - {$ENDIF} - {$IFDEF WIN64} - {$ALIGN ON} - {$ENDIF} - {$IFNDEF WIN32_OR_WIN64} - {$IFNDEF VCL_CROSS_COMPILE} - {$message error error alignment!} - {$ENDIF} - {$ENDIF} -{$ELSE} - {$packrecords C} -{$ENDIF} - -//THe OpenSSL developers use a IF 0 and an IF 1 convention for selectively -//enabling or disabling things. -{$DEFINE USE_THIS} -{.$DEFINE OMIT_THIS} -{ -IMPORTANT!!!! - -A lot of IFDEF's and defines have to used because OpenSSL has a number of options' -and those can effect the API. The options are determined by a "configure" script -that generates apporpriate make files with the appropriate defines. If you do -custom compiles of OpenSSL or if it's compiled differently that what I assume, -you will need to add or deactivate the defines. - -my $x86_gcc_des="DES_PTR DES_RISC1 DES_UNROLL"; - -# MD2_CHAR slags pentium pros -my $x86_gcc_opts="RC4_INDEX MD2_INT"; -... -# This is what $depflags will look like with the above defaults -# (we need this to see if we should advise the user to run "make depend"): -my $default_depflags = " -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_CMS -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SEED"; - -} - -// # Our development configs -// "purify", "purify gcc:-g -DPURIFY -Wall::(unknown)::-lsocket -lnsl::::", -// "debug", "gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror::(unknown)::-lefence::::", -// "debug-ben", "gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown):::::bn86-elf.o co86-elf.o", -// "debug-ben-openbsd","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -DOPENSSL_OPENBSD_DEV_CRYPTO -DOPENSSL_NO_ASM -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown)::::", -// "debug-ben-openbsd-debug","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -DOPENSSL_OPENBSD_DEV_CRYPTO -DOPENSSL_NO_ASM -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown)::::", -// "debug-ben-debug", "gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown)::::::", -// "debug-ben-strict", "gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe::(unknown)::::::", -// "debug-rse","cc:-DTERMIOS -DL_ENDIAN -pipe -O -g -ggdb3 -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}", -// "debug-bodo", "gcc:-DL_ENDIAN -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBIO_PAIR_DEBUG -DPEDANTIC -g -march=i486 -pedantic -Wshadow -Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -Wundef -Wconversion -pipe::-D_REENTRANT:::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}", -// "debug-ulf", "gcc:-DTERMIOS -DL_ENDIAN -march=i486 -Wall -DBN_DEBUG -DBN_DEBUG_RAND -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -g -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations:::CYGWIN32:::${no_asm}:win32:cygwin-shared:::.dll", -// "debug-steve64", "gcc:-m64 -DL_ENDIAN -DTERMIO -DREF_CHECK -DCONF_DEBUG -DDEBUG_SAFESTACK -DCRYPTO_MDEBUG_ALL -DPEDANTIC -DOPENSSL_NO_DEPRECATED -g -pedantic -Wall -Werror -Wno-long-long -Wsign-compare -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "debug-steve32", "gcc:-m32 -DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DDEBUG_SAFESTACK -DCRYPTO_MDEBUG_ALL -DPEDANTIC -DOPENSSL_NO_DEPRECATED -g -pedantic -Wno-long-long -Wall -Werror -Wshadow -pipe::-D_REENTRANT::-rdynamic -ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC:-m32:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "debug-steve", "gcc:-DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DDEBUG_SAFESTACK -DCRYPTO_MDEBUG_ALL -DPEDANTIC -m32 -g -pedantic -Wno-long-long -Wall -Werror -Wshadow -pipe::-D_REENTRANT::-rdynamic -ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared", -// "debug-steve-opt", "gcc:-DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DDEBUG_SAFESTACK -DCRYPTO_MDEBUG_ALL -DPEDANTIC -m32 -O3 -g -pedantic -Wno-long-long -Wall -Werror -Wshadow -pipe::-D_REENTRANT::-rdynamic -ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared", -// "debug-steve-linux-pseudo64", "gcc:-DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DDEBUG_SAFESTACK -DCRYPTO_MDEBUG_ALL -DOPENSSL_NO_ASM -g -mcpu=i486 -Wall -Werror -Wshadow -pipe::-D_REENTRANT::-rdynamic -ldl:SIXTY_FOUR_BIT:${no_asm}:dlfcn:linux-shared", -// "debug-levitte-linux-elf","gcc:-DLEVITTE_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_DEBUG -DBN_DEBUG_RAND -DCRYPTO_MDEBUG -DENGINE_CONF_DEBUG -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -DPEDANTIC -ggdb -g3 -mcpu=i486 -pedantic -ansi -Wall -Wshadow -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -Wundef -Wconversion -pipe::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "debug-levitte-linux-noasm","gcc:-DLEVITTE_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_DEBUG -DBN_DEBUG_RAND -DCRYPTO_MDEBUG -DENGINE_CONF_DEBUG -DOPENSSL_NO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -DPEDANTIC -ggdb -g3 -mcpu=i486 -pedantic -ansi -Wall -Wshadow -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -Wundef -Wconversion -pipe::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "debug-levitte-linux-elf-extreme","gcc:-DLEVITTE_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_DEBUG -DBN_DEBUG_RAND -DCRYPTO_MDEBUG -DENGINE_CONF_DEBUG -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -DPEDANTIC -ggdb -g3 -mcpu=i486 -pedantic -ansi -Wall -W -Wundef -Wshadow -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -Wundef -Wconversion -pipe::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "debug-levitte-linux-noasm-extreme","gcc:-DLEVITTE_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_DEBUG -DBN_DEBUG_RAND -DCRYPTO_MDEBUG -DENGINE_CONF_DEBUG -DOPENSSL_NO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -DPEDANTIC -ggdb -g3 -mcpu=i486 -pedantic -ansi -Wall -W -Wundef -Wshadow -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -Wundef -Wconversion -pipe::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "debug-geoff","gcc:-DBN_DEBUG -DBN_DEBUG_RAND -DBN_STRICT -DPURIFY -DOPENSSL_NO_DEPRECATED -DOPENSSL_NO_ASM -DOPENSSL_NO_INLINE_ASM -DL_ENDIAN -DTERMIO -DPEDANTIC -O1 -ggdb2 -Wall -Werror -Wundef -pedantic -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Wmissing-prototypes -Wmissing-declarations -Wno-long-long::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "debug-linux-pentium","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -mcpu=pentium -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn", -// "debug-linux-ppro","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -mcpu=pentiumpro -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn", -// "debug-linux-elf","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -march=i486 -Wall::-D_REENTRANT::-lefence -ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "debug-linux-elf-noefence","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -march=i486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "dist", "cc:-O::(unknown)::::::", - -// # Basic configs that should work on any (32 and less bit) box -// "gcc", "gcc:-O3::(unknown):::BN_LLONG:::", -// "cc", "cc:-O::(unknown)::::::", - -// ####VOS Configurations -// "vos-gcc","gcc:-O3 -Wall -D_POSIX_C_SOURCE=200112L -D_BSD -DB_ENDIAN::(unknown):VOS:-Wl,-map:BN_LLONG:${no_asm}:::::.so:", -// "debug-vos-gcc","gcc:-O0 -g -Wall -D_POSIX_C_SOURCE=200112L -D_BSD -DB_ENDIAN -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG::(unknown):VOS:-Wl,-map:BN_LLONG:${no_asm}:::::.so:", - -// #### Solaris x86 with GNU C setups -// # -DOPENSSL_NO_INLINE_ASM switches off inline assembler. We have to do it -// # here because whenever GNU C instantiates an assembler template it -// # surrounds it with #APP #NO_APP comment pair which (at least Solaris -// # 7_x86) /usr/ccs/bin/as fails to assemble with "Illegal mnemonic" -// # error message. -// "solaris-x86-gcc","gcc:-O3 -fomit-frame-pointer -march=pentium -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:solaris-shared:-fPIC:-shared:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// # -shared -static-libgcc might appear controversial, but modules taken -// # from static libgcc do not have relocations and linking them into our -// # shared objects doesn't have any negative side-effects. On the contrary, -// # doing so makes it possible to use gcc shared build with Sun C. Given -// # that gcc generates faster code [thanks to inline assembler], I would -// # actually recommend to consider using gcc shared build even with vendor -// # compiler:-) -// # -// "solaris64-x86_64-gcc","gcc:-m64 -O3 -Wall -DL_ENDIAN -DMD32_REG_T=int::-D_REENTRANT::-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:solaris-shared:-fPIC:-m64 -shared -static-libgcc:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// -// #### Solaris x86 with Sun C setups -// "solaris-x86-cc","cc:-fast -O -Xa::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL BF_PTR:${no_asm}:dlfcn:solaris-shared:-KPIC:-G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "solaris64-x86_64-cc","cc:-fast -xarch=amd64 -xstrconst -Xa -DL_ENDIAN::-D_REENTRANT::-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:solaris-shared:-KPIC:-xarch=amd64 -G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// #### SPARC Solaris with GNU C setups -// "solaris-sparcv7-gcc","gcc:-O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:dlfcn:solaris-shared:-fPIC:-shared:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "solaris-sparcv8-gcc","gcc:-mv8 -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8.o:des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:solaris-shared:-fPIC:-shared:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// # -m32 should be safe to add as long as driver recognizes -mcpu=ultrasparc -// "solaris-sparcv9-gcc","gcc:-m32 -mcpu=ultrasparc -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:ULTRASPARC:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8plus.o:des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:solaris-shared:-fPIC:-shared:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "solaris64-sparcv9-gcc","gcc:-m64 -mcpu=ultrasparc -O3 -Wall -DB_ENDIAN::-D_REENTRANT:ULTRASPARC:-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR:::des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:solaris-shared:-fPIC:-m64 -shared:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// #### -// "debug-solaris-sparcv8-gcc","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mv8 -Wall -DB_ENDIAN::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8.o::::::::::dlfcn:solaris-shared:-fPIC:-shared:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "debug-solaris-sparcv9-gcc","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -O -g -mcpu=ultrasparc -pedantic -ansi -Wall -Wshadow -Wno-long-long -D__EXTENSIONS__ -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:ULTRASPARC:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8plus.o:des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:solaris-shared:-fPIC:-shared:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// #### SPARC Solaris with Sun C setups -// # SC4.0 doesn't pass 'make test', upgrade to SC5.0 or SC4.2. -// # SC4.2 is ok, better than gcc even on bn as long as you tell it -xarch=v8 -// # SC5.0 note: Compiler common patch 107357-01 or later is required! -// "solaris-sparcv7-cc","cc:-xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR:${no_asm}:dlfcn:solaris-shared:-KPIC:-G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "solaris-sparcv8-cc","cc:-xarch=v8 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::sparcv8.o:des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:solaris-shared:-KPIC:-G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "solaris-sparcv9-cc","cc:-xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:ULTRASPARC:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR::sparcv8plus.o:des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:solaris-shared:-KPIC:-G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "solaris64-sparcv9-cc","cc:-xtarget=ultra -xarch=v9 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN::-D_REENTRANT:ULTRASPARC:-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR:::des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:solaris-shared:-KPIC:-xarch=v9 -G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):/usr/ccs/bin/ar rs", -// #### -// "debug-solaris-sparcv8-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG_ALL -xarch=v8 -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::sparcv8.o::::::::::dlfcn:solaris-shared:-KPIC:-G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "debug-solaris-sparcv9-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG_ALL -xtarget=ultra -xarch=v8plus -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:ULTRASPARC:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR::sparcv8plus.o::::::::::dlfcn:solaris-shared:-KPIC:-G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// #### SunOS configs, assuming sparc for the gcc one. -// #"sunos-cc", "cc:-O4 -DNOPROTO -DNOCONST::(unknown):SUNOS::DES_UNROLL:${no_asm}::", -// "sunos-gcc","gcc:-O3 -mv8 -Dssize_t=int::(unknown):SUNOS::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL DES_PTR DES_RISC1:${no_asm}::", - -// #### IRIX 5.x configs -// # -mips2 flag is added by ./config when appropriate. -// "irix-gcc","gcc:-O3 -DTERMIOS -DB_ENDIAN::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR RC4_CHUNK DES_UNROLL DES_RISC2 DES_PTR BF_PTR:${no_asm}:dlfcn:irix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "irix-cc", "cc:-O2 -use_readonly_const -DTERMIOS -DB_ENDIAN::(unknown):::BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC2 DES_UNROLL BF_PTR:${no_asm}:dlfcn:irix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// #### IRIX 6.x configs -// # Only N32 and N64 ABIs are supported. If you need O32 ABI build, invoke -// # './Configure irix-cc -o32' manually. -// "irix-mips3-gcc","gcc:-mabi=n32 -O3 -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE:::MD2_CHAR RC4_INDEX RC4_CHAR RC4_CHUNK_LL DES_UNROLL DES_RISC2 DES_PTR BF_PTR SIXTY_FOUR_BIT::bn-mips3.o::::::::::dlfcn:irix-shared::-mabi=n32:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "irix-mips3-cc", "cc:-n32 -mips3 -O2 -use_readonly_const -G0 -rdata_shared -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE:::DES_PTR RC4_CHAR RC4_CHUNK_LL DES_RISC2 DES_UNROLL BF_PTR SIXTY_FOUR_BIT::bn-mips3.o::::::::::dlfcn:irix-shared::-n32:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// # N64 ABI builds. -// "irix64-mips4-gcc","gcc:-mabi=64 -mips4 -O3 -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE:::RC4_CHAR RC4_CHUNK DES_RISC2 DES_UNROLL SIXTY_FOUR_BIT_LONG::bn-mips3.o::::::::::dlfcn:irix-shared::-mabi=64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "irix64-mips4-cc", "cc:-64 -mips4 -O2 -use_readonly_const -G0 -rdata_shared -DTERMIOS -DB_ENDIAN -DBN_DIV3W::-D_SGI_MP_SOURCE:::RC4_CHAR RC4_CHUNK DES_RISC2 DES_UNROLL SIXTY_FOUR_BIT_LONG::bn-mips3.o::::::::::dlfcn:irix-shared::-64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// #### Unified HP-UX ANSI C configs. -// # Special notes: -// # - Originally we were optimizing at +O4 level. It should be noted -// # that the only difference between +O3 and +O4 is global inter- -// # procedural analysis. As it has to be performed during the link -// # stage the compiler leaves behind certain pseudo-code in lib*.a -// # which might be release or even patch level specific. Generating -// # the machine code for and analyzing the *whole* program appears -// # to be *extremely* memory demanding while the performance gain is -// # actually questionable. The situation is intensified by the default -// # HP-UX data set size limit (infamous 'maxdsiz' tunable) of 64MB -// # which is way too low for +O4. In other words, doesn't +O3 make -// # more sense? -// # - Keep in mind that the HP compiler by default generates code -// # suitable for execution on the host you're currently compiling at. -// # If the toolkit is ment to be used on various PA-RISC processors -// # consider './config +DAportable'. -// # - +DD64 is chosen in favour of +DA2.0W because it's meant to be -// # compatible with *future* releases. -// # - If you run ./Configure hpux-parisc-[g]cc manually don't forget to -// # pass -D_REENTRANT on HP-UX 10 and later. -// # - -DMD32_XARRAY triggers workaround for compiler bug we ran into in -// # 32-bit message digests. (For the moment of this writing) HP C -// # doesn't seem to "digest" too many local variables (they make "him" -// # chew forever:-). For more details look-up MD32_XARRAY comment in -// # crypto/sha/sha_lcl.h. -// # -// # -// # Since there is mention of this in shlib/hpux10-cc.sh -// "hpux-parisc-cc-o4","cc:-Ae +O4 +ESlit -z -DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY::-D_REENTRANT::-ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1:${no_asm}:dl:hpux-shared:+Z:-b:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "hpux-parisc-gcc","gcc:-O3 -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT::-Wl,+s -ldld:BN_LLONG DES_PTR DES_UNROLL DES_RISC1:${no_asm}:dl:hpux-shared:-fPIC:-shared:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "hpux-parisc2-gcc","gcc:-march=2.0 -O3 -DB_ENDIAN -D_REENTRANT::::-Wl,+s -ldld:SIXTY_FOUR_BIT RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL DES_RISC1::pa-risc2.o::::::::::dl:hpux-shared:-fPIC:-shared:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "hpux64-parisc2-gcc","gcc:-O3 -DB_ENDIAN -D_REENTRANT::::-ldl:SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT::pa-risc2W.o::::::::::dlfcn:hpux-shared:-fpic:-shared:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// # More attempts at unified 10.X and 11.X targets for HP C compiler. -// # -// # Chris Ruemmler -// # Kevin Steves -// "hpux-parisc-cc","cc:+O3 +Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY::-D_REENTRANT::-Wl,+s -ldld:MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT:${no_asm}:dl:hpux-shared:+Z:-b:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "hpux-parisc1_0-cc","cc:+DAportable +O3 +Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY::-D_REENTRANT::-Wl,+s -ldld:MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT:${no_asm}:dl:hpux-shared:+Z:-b:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "hpux-parisc2-cc","cc:+DA2.0 +DS2.0 +O3 +Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY -D_REENTRANT::::-Wl,+s -ldld:SIXTY_FOUR_BIT MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT::pa-risc2.o::::::::::dl:hpux-shared:+Z:-b:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "hpux64-parisc2-cc","cc:+DD64 +O3 +Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY -D_REENTRANT::::-ldl:SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT::pa-risc2W.o::::::::::dlfcn:hpux-shared:+Z:+DD64 -b:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// # HP/UX IA-64 targets -// "hpux-ia64-cc","cc:-Ae +DD32 +O2 +Olit=all -z -DB_ENDIAN -D_REENTRANT::::-ldl:SIXTY_FOUR_BIT MD2_CHAR RC4_INDEX DES_UNROLL DES_RISC1 DES_INT:${ia64_asm}:dlfcn:hpux-shared:+Z:+DD32 -b:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// # Frank Geurts has patiently assisted with -// # with debugging of the following config. -// "hpux64-ia64-cc","cc:-Ae +DD64 +O3 +Olit=all -z -DB_ENDIAN -D_REENTRANT::::-ldl:SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX DES_UNROLL DES_RISC1 DES_INT:${ia64_asm}:dlfcn:hpux-shared:+Z:+DD64 -b:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// # GCC builds... -// "hpux-ia64-gcc","gcc:-O3 -DB_ENDIAN -D_REENTRANT::::-ldl:SIXTY_FOUR_BIT MD2_CHAR RC4_INDEX DES_UNROLL DES_RISC1 DES_INT:${ia64_asm}:dlfcn:hpux-shared:-fpic:-shared:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "hpux64-ia64-gcc","gcc:-mlp64 -O3 -DB_ENDIAN -D_REENTRANT::::-ldl:SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX DES_UNROLL DES_RISC1 DES_INT:${ia64_asm}:dlfcn:hpux-shared:-fpic:-mlp64 -shared:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// # Legacy HPUX 9.X configs... -// "hpux-cc", "cc:-DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY -Ae +ESlit +O2 -z::(unknown)::-Wl,+s -ldld:DES_PTR DES_UNROLL DES_RISC1:${no_asm}:dl:hpux-shared:+Z:-b:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "hpux-gcc", "gcc:-DB_ENDIAN -DBN_DIV2W -O3::(unknown)::-Wl,+s -ldld:DES_PTR DES_UNROLL DES_RISC1:${no_asm}:dl:hpux-shared:-fPIC:-shared:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// #### HP MPE/iX http://jazz.external.hp.com/src/openssl/ -// "MPE/iX-gcc", "gcc:-D_ENDIAN -DBN_DIV2W -O3 -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB::(unknown):MPE:-L/SYSLOG/PUB -lsyslog -lsocket -lcurses:BN_LLONG DES_PTR DES_UNROLL DES_RISC1:::", - -// # DEC Alpha OSF/1/Tru64 targets. -// # -// # "What's in a name? That which we call a rose -// # By any other word would smell as sweet." -// # -// # - William Shakespeare, "Romeo & Juliet", Act II, scene II. -// # -// # For gcc, the following gave a %50 speedup on a 164 over the 'DES_INT' version -// # -// "osf1-alpha-gcc", "gcc:-O3::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_UNROLL DES_RISC1:${no_asm}:dlfcn:alpha-osf1-shared:::.so", -// "osf1-alpha-cc", "cc:-std1 -tune host -O4 -readonly_strings::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${no_asm}:dlfcn:alpha-osf1-shared:::.so", -// "tru64-alpha-cc", "cc:-std1 -tune host -fast -readonly_strings::-pthread:::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${no_asm}:dlfcn:alpha-osf1-shared::-msym:.so", - -// #### -// #### Variety of LINUX:-) -// #### -// # *-generic* is endian-neutral target, but ./config is free to -// # throw in -D[BL]_ENDIAN, whichever appropriate... -// "linux-generic32","gcc:-DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "linux-ppc", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::linux_ppc32.o::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// #### IA-32 targets... -// "linux-ia32-icc", "icc:-DL_ENDIAN -DTERMIO -O2 -no_cpprt::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-KPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "linux-elf", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "linux-aout", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -march=i486 -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}", -// #### -// "linux-generic64","gcc:-DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "linux-ppc64", "gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::linux_ppc64.o::::::::::dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "linux-ia64", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "linux-ia64-ecc","ecc:-DL_ENDIAN -DTERMIO -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "linux-ia64-icc","icc:-DL_ENDIAN -DTERMIO -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "linux-x86_64", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// #### SPARC Linux setups -// # Ray Miller has patiently -// # assisted with debugging of following two configs. -// "linux-sparcv8","gcc:-mv8 -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8.o:des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// # it's a real mess with -mcpu=ultrasparc option under Linux, but -// # -Wa,-Av8plus should do the trick no matter what. -// "linux-sparcv9","gcc:-m32 -mcpu=ultrasparc -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -Wa,-Av8plus -DBN_DIV2W::-D_REENTRANT:ULTRASPARC:-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8plus.o:des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:linux-shared:-fPIC:-m32:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// # GCC 3.1 is a requirement -// "linux64-sparcv9","gcc:-m64 -mcpu=ultrasparc -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT:ULTRASPARC:-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::::::::::::dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// #### Alpha Linux with GNU C and Compaq C setups -// # Special notes: -// # - linux-alpha+bwx-gcc is ment to be used from ./config only. If you -// # ought to run './Configure linux-alpha+bwx-gcc' manually, do -// # complement the command line with -mcpu=ev56, -mcpu=ev6 or whatever -// # which is appropriate. -// # - If you use ccc keep in mind that -fast implies -arch host and the -// # compiler is free to issue instructions which gonna make elder CPU -// # choke. If you wish to build "blended" toolkit, add -arch generic -// # *after* -fast and invoke './Configure linux-alpha-ccc' manually. -// # -// # -// # -// "linux-alpha-gcc","gcc:-O3 -DL_ENDIAN -DTERMIO::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "linux-alpha+bwx-gcc","gcc:-O3 -DL_ENDIAN -DTERMIO::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "linux-alpha-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${no_asm}", -// "linux-alpha+bwx-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${no_asm}", - -// #### *BSD [do see comment about ${BSDthreads} above!] -// "BSD-generic32","gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall::${BSDthreads}:::BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "BSD-x86", "gcc:-DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -Wall::${BSDthreads}:::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:dlfcn:bsd-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "BSD-x86-elf", "gcc:-DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -Wall::${BSDthreads}:::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "debug-BSD-x86-elf", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wall -g::${BSDthreads}:::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "BSD-sparcv8", "gcc:-DB_ENDIAN -DTERMIOS -O3 -mv8 -Wall::${BSDthreads}:::BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL::sparcv8.o:des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// "BSD-generic64","gcc:-DTERMIOS -O3 -Wall::${BSDthreads}:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// # -DMD32_REG_T=int doesn't actually belong in sparc64 target, it -// # simply *happens* to work around a compiler bug in gcc 3.3.3, -// # triggered by RIPEMD160 code. -// "BSD-sparc64", "gcc:-DB_ENDIAN -DTERMIOS -O3 -DMD32_REG_T=int -Wall::${BSDthreads}:::SIXTY_FOUR_BIT_LONG RC2_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC2 BF_PTR:::des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "BSD-ia64", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wall::${BSDthreads}:::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${ia64_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "BSD-x86_64", "gcc:-DL_ENDIAN -DTERMIOS -O3 -DMD32_REG_T=int -Wall::${BSDthreads}:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// "bsdi-elf-gcc", "gcc:-DPERL5 -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall::(unknown)::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// "nextstep", "cc:-O -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::", -// "nextstep3.3", "cc:-O3 -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:::", - -// # NCR MP-RAS UNIX ver 02.03.01 -// "ncr-scde","cc:-O6 -Xa -Hoff=BEHAVED -686 -Hwide -Hiw::(unknown)::-lsocket -lnsl -lc89:${x86_gcc_des} ${x86_gcc_opts}:::", - -// # QNX -// "qnx4", "cc:-DL_ENDIAN -DTERMIO::(unknown):::${x86_gcc_des} ${x86_gcc_opts}:", -// "qnx6", "cc:-DL_ENDIAN -DTERMIOS::(unknown)::-lsocket:${x86_gcc_des} ${x86_gcc_opts}:", - -// #### SCO/Caldera targets. -// # -// # Originally we had like unixware-*, unixware-*-pentium, unixware-*-p6, etc. -// # Now we only have blended unixware-* as it's the only one used by ./config. -// # If you want to optimize for particular microarchitecture, bypass ./config -// # and './Configure unixware-7 -Kpentium_pro' or whatever appropriate. -// # Note that not all targets include assembler support. Mostly because of -// # lack of motivation to support out-of-date platforms with out-of-date -// # compiler drivers and assemblers. Tim Rice has -// # patiently assisted to debug most of it. -// # -// # UnixWare 2.0x fails destest with -O. -// "unixware-2.0","cc:-DFILIO_H -DNO_STRINGS_H::-Kthread::-lsocket -lnsl -lresolv -lx:${x86_gcc_des} ${x86_gcc_opts}:::", -// "unixware-2.1","cc:-O -DFILIO_H::-Kthread::-lsocket -lnsl -lresolv -lx:${x86_gcc_des} ${x86_gcc_opts}:::", -// "unixware-7","cc:-O -DFILIO_H -Kalloca::-Kthread::-lsocket -lnsl:BN_LLONG MD2_CHAR RC4_INDEX ${x86_gcc_des}:${x86_elf_asm}:dlfcn:svr5-shared:-Kpic::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "unixware-7-gcc","gcc:-DL_ENDIAN -DFILIO_H -O3 -fomit-frame-pointer -march=pentium -Wall::-D_REENTRANT::-lsocket -lnsl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:gnu-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// # SCO 5 - Ben Laurie says the -O breaks the SCO cc. -// "sco5-cc", "cc:-belf::(unknown)::-lsocket -lnsl:${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:svr3-shared:-Kpic::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "sco5-gcc", "gcc:-O3 -fomit-frame-pointer::(unknown)::-lsocket -lnsl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:svr3-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - -// #### IBM's AIX. -// "aix3-cc", "cc:-O -DB_ENDIAN -qmaxmem=16384::(unknown):AIX::BN_LLONG RC4_CHAR:::", -// "aix-gcc", "gcc:-O -DB_ENDIAN::-pthread:AIX::BN_LLONG RC4_CHAR::aix_ppc32.o::::::::::dlfcn:aix-shared::-shared -Wl,-G:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::-X 32", -// "aix64-gcc","gcc:-maix64 -O -DB_ENDIAN::-pthread:AIX::SIXTY_FOUR_BIT_LONG RC4_CHAR::aix_ppc64.o::::::::::dlfcn:aix-shared::-maix64 -shared -Wl,-G:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::-X64", -// # Below targets assume AIX 5. Idea is to effectively disregard $OBJECT_MODE -// # at build time. $OBJECT_MODE is respected at ./config stage! -// "aix-cc", "cc:-q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst::-qthreaded:AIX::BN_LLONG RC4_CHAR::aix_ppc32.o::::::::::dlfcn:aix-shared::-q32 -G:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::-X 32", -// "aix64-cc", "cc:-q64 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst::-qthreaded:AIX::SIXTY_FOUR_BIT_LONG RC4_CHAR::aix_ppc64.o::::::::::dlfcn:aix-shared::-q64 -G:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::-X 64", - -// # -// # Cray T90 and similar (SDSC) -// # It's Big-endian, but the algorithms work properly when B_ENDIAN is NOT -// # defined. The T90 ints and longs are 8 bytes long, and apparently the -// # B_ENDIAN code assumes 4 byte ints. Fortunately, the non-B_ENDIAN and -// # non L_ENDIAN code aligns the bytes in each word correctly. -// # -// # The BIT_FIELD_LIMITS define is to avoid two fatal compiler errors: -// #'Taking the address of a bit field is not allowed. ' -// #'An expression with bit field exists as the operand of "sizeof" ' -// # (written by Wayne Schroeder ) -// # -// # j90 is considered the base machine type for unicos machines, -// # so this configuration is now called "cray-j90" ... -// "cray-j90", "cc: -DBIT_FIELD_LIMITS -DTERMIOS::(unknown):CRAY::SIXTY_FOUR_BIT_LONG DES_INT:::", - -// # -// # Cray T3E (Research Center Juelich, beckman@acl.lanl.gov) -// # -// # The BIT_FIELD_LIMITS define was written for the C90 (it seems). I added -// # another use. Basically, the problem is that the T3E uses some bit fields -// # for some st_addr stuff, and then sizeof and address-of fails -// # I could not use the ams/alpha.o option because the Cray assembler, 'cam' -// # did not like it. -// "cray-t3e", "cc: -DBIT_FIELD_LIMITS -DTERMIOS::(unknown):CRAY::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT:::", - -// # DGUX, 88100. -// "dgux-R3-gcc", "gcc:-O3 -fomit-frame-pointer::(unknown):::RC4_INDEX DES_UNROLL:::", -// "dgux-R4-gcc", "gcc:-O3 -fomit-frame-pointer::(unknown)::-lnsl -lsocket:RC4_INDEX DES_UNROLL:::", -// "dgux-R4-x86-gcc", "gcc:-O3 -fomit-frame-pointer -DL_ENDIAN::(unknown)::-lnsl -lsocket:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}", - -// # Sinix/ReliantUNIX RM400 -// # NOTE: The CDS++ Compiler up to V2.0Bsomething has the IRIX_CC_BUG optimizer problem. Better use -g */ -// "ReliantUNIX","cc:-KPIC -g -DTERMIOS -DB_ENDIAN::-Kthread:SNI:-lsocket -lnsl -lc -L/usr/ucblib -lucb:BN_LLONG DES_PTR DES_RISC2 DES_UNROLL BF_PTR:${no_asm}:dlfcn:reliantunix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -// "SINIX","cc:-O::(unknown):SNI:-lsocket -lnsl -lc -L/usr/ucblib -lucb:RC4_INDEX RC4_CHAR:::", -// "SINIX-N","/usr/ucb/cc:-O2 -misaligned::(unknown)::-lucb:RC4_INDEX RC4_CHAR:::", - -// # SIEMENS BS2000/OSD: an EBCDIC-based mainframe -// "BS2000-OSD","c89:-O -XLLML -XLLMK -XL -DB_ENDIAN -DTERMIOS -DCHARSET_EBCDIC::(unknown)::-lsocket -lnsl:THIRTY_TWO_BIT DES_PTR DES_UNROLL MD2_CHAR RC4_INDEX RC4_CHAR BF_PTR:::", - -// # OS/390 Unix an EBCDIC-based Unix system on IBM mainframe -// # You need to compile using the c89.sh wrapper in the tools directory, because the -// # IBM compiler does not like the -L switch after any object modules. -// # -// "OS390-Unix","c89.sh:-O -DB_ENDIAN -DCHARSET_EBCDIC -DNO_SYS_PARAM_H -D_ALL_SOURCE::(unknown):::THIRTY_TWO_BIT DES_PTR DES_UNROLL MD2_CHAR RC4_INDEX RC4_CHAR BF_PTR:::", - -// # Win64 targets, WIN64I denotes IA-64 and WIN64A - AMD64 -// "VC-WIN64I","cl::::WIN64I::SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:${no_asm}:win32", -// "VC-WIN64A","cl::::WIN64A::SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:${no_asm}:win32", - -// # Visual C targets -// "VC-NT","cl::::WINNT::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}:${no_asm}:win32", -// "VC-CE","cl::::WINCE::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}:${no_asm}:win32", -// "VC-WIN32","cl::::WIN32::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}:${no_asm}:win32", - -// # Borland C++ 4.5 -// "BC-32","bcc32::::WIN32::BN_LLONG DES_PTR RC4_INDEX EXPORT_VAR_AS_FN:${no_asm}:win32", - -// # MinGW -// "mingw", "gcc:-mno-cygwin -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall -D_WIN32_WINNT=0x333:::MINGW32:-lwsock32 -lgdi32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_coff_asm}:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin -shared:.dll.a", - -// # UWIN -// "UWIN", "cc:-DTERMIOS -DL_ENDIAN -O -Wall:::UWIN::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:win32", - -// # Cygwin -// "Cygwin-pre1.3", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown):CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:win32", -// "Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall:::CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_coff_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a", -// "debug-Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -march=i486 -Wall -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -g -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror:::CYGWIN32:::${no_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a", - -// # NetWare from David Ward (dsward@novell.com) -// # requires either MetroWerks NLM development tools, or gcc / nlmconv -// # NetWare defaults socket bio to WinSock sockets. However, -// # the builds can be configured to use BSD sockets instead. -// # netware-clib => legacy CLib c-runtime support -// "netware-clib", "mwccnlm::::::${x86_gcc_opts}::", -// "netware-clib-bsdsock", "mwccnlm::::::${x86_gcc_opts}::", -// "netware-clib-gcc", "i586-netware-gcc:-nostdinc -I/ndk/nwsdk/include/nlm -I/ndk/ws295sdk/include -DL_ENDIAN -DNETWARE_CLIB -DOPENSSL_SYSNAME_NETWARE -O2 -Wall:::::${x86_gcc_opts}::", -// "netware-clib-bsdsock-gcc", "i586-netware-gcc:-nostdinc -I/ndk/nwsdk/include/nlm -DNETWARE_BSDSOCK -DNETDB_USE_INTERNET -DL_ENDIAN -DNETWARE_CLIB -DOPENSSL_SYSNAME_NETWARE -O2 -Wall:::::${x86_gcc_opts}::", -// # netware-libc => LibC/NKS support -// "netware-libc", "mwccnlm::::::BN_LLONG ${x86_gcc_opts}::", -// "netware-libc-bsdsock", "mwccnlm::::::BN_LLONG ${x86_gcc_opts}::", -// "netware-libc-gcc", "i586-netware-gcc:-nostdinc -I/ndk/libc/include -I/ndk/libc/include/winsock -DL_ENDIAN -DNETWARE_LIBC -DOPENSSL_SYSNAME_NETWARE -DTERMIO -O2 -Wall:::::BN_LLONG ${x86_gcc_opts}::", -// "netware-libc-bsdsock-gcc", "i586-netware-gcc:-nostdinc -I/ndk/libc/include -DNETWARE_BSDSOCK -DL_ENDIAN -DNETWARE_LIBC -DOPENSSL_SYSNAME_NETWARE -DTERMIO -O2 -Wall:::::BN_LLONG ${x86_gcc_opts}::", - -// # DJGPP -// "DJGPP", "gcc:-I/dev/env/WATT_ROOT/inc -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -Wall:::MSDOS:-L/dev/env/WATT_ROOT/lib -lwatt:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:", - -// # Ultrix from Bernhard Simon -// "ultrix-cc","cc:-std1 -O -Olimit 2500 -DL_ENDIAN::(unknown):::::::", -// "ultrix-gcc","gcc:-O3 -DL_ENDIAN::(unknown):::BN_LLONG::::", -// # K&R C is no longer supported; you need gcc on old Ultrix installations -// ##"ultrix","cc:-O2 -DNOPROTO -DNOCONST -DL_ENDIAN::(unknown):::::::", - -// ##### MacOS X (a.k.a. Rhapsody or Darwin) setup -// "rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown):MACOSX_RHAPSODY::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}::", -// "darwin-ppc-cc","cc:-arch ppc -O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::osx_ppc32.o::::::::::dlfcn:darwin-shared:-fPIC -fno-common:-arch ppc -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", -// "darwin64-ppc-cc","cc:-arch ppc64 -O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::osx_ppc64.o::::::::::dlfcn:darwin-shared:-fPIC -fno-common:-arch ppc64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", -// "darwin-i386-cc","cc:-arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", -// "debug-darwin-i386-cc","cc:-arch i386 -g3 -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", -// "darwin64-x86_64-cc","cc:-arch x86_64 -O3 -fomit-frame-pointer -DL_ENDIAN -DMD32_REG_T=int -Wall::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK BF_PTR2 DES_INT DES_UNROLL:${no_asm}:dlfcn:darwin-shared:-fPIC -fno-common:-arch x86_64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", -// "debug-darwin-ppc-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DB_ENDIAN -g -Wall -O::-D_REENTRANT:MACOSX::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::osx_ppc32.o::::::::::dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", - -// ##### A/UX -// "aux3-gcc","gcc:-O2 -DTERMIO::(unknown):AUX:-lbsd:RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::", - -// ##### Sony NEWS-OS 4.x -// "newsos4-gcc","gcc:-O -DB_ENDIAN::(unknown):NEWS4:-lmld -liberty:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::", - -// ##### GNU Hurd -// "hurd-x86", "gcc:-DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -march=i486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC", - -// ##### OS/2 EMX -// "OS2-EMX", "gcc::::::::", - -// ##### VxWorks for various targets -// "vxworks-ppc405","ccppc:-g -msoft-float -mlongcall -DCPU=PPC405 -I\$(WIND_BASE)/target/h:::VXWORKS:-r:::::", -// "vxworks-ppc750","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h \$(DEBUG_FLAG):::VXWORKS:-r:::::", -// "vxworks-ppc750-debug","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -DDEBUG -g:::VXWORKS:-r:::::", -// "vxworks-ppc860","ccppc:-nostdinc -msoft-float -DCPU=PPC860 -DNO_STRINGS_H -I\$(WIND_BASE)/target/h:::VXWORKS:-r:::::", -// "vxworks-mipsle","ccmips:-B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -DL_ENDIAN -EL -Wl,-EL -mips2 -mno-branch-likely -G 0 -fno-builtin -msoft-float -DCPU=MIPS32 -DMIPSEL -DNO_STRINGS_H -I\$(WIND_BASE)/target/h:::VXWORKS:-r::${no_asm}::::::ranlibmips:", - -// ##### Compaq Non-Stop Kernel (Tandem) -// "tandem-c89","c89:-Ww -D__TANDEM -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D_TANDEM_SOURCE -DB_ENDIAN::(unknown):::THIRTY_TWO_BIT:::", - -{enable if you want FIPS support and are using an openssl library with FIPS support compiled in.} -{$DEFINE OPENSSL_FIPS} -//use this only for Safe Stack define and some define changes in OpenSSL 1.0 -//defines. - -{$UNDEF OPENSSL_1_0} - -{$IFDEF WIN32} - {$DEFINE OPENSSL_SYSNAME_WIN32} - {$DEFINE OPENSSL_SYS_WIN32} - {$DEFINE L_ENDIAN} - {$DEFINE DSO_WIN32} - - {$DEFINE BN_LLONG} - {$DEFINE RC4_INDEX} - {$DEFINE EXPORT_VAR_AS_FN} - {$DEFINE RC4_INDEX} - {$DEFINE MD2_INT} - - {$DEFINE _CRT_SECURE_NO_DEPRECATE} - {$DEFINE _CRT_NONSTDC_NO_DEPRECATE} - {$DEFINE BN_ASM} - {$DEFINE MD5_ASM} - {$DEFINE SHA1_ASM} - {$DEFINE RMD160_ASM} - {$DEFINE OPENSSL_NO_CMS} - {$DEFINE OPENSSL_NO_GMP} - {$DEFINE OPENSSL_NO_CAMELLIA} - {$DEFINE OPENSSL_NO_RC5} - {$DEFINE OPENSSL_NO_MD2} - {$DEFINE OPENSSL_NO_MDC2} - {$DEFINE OPENSSL_NO_KRB5} - {$DEFINE OPENSSL_NO_MDC} - {$DEFINE OPENSSL_NO_DYNAMIC_ENGINE} - {$DEFINE OPENSSL_NO_RFC3779} - {$DEFINE OPENSSL_NO_SEED} - - {$DEFINE OPENSSL_NO_CAPIENG} - {$DEFINE OPENSSL_NO_JPAKE} - {$DEFINE OPENSSL_1_0} -{$ENDIF} - -{$IFDEF WINCE} - {$DEFINE BN_LLONG} - {$DEFINE RC4_INDEX} - {$DEFINE EXPORT_VAR_AS_FN} - {$DEFINE RC4_INDEX} - {$DEFINE MD2_INT} - {$DEFINE OPENSSL_NO_CMS} - {$DEFINE OPENSSL_NO_CAMELLIA} - {$DEFINE OPENSSL_NO_RC5} - {$DEFINE OPENSSL_NO_MD2} - {$DEFINE OPENSSL_NO_MDC2} - {$DEFINE OPENSSL_NO_KRB5} - {$DEFINE OPENSSL_NO_DYNAMIC_ENGINE} - - {$DEFINE EXPORT_VAR_AS_FN} - {$DEFINE OPENSSL_NO_RFC3779} - {$DEFINE OPENSSL_NO_SEED} - {$DEFINE OPENSSL_NO_CAPIENG} - {$DEFINE OPENSSL_NO_JPAKE} -{$ENDIF} - -{$IFDEF WIN64} - //"VC-WIN64A","cl::::WIN64A::-SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:${no_asm}:win32", - {$DEFINE SIXTY_FOUR_BIT} - {$DEFINE RC4_CHUNK_LL} - {$DEFINE DES_INT} - {$DEFINE EXPORT_VAR_AS_FN} - - {$DEFINE L_ENDIAN} - - {$DEFINE DSO_WIN32} - {$DEFINE OPENSSL_SYSNAME_WIN32} - {$DEFINE OPENSSL_SYSNAME_WINNT} - {$DEFINE UNICODE} - {$DEFINE _UNICODE} - {$DEFINE _CRT_SECURE_NO_DEPRECATE} - {$DEFINE _CRT_NONSTDC_NO_DEPRECATE} - {$DEFINE OPENSSL_NO_CAMELLIA} - {$DEFINE OPENSSL_NO_RC5} - {$DEFINE OPENSSL_NO_MD2} - {$DEFINE OPENSSL_NO_MDC2} - {$DEFINE OPENSSL_NO_KRB5} - {$DEFINE OPENSSL_NO_DYNAMIC_ENGINE} - - {$DEFINE EXPORT_VAR_AS_FN} - {$DEFINE OPENSSL_NO_GMP} - {$DEFINE OPENSSL_NO_RFC3779} - {$DEFINE OPENSSL_NO_SEED} - {$DEFINE OPENSSL_NO_CAPIENG} - {$DEFINE OPENSSL_NO_JPAKE} - {$DEFINE OPENSSL_1_0} -{$ENDIF} - -{$IFDEF UNIX} -//attempt to get this right from FreeBSD CVS -//Makefile compile options. The file is located -//at http://www.freebsd.org/cgi/cvsweb.cgi/src/crypto/openssl/ . - {$DEFINE OPENSSL_NO_CAMELLIA} - {$DEFINE OPENSSL_NO_GMP} - {$DEFINE OPENSSL_NO_MD2} - {$DEFINE OPENSSL_NO_MDC2} - {$DEFINE OPENSSL_NO_RC5} - {$DEFINE OPENSSL_NO_SEED} - {$DEFINE OPENSSL_NO_RFC3779} - - {$DEFINE OPENSSL_NO_CAPIENG} - {$DEFINE OPENSSL_NO_JPAKE} -{$ENDIF} - -//#if (defined(OPENSSL_NO_RSA) || defined(OPENSSL_NO_MD5)) && !defined(OPENSSL_NO_SSL2) -//#define OPENSSL_NO_SSL2 -//#endif -{$IFDEF OPENSSL_NO_RSA} - {$IFNDEF OPENSSL_NO_SSL2} - {$DEFINE OPENSSL_NO_SSL2} - {$ENDIF} -{$ENDIF} -{$IFDEF OPENSSL_NO_MD5} - {$IFNDEF OPENSSL_NO_SSL2} - {$DEFINE OPENSSL_NO_SSL2} - {$ENDIF} -{$ENDIF} - -{$IFDEF WIN64} - {$DEFINE SYS_WIN} -{$ENDIF} -{$IFDEF WIN32} - {$DEFINE SYS_WIN} -{$ENDIF} -{$IFDEF WINCE} - {$DEFINE SYS_WIN} -{$ENDIF} - -{$IFNDEF SIXTY_FOUR_BIT} - {$IFNDEF SIXTY_FOUR_BIT_LONG} -//I've over simplified this because we don't support 8 or 16bit architectures - {$DEFINE THIRTY_TWO_BIT} - {$ENDIF} -{$ENDIF} -{$IFDEF OPENSSL_1_0} - {$DEFINE DEBUG_SAFESTACK} - {$UNDEF OPENSSL_NO_SEED} - {$UNDEF OPENSSL_NO_MDC2} - {$UNDEF OPENSSL_NO_CMS} - {$UNDEF OPENSSL_NO_CAPIENG} -{$ENDIF} - -// the following emits are a workaround to a -// name conflict with Win32 API header files -(*$HPPEMIT '#include '*) -{$IFDEF SYS_WIN} -(*$HPPEMIT '#undef X509_NAME'*) -(*$HPPEMIT '#undef X509_EXTENSIONS'*) -(*$HPPEMIT '#undef X509_CERT_PAIR'*) -(*$HPPEMIT '#undef PKCS7_ISSUER_AND_SERIAL'*) -(*$HPPEMIT '#undef OCSP_RESPONSE'*) -(*$HPPEMIT '#undef OCSP_REQUEST'*) -(*$HPPEMIT '#undef PKCS7_SIGNER_INFO'*) -(*$HPPEMIT '#undef OCSP_REQUEST'*) -(*$HPPEMIT '#undef OCSP_RESPONSE'*) -{$ENDIF} - -// the following emits are a workaround to allow -// compiling in C++ without having to re-define -// OpenSSL data types and without having to -// include the OpenSSL header files -{$IFDEF HAS_DIRECTIVE_HPPEMIT_NAMESPACE} -{$HPPEMIT OPENNAMESPACE} -{$ELSE} -(*$HPPEMIT 'namespace Idsslopensslheaders'*) -(*$HPPEMIT '{'*) -{$ENDIF} -(*$HPPEMIT ' struct SSL;'*) -(*$HPPEMIT ' typedef SSL* PSSL;'*) -(*$HPPEMIT ' struct SSL_CTX;'*) -(*$HPPEMIT ' typedef SSL_CTX* PSSL_CTX;'*) -(*$HPPEMIT ' struct SSL_METHOD;'*) -(*$HPPEMIT ' typedef SSL_METHOD* PSSL_METHOD;'*) -(*$HPPEMIT ' struct X509;'*) -(*$HPPEMIT ' typedef X509* PX509;'*) -(*$HPPEMIT ' struct X509_NAME;'*) -(*$HPPEMIT ' typedef X509_NAME* PX509_NAME;'*) -{$IFDEF HAS_DIRECTIVE_HPPEMIT_NAMESPACE} -{$HPPEMIT CLOSENAMESPACE} -{$ELSE} -(*$HPPEMIT '}'*) -{$ENDIF} - -// RLebeau: why are the following types not being placed in -// the Idsslopensslheaders namespace with the types above? -(*$HPPEMIT 'struct RSA;'*) -(*$HPPEMIT 'typedef RSA* PRSA;'*) -(*$HPPEMIT 'struct DSA;'*) -(*$HPPEMIT 'typedef DSA* PDSA;'*) -(*$HPPEMIT 'struct DH;'*) -(*$HPPEMIT 'typedef DH* PDH;'*) -(*$HPPEMIT 'typedef void* PEC_KEY;'*) - -uses - IdException, - IdGlobal, - {$IFDEF WINDOWS} - Windows, - IdWinsock2, - {$ENDIF} - {$IFDEF USE_VCL_POSIX} - Posix.SysSocket, - Posix.SysTime, - Posix.SysTypes, - {$ENDIF} - {$IFDEF KYLIXCOMPAT} - libc, - {$ENDIF} - {$IFDEF USE_BASEUNIX} - baseunix, - sockets, - {$ENDIF} - SysUtils, - IdCTypes; - -//temp for compile tests -{.$DEFINE SSLEAY_MACROS} - -const - {$IFNDEF HAS_PAnsiChar} - cNull: TIdAnsiChar = 0; - {$ENDIF} - - {$EXTERNALSYM CONF_MFLAGS_IGNORE_ERRORS} - CONF_MFLAGS_IGNORE_ERRORS = $1; - {$EXTERNALSYM CONF_MFLAGS_IGNORE_RETURN_CODES} - CONF_MFLAGS_IGNORE_RETURN_CODES = $2; - {$EXTERNALSYM CONF_MFLAGS_SILENT} - CONF_MFLAGS_SILENT = $4; - {$EXTERNALSYM CONF_MFLAGS_NO_DSO} - CONF_MFLAGS_NO_DSO = $8; - {$EXTERNALSYM CONF_MFLAGS_IGNORE_MISSING_FILE} - CONF_MFLAGS_IGNORE_MISSING_FILE = $10; - {$EXTERNALSYM CONF_MFLAGS_DEFAULT_SECTION} - CONF_MFLAGS_DEFAULT_SECTION = $20; - {$EXTERNALSYM CONF_F_CONF_DUMP_FP} - CONF_F_CONF_DUMP_FP = 104; - {$EXTERNALSYM CONF_F_CONF_LOAD} - CONF_F_CONF_LOAD = 100; - {$EXTERNALSYM CONF_F_CONF_LOAD_BIO} - CONF_F_CONF_LOAD_BIO = 102; - {$EXTERNALSYM CONF_F_CONF_LOAD_FP} - CONF_F_CONF_LOAD_FP = 103; - {$EXTERNALSYM CONF_F_CONF_MODULES_LOAD} - CONF_F_CONF_MODULES_LOAD = 116; - {$EXTERNALSYM CONF_F_DEF_LOAD} - CONF_F_DEF_LOAD = 120; - {$EXTERNALSYM CONF_F_DEF_LOAD_BIO} - CONF_F_DEF_LOAD_BIO = 121; - {$EXTERNALSYM CONF_F_MODULE_INIT} - CONF_F_MODULE_INIT = 115; - {$EXTERNALSYM CONF_F_MODULE_LOAD_DSO} - CONF_F_MODULE_LOAD_DSO = 117; - {$EXTERNALSYM CONF_F_CONF_PARSE_LIST} - CONF_F_CONF_PARSE_LIST = 119; - {$EXTERNALSYM CONF_F_MODULE_RUN} - CONF_F_MODULE_RUN = 118; - {$EXTERNALSYM CONF_F_NCONF_DUMP_BIO} - CONF_F_NCONF_DUMP_BIO = 105; - {$EXTERNALSYM CONF_F_NCONF_DUMP_FP} - CONF_F_NCONF_DUMP_FP = 106; - {$EXTERNALSYM CONF_F_NCONF_GET_NUMBER} - CONF_F_NCONF_GET_NUMBER = 107; - {$EXTERNALSYM CONF_F_NCONF_GET_NUMBER_E} - CONF_F_NCONF_GET_NUMBER_E = 112; - {$EXTERNALSYM CONF_F_NCONF_GET_SECTION} - CONF_F_NCONF_GET_SECTION = 108; - {$EXTERNALSYM CONF_F_NCONF_GET_STRING} - CONF_F_NCONF_GET_STRING = 109; - {$EXTERNALSYM CONF_F_NCONF_LOAD} - CONF_F_NCONF_LOAD = 113; - {$EXTERNALSYM CONF_F_NCONF_LOAD_BIO} - CONF_F_NCONF_LOAD_BIO = 110; - {$EXTERNALSYM CONF_F_NCONF_LOAD_FP} - CONF_F_NCONF_LOAD_FP = 114; - {$EXTERNALSYM CONF_F_NCONF_NEW} - CONF_F_NCONF_NEW = 111; - {$EXTERNALSYM CONF_F_STR_COPY} - CONF_F_STR_COPY = 101; - -//* Reason codes. */ - {$EXTERNALSYM CONF_R_ERROR_LOADING_DSO} - CONF_R_ERROR_LOADING_DSO = 110; - {$EXTERNALSYM CONF_R_LIST_CANNOT_BE_NULL} - CONF_R_LIST_CANNOT_BE_NULL = 115; - {$EXTERNALSYM CONF_R_MISSING_CLOSE_SQUARE_BRACKET} - CONF_R_MISSING_CLOSE_SQUARE_BRACKET = 100; - {$EXTERNALSYM CONF_R_MISSING_EQUAL_SIGN} - CONF_R_MISSING_EQUAL_SIGN = 101; - {$EXTERNALSYM CONF_R_MISSING_FINISH_FUNCTION} - CONF_R_MISSING_FINISH_FUNCTION = 111; - {$EXTERNALSYM CONF_R_MISSING_INIT_FUNCTION} - CONF_R_MISSING_INIT_FUNCTION = 112; - {$EXTERNALSYM CONF_R_MODULE_INITIALIZATION_ERROR} - CONF_R_MODULE_INITIALIZATION_ERROR = 109; - {$EXTERNALSYM CONF_R_NO_CLOSE_BRACE} - CONF_R_NO_CLOSE_BRACE = 102; - {$EXTERNALSYM CONF_R_NO_CONF} - CONF_R_NO_CONF = 105; - {$EXTERNALSYM CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE} - CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE = 106; - {$EXTERNALSYM CONF_R_NO_SECTION} - CONF_R_NO_SECTION = 107; - {$EXTERNALSYM CONF_R_NO_SUCH_FILE} - CONF_R_NO_SUCH_FILE = 114; - {$EXTERNALSYM CONF_R_NO_VALUE} - CONF_R_NO_VALUE = 108; - {$EXTERNALSYM CONF_R_UNABLE_TO_CREATE_NEW_SECTION} - CONF_R_UNABLE_TO_CREATE_NEW_SECTION = 103; - {$EXTERNALSYM CONF_R_UNKNOWN_MODULE_NAME} - CONF_R_UNKNOWN_MODULE_NAME = 113; - {$EXTERNALSYM CONF_R_VARIABLE_HAS_NO_VALUE} - CONF_R_VARIABLE_HAS_NO_VALUE = 104; - - {$EXTERNALSYM ASN1_F_A2D_ASN1_OBJECT} - ASN1_F_A2D_ASN1_OBJECT = 100; - {$EXTERNALSYM ASN1_F_A2I_ASN1_ENUMERATED} - ASN1_F_A2I_ASN1_ENUMERATED = 236; - {$EXTERNALSYM ASN1_F_A2I_ASN1_INTEGER} - ASN1_F_A2I_ASN1_INTEGER = 101; - {$EXTERNALSYM ASN1_F_A2I_ASN1_STRING} - ASN1_F_A2I_ASN1_STRING = 102; - {$EXTERNALSYM ASN1_F_ASN1_COLLATE_PRIMITIVE} - ASN1_F_ASN1_COLLATE_PRIMITIVE = 103; - {$EXTERNALSYM ASN1_F_ASN1_D2I_BIO} - ASN1_F_ASN1_D2I_BIO = 104; - {$EXTERNALSYM ASN1_F_ASN1_D2I_FP} - ASN1_F_ASN1_D2I_FP = 105; - {$EXTERNALSYM ASN1_F_ASN1_DUP} - ASN1_F_ASN1_DUP = 106; - {$EXTERNALSYM ASN1_F_ASN1_ENUMERATED_SET} - ASN1_F_ASN1_ENUMERATED_SET = 232; - {$EXTERNALSYM ASN1_F_ASN1_ENUMERATED_TO_BN} - ASN1_F_ASN1_ENUMERATED_TO_BN = 233; - {$EXTERNALSYM ASN1_F_ASN1_GENERALIZEDTIME_NEW} - ASN1_F_ASN1_GENERALIZEDTIME_NEW = 222; - {$EXTERNALSYM ASN1_F_ASN1_GET_OBJECT} - ASN1_F_ASN1_GET_OBJECT = 107; - {$EXTERNALSYM ASN1_F_ASN1_HEADER_NEW} - ASN1_F_ASN1_HEADER_NEW = 108; - {$EXTERNALSYM ASN1_F_ASN1_I2D_BIO} - ASN1_F_ASN1_I2D_BIO = 109; - {$EXTERNALSYM ASN1_F_ASN1_I2D_FP} - ASN1_F_ASN1_I2D_FP = 110; - {$EXTERNALSYM ASN1_F_ASN1_INTEGER_SET} - ASN1_F_ASN1_INTEGER_SET = 111; - {$EXTERNALSYM ASN1_F_ASN1_INTEGER_TO_BN} - ASN1_F_ASN1_INTEGER_TO_BN = 112; - {$EXTERNALSYM ASN1_F_ASN1_OBJECT_NEW} - ASN1_F_ASN1_OBJECT_NEW = 113; - - {$EXTERNALSYM ASN1_F_ASN1_OUTPUT_DATA} - ASN1_F_ASN1_OUTPUT_DATA= 207; - - {$EXTERNALSYM ASN1_F_ASN1_PACK_STRING} - ASN1_F_ASN1_PACK_STRING = 245; - {$EXTERNALSYM ASN1_F_ASN1_PBE_SET} - ASN1_F_ASN1_PBE_SET = 253; - {$EXTERNALSYM ASN1_F_ASN1_SEQ_PACK} - ASN1_F_ASN1_SEQ_PACK = 246; - {$EXTERNALSYM ASN1_F_ASN1_SEQ_UNPACK} - ASN1_F_ASN1_SEQ_UNPACK = 247; - {$EXTERNALSYM ASN1_F_ASN1_SIGN} - ASN1_F_ASN1_SIGN = 114; - {$EXTERNALSYM ASN1_F_ASN1_STRING_NEW} - ASN1_F_ASN1_STRING_NEW = 115; - {$EXTERNALSYM ASN1_F_ASN1_STRING_TYPE_NEW} - ASN1_F_ASN1_STRING_TYPE_NEW = 116; - {$EXTERNALSYM ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING} - ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING = 117; - {$EXTERNALSYM ASN1_F_ASN1_TYPE_GET_OCTETSTRING} - ASN1_F_ASN1_TYPE_GET_OCTETSTRING = 118; - {$EXTERNALSYM ASN1_F_ASN1_TYPE_NEW} - ASN1_F_ASN1_TYPE_NEW = 119; - {$EXTERNALSYM ASN1_F_ASN1_UNPACK_STRING} - ASN1_F_ASN1_UNPACK_STRING = 248; - {$EXTERNALSYM ASN1_F_ASN1_UTCTIME_NEW} - ASN1_F_ASN1_UTCTIME_NEW = 120; - {$EXTERNALSYM ASN1_F_ASN1_VERIFY} - ASN1_F_ASN1_VERIFY = 121; - {$EXTERNALSYM ASN1_F_B64_READ_ASN1} - ASN1_F_B64_READ_ASN1 = 208; - {$EXTERNALSYM ASN1_F_B64_WRITE_ASN1} - ASN1_F_B64_WRITE_ASN1 = 209; - {$EXTERNALSYM ASN1_F_BIO_NEW_NDEF} - ASN1_F_BIO_NEW_NDEF = 212; - {$EXTERNALSYM ASN1_F_BITSTR_CB} - ASN1_F_BITSTR_CB = 180; - {$EXTERNALSYM ASN1_F_SMIME_READ_ASN1} - ASN1_F_SMIME_READ_ASN1 = 210; - {$EXTERNALSYM ASN1_F_SMIME_TEXT} - ASN1_F_SMIME_TEXT = 211; - - - {$EXTERNALSYM ASN1_F_AUTHORITY_KEYID_NEW} - ASN1_F_AUTHORITY_KEYID_NEW = 237; - {$EXTERNALSYM ASN1_F_BASIC_CONSTRAINTS_NEW} - ASN1_F_BASIC_CONSTRAINTS_NEW = 226; - {$EXTERNALSYM ASN1_F_BN_TO_ASN1_ENUMERATED} - ASN1_F_BN_TO_ASN1_ENUMERATED = 234; - {$EXTERNALSYM ASN1_F_BN_TO_ASN1_INTEGER} - ASN1_F_BN_TO_ASN1_INTEGER = 122; - {$EXTERNALSYM ASN1_F_D2I_ASN1_BIT_STRING} - ASN1_F_D2I_ASN1_BIT_STRING = 123; - {$EXTERNALSYM ASN1_F_D2I_ASN1_BMPSTRING} - ASN1_F_D2I_ASN1_BMPSTRING = 124; - {$EXTERNALSYM ASN1_F_D2I_ASN1_BOOLEAN} - ASN1_F_D2I_ASN1_BOOLEAN = 125; - {$EXTERNALSYM ASN1_F_D2I_ASN1_BYTES} - ASN1_F_D2I_ASN1_BYTES = 126; - {$EXTERNALSYM ASN1_F_D2I_ASN1_ENUMERATED} - ASN1_F_D2I_ASN1_ENUMERATED = 235; - {$EXTERNALSYM ASN1_F_D2I_ASN1_GENERALIZEDTIME} - ASN1_F_D2I_ASN1_GENERALIZEDTIME = 223; - {$EXTERNALSYM ASN1_F_D2I_ASN1_HEADER} - ASN1_F_D2I_ASN1_HEADER = 127; - {$EXTERNALSYM ASN1_F_D2I_ASN1_INTEGER} - ASN1_F_D2I_ASN1_INTEGER = 128; - {$EXTERNALSYM ASN1_F_D2I_ASN1_OBJECT} - ASN1_F_D2I_ASN1_OBJECT = 129; - {$EXTERNALSYM ASN1_F_D2I_ASN1_OCTET_STRING} - ASN1_F_D2I_ASN1_OCTET_STRING = 130; - {$EXTERNALSYM ASN1_F_D2I_ASN1_PRINT_TYPE} - ASN1_F_D2I_ASN1_PRINT_TYPE = 131; - {$EXTERNALSYM ASN1_F_D2I_ASN1_SET} - ASN1_F_D2I_ASN1_SET = 132; - {$EXTERNALSYM ASN1_F_D2I_ASN1_TIME} - ASN1_F_D2I_ASN1_TIME = 224; - {$EXTERNALSYM ASN1_F_D2I_ASN1_TYPE} - ASN1_F_D2I_ASN1_TYPE = 133; - {$EXTERNALSYM ASN1_F_D2I_ASN1_TYPE_BYTES} - ASN1_F_D2I_ASN1_TYPE_BYTES = 134; - {$EXTERNALSYM ASN1_F_D2I_ASN1_UINTEGER} - ASN1_F_D2I_ASN1_UINTEGER = 280; - {$EXTERNALSYM ASN1_F_D2I_ASN1_UTCTIME} - ASN1_F_D2I_ASN1_UTCTIME = 135; - {$EXTERNALSYM ASN1_F_D2I_ASN1_UTF8STRING} - ASN1_F_D2I_ASN1_UTF8STRING = 266; - {$EXTERNALSYM ASN1_F_D2I_ASN1_VISIBLESTRING} - ASN1_F_D2I_ASN1_VISIBLESTRING = 267; - {$EXTERNALSYM ASN1_F_D2I_AUTHORITY_KEYID} - ASN1_F_D2I_AUTHORITY_KEYID = 238; - {$EXTERNALSYM ASN1_F_D2I_BASIC_CONSTRAINTS} - ASN1_F_D2I_BASIC_CONSTRAINTS = 227; - {$EXTERNALSYM ASN1_F_D2I_DHPARAMS} - ASN1_F_D2I_DHPARAMS = 136; - {$EXTERNALSYM ASN1_F_D2I_DIST_POINT} - ASN1_F_D2I_DIST_POINT = 276; - {$EXTERNALSYM ASN1_F_D2I_DIST_POINT_NAME} - ASN1_F_D2I_DIST_POINT_NAME = 277; - {$EXTERNALSYM ASN1_F_D2I_DSAPARAMS} - ASN1_F_D2I_DSAPARAMS = 137; - {$EXTERNALSYM ASN1_F_D2I_DSAPRIVATEKEY} - ASN1_F_D2I_DSAPRIVATEKEY = 138; - {$EXTERNALSYM ASN1_F_D2I_DSAPUBLICKEY} - ASN1_F_D2I_DSAPUBLICKEY = 139; - {$EXTERNALSYM ASN1_F_D2I_GENERAL_NAME} - ASN1_F_D2I_GENERAL_NAME = 230; - {$EXTERNALSYM ASN1_F_D2I_NETSCAPE_CERT_SEQUENCE} - ASN1_F_D2I_NETSCAPE_CERT_SEQUENCE = 228; - {$EXTERNALSYM ASN1_F_D2I_NETSCAPE_PKEY} - ASN1_F_D2I_NETSCAPE_PKEY = 140; - {$EXTERNALSYM ASN1_F_D2I_NETSCAPE_RSA} - ASN1_F_D2I_NETSCAPE_RSA = 141; - {$EXTERNALSYM ASN1_F_D2I_NETSCAPE_RSA_2} - ASN1_F_D2I_NETSCAPE_RSA_2 = 142; - {$EXTERNALSYM ASN1_F_D2I_NETSCAPE_SPKAC} - ASN1_F_D2I_NETSCAPE_SPKAC = 143; - {$EXTERNALSYM ASN1_F_D2I_NETSCAPE_SPKI} - ASN1_F_D2I_NETSCAPE_SPKI = 144; - {$EXTERNALSYM ASN1_F_D2I_NOTICEREF} - ASN1_F_D2I_NOTICEREF = 268; - {$EXTERNALSYM ASN1_F_D2I_PBE2PARAM} - ASN1_F_D2I_PBE2PARAM = 262; - {$EXTERNALSYM ASN1_F_D2I_PBEPARAM} - ASN1_F_D2I_PBEPARAM = 249; - {$EXTERNALSYM ASN1_F_D2I_PBKDF2PARAM} - ASN1_F_D2I_PBKDF2PARAM = 263; - {$EXTERNALSYM ASN1_F_D2I_PKCS12} - ASN1_F_D2I_PKCS12 = 254; - {$EXTERNALSYM ASN1_F_D2I_PKCS12_BAGS} - ASN1_F_D2I_PKCS12_BAGS = 255; - {$EXTERNALSYM ASN1_F_D2I_PKCS12_MAC_DATA} - ASN1_F_D2I_PKCS12_MAC_DATA = 256; - {$EXTERNALSYM ASN1_F_D2I_PKCS12_SAFEBAG} - ASN1_F_D2I_PKCS12_SAFEBAG = 257; - {$EXTERNALSYM ASN1_F_D2I_PKCS7} - ASN1_F_D2I_PKCS7 = 145; - {$EXTERNALSYM ASN1_F_D2I_PKCS7_DIGEST} - ASN1_F_D2I_PKCS7_DIGEST = 146; - {$EXTERNALSYM ASN1_F_D2I_PKCS7_ENCRYPT} - ASN1_F_D2I_PKCS7_ENCRYPT = 147; - {$EXTERNALSYM ASN1_F_D2I_PKCS7_ENC_CONTENT} - ASN1_F_D2I_PKCS7_ENC_CONTENT = 148; - {$EXTERNALSYM ASN1_F_D2I_PKCS7_ENVELOPE} - ASN1_F_D2I_PKCS7_ENVELOPE = 149; - {$EXTERNALSYM ASN1_F_D2I_PKCS7_ISSUER_AND_SERIAL} - ASN1_F_D2I_PKCS7_ISSUER_AND_SERIAL = 150; - {$EXTERNALSYM ASN1_F_D2I_PKCS7_RECIP_INFO} - ASN1_F_D2I_PKCS7_RECIP_INFO = 151; - {$EXTERNALSYM ASN1_F_D2I_PKCS7_SIGNED} - ASN1_F_D2I_PKCS7_SIGNED = 152; - {$EXTERNALSYM ASN1_F_D2I_PKCS7_SIGNER_INFO} - ASN1_F_D2I_PKCS7_SIGNER_INFO = 153; - {$EXTERNALSYM ASN1_F_D2I_PKCS7_SIGN_ENVELOPE} - ASN1_F_D2I_PKCS7_SIGN_ENVELOPE = 154; - {$EXTERNALSYM ASN1_F_D2I_PKCS8_PRIV_KEY_INFO} - ASN1_F_D2I_PKCS8_PRIV_KEY_INFO = 250; - {$EXTERNALSYM ASN1_F_D2I_PKEY_USAGE_PERIOD} - ASN1_F_D2I_PKEY_USAGE_PERIOD = 239; - {$EXTERNALSYM ASN1_F_D2I_POLICYINFO} - ASN1_F_D2I_POLICYINFO = 269; - {$EXTERNALSYM ASN1_F_D2I_POLICYQUALINFO} - ASN1_F_D2I_POLICYQUALINFO = 270; - {$EXTERNALSYM ASN1_F_D2I_PRIVATEKEY} - ASN1_F_D2I_PRIVATEKEY = 155; - {$EXTERNALSYM ASN1_F_D2I_PUBLICKEY} - ASN1_F_D2I_PUBLICKEY = 156; - {$EXTERNALSYM ASN1_F_D2I_RSAPRIVATEKEY} - ASN1_F_D2I_RSAPRIVATEKEY = 157; - {$EXTERNALSYM ASN1_F_D2I_RSAPUBLICKEY} - ASN1_F_D2I_RSAPUBLICKEY = 158; - {$EXTERNALSYM ASN1_F_D2I_SXNET} - ASN1_F_D2I_SXNET = 241; - {$EXTERNALSYM ASN1_F_D2I_SXNETID} - ASN1_F_D2I_SXNETID = 243; - {$EXTERNALSYM ASN1_F_D2I_USERNOTICE} - ASN1_F_D2I_USERNOTICE = 271; - {$EXTERNALSYM ASN1_F_D2I_X509} - ASN1_F_D2I_X509 = 159; - {$EXTERNALSYM ASN1_F_D2I_X509_ALGOR} - ASN1_F_D2I_X509_ALGOR = 160; - {$EXTERNALSYM ASN1_F_D2I_X509_ATTRIBUTE} - ASN1_F_D2I_X509_ATTRIBUTE = 161; - {$EXTERNALSYM ASN1_F_D2I_X509_CINF} - ASN1_F_D2I_X509_CINF = 162; - {$EXTERNALSYM ASN1_F_D2I_X509_CRL} - ASN1_F_D2I_X509_CRL = 163; - {$EXTERNALSYM ASN1_F_D2I_X509_CRL_INFO} - ASN1_F_D2I_X509_CRL_INFO = 164; - {$EXTERNALSYM ASN1_F_D2I_X509_EXTENSION} - ASN1_F_D2I_X509_EXTENSION = 165; - {$EXTERNALSYM ASN1_F_D2I_X509_KEY} - ASN1_F_D2I_X509_KEY = 166; - {$EXTERNALSYM ASN1_F_D2I_X509_NAME} - ASN1_F_D2I_X509_NAME = 167; - {$EXTERNALSYM ASN1_F_D2I_X509_NAME_ENTRY} - ASN1_F_D2I_X509_NAME_ENTRY = 168; - {$EXTERNALSYM ASN1_F_D2I_X509_PKEY} - ASN1_F_D2I_X509_PKEY = 169; - {$EXTERNALSYM ASN1_F_D2I_X509_PUBKEY} - ASN1_F_D2I_X509_PUBKEY = 170; - {$EXTERNALSYM ASN1_F_D2I_X509_REQ} - ASN1_F_D2I_X509_REQ = 171; - {$EXTERNALSYM ASN1_F_D2I_X509_REQ_INFO} - ASN1_F_D2I_X509_REQ_INFO = 172; - {$EXTERNALSYM ASN1_F_D2I_X509_REVOKED} - ASN1_F_D2I_X509_REVOKED = 173; - {$EXTERNALSYM ASN1_F_D2I_X509_SIG} - ASN1_F_D2I_X509_SIG = 174; - {$EXTERNALSYM ASN1_F_D2I_X509_VAL} - ASN1_F_D2I_X509_VAL = 175; - {$EXTERNALSYM ASN1_F_DIST_POINT_NAME_NEW} - ASN1_F_DIST_POINT_NAME_NEW = 278; - {$EXTERNALSYM ASN1_F_DIST_POINT_NEW} - ASN1_F_DIST_POINT_NEW = 279; - {$EXTERNALSYM ASN1_F_GENERAL_NAME_NEW} - ASN1_F_GENERAL_NAME_NEW = 231; - {$EXTERNALSYM ASN1_F_I2D_ASN1_HEADER} - ASN1_F_I2D_ASN1_HEADER = 176; - {$EXTERNALSYM ASN1_F_I2D_ASN1_TIME} - ASN1_F_I2D_ASN1_TIME = 225; - {$EXTERNALSYM ASN1_F_I2D_DHPARAMS} - ASN1_F_I2D_DHPARAMS = 177; - {$EXTERNALSYM ASN1_F_I2D_DSAPARAMS} - ASN1_F_I2D_DSAPARAMS = 178; - {$EXTERNALSYM ASN1_F_I2D_DSAPRIVATEKEY} - ASN1_F_I2D_DSAPRIVATEKEY = 179; - {$EXTERNALSYM ASN1_F_I2D_DSAPUBLICKEY} - ASN1_F_I2D_DSAPUBLICKEY = 180; - {$EXTERNALSYM ASN1_F_I2D_NETSCAPE_RSA} - ASN1_F_I2D_NETSCAPE_RSA = 181; - {$EXTERNALSYM ASN1_F_I2D_PKCS7} - ASN1_F_I2D_PKCS7 = 182; - {$EXTERNALSYM ASN1_F_I2D_PRIVATEKEY} - ASN1_F_I2D_PRIVATEKEY = 183; - {$EXTERNALSYM ASN1_F_I2D_PUBLICKEY} - ASN1_F_I2D_PUBLICKEY = 184; - {$EXTERNALSYM ASN1_F_I2D_RSAPRIVATEKEY} - ASN1_F_I2D_RSAPRIVATEKEY = 185; - {$EXTERNALSYM ASN1_F_I2D_RSAPUBLICKEY} - ASN1_F_I2D_RSAPUBLICKEY = 186; - {$EXTERNALSYM ASN1_F_I2D_X509_ATTRIBUTE} - ASN1_F_I2D_X509_ATTRIBUTE = 187; - {$EXTERNALSYM ASN1_F_I2T_ASN1_OBJECT} - ASN1_F_I2T_ASN1_OBJECT = 188; - {$EXTERNALSYM ASN1_F_NETSCAPE_CERT_SEQUENCE_NEW} - ASN1_F_NETSCAPE_CERT_SEQUENCE_NEW = 229; - {$EXTERNALSYM ASN1_F_NETSCAPE_PKEY_NEW} - ASN1_F_NETSCAPE_PKEY_NEW = 189; - {$EXTERNALSYM ASN1_F_NETSCAPE_SPKAC_NEW} - ASN1_F_NETSCAPE_SPKAC_NEW = 190; - {$EXTERNALSYM ASN1_F_NETSCAPE_SPKI_NEW} - ASN1_F_NETSCAPE_SPKI_NEW = 191; - {$EXTERNALSYM ASN1_F_NOTICEREF_NEW} - ASN1_F_NOTICEREF_NEW = 272; - {$EXTERNALSYM ASN1_F_PBE2PARAM_NEW} - ASN1_F_PBE2PARAM_NEW = 264; - {$EXTERNALSYM ASN1_F_PBEPARAM_NEW} - ASN1_F_PBEPARAM_NEW = 251; - {$EXTERNALSYM ASN1_F_PBKDF2PARAM_NEW} - ASN1_F_PBKDF2PARAM_NEW = 265; - {$EXTERNALSYM ASN1_F_PKCS12_BAGS_NEW} - ASN1_F_PKCS12_BAGS_NEW = 258; - {$EXTERNALSYM ASN1_F_PKCS12_MAC_DATA_NEW} - ASN1_F_PKCS12_MAC_DATA_NEW = 259; - {$EXTERNALSYM ASN1_F_PKCS12_NEW} - ASN1_F_PKCS12_NEW = 260; - {$EXTERNALSYM ASN1_F_PKCS12_SAFEBAG_NEW} - ASN1_F_PKCS12_SAFEBAG_NEW = 261; - {$EXTERNALSYM ASN1_F_PKCS5_PBE2_SET} - ASN1_F_PKCS5_PBE2_SET = 281; - {$EXTERNALSYM ASN1_F_PKCS7_DIGEST_NEW} - ASN1_F_PKCS7_DIGEST_NEW = 192; - {$EXTERNALSYM ASN1_F_PKCS7_ENCRYPT_NEW} - ASN1_F_PKCS7_ENCRYPT_NEW = 193; - {$EXTERNALSYM ASN1_F_PKCS7_ENC_CONTENT_NEW} - ASN1_F_PKCS7_ENC_CONTENT_NEW = 194; - {$EXTERNALSYM ASN1_F_PKCS7_ENVELOPE_NEW} - ASN1_F_PKCS7_ENVELOPE_NEW = 195; - {$EXTERNALSYM ASN1_F_PKCS7_ISSUER_AND_SERIAL_NEW} - ASN1_F_PKCS7_ISSUER_AND_SERIAL_NEW = 196; - {$EXTERNALSYM ASN1_F_PKCS7_NEW} - ASN1_F_PKCS7_NEW = 197; - {$EXTERNALSYM ASN1_F_PKCS7_RECIP_INFO_NEW} - ASN1_F_PKCS7_RECIP_INFO_NEW = 198; - {$EXTERNALSYM ASN1_F_PKCS7_SIGNED_NEW} - ASN1_F_PKCS7_SIGNED_NEW = 199; - {$EXTERNALSYM ASN1_F_PKCS7_SIGNER_INFO_NEW} - ASN1_F_PKCS7_SIGNER_INFO_NEW = 200; - {$EXTERNALSYM ASN1_F_PKCS7_SIGN_ENVELOPE_NEW} - ASN1_F_PKCS7_SIGN_ENVELOPE_NEW = 201; - {$EXTERNALSYM ASN1_F_PKCS8_PRIV_KEY_INFO_NEW} - ASN1_F_PKCS8_PRIV_KEY_INFO_NEW = 252; - {$EXTERNALSYM ASN1_F_PKEY_USAGE_PERIOD_NEW} - ASN1_F_PKEY_USAGE_PERIOD_NEW = 240; - {$EXTERNALSYM ASN1_F_POLICYINFO_NEW} - ASN1_F_POLICYINFO_NEW = 273; - {$EXTERNALSYM ASN1_F_POLICYQUALINFO_NEW} - ASN1_F_POLICYQUALINFO_NEW = 274; - {$EXTERNALSYM ASN1_F_SXNETID_NEW} - ASN1_F_SXNETID_NEW = 244; - {$EXTERNALSYM ASN1_F_SXNET_NEW} - ASN1_F_SXNET_NEW = 242; - {$EXTERNALSYM ASN1_F_USERNOTICE_NEW} - ASN1_F_USERNOTICE_NEW = 275; - {$EXTERNALSYM ASN1_F_X509_ALGOR_NEW} - ASN1_F_X509_ALGOR_NEW = 202; - {$EXTERNALSYM ASN1_F_X509_ATTRIBUTE_NEW} - ASN1_F_X509_ATTRIBUTE_NEW = 203; - {$EXTERNALSYM ASN1_F_X509_CINF_NEW} - ASN1_F_X509_CINF_NEW = 204; - {$EXTERNALSYM ASN1_F_X509_CRL_INFO_NEW} - ASN1_F_X509_CRL_INFO_NEW = 205; - {$EXTERNALSYM ASN1_F_X509_CRL_NEW} - ASN1_F_X509_CRL_NEW = 206; - {$EXTERNALSYM ASN1_F_X509_DHPARAMS_NEW} - ASN1_F_X509_DHPARAMS_NEW = 207; - {$EXTERNALSYM ASN1_F_X509_EXTENSION_NEW} - ASN1_F_X509_EXTENSION_NEW = 208; - {$EXTERNALSYM ASN1_F_X509_INFO_NEW} - ASN1_F_X509_INFO_NEW = 209; - {$EXTERNALSYM ASN1_F_X509_KEY_NEW} - ASN1_F_X509_KEY_NEW = 210; - {$EXTERNALSYM ASN1_F_X509_NAME_ENTRY_NEW} - ASN1_F_X509_NAME_ENTRY_NEW = 211; - {$EXTERNALSYM ASN1_F_X509_NAME_NEW} - ASN1_F_X509_NAME_NEW = 212; - {$EXTERNALSYM ASN1_F_X509_NEW} - ASN1_F_X509_NEW = 213; - {$EXTERNALSYM ASN1_F_X509_PKEY_NEW} - ASN1_F_X509_PKEY_NEW = 214; - {$EXTERNALSYM ASN1_F_X509_PUBKEY_NEW} - ASN1_F_X509_PUBKEY_NEW = 215; - {$EXTERNALSYM ASN1_F_X509_REQ_INFO_NEW} - ASN1_F_X509_REQ_INFO_NEW = 216; - {$EXTERNALSYM ASN1_F_X509_REQ_NEW} - ASN1_F_X509_REQ_NEW = 217; - {$EXTERNALSYM ASN1_F_X509_REVOKED_NEW} - ASN1_F_X509_REVOKED_NEW = 218; - {$EXTERNALSYM ASN1_F_X509_SIG_NEW} - ASN1_F_X509_SIG_NEW = 219; - {$EXTERNALSYM ASN1_F_X509_VAL_FREE} - ASN1_F_X509_VAL_FREE = 220; - {$EXTERNALSYM ASN1_F_X509_VAL_NEW} - ASN1_F_X509_VAL_NEW = 221; - {$EXTERNALSYM ASN1_OBJECT_FLAG_CRITICAL} - ASN1_OBJECT_FLAG_CRITICAL = $02; - {$EXTERNALSYM ASN1_OBJECT_FLAG_DYNAMIC} - ASN1_OBJECT_FLAG_DYNAMIC = $01; - {$EXTERNALSYM ASN1_OBJECT_FLAG_DYNAMIC_DATA} - ASN1_OBJECT_FLAG_DYNAMIC_DATA = $08; - {$EXTERNALSYM ASN1_OBJECT_FLAG_DYNAMIC_STRINGS} - ASN1_OBJECT_FLAG_DYNAMIC_STRINGS = $04; - {$EXTERNALSYM ASN1_R_ADDING_OBJECT} - ASN1_R_ADDING_OBJECT = 171; - {$EXTERNALSYM ASN1_R_ASN1_PARSE_ERROR} - ASN1_R_ASN1_PARSE_ERROR= 198; - {$EXTERNALSYM ASN1_R_ASN1_SIG_PARSE_ERROR} - ASN1_R_ASN1_SIG_PARSE_ERROR = 199; - - {$EXTERNALSYM ASN1_R_AUX_ERROR} - ASN1_R_AUX_ERROR = 100; - {$EXTERNALSYM ASN1_R_BAD_CLASS} - ASN1_R_BAD_CLASS = 101; - {$EXTERNALSYM ASN1_R_BAD_OBJECT_HEADER} - ASN1_R_BAD_OBJECT_HEADER = 102; - {$EXTERNALSYM ASN1_R_BAD_PASSWORD_READ} - ASN1_R_BAD_PASSWORD_READ = 103; - {$EXTERNALSYM ASN1_R_BAD_TAG} - ASN1_R_BAD_TAG = 104; - {$EXTERNALSYM ASN1_R_BMPSTRING_IS_WRONG_LENGTH} - ASN1_R_BMPSTRING_IS_WRONG_LENGTH = 210; - {$EXTERNALSYM ASN1_R_BN_LIB} - ASN1_R_BN_LIB = 105; - {$EXTERNALSYM ASN1_R_BOOLEAN_IS_WRONG_LENGTH} - ASN1_R_BOOLEAN_IS_WRONG_LENGTH = 106; - {$EXTERNALSYM ASN1_R_BUFFER_TOO_SMALL} - ASN1_R_BUFFER_TOO_SMALL = 107; - {$EXTERNALSYM ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER} - ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER = 108; - {$EXTERNALSYM ASN1_R_DATA_IS_WRONG} - ASN1_R_DATA_IS_WRONG = 109; - {$EXTERNALSYM ASN1_R_DECODE_ERROR} - ASN1_R_DECODE_ERROR = 110; - {$EXTERNALSYM ASN1_R_DECODING_ERROR} - ASN1_R_DECODING_ERROR = 111; - {$EXTERNALSYM ASN1_R_DEPTH_EXCEEDED} - ASN1_R_DEPTH_EXCEEDED = 174; - {$EXTERNALSYM ASN1_R_ENCODE_ERROR} - ASN1_R_ENCODE_ERROR = 112; - {$EXTERNALSYM ASN1_R_ERROR_GETTING_TIME} - ASN1_R_ERROR_GETTING_TIME = 173; - {$EXTERNALSYM ASN1_R_ERROR_LOADING_SECTION} - ASN1_R_ERROR_LOADING_SECTION = 172; - {$EXTERNALSYM ASN1_R_ERROR_PARSING_SET_ELEMENT} - ASN1_R_ERROR_PARSING_SET_ELEMENT = 113; - {$EXTERNALSYM ASN1_R_ERROR_SETTING_CIPHER_PARAMS} - ASN1_R_ERROR_SETTING_CIPHER_PARAMS = 114; - {$EXTERNALSYM ASN1_R_EXPECTING_AN_INTEGER} - ASN1_R_EXPECTING_AN_INTEGER = 115; - {$EXTERNALSYM ASN1_R_EXPECTING_AN_OBJECT} - ASN1_R_EXPECTING_AN_OBJECT = 116; - {$EXTERNALSYM ASN1_R_EXPECTING_A_BOOLEAN} - ASN1_R_EXPECTING_A_BOOLEAN = 117; - {$EXTERNALSYM ASN1_R_EXPECTING_A_TIME} - ASN1_R_EXPECTING_A_TIME = 118; - {$EXTERNALSYM ASN1_R_EXPLICIT_LENGTH_MISMATCH} - ASN1_R_EXPLICIT_LENGTH_MISMATCH = 119; - {$EXTERNALSYM ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED} - ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED = 120; - {$EXTERNALSYM ASN1_R_FIELD_MISSING} - ASN1_R_FIELD_MISSING = 121; - {$EXTERNALSYM ASN1_R_FIRST_NUM_TOO_LARGE} - ASN1_R_FIRST_NUM_TOO_LARGE = 122; - {$EXTERNALSYM ASN1_R_HEADER_TOO_LONG} - ASN1_R_HEADER_TOO_LONG = 123; - {$EXTERNALSYM ASN1_R_ILLEGAL_BITSTRING_FORMAT} - ASN1_R_ILLEGAL_BITSTRING_FORMAT = 175; - {$EXTERNALSYM ASN1_R_ILLEGAL_BOOLEAN} - ASN1_R_ILLEGAL_BOOLEAN = 176; - {$EXTERNALSYM ASN1_R_ILLEGAL_CHARACTERS} - ASN1_R_ILLEGAL_CHARACTERS = 124; - {$EXTERNALSYM ASN1_R_ILLEGAL_FORMAT} - ASN1_R_ILLEGAL_FORMAT = 177; - {$EXTERNALSYM ASN1_R_ILLEGAL_HEX} - ASN1_R_ILLEGAL_HEX = 178; - {$EXTERNALSYM ASN1_R_ILLEGAL_IMPLICIT_TAG} - ASN1_R_ILLEGAL_IMPLICIT_TAG = 179; - {$EXTERNALSYM ASN1_R_ILLEGAL_INTEGER} - ASN1_R_ILLEGAL_INTEGER = 180; - {$EXTERNALSYM ASN1_R_ILLEGAL_NESTED_TAGGING} - ASN1_R_ILLEGAL_NESTED_TAGGING = 181; - {$EXTERNALSYM ASN1_R_ILLEGAL_NULL} - ASN1_R_ILLEGAL_NULL = 125; - {$EXTERNALSYM ASN1_R_ILLEGAL_NULL_VALUE} - ASN1_R_ILLEGAL_NULL_VALUE = 182; - {$EXTERNALSYM ASN1_R_ILLEGAL_OBJECT} - ASN1_R_ILLEGAL_OBJECT = 183; - {$EXTERNALSYM ASN1_R_ILLEGAL_OPTIONAL_ANY} - ASN1_R_ILLEGAL_OPTIONAL_ANY = 126; - {$EXTERNALSYM ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE} - ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE = 170; - {$EXTERNALSYM ASN1_R_ILLEGAL_TAGGED_ANY} - ASN1_R_ILLEGAL_TAGGED_ANY = 127; - {$EXTERNALSYM ASN1_R_ILLEGAL_TIME_VALUE} - ASN1_R_ILLEGAL_TIME_VALUE = 184; - {$EXTERNALSYM ASN1_R_INTEGER_NOT_ASCII_FORMAT} - ASN1_R_INTEGER_NOT_ASCII_FORMAT = 185; - {$EXTERNALSYM ASN1_R_INTEGER_TOO_LARGE_FOR_LONG} - ASN1_R_INTEGER_TOO_LARGE_FOR_LONG = 128; - {$EXTERNALSYM ASN1_R_INVALID_BMPSTRING_LENGTH} - ASN1_R_INVALID_BMPSTRING_LENGTH = 129; - {$EXTERNALSYM ASN1_R_INVALID_DIGIT} - ASN1_R_INVALID_DIGIT = 130; - {$EXTERNALSYM ASN1_R_INVALID_MIME_TYPE} - ASN1_R_INVALID_MIME_TYPE = 200; - {$EXTERNALSYM ASN1_R_INVALID_MODIFIER} - ASN1_R_INVALID_MODIFIER = 186; - {$EXTERNALSYM ASN1_R_INVALID_NUMBER} - ASN1_R_INVALID_NUMBER = 187; - {$EXTERNALSYM ASN1_R_INVALID_OBJECT_ENCODING} - ASN1_R_INVALID_OBJECT_ENCODING = 212; - - {$EXTERNALSYM ASN1_R_INVALID_SEPARATOR} - ASN1_R_INVALID_SEPARATOR = 131; - {$EXTERNALSYM ASN1_R_INVALID_TIME_FORMAT} - ASN1_R_INVALID_TIME_FORMAT = 132; - {$EXTERNALSYM ASN1_R_INVALID_UNIVERSALSTRING_LENGTH} - ASN1_R_INVALID_UNIVERSALSTRING_LENGTH = 133; - {$EXTERNALSYM ASN1_R_INVALID_UTF8STRING} - ASN1_R_INVALID_UTF8STRING = 134; - {$EXTERNALSYM ASN1_R_IV_TOO_LARGE} - ASN1_R_IV_TOO_LARGE = 135; - {$EXTERNALSYM ASN1_R_LENGTH_ERROR} - ASN1_R_LENGTH_ERROR = 136; - {$EXTERNALSYM ASN1_R_LIST_ERROR} - ASN1_R_LIST_ERROR = 188; - {$EXTERNALSYM ASN1_R_MIME_NO_CONTENT_TYPE} - ASN1_R_MIME_NO_CONTENT_TYPE = 201; - {$EXTERNALSYM ASN1_R_MIME_PARSE_ERROR} - ASN1_R_MIME_PARSE_ERROR = 202; - {$EXTERNALSYM ASN1_R_MIME_SIG_PARSE_ERROR} - ASN1_R_MIME_SIG_PARSE_ERROR = 203; - {$EXTERNALSYM ASN1_R_MISSING_EOC} - ASN1_R_MISSING_EOC = 137; - {$EXTERNALSYM ASN1_R_MISSING_SECOND_NUMBER} - ASN1_R_MISSING_SECOND_NUMBER = 138; - {$EXTERNALSYM ASN1_R_MISSING_VALUE} - ASN1_R_MISSING_VALUE = 189; - {$EXTERNALSYM ASN1_R_MSTRING_NOT_UNIVERSAL} - ASN1_R_MSTRING_NOT_UNIVERSAL = 139; - {$EXTERNALSYM ASN1_R_MSTRING_WRONG_TAG} - ASN1_R_MSTRING_WRONG_TAG = 140; - {$EXTERNALSYM ASN1_R_NESTED_ASN1_STRING} - ASN1_R_NESTED_ASN1_STRING = 197; - {$EXTERNALSYM ASN1_R_NON_HEX_CHARACTERS} - ASN1_R_NON_HEX_CHARACTERS = 141; - {$EXTERNALSYM ASN1_R_NOT_ASCII_FORMAT} - ASN1_R_NOT_ASCII_FORMAT = 190; - {$EXTERNALSYM ASN1_R_NOT_ENOUGH_DATA} - ASN1_R_NOT_ENOUGH_DATA = 142; - {$EXTERNALSYM ASN1_R_NO_CONTENT_TYPE} - ASN1_R_NO_CONTENT_TYPE = 204; - {$EXTERNALSYM ASN1_R_NO_MATCHING_CHOICE_TYPE} - ASN1_R_NO_MATCHING_CHOICE_TYPE = 143; - {$EXTERNALSYM ASN1_R_NO_MULTIPART_BODY_FAILURE} - ASN1_R_NO_MULTIPART_BODY_FAILURE = 205; - {$EXTERNALSYM ASN1_R_NO_MULTIPART_BOUNDARY} - ASN1_R_NO_MULTIPART_BOUNDARY = 206; - {$EXTERNALSYM ASN1_R_NO_SIG_CONTENT_TYPE} - ASN1_R_NO_SIG_CONTENT_TYPE = 207; - {$EXTERNALSYM ASN1_R_NULL_IS_WRONG_LENGTH} - ASN1_R_NULL_IS_WRONG_LENGTH = 144; - {$EXTERNALSYM ASN1_R_OBJECT_NOT_ASCII_FORMAT} - ASN1_R_OBJECT_NOT_ASCII_FORMAT = 191; - {$EXTERNALSYM ASN1_R_ODD_NUMBER_OF_CHARS} - ASN1_R_ODD_NUMBER_OF_CHARS = 145; - {$EXTERNALSYM ASN1_R_PRIVATE_KEY_HEADER_MISSING} - ASN1_R_PRIVATE_KEY_HEADER_MISSING = 146; - {$EXTERNALSYM ASN1_R_SECOND_NUMBER_TOO_LARGE} - ASN1_R_SECOND_NUMBER_TOO_LARGE = 147; - {$EXTERNALSYM ASN1_R_SEQUENCE_LENGTH_MISMATCH} - ASN1_R_SEQUENCE_LENGTH_MISMATCH = 148; - {$EXTERNALSYM ASN1_R_SEQUENCE_NOT_CONSTRUCTED} - ASN1_R_SEQUENCE_NOT_CONSTRUCTED = 149; - {$EXTERNALSYM ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG} - ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG = 192; - {$EXTERNALSYM ASN1_R_SHORT_LINE} - ASN1_R_SHORT_LINE = 150; - {$EXTERNALSYM ASN1_R_SIG_INVALID_MIME_TYPE} - ASN1_R_SIG_INVALID_MIME_TYPE = 208; - {$EXTERNALSYM ASN1_R_STREAMING_NOT_SUPPORTED} - ASN1_R_STREAMING_NOT_SUPPORTED = 209; - {$EXTERNALSYM ASN1_R_STRING_TOO_LONG} - ASN1_R_STRING_TOO_LONG = 151; - {$EXTERNALSYM ASN1_R_STRING_TOO_SHORT} - ASN1_R_STRING_TOO_SHORT = 152; - {$EXTERNALSYM ASN1_R_TAG_VALUE_TOO_HIGH} - ASN1_R_TAG_VALUE_TOO_HIGH = 153; - {$EXTERNALSYM ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD} - ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD = 154; - {$EXTERNALSYM ASN1_R_TIME_NOT_ASCII_FORMAT} - ASN1_R_TIME_NOT_ASCII_FORMAT = 193; - {$EXTERNALSYM ASN1_R_TOO_LONG} - ASN1_R_TOO_LONG = 155; - {$EXTERNALSYM ASN1_R_TYPE_NOT_CONSTRUCTED} - ASN1_R_TYPE_NOT_CONSTRUCTED = 156; - {$EXTERNALSYM ASN1_R_UNABLE_TO_DECODE_RSA_KEY} - ASN1_R_UNABLE_TO_DECODE_RSA_KEY = 157; - {$EXTERNALSYM ASN1_R_UNABLE_TO_DECODE_RSA_PRIVATE_KEY} - ASN1_R_UNABLE_TO_DECODE_RSA_PRIVATE_KEY = 158; - {$EXTERNALSYM ASN1_R_UNEXPECTED_EOC} - ASN1_R_UNEXPECTED_EOC = 159; - {$EXTERNALSYM ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH} - ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH = 211; - {$EXTERNALSYM ASN1_R_UNKNOWN_FORMAT} - ASN1_R_UNKNOWN_FORMAT = 160; - {$EXTERNALSYM ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM} - ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM = 161; - {$EXTERNALSYM ASN1_R_UNKNOWN_OBJECT_TYPE} - ASN1_R_UNKNOWN_OBJECT_TYPE = 162; - {$EXTERNALSYM ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE} - ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE = 163; - {$EXTERNALSYM ASN1_R_UNKNOWN_TAG} - ASN1_R_UNKNOWN_TAG = 194; - {$EXTERNALSYM ASN1_R_UNKOWN_FORMAT} - ASN1_R_UNKOWN_FORMAT = 195; - {$EXTERNALSYM ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE} - ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE = 164; - {$EXTERNALSYM ASN1_R_UNSUPPORTED_CIPHER} - ASN1_R_UNSUPPORTED_CIPHER = 165; - {$EXTERNALSYM ASN1_R_UNSUPPORTED_ENCRYPTION_ALGORITHM} - ASN1_R_UNSUPPORTED_ENCRYPTION_ALGORITHM = 166; - {$EXTERNALSYM ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE} - ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE = 167; - {$EXTERNALSYM ASN1_R_UNSUPPORTED_TYPE} - ASN1_R_UNSUPPORTED_TYPE = 196; - {$EXTERNALSYM ASN1_R_WRONG_TAG} - ASN1_R_WRONG_TAG = 168; - {$EXTERNALSYM ASN1_R_WRONG_TYPE} - ASN1_R_WRONG_TYPE = 169; - - {$EXTERNALSYM ASN1_STRING_FLAG_BITS_LEFT} - ASN1_STRING_FLAG_BITS_LEFT = $08; - {$EXTERNALSYM ASN1_STRING_FLAG_NDEF} - ASN1_STRING_FLAG_NDEF = $010; -//* This flag is used by the CMS code to indicate that a string is not -// * complete and is a place holder for content when it had all been -// * accessed. The flag will be reset when content has been written to it. -// */ - {$EXTERNALSYM ASN1_STRING_FLAG_CONT} - ASN1_STRING_FLAG_CONT = $020; - {$EXTERNALSYM ASN1_LONG_UNDEF} - ASN1_LONG_UNDEF = $7fffffff; //0x7fffffffL - - {$EXTERNALSYM UB_NAME} - UB_NAME = 32768; - {$EXTERNALSYM UB_COMMON_NAME} - UB_COMMON_NAME = 64; - {$EXTERNALSYM UB_LOCALITY_NAME} - UB_LOCALITY_NAME = 128; - {$EXTERNALSYM UB_STATE_NAME} - UB_STATE_NAME = 128; - {$EXTERNALSYM UB_ORGANIZATION_NAME} - UB_ORGANIZATION_NAME = 64; - {$EXTERNALSYM UB_ORGANIZATION_UNIT_NAME} - UB_ORGANIZATION_UNIT_NAME = 64; - {$EXTERNALSYM UB_TITLE} - UB_TITLE = 64; - {$EXTERNALSYM UB_EMAIL_ADDRESS} - UB_EMAIL_ADDRESS = 128; - - {$EXTERNALSYM ASN1_STRFLGS_ESC_2253} - ASN1_STRFLGS_ESC_2253 = 1; - {$EXTERNALSYM ASN1_STRFLGS_ESC_CTRL} - ASN1_STRFLGS_ESC_CTRL = 2; - {$EXTERNALSYM ASN1_STRFLGS_ESC_MSB} - ASN1_STRFLGS_ESC_MSB = 4; - {$EXTERNALSYM ASN1_STRFLGS_ESC_QUOTE} - ASN1_STRFLGS_ESC_QUOTE = 8; - - {$EXTERNALSYM ASN1_STRFLGS_UTF8_CONVERT} - ASN1_STRFLGS_UTF8_CONVERT = $10; - {$EXTERNALSYM ASN1_STRFLGS_IGNORE_TYPE} - ASN1_STRFLGS_IGNORE_TYPE = $20; - {$EXTERNALSYM ASN1_STRFLGS_SHOW_TYPE} - ASN1_STRFLGS_SHOW_TYPE = $40; - {$EXTERNALSYM ASN1_STRFLGS_DUMP_ALL} - ASN1_STRFLGS_DUMP_ALL = $80; - {$EXTERNALSYM ASN1_STRFLGS_DUMP_UNKNOWN} - ASN1_STRFLGS_DUMP_UNKNOWN = $100; - {$EXTERNALSYM ASN1_STRFLGS_DUMP_DER} - ASN1_STRFLGS_DUMP_DER = $200; - {$EXTERNALSYM ASN1_STRFLGS_RFC2253} - ASN1_STRFLGS_RFC2253 = ASN1_STRFLGS_ESC_2253 or - ASN1_STRFLGS_ESC_CTRL or - ASN1_STRFLGS_ESC_MSB or - ASN1_STRFLGS_UTF8_CONVERT or - ASN1_STRFLGS_DUMP_UNKNOWN or - ASN1_STRFLGS_DUMP_DER; - - {$EXTERNALSYM BIO_BIND_NORMAL} - BIO_BIND_NORMAL = 0; - {$EXTERNALSYM BIO_BIND_REUSEADDR} - BIO_BIND_REUSEADDR = 2; - {$EXTERNALSYM BIO_BIND_REUSEADDR_IF_UNUSED} - BIO_BIND_REUSEADDR_IF_UNUSED = 1; - {$EXTERNALSYM BIO_CB_CTRL} - BIO_CB_CTRL = $06; - {$EXTERNALSYM BIO_CB_FREE} - BIO_CB_FREE = $01; - {$EXTERNALSYM BIO_CB_GETS} - BIO_CB_GETS = $05; - {$EXTERNALSYM BIO_CB_PUTS} - BIO_CB_PUTS = $04; - {$EXTERNALSYM BIO_CB_READ} - BIO_CB_READ = $02; - {$EXTERNALSYM BIO_CB_RETURN} - BIO_CB_RETURN = $80; - {$EXTERNALSYM BIO_CB_WRITE} - BIO_CB_WRITE = $03; - {$EXTERNALSYM BIO_CLOSE} - BIO_CLOSE = $01; - {$EXTERNALSYM BIO_CONN_S_BEFORE} - BIO_CONN_S_BEFORE = 1; - {$EXTERNALSYM BIO_CONN_S_BLOCKED_CONNECT} - BIO_CONN_S_BLOCKED_CONNECT = 7; - {$EXTERNALSYM BIO_CONN_S_CONNECT} - BIO_CONN_S_CONNECT = 5; - {$EXTERNALSYM BIO_CONN_S_CREATE_SOCKET} - BIO_CONN_S_CREATE_SOCKET = 4; - {$EXTERNALSYM BIO_CONN_S_GET_IP} - BIO_CONN_S_GET_IP = 2; - {$EXTERNALSYM BIO_CONN_S_GET_PORT} - BIO_CONN_S_GET_PORT = 3; - {$EXTERNALSYM BIO_CONN_S_NBIO} - BIO_CONN_S_NBIO = 8; - {$EXTERNALSYM BIO_CONN_S_OK} - BIO_CONN_S_OK = 6; - {$EXTERNALSYM BIO_CTRL_DUP} - BIO_CTRL_DUP = 12; - {$EXTERNALSYM BIO_CTRL_EOF} - BIO_CTRL_EOF = 2; - {$EXTERNALSYM BIO_CTRL_FLUSH} - BIO_CTRL_FLUSH = 11; - {$EXTERNALSYM BIO_CTRL_GET} - BIO_CTRL_GET = 5; - {$EXTERNALSYM BIO_CTRL_GET_CALLBACK} - BIO_CTRL_GET_CALLBACK = 15; - {$EXTERNALSYM BIO_CTRL_GET_CLOSE} - BIO_CTRL_GET_CLOSE = 8; - {$EXTERNALSYM BIO_CTRL_INFO} - BIO_CTRL_INFO = 3; - {$EXTERNALSYM BIO_CTRL_PENDING} - BIO_CTRL_PENDING = 10; - {$EXTERNALSYM BIO_CTRL_POP} - BIO_CTRL_POP = 7; - {$EXTERNALSYM BIO_CTRL_PUSH} - BIO_CTRL_PUSH = 6; - {$EXTERNALSYM BIO_CTRL_RESET} - BIO_CTRL_RESET = 1; - {$EXTERNALSYM BIO_CTRL_SET} - BIO_CTRL_SET = 4; - {$EXTERNALSYM BIO_CTRL_SET_CALLBACK} - BIO_CTRL_SET_CALLBACK = 14; - {$EXTERNALSYM BIO_CTRL_SET_CLOSE} - BIO_CTRL_SET_CLOSE = 9; - {$EXTERNALSYM BIO_CTRL_SET_FILENAME} - BIO_CTRL_SET_FILENAME = 30; - //* dgram BIO stuff */ - {$EXTERNALSYM BIO_CTRL_DGRAM_CONNECT} - BIO_CTRL_DGRAM_CONNECT = 31; //* BIO dgram special */ - {$EXTERNALSYM BIO_CTRL_DGRAM_SET_CONNECTED} - BIO_CTRL_DGRAM_SET_CONNECTED = 32; //* allow for an externally - //* connected socket to be - //* passed in */ - {$EXTERNALSYM BIO_CTRL_DGRAM_SET_RECV_TIMEOUT} - BIO_CTRL_DGRAM_SET_RECV_TIMEOUT = 33; //* setsockopt, essentially */ - {$EXTERNALSYM BIO_CTRL_DGRAM_GET_RECV_TIMEOUT} - BIO_CTRL_DGRAM_GET_RECV_TIMEOUT = 34; //* getsockopt, essentially */ - {$EXTERNALSYM BIO_CTRL_DGRAM_SET_SEND_TIMEOUT} - BIO_CTRL_DGRAM_SET_SEND_TIMEOUT = 35; //* setsockopt, essentially */ - {$EXTERNALSYM BIO_CTRL_DGRAM_GET_SEND_TIMEOUT} - BIO_CTRL_DGRAM_GET_SEND_TIMEOUT = 36; //* getsockopt, essentially */ - - {$EXTERNALSYM BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP} - BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP = 37; //* flag whether the last */ - {$EXTERNALSYM BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP} - BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP = 38; //* I/O operation tiemd out */ - - -//* #ifdef IP_MTU_DISCOVER */ - {$EXTERNALSYM BIO_CTRL_DGRAM_MTU_DISCOVER} - BIO_CTRL_DGRAM_MTU_DISCOVER = 39; //* set DF bit on egress packets */ -//* #endif */ - - {$EXTERNALSYM BIO_CTRL_DGRAM_QUERY_MTU} - BIO_CTRL_DGRAM_QUERY_MTU = 40; //* as kernel for current MTU */ - {$EXTERNALSYM BIO_CTRL_DGRAM_GET_MTU} - BIO_CTRL_DGRAM_GET_MTU = 41; //* get cached value for MTU */ - {$EXTERNALSYM BIO_CTRL_DGRAM_SET_MTU} - BIO_CTRL_DGRAM_SET_MTU = 42; //* set cached value for - // * MTU. want to use this - // * if asking the kernel - // * fails */ - - {$EXTERNALSYM BIO_CTRL_DGRAM_MTU_EXCEEDED} - BIO_CTRL_DGRAM_MTU_EXCEEDED = 43; //* check whether the MTU - // * was exceed in the - // * previous write - // * operation */ - {$EXTERNALSYM BIO_CTRL_DGRAM_GET_PEER} - BIO_CTRL_DGRAM_GET_PEER = 46; - - {$EXTERNALSYM BIO_CTRL_DGRAM_SET_PEER} - BIO_CTRL_DGRAM_SET_PEER = 44; //* Destination for the data */ - {$EXTERNALSYM BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT} - BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT = 45; //* Next DTLS handshake timeout to - - {$EXTERNALSYM BIO_CTRL_WPENDING} - BIO_CTRL_WPENDING = 13; - {$EXTERNALSYM BIO_C_DESTROY_BIO_PAIR} - BIO_C_DESTROY_BIO_PAIR = 139; - {$EXTERNALSYM BIO_C_DO_STATE_MACHINE} - BIO_C_DO_STATE_MACHINE = 101; - {$EXTERNALSYM BIO_C_FILE_SEEK} - BIO_C_FILE_SEEK = 128; - {$EXTERNALSYM BIO_C_FILE_TELL} - BIO_C_FILE_TELL = 133; - {$EXTERNALSYM BIO_C_GET_ACCEPT} - BIO_C_GET_ACCEPT = 124; - {$EXTERNALSYM BIO_C_GET_BIND_MODE} - BIO_C_GET_BIND_MODE = 132; - {$EXTERNALSYM BIO_C_GET_BUFF_NUM_LINES} - BIO_C_GET_BUFF_NUM_LINES = 116; - {$EXTERNALSYM BIO_C_GET_BUF_MEM_PTR} - BIO_C_GET_BUF_MEM_PTR = 115; - {$EXTERNALSYM BIO_C_GET_CIPHER_CTX} - BIO_C_GET_CIPHER_CTX = 129; - {$EXTERNALSYM BIO_C_GET_CIPHER_STATUS} - BIO_C_GET_CIPHER_STATUS = 113; - {$EXTERNALSYM BIO_C_GET_CONNECT} - BIO_C_GET_CONNECT = 123; - {$EXTERNALSYM BIO_C_GET_FD} - BIO_C_GET_FD = 105; - {$EXTERNALSYM BIO_C_GET_FILE_PTR} - BIO_C_GET_FILE_PTR = 107; - {$EXTERNALSYM BIO_C_GET_MD} - BIO_C_GET_MD = 112; - {$EXTERNALSYM BIO_C_GET_MD_CTX} - BIO_C_GET_MD_CTX = 120; - - {$EXTERNALSYM BIO_C_GET_PROXY_PARAM} - BIO_C_GET_PROXY_PARAM = 121; - {$EXTERNALSYM BIO_C_GET_READ_REQUEST} - BIO_C_GET_READ_REQUEST = 141; - {$EXTERNALSYM BIO_C_GET_SOCKS} - BIO_C_GET_SOCKS = 134; - - {$EXTERNALSYM BIO_C_GET_SSL} - BIO_C_GET_SSL = 110; - {$EXTERNALSYM BIO_C_GET_SSL_NUM_RENEGOTIATES} - BIO_C_GET_SSL_NUM_RENEGOTIATES = 126; - {$EXTERNALSYM BIO_C_GET_WRITE_BUF_SIZE} - BIO_C_GET_WRITE_BUF_SIZE = 137; - {$EXTERNALSYM BIO_C_GET_WRITE_GUARANTEE} - BIO_C_GET_WRITE_GUARANTEE = 140; - {$EXTERNALSYM BIO_C_MAKE_BIO_PAIR} - BIO_C_MAKE_BIO_PAIR = 138; - {$EXTERNALSYM BIO_C_SET_ACCEPT} - BIO_C_SET_ACCEPT = 118; - {$EXTERNALSYM BIO_C_SET_BIND_MODE} - BIO_C_SET_BIND_MODE = 131; - {$EXTERNALSYM BIO_C_SET_BUFF_READ_DATA} - BIO_C_SET_BUFF_READ_DATA = 122; - {$EXTERNALSYM BIO_C_SET_BUFF_SIZE} - BIO_C_SET_BUFF_SIZE = 117; - {$EXTERNALSYM BIO_C_SET_BUF_MEM} - BIO_C_SET_BUF_MEM = 114; - {$EXTERNALSYM BIO_C_SET_BUF_MEM_EOF_RETURN} - BIO_C_SET_BUF_MEM_EOF_RETURN = 130; - {$EXTERNALSYM BIO_C_SET_CONNECT} - BIO_C_SET_CONNECT = 100; - {$EXTERNALSYM BIO_C_SET_FD} - BIO_C_SET_FD = 104; - {$EXTERNALSYM BIO_C_SET_FILENAME} - BIO_C_SET_FILENAME = 108; - {$EXTERNALSYM BIO_C_SET_FILE_PTR} - BIO_C_SET_FILE_PTR = 106; - {$EXTERNALSYM BIO_C_SET_MD} - BIO_C_SET_MD = 111; - {$EXTERNALSYM BIO_C_SET_NBIO} - BIO_C_SET_NBIO = 102; - {$EXTERNALSYM BIO_C_SET_PROXY_PARAM} - BIO_C_SET_PROXY_PARAM = 103; - {$EXTERNALSYM BIO_C_SET_SOCKS} - BIO_C_SET_SOCKS = 135; - {$EXTERNALSYM BIO_C_SET_SSL} - BIO_C_SET_SSL = 109; - {$EXTERNALSYM BIO_C_SET_SSL_RENEGOTIATE_BYTES} - BIO_C_SET_SSL_RENEGOTIATE_BYTES = 125; - {$EXTERNALSYM BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT} - BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT = 127; - {$EXTERNALSYM BIO_C_SET_WRITE_BUF_SIZE} - BIO_C_SET_WRITE_BUF_SIZE = 136; - {$EXTERNALSYM BIO_C_SHUTDOWN_WR} - BIO_C_SHUTDOWN_WR = 142; - {$EXTERNALSYM BIO_C_NREAD0} - BIO_C_NREAD0 = 143; - {$EXTERNALSYM BIO_C_NREAD} - BIO_C_NREAD = 144; - {$EXTERNALSYM BIO_C_NWRITE0} - BIO_C_NWRITE0 = 145; - {$EXTERNALSYM BIO_C_NWRITE} - BIO_C_NWRITE = 146; - {$EXTERNALSYM BIO_C_RESET_READ_REQUEST} - BIO_C_RESET_READ_REQUEST = 147; - {$EXTERNALSYM BIO_C_SET_MD_CTX} - BIO_C_SET_MD_CTX = 148; - {$EXTERNALSYM BIO_C_SSL_MODE} - BIO_C_SSL_MODE = 119; - {$EXTERNALSYM BIO_FLAGS_BASE64_NO_NL} - BIO_FLAGS_BASE64_NO_NL = $100; - {$EXTERNALSYM BIO_FLAGS_IO_SPECIAL} - BIO_FLAGS_IO_SPECIAL = $04; - {$EXTERNALSYM BIO_FLAGS_READ} - BIO_FLAGS_READ = $01; - {$EXTERNALSYM BIO_FLAGS_WRITE} - BIO_FLAGS_WRITE = $02; - {$EXTERNALSYM BIO_FLAGS_RWS} - BIO_FLAGS_RWS = BIO_FLAGS_READ or - BIO_FLAGS_WRITE or - BIO_FLAGS_IO_SPECIAL; - {$EXTERNALSYM BIO_FLAGS_SHOULD_RETRY} - BIO_FLAGS_SHOULD_RETRY = $08; - {$EXTERNALSYM BIO_FP_APPEND} - BIO_FP_APPEND = $08; - {$EXTERNALSYM BIO_FP_READ} - BIO_FP_READ = $02; - {$EXTERNALSYM BIO_FP_TEXT} - BIO_FP_TEXT = $10; - {$EXTERNALSYM BIO_FP_WRITE} - BIO_FP_WRITE = $04; - {$EXTERNALSYM BIO_F_ACPT_STATE} - BIO_F_ACPT_STATE = 100; - {$EXTERNALSYM BIO_F_BIO_ACCEPT} - BIO_F_BIO_ACCEPT = 101; - {$EXTERNALSYM BIO_F_BIO_BER_GET_HEADER} - BIO_F_BIO_BER_GET_HEADER = 102; - {$EXTERNALSYM BIO_F_BIO_CTRL} - BIO_F_BIO_CTRL = 103; - {$EXTERNALSYM BIO_F_BIO_GETHOSTBYNAME} - BIO_F_BIO_GETHOSTBYNAME = 120; - {$EXTERNALSYM BIO_F_BIO_GETS} - BIO_F_BIO_GETS = 104; - {$EXTERNALSYM BIO_F_BIO_GET_ACCEPT_SOCKET} - BIO_F_BIO_GET_ACCEPT_SOCKET = 105; - {$EXTERNALSYM BIO_F_BIO_GET_HOST_IP} - BIO_F_BIO_GET_HOST_IP = 106; - {$EXTERNALSYM BIO_F_BIO_GET_PORT} - BIO_F_BIO_GET_PORT = 107; - {$EXTERNALSYM BIO_F_BIO_MAKE_PAIR} - BIO_F_BIO_MAKE_PAIR = 121; - {$EXTERNALSYM BIO_F_BIO_NEW} - BIO_F_BIO_NEW = 108; - {$EXTERNALSYM BIO_F_BIO_NEW_FILE} - BIO_F_BIO_NEW_FILE = 109; - {$EXTERNALSYM BIO_F_BIO_PUTS} - BIO_F_BIO_PUTS = 110; - {$EXTERNALSYM BIO_F_BIO_READ} - BIO_F_BIO_READ = 111; - {$EXTERNALSYM BIO_F_BIO_SOCK_INIT} - BIO_F_BIO_SOCK_INIT = 112; - {$EXTERNALSYM BIO_F_BIO_WRITE} - BIO_F_BIO_WRITE = 113; - {$EXTERNALSYM BIO_F_BUFFER_CTRL} - BIO_F_BUFFER_CTRL = 114; - {$EXTERNALSYM BIO_F_CONN_STATE} - BIO_F_CONN_STATE = 115; - {$EXTERNALSYM BIO_F_FILE_CTRL} - BIO_F_FILE_CTRL = 116; - {$EXTERNALSYM BIO_F_MEM_WRITE} - BIO_F_MEM_WRITE = 117; - {$EXTERNALSYM BIO_F_SSL_NEW} - BIO_F_SSL_NEW = 118; - {$EXTERNALSYM BIO_F_WSASTARTUP} - BIO_F_WSASTARTUP = 119; - {$EXTERNALSYM BIO_GHBN_CTRL_CACHE_SIZE} - BIO_GHBN_CTRL_CACHE_SIZE = 3; - {$EXTERNALSYM BIO_GHBN_CTRL_FLUSH} - BIO_GHBN_CTRL_FLUSH = 5; - {$EXTERNALSYM BIO_GHBN_CTRL_GET_ENTRY} - BIO_GHBN_CTRL_GET_ENTRY = 4; - {$EXTERNALSYM BIO_GHBN_CTRL_HITS} - BIO_GHBN_CTRL_HITS = 1; - {$EXTERNALSYM BIO_GHBN_CTRL_MISSES} - BIO_GHBN_CTRL_MISSES = 2; - {$EXTERNALSYM BIO_NOCLOSE} - BIO_NOCLOSE = $00; - {$EXTERNALSYM BIO_RR_CONNECT} - BIO_RR_CONNECT = $02; - {$EXTERNALSYM BIO_RR_SSL_X509_LOOKUP} - BIO_RR_SSL_X509_LOOKUP = $01; - {$EXTERNALSYM BIO_R_ACCEPT_ERROR} - BIO_R_ACCEPT_ERROR = 100; - {$EXTERNALSYM BIO_R_BAD_FOPEN_MODE} - BIO_R_BAD_FOPEN_MODE = 101; - {$EXTERNALSYM BIO_R_BAD_HOSTNAME_LOOKUP} - BIO_R_BAD_HOSTNAME_LOOKUP = 102; - {$EXTERNALSYM BIO_R_BROKEN_PIPE} - BIO_R_BROKEN_PIPE = 124; - {$EXTERNALSYM BIO_R_CONNECT_ERROR} - BIO_R_CONNECT_ERROR = 103; - {$EXTERNALSYM BIO_R_ERROR_SETTING_NBIO} - BIO_R_ERROR_SETTING_NBIO = 104; - {$EXTERNALSYM BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET} - BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET = 105; - {$EXTERNALSYM BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET} - BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET = 106; - {$EXTERNALSYM BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET} - BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET = 107; - {$EXTERNALSYM BIO_R_INVALID_ARGUMENT} - BIO_R_INVALID_ARGUMENT = 125; - {$EXTERNALSYM BIO_R_INVALID_IP_ADDRESS} - BIO_R_INVALID_IP_ADDRESS = 108; - {$EXTERNALSYM BIO_R_IN_USE} - BIO_R_IN_USE = 123; - {$EXTERNALSYM BIO_R_KEEPALIVE} - BIO_R_KEEPALIVE = 109; - {$EXTERNALSYM BIO_R_NBIO_CONNECT_ERROR} - BIO_R_NBIO_CONNECT_ERROR = 110; - {$EXTERNALSYM BIO_R_NO_ACCEPT_PORT_SPECIFIED} - BIO_R_NO_ACCEPT_PORT_SPECIFIED = 111; - {$EXTERNALSYM BIO_R_NO_HOSTNAME_SPECIFIED} - BIO_R_NO_HOSTNAME_SPECIFIED = 112; - {$EXTERNALSYM BIO_R_NO_PORT_DEFINED} - BIO_R_NO_PORT_DEFINED = 113; - {$EXTERNALSYM BIO_R_NO_PORT_SPECIFIED} - BIO_R_NO_PORT_SPECIFIED = 114; - {$EXTERNALSYM BIO_R_NULL_PARAMETER} - BIO_R_NULL_PARAMETER = 115; - {$EXTERNALSYM BIO_R_TAG_MISMATCH} - BIO_R_TAG_MISMATCH = 116; - {$EXTERNALSYM BIO_R_UNABLE_TO_BIND_SOCKET} - BIO_R_UNABLE_TO_BIND_SOCKET = 117; - {$EXTERNALSYM BIO_R_UNABLE_TO_CREATE_SOCKET} - BIO_R_UNABLE_TO_CREATE_SOCKET = 118; - {$EXTERNALSYM BIO_R_UNABLE_TO_LISTEN_SOCKET} - BIO_R_UNABLE_TO_LISTEN_SOCKET = 119; - {$EXTERNALSYM BIO_R_UNINITIALIZED} - BIO_R_UNINITIALIZED = 120; - {$EXTERNALSYM BIO_R_UNSUPPORTED_METHOD} - BIO_R_UNSUPPORTED_METHOD = 121; - {$EXTERNALSYM BIO_R_WSASTARTUP} - BIO_R_WSASTARTUP = 122; - {$EXTERNALSYM BIO_TYPE_ACCEPT} - BIO_TYPE_ACCEPT = 13 or $0400 or $0100; - {$EXTERNALSYM BIO_TYPE_BASE64} - BIO_TYPE_BASE64 = 11 or $0200; - {$EXTERNALSYM BIO_TYPE_BER} - BIO_TYPE_BER = 18 or $0200; - {$EXTERNALSYM BIO_TYPE_BIO} - BIO_TYPE_BIO = 19 or $0400; - {$EXTERNALSYM BIO_TYPE_BUFFER} - BIO_TYPE_BUFFER = 9 or $0200; - {$EXTERNALSYM BIO_TYPE_CIPHER} - BIO_TYPE_CIPHER = 10 or $0200; - {$EXTERNALSYM BIO_TYPE_CONNECT} - BIO_TYPE_CONNECT = 12 or $0400 or $0100; - {$EXTERNALSYM BIO_TYPE_DESCRIPTOR} - BIO_TYPE_DESCRIPTOR = $0100; - {$EXTERNALSYM BIO_TYPE_FD} - BIO_TYPE_FD = 4 or $0400 or $0100; - {$EXTERNALSYM BIO_TYPE_FILE} - BIO_TYPE_FILE = 2 or $0400; - {$EXTERNALSYM BIO_TYPE_FILTER} - BIO_TYPE_FILTER = $0200; - {$EXTERNALSYM BIO_TYPE_MD} - BIO_TYPE_MD = 8 or $0200; - {$EXTERNALSYM BIO_TYPE_MEM} - BIO_TYPE_MEM = 1 or $0400; - {$EXTERNALSYM BIO_TYPE_NBIO_TEST} - BIO_TYPE_NBIO_TEST = 16 or $0200; - {$EXTERNALSYM BIO_TYPE_NONE} - BIO_TYPE_NONE = 0; - {$EXTERNALSYM BIO_TYPE_NULL} - BIO_TYPE_NULL = 6 or $0400; - {$EXTERNALSYM BIO_TYPE_NULL_FILTER} - BIO_TYPE_NULL_FILTER = 17 or $0200; - {$EXTERNALSYM BIO_TYPE_PROXY_CLIENT} - BIO_TYPE_PROXY_CLIENT = 14 or $0200; - {$EXTERNALSYM BIO_TYPE_PROXY_SERVER} - BIO_TYPE_PROXY_SERVER = 15 or $0200; - {$EXTERNALSYM BIO_TYPE_SOCKET} - BIO_TYPE_SOCKET = 5 or $0400 or $0100; - {$EXTERNALSYM BIO_TYPE_SOURCE_SINK} - BIO_TYPE_SOURCE_SINK = $0400; - {$EXTERNALSYM BIO_TYPE_SSL} - BIO_TYPE_SSL = 7 or $0200; - {$EXTERNALSYM BIO_TYPE_LINEBUFFER} - BIO_TYPE_LINEBUFFER = 20 or $0200; - {$EXTERNALSYM BIO_TYPE_DGRAM} - BIO_TYPE_DGRAM = 21 or $0400 or $0100; - {$EXTERNALSYM BIO_TYPE_COMP} - BIO_TYPE_COMP = 23 or $0200; - - {$IFDEF SIXTY_FOUR_BIT_LONG} - {$EXTERNALSYM BN_BITS} - BN_BITS = 128; - {$EXTERNALSYM BN_BYTES} - BN_BYTES = 8; - {$EXTERNALSYM BN_BITS2} - BN_BITS2 = 64; - {$EXTERNALSYM BN_BITS4} - BN_BITS4 = 32; - {$EXTERNALSYM BN_DEC_FMT1} - BN_DEC_FMT1 = '%lu'; {Do not localize} - {$EXTERNALSYM BN_DEC_FMT2} - BN_DEC_FMT2 = '%019lu'; {Do not localize} - {$EXTERNALSYM BN_DEC_NUM} - BN_DEC_NUM = 19; - {$ENDIF} - {$IFDEF SIXTY_FOUR_BIT} - {$UNDEF BN_LLONG} - {$UNDEF BN_ULLONG} - {$EXTERNALSYM OPENSSL_BN_BITS} - OPENSSL_BN_BITS = 128; - {$EXTERNALSYM OPENSSL_BN_BYTES} - OPENSSL_BN_BYTES = 8; - {$EXTERNALSYM OPENSSL_BN_BITS2} - OPENSSL_BN_BITS2 = 64; - {$EXTERNALSYM OPENSSL_BN_BITS4} - OPENSSL_BN_BITS4 = 32; - {$EXTERNALSYM OPENSSL_BN_DEC_FMT1} - OPENSSL_BN_DEC_FMT1 = '%llu'; {Do not localize} - {$EXTERNALSYM OPENSSL_BN_DEC_FMT2} - OPENSSL_BN_DEC_FMT2 = '%019llu'; {Do not localize} - {$EXTERNALSYM OPENSSL_BN_DEC_NUM} - OPENSSL_BN_DEC_NUM = 19; - {$ENDIF} - {$IFDEF THIRTY_TWO_BIT} - {$EXTERNALSYM BN_BITS} - BN_BITS = 64; - {$EXTERNALSYM BN_BYTES} - BN_BYTES = 4; - {$EXTERNALSYM BN_BITS2} - BN_BITS2 = 32; - {$EXTERNALSYM BN_BITS4} - BN_BITS4 = 16; - {$EXTERNALSYM BN_DEC_FMT1} - BN_DEC_FMT1 = '%lu'; {Do not localize} - {$EXTERNALSYM BN_DEC_FMT2} - BN_DEC_FMT2 = '%09lu'; {Do not localize} - {$EXTERNALSYM BN_DEC_NUM} - BN_DEC_NUM = 9; - {$ENDIF} - {$EXTERNALSYM BN_CTX_NUM} - BN_CTX_NUM = 12; - {$IFNDEF OPENSSL_NO_DEPRECATED} - {$EXTERNALSYM BN_DEFAULT_BITS} - BN_DEFAULT_BITS = 1280; - {$ENDIF} - {$EXTERNALSYM BN_FLG_FREE} - BN_FLG_FREE = $8000; - {$EXTERNALSYM BN_FLG_MALLOCED} - BN_FLG_MALLOCED = $01; - {$EXTERNALSYM BN_FLG_STATIC_DATA} - BN_FLG_STATIC_DATA = $02; - {$EXTERNALSYM BN_FLG_CONSTTIME} - BN_FLG_CONSTTIME = $04; - //* avoid leaking exponent information through timing, - //* BN_mod_exp_mont() will call BN_mod_exp_mont_consttime, - //* BN_div() will call BN_div_no_branch, - // * BN_mod_inverse() will call BN_mod_inverse_no_branch. - // */ - {$IFNDEF OPENSSL_NO_DEPRECATED} - {$EXTERNALSYM BN_FLG_EXP_CONSTTIME} - BN_FLG_EXP_CONSTTIME = BN_FLG_CONSTTIME; //* deprecated name for the flag */ - //* avoid leaking exponent information through timings - //* (BN_mod_exp_mont() will call BN_mod_exp_mont_consttime) */ - {$ENDIF} - {$EXTERNALSYM BN_F_BN_BLINDING_CONVERT} - BN_F_BN_BLINDING_CONVERT = 100; - {$EXTERNALSYM BN_F_BN_BLINDING_INVERT} - BN_F_BN_BLINDING_INVERT = 101; - {$EXTERNALSYM BN_F_BN_BLINDING_NEW} - BN_F_BN_BLINDING_NEW = 102; - {$EXTERNALSYM BN_F_BN_BLINDING_UPDATE} - BN_F_BN_BLINDING_UPDATE = 103; - {$EXTERNALSYM BN_F_BN_BN2DEC} - BN_F_BN_BN2DEC = 104; - {$EXTERNALSYM BN_F_BN_BN2HEX} - BN_F_BN_BN2HEX = 105; - {$EXTERNALSYM BN_F_BN_CTX_NEW} - BN_F_BN_CTX_NEW = 106; - {$EXTERNALSYM BN_F_BN_DIV} - BN_F_BN_DIV = 107; - {$EXTERNALSYM BN_F_BN_DIV_NO_BRANCH} - BN_F_BN_DIV_NO_BRANCH = 138; - {$EXTERNALSYM BN_F_BN_EXPAND2} - BN_F_BN_EXPAND2 = 108; - {$EXTERNALSYM BN_F_BN_MOD_EXP_MONT} - BN_F_BN_MOD_EXP_MONT = 109; - {$EXTERNALSYM BN_F_BN_MOD_INVERSE} - BN_F_BN_MOD_INVERSE = 110; - {$EXTERNALSYM BN_F_BN_MOD_INVERSE_NO_BRANCH} - BN_F_BN_MOD_INVERSE_NO_BRANCH = 139; - {$EXTERNALSYM BN_F_BN_MOD_MUL_RECIPROCAL} - BN_F_BN_MOD_MUL_RECIPROCAL = 111; - {$EXTERNALSYM BN_F_BN_MPI2BN} - BN_F_BN_MPI2BN = 112; - {$EXTERNALSYM BN_F_BN_NEW} - BN_F_BN_NEW = 113; - {$EXTERNALSYM BN_F_BN_RAND} - BN_F_BN_RAND = 114; - {$EXTERNALSYM BN_F_BN_USUB} - BN_F_BN_USUB = 115; - {$EXTERNALSYM BN_MASK2} - BN_MASK2 = $ffffffff; - {$EXTERNALSYM BN_MASK2h} - BN_MASK2h = $ffff0000; - {$EXTERNALSYM BN_MASK2h1} - BN_MASK2h1 = $ffff8000; - {$EXTERNALSYM BN_MASK2l} - BN_MASK2l = $ffff; - {$EXTERNALSYM BN_R_ARG2_LT_ARG3} - BN_R_ARG2_LT_ARG3 = 100; - {$EXTERNALSYM BN_R_BAD_RECIPROCAL} - BN_R_BAD_RECIPROCAL = 101; - {$EXTERNALSYM BN_R_CALLED_WITH_EVEN_MODULUS} - BN_R_CALLED_WITH_EVEN_MODULUS = 102; - {$EXTERNALSYM BN_R_DIV_BY_ZERO} - BN_R_DIV_BY_ZERO = 103; - {$EXTERNALSYM BN_R_ENCODING_ERROR} - BN_R_ENCODING_ERROR = 104; - {$EXTERNALSYM BN_R_EXPAND_ON_STATIC_BIGNUM_DATA} - BN_R_EXPAND_ON_STATIC_BIGNUM_DATA = 105; - {$EXTERNALSYM BN_R_INVALID_LENGTH} - BN_R_INVALID_LENGTH = 106; - {$EXTERNALSYM BN_R_NOT_INITIALIZED} - BN_R_NOT_INITIALIZED = 107; - {$EXTERNALSYM BN_R_NO_INVERSE} - BN_R_NO_INVERSE = 108; - {$EXTERNALSYM BN_TBIT} - BN_TBIT = $80000000; - {$EXTERNALSYM BUFSIZ} - BUFSIZ = 1024; - {$EXTERNALSYM BUF_F_BUF_MEM_GROW} - BUF_F_BUF_MEM_GROW = 100; - {$EXTERNALSYM BUF_F_BUF_MEM_NEW} - BUF_F_BUF_MEM_NEW = 101; - {$EXTERNALSYM BUF_F_BUF_STRDUP} - BUF_F_BUF_STRDUP = 102; - - //function codes - {$EXTERNALSYM RAND_F_ENG_RAND_GET_RAND_METHOD} - RAND_F_ENG_RAND_GET_RAND_METHOD = 108; - {$EXTERNALSYM RAND_F_FIPS_RAND} - RAND_F_FIPS_RAND = 103; - {$EXTERNALSYM RAND_F_FIPS_RAND_BYTES} - RAND_F_FIPS_RAND_BYTES = 102; - {$EXTERNALSYM RAND_F_FIPS_RAND_GET_RAND_METHOD} - RAND_F_FIPS_RAND_GET_RAND_METHOD = 109; - {$EXTERNALSYM RAND_F_FIPS_RAND_SET_DT} - RAND_F_FIPS_RAND_SET_DT = 106; - {$EXTERNALSYM RAND_F_FIPS_SET_DT} - RAND_F_FIPS_SET_DT = 104; - {$EXTERNALSYM RAND_F_FIPS_SET_PRNG_SEED} - RAND_F_FIPS_SET_PRNG_SEED = 107; - {$EXTERNALSYM RAND_F_FIPS_SET_TEST_MODE} - RAND_F_FIPS_SET_TEST_MODE = 105; - {$EXTERNALSYM RAND_F_RAND_GET_RAND_METHOD} - RAND_F_RAND_GET_RAND_METHOD = 101; - {$EXTERNALSYM RAND_F_SSLEAY_RAND_BYTES} - RAND_F_SSLEAY_RAND_BYTES = 100; - -//* Reason codes. */ - {$EXTERNALSYM RAND_R_NON_FIPS_METHOD} - RAND_R_NON_FIPS_METHOD = 105; - {$EXTERNALSYM RAND_R_NOT_IN_TEST_MODE} - RAND_R_NOT_IN_TEST_MODE = 106; - {$EXTERNALSYM RAND_R_NO_KEY_SET} - RAND_R_NO_KEY_SET = 107; - {$EXTERNALSYM RAND_R_PRNG_ASKING_FOR_TOO_MUCH} - RAND_R_PRNG_ASKING_FOR_TOO_MUCH = 101; - {$EXTERNALSYM RAND_R_PRNG_ERROR} - RAND_R_PRNG_ERROR = 108; - {$EXTERNALSYM RAND_R_PRNG_KEYED} - RAND_R_PRNG_KEYED = 109; - {$EXTERNALSYM RAND_R_PRNG_NOT_REKEYED} - RAND_R_PRNG_NOT_REKEYED = 102; - {$EXTERNALSYM RAND_R_PRNG_NOT_RESEEDED} - RAND_R_PRNG_NOT_RESEEDED = 103; - {$EXTERNALSYM RAND_R_PRNG_NOT_SEEDED} - RAND_R_PRNG_NOT_SEEDED = 100; - {$EXTERNALSYM RAND_R_PRNG_SEED_MUST_NOT_MATCH_KEY} - RAND_R_PRNG_SEED_MUST_NOT_MATCH_KEY = 110; - {$EXTERNALSYM RAND_R_PRNG_STUCK} - RAND_R_PRNG_STUCK = 104; - - {$EXTERNALSYM B_ASN1_BIT_STRING} - B_ASN1_BIT_STRING = $0400; - {$EXTERNALSYM B_ASN1_BMPSTRING} - B_ASN1_BMPSTRING = $0800; - {$EXTERNALSYM B_ASN1_GENERALSTRING} - B_ASN1_GENERALSTRING = $0080; - {$EXTERNALSYM B_ASN1_GRAPHICSTRING} - B_ASN1_GRAPHICSTRING = $0020; - {$EXTERNALSYM B_ASN1_IA5STRING} - B_ASN1_IA5STRING = $0010; - {$EXTERNALSYM B_ASN1_ISO64STRING} - B_ASN1_ISO64STRING = $0040; - {$EXTERNALSYM B_ASN1_NUMERICSTRING} - B_ASN1_NUMERICSTRING = $0001; - {$EXTERNALSYM B_ASN1_OCTET_STRING} - B_ASN1_OCTET_STRING = $0200; - {$EXTERNALSYM B_ASN1_PRINTABLESTRING} - B_ASN1_PRINTABLESTRING = $0002; - {$EXTERNALSYM B_ASN1_T61STRING} - B_ASN1_T61STRING = $0004; - {$EXTERNALSYM B_ASN1_TELETEXSTRING} - B_ASN1_TELETEXSTRING = $0008; - {$EXTERNALSYM B_ASN1_UNIVERSALSTRING} - B_ASN1_UNIVERSALSTRING = $0100; - {$EXTERNALSYM B_ASN1_UNKNOWN} - B_ASN1_UNKNOWN = $1000; - {$EXTERNALSYM B_ASN1_UTF8STRING} - B_ASN1_UTF8STRING = $2000; - {$EXTERNALSYM B_ASN1_VIDEOTEXSTRING} - B_ASN1_VIDEOTEXSTRING = $0008; - {$EXTERNALSYM B_ASN1_VISIBLESTRING} - B_ASN1_VISIBLESTRING = $0040; - {$EXTERNALSYM B_ASN1_UTCTIME} - B_ASN1_UTCTIME = $4000; - {$EXTERNALSYM B_ASN1_GENERALIZEDTIME} - B_ASN1_GENERALIZEDTIME = $8000; - {$EXTERNALSYM B_ASN1_SEQUENCE} - B_ASN1_SEQUENCE = $10000; - {$EXTERNALSYM B_ASN1_TIME} - B_ASN1_TIME = B_ASN1_UTCTIME or - {$EXTERNALSYM B_ASN1_PRINTABLE} - B_ASN1_GENERALIZEDTIME; - - {$EXTERNALSYM B_ASN1_PRINTABLE} - B_ASN1_PRINTABLE = B_ASN1_NUMERICSTRING or - {$EXTERNALSYM B_ASN1_DIRECTORYSTRING} - B_ASN1_PRINTABLESTRING or - {$EXTERNALSYM B_ASN1_DIRECTORYSTRING} - B_ASN1_T61STRING or - {$EXTERNALSYM B_ASN1_DIRECTORYSTRING} - B_ASN1_IA5STRING or - {$EXTERNALSYM B_ASN1_DIRECTORYSTRING} - B_ASN1_BIT_STRING or - {$EXTERNALSYM B_ASN1_DIRECTORYSTRING} - B_ASN1_UNIVERSALSTRING or - {$EXTERNALSYM B_ASN1_DIRECTORYSTRING} - B_ASN1_BMPSTRING or - {$EXTERNALSYM B_ASN1_DIRECTORYSTRING} - B_ASN1_UTF8STRING or - {$EXTERNALSYM B_ASN1_DIRECTORYSTRING} - B_ASN1_SEQUENCE or - {$EXTERNALSYM B_ASN1_DIRECTORYSTRING} - B_ASN1_UNKNOWN; - {$EXTERNALSYM B_ASN1_DIRECTORYSTRING} - B_ASN1_DIRECTORYSTRING = B_ASN1_PRINTABLESTRING or - {$EXTERNALSYM B_ASN1_DISPLAYTEXT} - B_ASN1_TELETEXSTRING or - {$EXTERNALSYM B_ASN1_DISPLAYTEXT} - B_ASN1_BMPSTRING or - {$EXTERNALSYM B_ASN1_DISPLAYTEXT} - B_ASN1_UNIVERSALSTRING or - {$EXTERNALSYM B_ASN1_DISPLAYTEXT} - B_ASN1_UTF8STRING; - {$EXTERNALSYM B_ASN1_DISPLAYTEXT} - B_ASN1_DISPLAYTEXT = B_ASN1_IA5STRING or - {$EXTERNALSYM MBSTRING_FLAG} - B_ASN1_VISIBLESTRING or - {$EXTERNALSYM MBSTRING_FLAG} - B_ASN1_BMPSTRING or - {$EXTERNALSYM MBSTRING_FLAG} - B_ASN1_UTF8STRING; - {$EXTERNALSYM MBSTRING_FLAG} - MBSTRING_FLAG = $1000; - {$EXTERNALSYM MBSTRING_UTF8} - MBSTRING_UTF8 = MBSTRING_FLAG; - {$EXTERNALSYM MBSTRING_ASC} - MBSTRING_ASC = MBSTRING_FLAG or 1; - {$EXTERNALSYM MBSTRING_BMP} - MBSTRING_BMP = MBSTRING_FLAG or 2; - {$EXTERNALSYM MBSTRING_UNIV} - MBSTRING_UNIV = MBSTRING_FLAG or 4; - {$EXTERNALSYM SMIME_OLDMIME} - SMIME_OLDMIME = $400; - {$EXTERNALSYM SMIME_CRLFEOL} - SMIME_CRLFEOL = $800; - {$EXTERNALSYM SMIME_STREAM} - SMIME_STREAM = $1000; - - {$EXTERNALSYM _CLOCKS_PER_SEC_} - _CLOCKS_PER_SEC_ = 1000; - {$EXTERNALSYM _CLOCKS_PER_SEC_} - {$EXTERNALSYM CLOCKS_PER_SEC} - CLOCKS_PER_SEC = _CLOCKS_PER_SEC_; - {$EXTERNALSYM CLOCKS_PER_SEC} - {$EXTERNALSYM CLK_TCK} - CLK_TCK = CLOCKS_PER_SEC; - {$EXTERNALSYM CLK_TCK} -//* Function codes. */ - {$EXTERNALSYM COMP_F_BIO_ZLIB_FLUSH} - COMP_F_BIO_ZLIB_FLUSH = 99; - {$EXTERNALSYM COMP_F_BIO_ZLIB_NEW} - COMP_F_BIO_ZLIB_NEW = 100; - {$EXTERNALSYM COMP_F_BIO_ZLIB_READ} - COMP_F_BIO_ZLIB_READ = 101; - {$EXTERNALSYM COMP_F_BIO_ZLIB_WRITE} - COMP_F_BIO_ZLIB_WRITE = 102; - -//* Reason codes. */ - {$EXTERNALSYM COMP_R_ZLIB_DEFLATE_ERROR} - COMP_R_ZLIB_DEFLATE_ERROR = 99; - {$EXTERNALSYM COMP_R_ZLIB_INFLATE_ERROR} - COMP_R_ZLIB_INFLATE_ERROR = 100; - {$EXTERNALSYM COMP_R_ZLIB_NOT_SUPPORTED} - COMP_R_ZLIB_NOT_SUPPORTED = 101; - - {$EXTERNALSYM CRYPTO_EX_INDEX_BIO} - CRYPTO_EX_INDEX_BIO = 0; - {$EXTERNALSYM CRYPTO_EX_INDEX_SSL} - CRYPTO_EX_INDEX_SSL = 1; - {$EXTERNALSYM CRYPTO_EX_INDEX_SSL_CTX} - CRYPTO_EX_INDEX_SSL_CTX = 2; - {$EXTERNALSYM CRYPTO_EX_INDEX_SSL_SESSION} - CRYPTO_EX_INDEX_SSL_SESSION = 3; - {$EXTERNALSYM CRYPTO_EX_INDEX_X509_STORE} - CRYPTO_EX_INDEX_X509_STORE = 4; - {$EXTERNALSYM CRYPTO_EX_INDEX_X509_STORE_CTX} - CRYPTO_EX_INDEX_X509_STORE_CTX = 5; - {$EXTERNALSYM CRYPTO_EX_INDEX_RSA} - CRYPTO_EX_INDEX_RSA = 6; - {$EXTERNALSYM CRYPTO_EX_INDEX_DSA} - CRYPTO_EX_INDEX_DSA = 7; - {$EXTERNALSYM CRYPTO_EX_INDEX_DH} - CRYPTO_EX_INDEX_DH = 8; - {$EXTERNALSYM CRYPTO_EX_INDEX_ENGINE} - CRYPTO_EX_INDEX_ENGINE = 9; - {$EXTERNALSYM CRYPTO_EX_INDEX_X509} - CRYPTO_EX_INDEX_X509 = 10; - {$EXTERNALSYM CRYPTO_EX_INDEX_UI} - CRYPTO_EX_INDEX_UI = 11; - {$EXTERNALSYM CRYPTO_EX_INDEX_ECDSA} - CRYPTO_EX_INDEX_ECDSA = 12; - {$EXTERNALSYM CRYPTO_EX_INDEX_ECDH} - CRYPTO_EX_INDEX_ECDH = 13; - {$EXTERNALSYM CRYPTO_EX_INDEX_COMP} - CRYPTO_EX_INDEX_COMP = 14; - {$EXTERNALSYM CRYPTO_EX_INDEX_STORE} - CRYPTO_EX_INDEX_STORE = 15; - {$EXTERNALSYM CRYPTO_EX_INDEX_USER} - CRYPTO_EX_INDEX_USER = 100; - - {$EXTERNALSYM CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX} - CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX = 100; - {$EXTERNALSYM CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID} - CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID = 103; - {$EXTERNALSYM CRYPTO_F_CRYPTO_GET_NEW_LOCKID} - CRYPTO_F_CRYPTO_GET_NEW_LOCKID = 101; - {$EXTERNALSYM CRYPTO_F_CRYPTO_SET_EX_DATA} - CRYPTO_F_CRYPTO_SET_EX_DATA = 102; - {$EXTERNALSYM CRYPTO_F_DEF_ADD_INDEX} - CRYPTO_F_DEF_ADD_INDEX = 104; - {$EXTERNALSYM CRYPTO_F_DEF_GET_CLASS} - CRYPTO_F_DEF_GET_CLASS = 105; - {$EXTERNALSYM CRYPTO_F_INT_DUP_EX_DATA} - CRYPTO_F_INT_DUP_EX_DATA = 106; - {$EXTERNALSYM CRYPTO_F_INT_FREE_EX_DATA} - CRYPTO_F_INT_FREE_EX_DATA = 107; - {$EXTERNALSYM CRYPTO_F_INT_NEW_EX_DATA} - CRYPTO_F_INT_NEW_EX_DATA = 108; - {$EXTERNALSYM CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK} - CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK = 100; - - {$EXTERNALSYM CRYPTO_LOCK} - CRYPTO_LOCK = 1; - {$EXTERNALSYM CRYPTO_LOCK_ERR} - CRYPTO_LOCK_ERR = 1; - {$EXTERNALSYM CRYPTO_LOCK_ERR_HASH} - CRYPTO_LOCK_ERR_HASH = 2; - {$EXTERNALSYM CRYPTO_LOCK_X509} - CRYPTO_LOCK_X509 = 3; - {$EXTERNALSYM CRYPTO_LOCK_X509_INFO} - CRYPTO_LOCK_X509_INFO = 4; - {$EXTERNALSYM CRYPTO_LOCK_X509_PKEY} - CRYPTO_LOCK_X509_PKEY = 5; - {$EXTERNALSYM CRYPTO_LOCK_X509_CRL} - CRYPTO_LOCK_X509_CRL = 6; - {$EXTERNALSYM CRYPTO_LOCK_X509_REQ} - CRYPTO_LOCK_X509_REQ = 7; - {$EXTERNALSYM CRYPTO_LOCK_DSA} - CRYPTO_LOCK_DSA = 8; - {$EXTERNALSYM CRYPTO_LOCK_RSA} - CRYPTO_LOCK_RSA = 9; - {$EXTERNALSYM CRYPTO_LOCK_EVP_PKEY} - CRYPTO_LOCK_EVP_PKEY = 10; - {$EXTERNALSYM CRYPTO_LOCK_X509_STORE} - CRYPTO_LOCK_X509_STORE = 11; - {$EXTERNALSYM CRYPTO_LOCK_SSL_CTX} - CRYPTO_LOCK_SSL_CTX = 12; - {$EXTERNALSYM CRYPTO_LOCK_SSL_CERT} - CRYPTO_LOCK_SSL_CERT = 13; - {$EXTERNALSYM CRYPTO_LOCK_SSL_SESSION} - CRYPTO_LOCK_SSL_SESSION = 14; - {$EXTERNALSYM CRYPTO_LOCK_SSL_SESS_CERT} - CRYPTO_LOCK_SSL_SESS_CERT = 15; - {$EXTERNALSYM CRYPTO_LOCK_SSL} - CRYPTO_LOCK_SSL = 16; - {$EXTERNALSYM CRYPTO_LOCK_SSL_METHOD} - CRYPTO_LOCK_SSL_METHOD = 17; - {$EXTERNALSYM CRYPTO_LOCK_RAND} - CRYPTO_LOCK_RAND = 18; -// CRYPTO_LOCK_RAND = 17; - {$EXTERNALSYM CRYPTO_LOCK_RAND2} - CRYPTO_LOCK_RAND2 = 19; - {$EXTERNALSYM CRYPTO_LOCK_MALLOC} - CRYPTO_LOCK_MALLOC = 20; -//was CRYPTO_LOCK_MALLOC = 18; - {$EXTERNALSYM CRYPTO_LOCK_BIO} - CRYPTO_LOCK_BIO = 21; -//was CRYPTO_LOCK_BIO = 19; - {$EXTERNALSYM CRYPTO_LOCK_GETHOSTBYNAME} - CRYPTO_LOCK_GETHOSTBYNAME = 22; -//was CRYPTO_LOCK_GETHOSTBYNAME = 20; - {$EXTERNALSYM CRYPTO_LOCK_GETSERVBYNAME} - CRYPTO_LOCK_GETSERVBYNAME = 23; -//was CRYPTO_LOCK_GETSERVBYNAME = 21; - {$EXTERNALSYM CRYPTO_LOCK_READDIR} - CRYPTO_LOCK_READDIR = 24; -//was CRYPTO_LOCK_READDIR = 22; - {$EXTERNALSYM CRYPTO_LOCK_RSA_BLINDING} - CRYPTO_LOCK_RSA_BLINDING = 25; -//was CRYPTO_LOCK_RSA_BLINDING = 23; - {$EXTERNALSYM CRYPTO_LOCK_DH} - CRYPTO_LOCK_DH = 26; - {$EXTERNALSYM CRYPTO_LOCK_MALLOC2} - CRYPTO_LOCK_MALLOC2 = 27; - {$EXTERNALSYM CRYPTO_LOCK_DSO} - CRYPTO_LOCK_DSO = 28; - {$EXTERNALSYM CRYPTO_LOCK_DYNLOCK} - CRYPTO_LOCK_DYNLOCK = 29; - {$EXTERNALSYM CRYPTO_LOCK_ENGINE} - CRYPTO_LOCK_ENGINE = 30; - {$EXTERNALSYM CRYPTO_LOCK_UI} - CRYPTO_LOCK_UI = 31; - {$EXTERNALSYM CRYPTO_LOCK_ECDSA} - CRYPTO_LOCK_ECDSA = 32; - {$EXTERNALSYM CRYPTO_LOCK_EC} - CRYPTO_LOCK_EC = 33; - {$EXTERNALSYM CRYPTO_LOCK_ECDH} - CRYPTO_LOCK_ECDH = 34; - {$EXTERNALSYM CRYPTO_LOCK_BN} - CRYPTO_LOCK_BN = 35; - {$EXTERNALSYM CRYPTO_LOCK_EC_PRE_COMP} - CRYPTO_LOCK_EC_PRE_COMP = 36; - {$EXTERNALSYM CRYPTO_LOCK_STORE} - CRYPTO_LOCK_STORE = 37; - {$EXTERNALSYM CRYPTO_LOCK_COMP} - CRYPTO_LOCK_COMP = 38; - {$IFNDEF OPENSSL_FIPS} - {$EXTERNALSYM CRYPTO_NUM_LOCKS} - CRYPTO_NUM_LOCKS = 39; -// was OPENSSL_CRYPTO_NUM_LOCKS = 24; - {$ELSE} - {$EXTERNALSYM CRYPTO_LOCK_FIPS} - CRYPTO_LOCK_FIPS = 39; - {$EXTERNALSYM CRYPTO_LOCK_FIPS2} - CRYPTO_LOCK_FIPS2 = 40; - {$EXTERNALSYM CRYPTO_NUM_LOCKS} - CRYPTO_NUM_LOCKS = 41; - {$ENDIF} - {$EXTERNALSYM CRYPTO_MEM_CHECK_DISABLE} - CRYPTO_MEM_CHECK_DISABLE = $3; - {$EXTERNALSYM CRYPTO_MEM_CHECK_ENABLE} - CRYPTO_MEM_CHECK_ENABLE = $2; - {$EXTERNALSYM CRYPTO_MEM_CHECK_OFF} - CRYPTO_MEM_CHECK_OFF = $0; - {$EXTERNALSYM CRYPTO_MEM_CHECK_ON} - CRYPTO_MEM_CHECK_ON = $1; - {$EXTERNALSYM CRYPTO_READ} - CRYPTO_READ = 4; - {$EXTERNALSYM CRYPTO_UNLOCK} - CRYPTO_UNLOCK = 2; - {$EXTERNALSYM CRYPTO_WRITE} - CRYPTO_WRITE = 8; - {$EXTERNALSYM V_CRYPTO_MDEBUG_TIME} - V_CRYPTO_MDEBUG_TIME = $1; - {$EXTERNALSYM V_CRYPTO_MDEBUG_THREAD} - V_CRYPTO_MDEBUG_THREAD = $2; - {$IFNDEF OPENSSL_NO_AES} - {$EXTERNALSYM AES_ENCRYPT} - AES_ENCRYPT = 1; - {$EXTERNALSYM AES_DECRYPT} - AES_DECRYPT = 0; - {$EXTERNALSYM AES_MAXNR} - AES_MAXNR = 14; - {$EXTERNALSYM AES_BLOCK_SIZE} - AES_BLOCK_SIZE = 16; - {$ENDIF} -//* These values are used as commands to DSO_ctrl() */ - {$EXTERNALSYM DSO_CTRL_GET_FLAGS} - DSO_CTRL_GET_FLAGS = 1; - {$EXTERNALSYM DSO_CTRL_SET_FLAGS} - DSO_CTRL_SET_FLAGS = 2; - {$EXTERNALSYM DSO_CTRL_OR_FLAGS} - DSO_CTRL_OR_FLAGS = 3; - -///* By default, DSO_load() will translate the provided filename into a form -// * typical for the platform (more specifically the DSO_METHOD) using the -// * dso_name_converter function of the method. Eg. win32 will transform "blah" -// * into "blah.dll", and dlfcn will transform it into "libblah.so". The -// * behaviour can be overriden by setting the name_converter callback in the DSO -// * object (using DSO_set_name_converter()). This callback could even utilise -// * the DSO_METHOD's converter too if it only wants to override behaviour for -// * one or two possible DSO methods. However, the following flag can be set in a -// * DSO to prevent *any* native name-translation at all - eg. if the caller has -// * prompted the user for a path to a driver library so the filename should be -// * interpreted as-is. */ - {$EXTERNALSYM DSO_FLAG_NO_NAME_TRANSLATION} - DSO_FLAG_NO_NAME_TRANSLATION = $01; -///* An extra flag to give if only the extension should be added as -// * translation. This is obviously only of importance on Unix and -// * other operating systems where the translation also may prefix -// * the name with something, like 'lib', and ignored everywhere else. -// * This flag is also ignored if DSO_FLAG_NO_NAME_TRANSLATION is used -// * at the same time. */ - {$EXTERNALSYM DSO_FLAG_NAME_TRANSLATION_EXT_ONLY} - DSO_FLAG_NAME_TRANSLATION_EXT_ONLY = $02; - -///* The following flag controls the translation of symbol names to upper -// * case. This is currently only being implemented for OpenVMS. -// */ - {$EXTERNALSYM DSO_FLAG_UPCASE_SYMBOL} - DSO_FLAG_UPCASE_SYMBOL = $10; - -//* This flag loads the library with public symbols. -// * Meaning: The exported symbols of this library are public -// * to all libraries loaded after this library. -// * At the moment only implemented in unix. -// */ - {$EXTERNALSYM DSO_FLAG_GLOBAL_SYMBOLS} - DSO_FLAG_GLOBAL_SYMBOLS = $20; - //seed.h - {$IFNDEF OPENSSL_NO_SEED} - {$IFDEF AES_LONG} //* look whether we need 'long' to get 32 bits */ - {$DEFINE SEED_LONG} - {$ENDIF} - {$EXTERNALSYM SEED_BLOCK_SIZE} - SEED_BLOCK_SIZE = 16; - {$EXTERNALSYM SEED_KEY_LENGTH} - SEED_KEY_LENGTH = 16; - {$ENDIF} - {$IFNDEF OPENSSL_NO_CAST} - {$EXTERNALSYM CAST_BLOCK} - CAST_BLOCK = 8; - {$EXTERNALSYM CAST_DECRYPT} - CAST_DECRYPT = 0; - {$EXTERNALSYM CAST_ENCRYPT} - CAST_ENCRYPT = 1; - {$EXTERNALSYM CAST_KEY_LENGTH} - CAST_KEY_LENGTH = 16; - {$ENDIF} - {$IFNDEF OPENSSL_NO_DES} - {$EXTERNALSYM DES_CBC_MODE} - DES_CBC_MODE = 0; - {$EXTERNALSYM DES_DECRYPT} - DES_DECRYPT = 0; - {$EXTERNALSYM DES_ENCRYPT} - DES_ENCRYPT = 1; - {$EXTERNALSYM DES_PCBC_MODE} - DES_PCBC_MODE = 1; - {$ENDIF} - {$IFNDEF OPENSSL_NO_DH} - //the OpenSSL developers probably only wanted to make sure this was defined. - {$EXTERNALSYM DH_MAX_MODULUS_BITS} - DH_MAX_MODULUS_BITS = 10000; - {$EXTERNALSYM DH_FIPS_MIN_MODULUS_BITS} - DH_FIPS_MIN_MODULUS_BITS = 1024; - {$EXTERNALSYM DH_FLAG_CACHE_MONT_P} - DH_FLAG_CACHE_MONT_P = $01; - {$EXTERNALSYM DH_FLAG_NO_EXP_CONSTTIME} - DH_FLAG_NO_EXP_CONSTTIME = $02; - {$EXTERNALSYM DH_GENERATOR_2} - DH_GENERATOR_2 = 2; - {$EXTERNALSYM DH_GENERATOR_5} - DH_GENERATOR_5 = 5; - {$EXTERNALSYM DH_CHECK_P_NOT_PRIME} - DH_CHECK_P_NOT_PRIME = $01; - {$EXTERNALSYM DH_CHECK_P_NOT_STRONG_PRIME} - DH_CHECK_P_NOT_STRONG_PRIME = $02; - {$EXTERNALSYM DH_UNABLE_TO_CHECK_GENERATOR} - DH_UNABLE_TO_CHECK_GENERATOR = $04; - {$EXTERNALSYM DH_NOT_SUITABLE_GENERATOR} - DH_NOT_SUITABLE_GENERATOR = $08; - {$EXTERNALSYM DH_CHECK_PUBKEY_TOO_SMALL} - DH_CHECK_PUBKEY_TOO_SMALL = $01; - {$EXTERNALSYM DH_CHECK_PUBKEY_TOO_LARGE} - DH_CHECK_PUBKEY_TOO_LARGE = $02; - {$EXTERNALSYM DH_CHECK_P_NOT_SAFE_PRIME} - DH_CHECK_P_NOT_SAFE_PRIME = DH_CHECK_P_NOT_STRONG_PRIME; - {$EXTERNALSYM DH_F_DHPARAMS_PRINT} - DH_F_DHPARAMS_PRINT = 100; - {$EXTERNALSYM DH_F_DHPARAMS_PRINT_FP} - DH_F_DHPARAMS_PRINT_FP = 101; - {$EXTERNALSYM DH_F_COMPUTE_KEY} - DH_F_COMPUTE_KEY = 102; - {$EXTERNALSYM DH_F_GENERATE_KEY} - DH_F_GENERATE_KEY = 103; - {$EXTERNALSYM DH_F_GENERATE_PARAMETERS} - DH_F_GENERATE_PARAMETERS = 104; - {$EXTERNALSYM DH_F_DH_NEW_METHOD} - DH_F_DH_NEW_METHOD = 105; - {$EXTERNALSYM DH_F_DH_NEW} - DH_F_DH_NEW = 105; - {$EXTERNALSYM DH_F_DH_BUILTIN_GENPARAMS} - DH_F_DH_BUILTIN_GENPARAMS = 106; - {$EXTERNALSYM DH_F_DH_COMPUTE_KEY} - DH_F_DH_COMPUTE_KEY = 107; - //was DH_F_DH_COMPUTE_KEY = 102; - {$EXTERNALSYM DH_F_DH_GENERATE_KEY} - DH_F_DH_GENERATE_KEY = 108; - //was DH_F_DH_GENERATE_KEY = 103; - {$EXTERNALSYM DH_F_DH_GENERATE_PARAMETERS} - DH_F_DH_GENERATE_PARAMETERS = 109; - //was DH_F_DH_GENERATE_PARAMETERS = 104; - {$EXTERNALSYM DH_R_NO_PRIVATE_VALUE} - DH_R_NO_PRIVATE_VALUE = 100; - {$EXTERNALSYM DH_R_BAD_GENERATOR} - DH_R_BAD_GENERATOR = 101; - {$EXTERNALSYM DH_R_INVALID_PUBKEY} - DH_R_INVALID_PUBKEY = 102; - {$EXTERNALSYM DH_R_MODULUS_TOO_LARGE} - DH_R_MODULUS_TOO_LARGE = 103; - {$EXTERNALSYM DH_R_KEY_SIZE_TOO_SMALL} - DH_R_KEY_SIZE_TOO_SMALL = 104; - {$ENDIF} - {$IFNDEF OPENSSL_NO_DSA} - //I think the OpenSSL developers wanted to make sure this was defined. - {$EXTERNALSYM DSA_MAX_MODULUS_BITS} - DSA_MAX_MODULUS_BITS = 10000; - {$EXTERNALSYM DSA_FIPS_MIN_MODULUS_BITS} - DSA_FIPS_MIN_MODULUS_BITS = 1024; - {$EXTERNALSYM DSA_FLAG_CACHE_MONT_P} - DSA_FLAG_CACHE_MONT_P = $01; - {$EXTERNALSYM DSA_FLAG_NO_EXP_CONSTTIME} - DSA_FLAG_NO_EXP_CONSTTIME = $02; //* new with 0.9.7h; the built-in DSA -///* If this flag is set the DSA method is FIPS compliant and can be used -// * in FIPS mode. This is set in the validated module method. If an -// * application sets this flag in its own methods it is its reposibility -// * to ensure the result is compliant. -// */ - {$EXTERNALSYM DSA_FLAG_FIPS_METHOD} - DSA_FLAG_FIPS_METHOD = $0400; -///* If this flag is set the operations normally disabled in FIPS mode are -// * permitted it is then the applications responsibility to ensure that the -// * usage is compliant. -// */ - {$EXTERNALSYM DSA_FLAG_NON_FIPS_ALLOW} - DSA_FLAG_NON_FIPS_ALLOW = $0400; - {$EXTERNALSYM DSA_F_D2I_DSA_SIG} - DSA_F_D2I_DSA_SIG = 110; - {$EXTERNALSYM DSA_F_DSAPARAMS_PRINT} - DSA_F_DSAPARAMS_PRINT = 100; - {$EXTERNALSYM DSA_F_DSAPARAMS_PRINT_FP} - DSA_F_DSAPARAMS_PRINT_FP = 101; - {$EXTERNALSYM DSA_F_DSA_BUILTIN_KEYGEN} - DSA_F_DSA_BUILTIN_KEYGEN = 119; - {$EXTERNALSYM DSA_F_DSA_BUILTIN_PARAMGEN} - DSA_F_DSA_BUILTIN_PARAMGEN = 118; - {$EXTERNALSYM DSA_F_DSA_DO_SIGN} - DSA_F_DSA_DO_SIGN = 112; - {$EXTERNALSYM DSA_F_DSA_DO_VERIFY} - DSA_F_DSA_DO_VERIFY = 113; - {$EXTERNALSYM DSA_F_DSA_IS_PRIME} - DSA_F_DSA_IS_PRIME = 102; - {$EXTERNALSYM DSA_F_DSA_NEW} - DSA_F_DSA_NEW = 103; - {$EXTERNALSYM DSA_F_DSA_PRINT} - DSA_F_DSA_PRINT = 104; - {$EXTERNALSYM DSA_F_DSA_PRINT_FP} - DSA_F_DSA_PRINT_FP = 105; - {$EXTERNALSYM DSA_F_DSA_SIGN} - DSA_F_DSA_SIGN = 106; - {$EXTERNALSYM DSA_F_DSA_SIGN_SETUP} - DSA_F_DSA_SIGN_SETUP = 107; - {$EXTERNALSYM DSA_F_DSA_SIG_NEW} - DSA_F_DSA_SIG_NEW = 109; - {$EXTERNALSYM DSA_F_DSA_VERIFY} - DSA_F_DSA_VERIFY = 108; - {$EXTERNALSYM DSA_F_DSA_GENERATE_PARAMETERS} - DSA_F_DSA_GENERATE_PARAMETERS = 117; - {$EXTERNALSYM DSA_F_I2D_DSA_SIG} - DSA_F_I2D_DSA_SIG = 111; - {$EXTERNALSYM DSA_F_SIG_CB} - DSA_F_SIG_CB = 114; - {$EXTERNALSYM DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE} - DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE = 100; - {$EXTERNALSYM DSA_R_MISSING_PARAMETERS} - DSA_R_MISSING_PARAMETERS = 101; - {$EXTERNALSYM DSA_R_BAD_Q_VALUE} - DSA_R_BAD_Q_VALUE = 102; - {$EXTERNALSYM DSA_R_MODULUS_TOO_LARGE} - DSA_R_MODULUS_TOO_LARGE = 103; - {$EXTERNALSYM DSA_R_NON_FIPS_METHOD} - DSA_R_NON_FIPS_METHOD = 104; - {$EXTERNALSYM DSA_R_OPERATION_NOT_ALLOWED_IN_FIPS_MODE} - DSA_R_OPERATION_NOT_ALLOWED_IN_FIPS_MODE = 105; - {$EXTERNALSYM DSA_R_KEY_SIZE_TOO_SMALL} - DSA_R_KEY_SIZE_TOO_SMALL = 106; - {$ENDIF} - {$IFNDEF NO_EC} - {$EXTERNALSYM ECC_MAX_FIELD_BITS} - ECC_MAX_FIELD_BITS = 661; - {$EXTERNALSYM EC_NAMED_CURVE} - EC_NAMED_CURVE = $001; - {$EXTERNALSYM POINT_CONVERSION_COMPRESSED} - POINT_CONVERSION_COMPRESSED = 2; - {$EXTERNALSYM POINT_CONVERSION_UNCOMPRESSED} - POINT_CONVERSION_UNCOMPRESSED = 4; - {$EXTERNALSYM POINT_CONVERSION_HYBRID} - POINT_CONVERSION_HYBRID = 6; - {$EXTERNALSYM EC_PKEY_NO_PARAMETERS} - EC_PKEY_NO_PARAMETERS = $001; - {$EXTERNALSYM EC_PKEY_NO_PUBKEY} - EC_PKEY_NO_PUBKEY = $002; -//* Error codes for the EC functions. */ -//* Function codes. */ - {$EXTERNALSYM EC_F_COMPUTE_WNAF} - EC_F_COMPUTE_WNAF = 143; - {$EXTERNALSYM EC_F_D2I_ECPARAMETERS} - EC_F_D2I_ECPARAMETERS = 144; - {$EXTERNALSYM EC_F_D2I_ECPKPARAMETERS} - EC_F_D2I_ECPKPARAMETERS = 145; - {$EXTERNALSYM EC_F_D2I_ECPRIVATEKEY} - EC_F_D2I_ECPRIVATEKEY = 146; - {$EXTERNALSYM EC_F_ECPARAMETERS_PRINT} - EC_F_ECPARAMETERS_PRINT = 147; - {$EXTERNALSYM EC_F_ECPARAMETERS_PRINT_FP} - EC_F_ECPARAMETERS_PRINT_FP = 148; - {$EXTERNALSYM EC_F_ECPKPARAMETERS_PRINT} - EC_F_ECPKPARAMETERS_PRINT = 149; - {$EXTERNALSYM EC_F_ECPKPARAMETERS_PRINT_FP} - EC_F_ECPKPARAMETERS_PRINT_FP = 150; - {$EXTERNALSYM EC_F_ECP_NIST_MOD_192} - EC_F_ECP_NIST_MOD_192 = 203; - {$EXTERNALSYM EC_F_ECP_NIST_MOD_224} - EC_F_ECP_NIST_MOD_224 = 204; - {$EXTERNALSYM EC_F_ECP_NIST_MOD_256} - EC_F_ECP_NIST_MOD_256 = 205; - {$EXTERNALSYM EC_F_ECP_NIST_MOD_521} - EC_F_ECP_NIST_MOD_521 = 206; - {$EXTERNALSYM EC_F_EC_ASN1_GROUP2CURVE} - EC_F_EC_ASN1_GROUP2CURVE = 153; - {$EXTERNALSYM EC_F_EC_ASN1_GROUP2FIELDID} - EC_F_EC_ASN1_GROUP2FIELDID = 154; - {$EXTERNALSYM EC_F_EC_ASN1_GROUP2PARAMETERS} - EC_F_EC_ASN1_GROUP2PARAMETERS = 155; - {$EXTERNALSYM EC_F_EC_ASN1_GROUP2PKPARAMETERS} - EC_F_EC_ASN1_GROUP2PKPARAMETERS = 156; - {$EXTERNALSYM EC_F_EC_ASN1_PARAMETERS2GROUP} - EC_F_EC_ASN1_PARAMETERS2GROUP = 157; - {$EXTERNALSYM EC_F_EC_ASN1_PKPARAMETERS2GROUP} - EC_F_EC_ASN1_PKPARAMETERS2GROUP = 158; - {$EXTERNALSYM EC_F_EC_EX_DATA_SET_DATA} - EC_F_EC_EX_DATA_SET_DATA = 211; - {$EXTERNALSYM EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY} - EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY = 208; - {$EXTERNALSYM EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT} - EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT = 159; - {$EXTERNALSYM EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE} - EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE = 195; - {$EXTERNALSYM EC_F_EC_GF2M_SIMPLE_OCT2POINT} - EC_F_EC_GF2M_SIMPLE_OCT2POINT = 160; - {$EXTERNALSYM EC_F_EC_GF2M_SIMPLE_POINT2OCT} - EC_F_EC_GF2M_SIMPLE_POINT2OCT = 161; - {$EXTERNALSYM EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES} - EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES = 162; - {$EXTERNALSYM EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES} - EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES = 163; - {$EXTERNALSYM EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES} - EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES = 164; - {$EXTERNALSYM EC_F_EC_GFP_MONT_FIELD_DECODE} - EC_F_EC_GFP_MONT_FIELD_DECODE = 133; - {$EXTERNALSYM EC_F_EC_GFP_MONT_FIELD_ENCODE} - EC_F_EC_GFP_MONT_FIELD_ENCODE = 134; - {$EXTERNALSYM EC_F_EC_GFP_MONT_FIELD_MUL} - EC_F_EC_GFP_MONT_FIELD_MUL = 131; - {$EXTERNALSYM EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE} - EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE = 209; - {$EXTERNALSYM EC_F_EC_GFP_MONT_FIELD_SQR} - EC_F_EC_GFP_MONT_FIELD_SQR = 132; - {$EXTERNALSYM EC_F_EC_GFP_MONT_GROUP_SET_CURVE} - EC_F_EC_GFP_MONT_GROUP_SET_CURVE = 189; - {$EXTERNALSYM EC_F_EC_GFP_MONT_GROUP_SET_CURVE_GFP} - EC_F_EC_GFP_MONT_GROUP_SET_CURVE_GFP = 135; - {$EXTERNALSYM EC_F_EC_GFP_NIST_FIELD_MUL} - EC_F_EC_GFP_NIST_FIELD_MUL = 200; - {$EXTERNALSYM EC_F_EC_GFP_NIST_FIELD_SQR} - EC_F_EC_GFP_NIST_FIELD_SQR = 201; - {$EXTERNALSYM EC_F_EC_GFP_NIST_GROUP_SET_CURVE} - EC_F_EC_GFP_NIST_GROUP_SET_CURVE = 202; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT} - EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT = 165; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE} - EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE = 166; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE_GFP} - EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE_GFP = 100; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_GROUP_SET_GENERATOR} - EC_F_EC_GFP_SIMPLE_GROUP_SET_GENERATOR = 101; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_MAKE_AFFINE} - EC_F_EC_GFP_SIMPLE_MAKE_AFFINE = 102; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_OCT2POINT} - EC_F_EC_GFP_SIMPLE_OCT2POINT = 103; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_POINT2OCT} - EC_F_EC_GFP_SIMPLE_POINT2OCT = 104; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE} - EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE = 137; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES} - EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES = 167; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES_GFP} - EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES_GFP = 105; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES} - EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES = 168; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES_GFP} - EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES_GFP = 128; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES} - EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES = 169; - {$EXTERNALSYM EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES_GFP} - EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES_GFP = 129; - {$EXTERNALSYM EC_F_EC_GROUP_CHECK} - EC_F_EC_GROUP_CHECK = 170; - {$EXTERNALSYM EC_F_EC_GROUP_CHECK_DISCRIMINANT} - EC_F_EC_GROUP_CHECK_DISCRIMINANT = 171; - {$EXTERNALSYM EC_F_EC_GROUP_COPY} - EC_F_EC_GROUP_COPY = 106; - {$EXTERNALSYM EC_F_EC_GROUP_GET0_GENERATOR} - EC_F_EC_GROUP_GET0_GENERATOR = 139; - {$EXTERNALSYM EC_F_EC_GROUP_GET_COFACTOR} - EC_F_EC_GROUP_GET_COFACTOR = 140; - {$EXTERNALSYM EC_F_EC_GROUP_GET_CURVE_GF2M} - EC_F_EC_GROUP_GET_CURVE_GF2M = 172; - {$EXTERNALSYM EC_F_EC_GROUP_GET_CURVE_GFP} - EC_F_EC_GROUP_GET_CURVE_GFP = 130; - {$EXTERNALSYM EC_F_EC_GROUP_GET_DEGREE} - EC_F_EC_GROUP_GET_DEGREE = 173; - {$EXTERNALSYM EC_F_EC_GROUP_GET_ORDER} - EC_F_EC_GROUP_GET_ORDER = 141; - {$EXTERNALSYM EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS} - EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS = 193; - {$EXTERNALSYM EC_F_EC_GROUP_GET_TRINOMIAL_BASIS} - EC_F_EC_GROUP_GET_TRINOMIAL_BASIS = 194; - {$EXTERNALSYM EC_F_EC_GROUP_NEW} - EC_F_EC_GROUP_NEW = 108; - {$EXTERNALSYM EC_F_EC_GROUP_NEW_BY_CURVE_NAME} - EC_F_EC_GROUP_NEW_BY_CURVE_NAME = 174; - {$EXTERNALSYM EC_F_EC_GROUP_NEW_FROM_DATA} - EC_F_EC_GROUP_NEW_FROM_DATA = 175; - {$EXTERNALSYM EC_F_EC_GROUP_PRECOMPUTE_MULT} - EC_F_EC_GROUP_PRECOMPUTE_MULT = 142; - {$EXTERNALSYM EC_F_EC_GROUP_SET_CURVE_GF2M} - EC_F_EC_GROUP_SET_CURVE_GF2M = 176; - {$EXTERNALSYM EC_F_EC_GROUP_SET_CURVE_GFP} - EC_F_EC_GROUP_SET_CURVE_GFP = 109; - {$EXTERNALSYM EC_F_EC_GROUP_SET_EXTRA_DATA} - EC_F_EC_GROUP_SET_EXTRA_DATA = 110; - {$EXTERNALSYM EC_F_EC_GROUP_SET_GENERATOR} - EC_F_EC_GROUP_SET_GENERATOR = 111; - {$EXTERNALSYM EC_F_EC_KEY_CHECK_KEY} - EC_F_EC_KEY_CHECK_KEY = 177; - {$EXTERNALSYM EC_F_EC_KEY_COPY} - EC_F_EC_KEY_COPY = 178; - {$EXTERNALSYM EC_F_EC_KEY_GENERATE_KEY} - EC_F_EC_KEY_GENERATE_KEY = 179; - {$EXTERNALSYM EC_F_EC_KEY_NEW} - EC_F_EC_KEY_NEW = 182; - {$EXTERNALSYM EC_F_EC_KEY_PRINT} - EC_F_EC_KEY_PRINT = 180; - {$EXTERNALSYM EC_F_EC_KEY_PRINT_FP} - EC_F_EC_KEY_PRINT_FP = 181; - {$EXTERNALSYM EC_F_EC_POINTS_MAKE_AFFINE} - EC_F_EC_POINTS_MAKE_AFFINE = 136; - {$EXTERNALSYM EC_F_EC_POINTS_MUL} - EC_F_EC_POINTS_MUL = 138; - {$EXTERNALSYM EC_F_EC_POINT_ADD} - EC_F_EC_POINT_ADD = 112; - {$EXTERNALSYM EC_F_EC_POINT_CMP} - EC_F_EC_POINT_CMP = 113; - {$EXTERNALSYM EC_F_EC_POINT_COPY} - EC_F_EC_POINT_COPY = 114; - {$EXTERNALSYM EC_F_EC_POINT_DBL} - EC_F_EC_POINT_DBL = 115; - {$EXTERNALSYM EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M} - EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M = 183; - {$EXTERNALSYM EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP} - EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP = 116; - {$EXTERNALSYM EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP} - EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP = 117; - {$EXTERNALSYM EC_F_EC_POINT_INVERT} - EC_F_EC_POINT_INVERT = 210; - {$EXTERNALSYM EC_F_EC_POINT_IS_AT_INFINITY} - EC_F_EC_POINT_IS_AT_INFINITY = 118; - {$EXTERNALSYM EC_F_EC_POINT_IS_ON_CURVE} - EC_F_EC_POINT_IS_ON_CURVE = 119; - {$EXTERNALSYM EC_F_EC_POINT_MAKE_AFFINE} - EC_F_EC_POINT_MAKE_AFFINE = 120; - {$EXTERNALSYM EC_F_EC_POINT_MUL} - EC_F_EC_POINT_MUL = 184; - {$EXTERNALSYM EC_F_EC_POINT_NEW} - EC_F_EC_POINT_NEW = 121; - {$EXTERNALSYM EC_F_EC_POINT_OCT2POINT} - EC_F_EC_POINT_OCT2POINT = 122; - {$EXTERNALSYM EC_F_EC_POINT_POINT2OCT} - EC_F_EC_POINT_POINT2OCT = 123; - {$EXTERNALSYM EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M} - EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M = 185; - {$EXTERNALSYM EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP} - EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP = 124; - {$EXTERNALSYM EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M} - EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M = 186; - {$EXTERNALSYM EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP} - EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP = 125; - {$EXTERNALSYM EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP} - EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP = 126; - {$EXTERNALSYM EC_F_EC_POINT_SET_TO_INFINITY} - EC_F_EC_POINT_SET_TO_INFINITY = 127; - {$EXTERNALSYM EC_F_EC_PRE_COMP_DUP} - EC_F_EC_PRE_COMP_DUP = 207; - {$EXTERNALSYM EC_F_EC_PRE_COMP_NEW} - EC_F_EC_PRE_COMP_NEW = 196; - {$EXTERNALSYM EC_F_EC_WNAF_MUL} - EC_F_EC_WNAF_MUL = 187; - {$EXTERNALSYM EC_F_EC_WNAF_PRECOMPUTE_MULT} - EC_F_EC_WNAF_PRECOMPUTE_MULT = 188; - {$EXTERNALSYM EC_F_I2D_ECPARAMETERS} - EC_F_I2D_ECPARAMETERS = 190; - {$EXTERNALSYM EC_F_I2D_ECPKPARAMETERS} - EC_F_I2D_ECPKPARAMETERS = 191; - {$EXTERNALSYM EC_F_I2D_ECPRIVATEKEY} - EC_F_I2D_ECPRIVATEKEY = 192; - {$EXTERNALSYM EC_F_I2O_ECPUBLICKEY} - EC_F_I2O_ECPUBLICKEY = 151; - {$EXTERNALSYM EC_F_O2I_ECPUBLICKEY} - EC_F_O2I_ECPUBLICKEY = 152; -//* Reason codes. */ - {$EXTERNALSYM EC_R_ASN1_ERROR} - EC_R_ASN1_ERROR = 115; - {$EXTERNALSYM EC_R_ASN1_UNKNOWN_FIELD} - EC_R_ASN1_UNKNOWN_FIELD = 116; - {$EXTERNALSYM EC_R_BUFFER_TOO_SMALL} - EC_R_BUFFER_TOO_SMALL = 100; - {$EXTERNALSYM EC_R_D2I_ECPKPARAMETERS_FAILURE} - EC_R_D2I_ECPKPARAMETERS_FAILURE = 117; - {$EXTERNALSYM EC_R_DISCRIMINANT_IS_ZERO} - EC_R_DISCRIMINANT_IS_ZERO = 118; - {$EXTERNALSYM EC_R_EC_GROUP_NEW_BY_NAME_FAILURE} - EC_R_EC_GROUP_NEW_BY_NAME_FAILURE = 119; - {$EXTERNALSYM EC_R_FIELD_TOO_LARGE} - EC_R_FIELD_TOO_LARGE = 138; - {$EXTERNALSYM EC_R_GROUP2PKPARAMETERS_FAILURE} - EC_R_GROUP2PKPARAMETERS_FAILURE = 120; - {$EXTERNALSYM EC_R_I2D_ECPKPARAMETERS_FAILURE} - EC_R_I2D_ECPKPARAMETERS_FAILURE = 121; - {$EXTERNALSYM EC_R_INCOMPATIBLE_OBJECTS} - EC_R_INCOMPATIBLE_OBJECTS = 101; - {$EXTERNALSYM EC_R_INVALID_ARGUMENT} - EC_R_INVALID_ARGUMENT = 112; - {$EXTERNALSYM EC_R_INVALID_COMPRESSED_POINT} - EC_R_INVALID_COMPRESSED_POINT = 110; - {$EXTERNALSYM EC_R_INVALID_COMPRESSION_BIT} - EC_R_INVALID_COMPRESSION_BIT = 109; - {$EXTERNALSYM EC_R_INVALID_ENCODING} - EC_R_INVALID_ENCODING = 102; - {$EXTERNALSYM EC_R_INVALID_FIELD} - EC_R_INVALID_FIELD = 103; - {$EXTERNALSYM EC_R_INVALID_FORM} - EC_R_INVALID_FORM = 104; - {$EXTERNALSYM EC_R_INVALID_GROUP_ORDER} - EC_R_INVALID_GROUP_ORDER = 122; - {$EXTERNALSYM EC_R_INVALID_PENTANOMIAL_BASIS} - EC_R_INVALID_PENTANOMIAL_BASIS = 132; - {$EXTERNALSYM EC_R_INVALID_PRIVATE_KEY} - EC_R_INVALID_PRIVATE_KEY = 123; - {$EXTERNALSYM EC_R_INVALID_TRINOMIAL_BASIS} - EC_R_INVALID_TRINOMIAL_BASIS = 137; - {$EXTERNALSYM EC_R_MISSING_PARAMETERS} - EC_R_MISSING_PARAMETERS = 124; - {$EXTERNALSYM EC_R_MISSING_PRIVATE_KEY} - EC_R_MISSING_PRIVATE_KEY = 125; - {$EXTERNALSYM EC_R_NOT_A_NIST_PRIME} - EC_R_NOT_A_NIST_PRIME = 135; - {$EXTERNALSYM EC_R_NOT_A_SUPPORTED_NIST_PRIME} - EC_R_NOT_A_SUPPORTED_NIST_PRIME = 136; - {$EXTERNALSYM EC_R_NOT_IMPLEMENTED} - EC_R_NOT_IMPLEMENTED = 126; - {$EXTERNALSYM EC_R_NOT_INITIALIZED} - EC_R_NOT_INITIALIZED = 111; - {$EXTERNALSYM EC_R_NO_FIELD_MOD} - EC_R_NO_FIELD_MOD = 133; - {$EXTERNALSYM EC_R_PASSED_NULL_PARAMETER} - EC_R_PASSED_NULL_PARAMETER = 134; - {$EXTERNALSYM EC_R_PKPARAMETERS2GROUP_FAILURE} - EC_R_PKPARAMETERS2GROUP_FAILURE = 127; - {$EXTERNALSYM EC_R_POINT_AT_INFINITY} - EC_R_POINT_AT_INFINITY = 106; - {$EXTERNALSYM EC_R_POINT_IS_NOT_ON_CURVE} - EC_R_POINT_IS_NOT_ON_CURVE = 107; - {$EXTERNALSYM EC_R_SLOT_FULL} - EC_R_SLOT_FULL = 108; - {$EXTERNALSYM EC_R_UNDEFINED_GENERATOR} - EC_R_UNDEFINED_GENERATOR = 113; - {$EXTERNALSYM EC_R_UNDEFINED_ORDER} - EC_R_UNDEFINED_ORDER = 128; - {$EXTERNALSYM EC_R_UNKNOWN_GROUP} - EC_R_UNKNOWN_GROUP = 129; - {$EXTERNALSYM EC_R_UNKNOWN_ORDER} - EC_R_UNKNOWN_ORDER = 114; - {$EXTERNALSYM EC_R_UNSUPPORTED_FIELD} - EC_R_UNSUPPORTED_FIELD = 131; - {$EXTERNALSYM EC_R_WRONG_ORDER} - EC_R_WRONG_ORDER = 130; - {$ENDIF} - {$IFNDEF OPENSSL_NO_ECDSA} - {$EXTERNALSYM ECDSA_F_ECDSA_DATA_NEW_METHOD} - ECDSA_F_ECDSA_DATA_NEW_METHOD = 100; - {$EXTERNALSYM ECDSA_F_ECDSA_DO_SIGN} - ECDSA_F_ECDSA_DO_SIGN = 101; - {$EXTERNALSYM ECDSA_F_ECDSA_DO_VERIFY} - ECDSA_F_ECDSA_DO_VERIFY = 102; - {$EXTERNALSYM ECDSA_F_ECDSA_SIGN_SETUP} - ECDSA_F_ECDSA_SIGN_SETUP = 103; - {$EXTERNALSYM ECDSA_R_BAD_SIGNATURE} - ECDSA_R_BAD_SIGNATURE = 100; - {$EXTERNALSYM ECDSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE} - ECDSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE = 101; - {$EXTERNALSYM ECDSA_R_ERR_EC_LIB} - ECDSA_R_ERR_EC_LIB = 102; - {$EXTERNALSYM ECDSA_R_MISSING_PARAMETERS} - ECDSA_R_MISSING_PARAMETERS = 103; - {$EXTERNALSYM ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED} - ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED = 104; - {$EXTERNALSYM ECDSA_R_SIGNATURE_MALLOC_FAILED} - ECDSA_R_SIGNATURE_MALLOC_FAILED = 105; - {$ENDIF} - {$IFNDEF OPENSSL_NO_ECDH} - {$EXTERNALSYM ECDH_F_ECDH_COMPUTE_KEY} - ECDH_F_ECDH_COMPUTE_KEY = 100; - {$EXTERNALSYM ECDH_F_ECDH_DATA_NEW_METHOD} - ECDH_F_ECDH_DATA_NEW_METHOD = 101; - {$EXTERNALSYM ECDH_R_KDF_FAILED} - ECDH_R_KDF_FAILED = 102; - {$EXTERNALSYM ECDH_R_NO_PRIVATE_VALUE} - ECDH_R_NO_PRIVATE_VALUE = 100; - {$EXTERNALSYM ECDH_R_POINT_ARITHMETIC_FAILURE} - ECDH_R_POINT_ARITHMETIC_FAILURE = 101; - {$ENDIF} - {$IFNDEF OPENSSL_NO_BF} - {$EXTERNALSYM BF_BLOCK} - BF_BLOCK = 8; - {$EXTERNALSYM BF_DECRYPT} - BF_DECRYPT = 0; - {$EXTERNALSYM BF_ENCRYPT} - BF_ENCRYPT = 1; - {$EXTERNALSYM BF_ROUNDS} - BF_ROUNDS = 16; - {$ENDIF} - {$EXTERNALSYM EVP_MAX_MD_SIZE} - EVP_MAX_MD_SIZE = 64; //* longest known is SHA512 */ - value I found, 16+20; - {$EXTERNALSYM EVP_MAX_KEY_LENGTH} - EVP_MAX_KEY_LENGTH = 32; //value I found, 24; - {$EXTERNALSYM EVP_MAX_IV_LENGTH} - EVP_MAX_IV_LENGTH = 16; //value I found, 8; - {$EXTERNALSYM EVP_MAX_BLOCK_LENGTH} - EVP_MAX_BLOCK_LENGTH=32; - {$EXTERNALSYM NID_dhKeyAgreement} - NID_dhKeyAgreement = 28; - - {$EXTERNALSYM NID_dsa} - NID_dsa = 116; - - {$EXTERNALSYM NID_dsa_2} - NID_dsa_2 = 67; - - {$EXTERNALSYM NID_dsaWithSHA} - NID_dsaWithSHA = 66; - - {$EXTERNALSYM NID_dsaWithSHA1} - NID_dsaWithSHA1 = 113; - - {$EXTERNALSYM NID_dsaWithSHA1_2} - NID_dsaWithSHA1_2 = 70; - - {$EXTERNALSYM EVP_PKEY_MO_SIGN} - EVP_PKEY_MO_SIGN = $0001; - {$EXTERNALSYM EVP_PKEY_MO_VERIFY} - EVP_PKEY_MO_VERIFY = $0002; - - {$EXTERNALSYM EVP_PKEY_MO_ENCRYPT} - EVP_PKEY_MO_ENCRYPT = $0004; - {$EXTERNALSYM EVP_PKEY_MO_DECRYPT} - EVP_PKEY_MO_DECRYPT = $0008; - - {$EXTERNALSYM EVP_MD_FLAG_FIPS} - EVP_MD_FLAG_FIPS = $0400; - //* Note if suitable for use in FIPS mode */ - {$EXTERNALSYM EVP_MD_FLAG_PKEY_DIGEST} - EVP_MD_FLAG_PKEY_DIGEST = $0002; //* digest is a "clone" digest used -// * which is a copy of an existing -// * one for a specific public key type. -// * EVP_dss1() etc */ -//* Digest uses EVP_PKEY_METHOD for signing instead of MD specific signing */ - - {$EXTERNALSYM EVP_MD_FLAG_PKEY_METHOD_SIGNATURE} - EVP_MD_FLAG_PKEY_METHOD_SIGNATURE = $0004; //note: conflicts with FIPS - -//* DigestAlgorithmIdentifier flags... */ - - {$EXTERNALSYM EVP_MD_FLAG_DIGALGID_MASK} - EVP_MD_FLAG_DIGALGID_MASK = $0018; - -//* NULL or absent parameter accepted. Use NULL */ - - {$EXTERNALSYM EVP_MD_FLAG_DIGALGID_NULL} - EVP_MD_FLAG_DIGALGID_NULL = $0000; - -//* NULL or absent parameter accepted. Use NULL for PKCS#1 otherwise absent */ - - {$EXTERNALSYM EVP_MD_FLAG_DIGALGID_ABSENT} - EVP_MD_FLAG_DIGALGID_ABSENT = $0008; - -//* Custom handling via ctrl */ - - {$EXTERNALSYM EVP_MD_FLAG_DIGALGID_CUSTOM} - EVP_MD_FLAG_DIGALGID_CUSTOM = $0018; - - {$EXTERNALSYM EVP_MD_FLAG_SVCTX} - EVP_MD_FLAG_SVCTX = $0800; - //* pass EVP_MD_SVCTX to sign/verify */ - -//* Digest ctrls */ - - {$EXTERNALSYM EVP_MD_CTRL_DIGALGID} - EVP_MD_CTRL_DIGALGID = $1; - {$EXTERNALSYM EVP_MD_CTRL_MICALG} - EVP_MD_CTRL_MICALG = $2; - -//* Minimum Algorithm specific ctrl value */ - - {$EXTERNALSYM EVP_MD_CTRL_ALG_CTRL} - EVP_MD_CTRL_ALG_CTRL = $1000; - - {$EXTERNALSYM NID_undef} - NID_undef = 0; - {$EXTERNALSYM NID_rsaEncryption} - NID_rsaEncryption = 6; - {$EXTERNALSYM NID_rsa} - NID_rsa = 19; - {$EXTERNALSYM NID_X9_62_id_ecPublicKey} - NID_X9_62_id_ecPublicKey = 408; - - {$EXTERNALSYM EVP_PKEY_NONE} - EVP_PKEY_NONE = NID_undef; - {$EXTERNALSYM EVP_PKEY_RSA} - EVP_PKEY_RSA = NID_rsaEncryption; - {$EXTERNALSYM EVP_PKEY_RSA2} - EVP_PKEY_RSA2 = NID_rsa; - {$EXTERNALSYM EVP_PKEY_DSA} - EVP_PKEY_DSA = NID_dsa; - {$EXTERNALSYM EVP_PKEY_DSA1} - EVP_PKEY_DSA1 = NID_dsa_2; - {$EXTERNALSYM EVP_PKEY_DSA2} - EVP_PKEY_DSA2 = NID_dsaWithSHA; - {$EXTERNALSYM EVP_PKEY_DSA3} - EVP_PKEY_DSA3 = NID_dsaWithSHA1; - {$EXTERNALSYM EVP_PKEY_DSA4} - EVP_PKEY_DSA4 = NID_dsaWithSHA1_2; - - {$EXTERNALSYM EVP_PKEY_DH} - EVP_PKEY_DH = NID_dhKeyAgreement; - {$EXTERNALSYM EVP_PKEY_EC} - EVP_PKEY_EC = NID_X9_62_id_ecPublicKey; - - {$EXTERNALSYM EVP_PKT_SIGN} - EVP_PKT_SIGN = $0010; - {$EXTERNALSYM EVP_PKT_ENC} - EVP_PKT_ENC = $0020; - {$EXTERNALSYM EVP_PKT_EXCH} - EVP_PKT_EXCH = $0040; - {$EXTERNALSYM EVP_PKT_EXP} - EVP_PKT_EXP = $1000; - - {$EXTERNALSYM EVP_PKS_RSA} - EVP_PKS_RSA = $0100; - {$EXTERNALSYM EVP_PKS_DSA} - EVP_PKS_DSA = $0200; - {$EXTERNALSYM EVP_PKS_EC} - EVP_PKS_EC = $0400; - - {$EXTERNALSYM EVP_PK_RSA} - EVP_PK_RSA = $0001; - {$EXTERNALSYM EVP_PK_DSA} - EVP_PK_DSA = $0002; - {$EXTERNALSYM EVP_PK_DH} - EVP_PK_DH = $0004; - {$EXTERNALSYM EVP_PK_EC} - EVP_PK_EC = $0008; - - {$EXTERNALSYM EVP_BLOWFISH_KEY_SIZE} - EVP_BLOWFISH_KEY_SIZE = 16; - {$EXTERNALSYM EVP_CAST5_KEY_SIZE} - EVP_CAST5_KEY_SIZE = 16; - {$EXTERNALSYM EVP_RC2_KEY_SIZE} - EVP_RC2_KEY_SIZE = 16; - {$EXTERNALSYM EVP_RC4_KEY_SIZE} - EVP_RC4_KEY_SIZE = 16; - {$EXTERNALSYM EVP_RC5_32_12_16_KEY_SIZE} - EVP_RC5_32_12_16_KEY_SIZE = 16; - {$EXTERNALSYM EVP_MD_CTX_FLAG_ONESHOT} - EVP_MD_CTX_FLAG_ONESHOT = $0001; - //* digest update will be called - //* once only */ - {$EXTERNALSYM EVP_MD_CTX_FLAG_CLEANED} - EVP_MD_CTX_FLAG_CLEANED = $0002; - //* context has already been - //* cleaned */ - {$EXTERNALSYM EVP_MD_CTX_FLAG_REUSE} - EVP_MD_CTX_FLAG_REUSE = $0004; - //* Don't free up ctx->md_data - //* in EVP_MD_CTX_cleanup */ - //OpenSSL 1.0.0. - //* FIPS and pad options are ignored in 1.0.0, definitions are here -// * so we don't accidentally reuse the values for other purposes. -// */ - - {$EXTERNALSYM EVP_MD_CTX_FLAG_NON_FIPS_ALLOW} - EVP_MD_CTX_FLAG_NON_FIPS_ALLOW = $0008; //* Allow use of non FIPS digest -// * in FIPS mode */ - -//* The following PAD options are also currently ignored in 1.0.0, digest -// * parameters are handled through EVP_DigestSign*() and EVP_DigestVerify*() -// * instead. -// */ - - - {$EXTERNALSYM EVP_MD_CTX_FLAG_PAD_MASK} - EVP_MD_CTX_FLAG_PAD_MASK = $F0; //* RSA mode to use */ - {$EXTERNALSYM EVP_MD_CTX_FLAG_PAD_PKCS1} - EVP_MD_CTX_FLAG_PAD_PKCS1 = $00; //* PKCS#1 v1.5 mode */ - {$EXTERNALSYM EVP_MD_CTX_FLAG_PAD_X931} - EVP_MD_CTX_FLAG_PAD_X931 = $10; //* X9.31 mode */ - {$EXTERNALSYM EVP_MD_CTX_FLAG_PAD_PSS} - EVP_MD_CTX_FLAG_PAD_PSS = $20; //* PSS mode */ -//#define M_EVP_MD_CTX_FLAG_PSS_SALT(ctx) \ -// ((ctx->flags>>16) &0xFFFF) /* seed length */ - {$EXTERNALSYM EVP_MD_CTX_FLAG_PSS_MDLEN} - EVP_MD_CTX_FLAG_PSS_MDLEN = $FFFF; //* salt len same as digest */ - {$EXTERNALSYM EVP_MD_CTX_FLAG_PSS_MREC} - EVP_MD_CTX_FLAG_PSS_MREC = $FFFE; //* salt max or auto recovered */ - {$EXTERNALSYM EVP_MD_CTX_FLAG_NO_INIT} - EVP_MD_CTX_FLAG_NO_INIT = $0100; //* Don't initialize md_data */ - - //* Modes for ciphers */ - {$EXTERNALSYM EVP_CIPH_STREAM_CIPHER} - EVP_CIPH_STREAM_CIPHER = $0; - {$EXTERNALSYM EVP_CIPH_ECB_MODE} - EVP_CIPH_ECB_MODE = $1; - {$EXTERNALSYM EVP_CIPH_CBC_MODE} - EVP_CIPH_CBC_MODE = $2; - {$EXTERNALSYM EVP_CIPH_CFB_MODE} - EVP_CIPH_CFB_MODE = $3; - {$EXTERNALSYM EVP_CIPH_OFB_MODE} - EVP_CIPH_OFB_MODE = $4; - {$EXTERNALSYM EVP_CIPH_CTR_MODE} - EVP_CIPH_CTR_MODE = $5; - {$EXTERNALSYM EVP_CIPH_GCM_MODE} - EVP_CIPH_GCM_MODE = $6; - {$EXTERNALSYM EVP_CIPH_CCM_MODE} - EVP_CIPH_CCM_MODE = $7; - {$EXTERNALSYM EVP_CIPH_XTS_MODE} - EVP_CIPH_XTS_MODE = $10001; - {$EXTERNALSYM EVP_CIPH_MODE} - EVP_CIPH_MODE = $F0007; - -//* Set if variable length cipher */ - {$EXTERNALSYM EVP_CIPH_VARIABLE_LENGTH} - EVP_CIPH_VARIABLE_LENGTH = $8; -//* Set if the iv handling should be done by the cipher itself */ - {$EXTERNALSYM EVP_CIPH_CUSTOM_IV} - EVP_CIPH_CUSTOM_IV = $10; -//* Set if the cipher's init() function should be called if key is NULL */ - {$EXTERNALSYM EVP_CIPH_ALWAYS_CALL_INIT} - EVP_CIPH_ALWAYS_CALL_INIT = $20; -//* Call ctrl() to init cipher parameters */ - {$EXTERNALSYM EVP_CIPH_CTRL_INIT} - EVP_CIPH_CTRL_INIT = $40; -//* Don't use standard key length function */ - {$EXTERNALSYM EVP_CIPH_CUSTOM_KEY_LENGTH} - EVP_CIPH_CUSTOM_KEY_LENGTH = $80; -//* Don't use standard block padding */ - {$EXTERNALSYM EVP_CIPH_NO_PADDING} - EVP_CIPH_NO_PADDING = $100; -//* cipher handles random key generation */ - {$EXTERNALSYM EVP_CIPH_RAND_KEY} - EVP_CIPH_RAND_KEY = $200; -//* cipher has its own additional copying logic */ - {$EXTERNALSYM EVP_CIPH_CUSTOM_COPY} - EVP_CIPH_CUSTOM_COPY = $400; -//* Allow use default ASN1 get/set iv */ - {$EXTERNALSYM EVP_CIPH_FLAG_DEFAULT_ASN1} - EVP_CIPH_FLAG_DEFAULT_ASN1 = $1000; -//* Buffer length in bits not bytes: CFB1 mode only */ - {$EXTERNALSYM EVP_CIPH_FLAG_LENGTH_BITS} - EVP_CIPH_FLAG_LENGTH_BITS = $2000; -//* Note if suitable for use in FIPS mode */ - {$EXTERNALSYM EVP_CIPH_FLAG_FIPS} - EVP_CIPH_FLAG_FIPS = $4000; -//* Allow non FIPS cipher in FIPS mode */ - {$EXTERNALSYM EVP_CIPH_FLAG_NON_FIPS_ALLOW} - EVP_CIPH_FLAG_NON_FIPS_ALLOW = $8000; -///* Cipher handles any and all padding logic as well -// * as finalisation. -// */ - {$EXTERNALSYM EVP_CIPH_FLAG_CUSTOM_CIPHER} - EVP_CIPH_FLAG_CUSTOM_CIPHER = $100000; - {$EXTERNALSYM EVP_CIPH_FLAG_AEAD_CIPHER} - EVP_CIPH_FLAG_AEAD_CIPHER = $200000; - - {$EXTERNALSYM EVP_CTRL_INIT} - EVP_CTRL_INIT = $0; - {$EXTERNALSYM EVP_CTRL_SET_KEY_LENGTH} - EVP_CTRL_SET_KEY_LENGTH = $1; - {$EXTERNALSYM EVP_CTRL_GET_RC2_KEY_BITS} - EVP_CTRL_GET_RC2_KEY_BITS = $2; - {$EXTERNALSYM EVP_CTRL_SET_RC2_KEY_BITS} - EVP_CTRL_SET_RC2_KEY_BITS = $3; - {$EXTERNALSYM EVP_CTRL_GET_RC5_ROUNDS} - EVP_CTRL_GET_RC5_ROUNDS = $4; - {$EXTERNALSYM EVP_CTRL_SET_RC5_ROUNDS} - EVP_CTRL_SET_RC5_ROUNDS = $5; - {$EXTERNALSYM EVP_CTRL_RAND_KEY} - EVP_CTRL_RAND_KEY = $6; - {$EXTERNALSYM EVP_CTRL_PBE_PRF_NID} - EVP_CTRL_PBE_PRF_NID = $7; - {$EXTERNALSYM EVP_CTRL_COPY} - EVP_CTRL_COPY = $8; - {$EXTERNALSYM EVP_CTRL_GCM_SET_IVLEN} - EVP_CTRL_GCM_SET_IVLEN = $9; - {$EXTERNALSYM EVP_CTRL_GCM_GET_TAG} - EVP_CTRL_GCM_GET_TAG = $10; - {$EXTERNALSYM EVP_CTRL_GCM_SET_TAG} - EVP_CTRL_GCM_SET_TAG = $11; - {$EXTERNALSYM EVP_CTRL_GCM_SET_IV_FIXED} - EVP_CTRL_GCM_SET_IV_FIXED = $12; - {$EXTERNALSYM EVP_CTRL_GCM_IV_GEN} - EVP_CTRL_GCM_IV_GEN = $13; - {$EXTERNALSYM EVP_CTRL_CCM_SET_IVLEN} - EVP_CTRL_CCM_SET_IVLEN = EVP_CTRL_GCM_SET_IVLEN; - {$EXTERNALSYM EVP_CTRL_CCM_GET_TAG} - EVP_CTRL_CCM_GET_TAG = EVP_CTRL_GCM_GET_TAG; - {$EXTERNALSYM EVP_CTRL_CCM_SET_TAG} - EVP_CTRL_CCM_SET_TAG = EVP_CTRL_GCM_SET_TAG; - {$EXTERNALSYM EVP_CTRL_CCM_SET_L} - EVP_CTRL_CCM_SET_L = $14; - {$EXTERNALSYM EVP_CTRL_CCM_SET_MSGLEN} - EVP_CTRL_CCM_SET_MSGLEN = $15; - -///* AEAD cipher deduces payload length and returns number of bytes -// * required to store MAC and eventual padding. Subsequent call to -// * EVP_Cipher even appends/verifies MAC. -// */ - {$EXTERNALSYM EVP_CTRL_AEAD_TLS1_AAD} - EVP_CTRL_AEAD_TLS1_AAD = $16; -//* Used by composite AEAD ciphers, no-op in GCM, CCM... */ - {$EXTERNALSYM EVP_CTRL_AEAD_SET_MAC_KEY} - EVP_CTRL_AEAD_SET_MAC_KEY = $17; -//* Set the GCM invocation field, decrypt only */ - {$EXTERNALSYM EVP_CTRL_GCM_SET_IV_INV} - EVP_CTRL_GCM_SET_IV_INV = $18; -//* PBE type */ - -//* GCM TLS constants */ -//* Length of fixed part of IV derived from PRF */ - {$EXTERNALSYM EVP_GCM_TLS_FIXED_IV_LEN} - EVP_GCM_TLS_FIXED_IV_LEN = 4; -//* Length of explicit part of IV part of TLS records */ - {$EXTERNALSYM EVP_GCM_TLS_EXPLICIT_IV_LEN} - EVP_GCM_TLS_EXPLICIT_IV_LEN = 8; -//* Length of tag for TLS */ - {$EXTERNALSYM EVP_GCM_TLS_TAG_LEN} - EVP_GCM_TLS_TAG_LEN = 16; - -//* Can appear as the outermost AlgorithmIdentifier */ - {$EXTERNALSYM EVP_PBE_TYPE_OUTER} - EVP_PBE_TYPE_OUTER = $0; -//* Is an PRF type OID */ - {$EXTERNALSYM EVP_PBE_TYPE_PRF} - EVP_PBE_TYPE_PRF = $1; - - {$EXTERNALSYM ASN1_PKEY_ALIAS} - ASN1_PKEY_ALIAS = $1; - {$EXTERNALSYM ASN1_PKEY_DYNAMIC} - ASN1_PKEY_DYNAMIC = $2; - {$EXTERNALSYM ASN1_PKEY_SIGPARAM_NULL} - ASN1_PKEY_SIGPARAM_NULL = $4; - {$EXTERNALSYM ASN1_PKEY_CTRL_PKCS7_SIGN} - ASN1_PKEY_CTRL_PKCS7_SIGN = $1; - {$EXTERNALSYM ASN1_PKEY_CTRL_PKCS7_ENCRYPT} - ASN1_PKEY_CTRL_PKCS7_ENCRYPT = $2; - {$EXTERNALSYM ASN1_PKEY_CTRL_DEFAULT_MD_NID} - ASN1_PKEY_CTRL_DEFAULT_MD_NID = $3; - {$EXTERNALSYM ASN1_PKEY_CTRL_CMS_SIGN} - ASN1_PKEY_CTRL_CMS_SIGN = $5; - {$EXTERNALSYM ASN1_PKEY_CTRL_CMS_ENVELOPE} - ASN1_PKEY_CTRL_CMS_ENVELOPE = $7; - - {$EXTERNALSYM EVP_PKEY_OP_UNDEFINED} - EVP_PKEY_OP_UNDEFINED = 0; - {$EXTERNALSYM EVP_PKEY_OP_PARAMGEN} - EVP_PKEY_OP_PARAMGEN =(1 shl 1); - {$EXTERNALSYM EVP_PKEY_OP_KEYGEN} - EVP_PKEY_OP_KEYGEN = (1 shl 2); - {$EXTERNALSYM EVP_PKEY_OP_SIGN} - EVP_PKEY_OP_SIGN = (1 shl 3); - {$EXTERNALSYM EVP_PKEY_OP_VERIFY} - EVP_PKEY_OP_VERIFY = (1 shl 4); - {$EXTERNALSYM EVP_PKEY_OP_VERIFYRECOVER} - EVP_PKEY_OP_VERIFYRECOVER = (1 shl 5); - {$EXTERNALSYM EVP_PKEY_OP_SIGNCTX} - EVP_PKEY_OP_SIGNCTX = (1 shl 6); - {$EXTERNALSYM EVP_PKEY_OP_VERIFYCTX} - EVP_PKEY_OP_VERIFYCTX = (1 shl 7); - {$EXTERNALSYM EVP_PKEY_OP_ENCRYPT} - EVP_PKEY_OP_ENCRYPT = (1 shl 8); - {$EXTERNALSYM EVP_PKEY_OP_DECRYPT} - EVP_PKEY_OP_DECRYPT = (1 shl 9); - {$EXTERNALSYM EVP_PKEY_OP_DERIVE} - EVP_PKEY_OP_DERIVE = (1 shl 10); - - {$EXTERNALSYM EVP_PKEY_OP_TYPE_SIG} - EVP_PKEY_OP_TYPE_SIG = - {$EXTERNALSYM EVP_PKEY_OP_TYPE_CRYPT} - (EVP_PKEY_OP_SIGN or EVP_PKEY_OP_VERIFY or EVP_PKEY_OP_VERIFYRECOVER - {$EXTERNALSYM EVP_PKEY_OP_TYPE_CRYPT} - or EVP_PKEY_OP_SIGNCTX or EVP_PKEY_OP_VERIFYCTX); - - {$EXTERNALSYM EVP_PKEY_OP_TYPE_CRYPT} - EVP_PKEY_OP_TYPE_CRYPT = (EVP_PKEY_OP_ENCRYPT or EVP_PKEY_OP_DECRYPT); - -// EVP_PKEY_OP_TYPE_NOGEN = -// (EVP_PKEY_OP_SIG or EVP_PKEY_OP_CRYPT or EVP_PKEY_OP_DERIVE); -// guessing from above. THere may be a typo in the header. - {$EXTERNALSYM EVP_PKEY_OP_TYPE_NOGEN} - EVP_PKEY_OP_TYPE_NOGEN = - {$EXTERNALSYM EVP_PKEY_OP_TYPE_GEN} - (EVP_PKEY_OP_TYPE_SIG or EVP_PKEY_OP_TYPE_CRYPT or EVP_PKEY_OP_DERIVE); - - {$EXTERNALSYM EVP_PKEY_OP_TYPE_GEN} - EVP_PKEY_OP_TYPE_GEN = - (EVP_PKEY_OP_PARAMGEN or EVP_PKEY_OP_KEYGEN); - - {$EXTERNALSYM EVP_PKEY_CTRL_MD} - EVP_PKEY_CTRL_MD = 1; - {$EXTERNALSYM EVP_PKEY_CTRL_PEER_KEY} - EVP_PKEY_CTRL_PEER_KEY = 2; - - {$EXTERNALSYM EVP_PKEY_CTRL_PKCS7_ENCRYPT} - EVP_PKEY_CTRL_PKCS7_ENCRYPT = 3; - {$EXTERNALSYM EVP_PKEY_CTRL_PKCS7_DECRYPT} - EVP_PKEY_CTRL_PKCS7_DECRYPT = 4; - - {$EXTERNALSYM EVP_PKEY_CTRL_PKCS7_SIGN} - EVP_PKEY_CTRL_PKCS7_SIGN = 5; - - {$EXTERNALSYM EVP_PKEY_CTRL_SET_MAC_KEY} - EVP_PKEY_CTRL_SET_MAC_KEY = 6; - - {$EXTERNALSYM EVP_PKEY_CTRL_DIGESTINIT} - EVP_PKEY_CTRL_DIGESTINIT = 7; - -//* Used by GOST key encryption in TLS */ - - {$EXTERNALSYM EVP_PKEY_CTRL_SET_IV} - EVP_PKEY_CTRL_SET_IV = 8; - {$EXTERNALSYM EVP_PKEY_CTRL_CMS_ENCRYPT} - EVP_PKEY_CTRL_CMS_ENCRYPT = 9; - {$EXTERNALSYM EVP_PKEY_CTRL_CMS_DECRYPT} - EVP_PKEY_CTRL_CMS_DECRYPT = 10; - {$EXTERNALSYM EVP_PKEY_CTRL_CMS_SIGN} - EVP_PKEY_CTRL_CMS_SIGN = 11; - {$EXTERNALSYM EVP_PKEY_CTRL_CIPHER} - EVP_PKEY_CTRL_CIPHER = 12; - {$EXTERNALSYM EVP_PKEY_ALG_CTRL} - EVP_PKEY_ALG_CTRL = $1000; - - {$EXTERNALSYM EVP_PKEY_FLAG_AUTOARGLEN} - EVP_PKEY_FLAG_AUTOARGLEN = 2; -///* Method handles all operations: don't assume any digest related -// * defaults. -// */ - {$EXTERNALSYM EVP_PKEY_FLAG_SIGCTX_CUSTOM} - EVP_PKEY_FLAG_SIGCTX_CUSTOM = 4; - {$EXTERNALSYM EVP_F_AESNI_INIT_KEY} - EVP_F_AESNI_INIT_KEY = 165; - {$EXTERNALSYM EVP_F_AESNI_XTS_CIPHER} - EVP_F_AESNI_XTS_CIPHER = 176; - {$EXTERNALSYM EVP_F_AES_INIT_KEY} - EVP_F_AES_INIT_KEY = 133; - {$EXTERNALSYM EVP_F_ALG_MODULE_INIT} - EVP_F_ALG_MODULE_INIT = 138; - {$EXTERNALSYM EVP_F_AES_XTS} - EVP_F_AES_XTS = 172; - {$EXTERNALSYM EVP_F_AES_XTS_CIPHER} - EVP_F_AES_XTS_CIPHER = 175; - {$EXTERNALSYM EVP_F_CAMELLIA_INIT_KEY} - EVP_F_CAMELLIA_INIT_KEY = 159; - {$EXTERNALSYM EVP_F_CMAC_INIT} - EVP_F_CMAC_INIT = 173; - {$EXTERNALSYM EVP_F_D2I_PKEY} - EVP_F_D2I_PKEY = 100; - {$EXTERNALSYM EVP_F_DO_SIGVER_INIT} - EVP_F_DO_SIGVER_INIT = 161; - {$EXTERNALSYM EVP_F_DO_EVP_ENC_ENGINE} - EVP_F_DO_EVP_ENC_ENGINE = 140; - {$EXTERNALSYM EVP_F_DSAPKEY2PKCS8} - EVP_F_DSAPKEY2PKCS8 = 134; - {$EXTERNALSYM EVP_F_DSA_PKEY2PKCS8} - EVP_F_DSA_PKEY2PKCS8 = 135; - {$EXTERNALSYM EVP_F_ECDSA_PKEY2PKCS8} - EVP_F_ECDSA_PKEY2PKCS8 = 129; - {$EXTERNALSYM EVP_F_ECKEY_PKEY2PKCS8} - EVP_F_ECKEY_PKEY2PKCS8 = 132; - {$EXTERNALSYM EVP_F_EVP_CIPHERINIT_EX} - EVP_F_EVP_CIPHERINIT_EX = 123; - {$EXTERNALSYM EVP_F_EVP_CIPHER_CTX_COPY} - EVP_F_EVP_CIPHER_CTX_COPY = 163; - {$EXTERNALSYM EVP_F_EVP_CIPHER_CTX_CTRL} - EVP_F_EVP_CIPHER_CTX_CTRL = 124; - {$EXTERNALSYM EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH} - EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH = 122; - {$EXTERNALSYM EVP_F_EVP_DECRYPTFINAL_EX} - EVP_F_EVP_DECRYPTFINAL_EX = 101; - //was EVP_F_EVP_DECRYPTFINAL = 101; - {$EXTERNALSYM EVP_F_EVP_DIGESTINIT_EX} - EVP_F_EVP_DIGESTINIT_EX = 128; - {$EXTERNALSYM EVP_F_EVP_ENCRYPTFINAL_EX} - EVP_F_EVP_ENCRYPTFINAL_EX = 127; - {$EXTERNALSYM EVP_F_EVP_MD_CTX_COPY_EX} - EVP_F_EVP_MD_CTX_COPY_EX = 110; - {$EXTERNALSYM EVP_F_EVP_MD_SIZE} - EVP_F_EVP_MD_SIZE = 162; - //was EVP_F_EVP_MD_CTX_COPY = 110; - {$EXTERNALSYM EVP_F_EVP_OPENINIT} - EVP_F_EVP_OPENINIT = 102; - {$EXTERNALSYM EVP_F_EVP_PBE_ALG_ADD} - EVP_F_EVP_PBE_ALG_ADD = 115; - {$EXTERNALSYM EVP_F_EVP_PBE_ALG_ADD_TYPE} - EVP_F_EVP_PBE_ALG_ADD_TYPE = 160; - {$EXTERNALSYM EVP_F_EVP_PBE_CIPHERINIT} - EVP_F_EVP_PBE_CIPHERINIT = 116; - {$EXTERNALSYM EVP_F_EVP_PKCS82PKEY} - EVP_F_EVP_PKCS82PKEY = 111; - {$EXTERNALSYM EVP_F_EVP_PKEY2PKCS8_BROKEN} - EVP_F_EVP_PKEY2PKCS8_BROKEN = 113; - //was EVP_F_EVP_PKEY2PKCS8 = 113; - {$EXTERNALSYM EVP_F_EVP_PKCS82PKEY_BROKEN} - EVP_F_EVP_PKCS82PKEY_BROKEN = 136; - {$EXTERNALSYM EVP_F_EVP_PKEY_COPY_PARAMETERS} - EVP_F_EVP_PKEY_COPY_PARAMETERS = 103; - {$EXTERNALSYM EVP_F_EVP_PKEY_CTX_CTRL} - EVP_F_EVP_PKEY_CTX_CTRL = 137; - {$EXTERNALSYM EVP_F_EVP_PKEY_CTX_CTRL_STR} - EVP_F_EVP_PKEY_CTX_CTRL_STR = 150; - {$EXTERNALSYM EVP_F_EVP_PKEY_CTX_DUP} - EVP_F_EVP_PKEY_CTX_DUP = 156; - {$EXTERNALSYM EVP_F_EVP_PKEY_DECRYPT} - EVP_F_EVP_PKEY_DECRYPT = 104; - {$EXTERNALSYM EVP_F_EVP_PKEY_DECRYPT_INIT} - EVP_F_EVP_PKEY_DECRYPT_INIT = 138; - {$EXTERNALSYM EVP_F_EVP_PKEY_DECRYPT_OLD} - EVP_F_EVP_PKEY_DECRYPT_OLD = 151; - {$EXTERNALSYM EVP_F_EVP_PKEY_DERIVE} - EVP_F_EVP_PKEY_DERIVE = 153; - {$EXTERNALSYM EVP_F_EVP_PKEY_DERIVE_INIT} - EVP_F_EVP_PKEY_DERIVE_INIT = 154; - {$EXTERNALSYM EVP_F_EVP_PKEY_DERIVE_SET_PEER} - EVP_F_EVP_PKEY_DERIVE_SET_PEER = 155; - {$EXTERNALSYM EVP_F_EVP_PKEY_ENCRYPT} - EVP_F_EVP_PKEY_ENCRYPT = 105; - {$EXTERNALSYM EVP_F_EVP_PKEY_ENCRYPT_INIT} - EVP_F_EVP_PKEY_ENCRYPT_INIT = 139; - {$EXTERNALSYM EVP_F_EVP_PKEY_ENCRYPT_OLD} - EVP_F_EVP_PKEY_ENCRYPT_OLD = 152; - {$EXTERNALSYM EVP_F_EVP_PKEY_GET1_DH} - EVP_F_EVP_PKEY_GET1_DH = 119; - {$EXTERNALSYM EVP_F_EVP_PKEY_GET1_DSA} - EVP_F_EVP_PKEY_GET1_DSA = 120; - {$EXTERNALSYM EVP_F_EVP_PKEY_GET1_ECDSA} - EVP_F_EVP_PKEY_GET1_ECDSA = 130; - {$EXTERNALSYM EVP_F_EVP_PKEY_GET1_EC_KEY} - EVP_F_EVP_PKEY_GET1_EC_KEY = 131; - {$EXTERNALSYM EVP_F_EVP_PKEY_GET1_RSA} - EVP_F_EVP_PKEY_GET1_RSA = 121; - {$EXTERNALSYM EVP_F_EVP_PKEY_KEYGEN} - EVP_F_EVP_PKEY_KEYGEN = 146; - {$EXTERNALSYM EVP_F_EVP_PKEY_KEYGEN_INIT} - EVP_F_EVP_PKEY_KEYGEN_INIT = 147; - {$EXTERNALSYM EVP_F_EVP_PKEY_NEW} - EVP_F_EVP_PKEY_NEW = 106; - {$EXTERNALSYM EVP_F_EVP_PKEY_PARAMGEN} - EVP_F_EVP_PKEY_PARAMGEN = 148; - {$EXTERNALSYM EVP_F_EVP_PKEY_PARAMGEN_INIT} - EVP_F_EVP_PKEY_PARAMGEN_INIT = 149; - {$EXTERNALSYM EVP_F_EVP_PKEY_SIGN} - EVP_F_EVP_PKEY_SIGN = 140; - {$EXTERNALSYM EVP_F_EVP_PKEY_SIGN_INIT} - EVP_F_EVP_PKEY_SIGN_INIT = 141; - {$EXTERNALSYM EVP_F_EVP_PKEY_VERIFY} - EVP_F_EVP_PKEY_VERIFY = 142; - {$EXTERNALSYM EVP_F_EVP_PKEY_VERIFY_INIT} - EVP_F_EVP_PKEY_VERIFY_INIT = 143; - {$EXTERNALSYM EVP_F_EVP_PKEY_VERIFY_RECOVER} - EVP_F_EVP_PKEY_VERIFY_RECOVER = 144; - {$EXTERNALSYM EVP_F_EVP_PKEY_VERIFY_RECOVER_INIT} - EVP_F_EVP_PKEY_VERIFY_RECOVER_INIT = 145; - {$EXTERNALSYM EVP_F_EVP_RIJNDAEL} - EVP_F_EVP_RIJNDAEL = 126; - {$EXTERNALSYM EVP_F_EVP_SIGNFINAL} - EVP_F_EVP_SIGNFINAL = 107; - {$EXTERNALSYM EVP_F_EVP_VERIFYFINAL} - EVP_F_EVP_VERIFYFINAL = 108; - {$EXTERNALSYM EVP_F_FIPS_CIPHERINIT} - EVP_F_FIPS_CIPHERINIT = 166; - {$EXTERNALSYM EVP_F_FIPS_CIPHER_CTX_COPY} - EVP_F_FIPS_CIPHER_CTX_COPY = 170; - {$EXTERNALSYM EVP_F_FIPS_CIPHER_CTX_CTRL} - EVP_F_FIPS_CIPHER_CTX_CTRL = 167; - {$EXTERNALSYM EVP_F_FIPS_CIPHER_CTX_SET_KEY_LENGTH} - EVP_F_FIPS_CIPHER_CTX_SET_KEY_LENGTH = 171; - {$EXTERNALSYM EVP_F_FIPS_DIGESTINIT} - EVP_F_FIPS_DIGESTINIT = 168; - {$EXTERNALSYM EVP_F_FIPS_MD_CTX_COPY} - EVP_F_FIPS_MD_CTX_COPY = 169; - {$EXTERNALSYM EVP_F_HMAC_INIT_EX} - EVP_F_HMAC_INIT_EX = 174; - {$EXTERNALSYM EVP_F_INT_CTX_NEW} - EVP_F_INT_CTX_NEW = 157; - {$EXTERNALSYM EVP_F_PKCS5_PBE_KEYIVGEN} - EVP_F_PKCS5_PBE_KEYIVGEN = 117; - {$EXTERNALSYM EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN} - EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN = 164; - - {$EXTERNALSYM EVP_F_PKCS5_V2_PBE_KEYIVGEN} - EVP_F_PKCS5_V2_PBE_KEYIVGEN = 118; - {$EXTERNALSYM EVP_F_PKCS8_SET_BROKEN} - EVP_F_PKCS8_SET_BROKEN = 112; - {$EXTERNALSYM EVP_F_PKEY_SET_TYPE} - EVP_F_PKEY_SET_TYPE = 158; - - //was EVP_F_EVP_PKCS8_SET_BROKEN = 112; - {$EXTERNALSYM EVP_F_RC2_MAGIC_TO_METH} - EVP_F_RC2_MAGIC_TO_METH = 109; - {$EXTERNALSYM EVP_F_RC5_CTRL} - EVP_F_RC5_CTRL = 125; - {$EXTERNALSYM EVP_R_AES_IV_SETUP_FAILED} - EVP_R_AES_IV_SETUP_FAILED = 162; - {$EXTERNALSYM EVP_R_AES_KEY_SETUP_FAILED} - EVP_R_AES_KEY_SETUP_FAILED = 143; - {$EXTERNALSYM EVP_R_ASN1_LIB} - EVP_R_ASN1_LIB = 140; - {$EXTERNALSYM EVP_R_BAD_BLOCK_LENGTH} - EVP_R_BAD_BLOCK_LENGTH = 136; - {$EXTERNALSYM EVP_R_BAD_DECRYPT} - EVP_R_BAD_DECRYPT = 100; - {$EXTERNALSYM EVP_R_BN_DECODE_ERROR} - EVP_R_BN_DECODE_ERROR = 112; - {$EXTERNALSYM EVP_R_BN_PUBKEY_ERROR} - EVP_R_BN_PUBKEY_ERROR = 113; - {$EXTERNALSYM EVP_R_BUFFER_TOO_SMALL} - EVP_R_BUFFER_TOO_SMALL = 155; - {$EXTERNALSYM EVP_R_CIPHER_PARAMETER_ERROR} - EVP_R_CIPHER_PARAMETER_ERROR = 122; - {$EXTERNALSYM EVP_R_COMMAND_NOT_SUPPORTED} - EVP_R_COMMAND_NOT_SUPPORTED = 147; - {$EXTERNALSYM EVP_R_DECODE_ERROR} - EVP_R_DECODE_ERROR = 114; - {$EXTERNALSYM EVP_R_DIFFERENT_KEY_TYPES} - EVP_R_DIFFERENT_KEY_TYPES = 101; - {$EXTERNALSYM EVP_R_DIFFERENT_PARAMETERS} - EVP_R_DIFFERENT_PARAMETERS = 153; - {$EXTERNALSYM EVP_R_DISABLED_FOR_FIPS} - EVP_R_DISABLED_FOR_FIPS = 163; //was 144; - - {$EXTERNALSYM EVP_R_ENCODE_ERROR} - EVP_R_ENCODE_ERROR = 115; - {$EXTERNALSYM EVP_R_ERROR_LOADING_SECTION} - EVP_R_ERROR_LOADING_SECTION = 165; - {$EXTERNALSYM EVP_R_ERROR_SETTING_FIPS_MODE} - EVP_R_ERROR_SETTING_FIPS_MODE = 166; - - {$EXTERNALSYM EVP_R_EVP_PBE_CIPHERINIT_ERROR} - EVP_R_EVP_PBE_CIPHERINIT_ERROR = 119; - {$EXTERNALSYM EVP_R_EXPECTING_AN_RSA_KEY} - EVP_R_EXPECTING_AN_RSA_KEY = 127; - {$EXTERNALSYM EVP_R_EXPECTING_A_DH_KEY} - EVP_R_EXPECTING_A_DH_KEY = 128; - {$EXTERNALSYM EVP_R_EXPECTING_A_DSA_KEY} - EVP_R_EXPECTING_A_DSA_KEY = 129; - {$EXTERNALSYM EVP_R_EXPECTING_A_ECDSA_KEY} - EVP_R_EXPECTING_A_ECDSA_KEY = 141; - {$EXTERNALSYM EVP_R_EXPECTING_A_EC_KEY} - EVP_R_EXPECTING_A_EC_KEY = 142; - {$EXTERNALSYM EVP_R_FIPS_MODE_NOT_SUPPORTED} - EVP_R_FIPS_MODE_NOT_SUPPORTED = 167; - {$EXTERNALSYM EVP_R_INITIALIZATION_ERROR} - EVP_R_INITIALIZATION_ERROR = 134; - {$EXTERNALSYM EVP_R_INPUT_NOT_INITIALIZED} - EVP_R_INPUT_NOT_INITIALIZED = 111; - {$EXTERNALSYM EVP_R_INVALID_DIGEST} - EVP_R_INVALID_DIGEST = 152; - {$EXTERNALSYM EVP_R_INVALID_KEY_LENGTH} - EVP_R_INVALID_KEY_LENGTH = 130; - {$EXTERNALSYM EVP_R_INVALID_OPERATION} - EVP_R_INVALID_OPERATION = 148; - {$EXTERNALSYM EVP_R_INVALID_FIPS_MODE} - EVP_R_INVALID_FIPS_MODE = 168; //was: 148; - {$EXTERNALSYM EVP_R_IV_TOO_LARGE} - EVP_R_IV_TOO_LARGE = 102; - {$EXTERNALSYM EVP_R_KEYGEN_FAILURE} - EVP_R_KEYGEN_FAILURE = 120; - {$EXTERNALSYM EVP_R_MESSAGE_DIGEST_IS_NULL} - EVP_R_MESSAGE_DIGEST_IS_NULL = 159; - {$EXTERNALSYM EVP_R_METHOD_NOT_SUPPORTED} - EVP_R_METHOD_NOT_SUPPORTED = 144; - {$EXTERNALSYM EVP_R_MISSING_PARMATERS} - EVP_R_MISSING_PARMATERS = 103; - {$EXTERNALSYM EVP_R_NO_CIPHER_SET} - EVP_R_NO_CIPHER_SET = 131; - {$EXTERNALSYM EVP_R_NO_DEFAULT_DIGEST} - EVP_R_NO_DEFAULT_DIGEST = 158; - {$EXTERNALSYM EVP_R_NO_DIGEST_SET} - EVP_R_NO_DIGEST_SET = 139; - {$EXTERNALSYM EVP_R_NO_DSA_PARAMETERS} - EVP_R_NO_DSA_PARAMETERS = 116; - {$EXTERNALSYM EVP_R_NO_KEY_SET} - EVP_R_NO_KEY_SET = 154; - {$EXTERNALSYM EVP_R_NO_OPERATION_SET} - EVP_R_NO_OPERATION_SET = 149; - {$EXTERNALSYM EVP_R_NO_SIGN_FUNCTION_CONFIGURED} - EVP_R_NO_SIGN_FUNCTION_CONFIGURED = 104; - {$EXTERNALSYM EVP_R_NO_VERIFY_FUNCTION_CONFIGURED} - EVP_R_NO_VERIFY_FUNCTION_CONFIGURED = 105; - {$EXTERNALSYM EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE} - EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE = 150; - {$EXTERNALSYM EVP_R_OPERATON_NOT_INITIALIZED} - EVP_R_OPERATON_NOT_INITIALIZED = 151; - {$EXTERNALSYM EVP_R_PKCS8_UNKNOWN_BROKEN_TYPE} - EVP_R_PKCS8_UNKNOWN_BROKEN_TYPE = 117; - {$EXTERNALSYM EVP_R_PRIVATE_KEY_DECODE_ERROR} - EVP_R_PRIVATE_KEY_DECODE_ERROR = 145; - {$EXTERNALSYM EVP_R_PRIVATE_KEY_ENCODE_ERROR} - EVP_R_PRIVATE_KEY_ENCODE_ERROR = 146; - {$EXTERNALSYM EVP_R_PUBLIC_KEY_NOT_RSA} - EVP_R_PUBLIC_KEY_NOT_RSA = 106; - {$EXTERNALSYM EVP_R_TOO_LARGE} - EVP_R_TOO_LARGE = 164; - {$EXTERNALSYM EVP_R_UNKNOWN_CIPHER} - EVP_R_UNKNOWN_CIPHER = 160; - {$EXTERNALSYM EVP_R_UNKNOWN_DIGEST} - EVP_R_UNKNOWN_DIGEST = 161; - {$EXTERNALSYM EVP_R_UNKNOWN_OPTION} - EVP_R_UNKNOWN_OPTION = 169; //149; - {$EXTERNALSYM EVP_R_UNKNOWN_PBE_ALGORITHM} - EVP_R_UNKNOWN_PBE_ALGORITHM = 121; - {$EXTERNALSYM EVP_R_UNSUPPORTED_CIPHER} - EVP_R_UNSUPPORTED_CIPHER = 107; - {$EXTERNALSYM EVP_R_UNSUPORTED_NUMBER_OF_ROUNDS} - EVP_R_UNSUPORTED_NUMBER_OF_ROUNDS = 135; - - {$EXTERNALSYM EVP_R_UNSUPPORTED_KEYLENGTH} - EVP_R_UNSUPPORTED_KEYLENGTH = 123; - {$EXTERNALSYM EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION} - EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION = 124; - {$EXTERNALSYM EVP_R_UNSUPPORTED_KEY_SIZE} - EVP_R_UNSUPPORTED_KEY_SIZE = 108; - {$EXTERNALSYM EVP_R_UNSUPPORTED_PRF} - EVP_R_UNSUPPORTED_PRF = 125; - {$EXTERNALSYM EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM} - EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM = 118; - {$EXTERNALSYM EVP_R_UNSUPPORTED_SALT_TYPE} - EVP_R_UNSUPPORTED_SALT_TYPE = 126; - {$EXTERNALSYM EVP_R_WRONG_FINAL_BLOCK_LENGTH} - EVP_R_WRONG_FINAL_BLOCK_LENGTH = 109; - {$EXTERNALSYM EVP_R_WRONG_PUBLIC_KEY_TYPE} - EVP_R_WRONG_PUBLIC_KEY_TYPE = 110; - {$EXTERNALSYM EVP_R_SEED_KEY_SETUP_FAILED} - EVP_R_SEED_KEY_SETUP_FAILED = 162; - {$IFDEF OPENSSL_FIPS} -//* Function codes. */ - {$EXTERNALSYM FIPS_F_DH_BUILTIN_GENPARAMS} - FIPS_F_DH_BUILTIN_GENPARAMS = 100; - {$EXTERNALSYM FIPS_F_DSA_BUILTIN_PARAMGEN} - FIPS_F_DSA_BUILTIN_PARAMGEN = 101; - {$EXTERNALSYM FIPS_F_DSA_DO_SIGN} - FIPS_F_DSA_DO_SIGN = 102; - {$EXTERNALSYM FIPS_F_DSA_DO_VERIFY} - FIPS_F_DSA_DO_VERIFY = 103; - {$EXTERNALSYM FIPS_F_EVP_CIPHERINIT_EX} - FIPS_F_EVP_CIPHERINIT_EX = 124; - {$EXTERNALSYM FIPS_F_EVP_DIGESTINIT_EX} - FIPS_F_EVP_DIGESTINIT_EX = 125; - {$EXTERNALSYM FIPS_F_FIPS_CHECK_DSA} - FIPS_F_FIPS_CHECK_DSA = 104; - {$EXTERNALSYM FIPS_F_FIPS_CHECK_INCORE_FINGERPRINT} - FIPS_F_FIPS_CHECK_INCORE_FINGERPRINT = 105; - {$EXTERNALSYM FIPS_F_FIPS_CHECK_RSA} - FIPS_F_FIPS_CHECK_RSA = 106; - {$EXTERNALSYM FIPS_F_FIPS_DSA_CHECK} - FIPS_F_FIPS_DSA_CHECK = 107; - {$EXTERNALSYM FIPS_F_FIPS_MODE_SET} - FIPS_F_FIPS_MODE_SET = 108; - {$EXTERNALSYM FIPS_F_FIPS_PKEY_SIGNATURE_TEST} - FIPS_F_FIPS_PKEY_SIGNATURE_TEST = 109; - {$EXTERNALSYM FIPS_F_FIPS_SELFTEST_AES} - FIPS_F_FIPS_SELFTEST_AES = 110; - {$EXTERNALSYM FIPS_F_FIPS_SELFTEST_DES} - FIPS_F_FIPS_SELFTEST_DES = 111; - {$EXTERNALSYM FIPS_F_FIPS_SELFTEST_DSA} - FIPS_F_FIPS_SELFTEST_DSA = 112; - {$EXTERNALSYM FIPS_F_FIPS_SELFTEST_HMAC} - FIPS_F_FIPS_SELFTEST_HMAC = 113; - {$EXTERNALSYM FIPS_F_FIPS_SELFTEST_RNG} - FIPS_F_FIPS_SELFTEST_RNG = 114; - {$EXTERNALSYM FIPS_F_FIPS_SELFTEST_SHA1} - FIPS_F_FIPS_SELFTEST_SHA1 = 115; - {$EXTERNALSYM FIPS_F_HASH_FINAL} - FIPS_F_HASH_FINAL = 123; - {$EXTERNALSYM FIPS_F_RSA_BUILTIN_KEYGEN} - FIPS_F_RSA_BUILTIN_KEYGEN = 116; - {$EXTERNALSYM FIPS_F_RSA_EAY_PRIVATE_DECRYPT} - FIPS_F_RSA_EAY_PRIVATE_DECRYPT = 117; - {$EXTERNALSYM FIPS_F_RSA_EAY_PRIVATE_ENCRYPT} - FIPS_F_RSA_EAY_PRIVATE_ENCRYPT = 118; - {$EXTERNALSYM FIPS_F_RSA_EAY_PUBLIC_DECRYPT} - FIPS_F_RSA_EAY_PUBLIC_DECRYPT = 119; - {$EXTERNALSYM FIPS_F_RSA_EAY_PUBLIC_ENCRYPT} - FIPS_F_RSA_EAY_PUBLIC_ENCRYPT = 120; - {$EXTERNALSYM FIPS_F_RSA_X931_GENERATE_KEY_EX} - FIPS_F_RSA_X931_GENERATE_KEY_EX = 121; - {$EXTERNALSYM FIPS_F_SSLEAY_RAND_BYTES} - FIPS_F_SSLEAY_RAND_BYTES = 122; -//* Reason codes. */ - {$EXTERNALSYM FIPS_R_CANNOT_READ_EXE} - FIPS_R_CANNOT_READ_EXE = 103; - {$EXTERNALSYM FIPS_R_CANNOT_READ_EXE_DIGEST} - FIPS_R_CANNOT_READ_EXE_DIGEST = 104; - {$EXTERNALSYM FIPS_R_CONTRADICTING_EVIDENCE} - FIPS_R_CONTRADICTING_EVIDENCE = 114; - {$EXTERNALSYM FIPS_R_EXE_DIGEST_DOES_NOT_MATCH} - FIPS_R_EXE_DIGEST_DOES_NOT_MATCH = 105; - {$EXTERNALSYM FIPS_R_FINGERPRINT_DOES_NOT_MATCH} - FIPS_R_FINGERPRINT_DOES_NOT_MATCH = 110; - {$EXTERNALSYM FIPS_R_FINGERPRINT_DOES_NOT_MATCH_NONPIC_RELOCATED} - FIPS_R_FINGERPRINT_DOES_NOT_MATCH_NONPIC_RELOCATED = 111; - {$EXTERNALSYM FIPS_R_FINGERPRINT_DOES_NOT_MATCH_SEGMENT_ALIASING} - FIPS_R_FINGERPRINT_DOES_NOT_MATCH_SEGMENT_ALIASING = 112; - {$EXTERNALSYM FIPS_R_FIPS_MODE_ALREADY_SET} - FIPS_R_FIPS_MODE_ALREADY_SET = 102; - {$EXTERNALSYM FIPS_R_FIPS_SELFTEST_FAILED} - FIPS_R_FIPS_SELFTEST_FAILED = 106; - {$EXTERNALSYM FIPS_R_INVALID_KEY_LENGTH} - FIPS_R_INVALID_KEY_LENGTH = 109; - {$EXTERNALSYM FIPS_R_KEY_TOO_SHORT} - FIPS_R_KEY_TOO_SHORT = 108; - {$EXTERNALSYM FIPS_R_NON_FIPS_METHOD} - FIPS_R_NON_FIPS_METHOD = 100; - {$EXTERNALSYM FIPS_R_PAIRWISE_TEST_FAILED} - FIPS_R_PAIRWISE_TEST_FAILED = 107; - {$EXTERNALSYM FIPS_R_RSA_DECRYPT_ERROR} - FIPS_R_RSA_DECRYPT_ERROR = 115; - {$EXTERNALSYM FIPS_R_RSA_ENCRYPT_ERROR} - FIPS_R_RSA_ENCRYPT_ERROR = 116; - {$EXTERNALSYM FIPS_R_SELFTEST_FAILED} - FIPS_R_SELFTEST_FAILED = 101; - {$EXTERNALSYM FIPS_R_TEST_FAILURE} - FIPS_R_TEST_FAILURE = 117; - {$EXTERNALSYM FIPS_R_UNSUPPORTED_PLATFORM} - FIPS_R_UNSUPPORTED_PLATFORM = 113; - {$ENDIF} - {$IFNDEF OPENSSL_NO_ENGINE} -//* These flags are used to control combinations of algorithm (methods) -// * by bitwise "OR"ing. */ - {$EXTERNALSYM ENGINE_METHOD_RSA : TIdC_UINT} - ENGINE_METHOD_RSA : TIdC_UINT = $0001; - {$EXTERNALSYM ENGINE_METHOD_DSA : TIdC_UINT} - ENGINE_METHOD_DSA : TIdC_UINT = $0002; - {$EXTERNALSYM ENGINE_METHOD_DH : TIdC_UINT} - ENGINE_METHOD_DH : TIdC_UINT = $0004; - {$EXTERNALSYM ENGINE_METHOD_RAND : TIdC_UINT} - ENGINE_METHOD_RAND : TIdC_UINT = $0008; - {$EXTERNALSYM ENGINE_METHOD_ECDH : TIdC_UINT} - ENGINE_METHOD_ECDH : TIdC_UINT = $0010; - {$EXTERNALSYM ENGINE_METHOD_ECDSA : TIdC_UINT} - ENGINE_METHOD_ECDSA : TIdC_UINT = $0020; - {$EXTERNALSYM ENGINE_METHOD_CIPHERS : TIdC_UINT} - ENGINE_METHOD_CIPHERS : TIdC_UINT = $0040; - {$EXTERNALSYM ENGINE_METHOD_DIGESTS : TIdC_UINT} - ENGINE_METHOD_DIGESTS : TIdC_UINT = $0080; - {$EXTERNALSYM ENGINE_METHOD_STORE : TIdC_UINT} - ENGINE_METHOD_STORE : TIdC_UINT = $0100; - {$EXTERNALSYM ENGINE_METHOD_PKEY_METHS : TIdC_UINT} - ENGINE_METHOD_PKEY_METHS : TIdC_UINT = $0200; - {$EXTERNALSYM ENGINE_METHOD_PKEY_ASN1_METHS : TIdC_UINT} - ENGINE_METHOD_PKEY_ASN1_METHS : TIdC_UINT = $0400; - -//* Obvious all-or-nothing cases. */ - {$EXTERNALSYM ENGINE_METHOD_ALL : TIdC_UINT} - ENGINE_METHOD_ALL : TIdC_UINT = $FFFF; - {$EXTERNALSYM ENGINE_METHOD_NONE : TIdC_UINT} - ENGINE_METHOD_NONE : TIdC_UINT = $0000; - {$EXTERNALSYM ENGINE_TABLE_FLAG_NOINIT : TIdC_UINT} - ENGINE_TABLE_FLAG_NOINIT : TIdC_UINT = $0001; - - {$EXTERNALSYM ENGINE_FLAGS_MANUAL_CMD_CTRL : TIdC_INT} - ENGINE_FLAGS_MANUAL_CMD_CTRL : TIdC_INT = $0002; - {$EXTERNALSYM ENGINE_FLAGS_BY_ID_COPY : TIdC_INT} - ENGINE_FLAGS_BY_ID_COPY : TIdC_INT = $0004; - {$EXTERNALSYM ENGINE_CMD_FLAG_NUMERIC : TIdC_UINT} - ENGINE_CMD_FLAG_NUMERIC : TIdC_UINT = $0001; - {$EXTERNALSYM ENGINE_CMD_FLAG_STRING : TIdC_UINT} - ENGINE_CMD_FLAG_STRING : TIdC_UINT = $0002; - {$EXTERNALSYM ENGINE_CMD_FLAG_NO_INPUT : TIdC_UINT} - ENGINE_CMD_FLAG_NO_INPUT : TIdC_UINT = $0004; - {$EXTERNALSYM ENGINE_CMD_FLAG_INTERNAL : TIdC_UINT} - ENGINE_CMD_FLAG_INTERNAL : TIdC_UINT = $0008; - - {$EXTERNALSYM ENGINE_CTRL_SET_LOGSTREAM} - ENGINE_CTRL_SET_LOGSTREAM = 1; - {$EXTERNALSYM ENGINE_CTRL_SET_PASSWORD_CALLBACK} - ENGINE_CTRL_SET_PASSWORD_CALLBACK = 2; - {$EXTERNALSYM ENGINE_CTRL_HUP} - ENGINE_CTRL_HUP = 3; - //* Close and reinitialise any - // handles/connections etc. */ - {$EXTERNALSYM ENGINE_CTRL_SET_USER_INTERFACE} - ENGINE_CTRL_SET_USER_INTERFACE = 4; //* Alternative to callback */ - {$EXTERNALSYM _CALLBACK_DATA} - _CALLBACK_DATA = 5; - //* User-specific data, used - // when calling the password - // callback and the user - // interface */ - {$EXTERNALSYM D_CONFIGURATION} - D_CONFIGURATION = 6; - //* Load a configuration, given - //a string that represents a - //file name or so */ - {$EXTERNALSYM D_SECTION} - D_SECTION = 7; - ///* Load data from a given - //section in the already loaded - //configuration */ - -////* Returns non-zero if the supplied ENGINE has a ctrl() handler. If "not", then -// * all the remaining control commands will return failure, so it is worth -// * checking this first if the caller is trying to "discover" the engine's -// * capabilities and doesn't want errors generated unnecessarily. */ - {$EXTERNALSYM ENGINE_CTRL_HAS_CTRL_FUNCTION} - ENGINE_CTRL_HAS_CTRL_FUNCTION = 10; -///* Returns a positive command number for the first command supported by the -// * engine. Returns zero if no ctrl commands are supported. */ - {$EXTERNALSYM ENGINE_CTRL_GET_FIRST_CMD_TYPE} - ENGINE_CTRL_GET_FIRST_CMD_TYPE = 11; -///* The 'long' argument specifies a command implemented by the engine, and the -// * return value is the next command supported, or zero if there are no more. */ - {$EXTERNALSYM ENGINE_CTRL_GET_NEXT_CMD_TYPE} - ENGINE_CTRL_GET_NEXT_CMD_TYPE = 12; -///* The 'void*' argument is a command name (cast from 'const char *'), and the -// * return value is the command that corresponds to it. */ - {$EXTERNALSYM ENGINE_CTRL_GET_CMD_FROM_NAME} - ENGINE_CTRL_GET_CMD_FROM_NAME = 13; -///* The next two allow a command to be converted into its corresponding string -// * form. In each case, the 'long' argument supplies the command. In the NAME_LEN -// * case, the return value is the length of the command name (not counting a -// * trailing EOL). In the NAME case, the 'void*' argument must be a string buffer -// * large enough, and it will be populated with the name of the command (WITH a -// * trailing EOL). */ - {$EXTERNALSYM ENGINE_CTRL_GET_NAME_LEN_FROM_CMD} - ENGINE_CTRL_GET_NAME_LEN_FROM_CMD = 14; - {$EXTERNALSYM ENGINE_CTRL_GET_NAME_FROM_CMD} - ENGINE_CTRL_GET_NAME_FROM_CMD = 15; -//* The next two are similar but give a "short description" of a command. */ - {$EXTERNALSYM ENGINE_CTRL_GET_DESC_LEN_FROM_CMD} - ENGINE_CTRL_GET_DESC_LEN_FROM_CMD = 16; - {$EXTERNALSYM ENGINE_CTRL_GET_DESC_FROM_CMD} - ENGINE_CTRL_GET_DESC_FROM_CMD = 17; -///* With this command, the return value is the OR'd combination of -// * ENGINE_CMD_FLAG_*** values that indicate what kind of input a given -// * engine-specific ctrl command expects. */ - {$EXTERNALSYM ENGINE_CTRL_GET_CMD_FLAGS} - ENGINE_CTRL_GET_CMD_FLAGS = 18; - -///* ENGINE implementations should start the numbering of their own control -// * commands from this value. (ie. ENGINE_CMD_BASE, ENGINE_CMD_BASE + 1, etc). */ - {$EXTERNALSYM ENGINE_CMD_BASE} - ENGINE_CMD_BASE = 200; - -///* NB: These 2 nCipher "chil" control commands are deprecated, and their -// * functionality is now available through ENGINE-specific control commands -// * (exposed through the above-mentioned 'CMD'-handling). Code using these 2 -// * commands should be migrated to the more general command handling before these -// * are removed. */ - -//* Flags specific to the nCipher "chil" engine */ - {$EXTERNALSYM ENGINE_CTRL_CHIL_SET_FORKCHECK} - ENGINE_CTRL_CHIL_SET_FORKCHECK = 100; -///* Depending on the value of the (long)i argument, this sets or -// * unsets the SimpleForkCheck flag in the CHIL API to enable or -// * disable checking and workarounds for applications that fork(). -// */ - {$EXTERNALSYM ENGINE_CTRL_CHIL_NO_LOCKING} - ENGINE_CTRL_CHIL_NO_LOCKING = 101; -///* This prevents the initialisation function from providing mutex -// * callbacks to the nCipher library. */ - -///* Binary/behaviour compatibility levels */ - {$EXTERNALSYM OSSL_DYNAMIC_VERSION : TIdC_UINT} - OSSL_DYNAMIC_VERSION : TIdC_UINT = $00020000; -///* Binary versions older than this are too old for us (whether we're a loader or -// * a loadee) */ - {$EXTERNALSYM OSSL_DYNAMIC_OLDEST : TIdC_UINT} - OSSL_DYNAMIC_OLDEST : TIdC_UINT = $00020000; -//* Function codes. */ - {$EXTERNALSYM ENGINE_F_DYNAMIC_CTRL} - ENGINE_F_DYNAMIC_CTRL = 180; - {$EXTERNALSYM ENGINE_F_DYNAMIC_GET_DATA_CTX} - ENGINE_F_DYNAMIC_GET_DATA_CTX = 181; - {$EXTERNALSYM ENGINE_F_DYNAMIC_LOAD} - ENGINE_F_DYNAMIC_LOAD = 182; - {$EXTERNALSYM ENGINE_F_DYNAMIC_SET_DATA_CTX} - ENGINE_F_DYNAMIC_SET_DATA_CTX = 183; - {$EXTERNALSYM ENGINE_F_ENGINE_ADD} - ENGINE_F_ENGINE_ADD = 105; - {$EXTERNALSYM ENGINE_F_ENGINE_BY_ID} - ENGINE_F_ENGINE_BY_ID = 106; - {$EXTERNALSYM ENGINE_F_ENGINE_CMD_IS_EXECUTABLE} - ENGINE_F_ENGINE_CMD_IS_EXECUTABLE = 170; - {$EXTERNALSYM ENGINE_F_ENGINE_CTRL} - ENGINE_F_ENGINE_CTRL = 142; - {$EXTERNALSYM ENGINE_F_ENGINE_CTRL_CMD} - ENGINE_F_ENGINE_CTRL_CMD = 178; - {$EXTERNALSYM ENGINE_F_ENGINE_CTRL_CMD_STRING} - ENGINE_F_ENGINE_CTRL_CMD_STRING = 171; - {$EXTERNALSYM ENGINE_F_ENGINE_FINISH} - ENGINE_F_ENGINE_FINISH = 107; - {$EXTERNALSYM ENGINE_F_ENGINE_FREE_UTIL} - ENGINE_F_ENGINE_FREE_UTIL = 108; - {$EXTERNALSYM ENGINE_F_ENGINE_GET_CIPHER} - ENGINE_F_ENGINE_GET_CIPHER = 185; - {$EXTERNALSYM ENGINE_F_ENGINE_GET_DEFAULT_TYPE} - ENGINE_F_ENGINE_GET_DEFAULT_TYPE = 177; - {$EXTERNALSYM ENGINE_F_ENGINE_GET_DIGEST} - ENGINE_F_ENGINE_GET_DIGEST = 186; - {$EXTERNALSYM ENGINE_F_ENGINE_GET_NEXT} - ENGINE_F_ENGINE_GET_NEXT = 115; - {$EXTERNALSYM ENGINE_F_ENGINE_GET_PKEY_ASN1_METH} - ENGINE_F_ENGINE_GET_PKEY_ASN1_METH = 193; - {$EXTERNALSYM ENGINE_F_ENGINE_GET_PKEY_METH} - ENGINE_F_ENGINE_GET_PKEY_METH = 192; - {$EXTERNALSYM ENGINE_F_ENGINE_GET_PREV} - ENGINE_F_ENGINE_GET_PREV = 116; - {$EXTERNALSYM ENGINE_F_ENGINE_INIT} - ENGINE_F_ENGINE_INIT = 119; - {$EXTERNALSYM ENGINE_F_ENGINE_LIST_ADD} - ENGINE_F_ENGINE_LIST_ADD = 120; - {$EXTERNALSYM ENGINE_F_ENGINE_LIST_REMOVE} - ENGINE_F_ENGINE_LIST_REMOVE = 121; - {$EXTERNALSYM ENGINE_F_ENGINE_LOAD_PRIVATE_KEY} - ENGINE_F_ENGINE_LOAD_PRIVATE_KEY = 150; - {$EXTERNALSYM ENGINE_F_ENGINE_LOAD_PUBLIC_KEY} - ENGINE_F_ENGINE_LOAD_PUBLIC_KEY = 151; - //was ENGINE_F_ENGINE_LOAD_SSL_CLIENT_CERT = 192; - {$EXTERNALSYM ENGINE_F_ENGINE_LOAD_SSL_CLIENT_CERT} - ENGINE_F_ENGINE_LOAD_SSL_CLIENT_CERT = 194; - - {$EXTERNALSYM ENGINE_F_ENGINE_NEW} - ENGINE_F_ENGINE_NEW = 122; - {$EXTERNALSYM ENGINE_F_ENGINE_REMOVE} - ENGINE_F_ENGINE_REMOVE = 123; - {$EXTERNALSYM ENGINE_F_ENGINE_SET_DEFAULT_STRING} - ENGINE_F_ENGINE_SET_DEFAULT_STRING = 189; - {$EXTERNALSYM ENGINE_F_ENGINE_SET_DEFAULT_TYPE} - ENGINE_F_ENGINE_SET_DEFAULT_TYPE = 126; - {$EXTERNALSYM ENGINE_F_ENGINE_SET_ID} - ENGINE_F_ENGINE_SET_ID = 129; - {$EXTERNALSYM ENGINE_F_ENGINE_SET_NAME} - ENGINE_F_ENGINE_SET_NAME = 130; - {$EXTERNALSYM ENGINE_F_ENGINE_TABLE_REGISTER} - ENGINE_F_ENGINE_TABLE_REGISTER = 184; - {$EXTERNALSYM ENGINE_F_ENGINE_UNLOAD_KEY} - ENGINE_F_ENGINE_UNLOAD_KEY = 152; - {$EXTERNALSYM ENGINE_F_ENGINE_UNLOCKED_FINISH} - ENGINE_F_ENGINE_UNLOCKED_FINISH = 191; - {$EXTERNALSYM ENGINE_F_ENGINE_UP_REF} - ENGINE_F_ENGINE_UP_REF = 190; - {$EXTERNALSYM ENGINE_F_INT_CTRL_HELPER} - ENGINE_F_INT_CTRL_HELPER = 172; - {$EXTERNALSYM ENGINE_F_INT_ENGINE_CONFIGURE} - ENGINE_F_INT_ENGINE_CONFIGURE = 188; - {$EXTERNALSYM ENGINE_F_INT_ENGINE_MODULE_INIT} - ENGINE_F_INT_ENGINE_MODULE_INIT = 187; - {$EXTERNALSYM ENGINE_F_LOG_MESSAGE} - ENGINE_F_LOG_MESSAGE = 141; -//* Reason codes. */ - {$EXTERNALSYM ENGINE_R_ALREADY_LOADED} - ENGINE_R_ALREADY_LOADED = 100; - {$EXTERNALSYM ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER} - ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER = 133; - {$EXTERNALSYM ENGINE_R_CMD_NOT_EXECUTABLE} - ENGINE_R_CMD_NOT_EXECUTABLE = 134; - {$EXTERNALSYM ENGINE_R_COMMAND_TAKES_INPUT} - ENGINE_R_COMMAND_TAKES_INPUT = 135; - {$EXTERNALSYM ENGINE_R_COMMAND_TAKES_NO_INPUT} - ENGINE_R_COMMAND_TAKES_NO_INPUT = 136; - {$EXTERNALSYM ENGINE_R_CONFLICTING_ENGINE_ID} - ENGINE_R_CONFLICTING_ENGINE_ID = 103; - {$EXTERNALSYM ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED} - ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED = 119; - {$EXTERNALSYM ENGINE_R_DH_NOT_IMPLEMENTED} - ENGINE_R_DH_NOT_IMPLEMENTED = 139; - {$EXTERNALSYM ENGINE_R_DSA_NOT_IMPLEMENTED} - ENGINE_R_DSA_NOT_IMPLEMENTED = 140; - {$EXTERNALSYM ENGINE_R_DSO_FAILURE} - ENGINE_R_DSO_FAILURE = 104; - {$EXTERNALSYM ENGINE_R_DSO_NOT_FOUND} - ENGINE_R_DSO_NOT_FOUND = 132; - {$EXTERNALSYM ENGINE_R_ENGINES_SECTION_ERROR} - ENGINE_R_ENGINES_SECTION_ERROR = 148; -//was: ENGINE_R_ENGINE_CONFIGURATION_ERROR = 101; - {$EXTERNALSYM ENGINE_R_ENGINE_CONFIGURATION_ERROR} - ENGINE_R_ENGINE_CONFIGURATION_ERROR = 102; - - {$EXTERNALSYM ENGINE_R_ENGINE_IS_NOT_IN_LIST} - ENGINE_R_ENGINE_IS_NOT_IN_LIST = 105; - {$EXTERNALSYM ENGINE_R_ENGINE_SECTION_ERROR} - ENGINE_R_ENGINE_SECTION_ERROR = 149; - {$EXTERNALSYM ENGINE_R_FAILED_LOADING_PRIVATE_KEY} - ENGINE_R_FAILED_LOADING_PRIVATE_KEY = 128; - {$EXTERNALSYM ENGINE_R_FAILED_LOADING_PUBLIC_KEY} - ENGINE_R_FAILED_LOADING_PUBLIC_KEY = 129; - {$EXTERNALSYM ENGINE_R_FINISH_FAILED} - ENGINE_R_FINISH_FAILED = 106; - {$EXTERNALSYM ENGINE_R_GET_HANDLE_FAILED} - ENGINE_R_GET_HANDLE_FAILED = 107; - {$EXTERNALSYM ENGINE_R_ID_OR_NAME_MISSING} - ENGINE_R_ID_OR_NAME_MISSING = 108; - {$EXTERNALSYM ENGINE_R_INIT_FAILED} - ENGINE_R_INIT_FAILED = 109; - {$EXTERNALSYM ENGINE_R_INTERNAL_LIST_ERROR} - ENGINE_R_INTERNAL_LIST_ERROR = 110; - {$EXTERNALSYM ENGINE_R_INVALID_ARGUMENT} - ENGINE_R_INVALID_ARGUMENT = 143; - {$EXTERNALSYM ENGINE_R_INVALID_CMD_NAME} - ENGINE_R_INVALID_CMD_NAME = 137; - {$EXTERNALSYM ENGINE_R_INVALID_CMD_NUMBER} - ENGINE_R_INVALID_CMD_NUMBER = 138; - {$EXTERNALSYM ENGINE_R_INVALID_INIT_VALUE} - ENGINE_R_INVALID_INIT_VALUE = 151; - {$EXTERNALSYM ENGINE_R_INVALID_STRING} - ENGINE_R_INVALID_STRING = 150; - {$EXTERNALSYM ENGINE_R_NOT_INITIALISED} - ENGINE_R_NOT_INITIALISED = 117; - {$EXTERNALSYM ENGINE_R_NOT_LOADED} - ENGINE_R_NOT_LOADED = 112; - {$EXTERNALSYM ENGINE_R_NO_CONTROL_FUNCTION} - ENGINE_R_NO_CONTROL_FUNCTION = 120; - {$EXTERNALSYM ENGINE_R_NO_INDEX} - ENGINE_R_NO_INDEX = 144; - {$EXTERNALSYM ENGINE_R_NO_LOAD_FUNCTION} - ENGINE_R_NO_LOAD_FUNCTION = 125; - {$EXTERNALSYM ENGINE_R_NO_REFERENCE} - ENGINE_R_NO_REFERENCE = 130; - {$EXTERNALSYM ENGINE_R_NO_SUCH_ENGINE} - ENGINE_R_NO_SUCH_ENGINE = 116; - {$EXTERNALSYM ENGINE_R_NO_UNLOAD_FUNCTION} - ENGINE_R_NO_UNLOAD_FUNCTION = 126; - {$EXTERNALSYM ENGINE_R_PROVIDE_PARAMETERS} - ENGINE_R_PROVIDE_PARAMETERS = 113; - {$EXTERNALSYM ENGINE_R_RSA_NOT_IMPLEMENTED} - ENGINE_R_RSA_NOT_IMPLEMENTED = 141; - {$EXTERNALSYM ENGINE_R_UNIMPLEMENTED_CIPHER} - ENGINE_R_UNIMPLEMENTED_CIPHER = 146; - {$EXTERNALSYM ENGINE_R_UNIMPLEMENTED_DIGEST} - ENGINE_R_UNIMPLEMENTED_DIGEST = 147; - {$EXTERNALSYM ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD} - ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD = 101; - {$EXTERNALSYM ENGINE_R_VERSION_INCOMPATIBILITY} - ENGINE_R_VERSION_INCOMPATIBILITY = 145; -{$ENDIF} - {$EXTERNALSYM MSS_EXIT_FAILURE} - MSS_EXIT_FAILURE = 1; - {$EXTERNALSYM MSS_EXIT_SUCCESS} - MSS_EXIT_SUCCESS = 0; - {$EXTERNALSYM FILENAME_MAX} - FILENAME_MAX = 1024; - {$EXTERNALSYM FOPEN_MAX} - FOPEN_MAX = 20; - {$IFNDEF OPENSSL_NO_IDEA} - {$EXTERNALSYM IDEA_BLOCK} - IDEA_BLOCK = 8; - {$EXTERNALSYM IDEA_DECRYPT} - IDEA_DECRYPT = 0; - {$EXTERNALSYM IDEA_ENCRYPT} - IDEA_ENCRYPT = 1; - {$EXTERNALSYM IDEA_KEY_LENGTH} - IDEA_KEY_LENGTH = 16; - {$ENDIF} - {$EXTERNALSYM IS_SEQUENCE} - IS_SEQUENCE = 0; - {$EXTERNALSYM IS_SET} - IS_SET = 1; - {$EXTERNALSYM KRBDES_DECRYPT} - KRBDES_DECRYPT = DES_DECRYPT; - {$EXTERNALSYM KRBDES_ENCRYPT} - KRBDES_ENCRYPT = DES_ENCRYPT; - {$EXTERNALSYM LH_LOAD_MULT} - LH_LOAD_MULT = 256; - {$EXTERNALSYM L_ctermid} - L_ctermid = 16; - {$EXTERNALSYM L_cuserid} - L_cuserid = 9; - {$EXTERNALSYM L_tmpnam} - L_tmpnam = 1024; - //chamellia.h - {$IFNDEF OPENSSL_NO_CAMELLIA} - {$EXTERNALSYM CAMELLIA_ENCRYPT} - CAMELLIA_ENCRYPT = 1; - {$EXTERNALSYM CAMELLIA_DECRYPT} - CAMELLIA_DECRYPT = 0; -//* This should be a hidden type, but EVP requires that the size be known */ - - {$EXTERNALSYM CAMELLIA_BLOCK_SIZE} - CAMELLIA_BLOCK_SIZE = 16; - {$EXTERNALSYM CAMELLIA_TABLE_BYTE_LEN} - CAMELLIA_TABLE_BYTE_LEN = 272; - {$EXTERNALSYM CAMELLIA_TABLE_WORD_LEN} - CAMELLIA_TABLE_WORD_LEN = (CAMELLIA_TABLE_BYTE_LEN / 4); - {$ENDIF} - //whrlpool.h - {$EXTERNALSYM WHIRLPOOL_DIGEST_LENGTH} - WHIRLPOOL_DIGEST_LENGTH = (512 div 8); - {$EXTERNALSYM WHIRLPOOL_BBLOCK} - WHIRLPOOL_BBLOCK = 512; - {$EXTERNALSYM WHIRLPOOL_COUNTER} - WHIRLPOOL_COUNTER = (256 div 8); - {$IFNDEF OPENSSL_NO_MD2} - {$EXTERNALSYM MD2_BLOCK} - MD2_BLOCK = 16; - {$EXTERNALSYM MD2_DIGEST_LENGTH} - MD2_DIGEST_LENGTH = 16; - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD4} - {$EXTERNALSYM MD4_CBLOCK} - MD4_CBLOCK = 64; - {$EXTERNALSYM MD4_LBLOCK} - MD4_LBLOCK = (MD4_CBLOCK div 4); - {$EXTERNALSYM MD4_DIGEST_LENGTH} - MD4_DIGEST_LENGTH = 16; - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD5} - {$EXTERNALSYM MD5_CBLOCK} - MD5_CBLOCK = 64; - {$EXTERNALSYM MD5_LBLOCK} - MD5_LBLOCK = 16; //(MD5_CBLOCK/4); - {$EXTERNALSYM MD5_DIGEST_LENGTH} - MD5_DIGEST_LENGTH = 16; - {$ENDIF} - {$IFNDEF OPENSSL_NO_MDC2} - {$EXTERNALSYM OPENSSL_MDC2_BLOCK} - OPENSSL_MDC2_BLOCK = 8; - {$EXTERNALSYM OPENSSL_MDC2_DIGEST_LENGTH} - OPENSSL_MDC2_DIGEST_LENGTH = 16; - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA} - {$EXTERNALSYM SHA_LBLOCK} - SHA_LBLOCK = 16; - {$EXTERNALSYM SHA_CBLOCK} - SHA_CBLOCK = 64; //(SHA_LBLOCK * 4); - {$EXTERNALSYM SHA_DIGEST_LENGTH} - SHA_DIGEST_LENGTH = 20; - {$EXTERNALSYM SHA_LAST_BLOCK} - SHA_LAST_BLOCK = ( SHA_CBLOCK -8); - {$EXTERNALSYM SHA256_CBLOCK} - SHA256_CBLOCK = ( SHA_LBLOCK * 4); - {$EXTERNALSYM SHA224_DIGEST_LENGTH} - SHA224_DIGEST_LENGTH = 28; - {$EXTERNALSYM SHA256_DIGEST_LENGTH} - SHA256_DIGEST_LENGTH = 32; - {$EXTERNALSYM SHA384_DIGEST_LENGTH} - SHA384_DIGEST_LENGTH = 48; - {$EXTERNALSYM SHA512_DIGEST_LENGTH} - SHA512_DIGEST_LENGTH = 64; - {$IFNDEF OPENSSL_NO_SHA512} - {$EXTERNALSYM SHA512_CBLOCK} - SHA512_CBLOCK = (SHA_LBLOCK*8); - {$ENDIF} - {$ENDIF} - {$EXTERNALSYM LN_SMIMECapabilities} - LN_SMIMECapabilities = 'S/MIME Capabilities'; {Do not localize} - {$EXTERNALSYM LN_X500} - LN_X500 = 'X500'; {Do not localize} - {$EXTERNALSYM LN_X509} - LN_X509 = 'X509'; {Do not localize} - {$EXTERNALSYM LN_algorithm} - LN_algorithm = 'algorithm'; {Do not localize} - {$EXTERNALSYM LN_authority_key_identifier} - LN_authority_key_identifier = 'X509v3 Authority Key Identifier'; {Do not localize} - {$EXTERNALSYM LN_basic_constraints} - LN_basic_constraints = 'X509v3 Basic Constraints'; {Do not localize} - {$EXTERNALSYM LN_bf_cbc} - LN_bf_cbc = 'bf-cbc'; {Do not localize} - {$EXTERNALSYM LN_bf_cfb64} - LN_bf_cfb64 = 'bf-cfb'; {Do not localize} - {$EXTERNALSYM LN_bf_ecb} - LN_bf_ecb = 'bf-ecb'; {Do not localize} - {$EXTERNALSYM LN_bf_ofb64} - LN_bf_ofb64 = 'bf-ofb'; {Do not localize} - {$EXTERNALSYM LN_cast5_cbc} - LN_cast5_cbc = 'cast5-cbc'; {Do not localize} - {$EXTERNALSYM LN_cast5_cfb64} - LN_cast5_cfb64 = 'cast5-cfb'; {Do not localize} - {$EXTERNALSYM LN_cast5_ecb} - LN_cast5_ecb = 'cast5-ecb'; {Do not localize} - {$EXTERNALSYM LN_cast5_ofb64} - LN_cast5_ofb64 = 'cast5-ofb'; {Do not localize} - {$EXTERNALSYM LN_certBag} - LN_certBag = 'certBag'; {Do not localize} - {$EXTERNALSYM LN_certificate_policies} - LN_certificate_policies = 'X509v3 Certificate Policies'; {Do not localize} - {$EXTERNALSYM LN_client_auth} - LN_client_auth = 'TLS Web Client Authentication'; {Do not localize} - {$EXTERNALSYM LN_code_sign} - LN_code_sign = 'Code Signing'; {Do not localize} - {$EXTERNALSYM LN_commonName} - LN_commonName = 'commonName'; {Do not localize} - {$EXTERNALSYM LN_countryName} - LN_countryName = 'countryName'; {Do not localize} - {$EXTERNALSYM LN_crlBag} - LN_crlBag = 'crlBag'; {Do not localize} - {$EXTERNALSYM LN_crl_distribution_points} - LN_crl_distribution_points = 'X509v3 CRL Distribution Points'; {Do not localize} - {$EXTERNALSYM LN_crl_number} - LN_crl_number = 'X509v3 CRL Number'; {Do not localize} - {$EXTERNALSYM LN_crl_reason} - LN_crl_reason = 'CRL Reason Code'; {Do not localize} - {$EXTERNALSYM LN_delta_crl} - LN_delta_crl = 'X509v3 Delta CRL Indicator'; {Do not localize} - {$EXTERNALSYM LN_des_cbc} - LN_des_cbc = 'des-cbc'; {Do not localize} - {$EXTERNALSYM LN_des_cfb64} - LN_des_cfb64 = 'des-cfb'; {Do not localize} - {$EXTERNALSYM LN_des_ecb} - LN_des_ecb = 'des-ecb'; {Do not localize} - {$EXTERNALSYM LN_des_ede} - LN_des_ede = 'des-ede'; {Do not localize} - {$EXTERNALSYM LN_des_ede3} - LN_des_ede3 = 'des-ede3'; {Do not localize} - {$EXTERNALSYM LN_des_ede3_cbc} - LN_des_ede3_cbc = 'des-ede3-cbc'; {Do not localize} - {$EXTERNALSYM LN_des_ede3_cfb64} - LN_des_ede3_cfb64 = 'des-ede3-cfb'; {Do not localize} - {$EXTERNALSYM LN_des_ede3_ofb64} - LN_des_ede3_ofb64 = 'des-ede3-ofb'; {Do not localize} - {$EXTERNALSYM LN_des_ede_cbc} - LN_des_ede_cbc = 'des-ede-cbc'; {Do not localize} - {$EXTERNALSYM LN_des_ede_cfb64} - LN_des_ede_cfb64 = 'des-ede-cfb'; {Do not localize} - {$EXTERNALSYM LN_des_ede_ofb64} - LN_des_ede_ofb64 = 'des-ede-ofb'; {Do not localize} - {$EXTERNALSYM LN_des_ofb64} - LN_des_ofb64 = 'des-ofb'; {Do not localize} - {$EXTERNALSYM LN_description} - LN_description = 'description'; {Do not localize} - {$EXTERNALSYM LN_desx_cbc} - LN_desx_cbc = 'desx-cbc'; {Do not localize} - {$EXTERNALSYM LN_dhKeyAgreement} - LN_dhKeyAgreement = 'dhKeyAgreement'; {Do not localize} - {$EXTERNALSYM LN_dsa} - LN_dsa = 'dsaEncryption'; {Do not localize} - {$EXTERNALSYM LN_dsaWithSHA} - LN_dsaWithSHA = 'dsaWithSHA'; {Do not localize} - {$EXTERNALSYM LN_dsaWithSHA1} - LN_dsaWithSHA1 = 'dsaWithSHA1'; {Do not localize} - {$EXTERNALSYM LN_dsaWithSHA1_2} - LN_dsaWithSHA1_2 = 'dsaWithSHA1-old'; {Do not localize} - {$EXTERNALSYM LN_dsa_2} - LN_dsa_2 = 'dsaEncryption-old'; {Do not localize} - {$EXTERNALSYM LN_email_protect} - LN_email_protect = 'E-mail Protection'; {Do not localize} - {$EXTERNALSYM LN_ext_key_usage} - LN_ext_key_usage = 'X509v3 Extended Key Usage'; {Do not localize} - {$EXTERNALSYM LN_friendlyName} - LN_friendlyName = 'friendlyName'; {Do not localize} - {$EXTERNALSYM LN_givenName} - LN_givenName = 'givenName'; {Do not localize} - {$EXTERNALSYM LN_hmacWithSHA1} - LN_hmacWithSHA1 = 'hmacWithSHA1'; {Do not localize} - {$EXTERNALSYM LN_id_pbkdf2} - LN_id_pbkdf2 = 'PBKDF2'; {Do not localize} - {$EXTERNALSYM LN_id_qt_cps} - LN_id_qt_cps = 'Policy Qualifier CPS'; {Do not localize} - {$EXTERNALSYM LN_id_qt_unotice} - LN_id_qt_unotice = 'Policy Qualifier User Notice'; {Do not localize} - {$EXTERNALSYM LN_idea_cbc} - LN_idea_cbc = 'idea-cbc'; {Do not localize} - {$EXTERNALSYM LN_idea_cfb64} - LN_idea_cfb64 = 'idea-cfb'; {Do not localize} - {$EXTERNALSYM LN_idea_ecb} - LN_idea_ecb = 'idea-ecb'; {Do not localize} - {$EXTERNALSYM LN_idea_ofb64} - LN_idea_ofb64 = 'idea-ofb'; {Do not localize} - {$EXTERNALSYM LN_initials} - LN_initials = 'initials'; {Do not localize} - {$EXTERNALSYM LN_invalidity_date} - LN_invalidity_date = 'Invalidity Date'; {Do not localize} - {$EXTERNALSYM LN_issuer_alt_name} - LN_issuer_alt_name = 'X509v3 Issuer Alternative Name'; {Do not localize} - {$EXTERNALSYM LN_keyBag} - LN_keyBag = 'keyBag'; {Do not localize} - {$EXTERNALSYM LN_key_usage} - LN_key_usage = 'X509v3 Key Usage'; {Do not localize} - {$EXTERNALSYM LN_localKeyID} - LN_localKeyID = 'localKeyID'; {Do not localize} - {$EXTERNALSYM LN_localityName} - LN_localityName = 'localityName'; {Do not localize} - {$EXTERNALSYM LN_md2} - LN_md2 = 'md2'; {Do not localize} - {$EXTERNALSYM LN_md2WithRSAEncryption} - LN_md2WithRSAEncryption = 'md2WithRSAEncryption'; {Do not localize} - {$EXTERNALSYM LN_md4} - LN_md4 = 'md4'; {Do not localize} - {$EXTERNALSYM LN_md5} - LN_md5 = 'md5'; {Do not localize} - {$EXTERNALSYM LN_md5WithRSA} - LN_md5WithRSA = 'md5WithRSA'; {Do not localize} - {$EXTERNALSYM LN_md5WithRSAEncryption} - LN_md5WithRSAEncryption = 'md5WithRSAEncryption'; {Do not localize} - {$EXTERNALSYM LN_md5_sha1} - LN_md5_sha1 = 'md5-sha1'; {Do not localize} - {$EXTERNALSYM LN_mdc2} - LN_mdc2 = 'mdc2'; {Do not localize} - {$EXTERNALSYM LN_mdc2WithRSA} - LN_mdc2WithRSA = 'mdc2withRSA'; {Do not localize} - {$EXTERNALSYM LN_ms_code_com} - LN_ms_code_com = 'Microsoft Commercial Code Signing'; {Do not localize} - {$EXTERNALSYM LN_ms_code_ind} - LN_ms_code_ind = 'Microsoft Individual Code Signing'; {Do not localize} - {$EXTERNALSYM LN_ms_ctl_sign} - LN_ms_ctl_sign = 'Microsoft Trust List Signing'; {Do not localize} - {$EXTERNALSYM LN_ms_efs} - LN_ms_efs = 'Microsoft Encrypted File System'; {Do not localize} - {$EXTERNALSYM LN_ms_sgc} - LN_ms_sgc = 'Microsoft Server Gated Crypto'; {Do not localize} - {$EXTERNALSYM LN_netscape} - LN_netscape = 'Netscape Communications Corp.'; {Do not localize} - {$EXTERNALSYM LN_netscape_base_url} - LN_netscape_base_url = 'Netscape Base Url'; {Do not localize} - {$EXTERNALSYM LN_netscape_ca_policy_url} - LN_netscape_ca_policy_url = 'Netscape CA Policy Url'; {Do not localize} - {$EXTERNALSYM LN_netscape_ca_revocation_url} - LN_netscape_ca_revocation_url = 'Netscape CA Revocation Url'; {Do not localize} - {$EXTERNALSYM LN_netscape_cert_extension} - LN_netscape_cert_extension = 'Netscape Certificate Extension'; {Do not localize} - {$EXTERNALSYM LN_netscape_cert_sequence} - LN_netscape_cert_sequence = 'Netscape Certificate Sequence'; {Do not localize} - {$EXTERNALSYM LN_netscape_cert_type} - LN_netscape_cert_type = 'Netscape Cert Type'; {Do not localize} - {$EXTERNALSYM LN_netscape_comment} - LN_netscape_comment = 'Netscape Comment'; {Do not localize} - {$EXTERNALSYM LN_netscape_data_type} - LN_netscape_data_type = 'Netscape Data Type'; {Do not localize} - {$EXTERNALSYM LN_netscape_renewal_url} - LN_netscape_renewal_url = 'Netscape Renewal Url'; {Do not localize} - {$EXTERNALSYM LN_netscape_revocation_url} - LN_netscape_revocation_url = 'Netscape Revocation Url'; {Do not localize} - {$EXTERNALSYM LN_netscape_ssl_server_name} - LN_netscape_ssl_server_name = 'Netscape SSL Server Name'; {Do not localize} - {$EXTERNALSYM LN_ns_sgc} - LN_ns_sgc = 'Netscape Server Gated Crypto'; {Do not localize} - {$EXTERNALSYM LN_organizationName} - LN_organizationName = 'organizationName'; {Do not localize} - {$EXTERNALSYM LN_organizationalUnitName} - LN_organizationalUnitName = 'organizationalUnitName'; {Do not localize} - {$EXTERNALSYM LN_pbeWithMD2AndDES_CBC} - LN_pbeWithMD2AndDES_CBC = 'pbeWithMD2AndDES-CBC'; {Do not localize} - {$EXTERNALSYM LN_pbeWithMD2AndRC2_CBC} - LN_pbeWithMD2AndRC2_CBC = 'pbeWithMD2AndRC2-CBC'; {Do not localize} - {$EXTERNALSYM LN_pbeWithMD5AndCast5_CBC} - LN_pbeWithMD5AndCast5_CBC = 'pbeWithMD5AndCast5CBC'; {Do not localize} - {$EXTERNALSYM LN_pbeWithMD5AndDES_CBC} - LN_pbeWithMD5AndDES_CBC = 'pbeWithMD5AndDES-CBC'; {Do not localize} - {$EXTERNALSYM LN_pbeWithMD5AndRC2_CBC} - LN_pbeWithMD5AndRC2_CBC = 'pbeWithMD5AndRC2-CBC'; {Do not localize} - {$EXTERNALSYM LN_pbeWithSHA1AndDES_CBC} - LN_pbeWithSHA1AndDES_CBC = 'pbeWithSHA1AndDES-CBC'; {Do not localize} - {$EXTERNALSYM LN_pbeWithSHA1AndRC2_CBC} - LN_pbeWithSHA1AndRC2_CBC = 'pbeWithSHA1AndRC2-CBC'; {Do not localize} - {$EXTERNALSYM LN_pbe_WithSHA1And128BitRC2_CBC} - LN_pbe_WithSHA1And128BitRC2_CBC = 'pbeWithSHA1And128BitRC2-CBC'; {Do not localize} - {$EXTERNALSYM LN_pbe_WithSHA1And128BitRC4} - LN_pbe_WithSHA1And128BitRC4 = 'pbeWithSHA1And128BitRC4'; {Do not localize} - {$EXTERNALSYM LN_pbe_WithSHA1And2_Key_TripleDES_CBC} - LN_pbe_WithSHA1And2_Key_TripleDES_CBC = 'pbeWithSHA1And2-KeyTripleDES-CBC'; {Do not localize} - {$EXTERNALSYM LN_pbe_WithSHA1And3_Key_TripleDES_CBC} - LN_pbe_WithSHA1And3_Key_TripleDES_CBC = 'pbeWithSHA1And3-KeyTripleDES-CBC'; {Do not localize} - {$EXTERNALSYM LN_pbe_WithSHA1And40BitRC2_CBC} - LN_pbe_WithSHA1And40BitRC2_CBC = 'pbeWithSHA1And40BitRC2-CBC'; {Do not localize} - {$EXTERNALSYM LN_pbe_WithSHA1And40BitRC4} - LN_pbe_WithSHA1And40BitRC4 = 'pbeWithSHA1And40BitRC4'; {Do not localize} - {$EXTERNALSYM LN_pbes2} - LN_pbes2 = 'PBES2'; {Do not localize} - {$EXTERNALSYM LN_pbmac1} - LN_pbmac1 = 'PBMAC1'; {Do not localize} - {$EXTERNALSYM LN_pkcs} - LN_pkcs = 'pkcs'; {Do not localize} - {$EXTERNALSYM LN_pkcs3} - LN_pkcs3 = 'pkcs3'; {Do not localize} - {$EXTERNALSYM LN_pkcs7} - LN_pkcs7 = 'pkcs7'; {Do not localize} - {$EXTERNALSYM LN_pkcs7_data} - LN_pkcs7_data = 'pkcs7-data'; {Do not localize} - {$EXTERNALSYM LN_pkcs7_digest} - LN_pkcs7_digest = 'pkcs7-digestData'; {Do not localize} - {$EXTERNALSYM LN_pkcs7_encrypted} - LN_pkcs7_encrypted = 'pkcs7-encryptedData'; {Do not localize} - {$EXTERNALSYM LN_pkcs7_enveloped} - LN_pkcs7_enveloped = 'pkcs7-envelopedData'; {Do not localize} - {$EXTERNALSYM LN_pkcs7_signed} - LN_pkcs7_signed = 'pkcs7-signedData'; {Do not localize} - {$EXTERNALSYM LN_pkcs7_signedAndEnveloped} - LN_pkcs7_signedAndEnveloped = 'pkcs7-signedAndEnvelopedData'; {Do not localize} - {$EXTERNALSYM LN_pkcs8ShroudedKeyBag} - LN_pkcs8ShroudedKeyBag = 'pkcs8ShroudedKeyBag'; {Do not localize} - {$EXTERNALSYM LN_pkcs9} - LN_pkcs9 = 'pkcs9'; {Do not localize} - {$EXTERNALSYM LN_pkcs9_challengePassword} - LN_pkcs9_challengePassword = 'challengePassword'; {Do not localize} - {$EXTERNALSYM LN_pkcs9_contentType} - LN_pkcs9_contentType = 'contentType'; {Do not localize} - {$EXTERNALSYM LN_pkcs9_countersignature} - LN_pkcs9_countersignature = 'countersignature'; {Do not localize} - {$EXTERNALSYM LN_pkcs9_emailAddress} - LN_pkcs9_emailAddress = 'emailAddress'; {Do not localize} - {$EXTERNALSYM LN_pkcs9_extCertAttributes} - LN_pkcs9_extCertAttributes = 'extendedCertificateAttributes'; {Do not localize} - {$EXTERNALSYM LN_pkcs9_messageDigest} - LN_pkcs9_messageDigest = 'messageDigest'; {Do not localize} - {$EXTERNALSYM LN_pkcs9_signingTime} - LN_pkcs9_signingTime = 'signingTime'; {Do not localize} - {$EXTERNALSYM LN_pkcs9_unstructuredAddress} - LN_pkcs9_unstructuredAddress = 'unstructuredAddress'; {Do not localize} - {$EXTERNALSYM LN_pkcs9_unstructuredName} - LN_pkcs9_unstructuredName = 'unstructuredName'; {Do not localize} - {$EXTERNALSYM LN_private_key_usage_period} - LN_private_key_usage_period = 'X509v3 Private Key Usage Period'; {Do not localize} - {$EXTERNALSYM LN_rc2_40_cbc} - LN_rc2_40_cbc = 'rc2-40-cbc'; {Do not localize} - {$EXTERNALSYM LN_rc2_64_cbc} - LN_rc2_64_cbc = 'rc2-64-cbc'; {Do not localize} - {$EXTERNALSYM LN_rc2_cbc} - LN_rc2_cbc = 'rc2-cbc'; {Do not localize} - {$EXTERNALSYM LN_rc2_cfb64} - LN_rc2_cfb64 = 'rc2-cfb'; {Do not localize} - {$EXTERNALSYM LN_rc2_ecb} - LN_rc2_ecb = 'rc2-ecb'; {Do not localize} - {$EXTERNALSYM LN_rc2_ofb64} - LN_rc2_ofb64 = 'rc2-ofb'; {Do not localize} - {$EXTERNALSYM LN_rc4} - LN_rc4 = 'rc4'; {Do not localize} - {$EXTERNALSYM LN_rc4_40} - LN_rc4_40 = 'rc4-40'; {Do not localize} - {$EXTERNALSYM LN_rc5_cbc} - LN_rc5_cbc = 'rc5-cbc'; {Do not localize} - {$EXTERNALSYM LN_rc5_cfb64} - LN_rc5_cfb64 = 'rc5-cfb'; {Do not localize} - {$EXTERNALSYM LN_rc5_ecb} - LN_rc5_ecb = 'rc5-ecb'; {Do not localize} - {$EXTERNALSYM LN_rc5_ofb64} - LN_rc5_ofb64 = 'rc5-ofb'; {Do not localize} - {$EXTERNALSYM LN_ripemd160} - LN_ripemd160 = 'ripemd160'; {Do not localize} - {$EXTERNALSYM LN_ripemd160WithRSA} - LN_ripemd160WithRSA = 'ripemd160WithRSA'; {Do not localize} - {$EXTERNALSYM LN_rle_compression} - LN_rle_compression = 'run length compression'; {Do not localize} - {$EXTERNALSYM LN_rsa} - LN_rsa = 'rsa'; {Do not localize} - {$EXTERNALSYM LN_rsaEncryption} - LN_rsaEncryption = 'rsaEncryption'; {Do not localize} - {$EXTERNALSYM LN_rsadsi} - LN_rsadsi = 'rsadsi'; {Do not localize} - {$EXTERNALSYM LN_safeContentsBag} - LN_safeContentsBag = 'safeContentsBag'; {Do not localize} - {$EXTERNALSYM LN_sdsiCertificate} - LN_sdsiCertificate = 'sdsiCertificate'; {Do not localize} - {$EXTERNALSYM LN_secretBag} - LN_secretBag = 'secretBag'; {Do not localize} - {$EXTERNALSYM LN_serialNumber} - LN_serialNumber = 'serialNumber'; {Do not localize} - {$EXTERNALSYM LN_server_auth} - LN_server_auth = 'TLS Web Server Authentication'; {Do not localize} - {$EXTERNALSYM LN_sha} - LN_sha = 'sha'; {Do not localize} - {$EXTERNALSYM LN_sha1} - LN_sha1 = 'sha1'; {Do not localize} - {$EXTERNALSYM LN_sha1WithRSA} - LN_sha1WithRSA = 'sha1WithRSA'; {Do not localize} - {$EXTERNALSYM LN_sha1WithRSAEncryption} - LN_sha1WithRSAEncryption = 'sha1WithRSAEncryption'; {Do not localize} - {$EXTERNALSYM LN_shaWithRSAEncryption} - LN_shaWithRSAEncryption = 'shaWithRSAEncryption'; {Do not localize} - {$EXTERNALSYM LN_sha256WithRSAEncryption} - LN_sha256WithRSAEncryption = 'sha256WithRSAEncryption'; {Do not localize} - {$EXTERNALSYM LN_sha384WithRSAEncryption} - LN_sha384WithRSAEncryption = 'sha384WithRSAEncryption'; {Do not localize} - {$EXTERNALSYM LN_sha512WithRSAEncryption} - LN_sha512WithRSAEncryption = 'sha512WithRSAEncryption'; {do not localize} - {$EXTERNALSYM LN_sha224WithRSAEncryption} - LN_sha224WithRSAEncryption = 'sha224WithRSAEncryption'; {Do not localize} - {$EXTERNALSYM LN_stateOrProvinceName} - LN_stateOrProvinceName = 'stateOrProvinceName'; {Do not localize} - {$EXTERNALSYM LN_subject_alt_name} - LN_subject_alt_name = 'X509v3 Subject Alternative Name'; {Do not localize} - {$EXTERNALSYM LN_subject_key_identifier} - LN_subject_key_identifier = 'X509v3 Subject Key Identifier'; {Do not localize} - {$EXTERNALSYM LN_surname} - LN_surname = 'surname'; {Do not localize} - {$EXTERNALSYM LN_sxnet} - LN_sxnet = 'Strong Extranet ID'; {Do not localize} - {$EXTERNALSYM LN_time_stamp} - LN_time_stamp = 'Time Stamping'; {Do not localize} - {$EXTERNALSYM LN_title} - LN_title = 'title'; {Do not localize} - {$EXTERNALSYM LN_undef} - LN_undef = 'undefined'; {Do not localize} - {$EXTERNALSYM LN_uniqueIdentifier} - LN_uniqueIdentifier = 'uniqueIdentifier'; {Do not localize} - {$EXTERNALSYM LN_x509Certificate} - LN_x509Certificate = 'x509Certificate'; {Do not localize} - {$EXTERNALSYM LN_x509Crl} - LN_x509Crl = 'x509Crl'; {Do not localize} - {$EXTERNALSYM LN_zlib_compression} - LN_zlib_compression = 'zlib compression'; {Do not localize} - {$EXTERNALSYM NID_SMIMECapabilities} - NID_SMIMECapabilities = 167; - {$EXTERNALSYM NID_X500} - NID_X500 = 11; - {$EXTERNALSYM NID_X509} - NID_X509 = 12; - {$EXTERNALSYM NID_algorithm} - NID_algorithm = 38; - {$EXTERNALSYM NID_authority_key_identifier} - NID_authority_key_identifier = 90; - {$EXTERNALSYM NID_basic_constraints} - NID_basic_constraints = 87; - {$EXTERNALSYM NID_bf_cbc} - NID_bf_cbc = 91; - {$EXTERNALSYM NID_bf_cfb64} - NID_bf_cfb64 = 93; - {$EXTERNALSYM NID_bf_ecb} - NID_bf_ecb = 92; - {$EXTERNALSYM NID_bf_ofb64} - NID_bf_ofb64 = 94; - {$EXTERNALSYM NID_cast5_cbc} - NID_cast5_cbc = 108; - {$EXTERNALSYM NID_cast5_cfb64} - NID_cast5_cfb64 = 110; - {$EXTERNALSYM NID_cast5_ecb} - NID_cast5_ecb = 109; - {$EXTERNALSYM NID_cast5_ofb64} - NID_cast5_ofb64 = 111; - {$EXTERNALSYM NID_certBag} - NID_certBag = 152; - {$EXTERNALSYM NID_certificate_policies} - NID_certificate_policies = 89; - {$EXTERNALSYM NID_client_auth} - NID_client_auth = 130; - {$EXTERNALSYM NID_code_sign} - NID_code_sign = 131; - {$EXTERNALSYM NID_commonName} - NID_commonName = 13; - {$EXTERNALSYM NID_countryName} - NID_countryName = 14; - {$EXTERNALSYM NID_crlBag} - NID_crlBag = 153; - {$EXTERNALSYM NID_crl_distribution_points} - NID_crl_distribution_points = 103; - {$EXTERNALSYM NID_crl_number} - NID_crl_number = 88; - {$EXTERNALSYM NID_crl_reason} - NID_crl_reason = 141; - {$EXTERNALSYM NID_delta_crl} - NID_delta_crl = 140; - {$EXTERNALSYM NID_des_cbc} - NID_des_cbc = 31; - {$EXTERNALSYM NID_des_cfb64} - NID_des_cfb64 = 30; - {$EXTERNALSYM NID_des_ecb} - NID_des_ecb = 29; - {$EXTERNALSYM NID_des_ede} - NID_des_ede = 32; - {$EXTERNALSYM NID_des_ede3} - NID_des_ede3 = 33; - {$EXTERNALSYM NID_des_ede3_cbc} - NID_des_ede3_cbc = 44; - {$EXTERNALSYM NID_des_ede3_cfb64} - NID_des_ede3_cfb64 = 61; - {$EXTERNALSYM NID_des_ede3_ofb64} - NID_des_ede3_ofb64 = 63; - {$EXTERNALSYM NID_des_ede_cbc} - NID_des_ede_cbc = 43; - {$EXTERNALSYM NID_des_ede_cfb64} - NID_des_ede_cfb64 = 60; - {$EXTERNALSYM NID_des_ede_ofb64} - NID_des_ede_ofb64 = 62; - {$EXTERNALSYM NID_des_ofb64} - NID_des_ofb64 = 45; - {$EXTERNALSYM NID_description} - NID_description = 107; - {$EXTERNALSYM NID_desx_cbc} - NID_desx_cbc = 80; - {$EXTERNALSYM NID_email_protect} - NID_email_protect = 132; - {$EXTERNALSYM NID_ext_key_usage} - NID_ext_key_usage = 126; - {$EXTERNALSYM NID_friendlyName} - NID_friendlyName = 156; - {$EXTERNALSYM NID_givenName} - NID_givenName = 99; - {$EXTERNALSYM NID_hmacWithSHA1} - NID_hmacWithSHA1 = 163; - {$EXTERNALSYM NID_id_kp} - NID_id_kp = 128; - {$EXTERNALSYM NID_id_pbkdf2} - NID_id_pbkdf2 = 69; - {$EXTERNALSYM NID_id_pkix} - NID_id_pkix = 127; - {$EXTERNALSYM NID_id_qt_cps} - NID_id_qt_cps = 164; - {$EXTERNALSYM NID_id_qt_unotice} - NID_id_qt_unotice = 165; - {$EXTERNALSYM NID_idea_cbc} - NID_idea_cbc = 34; - {$EXTERNALSYM NID_idea_cfb64} - NID_idea_cfb64 = 35; - {$EXTERNALSYM NID_idea_ecb} - NID_idea_ecb = 36; - {$EXTERNALSYM NID_idea_ofb64} - NID_idea_ofb64 = 46; - {$EXTERNALSYM NID_initials} - NID_initials = 101; - {$EXTERNALSYM NID_invalidity_date} - NID_invalidity_date = 142; - {$EXTERNALSYM NID_issuer_alt_name} - NID_issuer_alt_name = 86; - {$EXTERNALSYM NID_keyBag} - NID_keyBag = 150; - {$EXTERNALSYM NID_key_usage} - NID_key_usage = 83; - {$EXTERNALSYM NID_ld_ce} - NID_ld_ce = 81; - {$EXTERNALSYM NID_localKeyID} - NID_localKeyID = 157; - {$EXTERNALSYM NID_localityName} - NID_localityName = 15; - {$EXTERNALSYM NID_md2} - NID_md2 = 3; - {$EXTERNALSYM NID_md2WithRSAEncryption} - NID_md2WithRSAEncryption = 7; - {$EXTERNALSYM NID_md4} - NID_md4 = 257; - {$EXTERNALSYM NID_md4WithRSAEncryption} - NID_md4WithRSAEncryption = 396; - {$EXTERNALSYM NID_md5} - NID_md5 = 4; - {$EXTERNALSYM NID_md5WithRSA} - NID_md5WithRSA = 104; - {$EXTERNALSYM NID_md5WithRSAEncryption} - NID_md5WithRSAEncryption = 8; - {$EXTERNALSYM NID_md5_sha1} - NID_md5_sha1 = 114; - {$EXTERNALSYM NID_mdc2} - NID_mdc2 = 95; - {$EXTERNALSYM NID_mdc2WithRSA} - NID_mdc2WithRSA = 96; - {$EXTERNALSYM NID_ms_code_com} - NID_ms_code_com = 135; - {$EXTERNALSYM NID_ms_code_ind} - NID_ms_code_ind = 134; - {$EXTERNALSYM NID_ms_ctl_sign} - NID_ms_ctl_sign = 136; - {$EXTERNALSYM NID_ms_efs} - NID_ms_efs = 138; - {$EXTERNALSYM NID_ms_sgc} - NID_ms_sgc = 137; - {$EXTERNALSYM NID_netscape} - NID_netscape = 57; - {$EXTERNALSYM NID_netscape_base_url} - NID_netscape_base_url = 72; - {$EXTERNALSYM NID_netscape_ca_policy_url} - NID_netscape_ca_policy_url = 76; - {$EXTERNALSYM NID_netscape_ca_revocation_url} - NID_netscape_ca_revocation_url = 74; - {$EXTERNALSYM NID_netscape_cert_extension} - NID_netscape_cert_extension = 58; - {$EXTERNALSYM NID_netscape_cert_sequence} - NID_netscape_cert_sequence = 79; - {$EXTERNALSYM NID_netscape_cert_type} - NID_netscape_cert_type = 71; - {$EXTERNALSYM NID_netscape_comment} - NID_netscape_comment = 78; - {$EXTERNALSYM NID_netscape_data_type} - NID_netscape_data_type = 59; - {$EXTERNALSYM NID_netscape_renewal_url} - NID_netscape_renewal_url = 75; - {$EXTERNALSYM NID_netscape_revocation_url} - NID_netscape_revocation_url = 73; - {$EXTERNALSYM NID_netscape_ssl_server_name} - NID_netscape_ssl_server_name = 77; - {$EXTERNALSYM NID_ns_sgc} - NID_ns_sgc = 139; - {$EXTERNALSYM NID_organizationName} - NID_organizationName = 17; - {$EXTERNALSYM NID_organizationalUnitName} - NID_organizationalUnitName = 18; - {$EXTERNALSYM NID_pbeWithMD2AndDES_CBC} - NID_pbeWithMD2AndDES_CBC = 9; - {$EXTERNALSYM NID_pbeWithMD2AndRC2_CBC} - NID_pbeWithMD2AndRC2_CBC = 168; - {$EXTERNALSYM NID_pbeWithMD5AndCast5_CBC} - NID_pbeWithMD5AndCast5_CBC = 112; - {$EXTERNALSYM NID_pbeWithMD5AndDES_CBC} - NID_pbeWithMD5AndDES_CBC = 10; - {$EXTERNALSYM NID_pbeWithMD5AndRC2_CBC} - NID_pbeWithMD5AndRC2_CBC = 169; - {$EXTERNALSYM NID_pbeWithSHA1AndDES_CBC} - NID_pbeWithSHA1AndDES_CBC = 170; - {$EXTERNALSYM NID_pbeWithSHA1AndRC2_CBC} - NID_pbeWithSHA1AndRC2_CBC = 68; - {$EXTERNALSYM NID_pbe_WithSHA1And128BitRC2_CBC} - NID_pbe_WithSHA1And128BitRC2_CBC = 148; - {$EXTERNALSYM NID_pbe_WithSHA1And128BitRC4} - NID_pbe_WithSHA1And128BitRC4 = 144; - {$EXTERNALSYM NID_pbe_WithSHA1And2_Key_TripleDES_CBC} - NID_pbe_WithSHA1And2_Key_TripleDES_CBC = 147; - {$EXTERNALSYM NID_pbe_WithSHA1And3_Key_TripleDES_CBC} - NID_pbe_WithSHA1And3_Key_TripleDES_CBC = 146; - {$EXTERNALSYM NID_pbe_WithSHA1And40BitRC2_CBC} - NID_pbe_WithSHA1And40BitRC2_CBC = 149; - {$EXTERNALSYM NID_pbe_WithSHA1And40BitRC4} - NID_pbe_WithSHA1And40BitRC4 = 145; - {$EXTERNALSYM NID_pbes2} - NID_pbes2 = 161; - {$EXTERNALSYM NID_pbmac1} - NID_pbmac1 = 162; - {$EXTERNALSYM NID_pkcs} - NID_pkcs = 2; - {$EXTERNALSYM NID_pkcs3} - NID_pkcs3 = 27; - {$EXTERNALSYM NID_pkcs7} - NID_pkcs7 = 20; - {$EXTERNALSYM NID_pkcs7_data} - NID_pkcs7_data = 21; - {$EXTERNALSYM NID_pkcs7_digest} - NID_pkcs7_digest = 25; - {$EXTERNALSYM NID_pkcs7_encrypted} - NID_pkcs7_encrypted = 26; - {$EXTERNALSYM NID_pkcs7_enveloped} - NID_pkcs7_enveloped = 23; - {$EXTERNALSYM NID_pkcs7_signed} - NID_pkcs7_signed = 22; - {$EXTERNALSYM NID_pkcs7_signedAndEnveloped} - NID_pkcs7_signedAndEnveloped = 24; - {$EXTERNALSYM NID_pkcs8ShroudedKeyBag} - NID_pkcs8ShroudedKeyBag = 151; - {$EXTERNALSYM NID_pkcs9} - NID_pkcs9 = 47; - {$EXTERNALSYM NID_pkcs9_challengePassword} - NID_pkcs9_challengePassword = 54; - {$EXTERNALSYM NID_pkcs9_contentType} - NID_pkcs9_contentType = 50; - {$EXTERNALSYM NID_pkcs9_countersignature} - NID_pkcs9_countersignature = 53; - {$EXTERNALSYM NID_pkcs9_emailAddress} - NID_pkcs9_emailAddress = 48; - {$EXTERNALSYM NID_pkcs9_extCertAttributes} - NID_pkcs9_extCertAttributes = 56; - {$EXTERNALSYM NID_pkcs9_messageDigest} - NID_pkcs9_messageDigest = 51; - {$EXTERNALSYM NID_pkcs9_signingTime} - NID_pkcs9_signingTime = 52; - {$EXTERNALSYM NID_pkcs9_unstructuredAddress} - NID_pkcs9_unstructuredAddress = 55; - {$EXTERNALSYM NID_pkcs9_unstructuredName} - NID_pkcs9_unstructuredName = 49; - {$EXTERNALSYM NID_private_key_usage_period} - NID_private_key_usage_period = 84; - {$EXTERNALSYM NID_rc2_40_cbc} - NID_rc2_40_cbc = 98; - {$EXTERNALSYM NID_rc2_64_cbc} - NID_rc2_64_cbc = 166; - {$EXTERNALSYM NID_rc2_cbc} - NID_rc2_cbc = 37; - {$EXTERNALSYM NID_rc2_cfb64} - NID_rc2_cfb64 = 39; - {$EXTERNALSYM NID_rc2_ecb} - NID_rc2_ecb = 38; - {$EXTERNALSYM NID_rc2_ofb64} - NID_rc2_ofb64 = 40; - {$EXTERNALSYM NID_rc4} - NID_rc4 = 5; - {$EXTERNALSYM NID_rc4_40} - NID_rc4_40 = 97; - {$EXTERNALSYM NID_rc5_cbc} - NID_rc5_cbc = 120; - {$EXTERNALSYM NID_rc5_cfb64} - NID_rc5_cfb64 = 122; - {$EXTERNALSYM NID_rc5_ecb} - NID_rc5_ecb = 121; - {$EXTERNALSYM NID_rc5_ofb64} - NID_rc5_ofb64 = 123; - {$EXTERNALSYM NID_ripemd160} - NID_ripemd160 = 117; - {$EXTERNALSYM NID_ripemd160WithRSA} - NID_ripemd160WithRSA = 119; - {$EXTERNALSYM NID_rle_compression} - NID_rle_compression = 124; - {$EXTERNALSYM NID_rsadsi} - NID_rsadsi = 1; - {$EXTERNALSYM NID_safeContentsBag} - NID_safeContentsBag = 155; - {$EXTERNALSYM NID_sdsiCertificate} - NID_sdsiCertificate = 159; - {$EXTERNALSYM NID_secretBag} - NID_secretBag = 154; - {$EXTERNALSYM NID_serialNumber} - NID_serialNumber = 105; - {$EXTERNALSYM NID_server_auth} - NID_server_auth = 129; - {$EXTERNALSYM NID_sha} - NID_sha = 41; - {$EXTERNALSYM NID_sha1} - NID_sha1 = 64; - {$EXTERNALSYM NID_sha1WithRSA} - NID_sha1WithRSA = 115; - {$EXTERNALSYM NID_sha1WithRSAEncryption} - NID_sha1WithRSAEncryption = 65; - {$EXTERNALSYM NID_sha256WithRSAEncryption} - NID_sha256WithRSAEncryption = 668; - {$EXTERNALSYM NID_sha384WithRSAEncryption} - NID_sha384WithRSAEncryption = 669; - {$EXTERNALSYM NID_sha512WithRSAEncryption} - NID_sha512WithRSAEncryption = 670; - {$EXTERNALSYM NID_sha224WithRSAEncryption} - NID_sha224WithRSAEncryption = 671; - {$EXTERNALSYM NID_shaWithRSAEncryption} - NID_shaWithRSAEncryption = 42; - {$EXTERNALSYM NID_stateOrProvinceName} - NID_stateOrProvinceName = 16; - {$EXTERNALSYM NID_subject_alt_name} - NID_subject_alt_name = 85; - {$EXTERNALSYM NID_subject_key_identifier} - NID_subject_key_identifier = 82; - {$EXTERNALSYM NID_surname} - NID_surname = 100; - {$EXTERNALSYM NID_sxnet} - NID_sxnet = 143; - {$EXTERNALSYM NID_time_stamp} - NID_time_stamp = 133; - {$EXTERNALSYM NID_title} - NID_title = 106; - {$EXTERNALSYM NID_uniqueIdentifier} - NID_uniqueIdentifier = 102; - {$EXTERNALSYM NID_x509Certificate} - NID_x509Certificate = 158; - {$EXTERNALSYM NID_x509Crl} - NID_x509Crl = 160; - {$EXTERNALSYM NID_zlib_compression} - NID_zlib_compression = 125; - {$EXTERNALSYM OBJ_F_OBJ_CREATE} - OBJ_F_OBJ_CREATE = 100; - {$EXTERNALSYM OBJ_F_OBJ_DUP} - OBJ_F_OBJ_DUP = 101; - {$EXTERNALSYM OBJ_F_OBJ_NID2LN} - OBJ_F_OBJ_NID2LN = 102; - {$EXTERNALSYM OBJ_F_OBJ_NID2OBJ} - OBJ_F_OBJ_NID2OBJ = 103; - {$EXTERNALSYM OBJ_F_OBJ_NID2SN} - OBJ_F_OBJ_NID2SN = 104; - {$EXTERNALSYM OBJ_NAME_ALIAS} - OBJ_NAME_ALIAS = $8000; - {$EXTERNALSYM OBJ_NAME_TYPE_CIPHER_METH} - OBJ_NAME_TYPE_CIPHER_METH = $02; - {$EXTERNALSYM OBJ_NAME_TYPE_COMP_METH} - OBJ_NAME_TYPE_COMP_METH = $04; - {$EXTERNALSYM OBJ_NAME_TYPE_MD_METH} - OBJ_NAME_TYPE_MD_METH = $01; - {$EXTERNALSYM OBJ_NAME_TYPE_NUM} - OBJ_NAME_TYPE_NUM = $05; - {$EXTERNALSYM OBJ_NAME_TYPE_PKEY_METH} - OBJ_NAME_TYPE_PKEY_METH = $03; - {$EXTERNALSYM OBJ_NAME_TYPE_UNDEF} - OBJ_NAME_TYPE_UNDEF = $00; - {$EXTERNALSYM OBJ_R_MALLOC_FAILURE} - OBJ_R_MALLOC_FAILURE = 100; - {$EXTERNALSYM OBJ_R_UNKNOWN_NID} - OBJ_R_UNKNOWN_NID = 101; - {$EXTERNALSYM OPENSSL_VERSION_NUMBER} - OPENSSL_VERSION_NUMBER = $1000105f; // MMNNFFPPS Major, Minor, Fix, Patch, Status - {$EXTERNALSYM OPENSSL_VERSION_TEXT} -{$IFDEF OPENSSL_FIPS} - OPENSSL_VERSION_TEXT = 'OpenSSL 1.0.1e-fips 11 Feb 2013'; {Do not localize} -{$ELSE} - OPENSSL_VERSION_TEXT = 'OpenSSL 1.0.1e 11 Feb 2013'; {Do not localize} -{$ENDIF} - {$EXTERNALSYM OPENSSL_VERSION_PTEXT} - OPENSSL_VERSION_PTEXT = ' part of '+ OPENSSL_VERSION_TEXT; {Do not localize} - {$EXTERNALSYM PEM_BUFSIZE} - PEM_BUFSIZE = 1024; - {$EXTERNALSYM PEM_DEK_DES_CBC} - PEM_DEK_DES_CBC = 40; - {$EXTERNALSYM PEM_DEK_DES_ECB} - PEM_DEK_DES_ECB = 60; - {$EXTERNALSYM PEM_DEK_DES_EDE} - PEM_DEK_DES_EDE = 50; - {$EXTERNALSYM PEM_DEK_IDEA_CBC} - PEM_DEK_IDEA_CBC = 45; - {$EXTERNALSYM PEM_DEK_RSA} - PEM_DEK_RSA = 70; - {$EXTERNALSYM PEM_DEK_RSA_MD2} - PEM_DEK_RSA_MD2 = 80; - {$EXTERNALSYM PEM_DEK_RSA_MD5} - PEM_DEK_RSA_MD5 = 90; - {$EXTERNALSYM PEM_ERROR} - PEM_ERROR = 30; - {$EXTERNALSYM PEM_F_DEF_CALLBACK} - PEM_F_DEF_CALLBACK = 100; - {$EXTERNALSYM PEM_F_LOAD_IV} - PEM_F_LOAD_IV = 101; - {$EXTERNALSYM PEM_F_PEM_ASN1_READ} - PEM_F_PEM_ASN1_READ = 102; - {$EXTERNALSYM PEM_F_PEM_ASN1_READ_BIO} - PEM_F_PEM_ASN1_READ_BIO = 103; - {$EXTERNALSYM PEM_F_PEM_ASN1_WRITE} - PEM_F_PEM_ASN1_WRITE = 104; - {$EXTERNALSYM PEM_F_PEM_ASN1_WRITE_BIO} - PEM_F_PEM_ASN1_WRITE_BIO = 105; - {$EXTERNALSYM PEM_F_PEM_DO_HEADER} - PEM_F_PEM_DO_HEADER = 106; - {$EXTERNALSYM PEM_F_PEM_F_PEM_WRITE_PKCS8PRIVATEKEY} - PEM_F_PEM_F_PEM_WRITE_PKCS8PRIVATEKEY = 118; - {$EXTERNALSYM PEM_F_PEM_GET_EVP_CIPHER_INFO} - PEM_F_PEM_GET_EVP_CIPHER_INFO = 107; - {$EXTERNALSYM PEM_F_PEM_READ} - PEM_F_PEM_READ = 108; - {$EXTERNALSYM PEM_F_PEM_READ_BIO} - PEM_F_PEM_READ_BIO = 109; - {$EXTERNALSYM PEM_F_PEM_SEALFINAL} - PEM_F_PEM_SEALFINAL = 110; - {$EXTERNALSYM PEM_F_PEM_SEALINIT} - PEM_F_PEM_SEALINIT = 111; - {$EXTERNALSYM PEM_F_PEM_SIGNFINAL} - PEM_F_PEM_SIGNFINAL = 112; - {$EXTERNALSYM PEM_F_PEM_WRITE} - PEM_F_PEM_WRITE = 113; - {$EXTERNALSYM PEM_F_PEM_WRITE_BIO} - PEM_F_PEM_WRITE_BIO = 114; - {$EXTERNALSYM PEM_F_PEM_WRITE_BIO_PKCS8PRIVATEKEY} - PEM_F_PEM_WRITE_BIO_PKCS8PRIVATEKEY = 119; - {$EXTERNALSYM PEM_F_PEM_X509_INFO_READ} - PEM_F_PEM_X509_INFO_READ = 115; - {$EXTERNALSYM PEM_F_PEM_X509_INFO_READ_BIO} - PEM_F_PEM_X509_INFO_READ_BIO = 116; - {$EXTERNALSYM PEM_F_PEM_X509_INFO_WRITE_BIO} - PEM_F_PEM_X509_INFO_WRITE_BIO = 117; - {$EXTERNALSYM PEM_MD_MD2} - PEM_MD_MD2 = NID_md2; - {$EXTERNALSYM PEM_MD_MD2_RSA} - PEM_MD_MD2_RSA = NID_md2WithRSAEncryption; - {$EXTERNALSYM PEM_MD_MD5} - PEM_MD_MD5 = NID_md5; - {$EXTERNALSYM PEM_MD_MD5_RSA} - PEM_MD_MD5_RSA = NID_md5WithRSAEncryption; - {$EXTERNALSYM PEM_MD_SHA} - PEM_MD_SHA = NID_sha; - {$EXTERNALSYM PEM_MD_SHA_RSA} - PEM_MD_SHA_RSA = NID_sha1WithRSAEncryption; - {$EXTERNALSYM PEM_OBJ_UNDEF} - PEM_OBJ_UNDEF = 0; - {$EXTERNALSYM PEM_OBJ_X509} - PEM_OBJ_X509 = 1; - {$EXTERNALSYM PEM_OBJ_X509_REQ} - PEM_OBJ_X509_REQ = 2; - {$EXTERNALSYM PEM_OBJ_CRL} - PEM_OBJ_CRL = 3; - {$EXTERNALSYM PEM_OBJ_SSL_SESSION} - PEM_OBJ_SSL_SESSION = 4; - {$EXTERNALSYM PEM_OBJ_PRIV_KEY} - PEM_OBJ_PRIV_KEY = 10; - {$EXTERNALSYM PEM_OBJ_PRIV_RSA} - PEM_OBJ_PRIV_RSA = 11; - {$EXTERNALSYM PEM_OBJ_PRIV_DSA} - PEM_OBJ_PRIV_DSA = 12; - {$EXTERNALSYM PEM_OBJ_PRIV_DH} - PEM_OBJ_PRIV_DH = 13; - {$EXTERNALSYM PEM_OBJ_PUB_RSA} - PEM_OBJ_PUB_RSA = 14; - {$EXTERNALSYM PEM_OBJ_PUB_DSA} - PEM_OBJ_PUB_DSA = 15; - {$EXTERNALSYM PEM_OBJ_PUB_DH} - PEM_OBJ_PUB_DH = 16; - {$EXTERNALSYM PEM_OBJ_DHPARAMS} - PEM_OBJ_DHPARAMS = 17; - {$EXTERNALSYM PEM_OBJ_DSAPARAMS} - PEM_OBJ_DSAPARAMS = 18; - {$EXTERNALSYM PEM_OBJ_PRIV_RSA_PUBLIC} - PEM_OBJ_PRIV_RSA_PUBLIC = 19; - {$EXTERNALSYM PEM_OBJ_PRIV_ECDSA} - PEM_OBJ_PRIV_ECDSA = 20; - {$EXTERNALSYM PEM_OBJ_PUB_ECDSA} - PEM_OBJ_PUB_ECDSA = 21; - {$EXTERNALSYM PEM_OBJ_ECPARAMETERS} - PEM_OBJ_ECPARAMETERS = 22; - {$EXTERNALSYM PEM_R_BAD_BASE64_DECODE} - PEM_R_BAD_BASE64_DECODE = 100; - {$EXTERNALSYM PEM_R_BAD_DECRYPT} - PEM_R_BAD_DECRYPT = 101; - {$EXTERNALSYM PEM_R_BAD_END_LINE} - PEM_R_BAD_END_LINE = 102; - {$EXTERNALSYM PEM_R_BAD_IV_CHARS} - PEM_R_BAD_IV_CHARS = 103; - {$EXTERNALSYM PEM_R_BAD_PASSWORD_READ} - PEM_R_BAD_PASSWORD_READ = 104; - {$EXTERNALSYM PEM_R_ERROR_CONVERTING_PRIVATE_KEY} - PEM_R_ERROR_CONVERTING_PRIVATE_KEY = 115; - {$EXTERNALSYM PEM_R_NOT_DEK_INFO} - PEM_R_NOT_DEK_INFO = 105; - {$EXTERNALSYM PEM_R_NOT_ENCRYPTED} - PEM_R_NOT_ENCRYPTED = 106; - {$EXTERNALSYM PEM_R_NOT_PROC_TYPE} - PEM_R_NOT_PROC_TYPE = 107; - {$EXTERNALSYM PEM_R_NO_START_LINE} - PEM_R_NO_START_LINE = 108; - {$EXTERNALSYM PEM_R_PROBLEMS_GETTING_PASSWORD} - PEM_R_PROBLEMS_GETTING_PASSWORD = 109; - {$EXTERNALSYM PEM_R_PUBLIC_KEY_NO_RSA} - PEM_R_PUBLIC_KEY_NO_RSA = 110; - {$EXTERNALSYM PEM_R_READ_KEY} - PEM_R_READ_KEY = 111; - {$EXTERNALSYM PEM_R_SHORT_HEADER} - PEM_R_SHORT_HEADER = 112; - {$EXTERNALSYM PEM_R_UNSUPPORTED_CIPHER} - PEM_R_UNSUPPORTED_CIPHER = 113; - {$EXTERNALSYM PEM_R_UNSUPPORTED_ENCRYPTION} - PEM_R_UNSUPPORTED_ENCRYPTION = 114; - {$EXTERNALSYM PEM_STRING_EVP_PKEY} - PEM_STRING_EVP_PKEY = 'ANY PRIVATE KEY'; {Do not localize} - {$EXTERNALSYM PEM_STRING_X509_OLD} - PEM_STRING_X509_OLD = 'X509 CERTIFICATE'; {Do not localize} - {$EXTERNALSYM PEM_STRING_X509} - PEM_STRING_X509 = 'CERTIFICATE'; {Do not localize} - {$EXTERNALSYM PEM_STRING_X509_PAIR} - PEM_STRING_X509_PAIR = 'CERTIFICATE PAIR'; {Do not localize} - {$EXTERNALSYM PEM_STRING_X509_TRUSTED} - PEM_STRING_X509_TRUSTED = 'TRUSTED CERTIFICATE'; {Do not localize} - {$EXTERNALSYM PEM_STRING_X509_REQ_OLD} - PEM_STRING_X509_REQ_OLD = 'NEW CERTIFICATE REQUEST'; {Do not localize} - {$EXTERNALSYM PEM_STRING_X509_REQ} - PEM_STRING_X509_REQ = 'CERTIFICATE REQUEST'; {Do not localize} - {$EXTERNALSYM PEM_STRING_X509_CRL} - PEM_STRING_X509_CRL = 'X509 CRL'; {Do not localize} - {$EXTERNALSYM PEM_STRING_PUBLIC} - PEM_STRING_PUBLIC = 'PUBLIC KEY'; {Do not localize} - {$EXTERNALSYM PEM_STRING_RSA} - PEM_STRING_RSA = 'RSA PRIVATE KEY'; {Do not localize} - {$EXTERNALSYM PEM_STRING_RSA_PUBLIC} - PEM_STRING_RSA_PUBLIC = 'RSA PUBLIC KEY'; {Do not localize} - {$EXTERNALSYM PEM_STRING_DSA} - PEM_STRING_DSA = 'DSA PRIVATE KEY'; {Do not localize} - {$EXTERNALSYM PEM_STRING_DSA_PUBLIC} - PEM_STRING_DSA_PUBLIC = 'DSA PUBLIC KEY'; {Do not localize} - {$EXTERNALSYM PEM_STRING_PKCS7} - PEM_STRING_PKCS7 = 'PKCS7'; {Do not localize} - {$EXTERNALSYM PEM_STRING_PKCS7_SIGNED} - PEM_STRING_PKCS7_SIGNED ='PKCS #7 SIGNED DATA'; {Do not localize} - {$EXTERNALSYM PEM_STRING_PKCS8} - PEM_STRING_PKCS8 = 'ENCRYPTED PRIVATE KEY'; {Do not localize} - {$EXTERNALSYM PEM_STRING_PKCS8INF} - PEM_STRING_PKCS8INF = 'PRIVATE KEY'; {Do not localize} - {$EXTERNALSYM PEM_STRING_DHPARAMS} - PEM_STRING_DHPARAMS = 'DH PARAMETERS'; {Do not localize} - {$EXTERNALSYM PEM_STRING_SSL_SESSION} - PEM_STRING_SSL_SESSION = 'SSL SESSION PARAMETERS'; {Do not localize} - {$EXTERNALSYM PEM_STRING_DSAPARAMS} - PEM_STRING_DSAPARAMS = 'DSA PARAMETERS'; {Do not localize} - {$EXTERNALSYM PEM_STRING_ECDSA_PUBLIC} - PEM_STRING_ECDSA_PUBLIC = 'ECDSA PUBLIC KEY'; {Do not localize} - {$EXTERNALSYM PEM_STRING_ECPARAMETERS} - PEM_STRING_ECPARAMETERS = 'EC PARAMETERS'; {Do not localize} - {$EXTERNALSYM PEM_STRING_ECPRIVATEKEY} - PEM_STRING_ECPRIVATEKEY = 'EC PRIVATE KEY'; {Do not localize} - {$EXTERNALSYM PEM_STRING_CMS} - PEM_STRING_CMS = 'CMS'; {Do not localize} - {$EXTERNALSYM PEM_TYPE_CLEAR} - PEM_TYPE_CLEAR = 40; - {$EXTERNALSYM PEM_TYPE_ENCRYPTED} - PEM_TYPE_ENCRYPTED = 10; - {$EXTERNALSYM PEM_TYPE_MIC_CLEAR} - PEM_TYPE_MIC_CLEAR = 30; - {$EXTERNALSYM PEM_TYPE_MIC_ONLY} - PEM_TYPE_MIC_ONLY = 20; - {$EXTERNALSYM PKCS5_DEFAULT_ITER} - PKCS5_DEFAULT_ITER = 2048; - {$EXTERNALSYM PKCS5_SALT_LEN} - PKCS5_SALT_LEN = 8; - {$EXTERNALSYM PKCS7_F_PKCS7_ADD_CERTIFICATE} - PKCS7_F_PKCS7_ADD_CERTIFICATE = 100; - {$EXTERNALSYM PKCS7_F_PKCS7_ADD_CRL} - PKCS7_F_PKCS7_ADD_CRL = 101; - {$EXTERNALSYM PKCS7_F_PKCS7_ADD_RECIPIENT_INFO} - PKCS7_F_PKCS7_ADD_RECIPIENT_INFO = 102; - {$EXTERNALSYM PKCS7_F_PKCS7_ADD_SIGNER} - PKCS7_F_PKCS7_ADD_SIGNER = 103; - {$EXTERNALSYM PKCS7_F_PKCS7_CTRL} - PKCS7_F_PKCS7_CTRL = 104; - {$EXTERNALSYM PKCS7_F_PKCS7_DATADECODE} - PKCS7_F_PKCS7_DATADECODE = 112; - {$EXTERNALSYM PKCS7_F_PKCS7_DATAINIT} - PKCS7_F_PKCS7_DATAINIT = 105; - {$EXTERNALSYM PKCS7_F_PKCS7_DATASIGN} - PKCS7_F_PKCS7_DATASIGN = 106; - {$EXTERNALSYM PKCS7_F_PKCS7_DATAVERIFY} - PKCS7_F_PKCS7_DATAVERIFY = 107; - {$EXTERNALSYM PKCS7_F_PKCS7_SET_CIPHER} - PKCS7_F_PKCS7_SET_CIPHER = 108; - {$EXTERNALSYM PKCS7_F_PKCS7_SET_CONTENT} - PKCS7_F_PKCS7_SET_CONTENT = 109; - {$EXTERNALSYM PKCS7_F_PKCS7_SET_TYPE} - PKCS7_F_PKCS7_SET_TYPE = 110; - {$EXTERNALSYM PKCS7_F_PKCS7_SIGNATUREVERIFY} - PKCS7_F_PKCS7_SIGNATUREVERIFY = 113; - {$EXTERNALSYM PKCS7_OP_GET_DETACHED_SIGNATURE} - PKCS7_OP_GET_DETACHED_SIGNATURE = 2; - {$EXTERNALSYM PKCS7_OP_SET_DETACHED_SIGNATURE} - PKCS7_OP_SET_DETACHED_SIGNATURE = 1; - {$EXTERNALSYM PKCS7_R_CIPHER_NOT_INITIALIZED} - PKCS7_R_CIPHER_NOT_INITIALIZED = 116; - {$EXTERNALSYM PKCS7_R_DECRYPTED_KEY_IS_WRONG_LENGTH} - PKCS7_R_DECRYPTED_KEY_IS_WRONG_LENGTH = 100; - {$EXTERNALSYM PKCS7_R_DIGEST_FAILURE} - PKCS7_R_DIGEST_FAILURE = 101; - {$EXTERNALSYM PKCS7_R_INTERNAL_ERROR} - PKCS7_R_INTERNAL_ERROR = 102; - {$EXTERNALSYM PKCS7_R_MISSING_CERIPEND_INFO} - PKCS7_R_MISSING_CERIPEND_INFO = 103; - {$EXTERNALSYM PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE} - PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE = 115; - {$EXTERNALSYM PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE} - PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE = 104; - {$EXTERNALSYM PKCS7_R_SIGNATURE_FAILURE} - PKCS7_R_SIGNATURE_FAILURE = 105; - {$EXTERNALSYM PKCS7_R_UNABLE_TO_FIND_CERTIFICATE} - PKCS7_R_UNABLE_TO_FIND_CERTIFICATE = 106; - {$EXTERNALSYM PKCS7_R_UNABLE_TO_FIND_MEM_BIO} - PKCS7_R_UNABLE_TO_FIND_MEM_BIO = 107; - {$EXTERNALSYM PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST} - PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST = 108; - {$EXTERNALSYM PKCS7_R_UNKNOWN_DIGEST_TYPE} - PKCS7_R_UNKNOWN_DIGEST_TYPE = 109; - {$EXTERNALSYM PKCS7_R_UNKNOWN_OPERATION} - PKCS7_R_UNKNOWN_OPERATION = 110; - {$EXTERNALSYM PKCS7_R_UNSUPPORTED_CIPHER_TYPE} - PKCS7_R_UNSUPPORTED_CIPHER_TYPE = 111; - {$EXTERNALSYM PKCS7_R_UNSUPPORTED_CONTENT_TYPE} - PKCS7_R_UNSUPPORTED_CONTENT_TYPE = 112; - {$EXTERNALSYM PKCS7_R_WRONG_CONTENT_TYPE} - PKCS7_R_WRONG_CONTENT_TYPE = 113; - {$EXTERNALSYM PKCS7_R_WRONG_PKCS7_TYPE} - PKCS7_R_WRONG_PKCS7_TYPE = 114; - {$EXTERNALSYM PKCS7_S_BODY} - PKCS7_S_BODY = 1; - {$EXTERNALSYM PKCS7_S_HEADER} - PKCS7_S_HEADER = 0; - {$EXTERNALSYM PKCS7_S_TAIL} - PKCS7_S_TAIL = 2; - {$EXTERNALSYM PKCS8_NEG_PRIVKEY} - PKCS8_NEG_PRIVKEY = 4; - {$EXTERNALSYM PKCS8_NS_DB} - PKCS8_NS_DB = 3; - {$EXTERNALSYM PKCS8_EMBEDDED_PARAM} - PKCS8_EMBEDDED_PARAM = 2; - {$EXTERNALSYM PKCS8_NO_OCTET} - PKCS8_NO_OCTET = 1; - {$EXTERNALSYM PKCS8_OK} - PKCS8_OK = 0; - {$EXTERNALSYM P_tmpdir} - P_tmpdir = '/tmp'; {Do not localize} - {$EXTERNALSYM MSS_RAND_MAX} - MSS_RAND_MAX = $7fffffff; - {$IFNDEF OPENSSL_NO_RC2} - {$EXTERNALSYM RC2_BLOCK} - RC2_BLOCK = 8; - {$EXTERNALSYM RC2_DECRYPT} - RC2_DECRYPT = 0; - {$EXTERNALSYM RC2_ENCRYPT} - RC2_ENCRYPT = 1; - {$EXTERNALSYM RC2_KEY_LENGTH} - RC2_KEY_LENGTH = 16; - {$ENDIF} - {$IFNDEF OPENSSL_NO_RC5} - {$EXTERNALSYM RC5_12_ROUNDS} - RC5_12_ROUNDS = 12; - {$EXTERNALSYM RC5_16_ROUNDS} - RC5_16_ROUNDS = 16; - {$EXTERNALSYM RC5_32_BLOCK} - RC5_32_BLOCK = 8; - {$EXTERNALSYM RC5_32_KEY_LENGTH} - RC5_32_KEY_LENGTH = 16; - {$EXTERNALSYM RC5_8_ROUNDS} - RC5_8_ROUNDS = 8; - {$EXTERNALSYM RC5_DECRYPT} - RC5_DECRYPT = 0; - {$EXTERNALSYM RC5_ENCRYPT} - RC5_ENCRYPT = 1; - {$ENDIF} - {$IFNDEF OPENSSL_NO_HMAC} - {$EXTERNALSYM HMAC_MAX_MD_CBLOCK} - HMAC_MAX_MD_CBLOCK = 128; //* largest known is SHA512 */ - {$ENDIF} - {$IFNDEF OPENSSL_NO_RIPEMD} - {$EXTERNALSYM RIPEMD160_BLOCK} - RIPEMD160_BLOCK = 16; - {$EXTERNALSYM RIPEMD160_CBLOCK} - RIPEMD160_CBLOCK = 64; - {$EXTERNALSYM RIPEMD160_DIGEST_LENGTH} - RIPEMD160_DIGEST_LENGTH = 20; - {$EXTERNALSYM RIPEMD160_LAST_BLOCK} - RIPEMD160_LAST_BLOCK = 56; - {$EXTERNALSYM RIPEMD160_LBLOCK} - RIPEMD160_LBLOCK = 16; - {$EXTERNALSYM RIPEMD160_LENGTH_BLOCK} - RIPEMD160_LENGTH_BLOCK = 8; - {$ENDIF} - {$IFNDEF OPENSSL_NO_RSA} -///* If this flag is set the RSA method is FIPS compliant and can be used -// * in FIPS mode. This is set in the validated module method. If an -// * application sets this flag in its own methods it is its reposibility -// * to ensure the result is compliant. -// */ - - {$EXTERNALSYM RSA_FLAG_FIPS_METHOD} - RSA_FLAG_FIPS_METHOD = $0400; - -///* If this flag is set the operations normally disabled in FIPS mode are -// * permitted it is then the applications responsibility to ensure that the -// * usage is compliant. -// */ - - {$EXTERNALSYM RSA_FLAG_NON_FIPS_ALLOW} - RSA_FLAG_NON_FIPS_ALLOW = $0400; - - {$EXTERNALSYM RSA_3} - RSA_3 = $3; - {$EXTERNALSYM RSA_F4} - RSA_F4 = $10001; - {$EXTERNALSYM RSA_FLAG_BLINDING} - RSA_FLAG_BLINDING = $08; - {$EXTERNALSYM RSA_FLAG_CACHE_PRIVATE} - RSA_FLAG_CACHE_PRIVATE = $04; - {$EXTERNALSYM RSA_FLAG_CACHE_PUBLIC} - RSA_FLAG_CACHE_PUBLIC = $02; - {$EXTERNALSYM RSA_FLAG_EXT_PKEY} - RSA_FLAG_EXT_PKEY = $20; - {$EXTERNALSYM RSA_FLAG_SIGN_VER} - RSA_FLAG_SIGN_VER = $0040; - {$EXTERNALSYM RSA_FLAG_NO_BLINDING} - RSA_FLAG_NO_BLINDING =$0080; //* new with 0.9.6j and 0.9.7b; the built-in - //* RSA implementation now uses blinding by - //* default (ignoring RSA_FLAG_BLINDING), - //* but other engines might not need it - //*/ - {$EXTERNALSYM RSA_FLAG_NO_CONSTTIME} - RSA_FLAG_NO_CONSTTIME = $0100; //* new with 0.9.8f; the built-in RSA - //* implementation now uses constant time - //* operations by default in private key operations, - //* e.g., constant time modular exponentiation, - //* modular inverse without leaking branches, - //* division without leaking branches. This - //* flag disables these constant time - //* operations and results in faster RSA - //* private key operations. - //*/ -{$IFNDEF OPENSSL_NO_DEPRECATED} - {$EXTERNALSYM RSA_FLAG_NO_EXP_CONSTTIME} - RSA_FLAG_NO_EXP_CONSTTIME = RSA_FLAG_NO_CONSTTIME; //* deprecated name for the flag*/ - //* new with 0.9.7h; the built-in RSA - //* implementation now uses constant time - //* modular exponentiation for secret exponents - //* by default. This flag causes the - //* faster variable sliding window method to - //* be used for all exponents. - //*/ -{$ENDIF} - //the openssl developers probably only wanted to define this if it was not already defined. - {$EXTERNALSYM RSA_MAX_MODULUS_BITS} - RSA_MAX_MODULUS_BITS = 16384; - {$EXTERNALSYM RSA_FIPS_MIN_MODULUS_BITS} - RSA_FIPS_MIN_MODULUS_BITS = 1024; - //the openssl developers probably only wanted to define this if it was not already defined. - {$EXTERNALSYM RSA_SMALL_MODULUS_BITS} - RSA_SMALL_MODULUS_BITS = 3072; - //the openssl developers probably only wanted to define this if it was not already defined. - {$EXTERNALSYM RSA_MAX_PUBEXP_BITS} - RSA_MAX_PUBEXP_BITS = 64; //* exponent limit enforced for "large" modulus only */ - - {$EXTERNALSYM RSA_FLAG_THREAD_SAFE} - RSA_FLAG_THREAD_SAFE = $10; - //* function codes */ - {$EXTERNALSYM RSA_F_FIPS_RSA_SIGN} - RSA_F_FIPS_RSA_SIGN = 140; - {$EXTERNALSYM RSA_F_FIPS_RSA_VERIFY} - RSA_F_FIPS_RSA_VERIFY = 141; - {$EXTERNALSYM RSA_F_MEMORY_LOCK} - RSA_F_MEMORY_LOCK = 100; - {$EXTERNALSYM RSA_F_RSA_CHECK_KEY} - RSA_F_RSA_CHECK_KEY = 123; - {$EXTERNALSYM RSA_F_RSA_EAY_PRIVATE_DECRYPT} - RSA_F_RSA_EAY_PRIVATE_DECRYPT = 101; - {$EXTERNALSYM RSA_F_RSA_EAY_PRIVATE_ENCRYPT} - RSA_F_RSA_EAY_PRIVATE_ENCRYPT = 102; - {$EXTERNALSYM RSA_F_RSA_EAY_PUBLIC_DECRYPT} - RSA_F_RSA_EAY_PUBLIC_DECRYPT = 103; - {$EXTERNALSYM RSA_F_RSA_EAY_PUBLIC_ENCRYPT} - RSA_F_RSA_EAY_PUBLIC_ENCRYPT = 104; - {$EXTERNALSYM RSA_F_RSA_GENERATE_KEY} - RSA_F_RSA_GENERATE_KEY = 105; - {$EXTERNALSYM RSA_F_RSA_NEW_METHOD} - RSA_F_RSA_NEW_METHOD = 106; - {$EXTERNALSYM RSA_F_RSA_PADDING_ADD_NONE} - RSA_F_RSA_PADDING_ADD_NONE = 107; - {$EXTERNALSYM RSA_F_RSA_PADDING_ADD_PKCS1_OAEP} - RSA_F_RSA_PADDING_ADD_PKCS1_OAEP = 121; - {$EXTERNALSYM RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1} - RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1 = 108; - {$EXTERNALSYM RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2} - RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2 = 109; - {$EXTERNALSYM RSA_F_RSA_PADDING_ADD_SSLV23} - RSA_F_RSA_PADDING_ADD_SSLV23 = 110; - {$EXTERNALSYM RSA_F_RSA_PADDING_CHECK_NONE} - RSA_F_RSA_PADDING_CHECK_NONE = 111; - {$EXTERNALSYM RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP} - RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP = 122; - {$EXTERNALSYM RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1} - RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1 = 112; - {$EXTERNALSYM RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2} - RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2 = 113; - {$EXTERNALSYM RSA_F_RSA_PADDING_CHECK_SSLV23} - RSA_F_RSA_PADDING_CHECK_SSLV23 = 114; - {$EXTERNALSYM RSA_F_RSA_PRINT} - RSA_F_RSA_PRINT = 115; - {$EXTERNALSYM RSA_F_RSA_PRINT_FP} - RSA_F_RSA_PRINT_FP = 116; - {$EXTERNALSYM RSA_F_RSA_PRIVATE_ENCRYPT} - RSA_F_RSA_PRIVATE_ENCRYPT = 137; - {$EXTERNALSYM RSA_F_RSA_PUBLIC_DECRYPT} - RSA_F_RSA_PUBLIC_DECRYPT = 138; - {$EXTERNALSYM RSA_F_RSA_SETUP_BLINDING} - RSA_F_RSA_SETUP_BLINDING = 136; - {$EXTERNALSYM RSA_F_RSA_SET_DEFAULT_METHOD} - RSA_F_RSA_SET_DEFAULT_METHOD = 139; - {$EXTERNALSYM RSA_F_RSA_SET_METHOD} - RSA_F_RSA_SET_METHOD = 142; - {$EXTERNALSYM RSA_F_RSA_SIGN} - RSA_F_RSA_SIGN = 117; - {$EXTERNALSYM RSA_F_RSA_SIGN_ASN1_OCTET_STRING} - RSA_F_RSA_SIGN_ASN1_OCTET_STRING = 118; - {$EXTERNALSYM RSA_F_RSA_VERIFY} - RSA_F_RSA_VERIFY = 119; - {$EXTERNALSYM RSA_F_RSA_VERIFY_ASN1_OCTET_STRING} - RSA_F_RSA_VERIFY_ASN1_OCTET_STRING = 120; - {$EXTERNALSYM RSA_F_RSA_VERIFY_PKCS1_PSS} - RSA_F_RSA_VERIFY_PKCS1_PSS = 126; - {$EXTERNALSYM RSA_METHOD_FLAG_NO_CHECK} - RSA_METHOD_FLAG_NO_CHECK = $01; - {$EXTERNALSYM RSA_NO_PADDING} - RSA_NO_PADDING = 3; - {$EXTERNALSYM RSA_PKCS1_OAEP_PADDING} - RSA_PKCS1_OAEP_PADDING = 4; - {$EXTERNALSYM RSA_PKCS1_PADDING} - RSA_PKCS1_PADDING = 1; - {$EXTERNALSYM RSA_R_ALGORITHM_MISMATCH} - RSA_R_ALGORITHM_MISMATCH = 100; - {$EXTERNALSYM RSA_R_BAD_E_VALUE} - RSA_R_BAD_E_VALUE = 101; - {$EXTERNALSYM RSA_R_BAD_FIXED_HEADER_DECRYPT} - RSA_R_BAD_FIXED_HEADER_DECRYPT = 102; - {$EXTERNALSYM RSA_R_BAD_PAD_BYTE_COUNT} - RSA_R_BAD_PAD_BYTE_COUNT = 103; - {$EXTERNALSYM RSA_R_BAD_SIGNATURE} - RSA_R_BAD_SIGNATURE = 104; - {$EXTERNALSYM RSA_R_BLOCK_TYPE_IS_NOT_01} - RSA_R_BLOCK_TYPE_IS_NOT_01 = 106; - {$EXTERNALSYM RSA_R_BLOCK_TYPE_IS_NOT_02} - RSA_R_BLOCK_TYPE_IS_NOT_02 = 107; - {$EXTERNALSYM RSA_R_DATA_GREATER_THAN_MOD_LEN} - RSA_R_DATA_GREATER_THAN_MOD_LEN = 108; - {$EXTERNALSYM RSA_R_DATA_TOO_LARGE} - RSA_R_DATA_TOO_LARGE = 109; - {$EXTERNALSYM RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE} - RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE = 110; - {$EXTERNALSYM RSA_R_DATA_TOO_SMALL} - RSA_R_DATA_TOO_SMALL = 111; - {$EXTERNALSYM RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE} - RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE = 122; - {$EXTERNALSYM RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY} - RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY = 112; - {$EXTERNALSYM RSA_R_DMP1_NOT_CONGRUENT_TO_D} - RSA_R_DMP1_NOT_CONGRUENT_TO_D = 124; - {$EXTERNALSYM RSA_R_DMQ1_NOT_CONGRUENT_TO_D} - RSA_R_DMQ1_NOT_CONGRUENT_TO_D = 125; - {$EXTERNALSYM RSA_R_D_E_NOT_CONGRUENT_TO_1} - RSA_R_D_E_NOT_CONGRUENT_TO_1 = 123; - {$EXTERNALSYM RSA_R_IQMP_NOT_INVERSE_OF_Q} - RSA_R_IQMP_NOT_INVERSE_OF_Q = 126; - {$EXTERNALSYM RSA_R_KEY_SIZE_TOO_SMALL} - RSA_R_KEY_SIZE_TOO_SMALL = 120; - {$EXTERNALSYM RSA_R_LAST_OCTET_INVALID} - RSA_R_LAST_OCTET_INVALID = 134; - {$EXTERNALSYM RSA_R_MODULUS_TOO_LARGE} - RSA_R_MODULUS_TOO_LARGE = 105; - {$EXTERNALSYM RSA_R_NON_FIPS_METHOD} - RSA_R_NON_FIPS_METHOD = 141; - {$EXTERNALSYM RSA_R_NO_PUBLIC_EXPONENT} - RSA_R_NO_PUBLIC_EXPONENT = 140; - {$EXTERNALSYM RSA_R_NULL_BEFORE_BLOCK_MISSING} - RSA_R_NULL_BEFORE_BLOCK_MISSING = 113; - {$EXTERNALSYM RSA_R_N_DOES_NOT_EQUAL_P_Q} - RSA_R_N_DOES_NOT_EQUAL_P_Q = 127; - {$EXTERNALSYM RSA_R_OAEP_DECODING_ERROR} - RSA_R_OAEP_DECODING_ERROR = 121; - {$EXTERNALSYM RSA_R_OPERATION_NOT_ALLOWED_IN_FIPS_MODE} - RSA_R_OPERATION_NOT_ALLOWED_IN_FIPS_MODE = 142; - {$EXTERNALSYM RSA_R_PADDING_CHECK_FAILED} - RSA_R_PADDING_CHECK_FAILED = 114; - {$EXTERNALSYM RSA_R_P_NOT_PRIME} - RSA_R_P_NOT_PRIME = 128; - {$EXTERNALSYM RSA_R_Q_NOT_PRIME} - RSA_R_Q_NOT_PRIME = 129; - {$EXTERNALSYM RSA_R_SLEN_CHECK_FAILED} - RSA_R_SLEN_CHECK_FAILED = 136; - {$EXTERNALSYM RSA_R_SLEN_RECOVERY_FAILED} - RSA_R_SLEN_RECOVERY_FAILED = 135; - {$EXTERNALSYM RSA_R_SSLV3_ROLLBACK_ATTACK} - RSA_R_SSLV3_ROLLBACK_ATTACK = 115; - {$EXTERNALSYM RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD} - RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD = 116; - {$EXTERNALSYM RSA_R_UNKNOWN_ALGORITHM_TYPE} - RSA_R_UNKNOWN_ALGORITHM_TYPE = 117; - {$EXTERNALSYM RSA_R_UNKNOWN_PADDING_TYPE} - RSA_R_UNKNOWN_PADDING_TYPE = 118; - {$EXTERNALSYM RSA_R_WRONG_SIGNATURE_LENGTH} - RSA_R_WRONG_SIGNATURE_LENGTH = 119; - {$EXTERNALSYM RSA_SSLV23_PADDING} - RSA_SSLV23_PADDING = 2; - {$ENDIF} - {$EXTERNALSYM SEEK_CUR} - SEEK_CUR = 1; - {$EXTERNALSYM SEEK_END} - SEEK_END = 2; - {$EXTERNALSYM SEEK_SET} - SEEK_SET = 0; - {$EXTERNALSYM SN_Algorithm} - SN_Algorithm = 'Algorithm'; {Do not localize} - {$EXTERNALSYM SN_SMIMECapabilities} - SN_SMIMECapabilities = 'SMIME-CAPS'; {Do not localize} - {$EXTERNALSYM SN_authority_key_identifier} - SN_authority_key_identifier = 'authorityKeyIdentifier'; {Do not localize} - {$EXTERNALSYM SN_basic_constraints} - SN_basic_constraints = 'basicConstraints'; {Do not localize} - {$EXTERNALSYM SN_bf_cbc} - SN_bf_cbc = 'BF-CBC'; {Do not localize} - {$EXTERNALSYM SN_bf_cfb64} - SN_bf_cfb64 = 'BF-CFB'; {Do not localize} - {$EXTERNALSYM SN_bf_ecb} - SN_bf_ecb = 'BF-ECB'; {Do not localize} - {$EXTERNALSYM SN_bf_ofb64} - SN_bf_ofb64 = 'BF-OFB'; {Do not localize} - {$EXTERNALSYM SN_cast5_cbc} - SN_cast5_cbc = 'CAST5-CBC'; {Do not localize} - {$EXTERNALSYM SN_cast5_cfb64} - SN_cast5_cfb64 = 'CAST5-CFB'; {Do not localize} - {$EXTERNALSYM SN_cast5_ecb} - SN_cast5_ecb = 'CAST5-ECB'; {Do not localize} - {$EXTERNALSYM SN_cast5_ofb64} - SN_cast5_ofb64 = 'CAST5-OFB'; {Do not localize} - {$EXTERNALSYM SN_certificate_policies} - SN_certificate_policies = 'certificatePolicies'; {Do not localize} - {$EXTERNALSYM SN_client_auth} - SN_client_auth = 'clientAuth'; {Do not localize} - {$EXTERNALSYM SN_code_sign} - SN_code_sign = 'codeSigning'; {Do not localize} - {$EXTERNALSYM SN_commonName} - SN_commonName = 'CN'; {Do not localize} - {$EXTERNALSYM SN_countryName} - SN_countryName = 'C'; {Do not localize} - {$EXTERNALSYM SN_crl_distribution_points} - SN_crl_distribution_points = 'crlDistributionPoints'; {Do not localize} - {$EXTERNALSYM SN_crl_number} - SN_crl_number = 'crlNumber'; {Do not localize} - {$EXTERNALSYM SN_crl_reason} - SN_crl_reason = 'CRLReason'; {Do not localize} - {$EXTERNALSYM SN_delta_crl} - SN_delta_crl = 'deltaCRL'; {Do not localize} - {$EXTERNALSYM SN_des_cbc} - SN_des_cbc = 'DES-CBC'; {Do not localize} - {$EXTERNALSYM SN_des_cfb64} - SN_des_cfb64 = 'DES-CFB'; {Do not localize} - {$EXTERNALSYM SN_des_ecb} - SN_des_ecb = 'DES-ECB'; {Do not localize} - {$EXTERNALSYM SN_des_ede} - SN_des_ede = 'DES-EDE'; {Do not localize} - {$EXTERNALSYM SN_des_ede3} - SN_des_ede3 = 'DES-EDE3'; {Do not localize} - {$EXTERNALSYM SN_des_ede3_cbc} - SN_des_ede3_cbc = 'DES-EDE3-CBC'; {Do not localize} - {$EXTERNALSYM SN_des_ede3_cfb64} - SN_des_ede3_cfb64 = 'DES-EDE3-CFB'; {Do not localize} - {$EXTERNALSYM SN_des_ede3_ofb64} - SN_des_ede3_ofb64 = 'DES-EDE3-OFB'; {Do not localize} - {$EXTERNALSYM SN_des_ede_cbc} - SN_des_ede_cbc = 'DES-EDE-CBC'; {Do not localize} - {$EXTERNALSYM SN_des_ede_cfb64} - SN_des_ede_cfb64 = 'DES-EDE-CFB'; {Do not localize} - {$EXTERNALSYM SN_des_ede_ofb64} - SN_des_ede_ofb64 = 'DES-EDE-OFB'; {Do not localize} - {$EXTERNALSYM SN_des_ofb64} - SN_des_ofb64 = 'DES-OFB'; {Do not localize} - {$EXTERNALSYM SN_description} - SN_description = 'D'; {Do not localize} - {$EXTERNALSYM SN_desx_cbc} - SN_desx_cbc = 'DESX-CBC'; {Do not localize} - {$EXTERNALSYM SN_dsa} - SN_dsa = 'DSA'; {Do not localize} - {$EXTERNALSYM SN_dsaWithSHA} - SN_dsaWithSHA = 'DSA-SHA'; {Do not localize} - {$EXTERNALSYM SN_dsaWithSHA1} - SN_dsaWithSHA1 = 'DSA-SHA1'; {Do not localize} - {$EXTERNALSYM SN_dsaWithSHA1_2} - SN_dsaWithSHA1_2 = 'DSA-SHA1-old'; {Do not localize} - {$EXTERNALSYM SN_dsa_2} - SN_dsa_2 = 'DSA-old'; {Do not localize} - {$EXTERNALSYM SN_X9_62_id_ecPublicKey} - SN_X9_62_id_ecPublicKey = 'id-ecPublicKey'; {Do not localize} - {$EXTERNALSYM SN_email_protect} - SN_email_protect = 'emailProtection'; {Do not localize} - {$EXTERNALSYM SN_ext_key_usage} - SN_ext_key_usage = 'extendedKeyUsage'; {Do not localize} - {$EXTERNALSYM SN_givenName} - SN_givenName = 'G'; {Do not localize} - {$EXTERNALSYM SN_id_kp} - SN_id_kp = 'id-kp'; {Do not localize} - {$EXTERNALSYM SN_id_pkix} - SN_id_pkix = 'PKIX'; {Do not localize} - {$EXTERNALSYM SN_id_qt_cps} - SN_id_qt_cps = 'id-qt-cps'; {Do not localize} - {$EXTERNALSYM SN_id_qt_unotice} - SN_id_qt_unotice = 'id-qt-unotice'; {Do not localize} - {$EXTERNALSYM SN_idea_cbc} - SN_idea_cbc = 'IDEA-CBC'; {Do not localize} - {$EXTERNALSYM SN_idea_cfb64} - SN_idea_cfb64 = 'IDEA-CFB'; {Do not localize} - {$EXTERNALSYM SN_idea_ecb} - SN_idea_ecb = 'IDEA-ECB'; {Do not localize} - {$EXTERNALSYM SN_idea_ofb64} - SN_idea_ofb64 = 'IDEA-OFB'; {Do not localize} - {$EXTERNALSYM SN_identified_organization} - SN_identified_organization = 'identified-organization'; {Do not localize} - {$EXTERNALSYM SN_initials} - SN_initials = 'I'; {Do not localize} - {$EXTERNALSYM SN_invalidity_date} - SN_invalidity_date = 'invalidityDate'; {Do not localize} - {$EXTERNALSYM SN_iso} - SN_iso = 'ISO'; {Do not localize} - {$EXTERNALSYM SN_issuer_alt_name} - SN_issuer_alt_name = 'issuerAltName'; {Do not localize} - {$EXTERNALSYM SN_itu_t} - SN_itu_t = 'ITU-T'; {Do not localize} - {$EXTERNALSYM SN_joint_iso_itu_t} - SN_joint_iso_itu_t = 'JOINT-ISO-ITU-T'; {Do not localize} - {$EXTERNALSYM SN_key_usage} - SN_key_usage = 'keyUsage'; {Do not localize} - {$EXTERNALSYM SN_ld_ce} - SN_ld_ce = 'ld-ce'; {Do not localize} - {$EXTERNALSYM SN_localityName} - SN_localityName = 'L'; {Do not localize} - {$EXTERNALSYM SN_md2} - SN_md2 = 'MD2'; {Do not localize} - {$EXTERNALSYM SN_md2WithRSAEncryption} - SN_md2WithRSAEncryption = 'RSA-MD2'; {Do not localize} - {$EXTERNALSYM SN_md5} - SN_md5 = 'MD5'; {Do not localize} - {$EXTERNALSYM SN_md5WithRSA} - SN_md5WithRSA = 'RSA-NP-MD5'; {Do not localize} - {$EXTERNALSYM SN_md5WithRSAEncryption} - SN_md5WithRSAEncryption = 'RSA-MD5'; {Do not localize} - {$EXTERNALSYM SN_md5_sha1} - SN_md5_sha1 = 'MD5-SHA1'; {Do not localize} - {$EXTERNALSYM SN_mdc2} - SN_mdc2 = 'MDC2'; {Do not localize} - {$EXTERNALSYM SN_mdc2WithRSA} - SN_mdc2WithRSA = 'RSA-MDC2'; {Do not localize} - {$EXTERNALSYM SN_member_body} - SN_member_body ='member-body'; {Do not localize} - {$EXTERNALSYM SN_ms_code_com} - SN_ms_code_com = 'msCodeCom'; {Do not localize} - {$EXTERNALSYM SN_ms_code_ind} - SN_ms_code_ind = 'msCodeInd'; {Do not localize} - {$EXTERNALSYM SN_ms_ctl_sign} - SN_ms_ctl_sign = 'msCTLSign'; {Do not localize} - {$EXTERNALSYM SN_ms_efs} - SN_ms_efs = 'msEFS'; {Do not localize} - {$EXTERNALSYM SN_ms_sgc} - SN_ms_sgc = 'msSGC'; {Do not localize} - {$EXTERNALSYM SN_netscape} - SN_netscape = 'Netscape'; {Do not localize} - {$EXTERNALSYM SN_netscape_base_url} - SN_netscape_base_url = 'nsBaseUrl'; {Do not localize} - {$EXTERNALSYM SN_netscape_ca_policy_url} - SN_netscape_ca_policy_url = 'nsCaPolicyUrl'; {Do not localize} - {$EXTERNALSYM SN_netscape_ca_revocation_url} - SN_netscape_ca_revocation_url = 'nsCaRevocationUrl'; {Do not localize} - {$EXTERNALSYM SN_netscape_cert_extension} - SN_netscape_cert_extension = 'nsCertExt'; {Do not localize} - {$EXTERNALSYM SN_netscape_cert_sequence} - SN_netscape_cert_sequence = 'nsCertSequence'; {Do not localize} - {$EXTERNALSYM SN_netscape_cert_type} - SN_netscape_cert_type = 'nsCertType'; {Do not localize} - {$EXTERNALSYM SN_netscape_comment} - SN_netscape_comment = 'nsComment'; {Do not localize} - {$EXTERNALSYM SN_netscape_data_type} - SN_netscape_data_type = 'nsDataType'; {Do not localize} - {$EXTERNALSYM SN_netscape_renewal_url} - SN_netscape_renewal_url = 'nsRenewalUrl'; {Do not localize} - {$EXTERNALSYM SN_netscape_revocation_url} - SN_netscape_revocation_url = 'nsRevocationUrl'; {Do not localize} - {$EXTERNALSYM SN_netscape_ssl_server_name} - SN_netscape_ssl_server_name = 'nsSslServerName'; {Do not localize} - {$EXTERNALSYM SN_ns_sgc} - SN_ns_sgc = 'nsSGC'; {Do not localize} - {$EXTERNALSYM SN_organizationName} - SN_organizationName = 'O'; {Do not localize} - {$EXTERNALSYM SN_organizationalUnitName} - SN_organizationalUnitName = 'OU'; {Do not localize} - {$EXTERNALSYM SN_pkcs9_emailAddress} - SN_pkcs9_emailAddress = 'Email'; {Do not localize} - {$EXTERNALSYM SN_private_key_usage_period} - SN_private_key_usage_period = 'privateKeyUsagePeriod'; {Do not localize} - {$EXTERNALSYM SN_rc2_40_cbc} - SN_rc2_40_cbc = 'RC2-40-CBC'; {Do not localize} - {$EXTERNALSYM SN_rc2_64_cbc} - SN_rc2_64_cbc = 'RC2-64-CBC'; {Do not localize} - {$EXTERNALSYM SN_rc2_cbc} - SN_rc2_cbc = 'RC2-CBC'; {Do not localize} - {$EXTERNALSYM SN_rc2_cfb64} - SN_rc2_cfb64 = 'RC2-CFB'; {Do not localize} - {$EXTERNALSYM SN_rc2_ecb} - SN_rc2_ecb = 'RC2-ECB'; {Do not localize} - {$EXTERNALSYM SN_rc2_ofb64} - SN_rc2_ofb64 = 'RC2-OFB'; {Do not localize} - {$EXTERNALSYM SN_rc4} - SN_rc4 = 'RC4'; {Do not localize} - {$EXTERNALSYM SN_rc4_40} - SN_rc4_40 = 'RC4-40'; {Do not localize} - {$EXTERNALSYM SN_rc5_cbc} - SN_rc5_cbc = 'RC5-CBC'; {Do not localize} - {$EXTERNALSYM SN_rc5_cfb64} - SN_rc5_cfb64 = 'RC5-CFB'; {Do not localize} - {$EXTERNALSYM SN_rc5_ecb} - SN_rc5_ecb = 'RC5-ECB'; {Do not localize} - {$EXTERNALSYM SN_rc5_ofb64} - SN_rc5_ofb64 = 'RC5-OFB'; {Do not localize} - {$EXTERNALSYM SN_ripemd160} - SN_ripemd160 = 'RIPEMD160'; {Do not localize} - {$EXTERNALSYM SN_ripemd160WithRSA} - SN_ripemd160WithRSA = 'RSA-RIPEMD160'; {Do not localize} - {$EXTERNALSYM SN_rle_compression} - SN_rle_compression = 'RLE'; {Do not localize} - {$EXTERNALSYM SN_rsa} - SN_rsa = 'RSA'; {Do not localize} - {$EXTERNALSYM SN_serialNumber} - SN_serialNumber = 'SN'; {Do not localize} - {$EXTERNALSYM SN_server_auth} - SN_server_auth = 'serverAuth'; {Do not localize} - {$EXTERNALSYM SN_sha} - SN_sha = 'SHA'; {Do not localize} - {$EXTERNALSYM SN_sha1} - SN_sha1 = 'SHA1'; {Do not localize} - {$EXTERNALSYM SN_sha1WithRSA} - SN_sha1WithRSA = 'RSA-SHA1-2'; {Do not localize} - {$EXTERNALSYM SN_sha1WithRSAEncryption} - SN_sha1WithRSAEncryption = 'RSA-SHA1'; {Do not localize} - {$EXTERNALSYM SN_shaWithRSAEncryption} - SN_shaWithRSAEncryption = 'RSA-SHA'; {Do not localize} - {$EXTERNALSYM SN_stateOrProvinceName} - SN_stateOrProvinceName = 'ST'; {Do not localize} - {$EXTERNALSYM SN_subject_alt_name} - SN_subject_alt_name = 'subjectAltName'; {Do not localize} - {$EXTERNALSYM SN_subject_key_identifier} - SN_subject_key_identifier = 'subjectKeyIdentifier'; {Do not localize} - {$EXTERNALSYM SN_surname} - SN_surname = 'S'; {Do not localize} - {$EXTERNALSYM SN_sxnet} - SN_sxnet = 'SXNetID'; {Do not localize} - {$EXTERNALSYM SN_time_stamp} - SN_time_stamp = 'timeStamping'; {Do not localize} - {$EXTERNALSYM SN_title} - SN_title = 'T'; {Do not localize} - {$EXTERNALSYM SN_undef} - SN_undef = 'UNDEF'; {Do not localize} - {$EXTERNALSYM SN_uniqueIdentifier} - SN_uniqueIdentifier = 'UID'; {Do not localize} - {$EXTERNALSYM SN_zlib_compression} - SN_zlib_compression = 'ZLIB'; {Do not localize} - {$EXTERNALSYM OCSP_DEFAULT_NONCE_LENGTH} - OCSP_DEFAULT_NONCE_LENGTH = 16; - {$EXTERNALSYM OCSP_NOCERTS} - OCSP_NOCERTS = $1; - {$EXTERNALSYM OCSP_NOINTERN} - OCSP_NOINTERN = $2; - {$EXTERNALSYM OCSP_NOSIGS} - OCSP_NOSIGS = $4; - {$EXTERNALSYM OCSP_NOCHAIN} - OCSP_NOCHAIN = $8; - {$EXTERNALSYM OCSP_NOVERIFY} - OCSP_NOVERIFY = $10; - {$EXTERNALSYM OCSP_NOEXPLICIT} - OCSP_NOEXPLICIT = $20; - {$EXTERNALSYM OCSP_NOCASIGN} - OCSP_NOCASIGN = $40; - {$EXTERNALSYM OCSP_NODELEGATED} - OCSP_NODELEGATED = $80; - {$EXTERNALSYM OCSP_NOCHECKS} - OCSP_NOCHECKS = $100; - {$EXTERNALSYM OCSP_TRUSTOTHER} - OCSP_TRUSTOTHER = $200; - {$EXTERNALSYM OCSP_RESPID_KEY} - OCSP_RESPID_KEY = $400; - {$EXTERNALSYM OCSP_NOTIME} - OCSP_NOTIME = $800; - {$EXTERNALSYM OCSP_RESPONSE_STATUS_SUCCESSFUL} - OCSP_RESPONSE_STATUS_SUCCESSFUL = 0; - {$EXTERNALSYM OCSP_RESPONSE_STATUS_MALFORMEDREQUEST} - OCSP_RESPONSE_STATUS_MALFORMEDREQUEST = 1; - {$EXTERNALSYM OCSP_RESPONSE_STATUS_INTERNALERROR} - OCSP_RESPONSE_STATUS_INTERNALERROR = 2; - {$EXTERNALSYM OCSP_RESPONSE_STATUS_TRYLATER} - OCSP_RESPONSE_STATUS_TRYLATER = 3; - {$EXTERNALSYM OCSP_RESPONSE_STATUS_SIGREQUIRED} - OCSP_RESPONSE_STATUS_SIGREQUIRED = 5; - {$EXTERNALSYM OCSP_RESPONSE_STATUS_UNAUTHORIZED} - OCSP_RESPONSE_STATUS_UNAUTHORIZED = 6; - {$EXTERNALSYM OCSP_REVOKED_STATUS_NOSTATUS} - OCSP_REVOKED_STATUS_NOSTATUS = -1; - {$EXTERNALSYM OCSP_REVOKED_STATUS_UNSPECIFIED} - OCSP_REVOKED_STATUS_UNSPECIFIED = 0; - {$EXTERNALSYM OCSP_REVOKED_STATUS_KEYCOMPROMISE} - OCSP_REVOKED_STATUS_KEYCOMPROMISE = 1; - {$EXTERNALSYM OCSP_REVOKED_STATUS_CACOMPROMISE} - OCSP_REVOKED_STATUS_CACOMPROMISE = 2; - {$EXTERNALSYM OCSP_REVOKED_STATUS_AFFILIATIONCHANGED} - OCSP_REVOKED_STATUS_AFFILIATIONCHANGED = 3; - {$EXTERNALSYM OCSP_REVOKED_STATUS_SUPERSEDED} - OCSP_REVOKED_STATUS_SUPERSEDED = 4; - {$EXTERNALSYM OCSP_REVOKED_STATUS_CESSATIONOFOPERATION} - OCSP_REVOKED_STATUS_CESSATIONOFOPERATION = 5; - {$EXTERNALSYM OCSP_REVOKED_STATUS_CERTIFICATEHOLD} - OCSP_REVOKED_STATUS_CERTIFICATEHOLD = 6; - {$EXTERNALSYM OCSP_REVOKED_STATUS_REMOVEFROMCRL} - OCSP_REVOKED_STATUS_REMOVEFROMCRL = 8; - {$EXTERNALSYM V_OCSP_CERTSTATUS_GOOD} - V_OCSP_CERTSTATUS_GOOD = 0; - {$EXTERNALSYM V_OCSP_CERTSTATUS_REVOKED} - V_OCSP_CERTSTATUS_REVOKED = 1; - {$EXTERNALSYM V_OCSP_CERTSTATUS_UNKNOWN} - V_OCSP_CERTSTATUS_UNKNOWN = 2; - {$EXTERNALSYM OCSP_F_ASN1_STRING_ENCODE} - OCSP_F_ASN1_STRING_ENCODE = 100; - {$EXTERNALSYM OCSP_F_D2I_OCSP_NONCE} - OCSP_F_D2I_OCSP_NONCE = 102; - {$EXTERNALSYM OCSP_F_OCSP_BASIC_ADD1_STATUS} - OCSP_F_OCSP_BASIC_ADD1_STATUS = 103; - {$EXTERNALSYM OCSP_F_OCSP_BASIC_SIGN} - OCSP_F_OCSP_BASIC_SIGN = 104; - {$EXTERNALSYM OCSP_F_OCSP_BASIC_VERIFY} - OCSP_F_OCSP_BASIC_VERIFY = 105; - {$EXTERNALSYM OCSP_F_OCSP_CERT_ID_NEW} - OCSP_F_OCSP_CERT_ID_NEW = 101; - {$EXTERNALSYM OCSP_F_OCSP_CHECK_DELEGATED} - OCSP_F_OCSP_CHECK_DELEGATED = 106; - {$EXTERNALSYM OCSP_F_OCSP_CHECK_IDS} - OCSP_F_OCSP_CHECK_IDS = 107; - {$EXTERNALSYM OCSP_F_OCSP_CHECK_ISSUER} - OCSP_F_OCSP_CHECK_ISSUER = 108; - {$EXTERNALSYM OCSP_F_OCSP_CHECK_VALIDITY} - OCSP_F_OCSP_CHECK_VALIDITY = 115; - {$EXTERNALSYM OCSP_F_OCSP_MATCH_ISSUERID} - OCSP_F_OCSP_MATCH_ISSUERID = 109; - {$EXTERNALSYM OCSP_F_OCSP_PARSE_URL} - OCSP_F_OCSP_PARSE_URL = 114; - {$EXTERNALSYM OCSP_F_OCSP_REQUEST_SIGN} - OCSP_F_OCSP_REQUEST_SIGN = 110; - {$EXTERNALSYM OCSP_F_OCSP_REQUEST_VERIFY} - OCSP_F_OCSP_REQUEST_VERIFY = 116; - {$EXTERNALSYM OCSP_F_OCSP_RESPONSE_GET1_BASIC} - OCSP_F_OCSP_RESPONSE_GET1_BASIC = 111; - {$EXTERNALSYM OCSP_F_OCSP_SENDREQ_BIO} - OCSP_F_OCSP_SENDREQ_BIO = 112; - {$EXTERNALSYM OCSP_F_PARSE_HTTP_LINE1} - OCSP_F_PARSE_HTTP_LINE1 = 117; - {$EXTERNALSYM OCSP_F_REQUEST_VERIFY} - OCSP_F_REQUEST_VERIFY = 113; -//* Reason codes. */ - {$EXTERNALSYM OCSP_R_BAD_DATA} - OCSP_R_BAD_DATA = 100; - {$EXTERNALSYM OCSP_R_CERTIFICATE_VERIFY_ERROR} - OCSP_R_CERTIFICATE_VERIFY_ERROR = 101; - {$EXTERNALSYM OCSP_R_DIGEST_ERR} - OCSP_R_DIGEST_ERR = 102; - {$EXTERNALSYM OCSP_R_ERROR_IN_NEXTUPDATE_FIELD} - OCSP_R_ERROR_IN_NEXTUPDATE_FIELD = 122; - {$EXTERNALSYM OCSP_R_ERROR_IN_THISUPDATE_FIELD} - OCSP_R_ERROR_IN_THISUPDATE_FIELD = 123; - {$EXTERNALSYM OCSP_R_ERROR_PARSING_URL} - OCSP_R_ERROR_PARSING_URL = 121; - {$EXTERNALSYM OCSP_R_MISSING_OCSPSIGNING_USAGE} - OCSP_R_MISSING_OCSPSIGNING_USAGE = 103; - {$EXTERNALSYM OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE} - OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE = 124; - {$EXTERNALSYM OCSP_R_NOT_BASIC_RESPONSE} - OCSP_R_NOT_BASIC_RESPONSE = 104; - {$EXTERNALSYM OCSP_R_NO_CERTIFICATES_IN_CHAIN} - OCSP_R_NO_CERTIFICATES_IN_CHAIN = 105; - {$EXTERNALSYM OCSP_R_NO_CONTENT} - OCSP_R_NO_CONTENT = 106; - {$EXTERNALSYM OCSP_R_NO_PUBLIC_KEY} - OCSP_R_NO_PUBLIC_KEY = 107; - {$EXTERNALSYM OCSP_R_NO_RESPONSE_DATA} - OCSP_R_NO_RESPONSE_DATA = 108; - {$EXTERNALSYM OCSP_R_NO_REVOKED_TIME} - OCSP_R_NO_REVOKED_TIME = 109; - {$EXTERNALSYM OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE} - OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE = 110; - {$EXTERNALSYM OCSP_R_REQUEST_NOT_SIGNED} - OCSP_R_REQUEST_NOT_SIGNED = 128; - {$EXTERNALSYM OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA} - OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA = 111; - {$EXTERNALSYM OCSP_R_ROOT_CA_NOT_TRUSTED} - OCSP_R_ROOT_CA_NOT_TRUSTED = 112; - {$EXTERNALSYM OCSP_R_SERVER_READ_ERROR} - OCSP_R_SERVER_READ_ERROR = 113; - {$EXTERNALSYM OCSP_R_SERVER_RESPONSE_ERROR} - OCSP_R_SERVER_RESPONSE_ERROR = 114; - {$EXTERNALSYM OCSP_R_SERVER_RESPONSE_PARSE_ERROR} - OCSP_R_SERVER_RESPONSE_PARSE_ERROR = 115; - {$EXTERNALSYM OCSP_R_SERVER_WRITE_ERROR} - OCSP_R_SERVER_WRITE_ERROR = 116; - {$EXTERNALSYM OCSP_R_SIGNATURE_FAILURE} - OCSP_R_SIGNATURE_FAILURE = 117; - {$EXTERNALSYM OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND} - OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND = 118; - {$EXTERNALSYM OCSP_R_STATUS_EXPIRED} - OCSP_R_STATUS_EXPIRED = 125; - {$EXTERNALSYM OCSP_R_STATUS_NOT_YET_VALID} - OCSP_R_STATUS_NOT_YET_VALID = 126; - {$EXTERNALSYM OCSP_R_STATUS_TOO_OLD} - OCSP_R_STATUS_TOO_OLD = 127; - {$EXTERNALSYM OCSP_R_UNKNOWN_MESSAGE_DIGEST} - OCSP_R_UNKNOWN_MESSAGE_DIGEST = 119; - {$EXTERNALSYM OCSP_R_UNKNOWN_NID} - OCSP_R_UNKNOWN_NID = 120; - {$EXTERNALSYM OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE} - OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE = 129; - {$EXTERNALSYM SSL_ST_CONNECT} - SSL_ST_CONNECT = $1000; - {$EXTERNALSYM SSL_ST_ACCEPT} - SSL_ST_ACCEPT = $2000; - {$EXTERNALSYM SSL_ST_MASK} - SSL_ST_MASK = $0FFF; - {$EXTERNALSYM SSL_ST_INIT} - SSL_ST_INIT = SSL_ST_CONNECT or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL_ST_BEFORE} - SSL_ST_BEFORE = $4000; - {$EXTERNALSYM SSL_ST_OK} - SSL_ST_OK = $03; - {$EXTERNALSYM SSL_ST_RENEGOTIATE} - SSL_ST_RENEGOTIATE = $04 or SSL_ST_INIT; - {$EXTERNALSYM SSL_CB_LOOP} - SSL_CB_LOOP = $01; - {$EXTERNALSYM SSL_CB_EXIT} - SSL_CB_EXIT = $02; - {$EXTERNALSYM SSL_CB_READ} - SSL_CB_READ = $04; - {$EXTERNALSYM SSL_CB_WRITE} - SSL_CB_WRITE = $08; - {$EXTERNALSYM SSL_CB_ALERT} - SSL_CB_ALERT = $4000; - - {$EXTERNALSYM SSL_CB_READ_ALERT} - SSL_CB_READ_ALERT = SSL_CB_ALERT or SSL_CB_READ; - {$EXTERNALSYM SSL_CB_WRITE_ALERT} - SSL_CB_WRITE_ALERT = SSL_CB_ALERT or SSL_CB_WRITE; - {$EXTERNALSYM SSL_CB_ACCEPT_LOOP} - SSL_CB_ACCEPT_LOOP = SSL_ST_ACCEPT or SSL_CB_LOOP; - {$EXTERNALSYM SSL_CB_ACCEPT_EXIT} - SSL_CB_ACCEPT_EXIT = SSL_ST_ACCEPT or SSL_CB_EXIT; - {$EXTERNALSYM SSL_CB_CONNECT_LOOP} - SSL_CB_CONNECT_LOOP = SSL_ST_CONNECT or SSL_CB_LOOP; - {$EXTERNALSYM SSL_CB_CONNECT_EXIT} - SSL_CB_CONNECT_EXIT = SSL_ST_CONNECT or SSL_CB_EXIT; - {$EXTERNALSYM SSL_CB_HANDSHAKE_START} - SSL_CB_HANDSHAKE_START = $10; - {$EXTERNALSYM SSL_CB_HANDSHAKE_DONE} - SSL_CB_HANDSHAKE_DONE = $20; - {$EXTERNALSYM SSL_ST_READ_BODY} - SSL_ST_READ_BODY = $F1; - {$EXTERNALSYM SSL_ST_READ_DONE} - SSL_ST_READ_DONE = $F2; - {$EXTERNALSYM SSL_ST_READ_HEADER} - SSL_ST_READ_HEADER = $F0; - - {$EXTERNALSYM SSL23_ST_CR_SRVR_HELLO_A} - SSL23_ST_CR_SRVR_HELLO_A = $220 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL23_ST_CR_SRVR_HELLO_B} - SSL23_ST_CR_SRVR_HELLO_B = $221 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL23_ST_CW_CLNT_HELLO_A} - SSL23_ST_CW_CLNT_HELLO_A = $210 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL23_ST_CW_CLNT_HELLO_B} - SSL23_ST_CW_CLNT_HELLO_B = $211 or SSL_ST_CONNECT; - - {$EXTERNALSYM SSL23_ST_SR_CLNT_HELLO_A} - SSL23_ST_SR_CLNT_HELLO_A = $210 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL23_ST_SR_CLNT_HELLO_B} - SSL23_ST_SR_CLNT_HELLO_B = $211 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_AT_MD5_WITH_RSA_ENCRYPTION} - SSL2_AT_MD5_WITH_RSA_ENCRYPTION = $01; - {$EXTERNALSYM SSL2_CF_5_BYTE_ENC} - SSL2_CF_5_BYTE_ENC = $01; - {$EXTERNALSYM SSL2_CF_8_BYTE_ENC} - SSL2_CF_8_BYTE_ENC = $02; - {$EXTERNALSYM SSL2_CHALLENGE_LENGTH} - SSL2_CHALLENGE_LENGTH = 16; - {$EXTERNALSYM SSL2_CK_DES_192_EDE3_CBC_WITH_MD5} - SSL2_CK_DES_192_EDE3_CBC_WITH_MD5 = $020700c0; - {$EXTERNALSYM SSL2_CK_DES_192_EDE3_CBC_WITH_SHA} - SSL2_CK_DES_192_EDE3_CBC_WITH_SHA = $020701c0; - {$EXTERNALSYM SSL2_CK_DES_64_CBC_WITH_MD5} - SSL2_CK_DES_64_CBC_WITH_MD5 = $02060040; - {$EXTERNALSYM SSL2_CK_DES_64_CBC_WITH_SHA} - SSL2_CK_DES_64_CBC_WITH_SHA = $02060140; - {$EXTERNALSYM SSL2_CK_DES_64_CFB64_WITH_MD5_1} - SSL2_CK_DES_64_CFB64_WITH_MD5_1 = $02ff0800; - {$EXTERNALSYM SSL2_CK_IDEA_128_CBC_WITH_MD5} - SSL2_CK_IDEA_128_CBC_WITH_MD5 = $02050080; - {$EXTERNALSYM SSL2_CK_NULL} - SSL2_CK_NULL = $02ff0810; - {$EXTERNALSYM SSL2_CK_NULL_WITH_MD5} - SSL2_CK_NULL_WITH_MD5 = $02000000; - {$EXTERNALSYM SSL2_CK_RC2_128_CBC_EXPORT40_WITH_MD5} - SSL2_CK_RC2_128_CBC_EXPORT40_WITH_MD5 = $02040080; - {$EXTERNALSYM SSL2_CK_RC2_128_CBC_WITH_MD5} - SSL2_CK_RC2_128_CBC_WITH_MD5 = $02030080; - {$EXTERNALSYM SSL2_CK_RC4_128_EXPORT40_WITH_MD5} - SSL2_CK_RC4_128_EXPORT40_WITH_MD5 = $02020080; - {$EXTERNALSYM SSL2_CK_RC4_128_WITH_MD5} - SSL2_CK_RC4_128_WITH_MD5 = $02010080; - {$EXTERNALSYM SSL2_CK_RC4_64_WITH_MD5} - SSL2_CK_RC4_64_WITH_MD5 = $02080080; - {$EXTERNALSYM SSL2_CONNECTION_ID_LENGTH} - SSL2_CONNECTION_ID_LENGTH = 16; - {$EXTERNALSYM SSL2_CT_X509_CERTIFICATE} - SSL2_CT_X509_CERTIFICATE = $01; - {$EXTERNALSYM SSL2_MAX_CERT_CHALLENGE_LENGTH} - SSL2_MAX_CERT_CHALLENGE_LENGTH = 32; - {$EXTERNALSYM SSL2_MAX_CHALLENGE_LENGTH} - SSL2_MAX_CHALLENGE_LENGTH = 32; - {$EXTERNALSYM SSL2_MAX_CONNECTION_ID_LENGTH} - SSL2_MAX_CONNECTION_ID_LENGTH = 16; - {$EXTERNALSYM SSL2_MAX_KEY_MATERIAL_LENGTH} - SSL2_MAX_KEY_MATERIAL_LENGTH = 24; - {$EXTERNALSYM SSL2_MAX_MASTER_KEY_LENGTH_IN_BITS} - SSL2_MAX_MASTER_KEY_LENGTH_IN_BITS = 256; - {$EXTERNALSYM SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER} - SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER = 16383; - {$EXTERNALSYM SSL2_MAX_SSL_SESSION_ID_LENGTH} - SSL2_MAX_SSL_SESSION_ID_LENGTH = 32; - {$EXTERNALSYM SSL2_MIN_CERT_CHALLENGE_LENGTH} - SSL2_MIN_CERT_CHALLENGE_LENGTH = 16; - {$EXTERNALSYM SSL2_MIN_CHALLENGE_LENGTH} - SSL2_MIN_CHALLENGE_LENGTH = 16; - {$EXTERNALSYM SSL2_MT_CLIENT_CERTIFICATE} - SSL2_MT_CLIENT_CERTIFICATE = 8; - {$EXTERNALSYM SSL2_MT_CLIENT_FINISHED} - SSL2_MT_CLIENT_FINISHED = 3; - {$EXTERNALSYM SSL2_MT_CLIENT_HELLO} - SSL2_MT_CLIENT_HELLO = 1; - {$EXTERNALSYM SSL2_MT_CLIENT_MASTER_KEY} - SSL2_MT_CLIENT_MASTER_KEY = 2; - {$EXTERNALSYM SSL2_MT_ERROR} - SSL2_MT_ERROR = 0; - {$EXTERNALSYM SSL2_MT_REQUEST_CERTIFICATE} - SSL2_MT_REQUEST_CERTIFICATE = 7; - {$EXTERNALSYM SSL2_MT_SERVER_FINISHED} - SSL2_MT_SERVER_FINISHED = 6; - {$EXTERNALSYM SSL2_MT_SERVER_HELLO} - SSL2_MT_SERVER_HELLO = 4; - {$EXTERNALSYM SSL2_MT_SERVER_VERIFY} - SSL2_MT_SERVER_VERIFY = 5; - {$EXTERNALSYM SSL2_PE_BAD_CERTIFICATE} - SSL2_PE_BAD_CERTIFICATE = $0004; - {$EXTERNALSYM SSL2_PE_NO_CERTIFICATE} - SSL2_PE_NO_CERTIFICATE = $0002; - {$EXTERNALSYM SSL2_PE_NO_CIPHER} - SSL2_PE_NO_CIPHER = $0001; - {$EXTERNALSYM SSL2_PE_UNDEFINED_ERROR} - SSL2_PE_UNDEFINED_ERROR = $0000; - {$EXTERNALSYM SSL2_PE_UNSUPPORTED_CERTIFICATE_TYPE} - SSL2_PE_UNSUPPORTED_CERTIFICATE_TYPE = $0006; - {$EXTERNALSYM SSL2_SSL_SESSION_ID_LENGTH} - SSL2_SSL_SESSION_ID_LENGTH = 16; - {$EXTERNALSYM SSL2_ST_CLIENT_START_ENCRYPTION} - SSL2_ST_CLIENT_START_ENCRYPTION = $80 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_GET_CLIENT_FINISHED_A} - SSL2_ST_GET_CLIENT_FINISHED_A = $50 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_GET_CLIENT_FINISHED_B} - SSL2_ST_GET_CLIENT_FINISHED_B = $51 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_GET_CLIENT_HELLO_A} - SSL2_ST_GET_CLIENT_HELLO_A = $10 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_GET_CLIENT_HELLO_B} - SSL2_ST_GET_CLIENT_HELLO_B = $11 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_GET_CLIENT_HELLO_C} - SSL2_ST_GET_CLIENT_HELLO_C = $12 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_GET_CLIENT_MASTER_KEY_A} - SSL2_ST_GET_CLIENT_MASTER_KEY_A = $30 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_GET_CLIENT_MASTER_KEY_B} - SSL2_ST_GET_CLIENT_MASTER_KEY_B = $31 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_GET_SERVER_FINISHED_A} - SSL2_ST_GET_SERVER_FINISHED_A = $70 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_GET_SERVER_FINISHED_B} - SSL2_ST_GET_SERVER_FINISHED_B = $71 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_GET_SERVER_HELLO_A} - SSL2_ST_GET_SERVER_HELLO_A = $20 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_GET_SERVER_HELLO_B} - SSL2_ST_GET_SERVER_HELLO_B = $21 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_GET_SERVER_VERIFY_A} - SSL2_ST_GET_SERVER_VERIFY_A = $60 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_GET_SERVER_VERIFY_B} - SSL2_ST_GET_SERVER_VERIFY_B = $61 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_SEND_CLIENT_CERTIFICATE_A} - SSL2_ST_SEND_CLIENT_CERTIFICATE_A = $50 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_SEND_CLIENT_CERTIFICATE_B} - SSL2_ST_SEND_CLIENT_CERTIFICATE_B = $51 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_SEND_CLIENT_CERTIFICATE_C} - SSL2_ST_SEND_CLIENT_CERTIFICATE_C = $52 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_SEND_CLIENT_CERTIFICATE_D} - SSL2_ST_SEND_CLIENT_CERTIFICATE_D = $53 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_SEND_CLIENT_FINISHED_A} - SSL2_ST_SEND_CLIENT_FINISHED_A = $40 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_SEND_CLIENT_FINISHED_B} - SSL2_ST_SEND_CLIENT_FINISHED_B = $41 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_SEND_CLIENT_HELLO_A} - SSL2_ST_SEND_CLIENT_HELLO_A = $10 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_SEND_CLIENT_HELLO_B} - SSL2_ST_SEND_CLIENT_HELLO_B = $11 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_SEND_CLIENT_MASTER_KEY_A} - SSL2_ST_SEND_CLIENT_MASTER_KEY_A = $30 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_SEND_CLIENT_MASTER_KEY_B} - SSL2_ST_SEND_CLIENT_MASTER_KEY_B = $31 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_SEND_REQUEST_CERTIFICATE_A} - SSL2_ST_SEND_REQUEST_CERTIFICATE_A = $70 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_SEND_REQUEST_CERTIFICATE_B} - SSL2_ST_SEND_REQUEST_CERTIFICATE_B = $71 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_SEND_REQUEST_CERTIFICATE_C} - SSL2_ST_SEND_REQUEST_CERTIFICATE_C = $72 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_SEND_REQUEST_CERTIFICATE_D} - SSL2_ST_SEND_REQUEST_CERTIFICATE_D = $73 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_SEND_SERVER_FINISHED_A} - SSL2_ST_SEND_SERVER_FINISHED_A = $60 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_SEND_SERVER_FINISHED_B} - SSL2_ST_SEND_SERVER_FINISHED_B = $61 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_SEND_SERVER_HELLO_A} - SSL2_ST_SEND_SERVER_HELLO_A = $20 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_SEND_SERVER_HELLO_B} - SSL2_ST_SEND_SERVER_HELLO_B = $21 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_SEND_SERVER_VERIFY_A} - SSL2_ST_SEND_SERVER_VERIFY_A = $40 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_SEND_SERVER_VERIFY_B} - SSL2_ST_SEND_SERVER_VERIFY_B = $41 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_SEND_SERVER_VERIFY_C} - SSL2_ST_SEND_SERVER_VERIFY_C = $42 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_SERVER_START_ENCRYPTION} - SSL2_ST_SERVER_START_ENCRYPTION = $80 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_ST_X509_GET_CLIENT_CERTIFICATE} - SSL2_ST_X509_GET_CLIENT_CERTIFICATE = $90 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL2_ST_X509_GET_SERVER_CERTIFICATE} - SSL2_ST_X509_GET_SERVER_CERTIFICATE = $90 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL2_TXT_DES_192_EDE3_CBC_WITH_MD5} - SSL2_TXT_DES_192_EDE3_CBC_WITH_MD5 = 'DES-CBC3-MD5'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_DES_192_EDE3_CBC_WITH_SHA} - SSL2_TXT_DES_192_EDE3_CBC_WITH_SHA = 'DES-CBC3-SHA'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_DES_64_CBC_WITH_MD5} - SSL2_TXT_DES_64_CBC_WITH_MD5 = 'DES-CBC-MD5'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_DES_64_CBC_WITH_SHA} - SSL2_TXT_DES_64_CBC_WITH_SHA = 'DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_DES_64_CFB64_WITH_MD5_1} - SSL2_TXT_DES_64_CFB64_WITH_MD5_1 = 'DES-CFB-M1'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_IDEA_128_CBC_WITH_MD5} - SSL2_TXT_IDEA_128_CBC_WITH_MD5 = 'IDEA-CBC-MD5'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_NULL} - SSL2_TXT_NULL = 'NULL'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_NULL_WITH_MD5} - SSL2_TXT_NULL_WITH_MD5 = 'NULL-MD5'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_RC2_128_CBC_EXPORT40_WITH_MD5} - SSL2_TXT_RC2_128_CBC_EXPORT40_WITH_MD5 = 'EXP-RC2-CBC-MD5'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_RC2_128_CBC_WITH_MD5} - SSL2_TXT_RC2_128_CBC_WITH_MD5 = 'RC2-CBC-MD5'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_RC4_128_EXPORT40_WITH_MD5} - SSL2_TXT_RC4_128_EXPORT40_WITH_MD5 = 'EXP-RC4-MD5'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_RC4_128_WITH_MD5} - SSL2_TXT_RC4_128_WITH_MD5 = 'RC4-MD5'; {Do not localize} - {$EXTERNALSYM SSL2_TXT_RC4_64_WITH_MD5} - SSL2_TXT_RC4_64_WITH_MD5 = 'RC4-64-MD5'; {Do not localize} - {$EXTERNALSYM SSL2_VERSION} - SSL2_VERSION = $0002; - {$EXTERNALSYM SSL2_VERSION_MAJOR} - SSL2_VERSION_MAJOR = $00; - {$EXTERNALSYM SSL2_VERSION_MINOR} - SSL2_VERSION_MINOR = $02; - {$EXTERNALSYM SSL3_AD_BAD_CERTIFICATE} - SSL3_AD_BAD_CERTIFICATE = 42; - {$EXTERNALSYM SSL3_AD_BAD_RECORD_MAC} - SSL3_AD_BAD_RECORD_MAC = 20; - {$EXTERNALSYM SSL3_AD_CERTIFICATE_EXPIRED} - SSL3_AD_CERTIFICATE_EXPIRED = 45; - {$EXTERNALSYM SSL3_AD_CERTIFICATE_REVOKED} - SSL3_AD_CERTIFICATE_REVOKED = 44; - {$EXTERNALSYM SSL3_AD_CERTIFICATE_UNKNOWN} - SSL3_AD_CERTIFICATE_UNKNOWN = 46; - {$EXTERNALSYM SSL3_AD_CLOSE_NOTIFY} - SSL3_AD_CLOSE_NOTIFY = 0; - {$EXTERNALSYM SSL3_AD_DECOMPRESSION_FAILURE} - SSL3_AD_DECOMPRESSION_FAILURE = 30; - {$EXTERNALSYM SSL3_AD_HANDSHAKE_FAILURE} - SSL3_AD_HANDSHAKE_FAILURE = 40; - {$EXTERNALSYM SSL3_AD_ILLEGAL_PARAMETER} - SSL3_AD_ILLEGAL_PARAMETER = 47; - {$EXTERNALSYM TLS1_HB_REQUEST} - TLS1_HB_REQUEST = 1; - {$EXTERNALSYM TLS1_HB_RESPONSE} - TLS1_HB_RESPONSE = 2; - {$EXTERNALSYM SSL3_AD_NO_CERTIFICATE} - SSL3_AD_NO_CERTIFICATE = 41; - {$EXTERNALSYM SSL3_AD_UNEXPECTED_MESSAGE} - SSL3_AD_UNEXPECTED_MESSAGE = 10; - {$EXTERNALSYM SSL3_AD_UNSUPPORTED_CERTIFICATE} - SSL3_AD_UNSUPPORTED_CERTIFICATE = 43; - {$EXTERNALSYM SSL3_AL_FATAL} - SSL3_AL_FATAL = 2; - {$EXTERNALSYM SSL3_AL_WARNING} - SSL3_AL_WARNING = 1; - {$EXTERNALSYM SSL3_CC_CLIENT} - SSL3_CC_CLIENT = $10; - {$EXTERNALSYM SSL3_CC_READ} - SSL3_CC_READ = $01; - {$EXTERNALSYM SSL3_CC_SERVER} - SSL3_CC_SERVER = $20; - {$EXTERNALSYM SSL3_CC_WRITE} - SSL3_CC_WRITE = $02; - {$EXTERNALSYM SSL3_CHANGE_CIPHER_CLIENT_READ} - SSL3_CHANGE_CIPHER_CLIENT_READ = SSL3_CC_CLIENT or SSL3_CC_READ; - {$EXTERNALSYM SSL3_CHANGE_CIPHER_CLIENT_WRITE} - SSL3_CHANGE_CIPHER_CLIENT_WRITE = SSL3_CC_CLIENT or SSL3_CC_WRITE; - {$EXTERNALSYM SSL3_CHANGE_CIPHER_SERVER_READ} - SSL3_CHANGE_CIPHER_SERVER_READ = SSL3_CC_SERVER or SSL3_CC_READ; - {$EXTERNALSYM SSL3_CHANGE_CIPHER_SERVER_WRITE} - SSL3_CHANGE_CIPHER_SERVER_WRITE = SSL3_CC_SERVER or SSL3_CC_WRITE; - {$EXTERNALSYM SSL3_CK_ADH_DES_192_CBC_SHA} - SSL3_CK_ADH_DES_192_CBC_SHA = $0300001B; - {$EXTERNALSYM SSL3_CK_ADH_DES_40_CBC_SHA} - SSL3_CK_ADH_DES_40_CBC_SHA = $03000019; - {$EXTERNALSYM SSL3_CK_ADH_DES_64_CBC_SHA} - SSL3_CK_ADH_DES_64_CBC_SHA = $0300001A; - {$EXTERNALSYM SSL3_CK_ADH_RC4_128_MD5} - SSL3_CK_ADH_RC4_128_MD5 = $03000018; - {$EXTERNALSYM SSL3_CK_ADH_RC4_40_MD5} - SSL3_CK_ADH_RC4_40_MD5 = $03000017; - {$EXTERNALSYM SSL3_CK_DH_DSS_DES_192_CBC3_SHA} - SSL3_CK_DH_DSS_DES_192_CBC3_SHA = $0300000D; - {$EXTERNALSYM SSL3_CK_DH_DSS_DES_40_CBC_SHA} - SSL3_CK_DH_DSS_DES_40_CBC_SHA = $0300000B; - {$EXTERNALSYM SSL3_CK_DH_DSS_DES_64_CBC_SHA} - SSL3_CK_DH_DSS_DES_64_CBC_SHA = $0300000C; - {$EXTERNALSYM SSL3_CK_DH_RSA_DES_192_CBC3_SHA} - SSL3_CK_DH_RSA_DES_192_CBC3_SHA = $03000010; - {$EXTERNALSYM SSL3_CK_DH_RSA_DES_40_CBC_SHA} - SSL3_CK_DH_RSA_DES_40_CBC_SHA = $0300000E; - {$EXTERNALSYM SSL3_CK_DH_RSA_DES_64_CBC_SHA} - SSL3_CK_DH_RSA_DES_64_CBC_SHA = $0300000F; - {$EXTERNALSYM SSL3_CK_EDH_DSS_DES_192_CBC3_SHA} - SSL3_CK_EDH_DSS_DES_192_CBC3_SHA = $03000013; - {$EXTERNALSYM SSL3_CK_EDH_DSS_DES_40_CBC_SHA} - SSL3_CK_EDH_DSS_DES_40_CBC_SHA = $03000011; - {$EXTERNALSYM SSL3_CK_EDH_DSS_DES_64_CBC_SHA} - SSL3_CK_EDH_DSS_DES_64_CBC_SHA = $03000012; - {$EXTERNALSYM SSL3_CK_EDH_RSA_DES_192_CBC3_SHA} - SSL3_CK_EDH_RSA_DES_192_CBC3_SHA = $03000016; - {$EXTERNALSYM SSL3_CK_EDH_RSA_DES_40_CBC_SHA} - SSL3_CK_EDH_RSA_DES_40_CBC_SHA = $03000014; - {$EXTERNALSYM SSL3_CK_EDH_RSA_DES_64_CBC_SHA} - SSL3_CK_EDH_RSA_DES_64_CBC_SHA = $03000015; - {$EXTERNALSYM SSL3_CK_FZA_DMS_FZA_SHA} - SSL3_CK_FZA_DMS_FZA_SHA = $0300001D; - {$EXTERNALSYM SSL3_CK_FZA_DMS_NULL_SHA} - SSL3_CK_FZA_DMS_NULL_SHA = $0300001C; - {$EXTERNALSYM SSL3_CK_FZA_DMS_RC4_SHA} - SSL3_CK_FZA_DMS_RC4_SHA = $0300001E; - {$EXTERNALSYM SSL3_CK_RSA_DES_192_CBC3_SHA} - SSL3_CK_RSA_DES_192_CBC3_SHA = $0300000A; - {$EXTERNALSYM SSL3_CK_RSA_DES_40_CBC_SHA} - SSL3_CK_RSA_DES_40_CBC_SHA = $03000008; - {$EXTERNALSYM SSL3_CK_RSA_DES_64_CBC_SHA} - SSL3_CK_RSA_DES_64_CBC_SHA = $03000009; - {$EXTERNALSYM SSL3_CK_RSA_IDEA_128_SHA} - SSL3_CK_RSA_IDEA_128_SHA = $03000007; - //* Signalling cipher suite value: from draft-ietf-tls-renegotiation-03.txt */ - {$EXTERNALSYM SSL3_CK_SCSV} - SSL3_CK_SCSV = $030000FF; - - {$EXTERNALSYM SSL3_CK_RSA_NULL_MD5} - SSL3_CK_RSA_NULL_MD5 = $03000001; - {$EXTERNALSYM SSL3_CK_RSA_NULL_SHA} - SSL3_CK_RSA_NULL_SHA = $03000002; - {$EXTERNALSYM SSL3_CK_RSA_RC2_40_MD5} - SSL3_CK_RSA_RC2_40_MD5 = $03000006; - {$EXTERNALSYM SSL3_CK_RSA_RC4_128_MD5} - SSL3_CK_RSA_RC4_128_MD5 = $03000004; - {$EXTERNALSYM SSL3_CK_RSA_RC4_128_SHA} - SSL3_CK_RSA_RC4_128_SHA = $03000005; - {$EXTERNALSYM SSL3_CK_RSA_RC4_40_MD5} - SSL3_CK_RSA_RC4_40_MD5 = $03000003; - - {$EXTERNALSYM SSL3_CT_RSA_SIGN} - SSL3_CT_RSA_SIGN = 1; - {$EXTERNALSYM SSL3_CT_DSS_SIGN} - SSL3_CT_DSS_SIGN = 2; - {$EXTERNALSYM SSL3_CT_RSA_FIXED_DH} - SSL3_CT_RSA_FIXED_DH = 3; - {$EXTERNALSYM SSL3_CT_DSS_FIXED_DH} - SSL3_CT_DSS_FIXED_DH = 4; - {$EXTERNALSYM SSL3_CT_RSA_EPHEMERAL_DH} - SSL3_CT_RSA_EPHEMERAL_DH = 5; - {$EXTERNALSYM SSL3_CT_DSS_EPHEMERAL_DH} - SSL3_CT_DSS_EPHEMERAL_DH = 6; - - {$EXTERNALSYM SSL3_CT_FORTEZZA_DMS} - SSL3_CT_FORTEZZA_DMS = 20; - {$EXTERNALSYM SSL3_CT_NUMBER} - SSL3_CT_NUMBER = 9; //was 7; - - {$EXTERNALSYM SSL3_FLAGS_DELAY_CLIENT_FINISHED} - SSL3_FLAGS_DELAY_CLIENT_FINISHED = $0002; - {$EXTERNALSYM SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS} - SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS = $0001; - {$EXTERNALSYM SSL3_FLAGS_POP_BUFFER} - SSL3_FLAGS_POP_BUFFER = $0004; - {$EXTERNALSYM TLS1_FLAGS_TLS_PADDING_BUG} - TLS1_FLAGS_TLS_PADDING_BUG = $0008; - {$EXTERNALSYM TLS1_FLAGS_SKIP_CERT_VERIFY} - TLS1_FLAGS_SKIP_CERT_VERIFY = $0010; - {$EXTERNALSYM TLS1_FLAGS_KEEP_HANDSHAKE} - TLS1_FLAGS_KEEP_HANDSHAKE = $0020; - - {* SSL3_FLAGS_SGC_RESTART_DONE is set when we - * restart a handshake because of MS SGC and so prevents us - * from restarting the handshake in a loop. It's reset on a - * renegotiation, so effectively limits the client to one restart - * per negotiation. This limits the possibility of a DDoS - * attack where the client handshakes in a loop using SGC to - * restart. Servers which permit renegotiation can still be - * effected, but we can't prevent that. - *} - {$EXTERNALSYM SSL3_FLAGS_SGC_RESTART_DONE} - SSL3_FLAGS_SGC_RESTART_DONE = $0040; - - {$EXTERNALSYM SSL3_MASTER_SECRET_SIZE} - SSL3_MASTER_SECRET_SIZE = 48; - {$EXTERNALSYM SSL3_MAX_SSL_SESSION_ID_LENGTH} - SSL3_MAX_SSL_SESSION_ID_LENGTH = 32; - {$EXTERNALSYM SSL3_MT_HELLO_REQUEST} - SSL3_MT_HELLO_REQUEST = 0; - {$EXTERNALSYM SSL3_MT_CLIENT_REQUEST} - SSL3_MT_CLIENT_REQUEST = 0; - {$EXTERNALSYM SSL3_MT_CLIENT_HELLO} - SSL3_MT_CLIENT_HELLO = 1; - {$EXTERNALSYM SSL3_MT_SERVER_HELLO} - SSL3_MT_SERVER_HELLO = 2; - {$EXTERNALSYM SSL3_MT_NEWSESSION_TICKET} - SSL3_MT_NEWSESSION_TICKET = 4; - {$EXTERNALSYM SSL3_MT_CERTIFICATE} - SSL3_MT_CERTIFICATE = 11; - {$EXTERNALSYM SSL3_MT_SERVER_KEY_EXCHANGE} - SSL3_MT_SERVER_KEY_EXCHANGE = 12; - {$EXTERNALSYM SSL3_MT_CERTIFICATE_REQUEST} - SSL3_MT_CERTIFICATE_REQUEST = 13; - {$EXTERNALSYM SSL3_MT_SERVER_DONE} - SSL3_MT_SERVER_DONE = 14; - {$EXTERNALSYM SSL3_MT_CERTIFICATE_VERIFY} - SSL3_MT_CERTIFICATE_VERIFY = 15; - {$EXTERNALSYM SSL3_MT_CLIENT_KEY_EXCHANGE} - SSL3_MT_CLIENT_KEY_EXCHANGE = 16; - {$EXTERNALSYM SSL3_MT_FINISHED} - SSL3_MT_FINISHED = 20; - {$EXTERNALSYM SSL3_MT_CERTIFICATE_STATUS} - SSL3_MT_CERTIFICATE_STATUS = 22; - {$EXTERNALSYM SSL3_MT_NEXT_PROTO} - SSL3_MT_NEXT_PROTO = 67; - {$EXTERNALSYM DTLS1_MT_HELLO_VERIFY_REQUEST} - DTLS1_MT_HELLO_VERIFY_REQUEST = 3; - {$EXTERNALSYM SSL3_MT_CCS} - SSL3_MT_CCS = 1; - {$EXTERNALSYM SSL3_RANDOM_SIZE} - SSL3_RANDOM_SIZE = 32; - {$EXTERNALSYM SSL3_RS_BLANK} - SSL3_RS_BLANK = 1; - {$EXTERNALSYM SSL3_RS_ENCODED} - SSL3_RS_ENCODED = 2; - {$EXTERNALSYM SSL3_RS_PART_READ} - SSL3_RS_PART_READ = 4; - {$EXTERNALSYM SSL3_RS_PART_WRITE} - SSL3_RS_PART_WRITE = 5; - {$EXTERNALSYM SSL3_RS_PLAIN} - SSL3_RS_PLAIN = 3; - {$EXTERNALSYM SSL3_RS_READ_MORE} - SSL3_RS_READ_MORE = 3; - {$EXTERNALSYM SSL3_RT_ALERT} - SSL3_RT_ALERT = 21; - {$EXTERNALSYM SSL3_RT_APPLICATION_DATA} - SSL3_RT_APPLICATION_DATA = 23; - {$EXTERNALSYM TLS1_RT_HEARTBEAT} - TLS1_RT_HEARTBEAT = 24; - {$EXTERNALSYM SSL3_RT_CHANGE_CIPHER_SPEC} - SSL3_RT_CHANGE_CIPHER_SPEC = 20; - {$EXTERNALSYM SSL3_RT_HANDSHAKE} - SSL3_RT_HANDSHAKE = 22; - {$EXTERNALSYM SSL3_RT_HEADER_LENGTH} - SSL3_RT_HEADER_LENGTH = 5; - {$EXTERNALSYM SSL3_RT_MAX_MD_SIZE} - SSL3_RT_MAX_MD_SIZE = 64; - {$EXTERNALSYM SSL_RT_MAX_CIPHER_BLOCK_SIZE} - SSL_RT_MAX_CIPHER_BLOCK_SIZE = 16; - {$EXTERNALSYM SSL3_RT_MAX_EXTRA} - SSL3_RT_MAX_EXTRA = (16384); - - {$EXTERNALSYM SSL3_RT_MAX_PLAIN_LENGTH} - SSL3_RT_MAX_PLAIN_LENGTH = 16384; - {$EXTERNALSYM SSL3_RT_MAX_COMPRESSED_OVERHEAD} - SSL3_RT_MAX_COMPRESSED_OVERHEAD = 1024; - {$EXTERNALSYM SSL3_RT_MAX_ENCRYPTED_OVERHEAD} - SSL3_RT_MAX_ENCRYPTED_OVERHEAD = (256 + SSL3_RT_MAX_MD_SIZE); - {$EXTERNALSYM SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD} - SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD = (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE); - {$EXTERNALSYM SSL3_RT_MAX_COMPRESSED_LENGTH} -{$ifdef OPENSSL_NO_COMP} - SSL3_RT_MAX_COMPRESSED_LENGTH = SSL3_RT_MAX_PLAIN_LENGTH; -{$else} - SSL3_RT_MAX_COMPRESSED_LENGTH = - (SSL3_RT_MAX_PLAIN_LENGTH+SSL3_RT_MAX_COMPRESSED_OVERHEAD); -{$endif} - {$EXTERNALSYM SSL3_RT_MAX_ENCRYPTED_LENGTH} - SSL3_RT_MAX_ENCRYPTED_LENGTH = - (SSL3_RT_MAX_ENCRYPTED_OVERHEAD+SSL3_RT_MAX_COMPRESSED_LENGTH); - {$EXTERNALSYM SSL3_RT_MAX_PACKET_SIZE} - SSL3_RT_MAX_PACKET_SIZE = - (SSL3_RT_MAX_ENCRYPTED_LENGTH+SSL3_RT_HEADER_LENGTH); - - {$EXTERNALSYM SSL3_RT_MAX_DATA_SIZE} - SSL3_RT_MAX_DATA_SIZE = 1024*1024; - - {$EXTERNALSYM SSL3_SESSION_ID_SIZE} - SSL3_SESSION_ID_SIZE = 32; - {$EXTERNALSYM SSL3_SSL_SESSION_ID_LENGTH} - SSL3_SSL_SESSION_ID_LENGTH = 32; - {$EXTERNALSYM SSL3_ST_CR_CERT_A} - SSL3_ST_CR_CERT_A = $130 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_CERT_B} - SSL3_ST_CR_CERT_B = $131 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_CERT_REQ_A} - SSL3_ST_CR_CERT_REQ_A = $150 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_CERT_REQ_B} - SSL3_ST_CR_CERT_REQ_B = $151 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_CHANGE_A} - SSL3_ST_CR_CHANGE_A = $1C0 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_CHANGE_B} - SSL3_ST_CR_CHANGE_B = $1C1 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_FINISHED_A} - SSL3_ST_CR_FINISHED_A = $1D0 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_FINISHED_B} - SSL3_ST_CR_FINISHED_B = $1D1 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_SESSION_TICKET_A} - SSL3_ST_CR_SESSION_TICKET_A = ($1E0 or SSL_ST_CONNECT); - {$EXTERNALSYM SSL3_ST_CR_SESSION_TICKET_B} - SSL3_ST_CR_SESSION_TICKET_B = ($1E1 or SSL_ST_CONNECT); - {$EXTERNALSYM SSL3_ST_CR_CERT_STATUS_A} - SSL3_ST_CR_CERT_STATUS_A = ($1F0 or SSL_ST_CONNECT); - {$EXTERNALSYM SSL3_ST_CR_CERT_STATUS_B} - SSL3_ST_CR_CERT_STATUS_B = ($1F1 or SSL_ST_CONNECT); - {$EXTERNALSYM SSL3_ST_CR_KEY_EXCH_A} - SSL3_ST_CR_KEY_EXCH_A = $140 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_KEY_EXCH_B} - SSL3_ST_CR_KEY_EXCH_B = $141 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_SRVR_DONE_A} - SSL3_ST_CR_SRVR_DONE_A = $160 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_SRVR_DONE_B} - SSL3_ST_CR_SRVR_DONE_B = $161 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_SRVR_HELLO_A} - SSL3_ST_CR_SRVR_HELLO_A = $120 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CR_SRVR_HELLO_B} - SSL3_ST_CR_SRVR_HELLO_B = $121 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_CERT_A} - SSL3_ST_CW_CERT_A = $170 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_CERT_B} - SSL3_ST_CW_CERT_B = $171 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_CERT_C} - SSL3_ST_CW_CERT_C = $172 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_CERT_D} - SSL3_ST_CW_CERT_D = $173 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_CERT_VRFY_A} - SSL3_ST_CW_CERT_VRFY_A = $190 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_CERT_VRFY_B} - SSL3_ST_CW_CERT_VRFY_B = $191 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_CHANGE_A} - SSL3_ST_CW_CHANGE_A = $1A0 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_CHANGE_B} - SSL3_ST_CW_CHANGE_B = $1A1 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_NEXT_PROTO_A} - SSL3_ST_CW_NEXT_PROTO_A = ($200 or SSL_ST_CONNECT); - {$EXTERNALSYM SSL3_ST_CW_NEXT_PROTO_B} - SSL3_ST_CW_NEXT_PROTO_B = ($201 or SSL_ST_CONNECT); - -{$ifndef OPENSSL_NO_SCTP} - {$EXTERNALSYM DTLS1_SCTP_ST_CW_WRITE_SOCK} - DTLS1_SCTP_ST_CW_WRITE_SOCK = $310 or SSL_ST_CONNECT; - {$EXTERNALSYM DTLS1_SCTP_ST_CR_READ_SOCK} - DTLS1_SCTP_ST_CR_READ_SOCK = $320 or SSL_ST_CONNECT; -{$endif} - {$EXTERNALSYM SSL3_ST_CW_CLNT_HELLO_A} - SSL3_ST_CW_CLNT_HELLO_A = $110 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_CLNT_HELLO_B} - SSL3_ST_CW_CLNT_HELLO_B = $111 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_FINISHED_A} - SSL3_ST_CW_FINISHED_A = $1B0 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_FINISHED_B} - SSL3_ST_CW_FINISHED_B = $1B1 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_FLUSH} - SSL3_ST_CW_FLUSH = $100 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_KEY_EXCH_A} - SSL3_ST_CW_KEY_EXCH_A = $180 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_CW_KEY_EXCH_B} - SSL3_ST_CW_KEY_EXCH_B = $181 or SSL_ST_CONNECT; - {$EXTERNALSYM SSL3_ST_SR_CERT_A} - SSL3_ST_SR_CERT_A = $180 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_CERT_B} - SSL3_ST_SR_CERT_B = $181 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_CERT_VRFY_A} - SSL3_ST_SR_CERT_VRFY_A = $1A0 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_CERT_VRFY_B} - SSL3_ST_SR_CERT_VRFY_B = $1A1 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_CHANGE_A} - SSL3_ST_SR_CHANGE_A = $1B0 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_CHANGE_B} - SSL3_ST_SR_CHANGE_B = $1B1 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_NEXT_PROTO_A} - SSL3_ST_SR_NEXT_PROTO_A = ($210 or SSL_ST_ACCEPT); - {$EXTERNALSYM SSL3_ST_SR_NEXT_PROTO_B} - SSL3_ST_SR_NEXT_PROTO_B = ($211 or SSL_ST_ACCEPT); - {$EXTERNALSYM SSL3_ST_SR_CLNT_HELLO_A} - SSL3_ST_SR_CLNT_HELLO_A = $110 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_CLNT_HELLO_B} - SSL3_ST_SR_CLNT_HELLO_B = $111 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_CLNT_HELLO_C} - SSL3_ST_SR_CLNT_HELLO_C = $112 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_FINISHED_A} - SSL3_ST_SR_FINISHED_A = $1C0 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_FINISHED_B} - SSL3_ST_SR_FINISHED_B = $1C1 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_KEY_EXCH_A} - SSL3_ST_SR_KEY_EXCH_A = $190 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SR_KEY_EXCH_B} - SSL3_ST_SR_KEY_EXCH_B = $191 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_CERT_A} - SSL3_ST_SW_CERT_A = $140 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_CERT_B} - SSL3_ST_SW_CERT_B = $141 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_CERT_REQ_A} - SSL3_ST_SW_CERT_REQ_A = $160 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_CERT_REQ_B} - SSL3_ST_SW_CERT_REQ_B = $161 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_CHANGE_A} - SSL3_ST_SW_CHANGE_A = $1D0 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_CHANGE_B} - SSL3_ST_SW_CHANGE_B = $1D1 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_FINISHED_A} - SSL3_ST_SW_FINISHED_A = $1E0 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_FINISHED_B} - SSL3_ST_SW_FINISHED_B = $1E1 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_SESSION_TICKET_A} - SSL3_ST_SW_SESSION_TICKET_A = ($1F0 or SSL_ST_ACCEPT); - {$EXTERNALSYM SSL3_ST_SW_SESSION_TICKET_B} - SSL3_ST_SW_SESSION_TICKET_B = ($1F1 or SSL_ST_ACCEPT); - {$EXTERNALSYM SSL3_ST_SW_CERT_STATUS_A} - SSL3_ST_SW_CERT_STATUS_A = ($200 or SSL_ST_ACCEPT); - {$EXTERNALSYM SSL3_ST_SW_CERT_STATUS_B} - SSL3_ST_SW_CERT_STATUS_B = ($201 or SSL_ST_ACCEPT); - {$EXTERNALSYM SSL3_ST_SW_FLUSH} - SSL3_ST_SW_FLUSH = $100 or SSL_ST_ACCEPT; -{$ifndef OPENSSL_NO_SCTP} - {$EXTERNALSYM DTLS1_SCTP_ST_SW_WRITE_SOCK} - DTLS1_SCTP_ST_SW_WRITE_SOCK = ($310 or SSL_ST_ACCEPT); - {$EXTERNALSYM DTLS1_SCTP_ST_SR_READ_SOCK} - DTLS1_SCTP_ST_SR_READ_SOCK = ($320 or SSL_ST_ACCEPT); -{$endif} - {$EXTERNALSYM SSL3_ST_SW_HELLO_REQ_A} - SSL3_ST_SW_HELLO_REQ_A = $120 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_HELLO_REQ_B} - SSL3_ST_SW_HELLO_REQ_B = $121 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_HELLO_REQ_C} - SSL3_ST_SW_HELLO_REQ_C = $122 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_KEY_EXCH_A} - SSL3_ST_SW_KEY_EXCH_A = $150 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_KEY_EXCH_B} - SSL3_ST_SW_KEY_EXCH_B = $151 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_SRVR_DONE_A} - SSL3_ST_SW_SRVR_DONE_A = $170 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_SRVR_DONE_B} - SSL3_ST_SW_SRVR_DONE_B = $171 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_SRVR_HELLO_A} - SSL3_ST_SW_SRVR_HELLO_A = $130 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_ST_SW_SRVR_HELLO_B} - SSL3_ST_SW_SRVR_HELLO_B = $131 or SSL_ST_ACCEPT; - {$EXTERNALSYM SSL3_TXT_ADH_DES_192_CBC_SHA} - SSL3_TXT_ADH_DES_192_CBC_SHA = 'ADH-DES-CBC3-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_ADH_DES_40_CBC_SHA} - SSL3_TXT_ADH_DES_40_CBC_SHA = 'EXP-ADH-DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_ADH_DES_64_CBC_SHA} - SSL3_TXT_ADH_DES_64_CBC_SHA = 'ADH-DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_ADH_RC4_128_MD5} - SSL3_TXT_ADH_RC4_128_MD5 = 'ADH-RC4-MD5'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_ADH_RC4_40_MD5} - SSL3_TXT_ADH_RC4_40_MD5 = 'EXP-ADH-RC4-MD5'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_DH_DSS_DES_192_CBC3_SHA} - SSL3_TXT_DH_DSS_DES_192_CBC3_SHA = 'DH-DSS-DES-CBC3-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_DH_DSS_DES_40_CBC_SHA} - SSL3_TXT_DH_DSS_DES_40_CBC_SHA = 'EXP-DH-DSS-DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_DH_DSS_DES_64_CBC_SHA} - SSL3_TXT_DH_DSS_DES_64_CBC_SHA = 'DH-DSS-DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_DH_RSA_DES_192_CBC3_SHA} - SSL3_TXT_DH_RSA_DES_192_CBC3_SHA = 'DH-RSA-DES-CBC3-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_DH_RSA_DES_40_CBC_SHA} - SSL3_TXT_DH_RSA_DES_40_CBC_SHA = 'EXP-DH-RSA-DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_DH_RSA_DES_64_CBC_SHA} - SSL3_TXT_DH_RSA_DES_64_CBC_SHA = 'DH-RSA-DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_EDH_DSS_DES_192_CBC3_SHA} - SSL3_TXT_EDH_DSS_DES_192_CBC3_SHA = 'EDH-DSS-DES-CBC3-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_EDH_DSS_DES_40_CBC_SHA} - SSL3_TXT_EDH_DSS_DES_40_CBC_SHA = 'EXP-EDH-DSS-DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_EDH_DSS_DES_64_CBC_SHA} - SSL3_TXT_EDH_DSS_DES_64_CBC_SHA = 'EDH-DSS-DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA} - SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA = 'EDH-RSA-DES-CBC3-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_EDH_RSA_DES_40_CBC_SHA} - SSL3_TXT_EDH_RSA_DES_40_CBC_SHA = 'EXP-EDH-RSA-DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_EDH_RSA_DES_64_CBC_SHA} - SSL3_TXT_EDH_RSA_DES_64_CBC_SHA = 'EDH-RSA-DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_FZA_DMS_FZA_SHA} - SSL3_TXT_FZA_DMS_FZA_SHA = 'FZA-FZA-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_FZA_DMS_NULL_SHA} - SSL3_TXT_FZA_DMS_NULL_SHA = 'FZA-NULL-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_FZA_DMS_RC4_SHA} - SSL3_TXT_FZA_DMS_RC4_SHA = 'FZA-RC4-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_RSA_DES_192_CBC3_SHA} - SSL3_TXT_RSA_DES_192_CBC3_SHA = 'DES-CBC3-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_RSA_DES_40_CBC_SHA} - SSL3_TXT_RSA_DES_40_CBC_SHA = 'EXP-DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_RSA_DES_64_CBC_SHA} - SSL3_TXT_RSA_DES_64_CBC_SHA = 'DES-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_RSA_IDEA_128_SHA} - SSL3_TXT_RSA_IDEA_128_SHA = 'IDEA-CBC-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_RSA_NULL_MD5} - SSL3_TXT_RSA_NULL_MD5 = 'NULL-MD5'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_RSA_NULL_SHA} - SSL3_TXT_RSA_NULL_SHA = 'NULL-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_RSA_RC2_40_MD5} - SSL3_TXT_RSA_RC2_40_MD5 = 'EXP-RC2-CBC-MD5'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_RSA_RC4_128_MD5} - SSL3_TXT_RSA_RC4_128_MD5 = 'RC4-MD5'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_RSA_RC4_128_SHA} - SSL3_TXT_RSA_RC4_128_SHA = 'RC4-SHA'; {Do not localize} - {$EXTERNALSYM SSL3_TXT_RSA_RC4_40_MD5} - SSL3_TXT_RSA_RC4_40_MD5 = 'EXP-RC4-MD5'; {Do not localize} - {$EXTERNALSYM SSL3_VERSION} - SSL3_VERSION = $0300; - {$EXTERNALSYM SSL3_VERSION_MAJOR} - SSL3_VERSION_MAJOR = $03; - {$EXTERNALSYM SSL3_VERSION_MINOR} - SSL3_VERSION_MINOR = $00; - {$EXTERNALSYM SSLEAY_VERSION} - SSLEAY_VERSION = 0; -//* #define SSLEAY_OPTIONS 1 no longer supported */ - {$EXTERNALSYM SSLEAY_CFLAGS} - SSLEAY_CFLAGS = 2; - {$EXTERNALSYM SSLEAY_BUILT_ON} - SSLEAY_BUILT_ON = 3; - {$EXTERNALSYM SSLEAY_PLATFORM} - SSLEAY_PLATFORM = 4; - {$EXTERNALSYM SSLEAY_DIR} - SSLEAY_DIR = 5; - //tls1.h - {$EXTERNALSYM TLS1_AD_DECRYPTION_FAILED} - TLS1_AD_DECRYPTION_FAILED = 21; - {$EXTERNALSYM TLS1_AD_RECORD_OVERFLOW} - TLS1_AD_RECORD_OVERFLOW = 22; - {$EXTERNALSYM TLS1_AD_UNKNOWN_CA} - TLS1_AD_UNKNOWN_CA = 48; - {$EXTERNALSYM TLS1_AD_ACCESS_DENIED} - TLS1_AD_ACCESS_DENIED = 49; - {$EXTERNALSYM TLS1_AD_DECODE_ERROR} - TLS1_AD_DECODE_ERROR = 50; - {$EXTERNALSYM TLS1_AD_DECRYPT_ERROR} - TLS1_AD_DECRYPT_ERROR = 51; - {$EXTERNALSYM TLS1_AD_EXPORT_RESTRICTION} - TLS1_AD_EXPORT_RESTRICTION = 60; - {$EXTERNALSYM TLS1_AD_PROTOCOL_VERSION} - TLS1_AD_PROTOCOL_VERSION = 70; - {$EXTERNALSYM TLS1_AD_INSUFFICIENT_SECURITY} - TLS1_AD_INSUFFICIENT_SECURITY = 71; - {$EXTERNALSYM TLS1_AD_INTERNAL_ERROR} - TLS1_AD_INTERNAL_ERROR = 80; - {$EXTERNALSYM TLS1_AD_USER_CANCELLED} - TLS1_AD_USER_CANCELLED = 90; - {$EXTERNALSYM TLS1_AD_NO_RENEGOTIATION} - TLS1_AD_NO_RENEGOTIATION = 100; - //* codes 110-114 are from RFC3546 */ - {$EXTERNALSYM TLS1_AD_UNSUPPORTED_EXTENSION} - TLS1_AD_UNSUPPORTED_EXTENSION = 110; - {$EXTERNALSYM TLS1_AD_CERTIFICATE_UNOBTAINABLE} - TLS1_AD_CERTIFICATE_UNOBTAINABLE = 111; - {$EXTERNALSYM TLS1_AD_UNRECOGNIZED_NAME} - TLS1_AD_UNRECOGNIZED_NAME = 112; - {$EXTERNALSYM TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE} - TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE = 113; - {$EXTERNALSYM TLS1_AD_BAD_CERTIFICATE_HASH_VALUE} - TLS1_AD_BAD_CERTIFICATE_HASH_VALUE = 114; - {$EXTERNALSYM TLS1_AD_UNKNOWN_PSK_IDENTITY} - TLS1_AD_UNKNOWN_PSK_IDENTITY = 115;//* fatal */ -//* ExtensionType values from RFC 3546 */ - {$EXTERNALSYM TLSEXT_TYPE_server_name} - TLSEXT_TYPE_server_name = 0; - {$EXTERNALSYM TLSEXT_TYPE_max_fragment_length} - TLSEXT_TYPE_max_fragment_length = 1; - {$EXTERNALSYM TLSEXT_TYPE_client_certificate_url} - TLSEXT_TYPE_client_certificate_url = 2; - {$EXTERNALSYM TLSEXT_TYPE_trusted_ca_keys} - TLSEXT_TYPE_trusted_ca_keys = 3; - {$EXTERNALSYM TLSEXT_TYPE_truncated_hmac} - TLSEXT_TYPE_truncated_hmac = 4; - {$EXTERNALSYM TLSEXT_TYPE_status_request} - TLSEXT_TYPE_status_request =5; - {$EXTERNALSYM TLSEXT_TYPE_user_mapping} - TLSEXT_TYPE_user_mapping = 6; - {$EXTERNALSYM TLSEXT_TYPE_client_authz} - TLSEXT_TYPE_client_authz = 7; - {$EXTERNALSYM TLSEXT_TYPE_server_authz} - TLSEXT_TYPE_server_authz = 8; - {$EXTERNALSYM TLSEXT_TYPE_cert_type} - TLSEXT_TYPE_cert_type = 9; - {$EXTERNALSYM TLSEXT_TYPE_elliptic_curves} - TLSEXT_TYPE_elliptic_curves = 10; - {$EXTERNALSYM TLSEXT_TYPE_ec_point_formats} - TLSEXT_TYPE_ec_point_formats = 11; - {$EXTERNALSYM TLSEXT_TYPE_srp} - TLSEXT_TYPE_srp = 12; - {$EXTERNALSYM TLSEXT_TYPE_signature_algorithms} - TLSEXT_TYPE_signature_algorithms = 13; - {$EXTERNALSYM TLSEXT_TYPE_use_srtp} - TLSEXT_TYPE_use_srtp = 14; - {$EXTERNALSYM TLSEXT_TYPE_heartbeat} - TLSEXT_TYPE_heartbeat = 15; - {$EXTERNALSYM TLSEXT_TYPE_session_ticket} - TLSEXT_TYPE_session_ticket = 35; - {$IFNDEF OPENSSL_NO_NEXTPROTONEG} -//* This is not an IANA defined extension number */ - {$EXTERNALSYM TLSEXT_TYPE_next_proto_neg} - TLSEXT_TYPE_next_proto_neg = 13172; - {$ENDIF} - //* Temporary extension type */ - {$EXTERNALSYM TLSEXT_TYPE_renegotiate} - TLSEXT_TYPE_renegotiate = $ff01; - - //* NameType value from RFC 3546 */ - {$EXTERNALSYM TLSEXT_NAMETYPE_host_name} - TLSEXT_NAMETYPE_host_name = 0; -//* status request value from RFC 3546 */ - {$EXTERNALSYM TLSEXT_STATUSTYPE_ocsp} - TLSEXT_STATUSTYPE_ocsp = 1; - {$EXTERNALSYM TLSEXT_ECPOINTFORMAT_first} - TLSEXT_ECPOINTFORMAT_first = 0; - {$EXTERNALSYM TLSEXT_ECPOINTFORMAT_uncompressed} - TLSEXT_ECPOINTFORMAT_uncompressed = 0; - {$EXTERNALSYM TLSEXT_ECPOINTFORMAT_ansiX962_compressed_prime} - TLSEXT_ECPOINTFORMAT_ansiX962_compressed_prime = 1; - {$EXTERNALSYM TLSEXT_ECPOINTFORMAT_ansiX962_compressed_char2} - TLSEXT_ECPOINTFORMAT_ansiX962_compressed_char2 = 2; - {$EXTERNALSYM TLSEXT_ECPOINTFORMAT_last} - TLSEXT_ECPOINTFORMAT_last = 2; - {$EXTERNALSYM TLSEXT_signature_anonymous} - TLSEXT_signature_anonymous = 0; - {$EXTERNALSYM TLSEXT_signature_rsa} - TLSEXT_signature_rsa = 1; - {$EXTERNALSYM TLSEXT_signature_dsa} - TLSEXT_signature_dsa = 2; - {$EXTERNALSYM TLSEXT_signature_ecdsa} - TLSEXT_signature_ecdsa = 3; - {$EXTERNALSYM TLSEXT_hash_none} - TLSEXT_hash_none = 0; - {$EXTERNALSYM TLSEXT_hash_md5} - TLSEXT_hash_md5 = 1; - {$EXTERNALSYM TLSEXT_hash_sha1} - TLSEXT_hash_sha1 = 2; - {$EXTERNALSYM TLSEXT_hash_sha224} - TLSEXT_hash_sha224 = 3; - {$EXTERNALSYM TLSEXT_hash_sha256} - TLSEXT_hash_sha256 = 4; - {$EXTERNALSYM TLSEXT_hash_sha384} - TLSEXT_hash_sha384 = 5; - {$EXTERNALSYM TLSEXT_hash_sha512} - TLSEXT_hash_sha512 = 6; - -{$IFNDEF OPENSSL_NO_TLSEXT} - {$EXTERNALSYM TLSEXT_MAXLEN_host_name} - TLSEXT_MAXLEN_host_name = 255; - {$EXTERNALSYM SSL_TLSEXT_ERR_OK} - SSL_TLSEXT_ERR_OK = 0; - {$EXTERNALSYM SSL_TLSEXT_ERR_ALERT_WARNING} - SSL_TLSEXT_ERR_ALERT_WARNING = 1; - {$EXTERNALSYM SSL_TLSEXT_ERR_ALERT_FATAL} - SSL_TLSEXT_ERR_ALERT_FATAL = 2; - {$EXTERNALSYM SSL_TLSEXT_ERR_NOACK} - SSL_TLSEXT_ERR_NOACK = 3; - {$IFDEF OPENSSL_NO_HEARTBEATS} - {$EXTERNALSYM SSL_TLSEXT_HB_DONT_SEND_REQUESTS} - SSL_TLSEXT_HB_ENABLED = $01; - {$EXTERNALSYM SSL_TLSEXT_HB_DONT_SEND_REQUESTS} - SSL_TLSEXT_HB_DONT_SEND_REQUESTS = $02; - {$EXTERNALSYM SSL_TLSEXT_HB_DONT_RECV_REQUESTS} - SSL_TLSEXT_HB_DONT_RECV_REQUESTS = $04; - {$ENDIF} -{$ENDIF} - // - {$EXTERNALSYM SSLEAY_VERSION_NUMBER} - SSLEAY_VERSION_NUMBER = OPENSSL_VERSION_NUMBER; - {$EXTERNALSYM SSL_AD_REASON_OFFSET} - SSL_AD_REASON_OFFSET = 1000; - {$EXTERNALSYM SSL_AD_CLOSE_NOTIFY} - SSL_AD_CLOSE_NOTIFY = SSL3_AD_CLOSE_NOTIFY; - {$EXTERNALSYM SSL_AD_UNEXPECTED_MESSAGE} - SSL_AD_UNEXPECTED_MESSAGE = SSL3_AD_UNEXPECTED_MESSAGE; - {$EXTERNALSYM SSL_AD_BAD_RECORD_MAC} - SSL_AD_BAD_RECORD_MAC = SSL3_AD_BAD_RECORD_MAC; - {$EXTERNALSYM SSL_AD_DECRYPTION_FAILED} - SSL_AD_DECRYPTION_FAILED = TLS1_AD_DECRYPTION_FAILED; - {$EXTERNALSYM SSL_AD_RECORD_OVERFLOW} - SSL_AD_RECORD_OVERFLOW = TLS1_AD_RECORD_OVERFLOW; - {$EXTERNALSYM SSL_AD_DECOMPRESSION_FAILURE} - SSL_AD_DECOMPRESSION_FAILURE = SSL3_AD_DECOMPRESSION_FAILURE; - {$EXTERNALSYM SSL_AD_HANDSHAKE_FAILURE} - SSL_AD_HANDSHAKE_FAILURE = SSL3_AD_HANDSHAKE_FAILURE; - {$EXTERNALSYM SSL_AD_NO_CERTIFICATE} - SSL_AD_NO_CERTIFICATE = SSL3_AD_NO_CERTIFICATE; - {$EXTERNALSYM SSL_AD_BAD_CERTIFICATE} - SSL_AD_BAD_CERTIFICATE = SSL3_AD_BAD_CERTIFICATE; - {$EXTERNALSYM SSL_AD_UNSUPPORTED_CERTIFICATE} - SSL_AD_UNSUPPORTED_CERTIFICATE = SSL3_AD_UNSUPPORTED_CERTIFICATE; - {$EXTERNALSYM SSL_AD_CERTIFICATE_REVOKED} - SSL_AD_CERTIFICATE_REVOKED = SSL3_AD_CERTIFICATE_REVOKED; - {$EXTERNALSYM SSL_AD_CERTIFICATE_EXPIRED} - SSL_AD_CERTIFICATE_EXPIRED = SSL3_AD_CERTIFICATE_EXPIRED; - {$EXTERNALSYM SSL_AD_CERTIFICATE_UNKNOWN} - SSL_AD_CERTIFICATE_UNKNOWN = SSL3_AD_CERTIFICATE_UNKNOWN; - {$EXTERNALSYM SSL_AD_ILLEGAL_PARAMETER} - SSL_AD_ILLEGAL_PARAMETER = SSL3_AD_ILLEGAL_PARAMETER; - - {$EXTERNALSYM SSL_AD_UNKNOWN_CA} - SSL_AD_UNKNOWN_CA = TLS1_AD_UNKNOWN_CA; - {$EXTERNALSYM SSL_AD_ACCESS_DENIED} - SSL_AD_ACCESS_DENIED = TLS1_AD_ACCESS_DENIED; - {$EXTERNALSYM SSL_AD_DECODE_ERROR} - SSL_AD_DECODE_ERROR = TLS1_AD_DECODE_ERROR; - {$EXTERNALSYM SSL_AD_DECRYPT_ERROR} - SSL_AD_DECRYPT_ERROR = TLS1_AD_DECRYPT_ERROR; - {$EXTERNALSYM SSL_AD_EXPORT_RESTRICTION} - SSL_AD_EXPORT_RESTRICTION = TLS1_AD_EXPORT_RESTRICTION; - {$EXTERNALSYM SSL_AD_PROTOCOL_VERSION} - SSL_AD_PROTOCOL_VERSION = TLS1_AD_PROTOCOL_VERSION; - {$EXTERNALSYM SSL_AD_INSUFFICIENT_SECURITY} - SSL_AD_INSUFFICIENT_SECURITY = TLS1_AD_INSUFFICIENT_SECURITY; - {$EXTERNALSYM SSL_AD_INTERNAL_ERROR} - SSL_AD_INTERNAL_ERROR = TLS1_AD_INTERNAL_ERROR; - {$EXTERNALSYM SSL_AD_USER_CANCELLED} - SSL_AD_USER_CANCELLED = TLS1_AD_USER_CANCELLED; - {$EXTERNALSYM SSL_AD_NO_RENEGOTIATION} - SSL_AD_NO_RENEGOTIATION = TLS1_AD_NO_RENEGOTIATION; - {$EXTERNALSYM SSL_AD_UNSUPPORTED_EXTENSION} - SSL_AD_UNSUPPORTED_EXTENSION = TLS1_AD_UNSUPPORTED_EXTENSION; - {$EXTERNALSYM SSL_AD_CERTIFICATE_UNOBTAINABLE} - SSL_AD_CERTIFICATE_UNOBTAINABLE = TLS1_AD_CERTIFICATE_UNOBTAINABLE; - {$EXTERNALSYM SSL_AD_UNRECOGNIZED_NAME} - SSL_AD_UNRECOGNIZED_NAME = TLS1_AD_UNRECOGNIZED_NAME; - {$EXTERNALSYM SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE} - SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE = TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE; - {$EXTERNALSYM SSL_AD_BAD_CERTIFICATE_HASH_VALUE} - SSL_AD_BAD_CERTIFICATE_HASH_VALUE = TLS1_AD_BAD_CERTIFICATE_HASH_VALUE; - {$EXTERNALSYM SSL_AD_UNKNOWN_PSK_IDENTITY} - SSL_AD_UNKNOWN_PSK_IDENTITY = TLS1_AD_UNKNOWN_PSK_IDENTITY; //* fatal */ - - - - - {$EXTERNALSYM SSL_CTRL_NEED_TMP_RSA} - SSL_CTRL_NEED_TMP_RSA = 1; - {$EXTERNALSYM SSL_CTRL_SET_TMP_RSA} - SSL_CTRL_SET_TMP_RSA = 2; - {$EXTERNALSYM SSL_CTRL_SET_TMP_DH} - SSL_CTRL_SET_TMP_DH = 3; - {$EXTERNALSYM SSL_CTRL_SET_TMP_ECDH} - SSL_CTRL_SET_TMP_ECDH = 4; - {$EXTERNALSYM SSL_CTRL_SET_TMP_RSA_CB} - SSL_CTRL_SET_TMP_RSA_CB = 5; - {$EXTERNALSYM SSL_CTRL_SET_TMP_DH_CB} - SSL_CTRL_SET_TMP_DH_CB = 6; - {$EXTERNALSYM SSL_CTRL_SET_TMP_ECDH_CB} - SSL_CTRL_SET_TMP_ECDH_CB = 7; - {$IFNDEF NO_TLSEXT} - //* see tls1.h for macros based on these */ - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_SERVERNAME_CB} - SSL_CTRL_SET_TLSEXT_SERVERNAME_CB = 53; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG} - SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG = 54; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_HOSTNAME} - SSL_CTRL_SET_TLSEXT_HOSTNAME = 55; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_DEBUG_CB} - SSL_CTRL_SET_TLSEXT_DEBUG_CB = 56; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_DEBUG_ARG} - SSL_CTRL_SET_TLSEXT_DEBUG_ARG = 57; - {$EXTERNALSYM SSL_CTRL_GET_TLSEXT_TICKET_KEYS} - SSL_CTRL_GET_TLSEXT_TICKET_KEYS = 58; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_TICKET_KEYS} - SSL_CTRL_SET_TLSEXT_TICKET_KEYS = 59; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT} - SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT = 60; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB} - SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB = 61; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB_ARG} - SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB_ARG = 62; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB} - SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB = 63; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG} - SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG = 64; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE} - SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE = 65; - {$EXTERNALSYM SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS} - SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS = 66; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS} - SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS = 67; - {$EXTERNALSYM SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS} - SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS = 68; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS} - SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS = 69; - {$EXTERNALSYM SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP} - SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP = 70; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP} - SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP = 71; - {$EXTERNALSYM SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB} - SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB = 72; - {$EXTERNALSYM SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB} - SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB = 75; - {$EXTERNALSYM SSL_CTRL_SET_SRP_VERIFY_PARAM_CB} - SSL_CTRL_SET_SRP_VERIFY_PARAM_CB = 76; - {$EXTERNALSYM SSL_CTRL_SET_SRP_GIVE_CLIENT_PWD_CB} - SSL_CTRL_SET_SRP_GIVE_CLIENT_PWD_CB = 77; - {$EXTERNALSYM SSL_CTRL_SET_SRP_ARG} - SSL_CTRL_SET_SRP_ARG = 78; - {$EXTERNALSYM SSL_CTRL_SET_TLS_EXT_SRP_USERNAME} - SSL_CTRL_SET_TLS_EXT_SRP_USERNAME = 79; - {$EXTERNALSYM SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH} - SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH = 80; - {$EXTERNALSYM SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD} - SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD = 81; - {$ifndef OPENSSL_NO_HEARTBEATS} - {$EXTERNALSYM SSL_CTRL_TLS_EXT_SEND_HEARTBEAT} - SSL_CTRL_TLS_EXT_SEND_HEARTBEAT = 85; - {$EXTERNALSYM SSL_CTRL_GET_TLS_EXT_HEARTBEAT_PENDING} - SSL_CTRL_GET_TLS_EXT_HEARTBEAT_PENDING = 86; - {$EXTERNALSYM SSL_CTRL_SET_TLS_EXT_HEARTBEAT_NO_REQUESTS} - SSL_CTRL_SET_TLS_EXT_HEARTBEAT_NO_REQUESTS = 87; - {$endif} - {$ENDIF} - {$EXTERNALSYM SSL_CTRL_SET_ECDH_AUTO} - SSL_CTRL_SET_ECDH_AUTO = 94; - - {$EXTERNALSYM DTLS_CTRL_GET_TIMEOUT} - DTLS_CTRL_GET_TIMEOUT = 73; - {$EXTERNALSYM DTLS_CTRL_HANDLE_TIMEOUT} - DTLS_CTRL_HANDLE_TIMEOUT = 74; - {$EXTERNALSYM DTLS_CTRL_LISTEN} - DTLS_CTRL_LISTEN = 75; - - {$EXTERNALSYM SSL_CTRL_GET_RI_SUPPORT} - SSL_CTRL_GET_RI_SUPPORT = 76; - {$EXTERNALSYM SSL_CTRL_CLEAR_OPTIONS} - SSL_CTRL_CLEAR_OPTIONS = 77; - {$EXTERNALSYM SSL_CTRL_CLEAR_MODE} - SSL_CTRL_CLEAR_MODE = 78; - {$EXTERNALSYM SSL_CTRL_GET_EXTRA_CHAIN_CERTS} - SSL_CTRL_GET_EXTRA_CHAIN_CERTS = 82; - {$EXTERNALSYM SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS} - SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS = 83; - {$EXTERNALSYM SSL_CTRL_CHAIN} //OpenSSL 1.0.2 - SSL_CTRL_CHAIN = 88; - {$EXTERNALSYM SSL_CTRL_CHAIN_CERT} //OpenSSL 1.0.2 - SSL_CTRL_CHAIN_CERT = 89; - {$EXTERNALSYM SSL_CTRL_GET_CHAIN_CERTS} //OpenSSL 1.0.2 - SSL_CTRL_GET_CHAIN_CERTS = 115; - {$EXTERNALSYM SSL_CTRL_GET_SESSION_REUSED} - SSL_CTRL_GET_SESSION_REUSED = 8; - {$EXTERNALSYM SSL_CTRL_GET_CLIENT_CERT_REQUEST} - SSL_CTRL_GET_CLIENT_CERT_REQUEST = 9; - {$EXTERNALSYM SSL_CTRL_GET_NUM_RENEGOTIATIONS} - SSL_CTRL_GET_NUM_RENEGOTIATIONS = 10; - {$EXTERNALSYM SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS} - SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS = 11; - {$EXTERNALSYM SSL_CTRL_GET_TOTAL_RENEGOTIATIONS} - SSL_CTRL_GET_TOTAL_RENEGOTIATIONS = 12; - {$EXTERNALSYM SSL_CTRL_GET_FLAGS} - SSL_CTRL_GET_FLAGS = 13; - {$EXTERNALSYM SSL_CTRL_EXTRA_CHAIN_CERT} - SSL_CTRL_EXTRA_CHAIN_CERT = 14; - {$EXTERNALSYM SSL_CTRL_SET_MSG_CALLBACK} - SSL_CTRL_SET_MSG_CALLBACK = 15; - {$EXTERNALSYM SSL_CTRL_SET_MSG_CALLBACK_ARG} - SSL_CTRL_SET_MSG_CALLBACK_ARG = 16; -//* only applies to datagram connections */ - {$EXTERNALSYM SSL_CTRL_SET_MTU} - SSL_CTRL_SET_MTU = 17; -//* Stats */ - {$EXTERNALSYM SSL_CTRL_SESS_NUMBER} - SSL_CTRL_SESS_NUMBER = 20; - {$EXTERNALSYM SSL_CTRL_SESS_CONNECT} - SSL_CTRL_SESS_CONNECT = 21; - {$EXTERNALSYM SSL_CTRL_SESS_CONNECT_GOOD} - SSL_CTRL_SESS_CONNECT_GOOD = 22; - {$EXTERNALSYM SSL_CTRL_SESS_CONNECT_RENEGOTIATE} - SSL_CTRL_SESS_CONNECT_RENEGOTIATE = 23; - {$EXTERNALSYM SSL_CTRL_SESS_ACCEPT} - SSL_CTRL_SESS_ACCEPT = 24; - {$EXTERNALSYM SSL_CTRL_SESS_ACCEPT_GOOD} - SSL_CTRL_SESS_ACCEPT_GOOD = 25; - {$EXTERNALSYM SSL_CTRL_SESS_ACCEPT_RENEGOTIATE} - SSL_CTRL_SESS_ACCEPT_RENEGOTIATE = 26; - {$EXTERNALSYM SSL_CTRL_SESS_HIT} - SSL_CTRL_SESS_HIT = 27; - {$EXTERNALSYM SSL_CTRL_SESS_CB_HIT} - SSL_CTRL_SESS_CB_HIT = 28; - {$EXTERNALSYM SSL_CTRL_SESS_MISSES} - SSL_CTRL_SESS_MISSES = 29; - {$EXTERNALSYM SSL_CTRL_SESS_TIMEOUTS} - SSL_CTRL_SESS_TIMEOUTS = 30; - {$EXTERNALSYM SSL_CTRL_SESS_CACHE_FULL} - SSL_CTRL_SESS_CACHE_FULL = 31; - {$EXTERNALSYM SSL_CTRL_OPTIONS} - SSL_CTRL_OPTIONS = 32; - {$EXTERNALSYM SSL_CTRL_MODE} - SSL_CTRL_MODE = 33; - {$EXTERNALSYM SSL_CTRL_GET_READ_AHEAD} - SSL_CTRL_GET_READ_AHEAD = 40; - {$EXTERNALSYM SSL_CTRL_SET_READ_AHEAD} - SSL_CTRL_SET_READ_AHEAD = 41; - {$EXTERNALSYM SSL_CTRL_SET_SESS_CACHE_SIZE} - SSL_CTRL_SET_SESS_CACHE_SIZE = 42; - {$EXTERNALSYM SSL_CTRL_GET_SESS_CACHE_SIZE} - SSL_CTRL_GET_SESS_CACHE_SIZE = 43; - {$EXTERNALSYM SSL_CTRL_SET_SESS_CACHE_MODE} - SSL_CTRL_SET_SESS_CACHE_MODE = 44; - {$EXTERNALSYM SSL_CTRL_GET_SESS_CACHE_MODE} - SSL_CTRL_GET_SESS_CACHE_MODE = 45; - {$EXTERNALSYM SSL_CTRL_GET_MAX_CERT_LIST} - SSL_CTRL_GET_MAX_CERT_LIST = 50; - {$EXTERNALSYM SSL_CTRL_SET_MAX_CERT_LIST} - SSL_CTRL_SET_MAX_CERT_LIST = 51; - {$EXTERNALSYM SSL_CTRL_SET_MAX_SEND_FRAGMENT} - SSL_CTRL_SET_MAX_SEND_FRAGMENT = 52; - - {$EXTERNALSYM SSL_DEFAULT_CIPHER_LIST} - SSL_DEFAULT_CIPHER_LIST = 'AES:ALL:!aNULL:!eNULL:+RC4:@STRENGTH'; //* low priority for RC4 */ - {$EXTERNALSYM SSL_ERROR_NONE} - SSL_ERROR_NONE = 0; - {$EXTERNALSYM SSL_ERROR_SSL} - SSL_ERROR_SSL = 1; - {$EXTERNALSYM SSL_ERROR_WANT_READ} - SSL_ERROR_WANT_READ = 2; - {$EXTERNALSYM SSL_ERROR_WANT_WRITE} - SSL_ERROR_WANT_WRITE = 3; - {$EXTERNALSYM SSL_ERROR_WANT_X509_LOOKUP} - SSL_ERROR_WANT_X509_LOOKUP = 4; - {$EXTERNALSYM SSL_ERROR_SYSCALL} - SSL_ERROR_SYSCALL = 5; - {$EXTERNALSYM SSL_ERROR_ZERO_RETURN} - SSL_ERROR_ZERO_RETURN = 6; - {$EXTERNALSYM SSL_ERROR_WANT_CONNECT} - SSL_ERROR_WANT_CONNECT = 7; - {$EXTERNALSYM SSL_ERROR_WANT_ACCEPT} - SSL_ERROR_WANT_ACCEPT = 8; - {$EXTERNALSYM X509_FILETYPE_ASN1} - X509_FILETYPE_ASN1 = 2; - {$EXTERNALSYM SSL_FILETYPE_ASN1} - SSL_FILETYPE_ASN1 = X509_FILETYPE_ASN1; - {$EXTERNALSYM X509_FILETYPE_PEM} - X509_FILETYPE_PEM = 1; - {$EXTERNALSYM SSL_FILETYPE_PEM} - SSL_FILETYPE_PEM = X509_FILETYPE_PEM; - {$EXTERNALSYM SSL_F_CLIENT_CERTIFICATE} - SSL_F_CLIENT_CERTIFICATE = 100; - {$EXTERNALSYM SSL_F_CLIENT_HELLO} - SSL_F_CLIENT_HELLO = 101; - {$EXTERNALSYM SSL_F_CLIENT_MASTER_KEY} - SSL_F_CLIENT_MASTER_KEY = 102; - {$EXTERNALSYM SSL_F_D2I_SSL_SESSION} - SSL_F_D2I_SSL_SESSION = 103; - {$EXTERNALSYM SSL_F_DO_SSL3_WRITE} - SSL_F_DO_SSL3_WRITE = 104; - {$EXTERNALSYM SSL_F_DTLS1_ACCEPT} - SSL_F_DTLS1_ACCEPT = 246; - {$EXTERNALSYM SSL_F_DTLS1_ADD_CERT_TO_BUF} - SSL_F_DTLS1_ADD_CERT_TO_BUF = 295; //was 280; - {$EXTERNALSYM SSL_F_DTLS1_BUFFER_RECORD} - SSL_F_DTLS1_BUFFER_RECORD = 247; - {$EXTERNALSYM SSL_F_DTLS1_CHECK_TIMEOUT_NUM} - SSL_F_DTLS1_CHECK_TIMEOUT_NUM = 316; - {$EXTERNALSYM SSL_F_DTLS1_CLIENT_HELLO} - SSL_F_DTLS1_CLIENT_HELLO = 248; - {$EXTERNALSYM SSL_F_DTLS1_CONNECT} - SSL_F_DTLS1_CONNECT = 249; - {$EXTERNALSYM SSL_F_DTLS1_ENC} - SSL_F_DTLS1_ENC = 250; - {$EXTERNALSYM SSL_F_DTLS1_GET_HELLO_VERIFY} - SSL_F_DTLS1_GET_HELLO_VERIFY = 251; - {$EXTERNALSYM SSL_F_DTLS1_GET_MESSAGE} - SSL_F_DTLS1_GET_MESSAGE = 252; - {$EXTERNALSYM SSL_F_DTLS1_GET_MESSAGE_FRAGMENT} - SSL_F_DTLS1_GET_MESSAGE_FRAGMENT = 253; - {$EXTERNALSYM SSL_F_DTLS1_GET_RECORD} - SSL_F_DTLS1_GET_RECORD = 254; - {$EXTERNALSYM SSL_F_DTLS1_HANDLE_TIMEOUT} - SSL_F_DTLS1_HANDLE_TIMEOUT = 297; //was 282 - {$EXTERNALSYM SSL_F_DTLS1_HEARTBEAT} - SSL_F_DTLS1_HEARTBEAT = 305; - {$EXTERNALSYM SSL_F_DTLS1_OUTPUT_CERT_CHAIN} - SSL_F_DTLS1_OUTPUT_CERT_CHAIN = 255; - {$EXTERNALSYM SSL_F_DTLS1_PREPROCESS_FRAGMENT} - SSL_F_DTLS1_PREPROCESS_FRAGMENT = 288; //was 277; - {$EXTERNALSYM SSL_F_DTLS1_PROCESS_OUT_OF_SEQ_MESSAGE} - SSL_F_DTLS1_PROCESS_OUT_OF_SEQ_MESSAGE = 256; - {$EXTERNALSYM SSL_F_DTLS1_PROCESS_RECORD} - SSL_F_DTLS1_PROCESS_RECORD = 257; - {$EXTERNALSYM SSL_F_DTLS1_READ_BYTES} - SSL_F_DTLS1_READ_BYTES = 258; - {$EXTERNALSYM SSL_F_DTLS1_READ_FAILED} - SSL_F_DTLS1_READ_FAILED = 259; - {$EXTERNALSYM SSL_F_DTLS1_SEND_CERTIFICATE_REQUEST} - SSL_F_DTLS1_SEND_CERTIFICATE_REQUEST = 260; - {$EXTERNALSYM SSL_F_DTLS1_SEND_CLIENT_CERTIFICATE} - SSL_F_DTLS1_SEND_CLIENT_CERTIFICATE = 261; - {$EXTERNALSYM SSL_F_DTLS1_SEND_CLIENT_KEY_EXCHANGE} - SSL_F_DTLS1_SEND_CLIENT_KEY_EXCHANGE = 262; - {$EXTERNALSYM SSL_F_DTLS1_SEND_CLIENT_VERIFY} - SSL_F_DTLS1_SEND_CLIENT_VERIFY = 263; - {$EXTERNALSYM SSL_F_DTLS1_SEND_HELLO_VERIFY_REQUEST} - SSL_F_DTLS1_SEND_HELLO_VERIFY_REQUEST = 264; - {$EXTERNALSYM SSL_F_DTLS1_SEND_SERVER_CERTIFICATE} - SSL_F_DTLS1_SEND_SERVER_CERTIFICATE = 265; - {$EXTERNALSYM SSL_F_DTLS1_SEND_SERVER_HELLO} - SSL_F_DTLS1_SEND_SERVER_HELLO = 266; - {$EXTERNALSYM SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE} - SSL_F_DTLS1_SEND_SERVER_KEY_EXCHANGE = 267; - {$EXTERNALSYM SSL_F_DTLS1_WRITE_APP_DATA_BYTES} - SSL_F_DTLS1_WRITE_APP_DATA_BYTES = 268; - {$EXTERNALSYM SSL_F_GET_CLIENT_FINISHED} - SSL_F_GET_CLIENT_FINISHED = 105; - {$EXTERNALSYM SSL_F_GET_CLIENT_HELLO} - SSL_F_GET_CLIENT_HELLO = 106; - {$EXTERNALSYM SSL_F_GET_CLIENT_MASTER_KEY} - SSL_F_GET_CLIENT_MASTER_KEY = 107; - {$EXTERNALSYM SSL_F_GET_SERVER_FINISHED} - SSL_F_GET_SERVER_FINISHED = 108; - {$EXTERNALSYM SSL_F_GET_SERVER_HELLO} - SSL_F_GET_SERVER_HELLO = 109; - {$EXTERNALSYM SSL_F_GET_SERVER_VERIFY} - SSL_F_GET_SERVER_VERIFY = 110; - {$EXTERNALSYM SSL_F_I2D_SSL_SESSION} - SSL_F_I2D_SSL_SESSION = 111; - {$EXTERNALSYM SSL_F_READ_N} - SSL_F_READ_N = 112; - {$EXTERNALSYM SSL_F_REQUEST_CERTIFICATE} - SSL_F_REQUEST_CERTIFICATE = 113; - {$EXTERNALSYM SSL_F_SERVER_HELLO} - SSL_F_SERVER_HELLO = 114; - {$EXTERNALSYM SSL_F_SSL23_ACCEPT} - SSL_F_SSL23_ACCEPT = 115; - {$EXTERNALSYM SSL_F_SSL3_ADD_CERT_TO_BUF} - SSL_F_SSL3_ADD_CERT_TO_BUF = 296; //was 281; - - {$EXTERNALSYM SSL_F_SSL23_CLIENT_HELLO} - SSL_F_SSL23_CLIENT_HELLO = 116; - {$EXTERNALSYM SSL_F_SSL23_CONNECT} - SSL_F_SSL23_CONNECT = 117; - {$EXTERNALSYM SSL_F_SSL23_GET_CLIENT_HELLO} - SSL_F_SSL23_GET_CLIENT_HELLO = 118; - {$EXTERNALSYM SSL_F_SSL23_GET_SERVER_HELLO} - SSL_F_SSL23_GET_SERVER_HELLO = 119; - {$EXTERNALSYM SSL_F_SSL23_READ} - SSL_F_SSL23_READ = 120; - {$EXTERNALSYM SSL_F_SSL23_WRITE} - SSL_F_SSL23_WRITE = 121; - {$EXTERNALSYM SSL_F_SSL2_ACCEPT} - SSL_F_SSL2_ACCEPT = 122; - {$EXTERNALSYM SSL_F_SSL2_CONNECT} - SSL_F_SSL2_CONNECT = 123; - {$EXTERNALSYM SSL_F_SSL2_ENC_INIT} - SSL_F_SSL2_ENC_INIT = 124; - {$EXTERNALSYM SSL_F_SSL2_READ} - SSL_F_SSL2_READ = 125; - {$EXTERNALSYM SSL_F_SSL2_SET_CERTIFICATE} - SSL_F_SSL2_SET_CERTIFICATE = 126; - {$EXTERNALSYM SSL_F_SSL2_WRITE} - SSL_F_SSL2_WRITE = 127; - {$EXTERNALSYM SSL_F_SSL3_ACCEPT} - SSL_F_SSL3_ACCEPT = 128; - {$EXTERNALSYM SSL_F_SSL3_CHANGE_CIPHER_STATE} - SSL_F_SSL3_CHANGE_CIPHER_STATE = 129; - {$EXTERNALSYM SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM} - SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM = 130; - {$EXTERNALSYM SSL_F_SSL3_CHECK_CLIENT_HELLO} - SSL_F_SSL3_CHECK_CLIENT_HELLO = 304; - {$EXTERNALSYM SSL_F_SSL3_CLIENT_HELLO} - SSL_F_SSL3_CLIENT_HELLO = 131; - {$EXTERNALSYM SSL_F_SSL3_CONNECT} - SSL_F_SSL3_CONNECT = 132; - {$EXTERNALSYM SSL_F_SSL3_CTRL} - SSL_F_SSL3_CTRL = 213; - {$EXTERNALSYM SSL_F_SSL3_CTX_CTRL} - SSL_F_SSL3_CTX_CTRL = 133; - {$EXTERNALSYM SSL_F_SSL3_DIGEST_CACHED_RECORDS} - SSL_F_SSL3_DIGEST_CACHED_RECORDS = 293; - {$EXTERNALSYM SSL_F_SSL3_DO_CHANGE_CIPHER_SPEC} - SSL_F_SSL3_DO_CHANGE_CIPHER_SPEC = 292;//was 279; - {$EXTERNALSYM SSL_F_SSL3_ENC} - SSL_F_SSL3_ENC = 134; - {$EXTERNALSYM SSL_F_SSL3_GET_CERTIFICATE_REQUEST} - SSL_F_SSL3_GET_CERTIFICATE_REQUEST = 135; - {$EXTERNALSYM SSL_F_SSL3_GET_CERT_STATUS} - SSL_F_SSL3_GET_CERT_STATUS = 289;//was 288; - {$EXTERNALSYM SSL_F_SSL3_GET_CERT_VERIFY} - SSL_F_SSL3_GET_CERT_VERIFY = 136; - {$EXTERNALSYM SSL_F_SSL3_GET_CLIENT_CERTIFICATE} - SSL_F_SSL3_GET_CLIENT_CERTIFICATE = 137; - {$EXTERNALSYM SSL_F_SSL3_GET_CLIENT_HELLO} - SSL_F_SSL3_GET_CLIENT_HELLO = 138; - {$EXTERNALSYM SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE} - SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE = 139; - {$EXTERNALSYM SSL_F_SSL3_GET_FINISHED} - SSL_F_SSL3_GET_FINISHED = 140; - {$EXTERNALSYM SSL_F_SSL3_GET_KEY_EXCHANGE} - SSL_F_SSL3_GET_KEY_EXCHANGE = 141; - {$EXTERNALSYM SSL_F_SSL3_GET_MESSAGE} - SSL_F_SSL3_GET_MESSAGE = 142; - {$EXTERNALSYM SSL_F_SSL3_GET_NEW_SESSION_TICKET} - SSL_F_SSL3_GET_NEW_SESSION_TICKET = 283; - {$EXTERNALSYM SSL_F_SSL3_GET_NEXT_PROTO} - SSL_F_SSL3_GET_NEXT_PROTO = 306; - {$EXTERNALSYM SSL_F_SSL3_GET_RECORD} - SSL_F_SSL3_GET_RECORD = 143; - {$EXTERNALSYM SSL_F_SSL3_GET_SERVER_CERTIFICATE} - SSL_F_SSL3_GET_SERVER_CERTIFICATE = 144; - {$EXTERNALSYM SSL_F_SSL3_GET_SERVER_DONE} - SSL_F_SSL3_GET_SERVER_DONE = 145; - {$EXTERNALSYM SSL_F_SSL3_GET_SERVER_HELLO} - SSL_F_SSL3_GET_SERVER_HELLO = 146; - {$EXTERNALSYM SSL_F_SSL3_HANDSHAKE_MAC} - SSL_F_SSL3_HANDSHAKE_MAC = 285; - {$EXTERNALSYM SSL_F_SSL3_NEW_SESSION_TICKET} - SSL_F_SSL3_NEW_SESSION_TICKET = 287; //was 284; - {$EXTERNALSYM SSL_F_SSL3_OUTPUT_CERT_CHAIN} - SSL_F_SSL3_OUTPUT_CERT_CHAIN = 147; - {$EXTERNALSYM SSL_F_SSL3_READ_BYTES} - SSL_F_SSL3_READ_BYTES = 148; - {$EXTERNALSYM SSL_F_SSL3_READ_N} - SSL_F_SSL3_READ_N = 149; - {$EXTERNALSYM SSL_F_SSL3_SEND_CERTIFICATE_REQUEST} - SSL_F_SSL3_SEND_CERTIFICATE_REQUEST = 150; - {$EXTERNALSYM SSL_F_SSL3_SEND_CLIENT_CERTIFICATE} - SSL_F_SSL3_SEND_CLIENT_CERTIFICATE = 151; - {$EXTERNALSYM SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE} - SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE = 152; - {$EXTERNALSYM SSL_F_SSL3_SEND_CLIENT_VERIFY} - SSL_F_SSL3_SEND_CLIENT_VERIFY = 153; - {$EXTERNALSYM SSL_F_SSL3_SEND_SERVER_CERTIFICATE} - SSL_F_SSL3_SEND_SERVER_CERTIFICATE = 154; - {$EXTERNALSYM SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE} - SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE = 155; - {$EXTERNALSYM SSL_F_SSL3_SETUP_KEY_BLOCK} - SSL_F_SSL3_SETUP_KEY_BLOCK = 157; - {$EXTERNALSYM SSL_F_SSL3_SETUP_READ_BUFFER} - SSL_F_SSL3_SETUP_READ_BUFFER = 156; - {$EXTERNALSYM SSL_F_SSL3_SETUP_WRITE_BUFFER} - SSL_F_SSL3_SETUP_WRITE_BUFFER = 291; - {$EXTERNALSYM SSL_F_SSL3_WRITE_BYTES} - SSL_F_SSL3_WRITE_BYTES = 158; - {$EXTERNALSYM SSL_F_SSL3_WRITE_PENDING} - SSL_F_SSL3_WRITE_PENDING = 159; - {$EXTERNALSYM SSL_F_SSL_ADD_CLIENTHELLO_RENEGOTIATE_EXT} - SSL_F_SSL_ADD_CLIENTHELLO_RENEGOTIATE_EXT = 298;//was 285; - {$EXTERNALSYM SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT} - SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT = 277; //was 272; - {$EXTERNALSYM SSL_F_SSL_ADD_CLIENTHELLO_USE_SRTP_EXT} - SSL_F_SSL_ADD_CLIENTHELLO_USE_SRTP_EXT = 307; - {$EXTERNALSYM SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK} - SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK = 215; - {$EXTERNALSYM SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK} - SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK = 216; - {$EXTERNALSYM SSL_F_SSL_ADD_SERVERHELLO_RENEGOTIATE_EXT} - SSL_F_SSL_ADD_SERVERHELLO_RENEGOTIATE_EXT = 299;//was 286; - {$EXTERNALSYM SSL_F_SSL_ADD_SERVERHELLO_TLSEXT} - SSL_F_SSL_ADD_SERVERHELLO_TLSEXT = 278; //was 273; - {$EXTERNALSYM SSL_F_SSL_ADD_SERVERHELLO_USE_SRTP_EXT} - SSL_F_SSL_ADD_SERVERHELLO_USE_SRTP_EXT = 308; - {$EXTERNALSYM SSL_F_SSL_BAD_METHOD} - SSL_F_SSL_BAD_METHOD = 160; - {$EXTERNALSYM SSL_F_SSL_BYTES_TO_CIPHER_LIST} - SSL_F_SSL_BYTES_TO_CIPHER_LIST = 161; - {$EXTERNALSYM SSL_F_SSL_CERT_DUP} - SSL_F_SSL_CERT_DUP = 221; - {$EXTERNALSYM SSL_F_SSL_CERT_INST} - SSL_F_SSL_CERT_INST = 222; - {$EXTERNALSYM SSL_F_SSL_CERT_INSTANTIATE} - SSL_F_SSL_CERT_INSTANTIATE = 214; - {$EXTERNALSYM SSL_F_SSL_CERT_NEW} - SSL_F_SSL_CERT_NEW = 162; - {$EXTERNALSYM SSL_F_SSL_CHECK_PRIVATE_KEY} - SSL_F_SSL_CHECK_PRIVATE_KEY = 163; - {$EXTERNALSYM SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT} - SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT = 280;//was 274; - {$EXTERNALSYM SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG} - SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG = 279; - {$EXTERNALSYM SSL_F_SSL_CIPHER_PROCESS_RULESTR} - SSL_F_SSL_CIPHER_PROCESS_RULESTR = 230; - {$EXTERNALSYM SSL_F_SSL_CIPHER_STRENGTH_SORT} - SSL_F_SSL_CIPHER_STRENGTH_SORT = 231; - {$EXTERNALSYM SSL_F_SSL_CLEAR} - SSL_F_SSL_CLEAR = 164; - {$EXTERNALSYM SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD} - SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD = 165; - {$EXTERNALSYM SSL_F_SSL_CREATE_CIPHER_LIST} - SSL_F_SSL_CREATE_CIPHER_LIST = 166; - {$EXTERNALSYM SSL_F_SSL_CTRL} - SSL_F_SSL_CTRL = 232; - {$EXTERNALSYM SSL_F_SSL_CTX_CHECK_PRIVATE_KEY} - SSL_F_SSL_CTX_CHECK_PRIVATE_KEY = 168; - {$EXTERNALSYM SSL_F_SSL_CTX_MAKE_PROFILES} - SSL_F_SSL_CTX_MAKE_PROFILES = 309; - {$EXTERNALSYM SSL_F_SSL_CTX_NEW} - SSL_F_SSL_CTX_NEW = 169; - {$EXTERNALSYM SSL_F_SSL_CTX_SET_CIPHER_LIST} - SSL_F_SSL_CTX_SET_CIPHER_LIST = 269; - {$EXTERNALSYM SSL_F_SSL_CTX_SET_CLIENT_CERT_ENGINE} - SSL_F_SSL_CTX_SET_CLIENT_CERT_ENGINE = 290; //was 278; - {$EXTERNALSYM SSL_F_SSL_CTX_SET_PURPOSE} - SSL_F_SSL_CTX_SET_PURPOSE = 226; - {$EXTERNALSYM SSL_F_SSL_CTX_SET_SESSION_ID_CONTEXT} - SSL_F_SSL_CTX_SET_SESSION_ID_CONTEXT = 219; - {$EXTERNALSYM SSL_F_SSL_CTX_SET_SSL_VERSION} - SSL_F_SSL_CTX_SET_SSL_VERSION = 170; - {$EXTERNALSYM SSL_F_SSL_CTX_SET_TRUST} - SSL_F_SSL_CTX_SET_TRUST = 229; - {$EXTERNALSYM SSL_F_SSL_CTX_USE_CERTIFICATE} - SSL_F_SSL_CTX_USE_CERTIFICATE = 171; - {$EXTERNALSYM SSL_F_SSL_CTX_USE_CERTIFICATE_ASN1} - SSL_F_SSL_CTX_USE_CERTIFICATE_ASN1 = 172; - {$EXTERNALSYM SSL_F_SSL_CTX_USE_CERTIFICATE_CHAIN_FILE} - SSL_F_SSL_CTX_USE_CERTIFICATE_CHAIN_FILE = 220; - {$EXTERNALSYM SSL_F_SSL_CTX_USE_CERTIFICATE_FILE} - SSL_F_SSL_CTX_USE_CERTIFICATE_FILE = 173; - {$EXTERNALSYM SSL_F_SSL_CTX_USE_PRIVATEKEY} - SSL_F_SSL_CTX_USE_PRIVATEKEY = 174; - {$EXTERNALSYM SSL_F_SSL_CTX_USE_PRIVATEKEY_ASN1} - SSL_F_SSL_CTX_USE_PRIVATEKEY_ASN1 = 175; - {$EXTERNALSYM SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE} - SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE = 176; - {$EXTERNALSYM SSL_F_SSL_CTX_USE_PSK_IDENTITY_HINT} - SSL_F_SSL_CTX_USE_PSK_IDENTITY_HINT = 272; - {$EXTERNALSYM SSL_F_SSL_CTX_USE_RSAPRIVATEKEY} - SSL_F_SSL_CTX_USE_RSAPRIVATEKEY = 177; - {$EXTERNALSYM SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_ASN1} - SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_ASN1 = 178; - {$EXTERNALSYM SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_FILE} - SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_FILE = 179; - {$EXTERNALSYM SSL_F_SSL_DO_HANDSHAKE} - SSL_F_SSL_DO_HANDSHAKE = 180; - {$EXTERNALSYM SSL_F_SSL_GET_NEW_SESSION} - SSL_F_SSL_GET_NEW_SESSION = 181; - {$EXTERNALSYM SSL_F_SSL_GET_PREV_SESSION} - SSL_F_SSL_GET_PREV_SESSION = 217; - {$EXTERNALSYM SSL_F_SSL_GET_SERVER_SEND_CERT} - SSL_F_SSL_GET_SERVER_SEND_CERT = 182; - {$EXTERNALSYM SSL_F_SSL_GET_SERVER_SEND_PKEY} - SSL_F_SSL_GET_SERVER_SEND_PKEY = 317; - {$EXTERNALSYM SSL_F_SSL_GET_SIGN_PKEY} - SSL_F_SSL_GET_SIGN_PKEY = 183; - {$EXTERNALSYM SSL_F_SSL_INIT_WBIO_BUFFER} - SSL_F_SSL_INIT_WBIO_BUFFER = 184; - {$EXTERNALSYM SSL_F_SSL_LOAD_CLIENT_CA_FILE} - SSL_F_SSL_LOAD_CLIENT_CA_FILE = 185; - {$EXTERNALSYM SSL_F_SSL_NEW} - SSL_F_SSL_NEW = 186; - {$EXTERNALSYM SSL_F_SSL_PARSE_CLIENTHELLO_RENEGOTIATE_EXT} - SSL_F_SSL_PARSE_CLIENTHELLO_RENEGOTIATE_EXT = 300; //was 287; - {$EXTERNALSYM SSL_F_SSL_PARSE_CLIENTHELLO_TLSEXT} - SSL_F_SSL_PARSE_CLIENTHELLO_TLSEXT = 302; //was 290; - {$EXTERNALSYM SSL_F_SSL_PARSE_CLIENTHELLO_USE_SRTP_EXT} - SSL_F_SSL_PARSE_CLIENTHELLO_USE_SRTP_EXT = 310; - {$EXTERNALSYM SSL_F_SSL_PARSE_SERVERHELLO_RENEGOTIATE_EXT} - SSL_F_SSL_PARSE_SERVERHELLO_RENEGOTIATE_EXT = 301;//was 289; - {$EXTERNALSYM SSL_F_SSL_PARSE_SERVERHELLO_TLSEXT} - SSL_F_SSL_PARSE_SERVERHELLO_TLSEXT = 303; //was 291; - {$EXTERNALSYM SSL_F_SSL_PARSE_SERVERHELLO_USE_SRTP_EXT} - SSL_F_SSL_PARSE_SERVERHELLO_USE_SRTP_EXT = 311; - {$EXTERNALSYM SSL_F_SSL_PEEK} - SSL_F_SSL_PEEK = 270; - {$EXTERNALSYM SSL_F_SSL_PREPARE_CLIENTHELLO_TLSEXT} - SSL_F_SSL_PREPARE_CLIENTHELLO_TLSEXT = 281; //was 275; - {$EXTERNALSYM SSL_F_SSL_PREPARE_SERVERHELLO_TLSEXT} - SSL_F_SSL_PREPARE_SERVERHELLO_TLSEXT = 282;//was 276; - {$EXTERNALSYM SSL_F_SSL_READ} - SSL_F_SSL_READ = 223; - {$EXTERNALSYM SSL_F_SSL_RSA_PRIVATE_DECRYPT} - SSL_F_SSL_RSA_PRIVATE_DECRYPT = 187; - {$EXTERNALSYM SSL_F_SSL_RSA_PUBLIC_ENCRYPT} - SSL_F_SSL_RSA_PUBLIC_ENCRYPT = 188; - {$EXTERNALSYM SSL_F_SSL_SESSION_NEW} - SSL_F_SSL_SESSION_NEW = 189; - {$EXTERNALSYM SSL_F_SSL_SESSION_PRINT_FP} - SSL_F_SSL_SESSION_PRINT_FP = 190; - {$EXTERNALSYM SSL_F_SSL_SESSION_SET1_ID_CONTEXT} - SSL_F_SSL_SESSION_SET1_ID_CONTEXT = 312; - {$EXTERNALSYM SSL_F_SSL_SESS_CERT_NEW} - SSL_F_SSL_SESS_CERT_NEW = 225; - {$EXTERNALSYM SSL_F_SSL_SET_CERT} - SSL_F_SSL_SET_CERT = 191; - {$EXTERNALSYM SSL_F_SSL_SET_FD} - SSL_F_SSL_SET_FD = 192; - {$EXTERNALSYM SSL_F_SSL_SET_PKEY} - SSL_F_SSL_SET_PKEY = 193; - {$EXTERNALSYM SSL_F_SSL_SET_RFD} - SSL_F_SSL_SET_RFD = 194; - {$EXTERNALSYM SSL_F_SSL_SET_SESSION} - SSL_F_SSL_SET_SESSION = 195; - {$EXTERNALSYM SSL_F_SSL_SET_SESSION_ID_CONTEXT} - SSL_F_SSL_SET_SESSION_ID_CONTEXT = 218; - {$EXTERNALSYM SSL_F_SSL_SET_SESSION_TICKET_EXT} - SSL_F_SSL_SET_SESSION_TICKET_EXT = 294; - {$EXTERNALSYM SSL_F_SSL_SET_WFD} - SSL_F_SSL_SET_WFD = 196; - {$EXTERNALSYM SSL_F_SSL_SHUTDOWN} - SSL_F_SSL_SHUTDOWN = 224; - {$EXTERNALSYM SSL_F_SSL_SRP_CTX_INIT} - SSL_F_SSL_SRP_CTX_INIT = 313; - {$EXTERNALSYM SSL_F_SSL_UNDEFINED_FUNCTION} - SSL_F_SSL_UNDEFINED_FUNCTION = 197; - {$EXTERNALSYM SSL_F_SSL_USE_CERTIFICATE} - SSL_F_SSL_USE_CERTIFICATE = 198; - {$EXTERNALSYM SSL_F_SSL_USE_CERTIFICATE_ASN1} - SSL_F_SSL_USE_CERTIFICATE_ASN1 = 199; - {$EXTERNALSYM SSL_F_SSL_USE_CERTIFICATE_FILE} - SSL_F_SSL_USE_CERTIFICATE_FILE = 200; - {$EXTERNALSYM SSL_F_SSL_USE_PRIVATEKEY} - SSL_F_SSL_USE_PRIVATEKEY = 201; - {$EXTERNALSYM SSL_F_SSL_USE_PRIVATEKEY_ASN1} - SSL_F_SSL_USE_PRIVATEKEY_ASN1 = 202; - {$EXTERNALSYM SSL_F_SSL_USE_PRIVATEKEY_FILE} - SSL_F_SSL_USE_PRIVATEKEY_FILE = 203; - {$EXTERNALSYM SSL_F_SSL_USE_PSK_IDENTITY_HINT} - SSL_F_SSL_USE_PSK_IDENTITY_HINT = 273; - {$EXTERNALSYM SSL_F_SSL_USE_RSAPRIVATEKEY} - SSL_F_SSL_USE_RSAPRIVATEKEY = 204; - {$EXTERNALSYM SSL_F_SSL_USE_RSAPRIVATEKEY_ASN1} - SSL_F_SSL_USE_RSAPRIVATEKEY_ASN1 = 205; - {$EXTERNALSYM SSL_F_SSL_USE_RSAPRIVATEKEY_FILE} - SSL_F_SSL_USE_RSAPRIVATEKEY_FILE = 206; - {$EXTERNALSYM SSL_F_SSL_VERIFY_CERT_CHAIN} - SSL_F_SSL_VERIFY_CERT_CHAIN = 207; - {$EXTERNALSYM SSL_F_SSL_WRITE} - SSL_F_SSL_WRITE = 208; - {$EXTERNALSYM SSL_F_TLS1_CERT_VERIFY_MAC} - SSL_F_TLS1_CERT_VERIFY_MAC = 286; - {$EXTERNALSYM SSL_F_TLS1_CHANGE_CIPHER_STATE} - SSL_F_TLS1_CHANGE_CIPHER_STATE = 209; - {$EXTERNALSYM SSL_F_TLS1_CHECK_SERVERHELLO_TLSEXT} - SSL_F_TLS1_CHECK_SERVERHELLO_TLSEXT = 274; - {$EXTERNALSYM SSL_F_TLS1_ENC} - SSL_F_TLS1_ENC = 210; - {$EXTERNALSYM SSL_F_TLS1_EXPORT_KEYING_MATERIAL} - SSL_F_TLS1_EXPORT_KEYING_MATERIAL = 314; - {$EXTERNALSYM SSL_F_TLS1_HEARTBEAT} - SSL_F_TLS1_HEARTBEAT = 315; - {$EXTERNALSYM SSL_F_TLS1_PREPARE_CLIENTHELLO_TLSEXT} - SSL_F_TLS1_PREPARE_CLIENTHELLO_TLSEXT = 275; - {$EXTERNALSYM SSL_F_TLS1_PREPARE_SERVERHELLO_TLSEXT} - SSL_F_TLS1_PREPARE_SERVERHELLO_TLSEXT = 276; - {$EXTERNALSYM SSL_F_TLS1_PRF} - SSL_F_TLS1_PRF = 284; - {$EXTERNALSYM SSL_F_TLS1_SETUP_KEY_BLOCK} - SSL_F_TLS1_SETUP_KEY_BLOCK = 211; - {$EXTERNALSYM SSL_F_WRITE_PENDING} - SSL_F_WRITE_PENDING = 212; - {$EXTERNALSYM SSL_MAX_KEY_ARG_LENGTH} - SSL_MAX_KEY_ARG_LENGTH = 8; - {$EXTERNALSYM SSL_MAX_MASTER_KEY_LENGTH} - SSL_MAX_MASTER_KEY_LENGTH = 48; - {$EXTERNALSYM SSL_MAX_SID_CTX_LENGTH} - SSL_MAX_SID_CTX_LENGTH = 32; - {$EXTERNALSYM SSL_MAX_KRB5_PRINCIPAL_LENGTH} - SSL_MAX_KRB5_PRINCIPAL_LENGTH = 256; - {$EXTERNALSYM SSL_MAX_SSL_SESSION_ID_LENGTH} - SSL_MAX_SSL_SESSION_ID_LENGTH = 32; - {$EXTERNALSYM SSL_MODE_ENABLE_PARTIAL_WRITE} - SSL_MODE_ENABLE_PARTIAL_WRITE = $00000001; - {$EXTERNALSYM SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER} - SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER = $00000002; - {$EXTERNALSYM SSL_MODE_AUTO_RETRY} - SSL_MODE_AUTO_RETRY = $00000004; - {$EXTERNALSYM SSL_MODE_NO_AUTO_CHAIN} - SSL_MODE_NO_AUTO_CHAIN = $00000008; -///* Save RAM by releasing read and write buffers when they're empty. (SSL3 and -// * TLS only.) "Released" buffers are put onto a free-list in the context -// * or just freed (depending on the context's setting for freelist_max_len). */ - {$EXTERNALSYM SSL_MODE_RELEASE_BUFFERS} - SSL_MODE_RELEASE_BUFFERS = $00000010; - {$IFDEF OPENSSL_NO_BUF_FREELISTS} - {$EXTERNALSYM SSL_MAX_BUF_FREELIST_LEN_DEFAULT} - SSL_MAX_BUF_FREELIST_LEN_DEFAULT = 32; - {$ENDIF} - {$EXTERNALSYM SSL_NOTHING} - SSL_NOTHING = 1; - {$EXTERNALSYM SSL_WRITING} - SSL_WRITING = 2; - {$EXTERNALSYM SSL_READING} - SSL_READING = 3; - {$EXTERNALSYM SSL_X509_LOOKUP} - SSL_X509_LOOKUP = 4; - {$EXTERNALSYM SSL_OP_MICROSOFT_SESS_ID_BUG} - SSL_OP_MICROSOFT_SESS_ID_BUG = $00000001; - {$EXTERNALSYM SSL_OP_NETSCAPE_CHALLENGE_BUG} - SSL_OP_NETSCAPE_CHALLENGE_BUG = $00000002; -//* Allow initial connection to servers that don't support RI */ - {$EXTERNALSYM SSL_OP_LEGACY_SERVER_CONNECT} - SSL_OP_LEGACY_SERVER_CONNECT = $00000004; - - {$EXTERNALSYM SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG} - SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG = $00000008; - {$EXTERNALSYM SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG} - SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG = $00000010; - {$EXTERNALSYM SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER} - SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER = $00000020; - {$EXTERNALSYM SSL_OP_MSIE_SSLV2_RSA_PADDING} - SSL_OP_MSIE_SSLV2_RSA_PADDING = $00000040; - {$EXTERNALSYM SSL_OP_SSLEAY_080_CLIENT_DH_BUG} - SSL_OP_SSLEAY_080_CLIENT_DH_BUG = $00000080; - {$EXTERNALSYM SSL_OP_TLS_D5_BUG} - SSL_OP_TLS_D5_BUG = $00000100; - {$EXTERNALSYM SSL_OP_TLS_BLOCK_PADDING_BUG} - SSL_OP_TLS_BLOCK_PADDING_BUG = $00000200; - {$EXTERNALSYM SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS} - SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS = $00000800; - {$EXTERNALSYM SSL_OP_ALL} - SSL_OP_ALL = $00000FFF; //this was $000FFFFF; before 0.9.7 - {$EXTERNALSYM SSL_OP_NO_QUERY_MTU} - SSL_OP_NO_QUERY_MTU = $00001000; - {$EXTERNALSYM SSL_OP_COOKIE_EXCHANGE} - SSL_OP_COOKIE_EXCHANGE = $00002000; - {$EXTERNALSYM SSL_OP_NO_TICKET} - SSL_OP_NO_TICKET = $00004000; -//* Use Cisco's "speshul" version of DTLS_BAD_VER (as client) */ - {$EXTERNALSYM SSL_OP_CISCO_ANYCONNECT} - SSL_OP_CISCO_ANYCONNECT = $00008000; - {$EXTERNALSYM SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION} - SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION = $00010000; -//* Don't use compression even if supported */ - {$EXTERNALSYM SSL_OP_NO_COMPRESSION} - SSL_OP_NO_COMPRESSION = $00020000; -//* Permit unsafe legacy renegotiation */ - {$EXTERNALSYM SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION} - SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION = $00040000; - - {$EXTERNALSYM SSL_OP_SINGLE_ECDH_USE} - SSL_OP_SINGLE_ECDH_USE = $00080000; - {$EXTERNALSYM SSL_OP_SINGLE_DH_USE} - SSL_OP_SINGLE_DH_USE = $00100000; - {$EXTERNALSYM SSL_OP_EPHEMERAL_RSA} - SSL_OP_EPHEMERAL_RSA = $00200000; - {$EXTERNALSYM SSL_OP_CIPHER_SERVER_PREFERENCE} - SSL_OP_CIPHER_SERVER_PREFERENCE = $00400000; - {$EXTERNALSYM SSL_OP_TLS_ROLLBACK_BUG} - SSL_OP_TLS_ROLLBACK_BUG = $00800000; //was $00000400; - {$EXTERNALSYM SSL_OP_NO_SSLv2} - SSL_OP_NO_SSLv2 = $01000000; - {$EXTERNALSYM SSL_OP_NO_SSLv3} - SSL_OP_NO_SSLv3 = $02000000; - {$EXTERNALSYM SSL_OP_NO_TLSv1} - SSL_OP_NO_TLSv1 = $04000000; - {$EXTERNALSYM SSL_OP_NO_TLSv1_2} - SSL_OP_NO_TLSv1_2 = $08000000; - {$EXTERNALSYM SSL_OP_NO_TLSv1_1} - SSL_OP_NO_TLSv1_1 = $10000000; - {$EXTERNALSYM SSL_OP_PKCS1_CHECK_1} - SSL_OP_PKCS1_CHECK_1 = $00; //was $08000000; - {$EXTERNALSYM SSL_OP_PKCS1_CHECK_2} - SSL_OP_PKCS1_CHECK_2 = $00; //was $10000000; - - {$EXTERNALSYM SSL_OP_NETSCAPE_CA_DN_BUG} - SSL_OP_NETSCAPE_CA_DN_BUG = $20000000; - //OPENSSL_SSL_OP_NON_EXPORT_FIRST was removed for OpenSSL 0.9.7 (that was $40000000;) - {$EXTERNALSYM SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG} - SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG = $40000000;// was $80000000; -//* Make server add server-hello extension from early version of -// * cryptopro draft, when GOST ciphersuite is negotiated. -// * Required for interoperability with CryptoPro CSP 3.x -// */ - {$EXTERNALSYM SSL_OP_CRYPTOPRO_TLSEXT_BUG} - SSL_OP_CRYPTOPRO_TLSEXT_BUG = $80000000; - - {$EXTERNALSYM SSL_RECEIVED_SHUTDOWN} - SSL_RECEIVED_SHUTDOWN = 2; - {$EXTERNALSYM SSL_R_APP_DATA_IN_HANDSHAKE} - SSL_R_APP_DATA_IN_HANDSHAKE = 100; - {$EXTERNALSYM SSL_R_ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT} - SSL_R_ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT = 272; - {$EXTERNALSYM SSL_R_BAD_ALERT_RECORD} - SSL_R_BAD_ALERT_RECORD = 101; - {$EXTERNALSYM SSL_R_BAD_AUTHENTICATION_TYPE} - SSL_R_BAD_AUTHENTICATION_TYPE = 102; - {$EXTERNALSYM SSL_R_BAD_CHANGE_CIPHER_SPEC} - SSL_R_BAD_CHANGE_CIPHER_SPEC = 103; - {$EXTERNALSYM SSL_R_BAD_CHECKSUM} - SSL_R_BAD_CHECKSUM = 104; - {$EXTERNALSYM SSL_R_BAD_CLIENT_REQUEST} - SSL_R_BAD_CLIENT_REQUEST = 105; - {$EXTERNALSYM SSL_R_BAD_DATA_RETURNED_BY_CALLBACK} - SSL_R_BAD_DATA_RETURNED_BY_CALLBACK = 106; - {$EXTERNALSYM SSL_R_BAD_DECOMPRESSION} - SSL_R_BAD_DECOMPRESSION = 107; - {$EXTERNALSYM SSL_R_BAD_DH_G_LENGTH} - SSL_R_BAD_DH_G_LENGTH = 108; - {$EXTERNALSYM SSL_R_BAD_DH_PUB_KEY_LENGTH} - SSL_R_BAD_DH_PUB_KEY_LENGTH = 109; - {$EXTERNALSYM SSL_R_BAD_DH_P_LENGTH} - SSL_R_BAD_DH_P_LENGTH = 110; - {$EXTERNALSYM SSL_R_BAD_DIGEST_LENGTH} - SSL_R_BAD_DIGEST_LENGTH = 111; - {$EXTERNALSYM SSL_R_BAD_DSA_SIGNATURE} - SSL_R_BAD_DSA_SIGNATURE = 112; - {$EXTERNALSYM SSL_R_BAD_ECC_CERT} - SSL_R_BAD_ECC_CERT = 304; - {$EXTERNALSYM SSL_R_BAD_ECDSA_SIGNATURE} - SSL_R_BAD_ECDSA_SIGNATURE = 305; - {$EXTERNALSYM SSL_R_BAD_ECPOINT} - SSL_R_BAD_ECPOINT = 306; - {$EXTERNALSYM SSL_R_BAD_HANDSHAKE_LENGTH} - SSL_R_BAD_HANDSHAKE_LENGTH = 332; - {$EXTERNALSYM SSL_R_BAD_HELLO_REQUEST} - SSL_R_BAD_HELLO_REQUEST = 105; - {$EXTERNALSYM SSL_R_BAD_LENGTH} - SSL_R_BAD_LENGTH = 271; - {$EXTERNALSYM SSL_R_BAD_MAC_DECODE} - SSL_R_BAD_MAC_DECODE = 113; - {$EXTERNALSYM SSL_R_BAD_MAC_LENGTH} - SSL_R_BAD_MAC_LENGTH = 333; - {$EXTERNALSYM SSL_R_BAD_MESSAGE_TYPE} - SSL_R_BAD_MESSAGE_TYPE = 114; - {$EXTERNALSYM SSL_R_BAD_PACKET_LENGTH} - SSL_R_BAD_PACKET_LENGTH = 115; - {$EXTERNALSYM SSL_R_BAD_PROTOCOL_VERSION_NUMBER} - SSL_R_BAD_PROTOCOL_VERSION_NUMBER = 116; - {$EXTERNALSYM SSL_R_BAD_PSK_IDENTITY_HINT_LENGTH} - SSL_R_BAD_PSK_IDENTITY_HINT_LENGTH = 316; - {$EXTERNALSYM SSL_R_BAD_RESPONSE_ARGUMENT} - SSL_R_BAD_RESPONSE_ARGUMENT = 117; - {$EXTERNALSYM SSL_R_BAD_RSA_DECRYPT} - SSL_R_BAD_RSA_DECRYPT = 118; - {$EXTERNALSYM SSL_R_BAD_RSA_ENCRYPT} - SSL_R_BAD_RSA_ENCRYPT = 119; - {$EXTERNALSYM SSL_R_BAD_RSA_E_LENGTH} - SSL_R_BAD_RSA_E_LENGTH = 120; - {$EXTERNALSYM SSL_R_BAD_RSA_MODULUS_LENGTH} - SSL_R_BAD_RSA_MODULUS_LENGTH = 121; - {$EXTERNALSYM SSL_R_BAD_RSA_SIGNATURE} - SSL_R_BAD_RSA_SIGNATURE = 122; - {$EXTERNALSYM SSL_R_BAD_SIGNATURE} - SSL_R_BAD_SIGNATURE = 123; - {$EXTERNALSYM SSL_R_BAD_SRP_A_LENGTH} - SSL_R_BAD_SRP_A_LENGTH = 347; - {$EXTERNALSYM SSL_R_BAD_SRP_B_LENGTH} - SSL_R_BAD_SRP_B_LENGTH = 348; - {$EXTERNALSYM SSL_R_BAD_SRP_G_LENGTH} - SSL_R_BAD_SRP_G_LENGTH = 349; - {$EXTERNALSYM SSL_R_BAD_SRP_N_LENGTH} - SSL_R_BAD_SRP_N_LENGTH = 350; - {$EXTERNALSYM SSL_R_BAD_SRP_S_LENGTH} - SSL_R_BAD_SRP_S_LENGTH = 351; - {$EXTERNALSYM SSL_R_BAD_SRTP_MKI_VALUE} - SSL_R_BAD_SRTP_MKI_VALUE = 352; - {$EXTERNALSYM SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST} - SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST = 353; - - {$EXTERNALSYM SSL_R_BAD_SSL_FILETYPE} - SSL_R_BAD_SSL_FILETYPE = 124; - {$EXTERNALSYM SSL_R_BAD_SSL_SESSION_ID_LENGTH} - SSL_R_BAD_SSL_SESSION_ID_LENGTH = 125; - {$EXTERNALSYM SSL_R_BAD_STATE} - SSL_R_BAD_STATE = 126; - {$EXTERNALSYM SSL_R_BAD_WRITE_RETRY} - SSL_R_BAD_WRITE_RETRY = 127; - {$EXTERNALSYM SSL_R_BIO_NOT_SET} - SSL_R_BIO_NOT_SET = 128; - {$EXTERNALSYM SSL_R_BLOCK_CIPHER_PAD_IS_WRONG} - SSL_R_BLOCK_CIPHER_PAD_IS_WRONG = 129; - {$EXTERNALSYM SSL_R_BN_LIB} - SSL_R_BN_LIB = 130; - {$EXTERNALSYM SSL_R_CA_DN_LENGTH_MISMATCH} - SSL_R_CA_DN_LENGTH_MISMATCH = 131; - {$EXTERNALSYM SSL_R_CA_DN_TOO_LONG} - SSL_R_CA_DN_TOO_LONG = 132; - {$EXTERNALSYM SSL_R_CCS_RECEIVED_EARLY} - SSL_R_CCS_RECEIVED_EARLY = 133; - {$EXTERNALSYM SSL_R_CERTIFICATE_VERIFY_FAILED} - SSL_R_CERTIFICATE_VERIFY_FAILED = 134; - {$EXTERNALSYM SSL_R_CERT_LENGTH_MISMATCH} - SSL_R_CERT_LENGTH_MISMATCH = 135; - {$EXTERNALSYM SSL_R_CHALLENGE_IS_DIFFERENT} - SSL_R_CHALLENGE_IS_DIFFERENT = 136; - {$EXTERNALSYM SSL_R_CIPHER_CODE_WRONG_LENGTH} - SSL_R_CIPHER_CODE_WRONG_LENGTH = 137; - {$EXTERNALSYM SSL_R_CIPHER_OR_HASH_UNAVAILABLE} - SSL_R_CIPHER_OR_HASH_UNAVAILABLE = 138; - {$EXTERNALSYM SSL_R_CIPHER_TABLE_SRC_ERROR} - SSL_R_CIPHER_TABLE_SRC_ERROR = 139; - {$EXTERNALSYM SSL_R_CLIENTHELLO_TLSEXT} - SSL_R_CLIENTHELLO_TLSEXT = 226; //was 157; - {$EXTERNALSYM SSL_R_COMPRESSED_LENGTH_TOO_LONG} - SSL_R_COMPRESSED_LENGTH_TOO_LONG = 140; - {$EXTERNALSYM SSL_R_COMPRESSION_DISABLED} - SSL_R_COMPRESSION_DISABLED = 343; - {$EXTERNALSYM SSL_R_COMPRESSION_FAILURE} - SSL_R_COMPRESSION_FAILURE = 141; - {$EXTERNALSYM SSL_R_COMPRESSION_LIBRARY_ERROR} - SSL_R_COMPRESSION_LIBRARY_ERROR = 142; - {$EXTERNALSYM SSL_R_CONNECTION_ID_IS_DIFFERENT} - SSL_R_CONNECTION_ID_IS_DIFFERENT = 143; - {$EXTERNALSYM SSL_R_CONNECTION_TYPE_NOT_SET} - SSL_R_CONNECTION_TYPE_NOT_SET = 144; - {$EXTERNALSYM SSL_R_DATA_BETWEEN_CCS_AND_FINISHED} - SSL_R_DATA_BETWEEN_CCS_AND_FINISHED = 145; - {$EXTERNALSYM SSL_R_DATA_LENGTH_TOO_LONG} - SSL_R_DATA_LENGTH_TOO_LONG = 146; - {$EXTERNALSYM SSL_R_DECRYPTION_FAILED} - SSL_R_DECRYPTION_FAILED = 147; - {$EXTERNALSYM SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG} - SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG = 148; - {$EXTERNALSYM SSL_R_DIGEST_CHECK_FAILED} - SSL_R_DIGEST_CHECK_FAILED = 149; - {$EXTERNALSYM SSL_R_DTLS_MESSAGE_TOO_BIG} - SSL_R_DTLS_MESSAGE_TOO_BIG = 334; //was 318; - {$EXTERNALSYM SSL_R_ECC_CERT_NOT_FOR_KEY_AGREEMENT} - SSL_R_ECC_CERT_NOT_FOR_KEY_AGREEMENT = 317; - {$EXTERNALSYM SSL_R_ECC_CERT_NOT_FOR_SIGNING} - SSL_R_ECC_CERT_NOT_FOR_SIGNING = 318; - {$EXTERNALSYM SSL_R_ECC_CERT_SHOULD_HAVE_RSA_SIGNATURE} - SSL_R_ECC_CERT_SHOULD_HAVE_RSA_SIGNATURE = 322; - {$EXTERNALSYM SSL_R_ECC_CERT_SHOULD_HAVE_SHA1_SIGNATURE} - SSL_R_ECC_CERT_SHOULD_HAVE_SHA1_SIGNATURE = 323; - {$EXTERNALSYM SSL_R_ECGROUP_TOO_LARGE_FOR_CIPHER} - SSL_R_ECGROUP_TOO_LARGE_FOR_CIPHER = 310; - {$EXTERNALSYM SSL_R_EMPTY_SRTP_PROTECTION_PROFILE_LIST} - SSL_R_EMPTY_SRTP_PROTECTION_PROFILE_LIST = 354; - {$EXTERNALSYM SSL_R_ENCRYPTED_LENGTH_TOO_LONG} - SSL_R_ENCRYPTED_LENGTH_TOO_LONG = 150; - {$EXTERNALSYM SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST} - SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST = 151; - {$EXTERNALSYM SSL_R_EXCESSIVE_MESSAGE_SIZE} - SSL_R_EXCESSIVE_MESSAGE_SIZE = 152; - {$EXTERNALSYM SSL_R_EXTRA_DATA_IN_MESSAGE} - SSL_R_EXTRA_DATA_IN_MESSAGE = 153; - {$EXTERNALSYM SSL_R_GOT_A_FIN_BEFORE_A_CCS} - SSL_R_GOT_A_FIN_BEFORE_A_CCS = 154; - {$EXTERNALSYM SSL_R_GOT_NEXT_PROTO_BEFORE_A_CCS} - SSL_R_GOT_NEXT_PROTO_BEFORE_A_CCS = 355; - {$EXTERNALSYM SSL_R_GOT_NEXT_PROTO_WITHOUT_EXTENSION} - SSL_R_GOT_NEXT_PROTO_WITHOUT_EXTENSION = 356; - {$EXTERNALSYM SSL_R_HTTPS_PROXY_REQUEST} - SSL_R_HTTPS_PROXY_REQUEST = 155; - {$EXTERNALSYM SSL_R_HTTP_REQUEST} - SSL_R_HTTP_REQUEST = 156; - {$EXTERNALSYM SSL_R_ILLEGAL_PADDING} - SSL_R_ILLEGAL_PADDING = 283; - {$EXTERNALSYM SSL_R_INCONSISTENT_COMPRESSION} - SSL_R_INCONSISTENT_COMPRESSION = 340; - {$EXTERNALSYM SSL_R_INTERNAL_ERROR} - SSL_R_INTERNAL_ERROR = 157; - {$EXTERNALSYM SSL_R_INVALID_CHALLENGE_LENGTH} - SSL_R_INVALID_CHALLENGE_LENGTH = 158; - {$EXTERNALSYM SSL_R_INVALID_COMMAND} - SSL_R_INVALID_COMMAND = 280; - {$EXTERNALSYM SSL_R_INVALID_PURPOSE} - SSL_R_INVALID_PURPOSE = 278; - {$EXTERNALSYM SSL_R_INVALID_STATUS_RESPONSE} - SSL_R_INVALID_STATUS_RESPONSE = 316; - {$EXTERNALSYM SSL_R_INVALID_TICKET_KEYS_LENGTH} - SSL_R_INVALID_TICKET_KEYS_LENGTH = 275; - {$EXTERNALSYM SSL_R_INVALID_TRUST} - SSL_R_INVALID_TRUST = 279; - {$EXTERNALSYM SSL_R_LENGTH_MISMATCH} - SSL_R_LENGTH_MISMATCH = 159; - {$EXTERNALSYM SSL_R_LENGTH_TOO_SHORT} - SSL_R_LENGTH_TOO_SHORT = 160; - {$EXTERNALSYM SSL_R_LIBRARY_BUG} - SSL_R_LIBRARY_BUG = 274; - {$EXTERNALSYM SSL_R_LIBRARY_HAS_NO_CIPHERS} - SSL_R_LIBRARY_HAS_NO_CIPHERS = 161; - {$EXTERNALSYM SSL_R_MISSING_DH_DSA_CERT} - SSL_R_MISSING_DH_DSA_CERT = 162; - {$EXTERNALSYM SSL_R_MISSING_DH_KEY} - SSL_R_MISSING_DH_KEY = 163; - {$EXTERNALSYM SSL_R_MISSING_DH_RSA_CERT} - SSL_R_MISSING_DH_RSA_CERT = 164; - {$EXTERNALSYM SSL_R_MISSING_DSA_SIGNING_CERT} - SSL_R_MISSING_DSA_SIGNING_CERT = 165; - {$EXTERNALSYM SSL_R_MISSING_EXPORT_TMP_DH_KEY} - SSL_R_MISSING_EXPORT_TMP_DH_KEY = 166; - {$EXTERNALSYM SSL_R_MISSING_EXPORT_TMP_RSA_KEY} - SSL_R_MISSING_EXPORT_TMP_RSA_KEY = 167; - {$EXTERNALSYM SSL_R_MISSING_RSA_CERTIFICATE} - SSL_R_MISSING_RSA_CERTIFICATE = 168; - {$EXTERNALSYM SSL_R_MISSING_RSA_ENCRYPTING_CERT} - SSL_R_MISSING_RSA_ENCRYPTING_CERT = 169; - {$EXTERNALSYM SSL_R_MISSING_RSA_SIGNING_CERT} - SSL_R_MISSING_RSA_SIGNING_CERT = 170; - {$EXTERNALSYM SSL_R_MISSING_TMP_DH_KEY} - SSL_R_MISSING_TMP_DH_KEY = 171; - {$EXTERNALSYM SSL_R_MISSING_TMP_RSA_KEY} - SSL_R_MISSING_TMP_RSA_KEY = 172; - {$EXTERNALSYM SSL_R_MISSING_TMP_RSA_PKEY} - SSL_R_MISSING_TMP_RSA_PKEY = 173; - {$EXTERNALSYM SSL_R_MISSING_VERIFY_MESSAGE} - SSL_R_MISSING_VERIFY_MESSAGE = 174; - {$EXTERNALSYM SSL_R_MULTIPLE_SGC_RESTARTS} - SSL_R_MULTIPLE_SGC_RESTARTS = 346; - {$EXTERNALSYM SSL_R_NON_SSLV2_INITIAL_PACKET} - SSL_R_NON_SSLV2_INITIAL_PACKET = 175; - {$EXTERNALSYM SSL_R_NO_CERTIFICATES_RETURNED} - SSL_R_NO_CERTIFICATES_RETURNED = 176; - {$EXTERNALSYM SSL_R_NO_CERTIFICATE_ASSIGNED} - SSL_R_NO_CERTIFICATE_ASSIGNED = 177; - {$EXTERNALSYM SSL_R_NO_CERTIFICATE_RETURNED} - SSL_R_NO_CERTIFICATE_RETURNED = 178; - {$EXTERNALSYM SSL_R_NO_CERTIFICATE_SET} - SSL_R_NO_CERTIFICATE_SET = 179; - {$EXTERNALSYM SSL_R_NO_CERTIFICATE_SPECIFIED} - SSL_R_NO_CERTIFICATE_SPECIFIED = 180; - {$EXTERNALSYM SSL_R_NO_CIPHERS_AVAILABLE} - SSL_R_NO_CIPHERS_AVAILABLE = 181; - {$EXTERNALSYM SSL_R_NO_CIPHERS_PASSED} - SSL_R_NO_CIPHERS_PASSED = 182; - {$EXTERNALSYM SSL_R_NO_CIPHERS_SPECIFIED} - SSL_R_NO_CIPHERS_SPECIFIED = 183; - {$EXTERNALSYM SSL_R_NO_CIPHER_LIST} - SSL_R_NO_CIPHER_LIST = 184; - {$EXTERNALSYM SSL_R_NO_CIPHER_MATCH} - SSL_R_NO_CIPHER_MATCH = 185; - {$EXTERNALSYM SSL_R_NO_CLIENT_CERT_METHOD} - SSL_R_NO_CLIENT_CERT_METHOD = 317; - {$EXTERNALSYM SSL_R_NO_CLIENT_CERT_RECEIVED} - SSL_R_NO_CLIENT_CERT_RECEIVED = 186; - {$EXTERNALSYM SSL_R_NO_COMPRESSION_SPECIFIED} - SSL_R_NO_COMPRESSION_SPECIFIED = 187; - {$EXTERNALSYM SSL_R_NO_METHOD_SPECIFIED} - SSL_R_NO_METHOD_SPECIFIED = 188; - {$EXTERNALSYM SSL_R_NO_PRIVATEKEY} - SSL_R_NO_PRIVATEKEY = 189; - {$EXTERNALSYM SSL_R_NO_PRIVATE_KEY_ASSIGNED} - SSL_R_NO_PRIVATE_KEY_ASSIGNED = 190; - {$EXTERNALSYM SSL_R_NO_PROTOCOLS_AVAILABLE} - SSL_R_NO_PROTOCOLS_AVAILABLE = 191; - {$EXTERNALSYM SSL_R_NO_PUBLICKEY} - SSL_R_NO_PUBLICKEY = 192; - //was 318 - {$EXTERNALSYM SSL_R_NO_RENEGOTIATION} - SSL_R_NO_RENEGOTIATION = 319; - {$EXTERNALSYM SSL_R_NO_SHARED_CIPHER} - SSL_R_NO_SHARED_CIPHER = 193; - {$EXTERNALSYM SSL_R_NO_VERIFY_CALLBACK} - SSL_R_NO_VERIFY_CALLBACK = 194; - {$EXTERNALSYM SSL_R_NULL_SSL_CTX} - SSL_R_NULL_SSL_CTX = 195; - {$EXTERNALSYM SSL_R_NULL_SSL_METHOD_PASSED} - SSL_R_NULL_SSL_METHOD_PASSED = 196; - {$EXTERNALSYM SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED} - SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED = 197; - {$EXTERNALSYM SSL_R_ONLY_TLS_ALLOWED_IN_FIPS_MODE} - SSL_R_ONLY_TLS_ALLOWED_IN_FIPS_MODE = 297; - {$EXTERNALSYM SSL_R_PACKET_LENGTH_TOO_LONG} - SSL_R_PACKET_LENGTH_TOO_LONG = 198; - {$EXTERNALSYM SSL_R_PARSE_TLSEXT} - SSL_R_PARSE_TLSEXT = 223; - {$EXTERNALSYM SSL_R_PATH_TOO_LONG} - SSL_R_PATH_TOO_LONG = 270; - {$EXTERNALSYM SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE} - SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE = 199; - {$EXTERNALSYM SSL_R_PEER_ERROR} - SSL_R_PEER_ERROR = 200; - {$EXTERNALSYM SSL_R_PEER_ERROR_CERTIFICATE} - SSL_R_PEER_ERROR_CERTIFICATE = 201; - {$EXTERNALSYM SSL_R_PEER_ERROR_NO_CERTIFICATE} - SSL_R_PEER_ERROR_NO_CERTIFICATE = 202; - {$EXTERNALSYM SSL_R_PEER_ERROR_NO_CIPHER} - SSL_R_PEER_ERROR_NO_CIPHER = 203; - {$EXTERNALSYM SSL_R_PEER_ERROR_UNSUPPORTED_CERTIFICATE_TYPE} - SSL_R_PEER_ERROR_UNSUPPORTED_CERTIFICATE_TYPE = 204; - {$EXTERNALSYM SSL_R_PRE_MAC_LENGTH_TOO_LONG} - SSL_R_PRE_MAC_LENGTH_TOO_LONG = 205; - {$EXTERNALSYM SSL_R_PROBLEMS_MAPPING_CIPHER_FUNCTIONS} - SSL_R_PROBLEMS_MAPPING_CIPHER_FUNCTIONS = 206; - {$EXTERNALSYM SSL_R_PROTOCOL_IS_SHUTDOWN} - SSL_R_PROTOCOL_IS_SHUTDOWN = 207; - {$EXTERNALSYM SSL_R_PUBLIC_KEY_ENCRYPT_ERROR} - SSL_R_PUBLIC_KEY_ENCRYPT_ERROR = 208; - {$EXTERNALSYM SSL_R_PUBLIC_KEY_IS_NOT_RSA} - SSL_R_PUBLIC_KEY_IS_NOT_RSA = 209; - {$EXTERNALSYM SSL_R_PUBLIC_KEY_NOT_RSA} - SSL_R_PUBLIC_KEY_NOT_RSA = 210; - {$EXTERNALSYM SSL_R_READ_BIO_NOT_SET} - SSL_R_READ_BIO_NOT_SET = 211; - {$EXTERNALSYM SSL_R_READ_WRONG_PACKET_TYPE} - SSL_R_READ_WRONG_PACKET_TYPE = 212; - {$EXTERNALSYM SSL_R_RECORD_LENGTH_MISMATCH} - SSL_R_RECORD_LENGTH_MISMATCH = 213; - {$EXTERNALSYM SSL_R_RECORD_TOO_LARGE} - SSL_R_RECORD_TOO_LARGE = 214; - {$EXTERNALSYM SSL_R_RECORD_TOO_SMALL} - SSL_R_RECORD_TOO_SMALL = 298; - {$EXTERNALSYM SSL_R_RENEGOTIATE_EXT_TOO_LONG} - SSL_R_RENEGOTIATE_EXT_TOO_LONG = 320; - {$EXTERNALSYM SSL_R_RENEGOTIATION_ENCODING_ERR} - SSL_R_RENEGOTIATION_ENCODING_ERR = 321; - {$EXTERNALSYM SSL_R_RENEGOTIATION_MISMATCH} - SSL_R_RENEGOTIATION_MISMATCH = 322; - {$EXTERNALSYM SSL_R_REQUIRED_CIPHER_MISSING} - SSL_R_REQUIRED_CIPHER_MISSING = 215; - {$EXTERNALSYM SSL_R_REUSE_CERT_LENGTH_NOT_ZERO} - SSL_R_REUSE_CERT_LENGTH_NOT_ZERO = 216; - {$EXTERNALSYM SSL_R_REUSE_CERT_TYPE_NOT_ZERO} - SSL_R_REUSE_CERT_TYPE_NOT_ZERO = 217; - {$EXTERNALSYM SSL_R_REUSE_CIPHER_LIST_NOT_ZERO} - SSL_R_REUSE_CIPHER_LIST_NOT_ZERO = 218; - {$EXTERNALSYM SSL_R_SCSV_RECEIVED_WHEN_RENEGOTIATING} - SSL_R_SCSV_RECEIVED_WHEN_RENEGOTIATING = 324; - {$EXTERNALSYM SSL_R_SERVERHELLO_TLSEXT} - SSL_R_SERVERHELLO_TLSEXT = 224; - {$EXTERNALSYM SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED} - SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED = 277; - {$EXTERNALSYM SSL_R_SHORT_READ} - SSL_R_SHORT_READ = 219; - {$EXTERNALSYM SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE} - SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE = 220; - {$EXTERNALSYM SSL_R_SSL23_DOING_SESSION_ID_REUSE} - SSL_R_SSL23_DOING_SESSION_ID_REUSE = 221; - {$EXTERNALSYM SSL_R_SSL2_CONNECTION_ID_TOO_LONG} - SSL_R_SSL2_CONNECTION_ID_TOO_LONG = 299; - {$EXTERNALSYM SSL_R_SSL3_EXT_INVALID_SERVERNAME} - SSL_R_SSL3_EXT_INVALID_SERVERNAME = 225; - {$EXTERNALSYM SSL_R_SSL3_EXT_INVALID_SERVERNAME_TYPE} - SSL_R_SSL3_EXT_INVALID_SERVERNAME_TYPE = 226; - {$EXTERNALSYM SSL_R_SSL3_SESSION_ID_TOO_LONG} - SSL_R_SSL3_SESSION_ID_TOO_LONG = 300; - {$EXTERNALSYM SSL_R_SSL3_SESSION_ID_TOO_SHORT} - SSL_R_SSL3_SESSION_ID_TOO_SHORT = 222; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_BAD_CERTIFICATE} - SSL_R_SSLV3_ALERT_BAD_CERTIFICATE = 1042; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_BAD_RECORD_MAC} - SSL_R_SSLV3_ALERT_BAD_RECORD_MAC = 1020; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED} - SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED = 1045; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_CERTIFICATE_REVOKED} - SSL_R_SSLV3_ALERT_CERTIFICATE_REVOKED = 1044; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN} - SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN = 1046; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_DECOMPRESSION_FAILURE} - SSL_R_SSLV3_ALERT_DECOMPRESSION_FAILURE = 1030; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE} - SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE = 1040; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER} - SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER = 1047; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_NO_CERTIFICATE} - SSL_R_SSLV3_ALERT_NO_CERTIFICATE = 1041; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_PEER_ERROR_CERTIFICATE} - SSL_R_SSLV3_ALERT_PEER_ERROR_CERTIFICATE = 223; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_PEER_ERROR_NO_CERTIFICATE} - SSL_R_SSLV3_ALERT_PEER_ERROR_NO_CERTIFICATE = 224; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_PEER_ERROR_NO_CIPHER} - SSL_R_SSLV3_ALERT_PEER_ERROR_NO_CIPHER = 225; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_PEER_ERROR_UNSUPPORTED_CERTIFICATE_TYPE} - SSL_R_SSLV3_ALERT_PEER_ERROR_UNSUPPORTED_CERTIFICATE_TYPE = 226; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE} - SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE = 1010; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_UNKNOWN_REMOTE_ERROR_TYPE} - SSL_R_SSLV3_ALERT_UNKNOWN_REMOTE_ERROR_TYPE = 227; - {$EXTERNALSYM SSL_R_SSLV3_ALERT_UNSUPPORTED_CERTIFICATE} - SSL_R_SSLV3_ALERT_UNSUPPORTED_CERTIFICATE = 1043; - {$EXTERNALSYM SSL_R_SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION} - SSL_R_SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION = 228; - {$EXTERNALSYM SSL_R_SSL_HANDSHAKE_FAILURE} - SSL_R_SSL_HANDSHAKE_FAILURE = 229; - {$EXTERNALSYM SSL_R_SSL_LIBRARY_HAS_NO_CIPHERS} - SSL_R_SSL_LIBRARY_HAS_NO_CIPHERS = 230; - {$EXTERNALSYM SSL_R_SSL_SESSION_ID_CONTEXT_TOO_LONG} - SSL_R_SSL_SESSION_ID_CONTEXT_TOO_LONG = 273; - {$EXTERNALSYM SSL_R_SSL_SESSION_ID_IS_DIFFERENT} - SSL_R_SSL_SESSION_ID_IS_DIFFERENT = 231; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_ACCESS_DENIED} - SSL_R_TLSV1_ALERT_ACCESS_DENIED = 1049; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_DECODE_ERROR} - SSL_R_TLSV1_ALERT_DECODE_ERROR = 1050; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_DECRYPTION_FAILED} - SSL_R_TLSV1_ALERT_DECRYPTION_FAILED = 1021; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_DECRYPT_ERROR} - SSL_R_TLSV1_ALERT_DECRYPT_ERROR = 1051; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_EXPORT_RESTRICION} - SSL_R_TLSV1_ALERT_EXPORT_RESTRICION = 1060; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_INSUFFICIENT_SECURITY} - SSL_R_TLSV1_ALERT_INSUFFICIENT_SECURITY = 1071; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_INTERNAL_ERROR} - SSL_R_TLSV1_ALERT_INTERNAL_ERROR = 1080; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_NO_RENEGOTIATION} - SSL_R_TLSV1_ALERT_NO_RENEGOTIATION = 1100; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_PROTOCOL_VERSION} - SSL_R_TLSV1_ALERT_PROTOCOL_VERSION = 1070; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_RECORD_OVERFLOW} - SSL_R_TLSV1_ALERT_RECORD_OVERFLOW = 1022; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_UNKNOWN_CA} - SSL_R_TLSV1_ALERT_UNKNOWN_CA = 1048; - {$EXTERNALSYM SSL_R_TLSV1_ALERT_USER_CANCLED} - SSL_R_TLSV1_ALERT_USER_CANCLED = 1090; - {$EXTERNALSYM SSL_R_TLS_CLIENT_CERT_REQ_WITH_ANON_CIPHER} - SSL_R_TLS_CLIENT_CERT_REQ_WITH_ANON_CIPHER = 232; - {$EXTERNALSYM SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST} - SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST = 227; - {$EXTERNALSYM SSL_R_TLS_PEER_DID_NOT_RESPOND_WITH_CERTIFICATE_LIST} - SSL_R_TLS_PEER_DID_NOT_RESPOND_WITH_CERTIFICATE_LIST = 233; - {$EXTERNALSYM SSL_R_TLS_RSA_ENCRYPTED_VALUE_LENGTH_IS_WRONG} - SSL_R_TLS_RSA_ENCRYPTED_VALUE_LENGTH_IS_WRONG = 234; - {$EXTERNALSYM SSL_R_TRIED_TO_USE_UNSUPPORTED_CIPHER} - SSL_R_TRIED_TO_USE_UNSUPPORTED_CIPHER = 235; - {$EXTERNALSYM SSL_R_UNABLE_TO_DECODE_DH_CERTS} - SSL_R_UNABLE_TO_DECODE_DH_CERTS = 236; - {$EXTERNALSYM SSL_R_UNABLE_TO_EXTRACT_PUBLIC_KEY} - SSL_R_UNABLE_TO_EXTRACT_PUBLIC_KEY = 237; - {$EXTERNALSYM SSL_R_UNABLE_TO_FIND_DH_PARAMETERS} - SSL_R_UNABLE_TO_FIND_DH_PARAMETERS = 238; - {$EXTERNALSYM SSL_R_UNABLE_TO_FIND_PUBLIC_KEY_PARAMETERS} - SSL_R_UNABLE_TO_FIND_PUBLIC_KEY_PARAMETERS = 239; - {$EXTERNALSYM SSL_R_UNABLE_TO_FIND_SSL_METHOD} - SSL_R_UNABLE_TO_FIND_SSL_METHOD = 240; - {$EXTERNALSYM SSL_R_UNABLE_TO_LOAD_SSL2_MD5_ROUTINES} - SSL_R_UNABLE_TO_LOAD_SSL2_MD5_ROUTINES = 241; - {$EXTERNALSYM SSL_R_UNABLE_TO_LOAD_SSL3_MD5_ROUTINES} - SSL_R_UNABLE_TO_LOAD_SSL3_MD5_ROUTINES = 242; - {$EXTERNALSYM SSL_R_UNABLE_TO_LOAD_SSL3_SHA1_ROUTINES} - SSL_R_UNABLE_TO_LOAD_SSL3_SHA1_ROUTINES = 243; - {$EXTERNALSYM SSL_R_UNEXPECTED_MESSAGE} - SSL_R_UNEXPECTED_MESSAGE = 244; - {$EXTERNALSYM SSL_R_UNEXPECTED_RECORD} - SSL_R_UNEXPECTED_RECORD = 245; - {$EXTERNALSYM SSL_R_UNINITIALIZED} - SSL_R_UNINITIALIZED = 276; - {$EXTERNALSYM SSL_R_UNKNOWN_ALERT_TYPE} - SSL_R_UNKNOWN_ALERT_TYPE = 246; - {$EXTERNALSYM SSL_R_UNKNOWN_CERTIFICATE_TYPE} - SSL_R_UNKNOWN_CERTIFICATE_TYPE = 247; - {$EXTERNALSYM SSL_R_UNKNOWN_CIPHER_RETURNED} - SSL_R_UNKNOWN_CIPHER_RETURNED = 248; - {$EXTERNALSYM SSL_R_UNKNOWN_CIPHER_TYPE} - SSL_R_UNKNOWN_CIPHER_TYPE = 249; - {$EXTERNALSYM SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE} - SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE = 250; - {$EXTERNALSYM SSL_R_UNKNOWN_PKEY_TYPE} - SSL_R_UNKNOWN_PKEY_TYPE = 251; - {$EXTERNALSYM SSL_R_UNKNOWN_PROTOCOL} - SSL_R_UNKNOWN_PROTOCOL = 252; - {$EXTERNALSYM SSL_R_UNKNOWN_REMOTE_ERROR_TYPE} - SSL_R_UNKNOWN_REMOTE_ERROR_TYPE = 253; - {$EXTERNALSYM SSL_R_UNKNOWN_SSL_VERSION} - SSL_R_UNKNOWN_SSL_VERSION = 254; - {$EXTERNALSYM SSL_R_UNSUPPORTED_STATUS_TYPE} - SSL_R_UNSUPPORTED_STATUS_TYPE = 329; - {$EXTERNALSYM SSL_R_UNKNOWN_STATE} - SSL_R_UNKNOWN_STATE = 255; - {$EXTERNALSYM SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED} - SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED = 323; - {$EXTERNALSYM SSL_R_UNSUPPORTED_CIPHER} - SSL_R_UNSUPPORTED_CIPHER = 256; - {$EXTERNALSYM SSL_R_UNSUPPORTED_COMPRESSION_ALGORITHM} - SSL_R_UNSUPPORTED_COMPRESSION_ALGORITHM = 257; - {$EXTERNALSYM SSL_R_UNSUPPORTED_DIGEST_TYPE} - SSL_R_UNSUPPORTED_DIGEST_TYPE = 326; - {$EXTERNALSYM SSL_R_UNSUPPORTED_PROTOCOL} - SSL_R_UNSUPPORTED_PROTOCOL = 258; - {$EXTERNALSYM SSL_R_UNSUPPORTED_SSL_VERSION} - SSL_R_UNSUPPORTED_SSL_VERSION = 259; - {$EXTERNALSYM SSL_R_USE_SRTP_NOT_NEGOTIATED} - SSL_R_USE_SRTP_NOT_NEGOTIATED = 369; - {$EXTERNALSYM SSL_R_WRITE_BIO_NOT_SET} - SSL_R_WRITE_BIO_NOT_SET = 260; - {$EXTERNALSYM SSL_R_WRONG_CIPHER_RETURNED} - SSL_R_WRONG_CIPHER_RETURNED = 261; - {$EXTERNALSYM SSL_R_WRONG_MESSAGE_TYPE} - SSL_R_WRONG_MESSAGE_TYPE = 262; - {$EXTERNALSYM SSL_R_WRONG_NUMBER_OF_KEY_BITS} - SSL_R_WRONG_NUMBER_OF_KEY_BITS = 263; - {$EXTERNALSYM SSL_R_WRONG_SIGNATURE_LENGTH} - SSL_R_WRONG_SIGNATURE_LENGTH = 264; - {$EXTERNALSYM SSL_R_WRONG_SIGNATURE_SIZE} - SSL_R_WRONG_SIGNATURE_SIZE = 265; - {$EXTERNALSYM SSL_R_WRONG_SIGNATURE_TYPE} - SSL_R_WRONG_SIGNATURE_TYPE = 370; - {$EXTERNALSYM SSL_R_WRONG_SSL_VERSION} - SSL_R_WRONG_SSL_VERSION = 266; - {$EXTERNALSYM SSL_R_WRONG_VERSION_NUMBER} - SSL_R_WRONG_VERSION_NUMBER = 267; - {$EXTERNALSYM SSL_R_X509_LIB} - SSL_R_X509_LIB = 268; - {$EXTERNALSYM SSL_R_X509_VERIFICATION_SETUP_PROBLEMS} - SSL_R_X509_VERIFICATION_SETUP_PROBLEMS = 269; - {$EXTERNALSYM SSL_SENT_SHUTDOWN} - SSL_SENT_SHUTDOWN = 1; - {$EXTERNALSYM SSL_SESSION_ASN1_VERSION} - SSL_SESSION_ASN1_VERSION = $0001; - {$EXTERNALSYM SSL_SESSION_CACHE_MAX_SIZE_DEFAULT} - SSL_SESSION_CACHE_MAX_SIZE_DEFAULT = 1024*20; - {$EXTERNALSYM SSL_SESS_CACHE_CLIENT} - SSL_SESS_CACHE_CLIENT = $0001; - {$EXTERNALSYM SSL_SESS_CACHE_SERVER} - SSL_SESS_CACHE_SERVER = $0002; - {$EXTERNALSYM SSL_SESS_CACHE_BOTH} - SSL_SESS_CACHE_BOTH = SSL_SESS_CACHE_CLIENT or SSL_SESS_CACHE_SERVER; - {$EXTERNALSYM SSL_SESS_CACHE_NO_AUTO_CLEAR} - SSL_SESS_CACHE_NO_AUTO_CLEAR = $0080; - {$EXTERNALSYM SSL_SESS_CACHE_NO_INTERNAL_LOOKUP} - SSL_SESS_CACHE_NO_INTERNAL_LOOKUP = $0100; - {$EXTERNALSYM SSL_SESS_CACHE_OFF} - SSL_SESS_CACHE_OFF = $0000; - {$ifndef OPENSSL_NO_NEXTPROTONEG} - {$EXTERNALSYM OPENSSL_NPN_UNSUPPORTED} - OPENSSL_NPN_UNSUPPORTED = 0; - {$EXTERNALSYM OPENSSL_NPN_NEGOTIATED} - OPENSSL_NPN_NEGOTIATED = 1; - {$EXTERNALSYM OPENSSL_NPN_NO_OVERLAP} - OPENSSL_NPN_NO_OVERLAP = 2; - {$endif} -{$ifndef OPENSSL_NO_PSK} -//* the maximum length of the buffer given to callbacks containing the -// * resulting identity/psk */ - {$EXTERNALSYM PSK_MAX_IDENTITY_LEN} - PSK_MAX_IDENTITY_LEN = 128; - {$EXTERNALSYM PSK_MAX_PSK_LEN} - PSK_MAX_PSK_LEN = 256; -{$endif} - - - - {$EXTERNALSYM SSL_TXT_LOW} - SSL_TXT_LOW = 'LOW'; {Do not localize} - {$EXTERNALSYM SSL_TXT_MEDIUM} - SSL_TXT_MEDIUM = 'MEDIUM'; {Do not localize} - {$EXTERNALSYM SSL_TXT_HIGH} - SSL_TXT_HIGH = 'HIGH'; {Do not localize} - {$EXTERNALSYM SSL_TXT_FIPS} - SSL_TXT_FIPS = 'FIPS'; {Do not localize} - {$EXTERNALSYM SSL_TXT_kFZA} - SSL_TXT_kFZA = 'kFZA'; {Do not localize} - {$EXTERNALSYM SSL_TXT_aFZA} - SSL_TXT_aFZA = 'aFZA'; {Do not localize} - {$EXTERNALSYM SSL_TXT_eFZA} - SSL_TXT_eFZA = 'eFZA'; {Do not localize} - {$EXTERNALSYM SSL_TXT_FZA} - SSL_TXT_FZA = 'FZA'; {Do not localize} - {$EXTERNALSYM SSL_TXT_aNULL} - SSL_TXT_aNULL = 'aNULL'; {Do not localize} - {$EXTERNALSYM SSL_TXT_eNULL} - SSL_TXT_eNULL = 'eNULL'; {Do not localize} - {$EXTERNALSYM SSL_TXT_NULL} - SSL_TXT_NULL = 'NULL'; {Do not localize} - {$EXTERNALSYM SSL_TXT_kKRB5} - SSL_TXT_kKRB5 = 'kKRB5';{Do not localize} - {$EXTERNALSYM SSL_TXT_aKRB5} - SSL_TXT_aKRB5 ='aKRB5';{Do not localize} - {$EXTERNALSYM SSL_TXT_KRB5} - SSL_TXT_KRB5 = 'KRB5';{Do not localize} - {$EXTERNALSYM SSL_TXT_kRSA} - SSL_TXT_kRSA = 'kRSA'; {Do not localize} - {$EXTERNALSYM SSL_TXT_kDHr} - SSL_TXT_kDHr = 'kDHr'; {Do not localize} - {$EXTERNALSYM SSL_TXT_kDHd} - SSL_TXT_kDHd = 'kDHd'; {Do not localize} - {$EXTERNALSYM SSL_TXT_kEDH} - SSL_TXT_kEDH = 'kEDH'; {Do not localize} - {$EXTERNALSYM SSL_TXT_aRSA} - SSL_TXT_aRSA = 'aRSA'; {Do not localize} - {$EXTERNALSYM SSL_TXT_aDSS} - SSL_TXT_aDSS = 'aDSS'; {Do not localize} - {$EXTERNALSYM SSL_TXT_aDH} - SSL_TXT_aDH = 'aDH'; {Do not localize} - {$EXTERNALSYM SSL_TXT_RSA} - SSL_TXT_RSA = 'RSA'; {Do not localize} - {$EXTERNALSYM SSL_TXT_DH} - SSL_TXT_DH = 'DH'; {Do not localize} - {$EXTERNALSYM SSL_TXT_EDH} - SSL_TXT_EDH = 'EDH'; {Do not localize} - {$EXTERNALSYM SSL_TXT_ADH_C} - SSL_TXT_ADH_C = 'ADH'; {Do not localize} - {$EXTERNALSYM SSL_TXT_aDH_S} - SSL_TXT_aDH_S = 'aDH'; {Do not localize} - {$EXTERNALSYM SSL_TXT_DSS} - SSL_TXT_DSS = 'DSS'; {Do not localize} - {$EXTERNALSYM SSL_TXT_DES} - SSL_TXT_DES = 'DES'; {Do not localize} - {$EXTERNALSYM SSL_TXT_3DES} - SSL_TXT_3DES = '3DES'; {Do not localize} - {$EXTERNALSYM SSL_TXT_RC4} - SSL_TXT_RC4 = 'RC4'; {Do not localize} - {$EXTERNALSYM SSL_TXT_RC2} - SSL_TXT_RC2 = 'RC2'; {Do not localize} - {$EXTERNALSYM SSL_TXT_IDEA} - SSL_TXT_IDEA = 'IDEA'; {Do not localize} - {$EXTERNALSYM SSL_TXT_SEED} - SSL_TXT_SEED = 'SEED'; {Do not localize} - {$EXTERNALSYM SSL_TXT_AES} - SSL_TXT_AES = 'AES'; {Do not localize} - {$EXTERNALSYM SSL_TXT_CAMELLIA} - SSL_TXT_CAMELLIA = 'CAMELLIA'; {Do not localize} - {$EXTERNALSYM SSL_TXT_MD5} - SSL_TXT_MD5 = 'MD5'; {Do not localize} - {$EXTERNALSYM SSL_TXT_SHA1} - SSL_TXT_SHA1 = 'SHA1'; {Do not localize} - {$EXTERNALSYM SSL_TXT_SHA} - SSL_TXT_SHA = 'SHA'; {Do not localize} - {$EXTERNALSYM SSL_TXT_EXP} - SSL_TXT_EXP = 'EXP'; {Do not localize} - {$EXTERNALSYM SSL_TXT_EXPORT} - SSL_TXT_EXPORT = 'EXPORT'; {Do not localize} - {$EXTERNALSYM SSL_TXT_EXP40} - SSL_TXT_EXP40 = 'EXPORT40'; {Do not localize} - {$EXTERNALSYM SSL_TXT_EXP56} - SSL_TXT_EXP56 = 'EXPORT56'; {Do not localize} - {$EXTERNALSYM SSL_TXT_SSLV2} - SSL_TXT_SSLV2 = 'SSLv2'; {Do not localize} - {$EXTERNALSYM SSL_TXT_SSLV3} - SSL_TXT_SSLV3 = 'SSLv3'; {Do not localize} - {$EXTERNALSYM SSL_TXT_TLSV1} - SSL_TXT_TLSV1 = 'TLSv1'; {Do not localize} - {$EXTERNALSYM SSL_TXT_ALL} - SSL_TXT_ALL = 'ALL'; {Do not localize} - {$EXTERNALSYM SSL_TXT_ECC} - SSL_TXT_ECC = 'ECCdraft'; //* ECC ciphersuites are not yet official */ - {$EXTERNALSYM SSL_TXT_DES_192_EDE3_CBC_WITH_MD5} - SSL_TXT_DES_192_EDE3_CBC_WITH_MD5 = SSL2_TXT_DES_192_EDE3_CBC_WITH_MD5; - {$EXTERNALSYM SSL_TXT_DES_192_EDE3_CBC_WITH_SHA} - SSL_TXT_DES_192_EDE3_CBC_WITH_SHA = SSL2_TXT_DES_192_EDE3_CBC_WITH_SHA; - {$EXTERNALSYM SSL_TXT_DES_64_CBC_WITH_MD5} - SSL_TXT_DES_64_CBC_WITH_MD5 = SSL2_TXT_DES_64_CBC_WITH_MD5; - {$EXTERNALSYM SSL_TXT_DES_64_CBC_WITH_SHA} - SSL_TXT_DES_64_CBC_WITH_SHA = SSL2_TXT_DES_64_CBC_WITH_SHA; - {$EXTERNALSYM SSL_TXT_IDEA_128_CBC_WITH_MD5} - SSL_TXT_IDEA_128_CBC_WITH_MD5 = SSL2_TXT_IDEA_128_CBC_WITH_MD5; - {$EXTERNALSYM SSL_TXT_NULL_WITH_MD5} - SSL_TXT_NULL_WITH_MD5 = SSL2_TXT_NULL_WITH_MD5; - {$EXTERNALSYM SSL_TXT_RC2_128_CBC_EXPORT40_WITH_MD5} - SSL_TXT_RC2_128_CBC_EXPORT40_WITH_MD5 = SSL2_TXT_RC2_128_CBC_EXPORT40_WITH_MD5; - {$EXTERNALSYM SSL_TXT_RC2_128_CBC_WITH_MD5} - SSL_TXT_RC2_128_CBC_WITH_MD5 = SSL2_TXT_RC2_128_CBC_WITH_MD5; - {$EXTERNALSYM SSL_TXT_RC4_128_EXPORT40_WITH_MD5} - SSL_TXT_RC4_128_EXPORT40_WITH_MD5 = SSL2_TXT_RC4_128_EXPORT40_WITH_MD5; - {$EXTERNALSYM SSL_TXT_RC4_128_WITH_MD5} - SSL_TXT_RC4_128_WITH_MD5 = SSL2_TXT_RC4_128_WITH_MD5; - {$EXTERNALSYM SSL_VERIFY_CLIENT_ONCE} - SSL_VERIFY_CLIENT_ONCE = $04; - {$EXTERNALSYM SSL_VERIFY_FAIL_IF_NO_PEER_CERT} - SSL_VERIFY_FAIL_IF_NO_PEER_CERT = $02; - {$EXTERNALSYM SSL_VERIFY_NONE} - SSL_VERIFY_NONE = $00; - {$EXTERNALSYM SSL_VERIFY_PEER} - SSL_VERIFY_PEER = $01; - - {$EXTERNALSYM SSL_MAC_FLAG_READ_MAC_STREAM} - SSL_MAC_FLAG_READ_MAC_STREAM = 1; - {$EXTERNALSYM SSL_MAC_FLAG_WRITE_MAC_STREAM} - SSL_MAC_FLAG_WRITE_MAC_STREAM = 2; - {$EXTERNALSYM TLS1_ALLOW_EXPERIMENTAL_CIPHERSUITES} - TLS1_ALLOW_EXPERIMENTAL_CIPHERSUITES = 0; - {$EXTERNALSYM TLS1_2_VERSION} - TLS1_2_VERSION = $0303; - {$EXTERNALSYM TLS1_2_VERSION_MAJOR} - TLS1_2_VERSION_MAJOR = $03; - {$EXTERNALSYM TLS1_2_VERSION_MINOR} - TLS1_2_VERSION_MINOR = $03; - {$EXTERNALSYM TLS1_1_VERSION} - TLS1_1_VERSION = $0302; - {$EXTERNALSYM TLS1_1_VERSION_MAJOR} - TLS1_1_VERSION_MAJOR = $03; - {$EXTERNALSYM TLS1_1_VERSION_MINOR} - TLS1_1_VERSION_MINOR = $02; - {$EXTERNALSYM TLS1_VERSION} - TLS1_VERSION = $0301; - {$EXTERNALSYM TLS1_VERSION_MAJOR} - TLS1_VERSION_MAJOR = $03; - {$EXTERNALSYM TLS1_VERSION_MINOR} - TLS1_VERSION_MINOR = $01; - - {$IFNDEF OPENSSL_NO_HEARTBEATS} - {$EXTERNALSYM SSL_TLSEXT_HB_ENABLED} - SSL_TLSEXT_HB_ENABLED = $01; - {$EXTERNALSYM SSL_TLSEXT_HB_DONT_SEND_REQUESTS} - SSL_TLSEXT_HB_DONT_SEND_REQUESTS = $02; - {$EXTERNALSYM SSL_TLSEXT_HB_DONT_RECV_REQUESTS} - SSL_TLSEXT_HB_DONT_RECV_REQUESTS = $04; - - {$ENDIF} - - //* PSK ciphersuites from 4279 */ - {$EXTERNALSYM TLS1_CK_PSK_WITH_RC4_128_SHA} - TLS1_CK_PSK_WITH_RC4_128_SHA = $0300008A; - {$EXTERNALSYM TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA} - TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA = $0300008B; - {$EXTERNALSYM TLS1_CK_PSK_WITH_AES_128_CBC_SHA} - TLS1_CK_PSK_WITH_AES_128_CBC_SHA = $0300008C; - {$EXTERNALSYM TLS1_CK_PSK_WITH_AES_256_CBC_SHA} - TLS1_CK_PSK_WITH_AES_256_CBC_SHA = $0300008D; - - {$EXTERNALSYM TLS1_CK_RSA_EXPORT1024_WITH_RC4_56_MD5} - TLS1_CK_RSA_EXPORT1024_WITH_RC4_56_MD5 = $03000060; - {$EXTERNALSYM TLS1_CK_RSA_EXPORT1024_WITH_RC2_CBC_56_MD5} - TLS1_CK_RSA_EXPORT1024_WITH_RC2_CBC_56_MD5 = $03000061; - {$EXTERNALSYM TLS1_CK_RSA_EXPORT1024_WITH_DES_CBC_SHA} - TLS1_CK_RSA_EXPORT1024_WITH_DES_CBC_SHA = $03000062; - {$EXTERNALSYM TLS1_CK_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA} - TLS1_CK_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA = $03000063; - {$EXTERNALSYM TLS1_CK_RSA_EXPORT1024_WITH_RC4_56_SHA} - TLS1_CK_RSA_EXPORT1024_WITH_RC4_56_SHA = $03000064; - {$EXTERNALSYM TLS1_CK_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA} - TLS1_CK_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA = $03000065; - {$EXTERNALSYM TLS1_CK_DHE_DSS_WITH_RC4_128_SHA} - TLS1_CK_DHE_DSS_WITH_RC4_128_SHA = $03000066; -//* AES ciphersuites from RFC3268 */ - {$EXTERNALSYM TLS1_CK_RSA_WITH_AES_128_SHA} - TLS1_CK_RSA_WITH_AES_128_SHA = $0300002F; - {$EXTERNALSYM TLS1_CK_DH_DSS_WITH_AES_128_SHA} - TLS1_CK_DH_DSS_WITH_AES_128_SHA = $03000030; - {$EXTERNALSYM TLS1_CK_DH_RSA_WITH_AES_128_SHA} - TLS1_CK_DH_RSA_WITH_AES_128_SHA = $03000031; - {$EXTERNALSYM TLS1_CK_DHE_DSS_WITH_AES_128_SHA} - TLS1_CK_DHE_DSS_WITH_AES_128_SHA = $03000032; - {$EXTERNALSYM TLS1_CK_DHE_RSA_WITH_AES_128_SHA} - TLS1_CK_DHE_RSA_WITH_AES_128_SHA = $03000033; - {$EXTERNALSYM TLS1_CK_ADH_WITH_AES_128_SHA} - TLS1_CK_ADH_WITH_AES_128_SHA = $03000034; - {$EXTERNALSYM TLS1_CK_RSA_WITH_AES_256_SHA} - TLS1_CK_RSA_WITH_AES_256_SHA = $03000035; - {$EXTERNALSYM TLS1_CK_DH_DSS_WITH_AES_256_SHA} - TLS1_CK_DH_DSS_WITH_AES_256_SHA = $03000036; - {$EXTERNALSYM TLS1_CK_DH_RSA_WITH_AES_256_SHA} - TLS1_CK_DH_RSA_WITH_AES_256_SHA = $03000037; - {$EXTERNALSYM TLS1_CK_DHE_DSS_WITH_AES_256_SHA} - TLS1_CK_DHE_DSS_WITH_AES_256_SHA = $03000038; - {$EXTERNALSYM TLS1_CK_DHE_RSA_WITH_AES_256_SHA} - TLS1_CK_DHE_RSA_WITH_AES_256_SHA = $03000039; - {$EXTERNALSYM TLS1_CK_ADH_WITH_AES_256_SHA} - TLS1_CK_ADH_WITH_AES_256_SHA = $0300003A; -//* TLS v1.2 ciphersuites */ - {$EXTERNALSYM TLS1_CK_RSA_WITH_NULL_SHA256} - TLS1_CK_RSA_WITH_NULL_SHA256 = $0300003B; - {$EXTERNALSYM TLS1_CK_RSA_WITH_AES_128_SHA256} - TLS1_CK_RSA_WITH_AES_128_SHA256 = $0300003C; - {$EXTERNALSYM TLS1_CK_RSA_WITH_AES_256_SHA256} - TLS1_CK_RSA_WITH_AES_256_SHA256 = $0300003D; - {$EXTERNALSYM TLS1_CK_DH_DSS_WITH_AES_128_SHA256} - TLS1_CK_DH_DSS_WITH_AES_128_SHA256 = $0300003E; - {$EXTERNALSYM TLS1_CK_DH_RSA_WITH_AES_128_SHA256} - TLS1_CK_DH_RSA_WITH_AES_128_SHA256 = $0300003F; - {$EXTERNALSYM TLS1_CK_DHE_DSS_WITH_AES_128_SHA256} - TLS1_CK_DHE_DSS_WITH_AES_128_SHA256 = $03000040; - -//* Camellia ciphersuites from RFC4132 */ - {$EXTERNALSYM TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA} - TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA = $03000041; - {$EXTERNALSYM TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA} - TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA = $03000042; - {$EXTERNALSYM TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA} - TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA = $03000043; - {$EXTERNALSYM TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA} - TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA = $03000044; - {$EXTERNALSYM TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA} - TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA = $03000045; - {$EXTERNALSYM TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA} - TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA = $03000046; - {$EXTERNALSYM TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA} - TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA = $03000084; - {$EXTERNALSYM TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA} - TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA = $03000085; - {$EXTERNALSYM TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA} - TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA = $03000086; - {$EXTERNALSYM TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA} - TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA = $03000087; - {$EXTERNALSYM TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA} - TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA = $03000088; - {$EXTERNALSYM TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA} - TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA = $03000089; - -//* TLS v1.2 ciphersuites */ - {$EXTERNALSYM TLS1_CK_DHE_RSA_WITH_AES_128_SHA256} - TLS1_CK_DHE_RSA_WITH_AES_128_SHA256 = $03000067; - {$EXTERNALSYM TLS1_CK_DH_DSS_WITH_AES_256_SHA256} - TLS1_CK_DH_DSS_WITH_AES_256_SHA256 = $03000068; - {$EXTERNALSYM TLS1_CK_DH_RSA_WITH_AES_256_SHA256} - TLS1_CK_DH_RSA_WITH_AES_256_SHA256 = $03000069; - {$EXTERNALSYM TLS1_CK_DHE_DSS_WITH_AES_256_SHA256} - TLS1_CK_DHE_DSS_WITH_AES_256_SHA256 = $0300006A; - {$EXTERNALSYM TLS1_CK_DHE_RSA_WITH_AES_256_SHA256} - TLS1_CK_DHE_RSA_WITH_AES_256_SHA256 = $0300006B; - {$EXTERNALSYM TLS1_CK_ADH_WITH_AES_128_SHA256} - TLS1_CK_ADH_WITH_AES_128_SHA256 = $0300006C; - {$EXTERNALSYM TLS1_CK_ADH_WITH_AES_256_SHA256} - TLS1_CK_ADH_WITH_AES_256_SHA256 = $0300006D; - //* SEED ciphersuites from RFC4162 */ - {$EXTERNALSYM TLS1_CK_RSA_WITH_SEED_SHA} - TLS1_CK_RSA_WITH_SEED_SHA = $03000096; - {$EXTERNALSYM TLS1_CK_DH_DSS_WITH_SEED_SHA} - TLS1_CK_DH_DSS_WITH_SEED_SHA = $03000097; - {$EXTERNALSYM TLS1_CK_DH_RSA_WITH_SEED_SHA} - TLS1_CK_DH_RSA_WITH_SEED_SHA = $03000098; - {$EXTERNALSYM TLS1_CK_DHE_DSS_WITH_SEED_SHA} - TLS1_CK_DHE_DSS_WITH_SEED_SHA = $03000099; - {$EXTERNALSYM TLS1_CK_DHE_RSA_WITH_SEED_SHA} - TLS1_CK_DHE_RSA_WITH_SEED_SHA = $0300009A; - {$EXTERNALSYM TLS1_CK_ADH_WITH_SEED_SHA} - TLS1_CK_ADH_WITH_SEED_SHA = $0300009B; - -//* TLS v1.2 GCM ciphersuites from RFC5288 */ - {$EXTERNALSYM TLS1_CK_RSA_WITH_AES_128_GCM_SHA256} - TLS1_CK_RSA_WITH_AES_128_GCM_SHA256 = $0300009C; - {$EXTERNALSYM TLS1_CK_RSA_WITH_AES_256_GCM_SHA384} - TLS1_CK_RSA_WITH_AES_256_GCM_SHA384 = $0300009D; - {$EXTERNALSYM TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256} - TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256 = $0300009E; - {$EXTERNALSYM TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384} - TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384 = $0300009F; - {$EXTERNALSYM TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256} - TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256 = $030000A0; - {$EXTERNALSYM TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384} - TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384 = $030000A1; - {$EXTERNALSYM TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256} - TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256 = $030000A2; - {$EXTERNALSYM TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384} - TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384 = $030000A3; - {$EXTERNALSYM TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256} - TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256 = $030000A4; - {$EXTERNALSYM TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384} - TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384 = $030000A5; - {$EXTERNALSYM TLS1_CK_ADH_WITH_AES_128_GCM_SHA256} - TLS1_CK_ADH_WITH_AES_128_GCM_SHA256 = $030000A6; - {$EXTERNALSYM TLS1_CK_ADH_WITH_AES_256_GCM_SHA384} - TLS1_CK_ADH_WITH_AES_256_GCM_SHA384 = $030000A7; -//* ECC ciphersuites from draft-ietf-tls-ecc-12.txt with changes soon to be in draft 13 */ - {$EXTERNALSYM TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA} - TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA = $0300C001; - {$EXTERNALSYM TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA} - TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA = $0300C002; - {$EXTERNALSYM TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA} - TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA = $0300C003; - {$EXTERNALSYM TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA} - TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA = $0300C004; - {$EXTERNALSYM TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA} - TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA = $0300C005; - {$EXTERNALSYM TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA} - TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA = $0300C006; - {$EXTERNALSYM TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA} - TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA = $0300C007; - {$EXTERNALSYM TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA} - TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA = $0300C008; - {$EXTERNALSYM TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA} - TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = $0300C009; - {$EXTERNALSYM TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA} - TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = $0300C00A; - {$EXTERNALSYM TLS1_CK_ECDH_RSA_WITH_NULL_SHA} - TLS1_CK_ECDH_RSA_WITH_NULL_SHA = $0300C00B; - {$EXTERNALSYM TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA} - TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA = $0300C00C; - {$EXTERNALSYM TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA} - TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA = $0300C00D; - {$EXTERNALSYM TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA} - TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA = $0300C00E; - {$EXTERNALSYM TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA} - TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA = $0300C00F; - {$EXTERNALSYM TLS1_CK_ECDHE_RSA_WITH_NULL_SHA} - TLS1_CK_ECDHE_RSA_WITH_NULL_SHA = $0300C010; - {$EXTERNALSYM TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA} - TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA = $0300C011; - {$EXTERNALSYM TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA} - TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA = $0300C012; - {$EXTERNALSYM TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA} - TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA = $0300C013; - {$EXTERNALSYM TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA} - TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA = $0300C014; - {$EXTERNALSYM TLS1_CK_ECDH_anon_WITH_NULL_SHA} - TLS1_CK_ECDH_anon_WITH_NULL_SHA = $0300C015; - {$EXTERNALSYM TLS1_CK_ECDH_anon_WITH_RC4_128_SHA} - TLS1_CK_ECDH_anon_WITH_RC4_128_SHA = $0300C016; - {$EXTERNALSYM TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA} - TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA = $0300C017; - {$EXTERNALSYM TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA} - TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA = $0300C018; - {$EXTERNALSYM TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA} - TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA = $0300C019; -//* SRP ciphersuites from RFC 5054 */ - {$EXTERNALSYM TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA} - TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA = $0300C01A; - {$EXTERNALSYM TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA} - TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA = $0300C01B; - {$EXTERNALSYM TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA} - TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA = $0300C01C; - {$EXTERNALSYM TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA} - TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA = $0300C01D; - {$EXTERNALSYM TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA} - TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA = $0300C01E; - {$EXTERNALSYM TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA} - TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA = $0300C01F; - {$EXTERNALSYM TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA} - TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA = $0300C020; - {$EXTERNALSYM TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA} - TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA = $0300C021; - {$EXTERNALSYM TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA} - TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA = $0300C022; - -//* ECDH HMAC based ciphersuites from RFC5289 */ - - {$EXTERNALSYM TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256} - TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256 = $0300C023; - {$EXTERNALSYM TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384} - TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384 = $0300C024; - {$EXTERNALSYM TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256} - TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256 = $0300C025; - {$EXTERNALSYM TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384} - TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384 = $0300C026; - {$EXTERNALSYM TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256} - TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256 = $0300C027; - {$EXTERNALSYM TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384} - TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384 = $0300C028; - {$EXTERNALSYM TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256} - TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256 = $0300C029; - {$EXTERNALSYM TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384} - TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384 = $0300C02A; - -//* ECDH GCM based ciphersuites from RFC5289 */ - {$EXTERNALSYM TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256} - TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = $0300C02B; - {$EXTERNALSYM TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384} - TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = $0300C02C; - {$EXTERNALSYM TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256} - TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = $0300C02D; - {$EXTERNALSYM TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384} - TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = $0300C02E; - {$EXTERNALSYM TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256} - TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = $0300C02F; - {$EXTERNALSYM TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384} - TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = $0300C030; - {$EXTERNALSYM TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256} - TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256 = $0300C031; - {$EXTERNALSYM TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384} - TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384 = $0300C032; - - - {$EXTERNALSYM TLS1_FINISH_MAC_LENGTH} - TLS1_FINISH_MAC_LENGTH = 12; - {$EXTERNALSYM TLS1_TXT_RSA_EXPORT1024_WITH_RC4_56_MD5} - TLS1_TXT_RSA_EXPORT1024_WITH_RC4_56_MD5 = 'EXP1024-RC4-MD5'; - {$EXTERNALSYM TLS1_TXT_RSA_EXPORT1024_WITH_RC2_CBC_56_MD5} - TLS1_TXT_RSA_EXPORT1024_WITH_RC2_CBC_56_MD5 = 'EXP1024-RC2-CBC-MD5'; - {$EXTERNALSYM TLS1_TXT_RSA_EXPORT1024_WITH_DES_CBC_SHA} - TLS1_TXT_RSA_EXPORT1024_WITH_DES_CBC_SHA = 'EXP1024-DES-CBC-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA} - TLS1_TXT_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA = 'EXP1024-DHE-DSS-DES-CBC-SHA'; - {$EXTERNALSYM TLS1_TXT_RSA_EXPORT1024_WITH_RC4_56_SHA} - TLS1_TXT_RSA_EXPORT1024_WITH_RC4_56_SHA = 'EXP1024-RC4-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA} - TLS1_TXT_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA = 'EXP1024-DHE-DSS-RC4-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA} - TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA = 'DHE-DSS-RC4-SHA'; -//* AES ciphersuites from RFC3268 */ - {$EXTERNALSYM TLS1_TXT_RSA_WITH_AES_128_SHA} - TLS1_TXT_RSA_WITH_AES_128_SHA = 'AES128-SHA'; - {$EXTERNALSYM TLS1_TXT_DH_DSS_WITH_AES_128_SHA} - TLS1_TXT_DH_DSS_WITH_AES_128_SHA ='DH-DSS-AES128-SHA'; - {$EXTERNALSYM TLS1_TXT_DH_RSA_WITH_AES_128_SHA} - TLS1_TXT_DH_RSA_WITH_AES_128_SHA = 'DH-RSA-AES128-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_WITH_AES_128_SHA} - TLS1_TXT_DHE_DSS_WITH_AES_128_SHA = 'DHE-DSS-AES128-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_RSA_WITH_AES_128_SHA} - TLS1_TXT_DHE_RSA_WITH_AES_128_SHA = 'DHE-RSA-AES128-SHA'; - {$EXTERNALSYM TLS1_TXT_ADH_WITH_AES_128_SHA} - TLS1_TXT_ADH_WITH_AES_128_SHA = 'ADH-AES128-SHA'; - {$EXTERNALSYM TLS1_TXT_RSA_WITH_AES_256_SHA} - TLS1_TXT_RSA_WITH_AES_256_SHA = 'AES256-SHA'; - {$EXTERNALSYM TLS1_TXT_DH_DSS_WITH_AES_256_SHA} - TLS1_TXT_DH_DSS_WITH_AES_256_SHA ='DH-DSS-AES256-SHA'; - {$EXTERNALSYM TLS1_TXT_DH_RSA_WITH_AES_256_SHA} - TLS1_TXT_DH_RSA_WITH_AES_256_SHA = 'DH-RSA-AES256-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_WITH_AES_256_SHA} - TLS1_TXT_DHE_DSS_WITH_AES_256_SHA = 'DHE-DSS-AES256-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_RSA_WITH_AES_256_SHA} - TLS1_TXT_DHE_RSA_WITH_AES_256_SHA ='DHE-RSA-AES256-SHA'; - {$EXTERNALSYM TLS1_TXT_ADH_WITH_AES_256_SHA} - TLS1_TXT_ADH_WITH_AES_256_SHA = 'ADH-AES256-SHA'; -//* ECC ciphersuites from draft-ietf-tls-ecc-01.txt (Mar 15, 2001) */ - {$EXTERNALSYM TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA} - TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA = 'ECDH-ECDSA-NULL-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA} - TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA = 'ECDH-ECDSA-RC4-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA} - TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA = 'ECDH-ECDSA-DES-CBC3-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA} - TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA = 'ECDH-ECDSA-AES128-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA} - TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA = 'ECDH-ECDSA-AES256-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA} - TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA = 'ECDHE-ECDSA-NULL-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA} - TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA = 'ECDHE-ECDSA-RC4-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA} - TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA = 'ECDHE-ECDSA-DES-CBC3-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA} - TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = 'ECDHE-ECDSA-AES128-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA} - TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = 'ECDHE-ECDSA-AES256-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_RSA_WITH_NULL_SHA} - TLS1_TXT_ECDH_RSA_WITH_NULL_SHA = 'ECDH-RSA-NULL-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA} - TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA = 'ECDH-RSA-RC4-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA} - TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA = 'ECDH-RSA-DES-CBC3-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA} - TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA = 'ECDH-RSA-AES128-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA} - TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA = 'ECDH-RSA-AES256-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA} - TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA = 'ECDHE-RSA-NULL-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA} - TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA = 'ECDHE-RSA-RC4-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA} - TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA = 'ECDHE-RSA-DES-CBC3-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA} - TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA = 'ECDHE-RSA-AES128-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA} - TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA = 'ECDHE-RSA-AES256-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_anon_WITH_NULL_SHA} - TLS1_TXT_ECDH_anon_WITH_NULL_SHA = 'AECDH-NULL-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA} - TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA = 'AECDH-RC4-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA} - TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA = 'AECDH-DES-CBC3-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA} - TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA = 'AECDH-AES128-SHA'; - {$EXTERNALSYM TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA} - TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA = 'AECDH-AES256-SHA'; -//* Camellia ciphersuites from RFC4132 */ - {$EXTERNALSYM TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA} - TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA = 'CAMELLIA128-SHA'; - {$EXTERNALSYM TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA} - TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA = 'DH-DSS-CAMELLIA128-SHA'; - {$EXTERNALSYM TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA} - TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA = 'DH-RSA-CAMELLIA128-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA} - TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA = 'DHE-DSS-CAMELLIA128-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA} - TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA = 'DHE-RSA-CAMELLIA128-SHA'; - {$EXTERNALSYM TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA} - TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA = 'ADH-CAMELLIA128-SHA'; - {$EXTERNALSYM TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA} - TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA = 'CAMELLIA256-SHA'; - {$EXTERNALSYM TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA} - TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA = 'DH-DSS-CAMELLIA256-SHA'; - {$EXTERNALSYM TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA} - TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA = 'DH-RSA-CAMELLIA256-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA} - TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA = 'DHE-DSS-CAMELLIA256-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA} - TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA = 'DHE-RSA-CAMELLIA256-SHA'; - {$EXTERNALSYM TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA} - TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA = 'ADH-CAMELLIA256-SHA'; -//* SEED ciphersuites from RFC4162 */ - {$EXTERNALSYM TLS1_TXT_RSA_WITH_SEED_SHA} - TLS1_TXT_RSA_WITH_SEED_SHA = 'SEED-SHA'; - {$EXTERNALSYM TLS1_TXT_DH_DSS_WITH_SEED_SHA} - TLS1_TXT_DH_DSS_WITH_SEED_SHA = 'DH-DSS-SEED-SHA'; - {$EXTERNALSYM TLS1_TXT_DH_RSA_WITH_SEED_SHA} - TLS1_TXT_DH_RSA_WITH_SEED_SHA = 'DH-RSA-SEED-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_WITH_SEED_SHA} - TLS1_TXT_DHE_DSS_WITH_SEED_SHA = 'DHE-DSS-SEED-SHA'; - {$EXTERNALSYM TLS1_TXT_DHE_RSA_WITH_SEED_SHA} - TLS1_TXT_DHE_RSA_WITH_SEED_SHA = 'DHE-RSA-SEED-SHA'; - {$EXTERNALSYM TLS1_TXT_ADH_WITH_SEED_SHA} - TLS1_TXT_ADH_WITH_SEED_SHA = 'ADH-SEED-SHA'; -//* TLS v1.2 ciphersuites */ - {$EXTERNALSYM TLS1_TXT_RSA_WITH_NULL_SHA256} - TLS1_TXT_RSA_WITH_NULL_SHA256 = 'NULL-SHA256'; - {$EXTERNALSYM TLS1_TXT_RSA_WITH_AES_128_SHA256} - TLS1_TXT_RSA_WITH_AES_128_SHA256 = 'AES128-SHA256'; - {$EXTERNALSYM TLS1_TXT_RSA_WITH_AES_256_SHA256} - TLS1_TXT_RSA_WITH_AES_256_SHA256 = 'AES256-SHA256'; - {$EXTERNALSYM TLS1_TXT_DH_DSS_WITH_AES_128_SHA256} - TLS1_TXT_DH_DSS_WITH_AES_128_SHA256 = 'DH-DSS-AES128-SHA256'; - {$EXTERNALSYM TLS1_TXT_DH_RSA_WITH_AES_128_SHA256} - TLS1_TXT_DH_RSA_WITH_AES_128_SHA256 = 'DH-RSA-AES128-SHA256'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_WITH_AES_128_SHA256} - TLS1_TXT_DHE_DSS_WITH_AES_128_SHA256 = 'DHE-DSS-AES128-SHA256'; - {$EXTERNALSYM TLS1_TXT_DHE_RSA_WITH_AES_128_SHA256} - TLS1_TXT_DHE_RSA_WITH_AES_128_SHA256 = 'DHE-RSA-AES128-SHA256'; - {$EXTERNALSYM TLS1_TXT_DH_DSS_WITH_AES_256_SHA256} - TLS1_TXT_DH_DSS_WITH_AES_256_SHA256 = 'DH-DSS-AES256-SHA256'; - {$EXTERNALSYM TLS1_TXT_DH_RSA_WITH_AES_256_SHA256} - TLS1_TXT_DH_RSA_WITH_AES_256_SHA256 = 'DH-RSA-AES256-SHA256'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_WITH_AES_256_SHA256} - TLS1_TXT_DHE_DSS_WITH_AES_256_SHA256 = 'DHE-DSS-AES256-SHA256'; - {$EXTERNALSYM TLS1_TXT_DHE_RSA_WITH_AES_256_SHA256} - TLS1_TXT_DHE_RSA_WITH_AES_256_SHA256 = 'DHE-RSA-AES256-SHA256'; - {$EXTERNALSYM TLS1_TXT_ADH_WITH_AES_128_SHA256} - TLS1_TXT_ADH_WITH_AES_128_SHA256 = 'ADH-AES128-SHA256'; - {$EXTERNALSYM TLS1_TXT_ADH_WITH_AES_256_SHA256} - TLS1_TXT_ADH_WITH_AES_256_SHA256 = 'ADH-AES256-SHA256'; - -//* TLS v1.2 GCM ciphersuites from RFC5288 */ - {$EXTERNALSYM TLS1_TXT_RSA_WITH_AES_128_GCM_SHA256} - TLS1_TXT_RSA_WITH_AES_128_GCM_SHA256 = 'AES128-GCM-SHA256'; - {$EXTERNALSYM TLS1_TXT_RSA_WITH_AES_256_GCM_SHA384} - TLS1_TXT_RSA_WITH_AES_256_GCM_SHA384 = 'AES256-GCM-SHA384'; - {$EXTERNALSYM TLS1_TXT_DHE_RSA_WITH_AES_128_GCM_SHA256} -TLS1_TXT_DHE_RSA_WITH_AES_128_GCM_SHA256 = 'DHE-RSA-AES128-GCM-SHA256'; - {$EXTERNALSYM TLS1_TXT_DHE_RSA_WITH_AES_256_GCM_SHA384} -TLS1_TXT_DHE_RSA_WITH_AES_256_GCM_SHA384 = 'DHE-RSA-AES256-GCM-SHA384'; - {$EXTERNALSYM TLS1_TXT_DH_RSA_WITH_AES_128_GCM_SHA256} - TLS1_TXT_DH_RSA_WITH_AES_128_GCM_SHA256 = 'DH-RSA-AES128-GCM-SHA256'; - {$EXTERNALSYM TLS1_TXT_DH_RSA_WITH_AES_256_GCM_SHA384} - TLS1_TXT_DH_RSA_WITH_AES_256_GCM_SHA384 = 'DH-RSA-AES256-GCM-SHA384'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_WITH_AES_128_GCM_SHA256} - TLS1_TXT_DHE_DSS_WITH_AES_128_GCM_SHA256 = 'DHE-DSS-AES128-GCM-SHA256'; - {$EXTERNALSYM TLS1_TXT_DHE_DSS_WITH_AES_256_GCM_SHA384} - TLS1_TXT_DHE_DSS_WITH_AES_256_GCM_SHA384 = 'DHE-DSS-AES256-GCM-SHA384'; - {$EXTERNALSYM TLS1_TXT_DH_DSS_WITH_AES_128_GCM_SHA256} - TLS1_TXT_DH_DSS_WITH_AES_128_GCM_SHA256 = 'DH-DSS-AES128-GCM-SHA256'; - {$EXTERNALSYM TLS1_TXT_DH_DSS_WITH_AES_256_GCM_SHA384} - TLS1_TXT_DH_DSS_WITH_AES_256_GCM_SHA384 = 'DH-DSS-AES256-GCM-SHA384'; - {$EXTERNALSYM TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256} - TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256 = 'ADH-AES128-GCM-SHA256'; - {$EXTERNALSYM TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384} - TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384 = 'ADH-AES256-GCM-SHA384'; - -//* ECDH HMAC based ciphersuites from RFC5289 */ - - {$EXTERNALSYM TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256} - TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256 = 'ECDHE-ECDSA-AES128-SHA256'; - {$EXTERNALSYM TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_SHA384} - TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_SHA384 = 'ECDHE-ECDSA-AES256-SHA384'; - {$EXTERNALSYM TLS1_TXT_ECDH_ECDSA_WITH_AES_128_SHA256} - TLS1_TXT_ECDH_ECDSA_WITH_AES_128_SHA256 = 'ECDH-ECDSA-AES128-SHA256'; - {$EXTERNALSYM TLS1_TXT_ECDH_ECDSA_WITH_AES_256_SHA384} - TLS1_TXT_ECDH_ECDSA_WITH_AES_256_SHA384 = 'ECDH-ECDSA-AES256-SHA384'; - {$EXTERNALSYM TLS1_TXT_ECDHE_RSA_WITH_AES_128_SHA256} - TLS1_TXT_ECDHE_RSA_WITH_AES_128_SHA256 = 'ECDHE-RSA-AES128-SHA256'; - {$EXTERNALSYM TLS1_TXT_ECDHE_RSA_WITH_AES_256_SHA384} - TLS1_TXT_ECDHE_RSA_WITH_AES_256_SHA384 = 'ECDHE-RSA-AES256-SHA384'; - {$EXTERNALSYM TLS1_TXT_ECDH_RSA_WITH_AES_128_SHA256} - TLS1_TXT_ECDH_RSA_WITH_AES_128_SHA256 = 'ECDH-RSA-AES128-SHA256'; - {$EXTERNALSYM TLS1_TXT_ECDH_RSA_WITH_AES_256_SHA384} - TLS1_TXT_ECDH_RSA_WITH_AES_256_SHA384 = 'ECDH-RSA-AES256-SHA384'; - -//* ECDH GCM based ciphersuites from RFC5289 */ - {$EXTERNALSYM TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256} - TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = 'ECDHE-ECDSA-AES128-GCM-SHA256'; - {$EXTERNALSYM TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384} - TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = 'ECDHE-ECDSA-AES256-GCM-SHA384'; - {$EXTERNALSYM TLS1_TXT_ECDH_ECDSA_WITH_AES_128_GCM_SHA256} - TLS1_TXT_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = 'ECDH-ECDSA-AES128-GCM-SHA256'; - {$EXTERNALSYM TLS1_TXT_ECDH_ECDSA_WITH_AES_256_GCM_SHA384} - TLS1_TXT_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = 'ECDH-ECDSA-AES256-GCM-SHA384'; - {$EXTERNALSYM TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256} - TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = 'ECDHE-RSA-AES128-GCM-SHA256'; - {$EXTERNALSYM TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384} - TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = 'ECDHE-RSA-AES256-GCM-SHA384'; - {$EXTERNALSYM TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256} - TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256 = 'ECDH-RSA-AES128-GCM-SHA256'; - {$EXTERNALSYM TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384} - TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384 = 'ECDH-RSA-AES256-GCM-SHA384'; - - {$EXTERNALSYM TLS_CT_RSA_SIGN} - TLS_CT_RSA_SIGN = 1; - {$EXTERNALSYM TLS_CT_DSS_SIGN} - TLS_CT_DSS_SIGN = 2; - {$EXTERNALSYM TLS_CT_RSA_FIXED_DH} - TLS_CT_RSA_FIXED_DH = 3; - {$EXTERNALSYM TLS_CT_DSS_FIXED_DH} - TLS_CT_DSS_FIXED_DH = 4; - {$EXTERNALSYM TLS_CT_ECDSA_SIGN} - TLS_CT_ECDSA_SIGN = 64; - {$EXTERNALSYM TLS_CT_RSA_FIXED_ECDH} - TLS_CT_RSA_FIXED_ECDH = 65; - {$EXTERNALSYM TLS_CT_ECDSA_FIXED_ECDH} - TLS_CT_ECDSA_FIXED_ECDH = 66; - {$EXTERNALSYM TLS_CT_GOST94_SIGN} - TLS_CT_GOST94_SIGN = 21; - {$EXTERNALSYM TLS_CT_GOST01_SIGN} - TLS_CT_GOST01_SIGN = 22; -///* when correcting this number, correct also SSL3_CT_NUMBER in ssl3.h (see -// * comment there) */ - {$EXTERNALSYM TLS_CT_NUMBER} - TLS_CT_NUMBER = 9; //was 4; - - {$EXTERNALSYM TLS_MD_CLIENT_FINISH_CONST} - TLS_MD_CLIENT_FINISH_CONST = 'client finished'; {Do not localize} - {$EXTERNALSYM TLS_MD_CLIENT_FINISH_CONST_SIZE} - TLS_MD_CLIENT_FINISH_CONST_SIZE = 15; - {$EXTERNALSYM TLS_MD_SERVER_FINISH_CONST} - TLS_MD_SERVER_FINISH_CONST = 'server finished'; {Do not localize} - {$EXTERNALSYM TLS_MD_SERVER_FINISH_CONST_SIZE} - TLS_MD_SERVER_FINISH_CONST_SIZE = 15; - {$EXTERNALSYM TLS_MD_KEY_EXPANSION_CONST} - TLS_MD_KEY_EXPANSION_CONST = 'key expansion'; {Do not localize} - {$EXTERNALSYM TLS_MD_KEY_EXPANSION_CONST_SIZE} - TLS_MD_KEY_EXPANSION_CONST_SIZE = 13; - {$EXTERNALSYM TLS_MD_CLIENT_WRITE_KEY_CONST} - TLS_MD_CLIENT_WRITE_KEY_CONST = 'client write key'; {Do not localize} - {$EXTERNALSYM TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE} - TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE = 16; - {$EXTERNALSYM TLS_MD_SERVER_WRITE_KEY_CONST} - TLS_MD_SERVER_WRITE_KEY_CONST = 'server write key'; {Do not localize} - {$EXTERNALSYM TLS_MD_SERVER_WRITE_KEY_CONST_SIZE} - TLS_MD_SERVER_WRITE_KEY_CONST_SIZE = 16; - {$EXTERNALSYM TLS_MD_IV_BLOCK_CONST} - TLS_MD_IV_BLOCK_CONST = 'IV block'; {Do not localize} - {$EXTERNALSYM TLS_MD_IV_BLOCK_CONST_SIZE} - TLS_MD_IV_BLOCK_CONST_SIZE = 8; - {$EXTERNALSYM TLS_MD_MASTER_SECRET_CONST} - TLS_MD_MASTER_SECRET_CONST = 'master secret'; {Do not localize} - {$EXTERNALSYM TLS_MD_MASTER_SECRET_CONST_SIZE} - TLS_MD_MASTER_SECRET_CONST_SIZE = 13; - {$EXTERNALSYM TLS_MD_MAX_CONST_SIZE} - TLS_MD_MAX_CONST_SIZE = 20; - - {$EXTERNALSYM TMP_MAX} - TMP_MAX = 26; - {$EXTERNALSYM V_ASN1_APPLICATION} - V_ASN1_APPLICATION = $40; - {$EXTERNALSYM V_ASN1_APP_CHOOSE} - V_ASN1_APP_CHOOSE = -2; - {$EXTERNALSYM V_ASN1_BIT_STRING} - V_ASN1_BIT_STRING = 3; - {$EXTERNALSYM V_ASN1_BMPSTRING} - V_ASN1_BMPSTRING = 30; - {$EXTERNALSYM V_ASN1_BOOLEAN} - V_ASN1_BOOLEAN = 1; - {$EXTERNALSYM V_ASN1_CONSTRUCTED} - V_ASN1_CONSTRUCTED = $20; - {$EXTERNALSYM V_ASN1_CONTEXT_SPECIFIC} - V_ASN1_CONTEXT_SPECIFIC = $80; - {$EXTERNALSYM V_ASN1_ENUMERATED} - V_ASN1_ENUMERATED = 10; - {$EXTERNALSYM V_ASN1_EOC} - V_ASN1_EOC = 0; - {$EXTERNALSYM V_ASN1_EXTERNAL} - V_ASN1_EXTERNAL = 8; - {$EXTERNALSYM V_ASN1_GENERALIZEDTIME} - V_ASN1_GENERALIZEDTIME = 24; - {$EXTERNALSYM V_ASN1_GENERALSTRING} - V_ASN1_GENERALSTRING = 27; - {$EXTERNALSYM V_ASN1_GRAPHICSTRING} - V_ASN1_GRAPHICSTRING = 25; - {$EXTERNALSYM V_ASN1_IA5STRING} - V_ASN1_IA5STRING = 22; - {$EXTERNALSYM V_ASN1_INTEGER} - V_ASN1_INTEGER = 2; - {$EXTERNALSYM V_ASN1_ISO64STRING} - V_ASN1_ISO64STRING = 26; - {$EXTERNALSYM V_ASN1_NEG_ENUMERATED} - V_ASN1_NEG_ENUMERATED = 10+$100; - {$EXTERNALSYM V_ASN1_NEG_INTEGER} - V_ASN1_NEG_INTEGER = 2+$100; - {$EXTERNALSYM V_ASN1_NULL} - V_ASN1_NULL = 5; - {$EXTERNALSYM V_ASN1_NUMERICSTRING} - V_ASN1_NUMERICSTRING = 18; - {$EXTERNALSYM V_ASN1_OBJECT} - V_ASN1_OBJECT = 6; - {$EXTERNALSYM V_ASN1_OBJECT_DESCRIPTOR} - V_ASN1_OBJECT_DESCRIPTOR = 7; - {$EXTERNALSYM V_ASN1_OCTET_STRING} - V_ASN1_OCTET_STRING = 4; - {$EXTERNALSYM V_ASN1_PRIMATIVE_TAG} - V_ASN1_PRIMATIVE_TAG = $1f; - {$EXTERNALSYM V_ASN1_PRIMITIVE_TAG} - V_ASN1_PRIMITIVE_TAG = $1f; - {$EXTERNALSYM V_ASN1_PRINTABLESTRING} - V_ASN1_PRINTABLESTRING = 19; - {$EXTERNALSYM V_ASN1_PRIVATE} - V_ASN1_PRIVATE = $c0; - {$EXTERNALSYM V_ASN1_REAL} - V_ASN1_REAL = 9; - {$EXTERNALSYM V_ASN1_SEQUENCE} - V_ASN1_SEQUENCE = 16; - {$EXTERNALSYM V_ASN1_SET} - V_ASN1_SET = 17; - {$EXTERNALSYM V_ASN1_T61STRING} - V_ASN1_T61STRING = 20; - {$EXTERNALSYM V_ASN1_TELETEXSTRING} - V_ASN1_TELETEXSTRING = 20; - {$EXTERNALSYM V_ASN1_UNDEF} - V_ASN1_UNDEF = -1; - {$EXTERNALSYM V_ASN1_UNIVERSAL} - V_ASN1_UNIVERSAL = $00; - {$EXTERNALSYM V_ASN1_UNIVERSALSTRING} - V_ASN1_UNIVERSALSTRING = 28; - {$EXTERNALSYM V_ASN1_UTCTIME} - V_ASN1_UTCTIME = 23; - {$EXTERNALSYM V_ASN1_UTF8STRING} - V_ASN1_UTF8STRING = 12; - {$EXTERNALSYM V_ASN1_VIDEOTEXSTRING} - V_ASN1_VIDEOTEXSTRING = 21; - {$EXTERNALSYM V_ASN1_VISIBLESTRING} - V_ASN1_VISIBLESTRING = 26; - {$EXTERNALSYM WINNT} - WINNT = 1; - {$EXTERNALSYM X509_TRUST_DEFAULT} - X509_TRUST_DEFAULT = -1; //* Only valid in purpose settings */ - {$EXTERNALSYM X509_TRUST_COMPAT} - X509_TRUST_COMPAT = 1; - {$EXTERNALSYM X509_TRUST_SSL_CLIENT} - X509_TRUST_SSL_CLIENT = 2; - {$EXTERNALSYM X509_TRUST_SSL_SERVER} - X509_TRUST_SSL_SERVER = 3; - {$EXTERNALSYM X509_TRUST_EMAIL} - X509_TRUST_EMAIL = 4; - {$EXTERNALSYM X509_TRUST_OBJECT_SIGN} - X509_TRUST_OBJECT_SIGN = 5; - {$EXTERNALSYM X509_TRUST_OCSP_SIGN} - X509_TRUST_OCSP_SIGN = 6; - {$EXTERNALSYM X509_TRUST_OCSP_REQUEST} - X509_TRUST_OCSP_REQUEST = 7; - {$EXTERNALSYM X509_TRUST_TSA} - X509_TRUST_TSA = 8; - {$EXTERNALSYM X509_TRUST_MIN} - X509_TRUST_MIN = 1; - {$EXTERNALSYM X509_TRUST_MAX} - X509_TRUST_MAX = 8; - {$EXTERNALSYM X509_EXT_PACK_STRING} - X509_EXT_PACK_STRING = 2; - {$EXTERNALSYM X509_EXT_PACK_UNKNOWN} - X509_EXT_PACK_UNKNOWN = 1; - {$EXTERNALSYM X509_EX_V_INIT} - X509_EX_V_INIT = $0001; - {$EXTERNALSYM X509_EX_V_NETSCAPE_HACK} - X509_EX_V_NETSCAPE_HACK = $8000; - {$EXTERNALSYM X509_FILETYPE_DEFAULT} - X509_FILETYPE_DEFAULT = 3; - {$EXTERNALSYM X509_F_ADD_CERT_DIR} - X509_F_ADD_CERT_DIR = 100; - {$EXTERNALSYM X509_F_BY_FILE_CTRL} - X509_F_BY_FILE_CTRL = 101; - {$EXTERNALSYM X509_F_DIR_CTRL} - X509_F_DIR_CTRL = 102; - {$EXTERNALSYM X509_F_GET_CERT_BY_SUBJECT} - X509_F_GET_CERT_BY_SUBJECT = 103; - {$EXTERNALSYM X509_F_X509V3_ADD_EXT} - X509_F_X509V3_ADD_EXT = 104; - {$EXTERNALSYM X509_F_X509_EXTENSION_CREATE_BY_NID} - X509_F_X509_EXTENSION_CREATE_BY_NID = 108; - {$EXTERNALSYM X509_F_X509_EXTENSION_CREATE_BY_OBJ} - X509_F_X509_EXTENSION_CREATE_BY_OBJ = 109; - - {$EXTERNALSYM X509_F_X509_GET_PUBKEY_PARAMETERS} - X509_F_X509_GET_PUBKEY_PARAMETERS = 110; - {$EXTERNALSYM X509_F_X509_LOAD_CERT_FILE} - X509_F_X509_LOAD_CERT_FILE = 111; - {$EXTERNALSYM X509_F_X509_LOAD_CRL_FILE} - X509_F_X509_LOAD_CRL_FILE = 112; - {$EXTERNALSYM X509_F_X509_NAME_ADD_ENTRY} - X509_F_X509_NAME_ADD_ENTRY = 113; - {$EXTERNALSYM X509_F_X509_NAME_ENTRY_CREATE_BY_NID} - X509_F_X509_NAME_ENTRY_CREATE_BY_NID = 114; - {$EXTERNALSYM X509_F_X509_NAME_ENTRY_SET_OBJECT} - X509_F_X509_NAME_ENTRY_SET_OBJECT = 115; - {$EXTERNALSYM X509_F_X509_NAME_ONELINE} - X509_F_X509_NAME_ONELINE = 116; - {$EXTERNALSYM X509_F_X509_NAME_PRINT} - X509_F_X509_NAME_PRINT = 117; - {$EXTERNALSYM X509_F_X509_PRINT_FP} - X509_F_X509_PRINT_FP = 118; - {$EXTERNALSYM X509_F_X509_PUBKEY_GET} - X509_F_X509_PUBKEY_GET = 119; - - {$EXTERNALSYM X509_F_X509_PUBKEY_SET} - X509_F_X509_PUBKEY_SET = 120; - {$EXTERNALSYM X509_F_X509_REQ_PRINT} - X509_F_X509_REQ_PRINT = 121; - {$EXTERNALSYM X509_F_X509_REQ_PRINT_FP} - X509_F_X509_REQ_PRINT_FP = 122; - {$EXTERNALSYM X509_F_X509_REQ_TO_X509} - X509_F_X509_REQ_TO_X509 = 123; - {$EXTERNALSYM X509_F_X509_STORE_ADD_CERT} - X509_F_X509_STORE_ADD_CERT = 124; - {$EXTERNALSYM X509_F_X509_STORE_ADD_CRL} - X509_F_X509_STORE_ADD_CRL = 125; - {$EXTERNALSYM X509_F_X509_TO_X509_REQ} - X509_F_X509_TO_X509_REQ = 126; - {$EXTERNALSYM X509_F_X509_VERIFY_CERT} - X509_F_X509_VERIFY_CERT = 127; - {$EXTERNALSYM X509_F_X509_CHECK_PRIVATE_KEY} - X509_F_X509_CHECK_PRIVATE_KEY = 128; - {$EXTERNALSYM X509_F_NETSCAPE_SPKI_B64_DECODE} - X509_F_NETSCAPE_SPKI_B64_DECODE = 129; - - {$EXTERNALSYM X509_F_NETSCAPE_SPKI_B64_ENCODE} - X509_F_NETSCAPE_SPKI_B64_ENCODE = 130; - {$EXTERNALSYM X509_F_X509_NAME_ENTRY_CREATE_BY_TXT} - X509_F_X509_NAME_ENTRY_CREATE_BY_TXT = 131; - {$EXTERNALSYM X509_F_X509_LOAD_CERT_CRL_FILE} - X509_F_X509_LOAD_CERT_CRL_FILE = 132; - {$EXTERNALSYM X509_F_X509_TRUST_ADD} - X509_F_X509_TRUST_ADD = 133; - - {$EXTERNALSYM X509_F_X509_STORE_CTX_PURPOSE_INHERIT} - X509_F_X509_STORE_CTX_PURPOSE_INHERIT = 134; - {$EXTERNALSYM X509_F_X509AT_ADD1_ATTR} - X509_F_X509AT_ADD1_ATTR = 135; - {$EXTERNALSYM X509_F_X509_ATTRIBUTE_CREATE_BY_NID} - X509_F_X509_ATTRIBUTE_CREATE_BY_NID = 136; - {$EXTERNALSYM X509_F_X509_ATTRIBUTE_CREATE_BY_OBJ} - X509_F_X509_ATTRIBUTE_CREATE_BY_OBJ = 137; - {$EXTERNALSYM X509_F_X509_ATTRIBUTE_SET1_DATA} - X509_F_X509_ATTRIBUTE_SET1_DATA = 138; - {$EXTERNALSYM X509_F_X509_ATTRIBUTE_GET0_DATA} - X509_F_X509_ATTRIBUTE_GET0_DATA = 139; - - {$EXTERNALSYM X509_F_X509_ATTRIBUTE_CREATE_BY_TXT} - X509_F_X509_ATTRIBUTE_CREATE_BY_TXT = 140; - {$EXTERNALSYM X509_F_X509_TRUST_SET} - X509_F_X509_TRUST_SET = 141; - {$EXTERNALSYM X509_F_X509_STORE_CTX_NEW} - X509_F_X509_STORE_CTX_NEW = 142; - {$EXTERNALSYM X509_F_X509_STORE_CTX_INIT} - X509_F_X509_STORE_CTX_INIT = 143; - {$EXTERNALSYM X509_F_X509_REQ_CHECK_PRIVATE_KEY} - X509_F_X509_REQ_CHECK_PRIVATE_KEY = 144; - {$EXTERNALSYM X509_F_CHECK_POLICY} - X509_F_CHECK_POLICY = 145; - {$EXTERNALSYM X509_F_X509_STORE_CTX_GET1_ISSUER} - X509_F_X509_STORE_CTX_GET1_ISSUER = 146; - {$EXTERNALSYM X509_F_X509_CRL_PRINT_FP} - X509_F_X509_CRL_PRINT_FP = 147; - - {$EXTERNALSYM X509_LU_CRL} - X509_LU_CRL = 2; - {$EXTERNALSYM X509_LU_FAIL} - X509_LU_FAIL = 0; - {$EXTERNALSYM X509_LU_PKEY} - X509_LU_PKEY = 3; - {$EXTERNALSYM X509_LU_RETRY} - X509_LU_RETRY = -1; - {$EXTERNALSYM X509_LU_X509} - X509_LU_X509 = 1; - {$EXTERNALSYM X509_L_ADD_DIR} - X509_L_ADD_DIR = 2; - {$EXTERNALSYM X509_L_FILE_LOAD} - X509_L_FILE_LOAD = 1; - {$EXTERNALSYM X509_R_BAD_X509_FILETYPE} - X509_R_BAD_X509_FILETYPE = 100; - {$EXTERNALSYM X509_R_BASE64_DECODE_ERROR} - X509_R_BASE64_DECODE_ERROR = 118; - {$EXTERNALSYM X509_R_CANT_CHECK_DH_KEY} - X509_R_CANT_CHECK_DH_KEY = 114; - {$EXTERNALSYM X509_R_CERT_ALREADY_IN_HASH_TABLE} - X509_R_CERT_ALREADY_IN_HASH_TABLE = 101; - {$EXTERNALSYM X509_R_ERR_ASN1_LIB} - X509_R_ERR_ASN1_LIB = 102; - {$EXTERNALSYM X509_R_INVALID_DIRECTORY} - X509_R_INVALID_DIRECTORY = 113; - {$EXTERNALSYM X509_R_INVALID_FIELD_NAME} - X509_R_INVALID_FIELD_NAME = 119; - {$EXTERNALSYM X509_R_INVALID_TRUST} - X509_R_INVALID_TRUST = 123; - {$EXTERNALSYM X509_R_KEY_TYPE_MISMATCH} - X509_R_KEY_TYPE_MISMATCH = 115; - {$EXTERNALSYM X509_R_KEY_VALUES_MISMATCH} - X509_R_KEY_VALUES_MISMATCH = 116; - {$EXTERNALSYM X509_R_LOADING_CERT_DIR} - X509_R_LOADING_CERT_DIR = 103; - {$EXTERNALSYM X509_R_LOADING_DEFAULTS} - X509_R_LOADING_DEFAULTS = 104; - {$EXTERNALSYM X509_R_METHOD_NOT_SUPPORTED} - X509_R_METHOD_NOT_SUPPORTED = 124; - {$EXTERNALSYM X509_R_NO_CERT_SET_FOR_US_TO_VERIFY} - X509_R_NO_CERT_SET_FOR_US_TO_VERIFY = 105; - {$EXTERNALSYM X509_R_PUBLIC_KEY_DECODE_ERROR} - X509_R_PUBLIC_KEY_DECODE_ERROR = 125; - {$EXTERNALSYM X509_R_PUBLIC_KEY_ENCODE_ERROR} - X509_R_PUBLIC_KEY_ENCODE_ERROR = 126; - {$EXTERNALSYM X509_R_SHOULD_RETRY} - X509_R_SHOULD_RETRY = 106; - {$EXTERNALSYM X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN} - X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN = 107; - {$EXTERNALSYM X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY} - X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY = 108; - {$EXTERNALSYM X509_R_UNKNOWN_KEY_TYPE} - X509_R_UNKNOWN_KEY_TYPE = 117; - {$EXTERNALSYM X509_R_UNKNOWN_NID} - X509_R_UNKNOWN_NID = 109; - {$EXTERNALSYM X509_R_UNKNOWN_PURPOSE_ID} - X509_R_UNKNOWN_PURPOSE_ID = 121; - {$EXTERNALSYM X509_R_UNSUPPORTED_ALGORITHM} - X509_R_UNSUPPORTED_ALGORITHM = 111; - {$EXTERNALSYM X509_R_WRONG_LOOKUP_TYPE} - X509_R_WRONG_LOOKUP_TYPE = 112; - {$EXTERNALSYM X509_R_WRONG_TYPE} - X509_R_WRONG_TYPE = 122; - - {$EXTERNALSYM X509_V_ERR_UNSPECIFIED} - X509_V_ERR_UNSPECIFIED = 1; - {$EXTERNALSYM X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT} - X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT = 2; - {$EXTERNALSYM X509_V_ERR_UNABLE_TO_GET_CRL} - X509_V_ERR_UNABLE_TO_GET_CRL = 3; - {$EXTERNALSYM X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE} - X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE = 4; - {$EXTERNALSYM X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE} - X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE = 5; - {$EXTERNALSYM X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY} - X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY = 6; - {$EXTERNALSYM X509_V_ERR_CERT_SIGNATURE_FAILURE} - X509_V_ERR_CERT_SIGNATURE_FAILURE = 7; - {$EXTERNALSYM X509_V_ERR_CRL_SIGNATURE_FAILURE} - X509_V_ERR_CRL_SIGNATURE_FAILURE = 8; - {$EXTERNALSYM X509_V_ERR_CERT_NOT_YET_VALID} - X509_V_ERR_CERT_NOT_YET_VALID = 9; - {$EXTERNALSYM X509_V_ERR_CERT_HAS_EXPIRED} - X509_V_ERR_CERT_HAS_EXPIRED = 10; - {$EXTERNALSYM X509_V_ERR_CRL_NOT_YET_VALID} - X509_V_ERR_CRL_NOT_YET_VALID = 11; - {$EXTERNALSYM X509_V_ERR_CRL_HAS_EXPIRED} - X509_V_ERR_CRL_HAS_EXPIRED = 12; - {$EXTERNALSYM X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD} - X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD = 13; - {$EXTERNALSYM X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD} - X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD = 14; - {$EXTERNALSYM X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD} - X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD = 15; - {$EXTERNALSYM X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD} - X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD = 16; - {$EXTERNALSYM X509_V_ERR_OUT_OF_MEM} - X509_V_ERR_OUT_OF_MEM = 17; - {$EXTERNALSYM X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT} - X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT = 18; - {$EXTERNALSYM X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN} - X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN = 19; - {$EXTERNALSYM X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY} - X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY = 20; - {$EXTERNALSYM X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE} - X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE = 21; - {$EXTERNALSYM X509_V_ERR_CERT_CHAIN_TOO_LONG} - X509_V_ERR_CERT_CHAIN_TOO_LONG = 22; - {$EXTERNALSYM X509_V_ERR_CERT_REVOKED} - X509_V_ERR_CERT_REVOKED = 23; - {$EXTERNALSYM X509_V_ERR_INVALID_CA} - X509_V_ERR_INVALID_CA = 24; - {$EXTERNALSYM X509_V_ERR_PATH_LENGTH_EXCEEDED} - X509_V_ERR_PATH_LENGTH_EXCEEDED = 25; - {$EXTERNALSYM X509_V_ERR_INVALID_PURPOSE} - X509_V_ERR_INVALID_PURPOSE = 26; - {$EXTERNALSYM X509_V_ERR_CERT_UNTRUSTED} - X509_V_ERR_CERT_UNTRUSTED = 27; - {$EXTERNALSYM X509_V_ERR_CERT_REJECTED} - X509_V_ERR_CERT_REJECTED = 28; -//* These are 'informational' when looking for issuer cert */ - {$EXTERNALSYM X509_V_ERR_SUBJECT_ISSUER_MISMATCH} - X509_V_ERR_SUBJECT_ISSUER_MISMATCH = 29; - {$EXTERNALSYM X509_V_ERR_AKID_SKID_MISMATCH} - X509_V_ERR_AKID_SKID_MISMATCH = 30; - {$EXTERNALSYM X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH} - X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH = 31; - {$EXTERNALSYM X509_V_ERR_KEYUSAGE_NO_CERTSIGN} - X509_V_ERR_KEYUSAGE_NO_CERTSIGN = 32; - {$EXTERNALSYM X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER} - X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER = 33; - {$EXTERNALSYM X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION} - X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION = 34; - {$EXTERNALSYM X509_V_ERR_KEYUSAGE_NO_CRL_SIGN} - X509_V_ERR_KEYUSAGE_NO_CRL_SIGN = 35; - {$EXTERNALSYM X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION} - X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION = 36; - {$EXTERNALSYM X509_V_ERR_INVALID_NON_CA} - X509_V_ERR_INVALID_NON_CA = 37; - {$EXTERNALSYM X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED} - X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED = 38; - {$EXTERNALSYM X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE} - X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE = 39; - {$EXTERNALSYM X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED} - X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED = 40; - {$EXTERNALSYM X509_V_ERR_INVALID_EXTENSION} - X509_V_ERR_INVALID_EXTENSION = 41; - {$EXTERNALSYM X509_V_ERR_INVALID_POLICY_EXTENSION} - X509_V_ERR_INVALID_POLICY_EXTENSION = 42; - {$EXTERNALSYM X509_V_ERR_NO_EXPLICIT_POLICY} - X509_V_ERR_NO_EXPLICIT_POLICY = 43; - {$EXTERNALSYM X509_V_ERR_DIFFERENT_CRL_SCOPE} - X509_V_ERR_DIFFERENT_CRL_SCOPE = 44; - {$EXTERNALSYM X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE} - X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE = 45; - - {$EXTERNALSYM X509_V_ERR_UNNESTED_RESOURCE} - X509_V_ERR_UNNESTED_RESOURCE = 46; //was 44; - {$EXTERNALSYM X509_V_ERR_PERMITTED_VIOLATION} - X509_V_ERR_PERMITTED_VIOLATION = 47; - {$EXTERNALSYM X509_V_ERR_EXCLUDED_VIOLATION} - X509_V_ERR_EXCLUDED_VIOLATION = 48; - {$EXTERNALSYM X509_V_ERR_SUBTREE_MINMAX} - X509_V_ERR_SUBTREE_MINMAX = 49; - {$EXTERNALSYM X509_V_ERR_APPLICATION_VERIFICATION} - X509_V_ERR_APPLICATION_VERIFICATION = 50; - {$EXTERNALSYM X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE} - X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE = 51; - {$EXTERNALSYM X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX} - X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX = 52; - {$EXTERNALSYM X509_V_ERR_UNSUPPORTED_NAME_SYNTAX} - X509_V_ERR_UNSUPPORTED_NAME_SYNTAX = 53; - {$EXTERNALSYM X509_V_ERR_CRL_PATH_VALIDATION_ERROR} - X509_V_ERR_CRL_PATH_VALIDATION_ERROR = 54; - {$EXTERNALSYM X509_V_ERR_PATH_LOOP} - X509_V_ERR_PATH_LOOP = 55; - {$EXTERNALSYM X509_V_ERR_SUITE_B_INVALID_VERSION} - X509_V_ERR_SUITE_B_INVALID_VERSION = 56; - {$EXTERNALSYM X509_V_ERR_SUITE_B_INVALID_ALGORITHM} - X509_V_ERR_SUITE_B_INVALID_ALGORITHM = 57; - {$EXTERNALSYM X509_V_ERR_SUITE_B_INVALID_CURVE} - X509_V_ERR_SUITE_B_INVALID_CURVE = 58; - {$EXTERNALSYM X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM} - X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM = 59; - {$EXTERNALSYM X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED} - X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED = 60; - {$EXTERNALSYM X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256} - X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 = 61; - {$EXTERNALSYM X509_V_ERR_HOSTNAME_MISMATCH} - X509_V_ERR_HOSTNAME_MISMATCH = 62; - {$EXTERNALSYM X509_V_ERR_EMAIL_MISMATCH} - X509_V_ERR_EMAIL_MISMATCH = 63; - {$EXTERNALSYM X509_V_ERR_IP_ADDRESS_MISMATCH} - X509_V_ERR_IP_ADDRESS_MISMATCH = 64; - {$EXTERNALSYM X509_V_ERR_DANE_NO_MATCH} - X509_V_ERR_DANE_NO_MATCH = 65; - {$EXTERNALSYM X509_V_ERR_EE_KEY_TOO_SMALL} - X509_V_ERR_EE_KEY_TOO_SMALL = 66; - {$EXTERNALSYM X509_V_ERR_CA_KEY_TOO_SMALL} - X509_V_ERR_CA_KEY_TOO_SMALL = 67; - {$EXTERNALSYM X509_V_ERR_CA_MD_TOO_WEAK} - X509_V_ERR_CA_MD_TOO_WEAK = 68; - {$EXTERNALSYM X509_V_ERR_INVALID_CALL} - X509_V_ERR_INVALID_CALL = 69; - {$EXTERNALSYM X509_V_ERR_STORE_LOOKUP} - X509_V_ERR_STORE_LOOKUP = 70; - {$EXTERNALSYM X509_V_ERR_NO_VALID_SCTS} - X509_V_ERR_NO_VALID_SCTS = 71; - {$EXTERNALSYM X509_V_ERR_PROXY_SUBJECT_NAME_VIOLATION} - X509_V_ERR_PROXY_SUBJECT_NAME_VIOLATION = 72; - {$EXTERNALSYM X509_V_ERR_OCSP_VERIFY_NEEDED} - X509_V_ERR_OCSP_VERIFY_NEEDED = 73; - {$EXTERNALSYM X509_V_ERR_OCSP_VERIFY_FAILED} - X509_V_ERR_OCSP_VERIFY_FAILED = 74; - {$EXTERNALSYM X509_V_ERR_OCSP_CERT_UNKNOWN} - X509_V_ERR_OCSP_CERT_UNKNOWN = 75; - - //* Certificate verify flags */ - - //* Send issuer+subject checks to verify_cb */ - {$EXTERNALSYM X509_V_FLAG_CB_ISSUER_CHECK} - X509_V_FLAG_CB_ISSUER_CHECK = $1; - //* Use check time instead of current time */ - {$EXTERNALSYM X509_V_FLAG_USE_CHECK_TIME} - X509_V_FLAG_USE_CHECK_TIME = $2; - //* Lookup CRLs */ - {$EXTERNALSYM X509_V_FLAG_CRL_CHECK} - X509_V_FLAG_CRL_CHECK = $4; - //* Lookup CRLs for whole chain */ - {$EXTERNALSYM X509_V_FLAG_CRL_CHECK_ALL} - X509_V_FLAG_CRL_CHECK_ALL = $8; - //* Ignore unhandled critical extensions */ - {$EXTERNALSYM X509_V_FLAG_IGNORE_CRITICAL} - X509_V_FLAG_IGNORE_CRITICAL = $10; -//* Disable workarounds for broken certificates */ - {$EXTERNALSYM X509_V_FLAG_X509_STRICT} - X509_V_FLAG_X509_STRICT = $20; -//* Enable proxy certificate validation */ - {$EXTERNALSYM X509_V_FLAG_ALLOW_PROXY_CERTS} - X509_V_FLAG_ALLOW_PROXY_CERTS = $40; -//* Enable policy checking */ - {$EXTERNALSYM X509_V_FLAG_POLICY_CHECK} - X509_V_FLAG_POLICY_CHECK = $80; -//* Policy variable require-explicit-policy */ - {$EXTERNALSYM X509_V_FLAG_EXPLICIT_POLICY} - X509_V_FLAG_EXPLICIT_POLICY = $100; -//* Policy variable inhibit-any-policy */ - {$EXTERNALSYM X509_V_FLAG_INHIBIT_ANY} - X509_V_FLAG_INHIBIT_ANY = $200; -//* Policy variable inhibit-policy-mapping */ - {$EXTERNALSYM X509_V_FLAG_INHIBIT_MAP} - X509_V_FLAG_INHIBIT_MAP = $400; -//* Notify callback that policy is OK */ - {$EXTERNALSYM X509_V_FLAG_NOTIFY_POLICY} - X509_V_FLAG_NOTIFY_POLICY = $800; -//* Extended CRL features such as indirect CRLs, alternate CRL signing keys */ - {$EXTERNALSYM X509_V_FLAG_EXTENDED_CRL_SUPPORT} - X509_V_FLAG_EXTENDED_CRL_SUPPORT = $1000; -//* Delta CRL support */ - {$EXTERNALSYM X509_V_FLAG_USE_DELTAS} - X509_V_FLAG_USE_DELTAS = $2000; -//* Check selfsigned CA signature */ - {$EXTERNALSYM X509_V_FLAG_CHECK_SS_SIGNATURE} - X509_V_FLAG_CHECK_SS_SIGNATURE = $4000; - - {$EXTERNALSYM X509_VP_FLAG_DEFAULT} - X509_VP_FLAG_DEFAULT = $1; - {$EXTERNALSYM X509_VP_FLAG_OVERWRITE} - X509_VP_FLAG_OVERWRITE = $2; - {$EXTERNALSYM X509_VP_FLAG_RESET_FLAGS} - X509_VP_FLAG_RESET_FLAGS = $4; - {$EXTERNALSYM X509_VP_FLAG_LOCKED} - X509_VP_FLAG_LOCKED = $8; - {$EXTERNALSYM X509_VP_FLAG_ONCE} - X509_VP_FLAG_ONCE = $10; - {$EXTERNALSYM X509_V_FLAG_POLICY_MASK} - X509_V_FLAG_POLICY_MASK = (X509_V_FLAG_POLICY_CHECK or - X509_V_FLAG_EXPLICIT_POLICY or - X509_V_FLAG_INHIBIT_ANY or - X509_V_FLAG_INHIBIT_MAP); - - {$EXTERNALSYM X509_V_OK} - X509_V_OK = 0; - {$EXTERNALSYM X509v3_KU_CRL_SIGN} - X509v3_KU_CRL_SIGN = $0002; - {$EXTERNALSYM X509v3_KU_DATA_ENCIPHERMENT} - X509v3_KU_DATA_ENCIPHERMENT = $0010; - {$EXTERNALSYM X509v3_KU_DECIPHER_ONLY} - X509v3_KU_DECIPHER_ONLY = $8000; - {$EXTERNALSYM X509v3_KU_DIGITAL_SIGNATURE} - X509v3_KU_DIGITAL_SIGNATURE = $0080; - {$EXTERNALSYM X509v3_KU_ENCIPHER_ONLY} - X509v3_KU_ENCIPHER_ONLY = $0001; - {$EXTERNALSYM X509v3_KU_KEY_AGREEMENT} - X509v3_KU_KEY_AGREEMENT = $0008; - {$EXTERNALSYM X509v3_KU_KEY_CERT_SIGN} - X509v3_KU_KEY_CERT_SIGN = $0004; - {$EXTERNALSYM X509v3_KU_KEY_ENCIPHERMENT} - X509v3_KU_KEY_ENCIPHERMENT = $0020; - {$EXTERNALSYM X509v3_KU_NON_REPUDIATION} - X509v3_KU_NON_REPUDIATION = $0040; - {$EXTERNALSYM X509v3_KU_UNDEF} - X509v3_KU_UNDEF = $ffff; - {$EXTERNALSYM X509V3_EXT_DYNAMIC} - X509V3_EXT_DYNAMIC = $1; - {$EXTERNALSYM X509V3_EXT_CTX_DEP} - X509V3_EXT_CTX_DEP = $2; - {$EXTERNALSYM X509V3_EXT_MULTILINE} - X509V3_EXT_MULTILINE = $4; - {$EXTERNALSYM GEN_OTHERNAME} - GEN_OTHERNAME = 0; - {$EXTERNALSYM GEN_EMAIL} - GEN_EMAIL = 1; - {$EXTERNALSYM GEN_DNS} - GEN_DNS = 2; - {$EXTERNALSYM GEN_X400} - GEN_X400 = 3; - {$EXTERNALSYM GEN_DIRNAME} - GEN_DIRNAME = 4; - {$EXTERNALSYM GEN_EDIPARTY} - GEN_EDIPARTY = 5; - {$EXTERNALSYM GEN_URI} - GEN_URI = 6; - {$EXTERNALSYM GEN_IPADD} - GEN_IPADD = 7; - {$EXTERNALSYM GEN_RID} - GEN_RID = 8; - {$EXTERNALSYM CRLDP_ALL_REASONS} - CRLDP_ALL_REASONS = $807f; - {$EXTERNALSYM CRL_REASON_NONE} - CRL_REASON_NONE = -1; - {$EXTERNALSYM CRL_REASON_UNSPECIFIED} - CRL_REASON_UNSPECIFIED = 0; - {$EXTERNALSYM CRL_REASON_KEY_COMPROMISE} - CRL_REASON_KEY_COMPROMISE = 1; - {$EXTERNALSYM CRL_REASON_CA_COMPROMISE} - CRL_REASON_CA_COMPROMISE = 2; - {$EXTERNALSYM CRL_REASON_AFFILIATION_CHANGED} - CRL_REASON_AFFILIATION_CHANGED = 3; - {$EXTERNALSYM CRL_REASON_SUPERSEDED} - CRL_REASON_SUPERSEDED = 4; - {$EXTERNALSYM CRL_REASON_CESSATION_OF_OPERATION} - CRL_REASON_CESSATION_OF_OPERATION = 5; - {$EXTERNALSYM CRL_REASON_CERTIFICATE_HOLD} - CRL_REASON_CERTIFICATE_HOLD = 6; - {$EXTERNALSYM CRL_REASON_REMOVE_FROM_CRL} - CRL_REASON_REMOVE_FROM_CRL = 8; - {$EXTERNALSYM CRL_REASON_PRIVILEGE_WITHDRAWN} - CRL_REASON_PRIVILEGE_WITHDRAWN = 9; - {$EXTERNALSYM CRL_REASON_AA_COMPROMISE} - CRL_REASON_AA_COMPROMISE = 10; - -//* Values in idp_flags field */ -//* IDP present */ - {$EXTERNALSYM IDP_PRESENT} - IDP_PRESENT = $1; -//* IDP values inconsistent */ - {$EXTERNALSYM IDP_INVALID} - IDP_INVALID = $2; -//* onlyuser true */ - {$EXTERNALSYM IDP_ONLYUSER} - IDP_ONLYUSER = $4; -//* onlyCA true */ - {$EXTERNALSYM IDP_ONLYCA} - IDP_ONLYCA = $8; -//* onlyattr true */ - {$EXTERNALSYM IDP_ONLYATTR} - IDP_ONLYATTR = $10; -//* indirectCRL true */ - {$EXTERNALSYM IDP_INDIRECT} - IDP_INDIRECT = $20; -//* onlysomereasons present */ - {$EXTERNALSYM IDP_REASONS} - IDP_REASONS = $40; - - //* X509_PURPOSE stuff */ - {$EXTERNALSYM EXFLAG_BCONS} - EXFLAG_BCONS = $1; - {$EXTERNALSYM EXFLAG_KUSAGE} - EXFLAG_KUSAGE = $2; - {$EXTERNALSYM EXFLAG_XKUSAGE} - EXFLAG_XKUSAGE = $4; - {$EXTERNALSYM EXFLAG_NSCERT} - EXFLAG_NSCERT = $8; - {$EXTERNALSYM EXFLAG_CA} - EXFLAG_CA = $10; - //* Really self issued not necessarily self signed */ - {$EXTERNALSYM EXFLAG_SI} - EXFLAG_SI = $20; - {$EXTERNALSYM EXFLAG_SS} - EXFLAG_SS = $20; - {$EXTERNALSYM EXFLAG_V1} - EXFLAG_V1 = $40; - {$EXTERNALSYM EXFLAG_INVALID} - EXFLAG_INVALID = $80; - {$EXTERNALSYM EXFLAG_SET} - EXFLAG_SET = $100; - {$EXTERNALSYM EXFLAG_CRITICAL} - EXFLAG_CRITICAL = $200; - {$EXTERNALSYM EXFLAG_PROXY} - EXFLAG_PROXY = $400; - {$EXTERNALSYM EXFLAG_INVALID_POLICY} - EXFLAG_INVALID_POLICY = $800; - {$EXTERNALSYM KU_DIGITAL_SIGNATURE} - KU_DIGITAL_SIGNATURE = $0080; - {$EXTERNALSYM KU_NON_REPUDIATION} - KU_NON_REPUDIATION = $0040; - {$EXTERNALSYM KU_KEY_ENCIPHERMENT} - KU_KEY_ENCIPHERMENT = $0020; - {$EXTERNALSYM KU_DATA_ENCIPHERMENT} - KU_DATA_ENCIPHERMENT = $0010; - {$EXTERNALSYM KU_KEY_AGREEMENT} - KU_KEY_AGREEMENT = $0008; - {$EXTERNALSYM KU_KEY_CERT_SIGN} - KU_KEY_CERT_SIGN = $0004; - {$EXTERNALSYM KU_CRL_SIGN} - KU_CRL_SIGN = $0002; - {$EXTERNALSYM KU_ENCIPHER_ONLY} - KU_ENCIPHER_ONLY = $0001; - {$EXTERNALSYM KU_DECIPHER_ONLY} - KU_DECIPHER_ONLY = $8000; - {$EXTERNALSYM NS_SSL_CLIENT} - NS_SSL_CLIENT = $80; - {$EXTERNALSYM NS_SSL_SERVER} - NS_SSL_SERVER = $40; - {$EXTERNALSYM NS_SMIME} - NS_SMIME = $20; - {$EXTERNALSYM NS_OBJSIGN} - NS_OBJSIGN = $10; - {$EXTERNALSYM NS_SSL_CA} - NS_SSL_CA = $04; - {$EXTERNALSYM NS_SMIME_CA} - NS_SMIME_CA = $02; - {$EXTERNALSYM NS_OBJSIGN_CA} - NS_OBJSIGN_CA = $01; - {$EXTERNALSYM NS_ANY_CA} - NS_ANY_CA = (NS_SSL_CA or NS_SMIME_CA or - {$EXTERNALSYM XKU_SSL_SERVER} - NS_OBJSIGN_CA); - {$EXTERNALSYM XKU_SSL_SERVER} - XKU_SSL_SERVER = $1; - {$EXTERNALSYM XKU_SSL_CLIENT} - XKU_SSL_CLIENT = $2; - {$EXTERNALSYM XKU_SMIME} - XKU_SMIME = $4; - {$EXTERNALSYM XKU_CODE_SIGN} - XKU_CODE_SIGN = $8; - {$EXTERNALSYM XKU_SGC} - XKU_SGC = $10; - {$EXTERNALSYM XKU_OCSP_SIGN} - XKU_OCSP_SIGN = $20; - {$EXTERNALSYM XKU_TIMESTAMP} - XKU_TIMESTAMP = $40; - {$EXTERNALSYM XKU_DVCS} - XKU_DVCS = $80; - {$EXTERNALSYM X509_PURPOSE_DYNAMIC} - X509_PURPOSE_DYNAMIC = $1; - {$EXTERNALSYM X509_PURPOSE_DYNAMIC_NAME} - X509_PURPOSE_DYNAMIC_NAME = $2; - - {$EXTERNALSYM X509_PURPOSE_SSL_CLIENT} - X509_PURPOSE_SSL_CLIENT = 1; - {$EXTERNALSYM X509_PURPOSE_SSL_SERVER} - X509_PURPOSE_SSL_SERVER = 2; - {$EXTERNALSYM X509_PURPOSE_NS_SSL_SERVER} - X509_PURPOSE_NS_SSL_SERVER = 3; - {$EXTERNALSYM X509_PURPOSE_SMIME_SIGN} - X509_PURPOSE_SMIME_SIGN = 4; - {$EXTERNALSYM X509_PURPOSE_SMIME_ENCRYPT} - X509_PURPOSE_SMIME_ENCRYPT = 5; - {$EXTERNALSYM X509_PURPOSE_CRL_SIGN} - X509_PURPOSE_CRL_SIGN = 6; - {$EXTERNALSYM X509_PURPOSE_ANY} - X509_PURPOSE_ANY = 7; - {$EXTERNALSYM X509_PURPOSE_OCSP_HELPER} - X509_PURPOSE_OCSP_HELPER = 8; - {$EXTERNALSYM X509_PURPOSE_TIMESTAMP_SIGN} - X509_PURPOSE_TIMESTAMP_SIGN = 9; - - {$EXTERNALSYM X509_PURPOSE_MIN} - X509_PURPOSE_MIN = 1; - {$EXTERNALSYM X509_PURPOSE_MAX} - X509_PURPOSE_MAX = 9; - - -//* Flags for X509V3_EXT_print() */ - - {$EXTERNALSYM X509V3_EXT_UNKNOWN_MASK} - X509V3_EXT_UNKNOWN_MASK = TIdC_LONG($f shl 16); -//* Return error for unknown extensions */ - {$EXTERNALSYM X509V3_EXT_DEFAULT} - X509V3_EXT_DEFAULT = 0; -//* Print error for unknown extensions */ - {$EXTERNALSYM X509V3_EXT_ERROR_UNKNOWN} - X509V3_EXT_ERROR_UNKNOWN = (TIdC_LONG(1) shl 16); -//* ASN1 parse unknown extensions */ - {$EXTERNALSYM X509V3_EXT_PARSE_UNKNOWN} - X509V3_EXT_PARSE_UNKNOWN = (TIdC_LONG(2) shl 16); -//* BIO_dump unknown extensions */ - {$EXTERNALSYM X509V3_EXT_DUMP_UNKNOWN} - X509V3_EXT_DUMP_UNKNOWN = (TIdC_LONG(3) shl 16); - -//* Flags for X509V3_add1_i2d */ - {$EXTERNALSYM X509V3_ADD_OP_MASK} - X509V3_ADD_OP_MASK = TIdC_LONG($f); - {$EXTERNALSYM X509V3_ADD_DEFAULT} - X509V3_ADD_DEFAULT = TIdC_LONG(0); - {$EXTERNALSYM X509V3_ADD_APPEND} - X509V3_ADD_APPEND = TIdC_LONG(1); - {$EXTERNALSYM X509V3_ADD_REPLACE} - X509V3_ADD_REPLACE = TIdC_LONG(2); - {$EXTERNALSYM X509V3_ADD_REPLACE_EXISTING} - X509V3_ADD_REPLACE_EXISTING = TIdC_LONG(3); - {$EXTERNALSYM X509V3_ADD_KEEP_EXISTING} - X509V3_ADD_KEEP_EXISTING = TIdC_LONG(4); - {$EXTERNALSYM X509V3_ADD_DELETE} - X509V3_ADD_DELETE = TIdC_LONG(5); - {$EXTERNALSYM X509V3_ADD_SILENT} - X509V3_ADD_SILENT = TIdC_LONG($10); - - {$IFNDEF OPENSSL_NO_RFC3779} - {$EXTERNALSYM ASIdOrRange_id} - ASIdOrRange_id = 0; - {$EXTERNALSYM ASIdOrRange_range} - ASIdOrRange_range = 1; - - {$EXTERNALSYM ASIdentifierChoice_inherit} - ASIdentifierChoice_inherit = 0; - {$EXTERNALSYM ASIdentifierChoice_asIdsOrRanges} - ASIdentifierChoice_asIdsOrRanges = 1; - - {$EXTERNALSYM IPAddressOrRange_addressPrefix} - IPAddressOrRange_addressPrefix = 0; - {$EXTERNALSYM IPAddressOrRange_addressRange} - IPAddressOrRange_addressRange = 1; - - {$EXTERNALSYM IPAddressChoice_inherit} - IPAddressChoice_inherit = 0; - {$EXTERNALSYM IPAddressChoice_addressesOrRanges} - IPAddressChoice_addressesOrRanges = 1; - -// /* -// * API tag for elements of the ASIdentifer SEQUENCE. -// */ - {$EXTERNALSYM V3_ASID_ASNUM} - V3_ASID_ASNUM = 0; - {$EXTERNALSYM V3_ASID_RDI} - V3_ASID_RDI = 1; - -//* -// * AFI values, assigned by IANA. It'd be nice to make the AFI -// * handling code totally generic, but there are too many little things -// * that would need to be defined for other address families for it to -// * be worth the trouble. -// */ - {$EXTERNALSYM IANA_AFI_IPV4} - IANA_AFI_IPV4 = 1; - {$EXTERNALSYM IANA_AFI_IPV6} - IANA_AFI_IPV6 = 2; - {$ENDIF} - - //* Function codes. */ - {$EXTERNALSYM X509V3_F_A2I_GENERAL_NAME} - X509V3_F_A2I_GENERAL_NAME = 164; - {$EXTERNALSYM X509V3_F_ASIDENTIFIERCHOICE_CANONIZE} - X509V3_F_ASIDENTIFIERCHOICE_CANONIZE = 161; - {$EXTERNALSYM X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL} - X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL = 162; - {$EXTERNALSYM X509V3_F_COPY_EMAIL} - X509V3_F_COPY_EMAIL = 122; - {$EXTERNALSYM X509V3_F_COPY_ISSUER} - X509V3_F_COPY_ISSUER = 123; - {$EXTERNALSYM X509V3_F_DO_DIRNAME} - X509V3_F_DO_DIRNAME = 144; - {$EXTERNALSYM X509V3_F_DO_EXT_CONF} - X509V3_F_DO_EXT_CONF = 124; - {$EXTERNALSYM X509V3_F_DO_EXT_I2D} - X509V3_F_DO_EXT_I2D = 135; - {$EXTERNALSYM X509V3_F_DO_EXT_NCONF} - X509V3_F_DO_EXT_NCONF = 151; - {$EXTERNALSYM X509V3_F_DO_I2V_NAME_CONSTRAINTS} - X509V3_F_DO_I2V_NAME_CONSTRAINTS = 148; - {$EXTERNALSYM X509V3_F_GNAMES_FROM_SECTNAME} - X509V3_F_GNAMES_FROM_SECTNAME = 156; - {$EXTERNALSYM X509V3_F_HEX_TO_STRING} - X509V3_F_HEX_TO_STRING = 111; - {$EXTERNALSYM X509V3_F_I2S_ASN1_ENUMERATED} - X509V3_F_I2S_ASN1_ENUMERATED = 121; - {$EXTERNALSYM X509V3_F_I2S_ASN1_IA5STRING} - X509V3_F_I2S_ASN1_IA5STRING = 149; - {$EXTERNALSYM X509V3_F_I2S_ASN1_INTEGER} - X509V3_F_I2S_ASN1_INTEGER = 120; - {$EXTERNALSYM X509V3_F_I2V_AUTHORITY_INFO_ACCESS} - X509V3_F_I2V_AUTHORITY_INFO_ACCESS = 138; - {$EXTERNALSYM X509V3_F_NOTICE_SECTION} - X509V3_F_NOTICE_SECTION =132; - {$EXTERNALSYM X509V3_F_NREF_NOS} - X509V3_F_NREF_NOS =133; - {$EXTERNALSYM X509V3_F_POLICY_SECTION} - X509V3_F_POLICY_SECTION =131; - {$EXTERNALSYM X509V3_F_PROCESS_PCI_VALUE} - X509V3_F_PROCESS_PCI_VALUE =150; - {$EXTERNALSYM X509V3_F_R2I_CERTPOL} - X509V3_F_R2I_CERTPOL =130; - {$EXTERNALSYM X509V3_F_R2I_PCI} - X509V3_F_R2I_PCI = 155; - {$EXTERNALSYM X509V3_F_S2I_ASN1_IA5STRING} - X509V3_F_S2I_ASN1_IA5STRING = 100; - {$EXTERNALSYM X509V3_F_S2I_ASN1_INTEGER} - X509V3_F_S2I_ASN1_INTEGER = 108; - {$EXTERNALSYM X509V3_F_S2I_ASN1_OCTET_STRING} - X509V3_F_S2I_ASN1_OCTET_STRING = 112; - {$EXTERNALSYM X509V3_F_S2I_ASN1_SKEY_ID} - X509V3_F_S2I_ASN1_SKEY_ID = 114; - {$EXTERNALSYM X509V3_F_S2I_SKEY_ID} - X509V3_F_S2I_SKEY_ID = 115; - {$EXTERNALSYM X509V3_F_SET_DIST_POINT_NAME} - X509V3_F_SET_DIST_POINT_NAME = 158; - {$EXTERNALSYM X509V3_F_STRING_TO_HEX} - X509V3_F_STRING_TO_HEX = 113; - {$EXTERNALSYM X509V3_F_SXNET_ADD_ID_ASC} - X509V3_F_SXNET_ADD_ID_ASC = 125; - {$EXTERNALSYM X509V3_F_SXNET_ADD_ID_INTEGER} - X509V3_F_SXNET_ADD_ID_INTEGER = 126; - {$EXTERNALSYM X509V3_F_SXNET_ADD_ID_ULONG} - X509V3_F_SXNET_ADD_ID_ULONG = 127; - {$EXTERNALSYM X509V3_F_SXNET_GET_ID_ASC} - X509V3_F_SXNET_GET_ID_ASC = 128; - {$EXTERNALSYM X509V3_F_SXNET_GET_ID_ULONG} - X509V3_F_SXNET_GET_ID_ULONG = 129; - {$EXTERNALSYM X509V3_F_V2I_ASIDENTIFIERS} - X509V3_F_V2I_ASIDENTIFIERS = 163; - {$EXTERNALSYM X509V3_F_V2I_ASN1_BIT_STRING} - X509V3_F_V2I_ASN1_BIT_STRING = 101; - {$EXTERNALSYM X509V3_F_V2I_AUTHORITY_INFO_ACCESS} - X509V3_F_V2I_AUTHORITY_INFO_ACCESS = 139; - {$EXTERNALSYM X509V3_F_V2I_AUTHORITY_KEYID} - X509V3_F_V2I_AUTHORITY_KEYID = 119; - {$EXTERNALSYM X509V3_F_V2I_BASIC_CONSTRAINTS} - X509V3_F_V2I_BASIC_CONSTRAINTS = 102; - {$EXTERNALSYM X509V3_F_V2I_CRLD} - X509V3_F_V2I_CRLD = 134; - {$EXTERNALSYM X509V3_F_V2I_EXTENDED_KEY_USAGE} - X509V3_F_V2I_EXTENDED_KEY_USAGE = 103; - {$EXTERNALSYM X509V3_F_V2I_GENERAL_NAMES} - X509V3_F_V2I_GENERAL_NAMES = 118; - {$EXTERNALSYM X509V3_F_V2I_GENERAL_NAME_EX} - X509V3_F_V2I_GENERAL_NAME_EX = 117; - {$EXTERNALSYM X509V3_F_V2I_IDP} - X509V3_F_V2I_IDP = 157; - {$EXTERNALSYM X509V3_F_V2I_IPADDRBLOCKS} - X509V3_F_V2I_IPADDRBLOCKS = 159; - {$EXTERNALSYM X509V3_F_V2I_ISSUER_ALT} - X509V3_F_V2I_ISSUER_ALT = 153; - {$EXTERNALSYM X509V3_F_V2I_NAME_CONSTRAINTS} - X509V3_F_V2I_NAME_CONSTRAINTS = 147; - {$EXTERNALSYM X509V3_F_V2I_POLICY_CONSTRAINTS} - X509V3_F_V2I_POLICY_CONSTRAINTS = 146; - {$EXTERNALSYM X509V3_F_V2I_POLICY_MAPPINGS} - X509V3_F_V2I_POLICY_MAPPINGS = 145; - {$EXTERNALSYM X509V3_F_V2I_SUBJECT_ALT} - X509V3_F_V2I_SUBJECT_ALT = 154; - {$EXTERNALSYM X509V3_F_V3_ADDR_VALIDATE_PATH_INTERNAL} - X509V3_F_V3_ADDR_VALIDATE_PATH_INTERNAL = 160; - {$EXTERNALSYM X509V3_F_V3_GENERIC_EXTENSION} - X509V3_F_V3_GENERIC_EXTENSION = 116; - {$EXTERNALSYM X509V3_F_X509V3_ADD1_I2D} - X509V3_F_X509V3_ADD1_I2D = 140; - {$EXTERNALSYM X509V3_F_X509V3_ADD_VALUE} - X509V3_F_X509V3_ADD_VALUE = 105; - {$EXTERNALSYM X509V3_F_X509V3_EXT_ADD} - X509V3_F_X509V3_EXT_ADD = 104; - {$EXTERNALSYM X509V3_F_X509V3_EXT_ADD_ALIAS} - X509V3_F_X509V3_EXT_ADD_ALIAS = 106; - {$EXTERNALSYM X509V3_F_X509V3_EXT_CONF} - X509V3_F_X509V3_EXT_CONF = 107; - {$EXTERNALSYM X509V3_F_X509V3_EXT_I2D} - X509V3_F_X509V3_EXT_I2D = 136; - {$EXTERNALSYM X509V3_F_X509V3_EXT_NCONF} - X509V3_F_X509V3_EXT_NCONF = 152; - {$EXTERNALSYM X509V3_F_X509V3_GET_SECTION} - X509V3_F_X509V3_GET_SECTION = 142; - {$EXTERNALSYM X509V3_F_X509V3_GET_STRING} - X509V3_F_X509V3_GET_STRING = 143; - {$EXTERNALSYM X509V3_F_X509V3_GET_VALUE_BOOL} - X509V3_F_X509V3_GET_VALUE_BOOL = 110; - {$EXTERNALSYM X509V3_F_X509V3_PARSE_LIST} - X509V3_F_X509V3_PARSE_LIST = 109; - {$EXTERNALSYM X509V3_F_X509_PURPOSE_ADD} - X509V3_F_X509_PURPOSE_ADD = 137; - {$EXTERNALSYM X509V3_F_X509_PURPOSE_SET} - X509V3_F_X509_PURPOSE_SET = 141; - - //* Reason codes. */ - {$EXTERNALSYM X509V3_R_BAD_IP_ADDRESS} - X509V3_R_BAD_IP_ADDRESS = 118; - {$EXTERNALSYM X509V3_R_BAD_OBJECT} - X509V3_R_BAD_OBJECT = 119; - {$EXTERNALSYM X509V3_R_BN_DEC2BN_ERROR} - X509V3_R_BN_DEC2BN_ERROR = 100; - {$EXTERNALSYM X509V3_R_BN_TO_ASN1_INTEGER_ERROR} - X509V3_R_BN_TO_ASN1_INTEGER_ERROR = 101; - {$EXTERNALSYM X509V3_R_DIRNAME_ERROR} - X509V3_R_DIRNAME_ERROR = 149; - {$EXTERNALSYM X509V3_R_DISTPOINT_ALREADY_SET} - X509V3_R_DISTPOINT_ALREADY_SET = 160; - {$EXTERNALSYM X509V3_R_DUPLICATE_ZONE_ID} - X509V3_R_DUPLICATE_ZONE_ID = 133; - {$EXTERNALSYM X509V3_R_ERROR_CONVERTING_ZONE} - X509V3_R_ERROR_CONVERTING_ZONE = 131; - {$EXTERNALSYM X509V3_R_ERROR_CREATING_EXTENSION} - X509V3_R_ERROR_CREATING_EXTENSION = 144; - {$EXTERNALSYM X509V3_R_ERROR_IN_EXTENSION} - X509V3_R_ERROR_IN_EXTENSION = 128; - {$EXTERNALSYM X509V3_R_EXPECTED_A_SECTION_NAME} - X509V3_R_EXPECTED_A_SECTION_NAME = 137; - {$EXTERNALSYM X509V3_R_EXTENSION_EXISTS} - X509V3_R_EXTENSION_EXISTS = 145; - {$EXTERNALSYM X509V3_R_EXTENSION_NAME_ERROR} - X509V3_R_EXTENSION_NAME_ERROR = 115; - {$EXTERNALSYM X509V3_R_EXTENSION_NOT_FOUND} - X509V3_R_EXTENSION_NOT_FOUND = 102; - {$EXTERNALSYM X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED} - X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED = 103; - {$EXTERNALSYM X509V3_R_EXTENSION_VALUE_ERROR} - X509V3_R_EXTENSION_VALUE_ERROR = 116; - {$EXTERNALSYM X509V3_R_ILLEGAL_EMPTY_EXTENSION} - X509V3_R_ILLEGAL_EMPTY_EXTENSION = 151; - {$EXTERNALSYM X509V3_R_ILLEGAL_HEX_DIGIT} - X509V3_R_ILLEGAL_HEX_DIGIT = 113; - {$EXTERNALSYM X509V3_R_INCORRECT_POLICY_SYNTAX_TAG} - X509V3_R_INCORRECT_POLICY_SYNTAX_TAG = 152; - {$EXTERNALSYM X509V3_R_INVALID_MULTIPLE_RDNS} - X509V3_R_INVALID_MULTIPLE_RDNS = 161; - {$EXTERNALSYM X509V3_R_INVALID_ASNUMBER} - X509V3_R_INVALID_ASNUMBER = 162; - {$EXTERNALSYM X509V3_R_INVALID_ASRANGE} - X509V3_R_INVALID_ASRANGE = 163; - {$EXTERNALSYM X509V3_R_INVALID_BOOLEAN_STRING} - X509V3_R_INVALID_BOOLEAN_STRING = 104; - {$EXTERNALSYM X509V3_R_INVALID_EXTENSION_STRING} - X509V3_R_INVALID_EXTENSION_STRING = 105; - {$EXTERNALSYM X509V3_R_INVALID_INHERITANCE} - X509V3_R_INVALID_INHERITANCE = 165; - {$EXTERNALSYM X509V3_R_INVALID_IPADDRESS} - X509V3_R_INVALID_IPADDRESS = 166; - {$EXTERNALSYM X509V3_R_INVALID_NAME} - X509V3_R_INVALID_NAME = 106; - {$EXTERNALSYM X509V3_R_INVALID_NULL_ARGUMENT} - X509V3_R_INVALID_NULL_ARGUMENT = 107; - {$EXTERNALSYM X509V3_R_INVALID_NULL_NAME} - X509V3_R_INVALID_NULL_NAME = 108; - {$EXTERNALSYM X509V3_R_INVALID_NULL_VALUE} - X509V3_R_INVALID_NULL_VALUE = 109; - {$EXTERNALSYM X509V3_R_INVALID_NUMBER} - X509V3_R_INVALID_NUMBER = 140; - {$EXTERNALSYM X509V3_R_INVALID_NUMBERS} - X509V3_R_INVALID_NUMBERS = 141; - {$EXTERNALSYM X509V3_R_INVALID_OBJECT_IDENTIFIER} - X509V3_R_INVALID_OBJECT_IDENTIFIER = 110; - {$EXTERNALSYM X509V3_R_INVALID_OPTION} - X509V3_R_INVALID_OPTION = 138; - {$EXTERNALSYM X509V3_R_INVALID_POLICY_IDENTIFIER} - X509V3_R_INVALID_POLICY_IDENTIFIER = 134; - {$EXTERNALSYM X509V3_R_INVALID_PROXY_POLICY_SETTING} - X509V3_R_INVALID_PROXY_POLICY_SETTING = 153; - {$EXTERNALSYM X509V3_R_INVALID_PURPOSE} - X509V3_R_INVALID_PURPOSE = 146; - {$EXTERNALSYM X509V3_R_INVALID_SAFI} - X509V3_R_INVALID_SAFI = 164; - {$EXTERNALSYM X509V3_R_INVALID_SECTION} - X509V3_R_INVALID_SECTION = 135; - {$EXTERNALSYM X509V3_R_INVALID_SYNTAX} - X509V3_R_INVALID_SYNTAX = 143; - {$EXTERNALSYM X509V3_R_ISSUER_DECODE_ERROR} - X509V3_R_ISSUER_DECODE_ERROR = 126; - {$EXTERNALSYM X509V3_R_MISSING_VALUE} - X509V3_R_MISSING_VALUE = 124; - {$EXTERNALSYM X509V3_R_NEED_ORGANIZATION_AND_NUMBERS} - X509V3_R_NEED_ORGANIZATION_AND_NUMBERS = 142; - {$EXTERNALSYM X509V3_R_NO_CONFIG_DATABASE} - X509V3_R_NO_CONFIG_DATABASE = 136; - {$EXTERNALSYM X509V3_R_NO_ISSUER_CERTIFICATE} - X509V3_R_NO_ISSUER_CERTIFICATE = 121; - {$EXTERNALSYM X509V3_R_NO_ISSUER_DETAILS} - X509V3_R_NO_ISSUER_DETAILS = 127; - {$EXTERNALSYM X509V3_R_NO_POLICY_IDENTIFIER} - X509V3_R_NO_POLICY_IDENTIFIER = 139; - {$EXTERNALSYM X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED} - X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED = 154; - {$EXTERNALSYM X509V3_R_NO_PUBLIC_KEY} - X509V3_R_NO_PUBLIC_KEY = 114; - {$EXTERNALSYM X509V3_R_NO_SUBJECT_DETAILS} - X509V3_R_NO_SUBJECT_DETAILS = 125; - {$EXTERNALSYM X509V3_R_ODD_NUMBER_OF_DIGITS} - X509V3_R_ODD_NUMBER_OF_DIGITS = 112; - {$EXTERNALSYM X509V3_R_OPERATION_NOT_DEFINED} - X509V3_R_OPERATION_NOT_DEFINED = 148; - {$EXTERNALSYM X509V3_R_OTHERNAME_ERROR} - X509V3_R_OTHERNAME_ERROR = 147; - {$EXTERNALSYM X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED} - X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED = 155; - {$EXTERNALSYM X509V3_R_POLICY_PATH_LENGTH} - X509V3_R_POLICY_PATH_LENGTH = 156; - {$EXTERNALSYM X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED} - X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED = 157; - {$EXTERNALSYM X509V3_R_POLICY_SYNTAX_NOT_CURRENTLY_SUPPORTED} - X509V3_R_POLICY_SYNTAX_NOT_CURRENTLY_SUPPORTED = 158; - {$EXTERNALSYM X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY} - X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY = 159; - {$EXTERNALSYM X509V3_R_SECTION_NOT_FOUND} - X509V3_R_SECTION_NOT_FOUND = 150; - {$EXTERNALSYM X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS} - X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS = 122; - {$EXTERNALSYM X509V3_R_UNABLE_TO_GET_ISSUER_KEYID} - X509V3_R_UNABLE_TO_GET_ISSUER_KEYID = 123; - {$EXTERNALSYM X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT} - X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT = 111; - {$EXTERNALSYM X509V3_R_UNKNOWN_EXTENSION} - X509V3_R_UNKNOWN_EXTENSION = 129; - {$EXTERNALSYM X509V3_R_UNKNOWN_EXTENSION_NAME} - X509V3_R_UNKNOWN_EXTENSION_NAME = 130; - {$EXTERNALSYM X509V3_R_UNKNOWN_OPTION} - X509V3_R_UNKNOWN_OPTION = 120; - {$EXTERNALSYM X509V3_R_UNSUPPORTED_OPTION} - X509V3_R_UNSUPPORTED_OPTION = 117; - {$EXTERNALSYM X509V3_R_UNSUPPORTED_TYPE} - X509V3_R_UNSUPPORTED_TYPE = 167; - {$EXTERNALSYM X509V3_R_USER_TOO_LONG} - X509V3_R_USER_TOO_LONG = 132; -//* Possible values for status. See ts_resp_print.c && ts_resp_verify.c. */ - {$EXTERNALSYM TS_STATUS_GRANTED} - TS_STATUS_GRANTED = 0; - {$EXTERNALSYM TS_STATUS_GRANTED_WITH_MODS} - TS_STATUS_GRANTED_WITH_MODS = 1; - {$EXTERNALSYM TS_STATUS_REJECTION} - TS_STATUS_REJECTION = 2; - {$EXTERNALSYM TS_STATUS_WAITING} - TS_STATUS_WAITING = 3; - {$EXTERNALSYM TS_STATUS_REVOCATION_WARNING} - TS_STATUS_REVOCATION_WARNING = 4; - {$EXTERNALSYM TS_STATUS_REVOCATION_NOTIFICATION} - TS_STATUS_REVOCATION_NOTIFICATION = 5; - -//* Possible values for failure_info. See ts_resp_print.c && ts_resp_verify.c */ - {$EXTERNALSYM TS_INFO_BAD_ALG} - TS_INFO_BAD_ALG = 0; - {$EXTERNALSYM TS_INFO_BAD_REQUEST} - TS_INFO_BAD_REQUEST = 2; - {$EXTERNALSYM TS_INFO_BAD_DATA_FORMAT} - TS_INFO_BAD_DATA_FORMAT = 5; - {$EXTERNALSYM TS_INFO_TIME_NOT_AVAILABLE} - TS_INFO_TIME_NOT_AVAILABLE = 14; - {$EXTERNALSYM TS_INFO_UNACCEPTED_POLICY} - TS_INFO_UNACCEPTED_POLICY = 15; - {$EXTERNALSYM TS_INFO_UNACCEPTED_EXTENSION} - TS_INFO_UNACCEPTED_EXTENSION = 16; - {$EXTERNALSYM TS_INFO_ADD_INFO_NOT_AVAILABLE} - TS_INFO_ADD_INFO_NOT_AVAILABLE = 17; - {$EXTERNALSYM TS_INFO_SYSTEM_FAILURE} - TS_INFO_SYSTEM_FAILURE = 25; -//* Declarations related to response generation, defined in ts/ts_resp_sign.c. */ -//* Optional flags for response generation. */ -//* Don't include the TSA name in response. */ - {$EXTERNALSYM TS_TSA_NAME} - TS_TSA_NAME = $01; -//* Set ordering to true in response. */ - {$EXTERNALSYM TS_ORDERING} - TS_ORDERING = $02; -///* -// * Include the signer certificate and the other specified certificates in -// * the ESS signing certificate attribute beside the PKCS7 signed data. -// * Only the signer certificates is included by default. -// */ - {$EXTERNALSYM TS_ESS_CERT_ID_CHAIN} - TS_ESS_CERT_ID_CHAIN = $04; -//* At most we accept usec precision. */ - {$EXTERNALSYM TS_MAX_CLOCK_PRECISION_DIGITS} - TS_MAX_CLOCK_PRECISION_DIGITS = 6; -//* Context structure for the generic verify method. */ - -//* Verify the signer's certificate and the signature of the response. */ - {$EXTERNALSYM TS_VFY_SIGNATURE} - TS_VFY_SIGNATURE = TIdC_ULONG(1 shl 0); -//* Verify the version number of the response. */ - {$EXTERNALSYM TS_VFY_VERSION} - TS_VFY_VERSION = TIdC_ULONG(1 shl 1); - ///* Verify if the policy supplied by the user matches the policy of the TSA. */ - {$EXTERNALSYM TS_VFY_POLICY} - TS_VFY_POLICY = TIdC_ULONG(1 shl 2); - -///* Verify the message imprint provided by the user. This flag should not be -// specified with TS_VFY_DATA. */ - {$EXTERNALSYM TS_VFY_IMPRINT} - TS_VFY_IMPRINT = TIdC_ULONG(1 shl 3); -///* Verify the message imprint computed by the verify method from the user -// provided data and the MD algorithm of the response. This flag should not be -// specified with TS_VFY_IMPRINT. */ - {$EXTERNALSYM TS_VFY_DATA} - TS_VFY_DATA = TIdC_ULONG(1 shl 4); -//* Verify the nonce value. */ - {$EXTERNALSYM TS_VFY_NONCE} - TS_VFY_NONCE = TIdC_ULONG(1 shl 5); -//* Verify if the TSA name field matches the signer certificate. */ - {$EXTERNALSYM TS_VFY_SIGNER} - TS_VFY_SIGNER = TIdC_ULONG(1 shl 6); -//* Verify if the TSA name field equals to the user provided name. */ - {$EXTERNALSYM TS_VFY_TSA_NAME} - TS_VFY_TSA_NAME = TIdC_ULONG(1 shl 7); - -//* You can use the following convenience constants. */ - {$EXTERNALSYM TS_VFY_ALL_IMPRINT} - TS_VFY_ALL_IMPRINT = (TS_VFY_SIGNATURE - or TS_VFY_VERSION - or TS_VFY_POLICY - or TS_VFY_IMPRINT - or TS_VFY_NONCE - or TS_VFY_SIGNER - or TS_VFY_TSA_NAME); - {$EXTERNALSYM TS_VFY_ALL_DATA} - TS_VFY_ALL_DATA = (TS_VFY_SIGNATURE - or TS_VFY_VERSION - or TS_VFY_POLICY - or TS_VFY_DATA - or TS_VFY_NONCE - or TS_VFY_SIGNER - or TS_VFY_TSA_NAME); - -//* Error codes for the TS functions. */ - - -//* Function codes. */ - {$EXTERNALSYM TS_F_D2I_TS_RESP} - TS_F_D2I_TS_RESP = 147; - {$EXTERNALSYM TS_F_DEF_SERIAL_CB} - TS_F_DEF_SERIAL_CB = 110; - {$EXTERNALSYM TS_F_DEF_TIME_CB} - TS_F_DEF_TIME_CB = 111; - {$EXTERNALSYM TS_F_ESS_ADD_SIGNING_CERT} - TS_F_ESS_ADD_SIGNING_CERT = 112; - {$EXTERNALSYM TS_F_ESS_CERT_ID_NEW_INIT} - TS_F_ESS_CERT_ID_NEW_INIT = 113; - {$EXTERNALSYM TS_F_ESS_SIGNING_CERT_NEW_INIT} - TS_F_ESS_SIGNING_CERT_NEW_INIT = 114; - {$EXTERNALSYM TS_F_INT_TS_RESP_VERIFY_TOKEN} - TS_F_INT_TS_RESP_VERIFY_TOKEN = 149; - {$EXTERNALSYM TS_F_PKCS7_TO_TS_TST_INFO} - TS_F_PKCS7_TO_TS_TST_INFO = 148; - {$EXTERNALSYM TS_F_TS_ACCURACY_SET_MICROS} - TS_F_TS_ACCURACY_SET_MICROS = 115; - {$EXTERNALSYM TS_F_TS_ACCURACY_SET_MILLIS} - TS_F_TS_ACCURACY_SET_MILLIS = 116; - {$EXTERNALSYM TS_F_TS_ACCURACY_SET_SECONDS} - TS_F_TS_ACCURACY_SET_SECONDS = 117; - {$EXTERNALSYM TS_F_TS_CHECK_IMPRINTS} - TS_F_TS_CHECK_IMPRINTS = 100; - {$EXTERNALSYM TS_F_TS_CHECK_NONCES} - TS_F_TS_CHECK_NONCES = 101; - {$EXTERNALSYM TS_F_TS_CHECK_POLICY} - TS_F_TS_CHECK_POLICY = 102; - {$EXTERNALSYM TS_F_TS_CHECK_SIGNING_CERTS} - TS_F_TS_CHECK_SIGNING_CERTS = 103; - {$EXTERNALSYM TS_F_TS_CHECK_STATUS_INFO} - TS_F_TS_CHECK_STATUS_INFO = 104; - {$EXTERNALSYM TS_F_TS_COMPUTE_IMPRINT} - TS_F_TS_COMPUTE_IMPRINT = 145; - {$EXTERNALSYM TS_F_TS_CONF_SET_DEFAULT_ENGINE} - TS_F_TS_CONF_SET_DEFAULT_ENGINE = 146; - {$EXTERNALSYM TS_F_TS_GET_STATUS_TEXT} - TS_F_TS_GET_STATUS_TEXT = 105; - {$EXTERNALSYM TS_F_TS_MSG_IMPRINT_SET_ALGO} - TS_F_TS_MSG_IMPRINT_SET_ALGO = 118; - {$EXTERNALSYM TS_F_TS_REQ_SET_MSG_IMPRINT} - TS_F_TS_REQ_SET_MSG_IMPRINT = 119; - {$EXTERNALSYM TS_F_TS_REQ_SET_NONCE} - TS_F_TS_REQ_SET_NONCE = 120; - {$EXTERNALSYM TS_F_TS_REQ_SET_POLICY_ID} - TS_F_TS_REQ_SET_POLICY_ID = 121; - {$EXTERNALSYM TS_F_TS_RESP_CREATE_RESPONSE} - TS_F_TS_RESP_CREATE_RESPONSE = 122; - {$EXTERNALSYM TS_F_TS_RESP_CREATE_TST_INFO} - TS_F_TS_RESP_CREATE_TST_INFO = 123; - {$EXTERNALSYM TS_F_TS_RESP_CTX_ADD_FAILURE_INFO} - TS_F_TS_RESP_CTX_ADD_FAILURE_INFO = 124; - {$EXTERNALSYM TS_F_TS_RESP_CTX_ADD_MD} - TS_F_TS_RESP_CTX_ADD_MD = 125; - {$EXTERNALSYM TS_F_TS_RESP_CTX_ADD_POLICY} - TS_F_TS_RESP_CTX_ADD_POLICY = 126; - {$EXTERNALSYM TS_F_TS_RESP_CTX_NEW} - TS_F_TS_RESP_CTX_NEW = 127; - {$EXTERNALSYM TS_F_TS_RESP_CTX_SET_ACCURACY} - TS_F_TS_RESP_CTX_SET_ACCURACY = 128; - {$EXTERNALSYM TS_F_TS_RESP_CTX_SET_CERTS} - TS_F_TS_RESP_CTX_SET_CERTS = 129; - {$EXTERNALSYM TS_F_TS_RESP_CTX_SET_DEF_POLICY} - TS_F_TS_RESP_CTX_SET_DEF_POLICY = 130; - {$EXTERNALSYM TS_F_TS_RESP_CTX_SET_SIGNER_CERT} - TS_F_TS_RESP_CTX_SET_SIGNER_CERT = 131; - {$EXTERNALSYM TS_F_TS_RESP_CTX_SET_STATUS_INFO} - TS_F_TS_RESP_CTX_SET_STATUS_INFO = 132; - {$EXTERNALSYM TS_F_TS_RESP_GET_POLICY} - TS_F_TS_RESP_GET_POLICY = 133; - {$EXTERNALSYM TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION} - TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION = 134; - {$EXTERNALSYM TS_F_TS_RESP_SET_STATUS_INFO} - TS_F_TS_RESP_SET_STATUS_INFO = 135; - {$EXTERNALSYM TS_F_TS_RESP_SET_TST_INFO} - TS_F_TS_RESP_SET_TST_INFO = 150; - {$EXTERNALSYM TS_F_TS_RESP_SIGN} - TS_F_TS_RESP_SIGN = 136; - {$EXTERNALSYM TS_F_TS_RESP_VERIFY_SIGNATURE} - TS_F_TS_RESP_VERIFY_SIGNATURE = 106; - {$EXTERNALSYM TS_F_TS_RESP_VERIFY_TOKEN} - TS_F_TS_RESP_VERIFY_TOKEN = 107; - {$EXTERNALSYM TS_F_TS_TST_INFO_SET_ACCURACY} - TS_F_TS_TST_INFO_SET_ACCURACY = 137; - {$EXTERNALSYM TS_F_TS_TST_INFO_SET_MSG_IMPRINT} - TS_F_TS_TST_INFO_SET_MSG_IMPRINT = 138; - {$EXTERNALSYM TS_F_TS_TST_INFO_SET_NONCE} - TS_F_TS_TST_INFO_SET_NONCE = 139; - {$EXTERNALSYM TS_F_TS_TST_INFO_SET_POLICY_ID} - TS_F_TS_TST_INFO_SET_POLICY_ID = 140; - {$EXTERNALSYM TS_F_TS_TST_INFO_SET_SERIAL} - TS_F_TS_TST_INFO_SET_SERIAL = 141; - {$EXTERNALSYM TS_F_TS_TST_INFO_SET_TIME} - TS_F_TS_TST_INFO_SET_TIME = 142; - {$EXTERNALSYM TS_F_TS_TST_INFO_SET_TSA} - TS_F_TS_TST_INFO_SET_TSA = 143; - {$EXTERNALSYM TS_F_TS_VERIFY} - TS_F_TS_VERIFY = 108; - {$EXTERNALSYM TS_F_TS_VERIFY_CERT} - TS_F_TS_VERIFY_CERT = 109; - {$EXTERNALSYM TS_F_TS_VERIFY_CTX_NEW} - TS_F_TS_VERIFY_CTX_NEW = 144; - -//* Reason codes. */ - {$EXTERNALSYM TS_R_BAD_PKCS7_TYPE} - TS_R_BAD_PKCS7_TYPE = 132; - {$EXTERNALSYM TS_R_BAD_TYPE} - TS_R_BAD_TYPE = 133; - {$EXTERNALSYM TS_R_CERTIFICATE_VERIFY_ERROR} - TS_R_CERTIFICATE_VERIFY_ERROR = 100; - {$EXTERNALSYM TS_R_COULD_NOT_SET_ENGINE} - TS_R_COULD_NOT_SET_ENGINE = 127; - {$EXTERNALSYM TS_R_COULD_NOT_SET_TIME} - TS_R_COULD_NOT_SET_TIME = 115; - {$EXTERNALSYM TS_R_D2I_TS_RESP_INT_FAILED} - TS_R_D2I_TS_RESP_INT_FAILED = 128; - {$EXTERNALSYM TS_R_DETACHED_CONTENT} - TS_R_DETACHED_CONTENT = 134; - {$EXTERNALSYM TS_R_ESS_ADD_SIGNING_CERT_ERROR} - TS_R_ESS_ADD_SIGNING_CERT_ERROR = 116; - {$EXTERNALSYM TS_R_ESS_SIGNING_CERTIFICATE_ERROR} - TS_R_ESS_SIGNING_CERTIFICATE_ERROR = 101; - {$EXTERNALSYM TS_R_INVALID_NULL_POINTER} - TS_R_INVALID_NULL_POINTER = 102; - {$EXTERNALSYM TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE} - TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE = 117; - {$EXTERNALSYM TS_R_MESSAGE_IMPRINT_MISMATCH} - TS_R_MESSAGE_IMPRINT_MISMATCH = 103; - {$EXTERNALSYM TS_R_NONCE_MISMATCH} - TS_R_NONCE_MISMATCH = 104; - {$EXTERNALSYM TS_R_NONCE_NOT_RETURNED} - TS_R_NONCE_NOT_RETURNED = 105; - {$EXTERNALSYM TS_R_NO_CONTENT} - TS_R_NO_CONTENT = 106; - {$EXTERNALSYM TS_R_NO_TIME_STAMP_TOKEN} - TS_R_NO_TIME_STAMP_TOKEN = 107; - {$EXTERNALSYM TS_R_PKCS7_ADD_SIGNATURE_ERROR} - TS_R_PKCS7_ADD_SIGNATURE_ERROR = 118; - {$EXTERNALSYM TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR} - TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR = 119; - {$EXTERNALSYM TS_R_PKCS7_TO_TS_TST_INFO_FAILED} - TS_R_PKCS7_TO_TS_TST_INFO_FAILED = 129; - {$EXTERNALSYM TS_R_POLICY_MISMATCH} - TS_R_POLICY_MISMATCH = 108; - {$EXTERNALSYM TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE} - TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE = 120; - {$EXTERNALSYM TS_R_RESPONSE_SETUP_ERROR} - TS_R_RESPONSE_SETUP_ERROR = 121; - {$EXTERNALSYM TS_R_SIGNATURE_FAILURE} - TS_R_SIGNATURE_FAILURE = 109; - {$EXTERNALSYM TS_R_THERE_MUST_BE_ONE_SIGNER} - TS_R_THERE_MUST_BE_ONE_SIGNER = 110; - {$EXTERNALSYM TS_R_TIME_SYSCALL_ERROR} - TS_R_TIME_SYSCALL_ERROR = 122; - {$EXTERNALSYM TS_R_TOKEN_NOT_PRESENT} - TS_R_TOKEN_NOT_PRESENT = 130; - {$EXTERNALSYM TS_R_TOKEN_PRESENT} - TS_R_TOKEN_PRESENT = 131; - {$EXTERNALSYM TS_R_TSA_NAME_MISMATCH} - TS_R_TSA_NAME_MISMATCH = 111; - {$EXTERNALSYM TS_R_TSA_UNTRUSTED} - TS_R_TSA_UNTRUSTED = 112; - {$EXTERNALSYM TS_R_TST_INFO_SETUP_ERROR} - TS_R_TST_INFO_SETUP_ERROR = 123; - {$EXTERNALSYM TS_R_TS_DATASIGN} - TS_R_TS_DATASIGN = 124; - {$EXTERNALSYM TS_R_UNACCEPTABLE_POLICY} - TS_R_UNACCEPTABLE_POLICY = 125; - {$EXTERNALSYM TS_R_UNSUPPORTED_MD_ALGORITHM} - TS_R_UNSUPPORTED_MD_ALGORITHM = 126; - {$EXTERNALSYM TS_R_UNSUPPORTED_VERSION} - TS_R_UNSUPPORTED_VERSION = 113; - {$EXTERNALSYM TS_R_WRONG_CONTENT_TYPE} - TS_R_WRONG_CONTENT_TYPE = 114; - - {$UNDEF OPENSSL_NO_CMS} - {$IFNDEF OPENSSL_NO_CMS} - {$EXTERNALSYM CMS_SIGNERINFO_ISSUER_SERIAL} - CMS_SIGNERINFO_ISSUER_SERIAL = 0; - {$EXTERNALSYM CMS_SIGNERINFO_KEYIDENTIFIER} - CMS_SIGNERINFO_KEYIDENTIFIER = 1; - {$EXTERNALSYM CMS_RECIPINFO_TRANS} - CMS_RECIPINFO_TRANS = 0; - {$EXTERNALSYM CMS_RECIPINFO_AGREE} - CMS_RECIPINFO_AGREE = 1; - {$EXTERNALSYM CMS_RECIPINFO_KEK} - CMS_RECIPINFO_KEK = 2; - {$EXTERNALSYM CMS_RECIPINFO_PASS} - CMS_RECIPINFO_PASS = 3; - {$EXTERNALSYM CMS_RECIPINFO_OTHER} - CMS_RECIPINFO_OTHER = 4; - -//* S/MIME related flags */ - {$EXTERNALSYM CMS_TEXT} - CMS_TEXT = $1; - {$EXTERNALSYM CMS_NOCERTS} - CMS_NOCERTS = $2; - {$EXTERNALSYM CMS_NO_CONTENT_VERIFY} - CMS_NO_CONTENT_VERIFY = $4; - {$EXTERNALSYM CMS_NO_ATTR_VERIFY} - CMS_NO_ATTR_VERIFY = $8; - {$EXTERNALSYM CMS_NOSIGS} - CMS_NOSIGS = (CMS_NO_CONTENT_VERIFY or CMS_NO_ATTR_VERIFY); - {$EXTERNALSYM CMS_NOINTERN} - CMS_NOINTERN = $10; - {$EXTERNALSYM CMS_NO_SIGNER_CERT_VERIFY} - CMS_NO_SIGNER_CERT_VERIFY = $20; - {$EXTERNALSYM CMS_NOVERIFY} - CMS_NOVERIFY = $20; - {$EXTERNALSYM CMS_DETACHED} - CMS_DETACHED = $40; - {$EXTERNALSYM CMS_BINARY} - CMS_BINARY = $80; - {$EXTERNALSYM CMS_NOATTR} - CMS_NOATTR = $100; - {$EXTERNALSYM CMS_NOSMIMECAP} - CMS_NOSMIMECAP = $200; - {$EXTERNALSYM CMS_NOOLDMIMETYPE} - CMS_NOOLDMIMETYPE = $400; - {$EXTERNALSYM CMS_CRLFEOL} - CMS_CRLFEOL = $800; - {$EXTERNALSYM CMS_STREAM} - CMS_STREAM = $1000; - {$EXTERNALSYM CMS_NOCRL} - CMS_NOCRL = $2000; - {$EXTERNALSYM CMS_PARTIAL} - CMS_PARTIAL = $4000; - {$EXTERNALSYM CMS_REUSE_DIGEST} - CMS_REUSE_DIGEST = $8000; - {$EXTERNALSYM CMS_USE_KEYID} - CMS_USE_KEYID = $10000; - -//* Error codes for the CMS functions. */ - -//* Function codes. */ - {$EXTERNALSYM CMS_F_CHECK_CONTENT} - CMS_F_CHECK_CONTENT = 99; - {$EXTERNALSYM CMS_F_CMS_ADD0_CERT} - CMS_F_CMS_ADD0_CERT = 164; - {$EXTERNALSYM CMS_F_CMS_ADD0_RECIPIENT_KEY} - CMS_F_CMS_ADD0_RECIPIENT_KEY = 100; - {$EXTERNALSYM CMS_F_CMS_ADD1_RECEIPTREQUEST} - CMS_F_CMS_ADD1_RECEIPTREQUEST = 158; - {$EXTERNALSYM CMS_F_CMS_ADD1_RECIPIENT_CERT} - CMS_F_CMS_ADD1_RECIPIENT_CERT = 101; - {$EXTERNALSYM CMS_F_CMS_ADD1_SIGNER} - CMS_F_CMS_ADD1_SIGNER = 102; - {$EXTERNALSYM CMS_F_CMS_ADD1_SIGNINGTIME} - CMS_F_CMS_ADD1_SIGNINGTIME = 103; - {$EXTERNALSYM CMS_F_CMS_COMPRESS} - CMS_F_CMS_COMPRESS = 104; - {$EXTERNALSYM CMS_F_CMS_COMPRESSEDDATA_CREATE} - CMS_F_CMS_COMPRESSEDDATA_CREATE = 105; - {$EXTERNALSYM CMS_F_CMS_COMPRESSEDDATA_INIT_BIO} - CMS_F_CMS_COMPRESSEDDATA_INIT_BIO = 106; - {$EXTERNALSYM CMS_F_CMS_COPY_CONTENT} - CMS_F_CMS_COPY_CONTENT = 107; - {$EXTERNALSYM CMS_F_CMS_COPY_MESSAGEDIGEST} - CMS_F_CMS_COPY_MESSAGEDIGEST = 108; - {$EXTERNALSYM CMS_F_CMS_DATA} - CMS_F_CMS_DATA = 109; - {$EXTERNALSYM CMS_F_CMS_DATAFINAL} - CMS_F_CMS_DATAFINAL = 110; - {$EXTERNALSYM CMS_F_CMS_DATAINIT} - CMS_F_CMS_DATAINIT = 111; - {$EXTERNALSYM CMS_F_CMS_DECRYPT} - CMS_F_CMS_DECRYPT = 112; - {$EXTERNALSYM CMS_F_CMS_DECRYPT_SET1_KEY} - CMS_F_CMS_DECRYPT_SET1_KEY = 113; - {$EXTERNALSYM CMS_F_CMS_DECRYPT_SET1_PKEY} - CMS_F_CMS_DECRYPT_SET1_PKEY = 114; - {$EXTERNALSYM CMS_F_CMS_DIGESTALGORITHM_FIND_CTX} - CMS_F_CMS_DIGESTALGORITHM_FIND_CTX = 115; - {$EXTERNALSYM CMS_F_CMS_DIGESTALGORITHM_INIT_BIO} - CMS_F_CMS_DIGESTALGORITHM_INIT_BIO = 116; - {$EXTERNALSYM CMS_F_CMS_DIGESTEDDATA_DO_FINAL} - CMS_F_CMS_DIGESTEDDATA_DO_FINAL = 117; - {$EXTERNALSYM CMS_F_CMS_DIGEST_VERIFY} - CMS_F_CMS_DIGEST_VERIFY = 118; - {$EXTERNALSYM CMS_F_CMS_ENCODE_RECEIPT} - CMS_F_CMS_ENCODE_RECEIPT = 161; - {$EXTERNALSYM CMS_F_CMS_ENCRYPT} - CMS_F_CMS_ENCRYPT = 119; - {$EXTERNALSYM CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO} - CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO = 120; - {$EXTERNALSYM CMS_F_CMS_ENCRYPTEDDATA_DECRYPT} - CMS_F_CMS_ENCRYPTEDDATA_DECRYPT = 121; - {$EXTERNALSYM CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT} - CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT = 122; - {$EXTERNALSYM CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY} - CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY = 123; - {$EXTERNALSYM CMS_F_CMS_ENVELOPEDDATA_CREATE} - CMS_F_CMS_ENVELOPEDDATA_CREATE = 124; - {$EXTERNALSYM CMS_F_CMS_ENVELOPEDDATA_INIT_BIO} - CMS_F_CMS_ENVELOPEDDATA_INIT_BIO = 125; - {$EXTERNALSYM CMS_F_CMS_ENVELOPED_DATA_INIT} - CMS_F_CMS_ENVELOPED_DATA_INIT = 126; - {$EXTERNALSYM CMS_F_CMS_FINAL} - CMS_F_CMS_FINAL = 127; - {$EXTERNALSYM CMS_F_CMS_GET0_CERTIFICATE_CHOICES} - CMS_F_CMS_GET0_CERTIFICATE_CHOICES = 128; - {$EXTERNALSYM CMS_F_CMS_GET0_CONTENT} - CMS_F_CMS_GET0_CONTENT = 129; - {$EXTERNALSYM CMS_F_CMS_GET0_ECONTENT_TYPE} - CMS_F_CMS_GET0_ECONTENT_TYPE = 130; - {$EXTERNALSYM CMS_F_CMS_GET0_ENVELOPED} - CMS_F_CMS_GET0_ENVELOPED = 131; - {$EXTERNALSYM CMS_F_CMS_GET0_REVOCATION_CHOICES} - CMS_F_CMS_GET0_REVOCATION_CHOICES = 132; - {$EXTERNALSYM CMS_F_CMS_GET0_SIGNED} - CMS_F_CMS_GET0_SIGNED = 133; - {$EXTERNALSYM CMS_F_CMS_MSGSIGDIGEST_ADD1} - CMS_F_CMS_MSGSIGDIGEST_ADD1 = 162; - {$EXTERNALSYM CMS_F_CMS_RECEIPTREQUEST_CREATE0} - CMS_F_CMS_RECEIPTREQUEST_CREATE0 = 159; - {$EXTERNALSYM CMS_F_CMS_RECEIPT_VERIFY} - CMS_F_CMS_RECEIPT_VERIFY = 160; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_DECRYPT} - CMS_F_CMS_RECIPIENTINFO_DECRYPT = 134; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT} - CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT = 135; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT} - CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT = 136; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID} - CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID = 137; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP} - CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP = 138; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP} - CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP = 139; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT} - CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT = 140; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT} - CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT = 141; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS} - CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS = 142; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID} - CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID = 143; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_SET0_KEY} - CMS_F_CMS_RECIPIENTINFO_SET0_KEY = 144; - {$EXTERNALSYM CMS_F_CMS_RECIPIENTINFO_SET0_PKEY} - CMS_F_CMS_RECIPIENTINFO_SET0_PKEY = 145; - {$EXTERNALSYM CMS_F_CMS_SET1_SIGNERIDENTIFIER} - CMS_F_CMS_SET1_SIGNERIDENTIFIER = 146; - {$EXTERNALSYM CMS_F_CMS_SET_DETACHED} - CMS_F_CMS_SET_DETACHED = 147; - {$EXTERNALSYM CMS_F_CMS_SIGN} - CMS_F_CMS_SIGN = 148; - {$EXTERNALSYM CMS_F_CMS_SIGNED_DATA_INIT} - CMS_F_CMS_SIGNED_DATA_INIT = 149; - {$EXTERNALSYM CMS_F_CMS_SIGNERINFO_CONTENT_SIGN} - CMS_F_CMS_SIGNERINFO_CONTENT_SIGN = 150; - {$EXTERNALSYM CMS_F_CMS_SIGNERINFO_SIGN} - CMS_F_CMS_SIGNERINFO_SIGN = 151; - {$EXTERNALSYM CMS_F_CMS_SIGNERINFO_VERIFY} - CMS_F_CMS_SIGNERINFO_VERIFY = 152; - {$EXTERNALSYM CMS_F_CMS_SIGNERINFO_VERIFY_CERT} - CMS_F_CMS_SIGNERINFO_VERIFY_CERT = 153; - {$EXTERNALSYM CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT} - CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT = 154; - {$EXTERNALSYM CMS_F_CMS_SIGN_RECEIPT} - CMS_F_CMS_SIGN_RECEIPT = 163; - {$EXTERNALSYM CMS_F_CMS_STREAM} - CMS_F_CMS_STREAM = 155; - {$EXTERNALSYM CMS_F_CMS_UNCOMPRESS} - CMS_F_CMS_UNCOMPRESS = 156; - {$EXTERNALSYM CMS_F_CMS_VERIFY} - CMS_F_CMS_VERIFY = 157; - -//* Reason codes. */ - {$EXTERNALSYM CMS_R_ADD_SIGNER_ERROR} - CMS_R_ADD_SIGNER_ERROR = 99; - {$EXTERNALSYM CMS_R_CERTIFICATE_ALREADY_PRESENT} - CMS_R_CERTIFICATE_ALREADY_PRESENT = 175; - {$EXTERNALSYM CMS_R_CERTIFICATE_HAS_NO_KEYID} - CMS_R_CERTIFICATE_HAS_NO_KEYID = 160; - {$EXTERNALSYM CMS_R_CERTIFICATE_VERIFY_ERROR} - CMS_R_CERTIFICATE_VERIFY_ERROR = 100; - {$EXTERNALSYM CMS_R_CIPHER_INITIALISATION_ERROR} - CMS_R_CIPHER_INITIALISATION_ERROR = 101; - {$EXTERNALSYM CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR} - CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR = 102; - {$EXTERNALSYM CMS_R_CMS_DATAFINAL_ERROR} - CMS_R_CMS_DATAFINAL_ERROR = 103; - {$EXTERNALSYM CMS_R_CMS_LIB} - CMS_R_CMS_LIB = 104; - {$EXTERNALSYM CMS_R_CONTENTIDENTIFIER_MISMATCH} - CMS_R_CONTENTIDENTIFIER_MISMATCH = 170; - {$EXTERNALSYM CMS_R_CONTENT_NOT_FOUND} - CMS_R_CONTENT_NOT_FOUND = 105; - {$EXTERNALSYM CMS_R_CONTENT_TYPE_MISMATCH} - CMS_R_CONTENT_TYPE_MISMATCH = 171; - {$EXTERNALSYM CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA} - CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA = 106; - {$EXTERNALSYM CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA} - CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA = 107; - {$EXTERNALSYM CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA} - CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA = 108; - {$EXTERNALSYM CMS_R_CONTENT_VERIFY_ERROR} - CMS_R_CONTENT_VERIFY_ERROR = 109; - {$EXTERNALSYM CMS_R_CTRL_ERROR} - CMS_R_CTRL_ERROR = 110; - {$EXTERNALSYM CMS_R_CTRL_FAILURE} - CMS_R_CTRL_FAILURE = 111; - {$EXTERNALSYM CMS_R_DECRYPT_ERROR} - CMS_R_DECRYPT_ERROR = 112; - {$EXTERNALSYM CMS_R_DIGEST_ERROR} - CMS_R_DIGEST_ERROR = 161; - {$EXTERNALSYM CMS_R_ERROR_GETTING_PUBLIC_KEY} - CMS_R_ERROR_GETTING_PUBLIC_KEY = 113; - {$EXTERNALSYM CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE} - CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE = 114; - {$EXTERNALSYM CMS_R_ERROR_SETTING_KEY} - CMS_R_ERROR_SETTING_KEY = 115; - {$EXTERNALSYM CMS_R_ERROR_SETTING_RECIPIENTINFO} - CMS_R_ERROR_SETTING_RECIPIENTINFO = 116; - {$EXTERNALSYM CMS_R_INVALID_ENCRYPTED_KEY_LENGTH} - CMS_R_INVALID_ENCRYPTED_KEY_LENGTH = 117; - {$EXTERNALSYM CMS_R_INVALID_KEY_LENGTH} - CMS_R_INVALID_KEY_LENGTH = 118; - {$EXTERNALSYM CMS_R_MD_BIO_INIT_ERROR} - CMS_R_MD_BIO_INIT_ERROR = 119; - {$EXTERNALSYM CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH} - CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH = 120; - {$EXTERNALSYM CMS_R_MESSAGEDIGEST_WRONG_LENGTH} - CMS_R_MESSAGEDIGEST_WRONG_LENGTH = 121; - {$EXTERNALSYM CMS_R_MSGSIGDIGEST_ERROR} - CMS_R_MSGSIGDIGEST_ERROR = 172; - {$EXTERNALSYM CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE} - CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE = 162; - {$EXTERNALSYM CMS_R_MSGSIGDIGEST_WRONG_LENGTH} - CMS_R_MSGSIGDIGEST_WRONG_LENGTH = 163; - {$EXTERNALSYM CMS_R_NEED_ONE_SIGNER} - CMS_R_NEED_ONE_SIGNER = 164; - {$EXTERNALSYM CMS_R_NOT_A_SIGNED_RECEIPT} - CMS_R_NOT_A_SIGNED_RECEIPT = 165; - {$EXTERNALSYM CMS_R_NOT_ENCRYPTED_DATA} - CMS_R_NOT_ENCRYPTED_DATA = 122; - {$EXTERNALSYM CMS_R_NOT_KEK} - CMS_R_NOT_KEK = 123; - {$EXTERNALSYM CMS_R_NOT_KEY_TRANSPORT} - CMS_R_NOT_KEY_TRANSPORT = 124; - {$EXTERNALSYM CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE} - CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE = 125; - {$EXTERNALSYM CMS_R_NO_CIPHER} - CMS_R_NO_CIPHER = 126; - {$EXTERNALSYM CMS_R_NO_CONTENT} - CMS_R_NO_CONTENT = 127; - {$EXTERNALSYM CMS_R_NO_CONTENT_TYPE} - CMS_R_NO_CONTENT_TYPE = 173; - {$EXTERNALSYM CMS_R_NO_DEFAULT_DIGEST} - CMS_R_NO_DEFAULT_DIGEST = 128; - {$EXTERNALSYM CMS_R_NO_DIGEST_SET} - CMS_R_NO_DIGEST_SET = 129; - {$EXTERNALSYM CMS_R_NO_KEY} - CMS_R_NO_KEY = 130; - {$EXTERNALSYM CMS_R_NO_KEY_OR_CERT} - CMS_R_NO_KEY_OR_CERT = 174; - {$EXTERNALSYM CMS_R_NO_MATCHING_DIGEST} - CMS_R_NO_MATCHING_DIGEST = 131; - {$EXTERNALSYM CMS_R_NO_MATCHING_RECIPIENT} - CMS_R_NO_MATCHING_RECIPIENT = 132; - {$EXTERNALSYM CMS_R_NO_MATCHING_SIGNATURE} - CMS_R_NO_MATCHING_SIGNATURE = 166; - {$EXTERNALSYM CMS_R_NO_MSGSIGDIGEST} - CMS_R_NO_MSGSIGDIGEST = 167; - {$EXTERNALSYM CMS_R_NO_PRIVATE_KEY} - CMS_R_NO_PRIVATE_KEY = 133; - {$EXTERNALSYM CMS_R_NO_PUBLIC_KEY} - CMS_R_NO_PUBLIC_KEY = 134; - {$EXTERNALSYM CMS_R_NO_RECEIPT_REQUEST} - CMS_R_NO_RECEIPT_REQUEST = 168; - {$EXTERNALSYM CMS_R_NO_SIGNERS} - CMS_R_NO_SIGNERS = 135; - {$EXTERNALSYM CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE} - CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE = 136; - {$EXTERNALSYM CMS_R_RECEIPT_DECODE_ERROR} - CMS_R_RECEIPT_DECODE_ERROR = 169; - {$EXTERNALSYM CMS_R_RECIPIENT_ERROR} - CMS_R_RECIPIENT_ERROR = 137; - {$EXTERNALSYM CMS_R_SIGNER_CERTIFICATE_NOT_FOUND} - CMS_R_SIGNER_CERTIFICATE_NOT_FOUND = 138; - {$EXTERNALSYM CMS_R_SIGNFINAL_ERROR} - CMS_R_SIGNFINAL_ERROR = 139; - {$EXTERNALSYM CMS_R_SMIME_TEXT_ERROR} - CMS_R_SMIME_TEXT_ERROR = 140; - {$EXTERNALSYM CMS_R_STORE_INIT_ERROR} - CMS_R_STORE_INIT_ERROR = 141; - {$EXTERNALSYM CMS_R_TYPE_NOT_COMPRESSED_DATA} - CMS_R_TYPE_NOT_COMPRESSED_DATA = 142; - {$EXTERNALSYM CMS_R_TYPE_NOT_DATA} - CMS_R_TYPE_NOT_DATA = 143; - {$EXTERNALSYM CMS_R_TYPE_NOT_DIGESTED_DATA} - CMS_R_TYPE_NOT_DIGESTED_DATA = 144; - {$EXTERNALSYM CMS_R_TYPE_NOT_ENCRYPTED_DATA} - CMS_R_TYPE_NOT_ENCRYPTED_DATA = 145; - {$EXTERNALSYM CMS_R_TYPE_NOT_ENVELOPED_DATA} - CMS_R_TYPE_NOT_ENVELOPED_DATA = 146; - {$EXTERNALSYM CMS_R_UNABLE_TO_FINALIZE_CONTEXT} - CMS_R_UNABLE_TO_FINALIZE_CONTEXT = 147; - {$EXTERNALSYM CMS_R_UNKNOWN_CIPHER} - CMS_R_UNKNOWN_CIPHER = 148; - {$EXTERNALSYM CMS_R_UNKNOWN_DIGEST_ALGORIHM} - CMS_R_UNKNOWN_DIGEST_ALGORIHM = 149; - {$EXTERNALSYM CMS_R_UNKNOWN_ID} - CMS_R_UNKNOWN_ID = 150; - {$EXTERNALSYM CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM} - CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM = 151; - {$EXTERNALSYM CMS_R_UNSUPPORTED_CONTENT_TYPE} - CMS_R_UNSUPPORTED_CONTENT_TYPE = 152; - {$EXTERNALSYM CMS_R_UNSUPPORTED_KEK_ALGORITHM} - CMS_R_UNSUPPORTED_KEK_ALGORITHM = 153; - {$EXTERNALSYM CMS_R_UNSUPPORTED_RECIPIENT_TYPE} - CMS_R_UNSUPPORTED_RECIPIENT_TYPE = 154; - {$EXTERNALSYM CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE} - CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE = 155; - {$EXTERNALSYM CMS_R_UNSUPPORTED_TYPE} - CMS_R_UNSUPPORTED_TYPE = 156; - {$EXTERNALSYM CMS_R_UNWRAP_ERROR} - CMS_R_UNWRAP_ERROR = 157; - {$EXTERNALSYM CMS_R_VERIFICATION_FAILURE} - CMS_R_VERIFICATION_FAILURE = 158; - {$EXTERNALSYM CMS_R_WRAP_ERROR} - CMS_R_WRAP_ERROR = 159; - - {$ENDIF} - - {$EXTERNALSYM DSO_F_BEOS_BIND_FUNC} - DSO_F_BEOS_BIND_FUNC = 144; - {$EXTERNALSYM DSO_F_BEOS_BIND_VAR} - DSO_F_BEOS_BIND_VAR = 145; - {$EXTERNALSYM DSO_F_BEOS_LOAD} - DSO_F_BEOS_LOAD = 146; - {$EXTERNALSYM DSO_F_BEOS_NAME_CONVERTER} - DSO_F_BEOS_NAME_CONVERTER = 147; - {$EXTERNALSYM DSO_F_BEOS_UNLOAD} - DSO_F_BEOS_UNLOAD = 148; - {$EXTERNALSYM DSO_F_DLFCN_BIND_FUNC} - DSO_F_DLFCN_BIND_FUNC = 100; - {$EXTERNALSYM DSO_F_DLFCN_BIND_VAR} - DSO_F_DLFCN_BIND_VAR = 101; - {$EXTERNALSYM DSO_F_DLFCN_LOAD} - DSO_F_DLFCN_LOAD = 102; - {$EXTERNALSYM DSO_F_DLFCN_MERGER} - DSO_F_DLFCN_MERGER = 130; - {$EXTERNALSYM DSO_F_DLFCN_NAME_CONVERTER} - DSO_F_DLFCN_NAME_CONVERTER = 123; - {$EXTERNALSYM DSO_F_DLFCN_UNLOAD} - DSO_F_DLFCN_UNLOAD = 103; - {$EXTERNALSYM DSO_F_DL_BIND_FUNC} - DSO_F_DL_BIND_FUNC = 104; - {$EXTERNALSYM DSO_F_DL_BIND_VAR} - DSO_F_DL_BIND_VAR = 105; - {$EXTERNALSYM DSO_F_DL_LOAD} - DSO_F_DL_LOAD = 106; - {$EXTERNALSYM DSO_F_DL_MERGER} - DSO_F_DL_MERGER = 131; - {$EXTERNALSYM DSO_F_DL_NAME_CONVERTER} - DSO_F_DL_NAME_CONVERTER = 124; - {$EXTERNALSYM DSO_F_DL_UNLOAD} - DSO_F_DL_UNLOAD = 107; - {$EXTERNALSYM DSO_F_DSO_BIND_FUNC} - DSO_F_DSO_BIND_FUNC = 108; - {$EXTERNALSYM DSO_F_DSO_BIND_VAR} - DSO_F_DSO_BIND_VAR = 109; - {$EXTERNALSYM DSO_F_DSO_CONVERT_FILENAME} - DSO_F_DSO_CONVERT_FILENAME = 126; - {$EXTERNALSYM DSO_F_DSO_CTRL} - DSO_F_DSO_CTRL = 110; - {$EXTERNALSYM DSO_F_DSO_FREE} - DSO_F_DSO_FREE = 111; - {$EXTERNALSYM DSO_F_DSO_GET_FILENAME} - DSO_F_DSO_GET_FILENAME = 127; - {$EXTERNALSYM DSO_F_DSO_GET_LOADED_FILENAME} - DSO_F_DSO_GET_LOADED_FILENAME = 128; - {$EXTERNALSYM DSO_F_DSO_GLOBAL_LOOKUP} - DSO_F_DSO_GLOBAL_LOOKUP = 139; - {$EXTERNALSYM DSO_F_DSO_LOAD} - DSO_F_DSO_LOAD = 112; - {$EXTERNALSYM DSO_F_DSO_MERGE} - DSO_F_DSO_MERGE = 132; - {$EXTERNALSYM DSO_F_DSO_NEW_METHOD} - DSO_F_DSO_NEW_METHOD = 113; - {$EXTERNALSYM DSO_F_DSO_PATHBYADDR} - DSO_F_DSO_PATHBYADDR = 140; - {$EXTERNALSYM DSO_F_DSO_SET_FILENAME} - DSO_F_DSO_SET_FILENAME = 129; - {$EXTERNALSYM DSO_F_DSO_SET_NAME_CONVERTER} - DSO_F_DSO_SET_NAME_CONVERTER = 122; - {$EXTERNALSYM DSO_F_DSO_UP_REF} - DSO_F_DSO_UP_REF = 114; - {$EXTERNALSYM DSO_F_GLOBAL_LOOKUP_FUNC} - DSO_F_GLOBAL_LOOKUP_FUNC = 138; - {$EXTERNALSYM DSO_F_PATHBYADDR} - DSO_F_PATHBYADDR = 137; - {$EXTERNALSYM DSO_F_VMS_BIND_SYM} - DSO_F_VMS_BIND_SYM = 115; - {$EXTERNALSYM DSO_F_VMS_LOAD} - DSO_F_VMS_LOAD = 116; - {$EXTERNALSYM DSO_F_VMS_MERGER} - DSO_F_VMS_MERGER = 133; - {$EXTERNALSYM DSO_F_VMS_UNLOAD} - DSO_F_VMS_UNLOAD = 117; - {$EXTERNALSYM DSO_F_WIN32_BIND_FUNC} - DSO_F_WIN32_BIND_FUNC = 118; - {$EXTERNALSYM DSO_F_WIN32_BIND_VAR} - DSO_F_WIN32_BIND_VAR = 119; - {$EXTERNALSYM DSO_F_WIN32_GLOBALLOOKUP} - DSO_F_WIN32_GLOBALLOOKUP = 142; - {$EXTERNALSYM DSO_F_WIN32_GLOBALLOOKUP_FUNC} - DSO_F_WIN32_GLOBALLOOKUP_FUNC = 143; - {$EXTERNALSYM DSO_F_WIN32_JOINER} - DSO_F_WIN32_JOINER = 135; - {$EXTERNALSYM DSO_F_WIN32_LOAD} - DSO_F_WIN32_LOAD = 120; - {$EXTERNALSYM DSO_F_WIN32_MERGER} - DSO_F_WIN32_MERGER = 134; - {$EXTERNALSYM DSO_F_WIN32_NAME_CONVERTER} - DSO_F_WIN32_NAME_CONVERTER = 125; - {$EXTERNALSYM DSO_F_WIN32_PATHBYADDR} - DSO_F_WIN32_PATHBYADDR = 141; - {$EXTERNALSYM DSO_F_WIN32_SPLITTER} - DSO_F_WIN32_SPLITTER = 136; - {$EXTERNALSYM DSO_F_WIN32_UNLOAD} - DSO_F_WIN32_UNLOAD = 121; - -//* Reason codes. */ - {$EXTERNALSYM DSO_R_CTRL_FAILED} - DSO_R_CTRL_FAILED = 100; - {$EXTERNALSYM DSO_R_DSO_ALREADY_LOADED} - DSO_R_DSO_ALREADY_LOADED = 110; - {$EXTERNALSYM DSO_R_EMPTY_FILE_STRUCTURE} - DSO_R_EMPTY_FILE_STRUCTURE = 113; - {$EXTERNALSYM DSO_R_FAILURE} - DSO_R_FAILURE = 114; - {$EXTERNALSYM DSO_R_FILENAME_TOO_BIG} - DSO_R_FILENAME_TOO_BIG = 101; - {$EXTERNALSYM DSO_R_FINISH_FAILED} - DSO_R_FINISH_FAILED = 102; - {$EXTERNALSYM DSO_R_INCORRECT_FILE_SYNTAX} - DSO_R_INCORRECT_FILE_SYNTAX = 115; - {$EXTERNALSYM DSO_R_LOAD_FAILED} - DSO_R_LOAD_FAILED = 103; - {$EXTERNALSYM DSO_R_NAME_TRANSLATION_FAILED} - DSO_R_NAME_TRANSLATION_FAILED = 109; - {$EXTERNALSYM DSO_R_NO_FILENAME} - DSO_R_NO_FILENAME = 111; - {$EXTERNALSYM DSO_R_NO_FILE_SPECIFICATION} - DSO_R_NO_FILE_SPECIFICATION = 116; - {$EXTERNALSYM DSO_R_NULL_HANDLE} - DSO_R_NULL_HANDLE = 104; - {$EXTERNALSYM DSO_R_SET_FILENAME_FAILED} - DSO_R_SET_FILENAME_FAILED = 112; - {$EXTERNALSYM DSO_R_STACK_ERROR} - DSO_R_STACK_ERROR = 105; - {$EXTERNALSYM DSO_R_SYM_FAILURE} - DSO_R_SYM_FAILURE = 106; - {$EXTERNALSYM DSO_R_UNLOAD_FAILED} - DSO_R_UNLOAD_FAILED = 107; - {$EXTERNALSYM DSO_R_UNSUPPORTED} - DSO_R_UNSUPPORTED = 108; - - {$ifndef OPENSSL_NO_SRP} - {$EXTERNALSYM SRP_NO_ERROR} - - SRP_NO_ERROR = 0; - {$EXTERNALSYM SRP_ERR_VBASE_INCOMPLETE_FILE} - SRP_ERR_VBASE_INCOMPLETE_FILE = 1; - {$EXTERNALSYM SRP_ERR_VBASE_BN_LIB} - SRP_ERR_VBASE_BN_LIB = 2; - {$EXTERNALSYM SRP_ERR_OPEN_FILE} - SRP_ERR_OPEN_FILE = 3; - {$EXTERNALSYM SRP_ERR_MEMORY} - SRP_ERR_MEMORY = 4; - - {$EXTERNALSYM DB_srptype} - DB_srptype = 0; - {$EXTERNALSYM DB_srpverifier} - DB_srpverifier = 1; - {$EXTERNALSYM DB_srpsalt} - DB_srpsalt = 2; - {$EXTERNALSYM DB_srpid} - DB_srpid = 3; - {$EXTERNALSYM DB_srpgN} - DB_srpgN = 4; - {$EXTERNALSYM DB_srpinfo} - DB_srpinfo = 5; - {$NODEFINE DB_NUMBER} - DB_NUMBER = 6; - {$EXTERNALSYM DB_SRP_INDEX} - DB_SRP_INDEX = 'I'; - {$EXTERNALSYM DB_SRP_VALID} - DB_SRP_VALID = 'V'; - {$EXTERNALSYM DB_SRP_REVOKED} - DB_SRP_REVOKED = 'R'; - {$EXTERNALSYM DB_SRP_MODIF} - DB_SRP_MODIF = 'v'; - {$ENDIF} - {$EXTERNALSYM SRTP_AES128_CM_SHA1_80} - SRTP_AES128_CM_SHA1_80 = $0001; - {$EXTERNALSYM SRTP_AES128_CM_SHA1_32} - SRTP_AES128_CM_SHA1_32 = $0002; - {$EXTERNALSYM SRTP_AES128_F8_SHA1_80} - SRTP_AES128_F8_SHA1_80 = $0003; - {$EXTERNALSYM SRTP_AES128_F8_SHA1_32} - SRTP_AES128_F8_SHA1_32 = $0004; - {$EXTERNALSYM SRTP_NULL_SHA1_80} - SRTP_NULL_SHA1_80 = $0005; - {$EXTERNALSYM SRTP_NULL_SHA1_32} - SRTP_NULL_SHA1_32 = $0006; - - _ATEXIT_SIZE = 32; - {$EXTERNALSYM _ATEXIT_SIZE} - _IOFBF = 0; - {$EXTERNALSYM _IOFBF} - _IOLBF = 1; - {$EXTERNALSYM _IOLBF} - _IONBF = 2; - {$EXTERNALSYM _IONBF} - _N_LISTS = 30; - {$EXTERNALSYM _N_LISTS} - _MSS_WIN32 = 1; - {$EXTERNALSYM _MSS_WIN32} - _MSS_X86_ = 1; - {$EXTERNALSYM _MSS_X86_} - __CYGWIN32__ = 1; - {$EXTERNALSYM __CYGWIN32__} - __CYGWIN__ = 1; - {$EXTERNALSYM __CYGWIN__} - __GNUC_MINOR__ = 91; - {$EXTERNALSYM __GNUC_MINOR__} - __GNUC__ = 2; - {$EXTERNALSYM __GNUC__} - __SAPP = $0100; - {$EXTERNALSYM __SAPP } - __SEOF = $0020; - {$EXTERNALSYM __SEOF } - __SERR = $0040; - {$EXTERNALSYM __SERR } - __SLBF = $0001; - {$EXTERNALSYM __SLBF } - __SMBF = $0080; - {$EXTERNALSYM __SMBF } - __SMOD = $2000; - {$EXTERNALSYM __SMOD } - __SNBF = $0002; - {$EXTERNALSYM __SNBF } - __SNPT = $0800; - {$EXTERNALSYM __SNPT } - __SOFF = $1000; - {$EXTERNALSYM __SOFF } - __SOPT = $0400; - {$EXTERNALSYM __SOPT } - __SRD = $0004; - {$EXTERNALSYM __SRD } - __SRW = $0010; - {$EXTERNALSYM __SRW } - __SSTR = $0200; - {$EXTERNALSYM __SSTR } - __STDC__ = 1; - {$EXTERNALSYM __STDC__} - __SWR = $0008; - {$EXTERNALSYM __SWR } - __WINNT = 1; - {$EXTERNALSYM __WINNT} - __WINNT__ = 1; - {$EXTERNALSYM __WINNT__} - __i386 = 1; - {$EXTERNALSYM __i386} - __i386__ = 1; - {$EXTERNALSYM __i386__} - __i586 = 1; - {$EXTERNALSYM __i586} - __i586__ = 1; - {$EXTERNALSYM __i586__} - __pentium = 1; - {$EXTERNALSYM __pentium} - __pentium__ = 1; - {$EXTERNALSYM __pentium__} - i386 = 1; - {$EXTERNALSYM i386} - i586 = 1; - {$EXTERNALSYM i586} - pentium = 1; - {$EXTERNALSYM pentium} -//kssl.h -{$IFNDEF OPENSSL_NO_KRB5} -{These are consts for Kerberos support. These will not be complete because -FreePascal, Borland Delphi, and Indy don't support Kerberos. These are here -as place holders so we get an exact OpenSSL API if Kerberos support was compiled -in. -} - {$EXTERNALSYM KSSL_ERR_MAX} - KSSL_ERR_MAX = 255; - {$EXTERNALSYM KSSL_CLIENT} - KSSL_CLIENT = 1; - {$EXTERNALSYM KSSL_SERVER} - KSSL_SERVER = 2; - {$EXTERNALSYM KSSL_SERVICE} - KSSL_SERVICE = 3; - {$EXTERNALSYM KSSL_KEYTAB} - KSSL_KEYTAB = 4; - {$EXTERNALSYM KSSL_CTX_OK} - KSSL_CTX_OK = 0; - {$EXTERNALSYM KSSL_CTX_ERR} - KSSL_CTX_ERR = 1; - {$EXTERNALSYM KSSL_NOMEM} - KSSL_NOMEM = 2; -{$ENDIF} - -{Error - err.h } -const - {$EXTERNALSYM ERR_TXT_MALLOCED} - ERR_TXT_MALLOCED = $01; - {$EXTERNALSYM ERR_TXT_STRING} - ERR_TXT_STRING = $02; - {$EXTERNALSYM ERR_NUM_ERRORS} - ERR_NUM_ERRORS = 16; - -const - // library - {$EXTERNALSYM ERR_LIB_NONE} - ERR_LIB_NONE = 1; - {$EXTERNALSYM ERR_LIB_SYS} - ERR_LIB_SYS = 2; - {$EXTERNALSYM ERR_LIB_BN} - ERR_LIB_BN = 3; - {$EXTERNALSYM ERR_LIB_RSA} - ERR_LIB_RSA = 4; - {$EXTERNALSYM ERR_LIB_DH} - ERR_LIB_DH = 5; - {$EXTERNALSYM ERR_LIB_EVP} - ERR_LIB_EVP = 6; - {$EXTERNALSYM ERR_LIB_BUF} - ERR_LIB_BUF = 7; - {$EXTERNALSYM ERR_LIB_OBJ} - ERR_LIB_OBJ = 8; - {$EXTERNALSYM ERR_LIB_PEM} - ERR_LIB_PEM = 9; - {$EXTERNALSYM ERR_LIB_DSA} - ERR_LIB_DSA = 10; - {$EXTERNALSYM ERR_LIB_X509} - ERR_LIB_X509 = 11; -// ERR_LIB_METH = 12; - {$EXTERNALSYM ERR_LIB_ASN1} - ERR_LIB_ASN1 = 13; - {$EXTERNALSYM ERR_LIB_CONF} - ERR_LIB_CONF = 14; - {$EXTERNALSYM ERR_LIB_CRYPTO} - ERR_LIB_CRYPTO = 15; - {$EXTERNALSYM ERR_LIB_EC} - ERR_LIB_EC = 16; - {$EXTERNALSYM ERR_LIB_SSL} - ERR_LIB_SSL = 20; -// ERR_LIB_SSL23 = 21; -// ERR_LIB_SSL2 = 22; -// ERR_LIB_SSL3 = 23; -// ERR_LIB_RSAREF = 30; -// ERR_LIB_PROXY = 31; - {$EXTERNALSYM ERR_LIB_BIO} - ERR_LIB_BIO = 32; - {$EXTERNALSYM ERR_LIB_PKCS7} - ERR_LIB_PKCS7 = 33; - {$EXTERNALSYM ERR_LIB_X509V3} - ERR_LIB_X509V3 = 34; - {$EXTERNALSYM ERR_LIB_PKCS12} - ERR_LIB_PKCS12 = 35; - {$EXTERNALSYM ERR_LIB_RAND} - ERR_LIB_RAND = 36; - {$EXTERNALSYM ERR_LIB_DSO} - ERR_LIB_DSO = 37; - {$EXTERNALSYM ERR_LIB_ENGINE} - ERR_LIB_ENGINE = 38; - {$EXTERNALSYM ERR_LIB_OCSP} - ERR_LIB_OCSP = 39; - {$EXTERNALSYM ERR_LIB_UI} - ERR_LIB_UI = 40; - {$EXTERNALSYM ERR_LIB_COMP} - ERR_LIB_COMP = 41; - {$EXTERNALSYM ERR_LIB_ECDSA} - ERR_LIB_ECDSA = 42; - {$EXTERNALSYM ERR_LIB_ECDH} - ERR_LIB_ECDH = 43; - {$EXTERNALSYM ERR_LIB_STORE} - ERR_LIB_STORE = 44; - {$EXTERNALSYM ERR_LIB_FIPS} - ERR_LIB_FIPS = 45; - {$EXTERNALSYM ERR_LIB_CMS} - ERR_LIB_CMS = 46; - {$EXTERNALSYM ERR_LIB_TS} - ERR_LIB_TS = 47; - {$EXTERNALSYM ERR_LIB_HMAC} - ERR_LIB_HMAC = 48; - {$EXTERNALSYM ERR_LIB_JPAKE} - //OpenSSL 0.9.8n was 47 - ERR_LIB_JPAKE = 49; -//* fatal error */ - {$EXTERNALSYM ERR_R_FATAL} - ERR_R_FATAL = 64; -//was ERR_R_FATAL = 32; - {$EXTERNALSYM ERR_R_MALLOC_FAILURE} - ERR_R_MALLOC_FAILURE = (1 or ERR_R_FATAL); - {$EXTERNALSYM ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED} - ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED = (2 or ERR_R_FATAL); - {$EXTERNALSYM ERR_R_PASSED_NULL_PARAMETER} - ERR_R_PASSED_NULL_PARAMETER = (3 or ERR_R_FATAL); - {$EXTERNALSYM ERR_R_INTERNAL_ERROR} - ERR_R_INTERNAL_ERROR = (4 or ERR_R_FATAL); - {$EXTERNALSYM ERR_R_DISABLED} - ERR_R_DISABLED = (5 or ERR_R_FATAL); - {$EXTERNALSYM ERR_LIB_USER} - ERR_LIB_USER = 128; - // OS functions - {$EXTERNALSYM SYS_F_FOPEN} - SYS_F_FOPEN = 1; - {$EXTERNALSYM SYS_F_CONNECT} - SYS_F_CONNECT = 2; - {$EXTERNALSYM SYS_F_GETSERVBYNAME} - SYS_F_GETSERVBYNAME = 3; - {$EXTERNALSYM SYS_F_SOCKET} - SYS_F_SOCKET = 4; - {$EXTERNALSYM SYS_F_IOCTLSOCKET} - SYS_F_IOCTLSOCKET = 5; - {$EXTERNALSYM SYS_F_BIND} - SYS_F_BIND = 6; - {$EXTERNALSYM SYS_F_LISTEN} - SYS_F_LISTEN = 7; - {$EXTERNALSYM SYS_F_ACCEPT} - SYS_F_ACCEPT = 8; - {$EXTERNALSYM SYS_F_WSASTARTUP} - SYS_F_WSASTARTUP = 9; { Winsock stuff } - {$EXTERNALSYM SYS_F_OPENDIR} - SYS_F_OPENDIR = 10; - {$EXTERNALSYM SYS_F_FREAD} - SYS_F_FREAD = 11; -//* These are the possible flags. They can be or'ed together. */ -//* Use to have echoing of input */ - {$EXTERNALSYM UI_INPUT_FLAG_ECHO} - UI_INPUT_FLAG_ECHO = $01; -///* Use a default password. Where that password is found is completely -// up to the application, it might for example be in the user data set -// with UI_add_user_data(). It is not recommended to have more than -// one input in each UI being marked with this flag, or the application -// might get confused. */ - {$EXTERNALSYM UI_INPUT_FLAG_DEFAULT_PWD} - UI_INPUT_FLAG_DEFAULT_PWD = $02; - -//* The user of these routines may want to define flags of their own. The core -// UI won't look at those, but will pass them on to the method routines. They -// must use higher bits so they don't get confused with the UI bits above. -// UI_INPUT_FLAG_USER_BASE tells which is the lowest bit to use. A good -// example of use is this: - -// #define MY_UI_FLAG1 (0x01 << UI_INPUT_FLAG_USER_BASE) -//*/ - {$EXTERNALSYM UI_INPUT_FLAG_USER_BASE} - UI_INPUT_FLAG_USER_BASE = 16; - //IO_ctrl commands -//* The commands */ -//* Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the -// OpenSSL error stack before printing any info or added error messages and -// before any prompting. */ - {$EXTERNALSYM UI_CTRL_PRINT_ERRORS} - UI_CTRL_PRINT_ERRORS = 1; -//* Check if a UI_process() is possible to do again with the same instance of -// a user interface. This makes UI_ctrl() return 1 if it is redoable, and 0 -// if not. */ - {$EXTERNALSYM UI_CTRL_IS_REDOABLE} - UI_CTRL_IS_REDOABLE = 2; -//* Function codes. */ - {$EXTERNALSYM UI_F_GENERAL_ALLOCATE_BOOLEAN} - UI_F_GENERAL_ALLOCATE_BOOLEAN = 108; - {$EXTERNALSYM UI_F_GENERAL_ALLOCATE_PROMPT} - UI_F_GENERAL_ALLOCATE_PROMPT = 109; - {$EXTERNALSYM UI_F_GENERAL_ALLOCATE_STRING} - UI_F_GENERAL_ALLOCATE_STRING = 100; - {$EXTERNALSYM UI_F_UI_CTRL} - UI_F_UI_CTRL = 111; - {$EXTERNALSYM UI_F_UI_DUP_ERROR_STRING} - UI_F_UI_DUP_ERROR_STRING = 101; - {$EXTERNALSYM UI_F_UI_DUP_INFO_STRING} - UI_F_UI_DUP_INFO_STRING = 102; - {$EXTERNALSYM UI_F_UI_DUP_INPUT_BOOLEAN} - UI_F_UI_DUP_INPUT_BOOLEAN = 110; - {$EXTERNALSYM UI_F_UI_DUP_INPUT_STRING} - UI_F_UI_DUP_INPUT_STRING = 103; - {$EXTERNALSYM UI_F_UI_DUP_VERIFY_STRING} - UI_F_UI_DUP_VERIFY_STRING = 106; - {$EXTERNALSYM UI_F_UI_GET0_RESULT} - UI_F_UI_GET0_RESULT = 107; - {$EXTERNALSYM UI_F_UI_NEW_METHOD} - UI_F_UI_NEW_METHOD = 104; - {$EXTERNALSYM UI_F_UI_SET_RESULT} - UI_F_UI_SET_RESULT = 105; -//* Reason codes. */ - {$EXTERNALSYM UI_R_COMMON_OK_AND_CANCEL_CHARACTERS} - UI_R_COMMON_OK_AND_CANCEL_CHARACTERS = 104; - {$EXTERNALSYM UI_R_INDEX_TOO_LARGE} - UI_R_INDEX_TOO_LARGE = 102; - {$EXTERNALSYM UI_R_INDEX_TOO_SMALL} - UI_R_INDEX_TOO_SMALL = 103; - {$EXTERNALSYM UI_R_NO_RESULT_BUFFER} - UI_R_NO_RESULT_BUFFER = 105; - {$EXTERNALSYM UI_R_RESULT_TOO_LARGE} - UI_R_RESULT_TOO_LARGE = 100; - {$EXTERNALSYM UI_R_RESULT_TOO_SMALL} - UI_R_RESULT_TOO_SMALL = 101; - {$EXTERNALSYM UI_R_UNKNOWN_CONTROL_COMMAND} - UI_R_UNKNOWN_CONTROL_COMMAND = 106; - -const - // reasons - {$EXTERNALSYM ERR_R_SYS_LIB} - ERR_R_SYS_LIB = ERR_LIB_SYS; - {$EXTERNALSYM ERR_R_BN_LIB} - ERR_R_BN_LIB = ERR_LIB_BN; - {$EXTERNALSYM ERR_R_RSA_LIB} - ERR_R_RSA_LIB = ERR_LIB_RSA; - {$EXTERNALSYM ERR_R_DH_LIB} - ERR_R_DH_LIB = ERR_LIB_DH; - {$EXTERNALSYM ERR_R_EVP_LIB} - ERR_R_EVP_LIB = ERR_LIB_EVP; - {$EXTERNALSYM ERR_R_BUF_LIB} - ERR_R_BUF_LIB = ERR_LIB_BUF; - {$EXTERNALSYM ERR_R_OBJ_LIB} - ERR_R_OBJ_LIB = ERR_LIB_OBJ; - {$EXTERNALSYM ERR_R_PEM_LIB} - ERR_R_PEM_LIB = ERR_LIB_PEM; - {$EXTERNALSYM ERR_R_DSA_LIB} - ERR_R_DSA_LIB = ERR_LIB_DSA; - {$EXTERNALSYM ERR_R_X509_LIB} - ERR_R_X509_LIB = ERR_LIB_X509; - {$EXTERNALSYM ERR_R_ASN1_LIB} - ERR_R_ASN1_LIB = ERR_LIB_ASN1; - {$EXTERNALSYM ERR_R_CONF_LIB} - ERR_R_CONF_LIB = ERR_LIB_CONF; - {$EXTERNALSYM ERR_R_CRYPTO_LIB} - ERR_R_CRYPTO_LIB = ERR_LIB_CRYPTO; - {$EXTERNALSYM ERR_R_EC_LIB} - ERR_R_EC_LIB = ERR_LIB_EC; - {$EXTERNALSYM ERR_R_SSL_LIB} - ERR_R_SSL_LIB = ERR_LIB_SSL; - {$EXTERNALSYM ERR_R_BIO_LIB} - ERR_R_BIO_LIB = ERR_LIB_BIO; - {$EXTERNALSYM ERR_R_PKCS7_LIB} - ERR_R_PKCS7_LIB = ERR_LIB_PKCS7; - {$EXTERNALSYM ERR_R_X509V3_LIB} - ERR_R_X509V3_LIB = ERR_LIB_X509V3; - {$EXTERNALSYM ERR_R_PKCS12_LIB} - ERR_R_PKCS12_LIB = ERR_LIB_PKCS12; - {$EXTERNALSYM ERR_R_RAND_LIB} - ERR_R_RAND_LIB = ERR_LIB_RAND; - {$EXTERNALSYM ERR_R_DSO_LIB} - ERR_R_DSO_LIB = ERR_LIB_DSO; - {$EXTERNALSYM ERR_R_ENGINE_LIB} - ERR_R_ENGINE_LIB = ERR_LIB_ENGINE; - {$EXTERNALSYM ERR_R_OCSP_LIB} - ERR_R_OCSP_LIB = ERR_LIB_OCSP; - {$EXTERNALSYM ERR_R_UI_LIB} - ERR_R_UI_LIB = ERR_LIB_UI; - {$EXTERNALSYM ERR_R_COMP_LIB} - ERR_R_COMP_LIB = ERR_LIB_COMP; - {$EXTERNALSYM ERR_R_ECDSA_LIB} - ERR_R_ECDSA_LIB = ERR_LIB_ECDSA; - {$EXTERNALSYM ERR_R_ECDH_LIB} - ERR_R_ECDH_LIB = ERR_LIB_ECDH; - {$EXTERNALSYM ERR_R_STORE_LIB} - ERR_R_STORE_LIB = ERR_LIB_STORE; - {$EXTERNALSYM ERR_R_TS_LIB} - ERR_R_TS_LIB = ERR_LIB_TS; //* 45 */ - {$EXTERNALSYM ERR_R_NESTED_ASN1_ERROR} - ERR_R_NESTED_ASN1_ERROR = 58; - {$EXTERNALSYM ERR_R_BAD_ASN1_OBJECT_HEADER} - ERR_R_BAD_ASN1_OBJECT_HEADER = 59; - {$EXTERNALSYM ERR_R_BAD_GET_ASN1_OBJECT_CALL} - ERR_R_BAD_GET_ASN1_OBJECT_CALL = 60; - {$EXTERNALSYM ERR_R_EXPECTING_AN_ASN1_SEQUENCE} - ERR_R_EXPECTING_AN_ASN1_SEQUENCE = 61; - {$EXTERNALSYM ERR_R_ASN1_LENGTH_MISMATCH} - ERR_R_ASN1_LENGTH_MISMATCH = 62; - {$EXTERNALSYM ERR_R_MISSING_ASN1_EOS} - ERR_R_MISSING_ASN1_EOS = 63; - {$EXTERNALSYM DTLS1_VERSION} - DTLS1_VERSION = $FEFF; - {$EXTERNALSYM DTLS1_BAD_VER} - DTLS1_BAD_VER = $0100; -{$IFNDEF USE_THIS} -//* this alert description is not specified anywhere... */ - {$EXTERNALSYM DTLS1_AD_MISSING_HANDSHAKE_MESSAGE} - DTLS1_AD_MISSING_HANDSHAKE_MESSAGE = 110; -{$endif} - //was 32 - {$EXTERNALSYM DTLS1_COOKIE_LENGTH} - DTLS1_COOKIE_LENGTH = 256; - {$EXTERNALSYM DTLS1_RT_HEADER_LENGTH} - DTLS1_RT_HEADER_LENGTH = 13; - {$EXTERNALSYM DTLS1_HM_HEADER_LENGTH} - DTLS1_HM_HEADER_LENGTH = 12; - {$EXTERNALSYM DTLS1_HM_BAD_FRAGMENT} - DTLS1_HM_BAD_FRAGMENT = -2; - {$EXTERNALSYM DTLS1_HM_FRAGMENT_RETRY} - DTLS1_HM_FRAGMENT_RETRY = -3; - {$EXTERNALSYM DTLS1_CCS_HEADER_LENGTH} - //OpenSSL 0.9.8e defines this as OPENSSL_DTLS1_CCS_HEADER_LENGTH = 3; - DTLS1_CCS_HEADER_LENGTH = 1; - {$EXTERNALSYM DTLS1_AL_HEADER_LENGTH} -{$ifdef DTLS1_AD_MISSING_HANDSHAKE_MESSAGE} - DTLS1_AL_HEADER_LENGTH = 7; -{$else} - DTLS1_AL_HEADER_LENGTH = 2; -{$endif} - -type - {$EXTERNALSYM PPByte} - PPByte = ^PByte; - {$IFNDEF HAS_PPointer} - {$EXTERNALSYM PPointer} - PPointer = ^Pointer; - {$ENDIF} - -//This is just a synthasis since Pascal probably has what we need. -//In C, the OpenSSL developers were using the PQ_64BIT moniker -//to ensure that they had a value that is always 64bit. -//In Pascal, this is not a problem since Delphi and FreePascal have this in some form. - {$EXTERNALSYM PQ_64BIT} - PQ_64BIT = TIdC_UINT64; - -// RLebeau - the following value was conflicting with iphlpapi.h under C++Builder -// (and possibly other headers) so using the HPPEMIT further above as a workaround - {$EXTERNALSYM time_t} - time_t = TIdC_LONG; - {$EXTERNALSYM STACK} - STACK = record - num : TIdC_INT; //int num; - data : PIdAnsiChar; //char **data; - sorted : TIdC_INT;//int sorted; - num_alloc : TIdC_INT; //int num_alloc; - comp : function (_para1: PPIdAnsiChar; _para2: PPIdAnsiChar): TIdC_INT; cdecl; - //int (*comp)(const char * const *, const char * const *); - end; - {$EXTERNALSYM PSTACK} - PSTACK = ^STACK; - {$EXTERNALSYM PPSTACK} - PPSTACK = ^PSTACK; - {$EXTERNALSYM PSTACK_OF_POINTER} - PSTACK_OF_POINTER = Pointer; - {$NODEFINE PSSL} - PSSL = ^SSL; - //opensslconf.h - {$IFNDEF OPENSSL_NO_MD2} - {$EXTERNALSYM MD2_INT} - {$IFDEF MD2_CHAR} - MD2_INT = Char; - {$ELSE} - {$IFDEF MD2_LONG} - MD2_INT = TIdC_ULONG; - {$ELSE} - MD2_INT = TIdC_UINT; - {$ENDIF} - {$ENDIF} - {$ENDIF} - - {$IFNDEF OPENSSL_NO_RC1} - {$EXTERNALSYM RC2_INT} - {$IFDEF RC2_SHORT} - RC2_INT = TIdC_USHORT; - {$ELSE} - {$IFDEF RC2_LONG} - RC2_INT = TIdC_ULONG; - {$ELSE} - RC2_INT = TIdC_UINT; - {$ENDIF} - {$ENDIF} - {$ENDIF} - {$IFNDEF OPENSSL_NO_RC4} - {$EXTERNALSYM RC4_INT} - {$IFDEF RC4_CHAR} - RC4_INT = TIdC_USHORT; - {$ELSE} - {$IFDEF RC4_LONG} - RC4_INT = TIdC_ULONG; - {$ELSE} - RC4_INT = TIdC_UINT; - {$ENDIF} - {$ENDIF} - {$IFDEF RC4_CHUNK} - {$EXTERNALSYM RC4_CHUNK} - RC4_CHUNK = TIdC_ULONG; - {$ELSE} - {$IFDEF RC4_CHUNK_LL} - {$EXTERNALSYM RC4_CHUNK} - RC4_CHUNK = TIdC_ULONGLONG; - {$ELSE} - {$UNDEF RC4_CHUNK} - {$ENDIF} - {$ENDIF} - {$ENDIF} - {$IFNDEF OPENSSL_NO_IDEA} - {$EXTERNALSYM IDEA_INT} - {$IFDEF IDEA_SHORT} - IDEA_INT = TIdC_USHORT; - {$ELSE} - {$IFDEF IDEA_LONG} - IDEA_INT = TIdC_ULONG; - {$ELSE} - IDEA_INT = TIdC_UINT; - {$ENDIF} - {$ENDIF} - {$ENDIF} - //crypto.h - // OpenSSL 1.0.0 structure - ///* Don't use this structure directly. */ - {$EXTERNALSYM CRYPTO_THREADID} - CRYPTO_THREADID = record - ptr : Pointer; - val : TIdC_ULONG; - end; - {$EXTERNALSYM PCRYPTO_THREADID} - PCRYPTO_THREADID = ^CRYPTO_THREADID; - // end OpenSSL 1.0.0 structures - {$EXTERNALSYM OPENSSL_ITEM} - OPENSSL_ITEM = record - code : TIdC_INT; - value : Pointer; //* Not used for flag attributes */ - value_size : size_t; //* Max size of value for output, length for input */ - value_length : Psize_t; //* Returned length of value for output */ - end; - {$EXTERNALSYM CRYPTO_EX_DATA} - CRYPTO_EX_DATA = record - sk : PSTACK; - dummy : TIdC_INT; // gcc is screwing up this data structure :-( - end; - {$EXTERNALSYM PCRYPTO_EX_DATA} - PCRYPTO_EX_DATA = ^CRYPTO_EX_DATA; -{ -/* Some applications as well as some parts of OpenSSL need to allocate - and deallocate locks in a dynamic fashion. The following typedef - makes this possible in a type-safe manner. */ -/* struct CRYPTO_dynlock_value has to be defined by the application. */ -} - {$EXTERNALSYM PCRYPTO_dynlock_value} - PCRYPTO_dynlock_value = Pointer; - {$EXTERNALSYM CRYPTO_dynlock} - CRYPTO_dynlock = record - references : TIdC_INT; - data : PCRYPTO_dynlock_value; - end; - {$EXTERNALSYM PCRYPTO_dynlock} - PCRYPTO_dynlock = ^CRYPTO_dynlock; -//* Callback types for crypto.h */ -//typedef int CRYPTO_EX_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad, -// int idx, long argl, void *argp); - {$EXTERNALSYM CRYPTO_EX_new} - CRYPTO_EX_new = function(parent : Pointer; ptr : Pointer; ad : CRYPTO_EX_DATA; - idx : TIdC_INT; arg1 : TIdC_LONG; argp : Pointer) : TIdC_INT; cdecl; -//typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad, -// int idx, long argl, void *argp); - {$EXTERNALSYM CRYPTO_EX_free} - CRYPTO_EX_free = procedure (parent : Pointer; ptr : Pointer; ad : CRYPTO_EX_DATA; - idx : TIdC_INT; arg1 : TIdC_LONG; argp : Pointer); cdecl; -//typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void *from_d, -// int idx, long argl, void *argp); - {$EXTERNALSYM CRYPTO_EX_dup} - CRYPTO_EX_dup = function (_to : PCRYPTO_EX_DATA; from : PCRYPTO_EX_DATA; - from_d : Pointer; idx : TIdC_INT; arg1 : TIdC_LONG; argp : Pointer) : TIdC_INT; cdecl; - {$EXTERNALSYM CRYPTO_EX_DATA_FUNCS} - CRYPTO_EX_DATA_FUNCS = record - argl : TIdC_LONG; //* Arbitary long */ - argp : Pointer; //* Arbitary void * */ - new_func : CRYPTO_EX_new; - free_func : CRYPTO_EX_free; - dup_func : CRYPTO_EX_dup; - end; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_CRYPTO_EX_DATA_FUNCS} - STACK_OF_CRYPTO_EX_DATA_FUNCS = record - stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_CRYPTO_EX_DATA_FUNCS} - PSTACK_OF_CRYPTO_EX_DATA_FUNCS = ^STACK_OF_CRYPTO_EX_DATA_FUNCS; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_CRYPTO_EX_DATA_FUNCS} - PSTACK_OF_CRYPTO_EX_DATA_FUNCS = PSTACK; - {$ENDIF} - ///* An opaque type representing an implementation of "ex_data" support */ - {$EXTERNALSYM PCRYPTO_EX_DATA_IMPL} - PCRYPTO_EX_DATA_IMPL = Pointer; - {$EXTERNALSYM ERR_string_data} - ERR_string_data = record - error : TIdC_ULONG; - _string : PIdAnsiChar; - end; - {$EXTERNALSYM PERR_string_data} - PERR_string_data = ^ERR_string_data; - {$EXTERNALSYM ERR_STATE} - ERR_STATE = record - tid : CRYPTO_THREADID; - // PID: TIdC_UINT; - err_flags : array [0..ERR_NUM_ERRORS - 1] of TIdC_INT; - err_buffer: array[0..ERR_NUM_ERRORS-1] of TIdC_UINT; - err_data : array [0..ERR_NUM_ERRORS -1] of PIdAnsiChar; - err_data_flags : array [0..ERR_NUM_ERRORS -1] of TIdC_INT; - err_file: array[0..ERR_NUM_ERRORS-1] of PIdAnsiChar; - err_line: array[0..ERR_NUM_ERRORS-1] of TIdC_INT; - top: TIdC_INT; - bottom: TIdC_INT; - end; // record - {$EXTERNALSYM TERR_STATE} - TERR_STATE = ERR_STATE; - {$EXTERNALSYM PERR_FNS} - PERR_FNS = Pointer; - //rand.h - {$IFDEF OPENSSL_FIPS} - {$EXTERNALSYM FIPS_RAND_SIZE_T} - FIPS_RAND_SIZE_T = TIdC_int; - {$ENDIF} - {$EXTERNALSYM RAND_METHOD} - RAND_METHOD = record - seed : procedure (const buf : Pointer; num : TIdC_INT) cdecl; - bytes : function(const buf : PIdAnsiChar; num : TIdC_INT) : TIdC_INT cdecl; - cleanup : procedure cdecl; - add : procedure (const buf : Pointer; num : TIdC_INT; entropy : TIdC_DOUBLE) cdecl; - pseudorand : function(buf : PIdAnsiChar; num : TIdC_INT) : TIdC_INT cdecl; - status : function : TIdC_INT cdecl; - end; - //bn.h - {$IFDEF SIXTY_FOUR_BIT_LONG} - {$EXTERNALSYM BN_ULLONG} - BN_ULLONG = TIdC_LONGLONG; - {$EXTERNALSYM BN_ULONG} - BN_ULONG = TIdC_ULONG; - {$EXTERNALSYM BN_LONG} - BN_LONG = TIdC_LONG; - {$ENDIF} - {$IFDEF SIXTY_FOUR_BIT} - {$EXTERNALSYM BN_ULLONG} - BN_ULLONG = TIdC_ULONGLONG; - {$EXTERNALSYM BN_LONG} - BN_LONG = TIdC_LONGLONG; - {$EXTERNALSYM BN_ULONG} - BN_ULONG = TIdC_ULONGLONG; - {$ENDIF} - {$IFDEF THIRTY_TWO_BIT} - {$EXTERNALSYM BN_ULLONG} - {$IFDEF BN_LLONG} - BN_ULLONG = TIdC_INT64; - {$ELSE} - BN_ULLONG = TIdC_ULONGLONG; - {$ENDIF} - {$EXTERNALSYM BN_LONG} - BN_LONG = TIdC_LONG; - {$EXTERNALSYM BN_ULONG} - BN_ULONG = TIdC_ULONG; - {$ENDIF} - {$EXTERNALSYM PBN_LONG} - PBN_LONG = ^BN_LONG; - {$EXTERNALSYM PBN_ULONG} - PBN_ULONG = ^BN_ULONG; - {$EXTERNALSYM BIGNUM} - BIGNUM = record - d : PBN_ULONG; // Pointer to an array of 'BN_BITS2' bit chunks. - top : TIdC_INT; // Index of last used d +1. - // The next are internal book keeping for bn_expand. - dmax : TIdC_INT; // Size of the d array. - neg : TIdC_INT; // one if the number is negative - flags : TIdC_INT; - end; - {$EXTERNALSYM PBIGNUM} - PBIGNUM = ^BIGNUM; - // BN_CTX = record - //This is defined internally. I don't want to do anything with an internal structure. - // end; - {$EXTERNALSYM PBN_CTX} - PBN_CTX = Pointer;//^BN_CTX; - {$EXTERNALSYM PPBN_CTX} - PPBN_CTX = ^PBN_CTX; - // Used for montgomery multiplication - {$EXTERNALSYM BN_MONT_CTX} - BN_MONT_CTX = record - ri : TIdC_INT; // number of bits in R - RR : BIGNUM; // used to convert to montgomery form - N : BIGNUM; // The modulus - Ni : BIGNUM; // R*(1/R mod N) - N*Ni = 1 - // (Ni is only stored for bignum algorithm) -{#if 0 - /* OpenSSL 0.9.9 preview: */ - BN_ULONG n0[2];/* least significant word(s) of Ni */ -#else - BN_ULONG n0; /* least significant word of Ni */ -#endif} - {$IFNDEF USE_THIS} - //* OpenSSL 0.9.9 preview: */ - n0 : array [0..1] of BN_ULONG; - {$ELSE} - n0 : BN_ULONG; // least significant word of Ni - {$ENDIF} - flags : TIdC_INT; - end; - {$EXTERNALSYM PBN_MONT_CTX} - PBN_MONT_CTX = ^BN_MONT_CTX; -// BN_BLINDING = record - //I can't locate any information about the record fields in this. -// end; - {$EXTERNALSYM PBN_BLINDING} - PBN_BLINDING = pointer;//^BN_BLINDING; - {$EXTERNALSYM BN_RECP_CTX} - BN_RECP_CTX = record - N : BIGNUM; // the divisor - Nr : BIGNUM; // the reciprocal - num_bits : TIdC_INT; - shift : TIdC_INT; - flags : TIdC_INT; - end; - {$EXTERNALSYM PBN_RECP_CTX} - PBN_RECP_CTX = ^BN_RECP_CTX; - {$EXTERNALSYM PBN_GENCB} - PBN_GENCB = ^BN_GENCB; - {$EXTERNALSYM PPBN_GENCB} - PPBN_GENCB = ^PBN_GENCB; - {$EXTERNALSYM BN_cb_1} - BN_cb_1 = procedure (p1, p2 : TIdC_INT; p3 : Pointer); cdecl; - {$EXTERNALSYM BN_cb_2} - BN_cb_2 = function (p1, p2 : TIdC_INT; p3 : PBN_GENCB): TIdC_INT; cdecl; - {$EXTERNALSYM BN_GENCB_union} - BN_GENCB_union = record - case Integer of - // if(ver==1) - handles old style callbacks - 0 : (cb_1 : BN_cb_1); - // if(ver==2) - new callback style - 1 : (cb_2 : BN_cb_2); - end; - {$EXTERNALSYM BN_GENCB} - BN_GENCB = record - ver : TIdC_UINT; // To handle binary (in)compatibility - arg : Pointer; // callback-specific data - cb : BN_GENCB_union; - end; - //aes.h - - //seed.h - - //chamellia.h - {$IFNDEF OPENSSL_NO_CAMELLIA} - {$EXTERNALSYM KEY_TABLE_TYPE} - KEY_TABLE_TYPE = array [0..(CAMELLIA_TABLE_WORD_LEN - 1)] of TIdC_UINT; //* to match with WORD */ - {$EXTERNALSYM CAMELLIA_KEY_union} - CAMELLIA_KEY_union = record - case byte of - 0 : (d : TIdC_DOUBLE); //* ensures 64-bit align */ - 1 : (rd_key : KEY_TABLE_TYPE); - end; - {$EXTERNALSYM CAMELLIA_KEY} - CAMELLIA_KEY = record - u : CAMELLIA_KEY_union; - grand_rounds : TIdC_INT; - end; - {$EXTERNALSYM PCAMELLIA_KEY} - PCAMELLIA_KEY = ^CAMELLIA_KEY; - {$ENDIF} - //whrlpool.h - {$EXTERNALSYM WHIRLPOOL_CTX_union} - WHIRLPOOL_CTX_union = record - case byte of - 0 : (c : array [0..WHIRLPOOL_DIGEST_LENGTH - 1] of byte ); - 1 : (q : array [0..(WHIRLPOOL_DIGEST_LENGTH div SizeOf(TIdC_DOUBLE))-1 ] of TIdC_DOUBLE); - end; - {$EXTERNALSYM WHIRLPOOL_CTX} - WHIRLPOOL_CTX = record - H : WHIRLPOOL_CTX_union; - data : array [0..(WHIRLPOOL_BBLOCK div 8)-1] of byte; - bitoff : TIdC_INT; - bitlen : array[0..(WHIRLPOOL_COUNTER div sizeof(size_t))-1] of size_t; - end; - {$EXTERNALSYM PWHIRLPOOL_CTX} - PWHIRLPOOL_CTX = ^WHIRLPOOL_CTX; - - //md2.h - {$IFNDEF OPENSSL_NO_MD2} - {$EXTERNALSYM MD2_CTX} - MD2_CTX = record - num : TIdC_UINT; - data : array [0..MD2_BLOCK - 1] of TIdAnsiChar; - cksm : array [0..MD2_BLOCK - 1] of MD2_INT; - state : array[0..MD2_BLOCK -1] of MD2_INT; - end; - {$EXTERNALSYM PMD2_CTX} - PMD2_CTX = ^MD2_CTX; - {$ENDIF} - //md4.h - {$IFNDEF OPENSSL_NO_MD4} - {$EXTERNALSYM MD4_LONG} - MD4_LONG = TIdC_ULONG; - {$EXTERNALSYM MD4_CTX} - MD4_CTX = record - A,B,C,D : MD4_LONG; - Nl,Nh : MD4_LONG; - data : array [0..(MD4_LBLOCK-1)] of MD4_LONG; - num : TIdC_UINT; - end; - {$EXTERNALSYM PMD4_CTX} - PMD4_CTX = ^MD4_CTX; - {$ENDIF} - //md5.h - {$EXTERNALSYM MD5_LONG} - MD5_LONG = TIdC_UINT; - {$EXTERNALSYM MD5_CTX} - MD5_CTX = record - A,B,C,D : MD5_LONG; - Nl,Nh : MD5_LONG; - data : array [0..(MD5_LBLOCK - 1)] of MD5_LONG; - num : TIdC_UINT; - end; - {$EXTERNALSYM PMD5_CTX} - PMD5_CTX = ^MD5_CTX; - //sha.h -//#if defined(OPENSSL_NO_SHA) || (defined(OPENSSL_NO_SHA0) && defined(OPENSSL_NO_SHA1)) -//#error SHA is disabled. -//#endif - {$IFDEF OPENSSL_NO_SHA} - {$DEFINE DONTUSESHA} - {$ENDIF} - {$IFDEF PENSSL_NO_SHA0} - {$IFDEF OPENSSL_NO_SHA1} - {$DEFINE DONTUSESHA} - {$ENDIF} - {$ENDIF} - {$IFNDEF DONTUSESHA} - {$IFDEF OPENSSL_FIPS} - {$EXTERNALSYM FIPS_SHA_SIZE_T} - FIPS_SHA_SIZE_T = size_t; - {$ENDIF} - {$ENDIF} - {$EXTERNALSYM SHA_LONG} - SHA_LONG = TIdC_UINT; - {$EXTERNALSYM SHA_CTX} - SHA_CTX = record - h0,h1,h2,h3,h4 : SHA_LONG; - Nl,Nh : SHA_LONG; - data : array [0..SHA_LBLOCK] of SHA_LONG; - num : TIdC_INT; - end; - {$IFNDEF OPENSSL_NO_SHA256} - {$EXTERNALSYM SHA256_CTX} - SHA256_CTX = record - h : array [0..(8 - 1)] of SHA_LONG; - Nl,Nh : SHA_LONG; - data : array [0..(SHA_LBLOCK -1)] of SHA_LONG; - num,md_len : TIdC_UINT; - end; - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA512} - {$EXTERNALSYM SHA_LONG64} - //not defined like this in sha.h but a comment - //says that it must be 64 bit. - SHA_LONG64 = TIdC_UINT64; - {$EXTERNALSYM TSHA512_CTX_Union} - TSHA512_CTX_Union = record - case integer of - 0 : (d : array [0..(SHA_LBLOCK -1)] of SHA_LONG64); - 1 : (p : array [0..(SHA512_CBLOCK -1)] of byte); - end; - {$EXTERNALSYM SHA512_CTX} - SHA512_CTX = record - h : array[0..(8-1)]of SHA_LONG64; - Nl,Nh : SHA_LONG64; - u : TSHA512_CTX_Union; - num,md_len : TIdC_UINT; - end; - {$EXTERNALSYM PSHA512_CTX} - PSHA512_CTX = ^SHA512_CTX; - {$ENDIF} - //ui.h - {$EXTERNALSYM PUI_METHOD} - PUI_METHOD = Pointer; //^UI_METHOD - {$EXTERNALSYM PUI_STRING} - PUI_STRING = Pointer; //^UI_STRING; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_UI_STRING} - STACK_OF_UI_STRING = record - stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_UI_STRING} - PSTACK_OF_UI_STRING = ^STACK_OF_UI_STRING; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_UI_STRING} - PSTACK_OF_UI_STRING = PSTACK; - {$ENDIF} - {$EXTERNALSYM UI_string_types} - {$EXTERNALSYM UIT_NONE} - {$EXTERNALSYM UIT_PROMPT} - {$EXTERNALSYM UIT_VERIFY} - {$EXTERNALSYM UIT_BOOLEAN} - {$EXTERNALSYM UIT_INFO} - {$EXTERNALSYM UIT_ERROR} - UI_string_types = ( - UIT_NONE, //=0, - UIT_PROMPT, //* Prompt for a string */ - UIT_VERIFY, //* Prompt for a string and verify */ - UIT_BOOLEAN, //* Prompt for a yes/no response */ - UIT_INFO, //* Send info to the user */ - UIT_ERROR); //* Send an error message to the user */ - - //bio.h - //http://www.openssl.org/docs/crypto/bio.html - {$EXTERNALSYM PBIO} - PBIO = ^BIO; - {$EXTERNALSYM PBIO_METHOD} - PBIO_METHOD = ^BIO_METHOD; - {$EXTERNALSYM Pbio_info_cb} - Pbio_info_cb = procedure (_para1 : PBIO; _para2 : TIdC_INT; _para3 : PIdAnsiChar; - _para4 : TIdC_INT; _para5, _para6 : TIdC_LONG); cdecl; - {$EXTERNALSYM BIO_METHOD} - BIO_METHOD = record - _type : TIdC_INT; - name : PIdAnsiChar; - bwrite : function(_para1 : PBIO; _para2 : PIdAnsiChar; _para3 : TIdC_INT) : TIdC_INT; cdecl; - bread : function(_para1: PBIO; _para2: PIdAnsiChar; _para3: TIdC_INT) : TIdC_INT; cdecl; - bputs : function (_para1 : PBIO; _para2 : PIdAnsiChar) : TIdC_INT; cdecl; - bgets : function (_para1 : PBIO; _para2 : PIdAnsiChar; _para3 : TIdC_INT) : TIdC_INT; cdecl; - ctrl : function (_para1 : PBIO; _para2 : TIdC_INT; _para3 : TIdC_LONG; _para4 : Pointer) : TIdC_LONG; cdecl; - create : function(_para1 : PBIO) : TIdC_INT; cdecl; - destroy : function (_para1 : PBIO) : TIdC_INT; cdecl; - callback_ctrl : function (_para1 : PBIO; _para2 : TIdC_INT; _para3 : pbio_info_cb): TIdC_LONG; cdecl; - end; - BIO = record - method : PBIO_METHOD; - // bio, mode, argp, argi, argl, ret - callback : function (_para1 : PBIO; _para2 : TIdC_INT; _para3 : PIdAnsiChar; - _para4 : TIdC_INT; _para5, _para6 : TIdC_LONG) : TIdC_LONG cdecl; - cb_arg : PIdAnsiChar; // first argument for the callback - init : TIdC_INT; - shutdown : TIdC_INT; - flags : TIdC_INT; // extra storage - retry_reason : TIdC_INT; - num : TIdC_INT; - ptr : Pointer; - next_bio : PBIO; // used by filter BIOs - prev_bio : PBIO; // used by filter BIOs - references : TIdC_INT; - num_read : TIdC_ULONG; - num_write : TIdC_ULONG; - ex_data : CRYPTO_EX_DATA; - end; - {$EXTERNALSYM BIO} - {$EXTERNALSYM BIO_F_BUFFER_CTX} - BIO_F_BUFFER_CTX = record - { - /* Buffers are setup like this: - * - * <---------------------- size -----------------------> - * +---------------------------------------------------+ - * | consumed | remaining | free space | - * +---------------------------------------------------+ - * <-- off --><------- len -------> - *} - - //* BIO *bio; */ /* this is now in the BIO struct */ - ibuf_size : TIdC_INT; //* how big is the input buffer */ - obuf_size : TIdC_INT; //* how big is the output buffer */ - - ibuf : PIdAnsiChar; //* the char array */ - ibuf_len : TIdC_INT; //* how many bytes are in it */ - ibuf_off : TIdC_INT; //* write/read offset */ - - obuf : PIdAnsiChar; //* the char array */ - obuf_len : TIdC_INT; //* how many bytes are in it */ - obuf_off : TIdC_INT; //* write/read offset */ - end; - {$EXTERNALSYM PBIO_F_BUFFER_CTX} - PBIO_F_BUFFER_CTX = ^BIO_F_BUFFER_CTX; - //* Prefix and suffix callback in ASN1 BIO *// - {$EXTERNALSYM asn1_ps_function} - asn1_ps_function = function (b : PBIO; pbuf : PPIdAnsiChar; plen : PIdC_INT; parg : Pointer) : TIdC_INT cdecl; - //struct from engine.h -// ENGINE = record - //I don't have any info about record fields. -// end; - {$EXTERNALSYM PENGINE} - PENGINE = Pointer;//^ENGINE; - {$EXTERNALSYM PPENGINE} - PPENGINE = ^PENGINE; - //asn1.h - {$EXTERNALSYM I2D_OF_void} - //#define I2D_OF(type) int (*)(type *,unsigned char **) - I2D_OF_void = function(_para1 : Pointer; _para2 : PPByte) : TIdC_INT cdecl; - //D2I_OF(type) type *(*)(type **,const unsigned char **,long) - {$EXTERNALSYM D2I_OF_void} - D2I_OF_void = function (_para1 : PPointer; _para2 : PPByte; _para3 : TIdC_LONG) : Pointer cdecl; - // This is just an opaque pointer - // ASN1_VALUE = record - // end; - {$EXTERNALSYM PASN1_VALUE} - PASN1_VALUE = Pointer;//^ASN1_VALUE; - {$EXTERNALSYM PPASN1_VALUE} - PPASN1_VALUE = ^PASN1_VALUE; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_ASN1_VALUE} - STACK_OF_ASN1_VALUE = record - stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_ASN1_VALUE} - PSTACK_OF_ASN1_VALUE = ^STACK_OF_ASN1_VALUE; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_ASN1_VALUE} - PSTACK_OF_ASN1_VALUE = PSTACK; - {$ENDIF} - {$EXTERNALSYM ASN1_OBJECT} - ASN1_OBJECT = record - sn, ln : PIdAnsiChar; - nid : TIdC_INT; - length : TIdC_INT; - data : PIdAnsiChar; - flags : TIdC_INT; // Should we free this one - end; - {$EXTERNALSYM PASN1_OBJECT} - PASN1_OBJECT = ^ASN1_OBJECT; - {$EXTERNALSYM PPASN1_OBJECT} - PPASN1_OBJECT = ^PASN1_OBJECT; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_ASN1_OBJECT} - STACK_OF_ASN1_OBJECT = record - stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_ASN1_OBJECT} - PSTACK_OF_ASN1_OBJECT = ^STACK_OF_ASN1_OBJECT; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_ASN1_OBJECT} - PSTACK_OF_ASN1_OBJECT = PSTACK; - {$ENDIF} - {$EXTERNALSYM PPSTACK_OF_ASN1_OBJECT} - PPSTACK_OF_ASN1_OBJECT = ^PSTACK_OF_ASN1_OBJECT; - {$EXTERNALSYM asn1_string_st} - asn1_string_st = record - length : TIdC_INT; - _type : TIdC_INT; - data : PIdAnsiChar; - { The value of the following field depends on the type being - held. It is mostly being used for BIT_STRING so if the - input data has a non-zero 'unused bits' value, it will be - handled correctly } - flags : TIdC_LONG; - end; - //moved from asn1.h section here for a type definition - - {$IFNDEF OPENSSL_EXPORT_VAR_AS_FUNCTION} - {$EXTERNALSYM PASN1_ITEM} - // ASN1_ITEM pointer exported type - // typedef const ASN1_ITEM ASN1_ITEM_EXP; - PASN1_ITEM = ^ASN1_ITEM; - {$ELSE} - // Platforms that can't easily handle shared global variables are declared - // as functions returning ASN1_ITEM pointers. - // ASN1_ITEM pointer exported type - //typedef const ASN1_ITEM * ASN1_ITEM_EXP(void); - {$EXTERNALSYM PASN1_ITEM_EXP} - PASN1_ITEM_EXP = ^ASN1_ITEM_EXP; - {$ENDIF} -// typedef int asn1_output_data_fn(BIO *out, BIO *data, ASN1_VALUE *val, int flags, -// const ASN1_ITEM *it); - {$EXTERNALSYM asn1_output_data_fn} - asn1_output_data_fn = function(AOut : PBIO; data : PBIO; val : PASN1_VALUE; - flags : TIdC_INT; it : PASN1_ITEM): TIdC_INT; stdcall; - {$EXTERNALSYM ASN1_STRING} - ASN1_STRING = asn1_string_st; - {$EXTERNALSYM PASN1_STRING} - PASN1_STRING = ^ASN1_STRING; - {$EXTERNALSYM PPASN1_STRING} - PPASN1_STRING = ^PASN1_STRING; - {$EXTERNALSYM ASN1_INTEGER} - ASN1_INTEGER = ASN1_STRING; - {$EXTERNALSYM PASN1_INTEGER} - PASN1_INTEGER = ^ASN1_INTEGER; - {$EXTERNALSYM PPASN1_INTEGER} - PPASN1_INTEGER = ^PASN1_INTEGER; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_ASN1_INTEGER} - STACK_OF_ASN1_INTEGER = record - stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_ASN1_INTEGER} - PSTACK_OF_ASN1_INTEGER = ^STACK_OF_ASN1_INTEGER; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_ASN1_INTEGER} - PSTACK_OF_ASN1_INTEGER = PSTACK; - {$ENDIF} - {$EXTERNALSYM ASN1_ENUMERATED} - ASN1_ENUMERATED = ASN1_STRING; - {$EXTERNALSYM PASN1_ENUMERATED} - PASN1_ENUMERATED = ^ASN1_ENUMERATED; - {$EXTERNALSYM PPASN1_ENUMERATED} - PPASN1_ENUMERATED = ^PASN1_ENUMERATED; - {$EXTERNALSYM ASN1_BIT_STRING} - ASN1_BIT_STRING = ASN1_STRING; - {$EXTERNALSYM PASN1_BIT_STRING} - PASN1_BIT_STRING = ^ASN1_BIT_STRING; - {$EXTERNALSYM PPASN1_BIT_STRING} - PPASN1_BIT_STRING = ^PASN1_BIT_STRING; - {$EXTERNALSYM ASN1_OCTET_STRING} - ASN1_OCTET_STRING = ASN1_STRING; - {$EXTERNALSYM PASN1_OCTET_STRING} - PASN1_OCTET_STRING = ^ASN1_OCTET_STRING; - {$EXTERNALSYM PPASN1_OCTET_STRING} - PPASN1_OCTET_STRING = ^PASN1_OCTET_STRING; - {$EXTERNALSYM ASN1_PRINTABLESTRING} - ASN1_PRINTABLESTRING = ASN1_STRING; - {$EXTERNALSYM PASN1_PRINTABLESTRING} - PASN1_PRINTABLESTRING = ^ASN1_PRINTABLESTRING; - {$EXTERNALSYM PPASN1_PRINTABLESTRING} - PPASN1_PRINTABLESTRING = ^PASN1_PRINTABLESTRING; - {$EXTERNALSYM ASN1_T61STRING} - ASN1_T61STRING = ASN1_STRING; - {$EXTERNALSYM PASN1_T61STRING} - PASN1_T61STRING = ^ASN1_T61STRING; - {$EXTERNALSYM PPASN1_T61STRING} - PPASN1_T61STRING = ^PASN1_T61STRING; - {$EXTERNALSYM ASN1_IA5STRING} - ASN1_IA5STRING = ASN1_STRING; - {$EXTERNALSYM PASN1_IA5STRING} - PASN1_IA5STRING = ^ASN1_IA5STRING; - {$EXTERNALSYM PPASN1_IA5STRING} - PPASN1_IA5STRING = ^PASN1_IA5STRING; - {$EXTERNALSYM ASN1_UTCTIME} - ASN1_UTCTIME = ASN1_STRING; - {$EXTERNALSYM PASN1_UTCTIME} - PASN1_UTCTIME = ^ASN1_UTCTIME; - {$EXTERNALSYM PPASN1_UTCTIME} - PPASN1_UTCTIME = ^PASN1_UTCTIME; - {$EXTERNALSYM ASN1_GENERALIZEDTIME} - ASN1_GENERALIZEDTIME = ASN1_STRING; - {$EXTERNALSYM PASN1_GENERALIZEDTIME} - PASN1_GENERALIZEDTIME = ^ASN1_GENERALIZEDTIME; - {$EXTERNALSYM PPASN1_GENERALIZEDTIME} - PPASN1_GENERALIZEDTIME = ^PASN1_GENERALIZEDTIME; - {$EXTERNALSYM ASN1_TIME} - ASN1_TIME = ASN1_STRING; - {$EXTERNALSYM PASN1_TIME} - PASN1_TIME = ^ASN1_TIME; - {$EXTERNALSYM PPASN1_TIME} - PPASN1_TIME = ^PASN1_TIME; - {$EXTERNALSYM ASN1_GENERALSTRING} - ASN1_GENERALSTRING = ASN1_STRING; - {$EXTERNALSYM PASN1_GENERALSTRING} - PASN1_GENERALSTRING = ^ASN1_GENERALSTRING; - {$EXTERNALSYM PPASN1_GENERALSTRING} - PPASN1_GENERALSTRING = ^PASN1_GENERALSTRING; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_ASN1_GENERALSTRING} - STACK_OF_ASN1_GENERALSTRING = record - _stack: STACK; - end; - {$EXTERNALSYM PSTACK_OF_ASN1_GENERALSTRING} - PSTACK_OF_ASN1_GENERALSTRING =^STACK_OF_ASN1_GENERALSTRING; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_ASN1_GENERALSTRING} - PSTACK_OF_ASN1_GENERALSTRING = PSTACK; - {$ENDIF} - {$EXTERNALSYM ASN1_UNIVERSALSTRING} - ASN1_UNIVERSALSTRING = ASN1_STRING; - {$EXTERNALSYM PASN1_UNIVERSALSTRING} - PASN1_UNIVERSALSTRING = ^ASN1_UNIVERSALSTRING; - {$EXTERNALSYM PPASN1_UNIVERSALSTRING} - PPASN1_UNIVERSALSTRING = ^PASN1_UNIVERSALSTRING; - {$EXTERNALSYM ASN1_BMPSTRING} - ASN1_BMPSTRING = ASN1_STRING; - {$EXTERNALSYM PASN1_BMPSTRING} - PASN1_BMPSTRING = ^ASN1_BMPSTRING; - {$EXTERNALSYM PPASN1_BMPSTRING} - PPASN1_BMPSTRING = ^PASN1_BMPSTRING; - {$EXTERNALSYM ASN1_VISIBLESTRING} - ASN1_VISIBLESTRING = ASN1_STRING; - {$EXTERNALSYM PASN1_VISIBLESTRING} - PASN1_VISIBLESTRING = ^ASN1_VISIBLESTRING; - {$EXTERNALSYM PPASN1_VISIBLESTRING} - PPASN1_VISIBLESTRING = ^PASN1_VISIBLESTRING; - {$EXTERNALSYM ASN1_UTF8STRING} - ASN1_UTF8STRING = ASN1_STRING; - {$EXTERNALSYM PASN1_UTF8STRING} - PASN1_UTF8STRING = ^ASN1_UTF8STRING; - {$EXTERNALSYM PPASN1_UTF8STRING} - PPASN1_UTF8STRING = ^PASN1_UTF8STRING; - {$EXTERNALSYM ASN1_BOOLEAN} - ASN1_BOOLEAN = TIdC_INT; - {$EXTERNALSYM PASN1_BOOLEAN} - PASN1_BOOLEAN = ^ASN1_BOOLEAN; - {$EXTERNALSYM PPASN1_BOOLEAN} - PPASN1_BOOLEAN = ^PASN1_BOOLEAN; - {$EXTERNALSYM ASN1_NULL} - ASN1_NULL = TIdC_INT; - {$EXTERNALSYM PASN1_NULL} - PASN1_NULL = ^ASN1_NULL; - {$EXTERNALSYM PPASN1_NULL} - PPASN1_NULL = ^PASN1_NULL; - {$EXTERNALSYM ASN1_TYPE} - ASN1_TYPE = record - case Integer of - 0: (ptr: PIdAnsiChar); - 1: (boolean: ASN1_BOOLEAN); - 2: (asn1_string: PASN1_STRING); - 3: (_object: PASN1_OBJECT); - 4: (integer: PASN1_INTEGER); - 5: (enumerated: PASN1_ENUMERATED); - 6: (bit_string: PASN1_BIT_STRING); - 7: (octet_string: PASN1_OCTET_STRING); - 8: (printablestring: PASN1_PRINTABLESTRING); - 9: (t61string: PASN1_T61STRING); - 10: (ia5string: PASN1_IA5STRING); - 11: (generalstring: PASN1_GENERALSTRING); - 12: (bmpstring: PASN1_BMPSTRING); - 13: (universalstring: PASN1_UNIVERSALSTRING); - 14: (utctime: PASN1_UTCTIME); - 15: (generalizedtime: PASN1_GENERALIZEDTIME); - 16: (visiblestring: PASN1_VISIBLESTRING); - 17: (utf8string: PASN1_UTF8STRING); - { set and sequence are left complete and still - contain the set or sequence bytes } - 18: (_set: PASN1_STRING); - 19: (sequence: PASN1_STRING); - end; - {$EXTERNALSYM PASN1_TYPE} - PASN1_TYPE = ^ASN1_TYPE; - {$EXTERNALSYM PPASN1_TYPE} - PPASN1_TYPE = ^PASN1_TYPE; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_ASN1_TYPE} - STACK_OF_ASN1_TYPE = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_ASN1_TYPE} - PSTACK_OF_ASN1_TYPE = ^STACK_OF_ASN1_TYPE; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_ASN1_TYPE} - PSTACK_OF_ASN1_TYPE = ^PSTACK; - {$ENDIF} - {$EXTERNALSYM ASN1_CTX} - ASN1_CTX = record - p : PIdAnsiChar; // work char pointer - eos : TIdC_INT; // end of sequence read for indefinite encoding - error : TIdC_INT; // error code to use when returning an error - inf : TIdC_INT; // constructed if 0x20, indefinite is 0x21 - tag : TIdC_INT; // tag from last 'get object' - xclass : TIdC_INT; // class from last 'get object' - slen : TIdC_LONG; // length of last 'get object' - max : PIdAnsiChar; // largest value of p allowed - q : PIdAnsiChar; // temporary variable - pp : PPIdAnsiChar; // variable - line : TIdC_INT; // used in error processing - end; - {$EXTERNALSYM PASN1_CTX} - PASN1_CTX = ^ASN1_CTX; - {$EXTERNALSYM PPASN1_CTX} - PPASN1_CTX = ^PASN1_CTX; - {$EXTERNALSYM ASN1_METHOD} - ASN1_METHOD = record - i2d : i2d_of_void; - d2i : i2d_of_void; - create : function: Pointer; cdecl; - destroy : procedure(ptr: Pointer); cdecl; - end; - {$EXTERNALSYM PASN1_METHOD} - PASN1_METHOD = ^ASN1_METHOD; - {$EXTERNALSYM PPASN1_METHOD} - PPASN1_METHOD = ^PASN1_METHOD; - // This is used when parsing some Netscape objects - {$EXTERNALSYM ASN1_HEADER} - ASN1_HEADER = record - header : PASN1_OCTET_STRING; - data : Pointer; - meth : PASN1_METHOD; - end; - {$EXTERNALSYM PASN1_HEADER} - PASN1_HEADER = ^ASN1_HEADER; - {$EXTERNALSYM PPASN1_HEADER} - PPASN1_HEADER = ^PASN1_HEADER; - {$EXTERNALSYM ASN1_ENCODING} - ASN1_ENCODING = record - enc: PIdAnsiChar; - len: TIdC_LONG; - modified: TIdC_INT; - end; - {$EXTERNALSYM PASN1_ENCODING} - PASN1_ENCODING = ^ASN1_ENCODING; - {$EXTERNALSYM PPASN1_ENCODING} - PPASN1_ENCODING = ^PASN1_ENCODING; - {$EXTERNALSYM ASN1_STRING_TABLE} - ASN1_STRING_TABLE = record - nid : TIdC_INT; - minsize : TIdC_LONG; - maxsize : TIdC_LONG; - mask : TIdC_ULONG; - flags : TIdC_ULONG; - end; - {$EXTERNALSYM PASN1_STRING_TABLE} - PASN1_STRING_TABLE = ^ASN1_STRING_TABLE; - {$EXTERNALSYM PPASN1_STRING_TABLE} - PPASN1_STRING_TABLE = ^ASN1_STRING_TABLE; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_ASN1_STRING_TABLE} - STACK_OF_ASN1_STRING_TABLE = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_ASN1_STRING_TABLE} - PSTACK_OF_ASN1_STRING_TABLE = ^STACK_OF_ASN1_STRING_TABLE; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_ASN1_STRING_TABLE} - PSTACK_OF_ASN1_STRING_TABLE = PSTACK; - {$ENDIF} - {$IFNDEF OPENSSL_EXPORT_VAR_AS_FUNCTION} - // ASN1_ITEM pointer exported type - // typedef const ASN1_ITEM ASN1_ITEM_EXP; - // ASN1_ITEM_EXP = ASN1_ITEM; - // PASN1_ITEM_EXP = ^ASN1_ITEM_EXP; - // PASN1_ITEM = ^ASN1_ITEM; - {$EXTERNALSYM PASN1_ITEM_EXP} - PASN1_ITEM_EXP = PASN1_ITEM; - {$ELSE} - // Platforms that can't easily handle shared global variables are declared - // as functions returning ASN1_ITEM pointers. - - // ASN1_ITEM pointer exported type - //typedef const ASN1_ITEM * ASN1_ITEM_EXP(void); - {$EXTERNALSYM ASN1_ITEM_EXP} - ASN1_ITEM_EXP = function : PASN1_ITEM cdecl; -// PASN1_ITEM_EXP = ^ASN1_ITEM_EXP; - {$ENDIF} - //rsa.h - struct rsa_st - {$IFNDEF OPENSSL_NO_RSA} - {$IFDEF OPENSSL_FIPS} - {$EXTERNALSYM FIPS_RSA_SIZE_T} - FIPS_RSA_SIZE_T = TIdC_int; - {$ENDIF} - {$EXTERNALSYM PRSA} - PRSA = ^RSA; - {$EXTERNALSYM PPRSA} - PPRSA =^PRSA; - {$EXTERNALSYM RSA_METHOD} - RSA_METHOD = record - name : PIdAnsiChar; - rsa_pub_enc : function (flen : TIdC_INT; const from : PIdAnsiChar; - _to : PIdAnsiChar; rsa : PRSA; padding : TIdC_INT) : TIdC_INT; cdecl; - rsa_pub_dec : function (flen : TIdC_INT; const from : PIdAnsiChar; - _to : PIdAnsiChar; rsa : PRSA; padding : TIdC_INT) : TIdC_INT; cdecl; - rsa_priv_enc : function (flen : TIdC_INT; const from : PIdAnsiChar; - _to : PIdAnsiChar; rsa : PRSA; padding : TIdC_INT) : TIdC_INT; cdecl; - rsa_priv_dec : function (flen : TIdC_INT; const from : PIdAnsiChar; - _to : PIdAnsiChar; rsa : PRSA; padding : TIdC_INT) : TIdC_INT; cdecl; - rsa_mod_exp : function (r0 : PBIGNUM; const I : PBIGNUM; - rsa : PRSA; ctx : PBN_CTX) : TIdC_INT cdecl; // Can be null / - bn_mod_exp : function (r : PBIGNUM; const a : PBIGNUM; - const p : PBIGNUM; const m: PBIGNUM; ctx : PBN_CTX; - m_ctx : PBN_MONT_CTX ) : TIdC_INT; cdecl; // Can be null - init : function (rsa : PRSA) : TIdC_INT; cdecl; // called at new - finish : function (rsa : PRSA) : TIdC_INT; cdecl; // called at free - flags : TIdC_INT; // RSA_METHOD_FLAG_* things - app_data : PIdAnsiChar; // may be needed! - // New sign and verify functions: some libraries don't allow arbitrary data - // to be signed/verified: this allows them to be used. Note: for this to work - // the RSA_public_decrypt() and RSA_private_encrypt() should *NOT* be used - // RSA_sign(), RSA_verify() should be used instead. Note: for backwards - // compatibility this functionality is only enabled if the RSA_FLAG_SIGN_VER - // option is set in 'flags'. - // - rsa_sign : function (_type : TIdC_INT; const m : PIdAnsiChar; m_length : TIdC_UINT; - sigret : PIdAnsiChar; siglen : PIdC_UINT; const rsa : PRSA) : TIdC_INT; cdecl; - rsa_verify : function(dtype : TIdC_INT; const m : PIdAnsiChar; m_length : PIdC_UINT; - sigbuf : PIdAnsiChar; siglen : PIdC_UINT; const rsa :PRSA) : TIdC_INT; cdecl; - // If this callback is NULL, the builtin software RSA key-gen will be used. - // This is for behavioural compatibility whilst the code gets rewired, but - // one day it would be nice to assume there are no such things as "builtin - // software" implementations. - rsa_keygen : function (rsa : PRSA; bits : TIdC_INT; e : PBIGNUM; cb : PBN_GENCB) : TIdC_INT; cdecl; - end; - {$EXTERNALSYM PRSA_METHOD} - PRSA_METHOD = ^RSA_METHOD; - - {$EXTERNALSYM rsa_st} - rsa_st = record - // The first parameter is used to pickup errors where - // this is passed instead of aEVP_PKEY, it is set to 0 - pad : TIdC_INT; - version : TIdC_LONG; - meth : PRSA_METHOD; // const RSA_METHOD *meth; - // functional reference if 'meth' is ENGINE-provided - engine : PENGINE; - n : PBIGNUM; - e : PBIGNUM; - d : PBIGNUM; - p : PBIGNUM; - q : PBIGNUM; - dmp1 : PBIGNUM; - dmq1 : PBIGNUM; - iqmp : PBIGNUM; - // be careful using this if the RSA structure is shared - ex_data : CRYPTO_EX_DATA; - references : TIdC_INT; - flags : TIdC_INT; - // Used to cache montgomery values - _method_mod_n : PBN_MONT_CTX; - _method_mod_p : PBN_MONT_CTX; - _method_mod_q : PBN_MONT_CTX; - // all BIGNUM values are actually in the following data, if it is not NULL - bignum_data : PIdAnsiChar; - blinding : PBN_BLINDING; - mt_blinding : PBN_BLINDING; - end; - {$EXTERNALSYM RSA} - RSA = rsa_st; - {$EXTERNALSYM Prsa_st} - Prsa_st = PRSA; - {$ENDIF} - //dso.h - {$EXTERNALSYM PDSO} - PDSO = ^DSO; -///* The function prototype used for method functions (or caller-provided -// * callbacks) that transform filenames. They are passed a DSO structure pointer -// * (or NULL if they are to be used independantly of a DSO object) and a -// * filename to transform. They should either return NULL (if there is an error -// * condition) or a newly allocated string containing the transformed form that -// * the caller will need to free with OPENSSL_free() when done. */ - {$EXTERNALSYM DSO_NAME_CONVERTER_FUNC} - DSO_NAME_CONVERTER_FUNC = function (dso : PDSO; para1 : PIdAnsiChar) : PIdAnsiChar cdecl; - {$EXTERNALSYM PDSO_METHOD} - PDSO_METHOD = ^DSO_METHOD; - {$EXTERNALSYM DSO_FUNC_TYPE} - DSO_FUNC_TYPE = procedure cdecl; -///* The function prototype used for method functions (or caller-provided -// * callbacks) that merge two file specifications. They are passed a -// * DSO structure pointer (or NULL if they are to be used independantly of -// * a DSO object) and two file specifications to merge. They should -// * either return NULL (if there is an error condition) or a newly allocated -// * string containing the result of merging that the caller will need -// * to free with OPENSSL_free() when done. -// * Here, merging means that bits and pieces are taken from each of the -// * file specifications and added together in whatever fashion that is -// * sensible for the DSO method in question. The only rule that really -// * applies is that if the two specification contain pieces of the same -// * type, the copy from the first string takes priority. One could see -// * it as the first specification is the one given by the user and the -// * second being a bunch of defaults to add on if they're missing in the -// * first. */ - {$EXTERNALSYM DSO_MERGER_FUNC} - DSO_MERGER_FUNC = function (DSO : PDSO; para1, para2 : PIdAnsiChar) : PIdAnsiChar stdcall; - {$EXTERNALSYM DSO_METHOD} - DSO_METHOD = record - name : PIdAnsiChar; - ///* Loads a shared library, NB: new DSO_METHODs must ensure that a - // * successful load populates the loaded_filename field, and likewise a - // * successful unload OPENSSL_frees and NULLs it out. */ - dso_load : function (dso : PDSO) : TIdC_INT cdecl; - //* Unloads a shared library */ - dso_unload : function (dso : PDSO) : TIdC_INT cdecl; - //* Binds a variable */ - dso_bind_var : function (dso : PDSO; symname : PIdAnsiChar) : Pointer cdecl; - ///* Binds a function - assumes a return type of DSO_FUNC_TYPE. - // * This should be cast to the real function prototype by the - // * caller. Platforms that don't have compatible representations - // * for different prototypes (this is possible within ANSI C) - // * are highly unlikely to have shared libraries at all, let - // * alone a DSO_METHOD implemented for them. */ - dso_bind_func : function (dso : PDSO; symname : PIdAnsiChar) : DSO_FUNC_TYPE stdcall; - - ///* The generic (yuck) "ctrl()" function. NB: Negative return - // * values (rather than zero) indicate errors. */ - dso_ctrl : function (dso : PDSO; cmd : TIdC_INT; larg : TIdC_LONG; parg : Pointer) : TIdC_LONG stdcall; - ///* The default DSO_METHOD-specific function for converting filenames to - // * a canonical native form. */ - dso_name_converter : DSO_NAME_CONVERTER_FUNC; - ///* The default DSO_METHOD-specific function for converting filenames to - // * a canonical native form. */ - dso_merger : DSO_MERGER_FUNC; - - //* [De]Initialisation handlers. */ - init : function (dso : PDSO) : TIdC_INT stdcall; - finish : function (dso : PDSO) : TIdC_INT stdcall; - - //* Return pathname of the module containing location */ - pathbyaddr : function (addr : Pointer; path : PIdAnsiChar; sz : TIdC_INT) : TIdC_INT stdcall; - //* Perform global symbol lookup, i.e. among *all* modules */ - globallookup : function (symname : PIdAnsiChar) : Pointer stdcall; - end; - {$EXTERNALSYM DSO} - DSO = record - meth : PDSO_METHOD; - ///* Standard dlopen uses a (void *). Win32 uses a HANDLE. VMS - // * doesn't use anything but will need to cache the filename - // * for use in the dso_bind handler. All in all, let each - // * method control its own destiny. "Handles" and such go in - // * a STACK. */ - meth_data : PSTACK_OF_POINTER; - references : TIdC_INT; - flags : TIdC_INT; - ///* For use by applications etc ... use this for your bits'n'pieces, - // * don't touch meth_data! */ - ex_data : CRYPTO_EX_DATA; - ///* If this callback function pointer is set to non-NULL, then it will - // * be used in DSO_load() in place of meth->dso_name_converter. NB: This - // * should normally set using DSO_set_name_converter(). */ - name_converter : DSO_NAME_CONVERTER_FUNC; - ///* If this callback function pointer is set to non-NULL, then it will - // * be used in DSO_load() in place of meth->dso_merger. NB: This - // * should normally set using DSO_set_merger(). */ - merger : DSO_MERGER_FUNC; - ///* This is populated with (a copy of) the platform-independant - // * filename used for this DSO. */ - filename : PIdAnsiChar; - ///* This is populated with (a copy of) the translated filename by which - // * the DSO was actually loaded. It is NULL iff the DSO is not currently - // * loaded. NB: This is here because the filename translation process - // * may involve a callback being invoked more than once not only to - // * convert to a platform-specific form, but also to try different - // * filenames in the process of trying to perform a load. As such, this - // * variable can be used to indicate (a) whether this DSO structure - // * corresponds to a loaded library or not, and (b) the filename with - // * which it was actually loaded. */ - loaded_filename : PIdAnsiChar; - end; - //dh.h - {$IFNDEF OPENSSL_NO_DH} - {$EXTERNALSYM PDH} - PDH = ^DH; - {$EXTERNALSYM DH_METHOD} - DH_METHOD = record - name : PIdAnsiChar; - // Methods here - generate_key : function (dh : PDH) : TIdC_INT; cdecl; - compute_key : function (key : PIdAnsiChar; const pub_key : PBIGNUM; dh : PDH) : TIdC_INT; cdecl; - bn_mod_exp : function (const dh : PDH; r : PBIGNUM; const e : PBIGNUM; - const p : PBIGNUM; const m : PBIGNUM; ctx : PBN_CTX; - m_ctx : PBN_MONT_CTX) : TIdC_INT; cdecl; // Can be null - init : function (dh : PDH) : TIdC_INT; cdecl; - finish : function (dh : PDH) : TIdC_INT; cdecl; - flags : TIdC_INT; - app_data : PIdAnsiChar; - // If this is non-NULL, it will be used to generate parameters - generate_params : function(dh : PDH; prime_len, generator : TIdC_INT; cb : PBN_GENCB) : TIdC_INT; cdecl; - end; - {$EXTERNALSYM dh_st} - dh_st = record - // The first parameter is used to pickup errors where - // this is passed instead of aEVP_PKEY, it is set to 0 - pad : TIdC_INT; - version : TIdC_LONG; - meth : PRSA_METHOD; - // functional reference if 'meth' is ENGINE-provided - engine: PENGINE; - n : PBIGNUM; - e : PBIGNUM; - d : PBIGNUM; - p : PBIGNUM; - q : PBIGNUM; - dmp1 : PBIGNUM; - dmq1 : PBIGNUM; - iqmp : PBIGNUM; - // be careful using this if the RSA structure is shared - ex_data : CRYPTO_EX_DATA; - references : TIdC_INT; - flags : TIdC_INT; - // Used to cache montgomery values - _method_mod_n : BN_MONT_CTX; - _method_mod_p : BN_MONT_CTX; - _method_mod_q : BN_MONT_CTX; - // all BIGNUM values are actually in the following data, if it is not NULL - bignum_data : PIdAnsiChar; - blinding : PBN_BLINDING; - mt_blinding : PBN_BLINDING; - end; - {$EXTERNALSYM DH} - DH = dh_st; - {$EXTERNALSYM Pdh_st} - Pdh_st = PDH; - {$EXTERNALSYM PPDH} - PPDH =^PDH; - {$ENDIF} - // dsa.h - {$IFNDEF OPENSSL_NO_DSA} - {$IFDEF OPENSSL_FIPS} - {$EXTERNALSYM FIPS_DSA_SIZE_T} - FIPS_DSA_SIZE_T = TIdC_int; - {$ENDIF} - {$EXTERNALSYM DSA_SIG} - DSA_SIG = record - r : PBIGNUM; - s : PBIGNUM; - end; - {$EXTERNALSYM PDSA_SIG} - PDSA_SIG = ^DSA_SIG; - {$EXTERNALSYM PDSA} - PDSA = ^DSA; - {$EXTERNALSYM DSA_METHOD} - DSA_METHOD = record - name : PIdAnsiChar; - dsa_do_sign : function (const dgst : PIdAnsiChar; dlen : TIdC_INT; dsa : PDSA) : PDSA_SIG; cdecl; - dsa_sign_setup : function (dsa : PDSA; ctx_in : PBN_CTX; kinvp, rp : PPBN_CTX) : TIdC_INT; cdecl; - dsa_do_verify : function(dgst : PIdAnsiChar; dgst_len : TIdC_INT; - sig : PDSA_SIG; dsa : PDSA) : TIdC_INT; cdecl; - dsa_mod_exp : function(dsa : PDSA; rr, a1, p1, - a2, p2, m : PBIGNUM; ctx : PBN_CTX; - in_mont : PBN_MONT_CTX) : TIdC_INT; cdecl; - bn_mod_exp : function (dsa : PDSA; r, a : PBIGNUM; const p, m : PBIGNUM; - ctx : PBN_CTX; m_ctx : PBN_CTX): TIdC_INT; cdecl; // Can be null - init : function (dsa : PDSA) : TIdC_INT; cdecl; - finish : function (dsa : PDSA) : TIdC_INT; cdecl; - flags : TIdC_INT; - app_data : PIdAnsiChar; - // If this is non-NULL, it is used to generate DSA parameters - dsa_paramgen : function (dsa : PDSA; bits : TIdC_INT; seed : PIdAnsiChar; - seed_len : TIdC_INT; counter_ret : PIdC_INT; h_ret : PIdC_ULONG; - cb : PBN_GENCB ) : TIdC_INT; cdecl; - // If this is non-NULL, it is used to generate DSA keys - dsa_keygen : function(dsa : PDSA) : TIdC_INT; cdecl; - end; - {$EXTERNALSYM PDSA_METHOD} - PDSA_METHOD = ^DSA_METHOD; - - {$EXTERNALSYM dsa_st} - dsa_st = record - // This first variable is used to pick up errors where - // a DSA is passed instead of of a EVP_PKEY - pad : TIdC_INT; - version : TIdC_LONG; - write_params : TIdC_INT; - p : PBIGNUM; - q : PBIGNUM; // == 20 - g : PBIGNUM; - pub_key : PBIGNUM; // y public key - priv_key : PBIGNUM; // x private key - kinv : BIGNUM; // Signing pre-calc - r : PBIGNUM; // Signing pre-calc - flags : TIdC_INT; - // Normally used to cache montgomery values - method_mont_p : PBN_MONT_CTX; - references : TIdC_INT; - ex_data : CRYPTO_EX_DATA; - meth : PDSA_METHOD; - // functional reference if 'meth' is ENGINE-provided - engine : PENGINE; - end; - {$EXTERNALSYM DSA} - DSA = dsa_st; - {$EXTERNALSYM Pdsa_st} - Pdsa_st = PDSA; - {$EXTERNALSYM PPDSA} - PPDSA = ^PDSA; - {$ENDIF} - // ec.h - {$IFNDEF OPENSSL_NO_EC} - // EC_METHOD = record - //The fields are internal to OpenSSL, they are not listed in the header. - // end; - {$EXTERNALSYM PEC_METHOD} - PEC_METHOD = Pointer;//^EC_METHOD; - {$EXTERNALSYM PPEC_METHOD} - PPEC_METHOD = ^PEC_METHOD; - // EC_GROUP = record - //The fields are internal to OpenSSL, they are not listed in the header. -// end; - {$EXTERNALSYM PEC_GROUP} - PEC_GROUP = Pointer;//^EC_GROUP; - {$EXTERNALSYM PPEC_GROUP} - PPEC_GROUP = ^PEC_GROUP; -// EC_POINT = record - //The fields are internal to OpenSSL, they are not listed in the header. -// end; - {$EXTERNALSYM PEC_POINT} - PEC_POINT = Pointer;//^EC_POINT; - {$EXTERNALSYM PPEC_POINT} - PPEC_POINT = ^PEC_POINT; - {$EXTERNALSYM EC_builtin_curve} - EC_builtin_curve = record - nid : TIdC_INT; - comment : PIdAnsiChar; - end; - {$EXTERNALSYM Pec_key_st} - Pec_key_st = Pointer; - {$EXTERNALSYM PEC_KEY} - PEC_KEY = Pec_key_st;//^EC_KEY; -// EC_KEY = record - //The fields are internal to OpenSSL, they are not listed in the header. -// end; - - {$EXTERNALSYM PPEC_KEY} - PPEC_KEY = ^PEC_KEY; - {$ENDIF} - //evp.h -// EVP_PBE_KEYGEN = record -// end; - {$EXTERNALSYM PEVP_PKEY_METHOD} - PEVP_PKEY_METHOD = pointer; //This is not defined publically in OpenSSL 1.0.0 - {$EXTERNALSYM PEVP_PKEY_CTX} - PEVP_PKEY_CTX = pointer; //This is not defined publically in OpenSSL 1.0.0 - {$EXTERNALSYM PPEVP_PKEY_CTX} - PPEVP_PKEY_CTX = ^PEVP_PKEY_CTX; - {$EXTERNALSYM PEVP_PKEY_ASN1_METHOD} - PEVP_PKEY_ASN1_METHOD = pointer; - {$EXTERNALSYM PEVP_PBE_KEYGEN} - PEVP_PBE_KEYGEN = Pointer;//^EVP_PBE_KEYGEN; - //evp.h - //struct evp_pkey_st - {$EXTERNALSYM PPEVP_PKEY} - PPEVP_PKEY = ^PEVP_PKEY; - {$EXTERNALSYM PEVP_PKEY} - PEVP_PKEY = ^EVP_PKEY; - {$EXTERNALSYM EVP_PKEY_union} - EVP_PKEY_union = record - case byte of - 0: (ptr : PIdAnsiChar); - - {$IFNDEF OPENSSL_NO_RSA} - 1: (rsa : PRSA); // RSA - {$ENDIF} - {$IFNDEF OPENSSL_NO_DSA} - 2: (dsa : PDSA); // DSA - {$ENDIF} - {$IFNDEF OPENSSL_NO_DH} - 3: (dh :PDH); // DH - {$ENDIF} - {$IFNDEF OPENSSL_NO_EC} - 4: (ec : PEC_KEY); // ECC - {$ENDIF} - end; - {$EXTERNALSYM Pevp_pkey_st} - Pevp_pkey_st = PEVP_PKEY; - //this was moved from x509 section so that something here can compile. - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_ATTRIBUTE} - STACK_OF_X509_ATTRIBUTE = record - _stack: STACK; - end; - {$EXTERNALSYM PSTACK_OF_X509_ATTRIBUTE} - PSTACK_OF_X509_ATTRIBUTE = ^STACK_OF_X509_ATTRIBUTE; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509_ATTRIBUTE} - PSTACK_OF_X509_ATTRIBUTE = PSTACK; - {$ENDIF} - {$EXTERNALSYM PPSTACK_OF_X509_ATTRIBUTE} - PPSTACK_OF_X509_ATTRIBUTE = ^PSTACK_OF_X509_ATTRIBUTE; - {$EXTERNALSYM EVP_PKEY} - EVP_PKEY = record - _type : TIdC_INT; - save_type : TIdC_INT; - references : TIdC_INT; - ameth : PEVP_PKEY_ASN1_METHOD; - pkey : EVP_PKEY_union; - attributes : PSTACK_OF_X509_ATTRIBUTE; // [ 0 ] - end; - {$EXTERNALSYM PEVP_MD} - PEVP_MD = ^EVP_MD; - {$EXTERNALSYM PEVP_MD_CTX} - PEVP_MD_CTX = ^EVP_MD_CTX; - {$EXTERNALSYM PPEVP_MD_CTX} - PPEVP_MD_CTX = ^PEVP_MD_CTX; - {$EXTERNALSYM EVP_MD_CTX} - EVP_MD_CTX = record - digest : PEVP_MD; - engine : PENGINE; // functional reference if 'digest' is ENGINE-provided - flags : TIdC_ULONG; - md_data : Pointer; - //* Public key context for sign/verify */ - pctx : PEVP_PKEY_CTX; - //* Update function: usually copied from EVP_MD */ -// int (*update)(EVP_MD_CTX *ctx,const void *data,size_t count); - update : function (ctx : PEVP_MD_CTX; const data : Pointer; count : size_t) : TIdC_INT cdecl; - end; - {$EXTERNALSYM EVP_MD_SVCTX} - EVP_MD_SVCTX = record - mctx : PEVP_MD_CTX; - key : Pointer; - end; - {$EXTERNALSYM PEVP_MD_SVCTX} - PEVP_MD_SVCTX = ^EVP_MD_SVCTX; - {$EXTERNALSYM EVP_MD} - EVP_MD = record - _type : TIdC_INT; - pkey_type : TIdC_INT; - md_size : TIdC_INT; - flags : TIdC_ULONG; - init : function (ctx : PEVP_MD_CTX) : TIdC_INT; cdecl; - update : function (ctx : PEVP_MD_CTX; data : Pointer; count : size_t):TIdC_INT; cdecl; - _final : function (ctx : PEVP_MD_CTX; md : PIdAnsiChar) : TIdC_INT; cdecl; - copy : function (_to : PEVP_MD_CTX; from : PEVP_MD_CTX ) : TIdC_INT; cdecl; - cleanup : function(ctx : PEVP_MD_CTX) : TIdC_INT; cdecl; - // FIXME: prototype these some day - sign : function(_type : TIdC_INT; m : PIdAnsiChar; m_length : TIdC_UINT; - sigret : PIdAnsiChar; siglen : TIdC_UINT; key : Pointer) : TIdC_INT; cdecl; - verify : function(_type : TIdC_INT; m : PIdAnsiChar; m_length : PIdAnsiChar; - sigbuf : PIdAnsiChar; siglen : TIdC_UINT; key : Pointer) : TIdC_INT; cdecl; - required_pkey_type : array [0..4] of TIdC_INT; // EVP_PKEY_xxx - block_size : TIdC_INT; - ctx_size : TIdC_INT; // how big does the ctx->md_data need to be - end; - {$EXTERNALSYM PPEVP_CIPHER_CTX} - PPEVP_CIPHER_CTX = ^PEVP_CIPHER_CTX; - {$EXTERNALSYM PEVP_CIPHER_CTX} - PEVP_CIPHER_CTX = ^EVP_CIPHER_CTX; - {$EXTERNALSYM PEVP_CIPHER} - PEVP_CIPHER = ^EVP_CIPHER; - {$EXTERNALSYM EVP_CIPHER} - EVP_CIPHER = record - nid : TIdC_INT; - block_size : TIdC_INT; - key_len : TIdC_INT; // Default value for variable length ciphers - iv_len : TIdC_INT; - flags : TIdC_UINT; // Various flags - init : function (ctx : PEVP_CIPHER_CTX; key : PIdAnsiChar; iv : PIdAnsiChar; enc : TIdC_INT): TIdC_INT; cdecl; - do_cipher : function (ctx : PEVP_CIPHER_CTX; _out : PIdAnsiChar; _in : PIdAnsiChar; inl : size_t) : TIdC_INT; cdecl; - cleanup : function (_para1 : PEVP_CIPHER_CTX): TIdC_INT; cdecl; // cleanup ctx - ctx_size : TIdC_INT; // how big ctx->cipher_data needs to be - set_asn1_parameters : function (_para1 : PEVP_CIPHER_CTX; - _para2 : PASN1_TYPE) : TIdC_INT; cdecl; // Populate a ASN1_TYPE with parameters - get_asn1_parameters :function (_para1 : PEVP_CIPHER_CTX; - _para2 : PASN1_TYPE) : TIdC_INT; cdecl; // Get parameters from a ASN1_TYPE - ctrl : function (_para1 : PEVP_CIPHER_CTX; _type : TIdC_INT; arg : TIdC_INT; - ptr : Pointer): TIdC_INT; cdecl; // Miscellaneous operations - app_data : Pointer; // Application data - end; - {$EXTERNALSYM EVP_CIPHER_CTX} - EVP_CIPHER_CTX = record - cipher : PEVP_CIPHER; - engine : PENGINE; // functional reference if 'cipher' is ENGINE-provided - encrypt: TIdC_INT; // encrypt or decrypt - buf_len : TIdC_INT; // number we have left - oiv : array [0..EVP_MAX_IV_LENGTH-1] of TIdAnsiChar; // original iv - iv : array [0..EVP_MAX_IV_LENGTH -1] of TIdAnsiChar; // working iv - buf : array [0..EVP_MAX_BLOCK_LENGTH -1] of TIdAnsiChar; // saved partial block - num : TIdC_INT; // used by cfb/ofb mode - app_data : Pointer; // application stuff - key_len : TIdC_INT; // May change for variable length cipher - flags : TIdC_ULONG; // Various flags - cipher_data : Pointer; // per EVP data - final_used : TIdC_INT; - block_mask : TIdC_INT; - _final : array [0..EVP_MAX_BLOCK_LENGTH-1] of TIdAnsiChar; // possible final block - end; - {$EXTERNALSYM EVP_CIPHER_INFO} - EVP_CIPHER_INFO = record - cipher : PEVP_CIPHER; - iv : array [0..EVP_MAX_IV_LENGTH -1] of TIdAnsiChar; - end; - {$EXTERNALSYM PEVP_CIPHER_INFO} - PEVP_CIPHER_INFO = ^EVP_CIPHER_INFO; - {$EXTERNALSYM EVP_ENCODE_CTX} - EVP_ENCODE_CTX = record - num : TIdC_INT; // number saved in a partial encode/decode - length: TIdC_INT; // The length is either the output line length - // (in input bytes) or the shortest input line - // length that is ok. Once decoding begins, - // the length is adjusted up each time a longer - // line is decoded - enc_data:array [0..79] of TIdAnsiChar; - line_num: TIdC_INT; // number read on current line - expect_nl: TIdC_INT; - end; - {$EXTERNALSYM PEVP_ENCODE_CTX} - PEVP_ENCODE_CTX = ^EVP_ENCODE_CTX; - //forward declarations from x509.h to make sure this compiles. - {$NODEFINE PX509} - PX509 = ^X509; - {$EXTERNALSYM PPX509} - PPX509 = ^PX509; - {$EXTERNALSYM PX509_CRL} - PX509_CRL = ^X509_CRL; - {$NODEFINE PX509_NAME} - PX509_NAME = ^X509_NAME; - {$EXTERNALSYM PX509_NAME_ENTRY} - PX509_NAME_ENTRY = ^X509_NAME_ENTRY; - {$EXTERNALSYM PX509_REQ} - PX509_REQ = ^X509_REQ; - {$EXTERNALSYM PX509_REQ_INFO} - PX509_REQ_INFO = ^X509_REQ_INFO; - {$EXTERNALSYM PPX509_REQ_INFO} - PPX509_REQ_INFO = ^PX509_REQ_INFO; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_NAME_ENTRY} - STACK_OF_X509_NAME_ENTRY = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_X509_NAME_ENTRY} - PSTACK_OF_X509_NAME_ENTRY = ^STACK_OF_X509_NAME_ENTRY; - {$EXTERNALSYM STACK_OF_X509_REVOKED} - STACK_OF_X509_REVOKED = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_X509_REVOKED} - PSTACK_OF_X509_REVOKED = ^STACK_OF_X509_REVOKED; - {$EXTERNALSYM STACK_OF_X509_NAME} - STACK_OF_X509_NAME = record - _stack: STACK; - end; - {$EXTERNALSYM PSTACK_OF_X509_NAME} - PSTACK_OF_X509_NAME = ^STACK_OF_X509_NAME; - {$ELSE} - {$EXTERNALSYM PSTACK_OF_X509_NAME_ENTRY} - PSTACK_OF_X509_NAME_ENTRY = PSTACK; - {$EXTERNALSYM PSTACK_OF_X509_REVOKED} - PSTACK_OF_X509_REVOKED = PSTACK; - {$EXTERNALSYM PSTACK_OF_X509_NAME} - PSTACK_OF_X509_NAME = PSTACK; - {$ENDIF} - {$EXTERNALSYM PPSTACK_OF_X509_REVOKED} - PPSTACK_OF_X509_REVOKED = ^PSTACK_OF_X509_REVOKED; - {$EXTERNALSYM PPX509_NAME} - PPX509_NAME =^PX509_NAME; - {$EXTERNALSYM PPSTACK_OF_X509_NAME} - PPSTACK_OF_X509_NAME = ^PSTACK_OF_X509_NAME; - //pcy_int.h - //Note that anything other than PSTACK should be undefined since the record - //members aren't exposed in the headers. - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_POLICY_DATA} - STACK_OF_X509_POLICY_DATA = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_X509_POLICY_DATA} - PSTACK_OF_X509_POLICY_DATA = ^STACK_OF_X509_POLICY_DATA; - {$EXTERNALSYM STACK_OF_X509_POLICY_REF} - STACK_OF_X509_POLICY_REF = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_X509_POLICY_REF} - PSTACK_OF_X509_POLICY_REF = ^STACK_OF_X509_POLICY_DATA; - {$EXTERNALSYM STACK_OF_X509_POLICY_NODE} - STACK_OF_X509_POLICY_NODE = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_X509_POLICY_NODE} - PSTACK_OF_X509_POLICY_NODE = ^STACK_OF_X509_POLICY_NODE; - {$EXTERNALSYM STACK_OF_POLICYQUALINFO} - STACK_OF_POLICYQUALINFO = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_POLICYQUALINFO} - PSTACK_OF_POLICYQUALINFO = ^STACK_OF_POLICYQUALINFO; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509_POLICY_DATA} - PSTACK_OF_X509_POLICY_DATA = PSTACK; - {$EXTERNALSYM PSTACK_OF_X509_POLICY_REF} - PSTACK_OF_X509_POLICY_REF = PSTACK; - {$EXTERNALSYM PSTACK_OF_X509_POLICY_NODE} - PSTACK_OF_X509_POLICY_NODE = PSTACK; - {$EXTERNALSYM PSTACK_OF_POLICYQUALINFO} - PSTACK_OF_POLICYQUALINFO = PSTACK; - {$ENDIF} - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509V3_EXT_METHOD} - STACK_OF_X509V3_EXT_METHOD = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_X509V3_EXT_METHOD} - PSTACK_OF_X509V3_EXT_METHOD = ^STACK_OF_X509V3_EXT_METHOD; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509V3_EXT_METHOD} - PSTACK_OF_X509V3_EXT_METHOD = PSTACK; - {$ENDIF} - {$EXTERNALSYM PPSTACK_OF_X509V3_EXT_METHOD} - PPSTACK_OF_X509V3_EXT_METHOD = ^PSTACK_OF_X509V3_EXT_METHOD; - {$IFDEF DEBUF_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509} - STACK_OF_X509 = record - _stack: STACK; - end; - {$EXTERNALSYM PSTACK_OF_X509} - PSTACK_OF_X509 = ^STACK_OF_X509; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509} - PSTACK_OF_X509 = PSTACK; - {$ENDIF} - {$EXTERNALSYM PPSTACK_OF_X509} - PPSTACK_OF_X509 = ^PSTACK_OF_X509; - //fips.h - //engiene.h - {$IFNDEF OPENSSL_NO_ENGINE} - //* Generic function pointer */ -//typedef int (*ENGINE_GEN_FUNC_PTR)(void); - {$EXTERNALSYM ENGINE_GEN_FUNC_PTR} - ENGINE_GEN_FUNC_PTR = function : TIdC_INT; cdecl; -// typedef int (*ENGINE_GEN_INT_FUNC_PTR)(ENGINE *); - {$EXTERNALSYM ENGINE_GEN_INT_FUNC_PTR} - ENGINE_GEN_INT_FUNC_PTR = function(Para1 : PENGINE) : TIdC_INT; cdecl; -//typedef int (*ENGINE_CTRL_FUNC_PTR)(ENGINE *, int, long, void *, void (*f)(void)); - {$EXTERNALSYM ENGINE_CTRL_FUNC_PTR_F} - ENGINE_CTRL_FUNC_PTR_F = procedure; cdecl; - {$EXTERNALSYM ENGINE_CTRL_FUNC_PTR} - ENGINE_CTRL_FUNC_PTR = function(Para1 : PENGINE; Para2 : TIdC_INT; - Para3 : TIdC_LONG; Para4 : Pointer; f : ENGINE_CTRL_FUNC_PTR_F) : TIdC_Int; cdecl; -//typedef EVP_PKEY * (*ENGINE_LOAD_KEY_PTR)(ENGINE *, const char *, -// UI_METHOD *ui_method, void *callback_data); - {$EXTERNALSYM ENGINE_LOAD_KEY_PTR} - ENGINE_LOAD_KEY_PTR = function(Para1 : PENGINE; Para2 : PIdAnsiChar; - ui_method : PUI_METHOD; callback_data : Pointer) : PEVP_PKEY; cdecl; -//typedef int (*ENGINE_SSL_CLIENT_CERT_PTR)(ENGINE *, SSL *ssl, -// STACK_OF(X509_NAME) *ca_dn, X509 **pcert, EVP_PKEY **pkey, -// STACK_OF(X509) **pother, UI_METHOD *ui_method, void *callback_data); - {$EXTERNALSYM ENGINE_SSL_CLIENT_CERT_PTR} - ENGINE_SSL_CLIENT_CERT_PTR = function(Para1 : PENGINE; ssl : PSSL; - ca_dn : PSTACK_OF_X509_NAME; var pcert : PX509; var pkey : PEVP_PKEY; - var pother : PSTACK_OF_X509; ui_method : PUI_METHOD; callback_data : Pointer) : TIdC_Int; cdecl; -//typedef int (*ENGINE_CIPHERS_PTR)(ENGINE *, const EVP_CIPHER **, const int **, int); - {$EXTERNALSYM ENGINE_CIPHERS_PTR} - ENGINE_CIPHERS_PTR = function(para1 : PENGINE; var para2 : PEVP_CIPHER; var para3 : PIdC_Int; para4 : TIdC_Int) : TIdC_Int; cdecl; -//typedef int (*ENGINE_DIGESTS_PTR)(ENGINE *, const EVP_MD **, const int **, int); - {$EXTERNALSYM ENGINE_DIGESTS_PTR} - ENGINE_DIGESTS_PTR = function(para1 : PENGINE; var Para2 : PEVP_MD; var Para3 : PIdC_INT; para4 : TIdC_INT) : TIdC_INT cdecl; -//typedef int (*ENGINE_PKEY_METHS_PTR)(ENGINE *, EVP_PKEY_METHOD **, const int **, int); - {$EXTERNALSYM ENGINE_PKEY_METHS_PTR} - ENGINE_PKEY_METHS_PTR = function(para1 : PENGINE; var Para2 : PEVP_PKEY_METHOD; var Para3 : PIdC_INT; para4 : TIdC_INT) : TIdC_INT cdecl; -//typedef int (*ENGINE_PKEY_ASN1_METHS_PTR)(ENGINE *, EVP_PKEY_ASN1_METHOD **, const int **, int); - {$EXTERNALSYM ENGINE_PKEY_ASN1_METHS_PTR} - ENGINE_PKEY_ASN1_METHS_PTR = function(para1 : PENGINE; var Para2 : PEVP_PKEY_ASN1_METHOD; var Para3 : PIdC_INT; para4 : TIdC_INT) : TIdC_INT cdecl; -{ -/* When compiling an ENGINE entirely as an external shared library, loadable by - * the "dynamic" ENGINE, these types are needed. The 'dynamic_fns' structure - * type provides the calling application's (or library's) error functionality - * and memory management function pointers to the loaded library. These should - * be used/set in the loaded library code so that the loading application's - * 'state' will be used/changed in all operations. The 'static_state' pointer - * allows the loaded library to know if it shares the same static data as the - * calling application (or library), and thus whether these callbacks need to be - * set or not. */ -} -//typedef void *(*dyn_MEM_malloc_cb)(size_t); - {$EXTERNALSYM dyn_MEM_malloc_cb} - dyn_MEM_malloc_cb = function(para1 : size_t) : Pointer; cdecl; -//typedef void *(*dyn_MEM_realloc_cb)(void *, size_t); - {$EXTERNALSYM dyn_MEM_realloc_cb} - dyn_MEM_realloc_cb = function (para1 : Pointer; para2 : size_t): Pointer; cdecl; -//typedef void (*dyn_MEM_free_cb)(void *); - {$EXTERNALSYM dyn_MEM_free_cb} - dyn_MEM_free_cb = procedure (para1 : Pointer); cdecl; - {$EXTERNALSYM dynamic_MEM_fns} - dynamic_MEM_fns = record - malloc_cb : dyn_MEM_malloc_cb; - realloc_cb : dyn_MEM_realloc_cb; - free_cb : dyn_MEM_free_cb; - end; -///* FIXME: Perhaps the memory and locking code (crypto.h) should declare and use -// * these types so we (and any other dependant code) can simplify a bit?? */ -//typedef void (*dyn_lock_locking_cb)(int,int,const char *,int); - {$EXTERNALSYM dyn_lock_locking_cb} - dyn_lock_locking_cb = procedure (para1, para2 : TIdC_INT; para3 : PIdAnsiChar; para4 : TIdC_INT); cdecl; -//typedef int (*dyn_lock_add_lock_cb)(int*,int,int,const char *,int); - {$EXTERNALSYM dyn_lock_add_lock_cb} - dyn_lock_add_lock_cb = function (var para1 : TIdC_INT; para2, para3 : TIdC_INT; para4 : PIdAnsiChar; para5 : TIdC_INT) : TIdC_INT; cdecl; -//typedef struct CRYPTO_dynlock_value *(*dyn_dynlock_create_cb)( -// const char *,int); - {$EXTERNALSYM dyn_dynlock_create_cb} - dyn_dynlock_create_cb = function (para1 : PIdAnsiChar; para2 : TIdC_INT) : PCRYPTO_dynlock_value; cdecl; -//typedef void (*dyn_dynlock_lock_cb)(int,struct CRYPTO_dynlock_value *, -// const char *,int); - {$EXTERNALSYM dyn_dynlock_lock_cb} - dyn_dynlock_lock_cb = procedure (para1 : TIdC_INT; para2 : PCRYPTO_dynlock_value); cdecl; -//typedef void (*dyn_dynlock_destroy_cb)(struct CRYPTO_dynlock_value *, -// const char *,int); - {$EXTERNALSYM dyn_dynlock_destroy_cb} - dyn_dynlock_destroy_cb = procedure(para1 : PCRYPTO_dynlock_value; para2 : PIdAnsiChar; para3 : TIdC_INT); cdecl; -//typedef struct st_dynamic_LOCK_fns { -// dyn_lock_locking_cb lock_locking_cb; -// dyn_lock_add_lock_cb lock_add_lock_cb; -// dyn_dynlock_create_cb dynlock_create_cb; -// dyn_dynlock_lock_cb dynlock_lock_cb; -// dyn_dynlock_destroy_cb dynlock_destroy_cb; -// } dynamic_LOCK_fns; - {$EXTERNALSYM dynamic_LOCK_fns} - dynamic_LOCK_fns = record - lock_locking_cb : dyn_lock_locking_cb; - lock_add_lock_cb : dyn_lock_add_lock_cb; - dynlock_create_cb : dyn_dynlock_create_cb; - dynlock_lock_cb : dyn_dynlock_lock_cb; - dynlock_destroy_cb : dyn_dynlock_destroy_cb; - end; -//* The top-level structure */ - {$EXTERNALSYM dynamic_fns} - dynamic_fns = record - static_state : Pointer; - err_fns : PERR_FNS; - ex_data_fns : PCRYPTO_EX_DATA_IMPL; - mem_fns : dynamic_MEM_fns; - lock_fns : dynamic_LOCK_fns; - end; -// typedef unsigned long (*dynamic_v_check_fn)(unsigned long ossl_version); - {$EXTERNALSYM dynamic_v_check_fn} - dynamic_v_check_fn = function(ossl_version : TIdC_ULONG) : TIdC_ULONG; cdecl; -//typedef int (*dynamic_bind_engine)(ENGINE *e, const char *id, -// const dynamic_fns *fns); - {$EXTERNALSYM dynamic_bind_engine} - dynamic_bind_engine = function(e : PENGINE; id : PIdAnsiChar; fns : dynamic_fns) : TIdC_INT; cdecl; - {$ENDIF} - //ecdsa.h - {$IFNDEF OPENSSL_NO_ECDSA} - {$EXTERNALSYM ECDSA_SIG} - ECDSA_SIG = record - r : PBIGNUM; - s : PBIGNUM; - end; - {$EXTERNALSYM PECDSA_SIG} - PECDSA_SIG = ^ECDSA_SIG; - {$EXTERNALSYM PPECDSA_SIG} - PPECDSA_SIG = ^PECDSA_SIG; -// ECDH_METHOD = record - //defined interally, not through the header so use function to access members - // end; - {$EXTERNALSYM PECDH_METHOD} - PECDH_METHOD = Pointer;//^ECDH_METHOD; - {$EXTERNALSYM PPECDH_METHOD} - PPECDH_METHOD = ^PECDH_METHOD; - {$ENDIF} - //ecdh.h - //aes.h - {$IFNDEF OPENSSL_NO_AES} - {$IFDEF OPENSSL_FIPS} - {$EXTERNALSYM FIPS_AES_SIZE_T} - FIPS_AES_SIZE_T = TIdC_INT; - {$ENDIF} - //OpenSSL Developer's note - // This should be a hidden type, but EVP requires that the size be known - {$EXTERNALSYM AES_KEY} - AES_KEY = record - rd_key: array[0..(4 *(AES_MAXNR + 1)-1)] of TIdC_UINT; - rounds : TIdC_INT; - end; - {$EXTERNALSYM PAES_KEY} - PAES_KEY = ^AES_KEY; - {$EXTERNALSYM PPAES_KEY} - PPAES_KEY = ^PAES_KEY; - {$ENDIF} - //seed.h - {$IFNDEF OPENSSL_NO_SEED} - {$EXTERNALSYM SEED_KEY_SCHEDULE} - SEED_KEY_SCHEDULE = record - {$IFDEF SEED_LONG} - data : array [0..(32 -1)] of TIdC_ULONG ; - {$ELSE} - data : array[0..(32-1)] of TIdC_UINT; - {$ENDIF} - end; - {$EXTERNALSYM PSEED_KEY_SCHEDULE} - PSEED_KEY_SCHEDULE = ^SEED_KEY_SCHEDULE; - {$ENDIF} - //lhash.h - {$EXTERNALSYM PLHASH_NODE} - PLHASH_NODE = ^LHASH_NODE; - {$EXTERNALSYM PPLHASH_NODE} - PPLHASH_NODE = ^PLHASH_NODE; - {$EXTERNALSYM LHASH_NODE} - LHASH_NODE = record - data : Pointer; - next : PLHASH_NODE; - {$IFNDEF OPENSSL_NO_HASH_COMP} - hash : TIdC_ULONG; - {$ENDIF} - end; - {$EXTERNALSYM LHASH_COMP_FN_TYPE} - LHASH_COMP_FN_TYPE = function (const p1,p2 : Pointer) : TIdC_INT; cdecl; - {$EXTERNALSYM PLHASH_COMP_FN_TYPE} - PLHASH_COMP_FN_TYPE = ^LHASH_COMP_FN_TYPE; - {$EXTERNALSYM LHASH_HASH_FN_TYPE} - LHASH_HASH_FN_TYPE = function(const p1 : Pointer) : TIdC_ULONG; cdecl; - {$EXTERNALSYM LHASH_DOALL_FN_TYPE} - LHASH_DOALL_FN_TYPE = procedure(p1 : Pointer); cdecl; - {$EXTERNALSYM LHASH_DOALL_ARG_FN_TYPE} - LHASH_DOALL_ARG_FN_TYPE = procedure(p1, p2 : Pointer); cdecl; - {$EXTERNALSYM LHASH} - LHASH = record - b : PPLHASH_NODE; - comp : LHASH_COMP_FN_TYPE; - hash : LHASH_HASH_FN_TYPE; - num_nodes : TIdC_UINT; - num_alloc_nodes : TIdC_UINT; - p : TIdC_UINT; - pmax : TIdC_UINT; - up_load : TIdC_ULONG; // load times 256 - down_load : TIdC_ULONG; // load times 256 - num_items : TIdC_ULONG; - num_expands : TIdC_ULONG; - num_expand_reallocs : TIdC_ULONG; - num_contracts : TIdC_ULONG; - num_contract_reallocs : TIdC_ULONG; - num_hash_calls : TIdC_ULONG; - num_comp_calls : TIdC_ULONG; - num_insert : TIdC_ULONG; - num_replace : TIdC_ULONG; - num_delete : TIdC_ULONG; - num_no_delete : TIdC_ULONG; - num_retrieve : TIdC_ULONG; - num_retrieve_miss : TIdC_ULONG; - num_hash_comps : TIdC_ULONG; - error : TIdC_INT; - end; - {$EXTERNALSYM PLHASH} - PLHASH = ^LHASH; - //conf.h - {$EXTERNALSYM CONF_VALUE} - CONF_VALUE = record - section : PIdAnsiChar; - name : PIdAnsiChar; - value : PIdAnsiChar; - end; - {$EXTERNALSYM PCONF_VALUE} - PCONF_VALUE = ^CONF_VALUE; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_CONF_VALUE} - STACK_OF_CONF_VALUE = record - stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_CONF_VALUE} - PSTACK_OF_CONF_VALUE = ^STACK_OF_CONF_VALUE; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_CONF_VALUE} - PSTACK_OF_CONF_VALUE = PSTACK; - {$ENDIF} - {$EXTERNALSYM BIT_STRING_BITNAME} - //* This is used to contain a list of bit names */ - BIT_STRING_BITNAME = record - bitnum : TIdC_INT; - lname : PIdAnsiChar; - sname : PIdAnsiChar; - end; - {$EXTERNALSYM PBIT_STRING_BITNAME} - PBIT_STRING_BITNAME = ^BIT_STRING_BITNAME; - {$EXTERNALSYM PPBIT_STRING_BITNAME} - PPBIT_STRING_BITNAME = ^PBIT_STRING_BITNAME; - {$EXTERNALSYM buf_mem_st} - buf_mem_st = record - length : TIdC_INT; // current number of bytes - data : PIdAnsiChar; - max: TIdC_INT; // size of buffer - end; - {$EXTERNALSYM BUF_MEM} - BUF_MEM = buf_mem_st; - {$EXTERNALSYM PBUF_MEM} - PBUF_MEM = ^BUF_MEM; - {$EXTERNALSYM PPBUF_MEM} - PPBUF_MEM = ^PBUF_MEM; - {$EXTERNALSYM PFILE} - PFILE = Pointer; - //asn1t.h - {$EXTERNALSYM ASN1_TEMPLATE} - ASN1_TEMPLATE = record - flags : TIdC_ULONG; // Various flags - tag : TIdC_LONG; // tag, not used if no tagging - offset : TIdC_ULONG; // Offset of this field in structure - {$IFNDEF NO_ASN1_FIELD_NAMES} - field_name : PIdAnsiChar; // Field name - {$ENDIF} - item : PASN1_ITEM_EXP; // Relevant ASN1_ITEM or ASN1_ADB - end; - {$EXTERNALSYM PASN1_TEMPLATE} - PASN1_TEMPLATE = ^ASN1_TEMPLATE; - {$EXTERNALSYM ASN1_ITEM} - ASN1_ITEM = record - itype : Char; // The item type, primitive, SEQUENCE, CHOICE or extern - utype : TIdC_LONG; // underlying type - templates : PASN1_TEMPLATE; // If SEQUENCE or CHOICE this contains the contents - tcount : TIdC_LONG; // Number of templates if SEQUENCE or CHOICE - funcs : Pointer; // functions that handle this type - size : TIdC_LONG; // Structure size (usually) - {$IFNDEF NO_ASN1_FIELD_NAMES} - sname : PIdAnsiChar; // Structure name - {$ENDIF} - end; - {$EXTERNALSYM PASN1_PCTX} - PASN1_PCTX = Pointer; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_ASN1_ADB_TABLE} - STACK_OF_ASN1_ADB_TABLE = record - stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_ASN1_ADB_TABLE} - PSTACK_OF_ASN1_ADB_TABLE = ^STACK_OF_ASN1_ADB_TABLE; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_ASN1_ADB_TABLE} - PSTACK_OF_ASN1_ADB_TABLE = PSTACK; - {$ENDIF} - {$EXTERNALSYM PPSTACK_OF_ASN1_ADB_TABLE} - PPSTACK_OF_ASN1_ADB_TABLE = ^PSTACK_OF_ASN1_ADB_TABLE; - {$EXTERNALSYM PASN1_ADB_TABLE} - PASN1_ADB_TABLE = ^ASN1_ADB_TABLE; - {$EXTERNALSYM PASN1_ADB} - PASN1_ADB = ^ASN1_ADB; - {$EXTERNALSYM ASN1_ADB} - ASN1_ADB = record - flags : TIdC_ULONG; // Various flags - offset : TIdC_ULONG; // Offset of selector field - app_items : PPSTACK_OF_ASN1_ADB_TABLE; // Application defined items - tbl : PASN1_ADB_TABLE; // Table of possible types - tblcount : TIdC_LONG; // Number of entries in tbl - default_tt : PASN1_TEMPLATE; // Type to use if no match - null_tt : PASN1_TEMPLATE; // Type to use if selector is NULL - end; - {$EXTERNALSYM ASN1_ADB_TABLE} - ASN1_ADB_TABLE = record - flags : TIdC_LONG; // Various flags - offset : TIdC_LONG; // Offset of selector field - app_items : PPSTACK_OF_ASN1_ADB_TABLE; // Application defined items - tbl : PASN1_ADB_TABLE; // Table of possible types - tblcount : TIdC_LONG; // Number of entries in tbl - default_tt : PASN1_TEMPLATE; // Type to use if no match - null_tt : PASN1_TEMPLATE; // Type to use if selector is NULL - end; - {$EXTERNALSYM PASN1_TLC} - PASN1_TLC = ^ASN1_TLC; - {$EXTERNALSYM ASN1_TLC} - ASN1_TLC = record - valid : Byte; //* Values below are valid */ - ret : TIdC_INT; //* return value */ - plen : TIdC_LONG; //* length */ - ptag : TIdC_INT; //* class value */ - pclass : TIdC_INT; //* class value */ - hdrlen : TIdC_INT; //* header length */ - end; - ///* Typedefs for ASN1 function pointers */ - {$EXTERNALSYM ASN1_new_func} - ASN1_new_func = function : PASN1_VALUE; cdecl; - {$EXTERNALSYM ASN1_free_func} - ASN1_free_func = procedure (a : PASN1_VALUE); cdecl; -// typedef ASN1_VALUE * ASN1_d2i_func(ASN1_VALUE **a, const unsigned char ** in, long length); - {$EXTERNALSYM ASN1_d2i_func} - ASN1_d2i_func = function (a : PASN1_VALUE; _in : PPByte; length : TIdC_LONG ) : PASN1_VALUE; cdecl; - // typedef int ASN1_i2d_func(ASN1_VALUE * a, unsigned char **in); - {$EXTERNALSYM ASN1_i2d_func} - ASN1_i2d_func = function (a : PASN1_VALUE; _in : PPByte) : TIdC_INT; cdecl; -// typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, -// int tag, int aclass, char opt, ASN1_TLC *ctx); - {$EXTERNALSYM ASN1_ex_d2i} - ASN1_ex_d2i = function(pval : PPASN1_VALUE; _in : PPByte; len : TIdC_LONG; - it : PASN1_ITEM; tag, aclass : TIdC_INT; opt : Byte; - ctx : PASN1_TLC) : TIdC_INT; cdecl; -//typedef int ASN1_ex_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it, int tag, int aclass); - {$EXTERNALSYM ASN1_ex_i2d} - ASN1_ex_i2d = function(pval : PPASN1_VALUE; _out : PPByte; it : PASN1_ITEM; tag, aclass : TIdC_INT) : TIdC_INT; cdecl; -//typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it); - {$EXTERNALSYM ASN1_ex_new_func} - ASN1_ex_new_func = function(pval : PPASN1_VALUE; it : PASN1_ITEM) : TIdC_INT; cdecl; -//typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it); - {$EXTERNALSYM ASN1_ex_free_func} - ASN1_ex_free_func = procedure( pval : PPASN1_VALUE; it : PASN1_ITEM); cdecl; -//typedef int ASN1_primitive_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it); - {$EXTERNALSYM ASN1_primitive_i2c} - ASN1_primitive_i2c = function (pval : PPASN1_VALUE; cont : PByte; putype : PIdC_INT; it : PASN1_ITEM ) : TIdC_INT; cdecl; -//typedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it); - {$EXTERNALSYM ASN1_primitive_c2i} - ASN1_primitive_c2i = function (pval : PPASN1_VALUE; cont : PByte; len, utype : TIdC_INT; free_cont : PByte; it: PASN1_ITEM) : TIdC_INT; cdecl; - ///* end typedefs - {$EXTERNALSYM ASN1_COMPAT_FUNCS} - ASN1_COMPAT_FUNCS = record - asn1_new : ASN1_new_func; - asn1_free : ASN1_free_func; - asn1_d2i : ASN1_d2i_func; - asn1_i2d : ASN1_i2d_func; - end; - {$EXTERNALSYM PASN1_COMPAT_FUNCS} - PASN1_COMPAT_FUNCS = ^ASN1_COMPAT_FUNCS; - {$EXTERNALSYM ASN1_EXTERN_FUNCS} - ASN1_EXTERN_FUNCS = record - app_data : Pointer; - asn1_ex_new : ASN1_ex_new_func; // ASN1_ex_new_func *asn1_ex_new; - asn1_ex_free : ASN1_ex_free_func; // ASN1_ex_free_func *asn1_ex_free; - asn1_ex_clear: ASN1_ex_free_func;// ASN1_ex_free_func *asn1_ex_clear; - asn1_ex_d2i : ASN1_ex_d2i;// ASN1_ex_d2i *asn1_ex_d2i; - asn1_ex_i2d : ASN1_ex_i2d; // ASN1_ex_i2d *asn1_ex_i2d; - end; - {$EXTERNALSYM PASN1_EXTERN_FUNCS} - PASN1_EXTERN_FUNCS = ^ASN1_EXTERN_FUNCS; - {$EXTERNALSYM ASN1_PRIMITIVE_FUNCS} - ASN1_PRIMITIVE_FUNCS = record - app_data : Pointer; - flags : TIdC_ULONG; -// ASN1_ex_new_func *prim_new; - prim_new : ASN1_ex_new_func; -// ASN1_ex_free_func *prim_free; - prim_free : ASN1_ex_free_func; -// ASN1_ex_free_func *prim_clear; - prim_clear : ASN1_ex_free_func; -// ASN1_primitive_c2i *prim_c2i; - prim_c2i : ASN1_primitive_c2i; -// ASN1_primitive_i2c *prim_i2c; - prim_i2c : ASN1_primitive_i2c; - end; - {$EXTERNALSYM PASN1_PRIMITIVE_FUNCS} - PASN1_PRIMITIVE_FUNCS = ^ASN1_PRIMITIVE_FUNCS; -//typedef int ASN1_aux_cb(int operation, ASN1_VALUE **in, const ASN1_ITEM *it); - {$EXTERNALSYM ASN1_aux_cb} - ASN1_aux_cb = function (operation : TIdC_INT; _in : PPASN1_VALUE; it : PASN1_ITEM) : TIdC_INT; cdecl; - {$EXTERNALSYM ASN1_AUX} - ASN1_AUX = record - app_data : Pointer; - flags : TIdC_INT; - ref_offset : TIdC_INT; //* Offset of reference value */ - ref_lock : TIdC_INT; //* Lock type to use */ - asn1_cb : ASN1_aux_cb; //ASN1_aux_cb *asn1_cb; - enc_offset : TIdC_INT; //* Offset of ASN1_ENCODING structure */ - end; - {$EXTERNALSYM PASN1_AUX} - PASN1_AUX = ^ASN1_AUX; - //hmac.h - //This has to come after the EVP definitions - {$IFNDEF OPENSSL_NO_HMAC} - {$EXTERNALSYM HMAC_CTX} - HMAC_CTX = record - md : PEVP_MD; - md_ctx : EVP_MD_CTX; - i_ctx : EVP_MD_CTX; - o_ctx : EVP_MD_CTX; - key_length : TIdC_UINT; - key : array[0..(HMAC_MAX_MD_CBLOCK - 1)] of byte; - end; - {$EXTERNALSYM PHMAC_CTX} - PHMAC_CTX = ^HMAC_CTX; - {$EXTERNALSYM PPHMAC_CTX} - PPHMAC_CTX = ^PHMAC_CTX; - {$ENDIF} - // X509_POLICY_DATA = record - // end; - {$EXTERNALSYM PX509_POLICY_DATA} - PX509_POLICY_DATA = Pointer;//^X509_POLICY_DATA; - // X509_POLICY_REF = record - // end; - {$EXTERNALSYM PX509_POLICY_REF} - PX509_POLICY_REF = Pointer;//^X509_POLICY_REF; - // X509_POLICY_CACHE = record - // end; - {$EXTERNALSYM PX509_POLICY_CACHE} - PX509_POLICY_CACHE = Pointer; //^X509_POLICY_CACHE; - //x509v3.h - {$EXTERNALSYM PPX509_NAME_ENTRY} - PPX509_NAME_ENTRY = ^PX509_NAME_ENTRY; - //forward declarations - {$EXTERNALSYM PV3_EXT_METHOD} - PV3_EXT_METHOD = ^V3_EXT_METHOD; - {$EXTERNALSYM PV3_EXT_CTX} - PV3_EXT_CTX = ^V3_EXT_CTX; - // - {$EXTERNALSYM X509V3_EXT_NEW} - X509V3_EXT_NEW = function: Pointer; cdecl; - {$EXTERNALSYM X509V3_EXT_FREE} - X509V3_EXT_FREE = procedure(_para1 : Pointer); cdecl; - {$EXTERNALSYM X509V3_EXT_D2I} - X509V3_EXT_D2I = function(_para1 : Pointer; const _para2 : PPIdAnsiChar; para3 : TIdC_LONG): Pointer; cdecl; - {$EXTERNALSYM X509V3_EXT_I2D} - X509V3_EXT_I2D = function (_para1 : Pointer; _para2 : PPIdAnsiChar) : TIdC_INT; cdecl; - {$EXTERNALSYM X509V3_EXT_I2V} - X509V3_EXT_I2V = function (method : PV3_EXT_METHOD; ext : Pointer; extlist : PSTACK_OF_CONF_VALUE) : PSTACK_OF_CONF_VALUE; cdecl; - {$EXTERNALSYM X509V3_EXT_V2I} - X509V3_EXT_V2I = function (method : Pv3_ext_method; ctx : PV3_EXT_CTX; values : PSTACK_OF_CONF_VALUE): Pointer; cdecl; - {$EXTERNALSYM X509V3_EXT_I2S} - X509V3_EXT_I2S = function (method : Pv3_ext_method; ext : Pointer) : PIdAnsiChar; cdecl; - {$EXTERNALSYM X509V3_EXT_S2I} - X509V3_EXT_S2I = function (method : Pv3_ext_method; ctx : Pv3_ext_ctx; const str : PIdAnsiChar): Pointer; cdecl; - {$EXTERNALSYM X509V3_EXT_I2R} - X509V3_EXT_I2R = function (method : Pv3_ext_method; ext : Pointer; _out : PBIO; indent : TIdC_INT) : TIdC_INT; cdecl; - {$EXTERNALSYM X509V3_EXT_R2I} - X509V3_EXT_R2I = function (method : Pv3_ext_method; ctx : Pv3_ext_ctx; const str : PIdAnsiChar): Pointer; cdecl; - {$EXTERNALSYM V3_EXT_METHOD} - V3_EXT_METHOD = record - ext_nid : TIdC_INT; - ext_flags : TIdC_INT; - // If this is set the following four fields are ignored - // I'm not sure what the ASN1_ITEM_EXP really is. The headers don't make it clear, JPM. - it : PASN1_ITEM_EXP; - // Old style ASN1 calls - ext_new : X509V3_EXT_NEW; - ext_free : X509V3_EXT_FREE; - d2i : X509V3_EXT_D2I; - i2d : X509V3_EXT_I2D; - // The following pair is used for string extensions - i2s : X509V3_EXT_I2S; - s2i : X509V3_EXT_S2I; - // The following pair is used for multi-valued extensions - i2v : X509V3_EXT_I2V; - v2i : X509V3_EXT_V2I; - // The following are used for raw extensions - i2r : X509V3_EXT_I2R; - r2i : X509V3_EXT_R2I; - usr_data : Pointer; // Any extension specific data - end; - {$EXTERNALSYM X509V3_EXT_METHOD} - X509V3_EXT_METHOD = V3_EXT_METHOD; - {$EXTERNALSYM X509V3_CONF_METHOD} - X509V3_CONF_METHOD = record - get_string : function(db : Pointer; section, value : PIdAnsiChar) : PIdAnsiChar; cdecl; - get_section : function(db : Pointer; section : PIdAnsiChar) : PSTACK_OF_CONF_VALUE; cdecl; - free_string : procedure(db : Pointer; _string : PIdAnsiChar); cdecl; - free_section : procedure (db : Pointer; section : PSTACK_OF_CONF_VALUE); - end; - {$EXTERNALSYM V3_EXT_CTX} - V3_EXT_CTX = record - flags : TIdC_INT; - issuer_cert : PX509; - subject_cert : PX509; - subject_req : PX509_REQ; - crl : PX509_CRL; - db_meth : X509V3_CONF_METHOD; - db : Pointer; - // OpenSSL developer's message from header - // Maybe more here - end; - {$EXTERNALSYM ENUMERATED_NAMES} - ENUMERATED_NAMES = BIT_STRING_BITNAME; - {$EXTERNALSYM BASIC_CONSTRAINTS} - BASIC_CONSTRAINTS = record - ca : TIdC_INT; - pathlen: PASN1_INTEGER; - end; - {$EXTERNALSYM PBASIC_CONSTRAINTS} - PBASIC_CONSTRAINTS = ^BASIC_CONSTRAINTS; - {$EXTERNALSYM PKEY_USAGE_PERIOD} - PKEY_USAGE_PERIOD = record - notBefore : ASN1_GENERALIZEDTIME; - notAfter : PASN1_GENERALIZEDTIME; - end; - {$EXTERNALSYM PPKEY_USAGE_PERIOD} - PPKEY_USAGE_PERIOD = ^PKEY_USAGE_PERIOD; - {$EXTERNALSYM OTHERNAME} - OTHERNAME = record - type_id : PASN1_OBJECT; - value : PASN1_TYPE; - end; - {$EXTERNALSYM POTHERNAME} - POTHERNAME = ^OTHERNAME; - {$EXTERNALSYM EDIPARTYNAME} - EDIPARTYNAME = record - nameAssigner : PASN1_STRING; - partyName : PASN1_STRING; - end; - {$EXTERNALSYM PEDIPARTYNAME} - PEDIPARTYNAME = ^EDIPARTYNAME; - {$EXTERNALSYM GENERAL_NAME_union} - GENERAL_NAME_union = record - case byte of - 0 : (ptr : PIdAnsiChar); - 1 : (otherName : POTHERNAME); // otherName - 2 : (rfc822Name : PASN1_IA5STRING); - 3 : (dNSName : PASN1_IA5STRING); - 4 : (x400Address : PASN1_TYPE); - 5 : (directoryName : PX509_NAME); - 6 : (ediPartyName : PEDIPARTYNAME); - 7 : (uniformResourceIdentifier : PASN1_IA5STRING); - 8 : (iPAddress : PASN1_OCTET_STRING); - 9 : (registeredID : PASN1_OBJECT); - // Old names - 10 : (ip : PASN1_OCTET_STRING); // iPAddress - 11 : (dirn : PX509_NAME); // dirn - 12 : (ia5 : PASN1_IA5STRING); // rfc822Name, dNSName, uniformResourceIdentifier - 13 : (rid : ASN1_OBJECT); // registeredID - 14 : (other : PASN1_TYPE); // x400Address - end; - {$EXTERNALSYM GENERAL_NAME} - GENERAL_NAME = record - _type : TIdC_INT; - d : GENERAL_NAME_union; - end; - {$EXTERNALSYM PGENERAL_NAME} - PGENERAL_NAME = ^GENERAL_NAME; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_GENERAL_NAME} - STACK_OF_GENERAL_NAME = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_GENERAL_NAME} - PSTACK_OF_GENERAL_NAME = ^STACK_OF_GENERAL_NAME; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_GENERAL_NAME} - PSTACK_OF_GENERAL_NAME = PSTACK; - {$ENDIF} - {$EXTERNALSYM PGENERAL_NAMES} - PGENERAL_NAMES = PSTACK_OF_GENERAL_NAME; - {$EXTERNALSYM ACCESS_DESCRIPTION} - ACCESS_DESCRIPTION = record - method : PASN1_OBJECT; - location : PGENERAL_NAME; - end; - {$EXTERNALSYM PACCESS_DESCRIPTION} - PACCESS_DESCRIPTION = ^ACCESS_DESCRIPTION; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_ACCESS_DESCRIPTION} - STACK_OF_ACCESS_DESCRIPTION = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_ACCESS_DESCRIPTION} - PSTACK_OF_ACCESS_DESCRIPTION = ^STACK_OF_ACCESS_DESCRIPTION; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_ACCESS_DESCRIPTION} - PSTACK_OF_ACCESS_DESCRIPTION = PSTACK; - {$ENDIF} - {$EXTERNALSYM PAUTHORITY_INFO_ACCESS} - PAUTHORITY_INFO_ACCESS = PSTACK_OF_ACCESS_DESCRIPTION; - {$EXTERNALSYM PEXTENDED_KEY_USAGE} - PEXTENDED_KEY_USAGE = PSTACK_OF_ASN1_OBJECT; - {$EXTERNALSYM DIST_POINT_NAME_union} - DIST_POINT_NAME_union = record - case byte of - 0 : (fullname : PGENERAL_NAMES); - 1 : (relativename : PSTACK_OF_X509_NAME_ENTRY); - end; - {$EXTERNALSYM DIST_POINT_NAME} - DIST_POINT_NAME = record - _type : TIdC_INT; - name : DIST_POINT_NAME_union; - end; - {$EXTERNALSYM PDIST_POINT_NAME} - PDIST_POINT_NAME = ^DIST_POINT_NAME; - {$EXTERNALSYM DIST_POINT} - DIST_POINT = record - distpoint : PDIST_POINT_NAME; - reasons : PASN1_BIT_STRING; - CRLissuer : PGENERAL_NAMES; - dp_reasons : TIdC_INT; - end; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_DIST_POINT} - STACK_OF_DIST_POINT = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_DIST_POINT} - PSTACK_OF_DIST_POINT = ^STACK_OF_DIST_POINT; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_DIST_POINT} - PSTACK_OF_DIST_POINT = PSTACK; - {$ENDIF} - {$EXTERNALSYM AUTHORITY_KEYID} - AUTHORITY_KEYID = record - keyid : PASN1_OCTET_STRING; - issuer : PGENERAL_NAMES; - serial : PASN1_INTEGER; - end; - {$EXTERNALSYM PAUTHORITY_KEYID} - PAUTHORITY_KEYID = ^AUTHORITY_KEYID; - // Strong extranet structures - {$EXTERNALSYM SXNETID} - SXNETID = record - zone : PASN1_INTEGER; - user : PASN1_OCTET_STRING; - end; - {$EXTERNALSYM PSXNETID} - PSXNETID = ^SXNETID; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_SXNETID} - STACK_OF_SXNETID = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_SXNETID} - PSTACK_OF_SXNETID = ^STACK_OF_SXNETID; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_SXNETID} - PSTACK_OF_SXNETID = PSTACK; - {$ENDIF} - {$EXTERNALSYM SXNET} - SXNET = record - version : PASN1_INTEGER; - ids : PSTACK_OF_SXNETID; - end; - {$EXTERNALSYM PSXNET} - PSXNET = ^SXNET; - {$EXTERNALSYM NOTICEREF} - NOTICEREF = record - organization : PASN1_STRING; - noticenos : PSTACK_OF_ASN1_INTEGER; - end; - {$EXTERNALSYM PNOTICEREF} - PNOTICEREF = ^NOTICEREF; - {$EXTERNALSYM USERNOTICE} - USERNOTICE = record - noticeref : PNOTICEREF; - exptext : PASN1_STRING; - end; - {$EXTERNALSYM PUSERNOTICE} - PUSERNOTICE = ^USERNOTICE; - {$EXTERNALSYM POLICYQUALINFO_union} - POLICYQUALINFO_union = record - case byte of - 0 : (cpsuri : PASN1_IA5STRING); - 1 : (usernotice : PUSERNOTICE); - 2 : (other : PASN1_TYPE); - end; - {$EXTERNALSYM POLICYQUALINFO} - POLICYQUALINFO = record - pqualid : PASN1_OBJECT; - d : POLICYQUALINFO_union; - end; - {$EXTERNALSYM PPOLICYQUALINFO} - PPOLICYQUALINFO = ^POLICYQUALINFO; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_POLICYINFO} - STACK_OF_POLICYINFO = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_POLICYINFO} - PSTACK_OF_POLICYINFO = ^STACK_OF_POLICYINFO; - {$ELSE} - {$EXTERNALSYM PSTACK_OF_POLICYINFO} - PSTACK_OF_POLICYINFO = PSTACK; - {$ENDIF} - {$EXTERNALSYM POLICYINFO} - POLICYINFO = record - policyid : PASN1_OBJECT; - qualifiers : PSTACK_OF_POLICYQUALINFO; - end; - {$EXTERNALSYM CERTIFICATEPOLICIES} - CERTIFICATEPOLICIES = PSTACK_OF_POLICYINFO; - //typedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES; - {$EXTERNALSYM POLICY_MAPPING} - POLICY_MAPPING = record - issuerDomainPolicy : PASN1_OBJECT; - subjectDomainPolicy : PASN1_OBJECT; - end; - {$EXTERNALSYM PPOLICY_MAPPING} - PPOLICY_MAPPING = ^POLICY_MAPPING; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_POLICY_MAPPING} - STACK_OF_POLICY_MAPPING = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_POLICY_MAPPING} - PSTACK_OF_POLICY_MAPPING = ^STACK_OF_POLICY_MAPPING; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_POLICY_MAPPING} - PSTACK_OF_POLICY_MAPPING = PSTACK; - {$ENDIF} - {$EXTERNALSYM PPSTACK_OF_POLICY_MAPPING} - PPSTACK_OF_POLICY_MAPPING = ^PSTACK_OF_POLICY_MAPPING; - {$EXTERNALSYM GENERAL_SUBTREE} - GENERAL_SUBTREE = record - base : PGENERAL_NAME; - minimum : PASN1_INTEGER; - maximum : PASN1_INTEGER; - end; - {$EXTERNALSYM PGENERAL_SUBTREE} - PGENERAL_SUBTREE = ^GENERAL_SUBTREE; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_GENERAL_SUBTREE} - STACK_OF_GENERAL_SUBTREE = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_GENERAL_SUBTREE} - PSTACK_OF_GENERAL_SUBTREE = ^STACK_OF_GENERAL_SUBTREE; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_GENERAL_SUBTREE} - PSTACK_OF_GENERAL_SUBTREE = PSTACK; - {$ENDIF} - {$EXTERNALSYM NAME_CONSTRAINTS} - NAME_CONSTRAINTS = record - permittedSubtrees : PSTACK_OF_GENERAL_SUBTREE; - excludedSubtrees : PSTACK_OF_GENERAL_SUBTREE; - end; - {$EXTERNALSYM PNAME_CONSTRAINTS} - PNAME_CONSTRAINTS = ^NAME_CONSTRAINTS; - {$EXTERNALSYM POLICY_CONSTRAINTS} - POLICY_CONSTRAINTS = record - requireExplicitPolicy : PASN1_INTEGER; - inhibitPolicyMapping : ASN1_INTEGER; - end; - {$EXTERNALSYM PPOLICY_CONSTRAINTS} - PPOLICY_CONSTRAINTS = ^POLICY_CONSTRAINTS; - // Proxy certificate structures, see RFC 3820 - {$EXTERNALSYM PROXY_POLICY} - PROXY_POLICY = record - policyLanguage : PASN1_OBJECT; - policy : ASN1_OCTET_STRING; - end; - {$EXTERNALSYM PPROXY_POLICY} - PPROXY_POLICY = ^PROXY_POLICY; - {$EXTERNALSYM PROXY_CERT_INFO_EXTENSION} - PROXY_CERT_INFO_EXTENSION = record - pcPathLengthConstraint : PASN1_INTEGER; - proxyPolicy : PPROXY_POLICY; - end; - {$EXTERNALSYM ISSUING_DIST_POINT} - ISSUING_DIST_POINT = record - distpoint : PDIST_POINT_NAME; - onlyuser : TIdC_INT; - onlyCA : TIdC_INT; - onlysomereasons : PASN1_BIT_STRING; - indirectCRL : TIdC_INT; - onlyattr : TIdC_INT; - end; - {$IFDEF DEBUG_SAFESTACK} - //These are cut and paste but the duplication is for type checking. - {$EXTERNALSYM STACK_OF_CMS_SignerInfo} - STACK_OF_CMS_SignerInfo = record - _stack: stack; - end; - {$EXTERNALSYM STACK_OF_GENERAL_NAMES} - STACK_OF_GENERAL_NAMES = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_CMS_SignerInfo} - PSTACK_OF_CMS_SignerInfo = ^STACK_OF_CMS_SignerInfo; - {$EXTERNALSYM PSTACK_OF_GENERAL_NAMES} - PSTACK_OF_GENERAL_NAMES = ^STACK_OF_GENERAL_NAMES; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_CMS_SignerInfo} - PSTACK_OF_CMS_SignerInfo = PSTACK; - {$EXTERNALSYM PSTACK_OF_GENERAL_NAMES} - PSTACK_OF_GENERAL_NAMES = PSTACK; - {$ENDIF} - {.$ENDIF} - {$EXTERNALSYM PISSUING_DIST_POINT} - PISSUING_DIST_POINT = ^ISSUING_DIST_POINT; - {$EXTERNALSYM PPROXY_CERT_INFO_EXTENSION} - PPROXY_CERT_INFO_EXTENSION = ^PROXY_CERT_INFO_EXTENSION; - {$EXTERNALSYM PX509_PURPOSE} - PX509_PURPOSE = ^X509_PURPOSE; - {$EXTERNALSYM X509_PURPOSE_check_purpose} - X509_PURPOSE_check_purpose = function(const _para1 : Px509_purpose; const _para2 : PX509; - para3 : TIdC_INT) : TIdC_INT; cdecl; - {$EXTERNALSYM X509_PURPOSE} - X509_PURPOSE = record - purpose : TIdC_INT; - trust : TIdC_INT; // Default trust ID - flags : TIdC_INT; - check_purpose : X509_PURPOSE_check_purpose; - name : PIdAnsiChar; - sname : PIdAnsiChar; - usr_data : Pointer; - end; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_PURPOSE} - STACK_OF_X509_PURPOSE = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_X509_PURPOSE} - PSTACK_OF_X509_PURPOSE = ^STACK_OF_X509_PURPOSE; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509_PURPOSE} - PSTACK_OF_X509_PURPOSE = PSTACK; - {$ENDIF} - {$IFNDEF OPENSSL_NO_RFC3779} - {$EXTERNALSYM ASRange} - ASRange = record - min, max : PASN1_INTEGER; - end; - {$EXTERNALSYM PASRange} - PASRange = ^ASRange; - {$EXTERNALSYM ASIdOrRange_union} - ASIdOrRange_union = record - case byte of - ASIdOrRange_id : (id : PASN1_INTEGER); - ASIdOrRange_range : (range : PASRange); - end; - {$EXTERNALSYM ASIdOrRange} - ASIdOrRange = record - _type : TIdC_INT; - u : ASIdOrRange_union; - end; - {$EXTERNALSYM PASIdOrRange} - PASIdOrRange = ^ASIdOrRange; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_ASIdOrRange} - STACK_OF_ASIdOrRange = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_ASIdOrRange} - PSTACK_OF_ASIdOrRange = ^STACK_OF_ASIdOrRange; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_ASIdOrRange} - PSTACK_OF_ASIdOrRange = PSTACK; - {$ENDIF} - {$EXTERNALSYM PASIdOrRanges} - PASIdOrRanges = PSTACK_OF_ASIdOrRange; - {$EXTERNALSYM ASIdentifierChoice_union} - ASIdentifierChoice_union = record - case byte of - ASIdentifierChoice_inherit : (inherit : PASN1_NULL); - ASIdentifierChoice_asIdsOrRanges : (asIdsOrRanges : PASIdOrRanges); - end; - {$EXTERNALSYM ASIdentifierChoice} - ASIdentifierChoice = record - _type : TIdC_INT; - u : ASIdentifierChoice_union; - end; - {$EXTERNALSYM PASIdentifierChoice} - PASIdentifierChoice = ^ASIdentifierChoice; - {$EXTERNALSYM ASIdentifiers} - ASIdentifiers = record - asnum : PASIdentifierChoice; - rdi : PASIdentifierChoice; - end; - {$EXTERNALSYM PASIdentifiers} - PASIdentifiers = ^ASIdentifiers; - {$EXTERNALSYM IPAddressRange} - IPAddressRange = record - min, max : PASN1_BIT_STRING; - end; - {$EXTERNALSYM PIPAddressRange} - PIPAddressRange = ^IPAddressRange; - {$EXTERNALSYM IPAddressOrRange_union} - IPAddressOrRange_union = record - case byte of - IPAddressOrRange_addressPrefix : (addressPrefix : PASN1_BIT_STRING); - IPAddressOrRange_addressRange : (addressRange : PIPAddressRange); - end; - {$EXTERNALSYM IPAddressOrRange} - IPAddressOrRange = record - _type : TIdC_INT; - u : IPAddressOrRange_union; - end; - {$EXTERNALSYM PIPAddressOrRange} - PIPAddressOrRange = ^IPAddressOrRange; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_IPAddressOrRange} - STACK_OF_IPAddressOrRange = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_IPAddressOrRange} - PSTACK_OF_IPAddressOrRange = ^STACK_OF_IPAddressOrRange; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_IPAddressOrRange} - PSTACK_OF_IPAddressOrRange = PSTACK; - {$ENDIF} - {$EXTERNALSYM PIPAddressOrRanges} - PIPAddressOrRanges = PSTACK_OF_IPAddressOrRange; - {$EXTERNALSYM IPAddressChoice_union} - IPAddressChoice_union = record - case byte of - IPAddressChoice_inherit : (inherit : PASN1_NULL); - IPAddressChoice_addressesOrRanges : (addressesOrRanges : PIPAddressOrRanges); - end; - {$EXTERNALSYM IPAddressChoice} - IPAddressChoice = record - _type : TIdC_INT; - u : IPAddressChoice_union; - end; - {$EXTERNALSYM PIPAddressChoice} - PIPAddressChoice = ^IPAddressChoice; - {$EXTERNALSYM IPAddressFamily} - IPAddressFamily = record - addressFamily : PASN1_OCTET_STRING; - ipAddressChoice : PIPAddressChoice; - end; - {$EXTERNALSYM PIPAddressFamily} - PIPAddressFamily = ^IPAddressFamily; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_IPAddressFamily} - STACK_OF_IPAddressFamily = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_IPAddressFamily} - PSTACK_OF_IPAddressFamily = ^STACK_OF_IPAddressFamily; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_IPAddressFamily} - PSTACK_OF_IPAddressFamily = PSTACK; - {$ENDIF} - {$EXTERNALSYM PIPAddrBlocks} - PIPAddrBlocks = PSTACK_OF_IPAddressFamily; - {$ENDIF} - //x509.h - {$EXTERNALSYM X509_HASH_DIR_CTX} - X509_HASH_DIR_CTX = record - num_dirs : TIDC_INT; - dirs : PPIdAnsiChar; - dirs_type : PIdC_INT; - num_dirs_alloced : TIdC_INT; - end; - {$EXTERNALSYM PX509_HASH_DIR_CTX} - PX509_HASH_DIR_CTX = ^X509_HASH_DIR_CTX; - {$EXTERNALSYM X509_CERT_FILE_CTX} - X509_CERT_FILE_CTX = record - num_paths : TIdC_INT; // number of paths to files or directories - num_alloced : TIdC_INT; - paths : PPIdAnsiChar; // the list of paths or directories - path_type : TIdC_INT; - end; - {$EXTERNALSYM PX509_CERT_FILE_CTX} - PX509_CERT_FILE_CTX = ^X509_CERT_FILE_CTX; - {$EXTERNALSYM x509_object_union} - x509_object_union = record - case byte of - 0: (ptr : PIdAnsiChar); - 1: (_x509 : Px509); - 2: (crl : PX509_CRL); - 3: (pkey : PEVP_PKEY); - end; - {$EXTERNALSYM X509_OBJECT} - X509_OBJECT = record - _type : TIdC_INT; - data : x509_object_union; - end; - {$EXTERNALSYM PX509_OBJECT} - PX509_OBJECT = ^X509_OBJECT; - {$EXTERNALSYM PPX509_OBJECT} - PPX509_OBJECT = ^PX509_OBJECT; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_OBJECT} - STACK_OF_X509_OBJECT = record - _stack: STACK; - end; - {$EXTERNALSYM PSTACK_OF_X509_OBJECT} - PSTACK_OF_X509_OBJECT = ^STACK_OF_X509_OBJECT; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509_OBJECT} - PSTACK_OF_X509_OBJECT = PSTACK; - {$ENDIF} - {$EXTERNALSYM X509_ALGOR} - X509_ALGOR = record - algorithm : PASN1_OBJECT; - parameter : PASN1_TYPE; - end; - {$EXTERNALSYM PX509_ALGOR} - PX509_ALGOR = ^X509_ALGOR; - {$EXTERNALSYM PPX509_ALGOR} - PPX509_ALGOR =^PX509_ALGOR; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_ALGOR} - STACK_OF_X509_ALGOR = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_X509_ALGOR} - PSTACK_OF_X509_ALGOR = ^STACK_OF_X509_ALGOR; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509_ALGOR} - PSTACK_OF_X509_ALGOR = PSTACK; - {$ENDIF} - {$EXTERNALSYM PPSTACK_OF_X509_ALGOR} - PPSTACK_OF_X509_ALGOR = ^PSTACK_OF_X509_ALGOR; - {$EXTERNALSYM X509_VAL} - X509_VAL = record - notBefore : PASN1_TIME; - notAfter : PASN1_TIME; - end; - {$EXTERNALSYM PX509_VAL} - PX509_VAL = ^X509_VAL; - {$EXTERNALSYM PPX509_VAL} - PPX509_VAL =^PX509_VAL; - {$EXTERNALSYM X509_PUBKEY} - X509_PUBKEY = record - algor : PX509_ALGOR; - public_key : PASN1_BIT_STRING; - pkey : PEVP_PKEY; - end; - {$EXTERNALSYM PX509_PUBKEY} - PX509_PUBKEY = ^X509_PUBKEY; - {$EXTERNALSYM PPX509_PUBKEY} - PPX509_PUBKEY =^PX509_PUBKEY; - {$EXTERNALSYM X509_SIG} - X509_SIG = record - algor : PX509_ALGOR; - digest : PASN1_OCTET_STRING; - end; - {$EXTERNALSYM PX509_SIG} - PX509_SIG = X509_SIG; - {$EXTERNALSYM PPX509_SIG} - PPX509_SIG =^PX509_SIG; - {$EXTERNALSYM X509_NAME_ENTRY} - X509_NAME_ENTRY = record - _object : PASN1_OBJECT; - value : PASN1_STRING; - _set : TIdC_INT; - size : TIdC_INT; // temp variable - end; - {$NODEFINE X509_NAME} - X509_NAME = record - entries : PSTACK_OF_X509_NAME_ENTRY; - modified : TIdC_INT; // true if 'bytes' needs to be built - {$IFNDEF OPENSSL_NO_BUFFER} - bytes : PBUF_MEM; - {$else} - bytes : PIdAnsiChar; - {$ENDIF} - //* unsigned long hash; Keep the hash around for lookups */ - canon_enc : PIdAnsiChar; - canon_enclen : TIdC_INT; - end; - {$EXTERNALSYM X509_EXTENSION} - X509_EXTENSION = record - _object : PASN1_OBJECT; - critical : ASN1_BOOLEAN; - value : PASN1_OCTET_STRING; - end; - {$EXTERNALSYM PX509_EXTENSION} - PX509_EXTENSION = ^X509_EXTENSION; - {$EXTERNALSYM PPX509_EXTENSION} - PPX509_EXTENSION =^PX509_EXTENSION; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_EXTENSION} - STACK_OF_X509_EXTENSION = record - _stack: stack; - end; - {$EXTERNALSYM X509_EXTENSIONS} - X509_EXTENSIONS = STACK_OF_X509_EXTENSION; - {$EXTERNALSYM PSTACK_OF_X509_EXTENSION} - PSTACK_OF_X509_EXTENSION = ^STACK_OF_X509_EXTENSION; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509_EXTENSION} - PSTACK_OF_X509_EXTENSION = PSTACK; - {$ENDIF} - {$EXTERNALSYM PPSTACK_OF_X509_EXTENSION} - PPSTACK_OF_X509_EXTENSION = ^PSTACK_OF_X509_EXTENSION; - {$EXTERNALSYM PX509_EXTENSIONS} - PX509_EXTENSIONS = PPSTACK_OF_X509_EXTENSION; - {$EXTERNALSYM x509_attributes_union} - x509_attributes_union = record - case Byte of - $FF :(Ptr : PIdAnsiChar); - 0 : (_set: PSTACK_OF_ASN1_TYPE); // 0 - 1 : (_single: PASN1_TYPE); - end; - {$EXTERNALSYM X509_ATTRIBUTE} - X509_ATTRIBUTE = record - _object : PASN1_OBJECT; - single : TIdC_INT; // 0 for a set, 1 for a single item (which is wrong) - value : x509_attributes_union; - end; - {$EXTERNALSYM PX509_ATTRIBUTE} - PX509_ATTRIBUTE = ^X509_ATTRIBUTE; - {$EXTERNALSYM PPX509_ATTRIBUTE} - PPX509_ATTRIBUTE =^PX509_ATTRIBUTE; - {$EXTERNALSYM X509_REQ_INFO} - X509_REQ_INFO = record - enc: ASN1_ENCODING; - version: PASN1_INTEGER; - subject: PX509_NAME; - pubkey: PX509_PUBKEY; - attributes: PSTACK_OF_X509_ATTRIBUTE; // [ 0 ] - end; - {$EXTERNALSYM X509_REQ} - X509_REQ = record - req_info: PX509_REQ_INFO; - sig_alg: PX509_ALGOR; - signature: PASN1_BIT_STRING; - references: TIdC_INT; - end; - {$EXTERNALSYM PPX509_REQ} - PPX509_REQ = ^PX509_REQ; - {$EXTERNALSYM PX509_CINF} - PX509_CINF = ^X509_CINF; - {$EXTERNALSYM X509_CINF} - X509_CINF = record - version: PASN1_INTEGER; - serialNumber: PASN1_INTEGER; - signature: PX509_ALGOR; - issuer: PX509_NAME; - validity: PX509_VAL; - subject: PX509_NAME; - key: PX509_PUBKEY; - issuerUID: PASN1_BIT_STRING; // [ 1 ] optional in v2 - subjectUID: PASN1_BIT_STRING; // [ 2 ] optional in v2 - extensions: PSTACK_OF_X509_EXTENSION; - enc : ASN1_ENCODING; - end; - {$EXTERNALSYM X509_CERT_AUX} - X509_CERT_AUX = record - trust : PSTACK_OF_ASN1_OBJECT; // trusted uses - reject : PSTACK_OF_ASN1_OBJECT; // rejected uses - alias : PASN1_UTF8STRING; // "friendly name" - keyid : PASN1_OCTET_STRING; // key id of private key - other : PSTACK_OF_X509_ALGOR; // other unspecified info - end; - {$EXTERNALSYM PX509_CERT_AUX} - PX509_CERT_AUX = ^X509_CERT_AUX; - {$NODEFINE X509} - X509 = record - cert_info: PX509_CINF; - sig_alg : PX509_ALGOR; - signature : PASN1_BIT_STRING; - valid : TIdC_INT; - references : TIdC_INT; - name : PIdAnsiChar; - ex_data : CRYPTO_EX_DATA; - // These contain copies of various extension values - ex_pathlen : TIdC_LONG; - ex_pcpathlen : TIdC_LONG; - ex_flags : TIdC_ULONG; - ex_kusage : TIdC_ULONG; - ex_xkusage : TIdC_ULONG; - ex_nscert : TIdC_ULONG; - skid : PASN1_OCTET_STRING; - akid : PAUTHORITY_KEYID; - policy_cache : PX509_POLICY_CACHE; - crldp : PSTACK_OF_DIST_POINT; - altname : PSTACK_OF_GENERAL_NAME; - nc : PNAME_CONSTRAINTS; - {$IFNDEF OPENSSL_NO_RFC3779} - rfc3779_addr : PSTACK_OF_IPAddressFamily; - rfc3779_asid : PASIdentifiers; - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA} - sha1_hash : array [0..SHA_DIGEST_LENGTH-1] of TIdAnsiChar; - {$ENDIF} - aux : PX509_CERT_AUX; - end; - {$EXTERNALSYM X509_CRL_INFO} - X509_CRL_INFO = record - version : PASN1_INTEGER; - sig_alg : PX509_ALGOR; - issuer : PX509_NAME; - lastUpdate : PASN1_TIME; - nextUpdate : PASN1_TIME; - revoked : PSTACK_OF_X509_REVOKED; - extensions : PSTACK_OF_X509_EXTENSION; // [0] - enc : ASN1_ENCODING; - end; - {$EXTERNALSYM PX509_CRL_INFO} - PX509_CRL_INFO = ^X509_CRL_INFO; - {$EXTERNALSYM PPX509_CRL_INFO} - PPX509_CRL_INFO =^PX509_CRL_INFO; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_CRL_INFO} - STACK_OF_X509_CRL_INFO = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_X509_CRL_INFO} - PSTACK_OF_X509_CRL_INFO = ^STACK_OF_X509_CRL_INFO; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509_CRL_INFO} - PSTACK_OF_X509_CRL_INFO = PSTACK; - {$ENDIF} - {$EXTERNALSYM PX509_LOOKUP} - PX509_LOOKUP = ^X509_LOOKUP; - //This has to be declared ehre for a reference in the next type. - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_LOOKUP} - STACK_OF_X509_LOOKUP = record - _stack: STACK; - end; - {$EXTERNALSYM PSTACK_OF_X509_LOOKUP} - PSTACK_OF_X509_LOOKUP = ^STACK_OF_X509_LOOKUP; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509_LOOKUP} - PSTACK_OF_X509_LOOKUP = PSTACK; - {$ENDIF} - - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_CRL} - STACK_OF_X509_CRL = record - _stack: STACK; - end; - {$EXTERNALSYM PSTACK_OF_X509_CRL} - PSTACK_OF_X509_CRL = ^STACK_OF_X509_CRL; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509_CRL} - PSTACK_OF_X509_CRL = PSTACK; - {$ENDIF} - {$EXTERNALSYM PX509_VERIFY_PARAM} - PX509_VERIFY_PARAM = ^X509_VERIFY_PARAM; - {$EXTERNALSYM PX509_STORE_CTX} - PX509_STORE_CTX = ^X509_STORE_CTX; - {$EXTERNALSYM PPX509_CRL} - PPX509_CRL = ^PX509_CRL; - {$EXTERNALSYM X509_STORE} - X509_STORE = record - // The following is a cache of trusted certs - cache : TIdC_INT; // if true, stash any hits - objs : PSTACK_OF_X509_OBJECT; // Cache of all objects - // These are external lookup methods - get_cert_methods : PSTACK_OF_X509_LOOKUP; - param : PX509_VERIFY_PARAM; - // Callbacks for various operations - verify : function (ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; // called to verify a certificate - verify_cb : function (ok : TIdC_INT; ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; // error callback - get_issuer : function (issuer : PPX509; ctx : PX509_STORE_CTX; x : PX509) : TIdC_INT; cdecl; // get issuers cert from ctx - check_issued : function (ctx : PX509_STORE_CTX; x : PX509; issuer : PX509) : TIdC_INT; cdecl; // check issued - check_revocation : function (ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; // Check revocation status of chain - get_crl : function (ctx : PX509_STORE_CTX; crl : PPX509_CRL; x : PX509) : TIdC_INT; cdecl;// retrieve CRL - check_crl : function(ctx : PX509_STORE_CTX; crl : PX509_CRL) : TIdC_INT; cdecl; // Check CRL validity - cert_crl : function(ctx : PX509_STORE_CTX; crl : PX509_CRL; x : PX509) : TIdC_INT; cdecl; // Check certificate against CRL - lookup_certs : function(ctx : PX509_STORE_CTX; nm : PX509_NAME) : PSTACK_OF_X509 cdecl; - lookup_crls : function(ctx : PX509_STORE_CTX; nm : PX509_NAME) : PSTACK_OF_X509_CRL cdecl; - cleanup : function(ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; - ex_data : CRYPTO_EX_DATA; - references : TIdC_INT; - end; - {$EXTERNALSYM PX509_STORE} - PX509_STORE = ^X509_STORE; - {$EXTERNALSYM PX509_CRL_METHOD} - PX509_CRL_METHOD = Pointer; - {$EXTERNALSYM X509_CRL} - X509_CRL = record - crl : PX509_CRL_INFO; - sig_alg : PX509_ALGOR; - signature : PASN1_BIT_STRING; - references : TIdC_INT; - flags : TIdC_INT; - //* Copies of various extensions */ - akid : PAUTHORITY_KEYID; - idp : PISSUING_DIST_POINT; - //* Convenient breakdown of IDP */ - idp_flags : TIdC_INT; - idp_reasons : TIdC_INT; - //* CRL and base CRL numbers for delta processing */ - crl_number : PASN1_INTEGER; - base_crl_number : PASN1_INTEGER; -{$ifndef OPENSSL_NO_SHA} - sha1_hash : array [0..(SHA_DIGEST_LENGTH - 1)] of byte; -{$endif} - issuers : PSTACK_OF_GENERAL_NAMES; - meth : PX509_CRL_METHOD; - meth_data : Pointer; - end; - {$EXTERNALSYM X509_LOOKUP_METHOD} - X509_LOOKUP_METHOD = record - name : PIdAnsiChar; - new_item : function (ctx : PX509_LOOKUP): TIdC_INT; cdecl; - free : procedure (ctx : PX509_LOOKUP); cdecl; - init : function(ctx : PX509_LOOKUP) : TIdC_INT; cdecl; - shutdown : function(ctx : PX509_LOOKUP) : TIdC_INT; cdecl; - ctrl: function(ctx : PX509_LOOKUP; cmd : TIdC_INT; const argc : PIdAnsiChar; argl : TIdC_LONG; out ret : PIdAnsiChar ) : TIdC_INT; cdecl; - get_by_subject: function(ctx : PX509_LOOKUP; _type : TIdC_INT; name : PX509_NAME; ret : PX509_OBJECT ) : TIdC_INT; cdecl; - get_by_issuer_serial : function(ctx : PX509_LOOKUP; _type : TIdC_INT; name : PX509_NAME; serial : PASN1_INTEGER; ret : PX509_OBJECT) : TIdC_INT; cdecl; - get_by_fingerprint : function (ctx : PX509_LOOKUP; _type : TIdC_INT; bytes : PIdAnsiChar; len : TIdC_INT; ret : PX509_OBJECT): TIdC_INT; cdecl; - get_by_alias : function(ctx : PX509_LOOKUP; _type : TIdC_INT; str : PIdAnsiChar; ret : PX509_OBJECT) : TIdC_INT; cdecl; - end; - {$EXTERNALSYM PX509_LOOKUP_METHOD} - PX509_LOOKUP_METHOD = ^X509_LOOKUP_METHOD; - {$EXTERNALSYM PPX509_LOOKUP_METHOD} - PPX509_LOOKUP_METHOD = ^PX509_LOOKUP_METHOD; - {$EXTERNALSYM X509_VERIFY_PARAM} - X509_VERIFY_PARAM = record - name : PIdAnsiChar; - check_time : time_t; // Time to use - inh_flags : TIdC_ULONG; // Inheritance flags - flags : TIdC_ULONG; // Various verify flags - purpose : TIdC_INT; // purpose to check untrusted certificates - trust : TIdC_INT; // trust setting to check - depth : TIdC_INT; // Verify depth - policies : PSTACK_OF_ASN1_OBJECT; // Permissible policies - end; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_VERIFY_PARAM} - STACK_OF_X509_VERIFY_PARAM = record - _stack: STACK; - end; - {$EXTERNALSYM PSTACK_OF_X509_VERIFY_PARAM} - PSTACK_OF_X509_VERIFY_PARAM = ^STACK_OF_X509_VERIFY_PARAM; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509_VERIFY_PARAM} - PSTACK_OF_X509_VERIFY_PARAM = PSTACK; - {$ENDIF} - {$EXTERNALSYM X509_LOOKUP} - X509_LOOKUP = record - init : TIdC_INT; // have we been started - skip : TIdC_INT; // don't use us. - method : PX509_LOOKUP_METHOD; // the functions - method_data : PIdAnsiChar; // method data - store_ctx : PX509_STORE; // who owns us - end; - {$EXTERNALSYM PX509_POLICY_TREE} - PX509_POLICY_TREE = Pointer; - {$EXTERNALSYM PPSTACK_OF_X509_LOOKUP} - PPSTACK_OF_X509_LOOKUP = ^PSTACK_OF_X509_LOOKUP; - // This is used when verifying cert chains. Since the - // gathering of the cert chain can take some time (and have to be - // 'retried', this needs to be kept and passed around. - X509_STORE_CTX = record // X509_STORE_CTX - ctx : PX509_STORE; - current_method : TIdC_INT; // used when looking up certs - // The following are set by the caller - cert : PX509; // The cert to check - untrusted : PSTACK_OF_X509; // chain of X509s - untrusted - passed in - crls : PSTACK_OF_X509_CRL; // set of CRLs passed in - param : PX509_VERIFY_PARAM; - other_ctx : Pointer; // Other info for use with get_issuer() - // Callbacks for various operations - verify : function (ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; // called to verify a certificate - verify_cb : function (ok : TIdC_INT; ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; // error callback - get_issuer : function (var issuer : PX509; ctx : PX509_STORE_CTX; x : PX509) : TIdC_INT; cdecl; // get issuers cert from ctx - check_issued : function(ctx : PX509_STORE_CTX; x, issuer : PX509) : TIdC_INT; cdecl; // check issued - check_revocation : function (ctx : PX509_STORE_CTX): TIdC_INT; cdecl; // Check revocation status of chain - get_crl : function (ctx : PX509_STORE_CTX; var crl : X509_CRL; x : PX509): TIdC_INT; cdecl; // retrieve CRL - check_crl : function (ctx : PX509_STORE_CTX; var crl : X509_CRL) : TIdC_INT; cdecl; // Check CRL validity - cert_crl : function (ctx : PX509_STORE_CTX; crl : PX509_CRL; x : PX509) : TIdC_INT; cdecl; // Check certificate against CRL - check_policy : function (ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; - cleanup : function (ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; - //* The following is built up */ - valid : TIdC_INT; //* if 0, rebuild chain */ - last_untrusted : TIdC_INT; //* index of last untrusted cert */ - chain : PSTACK_OF_X509; //* chain of X509s - built up and trusted */ - tree : PX509_POLICY_TREE; //* Valid policy tree */ - - explicit_policy : TIdC_INT; //* Require explicit policy value */ - - //* When something goes wrong, this is why */ - error_depth : TIdC_INT; - error : TIdC_INT; - current_cert : PX509; - current_issuer : PX509; //* cert currently being tested as valid issuer */ - current_crl : PX509_CRL; //* current CRL */ - - current_crl_score : TIdC_INT; //* score of current CRL */ - current_reasons : TIdC_UINT; //* Reason mask */ - - parent : PX509_STORE_CTX; //* For CRL path validation: parent context */ - - ex_data : CRYPTO_EX_DATA; - end; - {$EXTERNALSYM X509_STORE_CTX} - - {$EXTERNALSYM PX509_EXTENSION_METHOD} - PX509_EXTENSION_METHOD = Pointer; - {$EXTERNALSYM PX509_TRUST} - PX509_TRUST = ^X509_TRUST; - {$EXTERNALSYM X509_TRUST_check_trust} - X509_TRUST_check_trust = function(_para1 : PX509_TRUST; para2 : PX509; _para3 : TIdC_INT) : TIdC_INT; cdecl; - {$EXTERNALSYM X509_TRUST} - X509_TRUST = record - trust : TIdC_INT; - flags : TIdC_INT; - check_trust : X509_TRUST_check_trust; - name : PIdAnsiChar; - arg1 : TIdC_INT; - arg2 : Pointer; - end; - {$EXTERNALSYM PPX509_TRUST} - PPX509_TRUST = ^PX509_TRUST; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_509_TRUST} - STACK_OF_509_TRUST = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_509_TRUST} - PSTACK_OF_509_TRUST = ^STACK_OF_509_TRUST; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_509_TRUST} - PSTACK_OF_509_TRUST = PSTACK; - {$ENDIF} - {$EXTERNALSYM X509_REVOKED} - X509_REVOKED = record - serialNumber: PASN1_INTEGER; - revocationDate: PASN1_TIME; - extensions: PSTACK_OF_X509_EXTENSION; // optional - //* Set up if indirect CRL */ - issuer : PSTACK_OF_GENERAL_NAME; - //* Revocation reason */ - reason : TIdC_INT; - sequence: TIdC_INT; - end; - {$EXTERNALSYM PX509_REVOKED} - PX509_REVOKED = ^X509_REVOKED; - {$EXTERNALSYM PPX509_REVOKED} - PPX509_REVOKED =^PX509_REVOKED; - {$EXTERNALSYM PX509_PKEY} - PX509_PKEY = Pointer; - {$EXTERNALSYM PPX509_PKEY} - PPX509_PKEY =^PX509_PKEY; - {$EXTERNALSYM X509_INFO} - X509_INFO = record - x509 : PX509; - crl : PX509_CRL; - x_pkey : PX509_PKEY; - enc_cipher: EVP_CIPHER_INFO; - enc_len: TIdC_INT; - enc_data: PIdAnsiChar; - references: TIdC_INT; - end; - {$EXTERNALSYM PX509_INFO} - PX509_INFO = ^X509_INFO; - {$EXTERNALSYM PPX509_INFO} - PPX509_INFO =^PX509_INFO; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_X509_INFO} - STACK_OF_X509_INFO = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_X509_INFO} - PSTACK_OF_X509_INFO = ^STACK_OF_X509_INFO; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_X509_INFO} - PSTACK_OF_X509_INFO = PSTACK; - {$ENDIF} -// OpenSSL Developer's note -// The next 2 structures and their 8 routines were sent to me by -// Pat Richard and are used to manipulate -// Netscapes spki structures - useful if you are writing a CA web page - {$EXTERNALSYM NETSCAPE_SPKAC} - NETSCAPE_SPKAC = record - pubkey : PX509_PUBKEY; - challenge : PASN1_IA5STRING; // challenge sent in atlas >= PR2 - end; - {$EXTERNALSYM PNETSCAPE_SPKAC} - PNETSCAPE_SPKAC = ^NETSCAPE_SPKAC; - {$EXTERNALSYM PPNETSCAPE_SPKAC} - PPNETSCAPE_SPKAC = ^PNETSCAPE_SPKAC; - {$EXTERNALSYM NETSCAPE_SPKI} - NETSCAPE_SPKI = record - spkac : PNETSCAPE_SPKAC; // signed public key and challenge - sig_algor : PX509_ALGOR; - signature : PASN1_BIT_STRING; - end; - {$EXTERNALSYM PNETSCAPE_SPKI} - PNETSCAPE_SPKI = ^NETSCAPE_SPKI; - {$EXTERNALSYM PPNETSCAPE_SPKI} - PPNETSCAPE_SPKI = ^PNETSCAPE_SPKI; - {$EXTERNALSYM NETSCAPE_CERT_SEQUENCE} - NETSCAPE_CERT_SEQUENCE = record - _type : PASN1_OBJECT; - certs : PSTACK_OF_X509; - end; - {$EXTERNALSYM PNETSCAPE_CERT_SEQUENCE} - PNETSCAPE_CERT_SEQUENCE = ^NETSCAPE_CERT_SEQUENCE; - {$EXTERNALSYM PPNETSCAPE_CERT_SEQUENCE} - PPNETSCAPE_CERT_SEQUENCE = ^PNETSCAPE_CERT_SEQUENCE; - // Password based encryption structure - {$EXTERNALSYM PBEPARAM} - PBEPARAM = record - salt : PASN1_OCTET_STRING; - iter : PASN1_INTEGER; - end; - {$EXTERNALSYM PPBEPARAM} - PPBEPARAM = ^PBEPARAM; - {$EXTERNALSYM PPPBEPARAM} - PPPBEPARAM = ^PPBEPARAM; - // Password based encryption V2 structures - {$EXTERNALSYM PBE2PARAM} - PBE2PARAM = record - keyfunc : PX509_ALGOR; - encryption : PX509_ALGOR; - end; - {$EXTERNALSYM PPBE2PARAM} - PPBE2PARAM = ^PBE2PARAM; - {$EXTERNALSYM PBKDF2PARAM} - PBKDF2PARAM = record - salt : PASN1_TYPE; // Usually OCTET STRING but could be anything - iter : PASN1_INTEGER; - keylength : PASN1_INTEGER; - prf : PX509_ALGOR; - end; - {$EXTERNALSYM PPBKDF2PARAM} - PPBKDF2PARAM = ^PBKDF2PARAM; - {$EXTERNALSYM PPPBKDF2PARAM} - PPPBKDF2PARAM = ^PPBKDF2PARAM; - {$EXTERNALSYM PKCS8_PRIV_KEY_INFO} - PKCS8_PRIV_KEY_INFO = record - broken : TIdC_INT; // Flag for various broken formats -//#define PKCS8_OK 0 -//#define PKCS8_NO_OCTET 1 -//#define PKCS8_EMBEDDED_PARAM 2 -//#define PKCS8_NS_DB 3 - version : PASN1_INTEGER; - pkeyalg : PX509_ALGOR; - pkey : PASN1_TYPE; // Should be OCTET STRING but some are broken - attributes : PSTACK_OF_X509_ATTRIBUTE; - end; - {$EXTERNALSYM PPKCS8_PRIV_KEY_INFO} - PPKCS8_PRIV_KEY_INFO = ^PKCS8_PRIV_KEY_INFO; - {$EXTERNALSYM PPPKCS8_PRIV_KEY_INFO} - PPPKCS8_PRIV_KEY_INFO = ^PPKCS8_PRIV_KEY_INFO; - {$EXTERNALSYM PPKCS7_RECIP_INFO} - PPKCS7_RECIP_INFO = ^PKCS7_RECIP_INFO; - {$EXTERNALSYM PSHA_CTX} - PSHA_CTX = ^SHA_CTX; - //cms.h - {$IFDEF OPENSSL_NO_CMS} - {$EXTERNALSYM PCMS_ContentInfo} - PCMS_ContentInfo = Pointer; - {$EXTERNALSYM PCMS_SignerInfo} - PCMS_SignerInfo = Pointer; - {$EXTERNALSYM PCMS_CertificateChoices} - PCMS_CertificateChoices = Pointer; - {$EXTERNALSYM PCMS_RevocationInfoChoice} - PCMS_RevocationInfoChoice = Pointer; - {$EXTERNALSYM PCMS_RecipientInfo} - PCMS_RecipientInfo = Pointer; - {$EXTERNALSYM PCMS_ReceiptRequest} - PCMS_ReceiptRequest = Pointer; - {$EXTERNALSYM PCMS_Receipt} - PCMS_Receipt = Pointer; - {$EXTERNALSYM PSTACK_OF_CMS_SignerInfo} - {$ENDIF} - //ripemd.h - {$IFNDEF OPENSSL_NO_RIPEMD} - {$EXTERNALSYM RIPEMD160_LONG} - RIPEMD160_LONG = TIdC_UINT; - {$EXTERNALSYM RIPEMD160_CTX} - RIPEMD160_CTX = record - A,B,C,D,E : RIPEMD160_LONG; - Nl,Nh : RIPEMD160_LONG; - data : array [0..RIPEMD160_LBLOCK -1 ] of RIPEMD160_LONG; - num : TIdC_UINT; - end; - {$EXTERNALSYM PRIPEMD160_CTX} - PRIPEMD160_CTX = ^RIPEMD160_CTX; - {$ENDIF} - {$IFNDEF OPENSSL_NO_RC4} - {$EXTERNALSYM RC4_KEY} - RC4_KEY = record - x,y : RC4_INT; - data : array [0..(256 - 1)] of RC4_INT; - end; - {$EXTERNALSYM PRC4_KEY} - PRC4_KEY = ^RC4_KEY; - {$ENDIF} - //rc2.h - {$IFNDEF OPENSSL_NO_RC2} - {$EXTERNALSYM RC2_KEY} - RC2_KEY = record - data : array [0..(64 - 1)] of RC2_INT; - end; - {$EXTERNALSYM PRC2_KEY} - PRC2_KEY = ^RC2_KEY; - {$ENDIF} - {$IFNDEF OPENSSL_NO_RC5} - {$EXTERNALSYM RC5_32_INT} - RC5_32_INT = TIdC_UINT; - {$EXTERNALSYM RC5_32_KEY} - RC5_32_KEY = record - // Number of rounds - rounds : TIdC_INT; - data : array [0..(2*(RC5_16_ROUNDS+1)-1)] of RC5_32_INT; - end; - {$EXTERNALSYM PRC5_32_KEY} - PRC5_32_KEY = ^RC5_32_KEY; - {$ENDIF} - //blowfish.h - {$IFNDEF OPENSSL_NO_BF} - {$EXTERNALSYM BF_LONG} - BF_LONG = TIdC_UINT; - {$EXTERNALSYM BF_KEY} - BF_KEY = record - P : array [0..(BF_ROUNDS+2)-1] of BF_LONG; - S : array [0..(4*256)-1] of BF_LONG; - end; - {$EXTERNALSYM PBF_KEY} - PBF_KEY = ^BF_KEY; - {$ENDIF} - {$IFNDEF OPENSSL_NO_CAST} - {$EXTERNALSYM CAST_LONG} - CAST_LONG = TIdC_ULONG; - {$EXTERNALSYM CAST_KEY} - CAST_KEY = record - data : array[0..(32 -1)] of CAST_LONG; - short_key : TIdC_INT; // Use reduced rounds for short key - end; - {$EXTERNALSYM PCAST_KEY} - PCAST_KEY = ^CAST_KEY; - {$ENDIF} - {$IFNDEF OPENSSL_NO_IDEA} - {$EXTERNALSYM IDEA_KEY_SCHEDULE} - IDEA_KEY_SCHEDULE = record - data : array [0..(9-1),0..(6-1)] of IDEA_INT; - end; - {$EXTERNALSYM PIDEA_KEY_SCHEDULE} - PIDEA_KEY_SCHEDULE = ^IDEA_KEY_SCHEDULE; - {$ENDIF} - //ocsp.h - //* CertID ::= SEQUENCE { - //* hashAlgorithm AlgorithmIdentifier, - //* issuerNameHash OCTET STRING, -- Hash of Issuer's DN - //* issuerKeyHash OCTET STRING, -- Hash of Issuers public key (excluding the tag & length fields) - //* serialNumber CertificateSerialNumber } - //*/ -//typedef struct ocsp_cert_id_st - {$EXTERNALSYM OCSP_CERTID} - OCSP_CERTID = record - hashAlgorithm : PX509_ALGOR; - issuerNameHash : PASN1_OCTET_STRING; - issuerKeyHash : PASN1_OCTET_STRING; - serialNumber : PASN1_INTEGER; - end; - {$EXTERNALSYM POCSP_CERTID} - POCSP_CERTID = ^OCSP_CERTID; - {$EXTERNALSYM PPOCSP_CERTID} - PPOCSP_CERTID = ^POCSP_CERTID; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_OCSP_CERTID} - STACK_OF_OCSP_CERTID = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_OCSP_CERTID} - PSTACK_OF_OCSP_CERTID = ^STACK_OF_OCSP_CERTID; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_OCSP_CERTID} - PSTACK_OF_OCSP_CERTID = PSTACK; - {$ENDIF} -// * Request ::= SEQUENCE { -// * reqCert CertID, -// * singleRequestExtensions [0] EXPLICIT Extensions OPTIONAL } -// */ - {$EXTERNALSYM OCSP_ONEREQ} - OCSP_ONEREQ = record - reqCert : POCSP_CERTID; - singleRequestExtensions : PSTACK_OF_X509_EXTENSION; - end; - {$EXTERNALSYM POCSP_ONEREQ} - POCSP_ONEREQ = ^OCSP_ONEREQ; - {$EXTERNALSYM PPOCSP_ONEREQ} - PPOCSP_ONEREQ = ^POCSP_ONEREQ; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_OCSP_ONEREQ} - STACK_OF_OCSP_ONEREQ = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_OCSP_ONEREQ} - PSTACK_OF_OCSP_ONEREQ = ^STACK_OF_OCSP_ONEREQ; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_OCSP_ONEREQ} - PSTACK_OF_OCSP_ONEREQ = PSTACK; - {$ENDIF} -//* TBSRequest ::= SEQUENCE { -//* version [0] EXPLICIT Version DEFAULT v1, -//* requestorName [1] EXPLICIT GeneralName OPTIONAL, -//* requestList SEQUENCE OF Request, -//* requestExtensions [2] EXPLICIT Extensions OPTIONAL } -//*/ - {$EXTERNALSYM OCSP_REQINFO} - OCSP_REQINFO = record - version : PASN1_INTEGER; - requestorName : PGENERAL_NAME; - requestList : PSTACK_OF_OCSP_ONEREQ; - requestExtensions : PSTACK_OF_X509_EXTENSION; - end; - {$EXTERNALSYM POCSP_REQINFO} - POCSP_REQINFO = ^OCSP_REQINFO; - {$EXTERNALSYM PPOCSP_REQINFO} - PPOCSP_REQINFO = ^POCSP_REQINFO; -///* Signature ::= SEQUENCE { -// * signatureAlgorithm AlgorithmIdentifier, -// * signature BIT STRING, -// * certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL } -// */ - {$EXTERNALSYM OCSP_SIGNATURE} - OCSP_SIGNATURE = record - signatureAlgorithm : PX509_ALGOR; - signature : PASN1_BIT_STRING; - certs : PSTACK_OF_X509; - end; - {$EXTERNALSYM POCSP_SIGNATURE} - POCSP_SIGNATURE = ^OCSP_SIGNATURE; - {$EXTERNALSYM PPOCSP_SIGNATURE} - PPOCSP_SIGNATURE = ^POCSP_SIGNATURE; -///* OCSPRequest ::= SEQUENCE { -// * tbsRequest TBSRequest, -// * optionalSignature [0] EXPLICIT Signature OPTIONAL } -// */ - {$EXTERNALSYM OCSP_REQUEST} - OCSP_REQUEST = record - tbsRequest : POCSP_REQINFO; - optionalSignature : POCSP_SIGNATURE; //* OPTIONAL */ - end; - {$EXTERNALSYM POCSP_REQUEST} - POCSP_REQUEST = ^OCSP_REQUEST; - {$EXTERNALSYM PPOCSP_REQUEST} - PPOCSP_REQUEST = ^POCSP_REQUEST; -///* OCSPResponseStatus ::= ENUMERATED { -// * successful (0), --Response has valid confirmations -// * malformedRequest (1), --Illegal confirmation request -// * internalError (2), --Internal error in issuer -// * tryLater (3), --Try again later -// * --(4) is not used -// * sigRequired (5), --Must sign the request -// * unauthorized (6) --Request unauthorized -// * } -// */ -///* ResponseBytes ::= SEQUENCE { -// * responseType OBJECT IDENTIFIER, -// * response OCTET STRING } -// */ - {$EXTERNALSYM OCSP_RESPBYTES} - OCSP_RESPBYTES = record - responseType : PASN1_OBJECT; - response : PASN1_OCTET_STRING; - end; - {$EXTERNALSYM POCSP_RESPBYTES} - POCSP_RESPBYTES = ^OCSP_RESPBYTES; - {$EXTERNALSYM PPOCSP_RESPBYTES} - PPOCSP_RESPBYTES = ^POCSP_RESPBYTES; -///* OCSPResponse ::= SEQUENCE { -// * responseStatus OCSPResponseStatus, -// * responseBytes [0] EXPLICIT ResponseBytes OPTIONAL } -// */ - {$EXTERNALSYM OCSP_RESPONSE} - OCSP_RESPONSE = record - responseStatus : PASN1_ENUMERATED; - responseBytes : POCSP_RESPBYTES; - end; - {$EXTERNALSYM POCSP_RESPONSE} - POCSP_RESPONSE = ^OCSP_RESPONSE; - {$EXTERNALSYM PPOCSP_RESPONSE} - PPOCSP_RESPONSE = ^POCSP_RESPONSE; -// /* ResponderID ::= CHOICE { -// * byName [1] Name, -// * byKey [2] KeyHash } -// */ - {$EXTERNALSYM OCSP_RESPID_union} - OCSP_RESPID_union = record - case Integer of - 0 : (byName : PX509_NAME); - 1 : (byKey : PASN1_OCTET_STRING); - end; - {$EXTERNALSYM OCSP_RESPID} - OCSP_RESPID = record - _type : TIdC_INT; - value : OCSP_RESPID_union; - end; - {$EXTERNALSYM POCSP_RESPID} - POCSP_RESPID = ^OCSP_RESPID; - {$EXTERNALSYM PPOCSP_RESPID} - PPOCSP_RESPID = ^POCSP_RESPID; - //* KeyHash ::= OCTET STRING --SHA-1 hash of responder's public key - // * --(excluding the tag and length fields) - // */ - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_OCSP_RESPID} - STACK_OF_OCSP_RESPID = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_OCSP_RESPID} - PSTACK_OF_OCSP_RESPID = ^STACK_OF_OCSP_RESPID; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_OCSP_RESPID} - PSTACK_OF_OCSP_RESPID = PSTACK; - {$ENDIF} -///* RevokedInfo ::= SEQUENCE { -// * revocationTime GeneralizedTime, -// * revocationReason [0] EXPLICIT CRLReason OPTIONAL } -// */ - {$EXTERNALSYM OCSP_REVOKEDINFO} - OCSP_REVOKEDINFO = record - revocationTime : PASN1_GENERALIZEDTIME; - revocationReason : PASN1_ENUMERATED; - end; - {$EXTERNALSYM POCSP_REVOKEDINFO} - POCSP_REVOKEDINFO = ^OCSP_REVOKEDINFO; - {$EXTERNALSYM PPOCSP_REVOKEDINFO} - PPOCSP_REVOKEDINFO = ^POCSP_REVOKEDINFO; -///* CertStatus ::= CHOICE { -// * good [0] IMPLICIT NULL, -// * revoked [1] IMPLICIT RevokedInfo, -// * unknown [2] IMPLICIT UnknownInfo } -// */ - {$EXTERNALSYM OCSP_CERTSTATUS_union} - OCSP_CERTSTATUS_union = record - case Integer of - 0 : (good : PASN1_NULL); - 1 : (revoked : POCSP_REVOKEDINFO); - 2 : (unknown : PASN1_NULL); - end; - {$EXTERNALSYM OCSP_CERTSTATUS} - OCSP_CERTSTATUS = record - _type : TIdC_INT; - value : OCSP_CERTSTATUS_union; - end; - {$EXTERNALSYM POCSP_CERTSTATUS} - POCSP_CERTSTATUS = ^OCSP_CERTSTATUS; - {$EXTERNALSYM PPOCSP_CERTSTATUS} - PPOCSP_CERTSTATUS = ^POCSP_CERTSTATUS; -///* SingleResponse ::= SEQUENCE { -// * certID CertID, -// * certStatus CertStatus, -// * thisUpdate GeneralizedTime, -// * nextUpdate [0] EXPLICIT GeneralizedTime OPTIONAL, -// * singleExtensions [1] EXPLICIT Extensions OPTIONAL } -// */ - {$EXTERNALSYM OCSP_SINGLERESP} - OCSP_SINGLERESP = record - certId : POCSP_CERTID; - certStatus : POCSP_CERTSTATUS; - thisUpdate : PASN1_GENERALIZEDTIME; - nextUpdate : PASN1_GENERALIZEDTIME; - singleExtensions : PSTACK_OF_X509_EXTENSION; - end; - {$EXTERNALSYM POCSP_SINGLERESP} - POCSP_SINGLERESP = ^OCSP_SINGLERESP; - {$EXTERNALSYM PPOCSP_SINGLERESP} - PPOCSP_SINGLERESP = ^POCSP_SINGLERESP; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_OCSP_SINGLERESP} - STACK_OF_OCSP_SINGLERESP = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_OCSP_SINGLERESP} - PSTACK_OF_OCSP_SINGLERESP = ^STACK_OF_OCSP_SINGLERESP; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_OCSP_SINGLERESP} - PSTACK_OF_OCSP_SINGLERESP = PSTACK; - {$ENDIF} -///* ResponseData ::= SEQUENCE { -// * version [0] EXPLICIT Version DEFAULT v1, -// * responderID ResponderID, -// * producedAt GeneralizedTime, -// * responses SEQUENCE OF SingleResponse, -// * responseExtensions [1] EXPLICIT Extensions OPTIONAL } -// */ - {$EXTERNALSYM OCSP_RESPDATA} - OCSP_RESPDATA = record - version : PASN1_INTEGER; - responderId : POCSP_RESPID; - producedAt : PASN1_GENERALIZEDTIME; - responses : PSTACK_OF_OCSP_SINGLERESP; - responseExtensions : PSTACK_OF_X509_EXTENSION; - end; - {$EXTERNALSYM POCSP_RESPDATA} - POCSP_RESPDATA = ^OCSP_RESPDATA; - {$EXTERNALSYM PPOCSP_RESPDATA} - PPOCSP_RESPDATA = ^POCSP_RESPDATA; -///* BasicOCSPResponse ::= SEQUENCE { -// * tbsResponseData ResponseData, -// * signatureAlgorithm AlgorithmIdentifier, -// * signature BIT STRING, -// * certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL } -// */ -// /* Note 1: -// The value for "signature" is specified in the OCSP rfc2560 as follows: -// "The value for the signature SHALL be computed on the hash of the DER -// encoding ResponseData." This means that you must hash the DER-encoded -// tbsResponseData, and then run it through a crypto-signing function, which -// will (at least w/RSA) do a hash-'n'-private-encrypt operation. This seems -// a bit odd, but that's the spec. Also note that the data structures do not -// leave anywhere to independently specify the algorithm used for the initial -// hash. So, we look at the signature-specification algorithm, and try to do -// something intelligent. -- Kathy Weinhold, CertCo */ -// /* Note 2: -// It seems that the mentioned passage from RFC 2560 (section 4.2.1) is open -// for interpretation. I've done tests against another responder, and found -// that it doesn't do the double hashing that the RFC seems to say one -// should. Therefore, all relevant functions take a flag saying which -// variant should be used. -- Richard Levitte, OpenSSL team and CeloCom */ - {$EXTERNALSYM OCSP_BASICRESP} - OCSP_BASICRESP = record - tbsResponseData : POCSP_RESPDATA; - signatureAlgorithm : PX509_ALGOR; - signature : PASN1_BIT_STRING; - certs : PSTACK_OF_X509; - end; - {$EXTERNALSYM POCSP_BASICRESP} - POCSP_BASICRESP = ^OCSP_BASICRESP; - {$EXTERNALSYM PPOCSP_BASICRESP} - PPOCSP_BASICRESP = ^POCSP_BASICRESP; -///* CrlID ::= SEQUENCE { -// * crlUrl [0] EXPLICIT IA5String OPTIONAL, -// * crlNum [1] EXPLICIT INTEGER OPTIONAL, -// * crlTime [2] EXPLICIT GeneralizedTime OPTIONAL } -// */ - {$EXTERNALSYM OCSP_CRLID} - OCSP_CRLID = record - crlUrl : PASN1_IA5STRING; - crlNum : PASN1_INTEGER; - crlTime : PASN1_GENERALIZEDTIME; - end; - {$EXTERNALSYM POCSP_CRLID} - POCSP_CRLID = ^OCSP_CRLID; - {$EXTERNALSYM PPOCSP_CRLID} - PPOCSP_CRLID = ^POCSP_CRLID; -///* ServiceLocator ::= SEQUENCE { -// * issuer Name, -// * locator AuthorityInfoAccessSyntax OPTIONAL } -// */ - {$EXTERNALSYM OCSP_SERVICELOC} - OCSP_SERVICELOC = record - issuer : PX509_NAME; - locator : PSTACK_OF_ACCESS_DESCRIPTION; - end; - {$EXTERNALSYM POCSP_SERVICELOC} - POCSP_SERVICELOC = ^OCSP_SERVICELOC; - {$EXTERNALSYM PPOCSP_SERVICELOC} - PPOCSP_SERVICELOC = ^POCSP_SERVICELOC; - //mdc2.h - //MDC2_CTX = record - //this is not defined in headers so it's best use functions in the API to access the structure. - //end; - {$EXTERNALSYM PMDC2_CTX} - PMDC2_CTX = Pointer;//^MDC2_CTX; - //tmdiff.h -// MS_TM = record - //this is not defined in headers so it's best use functions in the API to access the structure. - // end; - {$EXTERNALSYM PMS_TM} - PMS_TM = Pointer;//^MS_TM; - {$EXTERNALSYM PPMS_TM} - PPMS_TM = ^PMS_TM; - //PEVP_PBE_KEYGEN = Pointer; - {$EXTERNALSYM ppem_password_cb} - ppem_password_cb = function (buf : PIdAnsiChar; size : TIdC_INT; rwflag : TIdC_INT; userdata : Pointer) : TIdC_INT; cdecl; - {$EXTERNALSYM PEM_ENCODE_SEAL_CTX} - PEM_ENCODE_SEAL_CTX = record - encode : EVP_ENCODE_CTX; - md : EVP_MD_CTX; - cipher : EVP_CIPHER_CTX; - end; - {$EXTERNALSYM PPEM_ENCODE_SEAL_CTX} - PPEM_ENCODE_SEAL_CTX = ^PEM_ENCODE_SEAL_CTX; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_SSL_COMP} - STACK_OF_SSL_COMP = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_SSL_COMP} - PSTACK_OF_SSL_COMP = ^STACK_OF_SSL_COMP; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_SSL_COMP} - PSTACK_OF_SSL_COMP = PSTACK; - {$ENDIF} - {$EXTERNALSYM PPSTACK_OF_SSL_COMP} - PPSTACK_OF_SSL_COMP = ^PSTACK_OF_SSL_COMP; - {$EXTERNALSYM PSSL_COMP} - PSSL_COMP = ^SSL_COMP; - {$EXTERNALSYM lhash_of_SSL_SESSION} - lhash_of_SSL_SESSION = record - dummy : TIdC_INT; - end; - {$EXTERNALSYM Plhash_of_SSL_SESSION} - Plhash_of_SSL_SESSION = ^lhash_of_SSL_SESSION; - - // PASN1_UTCTIME = Pointer; - -//GREGOR - spremenjana deklaracija ker se tole -// Phostent = Pointer; - {$NODEFINE Phostent2} - Phostent2 = Pointer; -//END GREGOR -{ This should cause problems, but I will solve them ONLY if they came ... } -{ !!!InvalidTypes!!! } -//END REMY - //des.h - // des_cblock = Integer; - {$EXTERNALSYM DES_cblock} - DES_cblock = array[0..7] of Byte; - {$EXTERNALSYM PDES_cblock} - PDES_cblock = ^DES_cblock; - {$EXTERNALSYM const_DES_cblock} - const_DES_cblock = DES_cblock; - {$EXTERNALSYM Pconst_DES_cblock} - Pconst_DES_cblock = ^const_DES_cblock; - // des_key_schedule = Integer; - {$EXTERNALSYM DES_LONG} - {$IFDEF DES_INT} - DES_LONG = TIdC_UINT; - {$ELSE} - DES_LONG = TIdC_ULONG; - {$ENDIF} - {$EXTERNALSYM des_cblock_union} - des_cblock_union = record - case integer of - 0: (cblock: des_cblock); - 1: (deslong: array [0..1] of DES_LONG); - end; - {$EXTERNALSYM des_ks_struct} - des_ks_struct = record - ks : des_cblock_union; - //IMPORTANT!!! - //Since OpenSSL 0.9.7-dev, the OpenSSL developers - //dropped this member. See: - //http://marc.info/?l=openssl-dev&m=100342566217528&w=2 - - weak_key: TIdC_INT; - end; - {$EXTERNALSYM des_key_schedule} - des_key_schedule = array[0..15] of des_ks_struct; - {$EXTERNALSYM des_cblocks} - des_cblocks = array[0..7] of byte; - //des_cblocks = Integer; - //des_old.h - {$EXTERNALSYM _ossl_old_des_cblock} - _ossl_old_des_cblock = array [0..7] of byte; - {$EXTERNALSYM P_ossl_old_des_cblock} - P_ossl_old_des_cblock = ^_ossl_old_des_cblock; - {$EXTERNALSYM _ossl_old_des_ks_union} - _ossl_old_des_ks_union = record - case Integer of - 0 : (_ : _ossl_old_des_cblock); - //* make sure things are correct size on machines with - //* 8 byte longs */ - 2 : (pad : array [0..1] of DES_LONG); - end; - {$EXTERNALSYM _ossl_old_des_ks_struct} - _ossl_old_des_ks_struct = record - ks : _ossl_old_des_ks_union; - end; - {$EXTERNALSYM _ossl_old_des_key_schedule} - _ossl_old_des_key_schedule = array [0..15] of _ossl_old_des_ks_struct; - {$EXTERNALSYM P_ossl_old_des_key_schedule} - P_ossl_old_des_key_schedule = ^_ossl_old_des_key_schedule; -{IMPORTANT!!! - -In C, symbols are case sensitive while in Pascal, they are insensitive. -Thus, when we something like this: - -#define des_cblock DES_cblock - -we, should do something like this: - -_des_cblock = DES_cblock -} - {$EXTERNALSYM _des_cblock} - {$EXTERNALSYM _des_key_schedule} - {$IFNDEF OPENSSL_DES_LIBDES_COMPATIBILITY} - _des_cblock = DES_cblock; - {$EXTERNALSYM _const_des_cblock} - _const_des_cblock = const_DES_cblock; - _des_key_schedule = DES_key_schedule; - {$ELSE} -///* libdes compatibility */ -//* Map all symbol names to _ossl_old_des_* form, so we avoid all -// clashes with libdes */ - _des_cblock = _ossl_old_des_cblock; - _des_key_schedule = _ossl_old_des_key_schedule; - {$ENDIF} - {$EXTERNALSYM TIdSslLockingCallback} - TIdSslLockingCallback = procedure (mode, n : TIdC_INT; Afile : PIdAnsiChar; line : TIdC_INT); cdecl; - {$EXTERNALSYM TIdSslIdCallback} - TIdSslIdCallback = function: TIdC_ULONG; cdecl; -///ssl_locl.h structs. These are probably internal records so don't expose -//their members as ssl_lock.h is not included in the headers -//JPM - {$EXTERNALSYM PSSL3_ENC_METHOD} - PSSL3_ENC_METHOD = pointer;//^SSL3_ENC_METHOD; -// SSL3_ENC_METHOD = record -// end; - {$EXTERNALSYM PCERT} - PCERT = pointer; - {$EXTERNALSYM PPCERT} - PPCERT = ^PCERT; - {$EXTERNALSYM PSESS_CERT} - PSESS_CERT = pointer; - //pkcs7.h - {$EXTERNALSYM PPKCS7} - PPKCS7 = ^PKCS7; - {$EXTERNALSYM PPPKCS7} - PPPKCS7 = ^PPKCS7; - {$EXTERNALSYM PKCS7_ISSUER_AND_SERIAL} - PKCS7_ISSUER_AND_SERIAL = record - issuer : PX509_NAME; - serial : PASN1_INTEGER; - end; - {$EXTERNALSYM PPKCS7_ISSUER_AND_SERIAL} - PPKCS7_ISSUER_AND_SERIAL = ^PKCS7_ISSUER_AND_SERIAL; - {$EXTERNALSYM PKCS7_SIGNER_INFO} - PKCS7_SIGNER_INFO = record - version : PASN1_INTEGER; // version 1 - issuer_and_serial : PPKCS7_ISSUER_AND_SERIAL; - digest_alg : PX509_ALGOR; - auth_attr : PSTACK_OF_X509_ATTRIBUTE; // [ 0 ] - digest_enc_alg : PX509_ALGOR; - enc_digest : PASN1_OCTET_STRING; - unauth_attr : PSTACK_OF_X509_ATTRIBUTE; // [ 1 ] - // The private key to sign with - pkey : PEVP_PKEY; - end; - {$EXTERNALSYM PPKCS7_SIGNER_INFO} - PPKCS7_SIGNER_INFO = ^PKCS7_SIGNER_INFO; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_PKCS7_SIGNER_INFO} - STACK_OF_PKCS7_SIGNER_INFO = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_PKCS7_SIGNER_INFO} - PSTACK_OF_PKCS7_SIGNER_INFO = ^STACK_OF_PKCS7_SIGNER_INFO; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_PKCS7_SIGNER_INFO} - PSTACK_OF_PKCS7_SIGNER_INFO = PSTACK; - {$ENDIF} - {$EXTERNALSYM PKCS7_RECIP_INFO} - PKCS7_RECIP_INFO = record - version : PASN1_INTEGER; // version 0 - issuer_and_serial : PPKCS7_ISSUER_AND_SERIAL; - key_enc_algor : PX509_ALGOR; - enc_key : PASN1_OCTET_STRING; - cert : PX509; // get the pub-key from this - end; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_PKCS7_RECIP_INFO} - STACK_OF_PKCS7_RECIP_INFO = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_PKCS7_RECIP_INFO} - PSTACK_OF_PKCS7_RECIP_INFO = ^STACK_OF_PKCS7_RECIP_INFO; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_PKCS7_RECIP_INFO} - PSTACK_OF_PKCS7_RECIP_INFO = PSTACK; - {$ENDIF} - {$EXTERNALSYM PPSTACK_OF_PKCS7_RECIP_INFO} - PPSTACK_OF_PKCS7_RECIP_INFO = ^PSTACK_OF_PKCS7_RECIP_INFO; - {$EXTERNALSYM PKCS7_SIGNED} - PKCS7_SIGNED = record - version : PASN1_INTEGER; // version 1 - md_algs : PSTACK_OF_X509_ALGOR; // md used - cert : PSTACK_OF_X509; // [ 0 ] - crl : PSTACK_OF_X509_CRL; // [ 1 ] - signer_info : PSTACK_OF_PKCS7_SIGNER_INFO; - contents : PPKCS7; - end; - {$EXTERNALSYM PPKCS7_SIGNED} - PPKCS7_SIGNED = ^PKCS7_SIGNED; - {$EXTERNALSYM PPPKCS7_SIGNED} - PPPKCS7_SIGNED = ^PPKCS7_SIGNED; - {$EXTERNALSYM PKCS7_ENC_CONTENT} - PKCS7_ENC_CONTENT = record - content_type : PASN1_OBJECT; - algorithm : PX509_ALGOR; - enc_data : PASN1_OCTET_STRING; // [ 0 ] - cipher : PEVP_CIPHER; - end; - {$EXTERNALSYM PPKCS7_ENC_CONTENT} - PPKCS7_ENC_CONTENT = ^PKCS7_ENC_CONTENT; - {$EXTERNALSYM PKCS7_ENVELOPE} - PKCS7_ENVELOPE = record - version : PASN1_INTEGER; // version 0 - recipientinfo : PSTACK_OF_PKCS7_RECIP_INFO; - enc_data : PPKCS7_ENC_CONTENT; - end; - {$EXTERNALSYM PPKCS7_ENVELOPE} - PPKCS7_ENVELOPE = ^PKCS7_ENVELOPE; - // OpenSSL developer notes - // The above structure is very very similar to PKCS7_SIGN_ENVELOPE. - // How about merging the two - {$EXTERNALSYM PKCS7_SIGN_ENVELOPE} - PKCS7_SIGN_ENVELOPE = record - version : PASN1_INTEGER; // version 1 - md_algs : PSTACK_OF_X509_ALGOR; // md used - cert : PSTACK_OF_X509; // [ 0 ] - crl : PSTACK_OF_X509_CRL; // [ 1 ] - signer_info : PSTACK_OF_PKCS7_SIGNER_INFO; - enc_data : PPKCS7_ENC_CONTENT; - recipientinfo : PSTACK_OF_PKCS7_RECIP_INFO; - end; - {$EXTERNALSYM PPKCS7_SIGN_ENVELOPE} - PPKCS7_SIGN_ENVELOPE = ^PKCS7_SIGN_ENVELOPE; - {$EXTERNALSYM PKCS7_DIGEST} - PKCS7_DIGEST = record - version : PASN1_INTEGER; // version 0 - md : PX509_ALGOR; // md used - contents : PPKCS7; - digest : PASN1_OCTET_STRING; - end; - {$EXTERNALSYM PPKCS7_DIGEST} - PPKCS7_DIGEST = ^PKCS7_DIGEST; - {$EXTERNALSYM PKCS7_ENCRYPT} - PKCS7_ENCRYPT = record - version : PASN1_INTEGER; // version 0 - enc_data : PPKCS7_ENC_CONTENT; - end; - {$EXTERNALSYM PPKCS7_ENCRYPT} - PPKCS7_ENCRYPT = ^PKCS7_ENCRYPT; - {$EXTERNALSYM PKCS7_union} - PKCS7_union = record - // content as defined by the type - // all encryption/message digests are applied to the 'contents', - // leaving out the 'type' field. - case Integer of - 0 : (ptr : PIdAnsiChar); - // NID_pkcs7_data - 1 : (data : PASN1_OCTET_STRING); - // NID_pkcs7_signed - 2 : (sign : PPKCS7_SIGNED); - // NID_pkcs7_enveloped - 3 : (enveloped : PPKCS7_ENVELOPE); - // NID_pkcs7_signedAndEnveloped - 4 : (signed_and_enveloped : PPKCS7_SIGN_ENVELOPE); - // NID_pkcs7_digest - 5 : (digest : PPKCS7_DIGEST); - // NID_pkcs7_encrypted - 6 : (encrypted : PPKCS7_ENCRYPT); - end; - {$EXTERNALSYM PKCS7} - PKCS7 = record - // The following is non NULL if it contains ASN1 encoding of - // this structure - asn1 : PIdAnsiChar; - length : TIdC_LONG; -//#define PKCS7_S_HEADER 0 -//#define PKCS7_S_BODY 1 -//#define PKCS7_S_TAIL 2 - state : TIdC_INT; // used during processing - detached : TIdC_INT; - _type : PASN1_OBJECT; - // content as defined by the type - // all encryption/message digests are applied to the 'contents', - // leaving out the 'type' field. - d : PKCS7_union; - end; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_PKCS7} - STACK_OF_PKCS7 = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_PKCS7} - PSTACK_OF_PKCS7 = ^STACK_OF_PKCS7; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_PKCS7} - PSTACK_OF_PKCS7 = PSTACK; - {$ENDIF} - //pkcs12.h - {$EXTERNALSYM PKCS12_MAC_DATA} - PKCS12_MAC_DATA = record - dinfo : PX509_SIG; - salt : PASN1_OCTET_STRING; - iter : PASN1_INTEGER; // defaults to 1 - end; - {$EXTERNALSYM PPKCS12_MAC_DATA} - PPKCS12_MAC_DATA = ^PKCS12_MAC_DATA; - // PSESS_CERT = ^SESS_CERT; - {$EXTERNALSYM PPKCS12} - PPKCS12 = ^PKCS12; - {$EXTERNALSYM PPPKCS12} - PPPKCS12 = ^PPKCS12; - {$EXTERNALSYM PKCS12} - PKCS12 = record - version : PASN1_INTEGER; - mac : PPKCS12_MAC_DATA; - authsafes : PPKCS7; - end; - //ts.h - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_EVP_MD} - STACK_OF_EVP_MD = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_EVP_MD} - PSTACK_OF_EVP_MD = ^STACK_OF_EVP_MD; - {$EXTERNALSYM STACK_OF_ASN1_UTF8STRING} - STACK_OF_ASN1_UTF8STRING = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_ASN1_UTF8STRING} - PSTACK_OF_ASN1_UTF8STRING = ^STACK_OF_ASN1_UTF8STRING; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_EVP_MD} - PSTACK_OF_EVP_MD = PSTACK; - {$EXTERNALSYM PSTACK_OF_ASN1_UTF8STRING} - PSTACK_OF_ASN1_UTF8STRING = PSTACK; - {$ENDIF} - {$EXTERNALSYM TS_MSG_IMPRINT} - TS_MSG_IMPRINT = record - hash_algo : PX509_ALGOR; - hashed_msg : PASN1_OCTET_STRING; - end; - {$EXTERNALSYM PTS_MSG_IMPRINT} - PTS_MSG_IMPRINT = ^TS_MSG_IMPRINT; - {$EXTERNALSYM TS_REQ} - TS_REQ = record - version : PASN1_INTEGER; - msg_imprint : PTS_MSG_IMPRINT; - policy_id : PASN1_OBJECT; //* OPTIONAL */ - nonce : PASN1_INTEGER; //* OPTIONAL */ - cert_req : ASN1_BOOLEAN; //* DEFAULT FALSE */ - extensions : PSTACK_OF_X509_EXTENSION; //* [0] OPTIONAL */ - end; - {$EXTERNALSYM PTS_REQ} - PTS_REQ = ^TS_REQ; - {$EXTERNALSYM TS_ACCURACY} - TS_ACCURACY = record - seconds : PASN1_INTEGER; - millis : PASN1_INTEGER; - micros : PASN1_INTEGER; - end; - {$EXTERNALSYM PTS_ACCURACY} - PTS_ACCURACY = ^TS_ACCURACY; - {$EXTERNALSYM TS_TST_INFO} - TS_TST_INFO = record - version : PASN1_INTEGER; - policy_id : PASN1_OBJECT; - msg_imprint : PTS_MSG_IMPRINT; - serial : PASN1_INTEGER; - time : PASN1_GENERALIZEDTIME; - accuracy : PTS_ACCURACY; - ordering : PASN1_BOOLEAN; - nonce : PASN1_INTEGER; - tsa : PGENERAL_NAME; - extensions : PSTACK_OF_X509_EXTENSION; - end; - {$EXTERNALSYM PTS_TST_INFO} - PTS_TST_INFO = ^TS_TST_INFO; - {$EXTERNALSYM TS_STATUS_INFO} - TS_STATUS_INFO = record - status : PASN1_INTEGER; - text : PSTACK_OF_ASN1_UTF8STRING; - failure_info : PASN1_BIT_STRING; - end; - {$EXTERNALSYM PTS_STATUS_INFO} - PTS_STATUS_INFO = ^TS_STATUS_INFO; - {$EXTERNALSYM TS_RESP} - TS_RESP = record - status_info : PTS_STATUS_INFO; - token : PPKCS7; - tst_info : PTS_TST_INFO; - end; - {$EXTERNALSYM PTS_RESP} - PTS_RESP = ^TS_RESP; - {$EXTERNALSYM ESS_ISSUER_SERIAL} - ESS_ISSUER_SERIAL = record - issuer : PSTACK_OF_GENERAL_NAME; - serial : PASN1_INTEGER; - end; - {$EXTERNALSYM PESS_ISSUER_SERIAL} - PESS_ISSUER_SERIAL = ^ESS_ISSUER_SERIAL; - {$EXTERNALSYM ESS_CERT_ID} - ESS_CERT_ID = record - hash : PASN1_OCTET_STRING; //* Always SHA-1 digest. */ - issuer_serial : PESS_ISSUER_SERIAL; - end; - {$EXTERNALSYM PESS_CERT_ID} - PESS_CERT_ID = ^ESS_CERT_ID; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_ESS_CERT_ID} - STACK_OF_ESS_CERT_ID = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_ESS_CERT_ID} - PSTACK_OF_ESS_CERT_ID = ^STACK_OF_ESS_CERT_ID; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_ESS_CERT_ID} - PSTACK_OF_ESS_CERT_ID = PSTACK; - {$ENDIF} - {$EXTERNALSYM ESS_SIGNING_CERT} - ESS_SIGNING_CERT = record - cert_ids : PSTACK_OF_ESS_CERT_ID; - policy_info : PSTACK_OF_POLICYINFO; - end; - {$EXTERNALSYM PESS_SIGNING_CERT} - PESS_SIGNING_CERT = ^ESS_SIGNING_CERT; - {$EXTERNALSYM PTS_resp_ctx} - PTS_resp_ctx = ^TS_resp_ctx; -//* This must return a unique number less than 160 bits long. */ -//typedef ASN1_INTEGER *(*TS_serial_cb)(struct TS_resp_ctx *, void *); - {$EXTERNALSYM TS_serial_cb} - TS_serial_cb = function (p1 : PTS_resp_ctx; p2 : Pointer) : PASN1_INTEGER cdecl; - //* This must return the seconds and microseconds since Jan 1, 1970 in - // the sec and usec variables allocated by the caller. - // Return non-zero for success and zero for failure. */ -//typedef int (*TS_time_cb)(struct TS_resp_ctx *, void *, long *sec, long *usec); - {$EXTERNALSYM TS_time_cb} - TS_time_cb = function (p1 : PTS_resp_ctx; p2 : Pointer; sec, usec : TIdC_LONG) : TIdC_INT cdecl; -///* This must process the given extension. -// * It can modify the TS_TST_INFO object of the context. -// * Return values: !0 (processed), 0 (error, it must set the -// * status info/failure info of the response). -// */ -//typedef int (*TS_extension_cb)(struct TS_resp_ctx *, X509_EXTENSION *, void *); - {$EXTERNALSYM TS_extension_cb} - TS_extension_cb = function (p1 : PTS_resp_ctx; p2 : PX509_EXTENSION; p3 : Pointer) : TIdC_INT cdecl; - {$EXTERNALSYM TS_RESP_CTX} - TS_RESP_CTX = record - signer_cert : PX509; - signer_key : PEVP_PKEY; - certs : PSTACK_OF_X509; //* Certs to include in signed data. */ - policies : PSTACK_OF_ASN1_OBJECT; //* Acceptable policies. */ - default_policy : PASN1_OBJECT; //* It may appear in policies, too. */ - mds : PSTACK_OF_EVP_MD; //* Acceptable message digests. */ - seconds : PASN1_INTEGER; //* accuracy, 0 means not specified. */ - millis : PASN1_INTEGER; //* accuracy, 0 means not specified. */ - micros : PASN1_INTEGER; //* accuracy, 0 means not specified. */ - clock_precision_digits : TIdC_UNSIGNED; //* fraction of seconds in - //time stamp token. */ - flags : TIdC_UNSIGNED; //* Optional info, see values above. */ - - //* Callback functions. */ - serial_cb : TS_serial_cb; - serial_cb_data : Pointer; //* User data for serial_cb. */ - - time_cb : TS_time_cb; - time_cb_data : Pointer; //* User data for time_cb. */ - - extension_cb : TS_extension_cb; - extension_cb_data : Pointer; //* User data for extension_cb. */ - - //* These members are used only while creating the response. */ - request : PTS_REQ; - response : PTS_RESP; - tst_info : PTS_TST_INFO; - end; - {$EXTERNALSYM TS_VERIFY_CTX} - TS_VERIFY_CTX = record - //* Set this to the union of TS_VFY_... flags you want to carry out. */ - flags : TIdC_UNSIGNED; - - //* Must be set only with TS_VFY_SIGNATURE. certs is optional. */ - store : PX509_STORE; - certs : PSTACK_OF_X509; - - //* Must be set only with TS_VFY_POLICY. */ - policy : PASN1_OBJECT; - -// /* Must be set only with TS_VFY_IMPRINT. If md_alg is NULL, -// the algorithm from the response is used. */ - md_alg : PX509_ALGOR; - imprint : PIdAnsiChar; - imprint_len : TIdC_UNSIGNED; - - //* Must be set only with TS_VFY_DATA. */ - data : PBIO; - - //* Must be set only with TS_VFY_TSA_NAME. */ - nonce : PASN1_INTEGER; - - //* Must be set only with TS_VFY_TSA_NAME. */ - tsa_name : PGENERAL_NAME; - end; - {$EXTERNALSYM PTS_VERIFY_CTX} - PTS_VERIFY_CTX = ^TS_VERIFY_CTX; - //comp.h - {$EXTERNALSYM PCOMP_CTX} - PCOMP_CTX = ^COMP_CTX; - {$EXTERNALSYM COMP_METHOD} - COMP_METHOD = record - _type : TIdC_INT; // NID for compression library - name : PIdAnsiChar; // A text string to identify the library - init : function (ctx : PCOMP_CTX) : TIdC_INT; cdecl; - finish : procedure (ctx : PCOMP_CTX); cdecl; - compress : function (ctx : PCOMP_CTX; - _out : PIdAnsiChar; olen : TIdC_UINT; - _in : PIdAnsiChar; ilen : TIdC_UINT) : TIdC_INT; cdecl; - expand : function (ctx : PCOMP_CTX; - _out : PIdAnsiChar; olen : TIdC_UINT; - _in : PIdAnsiChar; ilen : TIdC_UINT) : TIdC_INT; cdecl; - // The following two do NOTHING, but are kept for backward compatibility - ctrl : function : TIdC_INT; cdecl; - callback_ctrl : function : TIdC_INT; cdecl; - end; - {$EXTERNALSYM PCOMP_METHOD} - PCOMP_METHOD = ^COMP_METHOD; - {$EXTERNALSYM COMP_CTX} - COMP_CTX = record - meth : PCOMP_METHOD; - compress_in : TIdC_ULONG; - compress_out : TIdC_ULONG; - expand_in : TIdC_ULONG; - expand_out : TIdC_ULONG; - ex_data : PCRYPTO_EX_DATA; - end; - //srp.h - {$EXTERNALSYM SRP_gN_cache} - SRP_gN_cache = record - b64_bn : PIdAnsiChar; - bn : PBIGNUM; - end; - {$EXTERNALSYM PSRP_gN_cache} - PSRP_gN_cache = ^SRP_gN_cache; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_SRP_gN_cache} - STACK_OF_SRP_gN_cache = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_SRP_gN_cache} - PSTACK_OF_SRP_gN_cache = ^STACK_OF_SRP_gN_cache; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_SRP_gN_cache} - PSTACK_OF_SRP_gN_cache = PSTACK; - {$ENDIF} - {$EXTERNALSYM SRP_user_pwd} - SRP_user_pwd = record - id : PIdAnsiChar; - s : PBIGNUM; - v : PBIGNUM; - g : PBIGNUM; - N : PBIGNUM; - info : PIdAnsiChar; - end; - {$EXTERNALSYM PSRP_user_pwd} - PSRP_user_pwd = ^SRP_user_pwd; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_SRP_user_pwd} - STACK_OF_SRP_user_pwd = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_SRP_user_pwd} - PSTACK_OF_SRP_user_pwd = ^STACK_OF_SRP_user_pwd; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_SRP_user_pwd} - PSTACK_OF_SRP_user_pwd = PSTACK; - {$ENDIF} - {$EXTERNALSYM SRP_VBASE} - SRP_VBASE = record - users_pwd : PSTACK_OF_SRP_user_pwd; - gN_cache : PSTACK_OF_SRP_gN_cache; -//* to simulate a user */ - seed_key : PIdAnsiChar; - default_g : PBIGNUM; - default_N : PBIGNUM; - end; - {$EXTERNALSYM PSRP_VBASE} - PSRP_VBASE = ^SRP_VBASE; - -//*Structure interne pour retenir les couples N et g*/ - {$EXTERNALSYM SRP_gN} - SRP_gN = record - id : PIdAnsiChar; - g : PBIGNUM; - N : PBIGNUM; - end; - {$EXTERNALSYM PSRP_gN} - PSRP_gN = ^SRP_gN; - - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_SRP_gN} - STACK_OF_SRP_gN = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_SRP_gN} - PSTACK_OF_SRP_gN = ^STACK_OF_SRP_gN; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_SRP_gN} - PSTACK_OF_SRP_gN = PSTACK; - {$ENDIF} - //kssl.h - {These are structures for Kerberos support. These will not be complete because - FreePascal, Borland Delphi, and Indy don't support Kerberos. These are here - as place holders so we get an exact OpenSSL API if Kerberos support was compiled - in. - } - {$IFNDEF OPENSSL_NO_KRB5} - {$EXTERNALSYM KSSL_ERR} - KSSL_ERR = record - reason : TIdC_INT; - text : array [0..KSSL_ERR_MAX] of Char; - end; - {$EXTERNALSYM PKSSL_CTX} - {I am not going to do anything to define this because it uses things in the - Kerberos API. Since there's no support for Kerberos, I'm leaving it empty. - We only need the pointer anyway} - - PKSSL_CTX = Pointer; //^KSSL_CTX; - {$ENDIF} - //ssl.h - {$ifndef OPENSSL_NO_SSL_INTERN} - {$EXTERNALSYM PSSL_CIPHER} - PSSL_CIPHER = ^SSL_CIPHER; - {$EXTERNALSYM SSL_CIPHER} - SSL_CIPHER = record - valid : TIdC_INT; - name: PIdAnsiChar; // text name - id: TIdC_ULONG; // id, 4 bytes, first is version - - //* changed in 0.9.9: these four used to be portions of a single value 'algorithms' */ - algorithm_mkey : TIdC_ULONG; //* key exchange algorithm */ - algorithm_auth : TIdC_ULONG; //* server authentication */ - algorithm_enc : TIdC_ULONG; //* symmetric encryption */ - algorithm_mac : TIdC_ULONG; //* symmetric authentication */ - algorithm_ssl : TIdC_ULONG; //* (major) protocol version */ - algo_strength: TIdC_ULONG; // strength and export flags - algorithm2: TIdC_ULONG;// Extra flags - strength_bits: TIdC_INT; // Number of bits really used - alg_bits: TIdC_INT; // Number of bits for algorithm - end; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_SSL_CIPHER} - STACK_OF_SSL_CIPHER = record - _stack: STACK; - end; - {$EXTERNALSYM PSTACK_OF_SSL_CIPHER} - PSTACK_OF_SSL_CIPHER = ^STACK_OF_SSL_CIPHER; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_SSL_CIPHER} - PSTACK_OF_SSL_CIPHER = PSTACK; - {$ENDIF} - - {$EXTERNALSYM PSSL_SESSION} - PSSL_SESSION = ^SSL_SESSION; - {$EXTERNALSYM SSL_SESSION} - SSL_SESSION = record - ssl_version : TIdC_INT; // what ssl version session info is being kept in here? - // only really used in SSLv2 - key_arg_length: TIdC_UINT; - key_arg: Array[0..SSL_MAX_KEY_ARG_LENGTH-1] of Byte; - master_key_length: TIdC_INT; - master_key: Array[0..SSL_MAX_MASTER_KEY_LENGTH-1] of Byte; - // session_id - valid? - session_id_length: TIdC_UINT; - session_id: Array[0..SSL_MAX_SSL_SESSION_ID_LENGTH-1] of Byte; - // this is used to determine whether the session is being reused in - // the appropriate context. It is up to the application to set this, - // via SSL_new - sid_ctx_length: TIdC_UINT; - sid_ctx: array[0..SSL_MAX_SID_CTX_LENGTH-1] of Byte; - {$IFNDEF OPENSSL_NO_KRB5} - krb5_client_princ_len: TIdC_UINT; - krb5_client_princ: array[0..SSL_MAX_KRB5_PRINCIPAL_LENGTH-1] of Byte; - {$ENDIF} -{$ifndef OPENSSL_NO_PSK} - psk_identity_hint : PIdAnsiChar; - psk_identity : PIdAnsiChar; -{$endif} - not_resumable: TIdC_INT; - // The cert is the certificate used to establish this connection - sess_cert : PSESS_CERT; - - //* This is the cert for the other end. - // * On clients, it will be the same as sess_cert->peer_key->x509 - // * (the latter is not enough as sess_cert is not retained - // * in the external representation of sessions, see ssl_asn1.c). */ - peer : PX509; - //* when app_verify_callback accepts a session where the peer's certificate - // * is not ok, we must remember the error for session reuse: */ - verify_result : TIdC_LONG; //* only for servers */ - references : TIdC_INT; - timeout : TIdC_LONG; - time : TIdC_LONG; - compress_meth : TIdC_UINT; //* Need to lookup the method */ - - cipher : PSSL_CIPHER; - cipher_id : TIdC_ULONG; //* when ASN.1 loaded, this - // * needs to be used to load - // * the 'cipher' structure */ - ciphers : PSTACK_OF_SSL_CIPHER; //* shared ciphers? */ - ex_data : CRYPTO_EX_DATA; // application specific data */ - //* These are used to make removal of session-ids more - // * efficient and to implement a maximum cache size. */ - prev, next : PSSL_SESSION; - - {$IFNDEF OPENSSL_NO_TLSEXT} - tlsext_hostname : PIdAnsiChar; - {$IFDEF OPENSSL_NO_EC} - tlsext_ecpointformatlist_length : size_t; - tlsext_ecpointformatlist : PIdAnsiChar; //* peer's list */ - tlsext_ellipticcurvelist_length : size_t; - tlsext_ellipticcurvelist : PIdAnsiChar; //* peer's list */ - {$ENDIF} //* OPENSSL_NO_EC */ - - //* RFC4507 info */ - tlsext_tick : PIdAnsiChar;//* Session ticket */ - tlsext_ticklen : size_t;//* Session ticket length */ - tlsext_tick_lifetime_hint : TIdC_LONG;//* Session lifetime hint in seconds */ - {$ENDIF} -{$ifndef OPENSSL_NO_SRP} - srp_username : PIdAnsiChar; -{$endif} - end; - {$ENDIF} - -{$ifndef OPENSSL_NO_SRP} - -{$ifndef OPENSSL_NO_SSL_INTERN} - - {$EXTERNALSYM SRP_CTX} - SRP_CTX = record - //* param for all the callbacks */ - SRP_cb_arg : Pointer; - //* set client Hello login callback */ - TLS_ext_srp_username_callback : function(para1 : PSSL; para2 : TIdC_INT; para3 : Pointer) : TIdC_INT cdecl; - //int (*TLS_ext_srp_username_callback)(SSL *, int *, void *); - //* set SRP N/g param callback for verification */ - SRP_verify_param_callback : function(para1 : PSSL; para2 : Pointer) : TIdC_INT cdecl; -// int (*SRP_verify_param_callback)(SSL *, void *); - //* set SRP client passwd callback */ - SRP_give_srp_client_pwd_callback : function(para1 : PSSL; para2 : Pointer) : PIdAnsiChar cdecl; - // char *(*SRP_give_srp_client_pwd_callback)(SSL *, void *); - login : PIdAnsiChar; - N, g, s, B, A : PBIGNUM; - _a, _b, v : PBIGNUM; - info : PIdAnsiChar; - strength : TIdC_INT; - srp_Mask : TIdC_ULONG; - end; - {$EXTERNALSYM PSRP_CTX} - PSRP_CTX = ^SRP_CTX; -{$endif} -{$ENDIF} - // typedef struct ssl_method_st - {$NODEFINE PSSL_CTX} - PSSL_CTX = ^SSL_CTX; - {$EXTERNALSYM SRTP_PROTECTION_PROFILE} - SRTP_PROTECTION_PROFILE = record - name : PIdAnsiChar; - id : TIdC_ULONG; - end; - {$EXTERNALSYM PTLS_SESSION_TICKET_EXT} - PTLS_SESSION_TICKET_EXT = ^TLS_SESSION_TICKET_EXT; - {$EXTERNALSYM TLS_SESSION_TICKET_EXT} - TLS_SESSION_TICKET_EXT = record - length : TIdC_USHORT; - data : Pointer; - end; - {$EXTERNALSYM PSRTP_PROTECTION_PROFILE} - PSRTP_PROTECTION_PROFILE = ^SRTP_PROTECTION_PROFILE; - {$EXTERNALSYM tls_session_ticket_ext_cb_fn} - tls_session_ticket_ext_cb_fn = function(S : PSSL; data : PIdAnsiChar; len : TIdC_INT; arg : Pointer) : TIdC_INT cdecl; - {$EXTERNALSYM tls_session_secret_cb_fn} - tls_session_secret_cb_fn = function(S : PSSL; - secret : Pointer; - var secret_len : TIdC_INT; - peer_ciphers : PSTACK_OF_SSL_CIPHER; - out cipher : PSSL_CIPHER) : TIdC_INT cdecl; - {$EXTERNALSYM SSL_METHOD_PROC} - SSL_METHOD_PROC = procedure; cdecl; - {$NODEFINE PSSL_METHOD} - PSSL_METHOD = ^SSL_METHOD; - {$NODEFINE SSL_METHOD} - SSL_METHOD = record - version: TIdC_INT; - ssl_new: function(s: PSSL): TIdC_INT; cdecl; - ssl_clear: procedure(s: PSSL); cdecl; - ssl_free: procedure(s: PSSL); cdecl; - ssl_accept: function(s: PSSL): TIdC_INT; cdecl; - ssl_connect: function(s: PSSL): TIdC_INT; cdecl; - ssl_read: function(s: PSSL; buf: Pointer; len: TIdC_INT):TIdC_INT; cdecl; - ssl_peek: function(s: PSSL; buf: Pointer; len: TIdC_INT):TIdC_INT; cdecl; - ssl_write: function(s: PSSL; const buf: Pointer; len:TIdC_INT): TIdC_INT; cdecl; - ssl_shutdown: function(s: PSSL): TIdC_INT; cdecl; - ssl_renegotiate: function(s: PSSL): TIdC_INT; cdecl; - ssl_renegotiate_check: function(s: PSSL): TIdC_INT; cdecl; - ssl_get_message: function(s: PSSL; st1, stn, mt: TIdC_INT; max: TIdC_LONG; ok: PIdC_INT): TIdC_LONG; cdecl; - ssl_read_bytes: function(s: PSSL; _type: TIdC_INT; buf:PByte; len, peek: TIdC_INT): TIdC_INT; cdecl; - ssl_write_bytes: function(s: PSSL; _type: TIdC_INT; const buf: Pointer; len: TIdC_INT): TIdC_INT; cdecl; - ssl_dispatch_alert: function(s: PSSL): TIdC_INT; cdecl; - ssl_ctrl: function(s: PSSL; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG; cdecl; - ssl_ctx_ctrl: function(ctx: PSSL_CTX; cmd: TIdC_INT; larg:TIdC_LONG; parg: Pointer): TIdC_LONG; cdecl; - get_cipher_by_char: function(const ptr: PByte):PSSL_CIPHER; cdecl; - put_cipher_by_char: function(const cipher: PSSL_CIPHER;ptr: PByte): TIdC_INT; cdecl; - ssl_pending: function(const s: PSSL): TIdC_INT; cdecl; - num_ciphers: function: TIdC_INT; cdecl; - get_cipher: function(ncipher: TIdC_UNSIGNED): PSSL_CIPHER;cdecl; - get_ssl_method: function(version: TIdC_INT): PSSL_METHOD; cdecl; - get_timeout: function : TIdC_LONG; cdecl; - ssl3_enc: PSSL3_ENC_METHOD; - ssl_version: function : TIdC_INT; cdecl; - ssl_callback_ctrl: function(s: PSSL; cb_id: TIdC_INT; fp: SSL_METHOD_PROC): TIdC_LONG; cdecl; - ssl_ctx_callback_ctrl: function(s: PSSL_CTX; cb_id:TIdC_INT; fp: SSL_METHOD_PROC): TIdC_LONG; cdecl; - end; - {$EXTERNALSYM PPSSL_METHOD} - PPSSL_METHOD =^PSSL_METHOD; -// This callback type is used inside SSL_CTX, SSL, and in the functions that set -// them. It is used to override the generation of SSL/TLS session IDs in a -// server. Return value should be zero on an error, non-zero to proceed. Also, -// callbacks should themselves check if the id they generate is unique otherwise -// the SSL handshake will fail with an error - callbacks can do this using the -// 'ssl' value they're passed by; -// SSL_has_matching_session_id(ssl, id, *id_len) -// The length value passed in is set at the maximum size the session ID can be. -// In SSLv2 this is 16 bytes, whereas SSLv3/TLSv1 it is 32 bytes. The callback -// can alter this length to be less if desired, but under SSLv2 session IDs are -// supposed to be fixed at 16 bytes so the id will be padded after the callback -// returns in this case. It is also an error for the callback to set the size to -// zero. - {$EXTERNALSYM PGEN_SESSION_CB} - PGEN_SESSION_CB = function (const SSL : PSSL; id : PByte; id_len : TIdC_UINT) : TIdC_INT; cdecl; - {$EXTERNALSYM SSL_COMP} - SSL_COMP = record - id : TIdC_INT; - name : PIdAnsiChar; - {$IFNDEF OPENSSL_NO_COMP} - method : PCOMP_METHOD; - {$ELSE} - method : PIdAnsiChar; - {$ENDIF} - end; - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_COMP} - STACK_OF_COMP = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_COMP} - PSTACK_OF_COMP = ^STACK_OF_COMP; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_COMP} - PSTACK_OF_COMP = PSTACK; - {$ENDIF} - - {$EXTERNALSYM PSSL_CTEX_tlsext_servername_callback} - PSSL_CTEX_tlsext_servername_callback = function(ssl : PSSL; Para1 : TIdC_INT; Para2 : Pointer) : TIdC_INT; cdecl; - {$EXTERNALSYM PSSL_CTX_info_callback} - PSSL_CTX_info_callback = procedure (const ssl : PSSL; _type, val : TIdC_INT); cdecl; // used if SSL's info_callback is NULL -//int (*tlsext_ticket_key_cb)(SSL *ssl, -// unsigned char *name, unsigned char *iv, -// EVP_CIPHER_CTX *ectx, -// HMAC_CTX *hctx, int enc); - {$EXTERNALSYM Ptlsext_ticket_key_cb} - Ptlsext_ticket_key_cb = function (ssl : PSSL; name, iv : PIdAnsiChar; - ectx : PEVP_CIPHER_CTX; - hctx : PHMAC_CTX; enc : TIdC_INT) : TIdC_INT; cdecl; -// int (*tlsext_status_cb)(SSL *ssl, void *arg); - {$EXTERNALSYM Ptlsext_status_cb} - Ptlsext_status_cb = function (ssl : PSSL; arg : Pointer) : TIdC_INT; cdecl; - {$EXTERNALSYM SSL_CTX_stats} - SSL_CTX_stats = record - sess_connect: TIdC_INT; // SSL new conn - started - sess_connect_renegotiate: TIdC_INT; // SSL reneg - requested - sess_connect_good: TIdC_INT; // SSL new conne/reneg - finished - sess_accept: TIdC_INT; // SSL new accept - started - sess_accept_renegotiate: TIdC_INT; // SSL reneg - requested - sess_accept_good: TIdC_INT; // SSL accept/reneg - finished - sess_miss: TIdC_INT; // session lookup misses - sess_timeout: TIdC_INT; // reuse attempt on timeouted session - sess_cache_full: TIdC_INT; // session removed due to full cache - sess_hit: TIdC_INT; // session reuse actually done - sess_cb_hit: TIdC_INT; // session-id that was not - // in the cache was - // passed back via the callback. This - // indicates that the application is - // supplying session-id's from other - // processes - spooky :-) - end; - {$EXTERNALSYM lash_of_SSL_SESSION} - lash_of_SSL_SESSION = record - dummy : TIdC_INT; - end; - {$EXTERNALSYM Plash_of_SSL_SESSION} - Plash_of_SSL_SESSION = ^lash_of_SSL_SESSION; -{$ifndef OPENSSL_NO_BUF_FREELISTS} - {$EXTERNALSYM Pssl3_buf_freelist_st} - Pssl3_buf_freelist_st = Pointer; -{$endif} - - {$IFDEF DEBUG_SAFESTACK} - {$EXTERNALSYM STACK_OF_SRTP_PROTECTION_PROFILE} - STACK_OF_SRTP_PROTECTION_PROFILE = record - _stack: stack; - end; - {$EXTERNALSYM PSTACK_OF_SRTP_PROTECTION_PROFILE} - PSTACK_OF_SRTP_PROTECTION_PROFILE = ^STACK_OF_SRTP_PROTECTION_PROFILE; - {$ELSE} - //I think the DECLARE_STACK_OF macro is empty - {$EXTERNALSYM PSTACK_OF_SRTP_PROTECTION_PROFILE} - PSTACK_OF_SRTP_PROTECTION_PROFILE = PSTACK; - {$ENDIF} - {$NODEFINE SSL_CTX} - SSL_CTX = record - method: PSSL_METHOD; - cipher_list: PSTACK_OF_SSL_CIPHER; - // same as above but sorted for lookup - cipher_list_by_id: PSTACK_OF_SSL_CIPHER; - cert_store: PX509_STORE; - sessions: Plash_of_SSL_SESSION; - // a set of SSL_SESSIONs - // Most session-ids that will be cached, default is - // SSL_SESSION_CACHE_MAX_SIZE_DEFAULT. 0 is unlimited. - session_cache_size: TIdC_ULONG; - session_cache_head: PSSL_SESSION; - session_cache_tail: PSSL_SESSION; - // This can have one of 2 values, ored together, - // SSL_SESS_CACHE_CLIENT, - // SSL_SESS_CACHE_SERVER, - // Default is SSL_SESSION_CACHE_SERVER, which means only - // SSL_accept which cache SSL_SESSIONS. - session_cache_mode: TIdC_INT; - session_timeout: TIdC_LONG; - // If this callback is not null, it will be called each - // time a session id is added to the cache. If this function - // returns 1, it means that the callback will do a - // SSL_SESSION_free() when it has finished using it. Otherwise, - // on 0, it means the callback has finished with it. - // If remove_session_cb is not null, it will be called when - // a session-id is removed from the cache. After the call, - // OpenSSL will SSL_SESSION_free() it. - new_session_cb: function (ssl : PSSL; sess: PSSL_SESSION): TIdC_INT; cdecl; - remove_session_cb: procedure (ctx : PSSL_CTX; sess : PSSL_SESSION); cdecl; - get_session_cb: function (ssl : PSSL; data : PByte; len: TIdC_INT; copy : PIdC_INT) : PSSL_SESSION; cdecl; - stats : SSL_CTX_stats; - - references: TIdC_INT; - // if defined, these override the X509_verify_cert() calls - app_verify_callback: function (_para1 : PX509_STORE_CTX; _para2 : Pointer) : TIdC_INT; cdecl; - app_verify_arg: Pointer; - // before OpenSSL 0.9.7, 'app_verify_arg' was ignored - // ('app_verify_callback' was called with just one argument) - // Default password callback. - default_passwd_callback: ppem_password_cb; - // Default password callback user data. - default_passwd_callback_userdata: Pointer; - // get client cert callback - client_cert_cb: function (SSL : PSSL; x509 : PPX509; pkey : PPEVP_PKEY) : TIdC_INT; cdecl; - // verify cookie callback - app_gen_cookie_cb: function (ssl : PSSL; cookie : PByte; cookie_len : TIdC_UINT) : TIdC_INT; cdecl; - app_verify_cookie_cb: Pointer; - ex_data : CRYPTO_EX_DATA; - rsa_md5 : PEVP_MD; // For SSLv2 - name is 'ssl2-md5' - md5: PEVP_MD; // For SSLv3/TLSv1 'ssl3-md5' - sha1: PEVP_MD; // For SSLv3/TLSv1 'ssl3->sha1' - extra_certs: PSTACK_OF_X509; - comp_methods: PSTACK_OF_COMP; // stack of SSL_COMP, SSLv3/TLSv1 - // Default values used when no per-SSL value is defined follow - info_callback: PSSL_CTX_info_callback; // used if SSL's info_callback is NULL - // what we put in client cert requests - client_CA : PSTACK_OF_X509_NAME; - // Default values to use in SSL structures follow (these are copied by SSL_new) - options : TIdC_ULONG; - mode : TIdC_ULONG; - max_cert_list : TIdC_LONG; - cert : PCERT; - read_ahead : TIdC_INT; - // callback that allows applications to peek at protocol messages - msg_callback : procedure (write_p, version, content_type : TIdC_INT; const buf : Pointer; len : size_t; ssl : PSSL; arg : Pointer); cdecl; - msg_callback_arg : Pointer; - verify_mode : TIdC_INT; - sid_ctx_length : TIdC_UINT; - sid_ctx : array[0..SSL_MAX_SID_CTX_LENGTH - 1] of TIdAnsiChar; - default_verify_callback : function(ok : TIdC_INT; ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; // called 'verify_callback' in the SSL - // Default generate session ID callback. - generate_session_id : PGEN_SESSION_CB; - param : PX509_VERIFY_PARAM; - {$IFDEF OMIT_THIS} - purpose : TIdC_INT; // Purpose setting - trust : TIdC_INT; // Trust setting - {$ENDIF} - - quiet_shutdown : TIdC_INT; - //* Maximum amount of data to send in one fragment. - // * actual record size can be more than this due to - // * padding and MAC overheads. - // */ - max_send_fragment : TIdC_UINT; - {$IFNDEF OPENSSL_ENGINE} - ///* Engine to pass requests for client certs to - // */ - client_cert_engine : PENGINE; - {$ENDIF} - {$IFNDEF OPENSSL_NO_TLSEXT} -//* TLS extensions servername callback */ - tlsext_servername_callback : PSSL_CTEX_tlsext_servername_callback; - tlsext_servername_arg : Pointer; - //* RFC 4507 session ticket keys */ - tlsext_tick_key_name : array [0..(16-1)] of TIdAnsiChar; - tlsext_tick_hmac_key : array [0..(16-1)] of TIdAnsiChar; - tlsext_tick_aes_key : array [0..(16-1)] of TIdAnsiChar; - //* Callback to support customisation of ticket key setting */ - // int (*tlsext_ticket_key_cb)(SSL *ssl, - // unsigned char *name, unsigned char *iv, - // EVP_CIPHER_CTX *ectx, - // HMAC_CTX *hctx, int enc); - tlsext_ticket_key_cb : Ptlsext_ticket_key_cb; - //* certificate status request info */ - //* Callback for status request */ - //int (*tlsext_status_cb)(SSL *ssl, void *arg); - tlsext_status_cb : Ptlsext_status_cb; - tlsext_status_arg : Pointer; - {$ENDIF} - //* draft-rescorla-tls-opaque-prf-input-00.txt information */ - tlsext_opaque_prf_input_callback : function(para1 : PSSL; peerinput : Pointer; len : size_t; arg : Pointer ) : TIdC_INT cdecl; - //int (*tlsext_opaque_prf_input_callback)(SSL *, void *peerinput, size_t len, void *arg); - tlsext_opaque_prf_input_callback_arg : Pointer; - -{$ifndef OPENSSL_NO_PSK} - psk_identity_hint : PIdAnsiChar; - psk_client_callback : function (ssl : PSSL; hint : PIdAnsiChar; - identity : PIdAnsiChar; max_identity_len : TIdC_UINT; - psk : PIdAnsiChar; max_psk_len : TIdC_UINT ) : TIdC_UINT cdecl; - // unsigned int (*psk_client_callback)(SSL *ssl, const char *hint, char *identity, -// unsigned int max_identity_len, unsigned char *psk, -// unsigned int max_psk_len); - psk_server_callback : function (ssl : PSSL; identity, psk : PIdAnsiChar; max_psk_len : TIdC_UINT) : TIdC_UINT cdecl; -// unsigned int (*psk_server_callback)(SSL *ssl, const char *identity, -// unsigned char *psk, unsigned int max_psk_len); -{$endif} - -{$ifndef OPENSSL_NO_BUF_FREELISTS} - freelist_max_len : TIdC_UINT; - wbuf_freelist : Pssl3_buf_freelist_st; - rbuf_freelist : Pssl3_buf_freelist_st; -{$endif} -{$ifndef OPENSSL_NO_SRP} - srp_ctx : SRP_CTX; //* ctx for SRP authentication */ -{$endif} - -{$ifndef OPENSSL_NO_TLSEXT} -//# ifndef OPENSSL_NO_NEXTPROTONEG - //* Next protocol negotiation information */ - //* (for experimental NPN extension). */ - - //* For a server, this contains a callback function by which the set of - // * advertised protocols can be provided. */ - next_protos_advertised_cb : function(s : PSSL; out but : PIdAnsiChar; - out len : TIdC_UINT; arg : Pointer) : TIdC_INT cdecl; -// int (*next_protos_advertised_cb)(SSL *s, const unsigned char **buf, -// unsigned int *len, void *arg); - next_protos_advertised_cb_arg : Pointer; - //* For a client, this contains a callback function that selects the - // * next protocol from the list provided by the server. */ - next_proto_select_cb : function(s : PSSL; out _out : PIdAnsiChar; - outlen : PIdAnsiChar; - _in : PIdAnsiChar; - inlen : TIdC_UINT; - arg : Pointer) : TIdC_INT cdecl; -// int (*next_proto_select_cb)(SSL *s, unsigned char **out, -// unsigned char *outlen, -// const unsigned char *in, -// unsigned int inlen, -// void *arg); - next_proto_select_cb_arg : Pointer; -//# endif - //* SRTP profiles we are willing to do from RFC 5764 */ - srtp_profiles : PSTACK_OF_SRTP_PROTECTION_PROFILE; -{$endif} - end; - {$EXTERNALSYM PSSL2_STATE} - PSSL2_STATE = ^SSL2_STATE; - {$EXTERNALSYM PSSL3_STATE} - PSSL3_STATE = ^SSL3_STATE; - {$EXTERNALSYM PDTLS1_STATE} - PDTLS1_STATE = ^DTLS1_STATE; -//* TLS extension debug callback */ - {$EXTERNALSYM PSSL_tlsext_debug_cb} - PSSL_tlsext_debug_cb = procedure (s : PSSL; client_server : TIdC_INT; - _type : TIdC_INT; data : PIdAnsiChar; len : TIdC_INT; arg : Pointer); cdecl; - {$NODEFINE SSL} - SSL = record - // protocol version - // (one of SSL2_VERSION, SSL3_VERSION, TLS1_VERSION, DTLS1_VERSION) - version : TIdC_INT; - _type : TIdC_INT; //* SSL_ST_CONNECT or SSL_ST_ACCEPT */ - method : PSSL_METHOD; //* SSLv3 */ - // There are 2 BIO's even though they are normally both the - // same. This is so data can be read and written to different - // handlers - {$IFNDEF OPENSSL_NO_BIO} - rbio : PBIO; // used by SSL_read - wbio : PBIO; // used by SSL_write - bbio : PBIO; // used during session-id reuse to concatenate messages - {$ELSE} - rbio : PIdAnsiChar; // used by SSL_read - wbio : PIdAnsiChar; // used by SSL_write - bbio : PIdAnsiChar; - {$ENDIF} - // This holds a variable that indicates what we were doing - // when a 0 or -1 is returned. This is needed for - // non-blocking IO so we know what request needs re-doing when - // in SSL_accept or SSL_connect - rwstate : TIdC_INT; - // true when we are actually in SSL_accept() or SSL_connect() - in_handshake : TIdC_INT; - handshake_func : function (_para1 : PSSL) : TIdC_INT; cdecl; - // Imagine that here's a boolean member "init" that is - // switched as soon as SSL_set_{accept/connect}_state - // is called for the first time, so that "state" and - // handshake_func" are properly initialized. But as - // handshake_func is == 0 until then, we use this - // test instead of an "init" member. - server : TIdC_INT; // are we the server side? - mostly used by SSL_clear - new_session : TIdC_INT;//* Generate a new session or reuse an old one. - //* NB: For servers, the 'new' session may actually be a previously - //* cached session or even the previous session unless - //* SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION is set */ - quiet_shutdown : TIdC_INT; // don't send shutdown packets - shutdown : TIdC_INT; // we have shut things down, 0x01 sent, 0x02 - // for received - state : TIdC_INT; // where we are - rstate : TIdC_INT; // where we are when reading - init_buf : PBUF_MEM; // buffer used during init - init_msg : Pointer; // pointer to handshake message body, set by ssl3_get_message() - init_num : TIdC_INT; // amount read/written - init_off : TIdC_INT; // amount read/written - // used internally to point at a raw packet - packet : PIdAnsiChar; - packet_length : TIdC_UINT; - s2 : Pssl2_state; // SSLv2 variables - s3 : Pssl3_state; // SSLv3 variables - d1 : Pdtls1_state; // DTLSv1 variables - read_ahead : TIdC_INT; // Read as many input bytes as possible (for non-blocking reads) - // callback that allows applications to peek at protocol messages - msg_callback : procedure(write_p, version, content_type : TIdC_INT; - const buf : Pointer; len : size_t; ssl : PSSL; arg : Pointer); cdecl; - msg_callback_arg : Pointer; - hit : TIdC_INT; //* reusing a previous session */ - param : PX509_VERIFY_PARAM; - {$IFDEF OMIT_THIS} - purpose : TIdC_INT; // Purpose setting - trust : TIdC_INT; // Trust setting - {$ENDIF} - // crypto - cipher_list : PSTACK_OF_SSL_CIPHER; - cipher_list_by_id : PSTACK_OF_SSL_CIPHER; - - //* These are the ones being used, the ones in SSL_SESSION are - // * the ones to be 'copied' into these ones */ - mac_flags : TIdC_INT; - // These are the ones being used, the ones in SSL_SESSION are - // the ones to be 'copied' into these ones - enc_read_ctx : PEVP_CIPHER_CTX; // cryptographic state - read_hash : PEVP_MD_CTX; // used for mac generation - {$IFNDEF OPENSSL_NO_COMP} - expand : PCOMP_CTX; // uncompress - {$ELSE} - expand : PIdAnsiChar; - {$ENDIF} - enc_write_ctx : PEVP_CIPHER_CTX; // cryptographic state - write_hash : PEVP_MD_CTX; // used for mac generation - {$IFNDEF OPENSSL_NO_COMP} - compress : PCOMP_CTX; // compression - {$ELSE} - compress : PIdAnsiChar; - {$ENDIF} - // session info - // client cert? - // This is used to hold the server certificate used - cert : PCERT; - // the session_id_context is used to ensure sessions are only reused - // in the appropriate context - sid_ctx_length : TIdC_UINT; - sid_ctx : array [0..SSL_MAX_SID_CTX_LENGTH -1] of TIdAnsiChar; - // This can also be in the session once a session is established - session : PSSL_SESSION; - // Default generate session ID callback. - generate_session_id : PGEN_SESSION_CB; - // Used in SSL2 and SSL3 - verify_mode : TIdC_INT; // 0 don't care about verify failure. - // 1 fail if verify fails - verify_callback : function (ok : TIdC_INT; ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; // fail if callback returns 0 - info_callback : procedure(const ssl : PSSL; _type, val : TIdC_INT) ; cdecl; - error : TIdC_INT; // error bytes to be written - error_code : TIdC_INT; // actual code - {$IFNDEF OPENSSL_NO_KRB5} - kssl_ctx : PKSSL_CTX; // Kerberos 5 context - {$ENDIF} -{$ifndef OPENSSL_NO_PSK} - psk_client_callback : function(ssl : PSSL; hint : PIdAnsiChar; - identity : PIdAnsiChar; - max_identity_len : TIdC_UINT; - psk : PIdAnsiChar; - max_psk_len : TIdC_UINT) : TIdC_UINT cdecl; -// unsigned int (*psk_client_callback)(SSL *ssl, const char *hint, char *identity, -// unsigned int max_identity_len, unsigned char *psk, -// unsigned int max_psk_len); - psk_server_callback : function(ssl : PSSL; identity : PIdAnsiChar; - psk : PIdAnsiChar; max_psk_len : TIdC_UINT) : TIdC_UINT cdecl; -// unsigned int (*psk_server_callback)(SSL *ssl, const char *identity, -// unsigned char *psk, unsigned int max_psk_len); -{$endif} - ctx : PSSL_CTX; - // set this flag to 1 and a sleep(1) is put into all SSL_read() - // and SSL_write() calls, good for nbio debuging :-) - debug : TIdC_INT; - // extra application data - verify_result : TIdC_LONG; - ex_data : CRYPTO_EX_DATA; - // for server side, keep the list of CA_dn we can use - client_CA : PSTACK_OF_X509_NAME; - references : TIdC_INT; - options : TIdC_ULONG; // protocol behaviour - mode : TIdC_ULONG; // API behaviour - max_cert_list : TIdC_LONG; - first_packet : TIdC_INT; - client_version : TIdC_INT; // what was passed, used for - // SSLv3/TLS rollback check - max_send_fragment : TIdC_UINT; - {$IFNDEF OPENSSL_NO_TLSEXT} - //* TLS extension debug callback */ - tlsext_debug_cb : PSSL_tlsext_debug_cb; - tlsext_debug_arg : Pointer; - tlsext_hostname : PIdAnsiChar; - servername_done : TIdC_INT; //* no further mod of servername - // 0 : call the servername extension callback. - // 1 : prepare 2, allow last ack just after in server callback. - // 2 : don't call servername callback, no ack in server hello - //*/ - //* certificate status request info */ - //* Status type or -1 if no status type */ - tlsext_status_type : TIdC_INT; - //* Expect OCSP CertificateStatus message */ - tlsext_status_expected : TIdC_INT; - -{$ifndef OPENSSL_NO_EC} - tlsext_ecpointformatlist_length : size_t; - tlsext_ecpointformatlist : PIdAnsiChar; //* our list */ - tlsext_ellipticcurvelist_length : size_t; - tlsext_ellipticcurvelist : PIdAnsiChar; //* our list */ -{$endif} //* OPENSSL_NO_EC */ - - - //* draft-rescorla-tls-opaque-prf-input-00.txt information to be used for handshakes */ - tlsext_opaque_prf_input : Pointer; - tlsext_opaque_prf_input_len : size_t; - - //* TLS Session Ticket extension override */ - tlsext_session_ticket : PTLS_SESSION_TICKET_EXT; - - //* TLS Session Ticket extension callback */ - tls_session_ticket_ext_cb : tls_session_ticket_ext_cb_fn; - tls_session_ticket_ext_cb_arg : Pointer; - - //* TLS pre-shared secret session resumption */ - tls_session_secret_cb : tls_session_secret_cb_fn; - tls_session_secret_cb_arg : Pointer; - - initial_ctx : PSSL_CTX; //* initial ctx, used to store sessions */ - -{$ifndef OPENSSL_NO_NEXTPROTONEG} - ///* Next protocol negotiation. For the client, this is the protocol that - // * we sent in NextProtocol and is set when handling ServerHello - // * extensions. - // * - // * For a server, this is the client's selected_protocol from - // * NextProtocol and is set when handling the NextProtocol message, - // * before the Finished message. */ - next_proto_negotiated : PIdAnsiChar; - next_proto_negotiated_len : Byte; -{$endif} - - //* OCSP status request only */ - tlsext_ocsp_ids : PSTACK_OF_OCSP_RESPID;//STACK_OF(OCSP_RESPID) *tlsext_ocsp_ids; - tlsext_ocsp_exts : PX509_EXTENSIONS; - //* OCSP response received or to be sent */ - tlsext_ocsp_resp : PIdAnsiChar; - tlsext_ocsp_resplen : TIdC_INT; - //* RFC4507 session ticket expected to be received or sent */ - tlsext_ticket_expected : TIdC_INT; - _initial_ctx : PSSL_CTX; //* initial ctx, used to store sessions */ - {$DEFINE session_ctx} - {$DEFINE initial_ctx} -{$ELSE} - {$DEFINE ctx} - {$DEFINE session_ctx} -{$ENDIF} - end; - //ssl2.h - {$EXTERNALSYM SSL2_STATE} - SSL2_STATE = record - three_byte_header : TIdC_INT; - clear_text : TIdC_INT; // clear text - escape : TIdC_INT; // not used in SSLv2 - ssl2_rollback : TIdC_INT; // used if SSLv23 rolled back to SSLv2 - // non-blocking io info, used to make sure the same - // args were passwd - wnum : TIdC_UINT; // number of bytes sent so far - wpend_tot : TIdC_INT; - wpend_buf : PByte; - wpend_off : TIdC_INT; // offset to data to write - wpend_len : TIdC_INT; // number of bytes passwd to write - wpend_ret : TIdC_INT; // number of bytes to return to caller - // buffer raw data - rbuf_left : TIdC_INT; - rbuf_offs : TIdC_INT; - rbuf : PIdAnsiChar; - wbuf : PIdAnsiChar; - write_ptr : PIdAnsiChar; // used to point to the start due to 2/3 byte header. */ - padding : TIdC_UINT; - rlength : TIdC_UINT; // passed to ssl2_enc - ract_data_length : TIdC_INT; // Set when things are encrypted. - wlength : TIdC_UINT; // passed to ssl2_enc - wact_data_length : TIdC_INT; // Set when things are decrypted. - ract_data : PIdAnsiChar; - wact_data : PIdAnsiChar; - mac_data : PIdAnsiChar; - read_key : PIdAnsiChar; - write_key : PIdAnsiChar; - // Stuff specifically to do with this SSL session - challenge_length : TIdC_UINT; - challenge : array [0..SSL2_MAX_CHALLENGE_LENGTH -1] of TIdAnsiChar; - conn_id_length : TIdC_UINT; - conn_id : array [0..SSL2_MAX_CONNECTION_ID_LENGTH -1] of TIdAnsiChar; - key_material_length : TIdC_UINT; - key_material : array[0..(SSL2_MAX_KEY_MATERIAL_LENGTH*2)-1] of TIdAnsiChar; - read_sequence : TIdC_ULONG; - write_sequence : TIdC_ULONG; - tmp_conn_id_length : TIdC_UINT; - tmp_cert_type : TIdC_UINT; - tmp_cert_length : TIdC_UINT; - tmp_csl : TIdC_UINT; - tmp_clear : TIdC_UINT; - tmp_enc : TIdC_UINT; - tmp_ccl : array [0..SSL2_MAX_CERT_CHALLENGE_LENGTH -1] of TIdAnsiChar; - tmp_cipher_spec_length : TIdC_UINT; - tmp_session_id_length : TIdC_UINT; - tmp_clen : TIdC_UINT; - tmp_rlen : TIdC_UINT; - end; - //sl3.h - {$IFNDEF OPENSSL_NO_SSL_INTERN} - {$EXTERNALSYM PSSL3_RECORD} - PSSL3_RECORD = ^SSL3_RECORD; - {$EXTERNALSYM SSL3_RECORD} - SSL3_RECORD = record - {*r *} _type : TIdC_INT; // type of record - {*rw*} length : TIdC_UINT; // How many bytes available - {*r *} off : TIdC_UINT; // read/write offset into 'buf' - {*rw*} data : PIdAnsiChar; // pointer to the record data - {*rw*} input : PIdAnsiChar; // where the decode bytes are - {*r *} comp : PIdAnsiChar; // only used with decompression - malloc()ed - {*r *} epoch : TIdC_ULONG; // epoch number, needed by DTLS1 - {*r *} seq_num : array [0..7] of Byte; //* sequence number, needed by DTLS1 */ - end; - {$EXTERNALSYM PSSL3_BUFFER} - PSSL3_BUFFER = ^SSL3_BUFFER; - {$EXTERNALSYM SSL3_BUFFER} - SSL3_BUFFER = record - buf : PIdAnsiChar; // at least SSL3_RT_MAX_PACKET_SIZE bytes, - // see ssl3_setup_buffers() - len : size_t; // buffer size - offset : TIdC_INT; // where to 'copy from' - left : TIdC_INT; // how many bytes left - end; - - {$EXTERNALSYM SSL3_STATE} - SSL3_STATE = record - flags : TIdC_LONG; - delay_buf_pop_ret : TIdC_INT; - - read_sequence : array [0..7] of TIdAnsiChar; - read_mac_secret_size : TIdC_INT; - read_mac_secret : array [0..EVP_MAX_MD_SIZE -1] of TIdAnsiChar; - write_sequence : array [0..7] of TIdAnsiChar; - write_mac_secret_size : TIdC_INT; - write_mac_secret : array [0..EVP_MAX_MD_SIZE - 1] of TIdAnsiChar; - server_random : array [0..SSL3_RANDOM_SIZE - 1] of TIdAnsiChar; - client_random : array [0..SSL3_RANDOM_SIZE -1] of TIdAnsiChar; - // flags for countermeasure against known-IV weakness - need_empty_fragments : TIdC_INT; - empty_fragment_done : TIdC_INT; - - //* The value of 'extra' when the buffers were initialized */ - init_extra : TIdC_INT; - rbuf : PSSL3_BUFFER; //* read IO goes into here */ - wbuf : PSSL3_BUFFER; //* write IO goes into here */ - rrec : PSSL3_RECORD; //* each decoded record goes in here */ - wrec : PSSL3_RECORD; //* goes out from here */ - // storage for Alert/Handshake protocol data received but not - // yet processed by ssl3_read_bytes: - alert_fragment : array [0..1] of PIdAnsiChar; - alert_fragment_len : TIdC_UINT; - handshake_fragment : array [0..3] of PIdAnsiChar; - handshake_fragment_len : TIdC_UINT; - // partial write - check the numbers match - wnum : TIdC_UINT; // number of bytes sent so far - wpend_tot : TIdC_INT; // number bytes written - wpend_type : TIdC_INT; - wpend_ret : TIdC_INT; // number of bytes submitted - wpend_buf : PByte; - // used during startup, digest all incoming/outgoing packets */ - handshake_buffer : PBIO; - //* When set of handshake digests is determined, buffer is hashed - // * and freed and MD_CTX-es for all required digests are stored in - // * this array */ - handshake_dgst : PPEVP_MD_CTX; - - finish_dgst2 : PEVP_MD_CTX; - // this is set whenerver we see a change_cipher_spec message - // come in when we are not looking for one - change_cipher_spec : TIdC_INT; - warn_alert : TIdC_INT; - fatal_alert : TIdC_INT; - // we allow one fatal and one warning alert to be outstanding, - // send close alert via the warning alert */ - alert_dispatch : TIdC_INT; - send_alert : array [0..1] of TIdAnsiChar; - // This flag is set when we should renegotiate ASAP, basically when - // there is no more data in the read or write buffers - renegotiate : TIdC_INT; - total_renegotiations : TIdC_INT; - num_renegotiations : TIdC_INT; - in_read_app_data : TIdC_INT; - - //* Opaque PRF input as used for the current handshake. - // * These fields are used only if TLSEXT_TYPE_opaque_prf_input is defined - // * (otherwise, they are merely present to improve binary compatibility) */ - client_opaque_prf_input : Pointer; - client_opaque_prf_input_len : size_t; - server_opaque_prf_input : Pointer; - server_opaque_prf_input_len : size_t; - // actually only needs to be 16+20 - tmp_cert_verify_md: array [0..(EVP_MAX_MD_SIZE*2)-1] of TIdAnsiChar; - // actually only need to be 16+20 for SSLv3 and 12 for TLS - tmp_finish_md : array[0..(EVP_MAX_MD_SIZE*2)-1] of TIdAnsiChar; - tmp_finish_md_len : TIdC_INT; - tmp_peer_finish_md : array[0..(EVP_MAX_MD_SIZE*2)-1] of TIdAnsiChar; - tmp_peer_finish_md_len : TIdC_INT; - tmp_message_size : TIdC_UINT; - tmp_message_type : TIdC_INT; - // used to hold the new cipher we are going to use - tmp_new_cipher : PSSL_CIPHER; - {$IFNDEF OPENSSL_NO_DH} - tmp_dh : PDH; - {$ENDIF} - {$IFNDEF OPENSSL_NO_ECDH} - tmp_ecdh : PEC_KEY; // holds short lived ECDH key - {$ENDIF} - // used when SSL_ST_FLUSH_DATA is entered - tmp_next_state : TIdC_INT; - tmp_reuse_message : TIdC_INT; - // used for certificate requests - tmp_cert_req : TIdC_INT; - tmp_ctype_num : TIdC_INT; - tmp_ctype : array [0..SSL3_CT_NUMBER -1] of TIdAnsiChar; - tmp_ca_names : PSTACK_OF_X509_NAME; - tmp_use_rsa_tmp : TIdC_INT; - tmp_key_block_length : TIdC_INT; - tmp_key_block : PIdAnsiChar; - tmp_new_sym_enc : PEVP_CIPHER; - tmp_new_hash : PEVP_MD; - new_mac_pkey_type : TIdC_INT; - new_mac_secret_size : TIdC_INT; - {$IFNDEF OPENSSL_NO_COMP} - tmp_new_compression : PSSL_COMP; - {$ELSE} - tmp_new_compression : PIdAnsiChar; - {$ENDIF} - tmp_cert_request : TIdC_INT; - - //* Connection binding to prevent renegotiation attacks */ - previous_client_finished : array [0..EVP_MAX_MD_SIZE - 1] of TIdAnsiChar; - previous_client_finished_len : Byte; - previous_server_finished : array [0..EVP_MAX_MD_SIZE - 1] of TIdAnsiChar; - previous_server_finished_len : Byte; - send_connection_binding : TIdC_INT; //* TODOEKR */ -{$ifndef OPENSSL_NO_NEXTPROTONEG} - //* Set if we saw the Next Protocol Negotiation extension from our peer. */ - next_proto_neg_seen : TIdC_INT; -{$endif} - end; - {$ENDIF} - //openssl/pq_compat.h - {$EXTERNALSYM ppitem} - ppitem = ^pitem; - {$EXTERNALSYM pitem} - pitem = record - priority : PQ_64BIT; - data : Pointer; - next : ppitem; - end; - //ssl/dtls1.h - //for some reason, this header is refering to crypto/pqueue/pqueue.c - //which is in the OpenSSL headers. - {$EXTERNALSYM pqueue} - pqueue = record - items : ppitem; - count : TIdC_INT; - end; - // - {$EXTERNALSYM dtls1_retransmit_state} - dtls1_retransmit_state = record - enc_write_ctx : PEVP_CIPHER_CTX; //* cryptographic state */ - write_hash : PEVP_MD; //* used for mac generation */ -{$IFNDEF OPENSSL_NO_COMP} - compress : COMP_CTX; //* compression */ -{$ELSE} - compress : PIdAnsiChar; -{$ENDIF} - session : PSSL_SESSION; - epoch : TIdC_USHORT; - end; - {$EXTERNALSYM Pdtls1_retransmit_state} - Pdtls1_retransmit_state = ^dtls1_retransmit_state; - {$EXTERNALSYM DTLS1_BITMAP} - DTLS1_BITMAP = record - map : PQ_64BIT; - length : TIdC_ULONG; // sizeof the bitmap in bits - max_seq_num : PQ_64BIT; // max record number seen so far - end; - {$EXTERNALSYM PDTLS1_BITMAP} - PDTLS1_BITMAP = ^DTLS1_BITMAP; - {$EXTERNALSYM hm_header} - hm_header = record - _type : PIdAnsiChar; - msg_len : TIdC_ULONG; - seq : TIdC_USHORT; - frag_off : TIdC_ULONG; - frag_len : TIdC_ULONG; - is_ccs : TIdC_UINT; - // struct dtls1_retransmit_state saved_retransmit_state; - saved_retransmit_state : dtls1_retransmit_state; - end; - {$EXTERNALSYM ccs_header_st} - ccs_header_st = record - _type : PIdAnsiChar; - seq : TIdC_USHORT; - end; - {$EXTERNALSYM dtls1_timeout_st} - dtls1_timeout_st = record - // Number of read timeouts so far - read_timeouts : TIdC_UINT; - // Number of write timeouts so far - write_timeouts : TIdC_UINT; - // Number of alerts received so far - num_alerts : TIdC_UINT; - end; - {$EXTERNALSYM record_pqueue} - record_pqueue = record - epoch : TIdC_USHORT; - q : pqueue; - end; - {$EXTERNALSYM hm_fragment} - hm_fragment = record - msg_header : hm_header; - fragment : PIdAnsiChar; - reassembly : PIdAnsiChar; - end; - {$EXTERNALSYM DTLS1_STATE} - DTLS1_STATE = record - send_cookie : TIdC_UINT; - cookie : array [0..DTLS1_COOKIE_LENGTH - 1 ] of TIdAnsiChar; - rcvd_cookie : array [0..DTLS1_COOKIE_LENGTH -1] of TIdAnsiChar; - cookie_len : TIdC_UINT; - // The current data and handshake epoch. This is initially - // undefined, and starts at zero once the initial handshake is - // completed - r_epoch : TIdC_USHORT; - w_epoch : TIdC_USHORT; - // records being received in the current epoch - bitmap : DTLS1_BITMAP; - // renegotiation starts a new set of sequence numbers - next_bitmap : DTLS1_BITMAP; - // handshake message numbers - handshake_write_seq : TIdC_USHORT; - next_handshake_write_seq : TIdC_USHORT; - handshake_read_seq : TIdC_USHORT; - //* save last sequence number for retransmissions */ - last_write_sequence : array [0..8-1] of byte; - - // Received handshake records (processed and unprocessed) - unprocessed_rcds : record_pqueue; - processed_rcds : record_pqueue; - // Buffered handshake messages - buffered_messages : pqueue; - // Buffered (sent) handshake records - sent_messages : pqueue; - ///* Buffered application records. - //* Only for records between CCS and Finished - //* to prevent either protocol violation or - //* unnecessary message loss. - //*/ - buffered_app_data : record_pqueue; - - ///* Is set when listening for new connections with dtls1_listen() */ - listen : TIdC_UINT; - - mtu : TIdC_UINT; // max wire packet size - w_msg_hdr : hm_header; - r_msg_hdr : hm_header; - timeout : dtls1_timeout_st; - //* Indicates when the last handshake msg sent will timeout */ - next_timeout : timeval; - - //* Timeout duration */ - timeout_duration : TIdC_USHORT; - - // storage for Alert/Handshake protocol data received but not - // yet processed by ssl3_read_bytes: - alert_fragment : array [0..DTLS1_AL_HEADER_LENGTH-1] of TIdAnsiChar; - alert_fragment_len : TIdC_UINT; - handshake_fragment : array[0..DTLS1_HM_HEADER_LENGTH -1] of TIdAnsiChar; - handshake_fragment_len : TIdC_UINT; - retransmitting : TIdC_UINT; - change_cipher_spec_ok : TIdC_UINT; - end; - - {$EXTERNALSYM X509V3_CTX} - X509V3_CTX = V3_EXT_CTX; - {$EXTERNALSYM PX509V3_CTX} - PX509V3_CTX = ^X509V3_CTX; - -type - {$EXTERNALSYM Tsk_new_cmp} - Tsk_new_cmp = function (const a, b : PIdAnsiChar; const c : PIdAnsiChar) : TIdC_INT cdecl; - {$EXTERNALSYM TRSA_generate_key_callback} - TRSA_generate_key_callback = procedure (p1, p2 : TIdC_INT; p3 : Pointer); cdecl; - {$EXTERNALSYM TCRYPTO_set_mem_functions_m} - TCRYPTO_set_mem_functions_m = function (size : size_t) : Pointer; cdecl; - {$EXTERNALSYM TCRYPTO_set_mem_functions_r} - TCRYPTO_set_mem_functions_r = function (ptr : Pointer; size : size_t) : Pointer; cdecl; - {$EXTERNALSYM TCRYPTO_set_mem_functions_f} - TCRYPTO_set_mem_functions_f = procedure (ptr : Pointer); cdecl; - {$EXTERNALSYM TCRYPTO_set_mem_ex_functions_m} - TCRYPTO_set_mem_ex_functions_m = function(size : size_t; const c : PIdAnsiChar; i : TIdC_INT) : Pointer; cdecl; - {$EXTERNALSYM TCRYPTO_set_mem_ex_functions_r} - TCRYPTO_set_mem_ex_functions_r = function(ptr : Pointer; size : size_t; const c : PIdAnsiChar; i : TIdC_INT) : Pointer; cdecl; - {$EXTERNALSYM TCRYPTO_set_mem_ex_functions_f} - TCRYPTO_set_mem_ex_functions_f = procedure (ptr : Pointer); cdecl; - {$EXTERNALSYM Tset_mem_debug_functions_m} - Tset_mem_debug_functions_m = procedure (addr : Pointer; num : TIdC_INT; const _file : PIdAnsiChar; line, before_p : TIdC_INT); cdecl; - {$EXTERNALSYM Tset_mem_debug_functions_r} - Tset_mem_debug_functions_r = procedure (addr1, addr2 : Pointer; num : TIdC_INT; const _file : PIdAnsiChar; line, before_p : TIdC_INT); cdecl; - {$EXTERNALSYM Tset_mem_debug_functions_f} - Tset_mem_debug_functions_f = procedure (addr : Pointer; before_p : TIdC_INT); cdecl; - {$EXTERNALSYM Tset_mem_debug_functions_so} - Tset_mem_debug_functions_so = procedure (bits : TIdC_LONG); cdecl; - {$EXTERNALSYM Tset_mem_debug_functions_go} - Tset_mem_debug_functions_go = function : TIdC_LONG; cdecl; - {$EXTERNALSYM TSSL_CTX_set_verify_callback} - TSSL_CTX_set_verify_callback = function (ok : TIdC_INT; ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; - {$EXTERNALSYM Tsk_pop_free_func} - Tsk_pop_free_func = procedure (p : Pointer); cdecl; - {$EXTERNALSYM SSL_callback_ctrl_fp} - SSL_callback_ctrl_fp = procedure (para1 : PBIO; para2 : TIdC_INT; - para3 : PIdAnsiChar; para4 : TIdC_INT; para5, para6 : TIdC_LONG); cdecl; - {$EXTERNALSYM TCRYPTO_THREADID_set_callback_threadid_func} - TCRYPTO_THREADID_set_callback_threadid_func = procedure (id : PCRYPTO_THREADID) cdecl; - {$EXTERNALSYM TSSL_CTX_set_tlsext_status_cb} - TSSL_CTX_set_tlsext_status_cb = function(SSL : PSSL; Arg : Pointer) : TIdC_INT cdecl; - {$EXTERNALSYM TSSL_CTX_set_tlsext_opaque_prf_input_callback_cb} - TSSL_CTX_set_tlsext_opaque_prf_input_callback_cb = function(ssl : PSSL; peerinput : Pointer; len : size_t; arg : Pointer) : TIdC_INT cdecl; - {$EXTERNALSYM TSSL_CTX_set_tlsext_ticket_key_cb_fp} - TSSL_CTX_set_tlsext_ticket_key_cb_fp = function(SSL : PSSL; keyname, iv : PIdAnsiChar; ctx : PEVP_CIPHER_CTX; hctx : PHMAC_CTX; enc : TIdC_INT) : TIdC_INT cdecl; - - {$EXTERNALSYM EVP_CIPHER_do_all_fn} - EVP_CIPHER_do_all_fn = procedure(ciph : PEVP_CIPHER; - from : PIdAnsiChar; _to : PIdAnsiChar; x : Pointer) cdecl; - {$EXTERNALSYM EVP_MD_do_all_fn} - EVP_MD_do_all_fn = procedure(ciph : PEVP_CIPHER; - from: PIdAnsiChar; _to: PIdAnsiChar; x : Pointer) cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_public_pub_decode} - EVP_PKEY_asn1_set_public_pub_decode = function(pk : PEVP_PKEY; pub : PX509_PUBKEY) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_public_pub_encode} - EVP_PKEY_asn1_set_public_pub_encode = function(pub : PX509_PUBKEY; pk : PX509_PUBKEY) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_public_pub_cmp} - EVP_PKEY_asn1_set_public_pub_cmp = function (a : PEVP_PKEY; b : PEVP_PKEY) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_public_pub_print} - EVP_PKEY_asn1_set_public_pub_print = function(_out : PBIO; pkey : PEVP_PKEY; indent : TIdC_INT; - pctx : PASN1_PCTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_public_pub_pkey_size} - EVP_PKEY_asn1_set_public_pub_pkey_size = function(pk : PEVP_PKEY) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_public_pkey_bits} - EVP_PKEY_asn1_set_public_pkey_bits = function(pk : PEVP_PKEY) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_private_priv_decode} - EVP_PKEY_asn1_set_private_priv_decode = function (pk : PEVP_PKEY; p8inf : PPKCS8_PRIV_KEY_INFO) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_private_priv_encode} - EVP_PKEY_asn1_set_private_priv_encode = function (p8 : PPKCS8_PRIV_KEY_INFO; pk : PEVP_PKEY): TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_private_priv_print} - EVP_PKEY_asn1_set_private_priv_print = function (_out : PBIO; pkey : PEVP_PKEY; indent : TIdC_INT; - pctx : PASN1_PCTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_param_param_decode} - EVP_PKEY_asn1_set_param_param_decode = function(pkey : PEVP_PKEY; - pder : PPIdAnsiChar; derlen : TIdC_INT): TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_param_param_encode} - EVP_PKEY_asn1_set_param_param_encode = function(pkey : PEVP_PKEY; pder : PPIdAnsiChar) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_param_param_missing} - EVP_PKEY_asn1_set_param_param_missing = function(pk : EVP_PKEY) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_param_param_copy} - EVP_PKEY_asn1_set_param_param_copy = function(_to : PEVP_PKEY; from : PEVP_PKEY) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_param_param_cmp} - EVP_PKEY_asn1_set_param_param_cmp = function(a : PEVP_PKEY; b : PEVP_PKEY): TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_param_param_print} - EVP_PKEY_asn1_set_param_param_print = function(_out : PBIO; pkey : PEVP_PKEY; indent : TIdC_INT; - pctx : PASN1_PCTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_free_pkey_free} - EVP_PKEY_asn1_set_free_pkey_free = procedure(pkey : PEVP_PKEY) cdecl; - {$EXTERNALSYM EVP_PKEY_asn1_set_ctr_pkey_ctrl} - EVP_PKEY_asn1_set_ctr_pkey_ctrl = function(pkey : PEVP_PKEY; op : TIdC_INT; - arg1 : TIdC_LONG; arg2 : Pointer) : TIdC_INT cdecl; - - {$EXTERNALSYM EVP_PKEY_gen_cb} - - EVP_PKEY_gen_cb = function( ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_init_init} - - EVP_PKEY_meth_set_init_init = function (ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_copy_copy} - EVP_PKEY_meth_set_copy_copy = function (dst : PEVP_PKEY_CTX; src : PEVP_PKEY_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_cleanup_cleanup} - EVP_PKEY_meth_set_cleanup_cleanup = procedure(ctx : PEVP_PKEY_CTX) cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_paramgen_paramgen_init} - EVP_PKEY_meth_set_paramgen_paramgen_init = function (ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_paramgen_paramgen} - EVP_PKEY_meth_set_paramgen_paramgen = function (ctx : PEVP_PKEY_CTX; pkey : PEVP_PKEY) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_keygen_keygen_init} - EVP_PKEY_meth_set_keygen_keygen_init = function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_keygen_keygen} - EVP_PKEY_meth_set_keygen_keygen = function(ctx : PEVP_PKEY_CTX; pkey : PEVP_PKEY) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_sign_sign_init} - EVP_PKEY_meth_set_sign_sign_init = function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_sign_sign} - EVP_PKEY_meth_set_sign_sign = function(ctx : PEVP_PKEY_CTX; sig : PIdAnsiChar; siglen : Psize_t; - tbs : PIdAnsiChar; tbslen : size_t) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_verify_verify_init} - EVP_PKEY_meth_set_verify_verify_init = function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_verify_verify} - EVP_PKEY_meth_set_verify_verify = function(ctx : PEVP_PKEY_CTX; sig : PIdAnsiChar; siglen : size_t; - tbs : PIdAnsiChar; tbslen : size_t) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_verify_recover_verify_recover_init} - EVP_PKEY_meth_set_verify_recover_verify_recover_init = function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_verify_recover_verify_recover} - EVP_PKEY_meth_set_verify_recover_verify_recover = function(ctx : PEVP_PKEY_CTX; - sig : PIdAnsiChar; siglen : Psize_t; - tbs: PIdAnsiChar; tbslen : size_t) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_signctx_signctx_init} - EVP_PKEY_meth_set_signctx_signctx_init = function(ctx : PEVP_PKEY_CTX; mctx : PEVP_MD_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_signctx_signctx} - EVP_PKEY_meth_set_signctx_signctx = function(ctx : PEVP_PKEY_CTX; sig : PIdAnsiChar; siglen : size_t; - mctx : PEVP_MD_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_verifyctx_verifyctx_init} - EVP_PKEY_meth_set_verifyctx_verifyctx_init = function : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_verifyctx_verifyctx} - EVP_PKEY_meth_set_verifyctx_verifyctx = function : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_encrypt_encrypt_init} - EVP_PKEY_meth_set_encrypt_encrypt_init = function( ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_encrypt_encryptfn} - EVP_PKEY_meth_set_encrypt_encryptfn = function(ctx : PEVP_PKEY_CTX; _out : PIdAnsiChar; outlen : psize_t; - _in : PIdAnsiChar; inlen : size_t) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_decrypt_decrypt_init} - EVP_PKEY_meth_set_decrypt_decrypt_init = function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_decrypt_decrypt} - EVP_PKEY_meth_set_decrypt_decrypt = function(ctx : PEVP_PKEY_CTX; _out : PIdAnsiChar; outlen : psize_t; - _in : PIdAnsiChar; inlen : size_t) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_derive_derive_init} - EVP_PKEY_meth_set_derive_derive_init = function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl; - - {$EXTERNALSYM EVP_PKEY_meth_set_derive_derive} - EVP_PKEY_meth_set_derive_derive = function (ctx : PEVP_PKEY_CTX; key : PIdAnsiChar; keylen : psize_t) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_ctrl_ctrl} - EVP_PKEY_meth_set_ctrl_ctrl = function(ctx : PEVP_PKEY_CTX; _type : TIdC_INT; p1 : TIdC_INT; p2 : Pointer) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_meth_set_ctrlctrl_str} - EVP_PKEY_meth_set_ctrlctrl_str = function(ctx : PEVP_PKEY_CTX; - _type : PIdAnsiChar; value : PIdAnsiChar) : TIdC_INT cdecl; - - -var - {$EXTERNALSYM OpenSSL_add_all_algorithms} - OpenSSL_add_all_algorithms : procedure cdecl = nil; - {$EXTERNALSYM OpenSSL_add_all_ciphers} - OpenSSL_add_all_ciphers : procedure cdecl = nil; - {$EXTERNALSYM OpenSSL_add_all_digests} - OpenSSL_add_all_digests : procedure cdecl = nil; - {$EXTERNALSYM EVP_cleanup} - EVP_cleanup : procedure cdecl = nil; - //SSL Version function - {$EXTERNALSYM _SSLeay_version} - _SSLeay_version : function(_type : TIdC_INT) : PIdAnsiChar cdecl = nil; - //SSLeay - {$EXTERNALSYM SSLeay} - SSLeay : function : TIdC_ULONG cdecl = nil; - {$EXTERNALSYM _CRYPTO_lock} - _CRYPTO_lock : procedure(mode, _type : TIdC_INT; const _file : PIdAnsiChar; line : TIdC_INT) cdecl = nil; - - //CRYPTO_set_mem_ex_functions - {$EXTERNALSYM CRYPTO_set_mem_functions} - CRYPTO_set_mem_functions : function( - m: TCRYPTO_set_mem_functions_m; - r: TCRYPTO_set_mem_functions_r; - f: TCRYPTO_set_mem_functions_f): TIdC_INT cdecl = nil; - {$EXTERNALSYM CRYPTO_malloc} - CRYPTO_malloc : function(num: TIdC_INT; const _file: PIdAnsiChar; line: TIdC_INT): Pointer cdecl = nil; - {$EXTERNALSYM CRYPTO_free} - CRYPTO_free : procedure(ptr : Pointer) cdecl = nil; - {$EXTERNALSYM CRYPTO_mem_leaks} - CRYPTO_mem_leaks : procedure(b:PBIO) cdecl = nil; - {$EXTERNALSYM CRYPTO_mem_ctrl} - CRYPTO_mem_ctrl : function(mode: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM CRYPTO_set_mem_debug_functions} - CRYPTO_set_mem_debug_functions : procedure ( - m: Tset_mem_debug_functions_m; - r: Tset_mem_debug_functions_r; - f : Tset_mem_debug_functions_f; - so : Tset_mem_debug_functions_so; - go : Tset_mem_debug_functions_go) cdecl = nil; - {$EXTERNALSYM CRYPTO_dbg_malloc} - CRYPTO_dbg_malloc : procedure(addr: Pointer; num: TIdC_INT; const _file: PIdAnsiChar; line, before: TIdC_INT) cdecl = nil; - {$EXTERNALSYM CRYPTO_dbg_realloc} - CRYPTO_dbg_realloc : procedure(arrd1, addr2: Pointer; num: TIdC_INT; const _file: PIdAnsiChar; line, before: TIdC_INT) cdecl = nil; - {$EXTERNALSYM CRYPTO_dbg_free} - CRYPTO_dbg_free : procedure(addr: Pointer; before: TIdC_INT) cdecl = nil; - {$EXTERNALSYM CRYPTO_dbg_set_options} - CRYPTO_dbg_set_options : procedure(bits: TIdC_LONG) cdecl = nil; - {$EXTERNALSYM CRYPTO_dbg_get_options} - CRYPTO_dbg_get_options : function: TIdC_LONG cdecl = nil; - {$EXTERNALSYM CRYPTO_THREADID_set_numeric} - CRYPTO_THREADID_set_numeric : procedure(id : PCRYPTO_THREADID; val : TIdC_ULONG) cdecl = nil; - {$EXTERNALSYM CRYPTO_THREADID_set_pointer} - CRYPTO_THREADID_set_pointer : procedure(id : PCRYPTO_THREADID; ptr : Pointer) cdecl = nil; - {$EXTERNALSYM CRYPTO_THREADID_set_callback} - CRYPTO_THREADID_set_callback : function(threadid_func : TCRYPTO_THREADID_set_callback_threadid_func) : TIdC_INT cdecl = nil; - {$EXTERNALSYM sk_num} - sk_num : function (const x : PSTACK) : TIdC_INT cdecl = nil; - {$EXTERNALSYM sk_value} - sk_value : function (x : PSTACK; i : TIdC_INT) : PIdAnsiChar cdecl = nil; - {$EXTERNALSYM sk_new} - sk_new : function ( cmp : Tsk_new_cmp) : PStack cdecl = nil; - {$EXTERNALSYM sk_new_null} - sk_new_null : function: PSTACK cdecl = nil; - {$EXTERNALSYM sk_free} - sk_free : procedure (st : PSTACK) cdecl = nil; - {$EXTERNALSYM sk_push} - sk_push : function(st: PSTACK; data: PIdAnsiChar): TIdC_INT cdecl = nil; - {$EXTERNALSYM RSA_new} - RSA_new: function: PRSA cdecl = nil; - {$EXTERNALSYM RSA_size} - RSA_size: function(key: PRSA): TIdC_INT cdecl = nil; - //This function is depreciated. - {$EXTERNALSYM RSA_generate_key} - RSA_generate_key : function(bits: TIdC_INT; e: TIdC_ULONG; callback: TRSA_generate_key_callback; cb_arg: Pointer): PRSA cdecl = nil; - {$EXTERNALSYM RSA_generate_key_ex} - RSA_generate_key_ex : function(rsa : PRSA; bits : TIdC_INT; e : PBIGNUM; cb : PBN_GENCB) : TIdC_INT cdecl = nil; - {$EXTERNALSYM RSA_free} - RSA_free : procedure(rsa: PRSA) cdecl = nil; - {$EXTERNALSYM RSA_check_key} - RSA_check_key : function(const rsa: PRSA): TIdC_INT cdecl = nil; - {$EXTERNALSYM RSA_private_decrypt} - RSA_private_decrypt: function(flen: TIdC_INT; from: PByte; _to: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM RSA_public_encrypt} - RSA_public_encrypt: function(flen: TIdC_INT; from: PByte; _to: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_get_default_cert_file} - X509_get_default_cert_file : function : PIdAnsiChar cdecl = nil; - {$EXTERNALSYM X509_get_default_cert_file_env} - X509_get_default_cert_file_env : function : PIdAnsiChar cdecl = nil; - {$EXTERNALSYM BIO_set_flags} - BIO_set_flags : procedure(b: PBIO; flags: integer) cdecl = nil; - {$EXTERNALSYM BIO_new} - BIO_new : function(_type: PBIO_METHOD): PBIO cdecl = nil; - {$EXTERNALSYM BIO_new_mem_buf} - BIO_new_mem_buf : function (buf : Pointer; len : TIdC_INT) : PBIO cdecl = nil; - {$EXTERNALSYM BIO_push} - BIO_push : function(b: PBIO; append: PBIO): PBIO cdecl = nil; - {$EXTERNALSYM BIO_pop} - BIO_pop : function(b: PBIO): PBIO cdecl = nil; - {$EXTERNALSYM BIO_set_next} - BIO_set_next : procedure(b: PBIO; next: PBIO) cdecl = nil; - {$EXTERNALSYM BIO_free} - BIO_free : function(bio: PBIO): TIdC_INT cdecl = nil; - {$EXTERNALSYM BIO_free_all} - BIO_free_all : procedure(bio: PBIO) cdecl = nil; - {$EXTERNALSYM BIO_s_mem} - BIO_s_mem : function: PBIO_METHOD cdecl = nil; - {$EXTERNALSYM BIO_s_file} - BIO_s_file : function: PBIO_METHOD cdecl = nil; - {$EXTERNALSYM BIO_set_ex_data} - BIO_set_ex_data : function(bio : PBIO; idx : TIdC_INT; data : Pointer) : TidC_INT cdecl = nil; - {$EXTERNALSYM BIO_get_ex_data} - BIO_get_ex_data: function(bio : PBIO; idx : TIdC_INT) : Pointer cdecl = nil; - {$EXTERNALSYM BIO_ctrl} - BIO_ctrl : function(bp: PBIO; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG cdecl = nil; - {$EXTERNALSYM BIO_ptr_ctrl} - BIO_ptr_ctrl : function(bp : PBIO; cmd : TIdC_INT; larg : TIdC_LONG) : PIdAnsiChar cdecl = nil; - {$EXTERNALSYM BIO_int_ctrl} - BIO_int_ctrl : function(bp : PBIO; cmd : TIdC_INT; larg : TIdC_LONG; iArg : TIdC_INT) : TIdC_LONG cdecl = nil; - {$EXTERNALSYM BIO_callback_ctrl} - BIO_callback_ctrl : function(b : PBIO; cmd : TIdC_INT; fp : SSL_callback_ctrl_fp ) : TIdC_LONG cdecl = nil; - {$EXTERNALSYM BIO_new_file} - BIO_new_file : function(const filename: PIdAnsiChar; const mode: PIdAnsiChar): PBIO cdecl = nil; - {$EXTERNALSYM BIO_puts} - BIO_puts : function(b: PBIO; const txt: PIdAnsiChar): TIdC_INT cdecl = nil; - {$EXTERNALSYM BIO_read} - BIO_read : function(b: PBIO; data: Pointer; len: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM BIO_write} - BIO_write : function(b: PBIO; const buf: Pointer; len: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM BN_hex2bn} - BN_hex2bn: function(var n:PBIGNUM; const Str: PIdAnsiChar): TIdC_INT cdecl = nil; - {$EXTERNALSYM BN_new} - BN_new : function(): PBIGNUM cdecl = nil; - {$EXTERNALSYM BN_free} - BN_free : procedure(a: PBIGNUM) cdecl = nil; - {$EXTERNALSYM BN_bn2dec} - BN_bn2dec: function(const n:PBIGNUM): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM BN_bn2hex} - BN_bn2hex: function(const n:PBIGNUM): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM BN_set_word} - BN_set_word: function(a: PBIGNUM; w: TIdC_ULONG): TIdC_INT cdecl = nil; - {$EXTERNALSYM DH_free} - DH_free : procedure(dh: PDH) cdecl = nil; - - {$IFNDEF SSLEAY_MACROS} - //Note that these are defined as a pointer to a pointer to a structure. - //This is done because the pointer being passed could be nil. The pointer is probably - //more of a template than anything. If it is used, it should be initialized to nil. - {$EXTERNALSYM _PEM_read_bio_X509} - _PEM_read_bio_X509 : function(bp: PBIO; x: PPX509; cb: ppem_password_cb; u: Pointer): PX509 cdecl = nil; - {$EXTERNALSYM _PEM_read_bio_X509_REQ} - _PEM_read_bio_X509_REQ : function(bp :PBIO; x : PPX509_REQ; cb :ppem_password_cb; u: PIdAnsiChar) : PX509_REQ cdecl = nil; - {$EXTERNALSYM _PEM_read_bio_X509_CRL} - _PEM_read_bio_X509_CRL : function(bp : PBIO; x : PPX509_CRL;cb : ppem_password_cb; u: Pointer) : PX509_CRL cdecl = nil; - {$EXTERNALSYM _PEM_read_bio_RSAPrivateKey} - _PEM_read_bio_RSAPrivateKey : function(bp : PBIO; x : PPRSA; cb : ppem_password_cb; u: Pointer) : PRSA cdecl = nil; - {$EXTERNALSYM _PEM_read_bio_RSAPublicKey} - _PEM_read_bio_RSAPublicKey : function(bp : PBIO; x : PPRSA; cb : ppem_password_cb; u: Pointer) : PRSA cdecl = nil; - {$EXTERNALSYM _PEM_read_bio_DSAPrivateKey} - _PEM_read_bio_DSAPrivateKey : function(bp : PBIO; x : PPDSA; cb : ppem_password_cb; u : Pointer) : PDSA cdecl = nil; - {$EXTERNALSYM _PEM_read_bio_PrivateKey} - _PEM_read_bio_PrivateKey : function(bp : PBIO; x : PPEVP_PKEY; cb : ppem_password_cb; u : Pointer) : PEVP_PKEY cdecl = nil; - {$EXTERNALSYM _PEM_read_bio_PKCS7} - _PEM_read_bio_PKCS7 : function(bp : PBIO; x : PPPKCS7; cb : ppem_password_cb; u : Pointer) : PPKCS7 cdecl = nil; - {$EXTERNALSYM _PEM_read_bio_DHparams} - _PEM_read_bio_DHparams : function(bp : PBIO; x : PPDH; cb : ppem_password_cb; u : Pointer) : PDH cdecl = nil; - {$EXTERNALSYM _PEM_read_bio_DSAparams} - _PEM_read_bio_DSAparams : function(bp : PBIO; x : PPDSA; cb : ppem_password_cb; u : Pointer) : PDSA cdecl = nil; - {$EXTERNALSYM _PEM_read_bio_NETSCAPE_CERT_SEQUENCE} - _PEM_read_bio_NETSCAPE_CERT_SEQUENCE : function(bp : PBIO; x : PPNETSCAPE_CERT_SEQUENCE; - cb : ppem_password_cb; u : Pointer) : PNETSCAPE_CERT_SEQUENCE cdecl = nil; - {$EXTERNALSYM _PEM_read_bio_PUBKEY} - _PEM_read_bio_PUBKEY : function(bp : PBIO; x : PPEVP_PKEY; cb : ppem_password_cb; u : Pointer) : PEVP_PKEY cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_X509} - _PEM_write_bio_X509 : function(b: PBIO; x: PX509): TIdC_INT cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_X509_REQ} - _PEM_write_bio_X509_REQ : function(bp: PBIO; x: PX509_REQ): TIdC_INT cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_X509_CRL} - _PEM_write_bio_X509_CRL : function(bp : PBIO; x : PX509_CRL) : TIdC_INT cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_RSAPublicKey} - _PEM_write_bio_RSAPublicKey : function(bp : PBIO; x : PRSA) : TIdC_INT cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_RSAPrivateKey} - _PEM_write_bio_RSAPrivateKey : function(bp : PBIO; x : PRSA; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : ppem_password_cb; u : POinter) : TIdC_INT cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_DSAPrivateKey} - _PEM_write_bio_DSAPrivateKey : function(bp : PBIO; x : PDSA; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : Ppem_password_cb; u : Pointer) : TIdC_INT cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_PrivateKey} - _PEM_write_bio_PrivateKey : function(bp : PBIO; x : PEVP_PKEY; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : Ppem_password_cb; u : Pointer) : TIdC_INT cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_PKCS7} - _PEM_write_bio_PKCS7 : function(bp : PBIO; x : PPKCS7) : TIdC_INT cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_DHparams} - _PEM_write_bio_DHparams : function(bp : PBIO; x : PDH): TIdC_INT cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_DSAparams} - _PEM_write_bio_DSAparams : function(bp : PBIO; x : PDSA) : TIdC_INT cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_NETSCAPE_CERT_SEQUENCE} - _PEM_write_bio_NETSCAPE_CERT_SEQUENCE : function(bp : PBIO; x : PDSA) : TIdC_INT cdecl = nil; - {$IFNDEF OPENSSL_NO_BIO} - {$EXTERNALSYM _PEM_write_bio_PKCS8PrivateKey} - _PEM_write_bio_PKCS8PrivateKey : function(bp: PBIO; key: PEVP_PKEY; enc: PEVP_CIPHER; - kstr: PIdAnsiChar; klen: TIdC_INT; cb: ppem_password_cb; u: Pointer): TIdC_INT cdecl = nil; - {$EXTERNALSYM _PEM_write_bio_PUBKEY} - _PEM_write_bio_PUBKEY : function(bp: PBIO; x: PEVP_PKEY): TIdC_INT cdecl = nil; - {$ENDIF} - {$ELSE} - {$IFNDEF OPENSSL_NO_BIO} - {$EXTERNALSYM PEM_ASN1_write_bio} - PEM_ASN1_write_bio : function(i2d: i2d_of_void; const name: PIdAnsiChar; - bp: PBIO; x: PIdAnsiChar; const enc: PEVP_CIPHER; kstr: PIdAnsiChar; klen: TIdC_INT; - cb: ppem_password_cb; u: Pointer):TIdC_INT cdecl = nil; - {$EXTERNALSYM PEM_ASN1_read_bio} - PEM_ASN1_read_bio : function(d2i: d2i_OF_void; name: PIdAnsiChar; bp: PBIO; - x: PPointer; cb: ppem_password_cb; u:Pointer): Pointer cdecl = nil; - {$ENDIF} - {$ENDIF} - {$EXTERNALSYM PEM_X509_INFO_read_bio} - PEM_X509_INFO_read_bio : function (bp : PBIO; sk : PSTACK_OF_X509_INFO; - cb : ppem_password_cb; u : Pointer) : PSTACK_OF_X509_INFO cdecl = nil; - {$EXTERNALSYM PEM_read_bio_X509_AUX} - PEM_read_bio_X509_AUX : function (bp : PBIO; x : PPX509; - cb : ppem_password_cb; u : Pointer) : PX509 cdecl = nil; - {$EXTERNALSYM EVP_DigestInit} - EVP_DigestInit : function(ctx : PEVP_MD_CTX; _type : PEVP_MD) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DigestFinal} - EVP_DigestFinal : function(ctx : PEVP_MD_CTX;md : PIdAnsiChar; s : TIdC_UINT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DigestInit_ex} - EVP_DigestInit_ex : function (ctx : PEVP_MD_CTX; const AType : PEVP_MD; impl : PENGINE) : TIdC_Int cdecl = nil; - {$EXTERNALSYM EVP_DigestUpdate} - EVP_DigestUpdate : function (ctx : PEVP_MD_CTX; d : Pointer; cnt : size_t) : TIdC_Int cdecl = nil; - {$EXTERNALSYM EVP_DigestFinal_ex} - EVP_DigestFinal_ex : function(ctx : PEVP_MD_CTX; md : PIdAnsiChar; var s : TIdC_UInt) : TIdC_Int cdecl = nil; - {$EXTERNALSYM EVP_EncryptInit} - EVP_EncryptInit : function(ctx : PEVP_CIPHER_CTX;cipher : PEVP_CIPHER; - key : PIdAnsiChar; iv : PIdAnsiChar) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_EncryptInit_ex} - EVP_EncryptInit_ex : function(ctx : PEVP_CIPHER_CTX; cipher : PEVP_CIPHER; impl : PENGINE; - key : PIdAnsiChar; iv : PIdAnsiChar) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_EncryptUpdate} - EVP_EncryptUpdate : function(ctx : PEVP_CIPHER_CTX; _out : PIdAnsiChar; - outl : PIdC_INT; _in : PIdAnsiChar; inl : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_EncryptFinal_ex} - EVP_EncryptFinal_ex : function(ctx : PEVP_CIPHER_CTX; _out : PIdAnsiChar; outl : PIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_EncryptFinal} - EVP_EncryptFinal : function(ctx : PEVP_CIPHER_CTX; _out : PIdAnsiChar; outl: PIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DecryptInit} - EVP_DecryptInit : function(ctx : PEVP_CIPHER_CTX; cipher : PEVP_CIPHER; - key : PIdAnsiChar; iv : PIdAnsiChar) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DecryptInit_ex} - EVP_DecryptInit_ex : function(ctx : PEVP_CIPHER_CTX; cipher : PEVP_CIPHER; impl : PENGINE; - key : PIdAnsiChar; iv : PIdAnsiChar) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DecryptUpdate} - EVP_DecryptUpdate : function(ctx : PEVP_CIPHER_CTX; _out : PIdAnsiChar; - outl : PIdC_INT; _in : PIdAnsiChar; inl : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DecryptFinal} - EVP_DecryptFinal : function(ctx : PEVP_CIPHER_CTX; outm : PIdAnsiChar; outl : PIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DecryptFinal_ex} - EVP_DecryptFinal_ex : function(ctx : PEVP_CIPHER_CTX; outm: PIdAnsiChar; outl : PIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CipherInit} - EVP_CipherInit : function(ctx : PEVP_CIPHER_CTX; cipher : PEVP_CIPHER; - key : PIdAnsiChar; iv : PIdAnsiChar; - enc : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CipherInit_ex} - EVP_CipherInit_ex : function(ctx : PEVP_CIPHER_CTX; cipher: PEVP_CIPHER; impl : PENGINE; - key : PIdAnsiChar; iv : PIdAnsiChar; - enc : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CipherUpdate} - EVP_CipherUpdate : function(ctx : PEVP_CIPHER_CTX; _out : PIdAnsiChar; - outl : PIdC_INT; _in : PIdAnsiChar; inl : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CipherFinal} - EVP_CipherFinal : function(ctx : PEVP_CIPHER_CTX; outm : PIdAnsiChar; outl : PIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CipherFinal_ex} - EVP_CipherFinal_ex: function(ctx : PEVP_CIPHER_CTX; outm : PIdAnsiChar; outl : PIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_SignFinal} - EVP_SignFinal : function(ctx : PEVP_MD_CTX; md : PIdAnsiChar; s : PIdC_INT; - pkey : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_VerifyFinal} - EVP_VerifyFinal : function(ctx : PEVP_MD_CTX; sigbuf : PIdAnsiChar; - siglen : TIdC_UINT; pkey : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DigestSignInit} - EVP_DigestSignInit : function(ctx : PEVP_MD_CTX; pctx : PPEVP_PKEY_CTX; - _type : PEVP_MD; e : PENGINE; pkey : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DigestSignFinal} - EVP_DigestSignFinal : function(ctx : PEVP_MD_CTX; - sigret : PIdAnsiChar; siglen : Psize_t) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DigestVerifyInit} - EVP_DigestVerifyInit : function(ctx : PEVP_MD_CTX; pctx : PPEVP_PKEY_CTX; - _type : PEVP_MD;e : PENGINE; pkey : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DigestVerifyFinal} - EVP_DigestVerifyFinal: function(ctx : PEVP_MD_CTX; - sig : PIdAnsiChar; siglen : size_t) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_OpenInit} - EVP_OpenInit : function(ctx : PEVP_CIPHER_CTX; _type : PEVP_CIPHER; - ek : PIdAnsiChar; ekl : TIdC_INT; iv : PIdAnsiChar; - priv : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_OpenFinal} - EVP_OpenFinal : function (ctx : PEVP_CIPHER_CTX; _out : PIdAnsiChar; outl : PIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_SealInit} - EVP_SealInit : function(ctx : PEVP_CIPHER_CTX; _type : PEVP_CIPHER; - ek : PPIdAnsiChar; ekl : PIdC_INT; iv : PIdAnsiChar; - pubk : PPEVP_PKEY; npubk : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_SealFinal} - EVP_SealFinal : function(ctx : PEVP_CIPHER_CTX; _out : PIdAnsiChar; outl : PIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_EncodeInit} - EVP_EncodeInit : procedure(ctx : PEVP_ENCODE_CTX) cdecl = nil; - {$EXTERNALSYM EVP_EncodeUpdate} - EVP_EncodeUpdate : procedure(ctx : PEVP_ENCODE_CTX; _out : PIdAnsiChar; outl : PIdC_INT; - _in : PIdAnsiChar; inl : TIdC_INT) cdecl = nil; - {$EXTERNALSYM EVP_EncodeFinal} - EVP_EncodeFinal : procedure(ctx : PEVP_ENCODE_CTX; _out: PIdAnsiChar; outl : PIdC_INT) cdecl = nil; - {$EXTERNALSYM EVP_EncodeBlock} - EVP_EncodeBlock : function(t: PIdAnsiChar; f: PIdAnsiChar; n : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DecodeInit} - EVP_DecodeInit : procedure(ctx : PEVP_ENCODE_CTX) cdecl = nil; - {$EXTERNALSYM EVP_DecodeUpdate} - EVP_DecodeUpdate : function(ctx : PEVP_ENCODE_CTX; _out : PIdAnsiChar; outl : PIdC_INT; - _in : PIdAnsiChar; inl : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DecodeFinal} - EVP_DecodeFinal: function(ctx : PEVP_ENCODE_CTX; _out : PIdAnsiChar; outl : PIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_DecodeBlock} - EVP_DecodeBlock : function(t: PIdAnsiChar; f: PIdAnsiChar; n : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_init} - EVP_CIPHER_CTX_init : procedure(a : PEVP_CIPHER_CTX) cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_cleanup} - EVP_CIPHER_CTX_cleanup : function(a : PEVP_CIPHER_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_new} - EVP_CIPHER_CTX_new : function : PEVP_CIPHER_CTX cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_free} - EVP_CIPHER_CTX_free: procedure(a : PEVP_CIPHER_CTX) cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_set_key_length} - EVP_CIPHER_CTX_set_key_length : function(x : PEVP_CIPHER_CTX; keylen : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_set_padding} - EVP_CIPHER_CTX_set_padding : function(c : PEVP_CIPHER_CTX; pad : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_ctrl} - EVP_CIPHER_CTX_ctrl : function(ctx : PEVP_CIPHER_CTX; _type : TIdC_INT; arg : TIdC_INT; ptr : Pointer) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_rand_key} - EVP_CIPHER_CTX_rand_key : function(ctx : PEVP_CIPHER_CTX; key : PIdAnsiChar) : TIdC_INT cdecl = nil; - {$ifndef OPENSSL_NO_BIO} - {$EXTERNALSYM BIO_f_md} - BIO_f_md : function : PBIO_METHOD cdecl = nil; - {$EXTERNALSYM BIO_f_base64} - BIO_f_base64 : function : PBIO_METHOD cdecl = nil; - {$EXTERNALSYM BIO_f_cipher} - BIO_f_cipher : function : PBIO_METHOD cdecl = nil; - {$EXTERNALSYM BIO_f_reliable} - BIO_f_reliable : function : PBIO_METHOD cdecl = nil; - {$EXTERNALSYM BIO_set_cipher} - BIO_set_cipher : procedure (b : PBIO; c : PEVP_CIPHER; k : PIdAnsiChar; - i : PIdAnsiChar; enc : TIdC_INT) cdecl = nil; - {$endif} - {$EXTERNALSYM EVP_MD_CTX_init} - EVP_MD_CTX_init : procedure(ctx : PEVP_MD_CTX) cdecl = nil; - {$EXTERNALSYM EVP_MD_CTX_cleanup} - EVP_MD_CTX_cleanup : function(ctx : PEVP_MD_CTX) : TIdC_Int cdecl = nil; - {$EXTERNALSYM EVP_MD_CTX_create} - EVP_MD_CTX_create: function : PEVP_MD_CTX cdecl = nil; - {$EXTERNALSYM EVP_MD_CTX_destroy} - EVP_MD_CTX_destroy : procedure(ctx : PEVP_MD_CTX) cdecl = nil; - {$EXTERNALSYM EVP_MD_CTX_copy} - EVP_MD_CTX_copy : function(_out : PEVP_MD_CTX; _in: PEVP_MD_CTX): TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_MD_CTX_copy_ex} - EVP_MD_CTX_copy_ex : function (_out : PEVP_MD_CTX; const _in: PEVP_MD_CTX): TIdC_INT cdecl = nil; - - {$IFNDEF OPENSSL_NO_DES} - {$EXTERNALSYM EVP_des_ede3_cbc} - EVP_des_ede3_cbc : function: PEVP_CIPHER cdecl = nil; - {$ENDIF} - {$EXTERNALSYM EVP_PKEY_new} - EVP_PKEY_new : function : PEVP_PKEY cdecl = nil; - - {$EXTERNALSYM EVP_PKEY_free} - EVP_PKEY_free : procedure(pkey: PEVP_PKEY) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_assign} - EVP_PKEY_assign : function(pkey: PEVP_PKEY; _type: TIdC_INT; key: Pointer): TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_get_cipherbyname} - EVP_get_cipherbyname : function(const name : PIdAnsiChar): PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_get_digestbyname} - EVP_get_digestbyname : function(const name: PIdAnsiChar): PEVP_MD cdecl = nil; - {$EXTERNALSYM EVP_MD_type} - EVP_MD_type : function (md : PEVP_MD) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_MD_size} - EVP_MD_size : function (md : PEVP_MD) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_MD_block_size} - EVP_MD_block_size : function (md : PEVP_MD) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_MD_flags} - EVP_MD_flags : function (md : PEVP_MD) : TIdC_ULONG cdecl = nil; - {$EXTERNALSYM EVP_MD_CTX_md} - EVP_MD_CTX_md : function (ctx : PEVP_MD_CTX) : PEVP_MD cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_nid} - EVP_CIPHER_nid : function (cipher : PEVP_CIPHER) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_block_size} - EVP_CIPHER_block_size : function(cipher : PEVP_CIPHER) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_key_length} - EVP_CIPHER_key_length : function(cipher : EVP_CIPHER) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_iv_length} - EVP_CIPHER_iv_length : function(cipher: PEVP_CIPHER) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_flags} - EVP_CIPHER_flags : function(cipher : PEVP_CIPHER) : TIdC_ULONG cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_type} - EVP_CIPHER_type : function(ctx : PEVP_CIPHER) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_cipher} - EVP_CIPHER_CTX_cipher : function (ctx : PEVP_CIPHER_CTX) : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_nid} - EVP_CIPHER_CTX_nid : function (ctx : PEVP_CIPHER_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_block_size} - EVP_CIPHER_CTX_block_size : function(ctx : PEVP_CIPHER_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_key_length} - EVP_CIPHER_CTX_key_length : function(ctx : PEVP_CIPHER_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_iv_length} - EVP_CIPHER_CTX_iv_length : function(ctx : PEVP_CIPHER_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_copy} - EVP_CIPHER_CTX_copy : function(_out : PEVP_CIPHER_CTX; _in : PEVP_CIPHER_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_get_app_data} - EVP_CIPHER_CTX_get_app_data : function(ctx : PEVP_CIPHER_CTX) : Pointer cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_CTX_set_app_data} - EVP_CIPHER_CTX_set_app_data : procedure(ctx : PEVP_CIPHER_CTX; data : Pointer) cdecl =nil; - {$EXTERNALSYM EVP_CIPHER_CTX_flags} - EVP_CIPHER_CTX_flags : function(ctx : PEVP_CIPHER_CTX) : TIdC_ULONG cdecl = nil; - {$EXTERNALSYM ASN1_INTEGER_set} - ASN1_INTEGER_set : function(a: PASN1_INTEGER; v: TIdC_LONG): TIdC_INT cdecl = nil; - {$EXTERNALSYM ASN1_INTEGER_get} - ASN1_INTEGER_get : function(a: PASN1_INTEGER) : TIdC_LONG cdecl = nil; - //IdSslAsn1UtcTimeNew : function: Pointer cdecl = nil; - {$EXTERNALSYM ASN1_INTEGER_to_BN} - ASN1_INTEGER_to_BN : function(a: PASN1_INTEGER; bn: PBIGNUM) : PBIGNUM cdecl = nil; - {$EXTERNALSYM ASN1_STRING_type_new} - ASN1_STRING_type_new : function(_type: TIdC_INT): PASN1_STRING cdecl = nil; - {$EXTERNALSYM ASN1_STRING_free} - ASN1_STRING_free : procedure(a: PASN1_STRING) cdecl = nil; - {$EXTERNALSYM ASN1_dup} - ASN1_dup : function (i2d : i2d_of_void; d2i : d2i_of_void; x : PIdAnsiChar) : Pointer cdecl = nil; - {$EXTERNALSYM i2d_X509} - i2d_X509 : function(x: PX509; buf: PPByte) : TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_X509} - d2i_X509 : function(pr : PX509; _in : PPByte; len : TIdC_INT): PX509 cdecl = nil; - {$EXTERNALSYM i2d_X509_NAME} - i2d_X509_NAME : function(x : PX509_NAME; buf : PPByte) : TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_X509_NAME} - d2i_X509_NAME : function(pr : PPX509_NAME; _in : PPByte; length : TIdC_LONG):PX509_NAME cdecl = nil; - {$EXTERNALSYM i2d_X509_REQ} - i2d_X509_REQ : function(x: PX509_REQ; buf: PPByte): TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_X509_REQ} - d2i_X509_REQ : function(pr : PX509_REQ; _in : PPByte; len : TIdC_INT): PX509_REQ cdecl = nil; - {$EXTERNALSYM i2d_X509_CRL} - i2d_X509_CRL : function(x: PX509_CRL; buf: PPByte): TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_X509_CRL} - d2i_X509_CRL : function(pr : PX509_CRL; _in : PPByte; len : TIdC_INT): PX509_REQ cdecl = nil; - {$EXTERNALSYM i2d_RSAPrivateKey} - i2d_RSAPrivateKey : function(x: PRSA; buf: PPByte): TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_RSAPrivateKey} - d2i_RSAPrivateKey : function(pr : PRSA; _in : PPByte; len : TIdC_INT): PRSA cdecl = nil; - {$EXTERNALSYM i2d_RSAPublicKey} - i2d_RSAPublicKey : function(x: PRSA; buf: PPByte): TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_RSAPublicKey} - d2i_RSAPublicKey : function(pr : PRSA; _in : PPByte; len : TIdC_INT): PRSA cdecl = nil; - {$EXTERNALSYM i2d_DSAPrivateKey} - i2d_DSAPrivateKey : function(x: PDSA; buf: PPByte): TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_DSAPrivateKey} - d2i_DSAPrivateKey : function(pr : PDSA; _in : PPByte; len : TIdC_INT): PDSA cdecl = nil; - {$EXTERNALSYM i2d_PrivateKey} - i2d_PrivateKey : function(x: PEVP_PKEY; buf: PPByte): TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_PrivateKey} - d2i_PrivateKey : function(pr : PEVP_PKEY; _in : PPByte; len : TIdC_INT): PEVP_PKEY cdecl = nil; - {$EXTERNALSYM i2d_PKCS7} - i2d_PKCS7 : function(x: PPKCS7; buf: PPByte): TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_PKCS7} - d2i_PKCS7 : function(pr : PPKCS7; _in : PPByte; len : TIdC_INT): PPKCS7 cdecl = nil; - {$EXTERNALSYM i2d_DHparams} - i2d_DHparams : function(x: PDH; buf: PPByte): TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_DHparams} - d2i_DHparams : function(pr : PDH; _in : PPByte; len : TIdC_INT): PDH cdecl = nil; - {$EXTERNALSYM i2d_DSAparams} - i2d_DSAparams : function(x: PDSA; buf: PPByte): TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_DSAparams} - d2i_DSAparams : function(pr : PDSA; _in : PPByte; len : TIdC_INT): PDSA cdecl = nil; -//NETSCAPE_CERT_SEQUENCE - {$EXTERNALSYM i2d_NETSCAPE_CERT_SEQUENCE} - i2d_NETSCAPE_CERT_SEQUENCE : function(x: PNETSCAPE_CERT_SEQUENCE; buf: PPByte): TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_NETSCAPE_CERT_SEQUENCE} - d2i_NETSCAPE_CERT_SEQUENCE : function(pr : PNETSCAPE_CERT_SEQUENCE; _in : PPByte; len : TIdC_INT): PNETSCAPE_CERT_SEQUENCE cdecl = nil; - {$EXTERNALSYM i2d_PUBKEY} - i2d_PUBKEY : function(x: PEVP_PKEY; buf: PPByte): TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_PUBKEY} - d2i_PUBKEY : function(pr : PEVP_PKEY; _in : PPByte; len : TIdC_INT): PEVP_PKEY cdecl = nil; - - {$IFNDEF OPENSSL_NO_BIO} - {$EXTERNALSYM d2i_X509_bio} - d2i_X509_bio : function(bp: PBIO; x: PPx509): PX509 cdecl = nil; - {$EXTERNALSYM i2d_X509_REQ_bio} - i2d_X509_REQ_bio : function(bp: PBIO; x: PX509_REQ): TIdC_INT cdecl = nil; - {$EXTERNALSYM i2d_X509_bio} - i2d_X509_bio : function(bp: PBIO; x: PX509): TIdC_INT cdecl = nil; - {$EXTERNALSYM i2d_PrivateKey_bio} - i2d_PrivateKey_bio : function(b: PBIO; pkey: PEVP_PKEY): TIdC_INT cdecl = nil; - //P12 additions - {$EXTERNALSYM d2i_PKCS12_bio} - d2i_PKCS12_bio: function(bp: PBIO; x: PPPKCS12): PPKCS12 cdecl = nil; - {$EXTERNALSYM PKCS12_parse} - PKCS12_parse: function(P12: PPKCS12; Password: PIdAnsiChar; out PrivateKey: PEVP_PKEY; out Cert: PX509; CertChain: PPSTACK_OF_X509): TIdC_INT cdecl = nil; - {$ENDIF} - - {$EXTERNALSYM X509_new} - X509_new : function: PX509 cdecl = nil; - {$EXTERNALSYM X509_free} - X509_free : procedure(x: PX509) cdecl = nil; - {$EXTERNALSYM X509_NAME_new} - X509_NAME_new : function :PX509_NAME cdecl = nil; - {$EXTERNALSYM X509_NAME_free} - X509_NAME_free : procedure(x:PX509_NAME) cdecl = nil; - {$EXTERNALSYM X509_REQ_new} - X509_REQ_new : function :PX509_REQ cdecl = nil; - {$EXTERNALSYM X509_REQ_free} - X509_REQ_free : procedure(x:PX509_REQ) cdecl = nil; - {$EXTERNALSYM X509_to_X509_REQ} - X509_to_X509_REQ : function(x: PX509; pkey: PEVP_PKEY; const md: PEVP_MD): PX509_REQ cdecl = nil; - {$EXTERNALSYM X509_NAME_add_entry_by_txt} - X509_NAME_add_entry_by_txt : function(name: PX509_NAME; const field: PIdAnsiChar; _type: TIdC_INT; - const bytes: PIdAnsiChar; len, loc, _set: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_INFO_free} - X509_INFO_free : procedure (a : PX509_INFO) cdecl = nil; - {$EXTERNALSYM X509_set_version} - X509_set_version : function(x: PX509; version: TIdC_LONG): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_get_serialNumber} - X509_get_serialNumber : function(x: PX509): PASN1_INTEGER cdecl = nil; - {$EXTERNALSYM X509_gmtime_adj} - X509_gmtime_adj : function(s: PASN1_TIME; adj: TIdC_LONG): PASN1_TIME cdecl = nil; - {$EXTERNALSYM X509_set_notBefore} - X509_set_notBefore : function(x: PX509; tm: PASN1_TIME): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_set_notAfter} - X509_set_notAfter : function(x: PX509; tm: PASN1_TIME): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_set_pubkey} - X509_set_pubkey : function(x: PX509; pkey: PEVP_PKEY): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_REQ_set_pubkey} - X509_REQ_set_pubkey : function(x: PX509_REQ; pkey: PEVP_PKEY): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_PUBKEY_get} - X509_PUBKEY_get : function(key: PX509_PUBKEY): PEVP_PKEY cdecl = nil; - {$EXTERNALSYM X509_verify} - X509_verify : function(x509: PX509; pkey: PEVP_PKEY): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_sign} - X509_sign : function(x: PX509; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_REQ_sign} - X509_REQ_sign : function(x: PX509_REQ; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_REQ_add_extensions} - X509_REQ_add_extensions : function(req: PX509_REQ; exts: PSTACK_OF_X509_EXTENSION): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509V3_EXT_conf_nid} - X509V3_EXT_conf_nid : function(conf: PLHASH; ctx: PX509V3_CTX; ext_nid: TIdC_INT; value: PIdAnsiChar): PX509_EXTENSION cdecl = nil; - {$EXTERNALSYM X509_EXTENSION_create_by_NID} - X509_EXTENSION_create_by_NID : function(ex: PPX509_EXTENSION; nid: TIdC_INT; - crit: TIdC_INT; data: PASN1_OCTET_STRING): PX509_EXTENSION cdecl = nil; - {$EXTERNALSYM X509V3_set_ctx} - X509V3_set_ctx : procedure(ctx: PX509V3_CTX; issuer, subject: PX509; req: PX509_REQ; crl: PX509_CRL; flags: TIdC_INT) cdecl = nil; - {$EXTERNALSYM X509_EXTENSION_free} - X509_EXTENSION_free : procedure(ex: PX509_EXTENSION) cdecl = nil; - {$EXTERNALSYM X509_add_ext} - X509_add_ext : function(cert: PX509; ext: PX509_EXTENSION; loc: TIdC_INT): TIdC_INT cdecl = nil; - {$IFNDEF OPENSSL_NO_BIO} - {$EXTERNALSYM X509_print} - X509_print : function(bp : PBIO; x : PX509) : TIdC_INT cdecl = nil; - {$ENDIF} - {$EXTERNALSYM X509_STORE_add_lookup} - X509_STORE_add_lookup : function (v : PX509_STORE; m : PX509_LOOKUP_METHOD) : PX509_LOOKUP cdecl = nil; - {$EXTERNALSYM X509_STORE_load_locations} - X509_STORE_load_locations : function ( ctx : PX509_STORE; const _file, path : PIdAnsiChar) : TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_CTX_set_cipher_list} - SSL_CTX_set_cipher_list : function(_para1: PSSL_CTX; const str: PIdAnsiChar): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_CTX_new} - SSL_CTX_new : function(meth: PSSL_METHOD): PSSL_CTX cdecl = nil; - {$EXTERNALSYM SSL_CTX_free} - SSL_CTX_free : procedure(_para1: PSSL_CTX) cdecl = nil; - {$EXTERNALSYM SSL_set_fd} - SSL_set_fd : function(s: PSSL; fd: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_CTX_use_PrivateKey_file} - SSL_CTX_use_PrivateKey_file : function(ctx: PSSL_CTX; const _file: PIdAnsiChar; _type: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_CTX_use_PrivateKey} - SSL_CTX_use_PrivateKey : function(ctx: PSSL_CTX; pkey: PEVP_PKEY): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_CTX_use_certificate} - SSL_CTX_use_certificate : function(ctx: PSSL_CTX; x: PX509): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_CTX_use_certificate_file} - SSL_CTX_use_certificate_file : function(ctx: PSSL_CTX; const _file: PIdAnsiChar; _type: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_CTX_use_certificate_chain_file} //OpenSSL 1.0.2 - SSL_CTX_use_certificate_chain_file : function(ctx : PSSL_CTX; _file : PIdAnsiChar) : TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_load_error_strings} - SSL_load_error_strings : procedure cdecl = nil; - {$EXTERNALSYM SSL_state_string_long} - SSL_state_string_long : function(s: PSSL): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM SSL_alert_desc_string_long} - SSL_alert_desc_string_long : function(value : TIdC_INT) : PIdAnsiChar cdecl = nil; - {$EXTERNALSYM SSL_alert_type_string_long} - SSL_alert_type_string_long : function(value : TIdC_INT) : PIdAnsiChar cdecl = nil; - {$EXTERNALSYM SSL_get_peer_certificate} - SSL_get_peer_certificate : function(s: PSSL): PX509 cdecl = nil; - {$EXTERNALSYM SSL_CTX_set_verify} - SSL_CTX_set_verify : procedure(ctx: PSSL_CTX; mode: TIdC_INT; callback: TSSL_CTX_set_verify_callback) cdecl = nil; - {$EXTERNALSYM SSL_CTX_set_verify_depth} - SSL_CTX_set_verify_depth : procedure(ctx: PSSL_CTX; depth: TIdC_INT) cdecl = nil; - {$EXTERNALSYM SSL_CTX_get_verify_depth} - SSL_CTX_get_verify_depth : function (ctx: PSSL_CTX): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_CTX_set_default_passwd_cb} - SSL_CTX_set_default_passwd_cb : procedure(ctx: PSSL_CTX; cb: ppem_password_cb) cdecl = nil; - {$EXTERNALSYM SSL_CTX_set_default_passwd_cb_userdata} - SSL_CTX_set_default_passwd_cb_userdata: procedure(ctx: PSSL_CTX; u: Pointer) cdecl = nil; - {$EXTERNALSYM SSL_CTX_check_private_key} - SSL_CTX_check_private_key : function(ctx: PSSL_CTX): TIdC_INT cdecl = nil; - - - {$EXTERNALSYM SSL_new} - SSL_new : function(ctx: PSSL_CTX): PSSL cdecl = nil; - {$EXTERNALSYM SSL_free} - SSL_free : procedure(ssl: PSSL) cdecl = nil; - {$EXTERNALSYM SSL_accept} - SSL_accept : function(ssl: PSSL): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_connect} - SSL_connect : function(ssl: PSSL): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_read} - SSL_read : function(ssl: PSSL; buf: Pointer; num: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_peek} - SSL_peek : function(ssl: PSSL; buf: Pointer; num: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_write} - SSL_write : function(ssl: PSSL; const buf: Pointer; num: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_pending} - SSL_pending : function(ssl : PSSL) : TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_CTX_ctrl} - //long SSL_CTX_ctrl(SSL_CTX *ctx,int cmd, long larg, void *parg); - SSL_CTX_ctrl : function(ssl: PSSL_CTX; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG cdecl = nil; - {$EXTERNALSYM SSL_ctrl} - //long SSL_ctrl(SSL *ssl,int cmd, long larg, void *parg); - SSL_ctrl : function(ssl : PSSL; cmd : TIdC_INT; larg : TIdC_LONG; parg : Pointer) : TIdC_LONG cdecl = nil; - {$EXTERNALSYM SSL_callback_ctrl} - //long SSL_callback_ctrl(SSL *, int, void (*)(void)); - SSL_callback_ctrl : function(ssl : PSSL; cmd : TIdC_INT; fp : SSL_callback_ctrl_fp) : TIdC_LONG cdecl = nil; - {$EXTERNALSYM SSL_CTX_callback_ctrl} - //long SSL_CTX_callback_ctrl(SSL_CTX *, int, void (*)(void)); - SSL_CTX_callback_ctrl : function(ssl : PSSL_CTX; cmd : TIdC_INT; fp : SSL_callback_ctrl_fp) : TIdC_LONG cdecl = nil; - {$EXTERNALSYM SSL_get_error} - SSL_get_error : function(s: PSSL; ret_code: TIdC_INT): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSLv2_method} - SSLv2_method : function: PSSL_METHOD cdecl = nil; // SSLv2 - {$EXTERNALSYM SSLv2_server_method} - SSLv2_server_method : function: PSSL_METHOD cdecl = nil; // SSLv2 - {$EXTERNALSYM SSLv2_client_method} - SSLv2_client_method : function: PSSL_METHOD cdecl = nil; // SSLv2 - {$EXTERNALSYM SSLv3_method} - SSLv3_method : function: PSSL_METHOD cdecl = nil; // SSLv3 - {$EXTERNALSYM SSLv3_server_method} - SSLv3_server_method : function: PSSL_METHOD cdecl = nil; // SSLv3 - {$EXTERNALSYM SSLv3_client_method} - SSLv3_client_method : function: PSSL_METHOD cdecl = nil; // SSLv3 - {$EXTERNALSYM SSLv23_method} - SSLv23_method : function: PSSL_METHOD cdecl = nil; // SSLv3 but can rollback to v2 - {$EXTERNALSYM SSLv23_server_method} - SSLv23_server_method : function: PSSL_METHOD cdecl = nil; // SSLv3 but can rollback to v2 - {$EXTERNALSYM SSLv23_client_method} - SSLv23_client_method : function: PSSL_METHOD cdecl = nil; // SSLv3 but can rollback to v2 - {$EXTERNALSYM TLSv1_method} - TLSv1_method : function: PSSL_METHOD cdecl = nil; // TLSv1.0 - {$EXTERNALSYM TLSv1_server_method} - TLSv1_server_method : function: PSSL_METHOD cdecl = nil; // TLSv1.0 - {$EXTERNALSYM TLSv1_client_method} - TLSv1_client_method : function: PSSL_METHOD cdecl = nil; // TLSv1.0 - {$EXTERNALSYM TLSv1_1_method} - TLSv1_1_method : function : PSSL_METHOD cdecl = nil; //TLS1.1 - {$EXTERNALSYM TLSv1_1_server_method} - TLSv1_1_server_method : function : PSSL_METHOD cdecl = nil; //TLS1.1 - {$EXTERNALSYM TLSv1_1_client_method} - TLSv1_1_client_method : function : PSSL_METHOD cdecl = nil; //TLS1.1 - {$EXTERNALSYM TLSv1_2_method} - TLSv1_2_method : function : PSSL_METHOD cdecl = nil; //* TLSv1.2 */ - {$EXTERNALSYM TLSv1_2_server_method} - TLSv1_2_server_method : function : PSSL_METHOD cdecl = nil; //* TLSv1.2 */ - {$EXTERNALSYM TLSv1_2_client_method} - TLSv1_2_client_method : function : PSSL_METHOD cdecl = nil; //* TLSv1.2 */ - - {$EXTERNALSYM DTLSv1_method} - DTLSv1_method : function: PSSL_METHOD cdecl = nil; // DTLSv1.0 - {$EXTERNALSYM DTLSv1_server_method} - DTLSv1_server_method : function: PSSL_METHOD cdecl = nil; // DTLSv1.0 - {$EXTERNALSYM DTLSv1_client_method} - DTLSv1_client_method : function: PSSL_METHOD cdecl = nil; // DTLSv1.0 - {$EXTERNALSYM SSL_shutdown} - SSL_shutdown : function(s: PSSL): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_set_connect_state} - SSL_set_connect_state : procedure(s: PSSL) cdecl = nil; - {$EXTERNALSYM SSL_set_accept_state} - SSL_set_accept_state : procedure(s: PSSL) cdecl = nil; - {$EXTERNALSYM SSL_set_shutdown} - SSL_set_shutdown : procedure(ssl: PSSL; mode: TIdC_INT) cdecl = nil; - {$EXTERNALSYM SSL_CTX_load_verify_locations} - SSL_CTX_load_verify_locations : function(ctx: PSSL_CTX; const CAfile: PIdAnsiChar; const CApath: PIdAnsiChar): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_get_session} - SSL_get_session : function(const ssl: PSSL): PSSL_SESSION cdecl = nil; - {$EXTERNALSYM SSLeay_add_ssl_algorithms} - SSLeay_add_ssl_algorithms : function: TIdC_INT cdecl = nil; - // SSL_set_app_data : function(s: PSSL; arg: Pointer): Integer cdecl = nil; - // SSL_get_app_data : function(s: PSSL): Pointer cdecl = nil; - {$EXTERNALSYM SSL_SESSION_get_id} - SSL_SESSION_get_id : function(const s: PSSL_SESSION; length: PIdC_UINT): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM SSL_copy_session_id} - SSL_copy_session_id : procedure(sslTo: PSSL; const sslFrom: PSSL) cdecl = nil; - {$EXTERNALSYM X509_NAME_oneline} - X509_NAME_oneline : function(a: PX509_NAME; buf: PIdAnsiChar; size: TIdC_INT): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM X509_NAME_cmp} - X509_NAME_cmp : function(const a, b: PX509_NAME): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_NAME_hash} - X509_NAME_hash : function(x: PX509_NAME): TIdC_ULONG cdecl = nil; - {$EXTERNALSYM X509_set_issuer_name} - X509_set_issuer_name : function(x: PX509; name: PX509_NAME): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_get_issuer_name} - X509_get_issuer_name : function(a: PX509): PX509_NAME cdecl = nil; - {$EXTERNALSYM X509_set_subject_name} - X509_set_subject_name : function(x: PX509; name: PX509_NAME): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_get_subject_name} - X509_get_subject_name : function(a: PX509): PX509_NAME cdecl = nil; - {$EXTERNALSYM OBJ_obj2nid} - OBJ_obj2nid : function (const o: PASN1_OBJECT): TIdC_INT cdecl = nil; - {$EXTERNALSYM OBJ_nid2obj} - OBJ_nid2obj : function (n : TIdC_INT) : PASN1_OBJECT cdecl = nil; - {$EXTERNALSYM OBJ_nid2ln} - OBJ_nid2ln : function (n : TIdC_INT) : PIdAnsiChar cdecl = nil; - {$EXTERNALSYM OBJ_nid2sn} - OBJ_nid2sn : function (n : TIdC_INT) : PIdAnsiChar cdecl = nil; - {$EXTERNALSYM X509_digest} - X509_digest : function(const data: PX509; const _type: PEVP_MD; - md: PByte; var len: TIdC_UINT): TIdC_INT cdecl = nil; - {$IFNDEF OPENSSL_NO_SHA512} - {$EXTERNALSYM EVP_sha512} - EVP_sha512 : function : PEVP_MD cdecl = nil; - {$EXTERNALSYM EVP_sha384} - EVP_sha384 : function : PEVP_MD cdecl = nil; - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA256} - {$EXTERNALSYM EVP_sha256} - EVP_sha256 : function : PEVP_MD cdecl = nil; - {$EXTERNALSYM EVP_sha224} - EVP_sha224 : function : PEVP_MD cdecl = nil; - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA} - {$EXTERNALSYM EVP_sha} - EVP_sha : function : PEVP_MD cdecl = nil; - {$EXTERNALSYM EVP_sha1} - EVP_sha1 : function: PEVP_MD cdecl = nil; - {$EXTERNALSYM EVP_dss} - EVP_dss : function : PEVP_MD cdecl = nil; - {$EXTERNALSYM EVP_dss1} - EVP_dss1 : function : PEVP_MD cdecl = nil; - {$EXTERNALSYM EVP_ecdsa} - EVP_ecdsa : function : PEVP_MD cdecl = nil; - {$ENDIF} - {$ifndef OPENSSL_NO_MDC2} - {$EXTERNALSYM EVP_mdc2} - EVP_mdc2 : function : PEVP_MD cdecl = nil; - {$endif} - {$IFNDEF OPENSSL_NO_MD5} - {$EXTERNALSYM EVP_md5} - EVP_md5 : function: PEVP_MD cdecl = nil; - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD4} - {$EXTERNALSYM EVP_md4} - EVP_md4 : function: PEVP_MD cdecl = nil; - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD2} - {$EXTERNALSYM EVP_md2} - EVP_md2 : function: PEVP_MD cdecl = nil; - {$ENDIF} - {$ifndef OPENSSL_NO_RIPEMD} - {$EXTERNALSYM EVP_ripemd160} - EVP_ripemd160: function: PEVP_MD cdecl = nil; - {$endif} - {$ifndef OPENSSL_NO_WHIRLPOOL} - {$EXTERNALSYM EVP_whirlpool} - EVP_whirlpool: function: PEVP_MD cdecl = nil; - {$endif} - {$EXTERNALSYM EVP_md_null} - EVP_md_null : function : PEVP_MD cdecl = nil; - {$ifndef OPENSSL_NO_DES} - {$EXTERNALSYM EVP_des_ecb} - EVP_des_ecb : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_ede} - EVP_des_ede : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_ede3} - EVP_des_ede3 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_ede_ecb} - EVP_des_ede_ecb : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_ede3_ecb} - EVP_des_ede3_ecb : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_cfb64} - EVP_des_cfb64: function : PEVP_CIPHER cdecl = nil; -// # define EVP_des_cfb EVP_des_cfb64 - {$EXTERNALSYM EVP_des_cfb1} - EVP_des_cfb1: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_cfb8} - EVP_des_cfb8 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_ede_cfb64} - EVP_des_ede_cfb64 :function : PEVP_CIPHER cdecl = nil; -//# define EVP_des_ede_cfb EVP_des_ede_cfb64 -//#if 0 - {/$EXTERNALSYM EVP_des_ede_cfb1} - //EVP_des_ede_cfb1 :function : PEVP_CIPHER cdecl = nil; - {/$EXTERNALSYM EVP_des_ede_cfb8} - //EVP_des_ede_cfb8 : function : PEVP_CIPHER cdecl = nil; -//#endif - {$EXTERNALSYM EVP_des_ede3_cfb64} - EVP_des_ede3_cfb64 :function : PEVP_CIPHER cdecl = nil; -//# define EVP_des_ede3_cfb EVP_des_ede3_cfb64 - {$EXTERNALSYM EVP_des_ede3_cfb1} - EVP_des_ede3_cfb1 :function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_ede3_cfb8} - EVP_des_ede3_cfb8 :function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_ofb} - EVP_des_ofb :function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_ede_ofb} - EVP_des_ede_ofb :function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_ede3_ofb} - EVP_des_ede3_ofb :function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_cbc} - EVP_des_cbc :function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_des_ede_cbc} - EVP_des_ede_cbc :function : PEVP_CIPHER cdecl = nil; -// EVP_des_ede3_cbc :function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_desx_cbc} - EVP_desx_cbc :function : PEVP_CIPHER cdecl = nil; -//* This should now be supported through the dev_crypto ENGINE. But also, why are -// * rc4 and md5 declarations made here inside a "NO_DES" precompiler branch? */ -//#if 0 - {$ifdef OPENSSL_OPENBSD_DEV_CRYPTO} - {$EXTERNALSYM EVP_dev_crypto_des_ede3_cbc} - EVP_dev_crypto_des_ede3_cbc : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_dev_crypto_rc4} - EVP_dev_crypto_rc4 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_dev_crypto_md5} - EVP_dev_crypto_md5 : function : PEVP_MD cdecl = nil; - {$endif} -//#endif - {$endif} - {$ifndef OPENSSL_NO_RC4} - {$EXTERNALSYM EVP_rc4} - EVP_rc4: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_rc4_40} - EVP_rc4_40: function : PEVP_CIPHER cdecl = nil; - {$ifndef OPENSSL_NO_MD5} - {$EXTERNALSYM EVP_rc4_hmac_md5} - EVP_rc4_hmac_md5: function : PEVP_CIPHER cdecl = nil; - {$endif} - {$endif} - {$ifndef OPENSSL_NO_IDEA} - {$EXTERNALSYM EVP_idea_ecb} - EVP_idea_ecb: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_idea_cfb64} - EVP_idea_cfb64: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_idea_ofb} - EVP_idea_ofb: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_idea_cbc} - EVP_idea_cbc: function : PEVP_CIPHER cdecl = nil; - {$endif} - {$ifndef OPENSSL_NO_RC2} - {$EXTERNALSYM EVP_rc2_ecb} - EVP_rc2_ecb: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_rc2_cbc} - EVP_rc2_cbc: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_rc2_40_cbc} - EVP_rc2_40_cbc: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_rc2_64_cbc} - EVP_rc2_64_cbc: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_rc2_cfb64} - EVP_rc2_cfb64: function : PEVP_CIPHER cdecl = nil; -//# define EVP_rc2_cfb EVP_rc2_cfb64 - {$EXTERNALSYM EVP_rc2_ofb} - EVP_rc2_ofb: function : PEVP_CIPHER cdecl = nil; - {$endif} - {$ifndef OPENSSL_NO_BF} - {$EXTERNALSYM EVP_bf_ecb} - EVP_bf_ecb: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_bf_cbc} - EVP_bf_cbc: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_bf_cfb64} - EVP_bf_cfb64: function : PEVP_CIPHER cdecl = nil; -//# define EVP_bf_cfb EVP_bf_cfb64 - {$EXTERNALSYM EVP_bf_ofb} - EVP_bf_ofb: function : PEVP_CIPHER cdecl = nil; - {$endif} - {$ifndef OPENSSL_NO_CAST} - {$EXTERNALSYM EVP_cast5_ecb} - EVP_cast5_ecb : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_cast5_cbc} - EVP_cast5_cbc : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_cast5_cfb64} - EVP_cast5_cfb64: function : PEVP_CIPHER cdecl = nil; -//# define EVP_cast5_cfb EVP_cast5_cfb64 - {$EXTERNALSYM EVP_cast5_ofb} - EVP_cast5_ofb: function : PEVP_CIPHER cdecl = nil; - {$endif} - {$ifndef OPENSSL_NO_RC5} - {$EXTERNALSYM EVP_rc5_32_12_16_cb} - EVP_rc5_32_12_16_cbc: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_rc5_32_12_16_ecb} - EVP_rc5_32_12_16_ecb: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_rc5_32_12_16_cfb64} - EVP_rc5_32_12_16_cfb64: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_rc5_32_12_16_ofb\} - EVP_rc5_32_12_16_ofb: function : PEVP_CIPHER cdecl = nil; - {$endif} - {$ifndef OPENSSL_NO_AES} - {$EXTERNALSYM EVP_aes_128_ecb} - EVP_aes_128_ecb: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_128_cbc} - EVP_aes_128_cbc: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_128_cfb1} - EVP_aes_128_cfb1: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_128_cfb8} - EVP_aes_128_cfb8: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_128_cfb128} - EVP_aes_128_cfb128: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_128_ofb} - EVP_aes_128_ofb: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_128_ctr} - EVP_aes_128_ctr: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_128_gcm} - EVP_aes_128_gcm: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_128_ccm} - EVP_aes_128_ccm: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_128_xts} - EVP_aes_128_xts: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_192_ecb} - EVP_aes_192_ecb: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_192_cbc} - EVP_aes_192_cbc: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_192_cfb1} - EVP_aes_192_cfb1: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_192_cfb8} - EVP_aes_192_cfb8: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_192_cfb128} - EVP_aes_192_cfb128: function : PEVP_CIPHER cdecl = nil; -//# define EVP_aes_192_cfb EVP_aes_192_cfb128 - {$EXTERNALSYM EVP_aes_192_ofb} - EVP_aes_192_ofb: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_192_ctr} - EVP_aes_192_ctr: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_192_gcm} - EVP_aes_192_gcm: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_192_ccm} - EVP_aes_192_ccm: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_256_ecb} - EVP_aes_256_ecb: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_256_cbc} - EVP_aes_256_cbc: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_256_cfb1} - EVP_aes_256_cfb1: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_256_cfb8} - EVP_aes_256_cfb8: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_256_cfb128} - EVP_aes_256_cfb128: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_256_ofb} - EVP_aes_256_ofb: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_256_ctr} - EVP_aes_256_ctr: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_256_gcm} - EVP_aes_256_gcm: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_256_ccm} - EVP_aes_256_ccm: function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_256_xts} - EVP_aes_256_xts: function : PEVP_CIPHER cdecl = nil; - {$ifndef OPENSSL_NO_SHA} - {$ifndef OPENSSL_NO_SHA1} - {$EXTERNALSYM EVP_aes_128_cbc_hmac_sha1} - EVP_aes_128_cbc_hmac_sha1 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_aes_256_cbc_hmac_sha1} - EVP_aes_256_cbc_hmac_sha1 : function : PEVP_CIPHER cdecl = nil; - {$endif} - {$endif} - {$endif} - {$ifndef OPENSSL_NO_CAMELLIA} - {$EXTERNALSYM EVP_camellia_128_ecb} - EVP_camellia_128_ecb : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_128_cbc} - EVP_camellia_128_cbc : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_128_cfb1} - EVP_camellia_128_cfb1 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_128_cfb8} - EVP_camellia_128_cfb8 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_128_cfb128} - EVP_camellia_128_cfb128 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_128_ofb} - EVP_camellia_128_ofb : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_192_ecb} - EVP_camellia_192_ecb : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_192_cbc} - EVP_camellia_192_cbc : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_192_cfb1} - EVP_camellia_192_cfb1 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_192_cfb8} - EVP_camellia_192_cfb8 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_192_cfb128} - EVP_camellia_192_cfb128 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_192_ofb} - EVP_camellia_192_ofb : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_256_ecb} - EVP_camellia_256_ecb : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_256_cbc} - EVP_camellia_256_cbc : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_256_cfb1} - EVP_camellia_256_cfb1 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_256_cfb8} - EVP_camellia_256_cfb8 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_256_cfb128} - EVP_camellia_256_cfb128 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_camellia_256_ofb} - EVP_camellia_256_ofb : function : PEVP_CIPHER cdecl = nil; - {$endif} - - {$ifndef OPENSSL_NO_SEED} - {$EXTERNALSYM EVP_seed_ecb} - EVP_seed_ecb : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_seed_cbc} - EVP_seed_cbc : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_seed_cfb128} - EVP_seed_cfb128 : function : PEVP_CIPHER cdecl = nil; - {$EXTERNALSYM EVP_seed_ofb} - EVP_seed_ofb : function : PEVP_CIPHER cdecl = nil; - {$endif} - {$EXTERNALSYM EVP_add_cipher} - EVP_add_cipher : function (cipher : PEVP_CIPHER) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_add_digest} - EVP_add_digest : function(digest : PEVP_MD) : TIdC_INT cdecl = nil; - - {$EXTERNALSYM EVP_CIPHER_do_all} - EVP_CIPHER_do_all : procedure(fn : EVP_CIPHER_do_all_fn; arg : Pointer) cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_do_all_sorted} - EVP_CIPHER_do_all_sorted : procedure(fn : EVP_CIPHER_do_all_fn; arg : Pointer) cdecl = nil; - {$EXTERNALSYM EVP_MD_do_all} - EVP_MD_do_all : procedure(fn : EVP_MD_do_all_fn; arg : Pointer) cdecl = nil; - {$EXTERNALSYM EVP_MD_do_all_sorted} - EVP_MD_do_all_sorted : procedure(fn : EVP_MD_do_all_fn; arg : Pointer) cdecl = nil; - - {$EXTERNALSYM EVP_PKEY_decrypt_old} - EVP_PKEY_decrypt_old : function(dec_key : PIdAnsiChar; - enc_key : PIdAnsiChar; enc_key_len : TIdC_INT; - private_key : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_encrypt_old} - EVP_PKEY_encrypt_old : function(enc_key : PIdAnsiChar; - key : PIdAnsiChar; key_len : TIdC_INT; - pub_key : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_type} - EVP_PKEY_type : function(_type : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_id} - EVP_PKEY_id : function(pkey : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_base_id} - EVP_PKEY_base_id : function(pkey : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_bits} - EVP_PKEY_bits : function(pkey : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_size} - EVP_PKEY_size : function(pkey : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_set_type} - EVP_PKEY_set_type : function(pkey : PEVP_PKEY;_type : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_set_type_str} - EVP_PKEY_set_type_str : function(pkey: PEVP_PKEY; str : PIdAnsiChar; len : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_get0} - EVP_PKEY_get0 : function(pkey : PEVP_PKEY) : Pointer cdecl = nil; - - {$ifndef OPENSSL_NO_RSA} -//struct rsa_st; - {$EXTERNALSYM EVP_PKEY_set1_RSA} - EVP_PKEY_set1_RSA: function(pkey : PEVP_PKEY;key : Prsa_st) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_get1_RSA} - EVP_PKEY_get1_RSA: function(pkey: PEVP_PKEY) : Prsa_st cdecl = nil; - {$endif} - {$ifndef OPENSSL_NO_DSA} -// struct dsa_st; - {$EXTERNALSYM EVP_PKEY_set1_DSA} - EVP_PKEY_set1_DSA: function(pkey : PEVP_PKEY; key : Pdsa_st) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_get1_DSA} - EVP_PKEY_get1_DSA: function(pkey : PEVP_PKEY) : Pdsa_st cdecl = nil; - {$endif} - {$ifndef OPENSSL_NO_DH} -// struct dh_st; - {$EXTERNALSYM EVP_PKEY_set1_DH} - EVP_PKEY_set1_DH: function(pkey : PEVP_PKEY; key : Pdh_st) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_get1_DH} - EVP_PKEY_get1_DH: function(pkey : PEVP_PKEY) : Pdh_st cdecl = nil; - {$endif} - {$ifndef OPENSSL_NO_EC} -// struct ec_key_st; - {$EXTERNALSYM EVP_PKEY_set1_EC_KEY} - EVP_PKEY_set1_EC_KEY : function(pkey : PEVP_PKEY; key : Pec_key_st) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_get1_EC_KEY} - EVP_PKEY_get1_EC_KEY : function(pkey : PEVP_PKEY) : Pec_key_st cdecl = nil; - {$endif} - - {$EXTERNALSYM d2i_PublicKey} - d2i_PublicKey : function(_type : TIdC_INT; a :PPEVP_PKEY; pp : PPIdAnsiChar; - length : TIdC_LONG) : PEVP_PKEY cdecl = nil; - {$EXTERNALSYM i2d_PublicKey} - i2d_PublicKey : function(a : PEVP_PKEY; pp : PPIdAnsiChar) : TIdC_INT cdecl = nil; - {$EXTERNALSYM d2i_AutoPrivateKey} - d2i_AutoPrivateKey : function(a : PPEVP_PKEY; pp : PPIdAnsiChar; - length : TIdC_LONG) : PEVP_PKEY cdecl = nil; - {$EXTERNALSYM EVP_PKEY_copy_parameters} - EVP_PKEY_copy_parameters : function(_to : PEVP_PKEY; from : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_missing_parameters} - EVP_PKEY_missing_parameters : function(pkey : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_save_parameters} - EVP_PKEY_save_parameters : function(pkey : PEVP_PKEY;mode : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_cmp_parameters} - EVP_PKEY_cmp_parameters : function(a : PEVP_PKEY; b : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_cmp} - EVP_PKEY_cmp : function(a : PEVP_PKEY; b : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_print_public} - EVP_PKEY_print_public : function(_out : PBIO; pkey : PEVP_PKEY; - indent : TIdC_INT; pctx : PASN1_PCTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_print_private} - EVP_PKEY_print_private : function(_out : PBIO; pkey : PEVP_PKEY; - indent : TIdC_INT; pctx : PASN1_PCTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_print_params} - EVP_PKEY_print_params : function(_out : PBIO; pkey : PEVP_PKEY; - indent : TIdC_INT; pctx : PASN1_PCTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_get_default_digest_nid} - EVP_PKEY_get_default_digest_nid : function(pkey : PEVP_PKEY; pnid : PIdC_INT) : TIdC_INT cdecl = nil; - -//* calls methods */ - {$EXTERNALSYM EVP_CIPHER_param_to_asn1} - EVP_CIPHER_param_to_asn1 : function(c : PEVP_CIPHER_CTX; _type : PASN1_TYPE) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_asn1_to_param} - EVP_CIPHER_asn1_to_param : function(c : PEVP_CIPHER_CTX; _type : PASN1_TYPE) : TIdC_INT cdecl = nil; - -//* These are used by EVP_CIPHER methods */ - {$EXTERNALSYM EVP_CIPHER_set_asn1_iv} - EVP_CIPHER_set_asn1_iv : function(c : PEVP_CIPHER_CTX; _type : PASN1_TYPE) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_CIPHER_get_asn1_iv} - EVP_CIPHER_get_asn1_iv : function(c : PEVP_CIPHER_CTX; _type : PASN1_TYPE) : TIdC_INT cdecl = nil; - -//* PKCS5 password based encryption */ - {$EXTERNALSYM PKCS5_PBE_keyivgen} - PKCS5_PBE_keyivgen : function(ctx : PEVP_CIPHER_CTX; pass : PIdAnsiChar; passlen : TIdC_INT; - param : PASN1_TYPE; cipher : PEVP_CIPHER; md : PEVP_MD; - en_de : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM PKCS5_PBKDF2_HMAC_SHA1} - PKCS5_PBKDF2_HMAC_SHA1 : function(pass : PIdAnsiChar; passlen : TIdC_INT; - salt : PIdAnsiChar; saltlen : TIdC_INT; iter : TIdC_INT; - keylen : TIdC_INT; _out : PIdAnsiChar) : TIdC_INT cdecl = nil; - {$EXTERNALSYM PKCS5_PBKDF2_HMAC} - PKCS5_PBKDF2_HMAC : function(pass : PIdAnsiChar; passlen : TIdC_INT; - salt : PIdAnsiChar; saltlen : TIdC_INT; iter : TIdC_INT; - digest : PEVP_MD; - keylen : TIdC_INT; _out : PIdAnsiChar) : TIdC_INT cdecl = nil; - {$EXTERNALSYM PKCS5_v2_PBE_keyivgen} - PKCS5_v2_PBE_keyivgen : function(ctx : PEVP_CIPHER_CTX; pass : PIdAnsiChar; passlen : TIdC_INT; - param : PASN1_TYPE; cipher : PEVP_CIPHER; md : PEVP_MD; - en_de : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM PKCS5_PBE_add} - PKCS5_PBE_add : procedure cdecl = nil; - {$EXTERNALSYM EVP_PBE_CipherInit} - EVP_PBE_CipherInit : function (pbe_obj : PASN1_OBJECT; pass : PIdAnsiChar; passlen : TIdC_INT; - param : PASN1_TYPE; ctx : PEVP_CIPHER_CTX; en_de : TIdC_INT) : TIdC_INT cdecl = nil; - - {$EXTERNALSYM EVP_PBE_alg_add_type} - - EVP_PBE_alg_add_type : function(pbe_type : TIdC_INT; pbe_nid : TIdC_INT; cipher_nid : TIdC_INT; md_nid : TIdC_INT; - keygen : PEVP_PBE_KEYGEN) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PBE_alg_add} - EVP_PBE_alg_add : function(nid : TIdC_INT; cipher : PEVP_CIPHER; md : PEVP_MD; - keygen :PEVP_PBE_KEYGEN) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PBE_find} - EVP_PBE_find : function(_type : TIdC_INT; pbe_nid : TIdC_INT; - pcnid : PIdC_INT; pmnid : PIdC_INT; var pkeygen : PEVP_PBE_KEYGEN) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PBE_cleanup} - EVP_PBE_cleanup : procedure cdecl = nil; - - {$EXTERNALSYM EVP_PKEY_asn1_get_count} - EVP_PKEY_asn1_get_count : function : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_get0} - EVP_PKEY_asn1_get0 : function(idx : TIdC_INT) : PEVP_PKEY_ASN1_METHOD cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_find} - EVP_PKEY_asn1_find : function(pe :PPENGINE; _type : TIdC_INT) : PEVP_PKEY_ASN1_METHOD cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_find_str} - EVP_PKEY_asn1_find_str : function(pe : PPENGINE; - str : PIdAnsiChar; len : TIdC_INT) : PEVP_PKEY_ASN1_METHOD cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_add0} - EVP_PKEY_asn1_add0 : function(ameth : PEVP_PKEY_ASN1_METHOD) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_add_alias} - EVP_PKEY_asn1_add_alias : function(_to : TIdC_INT; from : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_get0_info} - EVP_PKEY_asn1_get0_info : function(ppkey_id : PIdC_int; pkey_base_id : PIdC_INT; ppkey_flags : PIdC_INT; - pinfo : PPIdAnsiChar; ppem_str : PPIdAnsiChar; - ameth : PEVP_PKEY_ASN1_METHOD) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_get0_asn1} - EVP_PKEY_get0_asn1 : function(pkey : PEVP_PKEY) : PEVP_PKEY_ASN1_METHOD cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_new} - EVP_PKEY_asn1_new : function(id : TIdC_INT; flags : TIdC_INT; - pem_str : PIdAnsiChar; info : PIdAnsiChar) : PEVP_PKEY_ASN1_METHOD cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_copy} - EVP_PKEY_asn1_copy : procedure(dst : PEVP_PKEY_ASN1_METHOD; - src : PEVP_PKEY_ASN1_METHOD) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_free} - EVP_PKEY_asn1_free : procedure(ameth : PEVP_PKEY_ASN1_METHOD) cdecl = nil; - - {$EXTERNALSYM EVP_PKEY_asn1_set_public} - EVP_PKEY_asn1_set_public : procedure(ameth : PEVP_PKEY_ASN1_METHOD; - pub_decode : EVP_PKEY_asn1_set_public_pub_decode; - pub_encode : EVP_PKEY_asn1_set_public_pub_encode; - pub_cmp : EVP_PKEY_asn1_set_public_pub_cmp; - pub_print : EVP_PKEY_asn1_set_public_pub_print; - pkey_size : EVP_PKEY_asn1_set_public_pub_pkey_size; - pkey_bits : EVP_PKEY_asn1_set_public_pkey_bits) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_set_private} - EVP_PKEY_asn1_set_private : procedure(ameth : PEVP_PKEY_ASN1_METHOD; - priv_decode : EVP_PKEY_asn1_set_private_priv_decode; - priv_encode : EVP_PKEY_asn1_set_private_priv_encode; - priv_print : EVP_PKEY_asn1_set_private_priv_print) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_set_param} - EVP_PKEY_asn1_set_param : procedure(ameth : PEVP_PKEY_ASN1_METHOD; - param_decode : EVP_PKEY_asn1_set_param_param_decode; - param_encode : EVP_PKEY_asn1_set_param_param_encode; - param_missing : EVP_PKEY_asn1_set_param_param_missing; - param_copy : EVP_PKEY_asn1_set_param_param_copy; - param_cmp : EVP_PKEY_asn1_set_param_param_cmp; - param_print : EVP_PKEY_asn1_set_param_param_print) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_set_free} - EVP_PKEY_asn1_set_free : procedure(ameth : PEVP_PKEY_ASN1_METHOD; - pkey_free : EVP_PKEY_asn1_set_free_pkey_free) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_asn1_set_ctrl} - EVP_PKEY_asn1_set_ctrl : procedure(ameth : PEVP_PKEY_ASN1_METHOD; - pkey_ctrl : EVP_PKEY_asn1_set_ctr_pkey_ctrl) cdecl = nil; - - {$EXTERNALSYM EVP_PKEY_meth_find} - EVP_PKEY_meth_find : function (_type : TIdC_INT) : PEVP_PKEY_METHOD cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_new} - EVP_PKEY_meth_new : function(id : TIdC_INT; flags : TIdC_INT) : PEVP_PKEY_METHOD cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_get0_info} - EVP_PKEY_meth_get0_info : procedure(ppkey_id : PIdC_INT; pflags : PIdC_INT; - meth : PEVP_PKEY_METHOD) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_copy} - EVP_PKEY_meth_copy : procedure(dst : PEVP_PKEY_METHOD; src : PEVP_PKEY_METHOD) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_free} - EVP_PKEY_meth_free : procedure(pmeth : PEVP_PKEY_METHOD) cdecl =nil; - {$EXTERNALSYM EVP_PKEY_meth_add0} - EVP_PKEY_meth_add0 : function(pmeth : PEVP_PKEY_METHOD) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_new} - EVP_PKEY_CTX_new : function(pkey : PEVP_PKEY; e : PENGINE) : PEVP_PKEY_CTX cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_new_id} - EVP_PKEY_CTX_new_id : function(id : TIdC_INT; e : PENGINE) : PEVP_PKEY_CTX cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_dup} - EVP_PKEY_CTX_dup : function(ctx : PEVP_PKEY_CTX) : PEVP_PKEY_CTX cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_free} - EVP_PKEY_CTX_free : procedure(ctx : PEVP_PKEY_CTX) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_ctrl} - EVP_PKEY_CTX_ctrl : function(ctx : PEVP_PKEY_CTX; keytype : TIdC_INT; optype : TIdC_INT; - cmd : TIdC_INT; p1 : TIdC_INT; p2 : Pointer) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_ctrl_str} - EVP_PKEY_CTX_ctrl_str : function(ctx : PEVP_PKEY_CTX; _type : PIdAnsiChar; - value : PIdAnsiChar) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_get_operation} - EVP_PKEY_CTX_get_operation : function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_set0_keygen_info} - EVP_PKEY_CTX_set0_keygen_info : procedure(ctx : PEVP_PKEY_CTX; dat : PIdC_INT; datlen : TIdC_INT) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_new_mac_key} - EVP_PKEY_new_mac_key : function(_type : TIdC_INT; e : PENGINE; - key : PIdAnsiChar; keylen : TIdC_INT) : PEVP_PKEY cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_set_data} - EVP_PKEY_CTX_set_data : procedure(ctx : PEVP_PKEY_CTX; data : Pointer) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_get_data} - EVP_PKEY_CTX_get_data : function(ctx : PEVP_PKEY_CTX) : Pointer cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_get0_pkey} - EVP_PKEY_CTX_get0_pkey : function(ctx : PEVP_PKEY_CTX) : PEVP_PKEY cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_get0_peerkey} - EVP_PKEY_CTX_get0_peerkey : function(ctx : PEVP_PKEY_CTX) : PEVP_PKEY cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_set_app_data} - EVP_PKEY_CTX_set_app_data : procedure(ctx : PEVP_PKEY_CTX; data : Pointer) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_get_app_data} - EVP_PKEY_CTX_get_app_data : function(ctx : PEVP_PKEY_CTX) : Pointer cdecl = nil; - {$EXTERNALSYM EVP_PKEY_sign_init} - EVP_PKEY_sign_init : function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_sign} - EVP_PKEY_sign : function(ctx : PEVP_PKEY_CTX; - sig : PIdAnsiChar; siglen : Psize_t; - tbs : PIdAnsiChar; tbslen : size_t) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_verify_init} - EVP_PKEY_verify_init : function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_verify} - EVP_PKEY_verify : function(ctx : PEVP_PKEY_CTX; - sig : PIdAnsiChar; siglen : size_t; - tbs : PIdAnsiChar; tbslen : size_t) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_verify_recover_init} - EVP_PKEY_verify_recover_init : function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_verify_recover} - EVP_PKEY_verify_recover : function(ctx : PEVP_PKEY_CTX; - rout : PIdAnsiChar; routlen : Psize_t; - sig : PIdAnsiChar; siglen : size_t) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_encrypt_init} - EVP_PKEY_encrypt_init : function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_encrypt} - EVP_PKEY_encrypt : function(ctx : PEVP_PKEY_CTX; - _out : PIdAnsiChar; outlen : Psize_t; - _in : PIdAnsiChar; inlen : size_t) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_decrypt_init} - EVP_PKEY_decrypt_init : function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_decrypt} - EVP_PKEY_decrypt : function(ctx : PEVP_PKEY_CTX; - _out : PIdAnsiChar; outlen : Psize_t; - _in : PIdAnsiChar; inlen : size_t) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_derive_init} - EVP_PKEY_derive_init : function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_derive_set_peer} - EVP_PKEY_derive_set_peer : function(ctx : PEVP_PKEY_CTX; peer : PEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_derive} - EVP_PKEY_derive : function(ctx : PEVP_PKEY_CTX; key : PIdAnsiChar; keylen : Psize_t) : TIdC_INT cdecl = nil; - - - {$EXTERNALSYM EVP_PKEY_paramgen_init} - EVP_PKEY_paramgen_init: function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl; - {$EXTERNALSYM EVP_PKEY_paramgen} - EVP_PKEY_paramgen : function(ctx : PEVP_PKEY_CTX; ppkey : PPEVP_PKEY) : TIdC_INT; - {$EXTERNALSYM EVP_PKEY_keygen_init} - EVP_PKEY_keygen_init : function(ctx : PEVP_PKEY_CTX) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_keygen} - EVP_PKEY_keygen : function(ctx : PEVP_PKEY_CTX; ppkey : PPEVP_PKEY) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_set_cb} - EVP_PKEY_CTX_set_cb : procedure(ctx : PEVP_PKEY_CTX; cb : EVP_PKEY_gen_cb) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_get_cb} - EVP_PKEY_CTX_get_cb : function(ctx : PEVP_PKEY_CTX) : EVP_PKEY_gen_cb cdecl = nil; - {$EXTERNALSYM EVP_PKEY_CTX_get_keygen_info} - EVP_PKEY_CTX_get_keygen_info : function(ctx : PEVP_PKEY_CTX; idx : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_init} - EVP_PKEY_meth_set_init : procedure(pmeth : PEVP_PKEY_METHOD; - init : EVP_PKEY_meth_set_init_init) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_copy} - EVP_PKEY_meth_set_copy : procedure (pmeth : PEVP_PKEY_METHOD; - copy : EVP_PKEY_meth_set_copy_copy) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_cleanup} - EVP_PKEY_meth_set_cleanup : procedure(pmeth : PEVP_PKEY_METHOD; - cleanup : EVP_PKEY_meth_set_cleanup_cleanup) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_paramgen} - EVP_PKEY_meth_set_paramgen : procedure(pmeth : PEVP_PKEY_METHOD; - paramgen_init : EVP_PKEY_meth_set_paramgen_paramgen_init; - paramgen : EVP_PKEY_meth_set_paramgen_paramgen); - {$EXTERNALSYM EVP_PKEY_meth_set_keygen} - EVP_PKEY_meth_set_keygen : procedure(pmeth : PEVP_PKEY_METHOD; - keygen_init : EVP_PKEY_meth_set_keygen_keygen_init; - keygen : EVP_PKEY_meth_set_keygen_keygen) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_sign} - EVP_PKEY_meth_set_sign : procedure(pmeth : PEVP_PKEY_METHOD; - sign_init : EVP_PKEY_meth_set_sign_sign_init; - sign : EVP_PKEY_meth_set_sign_sign) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_verify} - EVP_PKEY_meth_set_verify : procedure(pmeth : PEVP_PKEY_METHOD; - verify_init : EVP_PKEY_meth_set_verify_verify_init; - verify : EVP_PKEY_meth_set_verify_verify) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_verify_recover} - EVP_PKEY_meth_set_verify_recover : procedure(pmeth : PEVP_PKEY_METHOD; - verify_recover_init : EVP_PKEY_meth_set_verify_recover_verify_recover_init; - verify_recover : EVP_PKEY_meth_set_verify_recover_verify_recover) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_signctx} - EVP_PKEY_meth_set_signctx : procedure(pmeth : PEVP_PKEY_METHOD; - signctx_init : EVP_PKEY_meth_set_signctx_signctx_init; - signctx : EVP_PKEY_meth_set_signctx_signctx) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_verifyctx} - EVP_PKEY_meth_set_verifyctx : procedure(pmeth : PEVP_PKEY_METHOD; - verifyctx_init : EVP_PKEY_meth_set_verifyctx_verifyctx_init; - verifyctx : EVP_PKEY_meth_set_verifyctx_verifyctx) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_encrypt} - EVP_PKEY_meth_set_encrypt : procedure(pmeth : PEVP_PKEY_METHOD; - encrypt_init : EVP_PKEY_meth_set_encrypt_encrypt_init; - encryptfn : EVP_PKEY_meth_set_encrypt_encryptfn) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_decrypt} - EVP_PKEY_meth_set_decrypt : procedure(pmeth : PEVP_PKEY_METHOD; - decrypt_init : EVP_PKEY_meth_set_decrypt_decrypt_init; - decrypt : EVP_PKEY_meth_set_decrypt_decrypt); - {$EXTERNALSYM EVP_PKEY_meth_set_derive} - EVP_PKEY_meth_set_derive : procedure(pmeth : PEVP_PKEY_METHOD; - derive_init : EVP_PKEY_meth_set_derive_derive_init; - derive : EVP_PKEY_meth_set_derive_derive) cdecl = nil; - {$EXTERNALSYM EVP_PKEY_meth_set_ctrl} - EVP_PKEY_meth_set_ctrl : procedure(pmeth : PEVP_PKEY_METHOD; - ctrl : EVP_PKEY_meth_set_ctrl_ctrl; - ctrl_str : EVP_PKEY_meth_set_ctrlctrl_str) cdecl = nil; - - {$EXTERNALSYM d2i_PrivateKey_bio} - d2i_PrivateKey_bio : function(bp : PBIO; a : PPEVP_PKEY) : PEVP_PKEY cdecl = nil; - {$EXTERNALSYM X509_LOOKUP_ctrl} - X509_LOOKUP_ctrl : function(ctx : PX509_LOOKUP; cmd : TIdC_INT; argc : PIdAnsiChar; arg1 : TIdC_LONG; ret : PPIdAnsiChar) : TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_STORE_add_cert} - X509_STORE_add_cert : function (ctx : PX509_STORE; x : PX509) : TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_STORE_add_crl} - X509_STORE_add_crl : function (ctx : PX509_STORE; x : PX509_CRL) : TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_STORE_CTX_get_ex_data} - X509_STORE_CTX_get_ex_data : function(ctx: PX509_STORE_CTX; idx: TIdC_INT): Pointer cdecl = nil; - {$EXTERNALSYM X509_STORE_CTX_get_error} - X509_STORE_CTX_get_error : function(ctx: PX509_STORE_CTX): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_STORE_CTX_set_error} - X509_STORE_CTX_set_error : procedure(ctx: PX509_STORE_CTX; s: TIdC_INT) cdecl = nil; - {$EXTERNALSYM X509_STORE_CTX_get_error_depth} - X509_STORE_CTX_get_error_depth : function(ctx: PX509_STORE_CTX): TIdC_INT cdecl = nil; - {$EXTERNALSYM X509_STORE_CTX_get_current_cert} - X509_STORE_CTX_get_current_cert : function(ctx: PX509_STORE_CTX): PX509 cdecl = nil; - {$EXTERNALSYM _CRYPTO_num_locks} - _CRYPTO_num_locks : function: TIdC_INT cdecl = nil; // return CRYPTO_NUM_LOCKS (shared libs!) - {$EXTERNALSYM CRYPTO_set_locking_callback} - CRYPTO_set_locking_callback : procedure(func: TIdSslLockingCallback) cdecl = nil; - {$EXTERNALSYM CRYPTO_set_id_callback} - CRYPTO_set_id_callback : procedure(func: TIdSslIdCallback) cdecl = nil; - // 3DES functions - {$EXTERNALSYM DES_set_odd_parity} - DES_set_odd_parity: procedure(key: Pdes_cblock) cdecl = nil; - {$EXTERNALSYM DES_set_key} - DES_set_key: function(key: Pconst_DES_cblock; schedule: DES_key_schedule): TIdC_INT cdecl = nil; - {$EXTERNALSYM DES_ecb_encrypt} - DES_ecb_encrypt: procedure(input, output: Pconst_DES_cblock; ks: DES_key_schedule; enc: TIdC_INT) cdecl = nil; - //old DES functions - {$EXTERNALSYM Id_ossl_old_des_set_odd_parity} - Id_ossl_old_des_set_odd_parity : procedure (key : p_ossl_old_des_cblock) cdecl = nil; - {$EXTERNALSYM Id_ossl_old_des_set_key} - Id_ossl_old_des_set_key : function (key : P_ossl_old_des_cblock; schedule : _ossl_old_des_key_schedule) : TIdC_INT cdecl = nil; - {$EXTERNALSYM Id_ossl_old_des_ecb_encrypt} - Id_ossl_old_des_ecb_encrypt : procedure ( input : p_ossl_old_des_cblock; output : p_ossl_old_des_cblock; ks : p_ossl_old_des_key_schedule; enc : TIdC_int) cdecl = nil; - //More SSL functions - {$EXTERNALSYM SSL_set_ex_data} - SSL_set_ex_data: function(ssl: PSSL; idx: TIdC_INT; data: Pointer): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_get_ex_data} - SSL_get_ex_data: function(ssl: PSSL; idx: TIdC_INT): Pointer cdecl = nil; - {$EXTERNALSYM PKCS12_create} - PKCS12_create: function(pass, name: PIdAnsiChar; pkey: PEVP_PKEY; cert : PX509; - ca: PSTACK_OF_X509; nid_key, nid_cert, iter, mac_iter, keytype : TIdC_INT) : PPKCS12 cdecl = nil; - {$EXTERNALSYM i2d_PKCS12_bio} - i2d_PKCS12_bio: function(b: PBIO; p12: PPKCS12) : TIdC_INT cdecl = nil; - {$EXTERNALSYM PKCS12_free} - PKCS12_free: procedure(p12: PPKCS12) cdecl = nil; - {$EXTERNALSYM SSL_load_client_CA_file} - SSL_load_client_CA_file: function(const _file: PIdAnsiChar): PSTACK_OF_X509_NAME cdecl = nil; - {$EXTERNALSYM SSL_CTX_set_client_CA_list} - SSL_CTX_set_client_CA_list: procedure(ctx: PSSL_CTX; list: PSTACK_OF_X509_NAME) cdecl = nil; - {$EXTERNALSYM SSL_CTX_set_default_verify_paths} - SSL_CTX_set_default_verify_paths: function(ctx: PSSL_CTX): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_CTX_set_session_id_context} - SSL_CTX_set_session_id_context: function(ctx: PSSL_CTX; const sid_ctx: PByte; sid_ctx_len: TIdC_UINT): TIdC_INT cdecl = nil; - {$EXTERNALSYM SSL_CIPHER_description} - SSL_CIPHER_description: function(_para1: PSSL_CIPHER; buf: PIdAnsiChar; size: TIdC_INT): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM SSL_get_current_cipher} - SSL_get_current_cipher: function(const s: PSSL): PSSL_CIPHER cdecl = nil; - {$EXTERNALSYM SSL_CIPHER_get_name} - SSL_CIPHER_get_name: function(const c: PSSL_CIPHER): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM SSL_CIPHER_get_version} - SSL_CIPHER_get_version: function(const c: PSSL_CIPHER): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM SSL_CIPHER_get_bits} - SSL_CIPHER_get_bits: function(const c: PSSL_CIPHER; var alg_bits: TIdC_INT): TIdC_INT cdecl = nil; - //experimental - {$EXTERNALSYM ERR_error_string_n} - ERR_error_string_n: procedure(e: TIdC_ULONG; buf: PIdAnsiChar; len : size_t) cdecl = nil; - {$EXTERNALSYM ERR_put_error} - ERR_put_error : procedure (lib, func, reason : TIdC_INT; _file : PIdAnsiChar; line : TIdC_INT) cdecl = nil; - {$EXTERNALSYM ERR_get_error} - ERR_get_error : function: TIdC_ULONG cdecl = nil; - {$EXTERNALSYM ERR_peek_error} - ERR_peek_error : function: TIdC_ULONG cdecl = nil; - {$EXTERNALSYM ERR_peek_last_error} - ERR_peek_last_error : function : TIdC_ULONG cdecl = nil; - {$EXTERNALSYM ERR_clear_error} - ERR_clear_error : procedure cdecl = nil; - {$EXTERNALSYM ERR_error_string} - ERR_error_string : function (e: TIdC_ULONG; buf: PIdAnsiChar): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM ERR_lib_error_string} - ERR_lib_error_string : function(e : TIdC_ULONG): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM ERR_func_error_string} - ERR_func_error_string : function(e : TIdC_ULONG): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM ERR_reason_error_string} - ERR_reason_error_string : function(e : TIdC_ULONG): PIdAnsiChar cdecl = nil; - {$EXTERNALSYM ERR_load_ERR_strings} - ERR_load_ERR_strings : procedure cdecl = nil; - {$EXTERNALSYM ERR_load_crypto_strings} - ERR_load_crypto_strings : procedure cdecl = nil; - {$EXTERNALSYM ERR_free_strings} - ERR_free_strings : procedure cdecl = nil; - {$EXTERNALSYM ERR_remove_thread_state} - ERR_remove_thread_state : procedure(const tId : PCRYPTO_THREADID) cdecl = nil; - - {$EXTERNALSYM ERR_remove_state} - ERR_remove_state : procedure(pid: TIdC_ULONG) cdecl = nil; - {$EXTERNALSYM CRYPTO_cleanup_all_ex_data} - CRYPTO_cleanup_all_ex_data : procedure cdecl = nil; - {$EXTERNALSYM SSL_COMP_get_compression_methods} - SSL_COMP_get_compression_methods : function: PSTACK_OF_SSL_COMP cdecl = nil; - {$EXTERNALSYM SSL_COMP_free_compression_methods} - SSL_COMP_free_compression_methods : procedure; cdecl = nil; - {$EXTERNALSYM sk_pop_free} - sk_pop_free : procedure(st: PSTACK; func: Tsk_pop_free_func) cdecl = nil; - {$EXTERNALSYM sk_dup} - sk_dup : function (st : PSTACK) : PSTACK cdecl = nil; - {$EXTERNALSYM sk_find} - sk_find : function (st : PSTACK; Data : PIdAnsiChar) : TIdC_INT cdecl = nil; -{$IFDEF OPENSSL_FIPS} -{Note that I'm doing things this way so that we can have wrapper functions that hide -any IFDEF's and cases where the FIPS functions aren't in the .DLL} - {$EXTERNALSYM _FIPS_mode_set} - _FIPS_mode_set : function(onoff : TIdC_INT) : TIdC_INT cdecl = nil; - {$EXTERNALSYM _FIPS_mode} - _FIPS_mode : function () : TIdC_INT cdecl = nil; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_HMAC} -{ -NOTE: - -There is breakage between OpenSSL 0.9.x and OpenSSL 1.0x. Some HMAC functions -were changed to return a result code. MOst of this is ugly but necessary to -work around the issues involved. Basically, the result of the C functions is -changed from "void" to "int" so that they can return failure. -} -//void HMAC_CTX_init(HMAC_CTX *ctx); - {$EXTERNALSYM HMAC_CTX_init} - HMAC_CTX_init : procedure(ctx : PHMAC_CTX) cdecl = nil; - -//void HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, -// const EVP_MD *md, ENGINE *impl); - {$EXTERNALSYM _HMAC_Init_ex} - _HMAC_Init_ex : procedure(ctx : PHMAC_CTX; key : Pointer; len : TIdC_INT; - md : PEVP_MD; impl : PENGINE) cdecl = nil; -//OpenSSL 1.0 -//int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, -// const EVP_MD *md, ENGINE *impl); - {$EXTERNALSYM _1_0_HMAC_Init_ex} - _1_0_HMAC_Init_ex : function(ctx : PHMAC_CTX; key : Pointer; len : TIdC_INT; - md : PEVP_MD; impl : PENGINE) : TIdC_INT cdecl = nil; -//void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len); - {$EXTERNALSYM _HMAC_Update} - _HMAC_Update : procedure(ctx : PHMAC_CTX; data : PIdAnsiChar; len : size_t) cdecl = nil; - //OpenSSL 1.0 - {$EXTERNALSYM _1_0_HMAC_Update} -//int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len); - _1_0_HMAC_Update : function(ctx : PHMAC_CTX; data : PIdAnsiChar; len : size_t) : TIdC_INT cdecl = nil; - //void HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len); - {$EXTERNALSYM _HMAC_Final} - _HMAC_Final : procedure(ctx : PHMAC_CTX; md : PIdAnsiChar; len : PIdC_UINT) cdecl = nil; -//OpenSSL 1.0 - {$EXTERNALSYM _1_0_HMAC_Final} -// int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len); - _1_0_HMAC_Final : function(ctx : PHMAC_CTX; md : PIdAnsiChar; len : PIdC_UINT) : TIdC_INT cdecl = nil; -//void HMAC_CTX_cleanup(HMAC_CTX *ctx); - {$EXTERNALSYM HMAC_CTX_cleanup} - HMAC_CTX_cleanup : procedure (ctx : PHMAC_CTX) cdecl = nil; - - {$EXTERNALSYM HMAC_Init_ex} -procedure HMAC_Init_ex(ctx : PHMAC_CTX; key : Pointer; len : TIdC_INT; - md : PEVP_MD; impl : PENGINE); - {$EXTERNALSYM HMAC_Update} -procedure HMAC_Update(ctx : PHMAC_CTX; data : PIdAnsiChar; len : size_t); - {$EXTERNALSYM HMAC_Final} -procedure HMAC_Final(ctx : PHMAC_CTX; md : PIdAnsiChar; len : PIdC_UINT); -{$ENDIF} - -{begin stack fancy stuff} -{ -For the sk functions having a type, you have to typecase one procedural pointer -as another procedural pointer. In the headers, these are defined in -safestack.h. -} -type - {$EXTERNALSYM Tsk_X509_NAME_new} - Tsk_X509_NAME_new = function(cmp : Tsk_new_cmp) : PSTACK_OF_X509_NAME cdecl; - {$EXTERNALSYM Tsk_X509_NAME_new_null} - Tsk_X509_NAME_new_null = function : PSTACK_OF_X509_NAME cdecl; - {$EXTERNALSYM Tsk_X509_NAME_free} - Tsk_X509_NAME_free = procedure(st : PSTACK_OF_X509_NAME) cdecl; - {$EXTERNALSYM Tsk_X509_NAME_num} - Tsk_X509_NAME_num = function (const sk : PSTACK_OF_X509_NAME) : TIdC_INT cdecl; - {$EXTERNALSYM Tsk_X509_NAME_value} - Tsk_X509_NAME_value = function (const sk : PSTACK_OF_X509_NAME; i : TIdC_INT) : PX509_NAME cdecl; - {$EXTERNALSYM Tsk_X509_NAME_push} - Tsk_X509_NAME_push = function (sk : PSTACK_OF_X509_NAME; st : PX509_NAME) : TIdC_INT cdecl; - {$EXTERNALSYM Tsk_X509_NAME_dup} - Tsk_X509_NAME_dup = function (sk : PSTACK_OF_X509_NAME) : PSTACK_OF_X509_NAME cdecl; - {$EXTERNALSYM Tsk_X509_NAME_find} - Tsk_X509_NAME_find = function (sk : PSTACK_OF_X509_NAME; val : PX509_NAME) : TIdC_INT cdecl; - {$EXTERNALSYM Tsk_X509_NAME_pop_free} - Tsk_X509_NAME_pop_free = procedure (sk : PSTACK_OF_X509_NAME; func: Tsk_pop_free_func) cdecl; - - {$EXTERNALSYM Tsk_X509_INFO_num} - Tsk_X509_INFO_num = function (const sk : PSTACK_OF_X509_INFO) : TIdC_INT cdecl; - {$EXTERNALSYM Tsk_X509_INFO_value} - Tsk_X509_INFO_value = function (const sk : PSTACK_OF_X509_INFO; i : TIdC_INT) : PX509_INFO cdecl; - {$EXTERNALSYM Tsk_X509_INFO_push} - Tsk_X509_INFO_push = function (sk : PSTACK_OF_X509_INFO; st : PX509_INFO) : TIdC_INT cdecl; - {$EXTERNALSYM Tsk_X509_INFO_dup} - Tsk_X509_INFO_dup = function (sk : PSTACK_OF_X509_INFO) : PSTACK_OF_X509_INFO cdecl; - {$EXTERNALSYM Tsk_X509_INFO_find} - Tsk_X509_INFO_find = function (sk : PSTACK_OF_X509_INFO; val : PX509_INFO) : TIdC_INT cdecl; - {$EXTERNALSYM Tsk_X509_INFO_pop_free} - Tsk_X509_INFO_pop_free = procedure (sk : PSTACK_OF_X509_INFO; func: Tsk_pop_free_func) cdecl; - -var - {$EXTERNALSYM sk_X509_NAME_new} - sk_X509_NAME_new: Tsk_X509_NAME_new absolute sk_new; - {$EXTERNALSYM sk_X509_NAME_new_null} - sk_X509_NAME_new_null : Tsk_X509_NAME_new_null absolute sk_new_null; - {$EXTERNALSYM sk_X509_NAME_free} - sk_X509_NAME_free : Tsk_X509_NAME_free absolute sk_free; - {$EXTERNALSYM sk_X509_NAME_num} - sk_X509_NAME_num : Tsk_X509_NAME_num absolute sk_num; - {$EXTERNALSYM sk_X509_NAME_value} - sk_X509_NAME_value : Tsk_X509_NAME_value absolute sk_value; - {$EXTERNALSYM sk_X509_NAME_push} - sk_X509_NAME_push : Tsk_X509_NAME_push absolute sk_push; - {$EXTERNALSYM sk_X509_NAME_dup} - sk_X509_NAME_dup : Tsk_X509_NAME_dup absolute sk_dup; - {$EXTERNALSYM sk_X509_NAME_find} - sk_X509_NAME_find : Tsk_X509_NAME_find absolute sk_find; - {$EXTERNALSYM sk_X509_NAME_pop_free} - sk_X509_NAME_pop_free : Tsk_X509_NAME_pop_free absolute sk_pop_free; - {$EXTERNALSYM sk_X509_INFO_num} - sk_X509_INFO_num : Tsk_X509_INFO_num absolute sk_num; - {$EXTERNALSYM sk_X509_INFO_value} - sk_X509_INFO_value : Tsk_X509_INFO_value absolute sk_value; - {$EXTERNALSYM sk_X509_INFO_push} - sk_X509_INFO_push : Tsk_X509_INFO_push absolute sk_push; - {$EXTERNALSYM sk_X509_INFO_dup} - sk_X509_INFO_dup : Tsk_X509_INFO_dup absolute sk_dup; - {$EXTERNALSYM sk_X509_INFO_find} - sk_X509_INFO_find : Tsk_X509_INFO_find absolute sk_find; - {$EXTERNALSYM sk_X509_INFO_pop_free} - sk_X509_INFO_pop_free : Tsk_X509_INFO_pop_free absolute sk_pop_free; -{end} - - {$EXTERNALSYM FIPS_mode_set} -function FIPS_mode_set(onoff : TIdC_INT) : TIdC_INT; {$IFDEF INLINE}inline;{$ENDIF} - {$EXTERNALSYM FIPS_mode} -function FIPS_mode() : TIdC_INT; {$IFDEF INLINE}inline;{$ENDIF} - - -{begin other stuff} - {$EXTERNALSYM UTC_Time_Decode} -function UTC_Time_Decode(UCTtime : PASN1_UTCTIME; var year, month, day, hour, min, sec: Word; - var tz_hour, tz_min: Integer): Integer; - {$EXTERNALSYM SSL_set_app_data} -function SSL_set_app_data(s: PSSL; arg: Pointer): TIdC_INT; - {$EXTERNALSYM SSL_get_app_data} -function SSL_get_app_data(s: PSSL): Pointer; -// -function Load: Boolean; -procedure Unload; -{$IFNDEF STATICLOAD_OPENSSL} -function WhichFailedToLoad: String; -function GetSSLLibHandle : TIdLibHandle; -function GetCryptLibHandle : TIdLibHandle; -procedure IdOpenSSLSetLibPath(const APath: String); - {$IFDEF UNIX} -procedure IdOpenSSLSetCanLoadSymLinks(ACanLoad: Boolean); -procedure IdOpenSSLSetLoadSymLinksFirst(ALoadFirst: Boolean); - {$ENDIF} -{$ENDIF} -// -procedure InitializeRandom; -procedure CleanupRandom; - - {$EXTERNALSYM M_ASN1_STRING_length} -function M_ASN1_STRING_length(x : PASN1_STRING): TIdC_INT; - {$EXTERNALSYM M_ASN1_STRING_length_set} -procedure M_ASN1_STRING_length_set(x : PASN1_STRING; n : TIdC_INT); - {$EXTERNALSYM M_ASN1_STRING_type} -function M_ASN1_STRING_type(x : PASN1_STRING) : TIdC_INT; - {$EXTERNALSYM M_ASN1_STRING_data} -function M_ASN1_STRING_data(x : PASN1_STRING) : PIdAnsiChar; - {$EXTERNALSYM X509_NAME_dup} -function X509_NAME_dup(xn : PX509_NAME) : PX509_NAME; - {$EXTERNALSYM X509_STORE_CTX_get_app_data} -function X509_STORE_CTX_get_app_data(ctx: PX509_STORE_CTX):Pointer; - {$EXTERNALSYM X509_get_version} -function X509_get_version(x : PX509): TIdC_LONG; - {$EXTERNALSYM X509_get_signature_type} -function X509_get_signature_type(x : PX509) : TIdC_INT; - {$EXTERNALSYM X509_REQ_get_subject_name} -function X509_REQ_get_subject_name(x:PX509_REQ):PX509_NAME; - {$EXTERNALSYM X509_get_notBefore} -function X509_get_notBefore(x509: PX509):PASN1_TIME; - {$EXTERNALSYM X509_get_notAfter} -function X509_get_notAfter(x509: PX509):PASN1_TIME; - {$EXTERNALSYM X509_REQ_get_version} -function X509_REQ_get_version(x : PX509_REQ): TIdC_LONG; - {$EXTERNALSYM X509_CRL_get_version} -function X509_CRL_get_version(x : PX509_CRL) : TIdC_LONG; - {$EXTERNALSYM X509_CRL_get_lastUpdate} -function X509_CRL_get_lastUpdate(x : PX509_CRL) : PASN1_TIME; - {$EXTERNALSYM X509_CRL_get_nextUpdate} -function X509_CRL_get_nextUpdate(x : PX509_CRL) : PASN1_TIME; - {$EXTERNALSYM X509_CRL_get_issuer} -function X509_CRL_get_issuer(x : PX509_CRL) : PX509_NAME; - {$EXTERNALSYM X509_CRL_get_REVOKED} -function X509_CRL_get_REVOKED(x : PX509_CRL) : PSTACK_OF_X509_REVOKED; - {$EXTERNALSYM SSL_CTX_set_info_callback} -procedure SSL_CTX_set_info_callback(ctx: PSSL_CTX; cb: PSSL_CTX_info_callback); - {$EXTERNALSYM SSL_CTX_set_options} -function SSL_CTX_set_options(ctx: PSSL_CTX; op: TIdC_LONG):TIdC_LONG; - {$EXTERNALSYM SSL_CTX_clear_options} -function SSL_CTX_clear_options(ctx : PSSL_CTX; op : TIdC_LONG):TIdC_LONG; - {$EXTERNALSYM SSL_CTX_get_options} -function SSL_CTX_get_options(ctx: PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_set_options} -function SSL_set_options(ssl: PSSL; op : TIdC_LONG): TIdC_LONG; - {$EXTERNALSYM SSL_clear_mode} -function SSL_clear_mode(ssl : PSSL; op : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM SSL_get_options} -function SSL_get_options(ssl : PSSL): TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_mode} -function SSL_CTX_set_mode(ctx : PSSL_CTX; op : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_clear_mode} -function SSL_CTX_clear_mode(ctx : PSSL_CTX; op : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_get_mode} -function SSL_CTX_get_mode(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_set_mtu} -function SSL_set_mtu(ssl : PSSL; mtu : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM SSL_get_secure_renegotiation_support} -function SSL_get_secure_renegotiation_support(ssl : PSSL) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_number} -function SSL_CTX_sess_number(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_connect} -function SSL_CTX_sess_connect(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_connect_good} -function SSL_CTX_sess_connect_good(ctx : PSSL_CTX): TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_connect_renegotiate} -function SSL_CTX_sess_connect_renegotiate(ctx : PSSL_CTX): TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_accept} -function SSL_CTX_sess_accept(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_accept_renegotiate} -function SSL_CTX_sess_accept_renegotiate(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_accept_good} -function SSL_CTX_sess_accept_good(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_hits} -function SSL_CTX_sess_hits(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_cb_hits} -function SSL_CTX_sess_cb_hits(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_misses} -function SSL_CTX_sess_misses(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_timeouts} -function SSL_CTX_sess_timeouts(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_cache_full} -function SSL_CTX_sess_cache_full(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_set_cache_size} -function SSL_CTX_sess_set_cache_size(ctx : PSSL_CTX; t : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_sess_get_cache_size} -function SSL_CTX_sess_get_cache_size(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_session_cache_mode} -function SSL_CTX_set_session_cache_mode(ctx : PSSL_CTX; m : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_get_session_cache_mode} -function SSL_CTX_get_session_cache_mode(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_get_read_ahead} -function SSL_CTX_get_read_ahead(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_read_ahead} -function SSL_CTX_set_read_ahead(ctx : PSSL_CTX; m : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_get_max_cert_list} -function SSL_CTX_get_max_cert_list(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_max_cert_list} -function SSL_CTX_set_max_cert_list(ctx : PSSL_CTX; m : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM SSL_get_max_cert_list} -function SSL_get_max_cert_list(ssl : PSSL) : TIdC_LONG; - {$EXTERNALSYM SSL_set_max_cert_list} -function SSL_set_max_cert_list(ssl : PSSL; m : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM DTLSv1_get_timeout} -function DTLSv1_get_timeout(ssl : PSSL; var arg : timeval) : TIdC_LONG; - {$EXTERNALSYM DTLSv1_handle_timeout} -function DTLSv1_handle_timeout(ssl : PSSL) : TIdC_LONG; - {$EXTERNALSYM DTLSv1_listen} -function DTLSv1_listen(ssl : PSSL; var peer : sockaddr) : TIdC_LONG; - {$EXTERNALSYM SSL_session_reused} -function SSL_session_reused(ssl : PSSL) : TIdC_LONG; - {$EXTERNALSYM SSL_num_renegotiations} -function SSL_num_renegotiations(ssl : PSSL) : TIdC_LONG; - {$EXTERNALSYM SSL_clear_num_renegotiations} -function SSL_clear_num_renegotiations(ssl : PSSL) : TIdC_LONG; - {$EXTERNALSYM SSL_total_renegotiations} -function SSL_total_renegotiations(ssl : PSSL) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_need_tmp_RSA} -function SSL_CTX_need_tmp_RSA(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_tmp_rsa} -function SSL_CTX_set_tmp_rsa(ctx : PSSL_CTX; rsa : PRSA) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_tmp_dh} -function SSL_CTX_set_tmp_dh(ctx : PSSL_CTX; dh : PDH) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_tmp_ecdh} -function SSL_CTX_set_tmp_ecdh(ctx : PSSL_CTX; ecdh : PEC_KEY) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_ecdh_auto} -function SSL_CTX_set_ecdh_auto(ctx : PSSL_CTX; m : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM SSL_need_tmp_RSA} -function SSL_need_tmp_RSA(ssl : PSSL) : TIdC_LONG; - {$EXTERNALSYM SSL_set_tmp_rsa} -procedure SSL_set_tmp_rsa(ssl : PSSL; rsa : PRSA); - {$EXTERNALSYM SSL_set_tmp_dh} -function SSL_set_tmp_dh(ssl : PSSL;dh : PDH) : TIdC_LONG; - {$EXTERNALSYM SSL_set_tmp_ecdh} -function SSL_set_tmp_ecdh(ssl : PSSL; ecdh : PEC_KEY) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_add0_chain_cert} //OpenSSL 1.0.2 -function SSL_CTX_add0_chain_cert(ctx : PSSL_CTX; x509 : PX509) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_add1_chain_cert} //OpenSSL 1.0.2 -function SSL_CTX_add1_chain_cert(ctx : PSSL_CTX; x509 : PX509) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_add_extra_chain_cert} -function SSL_CTX_add_extra_chain_cert(ctx : PSSL_CTX; x509 : PX509) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_get_extra_chain_certs} -function SSL_CTX_get_extra_chain_certs(ctx : PSSL_CTX; var px509 : px509) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_get_extra_chain_certs_only} -function SSL_CTX_get_extra_chain_certs_only(ctx: PSSL_CTX;var PX509 :PX509) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_clear_extra_chain_certs} -function SSL_CTX_clear_extra_chain_certs(ctx : PSSL_CTX) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set0_chain} //OpenSSL 1.0.2 -function SSL_CTX_set0_chain(ctx:PSSL_CTX; sk : PSTACK_OF_X509) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set1_chain} //OpenSSL 1.0.2 -function SSL_CTX_set1_chain(ctx:PSSL_CTX; sk : PSTACK_OF_X509) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_get0_chain_certs} //OpenSSL 1.0.2 -function SSL_CTX_get0_chain_certs(ctx :PSSL_CTX; var px509 :PX509) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_clear_chain_certs} //OpenSSL 1.0.2 -function SSL_CTX_clear_chain_certs(ctx :PSSL_CTX) : TIdC_LONG; - -{$IFNDEF OPENSSL_NO_TLSEXT} - {$EXTERNALSYM SSL_set_tlsext_host_name} -function SSL_set_tlsext_host_name(s : PSSL; name : string) : TIdC_LONG; - {$EXTERNALSYM SSL_set_tlsext_debug_callback} -function SSL_set_tlsext_debug_callback(ssl : PSSL; cb : SSL_callback_ctrl_fp) : TIdC_LONG; - {$EXTERNALSYM SSL_set_tlsext_debug_arg} -function SSL_set_tlsext_debug_arg(ssl : PSSL; arg : Pointer) : TIdC_LONG; - {$EXTERNALSYM SSL_set_tlsext_status_type} -function SSL_set_tlsext_status_type(ssl : PSSL; _type : TIdC_LONG):TIdC_LONG; - {$EXTERNALSYM SSL_get_tlsext_status_exts} -function SSL_get_tlsext_status_exts(ssl : PSSL; arg : Pointer): TIdC_LONG; - {$EXTERNALSYM SSL_set_tlsext_status_exts} -function SSL_set_tlsext_status_exts(ssl : PSSL; arg : Pointer):TIdC_LONG; - {$EXTERNALSYM SSL_get_tlsext_status_ids} -function SSL_get_tlsext_status_ids(ssl : PSSL; arg : Pointer) : TIdC_LONG; - {$EXTERNALSYM SSL_set_tlsext_status_ids} -function SSL_set_tlsext_status_ids(ssl : PSSL; arg : Pointer) : TIdC_LONG; - {$EXTERNALSYM SSL_get_tlsext_status_ocsp_resp} -function SSL_get_tlsext_status_ocsp_resp(ssl : PSSL; arg : Pointer) : TIdC_LONG; - {$EXTERNALSYM SSL_set_tlsext_status_ocsp_resp} -function SSL_set_tlsext_status_ocsp_resp(ssl : PSSL; arg : Pointer; arglen : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_tlsext_servername_callback} -function SSL_CTX_set_tlsext_servername_callback(ctx : PSSL_CTX; cb :SSL_callback_ctrl_fp):TIdC_LONG; - {$EXTERNALSYM SSL_CTX_get_tlsext_ticket_keys} -function SSL_CTX_get_tlsext_ticket_keys(ctx : PSSL_CTX; keys : PIdAnsiChar; keylen : TIdC_LONG ) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_tlsext_status_cb} -function SSL_CTX_set_tlsext_status_cb(ssl : PSSL_CTX; cb : TSSL_CTX_set_tlsext_status_cb) :TIdC_LONG; - {$EXTERNALSYM SSL_set_tlsext_opaque_prf_input} -function SSL_set_tlsext_opaque_prf_input(s : PSSL; src : PIdAnsiChar; len : TIdC_LONG ) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_tlsext_opaque_prf_input_callback} -function SSL_CTX_set_tlsext_opaque_prf_input_callback(ctx : PSSL_CTX; cb : TSSL_CTX_set_tlsext_opaque_prf_input_callback_cb) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_tlsext_opaque_prf_input_callback_arg} -function SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(ctx : PSSL_CTX; arg : Pointer) : TIdC_LONG; - {$EXTERNALSYM SSL_CTX_set_tlsext_ticket_key_cb} -function SSL_CTX_set_tlsext_ticket_key_cb(ssl : PSSL_CTX; cb : TSSL_CTX_set_tlsext_ticket_key_cb_fp) : TIdC_LONG; -{$ifndef OPENSSL_NO_HEARTBEATS} - {$EXTERNALSYM SSL_heartbeat} -function SSL_heartbeat(ssl : PSSL) : TIdC_LONG; - {$EXTERNALSYM SSL_get_tlsext_heartbeat_pending} -function SSL_get_tlsext_heartbeat_pending(ssl : PSSL) : TIdC_LONG; - {$EXTERNALSYM SSL_set_tlsext_heartbeat_no_requests} -function SSL_set_tlsext_heartbeat_no_requests(ssl : PSSL; arg : TIdC_LONG) : TIdC_LONG; -{$endif} -{$ENDIF} - - {$EXTERNALSYM TLS1_get_version} -function TLS1_get_version(s : PSSL) : TIdC_INT; - {$EXTERNALSYM TLS1_get_client_version} -function TLS1_get_client_version(s : PSSL) : TIdC_INT; - {$EXTERNALSYM SSL_CTX_get_version} -function SSL_CTX_get_version(ctx: PSSL_CTX):TIdC_INT; -//* BIO_s_connect() and BIO_s_socks4a_connect() */ - {$EXTERNALSYM BIO_set_conn_hostname} -function BIO_set_conn_hostname(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_set_conn_port} -function BIO_set_conn_port(b : PBIO; port : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_set_conn_ip} -function BIO_set_conn_ip(b : PBIO; ip : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_set_conn_int_port} -function BIO_set_conn_int_port(b : PBIO; port : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_get_conn_hostname} -function BIO_get_conn_hostname(b : PBIO) : PIdAnsiChar; - {$EXTERNALSYM BIO_get_conn_port} -function BIO_get_conn_port(b : PBIO) : PIdAnsiChar; - {$EXTERNALSYM BIO_get_conn_ip} -function BIO_get_conn_ip(b : PBIO) : PIdAnsiChar; - {$EXTERNALSYM BIO_get_conn_int_port} -function BIO_get_conn_int_port(b : PBIO) : TIdC_LONG; - {$EXTERNALSYM BIO_set_nbio} -function BIO_set_nbio(b : PBIO; n : TIdC_LONG) : TIdC_LONG; -//* BIO_s_accept_socket() */ - {$EXTERNALSYM BIO_set_accept_port} -function BIO_set_accept_port(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_get_accept_port} -function BIO_get_accept_port(b : PBIO) : PIdAnsiChar; - {$EXTERNALSYM BIO_set_nbio_accept} -function BIO_set_nbio_accept(b : PBIO; n : TIdC_INT) : TIdC_LONG; - {$EXTERNALSYM BIO_set_accept_bios} -function BIO_set_accept_bios(b : PBIO; bio : PBIO) : TIdC_LONG; - {$EXTERNALSYM BIO_set_bind_mode} -function BIO_set_bind_mode(b : PBIO; mode : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM BIO_get_bind_mode} -function BIO_get_bind_mode(b : PBIO; mode : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM BIO_do_handshake} -function BIO_do_handshake(b : PBIO) : TIdC_LONG; - {$EXTERNALSYM BIO_do_connect} -function BIO_do_connect(b : PBIO) : TIdC_LONG; - {$EXTERNALSYM BIO_do_accept} -function BIO_do_accept(b : PBIO) : TIdC_LONG; - {$EXTERNALSYM BIO_set_url} -function BIO_set_url(b : PBIO; url : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_set_proxies} -function BIO_set_proxies(b : PBIO; p : PIdAnsiChar) : TIdC_LONG; - -//* BIO_set_nbio(b,n) */ - {$EXTERNALSYM BIO_set_filter_bio} -function BIO_set_filter_bio(b : PBIO; s : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_set_proxy_header} -function BIO_set_proxy_header(b : PBIO; sk : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_set_no_connect_return} -function BIO_set_no_connect_return(b : PBIO; b2 : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM BIO_get_proxy_header} -function BIO_get_proxy_header(b : PBIO; var skp : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_get_proxies} -function BIO_get_proxies(b : PBIO; var pxy_p : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_get_url} -function BIO_get_url(b : PBIO; var url : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_get_no_connect_return} -function BIO_get_no_connect_return(b : PBIO) : TIdC_LONG; - {$EXTERNALSYM BIO_set_fd} -function BIO_set_fd(b : PBIO; fd,c : TIdC_INT) : TIdC_LONG; - {$EXTERNALSYM BIO_get_fd} -function BIO_get_fd(b : PBIO; c : PIdC_INT) : TIdC_LONG; - {$EXTERNALSYM BIO_seek} -function BIO_seek(b : PBIO; ofs : TIdC_LONG) : TIdC_INT; - {$EXTERNALSYM BIO_tell} -function BIO_tell(b : PBIO) : TIdC_INT; -{$IFDEF CONST_STRICT} -{$ELSE} - {$EXTERNALSYM BIO_read_filename} -function BIO_read_filename(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; -{$ENDIF} - {$EXTERNALSYM BIO_get_md} -function BIO_get_md(b : PBIO; var mdp : PEVP_MD) : TIdC_LONG; - {$EXTERNALSYM BIO_get_md_ctx} -function BIO_get_md_ctx(b : PBIO; var mdcp : PEVP_MD_CTX) : TIdC_LONG; - {$EXTERNALSYM BIO_set_md_ctx} -function BIO_set_md_ctx(b : PBIO; mdcp : PEVP_MD_CTX) : TIdC_LONG; - {$EXTERNALSYM BIO_get_cipher_status} -function BIO_get_cipher_status(b : PBIO) : TIdC_LONG; - {$EXTERNALSYM BIO_get_cipher_ctx} -function BIO_get_cipher_ctx(b : PBIO; var c_pp : PEVP_CIPHER_CTX): TIdC_LONG; - - {$EXTERNALSYM BIO_write_filename} -function BIO_write_filename(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_append_filename} -function BIO_append_filename(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_rw_filename} -function BIO_rw_filename(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; - {$EXTERNALSYM BIO_set_ssl} -function BIO_set_ssl(b : PBIO; ssl : PSSL; c : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM BIO_get_ssl} -function BIO_get_ssl(b : PBIO; var sslp : PSSL) : TIdC_LONG; - {$EXTERNALSYM BIO_set_ssl_mode} -function BIO_set_ssl_mode(b : PBIO; client : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM BIO_set_ssl_renegotiate_bytes} -function BIO_set_ssl_renegotiate_bytes(b : PBIO; num : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM BIO_get_num_renegotiates} -function BIO_get_num_renegotiates(b : PBIO) : TIdC_LONG; - {$EXTERNALSYM BIO_set_ssl_renegotiate_timeout} -function BIO_set_ssl_renegotiate_timeout(b : PBIO; seconds : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM BIO_get_mem_data} -function BIO_get_mem_data(b : PBIO; var pp : PIdAnsiChar) : TIdC_INT; - {$EXTERNALSYM BIO_set_mem_buf} -function BIO_set_mem_buf(b : PBIO; bm : PBUF_MEM; c : TIdC_INT) : TIdC_INT; - {$EXTERNALSYM BIO_get_mem_ptr} -function BIO_get_mem_ptr(b: PBIO; var pp: PBUF_MEM) : TIdC_INT; - {$EXTERNALSYM BIO_set_mem_eof_return} -procedure BIO_set_mem_eof_return(b : PBIO; const v : TIdC_INT); -//* For the BIO_f_buffer() type */ - {$EXTERNALSYM BIO_get_buffer_num_lines} -function BIO_get_buffer_num_lines(b : PBIO) : TIdC_INT; - {$EXTERNALSYM BIO_set_buffer_size} -procedure BIO_set_buffer_size(b : PBIO; const size : TIdC_INT); -//* Don't use the next one unless you know what you are doing :-) */ - {$EXTERNALSYM BIO_dup_state} -function BIO_dup_state(b : PBIO; ret : PBIO) : TIdC_LONG; - {$EXTERNALSYM BIO_reset} -function BIO_reset(b : PBIO) : TIdC_INT; - {$EXTERNALSYM BIO_eof} -function BIO_eof(b : PBIO) : TIdC_INT; - {$EXTERNALSYM BIO_set_close} -function BIO_set_close(b: PBIO; c: TIdC_LONG): TIdC_INT; - {$EXTERNALSYM BIO_get_close} -function BIO_get_close(b : PBIO) : TIdC_INT; - {$EXTERNALSYM BIO_pending} -function BIO_pending(b : PBIO) : TIdC_INT; - {$EXTERNALSYM BIO_wpending} -function BIO_wpending(b : PBIO) : TIdC_INT; - {$EXTERNALSYM BIO_flush} -function BIO_flush(b : PBIO) : TIdC_INT; -//* For the BIO_f_buffer() type */ - {$EXTERNALSYM BIO_buffer_get_num_lines} -function BIO_buffer_get_num_lines(b : PBIO) : TIdC_INT; - {$EXTERNALSYM BIO_get_info_callback} -function BIO_get_info_callback(b : PBIO; var cbp : Pbio_info_cb) : TIdC_INT; - {$EXTERNALSYM BIO_set_info_callback} -function BIO_set_info_callback(b : PBIO; cb : Pbio_info_cb) : TIdC_INT; - {$EXTERNALSYM BIO_set_read_buffer_size} -function BIO_set_read_buffer_size(b : PBIO; size : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM BIO_set_write_buffer_size} -function BIO_set_write_buffer_size(b : PBIO; size : TIdC_LONG) : TIdC_LONG; - {$EXTERNALSYM BIO_make_bio_pair} -function BIO_make_bio_pair(b1, b2 : PBIO ): TIdC_INT; - {$EXTERNALSYM BIO_destroy_bio_pair} -function BIO_destroy_bio_pair(b : PBIO) : TIdC_INT; - {$EXTERNALSYM BIO_shutdown_wr} -function BIO_shutdown_wr(b : PBIO) : TIdC_INT; -///* macros with inappropriate type -- but ...pending macros use int too: */ - {$EXTERNALSYM BIO_get_write_guarantee} -function BIO_get_write_guarantee(b : PBIO) : TIdC_INT; - {$EXTERNALSYM BIO_get_read_request} -function BIO_get_read_request(b : PBIO) : TIdC_INT; -//* ctrl macros for dgram */ - {$EXTERNALSYM _BIO_ctrl_dgram_connect} -function _BIO_ctrl_dgram_connect(b : PBIO; peer : Sockaddr) : TIdC_INT; - {$EXTERNALSYM BIO_ctrl_set_connected} -function BIO_ctrl_set_connected(b : PBIO; state : TIdC_INT; peer : Sockaddr) : TIdC_INT; - {$EXTERNALSYM BIO_dgram_recv_timedout} -function BIO_dgram_recv_timedout(b : PBIO) : TIdC_INT; - {$EXTERNALSYM BIO_dgram_send_timedout} -function BIO_dgram_send_timedout(b : PBIO) : TIdC_INT; - {$EXTERNALSYM BIO_dgram_get_peer} -function BIO_dgram_get_peer(b : PBIO; peer : PSockAddr) : TIdC_INT; - {$EXTERNALSYM BIO_dgram_set_peer} -function BIO_dgram_set_peer(b : PBIO; peer : PSockAddr) : TIdC_INT; - - {$EXTERNALSYM PEM_read_bio_X509} -function PEM_read_bio_X509(bp: PBIO; x: PPX509; cb: ppem_password_cb; u: Pointer): PX509; - {$EXTERNALSYM PEM_read_bio_X509_REQ} -function PEM_read_bio_X509_REQ(bp :PBIO; x : PPX509_REQ; cb :ppem_password_cb; u: Pointer) : PX509_REQ; - {$EXTERNALSYM PEM_read_bio_X509_CRL} -function PEM_read_bio_X509_CRL(bp : PBIO; x : PPX509_CRL;cb : ppem_password_cb; u: Pointer) : PX509_CRL; - {$EXTERNALSYM PEM_read_bio_RSAPrivateKey} -function PEM_read_bio_RSAPrivateKey(bp : PBIO; x : PPRSA; cb : ppem_password_cb; u: Pointer) : PRSA; - {$EXTERNALSYM PEM_read_bio_RSAPublicKey} -function PEM_read_bio_RSAPublicKey(bp : PBIO; x : PPRSA; cb : ppem_password_cb; u: Pointer) : PRSA; - {$EXTERNALSYM PEM_read_bio_DSAPrivateKey} -function PEM_read_bio_DSAPrivateKey(bp : PBIO; x : PPDSA; cb : ppem_password_cb; u : Pointer) : PDSA; - {$EXTERNALSYM PEM_read_bio_PrivateKey} -function PEM_read_bio_PrivateKey(bp : PBIO; x : PPEVP_PKEY; cb : ppem_password_cb; u : Pointer) : PEVP_PKEY; - {$EXTERNALSYM PEM_read_bio_PKCS7} -function PEM_read_bio_PKCS7(bp : PBIO; x : PPPKCS7; cb : ppem_password_cb; u : Pointer) : PPKCS7; - {$EXTERNALSYM PEM_read_bio_DHparams} -function PEM_read_bio_DHparams(bp : PBIO; x : PPDH; cb : ppem_password_cb; u : Pointer) : PDH; - {$EXTERNALSYM PEM_read_bio_DSAparams} -function PEM_read_bio_DSAparams(bp : PBIO; x : PPDSA; cb : ppem_password_cb; u : Pointer) : PDSA; - {$EXTERNALSYM PEM_read_bio_NETSCAPE_CERT_SEQUENCE} -function PEM_read_bio_NETSCAPE_CERT_SEQUENCE(bp : PBIO; x : PPNETSCAPE_CERT_SEQUENCE; - cb : ppem_password_cb; u : Pointer) : PNETSCAPE_CERT_SEQUENCE; - {$EXTERNALSYM PEM_read_bio_PUBKEY} -function PEM_read_bio_PUBKEY(bp : PBIO; x : PPEVP_PKEY; cb : ppem_password_cb; u : Pointer) : PEVP_PKEY; - {$EXTERNALSYM PEM_write_bio_X509} -function PEM_write_bio_X509(bp: PBIO; x: PX509): TIdC_INT; - {$EXTERNALSYM PEM_write_bio_X509_REQ} -function PEM_write_bio_X509_REQ(bp: PBIO; x: PX509_REQ): TIdC_INT; - {$EXTERNALSYM PEM_write_bio_X509_CRL} -function PEM_write_bio_X509_CRL(bp : PBIO; x : PX509_CRL) : TIdC_INT; - {$EXTERNALSYM PEM_write_bio_RSAPrivateKey} -function PEM_write_bio_RSAPrivateKey(bp : PBIO; x : PRSA; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : ppem_password_cb; u : POinter) : TIdC_INT; - {$EXTERNALSYM PEM_write_bio_RSAPublicKey} -function PEM_write_bio_RSAPublicKey(bp : PBIO; x : PRSA) : TIdC_INT; - {$EXTERNALSYM PEM_write_bio_DSAPrivateKey} -function PEM_write_bio_DSAPrivateKey( bp : PBIO; x : PDSA; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : Ppem_password_cb; u : Pointer) : TIdC_INT; - {$EXTERNALSYM PEM_write_bio_PrivateKey} -function PEM_write_bio_PrivateKey(bp : PBIO; x : PEVP_PKEY; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : Ppem_password_cb; u : Pointer) : TIdC_INT; - {$EXTERNALSYM PEM_write_bio_PKCS7} -function PEM_write_bio_PKCS7(bp : PBIO; x : PPKCS7) : TIdC_INT; - {$EXTERNALSYM PEM_write_bio_DHparams} -function PEM_write_bio_DHparams(bp : PBIO; x : PDH): TIdC_INT; - {$EXTERNALSYM PEM_write_bio_DSAparams} -function PEM_write_bio_DSAparams(bp : PBIO; x : PDSA) : TIdC_INT; - {$EXTERNALSYM PEM_write_bio_NETSCAPE_CERT_SEQUENCE} -function PEM_write_bio_NETSCAPE_CERT_SEQUENCE(bp : PBIO; x : PDSA) : TIdC_INT; - {$EXTERNALSYM PEM_write_bio_PUBKEY} -function PEM_write_bio_PUBKEY(bp : PBIO; x : PEVP_PKEY) : TIdC_INT; - - {$EXTERNALSYM OPENSSL_malloc} -function OPENSSL_malloc(aSize:TIdC_INT):Pointer; - {$EXTERNALSYM CRYPTO_SetMemCheck} -procedure CRYPTO_SetMemCheck(const aEnabled: Boolean); - -{$IFNDEF OPENSSL_NO_RSA} - {$EXTERNALSYM EVP_PKEY_assign_RSA} -function EVP_PKEY_assign_RSA(pkey: PEVP_PKEY; rsa: PRSA): TIdC_INT; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_DSA} - {$EXTERNALSYM EVP_PKEY_assign_DSA} -function EVP_PKEY_assign_DSA(pkey : PEVP_PKEY; dsa : PDSA) : TIdC_INT; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_DH} - {$EXTERNALSYM EVP_PKEY_assign_DH} -function EVP_PKEY_assign_DH(pkey : PEVP_PKEY; dh : PDH) : TIdC_INT; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_EC} - {$EXTERNALSYM EVP_PKEY_assign_EC_KEY} -function EVP_PKEY_assign_EC_KEY(pkey : PEVP_PKEY; eckey : PEC_KEY) : TIdC_INT; -{$ENDIF} - -//* Add some extra combinations */ - {$EXTERNALSYM EVP_get_digestbynid} -function EVP_get_digestbynid(a : TIdC_INT) : PEVP_MD; - {$EXTERNALSYM EVP_get_digestbyobj} -function EVP_get_digestbyobj(a : PASN1_OBJECT) : PEVP_MD; - {$EXTERNALSYM EVP_get_cipherbynid} -function EVP_get_cipherbynid(a : TIdC_INT) : PEVP_CIPHER; - {$EXTERNALSYM EVP_get_cipherbyobj} -function EVP_get_cipherbyobj(a : PASN1_OBJECT) : PEVP_CIPHER; - {$EXTERNALSYM EVP_MD_nid} -function EVP_MD_nid(e : PEVP_MD) : TIdC_INT; - {$EXTERNALSYM EVP_MD_name} -function EVP_MD_name(e : PEVP_MD) : PIdAnsiChar; - {$EXTERNALSYM EVP_MD_CTX_size} -function EVP_MD_CTX_size(e : PEVP_MD_CTX) : TIdC_INT; - {$EXTERNALSYM EVP_MD_CTX_block_size} -function EVP_MD_CTX_block_size(e : PEVP_MD_CTX) : TIdC_INT; - {$EXTERNALSYM EVP_MD_CTX_type} -function EVP_MD_CTX_type(e : PEVP_MD_CTX) : TIdC_INT; - {$EXTERNALSYM EVP_CIPHER_name} -function EVP_CIPHER_name(e : PEVP_CIPHER) : PIdAnsiChar; - {$EXTERNALSYM EVP_CIPHER_mode} -function EVP_CIPHER_mode(e : PEVP_CIPHER) : TIdC_ULONG; - {$EXTERNALSYM EVP_CIPHER_CTX_type} -function EVP_CIPHER_CTX_type(c : PEVP_CIPHER_CTX) : TIdC_INT; - {$EXTERNALSYM EVP_CIPHER_CTX_mode} -function EVP_CIPHER_CTX_mode(e : PEVP_CIPHER_CTX) : TIdC_ULONG; - {$EXTERNALSYM EVP_ENCODE_LENGTH} -function EVP_ENCODE_LENGTH(l : Integer) : Integer; - {$EXTERNALSYM EVP_DECODE_LENGTH} -function EVP_DECODE_LENGTH(l : Integer) : Integer; - {$EXTERNALSYM EVP_SignInit_ex} -function EVP_SignInit_ex(a: PEVP_MD_CTX; b : PEVP_MD; c : PENGINE) : TIdC_INT; - {$EXTERNALSYM EVP_SignInit} -function EVP_SignInit(a : PEVP_MD_CTX; b : PEVP_MD) : TIdC_INT; - {$EXTERNALSYM EVP_SignUpdate} -function EVP_SignUpdate(a: PEVP_MD_CTX; b : Pointer; c : size_t) : TIdC_INT; - {$EXTERNALSYM EVP_VerifyInit_ex} -function EVP_VerifyInit_ex(a: PEVP_MD_CTX; b: PEVP_MD; c: PENGINE) : TIdC_INT; - {$EXTERNALSYM EVP_VerifyInit} -function EVP_VerifyInit(a: PEVP_MD_CTX; b: PEVP_MD) : TIdC_INT; - {$EXTERNALSYM EVP_VerifyUpdate} -function EVP_VerifyUpdate(a: PEVP_MD_CTX; b: Pointer; c : size_t) : TIdC_INT; - {$EXTERNALSYM EVP_OpenUpdate} -function EVP_OpenUpdate(a: PEVP_CIPHER_CTX; _out : PIdAnsiChar; outl : PIdC_INT; - _in : PIdAnsiChar; inl : TIdC_INT) : TIdC_INT; - {$EXTERNALSYM EVP_SealUpdate} -function EVP_SealUpdate(a : PEVP_CIPHER_CTX; b: PIdAnsiChar; c : PIdC_INT; - d: PIdAnsiChar; e : TIdC_INT) : TIdC_INT; - {$EXTERNALSYM EVP_DigestSignUpdate} -function EVP_DigestSignUpdate(a : PEVP_MD_CTX; b : Pointer; c : size_t) : TIdC_Int; - {$EXTERNALSYM EVP_DigestVerifyUpdate} -function EVP_DigestVerifyUpdate(a : PEVP_MD_CTX; b : Pointer; c : size_t) : TIdC_INT; -{$ifndef OPENSSL_NO_DES} - {$EXTERNALSYM EVP_des_cfb} -function EVP_des_cfb : PEVP_CIPHER; - {$EXTERNALSYM EVP_des_ede_cfb} -function EVP_des_ede_cfb: PEVP_CIPHER; - {$EXTERNALSYM EVP_des_ede3_cfb} -function EVP_des_ede3_cfb: PEVP_CIPHER; -{$endif} -{$ifndef OPENSSL_NO_IDEA} - {$EXTERNALSYM EVP_idea_cfb} -function EVP_idea_cfb: PEVP_CIPHER; -{$endif} -{$ifndef OPENSSL_NO_RC2} - {$EXTERNALSYM EVP_rc2_cfb} -function EVP_rc2_cfb: PEVP_CIPHER; -{$endif} -{$ifndef OPENSSL_NO_BF} - {$EXTERNALSYM EVP_bf_cfb} -function EVP_bf_cfb: PEVP_CIPHER; -{$endif} -{$ifndef OPENSSL_NO_CAST} - {$EXTERNALSYM EVP_cast5_cfb} -function EVP_cast5_cfb: PEVP_CIPHER; -{$endif} -{$ifndef OPENSSL_NO_RC5} - {$EXTERNALSYM EVP_rc5_32_12_16_cfb} -function EVP_rc5_32_12_16_cfb: PEVP_CIPHER; -{$endif} -{$ifndef OPENSSL_NO_AES} - {$EXTERNALSYM EVP_aes_128_cfb} -function EVP_aes_128_cfb: PEVP_CIPHER; - {$EXTERNALSYM EVP_aes_192_cfb} -function EVP_aes_192_cfb: PEVP_CIPHER; - {$EXTERNALSYM EVP_aes_256_cfb} -function EVP_aes_256_cfb: PEVP_CIPHER; -{$endif} -{$ifndef OPENSSL_NO_CAMELLIA} - {$EXTERNALSYM EVP_camellia_128_cfb} -function EVP_camellia_128_cfb: PEVP_CIPHER; - {$EXTERNALSYM EVP_camellia_192_cfb} -function EVP_camellia_192_cfb: PEVP_CIPHER; - {$EXTERNALSYM EVP_camellia_256_cfb} -function EVP_camellia_256_cfb: PEVP_CIPHER; -{$endif} -{$ifndef OPENSSL_NO_SEED} - {$EXTERNALSYM EVP_seed_cfb} -function EVP_seed_cfb: PEVP_CIPHER; -{$endif} - {$EXTERNALSYM EVP_PKEY_CTX_set_signature_md} -function EVP_PKEY_CTX_set_signature_md(ctx : PEVP_PKEY_CTX;md : PEVP_PKEY_CTX) : TIdC_INT; - {$EXTERNALSYM SSLeay_add_all_algorithms} -procedure SSLeay_add_all_algorithms; - {$EXTERNALSYM SSLeay_add_all_ciphers} -procedure SSLeay_add_all_ciphers; - {$EXTERNALSYM SSLeay_add_all_digests} -procedure SSLeay_add_all_digests; - - {$EXTERNALSYM X509V3_set_ctx_nodb} -procedure X509V3_set_ctx_nodb(ctx: X509V3_CTX); -// - {$EXTERNALSYM ErrMsg} -function ErrMsg(AErr : TIdC_ULONG) : string; - {$EXTERNALSYM ERR_PACK} -function ERR_PACK(l, f, r : TIdC_INT) : TIdC_ULONG; - {$EXTERNALSYM ERR_GET_LIB} -function ERR_GET_LIB(const l : TIdC_INT) : TIdC_ULONG; - {$EXTERNALSYM ERR_GET_FUNC} -function ERR_GET_FUNC(const l : TIdC_INT) : TIdC_ULONG; - {$EXTERNALSYM ERR_FATAL_ERROR} -function ERR_FATAL_ERROR(const l : TIdC_INT) : Boolean; - {$EXTERNALSYM ERR_GET_REASON} -function ERR_GET_REASON(const l : TIdC_INT) : TIdC_INT; - {$EXTERNALSYM SYSerr} -procedure SYSerr(const f,r : TIdC_INT); - {$EXTERNALSYM BNerr} -procedure BNerr(const f,r : TIdC_INT); - {$EXTERNALSYM RSAerr} -procedure RSAerr(const f,r : TIdC_INT); - {$EXTERNALSYM DHerrr} -procedure DHerrr(const f,r : TIdC_INT); - {$EXTERNALSYM EVPerr} -procedure EVPerr(const f,r : TIdC_INT); - {$EXTERNALSYM BUFerr} -procedure BUFerr(const f,r : TIdC_INT); - {$EXTERNALSYM OBJerr} -procedure OBJerr(const f,r : TIdC_INT); - {$EXTERNALSYM PEMerr} -procedure PEMerr(const f,r : TIdC_INT); - {$EXTERNALSYM DSAerr} -procedure DSAerr(const f,r : TIdC_INT); - {$EXTERNALSYM X509err} -procedure X509err(const f,r : TIdC_INT); - {$EXTERNALSYM ASN1err} -procedure ASN1err(const f,r : TIdC_INT); - {$EXTERNALSYM CONFerr} -procedure CONFerr(const f,r : TIdC_INT); - {$EXTERNALSYM CRYPTOerr} -procedure CRYPTOerr(const f,r : TIdC_INT); - {$EXTERNALSYM ECerr} -procedure ECerr(const f,r : TIdC_INT); - {$EXTERNALSYM SSLerr} -procedure SSLerr(const f,r : TIdC_INT); - {$EXTERNALSYM BIOerr} -procedure BIOerr(const f,r : TIdC_INT); - {$EXTERNALSYM PKCS7err} -procedure PKCS7err(const f,r : TIdC_INT); - {$EXTERNALSYM X509V3err} -procedure X509V3err(const f,r : TIdC_INT); - {$EXTERNALSYM PKCS12err} -procedure PKCS12err(const f,r : TIdC_INT); - {$EXTERNALSYM RANDerr} -procedure RANDerr(const f,r : TIdC_INT); - {$EXTERNALSYM DSOerr} -procedure DSOerr(const f,r : TIdC_INT); - {$EXTERNALSYM ENGINEerr} -procedure ENGINEerr(const f,r : TIdC_INT); - {$EXTERNALSYM OCSPerr} -procedure OCSPerr(const f,r : TIdC_INT); - {$EXTERNALSYM UIerr} -procedure UIerr(const f,r : TIdC_INT); - {$EXTERNALSYM COMPerr} -procedure COMPerr(const f,r : TIdC_INT); - {$EXTERNALSYM ECDSAerr} -procedure ECDSAerr(const f,r : TIdC_INT); - {$EXTERNALSYM ECDHerr} -procedure ECDHerr(const f,r : TIdC_INT); - {$EXTERNALSYM STOREerr} -procedure STOREerr(const f,r : TIdC_INT); - {$EXTERNALSYM FIPSerr} -procedure FIPSerr(const f,r : TIdC_INT); - {$EXTERNALSYM CMSerr} -procedure CMSerr(const f,r : TIdC_INT); - {$EXTERNALSYM TSerr} -procedure TSerr(const f,r : TIdC_INT); - {$EXTERNALSYM HMACerr} -procedure HMACerr(const f,r : TIdC_INT); - {$EXTERNALSYM JPAKEerr} -procedure JPAKEerr(const f,r : TIdC_INT); - {$EXTERNALSYM X509_LOOKUP_load_file} -function X509_LOOKUP_load_file(x : PX509_LOOKUP; name : PIdAnsiChar; _type : TIdC_LONG) : TIdC_INT; - {$EXTERNALSYM X509_LOOKUP_add_dir} -function X509_LOOKUP_add_dir(x : PX509_LOOKUP; name : PIdAnsiChar; _type : TIdC_LONG) : TIdC_INT; - -type -//moved from IdSSLOpenSSL so we can use these classes in other places - EIdOpenSSLError = class(EIdException); - TIdOpenSSLAPISSLError = class of EIdOpenSSLAPISSLError; - - EIdOpenSSLAPISSLError = class(EIdOpenSSLError) - protected - FErrorCode : TIdC_INT; - FRetCode : TIdC_INT; - public - class procedure RaiseException(ASSL: Pointer; const ARetCode : TIdC_INT; const AMsg : String = ''); - class procedure RaiseExceptionCode(const AErrCode, ARetCode : TIdC_INT; const AMsg : String = ''); - property ErrorCode : TIdC_INT read FErrorCode; - property RetCode : TIdC_INT read FRetCode; - end; - - TIdOpenSSLAPICryptoError = class of EIdOpenSSLAPICryptoError; - EIdOpenSSLAPICryptoError = class(EIdOpenSSLError) - protected - FErrorCode : TIdC_ULONG; - public - class procedure RaiseExceptionCode(const AErrCode : TIdC_ULONG; const AMsg : String = ''); - class procedure RaiseException(const AMsg : String = ''); - property ErrorCode : TIdC_ULONG read FErrorCode; - end; - EIdOSSLUnderlyingCryptoError = class(EIdOpenSSLAPICryptoError); - - EIdDigestError = class(EIdOpenSSLAPICryptoError); - EIdDigestFinalEx = class(EIdDigestError); - EIdDigestInitEx = class(EIdDigestError); - EIdDigestUpdate = class(EIdDigestError); - -function IsOpenSSL_1x : Boolean; -function IsOpenSSL_SSLv2_Available : Boolean; -function IsOpenSSL_SSLv3_Available : Boolean; -function IsOpenSSL_SSLv23_Available : Boolean; -function IsOpenSSL_TLSv1_0_Available : Boolean; -function IsOpenSSL_TLSv1_1_Available : Boolean; -function IsOpenSSL_TLSv1_2_Available : Boolean; -function IsOpenSSL_DTLSv1_Available : Boolean; - -// RLebeau: should these be declared as EXTERNALSYM? -procedure RAND_cleanup; -function RAND_bytes(buf : PIdAnsiChar; num : integer) : integer; -function RAND_pseudo_bytes(buf : PIdAnsiChar; num : integer) : integer; -procedure RAND_seed(buf : PIdAnsiChar; num : integer); -procedure RAND_add(buf : PIdAnsiChar; num : integer; entropy : integer); -function RAND_status() : integer; -{$IFDEF SYS_WIN} -function RAND_event(iMsg : UINT; wp : wparam; lp : lparam) : integer; -procedure RAND_screen(); -{$ENDIF} - -implementation - -uses - Classes, - IdFIPS, - IdGlobalProtocols, - IdResourceStringsProtocols, - IdResourceStringsOpenSSL, - IdStack - {$IFDEF FPC} - {$IFNDEF WINDOWS} - , DynLibs // needed for FreeLibrary - {$ENDIF} - {$ENDIF}; - -{$IFNDEF OPENSSL_NO_HMAC} -procedure HMAC_Init_ex(ctx : PHMAC_CTX; key : Pointer; len : TIdC_INT; - md : PEVP_MD; impl : PENGINE); - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - if Assigned(_HMAC_Init_ex) then begin - _HMAC_Init_ex(ctx, key, len, md, impl ); - end else begin - if Assigned(_1_0_HMAC_Init_ex) then begin - _1_0_HMAC_Init_ex(ctx, key, len, md, impl ); - end; - end; -end; - -procedure HMAC_Update(ctx : PHMAC_CTX; data : PIdAnsiChar; len : size_t); - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - if Assigned(_HMAC_Update) then begin - _HMAC_Update(ctx, data, len ); - end else begin - if Assigned(_1_0_HMAC_Update) then begin - _1_0_HMAC_Update(ctx, data, len ); - end; - end; -end; - -procedure HMAC_Final(ctx : PHMAC_CTX; md : PIdAnsiChar; len : PIdC_UINT); - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - if Assigned(_HMAC_Final) then begin - _HMAC_Final(ctx, md, len ); - end else begin - if Assigned(_1_0_HMAC_Update) then begin - _1_0_HMAC_Final(ctx, md, len ); - end; - end; -end; -{$ENDIF} - -function IsOpenSSL_1x : Boolean; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - if Assigned( SSLeay ) then begin - Result := (SSLeay and $F0000000) = $10000000; - end else begin - Result := False; - end; -end; - -function IsOpenSSL_SSLv2_Available : Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := Assigned(SSLv2_method) and - Assigned(SSLv2_server_method) and - Assigned(SSLv2_client_method); -end; - -function IsOpenSSL_SSLv3_Available : Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := Assigned(SSLv3_method) and - Assigned(SSLv3_server_method) and - Assigned(SSLv3_client_method); -end; - -function IsOpenSSL_SSLv23_Available : Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := Assigned(SSLv23_method) and - Assigned(SSLv23_server_method) and - Assigned(SSLv23_client_method); -end; - -function IsOpenSSL_TLSv1_0_Available : Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := Assigned(TLSv1_method) and - Assigned(TLSv1_server_method) and - Assigned(TLSv1_client_method); -end; - -function IsOpenSSL_TLSv1_1_Available : Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := Assigned(TLSv1_1_method) and - Assigned(TLSv1_1_server_method) and - Assigned(TLSv1_1_client_method); -end; - -function IsOpenSSL_TLSv1_2_Available : Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := Assigned(TLSv1_2_method) and - Assigned(TLSv1_2_server_method) and - Assigned(TLSv1_2_client_method); -end; - -function IsOpenSSL_DTLSv1_Available : Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := Assigned(DTLSv1_method) and - Assigned(DTLSv1_server_method) and - Assigned(DTLSv1_client_method); -end; - -//**************** FIPS Support backend ******************* -function OpenSSLIsHashingIntfAvail : Boolean; -begin - Result := Assigned(EVP_DigestInit_ex) and - Assigned(EVP_DigestUpdate) and - Assigned(EVP_DigestFinal_ex) ; -end; - -function OpenSSLGetFIPSMode : Boolean; -begin - Result := FIPS_mode <> 0; -end; - -function OpenSSLSetFIPSMode(const AMode : Boolean) : Boolean; -begin - //leave this empty as we may not be using something that supports FIPS - if AMode then begin - Result := FIPS_mode_set(1) = 1; - end else begin - Result := FIPS_mode_set(0) = 1; - end; -end; - -function OpenSSLGetDigestCtx( AInst : PEVP_MD) : TIdHashIntCtx; - {$IFDEF USE_INLINE} inline; {$ENDIF} -var LRet : Integer; -begin - Result := AllocMem(SizeOf(EVP_MD_CTX)); - EVP_MD_CTX_init(Result); - - LRet := EVP_DigestInit_ex(Result, AInst, nil); - if LRet <> 1 then begin - EIdDigestInitEx.RaiseException('EVP_DigestInit_ex error'); - end; -end; - -function OpenSSLIsMD2HashIntfAvail: Boolean; -begin - {$IFDEF OPENSSL_NO_MD2} - Result := False; - {$ELSE} - Result := Assigned(EVP_md2); - {$ENDIF} -end; - -function OpenSSLGetMD2HashInst : TIdHashIntCtx; -{$IFNDEF OPENSSL_NO_MD2} -var - LRet : PEVP_MD; -{$ENDIF} -begin - {$IFDEF OPENSSL_NO_MD2} - Result := nil; - {$ELSE} - LRet := EVP_md2; - Result := OpenSSLGetDigestCtx(LRet); - {$ENDIF} -end; - -function OpenSSLIsMD4HashIntfAvail: Boolean; -begin - Result := Assigned(EVP_md4); -end; - -function OpenSSLGetMD4HashInst : TIdHashIntCtx; -var - LRet : PEVP_MD; -begin - LRet := EVP_md4; - Result := OpenSSLGetDigestCtx(LRet); -end; - -function OpenSSLIsMD5HashIntfAvail: Boolean; -begin - Result := Assigned(EVP_md5); -end; - -function OpenSSLGetMD5HashInst : TIdHashIntCtx; -var - LRet : PEVP_MD; -begin - LRet := EVP_md5; - Result := OpenSSLGetDigestCtx(LRet); -end; - -function OpenSSLIsSHA1HashIntfAvail: Boolean; -begin - {$IFDEF OPENSSL_NO_SHA} - Result := False; - {$ELSE} - Result := Assigned(EVP_sha1); - {$ENDIF} -end; - -function OpenSSLGetSHA1HashInst : TIdHashIntCtx; -{$IFNDEF OPENSSL_NO_SHA} -var - LRet : PEVP_MD; -{$ENDIF} -begin - {$IFDEF OPENSSL_NO_SHA} - Result := nil; - {$ELSE} - LRet := EVP_sha1; - Result := OpenSSLGetDigestCtx(LRet); - {$ENDIF} -end; - -function OpenSSLIsSHA224HashIntfAvail: Boolean; -begin - {$IFDEF OPENSSL_NO_SHA256} - Result := False; - {$ELSE} - Result := Assigned(EVP_sha224); - {$ENDIF} -end; - -function OpenSSLGetSHA224HashInst : TIdHashIntCtx; -{$IFNDEF OPENSSL_NO_SHA256} -var - LRet : PEVP_MD; -{$ENDIF} -begin - {$IFDEF OPENSSL_NO_SHA256} - Result := nil; - {$ELSE} - LRet := EVP_sha224; - Result := OpenSSLGetDigestCtx(LRet); - {$ENDIF} -end; - -function OpenSSLIsSHA256HashIntfAvail: Boolean; -begin - {$IFDEF OPENSSL_NO_SHA256} - Result := False; - {$ELSE} - Result := Assigned(EVP_sha256); - {$ENDIF} -end; - -function OpenSSLGetSHA256HashInst : TIdHashIntCtx; -{$IFNDEF OPENSSL_NO_SHA256} -var - LRet : PEVP_MD; -{$ENDIF} -begin - {$IFDEF OPENSSL_NO_SHA256} - Result := nil; - {$ELSE} - LRet := EVP_sha256; - Result := OpenSSLGetDigestCtx(LRet); - {$ENDIF} -end; - -function OpenSSLIsSHA384HashIntfAvail: Boolean; -begin - {$IFDEF OPENSSL_NO_SHA512} - Result := False; - {$ELSE} - Result := Assigned(EVP_sha384); - {$ENDIF} -end; - -function OpenSSLGetSHA384HashInst : TIdHashIntCtx; -{$IFNDEF OPENSSL_NO_SHA512} -var - LRet : PEVP_MD; -{$ENDIF} -begin - {$IFDEF OPENSSL_NO_SHA512} - Result := nil; - {$ELSE} - LRet := EVP_sha384; - Result := OpenSSLGetDigestCtx(LRet); - {$ENDIF} -end; - -function OpenSSLIsSHA512HashIntfAvail: Boolean; -begin - {$IFDEF OPENSSL_NO_SHA512} - Result := nil; - {$ELSE} - Result := Assigned(EVP_sha512); - {$ENDIF} -end; - -function OpenSSLGetSHA512HashInst : TIdHashIntCtx; -{$IFNDEF OPENSSL_NO_SHA512} -var - LRet : PEVP_MD; -{$ENDIF} -begin - {$IFDEF OPENSSL_NO_SHA512} - Result := nil; - {$ELSE} - LRet := EVP_sha512; - Result := OpenSSLGetDigestCtx(LRet); -{$ENDIF} -end; - -procedure OpenSSLUpdateHashInst(ACtx: TIdHashIntCtx; const AIn: TIdBytes); -var - LRet : TIdC_Int; -begin - LRet := EVP_DigestUpdate(ACtx, PByte(Ain), Length(AIn)); - if LRet <> 1 then begin - EIdDigestInitEx.RaiseException('EVP_DigestUpdate error'); - end; -end; - -function OpenSSLFinalHashInst(ACtx: TIdHashIntCtx): TIdBytes; -var - LLen : TIdC_UInt; - LRet : TIdC_Int; -begin - SetLength(Result,EVP_MAX_MD_SIZE); - LRet := EVP_DigestFinal_ex(ACtx, PIdAnsiChar(@Result[0]), LLen); - if LRet <> 1 then begin - EIdDigestFinalEx.RaiseException('EVP_DigestFinal_ex error'); - end; - SetLength(Result,LLen); - EVP_MD_CTX_cleanup(ACtx); - FreeMem(ACtx,SizeOf(EVP_MD_CTX)); -end; - -function OpenSSLIsHMACAvail : Boolean; -begin - {$IFDEF OPENSSL_NO_HMAC} - Result := False; - {$ELSE} - Result := Assigned(HMAC_CTX_init) and - ( Assigned(_HMAC_Init_ex) or Assigned(_1_0_HMAC_Init_ex) ) and - ( Assigned(_HMAC_Update) or Assigned(_1_0_HMAC_Update) ) and - ( Assigned(_HMAC_Final) or Assigned(_1_0_HMAC_Final) ) and - Assigned(HMAC_CTX_cleanup); - {$ENDIF} -end; - -function OpenSSLIsHMACMD5Avail: Boolean; -begin - {$IFDEF OPENSSL_NO_MD5} - Result := False; - {$ELSE} - Result := Assigned(EVP_md5); - {$ENDIF} -end; - -function OpenSSLGetHMACMD5Inst(const AKey : TIdBytes) : TIdHMACIntCtx; -begin - {$IFDEF OPENSSL_NO_MD5} - Result := nil; - {$ELSE} - Result := AllocMem(SizeOf(HMAC_CTX)); - HMAC_CTX_init(Result); - HMAC_Init_ex(Result, PByte(AKey), Length(AKey), EVP_md5, nil); - {$ENDIF} -end; - -function OpenSSLIsHMACSHA1Avail: Boolean; -begin - {$IFDEF OPENSSL_NO_SHA} - Result := False; - {$ELSE} - Result := Assigned(EVP_sha1); - {$ENDIF} -end; - -function OpenSSLGetHMACSHA1Inst(const AKey : TIdBytes) : TIdHMACIntCtx; -begin - {$IFDEF OPENSSL_NO_SHA} - Result := nil; - {$ELSE} - Result := AllocMem(SizeOf(HMAC_CTX)); - HMAC_CTX_init(Result); - HMAC_Init_ex(Result, PByte(AKey), Length(AKey), EVP_sha1, nil); - {$ENDIF} -end; - -function OpenSSLIsHMACSHA224Avail: Boolean; - -begin - {$IFDEF OPENSSL_NO_SHA256} - Result := False; - {$ELSE} - Result := Assigned(EVP_sha224); - {$ENDIF} -end; - -function OpenSSLGetHMACSHA224Inst(const AKey : TIdBytes) : TIdHMACIntCtx; -begin - {$IFDEF OPENSSL_NO_SHA256} - Result := nil; - {$ELSE} - Result := AllocMem(SizeOf(HMAC_CTX)); - HMAC_CTX_init(Result); - HMAC_Init_ex(Result, PByte(AKey), Length(AKey), EVP_sha224, nil); - {$ENDIF} -end; - -function OpenSSLIsHMACSHA256Avail: Boolean; -begin - {$IFDEF OPENSSL_NO_SHA256} - Result := False; - {$ELSE} - Result := Assigned(EVP_sha256); - {$ENDIF} -end; - -function OpenSSLGetHMACSHA256Inst(const AKey : TIdBytes) : TIdHMACIntCtx; -begin - {$IFDEF OPENSSL_NO_SHA256} - Result := nil; - {$ELSE} - Result := AllocMem(SizeOf(HMAC_CTX)); - HMAC_CTX_init(Result); - HMAC_Init_ex(Result, PByte(AKey), Length(AKey), EVP_sha256, nil); - {$ENDIF} -end; - -function OpenSSLIsHMACSHA384Avail: Boolean; -begin - {$IFDEF OPENSSL_NO_SHA512} - Result := False; - {$ELSE} - Result := Assigned(EVP_sha384); - {$ENDIF} -end; - -function OpenSSLGetHMACSHA384Inst(const AKey : TIdBytes) : TIdHMACIntCtx; -begin - {$IFDEF OPENSSL_NO_SHA512} - Result := nil; - {$ELSE} - Result := AllocMem(SizeOf(HMAC_CTX)); - HMAC_CTX_init(Result); - HMAC_Init_ex(Result, PByte(AKey), Length(AKey), EVP_sha384, nil); - {$ENDIF} -end; - -function OpenSSLIsHMACSHA512Avail: Boolean; -begin - {$IFDEF OPENSSL_NO_SHA512} - Result := False; - {$ELSE} - Result := Assigned(EVP_sha512); - {$ENDIF} -end; - -function OpenSSLGetHMACSHA512Inst(const AKey : TIdBytes) : TIdHMACIntCtx; -begin - {$IFDEF OPENSSL_NO_SHA512} - Result := nil; - {$ELSE} - Result := AllocMem(SizeOf(HMAC_CTX)); - HMAC_CTX_init(Result); - HMAC_Init_ex(Result, PByte(AKey), Length(AKey), EVP_sha512, nil); - {$ENDIF} -end; - -procedure OpenSSLUpdateHMACInst(ACtx : TIdHMACIntCtx; const AIn: TIdBytes); -begin - HMAC_Update(ACtx, PIdAnsiChar(PByte(AIn)), Length(AIn)); -end; - -function OpenSSLFinalHMACInst(ACtx: TIdHMACIntCtx): TIdBytes; -var - LLen : TIdC_UInt; -begin - LLen := EVP_MAX_MD_SIZE; - SetLength(Result,LLen); - HMAC_Final(ACtx, PIdAnsiChar(@Result[0]), @LLen); - SetLength(Result,LLen); - HMAC_CTX_cleanup(ACtx); - FreeMem(ACtx,SizeOf(HMAC_CTX)); -end; - -//**************************************************** -function FIPS_mode_set(onoff : TIdC_INT) : TIdC_INT; {$IFDEF INLINE}inline;{$ENDIF} -begin - Result := 0; - {$IFDEF OPENSSL_FIPS} - if Assigned(_FIPS_mode_set) then begin - Result := _FIPS_mode_set(onoff); - end; - {$ENDIF} -end; - -function FIPS_mode() : TIdC_INT; {$IFDEF INLINE}inline;{$ENDIF} -begin - Result := 0; - {$IFDEF OPENSSL_FIPS} - if Assigned(_FIPS_mode) then begin - Result := _FIPS_mode; - end; - {$ENDIF} -end; - -function GetErrorMessage(const AErr : TIdC_ULONG) : String; -{$IFDEF USE_INLINE} inline; {$ENDIF} -const - sMaxErrMsg = 160; -var - LErrMsg: array [0..sMaxErrMsg] of TIdAnsiChar; - {$IFDEF USE_MARSHALLED_PTRS} - LErrMsgPtr: TPtrWrapper; - {$ENDIF} -begin - {$IFDEF USE_MARSHALLED_PTRS} - LErrMsgPtr := TPtrWrapper.Create(@LErrMsg[0]); - {$ENDIF} - ERR_error_string_n(AErr, - {$IFDEF USE_MARSHALLED_PTRS} - LErrMsgPtr.ToPointer - {$ELSE} - LErrMsg - {$ENDIF}, sMaxErrMsg); - LErrMsg[sMaxErrMsg] := TIdAnsiChar(0); - {$IFDEF USE_MARSHALLED_PTRS} - Result := TMarshal.ReadStringAsAnsi(LErrMsgPtr); - {$ELSE} - Result := String(LErrMsg); - {$ENDIF} -end; - -{ EIdOpenSSLAPICryptoError } -class procedure EIdOpenSSLAPICryptoError.RaiseException(const AMsg : String = ''); -begin - RaiseExceptionCode(ERR_get_error(), AMsg); -end; - -class procedure EIdOpenSSLAPICryptoError.RaiseExceptionCode( - const AErrCode: TIdC_ULONG; const AMsg: String); -var - LMsg: String; - LException : EIdOpenSSLAPICryptoError; -begin - if AMsg <> '' then begin - LMsg := AMsg + sLineBreak + String(GetErrorMessage(AErrCode)); - end else begin - LMsg := String(GetErrorMessage(AErrCode)); - end; - LException := Create(LMsg); - LException.FErrorCode := AErrCode; - raise LException; -end; - -{ EIdOpenSSLAPISSLError } - -class procedure EIdOpenSSLAPISSLError.RaiseException(ASSL: Pointer; const ARetCode: TIdC_INT; - const AMsg: String); -begin - RaiseExceptionCode(SSL_get_error(PSSL(ASSL), ARetCode), ARetCode, AMsg); -end; - -class procedure EIdOpenSSLAPISSLError.RaiseExceptionCode(const AErrCode, ARetCode: TIdC_INT; - const AMsg: String); -var - LErrQueue : TIdC_ULONG; - LException : EIdOpenSSLAPISSLError; - LErrStr : String; -begin - if AMsg <> '' then begin - LErrStr := AMsg + sLineBreak; - end else begin - LErrStr := ''; - end; - case AErrCode of - SSL_ERROR_SYSCALL : - begin - LErrQueue := ERR_get_error; - if LErrQueue <> 0 then begin - EIdOSSLUnderlyingCryptoError.RaiseExceptionCode(LErrQueue, AMsg); - end; - if ARetCode = 0 then begin - LException := Create(LErrStr + RSSSLEOFViolation); - LException.FErrorCode := AErrCode; - LException.FRetCode := ARetCode; - raise LException; - end; - {Note that if LErrQueue returns 0 and ARetCode = -1, there probably - is an error in the underlying socket so you should raise a socket error} - if ARetCode = -1 then begin - // TODO: catch the socket exception and re-raise it as the InnerException - // for an EIdOpenSSLAPISSLError exception... - GStack.RaiseLastSocketError; - end; - end; - SSL_ERROR_SSL : begin - EIdOSSLUnderlyingCryptoError.RaiseException(AMsg); - end - end; - // everything else... - LException := Create(LErrStr + String(GetErrorMessage(AErrCode))); - LException.FErrorCode := AErrCode; - LException.FRetCode := ARetCode; - raise LException; -end; - -type - TRAND_bytes = function(buf : PIdAnsiChar; num : integer) : integer; cdecl; - TRAND_pseudo_bytes = function(buf : PIdAnsiChar; num : integer) : integer; cdecl; - TRAND_seed = procedure(buf : PIdAnsiChar; num : integer); cdecl; - TRAND_add = procedure(buf : PIdAnsiChar; num : integer; entropy : integer); cdecl; - TRAND_status = function() : integer; cdecl; - {$IFDEF SYS_WIN} - TRAND_event = function(iMsg : UINT; wp : wparam; lp : lparam) : integer; cdecl; - {$ENDIF} - TRAND_cleanup = procedure; cdecl; - -{$IFDEF STATICLOAD_OPENSSL} -const - SSL_LIB_name = 'libssl.a'; {Do not Localize} - SSLCLIB_LIB_name = 'libcrypto.a'; {Do not Localize} -{$ELSE} - {$IFDEF UNIX} -const - {This is a workaround for some Linux distributions and a few other things - where the symbolic link libbsl.so and libcrypto.so do not exist} - SSL_DLL_name = 'libssl'; {Do not localize} - SSLCLIB_DLL_name = 'libcrypto'; {Do not localize} - SSLDLLVers : array [0..10] of string = ( - '.10', - '.1.0.2','.1.0.1', - // TODO: IFDEF the following for OSX only? - '.44', // MacOS LibreSSL forked from which OpenSSL version? Sometimes found ... - '.43', // MacOS LibreSSL forked from which OpenSSL version? Sometimes found ... - // TODO: Add '.41' as well? - '.35', // MacOS LibreSSL forked from OpenSSL version 1.0.1, almost always found - // - '.1.0.0','.0.9.9','.0.9.8','.0.9.7','.0.9.6' - ); - SSLDLLVersChar : array [0..26] of string = ('','a','b','c','d','e','f','g','h','i', - 'j','k','l','m','n','o','p','q','r', - 's','t','u','v','w','x','y','z'); - {$ENDIF} - {$IFDEF WINDOWS} -const - SSL_DLL_name = 'ssleay32.dll'; {Do not localize} - //The following is a workaround for an alternative name for - //one of the OpenSSL .DLL's. If you compile the .DLL's using - //mingw32, the SSL .dll might be named 'libssl32.dll' instead of - //ssleay32.dll like you would expect. - SSL_DLL_name_alt = 'libssl32.dll'; {Do not localize} - SSLCLIB_DLL_name = 'libeay32.dll'; {Do not localize} - {$ENDIF} -{$ENDIF} - -var - {$IFDEF STATICLOAD_OPENSSL} - bIsLoaded : Boolean = False; - {$ELSE} - hIdSSL : TIdLibHandle = IdNilHandle; - hIdCrypto : TIdLibHandle = IdNilHandle; - FFailedLoadList : TStringList; - {$ENDIF} - - _RAND_cleanup : TRAND_cleanup = nil; - _RAND_bytes : TRAND_bytes = nil; - _RAND_pseudo_bytes : TRAND_pseudo_bytes = nil; - _RAND_seed : TRAND_seed = nil; - _RAND_add : TRAND_add = nil; - _RAND_status : TRAND_status = nil; - {$IFDEF SYS_WIN} - // LIBEAY functions - open SSL 0.9.6a - _RAND_screen : procedure cdecl = nil; - _RAND_event : TRAND_event = nil; - {$ENDIF} - -{$IFNDEF STATICLOAD_OPENSSL} -function GetSSLLibHandle : TIdLibHandle; -begin - Result := hIdSSL; -end; - -function GetCryptLibHandle : TIdLibHandle; -begin - Result := hIdCrypto; -end; - -{ This constant's are used twice. First time in Load function and second time } {Do not localize} -{ in function WhichFailedToLoad. I belive that this reduce size of final } -{ compiled file. } -const -{most of these are commented out because we aren't using them now. I am keeping -them in case we use them later.} - fn_sk_num = 'sk_num'; {Do not localize} - fn_sk_value = 'sk_value'; {Do not localize} - {CH fn_sk_set = 'sk_set'; } {Do not localize} - fn_sk_new = 'sk_new'; {Do not localize} - fn_sk_new_null = 'sk_new_null'; {Do not localize} - fn_sk_free = 'sk_free'; {Do not localize} - fn_sk_pop_free = 'sk_pop_free'; {Do not localize} - {CH fn_sk_insert = 'sk_insert'; } {Do not localize} - {CH fn_sk_delete = 'sk_delete'; } {Do not localize} - {CH fn_sk_delete_ptr = 'sk_delete_ptr'; } {Do not localize} - fn_sk_find = 'sk_find'; {Do not localize} - fn_sk_push = 'sk_push'; {Do not localize} - {CH fn_sk_unshift = 'sk_unshift'; } {Do not localize} - {CH fn_sk_shift = 'sk_shift'; } {Do not localize} - {CH fn_sk_pop = 'sk_pop'; } {Do not localize} - {CH fn_sk_zero = 'sk_zero'; } {Do not localize} - fn_sk_dup = 'sk_dup'; {Do not localize} - {CH fn_sk_sort = 'sk_sort'; } {Do not localize} - fn_SSLeay_version = 'SSLeay_version'; {Do not localize} - fn_SSLeay = 'SSLeay'; {Do not localize} - {CH fn_OPENSSL_issetugid = 'OPENSSL_issetugid'; }{Do not localize} - {CH fn_CONF_set_default_method = 'CONF_set_default_method'; } {Do not localize} - {CH fn_CONF_set_nconf = 'CONF_set_nconf'; } {Do not localize} - {CH fn_CONF_load = 'CONF_load'; } {Do not localize} -{$IFNDEF OPENSSL_NO_FP_API} - {CH fn_CONF_load_fp = 'CONF_load_fp'; } {Do not localize} -{$ENDIF} - {CH fn_CONF_load_bio = 'CONF_load_bio'; } {Do not localize} - {CH fn_CONF_get_section = 'CONF_get_section'; } {Do not localize} - {CH fn_CONF_get_string = 'CONF_get_string'; } {Do not localize} - {CH fn_CONF_get_number = 'CONF_get_number'; } {Do not localize} - {CH fn_CONF_free = 'CONF_free'; }{Do not localize} - {CH fn_CONF_dump_fp = 'CONF_dump_fp'; } {Do not localize} - {CH fn_CONF_dump_bio = 'CONF_dump_bio'; } {Do not localize} - {CH fn_NCONF_new = 'NCONF_new'; } {Do not localize} - {CH fn_NCONF_default = 'NCONF_default'; } {Do not localize} - {CH fn_NCONF_WIN32 = 'NCONF_WIN32'; } {Do not localize} -{$IFDEF OMIT_THIS} //* Just to give you an idea of what I have in mind */ - {CH fn_NCONF_XML = 'NCONF_XML''; } {Do not localize} -{$ENDIF} - {CH fn_NCONF_free = 'NCONF_free'; } {Do not localize} - {CH fn_NCONF_free_data = 'NCONF_free_data'; } {Do not localize} - {CH fn_NCONF_load = 'NCONF_load'; } {Do not localize} -{$IFNDEF OPENSSL_NO_FP_API} - {CH fn_NCONF_load_fp = 'NCONF_load_fp'; }{Do not localize} -{$ENDIF} - {CH fn_NCONF_load_bio = 'NCONF_load_bio'; } {Do not localize} - {CH fn_NCONF_get_section = 'NCONF_get_section'; } {Do not localize} - {CH fn_NCONF_get_string = 'NCONF_get_string'; } {Do not localize} - {CH fn_NCONF_get_number_e = 'NCONF_get_number_e'; } {Do not localize} - {CH fn_NCONF_dump_fp = 'NCONF_dump_fp'; } {Do not localize} - {CH fn_NCONF_dump_bio = 'NCONF_dump_bio'; }{Do not localize} - {CH fn_CONF_modules_load = 'CONF_modules_load'; } {Do not localize} - {CH fn_CONF_modules_load_file = 'CONF_modules_load_file'; } {Do not localize} - {CH fn_CONF_modules_unload = 'CONF_modules_unload'; } {Do not localize} - {CH fn_CONF_modules_finish = 'CONF_modules_finish'; } {Do not localize} - {CH fn_CONF_modules_free = 'CONF_modules_free'; } {Do not localize} - {CH fn_CONF_module_add = 'CONF_module_add'; } {Do not localize} - {CH fn_CONF_imodule_get_name = 'CONF_imodule_get_name'; } {Do not localize} - {CH fn_CONF_imodule_get_value = 'CONF_imodule_get_value'; } {Do not localize} - {CH fn_CONF_imodule_get_usr_data = 'CONF_imodule_get_usr_data'; } {Do not localize} - {CH fn_CONF_imodule_set_usr_data = 'CONF_imodule_set_usr_data'; } {Do not localize} - {CH fn_CONF_imodule_get_module = 'CONF_imodule_get_module'; } {Do not localize} - {CH fn_CONF_imodule_get_flags = 'CONF_imodule_get_flags'; } {Do not localize} - {CH fn_CONF_imodule_set_flags = 'CONF_imodule_set_flags'; } {Do not localize} - {CH fn_CONF_module_get_usr_data = 'CONF_module_get_usr_data'; } {Do not localize} - {CH fn_CONF_module_set_usr_data = 'CONF_module_set_usr_data'; } {Do not localize} - {CH fn_ERR_load_CONF_strings = 'ERR_load_CONF_strings'; } {Do not localize} - {CH fn_CONF_get1_default_config_file = 'CONF_get1_default_config_file'; } {Do not localize} - {CH fn_CONF_parse_list = 'CONF_parse_list' ; } - {CH fn_OPENSSL_load_builtin_modules = 'OPENSSL_load_builtin_modules'; } {Do not localize} - {CH fn_CRYPTO_get_ex_new_index = 'CRYPTO_get_ex_new_index'; } {Do not localize} - {CH fn_CRYPTO_set_ex_data = 'CRYPTO_set_ex_data'; } {Do not localize} - {CH fn_CRYPTO_get_ex_data = 'CRYPTO_get_ex_data'; } {Do not localize} - {CH fn_CRYPTO_dup_ex_data = 'CRYPTO_dup_ex_data'; } {Do not localize} - {CH fn_CRYPTO_free_ex_data = 'CRYPTO_free_ex_data'; } {Do not localize} - {CH fn_CRYPTO_new_ex_data = 'CRYPTO_new_ex_data'; } {Do not localize} - fn_CRYPTO_mem_ctrl = 'CRYPTO_mem_ctrl'; {Do not localize} - {CH fn_OPENSSL_issetugid = 'OPENSSL_issetugid'; } {Do not localize} - {CH fn_CRYPTO_get_ex_data_implementation = 'CRYPTO_get_ex_data_implementation'; } {Do not localize} - {CH fn_CRYPTO_set_ex_data_implementation = 'CRYPTO_set_ex_data_implementation'; } {Do not localize} - {CH fn_CRYPTO_ex_data_new_class = 'CRYPTO_ex_data_new_class'; } {Do not localize} - {CH fn_CRYPTO_get_locking_callback = 'CRYPTO_get_locking_callback'; } {Do not localize} - {CH fn_CRYPTO_get_add_lock_callback = 'CRYPTO_get_add_lock_callback'; } {Do not localize} - {CH fn_CRYPTO_get_new_dynlockid = 'CRYPTO_get_new_dynlockid'; } {Do not localize} - {CH fn_CRYPTO_destroy_dynlockid = 'CRYPTO_destroy_dynlockid'; } {Do not localize} - {CH fn_CRYPTO_get_dynlock_value = 'CRYPTO_get_dynlock_value'; } {Do not localize} - {CH fn_CRYPTO_set_dynlock_create_callback = 'CRYPTO_set_dynlock_create_callback'; } {Do not localize} - {CH fn_CRYPTO_set_dynlock_lock_callback = 'CRYPTO_set_dynlock_lock_callback'; } {Do not localize} - {CH fn_CRYPTO_set_dynlock_destroy_callback = 'CRYPTO_set_dynlock_destroy_callback'; } {Do not localize} - {CH fn_CRYPTO_set_locked_mem_ex_functions = 'CRYPTO_set_locked_mem_ex_functions'; } {Do not localize} - {CH fn_CRYPTO_get_mem_ex_functions = 'CRYPTO_get_mem_ex_functions'; } {Do not localize} - {CH fn_CRYPTO_get_locked_mem_ex_functions = 'CRYPTO_get_locked_mem_ex_functions'; } {Do not localize} - {CH fn_CRYPTO_get_mem_debug_functions = 'CRYPTO_get_mem_debug_functions'; }{Do not localize} - {CH fn_CRYPTO_realloc_clean = 'CRYPTO_realloc_clean'; } {Do not localize} - {CH fn_OPENSSL_cleanse = 'OPENSSL_cleanse'; } {Do not localize} - {CH fn_CRYPTO_set_mem_debug_options = 'CRYPTO_set_mem_debug_options'; } {Do not localize} - {CH fn_CRYPTO_get_mem_debug_options = 'CRYPTO_get_mem_debug_options'; } {Do not localize} - {CH fn_CRYPTO_push_info_ = 'CRYPTO_push_info_'; } {Do not localize} - {CH fn_CRYPTO_pop_info = 'CRYPTO_pop_info'; } {Do not localize} - {CH fn_CRYPTO_remove_all_info = 'CRYPTO_remove_all_info'; } {Do not localize} - {CH fn_OpenSSLDie = 'OpenSSLDie'; } {Do not localize} - {CH fn_OPENSSL_ia32cap_loc = 'OPENSSL_ia32cap_loc'; } {Do not localize} - {CH fn_CRYPTO_get_new_lockid = 'CRYPTO_get_new_lockid'; } {Do not localize} - fn_CRYPTO_num_locks = 'CRYPTO_num_locks'; {Do not localize} - fn_CRYPTO_lock = 'CRYPTO_lock'; {Do not localize} - fn_CRYPTO_set_locking_callback = 'CRYPTO_set_locking_callback'; {Do not localize} - {CH fn_CRYPTO_set_add_lock_callback = 'CRYPTO_set_add_lock_callback'; } {Do not localize} - fn_CRYPTO_set_id_callback = 'CRYPTO_set_id_callback'; {Do not localize} - {CH fn_CRYPTO_thread_id = 'CRYPTO_thread_id'; } {Do not localize} - {CH fn_CRYPTO_get_lock_name = 'CRYPTO_get_lock_name'; } {Do not localize} - {CH fn_CRYPTO_add_lock = 'CRYPTO_add_lock'; } {Do not localize} - {CH fn_int_CRYPTO_set_do_dynlock_callback = 'int_CRYPTO_set_do_dynlock_callback'; } {Do not localize} - //OpenSSL 1.0.0 - use these instead of the depreciated CRYPTO_set_id_callback - fn_CRYPTO_THREADID_set_numeric = 'CRYPTO_THREADID_set_numeric'; {Do not localize} - fn_CRYPTO_THREADID_set_pointer = 'CRYPTO_THREADID_set_pointer'; {Do not localize} - fn_CRYPTO_THREADID_set_callback = 'CRYPTO_THREADID_set_callback'; {Do not localize} - //end section - fn_CRYPTO_set_mem_functions = 'CRYPTO_set_mem_functions'; {Do not localize} - {CH fn_CRYPTO_set_mem_info_functions = 'CRYPTO_set_mem_info_functions'; } {Do not localize} - {CH fn_CRYPTO_get_mem_functions = 'CRYPTO_get_mem_functions'; } {Do not localize} - {CH fn_CRYPTO_set_locked_mem_functions = 'CRYPTO_set_locked_mem_functions'; } {Do not localize} - {CH fn_CRYPTO_get_locked_mem_functions = 'CRYPTO_get_locked_mem_functions'; } {Do not localize} - {CH fn_CRYPTO_malloc_locked = 'CRYPTO_malloc_locked'; } {Do not localize} - {CH fn_CRYPTO_free_locked = 'CRYPTO_free_locked'; } {Do not localize} - fn_CRYPTO_malloc = 'CRYPTO_malloc'; {Do not localize} - fn_CRYPTO_free = 'CRYPTO_free'; {Do not localize} - {CH fn_CRYPTO_realloc = 'CRYPTO_realloc'; } {Do not localize} - {CH fn_CRYPTO_remalloc = 'CRYPTO_remalloc'; } {Do not localize} - {CH fn_CRYPTO_dbg_malloc = 'CRYPTO_dbg_malloc'; } {Do not localize} - {CH fn_CRYPTO_dbg_realloc = 'CRYPTO_dbg_realloc'; } {Do not localize} - {CH fn_CRYPTO_dbg_free = 'CRYPTO_dbg_free'; } {Do not localize} - {CH fn_CRYPTO_dbg_remalloc = 'CRYPTO_dbg_remalloc'; } {Do not localize} - {$IFNDEF OPENSSL_NO_FP_API} - {CH fn_CRYPTO_mem_leaks_fp = 'CRYPTO_mem_leaks_fp'; } {Do not localize} - {$ENDIF} - fn_CRYPTO_mem_leaks = 'CRYPTO_mem_leaks'; {Do not localize} - {CH fn_CRYPTO_mem_leaks_cb = 'CRYPTO_mem_leaks_cb'; } {Do not localize} - fn_CRYPTO_cleanup_all_ex_data = 'CRYPTO_cleanup_all_ex_data'; {Do not localize} - fn_CRYPTO_set_mem_debug_functions = 'CRYPTO_set_mem_debug_functions'; {Do not localize} - {CH fn_CRYPTO_dbg_set_options = 'CRYPTO_dbg_set_options'; } {Do not localize} - {CH fn_CRYPTO_dbg_get_options = 'CRYPTO_dbg_get_options'; } {Do not localize} - {CH fn_CRYPTO_dbg_push_info = 'CRYPTO_dbg_push_info'; } {Do not localize} - {CH fn_CRYPTO_dbg_pop_info = 'CRYPTO_dbg_pop_info'; } {Do not localize} - {CH fn_CRYPTO_dbg_remove_all_info = 'CRYPTO_dbg_remove_all_info'; } {Do not localize} - {CH fn_CRYPTO_memcmp = 'CRYPTO_memcmp'; } {Do not localize} - fn_ERR_load_CRYPTO_strings = 'ERR_load_CRYPTO_strings'; {Do not localize} - {CH fn_OPENSSL_init = 'OPENSSL_init'; } {Do not localize} - {CH fn_lh_new = 'lh_new'; } {Do not localize} - {CH fn_lh_free = 'lh_free'; } {Do not localize} - {CH fn_lh_insert = 'lh_insert'; } {Do not localize} - {CH fn_lh_delete = 'lh_delete'; } {Do not localize} - {CH fn_lh_retrieve = 'lh_retrieve'; } {Do not localize} - {CH fn_lh_doall = 'lh_doall'; } {Do not localize} - {CH fn_lh_doall_arg = 'lh_doall_arg'; } {Do not localize} - {CH fn_lh_strhash = 'lh_strhash'; } {Do not localize} - {CH fn_lh_stats = 'lh_stats'; } {Do not localize} - {CH fn_lh_node_stats = 'lh_node_stats'; } {Do not localize} - {CH fn_lh_node_usage_stats = 'lh_node_usage_stats'; } {Do not localize} - {CH fn_BUF_MEM_new = 'BUF_MEM_new'; } {Do not localize} - {CH fn_BUF_MEM_free = 'BUF_MEM_free'; } {Do not localize} - {CH fn_BUF_MEM_grow = 'BUF_MEM_grow'; } {Do not localize} - {CH fn_BUF_strdup = 'BUF_strdup'; } {Do not localize} - {CH fn_ERR_load_BUF_strings = 'ERR_load_BUF_strings'; } {Do not localize} - {CH fn_BIO_ctrl_pending = 'BIO_ctrl_pending'; } {Do not localize} - {CH fn_BIO_ctrl_wpending = 'BIO_ctrl_wpending'; } {Do not localize} - {CH fn_BIO_ctrl_get_write_guarantee = 'BIO_ctrl_get_write_guarantee'; } {Do not localize} - {CH fn_BIO_ctrl_get_read_request = 'BIO_ctrl_get_read_request'; } {Do not localize} - fn_BIO_set_ex_data = 'BIO_set_ex_data'; {Do not localize} - fn_BIO_get_ex_data = 'BIO_get_ex_data'; {Do not localize} - {CH fn_BIO_get_ex_new_index = 'BIO_get_ex_new_index'; } {Do not localize} - fn_BIO_s_file = 'BIO_s_file'; {Do not localize} - fn_BIO_new_file = 'BIO_new_file'; {Do not localize} - {CH fn_BIO_new_fp = 'BIO_new_fp'; } {Do not localize} - fn_BIO_new = 'BIO_new'; {Do not localize} - fn_BIO_set_flags = 'BIO_set_flags'; {Do not localize} - fn_BIO_new_mem_buf = 'BIO_new_mem_buf'; {Do not localize} - {CH fn_BIO_set = 'BIO_set'; } {Do not localize} - fn_BIO_free = 'BIO_free'; {Do not localize} - fn_BIO_read = 'BIO_read'; {Do not localize} - {CH fn_BIO_gets = 'BIO_gets'; } {Do not localize} - fn_BIO_write = 'BIO_write'; {Do not localize} - fn_BIO_puts = 'BIO_puts'; {Do not localize} - fn_BIO_ctrl = 'BIO_ctrl'; {Do not localize} - fn_BIO_ptr_ctrl = 'BIO_ptr_ctrl'; {Do not localize} - fn_BIO_int_ctrl = 'BIO_int_ctrl'; {Do not localize} - fn_BIO_push = 'BIO_push'; {Do not localize} - fn_BIO_pop = 'BIO_pop'; {Do not localize} - fn_BIO_set_next = 'BIO_set_next'; {Do not localize} - fn_BIO_free_all = 'BIO_free_all'; {Do not localize} - {CH fn_BIO_find_type = 'BIO_find_type'; } {Do not localize} - {CH fn_BIO_get_retry_BIO = 'BIO_get_retry_BIO'; } {Do not localize} - {CH fn_BIO_get_retry_reason = 'BIO_get_retry_reason'; } {Do not localize} - {CH fn_BIO_dup_chain = 'BIO_dup_chain'; } {Do not localize} - {CH fn_BIO_debug_callback = 'BIO_debug_callback'; } {Do not localize} - - fn_BIO_s_mem = 'BIO_s_mem'; {Do not localize} - {CH fn_BIO_s_socket = 'BIO_s_socket'; } {Do not localize} - {CH fn_BIO_s_connect = 'BIO_s_connect'; } {Do not localize} - {CH fn_BIO_s_accept = 'BIO_s_accept'; } {Do not localize} - {CH fn_BIO_s_fd = 'BIO_s_fd'; } {Do not localize} - {CH fn_BIO_s_bio = 'BIO_s_bio'; } {Do not localize} - {CH fn_BIO_s_null = 'BIO_s_null'; } {Do not localize} - {CH fn_BIO_f_null = 'BIO_f_null'; } {Do not localize} - {CH fn_BIO_f_buffer = 'BIO_f_buffer'; } {Do not localize} - {CH fn_BIO_f_nbio_test = 'BIO_f_nbio_test'; } {Do not localize} - {CH fn_BIO_sock_should_retry = 'BIO_sock_should_retry'; } {Do not localize} - {CH fn_BIO_sock_non_fatal_error = 'BIO_sock_non_fatal_error'; } {Do not localize} - {CH fn_BIO_fd_should_retry = 'BIO_fd_should_retry'; } {Do not localize} - {CH fn_BIO_fd_non_fatal_error = 'BIO_fd_non_fatal_error'; } {Do not localize} - {CH fn_BIO_dump = 'BIO_dump'; } {Do not localize} - {CH fn_BIO_gethostbyname = 'BIO_gethostbyname'; } {Do not localize} - {CH fn_BIO_sock_error = 'BIO_sock_error'; } {Do not localize} - {CH fn_BIO_socket_ioctl = 'BIO_socket_ioctl'; } {Do not localize} - {CH fn_BIO_socket_nbio = 'BIO_socket_nbio'; } {Do not localize} - {CH fn_BIO_get_port = 'BIO_get_port'; } {Do not localize} - {CH fn_BIO_get_host_ip = 'BIO_get_host_ip'; } {Do not localize} - {CH fn_BIO_get_accept_socket = 'BIO_get_accept_socket'; } {Do not localize} - {CH fn_BIO_accept = 'BIO_accept'; } {Do not localize} - {CH fn_BIO_sock_init = 'BIO_sock_init'; } {Do not localize} - {CH fn_BIO_sock_cleanup = 'BIO_sock_cleanup'; } {Do not localize} - {CH fn_BIO_set_tcp_ndelay = 'BIO_set_tcp_ndelay'; } {Do not localize} - {CH fn_ERR_load_BIO_strings = 'ERR_load_BIO_strings'; } {Do not localize} - {CH fn_BIO_new_socket = 'BIO_new_socket'; } {Do not localize} - {CH fn_BIO_new_fd = 'BIO_new_fd'; } {Do not localize} - {CH fn_BIO_new_connect = 'BIO_new_connect'; } {Do not localize} - {CH fn_BIO_new_accept = 'BIO_new_accept'; } {Do not localize} - {CH fn_BIO_new_bio_pair = 'BIO_new_bio_pair'; } {Do not localize} - {CH fn_BIO_copy_next_retry = 'BIO_copy_next_retry'; } {Do not localize} - {CH fn_BIO_ghbn_ctrl = 'BIO_ghbn_ctrl'; } {Do not localize} - {CH fn_COMP_CTX_new = 'COMP_CTX_new';} {Do not localize} - {CH fn_COMP_CTX_free = 'COMP_CTX_free'; } {Do not localize} - {CH fn_COMP_compress_block = 'COMP_compress_block'; } {Do not localize} - {CH fn_COMP_expand_block = 'COMP_expand_block'; } {Do not localize} - {CH fn_COMP_rle = 'COMP_rle'; } {Do not localize} - {CH fn_COMP_zlib = 'COMP_zlib'; } {Do not localize} - {CH fn_COMP_zlib_cleanup = 'COMP_zlib_cleanup'; } {Do not localized} - {$IFDEF HEADER_BIO_H} - {$IFDEF ZLIB} - {CH fn_BIO_f_zlib = 'BIO_f_zlib'; } {Do not localize} - {$ENDIF} - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD2} - {CH fn_MD2_options = 'MD2_options'; } {Do not localize} - {$IFDEF OPENSSL_FIPS} - {CH fn_private_MD2_Init = 'private_MD2_Init'; } {Do not localize} - {$ENDIF} - {CH fn_MD2_Init = 'MD2_Init'; } {Do not localize} - {CH fn_MD2_Update = 'MD2_Update'; } {Do not localize} - {CH fn_MD2_Final = 'MD2_Final'; } {Do not localize} - {CH fn_MD2 = 'MD2'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD4} - {$IFDEF OPENSSL_FIPS} - {CH fn_private_MD4_Init = 'private_MD4_Init'; } {Do not localize} - {$ENDIF} - {CH fn_MD4_Init = 'MD4_Init'; } {Do not localize} - {CH fn_MD4_Update = 'MD4_Update'; } {Do not localize} - {CH fn_MD4_Final = 'MD4_Final'; } {Do not localize} - {CH fn_MD4 = 'MD4'; } {Do not localize} - {CH fn_MD4_Transform = 'MD4_Transform'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD5} - {$IFDEF OPENSSL_FIPS} - {CH fn_private_MD5_Init = 'private_MD5_Init'; } {Do not localize} - {$ENDIF} - {CH fn_MD5_Init = 'MD5_Init'; } {Do not localize} - {CH fn_MD5_Update = 'MD5_Update'; } {Do not localize} - {CH fn_MD5_Final = 'MD5_Final'; } {Do not localize} - {CH fn_MD5 = 'MD5'; } {Do not localize} - {CH fn_MD5_Transform = 'MD5_Transform'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA} - {$IFNDEF OPENSSL_NO_SHA0} - {$IFDEF OPENSSL_FIPS} - {CH fn_private_SHA_Init = 'private_SHA_Init'; } {Do not localize} - {$ENDIF} - {CH fn_SHA_Init = 'SHA_Init'; } {Do not localize} - {CH fn_SHA_Update = 'SHA_Update'; } {Do not localize} - {CH fn_SHA_Final = 'SHA_Final'; } {Do not localize} - {CH fn_SHA = 'SHA'; } {Do not localize} - {CH fn_SHA_Transform = 'SHA_Transform'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA1} - {CH fn_SHA1_Init = 'SHA1_Init'; } {Do not localize} - {CH fn_SHA1_Update = 'SHA1_Update'; } {Do not localize} - {CH fn_SHA1_Final = 'SHA1_Final'; } {Do not localize} - {CH fn_SHA1 = 'SHA1'; } {Do not localize} - {CH fn_SHA1_Transform = 'SHA1_Transform'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA256} - {CH fn_SHA224_Init = 'SHA224_Init'; } {Do not localize} - {CH fn_SHA224_Update = 'SHA224_Update'; } {Do not localize} - {CH fn_SHA224_Final = 'SHA224_Final'; } {Do not localize} - {CH fn_SHA224 = 'SHA224'; } {Do not localize} - {CH fn_SHA256_Init = 'SHA256_Init'; } {Do not localize} - {CH fn_SHA256_Update = 'SHA256_Update'; } {Do not localize} - {CH fn_SHA256_Final = 'SHA256_Final'; } {Do not localize} - {CH fn_SHA256 = 'SHA256'; } {Do not localize} - {CH fn_SHA256_Transform = 'SHA256_Transform'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA512} - {CH fn_SHA384_Init = 'SHA384_Init'; } {Do not localize} - {CH fn_SHA384_Update = 'SHA384_Update'; } {Do not localize} - {CH fn_SHA384_Final = 'SHA384_Final'; } {Do not localize} - {CH fn_SHA384 = 'SHA384'; } {Do not localize} - {CH fn_SHA512_Init = 'SHA512_Init'; } {Do not localize} - {CH fn_SHA512_Update = 'SHA512_Update'; } {Do not localize} - {CH fn_SHA512_Final = 'SHA512_Final'; } {Do not localize} - {CH fn_SHA512 = 'SHA512'; } {Do not localize} - {CH fn_SHA512_Transform = 'SHA512_Transform'; } {Do not localize} - {$ENDIF} - {$ENDIF} - {$IFNDEF OPENSSL_NO_RIPEMD} - {$IFDEF OPENSSL_FIPS} - {CH fn_private_RIPEMD160_Init = 'private_RIPEMD160_Init'; } {Do not localize} - {$ENDIF} - {CH fn_RIPEMD160_Init = 'RIPEMD160_Init'; } {Do not localize} - {CH fn_RIPEMD160_Update = 'RIPEMD160_Update'; } {Do not localize} - {CH fn_RIPEMD160_Final = 'RIPEMD160_Final'; } {Do not localize} - {CH fn_RIPEMD160 = 'RIPEMD160'; } {Do not localize} - {CH fn_RIPEMD160_Transform = 'RIPEMD160_Transform'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_HMAC} - fn_HMAC_CTX_init = 'HMAC_CTX_init'; {Do not localize} - fn_HMAC_CTX_cleanup = 'HMAC_CTX_cleanup'; {Do not localize} - {CH fn_HMAC_Init = 'HMAC_Init'; } {Do not localize} - fn_HMAC_Init_ex = 'HMAC_Init_ex'; {Do not localize} - fn_HMAC_Update = 'HMAC_Update'; {Do not localize} - fn_HMAC_Final = 'HMAC_Final'; {Do not localize} - {CH fn_HMAC = 'HMAC'; } {Do not localize} - {CH fn_HMAC_CTX_set_flags = 'HMAC_CTX_set_flags'; } {Do not localize} - {$ENDIF} - {$IFNDEF HEADER_TMDIFF_H} - {CH fn_ms_time_new = 'ms_time_new'; } {Do not localize} - {CH fn_ms_time_free = 'ms_time_free'; } {Do not localize} - {CH fn_ms_time_get = 'ms_time_get'; } {Do not localize} - {CH fn_ms_time_diff = 'ms_time_diff'; } {Do not localize} - {CH fn_ms_time_cmp = 'ms_time_cmp'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_AES} - {CH fn_AES_options = 'AES_options'; }{Do not localize} - {CH fn_AES_set_encrypt_key = 'AES_set_encrypt_key'; }{Do not localize} - {CH fn_AES_set_decrypt_key = 'AES_set_decrypt_key'; }{Do not localize} - {CH fn_AES_encrypt = 'AES_encrypt'; }{Do not localize} - {CH fn_AES_decrypt = 'AES_decrypt'; } {Do not localize} - {CH fn_AES_ecb_encrypt = 'AES_ecb_encrypt'; } {Do not localize} - {CH fn_AES_cbc_encrypt = 'AES_cbc_encrypt'; } {Do not localize} - {CH fn_AES_cfb128_encrypt = 'AES_cfb128_encrypt'; } {Do not localize} - {CH fn_AES_cfb1_encrypt = 'AES_cfb1_encrypt'; } {Do not localize} - {CH fn_AES_cfb8_encrypt = 'AES_cfb8_encrypt'; } {Do not localize} - {CH fn_AES_cfbr_encrypt_block = 'AES_cfbr_encrypt_block'; } {Do not localize} - {CH fn_AES_ofb128_encrypt = 'AES_ofb128_encrypt'; } {Do not localize} - {CH fn_AES_ctr128_encrypt = 'AES_ctr128_encrypt'; } {Do not localize} - {CH fn_AES_ige_encrypt = 'AES_ige_encrypt'; } {Do not localize} - {CH fn_AES_bi_ige_encrypt = 'AES_bi_ige_encrypt'; } {Do not localize} - {CH fn_AES_wrap_key = 'AES_wrap_key'; } {Do not localize} - {CH fn_AES_unwrap_key = 'AES_unwrap_key'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_DES} - {CH fn_des_options = 'DES_options'; } {Do not localize} - {CH fn_des_ecb3_encrypt = 'DES_ecb3_encrypt'; } {Do not localize} - {CH fn_des_cbc_cksum = 'DES_cbc_cksum'; } {Do not localize} - {CH fn_des_cbc_encrypt = 'DES_cbc_encrypt'; } {Do not localize} - {CH fn_des_ncbc_encrypt = 'DES_ncbc_encrypt'; } {Do not localize} - {CH fn_des_xcbc_encrypt = 'DES_xcbc_encrypt'; } {Do not localize} - {CH fn_des_cfb_encrypt = 'DES_cfb_encrypt'; } {Do not localize} - fn_des_ecb_encrypt = 'DES_ecb_encrypt'; {Do not localize} - fnold_des_ecb_encrypt = 'DES_ecb_encrypt'; {Do not localize} - {CH fn_des_encrypt = 'DES_encrypt'; } {Do not localize} - {CH fn_des_encrypt2 = 'DES_encrypt2'; } {Do not localize} - {CH fn_des_encrypt3 = 'DES_encrypt3'; } {Do not localize} - {CH fn_des_decrypt3 = 'DES_decrypt3'; } {Do not localize} - {CH fn_des_ede3_cbc_encrypt = 'DES_ede3_cbc_encrypt'; } {Do not localize} - {CH fn_des_ede3_cbcm_encrypt = 'DES_ede3_cbcm_encrypt'; } {Do not localize} - {CH fn_des_ede3_cfb64_encrypt = 'DES_ede3_cfb64_encrypt'; } {Do not localize} - {CH fn_des_ede3_ofb64_encrypt = 'DES_ede3_ofb64_encrypt'; } {Do not localize} - {$IFDEF USE_THIS} - {CH fn_des_xwhite_in2out = 'DES_xwhite_in2out'; } {Do not localize} - {$ENDIF} - {CH fn_des_enc_read = 'DES_enc_read'; } {Do not localize} - {CH fn_des_enc_write = 'DES_enc_write'; } {Do not localize} - {CH fn_des_fcrypt = 'DES_fcrypt'; } {Do not localize} - {CH fn_crypt = 'crypt'; } {Do not localize} - {CH fn_des_ofb_encrypt = 'DES_ofb_encrypt'; } {Do not localize} - {CH fn_des_pcbc_encrypt = 'DES_pcbc_encrypt'; } {Do not localize} - {CH fn_des_quad_cksum = 'DES_quad_cksum'; } {Do not localize} - {CH fn_des_random_seed = 'DES_random_seed'; } {Do not localize} - {CH fn_des_random_key = 'DES_random_key'; } {Do not localize} - {CH fn_des_read_password = 'DES_read_password'; } {Do not localize} - {CH fn_des_read_2passwords = 'DES_read_2passwords'; } {Do not localize} - {CH fn_des_read_pw_string = 'DES_read_pw_string'; } {Do not localize} - fn_des_set_odd_parity = 'DES_set_odd_parity'; {Do not localize} - fnold_des_set_odd_parity = 'DES_set_odd_parity'; {Do not localize} - {CH fn_des_is_weak_key = 'DES_is_weak_key'; } {Do not localize} - fn_des_set_key = 'DES_set_key'; {Do not localize} - fnold_des_set_key = '_ossl_old_des_set_key'; {Do not localize} - {CH fn_des_key_sched = 'DES_key_sched'; } {Do not localize} - {CH fn_des_string_to_key = 'DES_string_to_key'; } {Do not localize} - {CH fn_des_string_to_2keys = 'DES_string_to_2keys'; } {Do not localize} - {CH fn_des_cfb64_encrypt = 'DES_cfb64_encrypt'; } {Do not localize} - {CH fn_des_ofb64_encrypt = 'DES_ofb64_encrypt'; } {Do not localize} - {CH fn_des_read_pw = 'DES_read_pw'; } {Do not localize} - {CH fn_des_cblock_print_file = 'DES_cblock_print_file'; } {Do not localize} - //des_old.h - {CH fn__ossl_old_des_options = '_ossl_old_des_options'; } {Do not localize} - {CH fn__ossl_old_des_ecb3_encrypt = '_ossl_old_des_ecb3_encrypt'; } {Do not localize} - {CH fn__ossl_old_des_cbc_cksum = '_ossl_old_des_cbc_cksum'; } {Do not localize} - {CH fn__ossl_old_des_cbc_encrypt = '_ossl_old_des_cbc_encrypt'; } {Do not localize} - {CH fn__ossl_old_des_ncbc_encrypt = '_ossl_old_des_ncbc_encrypt'; } {Do not localize} - {CH fn__ossl_old_des_xcbc_encrypt = '_ossl_old_des_xcbc_encrypt'; } {Do not localize} - {CH fn__ossl_old_des_cfb_encrypt = '_ossl_old_des_cfb_encrypt'; } {Do not localize} - fn__ossl_old_des_ecb_encrypt = '_ossl_old_des_ecb_encrypt'; {Do not localize} - {CH fn__ossl_old_des_encrypt = '_ossl_old_des_encrypt'; } {Do not localize} - {CH fn__ossl_old_des_encrypt2 = '_ossl_old_des_encrypt2'; } {Do not localize} - {CH fn__ossl_old_des_encrypt3 = '_ossl_old_des_encrypt3'; } {Do not localize} - {CH fn__ossl_old_des_decrypt3 = '_ossl_old_des_decrypt3'; } {Do not localize} - {CH fn__ossl_old_des_ede3_cbc_encrypt = '_ossl_old_des_ede3_cbc_encrypt'; } {Do not localize} - {CH fn__ossl_old_des_ede3_cfb64_encrypt = '_ossl_old_des_ede3_cfb64_encrypt'; } {Do not localize} - {CH fn__ossl_old_des_ede3_ofb64_encrypt = '_ossl_old_des_ede3_ofb64_encrypt'; } {Do not localize} - {$IFDEF USE_THIS} - {CH fn__ossl_old_des_xwhite_in2out = '_ossl_old_des_xwhite_in2out'; } {Do not localize} - {$ENDIF} - {CH fn__ossl_old_des_enc_read = '_ossl_old_des_enc_read'; } {Do not localize} - {CH fn__ossl_old_des_enc_write = '_ossl_old_des_enc_write'; } {Do not localize} - {CH fn__ossl_old_des_fcrypt = '_ossl_old_des_fcrypt'; } {Do not localize} - {CH fn__ossl_old_des_crypt = '_ossl_old_des_crypt'; } {Do not localize} - {$IFNDEF PERL5} - {$IFNDEF NeXT} - {CH fn__ossl_old_crypt = '_ossl_old_crypt'; } {Do not localize} - {$ENDIF} - {$ENDIF} - {CH fn__ossl_old_des_ofb_encrypt = '_ossl_old_des_ofb_encrypt'; } {Do not localize} - {CH fn__ossl_old_des_pcbc_encrypt = '_ossl_old_des_pcbc_encrypt'; } {Do not localize} - {CH fn__ossl_old_des_quad_cksum = '_ossl_old_des_quad_cksum'; } {Do not localize} - {CH fn__ossl_old_des_random_seed = '_ossl_old_des_random_seed'; } {Do not localize} - {CH fn__ossl_old_des_random_key = '_ossl_old_des_random_key'; } {Do not localize} - {CH fn__ossl_old_des_read_password = '_ossl_old_des_read_password'; } {Do not localize} - {CH fn__ossl_old_des_read_2passwords = '_ossl_old_des_read_2passwords'; } {Do not localize} - fn__ossl_old_des_set_odd_parity = '_ossl_old_des_set_odd_parity'; {Do not localize} - {CH fn__ossl_old_des_is_weak_key = '_ossl_old_des_is_weak_key'; } {Do not localize} - fn__ossl_old_des_set_key = '_ossl_old_des_set_key'; {Do not localize} - {CH fn__ossl_old_des_key_sched = '_ossl_old_des_key_sched'; } {Do not localize} - {CH fn__ossl_old_des_string_to_key = '_ossl_old_des_string_to_key'; } {Do not localize} - {CH fn__ossl_old_des_string_to_2keys = '_ossl_old_des_string_to_2keys'; } {Do not localize} - {CH fn__ossl_old_des_cfb64_encrypt = '_ossl_old_des_cfb64_encrypt'; } {Do not localize} - {CH fn__ossl_old_des_ofb64_encrypt = '_ossl_old_des_ofb64_encrypt'; } {Do not localize} - {CH fn__ossl_096_des_random_seed = '_ossl_096_des_random_seed'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_RC4} - {CH fn_RC4_options = 'RC4_options'; } {Do not localize} - {$IFDEF OPENSSL_FIPS} - {CH private_RC4_set_key = 'private_RC4_set_key'; } {Do not localize} - {$ENDIF} - {CH fn_RC4_set_key = 'RC4_set_key'; } {Do not localize} - {CH fn_RC4 = 'RC4'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_RC2} - {$IFDEF OPENSSL_FIPS} - {CH fn_private_RC2_set_key = 'private_RC2_set_key'; } {Do not localize} - {$ENDIF} - {CH fn_RC2_set_key = 'RC2_set_key'; } {Do not localize} - {CH fn_RC2_ecb_encrypt = 'RC2_ecb_encrypt'; } {Do not localize} - {CH fn_RC2_encrypt = 'RC2_encrypt'; } {Do not localize} - {CH fn_RC2_decrypt = 'RC2_decrypt'; } {Do not localize} - {CH fn_RC2_cbc_encrypt = 'RC2_cbc_encrypt'; } {Do not localize} - {CH fn_RC2_cfb64_encrypt = 'RC2_cfb64_encrypt'; } {Do not localize} - {CH fn_RC2_ofb64_encrypt = 'RC2_ofb64_encrypt'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_RC5} - {CH fn_RC5_32_set_key = 'RC5_32_set_key'; } {Do not localize} - {CH fn_RC5_32_ecb_encrypt = 'RC5_32_ecb_encrypt'; } {Do not localize} - {CH fn_RC5_32_encrypt = 'RC5_32_encrypt'; } {Do not localize} - {CH fn_RC5_32_decrypt = 'RC5_32_decrypt'; } {Do not localize} - {CH fn_RC5_32_cbc_encrypt = 'RC5_32_cbc_encrypt'; } {Do not localize} - {CH fn_RC5_32_cfb64_encrypt = 'RC5_32_cfb64_encrypt'; } {Do not localize} - {CH fn_RC5_32_ofb64_encrypt = 'RC5_32_ofb64_encrypt'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_BF} - {$IFDEF FIPS} - {CH fn_private_BF_set_key = 'private_BF_set_key'; } {Do not localize} - {$ENDIF} - {CH fn_BF_set_key = 'BF_set_key'; } {Do not localize} - {CH fn_BF_ecb_encrypt = 'BF_ecb_encrypt'; } {Do not localize} - {CH fn_BF_encrypt = 'BF_encrypt'; } {Do not localize} - {CH fn_BF_decrypt = 'BF_decrypt'; } {Do not localize} - {CH fn_BF_cbc_encrypt = 'BF_cbc_encrypt'; } {Do not localize} - {CH fn_BF_cfb64_encrypt = 'BF_cfb64_encrypt'; } {Do not localize} - {CH fn_BF_ofb64_encrypt = 'BF_ofb64_encrypt'; } {Do not localize} - {CH fn_BF_options = 'BF_options'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_CAST} - {$IFDEF OPENSSL_FIPS} - {CH fn_private_CAST_set_key = 'private_CAST_set_key'; } {Do not localize} - {$ENDIF} - {CH fn_CAST_set_key = 'CAST_set_key'; } {Do not localize} - {CH fn_CAST_ecb_encrypt = 'CAST_ecb_encrypt'; } {Do not localize} - {CH fn_CAST_encrypt = 'CAST_encrypt'; } {Do not localize} - {CH fn_CAST_decrypt = 'CAST_decrypt'; } {Do not localize} - {CH fn_CAST_cbc_encrypt = 'CAST_cbc_encrypt'; } {Do not localize} - {CH fn_CAST_cfb64_encrypt = 'CAST_cfb64_encrypt'; } {Do not localize} - {CH fn_CAST_ofb64_encrypt = 'CAST_ofb64_encrypt'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_IDEA} - {CH fn_idea_options = 'idea_options'; } {Do not localize} - {CH fn_idea_ecb_encrypt = 'idea_ecb_encrypt'; } {Do not localize} - {CH fn_idea_set_encrypt_key = 'idea_set_encrypt_key'; } {Do not localize} - {CH fn_idea_set_decrypt_key = 'idea_set_decrypt_key'; } {Do not localize} - {CH fn_idea_cbc_encrypt = 'idea_cbc_encrypt'; } {Do not localize} - {CH fn_idea_cfb64_encrypt = 'idea_cfb64_encrypt'; } {Do not localize} - {CH fn_idea_ofb64_encrypt = 'idea_ofb64_encrypt'; } {Do not localize} - {CH fn_idea_encrypt = 'idea_encrypt'; } {Do not localize} - {$IFDEF OPENSSL_FIPS} - {CH fn_private_idea_set_encrypt_key = 'private_idea_set_encrypt_key'; } {Do not localize} - {$ENDIF} - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD2} - {CH fn_MDC2_Init = 'MDC2_Init'; } {Do not localize} - {CH fn_MDC2_Update = 'MDC2_Update'; } {Do not localize} - {CH fn_MDC2_Final = 'MDC2_Final'; } {Do not localize} - {CH fn_MDC2 = 'MDC2'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_RSA} - fn_RSA_new = 'RSA_new'; {Do not localize} - {CH fn_RSA_new_method = 'RSA_new_method'; } {Do not localize} - fn_RSA_size = 'RSA_size'; {Do not localize} - fn_RSA_generate_key = 'RSA_generate_key'; {Do not localize} - fn_RSA_generate_key_ex = 'RSA_generate_key_ex'; {Do not localize} - {CH fn_RSA_X931_derive_ex = 'RSA_X931_derive_ex'; } {Do not localize} - {CH fn_RSA_X931_generate_key_ex = 'RSA_X931_generate_key_ex'; } {Do not localize} - fn_RSA_check_key = 'RSA_check_key'; {Do not localize} - fn_RSA_public_encrypt = 'RSA_public_encrypt'; {Do not localize} - {CH fn_RSA_private_encrypt = 'RSA_private_encrypt'; } {Do not localize} - {CH fn_RSA_public_decrypt = 'RSA_public_decrypt'; } {Do not localize} - fn_RSA_private_decrypt = 'RSA_private_decrypt'; {Do not localize} - fn_RSA_free = 'RSA_free'; {Do not localize} - {CH fn_RSA_flags = 'RSA_flags'; } {Do not localize} - {$IFDEF OPENSSL_FIPS} - {CH fn_FIPS_rsa_new = 'FIPS_rsa_new'; } {Do not localize} - {CH fn_FIPS_rsa_free = 'FIPS_rsa_free'; } {Do not localize} - {$ENDIF} - {CH fn_RSA_set_default_method = 'RSA_set_default_method'; } {Do not localize} - {CH fn_RSA_get_default_method = 'RSA_get_default_method'; } {Do not localize} - {CH fn_RSA_get_method = 'RSA_get_method'; } {Do not localize} - {CH fn_RSA_set_method = 'RSA_set_method'; } {Do not localize} - {CH fn_RSA_memory_lock = 'RSA_memory_lock'; } {Do not localize} - {CH fn_RSA_PKCS1_SSLeay = 'RSA_PKCS1_SSLeay'; } {Do not localize} - {CH fn_ERR_load_RSA_strings = 'ERR_load_RSA_strings'; } {Do not localize} - fn_d2i_RSAPublicKey = 'd2i_RSAPublicKey'; {Do not localize} - fn_i2d_RSAPublicKey = 'i2d_RSAPublicKey'; {Do not localize} - fn_d2i_RSAPrivateKey = 'd2i_RSAPrivateKey'; {Do not localize} - fn_i2d_RSAPrivateKey = 'i2d_RSAPrivateKey'; {Do not localize} - {$IFNDEF OPENSSL_NO_FP_API} - {CH fn_RSA_print_fp = 'RSA_print_fp'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_BIO} - {CH fn_RSA_print = 'RSA_print'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_RC4} - {CH fn_i2d_RSA_NET = 'i2d_RSA_NET'; }{Do not localize} - {CH fn_d2i_RSA_NET = 'd2i_RSA_NET'; }{Do not localize} - {CH fn_i2d_Netscape_RSA = 'i2d_Netscape_RSA'; } {Do not localize} - {CH fn_d2i_Netscape_RSA = 'd2i_Netscape_RSA'; } {Do not localize} - {$ENDIF} - {CH fn_d2i_Netscape_RSA_2 = 'd2i_Netscape_RSA_2'; } {Do not localize} - {CH fn_RSA_sign = 'RSA_sign'; } {Do not localize} - {CH fn_RSA_verify = 'RSA_verify'; } {Do not localize} - {CH fn_RSA_sign_ASN1_OCTET_STRING = 'RSA_sign_ASN1_OCTET_STRING'; } {Do not localize} - {CH fn_RSA_verify_ASN1_OCTET_STRING = 'RSA_verify_ASN1_OCTET_STRING'; } {Do not localize} - {CH fn_RSA_blinding_on = 'RSA_blinding_on'; } {Do not localize} - {CH fn_RSA_blinding_off = 'RSA_blinding_off'; } {Do not localize} - {CH fn_RSA_padding_add_PKCS1_type_1 = 'RSA_padding_add_PKCS1_type_1'; } {Do not localize} - {CH fn_RSA_padding_check_PKCS1_type_1 = 'RSA_padding_check_PKCS1_type_1'; } {Do not localize} - {CH fn_RSA_padding_add_PKCS1_type_2 = 'RSA_padding_add_PKCS1_type_2'; } {Do not localize} - {CH fn_RSA_padding_check_PKCS1_type_2 = 'RSA_padding_check_PKCS1_type_2'; } {Do not localize} - {CH fn_RSA_padding_add_PKCS1_OAEP = 'RSA_padding_add_PKCS1_OAEP'; } {Do not localize} - {CH fn_RSA_padding_check_PKCS1_OAEP = 'RSA_padding_check_PKCS1_OAEP'; } {Do not localize} - {CH fn_RSA_padding_add_SSLv23 = 'RSA_padding_add_SSLv23'; } {Do not localize} - {CH fn_RSA_padding_check_SSLv23 = 'RSA_padding_check_SSLv23'; } {Do not localize} - {CH fn_RSA_padding_add_none = 'RSA_padding_add_none'; } {Do not localize} - {CH fn_RSA_padding_check_none = 'RSA_padding_check_none'; } {Do not localize} - {CH fn_RSA_get_ex_new_index = 'RSA_get_ex_new_index'; } {Do not localize} - {CH fn_RSA_set_ex_data = 'RSA_set_ex_data'; } {Do not localize} - {CH fn_RSA_get_ex_data = 'RSA_get_ex_data'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_DH} - {CH fn_DH_OpenSSL = 'DH_OpenSSL'; } {Do not localize} - {CH fn_DH_set_default_method = 'DH_set_default_method'; } {Do not localize} - {CH fn_DH_set_method = 'DH_set_method'; } {Do not localize} - {CH fn_DH_new_method = 'DH_new_method'; } {Do not localize} - {CH fn_DH_new = 'DH_new'; } {Do not localize} - {CH fn_DH_up_ref = 'DH_up_ref'; } {Do not localize} - fn_DH_free = 'DH_free'; {Do not localize} - {CH fn_DH_size = 'DH_size'; } {Do not localize} - {$IFNDEF OPENSSL_NO_DEPRECATED} - {CH fn_DH_generate_parameters = 'DH_generate_parameters'; } {Do not localize} - {$ENDIF} - {CH fn_DH_generate_parameters_ex = 'DH_generate_parameters_ex'; } {Do not localize} - {CH fn_DH_get_ex_new_index = 'DH_get_ex_new_index'; } {Do not localize} - {CH fn_DH_set_ex_data = 'DH_set_ex_data'; } {Do not localize} - {CH fn_DH_get_ex_data = 'DH_get_ex_data'; } {Do not localize} - {CH fn_DH_check = 'DH_check'; } {Do not localize} - {CH fn_DH_check_pub_key = 'DH_check_pub_key'; } {Do not localize} - {CH fn_DH_generate_key = 'DH_generate_key'; } {Do not localize} - {CH fn_DH_compute_key = 'DH_compute_key'; } {Do not localize} - fn_d2i_DHparams = 'd2i_DHparams'; {Do not localize} - fn_i2d_DHparams = 'i2d_DHparams'; {Do not localize} - {CH fn_DH_OpenSSL = 'DH_OpenSSL'; } {Do not localize} - {$IFDEF OPENSSL_FIPS} - {CH fn_FIPS_dh_new = 'FIPS_dh_new'; } {Do not localize} - {CH fn_FIPS_dh_free = 'FIPS_dh_free'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_FP_API} - {CH fn_DHparams_print_fp = 'DHparams_print_fp'; } {Do not localize} - {$ENDIF} - {CH fn_DHparams_print = 'DHparams_print'; } {Do not localize} - {$ENDIF} - {CH fn_ERR_load_DH_strings = 'ERR_load_DH_strings'; } {Do not localize} - {$IFNDEF OPENSSL_NO_DSA} - {CH fn_DSA_SIG_new = 'DSA_SIG_new'; } {Do not localize} - {CH fn_DSA_SIG_free = 'DSA_SIG_free'; } {Do not localize} - {CH fn_i2d_DSA_SIG = 'i2d_DSA_SIG'; } {Do not localize} - {CH fn_d2i_DSA_SIG = 'd2i_DSA_SIG'; } {Do not localize} - {CH fn_DSA_do_sign = 'DSA_do_sign'; } {Do not localize} - {CH fn_DSA_do_verify = 'DSA_do_verify'; } {Do not localize} - {$IFDEF OPENSSL_FIPS} - {CH fn_FIPS_dsa_new = 'FIPS_dsa_new'; } {Do not localize} - {CH fn_FIPS_dsa_free = 'FIPS_dsa_free'; } {Co not localize} - {$ENDIF} - {CH fn_DSA_new = 'DSA_new'; } {Do not localize} - {CH fn_DSA_size = 'DSA_size'; } {Do not localize} - {CH fn_DSA_sign_setup = 'DSA_sign_setup'; } {Do not localize} - {CH fn_DSA_sign = 'DSA_sign'; } {Do not localize} - {CH fn_DSA_verify = 'DSA_verify'; } {Do not localize} - {CH fn_DSA_free = 'DSA_free'; } {Do not localize} - {CH fn_ERR_load_DSA_strings = 'ERR_load_DSA_strings'; } {Do not localize} - - {$IFNDEF OPENSSL_NO_DEPRECATED} - {CH fn_DSA_generate_parameters = 'DSA_generate_parameters'; } {Do not localize} - {$ENDIF} - {CH fn_DSA_generate_parameters_ex = 'DSA_generate_parameters_ex'; } {Do not localize} - {CH fn_DSA_generate_key = 'DSA_generate_key'; } {Do not localize} - fn_d2i_DSAPublicKey = 'd2i_DSAPublicKey'; {Do not localize} - fn_i2d_DSAPublicKey = 'i2d_DSAPublicKey'; {Do not localize} - fn_d2i_DSAPrivateKey = 'd2i_DSAPrivateKey'; {Do not localize} - fn_i2d_DSAPrivateKey = 'i2d_DSAPrivateKey'; {Do not localize} - fn_i2d_DSAparams = 'i2d_DSAparams'; {Do not localize} - fn_d2i_DSAparams = 'd2i_DSAparams'; {Do not localize} - {$IFNDEF OPENSSL_NO_BIO} - {CH fn_DSAparams_print = 'DSAparams_print'; } {Do not localize} - {CH fn_DSA_print = 'DSA_print'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_FP_API} - {CH fn_DSAparams_print_fp = 'DSAparams_print_fp'; } {Do not localize} - {CH fn_DSA_print_fp = 'DSA_print_fp'; } {Do not localize} - {$ENDIF} - {CH fn_DSA_is_prime = 'DSA_is_prime'; } {Do not localize} - {$IFNDEF OPENSSL_NO_DH} - {CH fn_DSA_dup_DH = 'DSA_dup_DH'; } {Do not localize} - {$ENDIF} - {$IFDEF OPENSSL_FIPS} - {CH fn_FIPS_dsa_sig_encode = 'FIPS_dsa_sig_encode'; } {Do not localize} - {CH fn_FIPS_dsa_sig_decode = 'FIPS_dsa_sig_decode'; } {Do not localize} - {$ENDIF} - {$ENDIF} - {$IFNDEF OPENSSL_NO_EC} - {CH fn_EC_GFp_simple_method = 'EC_GFp_simple_method'; } {Do not localize} - {CH fn_EC_GFp_mont_method = 'EC_GFp_mont_method'; } {Do not localize} - {CH fn_EC_GFp_nist_method = 'EC_GFp_nist_method'; } {Do not localize} - {CH fn_EC_GF2m_simple_method = 'EC_GF2m_simple_method'; } {Do not localize} - {CH fn_EC_GROUP_new = 'EC_GROUP_new'; } {Do not localize} - {CH fn_EC_GROUP_free = 'EC_GROUP_free'; } {Do not localize} - {CH fn_EC_GROUP_clear_free = 'EC_GROUP_clear_free'; } {Do not localize} - {CH fn_EC_GROUP_copy = 'EC_GROUP_copy'; } {Do not localize} - {CH fn_EC_GROUP_dup = 'EC_GROUP_dup'; } {Do not localize} - {CH fn_EC_GROUP_method_of = 'EC_GROUP_method_of'; } {Do not localize} - {CH fn_EC_METHOD_get_field_type = 'EC_METHOD_get_field_type'; } {Do not localize} - {CH fn_EC_GROUP_set_generator = 'EC_GROUP_set_generator'; } {Do not localize} - {CH fn_EC_GROUP_get0_generator = 'EC_GROUP_get0_generator'; } {Do not localize} - {CH fn_EC_GROUP_get_order = 'EC_GROUP_get_order'; } {Do not localize} - {CH fn_EC_GROUP_get_cofactor = 'EC_GROUP_get_cofactor'; } {Do not localize} - {CH fn_EC_GROUP_set_curve_name ='EC_GROUP_set_curve_name'; } {Do not localize} - {CH fn_EC_GROUP_get_curve_name = 'EC_GROUP_get_curve_name'; } {Do not localize} - {CH fn_EC_GROUP_set_asn1_flag = 'EC_GROUP_set_asn1_flag'; } {Do not localize} - {CH fn_EC_GROUP_get_asn1_flag = 'EC_GROUP_get_asn1_flag'; } {Do not localize} - {CH fn_EC_GROUP_set_point_conversion_form = 'EC_GROUP_set_point_conversion_form'; } {Do not localize} - {CH fn_EC_GROUP_get_point_conversion_form = 'EC_GROUP_get_point_conversion_form'; } {Do not localize} - {CH fn_EC_GROUP_get0_seed = 'EC_GROUP_get0_seed'; } {Do not localize} - {CH fn_EC_GROUP_get_seed_len = 'EC_GROUP_get_seed_len'; } {Do not localize} - {CH fn_EC_GROUP_set_seed = 'EC_GROUP_set_seed'; } {Do not localize} - {CH fn_EC_GROUP_set_curve_GFp = 'EC_GROUP_set_curve_GFp'; } {Do not localize} - {CH fn_EC_GROUP_get_curve_GFp = 'EC_GROUP_get_curve_GFp'; } {Do not localize} - {CH fn_EC_GROUP_set_curve_GF2m = 'EC_GROUP_set_curve_GF2m'; } {Do not localize} - {CH fn_EC_GROUP_get_curve_GF2m = 'EC_GROUP_get_curve_GF2m'; } {Do not localize} - {CH fn_EC_GROUP_get_degree = 'EC_GROUP_get_degree'; } {Do not localize} - {CH fn_EC_GROUP_check = 'EC_GROUP_check'; } {Do not localize} - {CH fn_EC_GROUP_check_discriminant = 'EC_GROUP_check_discriminant'; } {Do not localize} - {CH fn_EC_GROUP_cmp = 'EC_GROUP_cmp'; } {Do not localize} - {CH fn_EC_GROUP_new_curve_GFp = 'EC_GROUP_new_curve_GFp'; } {Do not localize} - {CH fn_EC_GROUP_new_curve_GF2m = 'EC_GROUP_new_curve_GF2m'; } {Do not localize} - {CH fn_EC_GROUP_new_by_curve_name = 'EC_GROUP_new_by_curve_name'; } {Do not localize} - {CH fn_EC_get_builtin_curves = 'EC_get_builtin_curves'; } {Do not localize} - {CH fn_EC_POINT_new = 'EC_POINT_new'; } {Do not localize} - {CH fn_EC_POINT_free = 'EC_POINT_free'; } {Do not localize} - {CH fn_EC_POINT_clear_free = 'EC_POINT_clear_free'; } {Do not localize} - {CH fn_EC_POINT_copy = 'EC_POINT_copy'; } {Do not localize} - {CH fn_EC_POINT_dup = 'EC_POINT_dup'; } {Do not localize} - {CH fn_EC_POINT_method_of = 'EC_POINT_method_of'; } {Do not localize} - {CH fn_EC_POINT_set_to_infinity = 'EC_POINT_set_to_infinity'; } {Do not localize} - {CH fn_EC_POINT_set_Jprojective_coordinates_GFp = 'EC_POINT_set_Jprojective_coordinates_GFp'; } {Do not localize} - {CH fn_EC_POINT_get_Jprojective_coordinates_GFp = 'EC_POINT_get_Jprojective_coordinates_GFp'; } {Do not localize} - {CH fn_EC_POINT_set_affine_coordinates_GFp = 'EC_POINT_set_affine_coordinates_GFp'; } {Do not localize} - {CH fn_EC_POINT_get_affine_coordinates_GFp = 'EC_POINT_get_affine_coordinates_GFp'; } {Do not localize} - {CH fn_EC_POINT_set_compressed_coordinates_GFp = 'EC_POINT_set_compressed_coordinates_GFp'; } {Do not localize} - {CH fn_EC_POINT_set_affine_coordinates_GF2m = 'EC_POINT_set_affine_coordinates_GF2m'; } {Do not localize} - {CH fn_EC_POINT_set_compressed_coordinates_GF2m = 'EC_POINT_set_compressed_coordinates_GF2m'; } {Do not localize} - {CH fn_EC_POINT_point2oct = 'EC_POINT_point2oct'; } {Do not localize} - {CH fn_EC_POINT_oct2point = 'EC_POINT_oct2point'; } {Do not localize} - {CH fn_EC_POINT_point2bn = 'EC_POINT_point2bn'; } {Do not localize} - {CH fn_EC_POINT_bn2point = 'EC_POINT_bn2point'; } {Do not localize} - {CH fn_EC_POINT_point2hex = 'EC_POINT_point2hex'; } {Do not localize} - {CH fn_EC_POINT_hex2point = 'EC_POINT_hex2point'; } {Do not localize} - {CH fn_EC_POINT_add = 'EC_POINT_add'; } {Do not localize} - {CH fn_EC_POINT_dbl = 'EC_POINT_dbl'; } {Do not localize} - {CH fn_EC_POINT_invert = 'EC_POINT_invert'; } {Do not localize} - {CH fn_EC_POINT_is_at_infinity = 'EC_POINT_is_at_infinity'; } {Do not localize} - {CH fn_EC_POINT_is_on_curve = 'EC_POINT_is_on_curve'; } {Do not localize} - {CH fn_EC_POINT_cmp = 'EC_POINT_cmp'; } {Do not localize} - {CH fn_EC_POINT_make_affine = 'EC_POINT_make_affine'; } {Do not localize} - {CH fn_EC_POINTs_make_affine = 'EC_POINTs_make_affine'; } {Do not localize} - {CH fn_EC_POINTs_mul = 'EC_POINTs_mul'; } {Do not localize} - {CH fn_EC_POINT_mul = 'EC_POINT_mul'; } {Do not localize} - {CH fn_EC_GROUP_precompute_mult = 'EC_GROUP_precompute_mult'; } {Do not localize} - {CH fn_EC_GROUP_have_precompute_mult = 'EC_GROUP_have_precompute_mult'; } {Do not localize} - {CH fn_EC_GROUP_get_basis_type = 'EC_GROUP_get_basis_type'; } {Do not localize} - {CH fn_EC_GROUP_get_trinomial_basis = 'EC_GROUP_get_trinomial_basis'; } {Do not localize} - {CH fn_EC_GROUP_get_pentanomial_basis = 'EC_GROUP_get_pentanomial_basis'; } {Do not localize} - {CH fn_d2i_ECPKParameters = 'd2i_ECPKParameters'; } {Do not localize} - {CH fn_i2d_ECPKParameters = 'i2d_ECPKParameters'; } {Do not localize} - {$IFNDEF OPENSSL_NO_BIO} - {CH fn_ECPKParameters_print = 'ECPKParameters_print'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_FP_API} - {CH fn_ECPKParameters_print_fp = 'ECPKParameters_print_fp'; } {Do not localize} - {$ENDIF} - {CH fn_EC_KEY_new = 'EC_KEY_new'; } {Do not localize} - {CH fn_EC_KEY_new_by_curve_name = 'EC_KEY_new_by_curve_name'; } {Do not localize} - {CH fn_EC_KEY_free = 'EC_KEY_free'; } {Do not localize} - {CH fn_EC_KEY_copy = 'EC_KEY_copy'; } {Do not localize} - {CH fn_EC_KEY_dup = 'EC_KEY_dup'; } {Do not localize} - {CH fn_EC_KEY_up_ref = 'EC_KEY_up_ref'; } {Do not localize} - {CH fn_EC_KEY_get0_group = 'EC_KEY_get0_group'; } {Do not localize} - {CH fn_EC_KEY_set_group = 'EC_KEY_set_group'; } {Do not localize} - {CH fn_EC_KEY_get0_private_key = 'EC_KEY_get0_private_key'; } {Do not localize} - {CH fn_EC_KEY_set_private_key = 'EC_KEY_set_private_key'; } {Do not localize} - {CH fn_EC_KEY_get0_public_key = 'EC_KEY_get0_public_key'; } {Do not localize} - {CH fn_EC_KEY_set_public_key = 'EC_KEY_set_public_key'; } {Do not localize} - {CH fn_EC_KEY_get_enc_flags = 'EC_KEY_get_enc_flags'; } {Do not localize} - {CH fn_EC_KEY_set_enc_flags = 'EC_KEY_set_enc_flags'; } {Do not localize} - {CH fn_EC_KEY_get_conv_form = 'EC_KEY_get_conv_form'; } {Do not localize} - {CH fn_EC_KEY_set_conv_form = 'EC_KEY_set_conv_form'; } {Do not localize} - {CH fn_EC_KEY_get_key_method_data = 'EC_KEY_get_key_method_data'; } {Do not localize} - {CH fn_EC_KEY_insert_key_method_data = 'EC_KEY_insert_key_method_data'; } {Do not localize} - {CH fn_EC_KEY_set_asn1_flag = 'EC_KEY_set_asn1_flag'; } {Do not localize} - {CH fn_EC_KEY_precompute_mult = 'EC_KEY_precompute_mult'; } {Do not localize} - {CH fn_EC_KEY_generate_key = 'EC_KEY_generate_key'; } {Do not localize} - {CH fn_EC_KEY_check_key = 'EC_KEY_check_key'; } {Do not localize} - {CH fn_d2i_ECPrivateKey = 'd2i_ECPrivateKey'; } {Do not localize} - {CH fn_i2d_ECPrivateKey = 'i2d_ECPrivateKey'; } {Do not localize} - {CH fn_d2i_ECParameters = 'd2i_ECParameters'; } {Do not localize} - {CH fn_i2d_ECParameters = 'i2d_ECParameters'; } {Do not localize} - {CH fn_o2i_ECPublicKey = 'o2i_ECPublicKey'; } {Do not localize} - {CH fn_i2o_ECPublicKey = 'i2o_ECPublicKey'; } {Do not localize} - {$IFNDEF OPENSSL_NO_BIO} - {CH fn_ECParameters_print = 'ECParameters_print'; } {Do not localize} - {CH fn_EC_KEY_print = 'EC_KEY_print'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_FP_API} - {CH fn_ECParameters_print_fp = 'ECParameters_print_fp'; } {Do not localize} - {CH fn_EC_KEY_print_fp = 'EC_KEY_print_fp'; } {Do not localize} - {$ENDIF} - {$ENDIF} - {$IFNDEF OPENSSL_NO_ECDSA} - {CH fn_ECDSA_SIG_new = 'ECDSA_SIG_new'; } {Do not localize} - {CH fn_ECDSA_SIG_free = 'ECDSA_SIG_free'; } {Do not localize} - {CH fn_i2d_ECDSA_SIG = 'i2d_ECDSA_SIG'; } {Do not localize} - {CH fn_d2i_ECDSA_SIG = 'd2i_ECDSA_SIG'; } {Do not localize} - {CH fn_ECDSA_do_sign = 'ECDSA_do_sign'; } {Do not localize} - {CH fn_ECDSA_do_sign_ex = 'ECDSA_do_sign_ex'; } {Do not localize} - {CH fn_ECDSA_do_verify = 'ECDSA_do_verify'; } {Do not localize} - {CH fn_ECDSA_OpenSSL = 'ECDSA_OpenSSL'; } {Do not localize} - {CH fn_ECDSA_set_default_method = 'ECDSA_set_default_method'; } {Do not localize} - {CH fn_ECDSA_get_default_method = 'ECDSA_get_default_method'; } {Do not localize} - {CH fn_ECDSA_set_method = 'ECDSA_set_method'; } {Do not localize} - {CH fn_ECDSA_size = 'ECDSA_size'; } {Do not localize} - {CH fn_ECDSA_sign_setup = 'ECDSA_sign_setup'; } {Do not localize} - {CH fn_ECDSA_sign = 'ECDSA_sign'; } {Do not localize} - {CH fn_ECDSA_sign_ex = 'ECDSA_sign_ex'; } {Do not localize} - {CH fn_ECDSA_verify = 'ECDSA_verify'; } {Do not localize} - {CH fn_ECDSA_get_ex_new_index = 'ECDSA_get_ex_new_index'; } {Do not localize} - {CH fn_ECDSA_set_ex_data = 'ECDSA_set_ex_data'; } {Do not localize} - {CH fn_ECDSA_get_ex_data = 'ECDSA_get_ex_data'; } {Do not localize} - {CH fn_ERR_load_ECDSA_strings = 'ERR_load_ECDSA_strings'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_ECDH} - {CH fn_ECDH_OpenSSL = 'ECDH_OpenSSL'; } {Do not localize} - {CH fn_ECDH_set_default_method = 'ECDH_set_default_method'; } {Do not localize} - {CH fn_ECDH_get_default_method = 'ECDH_get_default_method'; } {Do not localize} - {CH fn_ECDH_set_method = 'ECDH_set_method'; } {Do not localize} - {CH fn_ECDH_compute_key = 'ECDH_compute_key'; } {Do not localize} - {CH fn_ECDH_get_ex_new_index = 'ECDH_get_ex_new_index'; } {Do not localize} - {CH fn_ECDH_set_ex_data = 'ECDH_set_ex_data'; } {Do not localize} - {CH fn_ECDH_get_ex_data = 'ECDH_get_ex_data'; } {Do not localize} - {CH fn_ERR_load_ECDH_strings = 'ERR_load_ECDH_strings'; } {Do not localize} - {$ENDIF} - {CH fn_BN_value_one = 'BN_value_one'; } {Do not localize} - {CH fn_BN_options = 'BN_options'; } {Do not localize} - {CH fn_BN_CTX_new = 'BN_CTX_new'; } {Do not localize} - {$IFNDEF OPENSSL_NO_DEPRECATED} - {CH fn_BN_CTX_init = 'BN_CTX_init'; } {Do not localize} - {$ENDIF} - {CH fn_BN_CTX_free = 'BN_CTX_free'; } {Do not localize} - {CH fn_BN_rand = 'BN_rand'; } {Do not localize} - {CH fn_BN_pseudo_rand = 'BN_pseudo_rand'; } {Do not localize} - {CH fn_BN_rand_range = 'BN_rand_range'; } {Do not localize} - {CH fn_BN_pseudo_rand_range = 'BN_pseudo_rand_range'; } {Do not localize} - {CH fn_BN_num_bits = 'BN_num_bits'; } {Do not localize} - {CH fn_BN_num_bits_word = 'BN_num_bits_word'; } {Do not localize} - fn_BN_new = 'BN_new'; {Do not localize} - {CH fn_BN_init = 'BN_init'; } {Do not localize} - {CH fn_BN_clear_free = 'BN_clear_free'; } {Do not localize} - {CH fn_BN_copy = 'BN_copy'; } {Do not localize} - {CH fn_BN_bin2bn = 'BN_bin2bn'; } {Do not localize} - {CH fn_BN_bn2bin = 'BN_bn2bin'; } {Do not localize} - {CH fn_BN_mpi2bn = 'BN_mpi2bn'; } {Do not localize} - {CH fn_BN_bn2mpi = 'BN_bn2mpi'; } {Do not localize} - {CH fn_BN_sub = 'BN_sub'; } {Do not localize} - {CH fn_BN_usub = 'BN_usub'; } {Do not localize} - {CH fn_BN_uadd = 'BN_uadd'; } {Do not localize} - {CH fn_BN_add = 'BN_add'; } {Do not localize} - {CH fn_BN_mod = 'BN_mod'; } {Do not localize} - {CH fn_BN_div = 'BN_div'; } {Do not localize} - {CH fn_BN_mul = 'BN_mul'; } {Do not localize} - {CH fn_BN_sqr = 'BN_sqr'; } {Do not localize} - {CH fn_BN_mod_word = 'BN_mod_word'; } {Do not localize} - {CH fn_BN_div_word = 'BN_div_word'; } {Do not localize} - {CH fn_BN_mul_word = 'BN_mul_word'; } {Do not localize} - {CH fn_BN_add_word = 'BN_add_word'; } {Do not localize} - {CH fn_BN_sub_word = 'BN_sub_word'; } {Do not localize} - fn_BN_set_word = 'BN_set_word'; {Do not localize} - {CH fn_BN_get_word = 'BN_get_word'; } {Do not localize} - {CH fn_BN_cmp = 'BN_cmp'; } {Do not localize} - fn_BN_free = 'BN_free'; {Do not localize} - {CH fn_BN_is_bit_set = 'BN_is_bit_set'; } {Do not localize} - {CH fn_BN_lshift = 'BN_lshift'; } {Do not localize} - {CH fn_BN_lshift1 = 'BN_lshift1'; } {Do not localize} - {CH fn_BN_exp = 'BN_exp'; } {Do not localize} - {CH fn_BN_mod_exp = 'BN_mod_exp'; } {Do not localize} - {CH fn_BN_mod_exp_mont = 'BN_mod_exp_mont'; } {Do not localize} - {CH fn_BN_mod_exp2_mont = 'BN_mod_exp2_mont'; } {Do not localize} - {CH fn_BN_mod_exp_simple = 'BN_mod_exp_simple'; } {Do not localize} - {CH fn_BN_mask_bits = 'BN_mask_bits'; } {Do not localize} - {CH fn_BN_mod_mul = 'BN_mod_mul'; } {Do not localize} - {$IFNDEF OPENSSL_NO_FP_API} - {CH fn_BN_print_fp = 'BN_print_fp'; } {Do not localize} - {$ENDIF} - {CH fn_BN_print = 'BN_print'; } {Do not localize} - {CH fn_BN_reciprocal = 'BN_reciprocal'; } {Do not localize} - {CH fn_BN_rshift = 'BN_rshift'; } {Do not localize} - {CH fn_BN_rshift1 = 'BN_rshift1'; } {Do not localize} - {CH fn_BN_clear = 'BN_clear'; } {Do not localize} - {CH fn_bn_expand2 = 'bn_expand2'; } {Do not localize} - {CH fn_BN_dup = 'BN_dup'; } {Do not localize} - {CH fn_BN_ucmp = 'BN_ucmp'; } {Do not localize} - {CH fn_BN_set_bit = 'BN_set_bit'; } {Do not localize} - {CH fn_BN_clear_bit = 'BN_clear_bit'; } {Do not localize} - fn_BN_bn2hex = 'BN_bn2hex'; {Do not localize} - fn_BN_bn2dec = 'BN_bn2dec'; {Do not localize} - fn_BN_hex2bn = 'BN_hex2bn'; {Do not localize} - {CH fn_BN_dec2bn = 'BN_dec2bn'; } {Do not localize} - {CH fn_BN_gcd = 'BN_gcd'; } {Do not localize} - {CH fn_BN_mod_inverse = 'BN_mod_inverse'; } {Do not localize} - {$IFNDEF OPENSSL_NO_DEPRECATED} - {CH fn_BN_generate_prime = 'BN_generate_prime'; } {Do not localize} - {CH fn_BN_is_prime = 'BN_is_prime'; } {Do not localize} - {CH fn_BN_is_prime_fasttest = 'BN_is_prime_fasttest'; } {Do not localize} - {$ENDIF} - {CH fn_ERR_load_BN_strings = 'ERR_load_BN_strings'; } {Do not localize} - {CH fn_bn_mul_add_words = 'bn_mul_add_words'; } {Do not localize} - {CH fn_bn_mul_words = 'bn_mul_words'; } {Do not localize} - {CH fn_bn_sqr_words = 'bn_sqr_words'; } {Do not localize} - {CH fn_bn_div_words = 'bn_div_words'; } {Do not localize} - {CH fn_bn_add_words = 'bn_add_words'; } {Do not localize} - {CH fn_bn_sub_words = 'bn_sub_words'; } {Do not localize} - {CH fn_BN_MONT_CTX_new = 'BN_MONT_CTX_new'; } {Do not localize} - {CH fn_BN_MONT_CTX_init = 'BN_MONT_CTX_init'; } {Do not localize} - {CH fn_BN_mod_mul_montgomery = 'BN_mod_mul_montgomery'; } {Do not localize} - {CH fn_BN_from_montgomery = 'BN_from_montgomery'; } {Do not localize} - {CH fn_BN_MONT_CTX_free = 'BN_MONT_CTX_free'; } {Do not localize} - {CH fn_BN_MONT_CTX_set = 'BN_MONT_CTX_set'; } {Do not localize} - {CH fn_BN_MONT_CTX_copy = 'BN_MONT_CTX_copy'; } {Do not localize} - {CH fn_BN_BLINDING_new = 'BN_BLINDING_new'; } {Do not localize} - {CH fn_BN_BLINDING_free = 'BN_BLINDING_free'; } {Do not localize} - {CH fn_BN_BLINDING_update = 'BN_BLINDING_update'; } {Do not localize} - {CH fn_BN_BLINDING_convert = 'BN_BLINDING_convert'; } {Do not localize} - {CH fn_BN_BLINDING_invert = 'BN_BLINDING_invert'; } {Do not localize} - {$IFNDEF OPENSSL_NO_DEPRECATED} - {CH fn_BN_set_params = 'BN_set_params'; } {Do not localize} - {CH fn_BN_get_params = 'BN_get_params'; } {Do not localize} - {$ENDIF} - {CH fn_BN_RECP_CTX_init = 'BN_RECP_CTX_init'; } {Do not localize} - {CH fn_BN_RECP_CTX_new = 'BN_RECP_CTX_new'; } {Do not localize} - {CH fn_BN_RECP_CTX_free = 'BN_RECP_CTX_free'; } {Do not localize} - {CH fn_BN_RECP_CTX_set = 'BN_RECP_CTX_set'; } {Do not localize} - {CH fn_BN_mod_mul_reciprocal = 'BN_mod_mul_reciprocal'; } {Do not localize} - {CH fn_BN_mod_exp_recp = 'BN_mod_exp_recp'; } {Do not localize} - - {CH fn_BN_div_recp = 'BN_div_recp'; } {Do not localize} - {CH fn_BN_GF2m_add = 'BN_GF2m_add'; } {Do not localize} - {CH fn_BN_GF2m_mod = 'BN_GF2m_mod'; } {Do not localize} - {CH fn_BN_GF2m_mod_mul = 'BN_GF2m_mod_mul'; } {Do not localize} - {CH fn_BN_GF2m_mod_sqr = 'BN_GF2m_mod_sqr'; } {Do not localize} - {CH fn_BN_GF2m_mod_inv = 'BN_GF2m_mod_inv'; } {Do not localize} - {CH fn_BN_GF2m_mod_div = 'BN_GF2m_mod_div'; } {Do not localize} - {CH fn_BN_GF2m_mod_exp = 'BN_GF2m_mod_exp'; } {Do not localize} - {CH fn_BN_GF2m_mod_sqrt = 'BN_GF2m_mod_sqrt'; } {Do not localize} - {CH fn_BN_GF2m_mod_solve_quad = 'BN_GF2m_mod_solve_quad'; } {Do not localize} - {CH fn_BN_GF2m_mod_arr = 'BN_GF2m_mod_arr'; } {Do not localize} - {CH fn_BN_GF2m_mod_mul_arr = 'BN_GF2m_mod_mul_arr'; } {Do not localize} - {CH fn_BN_GF2m_mod_sqr_arr = 'BN_GF2m_mod_sqr_arr'; } {Do not localize} - {CH fn_BN_GF2m_mod_inv_arr = 'BN_GF2m_mod_inv_arr'; } {Do not localize} - {CH fn_BN_GF2m_mod_div_arr = 'BN_GF2m_mod_div_arr'; } {Do not localize} - {CH fn_BN_GF2m_mod_exp_arr = 'BN_GF2m_mod_exp_arr'; } {Do not localize} - {CH fn_BN_GF2m_mod_sqrt_arr = 'BN_GF2m_mod_sqrt_arr'; } {Do not localize} - {CH fn_BN_GF2m_mod_solve_quad_arr = 'BN_GF2m_mod_solve_quad_arr'; } {Do not localize} - {CH fn_BN_GF2m_poly2arr = 'BN_GF2m_poly2arr'; } {Do not localize} - {CH fn_BN_GF2m_arr2poly = 'BN_GF2m_arr2poly'; } {Do not localize} - // faster mod functions for the 'NIST primes' - // 0 <= a < p^2 - {CH fn_BN_nist_mod_192 = 'BN_nist_mod_192'; } {Do not localize} - {CH fn_BN_nist_mod_224 = 'BN_nist_mod_224'; } {Do not localize} - {CH fn_BN_nist_mod_256 = 'BN_nist_mod_256'; } {Do not localize} - {CH fn_BN_nist_mod_384 = 'BN_nist_mod_384'; } {Do not localize} - {CH fn_BN_nist_mod_521 = 'BN_nist_mod_521'; } {Do not localize} - {CH fn_BN_get0_nist_prime_192 = 'BN_get0_nist_prime_192'; } {Do not localize} - {CH fn_BN_get0_nist_prime_224 = 'BN_get0_nist_prime_224'; } {Do not localize} - {CH fn_BN_get0_nist_prime_256 = 'BN_get0_nist_prime_256'; } {Do not localize} - {CH fn_BN_get0_nist_prime_384 = 'BN_get0_nist_prime_384'; } {Do not localize} - {CH fn_BN_get0_nist_prime_521 = 'BN_get0_nist_prime_521'; } {Do not localize} - // - {CH fn_get_rfc2409_prime_768 = 'get_rfc2409_prime_768'; } {Do not localize} - {CH fn_get_rfc2409_prime_1024 = 'get_rfc2409_prime_1024'; } {Do not localize} - {CH fn_get_rfc3526_prime_1536 = 'get_rfc3526_prime_1536'; } {Do not localize} - {CH fn_get_rfc3526_prime_2048 = 'get_rfc3526_prime_2048'; } {Do not localize} - {CH fn_get_rfc3526_prime_3072 = 'get_rfc3526_prime_3072'; } {Do not localize} - {CH fn_get_rfc3526_prime_4096 = 'get_rfc3526_prime_4096'; } {Do not localize} - {CH fn_get_rfc3526_prime_6144 = 'get_rfc3526_prime_6144'; } {Do not localize} - {CH fn_get_rfc3526_prime_8192 = 'get_rfc3526_prime_8192'; } {Do not localize} - {CH fn_BN_bntest_rand = 'BN_bntest_rand'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_new = 'sk_ASN1_TYPE_new'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_new_null = 'sk_ASN1_TYPE_new_null'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_free = 'sk_ASN1_TYPE_free'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_num = 'sk_ASN1_TYPE_num'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_value = 'sk_ASN1_TYPE_value'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_set = 'sk_ASN1_TYPE_set'; } {Do not localize} - {CH fn_ASN1_TYPE_set1 = 'ASN1_TYPE_set1'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_zero = 'sk_ASN1_TYPE_zero'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_push = 'sk_ASN1_TYPE_push'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_unshift = 'sk_ASN1_TYPE_unshift'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_find = 'sk_ASN1_TYPE_find'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_delete = 'sk_ASN1_TYPE_delete'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_delete_ptr = 'sk_ASN1_TYPE_delete_ptr'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_insert = 'sk_ASN1_TYPE_insert'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_dup = 'sk_ASN1_TYPE_dup'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_pop_free = 'sk_ASN1_TYPE_pop_free'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_shift = 'sk_ASN1_TYPE_shift'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_pop = 'sk_ASN1_TYPE_pop'; } {Do not localize} - {CH fn_sk_ASN1_TYPE_sort = 'sk_ASN1_TYPE_sort'; } {Do not localize} - {CH fn_i2d_ASN1_SET_OF_ASN1_TYPE = 'i2d_ASN1_SET_OF_ASN1_TYPE'; } {Do not localize} - {CH fn_d2i_ASN1_SET_OF_ASN1_TYPE = 'd2i_ASN1_SET_OF_ASN1_TYPE'; } {Do not localize} - {CH fn_ASN1_TYPE_new = 'ASN1_TYPE_new'; } {Do not localize} - {CH fn_ASN1_TYPE_free = 'ASN1_TYPE_free'; } {Do not localize} - {CH fn_i2d_ASN1_TYPE = 'i2d_ASN1_TYPE'; } {Do not localize} - {CH fn_d2i_ASN1_TYPE = 'd2i_ASN1_TYPE'; } {Do not localize} - {CH fn_ASN1_TYPE_get = 'ASN1_TYPE_get'; } {Do not localize} - {CH fn_ASN1_TYPE_set = 'ASN1_TYPE_set'; } {Do not localize} - {CH fn_ASN1_TYPE_set1 = 'ASN1_TYPE_set1'; } {Do not localize} - {CH fn_ASN1_OBJECT_new = 'ASN1_OBJECT_new'; } {Do not localize} - {CH fn_ASN1_OBJECT_free = 'ASN1_OBJECT_free'; } {Do not localize} - {CH fn_i2d_ASN1_OBJECT = 'i2d_ASN1_OBJECT'; } {Do not localize} - {CH fn_d2i_ASN1_OBJECT = 'd2i_ASN1_OBJECT'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_new = 'sk_ASN1_OBJECT_new'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_new_null = 'sk_ASN1_OBJECT_new_null'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_free = 'sk_ASN1_OBJECT_free'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_num = 'sk_ASN1_OBJECT_num'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_value = 'sk_ASN1_OBJECT_value'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_set = 'sk_ASN1_OBJECT_set'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_zero = 'sk_ASN1_OBJECT_zero'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_push = 'sk_ASN1_OBJECT_push'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_unshift = 'sk_ASN1_OBJECT_unshift'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_find = 'sk_ASN1_OBJECT_find'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_delete = 'sk_ASN1_OBJECT_delete'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_delete_ptr = 'sk_ASN1_OBJECT_delete_ptr'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_insert = 'sk_ASN1_OBJECT_insert'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_dup = 'sk_ASN1_OBJECT_dup'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_pop_free = 'sk_ASN1_OBJECT_pop_free'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_shift = 'sk_ASN1_OBJECT_shift'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_pop = 'sk_ASN1_OBJECT_pop'; } {Do not localize} - {CH fn_sk_ASN1_OBJECT_sort = 'sk_ASN1_OBJECT_sort'; } {Do not localize} - {CH fn_i2d_ASN1_SET_OF_ASN1_OBJECT = 'i2d_ASN1_SET_OF_ASN1_OBJECT'; } {Do not localize} - {CH fn_d2i_ASN1_SET_OF_ASN1_OBJECT = 'd2i_ASN1_SET_OF_ASN1_OBJECT'; } {Do not localize} - {CH fn_ASN1_STRING_new = 'ASN1_STRING_new'; } {Do not localize} - fn_ASN1_STRING_free = 'ASN1_STRING_free'; {Do not localize} - {CH fn_ASN1_STRING_dup = 'ASN1_STRING_dup'; } {Do not localize} - fn_ASN1_STRING_type_new = 'ASN1_STRING_type_new'; {Do not localize} - {CH fn_ASN1_STRING_cmp = 'ASN1_STRING_cmp'; } {Do not localize} - {CH fn_ASN1_STRING_set = 'ASN1_STRING_set'; } {Do not localize} - {CH fn_ASN1_STRING_set0 = 'ASN1_STRING_set0'; } {Do not localize} - {CH fn_i2d_ASN1_BIT_STRING = 'i2d_ASN1_BIT_STRING'; } {Do not localize} - {CH fn_d2i_ASN1_BIT_STRING = 'd2i_ASN1_BIT_STRING'; } {Do not localize} - {CH fn_ASN1_BIT_STRING_set_bit = 'ASN1_BIT_STRING_set_bit'; } {Do not localize} - {CH fn_ASN1_BIT_STRING_get_bit = 'ASN1_BIT_STRING_get_bit'; } {Do not localize} - {CH fn_i2d_ASN1_BOOLEAN = 'i2d_ASN1_BOOLEAN'; } {Do not localize} - {CH fn_d2i_ASN1_BOOLEAN = 'd2i_ASN1_BOOLEAN'; } {Do not localize} - {CH fn_i2d_ASN1_INTEGER = 'i2d_ASN1_INTEGER'; } {Do not localize} - {CH fn_d2i_ASN1_INTEGER = 'd2i_ASN1_INTEGER'; } {Do not localize} - {CH fn_d2i_ASN1_UINTEGER = 'd2i_ASN1_UINTEGER'; } {Do not localize} - {CH fn_i2d_ASN1_ENUMERATED = 'i2d_ASN1_ENUMERATED'; } {Do not localize} - {CH fn_d2i_ASN1_ENUMERATED = 'd2i_ASN1_ENUMERATED'; } {Do not localize} - {CH fn_ASN1_UTCTIME_check = 'ASN1_UTCTIME_check'; } {Do not localize} - {CH fn_ASN1_UTCTIME_set = 'ASN1_UTCTIME_set'; } {Do not localize} - {CH fn_ASN1_UTCTIME_set_string = 'ASN1_UTCTIME_set_string'; } {Do not localize} - {CH fn_ASN1_GENERALIZEDTIME_check = 'ASN1_GENERALIZEDTIME_check'; } {Do not localize} - {CH fn_ASN1_GENERALIZEDTIME_set = 'ASN1_GENERALIZEDTIME_set'; } {Do not localize} - {CH fn_ASN1_GENERALIZEDTIME_set_string = 'ASN1_GENERALIZEDTIME_set_string'; } {Do not localize} - {CH fn_i2d_ASN1_OCTET_STRING = 'i2d_ASN1_OCTET_STRING'; } {Do not localize} - {CH fn_d2i_ASN1_OCTET_STRING = 'd2i_ASN1_OCTET_STRING'; } {Do not localize} - {CH fn_i2d_ASN1_VISIBLESTRING = 'i2d_ASN1_VISIBLESTRING'; } {Do not localize} - {CH fn_d2i_ASN1_VISIBLESTRING = 'd2i_ASN1_VISIBLESTRING'; } {Do not localize} - {CH fn_i2d_ASN1_UTF8STRING = 'i2d_ASN1_UTF8STRING'; } {Do not localize} - {CH fn_d2i_ASN1_UTF8STRING = 'd2i_ASN1_UTF8STRING'; } {Do not localize} - {CH fn_i2d_ASN1_BMPSTRING = 'i2d_ASN1_BMPSTRING'; } {Do not localize} - {CH fn_d2i_ASN1_BMPSTRING = 'd2i_ASN1_BMPSTRING'; } {Do not localize} - {CH fn_i2d_ASN1_PRINTABLE = 'i2d_ASN1_PRINTABLE'; } {Do not localize} - {CH fn_d2i_ASN1_PRINTABLE = 'd2i_ASN1_PRINTABLE'; } {Do not localize} - {CH fn_d2i_ASN1_PRINTABLESTRING = 'd2i_ASN1_PRINTABLESTRING'; } {Do not localize} - {CH fn_i2d_DIRECTORYSTRING = 'i2d_DIRECTORYSTRING'; } {Do not localize} - {CH fn_d2i_DIRECTORYSTRING = 'd2i_DIRECTORYSTRING'; } {Do not localize} - {CH fn_i2d_DISPLAYTEXT = 'i2d_DISPLAYTEXT'; } {Do not localize} - {CH fn_d2i_DISPLAYTEXT = 'd2i_DISPLAYTEXT'; } {Do not localize} - {CH fn_d2i_ASN1_T61STRING = 'd2i_ASN1_T61STRING'; } {Do not localize} - {CH fn_i2d_ASN1_IA5STRING = 'i2d_ASN1_IA5STRING'; } {Do not localize} - {CH fn_d2i_ASN1_IA5STRING = 'd2i_ASN1_IA5STRING'; } {Do not localize} - {CH fn_i2d_ASN1_UTCTIME = 'i2d_ASN1_UTCTIME'; } {Do not localize} - {CH fn_d2i_ASN1_UTCTIME = 'd2i_ASN1_UTCTIME'; } {Do not localize} - {CH fn_i2d_ASN1_GENERALIZEDTIME = 'i2d_ASN1_GENERALIZEDTIME'; } {Do not localize} - {CH fn_d2i_ASN1_GENERALIZEDTIME = 'd2i_ASN1_GENERALIZEDTIME'; } {Do not localize} - {CH fn_i2d_ASN1_TIME = 'i2d_ASN1_TIME'; } {Do not localize} - {CH fn_d2i_ASN1_TIME = 'd2i_ASN1_TIME'; } {Do not localize} - {CH fn_ASN1_TIME_set = 'ASN1_TIME_set'; } {Do not localize} - {CH fn_i2d_ASN1_SET = 'i2d_ASN1_SET'; } {Do not localize} - {CH fn_d2i_ASN1_SET = 'd2i_ASN1_SET'; } {Do not localize} - {$IFNDEF OPENSSL_NO_BIO} - {CH fn_i2a_ASN1_INTEGER = 'i2a_ASN1_INTEGER'; } {Do not localize} - {CH fn_a2i_ASN1_INTEGER = 'a2i_ASN1_INTEGER'; } {Do not localize} - {CH fn_i2a_ASN1_ENUMERATED = 'i2a_ASN1_ENUMERATED'; } {Do not localize} - {CH fn_a2i_ASN1_ENUMERATED = 'a2i_ASN1_ENUMERATED'; } {Do not localize} - {CH fn_i2a_ASN1_OBJECT = 'i2a_ASN1_OBJECT'; } {Do not localize} - {CH fn_a2i_ASN1_STRING = 'a2i_ASN1_STRING'; } {Do not localize} - {CH fn_i2a_ASN1_STRING = 'i2a_ASN1_STRING'; } {Do not localize} - {$ENDIF} - {CH fn_i2t_ASN1_OBJECT = 'i2t_ASN1_OBJECT'; } {Do not localize} - {CH fn_a2d_ASN1_OBJECT = 'a2d_ASN1_OBJECT'; } {Do not localize} - {CH fn_ASN1_OBJECT_create = 'ASN1_OBJECT_create'; } {Do not localize} - fn_ASN1_INTEGER_set = 'ASN1_INTEGER_set'; {Do not localize} - fn_ASN1_INTEGER_get = 'ASN1_INTEGER_get'; {Do not localize} - {CH fn_BN_to_ASN1_INTEGER = 'BN_to_ASN1_INTEGER'; } {Do not localize} - fn_ASN1_INTEGER_to_BN = 'ASN1_INTEGER_to_BN'; {Do not localize} - {CH fn_ASN1_ENUMERATED_set = 'ASN1_ENUMERATED_set'; } {Do not localize} - {CH fn_ASN1_ENUMERATED_get = 'ASN1_ENUMERATED_get'; } {Do not localize} - {CH fn_BN_to_ASN1_ENUMERATED = 'BN_to_ASN1_ENUMERATED'; } {Do not localize} - {CH fn_ASN1_ENUMERATED_to_BN = 'ASN1_ENUMERATED_to_BN'; } {Do not localize} - {CH fn_ASN1_PRINTABLE_type = 'ASN1_PRINTABLE_type'; } {Do not localize} - {CH fn_i2d_ASN1_bytes = 'i2d_ASN1_bytes'; } {Do not localize} - {CH fn_d2i_ASN1_bytes = 'd2i_ASN1_bytes'; } {Do not localize} - {CH fn_d2i_ASN1_type_bytes = 'd2i_ASN1_type_bytes'; } {Do not localize} - {CH fn_asn1_Finish = 'asn1_Finish'; } {Do not localize} - {CH fn_ASN1_get_object = 'ASN1_get_object'; } {Do not localize} - {CH fn_ASN1_check_infinite_end = 'ASN1_check_infinite_end'; } {Do not localize} - {CH fn_ASN1_put_object = 'ASN1_put_object'; } {Do not localize} - {CH fn_ASN1_object_size = 'ASN1_object_size'; } {Do not localize} - fn_ASN1_dup = 'ASN1_dup'; {Do not localize} - {$IFNDEF OPENSSL_NO_FP_API} - {CH fn_ASN1_d2i_fp = 'ASN1_d2i_fp'; } {Do not localize} - {CH fn_ASN1_i2d_fp = 'ASN1_i2d_fp'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_BIO} - {CH fn_ASN1_d2i_bio = 'ASN1_d2i_bio'; } {Do not localize} - {CH fn_ASN1_item_d2i_bio = 'ASN1_item_d2i_bio'; } {Do not localize} - {CH fn_ASN1_i2d_bio = 'ASN1_i2d_bio'; } {Do not localize} - {CH fn_ASN1_item_i2d_bio = 'ASN1_item_i2d_bio'; } {Do not localize} - {CH fn_ASN1_UTCTIME_print = 'ASN1_UTCTIME_print'; } {Do not localize} - {CH fn_ASN1_GENERALIZEDTIME_print = 'ASN1_GENERALIZEDTIME_print'; } {Do not localize} - {CH fn_ASN1_TIME_print = 'ASN1_TIME_print'; } {Do not localize} - {CH fn_ASN1_STRING_print = 'ASN1_STRING_print'; } {Do not localize} - {CH fn_ASN1_STRING_print_ex = 'ASN1_STRING_print_ex'; } {Do not localize} - {CH fn_ASN1_parse = 'ASN1_parse'; } {Do not localize} - {CH fn_ASN1_parse_dump = 'ASN1_parse_dump'; } {Do not localize} - {$ENDIF} - {CH fn_ASN1_tag2str = 'ASN1_tag2str'; } {Do not localize} - {CH fn_i2d_ASN1_HEADER = 'i2d_ASN1_HEADER'; } {Do not localize} - {CH fn_d2i_ASN1_HEADER = 'd2i_ASN1_HEADER'; } {Do not localize} - {CH fn_ASN1_HEADER_new = 'ASN1_HEADER_new'; } {Do not localize} - {CH fn_ASN1_HEADER_free = 'ASN1_HEADER_free'; } {Do not localize} - {CH fn_ASN1_UNIVERSALSTRING_to_string = 'ASN1_UNIVERSALSTRING_to_string'; } {Do not localize} - {CH fn_ERR_load_ASN1_strings = 'ERR_load_ASN1_strings'; } {Do not localize} - {CH fn_X509_asn1_meth = 'X509_asn1_meth'; } {Do not localize} - {CH fn_RSAPrivateKey_asn1_meth = 'RSAPrivateKey_asn1_meth'; } {Do not localize} - {CH fn_ASN1_IA5STRING_asn1_meth = 'ASN1_IA5STRING_asn1_meth'; } {Do not localize} - {CH fn_ASN1_BIT_STRING_asn1_meth = 'ASN1_BIT_STRING_asn1_meth'; } {Do not localize} - {CH fn_ASN1_TYPE_set_octetstring = 'ASN1_TYPE_set_octetstring'; } {Do not localize} - {CH fn_ASN1_TYPE_get_octetstring = 'ASN1_TYPE_get_octetstring'; } {Do not localize} - {CH fn_ASN1_TYPE_set_int_octetstring = 'ASN1_TYPE_set_int_octetstring'; } {Do not localize} - {CH fn_ASN1_TYPE_get_int_octetstring = 'ASN1_TYPE_get_int_octetstring'; } {Do not localize} - {CH fn_ASN1_seq_unpack = 'ASN1_seq_unpack'; } {Do not localize} - {CH fn_ASN1_seq_pack = 'ASN1_seq_pack'; } {Do not localize} - {CH fn_ASN1_unpack_string = 'ASN1_unpack_string'; } {Do not localize} - {CH fn_ASN1_pack_string = 'ASN1_pack_string'; } {Do not localize} - {CH fn_ASN1_item_unpack = 'ASN1_item_unpack'; } {Do not localize} - {CH fn_ASN1_item_pack = 'ASN1_item_pack'; } {Do not localize} - {CH fn_ASN1_STRING_set_default_mask = 'ASN1_STRING_set_default_mask'; } {Do not localize} - {CH fn_ASN1_STRING_set_default_mask_asc = 'ASN1_STRING_set_default_mask_asc'; } {Do not localize} - {CH fn_ASN1_STRING_get_default_mask = 'ASN1_STRING_get_default_mask'; } {Do not localize} - {CH fn_ASN1_mbstring_copy = 'ASN1_mbstring_copy'; } {Do not localize} - {CH fn_ASN1_mbstring_ncopy = 'ASN1_mbstring_ncopy'; } {Do not localize} - {CH fn_ASN1_STRING_set_by_NID = 'ASN1_STRING_set_by_NID'; } {Do not localize} - {CH fn_ASN1_STRING_TABLE_get = 'ASN1_STRING_TABLE_get'; } {Do not localize} - {CH fn_ASN1_STRING_TABLE_add = 'ASN1_STRING_TABLE_add'; } {Do not localize} - {CH fn_ASN1_STRING_TABLE_cleanup = 'ASN1_STRING_TABLE_cleanup'; } {Do not localize} - {CH fn_ASN1_item_new = 'ASN1_item_new'; } {Do not localize} - {CH fn_ASN1_item_free = 'ASN1_item_free'; } {Do not localize} - {CH fn_ASN1_item_d2i = 'ASN1_item_d2i'; } {Do not localize} - {CH fn_ASN1_item_i2d = 'ASN1_item_i2d'; } {Do not localize} - {CH fn_ASN1_item_ndef_i2d = 'ASN1_item_ndef_i2d'; } {Do not localize} - {CH fn_ASN1_add_oid_module = 'ASN1_add_oid_module'; } {Do not localize} - {CH fn_ASN1_generate_nconf = 'ASN1_generate_nconf'; } {Do not localize} - {CH fn_ASN1_generate_v3 = 'ASN1_generate_v3'; } {Do not localize} - {CH fn_int_smime_write_ASN1 = 'int_smime_write_ASN1'; } {Do not localize} - {CH fn_SMIME_read_ASN1 = 'SMIME_read_ASN1'; } {Do not localize} - {CH fn_OBJ_NAME_init = 'OBJ_NAME_init'; } {Do not localize} - {CH fn_OBJ_NAME_new_index = 'OBJ_NAME_new_index'; } {Do not localize} - {CH fn_OBJ_NAME_get = 'OBJ_NAME_get'; } {Do not localize} - {CH fn_OBJ_NAME_add = 'OBJ_NAME_add'; } {Do not localize} - {CH fn_OBJ_NAME_remove = 'OBJ_NAME_remove'; } {Do not localize} - {CH fn_OBJ_NAME_cleanup = 'OBJ_NAME_cleanup'; } {Do not localize} - {CH fn_OBJ_dup = 'OBJ_dup'; } {Do not localize} - fn_OBJ_nid2obj = 'OBJ_nid2obj'; {Do not localize} - fn_OBJ_nid2ln = 'OBJ_nid2ln'; {Do not localize} - fn_OBJ_nid2sn = 'OBJ_nid2sn'; {Do not localize} - fn_OBJ_obj2nid = 'OBJ_obj2nid'; {Do not localize} - {CH fn_OBJ_txt2obj = 'OBJ_txt2obj'; } {Do not localize} - {CH fn_OBJ_obj2txt = 'OBJ_obj2txt'; } {Do not localize} - {CH fn_OBJ_txt2nid = 'OBJ_txt2nid'; } {Do not localize} - {CH fn_OBJ_ln2nid = 'OBJ_ln2nid'; } {Do not localize} - {CH fn_OBJ_sn2nid = 'OBJ_sn2nid'; } {Do not localize} - {CH fn_OBJ_cmp = 'OBJ_cmp'; } {Do not localize} - {CH fn_OBJ_bsearch = 'OBJ_bsearch'; } {Do not localize} - {CH fn_ERR_load_OBJ_strings = 'ERR_load_OBJ_strings'; } {Do not localize} - {CH fn_OBJ_new_nid = 'OBJ_new_nid'; } {Do not localize} - {CH fn_OBJ_add_object = 'OBJ_add_object'; } {Do not localize} - {CH fn_OBJ_create = 'OBJ_create'; } {Do not localize} - {CH fn_OBJ_cleanup = 'OBJ_cleanup'; } {Do not localize} - {CH fn_OBJ_create_objects = 'OBJ_create_objects'; } {Do not localize} - {===} - fn_EVP_MD_type = 'EVP_MD_type'; {Do not localize} - fn_EVP_MD_pkey_type = 'EVP_MD_pkey_type'; {Do not localize} - fn_EVP_MD_size = 'EVP_MD_size'; {Do not localize} - fn_EVP_MD_block_size = 'EVP_MD_block_size'; {Do not localize} - fn_EVP_MD_flags = 'EVP_MD_flags'; {Do not localize} - fn_EVP_MD_CTX_md = 'EVP_MD_CTX_md'; {Do not localize} - fn_EVP_CIPHER_nid = 'EVP_CIPHER_nid'; {Do not localize} - fn_EVP_CIPHER_block_size = 'EVP_CIPHER_block_size'; {Do not localize} - fn_EVP_CIPHER_key_length = 'EVP_CIPHER_key_length'; {Do not localize} - fn_EVP_CIPHER_iv_length = 'EVP_CIPHER_iv_length'; {Do not localize} - fn_EVP_CIPHER_flags = 'EVP_CIPHER_flags'; {Do not localize} - fn_EVP_CIPHER_CTX_cipher = 'EVP_CIPHER_CTX_cipher'; {Do not localize} - fn_EVP_CIPHER_CTX_nid = 'EVP_CIPHER_CTX_nid'; {Do not localize} - fn_EVP_CIPHER_CTX_block_size = 'EVP_CIPHER_CTX_block_size'; {Do not localize} - fn_EVP_CIPHER_CTX_key_length = 'EVP_CIPHER_CTX_key_length'; {Do not localize} - fn_EVP_CIPHER_CTX_iv_length = 'EVP_CIPHER_CTX_iv_length'; {Do not localize} - fn_EVP_CIPHER_CTX_get_app_data = 'EVP_CIPHER_CTX_get_app_data'; {Do not localize} - fn_EVP_CIPHER_CTX_set_app_data = 'EVP_CIPHER_CTX_set_app_data'; {Do not localize} - fn_EVP_CIPHER_CTX_flags = 'EVP_CIPHER_CTX_flags'; {Do not localize} - fn_EVP_Cipher = 'EVP_Cipher'; {Do not localize} - fn_EVP_MD_CTX_init = 'EVP_MD_CTX_init'; {Do not localize} - fn_EVP_MD_CTX_cleanup = 'EVP_MD_CTX_cleanup'; {Do not localize} - fn_EVP_MD_CTX_create = 'EVP_MD_CTX_create'; {Do not localize} - fn_EVP_MD_CTX_destroy = 'EVP_MD_CTX_destroy'; {Do not localize} - fn_EVP_MD_CTX_copy_ex = 'EVP_MD_CTX_copy_ex'; {Do not localize} - fn_EVP_MD_CTX_set_flags = 'EVP_MD_CTX_set_flags'; {Do not localize} - fn_EVP_MD_CTX_clear_flags = 'EVP_MD_CTX_clear_flags'; {Do not localize} - fn_EVP_MD_CTX_test_flags = 'EVP_MD_CTX_test_flags'; {Do not localize} - fn_EVP_DigestInit_ex = 'EVP_DigestInit_ex'; {Do not localize} - fn_EVP_DigestUpdate = 'EVP_DigestUpdate'; {Do not localize} - fn_EVP_DigestFinal_ex = 'EVP_DigestFinal_ex'; {Do not localize} - fn_EVP_Digest = 'EVP_Digest'; {Do not localize} - fn_EVP_MD_CTX_copy = 'EVP_MD_CTX_copy'; {Do not localize} - fn_EVP_DigestInit = 'EVP_DigestInit'; {Do not localize} - fn_EVP_DigestFinal = 'EVP_DigestFinal'; {Do not localize} - fn_EVP_read_pw_string = 'EVP_read_pw_string'; {Do not localize} - fn_EVP_set_pw_prompt = 'EVP_set_pw_prompt'; {Do not localize} - fn_EVP_get_pw_prompt = 'EVP_get_pw_prompt'; {Do not localize} - fn_EVP_BytesToKey = 'EVP_BytesToKey'; {Do not localize} - fn_EVP_CIPHER_CTX_set_flags = 'EVP_CIPHER_CTX_set_flags'; {Do not localize} - fn_EVP_CIPHER_CTX_clear_flags = 'EVP_CIPHER_CTX_clear_flags'; {Do not localize} - fn_EVP_CIPHER_CTX_test_flags = 'EVP_CIPHER_CTX_test_flags'; {Do not localize} - fn_EVP_EncryptInit = 'EVP_EncryptInit'; {Do not localize} - fn_EVP_EncryptInit_ex = 'EVP_EncryptInit_ex'; {Do not localize} - fn_EVP_EncryptUpdate = 'EVP_EncryptUpdate'; {Do not localize} - fn_EVP_EncryptFinal = 'EVP_EncryptFinal'; {Do not localize} - fn_EVP_EncryptFinal_ex = 'EVP_EncryptFinal_ex'; {Do not localize} - fn_EVP_DecryptInit = 'EVP_DecryptInit'; {Do not localize} - fn_EVP_DecryptInit_ex = 'EVP_DecryptInit_ex'; {Do not localize} - fn_EVP_DecryptUpdate = 'EVP_DecryptUpdate'; {Do not localize} - fn_EVP_DecryptFinal = 'EVP_DecryptFinal'; {Do not localize} - fn_EVP_DecryptFinal_ex = 'EVP_DecryptFinal_ex'; {Do not localize} - fn_EVP_CipherInit = 'EVP_CipherInit'; {Do not localize} - fn_EVP_CipherInit_ex = 'EVP_CipherInit_ex'; {Do not localize} - fn_EVP_CipherUpdate = 'EVP_CipherUpdate'; {Do not localize} - fn_EVP_CipherFinal = 'EVP_CipherFinal'; {Do not localize} - fn_EVP_CipherFinal_ex = 'EVP_CipherFinal_ex'; {Do not localize} - - fn_EVP_DigestSignInit = 'EVP_DigestSignInit'; {Do not localize} - fn_EVP_DigestSignFinal = 'EVP_DigestSignFinal'; {Do not localize} - fn_EVP_DigestVerifyInit = 'EVP_DigestVerifyInit'; {Do not localize} - fn_EVP_DigestVerifyFinal = 'EVP_DigestVerifyFinal'; {Do not localize} - - fn_EVP_SignFinal = 'EVP_SignFinal'; {Do not localize} - fn_EVP_VerifyFinal = 'EVP_VerifyFinal'; {Do not localize} - fn_EVP_OpenInit = 'EVP_OpenInit'; {Do not localize} - fn_EVP_OpenFinal = 'EVP_OpenFinal'; {Do not localize} - fn_EVP_SealInit = 'EVP_SealInit'; {Do not localize} - fn_EVP_SealFinal = 'EVP_SealFinal'; {Do not localize} - fn_EVP_EncodeInit = 'EVP_EncodeInit'; {Do not localize} - fn_EVP_EncodeUpdate = 'EVP_EncodeUpdate'; {Do not localize} - fn_EVP_EncodeFinal = 'EVP_EncodeFinal'; {Do not localize} - fn_EVP_EncodeBlock = 'EVP_EncodeBlock'; {Do not localize} - fn_EVP_DecodeInit = 'EVP_DecodeInit'; {Do not localize} - fn_EVP_DecodeUpdate = 'EVP_DecodeUpdate'; {Do not localize} - fn_EVP_DecodeFinal = 'EVP_DecodeFinal'; {Do not localize} - fn_EVP_DecodeBlock = 'EVP_DecodeBlock'; {Do not localize} - fn_EVP_CIPHER_CTX_init = 'EVP_CIPHER_CTX_init'; {Do not localize} - fn_EVP_CIPHER_CTX_cleanup = 'EVP_CIPHER_CTX_cleanup'; {Do not localize} - fn_EVP_CIPHER_CTX_new = 'EVP_CIPHER_CTX_new'; {Do not localize} - fn_EVP_CIPHER_CTX_set_key_length = 'EVP_CIPHER_CTX_set_key_length'; {Do not localize} - fn_EVP_CIPHER_CTX_ctrl = 'EVP_CIPHER_CTX_ctrl'; {Do not localize} - fn_EVP_CIPHER_CTX_rand_key = 'EVP_CIPHER_CTX_rand_key'; {Do not localize} - fn_EVP_CIPHER_CTX_copy = 'EVP_CIPHER_CTX_copy'; {Do not localize} - fn_EVP_CIPHER_CTX_free = 'EVP_CIPHER_CTX_free'; {Do not localize} - fn_EVP_CIPHER_CTX_set_padding = 'EVP_CIPHER_CTX_set_padding'; {Do not localize} - {$IFNDEF OPENSSL_NO_BIO} - fn_BIO_f_md = 'BIO_f_md'; {Do not localize} - fn_BIO_f_base64 = 'BIO_f_base64'; {Do not localize} - fn_BIO_f_cipher = 'BIO_f_cipher'; {Do not localize} - fn_BIO_f_reliable = 'BIO_f_reliable'; {Do not localize} - fn_BIO_set_cipher = 'BIO_set_cipher'; {Do not localize} - {$ENDIF} - fn_EVP_md_null = 'EVP_md_null'; {Do not localize} - {$IFNDEF OPENSSL_NO_MD2} - fn_EVP_md2 = 'EVP_md2'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD4} - fn_EVP_md4 = 'EVP_md4'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD5} - fn_EVP_md5 = 'EVP_md5'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA} - fn_EVP_sha = 'EVP_sha'; {Do not localize} - fn_EVP_sha1 = 'EVP_sha1'; {Do not localize} - fn_EVP_dss = 'EVP_dss'; {Do not localize} - fn_EVP_dss1 = 'EVP_dss1'; {Do not localize} - fn_EVP_ecdsa = 'EVP_ecdsa'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA256} - fn_EVP_sha512 = 'EVP_sha512'; {Do not localize} - fn_EVP_sha384 = 'EVP_sha384'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA512} - fn_EVP_sha256 = 'EVP_sha256'; {Do not localize} - fn_EVP_sha224 = 'EVP_sha224'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_MDC2} - fn_EVP_mdc2 = 'EVP_mdc2'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_RIPEMD} - fn_EVP_ripemd160 = 'EVP_ripemd160'; {Do not localize} - {$ENDIF} - {$ifndef OPENSSL_NO_WHIRLPOOL} - fn_EVP_whirlpool = 'EVP_whirlpool'; {Do not localize} - {$ENDIF} - fn_EVP_enc_null = 'EVP_enc_null'; {Do not localize} - {$IFNDEF OPENSSL_NO_DES} - fn_EVP_des_ecb = 'EVP_des_ecb'; {Do not localize} - fn_EVP_des_ede = 'EVP_des_ede'; {Do not localize} - fn_EVP_des_ede3 = 'EVP_des_ede3'; {Do not localize} - fn_EVP_des_cfb = 'EVP_des_cfb'; {Do not localize} - fn_EVP_des_ede_cfb = 'EVP_des_ede_cfb'; {Do not localize} - fn_EVP_des_ede3_cfb = 'EVP_des_ede3_cfb'; {Do not localize} - fn_EVP_des_ofb = 'EVP_des_ofb'; {Do not localize} - fn_EVP_des_ede_ofb = 'EVP_des_ede_ofb'; {Do not localize} - fn_EVP_des_ede3_ofb = 'EVP_des_ede3_ofb'; {Do not localize} - fn_EVP_des_cbc = 'EVP_des_cbc'; {Do not localize} - fn_EVP_des_ede_cbc = 'EVP_des_ede_cbc'; {Do not localize} - fn_EVP_des_ede3_cbc = 'EVP_des_ede3_cbc'; {Do not localize} - fn_EVP_desx_cbc = 'EVP_desx_cbc'; {Do not localize} - fn_EVP_des_ede3_cfb8 = 'EVP_des_ede3_cfb8'; {Do not localize} - fn_EVP_des_ede_ecb = 'EVP_des_ede_ecb'; {Do not localize} - fn_EVP_des_ede3_ecb = 'EVP_des_ede3_ecb'; - fn_EVP_des_cfb64 = 'EVP_des_cfb64'; - - fn_EVP_des_cfb1 = 'EVP_des_cfb1'; - fn_EVP_des_cfb8 = 'EVP_des_cfb8'; - fn_EVP_des_ede_cfb64 = 'EVP_des_ede_cfb64'; -//#if 0 - fn_EVP_des_ede_cfb1 = 'EVP_des_ede_cfb1'; - fn_EVP_des_ede_cfb8 = 'EVP_des_ede_cfb8'; - //#endif - fn_EVP_des_ede3_cfb64 = 'EVP_des_ede3_cfb64'; - fn_EVP_des_ede3_cfb1 = 'EVP_des_ede3_cfb1'; - {$ENDIF} - {$IFNDEF OPENSSL_NO_RC4} - fn_EVP_rc4 = 'EVP_rc4'; {Do not localize} - fn_EVP_rc4_40 = 'EVP_rc4_40'; {Do not localize} - {$ifndef OPENSSL_NO_MD5} - fn_EVP_rc4_hmac_md5 = 'EVP_rc4_hmac_md5'; {Do not localize} - {$endif} - {$ENDIF} - {$IFNDEF OPENSSL_NO_IDEA} - fn_EVP_idea_ecb = 'EVP_idea_ecb'; {Do not localize} - fn_EVP_idea_cfb64 = 'EVP_idea_cfb64'; {Do not localize} - fn_EVP_idea_cfb = 'EVP_idea_cfb'; {Do not localize} - fn_EVP_idea_ofb = 'EVP_idea_ofb'; {Do not localize} - fn_EVP_idea_cbc = 'EVP_idea_cbc'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_RC2} - fn_EVP_rc2_ecb = 'EVP_rc2_ecb'; {Do not localize} - fn_EVP_rc2_cbc = 'EVP_rc2_cbc'; {Do not localize} - fn_EVP_rc2_40_cbc = 'EVP_rc2_40_cbc'; {Do not localize} - fn_EVP_rc2_64_cbc = 'EVP_rc2_64_cbc'; {Do not localize} - fn_EVP_rc2_cfb64 = 'EVP_rc2_cfb64'; {Do not localize} - fn_EVP_rc2_cfb = 'EVP_rc2_cfb'; {Do not localize} - fn_EVP_rc2_ofb = 'EVP_rc2_ofb'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_BF} - fn_EVP_bf_ecb = 'EVP_bf_ecb'; {Do not localize} - fn_EVP_bf_cbc = 'EVP_bf_cbc'; {Do not localize} - fn_EVP_bf_cfb = 'EVP_bf_cfb'; {Do not localize} - fn_EVP_bf_cfb64 = 'EVP_bf_cfb64'; {Do not localize} - fn_EVP_bf_ofb = 'EVP_bf_ofb'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_CAST} - fn_EVP_cast5_ecb = 'EVP_cast5_ecb'; {Do not localize} - fn_EVP_cast5_cbc = 'EVP_cast5_cbc'; {Do not localize} - fn_EVP_cast5_cfb = 'EVP_cast5_cfb'; {Do not localize} - fn_EVP_cast5_cfb64 = 'EVP_cast5_cfb64'; {Do not localize} - fn_EVP_cast5_ofb = 'EVP_cast5_ofb'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_RC5 } - fn_EVP_rc5_32_12_16_cbc = 'EVP_rc5_32_12_16_cbc'; {Do not localize} - fn_EVP_rc5_32_12_16_ecb = 'EVP_rc5_32_12_16_ecb'; {Do not localize} - fn_EVP_rc5_32_12_16_cfb = 'EVP_rc5_32_12_16_cfb'; {Do not localize} - fn_EVP_rc5_32_12_16_cfb64 = 'EVP_rc5_32_12_16_cfb64'; {Do not localize} - fn_EVP_rc5_32_12_16_ofb = 'EVP_rc5_32_12_16_ofb'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_AES} - fn_EVP_aes_128_ecb = 'EVP_aes_128_ecb'; {do not localize} - fn_EVP_aes_128_cbc = 'EVP_aes_128_cbc'; {do not localize} - fn_EVP_aes_128_cfb1 = 'EVP_aes_128_cfb1'; {do not localize} - fn_EVP_aes_128_cfb8 = 'EVP_aes_128_cfb8';{do not localize} - fn_EVP_aes_128_cfb128 = 'EVP_aes_128_cfb128'; {do not localize} - fn_EVP_aes_128_ofb = 'EVP_aes_128_ofb'; {do not localize} - fn_EVP_aes_128_ctr = 'EVP_aes_128_ctr'; {Do not localize} - fn_EVP_aes_128_gcm = 'EVP_aes_128_gcm'; {Do not localize} - fn_EVP_aes_128_ccm = 'EVP_aes_128_ccm'; {Do not localize} - fn_EVP_aes_128_xts = 'EVP_aes_128_xts'; {Do not localize} - fn_EVP_aes_192_ecb = 'EVP_aes_192_ecb'; {Do not localize} - fn_EVP_aes_192_cbc = 'EVP_aes_192_cbc'; {Do not localize} - fn_EVP_aes_192_cfb1 = 'EVP_aes_192_cfb1'; {Do not localize} - fn_EVP_aes_192_cfb8 = 'EVP_aes_192_cfb8'; {Do not localize} - fn_EVP_aes_192_cfb128 = 'EVP_aes_192_cfb128'; {Do not localize} - fn_EVP_aes_192_ctr = 'EVP_aes_192_ctr'; {Do not localize} - fn_EVP_aes_192_gcm = 'EVP_aes_192_gcm'; {Do not localize} - fn_EVP_aes_192_ccm = 'EVP_aes_192_ccm'; {Do not localize} - fn_EVP_aes_192_ofb = 'EVP_aes_192_ofb'; {Do not localize} - fn_EVP_aes_256_ecb = 'EVP_aes_256_ecb'; {Do not localize} - fn_EVP_aes_256_cbc = 'EVP_aes_256_cbc'; {Do not localize} - fn_EVP_aes_256_cfb1 = 'EVP_aes_256_cfb1'; {Do not localize} - fn_EVP_aes_256_cfb8 = 'EVP_aes_256_cfb8'; {Do not localize} - fn_EVP_aes_256_cfb128 = 'EVP_aes_256_cfb128'; {Do not localize} - fn_EVP_aes_256_ofb = 'EVP_aes_256_ofb'; {Do not localize} - fn_EVP_aes_256_ctr = 'EVP_aes_256_ctr'; {Do not localize} - fn_EVP_aes_256_gcm = 'EVP_aes_256_gcm'; {Do not localize} - fn_EVP_aes_256_ccm = 'EVP_aes_256_ccm'; {Do not localize} - fn_EVP_aes_256_xts = 'EVP_aes_256_xts'; {Do not localize} - {$ifndef OPENSSL_NO_SHA} - {$ifndef OPENSSL_NO_SHA1} - fn_EVP_aes_128_cbc_hmac_sha1 = 'EVP_aes_128_cbc_hmac_sha1'; {Do not localize} - fn_EVP_aes_256_cbc_hmac_sha1 = 'EVP_aes_256_cbc_hmac_sha1'; {do not localize} - {$endif} - {$endif} - {$endif} - {$IFNDEF OPENSSL_NO_CAMELLIA} - fn_EVP_camellia_128_ecb = 'EVP_camellia_128_ecb'; {Do not localize} - fn_EVP_camellia_128_cbc = 'EVP_camellia_128_cbc'; {Do not localize} - fn_EVP_camellia_128_cfb1 = 'EVP_camellia_128_cfb1'; {Do not localize} - fn_EVP_camellia_128_cfb8 = 'EVP_camellia_128_cfb8'; {Do not localize} - fn_EVP_camellia_128_cfb128 = 'EVP_camellia_128_cfb128'; {Do not localize} - fn_EVP_camellia_128_ofb = 'EVP_camellia_128_ofb'; {Do not localize} - fn_EVP_camellia_192_ecb = 'EVP_camellia_192_ecb'; {Do not localize} - fn_EVP_camellia_192_cbc = 'EVP_camellia_192_cbc'; {Do not localize} - fn_EVP_camellia_192_cfb1 = 'EVP_camellia_192_cfb1'; {Do not localize} - fn_EVP_camellia_192_cfb8 = 'EVP_camellia_192_cfb8'; {Do not localize} - fn_EVP_camellia_192_cfb128 = 'EVP_camellia_192_cfb128'; {Do not localize} - fn_EVP_camellia_192_ofb = 'EVP_camellia_192_ofb'; {Do not localize} - fn_EVP_camellia_256_ecb = 'EVP_camellia_256_ecb'; {Do not localize} - fn_EVP_camellia_256_cbc = 'EVP_camellia_256_cbc'; {Do not localize} - fn_EVP_camellia_256_cfb1 = 'EVP_camellia_256_cfb1'; {Do not localize} - fn_EVP_camellia_256_cfb8 = 'EVP_camellia_256_cfb8'; {Do not localize} - fn_EVP_camellia_256_cfb128 = 'EVP_camellia_256_cfb128'; {Do not localize} - fn_EVP_camellia_256_ofb = 'EVP_camellia_256_ofb'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_SEED} - fn_EVP_seed_ecb = 'EVP_seed_ecb'; {Do not localize} - fn_EVP_seed_cbc = 'EVP_seed_cbc'; {Do not localize} - fn_EVP_seed_cfb128 = 'EVP_seed_cfb128'; {Do not localize} - fn_EVP_seed_ofb = 'EVP_seed_ofb'; {Do not localize} - {$ENDIF} - fn_OPENSSL_add_all_algorithms_noconf = 'OPENSSL_add_all_algorithms_noconf'; {Do not localize} - { fn_OPENSSL_add_all_algorithms_conf = 'OPENSSL_add_all_algorithms_conf'; }{Do not localize} - fn_OpenSSL_add_all_algorithms = 'OpenSSL_add_all_algorithms'; - fn_OpenSSL_add_all_ciphers = 'OpenSSL_add_all_ciphers'; {Do not localize} - fn_OpenSSL_add_all_digests = 'OpenSSL_add_all_digests'; {Do not localize} - fn_EVP_add_cipher = 'EVP_add_cipher'; {Do not localize} - fn_EVP_add_digest = 'EVP_add_digest'; {Do not localize} - fn_EVP_CIPHER_do_all = 'EVP_CIPHER_do_all'; {Do not localize} - fn_EVP_CIPHER_do_all_sorted = 'EVP_CIPHER_do_all_sorted'; {do not localize} - fn_EVP_MD_do_all = 'EVP_MD_do_all'; {Do not localize} - fn_EVP_MD_do_all_sorted = 'EVP_MD_do_all_sorted'; {Do not localize} - fn_EVP_get_cipherbyname = 'EVP_get_cipherbyname'; {Do not localize} - fn_EVP_get_digestbyname = 'EVP_get_digestbyname'; {Do not localize} - fn_EVP_PKEY_decrypt_old = 'EVP_PKEY_decrypt_old'; {Do not localize} - fn_EVP_PKEY_encrypt_old = 'EVP_PKEY_encrypt_old'; {Do not localize} - - fn_EVP_cleanup = 'EVP_cleanup'; {Do not localize} - fn_EVP_PKEY_decrypt = 'EVP_PKEY_decrypt'; {Do not localize} - fn_EVP_PKEY_encrypt = 'EVP_PKEY_encrypt'; {Do not localize} - fn_EVP_PKEY_type = 'EVP_PKEY_type'; {Do not localize} - fn_EVP_PKEY_id = 'EVP_PKEY_id'; {Do not localize} - fn_EVP_PKEY_bits = 'EVP_PKEY_bits'; {Do not localize} - fn_EVP_PKEY_base_id = 'EVP_PKEY_base_id'; {Do not localize} - fn_EVP_PKEY_set_type = 'EVP_PKEY_set_type'; {Do not localize} - fn_EVP_PKEY_set_type_str = 'EVP_PKEY_set_type_str'; {Do not localize} - fn_EVP_PKEY_size = 'EVP_PKEY_size'; {Do not localize} - fn_EVP_PKEY_assign = 'EVP_PKEY_assign'; {Do not localize} - fn_EVP_PKEY_get0 = 'EVP_PKEY_get0'; {Do not localize} - {$IFNDEF OPENSSL_NO_RSA} - fn_EVP_PKEY_set1_RSA = 'EVP_PKEY_set1_RSA'; {Do not localize} - fn_EVP_PKEY_get1_RSA = 'EVP_PKEY_get1_RSA'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_DSA} - fn_EVP_PKEY_set1_DSA = 'EVP_PKEY_set1_DSA'; {Do not localize} - fn_EVP_PKEY_get1_DSA = 'EVP_PKEY_get1_DSA'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_DH} - fn_EVP_PKEY_set1_DH = 'EVP_PKEY_set1_DH'; {Do not localize} - fn_EVP_PKEY_get1_DH = 'EVP_PKEY_get1_DH'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_EC} - fn_EVP_PKEY_set1_EC_KEY = 'EVP_PKEY_set1_EC_KEY'; {Do not localize} - fn_EVP_PKEY_get1_EC_KEY = 'EVP_PKEY_get1_EC_KEY'; {Do not localize} - {$ENDIF} - fn_EVP_PKEY_new = 'EVP_PKEY_new'; {Do not localize} - fn_EVP_PKEY_free = 'EVP_PKEY_free'; {Do not localize} - fn_d2i_PublicKey = 'd2i_PublicKey'; {Do not localize} - fn_i2d_PublicKey = 'i2d_PublicKey'; {Do not localize} - fn_d2i_PrivateKey = 'd2i_PrivateKey'; {Do not localize} - fn_d2i_AutoPrivateKey = 'd2i_AutoPrivateKey'; {Do not localize} - fn_i2d_PrivateKey = 'i2d_PrivateKey'; {Do not localize} - fn_EVP_PKEY_copy_parameters = 'EVP_PKEY_copy_parameters'; {Do not localize} - fn_EVP_PKEY_missing_parameters = 'EVP_PKEY_missing_parameters'; {Do not localize} - fn_EVP_PKEY_save_parameters = 'EVP_PKEY_save_parameters'; {Do not localize} - fn_EVP_PKEY_cmp_parameters = 'EVP_PKEY_cmp_parameters'; {Do not localize} - fn_EVP_PKEY_cmp = 'EVP_PKEY_cmp'; {Do not localize} - fn_EVP_PKEY_print_public = 'EVP_PKEY_print_public'; {Do not localize} - fn_EVP_PKEY_print_private = 'EVP_PKEY_print_private'; {Do not localize} - fn_EVP_PKEY_print_params = 'EVP_PKEY_print_params'; {Do not localize} - fn_EVP_PKEY_get_default_digest_nid = 'EVP_PKEY_get_default_digest_nid'; {Do not localize} - fn_EVP_CIPHER_type = 'EVP_CIPHER_type'; {Do not localize} - fn_EVP_CIPHER_param_to_asn1 = 'EVP_CIPHER_param_to_asn1'; {Do not localize} - fn_EVP_CIPHER_asn1_to_param = 'EVP_CIPHER_asn1_to_param'; {Do not localize} - fn_EVP_CIPHER_set_asn1_iv = 'EVP_CIPHER_set_asn1_iv'; {Do not localize} - fn_EVP_CIPHER_get_asn1_iv = 'EVP_CIPHER_get_asn1_iv'; {Do not localize} - fn_PKCS5_PBE_keyivgen = 'PKCS5_PBE_keyivgen'; {Do not localize} - fn_PKCS5_PBKDF2_HMAC = 'PKCS5_PBKDF2_HMAC'; {Do not lozalize} - fn_PKCS5_PBKDF2_HMAC_SHA1 = 'PKCS5_PBKDF2_HMAC_SHA1'; {Do not localize} - fn_PKCS5_v2_PBE_keyivgen = 'PKCS5_v2_PBE_keyivgen'; {Do not localize} - fn_PKCS5_PBE_add = 'PKCS5_PBE_add'; {Do not localize} - fn_EVP_PBE_CipherInit = 'EVP_PBE_CipherInit'; {Do not localize} - fn_EVP_PBE_alg_add = 'EVP_PBE_alg_add'; {Do not localize} - fn_EVP_PBE_alg_add_type = 'EVP_PBE_alg_add_type'; {Do not localize} - fn_EVP_PBE_find = 'EVP_PBE_find'; {Do not localize} - fn_EVP_PBE_cleanup = 'EVP_PBE_cleanup'; {Do not localize} - fn_EVP_PKEY_asn1_get_count = 'EVP_PKEY_asn1_get_count'; - fn_EVP_PKEY_asn1_get0 = 'EVP_PKEY_asn1_get0'; - fn_EVP_PKEY_asn1_find = 'EVP_PKEY_asn1_find'; - fn_EVP_PKEY_asn1_find_str = 'EVP_PKEY_asn1_find_str'; - fn_EVP_PKEY_asn1_add0 = 'EVP_PKEY_asn1_add0'; - fn_EVP_PKEY_asn1_add_alias = 'EVP_PKEY_asn1_add_alias'; - fn_EVP_PKEY_asn1_get0_info = 'EVP_PKEY_asn1_get0_info'; - fn_EVP_PKEY_get0_asn1 = 'EVP_PKEY_get0_asn1'; - fn_EVP_PKEY_asn1_new = 'EVP_PKEY_asn1_new'; - fn_EVP_PKEY_asn1_copy = 'EVP_PKEY_asn1_copy'; - fn_EVP_PKEY_asn1_free = 'EVP_PKEY_asn1_free'; - fn_EVP_PKEY_asn1_set_public = 'EVP_PKEY_asn1_set_public'; - fn_EVP_PKEY_asn1_set_private = 'EVP_PKEY_asn1_set_private'; - fn_EVP_PKEY_asn1_set_param = 'EVP_PKEY_asn1_set_param'; - fn_EVP_PKEY_asn1_set_free = 'EVP_PKEY_asn1_set_free'; - fn_EVP_PKEY_asn1_set_ctrl = 'EVP_PKEY_asn1_set_ctrl'; - fn_EVP_PKEY_meth_find = 'EVP_PKEY_meth_find'; - fn_EVP_PKEY_meth_new = 'EVP_PKEY_meth_new'; - fn_EVP_PKEY_meth_get0_info = 'EVP_PKEY_meth_get0_info'; - fn_EVP_PKEY_meth_copy = 'EVP_PKEY_meth_copy'; - fn_EVP_PKEY_meth_free = 'EVP_PKEY_meth_free'; - fn_EVP_PKEY_meth_add0 = 'EVP_PKEY_meth_add0'; - fn_EVP_PKEY_CTX_new = 'EVP_PKEY_CTX_new'; - fn_EVP_PKEY_CTX_new_id = 'EVP_PKEY_CTX_new_id'; - fn_EVP_PKEY_CTX_dup = 'EVP_PKEY_CTX_dup'; - fn_EVP_PKEY_CTX_free = 'EVP_PKEY_CTX_free'; - fn_EVP_PKEY_CTX_ctrl = 'EVP_PKEY_CTX_ctrl'; - fn_EVP_PKEY_CTX_ctrl_str = 'EVP_PKEY_CTX_ctrl_str'; - fn_EVP_PKEY_CTX_get_operation = 'EVP_PKEY_CTX_get_operation'; - fn_EVP_PKEY_CTX_set0_keygen_info = 'EVP_PKEY_CTX_set0_keygen_info'; - fn_EVP_PKEY_new_mac_key = 'EVP_PKEY_new_mac_key'; - fn_EVP_PKEY_CTX_set_data = 'EVP_PKEY_CTX_set_data'; - fn_EVP_PKEY_CTX_get_data = 'EVP_PKEY_CTX_get_data'; - fn_EVP_PKEY_CTX_get0_pkey = 'EVP_PKEY_CTX_get0_pkey'; - fn_EVP_PKEY_CTX_get0_peerkey = 'EVP_PKEY_CTX_get0_peerkey'; - fn_EVP_PKEY_CTX_set_app_data = 'EVP_PKEY_CTX_set_app_data'; - fn_EVP_PKEY_CTX_get_app_data = 'EVP_PKEY_CTX_get_app_data'; - fn_EVP_PKEY_sign_init = 'EVP_PKEY_sign_init'; - fn_EVP_PKEY_sign = 'EVP_PKEY_sign'; - fn_EVP_PKEY_verify_init = 'EVP_PKEY_verify_init'; - fn_EVP_PKEY_verify = 'EVP_PKEY_verify'; - fn_EVP_PKEY_verify_recover_init = 'EVP_PKEY_verify_recover_init'; - fn_EVP_PKEY_verify_recover = 'EVP_PKEY_verify_recover'; - fn_EVP_PKEY_encrypt_init = 'EVP_PKEY_encrypt_init'; - fn_EVP_PKEY_decrypt_init = 'EVP_PKEY_decrypt_init'; - fn_EVP_PKEY_derive_init = 'EVP_PKEY_derive_init'; - fn_EVP_PKEY_derive_set_peer = 'EVP_PKEY_derive_set_peer'; - fn_EVP_PKEY_derive = 'EVP_PKEY_derive'; - fn_EVP_PKEY_paramgen_init = 'EVP_PKEY_paramgen_init'; - fn_EVP_PKEY_paramgen = 'EVP_PKEY_paramgen'; - fn_EVP_PKEY_keygen_init = 'EVP_PKEY_keygen_init'; - fn_EVP_PKEY_keygen = 'EVP_PKEY_keygen'; - fn_EVP_PKEY_CTX_set_cb = 'EVP_PKEY_CTX_set_cb'; - fn_EVP_PKEY_CTX_get_cb = 'EVP_PKEY_CTX_get_cb'; - fn_EVP_PKEY_CTX_get_keygen_info = 'EVP_PKEY_CTX_get_keygen_info'; - fn_EVP_PKEY_meth_set_init = 'EVP_PKEY_meth_set_init'; - fn_EVP_PKEY_meth_set_copy = 'EVP_PKEY_meth_set_copy'; - fn_EVP_PKEY_meth_set_cleanup = 'EVP_PKEY_meth_set_cleanup'; - fn_EVP_PKEY_meth_set_paramgen = 'EVP_PKEY_meth_set_paramgen'; - fn_EVP_PKEY_meth_set_keygen = 'EVP_PKEY_meth_set_keygen'; - fn_EVP_PKEY_meth_set_sign = 'EVP_PKEY_meth_set_sign'; - fn_EVP_PKEY_meth_set_verify = 'EVP_PKEY_meth_set_verify'; - fn_EVP_PKEY_meth_set_verify_recover = 'EVP_PKEY_meth_set_verify_recover'; - fn_EVP_PKEY_meth_set_signctx = 'EVP_PKEY_meth_set_signctx'; - fn_EVP_PKEY_meth_set_verifyctx = 'EVP_PKEY_meth_set_verifyctx'; - fn_EVP_PKEY_meth_set_encrypt = 'EVP_PKEY_meth_set_encrypt'; - fn_EVP_PKEY_meth_set_decrypt = 'EVP_PKEY_meth_set_decrypt'; - fn_EVP_PKEY_meth_set_derive = 'EVP_PKEY_meth_set_derive'; - fn_EVP_PKEY_meth_set_ctrl = 'EVP_PKEY_meth_set_ctrl'; - - {$IFDEF OPENSSL_FIPS} - {$IFNDEF OPENSSL_NO_ENGINE} - fn_EVP_MD_set_engine_callbacks = 'EVP_MD_set_engine_callbacks'; {Do not localize} - fn_int_EVP_MD_init_engine_callbacks = 'int_EVP_MD_init_engine_callbacks'; {Do not localize} - fn_int_EVP_CIPHER_set_engine_callbacks = 'int_EVP_CIPHER_set_engine_callbacks'; {Do not localize} - fn_int_EVP_CIPHER_init_engine_callbacks = 'int_EVP_CIPHER_init_engine_callbacks'; {Do not localize} - {$ENDIF} - {$ENDIF} - fn_EVP_add_alg_module = 'EVP_add_alg_module'; {Do not localize} - {CH fn_ERR_load_EVP_strings = 'ERR_load_EVP_strings'; } {Do not localize} - {$IFDEF OPENSSL_FIPS} - fn_FIPS_mode_set = 'FIPS_mode_set'; {Do not localize} - fn_FIPS_mode = 'FIPS_mode'; {Do not localize} - {CH fn_FIPS_rand_check = 'FIPS_rand_check'; } {Do not localize} - {CH fn_FIPS_selftest_failed = 'FIPS_selftest_failed'; } {Do not localize} - fn_FIPS_selftest_check = 'FIPS_selftest_check'; {Do not localize} - {CH fn_FIPS_corrupt_sha1 = 'FIPS_corrupt_sha1'; } {Do not localize} - {CH fn_FIPS_selftest_sha1 = 'FIPS_selftest_sha1'; } {Do not localize} - {CH fb_FIPS_corrupt_aes = 'FIPS_corrupt_aes'; } {Do not localize} - {CH fn_FIPS_selftest_aes = 'FIPS_selftest_aes'; } {Do not localize} - {CH fn_FIPS_corrupt_des = 'FIPS_corrupt_des'; } {Do not localize} - {CH fn_FIPS_selftest_des = 'FIPS_selftest_des'; } {Do not localize} - {CH fn_FIPS_corrupt_rsa = 'FIPS_corrupt_rsa'; } {Do not localize} - {CH fn_FIPS_corrupt_rsa_keygen = 'FIPS_corrupt_rsa_keygen'; } {Do not localize} - {CH fn_FIPS_selftest_rsa = 'FIPS_selftest_rsa'; } {Do not localize} - {CH fn_FIPS_corrupt_dsa = 'FIPS_corrupt_dsa'; } {Do not localize} - {CH fn_FIPS_corrupt_dsa_keygen = 'FIPS_corrupt_dsa_keygen'; } {Do not localize} - {CH fn_FIPS_selftest_dsa = 'FIPS_selftest_dsa'; } {Do not localize} - {CH fn_FIPS_corrupt_rng = 'FIPS_corrupt_rng'; } {Do not localize} - {CH fn_FIPS_rng_stick = 'FIPS_rng_stick'; } {Do not localize} - {CH fn_FIPS_selftest_rng = 'FIPS_selftest_rng'; } {Do not localize} - {CH fn_FIPS_selftest_hmac = 'FIPS_selftest_hmac'; } {Do not localize} - {CH fn_fips_pkey_signature_test = 'fips_pkey_signature_test'; } {Do not localize} - {CH fn_fips_cipher_test = 'fips_cipher_test'; } {Do not localize} - //fips_rand.h - {CH fn_FIPS_rand_set_key = 'FIPS_rand_set_key'; } {Do not localize} - {CH fn_FIPS_rand_seed = 'FIPS_rand_seed; } {Do not localize} - {CH fn_FIPS_rand_bytes = 'FIPS_rand_bytes'; } {Do not localize} - {CH fn_FIPS_rand_test_mode = 'FIPS_rand_test_mode'; } {Do not localize} - {CH fn_FIPS_rand_reset = 'FIPS_rand_reset'; } {Do not localize} - {CH fn_FIPS_rand_set_dt = 'FIPS_rand_set_dt'; } {Do not localize} - {CH fn_FIPS_rand_status = 'FIPS_rand_status'; } {Do not localize} - {CH fn_FIPS_rand_method = 'FIPS_rand_method'; } {Do not localize} - {$ENDIF} - {CH fn_sk_X509_ALGOR_new = 'sk_X509_ALGOR_new'; } {Do not localize} - {CH fn_sk_X509_ALGOR_new_null = 'sk_X509_ALGOR_new_null'; } {Do not localize} - {CH fn_sk_X509_ALGOR_free = 'sk_X509_ALGOR_free'; } {Do not localize} - {CH fn_sk_X509_ALGOR_num = 'sk_X509_ALGOR_num'; } {Do not localize} - {CH fn_sk_X509_ALGOR_value = 'sk_X509_ALGOR_value'; } {Do not localize} - {CH fn_sk_X509_ALGOR_set = 'sk_X509_ALGOR_set'; } {Do not localize} - {CH fn_sk_X509_ALGOR_zero = 'sk_X509_ALGOR_zero'; } {Do not localize} - {CH fn_sk_X509_ALGOR_push = 'sk_X509_ALGOR_push'; } {Do not localize} - {CH fn_sk_X509_ALGOR_unshift = 'sk_X509_ALGOR_unshift'; } {Do not localize} - {CH fn_sk_X509_ALGOR_find = 'sk_X509_ALGOR_find'; } {Do not localize} - {CH fn_sk_X509_ALGOR_delete = 'sk_X509_ALGOR_delete'; } {Do not localize} - {CH fn_sk_X509_ALGOR_delete_ptr = 'sk_X509_ALGOR_delete_ptr'; } {Do not localize} - {CH fn_sk_X509_ALGOR_insert = 'sk_X509_ALGOR_insert'; } {Do not localize} - {CH fn_sk_X509_ALGOR_dup = 'sk_X509_ALGOR_dup'; } {Do not localize} - {CH fn_sk_X509_ALGOR_pop_free = 'sk_X509_ALGOR_pop_free'; } {Do not localize} - {CH fn_sk_X509_ALGOR_shift = 'sk_X509_ALGOR_shift'; } {Do not localize} - {CH fn_sk_X509_ALGOR_pop = 'sk_X509_ALGOR_pop'; } {Do not localize} - {CH fn_sk_X509_ALGOR_sort = 'sk_X509_ALGOR_sort'; } {Do not localize} - {CH fn_i2d_ASN1_SET_OF_X509_ALGOR = 'i2d_ASN1_SET_OF_X509_ALGOR'; } {Do not localize} - {CH fn_d2i_ASN1_SET_OF_X509_ALGOR = 'd2i_ASN1_SET_OF_X509_ALGOR'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_new = 'sk_X509_NAME_ENTRY_new'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_new_null = 'sk_X509_NAME_ENTRY_new_null'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_free = 'sk_X509_NAME_ENTRY_free'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_num = 'sk_X509_NAME_ENTRY_num'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_value = 'sk_X509_NAME_ENTRY_value'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_set = 'sk_X509_NAME_ENTRY_set'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_zero = 'sk_X509_NAME_ENTRY_zero'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_push = 'sk_X509_NAME_ENTRY_push'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_unshift = 'sk_X509_NAME_ENTRY_unshift'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_find = 'sk_X509_NAME_ENTRY_find'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_delete = 'sk_X509_NAME_ENTRY_delete'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_delete_ptr = 'sk_X509_NAME_ENTRY_delete_ptr'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_insert = 'sk_X509_NAME_ENTRY_insert'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_dup = 'sk_X509_NAME_ENTRY_dup'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_pop_free = 'sk_X509_NAME_ENTRY_pop_free'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_shift = 'sk_X509_NAME_ENTRY_shift'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_pop = 'sk_X509_NAME_ENTRY_pop'; } {Do not localize} - {CH fn_sk_X509_NAME_ENTRY_sort = 'sk_X509_NAME_ENTRY_sort'; } {Do not localize} - {CH fn_i2d_ASN1_SET_OF_X509_NAME_ENTRY = 'i2d_ASN1_SET_OF_X509_NAME_ENTRY'; } {Do not localize} - {CH fn_d2i_ASN1_SET_OF_X509_NAME_ENTRY = 'd2i_ASN1_SET_OF_X509_NAME_ENTRY'; } {Do not localize} - {CH fn_sk_X509_NAME_new = 'sk_X509_NAME_new'; } {Do not localize} - {CH fn_sk_X509_NAME_new_null = 'sk_X509_NAME_new_null'; } {Do not localize} - {CH fn_sk_X509_NAME_free = 'sk_X509_NAME_free'; } {Do not localize} - {CH fn_sk_X509_NAME_num = 'sk_X509_NAME_num'; } {Do not localize} - {CH fn_sk_X509_NAME_value = 'sk_X509_NAME_value'; } {Do not localize} - {CH fn_sk_X509_NAME_set = 'sk_X509_NAME_set'; } {Do not localize} - {CH fn_sk_X509_NAME_zero = 'sk_X509_NAME_zero'; } {Do not localize} - {CH fn_sk_X509_NAME_push = 'sk_X509_NAME_push'; } {Do not localize} - {CH fn_sk_X509_NAME_unshift = 'sk_X509_NAME_unshift'; } {Do not localize} - {CH fn_sk_X509_NAME_find = 'sk_X509_NAME_find'; } {Do not localize} - {CH fn_sk_X509_NAME_delete = 'sk_X509_NAME_delete'; } {Do not localize} - {CH fn_sk_X509_NAME_delete_ptr = 'sk_X509_NAME_delete_ptr'; } {Do not localize} - {CH fn_sk_X509_NAME_insert = 'sk_X509_NAME_insert'; } {Do not localize} - {CH fn_sk_X509_NAME_dup = 'sk_X509_NAME_dup'; } {Do not localize} - {CH fn_sk_X509_NAME_pop_free = 'sk_X509_NAME_pop_free'; } {Do not localize} - {CH fn_sk_X509_NAME_shift = 'sk_X509_NAME_shift'; } {Do not localize} - {CH fn_sk_X509_NAME_pop = 'sk_X509_NAME_pop'; } {Do not localize} - {CH fn_sk_X509_NAME_sort = 'sk_X509_NAME_sort'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_new = 'sk_X509_EXTENSION_new'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_new_null = 'sk_X509_EXTENSION_new_null'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_free = 'sk_X509_EXTENSION_free'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_num = 'sk_X509_EXTENSION_num'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_value = 'sk_X509_EXTENSION_value'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_set = 'sk_X509_EXTENSION_set'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_zero = 'sk_X509_EXTENSION_zero'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_push = 'sk_X509_EXTENSION_push'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_unshift = 'sk_X509_EXTENSION_unshift'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_find = 'sk_X509_EXTENSION_find'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_delete = 'sk_X509_EXTENSION_delete'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_delete_ptr = 'sk_X509_EXTENSION_delete_ptr'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_insert = 'sk_X509_EXTENSION_insert'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_dup = 'sk_X509_EXTENSION_dup'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_pop_free = 'sk_X509_EXTENSION_pop_free'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_shift = 'sk_X509_EXTENSION_shift'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_pop = 'sk_X509_EXTENSION_pop'; } {Do not localize} - {CH fn_sk_X509_EXTENSION_sort = 'sk_X509_EXTENSION_sort'; } {Do not localize} - {CH fn_i2d_ASN1_SET_OF_X509_EXTENSION = 'i2d_ASN1_SET_OF_X509_EXTENSION'; } {Do not localize} - {CH fn_d2i_ASN1_SET_OF_X509_EXTENSION = 'd2i_ASN1_SET_OF_X509_EXTENSION'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_new = 'sk_X509_ATTRIBUTE_new'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_new_null = 'sk_X509_ATTRIBUTE_new_null'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_free = 'sk_X509_ATTRIBUTE_free'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_num = 'sk_X509_ATTRIBUTE_num'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_value = 'sk_X509_ATTRIBUTE_value'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_set = 'sk_X509_ATTRIBUTE_set'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_zero = 'sk_X509_ATTRIBUTE_zero'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_push = 'sk_X509_ATTRIBUTE_push'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_unshift = 'sk_X509_ATTRIBUTE_unshift'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_find = 'sk_X509_ATTRIBUTE_find'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_delete = 'sk_X509_ATTRIBUTE_delete'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_delete_ptr = 'sk_X509_ATTRIBUTE_delete_ptr'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_insert = 'sk_X509_ATTRIBUTE_insert'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_dup = 'sk_X509_ATTRIBUTE_dup'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_pop_free = 'sk_X509_ATTRIBUTE_pop_free'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_shift = 'sk_X509_ATTRIBUTE_shift'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_pop = 'sk_X509_ATTRIBUTE_pop'; } {Do not localize} - {CH fn_sk_X509_ATTRIBUTE_sort = 'sk_X509_ATTRIBUTE_sort'; } {Do not localize} - {CH fn_i2d_ASN1_SET_OF_X509_ATTRIBUTE = 'i2d_ASN1_SET_OF_X509_ATTRIBUTE'; } {Do not localize} - {CH fn_d2i_ASN1_SET_OF_X509_ATTRIBUTE = 'd2i_ASN1_SET_OF_X509_ATTRIBUTE'; } {Do not localize} - {CH fn_sk_X509_new = 'sk_X509_new'; } {Do not localize} - {CH fn_sk_X509_new_null = 'sk_X509_new_null'; } {Do not localize} - {CH fn_sk_X509_free = 'sk_X509_free'; } {Do not localize} - {CH fn_sk_X509_num = 'sk_X509_num'; } {Do not localize} - {CH fn_sk_X509_value = 'sk_X509_value'; } {Do not localize} - {CH fn_sk_X509_set = 'sk_X509_set'; } {Do not localize} - {CH fn_sk_X509_zero = 'sk_X509_zero'; } {Do not localize} - {CH fn_sk_X509_push = 'sk_X509_push'; } {Do not localize} - {CH fn_sk_X509_unshift = 'sk_X509_unshift'; } {Do not localize} - {CH fn_sk_X509_find = 'sk_X509_find'; } {Do not localize} - {CH fn_sk_X509_delete = 'sk_X509_delete'; } {Do not localize} - {CH fn_sk_X509_delete_ptr = 'sk_X509_delete_ptr'; } {Do not localize} - {CH fn_sk_X509_insert = 'sk_X509_insert'; } {Do not localize} - {CH fn_sk_X509_dup = 'sk_X509_dup'; } {Do not localize} - {CH fn_sk_X509_pop_free = 'sk_X509_pop_free'; } {Do not localize} - {CH fn_sk_X509_shift = 'sk_X509_shift'; } {Do not localize} - {CH fn_sk_X509_pop = 'sk_X509_pop'; } {Do not localize} - {CH fn_sk_X509_sort = 'sk_X509_sort'; } {Do not localize} - {CH fn_i2d_ASN1_SET_OF_X509 = 'i2d_ASN1_SET_OF_X509'; } {Do not localize} - {CH fn_d2i_ASN1_SET_OF_X509 = 'd2i_ASN1_SET_OF_X509'; } {Do not localize} - {CH fn_sk_X509_REVOKED_new = 'sk_X509_REVOKED_new'; } {Do not localize} - {CH fn_sk_X509_REVOKED_new_null = 'sk_X509_REVOKED_new_null'; } {Do not localize} - {CH fn_sk_X509_REVOKED_free = 'sk_X509_REVOKED_free'; } {Do not localize} - {CH fn_sk_X509_REVOKED_num = 'sk_X509_REVOKED_num'; } {Do not localize} - {CH fn_sk_X509_REVOKED_value = 'sk_X509_REVOKED_value'; } {Do not localize} - {CH fn_sk_X509_REVOKED_set = 'sk_X509_REVOKED_set'; } {Do not localize} - {CH fn_sk_X509_REVOKED_zero = 'sk_X509_REVOKED_zero'; } {Do not localize} - {CH fn_sk_X509_REVOKED_push = 'sk_X509_REVOKED_push'; } {Do not localize} - {CH fn_sk_X509_REVOKED_unshift = 'sk_X509_REVOKED_unshift'; } {Do not localize} - {CH fn_sk_X509_REVOKED_find = 'sk_X509_REVOKED_find'; } {Do not localize} - {CH fn_sk_X509_REVOKED_delete = 'sk_X509_REVOKED_delete'; } {Do not localize} - {CH fn_sk_X509_REVOKED_delete_ptr = 'sk_X509_REVOKED_delete_ptr'; } {Do not localize} - {CH fn_sk_X509_REVOKED_insert = 'sk_X509_REVOKED_insert'; } {Do not localize} - {CH fn_sk_X509_REVOKED_dup = 'sk_X509_REVOKED_dup'; } {Do not localize} - {CH fn_sk_X509_REVOKED_pop_free = 'sk_X509_REVOKED_pop_free'; } {Do not localize} - {CH fn_sk_X509_REVOKED_shift = 'sk_X509_REVOKED_shift'; } {Do not localize} - {CH fn_sk_X509_REVOKED_pop = 'sk_X509_REVOKED_pop'; } {Do not localize} - {CH fn_sk_X509_REVOKED_sort = 'sk_X509_REVOKED_sort'; } {Do not localize} - {CH fn_i2d_ASN1_SET_OF_X509_REVOKED = 'i2d_ASN1_SET_OF_X509_REVOKED'; } {Do not localize} - {CH fn_d2i_ASN1_SET_OF_X509_REVOKED = 'd2i_ASN1_SET_OF_X509_REVOKED'; } {Do not localize} - {CH fn_sk_X509_CRL_new = 'sk_X509_CRL_new'; } {Do not localize} - {CH fn_sk_X509_CRL_new_null = 'sk_X509_CRL_new_null'; } {Do not localize} - {CH fn_sk_X509_CRL_free = 'sk_X509_CRL_free'; } {Do not localize} - {CH fn_sk_X509_CRL_num = 'sk_X509_CRL_num'; } {Do not localize} - {CH fn_sk_X509_CRL_value = 'sk_X509_CRL_value'; } {Do not localize} - {CH fn_sk_X509_CRL_set = 'sk_X509_CRL_set'; } {Do not localize} - {CH fn_sk_X509_CRL_zero = 'sk_X509_CRL_zero'; } {Do not localize} - {CH fn_sk_X509_CRL_push = 'sk_X509_CRL_push'; } {Do not localize} - {CH fn_sk_X509_CRL_unshift = 'sk_X509_CRL_unshift'; } {Do not localize} - {CH fn_sk_X509_CRL_find = 'sk_X509_CRL_find'; } {Do not localize} - {CH fn_sk_X509_CRL_delete = 'sk_X509_CRL_delete'; } {Do not localize} - {CH fn_sk_X509_CRL_delete_ptr = 'sk_X509_CRL_delete_ptr'; } {Do not localize} - {CH fn_sk_X509_CRL_insert = 'sk_X509_CRL_insert'; } {Do not localize} - {CH fn_sk_X509_CRL_dup = 'sk_X509_CRL_dup'; } {Do not localize} - {CH fn_sk_X509_CRL_pop_free = 'sk_X509_CRL_pop_free'; } {Do not localize} - {CH fn_sk_X509_CRL_shift = 'sk_X509_CRL_shift'; } {Do not localize} - {CH fn_sk_X509_CRL_pop = 'sk_X509_CRL_pop'; } {Do not localize} - {CH fn_sk_X509_CRL_sort = 'sk_X509_CRL_sort'; } {Do not localize} - {CH fn_i2d_ASN1_SET_OF_X509_CRL = 'i2d_ASN1_SET_OF_X509_CRL'; } {Do not localize} - {CH fn_d2i_ASN1_SET_OF_X509_CRL = 'd2i_ASN1_SET_OF_X509_CRL'; } {Do not localize} - {CH fn_sk_X509_INFO_new = 'sk_X509_INFO_new'; } {Do not localize} - {CH fn_sk_X509_INFO_new_null = 'sk_X509_INFO_new_null'; } {Do not localize} - {CH fn_sk_X509_INFO_free = 'sk_X509_INFO_free'; } {Do not localize} - {CH fn_sk_X509_INFO_num = 'sk_X509_INFO_num'; } {Do not localize} - {CH fn_sk_X509_INFO_value = 'sk_X509_INFO_value'; } {Do not localize} - {CH fn_sk_X509_INFO_set = 'sk_X509_INFO_set'; } {Do not localize} - {CH fn_sk_X509_INFO_zero = 'sk_X509_INFO_zero'; } {Do not localize} - {CH fn_sk_X509_INFO_push = 'sk_X509_INFO_push'; } {Do not localize} - {CH fn_sk_X509_INFO_unshift = 'sk_X509_INFO_unshift'; } {Do not localize} - {CH fn_sk_X509_INFO_find = 'sk_X509_INFO_find'; } {Do not localize} - {CH fn_sk_X509_INFO_delete = 'sk_X509_INFO_delete'; } {Do not localize} - {CH fn_sk_X509_INFO_delete_ptr = 'sk_X509_INFO_delete_ptr'; } {Do not localize} - {CH fn_sk_X509_INFO_insert = 'sk_X509_INFO_insert'; } {Do not localize} - {CH fn_sk_X509_INFO_dup = 'sk_X509_INFO_dup'; } {Do not localize} - {CH fn_sk_X509_INFO_pop_free = 'sk_X509_INFO_pop_free'; } {Do not localize} - {CH fn_sk_X509_INFO_shift = 'sk_X509_INFO_shift'; } {Do not localize} - {CH fn_sk_X509_INFO_pop = 'sk_X509_INFO_pop'; } {Do not localize} - {CH fn_sk_X509_INFO_sort = 'sk_X509_INFO_sort'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_new = 'sk_X509_LOOKUP_new'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_new_null = 'sk_X509_LOOKUP_new_null'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_free = 'sk_X509_LOOKUP_free'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_num = 'sk_X509_LOOKUP_num'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_value = 'sk_X509_LOOKUP_value'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_set = 'sk_X509_LOOKUP_set'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_zero = 'sk_X509_LOOKUP_zero'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_push = 'sk_X509_LOOKUP_push'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_unshift = 'sk_X509_LOOKUP_unshift'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_find = 'sk_X509_LOOKUP_find'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_delete = 'sk_X509_LOOKUP_delete'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_delete_ptr = 'sk_X509_LOOKUP_delete_ptr'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_insert = 'sk_X509_LOOKUP_insert'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_dup = 'sk_X509_LOOKUP_dup'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_pop_free = 'sk_X509_LOOKUP_pop_free'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_shift = 'sk_X509_LOOKUP_shift'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_pop = 'sk_X509_LOOKUP_pop'; } {Do not localize} - {CH fn_sk_X509_LOOKUP_sort = 'sk_X509_LOOKUP_sort'; } {Do not localize} - {CH fn_X509_OBJECT_retrieve_by_subject = 'X509_OBJECT_retrieve_by_subject'; } {Do not localize} - {CH fn_X509_OBJECT_up_ref_count = 'X509_OBJECT_up_ref_count'; } {Do not localize} - {CH fn_X509_OBJECT_free_contents = 'X509_OBJECT_free_contents'; } {Do not localize} - {CH fn_X509_STORE_new = 'X509_STORE_new'; } {Do not localize} - {CH fn_X509_STORE_free = 'X509_STORE_free'; } {Do not localize} - {CH fn_X509_STORE_CTX_init = 'X509_STORE_CTX_init'; } {Do not localize} - {CH fn_X509_STORE_CTX_cleanup = 'X509_STORE_CTX_cleanup'; } {Do not localize} - fn_X509_STORE_add_lookup = 'X509_STORE_add_lookup'; {Do not localize} - {CH fn_X509_LOOKUP_hash_dir = 'X509_LOOKUP_hash_dir'; } {Do not localize} - {CH fn_X509_LOOKUP_file = 'X509_LOOKUP_file'; } {Do not localize} - fn_X509_STORE_add_cert = 'X509_STORE_add_cert'; {Do not localize} - fn_X509_STORE_add_crl = 'X509_STORE_add_crl'; {Do not localize} - {CH fn_X509_STORE_get_by_subject = 'X509_STORE_get_by_subject'; } {Do not localize} - fn_X509_LOOKUP_ctrl = 'X509_LOOKUP_ctrl'; {Do not localize} - {CH fn_X509_load_cert_file = 'X509_load_cert_file'; } {Do not localize} - {CH fn_X509_load_crl_file = 'X509_load_crl_file'; } {Do not localize} - {CH fn_X509_LOOKUP_new = 'X509_LOOKUP_new'; } {Do not localize} - {CH fn_X509_LOOKUP_free = 'X509_LOOKUP_free'; } {Do not localize} - {CH fn_X509_LOOKUP_init = 'X509_LOOKUP_init'; } {Do not localize} - {CH fn_X509_LOOKUP_by_subject = 'X509_LOOKUP_by_subject'; } {Do not localize} - {CH fn_X509_LOOKUP_by_issuer_serial = 'X509_LOOKUP_by_issuer_serial'; } {Do not localize} - {CH fn_X509_LOOKUP_by_fingerprint = 'X509_LOOKUP_by_fingerprint'; } {Do not localize} - {CH fn_X509_LOOKUP_by_alias = 'X509_LOOKUP_by_alias'; } {Do not localize} - {CH fn_X509_LOOKUP_shutdown = 'X509_LOOKUP_shutdown'; } {Do not localize} - fn_X509_STORE_load_locations = 'X509_STORE_load_locations'; {Do not localize} - {CH fn_X509_STORE_set_default_paths = 'X509_STORE_set_default_paths'; } {Do not localize} - {CH fn_X509_STORE_CTX_get_ex_new_index = 'X509_STORE_CTX_get_ex_new_index'; } {Do not localize} - {CH fn_X509_STORE_CTX_set_ex_data = 'X509_STORE_CTX_set_ex_data'; } {Do not localize} - fn_X509_STORE_CTX_get_ex_data = 'X509_STORE_CTX_get_ex_data'; {Do not localize} - fn_X509_STORE_CTX_get_error = 'X509_STORE_CTX_get_error'; {Do not localize} - fn_X509_STORE_CTX_set_error = 'X509_STORE_CTX_set_error'; {Do not localize} - fn_X509_STORE_CTX_get_error_depth = 'X509_STORE_CTX_get_error_depth'; {Do not localize} - fn_X509_STORE_CTX_get_current_cert = 'X509_STORE_CTX_get_current_cert'; {Do not localize} - {CH fn_X509_STORE_CTX_get_chain = 'X509_STORE_CTX_get_chain'; } {Do not localize} - {CH fn_X509_STORE_CTX_set_cert = 'X509_STORE_CTX_set_cert'; } {Do not localize} - {CH fn_X509_STORE_CTX_set_chain = 'X509_STORE_CTX_set_chain'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_new = 'sk_PKCS7_SIGNER_INFO_new'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_new_null = 'sk_PKCS7_SIGNER_INFO_new_null'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_free = 'sk_PKCS7_SIGNER_INFO_free'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_num = 'sk_PKCS7_SIGNER_INFO_num'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_value = 'sk_PKCS7_SIGNER_INFO_value'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_set = 'sk_PKCS7_SIGNER_INFO_set'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_zero = 'sk_PKCS7_SIGNER_INFO_zero'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_push = 'sk_PKCS7_SIGNER_INFO_push'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_unshift = 'sk_PKCS7_SIGNER_INFO_unshift'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_find = 'sk_PKCS7_SIGNER_INFO_find'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_delete = 'sk_PKCS7_SIGNER_INFO_delete'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_delete_ptr = 'sk_PKCS7_SIGNER_INFO_delete_ptr'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_insert = 'sk_PKCS7_SIGNER_INFO_insert'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_dup = 'sk_PKCS7_SIGNER_INFO_dup'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_pop_free = 'sk_PKCS7_SIGNER_INFO_pop_free'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_shift = 'sk_PKCS7_SIGNER_INFO_shift'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_pop = 'sk_PKCS7_SIGNER_INFO_pop'; } {Do not localize} - {CH fn_sk_PKCS7_SIGNER_INFO_sort = 'sk_PKCS7_SIGNER_INFO_sort'; } {Do not localize} - {CH fn_i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO = 'i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO'; } {Do not localize} - {CH fn_d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO = 'd2i_ASN1_SET_OF_PKCS7_SIGNER_INFO'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_new = 'sk_PKCS7_RECIP_INFO_new'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_new_null = 'sk_PKCS7_RECIP_INFO_new_null'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_free = 'sk_PKCS7_RECIP_INFO_free'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_num = 'sk_PKCS7_RECIP_INFO_num'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_value = 'sk_PKCS7_RECIP_INFO_value'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_set = 'sk_PKCS7_RECIP_INFO_set'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_zero = 'sk_PKCS7_RECIP_INFO_zero'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_push = 'sk_PKCS7_RECIP_INFO_push'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_unshift = 'sk_PKCS7_RECIP_INFO_unshift'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_find = 'sk_PKCS7_RECIP_INFO_find'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_delete = 'sk_PKCS7_RECIP_INFO_delete'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_delete_ptr = 'sk_PKCS7_RECIP_INFO_delete_ptr'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_insert = 'sk_PKCS7_RECIP_INFO_insert'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_dup = 'sk_PKCS7_RECIP_INFO_dup'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_pop_free = 'sk_PKCS7_RECIP_INFO_pop_free'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_shift = 'sk_PKCS7_RECIP_INFO_shift'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_pop = 'sk_PKCS7_RECIP_INFO_pop'; } {Do not localize} - {CH fn_sk_PKCS7_RECIP_INFO_sort = 'sk_PKCS7_RECIP_INFO_sort'; } {Do not localize} - {CH fn_i2d_ASN1_SET_OF_PKCS7_RECIP_INFO = 'i2d_ASN1_SET_OF_PKCS7_RECIP_INFO'; } {Do not localize} - {CH fn_d2i_ASN1_SET_OF_PKCS7_RECIP_INFO = 'd2i_ASN1_SET_OF_PKCS7_RECIP_INFO'; } {Do not localize} - {CH fn_PKCS7_ISSUER_AND_SERIAL_new = 'PKCS7_ISSUER_AND_SERIAL_new'; } {Do not localize} - {CH fn_PKCS7_ISSUER_AND_SERIAL_free = 'PKCS7_ISSUER_AND_SERIAL_free'; } {Do not localize} - {CH fn_i2d_PKCS7_ISSUER_AND_SERIAL = 'i2d_PKCS7_ISSUER_AND_SERIAL'; } {Do not localize} - {CH fn_d2i_PKCS7_ISSUER_AND_SERIAL = 'd2i_PKCS7_ISSUER_AND_SERIAL'; } {Do not localize} - {CH fn_PKCS7_ISSUER_AND_SERIAL_digest = 'PKCS7_ISSUER_AND_SERIAL_digest'; } {Do not localize} - {$IFNDEF OPENSSL_NO_FP_API} - {CH fn_d2i_PKCS7_fp = 'd2i_PKCS7_fp'; } {Do not localize} - {CH fn_i2d_PKCS7_fp = 'i2d_PKCS7_fp'; } {Do not localize} - {$ENDIF} - {CH fn_PKCS7_dup = 'PKCS7_dup'; } {Do not localize} - {CH fn_d2i_PKCS7_bio = 'd2i_PKCS7_bio'; } {Do not localize} - {CH fn_i2d_PKCS7_bio = 'i2d_PKCS7_bio'; } {Do not localize} - {CH fn_PKCS7_SIGNER_INFO_new = 'PKCS7_SIGNER_INFO_new'; } {Do not localize} - {CH fn_PKCS7_SIGNER_INFO_free = 'PKCS7_SIGNER_INFO_free'; } {Do not localize} - {CH fn_i2d_PKCS7_SIGNER_INFO = 'i2d_PKCS7_SIGNER_INFO'; } {Do not localize} - {CH fn_d2i_PKCS7_SIGNER_INFO = 'd2i_PKCS7_SIGNER_INFO'; } {Do not localize} - {CH fn_PKCS7_RECIP_INFO_new = 'PKCS7_RECIP_INFO_new'; } {Do not localize} - {CH fn_PKCS7_RECIP_INFO_free = 'PKCS7_RECIP_INFO_free'; } {Do not localize} - {CH fn_i2d_PKCS7_RECIP_INFO = 'i2d_PKCS7_RECIP_INFO'; } {Do not localize} - {CH fn_d2i_PKCS7_RECIP_INFO = 'd2i_PKCS7_RECIP_INFO'; } {Do not localize} - {CH fn_PKCS7_SIGNED_new = 'PKCS7_SIGNED_new'; } {Do not localize} - {CH fn_PKCS7_SIGNED_free = 'PKCS7_SIGNED_free'; } {Do not localize} - {CH fn_i2d_PKCS7_SIGNED = 'i2d_PKCS7_SIGNED'; } {Do not localize} - {CH fn_d2i_PKCS7_SIGNED = 'd2i_PKCS7_SIGNED'; } {Do not localize} - {CH fn_PKCS7_ENC_CONTENT_new = 'PKCS7_ENC_CONTENT_new'; } {Do not localize} - {CH fn_PKCS7_ENC_CONTENT_free = 'PKCS7_ENC_CONTENT_free'; } {Do not localize} - {CH fn_i2d_PKCS7_ENC_CONTENT = 'i2d_PKCS7_ENC_CONTENT'; } {Do not localize} - {CH fn_d2i_PKCS7_ENC_CONTENT = 'd2i_PKCS7_ENC_CONTENT'; } {Do not localize} - {CH fn_PKCS7_ENVELOPE_new = 'PKCS7_ENVELOPE_new'; } {Do not localize} - {CH fn_PKCS7_ENVELOPE_free = 'PKCS7_ENVELOPE_free'; } {Do not localize} - {CH fn_i2d_PKCS7_ENVELOPE = 'i2d_PKCS7_ENVELOPE'; } {Do not localize} - {CH fn_d2i_PKCS7_ENVELOPE = 'd2i_PKCS7_ENVELOPE'; } {Do not localize} - {CH fn_PKCS7_SIGN_ENVELOPE_new = 'PKCS7_SIGN_ENVELOPE_new'; } {Do not localize} - {CH fn_PKCS7_SIGN_ENVELOPE_free = 'PKCS7_SIGN_ENVELOPE_free'; } {Do not localize} - {CH fn_i2d_PKCS7_SIGN_ENVELOPE = 'i2d_PKCS7_SIGN_ENVELOPE'; } {Do not localize} - {CH fn_d2i_PKCS7_SIGN_ENVELOPE = 'd2i_PKCS7_SIGN_ENVELOPE'; } {Do not localize} - {CH fn_PKCS7_DIGEST_new = 'PKCS7_DIGEST_new'; } {Do not localize} - {CH fn_PKCS7_DIGEST_free = 'PKCS7_DIGEST_free'; } {Do not localize} - {CH fn_i2d_PKCS7_DIGEST = 'i2d_PKCS7_DIGEST'; } {Do not localize} - {CH fn_d2i_PKCS7_DIGEST = 'd2i_PKCS7_DIGEST'; } {Do not localize} - {CH fn_PKCS7_ENCRYPT_new = 'PKCS7_ENCRYPT_new'; } {Do not localize} - {CH fn_PKCS7_ENCRYPT_free = 'PKCS7_ENCRYPT_free'; } {Do not localize} - {CH fn_i2d_PKCS7_ENCRYPT = 'i2d_PKCS7_ENCRYPT'; } {Do not localize} - {CH fn_d2i_PKCS7_ENCRYPT = 'd2i_PKCS7_ENCRYPT'; } {Do not localize} - {CH fn_PKCS7_new = 'PKCS7_new'; } {Do not localize} - {CH fn_PKCS7_free = 'PKCS7_free'; } {Do not localize} - {CH fn_PKCS7_content_free = 'PKCS7_content_free'; } {Do not localize} - fn_i2d_PKCS7 = 'i2d_PKCS7'; {Do not localize} - fn_d2i_PKCS7 = 'd2i_PKCS7'; {Do not localize} - {CH fn_ERR_load_PKCS7_strings = 'ERR_load_PKCS7_strings'; } {Do not localize} - {CH fn_PKCS7_ctrl = 'PKCS7_ctrl'; } {Do not localize} - {CH fn_PKCS7_set_type = 'PKCS7_set_type'; } {Do not localize} - {CH fn_PKCS7_set_content = 'PKCS7_set_content'; } {Do not localize} - {CH fn_PKCS7_SIGNER_INFO_set = 'PKCS7_SIGNER_INFO_set'; } {Do not localize} - {CH fn_PKCS7_add_signer = 'PKCS7_add_signer'; } {Do not localize} - {CH fn_PKCS7_add_certificate = 'PKCS7_add_certificate'; } {Do not localize} - {CH fn_PKCS7_add_crl = 'PKCS7_add_crl'; } {Do not localize} - {CH fn_PKCS7_content_new = 'PKCS7_content_new'; } {Do not localize} - {CH fn_PKCS7_dataVerify = 'PKCS7_dataVerify'; } {Do not localize} - {CH fn_PKCS7_signatureVerify = 'PKCS7_signatureVerify'; } {Do not localize} - {CH fn_PKCS7_dataInit = 'PKCS7_dataInit'; } {Do not localize} - {CH fn_PKCS7_dataFinal = 'PKCS7_dataFinal'; } {Do not localize} - {CH fn_PKCS7_dataDecode = 'PKCS7_dataDecode'; } {Do not localize} - {CH fn_PKCS7_add_signature = 'PKCS7_add_signature'; } {Do not localize} - {CH fn_PKCS7_cert_from_signer_info = 'PKCS7_cert_from_signer_info'; } {Do not localize} - {CH fn_PKCS7_get_signer_info = 'PKCS7_get_signer_info'; } {Do not localize} - {CH fn_PKCS7_add_recipient = 'PKCS7_add_recipient'; } {Do not localize} - {CH fn_PKCS7_add_recipient_info = 'PKCS7_add_recipient_info'; } {Do not localize} - {CH fn_PKCS7_RECIP_INFO_set = 'PKCS7_RECIP_INFO_set'; } {Do not localize} - {CH fn_PKCS7_set_cipher = 'PKCS7_set_cipher'; } {Do not localize} - {CH fn_PKCS7_get_issuer_and_serial = 'PKCS7_get_issuer_and_serial'; } {Do not localize} - {CH fn_PKCS7_digest_from_attributes = 'PKCS7_digest_from_attributes'; } {Do not localize} - {CH fn_PKCS7_add_signed_attribute = 'PKCS7_add_signed_attribute'; } {Do not localize} - {CH fn_PKCS7_add_attribute = 'PKCS7_add_attribute'; } {Do not localize} - {CH fn_PKCS7_get_attribute = 'PKCS7_get_attribute'; } {Do not localize} - {CH fn_PKCS7_get_signed_attribute = 'PKCS7_get_signed_attribute'; } {Do not localize} - {CH fn_PKCS7_set_signed_attributes = 'PKCS7_set_signed_attributes'; } {Do not localize} - {CH fn_PKCS7_set_attributes = 'PKCS7_set_attributes'; } {Do not localize} - {CH fn_X509_verify_cert_error_string = 'X509_verify_cert_error_string'; } {Do not localize} - fn_X509_verify = 'X509_verify'; {Do not localize} - {CH fn_X509_REQ_verify = 'X509_REQ_verify'; } {Do not localize} - {CH fn_X509_CRL_verify = 'X509_CRL_verify'; } {Do not localize} - {CH fn_NETSCAPE_SPKI_verify = 'NETSCAPE_SPKI_verify'; } {Do not localize} - fn_X509_sign = 'X509_sign'; {Do not localize} - fn_X509_REQ_sign = 'X509_REQ_sign'; {Do not localize} - fn_X509V3_set_ctx = 'X509V3_set_ctx'; {Do not localize} - fn_X509V3_EXT_conf_nid = 'X509V3_EXT_conf_nid'; {Do not localize} - fn_X509_REQ_add_extensions = 'X509_REQ_add_extensions'; {Do not localize} - {CH fn_X509_CRL_sign = 'X509_CRL_sign'; } {Do not localize} - {CH fn_NETSCAPE_SPKI_sign = 'NETSCAPE_SPKI_sign'; } {Do not localize} - fn_X509_digest = 'X509_digest'; {Do not localize} - {CH fn_X509_NAME_digest = 'X509_NAME_digest'; } {Do not localize} - {CH fn_d2i_X509_fp = 'd2i_X509_fp'; } {Do not localize} - {CH fn_i2d_X509_fp = 'i2d_X509_fp'; } {Do not localize} - {CH fn_d2i_X509_CRL_fp = 'd2i_X509_CRL_fp'; } {Do not localize} - {CH fn_i2d_X509_CRL_fp = 'i2d_X509_CRL_fp'; } {Do not localize} - {CH fn_d2i_X509_REQ_fp = 'd2i_X509_REQ_fp'; } {Do not localize} - {CH fn_i2d_X509_REQ_fp = 'i2d_X509_REQ_fp'; } {Do not localize} - {$IFNDEF OPENSSL_NO_RSA} - {CH fn_d2i_RSAPrivateKey_fp = 'd2i_RSAPrivateKey_fp'; } {Do not localize} - {CH fn_i2d_RSAPrivateKey_fp = 'i2d_RSAPrivateKey_fp'; } {Do not localize} - {CH fn_d2i_RSAPublicKey_fp = 'd2i_RSAPublicKey_fp'; } {Do not localize} - {CH fn_i2d_RSAPublicKey_fp = 'i2d_RSAPublicKey_fp'; } {Do not localize} - {CH fn_d2i_RSA_PUBKEY_fp = 'd2i_RSA_PUBKEY_fp'; } {Do not localize} - {CH fn_i2d_RSA_PUBKEY_fp = 'i2d_RSA_PUBKEY_fp'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_DSA} - {CH fn_d2i_DSA_PUBKEY_fp = 'd2i_DSA_PUBKEY_fp'; } {Do not localize} - {CH fn_i2d_DSA_PUBKEY_fp = 'i2d_DSA_PUBKEY_fp'; } {Do not localize} - {CH fn_d2i_DSAPrivateKey_fp = 'd2i_DSAPrivateKey_fp'; } {Do not localize} - {CH fn_i2d_DSAPrivateKey_fp = 'i2d_DSAPrivateKey_fp'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_EC} - {CH fn_d2i_EC_PUBKEY_fp = 'd2i_EC_PUBKEY_fp'; } {Do not localize} - {CH fn_i2d_EC_PUBKEY_fp = 'i2d_EC_PUBKEY_fp'; } {Do not localize} - {CH fn_d2i_ECPrivateKey_fp = 'd2i_ECPrivateKey_fp'; } {Do not localize} - {CH fn_i2d_ECPrivateKey_fp = 'i2d_ECPrivateKey_fp'; } {Do not localize} - {$ENDIF} - {CH fn_d2i_PKCS8_fp = 'd2i_PKCS8_fp'; } {Do not localize} - {CH fn_i2d_PKCS8_fp = 'i2d_PKCS8_fp'; } {Do not localize} - {CH fn_d2i_PKCS8_PRIV_KEY_INFO_fp = 'd2i_PKCS8_PRIV_KEY_INFO_fp'; } {Do not localize} - {CH fn_i2d_PKCS8_PRIV_KEY_INFO_fp = 'i2d_PKCS8_PRIV_KEY_INFO_fp'; } {Do not localize} - {$IFNDEF OPENSSL_NO_BIO} - fn_d2i_X509_bio = 'd2i_X509_bio'; {Do not localize} - fn_i2d_X509_bio = 'i2d_X509_bio'; {Do not localize} - fn_d2i_PKCS12_bio = 'd2i_PKCS12_bio'; {Do not localize} - fn_PKCS12_parse = 'PKCS12_parse'; {Do not localize} - fn_i2d_PrivateKey_bio = 'i2d_PrivateKey_bio'; {Do not localize} - fn_d2i_X509_CRL_bio = 'd2i_X509_CRL_bio'; {Do not localize} - fn_i2d_X509_CRL_bio = 'i2d_X509_CRL_bio'; {Do not localize} - fn_d2i_X509_REQ_bio = 'd2i_X509_REQ_bio'; {Do not localize} - fn_i2d_X509_REQ_bio = 'i2d_X509_REQ_bio'; {Do not localize} - {$IFNDEF OPENSSL_NO_RSA} - fn_d2i_RSAPrivateKey_bio = 'd2i_RSAPrivateKey_bio'; {Do not localize} - fn_i2d_RSAPrivateKey_bio = 'i2d_RSAPrivateKey_bio'; {Do not localize} - fn_d2i_RSAPublicKey_bio = 'd2i_RSAPublicKey_bio'; {Do not localize} - fn_i2d_RSAPublicKey_bio = 'i2d_RSAPublicKey_bio'; {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_DSA} - {CH fn_d2i_DSA_PUBKEY_bio = 'd2i_DSA_PUBKEY_bio'; } {Do not localize} - {CH fn_i2d_DSA_PUBKEY_bio = 'i2d_DSA_PUBKEY_bio'; } {Do not localize} - {CH fn_d2i_DSAPrivateKey_bio = 'd2i_DSAPrivateKey_bio'; } {Do not localize} - {CH fn_i2d_DSAPrivateKey_bio = 'i2d_DSAPrivateKey_bio'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_EC} - {CH fn_d2i_EC_PUBKEY_bio = 'd2i_EC_PUBKEY_bio'; } {Do not localize} - {CH fn_i2d_EC_PUBKEY_bio = 'i2d_EC_PUBKEY_bio'; } {Do not localize} - {CH fn_d2i_ECPrivateKey_bio = 'd2i_ECPrivateKey_bio'; } {Do not localize} - {CH fn_i2d_ECPrivateKey_bio = 'i2d_ECPrivateKey_bio'; } {Do not localize} - {$ENDIF} - {CH fn_d2i_PKCS8_bio = 'd2i_PKCS8_bio'; } {Do not localize} - {CH fn_i2d_PKCS8_bio = 'i2d_PKCS8_bio'; } {Do not localize} - {CH fn_d2i_PKCS8_PRIV_KEY_INFO_bio = 'd2i_PKCS8_PRIV_KEY_INFO_bio'; } {Do not localize} - {CH fn_i2d_PKCS8_PRIV_KEY_INFO_bio = 'i2d_PKCS8_PRIV_KEY_INFO_bio'; } {Do not localize} - fn_d2i_PrivateKey_bio = 'd2i_PrivateKey_bio'; {Do not localize} - {CH fn_i2d_PUBKEY_bio = 'i2d_PUBKEY_bio'; } {Do not localize} - {CH fn_d2i_PUBKEY_bio = 'd2i_PUBKEY_bio'; } {Do not localize} - {$ENDIF} - {CH fn_X509_dup = 'X509_dup'; } {Do not localize} - {CH fn_X509_ATTRIBUTE_dup = 'X509_ATTRIBUTE_dup'; } {Do not localize} - {CH fn_X509_EXTENSION_dup = 'X509_EXTENSION_dup'; } {Do not localize} - {CH fn_X509_CRL_dup = 'X509_CRL_dup'; } {Do not localize} - {CH fn_X509_REQ_dup = 'X509_REQ_dup'; } {Do not localize} - {CH fn_X509_ALGOR_dup = 'X509_ALGOR_dup'; } {Do not localize} - {CH fn_X509_NAME_dup = 'X509_NAME_dup'; } {Do not localize} - {CH fn_X509_NAME_ENTRY_dup = 'X509_NAME_ENTRY_dup'; } {Do not localize} - {CH fn_RSAPublicKey_dup = 'RSAPublicKey_dup'; } {Do not localize} - {CH fn_RSAPrivateKey_dup = 'RSAPrivateKey_dup'; } {Do not localize} - {CH fn_X509_cmp_current_time = 'X509_cmp_current_time'; } {Do not localize} - fn_X509_gmtime_adj = 'X509_gmtime_adj'; {Do not localize} - {CH fn_X509_get_default_cert_area = 'X509_get_default_cert_area'; } {Do not localize} - {CH fn_X509_get_default_cert_dir = 'X509_get_default_cert_dir'; } {Do not localize} - fn_X509_get_default_cert_file = 'X509_get_default_cert_file'; {Do not localize} - {CH fn_X509_get_default_cert_dir_env = 'X509_get_default_cert_dir_env'; } {Do not localize} - fn_X509_get_default_cert_file_env = 'X509_get_default_cert_file_env'; {Do not localize} - {CH fn_X509_get_default_private_dir = 'X509_get_default_private_dir'; } {Do not localize} - fn_X509_to_X509_REQ = 'X509_to_X509_REQ'; {Do not localize} - {CH fn_X509_REQ_to_X509 = 'X509_REQ_to_X509'; } {Do not localize} - fn_X509_NAME_add_entry_by_txt = 'X509_NAME_add_entry_by_txt'; {Do not localize} - {CH fn_ERR_load_X509_strings = 'ERR_load_X509_strings'; } {Do not localize} - {CH fn_X509_ALGOR_new = 'X509_ALGOR_new'; } {Do not localize} - {CH fn_X509_ALGOR_free = 'X509_ALGOR_free'; } {Do not localize} - {CH fn_i2d_X509_ALGOR = 'i2d_X509_ALGOR'; } {Do not localize} - {CH fn_d2i_X509_ALGOR = 'd2i_X509_ALGOR'; } {Do not localize} - {CH fn_X509_VAL_new = 'X509_VAL_new'; } {Do not localize} - {CH fn_X509_VAL_free = 'X509_VAL_free'; } {Do not localize} - {CH fn_i2d_X509_VAL = 'i2d_X509_VAL'; } {Do not localize} - {CH fn_d2i_X509_VAL = 'd2i_X509_VAL'; } {Do not localize} - {CH fn_X509_PUBKEY_new = 'X509_PUBKEY_new'; } {Do not localize} - {CH fn_X509_PUBKEY_free = 'X509_PUBKEY_free'; } {Do not localize} - {CH fn_i2d_X509_PUBKEY = 'i2d_X509_PUBKEY'; } {Do not localize} - {CH fn_d2i_X509_PUBKEY = 'd2i_X509_PUBKEY'; } {Do not localize} - {CH fn_X509_PUBKEY_set = 'X509_PUBKEY_set'; } {Do not localize} - fn_X509_PUBKEY_get = 'X509_PUBKEY_get'; {Do not localize} - {CH fn_X509_get_pubkey_parameters = 'X509_get_pubkey_parameters'; } {Do not localize} - {CH fn_X509_SIG_new = 'X509_SIG_new'; } {Do not localize} - {CH fn_X509_SIG_free = 'X509_SIG_free'; } {Do not localize} - {CH fn_i2d_X509_SIG = 'i2d_X509_SIG'; } {Do not localize} - {CH fn_d2i_X509_SIG = 'd2i_X509_SIG'; } {Do not localize} - {CH fn_X509_REQ_INFO_new = 'X509_REQ_INFO_new'; } {Do not localize} - {CH fn_X509_REQ_INFO_free = 'X509_REQ_INFO_free'; } {Do not localize} - {CH fn_i2d_X509_REQ_INFO = 'i2d_X509_REQ_INFO'; } {Do not localize} - {CH fn_d2i_X509_REQ_INFO = 'd2i_X509_REQ_INFO'; } {Do not localize} - fn_X509_REQ_new = 'X509_REQ_new'; {Do not localize} - fn_X509_REQ_free = 'X509_REQ_free'; {Do not localize} - fn_i2d_X509_REQ = 'i2d_X509_REQ'; {Do not localize} - fn_d2i_X509_REQ = 'd2i_X509_REQ'; {Do not localize} - {CH fn_X509_ATTRIBUTE_new = 'X509_ATTRIBUTE_new'; } {Do not localize} - {CH fn_X509_ATTRIBUTE_free = 'X509_ATTRIBUTE_free'; } {Do not localize} - {CH fn_i2d_X509_ATTRIBUTE = 'i2d_X509_ATTRIBUTE'; } {Do not localize} - {CH fn_d2i_X509_ATTRIBUTE = 'd2i_X509_ATTRIBUTE'; } {Do not localize} - {CH fn_X509_ATTRIBUTE_create = 'X509_ATTRIBUTE_create'; } {Do not localize} - {CH fn_X509_EXTENSION_new = 'X509_EXTENSION_new'; } {Do not localize} - fn_X509_EXTENSION_free = 'X509_EXTENSION_free'; {Do not localize} - {CH fn_i2d_X509_EXTENSION = 'i2d_X509_EXTENSION'; } {Do not localize} - {CH fn_d2i_X509_EXTENSION = 'd2i_X509_EXTENSION'; } {Do not localize} - {CH fn_X509_NAME_ENTRY_new = 'X509_NAME_ENTRY_new'; } {Do not localize} - {CH fn_X509_NAME_ENTRY_free = 'X509_NAME_ENTRY_free'; } {Do not localize} - fn_i2d_X509_NAME_ENTRY = 'i2d_X509_NAME_ENTRY'; {Do not localize} - fn_d2i_X509_NAME_ENTRY = 'd2i_X509_NAME_ENTRY'; {Do not localize} - fn_X509_NAME_new = 'X509_NAME_new'; {Do not localize} - fn_X509_NAME_free = 'X509_NAME_free'; {Do not localize} - fn_i2d_X509_NAME = 'i2d_X509_NAME'; {Do not localize} - fn_d2i_X509_NAME = 'd2i_X509_NAME'; {Do not localize} - {CH fn_X509_NAME_set = 'X509_NAME_set'; } {Do not localize} - {CH fn_X509_CINF_new = 'X509_CINF_new'; } {Do not localize} - {CH fn_X509_CINF_free = 'X509_CINF_free'; } {Do not localize} - {CH fn_i2d_X509_CINF = 'i2d_X509_CINF'; } {Do not localize} - {CH fn_d2i_X509_CINF = 'd2i_X509_CINF'; } {Do not localize} - fn_X509_new = 'X509_new'; {Do not localize} - fn_X509_free = 'X509_free'; {Do not localize} - fn_i2d_X509 = 'i2d_X509'; {Do not localize} - fn_d2i_X509 = 'd2i_X509'; {Do not localize} - {CH fn_X509_REVOKED_new = 'X509_REVOKED_new'; } {Do not localize} - {CH fn_X509_REVOKED_free = 'X509_REVOKED_free'; } {Do not localize} - {CH fn_i2d_X509_REVOKED = 'i2d_X509_REVOKED'; } {Do not localize} - {CH fn_d2i_X509_REVOKED = 'd2i_X509_REVOKED'; } {Do not localize} - {CH fn_X509_CRL_INFO_new = 'X509_CRL_INFO_new'; } {Do not localize} - {CH fn_X509_CRL_INFO_free = 'X509_CRL_INFO_free'; } {Do not localize} - {CH fn_i2d_X509_CRL_INFO = 'i2d_X509_CRL_INFO'; } {Do not localize} - {CH fn_d2i_X509_CRL_INFO = 'd2i_X509_CRL_INFO'; } {Do not localize} - {CH fn_X509_CRL_new = 'X509_CRL_new'; } {Do not localize} - {CH fn_X509_CRL_free = 'X509_CRL_free'; } {Do not localize} - fn_i2d_X509_CRL = 'i2d_X509_CRL'; {Do not localize} - fn_d2i_X509_CRL = 'd2i_X509_CRL'; {Do not localize} - {CH fn_X509_PKEY_new = 'X509_PKEY_new'; } {Do not localize} - {CH fn_X509_PKEY_free = 'X509_PKEY_free'; } {Do not localize} - {CH fn_i2d_X509_PKEY = 'i2d_X509_PKEY'; } {Do not localize} - {CH fn_d2i_X509_PKEY = 'd2i_X509_PKEY'; } {Do not localize} - {CH fn_NETSCAPE_SPKI_new = 'NETSCAPE_SPKI_new'; } {Do not localize} - {CH fn_NETSCAPE_SPKI_free = 'NETSCAPE_SPKI_free'; } {Do not localize} - {CH fn_i2d_NETSCAPE_SPKI = 'i2d_NETSCAPE_SPKI'; } {Do not localize} - {CH fn_d2i_NETSCAPE_SPKI = 'd2i_NETSCAPE_SPKI'; } {Do not localize} - {CH fn_NETSCAPE_SPKAC_new = 'NETSCAPE_SPKAC_new'; } {Do not localize} - {CH fn_NETSCAPE_SPKAC_free = 'NETSCAPE_SPKAC_free'; } {Do not localize} - {CH fn_i2d_NETSCAPE_SPKAC = 'i2d_NETSCAPE_SPKAC'; } {Do not localize} - {CH fn_d2i_NETSCAPE_SPKAC = 'd2i_NETSCAPE_SPKAC'; } {Do not localize} - fn_i2d_NETSCAPE_CERT_SEQUENCE = 'i2d_NETSCAPE_CERT_SEQUENCE'; {Do not localize} - fn_d2i_NETSCAPE_CERT_SEQUENCE = 'd2i_NETSCAPE_CERT_SEQUENCE'; {Do not localize} - fn_i2d_PUBKEY = 'i2d_PUBKEY'; {Do not localize} - fn_d2i_PUBKEY = 'd2i_PUBKEY'; {Do not localize} - - {CH fn_NETSCAPE_CERT_SEQUENCE_new = 'NETSCAPE_CERT_SEQUENCE_new'; } {Do not localize} - {CH fn_NETSCAPE_CERT_SEQUENCE_free = 'NETSCAPE_CERT_SEQUENCE_free'; } {Do not localize} - {CH fn_X509_INFO_new = 'X509_INFO_new'; } {Do not localize} - fn_X509_INFO_free = 'X509_INFO_free'; {Do not localize} - fn_X509_NAME_oneline = 'X509_NAME_oneline'; {Do not localize} - {CH fn_ASN1_verify = 'ASN1_verify'; } {Do not localize} - {CH fn_ASN1_digest = 'ASN1_digest'; } {Do not localize} - {CH fn_ASN1_sign = 'ASN1_sign'; } {Do not localize} - fn_X509_set_version = 'X509_set_version'; {Do not localize} - {CH fn_X509_set_serialNumber = 'X509_set_serialNumber'; } {Do not localize} - fn_X509_get_serialNumber = 'X509_get_serialNumber'; {Do not localize} - fn_X509_set_issuer_name = 'X509_set_issuer_name'; {Do not localize} - fn_X509_get_issuer_name = 'X509_get_issuer_name'; {Do not localize} - fn_X509_set_subject_name = 'X509_set_subject_name'; {Do not localize} - fn_X509_get_subject_name = 'X509_get_subject_name'; {Do not localize} - fn_X509_set_notBefore = 'X509_set_notBefore'; {Do not localize} - fn_X509_set_notAfter = 'X509_set_notAfter'; {Do not localize} - fn_X509_set_pubkey = 'X509_set_pubkey'; {Do not localize} - {CH fn_X509_get_pubkey = 'X509_get_pubkey'; } {Do not localize} - {CH fn_X509_certificate_type = 'X509_certificate_type'; } {Do not localize} - {CH fn_X509_REQ_set_version = 'X509_REQ_set_version'; } {Do not localize} - {CH fn_X509_REQ_set_subject_name = 'X509_REQ_set_subject_name'; } {Do not localize} - fn_X509_REQ_set_pubkey = 'X509_REQ_set_pubkey'; {Do not localize} - {CH fn_X509_REQ_get_pubkey = 'X509_REQ_get_pubkey'; } {Do not localize} - {CH fn_X509_check_private_key = 'X509_check_private_key'; } {Do not localize} - {CH fn_X509_issuer_and_serial_cmp = 'X509_issuer_and_serial_cmp'; } {Do not localize} - {CH fn_X509_issuer_and_serial_hash = 'X509_issuer_and_serial_hash'; } {Do not localize} - {CH fn_X509_issuer_name_cmp = 'X509_issuer_name_cmp'; } {Do not localize} - {CH fn_X509_issuer_name_hash = 'X509_issuer_name_hash'; } {Do not localize} - {CH fn_X509_subject_name_cmp = 'X509_subject_name_cmp'; } {Do not localize} - {CH fn_X509_subject_name_hash = 'X509_subject_name_hash'; } {Do not localize} - fn_X509_NAME_cmp = 'X509_NAME_cmp'; {Do not localize} - fn_X509_NAME_hash = 'X509_NAME_hash'; {Do not localize} - {CH fn_X509_CRL_cmp = 'X509_CRL_cmp'; } {Do not localize} - {$IFNDEF OPENSSL_NO_FP_API} - {CH fn_X509_print_ex_fp = 'X509_print_ex_fp'; } {Do not localize} - {CH fn_X509_print_fp = 'X509_print_fp'; } {Do not localize} - {CH fn_X509_CRL_print_fp = 'X509_CRL_print_fp'; } {Do not localize} - {CH fn_X509_REQ_print_fp = 'X509_REQ_print_fp'; } {Do not localize} - {CH fn_X509_NAME_print_ex_fp = 'X509_NAME_print_ex_fp'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_BIO} - {CH fn_X509_NAME_print = 'X509_NAME_print'; } {Do not localize} - {CH fn_X509_NAME_print_ex = 'X509_NAME_print_ex'; } {Do not localize} - {CH fn_X509_print_ex = 'X509_print_ex'; } {Do not localize} - fn_X509_print = 'X509_print'; {Do not localize} - {CH fn_X509_ocspid_print = 'X509_ocspid_print'; } {Do not localize} - {CH fn_X509_CERT_AUX_print = 'X509_CERT_AUX_print'; } {Do not localize} - {CH fn_X509_CRL_print = 'X509_CRL_print'; } {Do not localize} - {CH fn_X509_REQ_print = 'X509_REQ_print'; } {Do not localize} - {CH fn_X509_REQ_print_ex = 'X509_REQ_print_ex'; } {Do not localize} - {$ENDIF} - {CH fn_X509_NAME_entry_count = 'X509_NAME_entry_count'; } {Do not localize} - {CH fn_X509_NAME_get_text_by_NID = 'X509_NAME_get_text_by_NID'; } {Do not localize} - {CH fn_X509_NAME_get_text_by_OBJ = 'X509_NAME_get_text_by_OBJ'; } {Do not localize} - {CH fn_X509_NAME_get_index_by_NID = 'X509_NAME_get_index_by_NID'; } {Do not localize} - {CH fn_X509_NAME_get_index_by_OBJ = 'X509_NAME_get_index_by_OBJ'; } {Do not localize} - {CH fn_X509_NAME_get_entry = 'X509_NAME_get_entry'; } {Do not localize} - {CH fn_X509_NAME_delete_entry = 'X509_NAME_delete_entry'; } {Do not localize} - {CH fn_X509_NAME_add_entry = 'X509_NAME_add_entry'; } {Do not localize} - {CH fn_X509_NAME_ENTRY_create_by_NID = 'X509_NAME_ENTRY_create_by_NID'; } {Do not localize} - {CH fn_X509_NAME_ENTRY_create_by_OBJ = 'X509_NAME_ENTRY_create_by_OBJ'; } {Do not localize} - {CH fn_X509_NAME_ENTRY_set_object = 'X509_NAME_ENTRY_set_object'; } {Do not localize} - {CH fn_X509_NAME_ENTRY_set_data = 'X509_NAME_ENTRY_set_data'; } {Do not localize} - {CH fn_X509_NAME_ENTRY_get_object = 'X509_NAME_ENTRY_get_object'; } {Do not localize} - {CH fn_X509_NAME_ENTRY_get_data = 'X509_NAME_ENTRY_get_data'; } {Do not localize} - {CH fn_X509v3_get_ext_count = 'X509v3_get_ext_count'; } {Do not localize} - {CH fn_X509v3_get_ext_by_NID = 'X509v3_get_ext_by_NID'; } {Do not localize} - {CH fn_X509v3_get_ext_by_OBJ = 'X509v3_get_ext_by_OBJ'; } {Do not localize} - {CH fn_X509v3_get_ext_by_critical = 'X509v3_get_ext_by_critical'; } {Do not localize} - {CH fn_X509v3_get_ext = 'X509v3_get_ext'; } {Do not localize} - {CH fn_X509v3_delete_ext = 'X509v3_delete_ext'; } {Do not localize} - {CH fn_X509v3_add_ext = 'X509v3_add_ext'; } {Do not localize} - {CH fn_X509_get_ext_count = 'X509_get_ext_count'; } {Do not localize} - {CH fn_X509_get_ext_by_NID = 'X509_get_ext_by_NID'; } {Do not localize} - {CH fn_X509_get_ext_by_OBJ = 'X509_get_ext_by_OBJ'; } {Do not localize} - {CH fn_X509_get_ext_by_critical = 'X509_get_ext_by_critical'; } {Do not localize} - {CH fn_X509_get_ext = 'X509_get_ext'; } {Do not localize} - {CH fn_X509_delete_ext = 'X509_delete_ext'; } {Do not localize} - fn_X509_add_ext = 'X509_add_ext'; {Do not localize} - {CH fn_X509_CRL_get_ext_count = 'X509_CRL_get_ext_count'; } {Do not localize} - {CH fn_X509_CRL_get_ext_by_NID = 'X509_CRL_get_ext_by_NID'; } {Do not localize} - {CH fn_X509_CRL_get_ext_by_OBJ = 'X509_CRL_get_ext_by_OBJ'; } {Do not localize} - {CH fn_X509_CRL_get_ext_by_critical = 'X509_CRL_get_ext_by_critical'; } {Do not localize} - {CH fn_X509_CRL_get_ext = 'X509_CRL_get_ext'; } {Do not localize} - {CH fn_X509_CRL_delete_ext = 'X509_CRL_delete_ext'; } {Do not localize} - {CH fn_X509_CRL_add_ext = 'X509_CRL_add_ext'; } {Do not localize} - {CH fn_X509_REVOKED_get_ext_count = 'X509_REVOKED_get_ext_count'; } {Do not localize} - {CH fn_X509_REVOKED_get_ext_by_NID = 'X509_REVOKED_get_ext_by_NID'; } {Do not localize} - {CH fn_X509_REVOKED_get_ext_by_OBJ = 'X509_REVOKED_get_ext_by_OBJ'; } {Do not localize} - {CH fn_X509_REVOKED_get_ext_by_critical = 'X509_REVOKED_get_ext_by_critical'; } {Do not localize} - {CH fn_X509_REVOKED_get_ext = 'X509_REVOKED_get_ext'; } {Do not localize} - {CH fn_X509_REVOKED_delete_ext = 'X509_REVOKED_delete_ext'; } {Do not localize} - {CH fn_X509_REVOKED_add_ext = 'X509_REVOKED_add_ext'; } {Do not localize} - fn_X509_EXTENSION_create_by_NID = 'X509_EXTENSION_create_by_NID'; {Do not localize} - {CH fn_X509_EXTENSION_create_by_OBJ = 'X509_EXTENSION_create_by_OBJ'; } {Do not localize} - {CH fn_X509_EXTENSION_set_object = 'X509_EXTENSION_set_object'; } {Do not localize} - {CH fn_X509_EXTENSION_set_critical = 'X509_EXTENSION_set_critical'; } {Do not localize} - {CH fn_X509_EXTENSION_set_data = 'X509_EXTENSION_set_data'; } {Do not localize} - {CH fn_X509_EXTENSION_get_object = 'X509_EXTENSION_get_object'; } {Do not localize} - {CH fn_X509_EXTENSION_get_data = 'X509_EXTENSION_get_data'; } {Do not localize} - {CH fn_X509_EXTENSION_get_critical = 'X509_EXTENSION_get_critical'; } {Do not localize} - {CH fn_X509_verify_cert = 'X509_verify_cert'; } {Do not localize} - {CH fn_X509_find_by_issuer_and_serial = 'X509_find_by_issuer_and_serial'; } {Do not localize} - {CH fn_X509_find_by_subject = 'X509_find_by_subject'; } {Do not localize} - {CH fn_i2d_PBEPARAM = 'i2d_PBEPARAM'; } {Do not localize} - {CH fn_PBEPARAM_new = 'PBEPARAM_new'; } {Do not localize} - {CH fn_d2i_PBEPARAM = 'd2i_PBEPARAM'; } {Do not localize} - {CH fn_PBEPARAM_free = 'PBEPARAM_free'; } {Do not localize} - {CH fn_PKCS5_pbe_set = 'PKCS5_pbe_set'; } {Do not localize} - {CH fn_PKCS5_pbe2_set = 'PKCS5_pbe2_set'; } {Do not localize} - {CH fn_i2d_PBKDF2PARAM = 'i2d_PBKDF2PARAM'; } {Do not localize} - {CH fn_PBKDF2PARAM_new = 'PBKDF2PARAM_new'; } {Do not localize} - {CH fn_d2i_PBKDF2PARAM = 'd2i_PBKDF2PARAM'; } {Do not localize} - {CH fn_PBKDF2PARAM_free = 'PBKDF2PARAM_free'; } {Do not localize} - {CH fn_i2d_PBE2PARAM = 'i2d_PBE2PARAM'; } {Do not localize} - {CH fn_PBE2PARAM_new = 'PBE2PARAM_new'; } {Do not localize} - {CH fn_d2i_PBE2PARAM = 'd2i_PBE2PARAM'; } {Do not localize} - {CH fn_PBE2PARAM_free = 'PBE2PARAM_free'; } {Do not localize} - {CH fn_i2d_PKCS8_PRIV_KEY_INFO = 'i2d_PKCS8_PRIV_KEY_INFO'; } {Do not localize} - {CH fn_PKCS8_PRIV_KEY_INFO_new = 'PKCS8_PRIV_KEY_INFO_new'; } {Do not localize} - {CH fn_d2i_PKCS8_PRIV_KEY_INFO = 'd2i_PKCS8_PRIV_KEY_INFO'; } {Do not localize} - {CH fn_PKCS8_PRIV_KEY_INFO_free = 'PKCS8_PRIV_KEY_INFO_free'; } {Do not localize} - {CH fn_EVP_PKCS82PKEY = 'EVP_PKCS82PKEY'; } {Do not localize} - {CH fn_EVP_PKEY2PKCS8 = 'EVP_PKEY2PKCS8'; } {Do not localize} - {CH fn_PKCS8_set_broken = 'PKCS8_set_broken'; } {Do not localize} - {CH fn_ERR_load_PEM_strings = 'ERR_load_PEM_strings'; } {Do not localize} - {CH fn_PEM_get_EVP_CIPHER_INFO = 'PEM_get_EVP_CIPHER_INFO'; } {Do not localize} - {CH fn_PEM_do_header = 'PEM_do_header'; } {Do not localize} - {CH fn_PEM_read_bio = 'PEM_read_bio'; } {Do not localize} - {CH fn_PEM_write_bio = 'PEM_write_bio'; } {Do not localize} - fn_PEM_ASN1_read_bio = 'PEM_ASN1_read_bio'; {Do not localize} - fn_PEM_ASN1_write_bio = 'PEM_ASN1_write_bio'; {Do not localize} - fn_PEM_X509_INFO_read_bio = 'PEM_X509_INFO_read_bio'; {Do not localize} - {CH fn_PEM_X509_INFO_write_bio = 'PEM_X509_INFO_write_bio'; } {Do not localize} - {CH fn_PEM_read = 'PEM_read'; } {Do not localize} - {CH fn_PEM_write = 'PEM_write'; } {Do not localize} - {CH fn_PEM_ASN1_read = 'PEM_ASN1_read'; } {Do not localize} - {CH fn_PEM_ASN1_write = 'PEM_ASN1_write'; } {Do not localize} - {CH fn_PEM_X509_INFO_read = 'PEM_X509_INFO_read'; } {Do not localize} - {CH fn_PEM_SealInit = 'PEM_SealInit'; } {Do not localize} - {CH fn_PEM_SealUpdate = 'PEM_SealUpdate'; } {Do not localize} - {CH fn_PEM_SealFinal = 'PEM_SealFinal'; } {Do not localize} - {CH fn_PEM_SignInit = 'PEM_SignInit'; } {Do not localize} - {CH fn_PEM_SignUpdate = 'PEM_SignUpdate'; } {Do not localize} - {CH fn_PEM_SignFinal = 'PEM_SignFinal'; } {Do not localize} - {CH fn_PEM_proc_type = 'PEM_proc_type'; } {Do not localize} - {CH fn_PEM_dek_info = 'PEM_dek_info'; } {Do not localize} - {$IFNDEF OPENSSL_NO_BIO} - {$IFNDEF SSLEAY_MACROS} - fn_PEM_read_bio_X509 = 'PEM_read_bio_X509'; {Do not localize} - fn_PEM_write_bio_X509 = 'PEM_write_bio_X509'; {Do not localize} - fn_PEM_read_bio_X509_REQ = 'PEM_read_bio_X509_REQ'; {Do not localize} - fn_PEM_write_bio_X509_REQ = 'PEM_write_bio_X509_REQ'; {Do not localize} - fn_PEM_read_bio_X509_CRL = 'PEM_read_bio_X509_CRL'; {Do not localize} - fn_PEM_write_bio_X509_CRL = 'PEM_write_bio_X509_CRL'; {Do not localize} - fn_PEM_read_bio_PKCS7 = 'PEM_read_bio_PKCS7'; {Do not localize} - fn_PEM_write_bio_PKCS7 = 'PEM_write_bio_PKCS7'; {Do not localize} - fn_PEM_read_bio_NETSCAPE_CERT_SEQUENCE = 'PEM_read_bio_NETSCAPE_CERT_SEQUENCE'; {Do not localize} - fn_PEM_write_bio_NETSCAPE_CERT_SEQUENCE = 'PEM_write_bio_NETSCAPE_CERT_SEQUENCE'; {Do not localize} - fn_PEM_read_bio_PKCS8 = 'PEM_read_bio_PKCS8'; {Do not localize} - fn_PEM_write_bio_PKCS8 = 'PEM_write_bio_PKCS8'; {Do not localize} - fn_PEM_read_bio_PKCS8_PRIV_KEY_INFO = 'PEM_read_bio_PKCS8_PRIV_KEY_INFO'; {Do not localize} - fn_PEM_write_bio_PKCS8_PRIV_KEY_INFO = 'PEM_write_bio_PKCS8_PRIV_KEY_INFO'; {Do not localize} - fn_PEM_read_bio_RSAPrivateKey = 'PEM_read_bio_RSAPrivateKey'; {Do not localize} - fn_PEM_write_bio_RSAPrivateKey = 'PEM_write_bio_RSAPrivateKey'; {Do not localize} - fn_PEM_read_bio_RSAPublicKey = 'PEM_read_bio_RSAPublicKey'; {Do not localize} - fn_PEM_write_bio_RSAPublicKey = 'PEM_write_bio_RSAPublicKey'; {Do not localize} - fn_PEM_read_bio_DSAPrivateKey = 'PEM_read_bio_DSAPrivateKey'; {Do not localize} - fn_PEM_write_bio_DSAPrivateKey = 'PEM_write_bio_DSAPrivateKey'; {Do not localize} - fn_PEM_read_bio_DSAparams = 'PEM_read_bio_DSAparams'; {Do not localize} - fn_PEM_write_bio_DSAparams = 'PEM_write_bio_DSAparams'; {Do not localize} - fn_PEM_read_bio_DHparams = 'PEM_read_bio_DHparams'; {Do not localize} - fn_PEM_write_bio_DHparams = 'PEM_write_bio_DHparams'; {Do not localize} - fn_PEM_read_bio_PrivateKey = 'PEM_read_bio_PrivateKey'; {Do not localize} - fn_PEM_write_bio_PrivateKey = 'PEM_write_bio_PrivateKey'; {Do not localize} - fn_PEM_write_bio_PKCS8PrivateKey = 'PEM_write_bio_PKCS8PrivateKey'; {Do not localize} - fn_PEM_read_bio_PUBKEY = 'PEM_read_bio_PUBKEY'; {Do not localize} - fn_PEM_write_bio_PUBKEY = 'PEM_write_bio_PUBKEY'; {Do not localize} - {$ENDIF} - {$ENDIF} - fn_PEM_read_bio_X509_AUX = 'PEM_read_bio_X509_AUX'; {Do not localize} - {CH fn_PEM_read_X509 = 'PEM_read_X509'; } {Do not localize} - {CH fn_PEM_write_X509 = 'PEM_write_X509'; } {Do not localize} - {CH fn_PEM_read_X509_REQ = 'PEM_read_X509_REQ'; } {Do not localize} - {CH fn_PEM_write_X509_REQ = 'PEM_write_X509_REQ'; } {Do not localize} - {CH fn_PEM_read_X509_CRL = 'PEM_read_X509_CRL'; } {Do not localize} - {CH fn_PEM_write_X509_CRL = 'PEM_write_X509_CRL'; } {Do not localize} - {CH fn_PEM_read_PKCS7 = 'PEM_read_PKCS7'; } {Do not localize} - {CH fn_PEM_write_PKCS7 = 'PEM_write_PKCS7'; } {Do not localize} - {CH fn_PEM_read_NETSCAPE_CERT_SEQUENCE = 'PEM_read_NETSCAPE_CERT_SEQUENCE'; } {Do not localize} - {CH fn_PEM_write_NETSCAPE_CERT_SEQUENCE = 'PEM_write_NETSCAPE_CERT_SEQUENCE'; } {Do not localize} - {CH fn_PEM_read_PKCS8 = 'PEM_read_PKCS8'; } {Do not localize} - {CH fn_PEM_write_PKCS8 = 'PEM_write_PKCS8'; } {Do not localize} - {CH fn_PEM_read_PKCS8_PRIV_KEY_INFO = 'PEM_read_PKCS8_PRIV_KEY_INFO'; } {Do not localize} - {CH fn_PEM_write_PKCS8_PRIV_KEY_INFO = 'PEM_write_PKCS8_PRIV_KEY_INFO'; } {Do not localize} - {CH fn_PEM_read_RSAPrivateKey = 'PEM_read_RSAPrivateKey'; } {Do not localize} - {CH fn_PEM_write_RSAPrivateKey = 'PEM_write_RSAPrivateKey'; } {Do not localize} - {CH fn_PEM_read_RSAPublicKey = 'PEM_read_RSAPublicKey'; } {Do not localize} - {CH fn_PEM_write_RSAPublicKey = 'PEM_write_RSAPublicKey'; } {Do not localize} - {CH fn_PEM_read_DSAPrivateKey = 'PEM_read_DSAPrivateKey'; } {Do not localize} - {CH fn_PEM_write_DSAPrivateKey = 'PEM_write_DSAPrivateKey'; } {Do not localize} - {CH fn_PEM_read_DSAparams = 'PEM_read_DSAparams'; } {Do not localize} - {CH fn_PEM_write_DSAparams = 'PEM_write_DSAparams'; } {Do not localize} - {CH fn_PEM_read_DHparams = 'PEM_read_DHparams'; } {Do not localize} - {CH fn_PEM_write_DHparams = 'PEM_write_DHparams'; } {Do not localize} - {CH fn_PEM_read_PrivateKey = 'PEM_read_PrivateKey'; } {Do not localize} - {CH fn_PEM_write_PrivateKey = 'PEM_write_PrivateKey'; } {Do not localize} - {CH fn_PEM_write_PKCS8PrivateKey = 'PEM_write_PKCS8PrivateKey'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_new = 'sk_SSL_CIPHER_new'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_new_null = 'sk_SSL_CIPHER_new_null'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_free = 'sk_SSL_CIPHER_free'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_num = 'sk_SSL_CIPHER_num'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_value = 'sk_SSL_CIPHER_value'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_set = 'sk_SSL_CIPHER_set'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_zero = 'sk_SSL_CIPHER_zero'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_push = 'sk_SSL_CIPHER_push'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_unshift = 'sk_SSL_CIPHER_unshift'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_find = 'sk_SSL_CIPHER_find'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_delete = 'sk_SSL_CIPHER_delete'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_delete_ptr = 'sk_SSL_CIPHER_delete_ptr'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_insert = 'sk_SSL_CIPHER_insert'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_dup = 'sk_SSL_CIPHER_dup'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_pop_free = 'sk_SSL_CIPHER_pop_free'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_shift = 'sk_SSL_CIPHER_shift'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_pop = 'sk_SSL_CIPHER_pop'; } {Do not localize} - {CH fn_sk_SSL_CIPHER_sort = 'sk_SSL_CIPHER_sort'; } {Do not localize} - {CH fn_sk_SSL_COMP_new = 'sk_SSL_COMP_new'; } {Do not localize} - {CH fn_sk_SSL_COMP_new_null = 'sk_SSL_COMP_new_null'; } {Do not localize} - {CH fn_sk_SSL_COMP_free = 'sk_SSL_COMP_free'; } {Do not localize} - {CH fn_sk_SSL_COMP_num = 'sk_SSL_COMP_num'; } {Do not localize} - {CH fn_sk_SSL_COMP_value = 'sk_SSL_COMP_value'; } {Do not localize} - {CH fn_sk_SSL_COMP_set = 'sk_SSL_COMP_set'; } {Do not localize} - {CH fn_sk_SSL_COMP_zero = 'sk_SSL_COMP_zero'; } {Do not localize} - {CH fn_sk_SSL_COMP_push = 'sk_SSL_COMP_push'; } {Do not localize} - {CH fn_sk_SSL_COMP_unshift = 'sk_SSL_COMP_unshift'; } {Do not localize} - {CH fn_sk_SSL_COMP_find = 'sk_SSL_COMP_find'; } {Do not localize} - {CH fn_sk_SSL_COMP_delete = 'sk_SSL_COMP_delete'; } {Do not localize} - {CH fn_sk_SSL_COMP_delete_ptr = 'sk_SSL_COMP_delete_ptr'; } {Do not localize} - {CH fn_sk_SSL_COMP_insert = 'sk_SSL_COMP_insert'; } {Do not localize} - {CH fn_sk_SSL_COMP_dup = 'sk_SSL_COMP_dup'; } {Do not localize} - {CH fn_sk_SSL_COMP_pop_free = 'sk_SSL_COMP_pop_free'; } {Do not localize} - {CH fn_sk_SSL_COMP_shift = 'sk_SSL_COMP_shift'; } {Do not localize} - {CH fn_sk_SSL_COMP_pop = 'sk_SSL_COMP_pop'; } {Do not localize} - {CH fn_sk_SSL_COMP_sort = 'sk_SSL_COMP_sort'; } {Do not localize} - {$IFNDEF OPENSSL_NO_BIO} - {CH fn_BIO_f_ssl = 'BIO_f_ssl'; } {Do not localize} - {CH fn_BIO_new_ssl = 'BIO_new_ssl'; } {Do not localize} - {CH fn_BIO_new_ssl_connect = 'BIO_new_ssl_connect'; } {Do not localize} - {CH fn_BIO_new_buffer_ssl_connect = 'BIO_new_buffer_ssl_connect'; } {Do not localize} - {CH fn_BIO_ssl_copy_session_id = 'BIO_ssl_copy_session_id'; } {Do not localize} - {CH fn_BIO_ssl_shutdown = 'BIO_ssl_shutdown'; } {Do not localize} - {$ENDIF} - fn_SSL_CTX_set_cipher_list = 'SSL_CTX_set_cipher_list'; {Do not localize} - fn_SSL_CTX_new = 'SSL_CTX_new'; {Do not localize} - fn_SSL_CTX_free = 'SSL_CTX_free'; {Do not localize} - fn_SSL_callback_ctrl = 'SSL_callback_ctrl'; {Do not localize} - fn_SSL_CTX_callback_ctrl = 'SSL_CTX_callback_ctrl'; {Do not localize} - {CH fn_SSL_CTX_set_timeout = 'SSL_CTX_set_timeout'; } {Do not localize} - {CH fn_SSL_CTX_get_timeout = 'SSL_CTX_get_timeout'; } {Do not localize} - {CH fn_SSL_CTX_get_cert_store = 'SSL_CTX_get_cert_store'; } {Do not localize} - {CH fn_SSL_CTX_set_cert_store = 'SSL_CTX_set_cert_store'; } {Do not localize} - {CH fn_SSL_want = 'SSL_want'; } {Do not localize} - {CH fn_SSL_clear = 'SSL_clear'; } {Do not localize} - {CH fn_SSL_CTX_flush_sessions = 'SSL_CTX_flush_sessions'; } {Do not localize} - fn_SSL_get_current_cipher = 'SSL_get_current_cipher'; {Do not localize} - fn_SSL_CIPHER_get_bits = 'SSL_CIPHER_get_bits'; {Do not localize} - fn_SSL_CIPHER_get_version = 'SSL_CIPHER_get_version'; {Do not localize} - fn_SSL_CIPHER_get_name = 'SSL_CIPHER_get_name'; {Do not localize} - {CH fn_SSL_get_fd = 'SSL_get_fd'; } {Do not localize} - {CH fn_SSL_get_cipher_list = 'SSL_get_cipher_list'; } {Do not localize} - {CH fn_SSL_get_shared_ciphers = 'SSL_get_shared_ciphers'; } {Do not localize} - {CH fn_SSL_get_read_ahead = 'SSL_get_read_ahead'; } {Do not localize} - fn_SSL_pending = 'SSL_pending'; {Do not localize} - {$IFNDEF OPENSSL_NO_SOCK} - fn_SSL_set_fd = 'SSL_set_fd'; {Do not localize} - {CH fn_SSL_set_rfd = 'SSL_set_rfd'; } {Do not localize} - {CH fn_SSL_set_wfd = 'SSL_set_wfd'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_BIO} - {CH fn_SSL_set_bio = 'SSL_set_bio'; } {Do not localize} - {CH fn_SSL_get_rbio = 'SSL_get_rbio'; } {Do not localize} - {CH fn_SSL_get_wbio = 'SSL_get_wbio'; } {Do not localize} - {$ENDIF} - {CH fn_SSL_set_cipher_list = 'SSL_set_cipher_list'; } {Do not localize} - {CH fn_SSL_set_read_ahead = 'SSL_set_read_ahead'; } {Do not localize} - {CH fn_SSL_get_verify_mode = 'SSL_get_verify_mode'; } {Do not localize} - {CH fn_SSL_get_verify_depth = 'SSL_get_verify_depth'; } {Do not localize} - {CH fn_SSL_set_verify = 'SSL_set_verify'; } {Do not localize} - {CH fn_SSL_set_verify_depth = 'SSL_set_verify_depth'; } {Do not localize} - {$IFNDEF OPENSSL_NO_RSA} - {CH fn_SSL_use_RSAPrivateKey = 'SSL_use_RSAPrivateKey'; } {Do not localize} - {CH fn_SSL_use_RSAPrivateKey_ASN1 = 'SSL_use_RSAPrivateKey_ASN1'; } {Do not localize} - {$ENDIF} - {CH fn_SSL_use_PrivateKey = 'SSL_use_PrivateKey'; } {Do not localize} - {CH fn_SSL_use_PrivateKey_ASN1 = 'SSL_use_PrivateKey_ASN1'; } {Do not localize} - {CH fn_SSL_use_certificate = 'SSL_use_certificate'; } {Do not localize} - {CH fn_SSL_use_certificate_ASN1 = 'SSL_use_certificate_ASN1'; } {Do not localize} - {CH fn_SSL_use_RSAPrivateKey_file = 'SSL_use_RSAPrivateKey_file'; } {Do not localize} - {CH fn_SSL_use_PrivateKey_file = 'SSL_use_PrivateKey_file'; } {Do not localize} - {CH fn_SSL_use_certificate_file = 'SSL_use_certificate_file'; } {Do not localize} - {$IFNDEF OPENSSL_NO_RSA} - {CH fn_SSL_CTX_use_RSAPrivateKey_file = 'SSL_CTX_use_RSAPrivateKey_file'; } {Do not localize} - {$ENDIF} - fn_SSL_CTX_use_PrivateKey_file = 'SSL_CTX_use_PrivateKey_file'; {Do not localize} - fn_SSL_CTX_use_certificate_file = 'SSL_CTX_use_certificate_file'; {Do not localize} - fn_SSL_CTX_use_certificate_chain_file = 'SSL_CTX_use_certificate_chain_file'; {Do not localize} - {$ifndef OPENSSL_NO_ENGINE} - {CH fn_SSL_CTX_set_client_cert_engine = 'SSL_CTX_set_client_cert_engine'; } {Do not localize} - {$endif} - {CH fn_SSL_CTX_use_certificate_chain_file = 'SSL_CTX_use_certificate_chain_file'; } {Do not localize} - fn_SSL_load_client_CA_file = 'SSL_load_client_CA_file'; {Do not localize} - {CH fn_SSL_add_file_cert_subjects_to_stack = 'SSL_add_file_cert_subjects_to_stack'; } {Do not localize} - {CH fn_ERR_load_SSL_strings = 'ERR_load_SSL_strings'; } {Do not localize} - fn_SSL_load_error_strings = 'SSL_load_error_strings'; {Do not localize} - {CH fn_SSL_state_string = 'SSL_state_string'; } {Do not localize} - {CH fn_SSL_rstate_string = 'SSL_rstate_string'; } {Do not localize} - fn_SSL_state_string_long = 'SSL_state_string_long'; {Do not localize} - {CH fn_SSL_rstate_string_long = 'SSL_rstate_string_long'; } {Do not localize} - {CH fn_SSL_SESSION_get_time = 'SSL_SESSION_get_time'; } {Do not localize} - {CH fn_SSL_SESSION_set_time = 'SSL_SESSION_set_time'; } {Do not localize} - {CH fn_SSL_SESSION_get_timeout = 'SSL_SESSION_get_timeout'; } {Do not localize} - {CH fn_SSL_SESSION_set_timeout = 'SSL_SESSION_set_timeout'; } {Do not localize} - fn_SSL_copy_session_id = 'SSL_copy_session_id'; {Do not localize} - {CH fn_SSL_SESSION_new = 'SSL_SESSION_new'; } {Do not localize} - {CH fn_SSL_SESSION_hash = 'SSL_SESSION_hash'; } {Do not localize} - {CH fn_SSL_SESSION_cmp = 'SSL_SESSION_cmp'; } {Do not localize} - {$IFNDEF OPENSSL_NO_FP_API} - {CH fn_SSL_SESSION_print_fp = 'SSL_SESSION_print_fp'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_BIO} - {CH fn_SSL_SESSION_print = 'SSL_SESSION_print'; } {Do not localize} - {$ENDIF} - {CH fn_SSL_SESSION_free = 'SSL_SESSION_free'; } {Do not localize} - {CH fn_i2d_SSL_SESSION = 'i2d_SSL_SESSION'; } {Do not localize} - {CH fn_SSL_set_session = 'SSL_set_session'; } {Do not localize} - {CH fn_SSL_CTX_add_session = 'SSL_CTX_add_session'; } {Do not localize} - {CH fn_SSL_CTX_remove_session = 'SSL_CTX_remove_session'; } {Do not localize} - {CH fn_d2i_SSL_SESSION = 'd2i_SSL_SESSION'; } {Do not localize} - fn_SSL_get_peer_certificate = 'SSL_get_peer_certificate'; {Do not localize} - {CH fn_SSL_get_peer_cert_chain = 'SSL_get_peer_cert_chain'; } {Do not localize} - {CH fn_SSL_CTX_get_verify_mode = 'SSL_CTX_get_verify_mode'; } {Do not localize} - fn_SSL_CTX_get_verify_depth = 'SSL_CTX_get_verify_depth'; {Do not localize} - fn_SSL_CTX_set_verify = 'SSL_CTX_set_verify'; {Do not localize} - fn_SSL_CTX_set_verify_depth = 'SSL_CTX_set_verify_depth'; {Do not localize} - {CH fn_SSL_CTX_set_cert_verify_callback = 'SSL_CTX_set_cert_verify_callback'; } {Do not localize} - {CH fn_SSL_CTX_use_RSAPrivateKey = 'SSL_CTX_use_RSAPrivateKey'; } {Do not localize} - {CH fn_SSL_CTX_use_RSAPrivateKey_ASN1 = 'SSL_CTX_use_RSAPrivateKey_ASN1'; } {Do not localize} - fn_SSL_CTX_use_PrivateKey = 'SSL_CTX_use_PrivateKey'; {Do not localize} - {CH fn_SSL_CTX_use_PrivateKey_ASN1 = 'SSL_CTX_use_PrivateKey_ASN1'; } {Do not localize} - fn_SSL_CTX_use_certificate = 'SSL_CTX_use_certificate'; {Do not localize} - {CH fn_SSL_CTX_use_certificate_ASN1 = 'SSL_CTX_use_certificate_ASN1'; } {Do not localize} - fn_SSL_CTX_set_default_passwd_cb = 'SSL_CTX_set_default_passwd_cb'; {Do not localize} - fn_SSL_CTX_set_default_passwd_cb_userdata = 'SSL_CTX_set_default_passwd_cb_userdata'; {Do not localize} - fn_SSL_CTX_check_private_key = 'SSL_CTX_check_private_key'; {Do not localize} - {CH fn_SSL_check_private_key = 'SSL_check_private_key'; } {Do not localize} - fn_SSL_CTX_set_session_id_context = 'SSL_CTX_set_session_id_context'; {Do not localize} - fn_SSL_new = 'SSL_new'; {Do not localize} - {CH fn_SSL_set_session_id_context = 'SSL_set_session_id_context'; } {Do not localize} - fn_SSL_free = 'SSL_free'; {Do not localize} - fn_SSL_accept = 'SSL_accept'; {Do not localize} - fn_SSL_connect = 'SSL_connect'; {Do not localize} - fn_SSL_read = 'SSL_read'; {Do not localize} - fn_SSL_peek = 'SSL_peek'; {Do not localize} - fn_SSL_write = 'SSL_write'; {Do not localize} - fn_SSL_ctrl = 'SSL_ctrl'; {Do not localize} - fn_SSL_CTX_ctrl = 'SSL_CTX_ctrl'; {Do not localize} - fn_SSL_get_error = 'SSL_get_error'; {Do not localize} - {CH fn_SSL_get_version = 'SSL_get_version'; } {Do not localize} - {CH fn_SSL_CTX_set_ssl_version = 'SSL_CTX_set_ssl_version'; } {Do not localize} - fn_SSLv2_method = 'SSLv2_method'; {Do not localize} - fn_SSLv2_server_method = 'SSLv2_server_method'; {Do not localize} - fn_SSLv2_client_method = 'SSLv2_client_method'; {Do not localize} - fn_SSLv3_method = 'SSLv3_method'; {Do not localize} - fn_SSLv3_server_method = 'SSLv3_server_method'; {Do not localize} - fn_SSLv3_client_method = 'SSLv3_client_method'; {Do not localize} - fn_SSLv23_method = 'SSLv23_method'; {Do not localize} - fn_SSLv23_server_method = 'SSLv23_server_method'; {Do not localize} - fn_SSLv23_client_method = 'SSLv23_client_method'; {Do not localize} - fn_TLSv1_method = 'TLSv1_method'; {Do not localize} - fn_TLSv1_server_method = 'TLSv1_server_method'; {Do not localize} - fn_TLSv1_client_method = 'TLSv1_client_method'; {Do not localize} - fn_TLSv1_1_method = 'TLSv1_1_method'; {Do not localize} - fn_TLSv1_1_server_method = 'TLSv1_1_server_method'; {Do not localize} - fn_TLSv1_1_client_method = 'TLSv1_1_client_method'; {Do not localize} - fn_TLSv1_2_method = 'TLSv1_2_method'; {Do not localize} - fn_TLSv1_2_server_method = 'TLSv1_2_server_method'; {Do not localize} - fn_TLSv1_2_client_method = 'TLSv1_2_client_method'; {Do not localize} - fn_DTLSv1_method = 'DTLSv1_method'; {Do not localize} - fn_DTLSv1_server_method = 'DTLSv1_server_method'; {Do not localize} - fn_DTLSv1_client_method = 'DTLSv1_client_method'; {Do not localize} - {CH fn_SSL_get_ciphers = 'SSL_get_ciphers'; } {Do not localize} - {CH fn_SSL_do_handshake = 'SSL_do_handshake'; } {Do not localize} - {CH fn_SSL_renegotiate = 'SSL_renegotiate'; } {Do not localize} - fn_SSL_shutdown = 'SSL_shutdown'; {Do not localize} - {CH fn_SSL_get_ssl_method = 'SSL_get_ssl_method'; } {Do not localize} - {CH fn_SSL_set_ssl_method = 'SSL_set_ssl_method'; } {Do not localize} - fn_SSL_alert_type_string_long = 'SSL_alert_type_string_long'; {Do not localize} - {CH fn_SSL_alert_type_string = 'SSL_alert_type_string'; } {Do not localize} - fn_SSL_alert_desc_string_long = 'SSL_alert_desc_string_long'; {Do not localize} - {CH fn_SSL_alert_desc_string = 'SSL_alert_desc_string'; } {Do not localize} - {CH fn_SSL_set_client_CA_list = 'SSL_set_client_CA_list'; } {Do not localize} - fn_SSL_CTX_set_client_CA_list = 'SSL_CTX_set_client_CA_list'; {Do not localize} - {CH fn_SSL_get_client_CA_list = 'SSL_get_client_CA_list'; } {Do not localize} - {CH fn_SSL_CTX_get_client_CA_list = 'SSL_CTX_get_client_CA_list'; } {Do not localize} - {CH fn_SSL_add_client_CA = 'SSL_add_client_CA'; } {Do not localize} - {CH fn_SSL_CTX_add_client_CA = 'SSL_CTX_add_client_CA'; } {Do not localize} - fn_SSL_set_connect_state = 'SSL_set_connect_state'; {Do not localize} - fn_SSL_set_accept_state = 'SSL_set_accept_state'; {Do not localize} - {CH fn_SSL_get_default_timeout = 'SSL_get_default_timeout'; } {Do not localize} - {CH fn_SSL_library_init = 'SSL_library_init'; } {Do not localize} - fn_SSL_CIPHER_description = 'SSL_CIPHER_description'; {Do not localize} - {CH fn_SSL_dup_CA_list = 'SSL_dup_CA_list'; } {Do not localize} - {CH fn_SSL_dup = 'SSL_dup'; } {Do not localize} - {CH fn_SSL_get_certificate = 'SSL_get_certificate'; } {Do not localize} - {CH fn_SSL_get_privatekey = 'SSL_get_privatekey'; } {Do not localize} - {CH fn_SSL_CTX_set_quiet_shutdown = 'SSL_CTX_set_quiet_shutdown'; } {Do not localize} - {CH fn_SSL_CTX_get_quiet_shutdown = 'SSL_CTX_get_quiet_shutdown'; } {Do not localize} - {CH fn_SSL_set_quiet_shutdown = 'SSL_set_quiet_shutdown'; } {Do not localize} - {CH fn_SSL_get_quiet_shutdown = 'SSL_get_quiet_shutdown'; } {Do not localize} - fn_SSL_set_shutdown = 'SSL_set_shutdown'; {Do not localize} - {CH fn_SSL_get_shutdown = 'SSL_get_shutdown'; } {Do not localize} - {CH fn_SSL_version = 'SSL_version'; } {Do not localize} - fn_SSL_CTX_set_default_verify_paths = 'SSL_CTX_set_default_verify_paths'; {Do not localize} - fn_SSL_CTX_load_verify_locations = 'SSL_CTX_load_verify_locations'; {Do not localize} - fn_SSL_get_session = 'SSL_get_session'; {Do not localize} - {CH fn_SSL_get_SSL_CTX = 'SSL_get_SSL_CTX'; } {Do not localize} - {CH fn_SSL_set_SSL_CTX = 'SSL_set_SSL_CTX'; } {Do not localize} - {CH fn_OPENSSL_isservice = 'OPENSSL_isservice'; }{Do not localize} - {CH fn_SSL_set_info_callback = 'SSL_set_info_callback'; } {Do not localize} - {CH fn_SSL_state = 'SSL_state'; } {Do not localize} - - fn_SSL_set_verify_result = 'SSL_set_verify_result'; {Do not localize} - fn_SSL_get_verify_result = 'SSL_get_verify_result'; {Do not localize} - fn_SSL_set_ex_data = 'SSL_set_ex_data'; {Do not localize} - fn_SSL_get_ex_data = 'SSL_get_ex_data'; {Do not localize} - {CH fn_SSL_get_ex_new_index = 'SSL_get_ex_new_index'; } {Do not localize} - {CH fn_SSL_SESSION_set_ex_data = 'SSL_SESSION_set_ex_data'; } {Do not localize} - {CH fn_SSL_SESSION_get_ex_data = 'SSL_SESSION_get_ex_data'; } {Do not localize} - {CH fn_SSL_SESSION_get_ex_new_index = 'SSL_SESSION_get_ex_new_index'; } {Do not localize} - {CH fn_SSL_CTX_set_ex_data = 'SSL_CTX_set_ex_data'; } {Do not localize} - {CH fn_SSL_CTX_get_ex_data = 'SSL_CTX_get_ex_data'; } {Do not localize} - {CH fn_SSL_CTX_get_ex_new_index = 'SSL_CTX_get_ex_new_index'; } {Do not localize} - {CH fn_SSL_get_ex_data_X509_STORE_CTX_idx = 'SSL_get_ex_data_X509_STORE_CTX_idx'; } {Do not localize} - {$IFNDEF OPENSSL_NO_RSA} - {CH fn_SSL_CTX_set_tmp_rsa_callback = 'SSL_CTX_set_tmp_rsa_callback'; } {Do not localize} - {CH fn_SSL_set_tmp_rsa_callback = 'SSL_set_tmp_rsa_callback'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_DH} - {CH fn_SSL_CTX_set_tmp_dh_callback = 'SSL_CTX_set_tmp_dh_callback'; } {Do not localize} - {CH fn_SSL_set_tmp_dh_callback = 'SSL_set_tmp_dh_callback'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_ECDH} - {CH fn_SSL_CTX_set_tmp_ecdh_callback = 'SSL_CTX_set_tmp_ecdh_callback'; } {Do not localize} - {CH fn_SSL_set_tmp_ecdh_callback = 'SSL_set_tmp_ecdh_callback'; } {Do not localize} - {$ENDIF} - {CH fn_SSL_COMP_add_compression_method = 'SSL_COMP_add_compression_method'; } {Do not localize} - {CH fn_SSL_get_current_expansion = 'SSL_get_current_expansion'; } {Do not localize} - {CH fn_SSL_COMP_get_name = 'SSL_COMP_get_name'; } {Do not localize} - fn_SSL_COMP_get_compression_methods = 'SSL_COMP_get_compression_methods'; {Do not localize} - fn_SSL_COMP_free_compression_methods = 'SSL_COMP_free_compression_methods'; {Do not localize} - // GREGOR - //fn_SSLeay_add_ssl_algorithms = 'mi_SSLeay_add_ssl_algorithms'; {Do not localize} - //why does the function name not match? - // - // RLebeau: because it is not an actual function of its own to begin with. - // It is a precompiler macro that maps to another function - fn_SSLeay_add_ssl_algorithms = 'SSL_library_init'; {Do not localize} - fn_SSL_SESSION_get_id = 'SSL_SESSION_get_id'; {Do not localize} - {CH fn_SSL_is_init_finished = 'mi_SSL_is_init_finished'; } {Do not localize} - {CH fn_SSL_in_init = 'mi_SSL_in_init'; } {Do not localize} - {CH fn_SSL_in_before = 'mi_SSL_in_before'; } {Do not localize} - {CH fn_SSL_in_connect_init = 'mi_SSL_in_connect_init'; } {Do not localize} - {CH fn_SSL_in_accept_init = 'mi_SSL_in_accept_init'; } {Do not localize} - {CH fn_fopen = 'mi_fopen'; } {Do not localize} - {CH fn_fclose = 'mi_fclose'; } {Do not localize} - // - fn_PKCS12_create = 'PKCS12_create'; {Do not localize} - fn_i2d_PKCS12_bio = 'i2d_PKCS12_bio'; {Do not localize} - fn_PKCS12_free = 'PKCS12_free'; {Do not localize} - {CH fn_RAND_set_rand_method = 'RAND_set_rand_method'; } {Do not localize} - {CH fn_RAND_get_rand_method = 'RAND_get_rand_method'; } {Do not localize} - {$IFNDEF OPENSSL_NO_ENGINE} - {CH fn_RAND_set_rand_engine = 'RAND_set_rand_engine'; } {Do not localize} - {$ENDIF} - {CH fn_RAND_SSLeay = 'RAND_SSLeay'; } {Do not localize} - fn_RAND_cleanup = 'RAND_cleanup'; {Do not localize} - fn_RAND_bytes = 'RAND_bytes'; {Do not localize} - fn_RAND_pseudo_bytes = 'RAND_pseudo_bytes'; {Do not localize} - fn_RAND_seed = 'RAND_seed'; {Do not localize} - fn_RAND_add = 'RAND_add'; {Do not localize} - {CH fn_RAND_load_file = 'RAND_load_file'; } {Do not localize} - {CH fn_RAND_write_file = 'RAND_write_file'; } {Do not localize} - {CH fn_RAND_file_name = 'RAND_file_name'; } {Do not localize} - fn_RAND_status = 'RAND_status'; {Do not localize} - {CH fn_RAND_query_egd_bytes = 'RAND_query_egd_bytes'; } {Do not localize} - {CH fn_RAND_egd = 'RAND_egd'; } {Do not localize} - {CH fn_RAND_egd_bytes = 'RAND_egd_bytes'; } {Do not localize} - {CH fn_RAND_poll = 'RAND_poll'; } {Do not localize} - {$IFDEF SYS_WIN} - //GREGOR - fn_RAND_screen = 'RAND_screen'; {Do not localize} - fn_RAND_event = 'RAND_event'; {Do not localize} - {$ENDIF} - {CH fn_ERR_load_RAND_strings = 'ERR_load_RAND_strings'; } {Do not localize} - //experimental - fn_ERR_put_error = 'ERR_put_error'; {Do not localize} - fn_ERR_get_error = 'ERR_get_error'; {Do not localize} -{CH fn_ERR_get_error_line = 'ERR_get_error_line'; } {Do not localize} -{CH fn_ERR_get_error_line_data = 'ERR_get_error_line_data'; } {Do not localize} - fn_ERR_peek_error = 'ERR_peek_error'; {Do not localize} - fn_ERR_peek_last_error = 'ERR_peek_last_error'; {Do not localize} - {CH fn_ERR_peek_error_line = 'ERR_peek_error_line'; } {Do not localize} -{CH fn_ERR_peek_error_line_data = 'ERR_peek_error_line_data'; } {Do not localize} - fn_ERR_peek_last_error_line = 'ERR_peek_last_error_line'; {Do not localize} -{CH fn_ERR_peek_last_error_line_data = 'ERR_peek_last_error_line_data'; } {Do not localize} - fn_ERR_clear_error = 'ERR_clear_error'; {Do not localize} - fn_ERR_error_string = 'ERR_error_string'; {Do not localize} - fn_ERR_error_string_n = 'ERR_error_string_n'; {Do not localize} - fn_ERR_lib_error_string = 'ERR_lib_error_string'; {Do not localize} - fn_ERR_func_error_string = 'ERR_func_error_string'; {Do not localize} - fn_ERR_reason_error_string = 'ERR_reason_error_string'; {Do not localize} -{CH fn_ERR_print_errors_cb = 'ERR_print_errors_cb'; } {Do not localize} - {$IFNDEF OPENSSL_NO_FP_API} -{CH fn_ERR_print_errors_fp = 'ERR_print_errors_fp'; } {Do not localize} - {$ENDIF} - {$IFNDEF OPENSSL_NO_BIO} -{CH fn_ERR_print_errors = 'ERR_print_errors'; } {Do not localize} -{CH fn_ERR_add_error_data = 'ERR_add_error_data'; } {Do not localize} - {$ENDIF} - fn_ERR_load_ERR_strings = 'ERR_load_ERR_strings'; {Do not localize} - fn_ERR_free_strings = 'ERR_free_strings'; {do not localize} - fn_ERR_remove_thread_state = 'ERR_remove_thread_state'; {Do not localize} - fn_ERR_remove_state = 'ERR_remove_state'; {do not localize} -{CH fn_ERR_unload_strings = 'ERR_unload_strings'; } {Do not localize} -{CH fn_ERR_remove_thread_state = 'ERR_remove_thread_state'; } {Do not localize} -{CH fn_ERR_load_ERR_strings = 'ERR_load_ERR_strings'; } {Do not localize} -{CH fn_ERR_load_crypto_strings = 'ERR_load_crypto_strings'; } {Do not localize} -{CH fn_ERR_free_strings = 'ERR_free_strings'; } {Do not localize} -{CH fn_ERR_add_error_vdata = 'ERR_add_error_vdata'; } {Do not localize} -{CH fn_ERR_remove_state = 'ERR_remove_state'; } {Do not localize} -{CH fn_ERR_get_state = 'ERR_get_state'; } {Do not localize} - {$IFNDEF OPENSSL_NO_LHASH} - {CH fn_ERR_get_string_table = 'ERR_get_string_table'; } {Do not localize} - {CH fn_ERR_get_err_state_table = 'ERR_get_err_state_table'; } {Do not localize} - {CH fn_ERR_release_err_state_table = 'ERR_release_err_state_table'; } {Do not localize} - {$ENDIF} - {CH fn_ERR_get_next_error_library = 'ERR_get_next_error_library'; } {Do not localize} - {CH fn_ERR_set_mark = 'ERR_set_mark'; } {Do not localize} - {CH fn_ERR_pop_to_mark = 'ERR_pop_to_mark'; } {Do not localize} - {$IFDEF OPENSSL_FIPS} - {CH fn_int_ERR_set_state_func = 'int_ERR_set_state_func'; } {Do not localize} - {CH fn_int_ERR_lib_init = 'int_ERR_lib_init'; } {Do not localize} - {$ENDIF} - {CH fn_UI_new = 'UI_new'; } {Do not localize} - {CH fn_UI_new_method = 'UI_new_method'; } {Do not localize} - {CH fn_UI_free = 'UI_free'; } {Do not localize} - {CH fn_UI_add_input_string = 'UI_add_input_string'; } {Do not localize} - {CH fn_UI_dup_input_string = 'UI_dup_input_string'; } {Do not localize} - {CH fn_UI_add_verify_string = 'UI_add_verify_string'; } {Do not localize} - {CH fn_UI_dup_verify_string = 'UI_dup_verify_string'; } {Do not localize} - {CH fn_UI_add_input_boolean = 'UI_add_input_boolean'; } {Do not localize} - {CH fn_UI_dup_input_boolean = 'UI_dup_input_boolean'; } {Do not localize} - {CH fn_UI_add_info_string = 'UI_add_info_string'; } {Do not localize} - {CH fn_UI_dup_info_string = 'UI_dup_info_string'; } {Do not localize} - {CH fn_UI_add_error_string = 'UI_add_error_string'; } {Do not localize} - {CH fn_UI_dup_error_string = 'UI_dup_error_string'; } {Do not localize} - {CH fn_UI_construct_prompt = 'UI_construct_prompt'; } {Do not localize} - {CH fn_UI_add_user_data = 'UI_add_user_data'; } {Do not localize} - {CH fn_UI_get0_user_data = 'UI_get0_user_data'; } {Do not localize} - {CH fn_UI_get0_resul = 'UI_get0_resul'; } {Do not localize} - {CH fn_UI_process = 'UI_process'; } {Do not localize} - {CH fn_UI_ctrl = 'UI_ctrl'; } {Do not localize} - {CH fn_UI_get_ex_new_index = 'UI_get_ex_new_index'; } {Do not localize} - {CH fn_UI_set_ex_data = 'UI_set_ex_data'; } {Do not localize} - {CH fn_UI_get_ex_data = 'UI_get_ex_data'; } {Do not localize} - {CH fn_UI_set_default_method = 'UI_set_default_method'; } {Do not localize} - {CH fn_UI_get_method = 'UI_get_method'; } {Do not localize} - {CH fn_UI_set_method = 'UI_set_method'; } {Do not localize} - {CH fn_UI_OpenSSL = 'UI_OpenSSL'; } {Do not localize} - {CH fn_UI_create_method = 'UI_create_method'; } {Do not localize} - {CH fn_UI_destroy_method = 'UI_destroy_method'; } {Do not localize} - {CH fn_UI_method_set_opener = 'UI_method_set_opener'; } {Do not localize} - {CH fn_UI_method_set_writer = 'UI_method_set_writer'; } {Do not localize} - {CH fn_UI_method_set_flusher = 'UI_method_set_flusher'; } {Do not localize} - {CH fn_UI_method_set_reader = 'UI_method_set_reader'; } {Do not localize} - {CH fn_UI_method_set_closer = 'UI_method_set_closer'; } {Do not localize} - {CH fn_UI_get_string_type = 'UI_get_string_type'; } {Do not localize} - {CH fn_UI_get_input_flags = 'UI_get_input_flags'; } {Do not localize} - {CH fn_UI_get0_output_string = 'UI_get0_output_string'; } {Do not localize} - {CH fn_UI_get0_action_string = 'UI_get0_action_string'; } {Do not localize} - {CH fn_UI_get0_result_string = 'UI_get0_result_string'; } {Do not localize} - {CH fn_UI_get0_test_string = 'UI_get0_test_string'; } {Do not localize} - {CH fn_UI_get_result_minsize = 'UI_get_result_minsize'; } {Do not localize} - {CH fn_UI_get_result_maxsize = 'UI_get_result_maxsize'; } {Do not localize} - {CH fn_UI_set_result = 'UI_set_result'; } {Do not localize} - {CH fn_UI_UTIL_read_pw_string = 'UI_UTIL_read_pw_string'; } {Do not localize} - {CH fn_UI_UTIL_read_pw = 'UI_UTIL_read_pw'; } {Do not localize} - {CH fn_ERR_load_UI_strings = 'ERR_load_UI_strings'; } {Do not localize} - {$IFNDEF OPENSSL_NO_ENGINE} - {CH fn_ENGINE_get_first = 'ENGINE_get_first'; } {Do not localize} - {CH fn_ENGINE_get_last = 'ENGINE_get_last'; } {Do not localize} - {CH fn_ENGINE_get_next = 'ENGINE_get_next'; } {Do not localize} - {CH fn_ENGINE_get_prev = 'ENGINE_get_prev'; } {Do not localize} - {CH fn_ENGINE_add = 'ENGINE_add'; } {Do not localize} - {CH fn_ENGINE_remove = 'ENGINE_remove'; } {Do not localize} - {CH fn_ENGINE_by_id = 'ENGINE_by_id'; } {Do not localize} - {CH fn_ENGINE_load_openssl = 'ENGINE_load_openssl'; } {Do not localize} - {CH fn_ENGINE_load_dynamic = 'ENGINE_load_dynamic'; } {Do not localize} - {$IFNDEF OPENSSL_NO_STATIC_ENGINE} - {CH fn_ENGINE_load_4758cca = 'ENGINE_load_4758cca'; } {Do not localize} - {CH fn_ENGINE_load_aep = 'ENGINE_load_aep'; } {Do not localize} - {CH fn_ENGINE_load_atalla = 'ENGINE_load_atalla'; } {Do not localize} - {CH fn_ENGINE_load_chil = 'ENGINE_load_chil'; } {Do not localize} - {CH fn_ENGINE_load_cswift = 'ENGINE_load_cswift'; } {Do not localize} - {$IFNDEF OPENSSL_NO_GMP} - {CH fn_ENGINE_load_gmp = 'ENGINE_load_gmp'; } {Do not localize} - {$ENDIF} - {CH fn_ENGINE_load_nuron = 'ENGINE_load_nuron'; } {Do not localize} - {CH fn_ENGINE_load_sureware = 'ENGINE_load_sureware'; } {Do not localize} - {CH fn_ENGINE_load_ubsec = 'ENGINE_load_ubsec'; } {Do not localize} - {$ENDIF} - {CH fn_ENGINE_load_cryptodev = 'ENGINE_load_cryptodev'; } {Do not localize} - {CH fn_ENGINE_load_padlock = 'ENGINE_load_padlock'; } {Do not localize} - {CH fn_ENGINE_load_builtin_engines = 'ENGINE_load_builtin_engines'; } {Do not localize} - {$IFDEF WIN32_OR_WIN64} - {$IFNDEF OPENSSL_NO_CAPIENG} - {CH fn_ENGINE_load_capi = 'ENGINE_load_capi'; } {Do not localize} - {$ENDIF} - {$ENDIF} - {CH fn_ENGINE_get_table_flags = 'ENGINE_get_table_flags'; } {Do not localize} - {CH fn_ENGINE_set_table_flags = 'ENGINE_set_table_flags'; } {Do not localize} - {CH fn_ENGINE_register_RSA = 'ENGINE_register_RSA'; } {Do not localize} - {CH fn_ENGINE_unregister_RSA = 'ENGINE_unregister_RSA'; } {Do not localize} - {CH fn_ENGINE_register_all_RSA = 'ENGINE_register_all_RSA'; } {Do not localize} - {CH fn_ENGINE_register_DSA = 'ENGINE_register_DSA'; } {Do not localize} - {CH fn_ENGINE_unregister_DSA = 'ENGINE_unregister_DSA'; } {Do not localize} - {CH fn_ENGINE_register_all_DSA = 'ENGINE_register_all_DSA'; } {Do not localize} - {CH fn_ENGINE_register_ECDH = 'ENGINE_register_ECDH'; } {Do not localize} - {CH fn_ENGINE_unregister_ECDH = 'ENGINE_unregister_ECDH'; } {Do not localize} - {CH fn_ENGINE_register_all_ECDH = 'ENGINE_register_all_ECDH'; } {Do not localize} - {CH fn_ENGINE_register_ECDSA = 'ENGINE_register_ECDSA'; } {Do not localize} - {CH fn_ENGINE_unregister_ECDSA = 'ENGINE_unregister_ECDSA'; } {Do not localize} - {CH fn_ENGINE_register_all_ECDSA = 'ENGINE_register_all_ECDSA'; } {Do not localize} - {CH fn_ENGINE_register_DH = 'ENGINE_register_DH'; } {Do not localize} - {CH fn_ENGINE_unregister_DH = 'ENGINE_unregister_DH'; } {Do not localize} - {CH fn_ENGINE_register_all_DH = 'ENGINE_register_all_DH'; } {Do not localize} - {CH fn_ENGINE_register_RAND = 'ENGINE_register_RAND'; } {Do not localize} - {CH fn_ENGINE_unregister_RAND = 'ENGINE_unregister_RAND'; } {Do not localize} - {CH fn_ENGINE_register_all_RAND = 'ENGINE_register_all_RAND'; } {Do not localize} - {CH fn_ENGINE_register_STORE = 'ENGINE_register_STORE'; } {Do not localize} - {CH fn_ENGINE_unregister_STORE = 'ENGINE_unregister_STORE'; } {Do not localize} - {CH fn_ENGINE_register_all_STORE = 'ENGINE_register_all_STORE'; } {Do not localize} - {CH fn_ENGINE_register_ciphers = 'ENGINE_register_ciphers'; } {Do not localize} - {CH fn_ENGINE_unregister_ciphers = 'ENGINE_unregister_ciphers'; } {Do not localize} - {CH fn_ENGINE_register_all_ciphers = 'ENGINE_register_all_ciphers'; } {Do not localize} - {CH fn_ENGINE_register_digests = 'ENGINE_register_digests'; } {Do not localize} - {CH fn_ENGINE_unregister_digests = 'ENGINE_unregister_digests'; } {Do not localize} - {CH fn_ENGINE_register_all_digests= 'ENGINE_register_all_digests'; } {Do not localize} - {CH fn_ENGINE_register_complete = 'ENGINE_register_complete'; } {Do not localize} - {CH fn_ENGINE_register_all_complete = 'ENGINE_register_all_complete'; } {Do not localize} - {CH fn_ENGINE_ctrl = 'ENGINE_ctrl'; } {Do not localize} - {CH fn_ENGINE_cmd_is_executable = 'ENGINE_cmd_is_executable'; } {Do not localize} - {CH fn_ENGINE_ctrl_cmd = 'ENGINE_ctrl_cmd'; } {Do not localize} - {CH fn_ENGINE_ctrl_cmd_string = 'ENGINE_ctrl_cmd_string'; } {Do not localize} - {CH fn_ENGINE_new = 'ENGINE_new'; } {Do not localize} - {CH fn_ENGINE_free = 'ENGINE_free'; } {Do not localize} - {CH fn_ENGINE_up_ref = 'ENGINE_up_ref'; } {Do not localize} - {CH fn_ENGINE_set_id = 'ENGINE_set_id'; } {Do not localize} - {CH fn_ENGINE_set_name = 'ENGINE_set_name'; } {Do not localize} - {CH fn_ENGINE_set_RSA = 'ENGINE_set_RSA'; } {Do not localize} - {CH fn_ENGINE_set_DSA = 'ENGINE_set_DSA'; } {Do not localize} - {CH fn_ENGINE_set_ECDH = 'ENGINE_set_ECDH'; } {Do not localize} - {CH fn_ENGINE_set_ECDSA = 'ENGINE_set_ECDSA'; } {Do not localize} - {CH fn_ENGINE_set_DH = 'ENGINE_set_DH'; } {Do not localize} - {CH fn_ENGINE_set_RAND = 'ENGINE_set_RAND'; } {Do not localize} - {CH fn_ENGINE_set_STORE = 'ENGINE_set_STORE'; } {Do not localize} - {CH fn_ENGINE_set_destroy_function = 'ENGINE_set_destroy_function'; } {Do not localize} - {CH fn_ENGINE_set_init_function = 'ENGINE_set_init_function'; } {Do not localize} - {CH fn_ENGINE_set_finish_function = 'ENGINE_set_finish_function'; } {Do not localize} - {CH fn_ENGINE_set_ctrl_function = 'ENGINE_set_ctrl_function'; } {Do not localize} - {CH fn_ENGINE_set_load_privkey_function = 'ENGINE_set_load_privkey_function'; } {Do not localize} - {CH fn_ENGINE_set_load_pubkey_function = 'ENGINE_set_load_pubkey_function'; } {Do not localize} - {CH fn_ENGINE_set_load_ssl_client_cert_function = 'ENGINE_set_load_ssl_client_cert_function'; } {Do not localize} - {CH fn_ENGINE_set_ciphers = 'ENGINE_set_ciphers'; } {Do not localize} - {CH fn_ENGINE_set_digests = 'ENGINE_set_digests'; } {Do not localize} - {CH fn_ENGINE_set_flags = 'ENGINE_set_flags'; } {Do not localize} - {CH fn_ENGINE_set_cmd_defns = 'ENGINE_set_cmd_defns'; } {Do not localize} - {CH fn_ENGINE_get_ex_new_index = 'ENGINE_get_ex_new_index'; } {Do not localize} - {CH fn_ENGINE_set_ex_data = 'ENGINE_set_ex_data'; } {Do not localize} - {CH fn_ENGINE_get_ex_data = 'ENGINE_get_ex_data'; } {Do not localize} - {CH fn_ENGINE_cleanup = 'ENGINE_cleanup'; } {Do not localize} - {CH fn_ENGINE_get_id = 'ENGINE_get_id'; } {Do not localize} - {CH fn_ENGINE_get_name = 'ENGINE_get_name'; } {Do not localize} - {CH fn_ENGINE_get_RSA = 'ENGINE_get_RSA'; } {Do not localize} - {CH fn_ENGINE_get_DSA = 'ENGINE_get_DSA'; } {Do not localize} - {CH fn_ENGINE_get_ECDH = 'ENGINE_get_ECDH'; } {Do not localize} - {CH fn_ENGINE_get_ECDSA = 'ENGINE_get_ECDSA'; } {Do not localize} - {CH fn_ENGINE_get_DH = 'ENGINE_get_DH'; } {Do not localize} - {CH fn_ENGINE_get_RAND = 'ENGINE_get_RAND'; } {Do not localize} - {CH fn_ENGINE_get_STORE = 'ENGINE_get_STORE'; } {Do not localize} - {CH fn_ENGINE_get_destroy_function = 'ENGINE_get_destroy_function'; } {Do not localize} - {CH fn_ENGINE_get_init_function = 'ENGINE_get_init_function'; } {Do not localize} - {CH fn_ENGINE_get_finish_function = 'ENGINE_get_finish_function'; } {Do not localize} - {CH fn_ENGINE_get_ctrl_function = 'ENGINE_get_ctrl_function'; } {Do not localize} - {CH fn_ENGINE_get_load_privkey_function = 'ENGINE_get_load_privkey_function'; } {Do not localize} - {CH fn_ENGINE_get_load_pubkey_function = 'ENGINE_get_load_pubkey_function'; } {Do not localize} - {CH fn_ENGINE_get_ssl_client_cert_function = 'ENGINE_get_ssl_client_cert_function'; } {Do not localize} - {CH fn_ENGINE_get_ciphers = 'ENGINE_get_ciphers'; } {Do not localize} - {CH fn_ENGINE_get_digests = 'ENGINE_get_digests'; } {Do not localize} - {CH fn_ENGINE_get_cipher = 'ENGINE_get_cipher'; } {Do not localize} - {CH fn_ENGINE_get_digest = 'ENGINE_get_digest'; } {Do not localize} - {CH fn_ENGINE_get_cmd_defns = 'ENGINE_get_cmd_defns'; } {Do not localize} - {CH fn_ENGINE_get_flags = 'ENGINE_get_flags'; } {Do not localize} - {CH fn_ENGINE_init = 'ENGINE_init'; } {Do not localize} - {CH fn_ENGINE_finish = 'ENGINE_finish'; } {Do not localize} - {CH fn_ENGINE_load_private_key = 'ENGINE_load_private_key'; } {Do not localize} - {CH fn_ENGINE_load_public_key = 'ENGINE_load_public_key'; } {Do not localize} - {CH fn_ENGINE_load_ssl_client_cert = 'ENGINE_load_ssl_client_cert'; } {Do not localize} - {CH fn_ENGINE_get_default_RSA = 'ENGINE_get_default_RSA'; } {Do not localize} - {CH fn_ENGINE_get_default_DSA = 'ENGINE_get_default_DSA'; } {Do not localize} - {CH fn_ENGINE_get_default_ECDH = 'ENGINE_get_default_ECDH'; } {Do not localize} - {CH fn_ENGINE_get_default_ECDSA = 'ENGINE_get_default_ECDSA'; } {Do not localize} - {CH fn_ENGINE_get_default_DH = 'ENGINE_get_default_DH'; } {Do not localize} - {CH fn_ENGINE_get_default_RAND = 'ENGINE_get_default_RAND'; } {Do not localize} - {CH fn_ENGINE_get_cipher_engine = 'ENGINE_get_cipher_engine'; } {Do not localize} - {CH fn_ENGINE_get_digest_engine = 'ENGINE_get_digest_engine'; } {Do not localize} - {CH fn_ENGINE_set_default_RSA = 'ENGINE_set_default_RSA'; } {Do not localize} - {CH fn_ENGINE_set_default_string = 'ENGINE_set_default_string'; } {Do not localize} - {CH fn_ENGINE_set_default_DSA = 'ENGINE_set_default_DSA'; } {Do not localize} - {CH fn_ENGINE_set_default_ECDH = 'ENGINE_set_default_ECDH'; } {Do not localize} - {CH fn_ENGINE_set_default_ECDSA = 'ENGINE_set_default_ECDSA'; } {Do not localize} - {CH fn_ENGINE_set_default_DH = 'ENGINE_set_default_DH'; } {do not localize} - {CH fn_ENGINE_set_default_RAND = 'ENGINE_set_default_RAND'; } {Do not localize} - {CH fn_ENGINE_set_default_ciphers = 'ENGINE_set_default_ciphers'; } {Do not localize} - {CH fn_ENGINE_set_default_digests = 'ENGINE_set_default_digests'; } {Do not localize} - {CH fn_ENGINE_set_default = 'ENGINE_set_default'; } {Do not localize} - {CH fn_ENGINE_add_conf_module = 'ENGINE_add_conf_module'; } {Do not localize} - {CH fn_ENGINE_get_static_state = 'ENGINE_get_static_state'; } {Do not localize} - {$IFDEF OPENBSD} - {CH fn_ENGINE_setup_bsd_cryptodev = 'ENGINE_setup_bsd_cryptodev'; } {Do not localize} - {$ENDIF} - {$IFDEF FREEBSD} - {CH fn_ENGINE_setup_bsd_cryptodev = 'ENGINE_setup_bsd_cryptodev'; } {Do not localize} - {$ENDIF} - {CH fn_ERR_load_ENGINE_strings = 'ERR_load_ENGINE_strings'; } {Do not localize} - {$ENDIF} - {$IFDEF OPENSSL_EXPORT_VAR_AS_FUNCTION} - //These have a gl prefix because they may not be functions in some platforms. - //They are functions in Win32 because DLL's can't export global variables - //while Unix shared objects may expose them. - {CH gl_ASN1_OBJECT_it = 'ASN1_OBJECT_it'; } {do not localize} - {CH gl_ASN1_OCTET_STRING_NDEF_it = 'ASN1_OCTET_STRING_NDEF_it'; } {Do not localize} - {CH gl_ASN1_BOOLEAN_it = 'ASN1_BOOLEAN_it'; } {Do not localize} - {CH gl_ASN1_SEQUENCE_it = 'ASN1_SEQUENCE_it'; } {Do not localize} - {CH gl_CBIGNUM_it = 'CBIGNUM_it'; } {Do not localize} - {CH gl_BIGNUM_it = 'BIGNUM_it'; } {Do not localize} - {CH gl_LONG_it = 'LONG_it'; } {Do not localize} - {CH gl_ZLONG_it = 'ZLONG_it'; } {Do not localize} - {CH gl_POLICY_MAPPING_it = 'POLICY_MAPPING_it'; } {Do not localize} - {CH gl_POLICY_MAPPINGS_it = 'POLICY_MAPPINGS_it'; } {Do not localize} - {CH gl_GENERAL_SUBTREE_it = 'GENERAL_SUBTREE_it'; } {Do not localize} - {CH gl_NAME_CONSTRAINTS_it = 'NAME_CONSTRAINTS_it'; } {Do not localize} - {CH gl_POLICY_CONSTRAINTS_it = 'POLICY_CONSTRAINTS_it'; } {Do not localize} - {$ENDIF} - - -function LoadFunction(const FceName: TIdLibFuncName; const ACritical : Boolean = True): Pointer; -{$IFDEF WINDOWS} -var - Err: DWORD; -{$ENDIF} -begin - Result := LoadLibFunction(hIdSSL, FceName); - if (Result <> nil) or (not ACritical) then begin - Exit; - end; - {$IFDEF WINDOWS} - Err := GetLastError(); - if Err <> ERROR_PROC_NOT_FOUND then begin - FFailedLoadList.Add(IndyFormat(RSOSSMissingExport_WithErrCode, [FceName, Err])); - Exit; - end; - {$ELSE} - // TODO: add error code to message... - {$ENDIF} - FFailedLoadList.Add(FceName); -end; - -function LoadFunctionCLib(const FceName: TIdLibFuncName; const ACritical : Boolean = True): Pointer; -{$IFDEF WINDOWS} -var - Err: DWORD; -{$ENDIF} -begin - Result := LoadLibFunction(hIdCrypto, FceName); - if (Result <> nil) or (not ACritical) then begin - Exit; - end; - {$IFDEF WINDOWS} - Err := GetLastError(); - if Err <> ERROR_PROC_NOT_FOUND then begin - FFailedLoadList.Add(IndyFormat(RSOSSMissingExport_WithErrCode, [FceName, Err])); - Exit; - end; - {$ELSE} - // TODO: add error code to message... - {$ENDIF} - FFailedLoadList.Add(FceName); -end; - -// Id_ossl_old_des_set_odd_parity -{ -IMPORTANT!!! - -Indy DES support probably had been written to use some old "des_" functions. -The OpenSSL developers changed that interface to a new "des_*" API. They have some - "_ossl_old_des_*" for backwards compatability with the old functions - which are defined in des_old.h. -} -function LoadOldCLib(const AOldName, ANewName : TIdLibFuncName; const ACritical : Boolean = True): Pointer; -{$IFDEF WINDOWS} -var - Err: DWORD; -{$ENDIF} -begin - Result := LoadLibFunction(hIdCrypto, AOldName); - if Result <> nil then begin - Exit; - end; - {$IFDEF WINDOWS} - if ACritical then begin - Err := GetLastError(); - if Err <> ERROR_PROC_NOT_FOUND then begin - FFailedLoadList.Add(IndyFormat(RSOSSMissingExport_WithErrCode, [AOldName, Err])); - Exit; - end; - end; - {$ENDIF} - Result := LoadLibFunction(hIdCrypto, ANewName); - if (Result <> nil) or (not ACritical) then begin - Exit; - end; - {$IFDEF WINDOWS} - Err := GetLastError(); - if Err <> ERROR_PROC_NOT_FOUND then begin - FFailedLoadList.Add(IndyFormat(RSOSSMissingExport_WithErrCode, [ANewName, Err])); - Exit; - end; - {$ELSE} - // TODO: add error code to message... - {$ENDIF} - FFailedLoadList.Add(AOldName); -end; - -{$ENDIF} // STATICLOAD_OPENSSL - -// remove this function, it is not used -function ErrMsg(AErr : TIdC_ULONG) : string; -const - sMaxErrStr = 300; -var - LString: array[0..sMaxErrStr] of TIdAnsiChar; - {$IFDEF USE_MARSHALLED_PTRS} - LStringPtr: TPtrWrapper; - {$ENDIF} -begin - {$IFDEF USE_MARSHALLED_PTRS} - LStringPtr := TPtrWrapper.Create(@LString[0]); - {$ENDIF} - ERR_error_string_n(AErr, - {$IFDEF USE_MARSHALLED_PTRS} - LStringPtr.ToPointer - {$ELSE} - LString - {$ENDIF}, sMaxErrStr); - LString[sMaxErrStr] := TIdAnsiChar(0); - {$IFDEF USE_MARSHALLED_PTRS} - Result := TMarshal.ReadStringAsAnsi(LStringPtr); - {$ELSE} - Result := String(LString); - {$ENDIF} -end; - -{$IFNDEF STATICLOAD_OPENSSL} - -{$UNDEF USE_BASEUNIX_OR_VCL_POSIX} -{$IFDEF USE_BASEUNIX} - {$DEFINE USE_BASEUNIX_OR_VCL_POSIX} -{$ENDIF} -{$IFDEF USE_VCL_POSIX} - {$DEFINE USE_BASEUNIX_OR_VCL_POSIX} -{$ENDIF} - -{$UNDEF USE_BASEUNIX_OR_VCL_POSIX_OR_KYLIXCOMPAT} -{$IFDEF USE_BASEUNIX_OR_VCL_POSIX} - {$DEFINE USE_BASEUNIX_OR_VCL_POSIX_OR_KYLIXCOMPAT} -{$ENDIF} -{$IFDEF KYLIXCOMPAT} - {$DEFINE USE_BASEUNIX_OR_VCL_POSIX_OR_KYLIXCOMPAT} -{$ENDIF} - -var - GIdOpenSSLPath: String = ''; - -procedure IdOpenSSLSetLibPath(const APath: String); -begin - if APath <> '' then begin - GIdOpenSSLPath := IndyIncludeTrailingPathDelimiter(APath); - end else begin - GIdOpenSSLPath := ''; - end; -end; - - {$IFDEF UNIX} -var - // TODO: default these to False instead, as modern systems now - // use symlinks that point to OpenSSL 1.1.x+, which is not - // compatible with this unit... - GIdCanLoadSymLinks: Boolean = True; - GIdLoadSymLinksFirst: Boolean = True; - -procedure IdOpenSSLSetCanLoadSymLinks(ACanLoad: Boolean); -begin - GIdCanLoadSymLinks := ACanLoad; -end; - -procedure IdOpenSSLSetLoadSymLinksFirst(ALoadFirst: Boolean); -begin - GIdLoadSymLinksFirst := ALoadFirst; -end; - {$ENDIF} - -function LoadSSLCryptoLibrary: TIdLibHandle; -{$IFDEF WINDOWS} -var - Err: DWORD; -{$ELSE} - {$IFDEF USE_BASEUNIX_OR_VCL_POSIX_OR_KYLIXCOMPAT} // TODO: use {$IF DEFINED(UNIX)} instead? -var - i, j: Integer; - LLibVersions: array [0..26] of string; - LCanLoadSymLinks, LLoadSymLinksFirst: Boolean; - {$ENDIF} -{$ENDIF} -begin - {$IFDEF WINDOWS} - //On Windows, you should use SafeLoadLibrary because - //the LoadLibrary API call messes with the FPU control word. - Result := SafeLoadLibrary(GIdOpenSSLPath + SSLCLIB_DLL_name); - if Result <> IdNilHandle then begin - Exit; - end; - {$ELSE} - {$IFDEF USE_BASEUNIX_OR_VCL_POSIX_OR_KYLIXCOMPAT} // TODO: use {$IF DEFINED(UNIX)} instead? - // Workaround that is required under Linux (changed RTLD_GLOBAL with RTLD_LAZY Note: also work with LoadLibrary()) - Result := IdNilHandle; - LCanLoadSymLinks := GIdCanLoadSymLinks; - LLoadSymLinksFirst := GIdLoadSymLinksFirst; - if LCanLoadSymLinks and LLoadSymLinksFirst then begin - Result := HackLoad(GIdOpenSSLPath + SSLCLIB_DLL_name, []); - if Result <> IdNilHandle then begin - Exit; - end; - // TODO: exit here if the error is anything other than the file not being found... - end; - for i := Low(SSLDLLVers) to High(SSLDLLVers) do begin - for j := Low(SSLDLLVersChar) to High(SSLDLLVersChar) do begin - LLibVersions[j] := SSLDLLVers[i] + SSLDLLVersChar[j]; - end; - Result := HackLoad(GIdOpenSSLPath + SSLCLIB_DLL_name, LLibVersions); - if Result <> IdNilHandle then begin - Exit; - end; - // TODO: exit here if the error is anything other than the file not being found... - end; - if LCanLoadSymLinks and (not LLoadSymLinksFirst) then begin - Result := HackLoad(GIdOpenSSLPath + SSLCLIB_DLL_name, []); - if Result <> IdNilHandle then begin - Exit; - end; - // TODO: exit here if the error is anything other than the file not being found... - end; - {$ELSE} - Result := IdNilHandle; - {$ENDIF} - {$ENDIF} - {$IFDEF WINDOWS} - Err := GetLastError; - FFailedLoadList.Add(IndyFormat(RSOSSFailedToLoad_WithErrCode, [GIdOpenSSLPath + SSLCLIB_DLL_name, Err])); - {$ELSE} - // TODO: add error code to message... - FFailedLoadList.Add(IndyFormat(RSOSSFailedToLoad, [GIdOpenSSLPath + SSLCLIB_DLL_name {$IFDEF UNIX}+ LIBEXT{$ENDIF}])); - {$ENDIF} -end; - -function LoadSSLLibrary: TIdLibHandle; -{$IFDEF WINDOWS} -var - Err: DWORD; -{$ELSE} - {$IFDEF USE_BASEUNIX_OR_VCL_POSIX_OR_KYLIXCOMPAT} // TODO: use {$IF DEFINED(UNIX)} instead? -var - i, j: Integer; - LLibVersions: array [0..26] of string; - LCanLoadSymLinks, LLoadSymLinksFirst: Boolean; - {$ENDIF} -{$ENDIF} -begin - {$IFDEF WINDOWS} - //On Windows, you should use SafeLoadLibrary because - //the LoadLibrary API call messes with the FPU control word. - Result := SafeLoadLibrary(GIdOpenSSLPath + SSL_DLL_name); - if Result <> IdNilHandle then begin - Exit; - end; - // TODO: exit here if the error is anything other than the file not being found... - //This is a workaround for mingw32-compiled SSL .DLL which - //might be named 'libssl32.dll'. - Result := SafeLoadLibrary(GIdOpenSSLPath + SSL_DLL_name_alt); - if Result <> IdNilHandle then begin - Exit; - end; - {$ELSE} - {$IFDEF USE_BASEUNIX_OR_VCL_POSIX_OR_KYLIXCOMPAT} // TODO: use {$IF DEFINED(UNIX)} instead? - // Workaround that is required under Linux (changed RTLD_GLOBAL with RTLD_LAZY Note: also work with LoadLibrary()) - Result := IdNilHandle; - LCanLoadSymLinks := GIdCanLoadSymLinks; - LLoadSymLinksFirst := GIdLoadSymLinksFirst; - if LCanLoadSymLinks and LLoadSymLinksFirst then begin - Result := HackLoad(GIdOpenSSLPath + SSL_DLL_name, []); - if Result <> IdNilHandle then begin - Exit; - end; - // TODO: exit here if the error is anything other than the file not being found... - end; - for i := Low(SSLDLLVers) to High(SSLDLLVers) do begin - for j := Low(SSLDLLVersChar) to High(SSLDLLVersChar) do begin - LLibVersions[j] := SSLDLLVers[i] + SSLDLLVersChar[j]; - end; - Result := HackLoad(GIdOpenSSLPath + SSL_DLL_name, LLibVersions); - if Result <> IdNilHandle then begin - Exit; - end; - // TODO: exit here if the error is anything other than the file not being found... - end; - if LCanLoadSymLinks and (not LLoadSymLinksFirst) then begin - Result := HackLoad(GIdOpenSSLPath + SSL_DLL_name, []); - if Result <> IdNilHandle then begin - Exit; - end; - // TODO: exit here if the error is anything other than the file not being found... - end; - {$ELSE} - Result := IdNilHandle; - {$ENDIF} - {$ENDIF} - {$IFDEF WINDOWS} - Err := GetLastError; - FFailedLoadList.Add(IndyFormat(RSOSSFailedToLoad_WithErrCode, [GIdOpenSSLPath + SSL_DLL_name, Err])); - {$ELSE} - // TODO: add error code to message... - FFailedLoadList.Add(IndyFormat(RSOSSFailedToLoad, [GIdOpenSSLPath + SSL_DLL_name {$IFDEF UNIX}+ LIBEXT{$ENDIF}])); - {$ENDIF} -end; - -{$ENDIF} // STATICLOAD_OPENSSL - -{$IFDEF ANDROID} -// In Android 6, Google replaced OpenSSL with BoringSSL, which is a fork of -// OpenSSL and does not export many functions, including the following... - -type - msg_callback_proc = procedure(write_p, version, content_type : TIdC_INT; const buf : Pointer; len: size_t; ssl: PSSL; arg: Pointer); cdecl; - -function Indy_ssl_callback_ctrl(s: PSSL; cb_id: TIdC_INT; fp: SSL_METHOD_PROC): TIdC_LONG; cdecl; -begin - if cb_id = SSL_CTRL_SET_MSG_CALLBACK then begin - s.msg_callback := msg_callback_proc(fp); - Result := 1; - end else begin - Result := s.method.ssl_callback_ctrl(s, cb_id, fp); - end; -end; - -function Indy_SSL_CTX_callback_ctrl(ctx: PSSL_CTX; cmd: TIdC_INT; fp: SSL_METHOD_PROC): TIdC_LONG; cdecl; -begin - if cmd = SSL_CTRL_SET_MSG_CALLBACK then begin - ctx.msg_callback := msg_callback_proc(fp); - Result := 1; - end else begin - Result := ctx.method.ssl_ctx_callback_ctrl(ctx, cmd, fp); - end; -end; - -procedure Indy_SSL_copy_session_id(sslTo: PSSL; const sslFrom: PSSL) cdecl; -begin - // TODO: what to do here? -end; - -procedure Indy_CRYPTO_lock(mode, _type : TIdC_INT; const _file : PIdAnsiChar; line : TIdC_INT) cdecl; -begin - // TODO: what to do here? -end; -{$ENDIF} - -{$IFDEF STATICLOAD_OPENSSL} - -function Load: Boolean; -begin - bIsLoaded := True; - Result := True; -end; - -{$ELSE} - -function Load: Boolean; -var - LVersion, LMajor, LMinor: TIdC_ULONG; - LVersionStr: string; -begin - Result := False; - Assert(FFailedLoadList<>nil); - - if (hIdCrypto <> IdNilHandle) and (hIdSSL <> IdNilHandle) and (FFailedLoadList.Count = 0) then begin - Result := True; - Exit; - end; - - FFailedLoadList.Clear; - - if hIdCrypto = IdNilHandle then begin - hIdCrypto := LoadSSLCryptoLibrary; - if hIdCrypto = IdNilHandle then begin - Exit; - end; - end; - - if hIdSSL = IdNilHandle then begin - hIdSSL := LoadSSLLibrary; - if hIdSSL = IdNilHandle then begin - Exit; - end; - end; - - // RLebeau 6/8/2021: verify the type of library is supported... - - @_SSLeay_version := LoadOldCLib(fn_SSLeay_version, 'OpenSSL_version'); {Do not localize} //Used by Indy - @SSLeay := LoadOldCLib(fn_SSLeay, 'OpenSSL_version_num'); {Do not localize} //Used by Indy - - if Assigned(_SSLeay_version) then begin - LVersionStr := String(_SSLeay_version(SSLEAY_VERSION)); - end; - - if TextStartsWith(LVersionStr, 'LibreSSL') then {do not localize} - begin - { - According to the LibreSSL Portable GitHub repo: - https://github.com/libressl-portable/portable - - LibreSSL is API compatible with OpenSSL 1.0.1, but does not yet include all new APIs from OpenSSL 1.0.2 and later. - LibreSSL also includes APIs not yet present in OpenSSL. The current common API subset is OpenSSL 1.0.1. - - LibreSSL is not ABI compatible with any release of OpenSSL, or necessarily earlier releases of LibreSSL. - You will need to relink your programs to LibreSSL in order to use it, just as in moving between major versions - of OpenSSL. LibreSSL's installed library version numbers are incremented to account for ABI and API changes. - } - // TODO: add version checking? - end - else if TextStartsWith(LVersionStr, 'OpenSSL') or (LVersionStr = '') then {do not localize} - begin - // RLebeau 2/2/2021: verify the version is OpenSSL 1.0.2 or earlier, as OpenSSL 1.1.0 made MAJOR changes that we do not support yet... - if Assigned(SSLeay) then - begin - LVersion := SSLeay; - LMajor := (LVersion and $F0000000) shr 28; - LMinor := (LVersion and $0FF00000) shr 20; - if (LMajor = 0) and (LMinor = 0) then begin // < 0.9.3 - LMajor := (LVersion and $F000) shr 12; - LMinor := (LVersion and $0F00) shr 8; - end; - if (LMajor > 1) or ((LMajor = 1) and (LMinor > 0)) then // OpenSSL 1.1.0 or higher - begin - FFailedLoadList.Add(IndyFormat(RSOSSUnsupportedVersion, [LVersion])); - Exit; - end; - end; - end else - begin - FFailedLoadList.Add(IndyFormat(RSOSSUnsupportedLibrary, [LVersionStr])); - Exit; - end; - - // TODO: stop loading non-critical functions here. We should use per-function - // stubs instead, similar to the approach used in IdWinsock2.pas, so functions - // are not loaded until they are actually used for the first time... - - @SSL_CTX_set_cipher_list := LoadFunction(fn_SSL_CTX_set_cipher_list); //Used by Indy - @SSL_CTX_new := LoadFunction(fn_SSL_CTX_new); //Used by Indy - @SSL_CTX_free := LoadFunction(fn_SSL_CTX_free); //Used by Indy - @SSL_set_fd := LoadFunction(fn_SSL_set_fd); //Used by Indy - @SSL_CTX_use_PrivateKey_file := LoadFunction(fn_SSL_CTX_use_PrivateKey_file); //Used by Indy - @SSL_CTX_use_PrivateKey := LoadFunction(fn_SSL_CTX_use_PrivateKey); //Used by Indy - @SSL_CTX_use_certificate := LoadFunction(fn_SSL_CTX_use_certificate); //Used by Indy - @SSL_CTX_use_certificate_file := LoadFunction(fn_SSL_CTX_use_certificate_file); //Used by Indy - @SSL_CTX_use_certificate_chain_file := LoadFunction(fn_SSL_CTX_use_certificate_chain_file,False); //Used by Indy - @SSL_load_error_strings := LoadFunction(fn_SSL_load_error_strings); //Used by Indy - @SSL_state_string_long := LoadFunction(fn_SSL_state_string_long); //Used by Indy - @SSL_alert_desc_string_long := LoadFunction(fn_SSL_alert_desc_string_long); //Used by Indy - @SSL_alert_type_string_long := LoadFunction(fn_SSL_alert_type_string_long); //Used by Indy - - @SSL_get_peer_certificate := LoadFunction(fn_SSL_get_peer_certificate); //Used by Indy - @SSL_CTX_set_verify := LoadFunction(fn_SSL_CTX_set_verify); //Used by Indy - @SSL_CTX_set_verify_depth := LoadFunction(fn_SSL_CTX_set_verify_depth); //Used by Indy - @SSL_CTX_get_verify_depth := LoadFunction(fn_SSL_CTX_get_verify_depth); - @SSL_CTX_set_default_passwd_cb := LoadFunction(fn_SSL_CTX_set_default_passwd_cb); //Used by Indy - @SSL_CTX_set_default_passwd_cb_userdata:= LoadFunction(fn_SSL_CTX_set_default_passwd_cb_userdata); //Used by Indy - @SSL_CTX_check_private_key := LoadFunction(fn_SSL_CTX_check_private_key); //Used by Indy - @SSL_new := LoadFunction(fn_SSL_new); //Used by Indy - @SSL_free := LoadFunction(fn_SSL_free); //Used by Indy - @SSL_accept := LoadFunction(fn_SSL_accept); //Used by Indy - @SSL_connect := LoadFunction(fn_SSL_connect); //Used by Indy - @SSL_read := LoadFunction(fn_SSL_read); //Used by Indy - @SSL_peek := LoadFunction(fn_SSL_peek,False); - @SSL_pending := LoadFunction(fn_SSL_pending,False); - @SSL_write := LoadFunction(fn_SSL_write); //Used by Indy - @SSL_ctrl := LoadFunction(fn_SSL_ctrl); - @SSL_callback_ctrl := LoadFunction(fn_SSL_callback_ctrl{$IFDEF ANDROID}, False{$ENDIF}); - {$IFDEF ANDROID} - if not Assigned(SSL_callback_ctrl) then begin - @SSL_callback_ctrl := @Indy_SSL_callback_ctrl; - end; - {$ENDIF} - @SSL_CTX_ctrl := LoadFunction(fn_SSL_CTX_ctrl); - @SSL_CTX_callback_ctrl := LoadFunction(fn_SSL_CTX_callback_ctrl{$IFDEF ANDROID}, False{$ENDIF}); - {$IFDEF ANDROID} - if not Assigned(SSL_CTX_callback_ctrl) then begin - @SSL_CTX_callback_ctrl := @Indy_SSL_CTX_callback_ctrl; - end; - {$ENDIF} - @SSL_get_error := LoadFunction(fn_SSL_get_error); //Used by Indy - - // RLebeau 9/7/2015 - making all of the "..._method()" functions optional. If - // a user wants to disable a given SSL/TLS version at runtime, there is no need - // for it to be marked as "critical" at load time, in case it is not available - // in their version of OpenSSL. For instance, some vendors disable SSLv2 so - // it is not even exported. If a user wants to use a given version and it is - // not available in their version of OpenSSL, TIdSSLContext.SetSSLMethod() will - // now raise a runtime error... - @SSLv2_method := LoadFunction(fn_SSLv2_method,False); //Used by Indy - @SSLv2_server_method := LoadFunction(fn_SSLv2_server_method,False); //Used by Indy - @SSLv2_client_method := LoadFunction(fn_SSLv2_client_method,False); //Used by Indy - @SSLv3_method := LoadFunction(fn_SSLv3_method,False); //Used by Indy - @SSLv3_server_method := LoadFunction(fn_SSLv3_server_method,False); //Used by Indy - @SSLv3_client_method := LoadFunction(fn_SSLv3_client_method,False); //Used by Indy - @SSLv23_method := LoadFunction(fn_SSLv23_method,False); //Used by Indy - @SSLv23_server_method := LoadFunction(fn_SSLv23_server_method,False); //Used by Indy - @SSLv23_client_method := LoadFunction(fn_SSLv23_client_method,False); //Used by Indy - @TLSv1_method := LoadFunction(fn_TLSv1_method,False); //Used by Indy - @TLSv1_server_method := LoadFunction(fn_TLSv1_server_method,False); //Used by Indy - @TLSv1_client_method := LoadFunction(fn_TLSv1_client_method,False); //Used by Indy - @TLSv1_1_method := LoadFunction(fn_TLSv1_1_method,False); //Used by Indy - @TLSv1_1_server_method := LoadFunction(fn_TLSv1_1_server_method,False); //Used by Indy - @TLSv1_1_client_method := LoadFunction(fn_TLSv1_1_client_method,False); //Used by Indy - @TLSv1_2_method := LoadFunction(fn_TLSv1_2_method,False); //Used by Indy - @TLSv1_2_server_method := LoadFunction(fn_TLSv1_2_server_method,False); //Used by Indy - @TLSv1_2_client_method := LoadFunction(fn_TLSv1_2_client_method,False); //Used by Indy - @DTLSv1_method := LoadFunction(fn_DTLSv1_method, False); - @DTLSv1_server_method := LoadFunction(fn_DTLSv1_server_method, False); - @DTLSv1_client_method := LoadFunction(fn_DTLSv1_client_method, False); - // - - @SSL_shutdown := LoadFunction(fn_SSL_shutdown); //Used by Indy - @SSL_set_connect_state := LoadFunction(fn_SSL_set_connect_state,False); - @SSL_set_accept_state := LoadFunction(fn_SSL_set_accept_state,False); - @SSL_set_shutdown := LoadFunction(fn_SSL_set_shutdown); //Used by Indy - @SSL_CTX_load_verify_locations := LoadFunction(fn_SSL_CTX_load_verify_locations); //Used by Indy - @SSL_get_session := LoadFunction(fn_SSL_get_session); //Used by Indy - @SSLeay_add_ssl_algorithms := LoadFunction(fn_SSLeay_add_ssl_algorithms); //Used by Indy - @SSL_SESSION_get_id := LoadFunction(fn_SSL_SESSION_get_id); //Used by Indy - @SSL_copy_session_id := LoadFunction(fn_SSL_copy_session_id{$IFDEF ANDROID}, False{$ENDIF}); //Used by Indy - {$IFDEF ANDROID} - if not Assigned(SSL_copy_session_id) then begin - @SSL_copy_session_id := @Indy_SSL_copy_session_id; - end; - {$ENDIF} - // CRYPTO LIB - @d2i_X509_NAME := LoadFunctionCLib(fn_d2i_X509_NAME); - @i2d_X509_NAME := LoadFunctionCLib(fn_i2d_X509_NAME); - @X509_NAME_oneline := LoadFunctionCLib(fn_X509_NAME_oneline);//Used by Indy - @X509_NAME_cmp := LoadFunctionCLib(fn_X509_NAME_cmp); //Used by Indy - @X509_NAME_hash := LoadFunctionCLib(fn_X509_NAME_hash); //Used by Indy - @X509_set_issuer_name := LoadFunctionCLib(fn_X509_set_issuer_name,False); - @X509_get_issuer_name := LoadFunctionCLib(fn_X509_get_issuer_name); //Used by Indy - @X509_set_subject_name := LoadFunctionCLib(fn_X509_set_subject_name,False); - @X509_get_subject_name := LoadFunctionCLib(fn_X509_get_subject_name); //Used by Indy - @X509_digest := LoadFunctionCLib(fn_X509_digest);//Used by Indy - @X509_LOOKUP_ctrl := LoadFunctionCLib( fn_X509_LOOKUP_ctrl, False ); - @X509_STORE_add_cert := LoadFunctionCLib(fn_X509_STORE_add_cert); //Used by Indy - @X509_STORE_add_crl := LoadFunctionCLib(fn_X509_STORE_add_crl); //Used by Indy - @X509_STORE_CTX_get_ex_data := LoadFunctionCLib(fn_X509_STORE_CTX_get_ex_data,False); - @X509_STORE_CTX_get_error := LoadFunctionCLib(fn_X509_STORE_CTX_get_error); //Used by Indy - @X509_STORE_CTX_set_error := LoadFunctionCLib(fn_X509_STORE_CTX_set_error,False); - @X509_STORE_CTX_get_error_depth := LoadFunctionCLib(fn_X509_STORE_CTX_get_error_depth); //Used by Indy - @X509_STORE_CTX_get_current_cert := LoadFunctionCLib(fn_X509_STORE_CTX_get_current_cert); //Used by Indy - @X509_STORE_add_lookup := LoadFunctionCLib(fn_X509_STORE_add_lookup); //Used by Indy - @X509_STORE_load_locations := LoadFunctionCLib(fn_X509_STORE_load_locations); //Used by Indy - @X509_sign := LoadFunctionCLib(fn_X509_sign,False); - @X509_REQ_sign := LoadFunctionCLib(fn_X509_REQ_sign,False); - @X509_REQ_add_extensions := LoadFunctionCLib(fn_X509_REQ_add_extensions,False); - @X509V3_EXT_conf_nid := LoadFunctionCLib(fn_X509V3_EXT_conf_nid,False); - @X509_EXTENSION_create_by_NID := LoadFunctionCLib(fn_X509_EXTENSION_create_by_NID,False); - @X509V3_set_ctx := LoadFunctionCLib(fn_X509V3_set_ctx); - @X509_EXTENSION_free := LoadFunctionCLib(fn_X509_EXTENSION_free,False); - @X509_add_ext := LoadFunctionCLib(fn_X509_add_ext,False); - {$IFNDEF OPENSSL_NO_BIO} - //X509_print - @X509_print := LoadFunctionCLib(fn_X509_print, False ); //Used by Indy - {$ENDIF} - @_RAND_cleanup := LoadFunctionCLib(fn_RAND_cleanup, False); //Used by Indy - @_RAND_bytes := LoadFunctionCLib(fn_RAND_bytes); //Used by Indy - @_RAND_pseudo_bytes := LoadFunctionCLib(fn_RAND_pseudo_bytes); //Used by Indy - @_RAND_seed := LoadFunctionCLib(fn_RAND_seed); //Used by Indy - @_RAND_add := LoadFunctionCLib(fn_RAND_add); //Used by Indy - @_RAND_status := LoadFunctionCLib(fn_RAND_status); //Used by Indy - {$IFDEF SYS_WIN} - @_RAND_screen := LoadFunctionCLib(fn_RAND_screen); //Used by Indy - @_RAND_event := LoadFunctionCLib(fn_RAND_event); //Used by Indy - {$ENDIF} - {$IFNDEF OPENSSL_NO_DES} - // 3DES - @DES_set_odd_parity := LoadFunctionCLib(fn_DES_set_odd_parity); //Used by Indy - @DES_set_key := LoadFunctionCLib(fn_DES_set_key); //Used by Indy - @DES_ecb_encrypt := LoadFunctionCLib(fn_DES_ecb_encrypt); //Used by Indy - @Id_ossl_old_des_set_odd_parity := LoadOldCLib(fnold_des_set_odd_parity,fn__ossl_old_des_set_odd_parity,False); - @Id_ossl_old_des_set_key := LoadOldCLib(fnold_des_set_key,fn__ossl_old_des_set_key,False); - @Id_ossl_old_des_ecb_encrypt := LoadOldCLib(fnold_des_ecb_encrypt,fn__ossl_old_des_ecb_encrypt,False); - {$ENDIF} - // More SSL functions - @SSL_set_ex_data := LoadFunction(fn_SSL_set_ex_data,False); - @SSL_get_ex_data := LoadFunction(fn_SSL_get_ex_data,False); - @SSL_load_client_CA_file := LoadFunction(fn_SSL_load_client_CA_file); //Used by Indy - @SSL_CTX_set_client_CA_list := LoadFunction(fn_SSL_CTX_set_client_CA_list); //Used by Indy - @SSL_CTX_set_default_verify_paths := LoadFunction(fn_SSL_CTX_set_default_verify_paths); //Used by Indy - @SSL_CTX_set_session_id_context := LoadFunction(fn_SSL_CTX_set_session_id_context); //Used by Indy - @SSL_CIPHER_description := LoadFunction(fn_SSL_CIPHER_description); //Used by Indy - @SSL_get_current_cipher := LoadFunction(fn_SSL_get_current_cipher); //Used by Indy - @SSL_CIPHER_get_name := LoadFunction(fn_SSL_CIPHER_get_name); //Used by Indy - @SSL_CIPHER_get_version := LoadFunction(fn_SSL_CIPHER_get_version); //Used by Indy - @SSL_CIPHER_get_bits := LoadFunction(fn_SSL_CIPHER_get_bits); //Used by Indy - // Thread safe - @_CRYPTO_lock := LoadFunctionCLib(fn_CRYPTO_lock{$IFDEF ANDROID}, False{$ENDIF}); //Used by Indy - {$IFDEF ANDROID} - if not Assigned(_CRYPTO_lock) then begin - @_CRYPTO_lock := @Indy_CRYPTO_lock; - end; - {$ENDIF} - @_CRYPTO_num_locks := LoadFunctionCLib(fn_CRYPTO_num_locks); //Used by Indy - @CRYPTO_set_locking_callback := LoadFunctionCLib(fn_CRYPTO_set_locking_callback); //Used by Indy - {$IFNDEF WIN32_OR_WIN64} -{ -In OpenSSL 1.0.0, you should use these callback functions instead of the -depreciated set_id_callback. They are not in the older 0.9.8 OpenSSL series so -we have to handle both cases. -} - @CRYPTO_THREADID_set_callback := LoadFunctionCLib(fn_CRYPTO_THREADID_set_callback,False); //Used by Indy - @CRYPTO_THREADID_set_numeric := LoadFunctionClib(fn_CRYPTO_THREADID_set_numeric,False); //Used by Indy - @CRYPTO_THREADID_set_pointer := LoadFunctionClib(fn_CRYPTO_THREADID_set_pointer,False); - if not Assigned(CRYPTO_THREADID_set_callback) then begin //Used by Indy - @CRYPTO_set_id_callback := LoadFunctionCLib(fn_CRYPTO_set_id_callback); //Used by Indy - end else begin - @CRYPTO_set_id_callback := nil; - end; - {$ENDIF} - @ERR_put_error := LoadFunctionCLib(fn_ERR_put_error,False); - @ERR_get_error := LoadFunctionCLib(fn_ERR_get_error,False); - @ERR_peek_error := LoadFunctionCLib(fn_ERR_peek_error,False); - @ERR_peek_last_error := LoadFunctionCLib(fn_ERR_peek_last_error); //Used by Indy - @ERR_clear_error := LoadFunctionCLib(fn_ERR_clear_error); //Used by Indy - @ERR_error_string := LoadFunctionCLib(fn_ERR_error_string, False); - @ERR_error_string_n := LoadFunctionCLib(fn_ERR_error_string_n, False); - @ERR_lib_error_string := LoadFunctionCLib( fn_ERR_lib_error_string, False ); - @ERR_func_error_string := LoadFunctionCLib( fn_ERR_func_error_string, False ); - @ERR_reason_error_string := LoadFunctionCLib( fn_ERR_reason_error_string, False ); - @ERR_load_ERR_strings := LoadFunctionCLib( fn_ERR_load_ERR_strings,False); - @ERR_load_crypto_strings := LoadFunctionCLib(fn_ERR_load_crypto_strings,False); - @ERR_free_strings := LoadFunctionCLib(fn_ERR_free_strings); //Used by Indy - @ERR_remove_thread_state := LoadFunctionCLib(fn_ERR_remove_thread_state,False); //Used by Indy - if not Assigned(ERR_remove_thread_state) then begin - @ERR_remove_state := LoadFunctionCLib(fn_ERR_remove_state); //Used by Indy - end else begin - @ERR_remove_state := nil; - end; - @CRYPTO_cleanup_all_ex_data := LoadFunctionCLib(fn_CRYPTO_cleanup_all_ex_data,False); //Used by Indy - @SSL_COMP_get_compression_methods := LoadFunction(fn_SSL_COMP_get_compression_methods,False); - @SSL_COMP_free_compression_methods := LoadFunction(fn_SSL_COMP_free_compression_methods,False); - @sk_pop_free := LoadFunctionCLib(fn_sk_pop_free,False); - //RSA - @RSA_free := LoadFunctionCLib(fn_RSA_free,False); - @RSA_generate_key_ex := LoadFunctionCLib(fn_RSA_generate_key_ex, False); - @RSA_generate_key := LoadFunctionCLib(fn_RSA_generate_key, False); - // @RSA_generate_key := LoadFunctionCLib(fn_RSA_generate_key, not Assigned(RSA_generate_key_ex)); - @RSA_check_key := LoadFunctionCLib(fn_RSA_check_key,False); - @RSA_new := LoadFunctionCLib(fn_RSA_new,False); - @RSA_size := LoadFunctionCLib(fn_RSA_size,False); - @RSA_private_decrypt := LoadFunctionCLib(fn_RSA_private_decrypt,False); - @RSA_public_encrypt := LoadFunctionCLib(fn_RSA_public_encrypt,False); - //DH - @DH_free := LoadFunctionCLib(fn_DH_free); //Used by Indy - //BN - @BN_new := LoadFunctionCLib(fn_BN_new,False); - @BN_free := LoadFunctionCLib(fn_BN_free,False); - @BN_hex2bn := LoadFunctionCLib(fn_BN_hex2bn,False); - @BN_bn2dec := LoadFunctionCLib(fn_BN_bn2dec,False); - @BN_bn2hex := LoadFunctionCLib(fn_BN_bn2hex,False); - @BN_set_word := LoadFunctionCLib(fn_BN_set_word,False); - //BIO - @BIO_set_flags := LoadFunctionCLib(fn_BIO_set_flags,False); - @BIO_new := LoadFunctionCLib(fn_BIO_new); //Used by Indy - @BIO_push := LoadFunctionCLib(fn_BIO_push,False); - @BIO_pop := LoadFunctionCLib(fn_BIO_pop,False); - @BIO_set_next := LoadFunctionCLib(fn_BIO_set_next,False); - @BIO_free := LoadFunctionCLib(fn_BIO_free); //Used by Indy - @BIO_free_all := LoadFunctionCLib(fn_BIO_free_all,False); - @BIO_new_mem_buf := LoadFunctionCLib(fn_BIO_new_mem_buf); //Used by Indy - @BIO_s_mem := LoadFunctionCLib(fn_BIO_s_mem); //Used by Indy - @BIO_s_file := LoadFunctionCLib(fn_BIO_s_file,False); - @BIO_set_ex_data := LoadFunctionCLib(fn_BIO_set_ex_data,False); - @BIO_get_ex_data := LoadFunctionCLib(fn_BIO_get_ex_data,False); - @BIO_ctrl := LoadFunctionCLib(fn_BIO_ctrl); - @BIO_int_ctrl := LoadFunctionCLib( fn_BIO_int_ctrl,False); - @BIO_ptr_ctrl := LoadFunctionCLib( fn_BIO_ptr_ctrl,False); - @BIO_new_file := LoadFunctionCLib(fn_BIO_new_file); - @BIO_puts := LoadFunctionCLib(fn_BIO_puts,False); - @BIO_read := LoadFunctionCLib(fn_BIO_read,False); - @BIO_write := LoadFunctionCLib(fn_BIO_write,False); - //i2d - @i2d_X509_bio := LoadFunctionCLib(fn_i2d_X509_bio,False); - @i2d_PrivateKey_bio := LoadFunctionCLib(fn_i2d_PrivateKey_bio,False); - @d2i_X509_bio := LoadFunctionCLib(fn_d2i_X509_bio); //Used by Indy - @d2i_PKCS12_bio := LoadFunctionCLib(fn_d2i_PKCS12_bio); //Used by Indy - @PKCS12_parse := LoadFunctionCLib(fn_PKCS12_parse); //Used by Indy - @i2d_X509_REQ_bio := LoadFunctionCLib(fn_i2d_X509_REQ_bio,False); - @i2d_PKCS7 := LoadFunctionCLib(fn_i2d_PKCS7,False); - @d2i_PKCS7 := LoadFunctionCLib(fn_d2i_PKCS7,False); - @i2d_X509 := LoadFunctionCLib(fn_i2d_X509,False); - @d2i_X509 := LoadFunctionCLib(fn_d2i_X509); //Used by Indy - @i2d_X509_REQ := LoadFunctionCLib(fn_i2d_X509_REQ, False); - @d2i_X509_REQ := LoadFunctionCLib(fn_d2i_X509_REQ, False ); - @i2d_X509_CRL := LoadFunctionCLib(fn_i2d_X509_CRL, False ); - @d2i_X509_CRL := LoadFunctionCLib(fn_d2i_X509_CRL,False ); - @i2d_RSAPrivateKey := LoadFunctionCLib(fn_i2d_RSAPrivateKey,False ); - @d2i_RSAPrivateKey := LoadFunctionCLib(fn_d2i_RSAPrivateKey, False ); - @i2d_RSAPublicKey := LoadFunctionCLib(fn_i2d_RSAPublicKey,False); - @d2i_RSAPublicKey := LoadFunctionCLib(fn_d2i_RSAPublicKey,False); - @i2d_PrivateKey := LoadFunctionCLib(fn_i2d_PrivateKey,False); - @d2i_PrivateKey := LoadFunctionCLib(fn_d2i_PrivateKey); //Used by Indy - @d2i_PrivateKey_bio := LoadFunctionCLib(fn_d2i_PrivateKey_bio); //Used by Indy - - @i2d_DSAPrivateKey := LoadFunctionCLib(fn_i2d_DSAPrivateKey); //Used by Indy - @d2i_DSAPrivateKey := LoadFunctionCLib(fn_d2i_DSAPrivateKey); //Used by Indy - @i2d_DSAparams := LoadFunctionCLib(fn_i2d_DSAparams,False); - @d2i_DSAparams := LoadFunctionCLib(fn_d2i_DSAparams,False); - @i2d_DHparams := LoadFunctionCLib(fn_i2d_DHparams,False); - @d2i_DHparams := LoadFunctionCLib(fn_d2i_DHparams); //Used by Indy - @i2d_NETSCAPE_CERT_SEQUENCE := LoadFunctionCLib(fn_i2d_NETSCAPE_CERT_SEQUENCE,False); - @d2i_NETSCAPE_CERT_SEQUENCE := LoadFunctionCLib(fn_d2i_NETSCAPE_CERT_SEQUENCE); //Indy by Indy - @i2d_PUBKEY := LoadFunctionCLib(fn_i2d_PUBKEY,False); - @d2i_PUBKEY := LoadFunctionCLib(fn_d2i_PUBKEY,False); - - //X509 - @X509_get_default_cert_file := LoadFunctionCLib(fn_X509_get_default_cert_file); //Used by Indy - @X509_get_default_cert_file_env := LoadFunctionCLib(fn_X509_get_default_cert_file_env); //Used by Indy - @X509_new := LoadFunctionCLib(fn_X509_new,False); - @X509_free := LoadFunctionCLib(fn_X509_free); //Used by Indy - @X509_REQ_new := LoadFunctionCLib(fn_X509_REQ_new,False); - @X509_REQ_free := LoadFunctionCLib(fn_X509_REQ_free,False); - @X509_to_X509_REQ := LoadFunctionCLib(fn_X509_to_X509_REQ,False); - @X509_NAME_new := LoadFunctionCLib(fn_X509_NAME_new); //Used by Indy - @X509_NAME_free := LoadFunctionCLib(fn_X509_NAME_free); //Used by Indy - @X509_NAME_add_entry_by_txt := LoadFunctionCLib(fn_X509_NAME_add_entry_by_txt); - @X509_INFO_free := LoadFunctionCLib(fn_X509_INFO_free); //Used by Indy - @X509_set_version := LoadFunctionCLib(fn_X509_set_version,False); - @X509_get_serialNumber := LoadFunctionCLib(fn_X509_get_serialNumber); //USED by Indy - @X509_gmtime_adj := LoadFunctionCLib(fn_X509_gmtime_adj,False); - @X509_set_notBefore := LoadFunctionCLib(fn_X509_set_notBefore,False); - @X509_set_notAfter := LoadFunctionCLib(fn_X509_set_notAfter,False); - @X509_set_pubkey := LoadFunctionCLib(fn_X509_set_pubkey,False); - @X509_REQ_set_pubkey := LoadFunctionCLib(fn_X509_REQ_set_pubkey,False); - @X509_PUBKEY_get := LoadFunctionCLib(fn_X509_PUBKEY_get,False); - @X509_verify := LoadFunctionCLib(fn_X509_verify,False); - //PEM - {$IFNDEF SSLEAY_MACROS} - @_PEM_read_bio_X509 := LoadFunctionCLib(fn_PEM_read_bio_X509, False); - @_PEM_read_bio_X509_REQ := LoadFunctionCLib(fn_PEM_read_bio_X509_REQ, False); - @_PEM_read_bio_X509_CRL := LoadFunctionCLib(fn_PEM_read_bio_X509_CRL, False); - @_PEM_read_bio_RSAPrivateKey := LoadFunctionCLib(fn_PEM_read_bio_RSAPrivateKey, False); - @_PEM_read_bio_RSAPublicKey := LoadFunctionCLib(fn_PEM_read_bio_RSAPublicKey, False); - @_PEM_read_bio_DSAPrivateKey := LoadFunctionCLib(fn_PEM_read_bio_DSAPrivateKey, False); - @_PEM_read_bio_PrivateKey := LoadFunctionCLib (fn_PEM_read_bio_PrivateKey,False); - @_PEM_read_bio_PKCS7 := LoadFunctionCLib (fn_PEM_read_bio_PKCS7, False); - @_PEM_read_bio_DHparams := LoadFunctionCLib(fn_PEM_read_bio_DHparams, False); - @_PEM_read_bio_DSAparams := LoadFunctionCLib(fn_PEM_read_bio_DSAparams, False); - @_PEM_read_bio_NETSCAPE_CERT_SEQUENCE := LoadFunctionCLib(fn_PEM_read_bio_NETSCAPE_CERT_SEQUENCE,False); - @_PEM_read_bio_PUBKEY := LoadFunctionCLib(fn_PEM_read_bio_PUBKEY,False); - @_PEM_write_bio_X509 := LoadFunctionCLib(fn_PEM_write_bio_X509,False); - @_PEM_write_bio_X509_REQ := LoadFunctionCLib(fn_PEM_write_bio_X509_REQ,False); - @_PEM_write_bio_X509_CRL := LoadFunctionCLib( fn_PEM_write_bio_X509_CRL,False); - @_PEM_write_bio_RSAPrivateKey := LoadFunctionCLib(fn_PEM_write_bio_RSAPrivateKey,False); - @_PEM_write_bio_RSAPublicKey := LoadFunctionCLib( fn_PEM_write_bio_RSAPublicKey,False); - @_PEM_write_bio_DSAPrivateKey := LoadFunctionCLib( fn_PEM_write_bio_DSAPrivateKey,False); - @_PEM_write_bio_PrivateKey := LoadFunctionCLib( fn_PEM_write_bio_PrivateKey,False); - @_PEM_write_bio_PKCS7 := LoadFunctionCLib( fn_PEM_write_bio_PKCS7,False); - @_PEM_write_bio_DHparams := LoadFunctionCLib(fn_PEM_write_bio_DHparams,False); - @_PEM_write_bio_DSAparams := LoadFunctionCLib(fn_PEM_write_bio_DSAparams,False); - @_PEM_write_bio_NETSCAPE_CERT_SEQUENCE := LoadFunctionCLib(fn_PEM_write_bio_NETSCAPE_CERT_SEQUENCE,False); - @_PEM_write_bio_PKCS8PrivateKey := LoadFunctionCLib(fn_PEM_write_bio_PKCS8PrivateKey,False); - @_PEM_write_bio_PUBKEY := LoadFunctionCLib(fn_PEM_write_bio_PUBKEY,False); - {$ELSE} - @PEM_ASN1_write_bio := LoadFunctionCLib(fn_PEM_ASN1_write_bio,False); - @PEM_ASN1_read_bio := LoadFunctionCLib(fn_PEM_ASN1_read_bio,False); - {$ENDIF} - @PEM_X509_INFO_read_bio := LoadFunctionCLib(fn_PEM_X509_INFO_read_bio); //Used by Indy - @PEM_read_bio_X509_AUX := LoadFunctionCLib(fn_PEM_read_bio_X509_AUX); //Used by Indy - //EVP - {$IFNDEF OPENSSL_NO_DES} - @EVP_des_ede3_cbc := LoadFunctionCLib(fn_EVP_des_ede3_cbc,False); - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA512} - @EVP_sha512 := LoadFunctionCLib(fn_EVP_sha512,False); //Used by Indy but non-critical - @EVP_sha384 := LoadFunctionCLib(fn_EVP_sha384,False); //Used by Indy but non-critical - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA256} - @EVP_sha256 := LoadFunctionCLib(fn_EVP_sha256,False); //Used by Indy but non-critical - @EVP_sha224 := LoadFunctionCLib(fn_EVP_sha224,False); //Used by Indy but non-critical - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA} - @EVP_sha1 := LoadFunctionCLib(fn_EVP_sha1); //USED by Indy - - @EVP_sha := LoadFunctionCLib(fn_EVP_sha,False); //not available on Android - @EVP_dss := LoadFunctionCLib(fn_EVP_dss,False); - @EVP_dss1 := LoadFunctionCLib(fn_EVP_dss1,False); - @EVP_ecdsa := LoadFunctionCLib(fn_EVP_ecdsa,False); - {$ENDIF} - {$ifndef OPENSSL_NO_MDC2} - @EVP_mdc2 := LoadFunctionCLib(fn_EVP_mdc2,False); - {$endif} - {$IFNDEF OPENSSL_NO_MD5} - @EVP_md5 := LoadFunctionCLib(fn_EVP_md5); //USED By Indy - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD4} - @EVP_md4 := LoadFunctionCLib(fn_EVP_md4,False); - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD2} - @EVP_md2 := LoadFunctionCLib(fn_EVP_md2,False); - {$ENDIF} - {$ifndef OPENSSL_NO_RIPEMD} - @EVP_ripemd160 := LoadFunctionCLib(fn_EVP_ripemd160,False); - {$endif} - {$ifndef OPENSSL_NO_WHIRLPOOL} - @EVP_whirlpool := LoadFunctionCLib(fn_EVP_whirlpool,False); //not available on Android - {$endif} - @EVP_md_null := LoadFunctionCLib(fn_EVP_md_null, False); - {$IFNDEF OPENSSL_NO_DES} - @EVP_des_ecb := LoadFunctionCLib(fn_EVP_des_ecb,False); - @EVP_des_ede := LoadFunctionCLib(fn_EVP_des_ede,False); - @EVP_des_ede3 := LoadFunctionCLib(fn_EVP_des_ede3,False); - @EVP_des_ede_ecb := LoadFunctionCLib(fn_EVP_des_ede_ecb,False); - @EVP_des_ede3_ecb := LoadFunctionCLib(fn_EVP_des_ede3_ecb,False); - @EVP_des_cfb64 := LoadFunctionCLib(fn_EVP_des_cfb64,False); -// # define EVP_des_cfb EVP_des_cfb64 - - @EVP_des_cfb1 := LoadFunctionCLib(fn_EVP_des_cfb1,False); - @EVP_des_cfb8 := LoadFunctionCLib(fn_EVP_des_cfb8,False); - @EVP_des_ede_cfb64 := LoadFunctionCLib(fn_EVP_des_ede_cfb64,False); -//#if 0 - // @EVP_des_ede_cfb1 := LoadFunctionCLib(fn_EVP_des_ede_cfb1,False); - // @EVP_des_ede_cfb8 := LoadFunctionCLib(fn_EVP_des_ede_cfb8,False); - //#endif - @EVP_des_ede3_cfb64 := LoadFunctionCLib(fn_EVP_des_ede3_cfb64,False); - @EVP_des_ede3_cfb1 := LoadFunctionCLib(fn_EVP_des_ede3_cfb1,False); - @EVP_des_ede3_cfb8 := LoadFunctionCLib(fn_EVP_des_ede3_cfb8,False); - @EVP_des_ofb := LoadFunctionCLib(fn_EVP_des_ofb,False); - @EVP_des_ede_ofb := LoadFunctionCLib(fn_EVP_des_ede_ofb,False); - @EVP_des_ede3_ofb := LoadFunctionCLib(fn_EVP_des_ede3_ofb,False); - @EVP_des_cbc := LoadFunctionCLib(fn_EVP_des_cbc,False); - @EVP_des_ede_cbc := LoadFunctionCLib(fn_EVP_des_ede_cbc,False); - @EVP_desx_cbc := LoadFunctionCLib(fn_EVP_desx_cbc,False); -//* This should now be supported through the dev_crypto ENGINE. But also, why are -// * rc4 and md5 declarations made here inside a "NO_DES" precompiler branch? */ -//#if 0 - {$ifdef OPENSSL_OPENBSD_DEV_CRYPTO} - @EVP_dev_crypto_des_ede3_cbc := LoadFunctionCLib(fn_EVP_dev_crypto_des_ede3_cbc,False); - @EVP_dev_crypto_rc4 := LoadFunctionCLib(fn_EVP_dev_crypto_rc4,False); - @EVP_dev_crypto_md5 := LoadFunctionCLib(fn_EVP_dev_crypto_md5,False); - {$endif} -//#endif - {$endif} - {$ifndef OPENSSL_NO_RC4} - @EVP_rc4 := LoadFunctionCLib(fn_EVP_rc4,False); - @EVP_rc4_40 := LoadFunctionCLib(fn_EVP_rc4_40,False); - {$ifndef OPENSSL_NO_MD5} - @EVP_rc4_hmac_md5 := LoadFunctionCLib(fn_EVP_rc4_hmac_md5,False); - {$endif} - {$endif} - {$ifndef OPENSSL_NO_IDEA} - //not available on Android - @EVP_idea_ecb := LoadFunctionCLib(fn_EVP_idea_ecb,False); - @EVP_idea_cfb64 := LoadFunctionCLib(fn_EVP_idea_cfb64,False); - @EVP_idea_ofb := LoadFunctionCLib(fn_EVP_idea_ofb,False); - @EVP_idea_cbc := LoadFunctionCLib(fn_EVP_idea_cbc,False); - {$endif} - {$ifndef OPENSSL_NO_RC2} - @EVP_rc2_ecb := LoadFunctionCLib(fn_EVP_rc2_ecb,False); - @EVP_rc2_cbc := LoadFunctionCLib(fn_EVP_rc2_cbc,False); - @EVP_rc2_40_cbc := LoadFunctionCLib(fn_EVP_rc2_40_cbc,False); - @EVP_rc2_64_cbc := LoadFunctionCLib(fn_EVP_rc2_64_cbc,False); - @EVP_rc2_cfb64 := LoadFunctionCLib(fn_EVP_rc2_cfb64,False); - @EVP_rc2_ofb := LoadFunctionCLib(fn_EVP_rc2_ofb, False); - {$endif} - {$ifndef OPENSSL_NO_BF} - @EVP_bf_ecb := LoadFunctionCLib(fn_EVP_bf_ecb,False); - @EVP_bf_cbc := LoadFunctionCLib(fn_EVP_bf_cbc,False); - @EVP_bf_cfb64 := LoadFunctionCLib(fn_EVP_bf_cfb64,False); - @EVP_bf_ofb := LoadFunctionCLib(fn_EVP_bf_ofb,False); - {$endif} - {$ifndef OPENSSL_NO_CAST} - //not available on Android - @EVP_cast5_ecb := LoadFunctionCLib(fn_EVP_cast5_ecb,False); - @EVP_cast5_cbc := LoadFunctionCLib(fn_EVP_cast5_cbc,False); - @EVP_cast5_cfb64 := LoadFunctionCLib(fn_EVP_cast5_cfb64,False); - @EVP_cast5_ofb := LoadFunctionCLib(fn_EVP_cast5_ofb,False); - {$endif} - {$ifndef OPENSSL_NO_RC5} - @EVP_rc5_32_12_16_cbc := LoadFunctionCLib(fn_EVP_rc5_32_12_16_cbc,False); - @EVP_rc5_32_12_16_ecb := LoadFunctionCLib(fn_EVP_rc5_32_12_16_ecb,False); - @EVP_rc5_32_12_16_cfb64 := LoadFunctionCLib(fn_EVP_rc5_32_12_16_cfb64,False); - @EVP_rc5_32_12_16_ofb := LoadFunctionCLib(fn_EVP_rc5_32_12_16_ofb,False); - {$endif} - {$ifndef OPENSSL_NO_AES} - @EVP_aes_128_ecb := LoadFunctionCLib(fn_EVP_aes_128_ecb,False); - @EVP_aes_128_cbc := LoadFunctionCLib(fn_EVP_aes_128_cbc,False); - @EVP_aes_128_cfb1:= LoadFunctionCLib(fn_EVP_aes_128_cfb1,False); - @EVP_aes_128_cfb8:= LoadFunctionCLib(fn_EVP_aes_128_cfb8,False); - @EVP_aes_128_cfb128 := LoadFunctionCLib(fn_EVP_aes_128_cfb128,False); - @EVP_aes_128_ofb := LoadFunctionCLib(fn_EVP_aes_128_ofb,False); - @EVP_aes_128_ctr := LoadFunctionCLib(fn_EVP_aes_128_ctr,False); - @EVP_aes_128_gcm := LoadFunctionCLib(fn_EVP_aes_128_gcm,False); - @EVP_aes_128_ccm := LoadFunctionCLib(fn_EVP_aes_128_ccm,False); - @EVP_aes_128_xts := LoadFunctionCLib(fn_EVP_aes_128_xts,False); - @EVP_aes_192_ecb := LoadFunctionCLib(fn_EVP_aes_192_ecb,False); - @EVP_aes_192_cbc := LoadFunctionCLib(fn_EVP_aes_192_cbc,False); - @EVP_aes_192_cfb1 := LoadFunctionCLib(fn_EVP_aes_192_cfb1,False); - @EVP_aes_192_cfb128 := LoadFunctionCLib(fn_EVP_aes_192_cfb128,False); - - @EVP_aes_192_ofb := LoadFunctionCLib(fn_EVP_aes_192_ofb,False); - @EVP_aes_192_ctr := LoadFunctionCLib(fn_EVP_aes_192_ctr,False); - @EVP_aes_192_gcm := LoadFunctionCLib(fn_EVP_aes_192_gcm,False); - @EVP_aes_192_ccm := LoadFunctionCLib(fn_EVP_aes_192_ccm,False); - @EVP_aes_256_ecb := LoadFunctionCLib(fn_EVP_aes_256_ecb,False); - @EVP_aes_256_cbc := LoadFunctionCLib(fn_EVP_aes_256_cbc,False); - @EVP_aes_256_cfb1 := LoadFunctionCLib(fn_EVP_aes_256_cfb1,False); - @EVP_aes_256_cfb8 := LoadFunctionCLib(fn_EVP_aes_256_cfb8,False); - @EVP_aes_256_cfb128 := LoadFunctionCLib(fn_EVP_aes_256_cfb128,False); - @EVP_aes_256_ofb := LoadFunctionCLib(fn_EVP_aes_256_ofb,False); - @EVP_aes_256_ctr := LoadFunctionCLib(fn_EVP_aes_256_ctr,False); - @EVP_aes_256_gcm := LoadFunctionCLib(fn_EVP_aes_256_gcm,False); - @EVP_aes_256_ccm := LoadFunctionCLib(fn_EVP_aes_256_ccm,False); - @EVP_aes_256_xts := LoadFunctionCLib(fn_EVP_aes_256_xts,False); - {$ifndef OPENSSL_NO_SHA} - {$ifndef OPENSSL_NO_SHA1} - @EVP_aes_128_cbc_hmac_sha1 := LoadFunctionCLib(fn_EVP_aes_128_cbc_hmac_sha1,False); - @EVP_aes_256_cbc_hmac_sha1 := LoadFunctionCLib(fn_EVP_aes_256_cbc_hmac_sha1,False); - {$endif} - {$endif} - {$endif} - {$ifndef OPENSSL_NO_CAMELLIA} - @EVP_camellia_128_ecb := LoadFunctionCLib(fn_EVP_camellia_128_ecb, False); - @EVP_camellia_128_cbc := LoadFunctionCLib(fn_EVP_camellia_128_cbc, False); - @EVP_camellia_128_cfb1 := LoadFunctionCLib(fn_EVP_camellia_128_cfb1, False); - @EVP_camellia_128_cfb8 := LoadFunctionCLib(fn_EVP_camellia_128_cfb8, False); - @EVP_camellia_128_cfb128 := LoadFunctionCLib(fn_EVP_camellia_128_cfb12, False); - @EVP_camellia_128_ofb := LoadFunctionCLib(fn_EVP_camellia_128_ofb, False); - @EVP_camellia_192_ecb := LoadFunctionCLib(fn_EVP_camellia_192_ecb, False); - - @EVP_camellia_192_cbc := LoadFunctionCLib(fn_EVP_camellia_192_cbc,False); - @EVP_camellia_192_cfb1 := LoadFunctionCLib(fn_EVP_camellia_192_cfb1,False); - @EVP_camellia_192_cfb8 := LoadFunctionCLib(fn_EVP_camellia_192_cfb8,False); - @EVP_camellia_192_cfb128 := LoadFunctionCLib(fn_EVP_camellia_192_cfb128,False); - @EVP_camellia_192_ofb := LoadFunctionCLib(fn_EVP_camellia_192_ofb,False); - @EVP_camellia_256_ecb := LoadFunctionCLib(fn_EVP_camellia_256_ecb,False); - @EVP_camellia_256_cbc := LoadFunctionCLib(fn_EVP_camellia_256_cbc,False); - @EVP_camellia_256_cfb1 := LoadFunctionCLib(fn_EVP_camellia_256_cfb1,False); - @EVP_camellia_256_cfb8 := LoadFunctionCLib(fn_EVP_camellia_256_cfb8,False); - @EVP_camellia_256_cfb128 := LoadFunctionCLib(fn_EVP_camellia_256_cfb128,False); - @EVP_camellia_256_ofb := LoadFunctionCLib(fn_EVP_camellia_256_ofb,False); - {$endif} - - {$ifndef OPENSSL_NO_SEED} - @EVP_seed_ecb := LoadFunctionCLib(fn_EVP_seed_ecb,False); - @EVP_seed_cbc := LoadFunctionCLib(fn_EVP_seed_cbc,False); - @EVP_seed_cfb128 := LoadFunctionCLib(fn_EVP_seed_cfb128,False); - @EVP_seed_ofb := LoadFunctionCLib(fn_EVP_seed_ofb,False); - {$endif} - - @EVP_MD_CTX_init := LoadFunctionCLib(fn_EVP_MD_CTX_init); - @EVP_MD_CTX_cleanup := LoadFunctionCLib(fn_EVP_MD_CTX_cleanup); - @EVP_MD_CTX_create := LoadFunctionCLib(fn_EVP_MD_CTX_create, False); - @EVP_MD_CTX_destroy := LoadFunctionCLib(fn_EVP_MD_CTX_destroy, False); - @EVP_MD_CTX_copy := LoadFunctionCLib(fn_EVP_MD_CTX_copy, False); - @EVP_MD_CTX_copy_ex := LoadFunctionCLib(fn_EVP_MD_CTX_copy_ex, False); - //@EVP_MD_CTX_set_flags := LoadFunctionCLib(fn_EVP_MD_CTX_set_flags, False); - //@EVP_MD_CTX_clear_flags := LoadFunctionCLib(fn_EVP_MD_CTX_clear_flags, False); - //@EVP_MD_CTX_test_flags := LoadFunctionCLib(fn_EVP_MD_CTX_test_flags, False); - - @EVP_DigestInit := LoadFunctionCLib(fn_EVP_DigestInit); - @EVP_DigestInit_ex := LoadFunctionCLib(fn_EVP_DigestInit_ex); - @EVP_DigestUpdate := LoadFunctionCLib(fn_EVP_DigestUpdate); - @EVP_DigestFinal_ex := LoadFunctionCLib(fn_EVP_DigestFinal_ex); - - @EVP_EncryptInit := LoadFunctionCLib(fn_EVP_EncryptInit,False); - @EVP_EncryptInit_ex := LoadFunctionCLib(fn_EVP_EncryptInit_ex,False); - @EVP_EncryptUpdate := LoadFunctionCLib(fn_EVP_EncryptUpdate); - @EVP_EncryptFinal_ex := LoadFunctionCLib(fn_EVP_EncryptFinal_ex,False); - @EVP_EncryptFinal := LoadFunctionCLib(fn_EVP_EncryptFinal,False); - - @EVP_DecryptInit := LoadFunctionCLib(fn_EVP_DecryptInit,False); - @EVP_DecryptInit_ex := LoadFunctionCLib(fn_EVP_DecryptInit_ex,False); - @EVP_DecryptUpdate := LoadFunctionCLib(fn_EVP_DecryptUpdate); - @EVP_DecryptFinal := LoadFunctionCLib(fn_EVP_DecryptFinal,False); - @EVP_DecryptFinal_ex := LoadFunctionCLib(fn_EVP_DecryptFinal_ex,False); - @EVP_CipherInit := LoadFunctionCLib(fn_EVP_CipherInit,False); - @EVP_CipherInit_ex := LoadFunctionCLib(fn_EVP_CipherInit_ex,False); - @EVP_CipherUpdate := LoadFunctionCLib(fn_EVP_CipherUpdate,False); - @EVP_CipherFinal := LoadFunctionCLib(fn_EVP_CipherFinal,False); - @EVP_CipherFinal_ex := LoadFunctionCLib(fn_EVP_CipherFinal_ex,False); - @EVP_SignFinal := LoadFunctionCLib(fn_EVP_SignFinal,False); - @EVP_VerifyFinal := LoadFunctionCLib(fn_EVP_VerifyFinal,False); - @EVP_DigestSignInit := LoadFunctionCLib(fn_EVP_DigestSignInit,False); - @EVP_DigestSignFinal := LoadFunctionCLib(fn_EVP_DigestSignFinal,False); - @EVP_DigestVerifyInit := LoadFunctionCLib(fn_EVP_DigestVerifyInit,False); - @EVP_DigestVerifyFinal := LoadFunctionCLib(fn_EVP_DigestVerifyFinal,False); - @EVP_OpenInit := LoadFunctionCLib(fn_EVP_OpenInit,False); - @EVP_OpenFinal := LoadFunctionCLib(fn_EVP_OpenFinal,False); - @EVP_SealInit := LoadFunctionCLib(fn_EVP_SealInit,False); - @EVP_SealFinal := LoadFunctionCLib(fn_EVP_SealFinal,False); - - @EVP_EncodeInit := LoadFunctionCLib(fn_EVP_EncodeInit,False); - @EVP_EncodeUpdate := LoadFunctionCLib(fn_EVP_EncodeUpdate,False); - @EVP_EncodeFinal := LoadFunctionCLib(fn_EVP_EncodeFinal,False); - @EVP_EncodeBlock := LoadFunctionCLib(fn_EVP_EncodeBlock,False); - @EVP_DecodeInit := LoadFunctionCLib(fn_EVP_DecodeInit,False); - @EVP_DecodeUpdate:= LoadFunctionCLib(fn_EVP_DecodeUpdate,False); - @EVP_DecodeFinal:= LoadFunctionCLib(fn_EVP_DecodeFinal,False); - @EVP_DecodeBlock:= LoadFunctionCLib(fn_EVP_DecodeBlock,False); - - @EVP_CIPHER_CTX_init:= LoadFunctionCLib(fn_EVP_CIPHER_CTX_init,False); - @EVP_CIPHER_CTX_cleanup:= LoadFunctionCLib(fn_EVP_CIPHER_CTX_cleanup,False); - @EVP_CIPHER_CTX_new:= LoadFunctionCLib(fn_EVP_CIPHER_CTX_new,False); - @EVP_CIPHER_CTX_free:= LoadFunctionCLib(fn_EVP_CIPHER_CTX_free,False); - @EVP_CIPHER_CTX_set_key_length:= LoadFunctionCLib(fn_EVP_CIPHER_CTX_set_key_length,False); - @EVP_CIPHER_CTX_set_padding:= LoadFunctionCLib(fn_EVP_CIPHER_CTX_set_padding,False); - @EVP_CIPHER_CTX_ctrl:= LoadFunctionCLib(fn_EVP_CIPHER_CTX_ctrl,False); - @EVP_CIPHER_CTX_rand_key:= LoadFunctionCLib(fn_EVP_CIPHER_CTX_rand_key,False); - -{$ifndef OPENSSL_NO_BIO} - @BIO_f_md := LoadFunctionCLib(fn_BIO_f_md,False); - @BIO_f_base64 := LoadFunctionCLib(fn_BIO_f_base64,False); - @BIO_f_cipher := LoadFunctionCLib(fn_BIO_f_cipher,False); - @BIO_f_reliable :=LoadFunctionCLib(fn_BIO_f_reliable,False); - @BIO_set_cipher :=LoadFunctionCLib(fn_BIO_set_cipher,False); -{$endif} - - @EVP_PKEY_new := LoadFunctionCLib(fn_EVP_PKEY_new); - @EVP_PKEY_free := LoadFunctionCLib(fn_EVP_PKEY_free); //USED in Indy - @EVP_PKEY_assign := LoadFunctionCLib(fn_EVP_PKEY_assign); - @EVP_get_cipherbyname := LoadFunctionCLib(fn_EVP_get_cipherbyname); - @EVP_get_digestbyname := LoadFunctionCLib(fn_EVP_get_digestbyname); - @EVP_MD_type := LoadFunctionCLib(fn_EVP_MD_type); - @EVP_MD_size := LoadFunctionCLib(fn_EVP_MD_size); - @EVP_MD_block_size := LoadFunctionCLib(fn_EVP_MD_block_size); - @EVP_MD_flags := LoadFunctionCLib(fn_EVP_MD_flags,False); - @EVP_MD_CTX_md := LoadFunctionCLib(fn_EVP_MD_CTX_md); - @EVP_CIPHER_nid := LoadFunctionCLib(fn_EVP_CIPHER_nid,False); - @EVP_CIPHER_block_size := LoadFunctionCLib(fn_EVP_CIPHER_block_size,False); - @EVP_CIPHER_key_length := LoadFunctionCLib(fn_EVP_CIPHER_key_length,False); - @EVP_CIPHER_iv_length := LoadFunctionCLib(fn_EVP_CIPHER_iv_length,False); - @EVP_CIPHER_flags := LoadFunctionCLib(fn_EVP_CIPHER_flags); - @EVP_CIPHER_type := LoadFunctionCLib(fn_EVP_CIPHER_type); - @EVP_CIPHER_CTX_cipher := LoadFunctionCLib(fn_EVP_CIPHER_CTX_cipher); - @EVP_CIPHER_CTX_nid := LoadFunctionCLib(fn_EVP_CIPHER_CTX_nid,False); - @EVP_CIPHER_CTX_block_size := LoadFunctionCLib(fn_EVP_CIPHER_CTX_block_size, False ); - @EVP_CIPHER_CTX_key_length := LoadFunctionCLib(fn_EVP_CIPHER_CTX_key_length, False ); - @EVP_CIPHER_CTX_iv_length := LoadFunctionCLib(fn_EVP_CIPHER_CTX_iv_length,False); - @EVP_CIPHER_CTX_copy := LoadFunctionCLib(fn_EVP_CIPHER_CTX_copy,False ); - @EVP_CIPHER_CTX_get_app_data := LoadFunctionCLib(fn_EVP_CIPHER_CTX_get_app_data ); - @EVP_CIPHER_CTX_set_app_data := LoadFunctionCLib(fn_EVP_CIPHER_CTX_set_app_data ); - @EVP_CIPHER_CTX_flags := LoadFunctionCLib(fn_EVP_CIPHER_CTX_flags); - - @EVP_add_cipher := LoadFunctionCLib(fn_EVP_add_cipher,False); - @EVP_add_digest := LoadFunctionCLib(fn_EVP_add_digest,False); - - @EVP_CIPHER_do_all := LoadFunctionCLib(fn_EVP_CIPHER_do_all,False); - @EVP_CIPHER_do_all_sorted := LoadFunctionCLib(fn_EVP_CIPHER_do_all_sorted,False); - @EVP_MD_do_all := LoadFunctionCLib(fn_EVP_MD_do_all,False); - @EVP_MD_do_all_sorted := LoadFunctionCLib(fn_EVP_MD_do_all_sorted,False); - @EVP_PKEY_decrypt_old := LoadFunctionCLib(fn_EVP_PKEY_decrypt_old,False); - @EVP_PKEY_encrypt_old := LoadFunctionCLib(fn_EVP_PKEY_encrypt_old,False); - @EVP_PKEY_type := LoadFunctionCLib(fn_EVP_PKEY_type,False); - @EVP_PKEY_id := LoadFunctionCLib(fn_EVP_PKEY_id,False); - @EVP_PKEY_base_id := LoadFunctionCLib(fn_EVP_PKEY_base_id,False); - @EVP_PKEY_bits := LoadFunctionCLib(fn_EVP_PKEY_bits,False); - @EVP_PKEY_size := LoadFunctionCLib(fn_EVP_PKEY_size,False); - @EVP_PKEY_set_type := LoadFunctionCLib(fn_EVP_PKEY_set_type,False); - @EVP_PKEY_set_type_str := LoadFunctionCLib(fn_EVP_PKEY_set_type_str,False); - @EVP_PKEY_get0 := LoadFunctionCLib(fn_EVP_PKEY_get0,False); - {$ifndef OPENSSL_NO_RSA} - @EVP_PKEY_set1_RSA := LoadFunctionCLib(fn_EVP_PKEY_set1_RSA,False); - @EVP_PKEY_get1_RSA := LoadFunctionCLib(fn_EVP_PKEY_get1_RSA,False); - {$ENDIF} - {$ifndef OPENSSL_NO_DSA} - @EVP_PKEY_set1_DSA := LoadFunctionCLib(fn_EVP_PKEY_set1_DSA,False); - @EVP_PKEY_get1_DSA := LoadFunctionCLib(fn_EVP_PKEY_get1_DSA,False); - {$endif} - {$ifndef OPENSSL_NO_DH} - @EVP_PKEY_set1_DH := LoadFunctionCLib(fn_EVP_PKEY_set1_DH,False); - @EVP_PKEY_get1_DH := LoadFunctionCLib(fn_EVP_PKEY_get1_DH,False); - {$endif} - {$ifndef OPENSSL_NO_EC} - @EVP_PKEY_set1_EC_KEY := LoadFunctionCLib(fn_EVP_PKEY_set1_EC_KEY,False); - @EVP_PKEY_get1_EC_KEY := LoadFunctionCLib(fn_EVP_PKEY_get1_EC_KEY,False); - {$endif} - @d2i_PublicKey := LoadFunctionCLib(fn_d2i_PublicKey,False); - @i2d_PublicKey := LoadFunctionCLib(fn_i2d_PublicKey,False); - @d2i_AutoPrivateKey := LoadFunctionCLib(fn_d2i_AutoPrivateKey,False); - @EVP_PKEY_copy_parameters := LoadFunctionCLib(fn_EVP_PKEY_copy_parameters,False); - @EVP_PKEY_missing_parameters := LoadFunctionCLib(fn_EVP_PKEY_missing_parameters,False); - @EVP_PKEY_save_parameters := LoadFunctionCLib(fn_EVP_PKEY_save_parameters,False); - @EVP_PKEY_cmp_parameters := LoadFunctionCLib(fn_EVP_PKEY_cmp_parameters,False); - @EVP_PKEY_cmp := LoadFunctionCLib(fn_EVP_PKEY_cmp,False); - @EVP_PKEY_print_public := LoadFunctionCLib(fn_EVP_PKEY_print_public,False); - @EVP_PKEY_print_private := LoadFunctionCLib(fn_EVP_PKEY_print_private,False); - @EVP_PKEY_print_params := LoadFunctionCLib(fn_EVP_PKEY_print_params,False); - @EVP_PKEY_get_default_digest_nid := LoadFunctionCLib(fn_EVP_PKEY_get_default_digest_nid,False); - @EVP_CIPHER_param_to_asn1 := LoadFunctionCLib(fn_EVP_CIPHER_param_to_asn1,False); - @EVP_CIPHER_asn1_to_param := LoadFunctionCLib(fn_EVP_CIPHER_asn1_to_param,False); - @EVP_CIPHER_set_asn1_iv := LoadFunctionCLib(fn_EVP_CIPHER_set_asn1_iv,False); - @EVP_CIPHER_get_asn1_iv := LoadFunctionCLib(fn_EVP_CIPHER_get_asn1_iv,False); - @PKCS5_PBE_keyivgen := LoadFunctionCLib(fn_PKCS5_PBE_keyivgen,False); - @PKCS5_PBKDF2_HMAC_SHA1 := LoadFunctionCLib(fn_PKCS5_PBKDF2_HMAC_SHA1,False); - @PKCS5_PBKDF2_HMAC := LoadFunctionCLib(fn_PKCS5_PBKDF2_HMAC,False); - @PKCS5_v2_PBE_keyivgen := LoadFunctionCLib(fn_PKCS5_v2_PBE_keyivgen,False); - @PKCS5_PBE_add := LoadFunctionCLib(fn_PKCS5_PBE_add,False); - @EVP_PBE_CipherInit := LoadFunctionCLib(fn_EVP_PBE_CipherInit,False); - - @EVP_PBE_alg_add_type := LoadFunctionCLib(fn_EVP_PBE_alg_add_type,False); - @EVP_PBE_alg_add := LoadFunctionCLib(fn_EVP_PBE_alg_add,False); - @EVP_PBE_find := LoadFunctionCLib(fn_EVP_PBE_find,False); - @EVP_PBE_cleanup := LoadFunctionCLib(fn_EVP_PBE_cleanup,False); - @EVP_PKEY_asn1_get_count := LoadFunctionCLib(fn_EVP_PKEY_asn1_get_count,False); - @EVP_PKEY_asn1_get0 := LoadFunctionCLib(fn_EVP_PKEY_asn1_get0,False); - @EVP_PKEY_asn1_find := LoadFunctionCLib(fn_EVP_PKEY_asn1_find,False); - @EVP_PKEY_asn1_find_str := LoadFunctionCLib(fn_EVP_PKEY_asn1_find_str,False); - @EVP_PKEY_asn1_add0 := LoadFunctionCLib(fn_EVP_PKEY_asn1_add0,False); - @EVP_PKEY_asn1_add_alias := LoadFunctionCLib(fn_EVP_PKEY_asn1_add_alias,False); - @EVP_PKEY_asn1_get0_info := LoadFunctionCLib(fn_EVP_PKEY_asn1_get0_info,False); - @EVP_PKEY_get0_asn1 := LoadFunctionCLib(fn_EVP_PKEY_get0_asn1,False); - @EVP_PKEY_asn1_new := LoadFunctionCLib(fn_EVP_PKEY_asn1_new,False); - @EVP_PKEY_asn1_copy := LoadFunctionCLib(fn_EVP_PKEY_asn1_copy,False); - @EVP_PKEY_asn1_free := LoadFunctionCLib(fn_EVP_PKEY_asn1_free,False); - @EVP_PKEY_asn1_set_public := LoadFunctionCLib(fn_EVP_PKEY_asn1_set_public,False); - @EVP_PKEY_asn1_set_private := LoadFunctionCLib(fn_EVP_PKEY_asn1_set_private,False); - @EVP_PKEY_asn1_set_param := LoadFunctionCLib(fn_EVP_PKEY_asn1_set_param,False); - @EVP_PKEY_asn1_set_free := LoadFunctionCLib(fn_EVP_PKEY_asn1_set_free,False); - @EVP_PKEY_asn1_set_ctrl := LoadFunctionCLib(fn_EVP_PKEY_asn1_set_ctrl,False); - @EVP_PKEY_meth_find := LoadFunctionCLib(fn_EVP_PKEY_meth_find,False); - @EVP_PKEY_meth_new := LoadFunctionCLib(fn_EVP_PKEY_meth_new,False); - @EVP_PKEY_meth_get0_info := LoadFunctionCLib(fn_EVP_PKEY_meth_get0_info,False); - @EVP_PKEY_meth_copy := LoadFunctionCLib(fn_EVP_PKEY_meth_copy,False); - @EVP_PKEY_meth_free := LoadFunctionCLib(fn_EVP_PKEY_meth_free,False); - @EVP_PKEY_meth_add0 := LoadFunctionCLib(fn_EVP_PKEY_meth_add0,False); - @EVP_PKEY_CTX_new := LoadFunctionCLib(fn_EVP_PKEY_CTX_new,False); - @EVP_PKEY_CTX_new_id := LoadFunctionCLib(fn_EVP_PKEY_CTX_new_id,False); - @EVP_PKEY_CTX_dup := LoadFunctionCLib(fn_EVP_PKEY_CTX_dup,False); - @EVP_PKEY_CTX_free := LoadFunctionCLib(fn_EVP_PKEY_CTX_free,False); - @EVP_PKEY_CTX_ctrl := LoadFunctionCLib(fn_EVP_PKEY_CTX_ctrl,False); - @EVP_PKEY_CTX_ctrl_str := LoadFunctionCLib(fn_EVP_PKEY_CTX_ctrl_str,False); - @EVP_PKEY_CTX_get_operation := LoadFunctionCLib(fn_EVP_PKEY_CTX_get_operation,False); - @EVP_PKEY_CTX_set0_keygen_info := LoadFunctionCLib(fn_EVP_PKEY_CTX_set0_keygen_info,False); - @EVP_PKEY_new_mac_key := LoadFunctionCLib(fn_EVP_PKEY_new_mac_key,False); - @EVP_PKEY_CTX_set_data := LoadFunctionCLib(fn_EVP_PKEY_CTX_set_data,False); - @EVP_PKEY_CTX_get_data := LoadFunctionCLib(fn_EVP_PKEY_CTX_get_data,False); - @EVP_PKEY_CTX_get0_pkey := LoadFunctionCLib(fn_EVP_PKEY_CTX_get0_pkey,False); - @EVP_PKEY_CTX_get0_peerkey := LoadFunctionCLib(fn_EVP_PKEY_CTX_get0_peerkey,False); - @EVP_PKEY_CTX_set_app_data := LoadFunctionCLib(fn_EVP_PKEY_CTX_set_app_data,False); - @EVP_PKEY_CTX_get_app_data := LoadFunctionCLib(fn_EVP_PKEY_CTX_get_app_data,False); - @EVP_PKEY_sign_init := LoadFunctionCLib(fn_EVP_PKEY_sign_init,False); - @EVP_PKEY_sign := LoadFunctionCLib(fn_EVP_PKEY_sign,False); - @EVP_PKEY_verify_init := LoadFunctionCLib(fn_EVP_PKEY_verify_init,False); - @EVP_PKEY_verify := LoadFunctionCLib(fn_EVP_PKEY_verify,False); - @EVP_PKEY_verify_recover_init := LoadFunctionCLib(fn_EVP_PKEY_verify_recover_init,False); - @EVP_PKEY_verify_recover := LoadFunctionCLib(fn_EVP_PKEY_verify_recover,False); - @EVP_PKEY_encrypt_init := LoadFunctionCLib(fn_EVP_PKEY_encrypt_init,False); - @EVP_PKEY_encrypt := LoadFunctionCLib(fn_EVP_PKEY_encrypt,False); - @EVP_PKEY_decrypt_init := LoadFunctionCLib(fn_EVP_PKEY_decrypt_init,False); - @EVP_PKEY_decrypt := LoadFunctionCLib(fn_EVP_PKEY_decrypt,False); - @EVP_PKEY_derive_init := LoadFunctionCLib(fn_EVP_PKEY_derive_init,False); - @EVP_PKEY_derive_set_peer := LoadFunctionCLib(fn_EVP_PKEY_derive_set_peer,False); - @EVP_PKEY_derive := LoadFunctionCLib(fn_EVP_PKEY_derive,False); - @EVP_PKEY_paramgen_init := LoadFunctionCLib(fn_EVP_PKEY_paramgen_init,False); - @EVP_PKEY_paramgen := LoadFunctionCLib(fn_EVP_PKEY_paramgen,False); - @EVP_PKEY_keygen_init := LoadFunctionCLib(fn_EVP_PKEY_keygen_init,False); - @EVP_PKEY_keygen := LoadFunctionCLib(fn_EVP_PKEY_keygen,False); - @EVP_PKEY_CTX_set_cb := LoadFunctionCLib(fn_EVP_PKEY_CTX_set_cb,False); - @EVP_PKEY_CTX_get_cb := LoadFunctionCLib(fn_EVP_PKEY_CTX_get_cb,False); - @EVP_PKEY_CTX_get_keygen_info := LoadFunctionCLib(fn_EVP_PKEY_CTX_get_keygen_info,False); - @EVP_PKEY_meth_set_init := LoadFunctionCLib(fn_EVP_PKEY_meth_set_init,False); - @EVP_PKEY_meth_set_copy := LoadFunctionCLib(fn_EVP_PKEY_meth_set_copy,False); - @EVP_PKEY_meth_set_cleanup := LoadFunctionCLib(fn_EVP_PKEY_meth_set_cleanup,False); - @EVP_PKEY_meth_set_paramgen := LoadFunctionCLib(fn_EVP_PKEY_meth_set_paramgen,False); - @EVP_PKEY_meth_set_keygen := LoadFunctionCLib(fn_EVP_PKEY_meth_set_keygen,False); - @EVP_PKEY_meth_set_sign := LoadFunctionCLib(fn_EVP_PKEY_meth_set_sign,False); - @EVP_PKEY_meth_set_verify := LoadFunctionCLib(fn_EVP_PKEY_meth_set_verify,False); - @EVP_PKEY_meth_set_verify_recover := LoadFunctionCLib(fn_EVP_PKEY_meth_set_verify_recover,False); - @EVP_PKEY_meth_set_signctx := LoadFunctionCLib(fn_EVP_PKEY_meth_set_signctx,False); - @EVP_PKEY_meth_set_verifyctx := LoadFunctionCLib(fn_EVP_PKEY_meth_set_verifyctx,False); - @EVP_PKEY_meth_set_encrypt := LoadFunctionCLib(fn_EVP_PKEY_meth_set_encrypt,False); - @EVP_PKEY_meth_set_decrypt := LoadFunctionCLib(fn_EVP_PKEY_meth_set_decrypt,False); - @EVP_PKEY_meth_set_derive := LoadFunctionCLib(fn_EVP_PKEY_meth_set_derive,False); - @EVP_PKEY_meth_set_ctrl := LoadFunctionCLib(fn_EVP_PKEY_meth_set_ctrl,False); - //HMAC - {$IFNDEF OPENSSL_NO_HMAC} - @HMAC_CTX_init := LoadFunctionCLib(fn_HMAC_CTX_init); - if IsOpenSSL_1x then begin - @_HMAC_Init_ex := nil; - @_HMAC_Update := nil; - @_HMAC_Final := nil; - @_1_0_HMAC_Init_ex := LoadFunctionCLib(fn_HMAC_Init_ex); - @_1_0_HMAC_Update := LoadFunctionCLib(fn_HMAC_Update); - @_1_0_HMAC_Final := LoadFunctionCLib(fn_HMAC_Final); - end else begin - @_HMAC_Init_ex := LoadFunctionCLib(fn_HMAC_Init_ex); - @_HMAC_Update := LoadFunctionCLib(fn_HMAC_Update); - @_HMAC_Final := LoadFunctionCLib(fn_HMAC_Final); - @_1_0_HMAC_Init_ex := nil; - @_1_0_HMAC_Update := nil; - @_1_0_HMAC_Final := nil; - end; - @HMAC_CTX_cleanup := LoadFunctionCLib(fn_HMAC_CTX_cleanup); - {$ENDIF} - //OBJ - @OBJ_obj2nid := LoadFunctionCLib(fn_OBJ_obj2nid); - @OBJ_nid2obj := LoadFunctionCLib(fn_OBJ_nid2obj); - @OBJ_nid2ln := LoadFunctionCLib(fn_OBJ_nid2ln); - @OBJ_nid2sn := LoadFunctionCLib(fn_OBJ_nid2sn); - //ASN1 - @ASN1_INTEGER_set := LoadFunctionCLib(fn_ASN1_INTEGER_set); - @ASN1_INTEGER_get := LoadFunctionCLib(fn_ASN1_INTEGER_get); - @ASN1_INTEGER_to_BN := LoadFunctionCLib(fn_ASN1_INTEGER_to_BN); - @ASN1_STRING_type_new := LoadFunctionCLib(fn_ASN1_STRING_type_new); - @ASN1_STRING_free := LoadFunctionCLib(fn_ASN1_STRING_free); - @ASN1_dup := LoadFunctionCLib(fn_ASN1_dup ); - @CRYPTO_set_mem_functions := LoadFunctionCLib(fn_CRYPTO_set_mem_functions); - @CRYPTO_malloc := LoadFunctionCLib(fn_CRYPTO_malloc); - @CRYPTO_free := LoadFunctionCLib(fn_CRYPTO_free); - @CRYPTO_mem_leaks := LoadFunctionCLib(fn_CRYPTO_mem_leaks); - @CRYPTO_mem_ctrl := LoadFunctionCLib(fn_CRYPTO_mem_ctrl); - @CRYPTO_set_mem_debug_functions := LoadFunctionCLib(fn_CRYPTO_set_mem_debug_functions); - //@CRYPTO_dbg_malloc := LoadFunctionCLib(fn_CRYPTO_dbg_malloc); - //@CRYPTO_dbg_realloc := LoadFunctionCLib(fn_CRYPTO_dbg_realloc); - //@CRYPTO_dbg_free := LoadFunctionCLib(fn_CRYPTO_dbg_free); - //@CRYPTO_dbg_set_options := LoadFunctionCLib(fn_CRYPTO_dbg_set_options); - //@CRYPTO_dbg_get_options := LoadFunctionCLib(fn_CRYPTO_dbg_get_options); - @PKCS12_create := LoadFunctionCLib(fn_PKCS12_create); - @i2d_PKCS12_bio := LoadFunctionCLib(fn_i2d_PKCS12_bio); - @PKCS12_free := LoadFunctionCLib(fn_PKCS12_free); - @OpenSSL_add_all_algorithms := LoadOldCLib(fn_OpenSSL_add_all_algorithms, - fn_OPENSSL_add_all_algorithms_noconf); - @OpenSSL_add_all_ciphers := LoadFunctionCLib(fn_OpenSSL_add_all_ciphers); - @OpenSSL_add_all_digests := LoadFunctionCLib(fn_OpenSSL_add_all_digests); - @EVP_cleanup := LoadFunctionCLib(fn_EVP_cleanup); - - @sk_num := LoadFunctionCLib(fn_sk_num); - @sk_new := LoadFunctionCLib(fn_sk_new); - @sk_new_null := LoadFunctionCLib(fn_sk_new_null); - @sk_free := LoadFunctionCLib(fn_sk_free); - @sk_push := LoadFunctionCLib(fn_sk_push); - @sk_dup := LoadFunctionCLib(fn_sk_dup); - @sk_find := LoadFunctionCLib(fn_sk_find); - @sk_value := LoadFunctionCLib(fn_sk_value); - {$IFDEF OPENSSL_FIPS} - @_FIPS_mode_set := LoadFunctionCLib(fn_FIPS_mode_set,False); - @_FIPS_mode := LoadFunctionCLib(fn_FIPS_mode,False); - {$ENDIF} - - // TODO: expose a global callback function pointer, or an optional input - // parameter to Load(), so users can choose to load additional OpenSSL - // functions as desired using the DLL handles that we've already loaded... - { - if Assigned(LoadSSLFuncsCallback) then begin - LoadSSLFuncsCallback(hIdSSL, hIdCrypto, FFailedLoadList); - end; - } - - Result := (FFailedLoadList.Count = 0); -end; - -{$ENDIF} // STATICLOAD_OPENSSL - -procedure InitializeFuncPointers; -begin - @SSL_CTX_set_cipher_list := nil; - @SSL_CTX_new := nil; - @SSL_CTX_free := nil; - @SSL_set_fd := nil; - @SSL_CTX_use_PrivateKey_file := nil; - @SSL_CTX_use_PrivateKey := nil; - @SSL_CTX_use_certificate := nil; - @SSL_CTX_use_certificate_file := nil; - SSL_CTX_use_certificate_chain_file := nil; - @SSL_load_error_strings := nil; - @SSL_state_string_long := nil; - @SSL_load_error_strings := nil; - @SSL_alert_type_string_long := nil; - - @SSL_get_peer_certificate := nil; - @SSL_CTX_set_verify := nil; - @SSL_CTX_set_verify_depth := nil; - @SSL_CTX_get_verify_depth := nil; - @SSL_CTX_set_default_passwd_cb := nil; - @SSL_CTX_set_default_passwd_cb_userdata := nil; - @SSL_CTX_check_private_key := nil; - @SSL_new := nil; - @SSL_free := nil; - @SSL_accept := nil; - @SSL_connect := nil; - @SSL_read := nil; - @SSL_peek := nil; - @SSL_pending := nil; - @SSL_write := nil; - @SSL_ctrl := nil; - @SSL_callback_ctrl := nil; - @SSL_CTX_ctrl := nil; - @SSL_CTX_callback_ctrl := nil; - @SSL_get_error := nil; - @SSLv2_method := nil; - @SSLv2_server_method := nil; - @SSLv2_client_method := nil; - @SSLv3_method := nil; - @SSLv3_server_method := nil; - @SSLv3_client_method := nil; - @SSLv23_method := nil; - @SSLv23_server_method := nil; - @SSLv23_client_method := nil; - @TLSv1_method := nil; - @TLSv1_server_method := nil; - @TLSv1_client_method := nil; - @TLSv1_1_method := nil; - @TLSv1_1_server_method := nil; - @TLSv1_1_client_method := nil; - @TLSv1_2_method := nil; - @TLSv1_2_server_method := nil; - @TLSv1_2_client_method := nil; - @DTLSv1_method := nil; - @DTLSv1_server_method := nil; - @DTLSv1_client_method := nil; - @SSL_shutdown := nil; - @SSL_set_connect_state := nil; - @SSL_set_accept_state := nil; - @SSL_set_shutdown := nil; - @SSL_CTX_load_verify_locations := nil; - @SSL_get_session := nil; - @SSLeay_add_ssl_algorithms := nil; - @SSL_SESSION_get_id := nil; - @SSL_copy_session_id := nil; - // CRYPTO LIB - @_SSLeay_version := nil; - @SSLeay := nil; - @X509_NAME_oneline := nil; - @X509_NAME_hash := nil; - @X509_set_issuer_name := nil; - @X509_get_issuer_name := nil; - @X509_set_subject_name := nil; - @X509_get_subject_name := nil; - @X509_digest := nil; - @X509_LOOKUP_ctrl := nil; - @X509_STORE_add_cert := nil; - @X509_STORE_add_crl := nil; - @X509_STORE_CTX_get_ex_data := nil; - @X509_STORE_CTX_get_error := nil; - @X509_STORE_CTX_set_error := nil; - @X509_STORE_CTX_get_error_depth := nil; - @X509_STORE_CTX_get_current_cert := nil; - @X509_STORE_add_lookup := nil; - @X509_STORE_load_locations := nil; - @X509_sign := nil; - @X509_REQ_sign := nil; - @X509_REQ_add_extensions := nil; - @X509V3_EXT_conf_nid := nil; - @X509_EXTENSION_create_by_NID := nil; - @X509V3_set_ctx := nil; - @X509_EXTENSION_free := nil; - @X509_add_ext := nil; - {$IFNDEF OPENSSL_NO_BIO} - //X509_print - @X509_print := nil; - {$ENDIF} - @_RAND_cleanup := nil; - @_RAND_bytes := nil; - @_RAND_pseudo_bytes := nil; - @_RAND_seed := nil; - @_RAND_add := nil; - @_RAND_status := nil; - {$IFDEF SYS_WIN} - @_RAND_screen := nil; - @_RAND_event := nil; - {$ENDIF} - {$IFNDEF OPENSSL_NO_DES} - // 3DES - @DES_set_odd_parity := nil; - @DES_set_key := nil; - @DES_ecb_encrypt := nil; - @Id_ossl_old_des_set_odd_parity := nil; - @Id_ossl_old_des_set_key := nil; - @Id_ossl_old_des_ecb_encrypt := nil; - {$ENDIF} - // More SSL functions - @SSL_set_ex_data := nil; - @SSL_get_ex_data := nil; - @SSL_load_client_CA_file := nil; - @SSL_CTX_set_client_CA_list := nil; - @SSL_CTX_set_default_verify_paths := nil; - @SSL_CTX_set_session_id_context := nil; - @SSL_CIPHER_description := nil; - @SSL_get_current_cipher := nil; - @SSL_CIPHER_get_name := nil; - @SSL_CIPHER_get_version := nil; - @SSL_CIPHER_get_bits := nil; - // Thread safe - @_CRYPTO_num_locks := nil; - @CRYPTO_set_locking_callback := nil; - {$IFNDEF WIN32_OR_WIN64} - @CRYPTO_THREADID_set_callback := nil; - @CRYPTO_THREADID_set_numeric := nil; - @CRYPTO_THREADID_set_pointer := nil; - @CRYPTO_set_id_callback := nil; - {$ENDIF} - @ERR_put_error := nil; - @ERR_get_error := nil; - @ERR_peek_error := nil; - @ERR_peek_last_error := nil; - @ERR_clear_error := nil; - @ERR_error_string := nil; - @ERR_error_string_n := nil; - @ERR_lib_error_string := nil; - @ERR_func_error_string := nil; - @ERR_reason_error_string := nil; - @ERR_load_ERR_strings := nil; - @ERR_load_crypto_strings := nil; - @ERR_free_strings := nil; - @ERR_remove_thread_state := nil; - @ERR_remove_state := nil; - @CRYPTO_cleanup_all_ex_data := nil; - @SSL_COMP_get_compression_methods := nil; - @SSL_COMP_free_compression_methods := nil; - @sk_pop_free := nil; - //RSA - @RSA_new := nil; - @RSA_free := nil; - @RSA_size := nil; - @RSA_generate_key := nil; - @RSA_generate_key_ex := nil; - @RSA_check_key := nil; - @RSA_private_decrypt := nil; - @RSA_public_encrypt := nil; - //DH - @DH_free := nil; - //BIO - @BIO_set_flags := nil; - @BIO_new := nil; - @BIO_push := nil; - @BIO_pop := nil; - @BIO_set_next := nil; - @BIO_free := nil; - @BIO_free_all := nil; - @BIO_new_mem_buf := nil; - @BIO_s_mem := nil; - @BIO_s_file := nil; - @BIO_set_ex_data := nil; - @BIO_get_ex_data := nil; - @BIO_ctrl := nil; - @BIO_ptr_ctrl := nil; - @BIO_int_ctrl := nil; - @BIO_new_file := nil; - @BIO_puts := nil; - @BIO_read := nil; - @BIO_write := nil; - //BN - @BN_hex2bn := nil; - @BN_bn2dec := nil; - @BN_bn2hex := nil; - //i2d - @i2d_PKCS7 := nil; - @d2i_PKCS7 := nil; - @i2d_RSAPrivateKey := nil; - @d2i_RSAPrivateKey := nil; - @i2d_DSAPrivateKey := nil; - @d2i_DSAPrivateKey := nil; - @i2d_X509_bio := nil; - @i2d_PrivateKey_bio := nil; - @i2d_PrivateKey := nil; - @d2i_PrivateKey := nil; - @d2i_PrivateKey_bio := nil; - @i2d_X509 := nil; - @d2i_X509_bio := nil; - @d2i_X509 := nil; - @d2i_PKCS12_bio := nil; - @PKCS12_parse := nil; - @X509_NAME_new := nil; - @X509_NAME_free := nil; - @i2d_X509_REQ_bio := nil; - @i2d_X509_REQ := nil; - @d2i_X509_REQ := nil; - @i2d_X509_NAME := nil; - @d2i_X509_NAME := nil; - @i2d_DSAparams := nil; - @d2i_DSAparams := nil; - @i2d_DHparams := nil; - @d2i_DHparams := nil; - @i2d_NETSCAPE_CERT_SEQUENCE := nil; - @d2i_NETSCAPE_CERT_SEQUENCE := nil; - @i2d_PUBKEY := nil; - @d2i_PUBKEY := nil; - //X509 - @X509_get_default_cert_file := nil; - @X509_get_default_cert_file_env := nil; - @X509_new := nil; - @X509_free := nil; - @X509_REQ_new := nil; - @X509_REQ_free := nil; - @X509_to_X509_REQ := nil; - @X509_NAME_add_entry_by_txt := nil; - @X509_INFO_free := nil; - @X509_set_version := nil; - @X509_get_serialNumber := nil; - @X509_gmtime_adj := nil; - @X509_set_notBefore := nil; - @X509_set_notAfter := nil; - @X509_set_pubkey := nil; - @X509_REQ_set_pubkey := nil; - //PEM - {$IFNDEF SSLEAY_MACROS} - @_PEM_read_bio_X509 := nil; - @_PEM_read_bio_X509_REQ := nil; - @_PEM_read_bio_X509_CRL := nil; - @_PEM_read_bio_RSAPrivateKey := nil; - @_PEM_read_bio_RSAPublicKey := nil; - @_PEM_read_bio_DSAPrivateKey := nil; - @_PEM_read_bio_PrivateKey := nil; - @_PEM_read_bio_PKCS7 := nil; - @_PEM_read_bio_DHparams := nil; - @_PEM_read_bio_DSAparams := nil; - @_PEM_read_bio_NETSCAPE_CERT_SEQUENCE := nil; - @_PEM_read_bio_PUBKEY := nil; - @_PEM_write_bio_X509 := nil; - @_PEM_write_bio_X509_REQ := nil; - @_PEM_write_bio_X509_CRL := nil; - @_PEM_write_bio_RSAPublicKey := nil; - @_PEM_write_bio_RSAPrivateKey := nil; - @_PEM_write_bio_DSAPrivateKey := nil; - @_PEM_write_bio_PrivateKey := nil; - @_PEM_write_bio_PKCS7 := nil; - @_PEM_write_bio_DHparams := nil; - @_PEM_write_bio_DSAparams := nil; - @_PEM_write_bio_NETSCAPE_CERT_SEQUENCE := nil; - @_PEM_write_bio_PKCS8PrivateKey := nil; - @_PEM_write_bio_PUBKEY := nil; - {$ELSE} - @PEM_ASN1_write_bio := nil; - @PEM_ASN1_read_bio := nil; - {$ENDIF} - @PEM_X509_INFO_read_bio := nil; - @PEM_read_bio_X509_AUX := nil; - //EVP - {$IFNDEF OPENSSL_NO_DES} - @EVP_des_ede3_cbc := nil; - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA512} - @EVP_sha512 := nil; - @EVP_sha384 := nil; - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA256} - @EVP_sha256 := nil; - @EVP_sha224 := nil; - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA} - @EVP_sha := nil; - @EVP_sha1 := nil; - @EVP_dss := nil; - @EVP_dss1 := nil; - @EVP_ecdsa := nil; - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD5} - @EVP_md5 := nil; - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD4} - @EVP_md4 := nil; - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD2} - @EVP_md2 := nil; - {$ENDIF} - {$ifndef OPENSSL_NO_MDC2} - @EVP_mdc2 := nil; - {$endif} - {$IFNDEF OPENSSL_NO_MD5} - @EVP_md5 := nil; - {$ENDIF} - - {$ifndef OPENSSL_NO_RIPEMD} - EVP_ripemd160 := nil; - {$endif} - {$ifndef OPENSSL_NO_WHIRLPOOL} - @EVP_whirlpool := nil; - {$endif} - @EVP_md_null := nil; - {$IFNDEF OPENSSL_NO_DES} - @EVP_des_ecb := nil; - @EVP_des_ede := nil; - @EVP_des_ede3 :=nil; - @EVP_des_ede_ecb := nil; - @EVP_des_ede3_ecb := nil; - @EVP_des_cfb64 := nil; - - @EVP_des_cfb1 := nil; - @EVP_des_cfb8 := nil; - @EVP_des_ede_cfb64 := nil; -//#if 0 - // @EVP_des_ede_cfb1 := nil; - // @EVP_des_ede_cfb8 := nil; - //#endif - @EVP_des_ede3_cfb64 :=nil; - @EVP_des_ede3_cfb1 := nil; - @EVP_des_ede3_cfb8 := nil; - @EVP_des_ofb := nil; - @EVP_des_ede_ofb := nil; - @EVP_des_ede3_ofb := nil; - @EVP_des_cbc := nil; - @EVP_des_ede_cbc := nil; - @EVP_desx_cbc := nil; -//* This should now be supported through the dev_crypto ENGINE. But also, why are -// * rc4 and md5 declarations made here inside a "NO_DES" precompiler branch? */ -//#if 0 - {$ifdef OPENSSL_OPENBSD_DEV_CRYPTO} - @EVP_dev_crypto_des_ede3_cbc := nil; - @EVP_dev_crypto_rc4 := nil; - @EVP_dev_crypto_md5 := nil; - {$endif} -//#endif - {$endif} - - {$ifndef OPENSSL_NO_RC4} - @EVP_rc4 := nil; - @EVP_rc4_40 := nil; - {$ifndef OPENSSL_NO_MD5} - @EVP_rc4_hmac_md5 := nil; - {$endif} - {$endif} - {$ifndef OPENSSL_NO_IDEA} - @EVP_idea_ecb := nil; - @EVP_idea_cfb64 := nil; - @EVP_idea_ofb := nil; - @EVP_idea_cbc := nil; - {$endif} - {$ifndef OPENSSL_NO_RC2} - @EVP_rc2_ecb := nil; - @EVP_rc2_cbc := nil; - @EVP_rc2_40_cbc := nil; - @EVP_rc2_64_cbc := nil; - @EVP_rc2_cfb64 := nil; - @EVP_rc2_ofb := nil; - {$endif} - {$ifndef OPENSSL_NO_BF} - @EVP_bf_ecb := nil; - @EVP_bf_cbc := nil; - @EVP_bf_cfb64 := nil; - @EVP_bf_ofb := nil; - {$endif} - {$ifndef OPENSSL_NO_CAST} - @EVP_cast5_ecb := nil; - @EVP_cast5_cbc := nil; - @EVP_cast5_cfb64 := nil; - @EVP_cast5_ofb := nil; - {$endif} - {$ifndef OPENSSL_NO_RC5} - @EVP_rc5_32_12_16_cbc := nil; - @EVP_rc5_32_12_16_ecb := nil; - @EVP_rc5_32_12_16_cfb64 := nil; - @EVP_rc5_32_12_16_ofb := nil; - {$endif} - {$ifndef OPENSSL_NO_AES} - @EVP_aes_128_ecb := nil; - @EVP_aes_128_cbc := nil; - @EVP_aes_128_cfb1:= nil; - @EVP_aes_128_cfb8:= nil; - @EVP_aes_128_cfb128 := nil; - @EVP_aes_128_ofb := nil; - @EVP_aes_128_ctr := nil; - @EVP_aes_128_gcm := nil; - @EVP_aes_128_ccm := nil; - @EVP_aes_128_xts := nil; - @EVP_aes_192_ecb := nil; - @EVP_aes_192_cbc := nil; - @EVP_aes_192_cfb1 := nil; - @EVP_aes_192_cfb128 := nil; - - @EVP_aes_192_ofb := nil; - @EVP_aes_192_ctr := nil; - @EVP_aes_192_gcm := nil; - @EVP_aes_192_ccm := nil; - @EVP_aes_256_ecb := nil; - @EVP_aes_256_cbc := nil; - @EVP_aes_256_cfb1 := nil; - @EVP_aes_256_cfb8 := nil; - @EVP_aes_256_cfb128 := nil; - @EVP_aes_256_ofb := nil; - @EVP_aes_256_ctr := nil; - @EVP_aes_256_gcm := nil; - @EVP_aes_256_ccm := nil; - @EVP_aes_256_xts := nil; - {$ifndef OPENSSL_NO_SHA} - {$ifndef OPENSSL_NO_SHA1} - @EVP_aes_128_cbc_hmac_sha1 := nil; - @EVP_aes_256_cbc_hmac_sha1 := nil; - {$endif} - {$endif} - {$endif} - {$ifndef OPENSSL_NO_CAMELLIA} - @EVP_camellia_128_ecb := nil; - @EVP_camellia_128_cbc := nil; - @EVP_camellia_128_cfb1 := nil; - @EVP_camellia_128_cfb8 := nil; - @EVP_camellia_128_cfb128 := nil; - @EVP_camellia_128_ofb := nil; - @EVP_camellia_192_ecb := nil; - - @EVP_camellia_192_cbc := nil; - @EVP_camellia_192_cfb1 := nil; - @EVP_camellia_192_cfb8 := nil; - @EVP_camellia_192_cfb128 :=nil; - @EVP_camellia_192_ofb := nil; - @EVP_camellia_256_ecb := nil; - @EVP_camellia_256_cbc := nil; - @EVP_camellia_256_cfb1 := nil; - @EVP_camellia_256_cfb8 := nil; - @EVP_camellia_256_cfb128 := nil; - @EVP_camellia_256_ofb := nil; - {$endif} - - {$ifndef OPENSSL_NO_SEED} - @EVP_seed_ecb := nil; - @EVP_seed_cbc := nil; - @EVP_seed_cfb128 := nil; - @EVP_seed_ofb := nil; - {$endif} - - @EVP_MD_CTX_init := nil; - @EVP_MD_CTX_cleanup := nil; - @EVP_MD_CTX_create := nil; - @EVP_MD_CTX_destroy := nil; - @EVP_MD_CTX_copy := nil; - @EVP_MD_CTX_copy_ex := nil; - //@EVP_MD_CTX_set_flags := nil; - //@EVP_MD_CTX_clear_flags := nil; - //@EVP_MD_CTX_test_flags := nil; - - @EVP_DigestInit := nil; - @EVP_DigestInit_ex := nil; - @EVP_DigestUpdate := nil; - @EVP_DigestFinal_ex := nil; - - @EVP_EncryptInit := nil; - @EVP_EncryptInit_ex := nil; - @EVP_EncryptUpdate := nil; - @EVP_EncryptFinal_ex := nil; - @EVP_EncryptFinal := nil; - - @EVP_DecryptInit := nil; - @EVP_DecryptInit_ex := nil; - @EVP_DecryptUpdate := nil; - @EVP_DecryptFinal := nil; - @EVP_DecryptFinal_ex := nil; - @EVP_CipherInit := nil; - @EVP_CipherInit_ex := nil; - @EVP_CipherUpdate := nil; - @EVP_CipherFinal := nil; - @EVP_CipherFinal_ex := nil; - @EVP_SignFinal := nil; - @EVP_VerifyFinal := nil; - @EVP_DigestSignInit := nil; - @EVP_DigestSignFinal := nil; - @EVP_DigestVerifyInit := nil; - @EVP_DigestVerifyFinal := nil; - @EVP_OpenInit := nil; - @EVP_OpenFinal := nil; - @EVP_SealInit := nil; - @EVP_SealFinal := nil; - @EVP_EncodeInit := nil; - - @EVP_EncodeUpdate := nil; - @EVP_EncodeFinal := nil; - @EVP_EncodeBlock := nil; - @EVP_DecodeInit := nil; - @EVP_DecodeUpdate := nil; - @EVP_DecodeFinal := nil; - @EVP_DecodeBlock := nil; - - @EVP_CIPHER_CTX_init := nil; - - @EVP_CIPHER_CTX_cleanup := nil; - @EVP_CIPHER_CTX_new := nil; - @EVP_CIPHER_CTX_free := nil; - @EVP_CIPHER_CTX_set_key_length := nil; - @EVP_CIPHER_CTX_set_padding := nil; - @EVP_CIPHER_CTX_ctrl := nil; - @EVP_CIPHER_CTX_rand_key := nil; - - @EVP_add_cipher := nil; - @EVP_add_digest := nil; - @EVP_CIPHER_do_all := nil; - @EVP_CIPHER_do_all_sorted := nil; - @EVP_MD_do_all := nil; - @EVP_MD_do_all_sorted := nil; - @EVP_PKEY_decrypt_old := nil; - @EVP_PKEY_encrypt_old := nil; - @EVP_PKEY_type := nil; - @EVP_PKEY_id := nil; - @EVP_PKEY_base_id := nil; - @EVP_PKEY_bits := nil; - @EVP_PKEY_size := nil; - @EVP_PKEY_set_type := nil; - @EVP_PKEY_set_type_str := nil; - @EVP_PKEY_get0 := nil; - {$ifndef OPENSSL_NO_RSA} - @EVP_PKEY_set1_RSA := nil; - @EVP_PKEY_get1_RSA := nil; - {$ENDIF} - {$ifndef OPENSSL_NO_DSA} - @EVP_PKEY_set1_DSA := nil; - @EVP_PKEY_get1_DSA := nil; - {$endif} - {$ifndef OPENSSL_NO_DH} - @EVP_PKEY_set1_DH := nil; - @EVP_PKEY_get1_DH := nil; - {$endif} - {$ifndef OPENSSL_NO_EC} - @EVP_PKEY_set1_EC_KEY := nil; - @EVP_PKEY_get1_EC_KEY := nil; - {$endif} - - {$EXTERNALSYM d2i_PublicKey} - @d2i_PublicKey := nil; - @i2d_PublicKey := nil; - @d2i_AutoPrivateKey := nil; - @EVP_PKEY_copy_parameters := nil; - @EVP_PKEY_missing_parameters := nil; - @EVP_PKEY_save_parameters := nil; - @EVP_PKEY_cmp_parameters := nil; - @EVP_PKEY_cmp := nil; - @EVP_PKEY_print_public := nil; - @EVP_PKEY_print_private := nil; - @EVP_PKEY_print_params := nil; - @EVP_PKEY_get_default_digest_nid := nil; - @EVP_CIPHER_param_to_asn1 := nil; - @EVP_CIPHER_asn1_to_param := nil; - @EVP_CIPHER_set_asn1_iv := nil; - @EVP_CIPHER_get_asn1_iv := nil; - @PKCS5_PBE_keyivgen := nil; - @PKCS5_PBKDF2_HMAC_SHA1 := nil; - @PKCS5_PBKDF2_HMAC := nil; - @PKCS5_v2_PBE_keyivgen := nil; - @PKCS5_PBE_add := nil; - @EVP_PBE_CipherInit := nil; - - @EVP_PBE_alg_add_type := nil; - @EVP_PBE_alg_add := nil; - @EVP_PBE_find := nil; - @EVP_PBE_cleanup := nil; - @EVP_PKEY_asn1_get_count := nil; - @EVP_PKEY_asn1_get0 := nil; - @EVP_PKEY_asn1_find := nil; - @EVP_PKEY_asn1_find_str := nil; - @EVP_PKEY_asn1_add0 := nil; - @EVP_PKEY_asn1_add_alias := nil; - @EVP_PKEY_asn1_get0_info := nil; - @EVP_PKEY_get0_asn1 := nil; - @EVP_PKEY_asn1_new := nil; - @EVP_PKEY_asn1_copy := nil; - @EVP_PKEY_asn1_free := nil; - @EVP_PKEY_asn1_set_public := nil; - @EVP_PKEY_asn1_set_private := nil; - @EVP_PKEY_asn1_set_param := nil; - @EVP_PKEY_asn1_set_free := nil; - @EVP_PKEY_asn1_set_ctrl := nil; - @EVP_PKEY_meth_find := nil; - @EVP_PKEY_meth_new := nil; - @EVP_PKEY_meth_get0_info := nil; - @EVP_PKEY_meth_copy := nil; - @EVP_PKEY_meth_free := nil; - @EVP_PKEY_meth_add0 := nil; - @EVP_PKEY_CTX_new := nil; - @EVP_PKEY_CTX_new_id := nil; - @EVP_PKEY_CTX_dup := nil; - @EVP_PKEY_CTX_free := nil; - @EVP_PKEY_CTX_ctrl := nil; - @EVP_PKEY_CTX_ctrl_str := nil; - @EVP_PKEY_CTX_get_operation := nil; - @EVP_PKEY_CTX_set0_keygen_info := nil; - @EVP_PKEY_new_mac_key := nil; - @EVP_PKEY_CTX_set_data := nil; - @EVP_PKEY_CTX_get_data := nil; - @EVP_PKEY_CTX_get0_pkey := nil; - @EVP_PKEY_CTX_get0_peerkey := nil; - @EVP_PKEY_CTX_set_app_data := nil; - @EVP_PKEY_CTX_get_app_data := nil; - @EVP_PKEY_sign_init := nil; - @EVP_PKEY_sign := nil; - @EVP_PKEY_verify_init := nil; - @EVP_PKEY_verify := nil; - @EVP_PKEY_verify_recover_init := nil; - @EVP_PKEY_verify_recover := nil; - @EVP_PKEY_encrypt_init := nil; - @EVP_PKEY_encrypt := nil; - @EVP_PKEY_decrypt_init := nil; - @EVP_PKEY_decrypt := nil; - @EVP_PKEY_derive_init := nil; - @EVP_PKEY_derive_set_peer := nil; - @EVP_PKEY_derive := nil; - @EVP_PKEY_paramgen_init := nil; - @EVP_PKEY_paramgen := nil; - @EVP_PKEY_keygen_init := nil; - @EVP_PKEY_keygen := nil; - @EVP_PKEY_CTX_set_cb := nil; - @EVP_PKEY_CTX_get_cb := nil; - @EVP_PKEY_CTX_get_keygen_info := nil; - @EVP_PKEY_meth_set_init := nil; - @EVP_PKEY_meth_set_copy := nil; - @EVP_PKEY_meth_set_cleanup := nil; - @EVP_PKEY_meth_set_paramgen := nil; - @EVP_PKEY_meth_set_keygen := nil; - @EVP_PKEY_meth_set_sign := nil; - @EVP_PKEY_meth_set_verify := nil; - @EVP_PKEY_meth_set_verify_recover := nil; - @EVP_PKEY_meth_set_signctx := nil; - @EVP_PKEY_meth_set_verifyctx := nil; - @EVP_PKEY_meth_set_encrypt := nil; - @EVP_PKEY_meth_set_decrypt := nil; - @EVP_PKEY_meth_set_derive := nil; - @EVP_PKEY_meth_set_ctrl := nil; -{$ifndef OPENSSL_NO_BIO} - BIO_f_md := nil; - BIO_f_base64 := nil; - BIO_f_cipher := nil; - BIO_f_reliable := nil; - BIO_set_cipher := nil; -{$endif} - @EVP_PKEY_type := nil; - @EVP_PKEY_new := nil; - @EVP_PKEY_free := nil; - @EVP_PKEY_assign := nil; - @EVP_get_cipherbyname := nil; - @EVP_get_digestbyname := nil; - @EVP_MD_type := nil; - @EVP_MD_size := nil; - @EVP_MD_block_size := nil; - @EVP_MD_flags := nil; - @EVP_MD_CTX_md := nil; - @EVP_CIPHER_nid := nil; - @EVP_CIPHER_block_size := nil; - @EVP_CIPHER_key_length := nil; - @EVP_CIPHER_iv_length := nil; - @EVP_CIPHER_flags := nil; - @EVP_CIPHER_type := nil; - @EVP_CIPHER_CTX_cipher := nil; - @EVP_CIPHER_CTX_nid := nil; - @EVP_CIPHER_CTX_block_size := nil; - @EVP_CIPHER_CTX_key_length := nil; - @EVP_CIPHER_CTX_iv_length := nil; - @EVP_CIPHER_CTX_copy := nil; - @EVP_CIPHER_CTX_get_app_data := nil; - @EVP_CIPHER_CTX_set_app_data := nil; - @EVP_CIPHER_CTX_flags := nil; - - //HMAC -{$IFNDEF OPENSSL_NO_HMAC} - @HMAC_CTX_init := nil; - @_HMAC_Init_ex := nil; - @_HMAC_Update := nil; - @_HMAC_Final := nil; - @_1_0_HMAC_Init_ex := nil; - @_1_0_HMAC_Update := nil; - @_1_0_HMAC_Final := nil; - @HMAC_CTX_cleanup := nil; -{$ENDIF} - //OBJ - @OBJ_obj2nid := nil; - @OBJ_nid2obj := nil; - @OBJ_nid2ln := nil; - @OBJ_nid2sn := nil; - //ASN1 - @ASN1_INTEGER_set := nil; - @ASN1_INTEGER_get := nil; - @ASN1_INTEGER_to_BN := nil; - @ASN1_STRING_type_new := nil; - @ASN1_STRING_free := nil; - @ASN1_dup := nil; - @_CRYPTO_lock := nil; - @CRYPTO_set_mem_functions := nil; - @CRYPTO_malloc := nil; - @CRYPTO_free := nil; - @CRYPTO_mem_leaks := nil; - @CRYPTO_mem_ctrl := nil; - @CRYPTO_set_mem_debug_functions := nil; - //@CRYPTO_dbg_malloc := nil; - //@CRYPTO_dbg_realloc := nil; - //@CRYPTO_dbg_free := nil; - //@CRYPTO_dbg_set_options := nil; - //@CRYPTO_dbg_get_options := nil; - @PKCS12_create := nil; - @i2d_PKCS12_bio := nil; - @PKCS12_free := nil; - @OpenSSL_add_all_algorithms := nil; - @OpenSSL_add_all_ciphers := nil; - @OpenSSL_add_all_digests := nil; - @EVP_cleanup := nil; - @sk_new := nil; - @sk_num := nil; - @sk_new_null := nil; - @sk_free := nil; - @sk_push := nil; - @sk_dup := nil; - @sk_find := nil; - @sk_value := nil; - {$IFDEF OPENSSL_FIPS} - @_FIPS_mode_set := nil; - @_FIPS_mode := nil; - {$ENDIF} - - // TODO: expose a global callback function pointer, or an optional input - // parameter to InitializeFuncPointers(), so users can reset any additional - // OpenSSL function pointers they loaded manually during Load()... - { - if Assigned(UnloadSSLFuncsCallback) then begin - UnloadSSLFuncsCallback(); - end; - } -end; - -procedure Unload; -var - LStack: Pointer; -begin - if {$IFDEF STATICLOAD_OPENSSL}bIsLoaded{$ELSE}hIdSSL <> IdNilHandle{$ENDIF} then begin - if Assigned(SSL_COMP_free_compression_methods) then begin - SSL_COMP_free_compression_methods; - end - //this is a workaround for a known leak in the openssl library - //present in 0.9.8a - else if Assigned(SSLeay) then begin - if SSLeay = $0090801f then begin - if Assigned(SSL_COMP_get_compression_methods) and - Assigned(sk_pop_free) and - Assigned(CRYPTO_free) then - begin - LStack := SSL_COMP_get_compression_methods; - sk_pop_free(LStack, CRYPTO_free); - end; - end; - end; - if Assigned(CRYPTO_cleanup_all_ex_data) then begin - CRYPTO_cleanup_all_ex_data; - end; - if Assigned(ERR_free_strings) then begin - ERR_free_strings; - end; - if Assigned(ERR_remove_thread_state) then begin - ERR_remove_thread_state(nil); - end - else if Assigned(ERR_remove_state) then begin - ERR_remove_state(0); - end; - if Assigned(EVP_cleanup) then begin - EVP_cleanup; - end; - {$IFDEF STATICLOAD_OPENSSL} - bIsLoaded := False; - {$ELSE} - {$IFDEF WINDOWS}Windows.{$ENDIF}FreeLibrary(hIdSSL); - hIdSSL := IdNilHandle; - {$ENDIF} - end; - - {$IFNDEF STATICLOAD_OPENSSL} - if hIdCrypto <> IdNilHandle then begin - {$IFDEF WINDOWS}Windows.{$ENDIF}FreeLibrary(hIdCrypto); - hIdCrypto := IdNilHandle; - end; - {$ENDIF} - - {$IFDEF USE_INVALIDATE_MOD_CACHE} - InvalidateModuleCache; - {$ENDIF} - - {$IFNDEF STATICLOAD_OPENSSL} - { - IMPORTANT!! - - We probably should reinitialize the functions to nil after the library is - unloaded as some code will test for their presence with Assigned. - } - InitializeFuncPointers; - {$ENDIF} -end; - - -{$IFNDEF STATICLOAD_OPENSSL} -function WhichFailedToLoad: string; -begin - Assert(FFailedLoadList<>nil); - Result := FFailedLoadList.CommaText; -end; -{$ENDIF} - -// Author : Gregor Ibich (gregor.ibic@intelicom.si) -// Pascal translation: Doychin Bondzhev (doichin@5group.com) - -// Converts the following string representations into corresponding parts -// YYYYMMDDHHMMSS(+|-)HH( )MM (GeneralizedTime, for dates 2050 and later) -// YYMMDDHHMMSS(+|-)HH( )MM (UTCTime, for dates up to 2049) -function UTC_Time_Decode(UCTtime : PASN1_UTCTIME; var year, month, day, hour, min, sec: Word; - var tz_hour, tz_min: Integer): Integer; -var - i, tz_dir, index: Integer; - time_str: string; - {$IFNDEF USE_MARSHALLED_PTRS} - {$IFNDEF STRING_IS_ANSI} - LTemp: AnsiString; - {$ENDIF} - {$ENDIF} -begin - Result := 0; - if UCTtime^.length < 12 then begin - Exit; - end; - {$IFDEF USE_MARSHALLED_PTRS} - time_str := TMarshal.ReadStringAsAnsi(TPtrWrapper.Create(UCTtime^.data), UCTtime^.length); - {$ELSE} - {$IFDEF STRING_IS_ANSI} - SetString(time_str, UCTtime^.data, UCTtime^.length); - {$ELSE} - SetString(LTemp, UCTtime^.data, UCTtime^.length); - // TODO: do we need to use SetCodePage() here? - time_str := String(LTemp); // explicit convert to Unicode - {$ENDIF} - {$ENDIF} - // Check if first 14 chars (4-digit year) are numbers - if (Length(time_str) >= 14) and IsNumeric(time_str, 14) then begin - // Convert time from string to number - year := IndyStrToInt(Copy(time_str, 1, 4)); - month := IndyStrToInt(Copy(time_str, 5, 2)); - day := IndyStrToInt(Copy(time_str, 7, 2)); - hour := IndyStrToInt(Copy(time_str, 9, 2)); - min := IndyStrToInt(Copy(time_str, 11, 2)); - sec := IndyStrToInt(Copy(time_str, 13, 2)); - index := 15; - end - // Check if first 12 chars (2-digit year) are numbers - else if (Length(time_str) >= 12) and IsNumeric(time_str, 12) then begin - // Convert time from string to number - year := IndyStrToInt(Copy(time_str, 1, 2)) + 1900; - month := IndyStrToInt(Copy(time_str, 3, 2)); - day := IndyStrToInt(Copy(time_str, 5, 2)); - hour := IndyStrToInt(Copy(time_str, 7, 2)); - min := IndyStrToInt(Copy(time_str, 9, 2)); - sec := IndyStrToInt(Copy(time_str, 11, 2)); - // Fix year. This function is Y2k but isn't compatible with Y2k5 :-( {Do not Localize} - if year < 1950 then begin - Inc(year, 100); - end; - index := 13; - end else begin - Exit; - end; - // Check TZ - tz_hour := 0; - tz_min := 0; - if CharIsInSet(time_str, index, '-+') then begin {Do not Localize} - tz_dir := iif(CharEquals(time_str, index, '-'), -1, 1); {Do not Localize} - for i := index+1 to index+5 do begin // Check if numbers are numbers - if i = index+3 then begin - Continue; - end; - if not IsNumeric(time_str[i]) then begin - Exit; - end; - end; - tz_hour := IndyStrToInt(Copy(time_str, index+1, 2)) * tz_dir; - tz_min := IndyStrToInt(Copy(time_str, index+4, 2)) * tz_dir; - end; - Result := 1; -end; - -function SSL_set_app_data(s: PSSL; arg: Pointer): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_set_ex_data(s, 0, arg); -end; - -function SSL_get_app_data(s: PSSL): Pointer; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_get_ex_data(s, 0); -end; - -procedure InitializeRandom; -begin - {$IFDEF SYS_WIN} - if Assigned(_RAND_screen) then begin - _RAND_screen; - end; - {$ENDIF} -end; - -procedure CleanupRandom; -begin - if Assigned(_RAND_cleanup) then begin - _RAND_cleanup; - end; -end; - -function M_ASN1_STRING_length(x : PASN1_STRING): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := x^.length; -end; - -procedure M_ASN1_STRING_length_set(x : PASN1_STRING; n : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - x^.length := n; -end; - -function M_ASN1_STRING_type(x : PASN1_STRING) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := x^._type; -end; - -function M_ASN1_STRING_data(x : PASN1_STRING) : PIdAnsiChar; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := x^.data; -end; - -function X509_NAME_dup(xn : PX509_NAME) : PX509_NAME; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := ASN1_dup(i2d_of_Void(i2d_X509_NAME), d2i_of_void(d2i_X509_NAME), PIdAnsiChar(xn) ); -end; - -function X509_STORE_CTX_get_app_data(ctx: PX509_STORE_CTX):Pointer; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - // TODO: use SSL_get_ex_data_X509_STORE_CTX_idx() instead of 0 to get the true index of the SSL pointer - Result := X509_STORE_CTX_get_ex_data(ctx, 0); -end; - -function X509_get_version(x : PX509): TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := ASN1_INTEGER_get(x^.cert_info^.version); -end; - -function X509_get_signature_type(x : PX509) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -{ -http://groups.google.com/group/mailing.openssl.dev/browse_thread/thread/c1ab56fc4fb7af6a/98a2e94fe893aecf?lnk=st&q=X509_get_signature_type+&rnum=1&hl=en#98a2e94fe893aecf - -Austin Krauss via RT wrote: - -> D:\openssl-0.9.7b\out32dll\Release>openssl version -a -> OpenSSL 0.9.7b 10 Apr 2003 -> built on: date not available -> platform: information not available -> options: bn(64,32) md2(int) rc4(idx,int) des(idx,cisc,4,long) idea(int) blowfish(idx) -> compiler: information not available -> OPENSSLDIR: "/usr/local/ssl" - -> Windows 2000 SP3 x86 -> Visual C++ 6.0 SP5 - -> I'm running into a problem parsing the certificate that I've recieved from the peer. I'm trying to call X509_get_signature_type(...) to get the key algorithm used. After I went through this function with the debugger, I'm finding that "NID_sha1WithRSAEncryption" (which is correct by the way) is getting passed to EVP_PKEY_type(...). It seems as if there is not a EVP constant that maps to this particular NID and thus EVP_PKEY_type is returning NID_undef to my function. - -As a addition to: -http://marc.theaimsgroup.com/?l=openssl-users&m=105074607225189&w=2 -I would suggest that X509_get_signature_type(x) should -be changed to 'OBJ_obj2nid((x)->sig_alg->algorithm' (i.e. remove -the call to EVP_PKEY_type()) because currently this macro -returns the type of the key used for the signature generation -and *not* the type of the signature (i.e. key alg + hash alg). -The other solution would be to change EVP_PKEY_type() to -include the other RSA OIDs as well (from the usage of this macro -in OpenSSL the second alternative is simpler to implement, but -in this case the name of the macro should better be changed to -X509_get_signature_key_type() :-). - -Regards, -Nils -} -begin - Assert(x<>nil); - Result := EVP_PKEY_type(OBJ_obj2nid(x.sig_alg.algorithm)); -end; - -function X509_REQ_get_subject_name(x:PX509_REQ):PX509_NAME; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Assert(x<>nil); - Result := x^.req_info^.subject; -end; - -//function X509_get_notBefore(x509: PX509):PASN1_UTCTIME; -function X509_get_notBefore(x509: PX509):PASN1_TIME; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Assert(x509<>nil); - Result := x509.cert_info.validity.notBefore; -end; - -//function X509_get_notAfter(x509: PX509):PASN1_UTCTIME; -function X509_get_notAfter(x509: PX509):PASN1_TIME; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Assert(x509<>nil); - Result := x509.cert_info.validity.notAfter; -end; - -function X509_REQ_get_version(x : PX509_REQ): TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := ASN1_INTEGER_get(x^.req_info^.version); -end; - -function X509_CRL_get_version(x : PX509_CRL) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := ASN1_INTEGER_get(x^.crl^.version); -end; - -function X509_CRL_get_lastUpdate(x : PX509_CRL) : PASN1_TIME; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := x^.crl^.lastUpdate; -end; - -function X509_CRL_get_nextUpdate(x : PX509_CRL) : PASN1_TIME; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := x^.crl^.nextUpdate; -end; - -function X509_CRL_get_issuer(x : PX509_CRL) : PX509_NAME; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := x^.crl^.issuer -end; - -function X509_CRL_get_REVOKED(x : PX509_CRL) : PSTACK_OF_X509_REVOKED; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := x^.crl^.revoked; -end; - -procedure SSL_CTX_set_info_callback(ctx: PSSL_CTX; cb: PSSL_CTX_info_callback); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Assert(ctx<>nil); - ctx.info_callback := cb; -end; - -//* Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value, -// * they cannot be used to clear bits. */ - -function SSL_CTX_set_options(ctx: PSSL_CTX; op: TIdC_LONG):TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, op, nil); -end; - -function SSL_CTX_clear_options(ctx : PSSL_CTX; op : TIdC_LONG):TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_OPTIONS,op,nil); -end; - -function SSL_CTX_get_options(ctx: PSSL_CTX) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS,0,nil); -end; - -function SSL_set_options(ssl: PSSL; op : TIdC_LONG): TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_OPTIONS,op,nil); -end; - -function SSL_clear_mode(ssl : PSSL; op : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_CLEAR_MODE,op,nil); -end; - -function SSL_get_options(ssl : PSSL): TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_OPTIONS,0,nil); -end; - -function SSL_CTX_set_mode(ctx : PSSL_CTX; op : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_MODE, op,nil); -end; - -function SSL_CTX_clear_mode(ctx : PSSL_CTX; op : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_MODE,op,nil); -end; - -function SSL_CTX_get_mode(ctx : PSSL_CTX) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_MODE,0,nil); -end; - -function SSL_set_mtu(ssl : PSSL; mtu : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_SET_MTU, mtu, nil); -end; - -function SSL_get_secure_renegotiation_support(ssl : PSSL) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_GET_RI_SUPPORT, 0, nil); -end; -// - -function SSL_CTX_sess_number(ctx : PSSL_CTX) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_NUMBER,0,nil); -end; - -function SSL_CTX_sess_connect(ctx : PSSL_CTX) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_CONNECT, 0,nil); -end; - -function SSL_CTX_sess_connect_good(ctx : PSSL_CTX): TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_CONNECT_GOOD, 0, nil); -end; - -function SSL_CTX_sess_connect_renegotiate(ctx : PSSL_CTX): TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_CONNECT_RENEGOTIATE, 0, nil); -end; - -function SSL_CTX_sess_accept(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_ACCEPT, 0, nil); -end; - -function SSL_CTX_sess_accept_renegotiate(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_ACCEPT_RENEGOTIATE, 0, nil); -end; - -function SSL_CTX_sess_accept_good(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_ACCEPT_GOOD, 0, nil); -end; - -function SSL_CTX_sess_hits(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_HIT, 0, nil); -end; - -function SSL_CTX_sess_cb_hits(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_CB_HIT, 0, nil); -end; - -function SSL_CTX_sess_misses(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_MISSES, 0, nil); -end; - -function SSL_CTX_sess_timeouts(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_TIMEOUTS, 0, nil); -end; - -function SSL_CTX_sess_cache_full(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SESS_CACHE_FULL, 0, nil); -end; - -function SSL_CTX_sess_set_cache_size(ctx : PSSL_CTX; t : TIdC_LONG) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SESS_CACHE_SIZE, t, nil); -end; - -function SSL_CTX_sess_get_cache_size(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_SESS_CACHE_SIZE, 0, nil); -end; - -function SSL_CTX_set_session_cache_mode(ctx : PSSL_CTX; m : TIdC_LONG) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SESS_CACHE_MODE, m, nil); -end; - -function SSL_CTX_get_session_cache_mode(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_SESS_CACHE_MODE, 0, nil); -end; - -function SSL_CTX_get_read_ahead(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_READ_AHEAD,0,nil); -end; - -function SSL_CTX_set_read_ahead(ctx : PSSL_CTX; m : TIdC_LONG) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_READ_AHEAD, m,nil); -end; - -function SSL_CTX_get_max_cert_list(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MAX_CERT_LIST,0,nil); -end; - -function SSL_CTX_set_max_cert_list(ctx : PSSL_CTX; m : TIdC_LONG) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MAX_CERT_LIST,m,nil); -end; - -function SSL_get_max_cert_list(ssl : PSSL) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_GET_MAX_CERT_LIST, 0, nil); -end; - -function SSL_set_max_cert_list(ssl : PSSL; m : TIdC_LONG) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_SET_MAX_CERT_LIST, m, nil); -end; - -function SSL_CTX_set_max_send_fragment(ctx : PSSL_CTX; m : TIdC_LONG) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,nil); -end; - -function SSL_set_max_send_fragment(ssl : PSSL; m : TIdC_LONG) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,nil); -end; - -function DTLSv1_get_timeout(ssl : PSSL; var arg : timeval) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0, @arg); -end; - -function DTLSv1_handle_timeout(ssl : PSSL) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,DTLS_CTRL_HANDLE_TIMEOUT,0, nil); -end; - -function DTLSv1_listen(ssl : PSSL; var peer : sockaddr) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,DTLS_CTRL_LISTEN,0, @peer); -end; - -function SSL_session_reused(ssl : PSSL) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_GET_SESSION_REUSED,0,nil); -end; - -function SSL_num_renegotiations(ssl : PSSL) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_GET_NUM_RENEGOTIATIONS,0,nil); -end; - -function SSL_clear_num_renegotiations(ssl : PSSL) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS,0,nil); -end; - -function SSL_total_renegotiations(ssl : PSSL) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_GET_TOTAL_RENEGOTIATIONS,0,nil); -end; - -function SSL_CTX_need_tmp_RSA(ctx : PSSL_CTX) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_NEED_TMP_RSA,0,nil); -end; - -function SSL_CTX_set_tmp_rsa(ctx : PSSL_CTX; rsa : PRSA) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_RSA,0,rsa); -end; - -function SSL_CTX_set_tmp_dh(ctx : PSSL_CTX; dh : PDH) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,dh); -end; - -function SSL_CTX_set_tmp_ecdh(ctx : PSSL_CTX; ecdh : PEC_KEY) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,ecdh); -end; - -function SSL_CTX_set_ecdh_auto(ctx : PSSL_CTX; m : TIdC_LONG) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_SET_ECDH_AUTO,m,nil); -end; - -function SSL_need_tmp_RSA(ssl : PSSL) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_NEED_TMP_RSA,0,nil); -end; - -procedure SSL_set_tmp_rsa(ssl : PSSL; rsa : PRSA); - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - SSL_ctrl(ssl,SSL_CTRL_SET_TMP_RSA,0,rsa); -end; - -function SSL_set_tmp_dh(ssl : PSSL;dh : PDH) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,dh); -end; - -function SSL_set_tmp_ecdh(ssl : PSSL; ecdh : PEC_KEY) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,ecdh); -end; - -{$IFNDEF OPENSSL_NO_TLSEXT} -function SSL_set_tlsext_host_name(s : PSSL; name : string) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -{$IFDEF USE_MARSHALLED_PTRS} -var - M: TMarshaller; -{$ENDIF} -begin - Result := SSL_ctrl(s, SSL_CTRL_SET_TLSEXT_HOSTNAME, TLSEXT_NAMETYPE_host_name, - {$IFDEF USE_MARSHALLED_PTRS} - M.AsAnsi(name).ToPointer - {$ELSE} - PAnsiChar( - {$IFDEF STRING_IS_ANSI} - name - {$ELSE} - AnsiString(name) // explicit convert to Ansi - {$ENDIF} - ) - {$ENDIF} - ); -end; - -function SSL_set_tlsext_debug_callback(ssl : PSSL; cb : SSL_callback_ctrl_fp) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - if Assigned(SSL_callback_ctrl) then begin - Result := SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,cb); - end else begin - Result := ssl.method.ssl_callback_ctrl(ssl, SSL_CTRL_SET_TLSEXT_DEBUG_CB, SSL_METHOD_PROC(cb)); - end; -end; - -function SSL_set_tlsext_debug_arg(ssl : PSSL; arg : Pointer) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg); -end; - -function SSL_set_tlsext_status_type(ssl : PSSL; _type : TIdC_LONG):TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,_type,nil); -end; - -function SSL_get_tlsext_status_exts(ssl : PSSL; arg : Pointer): TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS,0,arg); -end; - -function SSL_set_tlsext_status_exts(ssl : PSSL; arg : Pointer):TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS, 0, arg); -end; - -function SSL_get_tlsext_status_ids(ssl : PSSL; arg : Pointer) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS,0, arg); -end; - -function SSL_set_tlsext_status_ids(ssl : PSSL; arg : Pointer) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS,0,arg); -end; - -function SSL_get_tlsext_status_ocsp_resp(ssl : PSSL; arg : Pointer) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP,0,arg); -end; - -function SSL_set_tlsext_status_ocsp_resp(ssl : PSSL; arg : Pointer; arglen : TIdC_LONG) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP,arglen,arg); -end; - -function SSL_CTX_set_tlsext_servername_callback(ctx : PSSL_CTX; cb :SSL_callback_ctrl_fp):TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_callback_ctrl(ctx, SSL_CTRL_SET_TLSEXT_SERVERNAME_CB, cb); -end; - -function SSL_CTX_get_tlsext_ticket_keys(ctx : PSSL_CTX; keys : PIdAnsiChar; keylen : TIdC_LONG ) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_GET_TLSEXT_TICKET_KEYS, keylen, keys); -end; - -function SSL_CTX_set_tlsext_status_cb(ssl : PSSL_CTX; cb : TSSL_CTX_set_tlsext_status_cb) :TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB,SSL_callback_ctrl_fp(cb)); -end; - -function SSL_set_tlsext_opaque_prf_input(s : PSSL; src : PIdAnsiChar; len : TIdC_LONG ) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT, len, src) -end; - -function SSL_CTX_set_tlsext_opaque_prf_input_callback(ctx : PSSL_CTX; cb : TSSL_CTX_set_tlsext_opaque_prf_input_callback_cb) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB, SSL_callback_ctrl_fp(cb)); -end; - -function SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(ctx : PSSL_CTX; arg : Pointer) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB_ARG, 0, arg); -end; - -function SSL_CTX_set_tlsext_ticket_key_cb(ssl : PSSL_CTX; cb : TSSL_CTX_set_tlsext_ticket_key_cb_fp) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,SSL_callback_ctrl_fp(cb)); -end; - -function SSL_CTX_add_extra_chain_cert(ctx : PSSL_CTX; x509 : PX509) : TIdC_LONG; - {$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,x509); -end; - -function SSL_CTX_get_extra_chain_certs(ctx : PSSL_CTX; var px509 : px509) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,0,px509); -end; - -function SSL_CTX_get_extra_chain_certs_only(ctx: PSSL_CTX;var PX509 :PX509) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,1,px509); -end; - -function SSL_CTX_clear_extra_chain_certs(ctx : PSSL_CTX) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS,0,nil); -end; - -function SSL_CTX_set0_chain(ctx:PSSL_CTX; sk : PSTACK_OF_X509) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,0,sk); -end; - -function SSL_CTX_set1_chain(ctx:PSSL_CTX; sk : PSTACK_OF_X509) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,1,sk); -end; - -function SSL_CTX_add0_chain_cert(ctx : PSSL_CTX; x509 : PX509) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,0,x509); -end; - -function SSL_CTX_add1_chain_cert(ctx : PSSL_CTX; x509 : PX509) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,1,x509); -end; - -function SSL_CTX_get0_chain_certs(ctx :PSSL_CTX; var px509 :PX509) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_ctrl(ctx,SSL_CTRL_GET_CHAIN_CERTS,0,px509) -end; - -function SSL_CTX_clear_chain_certs(ctx :PSSL_CTX) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_set0_chain(ctx,nil); -end; - -{$ifndef OPENSSL_NO_HEARTBEATS} -function SSL_heartbeat(ssl : PSSL) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_TLS_EXT_SEND_HEARTBEAT,0,nil); -end; - -function SSL_get_tlsext_heartbeat_pending(ssl : PSSL) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_GET_TLS_EXT_HEARTBEAT_PENDING,0,nil); -end; - -function SSL_set_tlsext_heartbeat_no_requests(ssl : PSSL; arg : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_ctrl(ssl,SSL_CTRL_SET_TLS_EXT_HEARTBEAT_NO_REQUESTS,arg,nil); -end; -{$endif} -{$ENDIF} - -function TLS1_get_version(s : PSSL) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - if (s.version shr 8) = TLS1_VERSION_MAJOR then - Result := s.version - else - Result := 0; -end; - -function TLS1_get_client_version(s : PSSL) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - if s.client_version shr 8 = TLS1_VERSION_MAJOR then - Result := s.client_version - else - Result := 0; -end; - -function SSL_CTX_get_version(ctx: PSSL_CTX):TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Assert(ctx<>nil); - Result := ctx^.method^.version; -end; - -//* BIO_s_connect() and BIO_s_socks4a_connect() */ - -function BIO_set_conn_hostname(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_CONNECT,0,name); -end; - -function BIO_set_conn_port(b : PBIO; port : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_CONNECT,1,port); -end; - -function BIO_set_conn_ip(b : PBIO; ip : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_CONNECT,2,ip); -end; - -function BIO_set_conn_int_port(b : PBIO; port : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_CONNECT,3,port); -end; - -function BIO_get_conn_hostname(b : PBIO) : PIdAnsiChar; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0); -end; - -function BIO_get_conn_port(b : PBIO) : PIdAnsiChar; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1); -end; - -function BIO_get_conn_ip(b : PBIO) : PIdAnsiChar; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2); -end; - -function BIO_get_conn_int_port(b : PBIO) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_int_ctrl(b,BIO_C_GET_CONNECT,3,0); -end; - -function BIO_set_nbio(b : PBIO; n : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_NBIO,n,nil); -end; - -//* BIO_s_accept_socket() */ -function BIO_set_accept_port(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_ACCEPT,0,name); -end; - -function BIO_get_accept_port(b : PBIO) : PIdAnsiChar; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0); -end; - -//* #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */ -function BIO_set_nbio_accept(b : PBIO; n : TIdC_INT) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -var - a: array[0..1] of TIdAnsiChar; -begin - if n <> 0 then begin - a[0] := TIdAnsiChar('a'); - a[1] := TIdAnsiChar(#0); - Result := BIO_ctrl(b, BIO_C_SET_ACCEPT, 1, @a[0]); - end else begin - Result := BIO_ctrl(b, BIO_C_SET_ACCEPT, 1, nil); - end; -end; - -function BIO_set_accept_bios(b : PBIO; bio : PBIO) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_ACCEPT, 2, bio); -end; - -function BIO_set_bind_mode(b : PBIO; mode : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,nil); -end; - -function BIO_get_bind_mode(b : PBIO; mode : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,nil); -end; - -function BIO_do_handshake(b : PBIO) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,nil); -end; - -function BIO_do_connect(b : PBIO) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_do_handshake(b); -end; - -function BIO_do_accept(b : PBIO) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_do_handshake(b) -end; - -//* BIO_s_proxy_client() */ -function BIO_set_url(b : PBIO; url : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b, BIO_C_SET_PROXY_PARAM,0,url); -end; - -function BIO_set_proxies(b : PBIO; p : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,1,p); -end; - -//* BIO_set_nbio(b,n) */ -function BIO_set_filter_bio(b : PBIO; s : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,2,s); -end; - -//* BIO *BIO_get_filter_bio(BIO *bio); */ -//function BIO_set_proxy_cb(b : PBIO,cb) : TIdC_LONG; -//begin -//BIO_callback_ctrl(b,BIO_C_SET_PROXY_PARAM,3,(void *(*cb)())) -//end; - -function BIO_set_proxy_header(b : PBIO; sk : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,4,sk); -end; - -function BIO_set_no_connect_return(b : PBIO; b2 : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_int_ctrl(b,BIO_C_SET_PROXY_PARAM,5,b2); -end; - -function BIO_get_proxy_header(b : PBIO; var skp : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,0,@skp); -end; - -function BIO_get_proxies(b : PBIO; var pxy_p : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,1,@pxy_p); -end; - -function BIO_get_url(b : PBIO; var url : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,2,@url); -end; - -function BIO_get_no_connect_return(b : PBIO) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,5,nil); -end; - -function BIO_set_fd(b : PBIO; fd,c : TIdC_INT) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_int_ctrl(b,BIO_C_SET_FD,c,fd); -end; - -function BIO_get_fd(b : PBIO; c : PIdC_INT) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_FD,0,c); -end; - -//function BIO_set_fp(b : PBIO; fp : Pointer; c : TIdC_LONG) : TIdC_LONG; -//{$IFDEF USE_INLINE} inline; {$ENDIF} -//begin -// Result := BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,fp); -//end; - -//function BIO_get_fp(b : PBIO; out fpp : Pointer) : TIdC_LONG; -//{$IFDEF USE_INLINE} inline; {$ENDIF} -//begin -// Result := BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,@fpp); -//end; - -function BIO_seek(b : PBIO; ofs : TIdC_LONG) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,nil); -end; - -function BIO_tell(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_FILE_TELL,0,nil); -end; - -//* name is cast to lose const, but might be better to route through a function -// so we can do it safely */ -{$IFDEF CONST_STRICT} -///* If you are wondering why this isn't defined, its because CONST_STRICT is -// * purely a compile-time kludge to allow const to be checked. -// */ -//int BIO_read_filename(BIO *b,const char *name); -{$ELSE} -function BIO_read_filename(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_FILENAME, BIO_CLOSE or BIO_FP_READ,name); -end; -{$ENDIF} - -function BIO_write_filename(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_FILENAME, BIO_CLOSE or BIO_FP_WRITE,name); -end; - -function BIO_append_filename(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_FILENAME, BIO_CLOSE or BIO_FP_APPEND,name); -end; - -function BIO_rw_filename(b : PBIO; name : PIdAnsiChar) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_FILENAME, BIO_CLOSE or BIO_FP_READ or BIO_FP_WRITE,name); -end; - -///* WARNING WARNING, this ups the reference count on the read bio of the -// * SSL structure. This is because the ssl read BIO is now pointed to by -// * the next_bio field in the bio. So when you free the BIO, make sure -// * you are doing a BIO_free_all() to catch the underlying BIO. */ -function BIO_set_ssl(b : PBIO; ssl : PSSL; c : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_SSL,c,ssl); -end; - -function BIO_get_ssl(b : PBIO; var sslp : PSSL) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_SSL,0,@sslp); -end; - -function BIO_set_ssl_mode(b : PBIO; client : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SSL_MODE,client,nil); -end; - -function BIO_set_ssl_renegotiate_bytes(b : PBIO; num : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,nil); -end; - -function BIO_get_num_renegotiates(b : PBIO) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,nil); -end; - -function BIO_set_ssl_renegotiate_timeout(b : PBIO; seconds : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,nil); -end; - -function BIO_get_mem_data(b : PBIO; var pp : PIdAnsiChar) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_CTRL_INFO,0,@pp); -end; - -function BIO_set_mem_buf(b : PBIO; bm : PBUF_MEM; c : TIdC_INT) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b, BIO_C_SET_BUF_MEM, c, bm); -end; - -function BIO_get_mem_ptr(b: PBIO; var pp: PBUF_MEM) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b, BIO_C_GET_BUF_MEM_PTR, 0, @pp); -end; - -procedure BIO_set_mem_eof_return(b : PBIO; const v : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,nil); -end; - -//* For the BIO_f_buffer() type */ -function BIO_get_buffer_num_lines(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,nil); -end; - -procedure BIO_set_buffer_size(b : PBIO; const size : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,nil); -end; - -//* Don't use the next one unless you know what you are doing :-) */ -function BIO_dup_state(b : PBIO; ret : PBIO) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_CTRL_DUP,0,ret); -end; - -function BIO_reset(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_CTRL_RESET,0,nil); -end; - -function BIO_eof(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_CTRL_EOF,0,nil); -end; - -function BIO_set_close(b: PBIO; c: TIdC_LONG): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b, BIO_CTRL_SET_CLOSE, c, nil); -end; - -function BIO_get_close(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b, BIO_CTRL_GET_CLOSE, 0, nil); -end; - -function BIO_pending(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_CTRL_PENDING,0,nil); -end; - -function BIO_wpending(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_CTRL_WPENDING,0,nil); -end; - -function BIO_flush(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_CTRL_FLUSH,0,nil); -end; - -//* For the BIO_f_buffer() type */ -function BIO_buffer_get_num_lines(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_CTRL_GET,0,nil); -end; - -function BIO_get_info_callback(b : PBIO; var cbp : Pbio_info_cb) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, @cbp); -end; - -function BIO_set_info_callback(b : PBIO; cb : Pbio_info_cb) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb); -end; - -//* For BIO_s_bio() */ -//function(bp : PBIO; cmd : TIdC_INT; larg : TIdC_LONG; iArg : TIdC_INT) : TIdC_LONG cdecl = nil; -//BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0) -function BIO_set_read_buffer_size(b : PBIO; size : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0); -end; - -function BIO_set_write_buffer_size(b : PBIO; size : TIdC_LONG) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1); -end; - -//#define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2) -function BIO_make_bio_pair(b1, b2 : PBIO ): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2); -end; - -//#define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL) -function BIO_destroy_bio_pair(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,nil); -end; - -//#define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL) -function BIO_shutdown_wr(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, nil); -end; - -///* macros with inappropriate type -- but ...pending macros use int too: */ -//#define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL) -function BIO_get_write_guarantee(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,nil); -end; - -//#define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL) -function BIO_get_read_request(b : PBIO) : TIdC_INT; -begin - Result := BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,nil); -end; - -//* ctrl macros for dgram */ -function _BIO_ctrl_dgram_connect(b : PBIO; peer : Sockaddr) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0,@peer); -end; - -function BIO_ctrl_set_connected(b : PBIO; state : TIdC_INT; peer : Sockaddr) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, state, @peer); -end; - -function BIO_dgram_recv_timedout(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, nil); -end; - -function BIO_dgram_send_timedout(b : PBIO) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, nil); -end; - -function BIO_dgram_get_peer(b : PBIO; peer : PSockAddr) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, peer); -end; - -function BIO_dgram_set_peer(b : PBIO; peer : PSockAddr) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, peer); -end; - -{$IFDEF SSLEAY_MACROS} -//You should do the PEM_read_bio and PEM_write_bio functions like this -//because OpenSSL has a define for either using Macros or the native -//functions. - -function PEM_read_bio_X509(bp: PBIO; x: PPX509; cb: ppem_password_cb; u: Pointer): PX509; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := PEM_ASN1_read_bio(d2i_of_void(d2i_X509), PEM_STRING_X509, bp, PPointer(x), cb, u); -end; - -function PEM_read_bio_X509_REQ(bp :PBIO; x : PPX509_REQ; cb :ppem_password_cb; u: Pointer) : PX509_REQ; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := PEM_ASN1_read_bio(d2i_of_void(d2i_X509_REQ),PEM_STRING_X509_REQ,bp, Pointer(x), cb, u); -end; - -function PEM_read_bio_X509_CRL(bp : PBIO; x : PPX509_CRL;cb : ppem_password_cb; u: Pointer) : PX509_CRL; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := PEM_ASN1_read_bio(d2i_of_void(d2i_X509_CRL), PEM_STRING_X509_CRL, bp, Pointer(x), cb, u); -end; - -function PEM_read_bio_RSAPrivateKey(bp : PBIO; x : PPRSA; cb : ppem_password_cb; u: Pointer) : PRSA; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := PEM_ASN1_read_bio(d2i_of_void(d2i_RSAPrivateKey), PEM_STRING_RSA, bp, Pointer(x), cb, u); -end; - -function PEM_read_bio_RSAPublicKey(bp : PBIO; x : PPRSA; cb : ppem_password_cb; u: Pointer) : PRSA; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := PEM_ASN1_read_bio(d2i_of_void(d2i_RSAPublicKey),PEM_STRING_RSA_PUBLIC, bp, Pointer(x),cb, u); -end; - -function PEM_read_bio_DSAPrivateKey(bp : PBIO; x : PPDSA; cb : ppem_password_cb; u : Pointer) : PDSA; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := PEM_ASN1_read_bio( d2i_of_void(d2i_DSAPrivateKey),PEM_STRING_DSA,bp,Pointer(x),cb,u); -end; - -function PEM_read_bio_PrivateKey(bp : PBIO; x : PPEVP_PKEY; cb : ppem_password_cb; u : Pointer) : PEVP_PKEY; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := PEM_ASN1_read_bio( d2i_of_void(d2i_PrivateKey), PEM_STRING_EVP_PKEY, bp, Pointer(x),cb, u); -end; - -function PEM_read_bio_PKCS7(bp : PBIO; x : PPPKCS7; cb : ppem_password_cb; u : Pointer) : PPKCS7; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := PEM_ASN1_read_bio( d2i_of_void(d2i_PKCS7), PEM_STRING_PKCS7,bp,Pointer(x),cb, u); -end; - -function PEM_read_bio_DHparams(bp : PBIO; x : PPDH; cb : ppem_password_cb; u : Pointer) : PDH; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := PEM_ASN1_read_bio(d2i_of_void(d2i_DHparams),PEM_STRING_DHPARAMS,bp,Pointer(x),cb,u); -end; - -function PEM_read_bio_DSAparams(bp : PBIO; x : PPDSA; cb : ppem_password_cb; u : Pointer) : PDSA; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := PEM_ASN1_read_bio( d2i_of_void(d2i_DSAparams),PEM_STRING_DSAPARAMS,bp,Pointer(x),cb,u); -end; - -function PEM_read_bio_NETSCAPE_CERT_SEQUENCE(bp : PBIO; x : PPNETSCAPE_CERT_SEQUENCE; - cb : ppem_password_cb; u : Pointer) : PNETSCAPE_CERT_SEQUENCE; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := PEM_ASN1_read_bio( d2i_of_void(d2i_NETSCAPE_CERT_SEQUENCE),PEM_STRING_X509,bp,Pointer(x),cb, u); -end; - -function PEM_read_bio_PUBKEY(bp : PBIO; x: PPEVP_PKEY; cb: ppem_password_cb; u: Pointer): PEVP_PKEY; -begin - Result := PEM_ASN1_read_bio( d2i_of_void(d2i_PUBKEY),PEM_STRING_PUBLIC,bp,Pointer(x),cb, u); -end; - -function PEM_write_bio_X509(bp: PBIO; x: PX509): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Assert(bp<>nil); - Assert(x<>nil); - Result := PEM_ASN1_write_bio( i2d_of_void(i2d_X509), PEM_STRING_X509, bp, PIdAnsiChar(x), nil, nil, 0, nil, nil); - Assert(Result<>0); -end; - -function PEM_write_bio_X509_REQ(bp: PBIO; x: PX509_REQ): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Assert(bp<>nil); - Assert(x<>nil); - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_X509_REQ), PEM_STRING_X509_REQ, bp, PIdAnsiChar(x), nil, nil, 0, nil, nil); - Assert(Result<>0); -end; - -function PEM_write_bio_X509_CRL(bp : PBIO; x : PX509_CRL) : TIdC_INT; -begin - Assert(bp<>nil); - Assert(x<>nil); - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_X509_CRL), PEM_STRING_X509_CRL, bp, PIdAnsiChar(x), nil, nil, 0, nil, nil); - Assert(Result<>0); -end; - -function PEM_write_bio_RSAPrivateKey(bp : PBIO; x : PRSA; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : ppem_password_cb; u : POinter) : TIdC_INT; -begin - Assert(bp<>nil); - Assert(x<>nil); - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_RSAPrivateKey), PEM_STRING_RSA, bp, PIdAnsiChar(x), enc,kstr,klen,cb,u); - Assert(Result<>0); -end; - -function PEM_write_bio_RSAPublicKey(bp : PBIO; x : PRSA) : TIdC_INT; -begin - Assert(bp<>nil); - Assert(x<>nil); - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_RSAPublicKey), PEM_STRING_RSA_PUBLIC, bp, PIdAnsiChar(x), nil, nil, 0, nil, nil); - Assert(Result<>0); -end; - -function PEM_write_bio_DSAPrivateKey( bp : PBIO; x : PDSA; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : Ppem_password_cb; u : Pointer) : TIdC_INT; -begin - Assert(bp<>nil); - Assert(x<>nil); - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_DSAPrivateKey), PEM_STRING_DSA, bp, PIdAnsiChar(x), enc,kstr,klen,cb,u); - Assert(Result<>0); -end; - -function PEM_write_bio_PrivateKey(bp : PBIO; x : PEVP_PKEY; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : Ppem_password_cb; u : Pointer) : TIdC_INT; -begin - Assert(bp<>nil); - Assert(x<>nil); - if x^._type = EVP_PKEY_DSA then begin - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_PrivateKey),PEM_STRING_DSA,bp, Pointer(x),enc,kstr,klen,cb,u); - end else begin - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_PrivateKey),PEM_STRING_RSA,bp, Pointer(x),enc,kstr,klen,cb,u); - end; - Assert(Result<>0); -end; - -function PEM_write_bio_PKCS7(bp : PBIO; x : PPKCS7) : TIdC_INT; -begin - Assert(bp<>nil); - Assert(x<>nil); - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_PKCS7), PEM_STRING_PKCS7, bp, PIdAnsiChar(x), nil, nil, 0, nil, nil); - Assert(Result<>0); -end; - -function PEM_write_bio_DHparams(bp : PBIO; x : PDH): TIdC_INT; -begin - Assert(bp<>nil); - Assert(x<>nil); - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_DHparams), PEM_STRING_DHPARAMS, bp, PIdAnsiChar(x), nil, nil, 0, nil, nil); - Assert(Result<>0); -end; - -function PEM_write_bio_DSAparams(bp : PBIO; x : PDSA) : TIdC_INT; -begin - Assert(bp<>nil); - Assert(x<>nil); - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_DSAparams), PEM_STRING_DSAPARAMS, bp, PIdAnsiChar(x), nil, nil, 0, nil, nil); - Assert(Result<>0); -end; - -function PEM_write_bio_NETSCAPE_CERT_SEQUENCE(bp : PBIO; x : PDSA) : TIdC_INT; -begin - Assert(bp<>nil); - Assert(x<>nil); - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_NETSCAPE_CERT_SEQUENCE), PEM_STRING_X509, bp, PIdAnsiChar(x), nil, nil, 0, nil, nil); - Assert(Result<>0); -end; - -function PEM_write_bio_PUBKEY(bp: PBIO; x : PEVP_PKEY): TIdC_INT; -begin - Assert(bp<>nil); - Assert(x<>nil); - Result := PEM_ASN1_write_bio(i2d_of_void(i2d_PUBKEY), PEM_STRING_PUBLIC, bp, PIdAnsiChar(x), nil, nil, 0, nil, nil); - Assert(Result<>0); -end; - -{$ELSE} - -function PEM_read_bio_X509(bp: PBIO; x: PPX509; cb: ppem_password_cb; u: Pointer): PX509; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_X509(bp, x, cb, u); -end; - -function PEM_read_bio_X509_REQ(bp :PBIO; x : PPX509_REQ; cb :ppem_password_cb; u: Pointer) : PX509_REQ; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_X509_REQ(bp, x, cb, u); -end; - -function PEM_read_bio_X509_CRL(bp : PBIO; x : PPX509_CRL;cb : ppem_password_cb; u: Pointer) : PX509_CRL; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_X509_CRL(bp, x, cb, u); -end; - -function PEM_read_bio_RSAPrivateKey(bp : PBIO; x : PPRSA; cb : ppem_password_cb; u: Pointer) : PRSA; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_RSAPrivateKey(bp, x, cb, u); -end; - -function PEM_read_bio_RSAPublicKey(bp : PBIO; x : PPRSA; cb : ppem_password_cb; u: Pointer) : PRSA; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_RSAPublicKey(bp, x, cb, u); -end; - -function PEM_read_bio_DSAPrivateKey(bp : PBIO; x : PPDSA; cb : ppem_password_cb; u : Pointer) : PDSA;{$IFDEF USE_INLINE} inline; {$ENDIF} -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_DSAPrivateKey(bp, x, cb, u); -end; - -function PEM_read_bio_PrivateKey(bp : PBIO; x : PPEVP_PKEY; cb : ppem_password_cb; u : Pointer) : PEVP_PKEY; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_PrivateKey(bp, x, cb, u); -end; - -function PEM_read_bio_PKCS7(bp : PBIO; x : PPPKCS7; cb : ppem_password_cb; u : Pointer) : PPKCS7; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_PKCS7(bp, x, cb, u); -end; - -function PEM_read_bio_DHparams(bp : PBIO; x : PPDH; cb : ppem_password_cb; u : Pointer) : PDH; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_DHparams(bp, x, cb, u); -end; - -function PEM_read_bio_DSAparams(bp : PBIO; x : PPDSA; cb : ppem_password_cb; u : Pointer) : PDSA; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_DSAparams(bp, x, cb, u); -end; - -function PEM_read_bio_NETSCAPE_CERT_SEQUENCE(bp : PBIO; x : PPNETSCAPE_CERT_SEQUENCE; - cb : ppem_password_cb; u : Pointer) : PNETSCAPE_CERT_SEQUENCE; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_NETSCAPE_CERT_SEQUENCE(bp, x, cb, u); -end; - -function PEM_read_bio_PUBKEY(bp : PBIO; x : PPEVP_PKEY; cb : ppem_password_cb; u : Pointer) : PEVP_PKEY; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_read_bio_PUBKEY(bp, x, cb, u); -end; - -function PEM_write_bio_X509(bp: PBIO; x: PX509): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_X509(bp, x); -end; - -function PEM_write_bio_X509_REQ(bp: PBIO; x: PX509_REQ): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_X509_REQ(bp, x); -end; - -function PEM_write_bio_X509_CRL(bp : PBIO; x : PX509_CRL) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_X509_CRL(bp, x); -end; - -function PEM_write_bio_RSAPublicKey(bp : PBIO; x : PRSA) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_RSAPublicKey(bp,x); -end; - -function PEM_write_bio_RSAPrivateKey(bp : PBIO; x : PRSA; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : ppem_password_cb; u : POinter) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_RSAPrivateKey(bp,x,enc,kstr,klen,cb, u); -end; - -function PEM_write_bio_DSAPrivateKey( bp : PBIO; x : PDSA; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : Ppem_password_cb; u : Pointer) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_DSAPrivateKey( bp, x, enc, kstr, klen, cb, u); -end; - -function PEM_write_bio_PrivateKey(bp : PBIO; x : PEVP_PKEY; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : Ppem_password_cb; u : Pointer) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_PrivateKey(bp,x, enc, kstr, klen, cb, u); -end; - -function PEM_write_bio_PKCS7(bp : PBIO; x : PPKCS7) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_PKCS7(bp, x); -end; - -function PEM_write_bio_DHparams(bp : PBIO; x : PDH): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_DHparams(bp, x); -end; - -function PEM_write_bio_DSAparams(bp : PBIO; x : PDSA) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_DSAparams(bp, x); -end; - -function PEM_write_bio_NETSCAPE_CERT_SEQUENCE(bp : PBIO; x : PDSA) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_NETSCAPE_CERT_SEQUENCE(bp, x); -end; - -function PEM_write_bio_PUBKEY(bp : PBIO; x : PEVP_PKEY): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := _PEM_write_bio_PUBKEY(bp, x); -end; - -{$ENDIF} - -function OPENSSL_malloc(aSize:TIdC_INT):Pointer; -{$IFDEF USE_INLINE} inline; {$ENDIF} -//can also use CRYPTO_mem_leaks(bio) -begin - Result := CRYPTO_malloc(aSize, - {$IFNDEF HAS_PAnsiChar} - @cNull - {$ELSE} - '' - {$ENDIF}, 0); -end; - -procedure CRYPTO_SetMemCheck(const aEnabled: Boolean); -{$IFDEF USE_INLINE} inline; {$ENDIF} -//compile openssl with -DCRYPTO_MDEBUG -{$IFOPT C+} // detect assertions -var - r: Integer; -{$ENDIF} -begin - //compile openssl with -DCRYPTO_MDEBUG - {$IFOPT C+}r :={$ENDIF} CRYPTO_mem_ctrl(iif(aEnabled, CRYPTO_MEM_CHECK_ON, CRYPTO_MEM_CHECK_OFF)); - {$IFOPT C+}Assert(r<>0);{$ENDIF} -end; - -{$IFNDEF OPENSSL_NO_RSA} -function EVP_PKEY_assign_RSA(pkey: PEVP_PKEY; rsa: PRSA): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_PKEY_assign(pkey, EVP_PKEY_RSA, rsa); -end; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_DSA} -function EVP_PKEY_assign_DSA(pkey : PEVP_PKEY; dsa : PDSA) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_PKEY_assign(pkey, EVP_PKEY_DSA, dsa); -end; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_DH} -function EVP_PKEY_assign_DH(pkey : PEVP_PKEY; dh : PDH) : TIdC_INT; -begin - Result := EVP_PKEY_assign(pkey, EVP_PKEY_DH, dh); -end; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_EC} -function EVP_PKEY_assign_EC_KEY(pkey : PEVP_PKEY; eckey : PEC_KEY) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_PKEY_assign(pkey, EVP_PKEY_EC, eckey); -end; -{$ENDIF} - -function EVP_get_digestbynid(a : TIdC_INT) : PEVP_MD; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_get_digestbyname(OBJ_nid2sn(a)); -end; - -function EVP_get_digestbyobj(a : PASN1_OBJECT) : PEVP_MD; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_get_digestbynid(OBJ_obj2nid(a)); -end; - -function EVP_get_cipherbynid(a : TIdC_INT) : PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_get_cipherbyname(OBJ_nid2sn(a)); -end; - -function EVP_get_cipherbyobj(a : PASN1_OBJECT) : PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_get_cipherbynid(OBJ_obj2nid(a)) -end; - -function EVP_MD_nid(e : PEVP_MD) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_MD_type(e); -end; - -function EVP_MD_name(e : PEVP_MD) : PIdAnsiChar; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := OBJ_nid2sn(EVP_MD_nid(e)) -end; - -function EVP_MD_CTX_size(e : PEVP_MD_CTX) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_MD_size(EVP_MD_CTX_md(e)); -end; - -function EVP_MD_CTX_block_size(e : PEVP_MD_CTX) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_MD_block_size(EVP_MD_CTX_md(e)); -end; - -function EVP_MD_CTX_type(e : PEVP_MD_CTX) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_MD_type(EVP_MD_CTX_md(e)); -end; - -function EVP_CIPHER_name(e : PEVP_CIPHER) : PIdAnsiChar; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := OBJ_nid2sn(EVP_CIPHER_nid(e)); -end; - -function EVP_CIPHER_mode(e : PEVP_CIPHER) : TIdC_ULONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := (EVP_CIPHER_flags(e) and EVP_CIPH_MODE) -end; - -function EVP_CIPHER_CTX_type(c : PEVP_CIPHER_CTX) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c)); -end; - -function EVP_CIPHER_CTX_mode(e : PEVP_CIPHER_CTX) : TIdC_ULONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := (EVP_CIPHER_CTX_flags(e) and EVP_CIPH_MODE) -end; - -function EVP_ENCODE_LENGTH(l : Integer) : Integer; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := (((l+2) div 3*4)+(l div 48+1)*2+80); -end; - -function EVP_DECODE_LENGTH(l : Integer) : Integer; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := ((l+3) div 4*3+80); -end; - -function EVP_SignInit_ex(a: PEVP_MD_CTX; b : PEVP_MD; c : PENGINE) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_DigestInit_ex(a, b,c); -end; - -function EVP_SignInit(a : PEVP_MD_CTX; b : PEVP_MD) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_DigestInit(a,b); -end; - -function EVP_SignUpdate(a: PEVP_MD_CTX; b : Pointer; c : size_t) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_DigestUpdate(a,b,c); -end; - -function EVP_VerifyInit_ex(a: PEVP_MD_CTX; b: PEVP_MD; c: PENGINE) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_DigestInit_ex(a,b,c); -end; - -function EVP_VerifyInit(a: PEVP_MD_CTX; b: PEVP_MD) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_DigestInit(a,b); -end; - -function EVP_VerifyUpdate(a: PEVP_MD_CTX; b: Pointer; c : size_t) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_DigestUpdate(a,b,c); -end; - -function EVP_OpenUpdate(a: PEVP_CIPHER_CTX; _out : PIdAnsiChar; outl : PIdC_INT; - _in : PIdAnsiChar; inl : TIdC_INT) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_DecryptUpdate(a,_out,outl,_in,inl); -end; - -function EVP_SealUpdate(a : PEVP_CIPHER_CTX; b: PIdAnsiChar; c : PIdC_INT; - d: PIdAnsiChar; e : TIdC_INT) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_EncryptUpdate(a,b,c,d,e) -end; - -function EVP_DigestSignUpdate(a : PEVP_MD_CTX; b : Pointer; c : size_t) : TIdC_Int; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_DigestUpdate(a,b,size_t(c)); -end; - -function EVP_DigestVerifyUpdate(a : PEVP_MD_CTX; b : Pointer; c : size_t) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_DigestUpdate(a,b,size_t(c)); -end; - -function BIO_get_md(b : PBIO; var mdp : PEVP_MD) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_MD,0,@mdp); -end; - -function BIO_get_md_ctx(b : PBIO; var mdcp : PEVP_MD_CTX) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_MD_CTX,0,@mdcp); -end; - -function BIO_set_md_ctx(b : PBIO; mdcp : PEVP_MD_CTX) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_SET_MD_CTX,0,mdcp); -end; - -function BIO_get_cipher_status(b : PBIO) : TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_CIPHER_STATUS,0,nil); -end; - -function BIO_get_cipher_ctx(b : PBIO; var c_pp : PEVP_CIPHER_CTX): TIdC_LONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := BIO_ctrl(b,BIO_C_GET_CIPHER_CTX,0,@c_pp); -end; - -{$ifndef OPENSSL_NO_DES} -function EVP_des_cfb : PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_des_cfb64; -end; - -function EVP_des_ede_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_des_ede_cfb64; -end; - -function EVP_des_ede3_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_des_ede3_cfb64 -end; -{$endif} - -{$ifndef OPENSSL_NO_IDEA} -function EVP_idea_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_idea_cfb64 -end; - -{$endif} - -{$ifndef OPENSSL_NO_RC2} -function EVP_rc2_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_rc2_cfb64; -end; -{$endif} - -{$ifndef OPENSSL_NO_BF} -function EVP_bf_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_bf_cfb64; -end; -{$endif} - -{$ifndef OPENSSL_NO_CAST} -function EVP_cast5_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_cast5_cfb64; -end; -{$endif} - -{$ifndef OPENSSL_NO_RC5} -function EVP_rc5_32_12_16_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_rc5_32_12_16_cfb64; -end; -{$endif} - -{$ifndef OPENSSL_NO_AES} -function EVP_aes_128_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_aes_128_cfb128; -end; - -function EVP_aes_192_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_aes_192_cfb128 -end; - -function EVP_aes_256_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_aes_256_cfb128; -end; -{$endif} - -{$ifndef OPENSSL_NO_CAMELLIA} -function EVP_camellia_128_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_camellia_128_cfb128; -end; - -function EVP_camellia_192_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_camellia_192_cfb128; -end; - -function EVP_camellia_256_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_camellia_256_cfb128; -end; -{$ENDIF} - -{$ifndef OPENSSL_NO_SEED} -function EVP_seed_cfb: PEVP_CIPHER; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_seed_cfb128; -end; -{$endif} - -function EVP_PKEY_CTX_set_signature_md(ctx : PEVP_PKEY_CTX;md : PEVP_PKEY_CTX) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := EVP_PKEY_CTX_ctrl(ctx, -1, EVP_PKEY_OP_TYPE_SIG, - EVP_PKEY_CTRL_MD, 0, Pointer(md)); -end; - -procedure SSLeay_add_all_algorithms; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - OpenSSL_add_all_algorithms; -end; - -procedure SSLeay_add_all_ciphers; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - OpenSSL_add_all_ciphers; -end; - -procedure SSLeay_add_all_digests; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - OpenSSL_add_all_digests; -end; - -procedure X509V3_set_ctx_nodb(ctx: X509V3_CTX); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ctx.db := nil; -end; - -function ERR_PACK(l, f, r : TIdC_INT) : TIdC_ULONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := ((TIdC_ULONG(l) and $ff) * $1000000) or - ((TIdC_ULONG(f) and $fff) * $1000) or - (TIdC_ULONG(r) and $fff); -end; - -function ERR_GET_LIB(const l : TIdC_INT) : TIdC_ULONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := (l shr 24) and $ff; -end; - -function ERR_GET_FUNC(const l : TIdC_INT) : TIdC_ULONG; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := (l shr 12) and $fff; -end; - -function ERR_FATAL_ERROR(const l : TIdC_INT) : Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := (l and ERR_R_FATAL) > 0; -end; - -function ERR_GET_REASON(const l : TIdC_INT) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := l and $fff; -end; - -//__FILE__,__LINE__ preprocessor macros are not available in Pascal. -//so we can't pass error location info in the last two parameters. -procedure SYSerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_SYS,f,r,nil,0); -end; - -procedure BNerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_BN,f,r,nil,0); -end; - -procedure RSAerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_RSA,f,r,nil,0); -end; - -procedure DHerrr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_DH,f,r,nil,0); -end; - -procedure EVPerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_EVP,f,r,nil,0); -end; - -procedure BUFerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_BUF,f,r,nil,0); -end; - -procedure OBJerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_OBJ,f,r,nil,0); -end; - -procedure PEMerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_PEM,f,r,nil,0); -end; - -procedure DSAerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_DSA,f,r,nil,0); -end; - -procedure X509err(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_X509,f,r,nil,0); -end; - -procedure ASN1err(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_ASN1,f,r,nil,0); -end; - -procedure CONFerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_CONF,f,r,nil,0); -end; - -procedure CRYPTOerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_CRYPTO,f,r,nil,0); -end; - -procedure ECerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_EC,f,r,nil,0); -end; - -procedure SSLerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_SSL,f,r,nil,0); -end; - -procedure BIOerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_BIO,f,r,nil,0); -end; - -procedure PKCS7err(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_PKCS7,f,r,nil,0); -end; - -procedure X509V3err(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_X509V3,f,r,nil,0); -end; - -procedure PKCS12err(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_PKCS12,f,r,nil,0); -end; - -procedure RANDerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_RAND,f,r,nil,0); -end; - -procedure DSOerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_DSO,f,r,nil,0); -end; - -procedure ENGINEerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_ENGINE,f,r,nil,0); -end; - -procedure OCSPerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_OCSP,f,r,nil,0); -end; - -procedure UIerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_UI,f,r,nil,0); -end; - -procedure COMPerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_COMP,f,r,nil,0); -end; - -procedure ECDSAerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_ECDSA,f,r,nil,0); -end; - -procedure ECDHerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_ECDH,f,r,nil,0); -end; - -procedure STOREerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_STORE,f,r,nil,0); -end; - -procedure FIPSerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_FIPS,f,r,nil,0); -end; - -procedure CMSerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_CMS,f,r,nil,0); -end; - -procedure TSerr(const f,r : TIdC_INT); -begin - ERR_PUT_error(ERR_LIB_TS,f,r,nil,0); -end; - -procedure HMACerr(const f,r : TIdC_INT); -begin - ERR_PUT_error(ERR_LIB_HMAC,(f),(r),nil,0); -end; - -procedure JPAKEerr(const f,r : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - ERR_PUT_error(ERR_LIB_JPAKE,f,r,nil,0); -end; - -procedure CRYPTO_w_lock(const _type : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - {$IFNDEF OPENSSL_NO_LOCKING} - _CRYPTO_lock(CRYPTO_LOCK or CRYPTO_WRITE,_type, nil, 0); - {$ENDIF} -end; - -procedure CRYPTO_w_unlock(const _type : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - {$IFNDEF OPENSSL_NO_LOCKING} - _CRYPTO_lock(CRYPTO_UNLOCK or CRYPTO_WRITE,_type, nil, 0); - {$ENDIF} -end; - -procedure CRYPTO_r_lock(const _type : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - {$IFNDEF OPENSSL_NO_LOCKING} - _CRYPTO_lock(CRYPTO_LOCK or CRYPTO_READ,_type, nil, 0); - {$ENDIF} -end; - -procedure CRYPTO_r_unlock(const _type : TIdC_INT); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - {$IFNDEF OPENSSL_NO_LOCKING} - _CRYPTO_lock(CRYPTO_UNLOCK or CRYPTO_READ,_type, nil, 0); - {$ENDIF} -end; - -function X509_LOOKUP_load_file(x : PX509_LOOKUP; name : PIdAnsiChar; _type : TIdC_LONG) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := X509_LOOKUP_ctrl(x, X509_L_FILE_LOAD, name, _type, nil); -end; - -function X509_LOOKUP_add_dir(x : PX509_LOOKUP; name : PIdAnsiChar; _type : TIdC_LONG) : TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := X509_LOOKUP_ctrl(x, X509_L_ADD_DIR, name, _type, nil); -end; - -procedure RAND_cleanup; -begin - if Assigned(_RAND_cleanup) then begin - _RAND_cleanup(); - end; -end; - -function RAND_bytes(buf : PIdAnsiChar; num : integer) : integer; -begin - if Assigned(_RAND_bytes) then begin - Result := _RAND_bytes(buf, num); - end else begin - Result := 0; - end; -end; - -function RAND_pseudo_bytes(buf : PIdAnsiChar; num : integer) : integer; -begin - if Assigned(_RAND_pseudo_bytes) then begin - Result := _RAND_pseudo_bytes(buf, num); - end else begin - Result := 0; - end; -end; - -procedure RAND_seed(buf : PIdAnsiChar; num : integer); -begin - if Assigned(_RAND_seed) then begin - _RAND_seed(buf, num); - end; -end; - -procedure RAND_add(buf : PIdAnsiChar; num : integer; entropy : integer); -begin - if Assigned(_RAND_add) then begin - _RAND_add(buf, num, entropy); - end; -end; - -function RAND_status() : integer; -begin - if Assigned(_RAND_status) then begin - Result := _RAND_status(); - end else begin - Result := 0; - end; -end; - -{$IFDEF SYS_WIN} -function RAND_event(iMsg : UINT; wp : wparam; lp : lparam) : integer; -begin - if Assigned(_RAND_event) then begin - Result := _RAND_event(iMsg, wp, lp); - end else begin - Result := 0; - end; -end; - -procedure RAND_screen(); -begin - if Assigned(_RAND_screen) then begin - _RAND_screen(); - end; -end; -{$ENDIF} - -initialization - {$IFDEF STATICLOAD_OPENSSL} - InitializeFuncPointers; - {$ELSE} - FFailedLoadList := TStringList.Create; - {$ENDIF} - SetFIPSMode := OpenSSLSetFIPSMode; - GetFIPSMode := OpenSSLGetFIPSMode; - IsHashingIntfAvail := OpenSSLIsHashingIntfAvail; - IsMD2HashIntfAvail := OpenSSLIsMD2HashIntfAvail; - GetMD2HashInst := OpenSSLGetMD2HashInst; - IsMD4HashIntfAvail := OpenSSLIsMD4HashIntfAvail; - GetMD4HashInst := OpenSSLGetMD4HashInst; - IsMD5HashIntfAvail := OpenSSLIsMD5HashIntfAvail; - GetMD5HashInst := OpenSSLGetMD5HashInst; - IsSHA1HashIntfAvail := OpenSSLIsSHA1HashIntfAvail; - GetSHA1HashInst := OpenSSLGetSHA1HashInst; - IsSHA224HashIntfAvail := OpenSSLIsSHA224HashIntfAvail; - GetSHA224HashInst := OpenSSLGetSHA224HashInst; - IsSHA256HashIntfAvail := OpenSSLIsSHA256HashIntfAvail; - GetSHA256HashInst := OpenSSLGetSHA256HashInst; - IsSHA384HashIntfAvail := OpenSSLIsSHA384HashIntfAvail; - GetSHA384HashInst := OpenSSLGetSHA384HashInst; - IsSHA512HashIntfAvail := OpenSSLIsSHA512HashIntfAvail; - GetSHA512HashInst := OpenSSLGetSHA512HashInst; - UpdateHashInst := OpenSSLUpdateHashInst; - FinalHashInst := OpenSSLFinalHashInst; - IsHMACAvail := OpenSSLIsHMACAvail; - IsHMACMD5Avail := OpenSSLIsHMACMD5Avail; - GetHMACMD5HashInst := OpenSSLGetHMACMD5Inst; - IsHMACSHA1Avail := OpenSSLIsHMACSHA1Avail; - GetHMACSHA1HashInst:= OpenSSLGetHMACSHA1Inst; - IsHMACSHA224Avail := OpenSSLIsHMACSHA224Avail; - GetHMACSHA224HashInst:= OpenSSLGetHMACSHA224Inst; - IsHMACSHA256Avail := OpenSSLIsHMACSHA256Avail; - GetHMACSHA256HashInst:= OpenSSLGetHMACSHA256Inst; - IsHMACSHA384Avail := OpenSSLIsHMACSHA384Avail; - GetHMACSHA384HashInst:= OpenSSLGetHMACSHA384Inst; - IsHMACSHA512Avail := OpenSSLIsHMACSHA512Avail; - GetHMACSHA512HashInst:= OpenSSLGetHMACSHA512Inst; - UpdateHMACInst := OpenSSLUpdateHMACInst; - FinalHMACInst := OpenSSLFinalHMACInst; -{$IFNDEF STATICLOAD_OPENSSL} -finalization - FreeAndNil(FFailedLoadList); -{$ENDIF} - -end. diff --git a/Lib/Protocols/IdSSLOpenSSLHeaders_static.pas b/Lib/Protocols/IdSSLOpenSSLHeaders_static.pas deleted file mode 100644 index eb26de2f6..000000000 --- a/Lib/Protocols/IdSSLOpenSSLHeaders_static.pas +++ /dev/null @@ -1,1079 +0,0 @@ -unit IdSSLOpenSSLHeaders_static; - -interface - -{$I IdCompilerDefines.inc} - -{$IFNDEF USE_OPENSSL} - {$message error Should not compile if USE_OPENSSL is not defined!!!} -{$ENDIF} - -{$IFDEF HAS_DIRECTIVE_HPPEMIT_LINKUNIT} - {$HPPEMIT LINKUNIT} -{$ELSE} - {$HPPEMIT '#pragma link "IdSSLOpenSSLHeaders_static"'} -{$ENDIF} - -implementation - -{$IFDEF STATICLOAD_OPENSSL} -uses - IdGlobal, Posix.SysTypes, IdCTypes, IdSSLOpenSSLHeaders; - -const - SSL_LIB_name = 'libssl.a'; {Do not Localize} - SSLCLIB_LIB_name = 'libcrypto.a'; {Do not Localize} - -function SSL_CTX_set_cipher_list_func(_para1: PSSL_CTX; const str: PIdAnsiChar): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_CTX_set_cipher_list'; - -function SSL_CTX_new_func(meth: PSSL_METHOD): PSSL_CTX cdecl; external SSL_LIB_NAME name 'SSL_CTX_new'; - -procedure SSL_CTX_free_proc(_para1: PSSL_CTX) cdecl; external SSL_LIB_NAME name 'SSL_CTX_free'; - -function SSL_set_fd_func(s: PSSL; fd: TIdC_INT): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_set_fd'; - -function SSL_CTX_use_PrivateKey_file_func(ctx: PSSL_CTX; const _file: PIdAnsiChar; _type: TIdC_INT): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_CTX_use_PrivateKey_file'; - -function SSL_CTX_use_PrivateKey_func(ctx: PSSL_CTX; pkey: PEVP_PKEY): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_CTX_use_PrivateKey'; - -function SSL_CTX_use_certificate_func(ctx: PSSL_CTX; x: PX509): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_CTX_use_certificate'; - -function SSL_CTX_use_certificate_file_func(ctx: PSSL_CTX; const _file: PIdAnsiChar; _type: TIdC_INT): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_CTX_use_certificate_file'; - -procedure SSL_load_error_strings_proc cdecl; external SSL_LIB_NAME name 'SSL_load_error_strings'; - -function SSL_state_string_long_func(s: PSSL): PIdAnsiChar cdecl; external SSL_LIB_NAME name 'SSL_state_string_long'; - -function SSL_alert_desc_string_long_func(value : TIdC_INT) : PIdAnsiChar cdecl; external SSL_LIB_NAME name 'SSL_alert_desc_string_long'; - -function SSL_alert_type_string_long_func(value : TIdC_INT) : PIdAnsiChar cdecl; external SSL_LIB_NAME name 'SSL_alert_type_string_long'; - -function SSL_get_peer_certificate_func(s: PSSL): PX509 cdecl; external SSL_LIB_NAME name 'SSL_get_peer_certificate'; - -procedure SSL_CTX_set_verify_proc(ctx: PSSL_CTX; mode: TIdC_INT; callback: TSSL_CTX_set_verify_callback) cdecl; external SSL_LIB_NAME name 'SSL_CTX_set_verify'; - -procedure SSL_CTX_set_verify_depth_proc(ctx: PSSL_CTX; depth: TIdC_INT) cdecl; external SSL_LIB_NAME name 'SSL_CTX_set_verify_depth'; - -function SSL_CTX_get_verify_depth_func(ctx: PSSL_CTX): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_CTX_get_verify_depth'; - -procedure SSL_CTX_set_default_passwd_cb_proc(ctx: PSSL_CTX; cb: ppem_password_cb) cdecl; external SSL_LIB_NAME name 'SSL_CTX_set_default_passwd_cb'; - -procedure SSL_CTX_set_default_passwd_cb_userdata_proc(ctx: PSSL_CTX; u: Pointer) cdecl; external SSL_LIB_NAME name 'SSL_CTX_set_default_passwd_cb_userdata'; - -function SSL_CTX_check_private_key_func(ctx: PSSL_CTX): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_CTX_check_private_key'; - -function SSL_new_func(ctx: PSSL_CTX): PSSL cdecl; external SSL_LIB_NAME name 'SSL_new'; - -procedure SSL_free_proc(ssl: PSSL) cdecl; external SSL_LIB_NAME name 'SSL_free'; - -function SSL_accept_func(ssl: PSSL): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_accept'; - -function SSL_connect_func(ssl: PSSL): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_connect'; - -function SSL_read_func(ssl: PSSL; buf: Pointer; num: TIdC_INT): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_read'; - -function SSL_peek_func(ssl: PSSL; buf: Pointer; num: TIdC_INT): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_peek'; - -function SSL_pending_func(ssl : PSSL) : TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_pending'; - -function SSL_write_func(ssl: PSSL; const buf: Pointer; num: TIdC_INT): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_write'; - -function SSL_ctrl_func(ssl : PSSL; cmd : TIdC_INT; larg : TIdC_LONG; parg : Pointer) : TIdC_LONG cdecl; external SSL_LIB_NAME name 'SSL_ctrl'; - -function SSL_callback_ctrl_func(ssl : PSSL; cmd : TIdC_INT; fp : SSL_callback_ctrl_fp) : TIdC_LONG cdecl; external SSL_LIB_NAME name 'SSL_callback_ctrl'; - -function SSL_CTX_ctrl_func(ssl: PSSL_CTX; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG cdecl; external SSL_LIB_NAME name 'SSL_CTX_ctrl'; - -function SSL_CTX_callback_ctrl_func(ssl : PSSL_CTX; cmd : TIdC_INT; fp : SSL_callback_ctrl_fp) : TIdC_LONG cdecl; external SSL_LIB_NAME name 'SSL_CTX_callback_ctrl'; - -function SSL_get_error_func(s: PSSL; ret_code: TIdC_INT): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_get_error'; - -{$IFNDEF OPENSSL_NO_SSL2} -function SSLv2_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'SSLv2_method'; - -function SSLv2_server_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'SSLv2_server_method'; - -function SSLv2_client_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'SSLv2_client_method'; -{$ENDIF} - -function SSLv3_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'SSLv3_method'; - -function SSLv3_server_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'SSLv3_server_method'; - -function SSLv3_client_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'SSLv3_client_method'; - -function SSLv23_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'SSLv23_method'; - -function SSLv23_server_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'SSLv23_server_method'; - -function SSLv23_client_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'SSLv23_client_method'; - -function TLSv1_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'TLSv1_method'; - -function TLSv1_server_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'TLSv1_server_method'; - -function TLSv1_client_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'TLSv1_client_method'; - -function TLSv1_1_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'TLSv1_1_method'; - -function TLSv1_1_server_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'TLSv1_1_server_method'; - -function TLSv1_1_client_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'TLSv1_1_client_method'; - -function TLSv1_2_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'TLSv1_2_method'; - -function TLSv1_2_server_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'TLSv1_2_server_method'; - -function TLSv1_2_client_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'TLSv1_2_client_method'; - -function DTLSv1_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'DTLSv1_method'; - -function DTLSv1_server_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'DTLSv1_server_method'; - -function DTLSv1_client_method_func: PSSL_METHOD cdecl; external SSL_LIB_NAME name 'DTLSv1_client_method'; - -function SSL_shutdown_func(s: PSSL): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_shutdown'; - -procedure SSL_set_connect_state_proc(s: PSSL) cdecl; external SSL_LIB_NAME name 'SSL_set_connect_state'; - -procedure SSL_set_accept_state_proc(s: PSSL) cdecl; external SSL_LIB_NAME name 'SSL_set_accept_state'; - -procedure SSL_set_shutdown_proc(ssl: PSSL; mode: TIdC_INT) cdecl; external SSL_LIB_NAME name 'SSL_set_shutdown'; - -function SSL_CTX_load_verify_locations_func(ctx: PSSL_CTX; const CAfile: PIdAnsiChar; const CApath: PIdAnsiChar): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_CTX_load_verify_locations'; - -function SSL_get_session_func(const ssl: PSSL): PSSL_SESSION cdecl; external SSL_LIB_NAME name 'SSL_get_session'; - -function SSLeay_add_ssl_algorithms_func: TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_library_init'; - -function SSL_SESSION_get_id_func(const s: PSSL_SESSION; length: PIdC_UINT): PIdAnsiChar cdecl; external SSL_LIB_NAME name 'SSL_SESSION_get_id'; - -procedure SSL_copy_session_id_proc(sslTo: PSSL; const sslFrom: PSSL) cdecl; external SSL_LIB_NAME name 'SSL_copy_session_id'; - -function SSLeay_version_func(_type : TIdC_INT) : PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'SSLeay_version'; - -function SSLeay_func: TIdC_ULONG cdecl; external SSLCLIB_LIB_name name 'SSLeay'; - -function d2i_X509_NAME_func(pr : PPX509_NAME; _in : PPByte; length : TIdC_LONG):PX509_NAME cdecl; external SSLCLIB_LIB_name name 'd2i_X509_NAME'; - -function i2d_X509_NAME_func(x : PX509_NAME; buf : PPByte) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_X509_NAME'; - -function X509_NAME_oneline_func(a: PX509_NAME; buf: PIdAnsiChar; size: TIdC_INT): PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'X509_NAME_oneline'; - -function X509_NAME_cmp_func(const a, b: PX509_NAME): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_NAME_cmp'; - -function X509_NAME_hash_func(x: PX509_NAME): TIdC_ULONG cdecl; external SSLCLIB_LIB_name name 'X509_NAME_hash'; - -function X509_set_issuer_name_func(x: PX509; name: PX509_NAME): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_set_issuer_name'; - -function X509_get_issuer_name_func(a: PX509): PX509_NAME cdecl; external SSLCLIB_LIB_name name 'X509_get_issuer_name'; - -function X509_set_subject_name_func(x: PX509; name: PX509_NAME): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_set_subject_name'; - -function X509_get_subject_name_func(a: PX509): PX509_NAME cdecl; external SSLCLIB_LIB_name name 'X509_get_subject_name'; - -function X509_digest_func(const data: PX509; const _type: PEVP_MD; - md: PByte; var len: TIdC_UINT): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_digest'; - -function X509_LOOKUP_ctrl_func(ctx : PX509_LOOKUP; cmd : TIdC_INT; argc : PIdAnsiChar; arg1 : TIdC_LONG; ret : PPIdAnsiChar) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_LOOKUP_ctrl'; - -function X509_STORE_add_cert_func(ctx : PX509_STORE; x : PX509) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_STORE_add_cert'; - -function X509_STORE_add_crl_func(ctx : PX509_STORE; x : PX509_CRL) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_STORE_add_crl'; - -function X509_STORE_CTX_get_ex_data_func(ctx: PX509_STORE_CTX; idx: TIdC_INT): Pointer cdecl; external SSLCLIB_LIB_name name 'X509_STORE_CTX_get_ex_data'; - -function X509_STORE_CTX_get_error_func(ctx: PX509_STORE_CTX): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_STORE_CTX_get_error'; - -procedure X509_STORE_CTX_set_error_proc(ctx: PX509_STORE_CTX; s: TIdC_INT) cdecl; external SSLCLIB_LIB_name name 'X509_STORE_CTX_set_error'; - -function X509_STORE_CTX_get_error_depth_func(ctx: PX509_STORE_CTX): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_STORE_CTX_get_error_depth'; - -function X509_STORE_CTX_get_current_cert_func(ctx: PX509_STORE_CTX): PX509 cdecl; external SSLCLIB_LIB_name name 'X509_STORE_CTX_get_current_cert'; - -function X509_STORE_add_lookup_func(v : PX509_STORE; m : PX509_LOOKUP_METHOD) : PX509_LOOKUP cdecl; external SSLCLIB_LIB_name name 'X509_STORE_add_lookup'; - -function X509_STORE_load_locations_func( ctx : PX509_STORE; const _file, path : PIdAnsiChar) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_STORE_load_locations'; - -function i2d_DSAPrivateKey_func(x: PDSA; buf: PPByte): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_DSAPrivateKey'; - -function d2i_DSAPrivateKey_func(pr : PDSA; _in : PPByte; len : TIdC_INT): PDSA cdecl; external SSLCLIB_LIB_name name 'd2i_DSAPrivateKey'; - -function d2i_PrivateKey_func(pr : PEVP_PKEY; _in : PPByte; len : TIdC_INT): PEVP_PKEY cdecl; external SSLCLIB_LIB_name name 'd2i_PrivateKey'; - -function d2i_PrivateKey_bio_func(bp : PBIO; a : PPEVP_PKEY) : PEVP_PKEY cdecl; external SSLCLIB_LIB_name name 'd2i_PrivateKey_bio'; - -function X509_sign_func(x: PX509; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_sign'; - -function X509_REQ_sign_func(x: PX509_REQ; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_REQ_sign'; - -function X509_REQ_add_extensions_func(req: PX509_REQ; exts: PSTACK_OF_X509_EXTENSION): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_REQ_add_extensions'; - -function X509V3_EXT_conf_nid_func(conf: PLHASH; ctx: PX509V3_CTX; ext_nid: TIdC_INT; value: PIdAnsiChar): PX509_EXTENSION cdecl; external SSLCLIB_LIB_name name 'X509V3_EXT_conf_nid'; - -function X509_EXTENSION_create_by_NID_func(ex: PPX509_EXTENSION; nid: TIdC_INT; - crit: TIdC_INT; data: PASN1_OCTET_STRING): PX509_EXTENSION cdecl; external SSLCLIB_LIB_name name 'X509_EXTENSION_create_by_NID'; - -procedure X509V3_set_ctx_proc(ctx: PX509V3_CTX; issuer, subject: PX509; req: PX509_REQ; crl: PX509_CRL; flags: TIdC_INT) cdecl; external SSLCLIB_LIB_name name 'X509V3_set_ctx'; - -procedure X509_EXTENSION_free_proc(ex: PX509_EXTENSION) cdecl; external SSLCLIB_LIB_name name 'X509_EXTENSION_free'; - -function X509_add_ext_func(cert: PX509; ext: PX509_EXTENSION; loc: TIdC_INT): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_add_ext'; - -{$IFNDEF OPENSSL_NO_BIO} -function X509_print_func(bp : PBIO; x : PX509) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_print'; -{$ENDIF} - -procedure RAND_cleanup_func; cdecl; external SSLCLIB_LIB_name name 'RAND_cleanup'; - -function RAND_bytes_func(buf : PIdAnsiChar; num : integer) : integer; cdecl; external SSLCLIB_LIB_name name 'RAND_bytes'; - -function RAND_pseudo_bytes_func(buf : PIdAnsiChar; num : integer) : integer; cdecl; external SSLCLIB_LIB_name name 'RAND_pseudo_bytes'; - -procedure RAND_seed_proc(buf : PIdAnsiChar; num : integer); cdecl; external SSLCLIB_LIB_name name 'RAND_seed'; - -procedure RAND_add_proc(buf : PIdAnsiChar; num : integer; entropy : integer); cdecl; external SSLCLIB_LIB_name name 'RAND_add'; - -function RAND_status_func: integer; cdecl; external SSLCLIB_LIB_name name 'RAND_status'; - -{$IFDEF SYS_WIN} -procedure RAND_screen_proc cdecl; external SSLCLIB_LIB_name name 'RAND_screen'; - -function RAND_event_func(iMsg : UINT; wp : wparam; lp : lparam) : integer; cdecl; external SSLCLIB_LIB_name name 'RAND_event'; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_DES} -procedure DES_set_odd_parity_proc(key: Pdes_cblock) cdecl; external SSLCLIB_LIB_name name 'DES_set_odd_parity'; - -function DES_set_key_func(key: Pconst_DES_cblock; schedule: DES_key_schedule): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'DES_set_key'; - -procedure DES_ecb_encrypt_proc(input, output: Pconst_DES_cblock; ks: DES_key_schedule; enc: TIdC_INT) cdecl; external SSLCLIB_LIB_name name 'DES_ecb_encrypt'; - -//procedure Id_ossl_old_des_set_odd_parity_proc(key : p_ossl_old_des_cblock) cdecl; external SSLCLIB_LIB_name name 'Id_ossl_old_des_set_odd_parity'; - -//function Id_ossl_old_des_set_key_func(key : P_ossl_old_des_cblock; schedule : _ossl_old_des_key_schedule) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'Id_ossl_old_des_set_key'; - -//procedure Id_ossl_old_des_ecb_encrypt_proc( input : p_ossl_old_des_cblock; output : p_ossl_old_des_cblock; ks : p_ossl_old_des_key_schedule; enc : TIdC_int) cdecl; external SSLCLIB_LIB_name name 'Id_ossl_old_des_ecb_encrypt'; -{$ENDIF} - -function SSL_set_ex_data_func(ssl: PSSL; idx: TIdC_INT; data: Pointer): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_set_ex_data'; - -function SSL_get_ex_data_func(ssl: PSSL; idx: TIdC_INT): Pointer cdecl; external SSL_LIB_NAME name 'SSL_get_ex_data'; - -function SSL_load_client_CA_file_func(const _file: PIdAnsiChar): PSTACK_OF_X509_NAME cdecl; external SSL_LIB_NAME name 'SSL_load_client_CA_file'; - -procedure SSL_CTX_set_client_CA_list_proc(ctx: PSSL_CTX; list: PSTACK_OF_X509_NAME) cdecl; external SSL_LIB_NAME name 'SSL_CTX_set_client_CA_list'; - -function SSL_CTX_set_default_verify_paths_func(ctx: PSSL_CTX): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_CTX_set_default_verify_paths'; - -function SSL_CTX_set_session_id_context_func(ctx: PSSL_CTX; const sid_ctx: PByte; sid_ctx_len: TIdC_UINT): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_CTX_set_session_id_context'; - -function SSL_CIPHER_description_func(_para1: PSSL_CIPHER; buf: PIdAnsiChar; size: TIdC_INT): PIdAnsiChar cdecl; external SSL_LIB_NAME name 'SSL_CIPHER_description'; - -function SSL_get_current_cipher_func(const s: PSSL): PSSL_CIPHER cdecl; external SSL_LIB_NAME name 'SSL_get_current_cipher'; - -function SSL_CIPHER_get_name_func(const c: PSSL_CIPHER): PIdAnsiChar cdecl; external SSL_LIB_NAME name 'SSL_CIPHER_get_name'; - -function SSL_CIPHER_get_version_func(const c: PSSL_CIPHER): PIdAnsiChar cdecl; external SSL_LIB_NAME name 'SSL_CIPHER_get_version'; - -function SSL_CIPHER_get_bits_func(const c: PSSL_CIPHER; var alg_bits: TIdC_INT): TIdC_INT cdecl; external SSL_LIB_NAME name 'SSL_CIPHER_get_bits'; - -procedure CRYPTO_lock_proc(mode, _type : TIdC_INT; const _file : PIdAnsiChar; line : TIdC_INT) cdecl; external SSLCLIB_LIB_name name 'CRYPTO_lock'; - -function CRYPTO_num_locks_func: TIdC_INT cdecl; external SSLCLIB_LIB_name name 'CRYPTO_num_locks'; - -procedure CRYPTO_set_locking_callback_proc(func: TIdSslLockingCallback) cdecl; external SSLCLIB_LIB_name name 'CRYPTO_set_locking_callback'; - -function CRYPTO_THREADID_set_callback_func(threadid_func : TCRYPTO_THREADID_set_callback_threadid_func) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'CRYPTO_THREADID_set_callback'; - -procedure CRYPTO_THREADID_set_numeric_proc(id : PCRYPTO_THREADID; val : TIdC_ULONG) cdecl; external SSLCLIB_LIB_name name 'CRYPTO_THREADID_set_numeric'; - -procedure CRYPTO_THREADID_set_pointer_proc(id : PCRYPTO_THREADID; ptr : Pointer) cdecl; external SSLCLIB_LIB_name name 'CRYPTO_THREADID_set_pointer'; - -procedure ERR_put_error_proc(lib, func, reason : TIdC_INT; _file : PIdAnsiChar; line : TIdC_INT) cdecl; external SSLCLIB_LIB_name name 'ERR_put_error'; - -function ERR_get_error_func: TIdC_ULONG cdecl; external SSLCLIB_LIB_name name 'ERR_get_error'; - -function ERR_peek_error_func: TIdC_ULONG cdecl; external SSLCLIB_LIB_name name 'ERR_peek_error'; - -function ERR_peek_last_error_func: TIdC_ULONG cdecl; external SSLCLIB_LIB_name name 'ERR_peek_last_error'; - -procedure ERR_clear_error_proc cdecl; external SSLCLIB_LIB_name name 'ERR_clear_error'; - -function ERR_error_string_func(e: TIdC_ULONG; buf: PIdAnsiChar): PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'ERR_error_string'; - -procedure ERR_error_string_n_proc(e: TIdC_ULONG; buf: PIdAnsiChar; len : size_t) cdecl; external SSLCLIB_LIB_name name 'ERR_error_string_n'; - -function ERR_lib_error_string_func(e : TIdC_ULONG): PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'ERR_lib_error_string'; - -function ERR_func_error_string_func(e : TIdC_ULONG): PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'ERR_func_error_string'; - -function ERR_reason_error_string_func(e : TIdC_ULONG): PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'ERR_reason_error_string'; - -procedure ERR_load_ERR_strings_proc cdecl; external SSLCLIB_LIB_name name 'ERR_load_ERR_strings'; - -procedure ERR_load_crypto_strings_proc cdecl; external SSLCLIB_LIB_name name 'ERR_load_crypto_strings'; - -procedure ERR_free_strings_proc cdecl; external SSLCLIB_LIB_name name 'ERR_free_strings'; - -procedure ERR_remove_thread_state_proc(const tId : PCRYPTO_THREADID) cdecl; external SSLCLIB_LIB_name name 'ERR_remove_thread_state'; - -procedure CRYPTO_cleanup_all_ex_data_proc cdecl; external SSLCLIB_LIB_name name 'CRYPTO_cleanup_all_ex_data'; - -function SSL_COMP_get_compression_methods_func: PSTACK_OF_SSL_COMP cdecl; external SSL_LIB_NAME name 'SSL_COMP_get_compression_methods'; - -procedure SSL_COMP_free_compression_methods_func; cdecl; external SSL_LIB_NAME name 'SSL_COMP_free_compression_methods' - -procedure sk_pop_free_proc(st: PSTACK; func: Tsk_pop_free_func) cdecl; external SSLCLIB_LIB_name name 'sk_pop_free'; - -procedure RSA_free_proc(rsa: PRSA) cdecl; external SSLCLIB_LIB_name name 'RSA_free'; - -function RSA_generate_key_func(bits: TIdC_INT; e: TIdC_ULONG; callback: TRSA_generate_key_callback; cb_arg: Pointer): PRSA cdecl; external SSLCLIB_LIB_name name 'RSA_generate_key'; - -function RSA_check_key_func(const rsa: PRSA): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'RSA_check_key'; - -function RSA_generate_key_ex_func(rsa : PRSA; bits : TIdC_INT; e : PBIGNUM; cb : PBN_GENCB) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'RSA_generate_key_ex'; - -function RSA_new_func: PRSA cdecl; external SSLCLIB_LIB_name name 'RSA_new'; - -function RSA_size_func(key: PRSA): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'RSA_size'; - -function RSA_private_decrypt_func(flen: TIdC_INT; from: PByte; _to: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'RSA_private_decrypt'; - -function RSA_public_encrypt_func(flen: TIdC_INT; from: PByte; _to: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'RSA_public_encrypt'; - -procedure DH_free_proc(dh: PDH) cdecl; external SSLCLIB_LIB_name name 'DH_free'; - -function BN_new_func: PBIGNUM cdecl; external SSLCLIB_LIB_name name 'BN_new'; - -procedure BN_free_proc(a: PBIGNUM) cdecl; external SSLCLIB_LIB_name name 'BN_free'; - -function BN_hex2bn_func(var n:PBIGNUM; const Str: PIdAnsiChar): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'BN_hex2bn'; - -function BN_bn2hex_func(const n:PBIGNUM): PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'BN_bn2hex'; - -function BN_set_word_func(a: PBIGNUM; w: TIdC_ULONG): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'BN_set_word'; - -function BIO_new_func(_type: PBIO_METHOD): PBIO cdecl; external SSLCLIB_LIB_name name 'BIO_new'; - -function BIO_free_func(bio: PBIO): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'BIO_free'; - -function BIO_new_mem_buf_func(buf : Pointer; len : TIdC_INT) : PBIO cdecl; external SSLCLIB_LIB_name name 'BIO_new_mem_buf'; - -function BIO_s_mem_func: PBIO_METHOD cdecl; external SSLCLIB_LIB_name name 'BIO_s_mem'; - -function BIO_s_file_func: PBIO_METHOD cdecl; external SSLCLIB_LIB_name name 'BIO_s_file'; - -function BIO_ctrl_func(bp: PBIO; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG cdecl; external SSLCLIB_LIB_name name 'BIO_ctrl'; - -function BIO_int_ctrl_func(bp : PBIO; cmd : TIdC_INT; larg : TIdC_LONG; iArg : TIdC_INT) : TIdC_LONG cdecl; external SSLCLIB_LIB_name name 'BIO_int_ctrl'; - -function BIO_ptr_ctrl_func(bp : PBIO; cmd : TIdC_INT; larg : TIdC_LONG) : PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'BIO_ptr_ctrl'; - -function BIO_new_file_func(const filename: PIdAnsiChar; const mode: PIdAnsiChar): PBIO cdecl; external SSLCLIB_LIB_name name 'BIO_new_file'; - -function BIO_puts_func(b: PBIO; const txt: PIdAnsiChar): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'BIO_puts'; - -function BIO_read_func(b: PBIO; data: Pointer; len: TIdC_INT): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'BIO_read'; - -function BIO_write_func(b: PBIO; const buf: Pointer; len: TIdC_INT): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'BIO_write'; - -function i2d_X509_bio_func(bp: PBIO; x: PX509): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_X509_bio'; - -function i2d_PrivateKey_bio_func(b: PBIO; pkey: PEVP_PKEY): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_PrivateKey_bio'; - -function d2i_X509_bio_func(bp: PBIO; x: PPx509): PX509 cdecl; external SSLCLIB_LIB_name name 'd2i_X509_bio'; - -function i2d_X509_REQ_bio_func(bp: PBIO; x: PX509_REQ): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_X509_REQ_bio'; - -function i2d_PKCS7_func(x: PPKCS7; buf: PPByte): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_PKCS7'; - -function d2i_PKCS7_func(pr : PPKCS7; _in : PPByte; len : TIdC_INT): PPKCS7 cdecl; external SSLCLIB_LIB_name name 'd2i_PKCS7'; - -function i2d_X509_func(x: PX509; buf: PPByte) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_X509'; - -function d2i_X509_func(pr : PX509; _in : PPByte; len : TIdC_INT): PX509 cdecl; external SSLCLIB_LIB_name name 'd2i_X509'; - -function i2d_X509_REQ_func(x: PX509_REQ; buf: PPByte): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_X509_REQ'; - -function d2i_X509_REQ_func(pr : PX509_REQ; _in : PPByte; len : TIdC_INT): PX509_REQ cdecl; external SSLCLIB_LIB_name name 'd2i_X509_REQ'; - -function i2d_X509_CRL_func(x: PX509_CRL; buf: PPByte): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_X509_CRL'; - -function d2i_X509_CRL_func(pr : PX509_CRL; _in : PPByte; len : TIdC_INT): PX509_REQ cdecl; external SSLCLIB_LIB_name name 'd2i_X509_CRL'; - -function i2d_RSAPrivateKey_func(x: PRSA; buf: PPByte): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_RSAPrivateKey'; - -function d2i_RSAPrivateKey_func(pr : PRSA; _in : PPByte; len : TIdC_INT): PRSA cdecl; external SSLCLIB_LIB_name name 'd2i_RSAPrivateKey'; - -function i2d_RSAPublicKey_func(x: PRSA; buf: PPByte): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_RSAPublicKey'; - -function d2i_RSAPublicKey_func(pr : PRSA; _in : PPByte; len : TIdC_INT): PRSA cdecl; external SSLCLIB_LIB_name name 'd2i_RSAPublicKey'; - -function i2d_PrivateKey_func(x: PEVP_PKEY; buf: PPByte): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_PrivateKey'; - -function i2d_DSAparams_func(x: PDSA; buf: PPByte): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_DSAparams'; - -function d2i_DSAparams_func(pr : PDSA; _in : PPByte; len : TIdC_INT): PDSA cdecl; external SSLCLIB_LIB_name name 'd2i_DSAparams'; - -function i2d_DHparams_func(x: PDH; buf: PPByte): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_DHparams'; - -function d2i_DHparams_func(pr : PDH; _in : PPByte; len : TIdC_INT): PDH cdecl; external SSLCLIB_LIB_name name 'd2i_DHparams'; - -function i2d_NETSCAPE_CERT_SEQUENCE_func(x: PNETSCAPE_CERT_SEQUENCE; buf: PPByte): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_NETSCAPE_CERT_SEQUENCE'; - -function d2i_NETSCAPE_CERT_SEQUENCE_func(pr : PNETSCAPE_CERT_SEQUENCE; _in : PPByte; len : TIdC_INT): PNETSCAPE_CERT_SEQUENCE cdecl; external SSLCLIB_LIB_name name 'd2i_NETSCAPE_CERT_SEQUENCE'; - -function i2d_PUBKEY_func(x: PEVP_PKEY; buf: PPByte): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_PUBKEY'; - -function d2i_PUBKEY_func(pr : PEVP_PKEY; _in : PPByte; len : TIdC_INT): PEVP_PKEY cdecl; external SSLCLIB_LIB_name name 'd2i_PUBKEY'; - -function X509_get_default_cert_file_func: PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'X509_get_default_cert_file'; - -function X509_get_default_cert_file_env_func: PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'X509_get_default_cert_file_env'; - -function X509_new_func: PX509 cdecl; external SSLCLIB_LIB_name name 'X509_new'; - -procedure X509_free_proc(x: PX509) cdecl; external SSLCLIB_LIB_name name 'X509_free'; - -function X509_REQ_new_func: PX509_REQ cdecl; external SSLCLIB_LIB_name name 'X509_REQ_new'; - -procedure X509_REQ_free_proc(x:PX509_REQ) cdecl; external SSLCLIB_LIB_name name 'X509_REQ_free'; - -function X509_to_X509_REQ_func(x: PX509; pkey: PEVP_PKEY; const md: PEVP_MD): PX509_REQ cdecl; external SSLCLIB_LIB_name name 'X509_to_X509_REQ'; - -function X509_NAME_new_func: PX509_NAME cdecl; external SSLCLIB_LIB_name name 'X509_NAME_new'; - -procedure X509_NAME_free_proc(x:PX509_NAME) cdecl; external SSLCLIB_LIB_name name 'X509_NAME_free'; - -function X509_NAME_add_entry_by_txt_func(name: PX509_NAME; const field: PIdAnsiChar; _type: TIdC_INT; - const bytes: PIdAnsiChar; len, loc, _set: TIdC_INT): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_NAME_add_entry_by_txt'; - -procedure X509_INFO_free_proc(a : PX509_INFO) cdecl; external SSLCLIB_LIB_name name 'X509_INFO_free'; - -function X509_set_version_func(x: PX509; version: TIdC_LONG): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_set_version'; - -function X509_get_serialNumber_func(x: PX509): PASN1_INTEGER cdecl; external SSLCLIB_LIB_name name 'X509_get_serialNumber'; - -function X509_gmtime_adj_func(s: PASN1_TIME; adj: TIdC_LONG): PASN1_TIME cdecl; external SSLCLIB_LIB_name name 'X509_gmtime_adj'; - -function X509_set_notBefore_func(x: PX509; tm: PASN1_TIME): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_set_notBefore'; - -function X509_set_notAfter_func(x: PX509; tm: PASN1_TIME): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_set_notAfter'; - -function X509_set_pubkey_func(x: PX509; pkey: PEVP_PKEY): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_set_pubkey'; - -function X509_REQ_set_pubkey_func(x: PX509_REQ; pkey: PEVP_PKEY): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_REQ_set_pubkey'; - -function X509_PUBKEY_get_func(key: PX509_PUBKEY): PEVP_PKEY cdecl; external SSLCLIB_LIB_name name 'X509_PUBKEY_get'; - -function X509_verify_func(x509: PX509; pkey: PEVP_PKEY): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'X509_verify'; - -{$IFNDEF SSLEAY_MACROS} -function PEM_read_bio_X509_func(bp: PBIO; x: PPX509; cb: ppem_password_cb; u: Pointer): PX509 cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_X509'; - -function PEM_read_bio_X509_REQ_func(bp :PBIO; x : PPX509_REQ; cb :ppem_password_cb; u: PIdAnsiChar) : PX509_REQ cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_X509_REQ'; - -function PEM_read_bio_X509_CRL_func(bp : PBIO; x : PPX509_CRL;cb : ppem_password_cb; u: Pointer) : PX509_CRL cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_X509_CRL'; - -function PEM_read_bio_RSAPrivateKey_func(bp : PBIO; x : PPRSA; cb : ppem_password_cb; u: Pointer) : PRSA cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_RSAPrivateKey'; - -function PEM_read_bio_RSAPublicKey_func(bp : PBIO; x : PPRSA; cb : ppem_password_cb; u: Pointer) : PRSA cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_RSAPublicKey'; - -function PEM_read_bio_DSAPrivateKey_func(bp : PBIO; x : PPDSA; cb : ppem_password_cb; u : Pointer) : PDSA cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_DSAPrivateKey'; - -function PEM_read_bio_PrivateKey_func(bp : PBIO; x : PPEVP_PKEY; cb : ppem_password_cb; u : Pointer) : PEVP_PKEY cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_PrivateKey'; - -function PEM_read_bio_PKCS7_func(bp : PBIO; x : PPPKCS7; cb : ppem_password_cb; u : Pointer) : PPKCS7 cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_PKCS7'; - -function PEM_read_bio_DHparams_func(bp : PBIO; x : PPDH; cb : ppem_password_cb; u : Pointer) : PDH cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_DHparams'; - -function PEM_read_bio_DSAparams_func(bp : PBIO; x : PPDSA; cb : ppem_password_cb; u : Pointer) : PDSA cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_DSAparams'; - -function PEM_read_bio_NETSCAPE_CERT_SEQUENCE_func(bp : PBIO; x : PPNETSCAPE_CERT_SEQUENCE; - cb : ppem_password_cb; u : Pointer) : PNETSCAPE_CERT_SEQUENCE cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_NETSCAPE_CERT_SEQUENCE'; - -function PEM_read_bio_PUBKEY_func(bp : PBIO; x : PPEVP_PKEY; cb : ppem_password_cb; u : Pointer) : PEVP_PKEY cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_PUBKEY'; - -function PEM_write_bio_X509_func(b: PBIO; x: PX509): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_X509'; - -function PEM_write_bio_X509_REQ_func(bp: PBIO; x: PX509_REQ): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_X509_REQ'; - -function PEM_write_bio_X509_CRL_func(bp : PBIO; x : PX509_CRL) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_X509_CRL'; - -function PEM_write_bio_RSAPrivateKey_func(bp : PBIO; x : PRSA; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : Ppem_password_cb; u : Pointer) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_RSAPrivateKey'; - -function PEM_write_bio_RSAPublicKey_func(bp : PBIO; x : PRSA) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_RSAPublicKey'; - -function PEM_write_bio_DSAPrivateKey_func(bp : PBIO; x : PDSA; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : Ppem_password_cb; u : Pointer) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_DSAPrivateKey'; - -function PEM_write_bio_PrivateKey_func(bp : PBIO; x : PEVP_PKEY; const enc : PEVP_CIPHER; - kstr : PIdAnsiChar; klen : TIdC_INT; cb : Ppem_password_cb; u : Pointer) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_PrivateKey'; - -function PEM_write_bio_PKCS7_func(bp : PBIO; x : PPKCS7) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_PKCS7'; - -function PEM_write_bio_DHparams_func(bp : PBIO; x : PDH): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_DHparams'; - -function PEM_write_bio_DSAparams_func(bp : PBIO; x : PDSA) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_DSAparams'; - -function PEM_write_bio_NETSCAPE_CERT_SEQUENCE_func(bp : PBIO; x : PDSA) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_NETSCAPE_CERT_SEQUENCE'; - -function PEM_write_bio_PKCS8PrivateKey_func(bp: PBIO; key: PEVP_PKEY; enc: PEVP_CIPHER; - kstr: PIdAnsiChar; klen: TIdC_INT; cb: ppem_password_cb; u: Pointer): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_PKCS8PrivateKey'; - -function PEM_write_bio_PUBKEY_func(bp: PBIO; x: PEVP_PKEY): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_write_bio_PUBKEY'; -{$ELSE} -function PEM_ASN1_write_bio_func(i2d: i2d_of_void; const name: PIdAnsiChar; - bp: PBIO; x: PIdAnsiChar; const enc: PEVP_CIPHER; kstr: PIdAnsiChar; klen: TIdC_INT; - cb: ppem_password_cb; u: Pointer):TIdC_INT cdecl; external SSLCLIB_LIB_name name 'PEM_ASN1_write_bio'; - -function PEM_ASN1_read_bio_func(d2i: d2i_OF_void; name: PIdAnsiChar; bp: PBIO; - x: PPointer; cb: ppem_password_cb; u:Pointer): Pointer cdecl; external SSLCLIB_LIB_name name 'PEM_ASN1_read_bio'; -{$ENDIF} - -function PEM_X509_INFO_read_bio_func(bp : PBIO; sk : PSTACK_OF_X509_INFO; - cb : ppem_password_cb; u : Pointer) : PSTACK_OF_X509_INFO cdecl; external SSLCLIB_LIB_name name 'PEM_X509_INFO_read_bio'; - -function PEM_read_bio_X509_AUX_func(bp : PBIO; x : PPX509; - cb : ppem_password_cb; u : Pointer) : PX509 cdecl; external SSLCLIB_LIB_name name 'PEM_read_bio_X509_AUX'; - -{$IFNDEF OPENSSL_NO_DES} -function EVP_des_ede3_cbc_func: PEVP_CIPHER cdecl; external SSLCLIB_LIB_name name 'EVP_des_ede3_cbc'; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_SHA512} -function EVP_sha512_func: PEVP_MD cdecl; external SSLCLIB_LIB_name name 'EVP_sha512'; - -function EVP_sha384_func: PEVP_MD cdecl; external SSLCLIB_LIB_name name 'EVP_sha384'; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_SHA256} -function EVP_sha256_func: PEVP_MD cdecl; external SSLCLIB_LIB_name name 'EVP_sha256'; - -function EVP_sha224_func: PEVP_MD cdecl; external SSLCLIB_LIB_name name 'EVP_sha224'; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_SHA} -function EVP_sha1_func: PEVP_MD cdecl; external SSLCLIB_LIB_name name 'EVP_sha1'; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_MD5} -function EVP_md5_func: PEVP_MD cdecl; external SSLCLIB_LIB_name name 'EVP_md5'; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_MD4} -function EVP_md4_func: PEVP_MD cdecl; external SSLCLIB_LIB_name name 'EVP_md4'; -{$ENDIF} - -//{$IFNDEF OPENSSL_NO_MD2} -//function EVP_md2_func: PEVP_MD cdecl; external SSLCLIB_LIB_name name 'EVP_md2'; -//{$ENDIF} - -procedure EVP_MD_CTX_init_proc(ctx : PEVP_MD_CTX) cdecl; external SSLCLIB_LIB_name name 'EVP_MD_CTX_init'; - -function EVP_MD_CTX_cleanup_func(ctx : PEVP_MD_CTX) : TIdC_Int cdecl; external SSLCLIB_LIB_name name 'EVP_MD_CTX_cleanup'; - -function EVP_MD_CTX_create_func : PEVP_MD_CTX cdecl; external SSLCLIB_LIB_name name 'EVP_MD_CTX_create'; - -procedure EVP_MD_CTX_destroy_proc(ctx : PEVP_MD_CTX) cdecl; external SSLCLIB_LIB_name name 'EVP_MD_CTX_destroy'; - -function EVP_MD_CTX_copy_func(_out : PEVP_MD_CTX; _in: PEVP_MD_CTX) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'EVP_MD_CTX_copy'; - -function EVP_MD_CTX_copy_ex_func(_out : PEVP_MD_CTX; const _in: PEVP_MD_CTX) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'EVP_MD_CTX_copy_ex'; - -function EVP_DigestInit_ex_func(ctx : PEVP_MD_CTX; const AType : PEVP_MD; impl : PENGINE) : TIdC_Int cdecl; external SSLCLIB_LIB_name name 'EVP_DigestInit_ex'; - -function EVP_DigestUpdate_func(ctx : PEVP_MD_CTX; d : Pointer; cnt : size_t) : TIdC_Int cdecl; external SSLCLIB_LIB_name name 'EVP_DigestUpdate'; - -function EVP_DigestFinal_ex_func(ctx : PEVP_MD_CTX; md : PIdAnsiChar; var s : TIdC_UInt) : TIdC_Int cdecl; external SSLCLIB_LIB_name name 'EVP_DigestFinal_ex'; - -function EVP_PKEY_type_func(_type : TIdC_INT): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'EVP_PKEY_type'; - -function EVP_PKEY_new_func: PEVP_PKEY cdecl; external SSLCLIB_LIB_name name 'EVP_PKEY_new'; - -procedure EVP_PKEY_free_proc(pkey: PEVP_PKEY) cdecl; external SSLCLIB_LIB_name name 'EVP_PKEY_free'; - -function EVP_PKEY_assign_func(pkey: PEVP_PKEY; _type: TIdC_INT; key: Pointer): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'EVP_PKEY_assign'; - -function EVP_get_digestbyname_func(const name: PIdAnsiChar): PEVP_MD cdecl; external SSLCLIB_LIB_name name 'EVP_get_digestbyname'; - -{$IFNDEF OPENSSL_NO_HMAC} -procedure HMAC_CTX_init_proc(ctx : PHMAC_CTX) cdecl; external SSLCLIB_LIB_name name 'HMAC_CTX_init'; - -function HMAC_Init_ex_func(ctx : PHMAC_CTX; key : Pointer; len : TIdC_INT; - md : PEVP_MD; impl : PENGINE) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'HMAC_Init_ex'; - -function HMAC_Update_func(ctx : PHMAC_CTX; data : PIdAnsiChar; len : size_t) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'HMAC_Update'; - -function HMAC_Final_func(ctx : PHMAC_CTX; md : PIdAnsiChar; len : PIdC_UINT) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'HMAC_Final'; - -procedure HMAC_CTX_cleanup_proc(ctx : PHMAC_CTX) cdecl; external SSLCLIB_LIB_name name 'HMAC_CTX_cleanup'; -{$ENDIF} - -function OBJ_obj2nid_func(const o: PASN1_OBJECT): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'OBJ_obj2nid'; - -function OBJ_nid2obj_func(n : TIdC_INT) : PASN1_OBJECT cdecl; external SSLCLIB_LIB_name name 'OBJ_nid2obj'; - -function OBJ_nid2ln_func(n : TIdC_INT) : PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'OBJ_nid2ln'; - -function OBJ_nid2sn_func(n : TIdC_INT) : PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'OBJ_nid2sn'; - -function ASN1_INTEGER_set_func(a: PASN1_INTEGER; v: TIdC_LONG): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'ASN1_INTEGER_set'; - -function ASN1_INTEGER_get_func(a: PASN1_INTEGER) : TIdC_LONG cdecl; external SSLCLIB_LIB_name name 'ASN1_INTEGER_get'; - -function ASN1_STRING_type_new_func(_type: TIdC_INT): PASN1_STRING cdecl; external SSLCLIB_LIB_name name 'ASN1_STRING_type_new'; - -procedure ASN1_STRING_free_proc(a: PASN1_STRING) cdecl; external SSLCLIB_LIB_name name 'ASN1_STRING_free'; - -function ASN1_dup_func(i2d : i2d_of_void; d2i : d2i_of_void; x : PIdAnsiChar) : Pointer cdecl; external SSLCLIB_LIB_name name 'ASN1_dup'; - -function CRYPTO_set_mem_functions_func( - m: TCRYPTO_set_mem_functions_m; - r: TCRYPTO_set_mem_functions_r; - f: TCRYPTO_set_mem_functions_f): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'CRYPTO_set_mem_functions'; - -function CRYPTO_malloc_func(num: TIdC_INT; const _file: PIdAnsiChar; line: TIdC_INT): Pointer cdecl; external SSLCLIB_LIB_name name 'CRYPTO_malloc'; - -procedure CRYPTO_free_proc(ptr : Pointer) cdecl; external SSLCLIB_LIB_name name 'CRYPTO_free'; - -procedure CRYPTO_mem_leaks_proc(b:PBIO) cdecl; external SSLCLIB_LIB_name name 'CRYPTO_mem_leaks'; - -function CRYPTO_mem_ctrl_func(mode: TIdC_INT): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'CRYPTO_mem_ctrl'; - -procedure CRYPTO_set_mem_debug_functions_proc( - m: Tset_mem_debug_functions_m; - r: Tset_mem_debug_functions_r; - f : Tset_mem_debug_functions_f; - so : Tset_mem_debug_functions_so; - go : Tset_mem_debug_functions_go) cdecl; external SSLCLIB_LIB_name name 'CRYPTO_set_mem_debug_functions'; - -function PKCS12_create_func(pass, name: PIdAnsiChar; pkey: PEVP_PKEY; cert : PX509; - ca: PSTACK_OF_X509; nid_key, nid_cert, iter, mac_iter, keytype : TIdC_INT) : PPKCS12 cdecl; external SSLCLIB_LIB_name name 'PKCS12_create'; - -function i2d_PKCS12_bio_func(b: PBIO; p12: PPKCS12) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'i2d_PKCS12_bio'; - -procedure PKCS12_free_proc(p12: PPKCS12) cdecl; external SSLCLIB_LIB_name name 'PKCS12_free'; - -//procedure OpenSSL_add_all_algorithms_proc cdecl; external SSLCLIB_LIB_name name 'OpenSSL_add_all_algorithms'; - -procedure OpenSSL_add_all_ciphers_proc cdecl; external SSLCLIB_LIB_name name 'OpenSSL_add_all_ciphers'; - -procedure OpenSSL_add_all_digests_proc cdecl; external SSLCLIB_LIB_name name 'OpenSSL_add_all_digests'; - -procedure EVP_cleanup_proc cdecl; external SSLCLIB_LIB_name name 'EVP_cleanup'; - -function sk_num_func(const x : PSTACK) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'sk_num'; - -function sk_new_func( cmp : Tsk_new_cmp) : PStack cdecl; external SSLCLIB_LIB_name name 'sk_new'; - -function sk_new_null_func: PSTACK cdecl; external SSLCLIB_LIB_name name 'sk_new_null'; - -procedure sk_free_proc(st : PSTACK) cdecl; external SSLCLIB_LIB_name name 'sk_free'; - -function sk_push_func(st: PSTACK; data: PIdAnsiChar): TIdC_INT cdecl; external SSLCLIB_LIB_name name 'sk_push'; - -function sk_dup_func(st : PSTACK) : PSTACK cdecl; external SSLCLIB_LIB_name name 'sk_dup'; - -function sk_find_func(st : PSTACK; Data : PIdAnsiChar) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'sk_find'; - -function sk_value_func(x : PSTACK; i : TIdC_INT) : PIdAnsiChar cdecl; external SSLCLIB_LIB_name name 'sk_value'; - -{$IFDEF OPENSSL_FIPS} -//function FIPS_mode_set_func(onoff : TIdC_INT) : TIdC_INT cdecl; external SSLCLIB_LIB_name name 'FIPS_mode_set'; - -//function FIPS_mode_func: TIdC_INT cdecl; external SSLCLIB_LIB_name name 'FIPS_mode'; -{$ENDIF} - -procedure LoadSymbols; -begin - SSL_CTX_set_cipher_list := SSL_CTX_set_cipher_list_func; - SSL_CTX_new := SSL_CTX_new_func; - SSL_CTX_free := SSL_CTX_free_proc; - SSL_set_fd := SSL_set_fd_func; - SSL_CTX_use_PrivateKey_file := SSL_CTX_use_PrivateKey_file_func; - SSL_CTX_use_PrivateKey := SSL_CTX_use_PrivateKey_func; - SSL_CTX_use_certificate := SSL_CTX_use_certificate_func; - SSL_CTX_use_certificate_file := SSL_CTX_use_certificate_file_func; - SSL_load_error_strings := SSL_load_error_strings_proc; - SSL_state_string_long := SSL_state_string_long_func; - SSL_alert_desc_string_long := SSL_alert_desc_string_long_func; - SSL_alert_type_string_long := SSL_alert_type_string_long_func; - - SSL_get_peer_certificate := SSL_get_peer_certificate_func; - SSL_CTX_set_verify := SSL_CTX_set_verify_proc; - SSL_CTX_set_verify_depth := SSL_CTX_set_verify_depth_proc; - SSL_CTX_get_verify_depth := SSL_CTX_get_verify_depth_func; - SSL_CTX_set_default_passwd_cb := SSL_CTX_set_default_passwd_cb_proc; - SSL_CTX_set_default_passwd_cb_userdata:= SSL_CTX_set_default_passwd_cb_userdata_proc; - SSL_CTX_check_private_key := SSL_CTX_check_private_key_func; - SSL_new := SSL_new_func; - SSL_free := SSL_free_proc; - SSL_accept := SSL_accept_func; - SSL_connect := SSL_connect_func; - SSL_read := SSL_read_func; - SSL_peek := SSL_peek_func; - SSL_pending := SSL_pending_func; - SSL_write := SSL_write_func; - SSL_ctrl := SSL_ctrl_func; - SSL_callback_ctrl := SSL_callback_ctrl_func; - SSL_CTX_ctrl := SSL_CTX_ctrl_func; - SSL_CTX_callback_ctrl := SSL_CTX_callback_ctrl_func; - SSL_get_error := SSL_get_error_func; - {$IFNDEF OPENSSL_NO_SSL2} - SSLv2_method := SSLv2_method_func; - SSLv2_server_method := SSLv2_server_method_func; - SSLv2_client_method := SSLv2_client_method_func; - {$ELSE} - SSLv2_method := nil; - SSLv2_server_method := nil; - SSLv2_client_method := nil; - {$ENDIF} - SSLv3_method := SSLv3_method_func; - SSLv3_server_method := SSLv3_server_method_func; - SSLv3_client_method := SSLv3_client_method_func; - SSLv23_method := SSLv23_method_func; - SSLv23_server_method := SSLv23_server_method_func; - SSLv23_client_method := SSLv23_client_method_func; - TLSv1_method := TLSv1_method_func; - TLSv1_server_method := TLSv1_server_method_func; - TLSv1_client_method := TLSv1_client_method_func; - TLSv1_1_method := TLSv1_1_method_func; - TLSv1_1_server_method := TLSv1_1_server_method_func; - TLSv1_1_client_method := TLSv1_1_client_method_func; - TLSv1_2_method := TLSv1_2_method_func; - TLSv1_2_server_method := TLSv1_2_server_method_func; - TLSv1_2_client_method := TLSv1_2_client_method_func; - DTLSv1_method := DTLSv1_method_func; - DTLSv1_server_method := DTLSv1_server_method_func; - DTLSv1_client_method := DTLSv1_client_method_func; - SSL_shutdown := SSL_shutdown_func; - SSL_set_connect_state := SSL_set_connect_state_proc; - SSL_set_accept_state := SSL_set_accept_state_proc; - SSL_set_shutdown := SSL_set_shutdown_proc; - SSL_CTX_load_verify_locations := SSL_CTX_load_verify_locations_func; - SSL_get_session := SSL_get_session_func; - SSLeay_add_ssl_algorithms := SSLeay_add_ssl_algorithms_func; - SSL_SESSION_get_id := SSL_SESSION_get_id_func; - SSL_copy_session_id := SSL_copy_session_id_proc; - // CRYPTO LIB - _SSLeay_version := SSLeay_version_func; - SSLeay := SSLeay_func; - d2i_X509_NAME := d2i_X509_NAME_func; - i2d_X509_NAME := i2d_X509_NAME_func; - X509_NAME_oneline := X509_NAME_oneline_func; - X509_NAME_cmp := X509_NAME_cmp_func; - X509_NAME_hash := X509_NAME_hash_func; - X509_set_issuer_name := X509_set_issuer_name_func; - X509_get_issuer_name := X509_get_issuer_name_func; - X509_set_subject_name := X509_set_subject_name_func; - X509_get_subject_name := X509_get_subject_name_func; - X509_digest := X509_digest_func; - X509_LOOKUP_ctrl := X509_LOOKUP_ctrl_func; - X509_STORE_add_cert := X509_STORE_add_cert_func; - X509_STORE_add_crl := X509_STORE_add_crl_func; - X509_STORE_CTX_get_ex_data := X509_STORE_CTX_get_ex_data_func; - X509_STORE_CTX_get_error := X509_STORE_CTX_get_error_func; - X509_STORE_CTX_set_error := X509_STORE_CTX_set_error_proc; - X509_STORE_CTX_get_error_depth := X509_STORE_CTX_get_error_depth_func; - X509_STORE_CTX_get_current_cert := X509_STORE_CTX_get_current_cert_func; - X509_STORE_add_lookup := X509_STORE_add_lookup_func; - X509_STORE_load_locations := X509_STORE_load_locations_func; - i2d_DSAPrivateKey := i2d_DSAPrivateKey_func; - d2i_DSAPrivateKey := d2i_DSAPrivateKey_func; - d2i_PrivateKey := d2i_PrivateKey_func; - d2i_PrivateKey_bio := d2i_PrivateKey_bio_func; - X509_sign := X509_sign_func; - X509_REQ_sign := X509_REQ_sign_func; - X509_REQ_add_extensions := X509_REQ_add_extensions_func; - X509V3_EXT_conf_nid := X509V3_EXT_conf_nid_func; - X509_EXTENSION_create_by_NID := X509_EXTENSION_create_by_NID_func; - X509V3_set_ctx := X509V3_set_ctx_proc; - X509_EXTENSION_free := X509_EXTENSION_free_proc; - X509_add_ext := X509_add_ext_func; - {$IFNDEF OPENSSL_NO_BIO} - //X509_print - X509_print := X509_print_func; - {$ENDIF} -// _RAND_cleanup := RAND_cleanup_func; -// _RAND_bytes := RAND_bytes_func; -// _RAND_pseudo_bytes := RAND_pseudo_bytes_func; -// _RAND_seed := RAND_seed_proc; -// _RAND_add := RAND_add_proc; -// _RAND_status := RAND_status_func; - {$IFDEF SYS_WIN} - _RAND_screen := RAND_screen_proc; - _RAND_event := RAND_event_func; - {$ENDIF} - {$IFNDEF OPENSSL_NO_DES} - // 3DES - DES_set_odd_parity := DES_set_odd_parity_proc; - DES_set_key := DES_set_key_func; - DES_ecb_encrypt := DES_ecb_encrypt_proc; -// Id_ossl_old_des_set_odd_parity := Id_ossl_old_des_set_odd_parity_proc; -// Id_ossl_old_des_set_key := Id_ossl_old_des_set_key_func; -// Id_ossl_old_des_ecb_encrypt := Id_ossl_old_des_ecb_encrypt_proc; - {$ENDIF} - // More SSL functions - SSL_set_ex_data := SSL_set_ex_data_func; - SSL_get_ex_data := SSL_get_ex_data_func; - SSL_load_client_CA_file := SSL_load_client_CA_file_func; - SSL_CTX_set_client_CA_list := SSL_CTX_set_client_CA_list_proc; - SSL_CTX_set_default_verify_paths := SSL_CTX_set_default_verify_paths_func; - SSL_CTX_set_session_id_context := SSL_CTX_set_session_id_context_func; - SSL_CIPHER_description := SSL_CIPHER_description_func; - SSL_get_current_cipher := SSL_get_current_cipher_func; - SSL_CIPHER_get_name := SSL_CIPHER_get_name_func; - SSL_CIPHER_get_version := SSL_CIPHER_get_version_func; - SSL_CIPHER_get_bits := SSL_CIPHER_get_bits_func; - // Thread safe - _CRYPTO_lock := CRYPTO_lock_proc; - _CRYPTO_num_locks := CRYPTO_num_locks_func; - CRYPTO_set_locking_callback := CRYPTO_set_locking_callback_proc; - {$IFNDEF WIN32_OR_WIN64} -{ -In OpenSSL 1.0.0, you should use these callback functions instead of the -depreciated set_id_callback. They are not in the older 0.9.8 OpenSSL series so -we have to handle both cases. -} - CRYPTO_THREADID_set_callback := CRYPTO_THREADID_set_callback_func; - CRYPTO_THREADID_set_numeric := CRYPTO_THREADID_set_numeric_proc; - CRYPTO_THREADID_set_pointer := CRYPTO_THREADID_set_pointer_proc; {Do not localize} -// if not assigned(CRYPTO_THREADID_set_callback) then begin -// @CRYPTO_set_id_callback := LoadFunctionCLib(fn_CRYPTO_set_id_callback); -// end; - {$ENDIF} - ERR_put_error := ERR_put_error_proc; - ERR_get_error := ERR_get_error_func; - ERR_peek_error := ERR_peek_error_func; - ERR_peek_last_error := ERR_peek_last_error_func; - ERR_clear_error := ERR_clear_error_proc; - ERR_error_string := ERR_error_string_func; - ERR_error_string_n := ERR_error_string_n_proc; - ERR_lib_error_string := ERR_lib_error_string_func; - ERR_func_error_string := ERR_func_error_string_func; - ERR_reason_error_string := ERR_reason_error_string_func; - ERR_load_ERR_strings := ERR_load_ERR_strings_proc; - ERR_load_crypto_strings := ERR_load_crypto_strings_proc; - ERR_free_strings := ERR_free_strings_proc; - ERR_remove_thread_state := ERR_remove_thread_state_proc; -// if not Assigned(ERR_remove_thread_state) then begin -// @ERR_remove_state := LoadFunctionCLib(fn_ERR_remove_state); -// end; - CRYPTO_cleanup_all_ex_data := CRYPTO_cleanup_all_ex_data_proc; - SSL_COMP_get_compression_methods := SSL_COMP_get_compression_methods_func; - SSL_COMP_free_compression_methods := SSL_COMP_free_compression_methods_func; - sk_pop_free := sk_pop_free_proc; - //RSA - RSA_free := RSA_free_proc; - RSA_generate_key := RSA_generate_key_func; - RSA_check_key := RSA_check_key_func; - RSA_generate_key_ex := RSA_generate_key_ex_func; - RSA_new := RSA_new_func; - RSA_size := RSA_size_func; - RSA_private_decrypt := RSA_private_decrypt_func; - RSA_public_encrypt := RSA_public_encrypt_func; - //DH - DH_free := DH_free_proc; - //BN - BN_new := BN_new_func; - BN_free := BN_free_proc; - BN_hex2bn := BN_hex2bn_func; - BN_bn2hex := BN_bn2hex_func; - BN_set_word := BN_set_word_func; - //BIO - BIO_new := BIO_new_func; - BIO_free := BIO_free_func; - BIO_new_mem_buf := BIO_new_mem_buf_func; - BIO_s_mem := BIO_s_mem_func; - BIO_s_file := BIO_s_file_func; - BIO_ctrl := BIO_ctrl_func; - BIO_int_ctrl := BIO_int_ctrl_func; - BIO_ptr_ctrl := BIO_ptr_ctrl_func; - BIO_new_file := BIO_new_file_func; - BIO_puts := BIO_puts_func; - BIO_read := BIO_read_func; - BIO_write := BIO_write_func; - //i2d - i2d_X509_bio := i2d_X509_bio_func; - i2d_PrivateKey_bio := i2d_PrivateKey_bio_func; - d2i_X509_bio := d2i_X509_bio_func; - i2d_X509_REQ_bio := i2d_X509_REQ_bio_func; - i2d_PKCS7 := i2d_PKCS7_func; - d2i_PKCS7 := d2i_PKCS7_func; - i2d_X509 := i2d_X509_func; - d2i_X509 := d2i_X509_func; - i2d_X509_REQ := i2d_X509_REQ_func; - d2i_X509_REQ := d2i_X509_REQ_func; - i2d_X509_CRL := i2d_X509_CRL_func; - d2i_X509_CRL := d2i_X509_CRL_func; - i2d_RSAPrivateKey := i2d_RSAPrivateKey_func; - d2i_RSAPrivateKey := d2i_RSAPrivateKey_func; - i2d_RSAPublicKey := i2d_RSAPublicKey_func; - d2i_RSAPublicKey := d2i_RSAPublicKey_func; - i2d_PrivateKey := i2d_PrivateKey_func; - d2i_PrivateKey := d2i_PrivateKey_func; - - i2d_DSAparams := i2d_DSAparams_func; - d2i_DSAparams := d2i_DSAparams_func; - i2d_DHparams := i2d_DHparams_func; - d2i_DHparams := d2i_DHparams_func; - i2d_NETSCAPE_CERT_SEQUENCE := i2d_NETSCAPE_CERT_SEQUENCE_func; - d2i_NETSCAPE_CERT_SEQUENCE := d2i_NETSCAPE_CERT_SEQUENCE_func; - i2d_PUBKEY := i2d_PUBKEY_func; - d2i_PUBKEY := d2i_PUBKEY_func; - - //X509 - X509_get_default_cert_file := X509_get_default_cert_file_func; - X509_get_default_cert_file_env := X509_get_default_cert_file_env_func; - X509_new := X509_new_func; - X509_free := X509_free_proc; - X509_REQ_new := X509_REQ_new_func; - X509_REQ_free := X509_REQ_free_proc; - X509_to_X509_REQ := X509_to_X509_REQ_func; - X509_NAME_new := X509_NAME_new_func; - X509_NAME_free := X509_NAME_free_proc; - X509_NAME_add_entry_by_txt := X509_NAME_add_entry_by_txt_func; - X509_INFO_free := X509_INFO_free_proc; - X509_set_version := X509_set_version_func; - X509_get_serialNumber := X509_get_serialNumber_func; - X509_gmtime_adj := X509_gmtime_adj_func; - X509_set_notBefore := X509_set_notBefore_func; - X509_set_notAfter := X509_set_notAfter_func; - X509_set_pubkey := X509_set_pubkey_func; - X509_REQ_set_pubkey := X509_REQ_set_pubkey_func; - X509_PUBKEY_get := X509_PUBKEY_get_func; - X509_verify := X509_verify_func; - //PEM - {$IFNDEF SSLEAY_MACROS} - _PEM_read_bio_X509 := PEM_read_bio_X509_func; - _PEM_read_bio_X509_REQ := PEM_read_bio_X509_REQ_func; - _PEM_read_bio_X509_CRL := PEM_read_bio_X509_CRL_func; - _PEM_read_bio_RSAPrivateKey := PEM_read_bio_RSAPrivateKey_func; - _PEM_read_bio_RSAPublicKey := PEM_read_bio_RSAPublicKey_func; - _PEM_read_bio_DSAPrivateKey := PEM_read_bio_DSAPrivateKey_func; - _PEM_read_bio_PrivateKey := PEM_read_bio_PrivateKey_func; - _PEM_read_bio_PKCS7 := PEM_read_bio_PKCS7_func; - _PEM_read_bio_DHparams := PEM_read_bio_DHparams_func; - _PEM_read_bio_DSAparams := PEM_read_bio_DSAparams_func; - _PEM_read_bio_NETSCAPE_CERT_SEQUENCE := PEM_read_bio_NETSCAPE_CERT_SEQUENCE_func; - _PEM_read_bio_PUBKEY := PEM_read_bio_PUBKEY_func; - _PEM_write_bio_X509 := PEM_write_bio_X509_func; - _PEM_write_bio_X509_REQ := PEM_write_bio_X509_REQ_func; - _PEM_write_bio_X509_CRL := PEM_write_bio_X509_CRL_func; - _PEM_write_bio_RSAPrivateKey := PEM_write_bio_RSAPrivateKey_func; - _PEM_write_bio_RSAPublicKey := PEM_write_bio_RSAPublicKey_func; - _PEM_write_bio_DSAPrivateKey := PEM_write_bio_DSAPrivateKey_func; - _PEM_write_bio_PrivateKey := PEM_write_bio_PrivateKey_func; - _PEM_write_bio_PKCS7 := PEM_write_bio_PKCS7_func; - _PEM_write_bio_DHparams := PEM_write_bio_DHparams_func; - _PEM_write_bio_DSAparams := PEM_write_bio_DSAparams_func; - _PEM_write_bio_NETSCAPE_CERT_SEQUENCE := PEM_write_bio_NETSCAPE_CERT_SEQUENCE_func; - _PEM_write_bio_PKCS8PrivateKey := PEM_write_bio_PKCS8PrivateKey_func; - _PEM_write_bio_PUBKEY := PEM_write_bio_PUBKEY_func; - {$ELSE} - PEM_ASN1_write_bio := PEM_ASN1_write_bio_func; - PEM_ASN1_read_bio := PEM_ASN1_read_bio_func; - {$ENDIF} - PEM_X509_INFO_read_bio := PEM_X509_INFO_read_bio_func; - PEM_read_bio_X509_AUX := PEM_read_bio_X509_AUX_func; - //EVP - {$IFNDEF OPENSSL_NO_DES} - EVP_des_ede3_cbc := EVP_des_ede3_cbc_func; - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA512} - EVP_sha512 := EVP_sha512_func; - EVP_sha384 := EVP_sha384_func; - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA256} - EVP_sha256 := EVP_sha256_func; - EVP_sha224 := EVP_sha224_func; - {$ENDIF} - {$IFNDEF OPENSSL_NO_SHA} - EVP_sha1 := EVP_sha1_func; - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD5} - EVP_md5 := EVP_md5_func; - {$ENDIF} - {$IFNDEF OPENSSL_NO_MD4} - EVP_md4 := EVP_md4_func; - {$ENDIF} -// {$IFNDEF OPENSSL_NO_MD2} -// EVP_md2 := EVP_md2_func; -// {$ENDIF} - EVP_MD_CTX_init := EVP_MD_CTX_init_proc; - EVP_MD_CTX_cleanup := EVP_MD_CTX_cleanup_func; - EVP_MD_CTX_create := EVP_MD_CTX_create_func; - EVP_MD_CTX_destroy := EVP_MD_CTX_destroy_proc; - EVP_MD_CTX_copy := EVP_MD_CTX_copy_func; - EVP_MD_CTX_copy_ex := EVP_MD_CTX_copy_ex_func; - EVP_DigestInit_ex := EVP_DigestInit_ex_func; - EVP_DigestUpdate := EVP_DigestUpdate_func; - EVP_DigestFinal_ex := EVP_DigestFinal_ex_func; - EVP_MD_CTX_cleanup := EVP_MD_CTX_cleanup_func; - EVP_PKEY_type := EVP_PKEY_type_func; - EVP_PKEY_new := EVP_PKEY_new_func; - EVP_PKEY_free := EVP_PKEY_free_proc; - EVP_PKEY_assign := EVP_PKEY_assign_func; - EVP_get_digestbyname := EVP_get_digestbyname_func; - //HMAC - {$IFNDEF OPENSSL_NO_HMAC} - HMAC_CTX_init := HMAC_CTX_init_proc; -// if IsOpenSSL_1x then begin - _1_0_HMAC_Init_ex := HMAC_Init_ex_func; - _1_0_HMAC_Update := HMAC_Update_func; - _1_0_HMAC_Final := HMAC_Final_func; -// end else begin -// @_HMAC_Init_ex := LoadFunctionCLib(fn_HMAC_Init_ex); -// @_HMAC_Update := LoadFunctionCLib(fn_HMAC_Update); -// @_HMAC_Final := LoadFunctionCLib(fn_HMAC_Final); -// end; - HMAC_CTX_cleanup := HMAC_CTX_cleanup_proc; - {$ENDIF} - //OBJ - OBJ_obj2nid := OBJ_obj2nid_func; - OBJ_nid2obj := OBJ_nid2obj_func; - OBJ_nid2ln := OBJ_nid2ln_func; - OBJ_nid2sn := OBJ_nid2sn_func; - //ASN1 - ASN1_INTEGER_set := ASN1_INTEGER_set_func; - ASN1_INTEGER_get := ASN1_INTEGER_get_func; - ASN1_STRING_type_new := ASN1_STRING_type_new_func; - ASN1_STRING_free := ASN1_STRING_free_proc; - ASN1_dup := ASN1_dup_func; - CRYPTO_set_mem_functions := CRYPTO_set_mem_functions_func; - CRYPTO_malloc := CRYPTO_malloc_func; - CRYPTO_free := CRYPTO_free_proc; - CRYPTO_mem_leaks := CRYPTO_mem_leaks_proc; - CRYPTO_mem_ctrl := CRYPTO_mem_ctrl_func; - CRYPTO_set_mem_debug_functions := CRYPTO_set_mem_debug_functions_proc; - PKCS12_create := PKCS12_create_func; - i2d_PKCS12_bio := i2d_PKCS12_bio_func; - PKCS12_free := PKCS12_free_proc; -// OpenSSL_add_all_algorithms := OpenSSL_add_all_algorithms_proc; - OpenSSL_add_all_ciphers := OpenSSL_add_all_ciphers_proc; - OpenSSL_add_all_digests := OpenSSL_add_all_digests_proc; - EVP_cleanup := EVP_cleanup_proc; - - sk_num := sk_num_func; - sk_new := sk_new_func; - sk_new_null := sk_new_null_func; - sk_free := sk_free_proc; - sk_push := sk_push_func; - sk_dup := sk_dup_func; - sk_find := sk_find_func; - sk_value := sk_value_func; - {$IFDEF OPENSSL_FIPS} -// _FIPS_mode_set := FIPS_mode_set_func; -// _FIPS_mode := FIPS_mode_func; - {$ENDIF} -end; - -initialization - LoadSymbols; - -{$ENDIF} - -end. diff --git a/Lib/Protocols/IdSSLOpenSSLLoader.pas b/Lib/Protocols/IdSSLOpenSSLLoader.pas new file mode 100644 index 000000000..ec74f6449 --- /dev/null +++ b/Lib/Protocols/IdSSLOpenSSLLoader.pas @@ -0,0 +1,372 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2024, the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ Contributers: } +{ Here could be your name } +{ } +{******************************************************************************} + +unit IdSSLOpenSSLLoader; + +{$IFDEF MSWINDOWS} +{$DEFINE WINDOWS} +{$ENDIF} + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +interface + +uses + Classes, IdGlobal, IdCTypes; + +type + { IOpenSSLLoader } + + IOpenSSLLoader = interface + ['{BBB0F670-CC26-42BC-A9E0-33647361941A}'] + + function GetOpenSSLPath: string; + function GetSSLLibVersions: string; + procedure SetOpenSSLPath(const Value: string); + function GetFailedToLoad: TStringList; + + function Load: Boolean; + procedure SetSSLLibVersions(AValue: string); + procedure Unload; + + property SSLLibVersions: string read GetSSLLibVersions write SetSSLLibVersions; + property OpenSSLPath: string read GetOpenSSLPath write SetOpenSSLPath; + property FailedToLoad: TStringList read GetFailedToLoad; + end; + + TOpenSSLLoadProc = procedure(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + TOpenSSLUnloadProc = procedure; + +function GetOpenSSLLoader: IOpenSSLLoader; + + +procedure Register_SSLLoader(LoadProc: TOpenSSLLoadProc; module_name: string); +procedure Register_SSLUnloader(UnloadProc: TOpenSSLUnloadProc); + +implementation + +uses + IdSSLOpenSSLExceptionHandlers, + IdResourceStringsOpenSSL + +{$IFNDEF USE_EXTERNAL_LIBRARY} + {$IFDEF WINDOWS},Windows{$ENDIF} + {$IFDEF FPC},dynlibs{$ENDIF} + + ,IdSSLOpenSSLConsts, + IdThreadSafe, + SysUtils +{$ENDIF} + ; + +{$if not declared(NilHandle)} +const + NilHandle = 0; +{$ifend} + +var + GOpenSSLLoader: IOpenSSLLoader = nil; + GLibCryptoLoadList: TList = nil; + GLibSSLLoadList: TList = nil; + GUnLoadList: TList = nil; + +function GetOpenSSLLoader: IOpenSSLLoader; +begin + Result := GOpenSSLLoader; +end; + +procedure Register_SSLLoader(LoadProc: TOpenSSLLoadProc; module_name: string); +begin + if GLibCryptoLoadList = nil then + GLibCryptoLoadList := TList.Create; + if GLibSSLLoadList = nil then + GLibSSLLoadList := TList.Create; + + if module_name = 'LibCrypto' then + GLibCryptoLoadList.Add(@LoadProc) + else + if module_name = 'LibSSL' then + GLibSSLLoadList.Add(@LoadProc) + else + raise EIdOpenSSLError.CreateFmt(ROSUnrecognisedLibName,[module_name]); +end; + +procedure Register_SSLUnloader(UnloadProc: TOpenSSLUnloadProc); +begin + if GUnLoadList = nil then + GUnLoadList := TList.Create; + GUnLoadList.Add(@UnloadProc); +end; + +{$IFNDEF USE_EXTERNAL_LIBRARY} +type + + { TOpenSSLLoader } + + TOpenSSLLoader = class(TInterfacedObject, IOpenSSLLoader) + private + FLibCrypto: TIdLibHandle; + FLibSSL: TIdLibHandle; + FOpenSSLPath: string; + FFailed: TStringList; + FSSLLibVersions: string; + FLibraryLoaded: TIdThreadSafeBoolean; + FFailedToLoad: boolean; + function FindLibrary(LibName, LibVersions: string): TIdLibHandle; + function GetSSLLibVersions: string; + procedure SetSSLLibVersions(AValue: string); + function GetOpenSSLPath: string; + procedure SetOpenSSLPath(const Value: string); + function GetFailedToLoad: TStringList; + public + constructor Create; + destructor Destroy; override; + + function Load: Boolean; + procedure Unload; + + property OpenSSLPath: string read GetOpenSSLPath write SetOpenSSLPath; + property FailedToLoad: TStringList read GetFailedToLoad; + end; + +{ TOpenSSLLoader } + +constructor TOpenSSLLoader.Create; +begin + inherited; + FFailed := TStringList.Create(); + FLibraryLoaded := TIdThreadSafeBoolean.Create; + FSSLLibVersions := DefaultLibVersions; + OpenSSLPath := GetEnvironmentVariable(OpenSSLLibraryPath) +end; + +destructor TOpenSSLLoader.Destroy; +begin + if FLibraryLoaded <> nil then + FLibraryLoaded.Free; + if FFailed <> nil then + FFailed.Free; + inherited; +end; + +function TOpenSSLLoader.FindLibrary(LibName, LibVersions: string): TIdLibHandle; + + function DoLoadLibrary(FullLibName: string): TIdLibHandle; + begin + Result := SafeLoadLibrary(FullLibName, {$IFDEF WINDOWS}SEM_FAILCRITICALERRORS {$ELSE} 0 {$ENDIF}); + end; + +var LibVersionsList: TStringList; + i: integer; +begin + Result := NilHandle; + if LibVersions = '' then + Result := DoLoadLibrary(OpenSSLPath + LibName) + else + begin + LibVersionsList := TStringList.Create; + try + LibVersionsList.Delimiter := DirListDelimiter; + LibVersionsList.StrictDelimiter := true; + LibVersionsList.DelimitedText := LibVersions; {Split list on delimiter} + for i := 0 to LibVersionsList.Count - 1 do + begin + Result := DoLoadLibrary(OpenSSLPath + LibName + LibVersionsList[i]); + if Result <> NilHandle then + break; + end; + finally + LibVersionsList.Free; + end; + end; +end; + + +function TOpenSSLLoader.Load: Boolean; +type + TOpenSSL_version_num = function: TIdC_ULONG; cdecl; + +var i: integer; + OpenSSL_version_num: TOpenSSL_version_num; + SSLVersionNo: TIdC_ULONG; + LegacyDLLsLoaded: boolean; + + {$IFDEF WINDOWS} + procedure ProcessFailedList; + var AllowedList: TStringList; + i,j: integer; + begin + AllowedList := TStringList.Create; + try + AllowedList.Delimiter := ','; + AllowedList.StrictDelimiter := true; + AllowedList.DelimitedText := LegacyAllowFailed; + for i := 0 to AllowedList.Count - 1 do + begin + j := FFailed.IndexOf(AllowedList[i]); + if j <> -1 then + FFailed.Delete(j); + end; + finally + AllowedList.Free; + end; + end; + {$ENDIF} + +begin //FI:C101 + Result := not FFailedToLoad; + LegacyDLLsLoaded := false; + if not Result then + Exit; + FLibraryLoaded.Lock(); + try + if not FLibraryLoaded.Value then + begin + FLibCrypto := FindLibrary(CLibCryptoBase + LibSuffix,FSSLLibVersions); + FLibSSL := FindLibrary(CLibSSLBase + LibSuffix,FSSLLibVersions); + Result := not (FLibCrypto = IdNilHandle) and not (FLibSSL = IdNilHandle); + {$IFDEF WINDOWS} + if not Result then + begin + {try the legacy dll names} + FLibCrypto := FindLibrary(LegacyLibCrypto,''); + FLibSSL := FindLibrary(LegacyLibssl,''); + Result := not (FLibCrypto = IdNilHandle) and not (FLibSSL = IdNilHandle); + LegacyDLLsLoaded := Result; + end; + {$ENDIF} + if not Result then + Exit; + + {Load Version number} + OpenSSL_version_num := LoadLibFunction(FLibCrypto, 'OpenSSL_version_num'); + if not assigned(OpenSSL_version_num) then + OpenSSL_version_num := LoadLibFunction(FLibCrypto, 'SSLeay'); + if not assigned(OpenSSL_version_num) then + raise EIdOpenSSLError.Create(ROSSLCantGetSSLVersionNo); + + SSLVersionNo := OpenSSL_version_num(); + if SSLVersionNo < min_supported_ssl_version then + raise EIdOpenSSLError.CreateFmt(RSOSSUnsupportedVersion,[SSLVersionNo]); + + SSLVersionNo := SSLVersionNo shr 12; + + + for i := 0 to GLibCryptoLoadList.Count - 1 do + TOpenSSLLoadProc(GLibCryptoLoadList[i])(FLibCrypto,SSLVersionNo,FFailed); + + for i := 0 to GLibSSLLoadList.Count - 1 do + TOpenSSLLoadProc(GLibSSLLoadList[i])(FLibSSL,SSLVersionNo,FFailed); + + {$IFNDEF OPENSSL_IGNORE_MISSING_FUNCTIONS} + {$IFDEF WINDOWS} + if LegacyDLLsLoaded and (FFailed.Count > 0) then + ProcessFailedList; + {$ENDIF} + FFailedToLoad := FFailed.Count > 0; + Result := not FFailedToLoad; + + {$IFDEF DEBUG} + if not Result then + begin + writeln; + writeln(RSOSSLProcLoadErrorHdr); + for i := 0 to FFailed.Count - 1 do + writeln(FFailed[i]); + end; + {$ENDIF} + {$ENDIF} + end; + FLibraryLoaded.Value := true; + finally + FLibraryLoaded.Unlock(); + end; +end; + +function TOpenSSLLoader.GetSSLLibVersions: string; +begin + Result := FSSLLibVersions; +end; + +procedure TOpenSSLLoader.SetSSLLibVersions(AValue: string); +begin + FSSLLibVersions := AValue; +end; + +function TOpenSSLLoader.GetOpenSSLPath: string; +begin + Result := FOpenSSLPath +end; + +procedure TOpenSSLLoader.SetOpenSSLPath(const Value: string); +begin + if Value = '' then + FOpenSSLPath := '' + else + FOpenSSLPath := IncludeTrailingPathDelimiter(Value); +end; + +function TOpenSSLLoader.GetFailedToLoad: TStringList; +begin + Result := FFailed; +end; + +procedure TOpenSSLLoader.Unload; +var i: integer; +begin //FI:C101 + FLibraryLoaded.Lock(); + try + if FLibraryLoaded.Value then + begin + for i := 0 to GUnLoadList.Count - 1 do + TOpenSSLUnloadProc(GUnLoadList[i]); + + FFailed.Clear(); + + if FLibSSL <> NilHandle then + FreeLibrary(FLibSSL); + if FLibCrypto <> NilHandle then + FreeLibrary(FLibCrypto); + FLibSSL := NilHandle; + FLibCrypto := NilHandle; + end; + FFailedToLoad := false; + FLibraryLoaded.Value := false; + finally + FLibraryLoaded.Unlock(); + end; +end; + +{$ENDIF} + +initialization +{$IFNDEF USE_EXTERNAL_LIBRARY} + GOpenSSLLoader := TOpenSSLLoader.Create(); +{$ENDIF} + +finalization + if GLibCryptoLoadList <> nil then GLibCryptoLoadList.Free; + if GLibSSLLoadList <> nil then GLibSSLLoadList.Free; + if GUnLoadList <> nil then GUnLoadList.Free; +end. diff --git a/Lib/Protocols/IdSSLOpenSSLUtils.pas b/Lib/Protocols/IdSSLOpenSSLUtils.pas deleted file mode 100644 index af8f2c556..000000000 --- a/Lib/Protocols/IdSSLOpenSSLUtils.pas +++ /dev/null @@ -1,1088 +0,0 @@ -unit IdSSLOpenSSLUtils; - -interface - -{$I IdCompilerDefines.inc} - -uses - IdCTypes, - IdSSLOpenSSLHeaders, - Classes; - -type - TIdSSLULong = packed record - case Byte of - 0: (B1, B2, B3, B4: Byte); - 1: (W1, W2: Word); - 2: (L1: Longint); - 3: (C1: LongWord); - end; - - TIdSSLEVP_MD = record - Length: TIdC_UINT; - MD: Array [0 .. EVP_MAX_MD_SIZE - 1] of AnsiChar; - end; - - TIdSSLByteArray = record - Length: TIdC_INT; - Data: PAnsiChar; - End; - -function LoadOpenSSLLibrary: Boolean; -procedure UnLoadOpenSSLLibrary; - // locking callback stuff -procedure LockPasswordCB_Enter; -procedure LockPasswordCB_Leave; -procedure LockInfoCB_Enter; -procedure LockInfoCB_Leave; -procedure LockVerifyCB_Enter; -procedure LockVerifyCB_Leave; -// -function AddMins(const DT: TDateTime; const Mins: Extended): TDateTime; -function AddHrs(const DT: TDateTime; const Hrs: Extended): TDateTime; -function GetLocalTime(const DT: TDateTime): TDateTime; {$IFDEF HAS_DEPRECATED}deprecated{$IFDEF HAS_DEPRECATED_MSG} 'Use IdGlobal.UTCTimeToLocalTime()'{$ENDIF};{$ENDIF} - -function IndySSL_load_client_CA_file(const AFileName: String) : PSTACK_OF_X509_NAME; -function IndySSL_CTX_use_PrivateKey_file(ctx: PSSL_CTX; const AFileName: String; - AType: Integer): Boolean; -function IndySSL_CTX_use_certificate_file(ctx: PSSL_CTX; - const AFileName: String; AType: Integer): Boolean; -function IndyX509_STORE_load_locations(ctx: PX509_STORE; - const AFileName, APathName: String): TIdC_INT; -function IndySSL_CTX_load_verify_locations(ctx: PSSL_CTX; - const ACAFile, ACAPath: String): TIdC_INT; -procedure DumpCert(AOut: TStrings; AX509: PX509); -procedure SslLockingCallback(mode, n: TIdC_INT; Afile: PAnsiChar; - line: TIdC_INT)cdecl; -procedure PrepareOpenSSLLocking; -{$IFNDEF WIN32_OR_WIN64} -function _GetThreadID: TIdC_ULONG; cdecl; -{$ENDIF} -// Note that I define UCTTime as PASN1_STRING -function UTCTime2DateTime(UCTTime: PASN1_UTCTIME): TDateTime; - -{ function RSACallback(sslSocket: PSSL; e: Integer; KeyLength: Integer):PRSA; cdecl; -} -function LogicalAnd(A, B: Integer): Boolean; -function BytesToHexString(APtr: Pointer; ALen: Integer): String; -function MDAsString(const AMD: TIdSSLEVP_MD): String; -procedure GetStateVars(const sslSocket: PSSL; AWhere, Aret: TIdC_INT; var VTypeStr, VMsg : String); - -{$IFDEF STRING_IS_UNICODE} - {$IFDEF WINDOWS} -{ - This is for some file lookup definitions for a LOOKUP method that - uses Unicode filesnames instead of ASCII or UTF8. It is not meant to be portable - at all. -} -function by_Indy_unicode_file_ctrl(ctx: PX509_LOOKUP; cmd: TIdC_INT; - const argc: PAnsiChar; argl: TIdC_LONG; out ret: PAnsiChar): TIdC_INT; - cdecl; forward; - -const - Indy_x509_unicode_file_lookup: X509_LOOKUP_METHOD = - (name: PAnsiChar('Load file into cache'); new_item: nil; // * new */ - free: nil; // * free */ - init: nil; // * init */ - shutdown: nil; // * shutdown */ - ctrl: by_Indy_unicode_file_ctrl; // * ctrl */ - get_by_subject: nil; // * get_by_subject */ - get_by_issuer_serial: nil; // * get_by_issuer_serial */ - get_by_fingerprint: nil; // * get_by_fingerprint */ - get_by_alias: nil // * get_by_alias */ - ); - - {$ENDIF} -{$ENDIF} - -implementation - -uses -{$IFDEF WIN32_OR_WIN64} - Windows, -{$ENDIF} -{$IFDEF USE_VCL_POSIX} - Posix.Glue, - Posix.SysTime, - Posix.Time, - Posix.Unistd, -{$ENDIF} - IdGlobal, - IdGlobalProtocols, - IdResourceStrings, - IdResourceStringsCore, - IdResourceStringsProtocols, - IdThreadSafe, - SyncObjs, - SysUtils; - -var - SSLIsLoaded: TIdThreadSafeBoolean = nil; - LockInfoCB: TIdCriticalSection = nil; - LockPassCB: TIdCriticalSection = nil; - LockVerifyCB: TIdCriticalSection = nil; - CallbackLockList: TThreadList = nil; - -procedure LockPasswordCB_Enter; -begin - LockPassCB.Enter; -end; - -procedure LockPasswordCB_Leave; -begin - LockPassCB.Leave; -end; - -procedure LockInfoCB_Enter; -begin - LockInfoCB.Enter; -end; - -procedure LockInfoCB_Leave; -begin - LockInfoCB.Leave; -end; - -procedure LockVerifyCB_Enter; -begin - LockVerifyCB.Enter; -end; - -procedure LockVerifyCB_Leave; -begin - LockVerifyCB.Leave; -end; - -{ - IMPORTANT!!! - - OpenSSL can not handle Unicode file names at all. On Posix systems, UTF8 File - names can be used with OpenSSL. The Windows operating system does not accept - UTF8 file names at all so we have our own routines that will handle Unicode - filenames. Most of this section of code is based on code in the OpenSSL .DLL - which is copyrighted by the OpenSSL developers. Come of it is translated into - Pascal and made some modifications so that it will handle Unicode filenames. -} - -{$IFDEF STRING_IS_UNICODE} - - {$IFDEF WINDOWS} - -function Indy_unicode_X509_load_cert_crl_file(ctx: PX509_LOOKUP; const AFileName: String; - const _type: TIdC_INT): TIdC_INT; forward; -function Indy_unicode_X509_load_cert_file(ctx: PX509_LOOKUP; const AFileName: String; - _type: TIdC_INT): TIdC_INT; forward; - -function Indy_Unicode_X509_LOOKUP_file(): PX509_LOOKUP_METHOD cdecl; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := @Indy_x509_unicode_file_lookup; -end; - -function by_Indy_unicode_file_ctrl(ctx: PX509_LOOKUP; cmd: TIdC_INT; - const argc: PAnsiChar; argl: TIdC_LONG; out ret: PAnsiChar): TIdC_INT; cdecl; -var - LOk: TIdC_INT; - LFileName: String; - -begin - LOk := 0; - case cmd of - X509_L_FILE_LOAD: - begin - case argl of - X509_FILETYPE_DEFAULT: - begin - LFileName := GetEnvironmentVariable - (String(X509_get_default_cert_file_env)); - if LFileName <> '' then begin - Result := Indy_unicode_X509_load_cert_crl_file(ctx, LFileName, - X509_FILETYPE_PEM); - end else begin - Result := Indy_unicode_X509_load_cert_crl_file(ctx, - String(X509_get_default_cert_file), X509_FILETYPE_PEM); - end; - if Result = 0 then begin - X509err(X509_F_BY_FILE_CTRL, X509_R_LOADING_DEFAULTS); - end; - end; - X509_FILETYPE_PEM: - begin - // Note that typecasting an AnsiChar as a WideChar is normally a crazy - // thing to do. The thing is that the OpenSSL API is based on ASCII or - // UTF8, not Unicode and we are writing this just for Unicode filenames. - LFileName := PWideChar(argc); - LOk := Indy_unicode_X509_load_cert_crl_file(ctx, LFileName, - X509_FILETYPE_PEM); - end; - else - LFileName := PWideChar(argc); - LOk := Indy_unicode_X509_load_cert_file(ctx, LFileName, TIdC_INT(argl)); - end; - end; - end; - {Do it this way because 1 must be returned for success and unfortunately, some - routines return the number of certificates that were loaded which could be - more than 1} - if LOk > 0 then begin - - Result := 1; - end else begin - Result := 0; - end; -end; - -function Indy_unicode_X509_load_cert_file(ctx: PX509_LOOKUP; const AFileName: String; - _type: TIdC_INT): TIdC_INT; -var - LM: TMemoryStream; - Lin: PBIO; - LX: PX509; - i: Integer; -begin - Result := 0; - Lin := nil; - LM := TMemoryStream.Create; - try - LM.LoadFromFile(AFileName); - Lin := BIO_new_mem_buf(LM.Memory, LM.Size); - if Assigned(Lin) then begin - case _type of - X509_FILETYPE_PEM: - begin - repeat - LX := PEM_read_bio_X509_AUX(Lin, nil, nil, nil); - if not Assigned(LX) then begin - if ((ERR_GET_REASON(ERR_peek_last_error()) - = PEM_R_NO_START_LINE) and (Result > 0)) then begin - ERR_clear_error(); - Break; - end else begin - X509err(X509_F_X509_LOAD_CERT_FILE, ERR_R_PEM_LIB); - // goto err; - end; - end; - until False; - end; - X509_FILETYPE_ASN1: - begin - LX := d2i_X509_bio(Lin, nil); - if not Assigned(LX) then begin - X509err(X509_F_X509_LOAD_CERT_FILE, ERR_R_ASN1_LIB); - // goto err; - end else begin - i := X509_STORE_add_cert(ctx^.store_ctx, LX); - if i <> 0 then begin - Result := i; - end; - end; - end; - else - X509err(X509_F_X509_LOAD_CERT_FILE, X509_R_BAD_X509_FILETYPE); - // goto err; - end; - end else begin - X509err(X509_F_X509_LOAD_CERT_FILE, ERR_R_SYS_LIB); - // goto err; - end; - finally - BIO_free(Lin); - FreeAndNil(LM); - end; - -end; - -function Indy_unicode_X509_load_cert_crl_file(ctx: PX509_LOOKUP; const AFileName: String; - const _type: TIdC_INT): TIdC_INT; -var - LM: TMemoryStream; - Linf: PSTACK_OF_X509_INFO; - Litmp: PX509_INFO; - Lin: PBIO; - i: Integer; -begin - Result := 0; - Linf := nil; - Lin := nil; - if _type <> X509_FILETYPE_PEM then begin - Result := Indy_unicode_X509_load_cert_file(ctx, AFileName, _type); - exit; - end; - LM := TMemoryStream.Create; - try - LM.LoadFromFile(AFileName); - Lin := BIO_new_mem_buf(LM.Memory, LM.Size); - if Assigned(Lin) then begin - Linf := PEM_X509_INFO_read_bio(Lin, nil, nil, nil); - end else begin - X509err(X509_F_X509_LOAD_CERT_CRL_FILE, ERR_R_SYS_LIB); - end; - BIO_free(Lin); - FreeAndNil(LM); - // Surpress exception here since it's going to be called by the OpenSSL .DLL - // Follow the OpenSSL .DLL Error conventions. - except - X509err(X509_F_X509_LOAD_CERT_CRL_FILE, ERR_R_SYS_LIB); - BIO_free(Lin); - FreeAndNil(LM); - exit; - end; - if not Assigned(Linf) then begin - X509err(X509_F_X509_LOAD_CERT_CRL_FILE, ERR_R_PEM_LIB); - exit; - end; - try - for i := 0 to sk_X509_INFO_num(Linf) - 1 do begin - Litmp := sk_X509_INFO_value(Linf, i); - if Assigned(Litmp^.x509) then begin - X509_STORE_add_cert(ctx^.store_ctx, Litmp^.x509); - Inc(Result); - end; - if Assigned(Litmp^.crl) then begin - X509_STORE_add_crl(ctx^.store_ctx, Litmp^.crl); - Inc(Result); - end; - end; - finally - sk_X509_INFO_pop_free(Linf, @X509_INFO_free); - end; -end; - -procedure IndySSL_load_client_CA_file_err(var VRes: PSTACK_OF_X509_NAME); -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - if Assigned(VRes) then begin - sk_X509_NAME_pop_free(VRes, @X509_NAME_free); - VRes := nil; - end; -end; - -function IndySSL_load_client_CA_file(const AFileName: String): PSTACK_OF_X509_NAME; -var - LM: TMemoryStream; - LB: PBIO; - Lsk: PSTACK_OF_X509_NAME; - LX: PX509; - LXN, LXNDup: PX509_NAME; -begin - Result := nil; - LX := nil; - Lsk := sk_X509_NAME_new(nil); // (xname_cmp); - if Assigned(Lsk) then begin - try - LM := TMemoryStream.Create; - try - LM.LoadFromFile(AFileName); - LB := BIO_new_mem_buf(LM.Memory, LM.Size); - if Assigned(LB) then begin - try - while (PEM_read_bio_X509(LB, @LX, nil, nil) <> nil) do begin - try - if not Assigned(Result) then begin - Result := sk_X509_NAME_new_null; - // RLebeau: exit here if not Assigned?? - if not Assigned(Result) then begin - SSLerr(SSL_F_SSL_LOAD_CLIENT_CA_FILE, ERR_R_MALLOC_FAILURE); - end; - end; - LXN := X509_get_subject_name(LX); - if not Assigned(LXN) then begin - // error - IndySSL_load_client_CA_file_err(Result); - // RLebeau: exit here?? - // goto err; - end; - // * check for duplicates */ - LXNDup := X509_NAME_dup(LXN); - if not Assigned(LXNDup) then begin - // error - IndySSL_load_client_CA_file_err(Result); - // RLebeau: exit here?? - // goto err; - end; - if (sk_X509_NAME_find(Lsk, LXNDup) >= 0) then begin - X509_NAME_free(LXNDup); - end else begin - sk_X509_NAME_push(Result, LXNDup); - end; - finally - X509_free(LX); - end; - end; - finally - BIO_free(LB); - end; - end else begin - SSLerr(SSL_F_SSL_LOAD_CLIENT_CA_FILE, ERR_R_MALLOC_FAILURE); - end; - finally - FreeAndNil(LM); - end; - finally - sk_X509_NAME_free(Lsk); - end; - end else begin - SSLerr(SSL_F_SSL_LOAD_CLIENT_CA_FILE, ERR_R_MALLOC_FAILURE); - end; - if Assigned(Result) then begin - ERR_clear_error; - end; -end; - -function IndySSL_CTX_use_PrivateKey_file(ctx: PSSL_CTX; const AFileName: String; - AType: Integer): Boolean; -var - LM: TMemoryStream; - B: PBIO; - LKey: PEVP_PKEY; - j: TIdC_INT; -begin - Result := False; - LM := TMemoryStream.Create; - try - LM.LoadFromFile(AFileName); - B := BIO_new_mem_buf(LM.Memory, LM.Size); - if Assigned(B) then begin - try - LKey := nil; - case AType of - SSL_FILETYPE_PEM: - begin - j := ERR_R_PEM_LIB; - LKey := PEM_read_bio_PrivateKey(B, nil, - ctx^.default_passwd_callback, - ctx^.default_passwd_callback_userdata); - end; - SSL_FILETYPE_ASN1: - begin - j := ERR_R_ASN1_LIB; - LKey := d2i_PrivateKey_bio(B, nil); - end; - else - j := SSL_R_BAD_SSL_FILETYPE; - end; - if Assigned(LKey) then begin - Result := SSL_CTX_use_PrivateKey(ctx, LKey) > 0; - EVP_PKEY_free(LKey); - end else begin - SSLerr(SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE, j); - end; - finally - if Assigned(B) then begin - BIO_free(B); - end; - end; - end else begin - SSLerr(SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE, ERR_R_BUF_LIB); - end; - finally - FreeAndNil(LM); - end; -end; - -function IndySSL_CTX_use_certificate_file(ctx: PSSL_CTX; - const AFileName: String; AType: Integer): Boolean; -var - LM: TMemoryStream; - B: PBIO; - LX: PX509; - j: TIdC_INT; -begin - Result := False; - LM := TMemoryStream.Create; - try - LM.LoadFromFile(AFileName); - B := BIO_new_mem_buf(LM.Memory, LM.Size); - if Assigned(B) then begin - try - LX := nil; - case AType of - SSL_FILETYPE_ASN1: - begin - j := ERR_R_ASN1_LIB; - LX := d2i_X509_bio(B, nil); - end; - SSL_FILETYPE_PEM: - begin - j := ERR_R_PEM_LIB; - LX := PEM_read_bio_X509(B, nil, ctx^.default_passwd_callback, - ctx^.default_passwd_callback_userdata); - end - else - j := SSL_R_BAD_SSL_FILETYPE; - end; - if Assigned(LX) then begin - Result := SSL_CTX_use_certificate(ctx, LX) > 0; - X509_free(LX); - end else begin - SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE_FILE, j); - end; - finally - BIO_free(B); - end; - end else begin - SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE_FILE, ERR_R_BUF_LIB); - end; - finally - FreeAndNil(LM); - end; -end; - -function IndyX509_STORE_load_locations(ctx: PX509_STORE; - const AFileName, APathName: String): TIdC_INT; -var - lookup: PX509_LOOKUP; -begin - Result := 0; - if AFileName <> '' then begin - lookup := X509_STORE_add_lookup(ctx, Indy_Unicode_X509_LOOKUP_file); - if Assigned(lookup) then begin - if (X509_LOOKUP_load_file(lookup, PAnsiChar(@AFileName[1]), - X509_FILETYPE_PEM) <> 1) then begin - exit; - end; - Result := 1; - end else begin - exit; - end; - end; - { To do: Figure out how to do the hash dir lookup with Unicode. } - if APathName <> '' then begin - Result := X509_STORE_load_locations(ctx, nil, PAnsiChar(AnsiString(APathName))); - end; -end; - -function IndySSL_CTX_load_verify_locations(ctx: PSSL_CTX; - const ACAFile, ACAPath: String): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := IndyX509_STORE_load_locations(ctx^.cert_store, ACAFile, ACAPath); -end; - - {$ENDIF} // WINDOWS - - {$IFDEF UNIX} - -function IndySSL_load_client_CA_file(const AFileName: String) : PSTACK_OF_X509_NAME; -begin - Result := SSL_load_client_CA_file(PAnsiChar(UTF8String(AFileName))); -end; - -function IndySSL_CTX_use_PrivateKey_file(ctx: PSSL_CTX; const AFileName: String; - AType: Integer): Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_use_PrivateKey_file(ctx, PAnsiChar(UTF8String(AFileName)), - AType) > 0; -end; - -function IndySSL_CTX_use_certificate_file(ctx: PSSL_CTX; - const AFileName: String; AType: Integer): Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_use_certificate_file(ctx, PAnsiChar(UTF8String(AFileName)), - AType) > 0; -end; - -function IndyX509_STORE_load_locations(ctx: PX509_STORE; - const AFileName, APathName: String): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - // RLebeau 4/18/2010: X509_STORE_load_locations() expects nil pointers - // for unused values, but casting a string directly to a PAnsiChar - // always produces a non-nil pointer, which causes X509_STORE_load_locations() - // to fail. Need to cast the string to an intermediate Pointer so the - // PAnsiChar cast is applied to the raw data and thus can be nil... - // - Result := X509_STORE_load_locations(ctx, - PAnsiChar(Pointer(UTF8String(AFileName))), - PAnsiChar(Pointer(UTF8String(APathName)))); -end; - -function IndySSL_CTX_load_verify_locations(ctx: PSSL_CTX; - const ACAFile, ACAPath: String): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := IndyX509_STORE_load_locations(ctx^.cert_store, ACAFile, ACAPath); -end; - - {$ENDIF} // UNIX - -{$ELSE} // STRING_IS_UNICODE - -function IndySSL_load_client_CA_file(const AFileName: String) : PSTACK_OF_X509_NAME; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_load_client_CA_file(PAnsiChar(AFileName)); -end; - -function IndySSL_CTX_use_PrivateKey_file(ctx: PSSL_CTX; const AFileName: String; - AType: Integer): Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_use_PrivateKey_file(ctx, PAnsiChar(AFileName), AType) > 0; -end; - -function IndySSL_CTX_use_certificate_file(ctx: PSSL_CTX; - const AFileName: String; AType: Integer): Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := SSL_CTX_use_certificate_file(ctx, PAnsiChar(AFileName), AType) > 0; -end; - -function IndyX509_STORE_load_locations(ctx: PX509_STORE; - const AFileName, APathName: String): TIdC_INT; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - // RLebeau 4/18/2010: X509_STORE_load_locations() expects nil pointers - // for unused values, but casting a string directly to a PAnsiChar - // always produces a non-nil pointer, which causes X509_STORE_load_locations() - // to fail. Need to cast the string to an intermediate Pointer so the - // PAnsiChar cast is applied to the raw data and thus can be nil... - // - Result := X509_STORE_load_locations(ctx, - PAnsiChar(Pointer(AFileName)), - PAnsiChar(Pointer(APathName))); -end; - -function IndySSL_CTX_load_verify_locations(ctx: PSSL_CTX; - const ACAFile, ACAPath: String): TIdC_INT; -begin - // RLebeau 4/18/2010: X509_STORE_load_locations() expects nil pointers - // for unused values, but casting a string directly to a PAnsiChar - // always produces a non-nil pointer, which causes X509_STORE_load_locations() - // to fail. Need to cast the string to an intermediate Pointer so the - // PAnsiChar cast is applied to the raw data and thus can be nil... - // - Result := SSL_CTX_load_verify_locations(ctx, - PAnsiChar(Pointer(ACAFile)), - PAnsiChar(Pointer(ACAPath))); -end; - -{$ENDIF} - -function AddMins(const DT: TDateTime; const Mins: Extended): TDateTime; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := DT + Mins / (60 * 24) -end; - -function AddHrs(const DT: TDateTime; const Hrs: Extended): TDateTime; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := DT + Hrs / 24.0; -end; - -{$I IdDeprecatedImplBugOff.inc} -function GetLocalTime(const DT: TDateTime): TDateTime; -{$I IdDeprecatedImplBugOn.inc} -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := UTCTimeToLocalTime(DT); -end; - -{$IFDEF OPENSSL_SET_MEMORY_FUNCS} - -function IdMalloc(num: Cardinal): Pointer cdecl; -begin - Result := AllocMem(num); -end; - -function IdRealloc(addr: Pointer; num: Cardinal): Pointer cdecl; -begin - Result := addr; - ReallocMem(Result, num); -end; - -procedure IdFree(addr: Pointer)cdecl; -begin - FreeMem(addr); -end; - -procedure IdSslCryptoMallocInit; -// replaces the actual alloc routines -// this is useful if you are using a memory manager that can report on leaks -// at shutdown time. -var - r: Integer; -begin - r := CRYPTO_set_mem_functions(@IdMalloc, @IdRealloc, @IdFree); - Assert(r <> 0); -end; -{$ENDIF} - -{$IFNDEF OPENSSL_NO_BIO} -procedure DumpCert(AOut: TStrings; AX509: PX509); -{$IFDEF USE_INLINE} inline; {$ENDIF} -var - LMem: PBIO; - LLen : TIdC_INT; - LBufPtr : Pointer; -begin - if Assigned(X509_print) then begin - LMem := BIO_new(BIO_s_mem); - try - X509_print(LMem, AX509); - LLen := BIO_get_mem_data( LMem, LBufPtr); - if (LLen > 0) and Assigned(LBufPtr) then begin - { - We could have used RawToBytes() but that would have made a copy of the - output buffer. - } - AOut.Text := TIdTextEncoding.UTF8.GetString( TIdBytes(LBufPtr^), 0, LLen); - end; - finally - if Assigned(LMem) then begin - BIO_free(LMem); - end; - end; - end; -end; - -{$ELSE} - -procedure DumpCert(AOut: TStrings; AX509: PX509); -begin -end; - -{$ENDIF} - -{$IFNDEF WIN32_OR_WIN64} -procedure _threadid_func(id : PCRYPTO_THREADID) cdecl; -begin - if Assigned(CRYPTO_THREADID_set_numeric) then begin - CRYPTO_THREADID_set_numeric(id, TIdC_ULONG(CurrentThreadId)); - end; -end; - -function _GetThreadID: TIdC_ULONG; cdecl; -begin - // TODO: Verify how well this will work with fibers potentially running from - // thread to thread or many on the same thread. - Result := TIdC_ULONG(CurrentThreadId); -end; -{$ENDIF} - -function LoadOpenSSLLibrary: Boolean; -begin - Assert(SSLIsLoaded <> nil); - SSLIsLoaded.Lock; - try - if SSLIsLoaded.Value then begin - Result := True; - exit; - end; - Result := IdSSLOpenSSLHeaders.Load; - if not Result then begin - exit; - end; -{$IFDEF OPENSSL_SET_MEMORY_FUNCS} - // has to be done before anything that uses memory - IdSslCryptoMallocInit; -{$ENDIF} - // required eg to encrypt a private key when writing - OpenSSL_add_all_ciphers; - OpenSSL_add_all_digests; - InitializeRandom; - // IdSslRandScreen; - SSL_load_error_strings; - // Successful loading if true - Result := SSLeay_add_ssl_algorithms > 0; - if not Result then begin - exit; - end; - // Create locking structures, we need them for callback routines - Assert(LockInfoCB = nil); - LockInfoCB := TIdCriticalSection.Create; - LockPassCB := TIdCriticalSection.Create; - LockVerifyCB := TIdCriticalSection.Create; - // Handle internal OpenSSL locking - CallbackLockList := TThreadList.Create; - PrepareOpenSSLLocking; - CRYPTO_set_locking_callback(SslLockingCallback); -{$IFNDEF WIN32_OR_WIN64} - if Assigned(CRYPTO_THREADID_set_callback) then begin - CRYPTO_THREADID_set_callback( _threadid_func ); - end else begin - CRYPTO_set_id_callback(_GetThreadID); - end; -{$ENDIF} - SSLIsLoaded.Value := True; - Result := True; - finally - SSLIsLoaded.Unlock; - end; -end; - -procedure UnLoadOpenSSLLibrary; -// allow the user to call unload directly? -// will then need to implement reference count -var - i: Integer; -begin - // ssl was never loaded - if LockInfoCB = nil then begin - exit; - end; - CRYPTO_set_locking_callback(nil); - IdSSLOpenSSLHeaders.Unload; - FreeAndNil(LockInfoCB); - FreeAndNil(LockPassCB); - FreeAndNil(LockVerifyCB); - if Assigned(CallbackLockList) then begin - with CallbackLockList.LockList do - try - for i := 0 to Count - 1 do begin - TObject(Items[i]).free; - end; - Clear; - finally - CallbackLockList.UnlockList; - end; - FreeAndNil(CallbackLockList); - end; - SSLIsLoaded.Value := False; -end; - -procedure SslLockingCallback(mode, n: TIdC_INT; Afile: PAnsiChar; - line: TIdC_INT)cdecl; -var - Lock: TIdCriticalSection; -begin - Assert(CallbackLockList <> nil); - Lock := nil; - - with CallbackLockList.LockList do - try - if n < Count then begin - Lock := TIdCriticalSection(Items[n]); - end; - finally - CallbackLockList.UnlockList; - end; - Assert(Lock <> nil); - if (mode and CRYPTO_LOCK) = CRYPTO_LOCK then begin - Lock.Acquire; - end else begin - Lock.Release; - end; -end; - -procedure PrepareOpenSSLLocking; -var - i, cnt: Integer; - Lock: TIdCriticalSection; -begin - with CallbackLockList.LockList do - try - cnt := _CRYPTO_num_locks; - for i := 0 to cnt - 1 do begin - Lock := TIdCriticalSection.Create; - try - Add(Lock); - except - Lock.free; - raise ; - end; - end; - finally - CallbackLockList.UnlockList; - end; -end; - - - -// Note that I define UCTTime as PASN1_STRING -function UTCTime2DateTime(UCTTime: PASN1_UTCTIME): TDateTime; -{$IFDEF USE_INLINE} inline; {$ENDIF} -var - year: Word; - month: Word; - day: Word; - hour: Word; - min: Word; - sec: Word; - tz_h: Integer; - tz_m: Integer; -begin - Result := 0; - if UTC_Time_Decode(UCTTime, year, month, day, hour, min, sec, tz_h, tz_m) > 0 then begin - Result := EncodeDate(year, month, day) + EncodeTime(hour, min, sec, 0); - AddMins(Result, tz_m); - AddHrs(Result, tz_h); - Result := GetLocalTime(Result); - end; -end; - -{ -function RSACallback(sslSocket: PSSL; e: Integer; KeyLength: Integer):PRSA; cdecl; -const - RSA: PRSA = nil; -var - SSLSocket: TSSLWSocket; - IdSSLSocket: TIdSSLSocket; -begin - IdSSLSocket := TIdSSLSocket(IdSslGetAppData(sslSocket)); - - if Assigned(IdSSLSocket) then begin - IdSSLSocket.TriggerSSLRSACallback(KeyLength); - end; - - Result := RSA_generate_key(KeyLength, RSA_F4, @RSAProgressCallback, ssl); -end; -} - -function LogicalAnd(A, B: Integer): Boolean; -{$IFDEF USE_INLINE} inline; {$ENDIF} -begin - Result := (A and B) = B; -end; - -function BytesToHexString(APtr: Pointer; ALen: Integer): String; -{$IFDEF USE_INLINE} inline; {$ENDIF} -var - i: PtrInt; - LPtr: PByte; -begin - Result := ''; - LPtr := PByte(APtr); - for i := 0 to (ALen - 1) do begin - if i <> 0 then begin - Result := Result + ':'; { Do not Localize } - end; - Result := Result + IndyFormat('%.2x', [LPtr^]); - Inc(LPtr); - end; -end; - -function MDAsString(const AMD: TIdSSLEVP_MD): String; -{$IFDEF USE_INLINE} inline; {$ENDIF} -var - i: Integer; -begin - Result := ''; - for i := 0 to AMD.Length - 1 do begin - if i <> 0 then begin - Result := Result + ':'; { Do not Localize } - end; - Result := Result + IndyFormat('%.2x', [Byte(AMD.MD[i])]); - { do not localize } - end; -end; - - -procedure GetStateVars(const sslSocket: PSSL; AWhere, Aret: TIdC_INT; var VTypeStr, VMsg : String); - {$IFDEF USE_INLINE}inline;{$ENDIF} -begin - case AWhere of - SSL_CB_ALERT : - begin - VTypeStr := IndyFormat( RSOSSLAlert,[SSL_alert_type_string_long(Aret)]); - VMsg := String(SSL_alert_type_string_long(Aret)); - end; - SSL_CB_READ_ALERT : - begin - VTypeStr := IndyFormat(RSOSSLReadAlert,[SSL_alert_type_string_long(Aret)]); - VMsg := String( SSL_alert_desc_string_long(Aret)); - end; - SSL_CB_WRITE_ALERT : - begin - VTypeStr := IndyFormat(RSOSSLWriteAlert,[SSL_alert_type_string_long(Aret)]); - VMsg := String( SSL_alert_desc_string_long(Aret)); - end; - SSL_CB_ACCEPT_LOOP : - begin - VTypeStr := RSOSSLAcceptLoop; - VMsg := String( SSL_state_string_long(sslSocket)); - end; - SSL_CB_ACCEPT_EXIT : - begin - if ARet < 0 then begin - VTypeStr := RSOSSLAcceptError; - end else begin - if ARet = 0 then begin - VTypeStr := RSOSSLAcceptFailed; - end else begin - VTypeStr := RSOSSLAcceptExit; - end; - end; - VMsg := String( SSL_state_string_long(sslSocket) ); - end; - SSL_CB_CONNECT_LOOP : - begin - VTypeStr := RSOSSLConnectLoop; - VMsg := String( SSL_state_string_long(sslSocket) ); - end; - SSL_CB_CONNECT_EXIT : - begin - if ARet < 0 then begin - VTypeStr := RSOSSLConnectError; - end else begin - if ARet = 0 then begin - VTypeStr := RSOSSLConnectFailed - end else begin - VTypeStr := RSOSSLConnectExit; - end; - end; - VMsg := String( SSL_state_string_long(sslSocket) ); - end; - SSL_CB_HANDSHAKE_START : - begin - VTypeStr := RSOSSLHandshakeStart; - VMsg := String( SSL_state_string_long(sslSocket) ); - end; - SSL_CB_HANDSHAKE_DONE : - begin - VTypeStr := RSOSSLHandshakeDone; - VMsg := String( SSL_state_string_long(sslSocket) ); - end; - end; -{var LW : TIdC_INT; -begin - VMsg := ''; - LW := Awhere and (not SSL_ST_MASK); - if (LW and SSL_ST_CONNECT) > 0 then begin - VWhereStr := 'SSL_connect:'; - end else begin - if (LW and SSL_ST_ACCEPT) > 0 then begin - VWhereStr := ' SSL_accept:'; - end else begin - VWhereStr := ' undefined:'; - end; - end; -// IdSslStateStringLong - if (Awhere and SSL_CB_LOOP) > 0 then begin - VMsg := IdSslStateStringLong(sslSocket); - end else begin - if (Awhere and SSL_CB_ALERT) > 0 then begin - if (Awhere and SSL_CB_READ > 0) then begin - VWhereStr := VWhereStr + ' read:'+ IdSslAlertTypeStringLong(Aret); - end else begin - VWhereStr := VWhereStr + 'write:'+ IdSslAlertTypeStringLong(Aret); - end;; - VMsg := IdSslAlertDescStringLong(Aret); - end else begin - if (Awhere and SSL_CB_EXIT) > 0 then begin - if ARet = 0 then begin - - VWhereStr := VWhereStr +'failed'; - VMsg := IdSslStateStringLong(sslSocket); - end else begin - if ARet < 0 then begin - VWhereStr := VWhereStr +'error'; - VMsg := IdSslStateStringLong(sslSocket); - end; - end; - end; - end; - end; } -end; - -initialization - Assert(SSLIsLoaded=nil); - SSLIsLoaded := TIdThreadSafeBoolean.Create; -finalization - UnLoadOpenSSLLibrary; - //free the lock last as unload makes calls that use it - FreeAndNil(SSLIsLoaded); -end. diff --git a/Lib/Protocols/indyprotocolsfpc.pas b/Lib/Protocols/indyprotocolsfpc.pas index 490b3bbc3..281ff2bd1 100644 --- a/Lib/Protocols/indyprotocolsfpc.pas +++ b/Lib/Protocols/indyprotocolsfpc.pas @@ -1,239 +1,244 @@ -unit indyprotocolsfpc; -interface - -uses - IdASN1Util, - IdAllAuthentications, - IdAllFTPListParsers, - IdAllHeaderCoders, - IdAttachment, - IdAttachmentFile, - IdAttachmentMemory, - IdAuthentication, - IdAuthenticationDigest, - IdAuthenticationManager, - IdBlockCipherIntercept, - IdChargenServer, - IdChargenUDPServer, - IdCharsets, - IdCoder, - IdCoder00E, - IdCoder3to4, - IdCoderBinHex4, - IdCoderHeader, - IdCoderMIME, - IdCoderQuotedPrintable, - IdCoderUUE, - IdCoderXXE, - IdConnectThroughHttpProxy, - IdContainers, - IdCookie, - IdCookieManager, - IdCustomHTTPServer, - IdDICT, - IdDICTCommon, - IdDICTServer, - IdDNSCommon, - IdDNSResolver, - IdDNSServer, - IdDateTimeStamp, - IdDayTime, - IdDayTimeServer, - IdDayTimeUDP, - IdDayTimeUDPServer, - IdDiscardServer, - IdDiscardUDPServer, - IdEMailAddress, - IdEcho, - IdEchoServer, - IdEchoUDP, - IdEchoUDPServer, - IdExplicitTLSClientServerBase, - IdFIPS, - IdFSP, - IdFTP, - IdFTPBaseFileSystem, - IdFTPCommon, - IdFTPList, - IdFTPListOutput, - IdFTPListParseAS400, - IdFTPListParseBase, - IdFTPListParseBullGCOS7, - IdFTPListParseBullGCOS8, - IdFTPListParseChameleonNewt, - IdFTPListParseCiscoIOS, - IdFTPListParseDistinctTCPIP, - IdFTPListParseEPLF, - IdFTPListParseHellSoft, - IdFTPListParseIEFTPGateway, - IdFTPListParseKA9Q, - IdFTPListParseMPEiX, - IdFTPListParseMVS, - IdFTPListParseMicrowareOS9, - IdFTPListParseMusic, - IdFTPListParseNCSAForDOS, - IdFTPListParseNCSAForMACOS, - IdFTPListParseNovellNetware, - IdFTPListParseNovellNetwarePSU, - IdFTPListParseOS2, - IdFTPListParsePCNFSD, - IdFTPListParsePCTCP, - IdFTPListParseStercomOS390Exp, - IdFTPListParseStercomUnixEnt, - IdFTPListParseStratusVOS, - IdFTPListParseSuperTCP, - IdFTPListParseTOPS20, - IdFTPListParseTSXPlus, - IdFTPListParseTandemGuardian, - IdFTPListParseUnisysClearPath, - IdFTPListParseUnix, - IdFTPListParseVM, - IdFTPListParseVMS, - IdFTPListParseVSE, - IdFTPListParseVxWorks, - IdFTPListParseWfFTP, - IdFTPListParseWinQVTNET, - IdFTPListParseWindowsNT, - IdFTPListParseXecomMicroRTOS, - IdFTPListTypes, - IdFTPServer, - IdFTPServerContextBase, - IdFinger, - IdFingerServer, - IdGlobalProtocols, - IdGopher, - IdGopherConsts, - IdGopherServer, - IdHMAC, - IdHMACMD5, - IdHMACSHA1, - IdHTTP, - IdHTTPHeaderInfo, - IdHTTPProxyServer, - IdHTTPServer, - IdHash, - IdHashAdler32, - IdHashCRC, - IdHashElf, - IdHashMessageDigest, - IdHashSHA, - IdHeaderCoder2022JP, - IdHeaderCoderBase, - IdHeaderCoderIndy, - IdHeaderCoderPlain, - IdHeaderList, - IdIMAP4, - IdIMAP4Server, - IdIPAddrMon, - IdIPWatch, - IdIRC, - IdIdent, - IdIdentServer, - IdIrcServer, - IdLPR, - IdMailBox, - IdMappedFTP, - IdMappedPOP3, - IdMappedPortTCP, - IdMappedPortUDP, - IdMappedTelnet, - IdMessage, - IdMessageBuilder, - IdMessageClient, - IdMessageCoder, - IdMessageCoderBinHex4, - IdMessageCoderMIME, - IdMessageCoderQuotedPrintable, - IdMessageCoderUUE, - IdMessageCoderXXE, - IdMessageCoderYenc, - IdMessageCollection, - IdMessageHelper, - IdMessageParts, - IdMultipartFormData, - IdNNTP, - IdNNTPServer, - IdNetworkCalculator, - IdOSFileName, - IdOTPCalculator, - IdPOP3, - IdPOP3Server, - IdQOTDUDP, - IdQOTDUDPServer, - IdQotd, - IdQotdServer, - IdRSH, - IdRSHServer, - IdRemoteCMDClient, - IdRemoteCMDServer, - IdReplyFTP, - IdReplyIMAP4, - IdReplyPOP3, - IdReplySMTP, - IdResourceStringsProtocols, - IdRexec, - IdRexecServer, - IdSASL, - IdSASLAnonymous, - IdSASLCollection, - IdSASLDigest, - IdSASLExternal, - IdSASLLogin, - IdSASLOTP, - IdSASLPlain, - IdSASLSKey, - IdSASLUserPass, - IdSASL_CRAMBase, - IdSASL_CRAM_MD5, - IdSASL_CRAM_SHA1, - IdSMTP, - IdSMTPBase, - IdSMTPRelay, - IdSMTPServer, - IdSNMP, - IdSNPP, - IdSNTP, - IdSSL, - IdServerInterceptLogBase, - IdServerInterceptLogEvent, - IdServerInterceptLogFile, - IdStrings, - IdSysLog, - IdSysLogMessage, - IdSysLogServer, - IdSystat, - IdSystatServer, - IdSystatUDP, - IdSystatUDPServer, - IdTelnet, - IdTelnetServer, - IdText, - IdTime, - IdTimeServer, - IdTimeUDP, - IdTimeUDPServer, - IdTrivialFTP, - IdTrivialFTPBase, - IdTrivialFTPServer, - IdURI, - IdUnixTime, - IdUnixTimeServer, - IdUnixTimeUDP, - IdUnixTimeUDPServer, - IdUriUtils, - IdUserAccounts, - IdUserPassProvider, - IdVCard, - IdWebDAV, - IdWhoIsServer, - IdWhois, - IdZLibCompressorBase; - -implementation - -{ -disable hints about unused units. This unit just causes -FreePascal to compile implicitly listed units in a package. -} -{$hints off} -end. +unit indyprotocolsfpc; +interface + +uses + IdASN1Util, + IdAllAuthentications, + IdAllFTPListParsers, + IdAllHeaderCoders, + IdAttachment, + IdAttachmentFile, + IdAttachmentMemory, + IdAuthentication, + IdAuthenticationDigest, + IdAuthenticationManager, + IdBlockCipherIntercept, + IdChargenServer, + IdChargenUDPServer, + IdCharsets, + IdCoder, + IdCoder00E, + IdCoder3to4, + IdCoderBinHex4, + IdCoderHeader, + IdCoderMIME, + IdCoderQuotedPrintable, + IdCoderUUE, + IdCoderXXE, + IdConnectThroughHttpProxy, + IdContainers, + IdCookie, + IdCookieManager, + IdCustomHTTPServer, + IdDICT, + IdDICTCommon, + IdDICTServer, + IdDNSCommon, + IdDNSResolver, + IdDNSServer, + IdDateTimeStamp, + IdDayTime, + IdDayTimeServer, + IdDayTimeUDP, + IdDayTimeUDPServer, + IdDiscardServer, + IdDiscardUDPServer, + IdEMailAddress, + IdEcho, + IdEchoServer, + IdEchoUDP, + IdEchoUDPServer, + IdExplicitTLSClientServerBase, + IdFIPS, + IdFSP, + IdFTP, + IdFTPBaseFileSystem, + IdFTPCommon, + IdFTPList, + IdFTPListOutput, + IdFTPListParseAS400, + IdFTPListParseBase, + IdFTPListParseBullGCOS7, + IdFTPListParseBullGCOS8, + IdFTPListParseChameleonNewt, + IdFTPListParseCiscoIOS, + IdFTPListParseDistinctTCPIP, + IdFTPListParseEPLF, + IdFTPListParseHellSoft, + IdFTPListParseIEFTPGateway, + IdFTPListParseKA9Q, + IdFTPListParseMPEiX, + IdFTPListParseMVS, + IdFTPListParseMicrowareOS9, + IdFTPListParseMusic, + IdFTPListParseNCSAForDOS, + IdFTPListParseNCSAForMACOS, + IdFTPListParseNovellNetware, + IdFTPListParseNovellNetwarePSU, + IdFTPListParseOS2, + IdFTPListParsePCNFSD, + IdFTPListParsePCTCP, + IdFTPListParseStercomOS390Exp, + IdFTPListParseStercomUnixEnt, + IdFTPListParseStratusVOS, + IdFTPListParseSuperTCP, + IdFTPListParseTOPS20, + IdFTPListParseTSXPlus, + IdFTPListParseTandemGuardian, + IdFTPListParseUnisysClearPath, + IdFTPListParseUnix, + IdFTPListParseVM, + IdFTPListParseVMS, + IdFTPListParseVSE, + IdFTPListParseVxWorks, + IdFTPListParseWfFTP, + IdFTPListParseWinQVTNET, + IdFTPListParseWindowsNT, + IdFTPListParseXecomMicroRTOS, + IdFTPListTypes, + IdFTPServer, + IdFTPServerContextBase, + IdFinger, + IdFingerServer, + IdGlobalProtocols, + IdGopher, + IdGopherConsts, + IdGopherServer, + IdHMAC, + IdHMACMD5, + IdHMACSHA1, + IdHTTP, + IdHTTPHeaderInfo, + IdHTTPProxyServer, + IdHTTPServer, + IdHash, + IdHashAdler32, + IdHashCRC, + IdHashElf, + IdHashMessageDigest, + IdHashSHA, + IdHeaderCoder2022JP, + IdHeaderCoderBase, + IdHeaderCoderIndy, + IdHeaderCoderPlain, + IdHeaderList, + IdIMAP4, + IdIMAP4Server, + IdIPAddrMon, + IdIPWatch, + IdIRC, + IdIdent, + IdIdentServer, + IdIrcServer, + IdLPR, + IdMailBox, + IdMappedFTP, + IdMappedPOP3, + IdMappedPortTCP, + IdMappedPortUDP, + IdMappedTelnet, + IdMessage, + IdMessageBuilder, + IdMessageClient, + IdMessageCoder, + IdMessageCoderBinHex4, + IdMessageCoderMIME, + IdMessageCoderQuotedPrintable, + IdMessageCoderUUE, + IdMessageCoderXXE, + IdMessageCoderYenc, + IdMessageCollection, + IdMessageHelper, + IdMessageParts, + IdMultipartFormData, + IdNNTP, + IdNNTPServer, + IdNetworkCalculator, + IdOSFileName, + IdOTPCalculator, + IdPOP3, + IdPOP3Server, + IdQOTDUDP, + IdQOTDUDPServer, + IdQotd, + IdQotdServer, + IdRSH, + IdRSHServer, + IdRemoteCMDClient, + IdRemoteCMDServer, + IdReplyFTP, + IdReplyIMAP4, + IdReplyPOP3, + IdReplySMTP, + IdResourceStringsProtocols, + IdRexec, + IdRexecServer, + IdSASL, + IdSASLAnonymous, + IdSASLCollection, + IdSASLDigest, + IdSASLExternal, + IdSASLLogin, + IdSASLOTP, + IdSASLPlain, + IdSASLSKey, + IdSASLUserPass, + IdSASL_CRAMBase, + IdSASL_CRAM_MD5, + IdSASL_CRAM_SHA1, + IdSMTP, + IdSMTPBase, + IdSMTPRelay, + IdSMTPServer, + IdSNMP, + IdSNPP, + IdSNTP, + IdSSL, + IdSSLOpenSSL, + IdSSLOpenSSLConsts, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader, + AllOpenSSLHeaders, + IdServerInterceptLogBase, + IdServerInterceptLogEvent, + IdServerInterceptLogFile, + IdStrings, + IdSysLog, + IdSysLogMessage, + IdSysLogServer, + IdSystat, + IdSystatServer, + IdSystatUDP, + IdSystatUDPServer, + IdTelnet, + IdTelnetServer, + IdText, + IdTime, + IdTimeServer, + IdTimeUDP, + IdTimeUDPServer, + IdTrivialFTP, + IdTrivialFTPBase, + IdTrivialFTPServer, + IdURI, + IdUnixTime, + IdUnixTimeServer, + IdUnixTimeUDP, + IdUnixTimeUDPServer, + IdUriUtils, + IdUserAccounts, + IdUserPassProvider, + IdVCard, + IdWebDAV, + IdWhoIsServer, + IdWhois, + IdZLibCompressorBase; + +implementation + +{ +disable hints about unused units. This unit just causes +FreePascal to compile implicitly listed units in a package. +} +{$hints off} +end. diff --git a/Lib/Protocols/opensslHdrs/AllOpenSSLHeaders.pas b/Lib/Protocols/opensslHdrs/AllOpenSSLHeaders.pas new file mode 100644 index 000000000..30aaa99d7 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/AllOpenSSLHeaders.pas @@ -0,0 +1,84 @@ +Unit AllOpenSSLHeaders; + +interface + +uses + + IdOpenSSLHeaders_aes, + IdOpenSSLHeaders_asn1err, + IdOpenSSLHeaders_asn1, + IdOpenSSLHeaders_asn1_mac, + IdOpenSSLHeaders_asn1t, + IdOpenSSLHeaders_asyncerr, + IdOpenSSLHeaders_async, + IdOpenSSLHeaders_bioerr, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_blowfish, + IdOpenSSLHeaders_bnerr, + IdOpenSSLHeaders_bn, + IdOpenSSLHeaders_buffererr, + IdOpenSSLHeaders_buffer, + IdOpenSSLHeaders_camellia, + IdOpenSSLHeaders_cast, + IdOpenSSLHeaders_cmac, + IdOpenSSLHeaders_cmserr, + IdOpenSSLHeaders_cms, + IdOpenSSLHeaders_comperr, + IdOpenSSLHeaders_comp, + IdOpenSSLHeaders_conf_api, + IdOpenSSLHeaders_conferr, + IdOpenSSLHeaders_conf, + IdOpenSSLHeaders_cryptoerr, + IdOpenSSLHeaders_crypto, + IdOpenSSLHeaders_cterr, + IdOpenSSLHeaders_des, + IdOpenSSLHeaders_dherr, + IdOpenSSLHeaders_dh, + IdOpenSSLHeaders_dsaerr, + IdOpenSSLHeaders_dsa, + IdOpenSSLHeaders_ebcdic, + IdOpenSSLHeaders_ecerr, + IdOpenSSLHeaders_ec, + IdOpenSSLHeaders_engineerr, + IdOpenSSLHeaders_engine, + IdOpenSSLHeaders_err, + IdOpenSSLHeaders_evperr, + IdOpenSSLHeaders_evp, + IdOpenSSLHeaders_hmac, + IdOpenSSLHeaders_idea, + IdOpenSSLHeaders_kdferr, + IdOpenSSLHeaders_objectserr, + IdOpenSSLHeaders_objects, + IdOpenSSLHeaders_obj_mac, + IdOpenSSLHeaders_ocsperr, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_pemerr, + IdOpenSSLHeaders_pem, + IdOpenSSLHeaders_pkcs12, + IdOpenSSLHeaders_pkcs7err, + IdOpenSSLHeaders_pkcs7, + IdOpenSSLHeaders_randerr, + IdOpenSSLHeaders_rand, + IdOpenSSLHeaders_rsaerr, + IdOpenSSLHeaders_rsa, + IdOpenSSLHeaders_sha, + IdOpenSSLHeaders_srtp, + IdOpenSSLHeaders_ssl3, + IdOpenSSLHeaders_sslerr, + IdOpenSSLHeaders_ssl, + IdOpenSSLHeaders_stack, + IdOpenSSLHeaders_storeerr, + IdOpenSSLHeaders_tls1, + IdOpenSSLHeaders_tserr, + IdOpenSSLHeaders_ts, + IdOpenSSLHeaders_txt_db, + IdOpenSSLHeaders_uierr, + IdOpenSSLHeaders_ui, + IdOpenSSLHeaders_whrlpool, + IdOpenSSLHeaders_x509err, + IdOpenSSLHeaders_x509, + IdOpenSSLHeaders_x509v3, + IdOpenSSLHeaders_x509_vfy ; + +implementation +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_aes.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_aes.pas new file mode 100644 index 000000000..c0d596fc4 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_aes.pas @@ -0,0 +1,203 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_aes.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_aes.h2pas + and this file regenerated. IdOpenSSLHeaders_aes.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_aes; + +interface + +// Headers for OpenSSL 1.1.1 +// aes.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const +// Added '_CONST' to avoid name clashes + AES_ENCRYPT_CONST = 1; +// Added '_CONST' to avoid name clashes + AES_DECRYPT_CONST = 0; + AES_MAXNR = 14; + AES_BLOCK_SIZE = 16; + +type + aes_key_st = record + // in old IdSSLOpenSSLHeaders.pas it was also TIdC_UINT ¯\_(ツ)_/¯ +// {$IFDEF AES_LONG} +// rd_key: array[0..(4 * (AES_MAXNR + 1))] of TIdC_ULONG; +// {$ELSE} + rd_key: array[0..(4 * (AES_MAXNR + 1))] of TIdC_UINT; +// {$ENDIF} + rounds: TIdC_INT; + end; + AES_KEY = aes_key_st; + PAES_KEY = ^AES_KEY; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM AES_options} + {$EXTERNALSYM AES_set_encrypt_key} + {$EXTERNALSYM AES_set_decrypt_key} + {$EXTERNALSYM AES_encrypt} + {$EXTERNALSYM AES_decrypt} + {$EXTERNALSYM AES_ecb_encrypt} + {$EXTERNALSYM AES_cbc_encrypt} + {$EXTERNALSYM AES_cfb128_encrypt} + {$EXTERNALSYM AES_cfb1_encrypt} + {$EXTERNALSYM AES_cfb8_encrypt} + {$EXTERNALSYM AES_ofb128_encrypt} + {$EXTERNALSYM AES_ige_encrypt} + {$EXTERNALSYM AES_bi_ige_encrypt} + {$EXTERNALSYM AES_wrap_key} + {$EXTERNALSYM AES_unwrap_key} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + AES_options: function: PIdAnsiChar; cdecl = nil; + + AES_set_encrypt_key: function(const userKey: PByte; const bits: TIdC_INT; const key: PAES_KEY): TIdC_INT; cdecl = nil; + AES_set_decrypt_key: function(const userKey: PByte; const bits: TIdC_INT; const key: PAES_KEY): TIdC_INT; cdecl = nil; + + AES_encrypt: procedure(const in_: PByte; out_: PByte; const key: PAES_KEY); cdecl = nil; + AES_decrypt: procedure(const in_: PByte; out_: PByte; const key: PAES_KEY); cdecl = nil; + + AES_ecb_encrypt: procedure(const in_: PByte; out_: PByte; const key: PAES_KEY; const enc: TIdC_INT); cdecl = nil; + AES_cbc_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; const enc: TIdC_INT); cdecl = nil; + AES_cfb128_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); cdecl = nil; + AES_cfb1_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); cdecl = nil; + AES_cfb8_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); cdecl = nil; + AES_ofb128_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT); cdecl = nil; + (* NB: the IV is _two_ blocks long *) + AES_ige_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; const enc: TIdC_INT); cdecl = nil; + (* NB: the IV is _four_ blocks long *) + AES_bi_ige_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; const key2: PAES_KEY; ivec: PByte; const enc: TIdC_INT); cdecl = nil; + + AES_wrap_key: function(key: PAES_KEY; const iv: PByte; out_: PByte; const in_: PByte; inlen: TIdC_UINT): TIdC_INT; cdecl = nil; + AES_unwrap_key: function(key: PAES_KEY; const iv: PByte; out_: PByte; const in_: PByte; inlen: TIdC_UINT): TIdC_INT; cdecl = nil; + +{$ELSE} + function AES_options: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function AES_set_encrypt_key(const userKey: PByte; const bits: TIdC_INT; const key: PAES_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function AES_set_decrypt_key(const userKey: PByte; const bits: TIdC_INT; const key: PAES_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure AES_encrypt(const in_: PByte; out_: PByte; const key: PAES_KEY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure AES_decrypt(const in_: PByte; out_: PByte; const key: PAES_KEY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure AES_ecb_encrypt(const in_: PByte; out_: PByte; const key: PAES_KEY; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure AES_cbc_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure AES_cfb128_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure AES_cfb1_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure AES_cfb8_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure AES_ofb128_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* NB: the IV is _two_ blocks long *) + procedure AES_ige_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* NB: the IV is _four_ blocks long *) + procedure AES_bi_ige_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; const key2: PAES_KEY; ivec: PByte; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function AES_wrap_key(key: PAES_KEY; const iv: PByte; out_: PByte; const in_: PByte; inlen: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function AES_unwrap_key(key: PAES_KEY; const iv: PByte; out_: PByte; const in_: PByte; inlen: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + AES_options := LoadFunction('AES_options',AFailed); + AES_set_encrypt_key := LoadFunction('AES_set_encrypt_key',AFailed); + AES_set_decrypt_key := LoadFunction('AES_set_decrypt_key',AFailed); + AES_encrypt := LoadFunction('AES_encrypt',AFailed); + AES_decrypt := LoadFunction('AES_decrypt',AFailed); + AES_ecb_encrypt := LoadFunction('AES_ecb_encrypt',AFailed); + AES_cbc_encrypt := LoadFunction('AES_cbc_encrypt',AFailed); + AES_cfb128_encrypt := LoadFunction('AES_cfb128_encrypt',AFailed); + AES_cfb1_encrypt := LoadFunction('AES_cfb1_encrypt',AFailed); + AES_cfb8_encrypt := LoadFunction('AES_cfb8_encrypt',AFailed); + AES_ofb128_encrypt := LoadFunction('AES_ofb128_encrypt',AFailed); + AES_ige_encrypt := LoadFunction('AES_ige_encrypt',AFailed); + AES_bi_ige_encrypt := LoadFunction('AES_bi_ige_encrypt',AFailed); + AES_wrap_key := LoadFunction('AES_wrap_key',AFailed); + AES_unwrap_key := LoadFunction('AES_unwrap_key',AFailed); +end; + +procedure Unload; +begin + AES_options := nil; + AES_set_encrypt_key := nil; + AES_set_decrypt_key := nil; + AES_encrypt := nil; + AES_decrypt := nil; + AES_ecb_encrypt := nil; + AES_cbc_encrypt := nil; + AES_cfb128_encrypt := nil; + AES_cfb1_encrypt := nil; + AES_cfb8_encrypt := nil; + AES_ofb128_encrypt := nil; + AES_ige_encrypt := nil; + AES_bi_ige_encrypt := nil; + AES_wrap_key := nil; + AES_unwrap_key := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1.pas new file mode 100644 index 000000000..1e9a48dbf --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1.pas @@ -0,0 +1,2551 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_asn1.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_asn1.h2pas + and this file regenerated. IdOpenSSLHeaders_asn1.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_asn1; + +interface + +// Headers for OpenSSL 1.1.1 +// asn1.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_asn1t, + IdOpenSSLHeaders_bio, + IdOpenSSlHeaders_ossl_typ; + +{$MINENUMSIZE 4} + +const + (* + * NB the constants below are used internally by ASN1_INTEGER + * and ASN1_ENUMERATED to indicate the sign. They are *not* on + * the wire tag values. + *) + + V_ASN1_NEG = $100; + V_ASN1_NEG_INTEGER = 2 or V_ASN1_NEG; + V_ASN1_NEG_ENUMERATED = 10 or V_ASN1_NEG; + + (* For use with d2i_ASN1_type_bytes() *) + B_ASN1_NUMERICSTRING = $0001; + B_ASN1_PRINTABLESTRING = $0002; + B_ASN1_T61STRING = $0004; + B_ASN1_TELETEXSTRING = $0004; + B_ASN1_VIDEOTEXSTRING = $0008; + B_ASN1_IA5STRING = $0010; + B_ASN1_GRAPHICSTRING = $0020; + B_ASN1_ISO64STRING = $0040; + B_ASN1_VISIBLESTRING = $0040; + B_ASN1_GENERALSTRING = $0080; + B_ASN1_UNIVERSALSTRING = $0100; + B_ASN1_OCTET_STRING = $0200; + B_ASN1_BIT_STRING = $0400; + B_ASN1_BMPSTRING = $0800; + B_ASN1_UNKNOWN = $1000; + B_ASN1_UTF8STRING = $2000; + B_ASN1_UTCTIME = $4000; + B_ASN1_GENERALIZEDTIME = $8000; + B_ASN1_SEQUENCE = $10000; + (* For use with ASN1_mbstring_copy() *) + MBSTRING_FLAG = $1000; + MBSTRING_UTF8 = MBSTRING_FLAG; + MBSTRING_ASC = MBSTRING_FLAG or 1; + MBSTRING_BMP = MBSTRING_FLAG or 2; + MBSTRING_UNIV = MBSTRING_FLAG or 4; + SMIME_OLDMIME = $400; + SMIME_CRLFEOL = $800; + SMIME_STREAM = $1000; + +// struct X509_algor_st; +//DEFINE_STACK_OF(X509_ALGOR) + + ASN1_STRING_FLAG_BITS_LEFT = $08; (* Set if $07 has bits left value *) + (* + * This indicates that the ASN1_STRING is not a real value but just a place + * holder for the location where indefinite length constructed data should be + * inserted in the memory buffer + *) + ASN1_STRING_FLAG_NDEF = $010; + + (* + * This flag is used by the CMS code to indicate that a string is not + * complete and is a place holder for content when it had all been accessed. + * The flag will be reset when content has been written to it. + *) + + ASN1_STRING_FLAG_CONT = $020; + (* + * This flag is used by ASN1 code to indicate an ASN1_STRING is an MSTRING + * type. + *) + ASN1_STRING_FLAG_MSTRING = $040; + (* String is embedded and only content should be freed *) + ASN1_STRING_FLAG_EMBED = $080; + (* String should be parsed in RFC 5280's time format *) + ASN1_STRING_FLAG_X509_TIME = $100; + + (* Used with ASN1 LONG type: if a long is set to this it is omitted *) + ASN1_LONG_UNDEF = TIdC_LONG($7fffffff); + + STABLE_FLAGS_MALLOC = $01; + (* + * A zero passed to ASN1_STRING_TABLE_new_add for the flags is interpreted + * as "don't change" and STABLE_FLAGS_MALLOC is always set. By setting + * STABLE_FLAGS_MALLOC only we can clear the existing value. Use the alias + * STABLE_FLAGS_CLEAR to reflect this. + *) + STABLE_FLAGS_CLEAR = STABLE_FLAGS_MALLOC; + STABLE_NO_MASK = $02; + DIRSTRING_TYPE = B_ASN1_PRINTABLESTRING or B_ASN1_T61STRING or B_ASN1_BMPSTRING or B_ASN1_UTF8STRING; + PKCS9STRING_TYPE = DIRSTRING_TYPE or B_ASN1_IA5STRING; + + (* size limits: this stuff is taken straight from RFC2459 *) + ub_name = 32768; + ub_common_name = 64; + ub_locality_name = 128; + ub_state_name = 128; + ub_organization_name = 64; + ub_organization_unit_name = 64; + ub_title = 64; + ub_email_address = 128; + + (* Parameters used by ASN1_STRING_print_ex() *) + + (* + * These determine which characters to escape: RFC2253 special characters, + * control characters and MSB set characters + *) + ASN1_STRFLGS_ESC_2253 = 1; + ASN1_STRFLGS_ESC_CTRL = 2; + ASN1_STRFLGS_ESC_MSB = 4; + + (* + * This flag determines how we do escaping: normally RC2253 backslash only, + * set this to use backslash and quote. + *) + + ASN1_STRFLGS_ESC_QUOTE = 8; + + (* These three flags are internal use only. *) + + (* Character is a valid PrintableString character *) + CHARTYPE_PRINTABLESTRING = $10; + (* Character needs escaping if it is the first character *) + CHARTYPE_FIRST_ESC_2253 = $20; + (* Character needs escaping if it is the last character *) + CHARTYPE_LAST_ESC_2253 = $40; + + (* + * NB the internal flags are safely reused below by flags handled at the top + * level. + *) + + (* + * If this is set we convert all character strings to UTF8 first + *) + + ASN1_STRFLGS_UTF8_CONVERT = $10; + + (* + * If this is set we don't attempt to interpret content: just assume all + * strings are 1 byte per character. This will produce some pretty odd + * looking output! + *) + + ASN1_STRFLGS_IGNORE_TYPE = $20; + + (* If this is set we include the string type in the output *) + ASN1_STRFLGS_SHOW_TYPE = $40; + + (* + * This determines which strings to display and which to 'dump' (hex dump of + * content octets or DER encoding). We can only dump non character strings or + * everything. If we don't dump 'unknown' they are interpreted as character + * strings with 1 octet per character and are subject to the usual escaping + * options. + *) + + ASN1_STRFLGS_DUMP_ALL = $80; + ASN1_STRFLGS_DUMP_UNKNOWN = $100; + + (* + * These determine what 'dumping' does, we can dump the content octets or the + * DER encoding: both use the RFC2253 #XXXXX notation. + *) + + ASN1_STRFLGS_DUMP_DER = $200; + + (* + * This flag specifies that RC2254 escaping shall be performed. + *) + + ASN1_STRFLGS_ESC_2254 = $400; + + (* + * All the string flags consistent with RFC2253, escaping control characters + * isn't essential in RFC2253 but it is advisable anyway. + *) + + ASN1_STRFLGS_RFC2253 = ASN1_STRFLGS_ESC_2253 or ASN1_STRFLGS_ESC_CTRL or + ASN1_STRFLGS_ESC_MSB or ASN1_STRFLGS_UTF8_CONVERT or + ASN1_STRFLGS_DUMP_UNKNOWN or ASN1_STRFLGS_DUMP_DER; + + B_ASN1_TIME = B_ASN1_UTCTIME or B_ASN1_GENERALIZEDTIME; + + B_ASN1_PRINTABLE = B_ASN1_NUMERICSTRING or B_ASN1_PRINTABLESTRING or + B_ASN1_T61STRING or B_ASN1_IA5STRING or B_ASN1_BIT_STRING or + B_ASN1_UNIVERSALSTRING or B_ASN1_BMPSTRING or B_ASN1_UTF8STRING or + B_ASN1_SEQUENCE or B_ASN1_UNKNOWN; + + B_ASN1_DIRECTORYSTRING = B_ASN1_PRINTABLESTRING or B_ASN1_TELETEXSTRING or + B_ASN1_BMPSTRING or B_ASN1_UNIVERSALSTRING or B_ASN1_UTF8STRING; + + B_ASN1_DISPLAYTEXT = B_ASN1_IA5STRING or B_ASN1_VISIBLESTRING or + B_ASN1_BMPSTRING or B_ASN1_UTF8STRING; + + (* ASN1 Print flags *) + (* Indicate missing OPTIONAL fields *) + ASN1_PCTX_FLAGS_SHOW_ABSENT = $001; + (* Mark start and end of SEQUENCE *) + ASN1_PCTX_FLAGS_SHOW_SEQUENCE = $002; + (* Mark start and end of SEQUENCE/SET OF *) + ASN1_PCTX_FLAGS_SHOW_SSOF = $004; + (* Show the ASN1 type of primitives *) + ASN1_PCTX_FLAGS_SHOW_TYPE = $008; + (* Don't show ASN1 type of ANY *) + ASN1_PCTX_FLAGS_NO_ANY_TYPE = $010; + (* Don't show ASN1 type of MSTRINGs *) + ASN1_PCTX_FLAGS_NO_MSTRING_TYPE = $020; + (* Don't show field names in SEQUENCE *) + ASN1_PCTX_FLAGS_NO_FIELD_NAME = $040; + (* Show structure names of each SEQUENCE field *) + ASN1_PCTX_FLAGS_SHOW_FIELD_STRUCT_NAME = $080; + (* Don't show structure name even at top level *) + ASN1_PCTX_FLAGS_NO_STRUCT_NAME = $100; + +type +// Moved to ossl_type to prevent circular references +///(* This is the base type that holds just about everything :-) *) +// asn1_string_st = record +// length: TIdC_int; +// type_: TIdC_int; +// data: PByte; +// (* +// * The value of the following field depends on the type being held. It +// * is mostly being used for BIT_STRING so if the input data has a +// * non-zero 'unused bits' value, it will be handled correctly +// *) +// flags: TIdC_long; +// end; + + (* + * ASN1_ENCODING structure: this is used to save the received encoding of an + * ASN1 type. This is useful to get round problems with invalid encodings + * which can break signatures. + *) + + ASN1_ENCODING_st = record + enc: PIdAnsiChar; (* DER encoding *) + len: TIdC_LONG; (* Length of encoding *) + modified: TIdC_INT; (* set to 1 if 'enc' is invalid *) + end; + ASN1_ENCODING = ASN1_ENCODING_st; + + asn1_string_table_st = record + nid: TIdC_INT; + minsize: TIdC_LONG; + maxsize: TIdC_LONG; + mask: TIdC_ULONG; + flags: TIdC_ULONG; + end; + ASN1_STRING_TABLE = asn1_string_table_st; + PASN1_STRING_TABLE = ^ASN1_STRING_TABLE; + +// DEFINE_STACK_OF(ASN1_STRING_TABLE) + + (* !!! + * Declarations for template structures: for full definitions see asn1t.h + *) + (* This is just an opaque pointer *) +// typedef struct ASN1_VALUE_st ASN1_VALUE; + + (* Declare ASN1 functions: the implement macro in in asn1t.h *) + +//# define DECLARE_ASN1_FUNCTIONS(type) DECLARE_ASN1_FUNCTIONS_name(type, type) +// +//# define DECLARE_ASN1_ALLOC_FUNCTIONS(type) \ +// DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, type) +// +//# define DECLARE_ASN1_FUNCTIONS_name(type, name) \ +// DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \ +// DECLARE_ASN1_ENCODE_FUNCTIONS(type, name, name) +// +//# define DECLARE_ASN1_FUNCTIONS_fname(type, itname, name) \ +// DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \ +// DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) +// +//# define DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) \ +// type *d2i_##name(type **a, const unsigned char **in, long len); \ +// int i2d_##name(type *a, unsigned char **out); \ +// DECLARE_ASN1_ITEM(itname) +// +//# define DECLARE_ASN1_ENCODE_FUNCTIONS_const(type, name) \ +// type *d2i_##name(type **a, const unsigned char **in, long len); \ +// int i2d_##name(const type *a, unsigned char **out); \ +// DECLARE_ASN1_ITEM(name) +// +//# define DECLARE_ASN1_NDEF_FUNCTION(name) \ +// int i2d_##name##_NDEF(name *a, unsigned char **out); +// +//# define DECLARE_ASN1_FUNCTIONS_const(name) \ +// DECLARE_ASN1_ALLOC_FUNCTIONS(name) \ +// DECLARE_ASN1_ENCODE_FUNCTIONS_const(name, name) +// +//# define DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \ +// type *name##_new(void); \ +// void name##_free(type *a); +// +//# define DECLARE_ASN1_PRINT_FUNCTION(stname) \ +// DECLARE_ASN1_PRINT_FUNCTION_fname(stname, stname) +// +//# define DECLARE_ASN1_PRINT_FUNCTION_fname(stname, fname) \ +// int fname##_print_ctx(BIO *out, stname *x, int indent, \ +// const ASN1_PCTX *pctx); +// +//# define D2I_OF(type) type *(*)(type **,const unsigned char **,long) +//# define I2D_OF(type) int (*)(type *,unsigned char **) +//# define I2D_OF_const(type) int (*)(const type *,unsigned char **) +// +//# define CHECKED_D2I_OF(type, d2i) \ +// ((d2i_of_void*) (1 ? d2i : ((D2I_OF(type))0))) +//# define CHECKED_I2D_OF(type, i2d) \ +// ((i2d_of_void*) (1 ? i2d : ((I2D_OF(type))0))) +//# define CHECKED_NEW_OF(type, xnew) \ +// ((void *(*)(void)) (1 ? xnew : ((type *(*)(void))0))) +//# define CHECKED_PTR_OF(type, p) \ +// ((void*) (1 ? p : (type*)0)) +//# define CHECKED_PPTR_OF(type, p) \ +// ((void**) (1 ? p : (type**)0)) +// +//# define TYPEDEF_D2I_OF(type) typedef type *d2i_of_##type(type **,const unsigned char **,long) +//# define TYPEDEF_I2D_OF(type) typedef int i2d_of_##type(type *,unsigned char **) +//# define TYPEDEF_D2I2D_OF(type) TYPEDEF_D2I_OF(type); TYPEDEF_I2D_OF(type) +// +//TYPEDEF_D2I2D_OF(void); + + (*- + * The following macros and typedefs allow an ASN1_ITEM + * to be embedded in a structure and referenced. Since + * the ASN1_ITEM pointers need to be globally accessible + * (possibly from shared libraries) they may exist in + * different forms. On platforms that support it the + * ASN1_ITEM structure itself will be globally exported. + * Other platforms will export a function that returns + * an ASN1_ITEM pointer. + * + * To handle both cases transparently the macros below + * should be used instead of hard coding an ASN1_ITEM + * pointer in a structure. + * + * The structure will look like this: + * + * typedef struct SOMETHING_st { + * ... + * ASN1_ITEM_EXP *iptr; + * ... + * } SOMETHING; + * + * It would be initialised as e.g.: + * + * SOMETHING somevar = {...,ASN1_ITEM_ref(X509),...}; + * + * and the actual pointer extracted with: + * + * const ASN1_ITEM *it = ASN1_ITEM_ptr(somevar.iptr); + * + * Finally an ASN1_ITEM pointer can be extracted from an + * appropriate reference with: ASN1_ITEM_rptr(X509). This + * would be used when a function takes an ASN1_ITEM * argument. + * + *) + +// # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION + +///(* ASN1_ITEM pointer exported type *) +//typedef const ASN1_ITEM ASN1_ITEM_EXP; +// +///(* Macro to obtain ASN1_ITEM pointer from exported type *) +//# define ASN1_ITEM_ptr(iptr) (iptr) +// +// (* Macro to include ASN1_ITEM pointer from base type *) +//# define ASN1_ITEM_ref(iptr) (&(iptr##_it)) +// +//# define ASN1_ITEM_rptr(ref) (&(ref##_it)) +// +//# define DECLARE_ASN1_ITEM(name) \ +// OPENSSL_EXTERN const ASN1_ITEM name##_it; +// +//# else + +// (* +// * Platforms that can't easily handle shared global variables are declared as +// * functions returning ASN1_ITEM pointers. +// *) + +///(* ASN1_ITEM pointer exported type *) +//typedef const ASN1_ITEM *ASN1_ITEM_EXP (void); +// +///(* Macro to obtain ASN1_ITEM pointer from exported type *) +//# define ASN1_ITEM_ptr(iptr) (iptr()) +// +///(* Macro to include ASN1_ITEM pointer from base type *) +//# define ASN1_ITEM_ref(iptr) (iptr##_it) +// +//# define ASN1_ITEM_rptr(ref) (ref##_it()) +// +//# define DECLARE_ASN1_ITEM(name) \ +// const ASN1_ITEM * name##_it(void); +// +//# endif + +//DEFINE_STACK_OF(ASN1_INTEGER) +// +//DEFINE_STACK_OF(ASN1_GENERALSTRING) +// +//DEFINE_STACK_OF(ASN1_UTF8STRING) + +//DEFINE_STACK_OF(ASN1_TYPE) +// +//typedef STACK_OF(ASN1_TYPE) ASN1_SEQUENCE_ANY; +// +//DECLARE_ASN1_ENCODE_FUNCTIONS_const(ASN1_SEQUENCE_ANY, ASN1_SEQUENCE_ANY) +//DECLARE_ASN1_ENCODE_FUNCTIONS_const(ASN1_SEQUENCE_ANY, ASN1_SET_ANY) + + (* This is used to contain a list of bit names *) + + BIT_STRING_BITNAME_st = record + bitnum: TIdC_INT; + lname: PIdAnsiChar; + sname: PIdAnsiChar; + end; + BIT_STRING_BITNAME = BIT_STRING_BITNAME_st; + PBIT_STRING_BITNAME = ^BIT_STRING_BITNAME; + +//DECLARE_ASN1_FUNCTIONS(type) --> +// type *name##_new(void); \ +// void name##_free(type *a); +// type *d2i_##name(type **a, const unsigned char **in, long len); \ +// int i2d_##name(type *a, unsigned char **out); \ +//# define DECLARE_ASN1_ITEM(name) \ +// OPENSSL_EXTERN const ASN1_ITEM name##_it; + +// DECLARE_ASN1_FUNCTIONS_fname(ASN1_TYPE, ASN1_ANY, ASN1_TYPE) + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ASN1_TYPE_get} + {$EXTERNALSYM ASN1_TYPE_set} + {$EXTERNALSYM ASN1_TYPE_set1} + {$EXTERNALSYM ASN1_TYPE_cmp} + {$EXTERNALSYM ASN1_TYPE_pack_sequence} {introduced 1.1.0} + {$EXTERNALSYM ASN1_TYPE_unpack_sequence} {introduced 1.1.0} + {$EXTERNALSYM ASN1_OBJECT_new} + {$EXTERNALSYM ASN1_OBJECT_free} + {$EXTERNALSYM i2d_ASN1_OBJECT} + {$EXTERNALSYM d2i_ASN1_OBJECT} + {$EXTERNALSYM ASN1_STRING_new} + {$EXTERNALSYM ASN1_STRING_free} + {$EXTERNALSYM ASN1_STRING_clear_free} + {$EXTERNALSYM ASN1_STRING_copy} + {$EXTERNALSYM ASN1_STRING_dup} + {$EXTERNALSYM ASN1_STRING_type_new} + {$EXTERNALSYM ASN1_STRING_cmp} + {$EXTERNALSYM ASN1_STRING_set} + {$EXTERNALSYM ASN1_STRING_set0} + {$EXTERNALSYM ASN1_STRING_length} + {$EXTERNALSYM ASN1_STRING_length_set} + {$EXTERNALSYM ASN1_STRING_type} + {$EXTERNALSYM ASN1_STRING_get0_data} {introduced 1.1.0} + {$EXTERNALSYM ASN1_BIT_STRING_set} + {$EXTERNALSYM ASN1_BIT_STRING_set_bit} + {$EXTERNALSYM ASN1_BIT_STRING_get_bit} + {$EXTERNALSYM ASN1_BIT_STRING_check} + {$EXTERNALSYM ASN1_BIT_STRING_name_print} + {$EXTERNALSYM ASN1_BIT_STRING_num_asc} + {$EXTERNALSYM ASN1_BIT_STRING_set_asc} + {$EXTERNALSYM ASN1_INTEGER_new} + {$EXTERNALSYM ASN1_INTEGER_free} + {$EXTERNALSYM d2i_ASN1_INTEGER} + {$EXTERNALSYM i2d_ASN1_INTEGER} + {$EXTERNALSYM d2i_ASN1_UINTEGER} + {$EXTERNALSYM ASN1_INTEGER_dup} + {$EXTERNALSYM ASN1_INTEGER_cmp} + {$EXTERNALSYM ASN1_UTCTIME_check} + {$EXTERNALSYM ASN1_UTCTIME_set} + {$EXTERNALSYM ASN1_UTCTIME_adj} + {$EXTERNALSYM ASN1_UTCTIME_set_string} + {$EXTERNALSYM ASN1_UTCTIME_cmp_time_t} + {$EXTERNALSYM ASN1_GENERALIZEDTIME_check} + {$EXTERNALSYM ASN1_GENERALIZEDTIME_set} + {$EXTERNALSYM ASN1_GENERALIZEDTIME_adj} + {$EXTERNALSYM ASN1_GENERALIZEDTIME_set_string} + {$EXTERNALSYM ASN1_TIME_diff} + {$EXTERNALSYM ASN1_OCTET_STRING_dup} + {$EXTERNALSYM ASN1_OCTET_STRING_cmp} + {$EXTERNALSYM ASN1_OCTET_STRING_set} + {$EXTERNALSYM UTF8_getc} + {$EXTERNALSYM UTF8_putc} + {$EXTERNALSYM ASN1_UTCTIME_new} + {$EXTERNALSYM ASN1_UTCTIME_free} + {$EXTERNALSYM d2i_ASN1_UTCTIME} + {$EXTERNALSYM i2d_ASN1_UTCTIME} + {$EXTERNALSYM ASN1_GENERALIZEDTIME_new} + {$EXTERNALSYM ASN1_GENERALIZEDTIME_free} + {$EXTERNALSYM d2i_ASN1_GENERALIZEDTIME} + {$EXTERNALSYM i2d_ASN1_GENERALIZEDTIME} + {$EXTERNALSYM ASN1_TIME_new} + {$EXTERNALSYM ASN1_TIME_free} + {$EXTERNALSYM d2i_ASN1_TIME} + {$EXTERNALSYM i2d_ASN1_TIME} + {$EXTERNALSYM ASN1_TIME_set} + {$EXTERNALSYM ASN1_TIME_adj} + {$EXTERNALSYM ASN1_TIME_check} + {$EXTERNALSYM ASN1_TIME_to_generalizedtime} + {$EXTERNALSYM ASN1_TIME_set_string} + {$EXTERNALSYM ASN1_TIME_set_string_X509} {introduced 1.1.0} + {$EXTERNALSYM ASN1_TIME_to_tm} {introduced 1.1.0} + {$EXTERNALSYM ASN1_TIME_normalize} {introduced 1.1.0} + {$EXTERNALSYM ASN1_TIME_cmp_time_t} {introduced 1.1.0} + {$EXTERNALSYM ASN1_TIME_compare} {introduced 1.1.0} + {$EXTERNALSYM i2a_ASN1_INTEGER} + {$EXTERNALSYM a2i_ASN1_INTEGER} + {$EXTERNALSYM i2a_ASN1_ENUMERATED} + {$EXTERNALSYM a2i_ASN1_ENUMERATED} + {$EXTERNALSYM i2a_ASN1_OBJECT} + {$EXTERNALSYM a2i_ASN1_STRING} + {$EXTERNALSYM i2a_ASN1_STRING} + {$EXTERNALSYM i2t_ASN1_OBJECT} + {$EXTERNALSYM a2d_ASN1_OBJECT} + {$EXTERNALSYM ASN1_OBJECT_create} + {$EXTERNALSYM ASN1_INTEGER_get_int64} {introduced 1.1.0} + {$EXTERNALSYM ASN1_INTEGER_set_int64} {introduced 1.1.0} + {$EXTERNALSYM ASN1_INTEGER_get_uint64} {introduced 1.1.0} + {$EXTERNALSYM ASN1_INTEGER_set_uint64} {introduced 1.1.0} + {$EXTERNALSYM ASN1_INTEGER_set} + {$EXTERNALSYM ASN1_INTEGER_get} + {$EXTERNALSYM BN_to_ASN1_INTEGER} + {$EXTERNALSYM ASN1_INTEGER_to_BN} + {$EXTERNALSYM ASN1_ENUMERATED_get_int64} {introduced 1.1.0} + {$EXTERNALSYM ASN1_ENUMERATED_set_int64} {introduced 1.1.0} + {$EXTERNALSYM ASN1_ENUMERATED_set} + {$EXTERNALSYM ASN1_ENUMERATED_get} + {$EXTERNALSYM BN_to_ASN1_ENUMERATED} + {$EXTERNALSYM ASN1_ENUMERATED_to_BN} + {$EXTERNALSYM ASN1_PRINTABLE_type} + {$EXTERNALSYM ASN1_tag2bit} + {$EXTERNALSYM ASN1_get_object} + {$EXTERNALSYM ASN1_check_infinite_end} + {$EXTERNALSYM ASN1_const_check_infinite_end} + {$EXTERNALSYM ASN1_put_object} + {$EXTERNALSYM ASN1_put_eoc} + {$EXTERNALSYM ASN1_object_size} + {$EXTERNALSYM ASN1_item_dup} + {$EXTERNALSYM ASN1_STRING_to_UTF8} + {$EXTERNALSYM ASN1_item_d2i_bio} + {$EXTERNALSYM ASN1_i2d_bio} + {$EXTERNALSYM ASN1_item_i2d_bio} + {$EXTERNALSYM ASN1_UTCTIME_print} + {$EXTERNALSYM ASN1_GENERALIZEDTIME_print} + {$EXTERNALSYM ASN1_TIME_print} + {$EXTERNALSYM ASN1_STRING_print} + {$EXTERNALSYM ASN1_STRING_print_ex} + {$EXTERNALSYM ASN1_buf_print} {introduced 1.1.0} + {$EXTERNALSYM ASN1_bn_print} + {$EXTERNALSYM ASN1_parse} + {$EXTERNALSYM ASN1_parse_dump} + {$EXTERNALSYM ASN1_tag2str} + {$EXTERNALSYM ASN1_UNIVERSALSTRING_to_string} + {$EXTERNALSYM ASN1_TYPE_set_octetstring} + {$EXTERNALSYM ASN1_TYPE_get_octetstring} + {$EXTERNALSYM ASN1_TYPE_set_int_octetstring} + {$EXTERNALSYM ASN1_TYPE_get_int_octetstring} + {$EXTERNALSYM ASN1_item_unpack} + {$EXTERNALSYM ASN1_item_pack} + {$EXTERNALSYM ASN1_STRING_set_default_mask} + {$EXTERNALSYM ASN1_STRING_set_default_mask_asc} + {$EXTERNALSYM ASN1_STRING_get_default_mask} + {$EXTERNALSYM ASN1_mbstring_copy} + {$EXTERNALSYM ASN1_mbstring_ncopy} + {$EXTERNALSYM ASN1_STRING_set_by_NID} + {$EXTERNALSYM ASN1_STRING_TABLE_get} + {$EXTERNALSYM ASN1_STRING_TABLE_add} + {$EXTERNALSYM ASN1_STRING_TABLE_cleanup} + {$EXTERNALSYM ASN1_item_new} + {$EXTERNALSYM ASN1_item_free} + {$EXTERNALSYM ASN1_item_d2i} + {$EXTERNALSYM ASN1_item_i2d} + {$EXTERNALSYM ASN1_item_ndef_i2d} + {$EXTERNALSYM ASN1_add_oid_module} + {$EXTERNALSYM ASN1_add_stable_module} {introduced 1.1.0} + {$EXTERNALSYM ASN1_generate_nconf} + {$EXTERNALSYM ASN1_generate_v3} + {$EXTERNALSYM ASN1_str2mask} {introduced 1.1.0} + {$EXTERNALSYM ASN1_item_print} + {$EXTERNALSYM ASN1_PCTX_new} + {$EXTERNALSYM ASN1_PCTX_free} + {$EXTERNALSYM ASN1_PCTX_get_flags} + {$EXTERNALSYM ASN1_PCTX_set_flags} + {$EXTERNALSYM ASN1_PCTX_get_nm_flags} + {$EXTERNALSYM ASN1_PCTX_set_nm_flags} + {$EXTERNALSYM ASN1_PCTX_get_cert_flags} + {$EXTERNALSYM ASN1_PCTX_set_cert_flags} + {$EXTERNALSYM ASN1_PCTX_get_oid_flags} + {$EXTERNALSYM ASN1_PCTX_set_oid_flags} + {$EXTERNALSYM ASN1_PCTX_get_str_flags} + {$EXTERNALSYM ASN1_PCTX_set_str_flags} + {$EXTERNALSYM ASN1_SCTX_free} {introduced 1.1.0} + {$EXTERNALSYM ASN1_SCTX_get_item} {introduced 1.1.0} + {$EXTERNALSYM ASN1_SCTX_get_template} {introduced 1.1.0} + {$EXTERNALSYM ASN1_SCTX_get_flags} {introduced 1.1.0} + {$EXTERNALSYM ASN1_SCTX_set_app_data} {introduced 1.1.0} + {$EXTERNALSYM ASN1_SCTX_get_app_data} {introduced 1.1.0} + {$EXTERNALSYM BIO_f_asn1} + {$EXTERNALSYM BIO_new_NDEF} + {$EXTERNALSYM i2d_ASN1_bio_stream} + {$EXTERNALSYM PEM_write_bio_ASN1_stream} + {$EXTERNALSYM SMIME_read_ASN1} + {$EXTERNALSYM SMIME_crlf_copy} + {$EXTERNALSYM SMIME_text} + {$EXTERNALSYM ASN1_ITEM_lookup} {introduced 1.1.0} + {$EXTERNALSYM ASN1_ITEM_get} {introduced 1.1.0} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ASN1_TYPE_get: function(const a: PASN1_TYPE): TIdC_INT; cdecl = nil; + ASN1_TYPE_set: procedure(a: PASN1_TYPE; type_: TIdC_INT; value: Pointer); cdecl = nil; + ASN1_TYPE_set1: function(a: PASN1_TYPE; type_: TIdC_INT; const value: Pointer): TIdC_INT; cdecl = nil; + ASN1_TYPE_cmp: function(const a: PASN1_TYPE; const b: PASN1_TYPE): TIdC_INT; cdecl = nil; + + ASN1_TYPE_pack_sequence: function(const it: PASN1_ITEM; s: Pointer; t: PPASN1_TYPE): PASN1_TYPE; cdecl = nil; {introduced 1.1.0} + ASN1_TYPE_unpack_sequence: function(const it: PASN1_ITEM; const t: PASN1_TYPE): Pointer; cdecl = nil; {introduced 1.1.0} + + ASN1_OBJECT_new: function: PASN1_OBJECT; cdecl = nil; + ASN1_OBJECT_free: procedure(a: PASN1_OBJECT); cdecl = nil; + i2d_ASN1_OBJECT: function(const a: PASN1_OBJECT; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_ASN1_OBJECT: function(a: PPASN1_OBJECT; const pp: PPByte; length: TIdC_LONG): PASN1_OBJECT; cdecl = nil; + + //DECLARE_ASN1_ITEM(ASN1_OBJECT) + // + //DEFINE_STACK_OF(ASN1_OBJECT) + + ASN1_STRING_new: function: PASN1_STRING; cdecl = nil; + ASN1_STRING_free: procedure(a: PASN1_STRING); cdecl = nil; + ASN1_STRING_clear_free: procedure(a: PASN1_STRING); cdecl = nil; + ASN1_STRING_copy: function(dst: PASN1_STRING; const str: PASN1_STRING): TIdC_INT; cdecl = nil; + ASN1_STRING_dup: function(const a: PASN1_STRING): PASN1_STRING; cdecl = nil; + ASN1_STRING_type_new: function(type_: TIdC_INT): PASN1_STRING; cdecl = nil; + ASN1_STRING_cmp: function(const a: PASN1_STRING; const b: PASN1_STRING): TIdC_INT; cdecl = nil; + + (* + * Since this is used to store all sorts of things, via macros, for now, + * make its data void * + *) + ASN1_STRING_set: function(str: PASN1_STRING; const data: Pointer; len: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_STRING_set0: procedure(str: PASN1_STRING; data: Pointer; len: TIdC_INT); cdecl = nil; + ASN1_STRING_length: function(const x: PASN1_STRING): TIdC_INT; cdecl = nil; + ASN1_STRING_length_set: procedure(x: PASN1_STRING; n: TIdC_INT); cdecl = nil; + ASN1_STRING_type: function(const x: PASN1_STRING): TIdC_INT; cdecl = nil; + ASN1_STRING_get0_data: function(const x: PASN1_STRING): PByte; cdecl = nil; {introduced 1.1.0} + + //DECLARE_ASN1_FUNCTIONS(ASN1_BIT_STRING) + ASN1_BIT_STRING_set: function(a: PASN1_BIT_STRING; d: PByte; length: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_BIT_STRING_set_bit: function(a: PASN1_BIT_STRING; n: TIdC_INT; value: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_BIT_STRING_get_bit: function(const a: PASN1_BIT_STRING; n: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_BIT_STRING_check: function(const a: PASN1_BIT_STRING; const flags: PByte; flags_len: TIdC_INT): TIdC_INT; cdecl = nil; + + ASN1_BIT_STRING_name_print: function(out_: PBIO; bs: PASN1_BIT_STRING; tbl: PBIT_STRING_BITNAME; indent: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_BIT_STRING_num_asc: function(const name: PIdAnsiChar; tbl: PBIT_STRING_BITNAME): TIdC_INT; cdecl = nil; + ASN1_BIT_STRING_set_asc: function(bs: PASN1_BIT_STRING; const name: PIdAnsiChar; value: TIdC_INT; tbl: PBIT_STRING_BITNAME): TIdC_INT; cdecl = nil; + + ASN1_INTEGER_new: function: PASN1_INTEGER; cdecl = nil; + ASN1_INTEGER_free: procedure(a: PASN1_INTEGER); cdecl = nil; + d2i_ASN1_INTEGER: function(a: PPASN1_INTEGER; const in_: PPByte; len: TIdC_Long): PASN1_INTEGER; cdecl = nil; + i2d_ASN1_INTEGER: function(a: PASN1_INTEGER; out_: PPByte): TIdC_Int; cdecl = nil; + + d2i_ASN1_UINTEGER: function(a: PPASN1_INTEGER; const pp: PPByte; length: TIdC_LONG): PASN1_INTEGER; cdecl = nil; + ASN1_INTEGER_dup: function(const x: PASN1_INTEGER): PASN1_INTEGER; cdecl = nil; + ASN1_INTEGER_cmp: function(const x: PASN1_INTEGER; const y: PASN1_INTEGER): TIdC_INT; cdecl = nil; + + // DECLARE_ASN1_FUNCTIONS(ASN1_ENUMERATED) + + ASN1_UTCTIME_check: function(const a: PASN1_UTCTIME): TIdC_INT; cdecl = nil; + ASN1_UTCTIME_set: function(s: PASN1_UTCTIME; t: TIdC_TIMET): PASN1_UTCTIME; cdecl = nil; + ASN1_UTCTIME_adj: function(s: PASN1_UTCTIME; t: TIdC_TIMET; offset_day: TIdC_INT; offset_sec: TIdC_LONG): PASN1_UTCTIME; cdecl = nil; + ASN1_UTCTIME_set_string: function(s: PASN1_UTCTIME; const str: PAnsiChar): TIdC_INT; cdecl = nil; + ASN1_UTCTIME_cmp_time_t: function(const s: PASN1_UTCTIME; t: TIdC_TIMET): TIdC_INT; cdecl = nil; + + ASN1_GENERALIZEDTIME_check: function(const a: PASN1_GENERALIZEDTIME): TIdC_INT; cdecl = nil; + ASN1_GENERALIZEDTIME_set: function(s: PASN1_GENERALIZEDTIME; t: TIdC_TIMET): PASN1_GENERALIZEDTIME; cdecl = nil; + ASN1_GENERALIZEDTIME_adj: function(s: PASN1_GENERALIZEDTIME; t: TIdC_TIMET; offset_day: TIdC_INT; offset_sec: TIdC_LONG): PASN1_GENERALIZEDTIME; cdecl = nil; + ASN1_GENERALIZEDTIME_set_string: function(s: pASN1_GENERALIZEDTIME; const str: PAnsiChar): TIdC_INT; cdecl = nil; + + ASN1_TIME_diff: function(pday: PIdC_INT; psec: PIdC_INT; const from: PASN1_TIME; const to_: PASN1_TIME): TIdC_INT; cdecl = nil; + + // DECLARE_ASN1_FUNCTIONS(ASN1_OCTET_STRING) + ASN1_OCTET_STRING_dup: function(const a: PASN1_OCTET_STRING): PASN1_OCTET_STRING; cdecl = nil; + ASN1_OCTET_STRING_cmp: function(const a: PASN1_OCTET_STRING; const b: PASN1_OCTET_STRING): TIdC_INT; cdecl = nil; + ASN1_OCTET_STRING_set: function(str: PASN1_OCTET_STRING; const data: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + + //DECLARE_ASN1_FUNCTIONS(ASN1_VISIBLESTRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_UNIVERSALSTRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_UTF8STRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_NULL) + //DECLARE_ASN1_FUNCTIONS(ASN1_BMPSTRING) + + UTF8_getc: function(const str: PByte; len: TIdC_INT; val: PIdC_ULONG): TIdC_INT; cdecl = nil; + UTF8_putc: function(str: PIdAnsiChar; len: TIdC_INT; value: TIdC_ULONG): TIdC_INT; cdecl = nil; + + //DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE) + // + //DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DIRECTORYSTRING) + //DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DISPLAYTEXT) + //DECLARE_ASN1_FUNCTIONS(ASN1_PRINTABLESTRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_T61STRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_IA5STRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_GENERALSTRING) + + ASN1_UTCTIME_new: function: PASN1_UTCTIME; cdecl = nil; + ASN1_UTCTIME_free: procedure(a: PASN1_UTCTIME); cdecl = nil; + d2i_ASN1_UTCTIME: function(a: PPASN1_UTCTIME; const in_: PPByte; len: TIdC_LONG): PASN1_UTCTIME; cdecl = nil; + i2d_ASN1_UTCTIME: function(a: PASN1_UTCTIME; out_: PPByte): TIdC_INT; cdecl = nil; + + ASN1_GENERALIZEDTIME_new: function: PASN1_GENERALIZEDTIME; cdecl = nil; + ASN1_GENERALIZEDTIME_free: procedure(a: PASN1_GENERALIZEDTIME); cdecl = nil; + d2i_ASN1_GENERALIZEDTIME: function(a: PPASN1_GENERALIZEDTIME; const in_: PPByte; len: TIdC_LONG): PASN1_GENERALIZEDTIME; cdecl = nil; + i2d_ASN1_GENERALIZEDTIME: function(a: PASN1_GENERALIZEDTIME; out_: PPByte): TIdC_INT; cdecl = nil; + + ASN1_TIME_new: function: PASN1_TIME; cdecl = nil; + ASN1_TIME_free: procedure(a: PASN1_TIME); cdecl = nil; + d2i_ASN1_TIME: function(a: PPASN1_TIME; const in_: PPByte; len: TIdC_LONG): PASN1_TIME; cdecl = nil; + i2d_ASN1_TIME: function(a: PASN1_TIME; out_: PPByte): TIdC_INT; cdecl = nil; + + // DECLARE_ASN1_ITEM(ASN1_OCTET_STRING_NDEF) + + ASN1_TIME_set: function(s: PASN1_TIME; t: TIdC_TIMET): PASN1_TIME; cdecl = nil; + ASN1_TIME_adj: function(s: PASN1_TIME; t: TIdC_TIMET; offset_day: TIdC_INT; offset_sec: TIdC_LONG): PASN1_TIME; cdecl = nil; + ASN1_TIME_check: function(const t: PASN1_TIME): TIdC_INT; cdecl = nil; + ASN1_TIME_to_generalizedtime: function(const t: PASN1_TIME; out_: PPASN1_GENERALIZEDTIME): PASN1_GENERALIZEDTIME; cdecl = nil; + ASN1_TIME_set_string: function(s: PASN1_TIME; const str: PIdAnsiChar): TIdC_INT; cdecl = nil; + ASN1_TIME_set_string_X509: function(s: PASN1_TIME; const str: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASN1_TIME_to_tm: function(const s: PASN1_TIME; tm: PIdC_TM): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASN1_TIME_normalize: function(s: PASN1_TIME): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASN1_TIME_cmp_time_t: function(const s: PASN1_TIME; t: TIdC_TIMET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASN1_TIME_compare: function(const a: PASN1_TIME; const b: PASN1_TIME): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + i2a_ASN1_INTEGER: function(bp: PBIO; const a: PASN1_INTEGER): TIdC_INT; cdecl = nil; + a2i_ASN1_INTEGER: function(bp: PBIO; bs: PASN1_INTEGER; buf: PIdAnsiChar; size: TIdC_INT): TIdC_INT; cdecl = nil; + i2a_ASN1_ENUMERATED: function(bp: PBIO; const a: PASN1_ENUMERATED): TIdC_INT; cdecl = nil; + a2i_ASN1_ENUMERATED: function(bp: PBIO; bs: PASN1_ENUMERATED; buf: PIdAnsiChar; size: TIdC_INT): TIdC_INT; cdecl = nil; + i2a_ASN1_OBJECT: function(bp: PBIO; const a: PASN1_OBJECT): TIdC_INT; cdecl = nil; + a2i_ASN1_STRING: function(bp: PBIO; bs: PASN1_STRING; buf: PAnsiChar; size: TIdC_INT): TIdC_INT; cdecl = nil; + i2a_ASN1_STRING: function(bp: PBIO; const a: PASN1_STRING; type_: TIdC_INT): TIdC_INT; cdecl = nil; + i2t_ASN1_OBJECT: function(buf: PAnsiChar; buf_len: TIdC_INT; const a: PASN1_OBJECT): TIdC_INT; cdecl = nil; + + a2d_ASN1_OBJECT: function(out_: PByte; olen: TIdC_INT; const buf: PIdAnsiChar; num: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_OBJECT_create: function(nid: TIdC_INT; data: PByte; len: TIdC_INT; const sn: PAnsiChar; const ln: PAnsiChar): PASN1_OBJECT; cdecl = nil; + + ASN1_INTEGER_get_int64: function(pr: PIdC_Int64; const a: PASN1_INTEGER): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASN1_INTEGER_set_int64: function(a: PASN1_INTEGER; r: TIdC_Int64): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASN1_INTEGER_get_uint64: function(pr: PIdC_UInt64; const a: PASN1_INTEGER): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASN1_INTEGER_set_uint64: function(a: PASN1_INTEGER; r: TIdC_UInt64): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + ASN1_INTEGER_set: function(a: PASN1_INTEGER; v: TIdC_LONG): TIdC_INT; cdecl = nil; + ASN1_INTEGER_get: function(const a: PASN1_INTEGER): TIdC_LONG; cdecl = nil; + BN_to_ASN1_INTEGER: function(const bn: PBIGNUM; ai: PASN1_INTEGER): PASN1_INTEGER; cdecl = nil; + ASN1_INTEGER_to_BN: function(const ai: PASN1_INTEGER; bn: PBIGNUM): PBIGNUM; cdecl = nil; + + ASN1_ENUMERATED_get_int64: function(pr: PIdC_Int64; const a: PASN1_ENUMERATED): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASN1_ENUMERATED_set_int64: function(a: PASN1_ENUMERATED; r: TIdC_Int64): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + + ASN1_ENUMERATED_set: function(a: PASN1_ENUMERATED; v: TIdC_LONG): TIdC_INT; cdecl = nil; + ASN1_ENUMERATED_get: function(const a: PASN1_ENUMERATED): TIdC_LONG; cdecl = nil; + BN_to_ASN1_ENUMERATED: function(const bn: PBIGNUM; ai: PASN1_ENUMERATED): PASN1_ENUMERATED; cdecl = nil; + ASN1_ENUMERATED_to_BN: function(const ai: PASN1_ENUMERATED; bn: PBIGNUM): PBIGNUM; cdecl = nil; + + (* General *) + (* given a string, return the correct type, max is the maximum length *) + ASN1_PRINTABLE_type: function(const s: PByte; max: TIdC_INT): TIdC_INT; cdecl = nil; + + ASN1_tag2bit: function(tag: TIdC_INT): TIdC_ULONG; cdecl = nil; + + (* SPECIALS *) + ASN1_get_object: function(const pp: PPByte; plength: PIdC_LONG; ptag: PIdC_INT; pclass: PIdC_INT; omax: TIdC_LONG): TIdC_INT; cdecl = nil; + ASN1_check_infinite_end: function(p: PPByte; len: TIdC_LONG): TIdC_INT; cdecl = nil; + ASN1_const_check_infinite_end: function(const p: PPByte; len: TIdC_LONG): TIdC_INT; cdecl = nil; + ASN1_put_object: procedure(pp: PPByte; constructed: TIdC_INT; length: TIdC_INT; tag: TIdC_INT; xclass: TIdC_INT); cdecl = nil; + ASN1_put_eoc: function(pp: PPByte): TIdC_INT; cdecl = nil; + ASN1_object_size: function(constructed: TIdC_INT; length: TIdC_INT; tag: TIdC_INT): TIdC_INT; cdecl = nil; + + (* Used to implement other functions *) + //void *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, void *x); + // + //# define ASN1_dup_of(type,i2d,d2i,x) \ + // ((type*)ASN1_dup(CHECKED_I2D_OF(type, i2d), \ + // CHECKED_D2I_OF(type, d2i), \ + // CHECKED_PTR_OF(type, x))) + // + //# define ASN1_dup_of_const(type,i2d,d2i,x) \ + // ((type*)ASN1_dup(CHECKED_I2D_OF(const type, i2d), \ + // CHECKED_D2I_OF(type, d2i), \ + // CHECKED_PTR_OF(const type, x))) + // + ASN1_item_dup: function(const it: PASN1_ITEM; x: Pointer): Pointer; cdecl = nil; + + (* ASN1 alloc/free macros for when a type is only used internally *) + + //# define M_ASN1_new_of(type) (type *)ASN1_item_new(ASN1_ITEM_rptr(type)) + //# define M_ASN1_free_of(x, type) \ + // ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type)) + // + //# ifndef OPENSSL_NO_STDIO + //void *ASN1_d2i_fp(void *(*xnew) (void), d2i_of_void *d2i, FILE *in, void **x); + + //# define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ + // ((type*)ASN1_d2i_fp(CHECKED_NEW_OF(type, xnew), \ + // CHECKED_D2I_OF(type, d2i), \ + // in, \ + // CHECKED_PPTR_OF(type, x))) + // + //function ASN1_item_d2i_fp(const it: PASN1_ITEM; in_: PFILE; x: Pointer): Pointer; + //function ASN1_i2d_fp(i2d: Pi2d_of_void; out_: PFILE; x: Pointer): TIdC_INT; + // + //# define ASN1_i2d_fp_of(type,i2d,out,x) \ + // (ASN1_i2d_fp(CHECKED_I2D_OF(type, i2d), \ + // out, \ + // CHECKED_PTR_OF(type, x))) + // + //# define ASN1_i2d_fp_of_const(type,i2d,out,x) \ + // (ASN1_i2d_fp(CHECKED_I2D_OF(const type, i2d), \ + // out, \ + // CHECKED_PTR_OF(const type, x))) + // + //function ASN1_item_i2d_fp(const it: PASN1_ITEM; out_: PFILE; x: Pointer): TIdC_INT; + //function ASN1_STRING_print_ex_fp(&fp: PFILE; const str: PASN1_STRING; flags: TIdC_ULONG): TIdC_INT; + //# endif + + ASN1_STRING_to_UTF8: function(out_: PPByte; const in_: PASN1_STRING): TIdC_INT; cdecl = nil; + + //void *ASN1_d2i_bio(void *(*xnew) (void), d2i_of_void *d2i, BIO *in, void **x); + + //# define ASN1_d2i_bio_of(type,xnew,d2i,in,x) \ + // ((type*)ASN1_d2i_bio( CHECKED_NEW_OF(type, xnew), \ + // CHECKED_D2I_OF(type, d2i), \ + // in, \ + // CHECKED_PPTR_OF(type, x))) + + ASN1_item_d2i_bio: function(const it: PASN1_ITEM; in_: PBIO; x: Pointer): Pointer; cdecl = nil; + ASN1_i2d_bio: function(i2d: Pi2d_of_void; out_: PBIO; x: PByte): TIdC_INT; cdecl = nil; + + //# define ASN1_i2d_bio_of(type,i2d,out,x) \ + // (ASN1_i2d_bio(CHECKED_I2D_OF(type, i2d), \ + // out, \ + // CHECKED_PTR_OF(type, x))) + // + //# define ASN1_i2d_bio_of_const(type,i2d,out,x) \ + // (ASN1_i2d_bio(CHECKED_I2D_OF(const type, i2d), \ + // out, \ + // CHECKED_PTR_OF(const type, x))) + + ASN1_item_i2d_bio: function(const it: PASN1_ITEM; out_: PBIO; x: Pointer): TIdC_INT; cdecl = nil; + ASN1_UTCTIME_print: function(fp: PBIO; const a: PASN1_UTCTIME): TIdC_INT; cdecl = nil; + ASN1_GENERALIZEDTIME_print: function(fp: PBIO; const a: PASN1_GENERALIZEDTIME): TIdC_INT; cdecl = nil; + ASN1_TIME_print: function(fp: PBIO; const a: PASN1_TIME): TIdC_INT; cdecl = nil; + ASN1_STRING_print: function(bp: PBIO; const v: PASN1_STRING): TIdC_INT; cdecl = nil; + ASN1_STRING_print_ex: function(out_: PBIO; const str: PASN1_STRING; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + ASN1_buf_print: function(bp: PBIO; const buf: PByte; buflen: TIdC_SIZET; off: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASN1_bn_print: function(bp: PBIO; const number: PIdAnsiChar; const num: PBIGNUM; buf: PByte; off: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_parse: function(bp: PBIO; const pp: PByte; len: TIdC_LONG; indent: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_parse_dump: function(bp: PPBIO; const pp: PByte; len: TIdC_LONG; indent: TIdC_INT; dump: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_tag2str: function(tag: TIdC_INT): PIdAnsiChar; cdecl = nil; + + (* Used to load and write Netscape format cert *) + + ASN1_UNIVERSALSTRING_to_string: function(s: PASN1_UNIVERSALSTRING): TIdC_INT; cdecl = nil; + + ASN1_TYPE_set_octetstring: function(a: PASN1_TYPE; data: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_TYPE_get_octetstring: function(const a: PASN1_TYPE; data: PByte; max_len: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_TYPE_set_int_octetstring: function(a: PASN1_TYPE; num: TIdC_LONG; data: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + ASN1_TYPE_get_int_octetstring: function(const a: PASN1_TYPE; num: PIdC_LONG; data: PByte; max_len: TIdC_INT): TIdC_INT; cdecl = nil; + + ASN1_item_unpack: function(const oct: PASN1_STRING; const it: PASN1_ITEM): Pointer; cdecl = nil; + + ASN1_item_pack: function(obj: Pointer; const it: PASN1_ITEM; oct: PPASN1_OCTET_STRING): PASN1_STRING; cdecl = nil; + + ASN1_STRING_set_default_mask: procedure(mask: TIdC_ULONG); cdecl = nil; + ASN1_STRING_set_default_mask_asc: function(const p: PAnsiChar): TIdC_INT; cdecl = nil; + ASN1_STRING_get_default_mask: function: TIdC_ULONG; cdecl = nil; + ASN1_mbstring_copy: function(out_: PPASN1_STRING; const in_: PByte; len: TIdC_INT; inform: TIdC_INT; mask: TIdC_ULONG): TIdC_INT; cdecl = nil; + ASN1_mbstring_ncopy: function(out_: PPASN1_STRING; const in_: PByte; len: TIdC_INT; inform: TIdC_INT; mask: TIdC_ULONG; minsize: TIdC_LONG; maxsize: TIdC_LONG): TIdC_INT; cdecl = nil; + + ASN1_STRING_set_by_NID: function(out_: PPASN1_STRING; const in_: PByte; inlen: TIdC_INT; inform: TIdC_INT; nid: TIdC_INT): PASN1_STRING; cdecl = nil; + ASN1_STRING_TABLE_get: function(nid: TIdC_INT): PASN1_STRING_TABLE; cdecl = nil; + ASN1_STRING_TABLE_add: function(v1: TIdC_INT; v2: TIdC_LONG; v3: TIdC_LONG; v4: TIdC_ULONG; v5: TIdC_ULONG): TIdC_INT; cdecl = nil; + ASN1_STRING_TABLE_cleanup: procedure; cdecl = nil; + + (* ASN1 template functions *) + + (* Old API compatible functions *) + ASN1_item_new: function(const it: PASN1_ITEM): PASN1_VALUE; cdecl = nil; + ASN1_item_free: procedure(val: PASN1_VALUE; const it: PASN1_ITEM); cdecl = nil; + ASN1_item_d2i: function(val: PPASN1_VALUE; const in_: PPByte; len: TIdC_LONG; const it: PASN1_ITEM): PASN1_VALUE; cdecl = nil; + ASN1_item_i2d: function(val: PASN1_VALUE; out_: PPByte; const it: PASN1_ITEM): TIdC_INT; cdecl = nil; + ASN1_item_ndef_i2d: function(val: PASN1_VALUE; out_: PPByte; const it: PASN1_ITEM): TIdC_INT; cdecl = nil; + + ASN1_add_oid_module: procedure; cdecl = nil; + ASN1_add_stable_module: procedure; cdecl = nil; {introduced 1.1.0} + + ASN1_generate_nconf: function(const str: PAnsiChar; nconf: PCONF): PASN1_TYPE; cdecl = nil; + ASN1_generate_v3: function(const str: PAnsiChar; cnf: PX509V3_CTX): PASN1_TYPE; cdecl = nil; + ASN1_str2mask: function(const str: PByte; pmask: PIdC_ULONG): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + ASN1_item_print: function(out_: PBIO; ifld: PASN1_VALUE; indent: TIdC_INT; const it: PASN1_ITEM; const pctx: PASN1_PCTX): TIdC_INT; cdecl = nil; + ASN1_PCTX_new: function: PASN1_PCTX; cdecl = nil; + ASN1_PCTX_free: procedure(p: PASN1_PCTX); cdecl = nil; + ASN1_PCTX_get_flags: function(const p: PASN1_PCTX): TIdC_ULONG; cdecl = nil; + ASN1_PCTX_set_flags: procedure(p: PASN1_PCTX; flags: TIdC_ULONG); cdecl = nil; + ASN1_PCTX_get_nm_flags: function(const p: PASN1_PCTX): TIdC_ULONG; cdecl = nil; + ASN1_PCTX_set_nm_flags: procedure(p: PASN1_PCTX; flags: TIdC_ULONG); cdecl = nil; + ASN1_PCTX_get_cert_flags: function(const p: PASN1_PCTX): TIdC_ULONG; cdecl = nil; + ASN1_PCTX_set_cert_flags: procedure(p: PASN1_PCTX; flags: TIdC_ULONG); cdecl = nil; + ASN1_PCTX_get_oid_flags: function(const p: PASN1_PCTX): TIdC_ULONG; cdecl = nil; + ASN1_PCTX_set_oid_flags: procedure(p: PASN1_PCTX; flags: TIdC_ULONG); cdecl = nil; + ASN1_PCTX_get_str_flags: function(const p: PASN1_PCTX): TIdC_ULONG; cdecl = nil; + ASN1_PCTX_set_str_flags: procedure(p: PASN1_PCTX; flags: TIdC_ULONG); cdecl = nil; + + //ASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx)); + ASN1_SCTX_free: procedure(p: PASN1_SCTX); cdecl = nil; {introduced 1.1.0} + ASN1_SCTX_get_item: function(p: PASN1_SCTX): PASN1_ITEM; cdecl = nil; {introduced 1.1.0} + ASN1_SCTX_get_template: function(p: PASN1_SCTX): PASN1_TEMPLATE; cdecl = nil; {introduced 1.1.0} + ASN1_SCTX_get_flags: function(p: PASN1_SCTX): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + ASN1_SCTX_set_app_data: procedure(p: PASN1_SCTX; data: Pointer); cdecl = nil; {introduced 1.1.0} + ASN1_SCTX_get_app_data: function(p: PASN1_SCTX): Pointer; cdecl = nil; {introduced 1.1.0} + + BIO_f_asn1: function: PBIO_METHOD; cdecl = nil; + + BIO_new_NDEF: function(out_: PBIO; val: PASN1_VALUE; const it: PASN1_ITEM): PBIO; cdecl = nil; + + i2d_ASN1_bio_stream: function(out_: PBIO; val: PASN1_VALUE; in_: PBIO; flags: TIdC_INT; const it: PASN1_ITEM): TIdC_INT; cdecl = nil; + PEM_write_bio_ASN1_stream: function(out_: PBIO; val: PASN1_VALUE; in_: PBIO; flags: TIdC_INT; const hdr: PAnsiChar; const it: PASN1_ITEM): TIdC_INT; cdecl = nil; + //function SMIME_write_ASN1(bio: PBIO; val: PASN1_VALUE; data: PBIO; flags: TIdC_INT; + // ctype_nid: TIdC_INT; econt_nid: TIdC_INT; + // STACK_OF(X509_ALGOR) *mdalgs, const ASN1_ITEM *it): TIdC_INT; + SMIME_read_ASN1: function(bio: PBIO; bcont: PPBIO; const it: PASN1_ITEM): PASN1_VALUE; cdecl = nil; + SMIME_crlf_copy: function(in_: PBIO; out_: PBIO; flags: TIdC_INT): TIdC_INT; cdecl = nil; + SMIME_text: function(in_: PBIO; out_: PBIO): TIdC_INT; cdecl = nil; + + ASN1_ITEM_lookup: function(const name: PIdAnsiChar): PASN1_ITEM; cdecl = nil; {introduced 1.1.0} + ASN1_ITEM_get: function(i: TIdC_SIZET): PASN1_ITEM; cdecl = nil; {introduced 1.1.0} + +{$ELSE} + function ASN1_TYPE_get(const a: PASN1_TYPE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_TYPE_set(a: PASN1_TYPE; type_: TIdC_INT; value: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_TYPE_set1(a: PASN1_TYPE; type_: TIdC_INT; const value: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_TYPE_cmp(const a: PASN1_TYPE; const b: PASN1_TYPE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_TYPE_pack_sequence(const it: PASN1_ITEM; s: Pointer; t: PPASN1_TYPE): PASN1_TYPE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_TYPE_unpack_sequence(const it: PASN1_ITEM; const t: PASN1_TYPE): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function ASN1_OBJECT_new: PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_OBJECT_free(a: PASN1_OBJECT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ASN1_OBJECT(const a: PASN1_OBJECT; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ASN1_OBJECT(a: PPASN1_OBJECT; const pp: PPByte; length: TIdC_LONG): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //DECLARE_ASN1_ITEM(ASN1_OBJECT) + // + //DEFINE_STACK_OF(ASN1_OBJECT) + + function ASN1_STRING_new: PASN1_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_STRING_free(a: PASN1_STRING) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_STRING_clear_free(a: PASN1_STRING) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_copy(dst: PASN1_STRING; const str: PASN1_STRING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_dup(const a: PASN1_STRING): PASN1_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_type_new(type_: TIdC_INT): PASN1_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_cmp(const a: PASN1_STRING; const b: PASN1_STRING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Since this is used to store all sorts of things, via macros, for now, + * make its data void * + *) + function ASN1_STRING_set(str: PASN1_STRING; const data: Pointer; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_STRING_set0(str: PASN1_STRING; data: Pointer; len: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_length(const x: PASN1_STRING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_STRING_length_set(x: PASN1_STRING; n: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_type(const x: PASN1_STRING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_get0_data(const x: PASN1_STRING): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + //DECLARE_ASN1_FUNCTIONS(ASN1_BIT_STRING) + function ASN1_BIT_STRING_set(a: PASN1_BIT_STRING; d: PByte; length: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_BIT_STRING_set_bit(a: PASN1_BIT_STRING; n: TIdC_INT; value: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_BIT_STRING_get_bit(const a: PASN1_BIT_STRING; n: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_BIT_STRING_check(const a: PASN1_BIT_STRING; const flags: PByte; flags_len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_BIT_STRING_name_print(out_: PBIO; bs: PASN1_BIT_STRING; tbl: PBIT_STRING_BITNAME; indent: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_BIT_STRING_num_asc(const name: PIdAnsiChar; tbl: PBIT_STRING_BITNAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_BIT_STRING_set_asc(bs: PASN1_BIT_STRING; const name: PIdAnsiChar; value: TIdC_INT; tbl: PBIT_STRING_BITNAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_INTEGER_new: PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_INTEGER_free(a: PASN1_INTEGER) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ASN1_INTEGER(a: PPASN1_INTEGER; const in_: PPByte; len: TIdC_Long): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ASN1_INTEGER(a: PASN1_INTEGER; out_: PPByte): TIdC_Int cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_ASN1_UINTEGER(a: PPASN1_INTEGER; const pp: PPByte; length: TIdC_LONG): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_INTEGER_dup(const x: PASN1_INTEGER): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_INTEGER_cmp(const x: PASN1_INTEGER; const y: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // DECLARE_ASN1_FUNCTIONS(ASN1_ENUMERATED) + + function ASN1_UTCTIME_check(const a: PASN1_UTCTIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_UTCTIME_set(s: PASN1_UTCTIME; t: TIdC_TIMET): PASN1_UTCTIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_UTCTIME_adj(s: PASN1_UTCTIME; t: TIdC_TIMET; offset_day: TIdC_INT; offset_sec: TIdC_LONG): PASN1_UTCTIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_UTCTIME_set_string(s: PASN1_UTCTIME; const str: PAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_UTCTIME_cmp_time_t(const s: PASN1_UTCTIME; t: TIdC_TIMET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_GENERALIZEDTIME_check(const a: PASN1_GENERALIZEDTIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_GENERALIZEDTIME_set(s: PASN1_GENERALIZEDTIME; t: TIdC_TIMET): PASN1_GENERALIZEDTIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_GENERALIZEDTIME_adj(s: PASN1_GENERALIZEDTIME; t: TIdC_TIMET; offset_day: TIdC_INT; offset_sec: TIdC_LONG): PASN1_GENERALIZEDTIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_GENERALIZEDTIME_set_string(s: pASN1_GENERALIZEDTIME; const str: PAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_TIME_diff(pday: PIdC_INT; psec: PIdC_INT; const from: PASN1_TIME; const to_: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // DECLARE_ASN1_FUNCTIONS(ASN1_OCTET_STRING) + function ASN1_OCTET_STRING_dup(const a: PASN1_OCTET_STRING): PASN1_OCTET_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_OCTET_STRING_cmp(const a: PASN1_OCTET_STRING; const b: PASN1_OCTET_STRING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_OCTET_STRING_set(str: PASN1_OCTET_STRING; const data: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //DECLARE_ASN1_FUNCTIONS(ASN1_VISIBLESTRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_UNIVERSALSTRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_UTF8STRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_NULL) + //DECLARE_ASN1_FUNCTIONS(ASN1_BMPSTRING) + + function UTF8_getc(const str: PByte; len: TIdC_INT; val: PIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UTF8_putc(str: PIdAnsiChar; len: TIdC_INT; value: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE) + // + //DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DIRECTORYSTRING) + //DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DISPLAYTEXT) + //DECLARE_ASN1_FUNCTIONS(ASN1_PRINTABLESTRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_T61STRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_IA5STRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_GENERALSTRING) + + function ASN1_UTCTIME_new: PASN1_UTCTIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_UTCTIME_free(a: PASN1_UTCTIME) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ASN1_UTCTIME(a: PPASN1_UTCTIME; const in_: PPByte; len: TIdC_LONG): PASN1_UTCTIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ASN1_UTCTIME(a: PASN1_UTCTIME; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_GENERALIZEDTIME_new: PASN1_GENERALIZEDTIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_GENERALIZEDTIME_free(a: PASN1_GENERALIZEDTIME) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ASN1_GENERALIZEDTIME(a: PPASN1_GENERALIZEDTIME; const in_: PPByte; len: TIdC_LONG): PASN1_GENERALIZEDTIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ASN1_GENERALIZEDTIME(a: PASN1_GENERALIZEDTIME; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_TIME_new: PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_TIME_free(a: PASN1_TIME) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ASN1_TIME(a: PPASN1_TIME; const in_: PPByte; len: TIdC_LONG): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ASN1_TIME(a: PASN1_TIME; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // DECLARE_ASN1_ITEM(ASN1_OCTET_STRING_NDEF) + + function ASN1_TIME_set(s: PASN1_TIME; t: TIdC_TIMET): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_TIME_adj(s: PASN1_TIME; t: TIdC_TIMET; offset_day: TIdC_INT; offset_sec: TIdC_LONG): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_TIME_check(const t: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_TIME_to_generalizedtime(const t: PASN1_TIME; out_: PPASN1_GENERALIZEDTIME): PASN1_GENERALIZEDTIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_TIME_set_string(s: PASN1_TIME; const str: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_TIME_set_string_X509(s: PASN1_TIME; const str: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_TIME_to_tm(const s: PASN1_TIME; tm: PIdC_TM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_TIME_normalize(s: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_TIME_cmp_time_t(const s: PASN1_TIME; t: TIdC_TIMET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_TIME_compare(const a: PASN1_TIME; const b: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function i2a_ASN1_INTEGER(bp: PBIO; const a: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function a2i_ASN1_INTEGER(bp: PBIO; bs: PASN1_INTEGER; buf: PIdAnsiChar; size: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2a_ASN1_ENUMERATED(bp: PBIO; const a: PASN1_ENUMERATED): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function a2i_ASN1_ENUMERATED(bp: PBIO; bs: PASN1_ENUMERATED; buf: PIdAnsiChar; size: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2a_ASN1_OBJECT(bp: PBIO; const a: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function a2i_ASN1_STRING(bp: PBIO; bs: PASN1_STRING; buf: PAnsiChar; size: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2a_ASN1_STRING(bp: PBIO; const a: PASN1_STRING; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2t_ASN1_OBJECT(buf: PAnsiChar; buf_len: TIdC_INT; const a: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function a2d_ASN1_OBJECT(out_: PByte; olen: TIdC_INT; const buf: PIdAnsiChar; num: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_OBJECT_create(nid: TIdC_INT; data: PByte; len: TIdC_INT; const sn: PAnsiChar; const ln: PAnsiChar): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_INTEGER_get_int64(pr: PIdC_Int64; const a: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_INTEGER_set_int64(a: PASN1_INTEGER; r: TIdC_Int64): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_INTEGER_get_uint64(pr: PIdC_UInt64; const a: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_INTEGER_set_uint64(a: PASN1_INTEGER; r: TIdC_UInt64): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function ASN1_INTEGER_set(a: PASN1_INTEGER; v: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_INTEGER_get(const a: PASN1_INTEGER): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_to_ASN1_INTEGER(const bn: PBIGNUM; ai: PASN1_INTEGER): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_INTEGER_to_BN(const ai: PASN1_INTEGER; bn: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_ENUMERATED_get_int64(pr: PIdC_Int64; const a: PASN1_ENUMERATED): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_ENUMERATED_set_int64(a: PASN1_ENUMERATED; r: TIdC_Int64): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + + function ASN1_ENUMERATED_set(a: PASN1_ENUMERATED; v: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_ENUMERATED_get(const a: PASN1_ENUMERATED): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_to_ASN1_ENUMERATED(const bn: PBIGNUM; ai: PASN1_ENUMERATED): PASN1_ENUMERATED cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_ENUMERATED_to_BN(const ai: PASN1_ENUMERATED; bn: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* General *) + (* given a string, return the correct type, max is the maximum length *) + function ASN1_PRINTABLE_type(const s: PByte; max: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_tag2bit(tag: TIdC_INT): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* SPECIALS *) + function ASN1_get_object(const pp: PPByte; plength: PIdC_LONG; ptag: PIdC_INT; pclass: PIdC_INT; omax: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_check_infinite_end(p: PPByte; len: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_const_check_infinite_end(const p: PPByte; len: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_put_object(pp: PPByte; constructed: TIdC_INT; length: TIdC_INT; tag: TIdC_INT; xclass: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_put_eoc(pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_object_size(constructed: TIdC_INT; length: TIdC_INT; tag: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Used to implement other functions *) + //void *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, void *x); + // + //# define ASN1_dup_of(type,i2d,d2i,x) \ + // ((type*)ASN1_dup(CHECKED_I2D_OF(type, i2d), \ + // CHECKED_D2I_OF(type, d2i), \ + // CHECKED_PTR_OF(type, x))) + // + //# define ASN1_dup_of_const(type,i2d,d2i,x) \ + // ((type*)ASN1_dup(CHECKED_I2D_OF(const type, i2d), \ + // CHECKED_D2I_OF(type, d2i), \ + // CHECKED_PTR_OF(const type, x))) + // + function ASN1_item_dup(const it: PASN1_ITEM; x: Pointer): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* ASN1 alloc/free macros for when a type is only used internally *) + + //# define M_ASN1_new_of(type) (type *)ASN1_item_new(ASN1_ITEM_rptr(type)) + //# define M_ASN1_free_of(x, type) \ + // ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type)) + // + //# ifndef OPENSSL_NO_STDIO + //void *ASN1_d2i_fp(void *(*xnew) (void), d2i_of_void *d2i, FILE *in, void **x); + + //# define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ + // ((type*)ASN1_d2i_fp(CHECKED_NEW_OF(type, xnew), \ + // CHECKED_D2I_OF(type, d2i), \ + // in, \ + // CHECKED_PPTR_OF(type, x))) + // + //function ASN1_item_d2i_fp(const it: PASN1_ITEM; in_: PFILE; x: Pointer): Pointer; + //function ASN1_i2d_fp(i2d: Pi2d_of_void; out_: PFILE; x: Pointer): TIdC_INT; + // + //# define ASN1_i2d_fp_of(type,i2d,out,x) \ + // (ASN1_i2d_fp(CHECKED_I2D_OF(type, i2d), \ + // out, \ + // CHECKED_PTR_OF(type, x))) + // + //# define ASN1_i2d_fp_of_const(type,i2d,out,x) \ + // (ASN1_i2d_fp(CHECKED_I2D_OF(const type, i2d), \ + // out, \ + // CHECKED_PTR_OF(const type, x))) + // + //function ASN1_item_i2d_fp(const it: PASN1_ITEM; out_: PFILE; x: Pointer): TIdC_INT; + //function ASN1_STRING_print_ex_fp(&fp: PFILE; const str: PASN1_STRING; flags: TIdC_ULONG): TIdC_INT; + //# endif + + function ASN1_STRING_to_UTF8(out_: PPByte; const in_: PASN1_STRING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //void *ASN1_d2i_bio(void *(*xnew) (void), d2i_of_void *d2i, BIO *in, void **x); + + //# define ASN1_d2i_bio_of(type,xnew,d2i,in,x) \ + // ((type*)ASN1_d2i_bio( CHECKED_NEW_OF(type, xnew), \ + // CHECKED_D2I_OF(type, d2i), \ + // in, \ + // CHECKED_PPTR_OF(type, x))) + + function ASN1_item_d2i_bio(const it: PASN1_ITEM; in_: PBIO; x: Pointer): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_i2d_bio(i2d: Pi2d_of_void; out_: PBIO; x: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //# define ASN1_i2d_bio_of(type,i2d,out,x) \ + // (ASN1_i2d_bio(CHECKED_I2D_OF(type, i2d), \ + // out, \ + // CHECKED_PTR_OF(type, x))) + // + //# define ASN1_i2d_bio_of_const(type,i2d,out,x) \ + // (ASN1_i2d_bio(CHECKED_I2D_OF(const type, i2d), \ + // out, \ + // CHECKED_PTR_OF(const type, x))) + + function ASN1_item_i2d_bio(const it: PASN1_ITEM; out_: PBIO; x: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_UTCTIME_print(fp: PBIO; const a: PASN1_UTCTIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_GENERALIZEDTIME_print(fp: PBIO; const a: PASN1_GENERALIZEDTIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_TIME_print(fp: PBIO; const a: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_print(bp: PBIO; const v: PASN1_STRING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_print_ex(out_: PBIO; const str: PASN1_STRING; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_buf_print(bp: PBIO; const buf: PByte; buflen: TIdC_SIZET; off: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_bn_print(bp: PBIO; const number: PIdAnsiChar; const num: PBIGNUM; buf: PByte; off: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_parse(bp: PBIO; const pp: PByte; len: TIdC_LONG; indent: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_parse_dump(bp: PPBIO; const pp: PByte; len: TIdC_LONG; indent: TIdC_INT; dump: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_tag2str(tag: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Used to load and write Netscape format cert *) + + function ASN1_UNIVERSALSTRING_to_string(s: PASN1_UNIVERSALSTRING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_TYPE_set_octetstring(a: PASN1_TYPE; data: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_TYPE_get_octetstring(const a: PASN1_TYPE; data: PByte; max_len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_TYPE_set_int_octetstring(a: PASN1_TYPE; num: TIdC_LONG; data: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_TYPE_get_int_octetstring(const a: PASN1_TYPE; num: PIdC_LONG; data: PByte; max_len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_item_unpack(const oct: PASN1_STRING; const it: PASN1_ITEM): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_item_pack(obj: Pointer; const it: PASN1_ITEM; oct: PPASN1_OCTET_STRING): PASN1_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure ASN1_STRING_set_default_mask(mask: TIdC_ULONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_set_default_mask_asc(const p: PAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_get_default_mask: TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_mbstring_copy(out_: PPASN1_STRING; const in_: PByte; len: TIdC_INT; inform: TIdC_INT; mask: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_mbstring_ncopy(out_: PPASN1_STRING; const in_: PByte; len: TIdC_INT; inform: TIdC_INT; mask: TIdC_ULONG; minsize: TIdC_LONG; maxsize: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_STRING_set_by_NID(out_: PPASN1_STRING; const in_: PByte; inlen: TIdC_INT; inform: TIdC_INT; nid: TIdC_INT): PASN1_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_TABLE_get(nid: TIdC_INT): PASN1_STRING_TABLE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_STRING_TABLE_add(v1: TIdC_INT; v2: TIdC_LONG; v3: TIdC_LONG; v4: TIdC_ULONG; v5: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_STRING_TABLE_cleanup cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* ASN1 template functions *) + + (* Old API compatible functions *) + function ASN1_item_new(const it: PASN1_ITEM): PASN1_VALUE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_item_free(val: PASN1_VALUE; const it: PASN1_ITEM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_item_d2i(val: PPASN1_VALUE; const in_: PPByte; len: TIdC_LONG; const it: PASN1_ITEM): PASN1_VALUE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_item_i2d(val: PASN1_VALUE; out_: PPByte; const it: PASN1_ITEM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_item_ndef_i2d(val: PASN1_VALUE; out_: PPByte; const it: PASN1_ITEM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure ASN1_add_oid_module cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_add_stable_module cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function ASN1_generate_nconf(const str: PAnsiChar; nconf: PCONF): PASN1_TYPE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_generate_v3(const str: PAnsiChar; cnf: PX509V3_CTX): PASN1_TYPE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_str2mask(const str: PByte; pmask: PIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function ASN1_item_print(out_: PBIO; ifld: PASN1_VALUE; indent: TIdC_INT; const it: PASN1_ITEM; const pctx: PASN1_PCTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_PCTX_new: PASN1_PCTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_PCTX_free(p: PASN1_PCTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_PCTX_get_flags(const p: PASN1_PCTX): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_PCTX_set_flags(p: PASN1_PCTX; flags: TIdC_ULONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_PCTX_get_nm_flags(const p: PASN1_PCTX): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_PCTX_set_nm_flags(p: PASN1_PCTX; flags: TIdC_ULONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_PCTX_get_cert_flags(const p: PASN1_PCTX): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_PCTX_set_cert_flags(p: PASN1_PCTX; flags: TIdC_ULONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_PCTX_get_oid_flags(const p: PASN1_PCTX): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_PCTX_set_oid_flags(p: PASN1_PCTX; flags: TIdC_ULONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_PCTX_get_str_flags(const p: PASN1_PCTX): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_PCTX_set_str_flags(p: PASN1_PCTX; flags: TIdC_ULONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //ASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx)); + procedure ASN1_SCTX_free(p: PASN1_SCTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_SCTX_get_item(p: PASN1_SCTX): PASN1_ITEM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_SCTX_get_template(p: PASN1_SCTX): PASN1_TEMPLATE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_SCTX_get_flags(p: PASN1_SCTX): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure ASN1_SCTX_set_app_data(p: PASN1_SCTX; data: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_SCTX_get_app_data(p: PASN1_SCTX): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function BIO_f_asn1: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_new_NDEF(out_: PBIO; val: PASN1_VALUE; const it: PASN1_ITEM): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function i2d_ASN1_bio_stream(out_: PBIO; val: PASN1_VALUE; in_: PBIO; flags: TIdC_INT; const it: PASN1_ITEM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_ASN1_stream(out_: PBIO; val: PASN1_VALUE; in_: PBIO; flags: TIdC_INT; const hdr: PAnsiChar; const it: PASN1_ITEM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function SMIME_write_ASN1(bio: PBIO; val: PASN1_VALUE; data: PBIO; flags: TIdC_INT; + // ctype_nid: TIdC_INT; econt_nid: TIdC_INT; + // STACK_OF(X509_ALGOR) *mdalgs, const ASN1_ITEM *it): TIdC_INT; + function SMIME_read_ASN1(bio: PBIO; bcont: PPBIO; const it: PASN1_ITEM): PASN1_VALUE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SMIME_crlf_copy(in_: PBIO; out_: PBIO; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SMIME_text(in_: PBIO; out_: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_ITEM_lookup(const name: PIdAnsiChar): PASN1_ITEM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASN1_ITEM_get(i: TIdC_SIZET): PASN1_ITEM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + ASN1_TYPE_pack_sequence_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_TYPE_unpack_sequence_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_STRING_get0_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_TIME_set_string_X509_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_TIME_to_tm_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_TIME_normalize_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_TIME_cmp_time_t_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_TIME_compare_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_INTEGER_get_int64_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_INTEGER_set_int64_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_INTEGER_get_uint64_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_INTEGER_set_uint64_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_ENUMERATED_get_int64_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_ENUMERATED_set_int64_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_buf_print_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_add_stable_module_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_str2mask_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_SCTX_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_SCTX_get_item_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_SCTX_get_template_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_SCTX_get_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_SCTX_set_app_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_SCTX_get_app_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_ITEM_lookup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASN1_ITEM_get_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +function ERR_ASN1_TYPE_pack_sequence(const it: PASN1_ITEM; s: Pointer; t: PPASN1_TYPE): PASN1_TYPE; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_TYPE_pack_sequence'); +end; + + +function ERR_ASN1_TYPE_unpack_sequence(const it: PASN1_ITEM; const t: PASN1_TYPE): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_TYPE_unpack_sequence'); +end; + + +function ERR_ASN1_STRING_get0_data(const x: PASN1_STRING): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_STRING_get0_data'); +end; + + +function ERR_ASN1_TIME_set_string_X509(s: PASN1_TIME; const str: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_TIME_set_string_X509'); +end; + + +function ERR_ASN1_TIME_to_tm(const s: PASN1_TIME; tm: PIdC_TM): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_TIME_to_tm'); +end; + + +function ERR_ASN1_TIME_normalize(s: PASN1_TIME): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_TIME_normalize'); +end; + + +function ERR_ASN1_TIME_cmp_time_t(const s: PASN1_TIME; t: TIdC_TIMET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_TIME_cmp_time_t'); +end; + + +function ERR_ASN1_TIME_compare(const a: PASN1_TIME; const b: PASN1_TIME): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_TIME_compare'); +end; + + +function ERR_ASN1_INTEGER_get_int64(pr: PIdC_Int64; const a: PASN1_INTEGER): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_INTEGER_get_int64'); +end; + + +function ERR_ASN1_INTEGER_set_int64(a: PASN1_INTEGER; r: TIdC_Int64): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_INTEGER_set_int64'); +end; + + +function ERR_ASN1_INTEGER_get_uint64(pr: PIdC_UInt64; const a: PASN1_INTEGER): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_INTEGER_get_uint64'); +end; + + +function ERR_ASN1_INTEGER_set_uint64(a: PASN1_INTEGER; r: TIdC_UInt64): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_INTEGER_set_uint64'); +end; + + +function ERR_ASN1_ENUMERATED_get_int64(pr: PIdC_Int64; const a: PASN1_ENUMERATED): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_ENUMERATED_get_int64'); +end; + + +function ERR_ASN1_ENUMERATED_set_int64(a: PASN1_ENUMERATED; r: TIdC_Int64): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_ENUMERATED_set_int64'); +end; + + +function ERR_ASN1_buf_print(bp: PBIO; const buf: PByte; buflen: TIdC_SIZET; off: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_buf_print'); +end; + + +procedure ERR_ASN1_add_stable_module; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_add_stable_module'); +end; + + +function ERR_ASN1_str2mask(const str: PByte; pmask: PIdC_ULONG): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_str2mask'); +end; + + +procedure ERR_ASN1_SCTX_free(p: PASN1_SCTX); +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_SCTX_free'); +end; + + +function ERR_ASN1_SCTX_get_item(p: PASN1_SCTX): PASN1_ITEM; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_SCTX_get_item'); +end; + + +function ERR_ASN1_SCTX_get_template(p: PASN1_SCTX): PASN1_TEMPLATE; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_SCTX_get_template'); +end; + + +function ERR_ASN1_SCTX_get_flags(p: PASN1_SCTX): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_SCTX_get_flags'); +end; + + +procedure ERR_ASN1_SCTX_set_app_data(p: PASN1_SCTX; data: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_SCTX_set_app_data'); +end; + + +function ERR_ASN1_SCTX_get_app_data(p: PASN1_SCTX): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_SCTX_get_app_data'); +end; + + +function ERR_ASN1_ITEM_lookup(const name: PIdAnsiChar): PASN1_ITEM; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_ITEM_lookup'); +end; + + +function ERR_ASN1_ITEM_get(i: TIdC_SIZET): PASN1_ITEM; +begin + EIdAPIFunctionNotPresent.RaiseException('ASN1_ITEM_get'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ASN1_TYPE_get := LoadFunction('ASN1_TYPE_get',AFailed); + ASN1_TYPE_set := LoadFunction('ASN1_TYPE_set',AFailed); + ASN1_TYPE_set1 := LoadFunction('ASN1_TYPE_set1',AFailed); + ASN1_TYPE_cmp := LoadFunction('ASN1_TYPE_cmp',AFailed); + ASN1_OBJECT_new := LoadFunction('ASN1_OBJECT_new',AFailed); + ASN1_OBJECT_free := LoadFunction('ASN1_OBJECT_free',AFailed); + i2d_ASN1_OBJECT := LoadFunction('i2d_ASN1_OBJECT',AFailed); + d2i_ASN1_OBJECT := LoadFunction('d2i_ASN1_OBJECT',AFailed); + ASN1_STRING_new := LoadFunction('ASN1_STRING_new',AFailed); + ASN1_STRING_free := LoadFunction('ASN1_STRING_free',AFailed); + ASN1_STRING_clear_free := LoadFunction('ASN1_STRING_clear_free',AFailed); + ASN1_STRING_copy := LoadFunction('ASN1_STRING_copy',AFailed); + ASN1_STRING_dup := LoadFunction('ASN1_STRING_dup',AFailed); + ASN1_STRING_type_new := LoadFunction('ASN1_STRING_type_new',AFailed); + ASN1_STRING_cmp := LoadFunction('ASN1_STRING_cmp',AFailed); + ASN1_STRING_set := LoadFunction('ASN1_STRING_set',AFailed); + ASN1_STRING_set0 := LoadFunction('ASN1_STRING_set0',AFailed); + ASN1_STRING_length := LoadFunction('ASN1_STRING_length',AFailed); + ASN1_STRING_length_set := LoadFunction('ASN1_STRING_length_set',AFailed); + ASN1_STRING_type := LoadFunction('ASN1_STRING_type',AFailed); + ASN1_BIT_STRING_set := LoadFunction('ASN1_BIT_STRING_set',AFailed); + ASN1_BIT_STRING_set_bit := LoadFunction('ASN1_BIT_STRING_set_bit',AFailed); + ASN1_BIT_STRING_get_bit := LoadFunction('ASN1_BIT_STRING_get_bit',AFailed); + ASN1_BIT_STRING_check := LoadFunction('ASN1_BIT_STRING_check',AFailed); + ASN1_BIT_STRING_name_print := LoadFunction('ASN1_BIT_STRING_name_print',AFailed); + ASN1_BIT_STRING_num_asc := LoadFunction('ASN1_BIT_STRING_num_asc',AFailed); + ASN1_BIT_STRING_set_asc := LoadFunction('ASN1_BIT_STRING_set_asc',AFailed); + ASN1_INTEGER_new := LoadFunction('ASN1_INTEGER_new',AFailed); + ASN1_INTEGER_free := LoadFunction('ASN1_INTEGER_free',AFailed); + d2i_ASN1_INTEGER := LoadFunction('d2i_ASN1_INTEGER',AFailed); + i2d_ASN1_INTEGER := LoadFunction('i2d_ASN1_INTEGER',AFailed); + d2i_ASN1_UINTEGER := LoadFunction('d2i_ASN1_UINTEGER',AFailed); + ASN1_INTEGER_dup := LoadFunction('ASN1_INTEGER_dup',AFailed); + ASN1_INTEGER_cmp := LoadFunction('ASN1_INTEGER_cmp',AFailed); + ASN1_UTCTIME_check := LoadFunction('ASN1_UTCTIME_check',AFailed); + ASN1_UTCTIME_set := LoadFunction('ASN1_UTCTIME_set',AFailed); + ASN1_UTCTIME_adj := LoadFunction('ASN1_UTCTIME_adj',AFailed); + ASN1_UTCTIME_set_string := LoadFunction('ASN1_UTCTIME_set_string',AFailed); + ASN1_UTCTIME_cmp_time_t := LoadFunction('ASN1_UTCTIME_cmp_time_t',AFailed); + ASN1_GENERALIZEDTIME_check := LoadFunction('ASN1_GENERALIZEDTIME_check',AFailed); + ASN1_GENERALIZEDTIME_set := LoadFunction('ASN1_GENERALIZEDTIME_set',AFailed); + ASN1_GENERALIZEDTIME_adj := LoadFunction('ASN1_GENERALIZEDTIME_adj',AFailed); + ASN1_GENERALIZEDTIME_set_string := LoadFunction('ASN1_GENERALIZEDTIME_set_string',AFailed); + ASN1_TIME_diff := LoadFunction('ASN1_TIME_diff',AFailed); + ASN1_OCTET_STRING_dup := LoadFunction('ASN1_OCTET_STRING_dup',AFailed); + ASN1_OCTET_STRING_cmp := LoadFunction('ASN1_OCTET_STRING_cmp',AFailed); + ASN1_OCTET_STRING_set := LoadFunction('ASN1_OCTET_STRING_set',AFailed); + UTF8_getc := LoadFunction('UTF8_getc',AFailed); + UTF8_putc := LoadFunction('UTF8_putc',AFailed); + ASN1_UTCTIME_new := LoadFunction('ASN1_UTCTIME_new',AFailed); + ASN1_UTCTIME_free := LoadFunction('ASN1_UTCTIME_free',AFailed); + d2i_ASN1_UTCTIME := LoadFunction('d2i_ASN1_UTCTIME',AFailed); + i2d_ASN1_UTCTIME := LoadFunction('i2d_ASN1_UTCTIME',AFailed); + ASN1_GENERALIZEDTIME_new := LoadFunction('ASN1_GENERALIZEDTIME_new',AFailed); + ASN1_GENERALIZEDTIME_free := LoadFunction('ASN1_GENERALIZEDTIME_free',AFailed); + d2i_ASN1_GENERALIZEDTIME := LoadFunction('d2i_ASN1_GENERALIZEDTIME',AFailed); + i2d_ASN1_GENERALIZEDTIME := LoadFunction('i2d_ASN1_GENERALIZEDTIME',AFailed); + ASN1_TIME_new := LoadFunction('ASN1_TIME_new',AFailed); + ASN1_TIME_free := LoadFunction('ASN1_TIME_free',AFailed); + d2i_ASN1_TIME := LoadFunction('d2i_ASN1_TIME',AFailed); + i2d_ASN1_TIME := LoadFunction('i2d_ASN1_TIME',AFailed); + ASN1_TIME_set := LoadFunction('ASN1_TIME_set',AFailed); + ASN1_TIME_adj := LoadFunction('ASN1_TIME_adj',AFailed); + ASN1_TIME_check := LoadFunction('ASN1_TIME_check',AFailed); + ASN1_TIME_to_generalizedtime := LoadFunction('ASN1_TIME_to_generalizedtime',AFailed); + ASN1_TIME_set_string := LoadFunction('ASN1_TIME_set_string',AFailed); + i2a_ASN1_INTEGER := LoadFunction('i2a_ASN1_INTEGER',AFailed); + a2i_ASN1_INTEGER := LoadFunction('a2i_ASN1_INTEGER',AFailed); + i2a_ASN1_ENUMERATED := LoadFunction('i2a_ASN1_ENUMERATED',AFailed); + a2i_ASN1_ENUMERATED := LoadFunction('a2i_ASN1_ENUMERATED',AFailed); + i2a_ASN1_OBJECT := LoadFunction('i2a_ASN1_OBJECT',AFailed); + a2i_ASN1_STRING := LoadFunction('a2i_ASN1_STRING',AFailed); + i2a_ASN1_STRING := LoadFunction('i2a_ASN1_STRING',AFailed); + i2t_ASN1_OBJECT := LoadFunction('i2t_ASN1_OBJECT',AFailed); + a2d_ASN1_OBJECT := LoadFunction('a2d_ASN1_OBJECT',AFailed); + ASN1_OBJECT_create := LoadFunction('ASN1_OBJECT_create',AFailed); + ASN1_INTEGER_set := LoadFunction('ASN1_INTEGER_set',AFailed); + ASN1_INTEGER_get := LoadFunction('ASN1_INTEGER_get',AFailed); + BN_to_ASN1_INTEGER := LoadFunction('BN_to_ASN1_INTEGER',AFailed); + ASN1_INTEGER_to_BN := LoadFunction('ASN1_INTEGER_to_BN',AFailed); + ASN1_ENUMERATED_set := LoadFunction('ASN1_ENUMERATED_set',AFailed); + ASN1_ENUMERATED_get := LoadFunction('ASN1_ENUMERATED_get',AFailed); + BN_to_ASN1_ENUMERATED := LoadFunction('BN_to_ASN1_ENUMERATED',AFailed); + ASN1_ENUMERATED_to_BN := LoadFunction('ASN1_ENUMERATED_to_BN',AFailed); + ASN1_PRINTABLE_type := LoadFunction('ASN1_PRINTABLE_type',AFailed); + ASN1_tag2bit := LoadFunction('ASN1_tag2bit',AFailed); + ASN1_get_object := LoadFunction('ASN1_get_object',AFailed); + ASN1_check_infinite_end := LoadFunction('ASN1_check_infinite_end',AFailed); + ASN1_const_check_infinite_end := LoadFunction('ASN1_const_check_infinite_end',AFailed); + ASN1_put_object := LoadFunction('ASN1_put_object',AFailed); + ASN1_put_eoc := LoadFunction('ASN1_put_eoc',AFailed); + ASN1_object_size := LoadFunction('ASN1_object_size',AFailed); + ASN1_item_dup := LoadFunction('ASN1_item_dup',AFailed); + ASN1_STRING_to_UTF8 := LoadFunction('ASN1_STRING_to_UTF8',AFailed); + ASN1_item_d2i_bio := LoadFunction('ASN1_item_d2i_bio',AFailed); + ASN1_i2d_bio := LoadFunction('ASN1_i2d_bio',AFailed); + ASN1_item_i2d_bio := LoadFunction('ASN1_item_i2d_bio',AFailed); + ASN1_UTCTIME_print := LoadFunction('ASN1_UTCTIME_print',AFailed); + ASN1_GENERALIZEDTIME_print := LoadFunction('ASN1_GENERALIZEDTIME_print',AFailed); + ASN1_TIME_print := LoadFunction('ASN1_TIME_print',AFailed); + ASN1_STRING_print := LoadFunction('ASN1_STRING_print',AFailed); + ASN1_STRING_print_ex := LoadFunction('ASN1_STRING_print_ex',AFailed); + ASN1_bn_print := LoadFunction('ASN1_bn_print',AFailed); + ASN1_parse := LoadFunction('ASN1_parse',AFailed); + ASN1_parse_dump := LoadFunction('ASN1_parse_dump',AFailed); + ASN1_tag2str := LoadFunction('ASN1_tag2str',AFailed); + ASN1_UNIVERSALSTRING_to_string := LoadFunction('ASN1_UNIVERSALSTRING_to_string',AFailed); + ASN1_TYPE_set_octetstring := LoadFunction('ASN1_TYPE_set_octetstring',AFailed); + ASN1_TYPE_get_octetstring := LoadFunction('ASN1_TYPE_get_octetstring',AFailed); + ASN1_TYPE_set_int_octetstring := LoadFunction('ASN1_TYPE_set_int_octetstring',AFailed); + ASN1_TYPE_get_int_octetstring := LoadFunction('ASN1_TYPE_get_int_octetstring',AFailed); + ASN1_item_unpack := LoadFunction('ASN1_item_unpack',AFailed); + ASN1_item_pack := LoadFunction('ASN1_item_pack',AFailed); + ASN1_STRING_set_default_mask := LoadFunction('ASN1_STRING_set_default_mask',AFailed); + ASN1_STRING_set_default_mask_asc := LoadFunction('ASN1_STRING_set_default_mask_asc',AFailed); + ASN1_STRING_get_default_mask := LoadFunction('ASN1_STRING_get_default_mask',AFailed); + ASN1_mbstring_copy := LoadFunction('ASN1_mbstring_copy',AFailed); + ASN1_mbstring_ncopy := LoadFunction('ASN1_mbstring_ncopy',AFailed); + ASN1_STRING_set_by_NID := LoadFunction('ASN1_STRING_set_by_NID',AFailed); + ASN1_STRING_TABLE_get := LoadFunction('ASN1_STRING_TABLE_get',AFailed); + ASN1_STRING_TABLE_add := LoadFunction('ASN1_STRING_TABLE_add',AFailed); + ASN1_STRING_TABLE_cleanup := LoadFunction('ASN1_STRING_TABLE_cleanup',AFailed); + ASN1_item_new := LoadFunction('ASN1_item_new',AFailed); + ASN1_item_free := LoadFunction('ASN1_item_free',AFailed); + ASN1_item_d2i := LoadFunction('ASN1_item_d2i',AFailed); + ASN1_item_i2d := LoadFunction('ASN1_item_i2d',AFailed); + ASN1_item_ndef_i2d := LoadFunction('ASN1_item_ndef_i2d',AFailed); + ASN1_add_oid_module := LoadFunction('ASN1_add_oid_module',AFailed); + ASN1_generate_nconf := LoadFunction('ASN1_generate_nconf',AFailed); + ASN1_generate_v3 := LoadFunction('ASN1_generate_v3',AFailed); + ASN1_item_print := LoadFunction('ASN1_item_print',AFailed); + ASN1_PCTX_new := LoadFunction('ASN1_PCTX_new',AFailed); + ASN1_PCTX_free := LoadFunction('ASN1_PCTX_free',AFailed); + ASN1_PCTX_get_flags := LoadFunction('ASN1_PCTX_get_flags',AFailed); + ASN1_PCTX_set_flags := LoadFunction('ASN1_PCTX_set_flags',AFailed); + ASN1_PCTX_get_nm_flags := LoadFunction('ASN1_PCTX_get_nm_flags',AFailed); + ASN1_PCTX_set_nm_flags := LoadFunction('ASN1_PCTX_set_nm_flags',AFailed); + ASN1_PCTX_get_cert_flags := LoadFunction('ASN1_PCTX_get_cert_flags',AFailed); + ASN1_PCTX_set_cert_flags := LoadFunction('ASN1_PCTX_set_cert_flags',AFailed); + ASN1_PCTX_get_oid_flags := LoadFunction('ASN1_PCTX_get_oid_flags',AFailed); + ASN1_PCTX_set_oid_flags := LoadFunction('ASN1_PCTX_set_oid_flags',AFailed); + ASN1_PCTX_get_str_flags := LoadFunction('ASN1_PCTX_get_str_flags',AFailed); + ASN1_PCTX_set_str_flags := LoadFunction('ASN1_PCTX_set_str_flags',AFailed); + BIO_f_asn1 := LoadFunction('BIO_f_asn1',AFailed); + BIO_new_NDEF := LoadFunction('BIO_new_NDEF',AFailed); + i2d_ASN1_bio_stream := LoadFunction('i2d_ASN1_bio_stream',AFailed); + PEM_write_bio_ASN1_stream := LoadFunction('PEM_write_bio_ASN1_stream',AFailed); + SMIME_read_ASN1 := LoadFunction('SMIME_read_ASN1',AFailed); + SMIME_crlf_copy := LoadFunction('SMIME_crlf_copy',AFailed); + SMIME_text := LoadFunction('SMIME_text',AFailed); + ASN1_TYPE_pack_sequence := LoadFunction('ASN1_TYPE_pack_sequence',nil); {introduced 1.1.0} + ASN1_TYPE_unpack_sequence := LoadFunction('ASN1_TYPE_unpack_sequence',nil); {introduced 1.1.0} + ASN1_STRING_get0_data := LoadFunction('ASN1_STRING_get0_data',nil); {introduced 1.1.0} + ASN1_TIME_set_string_X509 := LoadFunction('ASN1_TIME_set_string_X509',nil); {introduced 1.1.0} + ASN1_TIME_to_tm := LoadFunction('ASN1_TIME_to_tm',nil); {introduced 1.1.0} + ASN1_TIME_normalize := LoadFunction('ASN1_TIME_normalize',nil); {introduced 1.1.0} + ASN1_TIME_cmp_time_t := LoadFunction('ASN1_TIME_cmp_time_t',nil); {introduced 1.1.0} + ASN1_TIME_compare := LoadFunction('ASN1_TIME_compare',nil); {introduced 1.1.0} + ASN1_INTEGER_get_int64 := LoadFunction('ASN1_INTEGER_get_int64',nil); {introduced 1.1.0} + ASN1_INTEGER_set_int64 := LoadFunction('ASN1_INTEGER_set_int64',nil); {introduced 1.1.0} + ASN1_INTEGER_get_uint64 := LoadFunction('ASN1_INTEGER_get_uint64',nil); {introduced 1.1.0} + ASN1_INTEGER_set_uint64 := LoadFunction('ASN1_INTEGER_set_uint64',nil); {introduced 1.1.0} + ASN1_ENUMERATED_get_int64 := LoadFunction('ASN1_ENUMERATED_get_int64',nil); {introduced 1.1.0} + ASN1_ENUMERATED_set_int64 := LoadFunction('ASN1_ENUMERATED_set_int64',nil); {introduced 1.1.0} + ASN1_buf_print := LoadFunction('ASN1_buf_print',nil); {introduced 1.1.0} + ASN1_add_stable_module := LoadFunction('ASN1_add_stable_module',nil); {introduced 1.1.0} + ASN1_str2mask := LoadFunction('ASN1_str2mask',nil); {introduced 1.1.0} + ASN1_SCTX_free := LoadFunction('ASN1_SCTX_free',nil); {introduced 1.1.0} + ASN1_SCTX_get_item := LoadFunction('ASN1_SCTX_get_item',nil); {introduced 1.1.0} + ASN1_SCTX_get_template := LoadFunction('ASN1_SCTX_get_template',nil); {introduced 1.1.0} + ASN1_SCTX_get_flags := LoadFunction('ASN1_SCTX_get_flags',nil); {introduced 1.1.0} + ASN1_SCTX_set_app_data := LoadFunction('ASN1_SCTX_set_app_data',nil); {introduced 1.1.0} + ASN1_SCTX_get_app_data := LoadFunction('ASN1_SCTX_get_app_data',nil); {introduced 1.1.0} + ASN1_ITEM_lookup := LoadFunction('ASN1_ITEM_lookup',nil); {introduced 1.1.0} + ASN1_ITEM_get := LoadFunction('ASN1_ITEM_get',nil); {introduced 1.1.0} + if not assigned(ASN1_TYPE_pack_sequence) then + begin + {$if declared(ASN1_TYPE_pack_sequence_introduced)} + if LibVersion < ASN1_TYPE_pack_sequence_introduced then + {$if declared(FC_ASN1_TYPE_pack_sequence)} + ASN1_TYPE_pack_sequence := @FC_ASN1_TYPE_pack_sequence + {$else} + ASN1_TYPE_pack_sequence := @ERR_ASN1_TYPE_pack_sequence + {$ifend} + else + {$ifend} + {$if declared(ASN1_TYPE_pack_sequence_removed)} + if ASN1_TYPE_pack_sequence_removed <= LibVersion then + {$if declared(_ASN1_TYPE_pack_sequence)} + ASN1_TYPE_pack_sequence := @_ASN1_TYPE_pack_sequence + {$else} + {$IF declared(ERR_ASN1_TYPE_pack_sequence)} + ASN1_TYPE_pack_sequence := @ERR_ASN1_TYPE_pack_sequence + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_TYPE_pack_sequence) and Assigned(AFailed) then + AFailed.Add('ASN1_TYPE_pack_sequence'); + end; + + + if not assigned(ASN1_TYPE_unpack_sequence) then + begin + {$if declared(ASN1_TYPE_unpack_sequence_introduced)} + if LibVersion < ASN1_TYPE_unpack_sequence_introduced then + {$if declared(FC_ASN1_TYPE_unpack_sequence)} + ASN1_TYPE_unpack_sequence := @FC_ASN1_TYPE_unpack_sequence + {$else} + ASN1_TYPE_unpack_sequence := @ERR_ASN1_TYPE_unpack_sequence + {$ifend} + else + {$ifend} + {$if declared(ASN1_TYPE_unpack_sequence_removed)} + if ASN1_TYPE_unpack_sequence_removed <= LibVersion then + {$if declared(_ASN1_TYPE_unpack_sequence)} + ASN1_TYPE_unpack_sequence := @_ASN1_TYPE_unpack_sequence + {$else} + {$IF declared(ERR_ASN1_TYPE_unpack_sequence)} + ASN1_TYPE_unpack_sequence := @ERR_ASN1_TYPE_unpack_sequence + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_TYPE_unpack_sequence) and Assigned(AFailed) then + AFailed.Add('ASN1_TYPE_unpack_sequence'); + end; + + + if not assigned(ASN1_STRING_get0_data) then + begin + {$if declared(ASN1_STRING_get0_data_introduced)} + if LibVersion < ASN1_STRING_get0_data_introduced then + {$if declared(FC_ASN1_STRING_get0_data)} + ASN1_STRING_get0_data := @FC_ASN1_STRING_get0_data + {$else} + ASN1_STRING_get0_data := @ERR_ASN1_STRING_get0_data + {$ifend} + else + {$ifend} + {$if declared(ASN1_STRING_get0_data_removed)} + if ASN1_STRING_get0_data_removed <= LibVersion then + {$if declared(_ASN1_STRING_get0_data)} + ASN1_STRING_get0_data := @_ASN1_STRING_get0_data + {$else} + {$IF declared(ERR_ASN1_STRING_get0_data)} + ASN1_STRING_get0_data := @ERR_ASN1_STRING_get0_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_STRING_get0_data) and Assigned(AFailed) then + AFailed.Add('ASN1_STRING_get0_data'); + end; + + + if not assigned(ASN1_TIME_set_string_X509) then + begin + {$if declared(ASN1_TIME_set_string_X509_introduced)} + if LibVersion < ASN1_TIME_set_string_X509_introduced then + {$if declared(FC_ASN1_TIME_set_string_X509)} + ASN1_TIME_set_string_X509 := @FC_ASN1_TIME_set_string_X509 + {$else} + ASN1_TIME_set_string_X509 := @ERR_ASN1_TIME_set_string_X509 + {$ifend} + else + {$ifend} + {$if declared(ASN1_TIME_set_string_X509_removed)} + if ASN1_TIME_set_string_X509_removed <= LibVersion then + {$if declared(_ASN1_TIME_set_string_X509)} + ASN1_TIME_set_string_X509 := @_ASN1_TIME_set_string_X509 + {$else} + {$IF declared(ERR_ASN1_TIME_set_string_X509)} + ASN1_TIME_set_string_X509 := @ERR_ASN1_TIME_set_string_X509 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_TIME_set_string_X509) and Assigned(AFailed) then + AFailed.Add('ASN1_TIME_set_string_X509'); + end; + + + if not assigned(ASN1_TIME_to_tm) then + begin + {$if declared(ASN1_TIME_to_tm_introduced)} + if LibVersion < ASN1_TIME_to_tm_introduced then + {$if declared(FC_ASN1_TIME_to_tm)} + ASN1_TIME_to_tm := @FC_ASN1_TIME_to_tm + {$else} + ASN1_TIME_to_tm := @ERR_ASN1_TIME_to_tm + {$ifend} + else + {$ifend} + {$if declared(ASN1_TIME_to_tm_removed)} + if ASN1_TIME_to_tm_removed <= LibVersion then + {$if declared(_ASN1_TIME_to_tm)} + ASN1_TIME_to_tm := @_ASN1_TIME_to_tm + {$else} + {$IF declared(ERR_ASN1_TIME_to_tm)} + ASN1_TIME_to_tm := @ERR_ASN1_TIME_to_tm + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_TIME_to_tm) and Assigned(AFailed) then + AFailed.Add('ASN1_TIME_to_tm'); + end; + + + if not assigned(ASN1_TIME_normalize) then + begin + {$if declared(ASN1_TIME_normalize_introduced)} + if LibVersion < ASN1_TIME_normalize_introduced then + {$if declared(FC_ASN1_TIME_normalize)} + ASN1_TIME_normalize := @FC_ASN1_TIME_normalize + {$else} + ASN1_TIME_normalize := @ERR_ASN1_TIME_normalize + {$ifend} + else + {$ifend} + {$if declared(ASN1_TIME_normalize_removed)} + if ASN1_TIME_normalize_removed <= LibVersion then + {$if declared(_ASN1_TIME_normalize)} + ASN1_TIME_normalize := @_ASN1_TIME_normalize + {$else} + {$IF declared(ERR_ASN1_TIME_normalize)} + ASN1_TIME_normalize := @ERR_ASN1_TIME_normalize + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_TIME_normalize) and Assigned(AFailed) then + AFailed.Add('ASN1_TIME_normalize'); + end; + + + if not assigned(ASN1_TIME_cmp_time_t) then + begin + {$if declared(ASN1_TIME_cmp_time_t_introduced)} + if LibVersion < ASN1_TIME_cmp_time_t_introduced then + {$if declared(FC_ASN1_TIME_cmp_time_t)} + ASN1_TIME_cmp_time_t := @FC_ASN1_TIME_cmp_time_t + {$else} + ASN1_TIME_cmp_time_t := @ERR_ASN1_TIME_cmp_time_t + {$ifend} + else + {$ifend} + {$if declared(ASN1_TIME_cmp_time_t_removed)} + if ASN1_TIME_cmp_time_t_removed <= LibVersion then + {$if declared(_ASN1_TIME_cmp_time_t)} + ASN1_TIME_cmp_time_t := @_ASN1_TIME_cmp_time_t + {$else} + {$IF declared(ERR_ASN1_TIME_cmp_time_t)} + ASN1_TIME_cmp_time_t := @ERR_ASN1_TIME_cmp_time_t + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_TIME_cmp_time_t) and Assigned(AFailed) then + AFailed.Add('ASN1_TIME_cmp_time_t'); + end; + + + if not assigned(ASN1_TIME_compare) then + begin + {$if declared(ASN1_TIME_compare_introduced)} + if LibVersion < ASN1_TIME_compare_introduced then + {$if declared(FC_ASN1_TIME_compare)} + ASN1_TIME_compare := @FC_ASN1_TIME_compare + {$else} + ASN1_TIME_compare := @ERR_ASN1_TIME_compare + {$ifend} + else + {$ifend} + {$if declared(ASN1_TIME_compare_removed)} + if ASN1_TIME_compare_removed <= LibVersion then + {$if declared(_ASN1_TIME_compare)} + ASN1_TIME_compare := @_ASN1_TIME_compare + {$else} + {$IF declared(ERR_ASN1_TIME_compare)} + ASN1_TIME_compare := @ERR_ASN1_TIME_compare + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_TIME_compare) and Assigned(AFailed) then + AFailed.Add('ASN1_TIME_compare'); + end; + + + if not assigned(ASN1_INTEGER_get_int64) then + begin + {$if declared(ASN1_INTEGER_get_int64_introduced)} + if LibVersion < ASN1_INTEGER_get_int64_introduced then + {$if declared(FC_ASN1_INTEGER_get_int64)} + ASN1_INTEGER_get_int64 := @FC_ASN1_INTEGER_get_int64 + {$else} + ASN1_INTEGER_get_int64 := @ERR_ASN1_INTEGER_get_int64 + {$ifend} + else + {$ifend} + {$if declared(ASN1_INTEGER_get_int64_removed)} + if ASN1_INTEGER_get_int64_removed <= LibVersion then + {$if declared(_ASN1_INTEGER_get_int64)} + ASN1_INTEGER_get_int64 := @_ASN1_INTEGER_get_int64 + {$else} + {$IF declared(ERR_ASN1_INTEGER_get_int64)} + ASN1_INTEGER_get_int64 := @ERR_ASN1_INTEGER_get_int64 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_INTEGER_get_int64) and Assigned(AFailed) then + AFailed.Add('ASN1_INTEGER_get_int64'); + end; + + + if not assigned(ASN1_INTEGER_set_int64) then + begin + {$if declared(ASN1_INTEGER_set_int64_introduced)} + if LibVersion < ASN1_INTEGER_set_int64_introduced then + {$if declared(FC_ASN1_INTEGER_set_int64)} + ASN1_INTEGER_set_int64 := @FC_ASN1_INTEGER_set_int64 + {$else} + ASN1_INTEGER_set_int64 := @ERR_ASN1_INTEGER_set_int64 + {$ifend} + else + {$ifend} + {$if declared(ASN1_INTEGER_set_int64_removed)} + if ASN1_INTEGER_set_int64_removed <= LibVersion then + {$if declared(_ASN1_INTEGER_set_int64)} + ASN1_INTEGER_set_int64 := @_ASN1_INTEGER_set_int64 + {$else} + {$IF declared(ERR_ASN1_INTEGER_set_int64)} + ASN1_INTEGER_set_int64 := @ERR_ASN1_INTEGER_set_int64 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_INTEGER_set_int64) and Assigned(AFailed) then + AFailed.Add('ASN1_INTEGER_set_int64'); + end; + + + if not assigned(ASN1_INTEGER_get_uint64) then + begin + {$if declared(ASN1_INTEGER_get_uint64_introduced)} + if LibVersion < ASN1_INTEGER_get_uint64_introduced then + {$if declared(FC_ASN1_INTEGER_get_uint64)} + ASN1_INTEGER_get_uint64 := @FC_ASN1_INTEGER_get_uint64 + {$else} + ASN1_INTEGER_get_uint64 := @ERR_ASN1_INTEGER_get_uint64 + {$ifend} + else + {$ifend} + {$if declared(ASN1_INTEGER_get_uint64_removed)} + if ASN1_INTEGER_get_uint64_removed <= LibVersion then + {$if declared(_ASN1_INTEGER_get_uint64)} + ASN1_INTEGER_get_uint64 := @_ASN1_INTEGER_get_uint64 + {$else} + {$IF declared(ERR_ASN1_INTEGER_get_uint64)} + ASN1_INTEGER_get_uint64 := @ERR_ASN1_INTEGER_get_uint64 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_INTEGER_get_uint64) and Assigned(AFailed) then + AFailed.Add('ASN1_INTEGER_get_uint64'); + end; + + + if not assigned(ASN1_INTEGER_set_uint64) then + begin + {$if declared(ASN1_INTEGER_set_uint64_introduced)} + if LibVersion < ASN1_INTEGER_set_uint64_introduced then + {$if declared(FC_ASN1_INTEGER_set_uint64)} + ASN1_INTEGER_set_uint64 := @FC_ASN1_INTEGER_set_uint64 + {$else} + ASN1_INTEGER_set_uint64 := @ERR_ASN1_INTEGER_set_uint64 + {$ifend} + else + {$ifend} + {$if declared(ASN1_INTEGER_set_uint64_removed)} + if ASN1_INTEGER_set_uint64_removed <= LibVersion then + {$if declared(_ASN1_INTEGER_set_uint64)} + ASN1_INTEGER_set_uint64 := @_ASN1_INTEGER_set_uint64 + {$else} + {$IF declared(ERR_ASN1_INTEGER_set_uint64)} + ASN1_INTEGER_set_uint64 := @ERR_ASN1_INTEGER_set_uint64 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_INTEGER_set_uint64) and Assigned(AFailed) then + AFailed.Add('ASN1_INTEGER_set_uint64'); + end; + + + if not assigned(ASN1_ENUMERATED_get_int64) then + begin + {$if declared(ASN1_ENUMERATED_get_int64_introduced)} + if LibVersion < ASN1_ENUMERATED_get_int64_introduced then + {$if declared(FC_ASN1_ENUMERATED_get_int64)} + ASN1_ENUMERATED_get_int64 := @FC_ASN1_ENUMERATED_get_int64 + {$else} + ASN1_ENUMERATED_get_int64 := @ERR_ASN1_ENUMERATED_get_int64 + {$ifend} + else + {$ifend} + {$if declared(ASN1_ENUMERATED_get_int64_removed)} + if ASN1_ENUMERATED_get_int64_removed <= LibVersion then + {$if declared(_ASN1_ENUMERATED_get_int64)} + ASN1_ENUMERATED_get_int64 := @_ASN1_ENUMERATED_get_int64 + {$else} + {$IF declared(ERR_ASN1_ENUMERATED_get_int64)} + ASN1_ENUMERATED_get_int64 := @ERR_ASN1_ENUMERATED_get_int64 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_ENUMERATED_get_int64) and Assigned(AFailed) then + AFailed.Add('ASN1_ENUMERATED_get_int64'); + end; + + + if not assigned(ASN1_ENUMERATED_set_int64) then + begin + {$if declared(ASN1_ENUMERATED_set_int64_introduced)} + if LibVersion < ASN1_ENUMERATED_set_int64_introduced then + {$if declared(FC_ASN1_ENUMERATED_set_int64)} + ASN1_ENUMERATED_set_int64 := @FC_ASN1_ENUMERATED_set_int64 + {$else} + ASN1_ENUMERATED_set_int64 := @ERR_ASN1_ENUMERATED_set_int64 + {$ifend} + else + {$ifend} + {$if declared(ASN1_ENUMERATED_set_int64_removed)} + if ASN1_ENUMERATED_set_int64_removed <= LibVersion then + {$if declared(_ASN1_ENUMERATED_set_int64)} + ASN1_ENUMERATED_set_int64 := @_ASN1_ENUMERATED_set_int64 + {$else} + {$IF declared(ERR_ASN1_ENUMERATED_set_int64)} + ASN1_ENUMERATED_set_int64 := @ERR_ASN1_ENUMERATED_set_int64 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_ENUMERATED_set_int64) and Assigned(AFailed) then + AFailed.Add('ASN1_ENUMERATED_set_int64'); + end; + + + if not assigned(ASN1_buf_print) then + begin + {$if declared(ASN1_buf_print_introduced)} + if LibVersion < ASN1_buf_print_introduced then + {$if declared(FC_ASN1_buf_print)} + ASN1_buf_print := @FC_ASN1_buf_print + {$else} + ASN1_buf_print := @ERR_ASN1_buf_print + {$ifend} + else + {$ifend} + {$if declared(ASN1_buf_print_removed)} + if ASN1_buf_print_removed <= LibVersion then + {$if declared(_ASN1_buf_print)} + ASN1_buf_print := @_ASN1_buf_print + {$else} + {$IF declared(ERR_ASN1_buf_print)} + ASN1_buf_print := @ERR_ASN1_buf_print + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_buf_print) and Assigned(AFailed) then + AFailed.Add('ASN1_buf_print'); + end; + + + if not assigned(ASN1_add_stable_module) then + begin + {$if declared(ASN1_add_stable_module_introduced)} + if LibVersion < ASN1_add_stable_module_introduced then + {$if declared(FC_ASN1_add_stable_module)} + ASN1_add_stable_module := @FC_ASN1_add_stable_module + {$else} + ASN1_add_stable_module := @ERR_ASN1_add_stable_module + {$ifend} + else + {$ifend} + {$if declared(ASN1_add_stable_module_removed)} + if ASN1_add_stable_module_removed <= LibVersion then + {$if declared(_ASN1_add_stable_module)} + ASN1_add_stable_module := @_ASN1_add_stable_module + {$else} + {$IF declared(ERR_ASN1_add_stable_module)} + ASN1_add_stable_module := @ERR_ASN1_add_stable_module + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_add_stable_module) and Assigned(AFailed) then + AFailed.Add('ASN1_add_stable_module'); + end; + + + if not assigned(ASN1_str2mask) then + begin + {$if declared(ASN1_str2mask_introduced)} + if LibVersion < ASN1_str2mask_introduced then + {$if declared(FC_ASN1_str2mask)} + ASN1_str2mask := @FC_ASN1_str2mask + {$else} + ASN1_str2mask := @ERR_ASN1_str2mask + {$ifend} + else + {$ifend} + {$if declared(ASN1_str2mask_removed)} + if ASN1_str2mask_removed <= LibVersion then + {$if declared(_ASN1_str2mask)} + ASN1_str2mask := @_ASN1_str2mask + {$else} + {$IF declared(ERR_ASN1_str2mask)} + ASN1_str2mask := @ERR_ASN1_str2mask + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_str2mask) and Assigned(AFailed) then + AFailed.Add('ASN1_str2mask'); + end; + + + if not assigned(ASN1_SCTX_free) then + begin + {$if declared(ASN1_SCTX_free_introduced)} + if LibVersion < ASN1_SCTX_free_introduced then + {$if declared(FC_ASN1_SCTX_free)} + ASN1_SCTX_free := @FC_ASN1_SCTX_free + {$else} + ASN1_SCTX_free := @ERR_ASN1_SCTX_free + {$ifend} + else + {$ifend} + {$if declared(ASN1_SCTX_free_removed)} + if ASN1_SCTX_free_removed <= LibVersion then + {$if declared(_ASN1_SCTX_free)} + ASN1_SCTX_free := @_ASN1_SCTX_free + {$else} + {$IF declared(ERR_ASN1_SCTX_free)} + ASN1_SCTX_free := @ERR_ASN1_SCTX_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_SCTX_free) and Assigned(AFailed) then + AFailed.Add('ASN1_SCTX_free'); + end; + + + if not assigned(ASN1_SCTX_get_item) then + begin + {$if declared(ASN1_SCTX_get_item_introduced)} + if LibVersion < ASN1_SCTX_get_item_introduced then + {$if declared(FC_ASN1_SCTX_get_item)} + ASN1_SCTX_get_item := @FC_ASN1_SCTX_get_item + {$else} + ASN1_SCTX_get_item := @ERR_ASN1_SCTX_get_item + {$ifend} + else + {$ifend} + {$if declared(ASN1_SCTX_get_item_removed)} + if ASN1_SCTX_get_item_removed <= LibVersion then + {$if declared(_ASN1_SCTX_get_item)} + ASN1_SCTX_get_item := @_ASN1_SCTX_get_item + {$else} + {$IF declared(ERR_ASN1_SCTX_get_item)} + ASN1_SCTX_get_item := @ERR_ASN1_SCTX_get_item + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_SCTX_get_item) and Assigned(AFailed) then + AFailed.Add('ASN1_SCTX_get_item'); + end; + + + if not assigned(ASN1_SCTX_get_template) then + begin + {$if declared(ASN1_SCTX_get_template_introduced)} + if LibVersion < ASN1_SCTX_get_template_introduced then + {$if declared(FC_ASN1_SCTX_get_template)} + ASN1_SCTX_get_template := @FC_ASN1_SCTX_get_template + {$else} + ASN1_SCTX_get_template := @ERR_ASN1_SCTX_get_template + {$ifend} + else + {$ifend} + {$if declared(ASN1_SCTX_get_template_removed)} + if ASN1_SCTX_get_template_removed <= LibVersion then + {$if declared(_ASN1_SCTX_get_template)} + ASN1_SCTX_get_template := @_ASN1_SCTX_get_template + {$else} + {$IF declared(ERR_ASN1_SCTX_get_template)} + ASN1_SCTX_get_template := @ERR_ASN1_SCTX_get_template + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_SCTX_get_template) and Assigned(AFailed) then + AFailed.Add('ASN1_SCTX_get_template'); + end; + + + if not assigned(ASN1_SCTX_get_flags) then + begin + {$if declared(ASN1_SCTX_get_flags_introduced)} + if LibVersion < ASN1_SCTX_get_flags_introduced then + {$if declared(FC_ASN1_SCTX_get_flags)} + ASN1_SCTX_get_flags := @FC_ASN1_SCTX_get_flags + {$else} + ASN1_SCTX_get_flags := @ERR_ASN1_SCTX_get_flags + {$ifend} + else + {$ifend} + {$if declared(ASN1_SCTX_get_flags_removed)} + if ASN1_SCTX_get_flags_removed <= LibVersion then + {$if declared(_ASN1_SCTX_get_flags)} + ASN1_SCTX_get_flags := @_ASN1_SCTX_get_flags + {$else} + {$IF declared(ERR_ASN1_SCTX_get_flags)} + ASN1_SCTX_get_flags := @ERR_ASN1_SCTX_get_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_SCTX_get_flags) and Assigned(AFailed) then + AFailed.Add('ASN1_SCTX_get_flags'); + end; + + + if not assigned(ASN1_SCTX_set_app_data) then + begin + {$if declared(ASN1_SCTX_set_app_data_introduced)} + if LibVersion < ASN1_SCTX_set_app_data_introduced then + {$if declared(FC_ASN1_SCTX_set_app_data)} + ASN1_SCTX_set_app_data := @FC_ASN1_SCTX_set_app_data + {$else} + ASN1_SCTX_set_app_data := @ERR_ASN1_SCTX_set_app_data + {$ifend} + else + {$ifend} + {$if declared(ASN1_SCTX_set_app_data_removed)} + if ASN1_SCTX_set_app_data_removed <= LibVersion then + {$if declared(_ASN1_SCTX_set_app_data)} + ASN1_SCTX_set_app_data := @_ASN1_SCTX_set_app_data + {$else} + {$IF declared(ERR_ASN1_SCTX_set_app_data)} + ASN1_SCTX_set_app_data := @ERR_ASN1_SCTX_set_app_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_SCTX_set_app_data) and Assigned(AFailed) then + AFailed.Add('ASN1_SCTX_set_app_data'); + end; + + + if not assigned(ASN1_SCTX_get_app_data) then + begin + {$if declared(ASN1_SCTX_get_app_data_introduced)} + if LibVersion < ASN1_SCTX_get_app_data_introduced then + {$if declared(FC_ASN1_SCTX_get_app_data)} + ASN1_SCTX_get_app_data := @FC_ASN1_SCTX_get_app_data + {$else} + ASN1_SCTX_get_app_data := @ERR_ASN1_SCTX_get_app_data + {$ifend} + else + {$ifend} + {$if declared(ASN1_SCTX_get_app_data_removed)} + if ASN1_SCTX_get_app_data_removed <= LibVersion then + {$if declared(_ASN1_SCTX_get_app_data)} + ASN1_SCTX_get_app_data := @_ASN1_SCTX_get_app_data + {$else} + {$IF declared(ERR_ASN1_SCTX_get_app_data)} + ASN1_SCTX_get_app_data := @ERR_ASN1_SCTX_get_app_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_SCTX_get_app_data) and Assigned(AFailed) then + AFailed.Add('ASN1_SCTX_get_app_data'); + end; + + + if not assigned(ASN1_ITEM_lookup) then + begin + {$if declared(ASN1_ITEM_lookup_introduced)} + if LibVersion < ASN1_ITEM_lookup_introduced then + {$if declared(FC_ASN1_ITEM_lookup)} + ASN1_ITEM_lookup := @FC_ASN1_ITEM_lookup + {$else} + ASN1_ITEM_lookup := @ERR_ASN1_ITEM_lookup + {$ifend} + else + {$ifend} + {$if declared(ASN1_ITEM_lookup_removed)} + if ASN1_ITEM_lookup_removed <= LibVersion then + {$if declared(_ASN1_ITEM_lookup)} + ASN1_ITEM_lookup := @_ASN1_ITEM_lookup + {$else} + {$IF declared(ERR_ASN1_ITEM_lookup)} + ASN1_ITEM_lookup := @ERR_ASN1_ITEM_lookup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_ITEM_lookup) and Assigned(AFailed) then + AFailed.Add('ASN1_ITEM_lookup'); + end; + + + if not assigned(ASN1_ITEM_get) then + begin + {$if declared(ASN1_ITEM_get_introduced)} + if LibVersion < ASN1_ITEM_get_introduced then + {$if declared(FC_ASN1_ITEM_get)} + ASN1_ITEM_get := @FC_ASN1_ITEM_get + {$else} + ASN1_ITEM_get := @ERR_ASN1_ITEM_get + {$ifend} + else + {$ifend} + {$if declared(ASN1_ITEM_get_removed)} + if ASN1_ITEM_get_removed <= LibVersion then + {$if declared(_ASN1_ITEM_get)} + ASN1_ITEM_get := @_ASN1_ITEM_get + {$else} + {$IF declared(ERR_ASN1_ITEM_get)} + ASN1_ITEM_get := @ERR_ASN1_ITEM_get + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASN1_ITEM_get) and Assigned(AFailed) then + AFailed.Add('ASN1_ITEM_get'); + end; + + +end; + +procedure Unload; +begin + ASN1_TYPE_get := nil; + ASN1_TYPE_set := nil; + ASN1_TYPE_set1 := nil; + ASN1_TYPE_cmp := nil; + ASN1_TYPE_pack_sequence := nil; {introduced 1.1.0} + ASN1_TYPE_unpack_sequence := nil; {introduced 1.1.0} + ASN1_OBJECT_new := nil; + ASN1_OBJECT_free := nil; + i2d_ASN1_OBJECT := nil; + d2i_ASN1_OBJECT := nil; + ASN1_STRING_new := nil; + ASN1_STRING_free := nil; + ASN1_STRING_clear_free := nil; + ASN1_STRING_copy := nil; + ASN1_STRING_dup := nil; + ASN1_STRING_type_new := nil; + ASN1_STRING_cmp := nil; + ASN1_STRING_set := nil; + ASN1_STRING_set0 := nil; + ASN1_STRING_length := nil; + ASN1_STRING_length_set := nil; + ASN1_STRING_type := nil; + ASN1_STRING_get0_data := nil; {introduced 1.1.0} + ASN1_BIT_STRING_set := nil; + ASN1_BIT_STRING_set_bit := nil; + ASN1_BIT_STRING_get_bit := nil; + ASN1_BIT_STRING_check := nil; + ASN1_BIT_STRING_name_print := nil; + ASN1_BIT_STRING_num_asc := nil; + ASN1_BIT_STRING_set_asc := nil; + ASN1_INTEGER_new := nil; + ASN1_INTEGER_free := nil; + d2i_ASN1_INTEGER := nil; + i2d_ASN1_INTEGER := nil; + d2i_ASN1_UINTEGER := nil; + ASN1_INTEGER_dup := nil; + ASN1_INTEGER_cmp := nil; + ASN1_UTCTIME_check := nil; + ASN1_UTCTIME_set := nil; + ASN1_UTCTIME_adj := nil; + ASN1_UTCTIME_set_string := nil; + ASN1_UTCTIME_cmp_time_t := nil; + ASN1_GENERALIZEDTIME_check := nil; + ASN1_GENERALIZEDTIME_set := nil; + ASN1_GENERALIZEDTIME_adj := nil; + ASN1_GENERALIZEDTIME_set_string := nil; + ASN1_TIME_diff := nil; + ASN1_OCTET_STRING_dup := nil; + ASN1_OCTET_STRING_cmp := nil; + ASN1_OCTET_STRING_set := nil; + UTF8_getc := nil; + UTF8_putc := nil; + ASN1_UTCTIME_new := nil; + ASN1_UTCTIME_free := nil; + d2i_ASN1_UTCTIME := nil; + i2d_ASN1_UTCTIME := nil; + ASN1_GENERALIZEDTIME_new := nil; + ASN1_GENERALIZEDTIME_free := nil; + d2i_ASN1_GENERALIZEDTIME := nil; + i2d_ASN1_GENERALIZEDTIME := nil; + ASN1_TIME_new := nil; + ASN1_TIME_free := nil; + d2i_ASN1_TIME := nil; + i2d_ASN1_TIME := nil; + ASN1_TIME_set := nil; + ASN1_TIME_adj := nil; + ASN1_TIME_check := nil; + ASN1_TIME_to_generalizedtime := nil; + ASN1_TIME_set_string := nil; + ASN1_TIME_set_string_X509 := nil; {introduced 1.1.0} + ASN1_TIME_to_tm := nil; {introduced 1.1.0} + ASN1_TIME_normalize := nil; {introduced 1.1.0} + ASN1_TIME_cmp_time_t := nil; {introduced 1.1.0} + ASN1_TIME_compare := nil; {introduced 1.1.0} + i2a_ASN1_INTEGER := nil; + a2i_ASN1_INTEGER := nil; + i2a_ASN1_ENUMERATED := nil; + a2i_ASN1_ENUMERATED := nil; + i2a_ASN1_OBJECT := nil; + a2i_ASN1_STRING := nil; + i2a_ASN1_STRING := nil; + i2t_ASN1_OBJECT := nil; + a2d_ASN1_OBJECT := nil; + ASN1_OBJECT_create := nil; + ASN1_INTEGER_get_int64 := nil; {introduced 1.1.0} + ASN1_INTEGER_set_int64 := nil; {introduced 1.1.0} + ASN1_INTEGER_get_uint64 := nil; {introduced 1.1.0} + ASN1_INTEGER_set_uint64 := nil; {introduced 1.1.0} + ASN1_INTEGER_set := nil; + ASN1_INTEGER_get := nil; + BN_to_ASN1_INTEGER := nil; + ASN1_INTEGER_to_BN := nil; + ASN1_ENUMERATED_get_int64 := nil; {introduced 1.1.0} + ASN1_ENUMERATED_set_int64 := nil; {introduced 1.1.0} + ASN1_ENUMERATED_set := nil; + ASN1_ENUMERATED_get := nil; + BN_to_ASN1_ENUMERATED := nil; + ASN1_ENUMERATED_to_BN := nil; + ASN1_PRINTABLE_type := nil; + ASN1_tag2bit := nil; + ASN1_get_object := nil; + ASN1_check_infinite_end := nil; + ASN1_const_check_infinite_end := nil; + ASN1_put_object := nil; + ASN1_put_eoc := nil; + ASN1_object_size := nil; + ASN1_item_dup := nil; + ASN1_STRING_to_UTF8 := nil; + ASN1_item_d2i_bio := nil; + ASN1_i2d_bio := nil; + ASN1_item_i2d_bio := nil; + ASN1_UTCTIME_print := nil; + ASN1_GENERALIZEDTIME_print := nil; + ASN1_TIME_print := nil; + ASN1_STRING_print := nil; + ASN1_STRING_print_ex := nil; + ASN1_buf_print := nil; {introduced 1.1.0} + ASN1_bn_print := nil; + ASN1_parse := nil; + ASN1_parse_dump := nil; + ASN1_tag2str := nil; + ASN1_UNIVERSALSTRING_to_string := nil; + ASN1_TYPE_set_octetstring := nil; + ASN1_TYPE_get_octetstring := nil; + ASN1_TYPE_set_int_octetstring := nil; + ASN1_TYPE_get_int_octetstring := nil; + ASN1_item_unpack := nil; + ASN1_item_pack := nil; + ASN1_STRING_set_default_mask := nil; + ASN1_STRING_set_default_mask_asc := nil; + ASN1_STRING_get_default_mask := nil; + ASN1_mbstring_copy := nil; + ASN1_mbstring_ncopy := nil; + ASN1_STRING_set_by_NID := nil; + ASN1_STRING_TABLE_get := nil; + ASN1_STRING_TABLE_add := nil; + ASN1_STRING_TABLE_cleanup := nil; + ASN1_item_new := nil; + ASN1_item_free := nil; + ASN1_item_d2i := nil; + ASN1_item_i2d := nil; + ASN1_item_ndef_i2d := nil; + ASN1_add_oid_module := nil; + ASN1_add_stable_module := nil; {introduced 1.1.0} + ASN1_generate_nconf := nil; + ASN1_generate_v3 := nil; + ASN1_str2mask := nil; {introduced 1.1.0} + ASN1_item_print := nil; + ASN1_PCTX_new := nil; + ASN1_PCTX_free := nil; + ASN1_PCTX_get_flags := nil; + ASN1_PCTX_set_flags := nil; + ASN1_PCTX_get_nm_flags := nil; + ASN1_PCTX_set_nm_flags := nil; + ASN1_PCTX_get_cert_flags := nil; + ASN1_PCTX_set_cert_flags := nil; + ASN1_PCTX_get_oid_flags := nil; + ASN1_PCTX_set_oid_flags := nil; + ASN1_PCTX_get_str_flags := nil; + ASN1_PCTX_set_str_flags := nil; + ASN1_SCTX_free := nil; {introduced 1.1.0} + ASN1_SCTX_get_item := nil; {introduced 1.1.0} + ASN1_SCTX_get_template := nil; {introduced 1.1.0} + ASN1_SCTX_get_flags := nil; {introduced 1.1.0} + ASN1_SCTX_set_app_data := nil; {introduced 1.1.0} + ASN1_SCTX_get_app_data := nil; {introduced 1.1.0} + BIO_f_asn1 := nil; + BIO_new_NDEF := nil; + i2d_ASN1_bio_stream := nil; + PEM_write_bio_ASN1_stream := nil; + SMIME_read_ASN1 := nil; + SMIME_crlf_copy := nil; + SMIME_text := nil; + ASN1_ITEM_lookup := nil; {introduced 1.1.0} + ASN1_ITEM_get := nil; {introduced 1.1.0} +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1_mac.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1_mac.pas new file mode 100644 index 000000000..38553eae7 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1_mac.pas @@ -0,0 +1,44 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_asn1_mac.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_asn1_mac.h2pas + and this file regenerated. IdOpenSSLHeaders_asn1_mac.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_asn1_mac; + +interface + +// Headers for OpenSSL 1.1.1 +// asn1_mac.h + +{.$i IdCompilerDefines.inc} + +//#error "This file is obsolete; please update your software." + +implementation + +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1err.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1err.pas new file mode 100644 index 000000000..1c08084aa --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1err.pas @@ -0,0 +1,331 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_asn1err.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_asn1err.h2pas + and this file regenerated. IdOpenSSLHeaders_asn1err.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_asn1err; + +interface + +// Headers for OpenSSL 1.1.1 +// asn1err.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + +// ASN1 function codes. + ASN1_F_A2D_ASN1_OBJECT = 100; + ASN1_F_A2I_ASN1_INTEGER = 102; + ASN1_F_A2I_ASN1_STRING = 103; + ASN1_F_APPEND_EXP = 176; + ASN1_F_ASN1_BIO_INIT = 113; + ASN1_F_ASN1_BIT_STRING_SET_BIT = 183; + ASN1_F_ASN1_CB = 177; + ASN1_F_ASN1_CHECK_TLEN = 104; + ASN1_F_ASN1_COLLECT = 106; + ASN1_F_ASN1_D2I_EX_PRIMITIVE = 108; + ASN1_F_ASN1_D2I_FP = 109; + ASN1_F_ASN1_D2I_READ_BIO = 107; + ASN1_F_ASN1_DIGEST = 184; + ASN1_F_ASN1_DO_ADB = 110; + ASN1_F_ASN1_DO_LOCK = 233; + ASN1_F_ASN1_DUP = 111; + ASN1_F_ASN1_ENC_SAVE = 115; + ASN1_F_ASN1_EX_C2I = 204; + ASN1_F_ASN1_FIND_END = 190; + ASN1_F_ASN1_GENERALIZEDTIME_ADJ = 216; + ASN1_F_ASN1_GENERATE_V3 = 178; + ASN1_F_ASN1_GET_INT64 = 224; + ASN1_F_ASN1_GET_OBJECT = 114; + ASN1_F_ASN1_GET_UINT64 = 225; + ASN1_F_ASN1_I2D_BIO = 116; + ASN1_F_ASN1_I2D_FP = 117; + ASN1_F_ASN1_ITEM_D2I_FP = 206; + ASN1_F_ASN1_ITEM_DUP = 191; + ASN1_F_ASN1_ITEM_EMBED_D2I = 120; + ASN1_F_ASN1_ITEM_EMBED_NEW = 121; + ASN1_F_ASN1_ITEM_FLAGS_I2D = 118; + ASN1_F_ASN1_ITEM_I2D_BIO = 192; + ASN1_F_ASN1_ITEM_I2D_FP = 193; + ASN1_F_ASN1_ITEM_PACK = 198; + ASN1_F_ASN1_ITEM_SIGN = 195; + ASN1_F_ASN1_ITEM_SIGN_CTX = 220; + ASN1_F_ASN1_ITEM_UNPACK = 199; + ASN1_F_ASN1_ITEM_VERIFY = 197; + ASN1_F_ASN1_MBSTRING_NCOPY = 122; + ASN1_F_ASN1_OBJECT_NEW = 123; + ASN1_F_ASN1_OUTPUT_DATA = 214; + ASN1_F_ASN1_PCTX_NEW = 205; + ASN1_F_ASN1_PRIMITIVE_NEW = 119; + ASN1_F_ASN1_SCTX_NEW = 221; + ASN1_F_ASN1_SIGN = 128; + ASN1_F_ASN1_STR2TYPE = 179; + ASN1_F_ASN1_STRING_GET_INT64 = 227; + ASN1_F_ASN1_STRING_GET_UINT64 = 230; + ASN1_F_ASN1_STRING_SET = 186; + ASN1_F_ASN1_STRING_TABLE_ADD = 129; + ASN1_F_ASN1_STRING_TO_BN = 228; + ASN1_F_ASN1_STRING_TYPE_NEW = 130; + ASN1_F_ASN1_TEMPLATE_EX_D2I = 132; + ASN1_F_ASN1_TEMPLATE_NEW = 133; + ASN1_F_ASN1_TEMPLATE_NOEXP_D2I = 131; + ASN1_F_ASN1_TIME_ADJ = 217; + ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING = 134; + ASN1_F_ASN1_TYPE_GET_OCTETSTRING = 135; + ASN1_F_ASN1_UTCTIME_ADJ = 218; + ASN1_F_ASN1_VERIFY = 137; + ASN1_F_B64_READ_ASN1 = 209; + ASN1_F_B64_WRITE_ASN1 = 210; + ASN1_F_BIO_NEW_NDEF = 208; + ASN1_F_BITSTR_CB = 180; + ASN1_F_BN_TO_ASN1_STRING = 229; + ASN1_F_C2I_ASN1_BIT_STRING = 189; + ASN1_F_C2I_ASN1_INTEGER = 194; + ASN1_F_C2I_ASN1_OBJECT = 196; + ASN1_F_C2I_IBUF = 226; + ASN1_F_C2I_UINT64_INT = 101; + ASN1_F_COLLECT_DATA = 140; + ASN1_F_D2I_ASN1_OBJECT = 147; + ASN1_F_D2I_ASN1_UINTEGER = 150; + ASN1_F_D2I_AUTOPRIVATEKEY = 207; + ASN1_F_D2I_PRIVATEKEY = 154; + ASN1_F_D2I_PUBLICKEY = 155; + ASN1_F_DO_BUF = 142; + ASN1_F_DO_CREATE = 124; + ASN1_F_DO_DUMP = 125; + ASN1_F_DO_TCREATE = 222; + ASN1_F_I2A_ASN1_OBJECT = 126; + ASN1_F_I2D_ASN1_BIO_STREAM = 211; + ASN1_F_I2D_ASN1_OBJECT = 143; + ASN1_F_I2D_DSA_PUBKEY = 161; + ASN1_F_I2D_EC_PUBKEY = 181; + ASN1_F_I2D_PRIVATEKEY = 163; + ASN1_F_I2D_PUBLICKEY = 164; + ASN1_F_I2D_RSA_PUBKEY = 165; + ASN1_F_LONG_C2I = 166; + ASN1_F_NDEF_PREFIX = 127; + ASN1_F_NDEF_SUFFIX = 136; + ASN1_F_OID_MODULE_INIT = 174; + ASN1_F_PARSE_TAGGING = 182; + ASN1_F_PKCS5_PBE2_SET_IV = 167; + ASN1_F_PKCS5_PBE2_SET_SCRYPT = 231; + ASN1_F_PKCS5_PBE_SET = 202; + ASN1_F_PKCS5_PBE_SET0_ALGOR = 215; + ASN1_F_PKCS5_PBKDF2_SET = 219; + ASN1_F_PKCS5_SCRYPT_SET = 232; + ASN1_F_SMIME_READ_ASN1 = 212; + ASN1_F_SMIME_TEXT = 213; + ASN1_F_STABLE_GET = 138; + ASN1_F_STBL_MODULE_INIT = 223; + ASN1_F_UINT32_C2I = 105; + ASN1_F_UINT32_NEW = 139; + ASN1_F_UINT64_C2I = 112; + ASN1_F_UINT64_NEW = 141; + ASN1_F_X509_CRL_ADD0_REVOKED = 169; + ASN1_F_X509_INFO_NEW = 170; + ASN1_F_X509_NAME_ENCODE = 203; + ASN1_F_X509_NAME_EX_D2I = 158; + ASN1_F_X509_NAME_EX_NEW = 171; + ASN1_F_X509_PKEY_NEW = 173; + +// ASN1 reason codes. + ASN1_R_ADDING_OBJECT = 171; + ASN1_R_ASN1_PARSE_ERROR = 203; + ASN1_R_ASN1_SIG_PARSE_ERROR = 204; + ASN1_R_AUX_ERROR = 100; + ASN1_R_BAD_OBJECT_HEADER = 102; + ASN1_R_BMPSTRING_IS_WRONG_LENGTH = 214; + ASN1_R_BN_LIB = 105; + ASN1_R_BOOLEAN_IS_WRONG_LENGTH = 106; + ASN1_R_BUFFER_TOO_SMALL = 107; + ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER = 108; + ASN1_R_CONTEXT_NOT_INITIALISED = 217; + ASN1_R_DATA_IS_WRONG = 109; + ASN1_R_DECODE_ERROR = 110; + ASN1_R_DEPTH_EXCEEDED = 174; + ASN1_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED = 198; + ASN1_R_ENCODE_ERROR = 112; + ASN1_R_ERROR_GETTING_TIME = 173; + ASN1_R_ERROR_LOADING_SECTION = 172; + ASN1_R_ERROR_SETTING_CIPHER_PARAMS = 114; + ASN1_R_EXPECTING_AN_INTEGER = 115; + ASN1_R_EXPECTING_AN_OBJECT = 116; + ASN1_R_EXPLICIT_LENGTH_MISMATCH = 119; + ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED = 120; + ASN1_R_FIELD_MISSING = 121; + ASN1_R_FIRST_NUM_TOO_LARGE = 122; + ASN1_R_HEADER_TOO_LONG = 123; + ASN1_R_ILLEGAL_BITSTRING_FORMAT = 175; + ASN1_R_ILLEGAL_BOOLEAN = 176; + ASN1_R_ILLEGAL_CHARACTERS = 124; + ASN1_R_ILLEGAL_FORMAT = 177; + ASN1_R_ILLEGAL_HEX = 178; + ASN1_R_ILLEGAL_IMPLICIT_TAG = 179; + ASN1_R_ILLEGAL_INTEGER = 180; + ASN1_R_ILLEGAL_NEGATIVE_VALUE = 226; + ASN1_R_ILLEGAL_NESTED_TAGGING = 181; + ASN1_R_ILLEGAL_NULL = 125; + ASN1_R_ILLEGAL_NULL_VALUE = 182; + ASN1_R_ILLEGAL_OBJECT = 183; + ASN1_R_ILLEGAL_OPTIONAL_ANY = 126; + ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE = 170; + ASN1_R_ILLEGAL_PADDING = 221; + ASN1_R_ILLEGAL_TAGGED_ANY = 127; + ASN1_R_ILLEGAL_TIME_VALUE = 184; + ASN1_R_ILLEGAL_ZERO_CONTENT = 222; + ASN1_R_INTEGER_NOT_ASCII_FORMAT = 185; + ASN1_R_INTEGER_TOO_LARGE_FOR_LONG = 128; + ASN1_R_INVALID_BIT_STRING_BITS_LEFT = 220; + ASN1_R_INVALID_BMPSTRING_LENGTH = 129; + ASN1_R_INVALID_DIGIT = 130; + ASN1_R_INVALID_MIME_TYPE = 205; + ASN1_R_INVALID_MODIFIER = 186; + ASN1_R_INVALID_NUMBER = 187; + ASN1_R_INVALID_OBJECT_ENCODING = 216; + ASN1_R_INVALID_SCRYPT_PARAMETERS = 227; + ASN1_R_INVALID_SEPARATOR = 131; + ASN1_R_INVALID_STRING_TABLE_VALUE = 218; + ASN1_R_INVALID_UNIVERSALSTRING_LENGTH = 133; + ASN1_R_INVALID_UTF8STRING = 134; + ASN1_R_INVALID_VALUE = 219; + ASN1_R_LIST_ERROR = 188; + ASN1_R_MIME_NO_CONTENT_TYPE = 206; + ASN1_R_MIME_PARSE_ERROR = 207; + ASN1_R_MIME_SIG_PARSE_ERROR = 208; + ASN1_R_MISSING_EOC = 137; + ASN1_R_MISSING_SECOND_NUMBER = 138; + ASN1_R_MISSING_VALUE = 189; + ASN1_R_MSTRING_NOT_UNIVERSAL = 139; + ASN1_R_MSTRING_WRONG_TAG = 140; + ASN1_R_NESTED_ASN1_STRING = 197; + ASN1_R_NESTED_TOO_DEEP = 201; + ASN1_R_NON_HEX_CHARACTERS = 141; + ASN1_R_NOT_ASCII_FORMAT = 190; + ASN1_R_NOT_ENOUGH_DATA = 142; + ASN1_R_NO_CONTENT_TYPE = 209; + ASN1_R_NO_MATCHING_CHOICE_TYPE = 143; + ASN1_R_NO_MULTIPART_BODY_FAILURE = 210; + ASN1_R_NO_MULTIPART_BOUNDARY = 211; + ASN1_R_NO_SIG_CONTENT_TYPE = 212; + ASN1_R_NULL_IS_WRONG_LENGTH = 144; + ASN1_R_OBJECT_NOT_ASCII_FORMAT = 191; + ASN1_R_ODD_NUMBER_OF_CHARS = 145; + ASN1_R_SECOND_NUMBER_TOO_LARGE = 147; + ASN1_R_SEQUENCE_LENGTH_MISMATCH = 148; + ASN1_R_SEQUENCE_NOT_CONSTRUCTED = 149; + ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG = 192; + ASN1_R_SHORT_LINE = 150; + ASN1_R_SIG_INVALID_MIME_TYPE = 213; + ASN1_R_STREAMING_NOT_SUPPORTED = 202; + ASN1_R_STRING_TOO_LONG = 151; + ASN1_R_STRING_TOO_SHORT = 152; + ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD = 154; + ASN1_R_TIME_NOT_ASCII_FORMAT = 193; + ASN1_R_TOO_LARGE = 223; + ASN1_R_TOO_LONG = 155; + ASN1_R_TOO_SMALL = 224; + ASN1_R_TYPE_NOT_CONSTRUCTED = 156; + ASN1_R_TYPE_NOT_PRIMITIVE = 195; + ASN1_R_UNEXPECTED_EOC = 159; + ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH = 215; + ASN1_R_UNKNOWN_FORMAT = 160; + ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM = 161; + ASN1_R_UNKNOWN_OBJECT_TYPE = 162; + ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE = 163; + ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM = 199; + ASN1_R_UNKNOWN_TAG = 194; + ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE = 164; + ASN1_R_UNSUPPORTED_CIPHER = 228; + ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE = 167; + ASN1_R_UNSUPPORTED_TYPE = 196; + ASN1_R_WRONG_INTEGER_TYPE = 225; + ASN1_R_WRONG_PUBLIC_KEY_TYPE = 200; + ASN1_R_WRONG_TAG = 168; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_ASN1_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_ASN1_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_ASN1_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_ASN1_strings := LoadFunction('ERR_load_ASN1_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_ASN1_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1t.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1t.pas new file mode 100644 index 000000000..9c5d42099 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asn1t.pas @@ -0,0 +1,1059 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_asn1t.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_asn1t.h2pas + and this file regenerated. IdOpenSSLHeaders_asn1t.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_asn1t; + +interface + +// Headers for OpenSSL 1.1.1 +// asn1t.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +type + // moved from asn1 + ASN1_ITEM_EXP = ASN1_ITEM; + PASN1_ITEM_EXP = ^ASN1_ITEM_EXP; + +//# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION +// +///// Macro to obtain ASN1_ADB pointer from a type (only used internally) /// +//# define ASN1_ADB_ptr(iptr) ((const ASN1_ADB //)(iptr)) +// +///// Macros for start and end of ASN1_ITEM definition /// +// +//# define ASN1_ITEM_start(itname) \ +// const ASN1_ITEM itname##_it = { +// +//# define static_ASN1_ITEM_start(itname) \ +// static const ASN1_ITEM itname##_it = { +// +//# define ASN1_ITEM_end(itname) \ +// }; +// +//# else +// +///// Macro to obtain ASN1_ADB pointer from a type (only used internally) /// +//# define ASN1_ADB_ptr(iptr) ((const ASN1_ADB //)((iptr)())) +// +///// Macros for start and end of ASN1_ITEM definition /// +// +//# define ASN1_ITEM_start(itname) \ +// const ASN1_ITEM // itname##_it(void) \ +// { \ +// static const ASN1_ITEM local_it = { +// +//# define static_ASN1_ITEM_start(itname) \ +// static ASN1_ITEM_start(itname) +// +//# define ASN1_ITEM_end(itname) \ +// }; \ +// return &local_it; \ +// } +// +//# endif +// +///// Macros to aid ASN1 template writing /// +// +// ASN1_ITEM_TEMPLATE(tname) \ +// static const PASN1_TEMPLATE tname##_item_tt +// +// ASN1_ITEM_TEMPLATE_END(tname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_PRIMITIVE,\ +// -1,\ +// &tname##_item_tt,\ +// 0,\ +// NULL,\ +// 0,\ +// #tname \ +// ASN1_ITEM_end(tname) +// static_ASN1_ITEM_TEMPLATE_END(tname) \ +// ;\ +// static_ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_PRIMITIVE,\ +// -1,\ +// &tname##_item_tt,\ +// 0,\ +// NULL,\ +// 0,\ +// #tname \ +// ASN1_ITEM_end(tname) +// +///// This is a ASN1 type which just embeds a template /// +// +/////- +// // This pair helps declare a SEQUENCE. We can do: +// // +// // ASN1_SEQUENCE(stname) = { +// // ... SEQUENCE components ... +// // } ASN1_SEQUENCE_END(stname) +// // +// // This will produce an ASN1_ITEM called stname_it +// // for a structure called stname. +// // +// // If you want the same structure but a different +// // name then use: +// // +// // ASN1_SEQUENCE(itname) = { +// // ... SEQUENCE components ... +// // } ASN1_SEQUENCE_END_name(stname, itname) +// // +// // This will create an item called itname_it using +// // a structure called stname. +// /// +// +// ASN1_SEQUENCE(tname) \ +// static const PASN1_TEMPLATE tname##_seq_tt[] +// +// ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname) +// +// static_ASN1_SEQUENCE_END(stname) static_ASN1_SEQUENCE_END_name(stname, stname) +// +// ASN1_SEQUENCE_END_name(stname, tname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(stname),\ +// #tname \ +// ASN1_ITEM_end(tname) +// +// static_ASN1_SEQUENCE_END_name(stname, tname) \ +// ;\ +// static_ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +// ASN1_NDEF_SEQUENCE(tname) \ +// ASN1_SEQUENCE(tname) +// +// ASN1_NDEF_SEQUENCE_cb(tname, cb) \ +// ASN1_SEQUENCE_cb(tname, cb) +// +// ASN1_SEQUENCE_cb(tname, cb) \ +// static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \ +// ASN1_SEQUENCE(tname) +// +// ASN1_BROKEN_SEQUENCE(tname) \ +// static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_BROKEN, 0, 0, 0, 0}; \ +// ASN1_SEQUENCE(tname) +// +// ASN1_SEQUENCE_ref(tname, cb) \ +// static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_REFCOUNT, offsetof(tname, references), offsetof(tname, lock), cb, 0}; \ +// ASN1_SEQUENCE(tname) +// +// ASN1_SEQUENCE_enc(tname, enc, cb) \ +// static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_ENCODING, 0, 0, cb, offsetof(tname, enc)}; \ +// ASN1_SEQUENCE(tname) +// +// ASN1_NDEF_SEQUENCE_END(tname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_NDEF_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(tname),\ +// #tname \ +// ASN1_ITEM_end(tname) +// static_ASN1_NDEF_SEQUENCE_END(tname) \ +// ;\ +// static_ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_NDEF_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(tname),\ +// #tname \ +// ASN1_ITEM_end(tname) +// +// ASN1_BROKEN_SEQUENCE_END(stname) ASN1_SEQUENCE_END_ref(stname, stname) +// static_ASN1_BROKEN_SEQUENCE_END(stname) \ +// static_ASN1_SEQUENCE_END_ref(stname, stname) +// +// ASN1_SEQUENCE_END_enc(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname) +// +// ASN1_SEQUENCE_END_cb(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname) +// static_ASN1_SEQUENCE_END_cb(stname, tname) static_ASN1_SEQUENCE_END_ref(stname, tname) +// +// ASN1_SEQUENCE_END_ref(stname, tname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// &tname##_aux,\ +// sizeof(stname),\ +// #tname \ +// ASN1_ITEM_end(tname) +// static_ASN1_SEQUENCE_END_ref(stname, tname) \ +// ;\ +// static_ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// &tname##_aux,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +// ASN1_NDEF_SEQUENCE_END_cb(stname, tname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_NDEF_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// &tname##_aux,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +/////- +// // This pair helps declare a CHOICE type. We can do: +// // +// // ASN1_CHOICE(chname) = { +// // ... CHOICE options ... +// // ASN1_CHOICE_END(chname) +// // +// // This will produce an ASN1_ITEM called chname_it +// // for a structure called chname. The structure +// // definition must look like this: +// // typedef struct { +// // int type; +// // union { +// // ASN1_SOMETHING //opt1; +// // ASN1_SOMEOTHER //opt2; +// // } value; +// // } chname; +// // +// // the name of the selector must be 'type'. +// // to use an alternative selector name use the +// // ASN1_CHOICE_END_selector() version. +// /// +// +// ASN1_CHOICE(tname) \ +// static const PASN1_TEMPLATE tname##_ch_tt[] +// +// ASN1_CHOICE_cb(tname, cb) \ +// static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \ +// ASN1_CHOICE(tname) +// +// ASN1_CHOICE_END(stname) ASN1_CHOICE_END_name(stname, stname) +// +// static_ASN1_CHOICE_END(stname) static_ASN1_CHOICE_END_name(stname, stname) +// +// ASN1_CHOICE_END_name(stname, tname) ASN1_CHOICE_END_selector(stname, tname, type) +// +// static_ASN1_CHOICE_END_name(stname, tname) static_ASN1_CHOICE_END_selector(stname, tname, type) +// +// ASN1_CHOICE_END_selector(stname, tname, selname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_CHOICE,\ +// offsetof(stname,selname) ,\ +// tname##_ch_tt,\ +// sizeof(tname##_ch_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +// static_ASN1_CHOICE_END_selector(stname, tname, selname) \ +// ;\ +// static_ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_CHOICE,\ +// offsetof(stname,selname) ,\ +// tname##_ch_tt,\ +// sizeof(tname##_ch_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +// ASN1_CHOICE_END_cb(stname, tname, selname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_CHOICE,\ +// offsetof(stname,selname) ,\ +// tname##_ch_tt,\ +// sizeof(tname##_ch_tt) / sizeof(PASN1_TEMPLATE),\ +// &tname##_aux,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +///// This helps with the template wrapper form of ASN1_ITEM /// +// +// ASN1_EX_TEMPLATE_TYPE(flags, tag, name, type) { \ +// (flags), (tag), 0,\ +// #name, ASN1_ITEM_ref(type) } +// +///// These help with SEQUENCE or CHOICE components /// +// +///// used to declare other types /// +// +// ASN1_EX_TYPE(flags, tag, stname, field, type) { \ +// (flags), (tag), offsetof(stname, field),\ +// #field, ASN1_ITEM_ref(type) } +// +///// implicit and explicit helper macros /// +// +// ASN1_IMP_EX(stname, field, type, tag, ex) \ +// ASN1_EX_TYPE(ASN1_TFLG_IMPLICIT | (ex), tag, stname, field, type) +// +// ASN1_EXP_EX(stname, field, type, tag, ex) \ +// ASN1_EX_TYPE(ASN1_TFLG_EXPLICIT | (ex), tag, stname, field, type) +// +///// Any defined by macros: the field used is in the table itself /// +// +//# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION +//# define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, (const ASN1_ITEM //)&(tblname##_adb) } +//# define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, (const ASN1_ITEM //)&(tblname##_adb) } +//# else +//# define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, tblname##_adb } +//# define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, tblname##_adb } +//# endif +///// Plain simple type /// +// ASN1_SIMPLE(stname, field, type) ASN1_EX_TYPE(0,0, stname, field, type) +///// Embedded simple type /// +// ASN1_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_EMBED,0, stname, field, type) +// +///// OPTIONAL simple type /// +// ASN1_OPT(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL, 0, stname, field, type) +// ASN1_OPT_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED, 0, stname, field, type) +// +///// IMPLICIT tagged simple type /// +// ASN1_IMP(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, 0) +// ASN1_IMP_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_EMBED) +// +///// IMPLICIT tagged OPTIONAL simple type /// +// ASN1_IMP_OPT(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL) +// ASN1_IMP_OPT_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED) +// +///// Same as above but EXPLICIT /// +// +// ASN1_EXP(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, 0) +// ASN1_EXP_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_EMBED) +// ASN1_EXP_OPT(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL) +// ASN1_EXP_OPT_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED) +// +///// SEQUENCE OF type /// +// ASN1_SEQUENCE_OF(stname, field, type) \ +// ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, stname, field, type) +// +///// OPTIONAL SEQUENCE OF /// +// ASN1_SEQUENCE_OF_OPT(stname, field, type) \ +// ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type) +// +///// Same as above but for SET OF /// +// +// ASN1_SET_OF(stname, field, type) \ +// ASN1_EX_TYPE(ASN1_TFLG_SET_OF, 0, stname, field, type) +// +// ASN1_SET_OF_OPT(stname, field, type) \ +// ASN1_EX_TYPE(ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type) +// +///// Finally compound types of SEQUENCE, SET, IMPLICIT, EXPLICIT and OPTIONAL /// +// +// ASN1_IMP_SET_OF(stname, field, type, tag) \ +// ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF) +// +// ASN1_EXP_SET_OF(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF) +// +// ASN1_IMP_SET_OF_OPT(stname, field, type, tag) \ +// ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL) +// +// ASN1_EXP_SET_OF_OPT(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL) +// +// ASN1_IMP_SEQUENCE_OF(stname, field, type, tag) \ +// ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF) +// +// ASN1_IMP_SEQUENCE_OF_OPT(stname, field, type, tag) \ +// ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL) +// +// ASN1_EXP_SEQUENCE_OF(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF) +// +// ASN1_EXP_SEQUENCE_OF_OPT(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL) +// +///// EXPLICIT using indefinite length constructed form /// +// ASN1_NDEF_EXP(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_NDEF) +// +///// EXPLICIT OPTIONAL using indefinite length constructed form /// +// ASN1_NDEF_EXP_OPT(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_NDEF) +// +///// Macros for the ASN1_ADB structure /// +// +// ASN1_ADB(name) \ +// static const ASN1_ADB_TABLE name##_adbtbl[] +// +//# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION +// +//# define ASN1_ADB_END(name, flags, field, adb_cb, def, none) \ +// ;\ +// static const ASN1_ADB name##_adb = {\ +// flags,\ +// offsetof(name, field),\ +// adb_cb,\ +// name##_adbtbl,\ +// sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\ +// def,\ +// none\ +// } +// +//# else +// +//# define ASN1_ADB_END(name, flags, field, adb_cb, def, none) \ +// ;\ +// static const ASN1_ITEM //name##_adb(void) \ +// { \ +// static const ASN1_ADB internal_adb = \ +// {\ +// flags,\ +// offsetof(name, field),\ +// adb_cb,\ +// name##_adbtbl,\ +// sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\ +// def,\ +// none\ +// }; \ +// return (const ASN1_ITEM //) &internal_adb; \ +// } \ +// void dummy_function(void) +// +//# endif +// +// ADB_ENTRY(val, template) {val, template} +// +// ASN1_ADB_TEMPLATE(name) \ +// static const PASN1_TEMPLATE name##_tt +// +///// +// // This is the ASN1 template structure that defines a wrapper round the +// // actual type. It determines the actual position of the field in the value +// // structure, various flags such as OPTIONAL and the field name. +// /// + +type + ASN1_TEMPLATE_st = record + flags: TIdC_ULONG; + tag: TIdC_LONG; + offset: TIdC_ULONG; + fieldname: PIdAnsiChar; + item: PASN1_ITEM_EXP; + end; + ASN1_TEMPLATE = ASN1_TEMPLATE_st; + PASN1_TEMPLATE = ^ASN1_TEMPLATE; + +///// Macro to extract ASN1_ITEM and ASN1_ADB pointer from PASN1_TEMPLATE /// +// +// ASN1_TEMPLATE_item(t) (t->item_ptr) +// ASN1_TEMPLATE_adb(t) (t->item_ptr) + + adb_cb_callback = function(psel: PIdC_LONG): TIdC_INT; + + ASN1_ADB_TABLE_st = record + value: TIdC_LONG; + tt: PASN1_TEMPLATE; + end; + + ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; + PASN1_ADB_TABLE = ^ASN1_ADB_TABLE; + + ASN1_ADB_st = record + flags: TIdC_ULONG; + offset: TIdC_ULONG; + adb_cb: adb_cb_callback; + tbl: PASN1_ADB_TABLE; + tblcount: TIdC_LONG; + default_tt: PASN1_TEMPLATE; + null_tt: PASN1_TEMPLATE; + end; + ASN1_ADB = ASN1_ADB_st; + +const +// template flags // + +// Field is optional // + ASN1_TFLG_OPTIONAL = $1; + +// Field is a SET OF // + ASN1_TFLG_SET_OF = ($1 shl 1); + +// Field is a SEQUENCE OF // + ASN1_TFLG_SEQUENCE_OF = ($2 shl 1); + +// +// Special case: this refers to a SET OF that will be sorted into DER order +// when encoded /and/ the corresponding STACK will be modified to match the +// new order. + // + ASN1_TFLG_SET_ORDER = ($3 shl 1); + +// Mask for SET OF or SEQUENCE OF // + ASN1_TFLG_SK_MASK = ($3 shl 1); + +// +// These flags mean the tag should be taken from the tag field. If EXPLICIT +// then the underlying type is used for the inner tag. + // + +// IMPLICIT tagging // + ASN1_TFLG_IMPTAG = ($1 shl 3); + +// EXPLICIT tagging, inner tag from underlying type // + ASN1_TFLG_EXPTAG = ($2 shl 3); + + ASN1_TFLG_TAG_MASK = ($3 shl 3); + +// context specific IMPLICIT // +// ASN1_TFLG_IMPLICIT (ASN1_TFLG_IMPTAG|ASN1_TFLG_CONTEXT) + +// context specific EXPLICIT // +// ASN1_TFLG_EXPLICIT (ASN1_TFLG_EXPTAG|ASN1_TFLG_CONTEXT) + +// +// If tagging is in force these determine the type of tag to use. Otherwise +// the tag is determined by the underlying type. These values reflect the +// actual octet format. + // + +// Universal tag // + ASN1_TFLG_UNIVERSAL = ($0 shl 6); +// Application tag // + ASN1_TFLG_APPLICATION = ($1 shl 6); +// Context specific tag // + ASN1_TFLG_CONTEXT = ($2 shl 6); +// Private tag // + ASN1_TFLG_PRIVATE = ($3 shl 6); + + ASN1_TFLG_TAG_CLASS = ($3 shl 6); + +// +// These are for ANY DEFINED BY type. In this case the 'item' field points to +// an ASN1_ADB structure which contains a table of values to decode the +// relevant type + // + + ASN1_TFLG_ADB_MASK = ($3 shl 8); + + ASN1_TFLG_ADB_OID = ($1 shl 8); + + ASN1_TFLG_ADB_INT = ($1 shl 9); + +// +// This flag when present in a SEQUENCE OF, SET OF or EXPLICIT causes +// indefinite length constructed encoding to be used if required. + // + + ASN1_TFLG_NDEF = ($1 shl 11); + +// Field is embedded and not a pointer // + ASN1_TFLG_EMBED = ($1 shl 12); + +// This is the actual ASN1 item itself // + +type + ASN1_ITEM_st = record + itype: AnsiChar; + utype: TIdC_LONG; + template: PASN1_TEMPLATE; + tcount: TIdC_LONG; + funcs: Pointer; + size: TIdC_LONG; + sname: PIdAnsiChar; + end; + +//- + // These are values for the itype field and + // determine how the type is interpreted. + // + // For PRIMITIVE types the underlying type + // determines the behaviour if items is NULL. + // + // Otherwise templates must contain a single + // template and the type is treated in the + // same way as the type specified in the template. + // + // For SEQUENCE types the templates field points + // to the members, the size field is the + // structure size. + // + // For CHOICE types the templates field points + // to each possible member (typically a union) + // and the 'size' field is the offset of the + // selector. + // + // The 'funcs' field is used for application + // specific functions. + // + // The EXTERN type uses a new style d2i/i2d. + // The new style should be used where possible + // because it avoids things like the d2i IMPLICIT + // hack. + // + // MSTRING is a multiple string type, it is used + // for a CHOICE of character strings where the + // actual strings all occupy an ASN1_STRING + // structure. In this case the 'utype' field + // has a special meaning, it is used as a mask + // of acceptable types using the B_ASN1 constants. + // + // NDEF_SEQUENCE is the same as SEQUENCE except + // that it will use indefinite length constructed + // encoding if requested. + // + // +const + ASN1_ITYPE_PRIMITIVE = $0; + + ASN1_ITYPE_SEQUENCE = $1; + + ASN1_ITYPE_CHOICE = $2; + + ASN1_ITYPE_EXTERN = $4; + + ASN1_ITYPE_MSTRING = $5; + + ASN1_ITYPE_NDEF_SEQUENCE = $6; + +// + // Cache for ASN1 tag and length, so we don't keep re-reading it for things + // like CHOICE + // + +type + ASN1_TLC_st = record + valid: AnsiChar; + ret: TIdC_INT; + plen: TIdC_LONG; + ptag: TIdC_INT; + pclass: TIdC_INT; + hdrlen: TIdC_INT; + end; + ASN1_TLC = ASN1_TLC_st; + PASN1_TLC = ^ASN1_TLC; + + ASN1_ex_d2i = function(pval: PPASN1_VALUE; const AIn: PPByte; len: TIdC_LONG; + const it: PASN1_ITEM; tag: TIdC_INT; aclass: TIdC_INT; + opt: AnsiChar; ctx: PASN1_TLC): TIdC_INT; + PASN1_ex_d2i = ^ASN1_ex_d2i; + + ASN1_ex_i2d = function(pval: PPASN1_VALUE; AOut: PPByte; const it: PASN1_ITEM; + tag: TIdC_INT; aclass: TIdC_INT): TIdC_INT; + PASN1_ex_i2d = ^ASN1_ex_i2d; + + ASN1_ex_new_func = function(pval: PPASN1_VALUE; const it: PASN1_ITEM): TIdC_INT; + PASN1_ex_new_func = ^ASN1_ex_new_func; + + ASN1_ex_free_func = procedure(pval: PPASN1_VALUE; const it: PASN1_ITEM); + PASN1_ex_free_func = ^ASN1_ex_free_func; + + ASN1_ex_print_func = function(AOut: PBIO; pval: PPASN1_VALUE; indent: TIdC_INT; + const fname: PIdAnsiChar; const pctx: PASN1_PCTX): TIdC_INT; + PASN1_ex_print_func = ^ASN1_ex_print_func; + + ASN1_primitive_i2c = function(pval: PPASN1_VALUE; const cont: PIdAnsiChar; + puttype: PIdC_INT; const it: PASN1_ITEM): TIdC_INT; + PASN1_primitive_i2c = ^ASN1_primitive_i2c; + + ASN1_primitive_c2i = function(pval: PPASN1_VALUE; const cont: PByte; + len: TIdC_INT; utype: TIdC_INT; free_cont: PIdAnsiChar; + const it: PASN1_ITEM): TIdC_INT; + PASN1_primitive_c2i = ^ASN1_primitive_c2i; + + ASN1_primitive_print = function(AOut: PBIO; pval: PPASN1_VALUE; + const it: PASN1_ITEM; indent: TIdC_INT; const pctx: PASN1_PCTX): TIdC_INT; + PASN1_primitive_print = ^ASN1_primitive_print; + + ASN1_EXTERN_FUNCS_st = record + app_data: Pointer; + asn1_ex_new: PASN1_ex_new_func; + asn1_ex_free: PASN1_ex_free_func; + asn1_ex_clear: PASN1_ex_free_func; + asn1_ex_d2i: PASN1_ex_d2i; + asn1_ex_i2d: PASN1_ex_i2d; + asn1_ex_print: PASN1_ex_print_func; + end; + + ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; + + ASN1_PRIMITIVE_FUNCS_st = record + app_data: Pointer; + flags: TIdC_ULONG; + prim_new: PASN1_ex_new_func; + prim_free: PASN1_ex_free_func; + prim_clear: PASN1_ex_free_func; + prim_c2i: PASN1_primitive_c2i; + prim_i2c: PASN1_primitive_i2c; + prim_print: PASN1_primitive_print; + end; + + ASN1_PRIMITIVE_FUNCS = ASN1_PRIMITIVE_FUNCS_st; + +// + // This is the ASN1_AUX structure: it handles various miscellaneous + // requirements. For example the use of reference counts and an informational + // callback. The "informational callback" is called at various points during + // the ASN1 encoding and decoding. It can be used to provide minor + // customisation of the structures used. This is most useful where the + // supplied routines //almost// do the right thing but need some extra help at + // a few points. If the callback returns zero then it is assumed a fatal + // error has occurred and the main operation should be abandoned. If major + // changes in the default behaviour are required then an external type is + // more appropriate. + // + + ASN1_aux_cb = function(operation: TIdC_INT; AIn: PASN1_VALUE; const it: PASN1_ITEM; exarg: Pointer): TIdC_INT; + PASN1_aux_cb = ^ASN1_aux_cb; + + ASN1_AUX_st = record + app_data: Pointer; + flags: TIdC_INT; + ref_offset: TIdC_INT; + ref_lock: TIdC_INT; + asn1_cb: PASN1_aux_cb; + enc_offset: TidC_INT; + end; + + ASN1_AUX = ASN1_AUX_st; + +// For print related callbacks exarg points to this structure + + ASN1_PRINT_ARG_st = record + AOut: PBIO; + indent: TIdC_INT; + pctx: PASN1_PCTX; + end; + + ASN1_PRINT_ARG = ASN1_PRINT_ARG_st; + +// For streaming related callbacks exarg points to this structure + ASN1_STREAM_ARG_st = record + // BIO to stream through + FOut: PBIO; + // BIO with filters appended + ndef_bio: PBIO; + // Streaming I/O boundary + boundary: PPByte; + end; + + ASN1_STREAM_ARG = ASN1_STREAM_ARG_st; + +const +/// Flags in ASN1_AUX /// + +/// Use a reference count /// + ASN1_AFLG_REFCOUNT = 1; +/// Save the encoding of structure (useful for signatures) /// + ASN1_AFLG_ENCODING = 2; +/// The Sequence length is invalid /// + ASN1_AFLG_BROKEN = 4; + +/// operation values for asn1_cb /// + + ASN1_OP_NEW_PRE = 0; + ASN1_OP_NEW_POST = 1; + ASN1_OP_FREE_PRE = 2; + ASN1_OP_FREE_POST = 3; + ASN1_OP_D2I_PRE = 4; + ASN1_OP_D2I_POST = 5; + ASN1_OP_I2D_PRE = 6; + ASN1_OP_I2D_POST = 7; + ASN1_OP_PRINT_PRE = 8; + ASN1_OP_PRINT_POST = 9; + ASN1_OP_STREAM_PRE = 10; + ASN1_OP_STREAM_POST = 11; + ASN1_OP_DETACHED_PRE = 12; + ASN1_OP_DETACHED_POST = 13; + +///* Macro to implement a primitive type */ +//# define IMPLEMENT_ASN1_TYPE(stname) IMPLEMENT_ASN1_TYPE_ex(stname, stname, 0) +//# define IMPLEMENT_ASN1_TYPE_ex(itname, vname, ex) \ +// ASN1_ITEM_start(itname) \ +// ASN1_ITYPE_PRIMITIVE, V_##vname, NULL, 0, NULL, ex, #itname \ +// ASN1_ITEM_end(itname) +// +///* Macro to implement a multi string type */ +//# define IMPLEMENT_ASN1_MSTRING(itname, mask) \ +// ASN1_ITEM_start(itname) \ +// ASN1_ITYPE_MSTRING, mask, NULL, 0, NULL, sizeof(ASN1_STRING), #itname \ +// ASN1_ITEM_end(itname) +// +//# define IMPLEMENT_EXTERN_ASN1(sname, tag, fptrs) \ +// ASN1_ITEM_start(sname) \ +// ASN1_ITYPE_EXTERN, \ +// tag, \ +// NULL, \ +// 0, \ +// &fptrs, \ +// 0, \ +// #sname \ +// ASN1_ITEM_end(sname) +// +///* Macro to implement standard functions in terms of ASN1_ITEM structures */ +// +//# define IMPLEMENT_ASN1_FUNCTIONS(stname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname) +// +//# define IMPLEMENT_ASN1_FUNCTIONS_name(stname, itname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, itname) +// +//# define IMPLEMENT_ASN1_FUNCTIONS_ENCODE_name(stname, itname) \ +// IMPLEMENT_ASN1_FUNCTIONS_ENCODE_fname(stname, itname, itname) +// +//# define IMPLEMENT_STATIC_ASN1_ALLOC_FUNCTIONS(stname) \ +// IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(static, stname, stname, stname) +// +//# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS(stname) \ +// IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, stname, stname) +// +//# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(pre, stname, itname, fname) \ +// pre stname *fname##_new(void) \ +// { \ +// return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \ +// } \ +// pre void fname##_free(stname *a) \ +// { \ +// ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \ +// } +// +//# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) \ +// stname *fname##_new(void) \ +// { \ +// return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \ +// } \ +// void fname##_free(stname *a) \ +// { \ +// ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \ +// } +// +//# define IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, fname) \ +// IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \ +// IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) +// +//# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \ +// stname *d2i_##fname(stname **a, const unsigned char **in, long len) \ +// { \ +// return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\ +// } \ +// int i2d_##fname(stname *a, unsigned char **out) \ +// { \ +// return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\ +// } +// +//# define IMPLEMENT_ASN1_NDEF_FUNCTION(stname) \ +// int i2d_##stname##_NDEF(stname *a, unsigned char **out) \ +// { \ +// return ASN1_item_ndef_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(stname));\ +// } +// +//# define IMPLEMENT_STATIC_ASN1_ENCODE_FUNCTIONS(stname) \ +// static stname *d2i_##stname(stname **a, \ +// const unsigned char **in, long len) \ +// { \ +// return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, \ +// ASN1_ITEM_rptr(stname)); \ +// } \ +// static int i2d_##stname(stname *a, unsigned char **out) \ +// { \ +// return ASN1_item_i2d((ASN1_VALUE *)a, out, \ +// ASN1_ITEM_rptr(stname)); \ +// } +// +///* +// * This includes evil casts to remove const: they will go away when full ASN1 +// * constification is done. +// */ +//# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \ +// stname *d2i_##fname(stname **a, const unsigned char **in, long len) \ +// { \ +// return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\ +// } \ +// int i2d_##fname(const stname *a, unsigned char **out) \ +// { \ +// return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\ +// } +// +//# define IMPLEMENT_ASN1_DUP_FUNCTION(stname) \ +// stname * stname##_dup(stname *x) \ +// { \ +// return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \ +// } +// +//# define IMPLEMENT_ASN1_PRINT_FUNCTION(stname) \ +// IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, stname, stname) +// +//# define IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, itname, fname) \ +// int fname##_print_ctx(BIO *out, stname *x, int indent, \ +// const ASN1_PCTX *pctx) \ +// { \ +// return ASN1_item_print(out, (ASN1_VALUE *)x, indent, \ +// ASN1_ITEM_rptr(itname), pctx); \ +// } +// +//# define IMPLEMENT_ASN1_FUNCTIONS_const(name) \ +// IMPLEMENT_ASN1_FUNCTIONS_const_fname(name, name, name) +// +//# define IMPLEMENT_ASN1_FUNCTIONS_const_fname(stname, itname, fname) \ +// IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \ +// IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) +// +//* external definitions for primitive types */ + +//DECLARE_ASN1_ITEM(ASN1_BOOLEAN) +//DECLARE_ASN1_ITEM(ASN1_TBOOLEAN) +//DECLARE_ASN1_ITEM(ASN1_FBOOLEAN) +//DECLARE_ASN1_ITEM(ASN1_SEQUENCE) +//DECLARE_ASN1_ITEM(CBIGNUM) +//DECLARE_ASN1_ITEM(BIGNUM) +//DECLARE_ASN1_ITEM(INT32) +//DECLARE_ASN1_ITEM(ZINT32) +//DECLARE_ASN1_ITEM(UINT32) +//DECLARE_ASN1_ITEM(ZUINT32) +//DECLARE_ASN1_ITEM(INT64) +//DECLARE_ASN1_ITEM(ZINT64) +//DECLARE_ASN1_ITEM(UINT64) +//DECLARE_ASN1_ITEM(ZUINT64) + +//# if OPENSSL_API_COMPAT < 0x10200000L +///* +// * LONG and ZLONG are strongly discouraged for use as stored data, as the +// * underlying C type (long) differs in size depending on the architecture. +// * They are designed with 32-bit longs in mind. +// */ +//DECLARE_ASN1_ITEM(LONG) +//DECLARE_ASN1_ITEM(ZLONG) +//# endif + +//DEFINE_STACK_OF(ASN1_VALUE) + +//* Functions used internally by the ASN1 code */ + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ASN1_item_ex_new} + {$EXTERNALSYM ASN1_item_ex_free} + {$EXTERNALSYM ASN1_item_ex_d2i} + {$EXTERNALSYM ASN1_item_ex_i2d} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ASN1_item_ex_new: function(pval: PPASN1_VALUE; const it: PASN1_ITEM): TIdC_INT; cdecl = nil; + ASN1_item_ex_free: procedure(pval: PPASN1_VALUE; const it: PASN1_ITEM); cdecl = nil; + + ASN1_item_ex_d2i: function(pval: PPASN1_VALUE; const AIn: PPByte; len: TIdC_LONG; const it: PASN1_ITEM; tag: TIdC_INT; aclass: TIdC_INT; opt: AnsiChar; ctx: PASN1_TLC): TIdC_INT; cdecl = nil; + + ASN1_item_ex_i2d: function(pval: PPASN1_VALUE; AOut: PPByte; const it: PASN1_ITEM; tag: TIdC_INT; aclass: TIdC_INT): TIdC_INT; cdecl = nil; + +{$ELSE} + function ASN1_item_ex_new(pval: PPASN1_VALUE; const it: PASN1_ITEM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ASN1_item_ex_free(pval: PPASN1_VALUE; const it: PASN1_ITEM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_item_ex_d2i(pval: PPASN1_VALUE; const AIn: PPByte; len: TIdC_LONG; const it: PASN1_ITEM; tag: TIdC_INT; aclass: TIdC_INT; opt: AnsiChar; ctx: PASN1_TLC): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_item_ex_i2d(pval: PPASN1_VALUE; AOut: PPByte; const it: PASN1_ITEM; tag: TIdC_INT; aclass: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ASN1_item_ex_new := LoadFunction('ASN1_item_ex_new',AFailed); + ASN1_item_ex_free := LoadFunction('ASN1_item_ex_free',AFailed); + ASN1_item_ex_d2i := LoadFunction('ASN1_item_ex_d2i',AFailed); + ASN1_item_ex_i2d := LoadFunction('ASN1_item_ex_i2d',AFailed); +end; + +procedure Unload; +begin + ASN1_item_ex_new := nil; + ASN1_item_ex_free := nil; + ASN1_item_ex_d2i := nil; + ASN1_item_ex_i2d := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_async.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_async.pas new file mode 100644 index 000000000..8cc270fe9 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_async.pas @@ -0,0 +1,751 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_async.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_async.h2pas + and this file regenerated. IdOpenSSLHeaders_async.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_async; + +interface + +// Headers for OpenSSL 1.1.1 +// async.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + ASYNC_ERR = 0; + ASYNC_NO_JOBS = 0; + ASYNC_PAUSE = 2; + ASYNC_FINISH = 3; + +type + async_job_st = type Pointer; + ASYNC_JOB = async_job_st; + PASYNC_JOB = ^ASYNC_JOB; + PPASYNC_JOB = ^PASYNC_JOB; + + async_wait_ctx_st = type Pointer; + ASYNC_WAIT_CTX = async_wait_ctx_st; + PASYNC_WAIT_CTX = ^ASYNC_WAIT_CTX; + + OSSL_ASYNC_FD = type TIdC_INT; + POSSL_ASYNC_FD = ^OSSL_ASYNC_FD; + + ASYNC_WAIT_CTX_set_wait_fd_cleanup = procedure(v1: PASYNC_WAIT_CTX; + const v2: Pointer; v3: OSSL_ASYNC_FD; v4: Pointer); + ASYNC_start_job_cb = function(v1: Pointer): TIdC_INT; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ASYNC_init_thread} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_cleanup_thread} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_WAIT_CTX_new} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_WAIT_CTX_free} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_WAIT_CTX_set_wait_fd} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_WAIT_CTX_get_fd} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_WAIT_CTX_get_all_fds} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_WAIT_CTX_get_changed_fds} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_WAIT_CTX_clear_fd} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_is_capable} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_start_job} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_pause_job} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_get_current_job} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_get_wait_ctx} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_block_pause} {introduced 1.1.0} + {$EXTERNALSYM ASYNC_unblock_pause} {introduced 1.1.0} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ASYNC_init_thread: function(max_size: TIdC_SIZET; init_size: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASYNC_cleanup_thread: procedure; cdecl = nil; {introduced 1.1.0} + + ASYNC_WAIT_CTX_new: function: PASYNC_WAIT_CTX; cdecl = nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_free: procedure(ctx: PASYNC_WAIT_CTX); cdecl = nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_set_wait_fd: function(ctx: PASYNC_WAIT_CTX; const key: Pointer; fd: OSSL_ASYNC_FD; custom_data: Pointer; cleanup_cb: ASYNC_WAIT_CTX_set_wait_fd_cleanup): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_get_fd: function(ctx: PASYNC_WAIT_CTX; const key: Pointer; fd: POSSL_ASYNC_FD; custom_data: PPointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_get_all_fds: function(ctx: PASYNC_WAIT_CTX; fd: POSSL_ASYNC_FD; numfds: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_get_changed_fds: function(ctx: PASYNC_WAIT_CTX; addfd: POSSL_ASYNC_FD; numaddfds: PIdC_SIZET; delfd: POSSL_ASYNC_FD; numdelfds: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_clear_fd: function(ctx: PASYNC_WAIT_CTX; const key: Pointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + ASYNC_is_capable: function: TIdC_INT; cdecl = nil; {introduced 1.1.0} + + ASYNC_start_job: function(job: PPASYNC_JOB; ctx: PASYNC_WAIT_CTX; ret: PIdC_INT; func: ASYNC_start_job_cb; args: Pointer; size: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ASYNC_pause_job: function: TIdC_INT; cdecl = nil; {introduced 1.1.0} + + ASYNC_get_current_job: function: PASYNC_JOB; cdecl = nil; {introduced 1.1.0} + ASYNC_get_wait_ctx: function(job: PASYNC_JOB): PASYNC_WAIT_CTX; cdecl = nil; {introduced 1.1.0} + ASYNC_block_pause: procedure; cdecl = nil; {introduced 1.1.0} + ASYNC_unblock_pause: procedure; cdecl = nil; {introduced 1.1.0} + +{$ELSE} + function ASYNC_init_thread(max_size: TIdC_SIZET; init_size: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure ASYNC_cleanup_thread cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function ASYNC_WAIT_CTX_new: PASYNC_WAIT_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure ASYNC_WAIT_CTX_free(ctx: PASYNC_WAIT_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASYNC_WAIT_CTX_set_wait_fd(ctx: PASYNC_WAIT_CTX; const key: Pointer; fd: OSSL_ASYNC_FD; custom_data: Pointer; cleanup_cb: ASYNC_WAIT_CTX_set_wait_fd_cleanup): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASYNC_WAIT_CTX_get_fd(ctx: PASYNC_WAIT_CTX; const key: Pointer; fd: POSSL_ASYNC_FD; custom_data: PPointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASYNC_WAIT_CTX_get_all_fds(ctx: PASYNC_WAIT_CTX; fd: POSSL_ASYNC_FD; numfds: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASYNC_WAIT_CTX_get_changed_fds(ctx: PASYNC_WAIT_CTX; addfd: POSSL_ASYNC_FD; numaddfds: PIdC_SIZET; delfd: POSSL_ASYNC_FD; numdelfds: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASYNC_WAIT_CTX_clear_fd(ctx: PASYNC_WAIT_CTX; const key: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function ASYNC_is_capable: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function ASYNC_start_job(job: PPASYNC_JOB; ctx: PASYNC_WAIT_CTX; ret: PIdC_INT; func: ASYNC_start_job_cb; args: Pointer; size: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASYNC_pause_job: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function ASYNC_get_current_job: PASYNC_JOB cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ASYNC_get_wait_ctx(job: PASYNC_JOB): PASYNC_WAIT_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure ASYNC_block_pause cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure ASYNC_unblock_pause cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + ASYNC_init_thread_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_cleanup_thread_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_WAIT_CTX_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_WAIT_CTX_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_WAIT_CTX_set_wait_fd_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_WAIT_CTX_get_fd_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_WAIT_CTX_get_all_fds_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_WAIT_CTX_get_changed_fds_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_WAIT_CTX_clear_fd_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_is_capable_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_start_job_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_pause_job_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_get_current_job_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_get_wait_ctx_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_block_pause_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ASYNC_unblock_pause_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +function ERR_ASYNC_init_thread(max_size: TIdC_SIZET; init_size: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_init_thread'); +end; + + +procedure ERR_ASYNC_cleanup_thread; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_cleanup_thread'); +end; + + +function ERR_ASYNC_WAIT_CTX_new: PASYNC_WAIT_CTX; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_WAIT_CTX_new'); +end; + + +procedure ERR_ASYNC_WAIT_CTX_free(ctx: PASYNC_WAIT_CTX); +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_WAIT_CTX_free'); +end; + + +function ERR_ASYNC_WAIT_CTX_set_wait_fd(ctx: PASYNC_WAIT_CTX; const key: Pointer; fd: OSSL_ASYNC_FD; custom_data: Pointer; cleanup_cb: ASYNC_WAIT_CTX_set_wait_fd_cleanup): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_WAIT_CTX_set_wait_fd'); +end; + + +function ERR_ASYNC_WAIT_CTX_get_fd(ctx: PASYNC_WAIT_CTX; const key: Pointer; fd: POSSL_ASYNC_FD; custom_data: PPointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_WAIT_CTX_get_fd'); +end; + + +function ERR_ASYNC_WAIT_CTX_get_all_fds(ctx: PASYNC_WAIT_CTX; fd: POSSL_ASYNC_FD; numfds: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_WAIT_CTX_get_all_fds'); +end; + + +function ERR_ASYNC_WAIT_CTX_get_changed_fds(ctx: PASYNC_WAIT_CTX; addfd: POSSL_ASYNC_FD; numaddfds: PIdC_SIZET; delfd: POSSL_ASYNC_FD; numdelfds: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_WAIT_CTX_get_changed_fds'); +end; + + +function ERR_ASYNC_WAIT_CTX_clear_fd(ctx: PASYNC_WAIT_CTX; const key: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_WAIT_CTX_clear_fd'); +end; + + +function ERR_ASYNC_is_capable: TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_is_capable'); +end; + + +function ERR_ASYNC_start_job(job: PPASYNC_JOB; ctx: PASYNC_WAIT_CTX; ret: PIdC_INT; func: ASYNC_start_job_cb; args: Pointer; size: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_start_job'); +end; + + +function ERR_ASYNC_pause_job: TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_pause_job'); +end; + + +function ERR_ASYNC_get_current_job: PASYNC_JOB; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_get_current_job'); +end; + + +function ERR_ASYNC_get_wait_ctx(job: PASYNC_JOB): PASYNC_WAIT_CTX; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_get_wait_ctx'); +end; + + +procedure ERR_ASYNC_block_pause; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_block_pause'); +end; + + +procedure ERR_ASYNC_unblock_pause; +begin + EIdAPIFunctionNotPresent.RaiseException('ASYNC_unblock_pause'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ASYNC_init_thread := LoadFunction('ASYNC_init_thread',nil); {introduced 1.1.0} + ASYNC_cleanup_thread := LoadFunction('ASYNC_cleanup_thread',nil); {introduced 1.1.0} + ASYNC_WAIT_CTX_new := LoadFunction('ASYNC_WAIT_CTX_new',nil); {introduced 1.1.0} + ASYNC_WAIT_CTX_free := LoadFunction('ASYNC_WAIT_CTX_free',nil); {introduced 1.1.0} + ASYNC_WAIT_CTX_set_wait_fd := LoadFunction('ASYNC_WAIT_CTX_set_wait_fd',nil); {introduced 1.1.0} + ASYNC_WAIT_CTX_get_fd := LoadFunction('ASYNC_WAIT_CTX_get_fd',nil); {introduced 1.1.0} + ASYNC_WAIT_CTX_get_all_fds := LoadFunction('ASYNC_WAIT_CTX_get_all_fds',nil); {introduced 1.1.0} + ASYNC_WAIT_CTX_get_changed_fds := LoadFunction('ASYNC_WAIT_CTX_get_changed_fds',nil); {introduced 1.1.0} + ASYNC_WAIT_CTX_clear_fd := LoadFunction('ASYNC_WAIT_CTX_clear_fd',nil); {introduced 1.1.0} + ASYNC_is_capable := LoadFunction('ASYNC_is_capable',nil); {introduced 1.1.0} + ASYNC_start_job := LoadFunction('ASYNC_start_job',nil); {introduced 1.1.0} + ASYNC_pause_job := LoadFunction('ASYNC_pause_job',nil); {introduced 1.1.0} + ASYNC_get_current_job := LoadFunction('ASYNC_get_current_job',nil); {introduced 1.1.0} + ASYNC_get_wait_ctx := LoadFunction('ASYNC_get_wait_ctx',nil); {introduced 1.1.0} + ASYNC_block_pause := LoadFunction('ASYNC_block_pause',nil); {introduced 1.1.0} + ASYNC_unblock_pause := LoadFunction('ASYNC_unblock_pause',nil); {introduced 1.1.0} + if not assigned(ASYNC_init_thread) then + begin + {$if declared(ASYNC_init_thread_introduced)} + if LibVersion < ASYNC_init_thread_introduced then + {$if declared(FC_ASYNC_init_thread)} + ASYNC_init_thread := @FC_ASYNC_init_thread + {$else} + ASYNC_init_thread := @ERR_ASYNC_init_thread + {$ifend} + else + {$ifend} + {$if declared(ASYNC_init_thread_removed)} + if ASYNC_init_thread_removed <= LibVersion then + {$if declared(_ASYNC_init_thread)} + ASYNC_init_thread := @_ASYNC_init_thread + {$else} + {$IF declared(ERR_ASYNC_init_thread)} + ASYNC_init_thread := @ERR_ASYNC_init_thread + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_init_thread) and Assigned(AFailed) then + AFailed.Add('ASYNC_init_thread'); + end; + + + if not assigned(ASYNC_cleanup_thread) then + begin + {$if declared(ASYNC_cleanup_thread_introduced)} + if LibVersion < ASYNC_cleanup_thread_introduced then + {$if declared(FC_ASYNC_cleanup_thread)} + ASYNC_cleanup_thread := @FC_ASYNC_cleanup_thread + {$else} + ASYNC_cleanup_thread := @ERR_ASYNC_cleanup_thread + {$ifend} + else + {$ifend} + {$if declared(ASYNC_cleanup_thread_removed)} + if ASYNC_cleanup_thread_removed <= LibVersion then + {$if declared(_ASYNC_cleanup_thread)} + ASYNC_cleanup_thread := @_ASYNC_cleanup_thread + {$else} + {$IF declared(ERR_ASYNC_cleanup_thread)} + ASYNC_cleanup_thread := @ERR_ASYNC_cleanup_thread + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_cleanup_thread) and Assigned(AFailed) then + AFailed.Add('ASYNC_cleanup_thread'); + end; + + + if not assigned(ASYNC_WAIT_CTX_new) then + begin + {$if declared(ASYNC_WAIT_CTX_new_introduced)} + if LibVersion < ASYNC_WAIT_CTX_new_introduced then + {$if declared(FC_ASYNC_WAIT_CTX_new)} + ASYNC_WAIT_CTX_new := @FC_ASYNC_WAIT_CTX_new + {$else} + ASYNC_WAIT_CTX_new := @ERR_ASYNC_WAIT_CTX_new + {$ifend} + else + {$ifend} + {$if declared(ASYNC_WAIT_CTX_new_removed)} + if ASYNC_WAIT_CTX_new_removed <= LibVersion then + {$if declared(_ASYNC_WAIT_CTX_new)} + ASYNC_WAIT_CTX_new := @_ASYNC_WAIT_CTX_new + {$else} + {$IF declared(ERR_ASYNC_WAIT_CTX_new)} + ASYNC_WAIT_CTX_new := @ERR_ASYNC_WAIT_CTX_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_WAIT_CTX_new) and Assigned(AFailed) then + AFailed.Add('ASYNC_WAIT_CTX_new'); + end; + + + if not assigned(ASYNC_WAIT_CTX_free) then + begin + {$if declared(ASYNC_WAIT_CTX_free_introduced)} + if LibVersion < ASYNC_WAIT_CTX_free_introduced then + {$if declared(FC_ASYNC_WAIT_CTX_free)} + ASYNC_WAIT_CTX_free := @FC_ASYNC_WAIT_CTX_free + {$else} + ASYNC_WAIT_CTX_free := @ERR_ASYNC_WAIT_CTX_free + {$ifend} + else + {$ifend} + {$if declared(ASYNC_WAIT_CTX_free_removed)} + if ASYNC_WAIT_CTX_free_removed <= LibVersion then + {$if declared(_ASYNC_WAIT_CTX_free)} + ASYNC_WAIT_CTX_free := @_ASYNC_WAIT_CTX_free + {$else} + {$IF declared(ERR_ASYNC_WAIT_CTX_free)} + ASYNC_WAIT_CTX_free := @ERR_ASYNC_WAIT_CTX_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_WAIT_CTX_free) and Assigned(AFailed) then + AFailed.Add('ASYNC_WAIT_CTX_free'); + end; + + + if not assigned(ASYNC_WAIT_CTX_set_wait_fd) then + begin + {$if declared(ASYNC_WAIT_CTX_set_wait_fd_introduced)} + if LibVersion < ASYNC_WAIT_CTX_set_wait_fd_introduced then + {$if declared(FC_ASYNC_WAIT_CTX_set_wait_fd)} + ASYNC_WAIT_CTX_set_wait_fd := @FC_ASYNC_WAIT_CTX_set_wait_fd + {$else} + ASYNC_WAIT_CTX_set_wait_fd := @ERR_ASYNC_WAIT_CTX_set_wait_fd + {$ifend} + else + {$ifend} + {$if declared(ASYNC_WAIT_CTX_set_wait_fd_removed)} + if ASYNC_WAIT_CTX_set_wait_fd_removed <= LibVersion then + {$if declared(_ASYNC_WAIT_CTX_set_wait_fd)} + ASYNC_WAIT_CTX_set_wait_fd := @_ASYNC_WAIT_CTX_set_wait_fd + {$else} + {$IF declared(ERR_ASYNC_WAIT_CTX_set_wait_fd)} + ASYNC_WAIT_CTX_set_wait_fd := @ERR_ASYNC_WAIT_CTX_set_wait_fd + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_WAIT_CTX_set_wait_fd) and Assigned(AFailed) then + AFailed.Add('ASYNC_WAIT_CTX_set_wait_fd'); + end; + + + if not assigned(ASYNC_WAIT_CTX_get_fd) then + begin + {$if declared(ASYNC_WAIT_CTX_get_fd_introduced)} + if LibVersion < ASYNC_WAIT_CTX_get_fd_introduced then + {$if declared(FC_ASYNC_WAIT_CTX_get_fd)} + ASYNC_WAIT_CTX_get_fd := @FC_ASYNC_WAIT_CTX_get_fd + {$else} + ASYNC_WAIT_CTX_get_fd := @ERR_ASYNC_WAIT_CTX_get_fd + {$ifend} + else + {$ifend} + {$if declared(ASYNC_WAIT_CTX_get_fd_removed)} + if ASYNC_WAIT_CTX_get_fd_removed <= LibVersion then + {$if declared(_ASYNC_WAIT_CTX_get_fd)} + ASYNC_WAIT_CTX_get_fd := @_ASYNC_WAIT_CTX_get_fd + {$else} + {$IF declared(ERR_ASYNC_WAIT_CTX_get_fd)} + ASYNC_WAIT_CTX_get_fd := @ERR_ASYNC_WAIT_CTX_get_fd + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_WAIT_CTX_get_fd) and Assigned(AFailed) then + AFailed.Add('ASYNC_WAIT_CTX_get_fd'); + end; + + + if not assigned(ASYNC_WAIT_CTX_get_all_fds) then + begin + {$if declared(ASYNC_WAIT_CTX_get_all_fds_introduced)} + if LibVersion < ASYNC_WAIT_CTX_get_all_fds_introduced then + {$if declared(FC_ASYNC_WAIT_CTX_get_all_fds)} + ASYNC_WAIT_CTX_get_all_fds := @FC_ASYNC_WAIT_CTX_get_all_fds + {$else} + ASYNC_WAIT_CTX_get_all_fds := @ERR_ASYNC_WAIT_CTX_get_all_fds + {$ifend} + else + {$ifend} + {$if declared(ASYNC_WAIT_CTX_get_all_fds_removed)} + if ASYNC_WAIT_CTX_get_all_fds_removed <= LibVersion then + {$if declared(_ASYNC_WAIT_CTX_get_all_fds)} + ASYNC_WAIT_CTX_get_all_fds := @_ASYNC_WAIT_CTX_get_all_fds + {$else} + {$IF declared(ERR_ASYNC_WAIT_CTX_get_all_fds)} + ASYNC_WAIT_CTX_get_all_fds := @ERR_ASYNC_WAIT_CTX_get_all_fds + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_WAIT_CTX_get_all_fds) and Assigned(AFailed) then + AFailed.Add('ASYNC_WAIT_CTX_get_all_fds'); + end; + + + if not assigned(ASYNC_WAIT_CTX_get_changed_fds) then + begin + {$if declared(ASYNC_WAIT_CTX_get_changed_fds_introduced)} + if LibVersion < ASYNC_WAIT_CTX_get_changed_fds_introduced then + {$if declared(FC_ASYNC_WAIT_CTX_get_changed_fds)} + ASYNC_WAIT_CTX_get_changed_fds := @FC_ASYNC_WAIT_CTX_get_changed_fds + {$else} + ASYNC_WAIT_CTX_get_changed_fds := @ERR_ASYNC_WAIT_CTX_get_changed_fds + {$ifend} + else + {$ifend} + {$if declared(ASYNC_WAIT_CTX_get_changed_fds_removed)} + if ASYNC_WAIT_CTX_get_changed_fds_removed <= LibVersion then + {$if declared(_ASYNC_WAIT_CTX_get_changed_fds)} + ASYNC_WAIT_CTX_get_changed_fds := @_ASYNC_WAIT_CTX_get_changed_fds + {$else} + {$IF declared(ERR_ASYNC_WAIT_CTX_get_changed_fds)} + ASYNC_WAIT_CTX_get_changed_fds := @ERR_ASYNC_WAIT_CTX_get_changed_fds + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_WAIT_CTX_get_changed_fds) and Assigned(AFailed) then + AFailed.Add('ASYNC_WAIT_CTX_get_changed_fds'); + end; + + + if not assigned(ASYNC_WAIT_CTX_clear_fd) then + begin + {$if declared(ASYNC_WAIT_CTX_clear_fd_introduced)} + if LibVersion < ASYNC_WAIT_CTX_clear_fd_introduced then + {$if declared(FC_ASYNC_WAIT_CTX_clear_fd)} + ASYNC_WAIT_CTX_clear_fd := @FC_ASYNC_WAIT_CTX_clear_fd + {$else} + ASYNC_WAIT_CTX_clear_fd := @ERR_ASYNC_WAIT_CTX_clear_fd + {$ifend} + else + {$ifend} + {$if declared(ASYNC_WAIT_CTX_clear_fd_removed)} + if ASYNC_WAIT_CTX_clear_fd_removed <= LibVersion then + {$if declared(_ASYNC_WAIT_CTX_clear_fd)} + ASYNC_WAIT_CTX_clear_fd := @_ASYNC_WAIT_CTX_clear_fd + {$else} + {$IF declared(ERR_ASYNC_WAIT_CTX_clear_fd)} + ASYNC_WAIT_CTX_clear_fd := @ERR_ASYNC_WAIT_CTX_clear_fd + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_WAIT_CTX_clear_fd) and Assigned(AFailed) then + AFailed.Add('ASYNC_WAIT_CTX_clear_fd'); + end; + + + if not assigned(ASYNC_is_capable) then + begin + {$if declared(ASYNC_is_capable_introduced)} + if LibVersion < ASYNC_is_capable_introduced then + {$if declared(FC_ASYNC_is_capable)} + ASYNC_is_capable := @FC_ASYNC_is_capable + {$else} + ASYNC_is_capable := @ERR_ASYNC_is_capable + {$ifend} + else + {$ifend} + {$if declared(ASYNC_is_capable_removed)} + if ASYNC_is_capable_removed <= LibVersion then + {$if declared(_ASYNC_is_capable)} + ASYNC_is_capable := @_ASYNC_is_capable + {$else} + {$IF declared(ERR_ASYNC_is_capable)} + ASYNC_is_capable := @ERR_ASYNC_is_capable + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_is_capable) and Assigned(AFailed) then + AFailed.Add('ASYNC_is_capable'); + end; + + + if not assigned(ASYNC_start_job) then + begin + {$if declared(ASYNC_start_job_introduced)} + if LibVersion < ASYNC_start_job_introduced then + {$if declared(FC_ASYNC_start_job)} + ASYNC_start_job := @FC_ASYNC_start_job + {$else} + ASYNC_start_job := @ERR_ASYNC_start_job + {$ifend} + else + {$ifend} + {$if declared(ASYNC_start_job_removed)} + if ASYNC_start_job_removed <= LibVersion then + {$if declared(_ASYNC_start_job)} + ASYNC_start_job := @_ASYNC_start_job + {$else} + {$IF declared(ERR_ASYNC_start_job)} + ASYNC_start_job := @ERR_ASYNC_start_job + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_start_job) and Assigned(AFailed) then + AFailed.Add('ASYNC_start_job'); + end; + + + if not assigned(ASYNC_pause_job) then + begin + {$if declared(ASYNC_pause_job_introduced)} + if LibVersion < ASYNC_pause_job_introduced then + {$if declared(FC_ASYNC_pause_job)} + ASYNC_pause_job := @FC_ASYNC_pause_job + {$else} + ASYNC_pause_job := @ERR_ASYNC_pause_job + {$ifend} + else + {$ifend} + {$if declared(ASYNC_pause_job_removed)} + if ASYNC_pause_job_removed <= LibVersion then + {$if declared(_ASYNC_pause_job)} + ASYNC_pause_job := @_ASYNC_pause_job + {$else} + {$IF declared(ERR_ASYNC_pause_job)} + ASYNC_pause_job := @ERR_ASYNC_pause_job + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_pause_job) and Assigned(AFailed) then + AFailed.Add('ASYNC_pause_job'); + end; + + + if not assigned(ASYNC_get_current_job) then + begin + {$if declared(ASYNC_get_current_job_introduced)} + if LibVersion < ASYNC_get_current_job_introduced then + {$if declared(FC_ASYNC_get_current_job)} + ASYNC_get_current_job := @FC_ASYNC_get_current_job + {$else} + ASYNC_get_current_job := @ERR_ASYNC_get_current_job + {$ifend} + else + {$ifend} + {$if declared(ASYNC_get_current_job_removed)} + if ASYNC_get_current_job_removed <= LibVersion then + {$if declared(_ASYNC_get_current_job)} + ASYNC_get_current_job := @_ASYNC_get_current_job + {$else} + {$IF declared(ERR_ASYNC_get_current_job)} + ASYNC_get_current_job := @ERR_ASYNC_get_current_job + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_get_current_job) and Assigned(AFailed) then + AFailed.Add('ASYNC_get_current_job'); + end; + + + if not assigned(ASYNC_get_wait_ctx) then + begin + {$if declared(ASYNC_get_wait_ctx_introduced)} + if LibVersion < ASYNC_get_wait_ctx_introduced then + {$if declared(FC_ASYNC_get_wait_ctx)} + ASYNC_get_wait_ctx := @FC_ASYNC_get_wait_ctx + {$else} + ASYNC_get_wait_ctx := @ERR_ASYNC_get_wait_ctx + {$ifend} + else + {$ifend} + {$if declared(ASYNC_get_wait_ctx_removed)} + if ASYNC_get_wait_ctx_removed <= LibVersion then + {$if declared(_ASYNC_get_wait_ctx)} + ASYNC_get_wait_ctx := @_ASYNC_get_wait_ctx + {$else} + {$IF declared(ERR_ASYNC_get_wait_ctx)} + ASYNC_get_wait_ctx := @ERR_ASYNC_get_wait_ctx + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_get_wait_ctx) and Assigned(AFailed) then + AFailed.Add('ASYNC_get_wait_ctx'); + end; + + + if not assigned(ASYNC_block_pause) then + begin + {$if declared(ASYNC_block_pause_introduced)} + if LibVersion < ASYNC_block_pause_introduced then + {$if declared(FC_ASYNC_block_pause)} + ASYNC_block_pause := @FC_ASYNC_block_pause + {$else} + ASYNC_block_pause := @ERR_ASYNC_block_pause + {$ifend} + else + {$ifend} + {$if declared(ASYNC_block_pause_removed)} + if ASYNC_block_pause_removed <= LibVersion then + {$if declared(_ASYNC_block_pause)} + ASYNC_block_pause := @_ASYNC_block_pause + {$else} + {$IF declared(ERR_ASYNC_block_pause)} + ASYNC_block_pause := @ERR_ASYNC_block_pause + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_block_pause) and Assigned(AFailed) then + AFailed.Add('ASYNC_block_pause'); + end; + + + if not assigned(ASYNC_unblock_pause) then + begin + {$if declared(ASYNC_unblock_pause_introduced)} + if LibVersion < ASYNC_unblock_pause_introduced then + {$if declared(FC_ASYNC_unblock_pause)} + ASYNC_unblock_pause := @FC_ASYNC_unblock_pause + {$else} + ASYNC_unblock_pause := @ERR_ASYNC_unblock_pause + {$ifend} + else + {$ifend} + {$if declared(ASYNC_unblock_pause_removed)} + if ASYNC_unblock_pause_removed <= LibVersion then + {$if declared(_ASYNC_unblock_pause)} + ASYNC_unblock_pause := @_ASYNC_unblock_pause + {$else} + {$IF declared(ERR_ASYNC_unblock_pause)} + ASYNC_unblock_pause := @ERR_ASYNC_unblock_pause + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ASYNC_unblock_pause) and Assigned(AFailed) then + AFailed.Add('ASYNC_unblock_pause'); + end; + + +end; + +procedure Unload; +begin + ASYNC_init_thread := nil; {introduced 1.1.0} + ASYNC_cleanup_thread := nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_new := nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_free := nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_set_wait_fd := nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_get_fd := nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_get_all_fds := nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_get_changed_fds := nil; {introduced 1.1.0} + ASYNC_WAIT_CTX_clear_fd := nil; {introduced 1.1.0} + ASYNC_is_capable := nil; {introduced 1.1.0} + ASYNC_start_job := nil; {introduced 1.1.0} + ASYNC_pause_job := nil; {introduced 1.1.0} + ASYNC_get_current_job := nil; {introduced 1.1.0} + ASYNC_get_wait_ctx := nil; {introduced 1.1.0} + ASYNC_block_pause := nil; {introduced 1.1.0} + ASYNC_unblock_pause := nil; {introduced 1.1.0} +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asyncerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asyncerr.pas new file mode 100644 index 000000000..fa686139c --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_asyncerr.pas @@ -0,0 +1,120 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_asyncerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_asyncerr.h2pas + and this file regenerated. IdOpenSSLHeaders_asyncerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_asyncerr; + +interface + +// Headers for OpenSSL 1.1.1 +// asyncerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // + // ASYNC function codes. + // + ASYNC_F_ASYNC_CTX_NEW = 100; + ASYNC_F_ASYNC_INIT_THREAD = 101; + ASYNC_F_ASYNC_JOB_NEW = 102; + ASYNC_F_ASYNC_PAUSE_JOB = 103; + ASYNC_F_ASYNC_START_FUNC = 104; + ASYNC_F_ASYNC_START_JOB = 105; + ASYNC_F_ASYNC_WAIT_CTX_SET_WAIT_FD = 106; + + // + // ASYNC reason codes. + // + ASYNC_R_FAILED_TO_SET_POOL = 101; + ASYNC_R_FAILED_TO_SWAP_CONTEXT = 102; + ASYNC_R_INIT_FAILED = 105; + ASYNC_R_INVALID_POOL_SIZE = 103; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_ASYNC_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_ASYNC_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_ASYNC_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_ASYNC_strings := LoadFunction('ERR_load_ASYNC_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_ASYNC_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bio.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bio.pas new file mode 100644 index 000000000..29e7105e8 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bio.pas @@ -0,0 +1,3840 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_bio.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_bio.h2pas + and this file regenerated. IdOpenSSLHeaders_bio.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_bio; + +interface + +// Headers for OpenSSL 1.1.1 +// bio.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSlHeaders_ossl_typ; + +{$MINENUMSIZE 4} + +const + (* There are the classes of BIOs *) + BIO_TYPE_DESCRIPTOR = $0100; + BIO_TYPE_FILTER = $0200; + BIO_TYPE_SOURCE_SINK = $0400; + + (* These are the 'types' of BIOs *) + BIO_TYPE_NONE = 0; + BIO_TYPE_MEM = 1 or BIO_TYPE_SOURCE_SINK; + BIO_TYPE_FILE = 2 or BIO_TYPE_SOURCE_SINK; + + BIO_TYPE_FD = 4 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + BIO_TYPE_SOCKET = 5 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + BIO_TYPE_NULL = 6 or BIO_TYPE_SOURCE_SINK; + BIO_TYPE_SSL = 7 or BIO_TYPE_FILTER; + BIO_TYPE_MD = 8 or BIO_TYPE_FILTER; + BIO_TYPE_BUFFER = 9 or BIO_TYPE_FILTER; + BIO_TYPE_CIPHER = 10 or BIO_TYPE_FILTER; + BIO_TYPE_BASE64 = 11 or BIO_TYPE_FILTER; + BIO_TYPE_CONNECT = 12 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + BIO_TYPE_ACCEPT = 13 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + + BIO_TYPE_NBIO_TEST = 16 or BIO_TYPE_FILTER; + BIO_TYPE_NULL_FILTER = 17 or BIO_TYPE_FILTER; + BIO_TYPE_BIO = 19 or BIO_TYPE_SOURCE_SINK; + BIO_TYPE_LINEBUFFER = 20 or BIO_TYPE_FILTER; + BIO_TYPE_DGRAM = 21 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + BIO_TYPE_ASN1 = 22 or BIO_TYPE_FILTER; + BIO_TYPE_COMP = 23 or BIO_TYPE_FILTER; + BIO_TYPE_DGRAM_SCTP = 24 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + + BIO_TYPE_START = 128; + + (* + * BIO_FILENAME_READ|BIO_CLOSE to open or close on free. + * BIO_set_fp(in,stdin,BIO_NOCLOSE); + *) + BIO_NOCLOSE = $00; + BIO_CLOSE = $01; + + (* + * These are used in the following macros and are passed to BIO_ctrl() + *) + BIO_CTRL_RESET = 1;(* opt - rewind/zero etc *) + BIO_CTRL_EOF = 2;(* opt - are we at the eof *) + BIO_CTRL_INFO = 3;(* opt - extra tit-bits *) + BIO_CTRL_SET = 4;(* man - set the 'IO' type *) + BIO_CTRL_GET = 5;(* man - get the 'IO' type *) + BIO_CTRL_PUSH = 6;(* opt - internal, used to signify change *) + BIO_CTRL_POP = 7;(* opt - internal, used to signify change *) + BIO_CTRL_GET_CLOSE = 8;(* man - set the 'close' on free *) + BIO_CTRL_SET_CLOSE = 9;(* man - set the 'close' on free *) + // Added "_const" to prevent naming clashes + BIO_CTRL_PENDING_const = 10;(* opt - is their more data buffered *) + BIO_CTRL_FLUSH = 11;(* opt - 'flush' buffered output *) + BIO_CTRL_DUP = 12;(* man - extra stuff for 'duped' BIO *) + // Added "_const" to prevent naming clashes + BIO_CTRL_WPENDING_const = 13;(* opt - number of bytes still to write *) + BIO_CTRL_SET_CALLBACK = 14;(* opt - set callback function *) + BIO_CTRL_GET_CALLBACK = 15;(* opt - set callback function *) + + BIO_CTRL_PEEK = 29;(* BIO_f_buffer special *) + BIO_CTRL_SET_FILENAME = 30;(* BIO_s_file special *) + + (* dgram BIO stuff *) + BIO_CTRL_DGRAM_CONNECT = 31;(* BIO dgram special *) + BIO_CTRL_DGRAM_SET_CONNECTED = 32;(* allow for an externally connected + * socket to be passed in *) + BIO_CTRL_DGRAM_SET_RECV_TIMEOUT = 33;(* setsockopt, essentially *) + BIO_CTRL_DGRAM_GET_RECV_TIMEOUT = 34;(* getsockopt, essentially *) + BIO_CTRL_DGRAM_SET_SEND_TIMEOUT = 35;(* setsockopt, essentially *) + BIO_CTRL_DGRAM_GET_SEND_TIMEOUT = 36;(* getsockopt, essentially *) + + BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP = 37;(* flag whether the last *) + BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP = 38;(* I/O operation tiemd out *) + + BIO_CTRL_DGRAM_MTU_DISCOVER = 39;(* set DF bit on egress packets *) + + BIO_CTRL_DGRAM_QUERY_MTU = 40;(* as kernel for current MTU *) + BIO_CTRL_DGRAM_GET_FALLBACK_MTU = 47; + BIO_CTRL_DGRAM_GET_MTU = 41;(* get cached value for MTU *) + BIO_CTRL_DGRAM_SET_MTU = 42;(* set cached value for MTU. + * want to use this if asking + * the kernel fails *) + + BIO_CTRL_DGRAM_MTU_EXCEEDED = 43;(* check whether the MTU was + * exceed in the previous write + * operation *) + + BIO_CTRL_DGRAM_GET_PEER = 46; + BIO_CTRL_DGRAM_SET_PEER = 44;(* Destination for the data *) + + BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT = 45;(* Next DTLS handshake timeout + * to adjust socket timeouts *) + BIO_CTRL_DGRAM_SET_DONT_FRAG = 48; + + BIO_CTRL_DGRAM_GET_MTU_OVERHEAD = 49; + + (* Deliberately outside of OPENSSL_NO_SCTP - used in bss_dgram.c *) + BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE = 50; + (* SCTP stuff *) + BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY = 51; + BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY = 52; + BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD = 53; + BIO_CTRL_DGRAM_SCTP_GET_SNDINFO = 60; + BIO_CTRL_DGRAM_SCTP_SET_SNDINFO = 61; + BIO_CTRL_DGRAM_SCTP_GET_RCVINFO = 62; + BIO_CTRL_DGRAM_SCTP_SET_RCVINFO = 63; + BIO_CTRL_DGRAM_SCTP_GET_PRINFO = 64; + BIO_CTRL_DGRAM_SCTP_SET_PRINFO = 65; + BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN = 70; + + BIO_CTRL_DGRAM_SET_PEEK_MODE = 71; + + (* modifiers *) + BIO_FP_READ = $02; + BIO_FP_WRITE = $04; + BIO_FP_APPEND = $08; + BIO_FP_TEXT = $10; + + BIO_FLAGS_READ = $01; + BIO_FLAGS_WRITE = $02; + BIO_FLAGS_IO_SPECIAL = $04; + BIO_FLAGS_RWS = BIO_FLAGS_READ or BIO_FLAGS_WRITE or BIO_FLAGS_IO_SPECIAL; + BIO_FLAGS_SHOULD_RETRY = $08; + + BIO_FLAGS_BASE64_NO_NL = $100; + + (* + * This is used with memory BIOs: + * BIO_FLAGS_MEM_RDONLY means we shouldn't free up or change the data in any way; + * BIO_FLAGS_NONCLEAR_RST means we shouldn't clear data on reset. + *) + BIO_FLAGS_MEM_RDONLY = $200; + BIO_FLAGS_NONCLEAR_RST = $400; + + BIO_RR_SSL_X509_LOOKUP = $01; + (* Returned from the connect BIO when a connect would have blocked *) + BIO_RR_CONNECT = $02; + (* Returned from the accept BIO when an accept would have blocked *) + BIO_RR_ACCEPT = $03; + + (* These are passed by the BIO callback *) + BIO_CB_FREE = $01; + BIO_CB_READ = $02; + BIO_CB_WRITE = $03; + BIO_CB_PUTS = $04; + BIO_CB_GETS = $05; + BIO_CB_CTRL = $06; +///* +// * The callback is called before and after the underling operation, The +// * BIO_CB_RETURN flag indicates if it is after the call +// */ +//# define BIO_CB_RETURN 0x80 +//# define BIO_CB_return(a) ((a)|BIO_CB_RETURN) +//# define BIO_cb_pre(a) (!((a)&BIO_CB_RETURN)) +//# define BIO_cb_post(a) ((a)&BIO_CB_RETURN) + + BIO_C_SET_CONNECT = 100; + BIO_C_DO_STATE_MACHINE = 101; + BIO_C_SET_NBIO = 102; + (* BIO_C_SET_PROXY_PARAM = 103 *) + BIO_C_SET_FD = 104; + BIO_C_GET_FD = 105; + BIO_C_SET_FILE_PTR = 106; + BIO_C_GET_FILE_PTR = 107; + BIO_C_SET_FILENAME = 108; + BIO_C_SET_SSL = 109; + BIO_C_GET_SSL = 110; + BIO_C_SET_MD = 111; + BIO_C_GET_MD = 112; + BIO_C_GET_CIPHER_STATUS = 113; + BIO_C_SET_BUF_MEM = 114; + BIO_C_GET_BUF_MEM_PTR = 115; + BIO_C_GET_BUFF_NUM_LINES = 116; + BIO_C_SET_BUFF_SIZE = 117; + BIO_C_SET_ACCEPT = 118; + BIO_C_SSL_MODE = 119; + BIO_C_GET_MD_CTX = 120; + (* BIO_C_GET_PROXY_PARAM = 121 *) + BIO_C_SET_BUFF_READ_DATA = 122;(* data to read first *) + BIO_C_GET_CONNECT = 123; + BIO_C_GET_ACCEPT = 124; + BIO_C_SET_SSL_RENEGOTIATE_BYTES = 125; + BIO_C_GET_SSL_NUM_RENEGOTIATES = 126; + BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT = 127; + BIO_C_FILE_SEEK = 128; + BIO_C_GET_CIPHER_CTX = 129; + BIO_C_SET_BUF_MEM_EOF_RETURN = 130;(* return end of input + * value *) + BIO_C_SET_BIND_MODE = 131; + BIO_C_GET_BIND_MODE = 132; + BIO_C_FILE_TELL = 133; + BIO_C_GET_SOCKS = 134; + BIO_C_SET_SOCKS = 135; + + BIO_C_SET_WRITE_BUF_SIZE = 136;(* for BIO_s_bio *) + BIO_C_GET_WRITE_BUF_SIZE = 137; + BIO_C_MAKE_BIO_PAIR = 138; + BIO_C_DESTROY_BIO_PAIR = 139; + BIO_C_GET_WRITE_GUARANTEE = 140; + BIO_C_GET_READ_REQUEST = 141; + BIO_C_SHUTDOWN_WR = 142; + BIO_C_NREAD0 = 143; + BIO_C_NREAD = 144; + BIO_C_NWRITE0 = 145; + BIO_C_NWRITE = 146; + BIO_C_RESET_READ_REQUEST = 147; + BIO_C_SET_MD_CTX = 148; + + BIO_C_SET_PREFIX = 149; + BIO_C_GET_PREFIX = 150; + BIO_C_SET_SUFFIX = 151; + BIO_C_GET_SUFFIX = 152; + + BIO_C_SET_EX_ARG = 153; + BIO_C_GET_EX_ARG = 154; + + BIO_C_SET_CONNECT_MODE = 155; + + BIO_SOCK_REUSEADDR = $01; + BIO_SOCK_V6_ONLY = $02; + BIO_SOCK_KEEPALIVE = $04; + BIO_SOCK_NONBLOCK = $08; + BIO_SOCK_NODELAY = $10; + +type + BIO_ADDR = Pointer; // bio_addr_st + PBIO_ADDR = ^BIO_ADDR; + BIO_ADDRINFO = Pointer; // bio_addrinfo_st + PBIO_ADDRINFO = ^BIO_ADDRINFO; + PPBIO_ADDRINFO = ^PBIO_ADDRINFO; + BIO_callback_fn = function(b: PBIO; oper: TIdC_INT; const argp: PIdAnsiChar; + argi: TIdC_INT; argl: TIdC_LONG; ret: TIdC_LONG): TIdC_LONG; + BIO_callback_fn_ex = function(b: PBIO; oper: TIdC_INT; const argp: PIdAnsiChar; len: TIdC_SIZET; argi: TIdC_INT; argl: TIdC_LONG; ret: TIdC_INT; processed: PIdC_SIZET): TIdC_LONG; + BIO_METHOD = Pointer; // bio_method_st + PBIO_METHOD = ^BIO_METHOD; + BIO_info_cb = function(v1: PBIO; v2: TIdC_INT; v3: TIdC_INT): TIdC_INT; + PBIO_info_cb = ^BIO_info_cb; + asn1_ps_func = function(b: PBIO; pbuf: PPIdAnsiChar; plen: PIdC_INT; parg: Pointer): TIdC_INT; + + bio_dgram_sctp_sndinfo = record + snd_sid: TIdC_UINT16; + snd_flags: TIdC_UINT16; + snd_ppid: TIdC_UINT32; + snd_context: TIdC_UINT32; + end; + + bio_dgram_sctp_rcvinfo = record + rcv_sid: TIdC_UINT16; + rcv_ssn: TIdC_UINT16; + rcv_flags: TIdC_UINT16; + rcv_ppid: TIdC_UINT32; + rcv_tsn: TIdC_UINT32; + rcv_cumtsn: TIdC_UINT32; + rcv_context: TIdC_UINT32; + end; + + bio_dgram_sctp_prinfo = record + pr_policy: TIdC_UINT16; + pr_value: TIdC_UINT32; + end; + + BIO_hostserv_priorities = (BIO_PARSE_PRIO_HOST, BIO_PARSE_PRIO_SERV); + + BIO_lookup_type = (BIO_LOOKUP_CLIENT, BIO_LOOKUP_SERVER); + + BIO_sock_info_u = record + addr: PBIO_ADDR; + end; + PBIO_sock_info_u = ^BIO_sock_info_u; + + BIO_sock_info_type = (BIO_SOCK_INFO_ADDRESS); + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM BIO_get_new_index} {introduced 1.1.0} + {$EXTERNALSYM BIO_set_flags} + {$EXTERNALSYM BIO_test_flags} + {$EXTERNALSYM BIO_clear_flags} + {$EXTERNALSYM BIO_get_callback} + {$EXTERNALSYM BIO_set_callback} + {$EXTERNALSYM BIO_get_callback_ex} {introduced 1.1.0} + {$EXTERNALSYM BIO_set_callback_ex} {introduced 1.1.0} + {$EXTERNALSYM BIO_get_callback_arg} + {$EXTERNALSYM BIO_set_callback_arg} + {$EXTERNALSYM BIO_method_name} + {$EXTERNALSYM BIO_method_type} +// {$EXTERNALSYM PBIO} + {$EXTERNALSYM BIO_ctrl_pending} + {$EXTERNALSYM BIO_ctrl_wpending} + {$EXTERNALSYM BIO_ctrl_get_write_guarantee} + {$EXTERNALSYM BIO_ctrl_get_read_request} + {$EXTERNALSYM BIO_ctrl_reset_read_request} + {$EXTERNALSYM BIO_set_ex_data} + {$EXTERNALSYM BIO_get_ex_data} + {$EXTERNALSYM BIO_number_read} + {$EXTERNALSYM BIO_number_written} + {$EXTERNALSYM BIO_s_file} + {$EXTERNALSYM BIO_new_file} + {$EXTERNALSYM BIO_new} + {$EXTERNALSYM BIO_free} + {$EXTERNALSYM BIO_set_data} {introduced 1.1.0} + {$EXTERNALSYM BIO_get_data} {introduced 1.1.0} + {$EXTERNALSYM BIO_set_init} {introduced 1.1.0} + {$EXTERNALSYM BIO_get_init} {introduced 1.1.0} + {$EXTERNALSYM BIO_set_shutdown} {introduced 1.1.0} + {$EXTERNALSYM BIO_get_shutdown} {introduced 1.1.0} + {$EXTERNALSYM BIO_vfree} + {$EXTERNALSYM BIO_up_ref} {introduced 1.1.0} + {$EXTERNALSYM BIO_read} + {$EXTERNALSYM BIO_read_ex} {introduced 1.1.0} + {$EXTERNALSYM BIO_gets} + {$EXTERNALSYM BIO_write} + {$EXTERNALSYM BIO_write_ex} {introduced 1.1.0} + {$EXTERNALSYM BIO_puts} + {$EXTERNALSYM BIO_indent} + {$EXTERNALSYM BIO_ctrl} + {$EXTERNALSYM BIO_callback_ctrl} + {$EXTERNALSYM BIO_ptr_ctrl} + {$EXTERNALSYM BIO_int_ctrl} + {$EXTERNALSYM BIO_push} + {$EXTERNALSYM BIO_pop} + {$EXTERNALSYM BIO_free_all} + {$EXTERNALSYM BIO_find_type} + {$EXTERNALSYM BIO_next} + {$EXTERNALSYM BIO_set_next} {introduced 1.1.0} + {$EXTERNALSYM BIO_get_retry_BIO} + {$EXTERNALSYM BIO_get_retry_reason} + {$EXTERNALSYM BIO_set_retry_reason} {introduced 1.1.0} + {$EXTERNALSYM BIO_dup_chain} + {$EXTERNALSYM BIO_nread0} + {$EXTERNALSYM BIO_nread} + {$EXTERNALSYM BIO_nwrite0} + {$EXTERNALSYM BIO_nwrite} + {$EXTERNALSYM BIO_debug_callback} + {$EXTERNALSYM BIO_s_mem} + {$EXTERNALSYM BIO_s_secmem} {introduced 1.1.0} + {$EXTERNALSYM BIO_new_mem_buf} + {$EXTERNALSYM BIO_s_socket} + {$EXTERNALSYM BIO_s_connect} + {$EXTERNALSYM BIO_s_accept} + {$EXTERNALSYM BIO_s_fd} + {$EXTERNALSYM BIO_s_log} + {$EXTERNALSYM BIO_s_bio} + {$EXTERNALSYM BIO_s_null} + {$EXTERNALSYM BIO_f_null} + {$EXTERNALSYM BIO_f_buffer} + {$EXTERNALSYM BIO_f_linebuffer} {introduced 1.1.0} + {$EXTERNALSYM BIO_f_nbio_test} + {$EXTERNALSYM BIO_s_datagram} + {$EXTERNALSYM BIO_dgram_non_fatal_error} + {$EXTERNALSYM BIO_new_dgram} + {$EXTERNALSYM BIO_sock_should_retry} + {$EXTERNALSYM BIO_sock_non_fatal_error} + {$EXTERNALSYM BIO_fd_should_retry} + {$EXTERNALSYM BIO_fd_non_fatal_error} + {$EXTERNALSYM BIO_dump} + {$EXTERNALSYM BIO_dump_indent} + {$EXTERNALSYM BIO_hex_string} + {$EXTERNALSYM BIO_ADDR_new} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDR_rawmake} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDR_free} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDR_clear} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDR_family} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDR_rawaddress} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDR_rawport} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDR_hostname_string} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDR_service_string} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDR_path_string} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDRINFO_next} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDRINFO_family} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDRINFO_socktype} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDRINFO_protocol} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDRINFO_address} {introduced 1.1.0} + {$EXTERNALSYM BIO_ADDRINFO_free} {introduced 1.1.0} + {$EXTERNALSYM BIO_parse_hostserv} {introduced 1.1.0} + {$EXTERNALSYM BIO_lookup} {introduced 1.1.0} + {$EXTERNALSYM BIO_lookup_ex} {introduced 1.1.0} + {$EXTERNALSYM BIO_sock_error} + {$EXTERNALSYM BIO_socket_ioctl} + {$EXTERNALSYM BIO_socket_nbio} + {$EXTERNALSYM BIO_sock_init} + {$EXTERNALSYM BIO_set_tcp_ndelay} + {$EXTERNALSYM BIO_sock_info} {introduced 1.1.0} + {$EXTERNALSYM BIO_socket} {introduced 1.1.0} + {$EXTERNALSYM BIO_connect} {introduced 1.1.0} + {$EXTERNALSYM BIO_bind} {introduced 1.1.0} + {$EXTERNALSYM BIO_listen} {introduced 1.1.0} + {$EXTERNALSYM BIO_accept_ex} {introduced 1.1.0} + {$EXTERNALSYM BIO_closesocket} {introduced 1.1.0} + {$EXTERNALSYM BIO_new_socket} + {$EXTERNALSYM BIO_new_connect} + {$EXTERNALSYM BIO_new_accept} + {$EXTERNALSYM BIO_new_fd} + {$EXTERNALSYM BIO_new_bio_pair} + {$EXTERNALSYM BIO_copy_next_retry} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + {$EXTERNALSYM BIO_get_flags} {removed 1.0.0} + {$EXTERNALSYM BIO_set_retry_special} {removed 1.0.0} + {$EXTERNALSYM BIO_set_retry_read} {removed 1.0.0} + {$EXTERNALSYM BIO_set_retry_write} {removed 1.0.0} + {$EXTERNALSYM BIO_clear_retry_flags} {removed 1.0.0} + {$EXTERNALSYM BIO_get_retry_flags} {removed 1.0.0} + {$EXTERNALSYM BIO_should_read} {removed 1.0.0} + {$EXTERNALSYM BIO_should_write} {removed 1.0.0} + {$EXTERNALSYM BIO_should_io_special} {removed 1.0.0} + {$EXTERNALSYM BIO_retry_type} {removed 1.0.0} + {$EXTERNALSYM BIO_should_retry} {removed 1.0.0} + {$EXTERNALSYM BIO_do_connect} {removed 1.0.0} + {$EXTERNALSYM BIO_do_accept} {removed 1.0.0} + {$EXTERNALSYM BIO_do_handshake} {removed 1.0.0} + {$EXTERNALSYM BIO_get_mem_data} {removed 1.0.0} + {$EXTERNALSYM BIO_set_mem_buf} {removed 1.0.0} + {$EXTERNALSYM BIO_get_mem_ptr} {removed 1.0.0} + {$EXTERNALSYM BIO_set_mem_eof_return} {removed 1.0.0} + BIO_get_flags: function(const b: PBIO): TIdC_INT; cdecl = nil; {removed 1.0.0} + BIO_set_retry_special: procedure(b: PBIO); cdecl = nil; {removed 1.0.0} + BIO_set_retry_read: procedure(b: PBIO); cdecl = nil; {removed 1.0.0} + BIO_set_retry_write: procedure(b: PBIO); cdecl = nil; {removed 1.0.0} + +(* These are normally used internally in BIOs *) + BIO_clear_retry_flags: procedure(b: PBIO); cdecl = nil; {removed 1.0.0} + BIO_get_retry_flags: function(b: PBIO): TIdC_INT; cdecl = nil; {removed 1.0.0} + +(* These should be used by the application to tell why we should retry *) + BIO_should_read: function(b: PBIO): TIdC_INT; cdecl = nil; {removed 1.0.0} + BIO_should_write: function(b: PBIO): TIdC_INT; cdecl = nil; {removed 1.0.0} + BIO_should_io_special: function(b: PBIO): TIdC_INT; cdecl = nil; {removed 1.0.0} + BIO_retry_type: function(b: PBIO): TIdC_INT; cdecl = nil; {removed 1.0.0} + BIO_should_retry: function(b: PBIO): TIdC_INT; cdecl = nil; {removed 1.0.0} + +(* BIO_s_accept() and BIO_s_connect() *) + BIO_do_connect: function(b: PBIO): TIdC_LONG; cdecl = nil; {removed 1.0.0} + BIO_do_accept: function(b: PBIO): TIdC_LONG; cdecl = nil; {removed 1.0.0} + BIO_do_handshake: function(b: PBIO): TIdC_LONG; cdecl = nil; {removed 1.0.0} + + BIO_get_mem_data: function(b: PBIO; pp: PIdAnsiChar) : TIdC_INT; cdecl = nil; {removed 1.0.0} + BIO_set_mem_buf: function(b: PBIO; bm: PIdAnsiChar; c: TIdC_INT): TIdC_INT; cdecl = nil; {removed 1.0.0} + BIO_get_mem_ptr: function(b: PBIO; pp: PIdAnsiChar): TIdC_INT; cdecl = nil; {removed 1.0.0} + BIO_set_mem_eof_return: function(b: PBIO; v: TIdC_INT): TIdC_INT; cdecl = nil; {removed 1.0.0} + + BIO_get_new_index: function: TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_set_flags: procedure(b: PBIO; flags: TIdC_INT); cdecl = nil; + BIO_test_flags: function(const b: PBIO; flags: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_clear_flags: procedure(b: PBIO; flags: TIdC_INT); cdecl = nil; + + BIO_get_callback: function(b: PBIO): BIO_callback_fn; cdecl = nil; + BIO_set_callback: procedure(b: PBIO; callback: BIO_callback_fn); cdecl = nil; + + BIO_get_callback_ex: function(b: PBIO): BIO_callback_fn_ex; cdecl = nil; {introduced 1.1.0} + BIO_set_callback_ex: procedure(b: PBIO; callback: BIO_callback_fn_ex); cdecl = nil; {introduced 1.1.0} + + BIO_get_callback_arg: function(const b: PBIO): PIdAnsiChar; cdecl = nil; + BIO_set_callback_arg: procedure(var b: PBIO; arg: PIdAnsiChar); cdecl = nil; + + BIO_method_name: function(const b: PBIO): PIdAnsiChar; cdecl = nil; + BIO_method_type: function(const b: PBIO): TIdC_INT; cdecl = nil; + +// {$HPPEMIT '# define BIO_set_app_data(s,arg) BIO_set_ex_data(s,0,arg)'} +// {$HPPEMIT '# define BIO_get_app_data(s) BIO_get_ex_data(s,0)'} +// +// {$HPPEMIT '# define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)'} +// +// {$HPPEMIT '# ifndef OPENSSL_NO_SOCK'} +// (* IP families we support, for BIO_s_connect() and BIO_s_accept() *) +// (* Note: the underlying operating system may not support some of them *) +// {$HPPEMIT '# define BIO_FAMILY_IPV4 4'} +// {$HPPEMIT '# define BIO_FAMILY_IPV6 6'} +// {$HPPEMIT '# define BIO_FAMILY_IPANY 256'} +// +// (* BIO_s_connect() *) +// {$HPPEMIT '# define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0,'} +// (char (name)) +// {$HPPEMIT '# define BIO_set_conn_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,1,'} +// (char (port)) +// {$HPPEMIT '# define BIO_set_conn_address(b,addr) BIO_ctrl(b,BIO_C_SET_CONNECT,2,'} +// (char (addr)) +// {$HPPEMIT '# define BIO_set_conn_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_CONNECT,3,f)'} +// {$HPPEMIT '# define BIO_get_conn_hostname(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0))'} +// {$HPPEMIT '# define BIO_get_conn_port(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1))'} +// {$HPPEMIT '# define BIO_get_conn_address(b) (( PBIO_ADDR )BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2))'} +// {$HPPEMIT '# define BIO_get_conn_ip_family(b) BIO_ctrl(b,BIO_C_GET_CONNECT,3,NULL)'} +// {$HPPEMIT '# define BIO_set_conn_mode(b,n) BIO_ctrl(b,BIO_C_SET_CONNECT_MODE,(n),NULL)'} +// +// (* BIO_s_accept() *) +// {$HPPEMIT '# define BIO_set_accept_name(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0,'} +// {$EXTERNALSYM PBIO} +// (char (name)) +// {$HPPEMIT '# define BIO_set_accept_port(b,port) BIO_ctrl(b,BIO_C_SET_ACCEPT,1,'} +// (char (port)) +// {$HPPEMIT '# define BIO_get_accept_name(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0))'} +// {$HPPEMIT '# define BIO_get_accept_port(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,1))'} +// {$HPPEMIT '# define BIO_get_peer_name(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,2))'} +// {$HPPEMIT '# define BIO_get_peer_port(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,3))'} +// (* #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) *) +// {$HPPEMIT '# define BIO_set_nbio_accept(b,n) # define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(n)?(procedure )'a':NULL) BIO_ctrl(b,BIO_C_SET_ACCEPT,3,'} +// (char (bio)) +// {$HPPEMIT '# define BIO_set_accept_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_ACCEPT,4,f)'} +// {$HPPEMIT '# define BIO_get_accept_ip_family(b) BIO_ctrl(b,BIO_C_GET_ACCEPT,4,NULL)'} +// +// (* Aliases kept for backward compatibility *) +// {$HPPEMIT '# define BIO_BIND_NORMAL 0'} +// {$HPPEMIT '# define BIO_BIND_REUSEADDR BIO_SOCK_REUSEADDR'} +// {$HPPEMIT '# define BIO_BIND_REUSEADDR_IF_UNUSED BIO_SOCK_REUSEADDR'} +// {$HPPEMIT '# define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL)'} +// {$HPPEMIT '# define BIO_get_bind_mode(b) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL)'} +// +// (* BIO_s_accept() and BIO_s_connect() *) +// {$HPPEMIT '# define BIO_do_connect(b) BIO_do_handshake(b)'} +// {$HPPEMIT '# define BIO_do_accept(b) BIO_do_handshake(b)'} +// {$HPPEMIT '# endif'} (* OPENSSL_NO_SOCK *) +// +// {$HPPEMIT '# define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL)'} +// +// (* BIO_s_datagram(), BIO_s_fd(), BIO_s_socket(), BIO_s_accept() and BIO_s_connect() *) +// {$HPPEMIT '# define BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)'} +// {$HPPEMIT '# define BIO_get_fd(b,c) BIO_ctrl(b,BIO_C_GET_FD,0,(char (c))'} +// +// (* BIO_s_file() *) +// {$HPPEMIT '# define BIO_set_fp(b,fp,c) BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char (fp))'} +// {$HPPEMIT '# define BIO_get_fp(b,fpp) BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char (fpp))'} +// +// (* BIO_s_fd() and BIO_s_file() *) +// {$HPPEMIT '# define BIO_seek(b,ofs(int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)'} +// {$HPPEMIT '# define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)'} +// +// (* +// * name is cast to lose , but might be better to route through a +// * cFunction so we can do it safely +// *) +// {$HPPEMIT '# ifdef CONST_STRICT'} +// (* +// * If you are wondering why this isn't defined, its because CONST_STRICT is +// * purely a compile-time kludge to allow to be checked. +// *) +//// function BIO_read_filename(b: PBIO; const name: PIdAnsiChar): TIdC_INT; +// {$HPPEMIT '# define BIO_write_filename(b,name(int)BIO_ctrl(b,BIO_C_SET_FILENAME,'} +// BIO_CLOSE or BIO_FP_WRITE,name) +// {$HPPEMIT '# define BIO_append_filename(b,name(int)BIO_ctrl(b,BIO_C_SET_FILENAME,'} +// BIO_CLOSE or BIO_FP_APPEND,name) +// {$HPPEMIT '# define BIO_rw_filename(b,name(int)BIO_ctrl(b,BIO_C_SET_FILENAME,'} +// BIO_CLOSE or BIO_FP_READ or BIO_FP_WRITE,name) +// +// (* +// * WARNING WARNING, this ups the reference count on the read bio of the SSL +// * structure. This is because the ssl read PBIO is now pointed to by the +// * next_bio field in the bio. So when you free the PBIO, make sure you are +// * doing a BIO_free_all() to catch the underlying PBIO. +// *) +// {$HPPEMIT '# define BIO_set_ssl(b,ssl,c) BIO_ctrl(b,BIO_C_SET_SSL,c,(char (ssl))'} +// {$HPPEMIT '# define BIO_get_ssl(b,sslp) BIO_ctrl(b,BIO_C_GET_SSL,0,(char (sslp))'} +// {$HPPEMIT '# define BIO_set_ssl_mode(b,client) BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)'} +// {$HPPEMIT '# define BIO_set_ssl_renegotiate_bytes(b,num)'} +// BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,0) +// {$HPPEMIT '# define BIO_get_num_renegotiates(b)'} +// BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,0) +// {$HPPEMIT '# define BIO_set_ssl_renegotiate_timeout(b,seconds)'} +// BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,0) +// +// (* defined in evp.h *) +// (* #define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,1,(char )(md)) *) +// +// (* For the BIO_f_buffer() type *) +// {$HPPEMIT '# define BIO_get_buffer_num_lines(b) BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL)'} +// {$HPPEMIT '# define BIO_set_buffer_size(b,size) BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL)'} +// {$HPPEMIT '# define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0)'} +// {$HPPEMIT '# define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1)'} +// {$HPPEMIT '# define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf)'} +// +// (* Don't use the next one unless you know what you are doing :-) */ +// {$HPPEMIT '# define BIO_dup_state(b,ret) BIO_ctrl(b,BIO_CTRL_DUP,0,(char (ret))'} +// +// {$HPPEMIT '# define BIO_reset(b) (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL)'} +// {$HPPEMIT '# define BIO_eof(b) (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL)'} +// {$HPPEMIT '# define BIO_set_close(b,c) (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)'} +// {$HPPEMIT '# define BIO_get_close(b) (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)'} +// {$HPPEMIT '# define BIO_pending(b) (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)'} +// {$HPPEMIT '# define BIO_wpending(b) (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)'} + (* ...pending macros have inappropriate return type *) + BIO_ctrl_pending: function(b: PBIO): TIdC_SIZET; cdecl = nil; + BIO_ctrl_wpending: function(b: PBIO): TIdC_SIZET; cdecl = nil; +// {$HPPEMIT '# define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)'} +// {$HPPEMIT '# define BIO_get_info_callback(b,cbp(int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0,'} +// cbp) +// {$HPPEMIT '# define BIO_set_info_callback(b,cb(int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)'} +// +// (* For the BIO_f_buffer() type *) +// {$HPPEMIT '# define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)'} +// {$HPPEMIT '# define BIO_buffer_peek(b,s,l) BIO_ctrl(b,BIO_CTRL_PEEK,(l),(s))'} +// +// (* For BIO_s_bio() *) +// {$HPPEMIT '# define BIO_set_write_buf_size(b,size(int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)'} +// {$HPPEMIT '# define BIO_get_write_buf_size(b,size(TIdC_SIZET)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)'} +// {$HPPEMIT '# define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)'} +// {$HPPEMIT '# define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)'} +// {$HPPEMIT '# define BIO_shutdown_wr(b(int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)'} +// (* macros with inappropriate type -- but ...pending macros use int too: *) +// {$HPPEMIT '# define BIO_get_write_guarantee(b(int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)'} +// {$HPPEMIT '# define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)'} + BIO_ctrl_get_write_guarantee: function(b: PBIO): TIdC_SIZET; cdecl = nil; + BIO_ctrl_get_read_request: function(b: PBIO): TIdC_SIZET; cdecl = nil; + BIO_ctrl_reset_read_request: function(b: PBIO): TIdC_INT; cdecl = nil; + + (* ctrl macros for dgram *) +// {$HPPEMIT '# define BIO_ctrl_dgram_connect(b,peer)'} +// (TIdC_INT)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char (peer)) +// {$HPPEMIT '# define BIO_ctrl_set_connected(b,peer)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, 0, (char (peer)) +// {$HPPEMIT '# define BIO_dgram_recv_timedout(b)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, 0) +// {$HPPEMIT '# define BIO_dgram_send_timedout(b)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, 0) +// {$HPPEMIT '# define BIO_dgram_get_peer(b,peer)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char (peer)) +// {$HPPEMIT '# define BIO_dgram_set_peer(b,peer)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char (peer)) +// {$HPPEMIT '# define BIO_dgram_get_mtu_overhead(b)'} +// (Cardinal)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_MTU_OVERHEAD, 0, 0) + +//#define BIO_get_ex_new_index(l, p, newf, dupf, freef) \ +// CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_BIO, l, p, newf, dupf, freef) + + BIO_set_ex_data: function(bio: PBIO; idx: TIdC_INT; data: Pointer): TIdC_INT; cdecl = nil; + BIO_get_ex_data: function(bio: PBIO; idx: TIdC_INT): Pointer; cdecl = nil; + BIO_number_read: function(bio: PBIO): TIdC_UINT64; cdecl = nil; + BIO_number_written: function(bio: PBIO): TIdC_UINT64; cdecl = nil; + + (* For BIO_f_asn1() *) +// function BIO_asn1_set_prefix(b: PBIO; prefix: ^asn1_ps_func; prefix_free: ^asn1_ps_func): TIdC_INT; +// function BIO_asn1_get_prefix(b: PBIO; pprefix: ^^asn1_ps_func; pprefix_free: ^^asn1_ps_func): TIdC_INT; +// function BIO_asn1_set_suffix(b: PBIO; suffix: ^asn1_ps_func; suffix_free: ^asn1_ps_func): TIdC_INT; +// function BIO_asn1_get_suffix(b: PBIO; psuffix: ^asn1_ps_func; psuffix_free: ^^asn1_ps_func): TIdC_INT; + + BIO_s_file: function: PBIO_METHOD; cdecl = nil; + BIO_new_file: function(const filename: PIdAnsiChar; const mode: PIdAnsiChar): PBIO; cdecl = nil; +// function BIO_new_fp(stream: cFile; close_flag: TIdC_INT): PBIO; + BIO_new: function(const cType: PBIO_METHOD): PBIO; cdecl = nil; + BIO_free: function(a: PBIO): TIdC_INT; cdecl = nil; + BIO_set_data: procedure(a: PBIO; ptr: Pointer); cdecl = nil; {introduced 1.1.0} + BIO_get_data: function(a: PBIO): Pointer; cdecl = nil; {introduced 1.1.0} + BIO_set_init: procedure(a: PBIO; init: TIdC_INT); cdecl = nil; {introduced 1.1.0} + BIO_get_init: function(a: PBIO): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_set_shutdown: procedure(a: PBIO; shut: TIdC_INT); cdecl = nil; {introduced 1.1.0} + BIO_get_shutdown: function(a: PBIO): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_vfree: procedure(a: PBIO); cdecl = nil; + BIO_up_ref: function(a: PBIO): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_read: function(b: PBIO; data: Pointer; dlen: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_read_ex: function(b: PBIO; data: Pointer; dlen: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_gets: function( bp: PBIO; buf: PIdAnsiChar; size: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_write: function(b: PBIO; const data: Pointer; dlen: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_write_ex: function(b: PBIO; const data: Pointer; dlen: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_puts: function(bp: PBIO; const buf: PIdAnsiChar): TIdC_INT; cdecl = nil; + BIO_indent: function(b: PBIO; indent: TIdC_INT; max: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_ctrl: function(bp: PBIO; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG; cdecl = nil; + BIO_callback_ctrl: function(b: PBIO; cmd: TIdC_INT; fp: PBIO_info_cb): TIdC_LONG; cdecl = nil; + BIO_ptr_ctrl: function(bp: PBIO; cmd: TIdC_INT; larg: TIdC_LONG): Pointer; cdecl = nil; + BIO_int_ctrl: function(bp: PBIO; cmd: TIdC_INT; larg: TIdC_LONG; iarg: TIdC_INT): TIdC_LONG; cdecl = nil; + BIO_push: function(b: PBIO; append: PBIO): PBIO; cdecl = nil; + BIO_pop: function(b: PBIO): PBIO; cdecl = nil; + BIO_free_all: procedure(a: PBIO); cdecl = nil; + BIO_find_type: function(b: PBIO; bio_type: TIdC_INT): PBIO; cdecl = nil; + BIO_next: function(b: PBIO): PBIO; cdecl = nil; + BIO_set_next: procedure(b: PBIO; next: PBIO); cdecl = nil; {introduced 1.1.0} + BIO_get_retry_BIO: function(bio: PBIO; reason: TIdC_INT): PBIO; cdecl = nil; + BIO_get_retry_reason: function(bio: PBIO): TIdC_INT; cdecl = nil; + BIO_set_retry_reason: procedure(bio: PBIO; reason: TIdC_INT); cdecl = nil; {introduced 1.1.0} + BIO_dup_chain: function(in_: PBIO): PBIO; cdecl = nil; + + BIO_nread0: function(bio: PBIO; buf: PPIdAnsiChar): TIdC_INT; cdecl = nil; + BIO_nread: function(bio: PBIO; buf: PPIdAnsiChar; num: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_nwrite0: function(bio: PBIO; buf: PPIdAnsiChar): TIdC_INT; cdecl = nil; + BIO_nwrite: function(bio: PBIO; buf: PPIdAnsiChar; num: TIdC_INT): TIdC_INT; cdecl = nil; + + BIO_debug_callback: function(bio: PBIO; cmd: TIdC_INT; const argp: PIdAnsiChar; argi: TIdC_INT; argl: TIdC_LONG; ret: TIdC_LONG): TIdC_LONG; cdecl = nil; + + BIO_s_mem: function: PBIO_METHOD; cdecl = nil; + BIO_s_secmem: function: PBIO_METHOD; cdecl = nil; {introduced 1.1.0} + BIO_new_mem_buf: function(const buf: Pointer; len: TIdC_INT): PBIO; cdecl = nil; + + BIO_s_socket: function: PBIO_METHOD; cdecl = nil; + BIO_s_connect: function: PBIO_METHOD; cdecl = nil; + BIO_s_accept: function: PBIO_METHOD; cdecl = nil; + + BIO_s_fd: function: PBIO_METHOD; cdecl = nil; + BIO_s_log: function: PBIO_METHOD; cdecl = nil; + BIO_s_bio: function: PBIO_METHOD; cdecl = nil; + BIO_s_null: function: PBIO_METHOD; cdecl = nil; + BIO_f_null: function: PBIO_METHOD; cdecl = nil; + BIO_f_buffer: function: PBIO_METHOD; cdecl = nil; + BIO_f_linebuffer: function: PBIO_METHOD; cdecl = nil; {introduced 1.1.0} + BIO_f_nbio_test: function: PBIO_METHOD; cdecl = nil; + BIO_s_datagram: function: PBIO_METHOD; cdecl = nil; + BIO_dgram_non_fatal_error: function(error: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_new_dgram: function(fd: TIdC_INT; close_flag: TIdC_INT): PBIO; cdecl = nil; + +// function BIO_s_datagram_sctp: PBIO_METHOD; +// function BIO_new_dgram_sctp(fd: TIdC_INT; close_flag: TIdC_INT): PBIO; +// function BIO_dgram_is_sctp(bio: PBIO): TIdC_INT; +// function BIO_dgram_sctp_notification_cb(bio: PBIO; handle_notifications(PBIO; +// context: Pointer; +// buf: Pointer): TIdC_INT, Pointer context); +// function BIO_dgram_sctp_wait_for_dry(b: PBIO): TIdC_INT; +// function BIO_dgram_sctp_msg_waiting(b: PBIO): TIdC_INT; + + BIO_sock_should_retry: function(i: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_sock_non_fatal_error: function(error: TIdC_INT): TIdC_INT; cdecl = nil; + + BIO_fd_should_retry: function(i: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_fd_non_fatal_error: function(error: TIdC_INT): TIdC_INT; cdecl = nil; +// function BIO_dump_cb( +// Pointer data: cb(; +// len: TIdC_SIZET; +// function: Pointer): u: TIdC_INT, Pointer function , PIdAnsiChar s, TIdC_INT len): u; +// function BIO_dump_indent_cb(TIdC_INT (cb( Pointer data, TIdC_SIZET len, Pointer function ): u: TIdC_INT, Pointer function , PIdAnsiChar s, TIdC_INT len, TIdC_INT indent): u; + BIO_dump: function(b: PBIO; const bytes: PIdAnsiChar; len: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_dump_indent: function(b: PBIO; const bytes: PIdAnsiChar; len: TIdC_INT; indent: TIdC_INT): TIdC_INT; cdecl = nil; + +// function BIO_dump_fp(fp: cFile; const s: PByte; len: TIdC_INT): TIdC_INT; +// function BIO_dump_indent_fp(fp: cFile; const s: PByte; len: TIdC_INT; indent: TIdC_INT): TIdC_INT; + + BIO_hex_string: function(out_: PBIO; indent: TIdC_INT; width: TIdC_INT; data: PByte; datalen: TIdC_INT): TIdC_INT; cdecl = nil; + + BIO_ADDR_new: function: PBIO_ADDR; cdecl = nil; {introduced 1.1.0} + BIO_ADDR_rawmake: function(ap: PBIO_ADDR; familiy: TIdC_INT; const where: Pointer; wherelen: TIdC_SIZET; port: TIdC_SHORT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_ADDR_free: procedure(a: PBIO_ADDR); cdecl = nil; {introduced 1.1.0} + BIO_ADDR_clear: procedure(ap: PBIO_ADDR); cdecl = nil; {introduced 1.1.0} + BIO_ADDR_family: function(const ap: PBIO_ADDR): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_ADDR_rawaddress: function(const ap: PBIO_ADDR; p: Pointer; l: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_ADDR_rawport: function(const ap: PBIO_ADDR): TIdC_SHORT; cdecl = nil; {introduced 1.1.0} + BIO_ADDR_hostname_string: function(const ap: PBIO_ADDR; numeric: TIdC_INT): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + BIO_ADDR_service_string: function(const ap: PBIO_ADDR; numeric: TIdC_INT): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + BIO_ADDR_path_string: function(const ap: PBIO_ADDR): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + + BIO_ADDRINFO_next: function(const bai: PBIO_ADDRINFO): PBIO_ADDRINFO; cdecl = nil; {introduced 1.1.0} + BIO_ADDRINFO_family: function(const bai: PBIO_ADDRINFO): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_ADDRINFO_socktype: function(const bai: PBIO_ADDRINFO): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_ADDRINFO_protocol: function(const bai: PBIO_ADDRINFO): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_ADDRINFO_address: function(const bai: PBIO_ADDRINFO): PBIO_ADDR; cdecl = nil; {introduced 1.1.0} + BIO_ADDRINFO_free: procedure(bai: PBIO_ADDRINFO); cdecl = nil; {introduced 1.1.0} + + BIO_parse_hostserv: function(const hostserv: PIdAnsiChar; host: PPIdAnsiChar; service: PPIdAnsiChar; hostserv_prio: BIO_hostserv_priorities): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + BIO_lookup: function(const host: PIdAnsiChar; const service: PIdAnsiChar; lookup_type: BIO_lookup_type; family: TIdC_INT; socktype: TIdC_INT; res: PPBIO_ADDRINFO): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_lookup_ex: function(const host: PIdAnsiChar; const service: PIdAnsiChar; lookup_type: TIdC_INT; family: TIdC_INT; socktype: TIdC_INT; protocol: TIdC_INT; res: PPBIO_ADDRINFO): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_sock_error: function(sock: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_socket_ioctl: function(fd: TIdC_INT; cType: TIdC_LONG; arg: Pointer): TIdC_INT; cdecl = nil; + BIO_socket_nbio: function(fd: TIdC_INT; mode: TIdC_INT): TIdC_INT; cdecl = nil; + BIO_sock_init: function: TIdC_INT; cdecl = nil; + + BIO_set_tcp_ndelay: function(sock: TIdC_INT; turn_on: TIdC_INT): TIdC_INT; cdecl = nil; + + BIO_sock_info: function(sock: TIdC_INT; type_: BIO_sock_info_type; info: PBIO_sock_info_u): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + BIO_socket: function(domain: TIdC_INT; socktype: TIdC_INT; protocol: TIdC_INT; options: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_connect: function(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_bind: function(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_listen: function(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_accept_ex: function(accept_sock: TIdC_INT; addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + BIO_closesocket: function(sock: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + BIO_new_socket: function(sock: TIdC_INT; close_flag: TIdC_INT): PBIO; cdecl = nil; + BIO_new_connect: function(const host_port: PIdAnsiChar): PBIO; cdecl = nil; + BIO_new_accept: function(const host_port: PIdAnsiChar): PBIO; cdecl = nil; + + BIO_new_fd: function(fd: TIdC_INT; close_flag: TIdC_INT): PBIO; cdecl = nil; + + BIO_new_bio_pair: function(bio1: PPBIO; writebuf1: TIdC_SIZET; bio2: PPBIO; writebuf2: TIdC_SIZET): TIdC_INT; cdecl = nil; + (* + * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints. + * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. Size 0 uses default + * value. + *) + + BIO_copy_next_retry: procedure(b: PBIO); cdecl = nil; + +// BIO_METHOD *BIO_meth_new(int type, const char *name); +// void BIO_meth_free(BIO_METHOD *biom); +// int (*BIO_meth_get_write(const BIO_METHOD *biom)) (BIO *, const char *, int); +// int (*BIO_meth_get_write_ex(const BIO_METHOD *biom)) (BIO *, const char *, TIdC_SIZET, +// TIdC_SIZET *); +// int BIO_meth_set_write(BIO_METHOD *biom, +// int (*write) (BIO *, const char *, int)); +// int BIO_meth_set_write_ex(BIO_METHOD *biom, +// int (*bwrite) (BIO *, const char *, TIdC_SIZET, TIdC_SIZET *)); +// int (*BIO_meth_get_read(const BIO_METHOD *biom)) (BIO *, char *, int); +// int (*BIO_meth_get_read_ex(const BIO_METHOD *biom)) (BIO *, char *, TIdC_SIZET, TIdC_SIZET *); +// int BIO_meth_set_read(BIO_METHOD *biom, +// int (*read) (BIO *, char *, int)); +// int BIO_meth_set_read_ex(BIO_METHOD *biom, +// int (*bread) (BIO *, char *, TIdC_SIZET, TIdC_SIZET *)); +// int (*BIO_meth_get_puts(const BIO_METHOD *biom)) (BIO *, const char *); +// int BIO_meth_set_puts(BIO_METHOD *biom, +// int (*puts) (BIO *, const char *)); +// int (*BIO_meth_get_gets(const BIO_METHOD *biom)) (BIO *, char *, int); +// int BIO_meth_set_gets(BIO_METHOD *biom, +// int (*gets) (BIO *, char *, int)); +// long (*BIO_meth_get_ctrl(const BIO_METHOD *biom)) (BIO *, int, long, void *); +// int BIO_meth_set_ctrl(BIO_METHOD *biom, +// long (*ctrl) (BIO *, int, long, void *)); +// int (*BIO_meth_get_create(const BIO_METHOD *bion)) (BIO *); +// int BIO_meth_set_create(BIO_METHOD *biom, int (*create) (BIO *)); +// int (*BIO_meth_get_destroy(const BIO_METHOD *biom)) (BIO *); +// int BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy) (BIO *)); +// long (*BIO_meth_get_callback_ctrl(const BIO_METHOD *biom)) +// (BIO *, int, BIO_info_cb *); +// int BIO_meth_set_callback_ctrl(BIO_METHOD *biom, +// long (*callback_ctrl) (BIO *, int, +// BIO_info_cb *)); + +{$ELSE} + +(* These are normally used internally in BIOs *) + +(* These should be used by the application to tell why we should retry *) + +(* BIO_s_accept() and BIO_s_connect() *) + + + function BIO_get_new_index: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure BIO_set_flags(b: PBIO; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_test_flags(const b: PBIO; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BIO_clear_flags(b: PBIO; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_get_callback(b: PBIO): BIO_callback_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BIO_set_callback(b: PBIO; callback: BIO_callback_fn) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_get_callback_ex(b: PBIO): BIO_callback_fn_ex cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure BIO_set_callback_ex(b: PBIO; callback: BIO_callback_fn_ex) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function BIO_get_callback_arg(const b: PBIO): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BIO_set_callback_arg(var b: PBIO; arg: PIdAnsiChar) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_method_name(const b: PBIO): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_method_type(const b: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// {$HPPEMIT '# define BIO_set_app_data(s,arg) BIO_set_ex_data(s,0,arg)'} +// {$HPPEMIT '# define BIO_get_app_data(s) BIO_get_ex_data(s,0)'} +// +// {$HPPEMIT '# define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)'} +// +// {$HPPEMIT '# ifndef OPENSSL_NO_SOCK'} +// (* IP families we support, for BIO_s_connect() and BIO_s_accept() *) +// (* Note: the underlying operating system may not support some of them *) +// {$HPPEMIT '# define BIO_FAMILY_IPV4 4'} +// {$HPPEMIT '# define BIO_FAMILY_IPV6 6'} +// {$HPPEMIT '# define BIO_FAMILY_IPANY 256'} +// +// (* BIO_s_connect() *) +// {$HPPEMIT '# define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0,'} +// (char (name)) +// {$HPPEMIT '# define BIO_set_conn_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,1,'} +// (char (port)) +// {$HPPEMIT '# define BIO_set_conn_address(b,addr) BIO_ctrl(b,BIO_C_SET_CONNECT,2,'} +// (char (addr)) +// {$HPPEMIT '# define BIO_set_conn_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_CONNECT,3,f)'} +// {$HPPEMIT '# define BIO_get_conn_hostname(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0))'} +// {$HPPEMIT '# define BIO_get_conn_port(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1))'} +// {$HPPEMIT '# define BIO_get_conn_address(b) (( PBIO_ADDR )BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2))'} +// {$HPPEMIT '# define BIO_get_conn_ip_family(b) BIO_ctrl(b,BIO_C_GET_CONNECT,3,NULL)'} +// {$HPPEMIT '# define BIO_set_conn_mode(b,n) BIO_ctrl(b,BIO_C_SET_CONNECT_MODE,(n),NULL)'} +// +// (* BIO_s_accept() *) +// {$HPPEMIT '# define BIO_set_accept_name(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0,'} +// {$EXTERNALSYM PBIO} +// (char (name)) +// {$HPPEMIT '# define BIO_set_accept_port(b,port) BIO_ctrl(b,BIO_C_SET_ACCEPT,1,'} +// (char (port)) +// {$HPPEMIT '# define BIO_get_accept_name(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0))'} +// {$HPPEMIT '# define BIO_get_accept_port(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,1))'} +// {$HPPEMIT '# define BIO_get_peer_name(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,2))'} +// {$HPPEMIT '# define BIO_get_peer_port(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,3))'} +// (* #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) *) +// {$HPPEMIT '# define BIO_set_nbio_accept(b,n) # define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(n)?(procedure )'a':NULL) BIO_ctrl(b,BIO_C_SET_ACCEPT,3,'} +// (char (bio)) +// {$HPPEMIT '# define BIO_set_accept_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_ACCEPT,4,f)'} +// {$HPPEMIT '# define BIO_get_accept_ip_family(b) BIO_ctrl(b,BIO_C_GET_ACCEPT,4,NULL)'} +// +// (* Aliases kept for backward compatibility *) +// {$HPPEMIT '# define BIO_BIND_NORMAL 0'} +// {$HPPEMIT '# define BIO_BIND_REUSEADDR BIO_SOCK_REUSEADDR'} +// {$HPPEMIT '# define BIO_BIND_REUSEADDR_IF_UNUSED BIO_SOCK_REUSEADDR'} +// {$HPPEMIT '# define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL)'} +// {$HPPEMIT '# define BIO_get_bind_mode(b) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL)'} +// +// (* BIO_s_accept() and BIO_s_connect() *) +// {$HPPEMIT '# define BIO_do_connect(b) BIO_do_handshake(b)'} +// {$HPPEMIT '# define BIO_do_accept(b) BIO_do_handshake(b)'} +// {$HPPEMIT '# endif'} (* OPENSSL_NO_SOCK *) +// +// {$HPPEMIT '# define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL)'} +// +// (* BIO_s_datagram(), BIO_s_fd(), BIO_s_socket(), BIO_s_accept() and BIO_s_connect() *) +// {$HPPEMIT '# define BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)'} +// {$HPPEMIT '# define BIO_get_fd(b,c) BIO_ctrl(b,BIO_C_GET_FD,0,(char (c))'} +// +// (* BIO_s_file() *) +// {$HPPEMIT '# define BIO_set_fp(b,fp,c) BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char (fp))'} +// {$HPPEMIT '# define BIO_get_fp(b,fpp) BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char (fpp))'} +// +// (* BIO_s_fd() and BIO_s_file() *) +// {$HPPEMIT '# define BIO_seek(b,ofs(int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)'} +// {$HPPEMIT '# define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)'} +// +// (* +// * name is cast to lose , but might be better to route through a +// * cFunction so we can do it safely +// *) +// {$HPPEMIT '# ifdef CONST_STRICT'} +// (* +// * If you are wondering why this isn't defined, its because CONST_STRICT is +// * purely a compile-time kludge to allow to be checked. +// *) +//// function BIO_read_filename(b: PBIO; const name: PIdAnsiChar): TIdC_INT; +// {$HPPEMIT '# define BIO_write_filename(b,name(int)BIO_ctrl(b,BIO_C_SET_FILENAME,'} +// BIO_CLOSE or BIO_FP_WRITE,name) +// {$HPPEMIT '# define BIO_append_filename(b,name(int)BIO_ctrl(b,BIO_C_SET_FILENAME,'} +// BIO_CLOSE or BIO_FP_APPEND,name) +// {$HPPEMIT '# define BIO_rw_filename(b,name(int)BIO_ctrl(b,BIO_C_SET_FILENAME,'} +// BIO_CLOSE or BIO_FP_READ or BIO_FP_WRITE,name) +// +// (* +// * WARNING WARNING, this ups the reference count on the read bio of the SSL +// * structure. This is because the ssl read PBIO is now pointed to by the +// * next_bio field in the bio. So when you free the PBIO, make sure you are +// * doing a BIO_free_all() to catch the underlying PBIO. +// *) +// {$HPPEMIT '# define BIO_set_ssl(b,ssl,c) BIO_ctrl(b,BIO_C_SET_SSL,c,(char (ssl))'} +// {$HPPEMIT '# define BIO_get_ssl(b,sslp) BIO_ctrl(b,BIO_C_GET_SSL,0,(char (sslp))'} +// {$HPPEMIT '# define BIO_set_ssl_mode(b,client) BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)'} +// {$HPPEMIT '# define BIO_set_ssl_renegotiate_bytes(b,num)'} +// BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,0) +// {$HPPEMIT '# define BIO_get_num_renegotiates(b)'} +// BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,0) +// {$HPPEMIT '# define BIO_set_ssl_renegotiate_timeout(b,seconds)'} +// BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,0) +// +// (* defined in evp.h *) +// (* #define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,1,(char )(md)) *) +// +// (* For the BIO_f_buffer() type *) +// {$HPPEMIT '# define BIO_get_buffer_num_lines(b) BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL)'} +// {$HPPEMIT '# define BIO_set_buffer_size(b,size) BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL)'} +// {$HPPEMIT '# define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0)'} +// {$HPPEMIT '# define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1)'} +// {$HPPEMIT '# define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf)'} +// +// (* Don't use the next one unless you know what you are doing :-) */ +// {$HPPEMIT '# define BIO_dup_state(b,ret) BIO_ctrl(b,BIO_CTRL_DUP,0,(char (ret))'} +// +// {$HPPEMIT '# define BIO_reset(b) (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL)'} +// {$HPPEMIT '# define BIO_eof(b) (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL)'} +// {$HPPEMIT '# define BIO_set_close(b,c) (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)'} +// {$HPPEMIT '# define BIO_get_close(b) (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)'} +// {$HPPEMIT '# define BIO_pending(b) (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)'} +// {$HPPEMIT '# define BIO_wpending(b) (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)'} + (* ...pending macros have inappropriate return type *) + function BIO_ctrl_pending(b: PBIO): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_ctrl_wpending(b: PBIO): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// {$HPPEMIT '# define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)'} +// {$HPPEMIT '# define BIO_get_info_callback(b,cbp(int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0,'} +// cbp) +// {$HPPEMIT '# define BIO_set_info_callback(b,cb(int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)'} +// +// (* For the BIO_f_buffer() type *) +// {$HPPEMIT '# define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)'} +// {$HPPEMIT '# define BIO_buffer_peek(b,s,l) BIO_ctrl(b,BIO_CTRL_PEEK,(l),(s))'} +// +// (* For BIO_s_bio() *) +// {$HPPEMIT '# define BIO_set_write_buf_size(b,size(int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)'} +// {$HPPEMIT '# define BIO_get_write_buf_size(b,size(TIdC_SIZET)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)'} +// {$HPPEMIT '# define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)'} +// {$HPPEMIT '# define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)'} +// {$HPPEMIT '# define BIO_shutdown_wr(b(int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)'} +// (* macros with inappropriate type -- but ...pending macros use int too: *) +// {$HPPEMIT '# define BIO_get_write_guarantee(b(int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)'} +// {$HPPEMIT '# define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)'} + function BIO_ctrl_get_write_guarantee(b: PBIO): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_ctrl_get_read_request(b: PBIO): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_ctrl_reset_read_request(b: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* ctrl macros for dgram *) +// {$HPPEMIT '# define BIO_ctrl_dgram_connect(b,peer)'} +// (TIdC_INT)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char (peer)) +// {$HPPEMIT '# define BIO_ctrl_set_connected(b,peer)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, 0, (char (peer)) +// {$HPPEMIT '# define BIO_dgram_recv_timedout(b)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, 0) +// {$HPPEMIT '# define BIO_dgram_send_timedout(b)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, 0) +// {$HPPEMIT '# define BIO_dgram_get_peer(b,peer)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char (peer)) +// {$HPPEMIT '# define BIO_dgram_set_peer(b,peer)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char (peer)) +// {$HPPEMIT '# define BIO_dgram_get_mtu_overhead(b)'} +// (Cardinal)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_MTU_OVERHEAD, 0, 0) + +//#define BIO_get_ex_new_index(l, p, newf, dupf, freef) \ +// CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_BIO, l, p, newf, dupf, freef) + + function BIO_set_ex_data(bio: PBIO; idx: TIdC_INT; data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_get_ex_data(bio: PBIO; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_number_read(bio: PBIO): TIdC_UINT64 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_number_written(bio: PBIO): TIdC_UINT64 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* For BIO_f_asn1() *) +// function BIO_asn1_set_prefix(b: PBIO; prefix: ^asn1_ps_func; prefix_free: ^asn1_ps_func): TIdC_INT; +// function BIO_asn1_get_prefix(b: PBIO; pprefix: ^^asn1_ps_func; pprefix_free: ^^asn1_ps_func): TIdC_INT; +// function BIO_asn1_set_suffix(b: PBIO; suffix: ^asn1_ps_func; suffix_free: ^asn1_ps_func): TIdC_INT; +// function BIO_asn1_get_suffix(b: PBIO; psuffix: ^asn1_ps_func; psuffix_free: ^^asn1_ps_func): TIdC_INT; + + function BIO_s_file: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_new_file(const filename: PIdAnsiChar; const mode: PIdAnsiChar): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function BIO_new_fp(stream: cFile; close_flag: TIdC_INT): PBIO; + function BIO_new(const cType: PBIO_METHOD): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_free(a: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BIO_set_data(a: PBIO; ptr: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_get_data(a: PBIO): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure BIO_set_init(a: PBIO; init: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_get_init(a: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure BIO_set_shutdown(a: PBIO; shut: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_get_shutdown(a: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure BIO_vfree(a: PBIO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_up_ref(a: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_read(b: PBIO; data: Pointer; dlen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_read_ex(b: PBIO; data: Pointer; dlen: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_gets( bp: PBIO; buf: PIdAnsiChar; size: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_write(b: PBIO; const data: Pointer; dlen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_write_ex(b: PBIO; const data: Pointer; dlen: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_puts(bp: PBIO; const buf: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_indent(b: PBIO; indent: TIdC_INT; max: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_ctrl(bp: PBIO; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_callback_ctrl(b: PBIO; cmd: TIdC_INT; fp: PBIO_info_cb): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_ptr_ctrl(bp: PBIO; cmd: TIdC_INT; larg: TIdC_LONG): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_int_ctrl(bp: PBIO; cmd: TIdC_INT; larg: TIdC_LONG; iarg: TIdC_INT): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_push(b: PBIO; append: PBIO): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_pop(b: PBIO): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BIO_free_all(a: PBIO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_find_type(b: PBIO; bio_type: TIdC_INT): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_next(b: PBIO): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BIO_set_next(b: PBIO; next: PBIO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_get_retry_BIO(bio: PBIO; reason: TIdC_INT): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_get_retry_reason(bio: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BIO_set_retry_reason(bio: PBIO; reason: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_dup_chain(in_: PBIO): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_nread0(bio: PBIO; buf: PPIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_nread(bio: PBIO; buf: PPIdAnsiChar; num: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_nwrite0(bio: PBIO; buf: PPIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_nwrite(bio: PBIO; buf: PPIdAnsiChar; num: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_debug_callback(bio: PBIO; cmd: TIdC_INT; const argp: PIdAnsiChar; argi: TIdC_INT; argl: TIdC_LONG; ret: TIdC_LONG): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_s_mem: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_s_secmem: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_new_mem_buf(const buf: Pointer; len: TIdC_INT): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_s_socket: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_s_connect: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_s_accept: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_s_fd: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_s_log: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_s_bio: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_s_null: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_f_null: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_f_buffer: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_f_linebuffer: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_f_nbio_test: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_s_datagram: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_dgram_non_fatal_error(error: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_new_dgram(fd: TIdC_INT; close_flag: TIdC_INT): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// function BIO_s_datagram_sctp: PBIO_METHOD; +// function BIO_new_dgram_sctp(fd: TIdC_INT; close_flag: TIdC_INT): PBIO; +// function BIO_dgram_is_sctp(bio: PBIO): TIdC_INT; +// function BIO_dgram_sctp_notification_cb(bio: PBIO; handle_notifications(PBIO; +// context: Pointer; +// buf: Pointer): TIdC_INT, Pointer context); +// function BIO_dgram_sctp_wait_for_dry(b: PBIO): TIdC_INT; +// function BIO_dgram_sctp_msg_waiting(b: PBIO): TIdC_INT; + + function BIO_sock_should_retry(i: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_sock_non_fatal_error(error: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_fd_should_retry(i: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_fd_non_fatal_error(error: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function BIO_dump_cb( +// Pointer data: cb(; +// len: TIdC_SIZET; +// function: Pointer): u: TIdC_INT, Pointer function , PIdAnsiChar s, TIdC_INT len): u; +// function BIO_dump_indent_cb(TIdC_INT (cb( Pointer data, TIdC_SIZET len, Pointer function ): u: TIdC_INT, Pointer function , PIdAnsiChar s, TIdC_INT len, TIdC_INT indent): u; + function BIO_dump(b: PBIO; const bytes: PIdAnsiChar; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_dump_indent(b: PBIO; const bytes: PIdAnsiChar; len: TIdC_INT; indent: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// function BIO_dump_fp(fp: cFile; const s: PByte; len: TIdC_INT): TIdC_INT; +// function BIO_dump_indent_fp(fp: cFile; const s: PByte; len: TIdC_INT; indent: TIdC_INT): TIdC_INT; + + function BIO_hex_string(out_: PBIO; indent: TIdC_INT; width: TIdC_INT; data: PByte; datalen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_ADDR_new: PBIO_ADDR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_ADDR_rawmake(ap: PBIO_ADDR; familiy: TIdC_INT; const where: Pointer; wherelen: TIdC_SIZET; port: TIdC_SHORT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure BIO_ADDR_free(a: PBIO_ADDR) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure BIO_ADDR_clear(ap: PBIO_ADDR) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_ADDR_family(const ap: PBIO_ADDR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_ADDR_rawaddress(const ap: PBIO_ADDR; p: Pointer; l: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_ADDR_rawport(const ap: PBIO_ADDR): TIdC_SHORT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_ADDR_hostname_string(const ap: PBIO_ADDR; numeric: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_ADDR_service_string(const ap: PBIO_ADDR; numeric: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_ADDR_path_string(const ap: PBIO_ADDR): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function BIO_ADDRINFO_next(const bai: PBIO_ADDRINFO): PBIO_ADDRINFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_ADDRINFO_family(const bai: PBIO_ADDRINFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_ADDRINFO_socktype(const bai: PBIO_ADDRINFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_ADDRINFO_protocol(const bai: PBIO_ADDRINFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_ADDRINFO_address(const bai: PBIO_ADDRINFO): PBIO_ADDR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure BIO_ADDRINFO_free(bai: PBIO_ADDRINFO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function BIO_parse_hostserv(const hostserv: PIdAnsiChar; host: PPIdAnsiChar; service: PPIdAnsiChar; hostserv_prio: BIO_hostserv_priorities): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function BIO_lookup(const host: PIdAnsiChar; const service: PIdAnsiChar; lookup_type: BIO_lookup_type; family: TIdC_INT; socktype: TIdC_INT; res: PPBIO_ADDRINFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_lookup_ex(const host: PIdAnsiChar; const service: PIdAnsiChar; lookup_type: TIdC_INT; family: TIdC_INT; socktype: TIdC_INT; protocol: TIdC_INT; res: PPBIO_ADDRINFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_sock_error(sock: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_socket_ioctl(fd: TIdC_INT; cType: TIdC_LONG; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_socket_nbio(fd: TIdC_INT; mode: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_sock_init: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_set_tcp_ndelay(sock: TIdC_INT; turn_on: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_sock_info(sock: TIdC_INT; type_: BIO_sock_info_type; info: PBIO_sock_info_u): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function BIO_socket(domain: TIdC_INT; socktype: TIdC_INT; protocol: TIdC_INT; options: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_connect(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_bind(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_listen(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_accept_ex(accept_sock: TIdC_INT; addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function BIO_closesocket(sock: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function BIO_new_socket(sock: TIdC_INT; close_flag: TIdC_INT): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_new_connect(const host_port: PIdAnsiChar): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_new_accept(const host_port: PIdAnsiChar): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_new_fd(fd: TIdC_INT; close_flag: TIdC_INT): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_new_bio_pair(bio1: PPBIO; writebuf1: TIdC_SIZET; bio2: PPBIO; writebuf2: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* + * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints. + * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. Size 0 uses default + * value. + *) + + procedure BIO_copy_next_retry(b: PBIO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// BIO_METHOD *BIO_meth_new(int type, const char *name); +// void BIO_meth_free(BIO_METHOD *biom); +// int (*BIO_meth_get_write(const BIO_METHOD *biom)) (BIO *, const char *, int); +// int (*BIO_meth_get_write_ex(const BIO_METHOD *biom)) (BIO *, const char *, TIdC_SIZET, +// TIdC_SIZET *); +// int BIO_meth_set_write(BIO_METHOD *biom, +// int (*write) (BIO *, const char *, int)); +// int BIO_meth_set_write_ex(BIO_METHOD *biom, +// int (*bwrite) (BIO *, const char *, TIdC_SIZET, TIdC_SIZET *)); +// int (*BIO_meth_get_read(const BIO_METHOD *biom)) (BIO *, char *, int); +// int (*BIO_meth_get_read_ex(const BIO_METHOD *biom)) (BIO *, char *, TIdC_SIZET, TIdC_SIZET *); +// int BIO_meth_set_read(BIO_METHOD *biom, +// int (*read) (BIO *, char *, int)); +// int BIO_meth_set_read_ex(BIO_METHOD *biom, +// int (*bread) (BIO *, char *, TIdC_SIZET, TIdC_SIZET *)); +// int (*BIO_meth_get_puts(const BIO_METHOD *biom)) (BIO *, const char *); +// int BIO_meth_set_puts(BIO_METHOD *biom, +// int (*puts) (BIO *, const char *)); +// int (*BIO_meth_get_gets(const BIO_METHOD *biom)) (BIO *, char *, int); +// int BIO_meth_set_gets(BIO_METHOD *biom, +// int (*gets) (BIO *, char *, int)); +// long (*BIO_meth_get_ctrl(const BIO_METHOD *biom)) (BIO *, int, long, void *); +// int BIO_meth_set_ctrl(BIO_METHOD *biom, +// long (*ctrl) (BIO *, int, long, void *)); +// int (*BIO_meth_get_create(const BIO_METHOD *bion)) (BIO *); +// int BIO_meth_set_create(BIO_METHOD *biom, int (*create) (BIO *)); +// int (*BIO_meth_get_destroy(const BIO_METHOD *biom)) (BIO *); +// int BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy) (BIO *)); +// long (*BIO_meth_get_callback_ctrl(const BIO_METHOD *biom)) +// (BIO *, int, BIO_info_cb *); +// int BIO_meth_set_callback_ctrl(BIO_METHOD *biom, +// long (*callback_ctrl) (BIO *, int, +// BIO_info_cb *)); + +function BIO_get_flags(const b: PBIO): TIdC_INT; {removed 1.0.0} +procedure BIO_set_retry_special(b: PBIO); {removed 1.0.0} +procedure BIO_set_retry_read(b: PBIO); {removed 1.0.0} +procedure BIO_set_retry_write(b: PBIO); {removed 1.0.0} +procedure BIO_clear_retry_flags(b: PBIO); {removed 1.0.0} +function BIO_get_retry_flags(b: PBIO): TIdC_INT; {removed 1.0.0} +function BIO_should_read(b: PBIO): TIdC_INT; {removed 1.0.0} +function BIO_should_write(b: PBIO): TIdC_INT; {removed 1.0.0} +function BIO_should_io_special(b: PBIO): TIdC_INT; {removed 1.0.0} +function BIO_retry_type(b: PBIO): TIdC_INT; {removed 1.0.0} +function BIO_should_retry(b: PBIO): TIdC_INT; {removed 1.0.0} +function BIO_do_connect(b: PBIO): TIdC_LONG; {removed 1.0.0} +function BIO_do_accept(b: PBIO): TIdC_LONG; {removed 1.0.0} +function BIO_do_handshake(b: PBIO): TIdC_LONG; {removed 1.0.0} +function BIO_get_mem_data(b: PBIO; pp: PIdAnsiChar) : TIdC_INT; {removed 1.0.0} +function BIO_set_mem_buf(b: PBIO; bm: PIdAnsiChar; c: TIdC_INT): TIdC_INT; {removed 1.0.0} +function BIO_get_mem_ptr(b: PBIO; pp: PIdAnsiChar): TIdC_INT; {removed 1.0.0} +function BIO_set_mem_eof_return(b: PBIO; v: TIdC_INT): TIdC_INT; {removed 1.0.0} +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + BIO_get_new_index_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_get_callback_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_set_callback_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_set_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_get_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_set_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_get_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_set_shutdown_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_get_shutdown_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_up_ref_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_read_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_write_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_set_next_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_set_retry_reason_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_s_secmem_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_f_linebuffer_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDR_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDR_rawmake_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDR_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDR_clear_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDR_family_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDR_rawaddress_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDR_rawport_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDR_hostname_string_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDR_service_string_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDR_path_string_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDRINFO_next_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDRINFO_family_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDRINFO_socktype_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDRINFO_protocol_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDRINFO_address_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_ADDRINFO_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_parse_hostserv_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_lookup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_lookup_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_sock_info_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_socket_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_connect_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_bind_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_listen_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_accept_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_closesocket_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + BIO_get_flags_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_set_retry_special_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_set_retry_read_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_set_retry_write_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_clear_retry_flags_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_get_retry_flags_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_should_read_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_should_write_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_should_io_special_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_retry_type_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_should_retry_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_do_connect_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_do_accept_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_do_handshake_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_get_mem_data_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_set_mem_buf_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_get_mem_ptr_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + BIO_set_mem_eof_return_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + +// # define BIO_get_flags(b) BIO_test_flags(b, ~(0x0)) +{$IFNDEF USE_EXTERNAL_LIBRARY} + +// # define BIO_get_flags(b) BIO_test_flags(b, ~(0x0)) +function _BIO_get_flags(const b: PBIO): TIdC_INT; cdecl; +begin + Result := BIO_test_flags(b, not $0); +end; + +//# define BIO_set_retry_special(b) \ +// BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY)) +procedure _BIO_set_retry_special(b: PBIO); cdecl; +begin + BIO_set_flags(b, BIO_FLAGS_IO_SPECIAL or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_set_retry_read(b) \ +// BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY)) +procedure _BIO_set_retry_read(b: PBIO); cdecl; +begin + BIO_set_flags(b, BIO_FLAGS_READ or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_set_retry_write(b) \ +// BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY)) +procedure _BIO_set_retry_write(b: PBIO); cdecl; +begin + BIO_set_flags(b, BIO_FLAGS_WRITE or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_clear_retry_flags(b) \ +// BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY)) +procedure _BIO_clear_retry_flags(b: PBIO); cdecl; +begin + BIO_clear_flags(b, BIO_FLAGS_RWS or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_get_retry_flags(b) \ +// BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY)) +function _BIO_get_retry_flags(b: PBIO): TIdC_INT; cdecl; +begin + Result := BIO_test_flags(b, BIO_FLAGS_RWS or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_should_read(a) BIO_test_flags(a, BIO_FLAGS_READ) +function _BIO_should_read(b: PBIO): TIdC_INT; cdecl; +begin + Result := BIO_test_flags(b, BIO_FLAGS_READ); +end; + +//# define BIO_should_write(a) BIO_test_flags(a, BIO_FLAGS_WRITE) +function _BIO_should_write(b: PBIO): TIdC_INT; cdecl; +begin + Result := BIO_test_flags(b, BIO_FLAGS_WRITE); +end; + +//# define BIO_should_io_special(a) BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL) +function _BIO_should_io_special(b: PBIO): TIdC_INT; cdecl; +begin + Result := BIO_test_flags(b, BIO_FLAGS_IO_SPECIAL); +end; + +//# define BIO_retry_type(a) BIO_test_flags(a, BIO_FLAGS_RWS) +function _BIO_retry_type(b: PBIO): TIdC_INT; cdecl; +begin + Result := BIO_test_flags(b, BIO_FLAGS_RWS); +end; + +//# define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY) +function _BIO_should_retry(b: PBIO): TIdC_INT; cdecl; +begin + Result := BIO_test_flags(b, BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_do_connect(b) BIO_do_handshake(b) +function _BIO_do_connect(b: PBIO): TIdC_LONG; cdecl; +begin + Result := BIO_do_handshake(b); +end; + +//# define BIO_do_accept(b) BIO_do_handshake(b) +function _BIO_do_accept(b: PBIO): TIdC_LONG; cdecl; +begin + Result := BIO_do_handshake(b); +end; + +//# define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL) +function _BIO_do_handshake(b: PBIO): TIdC_LONG; cdecl; +begin + Result := BIO_ctrl(b, BIO_C_DO_STATE_MACHINE, 0, nil); +end; + +//# define BIO_get_mem_data(b,pp) BIO_ctrl(b,BIO_CTRL_INFO,0,(char (pp)) +function _BIO_get_mem_data(b: PBIO; pp: PIdAnsiChar) : TIdC_INT; cdecl; +begin + Result := BIO_ctrl(b, BIO_CTRL_INFO, 0, pp); +end; + +//# define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char (bm)) +function _BIO_set_mem_buf(b: PBIO; bm: PIdAnsiChar; c: TIdC_INT): TIdC_INT; cdecl; +begin + Result := BIO_ctrl(b, BIO_C_SET_BUF_MEM, c, bm); +end; + +//# define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char (pp)) +function _BIO_get_mem_ptr(b: PBIO; pp: PIdAnsiChar): TIdC_INT; cdecl; +begin + Result := BIO_ctrl(b, BIO_C_GET_BUF_MEM_PTR, 0, pp); +end; + +//# define BIO_set_mem_eof_return(b,v) BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,0) +function _BIO_set_mem_eof_return(b: PBIO; v: TIdC_INT): TIdC_INT; cdecl; +begin + Result := BIO_ctrl(b, BIO_C_SET_BUF_MEM_EOF_RETURN, v, nil); +end; + +{$WARN NO_RETVAL OFF} +function ERR_BIO_get_flags(const b: PBIO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_get_flags'); +end; + + +procedure ERR_BIO_set_retry_special(b: PBIO); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_retry_special'); +end; + + +procedure ERR_BIO_set_retry_read(b: PBIO); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_retry_read'); +end; + + +procedure ERR_BIO_set_retry_write(b: PBIO); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_retry_write'); +end; + + +procedure ERR_BIO_clear_retry_flags(b: PBIO); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_clear_retry_flags'); +end; + + +function ERR_BIO_get_retry_flags(b: PBIO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_get_retry_flags'); +end; + + +function ERR_BIO_should_read(b: PBIO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_should_read'); +end; + + +function ERR_BIO_should_write(b: PBIO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_should_write'); +end; + + +function ERR_BIO_should_io_special(b: PBIO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_should_io_special'); +end; + + +function ERR_BIO_retry_type(b: PBIO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_retry_type'); +end; + + +function ERR_BIO_should_retry(b: PBIO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_should_retry'); +end; + + +function ERR_BIO_do_connect(b: PBIO): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_do_connect'); +end; + + +function ERR_BIO_do_accept(b: PBIO): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_do_accept'); +end; + + +function ERR_BIO_do_handshake(b: PBIO): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_do_handshake'); +end; + + +function ERR_BIO_get_mem_data(b: PBIO; pp: PIdAnsiChar) : TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_get_mem_data'); +end; + + +function ERR_BIO_set_mem_buf(b: PBIO; bm: PIdAnsiChar; c: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_mem_buf'); +end; + + +function ERR_BIO_get_mem_ptr(b: PBIO; pp: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_get_mem_ptr'); +end; + + +function ERR_BIO_set_mem_eof_return(b: PBIO; v: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_mem_eof_return'); +end; + + +function ERR_BIO_get_new_index: TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_get_new_index'); +end; + + +function ERR_BIO_get_callback_ex(b: PBIO): BIO_callback_fn_ex; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_get_callback_ex'); +end; + + +procedure ERR_BIO_set_callback_ex(b: PBIO; callback: BIO_callback_fn_ex); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_callback_ex'); +end; + + +procedure ERR_BIO_set_data(a: PBIO; ptr: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_data'); +end; + + +function ERR_BIO_get_data(a: PBIO): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_get_data'); +end; + + +procedure ERR_BIO_set_init(a: PBIO; init: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_init'); +end; + + +function ERR_BIO_get_init(a: PBIO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_get_init'); +end; + + +procedure ERR_BIO_set_shutdown(a: PBIO; shut: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_shutdown'); +end; + + +function ERR_BIO_get_shutdown(a: PBIO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_get_shutdown'); +end; + + +function ERR_BIO_up_ref(a: PBIO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_up_ref'); +end; + + +function ERR_BIO_read_ex(b: PBIO; data: Pointer; dlen: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_read_ex'); +end; + + +function ERR_BIO_write_ex(b: PBIO; const data: Pointer; dlen: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_write_ex'); +end; + + +procedure ERR_BIO_set_next(b: PBIO; next: PBIO); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_next'); +end; + + +procedure ERR_BIO_set_retry_reason(bio: PBIO; reason: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_retry_reason'); +end; + + +function ERR_BIO_s_secmem: PBIO_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_s_secmem'); +end; + + +function ERR_BIO_f_linebuffer: PBIO_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_f_linebuffer'); +end; + + +function ERR_BIO_ADDR_new: PBIO_ADDR; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDR_new'); +end; + + +function ERR_BIO_ADDR_rawmake(ap: PBIO_ADDR; familiy: TIdC_INT; const where: Pointer; wherelen: TIdC_SIZET; port: TIdC_SHORT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDR_rawmake'); +end; + + +procedure ERR_BIO_ADDR_free(a: PBIO_ADDR); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDR_free'); +end; + + +procedure ERR_BIO_ADDR_clear(ap: PBIO_ADDR); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDR_clear'); +end; + + +function ERR_BIO_ADDR_family(const ap: PBIO_ADDR): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDR_family'); +end; + + +function ERR_BIO_ADDR_rawaddress(const ap: PBIO_ADDR; p: Pointer; l: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDR_rawaddress'); +end; + + +function ERR_BIO_ADDR_rawport(const ap: PBIO_ADDR): TIdC_SHORT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDR_rawport'); +end; + + +function ERR_BIO_ADDR_hostname_string(const ap: PBIO_ADDR; numeric: TIdC_INT): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDR_hostname_string'); +end; + + +function ERR_BIO_ADDR_service_string(const ap: PBIO_ADDR; numeric: TIdC_INT): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDR_service_string'); +end; + + +function ERR_BIO_ADDR_path_string(const ap: PBIO_ADDR): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDR_path_string'); +end; + + +function ERR_BIO_ADDRINFO_next(const bai: PBIO_ADDRINFO): PBIO_ADDRINFO; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDRINFO_next'); +end; + + +function ERR_BIO_ADDRINFO_family(const bai: PBIO_ADDRINFO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDRINFO_family'); +end; + + +function ERR_BIO_ADDRINFO_socktype(const bai: PBIO_ADDRINFO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDRINFO_socktype'); +end; + + +function ERR_BIO_ADDRINFO_protocol(const bai: PBIO_ADDRINFO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDRINFO_protocol'); +end; + + +function ERR_BIO_ADDRINFO_address(const bai: PBIO_ADDRINFO): PBIO_ADDR; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDRINFO_address'); +end; + + +procedure ERR_BIO_ADDRINFO_free(bai: PBIO_ADDRINFO); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_ADDRINFO_free'); +end; + + +function ERR_BIO_parse_hostserv(const hostserv: PIdAnsiChar; host: PPIdAnsiChar; service: PPIdAnsiChar; hostserv_prio: BIO_hostserv_priorities): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_parse_hostserv'); +end; + + +function ERR_BIO_lookup(const host: PIdAnsiChar; const service: PIdAnsiChar; lookup_type: BIO_lookup_type; family: TIdC_INT; socktype: TIdC_INT; res: PPBIO_ADDRINFO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_lookup'); +end; + + +function ERR_BIO_lookup_ex(const host: PIdAnsiChar; const service: PIdAnsiChar; lookup_type: TIdC_INT; family: TIdC_INT; socktype: TIdC_INT; protocol: TIdC_INT; res: PPBIO_ADDRINFO): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_lookup_ex'); +end; + + +function ERR_BIO_sock_info(sock: TIdC_INT; type_: BIO_sock_info_type; info: PBIO_sock_info_u): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_sock_info'); +end; + + +function ERR_BIO_socket(domain: TIdC_INT; socktype: TIdC_INT; protocol: TIdC_INT; options: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_socket'); +end; + + +function ERR_BIO_connect(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_connect'); +end; + + +function ERR_BIO_bind(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_bind'); +end; + + +function ERR_BIO_listen(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_listen'); +end; + + +function ERR_BIO_accept_ex(accept_sock: TIdC_INT; addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_accept_ex'); +end; + + +function ERR_BIO_closesocket(sock: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_closesocket'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + BIO_set_flags := LoadFunction('BIO_set_flags',AFailed); + BIO_test_flags := LoadFunction('BIO_test_flags',AFailed); + BIO_clear_flags := LoadFunction('BIO_clear_flags',AFailed); + BIO_get_callback := LoadFunction('BIO_get_callback',AFailed); + BIO_set_callback := LoadFunction('BIO_set_callback',AFailed); + BIO_get_callback_arg := LoadFunction('BIO_get_callback_arg',AFailed); + BIO_set_callback_arg := LoadFunction('BIO_set_callback_arg',AFailed); + BIO_method_name := LoadFunction('BIO_method_name',AFailed); + BIO_method_type := LoadFunction('BIO_method_type',AFailed); + BIO_ctrl_pending := LoadFunction('BIO_ctrl_pending',AFailed); + BIO_ctrl_wpending := LoadFunction('BIO_ctrl_wpending',AFailed); + BIO_ctrl_get_write_guarantee := LoadFunction('BIO_ctrl_get_write_guarantee',AFailed); + BIO_ctrl_get_read_request := LoadFunction('BIO_ctrl_get_read_request',AFailed); + BIO_ctrl_reset_read_request := LoadFunction('BIO_ctrl_reset_read_request',AFailed); + BIO_set_ex_data := LoadFunction('BIO_set_ex_data',AFailed); + BIO_get_ex_data := LoadFunction('BIO_get_ex_data',AFailed); + BIO_number_read := LoadFunction('BIO_number_read',AFailed); + BIO_number_written := LoadFunction('BIO_number_written',AFailed); + BIO_s_file := LoadFunction('BIO_s_file',AFailed); + BIO_new_file := LoadFunction('BIO_new_file',AFailed); + BIO_new := LoadFunction('BIO_new',AFailed); + BIO_free := LoadFunction('BIO_free',AFailed); + BIO_vfree := LoadFunction('BIO_vfree',AFailed); + BIO_read := LoadFunction('BIO_read',AFailed); + BIO_gets := LoadFunction('BIO_gets',AFailed); + BIO_write := LoadFunction('BIO_write',AFailed); + BIO_puts := LoadFunction('BIO_puts',AFailed); + BIO_indent := LoadFunction('BIO_indent',AFailed); + BIO_ctrl := LoadFunction('BIO_ctrl',AFailed); + BIO_callback_ctrl := LoadFunction('BIO_callback_ctrl',AFailed); + BIO_ptr_ctrl := LoadFunction('BIO_ptr_ctrl',AFailed); + BIO_int_ctrl := LoadFunction('BIO_int_ctrl',AFailed); + BIO_push := LoadFunction('BIO_push',AFailed); + BIO_pop := LoadFunction('BIO_pop',AFailed); + BIO_free_all := LoadFunction('BIO_free_all',AFailed); + BIO_find_type := LoadFunction('BIO_find_type',AFailed); + BIO_next := LoadFunction('BIO_next',AFailed); + BIO_get_retry_BIO := LoadFunction('BIO_get_retry_BIO',AFailed); + BIO_get_retry_reason := LoadFunction('BIO_get_retry_reason',AFailed); + BIO_dup_chain := LoadFunction('BIO_dup_chain',AFailed); + BIO_nread0 := LoadFunction('BIO_nread0',AFailed); + BIO_nread := LoadFunction('BIO_nread',AFailed); + BIO_nwrite0 := LoadFunction('BIO_nwrite0',AFailed); + BIO_nwrite := LoadFunction('BIO_nwrite',AFailed); + BIO_debug_callback := LoadFunction('BIO_debug_callback',AFailed); + BIO_s_mem := LoadFunction('BIO_s_mem',AFailed); + BIO_new_mem_buf := LoadFunction('BIO_new_mem_buf',AFailed); + BIO_s_socket := LoadFunction('BIO_s_socket',AFailed); + BIO_s_connect := LoadFunction('BIO_s_connect',AFailed); + BIO_s_accept := LoadFunction('BIO_s_accept',AFailed); + BIO_s_fd := LoadFunction('BIO_s_fd',AFailed); + BIO_s_log := LoadFunction('BIO_s_log',AFailed); + BIO_s_bio := LoadFunction('BIO_s_bio',AFailed); + BIO_s_null := LoadFunction('BIO_s_null',AFailed); + BIO_f_null := LoadFunction('BIO_f_null',AFailed); + BIO_f_buffer := LoadFunction('BIO_f_buffer',AFailed); + BIO_f_nbio_test := LoadFunction('BIO_f_nbio_test',AFailed); + BIO_s_datagram := LoadFunction('BIO_s_datagram',AFailed); + BIO_dgram_non_fatal_error := LoadFunction('BIO_dgram_non_fatal_error',AFailed); + BIO_new_dgram := LoadFunction('BIO_new_dgram',AFailed); + BIO_sock_should_retry := LoadFunction('BIO_sock_should_retry',AFailed); + BIO_sock_non_fatal_error := LoadFunction('BIO_sock_non_fatal_error',AFailed); + BIO_fd_should_retry := LoadFunction('BIO_fd_should_retry',AFailed); + BIO_fd_non_fatal_error := LoadFunction('BIO_fd_non_fatal_error',AFailed); + BIO_dump := LoadFunction('BIO_dump',AFailed); + BIO_dump_indent := LoadFunction('BIO_dump_indent',AFailed); + BIO_hex_string := LoadFunction('BIO_hex_string',AFailed); + BIO_sock_error := LoadFunction('BIO_sock_error',AFailed); + BIO_socket_ioctl := LoadFunction('BIO_socket_ioctl',AFailed); + BIO_socket_nbio := LoadFunction('BIO_socket_nbio',AFailed); + BIO_sock_init := LoadFunction('BIO_sock_init',AFailed); + BIO_set_tcp_ndelay := LoadFunction('BIO_set_tcp_ndelay',AFailed); + BIO_new_socket := LoadFunction('BIO_new_socket',AFailed); + BIO_new_connect := LoadFunction('BIO_new_connect',AFailed); + BIO_new_accept := LoadFunction('BIO_new_accept',AFailed); + BIO_new_fd := LoadFunction('BIO_new_fd',AFailed); + BIO_new_bio_pair := LoadFunction('BIO_new_bio_pair',AFailed); + BIO_copy_next_retry := LoadFunction('BIO_copy_next_retry',AFailed); + BIO_get_flags := LoadFunction('BIO_get_flags',nil); {removed 1.0.0} + BIO_set_retry_special := LoadFunction('BIO_set_retry_special',nil); {removed 1.0.0} + BIO_set_retry_read := LoadFunction('BIO_set_retry_read',nil); {removed 1.0.0} + BIO_set_retry_write := LoadFunction('BIO_set_retry_write',nil); {removed 1.0.0} + BIO_clear_retry_flags := LoadFunction('BIO_clear_retry_flags',nil); {removed 1.0.0} + BIO_get_retry_flags := LoadFunction('BIO_get_retry_flags',nil); {removed 1.0.0} + BIO_should_read := LoadFunction('BIO_should_read',nil); {removed 1.0.0} + BIO_should_write := LoadFunction('BIO_should_write',nil); {removed 1.0.0} + BIO_should_io_special := LoadFunction('BIO_should_io_special',nil); {removed 1.0.0} + BIO_retry_type := LoadFunction('BIO_retry_type',nil); {removed 1.0.0} + BIO_should_retry := LoadFunction('BIO_should_retry',nil); {removed 1.0.0} + BIO_do_connect := LoadFunction('BIO_do_connect',nil); {removed 1.0.0} + BIO_do_accept := LoadFunction('BIO_do_accept',nil); {removed 1.0.0} + BIO_do_handshake := LoadFunction('BIO_do_handshake',nil); {removed 1.0.0} + BIO_get_mem_data := LoadFunction('BIO_get_mem_data',nil); {removed 1.0.0} + BIO_set_mem_buf := LoadFunction('BIO_set_mem_buf',nil); {removed 1.0.0} + BIO_get_mem_ptr := LoadFunction('BIO_get_mem_ptr',nil); {removed 1.0.0} + BIO_set_mem_eof_return := LoadFunction('BIO_set_mem_eof_return',nil); {removed 1.0.0} + BIO_get_new_index := LoadFunction('BIO_get_new_index',nil); {introduced 1.1.0} + BIO_get_callback_ex := LoadFunction('BIO_get_callback_ex',nil); {introduced 1.1.0} + BIO_set_callback_ex := LoadFunction('BIO_set_callback_ex',nil); {introduced 1.1.0} + BIO_set_data := LoadFunction('BIO_set_data',nil); {introduced 1.1.0} + BIO_get_data := LoadFunction('BIO_get_data',nil); {introduced 1.1.0} + BIO_set_init := LoadFunction('BIO_set_init',nil); {introduced 1.1.0} + BIO_get_init := LoadFunction('BIO_get_init',nil); {introduced 1.1.0} + BIO_set_shutdown := LoadFunction('BIO_set_shutdown',nil); {introduced 1.1.0} + BIO_get_shutdown := LoadFunction('BIO_get_shutdown',nil); {introduced 1.1.0} + BIO_up_ref := LoadFunction('BIO_up_ref',nil); {introduced 1.1.0} + BIO_read_ex := LoadFunction('BIO_read_ex',nil); {introduced 1.1.0} + BIO_write_ex := LoadFunction('BIO_write_ex',nil); {introduced 1.1.0} + BIO_set_next := LoadFunction('BIO_set_next',nil); {introduced 1.1.0} + BIO_set_retry_reason := LoadFunction('BIO_set_retry_reason',nil); {introduced 1.1.0} + BIO_s_secmem := LoadFunction('BIO_s_secmem',nil); {introduced 1.1.0} + BIO_f_linebuffer := LoadFunction('BIO_f_linebuffer',nil); {introduced 1.1.0} + BIO_ADDR_new := LoadFunction('BIO_ADDR_new',nil); {introduced 1.1.0} + BIO_ADDR_rawmake := LoadFunction('BIO_ADDR_rawmake',nil); {introduced 1.1.0} + BIO_ADDR_free := LoadFunction('BIO_ADDR_free',nil); {introduced 1.1.0} + BIO_ADDR_clear := LoadFunction('BIO_ADDR_clear',nil); {introduced 1.1.0} + BIO_ADDR_family := LoadFunction('BIO_ADDR_family',nil); {introduced 1.1.0} + BIO_ADDR_rawaddress := LoadFunction('BIO_ADDR_rawaddress',nil); {introduced 1.1.0} + BIO_ADDR_rawport := LoadFunction('BIO_ADDR_rawport',nil); {introduced 1.1.0} + BIO_ADDR_hostname_string := LoadFunction('BIO_ADDR_hostname_string',nil); {introduced 1.1.0} + BIO_ADDR_service_string := LoadFunction('BIO_ADDR_service_string',nil); {introduced 1.1.0} + BIO_ADDR_path_string := LoadFunction('BIO_ADDR_path_string',nil); {introduced 1.1.0} + BIO_ADDRINFO_next := LoadFunction('BIO_ADDRINFO_next',nil); {introduced 1.1.0} + BIO_ADDRINFO_family := LoadFunction('BIO_ADDRINFO_family',nil); {introduced 1.1.0} + BIO_ADDRINFO_socktype := LoadFunction('BIO_ADDRINFO_socktype',nil); {introduced 1.1.0} + BIO_ADDRINFO_protocol := LoadFunction('BIO_ADDRINFO_protocol',nil); {introduced 1.1.0} + BIO_ADDRINFO_address := LoadFunction('BIO_ADDRINFO_address',nil); {introduced 1.1.0} + BIO_ADDRINFO_free := LoadFunction('BIO_ADDRINFO_free',nil); {introduced 1.1.0} + BIO_parse_hostserv := LoadFunction('BIO_parse_hostserv',nil); {introduced 1.1.0} + BIO_lookup := LoadFunction('BIO_lookup',nil); {introduced 1.1.0} + BIO_lookup_ex := LoadFunction('BIO_lookup_ex',nil); {introduced 1.1.0} + BIO_sock_info := LoadFunction('BIO_sock_info',nil); {introduced 1.1.0} + BIO_socket := LoadFunction('BIO_socket',nil); {introduced 1.1.0} + BIO_connect := LoadFunction('BIO_connect',nil); {introduced 1.1.0} + BIO_bind := LoadFunction('BIO_bind',nil); {introduced 1.1.0} + BIO_listen := LoadFunction('BIO_listen',nil); {introduced 1.1.0} + BIO_accept_ex := LoadFunction('BIO_accept_ex',nil); {introduced 1.1.0} + BIO_closesocket := LoadFunction('BIO_closesocket',nil); {introduced 1.1.0} + if not assigned(BIO_get_flags) then + begin + {$if declared(BIO_get_flags_introduced)} + if LibVersion < BIO_get_flags_introduced then + {$if declared(FC_BIO_get_flags)} + BIO_get_flags := @FC_BIO_get_flags + {$else} + BIO_get_flags := @ERR_BIO_get_flags + {$ifend} + else + {$ifend} + {$if declared(BIO_get_flags_removed)} + if BIO_get_flags_removed <= LibVersion then + {$if declared(_BIO_get_flags)} + BIO_get_flags := @_BIO_get_flags + {$else} + {$IF declared(ERR_BIO_get_flags)} + BIO_get_flags := @ERR_BIO_get_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_get_flags) and Assigned(AFailed) then + AFailed.Add('BIO_get_flags'); + end; + + + if not assigned(BIO_set_retry_special) then + begin + {$if declared(BIO_set_retry_special_introduced)} + if LibVersion < BIO_set_retry_special_introduced then + {$if declared(FC_BIO_set_retry_special)} + BIO_set_retry_special := @FC_BIO_set_retry_special + {$else} + BIO_set_retry_special := @ERR_BIO_set_retry_special + {$ifend} + else + {$ifend} + {$if declared(BIO_set_retry_special_removed)} + if BIO_set_retry_special_removed <= LibVersion then + {$if declared(_BIO_set_retry_special)} + BIO_set_retry_special := @_BIO_set_retry_special + {$else} + {$IF declared(ERR_BIO_set_retry_special)} + BIO_set_retry_special := @ERR_BIO_set_retry_special + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_retry_special) and Assigned(AFailed) then + AFailed.Add('BIO_set_retry_special'); + end; + + + if not assigned(BIO_set_retry_read) then + begin + {$if declared(BIO_set_retry_read_introduced)} + if LibVersion < BIO_set_retry_read_introduced then + {$if declared(FC_BIO_set_retry_read)} + BIO_set_retry_read := @FC_BIO_set_retry_read + {$else} + BIO_set_retry_read := @ERR_BIO_set_retry_read + {$ifend} + else + {$ifend} + {$if declared(BIO_set_retry_read_removed)} + if BIO_set_retry_read_removed <= LibVersion then + {$if declared(_BIO_set_retry_read)} + BIO_set_retry_read := @_BIO_set_retry_read + {$else} + {$IF declared(ERR_BIO_set_retry_read)} + BIO_set_retry_read := @ERR_BIO_set_retry_read + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_retry_read) and Assigned(AFailed) then + AFailed.Add('BIO_set_retry_read'); + end; + + + if not assigned(BIO_set_retry_write) then + begin + {$if declared(BIO_set_retry_write_introduced)} + if LibVersion < BIO_set_retry_write_introduced then + {$if declared(FC_BIO_set_retry_write)} + BIO_set_retry_write := @FC_BIO_set_retry_write + {$else} + BIO_set_retry_write := @ERR_BIO_set_retry_write + {$ifend} + else + {$ifend} + {$if declared(BIO_set_retry_write_removed)} + if BIO_set_retry_write_removed <= LibVersion then + {$if declared(_BIO_set_retry_write)} + BIO_set_retry_write := @_BIO_set_retry_write + {$else} + {$IF declared(ERR_BIO_set_retry_write)} + BIO_set_retry_write := @ERR_BIO_set_retry_write + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_retry_write) and Assigned(AFailed) then + AFailed.Add('BIO_set_retry_write'); + end; + + + if not assigned(BIO_clear_retry_flags) then + begin + {$if declared(BIO_clear_retry_flags_introduced)} + if LibVersion < BIO_clear_retry_flags_introduced then + {$if declared(FC_BIO_clear_retry_flags)} + BIO_clear_retry_flags := @FC_BIO_clear_retry_flags + {$else} + BIO_clear_retry_flags := @ERR_BIO_clear_retry_flags + {$ifend} + else + {$ifend} + {$if declared(BIO_clear_retry_flags_removed)} + if BIO_clear_retry_flags_removed <= LibVersion then + {$if declared(_BIO_clear_retry_flags)} + BIO_clear_retry_flags := @_BIO_clear_retry_flags + {$else} + {$IF declared(ERR_BIO_clear_retry_flags)} + BIO_clear_retry_flags := @ERR_BIO_clear_retry_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_clear_retry_flags) and Assigned(AFailed) then + AFailed.Add('BIO_clear_retry_flags'); + end; + + + if not assigned(BIO_get_retry_flags) then + begin + {$if declared(BIO_get_retry_flags_introduced)} + if LibVersion < BIO_get_retry_flags_introduced then + {$if declared(FC_BIO_get_retry_flags)} + BIO_get_retry_flags := @FC_BIO_get_retry_flags + {$else} + BIO_get_retry_flags := @ERR_BIO_get_retry_flags + {$ifend} + else + {$ifend} + {$if declared(BIO_get_retry_flags_removed)} + if BIO_get_retry_flags_removed <= LibVersion then + {$if declared(_BIO_get_retry_flags)} + BIO_get_retry_flags := @_BIO_get_retry_flags + {$else} + {$IF declared(ERR_BIO_get_retry_flags)} + BIO_get_retry_flags := @ERR_BIO_get_retry_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_get_retry_flags) and Assigned(AFailed) then + AFailed.Add('BIO_get_retry_flags'); + end; + + + if not assigned(BIO_should_read) then + begin + {$if declared(BIO_should_read_introduced)} + if LibVersion < BIO_should_read_introduced then + {$if declared(FC_BIO_should_read)} + BIO_should_read := @FC_BIO_should_read + {$else} + BIO_should_read := @ERR_BIO_should_read + {$ifend} + else + {$ifend} + {$if declared(BIO_should_read_removed)} + if BIO_should_read_removed <= LibVersion then + {$if declared(_BIO_should_read)} + BIO_should_read := @_BIO_should_read + {$else} + {$IF declared(ERR_BIO_should_read)} + BIO_should_read := @ERR_BIO_should_read + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_should_read) and Assigned(AFailed) then + AFailed.Add('BIO_should_read'); + end; + + + if not assigned(BIO_should_write) then + begin + {$if declared(BIO_should_write_introduced)} + if LibVersion < BIO_should_write_introduced then + {$if declared(FC_BIO_should_write)} + BIO_should_write := @FC_BIO_should_write + {$else} + BIO_should_write := @ERR_BIO_should_write + {$ifend} + else + {$ifend} + {$if declared(BIO_should_write_removed)} + if BIO_should_write_removed <= LibVersion then + {$if declared(_BIO_should_write)} + BIO_should_write := @_BIO_should_write + {$else} + {$IF declared(ERR_BIO_should_write)} + BIO_should_write := @ERR_BIO_should_write + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_should_write) and Assigned(AFailed) then + AFailed.Add('BIO_should_write'); + end; + + + if not assigned(BIO_should_io_special) then + begin + {$if declared(BIO_should_io_special_introduced)} + if LibVersion < BIO_should_io_special_introduced then + {$if declared(FC_BIO_should_io_special)} + BIO_should_io_special := @FC_BIO_should_io_special + {$else} + BIO_should_io_special := @ERR_BIO_should_io_special + {$ifend} + else + {$ifend} + {$if declared(BIO_should_io_special_removed)} + if BIO_should_io_special_removed <= LibVersion then + {$if declared(_BIO_should_io_special)} + BIO_should_io_special := @_BIO_should_io_special + {$else} + {$IF declared(ERR_BIO_should_io_special)} + BIO_should_io_special := @ERR_BIO_should_io_special + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_should_io_special) and Assigned(AFailed) then + AFailed.Add('BIO_should_io_special'); + end; + + + if not assigned(BIO_retry_type) then + begin + {$if declared(BIO_retry_type_introduced)} + if LibVersion < BIO_retry_type_introduced then + {$if declared(FC_BIO_retry_type)} + BIO_retry_type := @FC_BIO_retry_type + {$else} + BIO_retry_type := @ERR_BIO_retry_type + {$ifend} + else + {$ifend} + {$if declared(BIO_retry_type_removed)} + if BIO_retry_type_removed <= LibVersion then + {$if declared(_BIO_retry_type)} + BIO_retry_type := @_BIO_retry_type + {$else} + {$IF declared(ERR_BIO_retry_type)} + BIO_retry_type := @ERR_BIO_retry_type + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_retry_type) and Assigned(AFailed) then + AFailed.Add('BIO_retry_type'); + end; + + + if not assigned(BIO_should_retry) then + begin + {$if declared(BIO_should_retry_introduced)} + if LibVersion < BIO_should_retry_introduced then + {$if declared(FC_BIO_should_retry)} + BIO_should_retry := @FC_BIO_should_retry + {$else} + BIO_should_retry := @ERR_BIO_should_retry + {$ifend} + else + {$ifend} + {$if declared(BIO_should_retry_removed)} + if BIO_should_retry_removed <= LibVersion then + {$if declared(_BIO_should_retry)} + BIO_should_retry := @_BIO_should_retry + {$else} + {$IF declared(ERR_BIO_should_retry)} + BIO_should_retry := @ERR_BIO_should_retry + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_should_retry) and Assigned(AFailed) then + AFailed.Add('BIO_should_retry'); + end; + + + if not assigned(BIO_do_connect) then + begin + {$if declared(BIO_do_connect_introduced)} + if LibVersion < BIO_do_connect_introduced then + {$if declared(FC_BIO_do_connect)} + BIO_do_connect := @FC_BIO_do_connect + {$else} + BIO_do_connect := @ERR_BIO_do_connect + {$ifend} + else + {$ifend} + {$if declared(BIO_do_connect_removed)} + if BIO_do_connect_removed <= LibVersion then + {$if declared(_BIO_do_connect)} + BIO_do_connect := @_BIO_do_connect + {$else} + {$IF declared(ERR_BIO_do_connect)} + BIO_do_connect := @ERR_BIO_do_connect + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_do_connect) and Assigned(AFailed) then + AFailed.Add('BIO_do_connect'); + end; + + + if not assigned(BIO_do_accept) then + begin + {$if declared(BIO_do_accept_introduced)} + if LibVersion < BIO_do_accept_introduced then + {$if declared(FC_BIO_do_accept)} + BIO_do_accept := @FC_BIO_do_accept + {$else} + BIO_do_accept := @ERR_BIO_do_accept + {$ifend} + else + {$ifend} + {$if declared(BIO_do_accept_removed)} + if BIO_do_accept_removed <= LibVersion then + {$if declared(_BIO_do_accept)} + BIO_do_accept := @_BIO_do_accept + {$else} + {$IF declared(ERR_BIO_do_accept)} + BIO_do_accept := @ERR_BIO_do_accept + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_do_accept) and Assigned(AFailed) then + AFailed.Add('BIO_do_accept'); + end; + + + if not assigned(BIO_do_handshake) then + begin + {$if declared(BIO_do_handshake_introduced)} + if LibVersion < BIO_do_handshake_introduced then + {$if declared(FC_BIO_do_handshake)} + BIO_do_handshake := @FC_BIO_do_handshake + {$else} + BIO_do_handshake := @ERR_BIO_do_handshake + {$ifend} + else + {$ifend} + {$if declared(BIO_do_handshake_removed)} + if BIO_do_handshake_removed <= LibVersion then + {$if declared(_BIO_do_handshake)} + BIO_do_handshake := @_BIO_do_handshake + {$else} + {$IF declared(ERR_BIO_do_handshake)} + BIO_do_handshake := @ERR_BIO_do_handshake + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_do_handshake) and Assigned(AFailed) then + AFailed.Add('BIO_do_handshake'); + end; + + + if not assigned(BIO_get_mem_data) then + begin + {$if declared(BIO_get_mem_data_introduced)} + if LibVersion < BIO_get_mem_data_introduced then + {$if declared(FC_BIO_get_mem_data)} + BIO_get_mem_data := @FC_BIO_get_mem_data + {$else} + BIO_get_mem_data := @ERR_BIO_get_mem_data + {$ifend} + else + {$ifend} + {$if declared(BIO_get_mem_data_removed)} + if BIO_get_mem_data_removed <= LibVersion then + {$if declared(_BIO_get_mem_data)} + BIO_get_mem_data := @_BIO_get_mem_data + {$else} + {$IF declared(ERR_BIO_get_mem_data)} + BIO_get_mem_data := @ERR_BIO_get_mem_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_get_mem_data) and Assigned(AFailed) then + AFailed.Add('BIO_get_mem_data'); + end; + + + if not assigned(BIO_set_mem_buf) then + begin + {$if declared(BIO_set_mem_buf_introduced)} + if LibVersion < BIO_set_mem_buf_introduced then + {$if declared(FC_BIO_set_mem_buf)} + BIO_set_mem_buf := @FC_BIO_set_mem_buf + {$else} + BIO_set_mem_buf := @ERR_BIO_set_mem_buf + {$ifend} + else + {$ifend} + {$if declared(BIO_set_mem_buf_removed)} + if BIO_set_mem_buf_removed <= LibVersion then + {$if declared(_BIO_set_mem_buf)} + BIO_set_mem_buf := @_BIO_set_mem_buf + {$else} + {$IF declared(ERR_BIO_set_mem_buf)} + BIO_set_mem_buf := @ERR_BIO_set_mem_buf + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_mem_buf) and Assigned(AFailed) then + AFailed.Add('BIO_set_mem_buf'); + end; + + + if not assigned(BIO_get_mem_ptr) then + begin + {$if declared(BIO_get_mem_ptr_introduced)} + if LibVersion < BIO_get_mem_ptr_introduced then + {$if declared(FC_BIO_get_mem_ptr)} + BIO_get_mem_ptr := @FC_BIO_get_mem_ptr + {$else} + BIO_get_mem_ptr := @ERR_BIO_get_mem_ptr + {$ifend} + else + {$ifend} + {$if declared(BIO_get_mem_ptr_removed)} + if BIO_get_mem_ptr_removed <= LibVersion then + {$if declared(_BIO_get_mem_ptr)} + BIO_get_mem_ptr := @_BIO_get_mem_ptr + {$else} + {$IF declared(ERR_BIO_get_mem_ptr)} + BIO_get_mem_ptr := @ERR_BIO_get_mem_ptr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_get_mem_ptr) and Assigned(AFailed) then + AFailed.Add('BIO_get_mem_ptr'); + end; + + + if not assigned(BIO_set_mem_eof_return) then + begin + {$if declared(BIO_set_mem_eof_return_introduced)} + if LibVersion < BIO_set_mem_eof_return_introduced then + {$if declared(FC_BIO_set_mem_eof_return)} + BIO_set_mem_eof_return := @FC_BIO_set_mem_eof_return + {$else} + BIO_set_mem_eof_return := @ERR_BIO_set_mem_eof_return + {$ifend} + else + {$ifend} + {$if declared(BIO_set_mem_eof_return_removed)} + if BIO_set_mem_eof_return_removed <= LibVersion then + {$if declared(_BIO_set_mem_eof_return)} + BIO_set_mem_eof_return := @_BIO_set_mem_eof_return + {$else} + {$IF declared(ERR_BIO_set_mem_eof_return)} + BIO_set_mem_eof_return := @ERR_BIO_set_mem_eof_return + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_mem_eof_return) and Assigned(AFailed) then + AFailed.Add('BIO_set_mem_eof_return'); + end; + + + if not assigned(BIO_get_new_index) then + begin + {$if declared(BIO_get_new_index_introduced)} + if LibVersion < BIO_get_new_index_introduced then + {$if declared(FC_BIO_get_new_index)} + BIO_get_new_index := @FC_BIO_get_new_index + {$else} + BIO_get_new_index := @ERR_BIO_get_new_index + {$ifend} + else + {$ifend} + {$if declared(BIO_get_new_index_removed)} + if BIO_get_new_index_removed <= LibVersion then + {$if declared(_BIO_get_new_index)} + BIO_get_new_index := @_BIO_get_new_index + {$else} + {$IF declared(ERR_BIO_get_new_index)} + BIO_get_new_index := @ERR_BIO_get_new_index + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_get_new_index) and Assigned(AFailed) then + AFailed.Add('BIO_get_new_index'); + end; + + + if not assigned(BIO_get_callback_ex) then + begin + {$if declared(BIO_get_callback_ex_introduced)} + if LibVersion < BIO_get_callback_ex_introduced then + {$if declared(FC_BIO_get_callback_ex)} + BIO_get_callback_ex := @FC_BIO_get_callback_ex + {$else} + BIO_get_callback_ex := @ERR_BIO_get_callback_ex + {$ifend} + else + {$ifend} + {$if declared(BIO_get_callback_ex_removed)} + if BIO_get_callback_ex_removed <= LibVersion then + {$if declared(_BIO_get_callback_ex)} + BIO_get_callback_ex := @_BIO_get_callback_ex + {$else} + {$IF declared(ERR_BIO_get_callback_ex)} + BIO_get_callback_ex := @ERR_BIO_get_callback_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_get_callback_ex) and Assigned(AFailed) then + AFailed.Add('BIO_get_callback_ex'); + end; + + + if not assigned(BIO_set_callback_ex) then + begin + {$if declared(BIO_set_callback_ex_introduced)} + if LibVersion < BIO_set_callback_ex_introduced then + {$if declared(FC_BIO_set_callback_ex)} + BIO_set_callback_ex := @FC_BIO_set_callback_ex + {$else} + BIO_set_callback_ex := @ERR_BIO_set_callback_ex + {$ifend} + else + {$ifend} + {$if declared(BIO_set_callback_ex_removed)} + if BIO_set_callback_ex_removed <= LibVersion then + {$if declared(_BIO_set_callback_ex)} + BIO_set_callback_ex := @_BIO_set_callback_ex + {$else} + {$IF declared(ERR_BIO_set_callback_ex)} + BIO_set_callback_ex := @ERR_BIO_set_callback_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_callback_ex) and Assigned(AFailed) then + AFailed.Add('BIO_set_callback_ex'); + end; + + + if not assigned(BIO_set_data) then + begin + {$if declared(BIO_set_data_introduced)} + if LibVersion < BIO_set_data_introduced then + {$if declared(FC_BIO_set_data)} + BIO_set_data := @FC_BIO_set_data + {$else} + BIO_set_data := @ERR_BIO_set_data + {$ifend} + else + {$ifend} + {$if declared(BIO_set_data_removed)} + if BIO_set_data_removed <= LibVersion then + {$if declared(_BIO_set_data)} + BIO_set_data := @_BIO_set_data + {$else} + {$IF declared(ERR_BIO_set_data)} + BIO_set_data := @ERR_BIO_set_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_data) and Assigned(AFailed) then + AFailed.Add('BIO_set_data'); + end; + + + if not assigned(BIO_get_data) then + begin + {$if declared(BIO_get_data_introduced)} + if LibVersion < BIO_get_data_introduced then + {$if declared(FC_BIO_get_data)} + BIO_get_data := @FC_BIO_get_data + {$else} + BIO_get_data := @ERR_BIO_get_data + {$ifend} + else + {$ifend} + {$if declared(BIO_get_data_removed)} + if BIO_get_data_removed <= LibVersion then + {$if declared(_BIO_get_data)} + BIO_get_data := @_BIO_get_data + {$else} + {$IF declared(ERR_BIO_get_data)} + BIO_get_data := @ERR_BIO_get_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_get_data) and Assigned(AFailed) then + AFailed.Add('BIO_get_data'); + end; + + + if not assigned(BIO_set_init) then + begin + {$if declared(BIO_set_init_introduced)} + if LibVersion < BIO_set_init_introduced then + {$if declared(FC_BIO_set_init)} + BIO_set_init := @FC_BIO_set_init + {$else} + BIO_set_init := @ERR_BIO_set_init + {$ifend} + else + {$ifend} + {$if declared(BIO_set_init_removed)} + if BIO_set_init_removed <= LibVersion then + {$if declared(_BIO_set_init)} + BIO_set_init := @_BIO_set_init + {$else} + {$IF declared(ERR_BIO_set_init)} + BIO_set_init := @ERR_BIO_set_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_init) and Assigned(AFailed) then + AFailed.Add('BIO_set_init'); + end; + + + if not assigned(BIO_get_init) then + begin + {$if declared(BIO_get_init_introduced)} + if LibVersion < BIO_get_init_introduced then + {$if declared(FC_BIO_get_init)} + BIO_get_init := @FC_BIO_get_init + {$else} + BIO_get_init := @ERR_BIO_get_init + {$ifend} + else + {$ifend} + {$if declared(BIO_get_init_removed)} + if BIO_get_init_removed <= LibVersion then + {$if declared(_BIO_get_init)} + BIO_get_init := @_BIO_get_init + {$else} + {$IF declared(ERR_BIO_get_init)} + BIO_get_init := @ERR_BIO_get_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_get_init) and Assigned(AFailed) then + AFailed.Add('BIO_get_init'); + end; + + + if not assigned(BIO_set_shutdown) then + begin + {$if declared(BIO_set_shutdown_introduced)} + if LibVersion < BIO_set_shutdown_introduced then + {$if declared(FC_BIO_set_shutdown)} + BIO_set_shutdown := @FC_BIO_set_shutdown + {$else} + BIO_set_shutdown := @ERR_BIO_set_shutdown + {$ifend} + else + {$ifend} + {$if declared(BIO_set_shutdown_removed)} + if BIO_set_shutdown_removed <= LibVersion then + {$if declared(_BIO_set_shutdown)} + BIO_set_shutdown := @_BIO_set_shutdown + {$else} + {$IF declared(ERR_BIO_set_shutdown)} + BIO_set_shutdown := @ERR_BIO_set_shutdown + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_shutdown) and Assigned(AFailed) then + AFailed.Add('BIO_set_shutdown'); + end; + + + if not assigned(BIO_get_shutdown) then + begin + {$if declared(BIO_get_shutdown_introduced)} + if LibVersion < BIO_get_shutdown_introduced then + {$if declared(FC_BIO_get_shutdown)} + BIO_get_shutdown := @FC_BIO_get_shutdown + {$else} + BIO_get_shutdown := @ERR_BIO_get_shutdown + {$ifend} + else + {$ifend} + {$if declared(BIO_get_shutdown_removed)} + if BIO_get_shutdown_removed <= LibVersion then + {$if declared(_BIO_get_shutdown)} + BIO_get_shutdown := @_BIO_get_shutdown + {$else} + {$IF declared(ERR_BIO_get_shutdown)} + BIO_get_shutdown := @ERR_BIO_get_shutdown + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_get_shutdown) and Assigned(AFailed) then + AFailed.Add('BIO_get_shutdown'); + end; + + + if not assigned(BIO_up_ref) then + begin + {$if declared(BIO_up_ref_introduced)} + if LibVersion < BIO_up_ref_introduced then + {$if declared(FC_BIO_up_ref)} + BIO_up_ref := @FC_BIO_up_ref + {$else} + BIO_up_ref := @ERR_BIO_up_ref + {$ifend} + else + {$ifend} + {$if declared(BIO_up_ref_removed)} + if BIO_up_ref_removed <= LibVersion then + {$if declared(_BIO_up_ref)} + BIO_up_ref := @_BIO_up_ref + {$else} + {$IF declared(ERR_BIO_up_ref)} + BIO_up_ref := @ERR_BIO_up_ref + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_up_ref) and Assigned(AFailed) then + AFailed.Add('BIO_up_ref'); + end; + + + if not assigned(BIO_read_ex) then + begin + {$if declared(BIO_read_ex_introduced)} + if LibVersion < BIO_read_ex_introduced then + {$if declared(FC_BIO_read_ex)} + BIO_read_ex := @FC_BIO_read_ex + {$else} + BIO_read_ex := @ERR_BIO_read_ex + {$ifend} + else + {$ifend} + {$if declared(BIO_read_ex_removed)} + if BIO_read_ex_removed <= LibVersion then + {$if declared(_BIO_read_ex)} + BIO_read_ex := @_BIO_read_ex + {$else} + {$IF declared(ERR_BIO_read_ex)} + BIO_read_ex := @ERR_BIO_read_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_read_ex) and Assigned(AFailed) then + AFailed.Add('BIO_read_ex'); + end; + + + if not assigned(BIO_write_ex) then + begin + {$if declared(BIO_write_ex_introduced)} + if LibVersion < BIO_write_ex_introduced then + {$if declared(FC_BIO_write_ex)} + BIO_write_ex := @FC_BIO_write_ex + {$else} + BIO_write_ex := @ERR_BIO_write_ex + {$ifend} + else + {$ifend} + {$if declared(BIO_write_ex_removed)} + if BIO_write_ex_removed <= LibVersion then + {$if declared(_BIO_write_ex)} + BIO_write_ex := @_BIO_write_ex + {$else} + {$IF declared(ERR_BIO_write_ex)} + BIO_write_ex := @ERR_BIO_write_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_write_ex) and Assigned(AFailed) then + AFailed.Add('BIO_write_ex'); + end; + + + if not assigned(BIO_set_next) then + begin + {$if declared(BIO_set_next_introduced)} + if LibVersion < BIO_set_next_introduced then + {$if declared(FC_BIO_set_next)} + BIO_set_next := @FC_BIO_set_next + {$else} + BIO_set_next := @ERR_BIO_set_next + {$ifend} + else + {$ifend} + {$if declared(BIO_set_next_removed)} + if BIO_set_next_removed <= LibVersion then + {$if declared(_BIO_set_next)} + BIO_set_next := @_BIO_set_next + {$else} + {$IF declared(ERR_BIO_set_next)} + BIO_set_next := @ERR_BIO_set_next + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_next) and Assigned(AFailed) then + AFailed.Add('BIO_set_next'); + end; + + + if not assigned(BIO_set_retry_reason) then + begin + {$if declared(BIO_set_retry_reason_introduced)} + if LibVersion < BIO_set_retry_reason_introduced then + {$if declared(FC_BIO_set_retry_reason)} + BIO_set_retry_reason := @FC_BIO_set_retry_reason + {$else} + BIO_set_retry_reason := @ERR_BIO_set_retry_reason + {$ifend} + else + {$ifend} + {$if declared(BIO_set_retry_reason_removed)} + if BIO_set_retry_reason_removed <= LibVersion then + {$if declared(_BIO_set_retry_reason)} + BIO_set_retry_reason := @_BIO_set_retry_reason + {$else} + {$IF declared(ERR_BIO_set_retry_reason)} + BIO_set_retry_reason := @ERR_BIO_set_retry_reason + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_retry_reason) and Assigned(AFailed) then + AFailed.Add('BIO_set_retry_reason'); + end; + + + if not assigned(BIO_s_secmem) then + begin + {$if declared(BIO_s_secmem_introduced)} + if LibVersion < BIO_s_secmem_introduced then + {$if declared(FC_BIO_s_secmem)} + BIO_s_secmem := @FC_BIO_s_secmem + {$else} + BIO_s_secmem := @ERR_BIO_s_secmem + {$ifend} + else + {$ifend} + {$if declared(BIO_s_secmem_removed)} + if BIO_s_secmem_removed <= LibVersion then + {$if declared(_BIO_s_secmem)} + BIO_s_secmem := @_BIO_s_secmem + {$else} + {$IF declared(ERR_BIO_s_secmem)} + BIO_s_secmem := @ERR_BIO_s_secmem + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_s_secmem) and Assigned(AFailed) then + AFailed.Add('BIO_s_secmem'); + end; + + + if not assigned(BIO_f_linebuffer) then + begin + {$if declared(BIO_f_linebuffer_introduced)} + if LibVersion < BIO_f_linebuffer_introduced then + {$if declared(FC_BIO_f_linebuffer)} + BIO_f_linebuffer := @FC_BIO_f_linebuffer + {$else} + BIO_f_linebuffer := @ERR_BIO_f_linebuffer + {$ifend} + else + {$ifend} + {$if declared(BIO_f_linebuffer_removed)} + if BIO_f_linebuffer_removed <= LibVersion then + {$if declared(_BIO_f_linebuffer)} + BIO_f_linebuffer := @_BIO_f_linebuffer + {$else} + {$IF declared(ERR_BIO_f_linebuffer)} + BIO_f_linebuffer := @ERR_BIO_f_linebuffer + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_f_linebuffer) and Assigned(AFailed) then + AFailed.Add('BIO_f_linebuffer'); + end; + + + if not assigned(BIO_ADDR_new) then + begin + {$if declared(BIO_ADDR_new_introduced)} + if LibVersion < BIO_ADDR_new_introduced then + {$if declared(FC_BIO_ADDR_new)} + BIO_ADDR_new := @FC_BIO_ADDR_new + {$else} + BIO_ADDR_new := @ERR_BIO_ADDR_new + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDR_new_removed)} + if BIO_ADDR_new_removed <= LibVersion then + {$if declared(_BIO_ADDR_new)} + BIO_ADDR_new := @_BIO_ADDR_new + {$else} + {$IF declared(ERR_BIO_ADDR_new)} + BIO_ADDR_new := @ERR_BIO_ADDR_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDR_new) and Assigned(AFailed) then + AFailed.Add('BIO_ADDR_new'); + end; + + + if not assigned(BIO_ADDR_rawmake) then + begin + {$if declared(BIO_ADDR_rawmake_introduced)} + if LibVersion < BIO_ADDR_rawmake_introduced then + {$if declared(FC_BIO_ADDR_rawmake)} + BIO_ADDR_rawmake := @FC_BIO_ADDR_rawmake + {$else} + BIO_ADDR_rawmake := @ERR_BIO_ADDR_rawmake + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDR_rawmake_removed)} + if BIO_ADDR_rawmake_removed <= LibVersion then + {$if declared(_BIO_ADDR_rawmake)} + BIO_ADDR_rawmake := @_BIO_ADDR_rawmake + {$else} + {$IF declared(ERR_BIO_ADDR_rawmake)} + BIO_ADDR_rawmake := @ERR_BIO_ADDR_rawmake + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDR_rawmake) and Assigned(AFailed) then + AFailed.Add('BIO_ADDR_rawmake'); + end; + + + if not assigned(BIO_ADDR_free) then + begin + {$if declared(BIO_ADDR_free_introduced)} + if LibVersion < BIO_ADDR_free_introduced then + {$if declared(FC_BIO_ADDR_free)} + BIO_ADDR_free := @FC_BIO_ADDR_free + {$else} + BIO_ADDR_free := @ERR_BIO_ADDR_free + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDR_free_removed)} + if BIO_ADDR_free_removed <= LibVersion then + {$if declared(_BIO_ADDR_free)} + BIO_ADDR_free := @_BIO_ADDR_free + {$else} + {$IF declared(ERR_BIO_ADDR_free)} + BIO_ADDR_free := @ERR_BIO_ADDR_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDR_free) and Assigned(AFailed) then + AFailed.Add('BIO_ADDR_free'); + end; + + + if not assigned(BIO_ADDR_clear) then + begin + {$if declared(BIO_ADDR_clear_introduced)} + if LibVersion < BIO_ADDR_clear_introduced then + {$if declared(FC_BIO_ADDR_clear)} + BIO_ADDR_clear := @FC_BIO_ADDR_clear + {$else} + BIO_ADDR_clear := @ERR_BIO_ADDR_clear + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDR_clear_removed)} + if BIO_ADDR_clear_removed <= LibVersion then + {$if declared(_BIO_ADDR_clear)} + BIO_ADDR_clear := @_BIO_ADDR_clear + {$else} + {$IF declared(ERR_BIO_ADDR_clear)} + BIO_ADDR_clear := @ERR_BIO_ADDR_clear + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDR_clear) and Assigned(AFailed) then + AFailed.Add('BIO_ADDR_clear'); + end; + + + if not assigned(BIO_ADDR_family) then + begin + {$if declared(BIO_ADDR_family_introduced)} + if LibVersion < BIO_ADDR_family_introduced then + {$if declared(FC_BIO_ADDR_family)} + BIO_ADDR_family := @FC_BIO_ADDR_family + {$else} + BIO_ADDR_family := @ERR_BIO_ADDR_family + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDR_family_removed)} + if BIO_ADDR_family_removed <= LibVersion then + {$if declared(_BIO_ADDR_family)} + BIO_ADDR_family := @_BIO_ADDR_family + {$else} + {$IF declared(ERR_BIO_ADDR_family)} + BIO_ADDR_family := @ERR_BIO_ADDR_family + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDR_family) and Assigned(AFailed) then + AFailed.Add('BIO_ADDR_family'); + end; + + + if not assigned(BIO_ADDR_rawaddress) then + begin + {$if declared(BIO_ADDR_rawaddress_introduced)} + if LibVersion < BIO_ADDR_rawaddress_introduced then + {$if declared(FC_BIO_ADDR_rawaddress)} + BIO_ADDR_rawaddress := @FC_BIO_ADDR_rawaddress + {$else} + BIO_ADDR_rawaddress := @ERR_BIO_ADDR_rawaddress + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDR_rawaddress_removed)} + if BIO_ADDR_rawaddress_removed <= LibVersion then + {$if declared(_BIO_ADDR_rawaddress)} + BIO_ADDR_rawaddress := @_BIO_ADDR_rawaddress + {$else} + {$IF declared(ERR_BIO_ADDR_rawaddress)} + BIO_ADDR_rawaddress := @ERR_BIO_ADDR_rawaddress + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDR_rawaddress) and Assigned(AFailed) then + AFailed.Add('BIO_ADDR_rawaddress'); + end; + + + if not assigned(BIO_ADDR_rawport) then + begin + {$if declared(BIO_ADDR_rawport_introduced)} + if LibVersion < BIO_ADDR_rawport_introduced then + {$if declared(FC_BIO_ADDR_rawport)} + BIO_ADDR_rawport := @FC_BIO_ADDR_rawport + {$else} + BIO_ADDR_rawport := @ERR_BIO_ADDR_rawport + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDR_rawport_removed)} + if BIO_ADDR_rawport_removed <= LibVersion then + {$if declared(_BIO_ADDR_rawport)} + BIO_ADDR_rawport := @_BIO_ADDR_rawport + {$else} + {$IF declared(ERR_BIO_ADDR_rawport)} + BIO_ADDR_rawport := @ERR_BIO_ADDR_rawport + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDR_rawport) and Assigned(AFailed) then + AFailed.Add('BIO_ADDR_rawport'); + end; + + + if not assigned(BIO_ADDR_hostname_string) then + begin + {$if declared(BIO_ADDR_hostname_string_introduced)} + if LibVersion < BIO_ADDR_hostname_string_introduced then + {$if declared(FC_BIO_ADDR_hostname_string)} + BIO_ADDR_hostname_string := @FC_BIO_ADDR_hostname_string + {$else} + BIO_ADDR_hostname_string := @ERR_BIO_ADDR_hostname_string + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDR_hostname_string_removed)} + if BIO_ADDR_hostname_string_removed <= LibVersion then + {$if declared(_BIO_ADDR_hostname_string)} + BIO_ADDR_hostname_string := @_BIO_ADDR_hostname_string + {$else} + {$IF declared(ERR_BIO_ADDR_hostname_string)} + BIO_ADDR_hostname_string := @ERR_BIO_ADDR_hostname_string + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDR_hostname_string) and Assigned(AFailed) then + AFailed.Add('BIO_ADDR_hostname_string'); + end; + + + if not assigned(BIO_ADDR_service_string) then + begin + {$if declared(BIO_ADDR_service_string_introduced)} + if LibVersion < BIO_ADDR_service_string_introduced then + {$if declared(FC_BIO_ADDR_service_string)} + BIO_ADDR_service_string := @FC_BIO_ADDR_service_string + {$else} + BIO_ADDR_service_string := @ERR_BIO_ADDR_service_string + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDR_service_string_removed)} + if BIO_ADDR_service_string_removed <= LibVersion then + {$if declared(_BIO_ADDR_service_string)} + BIO_ADDR_service_string := @_BIO_ADDR_service_string + {$else} + {$IF declared(ERR_BIO_ADDR_service_string)} + BIO_ADDR_service_string := @ERR_BIO_ADDR_service_string + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDR_service_string) and Assigned(AFailed) then + AFailed.Add('BIO_ADDR_service_string'); + end; + + + if not assigned(BIO_ADDR_path_string) then + begin + {$if declared(BIO_ADDR_path_string_introduced)} + if LibVersion < BIO_ADDR_path_string_introduced then + {$if declared(FC_BIO_ADDR_path_string)} + BIO_ADDR_path_string := @FC_BIO_ADDR_path_string + {$else} + BIO_ADDR_path_string := @ERR_BIO_ADDR_path_string + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDR_path_string_removed)} + if BIO_ADDR_path_string_removed <= LibVersion then + {$if declared(_BIO_ADDR_path_string)} + BIO_ADDR_path_string := @_BIO_ADDR_path_string + {$else} + {$IF declared(ERR_BIO_ADDR_path_string)} + BIO_ADDR_path_string := @ERR_BIO_ADDR_path_string + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDR_path_string) and Assigned(AFailed) then + AFailed.Add('BIO_ADDR_path_string'); + end; + + + if not assigned(BIO_ADDRINFO_next) then + begin + {$if declared(BIO_ADDRINFO_next_introduced)} + if LibVersion < BIO_ADDRINFO_next_introduced then + {$if declared(FC_BIO_ADDRINFO_next)} + BIO_ADDRINFO_next := @FC_BIO_ADDRINFO_next + {$else} + BIO_ADDRINFO_next := @ERR_BIO_ADDRINFO_next + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDRINFO_next_removed)} + if BIO_ADDRINFO_next_removed <= LibVersion then + {$if declared(_BIO_ADDRINFO_next)} + BIO_ADDRINFO_next := @_BIO_ADDRINFO_next + {$else} + {$IF declared(ERR_BIO_ADDRINFO_next)} + BIO_ADDRINFO_next := @ERR_BIO_ADDRINFO_next + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDRINFO_next) and Assigned(AFailed) then + AFailed.Add('BIO_ADDRINFO_next'); + end; + + + if not assigned(BIO_ADDRINFO_family) then + begin + {$if declared(BIO_ADDRINFO_family_introduced)} + if LibVersion < BIO_ADDRINFO_family_introduced then + {$if declared(FC_BIO_ADDRINFO_family)} + BIO_ADDRINFO_family := @FC_BIO_ADDRINFO_family + {$else} + BIO_ADDRINFO_family := @ERR_BIO_ADDRINFO_family + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDRINFO_family_removed)} + if BIO_ADDRINFO_family_removed <= LibVersion then + {$if declared(_BIO_ADDRINFO_family)} + BIO_ADDRINFO_family := @_BIO_ADDRINFO_family + {$else} + {$IF declared(ERR_BIO_ADDRINFO_family)} + BIO_ADDRINFO_family := @ERR_BIO_ADDRINFO_family + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDRINFO_family) and Assigned(AFailed) then + AFailed.Add('BIO_ADDRINFO_family'); + end; + + + if not assigned(BIO_ADDRINFO_socktype) then + begin + {$if declared(BIO_ADDRINFO_socktype_introduced)} + if LibVersion < BIO_ADDRINFO_socktype_introduced then + {$if declared(FC_BIO_ADDRINFO_socktype)} + BIO_ADDRINFO_socktype := @FC_BIO_ADDRINFO_socktype + {$else} + BIO_ADDRINFO_socktype := @ERR_BIO_ADDRINFO_socktype + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDRINFO_socktype_removed)} + if BIO_ADDRINFO_socktype_removed <= LibVersion then + {$if declared(_BIO_ADDRINFO_socktype)} + BIO_ADDRINFO_socktype := @_BIO_ADDRINFO_socktype + {$else} + {$IF declared(ERR_BIO_ADDRINFO_socktype)} + BIO_ADDRINFO_socktype := @ERR_BIO_ADDRINFO_socktype + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDRINFO_socktype) and Assigned(AFailed) then + AFailed.Add('BIO_ADDRINFO_socktype'); + end; + + + if not assigned(BIO_ADDRINFO_protocol) then + begin + {$if declared(BIO_ADDRINFO_protocol_introduced)} + if LibVersion < BIO_ADDRINFO_protocol_introduced then + {$if declared(FC_BIO_ADDRINFO_protocol)} + BIO_ADDRINFO_protocol := @FC_BIO_ADDRINFO_protocol + {$else} + BIO_ADDRINFO_protocol := @ERR_BIO_ADDRINFO_protocol + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDRINFO_protocol_removed)} + if BIO_ADDRINFO_protocol_removed <= LibVersion then + {$if declared(_BIO_ADDRINFO_protocol)} + BIO_ADDRINFO_protocol := @_BIO_ADDRINFO_protocol + {$else} + {$IF declared(ERR_BIO_ADDRINFO_protocol)} + BIO_ADDRINFO_protocol := @ERR_BIO_ADDRINFO_protocol + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDRINFO_protocol) and Assigned(AFailed) then + AFailed.Add('BIO_ADDRINFO_protocol'); + end; + + + if not assigned(BIO_ADDRINFO_address) then + begin + {$if declared(BIO_ADDRINFO_address_introduced)} + if LibVersion < BIO_ADDRINFO_address_introduced then + {$if declared(FC_BIO_ADDRINFO_address)} + BIO_ADDRINFO_address := @FC_BIO_ADDRINFO_address + {$else} + BIO_ADDRINFO_address := @ERR_BIO_ADDRINFO_address + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDRINFO_address_removed)} + if BIO_ADDRINFO_address_removed <= LibVersion then + {$if declared(_BIO_ADDRINFO_address)} + BIO_ADDRINFO_address := @_BIO_ADDRINFO_address + {$else} + {$IF declared(ERR_BIO_ADDRINFO_address)} + BIO_ADDRINFO_address := @ERR_BIO_ADDRINFO_address + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDRINFO_address) and Assigned(AFailed) then + AFailed.Add('BIO_ADDRINFO_address'); + end; + + + if not assigned(BIO_ADDRINFO_free) then + begin + {$if declared(BIO_ADDRINFO_free_introduced)} + if LibVersion < BIO_ADDRINFO_free_introduced then + {$if declared(FC_BIO_ADDRINFO_free)} + BIO_ADDRINFO_free := @FC_BIO_ADDRINFO_free + {$else} + BIO_ADDRINFO_free := @ERR_BIO_ADDRINFO_free + {$ifend} + else + {$ifend} + {$if declared(BIO_ADDRINFO_free_removed)} + if BIO_ADDRINFO_free_removed <= LibVersion then + {$if declared(_BIO_ADDRINFO_free)} + BIO_ADDRINFO_free := @_BIO_ADDRINFO_free + {$else} + {$IF declared(ERR_BIO_ADDRINFO_free)} + BIO_ADDRINFO_free := @ERR_BIO_ADDRINFO_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_ADDRINFO_free) and Assigned(AFailed) then + AFailed.Add('BIO_ADDRINFO_free'); + end; + + + if not assigned(BIO_parse_hostserv) then + begin + {$if declared(BIO_parse_hostserv_introduced)} + if LibVersion < BIO_parse_hostserv_introduced then + {$if declared(FC_BIO_parse_hostserv)} + BIO_parse_hostserv := @FC_BIO_parse_hostserv + {$else} + BIO_parse_hostserv := @ERR_BIO_parse_hostserv + {$ifend} + else + {$ifend} + {$if declared(BIO_parse_hostserv_removed)} + if BIO_parse_hostserv_removed <= LibVersion then + {$if declared(_BIO_parse_hostserv)} + BIO_parse_hostserv := @_BIO_parse_hostserv + {$else} + {$IF declared(ERR_BIO_parse_hostserv)} + BIO_parse_hostserv := @ERR_BIO_parse_hostserv + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_parse_hostserv) and Assigned(AFailed) then + AFailed.Add('BIO_parse_hostserv'); + end; + + + if not assigned(BIO_lookup) then + begin + {$if declared(BIO_lookup_introduced)} + if LibVersion < BIO_lookup_introduced then + {$if declared(FC_BIO_lookup)} + BIO_lookup := @FC_BIO_lookup + {$else} + BIO_lookup := @ERR_BIO_lookup + {$ifend} + else + {$ifend} + {$if declared(BIO_lookup_removed)} + if BIO_lookup_removed <= LibVersion then + {$if declared(_BIO_lookup)} + BIO_lookup := @_BIO_lookup + {$else} + {$IF declared(ERR_BIO_lookup)} + BIO_lookup := @ERR_BIO_lookup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_lookup) and Assigned(AFailed) then + AFailed.Add('BIO_lookup'); + end; + + + if not assigned(BIO_lookup_ex) then + begin + {$if declared(BIO_lookup_ex_introduced)} + if LibVersion < BIO_lookup_ex_introduced then + {$if declared(FC_BIO_lookup_ex)} + BIO_lookup_ex := @FC_BIO_lookup_ex + {$else} + BIO_lookup_ex := @ERR_BIO_lookup_ex + {$ifend} + else + {$ifend} + {$if declared(BIO_lookup_ex_removed)} + if BIO_lookup_ex_removed <= LibVersion then + {$if declared(_BIO_lookup_ex)} + BIO_lookup_ex := @_BIO_lookup_ex + {$else} + {$IF declared(ERR_BIO_lookup_ex)} + BIO_lookup_ex := @ERR_BIO_lookup_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_lookup_ex) and Assigned(AFailed) then + AFailed.Add('BIO_lookup_ex'); + end; + + + if not assigned(BIO_sock_info) then + begin + {$if declared(BIO_sock_info_introduced)} + if LibVersion < BIO_sock_info_introduced then + {$if declared(FC_BIO_sock_info)} + BIO_sock_info := @FC_BIO_sock_info + {$else} + BIO_sock_info := @ERR_BIO_sock_info + {$ifend} + else + {$ifend} + {$if declared(BIO_sock_info_removed)} + if BIO_sock_info_removed <= LibVersion then + {$if declared(_BIO_sock_info)} + BIO_sock_info := @_BIO_sock_info + {$else} + {$IF declared(ERR_BIO_sock_info)} + BIO_sock_info := @ERR_BIO_sock_info + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_sock_info) and Assigned(AFailed) then + AFailed.Add('BIO_sock_info'); + end; + + + if not assigned(BIO_socket) then + begin + {$if declared(BIO_socket_introduced)} + if LibVersion < BIO_socket_introduced then + {$if declared(FC_BIO_socket)} + BIO_socket := @FC_BIO_socket + {$else} + BIO_socket := @ERR_BIO_socket + {$ifend} + else + {$ifend} + {$if declared(BIO_socket_removed)} + if BIO_socket_removed <= LibVersion then + {$if declared(_BIO_socket)} + BIO_socket := @_BIO_socket + {$else} + {$IF declared(ERR_BIO_socket)} + BIO_socket := @ERR_BIO_socket + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_socket) and Assigned(AFailed) then + AFailed.Add('BIO_socket'); + end; + + + if not assigned(BIO_connect) then + begin + {$if declared(BIO_connect_introduced)} + if LibVersion < BIO_connect_introduced then + {$if declared(FC_BIO_connect)} + BIO_connect := @FC_BIO_connect + {$else} + BIO_connect := @ERR_BIO_connect + {$ifend} + else + {$ifend} + {$if declared(BIO_connect_removed)} + if BIO_connect_removed <= LibVersion then + {$if declared(_BIO_connect)} + BIO_connect := @_BIO_connect + {$else} + {$IF declared(ERR_BIO_connect)} + BIO_connect := @ERR_BIO_connect + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_connect) and Assigned(AFailed) then + AFailed.Add('BIO_connect'); + end; + + + if not assigned(BIO_bind) then + begin + {$if declared(BIO_bind_introduced)} + if LibVersion < BIO_bind_introduced then + {$if declared(FC_BIO_bind)} + BIO_bind := @FC_BIO_bind + {$else} + BIO_bind := @ERR_BIO_bind + {$ifend} + else + {$ifend} + {$if declared(BIO_bind_removed)} + if BIO_bind_removed <= LibVersion then + {$if declared(_BIO_bind)} + BIO_bind := @_BIO_bind + {$else} + {$IF declared(ERR_BIO_bind)} + BIO_bind := @ERR_BIO_bind + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_bind) and Assigned(AFailed) then + AFailed.Add('BIO_bind'); + end; + + + if not assigned(BIO_listen) then + begin + {$if declared(BIO_listen_introduced)} + if LibVersion < BIO_listen_introduced then + {$if declared(FC_BIO_listen)} + BIO_listen := @FC_BIO_listen + {$else} + BIO_listen := @ERR_BIO_listen + {$ifend} + else + {$ifend} + {$if declared(BIO_listen_removed)} + if BIO_listen_removed <= LibVersion then + {$if declared(_BIO_listen)} + BIO_listen := @_BIO_listen + {$else} + {$IF declared(ERR_BIO_listen)} + BIO_listen := @ERR_BIO_listen + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_listen) and Assigned(AFailed) then + AFailed.Add('BIO_listen'); + end; + + + if not assigned(BIO_accept_ex) then + begin + {$if declared(BIO_accept_ex_introduced)} + if LibVersion < BIO_accept_ex_introduced then + {$if declared(FC_BIO_accept_ex)} + BIO_accept_ex := @FC_BIO_accept_ex + {$else} + BIO_accept_ex := @ERR_BIO_accept_ex + {$ifend} + else + {$ifend} + {$if declared(BIO_accept_ex_removed)} + if BIO_accept_ex_removed <= LibVersion then + {$if declared(_BIO_accept_ex)} + BIO_accept_ex := @_BIO_accept_ex + {$else} + {$IF declared(ERR_BIO_accept_ex)} + BIO_accept_ex := @ERR_BIO_accept_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_accept_ex) and Assigned(AFailed) then + AFailed.Add('BIO_accept_ex'); + end; + + + if not assigned(BIO_closesocket) then + begin + {$if declared(BIO_closesocket_introduced)} + if LibVersion < BIO_closesocket_introduced then + {$if declared(FC_BIO_closesocket)} + BIO_closesocket := @FC_BIO_closesocket + {$else} + BIO_closesocket := @ERR_BIO_closesocket + {$ifend} + else + {$ifend} + {$if declared(BIO_closesocket_removed)} + if BIO_closesocket_removed <= LibVersion then + {$if declared(_BIO_closesocket)} + BIO_closesocket := @_BIO_closesocket + {$else} + {$IF declared(ERR_BIO_closesocket)} + BIO_closesocket := @ERR_BIO_closesocket + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_closesocket) and Assigned(AFailed) then + AFailed.Add('BIO_closesocket'); + end; + + +end; + +procedure Unload; +begin + BIO_get_flags := nil; {removed 1.0.0} + BIO_set_retry_special := nil; {removed 1.0.0} + BIO_set_retry_read := nil; {removed 1.0.0} + BIO_set_retry_write := nil; {removed 1.0.0} + BIO_clear_retry_flags := nil; {removed 1.0.0} + BIO_get_retry_flags := nil; {removed 1.0.0} + BIO_should_read := nil; {removed 1.0.0} + BIO_should_write := nil; {removed 1.0.0} + BIO_should_io_special := nil; {removed 1.0.0} + BIO_retry_type := nil; {removed 1.0.0} + BIO_should_retry := nil; {removed 1.0.0} + BIO_do_connect := nil; {removed 1.0.0} + BIO_do_accept := nil; {removed 1.0.0} + BIO_do_handshake := nil; {removed 1.0.0} + BIO_get_mem_data := nil; {removed 1.0.0} + BIO_set_mem_buf := nil; {removed 1.0.0} + BIO_get_mem_ptr := nil; {removed 1.0.0} + BIO_set_mem_eof_return := nil; {removed 1.0.0} + BIO_get_new_index := nil; {introduced 1.1.0} + BIO_set_flags := nil; + BIO_test_flags := nil; + BIO_clear_flags := nil; + BIO_get_callback := nil; + BIO_set_callback := nil; + BIO_get_callback_ex := nil; {introduced 1.1.0} + BIO_set_callback_ex := nil; {introduced 1.1.0} + BIO_get_callback_arg := nil; + BIO_set_callback_arg := nil; + BIO_method_name := nil; + BIO_method_type := nil; + BIO_ctrl_pending := nil; + BIO_ctrl_wpending := nil; + BIO_ctrl_get_write_guarantee := nil; + BIO_ctrl_get_read_request := nil; + BIO_ctrl_reset_read_request := nil; + BIO_set_ex_data := nil; + BIO_get_ex_data := nil; + BIO_number_read := nil; + BIO_number_written := nil; + BIO_s_file := nil; + BIO_new_file := nil; + BIO_new := nil; + BIO_free := nil; + BIO_set_data := nil; {introduced 1.1.0} + BIO_get_data := nil; {introduced 1.1.0} + BIO_set_init := nil; {introduced 1.1.0} + BIO_get_init := nil; {introduced 1.1.0} + BIO_set_shutdown := nil; {introduced 1.1.0} + BIO_get_shutdown := nil; {introduced 1.1.0} + BIO_vfree := nil; + BIO_up_ref := nil; {introduced 1.1.0} + BIO_read := nil; + BIO_read_ex := nil; {introduced 1.1.0} + BIO_gets := nil; + BIO_write := nil; + BIO_write_ex := nil; {introduced 1.1.0} + BIO_puts := nil; + BIO_indent := nil; + BIO_ctrl := nil; + BIO_callback_ctrl := nil; + BIO_ptr_ctrl := nil; + BIO_int_ctrl := nil; + BIO_push := nil; + BIO_pop := nil; + BIO_free_all := nil; + BIO_find_type := nil; + BIO_next := nil; + BIO_set_next := nil; {introduced 1.1.0} + BIO_get_retry_BIO := nil; + BIO_get_retry_reason := nil; + BIO_set_retry_reason := nil; {introduced 1.1.0} + BIO_dup_chain := nil; + BIO_nread0 := nil; + BIO_nread := nil; + BIO_nwrite0 := nil; + BIO_nwrite := nil; + BIO_debug_callback := nil; + BIO_s_mem := nil; + BIO_s_secmem := nil; {introduced 1.1.0} + BIO_new_mem_buf := nil; + BIO_s_socket := nil; + BIO_s_connect := nil; + BIO_s_accept := nil; + BIO_s_fd := nil; + BIO_s_log := nil; + BIO_s_bio := nil; + BIO_s_null := nil; + BIO_f_null := nil; + BIO_f_buffer := nil; + BIO_f_linebuffer := nil; {introduced 1.1.0} + BIO_f_nbio_test := nil; + BIO_s_datagram := nil; + BIO_dgram_non_fatal_error := nil; + BIO_new_dgram := nil; + BIO_sock_should_retry := nil; + BIO_sock_non_fatal_error := nil; + BIO_fd_should_retry := nil; + BIO_fd_non_fatal_error := nil; + BIO_dump := nil; + BIO_dump_indent := nil; + BIO_hex_string := nil; + BIO_ADDR_new := nil; {introduced 1.1.0} + BIO_ADDR_rawmake := nil; {introduced 1.1.0} + BIO_ADDR_free := nil; {introduced 1.1.0} + BIO_ADDR_clear := nil; {introduced 1.1.0} + BIO_ADDR_family := nil; {introduced 1.1.0} + BIO_ADDR_rawaddress := nil; {introduced 1.1.0} + BIO_ADDR_rawport := nil; {introduced 1.1.0} + BIO_ADDR_hostname_string := nil; {introduced 1.1.0} + BIO_ADDR_service_string := nil; {introduced 1.1.0} + BIO_ADDR_path_string := nil; {introduced 1.1.0} + BIO_ADDRINFO_next := nil; {introduced 1.1.0} + BIO_ADDRINFO_family := nil; {introduced 1.1.0} + BIO_ADDRINFO_socktype := nil; {introduced 1.1.0} + BIO_ADDRINFO_protocol := nil; {introduced 1.1.0} + BIO_ADDRINFO_address := nil; {introduced 1.1.0} + BIO_ADDRINFO_free := nil; {introduced 1.1.0} + BIO_parse_hostserv := nil; {introduced 1.1.0} + BIO_lookup := nil; {introduced 1.1.0} + BIO_lookup_ex := nil; {introduced 1.1.0} + BIO_sock_error := nil; + BIO_socket_ioctl := nil; + BIO_socket_nbio := nil; + BIO_sock_init := nil; + BIO_set_tcp_ndelay := nil; + BIO_sock_info := nil; {introduced 1.1.0} + BIO_socket := nil; {introduced 1.1.0} + BIO_connect := nil; {introduced 1.1.0} + BIO_bind := nil; {introduced 1.1.0} + BIO_listen := nil; {introduced 1.1.0} + BIO_accept_ex := nil; {introduced 1.1.0} + BIO_closesocket := nil; {introduced 1.1.0} + BIO_new_socket := nil; + BIO_new_connect := nil; + BIO_new_accept := nil; + BIO_new_fd := nil; + BIO_new_bio_pair := nil; + BIO_copy_next_retry := nil; +end; +{$ELSE} +function BIO_get_flags(const b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, not $0); +end; + +//# define BIO_set_retry_special(b) \ +// BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY)) +procedure BIO_set_retry_special(b: PBIO); +begin + BIO_set_flags(b, BIO_FLAGS_IO_SPECIAL or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_set_retry_read(b) \ +// BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY)) +procedure BIO_set_retry_read(b: PBIO); +begin + BIO_set_flags(b, BIO_FLAGS_READ or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_set_retry_write(b) \ +// BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY)) +procedure BIO_set_retry_write(b: PBIO); +begin + BIO_set_flags(b, BIO_FLAGS_WRITE or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_clear_retry_flags(b) \ +// BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY)) +procedure BIO_clear_retry_flags(b: PBIO); +begin + BIO_clear_flags(b, BIO_FLAGS_RWS or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_get_retry_flags(b) \ +// BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY)) +function BIO_get_retry_flags(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_RWS or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_should_read(a) BIO_test_flags(a, BIO_FLAGS_READ) +function BIO_should_read(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_READ); +end; + +//# define BIO_should_write(a) BIO_test_flags(a, BIO_FLAGS_WRITE) +function BIO_should_write(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_WRITE); +end; + +//# define BIO_should_io_special(a) BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL) +function BIO_should_io_special(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_IO_SPECIAL); +end; + +//# define BIO_retry_type(a) BIO_test_flags(a, BIO_FLAGS_RWS) +function BIO_retry_type(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_RWS); +end; + +//# define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY) +function BIO_should_retry(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_do_connect(b) BIO_do_handshake(b) +function BIO_do_connect(b: PBIO): TIdC_LONG; +begin + Result := BIO_do_handshake(b); +end; + +//# define BIO_do_accept(b) BIO_do_handshake(b) +function BIO_do_accept(b: PBIO): TIdC_LONG; +begin + Result := BIO_do_handshake(b); +end; + +//# define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL) +function BIO_do_handshake(b: PBIO): TIdC_LONG; +begin + Result := BIO_ctrl(b, BIO_C_DO_STATE_MACHINE, 0, nil); +end; + +//# define BIO_get_mem_data(b,pp) BIO_ctrl(b,BIO_CTRL_INFO,0,(char (pp)) +function BIO_get_mem_data(b: PBIO; pp: PIdAnsiChar) : TIdC_INT; +begin + Result := BIO_ctrl(b, BIO_CTRL_INFO, 0, pp); +end; + +//# define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char (bm)) +function BIO_set_mem_buf(b: PBIO; bm: PIdAnsiChar; c: TIdC_INT): TIdC_INT; +begin + Result := BIO_ctrl(b, BIO_C_SET_BUF_MEM, c, bm); +end; + +//# define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char (pp)) +function BIO_get_mem_ptr(b: PBIO; pp: PIdAnsiChar): TIdC_INT; +begin + Result := BIO_ctrl(b, BIO_C_GET_BUF_MEM_PTR, 0, pp); +end; + +//# define BIO_set_mem_eof_return(b,v) BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,0) +function BIO_set_mem_eof_return(b: PBIO; v: TIdC_INT): TIdC_INT; +begin + Result := BIO_ctrl(b, BIO_C_SET_BUF_MEM_EOF_RETURN, v, nil); +end; + +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bioerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bioerr.pas new file mode 100644 index 000000000..84d26f5bd --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bioerr.pas @@ -0,0 +1,202 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_bioerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_bioerr.h2pas + and this file regenerated. IdOpenSSLHeaders_bioerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_bioerr; + +interface + +// Headers for OpenSSL 1.1.1 +// bioerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * BIO function codes. + *) + BIO_F_ACPT_STATE = 100; + BIO_F_ADDRINFO_WRAP = 148; + BIO_F_ADDR_STRINGS = 134; + BIO_F_BIO_ACCEPT = 101; + BIO_F_BIO_ACCEPT_EX = 137; + BIO_F_BIO_ACCEPT_NEW = 152; + BIO_F_BIO_ADDR_NEW = 144; + BIO_F_BIO_BIND = 147; + BIO_F_BIO_CALLBACK_CTRL = 131; + BIO_F_BIO_CONNECT = 138; + BIO_F_BIO_CONNECT_NEW = 153; + BIO_F_BIO_CTRL = 103; + BIO_F_BIO_GETS = 104; + BIO_F_BIO_GET_HOST_IP = 106; + BIO_F_BIO_GET_NEW_INDEX = 102; + BIO_F_BIO_GET_PORT = 107; + BIO_F_BIO_LISTEN = 139; + BIO_F_BIO_LOOKUP = 135; + BIO_F_BIO_LOOKUP_EX = 143; + BIO_F_BIO_MAKE_PAIR = 121; + BIO_F_BIO_METH_NEW = 146; + BIO_F_BIO_NEW = 108; + BIO_F_BIO_NEW_DGRAM_SCTP = 145; + BIO_F_BIO_NEW_FILE = 109; + BIO_F_BIO_NEW_MEM_BUF = 126; + BIO_F_BIO_NREAD = 123; + BIO_F_BIO_NREAD0 = 124; + BIO_F_BIO_NWRITE = 125; + BIO_F_BIO_NWRITE0 = 122; + BIO_F_BIO_PARSE_HOSTSERV = 136; + BIO_F_BIO_PUTS = 110; + BIO_F_BIO_READ = 111; + BIO_F_BIO_READ_EX = 105; + BIO_F_BIO_READ_INTERN = 120; + BIO_F_BIO_SOCKET = 140; + BIO_F_BIO_SOCKET_NBIO = 142; + BIO_F_BIO_SOCK_INFO = 141; + BIO_F_BIO_SOCK_INIT = 112; + BIO_F_BIO_WRITE = 113; + BIO_F_BIO_WRITE_EX = 119; + BIO_F_BIO_WRITE_INTERN = 128; + BIO_F_BUFFER_CTRL = 114; + BIO_F_CONN_CTRL = 127; + BIO_F_CONN_STATE = 115; + BIO_F_DGRAM_SCTP_NEW = 149; + BIO_F_DGRAM_SCTP_READ = 132; + BIO_F_DGRAM_SCTP_WRITE = 133; + BIO_F_DOAPR_OUTCH = 150; + BIO_F_FILE_CTRL = 116; + BIO_F_FILE_READ = 130; + BIO_F_LINEBUFFER_CTRL = 129; + BIO_F_LINEBUFFER_NEW = 151; + BIO_F_MEM_WRITE = 117; + BIO_F_NBIOF_NEW = 154; + BIO_F_SLG_WRITE = 155; + BIO_F_SSL_NEW = 118; + + (* + * BIO reason codes. + *) + BIO_R_ACCEPT_ERROR = 100; + BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET = 141; + BIO_R_AMBIGUOUS_HOST_OR_SERVICE = 129; + BIO_R_BAD_FOPEN_MODE = 101; + BIO_R_BROKEN_PIPE = 124; + BIO_R_CONNECT_ERROR = 103; + BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET = 107; + BIO_R_GETSOCKNAME_ERROR = 132; + BIO_R_GETSOCKNAME_TRUNCATED_ADDRESS = 133; + BIO_R_GETTING_SOCKTYPE = 134; + BIO_R_INVALID_ARGUMENT = 125; + BIO_R_INVALID_SOCKET = 135; + BIO_R_IN_USE = 123; + BIO_R_LENGTH_TOO_LONG = 102; + BIO_R_LISTEN_V6_ONLY = 136; + BIO_R_LOOKUP_RETURNED_NOTHING = 142; + BIO_R_MALFORMED_HOST_OR_SERVICE = 130; + BIO_R_NBIO_CONNECT_ERROR = 110; + BIO_R_NO_ACCEPT_ADDR_OR_SERVICE_SPECIFIED = 143; + BIO_R_NO_HOSTNAME_OR_SERVICE_SPECIFIED = 144; + BIO_R_NO_PORT_DEFINED = 113; + BIO_R_NO_SUCH_FILE = 128; + BIO_R_NULL_PARAMETER = 115; + BIO_R_UNABLE_TO_BIND_SOCKET = 117; + BIO_R_UNABLE_TO_CREATE_SOCKET = 118; + BIO_R_UNABLE_TO_KEEPALIVE = 137; + BIO_R_UNABLE_TO_LISTEN_SOCKET = 119; + BIO_R_UNABLE_TO_NODELAY = 138; + BIO_R_UNABLE_TO_REUSEADDR = 139; + BIO_R_UNAVAILABLE_IP_FAMILY = 145; + BIO_R_UNINITIALIZED = 120; + BIO_R_UNKNOWN_INFO_TYPE = 140; + BIO_R_UNSUPPORTED_IP_FAMILY = 146; + BIO_R_UNSUPPORTED_METHOD = 121; + BIO_R_UNSUPPORTED_PROTOCOL_FAMILY = 131; + BIO_R_WRITE_TO_READ_ONLY_BIO = 126; + BIO_R_WSASTARTUP = 122; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_BIO_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_BIO_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_BIO_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_BIO_strings := LoadFunction('ERR_load_BIO_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_BIO_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_blowfish.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_blowfish.pas new file mode 100644 index 000000000..991fabb46 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_blowfish.pas @@ -0,0 +1,161 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_blowfish.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_blowfish.h2pas + and this file regenerated. IdOpenSSLHeaders_blowfish.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_blowfish; + +interface + +// Headers for OpenSSL 1.1.1 +// blowfish.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // Added '_CONST' to avoid name clashes + BF_ENCRYPT_CONST = 1; + // Added '_CONST' to avoid name clashes + BF_DECRYPT_CONST = 0; + + BF_ROUNDS = 16; + BF_BLOCK = 8; + +type + BF_LONG = TIdC_UINT; + PBF_LONG = ^BF_LONG; + + bf_key_st = record + p: array[0 .. BF_ROUNDS + 2 - 1] of BF_LONG; + s: array[0 .. 4 * 256 - 1] of BF_LONG; + end; + BF_KEY = bf_key_st; + PBF_KEY = ^BF_KEY; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM BF_set_key} + {$EXTERNALSYM BF_encrypt} + {$EXTERNALSYM BF_decrypt} + {$EXTERNALSYM BF_ecb_encrypt} + {$EXTERNALSYM BF_cbc_encrypt} + {$EXTERNALSYM BF_cfb64_encrypt} + {$EXTERNALSYM BF_ofb64_encrypt} + {$EXTERNALSYM BF_options} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + BF_set_key: procedure(key: PBF_KEY; len: TIdC_INT; const data: PByte); cdecl = nil; + + BF_encrypt: procedure(data: PBF_LONG; const key: PBF_KEY); cdecl = nil; + BF_decrypt: procedure(data: PBF_LONG; const key: PBF_KEY); cdecl = nil; + + BF_ecb_encrypt: procedure(const in_: PByte; out_: PByte; key: PBF_KEY; enc: TIdC_INT); cdecl = nil; + BF_cbc_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_LONG; schedule: PBF_KEY; ivec: PByte; enc: TIdC_INT); cdecl = nil; + BF_cfb64_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_LONG; schedule: PBF_KEY; ivec: PByte; num: PIdC_INT; enc: TIdC_INT); cdecl = nil; + BF_ofb64_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_LONG; schedule: PBF_KEY; ivec: PByte; num: PIdC_INT); cdecl = nil; + + BF_options: function: PIdAnsiChar; cdecl = nil; + +{$ELSE} + procedure BF_set_key(key: PBF_KEY; len: TIdC_INT; const data: PByte) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure BF_encrypt(data: PBF_LONG; const key: PBF_KEY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BF_decrypt(data: PBF_LONG; const key: PBF_KEY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure BF_ecb_encrypt(const in_: PByte; out_: PByte; key: PBF_KEY; enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BF_cbc_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; schedule: PBF_KEY; ivec: PByte; enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BF_cfb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; schedule: PBF_KEY; ivec: PByte; num: PIdC_INT; enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BF_ofb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; schedule: PBF_KEY; ivec: PByte; num: PIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BF_options: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + BF_set_key := LoadFunction('BF_set_key',AFailed); + BF_encrypt := LoadFunction('BF_encrypt',AFailed); + BF_decrypt := LoadFunction('BF_decrypt',AFailed); + BF_ecb_encrypt := LoadFunction('BF_ecb_encrypt',AFailed); + BF_cbc_encrypt := LoadFunction('BF_cbc_encrypt',AFailed); + BF_cfb64_encrypt := LoadFunction('BF_cfb64_encrypt',AFailed); + BF_ofb64_encrypt := LoadFunction('BF_ofb64_encrypt',AFailed); + BF_options := LoadFunction('BF_options',AFailed); +end; + +procedure Unload; +begin + BF_set_key := nil; + BF_encrypt := nil; + BF_decrypt := nil; + BF_ecb_encrypt := nil; + BF_cbc_encrypt := nil; + BF_cfb64_encrypt := nil; + BF_ofb64_encrypt := nil; + BF_options := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bn.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bn.pas new file mode 100644 index 000000000..262a7ab1f --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bn.pas @@ -0,0 +1,1317 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_bn.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_bn.h2pas + and this file regenerated. IdOpenSSLHeaders_bn.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_bn; + +interface + +// Headers for OpenSSL 1.1.1 +// bn.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + BN_FLG_MALLOCED = $01; + BN_FLG_STATIC_DATA = $02; + + (* + * avoid leaking exponent information through timing, + * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime, + * BN_div() will call BN_div_no_branch, + * BN_mod_inverse() will call BN_mod_inverse_no_branch. + *) + BN_FLG_CONSTTIME = $04; + BN_FLG_SECURE = $08; + + (* Values for |top| in BN_rand() *) + BN_RAND_TOP_ANY = -1; + BN_RAND_TOP_ONE = 0; + BN_RAND_TOP_TWO = 1; + + (* Values for |bottom| in BN_rand() *) + BN_RAND_BOTTOM_ANY = 0; + BN_RAND_BOTTOM_ODD = 1; + + (* BN_BLINDING flags *) + BN_BLINDING_NO_UPDATE = $00000001; + BN_BLINDING_NO_RECREATE = $00000002; + +type + BN_ULONG = TIdC_ULONG; + + BN_GENCB_set_old_cb = procedure (a: TIdC_INT; b: TIdC_INT; c: Pointer); cdecl; + BN_GENCB_set_cb = function (a: TIdC_INT; b: TIdC_INT; c: PBN_GENCB): TIdC_INT; cdecl; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM BN_set_flags} + {$EXTERNALSYM BN_get_flags} + {$EXTERNALSYM BN_with_flags} + {$EXTERNALSYM BN_GENCB_call} + {$EXTERNALSYM BN_GENCB_new} + {$EXTERNALSYM BN_GENCB_free} + {$EXTERNALSYM BN_GENCB_set_old} + {$EXTERNALSYM BN_GENCB_set} + {$EXTERNALSYM BN_GENCB_get_arg} + {$EXTERNALSYM BN_abs_is_word} + {$EXTERNALSYM BN_is_zero} + {$EXTERNALSYM BN_is_one} + {$EXTERNALSYM BN_is_word} + {$EXTERNALSYM BN_is_odd} + {$EXTERNALSYM BN_zero_ex} + {$EXTERNALSYM BN_value_one} + {$EXTERNALSYM BN_options} + {$EXTERNALSYM BN_CTX_new} + {$EXTERNALSYM BN_CTX_secure_new} + {$EXTERNALSYM BN_CTX_free} + {$EXTERNALSYM BN_CTX_start} + {$EXTERNALSYM BN_CTX_get} + {$EXTERNALSYM BN_CTX_end} + {$EXTERNALSYM BN_rand} + {$EXTERNALSYM BN_priv_rand} + {$EXTERNALSYM BN_rand_range} + {$EXTERNALSYM BN_priv_rand_range} + {$EXTERNALSYM BN_pseudo_rand} + {$EXTERNALSYM BN_pseudo_rand_range} + {$EXTERNALSYM BN_num_bits} + {$EXTERNALSYM BN_num_bits_word} + {$EXTERNALSYM BN_security_bits} + {$EXTERNALSYM BN_new} + {$EXTERNALSYM BN_secure_new} + {$EXTERNALSYM BN_clear_free} + {$EXTERNALSYM BN_copy} + {$EXTERNALSYM BN_swap} + {$EXTERNALSYM BN_bin2bn} + {$EXTERNALSYM BN_bn2bin} + {$EXTERNALSYM BN_bn2binpad} + {$EXTERNALSYM BN_lebin2bn} + {$EXTERNALSYM BN_bn2lebinpad} + {$EXTERNALSYM BN_mpi2bn} + {$EXTERNALSYM BN_bn2mpi} + {$EXTERNALSYM BN_sub} + {$EXTERNALSYM BN_usub} + {$EXTERNALSYM BN_uadd} + {$EXTERNALSYM BN_add} + {$EXTERNALSYM BN_mul} + {$EXTERNALSYM BN_sqr} + {$EXTERNALSYM BN_set_negative} + {$EXTERNALSYM BN_is_negative} + {$EXTERNALSYM BN_div} + {$EXTERNALSYM BN_nnmod} + {$EXTERNALSYM BN_mod_add} + {$EXTERNALSYM BN_mod_add_quick} + {$EXTERNALSYM BN_mod_sub} + {$EXTERNALSYM BN_mod_sub_quick} + {$EXTERNALSYM BN_mod_mul} + {$EXTERNALSYM BN_mod_sqr} + {$EXTERNALSYM BN_mod_lshift1} + {$EXTERNALSYM BN_mod_lshift1_quick} + {$EXTERNALSYM BN_mod_lshift} + {$EXTERNALSYM BN_mod_lshift_quick} + {$EXTERNALSYM BN_mod_word} + {$EXTERNALSYM BN_div_word} + {$EXTERNALSYM BN_mul_word} + {$EXTERNALSYM BN_add_word} + {$EXTERNALSYM BN_sub_word} + {$EXTERNALSYM BN_set_word} + {$EXTERNALSYM BN_get_word} + {$EXTERNALSYM BN_cmp} + {$EXTERNALSYM BN_free} + {$EXTERNALSYM BN_is_bit_set} + {$EXTERNALSYM BN_lshift} + {$EXTERNALSYM BN_lshift1} + {$EXTERNALSYM BN_exp} + {$EXTERNALSYM BN_mod_exp} + {$EXTERNALSYM BN_mod_exp_mont} + {$EXTERNALSYM BN_mod_exp_mont_consttime} + {$EXTERNALSYM BN_mod_exp_mont_word} + {$EXTERNALSYM BN_mod_exp2_mont} + {$EXTERNALSYM BN_mod_exp_simple} + {$EXTERNALSYM BN_mask_bits} + {$EXTERNALSYM BN_print} + {$EXTERNALSYM BN_reciprocal} + {$EXTERNALSYM BN_rshift} + {$EXTERNALSYM BN_rshift1} + {$EXTERNALSYM BN_clear} + {$EXTERNALSYM BN_dup} + {$EXTERNALSYM BN_ucmp} + {$EXTERNALSYM BN_set_bit} + {$EXTERNALSYM BN_clear_bit} + {$EXTERNALSYM BN_bn2hex} + {$EXTERNALSYM BN_bn2dec} + {$EXTERNALSYM BN_hex2bn} + {$EXTERNALSYM BN_dec2bn} + {$EXTERNALSYM BN_asc2bn} + {$EXTERNALSYM BN_gcd} + {$EXTERNALSYM BN_kronecker} + {$EXTERNALSYM BN_mod_inverse} + {$EXTERNALSYM BN_mod_sqrt} + {$EXTERNALSYM BN_consttime_swap} + {$EXTERNALSYM BN_generate_prime_ex} + {$EXTERNALSYM BN_is_prime_ex} + {$EXTERNALSYM BN_is_prime_fasttest_ex} + {$EXTERNALSYM BN_X931_generate_Xpq} + {$EXTERNALSYM BN_X931_derive_prime_ex} + {$EXTERNALSYM BN_X931_generate_prime_ex} + {$EXTERNALSYM BN_MONT_CTX_new} + {$EXTERNALSYM BN_mod_mul_montgomery} + {$EXTERNALSYM BN_to_montgomery} + {$EXTERNALSYM BN_from_montgomery} + {$EXTERNALSYM BN_MONT_CTX_free} + {$EXTERNALSYM BN_MONT_CTX_set} + {$EXTERNALSYM BN_MONT_CTX_copy} + {$EXTERNALSYM BN_BLINDING_new} + {$EXTERNALSYM BN_BLINDING_free} + {$EXTERNALSYM BN_BLINDING_update} + {$EXTERNALSYM BN_BLINDING_convert} + {$EXTERNALSYM BN_BLINDING_invert} + {$EXTERNALSYM BN_BLINDING_convert_ex} + {$EXTERNALSYM BN_BLINDING_invert_ex} + {$EXTERNALSYM BN_BLINDING_is_current_thread} + {$EXTERNALSYM BN_BLINDING_set_current_thread} + {$EXTERNALSYM BN_BLINDING_lock} + {$EXTERNALSYM BN_BLINDING_unlock} + {$EXTERNALSYM BN_BLINDING_get_flags} + {$EXTERNALSYM BN_BLINDING_set_flags} + {$EXTERNALSYM BN_RECP_CTX_free} + {$EXTERNALSYM BN_RECP_CTX_set} + {$EXTERNALSYM BN_mod_mul_reciprocal} + {$EXTERNALSYM BN_mod_exp_recp} + {$EXTERNALSYM BN_div_recp} + {$EXTERNALSYM BN_GF2m_add} + {$EXTERNALSYM BN_GF2m_mod} + {$EXTERNALSYM BN_GF2m_mod_mul} + {$EXTERNALSYM BN_GF2m_mod_sqr} + {$EXTERNALSYM BN_GF2m_mod_inv} + {$EXTERNALSYM BN_GF2m_mod_div} + {$EXTERNALSYM BN_GF2m_mod_exp} + {$EXTERNALSYM BN_GF2m_mod_sqrt} + {$EXTERNALSYM BN_GF2m_mod_solve_quad} + {$EXTERNALSYM BN_nist_mod_192} + {$EXTERNALSYM BN_nist_mod_224} + {$EXTERNALSYM BN_nist_mod_256} + {$EXTERNALSYM BN_nist_mod_384} + {$EXTERNALSYM BN_nist_mod_521} + {$EXTERNALSYM BN_get0_nist_prime_192} + {$EXTERNALSYM BN_get0_nist_prime_224} + {$EXTERNALSYM BN_get0_nist_prime_256} + {$EXTERNALSYM BN_get0_nist_prime_384} + {$EXTERNALSYM BN_get0_nist_prime_521} + {$EXTERNALSYM BN_generate_dsa_nonce} + {$EXTERNALSYM BN_get_rfc2409_prime_768} + {$EXTERNALSYM BN_get_rfc2409_prime_1024} + {$EXTERNALSYM BN_get_rfc3526_prime_1536} + {$EXTERNALSYM BN_get_rfc3526_prime_2048} + {$EXTERNALSYM BN_get_rfc3526_prime_3072} + {$EXTERNALSYM BN_get_rfc3526_prime_4096} + {$EXTERNALSYM BN_get_rfc3526_prime_6144} + {$EXTERNALSYM BN_get_rfc3526_prime_8192} + {$EXTERNALSYM BN_bntest_rand} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + BN_set_flags: procedure(b: PBIGNUM; n: TIdC_INT); cdecl = nil; + BN_get_flags: function(b: PBIGNUM; n: TIdC_INT): TIdC_INT; cdecl = nil; + + (* + * get a clone of a BIGNUM with changed flags, for *temporary* use only (the + * two BIGNUMs cannot be used in parallel!). Also only for *read only* use. The + * value |dest| should be a newly allocated BIGNUM obtained via BN_new() that + * has not been otherwise initialised or used. + *) + BN_with_flags: procedure(dest: PBIGNUM; b: PBIGNUM; flags: TIdC_INT); cdecl = nil; + (* Wrapper function to make using BN_GENCB easier *) + BN_GENCB_call: function(cb: PBN_GENCB; a: TIdC_INT; b: TIdC_INT): TIdC_INT; cdecl = nil; + + BN_GENCB_new: function: PBN_GENCB; cdecl = nil; + BN_GENCB_free: procedure(cb: PBN_GENCB); cdecl = nil; + + (* Populate a PBN_GENCB structure with an "old"-style callback *) + BN_GENCB_set_old: procedure(gencb: PBN_GENCB; callback: BN_GENCB_set_old_cb; cb_arg: Pointer); cdecl = nil; + + (* Populate a PBN_GENCB structure with a "new"-style callback *) + BN_GENCB_set: procedure(gencb: PBN_GENCB; callback: BN_GENCB_set_cb; cb_arg: Pointer); cdecl = nil; + + BN_GENCB_get_arg: function(cb: PBN_GENCB): Pointer; cdecl = nil; + + (* + * BN_prime_checks_for_size() returns the number of Miller-Rabin iterations + * that will be done for checking that a random number is probably prime. The + * error rate for accepting a composite number as prime depends on the size of + * the prime |b|. The error rates used are for calculating an RSA key with 2 primes, + * and so the level is what you would expect for a key of double the size of the + * prime. + * + * This table is generated using the algorithm of FIPS PUB 186-4 + * Digital Signature Standard (DSS), section F.1, page 117. + * (https://dx.doi.org/10.6028/NIST.FIPS.186-4) + * + * The following magma script was used to generate the output: + * securitybits:=125; + * k:=1024; + * for t:=1 to 65 do + * for M:=3 to Floor(2*Sqrt(k-1)-1) do + * S:=0; + * // Sum over m + * for m:=3 to M do + * s:=0; + * // Sum over j + * for j:=2 to m do + * s+:=(RealField(32)!2)^-(j+(k-1)/j); + * end for; + * S+:=2^(m-(m-1)*t)*s; + * end for; + * A:=2^(k-2-M*t); + * B:=8*(Pi(RealField(32))^2-6)/3*2^(k-2)*S; + * pkt:=2.00743*Log(2)*k*2^-k*(A+B); + * seclevel:=Floor(-Log(2,pkt)); + * if seclevel ge securitybits then + * printf "k: %5o, security: %o bits (t: %o, M: %o)\n",k,seclevel,t,M; + * break; + * end if; + * end for; + * if seclevel ge securitybits then break; end if; + * end for; + * + * It can be run online at: + * http://magma.maths.usyd.edu.au/calc + * + * And will output: + * k: 1024, security: 129 bits (t: 6, M: 23) + * + * k is the number of bits of the prime, securitybits is the level we want to + * reach. + * + * prime length | RSA key size | # MR tests | security level + * -------------+--------------|------------+--------------- + * (b) >= 6394 | >= 12788 | 3 | 256 bit + * (b) >= 3747 | >= 7494 | 3 | 192 bit + * (b) >= 1345 | >= 2690 | 4 | 128 bit + * (b) >= 1080 | >= 2160 | 5 | 128 bit + * (b) >= 852 | >= 1704 | 5 | 112 bit + * (b) >= 476 | >= 952 | 5 | 80 bit + * (b) >= 400 | >= 800 | 6 | 80 bit + * (b) >= 347 | >= 694 | 7 | 80 bit + * (b) >= 308 | >= 616 | 8 | 80 bit + * (b) >= 55 | >= 110 | 27 | 64 bit + * (b) >= 6 | >= 12 | 34 | 64 bit + *) + +// # define BN_prime_checks_for_size(b) ((b) >= 3747 ? 3 : \ +// (b) >= 1345 ? 4 : \ +// (b) >= 476 ? 5 : \ +// (b) >= 400 ? 6 : \ +// (b) >= 347 ? 7 : \ +// (b) >= 308 ? 8 : \ +// (b) >= 55 ? 27 : \ +// (* b >= 6 *) 34) +// +// # define BN_num_bytes(a) ((BN_num_bits(a)+7)/8) + + BN_abs_is_word: function(a: PBIGNUM; w: BN_ULONG): TIdC_INT; cdecl = nil; + BN_is_zero: function(a: PBIGNUM): TIdC_INT; cdecl = nil; + BN_is_one: function(a: PBIGNUM): TIdC_INT; cdecl = nil; + BN_is_word: function(a: PBIGNUM; w: BN_ULONG): TIdC_INT; cdecl = nil; + BN_is_odd: function(a: PBIGNUM): TIdC_INT; cdecl = nil; + +// # define BN_one(a) (BN_set_word((a),1)) + + BN_zero_ex: procedure(a: PBIGNUM); cdecl = nil; + + BN_value_one: function: PBIGNUM; cdecl = nil; + BN_options: function: PIdAnsiChar; cdecl = nil; + BN_CTX_new: function: PBN_CTX; cdecl = nil; + BN_CTX_secure_new: function: PBN_CTX; cdecl = nil; + BN_CTX_free: procedure(c: PBN_CTX); cdecl = nil; + BN_CTX_start: procedure(ctx: PBN_CTX); cdecl = nil; + BN_CTX_get: function(ctx: PBN_CTX): PBIGNUM; cdecl = nil; + BN_CTX_end: procedure(ctx: PBN_CTX); cdecl = nil; + BN_rand: function(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT; cdecl = nil; + BN_priv_rand: function(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT; cdecl = nil; + BN_rand_range: function(rnd: PBIGNUM; range: PBIGNUM): TIdC_INT; cdecl = nil; + BN_priv_rand_range: function(rnd: PBIGNUM; range: PBIGNUM): TIdC_INT; cdecl = nil; + BN_pseudo_rand: function(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT; cdecl = nil; + BN_pseudo_rand_range: function(rnd: PBIGNUM; range: PBIGNUM): TIdC_INT; cdecl = nil; + BN_num_bits: function(a: PBIGNUM): TIdC_INT; cdecl = nil; + BN_num_bits_word: function(l: BN_ULONG): TIdC_INT; cdecl = nil; + BN_security_bits: function(L: TIdC_INT; N: TIdC_INT): TIdC_INT; cdecl = nil; + BN_new: function: PBIGNUM; cdecl = nil; + BN_secure_new: function: PBIGNUM; cdecl = nil; + BN_clear_free: procedure(a: PBIGNUM); cdecl = nil; + BN_copy: function(a: PBIGNUM; b: PBIGNUM): PBIGNUM; cdecl = nil; + BN_swap: procedure(a: PBIGNUM; b: PBIGNUM); cdecl = nil; + BN_bin2bn: function(const s: PByte; len: TIdC_INT; ret: PBIGNUM): PBIGNUM; cdecl = nil; + BN_bn2bin: function(const a: PBIGNUM; to_: PByte): TIdC_INT; cdecl = nil; + BN_bn2binpad: function(const a: PBIGNUM; to_: PByte; tolen: TIdC_INT): TIdC_INT; cdecl = nil; + BN_lebin2bn: function(const s: PByte; len: TIdC_INT; ret: PBIGNUM): PBIGNUM; cdecl = nil; + BN_bn2lebinpad: function(a: PBIGNUM; to_: PByte; tolen: TIdC_INT): TIdC_INT; cdecl = nil; + BN_mpi2bn: function(const s: PByte; len: TIdC_INT; ret: PBIGNUM): PBIGNUM; cdecl = nil; + BN_bn2mpi: function(a: PBIGNUM; to_: PByte): TIdC_INT; cdecl = nil; + BN_sub: function(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT; cdecl = nil; + BN_usub: function(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT; cdecl = nil; + BN_uadd: function(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT; cdecl = nil; + BN_add: function(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT; cdecl = nil; + BN_mul: function(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_sqr: function(r: PBIGNUM; const a: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + + (** BN_set_negative sets sign of a BIGNUM + * \param b pointer to the BIGNUM object + * \param n 0 if the BIGNUM b should be positive and a value != 0 otherwise + *) + BN_set_negative: procedure(b: PBIGNUM; n: TIdC_INT); cdecl = nil; + (** BN_is_negative returns 1 if the BIGNUM is negative + * \param b pointer to the BIGNUM object + * \return 1 if a < 0 and 0 otherwise + *) + BN_is_negative: function(b: PBIGNUM): TIdC_INT; cdecl = nil; + + BN_div: function(dv: PBIGNUM; rem: PBIGNUM; const m: PBIGNUM; const d: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; +// # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) + BN_nnmod: function(r: PBIGNUM; const m: PBIGNUM; const d: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_mod_add: function(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_mod_add_quick: function(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM): TIdC_INT; cdecl = nil; + BN_mod_sub: function(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_mod_sub_quick: function(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM): TIdC_INT; cdecl = nil; + BN_mod_mul: function(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_mod_sqr: function(r: PBIGNUM; const a: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_mod_lshift1: function(r: PBIGNUM; const a: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_mod_lshift1_quick: function(r: PBIGNUM; const a: PBIGNUM; const m: PBIGNUM): TIdC_INT; cdecl = nil; + BN_mod_lshift: function(r: PBIGNUM; const a: PBIGNUM; n: TIdC_INT; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_mod_lshift_quick: function(r: PBIGNUM; const a: PBIGNUM; n: TIdC_INT; const m: PBIGNUM): TIdC_INT; cdecl = nil; + + BN_mod_word: function(const a: PBIGNUM; w: BN_ULONG): BN_ULONG; cdecl = nil; + BN_div_word: function(a: PBIGNUM; w: BN_ULONG): BN_ULONG; cdecl = nil; + BN_mul_word: function(a: PBIGNUM; w: BN_ULONG): TIdC_INT; cdecl = nil; + BN_add_word: function(a: PBIGNUM; w: BN_ULONG): TIdC_INT; cdecl = nil; + BN_sub_word: function(a: PBIGNUM; w: BN_ULONG): TIdC_INT; cdecl = nil; + BN_set_word: function(a: PBIGNUM; w: BN_ULONG): TIdC_INT; cdecl = nil; + BN_get_word: function(const a: PBIGNUM): BN_ULONG; cdecl = nil; + + BN_cmp: function(const a: PBIGNUM; const b: PBIGNUM): TIdC_INT; cdecl = nil; + BN_free: procedure(a: PBIGNUM); cdecl = nil; + BN_is_bit_set: function(const a: PBIGNUM; n: TIdC_INT): TIdC_INT; cdecl = nil; + BN_lshift: function(r: PBIGNUM; const a: PBIGNUM; n: TIdC_INT): TIdC_INT; cdecl = nil; + BN_lshift1: function(r: PBIGNUM; const a: PBIGNUM): TIdC_INT; cdecl = nil; + BN_exp: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + + BN_mod_exp: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_mod_exp_mont: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX; m_ctx: PBN_MONT_CTX): TIdC_INT; cdecl = nil; + BN_mod_exp_mont_consttime: function(rr: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX; in_mont: PBN_MONT_CTX): TIdC_INT; cdecl = nil; + BN_mod_exp_mont_word: function(r: PBIGNUM; a: BN_ULONG; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX; m_ctx: PBN_MONT_CTX): TIdC_INT; cdecl = nil; + BN_mod_exp2_mont: function(r: PBIGNUM; const a1: PBIGNUM; const p1: PBIGNUM; const a2: PBIGNUM; const p2: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX; m_ctx: PBN_MONT_CTX): TIdC_INT; cdecl = nil; + BN_mod_exp_simple: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + + BN_mask_bits: function(a: PBIGNUM; n: TIdC_INT): TIdC_INT; cdecl = nil; + BN_print: function(bio: PBIO; a: PBIGNUM): TIdC_INT; cdecl = nil; + BN_reciprocal: function(r: PBIGNUM; m: PBIGNUM; len: TIdC_INT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_rshift: function(r: PBIGNUM; a: PBIGNUM; n: TIdC_INT): TIdC_INT; cdecl = nil; + BN_rshift1: function(r: PBIGNUM; a: PBIGNUM): TIdC_INT; cdecl = nil; + BN_clear: procedure(a: PBIGNUM); cdecl = nil; + BN_dup: function(const a: PBIGNUM): PBIGNUM; cdecl = nil; + BN_ucmp: function(a: PBIGNUM; b: PBIGNUM): TIdC_INT; cdecl = nil; + BN_set_bit: function(a: PBIGNUM; n: TIdC_INT): TIdC_INT; cdecl = nil; + BN_clear_bit: function(a: PBIGNUM; n: TIdC_INT): TIdC_INT; cdecl = nil; + BN_bn2hex: function(a: PBIGNUM): PIdAnsiChar; cdecl = nil; + BN_bn2dec: function(a: PBIGNUM): PIdAnsiChar; cdecl = nil; + BN_hex2bn: function(a: PPBIGNUM; str: PIdAnsiChar): TIdC_INT; cdecl = nil; + BN_dec2bn: function(a: PPBIGNUM; str: PIdAnsiChar): TIdC_INT; cdecl = nil; + BN_asc2bn: function(a: PPBIGNUM; str: PIdAnsiChar): TIdC_INT; cdecl = nil; + BN_gcd: function(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_kronecker: function(a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + + BN_mod_inverse: function(ret: PBIGNUM; a: PBIGNUM; const n: PBIGNUM; ctx: PBN_CTX): PBIGNUM; cdecl = nil; + BN_mod_sqrt: function(ret: PBIGNUM; a: PBIGNUM; const n: PBIGNUM; ctx: PBN_CTX): PBIGNUM; cdecl = nil; + + BN_consttime_swap: procedure(swap: BN_ULONG; a: PBIGNUM; b: PBIGNUM; nwords: TIdC_INT); cdecl = nil; + + BN_generate_prime_ex: function(ret: PBIGNUM; bits: TIdC_INT; safe: TIdC_INT; const add: PBIGNUM; const rem: PBIGNUM; cb: PBN_GENCB): TIdC_INT; cdecl = nil; + BN_is_prime_ex: function(const p: PBIGNUM; nchecks: TIdC_INT; ctx: PBN_CTX; cb: PBN_GENCB): TIdC_INT; cdecl = nil; + BN_is_prime_fasttest_ex: function(const p: PBIGNUM; nchecks: TIdC_INT; ctx: PBN_CTX; do_trial_division: TIdC_INT; cb: PBN_GENCB): TIdC_INT; cdecl = nil; + BN_X931_generate_Xpq: function(Xp: PBIGNUM; Xq: PBIGNUM; nbits: TIdC_INT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_X931_derive_prime_ex: function(p: PBIGNUM; p1: PBIGNUM; p2: PBIGNUM; const Xp: PBIGNUM; const Xp1: PBIGNUM; const Xp2: PBIGNUM; const e: PBIGNUM; ctx: PBN_CTX; cb: PBN_GENCB): TIdC_INT; cdecl = nil; + BN_X931_generate_prime_ex: function(p: PBIGNUM; p1: PBIGNUM; p2: PBIGNUM; Xp1: PBIGNUM; Xp2: PBIGNUM; Xp: PBIGNUM; const e: PBIGNUM; ctx: PBN_CTX; cb: PBN_GENCB): TIdC_INT; cdecl = nil; + BN_MONT_CTX_new: function: PBN_MONT_CTX; cdecl = nil; + BN_mod_mul_montgomery: function(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; mont: PBN_MONT_CTX; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_to_montgomery: function(r: PBIGNUM; a: PBIGNUM; mont: PBN_MONT_CTX; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_from_montgomery: function(r: PBIGNUM; a: PBIGNUM; mont: PBN_MONT_CTX; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_MONT_CTX_free: procedure(mont: PBN_MONT_CTX); cdecl = nil; + BN_MONT_CTX_set: function(mont: PBN_MONT_CTX; mod_: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_MONT_CTX_copy: function(to_: PBN_MONT_CTX; from: PBN_MONT_CTX): PBN_MONT_CTX; cdecl = nil; +// function BN_MONT_CTX_set_locked(pmont: ^PBN_MONT_CTX; lock: CRYPTO_RWLOCK; mod_: PBIGNUM; ctx: PBN_CTX): PBN_MONT_CTX; + + BN_BLINDING_new: function(const A: PBIGNUM; const Ai: PBIGNUM; mod_: PBIGNUM): PBN_BLINDING; cdecl = nil; + BN_BLINDING_free: procedure(b: PBN_BLINDING); cdecl = nil; + BN_BLINDING_update: function(b: PBN_BLINDING; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_BLINDING_convert: function(n: PBIGNUM; b: PBN_BLINDING; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_BLINDING_invert: function(n: PBIGNUM; b: PBN_BLINDING; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_BLINDING_convert_ex: function(n: PBIGNUM; r: PBIGNUM; b: PBN_BLINDING; v4: PBN_CTX): TIdC_INT; cdecl = nil; + BN_BLINDING_invert_ex: function(n: PBIGNUM; r: PBIGNUM; b: PBN_BLINDING; v2: PBN_CTX): TIdC_INT; cdecl = nil; + + BN_BLINDING_is_current_thread: function(b: PBN_BLINDING): TIdC_INT; cdecl = nil; + BN_BLINDING_set_current_thread: procedure(b: PBN_BLINDING); cdecl = nil; + BN_BLINDING_lock: function(b: PBN_BLINDING): TIdC_INT; cdecl = nil; + BN_BLINDING_unlock: function(b: PBN_BLINDING): TIdC_INT; cdecl = nil; + + BN_BLINDING_get_flags: function(v1: PBN_BLINDING): TIdC_ULONG; cdecl = nil; + BN_BLINDING_set_flags: procedure(v1: PBN_BLINDING; v2: TIdC_ULONG); cdecl = nil; +// function BN_BLINDING_create_param(PBN_BLINDING *b, +// PBIGNUM *e, PBIGNUM *m, PBN_CTX *ctx, +// function ( +// r: PBIGNUM; +// a: PBIGNUM; +// p: PBIGNUM; +// m: PBIGNUM; +// ctx: PBN_CTX; +// m_ctx: PBN_MONT_CTX): TIdC_INT, +// PBN_MONT_CTX *m_ctx): PBN_BLINDING; + + BN_RECP_CTX_free: procedure(recp: PBN_RECP_CTX); cdecl = nil; + BN_RECP_CTX_set: function(recp: PBN_RECP_CTX; rdiv: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_mod_mul_reciprocal: function(r: PBIGNUM; x: PBIGNUM; y: PBIGNUM; recp: PBN_RECP_CTX; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_mod_exp_recp: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_div_recp: function(dv: PBIGNUM; rem: PBIGNUM; m: PBIGNUM; recp: PBN_RECP_CTX; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + + (* + * Functions for arithmetic over binary polynomials represented by BIGNUMs. + * The BIGNUM::neg property of BIGNUMs representing binary polynomials is + * ignored. Note that input arguments are not const so that their bit arrays + * can be expanded to the appropriate size if needed. + *) + + (* + * r = a + b + *) + BN_GF2m_add: function(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM): TIdC_INT; cdecl = nil; +// # define BN_GF2m_sub(r, a, b) BN_GF2m_add(r, a, b) + (* + * r=a mod p + *) + BN_GF2m_mod: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM): TIdC_INT; cdecl = nil; + (* r = (a * b) mod p *) + BN_GF2m_mod_mul: function(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + (* r = (a * a) mod p *) + BN_GF2m_mod_sqr: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + (* r = (1 / b) mod p *) + BN_GF2m_mod_inv: function(r: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + (* r = (a / b) mod p *) + BN_GF2m_mod_div: function(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + (* r = (a ^ b) mod p *) + BN_GF2m_mod_exp: function(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + (* r = sqrt(a) mod p *) + BN_GF2m_mod_sqrt: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + (* r^2 + r = a mod p *) + BN_GF2m_mod_solve_quad: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; +// # define BN_GF2m_cmp(a, b) BN_ucmp((a), (b)) + (*- + * Some functions allow for representation of the irreducible polynomials + * as an unsigned int[], say p. The irreducible f(t) is then of the form: + * t^p[0] + t^p[1] + ... + t^p[k] + * where m = p[0] > p[1] > ... > p[k] = 0. + *) + (* r = a mod p *) +// function BN_GF2m_mod_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT): TIdC_INT; + (* r = (a * b) mod p *) +// function BN_GF2m_mod_mul_arr(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (a * a) mod p *) +// function BN_GF2m_mod_sqr_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (1 / b) mod p *) +// function BN_GF2m_mod_inv_arr(r: PBIGNUM; b: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (a / b) mod p *) +// function BN_GF2m_mod_div_arr(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (a ^ b) mod p *) +// function BN_GF2m_mod_exp_arr(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = sqrt(a) mod p *) +// function BN_GF2m_mod_sqrt_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r^2 + r = a mod p *) +// function BN_GF2m_mod_solve_quad_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; +// function BN_GF2m_poly2arr(a: PBIGNUM; p: array of TIdC_INT; max: TIdC_INT): TIdC_INT; +// function BN_GF2m_arr2poly(p: array of TIdC_INT; a: PBIGNUM): TIdC_INT; + + (* + * faster mod functions for the 'NIST primes' 0 <= a < p^2 + *) + BN_nist_mod_192: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_nist_mod_224: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_nist_mod_256: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_nist_mod_384: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + BN_nist_mod_521: function(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + + BN_get0_nist_prime_192: function: PBIGNUM; cdecl = nil; + BN_get0_nist_prime_224: function: PBIGNUM; cdecl = nil; + BN_get0_nist_prime_256: function: PBIGNUM; cdecl = nil; + BN_get0_nist_prime_384: function: PBIGNUM; cdecl = nil; + BN_get0_nist_prime_521: function: PBIGNUM; cdecl = nil; + +//int (*BN_nist_mod_func(const BIGNUM *p)) (BIGNUM *r, const BIGNUM *a, +// const BIGNUM *field, BN_CTX *ctx); + + BN_generate_dsa_nonce: function(out_: PBIGNUM; range: PBIGNUM; priv: PBIGNUM; const message_: PByte; message_len: TIdC_SIZET; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + + (* Primes from RFC 2409 *) + BN_get_rfc2409_prime_768: function(bn: PBIGNUM ): PBIGNUM; cdecl = nil; + BN_get_rfc2409_prime_1024: function(bn: PBIGNUM): PBIGNUM; cdecl = nil; + + (* Primes from RFC 3526 *) + BN_get_rfc3526_prime_1536: function(bn: PBIGNUM): PBIGNUM; cdecl = nil; + BN_get_rfc3526_prime_2048: function(bn: PBIGNUM): PBIGNUM; cdecl = nil; + BN_get_rfc3526_prime_3072: function(bn: PBIGNUM): PBIGNUM; cdecl = nil; + BN_get_rfc3526_prime_4096: function(bn: PBIGNUM): PBIGNUM; cdecl = nil; + BN_get_rfc3526_prime_6144: function(bn: PBIGNUM): PBIGNUM; cdecl = nil; + BN_get_rfc3526_prime_8192: function(bn: PBIGNUM): PBIGNUM; cdecl = nil; + + BN_bntest_rand: function(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT; cdecl = nil; + +{$ELSE} + procedure BN_set_flags(b: PBIGNUM; n: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get_flags(b: PBIGNUM; n: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * get a clone of a BIGNUM with changed flags, for *temporary* use only (the + * two BIGNUMs cannot be used in parallel!). Also only for *read only* use. The + * value |dest| should be a newly allocated BIGNUM obtained via BN_new() that + * has not been otherwise initialised or used. + *) + procedure BN_with_flags(dest: PBIGNUM; b: PBIGNUM; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* Wrapper function to make using BN_GENCB easier *) + function BN_GENCB_call(cb: PBN_GENCB; a: TIdC_INT; b: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_GENCB_new: PBN_GENCB cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_GENCB_free(cb: PBN_GENCB) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Populate a PBN_GENCB structure with an "old"-style callback *) + procedure BN_GENCB_set_old(gencb: PBN_GENCB; callback: BN_GENCB_set_old_cb; cb_arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Populate a PBN_GENCB structure with a "new"-style callback *) + procedure BN_GENCB_set(gencb: PBN_GENCB; callback: BN_GENCB_set_cb; cb_arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_GENCB_get_arg(cb: PBN_GENCB): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * BN_prime_checks_for_size() returns the number of Miller-Rabin iterations + * that will be done for checking that a random number is probably prime. The + * error rate for accepting a composite number as prime depends on the size of + * the prime |b|. The error rates used are for calculating an RSA key with 2 primes, + * and so the level is what you would expect for a key of double the size of the + * prime. + * + * This table is generated using the algorithm of FIPS PUB 186-4 + * Digital Signature Standard (DSS), section F.1, page 117. + * (https://dx.doi.org/10.6028/NIST.FIPS.186-4) + * + * The following magma script was used to generate the output: + * securitybits:=125; + * k:=1024; + * for t:=1 to 65 do + * for M:=3 to Floor(2*Sqrt(k-1)-1) do + * S:=0; + * // Sum over m + * for m:=3 to M do + * s:=0; + * // Sum over j + * for j:=2 to m do + * s+:=(RealField(32)!2)^-(j+(k-1)/j); + * end for; + * S+:=2^(m-(m-1)*t)*s; + * end for; + * A:=2^(k-2-M*t); + * B:=8*(Pi(RealField(32))^2-6)/3*2^(k-2)*S; + * pkt:=2.00743*Log(2)*k*2^-k*(A+B); + * seclevel:=Floor(-Log(2,pkt)); + * if seclevel ge securitybits then + * printf "k: %5o, security: %o bits (t: %o, M: %o)\n",k,seclevel,t,M; + * break; + * end if; + * end for; + * if seclevel ge securitybits then break; end if; + * end for; + * + * It can be run online at: + * http://magma.maths.usyd.edu.au/calc + * + * And will output: + * k: 1024, security: 129 bits (t: 6, M: 23) + * + * k is the number of bits of the prime, securitybits is the level we want to + * reach. + * + * prime length | RSA key size | # MR tests | security level + * -------------+--------------|------------+--------------- + * (b) >= 6394 | >= 12788 | 3 | 256 bit + * (b) >= 3747 | >= 7494 | 3 | 192 bit + * (b) >= 1345 | >= 2690 | 4 | 128 bit + * (b) >= 1080 | >= 2160 | 5 | 128 bit + * (b) >= 852 | >= 1704 | 5 | 112 bit + * (b) >= 476 | >= 952 | 5 | 80 bit + * (b) >= 400 | >= 800 | 6 | 80 bit + * (b) >= 347 | >= 694 | 7 | 80 bit + * (b) >= 308 | >= 616 | 8 | 80 bit + * (b) >= 55 | >= 110 | 27 | 64 bit + * (b) >= 6 | >= 12 | 34 | 64 bit + *) + +// # define BN_prime_checks_for_size(b) ((b) >= 3747 ? 3 : \ +// (b) >= 1345 ? 4 : \ +// (b) >= 476 ? 5 : \ +// (b) >= 400 ? 6 : \ +// (b) >= 347 ? 7 : \ +// (b) >= 308 ? 8 : \ +// (b) >= 55 ? 27 : \ +// (* b >= 6 *) 34) +// +// # define BN_num_bytes(a) ((BN_num_bits(a)+7)/8) + + function BN_abs_is_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_is_zero(a: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_is_one(a: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_is_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_is_odd(a: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// # define BN_one(a) (BN_set_word((a),1)) + + procedure BN_zero_ex(a: PBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_value_one: PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_options: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_CTX_new: PBN_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_CTX_secure_new: PBN_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_CTX_free(c: PBN_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_CTX_start(ctx: PBN_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_CTX_get(ctx: PBN_CTX): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_CTX_end(ctx: PBN_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_rand(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_priv_rand(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_rand_range(rnd: PBIGNUM; range: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_priv_rand_range(rnd: PBIGNUM; range: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_pseudo_rand(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_pseudo_rand_range(rnd: PBIGNUM; range: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_num_bits(a: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_num_bits_word(l: BN_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_security_bits(L: TIdC_INT; N: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_new: PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_secure_new: PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_clear_free(a: PBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_copy(a: PBIGNUM; b: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_swap(a: PBIGNUM; b: PBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_bin2bn(const s: PByte; len: TIdC_INT; ret: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_bn2bin(const a: PBIGNUM; to_: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_bn2binpad(const a: PBIGNUM; to_: PByte; tolen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_lebin2bn(const s: PByte; len: TIdC_INT; ret: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_bn2lebinpad(a: PBIGNUM; to_: PByte; tolen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mpi2bn(const s: PByte; len: TIdC_INT; ret: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_bn2mpi(a: PBIGNUM; to_: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_sub(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_usub(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_uadd(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_add(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mul(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_sqr(r: PBIGNUM; const a: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (** BN_set_negative sets sign of a BIGNUM + * \param b pointer to the BIGNUM object + * \param n 0 if the BIGNUM b should be positive and a value != 0 otherwise + *) + procedure BN_set_negative(b: PBIGNUM; n: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (** BN_is_negative returns 1 if the BIGNUM is negative + * \param b pointer to the BIGNUM object + * \return 1 if a < 0 and 0 otherwise + *) + function BN_is_negative(b: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_div(dv: PBIGNUM; rem: PBIGNUM; const m: PBIGNUM; const d: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) + function BN_nnmod(r: PBIGNUM; const m: PBIGNUM; const d: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_add(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_add_quick(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_sub(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_sub_quick(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_mul(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_sqr(r: PBIGNUM; const a: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_lshift1(r: PBIGNUM; const a: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_lshift1_quick(r: PBIGNUM; const a: PBIGNUM; const m: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_lshift(r: PBIGNUM; const a: PBIGNUM; n: TIdC_INT; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_lshift_quick(r: PBIGNUM; const a: PBIGNUM; n: TIdC_INT; const m: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_mod_word(const a: PBIGNUM; w: BN_ULONG): BN_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_div_word(a: PBIGNUM; w: BN_ULONG): BN_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mul_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_add_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_sub_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_set_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get_word(const a: PBIGNUM): BN_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_cmp(const a: PBIGNUM; const b: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_free(a: PBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_is_bit_set(const a: PBIGNUM; n: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_lshift(r: PBIGNUM; const a: PBIGNUM; n: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_lshift1(r: PBIGNUM; const a: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_exp(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_mod_exp(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_exp_mont(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX; m_ctx: PBN_MONT_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_exp_mont_consttime(rr: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX; in_mont: PBN_MONT_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_exp_mont_word(r: PBIGNUM; a: BN_ULONG; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX; m_ctx: PBN_MONT_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_exp2_mont(r: PBIGNUM; const a1: PBIGNUM; const p1: PBIGNUM; const a2: PBIGNUM; const p2: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX; m_ctx: PBN_MONT_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_exp_simple(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_mask_bits(a: PBIGNUM; n: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_print(bio: PBIO; a: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_reciprocal(r: PBIGNUM; m: PBIGNUM; len: TIdC_INT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_rshift(r: PBIGNUM; a: PBIGNUM; n: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_rshift1(r: PBIGNUM; a: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_clear(a: PBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_dup(const a: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_ucmp(a: PBIGNUM; b: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_set_bit(a: PBIGNUM; n: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_clear_bit(a: PBIGNUM; n: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_bn2hex(a: PBIGNUM): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_bn2dec(a: PBIGNUM): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_hex2bn(a: PPBIGNUM; str: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_dec2bn(a: PPBIGNUM; str: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_asc2bn(a: PPBIGNUM; str: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_gcd(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_kronecker(a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_mod_inverse(ret: PBIGNUM; a: PBIGNUM; const n: PBIGNUM; ctx: PBN_CTX): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_sqrt(ret: PBIGNUM; a: PBIGNUM; const n: PBIGNUM; ctx: PBN_CTX): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure BN_consttime_swap(swap: BN_ULONG; a: PBIGNUM; b: PBIGNUM; nwords: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_generate_prime_ex(ret: PBIGNUM; bits: TIdC_INT; safe: TIdC_INT; const add: PBIGNUM; const rem: PBIGNUM; cb: PBN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_is_prime_ex(const p: PBIGNUM; nchecks: TIdC_INT; ctx: PBN_CTX; cb: PBN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_is_prime_fasttest_ex(const p: PBIGNUM; nchecks: TIdC_INT; ctx: PBN_CTX; do_trial_division: TIdC_INT; cb: PBN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_X931_generate_Xpq(Xp: PBIGNUM; Xq: PBIGNUM; nbits: TIdC_INT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_X931_derive_prime_ex(p: PBIGNUM; p1: PBIGNUM; p2: PBIGNUM; const Xp: PBIGNUM; const Xp1: PBIGNUM; const Xp2: PBIGNUM; const e: PBIGNUM; ctx: PBN_CTX; cb: PBN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_X931_generate_prime_ex(p: PBIGNUM; p1: PBIGNUM; p2: PBIGNUM; Xp1: PBIGNUM; Xp2: PBIGNUM; Xp: PBIGNUM; const e: PBIGNUM; ctx: PBN_CTX; cb: PBN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_MONT_CTX_new: PBN_MONT_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_mul_montgomery(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; mont: PBN_MONT_CTX; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_to_montgomery(r: PBIGNUM; a: PBIGNUM; mont: PBN_MONT_CTX; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_from_montgomery(r: PBIGNUM; a: PBIGNUM; mont: PBN_MONT_CTX; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_MONT_CTX_free(mont: PBN_MONT_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_MONT_CTX_set(mont: PBN_MONT_CTX; mod_: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_MONT_CTX_copy(to_: PBN_MONT_CTX; from: PBN_MONT_CTX): PBN_MONT_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function BN_MONT_CTX_set_locked(pmont: ^PBN_MONT_CTX; lock: CRYPTO_RWLOCK; mod_: PBIGNUM; ctx: PBN_CTX): PBN_MONT_CTX; + + function BN_BLINDING_new(const A: PBIGNUM; const Ai: PBIGNUM; mod_: PBIGNUM): PBN_BLINDING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_BLINDING_free(b: PBN_BLINDING) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_BLINDING_update(b: PBN_BLINDING; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_BLINDING_convert(n: PBIGNUM; b: PBN_BLINDING; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_BLINDING_invert(n: PBIGNUM; b: PBN_BLINDING; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_BLINDING_convert_ex(n: PBIGNUM; r: PBIGNUM; b: PBN_BLINDING; v4: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_BLINDING_invert_ex(n: PBIGNUM; r: PBIGNUM; b: PBN_BLINDING; v2: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_BLINDING_is_current_thread(b: PBN_BLINDING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_BLINDING_set_current_thread(b: PBN_BLINDING) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_BLINDING_lock(b: PBN_BLINDING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_BLINDING_unlock(b: PBN_BLINDING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_BLINDING_get_flags(v1: PBN_BLINDING): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BN_BLINDING_set_flags(v1: PBN_BLINDING; v2: TIdC_ULONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function BN_BLINDING_create_param(PBN_BLINDING *b, +// PBIGNUM *e, PBIGNUM *m, PBN_CTX *ctx, +// function ( +// r: PBIGNUM; +// a: PBIGNUM; +// p: PBIGNUM; +// m: PBIGNUM; +// ctx: PBN_CTX; +// m_ctx: PBN_MONT_CTX): TIdC_INT, +// PBN_MONT_CTX *m_ctx): PBN_BLINDING; + + procedure BN_RECP_CTX_free(recp: PBN_RECP_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_RECP_CTX_set(recp: PBN_RECP_CTX; rdiv: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_mul_reciprocal(r: PBIGNUM; x: PBIGNUM; y: PBIGNUM; recp: PBN_RECP_CTX; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_mod_exp_recp(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_div_recp(dv: PBIGNUM; rem: PBIGNUM; m: PBIGNUM; recp: PBN_RECP_CTX; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Functions for arithmetic over binary polynomials represented by BIGNUMs. + * The BIGNUM::neg property of BIGNUMs representing binary polynomials is + * ignored. Note that input arguments are not const so that their bit arrays + * can be expanded to the appropriate size if needed. + *) + + (* + * r = a + b + *) + function BN_GF2m_add(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// # define BN_GF2m_sub(r, a, b) BN_GF2m_add(r, a, b) + (* + * r=a mod p + *) + function BN_GF2m_mod(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* r = (a * b) mod p *) + function BN_GF2m_mod_mul(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* r = (a * a) mod p *) + function BN_GF2m_mod_sqr(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* r = (1 / b) mod p *) + function BN_GF2m_mod_inv(r: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* r = (a / b) mod p *) + function BN_GF2m_mod_div(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* r = (a ^ b) mod p *) + function BN_GF2m_mod_exp(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* r = sqrt(a) mod p *) + function BN_GF2m_mod_sqrt(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* r^2 + r = a mod p *) + function BN_GF2m_mod_solve_quad(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// # define BN_GF2m_cmp(a, b) BN_ucmp((a), (b)) + (*- + * Some functions allow for representation of the irreducible polynomials + * as an unsigned int[], say p. The irreducible f(t) is then of the form: + * t^p[0] + t^p[1] + ... + t^p[k] + * where m = p[0] > p[1] > ... > p[k] = 0. + *) + (* r = a mod p *) +// function BN_GF2m_mod_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT): TIdC_INT; + (* r = (a * b) mod p *) +// function BN_GF2m_mod_mul_arr(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (a * a) mod p *) +// function BN_GF2m_mod_sqr_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (1 / b) mod p *) +// function BN_GF2m_mod_inv_arr(r: PBIGNUM; b: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (a / b) mod p *) +// function BN_GF2m_mod_div_arr(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (a ^ b) mod p *) +// function BN_GF2m_mod_exp_arr(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = sqrt(a) mod p *) +// function BN_GF2m_mod_sqrt_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r^2 + r = a mod p *) +// function BN_GF2m_mod_solve_quad_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; +// function BN_GF2m_poly2arr(a: PBIGNUM; p: array of TIdC_INT; max: TIdC_INT): TIdC_INT; +// function BN_GF2m_arr2poly(p: array of TIdC_INT; a: PBIGNUM): TIdC_INT; + + (* + * faster mod functions for the 'NIST primes' 0 <= a < p^2 + *) + function BN_nist_mod_192(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_nist_mod_224(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_nist_mod_256(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_nist_mod_384(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_nist_mod_521(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_get0_nist_prime_192: PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get0_nist_prime_224: PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get0_nist_prime_256: PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get0_nist_prime_384: PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get0_nist_prime_521: PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +//int (*BN_nist_mod_func(const BIGNUM *p)) (BIGNUM *r, const BIGNUM *a, +// const BIGNUM *field, BN_CTX *ctx); + + function BN_generate_dsa_nonce(out_: PBIGNUM; range: PBIGNUM; priv: PBIGNUM; const message_: PByte; message_len: TIdC_SIZET; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Primes from RFC 2409 *) + function BN_get_rfc2409_prime_768(bn: PBIGNUM ): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get_rfc2409_prime_1024(bn: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Primes from RFC 3526 *) + function BN_get_rfc3526_prime_1536(bn: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get_rfc3526_prime_2048(bn: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get_rfc3526_prime_3072(bn: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get_rfc3526_prime_4096(bn: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get_rfc3526_prime_6144(bn: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BN_get_rfc3526_prime_8192(bn: PBIGNUM): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BN_bntest_rand(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + BN_set_flags := LoadFunction('BN_set_flags',AFailed); + BN_get_flags := LoadFunction('BN_get_flags',AFailed); + BN_with_flags := LoadFunction('BN_with_flags',AFailed); + BN_GENCB_call := LoadFunction('BN_GENCB_call',AFailed); + BN_GENCB_new := LoadFunction('BN_GENCB_new',AFailed); + BN_GENCB_free := LoadFunction('BN_GENCB_free',AFailed); + BN_GENCB_set_old := LoadFunction('BN_GENCB_set_old',AFailed); + BN_GENCB_set := LoadFunction('BN_GENCB_set',AFailed); + BN_GENCB_get_arg := LoadFunction('BN_GENCB_get_arg',AFailed); + BN_abs_is_word := LoadFunction('BN_abs_is_word',AFailed); + BN_is_zero := LoadFunction('BN_is_zero',AFailed); + BN_is_one := LoadFunction('BN_is_one',AFailed); + BN_is_word := LoadFunction('BN_is_word',AFailed); + BN_is_odd := LoadFunction('BN_is_odd',AFailed); + BN_zero_ex := LoadFunction('BN_zero_ex',AFailed); + BN_value_one := LoadFunction('BN_value_one',AFailed); + BN_options := LoadFunction('BN_options',AFailed); + BN_CTX_new := LoadFunction('BN_CTX_new',AFailed); + BN_CTX_secure_new := LoadFunction('BN_CTX_secure_new',AFailed); + BN_CTX_free := LoadFunction('BN_CTX_free',AFailed); + BN_CTX_start := LoadFunction('BN_CTX_start',AFailed); + BN_CTX_get := LoadFunction('BN_CTX_get',AFailed); + BN_CTX_end := LoadFunction('BN_CTX_end',AFailed); + BN_rand := LoadFunction('BN_rand',AFailed); + BN_priv_rand := LoadFunction('BN_priv_rand',AFailed); + BN_rand_range := LoadFunction('BN_rand_range',AFailed); + BN_priv_rand_range := LoadFunction('BN_priv_rand_range',AFailed); + BN_pseudo_rand := LoadFunction('BN_pseudo_rand',AFailed); + BN_pseudo_rand_range := LoadFunction('BN_pseudo_rand_range',AFailed); + BN_num_bits := LoadFunction('BN_num_bits',AFailed); + BN_num_bits_word := LoadFunction('BN_num_bits_word',AFailed); + BN_security_bits := LoadFunction('BN_security_bits',AFailed); + BN_new := LoadFunction('BN_new',AFailed); + BN_secure_new := LoadFunction('BN_secure_new',AFailed); + BN_clear_free := LoadFunction('BN_clear_free',AFailed); + BN_copy := LoadFunction('BN_copy',AFailed); + BN_swap := LoadFunction('BN_swap',AFailed); + BN_bin2bn := LoadFunction('BN_bin2bn',AFailed); + BN_bn2bin := LoadFunction('BN_bn2bin',AFailed); + BN_bn2binpad := LoadFunction('BN_bn2binpad',AFailed); + BN_lebin2bn := LoadFunction('BN_lebin2bn',AFailed); + BN_bn2lebinpad := LoadFunction('BN_bn2lebinpad',AFailed); + BN_mpi2bn := LoadFunction('BN_mpi2bn',AFailed); + BN_bn2mpi := LoadFunction('BN_bn2mpi',AFailed); + BN_sub := LoadFunction('BN_sub',AFailed); + BN_usub := LoadFunction('BN_usub',AFailed); + BN_uadd := LoadFunction('BN_uadd',AFailed); + BN_add := LoadFunction('BN_add',AFailed); + BN_mul := LoadFunction('BN_mul',AFailed); + BN_sqr := LoadFunction('BN_sqr',AFailed); + BN_set_negative := LoadFunction('BN_set_negative',AFailed); + BN_is_negative := LoadFunction('BN_is_negative',AFailed); + BN_div := LoadFunction('BN_div',AFailed); + BN_nnmod := LoadFunction('BN_nnmod',AFailed); + BN_mod_add := LoadFunction('BN_mod_add',AFailed); + BN_mod_add_quick := LoadFunction('BN_mod_add_quick',AFailed); + BN_mod_sub := LoadFunction('BN_mod_sub',AFailed); + BN_mod_sub_quick := LoadFunction('BN_mod_sub_quick',AFailed); + BN_mod_mul := LoadFunction('BN_mod_mul',AFailed); + BN_mod_sqr := LoadFunction('BN_mod_sqr',AFailed); + BN_mod_lshift1 := LoadFunction('BN_mod_lshift1',AFailed); + BN_mod_lshift1_quick := LoadFunction('BN_mod_lshift1_quick',AFailed); + BN_mod_lshift := LoadFunction('BN_mod_lshift',AFailed); + BN_mod_lshift_quick := LoadFunction('BN_mod_lshift_quick',AFailed); + BN_mod_word := LoadFunction('BN_mod_word',AFailed); + BN_div_word := LoadFunction('BN_div_word',AFailed); + BN_mul_word := LoadFunction('BN_mul_word',AFailed); + BN_add_word := LoadFunction('BN_add_word',AFailed); + BN_sub_word := LoadFunction('BN_sub_word',AFailed); + BN_set_word := LoadFunction('BN_set_word',AFailed); + BN_get_word := LoadFunction('BN_get_word',AFailed); + BN_cmp := LoadFunction('BN_cmp',AFailed); + BN_free := LoadFunction('BN_free',AFailed); + BN_is_bit_set := LoadFunction('BN_is_bit_set',AFailed); + BN_lshift := LoadFunction('BN_lshift',AFailed); + BN_lshift1 := LoadFunction('BN_lshift1',AFailed); + BN_exp := LoadFunction('BN_exp',AFailed); + BN_mod_exp := LoadFunction('BN_mod_exp',AFailed); + BN_mod_exp_mont := LoadFunction('BN_mod_exp_mont',AFailed); + BN_mod_exp_mont_consttime := LoadFunction('BN_mod_exp_mont_consttime',AFailed); + BN_mod_exp_mont_word := LoadFunction('BN_mod_exp_mont_word',AFailed); + BN_mod_exp2_mont := LoadFunction('BN_mod_exp2_mont',AFailed); + BN_mod_exp_simple := LoadFunction('BN_mod_exp_simple',AFailed); + BN_mask_bits := LoadFunction('BN_mask_bits',AFailed); + BN_print := LoadFunction('BN_print',AFailed); + BN_reciprocal := LoadFunction('BN_reciprocal',AFailed); + BN_rshift := LoadFunction('BN_rshift',AFailed); + BN_rshift1 := LoadFunction('BN_rshift1',AFailed); + BN_clear := LoadFunction('BN_clear',AFailed); + BN_dup := LoadFunction('BN_dup',AFailed); + BN_ucmp := LoadFunction('BN_ucmp',AFailed); + BN_set_bit := LoadFunction('BN_set_bit',AFailed); + BN_clear_bit := LoadFunction('BN_clear_bit',AFailed); + BN_bn2hex := LoadFunction('BN_bn2hex',AFailed); + BN_bn2dec := LoadFunction('BN_bn2dec',AFailed); + BN_hex2bn := LoadFunction('BN_hex2bn',AFailed); + BN_dec2bn := LoadFunction('BN_dec2bn',AFailed); + BN_asc2bn := LoadFunction('BN_asc2bn',AFailed); + BN_gcd := LoadFunction('BN_gcd',AFailed); + BN_kronecker := LoadFunction('BN_kronecker',AFailed); + BN_mod_inverse := LoadFunction('BN_mod_inverse',AFailed); + BN_mod_sqrt := LoadFunction('BN_mod_sqrt',AFailed); + BN_consttime_swap := LoadFunction('BN_consttime_swap',AFailed); + BN_generate_prime_ex := LoadFunction('BN_generate_prime_ex',AFailed); + BN_is_prime_ex := LoadFunction('BN_is_prime_ex',AFailed); + BN_is_prime_fasttest_ex := LoadFunction('BN_is_prime_fasttest_ex',AFailed); + BN_X931_generate_Xpq := LoadFunction('BN_X931_generate_Xpq',AFailed); + BN_X931_derive_prime_ex := LoadFunction('BN_X931_derive_prime_ex',AFailed); + BN_X931_generate_prime_ex := LoadFunction('BN_X931_generate_prime_ex',AFailed); + BN_MONT_CTX_new := LoadFunction('BN_MONT_CTX_new',AFailed); + BN_mod_mul_montgomery := LoadFunction('BN_mod_mul_montgomery',AFailed); + BN_to_montgomery := LoadFunction('BN_to_montgomery',AFailed); + BN_from_montgomery := LoadFunction('BN_from_montgomery',AFailed); + BN_MONT_CTX_free := LoadFunction('BN_MONT_CTX_free',AFailed); + BN_MONT_CTX_set := LoadFunction('BN_MONT_CTX_set',AFailed); + BN_MONT_CTX_copy := LoadFunction('BN_MONT_CTX_copy',AFailed); + BN_BLINDING_new := LoadFunction('BN_BLINDING_new',AFailed); + BN_BLINDING_free := LoadFunction('BN_BLINDING_free',AFailed); + BN_BLINDING_update := LoadFunction('BN_BLINDING_update',AFailed); + BN_BLINDING_convert := LoadFunction('BN_BLINDING_convert',AFailed); + BN_BLINDING_invert := LoadFunction('BN_BLINDING_invert',AFailed); + BN_BLINDING_convert_ex := LoadFunction('BN_BLINDING_convert_ex',AFailed); + BN_BLINDING_invert_ex := LoadFunction('BN_BLINDING_invert_ex',AFailed); + BN_BLINDING_is_current_thread := LoadFunction('BN_BLINDING_is_current_thread',AFailed); + BN_BLINDING_set_current_thread := LoadFunction('BN_BLINDING_set_current_thread',AFailed); + BN_BLINDING_lock := LoadFunction('BN_BLINDING_lock',AFailed); + BN_BLINDING_unlock := LoadFunction('BN_BLINDING_unlock',AFailed); + BN_BLINDING_get_flags := LoadFunction('BN_BLINDING_get_flags',AFailed); + BN_BLINDING_set_flags := LoadFunction('BN_BLINDING_set_flags',AFailed); + BN_RECP_CTX_free := LoadFunction('BN_RECP_CTX_free',AFailed); + BN_RECP_CTX_set := LoadFunction('BN_RECP_CTX_set',AFailed); + BN_mod_mul_reciprocal := LoadFunction('BN_mod_mul_reciprocal',AFailed); + BN_mod_exp_recp := LoadFunction('BN_mod_exp_recp',AFailed); + BN_div_recp := LoadFunction('BN_div_recp',AFailed); + BN_GF2m_add := LoadFunction('BN_GF2m_add',AFailed); + BN_GF2m_mod := LoadFunction('BN_GF2m_mod',AFailed); + BN_GF2m_mod_mul := LoadFunction('BN_GF2m_mod_mul',AFailed); + BN_GF2m_mod_sqr := LoadFunction('BN_GF2m_mod_sqr',AFailed); + BN_GF2m_mod_inv := LoadFunction('BN_GF2m_mod_inv',AFailed); + BN_GF2m_mod_div := LoadFunction('BN_GF2m_mod_div',AFailed); + BN_GF2m_mod_exp := LoadFunction('BN_GF2m_mod_exp',AFailed); + BN_GF2m_mod_sqrt := LoadFunction('BN_GF2m_mod_sqrt',AFailed); + BN_GF2m_mod_solve_quad := LoadFunction('BN_GF2m_mod_solve_quad',AFailed); + BN_nist_mod_192 := LoadFunction('BN_nist_mod_192',AFailed); + BN_nist_mod_224 := LoadFunction('BN_nist_mod_224',AFailed); + BN_nist_mod_256 := LoadFunction('BN_nist_mod_256',AFailed); + BN_nist_mod_384 := LoadFunction('BN_nist_mod_384',AFailed); + BN_nist_mod_521 := LoadFunction('BN_nist_mod_521',AFailed); + BN_get0_nist_prime_192 := LoadFunction('BN_get0_nist_prime_192',AFailed); + BN_get0_nist_prime_224 := LoadFunction('BN_get0_nist_prime_224',AFailed); + BN_get0_nist_prime_256 := LoadFunction('BN_get0_nist_prime_256',AFailed); + BN_get0_nist_prime_384 := LoadFunction('BN_get0_nist_prime_384',AFailed); + BN_get0_nist_prime_521 := LoadFunction('BN_get0_nist_prime_521',AFailed); + BN_generate_dsa_nonce := LoadFunction('BN_generate_dsa_nonce',AFailed); + BN_get_rfc2409_prime_768 := LoadFunction('BN_get_rfc2409_prime_768',AFailed); + BN_get_rfc2409_prime_1024 := LoadFunction('BN_get_rfc2409_prime_1024',AFailed); + BN_get_rfc3526_prime_1536 := LoadFunction('BN_get_rfc3526_prime_1536',AFailed); + BN_get_rfc3526_prime_2048 := LoadFunction('BN_get_rfc3526_prime_2048',AFailed); + BN_get_rfc3526_prime_3072 := LoadFunction('BN_get_rfc3526_prime_3072',AFailed); + BN_get_rfc3526_prime_4096 := LoadFunction('BN_get_rfc3526_prime_4096',AFailed); + BN_get_rfc3526_prime_6144 := LoadFunction('BN_get_rfc3526_prime_6144',AFailed); + BN_get_rfc3526_prime_8192 := LoadFunction('BN_get_rfc3526_prime_8192',AFailed); + BN_bntest_rand := LoadFunction('BN_bntest_rand',AFailed); +end; + +procedure Unload; +begin + BN_set_flags := nil; + BN_get_flags := nil; + BN_with_flags := nil; + BN_GENCB_call := nil; + BN_GENCB_new := nil; + BN_GENCB_free := nil; + BN_GENCB_set_old := nil; + BN_GENCB_set := nil; + BN_GENCB_get_arg := nil; + BN_abs_is_word := nil; + BN_is_zero := nil; + BN_is_one := nil; + BN_is_word := nil; + BN_is_odd := nil; + BN_zero_ex := nil; + BN_value_one := nil; + BN_options := nil; + BN_CTX_new := nil; + BN_CTX_secure_new := nil; + BN_CTX_free := nil; + BN_CTX_start := nil; + BN_CTX_get := nil; + BN_CTX_end := nil; + BN_rand := nil; + BN_priv_rand := nil; + BN_rand_range := nil; + BN_priv_rand_range := nil; + BN_pseudo_rand := nil; + BN_pseudo_rand_range := nil; + BN_num_bits := nil; + BN_num_bits_word := nil; + BN_security_bits := nil; + BN_new := nil; + BN_secure_new := nil; + BN_clear_free := nil; + BN_copy := nil; + BN_swap := nil; + BN_bin2bn := nil; + BN_bn2bin := nil; + BN_bn2binpad := nil; + BN_lebin2bn := nil; + BN_bn2lebinpad := nil; + BN_mpi2bn := nil; + BN_bn2mpi := nil; + BN_sub := nil; + BN_usub := nil; + BN_uadd := nil; + BN_add := nil; + BN_mul := nil; + BN_sqr := nil; + BN_set_negative := nil; + BN_is_negative := nil; + BN_div := nil; + BN_nnmod := nil; + BN_mod_add := nil; + BN_mod_add_quick := nil; + BN_mod_sub := nil; + BN_mod_sub_quick := nil; + BN_mod_mul := nil; + BN_mod_sqr := nil; + BN_mod_lshift1 := nil; + BN_mod_lshift1_quick := nil; + BN_mod_lshift := nil; + BN_mod_lshift_quick := nil; + BN_mod_word := nil; + BN_div_word := nil; + BN_mul_word := nil; + BN_add_word := nil; + BN_sub_word := nil; + BN_set_word := nil; + BN_get_word := nil; + BN_cmp := nil; + BN_free := nil; + BN_is_bit_set := nil; + BN_lshift := nil; + BN_lshift1 := nil; + BN_exp := nil; + BN_mod_exp := nil; + BN_mod_exp_mont := nil; + BN_mod_exp_mont_consttime := nil; + BN_mod_exp_mont_word := nil; + BN_mod_exp2_mont := nil; + BN_mod_exp_simple := nil; + BN_mask_bits := nil; + BN_print := nil; + BN_reciprocal := nil; + BN_rshift := nil; + BN_rshift1 := nil; + BN_clear := nil; + BN_dup := nil; + BN_ucmp := nil; + BN_set_bit := nil; + BN_clear_bit := nil; + BN_bn2hex := nil; + BN_bn2dec := nil; + BN_hex2bn := nil; + BN_dec2bn := nil; + BN_asc2bn := nil; + BN_gcd := nil; + BN_kronecker := nil; + BN_mod_inverse := nil; + BN_mod_sqrt := nil; + BN_consttime_swap := nil; + BN_generate_prime_ex := nil; + BN_is_prime_ex := nil; + BN_is_prime_fasttest_ex := nil; + BN_X931_generate_Xpq := nil; + BN_X931_derive_prime_ex := nil; + BN_X931_generate_prime_ex := nil; + BN_MONT_CTX_new := nil; + BN_mod_mul_montgomery := nil; + BN_to_montgomery := nil; + BN_from_montgomery := nil; + BN_MONT_CTX_free := nil; + BN_MONT_CTX_set := nil; + BN_MONT_CTX_copy := nil; + BN_BLINDING_new := nil; + BN_BLINDING_free := nil; + BN_BLINDING_update := nil; + BN_BLINDING_convert := nil; + BN_BLINDING_invert := nil; + BN_BLINDING_convert_ex := nil; + BN_BLINDING_invert_ex := nil; + BN_BLINDING_is_current_thread := nil; + BN_BLINDING_set_current_thread := nil; + BN_BLINDING_lock := nil; + BN_BLINDING_unlock := nil; + BN_BLINDING_get_flags := nil; + BN_BLINDING_set_flags := nil; + BN_RECP_CTX_free := nil; + BN_RECP_CTX_set := nil; + BN_mod_mul_reciprocal := nil; + BN_mod_exp_recp := nil; + BN_div_recp := nil; + BN_GF2m_add := nil; + BN_GF2m_mod := nil; + BN_GF2m_mod_mul := nil; + BN_GF2m_mod_sqr := nil; + BN_GF2m_mod_inv := nil; + BN_GF2m_mod_div := nil; + BN_GF2m_mod_exp := nil; + BN_GF2m_mod_sqrt := nil; + BN_GF2m_mod_solve_quad := nil; + BN_nist_mod_192 := nil; + BN_nist_mod_224 := nil; + BN_nist_mod_256 := nil; + BN_nist_mod_384 := nil; + BN_nist_mod_521 := nil; + BN_get0_nist_prime_192 := nil; + BN_get0_nist_prime_224 := nil; + BN_get0_nist_prime_256 := nil; + BN_get0_nist_prime_384 := nil; + BN_get0_nist_prime_521 := nil; + BN_generate_dsa_nonce := nil; + BN_get_rfc2409_prime_768 := nil; + BN_get_rfc2409_prime_1024 := nil; + BN_get_rfc3526_prime_1536 := nil; + BN_get_rfc3526_prime_2048 := nil; + BN_get_rfc3526_prime_3072 := nil; + BN_get_rfc3526_prime_4096 := nil; + BN_get_rfc3526_prime_6144 := nil; + BN_get_rfc3526_prime_8192 := nil; + BN_bntest_rand := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bnerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bnerr.pas new file mode 100644 index 000000000..2b9bf3539 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_bnerr.pas @@ -0,0 +1,178 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_bnerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_bnerr.h2pas + and this file regenerated. IdOpenSSLHeaders_bnerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_bnerr; + +interface + +// Headers for OpenSSL 1.1.1 +// bnerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * BN function codes. + *) + BN_F_BNRAND = 127; + BN_F_BNRAND_RANGE = 138; + BN_F_BN_BLINDING_CONVERT_EX = 100; + BN_F_BN_BLINDING_CREATE_PARAM = 128; + BN_F_BN_BLINDING_INVERT_EX = 101; + BN_F_BN_BLINDING_NEW = 102; + BN_F_BN_BLINDING_UPDATE = 103; + BN_F_BN_BN2DEC = 104; + BN_F_BN_BN2HEX = 105; + BN_F_BN_COMPUTE_WNAF = 142; + BN_F_BN_CTX_GET = 116; + BN_F_BN_CTX_NEW = 106; + BN_F_BN_CTX_START = 129; + BN_F_BN_DIV = 107; + BN_F_BN_DIV_RECP = 130; + BN_F_BN_EXP = 123; + BN_F_BN_EXPAND_INTERNAL = 120; + BN_F_BN_GENCB_NEW = 143; + BN_F_BN_GENERATE_DSA_NONCE = 140; + BN_F_BN_GENERATE_PRIME_EX = 141; + BN_F_BN_GF2M_MOD = 131; + BN_F_BN_GF2M_MOD_EXP = 132; + BN_F_BN_GF2M_MOD_MUL = 133; + BN_F_BN_GF2M_MOD_SOLVE_QUAD = 134; + BN_F_BN_GF2M_MOD_SOLVE_QUAD_ARR = 135; + BN_F_BN_GF2M_MOD_SQR = 136; + BN_F_BN_GF2M_MOD_SQRT = 137; + BN_F_BN_LSHIFT = 145; + BN_F_BN_MOD_EXP2_MONT = 118; + BN_F_BN_MOD_EXP_MONT = 109; + BN_F_BN_MOD_EXP_MONT_CONSTTIME = 124; + BN_F_BN_MOD_EXP_MONT_WORD = 117; + BN_F_BN_MOD_EXP_RECP = 125; + BN_F_BN_MOD_EXP_SIMPLE = 126; + BN_F_BN_MOD_INVERSE = 110; + BN_F_BN_MOD_INVERSE_NO_BRANCH = 139; + BN_F_BN_MOD_LSHIFT_QUICK = 119; + BN_F_BN_MOD_SQRT = 121; + BN_F_BN_MONT_CTX_NEW = 149; + BN_F_BN_MPI2BN = 112; + BN_F_BN_NEW = 113; + BN_F_BN_POOL_GET = 147; + BN_F_BN_RAND = 114; + BN_F_BN_RAND_RANGE = 122; + BN_F_BN_RECP_CTX_NEW = 150; + BN_F_BN_RSHIFT = 146; + BN_F_BN_SET_WORDS = 144; + BN_F_BN_STACK_PUSH = 148; + BN_F_BN_USUB = 115; + + (* + * BN reason codes. + *) + BN_R_ARG2_LT_ARG3 = 100; + BN_R_BAD_RECIPROCAL = 101; + BN_R_BIGNUM_TOO_LONG = 114; + BN_R_BITS_TOO_SMALL = 118; + BN_R_CALLED_WITH_EVEN_MODULUS = 102; + BN_R_DIV_BY_ZERO = 103; + BN_R_ENCODING_ERROR = 104; + BN_R_EXPAND_ON_STATIC_BIGNUM_DATA = 105; + BN_R_INPUT_NOT_REDUCED = 110; + BN_R_INVALID_LENGTH = 106; + BN_R_INVALID_RANGE = 115; + BN_R_INVALID_SHIFT = 119; + BN_R_NOT_A_SQUARE = 111; + BN_R_NOT_INITIALIZED = 107; + BN_R_NO_INVERSE = 108; + BN_R_NO_SOLUTION = 116; + BN_R_PRIVATE_KEY_TOO_LARGE = 117; + BN_R_P_IS_NOT_PRIME = 112; + BN_R_TOO_MANY_ITERATIONS = 113; + BN_R_TOO_MANY_TEMPORARY_VARIABLES = 109; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_BN_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_BN_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_BN_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_BN_strings := LoadFunction('ERR_load_BN_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_BN_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_buffer.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_buffer.pas new file mode 100644 index 000000000..3aae853cc --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_buffer.pas @@ -0,0 +1,137 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_buffer.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_buffer.h2pas + and this file regenerated. IdOpenSSLHeaders_buffer.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_buffer; + +interface + +// Headers for OpenSSL 1.1.1 +// buffer.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + BUF_MEM_FLAG_SECURE = $01; + +type + buf_mem_st = record + length: TIdC_SIZET; + data: PIdAnsiChar; + max: TIdC_SIZET; + flags: TIdC_ULONG; + end; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM BUF_MEM_new} + {$EXTERNALSYM BUF_MEM_new_ex} + {$EXTERNALSYM BUF_MEM_free} + {$EXTERNALSYM BUF_MEM_grow} + {$EXTERNALSYM BUF_MEM_grow_clean} + {$EXTERNALSYM BUF_reverse} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + BUF_MEM_new: function: PBUF_MEM; cdecl = nil; + BUF_MEM_new_ex: function(flags: TIdC_ULONG): PBUF_MEM; cdecl = nil; + BUF_MEM_free: procedure(a: PBUF_MEM); cdecl = nil; + BUF_MEM_grow: function(str: PBUF_MEM; len: TIdC_SIZET): TIdC_SIZET; cdecl = nil; + BUF_MEM_grow_clean: function(str: PBUF_MEM; len: TIdC_SIZET): TIdC_SIZET; cdecl = nil; + BUF_reverse: procedure(out_: PByte; const in_: PByte; siz: TIdC_SIZET); cdecl = nil; + +{$ELSE} + function BUF_MEM_new: PBUF_MEM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BUF_MEM_new_ex(flags: TIdC_ULONG): PBUF_MEM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BUF_MEM_free(a: PBUF_MEM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BUF_MEM_grow(str: PBUF_MEM; len: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BUF_MEM_grow_clean(str: PBUF_MEM; len: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure BUF_reverse(out_: PByte; const in_: PByte; siz: TIdC_SIZET) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + BUF_MEM_new := LoadFunction('BUF_MEM_new',AFailed); + BUF_MEM_new_ex := LoadFunction('BUF_MEM_new_ex',AFailed); + BUF_MEM_free := LoadFunction('BUF_MEM_free',AFailed); + BUF_MEM_grow := LoadFunction('BUF_MEM_grow',AFailed); + BUF_MEM_grow_clean := LoadFunction('BUF_MEM_grow_clean',AFailed); + BUF_reverse := LoadFunction('BUF_reverse',AFailed); +end; + +procedure Unload; +begin + BUF_MEM_new := nil; + BUF_MEM_new_ex := nil; + BUF_MEM_free := nil; + BUF_MEM_grow := nil; + BUF_MEM_grow_clean := nil; + BUF_reverse := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_buffererr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_buffererr.pas new file mode 100644 index 000000000..85d802f1a --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_buffererr.pas @@ -0,0 +1,108 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_buffererr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_buffererr.h2pas + and this file regenerated. IdOpenSSLHeaders_buffererr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_buffererr; + +interface + +// Headers for OpenSSL 1.1.1 +// buffererr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const +// BUF function codes. + BUF_F_BUF_MEM_GROW = 100; + BUF_F_BUF_MEM_GROW_CLEAN = 105; + BUF_F_BUF_MEM_NEW = 101; + +// BUF reason codes. + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_BUF_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_BUF_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_BUF_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_BUF_strings := LoadFunction('ERR_load_BUF_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_BUF_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_camellia.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_camellia.pas new file mode 100644 index 000000000..6535bb2ce --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_camellia.pas @@ -0,0 +1,179 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_camellia.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_camellia.h2pas + and this file regenerated. IdOpenSSLHeaders_camellia.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_camellia; + +interface + +// Headers for OpenSSL 1.1.1 +// camellia.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // Added '_CONST' to avoid name clashes + CAMELLIA_ENCRYPT_CONST = 1; + // Added '_CONST' to avoid name clashes + CAMELLIA_DECRYPT_CONST = 0; + + CAMELLIA_BLOCK_SIZE = 16; + CAMELLIA_TABLE_BYTE_LEN = 272; + CAMELLIA_TABLE_WORD_LEN = CAMELLIA_TABLE_BYTE_LEN div 4; + +type + KEY_TABLE_TYPE = array[0 .. CAMELLIA_TABLE_WORD_LEN - 1] of TIdC_UINT; + + camellia_key_st_u = record + case Integer of + 0: (d: TIdC_DOUBLE); + 1: (rd_key: KEY_TABLE_TYPE); + end; + + camellia_key_st = record + u: camellia_key_st_u; + grand_rounds: TIdC_INT; + end; + + CAMELLIA_KEY = camellia_key_st; + PCAMELLIA_KEY = ^CAMELLIA_KEY; + + TCamellia_ctr128_encrypt_ivec = array[0 .. CAMELLIA_TABLE_WORD_LEN - 1] of Byte; + TCamellia_ctr128_encrypt_ecount_buf = array[0 .. CAMELLIA_TABLE_WORD_LEN - 1] of Byte; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM Camellia_set_key} + {$EXTERNALSYM Camellia_encrypt} + {$EXTERNALSYM Camellia_decrypt} + {$EXTERNALSYM Camellia_ecb_encrypt} + {$EXTERNALSYM Camellia_cbc_encrypt} + {$EXTERNALSYM Camellia_cfb128_encrypt} + {$EXTERNALSYM Camellia_cfb1_encrypt} + {$EXTERNALSYM Camellia_cfb8_encrypt} + {$EXTERNALSYM Camellia_ofb128_encrypt} + {$EXTERNALSYM Camellia_ctr128_encrypt} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + Camellia_set_key: function(const userKey: PByte; const bits: TIdC_INT; key: PCAMELLIA_KEY): TIdC_INT; cdecl = nil; + + Camellia_encrypt: procedure(const in_: PByte; const out_: PByte; const key: PCAMELLIA_KEY); cdecl = nil; + Camellia_decrypt: procedure(const in_: PByte; const out_: PByte; const key: PCAMELLIA_KEY); cdecl = nil; + + Camellia_ecb_encrypt: procedure( const in_: PByte; const out_: PByte; const key: PCAMELLIA_KEY; const enc: TIdC_INT); cdecl = nil; + Camellia_cbc_encrypt: procedure( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; const enc: TIdC_INT); cdecl = nil; + Camellia_cfb128_encrypt: procedure( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); cdecl = nil; + Camellia_cfb1_encrypt: procedure( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); cdecl = nil; + Camellia_cfb8_encrypt: procedure( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); cdecl = nil; + Camellia_ofb128_encrypt: procedure( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT); cdecl = nil; + Camellia_ctr128_encrypt: procedure( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: TCamellia_ctr128_encrypt_ivec; ecount_buf: TCamellia_ctr128_encrypt_ecount_buf; num: PIdC_INT); cdecl = nil; + +{$ELSE} + function Camellia_set_key(const userKey: PByte; const bits: TIdC_INT; key: PCAMELLIA_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure Camellia_encrypt(const in_: PByte; const out_: PByte; const key: PCAMELLIA_KEY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure Camellia_decrypt(const in_: PByte; const out_: PByte; const key: PCAMELLIA_KEY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure Camellia_ecb_encrypt( const in_: PByte; const out_: PByte; const key: PCAMELLIA_KEY; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure Camellia_cbc_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure Camellia_cfb128_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure Camellia_cfb1_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure Camellia_cfb8_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure Camellia_ofb128_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure Camellia_ctr128_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: TCamellia_ctr128_encrypt_ivec; ecount_buf: TCamellia_ctr128_encrypt_ecount_buf; num: PIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + Camellia_set_key := LoadFunction('Camellia_set_key',AFailed); + Camellia_encrypt := LoadFunction('Camellia_encrypt',AFailed); + Camellia_decrypt := LoadFunction('Camellia_decrypt',AFailed); + Camellia_ecb_encrypt := LoadFunction('Camellia_ecb_encrypt',AFailed); + Camellia_cbc_encrypt := LoadFunction('Camellia_cbc_encrypt',AFailed); + Camellia_cfb128_encrypt := LoadFunction('Camellia_cfb128_encrypt',AFailed); + Camellia_cfb1_encrypt := LoadFunction('Camellia_cfb1_encrypt',AFailed); + Camellia_cfb8_encrypt := LoadFunction('Camellia_cfb8_encrypt',AFailed); + Camellia_ofb128_encrypt := LoadFunction('Camellia_ofb128_encrypt',AFailed); + Camellia_ctr128_encrypt := LoadFunction('Camellia_ctr128_encrypt',AFailed); +end; + +procedure Unload; +begin + Camellia_set_key := nil; + Camellia_encrypt := nil; + Camellia_decrypt := nil; + Camellia_ecb_encrypt := nil; + Camellia_cbc_encrypt := nil; + Camellia_cfb128_encrypt := nil; + Camellia_cfb1_encrypt := nil; + Camellia_cfb8_encrypt := nil; + Camellia_ofb128_encrypt := nil; + Camellia_ctr128_encrypt := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cast.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cast.pas new file mode 100644 index 000000000..1403da86e --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cast.pas @@ -0,0 +1,148 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_cast.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_cast.h2pas + and this file regenerated. IdOpenSSLHeaders_cast.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cast; + +interface + +// Headers for OpenSSL 1.1.1 +// cast.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + CAST_ENCRYPT_CONST = 1; + CAST_DECRYPT_CONST = 0; + CAST_BLOCK = 8; + CAST_KEY_LENGTH = 16; + +type + CAST_LONG = type TIdC_UINT; + PCAST_LONG = ^CAST_LONG; + + cast_key_st = record + data: array of CAST_LONG; + short_key: TIdC_INT; //* Use reduced rounds for short key */ + end; + + CAST_KEY = cast_key_st; + PCAST_KEY = ^CAST_KEY; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM CAST_set_key} + {$EXTERNALSYM CAST_ecb_encrypt} + {$EXTERNALSYM CAST_encrypt} + {$EXTERNALSYM CAST_decrypt} + {$EXTERNALSYM CAST_cbc_encrypt} + {$EXTERNALSYM CAST_cfb64_encrypt} + {$EXTERNALSYM CAST_ofb64_encrypt} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + CAST_set_key: procedure(key: PCast_Key; len: TIdC_INT; const data: PByte); cdecl = nil; + CAST_ecb_encrypt: procedure(const in_: PByte; out_: PByte; const key: PCast_Key; enc: TIdC_INT); cdecl = nil; + CAST_encrypt: procedure(data: PCAST_LONG; const key: PCast_Key); cdecl = nil; + CAST_decrypt: procedure(data: PCAST_LONG; const key: PCast_Key); cdecl = nil; + CAST_cbc_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_LONG; const ks: PCast_Key; iv: PByte; enc: TIdC_INT); cdecl = nil; + CAST_cfb64_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_LONG; const schedule: PCast_Key; ivec: PByte; num: PIdC_INT; enc: TIdC_INT); cdecl = nil; + CAST_ofb64_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_LONG; const schedule: PCast_Key; ivec: PByte; num: PIdC_INT); cdecl = nil; + +{$ELSE} + procedure CAST_set_key(key: PCast_Key; len: TIdC_INT; const data: PByte) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CAST_ecb_encrypt(const in_: PByte; out_: PByte; const key: PCast_Key; enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CAST_encrypt(data: PCAST_LONG; const key: PCast_Key) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CAST_decrypt(data: PCAST_LONG; const key: PCast_Key) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CAST_cbc_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; const ks: PCast_Key; iv: PByte; enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CAST_cfb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; const schedule: PCast_Key; ivec: PByte; num: PIdC_INT; enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CAST_ofb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; const schedule: PCast_Key; ivec: PByte; num: PIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + CAST_set_key := LoadFunction('CAST_set_key',AFailed); + CAST_ecb_encrypt := LoadFunction('CAST_ecb_encrypt',AFailed); + CAST_encrypt := LoadFunction('CAST_encrypt',AFailed); + CAST_decrypt := LoadFunction('CAST_decrypt',AFailed); + CAST_cbc_encrypt := LoadFunction('CAST_cbc_encrypt',AFailed); + CAST_cfb64_encrypt := LoadFunction('CAST_cfb64_encrypt',AFailed); + CAST_ofb64_encrypt := LoadFunction('CAST_ofb64_encrypt',AFailed); +end; + +procedure Unload; +begin + CAST_set_key := nil; + CAST_ecb_encrypt := nil; + CAST_encrypt := nil; + CAST_decrypt := nil; + CAST_cbc_encrypt := nil; + CAST_cfb64_encrypt := nil; + CAST_ofb64_encrypt := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cmac.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cmac.pas new file mode 100644 index 000000000..2d7a88914 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cmac.pas @@ -0,0 +1,148 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_cmac.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_cmac.h2pas + and this file regenerated. IdOpenSSLHeaders_cmac.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cmac; + +interface + +// Headers for OpenSSL 1.1.1 +// cmac.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_evp, + IdOpenSSLHeaders_ossl_typ; + +//* Opaque */ +type + CMAC_CTX_st = type Pointer; + CMAC_CTX = CMAC_CTX_st; + PCMAC_CTX = ^CMAC_CTX; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM CMAC_CTX_new} + {$EXTERNALSYM CMAC_CTX_cleanup} + {$EXTERNALSYM CMAC_CTX_free} + {$EXTERNALSYM CMAC_CTX_get0_cipher_ctx} + {$EXTERNALSYM CMAC_CTX_copy} + {$EXTERNALSYM CMAC_Init} + {$EXTERNALSYM CMAC_Update} + {$EXTERNALSYM CMAC_Final} + {$EXTERNALSYM CMAC_resume} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + CMAC_CTX_new: function: PCMAC_CTX; cdecl = nil; + CMAC_CTX_cleanup: procedure(ctx: PCMAC_CTX); cdecl = nil; + CMAC_CTX_free: procedure(ctx: PCMAC_CTX); cdecl = nil; + CMAC_CTX_get0_cipher_ctx: function(ctx: PCMAC_CTX): PEVP_CIPHER_CTX; cdecl = nil; + CMAC_CTX_copy: function(out_: PCMAC_CTX; const in_: PCMAC_CTX): TIdC_INT; cdecl = nil; + CMAC_Init: function(ctx: PCMAC_CTX; const key: Pointer; keylen: TIdC_SIZET; const cipher: PEVP_Cipher; impl: PENGINe): TIdC_INT; cdecl = nil; + CMAC_Update: function(ctx: PCMAC_CTX; const data: Pointer; dlen: TIdC_SIZET): TIdC_INT; cdecl = nil; + CMAC_Final: function(ctx: PCMAC_CTX; out_: PByte; poutlen: PIdC_SIZET): TIdC_INT; cdecl = nil; + CMAC_resume: function(ctx: PCMAC_CTX): TIdC_INT; cdecl = nil; + +{$ELSE} + function CMAC_CTX_new: PCMAC_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CMAC_CTX_cleanup(ctx: PCMAC_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CMAC_CTX_free(ctx: PCMAC_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMAC_CTX_get0_cipher_ctx(ctx: PCMAC_CTX): PEVP_CIPHER_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMAC_CTX_copy(out_: PCMAC_CTX; const in_: PCMAC_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMAC_Init(ctx: PCMAC_CTX; const key: Pointer; keylen: TIdC_SIZET; const cipher: PEVP_Cipher; impl: PENGINe): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMAC_Update(ctx: PCMAC_CTX; const data: Pointer; dlen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMAC_Final(ctx: PCMAC_CTX; out_: PByte; poutlen: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMAC_resume(ctx: PCMAC_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + CMAC_CTX_new := LoadFunction('CMAC_CTX_new',AFailed); + CMAC_CTX_cleanup := LoadFunction('CMAC_CTX_cleanup',AFailed); + CMAC_CTX_free := LoadFunction('CMAC_CTX_free',AFailed); + CMAC_CTX_get0_cipher_ctx := LoadFunction('CMAC_CTX_get0_cipher_ctx',AFailed); + CMAC_CTX_copy := LoadFunction('CMAC_CTX_copy',AFailed); + CMAC_Init := LoadFunction('CMAC_Init',AFailed); + CMAC_Update := LoadFunction('CMAC_Update',AFailed); + CMAC_Final := LoadFunction('CMAC_Final',AFailed); + CMAC_resume := LoadFunction('CMAC_resume',AFailed); +end; + +procedure Unload; +begin + CMAC_CTX_new := nil; + CMAC_CTX_cleanup := nil; + CMAC_CTX_free := nil; + CMAC_CTX_get0_cipher_ctx := nil; + CMAC_CTX_copy := nil; + CMAC_Init := nil; + CMAC_Update := nil; + CMAC_Final := nil; + CMAC_resume := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cms.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cms.pas new file mode 100644 index 000000000..31b61bb82 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cms.pas @@ -0,0 +1,784 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_cms.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_cms.h2pas + and this file regenerated. IdOpenSSLHeaders_cms.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cms; + +interface + +// Headers for OpenSSL 1.1.1 +// cms.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_x509; + +type + CMS_ContentInfo_st = type Pointer; + CMS_ContentInfo = CMS_ContentInfo_st; + PCMS_ContentInfo = ^CMS_ContentInfo; + PPCMS_ContentInfo = ^PCMS_ContentInfo; + + CMS_SignerInfo_st = type Pointer; + CMS_SignerInfo = CMS_SignerInfo_st; + PCMS_SignerInfo = ^CMS_SignerInfo; + + CMS_CertificateChoices_st = type Pointer; + CMS_CertificateChoices = CMS_CertificateChoices_st; + PCMS_CertificateChoices = ^CMS_CertificateChoices; + + CMS_RevocationInfoChoice_st = type Pointer; + CMS_RevocationInfoChoice = CMS_RevocationInfoChoice_st; + PCMS_RevocationInfoChoice = ^CMS_RevocationInfoChoice; + + CMS_RecipientInfo_st = type Pointer; + CMS_RecipientInfo = CMS_RecipientInfo_st; + PCMS_RecipientInfo = ^CMS_RecipientInfo; + PPCMS_RecipientInfo = ^PCMS_RecipientInfo; + + CMS_ReceiptRequest_st = type Pointer; + CMS_ReceiptRequest = CMS_ReceiptRequest_st; + PCMS_ReceiptRequest = ^CMS_ReceiptRequest; + PPCMS_ReceiptRequest = ^PCMS_ReceiptRequest; + + CMS_Receipt_st = type Pointer; + CMS_Receipt = CMS_Receipt_st; + PCMS_Receipt = ^CMS_Receipt; + + CMS_RecipientEncryptedKey_st = type Pointer; + CMS_RecipientEncryptedKey = CMS_RecipientEncryptedKey_st; + PCMS_RecipientEncryptedKey = ^CMS_RecipientEncryptedKey; + + CMS_OtherKeyAttribute_st = type Pointer; + CMS_OtherKeyAttribute = CMS_OtherKeyAttribute_st; + PCMS_OtherKeyAttribute = ^CMS_OtherKeyAttribute; + PPCMS_OtherKeyAttribute = ^PCMS_OtherKeyAttribute; + +//DEFINE_STACK_OF(CMS_SignerInfo) +//DEFINE_STACK_OF(CMS_RecipientEncryptedKey) +//DEFINE_STACK_OF(CMS_RecipientInfo) +//DEFINE_STACK_OF(CMS_RevocationInfoChoice) +//DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo) +//DECLARE_ASN1_FUNCTIONS(CMS_ReceiptRequest) +//DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo) + +const + CMS_SIGNERINFO_ISSUER_SERIAL = 0; + CMS_SIGNERINFO_KEYIDENTIFIER = 1; + + CMS_RECIPINFO_NONE = -1; + CMS_RECIPINFO_TRANS = 0; + CMS_RECIPINFO_AGREE = 1; + CMS_RECIPINFO_KEK = 2; + CMS_RECIPINFO_PASS = 3; + CMS_RECIPINFO_OTHER = 4; + +// S/MIME related flags / + + CMS_TEXT = $1; + CMS_NOCERTS = $2; + CMS_NO_CONTENT_VERIFY = $4; + CMS_NO_ATTR_VERIFY = $8; + CMS_NOSIGS = (CMS_NO_CONTENT_VERIFY or CMS_NO_ATTR_VERIFY); + CMS_NOINTERN = $10; + CMS_NO_SIGNER_CERT_VERIFY = $20; + CMS_NOVERIFY = $20; + CMS_DETACHED = $40; + CMS_BINARY = $80; + CMS_NOATTR = $100; + CMS_NOSMIMECAP = $200; + CMS_NOOLDMIMETYPE = $400; + CMS_CRLFEOL = $800; + CMS_STREAM_CONST = $1000; + CMS_NOCRL = $2000; + CMS_PARTIAL = $4000; + CMS_REUSE_DIGEST = $8000; + CMS_USE_KEYID = $10000; + CMS_DEBUG_DECRYPT = $20000; + CMS_KEY_PARAM = $40000; + CMS_ASCIICRLF = $80000; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM CMS_get0_type} + {$EXTERNALSYM CMS_dataInit} + {$EXTERNALSYM CMS_dataFinal} + {$EXTERNALSYM CMS_get0_content} + {$EXTERNALSYM CMS_is_detached} + {$EXTERNALSYM CMS_set_detached} + {$EXTERNALSYM CMS_stream} + {$EXTERNALSYM d2i_CMS_bio} + {$EXTERNALSYM i2d_CMS_bio} + {$EXTERNALSYM BIO_new_CMS} + {$EXTERNALSYM i2d_CMS_bio_stream} + {$EXTERNALSYM PEM_write_bio_CMS_stream} + {$EXTERNALSYM SMIME_read_CMS} + {$EXTERNALSYM SMIME_write_CMS} + {$EXTERNALSYM CMS_final} + {$EXTERNALSYM CMS_data} + {$EXTERNALSYM CMS_data_create} + {$EXTERNALSYM CMS_digest_verify} + {$EXTERNALSYM CMS_digest_create} + {$EXTERNALSYM CMS_EncryptedData_decrypt} + {$EXTERNALSYM CMS_EncryptedData_encrypt} + {$EXTERNALSYM CMS_EncryptedData_set1_key} + {$EXTERNALSYM CMS_decrypt} + {$EXTERNALSYM CMS_decrypt_set1_pkey} + {$EXTERNALSYM CMS_decrypt_set1_key} + {$EXTERNALSYM CMS_decrypt_set1_password} + {$EXTERNALSYM CMS_RecipientInfo_type} + {$EXTERNALSYM CMS_RecipientInfo_get0_pkey_ctx} + {$EXTERNALSYM CMS_EnvelopedData_create} + {$EXTERNALSYM CMS_add1_recipient_cert} + {$EXTERNALSYM CMS_RecipientInfo_set0_pkey} + {$EXTERNALSYM CMS_RecipientInfo_ktri_cert_cmp} + {$EXTERNALSYM CMS_RecipientInfo_ktri_get0_algs} + {$EXTERNALSYM CMS_RecipientInfo_ktri_get0_signer_id} + {$EXTERNALSYM CMS_add0_recipient_key} + {$EXTERNALSYM CMS_RecipientInfo_kekri_get0_id} + {$EXTERNALSYM CMS_RecipientInfo_set0_key} + {$EXTERNALSYM CMS_RecipientInfo_kekri_id_cmp} + {$EXTERNALSYM CMS_RecipientInfo_set0_password} + {$EXTERNALSYM CMS_add0_recipient_password} + {$EXTERNALSYM CMS_RecipientInfo_decrypt} + {$EXTERNALSYM CMS_RecipientInfo_encrypt} + {$EXTERNALSYM CMS_uncompress} + {$EXTERNALSYM CMS_compress} + {$EXTERNALSYM CMS_set1_eContentType} + {$EXTERNALSYM CMS_get0_eContentType} + {$EXTERNALSYM CMS_add0_CertificateChoices} + {$EXTERNALSYM CMS_add0_cert} + {$EXTERNALSYM CMS_add1_cert} + {$EXTERNALSYM CMS_add0_RevocationInfoChoice} + {$EXTERNALSYM CMS_add0_crl} + {$EXTERNALSYM CMS_add1_crl} + {$EXTERNALSYM CMS_SignedData_init} + {$EXTERNALSYM CMS_add1_signer} + {$EXTERNALSYM CMS_SignerInfo_get0_pkey_ctx} + {$EXTERNALSYM CMS_SignerInfo_get0_md_ctx} + {$EXTERNALSYM CMS_SignerInfo_set1_signer_cert} + {$EXTERNALSYM CMS_SignerInfo_get0_signer_id} + {$EXTERNALSYM CMS_SignerInfo_cert_cmp} + {$EXTERNALSYM CMS_SignerInfo_get0_algs} + {$EXTERNALSYM CMS_SignerInfo_get0_signature} + {$EXTERNALSYM CMS_SignerInfo_sign} + {$EXTERNALSYM CMS_SignerInfo_verify} + {$EXTERNALSYM CMS_SignerInfo_verify_content} + {$EXTERNALSYM CMS_signed_get_attr_count} + {$EXTERNALSYM CMS_signed_get_attr_by_NID} + {$EXTERNALSYM CMS_signed_get_attr_by_OBJ} + {$EXTERNALSYM CMS_signed_get_attr} + {$EXTERNALSYM CMS_signed_delete_attr} + {$EXTERNALSYM CMS_signed_add1_attr} + {$EXTERNALSYM CMS_signed_add1_attr_by_OBJ} + {$EXTERNALSYM CMS_signed_add1_attr_by_NID} + {$EXTERNALSYM CMS_signed_add1_attr_by_txt} + {$EXTERNALSYM CMS_signed_get0_data_by_OBJ} + {$EXTERNALSYM CMS_unsigned_get_attr_count} + {$EXTERNALSYM CMS_unsigned_get_attr_by_NID} + {$EXTERNALSYM CMS_unsigned_get_attr_by_OBJ} + {$EXTERNALSYM CMS_unsigned_get_attr} + {$EXTERNALSYM CMS_unsigned_delete_attr} + {$EXTERNALSYM CMS_unsigned_add1_attr} + {$EXTERNALSYM CMS_unsigned_add1_attr_by_OBJ} + {$EXTERNALSYM CMS_unsigned_add1_attr_by_NID} + {$EXTERNALSYM CMS_unsigned_add1_attr_by_txt} + {$EXTERNALSYM CMS_unsigned_get0_data_by_OBJ} + {$EXTERNALSYM CMS_get1_ReceiptRequest} + {$EXTERNALSYM CMS_add1_ReceiptRequest} + {$EXTERNALSYM CMS_RecipientInfo_kari_get0_orig_id} + {$EXTERNALSYM CMS_RecipientInfo_kari_orig_id_cmp} + {$EXTERNALSYM CMS_RecipientEncryptedKey_get0_id} + {$EXTERNALSYM CMS_RecipientEncryptedKey_cert_cmp} + {$EXTERNALSYM CMS_RecipientInfo_kari_set0_pkey} + {$EXTERNALSYM CMS_RecipientInfo_kari_get0_ctx} + {$EXTERNALSYM CMS_RecipientInfo_kari_decrypt} + {$EXTERNALSYM CMS_SharedInfo_encode} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + CMS_get0_type: function(const cms: PCMS_ContentInfo): PASN1_OBJECT; cdecl = nil; + + CMS_dataInit: function(cms: PCMS_ContentInfo; icont: PBIO): PBIO; cdecl = nil; + CMS_dataFinal: function(cms: PCMS_ContentInfo; bio: PBIO): TIdC_INT; cdecl = nil; + + CMS_get0_content: function(cms: PCMS_ContentInfo): PPASN1_OCTET_STRING; cdecl = nil; + CMS_is_detached: function(cms: PCMS_ContentInfo): TIdC_INT; cdecl = nil; + CMS_set_detached: function(cms: PCMS_ContentInfo; detached: TIdC_INT): TIdC_INT; cdecl = nil; + + CMS_stream: function(cms: PCMS_ContentInfo; boundary: PPPByte): TIdC_INT; cdecl = nil; + d2i_CMS_bio: function(bp: PBIO; cms: PPCMS_ContentInfo): PCMS_ContentInfo; cdecl = nil; + i2d_CMS_bio: function(bp: PBIO; cms: PCMS_ContentInfo): TIdC_INT; cdecl = nil; + + BIO_new_CMS: function(out_: PBIO; cms: PCMS_ContentInfo): PBIO; cdecl = nil; + i2d_CMS_bio_stream: function(out_: PBIO; cms: PCMS_ContentInfo; in_: PBIO; flags: TIdC_INT): TIdC_INT; cdecl = nil; + PEM_write_bio_CMS_stream: function(out_: PBIO; cms: PCMS_ContentInfo; in_: PBIO; flags: TIdC_INT): TIdC_INT; cdecl = nil; + SMIME_read_CMS: function(bio: PBIO; bcont: PPBIO): PCMS_ContentInfo; cdecl = nil; + SMIME_write_CMS: function(bio: PBIO; cms: PCMS_ContentInfo; data: PBIO; flags: TIdC_INT): TIdC_INT; cdecl = nil; + + CMS_final: function(cms: PCMS_ContentInfo; data: PBIO; dcont: PBIO; flags: TIdC_UINT): TIdC_INT; cdecl = nil; + +// function CMS_sign(signcert: PX509; pkey: PEVP_PKEY; {STACK_OF(x509) *certs;} data: PBIO; flags: TIdC_UINT): PCMS_ContentInfo; + +// function CMS_sign_receipt(si: PCMS_SignerInfo; signcert: PX509; pkey: PEVP_PKEY; {STACK_OF(X509) *certs;} flags: TIdC_UINT): PCMS_ContentInfo; + + CMS_data: function(cms: PCMS_ContentInfo; out_: PBIO; flags: TIdC_UINT): TIdC_INT; cdecl = nil; + CMS_data_create: function(in_: PBIO; flags: TIdC_UINT): PCMS_ContentInfo; cdecl = nil; + + CMS_digest_verify: function(cms: PCMS_ContentInfo; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT; cdecl = nil; + CMS_digest_create: function(in_: PBIO; const md: PEVP_MD; flags: TIdC_UINT): PCMS_ContentInfo; cdecl = nil; + + CMS_EncryptedData_decrypt: function(cms: PCMS_ContentInfo; const key: PByte; keylen: TIdC_SIZET; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT; cdecl = nil; + + CMS_EncryptedData_encrypt: function(in_: PBIO; const cipher: PEVP_CIPHER; const key: PByte; keylen: TIdC_SIZET; flags: TIdC_UINT): PCMS_ContentInfo; cdecl = nil; + + CMS_EncryptedData_set1_key: function(cms: PCMS_ContentInfo; const ciph: PEVP_CIPHER; const key: PByte; keylen: TIdC_SIZET): TIdC_INT; cdecl = nil; + +// function CMS_verify(cms: PCMS_ContentInfo; {STACK_OF(X509) *certs;} store: PX509_STORE; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT; + +// function CMS_verify_receipt(rcms: PCMS_ContentInfo; ocms: PCMS_ContentInfo; {STACK_OF(x509) *certs;} store: PX509_STORE; flags: TIdC_UINT): TIdC_INT; + + // STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms); + +// function CMS_encrypt({STACK_OF(x509) *certs;} in_: PBIO; const cipher: PEVP_CIPHER; flags: TIdC_UINT): PCMS_ContentInfo; + + CMS_decrypt: function(cms: PCMS_ContentInfo; pkey: PEVP_PKEY; cert: PX509; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT; cdecl = nil; + + CMS_decrypt_set1_pkey: function(cms: PCMS_ContentInfo; pk: PEVP_PKEY; cert: PX509): TIdC_INT; cdecl = nil; + CMS_decrypt_set1_key: function(cms: PCMS_ContentInfo; key: PByte; keylen: TIdC_SIZET; const id: PByte; idlen: TIdC_SIZET): TIdC_INT; cdecl = nil; + CMS_decrypt_set1_password: function(cms: PCMS_ContentInfo; pass: PByte; passlen: ossl_ssize_t): TIdC_INT; cdecl = nil; + + //STACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms); + CMS_RecipientInfo_type: function(ri: PCMS_RecipientInfo): TIdC_INT; cdecl = nil; + CMS_RecipientInfo_get0_pkey_ctx: function(ri: PCMS_RecipientInfo): PEVP_PKEY_CTX; cdecl = nil; + CMS_EnvelopedData_create: function(const cipher: PEVP_CIPHER): PCMS_ContentInfo; cdecl = nil; + CMS_add1_recipient_cert: function(cms: PCMS_ContentInfo; recip: PX509; flags: TIdC_UINT): PCMS_RecipientInfo; cdecl = nil; + CMS_RecipientInfo_set0_pkey: function(ri: PCMS_RecipientInfo; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + CMS_RecipientInfo_ktri_cert_cmp: function(ri: PCMS_RecipientInfo; cert: PX509): TIdC_INT; cdecl = nil; + CMS_RecipientInfo_ktri_get0_algs: function(ri: PCMS_RecipientInfo; pk: PPEVP_PKEY; recip: PPX509; palg: PPX509_ALGOR): TIdC_INT; cdecl = nil; + CMS_RecipientInfo_ktri_get0_signer_id: function(ri: PPCMS_RecipientInfo; keyid: PPASN1_OCTET_STRING; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT; cdecl = nil; + + CMS_add0_recipient_key: function(cms: PCMS_ContentInfo; nid: TIdC_INT; key: PByte; keylen: TIdC_SIZET; id: PByte; idlen: TIdC_SIZET; date: PASN1_GENERALIZEDTIME; otherTypeId: PASN1_OBJECT; otherType: ASN1_TYPE): PCMS_RecipientInfo; cdecl = nil; + + CMS_RecipientInfo_kekri_get0_id: function(ri: PCMS_RecipientInfo; palg: PPX509_ALGOR; pid: PPASN1_OCTET_STRING; pdate: PPASN1_GENERALIZEDTIME; potherid: PPASN1_OBJECT; pothertype: PASN1_TYPE): TIdC_INT; cdecl = nil; + + CMS_RecipientInfo_set0_key: function(ri: PCMS_RecipientInfo; key: PByte; keylen: TIdC_SIZET): TIdC_INT; cdecl = nil; + + CMS_RecipientInfo_kekri_id_cmp: function(ri: PCMS_RecipientInfo; const id: PByte; idlen: TIdC_SIZET): TIdC_INT; cdecl = nil; + + CMS_RecipientInfo_set0_password: function(ri: PCMS_RecipientInfo; pass: PByte; passlen: ossl_ssize_t): TIdC_INT; cdecl = nil; + + CMS_add0_recipient_password: function(cms: PCMS_ContentInfo; iter: TIdC_INT; wrap_nid: TIdC_INT; pbe_nid: TIdC_INT; pass: PByte; passlen: ossl_ssize_t; const kekciph: PEVP_CIPHER): PCMS_RecipientInfo; cdecl = nil; + + CMS_RecipientInfo_decrypt: function(cms: PCMS_ContentInfo; ri: PCMS_RecipientInfo): TIdC_INT; cdecl = nil; + CMS_RecipientInfo_encrypt: function(cms: PCMS_ContentInfo; ri: PCMS_RecipientInfo): TIdC_INT; cdecl = nil; + + CMS_uncompress: function(cms: PCMS_ContentInfo; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT; cdecl = nil; + CMS_compress: function(in_: PBIO; comp_nid: TIdC_INT; flags: TIdC_UINT): PCMS_ContentInfo; cdecl = nil; + + CMS_set1_eContentType: function(cms: CMS_ContentInfo; const oit: PASN1_OBJECT): TIdC_INT; cdecl = nil; + CMS_get0_eContentType: function(cms: PCMS_ContentInfo): PASN1_OBJECT; cdecl = nil; + + CMS_add0_CertificateChoices: function(cms: PCMS_ContentInfo): PCMS_CertificateChoices; cdecl = nil; + CMS_add0_cert: function(cms: PCMS_ContentInfo; cert: PX509): TIdC_INT; cdecl = nil; + CMS_add1_cert: function(cms: PCMS_ContentInfo; cert: PX509): TIdC_INT; cdecl = nil; + // STACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms); + + CMS_add0_RevocationInfoChoice: function(cms: PCMS_ContentInfo): PCMS_RevocationInfoChoice; cdecl = nil; + CMS_add0_crl: function(cms: PCMS_ContentInfo; crl: PX509_CRL): TIdC_INT; cdecl = nil; + CMS_add1_crl: function(cms: PCMS_ContentInfo; crl: PX509_CRL): TIdC_INT; cdecl = nil; + // STACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms); + + CMS_SignedData_init: function(cms: PCMS_ContentInfo): TIdC_INT; cdecl = nil; + CMS_add1_signer: function(cms: PCMS_ContentInfo; signer: PX509; pk: PEVP_PKEY; const md: PEVP_MD; flags: TIdC_UINT): PCMS_SignerInfo; cdecl = nil; + CMS_SignerInfo_get0_pkey_ctx: function(si: PCMS_SignerInfo): PEVP_PKEY_CTX; cdecl = nil; + CMS_SignerInfo_get0_md_ctx: function(si: PCMS_SignerInfo): PEVP_MD_CTX; cdecl = nil; + // STACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms); + + CMS_SignerInfo_set1_signer_cert: procedure(si: PCMS_SignerInfo; signer: PX509); cdecl = nil; + CMS_SignerInfo_get0_signer_id: function(si: PCMS_SignerInfo; keyid: PPASN1_OCTET_STRING; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT; cdecl = nil; + CMS_SignerInfo_cert_cmp: function(si: PCMS_SignerInfo; cert: PX509): TIdC_INT; cdecl = nil; +// function CMS_set1_signers_certs(cms: PCMS_ContentInfo; {STACK_OF(X509) *certs;} flags: TIdC_UINT): TIdC_INT; + CMS_SignerInfo_get0_algs: procedure(si: PCMS_SignerInfo; pk: PPEVP_PKEY; signer: PPX509; pdig: PPX509_ALGOR; psig: PPX509_ALGOR); cdecl = nil; + CMS_SignerInfo_get0_signature: function(si: PCMS_SignerInfo): PASN1_OCTET_STRING; cdecl = nil; + CMS_SignerInfo_sign: function(si: PCMS_SignerInfo): TIdC_INT; cdecl = nil; + CMS_SignerInfo_verify: function(si: PCMS_SignerInfo): TIdC_INT; cdecl = nil; + CMS_SignerInfo_verify_content: function(si: PCMS_SignerInfo; chain: PBIO): TIdC_INT; cdecl = nil; + +// function CMS_add_smimecap(si: PCMS_SignerInfo{; STACK_OF(X509_ALGOR) *algs}): TIdC_INT; +// function CMS_add_simple_smimecap({STACK_OF(X509_ALGOR) **algs;} algnid: TIdC_INT; keysize: TIdC_INT): TIdC_INT; +// function CMS_add_standard_smimecap({STACK_OF(X509_ALGOR) **smcap}): TIdC_INT; + + CMS_signed_get_attr_count: function(const si: PCMS_SignerInfo): TIdC_INT; cdecl = nil; + CMS_signed_get_attr_by_NID: function(const si: PCMS_SignerInfo; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + CMS_signed_get_attr_by_OBJ: function(const si: PCMS_SignerInfo; const obj: ASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + CMS_signed_get_attr: function(const si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE; cdecl = nil; + CMS_signed_delete_attr: function(const si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE; cdecl = nil; + CMS_signed_add1_attr: function(si: PCMS_SignerInfo; loc: TIdC_INT): TIdC_INT; cdecl = nil; + CMS_signed_add1_attr_by_OBJ: function(si: PCMS_SignerInfo; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; cdecl = nil; + CMS_signed_add1_attr_by_NID: function(si: PCMS_SignerInfo; nid: TIdC_INT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; cdecl = nil; + CMS_signed_add1_attr_by_txt: function(si: PCMS_SignerInfo; const attrname: PAnsiChar; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; cdecl = nil; + CMS_signed_get0_data_by_OBJ: function(si: PCMS_SignerInfo; const oid: PASN1_OBJECT; lastpos: TIdC_INT; type_: TIdC_INT): Pointer; cdecl = nil; + + CMS_unsigned_get_attr_count: function(const si: PCMS_SignerInfo): TIdC_INT; cdecl = nil; + CMS_unsigned_get_attr_by_NID: function(const si: PCMS_SignerInfo; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + CMS_unsigned_get_attr_by_OBJ: function(const si: PCMS_SignerInfo; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + CMS_unsigned_get_attr: function(const si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE; cdecl = nil; + CMS_unsigned_delete_attr: function(si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE; cdecl = nil; + CMS_unsigned_add1_attr: function(si: PCMS_SignerInfo; attr: PX509_ATTRIBUTE): TIdC_INT; cdecl = nil; + CMS_unsigned_add1_attr_by_OBJ: function(si: PCMS_SignerInfo; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; cdecl = nil; + CMS_unsigned_add1_attr_by_NID: function(si: PCMS_SignerInfo; nid: TIdC_INT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; cdecl = nil; + CMS_unsigned_add1_attr_by_txt: function(si: PCMS_SignerInfo; const attrname: PAnsiChar; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; cdecl = nil; + CMS_unsigned_get0_data_by_OBJ: function(si: PCMS_SignerInfo; oid: PASN1_OBJECT; lastpos: TIdC_INT; type_: TIdC_INT): Pointer; cdecl = nil; + + CMS_get1_ReceiptRequest: function(si: PCMS_SignerInfo; prr: PPCMS_ReceiptRequest): TIdC_INT; cdecl = nil; +// function CMS_ReceiptRequest_create0(id: PByte; idlen: TIdC_INT; allorfirst: TIdC_INT +// {;STACK_OF(GENERAL_NAMES) *receiptList;} {STACK_OF(GENERAL_NAMES) *receiptsTo}): PCMS_ReceiptRequest; + CMS_add1_ReceiptRequest: function(si: PCMS_SignerInfo; rr: PCMS_ReceiptRequest): TIdC_INT; cdecl = nil; +// procedure CMS_ReceiptRequest_get0_values(rr: PCMS_ReceiptRequest; pcid: PPASN1_STRING; +// pallorfirst: PIdC_INT {;STACK_OF(GENERAL_NAMES) **plist;} +// {STACK_OF(GENERAL_NAMES) **prto}); +// function CMS_RecipientInfo_kari_get0_alg(ri: PCMS_RecipientInfo; palg: PPX509_ALGOR; +// pukm: PPASN1_OCTET_STRING): TIdC_INT; +// // STACK_OF(CMS_RecipientEncryptedKey) *CMS_RecipientInfo_kari_get0_reks(CMS_RecipientInfo *ri); + + CMS_RecipientInfo_kari_get0_orig_id: function(ri: PCMS_RecipientInfo; pubalg: PPX509_ALGOR; pubkey: PASN1_BIT_STRING; keyid: PPASN1_OCTET_STRING; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT; cdecl = nil; + + CMS_RecipientInfo_kari_orig_id_cmp: function(ri: PCMS_RecipientInfo; cert: PX509): TIdC_INT; cdecl = nil; + + CMS_RecipientEncryptedKey_get0_id: function(rek: PCMS_RecipientEncryptedKey; keyid: PPASN1_OCTET_STRING; tm: PPASN1_GENERALIZEDTIME; other: PPCMS_OtherKeyAttribute; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT; cdecl = nil; + CMS_RecipientEncryptedKey_cert_cmp: function(rek: PCMS_RecipientEncryptedKey; cert: PX509): TIdC_INT; cdecl = nil; + CMS_RecipientInfo_kari_set0_pkey: function(ri: PCMS_RecipientInfo; pk: PEVP_PKEY): TIdC_INT; cdecl = nil; + CMS_RecipientInfo_kari_get0_ctx: function(ri: PCMS_RecipientInfo): PEVP_CIPHER_CTX; cdecl = nil; + CMS_RecipientInfo_kari_decrypt: function(cms: PCMS_ContentInfo; ri: PCMS_RecipientInfo; rek: PCMS_RecipientEncryptedKey): TIdC_INT; cdecl = nil; + + CMS_SharedInfo_encode: function(pder: PPByte; kekalg: PX509_ALGOR; ukm: PASN1_OCTET_STRING; keylen: TIdC_INT): TIdC_INT; cdecl = nil; + + ///* Backward compatibility for spelling errors. */ + //# define CMS_R_UNKNOWN_DIGEST_ALGORITM CMS_R_UNKNOWN_DIGEST_ALGORITHM + //# define CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE \ CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE + +{$ELSE} + function CMS_get0_type(const cms: PCMS_ContentInfo): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_dataInit(cms: PCMS_ContentInfo; icont: PBIO): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_dataFinal(cms: PCMS_ContentInfo; bio: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_get0_content(cms: PCMS_ContentInfo): PPASN1_OCTET_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_is_detached(cms: PCMS_ContentInfo): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_set_detached(cms: PCMS_ContentInfo; detached: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_stream(cms: PCMS_ContentInfo; boundary: PPPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_CMS_bio(bp: PBIO; cms: PPCMS_ContentInfo): PCMS_ContentInfo cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_CMS_bio(bp: PBIO; cms: PCMS_ContentInfo): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_new_CMS(out_: PBIO; cms: PCMS_ContentInfo): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_CMS_bio_stream(out_: PBIO; cms: PCMS_ContentInfo; in_: PBIO; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_CMS_stream(out_: PBIO; cms: PCMS_ContentInfo; in_: PBIO; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SMIME_read_CMS(bio: PBIO; bcont: PPBIO): PCMS_ContentInfo cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SMIME_write_CMS(bio: PBIO; cms: PCMS_ContentInfo; data: PBIO; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_final(cms: PCMS_ContentInfo; data: PBIO; dcont: PBIO; flags: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// function CMS_sign(signcert: PX509; pkey: PEVP_PKEY; {STACK_OF(x509) *certs;} data: PBIO; flags: TIdC_UINT): PCMS_ContentInfo; + +// function CMS_sign_receipt(si: PCMS_SignerInfo; signcert: PX509; pkey: PEVP_PKEY; {STACK_OF(X509) *certs;} flags: TIdC_UINT): PCMS_ContentInfo; + + function CMS_data(cms: PCMS_ContentInfo; out_: PBIO; flags: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_data_create(in_: PBIO; flags: TIdC_UINT): PCMS_ContentInfo cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_digest_verify(cms: PCMS_ContentInfo; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_digest_create(in_: PBIO; const md: PEVP_MD; flags: TIdC_UINT): PCMS_ContentInfo cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_EncryptedData_decrypt(cms: PCMS_ContentInfo; const key: PByte; keylen: TIdC_SIZET; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_EncryptedData_encrypt(in_: PBIO; const cipher: PEVP_CIPHER; const key: PByte; keylen: TIdC_SIZET; flags: TIdC_UINT): PCMS_ContentInfo cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_EncryptedData_set1_key(cms: PCMS_ContentInfo; const ciph: PEVP_CIPHER; const key: PByte; keylen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// function CMS_verify(cms: PCMS_ContentInfo; {STACK_OF(X509) *certs;} store: PX509_STORE; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT; + +// function CMS_verify_receipt(rcms: PCMS_ContentInfo; ocms: PCMS_ContentInfo; {STACK_OF(x509) *certs;} store: PX509_STORE; flags: TIdC_UINT): TIdC_INT; + + // STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms); + +// function CMS_encrypt({STACK_OF(x509) *certs;} in_: PBIO; const cipher: PEVP_CIPHER; flags: TIdC_UINT): PCMS_ContentInfo; + + function CMS_decrypt(cms: PCMS_ContentInfo; pkey: PEVP_PKEY; cert: PX509; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_decrypt_set1_pkey(cms: PCMS_ContentInfo; pk: PEVP_PKEY; cert: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_decrypt_set1_key(cms: PCMS_ContentInfo; key: PByte; keylen: TIdC_SIZET; const id: PByte; idlen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_decrypt_set1_password(cms: PCMS_ContentInfo; pass: PByte; passlen: ossl_ssize_t): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //STACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms); + function CMS_RecipientInfo_type(ri: PCMS_RecipientInfo): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_RecipientInfo_get0_pkey_ctx(ri: PCMS_RecipientInfo): PEVP_PKEY_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_EnvelopedData_create(const cipher: PEVP_CIPHER): PCMS_ContentInfo cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_add1_recipient_cert(cms: PCMS_ContentInfo; recip: PX509; flags: TIdC_UINT): PCMS_RecipientInfo cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_RecipientInfo_set0_pkey(ri: PCMS_RecipientInfo; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_RecipientInfo_ktri_cert_cmp(ri: PCMS_RecipientInfo; cert: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_RecipientInfo_ktri_get0_algs(ri: PCMS_RecipientInfo; pk: PPEVP_PKEY; recip: PPX509; palg: PPX509_ALGOR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_RecipientInfo_ktri_get0_signer_id(ri: PPCMS_RecipientInfo; keyid: PPASN1_OCTET_STRING; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_add0_recipient_key(cms: PCMS_ContentInfo; nid: TIdC_INT; key: PByte; keylen: TIdC_SIZET; id: PByte; idlen: TIdC_SIZET; date: PASN1_GENERALIZEDTIME; otherTypeId: PASN1_OBJECT; otherType: ASN1_TYPE): PCMS_RecipientInfo cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_RecipientInfo_kekri_get0_id(ri: PCMS_RecipientInfo; palg: PPX509_ALGOR; pid: PPASN1_OCTET_STRING; pdate: PPASN1_GENERALIZEDTIME; potherid: PPASN1_OBJECT; pothertype: PASN1_TYPE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_RecipientInfo_set0_key(ri: PCMS_RecipientInfo; key: PByte; keylen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_RecipientInfo_kekri_id_cmp(ri: PCMS_RecipientInfo; const id: PByte; idlen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_RecipientInfo_set0_password(ri: PCMS_RecipientInfo; pass: PByte; passlen: ossl_ssize_t): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_add0_recipient_password(cms: PCMS_ContentInfo; iter: TIdC_INT; wrap_nid: TIdC_INT; pbe_nid: TIdC_INT; pass: PByte; passlen: ossl_ssize_t; const kekciph: PEVP_CIPHER): PCMS_RecipientInfo cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_RecipientInfo_decrypt(cms: PCMS_ContentInfo; ri: PCMS_RecipientInfo): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_RecipientInfo_encrypt(cms: PCMS_ContentInfo; ri: PCMS_RecipientInfo): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_uncompress(cms: PCMS_ContentInfo; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_compress(in_: PBIO; comp_nid: TIdC_INT; flags: TIdC_UINT): PCMS_ContentInfo cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_set1_eContentType(cms: CMS_ContentInfo; const oit: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_get0_eContentType(cms: PCMS_ContentInfo): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_add0_CertificateChoices(cms: PCMS_ContentInfo): PCMS_CertificateChoices cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_add0_cert(cms: PCMS_ContentInfo; cert: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_add1_cert(cms: PCMS_ContentInfo; cert: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // STACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms); + + function CMS_add0_RevocationInfoChoice(cms: PCMS_ContentInfo): PCMS_RevocationInfoChoice cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_add0_crl(cms: PCMS_ContentInfo; crl: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_add1_crl(cms: PCMS_ContentInfo; crl: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // STACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms); + + function CMS_SignedData_init(cms: PCMS_ContentInfo): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_add1_signer(cms: PCMS_ContentInfo; signer: PX509; pk: PEVP_PKEY; const md: PEVP_MD; flags: TIdC_UINT): PCMS_SignerInfo cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_SignerInfo_get0_pkey_ctx(si: PCMS_SignerInfo): PEVP_PKEY_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_SignerInfo_get0_md_ctx(si: PCMS_SignerInfo): PEVP_MD_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // STACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms); + + procedure CMS_SignerInfo_set1_signer_cert(si: PCMS_SignerInfo; signer: PX509) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_SignerInfo_get0_signer_id(si: PCMS_SignerInfo; keyid: PPASN1_OCTET_STRING; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_SignerInfo_cert_cmp(si: PCMS_SignerInfo; cert: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function CMS_set1_signers_certs(cms: PCMS_ContentInfo; {STACK_OF(X509) *certs;} flags: TIdC_UINT): TIdC_INT; + procedure CMS_SignerInfo_get0_algs(si: PCMS_SignerInfo; pk: PPEVP_PKEY; signer: PPX509; pdig: PPX509_ALGOR; psig: PPX509_ALGOR) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_SignerInfo_get0_signature(si: PCMS_SignerInfo): PASN1_OCTET_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_SignerInfo_sign(si: PCMS_SignerInfo): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_SignerInfo_verify(si: PCMS_SignerInfo): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_SignerInfo_verify_content(si: PCMS_SignerInfo; chain: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// function CMS_add_smimecap(si: PCMS_SignerInfo{; STACK_OF(X509_ALGOR) *algs}): TIdC_INT; +// function CMS_add_simple_smimecap({STACK_OF(X509_ALGOR) **algs;} algnid: TIdC_INT; keysize: TIdC_INT): TIdC_INT; +// function CMS_add_standard_smimecap({STACK_OF(X509_ALGOR) **smcap}): TIdC_INT; + + function CMS_signed_get_attr_count(const si: PCMS_SignerInfo): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_signed_get_attr_by_NID(const si: PCMS_SignerInfo; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_signed_get_attr_by_OBJ(const si: PCMS_SignerInfo; const obj: ASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_signed_get_attr(const si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_signed_delete_attr(const si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_signed_add1_attr(si: PCMS_SignerInfo; loc: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_signed_add1_attr_by_OBJ(si: PCMS_SignerInfo; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_signed_add1_attr_by_NID(si: PCMS_SignerInfo; nid: TIdC_INT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_signed_add1_attr_by_txt(si: PCMS_SignerInfo; const attrname: PAnsiChar; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_signed_get0_data_by_OBJ(si: PCMS_SignerInfo; const oid: PASN1_OBJECT; lastpos: TIdC_INT; type_: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_unsigned_get_attr_count(const si: PCMS_SignerInfo): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_unsigned_get_attr_by_NID(const si: PCMS_SignerInfo; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_unsigned_get_attr_by_OBJ(const si: PCMS_SignerInfo; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_unsigned_get_attr(const si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_unsigned_delete_attr(si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_unsigned_add1_attr(si: PCMS_SignerInfo; attr: PX509_ATTRIBUTE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_unsigned_add1_attr_by_OBJ(si: PCMS_SignerInfo; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_unsigned_add1_attr_by_NID(si: PCMS_SignerInfo; nid: TIdC_INT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_unsigned_add1_attr_by_txt(si: PCMS_SignerInfo; const attrname: PAnsiChar; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_unsigned_get0_data_by_OBJ(si: PCMS_SignerInfo; oid: PASN1_OBJECT; lastpos: TIdC_INT; type_: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_get1_ReceiptRequest(si: PCMS_SignerInfo; prr: PPCMS_ReceiptRequest): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function CMS_ReceiptRequest_create0(id: PByte; idlen: TIdC_INT; allorfirst: TIdC_INT +// {;STACK_OF(GENERAL_NAMES) *receiptList;} {STACK_OF(GENERAL_NAMES) *receiptsTo}): PCMS_ReceiptRequest; + function CMS_add1_ReceiptRequest(si: PCMS_SignerInfo; rr: PCMS_ReceiptRequest): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// procedure CMS_ReceiptRequest_get0_values(rr: PCMS_ReceiptRequest; pcid: PPASN1_STRING; +// pallorfirst: PIdC_INT {;STACK_OF(GENERAL_NAMES) **plist;} +// {STACK_OF(GENERAL_NAMES) **prto}); +// function CMS_RecipientInfo_kari_get0_alg(ri: PCMS_RecipientInfo; palg: PPX509_ALGOR; +// pukm: PPASN1_OCTET_STRING): TIdC_INT; +// // STACK_OF(CMS_RecipientEncryptedKey) *CMS_RecipientInfo_kari_get0_reks(CMS_RecipientInfo *ri); + + function CMS_RecipientInfo_kari_get0_orig_id(ri: PCMS_RecipientInfo; pubalg: PPX509_ALGOR; pubkey: PASN1_BIT_STRING; keyid: PPASN1_OCTET_STRING; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_RecipientInfo_kari_orig_id_cmp(ri: PCMS_RecipientInfo; cert: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_RecipientEncryptedKey_get0_id(rek: PCMS_RecipientEncryptedKey; keyid: PPASN1_OCTET_STRING; tm: PPASN1_GENERALIZEDTIME; other: PPCMS_OtherKeyAttribute; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_RecipientEncryptedKey_cert_cmp(rek: PCMS_RecipientEncryptedKey; cert: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_RecipientInfo_kari_set0_pkey(ri: PCMS_RecipientInfo; pk: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_RecipientInfo_kari_get0_ctx(ri: PCMS_RecipientInfo): PEVP_CIPHER_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CMS_RecipientInfo_kari_decrypt(cms: PCMS_ContentInfo; ri: PCMS_RecipientInfo; rek: PCMS_RecipientEncryptedKey): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CMS_SharedInfo_encode(pder: PPByte; kekalg: PX509_ALGOR; ukm: PASN1_OCTET_STRING; keylen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + ///* Backward compatibility for spelling errors. */ + //# define CMS_R_UNKNOWN_DIGEST_ALGORITM CMS_R_UNKNOWN_DIGEST_ALGORITHM + //# define CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE \ CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + CMS_get0_type := LoadFunction('CMS_get0_type',AFailed); + CMS_dataInit := LoadFunction('CMS_dataInit',AFailed); + CMS_dataFinal := LoadFunction('CMS_dataFinal',AFailed); + CMS_get0_content := LoadFunction('CMS_get0_content',AFailed); + CMS_is_detached := LoadFunction('CMS_is_detached',AFailed); + CMS_set_detached := LoadFunction('CMS_set_detached',AFailed); + CMS_stream := LoadFunction('CMS_stream',AFailed); + d2i_CMS_bio := LoadFunction('d2i_CMS_bio',AFailed); + i2d_CMS_bio := LoadFunction('i2d_CMS_bio',AFailed); + BIO_new_CMS := LoadFunction('BIO_new_CMS',AFailed); + i2d_CMS_bio_stream := LoadFunction('i2d_CMS_bio_stream',AFailed); + PEM_write_bio_CMS_stream := LoadFunction('PEM_write_bio_CMS_stream',AFailed); + SMIME_read_CMS := LoadFunction('SMIME_read_CMS',AFailed); + SMIME_write_CMS := LoadFunction('SMIME_write_CMS',AFailed); + CMS_final := LoadFunction('CMS_final',AFailed); + CMS_data := LoadFunction('CMS_data',AFailed); + CMS_data_create := LoadFunction('CMS_data_create',AFailed); + CMS_digest_verify := LoadFunction('CMS_digest_verify',AFailed); + CMS_digest_create := LoadFunction('CMS_digest_create',AFailed); + CMS_EncryptedData_decrypt := LoadFunction('CMS_EncryptedData_decrypt',AFailed); + CMS_EncryptedData_encrypt := LoadFunction('CMS_EncryptedData_encrypt',AFailed); + CMS_EncryptedData_set1_key := LoadFunction('CMS_EncryptedData_set1_key',AFailed); + CMS_decrypt := LoadFunction('CMS_decrypt',AFailed); + CMS_decrypt_set1_pkey := LoadFunction('CMS_decrypt_set1_pkey',AFailed); + CMS_decrypt_set1_key := LoadFunction('CMS_decrypt_set1_key',AFailed); + CMS_decrypt_set1_password := LoadFunction('CMS_decrypt_set1_password',AFailed); + CMS_RecipientInfo_type := LoadFunction('CMS_RecipientInfo_type',AFailed); + CMS_RecipientInfo_get0_pkey_ctx := LoadFunction('CMS_RecipientInfo_get0_pkey_ctx',AFailed); + CMS_EnvelopedData_create := LoadFunction('CMS_EnvelopedData_create',AFailed); + CMS_add1_recipient_cert := LoadFunction('CMS_add1_recipient_cert',AFailed); + CMS_RecipientInfo_set0_pkey := LoadFunction('CMS_RecipientInfo_set0_pkey',AFailed); + CMS_RecipientInfo_ktri_cert_cmp := LoadFunction('CMS_RecipientInfo_ktri_cert_cmp',AFailed); + CMS_RecipientInfo_ktri_get0_algs := LoadFunction('CMS_RecipientInfo_ktri_get0_algs',AFailed); + CMS_RecipientInfo_ktri_get0_signer_id := LoadFunction('CMS_RecipientInfo_ktri_get0_signer_id',AFailed); + CMS_add0_recipient_key := LoadFunction('CMS_add0_recipient_key',AFailed); + CMS_RecipientInfo_kekri_get0_id := LoadFunction('CMS_RecipientInfo_kekri_get0_id',AFailed); + CMS_RecipientInfo_set0_key := LoadFunction('CMS_RecipientInfo_set0_key',AFailed); + CMS_RecipientInfo_kekri_id_cmp := LoadFunction('CMS_RecipientInfo_kekri_id_cmp',AFailed); + CMS_RecipientInfo_set0_password := LoadFunction('CMS_RecipientInfo_set0_password',AFailed); + CMS_add0_recipient_password := LoadFunction('CMS_add0_recipient_password',AFailed); + CMS_RecipientInfo_decrypt := LoadFunction('CMS_RecipientInfo_decrypt',AFailed); + CMS_RecipientInfo_encrypt := LoadFunction('CMS_RecipientInfo_encrypt',AFailed); + CMS_uncompress := LoadFunction('CMS_uncompress',AFailed); + CMS_compress := LoadFunction('CMS_compress',AFailed); + CMS_set1_eContentType := LoadFunction('CMS_set1_eContentType',AFailed); + CMS_get0_eContentType := LoadFunction('CMS_get0_eContentType',AFailed); + CMS_add0_CertificateChoices := LoadFunction('CMS_add0_CertificateChoices',AFailed); + CMS_add0_cert := LoadFunction('CMS_add0_cert',AFailed); + CMS_add1_cert := LoadFunction('CMS_add1_cert',AFailed); + CMS_add0_RevocationInfoChoice := LoadFunction('CMS_add0_RevocationInfoChoice',AFailed); + CMS_add0_crl := LoadFunction('CMS_add0_crl',AFailed); + CMS_add1_crl := LoadFunction('CMS_add1_crl',AFailed); + CMS_SignedData_init := LoadFunction('CMS_SignedData_init',AFailed); + CMS_add1_signer := LoadFunction('CMS_add1_signer',AFailed); + CMS_SignerInfo_get0_pkey_ctx := LoadFunction('CMS_SignerInfo_get0_pkey_ctx',AFailed); + CMS_SignerInfo_get0_md_ctx := LoadFunction('CMS_SignerInfo_get0_md_ctx',AFailed); + CMS_SignerInfo_set1_signer_cert := LoadFunction('CMS_SignerInfo_set1_signer_cert',AFailed); + CMS_SignerInfo_get0_signer_id := LoadFunction('CMS_SignerInfo_get0_signer_id',AFailed); + CMS_SignerInfo_cert_cmp := LoadFunction('CMS_SignerInfo_cert_cmp',AFailed); + CMS_SignerInfo_get0_algs := LoadFunction('CMS_SignerInfo_get0_algs',AFailed); + CMS_SignerInfo_get0_signature := LoadFunction('CMS_SignerInfo_get0_signature',AFailed); + CMS_SignerInfo_sign := LoadFunction('CMS_SignerInfo_sign',AFailed); + CMS_SignerInfo_verify := LoadFunction('CMS_SignerInfo_verify',AFailed); + CMS_SignerInfo_verify_content := LoadFunction('CMS_SignerInfo_verify_content',AFailed); + CMS_signed_get_attr_count := LoadFunction('CMS_signed_get_attr_count',AFailed); + CMS_signed_get_attr_by_NID := LoadFunction('CMS_signed_get_attr_by_NID',AFailed); + CMS_signed_get_attr_by_OBJ := LoadFunction('CMS_signed_get_attr_by_OBJ',AFailed); + CMS_signed_get_attr := LoadFunction('CMS_signed_get_attr',AFailed); + CMS_signed_delete_attr := LoadFunction('CMS_signed_delete_attr',AFailed); + CMS_signed_add1_attr := LoadFunction('CMS_signed_add1_attr',AFailed); + CMS_signed_add1_attr_by_OBJ := LoadFunction('CMS_signed_add1_attr_by_OBJ',AFailed); + CMS_signed_add1_attr_by_NID := LoadFunction('CMS_signed_add1_attr_by_NID',AFailed); + CMS_signed_add1_attr_by_txt := LoadFunction('CMS_signed_add1_attr_by_txt',AFailed); + CMS_signed_get0_data_by_OBJ := LoadFunction('CMS_signed_get0_data_by_OBJ',AFailed); + CMS_unsigned_get_attr_count := LoadFunction('CMS_unsigned_get_attr_count',AFailed); + CMS_unsigned_get_attr_by_NID := LoadFunction('CMS_unsigned_get_attr_by_NID',AFailed); + CMS_unsigned_get_attr_by_OBJ := LoadFunction('CMS_unsigned_get_attr_by_OBJ',AFailed); + CMS_unsigned_get_attr := LoadFunction('CMS_unsigned_get_attr',AFailed); + CMS_unsigned_delete_attr := LoadFunction('CMS_unsigned_delete_attr',AFailed); + CMS_unsigned_add1_attr := LoadFunction('CMS_unsigned_add1_attr',AFailed); + CMS_unsigned_add1_attr_by_OBJ := LoadFunction('CMS_unsigned_add1_attr_by_OBJ',AFailed); + CMS_unsigned_add1_attr_by_NID := LoadFunction('CMS_unsigned_add1_attr_by_NID',AFailed); + CMS_unsigned_add1_attr_by_txt := LoadFunction('CMS_unsigned_add1_attr_by_txt',AFailed); + CMS_unsigned_get0_data_by_OBJ := LoadFunction('CMS_unsigned_get0_data_by_OBJ',AFailed); + CMS_get1_ReceiptRequest := LoadFunction('CMS_get1_ReceiptRequest',AFailed); + CMS_add1_ReceiptRequest := LoadFunction('CMS_add1_ReceiptRequest',AFailed); + CMS_RecipientInfo_kari_get0_orig_id := LoadFunction('CMS_RecipientInfo_kari_get0_orig_id',AFailed); + CMS_RecipientInfo_kari_orig_id_cmp := LoadFunction('CMS_RecipientInfo_kari_orig_id_cmp',AFailed); + CMS_RecipientEncryptedKey_get0_id := LoadFunction('CMS_RecipientEncryptedKey_get0_id',AFailed); + CMS_RecipientEncryptedKey_cert_cmp := LoadFunction('CMS_RecipientEncryptedKey_cert_cmp',AFailed); + CMS_RecipientInfo_kari_set0_pkey := LoadFunction('CMS_RecipientInfo_kari_set0_pkey',AFailed); + CMS_RecipientInfo_kari_get0_ctx := LoadFunction('CMS_RecipientInfo_kari_get0_ctx',AFailed); + CMS_RecipientInfo_kari_decrypt := LoadFunction('CMS_RecipientInfo_kari_decrypt',AFailed); + CMS_SharedInfo_encode := LoadFunction('CMS_SharedInfo_encode',AFailed); +end; + +procedure Unload; +begin + CMS_get0_type := nil; + CMS_dataInit := nil; + CMS_dataFinal := nil; + CMS_get0_content := nil; + CMS_is_detached := nil; + CMS_set_detached := nil; + CMS_stream := nil; + d2i_CMS_bio := nil; + i2d_CMS_bio := nil; + BIO_new_CMS := nil; + i2d_CMS_bio_stream := nil; + PEM_write_bio_CMS_stream := nil; + SMIME_read_CMS := nil; + SMIME_write_CMS := nil; + CMS_final := nil; + CMS_data := nil; + CMS_data_create := nil; + CMS_digest_verify := nil; + CMS_digest_create := nil; + CMS_EncryptedData_decrypt := nil; + CMS_EncryptedData_encrypt := nil; + CMS_EncryptedData_set1_key := nil; + CMS_decrypt := nil; + CMS_decrypt_set1_pkey := nil; + CMS_decrypt_set1_key := nil; + CMS_decrypt_set1_password := nil; + CMS_RecipientInfo_type := nil; + CMS_RecipientInfo_get0_pkey_ctx := nil; + CMS_EnvelopedData_create := nil; + CMS_add1_recipient_cert := nil; + CMS_RecipientInfo_set0_pkey := nil; + CMS_RecipientInfo_ktri_cert_cmp := nil; + CMS_RecipientInfo_ktri_get0_algs := nil; + CMS_RecipientInfo_ktri_get0_signer_id := nil; + CMS_add0_recipient_key := nil; + CMS_RecipientInfo_kekri_get0_id := nil; + CMS_RecipientInfo_set0_key := nil; + CMS_RecipientInfo_kekri_id_cmp := nil; + CMS_RecipientInfo_set0_password := nil; + CMS_add0_recipient_password := nil; + CMS_RecipientInfo_decrypt := nil; + CMS_RecipientInfo_encrypt := nil; + CMS_uncompress := nil; + CMS_compress := nil; + CMS_set1_eContentType := nil; + CMS_get0_eContentType := nil; + CMS_add0_CertificateChoices := nil; + CMS_add0_cert := nil; + CMS_add1_cert := nil; + CMS_add0_RevocationInfoChoice := nil; + CMS_add0_crl := nil; + CMS_add1_crl := nil; + CMS_SignedData_init := nil; + CMS_add1_signer := nil; + CMS_SignerInfo_get0_pkey_ctx := nil; + CMS_SignerInfo_get0_md_ctx := nil; + CMS_SignerInfo_set1_signer_cert := nil; + CMS_SignerInfo_get0_signer_id := nil; + CMS_SignerInfo_cert_cmp := nil; + CMS_SignerInfo_get0_algs := nil; + CMS_SignerInfo_get0_signature := nil; + CMS_SignerInfo_sign := nil; + CMS_SignerInfo_verify := nil; + CMS_SignerInfo_verify_content := nil; + CMS_signed_get_attr_count := nil; + CMS_signed_get_attr_by_NID := nil; + CMS_signed_get_attr_by_OBJ := nil; + CMS_signed_get_attr := nil; + CMS_signed_delete_attr := nil; + CMS_signed_add1_attr := nil; + CMS_signed_add1_attr_by_OBJ := nil; + CMS_signed_add1_attr_by_NID := nil; + CMS_signed_add1_attr_by_txt := nil; + CMS_signed_get0_data_by_OBJ := nil; + CMS_unsigned_get_attr_count := nil; + CMS_unsigned_get_attr_by_NID := nil; + CMS_unsigned_get_attr_by_OBJ := nil; + CMS_unsigned_get_attr := nil; + CMS_unsigned_delete_attr := nil; + CMS_unsigned_add1_attr := nil; + CMS_unsigned_add1_attr_by_OBJ := nil; + CMS_unsigned_add1_attr_by_NID := nil; + CMS_unsigned_add1_attr_by_txt := nil; + CMS_unsigned_get0_data_by_OBJ := nil; + CMS_get1_ReceiptRequest := nil; + CMS_add1_ReceiptRequest := nil; + CMS_RecipientInfo_kari_get0_orig_id := nil; + CMS_RecipientInfo_kari_orig_id_cmp := nil; + CMS_RecipientEncryptedKey_get0_id := nil; + CMS_RecipientEncryptedKey_cert_cmp := nil; + CMS_RecipientInfo_kari_set0_pkey := nil; + CMS_RecipientInfo_kari_get0_ctx := nil; + CMS_RecipientInfo_kari_decrypt := nil; + CMS_SharedInfo_encode := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cmserr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cmserr.pas new file mode 100644 index 000000000..0dd827d26 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cmserr.pas @@ -0,0 +1,275 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_cmserr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_cmserr.h2pas + and this file regenerated. IdOpenSSLHeaders_cmserr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cmserr; + +interface + +// Headers for OpenSSL 1.1.1 +// cmserr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // + // CMS function codes. + // + CMS_F_CHECK_CONTENT = 99; + CMS_F_CMS_ADD0_CERT = 164; + CMS_F_CMS_ADD0_RECIPIENT_KEY = 100; + CMS_F_CMS_ADD0_RECIPIENT_PASSWORD = 165; + CMS_F_CMS_ADD1_RECEIPTREQUEST = 158; + CMS_F_CMS_ADD1_RECIPIENT_CERT = 101; + CMS_F_CMS_ADD1_SIGNER = 102; + CMS_F_CMS_ADD1_SIGNINGTIME = 103; + CMS_F_CMS_COMPRESS = 104; + CMS_F_CMS_COMPRESSEDDATA_CREATE = 105; + CMS_F_CMS_COMPRESSEDDATA_INIT_BIO = 106; + CMS_F_CMS_COPY_CONTENT = 107; + CMS_F_CMS_COPY_MESSAGEDIGEST = 108; + CMS_F_CMS_DATA = 109; + CMS_F_CMS_DATAFINAL = 110; + CMS_F_CMS_DATAINIT = 111; + CMS_F_CMS_DECRYPT = 112; + CMS_F_CMS_DECRYPT_SET1_KEY = 113; + CMS_F_CMS_DECRYPT_SET1_PASSWORD = 166; + CMS_F_CMS_DECRYPT_SET1_PKEY = 114; + CMS_F_CMS_DIGESTALGORITHM_FIND_CTX = 115; + CMS_F_CMS_DIGESTALGORITHM_INIT_BIO = 116; + CMS_F_CMS_DIGESTEDDATA_DO_FINAL = 117; + CMS_F_CMS_DIGEST_VERIFY = 118; + CMS_F_CMS_ENCODE_RECEIPT = 161; + CMS_F_CMS_ENCRYPT = 119; + CMS_F_CMS_ENCRYPTEDCONTENT_INIT = 179; + CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO = 120; + CMS_F_CMS_ENCRYPTEDDATA_DECRYPT = 121; + CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT = 122; + CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY = 123; + CMS_F_CMS_ENVELOPEDDATA_CREATE = 124; + CMS_F_CMS_ENVELOPEDDATA_INIT_BIO = 125; + CMS_F_CMS_ENVELOPED_DATA_INIT = 126; + CMS_F_CMS_ENV_ASN1_CTRL = 171; + CMS_F_CMS_FINAL = 127; + CMS_F_CMS_GET0_CERTIFICATE_CHOICES = 128; + CMS_F_CMS_GET0_CONTENT = 129; + CMS_F_CMS_GET0_ECONTENT_TYPE = 130; + CMS_F_CMS_GET0_ENVELOPED = 131; + CMS_F_CMS_GET0_REVOCATION_CHOICES = 132; + CMS_F_CMS_GET0_SIGNED = 133; + CMS_F_CMS_MSGSIGDIGEST_ADD1 = 162; + CMS_F_CMS_RECEIPTREQUEST_CREATE0 = 159; + CMS_F_CMS_RECEIPT_VERIFY = 160; + CMS_F_CMS_RECIPIENTINFO_DECRYPT = 134; + CMS_F_CMS_RECIPIENTINFO_ENCRYPT = 169; + CMS_F_CMS_RECIPIENTINFO_KARI_ENCRYPT = 178; + CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ALG = 175; + CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ORIG_ID = 173; + CMS_F_CMS_RECIPIENTINFO_KARI_GET0_REKS = 172; + CMS_F_CMS_RECIPIENTINFO_KARI_ORIG_ID_CMP = 174; + CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT = 135; + CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT = 136; + CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID = 137; + CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP = 138; + CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP = 139; + CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT = 140; + CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT = 141; + CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS = 142; + CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID = 143; + CMS_F_CMS_RECIPIENTINFO_PWRI_CRYPT = 167; + CMS_F_CMS_RECIPIENTINFO_SET0_KEY = 144; + CMS_F_CMS_RECIPIENTINFO_SET0_PASSWORD = 168; + CMS_F_CMS_RECIPIENTINFO_SET0_PKEY = 145; + CMS_F_CMS_SD_ASN1_CTRL = 170; + CMS_F_CMS_SET1_IAS = 176; + CMS_F_CMS_SET1_KEYID = 177; + CMS_F_CMS_SET1_SIGNERIDENTIFIER = 146; + CMS_F_CMS_SET_DETACHED = 147; + CMS_F_CMS_SIGN = 148; + CMS_F_CMS_SIGNED_DATA_INIT = 149; + CMS_F_CMS_SIGNERINFO_CONTENT_SIGN = 150; + CMS_F_CMS_SIGNERINFO_SIGN = 151; + CMS_F_CMS_SIGNERINFO_VERIFY = 152; + CMS_F_CMS_SIGNERINFO_VERIFY_CERT = 153; + CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT = 154; + CMS_F_CMS_SIGN_RECEIPT = 163; + CMS_F_CMS_SI_CHECK_ATTRIBUTES = 183; + CMS_F_CMS_STREAM = 155; + CMS_F_CMS_UNCOMPRESS = 156; + CMS_F_CMS_VERIFY = 157; + CMS_F_KEK_UNWRAP_KEY = 180; + + // + // CMS reason codes. + // + CMS_R_ADD_SIGNER_ERROR = 99; + CMS_R_ATTRIBUTE_ERROR = 161; + CMS_R_CERTIFICATE_ALREADY_PRESENT = 175; + CMS_R_CERTIFICATE_HAS_NO_KEYID = 160; + CMS_R_CERTIFICATE_VERIFY_ERROR = 100; + CMS_R_CIPHER_INITIALISATION_ERROR = 101; + CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR = 102; + CMS_R_CMS_DATAFINAL_ERROR = 103; + CMS_R_CMS_LIB = 104; + CMS_R_CONTENTIDENTIFIER_MISMATCH = 170; + CMS_R_CONTENT_NOT_FOUND = 105; + CMS_R_CONTENT_TYPE_MISMATCH = 171; + CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA = 106; + CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA = 107; + CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA = 108; + CMS_R_CONTENT_VERIFY_ERROR = 109; + CMS_R_CTRL_ERROR = 110; + CMS_R_CTRL_FAILURE = 111; + CMS_R_DECRYPT_ERROR = 112; + CMS_R_ERROR_GETTING_PUBLIC_KEY = 113; + CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE = 114; + CMS_R_ERROR_SETTING_KEY = 115; + CMS_R_ERROR_SETTING_RECIPIENTINFO = 116; + CMS_R_INVALID_ENCRYPTED_KEY_LENGTH = 117; + CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER = 176; + CMS_R_INVALID_KEY_LENGTH = 118; + CMS_R_MD_BIO_INIT_ERROR = 119; + CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH = 120; + CMS_R_MESSAGEDIGEST_WRONG_LENGTH = 121; + CMS_R_MSGSIGDIGEST_ERROR = 172; + CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE = 162; + CMS_R_MSGSIGDIGEST_WRONG_LENGTH = 163; + CMS_R_NEED_ONE_SIGNER = 164; + CMS_R_NOT_A_SIGNED_RECEIPT = 165; + CMS_R_NOT_ENCRYPTED_DATA = 122; + CMS_R_NOT_KEK = 123; + CMS_R_NOT_KEY_AGREEMENT = 181; + CMS_R_NOT_KEY_TRANSPORT = 124; + CMS_R_NOT_PWRI = 177; + CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE = 125; + CMS_R_NO_CIPHER = 126; + CMS_R_NO_CONTENT = 127; + CMS_R_NO_CONTENT_TYPE = 173; + CMS_R_NO_DEFAULT_DIGEST = 128; + CMS_R_NO_DIGEST_SET = 129; + CMS_R_NO_KEY = 130; + CMS_R_NO_KEY_OR_CERT = 174; + CMS_R_NO_MATCHING_DIGEST = 131; + CMS_R_NO_MATCHING_RECIPIENT = 132; + CMS_R_NO_MATCHING_SIGNATURE = 166; + CMS_R_NO_MSGSIGDIGEST = 167; + CMS_R_NO_PASSWORD = 178; + CMS_R_NO_PRIVATE_KEY = 133; + CMS_R_NO_PUBLIC_KEY = 134; + CMS_R_NO_RECEIPT_REQUEST = 168; + CMS_R_NO_SIGNERS = 135; + CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE = 136; + CMS_R_RECEIPT_DECODE_ERROR = 169; + CMS_R_RECIPIENT_ERROR = 137; + CMS_R_SIGNER_CERTIFICATE_NOT_FOUND = 138; + CMS_R_SIGNFINAL_ERROR = 139; + CMS_R_SMIME_TEXT_ERROR = 140; + CMS_R_STORE_INIT_ERROR = 141; + CMS_R_TYPE_NOT_COMPRESSED_DATA = 142; + CMS_R_TYPE_NOT_DATA = 143; + CMS_R_TYPE_NOT_DIGESTED_DATA = 144; + CMS_R_TYPE_NOT_ENCRYPTED_DATA = 145; + CMS_R_TYPE_NOT_ENVELOPED_DATA = 146; + CMS_R_UNABLE_TO_FINALIZE_CONTEXT = 147; + CMS_R_UNKNOWN_CIPHER = 148; + CMS_R_UNKNOWN_DIGEST_ALGORITHM = 149; + CMS_R_UNKNOWN_ID = 150; + CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM = 151; + CMS_R_UNSUPPORTED_CONTENT_TYPE = 152; + CMS_R_UNSUPPORTED_KEK_ALGORITHM = 153; + CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM = 179; + CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE = 155; + CMS_R_UNSUPPORTED_RECIPIENT_TYPE = 154; + CMS_R_UNSUPPORTED_TYPE = 156; + CMS_R_UNWRAP_ERROR = 157; + CMS_R_UNWRAP_FAILURE = 180; + CMS_R_VERIFICATION_FAILURE = 158; + CMS_R_WRAP_ERROR = 159; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_CMS_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_CMS_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_CMS_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_CMS_strings := LoadFunction('ERR_load_CMS_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_CMS_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_comp.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_comp.pas new file mode 100644 index 000000000..1ede46009 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_comp.pas @@ -0,0 +1,153 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_comp.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_comp.h2pas + and this file regenerated. IdOpenSSLHeaders_comp.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_comp; + +interface + +// Headers for OpenSSL 1.1.1 +// comp.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_ossl_typ; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM COMP_CTX_new} + {$EXTERNALSYM COMP_CTX_get_method} + {$EXTERNALSYM COMP_CTX_get_type} + {$EXTERNALSYM COMP_get_type} + {$EXTERNALSYM COMP_get_name} + {$EXTERNALSYM COMP_CTX_free} + {$EXTERNALSYM COMP_compress_block} + {$EXTERNALSYM COMP_expand_block} + {$EXTERNALSYM COMP_zlib} + {$EXTERNALSYM BIO_f_zlib} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + COMP_CTX_new: function(meth: PCOMP_METHOD): PCOMP_CTX; cdecl = nil; + COMP_CTX_get_method: function(const ctx: PCOMP_CTX): PCOMP_METHOD; cdecl = nil; + COMP_CTX_get_type: function(const comp: PCOMP_CTX): TIdC_INT; cdecl = nil; + COMP_get_type: function(const meth: PCOMP_METHOD): TIdC_INT; cdecl = nil; + COMP_get_name: function(const meth: PCOMP_METHOD): PIdAnsiChar; cdecl = nil; + COMP_CTX_free: procedure(ctx: PCOMP_CTX); cdecl = nil; + + COMP_compress_block: function(ctx: PCOMP_CTX; out_: PByte; olen: TIdC_INT; in_: PByte; ilen: TIdC_INT): TIdC_INT; cdecl = nil; + COMP_expand_block: function(ctx: PCOMP_CTX; out_: PByte; olen: TIdC_INT; in_: PByte; ilen: TIdC_INT): TIdC_INT; cdecl = nil; + + COMP_zlib: function: PCOMP_METHOD; cdecl = nil; + + BIO_f_zlib: function: PBIO_METHOD; cdecl = nil; + +{$ELSE} + function COMP_CTX_new(meth: PCOMP_METHOD): PCOMP_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function COMP_CTX_get_method(const ctx: PCOMP_CTX): PCOMP_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function COMP_CTX_get_type(const comp: PCOMP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function COMP_get_type(const meth: PCOMP_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function COMP_get_name(const meth: PCOMP_METHOD): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure COMP_CTX_free(ctx: PCOMP_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function COMP_compress_block(ctx: PCOMP_CTX; out_: PByte; olen: TIdC_INT; in_: PByte; ilen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function COMP_expand_block(ctx: PCOMP_CTX; out_: PByte; olen: TIdC_INT; in_: PByte; ilen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function COMP_zlib: PCOMP_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_f_zlib: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + COMP_CTX_new := LoadFunction('COMP_CTX_new',AFailed); + COMP_CTX_get_method := LoadFunction('COMP_CTX_get_method',AFailed); + COMP_CTX_get_type := LoadFunction('COMP_CTX_get_type',AFailed); + COMP_get_type := LoadFunction('COMP_get_type',AFailed); + COMP_get_name := LoadFunction('COMP_get_name',AFailed); + COMP_CTX_free := LoadFunction('COMP_CTX_free',AFailed); + COMP_compress_block := LoadFunction('COMP_compress_block',AFailed); + COMP_expand_block := LoadFunction('COMP_expand_block',AFailed); + COMP_zlib := LoadFunction('COMP_zlib',AFailed); + BIO_f_zlib := LoadFunction('BIO_f_zlib',AFailed); +end; + +procedure Unload; +begin + COMP_CTX_new := nil; + COMP_CTX_get_method := nil; + COMP_CTX_get_type := nil; + COMP_get_type := nil; + COMP_get_name := nil; + COMP_CTX_free := nil; + COMP_compress_block := nil; + COMP_expand_block := nil; + COMP_zlib := nil; + BIO_f_zlib := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_comperr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_comperr.pas new file mode 100644 index 000000000..7695ab2c9 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_comperr.pas @@ -0,0 +1,117 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_comperr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_comperr.h2pas + and this file regenerated. IdOpenSSLHeaders_comperr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_comperr; + +interface + +// Headers for OpenSSL 1.1.1 +// comperr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const +///* +// * COMP function codes. +// */ + COMP_F_BIO_ZLIB_FLUSH = 99; + COMP_F_BIO_ZLIB_NEW = 100; + COMP_F_BIO_ZLIB_READ = 101; + COMP_F_BIO_ZLIB_WRITE = 102; + COMP_F_COMP_CTX_NEW = 103; + +///* +// * COMP reason codes. +// */ + COMP_R_ZLIB_DEFLATE_ERROR = 99; + COMP_R_ZLIB_INFLATE_ERROR = 100; + COMP_R_ZLIB_NOT_SUPPORTED = 101; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_COMP_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_COMP_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_COMP_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_COMP_strings := LoadFunction('ERR_load_COMP_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_COMP_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conf.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conf.pas new file mode 100644 index 000000000..fed3dd4d4 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conf.pas @@ -0,0 +1,392 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_conf.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_conf.h2pas + and this file regenerated. IdOpenSSLHeaders_conf.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_conf; + +interface + +// Headers for OpenSSL 1.1.1 +// conf.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_ossl_typ; + +type + CONF_parse_list_list_cb = function (const elem: PAnsiChar; len: TIdC_INT; usr: Pointer): TIdC_INT; + + CONF_VALUE = record + section: PAnsiChar; + name: PAnsiChar; + value: PAnsiChar; + end; + PCONF_VALUE = ^CONF_VALUE; + +//DEFINE_STACK_OF(CONF_VALUE) +//DEFINE_LHASH_OF(CONF_VALUE); + + conf_st = type Pointer; + conf_method_st = type Pointer; + CONF_METHOD = conf_method_st; + PCONF_METHOD = ^conf_method_st; + CONF = conf_st; + PCONF = ^CONF; + + (*conf_method_st = record + const char *name; + CONF *(*create) (CONF_METHOD *meth); + int (*init) (CONF *conf); + int (*destroy) (CONF *conf); + int (*destroy_data) (CONF *conf); + int (*load_bio) (CONF *conf, BIO *bp, long *eline); + int (*dump) (const CONF *conf, BIO *bp); + int (*is_number) (const CONF *conf, char c); + int (*to_int) (const CONF *conf, char c); + int (*load) (CONF *conf, const char *name, long *eline); + end; *) + +//* Module definitions */ + + conf_imodule_st = type Pointer; + CONF_IMODULE = conf_imodule_st; + PCONF_IMODULE = ^CONF_IMODULE; + conf_module_st = type Pointer; + CONF_MODULE = conf_module_st; + PCONF_MODULE = ^CONF_MODULE; + +//DEFINE_STACK_OF(CONF_MODULE) +//DEFINE_STACK_OF(CONF_IMODULE) + +//* DSO module function typedefs */ + conf_init_func = function(md: PCONF_IMODULE; const cnf: PCONF): TIdC_INT; + conf_finish_func = procedure(md: PCONF_IMODULE); + +const + CONF_MFLAGS_IGNORE_ERRORS = $1; + CONF_MFLAGS_IGNORE_RETURN_CODES = $2; + CONF_MFLAGS_SILENT = $4; + CONF_MFLAGS_NO_DSO = $8; + CONF_MFLAGS_IGNORE_MISSING_FILE = $10; + CONF_MFLAGS_DEFAULT_SECTION = $20; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM CONF_set_default_method} + {$EXTERNALSYM NCONF_new} + {$EXTERNALSYM NCONF_default} + {$EXTERNALSYM NCONF_WIN32} + {$EXTERNALSYM NCONF_free} + {$EXTERNALSYM NCONF_free_data} + {$EXTERNALSYM NCONF_load} + {$EXTERNALSYM NCONF_load_bio} + {$EXTERNALSYM NCONF_get_string} + {$EXTERNALSYM NCONF_get_number_e} + {$EXTERNALSYM NCONF_dump_bio} + {$EXTERNALSYM CONF_modules_load} + {$EXTERNALSYM CONF_modules_load_file} + {$EXTERNALSYM CONF_modules_unload} + {$EXTERNALSYM CONF_modules_finish} + {$EXTERNALSYM CONF_module_add} + {$EXTERNALSYM CONF_imodule_get_usr_data} + {$EXTERNALSYM CONF_imodule_set_usr_data} + {$EXTERNALSYM CONF_imodule_get_module} + {$EXTERNALSYM CONF_imodule_get_flags} + {$EXTERNALSYM CONF_imodule_set_flags} + {$EXTERNALSYM CONF_module_get_usr_data} + {$EXTERNALSYM CONF_module_set_usr_data} + {$EXTERNALSYM CONF_get1_default_config_file} + {$EXTERNALSYM CONF_parse_list} + {$EXTERNALSYM OPENSSL_load_builtin_modules} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + CONF_set_default_method: function(meth: PCONF_METHOD): TIdC_INT; cdecl = nil; +// (* +// void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); +// LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, long *eline); +// {$ifndef OPENSSL_NO_STDIO} +// LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, long *eline); +// {$endif} +// LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, +// long *eline); +// STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, +// const char *section); +// char *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group, +// const char *name); +// long CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group, +// const char *name); +// void CONF_free(LHASH_OF(CONF_VALUE) *conf); +// #ifndef OPENSSL_NO_STDIO +// int CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out); +// #endif +// int CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out); +// +// DEPRECATEDIN_1_1_0(void OPENSSL_config(const char *config_name)) +// +// #if OPENSSL_API_COMPAT < 0x10100000L +// # define OPENSSL_no_config() \ +// OPENSSL_init_crypto(OPENSSL_INIT_NO_LOAD_CONFIG, NULL) +// #endif +// *) + + (* + * New conf code. The semantics are different from the functions above. If + * that wasn't the case, the above functions would have been replaced + *) + + //type Doppelt??? + // conf_st = record + // CONF_METHOD *meth; + // void *meth_data; + // LHASH_OF(CONF_VALUE) *data; + // end; + + NCONF_new: function(meth: PCONF_METHOD): PCONF; cdecl = nil; + NCONF_default: function: PCONF_METHOD; cdecl = nil; + NCONF_WIN32: function: PCONF_METHOD; cdecl = nil; + NCONF_free: procedure(conf: PCONF); cdecl = nil; + NCONF_free_data: procedure(conf: PCONF); cdecl = nil; + + NCONF_load: function(conf: PCONF; const file_: PAnsiChar; eline: PIdC_LONG): TIdC_INT; cdecl = nil; + NCONF_load_bio: function(conf: PCONF; bp: PBIO; eline: PIdC_LONG): TIdC_INT; cdecl = nil; + //STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, + // const char *section); + NCONF_get_string: function(const conf: PCONF; const group: PAnsiChar; const name: PAnsiChar): PAnsiChar; cdecl = nil; + NCONF_get_number_e: function(const conf: PCONF; const group: PAnsiChar; const name: PAnsiChar; result: PIdC_LONG): TIdC_INT; cdecl = nil; + NCONF_dump_bio: function(const conf: PCONf; out_: PBIO): TIdC_INT; cdecl = nil; + + //#define NCONF_get_number(c,g,n,r) NCONF_get_number_e(c,g,n,r) + + //* Module functions */ + + CONF_modules_load: function(const cnf: PCONF; const appname: PAnsiChar; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + CONF_modules_load_file: function(const filename: PAnsiChar; const appname: PAnsiChar; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + + CONF_modules_unload: procedure(all: TIdC_INT); cdecl = nil; + CONF_modules_finish: procedure; cdecl = nil; + CONF_module_add: function(const name: PAnsiChar; ifunc: conf_init_func; ffunc: conf_finish_func): TIdC_INT; cdecl = nil; + + //const char *CONF_imodule_get_name(const CONF_IMODULE *md); + //const char *CONF_imodule_get_value(const CONF_IMODULE *md); + CONF_imodule_get_usr_data: function(const md: PCONF_IMODULE): Pointer; cdecl = nil; + CONF_imodule_set_usr_data: procedure(md: PCONF_IMODULE; usr_data: Pointer); cdecl = nil; + CONF_imodule_get_module: function(const md: PCONF_IMODULE): PCONF_MODULE; cdecl = nil; + CONF_imodule_get_flags: function(const md: PCONF_IMODULE): TIdC_ULONG; cdecl = nil; + CONF_imodule_set_flags: procedure(md: PCONF_IMODULE; flags: TIdC_ULONG); cdecl = nil; + CONF_module_get_usr_data: function(pmod: PCONF_MODULE): Pointer; cdecl = nil; + CONF_module_set_usr_data: procedure(pmod: PCONF_MODULE; usr_data: Pointer); cdecl = nil; + + CONF_get1_default_config_file: function: PAnsiChar; cdecl = nil; + CONF_parse_list: function(const list: PAnsiChar; sep: TIdC_INT; nospc: TIdC_INT; list_cb: CONF_parse_list_list_cb; arg: Pointer): TIdC_INT; cdecl = nil; + + OPENSSL_load_builtin_modules: procedure; cdecl = nil; + +{$ELSE} + function CONF_set_default_method(meth: PCONF_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// (* +// void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); +// LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, long *eline); +// {$ifndef OPENSSL_NO_STDIO} +// LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, long *eline); +// {$endif} +// LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, +// long *eline); +// STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, +// const char *section); +// char *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group, +// const char *name); +// long CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group, +// const char *name); +// void CONF_free(LHASH_OF(CONF_VALUE) *conf); +// #ifndef OPENSSL_NO_STDIO +// int CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out); +// #endif +// int CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out); +// +// DEPRECATEDIN_1_1_0(void OPENSSL_config(const char *config_name)) +// +// #if OPENSSL_API_COMPAT < 0x10100000L +// # define OPENSSL_no_config() \ +// OPENSSL_init_crypto(OPENSSL_INIT_NO_LOAD_CONFIG, NULL) +// #endif +// *) + + (* + * New conf code. The semantics are different from the functions above. If + * that wasn't the case, the above functions would have been replaced + *) + + //type Doppelt??? + // conf_st = record + // CONF_METHOD *meth; + // void *meth_data; + // LHASH_OF(CONF_VALUE) *data; + // end; + + function NCONF_new(meth: PCONF_METHOD): PCONF cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NCONF_default: PCONF_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NCONF_WIN32: PCONF_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure NCONF_free(conf: PCONF) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure NCONF_free_data(conf: PCONF) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function NCONF_load(conf: PCONF; const file_: PAnsiChar; eline: PIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NCONF_load_bio(conf: PCONF; bp: PBIO; eline: PIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, + // const char *section); + function NCONF_get_string(const conf: PCONF; const group: PAnsiChar; const name: PAnsiChar): PAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NCONF_get_number_e(const conf: PCONF; const group: PAnsiChar; const name: PAnsiChar; result: PIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NCONF_dump_bio(const conf: PCONf; out_: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //#define NCONF_get_number(c,g,n,r) NCONF_get_number_e(c,g,n,r) + + //* Module functions */ + + function CONF_modules_load(const cnf: PCONF; const appname: PAnsiChar; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CONF_modules_load_file(const filename: PAnsiChar; const appname: PAnsiChar; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure CONF_modules_unload(all: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CONF_modules_finish cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CONF_module_add(const name: PAnsiChar; ifunc: conf_init_func; ffunc: conf_finish_func): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //const char *CONF_imodule_get_name(const CONF_IMODULE *md); + //const char *CONF_imodule_get_value(const CONF_IMODULE *md); + function CONF_imodule_get_usr_data(const md: PCONF_IMODULE): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CONF_imodule_set_usr_data(md: PCONF_IMODULE; usr_data: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CONF_imodule_get_module(const md: PCONF_IMODULE): PCONF_MODULE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CONF_imodule_get_flags(const md: PCONF_IMODULE): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CONF_imodule_set_flags(md: PCONF_IMODULE; flags: TIdC_ULONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CONF_module_get_usr_data(pmod: PCONF_MODULE): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CONF_module_set_usr_data(pmod: PCONF_MODULE; usr_data: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function CONF_get1_default_config_file: PAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CONF_parse_list(const list: PAnsiChar; sep: TIdC_INT; nospc: TIdC_INT; list_cb: CONF_parse_list_list_cb; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure OPENSSL_load_builtin_modules cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + CONF_set_default_method := LoadFunction('CONF_set_default_method',AFailed); + NCONF_new := LoadFunction('NCONF_new',AFailed); + NCONF_default := LoadFunction('NCONF_default',AFailed); + NCONF_WIN32 := LoadFunction('NCONF_WIN32',AFailed); + NCONF_free := LoadFunction('NCONF_free',AFailed); + NCONF_free_data := LoadFunction('NCONF_free_data',AFailed); + NCONF_load := LoadFunction('NCONF_load',AFailed); + NCONF_load_bio := LoadFunction('NCONF_load_bio',AFailed); + NCONF_get_string := LoadFunction('NCONF_get_string',AFailed); + NCONF_get_number_e := LoadFunction('NCONF_get_number_e',AFailed); + NCONF_dump_bio := LoadFunction('NCONF_dump_bio',AFailed); + CONF_modules_load := LoadFunction('CONF_modules_load',AFailed); + CONF_modules_load_file := LoadFunction('CONF_modules_load_file',AFailed); + CONF_modules_unload := LoadFunction('CONF_modules_unload',AFailed); + CONF_modules_finish := LoadFunction('CONF_modules_finish',AFailed); + CONF_module_add := LoadFunction('CONF_module_add',AFailed); + CONF_imodule_get_usr_data := LoadFunction('CONF_imodule_get_usr_data',AFailed); + CONF_imodule_set_usr_data := LoadFunction('CONF_imodule_set_usr_data',AFailed); + CONF_imodule_get_module := LoadFunction('CONF_imodule_get_module',AFailed); + CONF_imodule_get_flags := LoadFunction('CONF_imodule_get_flags',AFailed); + CONF_imodule_set_flags := LoadFunction('CONF_imodule_set_flags',AFailed); + CONF_module_get_usr_data := LoadFunction('CONF_module_get_usr_data',AFailed); + CONF_module_set_usr_data := LoadFunction('CONF_module_set_usr_data',AFailed); + CONF_get1_default_config_file := LoadFunction('CONF_get1_default_config_file',AFailed); + CONF_parse_list := LoadFunction('CONF_parse_list',AFailed); + OPENSSL_load_builtin_modules := LoadFunction('OPENSSL_load_builtin_modules',AFailed); +end; + +procedure Unload; +begin + CONF_set_default_method := nil; + NCONF_new := nil; + NCONF_default := nil; + NCONF_WIN32 := nil; + NCONF_free := nil; + NCONF_free_data := nil; + NCONF_load := nil; + NCONF_load_bio := nil; + NCONF_get_string := nil; + NCONF_get_number_e := nil; + NCONF_dump_bio := nil; + CONF_modules_load := nil; + CONF_modules_load_file := nil; + CONF_modules_unload := nil; + CONF_modules_finish := nil; + CONF_module_add := nil; + CONF_imodule_get_usr_data := nil; + CONF_imodule_set_usr_data := nil; + CONF_imodule_get_module := nil; + CONF_imodule_get_flags := nil; + CONF_imodule_set_flags := nil; + CONF_module_get_usr_data := nil; + CONF_module_set_usr_data := nil; + CONF_get1_default_config_file := nil; + CONF_parse_list := nil; + OPENSSL_load_builtin_modules := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conf_api.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conf_api.pas new file mode 100644 index 000000000..37fd2a7b2 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conf_api.pas @@ -0,0 +1,146 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_conf_api.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_conf_api.h2pas + and this file regenerated. IdOpenSSLHeaders_conf_api.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_conf_api; + +interface + +// Headers for OpenSSL 1.1.1 +// conf_api.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_conf; + + //* Up until OpenSSL 0.9.5a, this was new_section */ + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM _CONF_new_section} + {$EXTERNALSYM _CONF_get_section} + {$EXTERNALSYM _CONF_add_string} + {$EXTERNALSYM _CONF_get_string} + {$EXTERNALSYM _CONF_get_number} + {$EXTERNALSYM _CONF_new_data} + {$EXTERNALSYM _CONF_free_data} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + _CONF_new_section: function(conf: PCONF; const section: PAnsiChar): PCONF_VALUE; cdecl = nil; + //* Up until OpenSSL 0.9.5a, this was get_section */ + _CONF_get_section: function(const conf: PCONF; const section: PAnsiChar): PCONF_VALUE; cdecl = nil; + //* Up until OpenSSL 0.9.5a, this was CONF_get_section */ + //STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, + // const char *section); + + _CONF_add_string: function(conf: PCONF; section: PCONF_VALUE; value: PCONF_VALUE): TIdC_INT; cdecl = nil; + _CONF_get_string: function(const conf: PCONF; const section: PAnsiChar; const name: PAnsiChar): PAnsiChar; cdecl = nil; + _CONF_get_number: function(const conf: PCONF; const section: PAnsiChar; const name: PAnsiChar): TIdC_LONG; cdecl = nil; + + _CONF_new_data: function(conf: PCONF): TIdC_INT; cdecl = nil; + _CONF_free_data: procedure(conf: PCONF); cdecl = nil; + + +{$ELSE} + function _CONF_new_section(conf: PCONF; const section: PAnsiChar): PCONF_VALUE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //* Up until OpenSSL 0.9.5a, this was get_section */ + function _CONF_get_section(const conf: PCONF; const section: PAnsiChar): PCONF_VALUE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //* Up until OpenSSL 0.9.5a, this was CONF_get_section */ + //STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, + // const char *section); + + function _CONF_add_string(conf: PCONF; section: PCONF_VALUE; value: PCONF_VALUE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function _CONF_get_string(const conf: PCONF; const section: PAnsiChar; const name: PAnsiChar): PAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function _CONF_get_number(const conf: PCONF; const section: PAnsiChar; const name: PAnsiChar): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function _CONF_new_data(conf: PCONF): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure _CONF_free_data(conf: PCONF) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + _CONF_new_section := LoadFunction('_CONF_new_section',AFailed); + _CONF_get_section := LoadFunction('_CONF_get_section',AFailed); + _CONF_add_string := LoadFunction('_CONF_add_string',AFailed); + _CONF_get_string := LoadFunction('_CONF_get_string',AFailed); + _CONF_get_number := LoadFunction('_CONF_get_number',AFailed); + _CONF_new_data := LoadFunction('_CONF_new_data',AFailed); + _CONF_free_data := LoadFunction('_CONF_free_data',AFailed); +end; + +procedure Unload; +begin + _CONF_new_section := nil; + _CONF_get_section := nil; + _CONF_add_string := nil; + _CONF_get_string := nil; + _CONF_get_number := nil; + _CONF_new_data := nil; + _CONF_free_data := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conferr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conferr.pas new file mode 100644 index 000000000..80dbf7742 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_conferr.pas @@ -0,0 +1,154 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_conferr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_conferr.h2pas + and this file regenerated. IdOpenSSLHeaders_conferr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_conferr; + +interface + +// Headers for OpenSSL 1.1.1 +// conferr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + ///* + // * CONF function codes. + // */ + CONF_F_CONF_DUMP_FP = 104; + CONF_F_CONF_LOAD = 100; + CONF_F_CONF_LOAD_FP = 103; + CONF_F_CONF_PARSE_LIST = 119; + CONF_F_DEF_LOAD = 120; + CONF_F_DEF_LOAD_BIO = 121; + CONF_F_GET_NEXT_FILE = 107; + CONF_F_MODULE_ADD = 122; + CONF_F_MODULE_INIT = 115; + CONF_F_MODULE_LOAD_DSO = 117; + CONF_F_MODULE_RUN = 118; + CONF_F_NCONF_DUMP_BIO = 105; + CONF_F_NCONF_DUMP_FP = 106; + CONF_F_NCONF_GET_NUMBER_E = 112; + CONF_F_NCONF_GET_SECTION = 108; + CONF_F_NCONF_GET_STRING = 109; + CONF_F_NCONF_LOAD = 113; + CONF_F_NCONF_LOAD_BIO = 110; + CONF_F_NCONF_LOAD_FP = 114; + CONF_F_NCONF_NEW = 111; + CONF_F_PROCESS_INCLUDE = 116; + CONF_F_SSL_MODULE_INIT = 123; + CONF_F_STR_COPY = 101; + + ///* + // * CONF reason codes. + // */ + CONF_R_ERROR_LOADING_DSO = 110; + CONF_R_LIST_CANNOT_BE_NULL = 115; + CONF_R_MISSING_CLOSE_SQUARE_BRACKET = 100; + CONF_R_MISSING_EQUAL_SIGN = 101; + CONF_R_MISSING_INIT_FUNCTION = 112; + CONF_R_MODULE_INITIALIZATION_ERROR = 109; + CONF_R_NO_CLOSE_BRACE = 102; + CONF_R_NO_CONF = 105; + CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE = 106; + CONF_R_NO_SECTION = 107; + CONF_R_NO_SUCH_FILE = 114; + CONF_R_NO_VALUE = 108; + CONF_R_NUMBER_TOO_LARGE = 121; + CONF_R_RECURSIVE_DIRECTORY_INCLUDE = 111; + CONF_R_SSL_COMMAND_SECTION_EMPTY = 117; + CONF_R_SSL_COMMAND_SECTION_NOT_FOUND = 118; + CONF_R_SSL_SECTION_EMPTY = 119; + CONF_R_SSL_SECTION_NOT_FOUND = 120; + CONF_R_UNABLE_TO_CREATE_NEW_SECTION = 103; + CONF_R_UNKNOWN_MODULE_NAME = 113; + CONF_R_VARIABLE_EXPANSION_TOO_LONG = 116; + CONF_R_VARIABLE_HAS_NO_VALUE = 104; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_CONF_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_CONF_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_CONF_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_CONF_strings := LoadFunction('ERR_load_CONF_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_CONF_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_crypto.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_crypto.pas new file mode 100644 index 000000000..2f24b19ec --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_crypto.pas @@ -0,0 +1,3337 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_crypto.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_crypto.h2pas + and this file regenerated. IdOpenSSLHeaders_crypto.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_crypto; + +interface + +// Headers for OpenSSL 1.1.1 +// crypto.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_evp, + {$IFDEF VCL_XE3_OR_ABOVE}System.Types{$ELSE}Types{$ENDIF}; + +{$MINENUMSIZE 4} + +const + CRYPTO_MEM_CHECK_OFF = $0; //* Control only */ + CRYPTO_MEM_CHECK_ON = $1; //* Control and mode bit */ + CRYPTO_MEM_CHECK_ENABLE = $2; //* Control and mode bit */ + CRYPTO_MEM_CHECK_DISABLE = $3; //* Control only */ + + CRYPTO_EX_INDEX_SSL = 0; + CRYPTO_EX_INDEX_SSL_CTX = 1; + CRYPTO_EX_INDEX_SSL_SESSION = 2; + CRYPTO_EX_INDEX_X509 = 3; + CRYPTO_EX_INDEX_X509_STORE = 4; + CRYPTO_EX_INDEX_X509_STORE_CTX = 5; + CRYPTO_EX_INDEX_DH = 6; + CRYPTO_EX_INDEX_DSA = 7; + CRYPTO_EX_INDEX_EC_KEY = 8; + CRYPTO_EX_INDEX_RSA = 9; + CRYPTO_EX_INDEX_ENGINE = 10; + CRYPTO_EX_INDEX_UI = 11; + CRYPTO_EX_INDEX_BIO = 12; + CRYPTO_EX_INDEX_APP = 13; + CRYPTO_EX_INDEX_UI_METHOD = 14; + CRYPTO_EX_INDEX_DRBG = 15; + CRYPTO_EX_INDEX__COUNT = 16; + + // Added _CONST to prevent nameclashes + OPENSSL_VERSION_CONST = 0; + OPENSSL_CFLAGS = 1; + OPENSSL_BUILT_ON = 2; + OPENSSL_PLATFORM = 3; + OPENSSL_DIR = 4; + OPENSSL_ENGINES_DIR = 5; + SSLEAY_VERSION_CONST = OPENSSL_VERSION_CONST; + + (* + * These defines where used in combination with the old locking callbacks, + * they are not called anymore, but old code that's not called might still + * use them. + *) + CRYPTO_LOCK = 1; + CRYPTO_UNLOCK = 2; + CRYPTO_READ = 4; + CRYPTO_WRITE = 8; + + (* Standard initialisation options *) + OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS = TIdC_Long($00000001); + OPENSSL_INIT_LOAD_CRYPTO_STRINGS = TIdC_Long($00000002); + OPENSSL_INIT_ADD_ALL_CIPHERS = TIdC_Long($00000004); + OPENSSL_INIT_ADD_ALL_DIGESTS = TIdC_Long($00000008); + OPENSSL_INIT_NO_ADD_ALL_CIPHERS = TIdC_Long($00000010); + OPENSSL_INIT_NO_ADD_ALL_DIGESTS = TIdC_Long($00000020); + OPENSSL_INIT_LOAD_CONFIG = TIdC_Long($00000040); + OPENSSL_INIT_NO_LOAD_CONFIG = TIdC_Long($00000080); + OPENSSL_INIT_ASYNC = TIdC_Long($00000100); + OPENSSL_INIT_ENGINE_RDRAND = TIdC_Long($00000200); + OPENSSL_INIT_ENGINE_DYNAMIC = TIdC_Long($00000400); + OPENSSL_INIT_ENGINE_OPENSSL = TIdC_Long($00000800); + OPENSSL_INIT_ENGINE_CRYPTODEV = TIdC_Long($00001000); + OPENSSL_INIT_ENGINE_CAPI = TIdC_Long($00002000); + OPENSSL_INIT_ENGINE_PADLOCK = TIdC_Long($00004000); + OPENSSL_INIT_ENGINE_AFALG = TIdC_Long($00008000); + (* OPENSSL_INIT_ZLIB = TIdC_Long($00010000); *) + OPENSSL_INIT_ATFORK = TIdC_Long(00020000); + (* OPENSSL_INIT_BASE_ONLY = TIdC_Long(00040000); *) + OPENSSL_INIT_NO_ATEXIT = TIdC_Long(00080000); + (* OPENSSL_INIT flag range 0xfff00000 reserved for OPENSSL_init_ssl() *) + (* Max OPENSSL_INIT flag value is 0x80000000 *) + + (* openssl and dasync not counted as builtin *) + OPENSSL_INIT_ENGINE_ALL_BUILTIN = OPENSSL_INIT_ENGINE_RDRAND + or OPENSSL_INIT_ENGINE_DYNAMIC or OPENSSL_INIT_ENGINE_CRYPTODEV + or OPENSSL_INIT_ENGINE_CAPI or OPENSSL_INIT_ENGINE_PADLOCK; + + CRYPTO_ONCE_STATIC_INIT = 0; + +type + CRYPTO_THREADID = record {1.0.x only} + ptr : Pointer; + val : TIdC_ULONG; + end; + PCRYPTO_THREADID = ^CRYPTO_THREADID; + CRYPTO_RWLOCK = type Pointer; + PCRYPTO_RWLOCK = ^CRYPTO_RWLOCK; + //crypto_ex_data_st = record + // sk: PStackOfVoid; + //end; + //DEFINE_STACK_OF(void) + + Tthreadid_func = procedure (id : PCRYPTO_THREADID) cdecl; + + + // CRYPTO_EX_new = procedure(parent: Pointer; ptr: Pointer; CRYPTO_EX_DATA *ad; idx: TIdC_INT; argl: TIdC_LONG; argp: Pointer); + // CRYPTO_EX_free = procedure(void *parent, void *ptr, CRYPTO_EX_DATA *ad, + // int idx, long argl, void *argp); + //typedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from, + // void *from_d, int idx, long argl, void *argp); + //__owur int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp, + // CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, + // CRYPTO_EX_free *free_func); + + CRYPTO_mem_leaks_cb_cb = function(const str: PIdAnsiChar; len: TIdC_SIZET; u: Pointer): TIdC_INT; cdecl; + CRYPTO_THREAD_run_once_init = procedure; cdecl; + + CRYPTO_THREAD_LOCAL = type DWORD; + PCRYPTO_THREAD_LOCAL = ^CRYPTO_THREAD_LOCAL; + CRYPTO_THREAD_ID = type DWORD; + CRYPTO_ONCE = type TIdC_LONG; + PCRYPTO_ONCE = ^CRYPTO_ONCE; + + CRYPTO_set_mem_functions_m = function(size: TIdC_SIZET; const filename: PIdAnsiChar; linenumber: TIdC_INT): Pointer; cdecl; + CRYPTO_set_mem_functions_r = function(buffer: Pointer; size: TIdC_SIZET; const filename: PIdAnsiChar; linenumber: TIdC_INT): Pointer; cdecl; + CRYPTO_set_mem_functions_f = procedure(buffer: Pointer; const filename: PIdAnsiChar; const linenumber: TIdC_INT); cdecl; + TIdSslIdCallback = function: TIdC_ULONG; cdecl; + TIdSslLockingCallback = procedure (mode, n : TIdC_INT; Afile : PIdAnsiChar; line : TIdC_INT); cdecl; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM CRYPTO_THREAD_lock_new} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_THREAD_read_lock} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_THREAD_write_lock} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_THREAD_unlock} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_THREAD_lock_free} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_atomic_add} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_strlcpy} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_strlcat} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_strnlen} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_buf2hexstr} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_hexstr2buf} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_hexchar2int} {introduced 1.1.0} + {$EXTERNALSYM OpenSSL_version_num} {introduced 1.1.0} + {$EXTERNALSYM OpenSSL_version} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_issetugid} + {$EXTERNALSYM CRYPTO_new_ex_data} + {$EXTERNALSYM CRYPTO_dup_ex_data} + {$EXTERNALSYM CRYPTO_free_ex_data} + {$EXTERNALSYM CRYPTO_set_ex_data} + {$EXTERNALSYM CRYPTO_get_ex_data} + {$EXTERNALSYM CRYPTO_set_mem_functions} + {$EXTERNALSYM CRYPTO_malloc} + {$EXTERNALSYM CRYPTO_zalloc} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_memdup} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_strdup} + {$EXTERNALSYM CRYPTO_strndup} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_free} + {$EXTERNALSYM CRYPTO_clear_free} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_realloc} + {$EXTERNALSYM CRYPTO_clear_realloc} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_secure_malloc_init} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_secure_malloc_done} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_secure_malloc} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_secure_zalloc} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_secure_free} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_secure_clear_free} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_secure_allocated} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_secure_malloc_initialized} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_secure_actual_size} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_secure_used} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_cleanse} + {$EXTERNALSYM OPENSSL_isservice} + {$EXTERNALSYM OPENSSL_init} + {$EXTERNALSYM CRYPTO_memcmp} + {$EXTERNALSYM OPENSSL_cleanup} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_init_crypto} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_thread_stop} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_INIT_new} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_INIT_free} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_THREAD_run_once} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_THREAD_get_local} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_THREAD_set_local} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_THREAD_cleanup_local} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_THREAD_get_current_id} {introduced 1.1.0} + {$EXTERNALSYM CRYPTO_THREAD_compare_id} {introduced 1.1.0} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + {$EXTERNALSYM OPENSSL_malloc} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_zalloc} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_realloc} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_clear_realloc} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_clear_free} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_free} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_memdup} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_strdup} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_strndup} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_secure_malloc} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_secure_zalloc} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_secure_free} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_secure_clear_free} {removed 1.0.0} + {$EXTERNALSYM OPENSSL_secure_actual_size} {removed 1.0.0} + {$EXTERNALSYM CRYPTO_mem_ctrl} {removed 3.0.0} + {$EXTERNALSYM CRYPTO_num_locks} {removed 1.1.0} + {$EXTERNALSYM CRYPTO_set_locking_callback} {removed 1.1.0} + {$EXTERNALSYM CRYPTO_THREADID_set_numeric} {removed 1.1.0} + {$EXTERNALSYM CRYPTO_THREADID_set_callback} {removed 1.1.0} + {$EXTERNALSYM CRYPTO_set_id_callback} {removed 1.1.0} + {$EXTERNALSYM CRYPTO_set_mem_debug} {introduced 1.1.0 removed 3.0.0} + {$EXTERNALSYM FIPS_mode} {removed 3.0.0} + {$EXTERNALSYM FIPS_mode_set} {removed 3.0.0} + {$EXTERNALSYM SSLeay_version} {removed 1.1.0} + {$EXTERNALSYM SSLeay} {removed 1.1.0} + OPENSSL_malloc: function(num: TIdC_SIZET): Pointer; cdecl = nil; {removed 1.0.0} + OPENSSL_zalloc: function(num: TIdC_SIZET): Pointer; cdecl = nil; {removed 1.0.0} + OPENSSL_realloc: function(addr: Pointer; num: TIdC_SIZET): Pointer; cdecl = nil; {removed 1.0.0} + OPENSSL_clear_realloc: function(addr: Pointer; old_num: TIdC_SIZET; num: TIdC_SIZET): Pointer; cdecl = nil; {removed 1.0.0} + OPENSSL_clear_free: procedure(addr: Pointer; num: TIdC_SIZET); cdecl = nil; {removed 1.0.0} + OPENSSL_free: procedure(addr: Pointer); cdecl = nil; {removed 1.0.0} + OPENSSL_memdup: function(const str: Pointer; s: TIdC_SIZET): Pointer; cdecl = nil; {removed 1.0.0} + OPENSSL_strdup: function(const str: PIdAnsiChar): PIdAnsiChar; cdecl = nil; {removed 1.0.0} + OPENSSL_strndup: function(const str: PIdAnsiChar; n: TIdC_SIZET): PIdAnsiChar; cdecl = nil; {removed 1.0.0} + OPENSSL_secure_malloc: function(num: TIdC_SIZET): Pointer; cdecl = nil; {removed 1.0.0} + OPENSSL_secure_zalloc: function(num: TIdC_SIZET): Pointer; cdecl = nil; {removed 1.0.0} + OPENSSL_secure_free: procedure(addr: Pointer); cdecl = nil; {removed 1.0.0} + OPENSSL_secure_clear_free: procedure(addr: Pointer; num: TIdC_SIZET); cdecl = nil; {removed 1.0.0} + OPENSSL_secure_actual_size: function(ptr: Pointer): TIdC_SIZET; cdecl = nil; {removed 1.0.0} + + CRYPTO_THREAD_lock_new: function: PCRYPTO_RWLOCK; cdecl = nil; {introduced 1.1.0} + CRYPTO_THREAD_read_lock: function(lock: PCRYPTO_RWLOCK): TIdC_INT; cdecl = nil; {introduced 1.1.0} + CRYPTO_THREAD_write_lock: function(lock: PCRYPTO_RWLOCK): TIdC_INT; cdecl = nil; {introduced 1.1.0} + CRYPTO_THREAD_unlock: function(lock: PCRYPTO_RWLOCK): TIdC_INT; cdecl = nil; {introduced 1.1.0} + CRYPTO_THREAD_lock_free: procedure(lock: PCRYPTO_RWLOCK); cdecl = nil; {introduced 1.1.0} + + CRYPTO_atomic_add: function(val: PIdC_INT; amount: TIdC_INT; ret: PIdC_INT; lock: PCRYPTO_RWLOCK): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + CRYPTO_mem_ctrl: function(mode: TIdC_INT): TIdC_INT; cdecl = nil; {removed 3.0.0} + + OPENSSL_strlcpy: function(dst: PIdAnsiChar; const src: PIdAnsiChar; siz: TIdC_SIZET): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + OPENSSL_strlcat: function(dst: PIdAnsiChar; const src: PIdAnsiChar; siz: TIdC_SIZET): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + OPENSSL_strnlen: function(const str: PIdAnsiChar; maxlen: TIdC_SIZET): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + OPENSSL_buf2hexstr: function(const buffer: PByte; len: TIdC_LONG): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + OPENSSL_hexstr2buf: function(const str: PIdAnsiChar; len: PIdC_LONG): PByte; cdecl = nil; {introduced 1.1.0} + OPENSSL_hexchar2int: function(c: Byte): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + // # define OPENSSL_MALLOC_MAX_NELEMS(type) (((1U<<(sizeof(int)*8-1))-1)/sizeof(type)) + + OpenSSL_version_num: function: TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + OpenSSL_version: function(type_: TIdC_INT): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + + OPENSSL_issetugid: function: TIdC_INT; cdecl = nil; + + (* No longer use an index. *) + //function CRYPTO_free_ex_index(class_index: TIdC_INT; idx: TIdC_INT): TIdC_INT; + + (* + * Initialise/duplicate/free CRYPTO_EX_DATA variables corresponding to a + * given class (invokes whatever per-class callbacks are applicable) + *) + CRYPTO_new_ex_data: function(class_index: TIdC_INT; obj: Pointer; ad: PCRYPTO_EX_DATA): TIdC_INT; cdecl = nil; + CRYPTO_dup_ex_data: function(class_index: TIdC_INT; to_: PCRYPTO_EX_DATA; const from: PCRYPTO_EX_DATA): TIdC_INT; cdecl = nil; + + CRYPTO_free_ex_data: procedure(class_index: TIdC_INT; obj: Pointer; ad: PCRYPTO_EX_DATA); cdecl = nil; + + (* + * Get/set data in a CRYPTO_EX_DATA variable corresponding to a particular + * index (relative to the class type involved) + *) + CRYPTO_set_ex_data: function(ad: PCRYPTO_EX_DATA; idx: TIdC_INT; val: Pointer): TIdC_INT; cdecl = nil; + CRYPTO_get_ex_data: function(const ad: PCRYPTO_EX_DATA; idx: TIdC_INT): Pointer; cdecl = nil; + + ///* + // * The old locking functions have been removed completely without compatibility + // * macros. This is because the old functions either could not properly report + // * errors, or the returned error values were not clearly documented. + // * Replacing the locking functions with no-ops would cause race condition + // * issues in the affected applications. It is far better for them to fail at + // * compile time. + // * On the other hand, the locking callbacks are no longer used. Consequently, + // * the callback management functions can be safely replaced with no-op macros. + // */ + //# define CRYPTO_num_locks() (1) + CRYPTO_num_locks: function: TIdC_INT; cdecl = nil; {removed 1.1.0} + //# define CRYPTO_set_locking_callback(func) + //# define CRYPTO_get_locking_callback() (NULL) + //# define CRYPTO_set_add_lock_callback(func) + //# define CRYPTO_get_add_lock_callback() (NULL) + CRYPTO_set_locking_callback: procedure(func: TIdSslLockingCallback); cdecl = nil; {removed 1.1.0} + + ///* Only use CRYPTO_THREADID_set_[numeric|pointer]() within callbacks */ + //# define CRYPTO_THREADID_set_numeric(id, val) + CRYPTO_THREADID_set_numeric: procedure(id : PCRYPTO_THREADID; val: TIdC_ULONG); cdecl = nil; {removed 1.1.0} + //# define CRYPTO_THREADID_set_pointer(id, ptr) + //# define CRYPTO_THREADID_set_callback(threadid_func) (0) + CRYPTO_THREADID_set_callback: procedure(threadid_func: Tthreadid_func); cdecl = nil; {removed 1.1.0} + //# define CRYPTO_THREADID_get_callback() (NULL) + //# define CRYPTO_THREADID_current(id) + //# define CRYPTO_THREADID_cmp(a, b) (-1) + //# define CRYPTO_THREADID_cpy(dest, src) + //# define CRYPTO_THREADID_hash(id) (0UL) + + CRYPTO_set_id_callback: procedure(func: TIdSslIdCallback); cdecl = nil; {removed 1.1.0} + // + //# define CRYPTO_set_dynlock_create_callback(dyn_create_function) + //# define CRYPTO_set_dynlock_lock_callback(dyn_lock_function) + //# define CRYPTO_set_dynlock_destroy_callback(dyn_destroy_function) + //# define CRYPTO_get_dynlock_create_callback() (NULL) + //# define CRYPTO_get_dynlock_lock_callback() (NULL) + //# define CRYPTO_get_dynlock_destroy_callback() (NULL) + //# endif /* OPENSSL_API_COMPAT < 0x10100000L */ + + CRYPTO_set_mem_functions: function(m: CRYPTO_set_mem_functions_m; r: CRYPTO_set_mem_functions_r; f: CRYPTO_set_mem_functions_f): TIdC_INT; cdecl = nil; + CRYPTO_set_mem_debug: function(flag: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + //void CRYPTO_get_mem_functions( + // void *(**m) (TIdC_SIZET, const char *, int), + // void *(**r) (void *, TIdC_SIZET, const char *, int), + // void (**f) (void *, const char *, int)); + + CRYPTO_malloc: function(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; cdecl = nil; + CRYPTO_zalloc: function(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; cdecl = nil; {introduced 1.1.0} + CRYPTO_memdup: function(const str: Pointer; siz: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; cdecl = nil; {introduced 1.1.0} + CRYPTO_strdup: function(const str: PIdAnsiChar; const file_: PIdAnsiChar; line: TIdC_INT): PIdAnsiChar; cdecl = nil; + CRYPTO_strndup: function(const str: PIdAnsiChar; s: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + CRYPTO_free: procedure(ptr: Pointer; const file_: PIdAnsiChar; line: TIdC_INT); cdecl = nil; + CRYPTO_clear_free: procedure(ptr: Pointer; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT); cdecl = nil; {introduced 1.1.0} + CRYPTO_realloc: function(addr: Pointer; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; cdecl = nil; + CRYPTO_clear_realloc: function(addr: Pointer; old_num: TIdC_SIZET; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; cdecl = nil; {introduced 1.1.0} + + CRYPTO_secure_malloc_init: function(sz: TIdC_SIZET; minsize: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + CRYPTO_secure_malloc_done: function: TIdC_INT; cdecl = nil; {introduced 1.1.0} + CRYPTO_secure_malloc: function(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; cdecl = nil; {introduced 1.1.0} + CRYPTO_secure_zalloc: function(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; cdecl = nil; {introduced 1.1.0} + CRYPTO_secure_free: procedure(ptr: Pointer; const file_: PIdAnsiChar; line: TIdC_INT); cdecl = nil; {introduced 1.1.0} + CRYPTO_secure_clear_free: procedure(ptr: Pointer; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT); cdecl = nil; {introduced 1.1.0} + CRYPTO_secure_allocated: function(const ptr: Pointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + CRYPTO_secure_malloc_initialized: function: TIdC_INT; cdecl = nil; {introduced 1.1.0} + CRYPTO_secure_actual_size: function(ptr: Pointer): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + CRYPTO_secure_used: function: TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + + OPENSSL_cleanse: procedure(ptr: Pointer; len: TIdC_SIZET); cdecl = nil; + + (* debug libraries only *) +// function CRYPTO_mem_debug_push(const info: PIdAnsiChar; const file_: PIdAnsiChar; line: TIdC_INT): TIdC_INT; +// function CRYPTO_mem_debug_pop: TIdC_INT; +// procedure CRYPTO_get_alloc_counts(mcount: PIdC_INT; rcount: PIdC_INT; fcount: PIdC_INT); + + (* + * Debugging functions (enabled by CRYPTO_set_mem_debug(1)) + * The flag argument has the following significance: + * 0: called before the actual memory allocation has taken place + * 1: called after the actual memory allocation has taken place + *) + +// procedure CRYPTO_mem_debug_malloc(addr: Pointer; num: TIdC_SIZET; flag: TIdC_INT; const file_: PIdAnsiChar; line: TIdC_INT); +// procedure CRYPTO_mem_debug_realloc(addr1: Pointer; addr2: Pointer; num: TIdC_SIZET; flag: TIdC_INT; const file_: PIdAnsiChar; line: TIdC_INT); +// procedure CRYPTO_mem_debug_free(addr: Pointer; flag: TIdC_INT; const file_: PIdAnsiChar; line: TIdC_INT); + +// function CRYPTO_mem_leaks_cb(cb: CRYPTO_mem_leaks_cb_cb; u: Pointer): TIdC_INT; + +// function CRYPTO_mem_leaks_fp(&FILE: Pointer): TIdC_INT; +// function CRYPTO_mem_leaks(BIO: PBIO): TIdC_INT; + + //* die if we have to */ + //ossl_noreturn void OPENSSL_die(const char *assertion, const char *file, int line); + + //# define OPENSSL_assert(e) \ + // (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1)) + + OPENSSL_isservice: function: TIdC_INT; cdecl = nil; + + FIPS_mode: function: TIdC_INT; cdecl = nil; {removed 3.0.0} + FIPS_mode_set: function(r: TIdC_INT): TIdC_INT; cdecl = nil; {removed 3.0.0} + + OPENSSL_init: procedure; cdecl = nil; + + // struct tm *OPENSSL_gmtime(const TIdC_TIMET *timer, struct tm *result); + + //function OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec): TIdC_INT; + //function OPENSSL_gmtime_diff(int *pday, int *psec, const struct tm *from, const struct tm *to): TIdC_INT; + + (* + * CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. + * It takes an amount of time dependent on |len|, but independent of the + * contents of |a| and |b|. Unlike memcmp, it cannot be used to put elements + * into a defined order as the return value when a != b is undefined, other + * than to be non-zero. + *) + CRYPTO_memcmp: function(const in_a: Pointer; const in_b: Pointer; len: TIdC_SIZET): TIdC_INT; cdecl = nil; + + (* Library initialisation functions *) + OPENSSL_cleanup: procedure; cdecl = nil; {introduced 1.1.0} + OPENSSL_init_crypto: function(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT; cdecl = nil; {introduced 1.1.0} + // int OPENSSL_atexit(void (*handler)(void)); + OPENSSL_thread_stop: procedure; cdecl = nil; {introduced 1.1.0} + + (* Low-level control of initialization *) + OPENSSL_INIT_new: function: POPENSSL_INIT_SETTINGS; cdecl = nil; {introduced 1.1.0} + //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, + // const char *config_appname); + OPENSSL_INIT_free: procedure(settings: POPENSSL_INIT_SETTINGS); cdecl = nil; {introduced 1.1.0} + + CRYPTO_THREAD_run_once: function(once: PCRYPTO_ONCE; init: CRYPTO_THREAD_run_once_init): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + //type + // CRYPTO_THREAD_init_local_cleanup = procedure(v1: Pointer); + // + //function CRYPTO_THREAD_init_local(key: PCRYPTO_THREAD_LOCAL; cleanup: CRYPTO_THREAD_init_local_cleanup): TIdC_INT; + CRYPTO_THREAD_get_local: function(key: PCRYPTO_THREAD_LOCAL): Pointer; cdecl = nil; {introduced 1.1.0} + CRYPTO_THREAD_set_local: function(key: PCRYPTO_THREAD_LOCAL; val: Pointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + CRYPTO_THREAD_cleanup_local: function(key: PCRYPTO_THREAD_LOCAL): TidC_INT; cdecl = nil; {introduced 1.1.0} + + CRYPTO_THREAD_get_current_id: function: CRYPTO_THREAD_ID; cdecl = nil; {introduced 1.1.0} + CRYPTO_THREAD_compare_id: function(a: CRYPTO_THREAD_ID; b: CRYPTO_THREAD_ID): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSLeay_version: function(type_ : TIdC_INT) : PIdAnsiChar; cdecl = nil; {removed 1.1.0} + SSLeay: function: TIdC_ULONG; cdecl = nil; {removed 1.1.0} + +{$ELSE} + + function CRYPTO_THREAD_lock_new: PCRYPTO_RWLOCK cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_THREAD_read_lock(lock: PCRYPTO_RWLOCK): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_THREAD_write_lock(lock: PCRYPTO_RWLOCK): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_THREAD_unlock(lock: PCRYPTO_RWLOCK): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure CRYPTO_THREAD_lock_free(lock: PCRYPTO_RWLOCK) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function CRYPTO_atomic_add(val: PIdC_INT; amount: TIdC_INT; ret: PIdC_INT; lock: PCRYPTO_RWLOCK): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + + function OPENSSL_strlcpy(dst: PIdAnsiChar; const src: PIdAnsiChar; siz: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_strlcat(dst: PIdAnsiChar; const src: PIdAnsiChar; siz: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_strnlen(const str: PIdAnsiChar; maxlen: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_buf2hexstr(const buffer: PByte; len: TIdC_LONG): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_hexstr2buf(const str: PIdAnsiChar; len: PIdC_LONG): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_hexchar2int(c: Byte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + // # define OPENSSL_MALLOC_MAX_NELEMS(type) (((1U<<(sizeof(int)*8-1))-1)/sizeof(type)) + + function OpenSSL_version_num: TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OpenSSL_version(type_: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function OPENSSL_issetugid: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* No longer use an index. *) + //function CRYPTO_free_ex_index(class_index: TIdC_INT; idx: TIdC_INT): TIdC_INT; + + (* + * Initialise/duplicate/free CRYPTO_EX_DATA variables corresponding to a + * given class (invokes whatever per-class callbacks are applicable) + *) + function CRYPTO_new_ex_data(class_index: TIdC_INT; obj: Pointer; ad: PCRYPTO_EX_DATA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CRYPTO_dup_ex_data(class_index: TIdC_INT; to_: PCRYPTO_EX_DATA; const from: PCRYPTO_EX_DATA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure CRYPTO_free_ex_data(class_index: TIdC_INT; obj: Pointer; ad: PCRYPTO_EX_DATA) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Get/set data in a CRYPTO_EX_DATA variable corresponding to a particular + * index (relative to the class type involved) + *) + function CRYPTO_set_ex_data(ad: PCRYPTO_EX_DATA; idx: TIdC_INT; val: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CRYPTO_get_ex_data(const ad: PCRYPTO_EX_DATA; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + ///* + // * The old locking functions have been removed completely without compatibility + // * macros. This is because the old functions either could not properly report + // * errors, or the returned error values were not clearly documented. + // * Replacing the locking functions with no-ops would cause race condition + // * issues in the affected applications. It is far better for them to fail at + // * compile time. + // * On the other hand, the locking callbacks are no longer used. Consequently, + // * the callback management functions can be safely replaced with no-op macros. + // */ + //# define CRYPTO_num_locks() (1) + //# define CRYPTO_set_locking_callback(func) + //# define CRYPTO_get_locking_callback() (NULL) + //# define CRYPTO_set_add_lock_callback(func) + //# define CRYPTO_get_add_lock_callback() (NULL) + + ///* Only use CRYPTO_THREADID_set_[numeric|pointer]() within callbacks */ + //# define CRYPTO_THREADID_set_numeric(id, val) + //# define CRYPTO_THREADID_set_pointer(id, ptr) + //# define CRYPTO_THREADID_set_callback(threadid_func) (0) + //# define CRYPTO_THREADID_get_callback() (NULL) + //# define CRYPTO_THREADID_current(id) + //# define CRYPTO_THREADID_cmp(a, b) (-1) + //# define CRYPTO_THREADID_cpy(dest, src) + //# define CRYPTO_THREADID_hash(id) (0UL) + + // + //# define CRYPTO_set_dynlock_create_callback(dyn_create_function) + //# define CRYPTO_set_dynlock_lock_callback(dyn_lock_function) + //# define CRYPTO_set_dynlock_destroy_callback(dyn_destroy_function) + //# define CRYPTO_get_dynlock_create_callback() (NULL) + //# define CRYPTO_get_dynlock_lock_callback() (NULL) + //# define CRYPTO_get_dynlock_destroy_callback() (NULL) + //# endif /* OPENSSL_API_COMPAT < 0x10100000L */ + + function CRYPTO_set_mem_functions(m: CRYPTO_set_mem_functions_m; r: CRYPTO_set_mem_functions_r; f: CRYPTO_set_mem_functions_f): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //void CRYPTO_get_mem_functions( + // void *(**m) (TIdC_SIZET, const char *, int), + // void *(**r) (void *, TIdC_SIZET, const char *, int), + // void (**f) (void *, const char *, int)); + + function CRYPTO_malloc(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CRYPTO_zalloc(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_memdup(const str: Pointer; siz: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_strdup(const str: PIdAnsiChar; const file_: PIdAnsiChar; line: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CRYPTO_strndup(const str: PIdAnsiChar; s: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure CRYPTO_free(ptr: Pointer; const file_: PIdAnsiChar; line: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure CRYPTO_clear_free(ptr: Pointer; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_realloc(addr: Pointer; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function CRYPTO_clear_realloc(addr: Pointer; old_num: TIdC_SIZET; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function CRYPTO_secure_malloc_init(sz: TIdC_SIZET; minsize: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_secure_malloc_done: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_secure_malloc(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_secure_zalloc(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure CRYPTO_secure_free(ptr: Pointer; const file_: PIdAnsiChar; line: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure CRYPTO_secure_clear_free(ptr: Pointer; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_secure_allocated(const ptr: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_secure_malloc_initialized: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_secure_actual_size(ptr: Pointer): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_secure_used: TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure OPENSSL_cleanse(ptr: Pointer; len: TIdC_SIZET) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* debug libraries only *) +// function CRYPTO_mem_debug_push(const info: PIdAnsiChar; const file_: PIdAnsiChar; line: TIdC_INT): TIdC_INT; +// function CRYPTO_mem_debug_pop: TIdC_INT; +// procedure CRYPTO_get_alloc_counts(mcount: PIdC_INT; rcount: PIdC_INT; fcount: PIdC_INT); + + (* + * Debugging functions (enabled by CRYPTO_set_mem_debug(1)) + * The flag argument has the following significance: + * 0: called before the actual memory allocation has taken place + * 1: called after the actual memory allocation has taken place + *) + +// procedure CRYPTO_mem_debug_malloc(addr: Pointer; num: TIdC_SIZET; flag: TIdC_INT; const file_: PIdAnsiChar; line: TIdC_INT); +// procedure CRYPTO_mem_debug_realloc(addr1: Pointer; addr2: Pointer; num: TIdC_SIZET; flag: TIdC_INT; const file_: PIdAnsiChar; line: TIdC_INT); +// procedure CRYPTO_mem_debug_free(addr: Pointer; flag: TIdC_INT; const file_: PIdAnsiChar; line: TIdC_INT); + +// function CRYPTO_mem_leaks_cb(cb: CRYPTO_mem_leaks_cb_cb; u: Pointer): TIdC_INT; + +// function CRYPTO_mem_leaks_fp(&FILE: Pointer): TIdC_INT; +// function CRYPTO_mem_leaks(BIO: PBIO): TIdC_INT; + + //* die if we have to */ + //ossl_noreturn void OPENSSL_die(const char *assertion, const char *file, int line); + + //# define OPENSSL_assert(e) \ + // (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1)) + + function OPENSSL_isservice: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + + procedure OPENSSL_init cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // struct tm *OPENSSL_gmtime(const TIdC_TIMET *timer, struct tm *result); + + //function OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec): TIdC_INT; + //function OPENSSL_gmtime_diff(int *pday, int *psec, const struct tm *from, const struct tm *to): TIdC_INT; + + (* + * CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. + * It takes an amount of time dependent on |len|, but independent of the + * contents of |a| and |b|. Unlike memcmp, it cannot be used to put elements + * into a defined order as the return value when a != b is undefined, other + * than to be non-zero. + *) + function CRYPTO_memcmp(const in_a: Pointer; const in_b: Pointer; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Library initialisation functions *) + procedure OPENSSL_cleanup cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_init_crypto(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + // int OPENSSL_atexit(void (*handler)(void)); + procedure OPENSSL_thread_stop cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + (* Low-level control of initialization *) + function OPENSSL_INIT_new: POPENSSL_INIT_SETTINGS cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + //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, + // const char *config_appname); + procedure OPENSSL_INIT_free(settings: POPENSSL_INIT_SETTINGS) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function CRYPTO_THREAD_run_once(once: PCRYPTO_ONCE; init: CRYPTO_THREAD_run_once_init): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + //type + // CRYPTO_THREAD_init_local_cleanup = procedure(v1: Pointer); + // + //function CRYPTO_THREAD_init_local(key: PCRYPTO_THREAD_LOCAL; cleanup: CRYPTO_THREAD_init_local_cleanup): TIdC_INT; + function CRYPTO_THREAD_get_local(key: PCRYPTO_THREAD_LOCAL): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_THREAD_set_local(key: PCRYPTO_THREAD_LOCAL; val: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_THREAD_cleanup_local(key: PCRYPTO_THREAD_LOCAL): TidC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function CRYPTO_THREAD_get_current_id: CRYPTO_THREAD_ID cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function CRYPTO_THREAD_compare_id(a: CRYPTO_THREAD_ID; b: CRYPTO_THREAD_ID): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + +function OPENSSL_malloc(num: TIdC_SIZET): Pointer; {removed 1.0.0} +function OPENSSL_zalloc(num: TIdC_SIZET): Pointer; {removed 1.0.0} +function OPENSSL_realloc(addr: Pointer; num: TIdC_SIZET): Pointer; {removed 1.0.0} +function OPENSSL_clear_realloc(addr: Pointer; old_num: TIdC_SIZET; num: TIdC_SIZET): Pointer; {removed 1.0.0} +procedure OPENSSL_clear_free(addr: Pointer; num: TIdC_SIZET); {removed 1.0.0} +procedure OPENSSL_free(addr: Pointer); {removed 1.0.0} +function OPENSSL_memdup(const str: Pointer; s: TIdC_SIZET): Pointer; {removed 1.0.0} +function OPENSSL_strdup(const str: PIdAnsiChar): PIdAnsiChar; {removed 1.0.0} +function OPENSSL_strndup(const str: PIdAnsiChar; n: TIdC_SIZET): PIdAnsiChar; {removed 1.0.0} +function OPENSSL_secure_malloc(num: TIdC_SIZET): Pointer; {removed 1.0.0} +function OPENSSL_secure_zalloc(num: TIdC_SIZET): Pointer; {removed 1.0.0} +procedure OPENSSL_secure_free(addr: Pointer); {removed 1.0.0} +procedure OPENSSL_secure_clear_free(addr: Pointer; num: TIdC_SIZET); {removed 1.0.0} +function OPENSSL_secure_actual_size(ptr: Pointer): TIdC_SIZET; {removed 1.0.0} + function CRYPTO_num_locks: TIdC_INT; {removed 1.1.0} + procedure CRYPTO_set_locking_callback(func: TIdSslLockingCallback); {removed 1.1.0} + procedure CRYPTO_THREADID_set_numeric(id : PCRYPTO_THREADID; val: TIdC_ULONG); {removed 1.1.0} + procedure CRYPTO_THREADID_set_callback(threadid_func: Tthreadid_func); {removed 1.1.0} + procedure CRYPTO_set_id_callback(func: TIdSslIdCallback); {removed 1.1.0} + function SSLeay_version(type_ : TIdC_INT) : PIdAnsiChar; {removed 1.1.0} + function SSLeay: TIdC_ULONG; {removed 1.1.0} +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + CRYPTO_THREAD_lock_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREAD_read_lock_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREAD_write_lock_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREAD_unlock_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREAD_lock_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_atomic_add_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_strlcpy_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_strlcat_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_strnlen_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_buf2hexstr_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_hexstr2buf_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_hexchar2int_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OpenSSL_version_num_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OpenSSL_version_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_set_mem_debug_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_zalloc_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_memdup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_strndup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_clear_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_clear_realloc_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_secure_malloc_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_secure_malloc_done_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_secure_malloc_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_secure_zalloc_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_secure_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_secure_clear_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_secure_allocated_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_secure_malloc_initialized_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_secure_actual_size_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_secure_used_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_cleanup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_init_crypto_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_thread_stop_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_INIT_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_INIT_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREAD_run_once_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREAD_get_local_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREAD_set_local_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREAD_cleanup_local_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREAD_get_current_id_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREAD_compare_id_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_malloc_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_zalloc_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_realloc_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_clear_realloc_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_clear_free_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_free_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_memdup_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_strdup_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_strndup_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_secure_malloc_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_secure_zalloc_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_secure_free_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_secure_clear_free_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + OPENSSL_secure_actual_size_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + CRYPTO_mem_ctrl_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + CRYPTO_num_locks_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_set_locking_callback_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREADID_set_numeric_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_THREADID_set_callback_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_set_id_callback_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + CRYPTO_set_mem_debug_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + FIPS_mode_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + FIPS_mode_set_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + SSLeay_version_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSLeay_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + +// OPENSSL_FILE = __FILE__ = C preprocessor macro +// OPENSSL_LINE = __LINE__ = C preprocessor macro +// FPC hase an equivalent with {$I %FILE%} and {$I %LINENUM%}, see https://www.freepascal.org/docs-html/prog/progsu41.html#x47-460001.1.41 +// Delphi has nothing :( + +//# define OPENSSL_malloc(num) CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE) +{$IFNDEF USE_EXTERNAL_LIBRARY} + +// OPENSSL_FILE = __FILE__ = C preprocessor macro +// OPENSSL_LINE = __LINE__ = C preprocessor macro +// FPC hase an equivalent with {$I %FILE%} and {$I %LINENUM%}, see https://www.freepascal.org/docs-html/prog/progsu41.html#x47-460001.1.41 +// Delphi has nothing :( + +//# define OPENSSL_malloc(num) CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE) +function _OPENSSL_malloc(num: TIdC_SIZET): Pointer; cdecl; +begin + Result := CRYPTO_malloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_zalloc(num) CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE) +function _OPENSSL_zalloc(num: TIdC_SIZET): Pointer; cdecl; +begin + Result := CRYPTO_zalloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_realloc(addr, num) CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE) +function _OPENSSL_realloc(addr: Pointer; num: TIdC_SIZET): Pointer; cdecl; +begin + Result := CRYPTO_realloc(addr, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_clear_realloc(addr, old_num, num) CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE) +function _OPENSSL_clear_realloc(addr: Pointer; old_num: TIdC_SIZET; num: TIdC_SIZET): Pointer; cdecl; +begin + Result := CRYPTO_clear_realloc(addr, old_num, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_clear_free(addr, num) CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE) +procedure _OPENSSL_clear_free(addr: Pointer; num: TIdC_SIZET); cdecl; +begin + CRYPTO_clear_free(addr, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_free(addr) CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE) +procedure _OPENSSL_free(addr: Pointer); cdecl; +begin + CRYPTO_free(addr, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_memdup(str, s) CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE) +function _OPENSSL_memdup(const str: Pointer; s: TIdC_SIZET): Pointer; cdecl; +begin + Result := CRYPTO_memdup(str, s, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_strdup(str) CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE) +function _OPENSSL_strdup(const str: PIdAnsiChar): PIdAnsiChar; cdecl; +begin + Result := CRYPTO_strdup(str, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_strndup(str, n) CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE) +function _OPENSSL_strndup(const str: PIdAnsiChar; n: TIdC_SIZET): PIdAnsiChar; cdecl; +begin + Result := CRYPTO_strndup(str, n, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_malloc(num) CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE) +function _OPENSSL_secure_malloc(num: TIdC_SIZET): Pointer; cdecl; +begin + Result := CRYPTO_secure_malloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_zalloc(num) CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE) +function _OPENSSL_secure_zalloc(num: TIdC_SIZET): Pointer; cdecl; +begin + Result := CRYPTO_secure_zalloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_free(addr) CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE) +procedure _OPENSSL_secure_free(addr: Pointer); cdecl; +begin + CRYPTO_secure_free(addr, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_clear_free(addr, num) CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE) +procedure _OPENSSL_secure_clear_free(addr: Pointer; num: TIdC_SIZET); cdecl; +begin + CRYPTO_secure_clear_free(addr, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_actual_size(ptr) CRYPTO_secure_actual_size(ptr) +function _OPENSSL_secure_actual_size(ptr: Pointer): TIdC_SIZET; cdecl; +begin + Result := CRYPTO_secure_actual_size(ptr); +end; + +function _CRYPTO_num_locks: TIdC_INT; cdecl; +begin + Result := 0; +end; + +procedure _CRYPTO_set_locking_callback; cdecl; +begin +end; + +procedure _CRYPTO_set_id_callback(func: TIdSslIdCallback); cdecl; +begin +end; + +function _SSLeay_version(type_ : TIdC_INT) : PIdAnsiChar; cdecl; +begin + Result := OpenSSL_version(type_); +end; + +function _SSLeay: TIdC_ULONG; cdecl; +begin + Result := OpenSSL_version_num(); +end; + +procedure _CRYPTO_THREADID_set_numeric(id : PCRYPTO_THREADID; val: TIdC_ULONG); cdecl; +begin +end; + +procedure _CRYPTO_THREADID_set_callback(threadid_func: Tthreadid_func); cdecl; +begin +end; + + +{forward_compatibility} + +function FC_OPENSSL_init_crypto(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT; cdecl; +begin + Result := 0; + if opts and OPENSSL_INIT_ADD_ALL_CIPHERS <> 0 then + OpenSSL_add_all_ciphers; + if opts and OPENSSL_INIT_ADD_ALL_DIGESTS <> 0 then + OpenSSL_add_all_digests; + Result := 1; +end; + +procedure FC_OPENSSL_cleanup; cdecl; +begin + {nothing to do} +end; + +{/forward_compatibility} +{$WARN NO_RETVAL OFF} +function ERR_OPENSSL_malloc(num: TIdC_SIZET): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_malloc'); +end; + + +function ERR_OPENSSL_zalloc(num: TIdC_SIZET): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_zalloc'); +end; + + +function ERR_OPENSSL_realloc(addr: Pointer; num: TIdC_SIZET): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_realloc'); +end; + + +function ERR_OPENSSL_clear_realloc(addr: Pointer; old_num: TIdC_SIZET; num: TIdC_SIZET): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_clear_realloc'); +end; + + +procedure ERR_OPENSSL_clear_free(addr: Pointer; num: TIdC_SIZET); +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_clear_free'); +end; + + +procedure ERR_OPENSSL_free(addr: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_free'); +end; + + +function ERR_OPENSSL_memdup(const str: Pointer; s: TIdC_SIZET): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_memdup'); +end; + + +function ERR_OPENSSL_strdup(const str: PIdAnsiChar): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_strdup'); +end; + + +function ERR_OPENSSL_strndup(const str: PIdAnsiChar; n: TIdC_SIZET): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_strndup'); +end; + + +function ERR_OPENSSL_secure_malloc(num: TIdC_SIZET): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_secure_malloc'); +end; + + +function ERR_OPENSSL_secure_zalloc(num: TIdC_SIZET): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_secure_zalloc'); +end; + + +procedure ERR_OPENSSL_secure_free(addr: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_secure_free'); +end; + + +procedure ERR_OPENSSL_secure_clear_free(addr: Pointer; num: TIdC_SIZET); +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_secure_clear_free'); +end; + + +function ERR_OPENSSL_secure_actual_size(ptr: Pointer): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_secure_actual_size'); +end; + + +function ERR_CRYPTO_THREAD_lock_new: PCRYPTO_RWLOCK; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREAD_lock_new'); +end; + + +function ERR_CRYPTO_THREAD_read_lock(lock: PCRYPTO_RWLOCK): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREAD_read_lock'); +end; + + +function ERR_CRYPTO_THREAD_write_lock(lock: PCRYPTO_RWLOCK): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREAD_write_lock'); +end; + + +function ERR_CRYPTO_THREAD_unlock(lock: PCRYPTO_RWLOCK): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREAD_unlock'); +end; + + +procedure ERR_CRYPTO_THREAD_lock_free(lock: PCRYPTO_RWLOCK); +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREAD_lock_free'); +end; + + +function ERR_CRYPTO_atomic_add(val: PIdC_INT; amount: TIdC_INT; ret: PIdC_INT; lock: PCRYPTO_RWLOCK): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_atomic_add'); +end; + + +function ERR_CRYPTO_mem_ctrl(mode: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_mem_ctrl'); +end; + + +function ERR_OPENSSL_strlcpy(dst: PIdAnsiChar; const src: PIdAnsiChar; siz: TIdC_SIZET): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_strlcpy'); +end; + + +function ERR_OPENSSL_strlcat(dst: PIdAnsiChar; const src: PIdAnsiChar; siz: TIdC_SIZET): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_strlcat'); +end; + + +function ERR_OPENSSL_strnlen(const str: PIdAnsiChar; maxlen: TIdC_SIZET): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_strnlen'); +end; + + +function ERR_OPENSSL_buf2hexstr(const buffer: PByte; len: TIdC_LONG): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_buf2hexstr'); +end; + + +function ERR_OPENSSL_hexstr2buf(const str: PIdAnsiChar; len: PIdC_LONG): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_hexstr2buf'); +end; + + +function ERR_OPENSSL_hexchar2int(c: Byte): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_hexchar2int'); +end; + + +function ERR_OpenSSL_version_num: TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('OpenSSL_version_num'); +end; + + +function ERR_OpenSSL_version(type_: TIdC_INT): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('OpenSSL_version'); +end; + + +function ERR_CRYPTO_num_locks: TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_num_locks'); +end; + + +procedure ERR_CRYPTO_set_locking_callback(func: TIdSslLockingCallback); +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_set_locking_callback'); +end; + + +procedure ERR_CRYPTO_THREADID_set_numeric(id : PCRYPTO_THREADID; val: TIdC_ULONG); +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREADID_set_numeric'); +end; + + +procedure ERR_CRYPTO_THREADID_set_callback(threadid_func: Tthreadid_func); +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREADID_set_callback'); +end; + + +procedure ERR_CRYPTO_set_id_callback(func: TIdSslIdCallback); +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_set_id_callback'); +end; + + +function ERR_CRYPTO_set_mem_debug(flag: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_set_mem_debug'); +end; + + +function ERR_CRYPTO_zalloc(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_zalloc'); +end; + + +function ERR_CRYPTO_memdup(const str: Pointer; siz: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_memdup'); +end; + + +function ERR_CRYPTO_strndup(const str: PIdAnsiChar; s: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_strndup'); +end; + + +procedure ERR_CRYPTO_clear_free(ptr: Pointer; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_clear_free'); +end; + + +function ERR_CRYPTO_clear_realloc(addr: Pointer; old_num: TIdC_SIZET; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_clear_realloc'); +end; + + +function ERR_CRYPTO_secure_malloc_init(sz: TIdC_SIZET; minsize: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_secure_malloc_init'); +end; + + +function ERR_CRYPTO_secure_malloc_done: TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_secure_malloc_done'); +end; + + +function ERR_CRYPTO_secure_malloc(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_secure_malloc'); +end; + + +function ERR_CRYPTO_secure_zalloc(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_secure_zalloc'); +end; + + +procedure ERR_CRYPTO_secure_free(ptr: Pointer; const file_: PIdAnsiChar; line: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_secure_free'); +end; + + +procedure ERR_CRYPTO_secure_clear_free(ptr: Pointer; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_secure_clear_free'); +end; + + +function ERR_CRYPTO_secure_allocated(const ptr: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_secure_allocated'); +end; + + +function ERR_CRYPTO_secure_malloc_initialized: TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_secure_malloc_initialized'); +end; + + +function ERR_CRYPTO_secure_actual_size(ptr: Pointer): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_secure_actual_size'); +end; + + +function ERR_CRYPTO_secure_used: TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_secure_used'); +end; + + +function ERR_FIPS_mode: TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('FIPS_mode'); +end; + + +function ERR_FIPS_mode_set(r: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('FIPS_mode_set'); +end; + + +procedure ERR_OPENSSL_cleanup; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_cleanup'); +end; + + +function ERR_OPENSSL_init_crypto(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_init_crypto'); +end; + + +procedure ERR_OPENSSL_thread_stop; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_thread_stop'); +end; + + +function ERR_OPENSSL_INIT_new: POPENSSL_INIT_SETTINGS; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_INIT_new'); +end; + + +procedure ERR_OPENSSL_INIT_free(settings: POPENSSL_INIT_SETTINGS); +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_INIT_free'); +end; + + +function ERR_CRYPTO_THREAD_run_once(once: PCRYPTO_ONCE; init: CRYPTO_THREAD_run_once_init): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREAD_run_once'); +end; + + +function ERR_CRYPTO_THREAD_get_local(key: PCRYPTO_THREAD_LOCAL): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREAD_get_local'); +end; + + +function ERR_CRYPTO_THREAD_set_local(key: PCRYPTO_THREAD_LOCAL; val: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREAD_set_local'); +end; + + +function ERR_CRYPTO_THREAD_cleanup_local(key: PCRYPTO_THREAD_LOCAL): TidC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREAD_cleanup_local'); +end; + + +function ERR_CRYPTO_THREAD_get_current_id: CRYPTO_THREAD_ID; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREAD_get_current_id'); +end; + + +function ERR_CRYPTO_THREAD_compare_id(a: CRYPTO_THREAD_ID; b: CRYPTO_THREAD_ID): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('CRYPTO_THREAD_compare_id'); +end; + + +function ERR_SSLeay_version(type_ : TIdC_INT) : PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('SSLeay_version'); +end; + + +function ERR_SSLeay: TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSLeay'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + OPENSSL_issetugid := LoadFunction('OPENSSL_issetugid',AFailed); + CRYPTO_new_ex_data := LoadFunction('CRYPTO_new_ex_data',AFailed); + CRYPTO_dup_ex_data := LoadFunction('CRYPTO_dup_ex_data',AFailed); + CRYPTO_free_ex_data := LoadFunction('CRYPTO_free_ex_data',AFailed); + CRYPTO_set_ex_data := LoadFunction('CRYPTO_set_ex_data',AFailed); + CRYPTO_get_ex_data := LoadFunction('CRYPTO_get_ex_data',AFailed); + CRYPTO_set_mem_functions := LoadFunction('CRYPTO_set_mem_functions',AFailed); + CRYPTO_malloc := LoadFunction('CRYPTO_malloc',AFailed); + CRYPTO_strdup := LoadFunction('CRYPTO_strdup',AFailed); + CRYPTO_free := LoadFunction('CRYPTO_free',AFailed); + CRYPTO_realloc := LoadFunction('CRYPTO_realloc',AFailed); + OPENSSL_cleanse := LoadFunction('OPENSSL_cleanse',AFailed); + OPENSSL_isservice := LoadFunction('OPENSSL_isservice',AFailed); + OPENSSL_init := LoadFunction('OPENSSL_init',AFailed); + CRYPTO_memcmp := LoadFunction('CRYPTO_memcmp',AFailed); + OPENSSL_malloc := LoadFunction('OPENSSL_malloc',nil); {removed 1.0.0} + OPENSSL_zalloc := LoadFunction('OPENSSL_zalloc',nil); {removed 1.0.0} + OPENSSL_realloc := LoadFunction('OPENSSL_realloc',nil); {removed 1.0.0} + OPENSSL_clear_realloc := LoadFunction('OPENSSL_clear_realloc',nil); {removed 1.0.0} + OPENSSL_clear_free := LoadFunction('OPENSSL_clear_free',nil); {removed 1.0.0} + OPENSSL_free := LoadFunction('OPENSSL_free',nil); {removed 1.0.0} + OPENSSL_memdup := LoadFunction('OPENSSL_memdup',nil); {removed 1.0.0} + OPENSSL_strdup := LoadFunction('OPENSSL_strdup',nil); {removed 1.0.0} + OPENSSL_strndup := LoadFunction('OPENSSL_strndup',nil); {removed 1.0.0} + OPENSSL_secure_malloc := LoadFunction('OPENSSL_secure_malloc',nil); {removed 1.0.0} + OPENSSL_secure_zalloc := LoadFunction('OPENSSL_secure_zalloc',nil); {removed 1.0.0} + OPENSSL_secure_free := LoadFunction('OPENSSL_secure_free',nil); {removed 1.0.0} + OPENSSL_secure_clear_free := LoadFunction('OPENSSL_secure_clear_free',nil); {removed 1.0.0} + OPENSSL_secure_actual_size := LoadFunction('OPENSSL_secure_actual_size',nil); {removed 1.0.0} + CRYPTO_THREAD_lock_new := LoadFunction('CRYPTO_THREAD_lock_new',nil); {introduced 1.1.0} + CRYPTO_THREAD_read_lock := LoadFunction('CRYPTO_THREAD_read_lock',nil); {introduced 1.1.0} + CRYPTO_THREAD_write_lock := LoadFunction('CRYPTO_THREAD_write_lock',nil); {introduced 1.1.0} + CRYPTO_THREAD_unlock := LoadFunction('CRYPTO_THREAD_unlock',nil); {introduced 1.1.0} + CRYPTO_THREAD_lock_free := LoadFunction('CRYPTO_THREAD_lock_free',nil); {introduced 1.1.0} + CRYPTO_atomic_add := LoadFunction('CRYPTO_atomic_add',nil); {introduced 1.1.0} + CRYPTO_mem_ctrl := LoadFunction('CRYPTO_mem_ctrl',nil); {removed 3.0.0} + OPENSSL_strlcpy := LoadFunction('OPENSSL_strlcpy',nil); {introduced 1.1.0} + OPENSSL_strlcat := LoadFunction('OPENSSL_strlcat',nil); {introduced 1.1.0} + OPENSSL_strnlen := LoadFunction('OPENSSL_strnlen',nil); {introduced 1.1.0} + OPENSSL_buf2hexstr := LoadFunction('OPENSSL_buf2hexstr',nil); {introduced 1.1.0} + OPENSSL_hexstr2buf := LoadFunction('OPENSSL_hexstr2buf',nil); {introduced 1.1.0} + OPENSSL_hexchar2int := LoadFunction('OPENSSL_hexchar2int',nil); {introduced 1.1.0} + OpenSSL_version_num := LoadFunction('OpenSSL_version_num',nil); {introduced 1.1.0} + OpenSSL_version := LoadFunction('OpenSSL_version',nil); {introduced 1.1.0} + CRYPTO_num_locks := LoadFunction('CRYPTO_num_locks',nil); {removed 1.1.0} + CRYPTO_set_locking_callback := LoadFunction('CRYPTO_set_locking_callback',nil); {removed 1.1.0} + CRYPTO_THREADID_set_numeric := LoadFunction('CRYPTO_THREADID_set_numeric',nil); {removed 1.1.0} + CRYPTO_THREADID_set_callback := LoadFunction('CRYPTO_THREADID_set_callback',nil); {removed 1.1.0} + CRYPTO_set_id_callback := LoadFunction('CRYPTO_set_id_callback',nil); {removed 1.1.0} + CRYPTO_set_mem_debug := LoadFunction('CRYPTO_set_mem_debug',nil); {introduced 1.1.0 removed 3.0.0} + CRYPTO_zalloc := LoadFunction('CRYPTO_zalloc',nil); {introduced 1.1.0} + CRYPTO_memdup := LoadFunction('CRYPTO_memdup',nil); {introduced 1.1.0} + CRYPTO_strndup := LoadFunction('CRYPTO_strndup',nil); {introduced 1.1.0} + CRYPTO_clear_free := LoadFunction('CRYPTO_clear_free',nil); {introduced 1.1.0} + CRYPTO_clear_realloc := LoadFunction('CRYPTO_clear_realloc',nil); {introduced 1.1.0} + CRYPTO_secure_malloc_init := LoadFunction('CRYPTO_secure_malloc_init',nil); {introduced 1.1.0} + CRYPTO_secure_malloc_done := LoadFunction('CRYPTO_secure_malloc_done',nil); {introduced 1.1.0} + CRYPTO_secure_malloc := LoadFunction('CRYPTO_secure_malloc',nil); {introduced 1.1.0} + CRYPTO_secure_zalloc := LoadFunction('CRYPTO_secure_zalloc',nil); {introduced 1.1.0} + CRYPTO_secure_free := LoadFunction('CRYPTO_secure_free',nil); {introduced 1.1.0} + CRYPTO_secure_clear_free := LoadFunction('CRYPTO_secure_clear_free',nil); {introduced 1.1.0} + CRYPTO_secure_allocated := LoadFunction('CRYPTO_secure_allocated',nil); {introduced 1.1.0} + CRYPTO_secure_malloc_initialized := LoadFunction('CRYPTO_secure_malloc_initialized',nil); {introduced 1.1.0} + CRYPTO_secure_actual_size := LoadFunction('CRYPTO_secure_actual_size',nil); {introduced 1.1.0} + CRYPTO_secure_used := LoadFunction('CRYPTO_secure_used',nil); {introduced 1.1.0} + FIPS_mode := LoadFunction('FIPS_mode',nil); {removed 3.0.0} + FIPS_mode_set := LoadFunction('FIPS_mode_set',nil); {removed 3.0.0} + OPENSSL_cleanup := LoadFunction('OPENSSL_cleanup',nil); {introduced 1.1.0} + OPENSSL_init_crypto := LoadFunction('OPENSSL_init_crypto',nil); {introduced 1.1.0} + OPENSSL_thread_stop := LoadFunction('OPENSSL_thread_stop',nil); {introduced 1.1.0} + OPENSSL_INIT_new := LoadFunction('OPENSSL_INIT_new',nil); {introduced 1.1.0} + OPENSSL_INIT_free := LoadFunction('OPENSSL_INIT_free',nil); {introduced 1.1.0} + CRYPTO_THREAD_run_once := LoadFunction('CRYPTO_THREAD_run_once',nil); {introduced 1.1.0} + CRYPTO_THREAD_get_local := LoadFunction('CRYPTO_THREAD_get_local',nil); {introduced 1.1.0} + CRYPTO_THREAD_set_local := LoadFunction('CRYPTO_THREAD_set_local',nil); {introduced 1.1.0} + CRYPTO_THREAD_cleanup_local := LoadFunction('CRYPTO_THREAD_cleanup_local',nil); {introduced 1.1.0} + CRYPTO_THREAD_get_current_id := LoadFunction('CRYPTO_THREAD_get_current_id',nil); {introduced 1.1.0} + CRYPTO_THREAD_compare_id := LoadFunction('CRYPTO_THREAD_compare_id',nil); {introduced 1.1.0} + SSLeay_version := LoadFunction('SSLeay_version',nil); {removed 1.1.0} + SSLeay := LoadFunction('SSLeay',nil); {removed 1.1.0} + if not assigned(OPENSSL_malloc) then + begin + {$if declared(OPENSSL_malloc_introduced)} + if LibVersion < OPENSSL_malloc_introduced then + {$if declared(FC_OPENSSL_malloc)} + OPENSSL_malloc := @FC_OPENSSL_malloc + {$else} + OPENSSL_malloc := @ERR_OPENSSL_malloc + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_malloc_removed)} + if OPENSSL_malloc_removed <= LibVersion then + {$if declared(_OPENSSL_malloc)} + OPENSSL_malloc := @_OPENSSL_malloc + {$else} + {$IF declared(ERR_OPENSSL_malloc)} + OPENSSL_malloc := @ERR_OPENSSL_malloc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_malloc) and Assigned(AFailed) then + AFailed.Add('OPENSSL_malloc'); + end; + + + if not assigned(OPENSSL_zalloc) then + begin + {$if declared(OPENSSL_zalloc_introduced)} + if LibVersion < OPENSSL_zalloc_introduced then + {$if declared(FC_OPENSSL_zalloc)} + OPENSSL_zalloc := @FC_OPENSSL_zalloc + {$else} + OPENSSL_zalloc := @ERR_OPENSSL_zalloc + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_zalloc_removed)} + if OPENSSL_zalloc_removed <= LibVersion then + {$if declared(_OPENSSL_zalloc)} + OPENSSL_zalloc := @_OPENSSL_zalloc + {$else} + {$IF declared(ERR_OPENSSL_zalloc)} + OPENSSL_zalloc := @ERR_OPENSSL_zalloc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_zalloc) and Assigned(AFailed) then + AFailed.Add('OPENSSL_zalloc'); + end; + + + if not assigned(OPENSSL_realloc) then + begin + {$if declared(OPENSSL_realloc_introduced)} + if LibVersion < OPENSSL_realloc_introduced then + {$if declared(FC_OPENSSL_realloc)} + OPENSSL_realloc := @FC_OPENSSL_realloc + {$else} + OPENSSL_realloc := @ERR_OPENSSL_realloc + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_realloc_removed)} + if OPENSSL_realloc_removed <= LibVersion then + {$if declared(_OPENSSL_realloc)} + OPENSSL_realloc := @_OPENSSL_realloc + {$else} + {$IF declared(ERR_OPENSSL_realloc)} + OPENSSL_realloc := @ERR_OPENSSL_realloc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_realloc) and Assigned(AFailed) then + AFailed.Add('OPENSSL_realloc'); + end; + + + if not assigned(OPENSSL_clear_realloc) then + begin + {$if declared(OPENSSL_clear_realloc_introduced)} + if LibVersion < OPENSSL_clear_realloc_introduced then + {$if declared(FC_OPENSSL_clear_realloc)} + OPENSSL_clear_realloc := @FC_OPENSSL_clear_realloc + {$else} + OPENSSL_clear_realloc := @ERR_OPENSSL_clear_realloc + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_clear_realloc_removed)} + if OPENSSL_clear_realloc_removed <= LibVersion then + {$if declared(_OPENSSL_clear_realloc)} + OPENSSL_clear_realloc := @_OPENSSL_clear_realloc + {$else} + {$IF declared(ERR_OPENSSL_clear_realloc)} + OPENSSL_clear_realloc := @ERR_OPENSSL_clear_realloc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_clear_realloc) and Assigned(AFailed) then + AFailed.Add('OPENSSL_clear_realloc'); + end; + + + if not assigned(OPENSSL_clear_free) then + begin + {$if declared(OPENSSL_clear_free_introduced)} + if LibVersion < OPENSSL_clear_free_introduced then + {$if declared(FC_OPENSSL_clear_free)} + OPENSSL_clear_free := @FC_OPENSSL_clear_free + {$else} + OPENSSL_clear_free := @ERR_OPENSSL_clear_free + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_clear_free_removed)} + if OPENSSL_clear_free_removed <= LibVersion then + {$if declared(_OPENSSL_clear_free)} + OPENSSL_clear_free := @_OPENSSL_clear_free + {$else} + {$IF declared(ERR_OPENSSL_clear_free)} + OPENSSL_clear_free := @ERR_OPENSSL_clear_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_clear_free) and Assigned(AFailed) then + AFailed.Add('OPENSSL_clear_free'); + end; + + + if not assigned(OPENSSL_free) then + begin + {$if declared(OPENSSL_free_introduced)} + if LibVersion < OPENSSL_free_introduced then + {$if declared(FC_OPENSSL_free)} + OPENSSL_free := @FC_OPENSSL_free + {$else} + OPENSSL_free := @ERR_OPENSSL_free + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_free_removed)} + if OPENSSL_free_removed <= LibVersion then + {$if declared(_OPENSSL_free)} + OPENSSL_free := @_OPENSSL_free + {$else} + {$IF declared(ERR_OPENSSL_free)} + OPENSSL_free := @ERR_OPENSSL_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_free) and Assigned(AFailed) then + AFailed.Add('OPENSSL_free'); + end; + + + if not assigned(OPENSSL_memdup) then + begin + {$if declared(OPENSSL_memdup_introduced)} + if LibVersion < OPENSSL_memdup_introduced then + {$if declared(FC_OPENSSL_memdup)} + OPENSSL_memdup := @FC_OPENSSL_memdup + {$else} + OPENSSL_memdup := @ERR_OPENSSL_memdup + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_memdup_removed)} + if OPENSSL_memdup_removed <= LibVersion then + {$if declared(_OPENSSL_memdup)} + OPENSSL_memdup := @_OPENSSL_memdup + {$else} + {$IF declared(ERR_OPENSSL_memdup)} + OPENSSL_memdup := @ERR_OPENSSL_memdup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_memdup) and Assigned(AFailed) then + AFailed.Add('OPENSSL_memdup'); + end; + + + if not assigned(OPENSSL_strdup) then + begin + {$if declared(OPENSSL_strdup_introduced)} + if LibVersion < OPENSSL_strdup_introduced then + {$if declared(FC_OPENSSL_strdup)} + OPENSSL_strdup := @FC_OPENSSL_strdup + {$else} + OPENSSL_strdup := @ERR_OPENSSL_strdup + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_strdup_removed)} + if OPENSSL_strdup_removed <= LibVersion then + {$if declared(_OPENSSL_strdup)} + OPENSSL_strdup := @_OPENSSL_strdup + {$else} + {$IF declared(ERR_OPENSSL_strdup)} + OPENSSL_strdup := @ERR_OPENSSL_strdup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_strdup) and Assigned(AFailed) then + AFailed.Add('OPENSSL_strdup'); + end; + + + if not assigned(OPENSSL_strndup) then + begin + {$if declared(OPENSSL_strndup_introduced)} + if LibVersion < OPENSSL_strndup_introduced then + {$if declared(FC_OPENSSL_strndup)} + OPENSSL_strndup := @FC_OPENSSL_strndup + {$else} + OPENSSL_strndup := @ERR_OPENSSL_strndup + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_strndup_removed)} + if OPENSSL_strndup_removed <= LibVersion then + {$if declared(_OPENSSL_strndup)} + OPENSSL_strndup := @_OPENSSL_strndup + {$else} + {$IF declared(ERR_OPENSSL_strndup)} + OPENSSL_strndup := @ERR_OPENSSL_strndup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_strndup) and Assigned(AFailed) then + AFailed.Add('OPENSSL_strndup'); + end; + + + if not assigned(OPENSSL_secure_malloc) then + begin + {$if declared(OPENSSL_secure_malloc_introduced)} + if LibVersion < OPENSSL_secure_malloc_introduced then + {$if declared(FC_OPENSSL_secure_malloc)} + OPENSSL_secure_malloc := @FC_OPENSSL_secure_malloc + {$else} + OPENSSL_secure_malloc := @ERR_OPENSSL_secure_malloc + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_secure_malloc_removed)} + if OPENSSL_secure_malloc_removed <= LibVersion then + {$if declared(_OPENSSL_secure_malloc)} + OPENSSL_secure_malloc := @_OPENSSL_secure_malloc + {$else} + {$IF declared(ERR_OPENSSL_secure_malloc)} + OPENSSL_secure_malloc := @ERR_OPENSSL_secure_malloc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_secure_malloc) and Assigned(AFailed) then + AFailed.Add('OPENSSL_secure_malloc'); + end; + + + if not assigned(OPENSSL_secure_zalloc) then + begin + {$if declared(OPENSSL_secure_zalloc_introduced)} + if LibVersion < OPENSSL_secure_zalloc_introduced then + {$if declared(FC_OPENSSL_secure_zalloc)} + OPENSSL_secure_zalloc := @FC_OPENSSL_secure_zalloc + {$else} + OPENSSL_secure_zalloc := @ERR_OPENSSL_secure_zalloc + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_secure_zalloc_removed)} + if OPENSSL_secure_zalloc_removed <= LibVersion then + {$if declared(_OPENSSL_secure_zalloc)} + OPENSSL_secure_zalloc := @_OPENSSL_secure_zalloc + {$else} + {$IF declared(ERR_OPENSSL_secure_zalloc)} + OPENSSL_secure_zalloc := @ERR_OPENSSL_secure_zalloc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_secure_zalloc) and Assigned(AFailed) then + AFailed.Add('OPENSSL_secure_zalloc'); + end; + + + if not assigned(OPENSSL_secure_free) then + begin + {$if declared(OPENSSL_secure_free_introduced)} + if LibVersion < OPENSSL_secure_free_introduced then + {$if declared(FC_OPENSSL_secure_free)} + OPENSSL_secure_free := @FC_OPENSSL_secure_free + {$else} + OPENSSL_secure_free := @ERR_OPENSSL_secure_free + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_secure_free_removed)} + if OPENSSL_secure_free_removed <= LibVersion then + {$if declared(_OPENSSL_secure_free)} + OPENSSL_secure_free := @_OPENSSL_secure_free + {$else} + {$IF declared(ERR_OPENSSL_secure_free)} + OPENSSL_secure_free := @ERR_OPENSSL_secure_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_secure_free) and Assigned(AFailed) then + AFailed.Add('OPENSSL_secure_free'); + end; + + + if not assigned(OPENSSL_secure_clear_free) then + begin + {$if declared(OPENSSL_secure_clear_free_introduced)} + if LibVersion < OPENSSL_secure_clear_free_introduced then + {$if declared(FC_OPENSSL_secure_clear_free)} + OPENSSL_secure_clear_free := @FC_OPENSSL_secure_clear_free + {$else} + OPENSSL_secure_clear_free := @ERR_OPENSSL_secure_clear_free + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_secure_clear_free_removed)} + if OPENSSL_secure_clear_free_removed <= LibVersion then + {$if declared(_OPENSSL_secure_clear_free)} + OPENSSL_secure_clear_free := @_OPENSSL_secure_clear_free + {$else} + {$IF declared(ERR_OPENSSL_secure_clear_free)} + OPENSSL_secure_clear_free := @ERR_OPENSSL_secure_clear_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_secure_clear_free) and Assigned(AFailed) then + AFailed.Add('OPENSSL_secure_clear_free'); + end; + + + if not assigned(OPENSSL_secure_actual_size) then + begin + {$if declared(OPENSSL_secure_actual_size_introduced)} + if LibVersion < OPENSSL_secure_actual_size_introduced then + {$if declared(FC_OPENSSL_secure_actual_size)} + OPENSSL_secure_actual_size := @FC_OPENSSL_secure_actual_size + {$else} + OPENSSL_secure_actual_size := @ERR_OPENSSL_secure_actual_size + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_secure_actual_size_removed)} + if OPENSSL_secure_actual_size_removed <= LibVersion then + {$if declared(_OPENSSL_secure_actual_size)} + OPENSSL_secure_actual_size := @_OPENSSL_secure_actual_size + {$else} + {$IF declared(ERR_OPENSSL_secure_actual_size)} + OPENSSL_secure_actual_size := @ERR_OPENSSL_secure_actual_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_secure_actual_size) and Assigned(AFailed) then + AFailed.Add('OPENSSL_secure_actual_size'); + end; + + + if not assigned(CRYPTO_THREAD_lock_new) then + begin + {$if declared(CRYPTO_THREAD_lock_new_introduced)} + if LibVersion < CRYPTO_THREAD_lock_new_introduced then + {$if declared(FC_CRYPTO_THREAD_lock_new)} + CRYPTO_THREAD_lock_new := @FC_CRYPTO_THREAD_lock_new + {$else} + CRYPTO_THREAD_lock_new := @ERR_CRYPTO_THREAD_lock_new + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREAD_lock_new_removed)} + if CRYPTO_THREAD_lock_new_removed <= LibVersion then + {$if declared(_CRYPTO_THREAD_lock_new)} + CRYPTO_THREAD_lock_new := @_CRYPTO_THREAD_lock_new + {$else} + {$IF declared(ERR_CRYPTO_THREAD_lock_new)} + CRYPTO_THREAD_lock_new := @ERR_CRYPTO_THREAD_lock_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREAD_lock_new) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREAD_lock_new'); + end; + + + if not assigned(CRYPTO_THREAD_read_lock) then + begin + {$if declared(CRYPTO_THREAD_read_lock_introduced)} + if LibVersion < CRYPTO_THREAD_read_lock_introduced then + {$if declared(FC_CRYPTO_THREAD_read_lock)} + CRYPTO_THREAD_read_lock := @FC_CRYPTO_THREAD_read_lock + {$else} + CRYPTO_THREAD_read_lock := @ERR_CRYPTO_THREAD_read_lock + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREAD_read_lock_removed)} + if CRYPTO_THREAD_read_lock_removed <= LibVersion then + {$if declared(_CRYPTO_THREAD_read_lock)} + CRYPTO_THREAD_read_lock := @_CRYPTO_THREAD_read_lock + {$else} + {$IF declared(ERR_CRYPTO_THREAD_read_lock)} + CRYPTO_THREAD_read_lock := @ERR_CRYPTO_THREAD_read_lock + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREAD_read_lock) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREAD_read_lock'); + end; + + + if not assigned(CRYPTO_THREAD_write_lock) then + begin + {$if declared(CRYPTO_THREAD_write_lock_introduced)} + if LibVersion < CRYPTO_THREAD_write_lock_introduced then + {$if declared(FC_CRYPTO_THREAD_write_lock)} + CRYPTO_THREAD_write_lock := @FC_CRYPTO_THREAD_write_lock + {$else} + CRYPTO_THREAD_write_lock := @ERR_CRYPTO_THREAD_write_lock + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREAD_write_lock_removed)} + if CRYPTO_THREAD_write_lock_removed <= LibVersion then + {$if declared(_CRYPTO_THREAD_write_lock)} + CRYPTO_THREAD_write_lock := @_CRYPTO_THREAD_write_lock + {$else} + {$IF declared(ERR_CRYPTO_THREAD_write_lock)} + CRYPTO_THREAD_write_lock := @ERR_CRYPTO_THREAD_write_lock + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREAD_write_lock) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREAD_write_lock'); + end; + + + if not assigned(CRYPTO_THREAD_unlock) then + begin + {$if declared(CRYPTO_THREAD_unlock_introduced)} + if LibVersion < CRYPTO_THREAD_unlock_introduced then + {$if declared(FC_CRYPTO_THREAD_unlock)} + CRYPTO_THREAD_unlock := @FC_CRYPTO_THREAD_unlock + {$else} + CRYPTO_THREAD_unlock := @ERR_CRYPTO_THREAD_unlock + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREAD_unlock_removed)} + if CRYPTO_THREAD_unlock_removed <= LibVersion then + {$if declared(_CRYPTO_THREAD_unlock)} + CRYPTO_THREAD_unlock := @_CRYPTO_THREAD_unlock + {$else} + {$IF declared(ERR_CRYPTO_THREAD_unlock)} + CRYPTO_THREAD_unlock := @ERR_CRYPTO_THREAD_unlock + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREAD_unlock) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREAD_unlock'); + end; + + + if not assigned(CRYPTO_THREAD_lock_free) then + begin + {$if declared(CRYPTO_THREAD_lock_free_introduced)} + if LibVersion < CRYPTO_THREAD_lock_free_introduced then + {$if declared(FC_CRYPTO_THREAD_lock_free)} + CRYPTO_THREAD_lock_free := @FC_CRYPTO_THREAD_lock_free + {$else} + CRYPTO_THREAD_lock_free := @ERR_CRYPTO_THREAD_lock_free + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREAD_lock_free_removed)} + if CRYPTO_THREAD_lock_free_removed <= LibVersion then + {$if declared(_CRYPTO_THREAD_lock_free)} + CRYPTO_THREAD_lock_free := @_CRYPTO_THREAD_lock_free + {$else} + {$IF declared(ERR_CRYPTO_THREAD_lock_free)} + CRYPTO_THREAD_lock_free := @ERR_CRYPTO_THREAD_lock_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREAD_lock_free) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREAD_lock_free'); + end; + + + if not assigned(CRYPTO_atomic_add) then + begin + {$if declared(CRYPTO_atomic_add_introduced)} + if LibVersion < CRYPTO_atomic_add_introduced then + {$if declared(FC_CRYPTO_atomic_add)} + CRYPTO_atomic_add := @FC_CRYPTO_atomic_add + {$else} + CRYPTO_atomic_add := @ERR_CRYPTO_atomic_add + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_atomic_add_removed)} + if CRYPTO_atomic_add_removed <= LibVersion then + {$if declared(_CRYPTO_atomic_add)} + CRYPTO_atomic_add := @_CRYPTO_atomic_add + {$else} + {$IF declared(ERR_CRYPTO_atomic_add)} + CRYPTO_atomic_add := @ERR_CRYPTO_atomic_add + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_atomic_add) and Assigned(AFailed) then + AFailed.Add('CRYPTO_atomic_add'); + end; + + + if not assigned(CRYPTO_mem_ctrl) then + begin + {$if declared(CRYPTO_mem_ctrl_introduced)} + if LibVersion < CRYPTO_mem_ctrl_introduced then + {$if declared(FC_CRYPTO_mem_ctrl)} + CRYPTO_mem_ctrl := @FC_CRYPTO_mem_ctrl + {$else} + CRYPTO_mem_ctrl := @ERR_CRYPTO_mem_ctrl + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_mem_ctrl_removed)} + if CRYPTO_mem_ctrl_removed <= LibVersion then + {$if declared(_CRYPTO_mem_ctrl)} + CRYPTO_mem_ctrl := @_CRYPTO_mem_ctrl + {$else} + {$IF declared(ERR_CRYPTO_mem_ctrl)} + CRYPTO_mem_ctrl := @ERR_CRYPTO_mem_ctrl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_mem_ctrl) and Assigned(AFailed) then + AFailed.Add('CRYPTO_mem_ctrl'); + end; + + + if not assigned(OPENSSL_strlcpy) then + begin + {$if declared(OPENSSL_strlcpy_introduced)} + if LibVersion < OPENSSL_strlcpy_introduced then + {$if declared(FC_OPENSSL_strlcpy)} + OPENSSL_strlcpy := @FC_OPENSSL_strlcpy + {$else} + OPENSSL_strlcpy := @ERR_OPENSSL_strlcpy + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_strlcpy_removed)} + if OPENSSL_strlcpy_removed <= LibVersion then + {$if declared(_OPENSSL_strlcpy)} + OPENSSL_strlcpy := @_OPENSSL_strlcpy + {$else} + {$IF declared(ERR_OPENSSL_strlcpy)} + OPENSSL_strlcpy := @ERR_OPENSSL_strlcpy + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_strlcpy) and Assigned(AFailed) then + AFailed.Add('OPENSSL_strlcpy'); + end; + + + if not assigned(OPENSSL_strlcat) then + begin + {$if declared(OPENSSL_strlcat_introduced)} + if LibVersion < OPENSSL_strlcat_introduced then + {$if declared(FC_OPENSSL_strlcat)} + OPENSSL_strlcat := @FC_OPENSSL_strlcat + {$else} + OPENSSL_strlcat := @ERR_OPENSSL_strlcat + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_strlcat_removed)} + if OPENSSL_strlcat_removed <= LibVersion then + {$if declared(_OPENSSL_strlcat)} + OPENSSL_strlcat := @_OPENSSL_strlcat + {$else} + {$IF declared(ERR_OPENSSL_strlcat)} + OPENSSL_strlcat := @ERR_OPENSSL_strlcat + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_strlcat) and Assigned(AFailed) then + AFailed.Add('OPENSSL_strlcat'); + end; + + + if not assigned(OPENSSL_strnlen) then + begin + {$if declared(OPENSSL_strnlen_introduced)} + if LibVersion < OPENSSL_strnlen_introduced then + {$if declared(FC_OPENSSL_strnlen)} + OPENSSL_strnlen := @FC_OPENSSL_strnlen + {$else} + OPENSSL_strnlen := @ERR_OPENSSL_strnlen + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_strnlen_removed)} + if OPENSSL_strnlen_removed <= LibVersion then + {$if declared(_OPENSSL_strnlen)} + OPENSSL_strnlen := @_OPENSSL_strnlen + {$else} + {$IF declared(ERR_OPENSSL_strnlen)} + OPENSSL_strnlen := @ERR_OPENSSL_strnlen + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_strnlen) and Assigned(AFailed) then + AFailed.Add('OPENSSL_strnlen'); + end; + + + if not assigned(OPENSSL_buf2hexstr) then + begin + {$if declared(OPENSSL_buf2hexstr_introduced)} + if LibVersion < OPENSSL_buf2hexstr_introduced then + {$if declared(FC_OPENSSL_buf2hexstr)} + OPENSSL_buf2hexstr := @FC_OPENSSL_buf2hexstr + {$else} + OPENSSL_buf2hexstr := @ERR_OPENSSL_buf2hexstr + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_buf2hexstr_removed)} + if OPENSSL_buf2hexstr_removed <= LibVersion then + {$if declared(_OPENSSL_buf2hexstr)} + OPENSSL_buf2hexstr := @_OPENSSL_buf2hexstr + {$else} + {$IF declared(ERR_OPENSSL_buf2hexstr)} + OPENSSL_buf2hexstr := @ERR_OPENSSL_buf2hexstr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_buf2hexstr) and Assigned(AFailed) then + AFailed.Add('OPENSSL_buf2hexstr'); + end; + + + if not assigned(OPENSSL_hexstr2buf) then + begin + {$if declared(OPENSSL_hexstr2buf_introduced)} + if LibVersion < OPENSSL_hexstr2buf_introduced then + {$if declared(FC_OPENSSL_hexstr2buf)} + OPENSSL_hexstr2buf := @FC_OPENSSL_hexstr2buf + {$else} + OPENSSL_hexstr2buf := @ERR_OPENSSL_hexstr2buf + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_hexstr2buf_removed)} + if OPENSSL_hexstr2buf_removed <= LibVersion then + {$if declared(_OPENSSL_hexstr2buf)} + OPENSSL_hexstr2buf := @_OPENSSL_hexstr2buf + {$else} + {$IF declared(ERR_OPENSSL_hexstr2buf)} + OPENSSL_hexstr2buf := @ERR_OPENSSL_hexstr2buf + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_hexstr2buf) and Assigned(AFailed) then + AFailed.Add('OPENSSL_hexstr2buf'); + end; + + + if not assigned(OPENSSL_hexchar2int) then + begin + {$if declared(OPENSSL_hexchar2int_introduced)} + if LibVersion < OPENSSL_hexchar2int_introduced then + {$if declared(FC_OPENSSL_hexchar2int)} + OPENSSL_hexchar2int := @FC_OPENSSL_hexchar2int + {$else} + OPENSSL_hexchar2int := @ERR_OPENSSL_hexchar2int + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_hexchar2int_removed)} + if OPENSSL_hexchar2int_removed <= LibVersion then + {$if declared(_OPENSSL_hexchar2int)} + OPENSSL_hexchar2int := @_OPENSSL_hexchar2int + {$else} + {$IF declared(ERR_OPENSSL_hexchar2int)} + OPENSSL_hexchar2int := @ERR_OPENSSL_hexchar2int + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_hexchar2int) and Assigned(AFailed) then + AFailed.Add('OPENSSL_hexchar2int'); + end; + + + if not assigned(OpenSSL_version_num) then + begin + {$if declared(OpenSSL_version_num_introduced)} + if LibVersion < OpenSSL_version_num_introduced then + {$if declared(FC_OpenSSL_version_num)} + OpenSSL_version_num := @FC_OpenSSL_version_num + {$else} + OpenSSL_version_num := @ERR_OpenSSL_version_num + {$ifend} + else + {$ifend} + {$if declared(OpenSSL_version_num_removed)} + if OpenSSL_version_num_removed <= LibVersion then + {$if declared(_OpenSSL_version_num)} + OpenSSL_version_num := @_OpenSSL_version_num + {$else} + {$IF declared(ERR_OpenSSL_version_num)} + OpenSSL_version_num := @ERR_OpenSSL_version_num + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OpenSSL_version_num) and Assigned(AFailed) then + AFailed.Add('OpenSSL_version_num'); + end; + + + if not assigned(OpenSSL_version) then + begin + {$if declared(OpenSSL_version_introduced)} + if LibVersion < OpenSSL_version_introduced then + {$if declared(FC_OpenSSL_version)} + OpenSSL_version := @FC_OpenSSL_version + {$else} + OpenSSL_version := @ERR_OpenSSL_version + {$ifend} + else + {$ifend} + {$if declared(OpenSSL_version_removed)} + if OpenSSL_version_removed <= LibVersion then + {$if declared(_OpenSSL_version)} + OpenSSL_version := @_OpenSSL_version + {$else} + {$IF declared(ERR_OpenSSL_version)} + OpenSSL_version := @ERR_OpenSSL_version + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OpenSSL_version) and Assigned(AFailed) then + AFailed.Add('OpenSSL_version'); + end; + + + if not assigned(CRYPTO_num_locks) then + begin + {$if declared(CRYPTO_num_locks_introduced)} + if LibVersion < CRYPTO_num_locks_introduced then + {$if declared(FC_CRYPTO_num_locks)} + CRYPTO_num_locks := @FC_CRYPTO_num_locks + {$else} + CRYPTO_num_locks := @ERR_CRYPTO_num_locks + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_num_locks_removed)} + if CRYPTO_num_locks_removed <= LibVersion then + {$if declared(_CRYPTO_num_locks)} + CRYPTO_num_locks := @_CRYPTO_num_locks + {$else} + {$IF declared(ERR_CRYPTO_num_locks)} + CRYPTO_num_locks := @ERR_CRYPTO_num_locks + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_num_locks) and Assigned(AFailed) then + AFailed.Add('CRYPTO_num_locks'); + end; + + + if not assigned(CRYPTO_set_locking_callback) then + begin + {$if declared(CRYPTO_set_locking_callback_introduced)} + if LibVersion < CRYPTO_set_locking_callback_introduced then + {$if declared(FC_CRYPTO_set_locking_callback)} + CRYPTO_set_locking_callback := @FC_CRYPTO_set_locking_callback + {$else} + CRYPTO_set_locking_callback := @ERR_CRYPTO_set_locking_callback + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_set_locking_callback_removed)} + if CRYPTO_set_locking_callback_removed <= LibVersion then + {$if declared(_CRYPTO_set_locking_callback)} + CRYPTO_set_locking_callback := @_CRYPTO_set_locking_callback + {$else} + {$IF declared(ERR_CRYPTO_set_locking_callback)} + CRYPTO_set_locking_callback := @ERR_CRYPTO_set_locking_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_set_locking_callback) and Assigned(AFailed) then + AFailed.Add('CRYPTO_set_locking_callback'); + end; + + + if not assigned(CRYPTO_THREADID_set_numeric) then + begin + {$if declared(CRYPTO_THREADID_set_numeric_introduced)} + if LibVersion < CRYPTO_THREADID_set_numeric_introduced then + {$if declared(FC_CRYPTO_THREADID_set_numeric)} + CRYPTO_THREADID_set_numeric := @FC_CRYPTO_THREADID_set_numeric + {$else} + CRYPTO_THREADID_set_numeric := @ERR_CRYPTO_THREADID_set_numeric + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREADID_set_numeric_removed)} + if CRYPTO_THREADID_set_numeric_removed <= LibVersion then + {$if declared(_CRYPTO_THREADID_set_numeric)} + CRYPTO_THREADID_set_numeric := @_CRYPTO_THREADID_set_numeric + {$else} + {$IF declared(ERR_CRYPTO_THREADID_set_numeric)} + CRYPTO_THREADID_set_numeric := @ERR_CRYPTO_THREADID_set_numeric + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREADID_set_numeric) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREADID_set_numeric'); + end; + + + if not assigned(CRYPTO_THREADID_set_callback) then + begin + {$if declared(CRYPTO_THREADID_set_callback_introduced)} + if LibVersion < CRYPTO_THREADID_set_callback_introduced then + {$if declared(FC_CRYPTO_THREADID_set_callback)} + CRYPTO_THREADID_set_callback := @FC_CRYPTO_THREADID_set_callback + {$else} + CRYPTO_THREADID_set_callback := @ERR_CRYPTO_THREADID_set_callback + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREADID_set_callback_removed)} + if CRYPTO_THREADID_set_callback_removed <= LibVersion then + {$if declared(_CRYPTO_THREADID_set_callback)} + CRYPTO_THREADID_set_callback := @_CRYPTO_THREADID_set_callback + {$else} + {$IF declared(ERR_CRYPTO_THREADID_set_callback)} + CRYPTO_THREADID_set_callback := @ERR_CRYPTO_THREADID_set_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREADID_set_callback) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREADID_set_callback'); + end; + + + if not assigned(CRYPTO_set_id_callback) then + begin + {$if declared(CRYPTO_set_id_callback_introduced)} + if LibVersion < CRYPTO_set_id_callback_introduced then + {$if declared(FC_CRYPTO_set_id_callback)} + CRYPTO_set_id_callback := @FC_CRYPTO_set_id_callback + {$else} + CRYPTO_set_id_callback := @ERR_CRYPTO_set_id_callback + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_set_id_callback_removed)} + if CRYPTO_set_id_callback_removed <= LibVersion then + {$if declared(_CRYPTO_set_id_callback)} + CRYPTO_set_id_callback := @_CRYPTO_set_id_callback + {$else} + {$IF declared(ERR_CRYPTO_set_id_callback)} + CRYPTO_set_id_callback := @ERR_CRYPTO_set_id_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_set_id_callback) and Assigned(AFailed) then + AFailed.Add('CRYPTO_set_id_callback'); + end; + + + if not assigned(CRYPTO_set_mem_debug) then + begin + {$if declared(CRYPTO_set_mem_debug_introduced)} + if LibVersion < CRYPTO_set_mem_debug_introduced then + {$if declared(FC_CRYPTO_set_mem_debug)} + CRYPTO_set_mem_debug := @FC_CRYPTO_set_mem_debug + {$else} + CRYPTO_set_mem_debug := @ERR_CRYPTO_set_mem_debug + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_set_mem_debug_removed)} + if CRYPTO_set_mem_debug_removed <= LibVersion then + {$if declared(_CRYPTO_set_mem_debug)} + CRYPTO_set_mem_debug := @_CRYPTO_set_mem_debug + {$else} + {$IF declared(ERR_CRYPTO_set_mem_debug)} + CRYPTO_set_mem_debug := @ERR_CRYPTO_set_mem_debug + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_set_mem_debug) and Assigned(AFailed) then + AFailed.Add('CRYPTO_set_mem_debug'); + end; + + + if not assigned(CRYPTO_zalloc) then + begin + {$if declared(CRYPTO_zalloc_introduced)} + if LibVersion < CRYPTO_zalloc_introduced then + {$if declared(FC_CRYPTO_zalloc)} + CRYPTO_zalloc := @FC_CRYPTO_zalloc + {$else} + CRYPTO_zalloc := @ERR_CRYPTO_zalloc + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_zalloc_removed)} + if CRYPTO_zalloc_removed <= LibVersion then + {$if declared(_CRYPTO_zalloc)} + CRYPTO_zalloc := @_CRYPTO_zalloc + {$else} + {$IF declared(ERR_CRYPTO_zalloc)} + CRYPTO_zalloc := @ERR_CRYPTO_zalloc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_zalloc) and Assigned(AFailed) then + AFailed.Add('CRYPTO_zalloc'); + end; + + + if not assigned(CRYPTO_memdup) then + begin + {$if declared(CRYPTO_memdup_introduced)} + if LibVersion < CRYPTO_memdup_introduced then + {$if declared(FC_CRYPTO_memdup)} + CRYPTO_memdup := @FC_CRYPTO_memdup + {$else} + CRYPTO_memdup := @ERR_CRYPTO_memdup + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_memdup_removed)} + if CRYPTO_memdup_removed <= LibVersion then + {$if declared(_CRYPTO_memdup)} + CRYPTO_memdup := @_CRYPTO_memdup + {$else} + {$IF declared(ERR_CRYPTO_memdup)} + CRYPTO_memdup := @ERR_CRYPTO_memdup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_memdup) and Assigned(AFailed) then + AFailed.Add('CRYPTO_memdup'); + end; + + + if not assigned(CRYPTO_strndup) then + begin + {$if declared(CRYPTO_strndup_introduced)} + if LibVersion < CRYPTO_strndup_introduced then + {$if declared(FC_CRYPTO_strndup)} + CRYPTO_strndup := @FC_CRYPTO_strndup + {$else} + CRYPTO_strndup := @ERR_CRYPTO_strndup + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_strndup_removed)} + if CRYPTO_strndup_removed <= LibVersion then + {$if declared(_CRYPTO_strndup)} + CRYPTO_strndup := @_CRYPTO_strndup + {$else} + {$IF declared(ERR_CRYPTO_strndup)} + CRYPTO_strndup := @ERR_CRYPTO_strndup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_strndup) and Assigned(AFailed) then + AFailed.Add('CRYPTO_strndup'); + end; + + + if not assigned(CRYPTO_clear_free) then + begin + {$if declared(CRYPTO_clear_free_introduced)} + if LibVersion < CRYPTO_clear_free_introduced then + {$if declared(FC_CRYPTO_clear_free)} + CRYPTO_clear_free := @FC_CRYPTO_clear_free + {$else} + CRYPTO_clear_free := @ERR_CRYPTO_clear_free + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_clear_free_removed)} + if CRYPTO_clear_free_removed <= LibVersion then + {$if declared(_CRYPTO_clear_free)} + CRYPTO_clear_free := @_CRYPTO_clear_free + {$else} + {$IF declared(ERR_CRYPTO_clear_free)} + CRYPTO_clear_free := @ERR_CRYPTO_clear_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_clear_free) and Assigned(AFailed) then + AFailed.Add('CRYPTO_clear_free'); + end; + + + if not assigned(CRYPTO_clear_realloc) then + begin + {$if declared(CRYPTO_clear_realloc_introduced)} + if LibVersion < CRYPTO_clear_realloc_introduced then + {$if declared(FC_CRYPTO_clear_realloc)} + CRYPTO_clear_realloc := @FC_CRYPTO_clear_realloc + {$else} + CRYPTO_clear_realloc := @ERR_CRYPTO_clear_realloc + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_clear_realloc_removed)} + if CRYPTO_clear_realloc_removed <= LibVersion then + {$if declared(_CRYPTO_clear_realloc)} + CRYPTO_clear_realloc := @_CRYPTO_clear_realloc + {$else} + {$IF declared(ERR_CRYPTO_clear_realloc)} + CRYPTO_clear_realloc := @ERR_CRYPTO_clear_realloc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_clear_realloc) and Assigned(AFailed) then + AFailed.Add('CRYPTO_clear_realloc'); + end; + + + if not assigned(CRYPTO_secure_malloc_init) then + begin + {$if declared(CRYPTO_secure_malloc_init_introduced)} + if LibVersion < CRYPTO_secure_malloc_init_introduced then + {$if declared(FC_CRYPTO_secure_malloc_init)} + CRYPTO_secure_malloc_init := @FC_CRYPTO_secure_malloc_init + {$else} + CRYPTO_secure_malloc_init := @ERR_CRYPTO_secure_malloc_init + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_secure_malloc_init_removed)} + if CRYPTO_secure_malloc_init_removed <= LibVersion then + {$if declared(_CRYPTO_secure_malloc_init)} + CRYPTO_secure_malloc_init := @_CRYPTO_secure_malloc_init + {$else} + {$IF declared(ERR_CRYPTO_secure_malloc_init)} + CRYPTO_secure_malloc_init := @ERR_CRYPTO_secure_malloc_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_secure_malloc_init) and Assigned(AFailed) then + AFailed.Add('CRYPTO_secure_malloc_init'); + end; + + + if not assigned(CRYPTO_secure_malloc_done) then + begin + {$if declared(CRYPTO_secure_malloc_done_introduced)} + if LibVersion < CRYPTO_secure_malloc_done_introduced then + {$if declared(FC_CRYPTO_secure_malloc_done)} + CRYPTO_secure_malloc_done := @FC_CRYPTO_secure_malloc_done + {$else} + CRYPTO_secure_malloc_done := @ERR_CRYPTO_secure_malloc_done + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_secure_malloc_done_removed)} + if CRYPTO_secure_malloc_done_removed <= LibVersion then + {$if declared(_CRYPTO_secure_malloc_done)} + CRYPTO_secure_malloc_done := @_CRYPTO_secure_malloc_done + {$else} + {$IF declared(ERR_CRYPTO_secure_malloc_done)} + CRYPTO_secure_malloc_done := @ERR_CRYPTO_secure_malloc_done + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_secure_malloc_done) and Assigned(AFailed) then + AFailed.Add('CRYPTO_secure_malloc_done'); + end; + + + if not assigned(CRYPTO_secure_malloc) then + begin + {$if declared(CRYPTO_secure_malloc_introduced)} + if LibVersion < CRYPTO_secure_malloc_introduced then + {$if declared(FC_CRYPTO_secure_malloc)} + CRYPTO_secure_malloc := @FC_CRYPTO_secure_malloc + {$else} + CRYPTO_secure_malloc := @ERR_CRYPTO_secure_malloc + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_secure_malloc_removed)} + if CRYPTO_secure_malloc_removed <= LibVersion then + {$if declared(_CRYPTO_secure_malloc)} + CRYPTO_secure_malloc := @_CRYPTO_secure_malloc + {$else} + {$IF declared(ERR_CRYPTO_secure_malloc)} + CRYPTO_secure_malloc := @ERR_CRYPTO_secure_malloc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_secure_malloc) and Assigned(AFailed) then + AFailed.Add('CRYPTO_secure_malloc'); + end; + + + if not assigned(CRYPTO_secure_zalloc) then + begin + {$if declared(CRYPTO_secure_zalloc_introduced)} + if LibVersion < CRYPTO_secure_zalloc_introduced then + {$if declared(FC_CRYPTO_secure_zalloc)} + CRYPTO_secure_zalloc := @FC_CRYPTO_secure_zalloc + {$else} + CRYPTO_secure_zalloc := @ERR_CRYPTO_secure_zalloc + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_secure_zalloc_removed)} + if CRYPTO_secure_zalloc_removed <= LibVersion then + {$if declared(_CRYPTO_secure_zalloc)} + CRYPTO_secure_zalloc := @_CRYPTO_secure_zalloc + {$else} + {$IF declared(ERR_CRYPTO_secure_zalloc)} + CRYPTO_secure_zalloc := @ERR_CRYPTO_secure_zalloc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_secure_zalloc) and Assigned(AFailed) then + AFailed.Add('CRYPTO_secure_zalloc'); + end; + + + if not assigned(CRYPTO_secure_free) then + begin + {$if declared(CRYPTO_secure_free_introduced)} + if LibVersion < CRYPTO_secure_free_introduced then + {$if declared(FC_CRYPTO_secure_free)} + CRYPTO_secure_free := @FC_CRYPTO_secure_free + {$else} + CRYPTO_secure_free := @ERR_CRYPTO_secure_free + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_secure_free_removed)} + if CRYPTO_secure_free_removed <= LibVersion then + {$if declared(_CRYPTO_secure_free)} + CRYPTO_secure_free := @_CRYPTO_secure_free + {$else} + {$IF declared(ERR_CRYPTO_secure_free)} + CRYPTO_secure_free := @ERR_CRYPTO_secure_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_secure_free) and Assigned(AFailed) then + AFailed.Add('CRYPTO_secure_free'); + end; + + + if not assigned(CRYPTO_secure_clear_free) then + begin + {$if declared(CRYPTO_secure_clear_free_introduced)} + if LibVersion < CRYPTO_secure_clear_free_introduced then + {$if declared(FC_CRYPTO_secure_clear_free)} + CRYPTO_secure_clear_free := @FC_CRYPTO_secure_clear_free + {$else} + CRYPTO_secure_clear_free := @ERR_CRYPTO_secure_clear_free + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_secure_clear_free_removed)} + if CRYPTO_secure_clear_free_removed <= LibVersion then + {$if declared(_CRYPTO_secure_clear_free)} + CRYPTO_secure_clear_free := @_CRYPTO_secure_clear_free + {$else} + {$IF declared(ERR_CRYPTO_secure_clear_free)} + CRYPTO_secure_clear_free := @ERR_CRYPTO_secure_clear_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_secure_clear_free) and Assigned(AFailed) then + AFailed.Add('CRYPTO_secure_clear_free'); + end; + + + if not assigned(CRYPTO_secure_allocated) then + begin + {$if declared(CRYPTO_secure_allocated_introduced)} + if LibVersion < CRYPTO_secure_allocated_introduced then + {$if declared(FC_CRYPTO_secure_allocated)} + CRYPTO_secure_allocated := @FC_CRYPTO_secure_allocated + {$else} + CRYPTO_secure_allocated := @ERR_CRYPTO_secure_allocated + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_secure_allocated_removed)} + if CRYPTO_secure_allocated_removed <= LibVersion then + {$if declared(_CRYPTO_secure_allocated)} + CRYPTO_secure_allocated := @_CRYPTO_secure_allocated + {$else} + {$IF declared(ERR_CRYPTO_secure_allocated)} + CRYPTO_secure_allocated := @ERR_CRYPTO_secure_allocated + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_secure_allocated) and Assigned(AFailed) then + AFailed.Add('CRYPTO_secure_allocated'); + end; + + + if not assigned(CRYPTO_secure_malloc_initialized) then + begin + {$if declared(CRYPTO_secure_malloc_initialized_introduced)} + if LibVersion < CRYPTO_secure_malloc_initialized_introduced then + {$if declared(FC_CRYPTO_secure_malloc_initialized)} + CRYPTO_secure_malloc_initialized := @FC_CRYPTO_secure_malloc_initialized + {$else} + CRYPTO_secure_malloc_initialized := @ERR_CRYPTO_secure_malloc_initialized + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_secure_malloc_initialized_removed)} + if CRYPTO_secure_malloc_initialized_removed <= LibVersion then + {$if declared(_CRYPTO_secure_malloc_initialized)} + CRYPTO_secure_malloc_initialized := @_CRYPTO_secure_malloc_initialized + {$else} + {$IF declared(ERR_CRYPTO_secure_malloc_initialized)} + CRYPTO_secure_malloc_initialized := @ERR_CRYPTO_secure_malloc_initialized + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_secure_malloc_initialized) and Assigned(AFailed) then + AFailed.Add('CRYPTO_secure_malloc_initialized'); + end; + + + if not assigned(CRYPTO_secure_actual_size) then + begin + {$if declared(CRYPTO_secure_actual_size_introduced)} + if LibVersion < CRYPTO_secure_actual_size_introduced then + {$if declared(FC_CRYPTO_secure_actual_size)} + CRYPTO_secure_actual_size := @FC_CRYPTO_secure_actual_size + {$else} + CRYPTO_secure_actual_size := @ERR_CRYPTO_secure_actual_size + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_secure_actual_size_removed)} + if CRYPTO_secure_actual_size_removed <= LibVersion then + {$if declared(_CRYPTO_secure_actual_size)} + CRYPTO_secure_actual_size := @_CRYPTO_secure_actual_size + {$else} + {$IF declared(ERR_CRYPTO_secure_actual_size)} + CRYPTO_secure_actual_size := @ERR_CRYPTO_secure_actual_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_secure_actual_size) and Assigned(AFailed) then + AFailed.Add('CRYPTO_secure_actual_size'); + end; + + + if not assigned(CRYPTO_secure_used) then + begin + {$if declared(CRYPTO_secure_used_introduced)} + if LibVersion < CRYPTO_secure_used_introduced then + {$if declared(FC_CRYPTO_secure_used)} + CRYPTO_secure_used := @FC_CRYPTO_secure_used + {$else} + CRYPTO_secure_used := @ERR_CRYPTO_secure_used + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_secure_used_removed)} + if CRYPTO_secure_used_removed <= LibVersion then + {$if declared(_CRYPTO_secure_used)} + CRYPTO_secure_used := @_CRYPTO_secure_used + {$else} + {$IF declared(ERR_CRYPTO_secure_used)} + CRYPTO_secure_used := @ERR_CRYPTO_secure_used + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_secure_used) and Assigned(AFailed) then + AFailed.Add('CRYPTO_secure_used'); + end; + + + if not assigned(FIPS_mode) then + begin + {$if declared(FIPS_mode_introduced)} + if LibVersion < FIPS_mode_introduced then + {$if declared(FC_FIPS_mode)} + FIPS_mode := @FC_FIPS_mode + {$else} + FIPS_mode := @ERR_FIPS_mode + {$ifend} + else + {$ifend} + {$if declared(FIPS_mode_removed)} + if FIPS_mode_removed <= LibVersion then + {$if declared(_FIPS_mode)} + FIPS_mode := @_FIPS_mode + {$else} + {$IF declared(ERR_FIPS_mode)} + FIPS_mode := @ERR_FIPS_mode + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(FIPS_mode) and Assigned(AFailed) then + AFailed.Add('FIPS_mode'); + end; + + + if not assigned(FIPS_mode_set) then + begin + {$if declared(FIPS_mode_set_introduced)} + if LibVersion < FIPS_mode_set_introduced then + {$if declared(FC_FIPS_mode_set)} + FIPS_mode_set := @FC_FIPS_mode_set + {$else} + FIPS_mode_set := @ERR_FIPS_mode_set + {$ifend} + else + {$ifend} + {$if declared(FIPS_mode_set_removed)} + if FIPS_mode_set_removed <= LibVersion then + {$if declared(_FIPS_mode_set)} + FIPS_mode_set := @_FIPS_mode_set + {$else} + {$IF declared(ERR_FIPS_mode_set)} + FIPS_mode_set := @ERR_FIPS_mode_set + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(FIPS_mode_set) and Assigned(AFailed) then + AFailed.Add('FIPS_mode_set'); + end; + + + if not assigned(OPENSSL_cleanup) then + begin + {$if declared(OPENSSL_cleanup_introduced)} + if LibVersion < OPENSSL_cleanup_introduced then + {$if declared(FC_OPENSSL_cleanup)} + OPENSSL_cleanup := @FC_OPENSSL_cleanup + {$else} + OPENSSL_cleanup := @ERR_OPENSSL_cleanup + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_cleanup_removed)} + if OPENSSL_cleanup_removed <= LibVersion then + {$if declared(_OPENSSL_cleanup)} + OPENSSL_cleanup := @_OPENSSL_cleanup + {$else} + {$IF declared(ERR_OPENSSL_cleanup)} + OPENSSL_cleanup := @ERR_OPENSSL_cleanup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_cleanup) and Assigned(AFailed) then + AFailed.Add('OPENSSL_cleanup'); + end; + + + if not assigned(OPENSSL_init_crypto) then + begin + {$if declared(OPENSSL_init_crypto_introduced)} + if LibVersion < OPENSSL_init_crypto_introduced then + {$if declared(FC_OPENSSL_init_crypto)} + OPENSSL_init_crypto := @FC_OPENSSL_init_crypto + {$else} + OPENSSL_init_crypto := @ERR_OPENSSL_init_crypto + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_init_crypto_removed)} + if OPENSSL_init_crypto_removed <= LibVersion then + {$if declared(_OPENSSL_init_crypto)} + OPENSSL_init_crypto := @_OPENSSL_init_crypto + {$else} + {$IF declared(ERR_OPENSSL_init_crypto)} + OPENSSL_init_crypto := @ERR_OPENSSL_init_crypto + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_init_crypto) and Assigned(AFailed) then + AFailed.Add('OPENSSL_init_crypto'); + end; + + + if not assigned(OPENSSL_thread_stop) then + begin + {$if declared(OPENSSL_thread_stop_introduced)} + if LibVersion < OPENSSL_thread_stop_introduced then + {$if declared(FC_OPENSSL_thread_stop)} + OPENSSL_thread_stop := @FC_OPENSSL_thread_stop + {$else} + OPENSSL_thread_stop := @ERR_OPENSSL_thread_stop + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_thread_stop_removed)} + if OPENSSL_thread_stop_removed <= LibVersion then + {$if declared(_OPENSSL_thread_stop)} + OPENSSL_thread_stop := @_OPENSSL_thread_stop + {$else} + {$IF declared(ERR_OPENSSL_thread_stop)} + OPENSSL_thread_stop := @ERR_OPENSSL_thread_stop + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_thread_stop) and Assigned(AFailed) then + AFailed.Add('OPENSSL_thread_stop'); + end; + + + if not assigned(OPENSSL_INIT_new) then + begin + {$if declared(OPENSSL_INIT_new_introduced)} + if LibVersion < OPENSSL_INIT_new_introduced then + {$if declared(FC_OPENSSL_INIT_new)} + OPENSSL_INIT_new := @FC_OPENSSL_INIT_new + {$else} + OPENSSL_INIT_new := @ERR_OPENSSL_INIT_new + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_INIT_new_removed)} + if OPENSSL_INIT_new_removed <= LibVersion then + {$if declared(_OPENSSL_INIT_new)} + OPENSSL_INIT_new := @_OPENSSL_INIT_new + {$else} + {$IF declared(ERR_OPENSSL_INIT_new)} + OPENSSL_INIT_new := @ERR_OPENSSL_INIT_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_INIT_new) and Assigned(AFailed) then + AFailed.Add('OPENSSL_INIT_new'); + end; + + + if not assigned(OPENSSL_INIT_free) then + begin + {$if declared(OPENSSL_INIT_free_introduced)} + if LibVersion < OPENSSL_INIT_free_introduced then + {$if declared(FC_OPENSSL_INIT_free)} + OPENSSL_INIT_free := @FC_OPENSSL_INIT_free + {$else} + OPENSSL_INIT_free := @ERR_OPENSSL_INIT_free + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_INIT_free_removed)} + if OPENSSL_INIT_free_removed <= LibVersion then + {$if declared(_OPENSSL_INIT_free)} + OPENSSL_INIT_free := @_OPENSSL_INIT_free + {$else} + {$IF declared(ERR_OPENSSL_INIT_free)} + OPENSSL_INIT_free := @ERR_OPENSSL_INIT_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_INIT_free) and Assigned(AFailed) then + AFailed.Add('OPENSSL_INIT_free'); + end; + + + if not assigned(CRYPTO_THREAD_run_once) then + begin + {$if declared(CRYPTO_THREAD_run_once_introduced)} + if LibVersion < CRYPTO_THREAD_run_once_introduced then + {$if declared(FC_CRYPTO_THREAD_run_once)} + CRYPTO_THREAD_run_once := @FC_CRYPTO_THREAD_run_once + {$else} + CRYPTO_THREAD_run_once := @ERR_CRYPTO_THREAD_run_once + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREAD_run_once_removed)} + if CRYPTO_THREAD_run_once_removed <= LibVersion then + {$if declared(_CRYPTO_THREAD_run_once)} + CRYPTO_THREAD_run_once := @_CRYPTO_THREAD_run_once + {$else} + {$IF declared(ERR_CRYPTO_THREAD_run_once)} + CRYPTO_THREAD_run_once := @ERR_CRYPTO_THREAD_run_once + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREAD_run_once) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREAD_run_once'); + end; + + + if not assigned(CRYPTO_THREAD_get_local) then + begin + {$if declared(CRYPTO_THREAD_get_local_introduced)} + if LibVersion < CRYPTO_THREAD_get_local_introduced then + {$if declared(FC_CRYPTO_THREAD_get_local)} + CRYPTO_THREAD_get_local := @FC_CRYPTO_THREAD_get_local + {$else} + CRYPTO_THREAD_get_local := @ERR_CRYPTO_THREAD_get_local + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREAD_get_local_removed)} + if CRYPTO_THREAD_get_local_removed <= LibVersion then + {$if declared(_CRYPTO_THREAD_get_local)} + CRYPTO_THREAD_get_local := @_CRYPTO_THREAD_get_local + {$else} + {$IF declared(ERR_CRYPTO_THREAD_get_local)} + CRYPTO_THREAD_get_local := @ERR_CRYPTO_THREAD_get_local + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREAD_get_local) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREAD_get_local'); + end; + + + if not assigned(CRYPTO_THREAD_set_local) then + begin + {$if declared(CRYPTO_THREAD_set_local_introduced)} + if LibVersion < CRYPTO_THREAD_set_local_introduced then + {$if declared(FC_CRYPTO_THREAD_set_local)} + CRYPTO_THREAD_set_local := @FC_CRYPTO_THREAD_set_local + {$else} + CRYPTO_THREAD_set_local := @ERR_CRYPTO_THREAD_set_local + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREAD_set_local_removed)} + if CRYPTO_THREAD_set_local_removed <= LibVersion then + {$if declared(_CRYPTO_THREAD_set_local)} + CRYPTO_THREAD_set_local := @_CRYPTO_THREAD_set_local + {$else} + {$IF declared(ERR_CRYPTO_THREAD_set_local)} + CRYPTO_THREAD_set_local := @ERR_CRYPTO_THREAD_set_local + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREAD_set_local) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREAD_set_local'); + end; + + + if not assigned(CRYPTO_THREAD_cleanup_local) then + begin + {$if declared(CRYPTO_THREAD_cleanup_local_introduced)} + if LibVersion < CRYPTO_THREAD_cleanup_local_introduced then + {$if declared(FC_CRYPTO_THREAD_cleanup_local)} + CRYPTO_THREAD_cleanup_local := @FC_CRYPTO_THREAD_cleanup_local + {$else} + CRYPTO_THREAD_cleanup_local := @ERR_CRYPTO_THREAD_cleanup_local + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREAD_cleanup_local_removed)} + if CRYPTO_THREAD_cleanup_local_removed <= LibVersion then + {$if declared(_CRYPTO_THREAD_cleanup_local)} + CRYPTO_THREAD_cleanup_local := @_CRYPTO_THREAD_cleanup_local + {$else} + {$IF declared(ERR_CRYPTO_THREAD_cleanup_local)} + CRYPTO_THREAD_cleanup_local := @ERR_CRYPTO_THREAD_cleanup_local + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREAD_cleanup_local) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREAD_cleanup_local'); + end; + + + if not assigned(CRYPTO_THREAD_get_current_id) then + begin + {$if declared(CRYPTO_THREAD_get_current_id_introduced)} + if LibVersion < CRYPTO_THREAD_get_current_id_introduced then + {$if declared(FC_CRYPTO_THREAD_get_current_id)} + CRYPTO_THREAD_get_current_id := @FC_CRYPTO_THREAD_get_current_id + {$else} + CRYPTO_THREAD_get_current_id := @ERR_CRYPTO_THREAD_get_current_id + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREAD_get_current_id_removed)} + if CRYPTO_THREAD_get_current_id_removed <= LibVersion then + {$if declared(_CRYPTO_THREAD_get_current_id)} + CRYPTO_THREAD_get_current_id := @_CRYPTO_THREAD_get_current_id + {$else} + {$IF declared(ERR_CRYPTO_THREAD_get_current_id)} + CRYPTO_THREAD_get_current_id := @ERR_CRYPTO_THREAD_get_current_id + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREAD_get_current_id) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREAD_get_current_id'); + end; + + + if not assigned(CRYPTO_THREAD_compare_id) then + begin + {$if declared(CRYPTO_THREAD_compare_id_introduced)} + if LibVersion < CRYPTO_THREAD_compare_id_introduced then + {$if declared(FC_CRYPTO_THREAD_compare_id)} + CRYPTO_THREAD_compare_id := @FC_CRYPTO_THREAD_compare_id + {$else} + CRYPTO_THREAD_compare_id := @ERR_CRYPTO_THREAD_compare_id + {$ifend} + else + {$ifend} + {$if declared(CRYPTO_THREAD_compare_id_removed)} + if CRYPTO_THREAD_compare_id_removed <= LibVersion then + {$if declared(_CRYPTO_THREAD_compare_id)} + CRYPTO_THREAD_compare_id := @_CRYPTO_THREAD_compare_id + {$else} + {$IF declared(ERR_CRYPTO_THREAD_compare_id)} + CRYPTO_THREAD_compare_id := @ERR_CRYPTO_THREAD_compare_id + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(CRYPTO_THREAD_compare_id) and Assigned(AFailed) then + AFailed.Add('CRYPTO_THREAD_compare_id'); + end; + + + if not assigned(SSLeay_version) then + begin + {$if declared(SSLeay_version_introduced)} + if LibVersion < SSLeay_version_introduced then + {$if declared(FC_SSLeay_version)} + SSLeay_version := @FC_SSLeay_version + {$else} + SSLeay_version := @ERR_SSLeay_version + {$ifend} + else + {$ifend} + {$if declared(SSLeay_version_removed)} + if SSLeay_version_removed <= LibVersion then + {$if declared(_SSLeay_version)} + SSLeay_version := @_SSLeay_version + {$else} + {$IF declared(ERR_SSLeay_version)} + SSLeay_version := @ERR_SSLeay_version + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLeay_version) and Assigned(AFailed) then + AFailed.Add('SSLeay_version'); + end; + + + if not assigned(SSLeay) then + begin + {$if declared(SSLeay_introduced)} + if LibVersion < SSLeay_introduced then + {$if declared(FC_SSLeay)} + SSLeay := @FC_SSLeay + {$else} + SSLeay := @ERR_SSLeay + {$ifend} + else + {$ifend} + {$if declared(SSLeay_removed)} + if SSLeay_removed <= LibVersion then + {$if declared(_SSLeay)} + SSLeay := @_SSLeay + {$else} + {$IF declared(ERR_SSLeay)} + SSLeay := @ERR_SSLeay + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLeay) and Assigned(AFailed) then + AFailed.Add('SSLeay'); + end; + + +end; + +procedure Unload; +begin + OPENSSL_malloc := nil; {removed 1.0.0} + OPENSSL_zalloc := nil; {removed 1.0.0} + OPENSSL_realloc := nil; {removed 1.0.0} + OPENSSL_clear_realloc := nil; {removed 1.0.0} + OPENSSL_clear_free := nil; {removed 1.0.0} + OPENSSL_free := nil; {removed 1.0.0} + OPENSSL_memdup := nil; {removed 1.0.0} + OPENSSL_strdup := nil; {removed 1.0.0} + OPENSSL_strndup := nil; {removed 1.0.0} + OPENSSL_secure_malloc := nil; {removed 1.0.0} + OPENSSL_secure_zalloc := nil; {removed 1.0.0} + OPENSSL_secure_free := nil; {removed 1.0.0} + OPENSSL_secure_clear_free := nil; {removed 1.0.0} + OPENSSL_secure_actual_size := nil; {removed 1.0.0} + CRYPTO_THREAD_lock_new := nil; {introduced 1.1.0} + CRYPTO_THREAD_read_lock := nil; {introduced 1.1.0} + CRYPTO_THREAD_write_lock := nil; {introduced 1.1.0} + CRYPTO_THREAD_unlock := nil; {introduced 1.1.0} + CRYPTO_THREAD_lock_free := nil; {introduced 1.1.0} + CRYPTO_atomic_add := nil; {introduced 1.1.0} + CRYPTO_mem_ctrl := nil; {removed 3.0.0} + OPENSSL_strlcpy := nil; {introduced 1.1.0} + OPENSSL_strlcat := nil; {introduced 1.1.0} + OPENSSL_strnlen := nil; {introduced 1.1.0} + OPENSSL_buf2hexstr := nil; {introduced 1.1.0} + OPENSSL_hexstr2buf := nil; {introduced 1.1.0} + OPENSSL_hexchar2int := nil; {introduced 1.1.0} + OpenSSL_version_num := nil; {introduced 1.1.0} + OpenSSL_version := nil; {introduced 1.1.0} + OPENSSL_issetugid := nil; + CRYPTO_new_ex_data := nil; + CRYPTO_dup_ex_data := nil; + CRYPTO_free_ex_data := nil; + CRYPTO_set_ex_data := nil; + CRYPTO_get_ex_data := nil; + CRYPTO_num_locks := nil; {removed 1.1.0} + CRYPTO_set_locking_callback := nil; {removed 1.1.0} + CRYPTO_THREADID_set_numeric := nil; {removed 1.1.0} + CRYPTO_THREADID_set_callback := nil; {removed 1.1.0} + CRYPTO_set_id_callback := nil; {removed 1.1.0} + CRYPTO_set_mem_functions := nil; + CRYPTO_set_mem_debug := nil; {introduced 1.1.0 removed 3.0.0} + CRYPTO_malloc := nil; + CRYPTO_zalloc := nil; {introduced 1.1.0} + CRYPTO_memdup := nil; {introduced 1.1.0} + CRYPTO_strdup := nil; + CRYPTO_strndup := nil; {introduced 1.1.0} + CRYPTO_free := nil; + CRYPTO_clear_free := nil; {introduced 1.1.0} + CRYPTO_realloc := nil; + CRYPTO_clear_realloc := nil; {introduced 1.1.0} + CRYPTO_secure_malloc_init := nil; {introduced 1.1.0} + CRYPTO_secure_malloc_done := nil; {introduced 1.1.0} + CRYPTO_secure_malloc := nil; {introduced 1.1.0} + CRYPTO_secure_zalloc := nil; {introduced 1.1.0} + CRYPTO_secure_free := nil; {introduced 1.1.0} + CRYPTO_secure_clear_free := nil; {introduced 1.1.0} + CRYPTO_secure_allocated := nil; {introduced 1.1.0} + CRYPTO_secure_malloc_initialized := nil; {introduced 1.1.0} + CRYPTO_secure_actual_size := nil; {introduced 1.1.0} + CRYPTO_secure_used := nil; {introduced 1.1.0} + OPENSSL_cleanse := nil; + OPENSSL_isservice := nil; + FIPS_mode := nil; {removed 3.0.0} + FIPS_mode_set := nil; {removed 3.0.0} + OPENSSL_init := nil; + CRYPTO_memcmp := nil; + OPENSSL_cleanup := nil; {introduced 1.1.0} + OPENSSL_init_crypto := nil; {introduced 1.1.0} + OPENSSL_thread_stop := nil; {introduced 1.1.0} + OPENSSL_INIT_new := nil; {introduced 1.1.0} + OPENSSL_INIT_free := nil; {introduced 1.1.0} + CRYPTO_THREAD_run_once := nil; {introduced 1.1.0} + CRYPTO_THREAD_get_local := nil; {introduced 1.1.0} + CRYPTO_THREAD_set_local := nil; {introduced 1.1.0} + CRYPTO_THREAD_cleanup_local := nil; {introduced 1.1.0} + CRYPTO_THREAD_get_current_id := nil; {introduced 1.1.0} + CRYPTO_THREAD_compare_id := nil; {introduced 1.1.0} + SSLeay_version := nil; {removed 1.1.0} + SSLeay := nil; {removed 1.1.0} +end; +{$ELSE} +function OPENSSL_malloc(num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_malloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_zalloc(num) CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_zalloc(num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_zalloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_realloc(addr, num) CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_realloc(addr: Pointer; num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_realloc(addr, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_clear_realloc(addr, old_num, num) CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_clear_realloc(addr: Pointer; old_num: TIdC_SIZET; num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_clear_realloc(addr, old_num, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_clear_free(addr, num) CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE) +procedure OPENSSL_clear_free(addr: Pointer; num: TIdC_SIZET); +begin + CRYPTO_clear_free(addr, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_free(addr) CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE) +procedure OPENSSL_free(addr: Pointer); +begin + CRYPTO_free(addr, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_memdup(str, s) CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_memdup(const str: Pointer; s: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_memdup(str, s, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_strdup(str) CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_strdup(const str: PIdAnsiChar): PIdAnsiChar; +begin + Result := CRYPTO_strdup(str, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_strndup(str, n) CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_strndup(const str: PIdAnsiChar; n: TIdC_SIZET): PIdAnsiChar; +begin + Result := CRYPTO_strndup(str, n, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_malloc(num) CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_secure_malloc(num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_secure_malloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_zalloc(num) CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_secure_zalloc(num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_secure_zalloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_free(addr) CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE) +procedure OPENSSL_secure_free(addr: Pointer); +begin + CRYPTO_secure_free(addr, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_clear_free(addr, num) CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE) +procedure OPENSSL_secure_clear_free(addr: Pointer; num: TIdC_SIZET); +begin + CRYPTO_secure_clear_free(addr, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_actual_size(ptr) CRYPTO_secure_actual_size(ptr) +function OPENSSL_secure_actual_size(ptr: Pointer): TIdC_SIZET; +begin + Result := CRYPTO_secure_actual_size(ptr); +end; + +function CRYPTO_num_locks: TIdC_INT; +begin + Result := 0; +end; + +procedure CRYPTO_set_locking_callback; +begin +end; + +procedure CRYPTO_set_id_callback(func: TIdSslIdCallback); +begin +end; + +function SSLeay_version(type_ : TIdC_INT) : PIdAnsiChar; +begin + Result := OpenSSL_version(type_); +end; + +function SSLeay: TIdC_ULONG; +begin + Result := OpenSSL_version_num(); +end; + +procedure CRYPTO_THREADID_set_numeric(id : PCRYPTO_THREADID; val: TIdC_ULONG); +begin +end; + +procedure CRYPTO_THREADID_set_callback(threadid_func: Tthreadid_func); +begin +end; + + +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cryptoerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cryptoerr.pas new file mode 100644 index 000000000..4d2a7d4af --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cryptoerr.pas @@ -0,0 +1,135 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_cryptoerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_cryptoerr.h2pas + and this file regenerated. IdOpenSSLHeaders_cryptoerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cryptoerr; + +interface + +// Headers for OpenSSL 1.1.1 +// cryptoerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * CRYPTO function codes. + *) + CRYPTO_F_CMAC_CTX_NEW = 120; + CRYPTO_F_CRYPTO_DUP_EX_DATA = 110; + CRYPTO_F_CRYPTO_FREE_EX_DATA = 111; + CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX = 100; + CRYPTO_F_CRYPTO_MEMDUP = 115; + CRYPTO_F_CRYPTO_NEW_EX_DATA = 112; + CRYPTO_F_CRYPTO_OCB128_COPY_CTX = 121; + CRYPTO_F_CRYPTO_OCB128_INIT = 122; + CRYPTO_F_CRYPTO_SET_EX_DATA = 102; + CRYPTO_F_FIPS_MODE_SET = 109; + CRYPTO_F_GET_AND_LOCK = 113; + CRYPTO_F_OPENSSL_ATEXIT = 114; + CRYPTO_F_OPENSSL_BUF2HEXSTR = 117; + CRYPTO_F_OPENSSL_FOPEN = 119; + CRYPTO_F_OPENSSL_HEXSTR2BUF = 118; + CRYPTO_F_OPENSSL_INIT_CRYPTO = 116; + CRYPTO_F_OPENSSL_LH_NEW = 126; + CRYPTO_F_OPENSSL_SK_DEEP_COPY = 127; + CRYPTO_F_OPENSSL_SK_DUP = 128; + CRYPTO_F_PKEY_HMAC_INIT = 123; + CRYPTO_F_PKEY_POLY1305_INIT = 124; + CRYPTO_F_PKEY_SIPHASH_INIT = 125; + CRYPTO_F_SK_RESERVE = 129; + + (* + * CRYPTO reason codes. + *) + CRYPTO_R_FIPS_MODE_NOT_SUPPORTED = 101; + CRYPTO_R_ILLEGAL_HEX_DIGIT = 102; + CRYPTO_R_ODD_NUMBER_OF_DIGITS = 103; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_CRYPTO_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_CRYPTO_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_CRYPTO_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_CRYPTO_strings := LoadFunction('ERR_load_CRYPTO_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_CRYPTO_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cterr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cterr.pas new file mode 100644 index 000000000..0d3455f24 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_cterr.pas @@ -0,0 +1,154 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_cterr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_cterr.h2pas + and this file regenerated. IdOpenSSLHeaders_cterr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cterr; + +interface + +// Headers for OpenSSL 1.1.1 +// cterr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + ///* + // * CT function codes. + // */ + CT_F_CTLOG_NEW = 117; + CT_F_CTLOG_NEW_FROM_BASE64 = 118; + CT_F_CTLOG_NEW_FROM_CONF = 119; + CT_F_CTLOG_STORE_LOAD_CTX_NEW = 122; + CT_F_CTLOG_STORE_LOAD_FILE = 123; + CT_F_CTLOG_STORE_LOAD_LOG = 130; + CT_F_CTLOG_STORE_NEW = 131; + CT_F_CT_BASE64_DECODE = 124; + CT_F_CT_POLICY_EVAL_CTX_NEW = 133; + CT_F_CT_V1_LOG_ID_FROM_PKEY = 125; + CT_F_I2O_SCT = 107; + CT_F_I2O_SCT_LIST = 108; + CT_F_I2O_SCT_SIGNATURE = 109; + CT_F_O2I_SCT = 110; + CT_F_O2I_SCT_LIST = 111; + CT_F_O2I_SCT_SIGNATURE = 112; + CT_F_SCT_CTX_NEW = 126; + CT_F_SCT_CTX_VERIFY = 128; + CT_F_SCT_NEW = 100; + CT_F_SCT_NEW_FROM_BASE64 = 127; + CT_F_SCT_SET0_LOG_ID = 101; + CT_F_SCT_SET1_EXTENSIONS = 114; + CT_F_SCT_SET1_LOG_ID = 115; + CT_F_SCT_SET1_SIGNATURE = 116; + CT_F_SCT_SET_LOG_ENTRY_TYPE = 102; + CT_F_SCT_SET_SIGNATURE_NID = 103; + CT_F_SCT_SET_VERSION = 104; + + + ///* + // * CT reason codes. + // */ + CT_R_BASE64_DECODE_ERROR = 108; + CT_R_INVALID_LOG_ID_LENGTH = 100; + CT_R_LOG_CONF_INVALID = 109; + CT_R_LOG_CONF_INVALID_KEY = 110; + CT_R_LOG_CONF_MISSING_DESCRIPTION = 111; + CT_R_LOG_CONF_MISSING_KEY = 112; + CT_R_LOG_KEY_INVALID = 113; + CT_R_SCT_FUTURE_TIMESTAMP = 116; + CT_R_SCT_INVALID = 104; + CT_R_SCT_INVALID_SIGNATURE = 107; + CT_R_SCT_LIST_INVALID = 105; + CT_R_SCT_LOG_ID_MISMATCH = 114; + CT_R_SCT_NOT_SET = 106; + CT_R_SCT_UNSUPPORTED_VERSION = 115; + CT_R_UNRECOGNIZED_SIGNATURE_NID = 101; + CT_R_UNSUPPORTED_ENTRY_TYPE = 102; + CT_R_UNSUPPORTED_VERSION = 103; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_CT_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_CT_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_CT_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_CT_strings := LoadFunction('ERR_load_CT_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_CT_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_des.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_des.pas new file mode 100644 index 000000000..6f489a1e2 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_des.pas @@ -0,0 +1,708 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_des.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_des.h2pas + and this file regenerated. IdOpenSSLHeaders_des.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + + +unit IdOpenSSLHeaders_des; + +interface + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +{ + Automatically converted by H2Pas 1.0.0 from des.h + The following command line parameters were used: + des.h +} + + Type + DES_LONG = type cardinal; + Pconst_DES_cblock = ^const_DES_cblock; + PDES_cblock = ^DES_cblock; + PDES_key_schedule = ^DES_key_schedule; + PDES_LONG = ^DES_LONG; + + + DES_cblock = array[0..7] of byte; + { const } + const_DES_cblock = array[0..7] of byte; + { + * With "const", gcc 2.8.1 on Solaris thinks that DES_cblock * and + * const_DES_cblock * are incompatible pointer types. + } + { + * make sure things are correct size on machines with 8 byte longs + } + + DES_ks = record + ks : array[0..15] of record + case longint of + 0 : ( cblock : DES_cblock ); + 1 : ( deslong : array[0..1] of DES_LONG ); + end; + end; + DES_key_schedule = DES_ks; + +var + DES_check_key : longint; + + + const + DES_ENCRYPT = 1; + DES_DECRYPT = 0; + DES_CBC_MODE = 0; + DES_PCBC_MODE = 1; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM DES_options} + {$EXTERNALSYM DES_ecb3_encrypt} + {$EXTERNALSYM DES_cbc_cksum} + {$EXTERNALSYM DES_cbc_encrypt} + {$EXTERNALSYM DES_ncbc_encrypt} + {$EXTERNALSYM DES_xcbc_encrypt} + {$EXTERNALSYM DES_cfb_encrypt} + {$EXTERNALSYM DES_ecb_encrypt} + {$EXTERNALSYM DES_encrypt1} + {$EXTERNALSYM DES_encrypt2} + {$EXTERNALSYM DES_encrypt3} + {$EXTERNALSYM DES_decrypt3} + {$EXTERNALSYM DES_ede3_cbc_encrypt} + {$EXTERNALSYM DES_ede3_cfb64_encrypt} + {$EXTERNALSYM DES_ede3_cfb_encrypt} + {$EXTERNALSYM DES_ede3_ofb64_encrypt} + {$EXTERNALSYM DES_fcrypt} + {$EXTERNALSYM DES_crypt} + {$EXTERNALSYM DES_ofb_encrypt} + {$EXTERNALSYM DES_pcbc_encrypt} + {$EXTERNALSYM DES_quad_cksum} + {$EXTERNALSYM DES_random_key} + {$EXTERNALSYM DES_set_odd_parity} + {$EXTERNALSYM DES_check_key_parity} + {$EXTERNALSYM DES_is_weak_key} + {$EXTERNALSYM DES_set_key} + {$EXTERNALSYM DES_key_sched} + {$EXTERNALSYM DES_set_key_checked} + {$EXTERNALSYM DES_set_key_unchecked} + {$EXTERNALSYM DES_string_to_key} + {$EXTERNALSYM DES_string_to_2keys} + {$EXTERNALSYM DES_cfb64_encrypt} + {$EXTERNALSYM DES_ofb64_encrypt} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + {$EXTERNALSYM DES_ecb2_encrypt} {removed 1.0.0} + {$EXTERNALSYM DES_ede2_cbc_encrypt} {removed 1.0.0} + {$EXTERNALSYM DES_ede2_cfb64_encrypt} {removed 1.0.0} + {$EXTERNALSYM DES_ede2_ofb64_encrypt} {removed 1.0.0} + {$EXTERNALSYM DES_fixup_key_parity} {removed 1.0.0} + DES_ecb2_encrypt: procedure(input:Pconst_DES_cblock; output:PDES_cblock; ks1:PDES_key_schedule; ks2:PDES_key_schedule; enc:longint); cdecl = nil; {removed 1.0.0} + DES_ede2_cbc_encrypt: procedure(input:Pbyte; output:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; enc:longint); cdecl = nil; {removed 1.0.0} + DES_ede2_cfb64_encrypt: procedure(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; num:Plongint; enc:longint); cdecl = nil; {removed 1.0.0} + DES_ede2_ofb64_encrypt: procedure(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; num:Plongint); cdecl = nil; {removed 1.0.0} + + +(* Const before type ignored *) + DES_options: function: PIdAnsiChar; cdecl = nil; + + DES_ecb3_encrypt: procedure(input:Pconst_DES_cblock; output:PDES_cblock; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; enc:longint); cdecl = nil; + +(* Const before type ignored *) + DES_cbc_cksum: function(input:Pbyte; output:PDES_cblock; length:longint; schedule:PDES_key_schedule; ivec:Pconst_DES_cblock):DES_LONG; cdecl = nil; + + { DES_cbc_encrypt does not update the IV! Use DES_ncbc_encrypt instead. } +(* Const before type ignored *) + DES_cbc_encrypt: procedure(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint); cdecl = nil; + +(* Const before type ignored *) + DES_ncbc_encrypt: procedure(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint); cdecl = nil; + +(* Const before type ignored *) + DES_xcbc_encrypt: procedure(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; inw:Pconst_DES_cblock; outw:Pconst_DES_cblock; enc:longint); cdecl = nil; + +(* Const before type ignored *) + DES_cfb_encrypt: procedure(in_:Pbyte; out_:Pbyte; numbits:longint; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint); cdecl = nil; + + DES_ecb_encrypt: procedure(input:Pconst_DES_cblock; output:PDES_cblock; ks:PDES_key_schedule; enc:longint); cdecl = nil; + { + * This is the DES encryption function that gets called by just about every + * other DES routine in the library. You should not use this function except + * to implement 'modes' of DES. I say this because the functions that call + * this routine do the conversion from 'char *' to long, and this needs to be + * done to make sure 'non-aligned' memory access do not occur. The + * characters are loaded 'little endian'. Data is a pointer to 2 unsigned + * long's and ks is the DES_key_schedule to use. enc, is non zero specifies + * encryption, zero if decryption. + } + DES_encrypt1: procedure(data:PDES_LONG; ks:PDES_key_schedule; enc:longint); cdecl = nil; + + { + * This functions is the same as DES_encrypt1() except that the DES initial + * permutation (IP) and final permutation (FP) have been left out. As for + * DES_encrypt1(), you should not use this function. It is used by the + * routines in the library that implement triple DES. IP() DES_encrypt2() + * DES_encrypt2() DES_encrypt2() FP() is the same as DES_encrypt1() + * DES_encrypt1() DES_encrypt1() except faster :-). + } + DES_encrypt2: procedure(data:PDES_LONG; ks:PDES_key_schedule; enc:longint); cdecl = nil; + + DES_encrypt3: procedure(data:PDES_LONG; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule); cdecl = nil; + + DES_decrypt3: procedure(data:PDES_LONG; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule); cdecl = nil; + +(* Const before type ignored *) + DES_ede3_cbc_encrypt: procedure(input:Pbyte; output:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; enc:longint); cdecl = nil; + +(* Const before type ignored *) + DES_ede3_cfb64_encrypt: procedure(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; num:Plongint; enc:longint); cdecl = nil; + +(* Const before type ignored *) + DES_ede3_cfb_encrypt: procedure(in_:Pbyte; out_:Pbyte; numbits:longint; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; enc:longint); cdecl = nil; + +(* Const before type ignored *) + DES_ede3_ofb64_encrypt: procedure(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; num:Plongint); cdecl = nil; + +(* Const before type ignored *) +(* Const before type ignored *) + DES_fcrypt: function(buf:PIdAnsiChar; salt:PIdAnsiChar; ret:PIdAnsiChar): PIdAnsiChar; cdecl = nil; + +(* Const before type ignored *) +(* Const before type ignored *) + DES_crypt: function(buf:PIdAnsiChar; salt:PIdAnsiChar): PIdAnsiChar; cdecl = nil; + +(* Const before type ignored *) + DES_ofb_encrypt: procedure(in_:Pbyte; out_:Pbyte; numbits:longint; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock); cdecl = nil; + +(* Const before type ignored *) + DES_pcbc_encrypt: procedure(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint); cdecl = nil; + +(* Const before type ignored *) + DES_quad_cksum: function(input:Pbyte; output:PDES_cblock; length:longint; out_count:longint; seed:PDES_cblock):DES_LONG; cdecl = nil; + + DES_random_key: function(ret:PDES_cblock):longint; cdecl = nil; + + DES_set_odd_parity: procedure(key:PDES_cblock); cdecl = nil; + + DES_check_key_parity: function(key:Pconst_DES_cblock):longint; cdecl = nil; + + DES_is_weak_key: function(key:Pconst_DES_cblock):longint; cdecl = nil; + + { + * DES_set_key (= set_key = DES_key_sched = key_sched) calls + * DES_set_key_checked if global variable DES_check_key is set, + * DES_set_key_unchecked otherwise. + } + DES_set_key: function(key:Pconst_DES_cblock; var schedule: DES_key_schedule):longint; cdecl = nil; + + DES_key_sched: function(key:Pconst_DES_cblock; schedule:PDES_key_schedule):longint; cdecl = nil; + + DES_set_key_checked: function(key:Pconst_DES_cblock; schedule:PDES_key_schedule):longint; cdecl = nil; + + DES_set_key_unchecked: procedure(key:Pconst_DES_cblock; schedule:PDES_key_schedule); cdecl = nil; + +(* Const before type ignored *) + DES_string_to_key: procedure(str:PIdAnsiChar; key:PDES_cblock); cdecl = nil; + +(* Const before type ignored *) + DES_string_to_2keys: procedure(str:PIdAnsiChar; key1:PDES_cblock; key2:PDES_cblock); cdecl = nil; + +(* Const before type ignored *) + DES_cfb64_encrypt: procedure(in_:Pbyte; out_:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; num:Plongint; enc:longint); cdecl = nil; + +(* Const before type ignored *) + DES_ofb64_encrypt: procedure(in_:Pbyte; out_:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; num:Plongint); cdecl = nil; + + DES_fixup_key_parity: procedure(key: PDES_cblock); cdecl = nil; {removed 1.0.0} + +{$ELSE} + + +(* Const before type ignored *) + function DES_options: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure DES_ecb3_encrypt(input:Pconst_DES_cblock; output:PDES_cblock; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + function DES_cbc_cksum(input:Pbyte; output:PDES_cblock; length:longint; schedule:PDES_key_schedule; ivec:Pconst_DES_cblock):DES_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + { DES_cbc_encrypt does not update the IV! Use DES_ncbc_encrypt instead. } +(* Const before type ignored *) + procedure DES_cbc_encrypt(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_ncbc_encrypt(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_xcbc_encrypt(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; inw:Pconst_DES_cblock; outw:Pconst_DES_cblock; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_cfb_encrypt(in_:Pbyte; out_:Pbyte; numbits:longint; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure DES_ecb_encrypt(input:Pconst_DES_cblock; output:PDES_cblock; ks:PDES_key_schedule; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + { + * This is the DES encryption function that gets called by just about every + * other DES routine in the library. You should not use this function except + * to implement 'modes' of DES. I say this because the functions that call + * this routine do the conversion from 'char *' to long, and this needs to be + * done to make sure 'non-aligned' memory access do not occur. The + * characters are loaded 'little endian'. Data is a pointer to 2 unsigned + * long's and ks is the DES_key_schedule to use. enc, is non zero specifies + * encryption, zero if decryption. + } + procedure DES_encrypt1(data:PDES_LONG; ks:PDES_key_schedule; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + { + * This functions is the same as DES_encrypt1() except that the DES initial + * permutation (IP) and final permutation (FP) have been left out. As for + * DES_encrypt1(), you should not use this function. It is used by the + * routines in the library that implement triple DES. IP() DES_encrypt2() + * DES_encrypt2() DES_encrypt2() FP() is the same as DES_encrypt1() + * DES_encrypt1() DES_encrypt1() except faster :-). + } + procedure DES_encrypt2(data:PDES_LONG; ks:PDES_key_schedule; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure DES_encrypt3(data:PDES_LONG; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure DES_decrypt3(data:PDES_LONG; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_ede3_cbc_encrypt(input:Pbyte; output:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_ede3_cfb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; num:Plongint; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_ede3_cfb_encrypt(in_:Pbyte; out_:Pbyte; numbits:longint; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_ede3_ofb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; num:Plongint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) +(* Const before type ignored *) + function DES_fcrypt(buf:PIdAnsiChar; salt:PIdAnsiChar; ret:PIdAnsiChar): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) +(* Const before type ignored *) + function DES_crypt(buf:PIdAnsiChar; salt:PIdAnsiChar): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_ofb_encrypt(in_:Pbyte; out_:Pbyte; numbits:longint; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_pcbc_encrypt(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + function DES_quad_cksum(input:Pbyte; output:PDES_cblock; length:longint; out_count:longint; seed:PDES_cblock):DES_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DES_random_key(ret:PDES_cblock):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure DES_set_odd_parity(key:PDES_cblock) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DES_check_key_parity(key:Pconst_DES_cblock):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DES_is_weak_key(key:Pconst_DES_cblock):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + { + * DES_set_key (= set_key = DES_key_sched = key_sched) calls + * DES_set_key_checked if global variable DES_check_key is set, + * DES_set_key_unchecked otherwise. + } + function DES_set_key(key:Pconst_DES_cblock; var schedule: DES_key_schedule):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DES_key_sched(key:Pconst_DES_cblock; schedule:PDES_key_schedule):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DES_set_key_checked(key:Pconst_DES_cblock; schedule:PDES_key_schedule):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure DES_set_key_unchecked(key:Pconst_DES_cblock; schedule:PDES_key_schedule) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_string_to_key(str:PIdAnsiChar; key:PDES_cblock) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_string_to_2keys(str:PIdAnsiChar; key1:PDES_cblock; key2:PDES_cblock) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_cfb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; num:Plongint; enc:longint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +(* Const before type ignored *) + procedure DES_ofb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; num:Plongint) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + + procedure DES_ecb2_encrypt(input:Pconst_DES_cblock; output:PDES_cblock; ks1:PDES_key_schedule; ks2:PDES_key_schedule; enc:longint); {removed 1.0.0} + procedure DES_ede2_cbc_encrypt(input:Pbyte; output:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; enc:longint); {removed 1.0.0} + procedure DES_ede2_cfb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; num:Plongint; enc:longint); {removed 1.0.0} + procedure DES_ede2_ofb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; num:Plongint); {removed 1.0.0} + procedure DES_fixup_key_parity(key: PDES_cblock); {removed 1.0.0} +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + DES_ecb2_encrypt_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + DES_ede2_cbc_encrypt_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + DES_ede2_cfb64_encrypt_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + DES_ede2_ofb64_encrypt_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + DES_fixup_key_parity_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +procedure _DES_ecb2_encrypt(input:Pconst_DES_cblock; output:PDES_cblock; ks1: PDES_key_schedule; ks2: PDES_key_schedule; enc: longint); cdecl; + begin + DES_ecb3_encrypt(input,output,ks1,ks2,ks1,enc); + end; + +procedure _DES_ede2_cbc_encrypt(input:Pbyte; output:Pbyte; length: longint; ks1: PDES_key_schedule; ks2: PDES_key_schedule; ivec: PDES_cblock; enc: longint); cdecl; + begin + DES_ede3_cbc_encrypt(input,output,length,ks1,ks2,ks1,ivec,enc); + end; + +procedure _DES_ede2_cfb64_encrypt(in_: Pbyte; out_: Pbyte; length: longint; ks1: PDES_key_schedule; ks2: PDES_key_schedule; ivec: PDES_cblock; num: Plongint; enc: longint); cdecl; + begin + DES_ede3_cfb64_encrypt(in_,out_,length,ks1,ks2,ks1,ivec,num,enc); + end; + +procedure _DES_ede2_ofb64_encrypt(in_: Pbyte; out_: Pbyte; length: longint; ks1: PDES_key_schedule; ks2: PDES_key_schedule; ivec: PDES_cblock; num: Plongint); cdecl; + begin + DES_ede3_ofb64_encrypt(in_,out_,length,ks1,ks2,ks1,ivec,num); + end; + +procedure _DES_fixup_key_parity(key:PDES_cblock); cdecl; + begin + DES_set_odd_parity(key); + end; + + +{$WARN NO_RETVAL OFF} +procedure ERR_DES_ecb2_encrypt(input:Pconst_DES_cblock; output:PDES_cblock; ks1:PDES_key_schedule; ks2:PDES_key_schedule; enc:longint); +begin + EIdAPIFunctionNotPresent.RaiseException('DES_ecb2_encrypt'); +end; + + +procedure ERR_DES_ede2_cbc_encrypt(input:Pbyte; output:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; enc:longint); +begin + EIdAPIFunctionNotPresent.RaiseException('DES_ede2_cbc_encrypt'); +end; + + +procedure ERR_DES_ede2_cfb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; num:Plongint; enc:longint); +begin + EIdAPIFunctionNotPresent.RaiseException('DES_ede2_cfb64_encrypt'); +end; + + +procedure ERR_DES_ede2_ofb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; num:Plongint); +begin + EIdAPIFunctionNotPresent.RaiseException('DES_ede2_ofb64_encrypt'); +end; + + +procedure ERR_DES_fixup_key_parity(key: PDES_cblock); +begin + EIdAPIFunctionNotPresent.RaiseException('DES_fixup_key_parity'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + DES_options := LoadFunction('DES_options',AFailed); + DES_ecb3_encrypt := LoadFunction('DES_ecb3_encrypt',AFailed); + DES_cbc_cksum := LoadFunction('DES_cbc_cksum',AFailed); + DES_cbc_encrypt := LoadFunction('DES_cbc_encrypt',AFailed); + DES_ncbc_encrypt := LoadFunction('DES_ncbc_encrypt',AFailed); + DES_xcbc_encrypt := LoadFunction('DES_xcbc_encrypt',AFailed); + DES_cfb_encrypt := LoadFunction('DES_cfb_encrypt',AFailed); + DES_ecb_encrypt := LoadFunction('DES_ecb_encrypt',AFailed); + DES_encrypt1 := LoadFunction('DES_encrypt1',AFailed); + DES_encrypt2 := LoadFunction('DES_encrypt2',AFailed); + DES_encrypt3 := LoadFunction('DES_encrypt3',AFailed); + DES_decrypt3 := LoadFunction('DES_decrypt3',AFailed); + DES_ede3_cbc_encrypt := LoadFunction('DES_ede3_cbc_encrypt',AFailed); + DES_ede3_cfb64_encrypt := LoadFunction('DES_ede3_cfb64_encrypt',AFailed); + DES_ede3_cfb_encrypt := LoadFunction('DES_ede3_cfb_encrypt',AFailed); + DES_ede3_ofb64_encrypt := LoadFunction('DES_ede3_ofb64_encrypt',AFailed); + DES_fcrypt := LoadFunction('DES_fcrypt',AFailed); + DES_crypt := LoadFunction('DES_crypt',AFailed); + DES_ofb_encrypt := LoadFunction('DES_ofb_encrypt',AFailed); + DES_pcbc_encrypt := LoadFunction('DES_pcbc_encrypt',AFailed); + DES_quad_cksum := LoadFunction('DES_quad_cksum',AFailed); + DES_random_key := LoadFunction('DES_random_key',AFailed); + DES_set_odd_parity := LoadFunction('DES_set_odd_parity',AFailed); + DES_check_key_parity := LoadFunction('DES_check_key_parity',AFailed); + DES_is_weak_key := LoadFunction('DES_is_weak_key',AFailed); + DES_set_key := LoadFunction('DES_set_key',AFailed); + DES_key_sched := LoadFunction('DES_key_sched',AFailed); + DES_set_key_checked := LoadFunction('DES_set_key_checked',AFailed); + DES_set_key_unchecked := LoadFunction('DES_set_key_unchecked',AFailed); + DES_string_to_key := LoadFunction('DES_string_to_key',AFailed); + DES_string_to_2keys := LoadFunction('DES_string_to_2keys',AFailed); + DES_cfb64_encrypt := LoadFunction('DES_cfb64_encrypt',AFailed); + DES_ofb64_encrypt := LoadFunction('DES_ofb64_encrypt',AFailed); + DES_ecb2_encrypt := LoadFunction('DES_ecb2_encrypt',nil); {removed 1.0.0} + DES_ede2_cbc_encrypt := LoadFunction('DES_ede2_cbc_encrypt',nil); {removed 1.0.0} + DES_ede2_cfb64_encrypt := LoadFunction('DES_ede2_cfb64_encrypt',nil); {removed 1.0.0} + DES_ede2_ofb64_encrypt := LoadFunction('DES_ede2_ofb64_encrypt',nil); {removed 1.0.0} + DES_fixup_key_parity := LoadFunction('DES_fixup_key_parity',nil); {removed 1.0.0} + if not assigned(DES_ecb2_encrypt) then + begin + {$if declared(DES_ecb2_encrypt_introduced)} + if LibVersion < DES_ecb2_encrypt_introduced then + {$if declared(FC_DES_ecb2_encrypt)} + DES_ecb2_encrypt := @FC_DES_ecb2_encrypt + {$else} + DES_ecb2_encrypt := @ERR_DES_ecb2_encrypt + {$ifend} + else + {$ifend} + {$if declared(DES_ecb2_encrypt_removed)} + if DES_ecb2_encrypt_removed <= LibVersion then + {$if declared(_DES_ecb2_encrypt)} + DES_ecb2_encrypt := @_DES_ecb2_encrypt + {$else} + {$IF declared(ERR_DES_ecb2_encrypt)} + DES_ecb2_encrypt := @ERR_DES_ecb2_encrypt + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DES_ecb2_encrypt) and Assigned(AFailed) then + AFailed.Add('DES_ecb2_encrypt'); + end; + + + if not assigned(DES_ede2_cbc_encrypt) then + begin + {$if declared(DES_ede2_cbc_encrypt_introduced)} + if LibVersion < DES_ede2_cbc_encrypt_introduced then + {$if declared(FC_DES_ede2_cbc_encrypt)} + DES_ede2_cbc_encrypt := @FC_DES_ede2_cbc_encrypt + {$else} + DES_ede2_cbc_encrypt := @ERR_DES_ede2_cbc_encrypt + {$ifend} + else + {$ifend} + {$if declared(DES_ede2_cbc_encrypt_removed)} + if DES_ede2_cbc_encrypt_removed <= LibVersion then + {$if declared(_DES_ede2_cbc_encrypt)} + DES_ede2_cbc_encrypt := @_DES_ede2_cbc_encrypt + {$else} + {$IF declared(ERR_DES_ede2_cbc_encrypt)} + DES_ede2_cbc_encrypt := @ERR_DES_ede2_cbc_encrypt + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DES_ede2_cbc_encrypt) and Assigned(AFailed) then + AFailed.Add('DES_ede2_cbc_encrypt'); + end; + + + if not assigned(DES_ede2_cfb64_encrypt) then + begin + {$if declared(DES_ede2_cfb64_encrypt_introduced)} + if LibVersion < DES_ede2_cfb64_encrypt_introduced then + {$if declared(FC_DES_ede2_cfb64_encrypt)} + DES_ede2_cfb64_encrypt := @FC_DES_ede2_cfb64_encrypt + {$else} + DES_ede2_cfb64_encrypt := @ERR_DES_ede2_cfb64_encrypt + {$ifend} + else + {$ifend} + {$if declared(DES_ede2_cfb64_encrypt_removed)} + if DES_ede2_cfb64_encrypt_removed <= LibVersion then + {$if declared(_DES_ede2_cfb64_encrypt)} + DES_ede2_cfb64_encrypt := @_DES_ede2_cfb64_encrypt + {$else} + {$IF declared(ERR_DES_ede2_cfb64_encrypt)} + DES_ede2_cfb64_encrypt := @ERR_DES_ede2_cfb64_encrypt + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DES_ede2_cfb64_encrypt) and Assigned(AFailed) then + AFailed.Add('DES_ede2_cfb64_encrypt'); + end; + + + if not assigned(DES_ede2_ofb64_encrypt) then + begin + {$if declared(DES_ede2_ofb64_encrypt_introduced)} + if LibVersion < DES_ede2_ofb64_encrypt_introduced then + {$if declared(FC_DES_ede2_ofb64_encrypt)} + DES_ede2_ofb64_encrypt := @FC_DES_ede2_ofb64_encrypt + {$else} + DES_ede2_ofb64_encrypt := @ERR_DES_ede2_ofb64_encrypt + {$ifend} + else + {$ifend} + {$if declared(DES_ede2_ofb64_encrypt_removed)} + if DES_ede2_ofb64_encrypt_removed <= LibVersion then + {$if declared(_DES_ede2_ofb64_encrypt)} + DES_ede2_ofb64_encrypt := @_DES_ede2_ofb64_encrypt + {$else} + {$IF declared(ERR_DES_ede2_ofb64_encrypt)} + DES_ede2_ofb64_encrypt := @ERR_DES_ede2_ofb64_encrypt + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DES_ede2_ofb64_encrypt) and Assigned(AFailed) then + AFailed.Add('DES_ede2_ofb64_encrypt'); + end; + + + if not assigned(DES_fixup_key_parity) then + begin + {$if declared(DES_fixup_key_parity_introduced)} + if LibVersion < DES_fixup_key_parity_introduced then + {$if declared(FC_DES_fixup_key_parity)} + DES_fixup_key_parity := @FC_DES_fixup_key_parity + {$else} + DES_fixup_key_parity := @ERR_DES_fixup_key_parity + {$ifend} + else + {$ifend} + {$if declared(DES_fixup_key_parity_removed)} + if DES_fixup_key_parity_removed <= LibVersion then + {$if declared(_DES_fixup_key_parity)} + DES_fixup_key_parity := @_DES_fixup_key_parity + {$else} + {$IF declared(ERR_DES_fixup_key_parity)} + DES_fixup_key_parity := @ERR_DES_fixup_key_parity + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DES_fixup_key_parity) and Assigned(AFailed) then + AFailed.Add('DES_fixup_key_parity'); + end; + + +end; + +procedure Unload; +begin + DES_ecb2_encrypt := nil; {removed 1.0.0} + DES_ede2_cbc_encrypt := nil; {removed 1.0.0} + DES_ede2_cfb64_encrypt := nil; {removed 1.0.0} + DES_ede2_ofb64_encrypt := nil; {removed 1.0.0} + DES_options := nil; + DES_ecb3_encrypt := nil; + DES_cbc_cksum := nil; + DES_cbc_encrypt := nil; + DES_ncbc_encrypt := nil; + DES_xcbc_encrypt := nil; + DES_cfb_encrypt := nil; + DES_ecb_encrypt := nil; + DES_encrypt1 := nil; + DES_encrypt2 := nil; + DES_encrypt3 := nil; + DES_decrypt3 := nil; + DES_ede3_cbc_encrypt := nil; + DES_ede3_cfb64_encrypt := nil; + DES_ede3_cfb_encrypt := nil; + DES_ede3_ofb64_encrypt := nil; + DES_fcrypt := nil; + DES_crypt := nil; + DES_ofb_encrypt := nil; + DES_pcbc_encrypt := nil; + DES_quad_cksum := nil; + DES_random_key := nil; + DES_set_odd_parity := nil; + DES_check_key_parity := nil; + DES_is_weak_key := nil; + DES_set_key := nil; + DES_key_sched := nil; + DES_set_key_checked := nil; + DES_set_key_unchecked := nil; + DES_string_to_key := nil; + DES_string_to_2keys := nil; + DES_cfb64_encrypt := nil; + DES_ofb64_encrypt := nil; + DES_fixup_key_parity := nil; {removed 1.0.0} +end; +{$ELSE} + procedure DES_ecb2_encrypt(input:Pconst_DES_cblock; output:PDES_cblock; ks1: PDES_key_schedule; ks2: PDES_key_schedule; enc: longint); + begin + DES_ecb3_encrypt(input,output,ks1,ks2,ks1,enc); + end; + + procedure DES_ede2_cbc_encrypt(input:Pbyte; output:Pbyte; length: longint; ks1: PDES_key_schedule; ks2: PDES_key_schedule; ivec: PDES_cblock; enc: longint); + begin + DES_ede3_cbc_encrypt(input,output,length,ks1,ks2,ks1,ivec,enc); + end; + + procedure DES_ede2_cfb64_encrypt(in_: Pbyte; out_: Pbyte; length: longint; ks1: PDES_key_schedule; ks2: PDES_key_schedule; ivec: PDES_cblock; num: Plongint; enc: longint); + begin + DES_ede3_cfb64_encrypt(in_,out_,length,ks1,ks2,ks1,ivec,num,enc); + end; + + procedure DES_ede2_ofb64_encrypt(in_: Pbyte; out_: Pbyte; length: longint; ks1: PDES_key_schedule; ks2: PDES_key_schedule; ivec: PDES_cblock; num: Plongint); + begin + DES_ede3_ofb64_encrypt(in_,out_,length,ks1,ks2,ks1,ivec,num); + end; + + procedure DES_fixup_key_parity(key:PDES_cblock); + begin + DES_set_odd_parity(key); + end; + + +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dh.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dh.pas new file mode 100644 index 000000000..619cc1f9c --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dh.pas @@ -0,0 +1,2233 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_dh.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_dh.h2pas + and this file regenerated. IdOpenSSLHeaders_dh.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_dh; + +interface + +// Headers for OpenSSL 1.1.1 +// dh.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_evp; + +const + OPENSSL_DH_MAX_MODULUS_BITS = 10000; + OPENSSL_DH_FIPS_MIN_MODULUS_BITS = 1024; + + DH_FLAG_CACHE_MONT_P = $01; + DH_FLAG_FIPS_METHOD = $0400; + DH_FLAG_NON_FIPS_ALLOW = $0400; + + DH_GENERATOR_2 = 2; + DH_GENERATOR_5 = 5; + + DH_CHECK_P_NOT_PRIME = $01; + DH_CHECK_P_NOT_SAFE_PRIME = $02; + DH_UNABLE_TO_CHECK_GENERATOR = $04; + DH_NOT_SUITABLE_GENERATOR = $08; + DH_CHECK_Q_NOT_PRIME = $10; + DH_CHECK_INVALID_Q_VALUE = $20; + DH_CHECK_INVALID_J_VALUE = $40; + DH_CHECK_PUBKEY_TOO_SMALL = $01; + DH_CHECK_PUBKEY_TOO_LARGE = $02; + DH_CHECK_PUBKEY_INVALID = $04; + DH_CHECK_P_NOT_STRONG_PRIME = DH_CHECK_P_NOT_SAFE_PRIME; + + EVP_PKEY_DH_KDF_NONE = 1; + EVP_PKEY_DH_KDF_X9_42 = 2; + + EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN = (EVP_PKEY_ALG_CTRL + 1); + EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR = (EVP_PKEY_ALG_CTRL + 2); + EVP_PKEY_CTRL_DH_RFC5114 = (EVP_PKEY_ALG_CTRL + 3); + EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN = (EVP_PKEY_ALG_CTRL + 4); + EVP_PKEY_CTRL_DH_PARAMGEN_TYPE = (EVP_PKEY_ALG_CTRL + 5); + EVP_PKEY_CTRL_DH_KDF_TYPE = (EVP_PKEY_ALG_CTRL + 6); + EVP_PKEY_CTRL_DH_KDF_MD = (EVP_PKEY_ALG_CTRL + 7); + EVP_PKEY_CTRL_GET_DH_KDF_MD = (EVP_PKEY_ALG_CTRL + 8); + EVP_PKEY_CTRL_DH_KDF_OUTLEN = (EVP_PKEY_ALG_CTRL + 9); + EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN = (EVP_PKEY_ALG_CTRL + 10); + EVP_PKEY_CTRL_DH_KDF_UKM = (EVP_PKEY_ALG_CTRL + 11); + EVP_PKEY_CTRL_GET_DH_KDF_UKM = (EVP_PKEY_ALG_CTRL + 12); + EVP_PKEY_CTRL_DH_KDF_OID = (EVP_PKEY_ALG_CTRL + 13); + EVP_PKEY_CTRL_GET_DH_KDF_OID = (EVP_PKEY_ALG_CTRL + 14); + EVP_PKEY_CTRL_DH_NID = (EVP_PKEY_ALG_CTRL + 15); + EVP_PKEY_CTRL_DH_PAD = (EVP_PKEY_ALG_CTRL + 16); + +type + DH_meth_generate_key_cb = function(dh: PDH): TIdC_INT cdecl; + DH_meth_compute_key_cb = function(key: PByte; const pub_key: PBIGNUM; dh: PDH): TIdC_INT cdecl; + DH_meth_bn_mod_exp_cb = function( + const dh: PDH; r: PBIGNUM; const a: PBIGNUM; + const p: PBIGNUM; const m: PBIGNUM; + ctx: PBN_CTX; m_ctx: PBN_MONT_CTX): TIdC_INT cdecl; + DH_meth_init_cb = function(dh: PDH): TIdC_INT cdecl; + DH_meth_finish_cb = function(dh: PDH): TIdC_INT cdecl; + DH_meth_generate_params_cb = function(dh: PDH; prime_len: TIdC_INT; generator: TIdC_INT; cb: PBN_GENCB): TIdC_INT cdecl; + +{ + # define DH_CHECK_P_NOT_STRONG_PRIME DH_CHECK_P_NOT_SAFE_PRIME + + # define d2i_DHparams_fp(fp,x) \ + (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ + (char *(*)())d2i_DHparams, \ + (fp), \ + (unsigned char **)(x)) + # define i2d_DHparams_fp(fp,x) \ + ASN1_i2d_fp(i2d_DHparams,(fp), (unsigned char *)(x)) + # define d2i_DHparams_bio(bp,x) \ + ASN1_d2i_bio_of(DH, DH_new, d2i_DHparams, bp, x) + # define i2d_DHparams_bio(bp,x) \ + ASN1_i2d_bio_of_const(DH,i2d_DHparams,bp,x) + + # define d2i_DHxparams_fp(fp,x) \ + (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ + (char *(*)())d2i_DHxparams, \ + (fp), \ + (unsigned char **)(x)) + # define i2d_DHxparams_fp(fp,x) \ + ASN1_i2d_fp(i2d_DHxparams,(fp), (unsigned char *)(x)) + # define d2i_DHxparams_bio(bp,x) \ + ASN1_d2i_bio_of(DH, DH_new, d2i_DHxparams, bp, x) + # define i2d_DHxparams_bio(bp,x) \ + ASN1_i2d_bio_of_const(DH, i2d_DHxparams, bp, x) +} + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM DHparams_dup} + {$EXTERNALSYM DH_OpenSSL} + {$EXTERNALSYM DH_set_default_method} + {$EXTERNALSYM DH_get_default_method} + {$EXTERNALSYM DH_set_method} + {$EXTERNALSYM DH_new_method} + {$EXTERNALSYM DH_new} + {$EXTERNALSYM DH_free} + {$EXTERNALSYM DH_up_ref} + {$EXTERNALSYM DH_bits} {introduced 1.1.0} + {$EXTERNALSYM DH_size} + {$EXTERNALSYM DH_security_bits} {introduced 1.1.0} + {$EXTERNALSYM DH_set_ex_data} + {$EXTERNALSYM DH_get_ex_data} + {$EXTERNALSYM DH_generate_parameters_ex} + {$EXTERNALSYM DH_check_params_ex} {introduced 1.1.0} + {$EXTERNALSYM DH_check_ex} {introduced 1.1.0} + {$EXTERNALSYM DH_check_pub_key_ex} {introduced 1.1.0} + {$EXTERNALSYM DH_check_params} {introduced 1.1.0} + {$EXTERNALSYM DH_check} + {$EXTERNALSYM DH_check_pub_key} + {$EXTERNALSYM DH_generate_key} + {$EXTERNALSYM DH_compute_key} + {$EXTERNALSYM DH_compute_key_padded} + {$EXTERNALSYM d2i_DHparams} + {$EXTERNALSYM i2d_DHparams} + {$EXTERNALSYM d2i_DHxparams} + {$EXTERNALSYM i2d_DHxparams} + {$EXTERNALSYM DHparams_print} + {$EXTERNALSYM DH_get_1024_160} + {$EXTERNALSYM DH_get_2048_224} + {$EXTERNALSYM DH_get_2048_256} + {$EXTERNALSYM DH_new_by_nid} {introduced 1.1.0} + {$EXTERNALSYM DH_get_nid} {introduced 1.1.0} + {$EXTERNALSYM DH_KDF_X9_42} + {$EXTERNALSYM DH_get0_pqg} {introduced 1.1.0} + {$EXTERNALSYM DH_set0_pqg} {introduced 1.1.0} + {$EXTERNALSYM DH_get0_key} {introduced 1.1.0} + {$EXTERNALSYM DH_set0_key} {introduced 1.1.0} + {$EXTERNALSYM DH_get0_p} {introduced 1.1.0} + {$EXTERNALSYM DH_get0_q} {introduced 1.1.0} + {$EXTERNALSYM DH_get0_g} {introduced 1.1.0} + {$EXTERNALSYM DH_get0_priv_key} {introduced 1.1.0} + {$EXTERNALSYM DH_get0_pub_key} {introduced 1.1.0} + {$EXTERNALSYM DH_clear_flags} {introduced 1.1.0} + {$EXTERNALSYM DH_test_flags} {introduced 1.1.0} + {$EXTERNALSYM DH_set_flags} {introduced 1.1.0} + {$EXTERNALSYM DH_get0_engine} {introduced 1.1.0} + {$EXTERNALSYM DH_get_length} {introduced 1.1.0} + {$EXTERNALSYM DH_set_length} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_new} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_free} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_dup} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_get0_name} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_set1_name} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_get_flags} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_set_flags} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_get0_app_data} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_set0_app_data} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_get_generate_key} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_set_generate_key} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_get_compute_key} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_set_compute_key} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_get_bn_mod_exp} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_set_bn_mod_exp} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_get_init} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_set_init} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_get_finish} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_set_finish} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_get_generate_params} {introduced 1.1.0} + {$EXTERNALSYM DH_meth_set_generate_params} {introduced 1.1.0} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + DHparams_dup: function(dh: PDH): PDH; cdecl = nil; + + DH_OpenSSL: function: PDH_Method; cdecl = nil; + + DH_set_default_method: procedure(const meth: PDH_Method); cdecl = nil; + DH_get_default_method: function: PDH_Method; cdecl = nil; + DH_set_method: function(dh: PDH; const meth: PDH_Method): TIdC_INT; cdecl = nil; + DH_new_method: function(engine: PENGINE): PDH; cdecl = nil; + + DH_new: function: PDH; cdecl = nil; + DH_free: procedure(dh: PDH); cdecl = nil; + DH_up_ref: function(dh: PDH): TIdC_INT; cdecl = nil; + DH_bits: function(const dh: PDH): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_size: function(const dh: PDH): TIdC_INT; cdecl = nil; + DH_security_bits: function(const dh: PDH): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_set_ex_data: function(d: PDH; idx: TIdC_INT; arg: Pointer): TIdC_INT; cdecl = nil; + DH_get_ex_data: function(d: PDH; idx: TIdC_INT): Pointer; cdecl = nil; + + DH_generate_parameters_ex: function(dh: PDH; prime_len: TIdC_INT; generator: TIdC_INT; cb: PBN_GENCB): TIdC_INT; cdecl = nil; + + DH_check_params_ex: function(const dh: PDH): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_check_ex: function(const dh: PDH): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_check_pub_key_ex: function(const dh: PDH; const pub_key: PBIGNUM): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_check_params: function(const dh: PDH; ret: PIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_check: function(const dh: PDH; codes: PIdC_INT): TIdC_INT; cdecl = nil; + DH_check_pub_key: function(const dh: PDH; const pub_key: PBIGNUM; codes: PIdC_INT): TIdC_INT; cdecl = nil; + DH_generate_key: function(dh: PDH): TIdC_INT; cdecl = nil; + DH_compute_key: function(key: PByte; const pub_key: PBIGNUM; dh: PDH): TIdC_INT; cdecl = nil; + DH_compute_key_padded: function(key: PByte; const pub_key: PBIGNUM; dh: PDH): TIdC_INT; cdecl = nil; + d2i_DHparams: function(a: PPDH; const pp: PPByte; length: TIdC_LONG): PDH; cdecl = nil; + i2d_DHparams: function(const a: PDH; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_DHxparams: function(a: PPDH; const pp: PPByte; length: TIdC_LONG): PDH; cdecl = nil; + i2d_DHxparams: function(const a: PDH; pp: PPByte): TIdC_INT; cdecl = nil; + DHparams_print: function(bp: PBIO; const x: PDH): TIdC_INT; cdecl = nil; + + DH_get_1024_160: function: PDH; cdecl = nil; + DH_get_2048_224: function: PDH; cdecl = nil; + DH_get_2048_256: function: PDH; cdecl = nil; + + DH_new_by_nid: function(nid: TIdC_INT): PDH; cdecl = nil; {introduced 1.1.0} + DH_get_nid: function(const dh: PDH): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + DH_KDF_X9_42: function( out_: PByte; outlen: TIdC_SIZET; const Z: PByte; Zlen: TIdC_SIZET; key_oid: PASN1_OBJECT; const ukm: PByte; ukmlen: TIdC_SIZET; const md: PEVP_MD): TIdC_INT; cdecl = nil; + + DH_get0_pqg: procedure(const dh: PDH; const p: PPBIGNUM; const q: PPBIGNUM; const g: PPBIGNUM); cdecl = nil; {introduced 1.1.0} + DH_set0_pqg: function(dh: PDH; p: PBIGNUM; q: PBIGNUM; g: PBIGNUM): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_get0_key: procedure(const dh: PDH; const pub_key: PPBIGNUM; const priv_key: PPBIGNUM); cdecl = nil; {introduced 1.1.0} + DH_set0_key: function(dh: PDH; pub_key: PBIGNUM; priv_key: PBIGNUM): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_get0_p: function(const dh: PDH): PBIGNUM; cdecl = nil; {introduced 1.1.0} + DH_get0_q: function(const dh: PDH): PBIGNUM; cdecl = nil; {introduced 1.1.0} + DH_get0_g: function(const dh: PDH): PBIGNUM; cdecl = nil; {introduced 1.1.0} + DH_get0_priv_key: function(const dh: PDH): PBIGNUM; cdecl = nil; {introduced 1.1.0} + DH_get0_pub_key: function(const dh: PDH): PBIGNUM; cdecl = nil; {introduced 1.1.0} + DH_clear_flags: procedure(dh: PDH; flags: TIdC_INT); cdecl = nil; {introduced 1.1.0} + DH_test_flags: function(const dh: PDH; flags: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_set_flags: procedure(dh: PDH; flags: TIdC_INT); cdecl = nil; {introduced 1.1.0} + DH_get0_engine: function(d: PDH): PENGINE; cdecl = nil; {introduced 1.1.0} + DH_get_length: function(const dh: PDH): TIdC_LONG; cdecl = nil; {introduced 1.1.0} + DH_set_length: function(dh: PDH; length: TIdC_LONG): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + DH_meth_new: function(const name: PIdAnsiChar; flags: TIdC_INT): PDH_Method; cdecl = nil; {introduced 1.1.0} + DH_meth_free: procedure(dhm: PDH_Method); cdecl = nil; {introduced 1.1.0} + DH_meth_dup: function(const dhm: PDH_Method): PDH_Method; cdecl = nil; {introduced 1.1.0} + DH_meth_get0_name: function(const dhm: PDH_Method): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + DH_meth_set1_name: function(dhm: PDH_Method; const name: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_meth_get_flags: function(const dhm: PDH_Method): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_meth_set_flags: function(const dhm: PDH_Method; flags: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + DH_meth_get0_app_data: function(const dhm: PDH_Method): Pointer; cdecl = nil; {introduced 1.1.0} + DH_meth_set0_app_data: function(const dhm: PDH_Method; app_data: Pointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + DH_meth_get_generate_key: function(const dhm: PDH_Method): DH_meth_generate_key_cb; cdecl = nil; {introduced 1.1.0} + DH_meth_set_generate_key: function(const dhm: PDH_Method; generate_key: DH_meth_generate_key_cb): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + DH_meth_get_compute_key: function(const dhm: PDH_Method): DH_meth_compute_key_cb; cdecl = nil; {introduced 1.1.0} + DH_meth_set_compute_key: function(const dhm: PDH_Method; compute_key: DH_meth_compute_key_cb): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + DH_meth_get_bn_mod_exp: function(const dhm: PDH_Method): DH_meth_bn_mod_exp_cb; cdecl = nil; {introduced 1.1.0} + DH_meth_set_bn_mod_exp: function(const dhm: PDH_Method; bn_mod_expr: DH_meth_bn_mod_exp_cb): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + DH_meth_get_init: function(const dhm: PDH_Method): DH_meth_init_cb; cdecl = nil; {introduced 1.1.0} + DH_meth_set_init: function(const dhm: PDH_Method; init: DH_meth_init_cb): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + DH_meth_get_finish: function(const dhm: PDH_Method): DH_meth_finish_cb; cdecl = nil; {introduced 1.1.0} + DH_meth_set_finish: function(const dhm: PDH_Method; finish: DH_meth_finish_cb): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + DH_meth_get_generate_params: function(const dhm: PDH_Method): DH_meth_generate_params_cb; cdecl = nil; {introduced 1.1.0} + DH_meth_set_generate_params: function(const dhm: PDH_Method; generate_params: DH_meth_generate_params_cb): TIdC_INT; cdecl = nil; {introduced 1.1.0} + +{ +# define EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, len) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, len, NULL) + +# define EVP_PKEY_CTX_set_dh_paramgen_subprime_len(ctx, len) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN, len, NULL) + +# define EVP_PKEY_CTX_set_dh_paramgen_type(ctx, typ) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_TYPE, typ, NULL) + +# define EVP_PKEY_CTX_set_dh_paramgen_generator(ctx, gen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR, gen, NULL) + +# define EVP_PKEY_CTX_set_dh_rfc5114(ctx, gen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_RFC5114, gen, NULL) + +# define EVP_PKEY_CTX_set_dhx_rfc5114(ctx, gen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_RFC5114, gen, NULL) + +# define EVP_PKEY_CTX_set_dh_nid(ctx, nid) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, \ + EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN, \ + EVP_PKEY_CTRL_DH_NID, nid, NULL) + +# define EVP_PKEY_CTX_set_dh_pad(ctx, pad) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_PAD, pad, NULL) + +# define EVP_PKEY_CTX_set_dh_kdf_type(ctx, kdf) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_TYPE, kdf, NULL) + +# define EVP_PKEY_CTX_get_dh_kdf_type(ctx) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_TYPE, -2, NULL) + +# define EVP_PKEY_CTX_set0_dh_kdf_oid(ctx, oid) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_OID, 0, (void *)(oid)) + +# define EVP_PKEY_CTX_get0_dh_kdf_oid(ctx, poid) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_OID, 0, (void *)(poid)) + +# define EVP_PKEY_CTX_set_dh_kdf_md(ctx, md) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_MD, 0, (void *)(md)) + +# define EVP_PKEY_CTX_get_dh_kdf_md(ctx, pmd) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_MD, 0, (void *)(pmd)) + +# define EVP_PKEY_CTX_set_dh_kdf_outlen(ctx, len) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_OUTLEN, len, NULL) + +# define EVP_PKEY_CTX_get_dh_kdf_outlen(ctx, plen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN, 0, (void *)(plen)) + +# define EVP_PKEY_CTX_set0_dh_kdf_ukm(ctx, p, plen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_UKM, plen, (void *)(p)) + +# define EVP_PKEY_CTX_get0_dh_kdf_ukm(ctx, p) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_UKM, 0, (void *)(p)) +} + +{$ELSE} + function DHparams_dup(dh: PDH): PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DH_OpenSSL: PDH_Method cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure DH_set_default_method(const meth: PDH_Method) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_get_default_method: PDH_Method cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_set_method(dh: PDH; const meth: PDH_Method): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_new_method(engine: PENGINE): PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DH_new: PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure DH_free(dh: PDH) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_up_ref(dh: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_bits(const dh: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_size(const dh: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_security_bits(const dh: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_set_ex_data(d: PDH; idx: TIdC_INT; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_get_ex_data(d: PDH; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DH_generate_parameters_ex(dh: PDH; prime_len: TIdC_INT; generator: TIdC_INT; cb: PBN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DH_check_params_ex(const dh: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_check_ex(const dh: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_check_pub_key_ex(const dh: PDH; const pub_key: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_check_params(const dh: PDH; ret: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_check(const dh: PDH; codes: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_check_pub_key(const dh: PDH; const pub_key: PBIGNUM; codes: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_generate_key(dh: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_compute_key(key: PByte; const pub_key: PBIGNUM; dh: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_compute_key_padded(key: PByte; const pub_key: PBIGNUM; dh: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_DHparams(a: PPDH; const pp: PPByte; length: TIdC_LONG): PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_DHparams(const a: PDH; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_DHxparams(a: PPDH; const pp: PPByte; length: TIdC_LONG): PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_DHxparams(const a: PDH; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DHparams_print(bp: PBIO; const x: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DH_get_1024_160: PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_get_2048_224: PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DH_get_2048_256: PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DH_new_by_nid(nid: TIdC_INT): PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_get_nid(const dh: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function DH_KDF_X9_42( out_: PByte; outlen: TIdC_SIZET; const Z: PByte; Zlen: TIdC_SIZET; key_oid: PASN1_OBJECT; const ukm: PByte; ukmlen: TIdC_SIZET; const md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure DH_get0_pqg(const dh: PDH; const p: PPBIGNUM; const q: PPBIGNUM; const g: PPBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_set0_pqg(dh: PDH; p: PBIGNUM; q: PBIGNUM; g: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure DH_get0_key(const dh: PDH; const pub_key: PPBIGNUM; const priv_key: PPBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_set0_key(dh: PDH; pub_key: PBIGNUM; priv_key: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_get0_p(const dh: PDH): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_get0_q(const dh: PDH): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_get0_g(const dh: PDH): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_get0_priv_key(const dh: PDH): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_get0_pub_key(const dh: PDH): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure DH_clear_flags(dh: PDH; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_test_flags(const dh: PDH; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure DH_set_flags(dh: PDH; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_get0_engine(d: PDH): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_get_length(const dh: PDH): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_set_length(dh: PDH; length: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function DH_meth_new(const name: PIdAnsiChar; flags: TIdC_INT): PDH_Method cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure DH_meth_free(dhm: PDH_Method) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_dup(const dhm: PDH_Method): PDH_Method cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_get0_name(const dhm: PDH_Method): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_set1_name(dhm: PDH_Method; const name: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_get_flags(const dhm: PDH_Method): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_set_flags(const dhm: PDH_Method; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_get0_app_data(const dhm: PDH_Method): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_set0_app_data(const dhm: PDH_Method; app_data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function DH_meth_get_generate_key(const dhm: PDH_Method): DH_meth_generate_key_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_set_generate_key(const dhm: PDH_Method; generate_key: DH_meth_generate_key_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function DH_meth_get_compute_key(const dhm: PDH_Method): DH_meth_compute_key_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_set_compute_key(const dhm: PDH_Method; compute_key: DH_meth_compute_key_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function DH_meth_get_bn_mod_exp(const dhm: PDH_Method): DH_meth_bn_mod_exp_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_set_bn_mod_exp(const dhm: PDH_Method; bn_mod_expr: DH_meth_bn_mod_exp_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function DH_meth_get_init(const dhm: PDH_Method): DH_meth_init_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_set_init(const dhm: PDH_Method; init: DH_meth_init_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function DH_meth_get_finish(const dhm: PDH_Method): DH_meth_finish_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_set_finish(const dhm: PDH_Method; finish: DH_meth_finish_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function DH_meth_get_generate_params(const dhm: PDH_Method): DH_meth_generate_params_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function DH_meth_set_generate_params(const dhm: PDH_Method; generate_params: DH_meth_generate_params_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + +{ +# define EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, len) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, len, NULL) + +# define EVP_PKEY_CTX_set_dh_paramgen_subprime_len(ctx, len) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN, len, NULL) + +# define EVP_PKEY_CTX_set_dh_paramgen_type(ctx, typ) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_TYPE, typ, NULL) + +# define EVP_PKEY_CTX_set_dh_paramgen_generator(ctx, gen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR, gen, NULL) + +# define EVP_PKEY_CTX_set_dh_rfc5114(ctx, gen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_RFC5114, gen, NULL) + +# define EVP_PKEY_CTX_set_dhx_rfc5114(ctx, gen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_RFC5114, gen, NULL) + +# define EVP_PKEY_CTX_set_dh_nid(ctx, nid) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, \ + EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN, \ + EVP_PKEY_CTRL_DH_NID, nid, NULL) + +# define EVP_PKEY_CTX_set_dh_pad(ctx, pad) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_PAD, pad, NULL) + +# define EVP_PKEY_CTX_set_dh_kdf_type(ctx, kdf) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_TYPE, kdf, NULL) + +# define EVP_PKEY_CTX_get_dh_kdf_type(ctx) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_TYPE, -2, NULL) + +# define EVP_PKEY_CTX_set0_dh_kdf_oid(ctx, oid) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_OID, 0, (void *)(oid)) + +# define EVP_PKEY_CTX_get0_dh_kdf_oid(ctx, poid) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_OID, 0, (void *)(poid)) + +# define EVP_PKEY_CTX_set_dh_kdf_md(ctx, md) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_MD, 0, (void *)(md)) + +# define EVP_PKEY_CTX_get_dh_kdf_md(ctx, pmd) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_MD, 0, (void *)(pmd)) + +# define EVP_PKEY_CTX_set_dh_kdf_outlen(ctx, len) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_OUTLEN, len, NULL) + +# define EVP_PKEY_CTX_get_dh_kdf_outlen(ctx, plen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN, 0, (void *)(plen)) + +# define EVP_PKEY_CTX_set0_dh_kdf_ukm(ctx, p, plen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_UKM, plen, (void *)(p)) + +# define EVP_PKEY_CTX_get0_dh_kdf_ukm(ctx, p) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_UKM, 0, (void *)(p)) +} + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + DH_bits_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_security_bits_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_check_params_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_check_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_check_pub_key_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_check_params_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_new_by_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_get_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_get0_pqg_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_set0_pqg_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_get0_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_set0_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_get0_p_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_get0_q_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_get0_g_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_get0_priv_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_get0_pub_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_clear_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_test_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_set_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_get0_engine_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_get_length_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_set_length_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_dup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_get0_name_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_set1_name_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_get_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_set_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_get0_app_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_set0_app_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_get_generate_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_set_generate_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_get_compute_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_set_compute_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_get_bn_mod_exp_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_set_bn_mod_exp_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_get_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_set_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_get_finish_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_set_finish_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_get_generate_params_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DH_meth_set_generate_params_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +function ERR_DH_bits(const dh: PDH): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_bits'); +end; + + +function ERR_DH_security_bits(const dh: PDH): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_security_bits'); +end; + + +function ERR_DH_check_params_ex(const dh: PDH): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_check_params_ex'); +end; + + +function ERR_DH_check_ex(const dh: PDH): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_check_ex'); +end; + + +function ERR_DH_check_pub_key_ex(const dh: PDH; const pub_key: PBIGNUM): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_check_pub_key_ex'); +end; + + +function ERR_DH_check_params(const dh: PDH; ret: PIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_check_params'); +end; + + +function ERR_DH_new_by_nid(nid: TIdC_INT): PDH; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_new_by_nid'); +end; + + +function ERR_DH_get_nid(const dh: PDH): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_get_nid'); +end; + + +procedure ERR_DH_get0_pqg(const dh: PDH; const p: PPBIGNUM; const q: PPBIGNUM; const g: PPBIGNUM); +begin + EIdAPIFunctionNotPresent.RaiseException('DH_get0_pqg'); +end; + + +function ERR_DH_set0_pqg(dh: PDH; p: PBIGNUM; q: PBIGNUM; g: PBIGNUM): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_set0_pqg'); +end; + + +procedure ERR_DH_get0_key(const dh: PDH; const pub_key: PPBIGNUM; const priv_key: PPBIGNUM); +begin + EIdAPIFunctionNotPresent.RaiseException('DH_get0_key'); +end; + + +function ERR_DH_set0_key(dh: PDH; pub_key: PBIGNUM; priv_key: PBIGNUM): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_set0_key'); +end; + + +function ERR_DH_get0_p(const dh: PDH): PBIGNUM; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_get0_p'); +end; + + +function ERR_DH_get0_q(const dh: PDH): PBIGNUM; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_get0_q'); +end; + + +function ERR_DH_get0_g(const dh: PDH): PBIGNUM; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_get0_g'); +end; + + +function ERR_DH_get0_priv_key(const dh: PDH): PBIGNUM; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_get0_priv_key'); +end; + + +function ERR_DH_get0_pub_key(const dh: PDH): PBIGNUM; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_get0_pub_key'); +end; + + +procedure ERR_DH_clear_flags(dh: PDH; flags: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('DH_clear_flags'); +end; + + +function ERR_DH_test_flags(const dh: PDH; flags: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_test_flags'); +end; + + +procedure ERR_DH_set_flags(dh: PDH; flags: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('DH_set_flags'); +end; + + +function ERR_DH_get0_engine(d: PDH): PENGINE; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_get0_engine'); +end; + + +function ERR_DH_get_length(const dh: PDH): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_get_length'); +end; + + +function ERR_DH_set_length(dh: PDH; length: TIdC_LONG): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_set_length'); +end; + + +function ERR_DH_meth_new(const name: PIdAnsiChar; flags: TIdC_INT): PDH_Method; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_new'); +end; + + +procedure ERR_DH_meth_free(dhm: PDH_Method); +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_free'); +end; + + +function ERR_DH_meth_dup(const dhm: PDH_Method): PDH_Method; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_dup'); +end; + + +function ERR_DH_meth_get0_name(const dhm: PDH_Method): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_get0_name'); +end; + + +function ERR_DH_meth_set1_name(dhm: PDH_Method; const name: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_set1_name'); +end; + + +function ERR_DH_meth_get_flags(const dhm: PDH_Method): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_get_flags'); +end; + + +function ERR_DH_meth_set_flags(const dhm: PDH_Method; flags: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_set_flags'); +end; + + +function ERR_DH_meth_get0_app_data(const dhm: PDH_Method): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_get0_app_data'); +end; + + +function ERR_DH_meth_set0_app_data(const dhm: PDH_Method; app_data: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_set0_app_data'); +end; + + +function ERR_DH_meth_get_generate_key(const dhm: PDH_Method): DH_meth_generate_key_cb; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_get_generate_key'); +end; + + +function ERR_DH_meth_set_generate_key(const dhm: PDH_Method; generate_key: DH_meth_generate_key_cb): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_set_generate_key'); +end; + + +function ERR_DH_meth_get_compute_key(const dhm: PDH_Method): DH_meth_compute_key_cb; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_get_compute_key'); +end; + + +function ERR_DH_meth_set_compute_key(const dhm: PDH_Method; compute_key: DH_meth_compute_key_cb): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_set_compute_key'); +end; + + +function ERR_DH_meth_get_bn_mod_exp(const dhm: PDH_Method): DH_meth_bn_mod_exp_cb; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_get_bn_mod_exp'); +end; + + +function ERR_DH_meth_set_bn_mod_exp(const dhm: PDH_Method; bn_mod_expr: DH_meth_bn_mod_exp_cb): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_set_bn_mod_exp'); +end; + + +function ERR_DH_meth_get_init(const dhm: PDH_Method): DH_meth_init_cb; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_get_init'); +end; + + +function ERR_DH_meth_set_init(const dhm: PDH_Method; init: DH_meth_init_cb): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_set_init'); +end; + + +function ERR_DH_meth_get_finish(const dhm: PDH_Method): DH_meth_finish_cb; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_get_finish'); +end; + + +function ERR_DH_meth_set_finish(const dhm: PDH_Method; finish: DH_meth_finish_cb): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_set_finish'); +end; + + +function ERR_DH_meth_get_generate_params(const dhm: PDH_Method): DH_meth_generate_params_cb; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_get_generate_params'); +end; + + +function ERR_DH_meth_set_generate_params(const dhm: PDH_Method; generate_params: DH_meth_generate_params_cb): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DH_meth_set_generate_params'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + DHparams_dup := LoadFunction('DHparams_dup',AFailed); + DH_OpenSSL := LoadFunction('DH_OpenSSL',AFailed); + DH_set_default_method := LoadFunction('DH_set_default_method',AFailed); + DH_get_default_method := LoadFunction('DH_get_default_method',AFailed); + DH_set_method := LoadFunction('DH_set_method',AFailed); + DH_new_method := LoadFunction('DH_new_method',AFailed); + DH_new := LoadFunction('DH_new',AFailed); + DH_free := LoadFunction('DH_free',AFailed); + DH_up_ref := LoadFunction('DH_up_ref',AFailed); + DH_size := LoadFunction('DH_size',AFailed); + DH_set_ex_data := LoadFunction('DH_set_ex_data',AFailed); + DH_get_ex_data := LoadFunction('DH_get_ex_data',AFailed); + DH_generate_parameters_ex := LoadFunction('DH_generate_parameters_ex',AFailed); + DH_check := LoadFunction('DH_check',AFailed); + DH_check_pub_key := LoadFunction('DH_check_pub_key',AFailed); + DH_generate_key := LoadFunction('DH_generate_key',AFailed); + DH_compute_key := LoadFunction('DH_compute_key',AFailed); + DH_compute_key_padded := LoadFunction('DH_compute_key_padded',AFailed); + d2i_DHparams := LoadFunction('d2i_DHparams',AFailed); + i2d_DHparams := LoadFunction('i2d_DHparams',AFailed); + d2i_DHxparams := LoadFunction('d2i_DHxparams',AFailed); + i2d_DHxparams := LoadFunction('i2d_DHxparams',AFailed); + DHparams_print := LoadFunction('DHparams_print',AFailed); + DH_get_1024_160 := LoadFunction('DH_get_1024_160',AFailed); + DH_get_2048_224 := LoadFunction('DH_get_2048_224',AFailed); + DH_get_2048_256 := LoadFunction('DH_get_2048_256',AFailed); + DH_KDF_X9_42 := LoadFunction('DH_KDF_X9_42',AFailed); + DH_bits := LoadFunction('DH_bits',nil); {introduced 1.1.0} + DH_security_bits := LoadFunction('DH_security_bits',nil); {introduced 1.1.0} + DH_check_params_ex := LoadFunction('DH_check_params_ex',nil); {introduced 1.1.0} + DH_check_ex := LoadFunction('DH_check_ex',nil); {introduced 1.1.0} + DH_check_pub_key_ex := LoadFunction('DH_check_pub_key_ex',nil); {introduced 1.1.0} + DH_check_params := LoadFunction('DH_check_params',nil); {introduced 1.1.0} + DH_new_by_nid := LoadFunction('DH_new_by_nid',nil); {introduced 1.1.0} + DH_get_nid := LoadFunction('DH_get_nid',nil); {introduced 1.1.0} + DH_get0_pqg := LoadFunction('DH_get0_pqg',nil); {introduced 1.1.0} + DH_set0_pqg := LoadFunction('DH_set0_pqg',nil); {introduced 1.1.0} + DH_get0_key := LoadFunction('DH_get0_key',nil); {introduced 1.1.0} + DH_set0_key := LoadFunction('DH_set0_key',nil); {introduced 1.1.0} + DH_get0_p := LoadFunction('DH_get0_p',nil); {introduced 1.1.0} + DH_get0_q := LoadFunction('DH_get0_q',nil); {introduced 1.1.0} + DH_get0_g := LoadFunction('DH_get0_g',nil); {introduced 1.1.0} + DH_get0_priv_key := LoadFunction('DH_get0_priv_key',nil); {introduced 1.1.0} + DH_get0_pub_key := LoadFunction('DH_get0_pub_key',nil); {introduced 1.1.0} + DH_clear_flags := LoadFunction('DH_clear_flags',nil); {introduced 1.1.0} + DH_test_flags := LoadFunction('DH_test_flags',nil); {introduced 1.1.0} + DH_set_flags := LoadFunction('DH_set_flags',nil); {introduced 1.1.0} + DH_get0_engine := LoadFunction('DH_get0_engine',nil); {introduced 1.1.0} + DH_get_length := LoadFunction('DH_get_length',nil); {introduced 1.1.0} + DH_set_length := LoadFunction('DH_set_length',nil); {introduced 1.1.0} + DH_meth_new := LoadFunction('DH_meth_new',nil); {introduced 1.1.0} + DH_meth_free := LoadFunction('DH_meth_free',nil); {introduced 1.1.0} + DH_meth_dup := LoadFunction('DH_meth_dup',nil); {introduced 1.1.0} + DH_meth_get0_name := LoadFunction('DH_meth_get0_name',nil); {introduced 1.1.0} + DH_meth_set1_name := LoadFunction('DH_meth_set1_name',nil); {introduced 1.1.0} + DH_meth_get_flags := LoadFunction('DH_meth_get_flags',nil); {introduced 1.1.0} + DH_meth_set_flags := LoadFunction('DH_meth_set_flags',nil); {introduced 1.1.0} + DH_meth_get0_app_data := LoadFunction('DH_meth_get0_app_data',nil); {introduced 1.1.0} + DH_meth_set0_app_data := LoadFunction('DH_meth_set0_app_data',nil); {introduced 1.1.0} + DH_meth_get_generate_key := LoadFunction('DH_meth_get_generate_key',nil); {introduced 1.1.0} + DH_meth_set_generate_key := LoadFunction('DH_meth_set_generate_key',nil); {introduced 1.1.0} + DH_meth_get_compute_key := LoadFunction('DH_meth_get_compute_key',nil); {introduced 1.1.0} + DH_meth_set_compute_key := LoadFunction('DH_meth_set_compute_key',nil); {introduced 1.1.0} + DH_meth_get_bn_mod_exp := LoadFunction('DH_meth_get_bn_mod_exp',nil); {introduced 1.1.0} + DH_meth_set_bn_mod_exp := LoadFunction('DH_meth_set_bn_mod_exp',nil); {introduced 1.1.0} + DH_meth_get_init := LoadFunction('DH_meth_get_init',nil); {introduced 1.1.0} + DH_meth_set_init := LoadFunction('DH_meth_set_init',nil); {introduced 1.1.0} + DH_meth_get_finish := LoadFunction('DH_meth_get_finish',nil); {introduced 1.1.0} + DH_meth_set_finish := LoadFunction('DH_meth_set_finish',nil); {introduced 1.1.0} + DH_meth_get_generate_params := LoadFunction('DH_meth_get_generate_params',nil); {introduced 1.1.0} + DH_meth_set_generate_params := LoadFunction('DH_meth_set_generate_params',nil); {introduced 1.1.0} + if not assigned(DH_bits) then + begin + {$if declared(DH_bits_introduced)} + if LibVersion < DH_bits_introduced then + {$if declared(FC_DH_bits)} + DH_bits := @FC_DH_bits + {$else} + DH_bits := @ERR_DH_bits + {$ifend} + else + {$ifend} + {$if declared(DH_bits_removed)} + if DH_bits_removed <= LibVersion then + {$if declared(_DH_bits)} + DH_bits := @_DH_bits + {$else} + {$IF declared(ERR_DH_bits)} + DH_bits := @ERR_DH_bits + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_bits) and Assigned(AFailed) then + AFailed.Add('DH_bits'); + end; + + + if not assigned(DH_security_bits) then + begin + {$if declared(DH_security_bits_introduced)} + if LibVersion < DH_security_bits_introduced then + {$if declared(FC_DH_security_bits)} + DH_security_bits := @FC_DH_security_bits + {$else} + DH_security_bits := @ERR_DH_security_bits + {$ifend} + else + {$ifend} + {$if declared(DH_security_bits_removed)} + if DH_security_bits_removed <= LibVersion then + {$if declared(_DH_security_bits)} + DH_security_bits := @_DH_security_bits + {$else} + {$IF declared(ERR_DH_security_bits)} + DH_security_bits := @ERR_DH_security_bits + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_security_bits) and Assigned(AFailed) then + AFailed.Add('DH_security_bits'); + end; + + + if not assigned(DH_check_params_ex) then + begin + {$if declared(DH_check_params_ex_introduced)} + if LibVersion < DH_check_params_ex_introduced then + {$if declared(FC_DH_check_params_ex)} + DH_check_params_ex := @FC_DH_check_params_ex + {$else} + DH_check_params_ex := @ERR_DH_check_params_ex + {$ifend} + else + {$ifend} + {$if declared(DH_check_params_ex_removed)} + if DH_check_params_ex_removed <= LibVersion then + {$if declared(_DH_check_params_ex)} + DH_check_params_ex := @_DH_check_params_ex + {$else} + {$IF declared(ERR_DH_check_params_ex)} + DH_check_params_ex := @ERR_DH_check_params_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_check_params_ex) and Assigned(AFailed) then + AFailed.Add('DH_check_params_ex'); + end; + + + if not assigned(DH_check_ex) then + begin + {$if declared(DH_check_ex_introduced)} + if LibVersion < DH_check_ex_introduced then + {$if declared(FC_DH_check_ex)} + DH_check_ex := @FC_DH_check_ex + {$else} + DH_check_ex := @ERR_DH_check_ex + {$ifend} + else + {$ifend} + {$if declared(DH_check_ex_removed)} + if DH_check_ex_removed <= LibVersion then + {$if declared(_DH_check_ex)} + DH_check_ex := @_DH_check_ex + {$else} + {$IF declared(ERR_DH_check_ex)} + DH_check_ex := @ERR_DH_check_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_check_ex) and Assigned(AFailed) then + AFailed.Add('DH_check_ex'); + end; + + + if not assigned(DH_check_pub_key_ex) then + begin + {$if declared(DH_check_pub_key_ex_introduced)} + if LibVersion < DH_check_pub_key_ex_introduced then + {$if declared(FC_DH_check_pub_key_ex)} + DH_check_pub_key_ex := @FC_DH_check_pub_key_ex + {$else} + DH_check_pub_key_ex := @ERR_DH_check_pub_key_ex + {$ifend} + else + {$ifend} + {$if declared(DH_check_pub_key_ex_removed)} + if DH_check_pub_key_ex_removed <= LibVersion then + {$if declared(_DH_check_pub_key_ex)} + DH_check_pub_key_ex := @_DH_check_pub_key_ex + {$else} + {$IF declared(ERR_DH_check_pub_key_ex)} + DH_check_pub_key_ex := @ERR_DH_check_pub_key_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_check_pub_key_ex) and Assigned(AFailed) then + AFailed.Add('DH_check_pub_key_ex'); + end; + + + if not assigned(DH_check_params) then + begin + {$if declared(DH_check_params_introduced)} + if LibVersion < DH_check_params_introduced then + {$if declared(FC_DH_check_params)} + DH_check_params := @FC_DH_check_params + {$else} + DH_check_params := @ERR_DH_check_params + {$ifend} + else + {$ifend} + {$if declared(DH_check_params_removed)} + if DH_check_params_removed <= LibVersion then + {$if declared(_DH_check_params)} + DH_check_params := @_DH_check_params + {$else} + {$IF declared(ERR_DH_check_params)} + DH_check_params := @ERR_DH_check_params + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_check_params) and Assigned(AFailed) then + AFailed.Add('DH_check_params'); + end; + + + if not assigned(DH_new_by_nid) then + begin + {$if declared(DH_new_by_nid_introduced)} + if LibVersion < DH_new_by_nid_introduced then + {$if declared(FC_DH_new_by_nid)} + DH_new_by_nid := @FC_DH_new_by_nid + {$else} + DH_new_by_nid := @ERR_DH_new_by_nid + {$ifend} + else + {$ifend} + {$if declared(DH_new_by_nid_removed)} + if DH_new_by_nid_removed <= LibVersion then + {$if declared(_DH_new_by_nid)} + DH_new_by_nid := @_DH_new_by_nid + {$else} + {$IF declared(ERR_DH_new_by_nid)} + DH_new_by_nid := @ERR_DH_new_by_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_new_by_nid) and Assigned(AFailed) then + AFailed.Add('DH_new_by_nid'); + end; + + + if not assigned(DH_get_nid) then + begin + {$if declared(DH_get_nid_introduced)} + if LibVersion < DH_get_nid_introduced then + {$if declared(FC_DH_get_nid)} + DH_get_nid := @FC_DH_get_nid + {$else} + DH_get_nid := @ERR_DH_get_nid + {$ifend} + else + {$ifend} + {$if declared(DH_get_nid_removed)} + if DH_get_nid_removed <= LibVersion then + {$if declared(_DH_get_nid)} + DH_get_nid := @_DH_get_nid + {$else} + {$IF declared(ERR_DH_get_nid)} + DH_get_nid := @ERR_DH_get_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_get_nid) and Assigned(AFailed) then + AFailed.Add('DH_get_nid'); + end; + + + if not assigned(DH_get0_pqg) then + begin + {$if declared(DH_get0_pqg_introduced)} + if LibVersion < DH_get0_pqg_introduced then + {$if declared(FC_DH_get0_pqg)} + DH_get0_pqg := @FC_DH_get0_pqg + {$else} + DH_get0_pqg := @ERR_DH_get0_pqg + {$ifend} + else + {$ifend} + {$if declared(DH_get0_pqg_removed)} + if DH_get0_pqg_removed <= LibVersion then + {$if declared(_DH_get0_pqg)} + DH_get0_pqg := @_DH_get0_pqg + {$else} + {$IF declared(ERR_DH_get0_pqg)} + DH_get0_pqg := @ERR_DH_get0_pqg + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_get0_pqg) and Assigned(AFailed) then + AFailed.Add('DH_get0_pqg'); + end; + + + if not assigned(DH_set0_pqg) then + begin + {$if declared(DH_set0_pqg_introduced)} + if LibVersion < DH_set0_pqg_introduced then + {$if declared(FC_DH_set0_pqg)} + DH_set0_pqg := @FC_DH_set0_pqg + {$else} + DH_set0_pqg := @ERR_DH_set0_pqg + {$ifend} + else + {$ifend} + {$if declared(DH_set0_pqg_removed)} + if DH_set0_pqg_removed <= LibVersion then + {$if declared(_DH_set0_pqg)} + DH_set0_pqg := @_DH_set0_pqg + {$else} + {$IF declared(ERR_DH_set0_pqg)} + DH_set0_pqg := @ERR_DH_set0_pqg + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_set0_pqg) and Assigned(AFailed) then + AFailed.Add('DH_set0_pqg'); + end; + + + if not assigned(DH_get0_key) then + begin + {$if declared(DH_get0_key_introduced)} + if LibVersion < DH_get0_key_introduced then + {$if declared(FC_DH_get0_key)} + DH_get0_key := @FC_DH_get0_key + {$else} + DH_get0_key := @ERR_DH_get0_key + {$ifend} + else + {$ifend} + {$if declared(DH_get0_key_removed)} + if DH_get0_key_removed <= LibVersion then + {$if declared(_DH_get0_key)} + DH_get0_key := @_DH_get0_key + {$else} + {$IF declared(ERR_DH_get0_key)} + DH_get0_key := @ERR_DH_get0_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_get0_key) and Assigned(AFailed) then + AFailed.Add('DH_get0_key'); + end; + + + if not assigned(DH_set0_key) then + begin + {$if declared(DH_set0_key_introduced)} + if LibVersion < DH_set0_key_introduced then + {$if declared(FC_DH_set0_key)} + DH_set0_key := @FC_DH_set0_key + {$else} + DH_set0_key := @ERR_DH_set0_key + {$ifend} + else + {$ifend} + {$if declared(DH_set0_key_removed)} + if DH_set0_key_removed <= LibVersion then + {$if declared(_DH_set0_key)} + DH_set0_key := @_DH_set0_key + {$else} + {$IF declared(ERR_DH_set0_key)} + DH_set0_key := @ERR_DH_set0_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_set0_key) and Assigned(AFailed) then + AFailed.Add('DH_set0_key'); + end; + + + if not assigned(DH_get0_p) then + begin + {$if declared(DH_get0_p_introduced)} + if LibVersion < DH_get0_p_introduced then + {$if declared(FC_DH_get0_p)} + DH_get0_p := @FC_DH_get0_p + {$else} + DH_get0_p := @ERR_DH_get0_p + {$ifend} + else + {$ifend} + {$if declared(DH_get0_p_removed)} + if DH_get0_p_removed <= LibVersion then + {$if declared(_DH_get0_p)} + DH_get0_p := @_DH_get0_p + {$else} + {$IF declared(ERR_DH_get0_p)} + DH_get0_p := @ERR_DH_get0_p + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_get0_p) and Assigned(AFailed) then + AFailed.Add('DH_get0_p'); + end; + + + if not assigned(DH_get0_q) then + begin + {$if declared(DH_get0_q_introduced)} + if LibVersion < DH_get0_q_introduced then + {$if declared(FC_DH_get0_q)} + DH_get0_q := @FC_DH_get0_q + {$else} + DH_get0_q := @ERR_DH_get0_q + {$ifend} + else + {$ifend} + {$if declared(DH_get0_q_removed)} + if DH_get0_q_removed <= LibVersion then + {$if declared(_DH_get0_q)} + DH_get0_q := @_DH_get0_q + {$else} + {$IF declared(ERR_DH_get0_q)} + DH_get0_q := @ERR_DH_get0_q + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_get0_q) and Assigned(AFailed) then + AFailed.Add('DH_get0_q'); + end; + + + if not assigned(DH_get0_g) then + begin + {$if declared(DH_get0_g_introduced)} + if LibVersion < DH_get0_g_introduced then + {$if declared(FC_DH_get0_g)} + DH_get0_g := @FC_DH_get0_g + {$else} + DH_get0_g := @ERR_DH_get0_g + {$ifend} + else + {$ifend} + {$if declared(DH_get0_g_removed)} + if DH_get0_g_removed <= LibVersion then + {$if declared(_DH_get0_g)} + DH_get0_g := @_DH_get0_g + {$else} + {$IF declared(ERR_DH_get0_g)} + DH_get0_g := @ERR_DH_get0_g + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_get0_g) and Assigned(AFailed) then + AFailed.Add('DH_get0_g'); + end; + + + if not assigned(DH_get0_priv_key) then + begin + {$if declared(DH_get0_priv_key_introduced)} + if LibVersion < DH_get0_priv_key_introduced then + {$if declared(FC_DH_get0_priv_key)} + DH_get0_priv_key := @FC_DH_get0_priv_key + {$else} + DH_get0_priv_key := @ERR_DH_get0_priv_key + {$ifend} + else + {$ifend} + {$if declared(DH_get0_priv_key_removed)} + if DH_get0_priv_key_removed <= LibVersion then + {$if declared(_DH_get0_priv_key)} + DH_get0_priv_key := @_DH_get0_priv_key + {$else} + {$IF declared(ERR_DH_get0_priv_key)} + DH_get0_priv_key := @ERR_DH_get0_priv_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_get0_priv_key) and Assigned(AFailed) then + AFailed.Add('DH_get0_priv_key'); + end; + + + if not assigned(DH_get0_pub_key) then + begin + {$if declared(DH_get0_pub_key_introduced)} + if LibVersion < DH_get0_pub_key_introduced then + {$if declared(FC_DH_get0_pub_key)} + DH_get0_pub_key := @FC_DH_get0_pub_key + {$else} + DH_get0_pub_key := @ERR_DH_get0_pub_key + {$ifend} + else + {$ifend} + {$if declared(DH_get0_pub_key_removed)} + if DH_get0_pub_key_removed <= LibVersion then + {$if declared(_DH_get0_pub_key)} + DH_get0_pub_key := @_DH_get0_pub_key + {$else} + {$IF declared(ERR_DH_get0_pub_key)} + DH_get0_pub_key := @ERR_DH_get0_pub_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_get0_pub_key) and Assigned(AFailed) then + AFailed.Add('DH_get0_pub_key'); + end; + + + if not assigned(DH_clear_flags) then + begin + {$if declared(DH_clear_flags_introduced)} + if LibVersion < DH_clear_flags_introduced then + {$if declared(FC_DH_clear_flags)} + DH_clear_flags := @FC_DH_clear_flags + {$else} + DH_clear_flags := @ERR_DH_clear_flags + {$ifend} + else + {$ifend} + {$if declared(DH_clear_flags_removed)} + if DH_clear_flags_removed <= LibVersion then + {$if declared(_DH_clear_flags)} + DH_clear_flags := @_DH_clear_flags + {$else} + {$IF declared(ERR_DH_clear_flags)} + DH_clear_flags := @ERR_DH_clear_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_clear_flags) and Assigned(AFailed) then + AFailed.Add('DH_clear_flags'); + end; + + + if not assigned(DH_test_flags) then + begin + {$if declared(DH_test_flags_introduced)} + if LibVersion < DH_test_flags_introduced then + {$if declared(FC_DH_test_flags)} + DH_test_flags := @FC_DH_test_flags + {$else} + DH_test_flags := @ERR_DH_test_flags + {$ifend} + else + {$ifend} + {$if declared(DH_test_flags_removed)} + if DH_test_flags_removed <= LibVersion then + {$if declared(_DH_test_flags)} + DH_test_flags := @_DH_test_flags + {$else} + {$IF declared(ERR_DH_test_flags)} + DH_test_flags := @ERR_DH_test_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_test_flags) and Assigned(AFailed) then + AFailed.Add('DH_test_flags'); + end; + + + if not assigned(DH_set_flags) then + begin + {$if declared(DH_set_flags_introduced)} + if LibVersion < DH_set_flags_introduced then + {$if declared(FC_DH_set_flags)} + DH_set_flags := @FC_DH_set_flags + {$else} + DH_set_flags := @ERR_DH_set_flags + {$ifend} + else + {$ifend} + {$if declared(DH_set_flags_removed)} + if DH_set_flags_removed <= LibVersion then + {$if declared(_DH_set_flags)} + DH_set_flags := @_DH_set_flags + {$else} + {$IF declared(ERR_DH_set_flags)} + DH_set_flags := @ERR_DH_set_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_set_flags) and Assigned(AFailed) then + AFailed.Add('DH_set_flags'); + end; + + + if not assigned(DH_get0_engine) then + begin + {$if declared(DH_get0_engine_introduced)} + if LibVersion < DH_get0_engine_introduced then + {$if declared(FC_DH_get0_engine)} + DH_get0_engine := @FC_DH_get0_engine + {$else} + DH_get0_engine := @ERR_DH_get0_engine + {$ifend} + else + {$ifend} + {$if declared(DH_get0_engine_removed)} + if DH_get0_engine_removed <= LibVersion then + {$if declared(_DH_get0_engine)} + DH_get0_engine := @_DH_get0_engine + {$else} + {$IF declared(ERR_DH_get0_engine)} + DH_get0_engine := @ERR_DH_get0_engine + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_get0_engine) and Assigned(AFailed) then + AFailed.Add('DH_get0_engine'); + end; + + + if not assigned(DH_get_length) then + begin + {$if declared(DH_get_length_introduced)} + if LibVersion < DH_get_length_introduced then + {$if declared(FC_DH_get_length)} + DH_get_length := @FC_DH_get_length + {$else} + DH_get_length := @ERR_DH_get_length + {$ifend} + else + {$ifend} + {$if declared(DH_get_length_removed)} + if DH_get_length_removed <= LibVersion then + {$if declared(_DH_get_length)} + DH_get_length := @_DH_get_length + {$else} + {$IF declared(ERR_DH_get_length)} + DH_get_length := @ERR_DH_get_length + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_get_length) and Assigned(AFailed) then + AFailed.Add('DH_get_length'); + end; + + + if not assigned(DH_set_length) then + begin + {$if declared(DH_set_length_introduced)} + if LibVersion < DH_set_length_introduced then + {$if declared(FC_DH_set_length)} + DH_set_length := @FC_DH_set_length + {$else} + DH_set_length := @ERR_DH_set_length + {$ifend} + else + {$ifend} + {$if declared(DH_set_length_removed)} + if DH_set_length_removed <= LibVersion then + {$if declared(_DH_set_length)} + DH_set_length := @_DH_set_length + {$else} + {$IF declared(ERR_DH_set_length)} + DH_set_length := @ERR_DH_set_length + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_set_length) and Assigned(AFailed) then + AFailed.Add('DH_set_length'); + end; + + + if not assigned(DH_meth_new) then + begin + {$if declared(DH_meth_new_introduced)} + if LibVersion < DH_meth_new_introduced then + {$if declared(FC_DH_meth_new)} + DH_meth_new := @FC_DH_meth_new + {$else} + DH_meth_new := @ERR_DH_meth_new + {$ifend} + else + {$ifend} + {$if declared(DH_meth_new_removed)} + if DH_meth_new_removed <= LibVersion then + {$if declared(_DH_meth_new)} + DH_meth_new := @_DH_meth_new + {$else} + {$IF declared(ERR_DH_meth_new)} + DH_meth_new := @ERR_DH_meth_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_new) and Assigned(AFailed) then + AFailed.Add('DH_meth_new'); + end; + + + if not assigned(DH_meth_free) then + begin + {$if declared(DH_meth_free_introduced)} + if LibVersion < DH_meth_free_introduced then + {$if declared(FC_DH_meth_free)} + DH_meth_free := @FC_DH_meth_free + {$else} + DH_meth_free := @ERR_DH_meth_free + {$ifend} + else + {$ifend} + {$if declared(DH_meth_free_removed)} + if DH_meth_free_removed <= LibVersion then + {$if declared(_DH_meth_free)} + DH_meth_free := @_DH_meth_free + {$else} + {$IF declared(ERR_DH_meth_free)} + DH_meth_free := @ERR_DH_meth_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_free) and Assigned(AFailed) then + AFailed.Add('DH_meth_free'); + end; + + + if not assigned(DH_meth_dup) then + begin + {$if declared(DH_meth_dup_introduced)} + if LibVersion < DH_meth_dup_introduced then + {$if declared(FC_DH_meth_dup)} + DH_meth_dup := @FC_DH_meth_dup + {$else} + DH_meth_dup := @ERR_DH_meth_dup + {$ifend} + else + {$ifend} + {$if declared(DH_meth_dup_removed)} + if DH_meth_dup_removed <= LibVersion then + {$if declared(_DH_meth_dup)} + DH_meth_dup := @_DH_meth_dup + {$else} + {$IF declared(ERR_DH_meth_dup)} + DH_meth_dup := @ERR_DH_meth_dup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_dup) and Assigned(AFailed) then + AFailed.Add('DH_meth_dup'); + end; + + + if not assigned(DH_meth_get0_name) then + begin + {$if declared(DH_meth_get0_name_introduced)} + if LibVersion < DH_meth_get0_name_introduced then + {$if declared(FC_DH_meth_get0_name)} + DH_meth_get0_name := @FC_DH_meth_get0_name + {$else} + DH_meth_get0_name := @ERR_DH_meth_get0_name + {$ifend} + else + {$ifend} + {$if declared(DH_meth_get0_name_removed)} + if DH_meth_get0_name_removed <= LibVersion then + {$if declared(_DH_meth_get0_name)} + DH_meth_get0_name := @_DH_meth_get0_name + {$else} + {$IF declared(ERR_DH_meth_get0_name)} + DH_meth_get0_name := @ERR_DH_meth_get0_name + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_get0_name) and Assigned(AFailed) then + AFailed.Add('DH_meth_get0_name'); + end; + + + if not assigned(DH_meth_set1_name) then + begin + {$if declared(DH_meth_set1_name_introduced)} + if LibVersion < DH_meth_set1_name_introduced then + {$if declared(FC_DH_meth_set1_name)} + DH_meth_set1_name := @FC_DH_meth_set1_name + {$else} + DH_meth_set1_name := @ERR_DH_meth_set1_name + {$ifend} + else + {$ifend} + {$if declared(DH_meth_set1_name_removed)} + if DH_meth_set1_name_removed <= LibVersion then + {$if declared(_DH_meth_set1_name)} + DH_meth_set1_name := @_DH_meth_set1_name + {$else} + {$IF declared(ERR_DH_meth_set1_name)} + DH_meth_set1_name := @ERR_DH_meth_set1_name + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_set1_name) and Assigned(AFailed) then + AFailed.Add('DH_meth_set1_name'); + end; + + + if not assigned(DH_meth_get_flags) then + begin + {$if declared(DH_meth_get_flags_introduced)} + if LibVersion < DH_meth_get_flags_introduced then + {$if declared(FC_DH_meth_get_flags)} + DH_meth_get_flags := @FC_DH_meth_get_flags + {$else} + DH_meth_get_flags := @ERR_DH_meth_get_flags + {$ifend} + else + {$ifend} + {$if declared(DH_meth_get_flags_removed)} + if DH_meth_get_flags_removed <= LibVersion then + {$if declared(_DH_meth_get_flags)} + DH_meth_get_flags := @_DH_meth_get_flags + {$else} + {$IF declared(ERR_DH_meth_get_flags)} + DH_meth_get_flags := @ERR_DH_meth_get_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_get_flags) and Assigned(AFailed) then + AFailed.Add('DH_meth_get_flags'); + end; + + + if not assigned(DH_meth_set_flags) then + begin + {$if declared(DH_meth_set_flags_introduced)} + if LibVersion < DH_meth_set_flags_introduced then + {$if declared(FC_DH_meth_set_flags)} + DH_meth_set_flags := @FC_DH_meth_set_flags + {$else} + DH_meth_set_flags := @ERR_DH_meth_set_flags + {$ifend} + else + {$ifend} + {$if declared(DH_meth_set_flags_removed)} + if DH_meth_set_flags_removed <= LibVersion then + {$if declared(_DH_meth_set_flags)} + DH_meth_set_flags := @_DH_meth_set_flags + {$else} + {$IF declared(ERR_DH_meth_set_flags)} + DH_meth_set_flags := @ERR_DH_meth_set_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_set_flags) and Assigned(AFailed) then + AFailed.Add('DH_meth_set_flags'); + end; + + + if not assigned(DH_meth_get0_app_data) then + begin + {$if declared(DH_meth_get0_app_data_introduced)} + if LibVersion < DH_meth_get0_app_data_introduced then + {$if declared(FC_DH_meth_get0_app_data)} + DH_meth_get0_app_data := @FC_DH_meth_get0_app_data + {$else} + DH_meth_get0_app_data := @ERR_DH_meth_get0_app_data + {$ifend} + else + {$ifend} + {$if declared(DH_meth_get0_app_data_removed)} + if DH_meth_get0_app_data_removed <= LibVersion then + {$if declared(_DH_meth_get0_app_data)} + DH_meth_get0_app_data := @_DH_meth_get0_app_data + {$else} + {$IF declared(ERR_DH_meth_get0_app_data)} + DH_meth_get0_app_data := @ERR_DH_meth_get0_app_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_get0_app_data) and Assigned(AFailed) then + AFailed.Add('DH_meth_get0_app_data'); + end; + + + if not assigned(DH_meth_set0_app_data) then + begin + {$if declared(DH_meth_set0_app_data_introduced)} + if LibVersion < DH_meth_set0_app_data_introduced then + {$if declared(FC_DH_meth_set0_app_data)} + DH_meth_set0_app_data := @FC_DH_meth_set0_app_data + {$else} + DH_meth_set0_app_data := @ERR_DH_meth_set0_app_data + {$ifend} + else + {$ifend} + {$if declared(DH_meth_set0_app_data_removed)} + if DH_meth_set0_app_data_removed <= LibVersion then + {$if declared(_DH_meth_set0_app_data)} + DH_meth_set0_app_data := @_DH_meth_set0_app_data + {$else} + {$IF declared(ERR_DH_meth_set0_app_data)} + DH_meth_set0_app_data := @ERR_DH_meth_set0_app_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_set0_app_data) and Assigned(AFailed) then + AFailed.Add('DH_meth_set0_app_data'); + end; + + + if not assigned(DH_meth_get_generate_key) then + begin + {$if declared(DH_meth_get_generate_key_introduced)} + if LibVersion < DH_meth_get_generate_key_introduced then + {$if declared(FC_DH_meth_get_generate_key)} + DH_meth_get_generate_key := @FC_DH_meth_get_generate_key + {$else} + DH_meth_get_generate_key := @ERR_DH_meth_get_generate_key + {$ifend} + else + {$ifend} + {$if declared(DH_meth_get_generate_key_removed)} + if DH_meth_get_generate_key_removed <= LibVersion then + {$if declared(_DH_meth_get_generate_key)} + DH_meth_get_generate_key := @_DH_meth_get_generate_key + {$else} + {$IF declared(ERR_DH_meth_get_generate_key)} + DH_meth_get_generate_key := @ERR_DH_meth_get_generate_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_get_generate_key) and Assigned(AFailed) then + AFailed.Add('DH_meth_get_generate_key'); + end; + + + if not assigned(DH_meth_set_generate_key) then + begin + {$if declared(DH_meth_set_generate_key_introduced)} + if LibVersion < DH_meth_set_generate_key_introduced then + {$if declared(FC_DH_meth_set_generate_key)} + DH_meth_set_generate_key := @FC_DH_meth_set_generate_key + {$else} + DH_meth_set_generate_key := @ERR_DH_meth_set_generate_key + {$ifend} + else + {$ifend} + {$if declared(DH_meth_set_generate_key_removed)} + if DH_meth_set_generate_key_removed <= LibVersion then + {$if declared(_DH_meth_set_generate_key)} + DH_meth_set_generate_key := @_DH_meth_set_generate_key + {$else} + {$IF declared(ERR_DH_meth_set_generate_key)} + DH_meth_set_generate_key := @ERR_DH_meth_set_generate_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_set_generate_key) and Assigned(AFailed) then + AFailed.Add('DH_meth_set_generate_key'); + end; + + + if not assigned(DH_meth_get_compute_key) then + begin + {$if declared(DH_meth_get_compute_key_introduced)} + if LibVersion < DH_meth_get_compute_key_introduced then + {$if declared(FC_DH_meth_get_compute_key)} + DH_meth_get_compute_key := @FC_DH_meth_get_compute_key + {$else} + DH_meth_get_compute_key := @ERR_DH_meth_get_compute_key + {$ifend} + else + {$ifend} + {$if declared(DH_meth_get_compute_key_removed)} + if DH_meth_get_compute_key_removed <= LibVersion then + {$if declared(_DH_meth_get_compute_key)} + DH_meth_get_compute_key := @_DH_meth_get_compute_key + {$else} + {$IF declared(ERR_DH_meth_get_compute_key)} + DH_meth_get_compute_key := @ERR_DH_meth_get_compute_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_get_compute_key) and Assigned(AFailed) then + AFailed.Add('DH_meth_get_compute_key'); + end; + + + if not assigned(DH_meth_set_compute_key) then + begin + {$if declared(DH_meth_set_compute_key_introduced)} + if LibVersion < DH_meth_set_compute_key_introduced then + {$if declared(FC_DH_meth_set_compute_key)} + DH_meth_set_compute_key := @FC_DH_meth_set_compute_key + {$else} + DH_meth_set_compute_key := @ERR_DH_meth_set_compute_key + {$ifend} + else + {$ifend} + {$if declared(DH_meth_set_compute_key_removed)} + if DH_meth_set_compute_key_removed <= LibVersion then + {$if declared(_DH_meth_set_compute_key)} + DH_meth_set_compute_key := @_DH_meth_set_compute_key + {$else} + {$IF declared(ERR_DH_meth_set_compute_key)} + DH_meth_set_compute_key := @ERR_DH_meth_set_compute_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_set_compute_key) and Assigned(AFailed) then + AFailed.Add('DH_meth_set_compute_key'); + end; + + + if not assigned(DH_meth_get_bn_mod_exp) then + begin + {$if declared(DH_meth_get_bn_mod_exp_introduced)} + if LibVersion < DH_meth_get_bn_mod_exp_introduced then + {$if declared(FC_DH_meth_get_bn_mod_exp)} + DH_meth_get_bn_mod_exp := @FC_DH_meth_get_bn_mod_exp + {$else} + DH_meth_get_bn_mod_exp := @ERR_DH_meth_get_bn_mod_exp + {$ifend} + else + {$ifend} + {$if declared(DH_meth_get_bn_mod_exp_removed)} + if DH_meth_get_bn_mod_exp_removed <= LibVersion then + {$if declared(_DH_meth_get_bn_mod_exp)} + DH_meth_get_bn_mod_exp := @_DH_meth_get_bn_mod_exp + {$else} + {$IF declared(ERR_DH_meth_get_bn_mod_exp)} + DH_meth_get_bn_mod_exp := @ERR_DH_meth_get_bn_mod_exp + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_get_bn_mod_exp) and Assigned(AFailed) then + AFailed.Add('DH_meth_get_bn_mod_exp'); + end; + + + if not assigned(DH_meth_set_bn_mod_exp) then + begin + {$if declared(DH_meth_set_bn_mod_exp_introduced)} + if LibVersion < DH_meth_set_bn_mod_exp_introduced then + {$if declared(FC_DH_meth_set_bn_mod_exp)} + DH_meth_set_bn_mod_exp := @FC_DH_meth_set_bn_mod_exp + {$else} + DH_meth_set_bn_mod_exp := @ERR_DH_meth_set_bn_mod_exp + {$ifend} + else + {$ifend} + {$if declared(DH_meth_set_bn_mod_exp_removed)} + if DH_meth_set_bn_mod_exp_removed <= LibVersion then + {$if declared(_DH_meth_set_bn_mod_exp)} + DH_meth_set_bn_mod_exp := @_DH_meth_set_bn_mod_exp + {$else} + {$IF declared(ERR_DH_meth_set_bn_mod_exp)} + DH_meth_set_bn_mod_exp := @ERR_DH_meth_set_bn_mod_exp + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_set_bn_mod_exp) and Assigned(AFailed) then + AFailed.Add('DH_meth_set_bn_mod_exp'); + end; + + + if not assigned(DH_meth_get_init) then + begin + {$if declared(DH_meth_get_init_introduced)} + if LibVersion < DH_meth_get_init_introduced then + {$if declared(FC_DH_meth_get_init)} + DH_meth_get_init := @FC_DH_meth_get_init + {$else} + DH_meth_get_init := @ERR_DH_meth_get_init + {$ifend} + else + {$ifend} + {$if declared(DH_meth_get_init_removed)} + if DH_meth_get_init_removed <= LibVersion then + {$if declared(_DH_meth_get_init)} + DH_meth_get_init := @_DH_meth_get_init + {$else} + {$IF declared(ERR_DH_meth_get_init)} + DH_meth_get_init := @ERR_DH_meth_get_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_get_init) and Assigned(AFailed) then + AFailed.Add('DH_meth_get_init'); + end; + + + if not assigned(DH_meth_set_init) then + begin + {$if declared(DH_meth_set_init_introduced)} + if LibVersion < DH_meth_set_init_introduced then + {$if declared(FC_DH_meth_set_init)} + DH_meth_set_init := @FC_DH_meth_set_init + {$else} + DH_meth_set_init := @ERR_DH_meth_set_init + {$ifend} + else + {$ifend} + {$if declared(DH_meth_set_init_removed)} + if DH_meth_set_init_removed <= LibVersion then + {$if declared(_DH_meth_set_init)} + DH_meth_set_init := @_DH_meth_set_init + {$else} + {$IF declared(ERR_DH_meth_set_init)} + DH_meth_set_init := @ERR_DH_meth_set_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_set_init) and Assigned(AFailed) then + AFailed.Add('DH_meth_set_init'); + end; + + + if not assigned(DH_meth_get_finish) then + begin + {$if declared(DH_meth_get_finish_introduced)} + if LibVersion < DH_meth_get_finish_introduced then + {$if declared(FC_DH_meth_get_finish)} + DH_meth_get_finish := @FC_DH_meth_get_finish + {$else} + DH_meth_get_finish := @ERR_DH_meth_get_finish + {$ifend} + else + {$ifend} + {$if declared(DH_meth_get_finish_removed)} + if DH_meth_get_finish_removed <= LibVersion then + {$if declared(_DH_meth_get_finish)} + DH_meth_get_finish := @_DH_meth_get_finish + {$else} + {$IF declared(ERR_DH_meth_get_finish)} + DH_meth_get_finish := @ERR_DH_meth_get_finish + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_get_finish) and Assigned(AFailed) then + AFailed.Add('DH_meth_get_finish'); + end; + + + if not assigned(DH_meth_set_finish) then + begin + {$if declared(DH_meth_set_finish_introduced)} + if LibVersion < DH_meth_set_finish_introduced then + {$if declared(FC_DH_meth_set_finish)} + DH_meth_set_finish := @FC_DH_meth_set_finish + {$else} + DH_meth_set_finish := @ERR_DH_meth_set_finish + {$ifend} + else + {$ifend} + {$if declared(DH_meth_set_finish_removed)} + if DH_meth_set_finish_removed <= LibVersion then + {$if declared(_DH_meth_set_finish)} + DH_meth_set_finish := @_DH_meth_set_finish + {$else} + {$IF declared(ERR_DH_meth_set_finish)} + DH_meth_set_finish := @ERR_DH_meth_set_finish + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_set_finish) and Assigned(AFailed) then + AFailed.Add('DH_meth_set_finish'); + end; + + + if not assigned(DH_meth_get_generate_params) then + begin + {$if declared(DH_meth_get_generate_params_introduced)} + if LibVersion < DH_meth_get_generate_params_introduced then + {$if declared(FC_DH_meth_get_generate_params)} + DH_meth_get_generate_params := @FC_DH_meth_get_generate_params + {$else} + DH_meth_get_generate_params := @ERR_DH_meth_get_generate_params + {$ifend} + else + {$ifend} + {$if declared(DH_meth_get_generate_params_removed)} + if DH_meth_get_generate_params_removed <= LibVersion then + {$if declared(_DH_meth_get_generate_params)} + DH_meth_get_generate_params := @_DH_meth_get_generate_params + {$else} + {$IF declared(ERR_DH_meth_get_generate_params)} + DH_meth_get_generate_params := @ERR_DH_meth_get_generate_params + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_get_generate_params) and Assigned(AFailed) then + AFailed.Add('DH_meth_get_generate_params'); + end; + + + if not assigned(DH_meth_set_generate_params) then + begin + {$if declared(DH_meth_set_generate_params_introduced)} + if LibVersion < DH_meth_set_generate_params_introduced then + {$if declared(FC_DH_meth_set_generate_params)} + DH_meth_set_generate_params := @FC_DH_meth_set_generate_params + {$else} + DH_meth_set_generate_params := @ERR_DH_meth_set_generate_params + {$ifend} + else + {$ifend} + {$if declared(DH_meth_set_generate_params_removed)} + if DH_meth_set_generate_params_removed <= LibVersion then + {$if declared(_DH_meth_set_generate_params)} + DH_meth_set_generate_params := @_DH_meth_set_generate_params + {$else} + {$IF declared(ERR_DH_meth_set_generate_params)} + DH_meth_set_generate_params := @ERR_DH_meth_set_generate_params + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DH_meth_set_generate_params) and Assigned(AFailed) then + AFailed.Add('DH_meth_set_generate_params'); + end; + + +end; + +procedure Unload; +begin + DHparams_dup := nil; + DH_OpenSSL := nil; + DH_set_default_method := nil; + DH_get_default_method := nil; + DH_set_method := nil; + DH_new_method := nil; + DH_new := nil; + DH_free := nil; + DH_up_ref := nil; + DH_bits := nil; {introduced 1.1.0} + DH_size := nil; + DH_security_bits := nil; {introduced 1.1.0} + DH_set_ex_data := nil; + DH_get_ex_data := nil; + DH_generate_parameters_ex := nil; + DH_check_params_ex := nil; {introduced 1.1.0} + DH_check_ex := nil; {introduced 1.1.0} + DH_check_pub_key_ex := nil; {introduced 1.1.0} + DH_check_params := nil; {introduced 1.1.0} + DH_check := nil; + DH_check_pub_key := nil; + DH_generate_key := nil; + DH_compute_key := nil; + DH_compute_key_padded := nil; + d2i_DHparams := nil; + i2d_DHparams := nil; + d2i_DHxparams := nil; + i2d_DHxparams := nil; + DHparams_print := nil; + DH_get_1024_160 := nil; + DH_get_2048_224 := nil; + DH_get_2048_256 := nil; + DH_new_by_nid := nil; {introduced 1.1.0} + DH_get_nid := nil; {introduced 1.1.0} + DH_KDF_X9_42 := nil; + DH_get0_pqg := nil; {introduced 1.1.0} + DH_set0_pqg := nil; {introduced 1.1.0} + DH_get0_key := nil; {introduced 1.1.0} + DH_set0_key := nil; {introduced 1.1.0} + DH_get0_p := nil; {introduced 1.1.0} + DH_get0_q := nil; {introduced 1.1.0} + DH_get0_g := nil; {introduced 1.1.0} + DH_get0_priv_key := nil; {introduced 1.1.0} + DH_get0_pub_key := nil; {introduced 1.1.0} + DH_clear_flags := nil; {introduced 1.1.0} + DH_test_flags := nil; {introduced 1.1.0} + DH_set_flags := nil; {introduced 1.1.0} + DH_get0_engine := nil; {introduced 1.1.0} + DH_get_length := nil; {introduced 1.1.0} + DH_set_length := nil; {introduced 1.1.0} + DH_meth_new := nil; {introduced 1.1.0} + DH_meth_free := nil; {introduced 1.1.0} + DH_meth_dup := nil; {introduced 1.1.0} + DH_meth_get0_name := nil; {introduced 1.1.0} + DH_meth_set1_name := nil; {introduced 1.1.0} + DH_meth_get_flags := nil; {introduced 1.1.0} + DH_meth_set_flags := nil; {introduced 1.1.0} + DH_meth_get0_app_data := nil; {introduced 1.1.0} + DH_meth_set0_app_data := nil; {introduced 1.1.0} + DH_meth_get_generate_key := nil; {introduced 1.1.0} + DH_meth_set_generate_key := nil; {introduced 1.1.0} + DH_meth_get_compute_key := nil; {introduced 1.1.0} + DH_meth_set_compute_key := nil; {introduced 1.1.0} + DH_meth_get_bn_mod_exp := nil; {introduced 1.1.0} + DH_meth_set_bn_mod_exp := nil; {introduced 1.1.0} + DH_meth_get_init := nil; {introduced 1.1.0} + DH_meth_set_init := nil; {introduced 1.1.0} + DH_meth_get_finish := nil; {introduced 1.1.0} + DH_meth_set_finish := nil; {introduced 1.1.0} + DH_meth_get_generate_params := nil; {introduced 1.1.0} + DH_meth_set_generate_params := nil; {introduced 1.1.0} +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dherr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dherr.pas new file mode 100644 index 000000000..60ceace6b --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dherr.pas @@ -0,0 +1,157 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_dherr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_dherr.h2pas + and this file regenerated. IdOpenSSLHeaders_dherr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_dherr; + +interface + +// Headers for OpenSSL 1.1.1 +// dherr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // DH function codes + DH_F_COMPUTE_KEY = 102; + DH_F_DHPARAMS_PRINT_FP = 101; + DH_F_DH_BUILTIN_GENPARAMS = 106; + DH_F_DH_CHECK_EX = 121; + DH_F_DH_CHECK_PARAMS_EX = 122; + DH_F_DH_CHECK_PUB_KEY_EX = 123; + DH_F_DH_CMS_DECRYPT = 114; + DH_F_DH_CMS_SET_PEERKEY = 115; + DH_F_DH_CMS_SET_SHARED_INFO = 116; + DH_F_DH_METH_DUP = 117; + DH_F_DH_METH_NEW = 118; + DH_F_DH_METH_SET1_NAME = 119; + DH_F_DH_NEW_BY_NID = 104; + DH_F_DH_NEW_METHOD = 105; + DH_F_DH_PARAM_DECODE = 107; + DH_F_DH_PKEY_PUBLIC_CHECK = 124; + DH_F_DH_PRIV_DECODE = 110; + DH_F_DH_PRIV_ENCODE = 111; + DH_F_DH_PUB_DECODE = 108; + DH_F_DH_PUB_ENCODE = 109; + DH_F_DO_DH_PRINT = 100; + DH_F_GENERATE_KEY = 103; + DH_F_PKEY_DH_CTRL_STR = 120; + DH_F_PKEY_DH_DERIVE = 112; + DH_F_PKEY_DH_INIT = 125; + DH_F_PKEY_DH_KEYGEN = 113; + + // DH reason codes + DH_R_BAD_GENERATOR = 101; + DH_R_BN_DECODE_ERROR = 109; + DH_R_BN_ERROR = 106; + DH_R_CHECK_INVALID_J_VALUE = 115; + DH_R_CHECK_INVALID_Q_VALUE = 116; + DH_R_CHECK_PUBKEY_INVALID = 122; + DH_R_CHECK_PUBKEY_TOO_LARGE = 123; + DH_R_CHECK_PUBKEY_TOO_SMALL = 124; + DH_R_CHECK_P_NOT_PRIME = 117; + DH_R_CHECK_P_NOT_SAFE_PRIME = 118; + DH_R_CHECK_Q_NOT_PRIME = 119; + DH_R_DECODE_ERROR = 104; + DH_R_INVALID_PARAMETER_NAME = 110; + DH_R_INVALID_PARAMETER_NID = 114; + DH_R_INVALID_PUBKEY = 102; + DH_R_KDF_PARAMETER_ERROR = 112; + DH_R_KEYS_NOT_SET = 108; + DH_R_MISSING_PUBKEY = 125; + DH_R_MODULUS_TOO_LARGE = 103; + DH_R_NOT_SUITABLE_GENERATOR = 120; + DH_R_NO_PARAMETERS_SET = 107; + DH_R_NO_PRIVATE_VALUE = 100; + DH_R_PARAMETER_ENCODING_ERROR = 105; + DH_R_PEER_KEY_ERROR = 111; + DH_R_SHARED_INFO_ERROR = 113; + DH_R_UNABLE_TO_CHECK_GENERATOR = 121; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_DH_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_DH_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_DH_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_DH_strings := LoadFunction('ERR_load_DH_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_DH_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dsa.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dsa.pas new file mode 100644 index 000000000..72b11de8a --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dsa.pas @@ -0,0 +1,584 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_dsa.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_dsa.h2pas + and this file regenerated. IdOpenSSLHeaders_dsa.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_dsa; + +interface + +// Headers for OpenSSL 1.1.1 +// dsa.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_evp; + +const + OPENSSL_DSA_MAX_MODULUS_BITS = 10000; + OPENSSL_DSA_FIPS_MIN_MODULUS_BITS = 1024; + DSA_FLAG_CACHE_MONT_P = $01; + DSA_FLAG_NO_EXP_CONSTTIME = $00; + DSA_FLAG_FIPS_METHOD = $0400; + DSA_FLAG_NON_FIPS_ALLOW = $0400; + DSA_FLAG_FIPS_CHECKED = $0800; + + DSS_prime_checks = 64; + + EVP_PKEY_CTRL_DSA_PARAMGEN_BITS = EVP_PKEY_ALG_CTRL + 1; + EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS = EVP_PKEY_ALG_CTRL + 2; + EVP_PKEY_CTRL_DSA_PARAMGEN_MD = EVP_PKEY_ALG_CTRL + 3; + +type + DSA_SIG = type Pointer; // DSA_SIG_st + PDSA_SIG = ^DSA_SIG; + PPDSA_SIG = ^PDSA_SIG; + + DSA_meth_sign_cb = function (const v1: PByte; v2: TIdC_INT; v3: PDSA): PDSA_SIG cdecl; + DSA_meth_sign_setup_cb = function (v1: PDSA; v2: PBN_CTX; + v3: PPBIGNUM; v4: PPBIGNUM): TIdC_INT cdecl; + DSA_meth_verify_cb = function (const v1: PByte; v2: TIdC_INT; + v3: PDSA_SIG; v4: PDSA): TIdC_INT cdecl; + DSA_meth_mod_exp_cb = function (v1: PDSA; v2: PBIGNUM; + const v3: PBIGNUM; const v4: PBIGNUM; const v5: PBIGNUM; const v6: PBIGNUM; + const v7: PBIGNUM; v8: PBN_CTX; v9: PBN_MONT_CTX): TIdC_INT cdecl; + DSA_meth_bn_mod_exp_cb = function (v1: PDSA; v2: PBIGNUM; + const v3: PBIGNUM; const v4: PBIGNUM; const v5: PBIGNUM; v6: PBN_CTX; v7: PBN_MONT_CTX): TIdC_INT cdecl; + DSA_meth_init_cb = function(v1: PDSA): TIdC_INT cdecl; + DSA_meth_finish_cb = function (v1: PDSA): TIdC_INT cdecl; + DSA_meth_paramgen_cb = function (v1: PDSA; v2: TIdC_INT; + const v3: PByte; v4: TIdC_INT; v5: PIdC_INT; v6: PIdC_ULONG; v7: PBN_GENCB): TIdC_INT cdecl; + DSA_meth_keygen_cb = function (v1: PDSA): TIdC_INT cdecl; + +//# define d2i_DSAparams_fp(fp,x) (DSA *)ASN1_d2i_fp((char *(*)())DSA_new, \ +// (char *(*)())d2i_DSAparams,(fp),(unsigned char **)(x)) +//# define i2d_DSAparams_fp(fp,x) ASN1_i2d_fp(i2d_DSAparams,(fp), \ +// (unsigned char *)(x)) +//# define d2i_DSAparams_bio(bp,x) ASN1_d2i_bio_of(DSA,DSA_new,d2i_DSAparams,bp,x) +//# define i2d_DSAparams_bio(bp,x) ASN1_i2d_bio_of_const(DSA,i2d_DSAparams,bp,x) + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM DSAparams_dup} + {$EXTERNALSYM DSA_SIG_new} + {$EXTERNALSYM DSA_SIG_free} + {$EXTERNALSYM i2d_DSA_SIG} + {$EXTERNALSYM d2i_DSA_SIG} + {$EXTERNALSYM DSA_SIG_get0} + {$EXTERNALSYM DSA_SIG_set0} + {$EXTERNALSYM DSA_do_sign} + {$EXTERNALSYM DSA_do_verify} + {$EXTERNALSYM DSA_OpenSSL} + {$EXTERNALSYM DSA_set_default_method} + {$EXTERNALSYM DSA_get_default_method} + {$EXTERNALSYM DSA_set_method} + {$EXTERNALSYM DSA_get_method} + {$EXTERNALSYM DSA_new} + {$EXTERNALSYM DSA_new_method} + {$EXTERNALSYM DSA_free} + {$EXTERNALSYM DSA_up_ref} + {$EXTERNALSYM DSA_size} + {$EXTERNALSYM DSA_bits} + {$EXTERNALSYM DSA_security_bits} + {$EXTERNALSYM DSA_sign} + {$EXTERNALSYM DSA_verify} + {$EXTERNALSYM DSA_set_ex_data} + {$EXTERNALSYM DSA_get_ex_data} + {$EXTERNALSYM d2i_DSAPublicKey} + {$EXTERNALSYM d2i_DSAPrivateKey} + {$EXTERNALSYM d2i_DSAparams} + {$EXTERNALSYM DSA_generate_parameters_ex} + {$EXTERNALSYM DSA_generate_key} + {$EXTERNALSYM i2d_DSAPublicKey} + {$EXTERNALSYM i2d_DSAPrivateKey} + {$EXTERNALSYM i2d_DSAparams} + {$EXTERNALSYM DSAparams_print} + {$EXTERNALSYM DSA_print} + {$EXTERNALSYM DSA_dup_DH} + {$EXTERNALSYM DSA_get0_pqg} + {$EXTERNALSYM DSA_set0_pqg} + {$EXTERNALSYM DSA_get0_key} + {$EXTERNALSYM DSA_set0_key} + {$EXTERNALSYM DSA_get0_p} + {$EXTERNALSYM DSA_get0_q} + {$EXTERNALSYM DSA_get0_g} + {$EXTERNALSYM DSA_get0_pub_key} + {$EXTERNALSYM DSA_get0_priv_key} + {$EXTERNALSYM DSA_clear_flags} + {$EXTERNALSYM DSA_test_flags} + {$EXTERNALSYM DSA_set_flags} + {$EXTERNALSYM DSA_get0_engine} + {$EXTERNALSYM DSA_meth_new} + {$EXTERNALSYM DSA_meth_free} + {$EXTERNALSYM DSA_meth_dup} + {$EXTERNALSYM DSA_meth_get0_name} + {$EXTERNALSYM DSA_meth_set1_name} + {$EXTERNALSYM DSA_meth_get_flags} + {$EXTERNALSYM DSA_meth_set_flags} + {$EXTERNALSYM DSA_meth_get0_app_data} + {$EXTERNALSYM DSA_meth_set0_app_data} + {$EXTERNALSYM DSA_meth_get_sign} + {$EXTERNALSYM DSA_meth_set_sign} + {$EXTERNALSYM DSA_meth_get_sign_setup} + {$EXTERNALSYM DSA_meth_set_sign_setup} + {$EXTERNALSYM DSA_meth_get_verify} + {$EXTERNALSYM DSA_meth_set_verify} + {$EXTERNALSYM DSA_meth_get_mod_exp} + {$EXTERNALSYM DSA_meth_set_mod_exp} + {$EXTERNALSYM DSA_meth_get_bn_mod_exp} + {$EXTERNALSYM DSA_meth_set_bn_mod_exp} + {$EXTERNALSYM DSA_meth_get_init} + {$EXTERNALSYM DSA_meth_set_init} + {$EXTERNALSYM DSA_meth_get_finish} + {$EXTERNALSYM DSA_meth_set_finish} + {$EXTERNALSYM DSA_meth_get_paramgen} + {$EXTERNALSYM DSA_meth_set_paramgen} + {$EXTERNALSYM DSA_meth_get_keygen} + {$EXTERNALSYM DSA_meth_set_keygen} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + DSAparams_dup: function(x: PDSA): PDSA; cdecl = nil; + DSA_SIG_new: function: PDSA_SIG; cdecl = nil; + DSA_SIG_free: procedure(a: PDSA_SIG); cdecl = nil; + i2d_DSA_SIG: function(const a: PDSA_SIG; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_DSA_SIG: function(v: PPDSA_SIG; const pp: PPByte; length: TIdC_LONG): PDSA_SIG; cdecl = nil; + DSA_SIG_get0: procedure(const sig: PDSA_SIG; const pr: PPBIGNUM; const ps: PPBIGNUM); cdecl = nil; + DSA_SIG_set0: function(sig: PDSA_SIG; r: PBIGNUM; s: PBIGNUM): TIdC_INT; cdecl = nil; + + DSA_do_sign: function(const dgst: PByte; dlen: TIdC_INT; dsa: PDSA): PDSA_SIG; cdecl = nil; + DSA_do_verify: function(const dgst: PByte; dgst_len: TIdC_INT; sig: PDSA_SIG; dsa: PDSA): TIdC_INT; cdecl = nil; + + DSA_OpenSSL: function: PDSA_METHOD; cdecl = nil; + DSA_set_default_method: procedure(const v1: PDSA_METHOD); cdecl = nil; + DSA_get_default_method: function: PDSA_METHOD; cdecl = nil; + DSA_set_method: function(dsa: PDSA; const v1: PDSA_METHOD): TIdC_INT; cdecl = nil; + DSA_get_method: function(d: PDSA): PDSA_METHOD; cdecl = nil; + + DSA_new: function: PDSA; cdecl = nil; + DSA_new_method: function(engine: PENGINE): PDSA; cdecl = nil; + DSA_free: procedure(r: PDSA); cdecl = nil; + (* "up" the DSA object's reference count *) + DSA_up_ref: function(r: PDSA): TIdC_INT; cdecl = nil; + DSA_size: function(const v1: PDSA): TIdC_INT; cdecl = nil; + DSA_bits: function(const d: PDSA): TIdC_INT; cdecl = nil; + DSA_security_bits: function(const d: PDSA): TIdC_INT; cdecl = nil; + DSA_sign: function(type_: TIdC_INT; const dgst: PByte; dlen: TIdC_INT; sig: PByte; siglen: PIdC_UINT; dsa: PDSA): TIdC_INT; cdecl = nil; + DSA_verify: function(type_: TIdC_INT; const dgst: PByte; dgst_len: TIdC_INT; const sigbuf: PByte; siglen: TIdC_INT; dsa: PDSA): TIdC_INT; cdecl = nil; + //#define DSA_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DSA, l, p, newf, dupf, freef) + DSA_set_ex_data: function(d: PDSA; idx: TIdC_INT; arg: Pointer): TIdC_INT; cdecl = nil; + DSA_get_ex_data: function(d: PDSA; idx: TIdC_INT): Pointer; cdecl = nil; + + d2i_DSAPublicKey: function(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA; cdecl = nil; + d2i_DSAPrivateKey: function(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA; cdecl = nil; + d2i_DSAparams: function(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA; cdecl = nil; + + DSA_generate_parameters_ex: function(dsa: PDSA; bits: TIdC_INT; const seed: PByte; seed_len: TIdC_INT; counter_ret: PIdC_INT; h_ret: PIdC_ULONG; cb: PBN_GENCB): TIdC_INT; cdecl = nil; + + DSA_generate_key: function(a: PDSA): TIdC_INT; cdecl = nil; + i2d_DSAPublicKey: function(const a: PDSA; pp: PPByte): TIdC_INT; cdecl = nil; + i2d_DSAPrivateKey: function(const a: PDSA; pp: PPByte): TIdC_INT; cdecl = nil; + i2d_DSAparams: function(const a: PDSA; pp: PPByte): TIdC_INT; cdecl = nil; + + DSAparams_print: function(bp: PBIO; const x: PDSA): TIdC_INT; cdecl = nil; + DSA_print: function(bp: PBIO; const x: PDSA; off: TIdC_INT): TIdC_INT; cdecl = nil; +// function DSAparams_print_fp(fp: PFile; const x: PDSA): TIdC_INT; +// function DSA_print_fp(bp: PFile; const x: PDSA; off: TIdC_INT): TIdC_INT; + + //# define DSA_is_prime(n, callback, cb_arg) \ + // BN_is_prime(n, DSS_prime_checks, callback, NULL, cb_arg) + + (* + * Convert DSA structure (key or just parameters) into DH structure (be + * careful to avoid small subgroup attacks when using this!) + *) + DSA_dup_DH: function(const r: PDSA): PDH; cdecl = nil; + + //# define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \ + // EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \ + // 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)) + + DSA_get0_pqg: procedure(const d: PDSA; const p: PPBIGNUM; const q: PPBIGNUM; const g: PPBIGNUM); cdecl = nil; + DSA_set0_pqg: function(d: PDSA; p: PBIGNUM; q: PBIGNUM; g: PBIGNUM): TIdC_INT; cdecl = nil; + DSA_get0_key: procedure(const d: PDSA; const pub_key: PPBIGNUM; const priv_key: PPBIGNUM); cdecl = nil; + DSA_set0_key: function(d: PDSA; pub_key: PBIGNUM; priv_key: PBIGNUM): TIdC_INT; cdecl = nil; + DSA_get0_p: function(const d: PDSA): PBIGNUM; cdecl = nil; + DSA_get0_q: function(const d: PDSA): PBIGNUM; cdecl = nil; + DSA_get0_g: function(const d: PDSA): PBIGNUM; cdecl = nil; + DSA_get0_pub_key: function(const d: PDSA): PBIGNUM; cdecl = nil; + DSA_get0_priv_key: function(const d: PDSA): PBIGNUM; cdecl = nil; + DSA_clear_flags: procedure(d: PDSA; flags: TIdC_INT); cdecl = nil; + DSA_test_flags: function(const d: PDSA; flags: TIdC_INT): TIdC_INT; cdecl = nil; + DSA_set_flags: procedure(d: PDSA; flags: TIdC_INT); cdecl = nil; + DSA_get0_engine: function(d: PDSA): PENGINE; cdecl = nil; + + DSA_meth_new: function(const name: PIdAnsiChar; flags: TIdC_INT): PDSA_METHOD; cdecl = nil; + DSA_meth_free: procedure(dsam: PDSA_METHOD); cdecl = nil; + DSA_meth_dup: function(const dsam: PDSA_METHOD): PDSA_METHOD; cdecl = nil; + DSA_meth_get0_name: function(const dsam: PDSA_METHOD): PIdAnsiChar; cdecl = nil; + DSA_meth_set1_name: function(dsam: PDSA_METHOD; const name: PIdAnsiChar): TIdC_INT; cdecl = nil; + DSA_meth_get_flags: function(const dsam: PDSA_METHOD): TIdC_INT; cdecl = nil; + DSA_meth_set_flags: function(dsam: PDSA_METHOD; flags: TIdC_INT): TIdC_INT; cdecl = nil; + DSA_meth_get0_app_data: function(const dsam: PDSA_METHOD): Pointer; cdecl = nil; + DSA_meth_set0_app_data: function(dsam: PDSA_METHOD; app_data: Pointer): TIdC_INT; cdecl = nil; + DSA_meth_get_sign: function(const dsam: PDSA_METHOD): DSA_meth_sign_cb; cdecl = nil; + DSA_meth_set_sign: function(dsam: PDSA_METHOD; sign: DSA_meth_sign_cb): TIdC_INT; cdecl = nil; + DSA_meth_get_sign_setup: function(const dsam: PDSA_METHOD): DSA_meth_sign_setup_cb; cdecl = nil; + DSA_meth_set_sign_setup: function(dsam: PDSA_METHOD; sign_setup: DSA_meth_sign_setup_cb): TIdC_INT; cdecl = nil; + DSA_meth_get_verify: function(const dsam: PDSA_METHOD): DSA_meth_verify_cb; cdecl = nil; + DSA_meth_set_verify: function(dsam: PDSA_METHOD; verify: DSA_meth_verify_cb): TIdC_INT; cdecl = nil; + DSA_meth_get_mod_exp: function(const dsam: PDSA_METHOD): DSA_meth_mod_exp_cb; cdecl = nil; + DSA_meth_set_mod_exp: function(dsam: PDSA_METHOD; mod_exp: DSA_meth_mod_exp_cb): TIdC_INT; cdecl = nil; + DSA_meth_get_bn_mod_exp: function(const dsam: PDSA_METHOD): DSA_meth_bn_mod_exp_cb; cdecl = nil; + DSA_meth_set_bn_mod_exp: function(dsam: PDSA_METHOD; bn_mod_exp: DSA_meth_bn_mod_exp_cb): TIdC_INT; cdecl = nil; + DSA_meth_get_init: function(const dsam: PDSA_METHOD): DSA_meth_init_cb; cdecl = nil; + DSA_meth_set_init: function(dsam: PDSA_METHOD; init: DSA_meth_init_cb): TIdC_INT; cdecl = nil; + DSA_meth_get_finish: function(const dsam: PDSA_METHOD): DSA_meth_finish_cb; cdecl = nil; + DSA_meth_set_finish: function(dsam: PDSA_METHOD; finish: DSA_meth_finish_cb): TIdC_INT; cdecl = nil; + DSA_meth_get_paramgen: function(const dsam: PDSA_METHOD): DSA_meth_paramgen_cb; cdecl = nil; + DSA_meth_set_paramgen: function(dsam: PDSA_METHOD; paramgen: DSA_meth_paramgen_cb): TIdC_INT; cdecl = nil; + DSA_meth_get_keygen: function(const dsam: PDSA_METHOD): DSA_meth_keygen_cb; cdecl = nil; + DSA_meth_set_keygen: function(dsam: PDSA_METHOD; keygen: DSA_meth_keygen_cb): TIdC_INT; cdecl = nil; + +{$ELSE} + function DSAparams_dup(x: PDSA): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_SIG_new: PDSA_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure DSA_SIG_free(a: PDSA_SIG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_DSA_SIG(const a: PDSA_SIG; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_DSA_SIG(v: PPDSA_SIG; const pp: PPByte; length: TIdC_LONG): PDSA_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure DSA_SIG_get0(const sig: PDSA_SIG; const pr: PPBIGNUM; const ps: PPBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_SIG_set0(sig: PDSA_SIG; r: PBIGNUM; s: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DSA_do_sign(const dgst: PByte; dlen: TIdC_INT; dsa: PDSA): PDSA_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_do_verify(const dgst: PByte; dgst_len: TIdC_INT; sig: PDSA_SIG; dsa: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DSA_OpenSSL: PDSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure DSA_set_default_method(const v1: PDSA_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_get_default_method: PDSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_set_method(dsa: PDSA; const v1: PDSA_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_get_method(d: PDSA): PDSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DSA_new: PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_new_method(engine: PENGINE): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure DSA_free(r: PDSA) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* "up" the DSA object's reference count *) + function DSA_up_ref(r: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_size(const v1: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_bits(const d: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_security_bits(const d: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_sign(type_: TIdC_INT; const dgst: PByte; dlen: TIdC_INT; sig: PByte; siglen: PIdC_UINT; dsa: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_verify(type_: TIdC_INT; const dgst: PByte; dgst_len: TIdC_INT; const sigbuf: PByte; siglen: TIdC_INT; dsa: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //#define DSA_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DSA, l, p, newf, dupf, freef) + function DSA_set_ex_data(d: PDSA; idx: TIdC_INT; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_get_ex_data(d: PDSA; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_DSAPublicKey(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_DSAPrivateKey(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_DSAparams(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DSA_generate_parameters_ex(dsa: PDSA; bits: TIdC_INT; const seed: PByte; seed_len: TIdC_INT; counter_ret: PIdC_INT; h_ret: PIdC_ULONG; cb: PBN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DSA_generate_key(a: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_DSAPublicKey(const a: PDSA; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_DSAPrivateKey(const a: PDSA; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_DSAparams(const a: PDSA; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DSAparams_print(bp: PBIO; const x: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_print(bp: PBIO; const x: PDSA; off: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function DSAparams_print_fp(fp: PFile; const x: PDSA): TIdC_INT; +// function DSA_print_fp(bp: PFile; const x: PDSA; off: TIdC_INT): TIdC_INT; + + //# define DSA_is_prime(n, callback, cb_arg) \ + // BN_is_prime(n, DSS_prime_checks, callback, NULL, cb_arg) + + (* + * Convert DSA structure (key or just parameters) into DH structure (be + * careful to avoid small subgroup attacks when using this!) + *) + function DSA_dup_DH(const r: PDSA): PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //# define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \ + // EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \ + // 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)) + + procedure DSA_get0_pqg(const d: PDSA; const p: PPBIGNUM; const q: PPBIGNUM; const g: PPBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_set0_pqg(d: PDSA; p: PBIGNUM; q: PBIGNUM; g: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure DSA_get0_key(const d: PDSA; const pub_key: PPBIGNUM; const priv_key: PPBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_set0_key(d: PDSA; pub_key: PBIGNUM; priv_key: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_get0_p(const d: PDSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_get0_q(const d: PDSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_get0_g(const d: PDSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_get0_pub_key(const d: PDSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_get0_priv_key(const d: PDSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure DSA_clear_flags(d: PDSA; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_test_flags(const d: PDSA; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure DSA_set_flags(d: PDSA; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_get0_engine(d: PDSA): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function DSA_meth_new(const name: PIdAnsiChar; flags: TIdC_INT): PDSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure DSA_meth_free(dsam: PDSA_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_dup(const dsam: PDSA_METHOD): PDSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get0_name(const dsam: PDSA_METHOD): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set1_name(dsam: PDSA_METHOD; const name: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get_flags(const dsam: PDSA_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set_flags(dsam: PDSA_METHOD; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get0_app_data(const dsam: PDSA_METHOD): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set0_app_data(dsam: PDSA_METHOD; app_data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get_sign(const dsam: PDSA_METHOD): DSA_meth_sign_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set_sign(dsam: PDSA_METHOD; sign: DSA_meth_sign_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get_sign_setup(const dsam: PDSA_METHOD): DSA_meth_sign_setup_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set_sign_setup(dsam: PDSA_METHOD; sign_setup: DSA_meth_sign_setup_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get_verify(const dsam: PDSA_METHOD): DSA_meth_verify_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set_verify(dsam: PDSA_METHOD; verify: DSA_meth_verify_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get_mod_exp(const dsam: PDSA_METHOD): DSA_meth_mod_exp_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set_mod_exp(dsam: PDSA_METHOD; mod_exp: DSA_meth_mod_exp_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get_bn_mod_exp(const dsam: PDSA_METHOD): DSA_meth_bn_mod_exp_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set_bn_mod_exp(dsam: PDSA_METHOD; bn_mod_exp: DSA_meth_bn_mod_exp_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get_init(const dsam: PDSA_METHOD): DSA_meth_init_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set_init(dsam: PDSA_METHOD; init: DSA_meth_init_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get_finish(const dsam: PDSA_METHOD): DSA_meth_finish_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set_finish(dsam: PDSA_METHOD; finish: DSA_meth_finish_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get_paramgen(const dsam: PDSA_METHOD): DSA_meth_paramgen_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set_paramgen(dsam: PDSA_METHOD; paramgen: DSA_meth_paramgen_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_get_keygen(const dsam: PDSA_METHOD): DSA_meth_keygen_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function DSA_meth_set_keygen(dsam: PDSA_METHOD; keygen: DSA_meth_keygen_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + DSAparams_dup := LoadFunction('DSAparams_dup',AFailed); + DSA_SIG_new := LoadFunction('DSA_SIG_new',AFailed); + DSA_SIG_free := LoadFunction('DSA_SIG_free',AFailed); + i2d_DSA_SIG := LoadFunction('i2d_DSA_SIG',AFailed); + d2i_DSA_SIG := LoadFunction('d2i_DSA_SIG',AFailed); + DSA_SIG_get0 := LoadFunction('DSA_SIG_get0',AFailed); + DSA_SIG_set0 := LoadFunction('DSA_SIG_set0',AFailed); + DSA_do_sign := LoadFunction('DSA_do_sign',AFailed); + DSA_do_verify := LoadFunction('DSA_do_verify',AFailed); + DSA_OpenSSL := LoadFunction('DSA_OpenSSL',AFailed); + DSA_set_default_method := LoadFunction('DSA_set_default_method',AFailed); + DSA_get_default_method := LoadFunction('DSA_get_default_method',AFailed); + DSA_set_method := LoadFunction('DSA_set_method',AFailed); + DSA_get_method := LoadFunction('DSA_get_method',AFailed); + DSA_new := LoadFunction('DSA_new',AFailed); + DSA_new_method := LoadFunction('DSA_new_method',AFailed); + DSA_free := LoadFunction('DSA_free',AFailed); + DSA_up_ref := LoadFunction('DSA_up_ref',AFailed); + DSA_size := LoadFunction('DSA_size',AFailed); + DSA_bits := LoadFunction('DSA_bits',AFailed); + DSA_security_bits := LoadFunction('DSA_security_bits',AFailed); + DSA_sign := LoadFunction('DSA_sign',AFailed); + DSA_verify := LoadFunction('DSA_verify',AFailed); + DSA_set_ex_data := LoadFunction('DSA_set_ex_data',AFailed); + DSA_get_ex_data := LoadFunction('DSA_get_ex_data',AFailed); + d2i_DSAPublicKey := LoadFunction('d2i_DSAPublicKey',AFailed); + d2i_DSAPrivateKey := LoadFunction('d2i_DSAPrivateKey',AFailed); + d2i_DSAparams := LoadFunction('d2i_DSAparams',AFailed); + DSA_generate_parameters_ex := LoadFunction('DSA_generate_parameters_ex',AFailed); + DSA_generate_key := LoadFunction('DSA_generate_key',AFailed); + i2d_DSAPublicKey := LoadFunction('i2d_DSAPublicKey',AFailed); + i2d_DSAPrivateKey := LoadFunction('i2d_DSAPrivateKey',AFailed); + i2d_DSAparams := LoadFunction('i2d_DSAparams',AFailed); + DSAparams_print := LoadFunction('DSAparams_print',AFailed); + DSA_print := LoadFunction('DSA_print',AFailed); + DSA_dup_DH := LoadFunction('DSA_dup_DH',AFailed); + DSA_get0_pqg := LoadFunction('DSA_get0_pqg',AFailed); + DSA_set0_pqg := LoadFunction('DSA_set0_pqg',AFailed); + DSA_get0_key := LoadFunction('DSA_get0_key',AFailed); + DSA_set0_key := LoadFunction('DSA_set0_key',AFailed); + DSA_get0_p := LoadFunction('DSA_get0_p',AFailed); + DSA_get0_q := LoadFunction('DSA_get0_q',AFailed); + DSA_get0_g := LoadFunction('DSA_get0_g',AFailed); + DSA_get0_pub_key := LoadFunction('DSA_get0_pub_key',AFailed); + DSA_get0_priv_key := LoadFunction('DSA_get0_priv_key',AFailed); + DSA_clear_flags := LoadFunction('DSA_clear_flags',AFailed); + DSA_test_flags := LoadFunction('DSA_test_flags',AFailed); + DSA_set_flags := LoadFunction('DSA_set_flags',AFailed); + DSA_get0_engine := LoadFunction('DSA_get0_engine',AFailed); + DSA_meth_new := LoadFunction('DSA_meth_new',AFailed); + DSA_meth_free := LoadFunction('DSA_meth_free',AFailed); + DSA_meth_dup := LoadFunction('DSA_meth_dup',AFailed); + DSA_meth_get0_name := LoadFunction('DSA_meth_get0_name',AFailed); + DSA_meth_set1_name := LoadFunction('DSA_meth_set1_name',AFailed); + DSA_meth_get_flags := LoadFunction('DSA_meth_get_flags',AFailed); + DSA_meth_set_flags := LoadFunction('DSA_meth_set_flags',AFailed); + DSA_meth_get0_app_data := LoadFunction('DSA_meth_get0_app_data',AFailed); + DSA_meth_set0_app_data := LoadFunction('DSA_meth_set0_app_data',AFailed); + DSA_meth_get_sign := LoadFunction('DSA_meth_get_sign',AFailed); + DSA_meth_set_sign := LoadFunction('DSA_meth_set_sign',AFailed); + DSA_meth_get_sign_setup := LoadFunction('DSA_meth_get_sign_setup',AFailed); + DSA_meth_set_sign_setup := LoadFunction('DSA_meth_set_sign_setup',AFailed); + DSA_meth_get_verify := LoadFunction('DSA_meth_get_verify',AFailed); + DSA_meth_set_verify := LoadFunction('DSA_meth_set_verify',AFailed); + DSA_meth_get_mod_exp := LoadFunction('DSA_meth_get_mod_exp',AFailed); + DSA_meth_set_mod_exp := LoadFunction('DSA_meth_set_mod_exp',AFailed); + DSA_meth_get_bn_mod_exp := LoadFunction('DSA_meth_get_bn_mod_exp',AFailed); + DSA_meth_set_bn_mod_exp := LoadFunction('DSA_meth_set_bn_mod_exp',AFailed); + DSA_meth_get_init := LoadFunction('DSA_meth_get_init',AFailed); + DSA_meth_set_init := LoadFunction('DSA_meth_set_init',AFailed); + DSA_meth_get_finish := LoadFunction('DSA_meth_get_finish',AFailed); + DSA_meth_set_finish := LoadFunction('DSA_meth_set_finish',AFailed); + DSA_meth_get_paramgen := LoadFunction('DSA_meth_get_paramgen',AFailed); + DSA_meth_set_paramgen := LoadFunction('DSA_meth_set_paramgen',AFailed); + DSA_meth_get_keygen := LoadFunction('DSA_meth_get_keygen',AFailed); + DSA_meth_set_keygen := LoadFunction('DSA_meth_set_keygen',AFailed); +end; + +procedure Unload; +begin + DSAparams_dup := nil; + DSA_SIG_new := nil; + DSA_SIG_free := nil; + i2d_DSA_SIG := nil; + d2i_DSA_SIG := nil; + DSA_SIG_get0 := nil; + DSA_SIG_set0 := nil; + DSA_do_sign := nil; + DSA_do_verify := nil; + DSA_OpenSSL := nil; + DSA_set_default_method := nil; + DSA_get_default_method := nil; + DSA_set_method := nil; + DSA_get_method := nil; + DSA_new := nil; + DSA_new_method := nil; + DSA_free := nil; + DSA_up_ref := nil; + DSA_size := nil; + DSA_bits := nil; + DSA_security_bits := nil; + DSA_sign := nil; + DSA_verify := nil; + DSA_set_ex_data := nil; + DSA_get_ex_data := nil; + d2i_DSAPublicKey := nil; + d2i_DSAPrivateKey := nil; + d2i_DSAparams := nil; + DSA_generate_parameters_ex := nil; + DSA_generate_key := nil; + i2d_DSAPublicKey := nil; + i2d_DSAPrivateKey := nil; + i2d_DSAparams := nil; + DSAparams_print := nil; + DSA_print := nil; + DSA_dup_DH := nil; + DSA_get0_pqg := nil; + DSA_set0_pqg := nil; + DSA_get0_key := nil; + DSA_set0_key := nil; + DSA_get0_p := nil; + DSA_get0_q := nil; + DSA_get0_g := nil; + DSA_get0_pub_key := nil; + DSA_get0_priv_key := nil; + DSA_clear_flags := nil; + DSA_test_flags := nil; + DSA_set_flags := nil; + DSA_get0_engine := nil; + DSA_meth_new := nil; + DSA_meth_free := nil; + DSA_meth_dup := nil; + DSA_meth_get0_name := nil; + DSA_meth_set1_name := nil; + DSA_meth_get_flags := nil; + DSA_meth_set_flags := nil; + DSA_meth_get0_app_data := nil; + DSA_meth_set0_app_data := nil; + DSA_meth_get_sign := nil; + DSA_meth_set_sign := nil; + DSA_meth_get_sign_setup := nil; + DSA_meth_set_sign_setup := nil; + DSA_meth_get_verify := nil; + DSA_meth_set_verify := nil; + DSA_meth_get_mod_exp := nil; + DSA_meth_set_mod_exp := nil; + DSA_meth_get_bn_mod_exp := nil; + DSA_meth_set_bn_mod_exp := nil; + DSA_meth_get_init := nil; + DSA_meth_set_init := nil; + DSA_meth_get_finish := nil; + DSA_meth_set_finish := nil; + DSA_meth_get_paramgen := nil; + DSA_meth_set_paramgen := nil; + DSA_meth_get_keygen := nil; + DSA_meth_set_keygen := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dsaerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dsaerr.pas new file mode 100644 index 000000000..40173ca82 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_dsaerr.pas @@ -0,0 +1,145 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_dsaerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_dsaerr.h2pas + and this file regenerated. IdOpenSSLHeaders_dsaerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_dsaerr; + +interface + +// Headers for OpenSSL 1.1.1 +// dsaerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + ///* + // * DSA function codes. + // */ + DSA_F_DSAPARAMS_PRINT = 100; + DSA_F_DSAPARAMS_PRINT_FP = 101; + DSA_F_DSA_BUILTIN_PARAMGEN = 125; + DSA_F_DSA_BUILTIN_PARAMGEN2 = 126; + DSA_F_DSA_DO_SIGN = 112; + DSA_F_DSA_DO_VERIFY = 113; + DSA_F_DSA_METH_DUP = 127; + DSA_F_DSA_METH_NEW = 128; + DSA_F_DSA_METH_SET1_NAME = 129; + DSA_F_DSA_NEW_METHOD = 103; + DSA_F_DSA_PARAM_DECODE = 119; + DSA_F_DSA_PRINT_FP = 105; + DSA_F_DSA_PRIV_DECODE = 115; + DSA_F_DSA_PRIV_ENCODE = 116; + DSA_F_DSA_PUB_DECODE = 117; + DSA_F_DSA_PUB_ENCODE = 118; + DSA_F_DSA_SIGN = 106; + DSA_F_DSA_SIGN_SETUP = 107; + DSA_F_DSA_SIG_NEW = 102; + DSA_F_OLD_DSA_PRIV_DECODE = 122; + DSA_F_PKEY_DSA_CTRL = 120; + DSA_F_PKEY_DSA_CTRL_STR = 104; + DSA_F_PKEY_DSA_KEYGEN = 121; + + ///* + // * DSA reason codes. + // */ + DSA_R_BAD_Q_VALUE = 102; + DSA_R_BN_DECODE_ERROR = 108; + DSA_R_BN_ERROR = 109; + DSA_R_DECODE_ERROR = 104; + DSA_R_INVALID_DIGEST_TYPE = 106; + DSA_R_INVALID_PARAMETERS = 112; + DSA_R_MISSING_PARAMETERS = 101; + DSA_R_MISSING_PRIVATE_KEY = 111; + DSA_R_MODULUS_TOO_LARGE = 103; + DSA_R_NO_PARAMETERS_SET = 107; + DSA_R_PARAMETER_ENCODING_ERROR = 105; + DSA_R_Q_NOT_PRIME = 113; + DSA_R_SEED_LEN_SMALL = 110; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_DSA_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_DSA_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_DSA_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_DSA_strings := LoadFunction('ERR_load_DSA_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_DSA_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ebcdic.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ebcdic.pas new file mode 100644 index 000000000..16ebe8c67 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ebcdic.pas @@ -0,0 +1,109 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_ebcdic.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_ebcdic.h2pas + and this file regenerated. IdOpenSSLHeaders_ebcdic.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ebcdic; + +interface + +// Headers for OpenSSL 1.1.1 +// ebcdic.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + + + //extern const unsigned char os_toascii[256]; + //extern const unsigned char os_toebcdic[256]; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ebcdic2ascii} + {$EXTERNALSYM ascii2ebcdic} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ebcdic2ascii: function(dest: Pointer; const srce: Pointer; count: TIdC_SIZET): Pointer; cdecl = nil; + ascii2ebcdic: function(dest: Pointer; const srce: Pointer; count: TIdC_SIZET): Pointer; cdecl = nil; + +{$ELSE} + function ebcdic2ascii(dest: Pointer; const srce: Pointer; count: TIdC_SIZET): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ascii2ebcdic(dest: Pointer; const srce: Pointer; count: TIdC_SIZET): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ebcdic2ascii := LoadFunction('ebcdic2ascii',AFailed); + ascii2ebcdic := LoadFunction('ascii2ebcdic',AFailed); +end; + +procedure Unload; +begin + ebcdic2ascii := nil; + ascii2ebcdic := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ec.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ec.pas new file mode 100644 index 000000000..6c8197fb7 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ec.pas @@ -0,0 +1,2723 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_ec.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_ec.h2pas + and this file regenerated. IdOpenSSLHeaders_ec.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ec; + +interface + +// Headers for OpenSSL 1.1.1 +// ec.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_evp; + +const + OPENSSL_EC_EXPLICIT_CURVE = $000; + OPENSSL_EC_NAMED_CURVE = $001; + EC_PKEY_NO_PARAMETERS = $001; + EC_PKEY_NO_PUBKEY = $002; + EC_FLAG_NON_FIPS_ALLOW = $1; + EC_FLAG_FIPS_CHECKED = $2; + EC_FLAG_COFACTOR_ECDH = $1000; + EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID = (EVP_PKEY_ALG_CTRL + 1); + EVP_PKEY_CTRL_EC_PARAM_ENC = (EVP_PKEY_ALG_CTRL + 2); + EVP_PKEY_CTRL_EC_ECDH_COFACTOR = (EVP_PKEY_ALG_CTRL + 3); + EVP_PKEY_CTRL_EC_KDF_TYPE = (EVP_PKEY_ALG_CTRL + 4); + EVP_PKEY_CTRL_EC_KDF_MD = (EVP_PKEY_ALG_CTRL + 5); + EVP_PKEY_CTRL_GET_EC_KDF_MD = (EVP_PKEY_ALG_CTRL + 6); + EVP_PKEY_CTRL_EC_KDF_OUTLEN = (EVP_PKEY_ALG_CTRL + 7); + EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN = (EVP_PKEY_ALG_CTRL + 8); + EVP_PKEY_CTRL_EC_KDF_UKM = (EVP_PKEY_ALG_CTRL + 9); + EVP_PKEY_CTRL_GET_EC_KDF_UKM = (EVP_PKEY_ALG_CTRL + 10); + EVP_PKEY_CTRL_SET1_ID = (EVP_PKEY_ALG_CTRL + 11); + EVP_PKEY_CTRL_GET1_ID = (EVP_PKEY_ALG_CTRL + 12); + EVP_PKEY_CTRL_GET1_ID_LEN = (EVP_PKEY_ALG_CTRL + 13); + EVP_PKEY_ECDH_KDF_NONE = 1; + EVP_PKEY_ECDH_KDF_X9_63 = 2; + EVP_PKEY_ECDH_KDF_X9_62 = EVP_PKEY_ECDH_KDF_X9_63; + +type + {$MINENUMSIZE 4} + point_conversion_form_t = ( + POINT_CONVERSION_COMPRESSED = 2, + POINT_CONVERSION_UNCOMPRESSED = 4, + POINT_CONVERSION_HYBRID = 6 + ); + + EC_METHOD = type Pointer; // ec_method_st + PEC_METHOD = ^EC_METHOD; + + EC_GROUP = type Pointer; // ec_group_st + PEC_GROUP = ^EC_GROUP; + PPEC_GROUP = ^PEC_GROUP; + + EC_POINT = type Pointer; // ec_point_st + PEC_POINT = ^EC_POINT; + PPEC_POINT = ^PEC_POINT; + + ECPKPARAMETERS = type Pointer; // ecpk_parameters_st + PECPKPARAMETERS = ^ECPKPARAMETERS; + + ECPARAMETERS = type Pointer; // ec_parameters_st + PECPARAMETERS = ^ECPARAMETERS; + + EC_builtin_curve = record + nid: TIdC_INT; + comment: PIdAnsiChar; + end; + PEC_builtin_curve = ^EC_builtin_curve; + + ECDSA_SIG = type Pointer; // ECDSA_SIG_st + PECDSA_SIG = ^ECDSA_SIG; + PPECDSA_SIG = ^PECDSA_SIG; + + ECDH_compute_key_KDF = function(const in_: Pointer; inlen: TIdC_SIZET; out_: Pointer; outlen: PIdC_SIZET): Pointer; cdecl; + + EC_KEY_METHOD_init_init = function(key: PEC_KEY): TIdC_INT; cdecl; + EC_KEY_METHOD_init_finish = procedure(key: PEC_KEY); cdecl; + EC_KEY_METHOD_init_copy = function(dest: PEC_KEY; const src: PEC_KEY): TIdC_INT; cdecl; + EC_KEY_METHOD_init_set_group = function(key: PEC_KEY; const grp: PEC_GROUP): TIdC_INT; cdecl; + EC_KEY_METHOD_init_set_private = function(key: PEC_KEY; const priv_key: PBIGNUM): TIdC_INT; cdecl; + EC_KEY_METHOD_init_set_public = function(key: PEC_KEY; const pub_key: PEC_POINT): TIdC_INT; cdecl; + + EC_KEY_METHOD_keygen_keygen = function(key: PEC_KEY): TIdC_INT; cdecl; + + EC_KEY_METHOD_compute_key_ckey = function(psec: PPByte; pseclen: PIdC_SIZET; const pub_key: PEC_POINT; const ecdh: PEC_KEY): TIdC_INT; cdecl; + + EC_KEY_METHOD_sign_sign = function(type_: TIdC_INT; const dgst: PByte; dlen: TIdC_INT; sig: PByte; siglen: PIdC_UINT; const kinv: PBIGNUM; const r: PBIGNUM; eckey: PEC_KEY): TIdC_INT; cdecl; + EC_KEY_METHOD_sign_sign_setup = function(eckey: PEC_KEY; ctx_in: PBN_CTX; kinvp: PPBIGNUM; rp: PPBIGNUM): TIdC_INT; cdecl; + EC_KEY_METHOD_sign_sign_sig = function(const dgst: PByte; dgst_len: TIdC_INT; const in_kinv: PBIGNUM; const in_r: PBIGNUM; eckey: PEC_KEY): PECDSA_SIG; cdecl; + + EC_KEY_METHOD_verify_verify = function(type_: TIdC_INT; const dgst: PByte; dgst_len: TIdC_INT; const sigbuf: PByte; sig_len: TIdC_INT; eckey: PEC_KEY): TIdC_INT; cdecl; + EC_KEY_METHOD_verify_verify_sig = function(const dgst: PByte; dgst_len: TIdC_INT; const sig: PECDSA_SIG; eckey: PEC_KEY): TIdC_INT; cdecl; + + PEC_KEY_METHOD_init_init = ^EC_KEY_METHOD_init_init; + PEC_KEY_METHOD_init_finish = ^EC_KEY_METHOD_init_finish; + PEC_KEY_METHOD_init_copy = ^EC_KEY_METHOD_init_copy; + PEC_KEY_METHOD_init_set_group = ^EC_KEY_METHOD_init_set_group; + PEC_KEY_METHOD_init_set_private = ^EC_KEY_METHOD_init_set_private; + PEC_KEY_METHOD_init_set_public = ^EC_KEY_METHOD_init_set_public; + + PEC_KEY_METHOD_keygen_keygen = ^EC_KEY_METHOD_keygen_keygen; + + PEC_KEY_METHOD_compute_key_ckey = ^EC_KEY_METHOD_compute_key_ckey; + + PEC_KEY_METHOD_sign_sign = ^EC_KEY_METHOD_sign_sign; + PEC_KEY_METHOD_sign_sign_setup = ^EC_KEY_METHOD_sign_sign_setup; + PEC_KEY_METHOD_sign_sign_sig = ^EC_KEY_METHOD_sign_sign_sig; + + PEC_KEY_METHOD_verify_verify = ^EC_KEY_METHOD_verify_verify; + PEC_KEY_METHOD_verify_verify_sig = ^EC_KEY_METHOD_verify_verify_sig; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM EC_GFp_simple_method} + {$EXTERNALSYM EC_GFp_mont_method} + {$EXTERNALSYM EC_GFp_nist_method} + {$EXTERNALSYM EC_GF2m_simple_method} + {$EXTERNALSYM EC_GROUP_new} + {$EXTERNALSYM EC_GROUP_free} + {$EXTERNALSYM EC_GROUP_clear_free} + {$EXTERNALSYM EC_GROUP_copy} + {$EXTERNALSYM EC_GROUP_dup} + {$EXTERNALSYM EC_GROUP_method_of} + {$EXTERNALSYM EC_METHOD_get_field_type} + {$EXTERNALSYM EC_GROUP_set_generator} + {$EXTERNALSYM EC_GROUP_get0_generator} + {$EXTERNALSYM EC_GROUP_get_mont_data} + {$EXTERNALSYM EC_GROUP_get_order} + {$EXTERNALSYM EC_GROUP_get0_order} {introduced 1.1.0} + {$EXTERNALSYM EC_GROUP_order_bits} {introduced 1.1.0} + {$EXTERNALSYM EC_GROUP_get_cofactor} + {$EXTERNALSYM EC_GROUP_get0_cofactor} {introduced 1.1.0} + {$EXTERNALSYM EC_GROUP_set_curve_name} + {$EXTERNALSYM EC_GROUP_get_curve_name} + {$EXTERNALSYM EC_GROUP_set_asn1_flag} + {$EXTERNALSYM EC_GROUP_get_asn1_flag} + {$EXTERNALSYM EC_GROUP_set_point_conversion_form} + {$EXTERNALSYM EC_GROUP_get_point_conversion_form} + {$EXTERNALSYM EC_GROUP_get0_seed} + {$EXTERNALSYM EC_GROUP_get_seed_len} + {$EXTERNALSYM EC_GROUP_set_seed} + {$EXTERNALSYM EC_GROUP_set_curve} {introduced 1.1.0} + {$EXTERNALSYM EC_GROUP_get_curve} {introduced 1.1.0} + {$EXTERNALSYM EC_GROUP_set_curve_GFp} + {$EXTERNALSYM EC_GROUP_get_curve_GFp} + {$EXTERNALSYM EC_GROUP_set_curve_GF2m} + {$EXTERNALSYM EC_GROUP_get_curve_GF2m} + {$EXTERNALSYM EC_GROUP_get_degree} + {$EXTERNALSYM EC_GROUP_check} + {$EXTERNALSYM EC_GROUP_check_discriminant} + {$EXTERNALSYM EC_GROUP_cmp} + {$EXTERNALSYM EC_GROUP_new_curve_GFp} + {$EXTERNALSYM EC_GROUP_new_curve_GF2m} + {$EXTERNALSYM EC_GROUP_new_by_curve_name} + {$EXTERNALSYM EC_GROUP_new_from_ecparameters} {introduced 1.1.0} + {$EXTERNALSYM EC_GROUP_get_ecparameters} {introduced 1.1.0} + {$EXTERNALSYM EC_GROUP_new_from_ecpkparameters} {introduced 1.1.0} + {$EXTERNALSYM EC_GROUP_get_ecpkparameters} {introduced 1.1.0} + {$EXTERNALSYM EC_get_builtin_curves} + {$EXTERNALSYM EC_curve_nid2nist} + {$EXTERNALSYM EC_curve_nist2nid} + {$EXTERNALSYM EC_POINT_new} + {$EXTERNALSYM EC_POINT_free} + {$EXTERNALSYM EC_POINT_clear_free} + {$EXTERNALSYM EC_POINT_copy} + {$EXTERNALSYM EC_POINT_dup} + {$EXTERNALSYM EC_POINT_method_of} + {$EXTERNALSYM EC_POINT_set_to_infinity} + {$EXTERNALSYM EC_POINT_set_Jprojective_coordinates_GFp} + {$EXTERNALSYM EC_POINT_get_Jprojective_coordinates_GFp} + {$EXTERNALSYM EC_POINT_set_affine_coordinates} {introduced 1.1.0} + {$EXTERNALSYM EC_POINT_get_affine_coordinates} {introduced 1.1.0} + {$EXTERNALSYM EC_POINT_set_affine_coordinates_GFp} + {$EXTERNALSYM EC_POINT_get_affine_coordinates_GFp} + {$EXTERNALSYM EC_POINT_set_compressed_coordinates} {introduced 1.1.0} + {$EXTERNALSYM EC_POINT_set_compressed_coordinates_GFp} + {$EXTERNALSYM EC_POINT_set_affine_coordinates_GF2m} + {$EXTERNALSYM EC_POINT_get_affine_coordinates_GF2m} + {$EXTERNALSYM EC_POINT_set_compressed_coordinates_GF2m} + {$EXTERNALSYM EC_POINT_point2oct} + {$EXTERNALSYM EC_POINT_oct2point} + {$EXTERNALSYM EC_POINT_point2buf} {introduced 1.1.0} + {$EXTERNALSYM EC_POINT_point2bn} + {$EXTERNALSYM EC_POINT_bn2point} + {$EXTERNALSYM EC_POINT_point2hex} + {$EXTERNALSYM EC_POINT_hex2point} + {$EXTERNALSYM EC_POINT_add} + {$EXTERNALSYM EC_POINT_dbl} + {$EXTERNALSYM EC_POINT_invert} + {$EXTERNALSYM EC_POINT_is_at_infinity} + {$EXTERNALSYM EC_POINT_is_on_curve} + {$EXTERNALSYM EC_POINT_cmp} + {$EXTERNALSYM EC_POINT_make_affine} + {$EXTERNALSYM EC_POINTs_make_affine} + {$EXTERNALSYM EC_POINTs_mul} + {$EXTERNALSYM EC_POINT_mul} + {$EXTERNALSYM EC_GROUP_precompute_mult} + {$EXTERNALSYM EC_GROUP_have_precompute_mult} + {$EXTERNALSYM ECPKPARAMETERS_it} + {$EXTERNALSYM ECPKPARAMETERS_new} + {$EXTERNALSYM ECPKPARAMETERS_free} + {$EXTERNALSYM ECPARAMETERS_it} + {$EXTERNALSYM ECPARAMETERS_new} + {$EXTERNALSYM ECPARAMETERS_free} + {$EXTERNALSYM EC_GROUP_get_basis_type} + {$EXTERNALSYM EC_GROUP_get_trinomial_basis} + {$EXTERNALSYM EC_GROUP_get_pentanomial_basis} + {$EXTERNALSYM d2i_ECPKParameters} + {$EXTERNALSYM i2d_ECPKParameters} + {$EXTERNALSYM ECPKParameters_print} + {$EXTERNALSYM EC_KEY_new} + {$EXTERNALSYM EC_KEY_get_flags} + {$EXTERNALSYM EC_KEY_set_flags} + {$EXTERNALSYM EC_KEY_clear_flags} + {$EXTERNALSYM EC_KEY_new_by_curve_name} + {$EXTERNALSYM EC_KEY_free} + {$EXTERNALSYM EC_KEY_copy} + {$EXTERNALSYM EC_KEY_dup} + {$EXTERNALSYM EC_KEY_up_ref} + {$EXTERNALSYM EC_KEY_get0_engine} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_get0_group} + {$EXTERNALSYM EC_KEY_set_group} + {$EXTERNALSYM EC_KEY_get0_private_key} + {$EXTERNALSYM EC_KEY_set_private_key} + {$EXTERNALSYM EC_KEY_get0_public_key} + {$EXTERNALSYM EC_KEY_set_public_key} + {$EXTERNALSYM EC_KEY_get_enc_flags} + {$EXTERNALSYM EC_KEY_set_enc_flags} + {$EXTERNALSYM EC_KEY_get_conv_form} + {$EXTERNALSYM EC_KEY_set_conv_form} + {$EXTERNALSYM EC_KEY_set_ex_data} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_get_ex_data} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_set_asn1_flag} + {$EXTERNALSYM EC_KEY_precompute_mult} + {$EXTERNALSYM EC_KEY_generate_key} + {$EXTERNALSYM EC_KEY_check_key} + {$EXTERNALSYM EC_KEY_can_sign} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_set_public_key_affine_coordinates} + {$EXTERNALSYM EC_KEY_key2buf} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_oct2key} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_oct2priv} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_priv2oct} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_priv2buf} {introduced 1.1.0} + {$EXTERNALSYM d2i_ECPrivateKey} + {$EXTERNALSYM i2d_ECPrivateKey} + {$EXTERNALSYM o2i_ECPublicKey} + {$EXTERNALSYM i2o_ECPublicKey} + {$EXTERNALSYM ECParameters_print} + {$EXTERNALSYM EC_KEY_print} + {$EXTERNALSYM EC_KEY_OpenSSL} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_get_default_method} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_set_default_method} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_get_method} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_set_method} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_new_method} {introduced 1.1.0} + {$EXTERNALSYM ECDH_KDF_X9_62} + {$EXTERNALSYM ECDH_compute_key} + {$EXTERNALSYM ECDSA_SIG_new} + {$EXTERNALSYM ECDSA_SIG_free} + {$EXTERNALSYM i2d_ECDSA_SIG} + {$EXTERNALSYM d2i_ECDSA_SIG} + {$EXTERNALSYM ECDSA_SIG_get0} {introduced 1.1.0} + {$EXTERNALSYM ECDSA_SIG_get0_r} {introduced 1.1.0} + {$EXTERNALSYM ECDSA_SIG_get0_s} {introduced 1.1.0} + {$EXTERNALSYM ECDSA_SIG_set0} {introduced 1.1.0} + {$EXTERNALSYM ECDSA_do_sign} + {$EXTERNALSYM ECDSA_do_sign_ex} + {$EXTERNALSYM ECDSA_do_verify} + {$EXTERNALSYM ECDSA_sign_setup} + {$EXTERNALSYM ECDSA_sign} + {$EXTERNALSYM ECDSA_sign_ex} + {$EXTERNALSYM ECDSA_verify} + {$EXTERNALSYM ECDSA_size} + {$EXTERNALSYM EC_KEY_METHOD_new} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_METHOD_free} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_METHOD_set_init} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_METHOD_set_keygen} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_METHOD_set_compute_key} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_METHOD_set_sign} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_METHOD_set_verify} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_METHOD_get_init} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_METHOD_get_keygen} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_METHOD_get_compute_key} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_METHOD_get_sign} {introduced 1.1.0} + {$EXTERNALSYM EC_KEY_METHOD_get_verify} {introduced 1.1.0} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + {$EXTERNALSYM EC_GFp_nistp224_method} {introduced 1.1.0 removed 3.0.0} + {$EXTERNALSYM EC_GFp_nistp256_method} {introduced 1.1.0 removed 3.0.0} + {$EXTERNALSYM EC_GFp_nistp521_method} {introduced 1.1.0 removed 3.0.0} + EC_GFp_simple_method: function: PEC_METHOD; cdecl = nil; + EC_GFp_mont_method: function: PEC_METHOD; cdecl = nil; + EC_GFp_nist_method: function: PEC_METHOD; cdecl = nil; + EC_GFp_nistp224_method: function: PEC_METHOD; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + EC_GFp_nistp256_method: function: PEC_METHOD; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + EC_GFp_nistp521_method: function: PEC_METHOD; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + + EC_GF2m_simple_method: function: PEC_METHOD; cdecl = nil; + + EC_GROUP_new: function(const meth: PEC_METHOD): PEC_GROUP; cdecl = nil; + EC_GROUP_free: procedure(group: PEC_GROUP); cdecl = nil; + EC_GROUP_clear_free: procedure(group: PEC_GROUP); cdecl = nil; + EC_GROUP_copy: function(dst: PEC_GROUP; const src: PEC_GROUP): TIdC_INT; cdecl = nil; + EC_GROUP_dup: function(const src: PEC_GROUP): PEC_GROUP; cdecl = nil; + EC_GROUP_method_of: function(const group: PEC_GROUP): PEC_GROUP; cdecl = nil; + EC_METHOD_get_field_type: function(const meth: PEC_METHOD): TIdC_INT; cdecl = nil; + EC_GROUP_set_generator: function(group: PEC_GROUP; const generator: PEC_POINT; const order: PBIGNUM; const cofactor: PBIGNUM): TIdC_INT; cdecl = nil; + EC_GROUP_get0_generator: function(const group: PEC_GROUP): PEC_POINT; cdecl = nil; + EC_GROUP_get_mont_data: function(const group: PEC_GROUP): PBN_MONT_CTX; cdecl = nil; + EC_GROUP_get_order: function(const group: PEC_GROUP; order: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_GROUP_get0_order: function(const group: PEC_GROUP): PBIGNUM; cdecl = nil; {introduced 1.1.0} + EC_GROUP_order_bits: function(const group: PEC_GROUP): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EC_GROUP_get_cofactor: function(const group: PEC_GROUP; cofactor: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_GROUP_get0_cofactor: function(const group: PEC_GROUP): PBIGNUM; cdecl = nil; {introduced 1.1.0} + EC_GROUP_set_curve_name: procedure(group: PEC_GROUP; nid: TIdC_INT); cdecl = nil; + EC_GROUP_get_curve_name: function(const group: PEC_GROUP): TIdC_INT; cdecl = nil; + + EC_GROUP_set_asn1_flag: procedure(group: PEC_GROUP; flag: TIdC_INT); cdecl = nil; + EC_GROUP_get_asn1_flag: function(const group: PEC_GROUP): TIdC_INT; cdecl = nil; + + EC_GROUP_set_point_conversion_form: procedure(group: PEC_GROUP; form: point_conversion_form_t); cdecl = nil; + EC_GROUP_get_point_conversion_form: function(const group: PEC_GROUP): point_conversion_form_t; cdecl = nil; + + EC_GROUP_get0_seed: function(const x: PEC_GROUP): PByte; cdecl = nil; + EC_GROUP_get_seed_len: function(const x: PEC_GROUP): TIdC_SIZET; cdecl = nil; + EC_GROUP_set_seed: function(x: PEC_GROUP; const p: PByte; len: TIdC_SIZET): TIdC_SIZET; cdecl = nil; + + EC_GROUP_set_curve: function(group: PEC_GROUP; const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EC_GROUP_get_curve: function(const group: PEC_GROUP; p: PBIGNUM; a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EC_GROUP_set_curve_GFp: function(group: PEC_GROUP; const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_GROUP_get_curve_GFp: function(const group: PEC_GROUP; p: PBIGNUM; a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_GROUP_set_curve_GF2m: function(group: PEC_GROUP; const p: PBIGNUM; const a: PBIGNUM; const b:PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_GROUP_get_curve_GF2m: function(const group: PEC_GROUP; p: PBIGNUM; a: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + + EC_GROUP_get_degree: function(const group: PEC_GROUP): TIdC_INT; cdecl = nil; + EC_GROUP_check: function(const group: PEC_GROUP; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_GROUP_check_discriminant: function(const group: PEC_GROUP; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_GROUP_cmp: function(const a: PEC_GROUP; const b: PEC_GROUP; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + + EC_GROUP_new_curve_GFp: function(const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): PEC_GROUP; cdecl = nil; + EC_GROUP_new_curve_GF2m: function(const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): PEC_GROUP; cdecl = nil; + EC_GROUP_new_by_curve_name: function(nid: TIdC_INT): PEC_GROUP; cdecl = nil; + EC_GROUP_new_from_ecparameters: function(const params: PECPARAMETERS): PEC_GROUP; cdecl = nil; {introduced 1.1.0} + EC_GROUP_get_ecparameters: function(const group: PEC_GROUP; params: PECPARAMETERS): PECPARAMETERS; cdecl = nil; {introduced 1.1.0} + EC_GROUP_new_from_ecpkparameters: function(const params: PECPKPARAMETERS): PEC_GROUP; cdecl = nil; {introduced 1.1.0} + EC_GROUP_get_ecpkparameters: function(const group: PEC_GROUP; params: PECPKPARAMETERS): PECPKPARAMETERS; cdecl = nil; {introduced 1.1.0} + + EC_get_builtin_curves: function(r: PEC_builtin_curve; nitems: TIdC_SIZET): TIdC_SIZET; cdecl = nil; + + EC_curve_nid2nist: function(nid: TIdC_INT): PIdAnsiChar; cdecl = nil; + EC_curve_nist2nid: function(const name: PIdAnsiChar): TIdC_INT; cdecl = nil; + + EC_POINT_new: function(const group: PEC_GROUP): PEC_POINT; cdecl = nil; + EC_POINT_free: procedure(point: PEC_POINT); cdecl = nil; + EC_POINT_clear_free: procedure(point: PEC_POINT); cdecl = nil; + EC_POINT_copy: function(dst: PEC_POINT; const src: PEC_POINT): TIdC_INT; cdecl = nil; + EC_POINT_dup: function(const src: PEC_POINT; const group: PEC_GROUP): PEC_POINT; cdecl = nil; + EC_POINT_method_of: function(const point: PEC_POINT): PEC_METHOD; cdecl = nil; + EC_POINT_set_to_infinity: function(const group: PEC_GROUP; point: PEC_POINT): TIdC_INT; cdecl = nil; + EC_POINT_set_Jprojective_coordinates_GFp: function(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; const z: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_get_Jprojective_coordinates_GFp: function(const group: PEC_METHOD; const p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; z: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_set_affine_coordinates: function(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EC_POINT_get_affine_coordinates: function(const group: PEC_GROUP; const p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EC_POINT_set_affine_coordinates_GFp: function(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_get_affine_coordinates_GFp: function(const group: PEC_GROUP; const p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_set_compressed_coordinates: function(const group: PEC_GROUP; p: PEC_POINT; x: PBIGNUM; y_bit: TIdC_INT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EC_POINT_set_compressed_coordinates_GFp: function(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; y_bit: TIdC_INT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_set_affine_coordinates_GF2m: function(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_get_affine_coordinates_GF2m: function(const group: PEC_GROUP; p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_set_compressed_coordinates_GF2m: function(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; y_bit: TIdC_INT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + + EC_POINT_point2oct: function(const group: PEC_GROUP; const p: PEC_POINT; form: point_conversion_form_t; buf: PByte; len: TIdC_SIZET; ctx: PBN_CTX): TIdC_SIZET; cdecl = nil; + EC_POINT_oct2point: function(const group: PEC_GROUP; p: PEC_POINT; const buf: PByte; len: TIdC_SIZET; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_point2buf: function(const group: PEC_GROUP; const point: PEC_POINT; form: point_conversion_form_t; pbuf: PPByte; ctx: PBN_CTX): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + EC_POINT_point2bn: function(const group: PEC_GROUP; const p: PEC_POINT; form: point_conversion_form_t; bn: PBIGNUM; ctx: PBN_CTX): PBIGNUM; cdecl = nil; + EC_POINT_bn2point: function(const group: PEC_GROUP; const bn: PBIGNUM; p: PEC_POINT; ctx: PBN_CTX): PEC_POINT; cdecl = nil; + EC_POINT_point2hex: function(const group: PEC_GROUP; const p: PEC_POINT; form: point_conversion_form_t; ctx: PBN_CTX): PIdAnsiChar; cdecl = nil; + EC_POINT_hex2point: function(const group: PEC_GROUP; const buf: PIdAnsiChar; p: PEC_POINT; ctx: PBN_CTX): PEC_POINT; cdecl = nil; + + EC_POINT_add: function(const group: PEC_GROUP; r: PEC_POINT; const a: PEC_POINT; const b: PEC_POINT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_dbl: function(const group: PEC_GROUP; r: PEC_POINT; const a: PEC_POINT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_invert: function(const group: PEC_GROUP; a: PEC_POINT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_is_at_infinity: function(const group: PEC_GROUP; const p: PEC_POINT): TIdC_INT; cdecl = nil; + EC_POINT_is_on_curve: function(const group: PEC_GROUP; const point: PEC_POINT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_cmp: function(const group: PEC_GROUP; const a: PEC_POINT; const b: PEC_POINT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_make_affine: function(const group: PEC_GROUP; point: PEC_POINT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINTs_make_affine: function(const group: PEC_METHOD; num: TIdC_SIZET; points: PPEC_POINT; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINTs_mul: function(const group: PEC_GROUP; r: PEC_POINT; const n: PBIGNUM; num: TIdC_SIZET; const p: PPEC_POINT; const m: PPBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_POINT_mul: function(const group: PEC_GROUP; r: PEC_POINT; const n: PBIGNUM; const q: PEC_POINT; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + + EC_GROUP_precompute_mult: function(group: PEC_GROUP; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_GROUP_have_precompute_mult: function(const group: PEC_GROUP): TIdC_INT; cdecl = nil; + + ECPKPARAMETERS_it: function: PASN1_ITEM; cdecl = nil; + ECPKPARAMETERS_new: function: PECPKPARAMETERS; cdecl = nil; + ECPKPARAMETERS_free: procedure(a: PECPKPARAMETERS); cdecl = nil; + + ECPARAMETERS_it: function: PASN1_ITEM; cdecl = nil; + ECPARAMETERS_new: function: PECPARAMETERS; cdecl = nil; + ECPARAMETERS_free: procedure(a: PECPARAMETERS); cdecl = nil; + + EC_GROUP_get_basis_type: function(const group: PEC_GROUP): TIdC_INT; cdecl = nil; + EC_GROUP_get_trinomial_basis: function(const group: PEC_GROUP; k: PIdC_UINT): TIdC_INT; cdecl = nil; + EC_GROUP_get_pentanomial_basis: function(const group: PEC_GROUP; k1: PIdC_UINT; k2: PIdC_UINT; k3: PIdC_UINT): TIdC_INT; cdecl = nil; + + d2i_ECPKParameters: function(group: PPEC_GROUP; const in_: PPByte; len: TIdC_LONG): PEC_GROUP; cdecl = nil; + i2d_ECPKParameters: function(const group: PEC_GROUP; out_: PPByte): TIdC_INT; cdecl = nil; + + ECPKParameters_print: function(bp: PBIO; const x: PEC_GROUP; off: TIdC_INT): TIdC_INT; cdecl = nil; + + EC_KEY_new: function: PEC_KEY; cdecl = nil; + EC_KEY_get_flags: function(const key: PEC_KEY): TIdC_INT; cdecl = nil; + EC_KEY_set_flags: procedure(key: PEC_KEY; flags: TIdC_INT); cdecl = nil; + EC_KEY_clear_flags: procedure(key: PEC_KEY; flags: TIdC_INT); cdecl = nil; + EC_KEY_new_by_curve_name: function(nid: TIdC_INT): PEC_KEY; cdecl = nil; + EC_KEY_free: procedure(key: PEC_KEY); cdecl = nil; + EC_KEY_copy: function(dst: PEC_KEY; const src: PEC_KEY): PEC_KEY; cdecl = nil; + EC_KEY_dup: function(const src: PEC_KEY): PEC_KEY; cdecl = nil; + EC_KEY_up_ref: function(key: PEC_KEY): TIdC_INT; cdecl = nil; + EC_KEY_get0_engine: function(const eckey: PEC_KEY): PENGINE; cdecl = nil; {introduced 1.1.0} + EC_KEY_get0_group: function(const key: PEC_KEY): PEC_GROUP; cdecl = nil; + EC_KEY_set_group: function(key: PEC_KEY; const group: PEC_GROUP): TIdC_INT; cdecl = nil; + EC_KEY_get0_private_key: function(const key: PEC_KEY): PBIGNUM; cdecl = nil; + EC_KEY_set_private_key: function(const key: PEC_KEY; const prv: PBIGNUM): TIdC_INT; cdecl = nil; + EC_KEY_get0_public_key: function(const key: PEC_KEY): PEC_POINT; cdecl = nil; + EC_KEY_set_public_key: function(key: PEC_KEY; const pub: PEC_POINT): TIdC_INT; cdecl = nil; + EC_KEY_get_enc_flags: function(const key: PEC_KEY): TIdC_UINT; cdecl = nil; + EC_KEY_set_enc_flags: procedure(eckey: PEC_KEY; flags: TIdC_UINT); cdecl = nil; + EC_KEY_get_conv_form: function(const key: PEC_KEY): point_conversion_form_t; cdecl = nil; + EC_KEY_set_conv_form: procedure(eckey: PEC_KEY; cform: point_conversion_form_t); cdecl = nil; + EC_KEY_set_ex_data: function(key: PEC_KEY; idx: TIdC_INT; arg: Pointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EC_KEY_get_ex_data: function(const key: PEC_KEY; idx: TIdC_INT): Pointer; cdecl = nil; {introduced 1.1.0} + EC_KEY_set_asn1_flag: procedure(eckey: PEC_KEY; asn1_flag: TIdC_INT); cdecl = nil; + EC_KEY_precompute_mult: function(key: PEC_KEY; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + EC_KEY_generate_key: function(key: PEC_KEY): TIdC_INT; cdecl = nil; + EC_KEY_check_key: function(const key: PEC_KEY): TIdC_INT; cdecl = nil; + EC_KEY_can_sign: function(const eckey: PEC_KEY): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EC_KEY_set_public_key_affine_coordinates: function(key: PEC_KEY; x: PBIGNUM; y: PBIGNUM): TIdC_INT; cdecl = nil; + EC_KEY_key2buf: function(const key: PEC_KEY; form: point_conversion_form_t; pbuf: PPByte; ctx: PBN_CTX): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + EC_KEY_oct2key: function(key: PEC_KEY; const buf: PByte; len: TIdC_SIZET; ctx: PBN_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EC_KEY_oct2priv: function(key: PEC_KEY; const buf: PByte; len: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EC_KEY_priv2oct: function(const key: PEC_KEY; buf: PByte; len: TIdC_SIZET): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + EC_KEY_priv2buf: function(const eckey: PEC_KEY; buf: PPByte): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + + d2i_ECPrivateKey: function(key: PPEC_KEY; const in_: PPByte; len: TIdC_LONG): PEC_KEY; cdecl = nil; + i2d_ECPrivateKey: function(key: PEC_KEY; out_: PPByte): TIdC_INT; cdecl = nil; + o2i_ECPublicKey: function(key: PPEC_KEY; const in_: PPByte; len: TIdC_LONG): PEC_KEY; cdecl = nil; + i2o_ECPublicKey: function(const key: PEC_KEY; out_: PPByte): TIdC_INT; cdecl = nil; + + ECParameters_print: function(bp: PBIO; const key: PEC_KEY): TIdC_INT; cdecl = nil; + EC_KEY_print: function(bp: PBIO; const key: PEC_KEY; off: TIdC_INT): TIdC_INT; cdecl = nil; + + EC_KEY_OpenSSL: function: PEC_KEY_METHOD; cdecl = nil; {introduced 1.1.0} + EC_KEY_get_default_method: function: PEC_KEY_METHOD; cdecl = nil; {introduced 1.1.0} + EC_KEY_set_default_method: procedure(const meth: PEC_KEY_METHOD); cdecl = nil; {introduced 1.1.0} + EC_KEY_get_method: function(const key: PEC_KEY): PEC_KEY_METHOD; cdecl = nil; {introduced 1.1.0} + EC_KEY_set_method: function(key: PEC_KEY; const meth: PEC_KEY_METHOD): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EC_KEY_new_method: function(engine: PENGINE): PEC_KEY; cdecl = nil; {introduced 1.1.0} + + ECDH_KDF_X9_62: function(out_: PByte; outlen: TIdC_SIZET; const Z: PByte; Zlen: TIdC_SIZET; const sinfo: PByte; sinfolen: TIdC_SIZET; const md: PEVP_MD): TIdC_INT; cdecl = nil; + ECDH_compute_key: function(out_: Pointer; oulen: TIdC_SIZET; const pub_key: PEC_POINT; const ecdh: PEC_KEY; kdf: ECDH_compute_key_KDF): TIdC_INT; cdecl = nil; + + ECDSA_SIG_new: function: PECDSA_SIG; cdecl = nil; + ECDSA_SIG_free: procedure(sig: PECDSA_SIG); cdecl = nil; + i2d_ECDSA_SIG: function(const sig: PECDSA_SIG; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_ECDSA_SIG: function(sig: PPECDSA_SIG; const pp: PPByte; len: TIdC_LONG): PECDSA_SIG; cdecl = nil; + ECDSA_SIG_get0: procedure(const sig: PECDSA_SIG; const pr: PPBIGNUM; const ps: PPBIGNUM); cdecl = nil; {introduced 1.1.0} + ECDSA_SIG_get0_r: function(const sig: PECDSA_SIG): PBIGNUM; cdecl = nil; {introduced 1.1.0} + ECDSA_SIG_get0_s: function(const sig: PECDSA_SIG): PBIGNUM; cdecl = nil; {introduced 1.1.0} + ECDSA_SIG_set0: function(sig: PECDSA_SIG; r: PBIGNUM; s: PBIGNUM): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ECDSA_do_sign: function(const dgst: PByte; dgst_len: TIdC_INT; eckey: PEC_KEY): PECDSA_SIG; cdecl = nil; + ECDSA_do_sign_ex: function(const dgst: PByte; dgst_len: TIdC_INT; const kinv: PBIGNUM; const rp: PBIGNUM; eckey: PEC_KEY): PECDSA_SIG; cdecl = nil; + ECDSA_do_verify: function(const dgst: PByte; dgst_len: TIdC_INT; const sig: PECDSA_SIG; eckey: PEC_KEY): TIdC_INT; cdecl = nil; + ECDSA_sign_setup: function(eckey: PEC_KEY; ctx: PBN_CTX; kiv: PPBIGNUM; rp: PPBIGNUM): TIdC_INT; cdecl = nil; + ECDSA_sign: function(type_: TIdC_INT; const dgst: PByte; dgstlen: TIdC_INT; sig: PByte; siglen: PIdC_UINT; eckey: PEC_KEY): TIdC_INT; cdecl = nil; + ECDSA_sign_ex: function(type_: TIdC_INT; const dgst: PByte; dgstlen: TIdC_INT; sig: PByte; siglen: PIdC_UINT; const kinv: PBIGNUM; const rp: PBIGNUM; eckey: PEC_KEY): TIdC_INT; cdecl = nil; + ECDSA_verify: function(type_: TIdC_INT; const dgst: PByte; dgstlen: TIdC_INT; const sig: PByte; siglen: TIdC_INT; eckey: PEC_KEY): TIdC_INT; cdecl = nil; + ECDSA_size: function(const eckey: PEC_KEY): TIdC_INT; cdecl = nil; + + EC_KEY_METHOD_new: function(const meth: PEC_KEY_METHOD): PEC_KEY_METHOD; cdecl = nil; {introduced 1.1.0} + EC_KEY_METHOD_free: procedure(meth: PEC_KEY_METHOD); cdecl = nil; {introduced 1.1.0} + EC_KEY_METHOD_set_init: procedure(meth: PEC_KEY_METHOD; init: EC_KEY_METHOD_init_init; finish: EC_KEY_METHOD_init_finish; copy: EC_KEY_METHOD_init_copy; set_group: EC_KEY_METHOD_init_set_group; set_private: EC_KEY_METHOD_init_set_private; set_public: EC_KEY_METHOD_init_set_public); cdecl = nil; {introduced 1.1.0} + EC_KEY_METHOD_set_keygen: procedure(meth: PEC_KEY_METHOD; keygen: EC_KEY_METHOD_keygen_keygen); cdecl = nil; {introduced 1.1.0} + EC_KEY_METHOD_set_compute_key: procedure(meth: PEC_KEY_METHOD; ckey: EC_KEY_METHOD_compute_key_ckey); cdecl = nil; {introduced 1.1.0} + EC_KEY_METHOD_set_sign: procedure(meth: PEC_KEY_METHOD; sign: EC_KEY_METHOD_sign_sign; sign_setup: EC_KEY_METHOD_sign_sign_setup; sign_sig: EC_KEY_METHOD_sign_sign_sig); cdecl = nil; {introduced 1.1.0} + EC_KEY_METHOD_set_verify: procedure(meth: PEC_KEY_METHOD; verify: EC_KEY_METHOD_verify_verify; verify_sig: EC_KEY_METHOD_verify_verify_sig); cdecl = nil; {introduced 1.1.0} + + EC_KEY_METHOD_get_init: procedure(const meth: PEC_KEY_METHOD; pinit: PEC_KEY_METHOD_init_init; pfinish: PEC_KEY_METHOD_init_finish; pcopy: PEC_KEY_METHOD_init_copy; pset_group: PEC_KEY_METHOD_init_set_group; pset_private: PEC_KEY_METHOD_init_set_private; pset_public: PEC_KEY_METHOD_init_set_public); cdecl = nil; {introduced 1.1.0} + EC_KEY_METHOD_get_keygen: procedure(const meth: PEC_KEY_METHOD; pkeygen: PEC_KEY_METHOD_keygen_keygen); cdecl = nil; {introduced 1.1.0} + EC_KEY_METHOD_get_compute_key: procedure(const meth: PEC_KEY_METHOD; pck: PEC_KEY_METHOD_compute_key_ckey); cdecl = nil; {introduced 1.1.0} + EC_KEY_METHOD_get_sign: procedure(const meth: PEC_KEY_METHOD; psign: PEC_KEY_METHOD_sign_sign; psign_setup: PEC_KEY_METHOD_sign_sign_setup; psign_sig: PEC_KEY_METHOD_sign_sign_sig); cdecl = nil; {introduced 1.1.0} + EC_KEY_METHOD_get_verify: procedure(const meth: PEC_KEY_METHOD; pverify: PEC_KEY_METHOD_verify_verify; pverify_sig: PEC_KEY_METHOD_verify_verify_sig); cdecl = nil; {introduced 1.1.0} + +{$ELSE} + function EC_GFp_simple_method: PEC_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GFp_mont_method: PEC_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GFp_nist_method: PEC_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_GF2m_simple_method: PEC_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_GROUP_new(const meth: PEC_METHOD): PEC_GROUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EC_GROUP_free(group: PEC_GROUP) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EC_GROUP_clear_free(group: PEC_GROUP) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_copy(dst: PEC_GROUP; const src: PEC_GROUP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_dup(const src: PEC_GROUP): PEC_GROUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_method_of(const group: PEC_GROUP): PEC_GROUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_METHOD_get_field_type(const meth: PEC_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_set_generator(group: PEC_GROUP; const generator: PEC_POINT; const order: PBIGNUM; const cofactor: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get0_generator(const group: PEC_GROUP): PEC_POINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get_mont_data(const group: PEC_GROUP): PBN_MONT_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get_order(const group: PEC_GROUP; order: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get0_order(const group: PEC_GROUP): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_GROUP_order_bits(const group: PEC_GROUP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_GROUP_get_cofactor(const group: PEC_GROUP; cofactor: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get0_cofactor(const group: PEC_GROUP): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_GROUP_set_curve_name(group: PEC_GROUP; nid: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get_curve_name(const group: PEC_GROUP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EC_GROUP_set_asn1_flag(group: PEC_GROUP; flag: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get_asn1_flag(const group: PEC_GROUP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EC_GROUP_set_point_conversion_form(group: PEC_GROUP; form: point_conversion_form_t) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get_point_conversion_form(const group: PEC_GROUP): point_conversion_form_t cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_GROUP_get0_seed(const x: PEC_GROUP): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get_seed_len(const x: PEC_GROUP): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_set_seed(x: PEC_GROUP; const p: PByte; len: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_GROUP_set_curve(group: PEC_GROUP; const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_GROUP_get_curve(const group: PEC_GROUP; p: PBIGNUM; a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_GROUP_set_curve_GFp(group: PEC_GROUP; const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get_curve_GFp(const group: PEC_GROUP; p: PBIGNUM; a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_set_curve_GF2m(group: PEC_GROUP; const p: PBIGNUM; const a: PBIGNUM; const b:PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get_curve_GF2m(const group: PEC_GROUP; p: PBIGNUM; a: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_GROUP_get_degree(const group: PEC_GROUP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_check(const group: PEC_GROUP; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_check_discriminant(const group: PEC_GROUP; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_cmp(const a: PEC_GROUP; const b: PEC_GROUP; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_GROUP_new_curve_GFp(const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): PEC_GROUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_new_curve_GF2m(const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): PEC_GROUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_new_by_curve_name(nid: TIdC_INT): PEC_GROUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_new_from_ecparameters(const params: PECPARAMETERS): PEC_GROUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_GROUP_get_ecparameters(const group: PEC_GROUP; params: PECPARAMETERS): PECPARAMETERS cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_GROUP_new_from_ecpkparameters(const params: PECPKPARAMETERS): PEC_GROUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_GROUP_get_ecpkparameters(const group: PEC_GROUP; params: PECPKPARAMETERS): PECPKPARAMETERS cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EC_get_builtin_curves(r: PEC_builtin_curve; nitems: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_curve_nid2nist(nid: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_curve_nist2nid(const name: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_POINT_new(const group: PEC_GROUP): PEC_POINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EC_POINT_free(point: PEC_POINT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EC_POINT_clear_free(point: PEC_POINT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_copy(dst: PEC_POINT; const src: PEC_POINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_dup(const src: PEC_POINT; const group: PEC_GROUP): PEC_POINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_method_of(const point: PEC_POINT): PEC_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_set_to_infinity(const group: PEC_GROUP; point: PEC_POINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_set_Jprojective_coordinates_GFp(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; const z: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_get_Jprojective_coordinates_GFp(const group: PEC_METHOD; const p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; z: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_set_affine_coordinates(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_POINT_get_affine_coordinates(const group: PEC_GROUP; const p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_POINT_set_affine_coordinates_GFp(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_get_affine_coordinates_GFp(const group: PEC_GROUP; const p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_set_compressed_coordinates(const group: PEC_GROUP; p: PEC_POINT; x: PBIGNUM; y_bit: TIdC_INT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_POINT_set_compressed_coordinates_GFp(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; y_bit: TIdC_INT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_set_affine_coordinates_GF2m(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_get_affine_coordinates_GF2m(const group: PEC_GROUP; p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_set_compressed_coordinates_GF2m(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; y_bit: TIdC_INT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_POINT_point2oct(const group: PEC_GROUP; const p: PEC_POINT; form: point_conversion_form_t; buf: PByte; len: TIdC_SIZET; ctx: PBN_CTX): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_oct2point(const group: PEC_GROUP; p: PEC_POINT; const buf: PByte; len: TIdC_SIZET; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_point2buf(const group: PEC_GROUP; const point: PEC_POINT; form: point_conversion_form_t; pbuf: PPByte; ctx: PBN_CTX): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_POINT_point2bn(const group: PEC_GROUP; const p: PEC_POINT; form: point_conversion_form_t; bn: PBIGNUM; ctx: PBN_CTX): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_bn2point(const group: PEC_GROUP; const bn: PBIGNUM; p: PEC_POINT; ctx: PBN_CTX): PEC_POINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_point2hex(const group: PEC_GROUP; const p: PEC_POINT; form: point_conversion_form_t; ctx: PBN_CTX): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_hex2point(const group: PEC_GROUP; const buf: PIdAnsiChar; p: PEC_POINT; ctx: PBN_CTX): PEC_POINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_POINT_add(const group: PEC_GROUP; r: PEC_POINT; const a: PEC_POINT; const b: PEC_POINT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_dbl(const group: PEC_GROUP; r: PEC_POINT; const a: PEC_POINT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_invert(const group: PEC_GROUP; a: PEC_POINT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_is_at_infinity(const group: PEC_GROUP; const p: PEC_POINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_is_on_curve(const group: PEC_GROUP; const point: PEC_POINT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_cmp(const group: PEC_GROUP; const a: PEC_POINT; const b: PEC_POINT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_make_affine(const group: PEC_GROUP; point: PEC_POINT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINTs_make_affine(const group: PEC_METHOD; num: TIdC_SIZET; points: PPEC_POINT; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINTs_mul(const group: PEC_GROUP; r: PEC_POINT; const n: PBIGNUM; num: TIdC_SIZET; const p: PPEC_POINT; const m: PPBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_POINT_mul(const group: PEC_GROUP; r: PEC_POINT; const n: PBIGNUM; const q: PEC_POINT; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_GROUP_precompute_mult(group: PEC_GROUP; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_have_precompute_mult(const group: PEC_GROUP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ECPKPARAMETERS_it: PASN1_ITEM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ECPKPARAMETERS_new: PECPKPARAMETERS cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ECPKPARAMETERS_free(a: PECPKPARAMETERS) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ECPARAMETERS_it: PASN1_ITEM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ECPARAMETERS_new: PECPARAMETERS cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ECPARAMETERS_free(a: PECPARAMETERS) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_GROUP_get_basis_type(const group: PEC_GROUP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get_trinomial_basis(const group: PEC_GROUP; k: PIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_GROUP_get_pentanomial_basis(const group: PEC_GROUP; k1: PIdC_UINT; k2: PIdC_UINT; k3: PIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_ECPKParameters(group: PPEC_GROUP; const in_: PPByte; len: TIdC_LONG): PEC_GROUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ECPKParameters(const group: PEC_GROUP; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ECPKParameters_print(bp: PBIO; const x: PEC_GROUP; off: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_KEY_new: PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_get_flags(const key: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EC_KEY_set_flags(key: PEC_KEY; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EC_KEY_clear_flags(key: PEC_KEY; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_new_by_curve_name(nid: TIdC_INT): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EC_KEY_free(key: PEC_KEY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_copy(dst: PEC_KEY; const src: PEC_KEY): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_dup(const src: PEC_KEY): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_up_ref(key: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_get0_engine(const eckey: PEC_KEY): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_KEY_get0_group(const key: PEC_KEY): PEC_GROUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_set_group(key: PEC_KEY; const group: PEC_GROUP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_get0_private_key(const key: PEC_KEY): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_set_private_key(const key: PEC_KEY; const prv: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_get0_public_key(const key: PEC_KEY): PEC_POINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_set_public_key(key: PEC_KEY; const pub: PEC_POINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_get_enc_flags(const key: PEC_KEY): TIdC_UINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EC_KEY_set_enc_flags(eckey: PEC_KEY; flags: TIdC_UINT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_get_conv_form(const key: PEC_KEY): point_conversion_form_t cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EC_KEY_set_conv_form(eckey: PEC_KEY; cform: point_conversion_form_t) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_set_ex_data(key: PEC_KEY; idx: TIdC_INT; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_KEY_get_ex_data(const key: PEC_KEY; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_set_asn1_flag(eckey: PEC_KEY; asn1_flag: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_precompute_mult(key: PEC_KEY; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_generate_key(key: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_check_key(const key: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_can_sign(const eckey: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_KEY_set_public_key_affine_coordinates(key: PEC_KEY; x: PBIGNUM; y: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_key2buf(const key: PEC_KEY; form: point_conversion_form_t; pbuf: PPByte; ctx: PBN_CTX): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_KEY_oct2key(key: PEC_KEY; const buf: PByte; len: TIdC_SIZET; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_KEY_oct2priv(key: PEC_KEY; const buf: PByte; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_KEY_priv2oct(const key: PEC_KEY; buf: PByte; len: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_KEY_priv2buf(const eckey: PEC_KEY; buf: PPByte): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function d2i_ECPrivateKey(key: PPEC_KEY; const in_: PPByte; len: TIdC_LONG): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ECPrivateKey(key: PEC_KEY; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function o2i_ECPublicKey(key: PPEC_KEY; const in_: PPByte; len: TIdC_LONG): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2o_ECPublicKey(const key: PEC_KEY; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ECParameters_print(bp: PBIO; const key: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EC_KEY_print(bp: PBIO; const key: PEC_KEY; off: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_KEY_OpenSSL: PEC_KEY_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_KEY_get_default_method: PEC_KEY_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_set_default_method(const meth: PEC_KEY_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_KEY_get_method(const key: PEC_KEY): PEC_KEY_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_KEY_set_method(key: PEC_KEY; const meth: PEC_KEY_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EC_KEY_new_method(engine: PENGINE): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function ECDH_KDF_X9_62(out_: PByte; outlen: TIdC_SIZET; const Z: PByte; Zlen: TIdC_SIZET; const sinfo: PByte; sinfolen: TIdC_SIZET; const md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ECDH_compute_key(out_: Pointer; oulen: TIdC_SIZET; const pub_key: PEC_POINT; const ecdh: PEC_KEY; kdf: ECDH_compute_key_KDF): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ECDSA_SIG_new: PECDSA_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ECDSA_SIG_free(sig: PECDSA_SIG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ECDSA_SIG(const sig: PECDSA_SIG; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ECDSA_SIG(sig: PPECDSA_SIG; const pp: PPByte; len: TIdC_LONG): PECDSA_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ECDSA_SIG_get0(const sig: PECDSA_SIG; const pr: PPBIGNUM; const ps: PPBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ECDSA_SIG_get0_r(const sig: PECDSA_SIG): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ECDSA_SIG_get0_s(const sig: PECDSA_SIG): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ECDSA_SIG_set0(sig: PECDSA_SIG; r: PBIGNUM; s: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ECDSA_do_sign(const dgst: PByte; dgst_len: TIdC_INT; eckey: PEC_KEY): PECDSA_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ECDSA_do_sign_ex(const dgst: PByte; dgst_len: TIdC_INT; const kinv: PBIGNUM; const rp: PBIGNUM; eckey: PEC_KEY): PECDSA_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ECDSA_do_verify(const dgst: PByte; dgst_len: TIdC_INT; const sig: PECDSA_SIG; eckey: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ECDSA_sign_setup(eckey: PEC_KEY; ctx: PBN_CTX; kiv: PPBIGNUM; rp: PPBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ECDSA_sign(type_: TIdC_INT; const dgst: PByte; dgstlen: TIdC_INT; sig: PByte; siglen: PIdC_UINT; eckey: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ECDSA_sign_ex(type_: TIdC_INT; const dgst: PByte; dgstlen: TIdC_INT; sig: PByte; siglen: PIdC_UINT; const kinv: PBIGNUM; const rp: PBIGNUM; eckey: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ECDSA_verify(type_: TIdC_INT; const dgst: PByte; dgstlen: TIdC_INT; const sig: PByte; siglen: TIdC_INT; eckey: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ECDSA_size(const eckey: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EC_KEY_METHOD_new(const meth: PEC_KEY_METHOD): PEC_KEY_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_METHOD_free(meth: PEC_KEY_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_METHOD_set_init(meth: PEC_KEY_METHOD; init: EC_KEY_METHOD_init_init; finish: EC_KEY_METHOD_init_finish; copy: EC_KEY_METHOD_init_copy; set_group: EC_KEY_METHOD_init_set_group; set_private: EC_KEY_METHOD_init_set_private; set_public: EC_KEY_METHOD_init_set_public) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_METHOD_set_keygen(meth: PEC_KEY_METHOD; keygen: EC_KEY_METHOD_keygen_keygen) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_METHOD_set_compute_key(meth: PEC_KEY_METHOD; ckey: EC_KEY_METHOD_compute_key_ckey) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_METHOD_set_sign(meth: PEC_KEY_METHOD; sign: EC_KEY_METHOD_sign_sign; sign_setup: EC_KEY_METHOD_sign_sign_setup; sign_sig: EC_KEY_METHOD_sign_sign_sig) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_METHOD_set_verify(meth: PEC_KEY_METHOD; verify: EC_KEY_METHOD_verify_verify; verify_sig: EC_KEY_METHOD_verify_verify_sig) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EC_KEY_METHOD_get_init(const meth: PEC_KEY_METHOD; pinit: PEC_KEY_METHOD_init_init; pfinish: PEC_KEY_METHOD_init_finish; pcopy: PEC_KEY_METHOD_init_copy; pset_group: PEC_KEY_METHOD_init_set_group; pset_private: PEC_KEY_METHOD_init_set_private; pset_public: PEC_KEY_METHOD_init_set_public) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_METHOD_get_keygen(const meth: PEC_KEY_METHOD; pkeygen: PEC_KEY_METHOD_keygen_keygen) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_METHOD_get_compute_key(const meth: PEC_KEY_METHOD; pck: PEC_KEY_METHOD_compute_key_ckey) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_METHOD_get_sign(const meth: PEC_KEY_METHOD; psign: PEC_KEY_METHOD_sign_sign; psign_setup: PEC_KEY_METHOD_sign_sign_setup; psign_sig: PEC_KEY_METHOD_sign_sign_sig) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EC_KEY_METHOD_get_verify(const meth: PEC_KEY_METHOD; pverify: PEC_KEY_METHOD_verify_verify; pverify_sig: PEC_KEY_METHOD_verify_verify_sig) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + EC_GFp_nistp224_method_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GFp_nistp256_method_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GFp_nistp521_method_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GROUP_get0_order_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GROUP_order_bits_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GROUP_get0_cofactor_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GROUP_set_curve_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GROUP_get_curve_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GROUP_new_from_ecparameters_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GROUP_get_ecparameters_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GROUP_new_from_ecpkparameters_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GROUP_get_ecpkparameters_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_POINT_set_affine_coordinates_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_POINT_get_affine_coordinates_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_POINT_set_compressed_coordinates_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_POINT_point2buf_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_get0_engine_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_set_ex_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_get_ex_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_can_sign_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_key2buf_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_oct2key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_oct2priv_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_priv2oct_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_priv2buf_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_OpenSSL_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_get_default_method_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_set_default_method_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_get_method_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_set_method_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_new_method_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ECDSA_SIG_get0_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ECDSA_SIG_get0_r_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ECDSA_SIG_get0_s_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ECDSA_SIG_set0_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_set_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_set_keygen_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_set_compute_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_set_sign_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_set_verify_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_get_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_get_keygen_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_get_compute_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_get_sign_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_KEY_METHOD_get_verify_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EC_GFp_nistp224_method_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EC_GFp_nistp256_method_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EC_GFp_nistp521_method_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +function ERR_EC_GFp_nistp224_method: PEC_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GFp_nistp224_method'); +end; + + +function ERR_EC_GFp_nistp256_method: PEC_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GFp_nistp256_method'); +end; + + +function ERR_EC_GFp_nistp521_method: PEC_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GFp_nistp521_method'); +end; + + +function ERR_EC_GROUP_get0_order(const group: PEC_GROUP): PBIGNUM; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GROUP_get0_order'); +end; + + +function ERR_EC_GROUP_order_bits(const group: PEC_GROUP): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GROUP_order_bits'); +end; + + +function ERR_EC_GROUP_get0_cofactor(const group: PEC_GROUP): PBIGNUM; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GROUP_get0_cofactor'); +end; + + +function ERR_EC_GROUP_set_curve(group: PEC_GROUP; const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GROUP_set_curve'); +end; + + +function ERR_EC_GROUP_get_curve(const group: PEC_GROUP; p: PBIGNUM; a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GROUP_get_curve'); +end; + + +function ERR_EC_GROUP_new_from_ecparameters(const params: PECPARAMETERS): PEC_GROUP; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GROUP_new_from_ecparameters'); +end; + + +function ERR_EC_GROUP_get_ecparameters(const group: PEC_GROUP; params: PECPARAMETERS): PECPARAMETERS; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GROUP_get_ecparameters'); +end; + + +function ERR_EC_GROUP_new_from_ecpkparameters(const params: PECPKPARAMETERS): PEC_GROUP; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GROUP_new_from_ecpkparameters'); +end; + + +function ERR_EC_GROUP_get_ecpkparameters(const group: PEC_GROUP; params: PECPKPARAMETERS): PECPKPARAMETERS; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_GROUP_get_ecpkparameters'); +end; + + +function ERR_EC_POINT_set_affine_coordinates(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_POINT_set_affine_coordinates'); +end; + + +function ERR_EC_POINT_get_affine_coordinates(const group: PEC_GROUP; const p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_POINT_get_affine_coordinates'); +end; + + +function ERR_EC_POINT_set_compressed_coordinates(const group: PEC_GROUP; p: PEC_POINT; x: PBIGNUM; y_bit: TIdC_INT; ctx: PBN_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_POINT_set_compressed_coordinates'); +end; + + +function ERR_EC_POINT_point2buf(const group: PEC_GROUP; const point: PEC_POINT; form: point_conversion_form_t; pbuf: PPByte; ctx: PBN_CTX): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_POINT_point2buf'); +end; + + +function ERR_EC_KEY_get0_engine(const eckey: PEC_KEY): PENGINE; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_get0_engine'); +end; + + +function ERR_EC_KEY_set_ex_data(key: PEC_KEY; idx: TIdC_INT; arg: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_set_ex_data'); +end; + + +function ERR_EC_KEY_get_ex_data(const key: PEC_KEY; idx: TIdC_INT): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_get_ex_data'); +end; + + +function ERR_EC_KEY_can_sign(const eckey: PEC_KEY): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_can_sign'); +end; + + +function ERR_EC_KEY_key2buf(const key: PEC_KEY; form: point_conversion_form_t; pbuf: PPByte; ctx: PBN_CTX): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_key2buf'); +end; + + +function ERR_EC_KEY_oct2key(key: PEC_KEY; const buf: PByte; len: TIdC_SIZET; ctx: PBN_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_oct2key'); +end; + + +function ERR_EC_KEY_oct2priv(key: PEC_KEY; const buf: PByte; len: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_oct2priv'); +end; + + +function ERR_EC_KEY_priv2oct(const key: PEC_KEY; buf: PByte; len: TIdC_SIZET): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_priv2oct'); +end; + + +function ERR_EC_KEY_priv2buf(const eckey: PEC_KEY; buf: PPByte): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_priv2buf'); +end; + + +function ERR_EC_KEY_OpenSSL: PEC_KEY_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_OpenSSL'); +end; + + +function ERR_EC_KEY_get_default_method: PEC_KEY_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_get_default_method'); +end; + + +procedure ERR_EC_KEY_set_default_method(const meth: PEC_KEY_METHOD); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_set_default_method'); +end; + + +function ERR_EC_KEY_get_method(const key: PEC_KEY): PEC_KEY_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_get_method'); +end; + + +function ERR_EC_KEY_set_method(key: PEC_KEY; const meth: PEC_KEY_METHOD): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_set_method'); +end; + + +function ERR_EC_KEY_new_method(engine: PENGINE): PEC_KEY; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_new_method'); +end; + + +procedure ERR_ECDSA_SIG_get0(const sig: PECDSA_SIG; const pr: PPBIGNUM; const ps: PPBIGNUM); +begin + EIdAPIFunctionNotPresent.RaiseException('ECDSA_SIG_get0'); +end; + + +function ERR_ECDSA_SIG_get0_r(const sig: PECDSA_SIG): PBIGNUM; +begin + EIdAPIFunctionNotPresent.RaiseException('ECDSA_SIG_get0_r'); +end; + + +function ERR_ECDSA_SIG_get0_s(const sig: PECDSA_SIG): PBIGNUM; +begin + EIdAPIFunctionNotPresent.RaiseException('ECDSA_SIG_get0_s'); +end; + + +function ERR_ECDSA_SIG_set0(sig: PECDSA_SIG; r: PBIGNUM; s: PBIGNUM): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ECDSA_SIG_set0'); +end; + + +function ERR_EC_KEY_METHOD_new(const meth: PEC_KEY_METHOD): PEC_KEY_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_new'); +end; + + +procedure ERR_EC_KEY_METHOD_free(meth: PEC_KEY_METHOD); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_free'); +end; + + +procedure ERR_EC_KEY_METHOD_set_init(meth: PEC_KEY_METHOD; init: EC_KEY_METHOD_init_init; finish: EC_KEY_METHOD_init_finish; copy: EC_KEY_METHOD_init_copy; set_group: EC_KEY_METHOD_init_set_group; set_private: EC_KEY_METHOD_init_set_private; set_public: EC_KEY_METHOD_init_set_public); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_set_init'); +end; + + +procedure ERR_EC_KEY_METHOD_set_keygen(meth: PEC_KEY_METHOD; keygen: EC_KEY_METHOD_keygen_keygen); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_set_keygen'); +end; + + +procedure ERR_EC_KEY_METHOD_set_compute_key(meth: PEC_KEY_METHOD; ckey: EC_KEY_METHOD_compute_key_ckey); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_set_compute_key'); +end; + + +procedure ERR_EC_KEY_METHOD_set_sign(meth: PEC_KEY_METHOD; sign: EC_KEY_METHOD_sign_sign; sign_setup: EC_KEY_METHOD_sign_sign_setup; sign_sig: EC_KEY_METHOD_sign_sign_sig); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_set_sign'); +end; + + +procedure ERR_EC_KEY_METHOD_set_verify(meth: PEC_KEY_METHOD; verify: EC_KEY_METHOD_verify_verify; verify_sig: EC_KEY_METHOD_verify_verify_sig); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_set_verify'); +end; + + +procedure ERR_EC_KEY_METHOD_get_init(const meth: PEC_KEY_METHOD; pinit: PEC_KEY_METHOD_init_init; pfinish: PEC_KEY_METHOD_init_finish; pcopy: PEC_KEY_METHOD_init_copy; pset_group: PEC_KEY_METHOD_init_set_group; pset_private: PEC_KEY_METHOD_init_set_private; pset_public: PEC_KEY_METHOD_init_set_public); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_get_init'); +end; + + +procedure ERR_EC_KEY_METHOD_get_keygen(const meth: PEC_KEY_METHOD; pkeygen: PEC_KEY_METHOD_keygen_keygen); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_get_keygen'); +end; + + +procedure ERR_EC_KEY_METHOD_get_compute_key(const meth: PEC_KEY_METHOD; pck: PEC_KEY_METHOD_compute_key_ckey); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_get_compute_key'); +end; + + +procedure ERR_EC_KEY_METHOD_get_sign(const meth: PEC_KEY_METHOD; psign: PEC_KEY_METHOD_sign_sign; psign_setup: PEC_KEY_METHOD_sign_sign_setup; psign_sig: PEC_KEY_METHOD_sign_sign_sig); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_get_sign'); +end; + + +procedure ERR_EC_KEY_METHOD_get_verify(const meth: PEC_KEY_METHOD; pverify: PEC_KEY_METHOD_verify_verify; pverify_sig: PEC_KEY_METHOD_verify_verify_sig); +begin + EIdAPIFunctionNotPresent.RaiseException('EC_KEY_METHOD_get_verify'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + EC_GFp_simple_method := LoadFunction('EC_GFp_simple_method',AFailed); + EC_GFp_mont_method := LoadFunction('EC_GFp_mont_method',AFailed); + EC_GFp_nist_method := LoadFunction('EC_GFp_nist_method',AFailed); + EC_GF2m_simple_method := LoadFunction('EC_GF2m_simple_method',AFailed); + EC_GROUP_new := LoadFunction('EC_GROUP_new',AFailed); + EC_GROUP_free := LoadFunction('EC_GROUP_free',AFailed); + EC_GROUP_clear_free := LoadFunction('EC_GROUP_clear_free',AFailed); + EC_GROUP_copy := LoadFunction('EC_GROUP_copy',AFailed); + EC_GROUP_dup := LoadFunction('EC_GROUP_dup',AFailed); + EC_GROUP_method_of := LoadFunction('EC_GROUP_method_of',AFailed); + EC_METHOD_get_field_type := LoadFunction('EC_METHOD_get_field_type',AFailed); + EC_GROUP_set_generator := LoadFunction('EC_GROUP_set_generator',AFailed); + EC_GROUP_get0_generator := LoadFunction('EC_GROUP_get0_generator',AFailed); + EC_GROUP_get_mont_data := LoadFunction('EC_GROUP_get_mont_data',AFailed); + EC_GROUP_get_order := LoadFunction('EC_GROUP_get_order',AFailed); + EC_GROUP_get_cofactor := LoadFunction('EC_GROUP_get_cofactor',AFailed); + EC_GROUP_set_curve_name := LoadFunction('EC_GROUP_set_curve_name',AFailed); + EC_GROUP_get_curve_name := LoadFunction('EC_GROUP_get_curve_name',AFailed); + EC_GROUP_set_asn1_flag := LoadFunction('EC_GROUP_set_asn1_flag',AFailed); + EC_GROUP_get_asn1_flag := LoadFunction('EC_GROUP_get_asn1_flag',AFailed); + EC_GROUP_set_point_conversion_form := LoadFunction('EC_GROUP_set_point_conversion_form',AFailed); + EC_GROUP_get_point_conversion_form := LoadFunction('EC_GROUP_get_point_conversion_form',AFailed); + EC_GROUP_get0_seed := LoadFunction('EC_GROUP_get0_seed',AFailed); + EC_GROUP_get_seed_len := LoadFunction('EC_GROUP_get_seed_len',AFailed); + EC_GROUP_set_seed := LoadFunction('EC_GROUP_set_seed',AFailed); + EC_GROUP_set_curve_GFp := LoadFunction('EC_GROUP_set_curve_GFp',AFailed); + EC_GROUP_get_curve_GFp := LoadFunction('EC_GROUP_get_curve_GFp',AFailed); + EC_GROUP_set_curve_GF2m := LoadFunction('EC_GROUP_set_curve_GF2m',AFailed); + EC_GROUP_get_curve_GF2m := LoadFunction('EC_GROUP_get_curve_GF2m',AFailed); + EC_GROUP_get_degree := LoadFunction('EC_GROUP_get_degree',AFailed); + EC_GROUP_check := LoadFunction('EC_GROUP_check',AFailed); + EC_GROUP_check_discriminant := LoadFunction('EC_GROUP_check_discriminant',AFailed); + EC_GROUP_cmp := LoadFunction('EC_GROUP_cmp',AFailed); + EC_GROUP_new_curve_GFp := LoadFunction('EC_GROUP_new_curve_GFp',AFailed); + EC_GROUP_new_curve_GF2m := LoadFunction('EC_GROUP_new_curve_GF2m',AFailed); + EC_GROUP_new_by_curve_name := LoadFunction('EC_GROUP_new_by_curve_name',AFailed); + EC_get_builtin_curves := LoadFunction('EC_get_builtin_curves',AFailed); + EC_curve_nid2nist := LoadFunction('EC_curve_nid2nist',AFailed); + EC_curve_nist2nid := LoadFunction('EC_curve_nist2nid',AFailed); + EC_POINT_new := LoadFunction('EC_POINT_new',AFailed); + EC_POINT_free := LoadFunction('EC_POINT_free',AFailed); + EC_POINT_clear_free := LoadFunction('EC_POINT_clear_free',AFailed); + EC_POINT_copy := LoadFunction('EC_POINT_copy',AFailed); + EC_POINT_dup := LoadFunction('EC_POINT_dup',AFailed); + EC_POINT_method_of := LoadFunction('EC_POINT_method_of',AFailed); + EC_POINT_set_to_infinity := LoadFunction('EC_POINT_set_to_infinity',AFailed); + EC_POINT_set_Jprojective_coordinates_GFp := LoadFunction('EC_POINT_set_Jprojective_coordinates_GFp',AFailed); + EC_POINT_get_Jprojective_coordinates_GFp := LoadFunction('EC_POINT_get_Jprojective_coordinates_GFp',AFailed); + EC_POINT_set_affine_coordinates_GFp := LoadFunction('EC_POINT_set_affine_coordinates_GFp',AFailed); + EC_POINT_get_affine_coordinates_GFp := LoadFunction('EC_POINT_get_affine_coordinates_GFp',AFailed); + EC_POINT_set_compressed_coordinates_GFp := LoadFunction('EC_POINT_set_compressed_coordinates_GFp',AFailed); + EC_POINT_set_affine_coordinates_GF2m := LoadFunction('EC_POINT_set_affine_coordinates_GF2m',AFailed); + EC_POINT_get_affine_coordinates_GF2m := LoadFunction('EC_POINT_get_affine_coordinates_GF2m',AFailed); + EC_POINT_set_compressed_coordinates_GF2m := LoadFunction('EC_POINT_set_compressed_coordinates_GF2m',AFailed); + EC_POINT_point2oct := LoadFunction('EC_POINT_point2oct',AFailed); + EC_POINT_oct2point := LoadFunction('EC_POINT_oct2point',AFailed); + EC_POINT_point2bn := LoadFunction('EC_POINT_point2bn',AFailed); + EC_POINT_bn2point := LoadFunction('EC_POINT_bn2point',AFailed); + EC_POINT_point2hex := LoadFunction('EC_POINT_point2hex',AFailed); + EC_POINT_hex2point := LoadFunction('EC_POINT_hex2point',AFailed); + EC_POINT_add := LoadFunction('EC_POINT_add',AFailed); + EC_POINT_dbl := LoadFunction('EC_POINT_dbl',AFailed); + EC_POINT_invert := LoadFunction('EC_POINT_invert',AFailed); + EC_POINT_is_at_infinity := LoadFunction('EC_POINT_is_at_infinity',AFailed); + EC_POINT_is_on_curve := LoadFunction('EC_POINT_is_on_curve',AFailed); + EC_POINT_cmp := LoadFunction('EC_POINT_cmp',AFailed); + EC_POINT_make_affine := LoadFunction('EC_POINT_make_affine',AFailed); + EC_POINTs_make_affine := LoadFunction('EC_POINTs_make_affine',AFailed); + EC_POINTs_mul := LoadFunction('EC_POINTs_mul',AFailed); + EC_POINT_mul := LoadFunction('EC_POINT_mul',AFailed); + EC_GROUP_precompute_mult := LoadFunction('EC_GROUP_precompute_mult',AFailed); + EC_GROUP_have_precompute_mult := LoadFunction('EC_GROUP_have_precompute_mult',AFailed); + ECPKPARAMETERS_it := LoadFunction('ECPKPARAMETERS_it',AFailed); + ECPKPARAMETERS_new := LoadFunction('ECPKPARAMETERS_new',AFailed); + ECPKPARAMETERS_free := LoadFunction('ECPKPARAMETERS_free',AFailed); + ECPARAMETERS_it := LoadFunction('ECPARAMETERS_it',AFailed); + ECPARAMETERS_new := LoadFunction('ECPARAMETERS_new',AFailed); + ECPARAMETERS_free := LoadFunction('ECPARAMETERS_free',AFailed); + EC_GROUP_get_basis_type := LoadFunction('EC_GROUP_get_basis_type',AFailed); + EC_GROUP_get_trinomial_basis := LoadFunction('EC_GROUP_get_trinomial_basis',AFailed); + EC_GROUP_get_pentanomial_basis := LoadFunction('EC_GROUP_get_pentanomial_basis',AFailed); + d2i_ECPKParameters := LoadFunction('d2i_ECPKParameters',AFailed); + i2d_ECPKParameters := LoadFunction('i2d_ECPKParameters',AFailed); + ECPKParameters_print := LoadFunction('ECPKParameters_print',AFailed); + EC_KEY_new := LoadFunction('EC_KEY_new',AFailed); + EC_KEY_get_flags := LoadFunction('EC_KEY_get_flags',AFailed); + EC_KEY_set_flags := LoadFunction('EC_KEY_set_flags',AFailed); + EC_KEY_clear_flags := LoadFunction('EC_KEY_clear_flags',AFailed); + EC_KEY_new_by_curve_name := LoadFunction('EC_KEY_new_by_curve_name',AFailed); + EC_KEY_free := LoadFunction('EC_KEY_free',AFailed); + EC_KEY_copy := LoadFunction('EC_KEY_copy',AFailed); + EC_KEY_dup := LoadFunction('EC_KEY_dup',AFailed); + EC_KEY_up_ref := LoadFunction('EC_KEY_up_ref',AFailed); + EC_KEY_get0_group := LoadFunction('EC_KEY_get0_group',AFailed); + EC_KEY_set_group := LoadFunction('EC_KEY_set_group',AFailed); + EC_KEY_get0_private_key := LoadFunction('EC_KEY_get0_private_key',AFailed); + EC_KEY_set_private_key := LoadFunction('EC_KEY_set_private_key',AFailed); + EC_KEY_get0_public_key := LoadFunction('EC_KEY_get0_public_key',AFailed); + EC_KEY_set_public_key := LoadFunction('EC_KEY_set_public_key',AFailed); + EC_KEY_get_enc_flags := LoadFunction('EC_KEY_get_enc_flags',AFailed); + EC_KEY_set_enc_flags := LoadFunction('EC_KEY_set_enc_flags',AFailed); + EC_KEY_get_conv_form := LoadFunction('EC_KEY_get_conv_form',AFailed); + EC_KEY_set_conv_form := LoadFunction('EC_KEY_set_conv_form',AFailed); + EC_KEY_set_asn1_flag := LoadFunction('EC_KEY_set_asn1_flag',AFailed); + EC_KEY_precompute_mult := LoadFunction('EC_KEY_precompute_mult',AFailed); + EC_KEY_generate_key := LoadFunction('EC_KEY_generate_key',AFailed); + EC_KEY_check_key := LoadFunction('EC_KEY_check_key',AFailed); + EC_KEY_set_public_key_affine_coordinates := LoadFunction('EC_KEY_set_public_key_affine_coordinates',AFailed); + d2i_ECPrivateKey := LoadFunction('d2i_ECPrivateKey',AFailed); + i2d_ECPrivateKey := LoadFunction('i2d_ECPrivateKey',AFailed); + o2i_ECPublicKey := LoadFunction('o2i_ECPublicKey',AFailed); + i2o_ECPublicKey := LoadFunction('i2o_ECPublicKey',AFailed); + ECParameters_print := LoadFunction('ECParameters_print',AFailed); + EC_KEY_print := LoadFunction('EC_KEY_print',AFailed); + ECDH_KDF_X9_62 := LoadFunction('ECDH_KDF_X9_62',AFailed); + ECDH_compute_key := LoadFunction('ECDH_compute_key',AFailed); + ECDSA_SIG_new := LoadFunction('ECDSA_SIG_new',AFailed); + ECDSA_SIG_free := LoadFunction('ECDSA_SIG_free',AFailed); + i2d_ECDSA_SIG := LoadFunction('i2d_ECDSA_SIG',AFailed); + d2i_ECDSA_SIG := LoadFunction('d2i_ECDSA_SIG',AFailed); + ECDSA_do_sign := LoadFunction('ECDSA_do_sign',AFailed); + ECDSA_do_sign_ex := LoadFunction('ECDSA_do_sign_ex',AFailed); + ECDSA_do_verify := LoadFunction('ECDSA_do_verify',AFailed); + ECDSA_sign_setup := LoadFunction('ECDSA_sign_setup',AFailed); + ECDSA_sign := LoadFunction('ECDSA_sign',AFailed); + ECDSA_sign_ex := LoadFunction('ECDSA_sign_ex',AFailed); + ECDSA_verify := LoadFunction('ECDSA_verify',AFailed); + ECDSA_size := LoadFunction('ECDSA_size',AFailed); + EC_GFp_nistp224_method := LoadFunction('EC_GFp_nistp224_method',nil); {introduced 1.1.0 removed 3.0.0} + EC_GFp_nistp256_method := LoadFunction('EC_GFp_nistp256_method',nil); {introduced 1.1.0 removed 3.0.0} + EC_GFp_nistp521_method := LoadFunction('EC_GFp_nistp521_method',nil); {introduced 1.1.0 removed 3.0.0} + EC_GROUP_get0_order := LoadFunction('EC_GROUP_get0_order',nil); {introduced 1.1.0} + EC_GROUP_order_bits := LoadFunction('EC_GROUP_order_bits',nil); {introduced 1.1.0} + EC_GROUP_get0_cofactor := LoadFunction('EC_GROUP_get0_cofactor',nil); {introduced 1.1.0} + EC_GROUP_set_curve := LoadFunction('EC_GROUP_set_curve',nil); {introduced 1.1.0} + EC_GROUP_get_curve := LoadFunction('EC_GROUP_get_curve',nil); {introduced 1.1.0} + EC_GROUP_new_from_ecparameters := LoadFunction('EC_GROUP_new_from_ecparameters',nil); {introduced 1.1.0} + EC_GROUP_get_ecparameters := LoadFunction('EC_GROUP_get_ecparameters',nil); {introduced 1.1.0} + EC_GROUP_new_from_ecpkparameters := LoadFunction('EC_GROUP_new_from_ecpkparameters',nil); {introduced 1.1.0} + EC_GROUP_get_ecpkparameters := LoadFunction('EC_GROUP_get_ecpkparameters',nil); {introduced 1.1.0} + EC_POINT_set_affine_coordinates := LoadFunction('EC_POINT_set_affine_coordinates',nil); {introduced 1.1.0} + EC_POINT_get_affine_coordinates := LoadFunction('EC_POINT_get_affine_coordinates',nil); {introduced 1.1.0} + EC_POINT_set_compressed_coordinates := LoadFunction('EC_POINT_set_compressed_coordinates',nil); {introduced 1.1.0} + EC_POINT_point2buf := LoadFunction('EC_POINT_point2buf',nil); {introduced 1.1.0} + EC_KEY_get0_engine := LoadFunction('EC_KEY_get0_engine',nil); {introduced 1.1.0} + EC_KEY_set_ex_data := LoadFunction('EC_KEY_set_ex_data',nil); {introduced 1.1.0} + EC_KEY_get_ex_data := LoadFunction('EC_KEY_get_ex_data',nil); {introduced 1.1.0} + EC_KEY_can_sign := LoadFunction('EC_KEY_can_sign',nil); {introduced 1.1.0} + EC_KEY_key2buf := LoadFunction('EC_KEY_key2buf',nil); {introduced 1.1.0} + EC_KEY_oct2key := LoadFunction('EC_KEY_oct2key',nil); {introduced 1.1.0} + EC_KEY_oct2priv := LoadFunction('EC_KEY_oct2priv',nil); {introduced 1.1.0} + EC_KEY_priv2oct := LoadFunction('EC_KEY_priv2oct',nil); {introduced 1.1.0} + EC_KEY_priv2buf := LoadFunction('EC_KEY_priv2buf',nil); {introduced 1.1.0} + EC_KEY_OpenSSL := LoadFunction('EC_KEY_OpenSSL',nil); {introduced 1.1.0} + EC_KEY_get_default_method := LoadFunction('EC_KEY_get_default_method',nil); {introduced 1.1.0} + EC_KEY_set_default_method := LoadFunction('EC_KEY_set_default_method',nil); {introduced 1.1.0} + EC_KEY_get_method := LoadFunction('EC_KEY_get_method',nil); {introduced 1.1.0} + EC_KEY_set_method := LoadFunction('EC_KEY_set_method',nil); {introduced 1.1.0} + EC_KEY_new_method := LoadFunction('EC_KEY_new_method',nil); {introduced 1.1.0} + ECDSA_SIG_get0 := LoadFunction('ECDSA_SIG_get0',nil); {introduced 1.1.0} + ECDSA_SIG_get0_r := LoadFunction('ECDSA_SIG_get0_r',nil); {introduced 1.1.0} + ECDSA_SIG_get0_s := LoadFunction('ECDSA_SIG_get0_s',nil); {introduced 1.1.0} + ECDSA_SIG_set0 := LoadFunction('ECDSA_SIG_set0',nil); {introduced 1.1.0} + EC_KEY_METHOD_new := LoadFunction('EC_KEY_METHOD_new',nil); {introduced 1.1.0} + EC_KEY_METHOD_free := LoadFunction('EC_KEY_METHOD_free',nil); {introduced 1.1.0} + EC_KEY_METHOD_set_init := LoadFunction('EC_KEY_METHOD_set_init',nil); {introduced 1.1.0} + EC_KEY_METHOD_set_keygen := LoadFunction('EC_KEY_METHOD_set_keygen',nil); {introduced 1.1.0} + EC_KEY_METHOD_set_compute_key := LoadFunction('EC_KEY_METHOD_set_compute_key',nil); {introduced 1.1.0} + EC_KEY_METHOD_set_sign := LoadFunction('EC_KEY_METHOD_set_sign',nil); {introduced 1.1.0} + EC_KEY_METHOD_set_verify := LoadFunction('EC_KEY_METHOD_set_verify',nil); {introduced 1.1.0} + EC_KEY_METHOD_get_init := LoadFunction('EC_KEY_METHOD_get_init',nil); {introduced 1.1.0} + EC_KEY_METHOD_get_keygen := LoadFunction('EC_KEY_METHOD_get_keygen',nil); {introduced 1.1.0} + EC_KEY_METHOD_get_compute_key := LoadFunction('EC_KEY_METHOD_get_compute_key',nil); {introduced 1.1.0} + EC_KEY_METHOD_get_sign := LoadFunction('EC_KEY_METHOD_get_sign',nil); {introduced 1.1.0} + EC_KEY_METHOD_get_verify := LoadFunction('EC_KEY_METHOD_get_verify',nil); {introduced 1.1.0} + if not assigned(EC_GFp_nistp224_method) then + begin + {$if declared(EC_GFp_nistp224_method_introduced)} + if LibVersion < EC_GFp_nistp224_method_introduced then + {$if declared(FC_EC_GFp_nistp224_method)} + EC_GFp_nistp224_method := @FC_EC_GFp_nistp224_method + {$else} + EC_GFp_nistp224_method := @ERR_EC_GFp_nistp224_method + {$ifend} + else + {$ifend} + {$if declared(EC_GFp_nistp224_method_removed)} + if EC_GFp_nistp224_method_removed <= LibVersion then + {$if declared(_EC_GFp_nistp224_method)} + EC_GFp_nistp224_method := @_EC_GFp_nistp224_method + {$else} + {$IF declared(ERR_EC_GFp_nistp224_method)} + EC_GFp_nistp224_method := @ERR_EC_GFp_nistp224_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GFp_nistp224_method) and Assigned(AFailed) then + AFailed.Add('EC_GFp_nistp224_method'); + end; + + + if not assigned(EC_GFp_nistp256_method) then + begin + {$if declared(EC_GFp_nistp256_method_introduced)} + if LibVersion < EC_GFp_nistp256_method_introduced then + {$if declared(FC_EC_GFp_nistp256_method)} + EC_GFp_nistp256_method := @FC_EC_GFp_nistp256_method + {$else} + EC_GFp_nistp256_method := @ERR_EC_GFp_nistp256_method + {$ifend} + else + {$ifend} + {$if declared(EC_GFp_nistp256_method_removed)} + if EC_GFp_nistp256_method_removed <= LibVersion then + {$if declared(_EC_GFp_nistp256_method)} + EC_GFp_nistp256_method := @_EC_GFp_nistp256_method + {$else} + {$IF declared(ERR_EC_GFp_nistp256_method)} + EC_GFp_nistp256_method := @ERR_EC_GFp_nistp256_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GFp_nistp256_method) and Assigned(AFailed) then + AFailed.Add('EC_GFp_nistp256_method'); + end; + + + if not assigned(EC_GFp_nistp521_method) then + begin + {$if declared(EC_GFp_nistp521_method_introduced)} + if LibVersion < EC_GFp_nistp521_method_introduced then + {$if declared(FC_EC_GFp_nistp521_method)} + EC_GFp_nistp521_method := @FC_EC_GFp_nistp521_method + {$else} + EC_GFp_nistp521_method := @ERR_EC_GFp_nistp521_method + {$ifend} + else + {$ifend} + {$if declared(EC_GFp_nistp521_method_removed)} + if EC_GFp_nistp521_method_removed <= LibVersion then + {$if declared(_EC_GFp_nistp521_method)} + EC_GFp_nistp521_method := @_EC_GFp_nistp521_method + {$else} + {$IF declared(ERR_EC_GFp_nistp521_method)} + EC_GFp_nistp521_method := @ERR_EC_GFp_nistp521_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GFp_nistp521_method) and Assigned(AFailed) then + AFailed.Add('EC_GFp_nistp521_method'); + end; + + + if not assigned(EC_GROUP_get0_order) then + begin + {$if declared(EC_GROUP_get0_order_introduced)} + if LibVersion < EC_GROUP_get0_order_introduced then + {$if declared(FC_EC_GROUP_get0_order)} + EC_GROUP_get0_order := @FC_EC_GROUP_get0_order + {$else} + EC_GROUP_get0_order := @ERR_EC_GROUP_get0_order + {$ifend} + else + {$ifend} + {$if declared(EC_GROUP_get0_order_removed)} + if EC_GROUP_get0_order_removed <= LibVersion then + {$if declared(_EC_GROUP_get0_order)} + EC_GROUP_get0_order := @_EC_GROUP_get0_order + {$else} + {$IF declared(ERR_EC_GROUP_get0_order)} + EC_GROUP_get0_order := @ERR_EC_GROUP_get0_order + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GROUP_get0_order) and Assigned(AFailed) then + AFailed.Add('EC_GROUP_get0_order'); + end; + + + if not assigned(EC_GROUP_order_bits) then + begin + {$if declared(EC_GROUP_order_bits_introduced)} + if LibVersion < EC_GROUP_order_bits_introduced then + {$if declared(FC_EC_GROUP_order_bits)} + EC_GROUP_order_bits := @FC_EC_GROUP_order_bits + {$else} + EC_GROUP_order_bits := @ERR_EC_GROUP_order_bits + {$ifend} + else + {$ifend} + {$if declared(EC_GROUP_order_bits_removed)} + if EC_GROUP_order_bits_removed <= LibVersion then + {$if declared(_EC_GROUP_order_bits)} + EC_GROUP_order_bits := @_EC_GROUP_order_bits + {$else} + {$IF declared(ERR_EC_GROUP_order_bits)} + EC_GROUP_order_bits := @ERR_EC_GROUP_order_bits + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GROUP_order_bits) and Assigned(AFailed) then + AFailed.Add('EC_GROUP_order_bits'); + end; + + + if not assigned(EC_GROUP_get0_cofactor) then + begin + {$if declared(EC_GROUP_get0_cofactor_introduced)} + if LibVersion < EC_GROUP_get0_cofactor_introduced then + {$if declared(FC_EC_GROUP_get0_cofactor)} + EC_GROUP_get0_cofactor := @FC_EC_GROUP_get0_cofactor + {$else} + EC_GROUP_get0_cofactor := @ERR_EC_GROUP_get0_cofactor + {$ifend} + else + {$ifend} + {$if declared(EC_GROUP_get0_cofactor_removed)} + if EC_GROUP_get0_cofactor_removed <= LibVersion then + {$if declared(_EC_GROUP_get0_cofactor)} + EC_GROUP_get0_cofactor := @_EC_GROUP_get0_cofactor + {$else} + {$IF declared(ERR_EC_GROUP_get0_cofactor)} + EC_GROUP_get0_cofactor := @ERR_EC_GROUP_get0_cofactor + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GROUP_get0_cofactor) and Assigned(AFailed) then + AFailed.Add('EC_GROUP_get0_cofactor'); + end; + + + if not assigned(EC_GROUP_set_curve) then + begin + {$if declared(EC_GROUP_set_curve_introduced)} + if LibVersion < EC_GROUP_set_curve_introduced then + {$if declared(FC_EC_GROUP_set_curve)} + EC_GROUP_set_curve := @FC_EC_GROUP_set_curve + {$else} + EC_GROUP_set_curve := @ERR_EC_GROUP_set_curve + {$ifend} + else + {$ifend} + {$if declared(EC_GROUP_set_curve_removed)} + if EC_GROUP_set_curve_removed <= LibVersion then + {$if declared(_EC_GROUP_set_curve)} + EC_GROUP_set_curve := @_EC_GROUP_set_curve + {$else} + {$IF declared(ERR_EC_GROUP_set_curve)} + EC_GROUP_set_curve := @ERR_EC_GROUP_set_curve + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GROUP_set_curve) and Assigned(AFailed) then + AFailed.Add('EC_GROUP_set_curve'); + end; + + + if not assigned(EC_GROUP_get_curve) then + begin + {$if declared(EC_GROUP_get_curve_introduced)} + if LibVersion < EC_GROUP_get_curve_introduced then + {$if declared(FC_EC_GROUP_get_curve)} + EC_GROUP_get_curve := @FC_EC_GROUP_get_curve + {$else} + EC_GROUP_get_curve := @ERR_EC_GROUP_get_curve + {$ifend} + else + {$ifend} + {$if declared(EC_GROUP_get_curve_removed)} + if EC_GROUP_get_curve_removed <= LibVersion then + {$if declared(_EC_GROUP_get_curve)} + EC_GROUP_get_curve := @_EC_GROUP_get_curve + {$else} + {$IF declared(ERR_EC_GROUP_get_curve)} + EC_GROUP_get_curve := @ERR_EC_GROUP_get_curve + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GROUP_get_curve) and Assigned(AFailed) then + AFailed.Add('EC_GROUP_get_curve'); + end; + + + if not assigned(EC_GROUP_new_from_ecparameters) then + begin + {$if declared(EC_GROUP_new_from_ecparameters_introduced)} + if LibVersion < EC_GROUP_new_from_ecparameters_introduced then + {$if declared(FC_EC_GROUP_new_from_ecparameters)} + EC_GROUP_new_from_ecparameters := @FC_EC_GROUP_new_from_ecparameters + {$else} + EC_GROUP_new_from_ecparameters := @ERR_EC_GROUP_new_from_ecparameters + {$ifend} + else + {$ifend} + {$if declared(EC_GROUP_new_from_ecparameters_removed)} + if EC_GROUP_new_from_ecparameters_removed <= LibVersion then + {$if declared(_EC_GROUP_new_from_ecparameters)} + EC_GROUP_new_from_ecparameters := @_EC_GROUP_new_from_ecparameters + {$else} + {$IF declared(ERR_EC_GROUP_new_from_ecparameters)} + EC_GROUP_new_from_ecparameters := @ERR_EC_GROUP_new_from_ecparameters + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GROUP_new_from_ecparameters) and Assigned(AFailed) then + AFailed.Add('EC_GROUP_new_from_ecparameters'); + end; + + + if not assigned(EC_GROUP_get_ecparameters) then + begin + {$if declared(EC_GROUP_get_ecparameters_introduced)} + if LibVersion < EC_GROUP_get_ecparameters_introduced then + {$if declared(FC_EC_GROUP_get_ecparameters)} + EC_GROUP_get_ecparameters := @FC_EC_GROUP_get_ecparameters + {$else} + EC_GROUP_get_ecparameters := @ERR_EC_GROUP_get_ecparameters + {$ifend} + else + {$ifend} + {$if declared(EC_GROUP_get_ecparameters_removed)} + if EC_GROUP_get_ecparameters_removed <= LibVersion then + {$if declared(_EC_GROUP_get_ecparameters)} + EC_GROUP_get_ecparameters := @_EC_GROUP_get_ecparameters + {$else} + {$IF declared(ERR_EC_GROUP_get_ecparameters)} + EC_GROUP_get_ecparameters := @ERR_EC_GROUP_get_ecparameters + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GROUP_get_ecparameters) and Assigned(AFailed) then + AFailed.Add('EC_GROUP_get_ecparameters'); + end; + + + if not assigned(EC_GROUP_new_from_ecpkparameters) then + begin + {$if declared(EC_GROUP_new_from_ecpkparameters_introduced)} + if LibVersion < EC_GROUP_new_from_ecpkparameters_introduced then + {$if declared(FC_EC_GROUP_new_from_ecpkparameters)} + EC_GROUP_new_from_ecpkparameters := @FC_EC_GROUP_new_from_ecpkparameters + {$else} + EC_GROUP_new_from_ecpkparameters := @ERR_EC_GROUP_new_from_ecpkparameters + {$ifend} + else + {$ifend} + {$if declared(EC_GROUP_new_from_ecpkparameters_removed)} + if EC_GROUP_new_from_ecpkparameters_removed <= LibVersion then + {$if declared(_EC_GROUP_new_from_ecpkparameters)} + EC_GROUP_new_from_ecpkparameters := @_EC_GROUP_new_from_ecpkparameters + {$else} + {$IF declared(ERR_EC_GROUP_new_from_ecpkparameters)} + EC_GROUP_new_from_ecpkparameters := @ERR_EC_GROUP_new_from_ecpkparameters + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GROUP_new_from_ecpkparameters) and Assigned(AFailed) then + AFailed.Add('EC_GROUP_new_from_ecpkparameters'); + end; + + + if not assigned(EC_GROUP_get_ecpkparameters) then + begin + {$if declared(EC_GROUP_get_ecpkparameters_introduced)} + if LibVersion < EC_GROUP_get_ecpkparameters_introduced then + {$if declared(FC_EC_GROUP_get_ecpkparameters)} + EC_GROUP_get_ecpkparameters := @FC_EC_GROUP_get_ecpkparameters + {$else} + EC_GROUP_get_ecpkparameters := @ERR_EC_GROUP_get_ecpkparameters + {$ifend} + else + {$ifend} + {$if declared(EC_GROUP_get_ecpkparameters_removed)} + if EC_GROUP_get_ecpkparameters_removed <= LibVersion then + {$if declared(_EC_GROUP_get_ecpkparameters)} + EC_GROUP_get_ecpkparameters := @_EC_GROUP_get_ecpkparameters + {$else} + {$IF declared(ERR_EC_GROUP_get_ecpkparameters)} + EC_GROUP_get_ecpkparameters := @ERR_EC_GROUP_get_ecpkparameters + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_GROUP_get_ecpkparameters) and Assigned(AFailed) then + AFailed.Add('EC_GROUP_get_ecpkparameters'); + end; + + + if not assigned(EC_POINT_set_affine_coordinates) then + begin + {$if declared(EC_POINT_set_affine_coordinates_introduced)} + if LibVersion < EC_POINT_set_affine_coordinates_introduced then + {$if declared(FC_EC_POINT_set_affine_coordinates)} + EC_POINT_set_affine_coordinates := @FC_EC_POINT_set_affine_coordinates + {$else} + EC_POINT_set_affine_coordinates := @ERR_EC_POINT_set_affine_coordinates + {$ifend} + else + {$ifend} + {$if declared(EC_POINT_set_affine_coordinates_removed)} + if EC_POINT_set_affine_coordinates_removed <= LibVersion then + {$if declared(_EC_POINT_set_affine_coordinates)} + EC_POINT_set_affine_coordinates := @_EC_POINT_set_affine_coordinates + {$else} + {$IF declared(ERR_EC_POINT_set_affine_coordinates)} + EC_POINT_set_affine_coordinates := @ERR_EC_POINT_set_affine_coordinates + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_POINT_set_affine_coordinates) and Assigned(AFailed) then + AFailed.Add('EC_POINT_set_affine_coordinates'); + end; + + + if not assigned(EC_POINT_get_affine_coordinates) then + begin + {$if declared(EC_POINT_get_affine_coordinates_introduced)} + if LibVersion < EC_POINT_get_affine_coordinates_introduced then + {$if declared(FC_EC_POINT_get_affine_coordinates)} + EC_POINT_get_affine_coordinates := @FC_EC_POINT_get_affine_coordinates + {$else} + EC_POINT_get_affine_coordinates := @ERR_EC_POINT_get_affine_coordinates + {$ifend} + else + {$ifend} + {$if declared(EC_POINT_get_affine_coordinates_removed)} + if EC_POINT_get_affine_coordinates_removed <= LibVersion then + {$if declared(_EC_POINT_get_affine_coordinates)} + EC_POINT_get_affine_coordinates := @_EC_POINT_get_affine_coordinates + {$else} + {$IF declared(ERR_EC_POINT_get_affine_coordinates)} + EC_POINT_get_affine_coordinates := @ERR_EC_POINT_get_affine_coordinates + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_POINT_get_affine_coordinates) and Assigned(AFailed) then + AFailed.Add('EC_POINT_get_affine_coordinates'); + end; + + + if not assigned(EC_POINT_set_compressed_coordinates) then + begin + {$if declared(EC_POINT_set_compressed_coordinates_introduced)} + if LibVersion < EC_POINT_set_compressed_coordinates_introduced then + {$if declared(FC_EC_POINT_set_compressed_coordinates)} + EC_POINT_set_compressed_coordinates := @FC_EC_POINT_set_compressed_coordinates + {$else} + EC_POINT_set_compressed_coordinates := @ERR_EC_POINT_set_compressed_coordinates + {$ifend} + else + {$ifend} + {$if declared(EC_POINT_set_compressed_coordinates_removed)} + if EC_POINT_set_compressed_coordinates_removed <= LibVersion then + {$if declared(_EC_POINT_set_compressed_coordinates)} + EC_POINT_set_compressed_coordinates := @_EC_POINT_set_compressed_coordinates + {$else} + {$IF declared(ERR_EC_POINT_set_compressed_coordinates)} + EC_POINT_set_compressed_coordinates := @ERR_EC_POINT_set_compressed_coordinates + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_POINT_set_compressed_coordinates) and Assigned(AFailed) then + AFailed.Add('EC_POINT_set_compressed_coordinates'); + end; + + + if not assigned(EC_POINT_point2buf) then + begin + {$if declared(EC_POINT_point2buf_introduced)} + if LibVersion < EC_POINT_point2buf_introduced then + {$if declared(FC_EC_POINT_point2buf)} + EC_POINT_point2buf := @FC_EC_POINT_point2buf + {$else} + EC_POINT_point2buf := @ERR_EC_POINT_point2buf + {$ifend} + else + {$ifend} + {$if declared(EC_POINT_point2buf_removed)} + if EC_POINT_point2buf_removed <= LibVersion then + {$if declared(_EC_POINT_point2buf)} + EC_POINT_point2buf := @_EC_POINT_point2buf + {$else} + {$IF declared(ERR_EC_POINT_point2buf)} + EC_POINT_point2buf := @ERR_EC_POINT_point2buf + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_POINT_point2buf) and Assigned(AFailed) then + AFailed.Add('EC_POINT_point2buf'); + end; + + + if not assigned(EC_KEY_get0_engine) then + begin + {$if declared(EC_KEY_get0_engine_introduced)} + if LibVersion < EC_KEY_get0_engine_introduced then + {$if declared(FC_EC_KEY_get0_engine)} + EC_KEY_get0_engine := @FC_EC_KEY_get0_engine + {$else} + EC_KEY_get0_engine := @ERR_EC_KEY_get0_engine + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_get0_engine_removed)} + if EC_KEY_get0_engine_removed <= LibVersion then + {$if declared(_EC_KEY_get0_engine)} + EC_KEY_get0_engine := @_EC_KEY_get0_engine + {$else} + {$IF declared(ERR_EC_KEY_get0_engine)} + EC_KEY_get0_engine := @ERR_EC_KEY_get0_engine + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_get0_engine) and Assigned(AFailed) then + AFailed.Add('EC_KEY_get0_engine'); + end; + + + if not assigned(EC_KEY_set_ex_data) then + begin + {$if declared(EC_KEY_set_ex_data_introduced)} + if LibVersion < EC_KEY_set_ex_data_introduced then + {$if declared(FC_EC_KEY_set_ex_data)} + EC_KEY_set_ex_data := @FC_EC_KEY_set_ex_data + {$else} + EC_KEY_set_ex_data := @ERR_EC_KEY_set_ex_data + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_set_ex_data_removed)} + if EC_KEY_set_ex_data_removed <= LibVersion then + {$if declared(_EC_KEY_set_ex_data)} + EC_KEY_set_ex_data := @_EC_KEY_set_ex_data + {$else} + {$IF declared(ERR_EC_KEY_set_ex_data)} + EC_KEY_set_ex_data := @ERR_EC_KEY_set_ex_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_set_ex_data) and Assigned(AFailed) then + AFailed.Add('EC_KEY_set_ex_data'); + end; + + + if not assigned(EC_KEY_get_ex_data) then + begin + {$if declared(EC_KEY_get_ex_data_introduced)} + if LibVersion < EC_KEY_get_ex_data_introduced then + {$if declared(FC_EC_KEY_get_ex_data)} + EC_KEY_get_ex_data := @FC_EC_KEY_get_ex_data + {$else} + EC_KEY_get_ex_data := @ERR_EC_KEY_get_ex_data + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_get_ex_data_removed)} + if EC_KEY_get_ex_data_removed <= LibVersion then + {$if declared(_EC_KEY_get_ex_data)} + EC_KEY_get_ex_data := @_EC_KEY_get_ex_data + {$else} + {$IF declared(ERR_EC_KEY_get_ex_data)} + EC_KEY_get_ex_data := @ERR_EC_KEY_get_ex_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_get_ex_data) and Assigned(AFailed) then + AFailed.Add('EC_KEY_get_ex_data'); + end; + + + if not assigned(EC_KEY_can_sign) then + begin + {$if declared(EC_KEY_can_sign_introduced)} + if LibVersion < EC_KEY_can_sign_introduced then + {$if declared(FC_EC_KEY_can_sign)} + EC_KEY_can_sign := @FC_EC_KEY_can_sign + {$else} + EC_KEY_can_sign := @ERR_EC_KEY_can_sign + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_can_sign_removed)} + if EC_KEY_can_sign_removed <= LibVersion then + {$if declared(_EC_KEY_can_sign)} + EC_KEY_can_sign := @_EC_KEY_can_sign + {$else} + {$IF declared(ERR_EC_KEY_can_sign)} + EC_KEY_can_sign := @ERR_EC_KEY_can_sign + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_can_sign) and Assigned(AFailed) then + AFailed.Add('EC_KEY_can_sign'); + end; + + + if not assigned(EC_KEY_key2buf) then + begin + {$if declared(EC_KEY_key2buf_introduced)} + if LibVersion < EC_KEY_key2buf_introduced then + {$if declared(FC_EC_KEY_key2buf)} + EC_KEY_key2buf := @FC_EC_KEY_key2buf + {$else} + EC_KEY_key2buf := @ERR_EC_KEY_key2buf + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_key2buf_removed)} + if EC_KEY_key2buf_removed <= LibVersion then + {$if declared(_EC_KEY_key2buf)} + EC_KEY_key2buf := @_EC_KEY_key2buf + {$else} + {$IF declared(ERR_EC_KEY_key2buf)} + EC_KEY_key2buf := @ERR_EC_KEY_key2buf + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_key2buf) and Assigned(AFailed) then + AFailed.Add('EC_KEY_key2buf'); + end; + + + if not assigned(EC_KEY_oct2key) then + begin + {$if declared(EC_KEY_oct2key_introduced)} + if LibVersion < EC_KEY_oct2key_introduced then + {$if declared(FC_EC_KEY_oct2key)} + EC_KEY_oct2key := @FC_EC_KEY_oct2key + {$else} + EC_KEY_oct2key := @ERR_EC_KEY_oct2key + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_oct2key_removed)} + if EC_KEY_oct2key_removed <= LibVersion then + {$if declared(_EC_KEY_oct2key)} + EC_KEY_oct2key := @_EC_KEY_oct2key + {$else} + {$IF declared(ERR_EC_KEY_oct2key)} + EC_KEY_oct2key := @ERR_EC_KEY_oct2key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_oct2key) and Assigned(AFailed) then + AFailed.Add('EC_KEY_oct2key'); + end; + + + if not assigned(EC_KEY_oct2priv) then + begin + {$if declared(EC_KEY_oct2priv_introduced)} + if LibVersion < EC_KEY_oct2priv_introduced then + {$if declared(FC_EC_KEY_oct2priv)} + EC_KEY_oct2priv := @FC_EC_KEY_oct2priv + {$else} + EC_KEY_oct2priv := @ERR_EC_KEY_oct2priv + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_oct2priv_removed)} + if EC_KEY_oct2priv_removed <= LibVersion then + {$if declared(_EC_KEY_oct2priv)} + EC_KEY_oct2priv := @_EC_KEY_oct2priv + {$else} + {$IF declared(ERR_EC_KEY_oct2priv)} + EC_KEY_oct2priv := @ERR_EC_KEY_oct2priv + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_oct2priv) and Assigned(AFailed) then + AFailed.Add('EC_KEY_oct2priv'); + end; + + + if not assigned(EC_KEY_priv2oct) then + begin + {$if declared(EC_KEY_priv2oct_introduced)} + if LibVersion < EC_KEY_priv2oct_introduced then + {$if declared(FC_EC_KEY_priv2oct)} + EC_KEY_priv2oct := @FC_EC_KEY_priv2oct + {$else} + EC_KEY_priv2oct := @ERR_EC_KEY_priv2oct + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_priv2oct_removed)} + if EC_KEY_priv2oct_removed <= LibVersion then + {$if declared(_EC_KEY_priv2oct)} + EC_KEY_priv2oct := @_EC_KEY_priv2oct + {$else} + {$IF declared(ERR_EC_KEY_priv2oct)} + EC_KEY_priv2oct := @ERR_EC_KEY_priv2oct + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_priv2oct) and Assigned(AFailed) then + AFailed.Add('EC_KEY_priv2oct'); + end; + + + if not assigned(EC_KEY_priv2buf) then + begin + {$if declared(EC_KEY_priv2buf_introduced)} + if LibVersion < EC_KEY_priv2buf_introduced then + {$if declared(FC_EC_KEY_priv2buf)} + EC_KEY_priv2buf := @FC_EC_KEY_priv2buf + {$else} + EC_KEY_priv2buf := @ERR_EC_KEY_priv2buf + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_priv2buf_removed)} + if EC_KEY_priv2buf_removed <= LibVersion then + {$if declared(_EC_KEY_priv2buf)} + EC_KEY_priv2buf := @_EC_KEY_priv2buf + {$else} + {$IF declared(ERR_EC_KEY_priv2buf)} + EC_KEY_priv2buf := @ERR_EC_KEY_priv2buf + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_priv2buf) and Assigned(AFailed) then + AFailed.Add('EC_KEY_priv2buf'); + end; + + + if not assigned(EC_KEY_OpenSSL) then + begin + {$if declared(EC_KEY_OpenSSL_introduced)} + if LibVersion < EC_KEY_OpenSSL_introduced then + {$if declared(FC_EC_KEY_OpenSSL)} + EC_KEY_OpenSSL := @FC_EC_KEY_OpenSSL + {$else} + EC_KEY_OpenSSL := @ERR_EC_KEY_OpenSSL + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_OpenSSL_removed)} + if EC_KEY_OpenSSL_removed <= LibVersion then + {$if declared(_EC_KEY_OpenSSL)} + EC_KEY_OpenSSL := @_EC_KEY_OpenSSL + {$else} + {$IF declared(ERR_EC_KEY_OpenSSL)} + EC_KEY_OpenSSL := @ERR_EC_KEY_OpenSSL + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_OpenSSL) and Assigned(AFailed) then + AFailed.Add('EC_KEY_OpenSSL'); + end; + + + if not assigned(EC_KEY_get_default_method) then + begin + {$if declared(EC_KEY_get_default_method_introduced)} + if LibVersion < EC_KEY_get_default_method_introduced then + {$if declared(FC_EC_KEY_get_default_method)} + EC_KEY_get_default_method := @FC_EC_KEY_get_default_method + {$else} + EC_KEY_get_default_method := @ERR_EC_KEY_get_default_method + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_get_default_method_removed)} + if EC_KEY_get_default_method_removed <= LibVersion then + {$if declared(_EC_KEY_get_default_method)} + EC_KEY_get_default_method := @_EC_KEY_get_default_method + {$else} + {$IF declared(ERR_EC_KEY_get_default_method)} + EC_KEY_get_default_method := @ERR_EC_KEY_get_default_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_get_default_method) and Assigned(AFailed) then + AFailed.Add('EC_KEY_get_default_method'); + end; + + + if not assigned(EC_KEY_set_default_method) then + begin + {$if declared(EC_KEY_set_default_method_introduced)} + if LibVersion < EC_KEY_set_default_method_introduced then + {$if declared(FC_EC_KEY_set_default_method)} + EC_KEY_set_default_method := @FC_EC_KEY_set_default_method + {$else} + EC_KEY_set_default_method := @ERR_EC_KEY_set_default_method + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_set_default_method_removed)} + if EC_KEY_set_default_method_removed <= LibVersion then + {$if declared(_EC_KEY_set_default_method)} + EC_KEY_set_default_method := @_EC_KEY_set_default_method + {$else} + {$IF declared(ERR_EC_KEY_set_default_method)} + EC_KEY_set_default_method := @ERR_EC_KEY_set_default_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_set_default_method) and Assigned(AFailed) then + AFailed.Add('EC_KEY_set_default_method'); + end; + + + if not assigned(EC_KEY_get_method) then + begin + {$if declared(EC_KEY_get_method_introduced)} + if LibVersion < EC_KEY_get_method_introduced then + {$if declared(FC_EC_KEY_get_method)} + EC_KEY_get_method := @FC_EC_KEY_get_method + {$else} + EC_KEY_get_method := @ERR_EC_KEY_get_method + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_get_method_removed)} + if EC_KEY_get_method_removed <= LibVersion then + {$if declared(_EC_KEY_get_method)} + EC_KEY_get_method := @_EC_KEY_get_method + {$else} + {$IF declared(ERR_EC_KEY_get_method)} + EC_KEY_get_method := @ERR_EC_KEY_get_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_get_method) and Assigned(AFailed) then + AFailed.Add('EC_KEY_get_method'); + end; + + + if not assigned(EC_KEY_set_method) then + begin + {$if declared(EC_KEY_set_method_introduced)} + if LibVersion < EC_KEY_set_method_introduced then + {$if declared(FC_EC_KEY_set_method)} + EC_KEY_set_method := @FC_EC_KEY_set_method + {$else} + EC_KEY_set_method := @ERR_EC_KEY_set_method + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_set_method_removed)} + if EC_KEY_set_method_removed <= LibVersion then + {$if declared(_EC_KEY_set_method)} + EC_KEY_set_method := @_EC_KEY_set_method + {$else} + {$IF declared(ERR_EC_KEY_set_method)} + EC_KEY_set_method := @ERR_EC_KEY_set_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_set_method) and Assigned(AFailed) then + AFailed.Add('EC_KEY_set_method'); + end; + + + if not assigned(EC_KEY_new_method) then + begin + {$if declared(EC_KEY_new_method_introduced)} + if LibVersion < EC_KEY_new_method_introduced then + {$if declared(FC_EC_KEY_new_method)} + EC_KEY_new_method := @FC_EC_KEY_new_method + {$else} + EC_KEY_new_method := @ERR_EC_KEY_new_method + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_new_method_removed)} + if EC_KEY_new_method_removed <= LibVersion then + {$if declared(_EC_KEY_new_method)} + EC_KEY_new_method := @_EC_KEY_new_method + {$else} + {$IF declared(ERR_EC_KEY_new_method)} + EC_KEY_new_method := @ERR_EC_KEY_new_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_new_method) and Assigned(AFailed) then + AFailed.Add('EC_KEY_new_method'); + end; + + + if not assigned(ECDSA_SIG_get0) then + begin + {$if declared(ECDSA_SIG_get0_introduced)} + if LibVersion < ECDSA_SIG_get0_introduced then + {$if declared(FC_ECDSA_SIG_get0)} + ECDSA_SIG_get0 := @FC_ECDSA_SIG_get0 + {$else} + ECDSA_SIG_get0 := @ERR_ECDSA_SIG_get0 + {$ifend} + else + {$ifend} + {$if declared(ECDSA_SIG_get0_removed)} + if ECDSA_SIG_get0_removed <= LibVersion then + {$if declared(_ECDSA_SIG_get0)} + ECDSA_SIG_get0 := @_ECDSA_SIG_get0 + {$else} + {$IF declared(ERR_ECDSA_SIG_get0)} + ECDSA_SIG_get0 := @ERR_ECDSA_SIG_get0 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ECDSA_SIG_get0) and Assigned(AFailed) then + AFailed.Add('ECDSA_SIG_get0'); + end; + + + if not assigned(ECDSA_SIG_get0_r) then + begin + {$if declared(ECDSA_SIG_get0_r_introduced)} + if LibVersion < ECDSA_SIG_get0_r_introduced then + {$if declared(FC_ECDSA_SIG_get0_r)} + ECDSA_SIG_get0_r := @FC_ECDSA_SIG_get0_r + {$else} + ECDSA_SIG_get0_r := @ERR_ECDSA_SIG_get0_r + {$ifend} + else + {$ifend} + {$if declared(ECDSA_SIG_get0_r_removed)} + if ECDSA_SIG_get0_r_removed <= LibVersion then + {$if declared(_ECDSA_SIG_get0_r)} + ECDSA_SIG_get0_r := @_ECDSA_SIG_get0_r + {$else} + {$IF declared(ERR_ECDSA_SIG_get0_r)} + ECDSA_SIG_get0_r := @ERR_ECDSA_SIG_get0_r + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ECDSA_SIG_get0_r) and Assigned(AFailed) then + AFailed.Add('ECDSA_SIG_get0_r'); + end; + + + if not assigned(ECDSA_SIG_get0_s) then + begin + {$if declared(ECDSA_SIG_get0_s_introduced)} + if LibVersion < ECDSA_SIG_get0_s_introduced then + {$if declared(FC_ECDSA_SIG_get0_s)} + ECDSA_SIG_get0_s := @FC_ECDSA_SIG_get0_s + {$else} + ECDSA_SIG_get0_s := @ERR_ECDSA_SIG_get0_s + {$ifend} + else + {$ifend} + {$if declared(ECDSA_SIG_get0_s_removed)} + if ECDSA_SIG_get0_s_removed <= LibVersion then + {$if declared(_ECDSA_SIG_get0_s)} + ECDSA_SIG_get0_s := @_ECDSA_SIG_get0_s + {$else} + {$IF declared(ERR_ECDSA_SIG_get0_s)} + ECDSA_SIG_get0_s := @ERR_ECDSA_SIG_get0_s + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ECDSA_SIG_get0_s) and Assigned(AFailed) then + AFailed.Add('ECDSA_SIG_get0_s'); + end; + + + if not assigned(ECDSA_SIG_set0) then + begin + {$if declared(ECDSA_SIG_set0_introduced)} + if LibVersion < ECDSA_SIG_set0_introduced then + {$if declared(FC_ECDSA_SIG_set0)} + ECDSA_SIG_set0 := @FC_ECDSA_SIG_set0 + {$else} + ECDSA_SIG_set0 := @ERR_ECDSA_SIG_set0 + {$ifend} + else + {$ifend} + {$if declared(ECDSA_SIG_set0_removed)} + if ECDSA_SIG_set0_removed <= LibVersion then + {$if declared(_ECDSA_SIG_set0)} + ECDSA_SIG_set0 := @_ECDSA_SIG_set0 + {$else} + {$IF declared(ERR_ECDSA_SIG_set0)} + ECDSA_SIG_set0 := @ERR_ECDSA_SIG_set0 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ECDSA_SIG_set0) and Assigned(AFailed) then + AFailed.Add('ECDSA_SIG_set0'); + end; + + + if not assigned(EC_KEY_METHOD_new) then + begin + {$if declared(EC_KEY_METHOD_new_introduced)} + if LibVersion < EC_KEY_METHOD_new_introduced then + {$if declared(FC_EC_KEY_METHOD_new)} + EC_KEY_METHOD_new := @FC_EC_KEY_METHOD_new + {$else} + EC_KEY_METHOD_new := @ERR_EC_KEY_METHOD_new + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_new_removed)} + if EC_KEY_METHOD_new_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_new)} + EC_KEY_METHOD_new := @_EC_KEY_METHOD_new + {$else} + {$IF declared(ERR_EC_KEY_METHOD_new)} + EC_KEY_METHOD_new := @ERR_EC_KEY_METHOD_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_new) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_new'); + end; + + + if not assigned(EC_KEY_METHOD_free) then + begin + {$if declared(EC_KEY_METHOD_free_introduced)} + if LibVersion < EC_KEY_METHOD_free_introduced then + {$if declared(FC_EC_KEY_METHOD_free)} + EC_KEY_METHOD_free := @FC_EC_KEY_METHOD_free + {$else} + EC_KEY_METHOD_free := @ERR_EC_KEY_METHOD_free + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_free_removed)} + if EC_KEY_METHOD_free_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_free)} + EC_KEY_METHOD_free := @_EC_KEY_METHOD_free + {$else} + {$IF declared(ERR_EC_KEY_METHOD_free)} + EC_KEY_METHOD_free := @ERR_EC_KEY_METHOD_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_free) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_free'); + end; + + + if not assigned(EC_KEY_METHOD_set_init) then + begin + {$if declared(EC_KEY_METHOD_set_init_introduced)} + if LibVersion < EC_KEY_METHOD_set_init_introduced then + {$if declared(FC_EC_KEY_METHOD_set_init)} + EC_KEY_METHOD_set_init := @FC_EC_KEY_METHOD_set_init + {$else} + EC_KEY_METHOD_set_init := @ERR_EC_KEY_METHOD_set_init + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_set_init_removed)} + if EC_KEY_METHOD_set_init_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_set_init)} + EC_KEY_METHOD_set_init := @_EC_KEY_METHOD_set_init + {$else} + {$IF declared(ERR_EC_KEY_METHOD_set_init)} + EC_KEY_METHOD_set_init := @ERR_EC_KEY_METHOD_set_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_set_init) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_set_init'); + end; + + + if not assigned(EC_KEY_METHOD_set_keygen) then + begin + {$if declared(EC_KEY_METHOD_set_keygen_introduced)} + if LibVersion < EC_KEY_METHOD_set_keygen_introduced then + {$if declared(FC_EC_KEY_METHOD_set_keygen)} + EC_KEY_METHOD_set_keygen := @FC_EC_KEY_METHOD_set_keygen + {$else} + EC_KEY_METHOD_set_keygen := @ERR_EC_KEY_METHOD_set_keygen + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_set_keygen_removed)} + if EC_KEY_METHOD_set_keygen_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_set_keygen)} + EC_KEY_METHOD_set_keygen := @_EC_KEY_METHOD_set_keygen + {$else} + {$IF declared(ERR_EC_KEY_METHOD_set_keygen)} + EC_KEY_METHOD_set_keygen := @ERR_EC_KEY_METHOD_set_keygen + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_set_keygen) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_set_keygen'); + end; + + + if not assigned(EC_KEY_METHOD_set_compute_key) then + begin + {$if declared(EC_KEY_METHOD_set_compute_key_introduced)} + if LibVersion < EC_KEY_METHOD_set_compute_key_introduced then + {$if declared(FC_EC_KEY_METHOD_set_compute_key)} + EC_KEY_METHOD_set_compute_key := @FC_EC_KEY_METHOD_set_compute_key + {$else} + EC_KEY_METHOD_set_compute_key := @ERR_EC_KEY_METHOD_set_compute_key + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_set_compute_key_removed)} + if EC_KEY_METHOD_set_compute_key_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_set_compute_key)} + EC_KEY_METHOD_set_compute_key := @_EC_KEY_METHOD_set_compute_key + {$else} + {$IF declared(ERR_EC_KEY_METHOD_set_compute_key)} + EC_KEY_METHOD_set_compute_key := @ERR_EC_KEY_METHOD_set_compute_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_set_compute_key) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_set_compute_key'); + end; + + + if not assigned(EC_KEY_METHOD_set_sign) then + begin + {$if declared(EC_KEY_METHOD_set_sign_introduced)} + if LibVersion < EC_KEY_METHOD_set_sign_introduced then + {$if declared(FC_EC_KEY_METHOD_set_sign)} + EC_KEY_METHOD_set_sign := @FC_EC_KEY_METHOD_set_sign + {$else} + EC_KEY_METHOD_set_sign := @ERR_EC_KEY_METHOD_set_sign + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_set_sign_removed)} + if EC_KEY_METHOD_set_sign_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_set_sign)} + EC_KEY_METHOD_set_sign := @_EC_KEY_METHOD_set_sign + {$else} + {$IF declared(ERR_EC_KEY_METHOD_set_sign)} + EC_KEY_METHOD_set_sign := @ERR_EC_KEY_METHOD_set_sign + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_set_sign) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_set_sign'); + end; + + + if not assigned(EC_KEY_METHOD_set_verify) then + begin + {$if declared(EC_KEY_METHOD_set_verify_introduced)} + if LibVersion < EC_KEY_METHOD_set_verify_introduced then + {$if declared(FC_EC_KEY_METHOD_set_verify)} + EC_KEY_METHOD_set_verify := @FC_EC_KEY_METHOD_set_verify + {$else} + EC_KEY_METHOD_set_verify := @ERR_EC_KEY_METHOD_set_verify + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_set_verify_removed)} + if EC_KEY_METHOD_set_verify_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_set_verify)} + EC_KEY_METHOD_set_verify := @_EC_KEY_METHOD_set_verify + {$else} + {$IF declared(ERR_EC_KEY_METHOD_set_verify)} + EC_KEY_METHOD_set_verify := @ERR_EC_KEY_METHOD_set_verify + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_set_verify) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_set_verify'); + end; + + + if not assigned(EC_KEY_METHOD_get_init) then + begin + {$if declared(EC_KEY_METHOD_get_init_introduced)} + if LibVersion < EC_KEY_METHOD_get_init_introduced then + {$if declared(FC_EC_KEY_METHOD_get_init)} + EC_KEY_METHOD_get_init := @FC_EC_KEY_METHOD_get_init + {$else} + EC_KEY_METHOD_get_init := @ERR_EC_KEY_METHOD_get_init + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_get_init_removed)} + if EC_KEY_METHOD_get_init_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_get_init)} + EC_KEY_METHOD_get_init := @_EC_KEY_METHOD_get_init + {$else} + {$IF declared(ERR_EC_KEY_METHOD_get_init)} + EC_KEY_METHOD_get_init := @ERR_EC_KEY_METHOD_get_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_get_init) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_get_init'); + end; + + + if not assigned(EC_KEY_METHOD_get_keygen) then + begin + {$if declared(EC_KEY_METHOD_get_keygen_introduced)} + if LibVersion < EC_KEY_METHOD_get_keygen_introduced then + {$if declared(FC_EC_KEY_METHOD_get_keygen)} + EC_KEY_METHOD_get_keygen := @FC_EC_KEY_METHOD_get_keygen + {$else} + EC_KEY_METHOD_get_keygen := @ERR_EC_KEY_METHOD_get_keygen + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_get_keygen_removed)} + if EC_KEY_METHOD_get_keygen_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_get_keygen)} + EC_KEY_METHOD_get_keygen := @_EC_KEY_METHOD_get_keygen + {$else} + {$IF declared(ERR_EC_KEY_METHOD_get_keygen)} + EC_KEY_METHOD_get_keygen := @ERR_EC_KEY_METHOD_get_keygen + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_get_keygen) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_get_keygen'); + end; + + + if not assigned(EC_KEY_METHOD_get_compute_key) then + begin + {$if declared(EC_KEY_METHOD_get_compute_key_introduced)} + if LibVersion < EC_KEY_METHOD_get_compute_key_introduced then + {$if declared(FC_EC_KEY_METHOD_get_compute_key)} + EC_KEY_METHOD_get_compute_key := @FC_EC_KEY_METHOD_get_compute_key + {$else} + EC_KEY_METHOD_get_compute_key := @ERR_EC_KEY_METHOD_get_compute_key + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_get_compute_key_removed)} + if EC_KEY_METHOD_get_compute_key_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_get_compute_key)} + EC_KEY_METHOD_get_compute_key := @_EC_KEY_METHOD_get_compute_key + {$else} + {$IF declared(ERR_EC_KEY_METHOD_get_compute_key)} + EC_KEY_METHOD_get_compute_key := @ERR_EC_KEY_METHOD_get_compute_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_get_compute_key) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_get_compute_key'); + end; + + + if not assigned(EC_KEY_METHOD_get_sign) then + begin + {$if declared(EC_KEY_METHOD_get_sign_introduced)} + if LibVersion < EC_KEY_METHOD_get_sign_introduced then + {$if declared(FC_EC_KEY_METHOD_get_sign)} + EC_KEY_METHOD_get_sign := @FC_EC_KEY_METHOD_get_sign + {$else} + EC_KEY_METHOD_get_sign := @ERR_EC_KEY_METHOD_get_sign + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_get_sign_removed)} + if EC_KEY_METHOD_get_sign_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_get_sign)} + EC_KEY_METHOD_get_sign := @_EC_KEY_METHOD_get_sign + {$else} + {$IF declared(ERR_EC_KEY_METHOD_get_sign)} + EC_KEY_METHOD_get_sign := @ERR_EC_KEY_METHOD_get_sign + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_get_sign) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_get_sign'); + end; + + + if not assigned(EC_KEY_METHOD_get_verify) then + begin + {$if declared(EC_KEY_METHOD_get_verify_introduced)} + if LibVersion < EC_KEY_METHOD_get_verify_introduced then + {$if declared(FC_EC_KEY_METHOD_get_verify)} + EC_KEY_METHOD_get_verify := @FC_EC_KEY_METHOD_get_verify + {$else} + EC_KEY_METHOD_get_verify := @ERR_EC_KEY_METHOD_get_verify + {$ifend} + else + {$ifend} + {$if declared(EC_KEY_METHOD_get_verify_removed)} + if EC_KEY_METHOD_get_verify_removed <= LibVersion then + {$if declared(_EC_KEY_METHOD_get_verify)} + EC_KEY_METHOD_get_verify := @_EC_KEY_METHOD_get_verify + {$else} + {$IF declared(ERR_EC_KEY_METHOD_get_verify)} + EC_KEY_METHOD_get_verify := @ERR_EC_KEY_METHOD_get_verify + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EC_KEY_METHOD_get_verify) and Assigned(AFailed) then + AFailed.Add('EC_KEY_METHOD_get_verify'); + end; + + +end; + +procedure Unload; +begin + EC_GFp_simple_method := nil; + EC_GFp_mont_method := nil; + EC_GFp_nist_method := nil; + EC_GFp_nistp224_method := nil; {introduced 1.1.0 removed 3.0.0} + EC_GFp_nistp256_method := nil; {introduced 1.1.0 removed 3.0.0} + EC_GFp_nistp521_method := nil; {introduced 1.1.0 removed 3.0.0} + EC_GF2m_simple_method := nil; + EC_GROUP_new := nil; + EC_GROUP_free := nil; + EC_GROUP_clear_free := nil; + EC_GROUP_copy := nil; + EC_GROUP_dup := nil; + EC_GROUP_method_of := nil; + EC_METHOD_get_field_type := nil; + EC_GROUP_set_generator := nil; + EC_GROUP_get0_generator := nil; + EC_GROUP_get_mont_data := nil; + EC_GROUP_get_order := nil; + EC_GROUP_get0_order := nil; {introduced 1.1.0} + EC_GROUP_order_bits := nil; {introduced 1.1.0} + EC_GROUP_get_cofactor := nil; + EC_GROUP_get0_cofactor := nil; {introduced 1.1.0} + EC_GROUP_set_curve_name := nil; + EC_GROUP_get_curve_name := nil; + EC_GROUP_set_asn1_flag := nil; + EC_GROUP_get_asn1_flag := nil; + EC_GROUP_set_point_conversion_form := nil; + EC_GROUP_get_point_conversion_form := nil; + EC_GROUP_get0_seed := nil; + EC_GROUP_get_seed_len := nil; + EC_GROUP_set_seed := nil; + EC_GROUP_set_curve := nil; {introduced 1.1.0} + EC_GROUP_get_curve := nil; {introduced 1.1.0} + EC_GROUP_set_curve_GFp := nil; + EC_GROUP_get_curve_GFp := nil; + EC_GROUP_set_curve_GF2m := nil; + EC_GROUP_get_curve_GF2m := nil; + EC_GROUP_get_degree := nil; + EC_GROUP_check := nil; + EC_GROUP_check_discriminant := nil; + EC_GROUP_cmp := nil; + EC_GROUP_new_curve_GFp := nil; + EC_GROUP_new_curve_GF2m := nil; + EC_GROUP_new_by_curve_name := nil; + EC_GROUP_new_from_ecparameters := nil; {introduced 1.1.0} + EC_GROUP_get_ecparameters := nil; {introduced 1.1.0} + EC_GROUP_new_from_ecpkparameters := nil; {introduced 1.1.0} + EC_GROUP_get_ecpkparameters := nil; {introduced 1.1.0} + EC_get_builtin_curves := nil; + EC_curve_nid2nist := nil; + EC_curve_nist2nid := nil; + EC_POINT_new := nil; + EC_POINT_free := nil; + EC_POINT_clear_free := nil; + EC_POINT_copy := nil; + EC_POINT_dup := nil; + EC_POINT_method_of := nil; + EC_POINT_set_to_infinity := nil; + EC_POINT_set_Jprojective_coordinates_GFp := nil; + EC_POINT_get_Jprojective_coordinates_GFp := nil; + EC_POINT_set_affine_coordinates := nil; {introduced 1.1.0} + EC_POINT_get_affine_coordinates := nil; {introduced 1.1.0} + EC_POINT_set_affine_coordinates_GFp := nil; + EC_POINT_get_affine_coordinates_GFp := nil; + EC_POINT_set_compressed_coordinates := nil; {introduced 1.1.0} + EC_POINT_set_compressed_coordinates_GFp := nil; + EC_POINT_set_affine_coordinates_GF2m := nil; + EC_POINT_get_affine_coordinates_GF2m := nil; + EC_POINT_set_compressed_coordinates_GF2m := nil; + EC_POINT_point2oct := nil; + EC_POINT_oct2point := nil; + EC_POINT_point2buf := nil; {introduced 1.1.0} + EC_POINT_point2bn := nil; + EC_POINT_bn2point := nil; + EC_POINT_point2hex := nil; + EC_POINT_hex2point := nil; + EC_POINT_add := nil; + EC_POINT_dbl := nil; + EC_POINT_invert := nil; + EC_POINT_is_at_infinity := nil; + EC_POINT_is_on_curve := nil; + EC_POINT_cmp := nil; + EC_POINT_make_affine := nil; + EC_POINTs_make_affine := nil; + EC_POINTs_mul := nil; + EC_POINT_mul := nil; + EC_GROUP_precompute_mult := nil; + EC_GROUP_have_precompute_mult := nil; + ECPKPARAMETERS_it := nil; + ECPKPARAMETERS_new := nil; + ECPKPARAMETERS_free := nil; + ECPARAMETERS_it := nil; + ECPARAMETERS_new := nil; + ECPARAMETERS_free := nil; + EC_GROUP_get_basis_type := nil; + EC_GROUP_get_trinomial_basis := nil; + EC_GROUP_get_pentanomial_basis := nil; + d2i_ECPKParameters := nil; + i2d_ECPKParameters := nil; + ECPKParameters_print := nil; + EC_KEY_new := nil; + EC_KEY_get_flags := nil; + EC_KEY_set_flags := nil; + EC_KEY_clear_flags := nil; + EC_KEY_new_by_curve_name := nil; + EC_KEY_free := nil; + EC_KEY_copy := nil; + EC_KEY_dup := nil; + EC_KEY_up_ref := nil; + EC_KEY_get0_engine := nil; {introduced 1.1.0} + EC_KEY_get0_group := nil; + EC_KEY_set_group := nil; + EC_KEY_get0_private_key := nil; + EC_KEY_set_private_key := nil; + EC_KEY_get0_public_key := nil; + EC_KEY_set_public_key := nil; + EC_KEY_get_enc_flags := nil; + EC_KEY_set_enc_flags := nil; + EC_KEY_get_conv_form := nil; + EC_KEY_set_conv_form := nil; + EC_KEY_set_ex_data := nil; {introduced 1.1.0} + EC_KEY_get_ex_data := nil; {introduced 1.1.0} + EC_KEY_set_asn1_flag := nil; + EC_KEY_precompute_mult := nil; + EC_KEY_generate_key := nil; + EC_KEY_check_key := nil; + EC_KEY_can_sign := nil; {introduced 1.1.0} + EC_KEY_set_public_key_affine_coordinates := nil; + EC_KEY_key2buf := nil; {introduced 1.1.0} + EC_KEY_oct2key := nil; {introduced 1.1.0} + EC_KEY_oct2priv := nil; {introduced 1.1.0} + EC_KEY_priv2oct := nil; {introduced 1.1.0} + EC_KEY_priv2buf := nil; {introduced 1.1.0} + d2i_ECPrivateKey := nil; + i2d_ECPrivateKey := nil; + o2i_ECPublicKey := nil; + i2o_ECPublicKey := nil; + ECParameters_print := nil; + EC_KEY_print := nil; + EC_KEY_OpenSSL := nil; {introduced 1.1.0} + EC_KEY_get_default_method := nil; {introduced 1.1.0} + EC_KEY_set_default_method := nil; {introduced 1.1.0} + EC_KEY_get_method := nil; {introduced 1.1.0} + EC_KEY_set_method := nil; {introduced 1.1.0} + EC_KEY_new_method := nil; {introduced 1.1.0} + ECDH_KDF_X9_62 := nil; + ECDH_compute_key := nil; + ECDSA_SIG_new := nil; + ECDSA_SIG_free := nil; + i2d_ECDSA_SIG := nil; + d2i_ECDSA_SIG := nil; + ECDSA_SIG_get0 := nil; {introduced 1.1.0} + ECDSA_SIG_get0_r := nil; {introduced 1.1.0} + ECDSA_SIG_get0_s := nil; {introduced 1.1.0} + ECDSA_SIG_set0 := nil; {introduced 1.1.0} + ECDSA_do_sign := nil; + ECDSA_do_sign_ex := nil; + ECDSA_do_verify := nil; + ECDSA_sign_setup := nil; + ECDSA_sign := nil; + ECDSA_sign_ex := nil; + ECDSA_verify := nil; + ECDSA_size := nil; + EC_KEY_METHOD_new := nil; {introduced 1.1.0} + EC_KEY_METHOD_free := nil; {introduced 1.1.0} + EC_KEY_METHOD_set_init := nil; {introduced 1.1.0} + EC_KEY_METHOD_set_keygen := nil; {introduced 1.1.0} + EC_KEY_METHOD_set_compute_key := nil; {introduced 1.1.0} + EC_KEY_METHOD_set_sign := nil; {introduced 1.1.0} + EC_KEY_METHOD_set_verify := nil; {introduced 1.1.0} + EC_KEY_METHOD_get_init := nil; {introduced 1.1.0} + EC_KEY_METHOD_get_keygen := nil; {introduced 1.1.0} + EC_KEY_METHOD_get_compute_key := nil; {introduced 1.1.0} + EC_KEY_METHOD_get_sign := nil; {introduced 1.1.0} + EC_KEY_METHOD_get_verify := nil; {introduced 1.1.0} +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ecerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ecerr.pas new file mode 100644 index 000000000..225edf2dd --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ecerr.pas @@ -0,0 +1,348 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_ecerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_ecerr.h2pas + and this file regenerated. IdOpenSSLHeaders_ecerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ecerr; + +interface + +// Headers for OpenSSL 1.1.1 +// ecerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * EC function codes. + *) + EC_F_BN_TO_FELEM = 224; + EC_F_D2I_ECPARAMETERS = 144; + EC_F_D2I_ECPKPARAMETERS = 145; + EC_F_D2I_ECPRIVATEKEY = 146; + EC_F_DO_EC_KEY_PRINT = 221; + EC_F_ECDH_CMS_DECRYPT = 238; + EC_F_ECDH_CMS_SET_SHARED_INFO = 239; + EC_F_ECDH_COMPUTE_KEY = 246; + EC_F_ECDH_SIMPLE_COMPUTE_KEY = 257; + EC_F_ECDSA_DO_SIGN_EX = 251; + EC_F_ECDSA_DO_VERIFY = 252; + EC_F_ECDSA_SIGN_EX = 254; + EC_F_ECDSA_SIGN_SETUP = 248; + EC_F_ECDSA_SIG_NEW = 265; + EC_F_ECDSA_VERIFY = 253; + EC_F_ECD_ITEM_VERIFY = 270; + EC_F_ECKEY_PARAM2TYPE = 223; + EC_F_ECKEY_PARAM_DECODE = 212; + EC_F_ECKEY_PRIV_DECODE = 213; + EC_F_ECKEY_PRIV_ENCODE = 214; + EC_F_ECKEY_PUB_DECODE = 215; + EC_F_ECKEY_PUB_ENCODE = 216; + EC_F_ECKEY_TYPE2PARAM = 220; + EC_F_ECPARAMETERS_PRINT = 147; + EC_F_ECPARAMETERS_PRINT_FP = 148; + EC_F_ECPKPARAMETERS_PRINT = 149; + EC_F_ECPKPARAMETERS_PRINT_FP = 150; + EC_F_ECP_NISTZ256_GET_AFFINE = 240; + EC_F_ECP_NISTZ256_INV_MOD_ORD = 275; + EC_F_ECP_NISTZ256_MULT_PRECOMPUTE = 243; + EC_F_ECP_NISTZ256_POINTS_MUL = 241; + EC_F_ECP_NISTZ256_PRE_COMP_NEW = 244; + EC_F_ECP_NISTZ256_WINDOWED_MUL = 242; + EC_F_ECX_KEY_OP = 266; + EC_F_ECX_PRIV_ENCODE = 267; + EC_F_ECX_PUB_ENCODE = 268; + EC_F_EC_ASN1_GROUP2CURVE = 153; + EC_F_EC_ASN1_GROUP2FIELDID = 154; + EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY = 208; + EC_F_EC_GF2M_SIMPLE_FIELD_INV = 296; + EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT = 159; + EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE = 195; + EC_F_EC_GF2M_SIMPLE_LADDER_POST = 285; + EC_F_EC_GF2M_SIMPLE_LADDER_PRE = 288; + EC_F_EC_GF2M_SIMPLE_OCT2POINT = 160; + EC_F_EC_GF2M_SIMPLE_POINT2OCT = 161; + EC_F_EC_GF2M_SIMPLE_POINTS_MUL = 289; + EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES = 162; + EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES = 163; + EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES = 164; + EC_F_EC_GFP_MONT_FIELD_DECODE = 133; + EC_F_EC_GFP_MONT_FIELD_ENCODE = 134; + EC_F_EC_GFP_MONT_FIELD_INV = 297; + EC_F_EC_GFP_MONT_FIELD_MUL = 131; + EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE = 209; + EC_F_EC_GFP_MONT_FIELD_SQR = 132; + EC_F_EC_GFP_MONT_GROUP_SET_CURVE = 189; + EC_F_EC_GFP_NISTP224_GROUP_SET_CURVE = 225; + EC_F_EC_GFP_NISTP224_POINTS_MUL = 228; + EC_F_EC_GFP_NISTP224_POINT_GET_AFFINE_COORDINATES = 226; + EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE = 230; + EC_F_EC_GFP_NISTP256_POINTS_MUL = 231; + EC_F_EC_GFP_NISTP256_POINT_GET_AFFINE_COORDINATES = 232; + EC_F_EC_GFP_NISTP521_GROUP_SET_CURVE = 233; + EC_F_EC_GFP_NISTP521_POINTS_MUL = 234; + EC_F_EC_GFP_NISTP521_POINT_GET_AFFINE_COORDINATES = 235; + EC_F_EC_GFP_NIST_FIELD_MUL = 200; + EC_F_EC_GFP_NIST_FIELD_SQR = 201; + EC_F_EC_GFP_NIST_GROUP_SET_CURVE = 202; + EC_F_EC_GFP_SIMPLE_BLIND_COORDINATES = 287; + EC_F_EC_GFP_SIMPLE_FIELD_INV = 298; + EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT = 165; + EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE = 166; + EC_F_EC_GFP_SIMPLE_MAKE_AFFINE = 102; + EC_F_EC_GFP_SIMPLE_OCT2POINT = 103; + EC_F_EC_GFP_SIMPLE_POINT2OCT = 104; + EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE = 137; + EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES = 167; + EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES = 168; + EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES = 169; + EC_F_EC_GROUP_CHECK = 170; + EC_F_EC_GROUP_CHECK_DISCRIMINANT = 171; + EC_F_EC_GROUP_COPY = 106; + EC_F_EC_GROUP_GET_CURVE = 291; + EC_F_EC_GROUP_GET_CURVE_GF2M = 172; + EC_F_EC_GROUP_GET_CURVE_GFP = 130; + EC_F_EC_GROUP_GET_DEGREE = 173; + EC_F_EC_GROUP_GET_ECPARAMETERS = 261; + EC_F_EC_GROUP_GET_ECPKPARAMETERS = 262; + EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS = 193; + EC_F_EC_GROUP_GET_TRINOMIAL_BASIS = 194; + EC_F_EC_GROUP_NEW = 108; + EC_F_EC_GROUP_NEW_BY_CURVE_NAME = 174; + EC_F_EC_GROUP_NEW_FROM_DATA = 175; + EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS = 263; + EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS = 264; + EC_F_EC_GROUP_SET_CURVE = 292; + EC_F_EC_GROUP_SET_CURVE_GF2M = 176; + EC_F_EC_GROUP_SET_CURVE_GFP = 109; + EC_F_EC_GROUP_SET_GENERATOR = 111; + EC_F_EC_GROUP_SET_SEED = 286; + EC_F_EC_KEY_CHECK_KEY = 177; + EC_F_EC_KEY_COPY = 178; + EC_F_EC_KEY_GENERATE_KEY = 179; + EC_F_EC_KEY_NEW = 182; + EC_F_EC_KEY_NEW_METHOD = 245; + EC_F_EC_KEY_OCT2PRIV = 255; + EC_F_EC_KEY_PRINT = 180; + EC_F_EC_KEY_PRINT_FP = 181; + EC_F_EC_KEY_PRIV2BUF = 279; + EC_F_EC_KEY_PRIV2OCT = 256; + EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES = 229; + EC_F_EC_KEY_SIMPLE_CHECK_KEY = 258; + EC_F_EC_KEY_SIMPLE_OCT2PRIV = 259; + EC_F_EC_KEY_SIMPLE_PRIV2OCT = 260; + EC_F_EC_PKEY_CHECK = 273; + EC_F_EC_PKEY_PARAM_CHECK = 274; + EC_F_EC_POINTS_MAKE_AFFINE = 136; + EC_F_EC_POINTS_MUL = 290; + EC_F_EC_POINT_ADD = 112; + EC_F_EC_POINT_BN2POINT = 280; + EC_F_EC_POINT_CMP = 113; + EC_F_EC_POINT_COPY = 114; + EC_F_EC_POINT_DBL = 115; + EC_F_EC_POINT_GET_AFFINE_COORDINATES = 293; + EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M = 183; + EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP = 116; + EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP = 117; + EC_F_EC_POINT_INVERT = 210; + EC_F_EC_POINT_IS_AT_INFINITY = 118; + EC_F_EC_POINT_IS_ON_CURVE = 119; + EC_F_EC_POINT_MAKE_AFFINE = 120; + EC_F_EC_POINT_NEW = 121; + EC_F_EC_POINT_OCT2POINT = 122; + EC_F_EC_POINT_POINT2BUF = 281; + EC_F_EC_POINT_POINT2OCT = 123; + EC_F_EC_POINT_SET_AFFINE_COORDINATES = 294; + EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M = 185; + EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP = 124; + EC_F_EC_POINT_SET_COMPRESSED_COORDINATES = 295; + EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M = 186; + EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP = 125; + EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP = 126; + EC_F_EC_POINT_SET_TO_INFINITY = 127; + EC_F_EC_PRE_COMP_NEW = 196; + EC_F_EC_SCALAR_MUL_LADDER = 284; + EC_F_EC_WNAF_MUL = 187; + EC_F_EC_WNAF_PRECOMPUTE_MULT = 188; + EC_F_I2D_ECPARAMETERS = 190; + EC_F_I2D_ECPKPARAMETERS = 191; + EC_F_I2D_ECPRIVATEKEY = 192; + EC_F_I2O_ECPUBLICKEY = 151; + EC_F_NISTP224_PRE_COMP_NEW = 227; + EC_F_NISTP256_PRE_COMP_NEW = 236; + EC_F_NISTP521_PRE_COMP_NEW = 237; + EC_F_O2I_ECPUBLICKEY = 152; + EC_F_OLD_EC_PRIV_DECODE = 222; + EC_F_OSSL_ECDH_COMPUTE_KEY = 247; + EC_F_OSSL_ECDSA_SIGN_SIG = 249; + EC_F_OSSL_ECDSA_VERIFY_SIG = 250; + EC_F_PKEY_ECD_CTRL = 271; + EC_F_PKEY_ECD_DIGESTSIGN = 272; + EC_F_PKEY_ECD_DIGESTSIGN25519 = 276; + EC_F_PKEY_ECD_DIGESTSIGN448 = 277; + EC_F_PKEY_ECX_DERIVE = 269; + EC_F_PKEY_EC_CTRL = 197; + EC_F_PKEY_EC_CTRL_STR = 198; + EC_F_PKEY_EC_DERIVE = 217; + EC_F_PKEY_EC_INIT = 282; + EC_F_PKEY_EC_KDF_DERIVE = 283; + EC_F_PKEY_EC_KEYGEN = 199; + EC_F_PKEY_EC_PARAMGEN = 219; + EC_F_PKEY_EC_SIGN = 218; + EC_F_VALIDATE_ECX_DERIVE = 278; + + (* + * EC reason codes. + *) + EC_R_ASN1_ERROR = 115; + EC_R_BAD_SIGNATURE = 156; + EC_R_BIGNUM_OUT_OF_RANGE = 144; + EC_R_BUFFER_TOO_SMALL = 100; + EC_R_CANNOT_INVERT = 165; + EC_R_COORDINATES_OUT_OF_RANGE = 146; + EC_R_CURVE_DOES_NOT_SUPPORT_ECDH = 160; + EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING = 159; + EC_R_D2I_ECPKPARAMETERS_FAILURE = 117; + EC_R_DECODE_ERROR = 142; + EC_R_DISCRIMINANT_IS_ZERO = 118; + EC_R_EC_GROUP_NEW_BY_NAME_FAILURE = 119; + EC_R_FIELD_TOO_LARGE = 143; + EC_R_GF2M_NOT_SUPPORTED = 147; + EC_R_GROUP2PKPARAMETERS_FAILURE = 120; + EC_R_I2D_ECPKPARAMETERS_FAILURE = 121; + EC_R_INCOMPATIBLE_OBJECTS = 101; + EC_R_INVALID_ARGUMENT = 112; + EC_R_INVALID_COMPRESSED_POINT = 110; + EC_R_INVALID_COMPRESSION_BIT = 109; + EC_R_INVALID_CURVE = 141; + EC_R_INVALID_DIGEST = 151; + EC_R_INVALID_DIGEST_TYPE = 138; + EC_R_INVALID_ENCODING = 102; + EC_R_INVALID_FIELD = 103; + EC_R_INVALID_FORM = 104; + EC_R_INVALID_GROUP_ORDER = 122; + EC_R_INVALID_KEY = 116; + EC_R_INVALID_OUTPUT_LENGTH = 161; + EC_R_INVALID_PEER_KEY = 133; + EC_R_INVALID_PENTANOMIAL_BASIS = 132; + EC_R_INVALID_PRIVATE_KEY = 123; + EC_R_INVALID_TRINOMIAL_BASIS = 137; + EC_R_KDF_PARAMETER_ERROR = 148; + EC_R_KEYS_NOT_SET = 140; + EC_R_LADDER_POST_FAILURE = 136; + EC_R_LADDER_PRE_FAILURE = 153; + EC_R_LADDER_STEP_FAILURE = 162; + EC_R_MISSING_PARAMETERS = 124; + EC_R_MISSING_PRIVATE_KEY = 125; + EC_R_NEED_NEW_SETUP_VALUES = 157; + EC_R_NOT_A_NIST_PRIME = 135; + EC_R_NOT_IMPLEMENTED = 126; + EC_R_NOT_INITIALIZED = 111; + EC_R_NO_PARAMETERS_SET = 139; + EC_R_NO_PRIVATE_VALUE = 154; + EC_R_OPERATION_NOT_SUPPORTED = 152; + EC_R_PASSED_NULL_PARAMETER = 134; + EC_R_PEER_KEY_ERROR = 149; + EC_R_PKPARAMETERS2GROUP_FAILURE = 127; + EC_R_POINT_ARITHMETIC_FAILURE = 155; + EC_R_POINT_AT_INFINITY = 106; + EC_R_POINT_COORDINATES_BLIND_FAILURE = 163; + EC_R_POINT_IS_NOT_ON_CURVE = 107; + EC_R_RANDOM_NUMBER_GENERATION_FAILED = 158; + EC_R_SHARED_INFO_ERROR = 150; + EC_R_SLOT_FULL = 108; + EC_R_UNDEFINED_GENERATOR = 113; + EC_R_UNDEFINED_ORDER = 128; + EC_R_UNKNOWN_COFACTOR = 164; + EC_R_UNKNOWN_GROUP = 129; + EC_R_UNKNOWN_ORDER = 114; + EC_R_UNSUPPORTED_FIELD = 131; + EC_R_WRONG_CURVE_PARAMETERS = 145; + EC_R_WRONG_ORDER = 130; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_EC_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_EC_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_EC_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_EC_strings := LoadFunction('ERR_load_EC_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_EC_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_engine.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_engine.pas new file mode 100644 index 000000000..7ff22e91e --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_engine.pas @@ -0,0 +1,1448 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_engine.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_engine.h2pas + and this file regenerated. IdOpenSSLHeaders_engine.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_engine; + +interface + +// Headers for OpenSSL 1.1.1 +// engine.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_ec; + +const + (* + * These flags are used to control combinations of algorithm (methods) by + * bitwise "OR"ing. + *) + ENGINE_METHOD_RSA = TIdC_UINT($0001); + ENGINE_METHOD_DSA = TIdC_UINT($0002); + ENGINE_METHOD_DH = TIdC_UINT($0004); + ENGINE_METHOD_RAND = TIdC_UINT($0008); + ENGINE_METHOD_CIPHERS = TIdC_UINT($0040); + ENGINE_METHOD_DIGESTS = TIdC_UINT($0080); + ENGINE_METHOD_PKEY_METHS = TIdC_UINT($0200); + ENGINE_METHOD_PKEY_ASN1_METHS = TIdC_UINT($0400); + ENGINE_METHOD_EC = TIdC_UINT($0800); + (* Obvious all-or-nothing cases. *) + ENGINE_METHOD_ALL = TIdC_UINT($FFFF); + ENGINE_METHOD_NONE = TIdC_UINT($0000); + + // + // This(ese) flag(s) controls behaviour of the ENGINE_TABLE mechanism used + // internally to control registration of ENGINE implementations, and can be + // set by ENGINE_set_table_flags(). The "NOINIT" flag prevents attempts to + // initialise registered ENGINEs if they are not already initialised. + // + ENGINE_TABLE_FLAG_NOINIT = TIdC_UINT($0001); + + // + // This flag is for ENGINEs that wish to handle the various 'CMD'-related + // control commands on their own. Without this flag, ENGINE_ctrl() handles + // these control commands on behalf of the ENGINE using their "cmd_defns" + // data. + // + ENGINE_FLAGS_MANUAL_CMD_CTRL = TIdC_INT($0002); + + // + // This flag is for ENGINEs who return new duplicate structures when found + // via "ENGINE_by_id()". When an ENGINE must store state (eg. if + // ENGINE_ctrl() commands are called in sequence as part of some stateful + // process like key-generation setup and execution), it can set this flag - + // then each attempt to obtain the ENGINE will result in it being copied intoo + // a new structure. Normally, ENGINEs don't declare this flag so + // ENGINE_by_id() just increments the existing ENGINE's structural reference + // count. + // + ENGINE_FLAGS_BY_ID_COPY = TIdC_INT($0004); + + // + // This flag if for an ENGINE that does not want its methods registered as + // part of ENGINE_register_all_complete() for example if the methods are not + // usable as default methods. + // + + ENGINE_FLAGS_NO_REGISTER_ALL = TIdC_INT($0008); + + // + // ENGINEs can support their own command types, and these flags are used in + // ENGINE_CTRL_GET_CMD_FLAGS to indicate to the caller what kind of input + // each command expects. Currently only numeric and string input is + // supported. If a control command supports none of the _NUMERIC, _STRING, or + // _NO_INPUT options, then it is regarded as an "internal" control command - + // and not for use in config setting situations. As such, they're not + // available to the ENGINE_ctrl_cmd_string() function, only raw ENGINE_ctrl() + // access. Changes to this list of 'command types' should be reflected + // carefully in ENGINE_cmd_is_executable() and ENGINE_ctrl_cmd_string(). + // + + // accepts a 'long' input value (3rd parameter to ENGINE_ctrl) */ + ENGINE_CMD_FLAG_NUMERIC = TIdC_UINT($0001); + // + // accepts string input (cast from 'void*' to 'const char *', 4th parameter + // to ENGINE_ctrl) + // + ENGINE_CMD_FLAG_STRING = TIdC_UINT($0002); + // + // Indicates that the control command takes *no* input. Ie. the control + // command is unparameterised. + // + ENGINE_CMD_FLAG_NO_INPUT = TIdC_UINT($0004); + // + // Indicates that the control command is internal. This control command won't + // be shown in any output, and is only usable through the ENGINE_ctrl_cmd() + // function. + // + ENGINE_CMD_FLAG_INTERNAL = TIdC_UINT($0008); + + // + // NB: These 3 control commands are deprecated and should not be used. + // ENGINEs relying on these commands should compile conditional support for + // compatibility (eg. if these symbols are defined) but should also migrate + // the same functionality to their own ENGINE-specific control functions that + // can be "discovered" by calling applications. The fact these control + // commands wouldn't be "executable" (ie. usable by text-based config) + // doesn't change the fact that application code can find and use them + // without requiring per-ENGINE hacking. + // + + // + // These flags are used to tell the ctrl function what should be done. All + // command numbers are shared between all engines, even if some don't make + // sense to some engines. In such a case, they do nothing but return the + // error ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED. + // + ENGINE_CTRL_SET_LOGSTREAM = 1; + ENGINE_CTRL_SET_PASSWORD_CALLBACK = 2; + ENGINE_CTRL_HUP = 3;// Close and reinitialise + // any handles/connections + // etc. + ENGINE_CTRL_SET_USER_INTERFACE = 4;// Alternative to callback + ENGINE_CTRL_SET_CALLBACK_DATA = 5;// User-specific data, used + // when calling the password + // callback and the user + // interface + ENGINE_CTRL_LOAD_CONFIGURATION = 6;// Load a configuration, + // given a string that + // represents a file name + // or so + ENGINE_CTRL_LOAD_SECTION = 7;// Load data from a given + // section in the already + // loaded configuration + + // + // These control commands allow an application to deal with an arbitrary + // engine in a dynamic way. Warn: Negative return values indicate errors FOR + // THESE COMMANDS because zero is used to indicate 'end-of-list'. Other + // commands, including ENGINE-specific command types, return zero for an + // error. An ENGINE can choose to implement these ctrl functions, and can + // internally manage things however it chooses - it does so by setting the + // ENGINE_FLAGS_MANUAL_CMD_CTRL flag (using ENGINE_set_flags()). Otherwise + // the ENGINE_ctrl() code handles this on the ENGINE's behalf using the + // cmd_defns data (set using ENGINE_set_cmd_defns()). This means an ENGINE's + // ctrl() handler need only implement its own commands - the above "meta" + // commands will be taken care of. + // + + // + // Returns non-zero if the supplied ENGINE has a ctrl() handler. If "not", + // then all the remaining control commands will return failure, so it is + // worth checking this first if the caller is trying to "discover" the + // engine's capabilities and doesn't want errors generated unnecessarily. + // + ENGINE_CTRL_HAS_CTRL_FUNCTION = 10; + // + // Returns a positive command number for the first command supported by the + // engine. Returns zero if no ctrl commands are supported. + // + ENGINE_CTRL_GET_FIRST_CMD_TYPE = 11; + // + // The 'long' argument specifies a command implemented by the engine, and the + // return value is the next command supported, or zero if there are no more. + // + ENGINE_CTRL_GET_NEXT_CMD_TYPE = 12; + // + // The 'void*' argument is a command name (cast from 'const char *'), and the + // return value is the command that corresponds to it. + // + ENGINE_CTRL_GET_CMD_FROM_NAME = 13; + // + // The next two allow a command to be converted into its corresponding string + // form. In each case, the 'long' argument supplies the command. In the + // NAME_LEN case, the return value is the length of the command name (not + // counting a trailing EOL). In the NAME case, the 'void*' argument must be a + // string buffer large enough, and it will be populated with the name of the + // command (WITH a trailing EOL). + // + ENGINE_CTRL_GET_NAME_LEN_FROM_CMD = 14; + ENGINE_CTRL_GET_NAME_FROM_CMD = 15; + // The next two are similar but give a "short description" of a command. */ + ENGINE_CTRL_GET_DESC_LEN_FROM_CMD = 16; + ENGINE_CTRL_GET_DESC_FROM_CMD = 17; + // + // With this command, the return value is the OR'd combination of + // ENGINE_CMD_FLAG_*** values that indicate what kind of input a given + // engine-specific ctrl command expects. + // + ENGINE_CTRL_GET_CMD_FLAGS = 18; + + // + // ENGINE implementations should start the numbering of their own control + // commands from this value. (ie. ENGINE_CMD_BASE, ENGINE_CMD_BASE += 1, etc). + // + ENGINE_CMD_BASE = 200; + + // + // NB: These 2 nCipher "chil" control commands are deprecated, and their + // functionality is now available through ENGINE-specific control commands + // (exposed through the above-mentioned 'CMD'-handling). Code using these 2 + // commands should be migrated to the more general command handling before + // these are removed. + // + + // Flags specific to the nCipher "chil" engine */ + ENGINE_CTRL_CHIL_SET_FORKCHECK = 100; + // + // Depending on the value of the (long)i argument, this sets or + // unsets the SimpleForkCheck flag in the CHIL API to enable or + // disable checking and workarounds for applications that fork(). + // + ENGINE_CTRL_CHIL_NO_LOCKING = 101; + // + // This prevents the initialisation function from providing mutex + // callbacks to the nCipher library. + // + +type + // + // If an ENGINE supports its own specific control commands and wishes the + // framework to handle the above 'ENGINE_CMD_***'-manipulation commands on + // its behalf, it should supply a null-terminated array of ENGINE_CMD_DEFN + // entries to ENGINE_set_cmd_defns(). It should also implement a ctrl() + // handler that supports the stated commands (ie. the "cmd_num" entries as + // described by the array). NB: The array must be ordered in increasing order + // of cmd_num. "null-terminated" means that the last ENGINE_CMD_DEFN element + // has cmd_num set to zero and/or cmd_name set to NULL. + // + ENGINE_CMD_DEFN_st = record + cmd_num: TIdC_UINT; + cmd_name: PIdAnsiChar; + cmd_desc: PIdAnsiChar; + cmd_flags: TIdC_UINT; + end; + ENGINE_CMD_DEFN = ENGINE_CMD_DEFN_st; + PENGINE_CMD_DEFN = ^ENGINE_CMD_DEFN; + + // Generic function pointer */ + ENGINE_GEN_FUNC_PTR = function: TIdC_INT; cdecl; + // Generic function pointer taking no arguments */ + ENGINE_GEN_INT_FUNC_PTR = function(v1: PENGINE): TIdC_INT; cdecl; + // Specific control function pointer */ + f = procedure; cdecl; + ENGINE_CTRL_FUNC_PTR = function(v1: PENGINE; v2: TIdC_INT; v3: TIdC_LONG; v4: Pointer; v5: f): TIdC_INT; cdecl; + // Generic load_key function pointer */ + ENGINE_LOAD_KEY_PTR = function(v1: PENGINE; const v2: PIdAnsiChar; + ui_method: PUI_METHOD; callback_data: Pointer): PEVP_PKEY; cdecl; + //ENGINE_SSL_CLIENT_CERT_PTR = function(v1: PENGINE; ssl: PSSL; + // {STACK_OF(X509_NAME) *ca_dn;} pcert: PPX509; pkey: PPEVP_PKEY; + // {STACK_OF(X509) **pother;} ui_method: PUI_METHOD; callback_data: Pointer): TIdC_INT; cdecl; + + // + // These callback types are for an ENGINE's handler for cipher and digest logic. + // These handlers have these prototypes; + // int foo(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid); + // int foo(ENGINE *e, const EVP_MD **digest, const int **nids, int nid); + // Looking at how to implement these handlers in the case of cipher support, if + // the framework wants the EVP_CIPHER for 'nid', it will call; + // foo(e, &p_evp_cipher, NULL, nid); (return zero for failure) + // If the framework wants a list of supported 'nid's, it will call; + // foo(e, NULL, &p_nids, 0); (returns number of 'nids' or -1 for error) + // + // + // Returns to a pointer to the array of supported cipher 'nid's. If the + // second parameter is non-NULL it is set to the size of the returned array. + // + ENGINE_CIPHERS_PTR = function(v1: PENGINE; const v2: PPEVP_CIPHER; + const v3: PPIdC_INT; v4: TIdC_INT): TIdC_INT; cdecl; + ENGINE_DIGESTS_PTR = function(v1: PENGINE; const v2: PPEVP_MD; + const v3: PPIdC_INT; v4: TIdC_INT): TIdC_INT; cdecl; + ENGINE_PKEY_METHS_PTR = function(v1: PENGINE; v2: PPEVP_PKEY_METHOD; + const v3: PPIdC_INT; v4: TIdC_INT): TIdC_INT; cdecl; + ENGINE_PKEY_ASN1_METHS_PTR = function(v1: PENGINE; v2: PPEVP_PKEY_ASN1_METHOD; + const v3: PPIdC_INT; v4: TIdC_INT): TIdC_INT; cdecl; + + dyn_MEM_malloc_fn = function(v1: TIdC_SIZET; const v2: PIdAnsiChar; v3: TIdC_INT): Pointer; cdecl; + dyn_MEM_realloc_fn = function(v1: Pointer; v2: TIdC_SIZET; const v3: PIdAnsiChar; v4: TIdC_INT): Pointer; cdecl; + dyn_MEM_free_fn = procedure(v1: Pointer; const v2: PIdAnsiChar; v3: TIdC_INT); cdecl; + + st_dynamic_MEM_fns = record + malloc_fn: dyn_MEM_malloc_fn; + realloc_fn: dyn_MEM_realloc_fn; + free_fn: dyn_MEM_free_fn; + end; + dynamic_MEM_fns = st_dynamic_MEM_fns; + + //* + // * FIXME: Perhaps the memory and locking code (crypto.h) should declare and + // * use these types so we (and any other dependent code) can simplify a bit?? + // */ + //* The top-level structure */ + st_dynamic_fns = record + static_state: Pointer; + mem_fns: dynamic_MEM_fns; + end; + dynamic_fns = st_dynamic_fns; + + //* + // * The version checking function should be of this prototype. NB: The + // * ossl_version value passed in is the OSSL_DYNAMIC_VERSION of the loading + // * code. If this function returns zero, it indicates a (potential) version + // * incompatibility and the loaded library doesn't believe it can proceed. + // * Otherwise, the returned value is the (latest) version supported by the + // * loading library. The loader may still decide that the loaded code's + // * version is unsatisfactory and could veto the load. The function is + // * expected to be implemented with the symbol name "v_check", and a default + // * implementation can be fully instantiated with + // * IMPLEMENT_DYNAMIC_CHECK_FN(). + // */ + dynamic_v_check_fn = function(ossl_version: TIdC_ULONG): TIdC_ULONG; cdecl; + //# define IMPLEMENT_DYNAMIC_CHECK_FN() \ + // OPENSSL_EXPORT unsigned long v_check(unsigned long v); \ + // OPENSSL_EXPORT unsigned long v_check(unsigned long v) { \ + // if (v >= OSSL_DYNAMIC_OLDEST) return OSSL_DYNAMIC_VERSION; \ + // return 0; } + + //* + // * This function is passed the ENGINE structure to initialise with its own + // * function and command settings. It should not adjust the structural or + // * functional reference counts. If this function returns zero, (a) the load + // * will be aborted, (b) the previous ENGINE state will be memcpy'd back onto + // * the structure, and (c) the shared library will be unloaded. So + // * implementations should do their own internal cleanup in failure + // * circumstances otherwise they could leak. The 'id' parameter, if non-NULL, + // * represents the ENGINE id that the loader is looking for. If this is NULL, + // * the shared library can choose to return failure or to initialise a + // * 'default' ENGINE. If non-NULL, the shared library must initialise only an + // * ENGINE matching the passed 'id'. The function is expected to be + // * implemented with the symbol name "bind_engine". A standard implementation + // * can be instantiated with IMPLEMENT_DYNAMIC_BIND_FN(fn) where the parameter + // * 'fn' is a callback function that populates the ENGINE structure and + // * returns an int value (zero for failure). 'fn' should have prototype; + // * [static] int fn(ENGINE *e, const char *id); + // */ + dynamic_bind_engine = function(e: PENGINE; const id: PIdAnsiChar; + const fns: dynamic_fns): TIdC_INT; cdecl; + + // + // STRUCTURE functions ... all of these functions deal with pointers to + // ENGINE structures where the pointers have a "structural reference". This + // means that their reference is to allowed access to the structure but it + // does not imply that the structure is functional. To simply increment or + // decrement the structural reference count, use ENGINE_by_id and + // ENGINE_free. NB: This is not required when iterating using ENGINE_get_next + // as it will automatically decrement the structural reference count of the + // "current" ENGINE and increment the structural reference count of the + // ENGINE it returns (unless it is NULL). + // + // Get the first/last "ENGINE" type available. */ + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ENGINE_get_first} + {$EXTERNALSYM ENGINE_get_last} + {$EXTERNALSYM ENGINE_get_next} + {$EXTERNALSYM ENGINE_get_prev} + {$EXTERNALSYM ENGINE_add} + {$EXTERNALSYM ENGINE_remove} + {$EXTERNALSYM ENGINE_by_id} + {$EXTERNALSYM ENGINE_load_builtin_engines} + {$EXTERNALSYM ENGINE_get_table_flags} + {$EXTERNALSYM ENGINE_set_table_flags} + {$EXTERNALSYM ENGINE_register_RSA} + {$EXTERNALSYM ENGINE_unregister_RSA} + {$EXTERNALSYM ENGINE_register_all_RSA} + {$EXTERNALSYM ENGINE_register_DSA} + {$EXTERNALSYM ENGINE_unregister_DSA} + {$EXTERNALSYM ENGINE_register_all_DSA} + {$EXTERNALSYM ENGINE_register_EC} + {$EXTERNALSYM ENGINE_unregister_EC} + {$EXTERNALSYM ENGINE_register_all_EC} + {$EXTERNALSYM ENGINE_register_DH} + {$EXTERNALSYM ENGINE_unregister_DH} + {$EXTERNALSYM ENGINE_register_all_DH} + {$EXTERNALSYM ENGINE_register_RAND} + {$EXTERNALSYM ENGINE_unregister_RAND} + {$EXTERNALSYM ENGINE_register_all_RAND} + {$EXTERNALSYM ENGINE_register_ciphers} + {$EXTERNALSYM ENGINE_unregister_ciphers} + {$EXTERNALSYM ENGINE_register_all_ciphers} + {$EXTERNALSYM ENGINE_register_digests} + {$EXTERNALSYM ENGINE_unregister_digests} + {$EXTERNALSYM ENGINE_register_all_digests} + {$EXTERNALSYM ENGINE_register_pkey_meths} + {$EXTERNALSYM ENGINE_unregister_pkey_meths} + {$EXTERNALSYM ENGINE_register_all_pkey_meths} + {$EXTERNALSYM ENGINE_register_pkey_asn1_meths} + {$EXTERNALSYM ENGINE_unregister_pkey_asn1_meths} + {$EXTERNALSYM ENGINE_register_all_pkey_asn1_meths} + {$EXTERNALSYM ENGINE_register_complete} + {$EXTERNALSYM ENGINE_register_all_complete} + {$EXTERNALSYM ENGINE_ctrl} + {$EXTERNALSYM ENGINE_cmd_is_executable} + {$EXTERNALSYM ENGINE_ctrl_cmd} + {$EXTERNALSYM ENGINE_ctrl_cmd_string} + {$EXTERNALSYM ENGINE_new} + {$EXTERNALSYM ENGINE_free} + {$EXTERNALSYM ENGINE_up_ref} + {$EXTERNALSYM ENGINE_set_id} + {$EXTERNALSYM ENGINE_set_name} + {$EXTERNALSYM ENGINE_set_RSA} + {$EXTERNALSYM ENGINE_set_DSA} + {$EXTERNALSYM ENGINE_set_EC} + {$EXTERNALSYM ENGINE_set_DH} + {$EXTERNALSYM ENGINE_set_RAND} + {$EXTERNALSYM ENGINE_set_destroy_function} + {$EXTERNALSYM ENGINE_set_init_function} + {$EXTERNALSYM ENGINE_set_finish_function} + {$EXTERNALSYM ENGINE_set_ctrl_function} + {$EXTERNALSYM ENGINE_set_load_privkey_function} + {$EXTERNALSYM ENGINE_set_load_pubkey_function} + {$EXTERNALSYM ENGINE_set_ciphers} + {$EXTERNALSYM ENGINE_set_digests} + {$EXTERNALSYM ENGINE_set_pkey_meths} + {$EXTERNALSYM ENGINE_set_pkey_asn1_meths} + {$EXTERNALSYM ENGINE_set_flags} + {$EXTERNALSYM ENGINE_set_cmd_defns} + {$EXTERNALSYM ENGINE_set_ex_data} + {$EXTERNALSYM ENGINE_get_ex_data} + {$EXTERNALSYM ENGINE_get_id} + {$EXTERNALSYM ENGINE_get_name} + {$EXTERNALSYM ENGINE_get_RSA} + {$EXTERNALSYM ENGINE_get_DSA} + {$EXTERNALSYM ENGINE_get_EC} + {$EXTERNALSYM ENGINE_get_DH} + {$EXTERNALSYM ENGINE_get_RAND} + {$EXTERNALSYM ENGINE_get_destroy_function} + {$EXTERNALSYM ENGINE_get_init_function} + {$EXTERNALSYM ENGINE_get_finish_function} + {$EXTERNALSYM ENGINE_get_ctrl_function} + {$EXTERNALSYM ENGINE_get_load_privkey_function} + {$EXTERNALSYM ENGINE_get_load_pubkey_function} + {$EXTERNALSYM ENGINE_get_ciphers} + {$EXTERNALSYM ENGINE_get_digests} + {$EXTERNALSYM ENGINE_get_pkey_meths} + {$EXTERNALSYM ENGINE_get_pkey_asn1_meths} + {$EXTERNALSYM ENGINE_get_cipher} + {$EXTERNALSYM ENGINE_get_digest} + {$EXTERNALSYM ENGINE_get_pkey_meth} + {$EXTERNALSYM ENGINE_get_pkey_asn1_meth} + {$EXTERNALSYM ENGINE_get_pkey_asn1_meth_str} + {$EXTERNALSYM ENGINE_pkey_asn1_find_str} + {$EXTERNALSYM ENGINE_get_cmd_defns} + {$EXTERNALSYM ENGINE_get_flags} + {$EXTERNALSYM ENGINE_init} + {$EXTERNALSYM ENGINE_finish} + {$EXTERNALSYM ENGINE_load_private_key} + {$EXTERNALSYM ENGINE_load_public_key} + {$EXTERNALSYM ENGINE_get_default_RSA} + {$EXTERNALSYM ENGINE_get_default_DSA} + {$EXTERNALSYM ENGINE_get_default_EC} + {$EXTERNALSYM ENGINE_get_default_DH} + {$EXTERNALSYM ENGINE_get_default_RAND} + {$EXTERNALSYM ENGINE_get_cipher_engine} + {$EXTERNALSYM ENGINE_get_digest_engine} + {$EXTERNALSYM ENGINE_get_pkey_meth_engine} + {$EXTERNALSYM ENGINE_get_pkey_asn1_meth_engine} + {$EXTERNALSYM ENGINE_set_default_RSA} + {$EXTERNALSYM ENGINE_set_default_string} + {$EXTERNALSYM ENGINE_set_default_DSA} + {$EXTERNALSYM ENGINE_set_default_EC} + {$EXTERNALSYM ENGINE_set_default_DH} + {$EXTERNALSYM ENGINE_set_default_RAND} + {$EXTERNALSYM ENGINE_set_default_ciphers} + {$EXTERNALSYM ENGINE_set_default_digests} + {$EXTERNALSYM ENGINE_set_default_pkey_meths} + {$EXTERNALSYM ENGINE_set_default_pkey_asn1_meths} + {$EXTERNALSYM ENGINE_set_default} + {$EXTERNALSYM ENGINE_add_conf_module} + {$EXTERNALSYM ENGINE_get_static_state} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ENGINE_get_first: function: PENGINE; cdecl = nil; + ENGINE_get_last: function: PENGINE; cdecl = nil; + ENGINE_get_next: function(e: PENGINE): PENGINE; cdecl = nil; + ENGINE_get_prev: function(e: PENGINE): PENGINE; cdecl = nil; + ENGINE_add: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_remove: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_by_id: function(const id: PIdAnsiChar): PENGINE; cdecl = nil; + + ENGINE_load_builtin_engines: procedure; cdecl = nil; + + // + // Get and set global flags (ENGINE_TABLE_FLAG_***) for the implementation + // "registry" handling. + // + ENGINE_get_table_flags: function: TIdC_UINT; cdecl = nil; + ENGINE_set_table_flags: procedure(flags: TIdC_UINT); cdecl = nil; + + //- Manage registration of ENGINEs per "table". For each type, there are 3 + // functions; + // ENGINE_register_***(e) - registers the implementation from 'e' (if it has one) + // ENGINE_unregister_***(e) - unregister the implementation from 'e' + // ENGINE_register_all_***() - call ENGINE_register_***() for each 'e' in the list + // Cleanup is automatically registered from each table when required. + // + + ENGINE_register_RSA: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_unregister_RSA: procedure(e: PENGINE); cdecl = nil; + ENGINE_register_all_RSA: procedure; cdecl = nil; + + ENGINE_register_DSA: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_unregister_DSA: procedure(e: PENGINE); cdecl = nil; + ENGINE_register_all_DSA: procedure; cdecl = nil; + + ENGINE_register_EC: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_unregister_EC: procedure(e: PENGINE); cdecl = nil; + ENGINE_register_all_EC: procedure; cdecl = nil; + + ENGINE_register_DH: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_unregister_DH: procedure(e: PENGINE); cdecl = nil; + ENGINE_register_all_DH: procedure; cdecl = nil; + + ENGINE_register_RAND: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_unregister_RAND: procedure(e: PENGINE); cdecl = nil; + ENGINE_register_all_RAND: procedure; cdecl = nil; + + ENGINE_register_ciphers: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_unregister_ciphers: procedure(e: PENGINE); cdecl = nil; + ENGINE_register_all_ciphers: procedure; cdecl = nil; + + ENGINE_register_digests: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_unregister_digests: procedure(e: PENGINE); cdecl = nil; + ENGINE_register_all_digests: procedure; cdecl = nil; + + ENGINE_register_pkey_meths: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_unregister_pkey_meths: procedure(e: PENGINE); cdecl = nil; + ENGINE_register_all_pkey_meths: procedure; cdecl = nil; + + ENGINE_register_pkey_asn1_meths: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_unregister_pkey_asn1_meths: procedure(e: PENGINE); cdecl = nil; + ENGINE_register_all_pkey_asn1_meths: procedure; cdecl = nil; + + // + // These functions register all support from the above categories. Note, use + // of these functions can result in static linkage of code your application + // may not need. If you only need a subset of functionality, consider using + // more selective initialisation. + // + ENGINE_register_complete: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_register_all_complete: function: TIdC_INT; cdecl = nil; + + // + // Send parameterised control commands to the engine. The possibilities to + // send down an integer, a pointer to data or a function pointer are + // provided. Any of the parameters may or may not be NULL, depending on the + // command number. In actuality, this function only requires a structural + // (rather than functional) reference to an engine, but many control commands + // may require the engine be functional. The caller should be aware of trying + // commands that require an operational ENGINE, and only use functional + // references in such situations. + // + ENGINE_ctrl: function(e: PENGINE; cmd: TIdC_INT; i: TIdC_LONG; p: Pointer; v1: f): TIdC_INT; cdecl = nil; + + // + // This function tests if an ENGINE-specific command is usable as a + // "setting". Eg. in an application's config file that gets processed through + // ENGINE_ctrl_cmd_string(). If this returns zero, it is not available to + // ENGINE_ctrl_cmd_string(), only ENGINE_ctrl(). + // + ENGINE_cmd_is_executable: function(e: PENGINE; cmd: TIdC_INT): TIdC_INT; cdecl = nil; + + // + // This function works like ENGINE_ctrl() with the exception of taking a + // command name instead of a command number, and can handle optional + // commands. See the comment on ENGINE_ctrl_cmd_string() for an explanation + // on how to use the cmd_name and cmd_optional. + // + ENGINE_ctrl_cmd: function(e: PENGINE; const cmd_name: PIdAnsiChar; i: TIdC_LONG; p: Pointer; v1: f; cmd_optional: TIdC_INT): TIdC_INT; cdecl = nil; + + // + // This function passes a command-name and argument to an ENGINE. The + // cmd_name is converted to a command number and the control command is + // called using 'arg' as an argument (unless the ENGINE doesn't support such + // a command, in which case no control command is called). The command is + // checked for input flags, and if necessary the argument will be converted + // to a numeric value. If cmd_optional is non-zero, then if the ENGINE + // doesn't support the given cmd_name the return value will be success + // anyway. This function is intended for applications to use so that users + // (or config files) can supply engine-specific config data to the ENGINE at + // run-time to control behaviour of specific engines. As such, it shouldn't + // be used for calling ENGINE_ctrl() functions that return data, deal with + // binary data, or that are otherwise supposed to be used directly through + // ENGINE_ctrl() in application code. Any "return" data from an ENGINE_ctrl() + // operation in this function will be lost - the return value is interpreted + // as failure if the return value is zero, success otherwise, and this + // function returns a boolean value as a result. In other words, vendors of + // 'ENGINE'-enabled devices should write ENGINE implementations with + // parameterisations that work in this scheme, so that compliant ENGINE-based + // applications can work consistently with the same configuration for the + // same ENGINE-enabled devices, across applications. + // + ENGINE_ctrl_cmd_string: function(e: PENGINE; const cmd_name: PIdAnsiChar; const arg: PIdAnsiChar; cmd_optional: TIdC_INT): TIdC_INT; cdecl = nil; + + // + // These functions are useful for manufacturing new ENGINE structures. They + // don't address reference counting at all - one uses them to populate an + // ENGINE structure with personalised implementations of things prior to + // using it directly or adding it to the builtin ENGINE list in OpenSSL. + // These are also here so that the ENGINE structure doesn't have to be + // exposed and break binary compatibility! + // + ENGINE_new: function: PENGINE; cdecl = nil; + ENGINE_free: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_up_ref: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_set_id: function(e: PENGINE; const id: PIdAnsiChar): TIdC_INT; cdecl = nil; + ENGINE_set_name: function(e: PENGINE; const name: PIdAnsiChar): TIdC_INT; cdecl = nil; + ENGINE_set_RSA: function(e: PENGINE; const rsa_meth: PRSA_METHOD): TIdC_INT; cdecl = nil; + ENGINE_set_DSA: function(e: PENGINE; const dsa_meth: PDSA_METHOD): TIdC_INT; cdecl = nil; + ENGINE_set_EC: function(e: PENGINE; const ecdsa_meth: PEC_KEY_METHOD): TIdC_INT; cdecl = nil; + ENGINE_set_DH: function(e: PENGINE; const dh_meth: PDH_METHOD): TIdC_INT; cdecl = nil; + ENGINE_set_RAND: function(e: PENGINE; const rand_meth: PRAND_METHOD): TIdC_INT; cdecl = nil; + ENGINE_set_destroy_function: function(e: PENGINE; destroy_f: ENGINE_GEN_INT_FUNC_PTR): TIdC_INT; cdecl = nil; + ENGINE_set_init_function: function(e: PENGINE; init_f: ENGINE_GEN_INT_FUNC_PTR): TIdC_INT; cdecl = nil; + ENGINE_set_finish_function: function(e: PENGINE; finish_f: ENGINE_GEN_INT_FUNC_PTR): TIdC_INT; cdecl = nil; + ENGINE_set_ctrl_function: function(e: PENGINE; ctrl_f: ENGINE_CTRL_FUNC_PTR): TIdC_INT; cdecl = nil; + ENGINE_set_load_privkey_function: function(e: PENGINE; loadpriv_f: ENGINE_LOAD_KEY_PTR): TIdC_INT; cdecl = nil; + ENGINE_set_load_pubkey_function: function(e: PENGINE; loadpub_f: ENGINE_LOAD_KEY_PTR): TIdC_INT; cdecl = nil; + //function ENGINE_set_load_ssl_client_cert_function(e: PENGINE; loadssl_f: ENGINE_SSL_CLIENT_CERT_PTR): TIdC_INT; + ENGINE_set_ciphers: function(e: PENGINE; f: ENGINE_CIPHERS_PTR): TIdC_INT; cdecl = nil; + ENGINE_set_digests: function(e: PENGINE; f: ENGINE_DIGESTS_PTR): TIdC_INT; cdecl = nil; + ENGINE_set_pkey_meths: function(e: PENGINE; f: ENGINE_PKEY_METHS_PTR): TIdC_INT; cdecl = nil; + ENGINE_set_pkey_asn1_meths: function(e: PENGINE; f: ENGINE_PKEY_ASN1_METHS_PTR): TIdC_INT; cdecl = nil; + ENGINE_set_flags: function(e: PENGINE; flags: TIdC_INT): TIdC_INT; cdecl = nil; + ENGINE_set_cmd_defns: function(e: PENGINE; const defns: PENGINE_CMD_DEFN): TIdC_INT; cdecl = nil; + // These functions allow control over any per-structure ENGINE data. */ + //#define ENGINE_get_ex_new_index(l, p, newf, dupf, freef) CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_ENGINE, l, p, newf, dupf, freef) + ENGINE_set_ex_data: function(e: PENGINE; idx: TIdC_INT; arg: Pointer): TIdC_INT; cdecl = nil; + ENGINE_get_ex_data: function(const e: PENGINE; idx: TIdC_INT): Pointer; cdecl = nil; + + // + // These return values from within the ENGINE structure. These can be useful + // with functional references as well as structural references - it depends + // which you obtained. Using the result for functional purposes if you only + // obtained a structural reference may be problematic! + // + ENGINE_get_id: function(const e: PENGINE): PIdAnsiChar; cdecl = nil; + ENGINE_get_name: function(const e: PENGINE): PIdAnsiChar; cdecl = nil; + ENGINE_get_RSA: function(const e: PENGINE): PRSA_METHOD; cdecl = nil; + ENGINE_get_DSA: function(const e: PENGINE): PDSA_METHOD; cdecl = nil; + ENGINE_get_EC: function(const e: PENGINE): PEC_METHOD; cdecl = nil; + ENGINE_get_DH: function(const e: PENGINE): PDH_METHOD; cdecl = nil; + ENGINE_get_RAND: function(const e: PENGINE): PRAND_METHOD; cdecl = nil; + ENGINE_get_destroy_function: function(const e: PENGINE): ENGINE_GEN_INT_FUNC_PTR; cdecl = nil; + ENGINE_get_init_function: function(const e: PENGINE): ENGINE_GEN_INT_FUNC_PTR; cdecl = nil; + ENGINE_get_finish_function: function(const e: PENGINE): ENGINE_GEN_INT_FUNC_PTR; cdecl = nil; + ENGINE_get_ctrl_function: function(const e: PENGINE): ENGINE_CTRL_FUNC_PTR; cdecl = nil; + ENGINE_get_load_privkey_function: function(const e: PENGINE): ENGINE_LOAD_KEY_PTR; cdecl = nil; + ENGINE_get_load_pubkey_function: function(const e: PENGINE): ENGINE_LOAD_KEY_PTR; cdecl = nil; + //function ENGINE_get_ssl_client_cert_function(const e: PENGINE): ENGINE_SSL_CLIENT_CERT_PTR; + + ENGINE_get_ciphers: function(const e: PENGINE): ENGINE_CIPHERS_PTR; cdecl = nil; + ENGINE_get_digests: function(const e: PENGINE): ENGINE_DIGESTS_PTR; cdecl = nil; + ENGINE_get_pkey_meths: function(const e: PENGINE): ENGINE_PKEY_METHS_PTR; cdecl = nil; + ENGINE_get_pkey_asn1_meths: function(const e: PENGINE): ENGINE_PKEY_ASN1_METHS_PTR; cdecl = nil; + ENGINE_get_cipher: function(e: PENGINE; nid: TIdC_INT): PEVP_CIPHER; cdecl = nil; + ENGINE_get_digest: function(e: PENGINE; nid: TIdC_INT): PEVP_MD; cdecl = nil; + ENGINE_get_pkey_meth: function(e: PENGINE; nid: TIdC_INT): PEVP_PKEY_METHOD; cdecl = nil; + ENGINE_get_pkey_asn1_meth: function(e: PENGINE; nid: TIdC_INT): PEVP_PKEY_ASN1_METHOD; cdecl = nil; + ENGINE_get_pkey_asn1_meth_str: function(e: PENGINE; const str: PIdAnsiChar; len: TIdC_INT): PEVP_PKEY_ASN1_METHOD; cdecl = nil; + ENGINE_pkey_asn1_find_str: function(pe: PPENGINE; const str: PIdAnsiChar; len: TIdC_INT): PEVP_PKEY_ASN1_METHOD; cdecl = nil; + ENGINE_get_cmd_defns: function(const e: PENGINE): PENGINE_CMD_DEFN; cdecl = nil; + ENGINE_get_flags: function(const e: PENGINE): TIdC_INT; cdecl = nil; + + ///* + // * FUNCTIONAL functions. These functions deal with ENGINE structures that + // * have (or will) be initialised for use. Broadly speaking, the structural + // * functions are useful for iterating the list of available engine types, + // * creating new engine types, and other "list" operations. These functions + // * actually deal with ENGINEs that are to be used. As such these functions + // * can fail (if applicable) when particular engines are unavailable - eg. if + // * a hardware accelerator is not attached or not functioning correctly. Each + // * ENGINE has 2 reference counts; structural and functional. Every time a + // * functional reference is obtained or released, a corresponding structural + // * reference is automatically obtained or released too. + // */ + + ///* + // * Initialise a engine type for use (or up its reference count if it's + // * already in use). This will fail if the engine is not currently operational + // * and cannot initialise. + // */ + ENGINE_init: function(e: PENGINE): TIdC_INT; cdecl = nil; + ///* + // * Free a functional reference to a engine type. This does not require a + // * corresponding call to ENGINE_free as it also releases a structural + // * reference. + // */ + ENGINE_finish: function(e: PENGINE): TIdC_INT; cdecl = nil; + + ///* + // * The following functions handle keys that are stored in some secondary + // * location, handled by the engine. The storage may be on a card or + // * whatever. + // */ + ENGINE_load_private_key: function(e: PENGINE; const key_id: PIdAnsiChar; ui_method: PUI_METHOD; callback_data: Pointer): PEVP_PKEY; cdecl = nil; + ENGINE_load_public_key: function(e: PENGINE; const key_id: PIdAnsiChar; ui_method: PUI_METHOD; callback_data: Pointer): PEVP_PKEY; cdecl = nil; + //function ENGINE_load_ssl_client_cert(e: PENGINE; s: PSSL; + // {STACK_OF(X509) *ca_dn;} {STACK_OF(X509) **pother;} ui_method: PUI_METHOD; + // callback_data: Pointer): TIdC_INT; + + ///* + // * This returns a pointer for the current ENGINE structure that is (by + // * default) performing any RSA operations. The value returned is an + // * incremented reference, so it should be free'd (ENGINE_finish) before it is + // * discarded. + // */ + ENGINE_get_default_RSA: function: PENGINE; cdecl = nil; + //* Same for the other "methods" */ + ENGINE_get_default_DSA: function: PENGINE; cdecl = nil; + ENGINE_get_default_EC: function: PENGINE; cdecl = nil; + ENGINE_get_default_DH: function: PENGINE; cdecl = nil; + ENGINE_get_default_RAND: function: PENGINE; cdecl = nil; + ///* + // * These functions can be used to get a functional reference to perform + // * ciphering or digesting corresponding to "nid". + // */ + ENGINE_get_cipher_engine: function(nid: TIdC_INT): PENGINE; cdecl = nil; + ENGINE_get_digest_engine: function(nid: TIdC_INT): PENGINE; cdecl = nil; + ENGINE_get_pkey_meth_engine: function(nid: TIdC_INT): PENGINE; cdecl = nil; + ENGINE_get_pkey_asn1_meth_engine: function(nid: TIdC_INT): PENGINE; cdecl = nil; + ///* + // * This sets a new default ENGINE structure for performing RSA operations. If + // * the result is non-zero (success) then the ENGINE structure will have had + // * its reference count up'd so the caller should still free their own + // * reference 'e'. + // */ + ENGINE_set_default_RSA: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_set_default_string: function(e: PENGINE; const def_list: PIdAnsiChar): TIdC_INT; cdecl = nil; + // Same for the other "methods" + ENGINE_set_default_DSA: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_set_default_EC: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_set_default_DH: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_set_default_RAND: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_set_default_ciphers: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_set_default_digests: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_set_default_pkey_meths: function(e: PENGINE): TIdC_INT; cdecl = nil; + ENGINE_set_default_pkey_asn1_meths: function(e: PENGINE): TIdC_INT; cdecl = nil; + + ///* + // * The combination "set" - the flags are bitwise "OR"d from the + // * ENGINE_METHOD_*** defines above. As with the "ENGINE_register_complete()" + // * function, this function can result in unnecessary static linkage. If your + // * application requires only specific functionality, consider using more + // * selective functions. + // */ + ENGINE_set_default: function(e: PENGINE; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + + ENGINE_add_conf_module: procedure; cdecl = nil; + + ///* Deprecated functions ... */ + ///* int ENGINE_clear_defaults(void); */ + // + //**************************/ + //* DYNAMIC ENGINE SUPPORT */ + //**************************/ + // + //* Binary/behaviour compatibility levels */ + //# define OSSL_DYNAMIC_VERSION (unsigned long)0x00030000 + //* + // * Binary versions older than this are too old for us (whether we're a loader + // * or a loadee) + // */ + //# define OSSL_DYNAMIC_OLDEST (unsigned long)0x00030000 + // + //* + // * When compiling an ENGINE entirely as an external shared library, loadable + // * by the "dynamic" ENGINE, these types are needed. The 'dynamic_fns' + // * structure type provides the calling application's (or library's) error + // * functionality and memory management function pointers to the loaded + // * library. These should be used/set in the loaded library code so that the + // * loading application's 'state' will be used/changed in all operations. The + // * 'static_state' pointer allows the loaded library to know if it shares the + // * same static data as the calling application (or library), and thus whether + // * these callbacks need to be set or not. + // */ + + + //# define IMPLEMENT_DYNAMIC_BIND_FN(fn) \ + // OPENSSL_EXPORT \ + // int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); \ + // OPENSSL_EXPORT \ + // int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { \ + // if (ENGINE_get_static_state() == fns->static_state) goto skip_cbs; \ + // CRYPTO_set_mem_functions(fns->mem_fns.malloc_fn, \ + // fns->mem_fns.realloc_fn, \ + // fns->mem_fns.free_fn); \ + // skip_cbs: \ + // if (!fn(e, id)) return 0; \ + // return 1; } + // + //* + // * If the loading application (or library) and the loaded ENGINE library + // * share the same static data (eg. they're both dynamically linked to the + // * same libcrypto.so) we need a way to avoid trying to set system callbacks - + // * this would fail, and for the same reason that it's unnecessary to try. If + // * the loaded ENGINE has (or gets from through the loader) its own copy of + // * the libcrypto static data, we will need to set the callbacks. The easiest + // * way to detect this is to have a function that returns a pointer to some + // * static data and let the loading application and loaded ENGINE compare + // * their respective values. + // */ + ENGINE_get_static_state: function: Pointer; cdecl = nil; + +{$ELSE} + function ENGINE_get_first: PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_last: PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_next(e: PENGINE): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_prev(e: PENGINE): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_add(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_remove(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_by_id(const id: PIdAnsiChar): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure ENGINE_load_builtin_engines cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // + // Get and set global flags (ENGINE_TABLE_FLAG_***) for the implementation + // "registry" handling. + // + function ENGINE_get_table_flags: TIdC_UINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_set_table_flags(flags: TIdC_UINT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //- Manage registration of ENGINEs per "table". For each type, there are 3 + // functions; + // ENGINE_register_***(e) - registers the implementation from 'e' (if it has one) + // ENGINE_unregister_***(e) - unregister the implementation from 'e' + // ENGINE_register_all_***() - call ENGINE_register_***() for each 'e' in the list + // Cleanup is automatically registered from each table when required. + // + + function ENGINE_register_RSA(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_unregister_RSA(e: PENGINE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_register_all_RSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ENGINE_register_DSA(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_unregister_DSA(e: PENGINE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_register_all_DSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ENGINE_register_EC(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_unregister_EC(e: PENGINE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_register_all_EC cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ENGINE_register_DH(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_unregister_DH(e: PENGINE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_register_all_DH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ENGINE_register_RAND(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_unregister_RAND(e: PENGINE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_register_all_RAND cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ENGINE_register_ciphers(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_unregister_ciphers(e: PENGINE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_register_all_ciphers cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ENGINE_register_digests(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_unregister_digests(e: PENGINE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_register_all_digests cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ENGINE_register_pkey_meths(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_unregister_pkey_meths(e: PENGINE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_register_all_pkey_meths cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ENGINE_register_pkey_asn1_meths(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_unregister_pkey_asn1_meths(e: PENGINE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ENGINE_register_all_pkey_asn1_meths cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // + // These functions register all support from the above categories. Note, use + // of these functions can result in static linkage of code your application + // may not need. If you only need a subset of functionality, consider using + // more selective initialisation. + // + function ENGINE_register_complete(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_register_all_complete: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // + // Send parameterised control commands to the engine. The possibilities to + // send down an integer, a pointer to data or a function pointer are + // provided. Any of the parameters may or may not be NULL, depending on the + // command number. In actuality, this function only requires a structural + // (rather than functional) reference to an engine, but many control commands + // may require the engine be functional. The caller should be aware of trying + // commands that require an operational ENGINE, and only use functional + // references in such situations. + // + function ENGINE_ctrl(e: PENGINE; cmd: TIdC_INT; i: TIdC_LONG; p: Pointer; v1: f): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // + // This function tests if an ENGINE-specific command is usable as a + // "setting". Eg. in an application's config file that gets processed through + // ENGINE_ctrl_cmd_string(). If this returns zero, it is not available to + // ENGINE_ctrl_cmd_string(), only ENGINE_ctrl(). + // + function ENGINE_cmd_is_executable(e: PENGINE; cmd: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // + // This function works like ENGINE_ctrl() with the exception of taking a + // command name instead of a command number, and can handle optional + // commands. See the comment on ENGINE_ctrl_cmd_string() for an explanation + // on how to use the cmd_name and cmd_optional. + // + function ENGINE_ctrl_cmd(e: PENGINE; const cmd_name: PIdAnsiChar; i: TIdC_LONG; p: Pointer; v1: f; cmd_optional: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // + // This function passes a command-name and argument to an ENGINE. The + // cmd_name is converted to a command number and the control command is + // called using 'arg' as an argument (unless the ENGINE doesn't support such + // a command, in which case no control command is called). The command is + // checked for input flags, and if necessary the argument will be converted + // to a numeric value. If cmd_optional is non-zero, then if the ENGINE + // doesn't support the given cmd_name the return value will be success + // anyway. This function is intended for applications to use so that users + // (or config files) can supply engine-specific config data to the ENGINE at + // run-time to control behaviour of specific engines. As such, it shouldn't + // be used for calling ENGINE_ctrl() functions that return data, deal with + // binary data, or that are otherwise supposed to be used directly through + // ENGINE_ctrl() in application code. Any "return" data from an ENGINE_ctrl() + // operation in this function will be lost - the return value is interpreted + // as failure if the return value is zero, success otherwise, and this + // function returns a boolean value as a result. In other words, vendors of + // 'ENGINE'-enabled devices should write ENGINE implementations with + // parameterisations that work in this scheme, so that compliant ENGINE-based + // applications can work consistently with the same configuration for the + // same ENGINE-enabled devices, across applications. + // + function ENGINE_ctrl_cmd_string(e: PENGINE; const cmd_name: PIdAnsiChar; const arg: PIdAnsiChar; cmd_optional: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // + // These functions are useful for manufacturing new ENGINE structures. They + // don't address reference counting at all - one uses them to populate an + // ENGINE structure with personalised implementations of things prior to + // using it directly or adding it to the builtin ENGINE list in OpenSSL. + // These are also here so that the ENGINE structure doesn't have to be + // exposed and break binary compatibility! + // + function ENGINE_new: PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_free(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_up_ref(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_id(e: PENGINE; const id: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_name(e: PENGINE; const name: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_RSA(e: PENGINE; const rsa_meth: PRSA_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_DSA(e: PENGINE; const dsa_meth: PDSA_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_EC(e: PENGINE; const ecdsa_meth: PEC_KEY_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_DH(e: PENGINE; const dh_meth: PDH_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_RAND(e: PENGINE; const rand_meth: PRAND_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_destroy_function(e: PENGINE; destroy_f: ENGINE_GEN_INT_FUNC_PTR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_init_function(e: PENGINE; init_f: ENGINE_GEN_INT_FUNC_PTR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_finish_function(e: PENGINE; finish_f: ENGINE_GEN_INT_FUNC_PTR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_ctrl_function(e: PENGINE; ctrl_f: ENGINE_CTRL_FUNC_PTR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_load_privkey_function(e: PENGINE; loadpriv_f: ENGINE_LOAD_KEY_PTR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_load_pubkey_function(e: PENGINE; loadpub_f: ENGINE_LOAD_KEY_PTR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function ENGINE_set_load_ssl_client_cert_function(e: PENGINE; loadssl_f: ENGINE_SSL_CLIENT_CERT_PTR): TIdC_INT; + function ENGINE_set_ciphers(e: PENGINE; f: ENGINE_CIPHERS_PTR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_digests(e: PENGINE; f: ENGINE_DIGESTS_PTR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_pkey_meths(e: PENGINE; f: ENGINE_PKEY_METHS_PTR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_pkey_asn1_meths(e: PENGINE; f: ENGINE_PKEY_ASN1_METHS_PTR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_flags(e: PENGINE; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_cmd_defns(e: PENGINE; const defns: PENGINE_CMD_DEFN): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // These functions allow control over any per-structure ENGINE data. */ + //#define ENGINE_get_ex_new_index(l, p, newf, dupf, freef) CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_ENGINE, l, p, newf, dupf, freef) + function ENGINE_set_ex_data(e: PENGINE; idx: TIdC_INT; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_ex_data(const e: PENGINE; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // + // These return values from within the ENGINE structure. These can be useful + // with functional references as well as structural references - it depends + // which you obtained. Using the result for functional purposes if you only + // obtained a structural reference may be problematic! + // + function ENGINE_get_id(const e: PENGINE): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_name(const e: PENGINE): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_RSA(const e: PENGINE): PRSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_DSA(const e: PENGINE): PDSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_EC(const e: PENGINE): PEC_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_DH(const e: PENGINE): PDH_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_RAND(const e: PENGINE): PRAND_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_destroy_function(const e: PENGINE): ENGINE_GEN_INT_FUNC_PTR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_init_function(const e: PENGINE): ENGINE_GEN_INT_FUNC_PTR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_finish_function(const e: PENGINE): ENGINE_GEN_INT_FUNC_PTR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_ctrl_function(const e: PENGINE): ENGINE_CTRL_FUNC_PTR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_load_privkey_function(const e: PENGINE): ENGINE_LOAD_KEY_PTR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_load_pubkey_function(const e: PENGINE): ENGINE_LOAD_KEY_PTR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function ENGINE_get_ssl_client_cert_function(const e: PENGINE): ENGINE_SSL_CLIENT_CERT_PTR; + + function ENGINE_get_ciphers(const e: PENGINE): ENGINE_CIPHERS_PTR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_digests(const e: PENGINE): ENGINE_DIGESTS_PTR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_pkey_meths(const e: PENGINE): ENGINE_PKEY_METHS_PTR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_pkey_asn1_meths(const e: PENGINE): ENGINE_PKEY_ASN1_METHS_PTR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_cipher(e: PENGINE; nid: TIdC_INT): PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_digest(e: PENGINE; nid: TIdC_INT): PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_pkey_meth(e: PENGINE; nid: TIdC_INT): PEVP_PKEY_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_pkey_asn1_meth(e: PENGINE; nid: TIdC_INT): PEVP_PKEY_ASN1_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_pkey_asn1_meth_str(e: PENGINE; const str: PIdAnsiChar; len: TIdC_INT): PEVP_PKEY_ASN1_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_pkey_asn1_find_str(pe: PPENGINE; const str: PIdAnsiChar; len: TIdC_INT): PEVP_PKEY_ASN1_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_cmd_defns(const e: PENGINE): PENGINE_CMD_DEFN cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_flags(const e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + ///* + // * FUNCTIONAL functions. These functions deal with ENGINE structures that + // * have (or will) be initialised for use. Broadly speaking, the structural + // * functions are useful for iterating the list of available engine types, + // * creating new engine types, and other "list" operations. These functions + // * actually deal with ENGINEs that are to be used. As such these functions + // * can fail (if applicable) when particular engines are unavailable - eg. if + // * a hardware accelerator is not attached or not functioning correctly. Each + // * ENGINE has 2 reference counts; structural and functional. Every time a + // * functional reference is obtained or released, a corresponding structural + // * reference is automatically obtained or released too. + // */ + + ///* + // * Initialise a engine type for use (or up its reference count if it's + // * already in use). This will fail if the engine is not currently operational + // * and cannot initialise. + // */ + function ENGINE_init(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + ///* + // * Free a functional reference to a engine type. This does not require a + // * corresponding call to ENGINE_free as it also releases a structural + // * reference. + // */ + function ENGINE_finish(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + ///* + // * The following functions handle keys that are stored in some secondary + // * location, handled by the engine. The storage may be on a card or + // * whatever. + // */ + function ENGINE_load_private_key(e: PENGINE; const key_id: PIdAnsiChar; ui_method: PUI_METHOD; callback_data: Pointer): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_load_public_key(e: PENGINE; const key_id: PIdAnsiChar; ui_method: PUI_METHOD; callback_data: Pointer): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function ENGINE_load_ssl_client_cert(e: PENGINE; s: PSSL; + // {STACK_OF(X509) *ca_dn;} {STACK_OF(X509) **pother;} ui_method: PUI_METHOD; + // callback_data: Pointer): TIdC_INT; + + ///* + // * This returns a pointer for the current ENGINE structure that is (by + // * default) performing any RSA operations. The value returned is an + // * incremented reference, so it should be free'd (ENGINE_finish) before it is + // * discarded. + // */ + function ENGINE_get_default_RSA: PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //* Same for the other "methods" */ + function ENGINE_get_default_DSA: PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_default_EC: PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_default_DH: PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_default_RAND: PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + ///* + // * These functions can be used to get a functional reference to perform + // * ciphering or digesting corresponding to "nid". + // */ + function ENGINE_get_cipher_engine(nid: TIdC_INT): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_digest_engine(nid: TIdC_INT): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_pkey_meth_engine(nid: TIdC_INT): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_get_pkey_asn1_meth_engine(nid: TIdC_INT): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + ///* + // * This sets a new default ENGINE structure for performing RSA operations. If + // * the result is non-zero (success) then the ENGINE structure will have had + // * its reference count up'd so the caller should still free their own + // * reference 'e'. + // */ + function ENGINE_set_default_RSA(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_default_string(e: PENGINE; const def_list: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // Same for the other "methods" + function ENGINE_set_default_DSA(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_default_EC(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_default_DH(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_default_RAND(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_default_ciphers(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_default_digests(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_default_pkey_meths(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ENGINE_set_default_pkey_asn1_meths(e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + ///* + // * The combination "set" - the flags are bitwise "OR"d from the + // * ENGINE_METHOD_*** defines above. As with the "ENGINE_register_complete()" + // * function, this function can result in unnecessary static linkage. If your + // * application requires only specific functionality, consider using more + // * selective functions. + // */ + function ENGINE_set_default(e: PENGINE; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure ENGINE_add_conf_module cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + ///* Deprecated functions ... */ + ///* int ENGINE_clear_defaults(void); */ + // + //**************************/ + //* DYNAMIC ENGINE SUPPORT */ + //**************************/ + // + //* Binary/behaviour compatibility levels */ + //# define OSSL_DYNAMIC_VERSION (unsigned long)0x00030000 + //* + // * Binary versions older than this are too old for us (whether we're a loader + // * or a loadee) + // */ + //# define OSSL_DYNAMIC_OLDEST (unsigned long)0x00030000 + // + //* + // * When compiling an ENGINE entirely as an external shared library, loadable + // * by the "dynamic" ENGINE, these types are needed. The 'dynamic_fns' + // * structure type provides the calling application's (or library's) error + // * functionality and memory management function pointers to the loaded + // * library. These should be used/set in the loaded library code so that the + // * loading application's 'state' will be used/changed in all operations. The + // * 'static_state' pointer allows the loaded library to know if it shares the + // * same static data as the calling application (or library), and thus whether + // * these callbacks need to be set or not. + // */ + + + //# define IMPLEMENT_DYNAMIC_BIND_FN(fn) \ + // OPENSSL_EXPORT \ + // int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); \ + // OPENSSL_EXPORT \ + // int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { \ + // if (ENGINE_get_static_state() == fns->static_state) goto skip_cbs; \ + // CRYPTO_set_mem_functions(fns->mem_fns.malloc_fn, \ + // fns->mem_fns.realloc_fn, \ + // fns->mem_fns.free_fn); \ + // skip_cbs: \ + // if (!fn(e, id)) return 0; \ + // return 1; } + // + //* + // * If the loading application (or library) and the loaded ENGINE library + // * share the same static data (eg. they're both dynamically linked to the + // * same libcrypto.so) we need a way to avoid trying to set system callbacks - + // * this would fail, and for the same reason that it's unnecessary to try. If + // * the loaded ENGINE has (or gets from through the loader) its own copy of + // * the libcrypto static data, we will need to set the callbacks. The easiest + // * way to detect this is to have a function that returns a pointer to some + // * static data and let the loading application and loaded ENGINE compare + // * their respective values. + // */ + function ENGINE_get_static_state: Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ENGINE_get_first := LoadFunction('ENGINE_get_first',AFailed); + ENGINE_get_last := LoadFunction('ENGINE_get_last',AFailed); + ENGINE_get_next := LoadFunction('ENGINE_get_next',AFailed); + ENGINE_get_prev := LoadFunction('ENGINE_get_prev',AFailed); + ENGINE_add := LoadFunction('ENGINE_add',AFailed); + ENGINE_remove := LoadFunction('ENGINE_remove',AFailed); + ENGINE_by_id := LoadFunction('ENGINE_by_id',AFailed); + ENGINE_load_builtin_engines := LoadFunction('ENGINE_load_builtin_engines',AFailed); + ENGINE_get_table_flags := LoadFunction('ENGINE_get_table_flags',AFailed); + ENGINE_set_table_flags := LoadFunction('ENGINE_set_table_flags',AFailed); + ENGINE_register_RSA := LoadFunction('ENGINE_register_RSA',AFailed); + ENGINE_unregister_RSA := LoadFunction('ENGINE_unregister_RSA',AFailed); + ENGINE_register_all_RSA := LoadFunction('ENGINE_register_all_RSA',AFailed); + ENGINE_register_DSA := LoadFunction('ENGINE_register_DSA',AFailed); + ENGINE_unregister_DSA := LoadFunction('ENGINE_unregister_DSA',AFailed); + ENGINE_register_all_DSA := LoadFunction('ENGINE_register_all_DSA',AFailed); + ENGINE_register_EC := LoadFunction('ENGINE_register_EC',AFailed); + ENGINE_unregister_EC := LoadFunction('ENGINE_unregister_EC',AFailed); + ENGINE_register_all_EC := LoadFunction('ENGINE_register_all_EC',AFailed); + ENGINE_register_DH := LoadFunction('ENGINE_register_DH',AFailed); + ENGINE_unregister_DH := LoadFunction('ENGINE_unregister_DH',AFailed); + ENGINE_register_all_DH := LoadFunction('ENGINE_register_all_DH',AFailed); + ENGINE_register_RAND := LoadFunction('ENGINE_register_RAND',AFailed); + ENGINE_unregister_RAND := LoadFunction('ENGINE_unregister_RAND',AFailed); + ENGINE_register_all_RAND := LoadFunction('ENGINE_register_all_RAND',AFailed); + ENGINE_register_ciphers := LoadFunction('ENGINE_register_ciphers',AFailed); + ENGINE_unregister_ciphers := LoadFunction('ENGINE_unregister_ciphers',AFailed); + ENGINE_register_all_ciphers := LoadFunction('ENGINE_register_all_ciphers',AFailed); + ENGINE_register_digests := LoadFunction('ENGINE_register_digests',AFailed); + ENGINE_unregister_digests := LoadFunction('ENGINE_unregister_digests',AFailed); + ENGINE_register_all_digests := LoadFunction('ENGINE_register_all_digests',AFailed); + ENGINE_register_pkey_meths := LoadFunction('ENGINE_register_pkey_meths',AFailed); + ENGINE_unregister_pkey_meths := LoadFunction('ENGINE_unregister_pkey_meths',AFailed); + ENGINE_register_all_pkey_meths := LoadFunction('ENGINE_register_all_pkey_meths',AFailed); + ENGINE_register_pkey_asn1_meths := LoadFunction('ENGINE_register_pkey_asn1_meths',AFailed); + ENGINE_unregister_pkey_asn1_meths := LoadFunction('ENGINE_unregister_pkey_asn1_meths',AFailed); + ENGINE_register_all_pkey_asn1_meths := LoadFunction('ENGINE_register_all_pkey_asn1_meths',AFailed); + ENGINE_register_complete := LoadFunction('ENGINE_register_complete',AFailed); + ENGINE_register_all_complete := LoadFunction('ENGINE_register_all_complete',AFailed); + ENGINE_ctrl := LoadFunction('ENGINE_ctrl',AFailed); + ENGINE_cmd_is_executable := LoadFunction('ENGINE_cmd_is_executable',AFailed); + ENGINE_ctrl_cmd := LoadFunction('ENGINE_ctrl_cmd',AFailed); + ENGINE_ctrl_cmd_string := LoadFunction('ENGINE_ctrl_cmd_string',AFailed); + ENGINE_new := LoadFunction('ENGINE_new',AFailed); + ENGINE_free := LoadFunction('ENGINE_free',AFailed); + ENGINE_up_ref := LoadFunction('ENGINE_up_ref',AFailed); + ENGINE_set_id := LoadFunction('ENGINE_set_id',AFailed); + ENGINE_set_name := LoadFunction('ENGINE_set_name',AFailed); + ENGINE_set_RSA := LoadFunction('ENGINE_set_RSA',AFailed); + ENGINE_set_DSA := LoadFunction('ENGINE_set_DSA',AFailed); + ENGINE_set_EC := LoadFunction('ENGINE_set_EC',AFailed); + ENGINE_set_DH := LoadFunction('ENGINE_set_DH',AFailed); + ENGINE_set_RAND := LoadFunction('ENGINE_set_RAND',AFailed); + ENGINE_set_destroy_function := LoadFunction('ENGINE_set_destroy_function',AFailed); + ENGINE_set_init_function := LoadFunction('ENGINE_set_init_function',AFailed); + ENGINE_set_finish_function := LoadFunction('ENGINE_set_finish_function',AFailed); + ENGINE_set_ctrl_function := LoadFunction('ENGINE_set_ctrl_function',AFailed); + ENGINE_set_load_privkey_function := LoadFunction('ENGINE_set_load_privkey_function',AFailed); + ENGINE_set_load_pubkey_function := LoadFunction('ENGINE_set_load_pubkey_function',AFailed); + ENGINE_set_ciphers := LoadFunction('ENGINE_set_ciphers',AFailed); + ENGINE_set_digests := LoadFunction('ENGINE_set_digests',AFailed); + ENGINE_set_pkey_meths := LoadFunction('ENGINE_set_pkey_meths',AFailed); + ENGINE_set_pkey_asn1_meths := LoadFunction('ENGINE_set_pkey_asn1_meths',AFailed); + ENGINE_set_flags := LoadFunction('ENGINE_set_flags',AFailed); + ENGINE_set_cmd_defns := LoadFunction('ENGINE_set_cmd_defns',AFailed); + ENGINE_set_ex_data := LoadFunction('ENGINE_set_ex_data',AFailed); + ENGINE_get_ex_data := LoadFunction('ENGINE_get_ex_data',AFailed); + ENGINE_get_id := LoadFunction('ENGINE_get_id',AFailed); + ENGINE_get_name := LoadFunction('ENGINE_get_name',AFailed); + ENGINE_get_RSA := LoadFunction('ENGINE_get_RSA',AFailed); + ENGINE_get_DSA := LoadFunction('ENGINE_get_DSA',AFailed); + ENGINE_get_EC := LoadFunction('ENGINE_get_EC',AFailed); + ENGINE_get_DH := LoadFunction('ENGINE_get_DH',AFailed); + ENGINE_get_RAND := LoadFunction('ENGINE_get_RAND',AFailed); + ENGINE_get_destroy_function := LoadFunction('ENGINE_get_destroy_function',AFailed); + ENGINE_get_init_function := LoadFunction('ENGINE_get_init_function',AFailed); + ENGINE_get_finish_function := LoadFunction('ENGINE_get_finish_function',AFailed); + ENGINE_get_ctrl_function := LoadFunction('ENGINE_get_ctrl_function',AFailed); + ENGINE_get_load_privkey_function := LoadFunction('ENGINE_get_load_privkey_function',AFailed); + ENGINE_get_load_pubkey_function := LoadFunction('ENGINE_get_load_pubkey_function',AFailed); + ENGINE_get_ciphers := LoadFunction('ENGINE_get_ciphers',AFailed); + ENGINE_get_digests := LoadFunction('ENGINE_get_digests',AFailed); + ENGINE_get_pkey_meths := LoadFunction('ENGINE_get_pkey_meths',AFailed); + ENGINE_get_pkey_asn1_meths := LoadFunction('ENGINE_get_pkey_asn1_meths',AFailed); + ENGINE_get_cipher := LoadFunction('ENGINE_get_cipher',AFailed); + ENGINE_get_digest := LoadFunction('ENGINE_get_digest',AFailed); + ENGINE_get_pkey_meth := LoadFunction('ENGINE_get_pkey_meth',AFailed); + ENGINE_get_pkey_asn1_meth := LoadFunction('ENGINE_get_pkey_asn1_meth',AFailed); + ENGINE_get_pkey_asn1_meth_str := LoadFunction('ENGINE_get_pkey_asn1_meth_str',AFailed); + ENGINE_pkey_asn1_find_str := LoadFunction('ENGINE_pkey_asn1_find_str',AFailed); + ENGINE_get_cmd_defns := LoadFunction('ENGINE_get_cmd_defns',AFailed); + ENGINE_get_flags := LoadFunction('ENGINE_get_flags',AFailed); + ENGINE_init := LoadFunction('ENGINE_init',AFailed); + ENGINE_finish := LoadFunction('ENGINE_finish',AFailed); + ENGINE_load_private_key := LoadFunction('ENGINE_load_private_key',AFailed); + ENGINE_load_public_key := LoadFunction('ENGINE_load_public_key',AFailed); + ENGINE_get_default_RSA := LoadFunction('ENGINE_get_default_RSA',AFailed); + ENGINE_get_default_DSA := LoadFunction('ENGINE_get_default_DSA',AFailed); + ENGINE_get_default_EC := LoadFunction('ENGINE_get_default_EC',AFailed); + ENGINE_get_default_DH := LoadFunction('ENGINE_get_default_DH',AFailed); + ENGINE_get_default_RAND := LoadFunction('ENGINE_get_default_RAND',AFailed); + ENGINE_get_cipher_engine := LoadFunction('ENGINE_get_cipher_engine',AFailed); + ENGINE_get_digest_engine := LoadFunction('ENGINE_get_digest_engine',AFailed); + ENGINE_get_pkey_meth_engine := LoadFunction('ENGINE_get_pkey_meth_engine',AFailed); + ENGINE_get_pkey_asn1_meth_engine := LoadFunction('ENGINE_get_pkey_asn1_meth_engine',AFailed); + ENGINE_set_default_RSA := LoadFunction('ENGINE_set_default_RSA',AFailed); + ENGINE_set_default_string := LoadFunction('ENGINE_set_default_string',AFailed); + ENGINE_set_default_DSA := LoadFunction('ENGINE_set_default_DSA',AFailed); + ENGINE_set_default_EC := LoadFunction('ENGINE_set_default_EC',AFailed); + ENGINE_set_default_DH := LoadFunction('ENGINE_set_default_DH',AFailed); + ENGINE_set_default_RAND := LoadFunction('ENGINE_set_default_RAND',AFailed); + ENGINE_set_default_ciphers := LoadFunction('ENGINE_set_default_ciphers',AFailed); + ENGINE_set_default_digests := LoadFunction('ENGINE_set_default_digests',AFailed); + ENGINE_set_default_pkey_meths := LoadFunction('ENGINE_set_default_pkey_meths',AFailed); + ENGINE_set_default_pkey_asn1_meths := LoadFunction('ENGINE_set_default_pkey_asn1_meths',AFailed); + ENGINE_set_default := LoadFunction('ENGINE_set_default',AFailed); + ENGINE_add_conf_module := LoadFunction('ENGINE_add_conf_module',AFailed); + ENGINE_get_static_state := LoadFunction('ENGINE_get_static_state',AFailed); +end; + +procedure Unload; +begin + ENGINE_get_first := nil; + ENGINE_get_last := nil; + ENGINE_get_next := nil; + ENGINE_get_prev := nil; + ENGINE_add := nil; + ENGINE_remove := nil; + ENGINE_by_id := nil; + ENGINE_load_builtin_engines := nil; + ENGINE_get_table_flags := nil; + ENGINE_set_table_flags := nil; + ENGINE_register_RSA := nil; + ENGINE_unregister_RSA := nil; + ENGINE_register_all_RSA := nil; + ENGINE_register_DSA := nil; + ENGINE_unregister_DSA := nil; + ENGINE_register_all_DSA := nil; + ENGINE_register_EC := nil; + ENGINE_unregister_EC := nil; + ENGINE_register_all_EC := nil; + ENGINE_register_DH := nil; + ENGINE_unregister_DH := nil; + ENGINE_register_all_DH := nil; + ENGINE_register_RAND := nil; + ENGINE_unregister_RAND := nil; + ENGINE_register_all_RAND := nil; + ENGINE_register_ciphers := nil; + ENGINE_unregister_ciphers := nil; + ENGINE_register_all_ciphers := nil; + ENGINE_register_digests := nil; + ENGINE_unregister_digests := nil; + ENGINE_register_all_digests := nil; + ENGINE_register_pkey_meths := nil; + ENGINE_unregister_pkey_meths := nil; + ENGINE_register_all_pkey_meths := nil; + ENGINE_register_pkey_asn1_meths := nil; + ENGINE_unregister_pkey_asn1_meths := nil; + ENGINE_register_all_pkey_asn1_meths := nil; + ENGINE_register_complete := nil; + ENGINE_register_all_complete := nil; + ENGINE_ctrl := nil; + ENGINE_cmd_is_executable := nil; + ENGINE_ctrl_cmd := nil; + ENGINE_ctrl_cmd_string := nil; + ENGINE_new := nil; + ENGINE_free := nil; + ENGINE_up_ref := nil; + ENGINE_set_id := nil; + ENGINE_set_name := nil; + ENGINE_set_RSA := nil; + ENGINE_set_DSA := nil; + ENGINE_set_EC := nil; + ENGINE_set_DH := nil; + ENGINE_set_RAND := nil; + ENGINE_set_destroy_function := nil; + ENGINE_set_init_function := nil; + ENGINE_set_finish_function := nil; + ENGINE_set_ctrl_function := nil; + ENGINE_set_load_privkey_function := nil; + ENGINE_set_load_pubkey_function := nil; + ENGINE_set_ciphers := nil; + ENGINE_set_digests := nil; + ENGINE_set_pkey_meths := nil; + ENGINE_set_pkey_asn1_meths := nil; + ENGINE_set_flags := nil; + ENGINE_set_cmd_defns := nil; + ENGINE_set_ex_data := nil; + ENGINE_get_ex_data := nil; + ENGINE_get_id := nil; + ENGINE_get_name := nil; + ENGINE_get_RSA := nil; + ENGINE_get_DSA := nil; + ENGINE_get_EC := nil; + ENGINE_get_DH := nil; + ENGINE_get_RAND := nil; + ENGINE_get_destroy_function := nil; + ENGINE_get_init_function := nil; + ENGINE_get_finish_function := nil; + ENGINE_get_ctrl_function := nil; + ENGINE_get_load_privkey_function := nil; + ENGINE_get_load_pubkey_function := nil; + ENGINE_get_ciphers := nil; + ENGINE_get_digests := nil; + ENGINE_get_pkey_meths := nil; + ENGINE_get_pkey_asn1_meths := nil; + ENGINE_get_cipher := nil; + ENGINE_get_digest := nil; + ENGINE_get_pkey_meth := nil; + ENGINE_get_pkey_asn1_meth := nil; + ENGINE_get_pkey_asn1_meth_str := nil; + ENGINE_pkey_asn1_find_str := nil; + ENGINE_get_cmd_defns := nil; + ENGINE_get_flags := nil; + ENGINE_init := nil; + ENGINE_finish := nil; + ENGINE_load_private_key := nil; + ENGINE_load_public_key := nil; + ENGINE_get_default_RSA := nil; + ENGINE_get_default_DSA := nil; + ENGINE_get_default_EC := nil; + ENGINE_get_default_DH := nil; + ENGINE_get_default_RAND := nil; + ENGINE_get_cipher_engine := nil; + ENGINE_get_digest_engine := nil; + ENGINE_get_pkey_meth_engine := nil; + ENGINE_get_pkey_asn1_meth_engine := nil; + ENGINE_set_default_RSA := nil; + ENGINE_set_default_string := nil; + ENGINE_set_default_DSA := nil; + ENGINE_set_default_EC := nil; + ENGINE_set_default_DH := nil; + ENGINE_set_default_RAND := nil; + ENGINE_set_default_ciphers := nil; + ENGINE_set_default_digests := nil; + ENGINE_set_default_pkey_meths := nil; + ENGINE_set_default_pkey_asn1_meths := nil; + ENGINE_set_default := nil; + ENGINE_add_conf_module := nil; + ENGINE_get_static_state := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_engineerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_engineerr.pas new file mode 100644 index 000000000..9796e9171 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_engineerr.pas @@ -0,0 +1,184 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_engineerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_engineerr.h2pas + and this file regenerated. IdOpenSSLHeaders_engineerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_engineerr; + +interface + +// Headers for OpenSSL 1.1.1 +// engineerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * ENGINE function codes. + *) + ENGINE_F_DIGEST_UPDATE = 198; + ENGINE_F_DYNAMIC_CTRL = 180; + ENGINE_F_DYNAMIC_GET_DATA_CTX = 181; + ENGINE_F_DYNAMIC_LOAD = 182; + ENGINE_F_DYNAMIC_SET_DATA_CTX = 183; + ENGINE_F_ENGINE_ADD = 105; + ENGINE_F_ENGINE_BY_ID = 106; + ENGINE_F_ENGINE_CMD_IS_EXECUTABLE = 170; + ENGINE_F_ENGINE_CTRL = 142; + ENGINE_F_ENGINE_CTRL_CMD = 178; + ENGINE_F_ENGINE_CTRL_CMD_STRING = 171; + ENGINE_F_ENGINE_FINISH = 107; + ENGINE_F_ENGINE_GET_CIPHER = 185; + ENGINE_F_ENGINE_GET_DIGEST = 186; + ENGINE_F_ENGINE_GET_FIRST = 195; + ENGINE_F_ENGINE_GET_LAST = 196; + ENGINE_F_ENGINE_GET_NEXT = 115; + ENGINE_F_ENGINE_GET_PKEY_ASN1_METH = 193; + ENGINE_F_ENGINE_GET_PKEY_METH = 192; + ENGINE_F_ENGINE_GET_PREV = 116; + ENGINE_F_ENGINE_INIT = 119; + ENGINE_F_ENGINE_LIST_ADD = 120; + ENGINE_F_ENGINE_LIST_REMOVE = 121; + ENGINE_F_ENGINE_LOAD_PRIVATE_KEY = 150; + ENGINE_F_ENGINE_LOAD_PUBLIC_KEY = 151; + ENGINE_F_ENGINE_LOAD_SSL_CLIENT_CERT = 194; + ENGINE_F_ENGINE_NEW = 122; + ENGINE_F_ENGINE_PKEY_ASN1_FIND_STR = 197; + ENGINE_F_ENGINE_REMOVE = 123; + ENGINE_F_ENGINE_SET_DEFAULT_STRING = 189; + ENGINE_F_ENGINE_SET_ID = 129; + ENGINE_F_ENGINE_SET_NAME = 130; + ENGINE_F_ENGINE_TABLE_REGISTER = 184; + ENGINE_F_ENGINE_UNLOCKED_FINISH = 191; + ENGINE_F_ENGINE_UP_REF = 190; + ENGINE_F_INT_CLEANUP_ITEM = 199; + ENGINE_F_INT_CTRL_HELPER = 172; + ENGINE_F_INT_ENGINE_CONFIGURE = 188; + ENGINE_F_INT_ENGINE_MODULE_INIT = 187; + ENGINE_F_OSSL_HMAC_INIT = 200; + + (* + * ENGINE reason codes. + *) + ENGINE_R_ALREADY_LOADED = 100; + ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER = 133; + ENGINE_R_CMD_NOT_EXECUTABLE = 134; + ENGINE_R_COMMAND_TAKES_INPUT = 135; + ENGINE_R_COMMAND_TAKES_NO_INPUT = 136; + ENGINE_R_CONFLICTING_ENGINE_ID = 103; + ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED = 119; + ENGINE_R_DSO_FAILURE = 104; + ENGINE_R_DSO_NOT_FOUND = 132; + ENGINE_R_ENGINES_SECTION_ERROR = 148; + ENGINE_R_ENGINE_CONFIGURATION_ERROR = 102; + ENGINE_R_ENGINE_IS_NOT_IN_LIST = 105; + ENGINE_R_ENGINE_SECTION_ERROR = 149; + ENGINE_R_FAILED_LOADING_PRIVATE_KEY = 128; + ENGINE_R_FAILED_LOADING_PUBLIC_KEY = 129; + ENGINE_R_FINISH_FAILED = 106; + ENGINE_R_ID_OR_NAME_MISSING = 108; + ENGINE_R_INIT_FAILED = 109; + ENGINE_R_INTERNAL_LIST_ERROR = 110; + ENGINE_R_INVALID_ARGUMENT = 143; + ENGINE_R_INVALID_CMD_NAME = 137; + ENGINE_R_INVALID_CMD_NUMBER = 138; + ENGINE_R_INVALID_INIT_VALUE = 151; + ENGINE_R_INVALID_STRING = 150; + ENGINE_R_NOT_INITIALISED = 117; + ENGINE_R_NOT_LOADED = 112; + ENGINE_R_NO_CONTROL_FUNCTION = 120; + ENGINE_R_NO_INDEX = 144; + ENGINE_R_NO_LOAD_FUNCTION = 125; + ENGINE_R_NO_REFERENCE = 130; + ENGINE_R_NO_SUCH_ENGINE = 116; + ENGINE_R_UNIMPLEMENTED_CIPHER = 146; + ENGINE_R_UNIMPLEMENTED_DIGEST = 147; + ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD = 101; + ENGINE_R_VERSION_INCOMPATIBILITY = 145; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_ENGINE_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_ENGINE_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_ENGINE_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_ENGINE_strings := LoadFunction('ERR_load_ENGINE_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_ENGINE_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_err.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_err.pas new file mode 100644 index 000000000..15075c052 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_err.pas @@ -0,0 +1,820 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_err.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_err.h2pas + and this file regenerated. IdOpenSSLHeaders_err.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_err; + +interface + +// Headers for OpenSSL 1.1.1 +// err.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + ERR_TXT_MALLOCED = $01; + ERR_TXT_STRING = $02; + ERR_FLAG_MARK = $01; + ERR_FLAG_CLEAR = $02; + + ERR_NUM_ERRORS = 16; + +//* library */ + ERR_LIB_SYS = 2; + ERR_LIB_BN = 3; + ERR_LIB_RSA = 4; + ERR_LIB_DH = 5; + ERR_LIB_EVP = 6; + ERR_LIB_BUF = 7; + ERR_LIB_OBJ = 8; + ERR_LIB_PEM = 9; + ERR_LIB_DSA = 10; + ERR_LIB_X509 = 11; + // ERR_LIB_METH 12 + ERR_LIB_ASN1 = 13; + ERR_LIB_CONF = 14; + ERR_LIB_CRYPTO = 15; + ERR_LIB_EC = 16; + ERR_LIB_SSL = 20; +(* #define ERR_LIB_SSL23 21 *) +(* #define ERR_LIB_SSL2 22 *) +(* #define ERR_LIB_SSL3 23 *) +(* #define ERR_LIB_RSAREF 30 *) +(* #define ERR_LIB_PROXY 31 *) + ERR_LIB_BIO = 32; + ERR_LIB_PKCS7 = 33; + ERR_LIB_X509V3 = 34; + ERR_LIB_PKCS12 = 35; + ERR_LIB_RAND = 36; + ERR_LIB_DSO = 37; + ERR_LIB_ENGINE = 38; + ERR_LIB_OCSP = 39; + ERR_LIB_UI = 40; + ERR_LIB_COMP = 41; + ERR_LIB_ECDSA = 42; + ERR_LIB_ECDH = 43; + ERR_LIB_OSSL_STORE = 44; + ERR_LIB_FIPS = 45; + ERR_LIB_CMS = 46; + ERR_LIB_TS = 47; + ERR_LIB_HMAC = 48; +(* # define ERR_LIB_JPAKE 49 *) + ERR_LIB_CT = 50; + ERR_LIB_ASYNC = 51; + ERR_LIB_KDF = 52; + ERR_LIB_SM2 = 53; + ERR_LIB_USER = 128; + +//* OS functions */ + SYS_F_FOPEN = 1; + SYS_F_CONNECT = 2; + SYS_F_GETSERVBYNAME = 3; + SYS_F_SOCKET = 4; + SYS_F_IOCTLSOCKET = 5; + SYS_F_BIND = 6; + SYS_F_LISTEN = 7; + SYS_F_ACCEPT = 8; + SYS_F_WSASTARTUP = 9; (* Winsock stuff *) + SYS_F_OPENDIR = 10; + SYS_F_FREAD = 11; + SYS_F_GETADDRINFO = 12; + SYS_F_GETNAMEINFO = 13; + SYS_F_SETSOCKOPT = 14; + SYS_F_GETSOCKOPT = 15; + SYS_F_GETSOCKNAME = 16; + SYS_F_GETHOSTBYNAME = 17; + SYS_F_FFLUSH = 18; + SYS_F_OPEN = 19; + SYS_F_CLOSE = 20; + SYS_F_IOCTL = 21; + SYS_F_STAT = 22; + SYS_F_FCNTL = 23; + SYS_F_FSTAT = 24; + +//* reasons */ + ERR_R_SYS_LIB = ERR_LIB_SYS; //2 + ERR_R_BN_LIB = ERR_LIB_BN; //3 + ERR_R_RSA_LIB = ERR_LIB_RSA; //4 + ERR_R_DH_LIB = ERR_LIB_DH; //5 + ERR_R_EVP_LIB = ERR_LIB_EVP; //6 + ERR_R_BUF_LIB = ERR_LIB_BUF; //7 + ERR_R_OBJ_LIB = ERR_LIB_OBJ; //8 + ERR_R_PEM_LIB = ERR_LIB_PEM; //9 + ERR_R_DSA_LIB = ERR_LIB_DSA; //10 + ERR_R_X509_LIB = ERR_LIB_X509; //11 + ERR_R_ASN1_LIB = ERR_LIB_ASN1; //13 + ERR_R_EC_LIB = ERR_LIB_EC; //16 + ERR_R_BIO_LIB = ERR_LIB_BIO; //32 + ERR_R_PKCS7_LIB = ERR_LIB_PKCS7; //33 + ERR_R_X509V3_LIB = ERR_LIB_X509V3; //34 + ERR_R_ENGINE_LIB = ERR_LIB_ENGINE; //38 + ERR_R_UI_LIB = ERR_LIB_UI; //40 + ERR_R_ECDSA_LIB = ERR_LIB_ECDSA; //42 + ERR_R_OSSL_STORE_LIB = ERR_LIB_OSSL_STORE; //44 + + ERR_R_NESTED_ASN1_ERROR = 58; + ERR_R_MISSING_ASN1_EOS = 63; + + //* fatal error */ + ERR_R_FATAL = 64; + ERR_R_MALLOC_FAILURE = (1 or ERR_R_FATAL); + ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED = (2 or ERR_R_FATAL); + ERR_R_PASSED_NULL_PARAMETER = (3 or ERR_R_FATAL); + ERR_R_INTERNAL_ERROR = (4 or ERR_R_FATAL); + ERR_R_DISABLED = (5 or ERR_R_FATAL); + ERR_R_INIT_FAIL = (6 or ERR_R_FATAL); + ERR_R_PASSED_INVALID_ARGUMENT = (7); + ERR_R_OPERATION_FAIL = (8 or ERR_R_FATAL); + ERR_R_PKCS12_LIB = ERR_LIB_PKCS12; + + +(* + * 99 is the maximum possible ERR_R_... code, higher values are reserved for + * the individual libraries + *) + +type + err_state_st = record + err_flags: array[0..ERR_NUM_ERRORS -1] of TIdC_INT; + err_buffer: array[0..ERR_NUM_ERRORS -1] of TIdC_ULONG; + err_data: array[0..ERR_NUM_ERRORS -1] of PIdAnsiChar; + err_data_flags: array[0..ERR_NUM_ERRORS -1] of TIdC_INT; + err_file: array[0..ERR_NUM_ERRORS -1] of PIdAnsiChar; + err_line: array[0..ERR_NUM_ERRORS -1] of TIdC_INT; + top, bottom: TIdC_INT; + end; + ERR_STATE = err_state_st; + PERR_STATE = ^ERR_STATE; + + ERR_string_data_st = record + error: TIdC_ULONG; + string_: PIdAnsiChar; + end; + ERR_STRING_DATA = ERR_string_data_st; + PERR_STRING_DATA = ^ERR_STRING_DATA; + + ERR_print_errors_cb_cb = function(str: PIdAnsiChar; len: TIdC_SIZET; u: Pointer): TIdC_INT; cdecl; + +// DEFINE_LHASH_OF(ERR_STRING_DATA); + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_new} {introduced 3.0.0} + {$EXTERNALSYM ERR_set_debug} {introduced 3.0.0} + {$EXTERNALSYM ERR_set_error} {introduced 3.0.0} + {$EXTERNALSYM ERR_set_error_data} + {$EXTERNALSYM ERR_get_error} + {$EXTERNALSYM ERR_get_error_line} + {$EXTERNALSYM ERR_get_error_line_data} + {$EXTERNALSYM ERR_peek_error} + {$EXTERNALSYM ERR_peek_error_line} + {$EXTERNALSYM ERR_peek_error_line_data} + {$EXTERNALSYM ERR_peek_last_error} + {$EXTERNALSYM ERR_peek_last_error_line} + {$EXTERNALSYM ERR_peek_last_error_line_data} + {$EXTERNALSYM ERR_clear_error} + {$EXTERNALSYM ERR_error_string} + {$EXTERNALSYM ERR_error_string_n} + {$EXTERNALSYM ERR_lib_error_string} + {$EXTERNALSYM ERR_func_error_string} + {$EXTERNALSYM ERR_reason_error_string} + {$EXTERNALSYM ERR_print_errors_cb} + {$EXTERNALSYM ERR_print_errors} + {$EXTERNALSYM ERR_load_strings} + {$EXTERNALSYM ERR_load_strings_const} {introduced 1.1.0} + {$EXTERNALSYM ERR_unload_strings} + {$EXTERNALSYM ERR_load_ERR_strings} + {$EXTERNALSYM ERR_get_state} + {$EXTERNALSYM ERR_get_next_error_library} + {$EXTERNALSYM ERR_set_mark} + {$EXTERNALSYM ERR_pop_to_mark} + {$EXTERNALSYM ERR_clear_last_mark} {introduced 1.1.0} +{helper_functions} +function ERR_GET_LIB(l: TIdC_INT): TIdC_ULONG; +{\helper_functions} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + {$EXTERNALSYM ERR_put_error} {removed 3.0.0} + {$EXTERNALSYM SSLErr} {removed 1.0.0} + {$EXTERNALSYM X509err} {removed 1.0.0} + {$EXTERNALSYM ERR_GET_REASON} {removed 1.0.0} + ERR_put_error: procedure(lib: TIdC_INT; func: TIdC_INT; reason: TIdC_INT; file_: PIdAnsiChar; line: TIdC_INT); cdecl = nil; {removed 3.0.0} + +{ From 3.0 onwards, replaced by a macro + define ERR_put_error(lib, func, reason, file, line) + (ERR_new(), + ERR_set_debug((file), (line), OPENSSL_FUNC), + ERR_set_error((lib), (reason), NULL))} + + ERR_new: procedure; cdecl = nil; {introduced 3.0.0} + ERR_set_debug: procedure(const file_: PIdAnsiChar; line: integer; const func: PIdAnsiChar); cdecl = nil; {introduced 3.0.0} + ERR_set_error: procedure(lib: integer; reason: integer; fmt: PIdAnsiChar; args: array of const); cdecl = nil; {introduced 3.0.0} + + + ERR_set_error_data: procedure(data: PIdAnsiChar; flags: TIdC_INT); cdecl = nil; + + ERR_get_error: function: TIdC_ULONG; cdecl = nil; + ERR_get_error_line: function(file_: PPIdAnsiChar; line: PIdC_INT): TIdC_ULONG; cdecl = nil; + ERR_get_error_line_data: function(file_: PPIdAnsiChar; line: PIdC_INT; data: PPIdAnsiChar; flags: PIdC_INT): TIdC_ULONG; cdecl = nil; + + ERR_peek_error: function: TIdC_ULONG; cdecl = nil; + ERR_peek_error_line: function(file_: PPIdAnsiChar; line: PIdC_INT): TIdC_ULONG; cdecl = nil; + ERR_peek_error_line_data: function(file_: PPIdAnsiChar; line: PIdC_INT; data: PPIdAnsiChar; flags: PIdC_INT): TIdC_ULONG; cdecl = nil; + + ERR_peek_last_error: function: TIdC_ULONG; cdecl = nil; + ERR_peek_last_error_line: function(file_: PPIdAnsiChar; line: PIdC_INT): TIdC_ULONG; cdecl = nil; + ERR_peek_last_error_line_data: function(file_: PPIdAnsiChar; line: PIdC_INT; data: PPIdAnsiChar; flags: PIdC_INT): TIdC_ULONG; cdecl = nil; + + ERR_clear_error: procedure; cdecl = nil; + ERR_error_string: function(e: TIdC_ULONG; buf: PIdAnsiChar): PIdAnsiChar; cdecl = nil; + ERR_error_string_n: procedure(e: TIdC_ULONG; buf: PIdAnsiChar; len: TIdC_SIZET); cdecl = nil; + ERR_lib_error_string: function(e: TIdC_ULONG): PIdAnsiChar; cdecl = nil; + ERR_func_error_string: function(e: TIdC_ULONG): PIdAnsiChar; cdecl = nil; + ERR_reason_error_string: function(e: TIdC_ULONG): PIdAnsiChar; cdecl = nil; + ERR_print_errors_cb: procedure(cb: ERR_print_errors_cb_cb; u: Pointer); cdecl = nil; + + ERR_print_errors: procedure(bp: PBIO); cdecl = nil; + // void ERR_add_error_data(int num, ...); + // procedure ERR_add_error_vdata(num: TIdC_INT; args: va_list); + ERR_load_strings: function(lib: TIdC_INT; str: PERR_STRING_DATA): TIdC_INT; cdecl = nil; + ERR_load_strings_const: function(str: PERR_STRING_DATA): TIdC_INT; cdecl = nil; {introduced 1.1.0} + ERR_unload_strings: function(lib: TIdC_INT; str: PERR_STRING_DATA): TIdC_INT; cdecl = nil; + ERR_load_ERR_strings: function: TIdC_INT; cdecl = nil; + + ERR_get_state: function: PERR_STATE; cdecl = nil; + ERR_get_next_error_library: function: TIdC_INT; cdecl = nil; + ERR_set_mark: function: TIdC_INT; cdecl = nil; + ERR_pop_to_mark: function: TIdC_INT; cdecl = nil; + ERR_clear_last_mark: function: TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSLErr: procedure(func: TIdC_INT; reason: TIdC_INT); cdecl = nil; {removed 1.0.0} + X509err: procedure(const f,r : TIdC_INT); cdecl = nil; {removed 1.0.0} + ERR_GET_REASON: function(const l : TIdC_INT) : TIdC_INT; cdecl = nil; {removed 1.0.0} + +{$ELSE} + +{ From 3.0 onwards, replaced by a macro + define ERR_put_error(lib, func, reason, file, line) + (ERR_new(), + ERR_set_debug((file), (line), OPENSSL_FUNC), + ERR_set_error((lib), (reason), NULL))} + + procedure ERR_new cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 3.0.0} + procedure ERR_set_debug(const file_: PIdAnsiChar; line: integer; const func: PIdAnsiChar) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 3.0.0} + procedure ERR_set_error(lib: integer; reason: integer; fmt: PIdAnsiChar; args: array of const) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 3.0.0} + + + procedure ERR_set_error_data(data: PIdAnsiChar; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ERR_get_error: TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_get_error_line(file_: PPIdAnsiChar; line: PIdC_INT): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_get_error_line_data(file_: PPIdAnsiChar; line: PIdC_INT; data: PPIdAnsiChar; flags: PIdC_INT): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ERR_peek_error: TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_peek_error_line(file_: PPIdAnsiChar; line: PIdC_INT): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_peek_error_line_data(file_: PPIdAnsiChar; line: PIdC_INT; data: PPIdAnsiChar; flags: PIdC_INT): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ERR_peek_last_error: TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_peek_last_error_line(file_: PPIdAnsiChar; line: PIdC_INT): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_peek_last_error_line_data(file_: PPIdAnsiChar; line: PIdC_INT; data: PPIdAnsiChar; flags: PIdC_INT): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure ERR_clear_error cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_error_string(e: TIdC_ULONG; buf: PIdAnsiChar): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ERR_error_string_n(e: TIdC_ULONG; buf: PIdAnsiChar; len: TIdC_SIZET) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_lib_error_string(e: TIdC_ULONG): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_func_error_string(e: TIdC_ULONG): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_reason_error_string(e: TIdC_ULONG): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ERR_print_errors_cb(cb: ERR_print_errors_cb_cb; u: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure ERR_print_errors(bp: PBIO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // void ERR_add_error_data(int num, ...); + // procedure ERR_add_error_vdata(num: TIdC_INT; args: va_list); + function ERR_load_strings(lib: TIdC_INT; str: PERR_STRING_DATA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_load_strings_const(str: PERR_STRING_DATA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function ERR_unload_strings(lib: TIdC_INT; str: PERR_STRING_DATA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_load_ERR_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ERR_get_state: PERR_STATE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_get_next_error_library: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_set_mark: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_pop_to_mark: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ERR_clear_last_mark: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + + procedure ERR_put_error(lib: TIdC_INT; func: TIdC_INT; reason: TIdC_INT; file_: PIdAnsiChar; line: TIdC_INT); {removed 3.0.0} + procedure SSLErr(func: TIdC_INT; reason: TIdC_INT); {removed 1.0.0} + procedure X509err(const f,r : TIdC_INT); {removed 1.0.0} + function ERR_GET_REASON(const l : TIdC_INT) : TIdC_INT; {removed 1.0.0} +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + ERR_new_introduced = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + ERR_set_debug_introduced = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + ERR_set_error_introduced = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + ERR_load_strings_const_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ERR_clear_last_mark_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + ERR_put_error_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + SSLErr_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + X509err_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + ERR_GET_REASON_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + +{helper_functions} +function ERR_GET_LIB(l: TIdC_INT): TIdC_ULONG; +begin + Result := (l shr 24) and $ff; +end; +{\helper_functions} + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +procedure _SSLErr(func: TIdC_INT; reason: TIdC_INT); cdecl; +begin + ERR_put_error(ERR_LIB_SSL,func,reason,'',0); +end; + +procedure _ERR_put_error(lib: TIdC_INT; func: TIdC_INT; reason: TIdC_INT; file_: PIdAnsiChar; line: TIdC_INT); cdecl; +{ From 3.0 onwards, replaced by a macro + define ERR_put_error(lib, func, reason, file, line) + (ERR_new(), + ERR_set_debug((file), (line), OPENSSL_FUNC), + ERR_set_error((lib), (reason), '',[]))} +begin + ERR_new; + ERR_set_debug(file_,line, ''); + ERR_set_error(lib,reason,'',[]); +end; + +procedure _X509err(const f,r : TIdC_INT); cdecl; +begin + ERR_PUT_error(ERR_LIB_X509,f,r,nil,0); +end; + +function _ERR_GET_REASON(const l : TIdC_INT) : TIdC_INT; cdecl; +begin + Result := l and $fff; +end; + +{$WARN NO_RETVAL OFF} +procedure ERR_ERR_put_error(lib: TIdC_INT; func: TIdC_INT; reason: TIdC_INT; file_: PIdAnsiChar; line: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('ERR_put_error'); +end; + + +procedure ERR_ERR_new; +begin + EIdAPIFunctionNotPresent.RaiseException('ERR_new'); +end; + + +procedure ERR_ERR_set_debug(const file_: PIdAnsiChar; line: integer; const func: PIdAnsiChar); +begin + EIdAPIFunctionNotPresent.RaiseException('ERR_set_debug'); +end; + + +procedure ERR_ERR_set_error(lib: integer; reason: integer; fmt: PIdAnsiChar; args: array of const); +begin + EIdAPIFunctionNotPresent.RaiseException('ERR_set_error'); +end; + + +function ERR_ERR_load_strings_const(str: PERR_STRING_DATA): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ERR_load_strings_const'); +end; + + +function ERR_ERR_clear_last_mark: TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ERR_clear_last_mark'); +end; + + +procedure ERR_SSLErr(func: TIdC_INT; reason: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('SSLErr'); +end; + + +procedure ERR_X509err(const f,r : TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('X509err'); +end; + + +function ERR_ERR_GET_REASON(const l : TIdC_INT) : TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('ERR_GET_REASON'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_set_error_data := LoadFunction('ERR_set_error_data',AFailed); + ERR_get_error := LoadFunction('ERR_get_error',AFailed); + ERR_get_error_line := LoadFunction('ERR_get_error_line',AFailed); + ERR_get_error_line_data := LoadFunction('ERR_get_error_line_data',AFailed); + ERR_peek_error := LoadFunction('ERR_peek_error',AFailed); + ERR_peek_error_line := LoadFunction('ERR_peek_error_line',AFailed); + ERR_peek_error_line_data := LoadFunction('ERR_peek_error_line_data',AFailed); + ERR_peek_last_error := LoadFunction('ERR_peek_last_error',AFailed); + ERR_peek_last_error_line := LoadFunction('ERR_peek_last_error_line',AFailed); + ERR_peek_last_error_line_data := LoadFunction('ERR_peek_last_error_line_data',AFailed); + ERR_clear_error := LoadFunction('ERR_clear_error',AFailed); + ERR_error_string := LoadFunction('ERR_error_string',AFailed); + ERR_error_string_n := LoadFunction('ERR_error_string_n',AFailed); + ERR_lib_error_string := LoadFunction('ERR_lib_error_string',AFailed); + ERR_func_error_string := LoadFunction('ERR_func_error_string',AFailed); + ERR_reason_error_string := LoadFunction('ERR_reason_error_string',AFailed); + ERR_print_errors_cb := LoadFunction('ERR_print_errors_cb',AFailed); + ERR_print_errors := LoadFunction('ERR_print_errors',AFailed); + ERR_load_strings := LoadFunction('ERR_load_strings',AFailed); + ERR_unload_strings := LoadFunction('ERR_unload_strings',AFailed); + ERR_load_ERR_strings := LoadFunction('ERR_load_ERR_strings',AFailed); + ERR_get_state := LoadFunction('ERR_get_state',AFailed); + ERR_get_next_error_library := LoadFunction('ERR_get_next_error_library',AFailed); + ERR_set_mark := LoadFunction('ERR_set_mark',AFailed); + ERR_pop_to_mark := LoadFunction('ERR_pop_to_mark',AFailed); + ERR_put_error := LoadFunction('ERR_put_error',nil); {removed 3.0.0} + ERR_new := LoadFunction('ERR_new',nil); {introduced 3.0.0} + ERR_set_debug := LoadFunction('ERR_set_debug',nil); {introduced 3.0.0} + ERR_set_error := LoadFunction('ERR_set_error',nil); {introduced 3.0.0} + ERR_load_strings_const := LoadFunction('ERR_load_strings_const',nil); {introduced 1.1.0} + ERR_clear_last_mark := LoadFunction('ERR_clear_last_mark',nil); {introduced 1.1.0} + SSLErr := LoadFunction('SSLErr',nil); {removed 1.0.0} + X509err := LoadFunction('X509err',nil); {removed 1.0.0} + ERR_GET_REASON := LoadFunction('ERR_GET_REASON',nil); {removed 1.0.0} + if not assigned(ERR_put_error) then + begin + {$if declared(ERR_put_error_introduced)} + if LibVersion < ERR_put_error_introduced then + {$if declared(FC_ERR_put_error)} + ERR_put_error := @FC_ERR_put_error + {$else} + ERR_put_error := @ERR_ERR_put_error + {$ifend} + else + {$ifend} + {$if declared(ERR_put_error_removed)} + if ERR_put_error_removed <= LibVersion then + {$if declared(_ERR_put_error)} + ERR_put_error := @_ERR_put_error + {$else} + {$IF declared(ERR_ERR_put_error)} + ERR_put_error := @ERR_ERR_put_error + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ERR_put_error) and Assigned(AFailed) then + AFailed.Add('ERR_put_error'); + end; + + + if not assigned(ERR_new) then + begin + {$if declared(ERR_new_introduced)} + if LibVersion < ERR_new_introduced then + {$if declared(FC_ERR_new)} + ERR_new := @FC_ERR_new + {$else} + ERR_new := @ERR_ERR_new + {$ifend} + else + {$ifend} + {$if declared(ERR_new_removed)} + if ERR_new_removed <= LibVersion then + {$if declared(_ERR_new)} + ERR_new := @_ERR_new + {$else} + {$IF declared(ERR_ERR_new)} + ERR_new := @ERR_ERR_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ERR_new) and Assigned(AFailed) then + AFailed.Add('ERR_new'); + end; + + + if not assigned(ERR_set_debug) then + begin + {$if declared(ERR_set_debug_introduced)} + if LibVersion < ERR_set_debug_introduced then + {$if declared(FC_ERR_set_debug)} + ERR_set_debug := @FC_ERR_set_debug + {$else} + ERR_set_debug := @ERR_ERR_set_debug + {$ifend} + else + {$ifend} + {$if declared(ERR_set_debug_removed)} + if ERR_set_debug_removed <= LibVersion then + {$if declared(_ERR_set_debug)} + ERR_set_debug := @_ERR_set_debug + {$else} + {$IF declared(ERR_ERR_set_debug)} + ERR_set_debug := @ERR_ERR_set_debug + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ERR_set_debug) and Assigned(AFailed) then + AFailed.Add('ERR_set_debug'); + end; + + + if not assigned(ERR_set_error) then + begin + {$if declared(ERR_set_error_introduced)} + if LibVersion < ERR_set_error_introduced then + {$if declared(FC_ERR_set_error)} + ERR_set_error := @FC_ERR_set_error + {$else} + ERR_set_error := @ERR_ERR_set_error + {$ifend} + else + {$ifend} + {$if declared(ERR_set_error_removed)} + if ERR_set_error_removed <= LibVersion then + {$if declared(_ERR_set_error)} + ERR_set_error := @_ERR_set_error + {$else} + {$IF declared(ERR_ERR_set_error)} + ERR_set_error := @ERR_ERR_set_error + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ERR_set_error) and Assigned(AFailed) then + AFailed.Add('ERR_set_error'); + end; + + + if not assigned(ERR_load_strings_const) then + begin + {$if declared(ERR_load_strings_const_introduced)} + if LibVersion < ERR_load_strings_const_introduced then + {$if declared(FC_ERR_load_strings_const)} + ERR_load_strings_const := @FC_ERR_load_strings_const + {$else} + ERR_load_strings_const := @ERR_ERR_load_strings_const + {$ifend} + else + {$ifend} + {$if declared(ERR_load_strings_const_removed)} + if ERR_load_strings_const_removed <= LibVersion then + {$if declared(_ERR_load_strings_const)} + ERR_load_strings_const := @_ERR_load_strings_const + {$else} + {$IF declared(ERR_ERR_load_strings_const)} + ERR_load_strings_const := @ERR_ERR_load_strings_const + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ERR_load_strings_const) and Assigned(AFailed) then + AFailed.Add('ERR_load_strings_const'); + end; + + + if not assigned(ERR_clear_last_mark) then + begin + {$if declared(ERR_clear_last_mark_introduced)} + if LibVersion < ERR_clear_last_mark_introduced then + {$if declared(FC_ERR_clear_last_mark)} + ERR_clear_last_mark := @FC_ERR_clear_last_mark + {$else} + ERR_clear_last_mark := @ERR_ERR_clear_last_mark + {$ifend} + else + {$ifend} + {$if declared(ERR_clear_last_mark_removed)} + if ERR_clear_last_mark_removed <= LibVersion then + {$if declared(_ERR_clear_last_mark)} + ERR_clear_last_mark := @_ERR_clear_last_mark + {$else} + {$IF declared(ERR_ERR_clear_last_mark)} + ERR_clear_last_mark := @ERR_ERR_clear_last_mark + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ERR_clear_last_mark) and Assigned(AFailed) then + AFailed.Add('ERR_clear_last_mark'); + end; + + + if not assigned(SSLErr) then + begin + {$if declared(SSLErr_introduced)} + if LibVersion < SSLErr_introduced then + {$if declared(FC_SSLErr)} + SSLErr := @FC_SSLErr + {$else} + SSLErr := @ERR_SSLErr + {$ifend} + else + {$ifend} + {$if declared(SSLErr_removed)} + if SSLErr_removed <= LibVersion then + {$if declared(_SSLErr)} + SSLErr := @_SSLErr + {$else} + {$IF declared(ERR_SSLErr)} + SSLErr := @ERR_SSLErr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLErr) and Assigned(AFailed) then + AFailed.Add('SSLErr'); + end; + + + if not assigned(X509err) then + begin + {$if declared(X509err_introduced)} + if LibVersion < X509err_introduced then + {$if declared(FC_X509err)} + X509err := @FC_X509err + {$else} + X509err := @ERR_X509err + {$ifend} + else + {$ifend} + {$if declared(X509err_removed)} + if X509err_removed <= LibVersion then + {$if declared(_X509err)} + X509err := @_X509err + {$else} + {$IF declared(ERR_X509err)} + X509err := @ERR_X509err + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509err) and Assigned(AFailed) then + AFailed.Add('X509err'); + end; + + + if not assigned(ERR_GET_REASON) then + begin + {$if declared(ERR_GET_REASON_introduced)} + if LibVersion < ERR_GET_REASON_introduced then + {$if declared(FC_ERR_GET_REASON)} + ERR_GET_REASON := @FC_ERR_GET_REASON + {$else} + ERR_GET_REASON := @ERR_ERR_GET_REASON + {$ifend} + else + {$ifend} + {$if declared(ERR_GET_REASON_removed)} + if ERR_GET_REASON_removed <= LibVersion then + {$if declared(_ERR_GET_REASON)} + ERR_GET_REASON := @_ERR_GET_REASON + {$else} + {$IF declared(ERR_ERR_GET_REASON)} + ERR_GET_REASON := @ERR_ERR_GET_REASON + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(ERR_GET_REASON) and Assigned(AFailed) then + AFailed.Add('ERR_GET_REASON'); + end; + + +end; + +procedure Unload; +begin + ERR_put_error := nil; {removed 3.0.0} + ERR_new := nil; {introduced 3.0.0} + ERR_set_debug := nil; {introduced 3.0.0} + ERR_set_error := nil; {introduced 3.0.0} + ERR_set_error_data := nil; + ERR_get_error := nil; + ERR_get_error_line := nil; + ERR_get_error_line_data := nil; + ERR_peek_error := nil; + ERR_peek_error_line := nil; + ERR_peek_error_line_data := nil; + ERR_peek_last_error := nil; + ERR_peek_last_error_line := nil; + ERR_peek_last_error_line_data := nil; + ERR_clear_error := nil; + ERR_error_string := nil; + ERR_error_string_n := nil; + ERR_lib_error_string := nil; + ERR_func_error_string := nil; + ERR_reason_error_string := nil; + ERR_print_errors_cb := nil; + ERR_print_errors := nil; + ERR_load_strings := nil; + ERR_load_strings_const := nil; {introduced 1.1.0} + ERR_unload_strings := nil; + ERR_load_ERR_strings := nil; + ERR_get_state := nil; + ERR_get_next_error_library := nil; + ERR_set_mark := nil; + ERR_pop_to_mark := nil; + ERR_clear_last_mark := nil; {introduced 1.1.0} + SSLErr := nil; {removed 1.0.0} + X509err := nil; {removed 1.0.0} + ERR_GET_REASON := nil; {removed 1.0.0} +end; +{$ELSE} +procedure SSLErr(func: TIdC_INT; reason: TIdC_INT); +begin + ERR_put_error(ERR_LIB_SSL,func,reason,'',0); +end; + +procedure ERR_put_error(lib: TIdC_INT; func: TIdC_INT; reason: TIdC_INT; file_: PIdAnsiChar; line: TIdC_INT); +{ From 3.0 onwards, replaced by a macro + define ERR_put_error(lib, func, reason, file, line) + (ERR_new(), + ERR_set_debug((file), (line), OPENSSL_FUNC), + ERR_set_error((lib), (reason), '',[]))} +begin + ERR_new; + ERR_set_debug(file_,line, ''); + ERR_set_error(lib,reason,'',[]); +end; + +procedure X509err(const f,r : TIdC_INT); +begin + ERR_PUT_error(ERR_LIB_X509,f,r,nil,0); +end; + +function ERR_GET_REASON(const l : TIdC_INT) : TIdC_INT; +begin + Result := l and $fff; +end; + +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_evp.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_evp.pas new file mode 100644 index 000000000..c2057c885 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_evp.pas @@ -0,0 +1,10571 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_evp.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_evp.h2pas + and this file regenerated. IdOpenSSLHeaders_evp.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_evp; + +interface + +// Headers for OpenSSL 1.1.1 +// evp.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_obj_mac, + IdOpenSSLHeaders_ossl_typ; + +const + EVP_MAX_MD_SIZE = 64; // longest known is SHA512 + EVP_MAX_KEY_LENGTH = 64; + EVP_MAX_IV_LENGTH = 16; + EVP_MAX_BLOCK_LENGTH = 32; + PKCS5_SALT_LEN = 8; + // Default PKCS#5 iteration count + PKCS5_DEFAULT_ITER = 2048; + EVP_PK_RSA = $0001; + EVP_PK_DSA = $0002; + EVP_PK_DH = $0004; + EVP_PK_EC = $0008; + EVP_PKT_SIGN = $0010; + EVP_PKT_ENC = $0020; + EVP_PKT_EXCH = $0040; + EVP_PKS_RSA = $0100; + EVP_PKS_DSA = $0200; + EVP_PKS_EC = $0400; + + EVP_PKEY_NONE = NID_undef; + EVP_PKEY_RSA = NID_rsaEncryption; + EVP_PKEY_RSA2 = NID_rsa; + EVP_PKEY_RSA_PSS = NID_rsassaPss; + EVP_PKEY_DSA = NID_dsa; + EVP_PKEY_DSA1 = NID_dsa_2; + EVP_PKEY_DSA2 = NID_dsaWithSHA; + EVP_PKEY_DSA3 = NID_dsaWithSHA1; + EVP_PKEY_DSA4 = NID_dsaWithSHA1_2; + EVP_PKEY_DH = NID_dhKeyAgreement; + EVP_PKEY_DHX = NID_dhpublicnumber; + EVP_PKEY_EC = NID_X9_62_id_ecPublicKey; + EVP_PKEY_SM2 = NID_sm2; + EVP_PKEY_HMAC = NID_hmac; + EVP_PKEY_CMAC = NID_cmac; + EVP_PKEY_SCRYPT = NID_id_scrypt; + EVP_PKEY_TLS1_PRF = NID_tls1_prf; + EVP_PKEY_HKDF = NID_hkdf; + EVP_PKEY_POLY1305 = NID_poly1305; + EVP_PKEY_SIPHASH = NID_siphash; + EVP_PKEY_X25519 = NID_X25519; + EVP_PKEY_ED25519 = NID_ED25519; + EVP_PKEY_X448 = NID_X448; + EVP_PKEY_ED448 = NID_ED448; + + EVP_PKEY_MO_SIGN = $0001; + EVP_PKEY_MO_VERIFY = $0002; + EVP_PKEY_MO_ENCRYPT = $0004; + EVP_PKEY_MO_DECRYPT = $0008; + +// digest can only handle a single block /// + EVP_MD_FLAG_ONESHOT = $0001; + +// digest is extensible-output function; XOF /// + + EVP_MD_FLAG_XOF = $0002; + +// DigestAlgorithmIdentifier flags... /// + + EVP_MD_FLAG_DIGALGID_MASK = $0018; + +// NULL or absent parameter accepted. Use NULL /// + + EVP_MD_FLAG_DIGALGID_NULL = $0000; + +// NULL or absent parameter accepted. Use NULL for PKCS#1 otherwise absent /// + + EVP_MD_FLAG_DIGALGID_ABSENT = $0008; + +// Custom handling via ctrl /// + + EVP_MD_FLAG_DIGALGID_CUSTOM = $0018; + +// Note if suitable for use in FIPS mode /// + + EVP_MD_FLAG_FIPS = $0400; + +// Digest ctrls /// + + EVP_MD_CTRL_DIGALGID = $1; + EVP_MD_CTRL_MICALG = $2; + EVP_MD_CTRL_XOF_LEN = $3; + +// Minimum Algorithm specific ctrl value /// + + EVP_MD_CTRL_ALG_CTRL = $1000; + // not EVP_MD /// + +// values for EVP_MD_CTX flags /// + EVP_MD_CTX_FLAG_ONESHOT = $0001; + EVP_MD_CTX_FLAG_CLEANED = $0002; + EVP_MD_CTX_FLAG_REUSE = $0004; +// + // FIPS and pad options are ignored in 1.0.0; definitions are here so we + // don't accidentally reuse the values for other purposes. + /// + + EVP_MD_CTX_FLAG_NON_FIPS_ALLOW = $0008; + +// + // The following PAD options are also currently ignored in 1.0.0; digest + // parameters are handled through EVP_DigestSign//() and EVP_DigestVerify//() + // instead. + /// + EVP_MD_CTX_FLAG_PAD_MASK = $F0; + EVP_MD_CTX_FLAG_PAD_PKCS1 = $00; + EVP_MD_CTX_FLAG_PAD_X931 = $10; + EVP_MD_CTX_FLAG_PAD_PSS = $20; + + EVP_MD_CTX_FLAG_NO_INIT = $0100; +// + // Some functions such as EVP_DigestSign only finalise copies of internal + // contexts so additional data can be included after the finalisation call. + // This is inefficient if this functionality is not required: it is disabled + // if the following flag is set. + /// + EVP_MD_CTX_FLAG_FINALISE = $0200; + + +// NOTE: $0400 is reserved for internal usage /// +// Values for cipher flags /// + +// Modes for ciphers /// + + EVP_CIPH_STREAM_CIPHER = $0; + EVP_CIPH_ECB_MODE = $1; + EVP_CIPHC_MODE = $2; + EVP_CIPH_CFB_MODE = $3; + EVP_CIPH_OFB_MODE = $4; + EVP_CIPH_CTR_MODE = $5; + EVP_CIPH_GCM_MODE = $6; + EVP_CIPH_CCM_MODE = $7; + EVP_CIPH_XTS_MODE = $10001; + EVP_CIPH_WRAP_MODE = $10002; + EVP_CIPH_OCB_MODE = $10003; + EVP_CIPH_MODE = $F0007; +// Set if variable length cipher /// + EVP_CIPH_VARIABLE_LENGTH = $8; +// Set if the iv handling should be done by the cipher itself /// + EVP_CIPH_CUSTOM_IV = $10; +// Set if the cipher's init() function should be called if key is NULL /// + EVP_CIPH_ALWAYS_CALL_INIT = $20; +// Call ctrl() to init cipher parameters /// + EVP_CIPH_CTRL_INIT = $40; +// Don't use standard key length function /// + EVP_CIPH_CUSTOM_KEY_LENGTH = $80; +// Don't use standard block padding /// + EVP_CIPH_NO_PADDING = $100; +// cipher handles random key generation /// + EVP_CIPH_RAND_KEY = $200; +// cipher has its own additional copying logic /// + EVP_CIPH_CUSTOM_COPY = $400; +// Don't use standard iv length function /// + EVP_CIPH_CUSTOM_IV_LENGTH = $800; +// Allow use default ASN1 get/set iv /// + EVP_CIPH_FLAG_DEFAULT_ASN1 = $1000; +// Buffer length in bits not bytes: CFB1 mode only /// + EVP_CIPH_FLAG_LENGTH_BITS = $2000; +// Note if suitable for use in FIPS mode /// + EVP_CIPH_FLAG_FIPS = $4000; +// Allow non FIPS cipher in FIPS mode /// + EVP_CIPH_FLAG_NON_FIPS_ALLOW = $8000; +// + // Cipher handles any and all padding logic as well as finalisation. + /// + EVP_CIPH_FLAG_CUSTOM_CIPHER = $100000; + EVP_CIPH_FLAG_AEAD_CIPHER = $200000; + EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK = $400000; +// Cipher can handle pipeline operations /// + EVP_CIPH_FLAG_PIPELINE = $800000; + +// + // Cipher context flag to indicate we can handle wrap mode: if allowed in + // older applications it could overflow buffers. + /// + + EVP_CIPHER_CTX_FLAG_WRAP_ALLOW = $1; + +// ctrl() values /// + + EVP_CTRL_INIT = $0; + EVP_CTRL_SET_KEY_LENGTH = $1; + EVP_CTRL_GET_RC2_KEY_BITS = $2; + EVP_CTRL_SET_RC2_KEY_BITS = $3; + EVP_CTRL_GET_RC5_ROUNDS = $4; + EVP_CTRL_SET_RC5_ROUNDS = $5; + EVP_CTRL_RAND_KEY = $6; + EVP_CTRL_PBE_PRF_NID = $7; + EVP_CTRL_COPY = $8; + EVP_CTRL_AEAD_SET_IVLEN = $9; + EVP_CTRL_AEAD_GET_TAG = $10; + EVP_CTRL_AEAD_SET_TAG = $11; + EVP_CTRL_AEAD_SET_IV_FIXED = $12; + EVP_CTRL_GCM_SET_IVLEN = EVP_CTRL_AEAD_SET_IVLEN; + EVP_CTRL_GCM_GET_TAG = EVP_CTRL_AEAD_GET_TAG; + EVP_CTRL_GCM_SET_TAG = EVP_CTRL_AEAD_SET_TAG; + EVP_CTRL_GCM_SET_IV_FIXED = EVP_CTRL_AEAD_SET_IV_FIXED; + EVP_CTRL_GCM_IV_GEN = $13; + EVP_CTRL_CCM_SET_IVLEN = EVP_CTRL_AEAD_SET_IVLEN; + EVP_CTRL_CCM_GET_TAG = EVP_CTRL_AEAD_GET_TAG; + EVP_CTRL_CCM_SET_TAG = EVP_CTRL_AEAD_SET_TAG; + EVP_CTRL_CCM_SET_IV_FIXED = EVP_CTRL_AEAD_SET_IV_FIXED; + EVP_CTRL_CCM_SET_L = $14; + EVP_CTRL_CCM_SET_MSGLEN = $15; +// + // AEAD cipher deduces payload length and returns number of bytes required to + // store MAC and eventual padding. Subsequent call to EVP_Cipher even + // appends/verifies MAC. + /// + EVP_CTRL_AEAD_TLS1_AAD = $16; +// Used by composite AEAD ciphers; no-op in GCM; CCM... /// + EVP_CTRL_AEAD_SET_MAC_KEY = $17; +// Set the GCM invocation field; decrypt only /// + EVP_CTRL_GCM_SET_IV_INV = $18; + + EVP_CTRL_TLS1_1_MULTIBLOCK_AAD = $19; + EVP_CTRL_TLS1_1_MULTIBLOCK_ENCRYPT = $1a; + EVP_CTRL_TLS1_1_MULTIBLOCK_DECRYPT = $1b; + EVP_CTRL_TLS1_1_MULTIBLOCK_MAX_BUFSIZE = $1c; + + EVP_CTRL_SSL3_MASTER_SECRET = $1d; + +// EVP_CTRL_SET_SBOX takes the PIdAnsiChar// specifying S-boxes/// + EVP_CTRL_SET_SBOX = $1e; +// +// EVP_CTRL_SBOX_USED takes a 'TIdC_SIZET' and 'PIdAnsiChar//'; pointing at a +// pre-allocated buffer with specified size +/// + EVP_CTRL_SBOX_USED = $1f; +// EVP_CTRL_KEY_MESH takes 'TIdC_SIZET' number of bytes to mesh the key after; +// 0 switches meshing off +/// + EVP_CTRL_KEY_MESH = $20; +// EVP_CTRL_BLOCK_PADDING_MODE takes the padding mode/// + EVP_CTRL_BLOCK_PADDING_MODE = $21; + +// Set the output buffers to use for a pipelined operation/// + EVP_CTRL_SET_PIPELINE_OUTPUT_BUFS = $22; +// Set the input buffers to use for a pipelined operation/// + EVP_CTRL_SET_PIPELINE_INPUT_BUFS = $23; +// Set the input buffer lengths to use for a pipelined operation/// + EVP_CTRL_SET_PIPELINE_INPUT_LENS = $24; + + EVP_CTRL_GET_IVLEN = $25; + +// Padding modes/// + EVP_PADDING_PKCS7 = 1; + EVP_PADDING_ISO7816_4 = 2; + EVP_PADDING_ANSI923 = 3; + EVP_PADDING_ISO10126 = 4; + EVP_PADDING_ZERO = 5; + +// RFC 5246 defines additional data to be 13 bytes in length/// + EVP_AEAD_TLS1_AAD_LEN = 13; + +// GCM TLS constants/// +// Length of fixed part of IV derived from PRF/// + EVP_GCM_TLS_FIXED_IV_LEN = 4; +// Length of explicit part of IV part of TLS records/// + EVP_GCM_TLS_EXPLICIT_IV_LEN = 8; +// Length of tag for TLS + EVP_GCM_TLS_TAG_LEN = 16; + +/// CCM TLS constants /// +/// Length of fixed part of IV derived from PRF /// + EVP_CCM_TLS_FIXED_IV_LEN = 4; +/// Length of explicit part of IV part of TLS records /// + EVP_CCM_TLS_EXPLICIT_IV_LEN = 8; +/// Total length of CCM IV length for TLS /// + EVP_CCM_TLS_IV_LEN = 12; +/// Length of tag for TLS /// + EVP_CCM_TLS_TAG_LEN = 16; +/// Length of CCM8 tag for TLS /// + EVP_CCM8_TLS_TAG_LEN = 8; + +/// Length of tag for TLS /// + EVP_CHACHAPOLY_TLS_TAG_LEN = 16; + +(* Can appear as the outermost AlgorithmIdentifier *) + EVP_PBE_TYPE_OUTER = $0; +(* Is an PRF type OID *) + EVP_PBE_TYPE_PRF = $1; +(* Is a PKCS#5 v2.0 KDF *) + EVP_PBE_TYPE_KDF = $2; + + ASN1_PKEY_ALIAS = $1; + ASN1_PKEY_DYNAMIC = $2; + ASN1_PKEY_SIGPARAM_NULL = $4; + + ASN1_PKEY_CTRL_PKCS7_SIGN = $1; + ASN1_PKEY_CTRL_PKCS7_ENCRYPT = $2; + ASN1_PKEY_CTRL_DEFAULT_MD_NID = $3; + ASN1_PKEY_CTRL_CMS_SIGN = $5; + ASN1_PKEY_CTRL_CMS_ENVELOPE = $7; + ASN1_PKEY_CTRL_CMS_RI_TYPE = $8; + + ASN1_PKEY_CTRL_SET1_TLS_ENCPT = $9; + ASN1_PKEY_CTRL_GET1_TLS_ENCPT = $a; + + EVP_PKEY_OP_UNDEFINED = 0; + EVP_PKEY_OP_PARAMGEN = (1 shl 1); + EVP_PKEY_OP_KEYGEN = (1 shl 2); + EVP_PKEY_OP_SIGN = (1 shl 3); + EVP_PKEY_OP_VERIFY = (1 shl 4); + EVP_PKEY_OP_VERIFYRECOVER = (1 shl 5); + EVP_PKEY_OP_SIGNCTX = (1 shl 6); + EVP_PKEY_OP_VERIFYCTX = (1 shl 7); + EVP_PKEY_OP_ENCRYPT = (1 shl 8); + EVP_PKEY_OP_DECRYPT = (1 shl 9); + EVP_PKEY_OP_DERIVE = (1 shl 10); + + EVP_PKEY_OP_TYPE_SIG = EVP_PKEY_OP_SIGN or EVP_PKEY_OP_VERIFY + or EVP_PKEY_OP_VERIFYRECOVER or EVP_PKEY_OP_SIGNCTX or EVP_PKEY_OP_VERIFYCTX; + + EVP_PKEY_OP_TYPE_CRYPT = EVP_PKEY_OP_ENCRYPT or EVP_PKEY_OP_DECRYPT; + + EVP_PKEY_OP_TYPE_NOGEN = EVP_PKEY_OP_TYPE_SIG or EVP_PKEY_OP_TYPE_CRYPT or EVP_PKEY_OP_DERIVE; + + EVP_PKEY_OP_TYPE_GEN = EVP_PKEY_OP_PARAMGEN or EVP_PKEY_OP_KEYGEN; + + EVP_PKEY_CTRL_MD = 1; + EVP_PKEY_CTRL_PEER_KEY = 2; + + EVP_PKEY_CTRL_PKCS7_ENCRYPT = 3; + EVP_PKEY_CTRL_PKCS7_DECRYPT = 4; + + EVP_PKEY_CTRL_PKCS7_SIGN = 5; + + EVP_PKEY_CTRL_SET_MAC_KEY = 6; + + EVP_PKEY_CTRL_DIGESTINIT = 7; + +(* Used by GOST key encryption in TLS *) + EVP_PKEY_CTRL_SET_IV = 8; + + EVP_PKEY_CTRL_CMS_ENCRYPT = 9; + EVP_PKEY_CTRL_CMS_DECRYPT = 10; + EVP_PKEY_CTRL_CMS_SIGN = 11; + + EVP_PKEY_CTRL_CIPHER = 12; + + EVP_PKEY_CTRL_GET_MD = 13; + + EVP_PKEY_CTRL_SET_DIGEST_SIZE = 14; + + EVP_PKEY_ALG_CTRL = $1000; + + EVP_PKEY_FLAG_AUTOARGLEN = 2; + // + // Method handles all operations: don't assume any digest related defaults. + // + EVP_PKEY_FLAG_SIGCTX_CUSTOM = 4; + +type + EVP_MD_meth_init = function(ctx: PEVP_MD_CTX): TIdC_INT; cdecl; + EVP_MD_meth_update = function(ctx: PEVP_MD_CTX; const data: Pointer; + count: TIdC_SIZET): TIdC_INT; cdecl; + EVP_MD_meth_final = function(ctx: PEVP_MD_CTX; const md: PByte): TIdC_INT; cdecl; + EVP_MD_meth_copy = function(to_: PEVP_MD_CTX; const from: PEVP_MD_CTX): TIdC_INT; cdecl; + EVP_MD_meth_cleanup = function(ctx: PEVP_MD_CTX): TIdC_INT; cdecl; + EVP_MD_meth_ctrl = function(ctx: PEVP_MD_CTX; cmd: TIdC_INT; p1: TIdC_INT; + p2: Pointer): TIdC_INT; cdecl; + + EVP_CIPHER_meth_init = function(ctx: PEVP_CIPHER_CTX; const key: PByte; + const iv: PByte; enc: TIdC_SIZET): TIdC_INT; cdecl; + EVP_CIPHER_meth_do_cipher = function(ctx: PEVP_CIPHER_CTX; out_: PByte; + const in_: PByte; inl: TIdC_SIZET): TIdC_INT; cdecl; + EVP_CIPHER_meth_cleanup = function(v1: PEVP_CIPHER_CTX): TIdC_INT; cdecl; + EVP_CIPHER_meth_set_asn1_params = function(v1: PEVP_CIPHER_CTX; + v2: PASN1_TYPE): TIdC_INT; cdecl; + EVP_CIPHER_meth_get_asn1_params = function(v1: PEVP_CIPHER_CTX; + v2: PASN1_TYPE): TIdC_INT; cdecl; + EVP_CIPHER_meth_ctrl = function(v1: PEVP_CIPHER_CTX; type_: TIdC_INT; + arg: TIdC_INT; ptr: Pointer): TIdC_INT; cdecl; + + EVP_CTRL_TLS1_1_MULTIBLOCK_PARAM = record + out_: PByte; + inp: PByte; + len: TIdC_SIZET; + interleave: TidC_UINT; + end; + + evp_cipher_info_st = record + cipher: PEVP_CIPHER; + iv: array[0 .. EVP_MAX_IV_LENGTH - 1] of PByte; + end; + EVP_CIPHER_INFO = evp_cipher_info_st; + + EVP_MD_CTX_update = function(ctx: PEVP_MD_CTX; const data: Pointer; count: TIdC_SIZET): TIdC_INT; cdecl; + + fn = procedure(const ciph: PEVP_CIPHER; const from: PIdAnsiChar; const to_: PIdAnsiChar; x: Pointer); cdecl; + + pub_decode = function(pk: PEVP_PKEY; pub: PX509_PUBKEY): TIdC_INT; cdecl; + pub_encode = function(pub: PX509_PUBKEY; const pk: PEVP_PKEY): TIdC_INT; cdecl; + pub_cmd = function(const a: PEVP_PKEY; const b: PEVP_PKEY): TIdC_INT; cdecl; + pub_print = function(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; cdecl; + pkey_size = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + pkey_bits = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + + priv_decode = function(pk: PEVP_PKEY; const p8inf: PKCS8_PRIV_KEY_INFO): TIdC_INT; cdecl; + priv_encode = function(p8: PPKCS8_PRIV_KEY_INFO; const pk: PEVP_PKEY): TIdC_INT; cdecl; + priv_print = function(out_: PBIO; const pkea: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; cdecl; + + param_decode = function(pkey: PEVP_PKEY; const pder: PPByte; derlen: TIdC_INT): TIdC_INT; cdecl; + param_encode = function(const pkey: PEVP_PKEY; pder: PPByte): TIdC_INT; cdecl; + param_missing = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + param_copy = function(to_: PEVP_PKEY; const from: PEVP_PKEY): TIdC_INT; cdecl; + param_cmp = function(const a: PEVP_PKEY; const b: PEVP_PKEY): TIdC_INT; cdecl; + param_print = function(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; cdecl; + + pkey_free = procedure(pkey: PEVP_PKEY); cdecl; + pkey_ctrl = function(pkey: PEVP_PKEY; op: TIdC_INT; arg1: TIdC_LONG; arg2: Pointer): TIdC_INT; cdecl; + item_verify = function(ctx: PEVP_MD_CTX; const it: PASN1_ITEM; asn: Pointer; + a: PX509_ALGOR; sig: PASN1_BIT_STRING; pkey: PEVP_PKEY): TIdC_INT; cdecl; + item_sign = function(ctx: PEVP_MD_CTX; const it: PASN1_ITEM; asn: Pointer; + alg1: PX509_ALGOR; alg2: PX509_ALGOR; sig: PASN1_BIT_STRING): TIdC_INT; cdecl; + siginf_set = function(siginf: PX509_SIG_INFO; const alg: PX509_ALGOR; const sig: PASN1_STRING): TIdC_INT; cdecl; + pkey_check = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + pkey_pub_check = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + pkey_param_check = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + set_priv_key = function(pk: PEVP_PKEY; const priv: PByte; len: TIdC_SIZET): TIdC_INT; cdecl; + set_pub_key = function(pk: PEVP_PKEY; const pub: PByte; len: TIdC_SIZET): TIdC_INT; cdecl; + get_priv_key = function(const pk: PEVP_PKEY; priv: PByte; len: PIdC_SIZET): TIdC_INT; cdecl; + get_pub_key = function(const pk: PEVP_PKEY; pub: PByte; len: PIdC_SIZET): TIdC_INT; cdecl; + pkey_security_bits = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + + EVP_PKEY_gen_cb = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; +// PEVP_PKEY_gen_cb = ^EVP_PKEY_gen_cb; + + EVP_PKEY_meth_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_init = ^EVP_PKEY_meth_init; + EVP_PKEY_meth_copy_cb = function(dst: PEVP_PKEY_CTX; src: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_copy = ^EVP_PKEY_meth_copy_cb; + EVP_PKEY_meth_cleanup = procedure(ctx: PEVP_PKEY_CTX); cdecl; + PEVP_PKEY_meth_cleanup = ^EVP_PKEY_meth_cleanup; + EVP_PKEY_meth_paramgen_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_paramgen_init = ^EVP_PKEY_meth_paramgen_init; + EVP_PKEY_meth_paramgen = function(ctx: PEVP_PKEY_CTX; pkey: PEVP_PKEY): TIdC_INT; cdecl; + PEVP_PKEY_meth_paramgen = ^EVP_PKEY_meth_paramgen; + EVP_PKEY_meth_keygen_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_keygen_init = ^EVP_PKEY_meth_keygen_init; + EVP_PKEY_meth_keygen = function(ctx: PEVP_PKEY_CTX; pkey: PEVP_PKEY): TIdC_INT; cdecl; + PEVP_PKEY_meth_keygen = ^EVP_PKEY_meth_keygen; + EVP_PKEY_meth_sign_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_sign_init = ^EVP_PKEY_meth_sign_init; + EVP_PKEY_meth_sign = function(ctx: PEVP_PKEY_CTX; sig: PByte; siglen: TIdC_SIZET; + const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_sign = ^EVP_PKEY_meth_sign; + EVP_PKEY_meth_verify_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_verify_init = ^EVP_PKEY_meth_verify_init; + EVP_PKEY_meth_verify = function(ctx: PEVP_PKEY_CTX; const sig: PByte; + siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_verify = ^EVP_PKEY_meth_verify; + EVP_PKEY_meth_verify_recover_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_verify_recover_init = ^EVP_PKEY_meth_verify_recover_init; + EVP_PKEY_meth_verify_recover = function(ctx: PEVP_PKEY_CTX; sig: PByte; + siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_verify_recover = ^EVP_PKEY_meth_verify_recover; + EVP_PKEY_meth_signctx_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_signctx_init = ^EVP_PKEY_meth_signctx_init; + EVP_PKEY_meth_signctx = function(ctx: PEVP_PKEY_CTX; sig: Pbyte; + siglen: TIdC_SIZET; mctx: PEVP_MD_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_signctx = ^EVP_PKEY_meth_signctx; + EVP_PKEY_meth_verifyctx_init = function(ctx: PEVP_PKEY_CTX; mctx: PEVP_MD_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_verifyctx_init = ^EVP_PKEY_meth_verifyctx_init; + EVP_PKEY_meth_verifyctx = function(ctx: PEVP_PKEY_CTX; const sig: PByte; + siglen: TIdC_INT; mctx: PEVP_MD_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_verifyctx = ^EVP_PKEY_meth_verifyctx; + EVP_PKEY_meth_encrypt_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_encrypt_init = ^EVP_PKEY_meth_encrypt_init; + EVP_PKEY_meth_encrypt = function(ctx: PEVP_PKEY_CTX; out_: PByte; + outlen: TIdC_SIZET; const in_: PByte): TIdC_INT; cdecl; + PEVP_PKEY_meth_encrypt = ^ EVP_PKEY_meth_encrypt; + EVP_PKEY_meth_decrypt_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_decrypt_init = ^EVP_PKEY_meth_decrypt_init; + EVP_PKEY_meth_decrypt = function(ctx: PEVP_PKEY_CTX; out_: PByte; + outlen: TIdC_SIZET; const in_: PByte; inlen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_decrypt = ^EVP_PKEY_meth_decrypt; + EVP_PKEY_meth_derive_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_derive_init = ^EVP_PKEY_meth_derive_init; + EVP_PKEY_meth_derive = function(ctx: PEVP_PKEY_CTX; key: PByte; keylen: PIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_derive = ^EVP_PKEY_meth_derive; + EVP_PKEY_meth_ctrl = function(ctx: PEVP_PKEY_CTX; type_: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT; cdecl; + PEVP_PKEY_meth_ctrl = ^EVP_PKEY_meth_ctrl; + EVP_PKEY_meth_ctrl_str = function(ctx: PEVP_PKEY_CTX; key: PByte; keylen: PIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_ctrl_str = ^EVP_PKEY_meth_ctrl_str; + EVP_PKEY_meth_digestsign = function(ctx: PEVP_PKEY_CTX; sig: PByte; + siglen: PIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_digestsign = ^EVP_PKEY_meth_digestsign; + EVP_PKEY_meth_digestverify = function(ctx: PEVP_MD_CTX; const sig: PByte; + siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_digestverify = ^EVP_PKEY_meth_digestverify; + EVP_PKEY_meth_check = function(pkey: PEVP_PKEY): TIdC_INT; cdecl; + PEVP_PKEY_meth_check = ^EVP_PKEY_meth_check; + EVP_PKEY_meth_public_check = function(pkey: PEVP_PKEY): TIdC_INT; cdecl; + PEVP_PKEY_meth_public_check = ^EVP_PKEY_meth_public_check; + EVP_PKEY_meth_param_check = function(pkey: PEVP_PKEY): TIdC_INT; cdecl; + PEVP_PKEY_meth_param_check = ^EVP_PKEY_meth_param_check; + EVP_PKEY_meth_digest_custom = function(pkey: PEVP_PKEY; mctx: PEVP_MD_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_digest_custom = ^EVP_PKEY_meth_digest_custom; + + // Password based encryption function + EVP_PBE_KEYGEN = function(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; + passlen: TIdC_INT; param: PASN1_TYPE; const cipher: PEVP_CIPHER; + const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT; cdecl; + PEVP_PBE_KEYGEN = ^EVP_PBE_KEYGEN; + PPEVP_PBE_KEYGEN = ^PEVP_PBE_KEYGEN; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM EVP_MD_meth_new} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_dup} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_free} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_set_input_blocksize} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_set_result_size} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_set_app_datasize} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_set_flags} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_set_init} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_set_update} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_set_final} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_set_copy} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_set_cleanup} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_set_ctrl} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_get_input_blocksize} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_get_result_size} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_get_app_datasize} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_get_flags} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_get_init} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_get_update} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_get_final} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_get_copy} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_get_cleanup} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_meth_get_ctrl} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_new} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_dup} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_free} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_set_iv_length} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_set_flags} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_set_impl_ctx_size} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_set_init} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_set_do_cipher} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_set_cleanup} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_set_set_asn1_params} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_set_get_asn1_params} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_set_ctrl} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_get_init} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_get_do_cipher} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_get_cleanup} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_get_set_asn1_params} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_get_get_asn1_params} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_meth_get_ctrl} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_CTX_md} + {$EXTERNALSYM EVP_MD_CTX_update_fn} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_CTX_set_update_fn} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_CTX_set_pkey_ctx} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_impl_ctx_size} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_CTX_cipher} + {$EXTERNALSYM EVP_CIPHER_CTX_iv} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_CTX_original_iv} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_CTX_iv_noconst} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_CTX_buf_noconst} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_CTX_set_num} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_CTX_copy} + {$EXTERNALSYM EVP_CIPHER_CTX_get_app_data} + {$EXTERNALSYM EVP_CIPHER_CTX_set_app_data} + {$EXTERNALSYM EVP_CIPHER_CTX_get_cipher_data} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_CTX_set_cipher_data} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_CTX_ctrl} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_CTX_new} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_CTX_reset} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_CTX_free} {introduced 1.1.0} + {$EXTERNALSYM EVP_MD_CTX_copy_ex} + {$EXTERNALSYM EVP_MD_CTX_set_flags} + {$EXTERNALSYM EVP_MD_CTX_clear_flags} + {$EXTERNALSYM EVP_MD_CTX_test_flags} + {$EXTERNALSYM EVP_DigestInit_ex} + {$EXTERNALSYM EVP_DigestUpdate} + {$EXTERNALSYM EVP_DigestFinal_ex} + {$EXTERNALSYM EVP_Digest} + {$EXTERNALSYM EVP_MD_CTX_copy} + {$EXTERNALSYM EVP_DigestInit} + {$EXTERNALSYM EVP_DigestFinal} + {$EXTERNALSYM EVP_DigestFinalXOF} {introduced 1.1.0} + {$EXTERNALSYM EVP_read_pw_string} + {$EXTERNALSYM EVP_read_pw_string_min} + {$EXTERNALSYM EVP_set_pw_prompt} + {$EXTERNALSYM EVP_get_pw_prompt} + {$EXTERNALSYM EVP_BytesToKey} + {$EXTERNALSYM EVP_CIPHER_CTX_set_flags} + {$EXTERNALSYM EVP_CIPHER_CTX_clear_flags} + {$EXTERNALSYM EVP_CIPHER_CTX_test_flags} + {$EXTERNALSYM EVP_EncryptInit} + {$EXTERNALSYM EVP_EncryptInit_ex} + {$EXTERNALSYM EVP_EncryptUpdate} + {$EXTERNALSYM EVP_EncryptFinal_ex} + {$EXTERNALSYM EVP_EncryptFinal} + {$EXTERNALSYM EVP_DecryptInit} + {$EXTERNALSYM EVP_DecryptInit_ex} + {$EXTERNALSYM EVP_DecryptUpdate} + {$EXTERNALSYM EVP_DecryptFinal} + {$EXTERNALSYM EVP_DecryptFinal_ex} + {$EXTERNALSYM EVP_CipherInit} + {$EXTERNALSYM EVP_CipherInit_ex} + {$EXTERNALSYM EVP_CipherUpdate} + {$EXTERNALSYM EVP_CipherFinal} + {$EXTERNALSYM EVP_CipherFinal_ex} + {$EXTERNALSYM EVP_SignFinal} + {$EXTERNALSYM EVP_DigestSign} {introduced 1.1.0} + {$EXTERNALSYM EVP_VerifyFinal} + {$EXTERNALSYM EVP_DigestVerify} {introduced 1.1.0} + {$EXTERNALSYM EVP_DigestSignInit} + {$EXTERNALSYM EVP_DigestSignFinal} + {$EXTERNALSYM EVP_DigestVerifyInit} + {$EXTERNALSYM EVP_DigestVerifyFinal} + {$EXTERNALSYM EVP_OpenInit} + {$EXTERNALSYM EVP_OpenFinal} + {$EXTERNALSYM EVP_SealInit} + {$EXTERNALSYM EVP_SealFinal} + {$EXTERNALSYM EVP_ENCODE_CTX_new} {introduced 1.1.0} + {$EXTERNALSYM EVP_ENCODE_CTX_free} {introduced 1.1.0} + {$EXTERNALSYM EVP_ENCODE_CTX_copy} {introduced 1.1.0} + {$EXTERNALSYM EVP_ENCODE_CTX_num} {introduced 1.1.0} + {$EXTERNALSYM EVP_EncodeInit} + {$EXTERNALSYM EVP_EncodeUpdate} + {$EXTERNALSYM EVP_EncodeFinal} + {$EXTERNALSYM EVP_EncodeBlock} + {$EXTERNALSYM EVP_DecodeInit} + {$EXTERNALSYM EVP_DecodeUpdate} + {$EXTERNALSYM EVP_DecodeFinal} + {$EXTERNALSYM EVP_DecodeBlock} + {$EXTERNALSYM EVP_CIPHER_CTX_new} + {$EXTERNALSYM EVP_CIPHER_CTX_reset} {introduced 1.1.0} + {$EXTERNALSYM EVP_CIPHER_CTX_free} + {$EXTERNALSYM EVP_CIPHER_CTX_set_key_length} + {$EXTERNALSYM EVP_CIPHER_CTX_set_padding} + {$EXTERNALSYM EVP_CIPHER_CTX_ctrl} + {$EXTERNALSYM EVP_CIPHER_CTX_rand_key} + {$EXTERNALSYM BIO_f_md} + {$EXTERNALSYM BIO_f_base64} + {$EXTERNALSYM BIO_f_cipher} + {$EXTERNALSYM BIO_f_reliable} + {$EXTERNALSYM BIO_set_cipher} + {$EXTERNALSYM EVP_md_null} + {$EXTERNALSYM EVP_md5} + {$EXTERNALSYM EVP_md5_sha1} {introduced 1.1.0} + {$EXTERNALSYM EVP_sha1} + {$EXTERNALSYM EVP_sha224} + {$EXTERNALSYM EVP_sha256} + {$EXTERNALSYM EVP_sha384} + {$EXTERNALSYM EVP_sha512} + {$EXTERNALSYM EVP_sha512_224} {introduced 1.1.0} + {$EXTERNALSYM EVP_sha512_256} {introduced 1.1.0} + {$EXTERNALSYM EVP_sha3_224} {introduced 1.1.0} + {$EXTERNALSYM EVP_sha3_256} {introduced 1.1.0} + {$EXTERNALSYM EVP_sha3_384} {introduced 1.1.0} + {$EXTERNALSYM EVP_sha3_512} {introduced 1.1.0} + {$EXTERNALSYM EVP_shake128} {introduced 1.1.0} + {$EXTERNALSYM EVP_shake256} {introduced 1.1.0} + {$EXTERNALSYM EVP_enc_null} + {$EXTERNALSYM EVP_des_ecb} + {$EXTERNALSYM EVP_des_ede} + {$EXTERNALSYM EVP_des_ede3} + {$EXTERNALSYM EVP_des_ede_ecb} + {$EXTERNALSYM EVP_des_ede3_ecb} + {$EXTERNALSYM EVP_des_cfb64} + {$EXTERNALSYM EVP_des_cfb1} + {$EXTERNALSYM EVP_des_cfb8} + {$EXTERNALSYM EVP_des_ede_cfb64} + {$EXTERNALSYM EVP_des_ede3_cfb64} + {$EXTERNALSYM EVP_des_ede3_cfb1} + {$EXTERNALSYM EVP_des_ede3_cfb8} + {$EXTERNALSYM EVP_des_ofb} + {$EXTERNALSYM EVP_des_ede_ofb} + {$EXTERNALSYM EVP_des_ede3_ofb} + {$EXTERNALSYM EVP_des_cbc} + {$EXTERNALSYM EVP_des_ede_cbc} + {$EXTERNALSYM EVP_des_ede3_cbc} + {$EXTERNALSYM EVP_desx_cbc} + {$EXTERNALSYM EVP_des_ede3_wrap} + {$EXTERNALSYM EVP_rc4} + {$EXTERNALSYM EVP_rc4_40} + {$EXTERNALSYM EVP_rc2_ecb} + {$EXTERNALSYM EVP_rc2_cbc} + {$EXTERNALSYM EVP_rc2_40_cbc} + {$EXTERNALSYM EVP_rc2_64_cbc} + {$EXTERNALSYM EVP_rc2_cfb64} + {$EXTERNALSYM EVP_rc2_ofb} + {$EXTERNALSYM EVP_bf_ecb} + {$EXTERNALSYM EVP_bf_cbc} + {$EXTERNALSYM EVP_bf_cfb64} + {$EXTERNALSYM EVP_bf_ofb} + {$EXTERNALSYM EVP_cast5_ecb} + {$EXTERNALSYM EVP_cast5_cbc} + {$EXTERNALSYM EVP_cast5_cfb64} + {$EXTERNALSYM EVP_cast5_ofb} + {$EXTERNALSYM EVP_aes_128_ecb} + {$EXTERNALSYM EVP_aes_128_cbc} + {$EXTERNALSYM EVP_aes_128_cfb1} + {$EXTERNALSYM EVP_aes_128_cfb8} + {$EXTERNALSYM EVP_aes_128_cfb128} + {$EXTERNALSYM EVP_aes_128_ofb} + {$EXTERNALSYM EVP_aes_128_ctr} + {$EXTERNALSYM EVP_aes_128_ccm} + {$EXTERNALSYM EVP_aes_128_gcm} + {$EXTERNALSYM EVP_aes_128_xts} + {$EXTERNALSYM EVP_aes_128_wrap} + {$EXTERNALSYM EVP_aes_128_wrap_pad} {introduced 1.1.0} + {$EXTERNALSYM EVP_aes_128_ocb} {introduced 1.1.0} + {$EXTERNALSYM EVP_aes_192_ecb} + {$EXTERNALSYM EVP_aes_192_cbc} + {$EXTERNALSYM EVP_aes_192_cfb1} + {$EXTERNALSYM EVP_aes_192_cfb8} + {$EXTERNALSYM EVP_aes_192_cfb128} + {$EXTERNALSYM EVP_aes_192_ofb} + {$EXTERNALSYM EVP_aes_192_ctr} + {$EXTERNALSYM EVP_aes_192_ccm} + {$EXTERNALSYM EVP_aes_192_gcm} + {$EXTERNALSYM EVP_aes_192_wrap} + {$EXTERNALSYM EVP_aes_192_wrap_pad} {introduced 1.1.0} + {$EXTERNALSYM EVP_aes_192_ocb} {introduced 1.1.0} + {$EXTERNALSYM EVP_aes_256_ecb} + {$EXTERNALSYM EVP_aes_256_cbc} + {$EXTERNALSYM EVP_aes_256_cfb1} + {$EXTERNALSYM EVP_aes_256_cfb8} + {$EXTERNALSYM EVP_aes_256_cfb128} + {$EXTERNALSYM EVP_aes_256_ofb} + {$EXTERNALSYM EVP_aes_256_ctr} + {$EXTERNALSYM EVP_aes_256_ccm} + {$EXTERNALSYM EVP_aes_256_gcm} + {$EXTERNALSYM EVP_aes_256_xts} + {$EXTERNALSYM EVP_aes_256_wrap} + {$EXTERNALSYM EVP_aes_256_wrap_pad} {introduced 1.1.0} + {$EXTERNALSYM EVP_aes_256_ocb} {introduced 1.1.0} + {$EXTERNALSYM EVP_aes_128_cbc_hmac_sha1} + {$EXTERNALSYM EVP_aes_256_cbc_hmac_sha1} + {$EXTERNALSYM EVP_aes_128_cbc_hmac_sha256} + {$EXTERNALSYM EVP_aes_256_cbc_hmac_sha256} + {$EXTERNALSYM EVP_aria_128_ecb} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_128_cbc} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_128_cfb1} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_128_cfb8} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_128_cfb128} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_128_ctr} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_128_ofb} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_128_gcm} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_128_ccm} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_192_ecb} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_192_cbc} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_192_cfb1} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_192_cfb8} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_192_cfb128} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_192_ctr} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_192_ofb} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_192_gcm} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_192_ccm} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_256_ecb} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_256_cbc} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_256_cfb1} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_256_cfb8} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_256_cfb128} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_256_ctr} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_256_ofb} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_256_gcm} {introduced 1.1.0} + {$EXTERNALSYM EVP_aria_256_ccm} {introduced 1.1.0} + {$EXTERNALSYM EVP_camellia_128_ecb} + {$EXTERNALSYM EVP_camellia_128_cbc} + {$EXTERNALSYM EVP_camellia_128_cfb1} + {$EXTERNALSYM EVP_camellia_128_cfb8} + {$EXTERNALSYM EVP_camellia_128_cfb128} + {$EXTERNALSYM EVP_camellia_128_ofb} + {$EXTERNALSYM EVP_camellia_128_ctr} {introduced 1.1.0} + {$EXTERNALSYM EVP_camellia_192_ecb} + {$EXTERNALSYM EVP_camellia_192_cbc} + {$EXTERNALSYM EVP_camellia_192_cfb1} + {$EXTERNALSYM EVP_camellia_192_cfb8} + {$EXTERNALSYM EVP_camellia_192_cfb128} + {$EXTERNALSYM EVP_camellia_192_ofb} + {$EXTERNALSYM EVP_camellia_192_ctr} {introduced 1.1.0} + {$EXTERNALSYM EVP_camellia_256_ecb} + {$EXTERNALSYM EVP_camellia_256_cbc} + {$EXTERNALSYM EVP_camellia_256_cfb1} + {$EXTERNALSYM EVP_camellia_256_cfb8} + {$EXTERNALSYM EVP_camellia_256_cfb128} + {$EXTERNALSYM EVP_camellia_256_ofb} + {$EXTERNALSYM EVP_camellia_256_ctr} {introduced 1.1.0} + {$EXTERNALSYM EVP_chacha20} {introduced 1.1.0} + {$EXTERNALSYM EVP_chacha20_poly1305} {introduced 1.1.0} + {$EXTERNALSYM EVP_seed_ecb} + {$EXTERNALSYM EVP_seed_cbc} + {$EXTERNALSYM EVP_seed_cfb128} + {$EXTERNALSYM EVP_seed_ofb} + {$EXTERNALSYM EVP_sm4_ecb} {introduced 1.1.0} + {$EXTERNALSYM EVP_sm4_cbc} {introduced 1.1.0} + {$EXTERNALSYM EVP_sm4_cfb128} {introduced 1.1.0} + {$EXTERNALSYM EVP_sm4_ofb} {introduced 1.1.0} + {$EXTERNALSYM EVP_sm4_ctr} {introduced 1.1.0} + {$EXTERNALSYM EVP_add_cipher} + {$EXTERNALSYM EVP_add_digest} + {$EXTERNALSYM EVP_get_cipherbyname} + {$EXTERNALSYM EVP_get_digestbyname} + {$EXTERNALSYM EVP_CIPHER_do_all} + {$EXTERNALSYM EVP_CIPHER_do_all_sorted} + {$EXTERNALSYM EVP_MD_do_all} + {$EXTERNALSYM EVP_MD_do_all_sorted} + {$EXTERNALSYM EVP_PKEY_decrypt_old} + {$EXTERNALSYM EVP_PKEY_encrypt_old} + {$EXTERNALSYM EVP_PKEY_type} + {$EXTERNALSYM EVP_PKEY_set_type} + {$EXTERNALSYM EVP_PKEY_set_type_str} + {$EXTERNALSYM EVP_PKEY_set1_engine} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_get0_engine} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_assign} + {$EXTERNALSYM EVP_PKEY_get0} + {$EXTERNALSYM EVP_PKEY_get0_hmac} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_get0_poly1305} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_get0_siphash} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_set1_RSA} + {$EXTERNALSYM EVP_PKEY_get0_RSA} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_get1_RSA} + {$EXTERNALSYM EVP_PKEY_set1_DSA} + {$EXTERNALSYM EVP_PKEY_get0_DSA} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_get1_DSA} + {$EXTERNALSYM EVP_PKEY_set1_DH} + {$EXTERNALSYM EVP_PKEY_get0_DH} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_get1_DH} + {$EXTERNALSYM EVP_PKEY_set1_EC_KEY} + {$EXTERNALSYM EVP_PKEY_get0_EC_KEY} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_get1_EC_KEY} + {$EXTERNALSYM EVP_PKEY_new} + {$EXTERNALSYM EVP_PKEY_up_ref} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_free} + {$EXTERNALSYM d2i_PublicKey} + {$EXTERNALSYM i2d_PublicKey} + {$EXTERNALSYM d2i_PrivateKey} + {$EXTERNALSYM d2i_AutoPrivateKey} + {$EXTERNALSYM i2d_PrivateKey} + {$EXTERNALSYM EVP_PKEY_copy_parameters} + {$EXTERNALSYM EVP_PKEY_missing_parameters} + {$EXTERNALSYM EVP_PKEY_save_parameters} + {$EXTERNALSYM EVP_PKEY_cmp_parameters} + {$EXTERNALSYM EVP_PKEY_cmp} + {$EXTERNALSYM EVP_PKEY_print_public} + {$EXTERNALSYM EVP_PKEY_print_private} + {$EXTERNALSYM EVP_PKEY_print_params} + {$EXTERNALSYM EVP_PKEY_get_default_digest_nid} + {$EXTERNALSYM EVP_CIPHER_param_to_asn1} + {$EXTERNALSYM EVP_CIPHER_asn1_to_param} + {$EXTERNALSYM EVP_CIPHER_set_asn1_iv} + {$EXTERNALSYM EVP_CIPHER_get_asn1_iv} + {$EXTERNALSYM PKCS5_PBE_keyivgen} + {$EXTERNALSYM PKCS5_PBKDF2_HMAC_SHA1} + {$EXTERNALSYM PKCS5_PBKDF2_HMAC} + {$EXTERNALSYM PKCS5_v2_PBE_keyivgen} + {$EXTERNALSYM EVP_PBE_scrypt} {introduced 1.1.0} + {$EXTERNALSYM PKCS5_v2_scrypt_keyivgen} {introduced 1.1.0} + {$EXTERNALSYM PKCS5_PBE_add} + {$EXTERNALSYM EVP_PBE_CipherInit} + {$EXTERNALSYM EVP_PBE_alg_add_type} + {$EXTERNALSYM EVP_PBE_alg_add} + {$EXTERNALSYM EVP_PBE_find} + {$EXTERNALSYM EVP_PBE_cleanup} + {$EXTERNALSYM EVP_PBE_get} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_asn1_get_count} + {$EXTERNALSYM EVP_PKEY_asn1_get0} + {$EXTERNALSYM EVP_PKEY_asn1_find} + {$EXTERNALSYM EVP_PKEY_asn1_find_str} + {$EXTERNALSYM EVP_PKEY_asn1_add0} + {$EXTERNALSYM EVP_PKEY_asn1_add_alias} + {$EXTERNALSYM EVP_PKEY_asn1_get0_info} + {$EXTERNALSYM EVP_PKEY_get0_asn1} + {$EXTERNALSYM EVP_PKEY_asn1_new} + {$EXTERNALSYM EVP_PKEY_asn1_copy} + {$EXTERNALSYM EVP_PKEY_asn1_free} + {$EXTERNALSYM EVP_PKEY_asn1_set_public} + {$EXTERNALSYM EVP_PKEY_asn1_set_private} + {$EXTERNALSYM EVP_PKEY_asn1_set_param} + {$EXTERNALSYM EVP_PKEY_asn1_set_free} + {$EXTERNALSYM EVP_PKEY_asn1_set_ctrl} + {$EXTERNALSYM EVP_PKEY_asn1_set_item} + {$EXTERNALSYM EVP_PKEY_asn1_set_siginf} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_asn1_set_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_asn1_set_public_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_asn1_set_param_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_asn1_set_set_priv_key} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_asn1_set_set_pub_key} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_asn1_set_get_priv_key} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_asn1_set_get_pub_key} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_asn1_set_security_bits} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_find} + {$EXTERNALSYM EVP_PKEY_meth_new} + {$EXTERNALSYM EVP_PKEY_meth_get0_info} + {$EXTERNALSYM EVP_PKEY_meth_copy} + {$EXTERNALSYM EVP_PKEY_meth_free} + {$EXTERNALSYM EVP_PKEY_meth_add0} + {$EXTERNALSYM EVP_PKEY_meth_remove} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_get_count} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_get0} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_CTX_new} + {$EXTERNALSYM EVP_PKEY_CTX_new_id} + {$EXTERNALSYM EVP_PKEY_CTX_dup} + {$EXTERNALSYM EVP_PKEY_CTX_free} + {$EXTERNALSYM EVP_PKEY_CTX_ctrl} + {$EXTERNALSYM EVP_PKEY_CTX_ctrl_str} + {$EXTERNALSYM EVP_PKEY_CTX_ctrl_uint64} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_CTX_str2ctrl} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_CTX_hex2ctrl} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_CTX_md} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_CTX_get_operation} + {$EXTERNALSYM EVP_PKEY_CTX_set0_keygen_info} + {$EXTERNALSYM EVP_PKEY_new_mac_key} + {$EXTERNALSYM EVP_PKEY_new_raw_private_key} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_new_raw_public_key} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_get_raw_private_key} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_get_raw_public_key} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_new_CMAC_key} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_CTX_set_data} + {$EXTERNALSYM EVP_PKEY_CTX_get_data} + {$EXTERNALSYM EVP_PKEY_CTX_get0_pkey} + {$EXTERNALSYM EVP_PKEY_CTX_get0_peerkey} + {$EXTERNALSYM EVP_PKEY_CTX_set_app_data} + {$EXTERNALSYM EVP_PKEY_CTX_get_app_data} + {$EXTERNALSYM EVP_PKEY_sign_init} + {$EXTERNALSYM EVP_PKEY_sign} + {$EXTERNALSYM EVP_PKEY_verify_init} + {$EXTERNALSYM EVP_PKEY_verify} + {$EXTERNALSYM EVP_PKEY_verify_recover_init} + {$EXTERNALSYM EVP_PKEY_verify_recover} + {$EXTERNALSYM EVP_PKEY_encrypt_init} + {$EXTERNALSYM EVP_PKEY_encrypt} + {$EXTERNALSYM EVP_PKEY_decrypt_init} + {$EXTERNALSYM EVP_PKEY_decrypt} + {$EXTERNALSYM EVP_PKEY_derive_init} + {$EXTERNALSYM EVP_PKEY_derive_set_peer} + {$EXTERNALSYM EVP_PKEY_derive} + {$EXTERNALSYM EVP_PKEY_paramgen_init} + {$EXTERNALSYM EVP_PKEY_paramgen} + {$EXTERNALSYM EVP_PKEY_keygen_init} + {$EXTERNALSYM EVP_PKEY_keygen} + {$EXTERNALSYM EVP_PKEY_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_public_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_param_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_CTX_set_cb} + {$EXTERNALSYM EVP_PKEY_CTX_get_cb} + {$EXTERNALSYM EVP_PKEY_CTX_get_keygen_info} + {$EXTERNALSYM EVP_PKEY_meth_set_init} + {$EXTERNALSYM EVP_PKEY_meth_set_copy} + {$EXTERNALSYM EVP_PKEY_meth_set_cleanup} + {$EXTERNALSYM EVP_PKEY_meth_set_paramgen} + {$EXTERNALSYM EVP_PKEY_meth_set_keygen} + {$EXTERNALSYM EVP_PKEY_meth_set_sign} + {$EXTERNALSYM EVP_PKEY_meth_set_verify} + {$EXTERNALSYM EVP_PKEY_meth_set_verify_recover} + {$EXTERNALSYM EVP_PKEY_meth_set_signctx} + {$EXTERNALSYM EVP_PKEY_meth_set_verifyctx} + {$EXTERNALSYM EVP_PKEY_meth_set_encrypt} + {$EXTERNALSYM EVP_PKEY_meth_set_decrypt} + {$EXTERNALSYM EVP_PKEY_meth_set_derive} + {$EXTERNALSYM EVP_PKEY_meth_set_ctrl} + {$EXTERNALSYM EVP_PKEY_meth_set_digestsign} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_set_digestverify} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_set_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_set_public_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_set_param_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_set_digest_custom} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_get_init} + {$EXTERNALSYM EVP_PKEY_meth_get_copy} + {$EXTERNALSYM EVP_PKEY_meth_get_cleanup} + {$EXTERNALSYM EVP_PKEY_meth_get_paramgen} + {$EXTERNALSYM EVP_PKEY_meth_get_keygen} + {$EXTERNALSYM EVP_PKEY_meth_get_sign} + {$EXTERNALSYM EVP_PKEY_meth_get_verify} + {$EXTERNALSYM EVP_PKEY_meth_get_verify_recover} + {$EXTERNALSYM EVP_PKEY_meth_get_signctx} + {$EXTERNALSYM EVP_PKEY_meth_get_verifyctx} + {$EXTERNALSYM EVP_PKEY_meth_get_encrypt} + {$EXTERNALSYM EVP_PKEY_meth_get_decrypt} + {$EXTERNALSYM EVP_PKEY_meth_get_derive} + {$EXTERNALSYM EVP_PKEY_meth_get_ctrl} + {$EXTERNALSYM EVP_PKEY_meth_get_digestsign} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_get_digestverify} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_get_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_get_public_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_get_param_check} {introduced 1.1.0} + {$EXTERNALSYM EVP_PKEY_meth_get_digest_custom} {introduced 1.1.0} + {$EXTERNALSYM EVP_add_alg_module} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + {$EXTERNALSYM EVP_PKEY_assign_RSA} {removed 1.0.0} + {$EXTERNALSYM EVP_PKEY_assign_DSA} {removed 1.0.0} + {$EXTERNALSYM EVP_PKEY_assign_DH} {removed 1.0.0} + {$EXTERNALSYM EVP_PKEY_assign_EC_KEY} {removed 1.0.0} + {$EXTERNALSYM EVP_PKEY_assign_SIPHASH} {removed 1.0.0} + {$EXTERNALSYM EVP_PKEY_assign_POLY1305} {removed 1.0.0} + {$EXTERNALSYM EVP_MD_type} {removed 3.0.0} + {$EXTERNALSYM EVP_MD_pkey_type} {removed 3.0.0} + {$EXTERNALSYM EVP_MD_size} {removed 3.0.0} + {$EXTERNALSYM EVP_MD_block_size} {removed 3.0.0} + {$EXTERNALSYM EVP_MD_flags} {removed 3.0.0} + {$EXTERNALSYM EVP_MD_CTX_pkey_ctx} {introduced 1.1.0 removed 3.0.0} + {$EXTERNALSYM EVP_MD_CTX_md_data} {introduced 1.1.0 removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_nid} {removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_block_size} {removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_key_length} {removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_iv_length} {removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_flags} {removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_CTX_encrypting} {introduced 1.1.0 removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_CTX_nid} {removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_CTX_block_size} {removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_CTX_key_length} {removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_CTX_iv_length} {removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_CTX_num} {introduced 1.1.0 removed 3.0.0} + {$EXTERNALSYM BIO_set_md} {removed 1.0.0} + {$EXTERNALSYM EVP_PKEY_id} {removed 3.0.0} + {$EXTERNALSYM EVP_PKEY_base_id} {removed 3.0.0} + {$EXTERNALSYM EVP_PKEY_bits} {removed 3.0.0} + {$EXTERNALSYM EVP_PKEY_security_bits} {introduced 1.1.0 removed 3.0.0} + {$EXTERNALSYM EVP_PKEY_size} {removed 3.0.0} + {$EXTERNALSYM EVP_PKEY_set_alias_type} {introduced 1.1.0 removed 3.0.0} + {$EXTERNALSYM EVP_PKEY_set1_tls_encodedpoint} {introduced 1.1.0 removed 3.0.0} + {$EXTERNALSYM EVP_PKEY_get1_tls_encodedpoint} {introduced 1.1.0 removed 3.0.0} + {$EXTERNALSYM EVP_CIPHER_type} {removed 3.0.0} + {$EXTERNALSYM OpenSSL_add_all_ciphers} {removed 1.1.0} + {$EXTERNALSYM OpenSSL_add_all_digests} {removed 1.1.0} + {$EXTERNALSYM EVP_cleanup} {removed 1.1.0} + EVP_PKEY_assign_RSA: function(pkey: PEVP_PKEY; rsa: Pointer): TIdC_INT; cdecl = nil; {removed 1.0.0} + EVP_PKEY_assign_DSA: function(pkey: PEVP_PKEY; dsa: Pointer): TIdC_INT; cdecl = nil; {removed 1.0.0} + EVP_PKEY_assign_DH: function(pkey: PEVP_PKEY; dh: Pointer): TIdC_INT; cdecl = nil; {removed 1.0.0} + EVP_PKEY_assign_EC_KEY: function(pkey: PEVP_PKEY; eckey: Pointer): TIdC_INT; cdecl = nil; {removed 1.0.0} + EVP_PKEY_assign_SIPHASH: function(pkey: PEVP_PKEY; shkey: Pointer): TIdC_INT; cdecl = nil; {removed 1.0.0} + EVP_PKEY_assign_POLY1305: function(pkey: PEVP_PKEY; polykey: Pointer): TIdC_INT; cdecl = nil; {removed 1.0.0} + + EVP_MD_meth_new: function(md_type: TIdC_INT; pkey_type: TIdC_INT): PEVP_MD; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_dup: function(const md: PEVP_MD): PEVP_MD; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_free: procedure(md: PEVP_MD); cdecl = nil; {introduced 1.1.0} + + EVP_MD_meth_set_input_blocksize: function(md: PEVP_MD; blocksize: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_set_result_size: function(md: PEVP_MD; resultsize: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_set_app_datasize: function(md: PEVP_MD; datasize: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_set_flags: function(md: PEVP_MD; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_set_init: function(md: PEVP_MD; init: EVP_MD_meth_init): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_set_update: function(md: PEVP_MD; update: EVP_MD_meth_update): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_set_final: function(md: PEVP_MD; final_: EVP_MD_meth_final): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_set_copy: function(md: PEVP_MD; copy: EVP_MD_meth_copy): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_set_cleanup: function(md: PEVP_MD; cleanup: EVP_MD_meth_cleanup): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_set_ctrl: function(md: PEVP_MD; ctrl: EVP_MD_meth_ctrl): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + EVP_MD_meth_get_input_blocksize: function(const md: PEVP_MD): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_get_result_size: function(const md: PEVP_MD): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_get_app_datasize: function(const md: PEVP_MD): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_get_flags: function(const md: PEVP_MD): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_get_init: function(const md: PEVP_MD): EVP_MD_meth_init; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_get_update: function(const md: PEVP_MD): EVP_MD_meth_update; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_get_final: function(const md: PEVP_MD): EVP_MD_meth_final; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_get_copy: function(const md: PEVP_MD): EVP_MD_meth_copy; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_get_cleanup: function(const md: PEVP_MD): EVP_MD_meth_cleanup; cdecl = nil; {introduced 1.1.0} + EVP_MD_meth_get_ctrl: function(const md: PEVP_MD): EVP_MD_meth_ctrl; cdecl = nil; {introduced 1.1.0} + + EVP_CIPHER_meth_new: function(cipher_type: TIdC_INT; block_size: TIdC_INT; key_len: TIdC_INT): PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_dup: function(const cipher: PEVP_CIPHER): PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_free: procedure(cipher: PEVP_CIPHER); cdecl = nil; {introduced 1.1.0} + + EVP_CIPHER_meth_set_iv_length: function(cipher: PEVP_CIPHER; iv_len: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_flags: function(cipher: PEVP_CIPHER; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_impl_ctx_size: function(cipher: PEVP_CIPHER; ctx_size: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_init: function(cipher: PEVP_CIPHER; init: EVP_CIPHER_meth_init): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_do_cipher: function(cipher: PEVP_CIPHER; do_cipher: EVP_CIPHER_meth_do_cipher): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_cleanup: function(cipher: PEVP_CIPHER; cleanup: EVP_CIPHER_meth_cleanup): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_set_asn1_params: function(cipher: PEVP_CIPHER; set_asn1_parameters: EVP_CIPHER_meth_set_asn1_params): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_get_asn1_params: function(cipher: PEVP_CIPHER; get_asn1_parameters: EVP_CIPHER_meth_get_asn1_params): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_ctrl: function(cipher: PEVP_CIPHER; ctrl: EVP_CIPHER_meth_ctrl): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_init: function(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_init; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_do_cipher: function(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_do_cipher; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_cleanup: function(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_cleanup; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_set_asn1_params: function(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_set_asn1_params; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_get_asn1_params: function(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_get_asn1_params; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_ctrl: function(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_ctrl; cdecl = nil; {introduced 1.1.0} + + /// Add some extra combinations /// + //# define EVP_get_digestbynid(a) EVP_get_digestbyname(OBJ_nid2sn(a)); + //# define EVP_get_digestbyobj(a) EVP_get_digestbynid(OBJ_obj2nid(a)); + //# define EVP_get_cipherbynid(a) EVP_get_cipherbyname(OBJ_nid2sn(a)); + //# define EVP_get_cipherbyobj(a) EVP_get_cipherbynid(OBJ_obj2nid(a)); + + EVP_MD_type: function(const md: PEVP_MD): TIdC_INT; cdecl = nil; {removed 3.0.0} + //# define EVP_MD_nid(e) EVP_MD_type(e) + //# define EVP_MD_name(e) OBJ_nid2sn(EVP_MD_nid(e)) + EVP_MD_pkey_type: function(const md: PEVP_MD): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_MD_size: function(const md: PEVP_MD): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_MD_block_size: function(const md: PEVP_MD): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_MD_flags: function(const md: PEVP_MD): PIdC_ULONG; cdecl = nil; {removed 3.0.0} + + EVP_MD_CTX_md: function(ctx: PEVP_MD_CTX): PEVP_MD; cdecl = nil; + EVP_MD_CTX_update_fn: function(ctx: PEVP_MD_CTX): EVP_MD_CTX_update; cdecl = nil; {introduced 1.1.0} + EVP_MD_CTX_set_update_fn: procedure(ctx: PEVP_MD_CTX; update: EVP_MD_CTX_update); cdecl = nil; {introduced 1.1.0} + // EVP_MD_CTX_size(e) EVP_MD_size(EVP_MD_CTX_md(e)) + // EVP_MD_CTX_block_size(e) EVP_MD_block_size(EVP_MD_CTX_md(e)) + // EVP_MD_CTX_type(e) EVP_MD_type(EVP_MD_CTX_md(e)) + EVP_MD_CTX_pkey_ctx: function(const ctx: PEVP_MD_CTX): PEVP_PKEY_CTX; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + EVP_MD_CTX_set_pkey_ctx: procedure(ctx: PEVP_MD_CTX; pctx: PEVP_PKEY_CTX); cdecl = nil; {introduced 1.1.0} + EVP_MD_CTX_md_data: function(const ctx: PEVP_MD_CTX): Pointer; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + + EVP_CIPHER_nid: function(const ctx: PEVP_MD_CTX): TIdC_INT; cdecl = nil; {removed 3.0.0} + //# define EVP_CIPHER_name(e) OBJ_nid2sn(EVP_CIPHER_nid(e)) + EVP_CIPHER_block_size: function(const cipher: PEVP_CIPHER): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_CIPHER_impl_ctx_size: function(const cipher: PEVP_CIPHER): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_key_length: function(const cipher: PEVP_CIPHER): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_CIPHER_iv_length: function(const cipher: PEVP_CIPHER): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_CIPHER_flags: function(const cipher: PEVP_CIPHER): TIdC_ULONG; cdecl = nil; {removed 3.0.0} + //# define EVP_CIPHER_mode(e) (EVP_CIPHER_flags(e) & EVP_CIPH_MODE) + + EVP_CIPHER_CTX_cipher: function(const ctx: PEVP_CIPHER_CTX): PEVP_CIPHER; cdecl = nil; + EVP_CIPHER_CTX_encrypting: function(const ctx: PEVP_CIPHER_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + EVP_CIPHER_CTX_nid: function(const ctx: PEVP_CIPHER_CTX): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_CIPHER_CTX_block_size: function(const ctx: PEVP_CIPHER_CTX): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_CIPHER_CTX_key_length: function(const ctx: PEVP_CIPHER_CTX): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_CIPHER_CTX_iv_length: function(const ctx: PEVP_CIPHER_CTX): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_CIPHER_CTX_iv: function(const ctx: PEVP_CIPHER_CTX): PByte; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_CTX_original_iv: function(const ctx: PEVP_CIPHER_CTX): PByte; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_CTX_iv_noconst: function(ctx: PEVP_CIPHER_CTX): PByte; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_CTX_buf_noconst: function(ctx: PEVP_CIPHER_CTX): PByte; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_CTX_num: function(const ctx: PEVP_CIPHER_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + EVP_CIPHER_CTX_set_num: procedure(ctx: PEVP_CIPHER_CTX; num: TIdC_INT); cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_CTX_copy: function(out_: PEVP_CIPHER_CTX; const in_: PEVP_CIPHER_CTX): TIdC_INT; cdecl = nil; + EVP_CIPHER_CTX_get_app_data: function(const ctx: PEVP_CIPHER_CTX): Pointer; cdecl = nil; + EVP_CIPHER_CTX_set_app_data: procedure(ctx: PEVP_CIPHER_CTX; data: Pointer); cdecl = nil; + EVP_CIPHER_CTX_get_cipher_data: function(const ctx: PEVP_CIPHER_CTX): Pointer; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_CTX_set_cipher_data: function(ctx: PEVP_CIPHER_CTX; cipher_data: Pointer): Pointer; cdecl = nil; {introduced 1.1.0} + + //# define EVP_CIPHER_CTX_type(c) EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c)) + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define EVP_CIPHER_CTX_flags(c) EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(c)) + //# endif + //# define EVP_CIPHER_CTX_mode(c) EVP_CIPHER_mode(EVP_CIPHER_CTX_cipher(c)) + // + //# define EVP_ENCODE_LENGTH(l) ((((l)+2)/3*4)+((l)/48+1)*2+80) + //# define EVP_DECODE_LENGTH(l) (((l)+3)/4*3+80) + // + //# define EVP_SignInit_ex(a;b;c) EVP_DigestInit_ex(a;b;c) + //# define EVP_SignInit(a;b) EVP_DigestInit(a;b) + //# define EVP_SignUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + //# define EVP_VerifyInit_ex(a;b;c) EVP_DigestInit_ex(a;b;c) + //# define EVP_VerifyInit(a;b) EVP_DigestInit(a;b) + //# define EVP_VerifyUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + //# define EVP_OpenUpdate(a;b;c;d;e) EVP_DecryptUpdate(a;b;c;d;e) + //# define EVP_SealUpdate(a;b;c;d;e) EVP_EncryptUpdate(a;b;c;d;e) + //# define EVP_DigestSignUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + //# define EVP_DigestVerifyUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + + BIO_set_md: procedure(v1: PBIO; const md: PEVP_MD); cdecl = nil; {removed 1.0.0} + //# define BIO_get_md(b;mdp) BIO_ctrl(b;BIO_C_GET_MD;0;(PIdAnsiChar)(mdp)) + //# define BIO_get_md_ctx(b;mdcp) BIO_ctrl(b;BIO_C_GET_MD_CTX;0; (PIdAnsiChar)(mdcp)) + //# define BIO_set_md_ctx(b;mdcp) BIO_ctrl(b;BIO_C_SET_MD_CTX;0; (PIdAnsiChar)(mdcp)) + //# define BIO_get_cipher_status(b) BIO_ctrl(b;BIO_C_GET_CIPHER_STATUS;0;NULL) + //# define BIO_get_cipher_ctx(b;c_pp) BIO_ctrl(b;BIO_C_GET_CIPHER_CTX;0; (PIdAnsiChar)(c_pp)) + + //function EVP_Cipher(c: PEVP_CIPHER_CTX; out_: PByte; const in_: PByte; in1: TIdC_UINT): TIdC_INT; + + //# define EVP_add_cipher_alias(n;alias) OBJ_NAME_add((alias);OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS;(n)) + //# define EVP_add_digest_alias(n;alias) OBJ_NAME_add((alias);OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS;(n)) + //# define EVP_delete_cipher_alias(alias) OBJ_NAME_remove(alias;OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS); + //# define EVP_delete_digest_alias(alias) OBJ_NAME_remove(alias;OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS); + + EVP_MD_CTX_ctrl: function(ctx: PEVP_MD_CTX; cmd: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_CTX_new: function: PEVP_MD_CTX; cdecl = nil; {introduced 1.1.0} + EVP_MD_CTX_reset: function(ctx: PEVP_MD_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_MD_CTX_free: procedure(ctx: PEVP_MD_CTX); cdecl = nil; {introduced 1.1.0} + //# define EVP_MD_CTX_create() EVP_MD_CTX_new() + //# define EVP_MD_CTX_init(ctx) EVP_MD_CTX_reset((ctx)) + //# define EVP_MD_CTX_destroy(ctx) EVP_MD_CTX_free((ctx)) + EVP_MD_CTX_copy_ex: function(out_: PEVP_MD_CTX; const in_: PEVP_MD_CTX): TIdC_INT; cdecl = nil; + EVP_MD_CTX_set_flags: procedure(ctx: PEVP_MD_CTX; flags: TIdC_INT); cdecl = nil; + EVP_MD_CTX_clear_flags: procedure(ctx: PEVP_MD_CTX; flags: TIdC_INT); cdecl = nil; + EVP_MD_CTX_test_flags: function(const ctx: PEVP_MD_CTX; flags: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_DigestInit_ex: function(ctx: PEVP_MD_CTX; const type_: PEVP_MD; impl: PENGINE): TIdC_INT; cdecl = nil; + EVP_DigestUpdate: function(ctx: PEVP_MD_CTX; const d: Pointer; cnt: TIdC_SIZET): TIdC_INT; cdecl = nil; + EVP_DigestFinal_ex: function(ctx: PEVP_MD_CTX; md: PByte; s: PIdC_UINT): TIdC_INT; cdecl = nil; + EVP_Digest: function(const data: Pointer; count: TIdC_SIZET; md: PByte; size: PIdC_UINT; const type_: PEVP_MD; impl: PENGINE): TIdC_INT; cdecl = nil; + + EVP_MD_CTX_copy: function(out_: PEVP_MD_CTX; const in_: PEVP_MD_CTX): TIdC_INT; cdecl = nil; + EVP_DigestInit: function(ctx: PEVP_MD_CTX; const type_: PEVP_MD): TIdC_INT; cdecl = nil; + EVP_DigestFinal: function(ctx: PEVP_MD_CTX; md: PByte; s: PIdC_UINT): TIdC_INT; cdecl = nil; + EVP_DigestFinalXOF: function(ctx: PEVP_MD_CTX; md: PByte; len: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + EVP_read_pw_string: function(buf: PIdAnsiChar; length: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_read_pw_string_min: function(buf: PIdAnsiChar; minlen: TIdC_INT; maxlen: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_set_pw_prompt: procedure(const prompt: PIdAnsiChar); cdecl = nil; + EVP_get_pw_prompt: function: PIdAnsiChar; cdecl = nil; + EVP_BytesToKey: function(const type_: PEVP_CIPHER; const md: PEVP_MD; const salt: PByte; const data: PByte; data1: TIdC_INT; count: TIdC_INT; key: PByte; iv: PByte): TIdC_INT; cdecl = nil; + + EVP_CIPHER_CTX_set_flags: procedure(ctx: PEVP_CIPHER_CTX; flags: TIdC_INT); cdecl = nil; + EVP_CIPHER_CTX_clear_flags: procedure(ctx: PEVP_CIPHER_CTX; flags: TIdC_INT); cdecl = nil; + EVP_CIPHER_CTX_test_flags: function(const ctx: PEVP_CIPHER_CTX; flags: TIdC_INT): TIdC_INT; cdecl = nil; + + EVP_EncryptInit: function(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; const key: PByte; const iv: PByte): TIdC_INT; cdecl = nil; + EVP_EncryptInit_ex: function(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; impl: PENGINE; const key: PByte; const iv: PByte): TIdC_INT; cdecl = nil; + EVP_EncryptUpdate: function(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in_1: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_EncryptFinal_ex: function(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT; cdecl = nil; + EVP_EncryptFinal: function(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT; cdecl = nil; + + EVP_DecryptInit: function(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PidC_INT): TIdC_INT; cdecl = nil; + EVP_DecryptInit_ex: function(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; impl: PENGINE; const key: PByte; const iv: PByte): TIdC_INT; cdecl = nil; + EVP_DecryptUpdate: function(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in_1: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_DecryptFinal: function(ctx: PEVP_CIPHER_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT; cdecl = nil; + EVP_DecryptFinal_ex: function(ctx: PEVP_MD_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT; cdecl = nil; + + EVP_CipherInit: function(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; const key: PByte; const iv: PByte; enc: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_CipherInit_ex: function(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; impl: PENGINE; const key: PByte; const iv: PByte; enc: TidC_INT): TIdC_INT; cdecl = nil; + EVP_CipherUpdate: function(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in1: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_CipherFinal: function(ctx: PEVP_CIPHER_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT; cdecl = nil; + EVP_CipherFinal_ex: function(ctx: PEVP_CIPHER_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT; cdecl = nil; + + EVP_SignFinal: function(ctx: PEVP_CIPHER_CTX; md: PByte; s: PIdC_UINT; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + + EVP_DigestSign: function(ctx: PEVP_CIPHER_CTX; sigret: PByte; siglen: PIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + EVP_VerifyFinal: function(ctx: PEVP_MD_CTX; const sigbuf: PByte; siglen: TIdC_UINT; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + + EVP_DigestVerify: function(ctx: PEVP_CIPHER_CTX; const sigret: PByte; siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + EVP_DigestSignInit: function(ctx: PEVP_MD_CTX; pctx: PPEVP_PKEY_CTX; const type_: PEVP_MD; e: PENGINE; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_DigestSignFinal: function(ctx: PEVP_MD_CTX; sigret: PByte; siglen: PIdC_SIZET): TIdC_INT; cdecl = nil; + + EVP_DigestVerifyInit: function(ctx: PEVP_MD_CTX; ppctx: PPEVP_PKEY_CTX; const type_: PEVP_MD; e: PENGINE; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_DigestVerifyFinal: function(ctx: PEVP_MD_CTX; const sig: PByte; siglen: TIdC_SIZET): TIdC_INT; cdecl = nil; + + EVP_OpenInit: function(ctx: PEVP_CIPHER_CTX; const type_: PEVP_CIPHER; const ek: PByte; ek1: TIdC_INT; const iv: PByte; priv: PEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_OpenFinal: function(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT; cdecl = nil; + + EVP_SealInit: function(ctx: PEVP_CIPHER_CTX; const type_: EVP_CIPHER; ek: PPByte; ek1: PIdC_INT; iv: PByte; pubk: PPEVP_PKEY; npubk: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_SealFinal: function(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT; cdecl = nil; + + EVP_ENCODE_CTX_new: function: PEVP_ENCODE_CTX; cdecl = nil; {introduced 1.1.0} + EVP_ENCODE_CTX_free: procedure(ctx: PEVP_ENCODE_CTX); cdecl = nil; {introduced 1.1.0} + EVP_ENCODE_CTX_copy: function(dctx: PEVP_ENCODE_CTX; sctx: PEVP_ENCODE_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_ENCODE_CTX_num: function(ctx: PEVP_ENCODE_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_EncodeInit: procedure(ctx: PEVP_ENCODE_CTX); cdecl = nil; + EVP_EncodeUpdate: function(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in1: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_EncodeFinal: procedure(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT); cdecl = nil; + EVP_EncodeBlock: function(t: PByte; const f: PByte; n: TIdC_INT): TIdC_INT; cdecl = nil; + + EVP_DecodeInit: procedure(ctx: PEVP_ENCODE_CTX); cdecl = nil; + EVP_DecodeUpdate: function(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in1: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_DecodeFinal: function(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT; cdecl = nil; + EVP_DecodeBlock: function(t: PByte; const f: PByte; n: TIdC_INT): TIdC_INT; cdecl = nil; + + EVP_CIPHER_CTX_new: function: PEVP_CIPHER_CTX; cdecl = nil; + EVP_CIPHER_CTX_reset: function(c: PEVP_CIPHER_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_CIPHER_CTX_free: procedure(c: PEVP_CIPHER_CTX); cdecl = nil; + EVP_CIPHER_CTX_set_key_length: function(x: PEVP_CIPHER_CTX; keylen: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_CIPHER_CTX_set_padding: function(c: PEVP_CIPHER_CTX; pad: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_CIPHER_CTX_ctrl: function(ctx: PEVP_CIPHER_CTX; type_: TIdC_INT; arg: TIdC_INT; ptr: Pointer): TIdC_INT; cdecl = nil; + EVP_CIPHER_CTX_rand_key: function(ctx: PEVP_CIPHER_CTX; key: PByte): TIdC_INT; cdecl = nil; + + BIO_f_md: function: PBIO_METHOD; cdecl = nil; + BIO_f_base64: function: PBIO_METHOD; cdecl = nil; + BIO_f_cipher: function: PBIO_METHOD; cdecl = nil; + BIO_f_reliable: function: PBIO_METHOD; cdecl = nil; + BIO_set_cipher: function(b: PBIO; c: PEVP_CIPHER; const k: PByte; const i: PByte; enc: TIdC_INT): TIdC_INT; cdecl = nil; + + EVP_md_null: function: PEVP_MD; cdecl = nil; + + EVP_md5: function: PEVP_MD; cdecl = nil; + EVP_md5_sha1: function: PEVP_MD; cdecl = nil; {introduced 1.1.0} + + EVP_sha1: function: PEVP_MD; cdecl = nil; + EVP_sha224: function: PEVP_MD; cdecl = nil; + EVP_sha256: function: PEVP_MD; cdecl = nil; + EVP_sha384: function: PEVP_MD; cdecl = nil; + EVP_sha512: function: PEVP_MD; cdecl = nil; + EVP_sha512_224: function: PEVP_MD; cdecl = nil; {introduced 1.1.0} + EVP_sha512_256: function: PEVP_MD; cdecl = nil; {introduced 1.1.0} + EVP_sha3_224: function: PEVP_MD; cdecl = nil; {introduced 1.1.0} + EVP_sha3_256: function: PEVP_MD; cdecl = nil; {introduced 1.1.0} + EVP_sha3_384: function: PEVP_MD; cdecl = nil; {introduced 1.1.0} + EVP_sha3_512: function: PEVP_MD; cdecl = nil; {introduced 1.1.0} + EVP_shake128: function: PEVP_MD; cdecl = nil; {introduced 1.1.0} + EVP_shake256: function: PEVP_MD; cdecl = nil; {introduced 1.1.0} + + (* does nothing :-) *) + EVP_enc_null: function: PEVP_CIPHER; cdecl = nil; + + EVP_des_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede3: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede3_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_des_cfb64: function: PEVP_CIPHER; cdecl = nil; + //EVP_des_cfb EVP_des_cfb64 + EVP_des_cfb1: function: PEVP_CIPHER; cdecl = nil; + EVP_des_cfb8: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede_cfb64: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede3_cfb64: function: PEVP_CIPHER; cdecl = nil; + //EVP_des_ede3_cfb EVP_des_ede3_cfb64 + EVP_des_ede3_cfb1: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede3_cfb8: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ofb: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede_ofb: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede3_ofb: function: PEVP_CIPHER; cdecl = nil; + EVP_des_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede3_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_desx_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_des_ede3_wrap: function: PEVP_CIPHER; cdecl = nil; + // + // This should now be supported through the dev_crypto ENGINE. But also, why + // are rc4 and md5 declarations made here inside a "NO_DES" precompiler + // branch? + // + EVP_rc4: function: PEVP_CIPHER; cdecl = nil; + EVP_rc4_40: function: PEVP_CIPHER; cdecl = nil; +// function EVP_idea_ecb: PEVP_CIPHER; +// function EVP_idea_cfb64: PEVP_CIPHER; + //EVP_idea_cfb EVP_idea_cfb64 +// function EVP_idea_ofb: PEVP_CIPHER; + // function EVP_idea_cbc: PEVP_CIPHER; + EVP_rc2_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_rc2_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_rc2_40_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_rc2_64_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_rc2_cfb64: function: PEVP_CIPHER; cdecl = nil; + //EVP_rc2_cfb EVP_rc2_cfb64 + EVP_rc2_ofb: function: PEVP_CIPHER; cdecl = nil; + EVP_bf_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_bf_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_bf_cfb64: function: PEVP_CIPHER; cdecl = nil; + //EVP_bf_cfb EVP_bf_cfb64 + EVP_bf_ofb: function: PEVP_CIPHER; cdecl = nil; + EVP_cast5_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_cast5_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_cast5_cfb64: function: PEVP_CIPHER; cdecl = nil; + //EVP_cast5_cfb EVP_cast5_cfb64 + EVP_cast5_ofb: function: PEVP_CIPHER; cdecl = nil; +// function EVP_rc5_32_12_16_cbc: PEVP_CIPHER; +// function EVP_rc5_32_12_16_ecb: PEVP_CIPHER; +// function EVP_rc5_32_12_16_cfb64: PEVP_CIPHER; + //EVP_rc5_32_12_16_cfb EVP_rc5_32_12_16_cfb64 +// function EVP_rc5_32_12_16_ofb: PEVP_CIPHER; + + EVP_aes_128_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_128_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_128_cfb1: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_128_cfb8: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_128_cfb128: function: PEVP_CIPHER; cdecl = nil; + //EVP_aes_128_cfb EVP_aes_128_cfb128 + EVP_aes_128_ofb: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_128_ctr: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_128_ccm: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_128_gcm: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_128_xts: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_128_wrap: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_128_wrap_pad: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aes_128_ocb: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aes_192_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_192_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_192_cfb1: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_192_cfb8: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_192_cfb128: function: PEVP_CIPHER; cdecl = nil; + //EVP_aes_192_cfb EVP_aes_192_cfb128 + EVP_aes_192_ofb: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_192_ctr: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_192_ccm: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_192_gcm: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_192_wrap: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_192_wrap_pad: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aes_192_ocb: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aes_256_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_cfb1: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_cfb8: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_cfb128: function: PEVP_CIPHER; cdecl = nil; + //EVP_aes_256_cfb EVP_aes_256_cfb128 + EVP_aes_256_ofb: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_ctr: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_ccm: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_gcm: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_xts: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_wrap: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_wrap_pad: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aes_256_ocb: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aes_128_cbc_hmac_sha1: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_cbc_hmac_sha1: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_128_cbc_hmac_sha256: function: PEVP_CIPHER; cdecl = nil; + EVP_aes_256_cbc_hmac_sha256: function: PEVP_CIPHER; cdecl = nil; + + EVP_aria_128_ecb: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_128_cbc: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_128_cfb1: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_128_cfb8: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_128_cfb128: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_128_ctr: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_128_ofb: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_128_gcm: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_128_ccm: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_192_ecb: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_192_cbc: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_192_cfb1: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_192_cfb8: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_192_cfb128: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + //EVP_aria_192_cfb EVP_aria_192_cfb128 + EVP_aria_192_ctr: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_192_ofb: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_192_gcm: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_192_ccm: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_256_ecb: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_256_cbc: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_256_cfb1: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_256_cfb8: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_256_cfb128: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + //EVP_aria_256_cfb EVP_aria_256_cfb128 + EVP_aria_256_ctr: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_256_ofb: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_256_gcm: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_aria_256_ccm: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + + EVP_camellia_128_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_128_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_128_cfb1: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_128_cfb8: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_128_cfb128: function: PEVP_CIPHER; cdecl = nil; + //EVP_camellia_128_cfb EVP_camellia_128_cfb128 + EVP_camellia_128_ofb: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_128_ctr: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_camellia_192_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_192_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_192_cfb1: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_192_cfb8: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_192_cfb128: function: PEVP_CIPHER; cdecl = nil; + //EVP_camellia_192_cfb EVP_camellia_192_cfb128 + EVP_camellia_192_ofb: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_192_ctr: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_camellia_256_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_256_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_256_cfb1: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_256_cfb8: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_256_cfb128: function: PEVP_CIPHER; cdecl = nil; + //EVP_camellia_256_cfb EVP_camellia_256_cfb128 + EVP_camellia_256_ofb: function: PEVP_CIPHER; cdecl = nil; + EVP_camellia_256_ctr: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + + EVP_chacha20: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_chacha20_poly1305: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + + EVP_seed_ecb: function: PEVP_CIPHER; cdecl = nil; + EVP_seed_cbc: function: PEVP_CIPHER; cdecl = nil; + EVP_seed_cfb128: function: PEVP_CIPHER; cdecl = nil; + //EVP_seed_cfb EVP_seed_cfb128 + EVP_seed_ofb: function: PEVP_CIPHER; cdecl = nil; + + EVP_sm4_ecb: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_sm4_cbc: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_sm4_cfb128: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + //EVP_sm4_cfb EVP_sm4_cfb128 + EVP_sm4_ofb: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + EVP_sm4_ctr: function: PEVP_CIPHER; cdecl = nil; {introduced 1.1.0} + + EVP_add_cipher: function(const cipher: PEVP_CIPHER): TIdC_INT; cdecl = nil; + EVP_add_digest: function(const digest: PEVP_MD): TIdC_INT; cdecl = nil; + + EVP_get_cipherbyname: function(const name: PIdAnsiChar): PEVP_CIPHER; cdecl = nil; + EVP_get_digestbyname: function(const name: PIdAnsiChar): PEVP_MD; cdecl = nil; + + EVP_CIPHER_do_all: procedure(AFn: fn; arg: Pointer); cdecl = nil; + EVP_CIPHER_do_all_sorted: procedure(AFn: fn; arg: Pointer); cdecl = nil; + + EVP_MD_do_all: procedure(AFn: fn; arg: Pointer); cdecl = nil; + EVP_MD_do_all_sorted: procedure(AFn: fn; arg: Pointer); cdecl = nil; + + EVP_PKEY_decrypt_old: function(dec_key: PByte; const enc_key: PByte; enc_key_len: TIdC_INT; private_key: PEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_PKEY_encrypt_old: function(dec_key: PByte; const enc_key: PByte; key_len: TIdC_INT; pub_key: PEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_PKEY_type: function(type_: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_PKEY_id: function(const pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_PKEY_base_id: function(const pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_PKEY_bits: function(const pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_PKEY_security_bits: function(const pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + EVP_PKEY_size: function(const pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; {removed 3.0.0} + EVP_PKEY_set_type: function(pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_PKEY_set_type_str: function(pkey: PEVP_PKEY; const str: PIdAnsiChar; len: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_PKEY_set_alias_type: function(pkey: PEVP_PKEY; type_: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + + EVP_PKEY_set1_engine: function(pkey: PEVP_PKEY; e: PENGINE): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_get0_engine: function(const pkey: PEVP_PKEY): PENGINE; cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_assign: function(pkey: PEVP_PKEY; type_: TIdC_INT; key: Pointer): TIdC_INT; cdecl = nil; + EVP_PKEY_get0: function(const pkey: PEVP_PKEY): Pointer; cdecl = nil; + EVP_PKEY_get0_hmac: function(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_get0_poly1305: function(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_get0_siphash: function(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte; cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_set1_RSA: function(pkey: PEVP_PKEY; key: PRSA): TIdC_INT; cdecl = nil; + EVP_PKEY_get0_RSA: function(pkey: PEVP_PKEY): PRSA; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_get1_RSA: function(pkey: PEVP_PKEY): PRSA; cdecl = nil; + + EVP_PKEY_set1_DSA: function(pkey: PEVP_PKEY; key: PDSA): TIdC_INT; cdecl = nil; + EVP_PKEY_get0_DSA: function(pkey: PEVP_PKEY): PDSA; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_get1_DSA: function(pkey: PEVP_PKEY): PDSA; cdecl = nil; + + EVP_PKEY_set1_DH: function(pkey: PEVP_PKEY; key: PDH): TIdC_INT; cdecl = nil; + EVP_PKEY_get0_DH: function(pkey: PEVP_PKEY): PDH; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_get1_DH: function(pkey: PEVP_PKEY): PDH; cdecl = nil; + + EVP_PKEY_set1_EC_KEY: function(pkey: PEVP_PKEY; key: PEC_KEY): TIdC_INT; cdecl = nil; + EVP_PKEY_get0_EC_KEY: function(pkey: PEVP_PKEY): PEC_KEY; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_get1_EC_KEY: function(pkey: PEVP_PKEY): PEC_KEY; cdecl = nil; + + EVP_PKEY_new: function: PEVP_PKEY; cdecl = nil; + EVP_PKEY_up_ref: function(pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_free: procedure(pkey: PEVP_PKEY); cdecl = nil; + + d2i_PublicKey: function(type_: TIdC_INT; a: PPEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY; cdecl = nil; + i2d_PublicKey: function(a: PEVP_PKEY; pp: PPByte): TIdC_INT; cdecl = nil; + + d2i_PrivateKey: function(type_: TIdC_INT; a: PEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY; cdecl = nil; + d2i_AutoPrivateKey: function(a: PPEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY; cdecl = nil; + i2d_PrivateKey: function(a: PEVP_PKEY; pp: PPByte): TIdC_INT; cdecl = nil; + + EVP_PKEY_copy_parameters: function(to_: PEVP_PKEY; const from: PEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_PKEY_missing_parameters: function(const pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_PKEY_save_parameters: function(pkey: PEVP_PKEY; mode: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_PKEY_cmp_parameters: function(const a: PEVP_PKEY; const b: PEVP_PKEY): TIdC_INT; cdecl = nil; + + EVP_PKEY_cmp: function(const a: PEVP_PKEY; const b: PEVP_PKEY): TIdC_INT; cdecl = nil; + + EVP_PKEY_print_public: function(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; cdecl = nil; + EVP_PKEY_print_private: function(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; cdecl = nil; + EVP_PKEY_print_params: function(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; cdecl = nil; + + EVP_PKEY_get_default_digest_nid: function(pkey: PEVP_PKEY; pnid: PIdC_INT): TIdC_INT; cdecl = nil; + + EVP_PKEY_set1_tls_encodedpoint: function(pkey: PEVP_PKEY; const pt: PByte; ptlen: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + EVP_PKEY_get1_tls_encodedpoint: function(pkey: PEVP_PKEY; ppt: PPByte): TIdC_SIZET; cdecl = nil; {introduced 1.1.0 removed 3.0.0} + + EVP_CIPHER_type: function(const ctx: PEVP_CIPHER): TIdC_INT; cdecl = nil; {removed 3.0.0} + + (* calls methods *) + EVP_CIPHER_param_to_asn1: function(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT; cdecl = nil; + EVP_CIPHER_asn1_to_param: function(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT; cdecl = nil; + + (* These are used by EVP_CIPHER methods *) + EVP_CIPHER_set_asn1_iv: function(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT; cdecl = nil; + EVP_CIPHER_get_asn1_iv: function(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT; cdecl = nil; + + (* PKCS5 password based encryption *) + PKCS5_PBE_keyivgen: function(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const cipher: PEVP_CIPHER; const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT; cdecl = nil; + PKCS5_PBKDF2_HMAC_SHA1: function(const pass: PIdAnsiChar; passlen: TIdC_INT; const salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; keylen: TIdC_INT; out_: PByte): TIdC_INT; cdecl = nil; + PKCS5_PBKDF2_HMAC: function(const pass: PIdAnsiChar; passlen: TIdC_INT; const salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; const digest: PEVP_MD; keylen: TIdC_INT; out_: PByte): TIdC_INT; cdecl = nil; + PKCS5_v2_PBE_keyivgen: function(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const cipher: PEVP_CIPHER; const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT; cdecl = nil; + + EVP_PBE_scrypt: function(const pass: PIdAnsiChar; passlen: TIdC_SIZET; const salt: PByte; saltlen: TIdC_SIZET; N: TIdC_UINT64; r: TIdC_UINT64; p: TIdC_UINT64; maxmem: TIdC_UINT64; key: PByte; keylen: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + PKCS5_v2_scrypt_keyivgen: function(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const c: PEVP_CIPHER; const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + PKCS5_PBE_add: procedure; cdecl = nil; + + EVP_PBE_CipherInit: function(pbe_obj: PASN1_OBJECT; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; ctx: PEVP_CIPHER_CTX; en_de: TIdC_INT): TIdC_INT; cdecl = nil; + + (* PBE type *) + EVP_PBE_alg_add_type: function(pbe_type: TIdC_INT; pbe_nid: TIdC_INT; cipher_nid: TIdC_INT; md_nid: TIdC_INT; keygen: PEVP_PBE_KEYGEN): TIdC_INT; cdecl = nil; + EVP_PBE_alg_add: function(nid: TIdC_INT; const cipher: PEVP_CIPHER; const md: PEVP_MD; keygen: PEVP_PBE_KEYGEN): TIdC_INT; cdecl = nil; + EVP_PBE_find: function(type_: TIdC_INT; pbe_nid: TIdC_INT; pcnid: PIdC_INT; pmnid: PIdC_INT; pkeygen: PPEVP_PBE_KEYGEN): TIdC_INT; cdecl = nil; + EVP_PBE_cleanup: procedure; cdecl = nil; + EVP_PBE_get: function(ptype: PIdC_INT; ppbe_nid: PIdC_INT; num: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_asn1_get_count: function: TIdC_INT; cdecl = nil; + EVP_PKEY_asn1_get0: function(idx: TIdC_INT): PEVP_PKEY_ASN1_METHOD; cdecl = nil; + EVP_PKEY_asn1_find: function(pe: PPENGINE; type_: TIdC_INT): PEVP_PKEY_ASN1_METHOD; cdecl = nil; + EVP_PKEY_asn1_find_str: function(pe: PPENGINE; const str: PIdAnsiChar; len: TIdC_INT): PEVP_PKEY_ASN1_METHOD; cdecl = nil; + EVP_PKEY_asn1_add0: function(const ameth: PEVP_PKEY_ASN1_METHOD): TIdC_INT; cdecl = nil; + EVP_PKEY_asn1_add_alias: function(to_: TIdC_INT; from: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_PKEY_asn1_get0_info: function(ppkey_id: PIdC_INT; pkey_base_id: PIdC_INT; ppkey_flags: PIdC_INT; const pinfo: PPIdAnsiChar; const ppem_str: PPIdAnsiChar; const ameth: PEVP_PKEY_ASN1_METHOD): TIdC_INT; cdecl = nil; + + EVP_PKEY_get0_asn1: function(const pkey: PEVP_PKEY): PEVP_PKEY_ASN1_METHOD; cdecl = nil; + EVP_PKEY_asn1_new: function(id: TIdC_INT; flags: TIdC_INT; const pem_str: PIdAnsiChar; const info: PIdAnsiChar): PEVP_PKEY_ASN1_METHOD; cdecl = nil; + EVP_PKEY_asn1_copy: procedure(dst: PEVP_PKEY_ASN1_METHOD; const src: PEVP_PKEY_ASN1_METHOD); cdecl = nil; + EVP_PKEY_asn1_free: procedure(ameth: PEVP_PKEY_ASN1_METHOD); cdecl = nil; + + EVP_PKEY_asn1_set_public: procedure(ameth: PEVP_PKEY_ASN1_METHOD; APub_decode: pub_decode; APub_encode: pub_encode; APub_cmd: pub_cmd; APub_print: pub_print; APkey_size: pkey_size; APkey_bits: pkey_bits); cdecl = nil; + EVP_PKEY_asn1_set_private: procedure(ameth: PEVP_PKEY_ASN1_METHOD; APriv_decode: priv_decode; APriv_encode: priv_encode; APriv_print: priv_print); cdecl = nil; + EVP_PKEY_asn1_set_param: procedure(ameth: PEVP_PKEY_ASN1_METHOD; AParam_decode: param_decode; AParam_encode: param_encode; AParam_missing: param_missing; AParam_copy: param_copy; AParam_cmp: param_cmp; AParam_print: param_print); cdecl = nil; + + EVP_PKEY_asn1_set_free: procedure(ameth: PEVP_PKEY_ASN1_METHOD; APkey_free: pkey_free); cdecl = nil; + EVP_PKEY_asn1_set_ctrl: procedure(ameth: PEVP_PKEY_ASN1_METHOD; APkey_ctrl: pkey_ctrl); cdecl = nil; + EVP_PKEY_asn1_set_item: procedure(ameth: PEVP_PKEY_ASN1_METHOD; AItem_verify: item_verify; AItem_sign: item_sign); cdecl = nil; + + EVP_PKEY_asn1_set_siginf: procedure(ameth: PEVP_PKEY_ASN1_METHOD; ASiginf_set: siginf_set); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_asn1_set_check: procedure(ameth: PEVP_PKEY_ASN1_METHOD; APkey_check: pkey_check); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_asn1_set_public_check: procedure(ameth: PEVP_PKEY_ASN1_METHOD; APkey_pub_check: pkey_pub_check); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_asn1_set_param_check: procedure(ameth: PEVP_PKEY_ASN1_METHOD; APkey_param_check: pkey_param_check); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_asn1_set_set_priv_key: procedure(ameth: PEVP_PKEY_ASN1_METHOD; ASet_priv_key: set_priv_key); cdecl = nil; {introduced 1.1.0} + EVP_PKEY_asn1_set_set_pub_key: procedure(ameth: PEVP_PKEY_ASN1_METHOD; ASet_pub_key: set_pub_key); cdecl = nil; {introduced 1.1.0} + EVP_PKEY_asn1_set_get_priv_key: procedure(ameth: PEVP_PKEY_ASN1_METHOD; AGet_priv_key: get_priv_key); cdecl = nil; {introduced 1.1.0} + EVP_PKEY_asn1_set_get_pub_key: procedure(ameth: PEVP_PKEY_ASN1_METHOD; AGet_pub_key: get_pub_key); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_asn1_set_security_bits: procedure(ameth: PEVP_PKEY_ASN1_METHOD; APkey_security_bits: pkey_security_bits); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_find: function(type_: TIdC_INT): PEVP_PKEY_METHOD; cdecl = nil; + EVP_PKEY_meth_new: function(id: TIdC_INT; flags: TIdC_INT): PEVP_PKEY_METHOD; cdecl = nil; + EVP_PKEY_meth_get0_info: procedure(ppkey_id: PIdC_INT; pflags: PIdC_INT; const meth: PEVP_PKEY_METHOD); cdecl = nil; + EVP_PKEY_meth_copy: procedure(dst: PEVP_PKEY_METHOD; const src: PEVP_PKEY_METHOD); cdecl = nil; + EVP_PKEY_meth_free: procedure(pmeth: PEVP_PKEY_METHOD); cdecl = nil; + EVP_PKEY_meth_add0: function(const pmeth: PEVP_PKEY_METHOD): TIdC_INT; cdecl = nil; + EVP_PKEY_meth_remove: function(const pmeth: PEVP_PKEY_METHOD): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_meth_get_count: function: TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_meth_get0: function(idx: TIdC_SIZET): PEVP_PKEY_METHOD; cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_CTX_new: function(pkey: PEVP_PKEY; e: PENGINE): PEVP_PKEY_CTX; cdecl = nil; + EVP_PKEY_CTX_new_id: function(id: TIdC_INT; e: PENGINE): PEVP_PKEY_CTX; cdecl = nil; + EVP_PKEY_CTX_dup: function(ctx: PEVP_PKEY_CTX): PEVP_PKEY_CTX; cdecl = nil; + EVP_PKEY_CTX_free: procedure(ctx: PEVP_PKEY_CTX); cdecl = nil; + + EVP_PKEY_CTX_ctrl: function(ctx: PEVP_PKEY_CTX; keytype: TIdC_INT; optype: TIdC_INT; cmd: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT; cdecl = nil; + EVP_PKEY_CTX_ctrl_str: function(ctx: PEVP_PKEY_CTX; const type_: PIdAnsiChar; const value: PIdAnsiChar): TIdC_INT; cdecl = nil; + EVP_PKEY_CTX_ctrl_uint64: function(ctx: PEVP_PKEY_CTX; keytype: TIdC_INT; optype: TIdC_INT; cmd: TIdC_INT; value: TIdC_UINT64): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_CTX_str2ctrl: function(ctx: PEVP_PKEY_CTX; cmd: TIdC_INT; const str: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_CTX_hex2ctrl: function(ctx: PEVP_PKEY_CTX; cmd: TIdC_INT; const hex: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_CTX_md: function(ctx: PEVP_PKEY_CTX; optype: TIdC_INT; cmd: TIdC_INT; const md: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_CTX_get_operation: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; + EVP_PKEY_CTX_set0_keygen_info: procedure(ctx: PEVP_PKEY_CTX; dat: PIdC_INT; datlen: TIdC_INT); cdecl = nil; + + EVP_PKEY_new_mac_key: function(type_: TIdC_INT; e: PENGINE; const key: PByte; keylen: TIdC_INT): PEVP_PKEY; cdecl = nil; + EVP_PKEY_new_raw_private_key: function(type_: TIdC_INT; e: PENGINE; const priv: PByte; len: TIdC_SIZET): PEVP_PKEY; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_new_raw_public_key: function(type_: TIdC_INT; e: PENGINE; const pub: PByte; len: TIdC_SIZET): PEVP_PKEY; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_get_raw_private_key: function(const pkey: PEVP_PKEY; priv: PByte; len: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_get_raw_public_key: function(const pkey: PEVP_PKEY; pub: PByte; len: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_new_CMAC_key: function(e: PENGINE; const priv: PByte; len: TIdC_SIZET; const cipher: PEVP_CIPHER): PEVP_PKEY; cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_CTX_set_data: procedure(ctx: PEVP_PKEY_CTX; data: Pointer); cdecl = nil; + EVP_PKEY_CTX_get_data: function(ctx: PEVP_PKEY_CTX): Pointer; cdecl = nil; + EVP_PKEY_CTX_get0_pkey: function(ctx: PEVP_PKEY_CTX): PEVP_PKEY; cdecl = nil; + + EVP_PKEY_CTX_get0_peerkey: function(ctx: PEVP_PKEY_CTX): PEVP_PKEY; cdecl = nil; + + EVP_PKEY_CTX_set_app_data: procedure(ctx: PEVP_PKEY_CTX; data: Pointer); cdecl = nil; + EVP_PKEY_CTX_get_app_data: function(ctx: PEVP_PKEY_CTX): Pointer; cdecl = nil; + + EVP_PKEY_sign_init: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; + EVP_PKEY_sign: function(ctx: PEVP_PKEY_CTX; sig: PByte; siglen: PIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl = nil; + EVP_PKEY_verify_init: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; + EVP_PKEY_verify: function(ctx: PEVP_PKEY_CTX; const sig: PByte; siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl = nil; + EVP_PKEY_verify_recover_init: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; + EVP_PKEY_verify_recover: function(ctx: PEVP_PKEY_CTX; rout: PByte; routlen: PIdC_SIZET; const sig: PByte; siglen: TIdC_SIZET): TIdC_INT; cdecl = nil; + EVP_PKEY_encrypt_init: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; + EVP_PKEY_encrypt: function(ctx: PEVP_PKEY_CTX; out_: PByte; outlen: PIdC_SIZET; const in_: PByte; inlen: TIdC_SIZET): TIdC_INT; cdecl = nil; + EVP_PKEY_decrypt_init: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; + EVP_PKEY_decrypt: function(ctx: PEVP_PKEY_CTX; out_: PByte; outlen: PIdC_SIZET; const in_: PByte; inlen: TIdC_SIZET): TIdC_INT; cdecl = nil; + + EVP_PKEY_derive_init: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; + EVP_PKEY_derive_set_peer: function(ctx: PEVP_PKEY_CTX; peer: PEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_PKEY_derive: function(ctx: PEVP_PKEY_CTX; key: PByte; keylen: PIdC_SIZET): TIdC_INT; cdecl = nil; + + EVP_PKEY_paramgen_init: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; + EVP_PKEY_paramgen: function(ctx: PEVP_PKEY_CTX; ppkey: PPEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_PKEY_keygen_init: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; + EVP_PKEY_keygen: function(ctx: PEVP_PKEY_CTX; ppkey: PPEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_PKEY_check: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_public_check: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + EVP_PKEY_param_check: function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_CTX_set_cb: procedure(ctx: PEVP_PKEY_CTX; cb: EVP_PKEY_gen_cb); cdecl = nil; + EVP_PKEY_CTX_get_cb: function(ctx: PEVP_PKEY_CTX): EVP_PKEY_gen_cb; cdecl = nil; + + EVP_PKEY_CTX_get_keygen_info: function(ctx: PEVP_PKEY_CTX; idx: TIdC_INT): TIdC_INT; cdecl = nil; + + EVP_PKEY_meth_set_init: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_init: EVP_PKEY_meth_init); cdecl = nil; + + EVP_PKEY_meth_set_copy: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_copy_cb: EVP_PKEY_meth_copy_cb); cdecl = nil; + + EVP_PKEY_meth_set_cleanup: procedure(pmeth: PEVP_PKEY_METHOD; PEVP_PKEY_meth_cleanup: EVP_PKEY_meth_cleanup); cdecl = nil; + + EVP_PKEY_meth_set_paramgen: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_paramgen_init: EVP_PKEY_meth_paramgen_init; AEVP_PKEY_meth_paramgen: EVP_PKEY_meth_paramgen_init); cdecl = nil; + + EVP_PKEY_meth_set_keygen: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_keygen_init: EVP_PKEY_meth_keygen_init; AEVP_PKEY_meth_keygen: EVP_PKEY_meth_keygen); cdecl = nil; + + EVP_PKEY_meth_set_sign: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_sign_init: EVP_PKEY_meth_sign_init; AEVP_PKEY_meth_sign: EVP_PKEY_meth_sign); cdecl = nil; + + EVP_PKEY_meth_set_verify: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_init: EVP_PKEY_meth_verify_init; AEVP_PKEY_meth_verify: EVP_PKEY_meth_verify_init); cdecl = nil; + + EVP_PKEY_meth_set_verify_recover: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_recover_init: EVP_PKEY_meth_verify_recover_init; AEVP_PKEY_meth_verify_recover: EVP_PKEY_meth_verify_recover_init); cdecl = nil; + + EVP_PKEY_meth_set_signctx: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_signctx_init: EVP_PKEY_meth_signctx_init; AEVP_PKEY_meth_signctx: EVP_PKEY_meth_signctx); cdecl = nil; + + EVP_PKEY_meth_set_verifyctx: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verifyctx_init: EVP_PKEY_meth_verifyctx_init; AEVP_PKEY_meth_verifyctx: EVP_PKEY_meth_verifyctx); cdecl = nil; + + EVP_PKEY_meth_set_encrypt: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_encrypt_init: EVP_PKEY_meth_encrypt_init; AEVP_PKEY_meth_encrypt: EVP_PKEY_meth_encrypt); cdecl = nil; + + EVP_PKEY_meth_set_decrypt: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_decrypt_init: EVP_PKEY_meth_decrypt_init; AEVP_PKEY_meth_decrypt: EVP_PKEY_meth_decrypt); cdecl = nil; + + EVP_PKEY_meth_set_derive: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_derive_init: EVP_PKEY_meth_derive_init; AEVP_PKEY_meth_derive: EVP_PKEY_meth_derive); cdecl = nil; + + EVP_PKEY_meth_set_ctrl: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_ctrl: EVP_PKEY_meth_ctrl; AEVP_PKEY_meth_ctrl_str: EVP_PKEY_meth_ctrl_str); cdecl = nil; + + EVP_PKEY_meth_set_digestsign: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestsign: EVP_PKEY_meth_digestsign); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_set_digestverify: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestverify: EVP_PKEY_meth_digestverify); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_set_check: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_check: EVP_PKEY_meth_check); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_set_public_check: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_public_check: EVP_PKEY_meth_public_check); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_set_param_check: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_param_check: EVP_PKEY_meth_param_check); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_set_digest_custom: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digest_custom: EVP_PKEY_meth_digest_custom); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_get_init: procedure(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_init: PEVP_PKEY_meth_init); cdecl = nil; + + EVP_PKEY_meth_get_copy: procedure(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_copy: PEVP_PKEY_meth_copy); cdecl = nil; + + EVP_PKEY_meth_get_cleanup: procedure(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_cleanup: PEVP_PKEY_meth_cleanup); cdecl = nil; + + EVP_PKEY_meth_get_paramgen: procedure(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_paramgen_init: EVP_PKEY_meth_paramgen_init; AEVP_PKEY_meth_paramgen: PEVP_PKEY_meth_paramgen); cdecl = nil; + + EVP_PKEY_meth_get_keygen: procedure(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_keygen_init: EVP_PKEY_meth_keygen_init; AEVP_PKEY_meth_keygen: PEVP_PKEY_meth_keygen); cdecl = nil; + + EVP_PKEY_meth_get_sign: procedure(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_sign_init: PEVP_PKEY_meth_sign_init; AEVP_PKEY_meth_sign: PEVP_PKEY_meth_sign); cdecl = nil; + + EVP_PKEY_meth_get_verify: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_init: PEVP_PKEY_meth_verify_init; AEVP_PKEY_meth_verify: PEVP_PKEY_meth_verify_init); cdecl = nil; + + EVP_PKEY_meth_get_verify_recover: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_recover_init: PEVP_PKEY_meth_verify_recover_init; AEVP_PKEY_meth_verify_recover: PEVP_PKEY_meth_verify_recover_init); cdecl = nil; + + EVP_PKEY_meth_get_signctx: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_signctx_init: PEVP_PKEY_meth_signctx_init; AEVP_PKEY_meth_signctx: PEVP_PKEY_meth_signctx); cdecl = nil; + + EVP_PKEY_meth_get_verifyctx: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verifyctx_init: PEVP_PKEY_meth_verifyctx_init; AEVP_PKEY_meth_verifyctx: PEVP_PKEY_meth_verifyctx); cdecl = nil; + + EVP_PKEY_meth_get_encrypt: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_encrypt_init: PEVP_PKEY_meth_encrypt_init; AEVP_PKEY_meth_encrypt: PEVP_PKEY_meth_encrypt); cdecl = nil; + + EVP_PKEY_meth_get_decrypt: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_decrypt_init: PEVP_PKEY_meth_decrypt_init; AEVP_PKEY_meth_decrypt: PEVP_PKEY_meth_decrypt); cdecl = nil; + + EVP_PKEY_meth_get_derive: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_derive_init: PEVP_PKEY_meth_derive_init; AEVP_PKEY_meth_derive: PEVP_PKEY_meth_derive); cdecl = nil; + + EVP_PKEY_meth_get_ctrl: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_ctrl: PEVP_PKEY_meth_ctrl; AEVP_PKEY_meth_ctrl_str: PEVP_PKEY_meth_ctrl_str); cdecl = nil; + + EVP_PKEY_meth_get_digestsign: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestsign: PEVP_PKEY_meth_digestsign); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_get_digestverify: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestverify: PEVP_PKEY_meth_digestverify); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_get_check: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_check: PEVP_PKEY_meth_check); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_get_public_check: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_public_check: PEVP_PKEY_meth_public_check); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_get_param_check: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_param_check: PEVP_PKEY_meth_param_check); cdecl = nil; {introduced 1.1.0} + + EVP_PKEY_meth_get_digest_custom: procedure(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digest_custom: PEVP_PKEY_meth_digest_custom); cdecl = nil; {introduced 1.1.0} + + EVP_add_alg_module: procedure; cdecl = nil; + + OpenSSL_add_all_ciphers: procedure; cdecl = nil; {removed 1.1.0} + + OpenSSL_add_all_digests: procedure; cdecl = nil; {removed 1.1.0} + + EVP_cleanup: procedure; cdecl = nil; {removed 1.1.0} + +{$ELSE} + + function EVP_MD_meth_new(md_type: TIdC_INT; pkey_type: TIdC_INT): PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_dup(const md: PEVP_MD): PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_MD_meth_free(md: PEVP_MD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_MD_meth_set_input_blocksize(md: PEVP_MD; blocksize: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_set_result_size(md: PEVP_MD; resultsize: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_set_app_datasize(md: PEVP_MD; datasize: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_set_flags(md: PEVP_MD; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_set_init(md: PEVP_MD; init: EVP_MD_meth_init): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_set_update(md: PEVP_MD; update: EVP_MD_meth_update): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_set_final(md: PEVP_MD; final_: EVP_MD_meth_final): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_set_copy(md: PEVP_MD; copy: EVP_MD_meth_copy): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_set_cleanup(md: PEVP_MD; cleanup: EVP_MD_meth_cleanup): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_set_ctrl(md: PEVP_MD; ctrl: EVP_MD_meth_ctrl): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_MD_meth_get_input_blocksize(const md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_get_result_size(const md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_get_app_datasize(const md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_get_flags(const md: PEVP_MD): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_get_init(const md: PEVP_MD): EVP_MD_meth_init cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_get_update(const md: PEVP_MD): EVP_MD_meth_update cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_get_final(const md: PEVP_MD): EVP_MD_meth_final cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_get_copy(const md: PEVP_MD): EVP_MD_meth_copy cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_get_cleanup(const md: PEVP_MD): EVP_MD_meth_cleanup cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_meth_get_ctrl(const md: PEVP_MD): EVP_MD_meth_ctrl cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_CIPHER_meth_new(cipher_type: TIdC_INT; block_size: TIdC_INT; key_len: TIdC_INT): PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_dup(const cipher: PEVP_CIPHER): PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_CIPHER_meth_free(cipher: PEVP_CIPHER) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_CIPHER_meth_set_iv_length(cipher: PEVP_CIPHER; iv_len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_set_flags(cipher: PEVP_CIPHER; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_set_impl_ctx_size(cipher: PEVP_CIPHER; ctx_size: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_set_init(cipher: PEVP_CIPHER; init: EVP_CIPHER_meth_init): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_set_do_cipher(cipher: PEVP_CIPHER; do_cipher: EVP_CIPHER_meth_do_cipher): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_set_cleanup(cipher: PEVP_CIPHER; cleanup: EVP_CIPHER_meth_cleanup): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_set_set_asn1_params(cipher: PEVP_CIPHER; set_asn1_parameters: EVP_CIPHER_meth_set_asn1_params): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_set_get_asn1_params(cipher: PEVP_CIPHER; get_asn1_parameters: EVP_CIPHER_meth_get_asn1_params): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_set_ctrl(cipher: PEVP_CIPHER; ctrl: EVP_CIPHER_meth_ctrl): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_get_init(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_init cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_get_do_cipher(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_do_cipher cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_get_cleanup(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_cleanup cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_get_set_asn1_params(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_set_asn1_params cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_get_get_asn1_params(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_get_asn1_params cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_meth_get_ctrl(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_ctrl cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + /// Add some extra combinations /// + //# define EVP_get_digestbynid(a) EVP_get_digestbyname(OBJ_nid2sn(a)); + //# define EVP_get_digestbyobj(a) EVP_get_digestbynid(OBJ_obj2nid(a)); + //# define EVP_get_cipherbynid(a) EVP_get_cipherbyname(OBJ_nid2sn(a)); + //# define EVP_get_cipherbyobj(a) EVP_get_cipherbynid(OBJ_obj2nid(a)); + + //# define EVP_MD_nid(e) EVP_MD_type(e) + //# define EVP_MD_name(e) OBJ_nid2sn(EVP_MD_nid(e)) + + function EVP_MD_CTX_md(ctx: PEVP_MD_CTX): PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_MD_CTX_update_fn(ctx: PEVP_MD_CTX): EVP_MD_CTX_update cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_MD_CTX_set_update_fn(ctx: PEVP_MD_CTX; update: EVP_MD_CTX_update) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + // EVP_MD_CTX_size(e) EVP_MD_size(EVP_MD_CTX_md(e)) + // EVP_MD_CTX_block_size(e) EVP_MD_block_size(EVP_MD_CTX_md(e)) + // EVP_MD_CTX_type(e) EVP_MD_type(EVP_MD_CTX_md(e)) + procedure EVP_MD_CTX_set_pkey_ctx(ctx: PEVP_MD_CTX; pctx: PEVP_PKEY_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + //# define EVP_CIPHER_name(e) OBJ_nid2sn(EVP_CIPHER_nid(e)) + function EVP_CIPHER_impl_ctx_size(const cipher: PEVP_CIPHER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + //# define EVP_CIPHER_mode(e) (EVP_CIPHER_flags(e) & EVP_CIPH_MODE) + + function EVP_CIPHER_CTX_cipher(const ctx: PEVP_CIPHER_CTX): PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CIPHER_CTX_iv(const ctx: PEVP_CIPHER_CTX): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_CTX_original_iv(const ctx: PEVP_CIPHER_CTX): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_CTX_iv_noconst(ctx: PEVP_CIPHER_CTX): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_CTX_buf_noconst(ctx: PEVP_CIPHER_CTX): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_CIPHER_CTX_set_num(ctx: PEVP_CIPHER_CTX; num: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_CTX_copy(out_: PEVP_CIPHER_CTX; const in_: PEVP_CIPHER_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CIPHER_CTX_get_app_data(const ctx: PEVP_CIPHER_CTX): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_CIPHER_CTX_set_app_data(ctx: PEVP_CIPHER_CTX; data: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CIPHER_CTX_get_cipher_data(const ctx: PEVP_CIPHER_CTX): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_CIPHER_CTX_set_cipher_data(ctx: PEVP_CIPHER_CTX; cipher_data: Pointer): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + //# define EVP_CIPHER_CTX_type(c) EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c)) + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define EVP_CIPHER_CTX_flags(c) EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(c)) + //# endif + //# define EVP_CIPHER_CTX_mode(c) EVP_CIPHER_mode(EVP_CIPHER_CTX_cipher(c)) + // + //# define EVP_ENCODE_LENGTH(l) ((((l)+2)/3*4)+((l)/48+1)*2+80) + //# define EVP_DECODE_LENGTH(l) (((l)+3)/4*3+80) + // + //# define EVP_SignInit_ex(a;b;c) EVP_DigestInit_ex(a;b;c) + //# define EVP_SignInit(a;b) EVP_DigestInit(a;b) + //# define EVP_SignUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + //# define EVP_VerifyInit_ex(a;b;c) EVP_DigestInit_ex(a;b;c) + //# define EVP_VerifyInit(a;b) EVP_DigestInit(a;b) + //# define EVP_VerifyUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + //# define EVP_OpenUpdate(a;b;c;d;e) EVP_DecryptUpdate(a;b;c;d;e) + //# define EVP_SealUpdate(a;b;c;d;e) EVP_EncryptUpdate(a;b;c;d;e) + //# define EVP_DigestSignUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + //# define EVP_DigestVerifyUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + + //# define BIO_get_md(b;mdp) BIO_ctrl(b;BIO_C_GET_MD;0;(PIdAnsiChar)(mdp)) + //# define BIO_get_md_ctx(b;mdcp) BIO_ctrl(b;BIO_C_GET_MD_CTX;0; (PIdAnsiChar)(mdcp)) + //# define BIO_set_md_ctx(b;mdcp) BIO_ctrl(b;BIO_C_SET_MD_CTX;0; (PIdAnsiChar)(mdcp)) + //# define BIO_get_cipher_status(b) BIO_ctrl(b;BIO_C_GET_CIPHER_STATUS;0;NULL) + //# define BIO_get_cipher_ctx(b;c_pp) BIO_ctrl(b;BIO_C_GET_CIPHER_CTX;0; (PIdAnsiChar)(c_pp)) + + //function EVP_Cipher(c: PEVP_CIPHER_CTX; out_: PByte; const in_: PByte; in1: TIdC_UINT): TIdC_INT; + + //# define EVP_add_cipher_alias(n;alias) OBJ_NAME_add((alias);OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS;(n)) + //# define EVP_add_digest_alias(n;alias) OBJ_NAME_add((alias);OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS;(n)) + //# define EVP_delete_cipher_alias(alias) OBJ_NAME_remove(alias;OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS); + //# define EVP_delete_digest_alias(alias) OBJ_NAME_remove(alias;OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS); + + function EVP_MD_CTX_ctrl(ctx: PEVP_MD_CTX; cmd: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_CTX_new: PEVP_MD_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_MD_CTX_reset(ctx: PEVP_MD_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_MD_CTX_free(ctx: PEVP_MD_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + //# define EVP_MD_CTX_create() EVP_MD_CTX_new() + //# define EVP_MD_CTX_init(ctx) EVP_MD_CTX_reset((ctx)) + //# define EVP_MD_CTX_destroy(ctx) EVP_MD_CTX_free((ctx)) + function EVP_MD_CTX_copy_ex(out_: PEVP_MD_CTX; const in_: PEVP_MD_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_MD_CTX_set_flags(ctx: PEVP_MD_CTX; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_MD_CTX_clear_flags(ctx: PEVP_MD_CTX; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_MD_CTX_test_flags(const ctx: PEVP_MD_CTX; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DigestInit_ex(ctx: PEVP_MD_CTX; const type_: PEVP_MD; impl: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DigestUpdate(ctx: PEVP_MD_CTX; const d: Pointer; cnt: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DigestFinal_ex(ctx: PEVP_MD_CTX; md: PByte; s: PIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_Digest(const data: Pointer; count: TIdC_SIZET; md: PByte; size: PIdC_UINT; const type_: PEVP_MD; impl: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_MD_CTX_copy(out_: PEVP_MD_CTX; const in_: PEVP_MD_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DigestInit(ctx: PEVP_MD_CTX; const type_: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DigestFinal(ctx: PEVP_MD_CTX; md: PByte; s: PIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DigestFinalXOF(ctx: PEVP_MD_CTX; md: PByte; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_read_pw_string(buf: PIdAnsiChar; length: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_read_pw_string_min(buf: PIdAnsiChar; minlen: TIdC_INT; maxlen: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_set_pw_prompt(const prompt: PIdAnsiChar) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_get_pw_prompt: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_BytesToKey(const type_: PEVP_CIPHER; const md: PEVP_MD; const salt: PByte; const data: PByte; data1: TIdC_INT; count: TIdC_INT; key: PByte; iv: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_CIPHER_CTX_set_flags(ctx: PEVP_CIPHER_CTX; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_CIPHER_CTX_clear_flags(ctx: PEVP_CIPHER_CTX; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CIPHER_CTX_test_flags(const ctx: PEVP_CIPHER_CTX; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_EncryptInit(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; const key: PByte; const iv: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_EncryptInit_ex(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; impl: PENGINE; const key: PByte; const iv: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_EncryptUpdate(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in_1: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_EncryptFinal_ex(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_EncryptFinal(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_DecryptInit(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PidC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DecryptInit_ex(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; impl: PENGINE; const key: PByte; const iv: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DecryptUpdate(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in_1: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DecryptFinal(ctx: PEVP_CIPHER_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DecryptFinal_ex(ctx: PEVP_MD_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_CipherInit(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; const key: PByte; const iv: PByte; enc: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CipherInit_ex(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; impl: PENGINE; const key: PByte; const iv: PByte; enc: TidC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CipherUpdate(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in1: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CipherFinal(ctx: PEVP_CIPHER_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CipherFinal_ex(ctx: PEVP_CIPHER_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_SignFinal(ctx: PEVP_CIPHER_CTX; md: PByte; s: PIdC_UINT; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_DigestSign(ctx: PEVP_CIPHER_CTX; sigret: PByte; siglen: PIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_VerifyFinal(ctx: PEVP_MD_CTX; const sigbuf: PByte; siglen: TIdC_UINT; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_DigestVerify(ctx: PEVP_CIPHER_CTX; const sigret: PByte; siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_DigestSignInit(ctx: PEVP_MD_CTX; pctx: PPEVP_PKEY_CTX; const type_: PEVP_MD; e: PENGINE; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DigestSignFinal(ctx: PEVP_MD_CTX; sigret: PByte; siglen: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_DigestVerifyInit(ctx: PEVP_MD_CTX; ppctx: PPEVP_PKEY_CTX; const type_: PEVP_MD; e: PENGINE; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DigestVerifyFinal(ctx: PEVP_MD_CTX; const sig: PByte; siglen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_OpenInit(ctx: PEVP_CIPHER_CTX; const type_: PEVP_CIPHER; const ek: PByte; ek1: TIdC_INT; const iv: PByte; priv: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_OpenFinal(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_SealInit(ctx: PEVP_CIPHER_CTX; const type_: EVP_CIPHER; ek: PPByte; ek1: PIdC_INT; iv: PByte; pubk: PPEVP_PKEY; npubk: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_SealFinal(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_ENCODE_CTX_new: PEVP_ENCODE_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_ENCODE_CTX_free(ctx: PEVP_ENCODE_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_ENCODE_CTX_copy(dctx: PEVP_ENCODE_CTX; sctx: PEVP_ENCODE_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_ENCODE_CTX_num(ctx: PEVP_ENCODE_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_EncodeInit(ctx: PEVP_ENCODE_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_EncodeUpdate(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in1: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_EncodeFinal(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_EncodeBlock(t: PByte; const f: PByte; n: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_DecodeInit(ctx: PEVP_ENCODE_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DecodeUpdate(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in1: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DecodeFinal(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_DecodeBlock(t: PByte; const f: PByte; n: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_CIPHER_CTX_new: PEVP_CIPHER_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CIPHER_CTX_reset(c: PEVP_CIPHER_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_CIPHER_CTX_free(c: PEVP_CIPHER_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CIPHER_CTX_set_key_length(x: PEVP_CIPHER_CTX; keylen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CIPHER_CTX_set_padding(c: PEVP_CIPHER_CTX; pad: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CIPHER_CTX_ctrl(ctx: PEVP_CIPHER_CTX; type_: TIdC_INT; arg: TIdC_INT; ptr: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CIPHER_CTX_rand_key(ctx: PEVP_CIPHER_CTX; key: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_f_md: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_f_base64: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_f_cipher: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_f_reliable: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function BIO_set_cipher(b: PBIO; c: PEVP_CIPHER; const k: PByte; const i: PByte; enc: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_md_null: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_md5: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_md5_sha1: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_sha1: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_sha224: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_sha256: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_sha384: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_sha512: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_sha512_224: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_sha512_256: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_sha3_224: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_sha3_256: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_sha3_384: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_sha3_512: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_shake128: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_shake256: PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + (* does nothing :-) *) + function EVP_enc_null: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_des_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede3: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede3_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_cfb64: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_des_cfb EVP_des_cfb64 + function EVP_des_cfb1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_cfb8: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede_cfb64: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede3_cfb64: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_des_ede3_cfb EVP_des_ede3_cfb64 + function EVP_des_ede3_cfb1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede3_cfb8: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede3_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede3_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_desx_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_des_ede3_wrap: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // + // This should now be supported through the dev_crypto ENGINE. But also, why + // are rc4 and md5 declarations made here inside a "NO_DES" precompiler + // branch? + // + function EVP_rc4: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_rc4_40: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function EVP_idea_ecb: PEVP_CIPHER; +// function EVP_idea_cfb64: PEVP_CIPHER; + //EVP_idea_cfb EVP_idea_cfb64 +// function EVP_idea_ofb: PEVP_CIPHER; + // function EVP_idea_cbc: PEVP_CIPHER; + function EVP_rc2_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_rc2_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_rc2_40_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_rc2_64_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_rc2_cfb64: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_rc2_cfb EVP_rc2_cfb64 + function EVP_rc2_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_bf_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_bf_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_bf_cfb64: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_bf_cfb EVP_bf_cfb64 + function EVP_bf_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_cast5_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_cast5_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_cast5_cfb64: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_cast5_cfb EVP_cast5_cfb64 + function EVP_cast5_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function EVP_rc5_32_12_16_cbc: PEVP_CIPHER; +// function EVP_rc5_32_12_16_ecb: PEVP_CIPHER; +// function EVP_rc5_32_12_16_cfb64: PEVP_CIPHER; + //EVP_rc5_32_12_16_cfb EVP_rc5_32_12_16_cfb64 +// function EVP_rc5_32_12_16_ofb: PEVP_CIPHER; + + function EVP_aes_128_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_128_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_128_cfb1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_128_cfb8: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_128_cfb128: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_aes_128_cfb EVP_aes_128_cfb128 + function EVP_aes_128_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_128_ctr: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_128_ccm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_128_gcm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_128_xts: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_128_wrap: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_128_wrap_pad: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aes_128_ocb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aes_192_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_192_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_192_cfb1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_192_cfb8: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_192_cfb128: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_aes_192_cfb EVP_aes_192_cfb128 + function EVP_aes_192_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_192_ctr: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_192_ccm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_192_gcm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_192_wrap: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_192_wrap_pad: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aes_192_ocb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aes_256_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_cfb1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_cfb8: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_cfb128: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_aes_256_cfb EVP_aes_256_cfb128 + function EVP_aes_256_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_ctr: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_ccm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_gcm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_xts: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_wrap: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_wrap_pad: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aes_256_ocb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aes_128_cbc_hmac_sha1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_cbc_hmac_sha1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_128_cbc_hmac_sha256: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_aes_256_cbc_hmac_sha256: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_aria_128_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_128_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_128_cfb1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_128_cfb8: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_128_cfb128: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_128_ctr: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_128_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_128_gcm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_128_ccm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_192_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_192_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_192_cfb1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_192_cfb8: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_192_cfb128: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + //EVP_aria_192_cfb EVP_aria_192_cfb128 + function EVP_aria_192_ctr: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_192_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_192_gcm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_192_ccm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_256_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_256_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_256_cfb1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_256_cfb8: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_256_cfb128: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + //EVP_aria_256_cfb EVP_aria_256_cfb128 + function EVP_aria_256_ctr: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_256_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_256_gcm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_aria_256_ccm: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_camellia_128_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_128_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_128_cfb1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_128_cfb8: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_128_cfb128: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_camellia_128_cfb EVP_camellia_128_cfb128 + function EVP_camellia_128_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_128_ctr: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_camellia_192_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_192_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_192_cfb1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_192_cfb8: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_192_cfb128: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_camellia_192_cfb EVP_camellia_192_cfb128 + function EVP_camellia_192_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_192_ctr: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_camellia_256_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_256_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_256_cfb1: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_256_cfb8: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_256_cfb128: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_camellia_256_cfb EVP_camellia_256_cfb128 + function EVP_camellia_256_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_camellia_256_ctr: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_chacha20: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_chacha20_poly1305: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_seed_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_seed_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_seed_cfb128: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //EVP_seed_cfb EVP_seed_cfb128 + function EVP_seed_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_sm4_ecb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_sm4_cbc: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_sm4_cfb128: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + //EVP_sm4_cfb EVP_sm4_cfb128 + function EVP_sm4_ofb: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_sm4_ctr: PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_add_cipher(const cipher: PEVP_CIPHER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_add_digest(const digest: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_get_cipherbyname(const name: PIdAnsiChar): PEVP_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_get_digestbyname(const name: PIdAnsiChar): PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_CIPHER_do_all(AFn: fn; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_CIPHER_do_all_sorted(AFn: fn; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_MD_do_all(AFn: fn; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_MD_do_all_sorted(AFn: fn; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_decrypt_old(dec_key: PByte; const enc_key: PByte; enc_key_len: TIdC_INT; private_key: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_encrypt_old(dec_key: PByte; const enc_key: PByte; key_len: TIdC_INT; pub_key: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_type(type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_set_type(pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_set_type_str(pkey: PEVP_PKEY; const str: PIdAnsiChar; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_set1_engine(pkey: PEVP_PKEY; e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_get0_engine(const pkey: PEVP_PKEY): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_PKEY_assign(pkey: PEVP_PKEY; type_: TIdC_INT; key: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_get0(const pkey: PEVP_PKEY): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_get0_hmac(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_get0_poly1305(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_get0_siphash(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_PKEY_set1_RSA(pkey: PEVP_PKEY; key: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_get0_RSA(pkey: PEVP_PKEY): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_get1_RSA(pkey: PEVP_PKEY): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_set1_DSA(pkey: PEVP_PKEY; key: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_get0_DSA(pkey: PEVP_PKEY): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_get1_DSA(pkey: PEVP_PKEY): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_set1_DH(pkey: PEVP_PKEY; key: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_get0_DH(pkey: PEVP_PKEY): PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_get1_DH(pkey: PEVP_PKEY): PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_set1_EC_KEY(pkey: PEVP_PKEY; key: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_get0_EC_KEY(pkey: PEVP_PKEY): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_get1_EC_KEY(pkey: PEVP_PKEY): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_new: PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_up_ref(pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_PKEY_free(pkey: PEVP_PKEY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_PublicKey(type_: TIdC_INT; a: PPEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PublicKey(a: PEVP_PKEY; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_PrivateKey(type_: TIdC_INT; a: PEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_AutoPrivateKey(a: PPEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PrivateKey(a: PEVP_PKEY; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_copy_parameters(to_: PEVP_PKEY; const from: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_missing_parameters(const pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_save_parameters(pkey: PEVP_PKEY; mode: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_cmp_parameters(const a: PEVP_PKEY; const b: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_cmp(const a: PEVP_PKEY; const b: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_print_public(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_print_private(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_print_params(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_get_default_digest_nid(pkey: PEVP_PKEY; pnid: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + + + (* calls methods *) + function EVP_CIPHER_param_to_asn1(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CIPHER_asn1_to_param(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* These are used by EVP_CIPHER methods *) + function EVP_CIPHER_set_asn1_iv(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_CIPHER_get_asn1_iv(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* PKCS5 password based encryption *) + function PKCS5_PBE_keyivgen(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const cipher: PEVP_CIPHER; const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS5_PBKDF2_HMAC_SHA1(const pass: PIdAnsiChar; passlen: TIdC_INT; const salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; keylen: TIdC_INT; out_: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS5_PBKDF2_HMAC(const pass: PIdAnsiChar; passlen: TIdC_INT; const salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; const digest: PEVP_MD; keylen: TIdC_INT; out_: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS5_v2_PBE_keyivgen(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const cipher: PEVP_CIPHER; const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PBE_scrypt(const pass: PIdAnsiChar; passlen: TIdC_SIZET; const salt: PByte; saltlen: TIdC_SIZET; N: TIdC_UINT64; r: TIdC_UINT64; p: TIdC_UINT64; maxmem: TIdC_UINT64; key: PByte; keylen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function PKCS5_v2_scrypt_keyivgen(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const c: PEVP_CIPHER; const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure PKCS5_PBE_add cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PBE_CipherInit(pbe_obj: PASN1_OBJECT; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; ctx: PEVP_CIPHER_CTX; en_de: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* PBE type *) + function EVP_PBE_alg_add_type(pbe_type: TIdC_INT; pbe_nid: TIdC_INT; cipher_nid: TIdC_INT; md_nid: TIdC_INT; keygen: PEVP_PBE_KEYGEN): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PBE_alg_add(nid: TIdC_INT; const cipher: PEVP_CIPHER; const md: PEVP_MD; keygen: PEVP_PBE_KEYGEN): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PBE_find(type_: TIdC_INT; pbe_nid: TIdC_INT; pcnid: PIdC_INT; pmnid: PIdC_INT; pkeygen: PPEVP_PBE_KEYGEN): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PBE_cleanup cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PBE_get(ptype: PIdC_INT; ppbe_nid: PIdC_INT; num: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_PKEY_asn1_get_count: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_asn1_get0(idx: TIdC_INT): PEVP_PKEY_ASN1_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_asn1_find(pe: PPENGINE; type_: TIdC_INT): PEVP_PKEY_ASN1_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_asn1_find_str(pe: PPENGINE; const str: PIdAnsiChar; len: TIdC_INT): PEVP_PKEY_ASN1_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_asn1_add0(const ameth: PEVP_PKEY_ASN1_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_asn1_add_alias(to_: TIdC_INT; from: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_asn1_get0_info(ppkey_id: PIdC_INT; pkey_base_id: PIdC_INT; ppkey_flags: PIdC_INT; const pinfo: PPIdAnsiChar; const ppem_str: PPIdAnsiChar; const ameth: PEVP_PKEY_ASN1_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_get0_asn1(const pkey: PEVP_PKEY): PEVP_PKEY_ASN1_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_asn1_new(id: TIdC_INT; flags: TIdC_INT; const pem_str: PIdAnsiChar; const info: PIdAnsiChar): PEVP_PKEY_ASN1_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PKEY_asn1_copy(dst: PEVP_PKEY_ASN1_METHOD; const src: PEVP_PKEY_ASN1_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PKEY_asn1_free(ameth: PEVP_PKEY_ASN1_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_asn1_set_public(ameth: PEVP_PKEY_ASN1_METHOD; APub_decode: pub_decode; APub_encode: pub_encode; APub_cmd: pub_cmd; APub_print: pub_print; APkey_size: pkey_size; APkey_bits: pkey_bits) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PKEY_asn1_set_private(ameth: PEVP_PKEY_ASN1_METHOD; APriv_decode: priv_decode; APriv_encode: priv_encode; APriv_print: priv_print) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PKEY_asn1_set_param(ameth: PEVP_PKEY_ASN1_METHOD; AParam_decode: param_decode; AParam_encode: param_encode; AParam_missing: param_missing; AParam_copy: param_copy; AParam_cmp: param_cmp; AParam_print: param_print) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_asn1_set_free(ameth: PEVP_PKEY_ASN1_METHOD; APkey_free: pkey_free) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PKEY_asn1_set_ctrl(ameth: PEVP_PKEY_ASN1_METHOD; APkey_ctrl: pkey_ctrl) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PKEY_asn1_set_item(ameth: PEVP_PKEY_ASN1_METHOD; AItem_verify: item_verify; AItem_sign: item_sign) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_asn1_set_siginf(ameth: PEVP_PKEY_ASN1_METHOD; ASiginf_set: siginf_set) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_asn1_set_check(ameth: PEVP_PKEY_ASN1_METHOD; APkey_check: pkey_check) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_asn1_set_public_check(ameth: PEVP_PKEY_ASN1_METHOD; APkey_pub_check: pkey_pub_check) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_asn1_set_param_check(ameth: PEVP_PKEY_ASN1_METHOD; APkey_param_check: pkey_param_check) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_asn1_set_set_priv_key(ameth: PEVP_PKEY_ASN1_METHOD; ASet_priv_key: set_priv_key) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_PKEY_asn1_set_set_pub_key(ameth: PEVP_PKEY_ASN1_METHOD; ASet_pub_key: set_pub_key) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_PKEY_asn1_set_get_priv_key(ameth: PEVP_PKEY_ASN1_METHOD; AGet_priv_key: get_priv_key) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure EVP_PKEY_asn1_set_get_pub_key(ameth: PEVP_PKEY_ASN1_METHOD; AGet_pub_key: get_pub_key) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_asn1_set_security_bits(ameth: PEVP_PKEY_ASN1_METHOD; APkey_security_bits: pkey_security_bits) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_PKEY_meth_find(type_: TIdC_INT): PEVP_PKEY_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_meth_new(id: TIdC_INT; flags: TIdC_INT): PEVP_PKEY_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PKEY_meth_get0_info(ppkey_id: PIdC_INT; pflags: PIdC_INT; const meth: PEVP_PKEY_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PKEY_meth_copy(dst: PEVP_PKEY_METHOD; const src: PEVP_PKEY_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PKEY_meth_free(pmeth: PEVP_PKEY_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_meth_add0(const pmeth: PEVP_PKEY_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_meth_remove(const pmeth: PEVP_PKEY_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_meth_get_count: TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_meth_get0(idx: TIdC_SIZET): PEVP_PKEY_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_PKEY_CTX_new(pkey: PEVP_PKEY; e: PENGINE): PEVP_PKEY_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_CTX_new_id(id: TIdC_INT; e: PENGINE): PEVP_PKEY_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_CTX_dup(ctx: PEVP_PKEY_CTX): PEVP_PKEY_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PKEY_CTX_free(ctx: PEVP_PKEY_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_CTX_ctrl(ctx: PEVP_PKEY_CTX; keytype: TIdC_INT; optype: TIdC_INT; cmd: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_CTX_ctrl_str(ctx: PEVP_PKEY_CTX; const type_: PIdAnsiChar; const value: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_CTX_ctrl_uint64(ctx: PEVP_PKEY_CTX; keytype: TIdC_INT; optype: TIdC_INT; cmd: TIdC_INT; value: TIdC_UINT64): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_PKEY_CTX_str2ctrl(ctx: PEVP_PKEY_CTX; cmd: TIdC_INT; const str: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_CTX_hex2ctrl(ctx: PEVP_PKEY_CTX; cmd: TIdC_INT; const hex: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_PKEY_CTX_md(ctx: PEVP_PKEY_CTX; optype: TIdC_INT; cmd: TIdC_INT; const md: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_PKEY_CTX_get_operation(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure EVP_PKEY_CTX_set0_keygen_info(ctx: PEVP_PKEY_CTX; dat: PIdC_INT; datlen: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_new_mac_key(type_: TIdC_INT; e: PENGINE; const key: PByte; keylen: TIdC_INT): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_new_raw_private_key(type_: TIdC_INT; e: PENGINE; const priv: PByte; len: TIdC_SIZET): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_new_raw_public_key(type_: TIdC_INT; e: PENGINE; const pub: PByte; len: TIdC_SIZET): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_get_raw_private_key(const pkey: PEVP_PKEY; priv: PByte; len: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_get_raw_public_key(const pkey: PEVP_PKEY; pub: PByte; len: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function EVP_PKEY_new_CMAC_key(e: PENGINE; const priv: PByte; len: TIdC_SIZET; const cipher: PEVP_CIPHER): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_CTX_set_data(ctx: PEVP_PKEY_CTX; data: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_CTX_get_data(ctx: PEVP_PKEY_CTX): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_CTX_get0_pkey(ctx: PEVP_PKEY_CTX): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_CTX_get0_peerkey(ctx: PEVP_PKEY_CTX): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_CTX_set_app_data(ctx: PEVP_PKEY_CTX; data: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_CTX_get_app_data(ctx: PEVP_PKEY_CTX): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_sign_init(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_sign(ctx: PEVP_PKEY_CTX; sig: PByte; siglen: PIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_verify_init(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_verify(ctx: PEVP_PKEY_CTX; const sig: PByte; siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_verify_recover_init(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_verify_recover(ctx: PEVP_PKEY_CTX; rout: PByte; routlen: PIdC_SIZET; const sig: PByte; siglen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_encrypt_init(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_encrypt(ctx: PEVP_PKEY_CTX; out_: PByte; outlen: PIdC_SIZET; const in_: PByte; inlen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_decrypt_init(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_decrypt(ctx: PEVP_PKEY_CTX; out_: PByte; outlen: PIdC_SIZET; const in_: PByte; inlen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_derive_init(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_derive_set_peer(ctx: PEVP_PKEY_CTX; peer: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_derive(ctx: PEVP_PKEY_CTX; key: PByte; keylen: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_paramgen_init(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_paramgen(ctx: PEVP_PKEY_CTX; ppkey: PPEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_keygen_init(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_keygen(ctx: PEVP_PKEY_CTX; ppkey: PPEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_check(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_public_check(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function EVP_PKEY_param_check(ctx: PEVP_PKEY_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_CTX_set_cb(ctx: PEVP_PKEY_CTX; cb: EVP_PKEY_gen_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_CTX_get_cb(ctx: PEVP_PKEY_CTX): EVP_PKEY_gen_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_CTX_get_keygen_info(ctx: PEVP_PKEY_CTX; idx: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_init(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_init: EVP_PKEY_meth_init) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_copy(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_copy_cb: EVP_PKEY_meth_copy_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_cleanup(pmeth: PEVP_PKEY_METHOD; PEVP_PKEY_meth_cleanup: EVP_PKEY_meth_cleanup) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_paramgen(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_paramgen_init: EVP_PKEY_meth_paramgen_init; AEVP_PKEY_meth_paramgen: EVP_PKEY_meth_paramgen_init) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_keygen(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_keygen_init: EVP_PKEY_meth_keygen_init; AEVP_PKEY_meth_keygen: EVP_PKEY_meth_keygen) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_sign(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_sign_init: EVP_PKEY_meth_sign_init; AEVP_PKEY_meth_sign: EVP_PKEY_meth_sign) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_verify(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_init: EVP_PKEY_meth_verify_init; AEVP_PKEY_meth_verify: EVP_PKEY_meth_verify_init) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_verify_recover(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_recover_init: EVP_PKEY_meth_verify_recover_init; AEVP_PKEY_meth_verify_recover: EVP_PKEY_meth_verify_recover_init) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_signctx(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_signctx_init: EVP_PKEY_meth_signctx_init; AEVP_PKEY_meth_signctx: EVP_PKEY_meth_signctx) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_verifyctx(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verifyctx_init: EVP_PKEY_meth_verifyctx_init; AEVP_PKEY_meth_verifyctx: EVP_PKEY_meth_verifyctx) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_encrypt(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_encrypt_init: EVP_PKEY_meth_encrypt_init; AEVP_PKEY_meth_encrypt: EVP_PKEY_meth_encrypt) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_decrypt(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_decrypt_init: EVP_PKEY_meth_decrypt_init; AEVP_PKEY_meth_decrypt: EVP_PKEY_meth_decrypt) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_derive(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_derive_init: EVP_PKEY_meth_derive_init; AEVP_PKEY_meth_derive: EVP_PKEY_meth_derive) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_ctrl(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_ctrl: EVP_PKEY_meth_ctrl; AEVP_PKEY_meth_ctrl_str: EVP_PKEY_meth_ctrl_str) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_set_digestsign(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestsign: EVP_PKEY_meth_digestsign) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_meth_set_digestverify(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestverify: EVP_PKEY_meth_digestverify) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_meth_set_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_check: EVP_PKEY_meth_check) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_meth_set_public_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_public_check: EVP_PKEY_meth_public_check) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_meth_set_param_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_param_check: EVP_PKEY_meth_param_check) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_meth_set_digest_custom(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digest_custom: EVP_PKEY_meth_digest_custom) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_init(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_init: PEVP_PKEY_meth_init) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_copy(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_copy: PEVP_PKEY_meth_copy) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_cleanup(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_cleanup: PEVP_PKEY_meth_cleanup) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_paramgen(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_paramgen_init: EVP_PKEY_meth_paramgen_init; AEVP_PKEY_meth_paramgen: PEVP_PKEY_meth_paramgen) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_keygen(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_keygen_init: EVP_PKEY_meth_keygen_init; AEVP_PKEY_meth_keygen: PEVP_PKEY_meth_keygen) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_sign(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_sign_init: PEVP_PKEY_meth_sign_init; AEVP_PKEY_meth_sign: PEVP_PKEY_meth_sign) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_verify(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_init: PEVP_PKEY_meth_verify_init; AEVP_PKEY_meth_verify: PEVP_PKEY_meth_verify_init) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_verify_recover(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_recover_init: PEVP_PKEY_meth_verify_recover_init; AEVP_PKEY_meth_verify_recover: PEVP_PKEY_meth_verify_recover_init) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_signctx(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_signctx_init: PEVP_PKEY_meth_signctx_init; AEVP_PKEY_meth_signctx: PEVP_PKEY_meth_signctx) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_verifyctx(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verifyctx_init: PEVP_PKEY_meth_verifyctx_init; AEVP_PKEY_meth_verifyctx: PEVP_PKEY_meth_verifyctx) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_encrypt(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_encrypt_init: PEVP_PKEY_meth_encrypt_init; AEVP_PKEY_meth_encrypt: PEVP_PKEY_meth_encrypt) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_decrypt(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_decrypt_init: PEVP_PKEY_meth_decrypt_init; AEVP_PKEY_meth_decrypt: PEVP_PKEY_meth_decrypt) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_derive(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_derive_init: PEVP_PKEY_meth_derive_init; AEVP_PKEY_meth_derive: PEVP_PKEY_meth_derive) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_ctrl(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_ctrl: PEVP_PKEY_meth_ctrl; AEVP_PKEY_meth_ctrl_str: PEVP_PKEY_meth_ctrl_str) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure EVP_PKEY_meth_get_digestsign(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestsign: PEVP_PKEY_meth_digestsign) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_digestverify(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestverify: PEVP_PKEY_meth_digestverify) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_check: PEVP_PKEY_meth_check) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_public_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_public_check: PEVP_PKEY_meth_public_check) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_param_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_param_check: PEVP_PKEY_meth_param_check) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_digest_custom(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digest_custom: PEVP_PKEY_meth_digest_custom) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure EVP_add_alg_module cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + + + +function EVP_PKEY_assign_RSA(pkey: PEVP_PKEY; rsa: Pointer): TIdC_INT; {removed 1.0.0} +function EVP_PKEY_assign_DSA(pkey: PEVP_PKEY; dsa: Pointer): TIdC_INT; {removed 1.0.0} +function EVP_PKEY_assign_DH(pkey: PEVP_PKEY; dh: Pointer): TIdC_INT; {removed 1.0.0} +function EVP_PKEY_assign_EC_KEY(pkey: PEVP_PKEY; eckey: Pointer): TIdC_INT; {removed 1.0.0} +function EVP_PKEY_assign_SIPHASH(pkey: PEVP_PKEY; shkey: Pointer): TIdC_INT; {removed 1.0.0} +function EVP_PKEY_assign_POLY1305(pkey: PEVP_PKEY; polykey: Pointer): TIdC_INT; {removed 1.0.0} + procedure BIO_set_md(v1: PBIO; const md: PEVP_MD); {removed 1.0.0} + procedure OpenSSL_add_all_ciphers; {removed 1.1.0} + procedure OpenSSL_add_all_digests; {removed 1.1.0} + procedure EVP_cleanup; {removed 1.1.0} +{$ENDIF} + +implementation + +uses + {$IFNDEF USE_EXTERNAL_LIBRARY} + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader, + {$ENDIF} IdOpenSSLHeaders_crypto; + +const + EVP_MD_meth_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_dup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_set_input_blocksize_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_set_result_size_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_set_app_datasize_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_set_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_set_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_set_update_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_set_final_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_set_copy_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_set_cleanup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_set_ctrl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_get_input_blocksize_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_get_result_size_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_get_app_datasize_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_get_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_get_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_get_update_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_get_final_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_get_copy_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_get_cleanup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_meth_get_ctrl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_dup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_set_iv_length_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_set_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_set_impl_ctx_size_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_set_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_set_do_cipher_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_set_cleanup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_set_set_asn1_params_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_set_get_asn1_params_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_set_ctrl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_get_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_get_do_cipher_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_get_cleanup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_get_set_asn1_params_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_get_get_asn1_params_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_meth_get_ctrl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_CTX_update_fn_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_CTX_set_update_fn_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_CTX_pkey_ctx_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_CTX_set_pkey_ctx_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_CTX_md_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_impl_ctx_size_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_CTX_encrypting_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_CTX_iv_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_CTX_original_iv_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_CTX_iv_noconst_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_CTX_buf_noconst_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_CTX_num_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_CTX_set_num_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_CTX_get_cipher_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_CTX_set_cipher_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_CTX_ctrl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_CTX_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_CTX_reset_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_MD_CTX_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_DigestFinalXOF_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_DigestSign_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_DigestVerify_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_ENCODE_CTX_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_ENCODE_CTX_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_ENCODE_CTX_copy_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_ENCODE_CTX_num_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_CIPHER_CTX_reset_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_md5_sha1_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_sha512_224_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_sha512_256_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_sha3_224_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_sha3_256_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_sha3_384_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_sha3_512_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_shake128_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_shake256_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aes_128_wrap_pad_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aes_128_ocb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aes_192_wrap_pad_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aes_192_ocb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aes_256_wrap_pad_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aes_256_ocb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_128_ecb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_128_cbc_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_128_cfb1_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_128_cfb8_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_128_cfb128_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_128_ctr_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_128_ofb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_128_gcm_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_128_ccm_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_192_ecb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_192_cbc_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_192_cfb1_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_192_cfb8_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_192_cfb128_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_192_ctr_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_192_ofb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_192_gcm_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_192_ccm_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_256_ecb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_256_cbc_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_256_cfb1_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_256_cfb8_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_256_cfb128_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_256_ctr_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_256_ofb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_256_gcm_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_aria_256_ccm_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_camellia_128_ctr_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_camellia_192_ctr_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_camellia_256_ctr_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_chacha20_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_chacha20_poly1305_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_sm4_ecb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_sm4_cbc_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_sm4_cfb128_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_sm4_ofb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_sm4_ctr_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_security_bits_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_set_alias_type_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_set1_engine_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_get0_engine_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_get0_hmac_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_get0_poly1305_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_get0_siphash_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_get0_RSA_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_get0_DSA_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_get0_DH_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_get0_EC_KEY_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_up_ref_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_set1_tls_encodedpoint_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_get1_tls_encodedpoint_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PBE_scrypt_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS5_v2_scrypt_keyivgen_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PBE_get_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_asn1_set_siginf_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_asn1_set_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_asn1_set_public_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_asn1_set_param_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_asn1_set_set_priv_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_asn1_set_set_pub_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_asn1_set_get_priv_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_asn1_set_get_pub_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_asn1_set_security_bits_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_remove_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_get_count_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_get0_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_CTX_ctrl_uint64_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_CTX_str2ctrl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_CTX_hex2ctrl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_CTX_md_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_new_raw_private_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_new_raw_public_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_get_raw_private_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_get_raw_public_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_new_CMAC_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_public_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_param_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_set_digestsign_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_set_digestverify_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_set_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_set_public_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_set_param_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_set_digest_custom_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_get_digestsign_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_get_digestverify_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_get_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_get_public_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_get_param_check_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_meth_get_digest_custom_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_PKEY_assign_RSA_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_assign_DSA_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_assign_DH_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_assign_EC_KEY_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_assign_SIPHASH_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_assign_POLY1305_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + EVP_MD_type_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_MD_pkey_type_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_MD_size_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_MD_block_size_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_MD_flags_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_MD_CTX_pkey_ctx_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_MD_CTX_md_data_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_nid_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_block_size_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_key_length_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_iv_length_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_flags_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_CTX_encrypting_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_CTX_nid_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_CTX_block_size_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_CTX_key_length_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_CTX_iv_length_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_CTX_num_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + BIO_set_md_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_id_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_base_id_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_bits_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_security_bits_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_size_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_set_alias_type_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_set1_tls_encodedpoint_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_PKEY_get1_tls_encodedpoint_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + EVP_CIPHER_type_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + OpenSSL_add_all_ciphers_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OpenSSL_add_all_digests_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + EVP_cleanup_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + + +//# define EVP_PKEY_assign_RSA(pkey,rsa) EVP_PKEY_assign((pkey),EVP_PKEY_RSA, (char *)(rsa)) +{$IFNDEF USE_EXTERNAL_LIBRARY} + + +//# define EVP_PKEY_assign_RSA(pkey,rsa) EVP_PKEY_assign((pkey),EVP_PKEY_RSA, (char *)(rsa)) +function _EVP_PKEY_assign_RSA(pkey: PEVP_PKEY; rsa: Pointer): TIdC_INT; cdecl; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_RSA, rsa); +end; + +//# define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA, (char *)(dsa)) +function _EVP_PKEY_assign_DSA(pkey: PEVP_PKEY; dsa: Pointer): TIdC_INT; cdecl; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_DSA, dsa); +end; + +//# define EVP_PKEY_assign_DH(pkey,dh) EVP_PKEY_assign((pkey),EVP_PKEY_DH, (char *)(dh)) +function _EVP_PKEY_assign_DH(pkey: PEVP_PKEY; dh: Pointer): TIdC_INT; cdecl; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_DH, dh); +end; + +//# define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC, (char *)(eckey)) +function _EVP_PKEY_assign_EC_KEY(pkey: PEVP_PKEY; eckey: Pointer): TIdC_INT; cdecl; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_EC, eckey); +end; + +//# define EVP_PKEY_assign_SIPHASH(pkey,shkey) EVP_PKEY_assign((pkey),EVP_PKEY_SIPHASH, (char *)(shkey)) +function _EVP_PKEY_assign_SIPHASH(pkey: PEVP_PKEY; shkey: Pointer): TIdC_INT; cdecl; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_SIPHASH, shkey); +end; + +//# define EVP_PKEY_assign_POLY1305(pkey,polykey) EVP_PKEY_assign((pkey),EVP_PKEY_POLY1305, (char *)(polykey)) +function _EVP_PKEY_assign_POLY1305(pkey: PEVP_PKEY; polykey: Pointer): TIdC_INT; cdecl; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_POLY1305, polykey); +end; + +procedure _OpenSSL_add_all_ciphers; cdecl; +begin + OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS, nil); +end; + +procedure _OpenSSL_add_all_digests; cdecl; +begin + OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_DIGESTS, Nil); +end; + +procedure _EVP_cleanup; cdecl; +begin +end; + +procedure _BIO_set_md(v1: PBIO; const md: PEVP_MD); cdecl; +begin + {define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,0,(char *)(md))} + BIO_ctrl(v1,BIO_C_SET_MD,0,PIdAnsiChar(md)); +end; + +{$WARN NO_RETVAL OFF} +function ERR_EVP_PKEY_assign_RSA(pkey: PEVP_PKEY; rsa: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_assign_RSA'); +end; + + +function ERR_EVP_PKEY_assign_DSA(pkey: PEVP_PKEY; dsa: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_assign_DSA'); +end; + + +function ERR_EVP_PKEY_assign_DH(pkey: PEVP_PKEY; dh: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_assign_DH'); +end; + + +function ERR_EVP_PKEY_assign_EC_KEY(pkey: PEVP_PKEY; eckey: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_assign_EC_KEY'); +end; + + +function ERR_EVP_PKEY_assign_SIPHASH(pkey: PEVP_PKEY; shkey: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_assign_SIPHASH'); +end; + + +function ERR_EVP_PKEY_assign_POLY1305(pkey: PEVP_PKEY; polykey: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_assign_POLY1305'); +end; + + +function ERR_EVP_MD_meth_new(md_type: TIdC_INT; pkey_type: TIdC_INT): PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_new'); +end; + + +function ERR_EVP_MD_meth_dup(const md: PEVP_MD): PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_dup'); +end; + + +procedure ERR_EVP_MD_meth_free(md: PEVP_MD); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_free'); +end; + + +function ERR_EVP_MD_meth_set_input_blocksize(md: PEVP_MD; blocksize: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_set_input_blocksize'); +end; + + +function ERR_EVP_MD_meth_set_result_size(md: PEVP_MD; resultsize: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_set_result_size'); +end; + + +function ERR_EVP_MD_meth_set_app_datasize(md: PEVP_MD; datasize: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_set_app_datasize'); +end; + + +function ERR_EVP_MD_meth_set_flags(md: PEVP_MD; flags: TIdC_ULONG): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_set_flags'); +end; + + +function ERR_EVP_MD_meth_set_init(md: PEVP_MD; init: EVP_MD_meth_init): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_set_init'); +end; + + +function ERR_EVP_MD_meth_set_update(md: PEVP_MD; update: EVP_MD_meth_update): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_set_update'); +end; + + +function ERR_EVP_MD_meth_set_final(md: PEVP_MD; final_: EVP_MD_meth_final): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_set_final'); +end; + + +function ERR_EVP_MD_meth_set_copy(md: PEVP_MD; copy: EVP_MD_meth_copy): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_set_copy'); +end; + + +function ERR_EVP_MD_meth_set_cleanup(md: PEVP_MD; cleanup: EVP_MD_meth_cleanup): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_set_cleanup'); +end; + + +function ERR_EVP_MD_meth_set_ctrl(md: PEVP_MD; ctrl: EVP_MD_meth_ctrl): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_set_ctrl'); +end; + + +function ERR_EVP_MD_meth_get_input_blocksize(const md: PEVP_MD): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_get_input_blocksize'); +end; + + +function ERR_EVP_MD_meth_get_result_size(const md: PEVP_MD): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_get_result_size'); +end; + + +function ERR_EVP_MD_meth_get_app_datasize(const md: PEVP_MD): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_get_app_datasize'); +end; + + +function ERR_EVP_MD_meth_get_flags(const md: PEVP_MD): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_get_flags'); +end; + + +function ERR_EVP_MD_meth_get_init(const md: PEVP_MD): EVP_MD_meth_init; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_get_init'); +end; + + +function ERR_EVP_MD_meth_get_update(const md: PEVP_MD): EVP_MD_meth_update; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_get_update'); +end; + + +function ERR_EVP_MD_meth_get_final(const md: PEVP_MD): EVP_MD_meth_final; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_get_final'); +end; + + +function ERR_EVP_MD_meth_get_copy(const md: PEVP_MD): EVP_MD_meth_copy; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_get_copy'); +end; + + +function ERR_EVP_MD_meth_get_cleanup(const md: PEVP_MD): EVP_MD_meth_cleanup; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_get_cleanup'); +end; + + +function ERR_EVP_MD_meth_get_ctrl(const md: PEVP_MD): EVP_MD_meth_ctrl; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_meth_get_ctrl'); +end; + + +function ERR_EVP_CIPHER_meth_new(cipher_type: TIdC_INT; block_size: TIdC_INT; key_len: TIdC_INT): PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_new'); +end; + + +function ERR_EVP_CIPHER_meth_dup(const cipher: PEVP_CIPHER): PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_dup'); +end; + + +procedure ERR_EVP_CIPHER_meth_free(cipher: PEVP_CIPHER); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_free'); +end; + + +function ERR_EVP_CIPHER_meth_set_iv_length(cipher: PEVP_CIPHER; iv_len: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_set_iv_length'); +end; + + +function ERR_EVP_CIPHER_meth_set_flags(cipher: PEVP_CIPHER; flags: TIdC_ULONG): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_set_flags'); +end; + + +function ERR_EVP_CIPHER_meth_set_impl_ctx_size(cipher: PEVP_CIPHER; ctx_size: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_set_impl_ctx_size'); +end; + + +function ERR_EVP_CIPHER_meth_set_init(cipher: PEVP_CIPHER; init: EVP_CIPHER_meth_init): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_set_init'); +end; + + +function ERR_EVP_CIPHER_meth_set_do_cipher(cipher: PEVP_CIPHER; do_cipher: EVP_CIPHER_meth_do_cipher): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_set_do_cipher'); +end; + + +function ERR_EVP_CIPHER_meth_set_cleanup(cipher: PEVP_CIPHER; cleanup: EVP_CIPHER_meth_cleanup): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_set_cleanup'); +end; + + +function ERR_EVP_CIPHER_meth_set_set_asn1_params(cipher: PEVP_CIPHER; set_asn1_parameters: EVP_CIPHER_meth_set_asn1_params): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_set_set_asn1_params'); +end; + + +function ERR_EVP_CIPHER_meth_set_get_asn1_params(cipher: PEVP_CIPHER; get_asn1_parameters: EVP_CIPHER_meth_get_asn1_params): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_set_get_asn1_params'); +end; + + +function ERR_EVP_CIPHER_meth_set_ctrl(cipher: PEVP_CIPHER; ctrl: EVP_CIPHER_meth_ctrl): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_set_ctrl'); +end; + + +function ERR_EVP_CIPHER_meth_get_init(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_init; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_get_init'); +end; + + +function ERR_EVP_CIPHER_meth_get_do_cipher(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_do_cipher; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_get_do_cipher'); +end; + + +function ERR_EVP_CIPHER_meth_get_cleanup(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_cleanup; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_get_cleanup'); +end; + + +function ERR_EVP_CIPHER_meth_get_set_asn1_params(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_set_asn1_params; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_get_set_asn1_params'); +end; + + +function ERR_EVP_CIPHER_meth_get_get_asn1_params(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_get_asn1_params; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_get_get_asn1_params'); +end; + + +function ERR_EVP_CIPHER_meth_get_ctrl(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_ctrl; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_meth_get_ctrl'); +end; + + +function ERR_EVP_MD_type(const md: PEVP_MD): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_type'); +end; + + +function ERR_EVP_MD_pkey_type(const md: PEVP_MD): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_pkey_type'); +end; + + +function ERR_EVP_MD_size(const md: PEVP_MD): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_size'); +end; + + +function ERR_EVP_MD_block_size(const md: PEVP_MD): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_block_size'); +end; + + +function ERR_EVP_MD_flags(const md: PEVP_MD): PIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_flags'); +end; + + +function ERR_EVP_MD_CTX_update_fn(ctx: PEVP_MD_CTX): EVP_MD_CTX_update; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_CTX_update_fn'); +end; + + +procedure ERR_EVP_MD_CTX_set_update_fn(ctx: PEVP_MD_CTX; update: EVP_MD_CTX_update); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_CTX_set_update_fn'); +end; + + +function ERR_EVP_MD_CTX_pkey_ctx(const ctx: PEVP_MD_CTX): PEVP_PKEY_CTX; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_CTX_pkey_ctx'); +end; + + +procedure ERR_EVP_MD_CTX_set_pkey_ctx(ctx: PEVP_MD_CTX; pctx: PEVP_PKEY_CTX); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_CTX_set_pkey_ctx'); +end; + + +function ERR_EVP_MD_CTX_md_data(const ctx: PEVP_MD_CTX): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_CTX_md_data'); +end; + + +function ERR_EVP_CIPHER_nid(const ctx: PEVP_MD_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_nid'); +end; + + +function ERR_EVP_CIPHER_block_size(const cipher: PEVP_CIPHER): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_block_size'); +end; + + +function ERR_EVP_CIPHER_impl_ctx_size(const cipher: PEVP_CIPHER): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_impl_ctx_size'); +end; + + +function ERR_EVP_CIPHER_key_length(const cipher: PEVP_CIPHER): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_key_length'); +end; + + +function ERR_EVP_CIPHER_iv_length(const cipher: PEVP_CIPHER): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_iv_length'); +end; + + +function ERR_EVP_CIPHER_flags(const cipher: PEVP_CIPHER): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_flags'); +end; + + +function ERR_EVP_CIPHER_CTX_encrypting(const ctx: PEVP_CIPHER_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_encrypting'); +end; + + +function ERR_EVP_CIPHER_CTX_nid(const ctx: PEVP_CIPHER_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_nid'); +end; + + +function ERR_EVP_CIPHER_CTX_block_size(const ctx: PEVP_CIPHER_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_block_size'); +end; + + +function ERR_EVP_CIPHER_CTX_key_length(const ctx: PEVP_CIPHER_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_key_length'); +end; + + +function ERR_EVP_CIPHER_CTX_iv_length(const ctx: PEVP_CIPHER_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_iv_length'); +end; + + +function ERR_EVP_CIPHER_CTX_iv(const ctx: PEVP_CIPHER_CTX): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_iv'); +end; + + +function ERR_EVP_CIPHER_CTX_original_iv(const ctx: PEVP_CIPHER_CTX): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_original_iv'); +end; + + +function ERR_EVP_CIPHER_CTX_iv_noconst(ctx: PEVP_CIPHER_CTX): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_iv_noconst'); +end; + + +function ERR_EVP_CIPHER_CTX_buf_noconst(ctx: PEVP_CIPHER_CTX): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_buf_noconst'); +end; + + +function ERR_EVP_CIPHER_CTX_num(const ctx: PEVP_CIPHER_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_num'); +end; + + +procedure ERR_EVP_CIPHER_CTX_set_num(ctx: PEVP_CIPHER_CTX; num: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_set_num'); +end; + + +function ERR_EVP_CIPHER_CTX_get_cipher_data(const ctx: PEVP_CIPHER_CTX): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_get_cipher_data'); +end; + + +function ERR_EVP_CIPHER_CTX_set_cipher_data(ctx: PEVP_CIPHER_CTX; cipher_data: Pointer): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_set_cipher_data'); +end; + + +procedure ERR_BIO_set_md(v1: PBIO; const md: PEVP_MD); +begin + EIdAPIFunctionNotPresent.RaiseException('BIO_set_md'); +end; + + +function ERR_EVP_MD_CTX_ctrl(ctx: PEVP_MD_CTX; cmd: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_CTX_ctrl'); +end; + + +function ERR_EVP_MD_CTX_new: PEVP_MD_CTX; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_CTX_new'); +end; + + +function ERR_EVP_MD_CTX_reset(ctx: PEVP_MD_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_CTX_reset'); +end; + + +procedure ERR_EVP_MD_CTX_free(ctx: PEVP_MD_CTX); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_MD_CTX_free'); +end; + + +function ERR_EVP_DigestFinalXOF(ctx: PEVP_MD_CTX; md: PByte; len: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_DigestFinalXOF'); +end; + + +function ERR_EVP_DigestSign(ctx: PEVP_CIPHER_CTX; sigret: PByte; siglen: PIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_DigestSign'); +end; + + +function ERR_EVP_DigestVerify(ctx: PEVP_CIPHER_CTX; const sigret: PByte; siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_DigestVerify'); +end; + + +function ERR_EVP_ENCODE_CTX_new: PEVP_ENCODE_CTX; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_ENCODE_CTX_new'); +end; + + +procedure ERR_EVP_ENCODE_CTX_free(ctx: PEVP_ENCODE_CTX); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_ENCODE_CTX_free'); +end; + + +function ERR_EVP_ENCODE_CTX_copy(dctx: PEVP_ENCODE_CTX; sctx: PEVP_ENCODE_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_ENCODE_CTX_copy'); +end; + + +function ERR_EVP_ENCODE_CTX_num(ctx: PEVP_ENCODE_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_ENCODE_CTX_num'); +end; + + +function ERR_EVP_CIPHER_CTX_reset(c: PEVP_CIPHER_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_CTX_reset'); +end; + + +function ERR_EVP_md5_sha1: PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_md5_sha1'); +end; + + +function ERR_EVP_sha512_224: PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_sha512_224'); +end; + + +function ERR_EVP_sha512_256: PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_sha512_256'); +end; + + +function ERR_EVP_sha3_224: PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_sha3_224'); +end; + + +function ERR_EVP_sha3_256: PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_sha3_256'); +end; + + +function ERR_EVP_sha3_384: PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_sha3_384'); +end; + + +function ERR_EVP_sha3_512: PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_sha3_512'); +end; + + +function ERR_EVP_shake128: PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_shake128'); +end; + + +function ERR_EVP_shake256: PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_shake256'); +end; + + +function ERR_EVP_aes_128_wrap_pad: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aes_128_wrap_pad'); +end; + + +function ERR_EVP_aes_128_ocb: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aes_128_ocb'); +end; + + +function ERR_EVP_aes_192_wrap_pad: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aes_192_wrap_pad'); +end; + + +function ERR_EVP_aes_192_ocb: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aes_192_ocb'); +end; + + +function ERR_EVP_aes_256_wrap_pad: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aes_256_wrap_pad'); +end; + + +function ERR_EVP_aes_256_ocb: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aes_256_ocb'); +end; + + +function ERR_EVP_aria_128_ecb: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_128_ecb'); +end; + + +function ERR_EVP_aria_128_cbc: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_128_cbc'); +end; + + +function ERR_EVP_aria_128_cfb1: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_128_cfb1'); +end; + + +function ERR_EVP_aria_128_cfb8: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_128_cfb8'); +end; + + +function ERR_EVP_aria_128_cfb128: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_128_cfb128'); +end; + + +function ERR_EVP_aria_128_ctr: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_128_ctr'); +end; + + +function ERR_EVP_aria_128_ofb: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_128_ofb'); +end; + + +function ERR_EVP_aria_128_gcm: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_128_gcm'); +end; + + +function ERR_EVP_aria_128_ccm: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_128_ccm'); +end; + + +function ERR_EVP_aria_192_ecb: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_192_ecb'); +end; + + +function ERR_EVP_aria_192_cbc: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_192_cbc'); +end; + + +function ERR_EVP_aria_192_cfb1: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_192_cfb1'); +end; + + +function ERR_EVP_aria_192_cfb8: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_192_cfb8'); +end; + + +function ERR_EVP_aria_192_cfb128: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_192_cfb128'); +end; + + +function ERR_EVP_aria_192_ctr: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_192_ctr'); +end; + + +function ERR_EVP_aria_192_ofb: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_192_ofb'); +end; + + +function ERR_EVP_aria_192_gcm: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_192_gcm'); +end; + + +function ERR_EVP_aria_192_ccm: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_192_ccm'); +end; + + +function ERR_EVP_aria_256_ecb: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_256_ecb'); +end; + + +function ERR_EVP_aria_256_cbc: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_256_cbc'); +end; + + +function ERR_EVP_aria_256_cfb1: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_256_cfb1'); +end; + + +function ERR_EVP_aria_256_cfb8: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_256_cfb8'); +end; + + +function ERR_EVP_aria_256_cfb128: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_256_cfb128'); +end; + + +function ERR_EVP_aria_256_ctr: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_256_ctr'); +end; + + +function ERR_EVP_aria_256_ofb: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_256_ofb'); +end; + + +function ERR_EVP_aria_256_gcm: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_256_gcm'); +end; + + +function ERR_EVP_aria_256_ccm: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_aria_256_ccm'); +end; + + +function ERR_EVP_camellia_128_ctr: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_camellia_128_ctr'); +end; + + +function ERR_EVP_camellia_192_ctr: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_camellia_192_ctr'); +end; + + +function ERR_EVP_camellia_256_ctr: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_camellia_256_ctr'); +end; + + +function ERR_EVP_chacha20: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_chacha20'); +end; + + +function ERR_EVP_chacha20_poly1305: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_chacha20_poly1305'); +end; + + +function ERR_EVP_sm4_ecb: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_sm4_ecb'); +end; + + +function ERR_EVP_sm4_cbc: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_sm4_cbc'); +end; + + +function ERR_EVP_sm4_cfb128: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_sm4_cfb128'); +end; + + +function ERR_EVP_sm4_ofb: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_sm4_ofb'); +end; + + +function ERR_EVP_sm4_ctr: PEVP_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_sm4_ctr'); +end; + + +function ERR_EVP_PKEY_id(const pkey: PEVP_PKEY): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_id'); +end; + + +function ERR_EVP_PKEY_base_id(const pkey: PEVP_PKEY): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_base_id'); +end; + + +function ERR_EVP_PKEY_bits(const pkey: PEVP_PKEY): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_bits'); +end; + + +function ERR_EVP_PKEY_security_bits(const pkey: PEVP_PKEY): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_security_bits'); +end; + + +function ERR_EVP_PKEY_size(const pkey: PEVP_PKEY): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_size'); +end; + + +function ERR_EVP_PKEY_set_alias_type(pkey: PEVP_PKEY; type_: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_set_alias_type'); +end; + + +function ERR_EVP_PKEY_set1_engine(pkey: PEVP_PKEY; e: PENGINE): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_set1_engine'); +end; + + +function ERR_EVP_PKEY_get0_engine(const pkey: PEVP_PKEY): PENGINE; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_get0_engine'); +end; + + +function ERR_EVP_PKEY_get0_hmac(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_get0_hmac'); +end; + + +function ERR_EVP_PKEY_get0_poly1305(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_get0_poly1305'); +end; + + +function ERR_EVP_PKEY_get0_siphash(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_get0_siphash'); +end; + + +function ERR_EVP_PKEY_get0_RSA(pkey: PEVP_PKEY): PRSA; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_get0_RSA'); +end; + + +function ERR_EVP_PKEY_get0_DSA(pkey: PEVP_PKEY): PDSA; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_get0_DSA'); +end; + + +function ERR_EVP_PKEY_get0_DH(pkey: PEVP_PKEY): PDH; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_get0_DH'); +end; + + +function ERR_EVP_PKEY_get0_EC_KEY(pkey: PEVP_PKEY): PEC_KEY; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_get0_EC_KEY'); +end; + + +function ERR_EVP_PKEY_up_ref(pkey: PEVP_PKEY): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_up_ref'); +end; + + +function ERR_EVP_PKEY_set1_tls_encodedpoint(pkey: PEVP_PKEY; const pt: PByte; ptlen: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_set1_tls_encodedpoint'); +end; + + +function ERR_EVP_PKEY_get1_tls_encodedpoint(pkey: PEVP_PKEY; ppt: PPByte): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_get1_tls_encodedpoint'); +end; + + +function ERR_EVP_CIPHER_type(const ctx: PEVP_CIPHER): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_CIPHER_type'); +end; + + +function ERR_EVP_PBE_scrypt(const pass: PIdAnsiChar; passlen: TIdC_SIZET; const salt: PByte; saltlen: TIdC_SIZET; N: TIdC_UINT64; r: TIdC_UINT64; p: TIdC_UINT64; maxmem: TIdC_UINT64; key: PByte; keylen: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PBE_scrypt'); +end; + + +function ERR_PKCS5_v2_scrypt_keyivgen(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const c: PEVP_CIPHER; const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS5_v2_scrypt_keyivgen'); +end; + + +function ERR_EVP_PBE_get(ptype: PIdC_INT; ppbe_nid: PIdC_INT; num: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PBE_get'); +end; + + +procedure ERR_EVP_PKEY_asn1_set_siginf(ameth: PEVP_PKEY_ASN1_METHOD; ASiginf_set: siginf_set); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_asn1_set_siginf'); +end; + + +procedure ERR_EVP_PKEY_asn1_set_check(ameth: PEVP_PKEY_ASN1_METHOD; APkey_check: pkey_check); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_asn1_set_check'); +end; + + +procedure ERR_EVP_PKEY_asn1_set_public_check(ameth: PEVP_PKEY_ASN1_METHOD; APkey_pub_check: pkey_pub_check); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_asn1_set_public_check'); +end; + + +procedure ERR_EVP_PKEY_asn1_set_param_check(ameth: PEVP_PKEY_ASN1_METHOD; APkey_param_check: pkey_param_check); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_asn1_set_param_check'); +end; + + +procedure ERR_EVP_PKEY_asn1_set_set_priv_key(ameth: PEVP_PKEY_ASN1_METHOD; ASet_priv_key: set_priv_key); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_asn1_set_set_priv_key'); +end; + + +procedure ERR_EVP_PKEY_asn1_set_set_pub_key(ameth: PEVP_PKEY_ASN1_METHOD; ASet_pub_key: set_pub_key); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_asn1_set_set_pub_key'); +end; + + +procedure ERR_EVP_PKEY_asn1_set_get_priv_key(ameth: PEVP_PKEY_ASN1_METHOD; AGet_priv_key: get_priv_key); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_asn1_set_get_priv_key'); +end; + + +procedure ERR_EVP_PKEY_asn1_set_get_pub_key(ameth: PEVP_PKEY_ASN1_METHOD; AGet_pub_key: get_pub_key); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_asn1_set_get_pub_key'); +end; + + +procedure ERR_EVP_PKEY_asn1_set_security_bits(ameth: PEVP_PKEY_ASN1_METHOD; APkey_security_bits: pkey_security_bits); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_asn1_set_security_bits'); +end; + + +function ERR_EVP_PKEY_meth_remove(const pmeth: PEVP_PKEY_METHOD): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_remove'); +end; + + +function ERR_EVP_PKEY_meth_get_count: TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_get_count'); +end; + + +function ERR_EVP_PKEY_meth_get0(idx: TIdC_SIZET): PEVP_PKEY_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_get0'); +end; + + +function ERR_EVP_PKEY_CTX_ctrl_uint64(ctx: PEVP_PKEY_CTX; keytype: TIdC_INT; optype: TIdC_INT; cmd: TIdC_INT; value: TIdC_UINT64): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_CTX_ctrl_uint64'); +end; + + +function ERR_EVP_PKEY_CTX_str2ctrl(ctx: PEVP_PKEY_CTX; cmd: TIdC_INT; const str: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_CTX_str2ctrl'); +end; + + +function ERR_EVP_PKEY_CTX_hex2ctrl(ctx: PEVP_PKEY_CTX; cmd: TIdC_INT; const hex: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_CTX_hex2ctrl'); +end; + + +function ERR_EVP_PKEY_CTX_md(ctx: PEVP_PKEY_CTX; optype: TIdC_INT; cmd: TIdC_INT; const md: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_CTX_md'); +end; + + +function ERR_EVP_PKEY_new_raw_private_key(type_: TIdC_INT; e: PENGINE; const priv: PByte; len: TIdC_SIZET): PEVP_PKEY; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_new_raw_private_key'); +end; + + +function ERR_EVP_PKEY_new_raw_public_key(type_: TIdC_INT; e: PENGINE; const pub: PByte; len: TIdC_SIZET): PEVP_PKEY; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_new_raw_public_key'); +end; + + +function ERR_EVP_PKEY_get_raw_private_key(const pkey: PEVP_PKEY; priv: PByte; len: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_get_raw_private_key'); +end; + + +function ERR_EVP_PKEY_get_raw_public_key(const pkey: PEVP_PKEY; pub: PByte; len: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_get_raw_public_key'); +end; + + +function ERR_EVP_PKEY_new_CMAC_key(e: PENGINE; const priv: PByte; len: TIdC_SIZET; const cipher: PEVP_CIPHER): PEVP_PKEY; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_new_CMAC_key'); +end; + + +function ERR_EVP_PKEY_check(ctx: PEVP_PKEY_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_check'); +end; + + +function ERR_EVP_PKEY_public_check(ctx: PEVP_PKEY_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_public_check'); +end; + + +function ERR_EVP_PKEY_param_check(ctx: PEVP_PKEY_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_param_check'); +end; + + +procedure ERR_EVP_PKEY_meth_set_digestsign(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestsign: EVP_PKEY_meth_digestsign); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_set_digestsign'); +end; + + +procedure ERR_EVP_PKEY_meth_set_digestverify(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestverify: EVP_PKEY_meth_digestverify); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_set_digestverify'); +end; + + +procedure ERR_EVP_PKEY_meth_set_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_check: EVP_PKEY_meth_check); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_set_check'); +end; + + +procedure ERR_EVP_PKEY_meth_set_public_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_public_check: EVP_PKEY_meth_public_check); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_set_public_check'); +end; + + +procedure ERR_EVP_PKEY_meth_set_param_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_param_check: EVP_PKEY_meth_param_check); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_set_param_check'); +end; + + +procedure ERR_EVP_PKEY_meth_set_digest_custom(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digest_custom: EVP_PKEY_meth_digest_custom); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_set_digest_custom'); +end; + + +procedure ERR_EVP_PKEY_meth_get_digestsign(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestsign: PEVP_PKEY_meth_digestsign); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_get_digestsign'); +end; + + +procedure ERR_EVP_PKEY_meth_get_digestverify(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestverify: PEVP_PKEY_meth_digestverify); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_get_digestverify'); +end; + + +procedure ERR_EVP_PKEY_meth_get_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_check: PEVP_PKEY_meth_check); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_get_check'); +end; + + +procedure ERR_EVP_PKEY_meth_get_public_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_public_check: PEVP_PKEY_meth_public_check); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_get_public_check'); +end; + + +procedure ERR_EVP_PKEY_meth_get_param_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_param_check: PEVP_PKEY_meth_param_check); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_get_param_check'); +end; + + +procedure ERR_EVP_PKEY_meth_get_digest_custom(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digest_custom: PEVP_PKEY_meth_digest_custom); +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_PKEY_meth_get_digest_custom'); +end; + + +procedure ERR_OpenSSL_add_all_ciphers; +begin + EIdAPIFunctionNotPresent.RaiseException('OpenSSL_add_all_ciphers'); +end; + + +procedure ERR_OpenSSL_add_all_digests; +begin + EIdAPIFunctionNotPresent.RaiseException('OpenSSL_add_all_digests'); +end; + + +procedure ERR_EVP_cleanup; +begin + EIdAPIFunctionNotPresent.RaiseException('EVP_cleanup'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + EVP_MD_CTX_md := LoadFunction('EVP_MD_CTX_md',AFailed); + EVP_CIPHER_CTX_cipher := LoadFunction('EVP_CIPHER_CTX_cipher',AFailed); + EVP_CIPHER_CTX_copy := LoadFunction('EVP_CIPHER_CTX_copy',AFailed); + EVP_CIPHER_CTX_get_app_data := LoadFunction('EVP_CIPHER_CTX_get_app_data',AFailed); + EVP_CIPHER_CTX_set_app_data := LoadFunction('EVP_CIPHER_CTX_set_app_data',AFailed); + EVP_MD_CTX_copy_ex := LoadFunction('EVP_MD_CTX_copy_ex',AFailed); + EVP_MD_CTX_set_flags := LoadFunction('EVP_MD_CTX_set_flags',AFailed); + EVP_MD_CTX_clear_flags := LoadFunction('EVP_MD_CTX_clear_flags',AFailed); + EVP_MD_CTX_test_flags := LoadFunction('EVP_MD_CTX_test_flags',AFailed); + EVP_DigestInit_ex := LoadFunction('EVP_DigestInit_ex',AFailed); + EVP_DigestUpdate := LoadFunction('EVP_DigestUpdate',AFailed); + EVP_DigestFinal_ex := LoadFunction('EVP_DigestFinal_ex',AFailed); + EVP_Digest := LoadFunction('EVP_Digest',AFailed); + EVP_MD_CTX_copy := LoadFunction('EVP_MD_CTX_copy',AFailed); + EVP_DigestInit := LoadFunction('EVP_DigestInit',AFailed); + EVP_DigestFinal := LoadFunction('EVP_DigestFinal',AFailed); + EVP_read_pw_string := LoadFunction('EVP_read_pw_string',AFailed); + EVP_read_pw_string_min := LoadFunction('EVP_read_pw_string_min',AFailed); + EVP_set_pw_prompt := LoadFunction('EVP_set_pw_prompt',AFailed); + EVP_get_pw_prompt := LoadFunction('EVP_get_pw_prompt',AFailed); + EVP_BytesToKey := LoadFunction('EVP_BytesToKey',AFailed); + EVP_CIPHER_CTX_set_flags := LoadFunction('EVP_CIPHER_CTX_set_flags',AFailed); + EVP_CIPHER_CTX_clear_flags := LoadFunction('EVP_CIPHER_CTX_clear_flags',AFailed); + EVP_CIPHER_CTX_test_flags := LoadFunction('EVP_CIPHER_CTX_test_flags',AFailed); + EVP_EncryptInit := LoadFunction('EVP_EncryptInit',AFailed); + EVP_EncryptInit_ex := LoadFunction('EVP_EncryptInit_ex',AFailed); + EVP_EncryptUpdate := LoadFunction('EVP_EncryptUpdate',AFailed); + EVP_EncryptFinal_ex := LoadFunction('EVP_EncryptFinal_ex',AFailed); + EVP_EncryptFinal := LoadFunction('EVP_EncryptFinal',AFailed); + EVP_DecryptInit := LoadFunction('EVP_DecryptInit',AFailed); + EVP_DecryptInit_ex := LoadFunction('EVP_DecryptInit_ex',AFailed); + EVP_DecryptUpdate := LoadFunction('EVP_DecryptUpdate',AFailed); + EVP_DecryptFinal := LoadFunction('EVP_DecryptFinal',AFailed); + EVP_DecryptFinal_ex := LoadFunction('EVP_DecryptFinal_ex',AFailed); + EVP_CipherInit := LoadFunction('EVP_CipherInit',AFailed); + EVP_CipherInit_ex := LoadFunction('EVP_CipherInit_ex',AFailed); + EVP_CipherUpdate := LoadFunction('EVP_CipherUpdate',AFailed); + EVP_CipherFinal := LoadFunction('EVP_CipherFinal',AFailed); + EVP_CipherFinal_ex := LoadFunction('EVP_CipherFinal_ex',AFailed); + EVP_SignFinal := LoadFunction('EVP_SignFinal',AFailed); + EVP_VerifyFinal := LoadFunction('EVP_VerifyFinal',AFailed); + EVP_DigestSignInit := LoadFunction('EVP_DigestSignInit',AFailed); + EVP_DigestSignFinal := LoadFunction('EVP_DigestSignFinal',AFailed); + EVP_DigestVerifyInit := LoadFunction('EVP_DigestVerifyInit',AFailed); + EVP_DigestVerifyFinal := LoadFunction('EVP_DigestVerifyFinal',AFailed); + EVP_OpenInit := LoadFunction('EVP_OpenInit',AFailed); + EVP_OpenFinal := LoadFunction('EVP_OpenFinal',AFailed); + EVP_SealInit := LoadFunction('EVP_SealInit',AFailed); + EVP_SealFinal := LoadFunction('EVP_SealFinal',AFailed); + EVP_EncodeInit := LoadFunction('EVP_EncodeInit',AFailed); + EVP_EncodeUpdate := LoadFunction('EVP_EncodeUpdate',AFailed); + EVP_EncodeFinal := LoadFunction('EVP_EncodeFinal',AFailed); + EVP_EncodeBlock := LoadFunction('EVP_EncodeBlock',AFailed); + EVP_DecodeInit := LoadFunction('EVP_DecodeInit',AFailed); + EVP_DecodeUpdate := LoadFunction('EVP_DecodeUpdate',AFailed); + EVP_DecodeFinal := LoadFunction('EVP_DecodeFinal',AFailed); + EVP_DecodeBlock := LoadFunction('EVP_DecodeBlock',AFailed); + EVP_CIPHER_CTX_new := LoadFunction('EVP_CIPHER_CTX_new',AFailed); + EVP_CIPHER_CTX_free := LoadFunction('EVP_CIPHER_CTX_free',AFailed); + EVP_CIPHER_CTX_set_key_length := LoadFunction('EVP_CIPHER_CTX_set_key_length',AFailed); + EVP_CIPHER_CTX_set_padding := LoadFunction('EVP_CIPHER_CTX_set_padding',AFailed); + EVP_CIPHER_CTX_ctrl := LoadFunction('EVP_CIPHER_CTX_ctrl',AFailed); + EVP_CIPHER_CTX_rand_key := LoadFunction('EVP_CIPHER_CTX_rand_key',AFailed); + BIO_f_md := LoadFunction('BIO_f_md',AFailed); + BIO_f_base64 := LoadFunction('BIO_f_base64',AFailed); + BIO_f_cipher := LoadFunction('BIO_f_cipher',AFailed); + BIO_f_reliable := LoadFunction('BIO_f_reliable',AFailed); + BIO_set_cipher := LoadFunction('BIO_set_cipher',AFailed); + EVP_md_null := LoadFunction('EVP_md_null',AFailed); + EVP_md5 := LoadFunction('EVP_md5',AFailed); + EVP_sha1 := LoadFunction('EVP_sha1',AFailed); + EVP_sha224 := LoadFunction('EVP_sha224',AFailed); + EVP_sha256 := LoadFunction('EVP_sha256',AFailed); + EVP_sha384 := LoadFunction('EVP_sha384',AFailed); + EVP_sha512 := LoadFunction('EVP_sha512',AFailed); + EVP_enc_null := LoadFunction('EVP_enc_null',AFailed); + EVP_des_ecb := LoadFunction('EVP_des_ecb',AFailed); + EVP_des_ede := LoadFunction('EVP_des_ede',AFailed); + EVP_des_ede3 := LoadFunction('EVP_des_ede3',AFailed); + EVP_des_ede_ecb := LoadFunction('EVP_des_ede_ecb',AFailed); + EVP_des_ede3_ecb := LoadFunction('EVP_des_ede3_ecb',AFailed); + EVP_des_cfb64 := LoadFunction('EVP_des_cfb64',AFailed); + EVP_des_cfb1 := LoadFunction('EVP_des_cfb1',AFailed); + EVP_des_cfb8 := LoadFunction('EVP_des_cfb8',AFailed); + EVP_des_ede_cfb64 := LoadFunction('EVP_des_ede_cfb64',AFailed); + EVP_des_ede3_cfb64 := LoadFunction('EVP_des_ede3_cfb64',AFailed); + EVP_des_ede3_cfb1 := LoadFunction('EVP_des_ede3_cfb1',AFailed); + EVP_des_ede3_cfb8 := LoadFunction('EVP_des_ede3_cfb8',AFailed); + EVP_des_ofb := LoadFunction('EVP_des_ofb',AFailed); + EVP_des_ede_ofb := LoadFunction('EVP_des_ede_ofb',AFailed); + EVP_des_ede3_ofb := LoadFunction('EVP_des_ede3_ofb',AFailed); + EVP_des_cbc := LoadFunction('EVP_des_cbc',AFailed); + EVP_des_ede_cbc := LoadFunction('EVP_des_ede_cbc',AFailed); + EVP_des_ede3_cbc := LoadFunction('EVP_des_ede3_cbc',AFailed); + EVP_desx_cbc := LoadFunction('EVP_desx_cbc',AFailed); + EVP_des_ede3_wrap := LoadFunction('EVP_des_ede3_wrap',AFailed); + EVP_rc4 := LoadFunction('EVP_rc4',AFailed); + EVP_rc4_40 := LoadFunction('EVP_rc4_40',AFailed); + EVP_rc2_ecb := LoadFunction('EVP_rc2_ecb',AFailed); + EVP_rc2_cbc := LoadFunction('EVP_rc2_cbc',AFailed); + EVP_rc2_40_cbc := LoadFunction('EVP_rc2_40_cbc',AFailed); + EVP_rc2_64_cbc := LoadFunction('EVP_rc2_64_cbc',AFailed); + EVP_rc2_cfb64 := LoadFunction('EVP_rc2_cfb64',AFailed); + EVP_rc2_ofb := LoadFunction('EVP_rc2_ofb',AFailed); + EVP_bf_ecb := LoadFunction('EVP_bf_ecb',AFailed); + EVP_bf_cbc := LoadFunction('EVP_bf_cbc',AFailed); + EVP_bf_cfb64 := LoadFunction('EVP_bf_cfb64',AFailed); + EVP_bf_ofb := LoadFunction('EVP_bf_ofb',AFailed); + EVP_cast5_ecb := LoadFunction('EVP_cast5_ecb',AFailed); + EVP_cast5_cbc := LoadFunction('EVP_cast5_cbc',AFailed); + EVP_cast5_cfb64 := LoadFunction('EVP_cast5_cfb64',AFailed); + EVP_cast5_ofb := LoadFunction('EVP_cast5_ofb',AFailed); + EVP_aes_128_ecb := LoadFunction('EVP_aes_128_ecb',AFailed); + EVP_aes_128_cbc := LoadFunction('EVP_aes_128_cbc',AFailed); + EVP_aes_128_cfb1 := LoadFunction('EVP_aes_128_cfb1',AFailed); + EVP_aes_128_cfb8 := LoadFunction('EVP_aes_128_cfb8',AFailed); + EVP_aes_128_cfb128 := LoadFunction('EVP_aes_128_cfb128',AFailed); + EVP_aes_128_ofb := LoadFunction('EVP_aes_128_ofb',AFailed); + EVP_aes_128_ctr := LoadFunction('EVP_aes_128_ctr',AFailed); + EVP_aes_128_ccm := LoadFunction('EVP_aes_128_ccm',AFailed); + EVP_aes_128_gcm := LoadFunction('EVP_aes_128_gcm',AFailed); + EVP_aes_128_xts := LoadFunction('EVP_aes_128_xts',AFailed); + EVP_aes_128_wrap := LoadFunction('EVP_aes_128_wrap',AFailed); + EVP_aes_192_ecb := LoadFunction('EVP_aes_192_ecb',AFailed); + EVP_aes_192_cbc := LoadFunction('EVP_aes_192_cbc',AFailed); + EVP_aes_192_cfb1 := LoadFunction('EVP_aes_192_cfb1',AFailed); + EVP_aes_192_cfb8 := LoadFunction('EVP_aes_192_cfb8',AFailed); + EVP_aes_192_cfb128 := LoadFunction('EVP_aes_192_cfb128',AFailed); + EVP_aes_192_ofb := LoadFunction('EVP_aes_192_ofb',AFailed); + EVP_aes_192_ctr := LoadFunction('EVP_aes_192_ctr',AFailed); + EVP_aes_192_ccm := LoadFunction('EVP_aes_192_ccm',AFailed); + EVP_aes_192_gcm := LoadFunction('EVP_aes_192_gcm',AFailed); + EVP_aes_192_wrap := LoadFunction('EVP_aes_192_wrap',AFailed); + EVP_aes_256_ecb := LoadFunction('EVP_aes_256_ecb',AFailed); + EVP_aes_256_cbc := LoadFunction('EVP_aes_256_cbc',AFailed); + EVP_aes_256_cfb1 := LoadFunction('EVP_aes_256_cfb1',AFailed); + EVP_aes_256_cfb8 := LoadFunction('EVP_aes_256_cfb8',AFailed); + EVP_aes_256_cfb128 := LoadFunction('EVP_aes_256_cfb128',AFailed); + EVP_aes_256_ofb := LoadFunction('EVP_aes_256_ofb',AFailed); + EVP_aes_256_ctr := LoadFunction('EVP_aes_256_ctr',AFailed); + EVP_aes_256_ccm := LoadFunction('EVP_aes_256_ccm',AFailed); + EVP_aes_256_gcm := LoadFunction('EVP_aes_256_gcm',AFailed); + EVP_aes_256_xts := LoadFunction('EVP_aes_256_xts',AFailed); + EVP_aes_256_wrap := LoadFunction('EVP_aes_256_wrap',AFailed); + EVP_aes_128_cbc_hmac_sha1 := LoadFunction('EVP_aes_128_cbc_hmac_sha1',AFailed); + EVP_aes_256_cbc_hmac_sha1 := LoadFunction('EVP_aes_256_cbc_hmac_sha1',AFailed); + EVP_aes_128_cbc_hmac_sha256 := LoadFunction('EVP_aes_128_cbc_hmac_sha256',AFailed); + EVP_aes_256_cbc_hmac_sha256 := LoadFunction('EVP_aes_256_cbc_hmac_sha256',AFailed); + EVP_camellia_128_ecb := LoadFunction('EVP_camellia_128_ecb',AFailed); + EVP_camellia_128_cbc := LoadFunction('EVP_camellia_128_cbc',AFailed); + EVP_camellia_128_cfb1 := LoadFunction('EVP_camellia_128_cfb1',AFailed); + EVP_camellia_128_cfb8 := LoadFunction('EVP_camellia_128_cfb8',AFailed); + EVP_camellia_128_cfb128 := LoadFunction('EVP_camellia_128_cfb128',AFailed); + EVP_camellia_128_ofb := LoadFunction('EVP_camellia_128_ofb',AFailed); + EVP_camellia_192_ecb := LoadFunction('EVP_camellia_192_ecb',AFailed); + EVP_camellia_192_cbc := LoadFunction('EVP_camellia_192_cbc',AFailed); + EVP_camellia_192_cfb1 := LoadFunction('EVP_camellia_192_cfb1',AFailed); + EVP_camellia_192_cfb8 := LoadFunction('EVP_camellia_192_cfb8',AFailed); + EVP_camellia_192_cfb128 := LoadFunction('EVP_camellia_192_cfb128',AFailed); + EVP_camellia_192_ofb := LoadFunction('EVP_camellia_192_ofb',AFailed); + EVP_camellia_256_ecb := LoadFunction('EVP_camellia_256_ecb',AFailed); + EVP_camellia_256_cbc := LoadFunction('EVP_camellia_256_cbc',AFailed); + EVP_camellia_256_cfb1 := LoadFunction('EVP_camellia_256_cfb1',AFailed); + EVP_camellia_256_cfb8 := LoadFunction('EVP_camellia_256_cfb8',AFailed); + EVP_camellia_256_cfb128 := LoadFunction('EVP_camellia_256_cfb128',AFailed); + EVP_camellia_256_ofb := LoadFunction('EVP_camellia_256_ofb',AFailed); + EVP_seed_ecb := LoadFunction('EVP_seed_ecb',AFailed); + EVP_seed_cbc := LoadFunction('EVP_seed_cbc',AFailed); + EVP_seed_cfb128 := LoadFunction('EVP_seed_cfb128',AFailed); + EVP_seed_ofb := LoadFunction('EVP_seed_ofb',AFailed); + EVP_add_cipher := LoadFunction('EVP_add_cipher',AFailed); + EVP_add_digest := LoadFunction('EVP_add_digest',AFailed); + EVP_get_cipherbyname := LoadFunction('EVP_get_cipherbyname',AFailed); + EVP_get_digestbyname := LoadFunction('EVP_get_digestbyname',AFailed); + EVP_CIPHER_do_all := LoadFunction('EVP_CIPHER_do_all',AFailed); + EVP_CIPHER_do_all_sorted := LoadFunction('EVP_CIPHER_do_all_sorted',AFailed); + EVP_MD_do_all := LoadFunction('EVP_MD_do_all',AFailed); + EVP_MD_do_all_sorted := LoadFunction('EVP_MD_do_all_sorted',AFailed); + EVP_PKEY_decrypt_old := LoadFunction('EVP_PKEY_decrypt_old',AFailed); + EVP_PKEY_encrypt_old := LoadFunction('EVP_PKEY_encrypt_old',AFailed); + EVP_PKEY_type := LoadFunction('EVP_PKEY_type',AFailed); + EVP_PKEY_set_type := LoadFunction('EVP_PKEY_set_type',AFailed); + EVP_PKEY_set_type_str := LoadFunction('EVP_PKEY_set_type_str',AFailed); + EVP_PKEY_assign := LoadFunction('EVP_PKEY_assign',AFailed); + EVP_PKEY_get0 := LoadFunction('EVP_PKEY_get0',AFailed); + EVP_PKEY_set1_RSA := LoadFunction('EVP_PKEY_set1_RSA',AFailed); + EVP_PKEY_get1_RSA := LoadFunction('EVP_PKEY_get1_RSA',AFailed); + EVP_PKEY_set1_DSA := LoadFunction('EVP_PKEY_set1_DSA',AFailed); + EVP_PKEY_get1_DSA := LoadFunction('EVP_PKEY_get1_DSA',AFailed); + EVP_PKEY_set1_DH := LoadFunction('EVP_PKEY_set1_DH',AFailed); + EVP_PKEY_get1_DH := LoadFunction('EVP_PKEY_get1_DH',AFailed); + EVP_PKEY_set1_EC_KEY := LoadFunction('EVP_PKEY_set1_EC_KEY',AFailed); + EVP_PKEY_get1_EC_KEY := LoadFunction('EVP_PKEY_get1_EC_KEY',AFailed); + EVP_PKEY_new := LoadFunction('EVP_PKEY_new',AFailed); + EVP_PKEY_free := LoadFunction('EVP_PKEY_free',AFailed); + d2i_PublicKey := LoadFunction('d2i_PublicKey',AFailed); + i2d_PublicKey := LoadFunction('i2d_PublicKey',AFailed); + d2i_PrivateKey := LoadFunction('d2i_PrivateKey',AFailed); + d2i_AutoPrivateKey := LoadFunction('d2i_AutoPrivateKey',AFailed); + i2d_PrivateKey := LoadFunction('i2d_PrivateKey',AFailed); + EVP_PKEY_copy_parameters := LoadFunction('EVP_PKEY_copy_parameters',AFailed); + EVP_PKEY_missing_parameters := LoadFunction('EVP_PKEY_missing_parameters',AFailed); + EVP_PKEY_save_parameters := LoadFunction('EVP_PKEY_save_parameters',AFailed); + EVP_PKEY_cmp_parameters := LoadFunction('EVP_PKEY_cmp_parameters',AFailed); + EVP_PKEY_cmp := LoadFunction('EVP_PKEY_cmp',AFailed); + EVP_PKEY_print_public := LoadFunction('EVP_PKEY_print_public',AFailed); + EVP_PKEY_print_private := LoadFunction('EVP_PKEY_print_private',AFailed); + EVP_PKEY_print_params := LoadFunction('EVP_PKEY_print_params',AFailed); + EVP_PKEY_get_default_digest_nid := LoadFunction('EVP_PKEY_get_default_digest_nid',AFailed); + EVP_CIPHER_param_to_asn1 := LoadFunction('EVP_CIPHER_param_to_asn1',AFailed); + EVP_CIPHER_asn1_to_param := LoadFunction('EVP_CIPHER_asn1_to_param',AFailed); + EVP_CIPHER_set_asn1_iv := LoadFunction('EVP_CIPHER_set_asn1_iv',AFailed); + EVP_CIPHER_get_asn1_iv := LoadFunction('EVP_CIPHER_get_asn1_iv',AFailed); + PKCS5_PBE_keyivgen := LoadFunction('PKCS5_PBE_keyivgen',AFailed); + PKCS5_PBKDF2_HMAC_SHA1 := LoadFunction('PKCS5_PBKDF2_HMAC_SHA1',AFailed); + PKCS5_PBKDF2_HMAC := LoadFunction('PKCS5_PBKDF2_HMAC',AFailed); + PKCS5_v2_PBE_keyivgen := LoadFunction('PKCS5_v2_PBE_keyivgen',AFailed); + PKCS5_PBE_add := LoadFunction('PKCS5_PBE_add',AFailed); + EVP_PBE_CipherInit := LoadFunction('EVP_PBE_CipherInit',AFailed); + EVP_PBE_alg_add_type := LoadFunction('EVP_PBE_alg_add_type',AFailed); + EVP_PBE_alg_add := LoadFunction('EVP_PBE_alg_add',AFailed); + EVP_PBE_find := LoadFunction('EVP_PBE_find',AFailed); + EVP_PBE_cleanup := LoadFunction('EVP_PBE_cleanup',AFailed); + EVP_PKEY_asn1_get_count := LoadFunction('EVP_PKEY_asn1_get_count',AFailed); + EVP_PKEY_asn1_get0 := LoadFunction('EVP_PKEY_asn1_get0',AFailed); + EVP_PKEY_asn1_find := LoadFunction('EVP_PKEY_asn1_find',AFailed); + EVP_PKEY_asn1_find_str := LoadFunction('EVP_PKEY_asn1_find_str',AFailed); + EVP_PKEY_asn1_add0 := LoadFunction('EVP_PKEY_asn1_add0',AFailed); + EVP_PKEY_asn1_add_alias := LoadFunction('EVP_PKEY_asn1_add_alias',AFailed); + EVP_PKEY_asn1_get0_info := LoadFunction('EVP_PKEY_asn1_get0_info',AFailed); + EVP_PKEY_get0_asn1 := LoadFunction('EVP_PKEY_get0_asn1',AFailed); + EVP_PKEY_asn1_new := LoadFunction('EVP_PKEY_asn1_new',AFailed); + EVP_PKEY_asn1_copy := LoadFunction('EVP_PKEY_asn1_copy',AFailed); + EVP_PKEY_asn1_free := LoadFunction('EVP_PKEY_asn1_free',AFailed); + EVP_PKEY_asn1_set_public := LoadFunction('EVP_PKEY_asn1_set_public',AFailed); + EVP_PKEY_asn1_set_private := LoadFunction('EVP_PKEY_asn1_set_private',AFailed); + EVP_PKEY_asn1_set_param := LoadFunction('EVP_PKEY_asn1_set_param',AFailed); + EVP_PKEY_asn1_set_free := LoadFunction('EVP_PKEY_asn1_set_free',AFailed); + EVP_PKEY_asn1_set_ctrl := LoadFunction('EVP_PKEY_asn1_set_ctrl',AFailed); + EVP_PKEY_asn1_set_item := LoadFunction('EVP_PKEY_asn1_set_item',AFailed); + EVP_PKEY_meth_find := LoadFunction('EVP_PKEY_meth_find',AFailed); + EVP_PKEY_meth_new := LoadFunction('EVP_PKEY_meth_new',AFailed); + EVP_PKEY_meth_get0_info := LoadFunction('EVP_PKEY_meth_get0_info',AFailed); + EVP_PKEY_meth_copy := LoadFunction('EVP_PKEY_meth_copy',AFailed); + EVP_PKEY_meth_free := LoadFunction('EVP_PKEY_meth_free',AFailed); + EVP_PKEY_meth_add0 := LoadFunction('EVP_PKEY_meth_add0',AFailed); + EVP_PKEY_CTX_new := LoadFunction('EVP_PKEY_CTX_new',AFailed); + EVP_PKEY_CTX_new_id := LoadFunction('EVP_PKEY_CTX_new_id',AFailed); + EVP_PKEY_CTX_dup := LoadFunction('EVP_PKEY_CTX_dup',AFailed); + EVP_PKEY_CTX_free := LoadFunction('EVP_PKEY_CTX_free',AFailed); + EVP_PKEY_CTX_ctrl := LoadFunction('EVP_PKEY_CTX_ctrl',AFailed); + EVP_PKEY_CTX_ctrl_str := LoadFunction('EVP_PKEY_CTX_ctrl_str',AFailed); + EVP_PKEY_CTX_get_operation := LoadFunction('EVP_PKEY_CTX_get_operation',AFailed); + EVP_PKEY_CTX_set0_keygen_info := LoadFunction('EVP_PKEY_CTX_set0_keygen_info',AFailed); + EVP_PKEY_new_mac_key := LoadFunction('EVP_PKEY_new_mac_key',AFailed); + EVP_PKEY_CTX_set_data := LoadFunction('EVP_PKEY_CTX_set_data',AFailed); + EVP_PKEY_CTX_get_data := LoadFunction('EVP_PKEY_CTX_get_data',AFailed); + EVP_PKEY_CTX_get0_pkey := LoadFunction('EVP_PKEY_CTX_get0_pkey',AFailed); + EVP_PKEY_CTX_get0_peerkey := LoadFunction('EVP_PKEY_CTX_get0_peerkey',AFailed); + EVP_PKEY_CTX_set_app_data := LoadFunction('EVP_PKEY_CTX_set_app_data',AFailed); + EVP_PKEY_CTX_get_app_data := LoadFunction('EVP_PKEY_CTX_get_app_data',AFailed); + EVP_PKEY_sign_init := LoadFunction('EVP_PKEY_sign_init',AFailed); + EVP_PKEY_sign := LoadFunction('EVP_PKEY_sign',AFailed); + EVP_PKEY_verify_init := LoadFunction('EVP_PKEY_verify_init',AFailed); + EVP_PKEY_verify := LoadFunction('EVP_PKEY_verify',AFailed); + EVP_PKEY_verify_recover_init := LoadFunction('EVP_PKEY_verify_recover_init',AFailed); + EVP_PKEY_verify_recover := LoadFunction('EVP_PKEY_verify_recover',AFailed); + EVP_PKEY_encrypt_init := LoadFunction('EVP_PKEY_encrypt_init',AFailed); + EVP_PKEY_encrypt := LoadFunction('EVP_PKEY_encrypt',AFailed); + EVP_PKEY_decrypt_init := LoadFunction('EVP_PKEY_decrypt_init',AFailed); + EVP_PKEY_decrypt := LoadFunction('EVP_PKEY_decrypt',AFailed); + EVP_PKEY_derive_init := LoadFunction('EVP_PKEY_derive_init',AFailed); + EVP_PKEY_derive_set_peer := LoadFunction('EVP_PKEY_derive_set_peer',AFailed); + EVP_PKEY_derive := LoadFunction('EVP_PKEY_derive',AFailed); + EVP_PKEY_paramgen_init := LoadFunction('EVP_PKEY_paramgen_init',AFailed); + EVP_PKEY_paramgen := LoadFunction('EVP_PKEY_paramgen',AFailed); + EVP_PKEY_keygen_init := LoadFunction('EVP_PKEY_keygen_init',AFailed); + EVP_PKEY_keygen := LoadFunction('EVP_PKEY_keygen',AFailed); + EVP_PKEY_CTX_set_cb := LoadFunction('EVP_PKEY_CTX_set_cb',AFailed); + EVP_PKEY_CTX_get_cb := LoadFunction('EVP_PKEY_CTX_get_cb',AFailed); + EVP_PKEY_CTX_get_keygen_info := LoadFunction('EVP_PKEY_CTX_get_keygen_info',AFailed); + EVP_PKEY_meth_set_init := LoadFunction('EVP_PKEY_meth_set_init',AFailed); + EVP_PKEY_meth_set_copy := LoadFunction('EVP_PKEY_meth_set_copy',AFailed); + EVP_PKEY_meth_set_cleanup := LoadFunction('EVP_PKEY_meth_set_cleanup',AFailed); + EVP_PKEY_meth_set_paramgen := LoadFunction('EVP_PKEY_meth_set_paramgen',AFailed); + EVP_PKEY_meth_set_keygen := LoadFunction('EVP_PKEY_meth_set_keygen',AFailed); + EVP_PKEY_meth_set_sign := LoadFunction('EVP_PKEY_meth_set_sign',AFailed); + EVP_PKEY_meth_set_verify := LoadFunction('EVP_PKEY_meth_set_verify',AFailed); + EVP_PKEY_meth_set_verify_recover := LoadFunction('EVP_PKEY_meth_set_verify_recover',AFailed); + EVP_PKEY_meth_set_signctx := LoadFunction('EVP_PKEY_meth_set_signctx',AFailed); + EVP_PKEY_meth_set_verifyctx := LoadFunction('EVP_PKEY_meth_set_verifyctx',AFailed); + EVP_PKEY_meth_set_encrypt := LoadFunction('EVP_PKEY_meth_set_encrypt',AFailed); + EVP_PKEY_meth_set_decrypt := LoadFunction('EVP_PKEY_meth_set_decrypt',AFailed); + EVP_PKEY_meth_set_derive := LoadFunction('EVP_PKEY_meth_set_derive',AFailed); + EVP_PKEY_meth_set_ctrl := LoadFunction('EVP_PKEY_meth_set_ctrl',AFailed); + EVP_PKEY_meth_get_init := LoadFunction('EVP_PKEY_meth_get_init',AFailed); + EVP_PKEY_meth_get_copy := LoadFunction('EVP_PKEY_meth_get_copy',AFailed); + EVP_PKEY_meth_get_cleanup := LoadFunction('EVP_PKEY_meth_get_cleanup',AFailed); + EVP_PKEY_meth_get_paramgen := LoadFunction('EVP_PKEY_meth_get_paramgen',AFailed); + EVP_PKEY_meth_get_keygen := LoadFunction('EVP_PKEY_meth_get_keygen',AFailed); + EVP_PKEY_meth_get_sign := LoadFunction('EVP_PKEY_meth_get_sign',AFailed); + EVP_PKEY_meth_get_verify := LoadFunction('EVP_PKEY_meth_get_verify',AFailed); + EVP_PKEY_meth_get_verify_recover := LoadFunction('EVP_PKEY_meth_get_verify_recover',AFailed); + EVP_PKEY_meth_get_signctx := LoadFunction('EVP_PKEY_meth_get_signctx',AFailed); + EVP_PKEY_meth_get_verifyctx := LoadFunction('EVP_PKEY_meth_get_verifyctx',AFailed); + EVP_PKEY_meth_get_encrypt := LoadFunction('EVP_PKEY_meth_get_encrypt',AFailed); + EVP_PKEY_meth_get_decrypt := LoadFunction('EVP_PKEY_meth_get_decrypt',AFailed); + EVP_PKEY_meth_get_derive := LoadFunction('EVP_PKEY_meth_get_derive',AFailed); + EVP_PKEY_meth_get_ctrl := LoadFunction('EVP_PKEY_meth_get_ctrl',AFailed); + EVP_add_alg_module := LoadFunction('EVP_add_alg_module',AFailed); + EVP_PKEY_assign_RSA := LoadFunction('EVP_PKEY_assign_RSA',nil); {removed 1.0.0} + EVP_PKEY_assign_DSA := LoadFunction('EVP_PKEY_assign_DSA',nil); {removed 1.0.0} + EVP_PKEY_assign_DH := LoadFunction('EVP_PKEY_assign_DH',nil); {removed 1.0.0} + EVP_PKEY_assign_EC_KEY := LoadFunction('EVP_PKEY_assign_EC_KEY',nil); {removed 1.0.0} + EVP_PKEY_assign_SIPHASH := LoadFunction('EVP_PKEY_assign_SIPHASH',nil); {removed 1.0.0} + EVP_PKEY_assign_POLY1305 := LoadFunction('EVP_PKEY_assign_POLY1305',nil); {removed 1.0.0} + EVP_MD_meth_new := LoadFunction('EVP_MD_meth_new',nil); {introduced 1.1.0} + EVP_MD_meth_dup := LoadFunction('EVP_MD_meth_dup',nil); {introduced 1.1.0} + EVP_MD_meth_free := LoadFunction('EVP_MD_meth_free',nil); {introduced 1.1.0} + EVP_MD_meth_set_input_blocksize := LoadFunction('EVP_MD_meth_set_input_blocksize',nil); {introduced 1.1.0} + EVP_MD_meth_set_result_size := LoadFunction('EVP_MD_meth_set_result_size',nil); {introduced 1.1.0} + EVP_MD_meth_set_app_datasize := LoadFunction('EVP_MD_meth_set_app_datasize',nil); {introduced 1.1.0} + EVP_MD_meth_set_flags := LoadFunction('EVP_MD_meth_set_flags',nil); {introduced 1.1.0} + EVP_MD_meth_set_init := LoadFunction('EVP_MD_meth_set_init',nil); {introduced 1.1.0} + EVP_MD_meth_set_update := LoadFunction('EVP_MD_meth_set_update',nil); {introduced 1.1.0} + EVP_MD_meth_set_final := LoadFunction('EVP_MD_meth_set_final',nil); {introduced 1.1.0} + EVP_MD_meth_set_copy := LoadFunction('EVP_MD_meth_set_copy',nil); {introduced 1.1.0} + EVP_MD_meth_set_cleanup := LoadFunction('EVP_MD_meth_set_cleanup',nil); {introduced 1.1.0} + EVP_MD_meth_set_ctrl := LoadFunction('EVP_MD_meth_set_ctrl',nil); {introduced 1.1.0} + EVP_MD_meth_get_input_blocksize := LoadFunction('EVP_MD_meth_get_input_blocksize',nil); {introduced 1.1.0} + EVP_MD_meth_get_result_size := LoadFunction('EVP_MD_meth_get_result_size',nil); {introduced 1.1.0} + EVP_MD_meth_get_app_datasize := LoadFunction('EVP_MD_meth_get_app_datasize',nil); {introduced 1.1.0} + EVP_MD_meth_get_flags := LoadFunction('EVP_MD_meth_get_flags',nil); {introduced 1.1.0} + EVP_MD_meth_get_init := LoadFunction('EVP_MD_meth_get_init',nil); {introduced 1.1.0} + EVP_MD_meth_get_update := LoadFunction('EVP_MD_meth_get_update',nil); {introduced 1.1.0} + EVP_MD_meth_get_final := LoadFunction('EVP_MD_meth_get_final',nil); {introduced 1.1.0} + EVP_MD_meth_get_copy := LoadFunction('EVP_MD_meth_get_copy',nil); {introduced 1.1.0} + EVP_MD_meth_get_cleanup := LoadFunction('EVP_MD_meth_get_cleanup',nil); {introduced 1.1.0} + EVP_MD_meth_get_ctrl := LoadFunction('EVP_MD_meth_get_ctrl',nil); {introduced 1.1.0} + EVP_CIPHER_meth_new := LoadFunction('EVP_CIPHER_meth_new',nil); {introduced 1.1.0} + EVP_CIPHER_meth_dup := LoadFunction('EVP_CIPHER_meth_dup',nil); {introduced 1.1.0} + EVP_CIPHER_meth_free := LoadFunction('EVP_CIPHER_meth_free',nil); {introduced 1.1.0} + EVP_CIPHER_meth_set_iv_length := LoadFunction('EVP_CIPHER_meth_set_iv_length',nil); {introduced 1.1.0} + EVP_CIPHER_meth_set_flags := LoadFunction('EVP_CIPHER_meth_set_flags',nil); {introduced 1.1.0} + EVP_CIPHER_meth_set_impl_ctx_size := LoadFunction('EVP_CIPHER_meth_set_impl_ctx_size',nil); {introduced 1.1.0} + EVP_CIPHER_meth_set_init := LoadFunction('EVP_CIPHER_meth_set_init',nil); {introduced 1.1.0} + EVP_CIPHER_meth_set_do_cipher := LoadFunction('EVP_CIPHER_meth_set_do_cipher',nil); {introduced 1.1.0} + EVP_CIPHER_meth_set_cleanup := LoadFunction('EVP_CIPHER_meth_set_cleanup',nil); {introduced 1.1.0} + EVP_CIPHER_meth_set_set_asn1_params := LoadFunction('EVP_CIPHER_meth_set_set_asn1_params',nil); {introduced 1.1.0} + EVP_CIPHER_meth_set_get_asn1_params := LoadFunction('EVP_CIPHER_meth_set_get_asn1_params',nil); {introduced 1.1.0} + EVP_CIPHER_meth_set_ctrl := LoadFunction('EVP_CIPHER_meth_set_ctrl',nil); {introduced 1.1.0} + EVP_CIPHER_meth_get_init := LoadFunction('EVP_CIPHER_meth_get_init',nil); {introduced 1.1.0} + EVP_CIPHER_meth_get_do_cipher := LoadFunction('EVP_CIPHER_meth_get_do_cipher',nil); {introduced 1.1.0} + EVP_CIPHER_meth_get_cleanup := LoadFunction('EVP_CIPHER_meth_get_cleanup',nil); {introduced 1.1.0} + EVP_CIPHER_meth_get_set_asn1_params := LoadFunction('EVP_CIPHER_meth_get_set_asn1_params',nil); {introduced 1.1.0} + EVP_CIPHER_meth_get_get_asn1_params := LoadFunction('EVP_CIPHER_meth_get_get_asn1_params',nil); {introduced 1.1.0} + EVP_CIPHER_meth_get_ctrl := LoadFunction('EVP_CIPHER_meth_get_ctrl',nil); {introduced 1.1.0} + EVP_MD_type := LoadFunction('EVP_MD_type',nil); {removed 3.0.0} + EVP_MD_pkey_type := LoadFunction('EVP_MD_pkey_type',nil); {removed 3.0.0} + EVP_MD_size := LoadFunction('EVP_MD_size',nil); {removed 3.0.0} + EVP_MD_block_size := LoadFunction('EVP_MD_block_size',nil); {removed 3.0.0} + EVP_MD_flags := LoadFunction('EVP_MD_flags',nil); {removed 3.0.0} + EVP_MD_CTX_update_fn := LoadFunction('EVP_MD_CTX_update_fn',nil); {introduced 1.1.0} + EVP_MD_CTX_set_update_fn := LoadFunction('EVP_MD_CTX_set_update_fn',nil); {introduced 1.1.0} + EVP_MD_CTX_pkey_ctx := LoadFunction('EVP_MD_CTX_pkey_ctx',nil); {introduced 1.1.0 removed 3.0.0} + EVP_MD_CTX_set_pkey_ctx := LoadFunction('EVP_MD_CTX_set_pkey_ctx',nil); {introduced 1.1.0} + EVP_MD_CTX_md_data := LoadFunction('EVP_MD_CTX_md_data',nil); {introduced 1.1.0 removed 3.0.0} + EVP_CIPHER_nid := LoadFunction('EVP_CIPHER_nid',nil); {removed 3.0.0} + EVP_CIPHER_block_size := LoadFunction('EVP_CIPHER_block_size',nil); {removed 3.0.0} + EVP_CIPHER_impl_ctx_size := LoadFunction('EVP_CIPHER_impl_ctx_size',nil); {introduced 1.1.0} + EVP_CIPHER_key_length := LoadFunction('EVP_CIPHER_key_length',nil); {removed 3.0.0} + EVP_CIPHER_iv_length := LoadFunction('EVP_CIPHER_iv_length',nil); {removed 3.0.0} + EVP_CIPHER_flags := LoadFunction('EVP_CIPHER_flags',nil); {removed 3.0.0} + EVP_CIPHER_CTX_encrypting := LoadFunction('EVP_CIPHER_CTX_encrypting',nil); {introduced 1.1.0 removed 3.0.0} + EVP_CIPHER_CTX_nid := LoadFunction('EVP_CIPHER_CTX_nid',nil); {removed 3.0.0} + EVP_CIPHER_CTX_block_size := LoadFunction('EVP_CIPHER_CTX_block_size',nil); {removed 3.0.0} + EVP_CIPHER_CTX_key_length := LoadFunction('EVP_CIPHER_CTX_key_length',nil); {removed 3.0.0} + EVP_CIPHER_CTX_iv_length := LoadFunction('EVP_CIPHER_CTX_iv_length',nil); {removed 3.0.0} + EVP_CIPHER_CTX_iv := LoadFunction('EVP_CIPHER_CTX_iv',nil); {introduced 1.1.0} + EVP_CIPHER_CTX_original_iv := LoadFunction('EVP_CIPHER_CTX_original_iv',nil); {introduced 1.1.0} + EVP_CIPHER_CTX_iv_noconst := LoadFunction('EVP_CIPHER_CTX_iv_noconst',nil); {introduced 1.1.0} + EVP_CIPHER_CTX_buf_noconst := LoadFunction('EVP_CIPHER_CTX_buf_noconst',nil); {introduced 1.1.0} + EVP_CIPHER_CTX_num := LoadFunction('EVP_CIPHER_CTX_num',nil); {introduced 1.1.0 removed 3.0.0} + EVP_CIPHER_CTX_set_num := LoadFunction('EVP_CIPHER_CTX_set_num',nil); {introduced 1.1.0} + EVP_CIPHER_CTX_get_cipher_data := LoadFunction('EVP_CIPHER_CTX_get_cipher_data',nil); {introduced 1.1.0} + EVP_CIPHER_CTX_set_cipher_data := LoadFunction('EVP_CIPHER_CTX_set_cipher_data',nil); {introduced 1.1.0} + BIO_set_md := LoadFunction('BIO_set_md',nil); {removed 1.0.0} + EVP_MD_CTX_ctrl := LoadFunction('EVP_MD_CTX_ctrl',nil); {introduced 1.1.0} + EVP_MD_CTX_new := LoadFunction('EVP_MD_CTX_new',nil); {introduced 1.1.0} + EVP_MD_CTX_reset := LoadFunction('EVP_MD_CTX_reset',nil); {introduced 1.1.0} + EVP_MD_CTX_free := LoadFunction('EVP_MD_CTX_free',nil); {introduced 1.1.0} + EVP_DigestFinalXOF := LoadFunction('EVP_DigestFinalXOF',nil); {introduced 1.1.0} + EVP_DigestSign := LoadFunction('EVP_DigestSign',nil); {introduced 1.1.0} + EVP_DigestVerify := LoadFunction('EVP_DigestVerify',nil); {introduced 1.1.0} + EVP_ENCODE_CTX_new := LoadFunction('EVP_ENCODE_CTX_new',nil); {introduced 1.1.0} + EVP_ENCODE_CTX_free := LoadFunction('EVP_ENCODE_CTX_free',nil); {introduced 1.1.0} + EVP_ENCODE_CTX_copy := LoadFunction('EVP_ENCODE_CTX_copy',nil); {introduced 1.1.0} + EVP_ENCODE_CTX_num := LoadFunction('EVP_ENCODE_CTX_num',nil); {introduced 1.1.0} + EVP_CIPHER_CTX_reset := LoadFunction('EVP_CIPHER_CTX_reset',nil); {introduced 1.1.0} + EVP_md5_sha1 := LoadFunction('EVP_md5_sha1',nil); {introduced 1.1.0} + EVP_sha512_224 := LoadFunction('EVP_sha512_224',nil); {introduced 1.1.0} + EVP_sha512_256 := LoadFunction('EVP_sha512_256',nil); {introduced 1.1.0} + EVP_sha3_224 := LoadFunction('EVP_sha3_224',nil); {introduced 1.1.0} + EVP_sha3_256 := LoadFunction('EVP_sha3_256',nil); {introduced 1.1.0} + EVP_sha3_384 := LoadFunction('EVP_sha3_384',nil); {introduced 1.1.0} + EVP_sha3_512 := LoadFunction('EVP_sha3_512',nil); {introduced 1.1.0} + EVP_shake128 := LoadFunction('EVP_shake128',nil); {introduced 1.1.0} + EVP_shake256 := LoadFunction('EVP_shake256',nil); {introduced 1.1.0} + EVP_aes_128_wrap_pad := LoadFunction('EVP_aes_128_wrap_pad',nil); {introduced 1.1.0} + EVP_aes_128_ocb := LoadFunction('EVP_aes_128_ocb',nil); {introduced 1.1.0} + EVP_aes_192_wrap_pad := LoadFunction('EVP_aes_192_wrap_pad',nil); {introduced 1.1.0} + EVP_aes_192_ocb := LoadFunction('EVP_aes_192_ocb',nil); {introduced 1.1.0} + EVP_aes_256_wrap_pad := LoadFunction('EVP_aes_256_wrap_pad',nil); {introduced 1.1.0} + EVP_aes_256_ocb := LoadFunction('EVP_aes_256_ocb',nil); {introduced 1.1.0} + EVP_aria_128_ecb := LoadFunction('EVP_aria_128_ecb',nil); {introduced 1.1.0} + EVP_aria_128_cbc := LoadFunction('EVP_aria_128_cbc',nil); {introduced 1.1.0} + EVP_aria_128_cfb1 := LoadFunction('EVP_aria_128_cfb1',nil); {introduced 1.1.0} + EVP_aria_128_cfb8 := LoadFunction('EVP_aria_128_cfb8',nil); {introduced 1.1.0} + EVP_aria_128_cfb128 := LoadFunction('EVP_aria_128_cfb128',nil); {introduced 1.1.0} + EVP_aria_128_ctr := LoadFunction('EVP_aria_128_ctr',nil); {introduced 1.1.0} + EVP_aria_128_ofb := LoadFunction('EVP_aria_128_ofb',nil); {introduced 1.1.0} + EVP_aria_128_gcm := LoadFunction('EVP_aria_128_gcm',nil); {introduced 1.1.0} + EVP_aria_128_ccm := LoadFunction('EVP_aria_128_ccm',nil); {introduced 1.1.0} + EVP_aria_192_ecb := LoadFunction('EVP_aria_192_ecb',nil); {introduced 1.1.0} + EVP_aria_192_cbc := LoadFunction('EVP_aria_192_cbc',nil); {introduced 1.1.0} + EVP_aria_192_cfb1 := LoadFunction('EVP_aria_192_cfb1',nil); {introduced 1.1.0} + EVP_aria_192_cfb8 := LoadFunction('EVP_aria_192_cfb8',nil); {introduced 1.1.0} + EVP_aria_192_cfb128 := LoadFunction('EVP_aria_192_cfb128',nil); {introduced 1.1.0} + EVP_aria_192_ctr := LoadFunction('EVP_aria_192_ctr',nil); {introduced 1.1.0} + EVP_aria_192_ofb := LoadFunction('EVP_aria_192_ofb',nil); {introduced 1.1.0} + EVP_aria_192_gcm := LoadFunction('EVP_aria_192_gcm',nil); {introduced 1.1.0} + EVP_aria_192_ccm := LoadFunction('EVP_aria_192_ccm',nil); {introduced 1.1.0} + EVP_aria_256_ecb := LoadFunction('EVP_aria_256_ecb',nil); {introduced 1.1.0} + EVP_aria_256_cbc := LoadFunction('EVP_aria_256_cbc',nil); {introduced 1.1.0} + EVP_aria_256_cfb1 := LoadFunction('EVP_aria_256_cfb1',nil); {introduced 1.1.0} + EVP_aria_256_cfb8 := LoadFunction('EVP_aria_256_cfb8',nil); {introduced 1.1.0} + EVP_aria_256_cfb128 := LoadFunction('EVP_aria_256_cfb128',nil); {introduced 1.1.0} + EVP_aria_256_ctr := LoadFunction('EVP_aria_256_ctr',nil); {introduced 1.1.0} + EVP_aria_256_ofb := LoadFunction('EVP_aria_256_ofb',nil); {introduced 1.1.0} + EVP_aria_256_gcm := LoadFunction('EVP_aria_256_gcm',nil); {introduced 1.1.0} + EVP_aria_256_ccm := LoadFunction('EVP_aria_256_ccm',nil); {introduced 1.1.0} + EVP_camellia_128_ctr := LoadFunction('EVP_camellia_128_ctr',nil); {introduced 1.1.0} + EVP_camellia_192_ctr := LoadFunction('EVP_camellia_192_ctr',nil); {introduced 1.1.0} + EVP_camellia_256_ctr := LoadFunction('EVP_camellia_256_ctr',nil); {introduced 1.1.0} + EVP_chacha20 := LoadFunction('EVP_chacha20',nil); {introduced 1.1.0} + EVP_chacha20_poly1305 := LoadFunction('EVP_chacha20_poly1305',nil); {introduced 1.1.0} + EVP_sm4_ecb := LoadFunction('EVP_sm4_ecb',nil); {introduced 1.1.0} + EVP_sm4_cbc := LoadFunction('EVP_sm4_cbc',nil); {introduced 1.1.0} + EVP_sm4_cfb128 := LoadFunction('EVP_sm4_cfb128',nil); {introduced 1.1.0} + EVP_sm4_ofb := LoadFunction('EVP_sm4_ofb',nil); {introduced 1.1.0} + EVP_sm4_ctr := LoadFunction('EVP_sm4_ctr',nil); {introduced 1.1.0} + EVP_PKEY_id := LoadFunction('EVP_PKEY_id',nil); {removed 3.0.0} + EVP_PKEY_base_id := LoadFunction('EVP_PKEY_base_id',nil); {removed 3.0.0} + EVP_PKEY_bits := LoadFunction('EVP_PKEY_bits',nil); {removed 3.0.0} + EVP_PKEY_security_bits := LoadFunction('EVP_PKEY_security_bits',nil); {introduced 1.1.0 removed 3.0.0} + EVP_PKEY_size := LoadFunction('EVP_PKEY_size',nil); {removed 3.0.0} + EVP_PKEY_set_alias_type := LoadFunction('EVP_PKEY_set_alias_type',nil); {introduced 1.1.0 removed 3.0.0} + EVP_PKEY_set1_engine := LoadFunction('EVP_PKEY_set1_engine',nil); {introduced 1.1.0} + EVP_PKEY_get0_engine := LoadFunction('EVP_PKEY_get0_engine',nil); {introduced 1.1.0} + EVP_PKEY_get0_hmac := LoadFunction('EVP_PKEY_get0_hmac',nil); {introduced 1.1.0} + EVP_PKEY_get0_poly1305 := LoadFunction('EVP_PKEY_get0_poly1305',nil); {introduced 1.1.0} + EVP_PKEY_get0_siphash := LoadFunction('EVP_PKEY_get0_siphash',nil); {introduced 1.1.0} + EVP_PKEY_get0_RSA := LoadFunction('EVP_PKEY_get0_RSA',nil); {introduced 1.1.0} + EVP_PKEY_get0_DSA := LoadFunction('EVP_PKEY_get0_DSA',nil); {introduced 1.1.0} + EVP_PKEY_get0_DH := LoadFunction('EVP_PKEY_get0_DH',nil); {introduced 1.1.0} + EVP_PKEY_get0_EC_KEY := LoadFunction('EVP_PKEY_get0_EC_KEY',nil); {introduced 1.1.0} + EVP_PKEY_up_ref := LoadFunction('EVP_PKEY_up_ref',nil); {introduced 1.1.0} + EVP_PKEY_set1_tls_encodedpoint := LoadFunction('EVP_PKEY_set1_tls_encodedpoint',nil); {introduced 1.1.0 removed 3.0.0} + EVP_PKEY_get1_tls_encodedpoint := LoadFunction('EVP_PKEY_get1_tls_encodedpoint',nil); {introduced 1.1.0 removed 3.0.0} + EVP_CIPHER_type := LoadFunction('EVP_CIPHER_type',nil); {removed 3.0.0} + EVP_PBE_scrypt := LoadFunction('EVP_PBE_scrypt',nil); {introduced 1.1.0} + PKCS5_v2_scrypt_keyivgen := LoadFunction('PKCS5_v2_scrypt_keyivgen',nil); {introduced 1.1.0} + EVP_PBE_get := LoadFunction('EVP_PBE_get',nil); {introduced 1.1.0} + EVP_PKEY_asn1_set_siginf := LoadFunction('EVP_PKEY_asn1_set_siginf',nil); {introduced 1.1.0} + EVP_PKEY_asn1_set_check := LoadFunction('EVP_PKEY_asn1_set_check',nil); {introduced 1.1.0} + EVP_PKEY_asn1_set_public_check := LoadFunction('EVP_PKEY_asn1_set_public_check',nil); {introduced 1.1.0} + EVP_PKEY_asn1_set_param_check := LoadFunction('EVP_PKEY_asn1_set_param_check',nil); {introduced 1.1.0} + EVP_PKEY_asn1_set_set_priv_key := LoadFunction('EVP_PKEY_asn1_set_set_priv_key',nil); {introduced 1.1.0} + EVP_PKEY_asn1_set_set_pub_key := LoadFunction('EVP_PKEY_asn1_set_set_pub_key',nil); {introduced 1.1.0} + EVP_PKEY_asn1_set_get_priv_key := LoadFunction('EVP_PKEY_asn1_set_get_priv_key',nil); {introduced 1.1.0} + EVP_PKEY_asn1_set_get_pub_key := LoadFunction('EVP_PKEY_asn1_set_get_pub_key',nil); {introduced 1.1.0} + EVP_PKEY_asn1_set_security_bits := LoadFunction('EVP_PKEY_asn1_set_security_bits',nil); {introduced 1.1.0} + EVP_PKEY_meth_remove := LoadFunction('EVP_PKEY_meth_remove',nil); {introduced 1.1.0} + EVP_PKEY_meth_get_count := LoadFunction('EVP_PKEY_meth_get_count',nil); {introduced 1.1.0} + EVP_PKEY_meth_get0 := LoadFunction('EVP_PKEY_meth_get0',nil); {introduced 1.1.0} + EVP_PKEY_CTX_ctrl_uint64 := LoadFunction('EVP_PKEY_CTX_ctrl_uint64',nil); {introduced 1.1.0} + EVP_PKEY_CTX_str2ctrl := LoadFunction('EVP_PKEY_CTX_str2ctrl',nil); {introduced 1.1.0} + EVP_PKEY_CTX_hex2ctrl := LoadFunction('EVP_PKEY_CTX_hex2ctrl',nil); {introduced 1.1.0} + EVP_PKEY_CTX_md := LoadFunction('EVP_PKEY_CTX_md',nil); {introduced 1.1.0} + EVP_PKEY_new_raw_private_key := LoadFunction('EVP_PKEY_new_raw_private_key',nil); {introduced 1.1.0} + EVP_PKEY_new_raw_public_key := LoadFunction('EVP_PKEY_new_raw_public_key',nil); {introduced 1.1.0} + EVP_PKEY_get_raw_private_key := LoadFunction('EVP_PKEY_get_raw_private_key',nil); {introduced 1.1.0} + EVP_PKEY_get_raw_public_key := LoadFunction('EVP_PKEY_get_raw_public_key',nil); {introduced 1.1.0} + EVP_PKEY_new_CMAC_key := LoadFunction('EVP_PKEY_new_CMAC_key',nil); {introduced 1.1.0} + EVP_PKEY_check := LoadFunction('EVP_PKEY_check',nil); {introduced 1.1.0} + EVP_PKEY_public_check := LoadFunction('EVP_PKEY_public_check',nil); {introduced 1.1.0} + EVP_PKEY_param_check := LoadFunction('EVP_PKEY_param_check',nil); {introduced 1.1.0} + EVP_PKEY_meth_set_digestsign := LoadFunction('EVP_PKEY_meth_set_digestsign',nil); {introduced 1.1.0} + EVP_PKEY_meth_set_digestverify := LoadFunction('EVP_PKEY_meth_set_digestverify',nil); {introduced 1.1.0} + EVP_PKEY_meth_set_check := LoadFunction('EVP_PKEY_meth_set_check',nil); {introduced 1.1.0} + EVP_PKEY_meth_set_public_check := LoadFunction('EVP_PKEY_meth_set_public_check',nil); {introduced 1.1.0} + EVP_PKEY_meth_set_param_check := LoadFunction('EVP_PKEY_meth_set_param_check',nil); {introduced 1.1.0} + EVP_PKEY_meth_set_digest_custom := LoadFunction('EVP_PKEY_meth_set_digest_custom',nil); {introduced 1.1.0} + EVP_PKEY_meth_get_digestsign := LoadFunction('EVP_PKEY_meth_get_digestsign',nil); {introduced 1.1.0} + EVP_PKEY_meth_get_digestverify := LoadFunction('EVP_PKEY_meth_get_digestverify',nil); {introduced 1.1.0} + EVP_PKEY_meth_get_check := LoadFunction('EVP_PKEY_meth_get_check',nil); {introduced 1.1.0} + EVP_PKEY_meth_get_public_check := LoadFunction('EVP_PKEY_meth_get_public_check',nil); {introduced 1.1.0} + EVP_PKEY_meth_get_param_check := LoadFunction('EVP_PKEY_meth_get_param_check',nil); {introduced 1.1.0} + EVP_PKEY_meth_get_digest_custom := LoadFunction('EVP_PKEY_meth_get_digest_custom',nil); {introduced 1.1.0} + OpenSSL_add_all_ciphers := LoadFunction('OpenSSL_add_all_ciphers',nil); {removed 1.1.0} + OpenSSL_add_all_digests := LoadFunction('OpenSSL_add_all_digests',nil); {removed 1.1.0} + EVP_cleanup := LoadFunction('EVP_cleanup',nil); {removed 1.1.0} + if not assigned(EVP_PKEY_assign_RSA) then + begin + {$if declared(EVP_PKEY_assign_RSA_introduced)} + if LibVersion < EVP_PKEY_assign_RSA_introduced then + {$if declared(FC_EVP_PKEY_assign_RSA)} + EVP_PKEY_assign_RSA := @FC_EVP_PKEY_assign_RSA + {$else} + EVP_PKEY_assign_RSA := @ERR_EVP_PKEY_assign_RSA + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_assign_RSA_removed)} + if EVP_PKEY_assign_RSA_removed <= LibVersion then + {$if declared(_EVP_PKEY_assign_RSA)} + EVP_PKEY_assign_RSA := @_EVP_PKEY_assign_RSA + {$else} + {$IF declared(ERR_EVP_PKEY_assign_RSA)} + EVP_PKEY_assign_RSA := @ERR_EVP_PKEY_assign_RSA + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_assign_RSA) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_assign_RSA'); + end; + + + if not assigned(EVP_PKEY_assign_DSA) then + begin + {$if declared(EVP_PKEY_assign_DSA_introduced)} + if LibVersion < EVP_PKEY_assign_DSA_introduced then + {$if declared(FC_EVP_PKEY_assign_DSA)} + EVP_PKEY_assign_DSA := @FC_EVP_PKEY_assign_DSA + {$else} + EVP_PKEY_assign_DSA := @ERR_EVP_PKEY_assign_DSA + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_assign_DSA_removed)} + if EVP_PKEY_assign_DSA_removed <= LibVersion then + {$if declared(_EVP_PKEY_assign_DSA)} + EVP_PKEY_assign_DSA := @_EVP_PKEY_assign_DSA + {$else} + {$IF declared(ERR_EVP_PKEY_assign_DSA)} + EVP_PKEY_assign_DSA := @ERR_EVP_PKEY_assign_DSA + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_assign_DSA) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_assign_DSA'); + end; + + + if not assigned(EVP_PKEY_assign_DH) then + begin + {$if declared(EVP_PKEY_assign_DH_introduced)} + if LibVersion < EVP_PKEY_assign_DH_introduced then + {$if declared(FC_EVP_PKEY_assign_DH)} + EVP_PKEY_assign_DH := @FC_EVP_PKEY_assign_DH + {$else} + EVP_PKEY_assign_DH := @ERR_EVP_PKEY_assign_DH + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_assign_DH_removed)} + if EVP_PKEY_assign_DH_removed <= LibVersion then + {$if declared(_EVP_PKEY_assign_DH)} + EVP_PKEY_assign_DH := @_EVP_PKEY_assign_DH + {$else} + {$IF declared(ERR_EVP_PKEY_assign_DH)} + EVP_PKEY_assign_DH := @ERR_EVP_PKEY_assign_DH + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_assign_DH) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_assign_DH'); + end; + + + if not assigned(EVP_PKEY_assign_EC_KEY) then + begin + {$if declared(EVP_PKEY_assign_EC_KEY_introduced)} + if LibVersion < EVP_PKEY_assign_EC_KEY_introduced then + {$if declared(FC_EVP_PKEY_assign_EC_KEY)} + EVP_PKEY_assign_EC_KEY := @FC_EVP_PKEY_assign_EC_KEY + {$else} + EVP_PKEY_assign_EC_KEY := @ERR_EVP_PKEY_assign_EC_KEY + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_assign_EC_KEY_removed)} + if EVP_PKEY_assign_EC_KEY_removed <= LibVersion then + {$if declared(_EVP_PKEY_assign_EC_KEY)} + EVP_PKEY_assign_EC_KEY := @_EVP_PKEY_assign_EC_KEY + {$else} + {$IF declared(ERR_EVP_PKEY_assign_EC_KEY)} + EVP_PKEY_assign_EC_KEY := @ERR_EVP_PKEY_assign_EC_KEY + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_assign_EC_KEY) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_assign_EC_KEY'); + end; + + + if not assigned(EVP_PKEY_assign_SIPHASH) then + begin + {$if declared(EVP_PKEY_assign_SIPHASH_introduced)} + if LibVersion < EVP_PKEY_assign_SIPHASH_introduced then + {$if declared(FC_EVP_PKEY_assign_SIPHASH)} + EVP_PKEY_assign_SIPHASH := @FC_EVP_PKEY_assign_SIPHASH + {$else} + EVP_PKEY_assign_SIPHASH := @ERR_EVP_PKEY_assign_SIPHASH + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_assign_SIPHASH_removed)} + if EVP_PKEY_assign_SIPHASH_removed <= LibVersion then + {$if declared(_EVP_PKEY_assign_SIPHASH)} + EVP_PKEY_assign_SIPHASH := @_EVP_PKEY_assign_SIPHASH + {$else} + {$IF declared(ERR_EVP_PKEY_assign_SIPHASH)} + EVP_PKEY_assign_SIPHASH := @ERR_EVP_PKEY_assign_SIPHASH + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_assign_SIPHASH) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_assign_SIPHASH'); + end; + + + if not assigned(EVP_PKEY_assign_POLY1305) then + begin + {$if declared(EVP_PKEY_assign_POLY1305_introduced)} + if LibVersion < EVP_PKEY_assign_POLY1305_introduced then + {$if declared(FC_EVP_PKEY_assign_POLY1305)} + EVP_PKEY_assign_POLY1305 := @FC_EVP_PKEY_assign_POLY1305 + {$else} + EVP_PKEY_assign_POLY1305 := @ERR_EVP_PKEY_assign_POLY1305 + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_assign_POLY1305_removed)} + if EVP_PKEY_assign_POLY1305_removed <= LibVersion then + {$if declared(_EVP_PKEY_assign_POLY1305)} + EVP_PKEY_assign_POLY1305 := @_EVP_PKEY_assign_POLY1305 + {$else} + {$IF declared(ERR_EVP_PKEY_assign_POLY1305)} + EVP_PKEY_assign_POLY1305 := @ERR_EVP_PKEY_assign_POLY1305 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_assign_POLY1305) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_assign_POLY1305'); + end; + + + if not assigned(EVP_MD_meth_new) then + begin + {$if declared(EVP_MD_meth_new_introduced)} + if LibVersion < EVP_MD_meth_new_introduced then + {$if declared(FC_EVP_MD_meth_new)} + EVP_MD_meth_new := @FC_EVP_MD_meth_new + {$else} + EVP_MD_meth_new := @ERR_EVP_MD_meth_new + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_new_removed)} + if EVP_MD_meth_new_removed <= LibVersion then + {$if declared(_EVP_MD_meth_new)} + EVP_MD_meth_new := @_EVP_MD_meth_new + {$else} + {$IF declared(ERR_EVP_MD_meth_new)} + EVP_MD_meth_new := @ERR_EVP_MD_meth_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_new) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_new'); + end; + + + if not assigned(EVP_MD_meth_dup) then + begin + {$if declared(EVP_MD_meth_dup_introduced)} + if LibVersion < EVP_MD_meth_dup_introduced then + {$if declared(FC_EVP_MD_meth_dup)} + EVP_MD_meth_dup := @FC_EVP_MD_meth_dup + {$else} + EVP_MD_meth_dup := @ERR_EVP_MD_meth_dup + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_dup_removed)} + if EVP_MD_meth_dup_removed <= LibVersion then + {$if declared(_EVP_MD_meth_dup)} + EVP_MD_meth_dup := @_EVP_MD_meth_dup + {$else} + {$IF declared(ERR_EVP_MD_meth_dup)} + EVP_MD_meth_dup := @ERR_EVP_MD_meth_dup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_dup) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_dup'); + end; + + + if not assigned(EVP_MD_meth_free) then + begin + {$if declared(EVP_MD_meth_free_introduced)} + if LibVersion < EVP_MD_meth_free_introduced then + {$if declared(FC_EVP_MD_meth_free)} + EVP_MD_meth_free := @FC_EVP_MD_meth_free + {$else} + EVP_MD_meth_free := @ERR_EVP_MD_meth_free + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_free_removed)} + if EVP_MD_meth_free_removed <= LibVersion then + {$if declared(_EVP_MD_meth_free)} + EVP_MD_meth_free := @_EVP_MD_meth_free + {$else} + {$IF declared(ERR_EVP_MD_meth_free)} + EVP_MD_meth_free := @ERR_EVP_MD_meth_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_free) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_free'); + end; + + + if not assigned(EVP_MD_meth_set_input_blocksize) then + begin + {$if declared(EVP_MD_meth_set_input_blocksize_introduced)} + if LibVersion < EVP_MD_meth_set_input_blocksize_introduced then + {$if declared(FC_EVP_MD_meth_set_input_blocksize)} + EVP_MD_meth_set_input_blocksize := @FC_EVP_MD_meth_set_input_blocksize + {$else} + EVP_MD_meth_set_input_blocksize := @ERR_EVP_MD_meth_set_input_blocksize + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_set_input_blocksize_removed)} + if EVP_MD_meth_set_input_blocksize_removed <= LibVersion then + {$if declared(_EVP_MD_meth_set_input_blocksize)} + EVP_MD_meth_set_input_blocksize := @_EVP_MD_meth_set_input_blocksize + {$else} + {$IF declared(ERR_EVP_MD_meth_set_input_blocksize)} + EVP_MD_meth_set_input_blocksize := @ERR_EVP_MD_meth_set_input_blocksize + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_set_input_blocksize) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_set_input_blocksize'); + end; + + + if not assigned(EVP_MD_meth_set_result_size) then + begin + {$if declared(EVP_MD_meth_set_result_size_introduced)} + if LibVersion < EVP_MD_meth_set_result_size_introduced then + {$if declared(FC_EVP_MD_meth_set_result_size)} + EVP_MD_meth_set_result_size := @FC_EVP_MD_meth_set_result_size + {$else} + EVP_MD_meth_set_result_size := @ERR_EVP_MD_meth_set_result_size + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_set_result_size_removed)} + if EVP_MD_meth_set_result_size_removed <= LibVersion then + {$if declared(_EVP_MD_meth_set_result_size)} + EVP_MD_meth_set_result_size := @_EVP_MD_meth_set_result_size + {$else} + {$IF declared(ERR_EVP_MD_meth_set_result_size)} + EVP_MD_meth_set_result_size := @ERR_EVP_MD_meth_set_result_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_set_result_size) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_set_result_size'); + end; + + + if not assigned(EVP_MD_meth_set_app_datasize) then + begin + {$if declared(EVP_MD_meth_set_app_datasize_introduced)} + if LibVersion < EVP_MD_meth_set_app_datasize_introduced then + {$if declared(FC_EVP_MD_meth_set_app_datasize)} + EVP_MD_meth_set_app_datasize := @FC_EVP_MD_meth_set_app_datasize + {$else} + EVP_MD_meth_set_app_datasize := @ERR_EVP_MD_meth_set_app_datasize + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_set_app_datasize_removed)} + if EVP_MD_meth_set_app_datasize_removed <= LibVersion then + {$if declared(_EVP_MD_meth_set_app_datasize)} + EVP_MD_meth_set_app_datasize := @_EVP_MD_meth_set_app_datasize + {$else} + {$IF declared(ERR_EVP_MD_meth_set_app_datasize)} + EVP_MD_meth_set_app_datasize := @ERR_EVP_MD_meth_set_app_datasize + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_set_app_datasize) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_set_app_datasize'); + end; + + + if not assigned(EVP_MD_meth_set_flags) then + begin + {$if declared(EVP_MD_meth_set_flags_introduced)} + if LibVersion < EVP_MD_meth_set_flags_introduced then + {$if declared(FC_EVP_MD_meth_set_flags)} + EVP_MD_meth_set_flags := @FC_EVP_MD_meth_set_flags + {$else} + EVP_MD_meth_set_flags := @ERR_EVP_MD_meth_set_flags + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_set_flags_removed)} + if EVP_MD_meth_set_flags_removed <= LibVersion then + {$if declared(_EVP_MD_meth_set_flags)} + EVP_MD_meth_set_flags := @_EVP_MD_meth_set_flags + {$else} + {$IF declared(ERR_EVP_MD_meth_set_flags)} + EVP_MD_meth_set_flags := @ERR_EVP_MD_meth_set_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_set_flags) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_set_flags'); + end; + + + if not assigned(EVP_MD_meth_set_init) then + begin + {$if declared(EVP_MD_meth_set_init_introduced)} + if LibVersion < EVP_MD_meth_set_init_introduced then + {$if declared(FC_EVP_MD_meth_set_init)} + EVP_MD_meth_set_init := @FC_EVP_MD_meth_set_init + {$else} + EVP_MD_meth_set_init := @ERR_EVP_MD_meth_set_init + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_set_init_removed)} + if EVP_MD_meth_set_init_removed <= LibVersion then + {$if declared(_EVP_MD_meth_set_init)} + EVP_MD_meth_set_init := @_EVP_MD_meth_set_init + {$else} + {$IF declared(ERR_EVP_MD_meth_set_init)} + EVP_MD_meth_set_init := @ERR_EVP_MD_meth_set_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_set_init) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_set_init'); + end; + + + if not assigned(EVP_MD_meth_set_update) then + begin + {$if declared(EVP_MD_meth_set_update_introduced)} + if LibVersion < EVP_MD_meth_set_update_introduced then + {$if declared(FC_EVP_MD_meth_set_update)} + EVP_MD_meth_set_update := @FC_EVP_MD_meth_set_update + {$else} + EVP_MD_meth_set_update := @ERR_EVP_MD_meth_set_update + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_set_update_removed)} + if EVP_MD_meth_set_update_removed <= LibVersion then + {$if declared(_EVP_MD_meth_set_update)} + EVP_MD_meth_set_update := @_EVP_MD_meth_set_update + {$else} + {$IF declared(ERR_EVP_MD_meth_set_update)} + EVP_MD_meth_set_update := @ERR_EVP_MD_meth_set_update + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_set_update) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_set_update'); + end; + + + if not assigned(EVP_MD_meth_set_final) then + begin + {$if declared(EVP_MD_meth_set_final_introduced)} + if LibVersion < EVP_MD_meth_set_final_introduced then + {$if declared(FC_EVP_MD_meth_set_final)} + EVP_MD_meth_set_final := @FC_EVP_MD_meth_set_final + {$else} + EVP_MD_meth_set_final := @ERR_EVP_MD_meth_set_final + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_set_final_removed)} + if EVP_MD_meth_set_final_removed <= LibVersion then + {$if declared(_EVP_MD_meth_set_final)} + EVP_MD_meth_set_final := @_EVP_MD_meth_set_final + {$else} + {$IF declared(ERR_EVP_MD_meth_set_final)} + EVP_MD_meth_set_final := @ERR_EVP_MD_meth_set_final + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_set_final) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_set_final'); + end; + + + if not assigned(EVP_MD_meth_set_copy) then + begin + {$if declared(EVP_MD_meth_set_copy_introduced)} + if LibVersion < EVP_MD_meth_set_copy_introduced then + {$if declared(FC_EVP_MD_meth_set_copy)} + EVP_MD_meth_set_copy := @FC_EVP_MD_meth_set_copy + {$else} + EVP_MD_meth_set_copy := @ERR_EVP_MD_meth_set_copy + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_set_copy_removed)} + if EVP_MD_meth_set_copy_removed <= LibVersion then + {$if declared(_EVP_MD_meth_set_copy)} + EVP_MD_meth_set_copy := @_EVP_MD_meth_set_copy + {$else} + {$IF declared(ERR_EVP_MD_meth_set_copy)} + EVP_MD_meth_set_copy := @ERR_EVP_MD_meth_set_copy + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_set_copy) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_set_copy'); + end; + + + if not assigned(EVP_MD_meth_set_cleanup) then + begin + {$if declared(EVP_MD_meth_set_cleanup_introduced)} + if LibVersion < EVP_MD_meth_set_cleanup_introduced then + {$if declared(FC_EVP_MD_meth_set_cleanup)} + EVP_MD_meth_set_cleanup := @FC_EVP_MD_meth_set_cleanup + {$else} + EVP_MD_meth_set_cleanup := @ERR_EVP_MD_meth_set_cleanup + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_set_cleanup_removed)} + if EVP_MD_meth_set_cleanup_removed <= LibVersion then + {$if declared(_EVP_MD_meth_set_cleanup)} + EVP_MD_meth_set_cleanup := @_EVP_MD_meth_set_cleanup + {$else} + {$IF declared(ERR_EVP_MD_meth_set_cleanup)} + EVP_MD_meth_set_cleanup := @ERR_EVP_MD_meth_set_cleanup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_set_cleanup) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_set_cleanup'); + end; + + + if not assigned(EVP_MD_meth_set_ctrl) then + begin + {$if declared(EVP_MD_meth_set_ctrl_introduced)} + if LibVersion < EVP_MD_meth_set_ctrl_introduced then + {$if declared(FC_EVP_MD_meth_set_ctrl)} + EVP_MD_meth_set_ctrl := @FC_EVP_MD_meth_set_ctrl + {$else} + EVP_MD_meth_set_ctrl := @ERR_EVP_MD_meth_set_ctrl + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_set_ctrl_removed)} + if EVP_MD_meth_set_ctrl_removed <= LibVersion then + {$if declared(_EVP_MD_meth_set_ctrl)} + EVP_MD_meth_set_ctrl := @_EVP_MD_meth_set_ctrl + {$else} + {$IF declared(ERR_EVP_MD_meth_set_ctrl)} + EVP_MD_meth_set_ctrl := @ERR_EVP_MD_meth_set_ctrl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_set_ctrl) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_set_ctrl'); + end; + + + if not assigned(EVP_MD_meth_get_input_blocksize) then + begin + {$if declared(EVP_MD_meth_get_input_blocksize_introduced)} + if LibVersion < EVP_MD_meth_get_input_blocksize_introduced then + {$if declared(FC_EVP_MD_meth_get_input_blocksize)} + EVP_MD_meth_get_input_blocksize := @FC_EVP_MD_meth_get_input_blocksize + {$else} + EVP_MD_meth_get_input_blocksize := @ERR_EVP_MD_meth_get_input_blocksize + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_get_input_blocksize_removed)} + if EVP_MD_meth_get_input_blocksize_removed <= LibVersion then + {$if declared(_EVP_MD_meth_get_input_blocksize)} + EVP_MD_meth_get_input_blocksize := @_EVP_MD_meth_get_input_blocksize + {$else} + {$IF declared(ERR_EVP_MD_meth_get_input_blocksize)} + EVP_MD_meth_get_input_blocksize := @ERR_EVP_MD_meth_get_input_blocksize + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_get_input_blocksize) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_get_input_blocksize'); + end; + + + if not assigned(EVP_MD_meth_get_result_size) then + begin + {$if declared(EVP_MD_meth_get_result_size_introduced)} + if LibVersion < EVP_MD_meth_get_result_size_introduced then + {$if declared(FC_EVP_MD_meth_get_result_size)} + EVP_MD_meth_get_result_size := @FC_EVP_MD_meth_get_result_size + {$else} + EVP_MD_meth_get_result_size := @ERR_EVP_MD_meth_get_result_size + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_get_result_size_removed)} + if EVP_MD_meth_get_result_size_removed <= LibVersion then + {$if declared(_EVP_MD_meth_get_result_size)} + EVP_MD_meth_get_result_size := @_EVP_MD_meth_get_result_size + {$else} + {$IF declared(ERR_EVP_MD_meth_get_result_size)} + EVP_MD_meth_get_result_size := @ERR_EVP_MD_meth_get_result_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_get_result_size) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_get_result_size'); + end; + + + if not assigned(EVP_MD_meth_get_app_datasize) then + begin + {$if declared(EVP_MD_meth_get_app_datasize_introduced)} + if LibVersion < EVP_MD_meth_get_app_datasize_introduced then + {$if declared(FC_EVP_MD_meth_get_app_datasize)} + EVP_MD_meth_get_app_datasize := @FC_EVP_MD_meth_get_app_datasize + {$else} + EVP_MD_meth_get_app_datasize := @ERR_EVP_MD_meth_get_app_datasize + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_get_app_datasize_removed)} + if EVP_MD_meth_get_app_datasize_removed <= LibVersion then + {$if declared(_EVP_MD_meth_get_app_datasize)} + EVP_MD_meth_get_app_datasize := @_EVP_MD_meth_get_app_datasize + {$else} + {$IF declared(ERR_EVP_MD_meth_get_app_datasize)} + EVP_MD_meth_get_app_datasize := @ERR_EVP_MD_meth_get_app_datasize + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_get_app_datasize) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_get_app_datasize'); + end; + + + if not assigned(EVP_MD_meth_get_flags) then + begin + {$if declared(EVP_MD_meth_get_flags_introduced)} + if LibVersion < EVP_MD_meth_get_flags_introduced then + {$if declared(FC_EVP_MD_meth_get_flags)} + EVP_MD_meth_get_flags := @FC_EVP_MD_meth_get_flags + {$else} + EVP_MD_meth_get_flags := @ERR_EVP_MD_meth_get_flags + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_get_flags_removed)} + if EVP_MD_meth_get_flags_removed <= LibVersion then + {$if declared(_EVP_MD_meth_get_flags)} + EVP_MD_meth_get_flags := @_EVP_MD_meth_get_flags + {$else} + {$IF declared(ERR_EVP_MD_meth_get_flags)} + EVP_MD_meth_get_flags := @ERR_EVP_MD_meth_get_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_get_flags) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_get_flags'); + end; + + + if not assigned(EVP_MD_meth_get_init) then + begin + {$if declared(EVP_MD_meth_get_init_introduced)} + if LibVersion < EVP_MD_meth_get_init_introduced then + {$if declared(FC_EVP_MD_meth_get_init)} + EVP_MD_meth_get_init := @FC_EVP_MD_meth_get_init + {$else} + EVP_MD_meth_get_init := @ERR_EVP_MD_meth_get_init + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_get_init_removed)} + if EVP_MD_meth_get_init_removed <= LibVersion then + {$if declared(_EVP_MD_meth_get_init)} + EVP_MD_meth_get_init := @_EVP_MD_meth_get_init + {$else} + {$IF declared(ERR_EVP_MD_meth_get_init)} + EVP_MD_meth_get_init := @ERR_EVP_MD_meth_get_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_get_init) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_get_init'); + end; + + + if not assigned(EVP_MD_meth_get_update) then + begin + {$if declared(EVP_MD_meth_get_update_introduced)} + if LibVersion < EVP_MD_meth_get_update_introduced then + {$if declared(FC_EVP_MD_meth_get_update)} + EVP_MD_meth_get_update := @FC_EVP_MD_meth_get_update + {$else} + EVP_MD_meth_get_update := @ERR_EVP_MD_meth_get_update + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_get_update_removed)} + if EVP_MD_meth_get_update_removed <= LibVersion then + {$if declared(_EVP_MD_meth_get_update)} + EVP_MD_meth_get_update := @_EVP_MD_meth_get_update + {$else} + {$IF declared(ERR_EVP_MD_meth_get_update)} + EVP_MD_meth_get_update := @ERR_EVP_MD_meth_get_update + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_get_update) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_get_update'); + end; + + + if not assigned(EVP_MD_meth_get_final) then + begin + {$if declared(EVP_MD_meth_get_final_introduced)} + if LibVersion < EVP_MD_meth_get_final_introduced then + {$if declared(FC_EVP_MD_meth_get_final)} + EVP_MD_meth_get_final := @FC_EVP_MD_meth_get_final + {$else} + EVP_MD_meth_get_final := @ERR_EVP_MD_meth_get_final + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_get_final_removed)} + if EVP_MD_meth_get_final_removed <= LibVersion then + {$if declared(_EVP_MD_meth_get_final)} + EVP_MD_meth_get_final := @_EVP_MD_meth_get_final + {$else} + {$IF declared(ERR_EVP_MD_meth_get_final)} + EVP_MD_meth_get_final := @ERR_EVP_MD_meth_get_final + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_get_final) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_get_final'); + end; + + + if not assigned(EVP_MD_meth_get_copy) then + begin + {$if declared(EVP_MD_meth_get_copy_introduced)} + if LibVersion < EVP_MD_meth_get_copy_introduced then + {$if declared(FC_EVP_MD_meth_get_copy)} + EVP_MD_meth_get_copy := @FC_EVP_MD_meth_get_copy + {$else} + EVP_MD_meth_get_copy := @ERR_EVP_MD_meth_get_copy + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_get_copy_removed)} + if EVP_MD_meth_get_copy_removed <= LibVersion then + {$if declared(_EVP_MD_meth_get_copy)} + EVP_MD_meth_get_copy := @_EVP_MD_meth_get_copy + {$else} + {$IF declared(ERR_EVP_MD_meth_get_copy)} + EVP_MD_meth_get_copy := @ERR_EVP_MD_meth_get_copy + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_get_copy) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_get_copy'); + end; + + + if not assigned(EVP_MD_meth_get_cleanup) then + begin + {$if declared(EVP_MD_meth_get_cleanup_introduced)} + if LibVersion < EVP_MD_meth_get_cleanup_introduced then + {$if declared(FC_EVP_MD_meth_get_cleanup)} + EVP_MD_meth_get_cleanup := @FC_EVP_MD_meth_get_cleanup + {$else} + EVP_MD_meth_get_cleanup := @ERR_EVP_MD_meth_get_cleanup + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_get_cleanup_removed)} + if EVP_MD_meth_get_cleanup_removed <= LibVersion then + {$if declared(_EVP_MD_meth_get_cleanup)} + EVP_MD_meth_get_cleanup := @_EVP_MD_meth_get_cleanup + {$else} + {$IF declared(ERR_EVP_MD_meth_get_cleanup)} + EVP_MD_meth_get_cleanup := @ERR_EVP_MD_meth_get_cleanup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_get_cleanup) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_get_cleanup'); + end; + + + if not assigned(EVP_MD_meth_get_ctrl) then + begin + {$if declared(EVP_MD_meth_get_ctrl_introduced)} + if LibVersion < EVP_MD_meth_get_ctrl_introduced then + {$if declared(FC_EVP_MD_meth_get_ctrl)} + EVP_MD_meth_get_ctrl := @FC_EVP_MD_meth_get_ctrl + {$else} + EVP_MD_meth_get_ctrl := @ERR_EVP_MD_meth_get_ctrl + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_meth_get_ctrl_removed)} + if EVP_MD_meth_get_ctrl_removed <= LibVersion then + {$if declared(_EVP_MD_meth_get_ctrl)} + EVP_MD_meth_get_ctrl := @_EVP_MD_meth_get_ctrl + {$else} + {$IF declared(ERR_EVP_MD_meth_get_ctrl)} + EVP_MD_meth_get_ctrl := @ERR_EVP_MD_meth_get_ctrl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_meth_get_ctrl) and Assigned(AFailed) then + AFailed.Add('EVP_MD_meth_get_ctrl'); + end; + + + if not assigned(EVP_CIPHER_meth_new) then + begin + {$if declared(EVP_CIPHER_meth_new_introduced)} + if LibVersion < EVP_CIPHER_meth_new_introduced then + {$if declared(FC_EVP_CIPHER_meth_new)} + EVP_CIPHER_meth_new := @FC_EVP_CIPHER_meth_new + {$else} + EVP_CIPHER_meth_new := @ERR_EVP_CIPHER_meth_new + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_new_removed)} + if EVP_CIPHER_meth_new_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_new)} + EVP_CIPHER_meth_new := @_EVP_CIPHER_meth_new + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_new)} + EVP_CIPHER_meth_new := @ERR_EVP_CIPHER_meth_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_new) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_new'); + end; + + + if not assigned(EVP_CIPHER_meth_dup) then + begin + {$if declared(EVP_CIPHER_meth_dup_introduced)} + if LibVersion < EVP_CIPHER_meth_dup_introduced then + {$if declared(FC_EVP_CIPHER_meth_dup)} + EVP_CIPHER_meth_dup := @FC_EVP_CIPHER_meth_dup + {$else} + EVP_CIPHER_meth_dup := @ERR_EVP_CIPHER_meth_dup + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_dup_removed)} + if EVP_CIPHER_meth_dup_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_dup)} + EVP_CIPHER_meth_dup := @_EVP_CIPHER_meth_dup + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_dup)} + EVP_CIPHER_meth_dup := @ERR_EVP_CIPHER_meth_dup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_dup) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_dup'); + end; + + + if not assigned(EVP_CIPHER_meth_free) then + begin + {$if declared(EVP_CIPHER_meth_free_introduced)} + if LibVersion < EVP_CIPHER_meth_free_introduced then + {$if declared(FC_EVP_CIPHER_meth_free)} + EVP_CIPHER_meth_free := @FC_EVP_CIPHER_meth_free + {$else} + EVP_CIPHER_meth_free := @ERR_EVP_CIPHER_meth_free + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_free_removed)} + if EVP_CIPHER_meth_free_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_free)} + EVP_CIPHER_meth_free := @_EVP_CIPHER_meth_free + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_free)} + EVP_CIPHER_meth_free := @ERR_EVP_CIPHER_meth_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_free) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_free'); + end; + + + if not assigned(EVP_CIPHER_meth_set_iv_length) then + begin + {$if declared(EVP_CIPHER_meth_set_iv_length_introduced)} + if LibVersion < EVP_CIPHER_meth_set_iv_length_introduced then + {$if declared(FC_EVP_CIPHER_meth_set_iv_length)} + EVP_CIPHER_meth_set_iv_length := @FC_EVP_CIPHER_meth_set_iv_length + {$else} + EVP_CIPHER_meth_set_iv_length := @ERR_EVP_CIPHER_meth_set_iv_length + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_set_iv_length_removed)} + if EVP_CIPHER_meth_set_iv_length_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_set_iv_length)} + EVP_CIPHER_meth_set_iv_length := @_EVP_CIPHER_meth_set_iv_length + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_set_iv_length)} + EVP_CIPHER_meth_set_iv_length := @ERR_EVP_CIPHER_meth_set_iv_length + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_set_iv_length) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_set_iv_length'); + end; + + + if not assigned(EVP_CIPHER_meth_set_flags) then + begin + {$if declared(EVP_CIPHER_meth_set_flags_introduced)} + if LibVersion < EVP_CIPHER_meth_set_flags_introduced then + {$if declared(FC_EVP_CIPHER_meth_set_flags)} + EVP_CIPHER_meth_set_flags := @FC_EVP_CIPHER_meth_set_flags + {$else} + EVP_CIPHER_meth_set_flags := @ERR_EVP_CIPHER_meth_set_flags + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_set_flags_removed)} + if EVP_CIPHER_meth_set_flags_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_set_flags)} + EVP_CIPHER_meth_set_flags := @_EVP_CIPHER_meth_set_flags + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_set_flags)} + EVP_CIPHER_meth_set_flags := @ERR_EVP_CIPHER_meth_set_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_set_flags) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_set_flags'); + end; + + + if not assigned(EVP_CIPHER_meth_set_impl_ctx_size) then + begin + {$if declared(EVP_CIPHER_meth_set_impl_ctx_size_introduced)} + if LibVersion < EVP_CIPHER_meth_set_impl_ctx_size_introduced then + {$if declared(FC_EVP_CIPHER_meth_set_impl_ctx_size)} + EVP_CIPHER_meth_set_impl_ctx_size := @FC_EVP_CIPHER_meth_set_impl_ctx_size + {$else} + EVP_CIPHER_meth_set_impl_ctx_size := @ERR_EVP_CIPHER_meth_set_impl_ctx_size + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_set_impl_ctx_size_removed)} + if EVP_CIPHER_meth_set_impl_ctx_size_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_set_impl_ctx_size)} + EVP_CIPHER_meth_set_impl_ctx_size := @_EVP_CIPHER_meth_set_impl_ctx_size + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_set_impl_ctx_size)} + EVP_CIPHER_meth_set_impl_ctx_size := @ERR_EVP_CIPHER_meth_set_impl_ctx_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_set_impl_ctx_size) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_set_impl_ctx_size'); + end; + + + if not assigned(EVP_CIPHER_meth_set_init) then + begin + {$if declared(EVP_CIPHER_meth_set_init_introduced)} + if LibVersion < EVP_CIPHER_meth_set_init_introduced then + {$if declared(FC_EVP_CIPHER_meth_set_init)} + EVP_CIPHER_meth_set_init := @FC_EVP_CIPHER_meth_set_init + {$else} + EVP_CIPHER_meth_set_init := @ERR_EVP_CIPHER_meth_set_init + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_set_init_removed)} + if EVP_CIPHER_meth_set_init_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_set_init)} + EVP_CIPHER_meth_set_init := @_EVP_CIPHER_meth_set_init + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_set_init)} + EVP_CIPHER_meth_set_init := @ERR_EVP_CIPHER_meth_set_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_set_init) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_set_init'); + end; + + + if not assigned(EVP_CIPHER_meth_set_do_cipher) then + begin + {$if declared(EVP_CIPHER_meth_set_do_cipher_introduced)} + if LibVersion < EVP_CIPHER_meth_set_do_cipher_introduced then + {$if declared(FC_EVP_CIPHER_meth_set_do_cipher)} + EVP_CIPHER_meth_set_do_cipher := @FC_EVP_CIPHER_meth_set_do_cipher + {$else} + EVP_CIPHER_meth_set_do_cipher := @ERR_EVP_CIPHER_meth_set_do_cipher + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_set_do_cipher_removed)} + if EVP_CIPHER_meth_set_do_cipher_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_set_do_cipher)} + EVP_CIPHER_meth_set_do_cipher := @_EVP_CIPHER_meth_set_do_cipher + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_set_do_cipher)} + EVP_CIPHER_meth_set_do_cipher := @ERR_EVP_CIPHER_meth_set_do_cipher + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_set_do_cipher) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_set_do_cipher'); + end; + + + if not assigned(EVP_CIPHER_meth_set_cleanup) then + begin + {$if declared(EVP_CIPHER_meth_set_cleanup_introduced)} + if LibVersion < EVP_CIPHER_meth_set_cleanup_introduced then + {$if declared(FC_EVP_CIPHER_meth_set_cleanup)} + EVP_CIPHER_meth_set_cleanup := @FC_EVP_CIPHER_meth_set_cleanup + {$else} + EVP_CIPHER_meth_set_cleanup := @ERR_EVP_CIPHER_meth_set_cleanup + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_set_cleanup_removed)} + if EVP_CIPHER_meth_set_cleanup_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_set_cleanup)} + EVP_CIPHER_meth_set_cleanup := @_EVP_CIPHER_meth_set_cleanup + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_set_cleanup)} + EVP_CIPHER_meth_set_cleanup := @ERR_EVP_CIPHER_meth_set_cleanup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_set_cleanup) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_set_cleanup'); + end; + + + if not assigned(EVP_CIPHER_meth_set_set_asn1_params) then + begin + {$if declared(EVP_CIPHER_meth_set_set_asn1_params_introduced)} + if LibVersion < EVP_CIPHER_meth_set_set_asn1_params_introduced then + {$if declared(FC_EVP_CIPHER_meth_set_set_asn1_params)} + EVP_CIPHER_meth_set_set_asn1_params := @FC_EVP_CIPHER_meth_set_set_asn1_params + {$else} + EVP_CIPHER_meth_set_set_asn1_params := @ERR_EVP_CIPHER_meth_set_set_asn1_params + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_set_set_asn1_params_removed)} + if EVP_CIPHER_meth_set_set_asn1_params_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_set_set_asn1_params)} + EVP_CIPHER_meth_set_set_asn1_params := @_EVP_CIPHER_meth_set_set_asn1_params + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_set_set_asn1_params)} + EVP_CIPHER_meth_set_set_asn1_params := @ERR_EVP_CIPHER_meth_set_set_asn1_params + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_set_set_asn1_params) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_set_set_asn1_params'); + end; + + + if not assigned(EVP_CIPHER_meth_set_get_asn1_params) then + begin + {$if declared(EVP_CIPHER_meth_set_get_asn1_params_introduced)} + if LibVersion < EVP_CIPHER_meth_set_get_asn1_params_introduced then + {$if declared(FC_EVP_CIPHER_meth_set_get_asn1_params)} + EVP_CIPHER_meth_set_get_asn1_params := @FC_EVP_CIPHER_meth_set_get_asn1_params + {$else} + EVP_CIPHER_meth_set_get_asn1_params := @ERR_EVP_CIPHER_meth_set_get_asn1_params + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_set_get_asn1_params_removed)} + if EVP_CIPHER_meth_set_get_asn1_params_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_set_get_asn1_params)} + EVP_CIPHER_meth_set_get_asn1_params := @_EVP_CIPHER_meth_set_get_asn1_params + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_set_get_asn1_params)} + EVP_CIPHER_meth_set_get_asn1_params := @ERR_EVP_CIPHER_meth_set_get_asn1_params + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_set_get_asn1_params) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_set_get_asn1_params'); + end; + + + if not assigned(EVP_CIPHER_meth_set_ctrl) then + begin + {$if declared(EVP_CIPHER_meth_set_ctrl_introduced)} + if LibVersion < EVP_CIPHER_meth_set_ctrl_introduced then + {$if declared(FC_EVP_CIPHER_meth_set_ctrl)} + EVP_CIPHER_meth_set_ctrl := @FC_EVP_CIPHER_meth_set_ctrl + {$else} + EVP_CIPHER_meth_set_ctrl := @ERR_EVP_CIPHER_meth_set_ctrl + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_set_ctrl_removed)} + if EVP_CIPHER_meth_set_ctrl_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_set_ctrl)} + EVP_CIPHER_meth_set_ctrl := @_EVP_CIPHER_meth_set_ctrl + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_set_ctrl)} + EVP_CIPHER_meth_set_ctrl := @ERR_EVP_CIPHER_meth_set_ctrl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_set_ctrl) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_set_ctrl'); + end; + + + if not assigned(EVP_CIPHER_meth_get_init) then + begin + {$if declared(EVP_CIPHER_meth_get_init_introduced)} + if LibVersion < EVP_CIPHER_meth_get_init_introduced then + {$if declared(FC_EVP_CIPHER_meth_get_init)} + EVP_CIPHER_meth_get_init := @FC_EVP_CIPHER_meth_get_init + {$else} + EVP_CIPHER_meth_get_init := @ERR_EVP_CIPHER_meth_get_init + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_get_init_removed)} + if EVP_CIPHER_meth_get_init_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_get_init)} + EVP_CIPHER_meth_get_init := @_EVP_CIPHER_meth_get_init + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_get_init)} + EVP_CIPHER_meth_get_init := @ERR_EVP_CIPHER_meth_get_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_get_init) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_get_init'); + end; + + + if not assigned(EVP_CIPHER_meth_get_do_cipher) then + begin + {$if declared(EVP_CIPHER_meth_get_do_cipher_introduced)} + if LibVersion < EVP_CIPHER_meth_get_do_cipher_introduced then + {$if declared(FC_EVP_CIPHER_meth_get_do_cipher)} + EVP_CIPHER_meth_get_do_cipher := @FC_EVP_CIPHER_meth_get_do_cipher + {$else} + EVP_CIPHER_meth_get_do_cipher := @ERR_EVP_CIPHER_meth_get_do_cipher + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_get_do_cipher_removed)} + if EVP_CIPHER_meth_get_do_cipher_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_get_do_cipher)} + EVP_CIPHER_meth_get_do_cipher := @_EVP_CIPHER_meth_get_do_cipher + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_get_do_cipher)} + EVP_CIPHER_meth_get_do_cipher := @ERR_EVP_CIPHER_meth_get_do_cipher + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_get_do_cipher) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_get_do_cipher'); + end; + + + if not assigned(EVP_CIPHER_meth_get_cleanup) then + begin + {$if declared(EVP_CIPHER_meth_get_cleanup_introduced)} + if LibVersion < EVP_CIPHER_meth_get_cleanup_introduced then + {$if declared(FC_EVP_CIPHER_meth_get_cleanup)} + EVP_CIPHER_meth_get_cleanup := @FC_EVP_CIPHER_meth_get_cleanup + {$else} + EVP_CIPHER_meth_get_cleanup := @ERR_EVP_CIPHER_meth_get_cleanup + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_get_cleanup_removed)} + if EVP_CIPHER_meth_get_cleanup_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_get_cleanup)} + EVP_CIPHER_meth_get_cleanup := @_EVP_CIPHER_meth_get_cleanup + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_get_cleanup)} + EVP_CIPHER_meth_get_cleanup := @ERR_EVP_CIPHER_meth_get_cleanup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_get_cleanup) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_get_cleanup'); + end; + + + if not assigned(EVP_CIPHER_meth_get_set_asn1_params) then + begin + {$if declared(EVP_CIPHER_meth_get_set_asn1_params_introduced)} + if LibVersion < EVP_CIPHER_meth_get_set_asn1_params_introduced then + {$if declared(FC_EVP_CIPHER_meth_get_set_asn1_params)} + EVP_CIPHER_meth_get_set_asn1_params := @FC_EVP_CIPHER_meth_get_set_asn1_params + {$else} + EVP_CIPHER_meth_get_set_asn1_params := @ERR_EVP_CIPHER_meth_get_set_asn1_params + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_get_set_asn1_params_removed)} + if EVP_CIPHER_meth_get_set_asn1_params_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_get_set_asn1_params)} + EVP_CIPHER_meth_get_set_asn1_params := @_EVP_CIPHER_meth_get_set_asn1_params + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_get_set_asn1_params)} + EVP_CIPHER_meth_get_set_asn1_params := @ERR_EVP_CIPHER_meth_get_set_asn1_params + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_get_set_asn1_params) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_get_set_asn1_params'); + end; + + + if not assigned(EVP_CIPHER_meth_get_get_asn1_params) then + begin + {$if declared(EVP_CIPHER_meth_get_get_asn1_params_introduced)} + if LibVersion < EVP_CIPHER_meth_get_get_asn1_params_introduced then + {$if declared(FC_EVP_CIPHER_meth_get_get_asn1_params)} + EVP_CIPHER_meth_get_get_asn1_params := @FC_EVP_CIPHER_meth_get_get_asn1_params + {$else} + EVP_CIPHER_meth_get_get_asn1_params := @ERR_EVP_CIPHER_meth_get_get_asn1_params + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_get_get_asn1_params_removed)} + if EVP_CIPHER_meth_get_get_asn1_params_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_get_get_asn1_params)} + EVP_CIPHER_meth_get_get_asn1_params := @_EVP_CIPHER_meth_get_get_asn1_params + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_get_get_asn1_params)} + EVP_CIPHER_meth_get_get_asn1_params := @ERR_EVP_CIPHER_meth_get_get_asn1_params + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_get_get_asn1_params) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_get_get_asn1_params'); + end; + + + if not assigned(EVP_CIPHER_meth_get_ctrl) then + begin + {$if declared(EVP_CIPHER_meth_get_ctrl_introduced)} + if LibVersion < EVP_CIPHER_meth_get_ctrl_introduced then + {$if declared(FC_EVP_CIPHER_meth_get_ctrl)} + EVP_CIPHER_meth_get_ctrl := @FC_EVP_CIPHER_meth_get_ctrl + {$else} + EVP_CIPHER_meth_get_ctrl := @ERR_EVP_CIPHER_meth_get_ctrl + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_meth_get_ctrl_removed)} + if EVP_CIPHER_meth_get_ctrl_removed <= LibVersion then + {$if declared(_EVP_CIPHER_meth_get_ctrl)} + EVP_CIPHER_meth_get_ctrl := @_EVP_CIPHER_meth_get_ctrl + {$else} + {$IF declared(ERR_EVP_CIPHER_meth_get_ctrl)} + EVP_CIPHER_meth_get_ctrl := @ERR_EVP_CIPHER_meth_get_ctrl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_meth_get_ctrl) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_meth_get_ctrl'); + end; + + + if not assigned(EVP_MD_type) then + begin + {$if declared(EVP_MD_type_introduced)} + if LibVersion < EVP_MD_type_introduced then + {$if declared(FC_EVP_MD_type)} + EVP_MD_type := @FC_EVP_MD_type + {$else} + EVP_MD_type := @ERR_EVP_MD_type + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_type_removed)} + if EVP_MD_type_removed <= LibVersion then + {$if declared(_EVP_MD_type)} + EVP_MD_type := @_EVP_MD_type + {$else} + {$IF declared(ERR_EVP_MD_type)} + EVP_MD_type := @ERR_EVP_MD_type + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_type) and Assigned(AFailed) then + AFailed.Add('EVP_MD_type'); + end; + + + if not assigned(EVP_MD_pkey_type) then + begin + {$if declared(EVP_MD_pkey_type_introduced)} + if LibVersion < EVP_MD_pkey_type_introduced then + {$if declared(FC_EVP_MD_pkey_type)} + EVP_MD_pkey_type := @FC_EVP_MD_pkey_type + {$else} + EVP_MD_pkey_type := @ERR_EVP_MD_pkey_type + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_pkey_type_removed)} + if EVP_MD_pkey_type_removed <= LibVersion then + {$if declared(_EVP_MD_pkey_type)} + EVP_MD_pkey_type := @_EVP_MD_pkey_type + {$else} + {$IF declared(ERR_EVP_MD_pkey_type)} + EVP_MD_pkey_type := @ERR_EVP_MD_pkey_type + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_pkey_type) and Assigned(AFailed) then + AFailed.Add('EVP_MD_pkey_type'); + end; + + + if not assigned(EVP_MD_size) then + begin + {$if declared(EVP_MD_size_introduced)} + if LibVersion < EVP_MD_size_introduced then + {$if declared(FC_EVP_MD_size)} + EVP_MD_size := @FC_EVP_MD_size + {$else} + EVP_MD_size := @ERR_EVP_MD_size + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_size_removed)} + if EVP_MD_size_removed <= LibVersion then + {$if declared(_EVP_MD_size)} + EVP_MD_size := @_EVP_MD_size + {$else} + {$IF declared(ERR_EVP_MD_size)} + EVP_MD_size := @ERR_EVP_MD_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_size) and Assigned(AFailed) then + AFailed.Add('EVP_MD_size'); + end; + + + if not assigned(EVP_MD_block_size) then + begin + {$if declared(EVP_MD_block_size_introduced)} + if LibVersion < EVP_MD_block_size_introduced then + {$if declared(FC_EVP_MD_block_size)} + EVP_MD_block_size := @FC_EVP_MD_block_size + {$else} + EVP_MD_block_size := @ERR_EVP_MD_block_size + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_block_size_removed)} + if EVP_MD_block_size_removed <= LibVersion then + {$if declared(_EVP_MD_block_size)} + EVP_MD_block_size := @_EVP_MD_block_size + {$else} + {$IF declared(ERR_EVP_MD_block_size)} + EVP_MD_block_size := @ERR_EVP_MD_block_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_block_size) and Assigned(AFailed) then + AFailed.Add('EVP_MD_block_size'); + end; + + + if not assigned(EVP_MD_flags) then + begin + {$if declared(EVP_MD_flags_introduced)} + if LibVersion < EVP_MD_flags_introduced then + {$if declared(FC_EVP_MD_flags)} + EVP_MD_flags := @FC_EVP_MD_flags + {$else} + EVP_MD_flags := @ERR_EVP_MD_flags + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_flags_removed)} + if EVP_MD_flags_removed <= LibVersion then + {$if declared(_EVP_MD_flags)} + EVP_MD_flags := @_EVP_MD_flags + {$else} + {$IF declared(ERR_EVP_MD_flags)} + EVP_MD_flags := @ERR_EVP_MD_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_flags) and Assigned(AFailed) then + AFailed.Add('EVP_MD_flags'); + end; + + + if not assigned(EVP_MD_CTX_update_fn) then + begin + {$if declared(EVP_MD_CTX_update_fn_introduced)} + if LibVersion < EVP_MD_CTX_update_fn_introduced then + {$if declared(FC_EVP_MD_CTX_update_fn)} + EVP_MD_CTX_update_fn := @FC_EVP_MD_CTX_update_fn + {$else} + EVP_MD_CTX_update_fn := @ERR_EVP_MD_CTX_update_fn + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_CTX_update_fn_removed)} + if EVP_MD_CTX_update_fn_removed <= LibVersion then + {$if declared(_EVP_MD_CTX_update_fn)} + EVP_MD_CTX_update_fn := @_EVP_MD_CTX_update_fn + {$else} + {$IF declared(ERR_EVP_MD_CTX_update_fn)} + EVP_MD_CTX_update_fn := @ERR_EVP_MD_CTX_update_fn + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_CTX_update_fn) and Assigned(AFailed) then + AFailed.Add('EVP_MD_CTX_update_fn'); + end; + + + if not assigned(EVP_MD_CTX_set_update_fn) then + begin + {$if declared(EVP_MD_CTX_set_update_fn_introduced)} + if LibVersion < EVP_MD_CTX_set_update_fn_introduced then + {$if declared(FC_EVP_MD_CTX_set_update_fn)} + EVP_MD_CTX_set_update_fn := @FC_EVP_MD_CTX_set_update_fn + {$else} + EVP_MD_CTX_set_update_fn := @ERR_EVP_MD_CTX_set_update_fn + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_CTX_set_update_fn_removed)} + if EVP_MD_CTX_set_update_fn_removed <= LibVersion then + {$if declared(_EVP_MD_CTX_set_update_fn)} + EVP_MD_CTX_set_update_fn := @_EVP_MD_CTX_set_update_fn + {$else} + {$IF declared(ERR_EVP_MD_CTX_set_update_fn)} + EVP_MD_CTX_set_update_fn := @ERR_EVP_MD_CTX_set_update_fn + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_CTX_set_update_fn) and Assigned(AFailed) then + AFailed.Add('EVP_MD_CTX_set_update_fn'); + end; + + + if not assigned(EVP_MD_CTX_pkey_ctx) then + begin + {$if declared(EVP_MD_CTX_pkey_ctx_introduced)} + if LibVersion < EVP_MD_CTX_pkey_ctx_introduced then + {$if declared(FC_EVP_MD_CTX_pkey_ctx)} + EVP_MD_CTX_pkey_ctx := @FC_EVP_MD_CTX_pkey_ctx + {$else} + EVP_MD_CTX_pkey_ctx := @ERR_EVP_MD_CTX_pkey_ctx + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_CTX_pkey_ctx_removed)} + if EVP_MD_CTX_pkey_ctx_removed <= LibVersion then + {$if declared(_EVP_MD_CTX_pkey_ctx)} + EVP_MD_CTX_pkey_ctx := @_EVP_MD_CTX_pkey_ctx + {$else} + {$IF declared(ERR_EVP_MD_CTX_pkey_ctx)} + EVP_MD_CTX_pkey_ctx := @ERR_EVP_MD_CTX_pkey_ctx + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_CTX_pkey_ctx) and Assigned(AFailed) then + AFailed.Add('EVP_MD_CTX_pkey_ctx'); + end; + + + if not assigned(EVP_MD_CTX_set_pkey_ctx) then + begin + {$if declared(EVP_MD_CTX_set_pkey_ctx_introduced)} + if LibVersion < EVP_MD_CTX_set_pkey_ctx_introduced then + {$if declared(FC_EVP_MD_CTX_set_pkey_ctx)} + EVP_MD_CTX_set_pkey_ctx := @FC_EVP_MD_CTX_set_pkey_ctx + {$else} + EVP_MD_CTX_set_pkey_ctx := @ERR_EVP_MD_CTX_set_pkey_ctx + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_CTX_set_pkey_ctx_removed)} + if EVP_MD_CTX_set_pkey_ctx_removed <= LibVersion then + {$if declared(_EVP_MD_CTX_set_pkey_ctx)} + EVP_MD_CTX_set_pkey_ctx := @_EVP_MD_CTX_set_pkey_ctx + {$else} + {$IF declared(ERR_EVP_MD_CTX_set_pkey_ctx)} + EVP_MD_CTX_set_pkey_ctx := @ERR_EVP_MD_CTX_set_pkey_ctx + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_CTX_set_pkey_ctx) and Assigned(AFailed) then + AFailed.Add('EVP_MD_CTX_set_pkey_ctx'); + end; + + + if not assigned(EVP_MD_CTX_md_data) then + begin + {$if declared(EVP_MD_CTX_md_data_introduced)} + if LibVersion < EVP_MD_CTX_md_data_introduced then + {$if declared(FC_EVP_MD_CTX_md_data)} + EVP_MD_CTX_md_data := @FC_EVP_MD_CTX_md_data + {$else} + EVP_MD_CTX_md_data := @ERR_EVP_MD_CTX_md_data + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_CTX_md_data_removed)} + if EVP_MD_CTX_md_data_removed <= LibVersion then + {$if declared(_EVP_MD_CTX_md_data)} + EVP_MD_CTX_md_data := @_EVP_MD_CTX_md_data + {$else} + {$IF declared(ERR_EVP_MD_CTX_md_data)} + EVP_MD_CTX_md_data := @ERR_EVP_MD_CTX_md_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_CTX_md_data) and Assigned(AFailed) then + AFailed.Add('EVP_MD_CTX_md_data'); + end; + + + if not assigned(EVP_CIPHER_nid) then + begin + {$if declared(EVP_CIPHER_nid_introduced)} + if LibVersion < EVP_CIPHER_nid_introduced then + {$if declared(FC_EVP_CIPHER_nid)} + EVP_CIPHER_nid := @FC_EVP_CIPHER_nid + {$else} + EVP_CIPHER_nid := @ERR_EVP_CIPHER_nid + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_nid_removed)} + if EVP_CIPHER_nid_removed <= LibVersion then + {$if declared(_EVP_CIPHER_nid)} + EVP_CIPHER_nid := @_EVP_CIPHER_nid + {$else} + {$IF declared(ERR_EVP_CIPHER_nid)} + EVP_CIPHER_nid := @ERR_EVP_CIPHER_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_nid) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_nid'); + end; + + + if not assigned(EVP_CIPHER_block_size) then + begin + {$if declared(EVP_CIPHER_block_size_introduced)} + if LibVersion < EVP_CIPHER_block_size_introduced then + {$if declared(FC_EVP_CIPHER_block_size)} + EVP_CIPHER_block_size := @FC_EVP_CIPHER_block_size + {$else} + EVP_CIPHER_block_size := @ERR_EVP_CIPHER_block_size + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_block_size_removed)} + if EVP_CIPHER_block_size_removed <= LibVersion then + {$if declared(_EVP_CIPHER_block_size)} + EVP_CIPHER_block_size := @_EVP_CIPHER_block_size + {$else} + {$IF declared(ERR_EVP_CIPHER_block_size)} + EVP_CIPHER_block_size := @ERR_EVP_CIPHER_block_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_block_size) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_block_size'); + end; + + + if not assigned(EVP_CIPHER_impl_ctx_size) then + begin + {$if declared(EVP_CIPHER_impl_ctx_size_introduced)} + if LibVersion < EVP_CIPHER_impl_ctx_size_introduced then + {$if declared(FC_EVP_CIPHER_impl_ctx_size)} + EVP_CIPHER_impl_ctx_size := @FC_EVP_CIPHER_impl_ctx_size + {$else} + EVP_CIPHER_impl_ctx_size := @ERR_EVP_CIPHER_impl_ctx_size + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_impl_ctx_size_removed)} + if EVP_CIPHER_impl_ctx_size_removed <= LibVersion then + {$if declared(_EVP_CIPHER_impl_ctx_size)} + EVP_CIPHER_impl_ctx_size := @_EVP_CIPHER_impl_ctx_size + {$else} + {$IF declared(ERR_EVP_CIPHER_impl_ctx_size)} + EVP_CIPHER_impl_ctx_size := @ERR_EVP_CIPHER_impl_ctx_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_impl_ctx_size) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_impl_ctx_size'); + end; + + + if not assigned(EVP_CIPHER_key_length) then + begin + {$if declared(EVP_CIPHER_key_length_introduced)} + if LibVersion < EVP_CIPHER_key_length_introduced then + {$if declared(FC_EVP_CIPHER_key_length)} + EVP_CIPHER_key_length := @FC_EVP_CIPHER_key_length + {$else} + EVP_CIPHER_key_length := @ERR_EVP_CIPHER_key_length + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_key_length_removed)} + if EVP_CIPHER_key_length_removed <= LibVersion then + {$if declared(_EVP_CIPHER_key_length)} + EVP_CIPHER_key_length := @_EVP_CIPHER_key_length + {$else} + {$IF declared(ERR_EVP_CIPHER_key_length)} + EVP_CIPHER_key_length := @ERR_EVP_CIPHER_key_length + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_key_length) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_key_length'); + end; + + + if not assigned(EVP_CIPHER_iv_length) then + begin + {$if declared(EVP_CIPHER_iv_length_introduced)} + if LibVersion < EVP_CIPHER_iv_length_introduced then + {$if declared(FC_EVP_CIPHER_iv_length)} + EVP_CIPHER_iv_length := @FC_EVP_CIPHER_iv_length + {$else} + EVP_CIPHER_iv_length := @ERR_EVP_CIPHER_iv_length + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_iv_length_removed)} + if EVP_CIPHER_iv_length_removed <= LibVersion then + {$if declared(_EVP_CIPHER_iv_length)} + EVP_CIPHER_iv_length := @_EVP_CIPHER_iv_length + {$else} + {$IF declared(ERR_EVP_CIPHER_iv_length)} + EVP_CIPHER_iv_length := @ERR_EVP_CIPHER_iv_length + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_iv_length) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_iv_length'); + end; + + + if not assigned(EVP_CIPHER_flags) then + begin + {$if declared(EVP_CIPHER_flags_introduced)} + if LibVersion < EVP_CIPHER_flags_introduced then + {$if declared(FC_EVP_CIPHER_flags)} + EVP_CIPHER_flags := @FC_EVP_CIPHER_flags + {$else} + EVP_CIPHER_flags := @ERR_EVP_CIPHER_flags + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_flags_removed)} + if EVP_CIPHER_flags_removed <= LibVersion then + {$if declared(_EVP_CIPHER_flags)} + EVP_CIPHER_flags := @_EVP_CIPHER_flags + {$else} + {$IF declared(ERR_EVP_CIPHER_flags)} + EVP_CIPHER_flags := @ERR_EVP_CIPHER_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_flags) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_flags'); + end; + + + if not assigned(EVP_CIPHER_CTX_encrypting) then + begin + {$if declared(EVP_CIPHER_CTX_encrypting_introduced)} + if LibVersion < EVP_CIPHER_CTX_encrypting_introduced then + {$if declared(FC_EVP_CIPHER_CTX_encrypting)} + EVP_CIPHER_CTX_encrypting := @FC_EVP_CIPHER_CTX_encrypting + {$else} + EVP_CIPHER_CTX_encrypting := @ERR_EVP_CIPHER_CTX_encrypting + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_encrypting_removed)} + if EVP_CIPHER_CTX_encrypting_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_encrypting)} + EVP_CIPHER_CTX_encrypting := @_EVP_CIPHER_CTX_encrypting + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_encrypting)} + EVP_CIPHER_CTX_encrypting := @ERR_EVP_CIPHER_CTX_encrypting + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_encrypting) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_encrypting'); + end; + + + if not assigned(EVP_CIPHER_CTX_nid) then + begin + {$if declared(EVP_CIPHER_CTX_nid_introduced)} + if LibVersion < EVP_CIPHER_CTX_nid_introduced then + {$if declared(FC_EVP_CIPHER_CTX_nid)} + EVP_CIPHER_CTX_nid := @FC_EVP_CIPHER_CTX_nid + {$else} + EVP_CIPHER_CTX_nid := @ERR_EVP_CIPHER_CTX_nid + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_nid_removed)} + if EVP_CIPHER_CTX_nid_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_nid)} + EVP_CIPHER_CTX_nid := @_EVP_CIPHER_CTX_nid + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_nid)} + EVP_CIPHER_CTX_nid := @ERR_EVP_CIPHER_CTX_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_nid) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_nid'); + end; + + + if not assigned(EVP_CIPHER_CTX_block_size) then + begin + {$if declared(EVP_CIPHER_CTX_block_size_introduced)} + if LibVersion < EVP_CIPHER_CTX_block_size_introduced then + {$if declared(FC_EVP_CIPHER_CTX_block_size)} + EVP_CIPHER_CTX_block_size := @FC_EVP_CIPHER_CTX_block_size + {$else} + EVP_CIPHER_CTX_block_size := @ERR_EVP_CIPHER_CTX_block_size + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_block_size_removed)} + if EVP_CIPHER_CTX_block_size_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_block_size)} + EVP_CIPHER_CTX_block_size := @_EVP_CIPHER_CTX_block_size + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_block_size)} + EVP_CIPHER_CTX_block_size := @ERR_EVP_CIPHER_CTX_block_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_block_size) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_block_size'); + end; + + + if not assigned(EVP_CIPHER_CTX_key_length) then + begin + {$if declared(EVP_CIPHER_CTX_key_length_introduced)} + if LibVersion < EVP_CIPHER_CTX_key_length_introduced then + {$if declared(FC_EVP_CIPHER_CTX_key_length)} + EVP_CIPHER_CTX_key_length := @FC_EVP_CIPHER_CTX_key_length + {$else} + EVP_CIPHER_CTX_key_length := @ERR_EVP_CIPHER_CTX_key_length + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_key_length_removed)} + if EVP_CIPHER_CTX_key_length_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_key_length)} + EVP_CIPHER_CTX_key_length := @_EVP_CIPHER_CTX_key_length + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_key_length)} + EVP_CIPHER_CTX_key_length := @ERR_EVP_CIPHER_CTX_key_length + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_key_length) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_key_length'); + end; + + + if not assigned(EVP_CIPHER_CTX_iv_length) then + begin + {$if declared(EVP_CIPHER_CTX_iv_length_introduced)} + if LibVersion < EVP_CIPHER_CTX_iv_length_introduced then + {$if declared(FC_EVP_CIPHER_CTX_iv_length)} + EVP_CIPHER_CTX_iv_length := @FC_EVP_CIPHER_CTX_iv_length + {$else} + EVP_CIPHER_CTX_iv_length := @ERR_EVP_CIPHER_CTX_iv_length + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_iv_length_removed)} + if EVP_CIPHER_CTX_iv_length_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_iv_length)} + EVP_CIPHER_CTX_iv_length := @_EVP_CIPHER_CTX_iv_length + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_iv_length)} + EVP_CIPHER_CTX_iv_length := @ERR_EVP_CIPHER_CTX_iv_length + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_iv_length) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_iv_length'); + end; + + + if not assigned(EVP_CIPHER_CTX_iv) then + begin + {$if declared(EVP_CIPHER_CTX_iv_introduced)} + if LibVersion < EVP_CIPHER_CTX_iv_introduced then + {$if declared(FC_EVP_CIPHER_CTX_iv)} + EVP_CIPHER_CTX_iv := @FC_EVP_CIPHER_CTX_iv + {$else} + EVP_CIPHER_CTX_iv := @ERR_EVP_CIPHER_CTX_iv + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_iv_removed)} + if EVP_CIPHER_CTX_iv_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_iv)} + EVP_CIPHER_CTX_iv := @_EVP_CIPHER_CTX_iv + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_iv)} + EVP_CIPHER_CTX_iv := @ERR_EVP_CIPHER_CTX_iv + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_iv) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_iv'); + end; + + + if not assigned(EVP_CIPHER_CTX_original_iv) then + begin + {$if declared(EVP_CIPHER_CTX_original_iv_introduced)} + if LibVersion < EVP_CIPHER_CTX_original_iv_introduced then + {$if declared(FC_EVP_CIPHER_CTX_original_iv)} + EVP_CIPHER_CTX_original_iv := @FC_EVP_CIPHER_CTX_original_iv + {$else} + EVP_CIPHER_CTX_original_iv := @ERR_EVP_CIPHER_CTX_original_iv + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_original_iv_removed)} + if EVP_CIPHER_CTX_original_iv_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_original_iv)} + EVP_CIPHER_CTX_original_iv := @_EVP_CIPHER_CTX_original_iv + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_original_iv)} + EVP_CIPHER_CTX_original_iv := @ERR_EVP_CIPHER_CTX_original_iv + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_original_iv) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_original_iv'); + end; + + + if not assigned(EVP_CIPHER_CTX_iv_noconst) then + begin + {$if declared(EVP_CIPHER_CTX_iv_noconst_introduced)} + if LibVersion < EVP_CIPHER_CTX_iv_noconst_introduced then + {$if declared(FC_EVP_CIPHER_CTX_iv_noconst)} + EVP_CIPHER_CTX_iv_noconst := @FC_EVP_CIPHER_CTX_iv_noconst + {$else} + EVP_CIPHER_CTX_iv_noconst := @ERR_EVP_CIPHER_CTX_iv_noconst + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_iv_noconst_removed)} + if EVP_CIPHER_CTX_iv_noconst_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_iv_noconst)} + EVP_CIPHER_CTX_iv_noconst := @_EVP_CIPHER_CTX_iv_noconst + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_iv_noconst)} + EVP_CIPHER_CTX_iv_noconst := @ERR_EVP_CIPHER_CTX_iv_noconst + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_iv_noconst) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_iv_noconst'); + end; + + + if not assigned(EVP_CIPHER_CTX_buf_noconst) then + begin + {$if declared(EVP_CIPHER_CTX_buf_noconst_introduced)} + if LibVersion < EVP_CIPHER_CTX_buf_noconst_introduced then + {$if declared(FC_EVP_CIPHER_CTX_buf_noconst)} + EVP_CIPHER_CTX_buf_noconst := @FC_EVP_CIPHER_CTX_buf_noconst + {$else} + EVP_CIPHER_CTX_buf_noconst := @ERR_EVP_CIPHER_CTX_buf_noconst + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_buf_noconst_removed)} + if EVP_CIPHER_CTX_buf_noconst_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_buf_noconst)} + EVP_CIPHER_CTX_buf_noconst := @_EVP_CIPHER_CTX_buf_noconst + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_buf_noconst)} + EVP_CIPHER_CTX_buf_noconst := @ERR_EVP_CIPHER_CTX_buf_noconst + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_buf_noconst) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_buf_noconst'); + end; + + + if not assigned(EVP_CIPHER_CTX_num) then + begin + {$if declared(EVP_CIPHER_CTX_num_introduced)} + if LibVersion < EVP_CIPHER_CTX_num_introduced then + {$if declared(FC_EVP_CIPHER_CTX_num)} + EVP_CIPHER_CTX_num := @FC_EVP_CIPHER_CTX_num + {$else} + EVP_CIPHER_CTX_num := @ERR_EVP_CIPHER_CTX_num + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_num_removed)} + if EVP_CIPHER_CTX_num_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_num)} + EVP_CIPHER_CTX_num := @_EVP_CIPHER_CTX_num + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_num)} + EVP_CIPHER_CTX_num := @ERR_EVP_CIPHER_CTX_num + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_num) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_num'); + end; + + + if not assigned(EVP_CIPHER_CTX_set_num) then + begin + {$if declared(EVP_CIPHER_CTX_set_num_introduced)} + if LibVersion < EVP_CIPHER_CTX_set_num_introduced then + {$if declared(FC_EVP_CIPHER_CTX_set_num)} + EVP_CIPHER_CTX_set_num := @FC_EVP_CIPHER_CTX_set_num + {$else} + EVP_CIPHER_CTX_set_num := @ERR_EVP_CIPHER_CTX_set_num + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_set_num_removed)} + if EVP_CIPHER_CTX_set_num_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_set_num)} + EVP_CIPHER_CTX_set_num := @_EVP_CIPHER_CTX_set_num + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_set_num)} + EVP_CIPHER_CTX_set_num := @ERR_EVP_CIPHER_CTX_set_num + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_set_num) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_set_num'); + end; + + + if not assigned(EVP_CIPHER_CTX_get_cipher_data) then + begin + {$if declared(EVP_CIPHER_CTX_get_cipher_data_introduced)} + if LibVersion < EVP_CIPHER_CTX_get_cipher_data_introduced then + {$if declared(FC_EVP_CIPHER_CTX_get_cipher_data)} + EVP_CIPHER_CTX_get_cipher_data := @FC_EVP_CIPHER_CTX_get_cipher_data + {$else} + EVP_CIPHER_CTX_get_cipher_data := @ERR_EVP_CIPHER_CTX_get_cipher_data + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_get_cipher_data_removed)} + if EVP_CIPHER_CTX_get_cipher_data_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_get_cipher_data)} + EVP_CIPHER_CTX_get_cipher_data := @_EVP_CIPHER_CTX_get_cipher_data + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_get_cipher_data)} + EVP_CIPHER_CTX_get_cipher_data := @ERR_EVP_CIPHER_CTX_get_cipher_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_get_cipher_data) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_get_cipher_data'); + end; + + + if not assigned(EVP_CIPHER_CTX_set_cipher_data) then + begin + {$if declared(EVP_CIPHER_CTX_set_cipher_data_introduced)} + if LibVersion < EVP_CIPHER_CTX_set_cipher_data_introduced then + {$if declared(FC_EVP_CIPHER_CTX_set_cipher_data)} + EVP_CIPHER_CTX_set_cipher_data := @FC_EVP_CIPHER_CTX_set_cipher_data + {$else} + EVP_CIPHER_CTX_set_cipher_data := @ERR_EVP_CIPHER_CTX_set_cipher_data + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_set_cipher_data_removed)} + if EVP_CIPHER_CTX_set_cipher_data_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_set_cipher_data)} + EVP_CIPHER_CTX_set_cipher_data := @_EVP_CIPHER_CTX_set_cipher_data + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_set_cipher_data)} + EVP_CIPHER_CTX_set_cipher_data := @ERR_EVP_CIPHER_CTX_set_cipher_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_set_cipher_data) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_set_cipher_data'); + end; + + + if not assigned(BIO_set_md) then + begin + {$if declared(BIO_set_md_introduced)} + if LibVersion < BIO_set_md_introduced then + {$if declared(FC_BIO_set_md)} + BIO_set_md := @FC_BIO_set_md + {$else} + BIO_set_md := @ERR_BIO_set_md + {$ifend} + else + {$ifend} + {$if declared(BIO_set_md_removed)} + if BIO_set_md_removed <= LibVersion then + {$if declared(_BIO_set_md)} + BIO_set_md := @_BIO_set_md + {$else} + {$IF declared(ERR_BIO_set_md)} + BIO_set_md := @ERR_BIO_set_md + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(BIO_set_md) and Assigned(AFailed) then + AFailed.Add('BIO_set_md'); + end; + + + if not assigned(EVP_MD_CTX_ctrl) then + begin + {$if declared(EVP_MD_CTX_ctrl_introduced)} + if LibVersion < EVP_MD_CTX_ctrl_introduced then + {$if declared(FC_EVP_MD_CTX_ctrl)} + EVP_MD_CTX_ctrl := @FC_EVP_MD_CTX_ctrl + {$else} + EVP_MD_CTX_ctrl := @ERR_EVP_MD_CTX_ctrl + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_CTX_ctrl_removed)} + if EVP_MD_CTX_ctrl_removed <= LibVersion then + {$if declared(_EVP_MD_CTX_ctrl)} + EVP_MD_CTX_ctrl := @_EVP_MD_CTX_ctrl + {$else} + {$IF declared(ERR_EVP_MD_CTX_ctrl)} + EVP_MD_CTX_ctrl := @ERR_EVP_MD_CTX_ctrl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_CTX_ctrl) and Assigned(AFailed) then + AFailed.Add('EVP_MD_CTX_ctrl'); + end; + + + if not assigned(EVP_MD_CTX_new) then + begin + {$if declared(EVP_MD_CTX_new_introduced)} + if LibVersion < EVP_MD_CTX_new_introduced then + {$if declared(FC_EVP_MD_CTX_new)} + EVP_MD_CTX_new := @FC_EVP_MD_CTX_new + {$else} + EVP_MD_CTX_new := @ERR_EVP_MD_CTX_new + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_CTX_new_removed)} + if EVP_MD_CTX_new_removed <= LibVersion then + {$if declared(_EVP_MD_CTX_new)} + EVP_MD_CTX_new := @_EVP_MD_CTX_new + {$else} + {$IF declared(ERR_EVP_MD_CTX_new)} + EVP_MD_CTX_new := @ERR_EVP_MD_CTX_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_CTX_new) and Assigned(AFailed) then + AFailed.Add('EVP_MD_CTX_new'); + end; + + + if not assigned(EVP_MD_CTX_reset) then + begin + {$if declared(EVP_MD_CTX_reset_introduced)} + if LibVersion < EVP_MD_CTX_reset_introduced then + {$if declared(FC_EVP_MD_CTX_reset)} + EVP_MD_CTX_reset := @FC_EVP_MD_CTX_reset + {$else} + EVP_MD_CTX_reset := @ERR_EVP_MD_CTX_reset + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_CTX_reset_removed)} + if EVP_MD_CTX_reset_removed <= LibVersion then + {$if declared(_EVP_MD_CTX_reset)} + EVP_MD_CTX_reset := @_EVP_MD_CTX_reset + {$else} + {$IF declared(ERR_EVP_MD_CTX_reset)} + EVP_MD_CTX_reset := @ERR_EVP_MD_CTX_reset + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_CTX_reset) and Assigned(AFailed) then + AFailed.Add('EVP_MD_CTX_reset'); + end; + + + if not assigned(EVP_MD_CTX_free) then + begin + {$if declared(EVP_MD_CTX_free_introduced)} + if LibVersion < EVP_MD_CTX_free_introduced then + {$if declared(FC_EVP_MD_CTX_free)} + EVP_MD_CTX_free := @FC_EVP_MD_CTX_free + {$else} + EVP_MD_CTX_free := @ERR_EVP_MD_CTX_free + {$ifend} + else + {$ifend} + {$if declared(EVP_MD_CTX_free_removed)} + if EVP_MD_CTX_free_removed <= LibVersion then + {$if declared(_EVP_MD_CTX_free)} + EVP_MD_CTX_free := @_EVP_MD_CTX_free + {$else} + {$IF declared(ERR_EVP_MD_CTX_free)} + EVP_MD_CTX_free := @ERR_EVP_MD_CTX_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_MD_CTX_free) and Assigned(AFailed) then + AFailed.Add('EVP_MD_CTX_free'); + end; + + + if not assigned(EVP_DigestFinalXOF) then + begin + {$if declared(EVP_DigestFinalXOF_introduced)} + if LibVersion < EVP_DigestFinalXOF_introduced then + {$if declared(FC_EVP_DigestFinalXOF)} + EVP_DigestFinalXOF := @FC_EVP_DigestFinalXOF + {$else} + EVP_DigestFinalXOF := @ERR_EVP_DigestFinalXOF + {$ifend} + else + {$ifend} + {$if declared(EVP_DigestFinalXOF_removed)} + if EVP_DigestFinalXOF_removed <= LibVersion then + {$if declared(_EVP_DigestFinalXOF)} + EVP_DigestFinalXOF := @_EVP_DigestFinalXOF + {$else} + {$IF declared(ERR_EVP_DigestFinalXOF)} + EVP_DigestFinalXOF := @ERR_EVP_DigestFinalXOF + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_DigestFinalXOF) and Assigned(AFailed) then + AFailed.Add('EVP_DigestFinalXOF'); + end; + + + if not assigned(EVP_DigestSign) then + begin + {$if declared(EVP_DigestSign_introduced)} + if LibVersion < EVP_DigestSign_introduced then + {$if declared(FC_EVP_DigestSign)} + EVP_DigestSign := @FC_EVP_DigestSign + {$else} + EVP_DigestSign := @ERR_EVP_DigestSign + {$ifend} + else + {$ifend} + {$if declared(EVP_DigestSign_removed)} + if EVP_DigestSign_removed <= LibVersion then + {$if declared(_EVP_DigestSign)} + EVP_DigestSign := @_EVP_DigestSign + {$else} + {$IF declared(ERR_EVP_DigestSign)} + EVP_DigestSign := @ERR_EVP_DigestSign + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_DigestSign) and Assigned(AFailed) then + AFailed.Add('EVP_DigestSign'); + end; + + + if not assigned(EVP_DigestVerify) then + begin + {$if declared(EVP_DigestVerify_introduced)} + if LibVersion < EVP_DigestVerify_introduced then + {$if declared(FC_EVP_DigestVerify)} + EVP_DigestVerify := @FC_EVP_DigestVerify + {$else} + EVP_DigestVerify := @ERR_EVP_DigestVerify + {$ifend} + else + {$ifend} + {$if declared(EVP_DigestVerify_removed)} + if EVP_DigestVerify_removed <= LibVersion then + {$if declared(_EVP_DigestVerify)} + EVP_DigestVerify := @_EVP_DigestVerify + {$else} + {$IF declared(ERR_EVP_DigestVerify)} + EVP_DigestVerify := @ERR_EVP_DigestVerify + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_DigestVerify) and Assigned(AFailed) then + AFailed.Add('EVP_DigestVerify'); + end; + + + if not assigned(EVP_ENCODE_CTX_new) then + begin + {$if declared(EVP_ENCODE_CTX_new_introduced)} + if LibVersion < EVP_ENCODE_CTX_new_introduced then + {$if declared(FC_EVP_ENCODE_CTX_new)} + EVP_ENCODE_CTX_new := @FC_EVP_ENCODE_CTX_new + {$else} + EVP_ENCODE_CTX_new := @ERR_EVP_ENCODE_CTX_new + {$ifend} + else + {$ifend} + {$if declared(EVP_ENCODE_CTX_new_removed)} + if EVP_ENCODE_CTX_new_removed <= LibVersion then + {$if declared(_EVP_ENCODE_CTX_new)} + EVP_ENCODE_CTX_new := @_EVP_ENCODE_CTX_new + {$else} + {$IF declared(ERR_EVP_ENCODE_CTX_new)} + EVP_ENCODE_CTX_new := @ERR_EVP_ENCODE_CTX_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_ENCODE_CTX_new) and Assigned(AFailed) then + AFailed.Add('EVP_ENCODE_CTX_new'); + end; + + + if not assigned(EVP_ENCODE_CTX_free) then + begin + {$if declared(EVP_ENCODE_CTX_free_introduced)} + if LibVersion < EVP_ENCODE_CTX_free_introduced then + {$if declared(FC_EVP_ENCODE_CTX_free)} + EVP_ENCODE_CTX_free := @FC_EVP_ENCODE_CTX_free + {$else} + EVP_ENCODE_CTX_free := @ERR_EVP_ENCODE_CTX_free + {$ifend} + else + {$ifend} + {$if declared(EVP_ENCODE_CTX_free_removed)} + if EVP_ENCODE_CTX_free_removed <= LibVersion then + {$if declared(_EVP_ENCODE_CTX_free)} + EVP_ENCODE_CTX_free := @_EVP_ENCODE_CTX_free + {$else} + {$IF declared(ERR_EVP_ENCODE_CTX_free)} + EVP_ENCODE_CTX_free := @ERR_EVP_ENCODE_CTX_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_ENCODE_CTX_free) and Assigned(AFailed) then + AFailed.Add('EVP_ENCODE_CTX_free'); + end; + + + if not assigned(EVP_ENCODE_CTX_copy) then + begin + {$if declared(EVP_ENCODE_CTX_copy_introduced)} + if LibVersion < EVP_ENCODE_CTX_copy_introduced then + {$if declared(FC_EVP_ENCODE_CTX_copy)} + EVP_ENCODE_CTX_copy := @FC_EVP_ENCODE_CTX_copy + {$else} + EVP_ENCODE_CTX_copy := @ERR_EVP_ENCODE_CTX_copy + {$ifend} + else + {$ifend} + {$if declared(EVP_ENCODE_CTX_copy_removed)} + if EVP_ENCODE_CTX_copy_removed <= LibVersion then + {$if declared(_EVP_ENCODE_CTX_copy)} + EVP_ENCODE_CTX_copy := @_EVP_ENCODE_CTX_copy + {$else} + {$IF declared(ERR_EVP_ENCODE_CTX_copy)} + EVP_ENCODE_CTX_copy := @ERR_EVP_ENCODE_CTX_copy + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_ENCODE_CTX_copy) and Assigned(AFailed) then + AFailed.Add('EVP_ENCODE_CTX_copy'); + end; + + + if not assigned(EVP_ENCODE_CTX_num) then + begin + {$if declared(EVP_ENCODE_CTX_num_introduced)} + if LibVersion < EVP_ENCODE_CTX_num_introduced then + {$if declared(FC_EVP_ENCODE_CTX_num)} + EVP_ENCODE_CTX_num := @FC_EVP_ENCODE_CTX_num + {$else} + EVP_ENCODE_CTX_num := @ERR_EVP_ENCODE_CTX_num + {$ifend} + else + {$ifend} + {$if declared(EVP_ENCODE_CTX_num_removed)} + if EVP_ENCODE_CTX_num_removed <= LibVersion then + {$if declared(_EVP_ENCODE_CTX_num)} + EVP_ENCODE_CTX_num := @_EVP_ENCODE_CTX_num + {$else} + {$IF declared(ERR_EVP_ENCODE_CTX_num)} + EVP_ENCODE_CTX_num := @ERR_EVP_ENCODE_CTX_num + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_ENCODE_CTX_num) and Assigned(AFailed) then + AFailed.Add('EVP_ENCODE_CTX_num'); + end; + + + if not assigned(EVP_CIPHER_CTX_reset) then + begin + {$if declared(EVP_CIPHER_CTX_reset_introduced)} + if LibVersion < EVP_CIPHER_CTX_reset_introduced then + {$if declared(FC_EVP_CIPHER_CTX_reset)} + EVP_CIPHER_CTX_reset := @FC_EVP_CIPHER_CTX_reset + {$else} + EVP_CIPHER_CTX_reset := @ERR_EVP_CIPHER_CTX_reset + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_CTX_reset_removed)} + if EVP_CIPHER_CTX_reset_removed <= LibVersion then + {$if declared(_EVP_CIPHER_CTX_reset)} + EVP_CIPHER_CTX_reset := @_EVP_CIPHER_CTX_reset + {$else} + {$IF declared(ERR_EVP_CIPHER_CTX_reset)} + EVP_CIPHER_CTX_reset := @ERR_EVP_CIPHER_CTX_reset + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_CTX_reset) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_CTX_reset'); + end; + + + if not assigned(EVP_md5_sha1) then + begin + {$if declared(EVP_md5_sha1_introduced)} + if LibVersion < EVP_md5_sha1_introduced then + {$if declared(FC_EVP_md5_sha1)} + EVP_md5_sha1 := @FC_EVP_md5_sha1 + {$else} + EVP_md5_sha1 := @ERR_EVP_md5_sha1 + {$ifend} + else + {$ifend} + {$if declared(EVP_md5_sha1_removed)} + if EVP_md5_sha1_removed <= LibVersion then + {$if declared(_EVP_md5_sha1)} + EVP_md5_sha1 := @_EVP_md5_sha1 + {$else} + {$IF declared(ERR_EVP_md5_sha1)} + EVP_md5_sha1 := @ERR_EVP_md5_sha1 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_md5_sha1) and Assigned(AFailed) then + AFailed.Add('EVP_md5_sha1'); + end; + + + if not assigned(EVP_sha512_224) then + begin + {$if declared(EVP_sha512_224_introduced)} + if LibVersion < EVP_sha512_224_introduced then + {$if declared(FC_EVP_sha512_224)} + EVP_sha512_224 := @FC_EVP_sha512_224 + {$else} + EVP_sha512_224 := @ERR_EVP_sha512_224 + {$ifend} + else + {$ifend} + {$if declared(EVP_sha512_224_removed)} + if EVP_sha512_224_removed <= LibVersion then + {$if declared(_EVP_sha512_224)} + EVP_sha512_224 := @_EVP_sha512_224 + {$else} + {$IF declared(ERR_EVP_sha512_224)} + EVP_sha512_224 := @ERR_EVP_sha512_224 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_sha512_224) and Assigned(AFailed) then + AFailed.Add('EVP_sha512_224'); + end; + + + if not assigned(EVP_sha512_256) then + begin + {$if declared(EVP_sha512_256_introduced)} + if LibVersion < EVP_sha512_256_introduced then + {$if declared(FC_EVP_sha512_256)} + EVP_sha512_256 := @FC_EVP_sha512_256 + {$else} + EVP_sha512_256 := @ERR_EVP_sha512_256 + {$ifend} + else + {$ifend} + {$if declared(EVP_sha512_256_removed)} + if EVP_sha512_256_removed <= LibVersion then + {$if declared(_EVP_sha512_256)} + EVP_sha512_256 := @_EVP_sha512_256 + {$else} + {$IF declared(ERR_EVP_sha512_256)} + EVP_sha512_256 := @ERR_EVP_sha512_256 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_sha512_256) and Assigned(AFailed) then + AFailed.Add('EVP_sha512_256'); + end; + + + if not assigned(EVP_sha3_224) then + begin + {$if declared(EVP_sha3_224_introduced)} + if LibVersion < EVP_sha3_224_introduced then + {$if declared(FC_EVP_sha3_224)} + EVP_sha3_224 := @FC_EVP_sha3_224 + {$else} + EVP_sha3_224 := @ERR_EVP_sha3_224 + {$ifend} + else + {$ifend} + {$if declared(EVP_sha3_224_removed)} + if EVP_sha3_224_removed <= LibVersion then + {$if declared(_EVP_sha3_224)} + EVP_sha3_224 := @_EVP_sha3_224 + {$else} + {$IF declared(ERR_EVP_sha3_224)} + EVP_sha3_224 := @ERR_EVP_sha3_224 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_sha3_224) and Assigned(AFailed) then + AFailed.Add('EVP_sha3_224'); + end; + + + if not assigned(EVP_sha3_256) then + begin + {$if declared(EVP_sha3_256_introduced)} + if LibVersion < EVP_sha3_256_introduced then + {$if declared(FC_EVP_sha3_256)} + EVP_sha3_256 := @FC_EVP_sha3_256 + {$else} + EVP_sha3_256 := @ERR_EVP_sha3_256 + {$ifend} + else + {$ifend} + {$if declared(EVP_sha3_256_removed)} + if EVP_sha3_256_removed <= LibVersion then + {$if declared(_EVP_sha3_256)} + EVP_sha3_256 := @_EVP_sha3_256 + {$else} + {$IF declared(ERR_EVP_sha3_256)} + EVP_sha3_256 := @ERR_EVP_sha3_256 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_sha3_256) and Assigned(AFailed) then + AFailed.Add('EVP_sha3_256'); + end; + + + if not assigned(EVP_sha3_384) then + begin + {$if declared(EVP_sha3_384_introduced)} + if LibVersion < EVP_sha3_384_introduced then + {$if declared(FC_EVP_sha3_384)} + EVP_sha3_384 := @FC_EVP_sha3_384 + {$else} + EVP_sha3_384 := @ERR_EVP_sha3_384 + {$ifend} + else + {$ifend} + {$if declared(EVP_sha3_384_removed)} + if EVP_sha3_384_removed <= LibVersion then + {$if declared(_EVP_sha3_384)} + EVP_sha3_384 := @_EVP_sha3_384 + {$else} + {$IF declared(ERR_EVP_sha3_384)} + EVP_sha3_384 := @ERR_EVP_sha3_384 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_sha3_384) and Assigned(AFailed) then + AFailed.Add('EVP_sha3_384'); + end; + + + if not assigned(EVP_sha3_512) then + begin + {$if declared(EVP_sha3_512_introduced)} + if LibVersion < EVP_sha3_512_introduced then + {$if declared(FC_EVP_sha3_512)} + EVP_sha3_512 := @FC_EVP_sha3_512 + {$else} + EVP_sha3_512 := @ERR_EVP_sha3_512 + {$ifend} + else + {$ifend} + {$if declared(EVP_sha3_512_removed)} + if EVP_sha3_512_removed <= LibVersion then + {$if declared(_EVP_sha3_512)} + EVP_sha3_512 := @_EVP_sha3_512 + {$else} + {$IF declared(ERR_EVP_sha3_512)} + EVP_sha3_512 := @ERR_EVP_sha3_512 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_sha3_512) and Assigned(AFailed) then + AFailed.Add('EVP_sha3_512'); + end; + + + if not assigned(EVP_shake128) then + begin + {$if declared(EVP_shake128_introduced)} + if LibVersion < EVP_shake128_introduced then + {$if declared(FC_EVP_shake128)} + EVP_shake128 := @FC_EVP_shake128 + {$else} + EVP_shake128 := @ERR_EVP_shake128 + {$ifend} + else + {$ifend} + {$if declared(EVP_shake128_removed)} + if EVP_shake128_removed <= LibVersion then + {$if declared(_EVP_shake128)} + EVP_shake128 := @_EVP_shake128 + {$else} + {$IF declared(ERR_EVP_shake128)} + EVP_shake128 := @ERR_EVP_shake128 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_shake128) and Assigned(AFailed) then + AFailed.Add('EVP_shake128'); + end; + + + if not assigned(EVP_shake256) then + begin + {$if declared(EVP_shake256_introduced)} + if LibVersion < EVP_shake256_introduced then + {$if declared(FC_EVP_shake256)} + EVP_shake256 := @FC_EVP_shake256 + {$else} + EVP_shake256 := @ERR_EVP_shake256 + {$ifend} + else + {$ifend} + {$if declared(EVP_shake256_removed)} + if EVP_shake256_removed <= LibVersion then + {$if declared(_EVP_shake256)} + EVP_shake256 := @_EVP_shake256 + {$else} + {$IF declared(ERR_EVP_shake256)} + EVP_shake256 := @ERR_EVP_shake256 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_shake256) and Assigned(AFailed) then + AFailed.Add('EVP_shake256'); + end; + + + if not assigned(EVP_aes_128_wrap_pad) then + begin + {$if declared(EVP_aes_128_wrap_pad_introduced)} + if LibVersion < EVP_aes_128_wrap_pad_introduced then + {$if declared(FC_EVP_aes_128_wrap_pad)} + EVP_aes_128_wrap_pad := @FC_EVP_aes_128_wrap_pad + {$else} + EVP_aes_128_wrap_pad := @ERR_EVP_aes_128_wrap_pad + {$ifend} + else + {$ifend} + {$if declared(EVP_aes_128_wrap_pad_removed)} + if EVP_aes_128_wrap_pad_removed <= LibVersion then + {$if declared(_EVP_aes_128_wrap_pad)} + EVP_aes_128_wrap_pad := @_EVP_aes_128_wrap_pad + {$else} + {$IF declared(ERR_EVP_aes_128_wrap_pad)} + EVP_aes_128_wrap_pad := @ERR_EVP_aes_128_wrap_pad + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aes_128_wrap_pad) and Assigned(AFailed) then + AFailed.Add('EVP_aes_128_wrap_pad'); + end; + + + if not assigned(EVP_aes_128_ocb) then + begin + {$if declared(EVP_aes_128_ocb_introduced)} + if LibVersion < EVP_aes_128_ocb_introduced then + {$if declared(FC_EVP_aes_128_ocb)} + EVP_aes_128_ocb := @FC_EVP_aes_128_ocb + {$else} + EVP_aes_128_ocb := @ERR_EVP_aes_128_ocb + {$ifend} + else + {$ifend} + {$if declared(EVP_aes_128_ocb_removed)} + if EVP_aes_128_ocb_removed <= LibVersion then + {$if declared(_EVP_aes_128_ocb)} + EVP_aes_128_ocb := @_EVP_aes_128_ocb + {$else} + {$IF declared(ERR_EVP_aes_128_ocb)} + EVP_aes_128_ocb := @ERR_EVP_aes_128_ocb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aes_128_ocb) and Assigned(AFailed) then + AFailed.Add('EVP_aes_128_ocb'); + end; + + + if not assigned(EVP_aes_192_wrap_pad) then + begin + {$if declared(EVP_aes_192_wrap_pad_introduced)} + if LibVersion < EVP_aes_192_wrap_pad_introduced then + {$if declared(FC_EVP_aes_192_wrap_pad)} + EVP_aes_192_wrap_pad := @FC_EVP_aes_192_wrap_pad + {$else} + EVP_aes_192_wrap_pad := @ERR_EVP_aes_192_wrap_pad + {$ifend} + else + {$ifend} + {$if declared(EVP_aes_192_wrap_pad_removed)} + if EVP_aes_192_wrap_pad_removed <= LibVersion then + {$if declared(_EVP_aes_192_wrap_pad)} + EVP_aes_192_wrap_pad := @_EVP_aes_192_wrap_pad + {$else} + {$IF declared(ERR_EVP_aes_192_wrap_pad)} + EVP_aes_192_wrap_pad := @ERR_EVP_aes_192_wrap_pad + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aes_192_wrap_pad) and Assigned(AFailed) then + AFailed.Add('EVP_aes_192_wrap_pad'); + end; + + + if not assigned(EVP_aes_192_ocb) then + begin + {$if declared(EVP_aes_192_ocb_introduced)} + if LibVersion < EVP_aes_192_ocb_introduced then + {$if declared(FC_EVP_aes_192_ocb)} + EVP_aes_192_ocb := @FC_EVP_aes_192_ocb + {$else} + EVP_aes_192_ocb := @ERR_EVP_aes_192_ocb + {$ifend} + else + {$ifend} + {$if declared(EVP_aes_192_ocb_removed)} + if EVP_aes_192_ocb_removed <= LibVersion then + {$if declared(_EVP_aes_192_ocb)} + EVP_aes_192_ocb := @_EVP_aes_192_ocb + {$else} + {$IF declared(ERR_EVP_aes_192_ocb)} + EVP_aes_192_ocb := @ERR_EVP_aes_192_ocb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aes_192_ocb) and Assigned(AFailed) then + AFailed.Add('EVP_aes_192_ocb'); + end; + + + if not assigned(EVP_aes_256_wrap_pad) then + begin + {$if declared(EVP_aes_256_wrap_pad_introduced)} + if LibVersion < EVP_aes_256_wrap_pad_introduced then + {$if declared(FC_EVP_aes_256_wrap_pad)} + EVP_aes_256_wrap_pad := @FC_EVP_aes_256_wrap_pad + {$else} + EVP_aes_256_wrap_pad := @ERR_EVP_aes_256_wrap_pad + {$ifend} + else + {$ifend} + {$if declared(EVP_aes_256_wrap_pad_removed)} + if EVP_aes_256_wrap_pad_removed <= LibVersion then + {$if declared(_EVP_aes_256_wrap_pad)} + EVP_aes_256_wrap_pad := @_EVP_aes_256_wrap_pad + {$else} + {$IF declared(ERR_EVP_aes_256_wrap_pad)} + EVP_aes_256_wrap_pad := @ERR_EVP_aes_256_wrap_pad + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aes_256_wrap_pad) and Assigned(AFailed) then + AFailed.Add('EVP_aes_256_wrap_pad'); + end; + + + if not assigned(EVP_aes_256_ocb) then + begin + {$if declared(EVP_aes_256_ocb_introduced)} + if LibVersion < EVP_aes_256_ocb_introduced then + {$if declared(FC_EVP_aes_256_ocb)} + EVP_aes_256_ocb := @FC_EVP_aes_256_ocb + {$else} + EVP_aes_256_ocb := @ERR_EVP_aes_256_ocb + {$ifend} + else + {$ifend} + {$if declared(EVP_aes_256_ocb_removed)} + if EVP_aes_256_ocb_removed <= LibVersion then + {$if declared(_EVP_aes_256_ocb)} + EVP_aes_256_ocb := @_EVP_aes_256_ocb + {$else} + {$IF declared(ERR_EVP_aes_256_ocb)} + EVP_aes_256_ocb := @ERR_EVP_aes_256_ocb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aes_256_ocb) and Assigned(AFailed) then + AFailed.Add('EVP_aes_256_ocb'); + end; + + + if not assigned(EVP_aria_128_ecb) then + begin + {$if declared(EVP_aria_128_ecb_introduced)} + if LibVersion < EVP_aria_128_ecb_introduced then + {$if declared(FC_EVP_aria_128_ecb)} + EVP_aria_128_ecb := @FC_EVP_aria_128_ecb + {$else} + EVP_aria_128_ecb := @ERR_EVP_aria_128_ecb + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_128_ecb_removed)} + if EVP_aria_128_ecb_removed <= LibVersion then + {$if declared(_EVP_aria_128_ecb)} + EVP_aria_128_ecb := @_EVP_aria_128_ecb + {$else} + {$IF declared(ERR_EVP_aria_128_ecb)} + EVP_aria_128_ecb := @ERR_EVP_aria_128_ecb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_128_ecb) and Assigned(AFailed) then + AFailed.Add('EVP_aria_128_ecb'); + end; + + + if not assigned(EVP_aria_128_cbc) then + begin + {$if declared(EVP_aria_128_cbc_introduced)} + if LibVersion < EVP_aria_128_cbc_introduced then + {$if declared(FC_EVP_aria_128_cbc)} + EVP_aria_128_cbc := @FC_EVP_aria_128_cbc + {$else} + EVP_aria_128_cbc := @ERR_EVP_aria_128_cbc + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_128_cbc_removed)} + if EVP_aria_128_cbc_removed <= LibVersion then + {$if declared(_EVP_aria_128_cbc)} + EVP_aria_128_cbc := @_EVP_aria_128_cbc + {$else} + {$IF declared(ERR_EVP_aria_128_cbc)} + EVP_aria_128_cbc := @ERR_EVP_aria_128_cbc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_128_cbc) and Assigned(AFailed) then + AFailed.Add('EVP_aria_128_cbc'); + end; + + + if not assigned(EVP_aria_128_cfb1) then + begin + {$if declared(EVP_aria_128_cfb1_introduced)} + if LibVersion < EVP_aria_128_cfb1_introduced then + {$if declared(FC_EVP_aria_128_cfb1)} + EVP_aria_128_cfb1 := @FC_EVP_aria_128_cfb1 + {$else} + EVP_aria_128_cfb1 := @ERR_EVP_aria_128_cfb1 + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_128_cfb1_removed)} + if EVP_aria_128_cfb1_removed <= LibVersion then + {$if declared(_EVP_aria_128_cfb1)} + EVP_aria_128_cfb1 := @_EVP_aria_128_cfb1 + {$else} + {$IF declared(ERR_EVP_aria_128_cfb1)} + EVP_aria_128_cfb1 := @ERR_EVP_aria_128_cfb1 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_128_cfb1) and Assigned(AFailed) then + AFailed.Add('EVP_aria_128_cfb1'); + end; + + + if not assigned(EVP_aria_128_cfb8) then + begin + {$if declared(EVP_aria_128_cfb8_introduced)} + if LibVersion < EVP_aria_128_cfb8_introduced then + {$if declared(FC_EVP_aria_128_cfb8)} + EVP_aria_128_cfb8 := @FC_EVP_aria_128_cfb8 + {$else} + EVP_aria_128_cfb8 := @ERR_EVP_aria_128_cfb8 + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_128_cfb8_removed)} + if EVP_aria_128_cfb8_removed <= LibVersion then + {$if declared(_EVP_aria_128_cfb8)} + EVP_aria_128_cfb8 := @_EVP_aria_128_cfb8 + {$else} + {$IF declared(ERR_EVP_aria_128_cfb8)} + EVP_aria_128_cfb8 := @ERR_EVP_aria_128_cfb8 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_128_cfb8) and Assigned(AFailed) then + AFailed.Add('EVP_aria_128_cfb8'); + end; + + + if not assigned(EVP_aria_128_cfb128) then + begin + {$if declared(EVP_aria_128_cfb128_introduced)} + if LibVersion < EVP_aria_128_cfb128_introduced then + {$if declared(FC_EVP_aria_128_cfb128)} + EVP_aria_128_cfb128 := @FC_EVP_aria_128_cfb128 + {$else} + EVP_aria_128_cfb128 := @ERR_EVP_aria_128_cfb128 + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_128_cfb128_removed)} + if EVP_aria_128_cfb128_removed <= LibVersion then + {$if declared(_EVP_aria_128_cfb128)} + EVP_aria_128_cfb128 := @_EVP_aria_128_cfb128 + {$else} + {$IF declared(ERR_EVP_aria_128_cfb128)} + EVP_aria_128_cfb128 := @ERR_EVP_aria_128_cfb128 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_128_cfb128) and Assigned(AFailed) then + AFailed.Add('EVP_aria_128_cfb128'); + end; + + + if not assigned(EVP_aria_128_ctr) then + begin + {$if declared(EVP_aria_128_ctr_introduced)} + if LibVersion < EVP_aria_128_ctr_introduced then + {$if declared(FC_EVP_aria_128_ctr)} + EVP_aria_128_ctr := @FC_EVP_aria_128_ctr + {$else} + EVP_aria_128_ctr := @ERR_EVP_aria_128_ctr + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_128_ctr_removed)} + if EVP_aria_128_ctr_removed <= LibVersion then + {$if declared(_EVP_aria_128_ctr)} + EVP_aria_128_ctr := @_EVP_aria_128_ctr + {$else} + {$IF declared(ERR_EVP_aria_128_ctr)} + EVP_aria_128_ctr := @ERR_EVP_aria_128_ctr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_128_ctr) and Assigned(AFailed) then + AFailed.Add('EVP_aria_128_ctr'); + end; + + + if not assigned(EVP_aria_128_ofb) then + begin + {$if declared(EVP_aria_128_ofb_introduced)} + if LibVersion < EVP_aria_128_ofb_introduced then + {$if declared(FC_EVP_aria_128_ofb)} + EVP_aria_128_ofb := @FC_EVP_aria_128_ofb + {$else} + EVP_aria_128_ofb := @ERR_EVP_aria_128_ofb + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_128_ofb_removed)} + if EVP_aria_128_ofb_removed <= LibVersion then + {$if declared(_EVP_aria_128_ofb)} + EVP_aria_128_ofb := @_EVP_aria_128_ofb + {$else} + {$IF declared(ERR_EVP_aria_128_ofb)} + EVP_aria_128_ofb := @ERR_EVP_aria_128_ofb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_128_ofb) and Assigned(AFailed) then + AFailed.Add('EVP_aria_128_ofb'); + end; + + + if not assigned(EVP_aria_128_gcm) then + begin + {$if declared(EVP_aria_128_gcm_introduced)} + if LibVersion < EVP_aria_128_gcm_introduced then + {$if declared(FC_EVP_aria_128_gcm)} + EVP_aria_128_gcm := @FC_EVP_aria_128_gcm + {$else} + EVP_aria_128_gcm := @ERR_EVP_aria_128_gcm + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_128_gcm_removed)} + if EVP_aria_128_gcm_removed <= LibVersion then + {$if declared(_EVP_aria_128_gcm)} + EVP_aria_128_gcm := @_EVP_aria_128_gcm + {$else} + {$IF declared(ERR_EVP_aria_128_gcm)} + EVP_aria_128_gcm := @ERR_EVP_aria_128_gcm + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_128_gcm) and Assigned(AFailed) then + AFailed.Add('EVP_aria_128_gcm'); + end; + + + if not assigned(EVP_aria_128_ccm) then + begin + {$if declared(EVP_aria_128_ccm_introduced)} + if LibVersion < EVP_aria_128_ccm_introduced then + {$if declared(FC_EVP_aria_128_ccm)} + EVP_aria_128_ccm := @FC_EVP_aria_128_ccm + {$else} + EVP_aria_128_ccm := @ERR_EVP_aria_128_ccm + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_128_ccm_removed)} + if EVP_aria_128_ccm_removed <= LibVersion then + {$if declared(_EVP_aria_128_ccm)} + EVP_aria_128_ccm := @_EVP_aria_128_ccm + {$else} + {$IF declared(ERR_EVP_aria_128_ccm)} + EVP_aria_128_ccm := @ERR_EVP_aria_128_ccm + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_128_ccm) and Assigned(AFailed) then + AFailed.Add('EVP_aria_128_ccm'); + end; + + + if not assigned(EVP_aria_192_ecb) then + begin + {$if declared(EVP_aria_192_ecb_introduced)} + if LibVersion < EVP_aria_192_ecb_introduced then + {$if declared(FC_EVP_aria_192_ecb)} + EVP_aria_192_ecb := @FC_EVP_aria_192_ecb + {$else} + EVP_aria_192_ecb := @ERR_EVP_aria_192_ecb + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_192_ecb_removed)} + if EVP_aria_192_ecb_removed <= LibVersion then + {$if declared(_EVP_aria_192_ecb)} + EVP_aria_192_ecb := @_EVP_aria_192_ecb + {$else} + {$IF declared(ERR_EVP_aria_192_ecb)} + EVP_aria_192_ecb := @ERR_EVP_aria_192_ecb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_192_ecb) and Assigned(AFailed) then + AFailed.Add('EVP_aria_192_ecb'); + end; + + + if not assigned(EVP_aria_192_cbc) then + begin + {$if declared(EVP_aria_192_cbc_introduced)} + if LibVersion < EVP_aria_192_cbc_introduced then + {$if declared(FC_EVP_aria_192_cbc)} + EVP_aria_192_cbc := @FC_EVP_aria_192_cbc + {$else} + EVP_aria_192_cbc := @ERR_EVP_aria_192_cbc + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_192_cbc_removed)} + if EVP_aria_192_cbc_removed <= LibVersion then + {$if declared(_EVP_aria_192_cbc)} + EVP_aria_192_cbc := @_EVP_aria_192_cbc + {$else} + {$IF declared(ERR_EVP_aria_192_cbc)} + EVP_aria_192_cbc := @ERR_EVP_aria_192_cbc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_192_cbc) and Assigned(AFailed) then + AFailed.Add('EVP_aria_192_cbc'); + end; + + + if not assigned(EVP_aria_192_cfb1) then + begin + {$if declared(EVP_aria_192_cfb1_introduced)} + if LibVersion < EVP_aria_192_cfb1_introduced then + {$if declared(FC_EVP_aria_192_cfb1)} + EVP_aria_192_cfb1 := @FC_EVP_aria_192_cfb1 + {$else} + EVP_aria_192_cfb1 := @ERR_EVP_aria_192_cfb1 + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_192_cfb1_removed)} + if EVP_aria_192_cfb1_removed <= LibVersion then + {$if declared(_EVP_aria_192_cfb1)} + EVP_aria_192_cfb1 := @_EVP_aria_192_cfb1 + {$else} + {$IF declared(ERR_EVP_aria_192_cfb1)} + EVP_aria_192_cfb1 := @ERR_EVP_aria_192_cfb1 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_192_cfb1) and Assigned(AFailed) then + AFailed.Add('EVP_aria_192_cfb1'); + end; + + + if not assigned(EVP_aria_192_cfb8) then + begin + {$if declared(EVP_aria_192_cfb8_introduced)} + if LibVersion < EVP_aria_192_cfb8_introduced then + {$if declared(FC_EVP_aria_192_cfb8)} + EVP_aria_192_cfb8 := @FC_EVP_aria_192_cfb8 + {$else} + EVP_aria_192_cfb8 := @ERR_EVP_aria_192_cfb8 + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_192_cfb8_removed)} + if EVP_aria_192_cfb8_removed <= LibVersion then + {$if declared(_EVP_aria_192_cfb8)} + EVP_aria_192_cfb8 := @_EVP_aria_192_cfb8 + {$else} + {$IF declared(ERR_EVP_aria_192_cfb8)} + EVP_aria_192_cfb8 := @ERR_EVP_aria_192_cfb8 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_192_cfb8) and Assigned(AFailed) then + AFailed.Add('EVP_aria_192_cfb8'); + end; + + + if not assigned(EVP_aria_192_cfb128) then + begin + {$if declared(EVP_aria_192_cfb128_introduced)} + if LibVersion < EVP_aria_192_cfb128_introduced then + {$if declared(FC_EVP_aria_192_cfb128)} + EVP_aria_192_cfb128 := @FC_EVP_aria_192_cfb128 + {$else} + EVP_aria_192_cfb128 := @ERR_EVP_aria_192_cfb128 + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_192_cfb128_removed)} + if EVP_aria_192_cfb128_removed <= LibVersion then + {$if declared(_EVP_aria_192_cfb128)} + EVP_aria_192_cfb128 := @_EVP_aria_192_cfb128 + {$else} + {$IF declared(ERR_EVP_aria_192_cfb128)} + EVP_aria_192_cfb128 := @ERR_EVP_aria_192_cfb128 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_192_cfb128) and Assigned(AFailed) then + AFailed.Add('EVP_aria_192_cfb128'); + end; + + + if not assigned(EVP_aria_192_ctr) then + begin + {$if declared(EVP_aria_192_ctr_introduced)} + if LibVersion < EVP_aria_192_ctr_introduced then + {$if declared(FC_EVP_aria_192_ctr)} + EVP_aria_192_ctr := @FC_EVP_aria_192_ctr + {$else} + EVP_aria_192_ctr := @ERR_EVP_aria_192_ctr + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_192_ctr_removed)} + if EVP_aria_192_ctr_removed <= LibVersion then + {$if declared(_EVP_aria_192_ctr)} + EVP_aria_192_ctr := @_EVP_aria_192_ctr + {$else} + {$IF declared(ERR_EVP_aria_192_ctr)} + EVP_aria_192_ctr := @ERR_EVP_aria_192_ctr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_192_ctr) and Assigned(AFailed) then + AFailed.Add('EVP_aria_192_ctr'); + end; + + + if not assigned(EVP_aria_192_ofb) then + begin + {$if declared(EVP_aria_192_ofb_introduced)} + if LibVersion < EVP_aria_192_ofb_introduced then + {$if declared(FC_EVP_aria_192_ofb)} + EVP_aria_192_ofb := @FC_EVP_aria_192_ofb + {$else} + EVP_aria_192_ofb := @ERR_EVP_aria_192_ofb + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_192_ofb_removed)} + if EVP_aria_192_ofb_removed <= LibVersion then + {$if declared(_EVP_aria_192_ofb)} + EVP_aria_192_ofb := @_EVP_aria_192_ofb + {$else} + {$IF declared(ERR_EVP_aria_192_ofb)} + EVP_aria_192_ofb := @ERR_EVP_aria_192_ofb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_192_ofb) and Assigned(AFailed) then + AFailed.Add('EVP_aria_192_ofb'); + end; + + + if not assigned(EVP_aria_192_gcm) then + begin + {$if declared(EVP_aria_192_gcm_introduced)} + if LibVersion < EVP_aria_192_gcm_introduced then + {$if declared(FC_EVP_aria_192_gcm)} + EVP_aria_192_gcm := @FC_EVP_aria_192_gcm + {$else} + EVP_aria_192_gcm := @ERR_EVP_aria_192_gcm + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_192_gcm_removed)} + if EVP_aria_192_gcm_removed <= LibVersion then + {$if declared(_EVP_aria_192_gcm)} + EVP_aria_192_gcm := @_EVP_aria_192_gcm + {$else} + {$IF declared(ERR_EVP_aria_192_gcm)} + EVP_aria_192_gcm := @ERR_EVP_aria_192_gcm + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_192_gcm) and Assigned(AFailed) then + AFailed.Add('EVP_aria_192_gcm'); + end; + + + if not assigned(EVP_aria_192_ccm) then + begin + {$if declared(EVP_aria_192_ccm_introduced)} + if LibVersion < EVP_aria_192_ccm_introduced then + {$if declared(FC_EVP_aria_192_ccm)} + EVP_aria_192_ccm := @FC_EVP_aria_192_ccm + {$else} + EVP_aria_192_ccm := @ERR_EVP_aria_192_ccm + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_192_ccm_removed)} + if EVP_aria_192_ccm_removed <= LibVersion then + {$if declared(_EVP_aria_192_ccm)} + EVP_aria_192_ccm := @_EVP_aria_192_ccm + {$else} + {$IF declared(ERR_EVP_aria_192_ccm)} + EVP_aria_192_ccm := @ERR_EVP_aria_192_ccm + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_192_ccm) and Assigned(AFailed) then + AFailed.Add('EVP_aria_192_ccm'); + end; + + + if not assigned(EVP_aria_256_ecb) then + begin + {$if declared(EVP_aria_256_ecb_introduced)} + if LibVersion < EVP_aria_256_ecb_introduced then + {$if declared(FC_EVP_aria_256_ecb)} + EVP_aria_256_ecb := @FC_EVP_aria_256_ecb + {$else} + EVP_aria_256_ecb := @ERR_EVP_aria_256_ecb + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_256_ecb_removed)} + if EVP_aria_256_ecb_removed <= LibVersion then + {$if declared(_EVP_aria_256_ecb)} + EVP_aria_256_ecb := @_EVP_aria_256_ecb + {$else} + {$IF declared(ERR_EVP_aria_256_ecb)} + EVP_aria_256_ecb := @ERR_EVP_aria_256_ecb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_256_ecb) and Assigned(AFailed) then + AFailed.Add('EVP_aria_256_ecb'); + end; + + + if not assigned(EVP_aria_256_cbc) then + begin + {$if declared(EVP_aria_256_cbc_introduced)} + if LibVersion < EVP_aria_256_cbc_introduced then + {$if declared(FC_EVP_aria_256_cbc)} + EVP_aria_256_cbc := @FC_EVP_aria_256_cbc + {$else} + EVP_aria_256_cbc := @ERR_EVP_aria_256_cbc + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_256_cbc_removed)} + if EVP_aria_256_cbc_removed <= LibVersion then + {$if declared(_EVP_aria_256_cbc)} + EVP_aria_256_cbc := @_EVP_aria_256_cbc + {$else} + {$IF declared(ERR_EVP_aria_256_cbc)} + EVP_aria_256_cbc := @ERR_EVP_aria_256_cbc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_256_cbc) and Assigned(AFailed) then + AFailed.Add('EVP_aria_256_cbc'); + end; + + + if not assigned(EVP_aria_256_cfb1) then + begin + {$if declared(EVP_aria_256_cfb1_introduced)} + if LibVersion < EVP_aria_256_cfb1_introduced then + {$if declared(FC_EVP_aria_256_cfb1)} + EVP_aria_256_cfb1 := @FC_EVP_aria_256_cfb1 + {$else} + EVP_aria_256_cfb1 := @ERR_EVP_aria_256_cfb1 + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_256_cfb1_removed)} + if EVP_aria_256_cfb1_removed <= LibVersion then + {$if declared(_EVP_aria_256_cfb1)} + EVP_aria_256_cfb1 := @_EVP_aria_256_cfb1 + {$else} + {$IF declared(ERR_EVP_aria_256_cfb1)} + EVP_aria_256_cfb1 := @ERR_EVP_aria_256_cfb1 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_256_cfb1) and Assigned(AFailed) then + AFailed.Add('EVP_aria_256_cfb1'); + end; + + + if not assigned(EVP_aria_256_cfb8) then + begin + {$if declared(EVP_aria_256_cfb8_introduced)} + if LibVersion < EVP_aria_256_cfb8_introduced then + {$if declared(FC_EVP_aria_256_cfb8)} + EVP_aria_256_cfb8 := @FC_EVP_aria_256_cfb8 + {$else} + EVP_aria_256_cfb8 := @ERR_EVP_aria_256_cfb8 + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_256_cfb8_removed)} + if EVP_aria_256_cfb8_removed <= LibVersion then + {$if declared(_EVP_aria_256_cfb8)} + EVP_aria_256_cfb8 := @_EVP_aria_256_cfb8 + {$else} + {$IF declared(ERR_EVP_aria_256_cfb8)} + EVP_aria_256_cfb8 := @ERR_EVP_aria_256_cfb8 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_256_cfb8) and Assigned(AFailed) then + AFailed.Add('EVP_aria_256_cfb8'); + end; + + + if not assigned(EVP_aria_256_cfb128) then + begin + {$if declared(EVP_aria_256_cfb128_introduced)} + if LibVersion < EVP_aria_256_cfb128_introduced then + {$if declared(FC_EVP_aria_256_cfb128)} + EVP_aria_256_cfb128 := @FC_EVP_aria_256_cfb128 + {$else} + EVP_aria_256_cfb128 := @ERR_EVP_aria_256_cfb128 + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_256_cfb128_removed)} + if EVP_aria_256_cfb128_removed <= LibVersion then + {$if declared(_EVP_aria_256_cfb128)} + EVP_aria_256_cfb128 := @_EVP_aria_256_cfb128 + {$else} + {$IF declared(ERR_EVP_aria_256_cfb128)} + EVP_aria_256_cfb128 := @ERR_EVP_aria_256_cfb128 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_256_cfb128) and Assigned(AFailed) then + AFailed.Add('EVP_aria_256_cfb128'); + end; + + + if not assigned(EVP_aria_256_ctr) then + begin + {$if declared(EVP_aria_256_ctr_introduced)} + if LibVersion < EVP_aria_256_ctr_introduced then + {$if declared(FC_EVP_aria_256_ctr)} + EVP_aria_256_ctr := @FC_EVP_aria_256_ctr + {$else} + EVP_aria_256_ctr := @ERR_EVP_aria_256_ctr + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_256_ctr_removed)} + if EVP_aria_256_ctr_removed <= LibVersion then + {$if declared(_EVP_aria_256_ctr)} + EVP_aria_256_ctr := @_EVP_aria_256_ctr + {$else} + {$IF declared(ERR_EVP_aria_256_ctr)} + EVP_aria_256_ctr := @ERR_EVP_aria_256_ctr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_256_ctr) and Assigned(AFailed) then + AFailed.Add('EVP_aria_256_ctr'); + end; + + + if not assigned(EVP_aria_256_ofb) then + begin + {$if declared(EVP_aria_256_ofb_introduced)} + if LibVersion < EVP_aria_256_ofb_introduced then + {$if declared(FC_EVP_aria_256_ofb)} + EVP_aria_256_ofb := @FC_EVP_aria_256_ofb + {$else} + EVP_aria_256_ofb := @ERR_EVP_aria_256_ofb + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_256_ofb_removed)} + if EVP_aria_256_ofb_removed <= LibVersion then + {$if declared(_EVP_aria_256_ofb)} + EVP_aria_256_ofb := @_EVP_aria_256_ofb + {$else} + {$IF declared(ERR_EVP_aria_256_ofb)} + EVP_aria_256_ofb := @ERR_EVP_aria_256_ofb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_256_ofb) and Assigned(AFailed) then + AFailed.Add('EVP_aria_256_ofb'); + end; + + + if not assigned(EVP_aria_256_gcm) then + begin + {$if declared(EVP_aria_256_gcm_introduced)} + if LibVersion < EVP_aria_256_gcm_introduced then + {$if declared(FC_EVP_aria_256_gcm)} + EVP_aria_256_gcm := @FC_EVP_aria_256_gcm + {$else} + EVP_aria_256_gcm := @ERR_EVP_aria_256_gcm + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_256_gcm_removed)} + if EVP_aria_256_gcm_removed <= LibVersion then + {$if declared(_EVP_aria_256_gcm)} + EVP_aria_256_gcm := @_EVP_aria_256_gcm + {$else} + {$IF declared(ERR_EVP_aria_256_gcm)} + EVP_aria_256_gcm := @ERR_EVP_aria_256_gcm + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_256_gcm) and Assigned(AFailed) then + AFailed.Add('EVP_aria_256_gcm'); + end; + + + if not assigned(EVP_aria_256_ccm) then + begin + {$if declared(EVP_aria_256_ccm_introduced)} + if LibVersion < EVP_aria_256_ccm_introduced then + {$if declared(FC_EVP_aria_256_ccm)} + EVP_aria_256_ccm := @FC_EVP_aria_256_ccm + {$else} + EVP_aria_256_ccm := @ERR_EVP_aria_256_ccm + {$ifend} + else + {$ifend} + {$if declared(EVP_aria_256_ccm_removed)} + if EVP_aria_256_ccm_removed <= LibVersion then + {$if declared(_EVP_aria_256_ccm)} + EVP_aria_256_ccm := @_EVP_aria_256_ccm + {$else} + {$IF declared(ERR_EVP_aria_256_ccm)} + EVP_aria_256_ccm := @ERR_EVP_aria_256_ccm + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_aria_256_ccm) and Assigned(AFailed) then + AFailed.Add('EVP_aria_256_ccm'); + end; + + + if not assigned(EVP_camellia_128_ctr) then + begin + {$if declared(EVP_camellia_128_ctr_introduced)} + if LibVersion < EVP_camellia_128_ctr_introduced then + {$if declared(FC_EVP_camellia_128_ctr)} + EVP_camellia_128_ctr := @FC_EVP_camellia_128_ctr + {$else} + EVP_camellia_128_ctr := @ERR_EVP_camellia_128_ctr + {$ifend} + else + {$ifend} + {$if declared(EVP_camellia_128_ctr_removed)} + if EVP_camellia_128_ctr_removed <= LibVersion then + {$if declared(_EVP_camellia_128_ctr)} + EVP_camellia_128_ctr := @_EVP_camellia_128_ctr + {$else} + {$IF declared(ERR_EVP_camellia_128_ctr)} + EVP_camellia_128_ctr := @ERR_EVP_camellia_128_ctr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_camellia_128_ctr) and Assigned(AFailed) then + AFailed.Add('EVP_camellia_128_ctr'); + end; + + + if not assigned(EVP_camellia_192_ctr) then + begin + {$if declared(EVP_camellia_192_ctr_introduced)} + if LibVersion < EVP_camellia_192_ctr_introduced then + {$if declared(FC_EVP_camellia_192_ctr)} + EVP_camellia_192_ctr := @FC_EVP_camellia_192_ctr + {$else} + EVP_camellia_192_ctr := @ERR_EVP_camellia_192_ctr + {$ifend} + else + {$ifend} + {$if declared(EVP_camellia_192_ctr_removed)} + if EVP_camellia_192_ctr_removed <= LibVersion then + {$if declared(_EVP_camellia_192_ctr)} + EVP_camellia_192_ctr := @_EVP_camellia_192_ctr + {$else} + {$IF declared(ERR_EVP_camellia_192_ctr)} + EVP_camellia_192_ctr := @ERR_EVP_camellia_192_ctr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_camellia_192_ctr) and Assigned(AFailed) then + AFailed.Add('EVP_camellia_192_ctr'); + end; + + + if not assigned(EVP_camellia_256_ctr) then + begin + {$if declared(EVP_camellia_256_ctr_introduced)} + if LibVersion < EVP_camellia_256_ctr_introduced then + {$if declared(FC_EVP_camellia_256_ctr)} + EVP_camellia_256_ctr := @FC_EVP_camellia_256_ctr + {$else} + EVP_camellia_256_ctr := @ERR_EVP_camellia_256_ctr + {$ifend} + else + {$ifend} + {$if declared(EVP_camellia_256_ctr_removed)} + if EVP_camellia_256_ctr_removed <= LibVersion then + {$if declared(_EVP_camellia_256_ctr)} + EVP_camellia_256_ctr := @_EVP_camellia_256_ctr + {$else} + {$IF declared(ERR_EVP_camellia_256_ctr)} + EVP_camellia_256_ctr := @ERR_EVP_camellia_256_ctr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_camellia_256_ctr) and Assigned(AFailed) then + AFailed.Add('EVP_camellia_256_ctr'); + end; + + + if not assigned(EVP_chacha20) then + begin + {$if declared(EVP_chacha20_introduced)} + if LibVersion < EVP_chacha20_introduced then + {$if declared(FC_EVP_chacha20)} + EVP_chacha20 := @FC_EVP_chacha20 + {$else} + EVP_chacha20 := @ERR_EVP_chacha20 + {$ifend} + else + {$ifend} + {$if declared(EVP_chacha20_removed)} + if EVP_chacha20_removed <= LibVersion then + {$if declared(_EVP_chacha20)} + EVP_chacha20 := @_EVP_chacha20 + {$else} + {$IF declared(ERR_EVP_chacha20)} + EVP_chacha20 := @ERR_EVP_chacha20 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_chacha20) and Assigned(AFailed) then + AFailed.Add('EVP_chacha20'); + end; + + + if not assigned(EVP_chacha20_poly1305) then + begin + {$if declared(EVP_chacha20_poly1305_introduced)} + if LibVersion < EVP_chacha20_poly1305_introduced then + {$if declared(FC_EVP_chacha20_poly1305)} + EVP_chacha20_poly1305 := @FC_EVP_chacha20_poly1305 + {$else} + EVP_chacha20_poly1305 := @ERR_EVP_chacha20_poly1305 + {$ifend} + else + {$ifend} + {$if declared(EVP_chacha20_poly1305_removed)} + if EVP_chacha20_poly1305_removed <= LibVersion then + {$if declared(_EVP_chacha20_poly1305)} + EVP_chacha20_poly1305 := @_EVP_chacha20_poly1305 + {$else} + {$IF declared(ERR_EVP_chacha20_poly1305)} + EVP_chacha20_poly1305 := @ERR_EVP_chacha20_poly1305 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_chacha20_poly1305) and Assigned(AFailed) then + AFailed.Add('EVP_chacha20_poly1305'); + end; + + + if not assigned(EVP_sm4_ecb) then + begin + {$if declared(EVP_sm4_ecb_introduced)} + if LibVersion < EVP_sm4_ecb_introduced then + {$if declared(FC_EVP_sm4_ecb)} + EVP_sm4_ecb := @FC_EVP_sm4_ecb + {$else} + EVP_sm4_ecb := @ERR_EVP_sm4_ecb + {$ifend} + else + {$ifend} + {$if declared(EVP_sm4_ecb_removed)} + if EVP_sm4_ecb_removed <= LibVersion then + {$if declared(_EVP_sm4_ecb)} + EVP_sm4_ecb := @_EVP_sm4_ecb + {$else} + {$IF declared(ERR_EVP_sm4_ecb)} + EVP_sm4_ecb := @ERR_EVP_sm4_ecb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_sm4_ecb) and Assigned(AFailed) then + AFailed.Add('EVP_sm4_ecb'); + end; + + + if not assigned(EVP_sm4_cbc) then + begin + {$if declared(EVP_sm4_cbc_introduced)} + if LibVersion < EVP_sm4_cbc_introduced then + {$if declared(FC_EVP_sm4_cbc)} + EVP_sm4_cbc := @FC_EVP_sm4_cbc + {$else} + EVP_sm4_cbc := @ERR_EVP_sm4_cbc + {$ifend} + else + {$ifend} + {$if declared(EVP_sm4_cbc_removed)} + if EVP_sm4_cbc_removed <= LibVersion then + {$if declared(_EVP_sm4_cbc)} + EVP_sm4_cbc := @_EVP_sm4_cbc + {$else} + {$IF declared(ERR_EVP_sm4_cbc)} + EVP_sm4_cbc := @ERR_EVP_sm4_cbc + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_sm4_cbc) and Assigned(AFailed) then + AFailed.Add('EVP_sm4_cbc'); + end; + + + if not assigned(EVP_sm4_cfb128) then + begin + {$if declared(EVP_sm4_cfb128_introduced)} + if LibVersion < EVP_sm4_cfb128_introduced then + {$if declared(FC_EVP_sm4_cfb128)} + EVP_sm4_cfb128 := @FC_EVP_sm4_cfb128 + {$else} + EVP_sm4_cfb128 := @ERR_EVP_sm4_cfb128 + {$ifend} + else + {$ifend} + {$if declared(EVP_sm4_cfb128_removed)} + if EVP_sm4_cfb128_removed <= LibVersion then + {$if declared(_EVP_sm4_cfb128)} + EVP_sm4_cfb128 := @_EVP_sm4_cfb128 + {$else} + {$IF declared(ERR_EVP_sm4_cfb128)} + EVP_sm4_cfb128 := @ERR_EVP_sm4_cfb128 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_sm4_cfb128) and Assigned(AFailed) then + AFailed.Add('EVP_sm4_cfb128'); + end; + + + if not assigned(EVP_sm4_ofb) then + begin + {$if declared(EVP_sm4_ofb_introduced)} + if LibVersion < EVP_sm4_ofb_introduced then + {$if declared(FC_EVP_sm4_ofb)} + EVP_sm4_ofb := @FC_EVP_sm4_ofb + {$else} + EVP_sm4_ofb := @ERR_EVP_sm4_ofb + {$ifend} + else + {$ifend} + {$if declared(EVP_sm4_ofb_removed)} + if EVP_sm4_ofb_removed <= LibVersion then + {$if declared(_EVP_sm4_ofb)} + EVP_sm4_ofb := @_EVP_sm4_ofb + {$else} + {$IF declared(ERR_EVP_sm4_ofb)} + EVP_sm4_ofb := @ERR_EVP_sm4_ofb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_sm4_ofb) and Assigned(AFailed) then + AFailed.Add('EVP_sm4_ofb'); + end; + + + if not assigned(EVP_sm4_ctr) then + begin + {$if declared(EVP_sm4_ctr_introduced)} + if LibVersion < EVP_sm4_ctr_introduced then + {$if declared(FC_EVP_sm4_ctr)} + EVP_sm4_ctr := @FC_EVP_sm4_ctr + {$else} + EVP_sm4_ctr := @ERR_EVP_sm4_ctr + {$ifend} + else + {$ifend} + {$if declared(EVP_sm4_ctr_removed)} + if EVP_sm4_ctr_removed <= LibVersion then + {$if declared(_EVP_sm4_ctr)} + EVP_sm4_ctr := @_EVP_sm4_ctr + {$else} + {$IF declared(ERR_EVP_sm4_ctr)} + EVP_sm4_ctr := @ERR_EVP_sm4_ctr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_sm4_ctr) and Assigned(AFailed) then + AFailed.Add('EVP_sm4_ctr'); + end; + + + if not assigned(EVP_PKEY_id) then + begin + {$if declared(EVP_PKEY_id_introduced)} + if LibVersion < EVP_PKEY_id_introduced then + {$if declared(FC_EVP_PKEY_id)} + EVP_PKEY_id := @FC_EVP_PKEY_id + {$else} + EVP_PKEY_id := @ERR_EVP_PKEY_id + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_id_removed)} + if EVP_PKEY_id_removed <= LibVersion then + {$if declared(_EVP_PKEY_id)} + EVP_PKEY_id := @_EVP_PKEY_id + {$else} + {$IF declared(ERR_EVP_PKEY_id)} + EVP_PKEY_id := @ERR_EVP_PKEY_id + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_id) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_id'); + end; + + + if not assigned(EVP_PKEY_base_id) then + begin + {$if declared(EVP_PKEY_base_id_introduced)} + if LibVersion < EVP_PKEY_base_id_introduced then + {$if declared(FC_EVP_PKEY_base_id)} + EVP_PKEY_base_id := @FC_EVP_PKEY_base_id + {$else} + EVP_PKEY_base_id := @ERR_EVP_PKEY_base_id + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_base_id_removed)} + if EVP_PKEY_base_id_removed <= LibVersion then + {$if declared(_EVP_PKEY_base_id)} + EVP_PKEY_base_id := @_EVP_PKEY_base_id + {$else} + {$IF declared(ERR_EVP_PKEY_base_id)} + EVP_PKEY_base_id := @ERR_EVP_PKEY_base_id + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_base_id) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_base_id'); + end; + + + if not assigned(EVP_PKEY_bits) then + begin + {$if declared(EVP_PKEY_bits_introduced)} + if LibVersion < EVP_PKEY_bits_introduced then + {$if declared(FC_EVP_PKEY_bits)} + EVP_PKEY_bits := @FC_EVP_PKEY_bits + {$else} + EVP_PKEY_bits := @ERR_EVP_PKEY_bits + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_bits_removed)} + if EVP_PKEY_bits_removed <= LibVersion then + {$if declared(_EVP_PKEY_bits)} + EVP_PKEY_bits := @_EVP_PKEY_bits + {$else} + {$IF declared(ERR_EVP_PKEY_bits)} + EVP_PKEY_bits := @ERR_EVP_PKEY_bits + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_bits) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_bits'); + end; + + + if not assigned(EVP_PKEY_security_bits) then + begin + {$if declared(EVP_PKEY_security_bits_introduced)} + if LibVersion < EVP_PKEY_security_bits_introduced then + {$if declared(FC_EVP_PKEY_security_bits)} + EVP_PKEY_security_bits := @FC_EVP_PKEY_security_bits + {$else} + EVP_PKEY_security_bits := @ERR_EVP_PKEY_security_bits + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_security_bits_removed)} + if EVP_PKEY_security_bits_removed <= LibVersion then + {$if declared(_EVP_PKEY_security_bits)} + EVP_PKEY_security_bits := @_EVP_PKEY_security_bits + {$else} + {$IF declared(ERR_EVP_PKEY_security_bits)} + EVP_PKEY_security_bits := @ERR_EVP_PKEY_security_bits + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_security_bits) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_security_bits'); + end; + + + if not assigned(EVP_PKEY_size) then + begin + {$if declared(EVP_PKEY_size_introduced)} + if LibVersion < EVP_PKEY_size_introduced then + {$if declared(FC_EVP_PKEY_size)} + EVP_PKEY_size := @FC_EVP_PKEY_size + {$else} + EVP_PKEY_size := @ERR_EVP_PKEY_size + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_size_removed)} + if EVP_PKEY_size_removed <= LibVersion then + {$if declared(_EVP_PKEY_size)} + EVP_PKEY_size := @_EVP_PKEY_size + {$else} + {$IF declared(ERR_EVP_PKEY_size)} + EVP_PKEY_size := @ERR_EVP_PKEY_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_size) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_size'); + end; + + + if not assigned(EVP_PKEY_set_alias_type) then + begin + {$if declared(EVP_PKEY_set_alias_type_introduced)} + if LibVersion < EVP_PKEY_set_alias_type_introduced then + {$if declared(FC_EVP_PKEY_set_alias_type)} + EVP_PKEY_set_alias_type := @FC_EVP_PKEY_set_alias_type + {$else} + EVP_PKEY_set_alias_type := @ERR_EVP_PKEY_set_alias_type + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_set_alias_type_removed)} + if EVP_PKEY_set_alias_type_removed <= LibVersion then + {$if declared(_EVP_PKEY_set_alias_type)} + EVP_PKEY_set_alias_type := @_EVP_PKEY_set_alias_type + {$else} + {$IF declared(ERR_EVP_PKEY_set_alias_type)} + EVP_PKEY_set_alias_type := @ERR_EVP_PKEY_set_alias_type + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_set_alias_type) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_set_alias_type'); + end; + + + if not assigned(EVP_PKEY_set1_engine) then + begin + {$if declared(EVP_PKEY_set1_engine_introduced)} + if LibVersion < EVP_PKEY_set1_engine_introduced then + {$if declared(FC_EVP_PKEY_set1_engine)} + EVP_PKEY_set1_engine := @FC_EVP_PKEY_set1_engine + {$else} + EVP_PKEY_set1_engine := @ERR_EVP_PKEY_set1_engine + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_set1_engine_removed)} + if EVP_PKEY_set1_engine_removed <= LibVersion then + {$if declared(_EVP_PKEY_set1_engine)} + EVP_PKEY_set1_engine := @_EVP_PKEY_set1_engine + {$else} + {$IF declared(ERR_EVP_PKEY_set1_engine)} + EVP_PKEY_set1_engine := @ERR_EVP_PKEY_set1_engine + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_set1_engine) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_set1_engine'); + end; + + + if not assigned(EVP_PKEY_get0_engine) then + begin + {$if declared(EVP_PKEY_get0_engine_introduced)} + if LibVersion < EVP_PKEY_get0_engine_introduced then + {$if declared(FC_EVP_PKEY_get0_engine)} + EVP_PKEY_get0_engine := @FC_EVP_PKEY_get0_engine + {$else} + EVP_PKEY_get0_engine := @ERR_EVP_PKEY_get0_engine + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_get0_engine_removed)} + if EVP_PKEY_get0_engine_removed <= LibVersion then + {$if declared(_EVP_PKEY_get0_engine)} + EVP_PKEY_get0_engine := @_EVP_PKEY_get0_engine + {$else} + {$IF declared(ERR_EVP_PKEY_get0_engine)} + EVP_PKEY_get0_engine := @ERR_EVP_PKEY_get0_engine + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_get0_engine) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_get0_engine'); + end; + + + if not assigned(EVP_PKEY_get0_hmac) then + begin + {$if declared(EVP_PKEY_get0_hmac_introduced)} + if LibVersion < EVP_PKEY_get0_hmac_introduced then + {$if declared(FC_EVP_PKEY_get0_hmac)} + EVP_PKEY_get0_hmac := @FC_EVP_PKEY_get0_hmac + {$else} + EVP_PKEY_get0_hmac := @ERR_EVP_PKEY_get0_hmac + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_get0_hmac_removed)} + if EVP_PKEY_get0_hmac_removed <= LibVersion then + {$if declared(_EVP_PKEY_get0_hmac)} + EVP_PKEY_get0_hmac := @_EVP_PKEY_get0_hmac + {$else} + {$IF declared(ERR_EVP_PKEY_get0_hmac)} + EVP_PKEY_get0_hmac := @ERR_EVP_PKEY_get0_hmac + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_get0_hmac) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_get0_hmac'); + end; + + + if not assigned(EVP_PKEY_get0_poly1305) then + begin + {$if declared(EVP_PKEY_get0_poly1305_introduced)} + if LibVersion < EVP_PKEY_get0_poly1305_introduced then + {$if declared(FC_EVP_PKEY_get0_poly1305)} + EVP_PKEY_get0_poly1305 := @FC_EVP_PKEY_get0_poly1305 + {$else} + EVP_PKEY_get0_poly1305 := @ERR_EVP_PKEY_get0_poly1305 + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_get0_poly1305_removed)} + if EVP_PKEY_get0_poly1305_removed <= LibVersion then + {$if declared(_EVP_PKEY_get0_poly1305)} + EVP_PKEY_get0_poly1305 := @_EVP_PKEY_get0_poly1305 + {$else} + {$IF declared(ERR_EVP_PKEY_get0_poly1305)} + EVP_PKEY_get0_poly1305 := @ERR_EVP_PKEY_get0_poly1305 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_get0_poly1305) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_get0_poly1305'); + end; + + + if not assigned(EVP_PKEY_get0_siphash) then + begin + {$if declared(EVP_PKEY_get0_siphash_introduced)} + if LibVersion < EVP_PKEY_get0_siphash_introduced then + {$if declared(FC_EVP_PKEY_get0_siphash)} + EVP_PKEY_get0_siphash := @FC_EVP_PKEY_get0_siphash + {$else} + EVP_PKEY_get0_siphash := @ERR_EVP_PKEY_get0_siphash + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_get0_siphash_removed)} + if EVP_PKEY_get0_siphash_removed <= LibVersion then + {$if declared(_EVP_PKEY_get0_siphash)} + EVP_PKEY_get0_siphash := @_EVP_PKEY_get0_siphash + {$else} + {$IF declared(ERR_EVP_PKEY_get0_siphash)} + EVP_PKEY_get0_siphash := @ERR_EVP_PKEY_get0_siphash + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_get0_siphash) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_get0_siphash'); + end; + + + if not assigned(EVP_PKEY_get0_RSA) then + begin + {$if declared(EVP_PKEY_get0_RSA_introduced)} + if LibVersion < EVP_PKEY_get0_RSA_introduced then + {$if declared(FC_EVP_PKEY_get0_RSA)} + EVP_PKEY_get0_RSA := @FC_EVP_PKEY_get0_RSA + {$else} + EVP_PKEY_get0_RSA := @ERR_EVP_PKEY_get0_RSA + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_get0_RSA_removed)} + if EVP_PKEY_get0_RSA_removed <= LibVersion then + {$if declared(_EVP_PKEY_get0_RSA)} + EVP_PKEY_get0_RSA := @_EVP_PKEY_get0_RSA + {$else} + {$IF declared(ERR_EVP_PKEY_get0_RSA)} + EVP_PKEY_get0_RSA := @ERR_EVP_PKEY_get0_RSA + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_get0_RSA) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_get0_RSA'); + end; + + + if not assigned(EVP_PKEY_get0_DSA) then + begin + {$if declared(EVP_PKEY_get0_DSA_introduced)} + if LibVersion < EVP_PKEY_get0_DSA_introduced then + {$if declared(FC_EVP_PKEY_get0_DSA)} + EVP_PKEY_get0_DSA := @FC_EVP_PKEY_get0_DSA + {$else} + EVP_PKEY_get0_DSA := @ERR_EVP_PKEY_get0_DSA + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_get0_DSA_removed)} + if EVP_PKEY_get0_DSA_removed <= LibVersion then + {$if declared(_EVP_PKEY_get0_DSA)} + EVP_PKEY_get0_DSA := @_EVP_PKEY_get0_DSA + {$else} + {$IF declared(ERR_EVP_PKEY_get0_DSA)} + EVP_PKEY_get0_DSA := @ERR_EVP_PKEY_get0_DSA + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_get0_DSA) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_get0_DSA'); + end; + + + if not assigned(EVP_PKEY_get0_DH) then + begin + {$if declared(EVP_PKEY_get0_DH_introduced)} + if LibVersion < EVP_PKEY_get0_DH_introduced then + {$if declared(FC_EVP_PKEY_get0_DH)} + EVP_PKEY_get0_DH := @FC_EVP_PKEY_get0_DH + {$else} + EVP_PKEY_get0_DH := @ERR_EVP_PKEY_get0_DH + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_get0_DH_removed)} + if EVP_PKEY_get0_DH_removed <= LibVersion then + {$if declared(_EVP_PKEY_get0_DH)} + EVP_PKEY_get0_DH := @_EVP_PKEY_get0_DH + {$else} + {$IF declared(ERR_EVP_PKEY_get0_DH)} + EVP_PKEY_get0_DH := @ERR_EVP_PKEY_get0_DH + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_get0_DH) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_get0_DH'); + end; + + + if not assigned(EVP_PKEY_get0_EC_KEY) then + begin + {$if declared(EVP_PKEY_get0_EC_KEY_introduced)} + if LibVersion < EVP_PKEY_get0_EC_KEY_introduced then + {$if declared(FC_EVP_PKEY_get0_EC_KEY)} + EVP_PKEY_get0_EC_KEY := @FC_EVP_PKEY_get0_EC_KEY + {$else} + EVP_PKEY_get0_EC_KEY := @ERR_EVP_PKEY_get0_EC_KEY + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_get0_EC_KEY_removed)} + if EVP_PKEY_get0_EC_KEY_removed <= LibVersion then + {$if declared(_EVP_PKEY_get0_EC_KEY)} + EVP_PKEY_get0_EC_KEY := @_EVP_PKEY_get0_EC_KEY + {$else} + {$IF declared(ERR_EVP_PKEY_get0_EC_KEY)} + EVP_PKEY_get0_EC_KEY := @ERR_EVP_PKEY_get0_EC_KEY + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_get0_EC_KEY) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_get0_EC_KEY'); + end; + + + if not assigned(EVP_PKEY_up_ref) then + begin + {$if declared(EVP_PKEY_up_ref_introduced)} + if LibVersion < EVP_PKEY_up_ref_introduced then + {$if declared(FC_EVP_PKEY_up_ref)} + EVP_PKEY_up_ref := @FC_EVP_PKEY_up_ref + {$else} + EVP_PKEY_up_ref := @ERR_EVP_PKEY_up_ref + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_up_ref_removed)} + if EVP_PKEY_up_ref_removed <= LibVersion then + {$if declared(_EVP_PKEY_up_ref)} + EVP_PKEY_up_ref := @_EVP_PKEY_up_ref + {$else} + {$IF declared(ERR_EVP_PKEY_up_ref)} + EVP_PKEY_up_ref := @ERR_EVP_PKEY_up_ref + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_up_ref) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_up_ref'); + end; + + + if not assigned(EVP_PKEY_set1_tls_encodedpoint) then + begin + {$if declared(EVP_PKEY_set1_tls_encodedpoint_introduced)} + if LibVersion < EVP_PKEY_set1_tls_encodedpoint_introduced then + {$if declared(FC_EVP_PKEY_set1_tls_encodedpoint)} + EVP_PKEY_set1_tls_encodedpoint := @FC_EVP_PKEY_set1_tls_encodedpoint + {$else} + EVP_PKEY_set1_tls_encodedpoint := @ERR_EVP_PKEY_set1_tls_encodedpoint + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_set1_tls_encodedpoint_removed)} + if EVP_PKEY_set1_tls_encodedpoint_removed <= LibVersion then + {$if declared(_EVP_PKEY_set1_tls_encodedpoint)} + EVP_PKEY_set1_tls_encodedpoint := @_EVP_PKEY_set1_tls_encodedpoint + {$else} + {$IF declared(ERR_EVP_PKEY_set1_tls_encodedpoint)} + EVP_PKEY_set1_tls_encodedpoint := @ERR_EVP_PKEY_set1_tls_encodedpoint + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_set1_tls_encodedpoint) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_set1_tls_encodedpoint'); + end; + + + if not assigned(EVP_PKEY_get1_tls_encodedpoint) then + begin + {$if declared(EVP_PKEY_get1_tls_encodedpoint_introduced)} + if LibVersion < EVP_PKEY_get1_tls_encodedpoint_introduced then + {$if declared(FC_EVP_PKEY_get1_tls_encodedpoint)} + EVP_PKEY_get1_tls_encodedpoint := @FC_EVP_PKEY_get1_tls_encodedpoint + {$else} + EVP_PKEY_get1_tls_encodedpoint := @ERR_EVP_PKEY_get1_tls_encodedpoint + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_get1_tls_encodedpoint_removed)} + if EVP_PKEY_get1_tls_encodedpoint_removed <= LibVersion then + {$if declared(_EVP_PKEY_get1_tls_encodedpoint)} + EVP_PKEY_get1_tls_encodedpoint := @_EVP_PKEY_get1_tls_encodedpoint + {$else} + {$IF declared(ERR_EVP_PKEY_get1_tls_encodedpoint)} + EVP_PKEY_get1_tls_encodedpoint := @ERR_EVP_PKEY_get1_tls_encodedpoint + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_get1_tls_encodedpoint) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_get1_tls_encodedpoint'); + end; + + + if not assigned(EVP_CIPHER_type) then + begin + {$if declared(EVP_CIPHER_type_introduced)} + if LibVersion < EVP_CIPHER_type_introduced then + {$if declared(FC_EVP_CIPHER_type)} + EVP_CIPHER_type := @FC_EVP_CIPHER_type + {$else} + EVP_CIPHER_type := @ERR_EVP_CIPHER_type + {$ifend} + else + {$ifend} + {$if declared(EVP_CIPHER_type_removed)} + if EVP_CIPHER_type_removed <= LibVersion then + {$if declared(_EVP_CIPHER_type)} + EVP_CIPHER_type := @_EVP_CIPHER_type + {$else} + {$IF declared(ERR_EVP_CIPHER_type)} + EVP_CIPHER_type := @ERR_EVP_CIPHER_type + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_CIPHER_type) and Assigned(AFailed) then + AFailed.Add('EVP_CIPHER_type'); + end; + + + if not assigned(EVP_PBE_scrypt) then + begin + {$if declared(EVP_PBE_scrypt_introduced)} + if LibVersion < EVP_PBE_scrypt_introduced then + {$if declared(FC_EVP_PBE_scrypt)} + EVP_PBE_scrypt := @FC_EVP_PBE_scrypt + {$else} + EVP_PBE_scrypt := @ERR_EVP_PBE_scrypt + {$ifend} + else + {$ifend} + {$if declared(EVP_PBE_scrypt_removed)} + if EVP_PBE_scrypt_removed <= LibVersion then + {$if declared(_EVP_PBE_scrypt)} + EVP_PBE_scrypt := @_EVP_PBE_scrypt + {$else} + {$IF declared(ERR_EVP_PBE_scrypt)} + EVP_PBE_scrypt := @ERR_EVP_PBE_scrypt + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PBE_scrypt) and Assigned(AFailed) then + AFailed.Add('EVP_PBE_scrypt'); + end; + + + if not assigned(PKCS5_v2_scrypt_keyivgen) then + begin + {$if declared(PKCS5_v2_scrypt_keyivgen_introduced)} + if LibVersion < PKCS5_v2_scrypt_keyivgen_introduced then + {$if declared(FC_PKCS5_v2_scrypt_keyivgen)} + PKCS5_v2_scrypt_keyivgen := @FC_PKCS5_v2_scrypt_keyivgen + {$else} + PKCS5_v2_scrypt_keyivgen := @ERR_PKCS5_v2_scrypt_keyivgen + {$ifend} + else + {$ifend} + {$if declared(PKCS5_v2_scrypt_keyivgen_removed)} + if PKCS5_v2_scrypt_keyivgen_removed <= LibVersion then + {$if declared(_PKCS5_v2_scrypt_keyivgen)} + PKCS5_v2_scrypt_keyivgen := @_PKCS5_v2_scrypt_keyivgen + {$else} + {$IF declared(ERR_PKCS5_v2_scrypt_keyivgen)} + PKCS5_v2_scrypt_keyivgen := @ERR_PKCS5_v2_scrypt_keyivgen + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS5_v2_scrypt_keyivgen) and Assigned(AFailed) then + AFailed.Add('PKCS5_v2_scrypt_keyivgen'); + end; + + + if not assigned(EVP_PBE_get) then + begin + {$if declared(EVP_PBE_get_introduced)} + if LibVersion < EVP_PBE_get_introduced then + {$if declared(FC_EVP_PBE_get)} + EVP_PBE_get := @FC_EVP_PBE_get + {$else} + EVP_PBE_get := @ERR_EVP_PBE_get + {$ifend} + else + {$ifend} + {$if declared(EVP_PBE_get_removed)} + if EVP_PBE_get_removed <= LibVersion then + {$if declared(_EVP_PBE_get)} + EVP_PBE_get := @_EVP_PBE_get + {$else} + {$IF declared(ERR_EVP_PBE_get)} + EVP_PBE_get := @ERR_EVP_PBE_get + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PBE_get) and Assigned(AFailed) then + AFailed.Add('EVP_PBE_get'); + end; + + + if not assigned(EVP_PKEY_asn1_set_siginf) then + begin + {$if declared(EVP_PKEY_asn1_set_siginf_introduced)} + if LibVersion < EVP_PKEY_asn1_set_siginf_introduced then + {$if declared(FC_EVP_PKEY_asn1_set_siginf)} + EVP_PKEY_asn1_set_siginf := @FC_EVP_PKEY_asn1_set_siginf + {$else} + EVP_PKEY_asn1_set_siginf := @ERR_EVP_PKEY_asn1_set_siginf + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_asn1_set_siginf_removed)} + if EVP_PKEY_asn1_set_siginf_removed <= LibVersion then + {$if declared(_EVP_PKEY_asn1_set_siginf)} + EVP_PKEY_asn1_set_siginf := @_EVP_PKEY_asn1_set_siginf + {$else} + {$IF declared(ERR_EVP_PKEY_asn1_set_siginf)} + EVP_PKEY_asn1_set_siginf := @ERR_EVP_PKEY_asn1_set_siginf + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_asn1_set_siginf) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_asn1_set_siginf'); + end; + + + if not assigned(EVP_PKEY_asn1_set_check) then + begin + {$if declared(EVP_PKEY_asn1_set_check_introduced)} + if LibVersion < EVP_PKEY_asn1_set_check_introduced then + {$if declared(FC_EVP_PKEY_asn1_set_check)} + EVP_PKEY_asn1_set_check := @FC_EVP_PKEY_asn1_set_check + {$else} + EVP_PKEY_asn1_set_check := @ERR_EVP_PKEY_asn1_set_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_asn1_set_check_removed)} + if EVP_PKEY_asn1_set_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_asn1_set_check)} + EVP_PKEY_asn1_set_check := @_EVP_PKEY_asn1_set_check + {$else} + {$IF declared(ERR_EVP_PKEY_asn1_set_check)} + EVP_PKEY_asn1_set_check := @ERR_EVP_PKEY_asn1_set_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_asn1_set_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_asn1_set_check'); + end; + + + if not assigned(EVP_PKEY_asn1_set_public_check) then + begin + {$if declared(EVP_PKEY_asn1_set_public_check_introduced)} + if LibVersion < EVP_PKEY_asn1_set_public_check_introduced then + {$if declared(FC_EVP_PKEY_asn1_set_public_check)} + EVP_PKEY_asn1_set_public_check := @FC_EVP_PKEY_asn1_set_public_check + {$else} + EVP_PKEY_asn1_set_public_check := @ERR_EVP_PKEY_asn1_set_public_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_asn1_set_public_check_removed)} + if EVP_PKEY_asn1_set_public_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_asn1_set_public_check)} + EVP_PKEY_asn1_set_public_check := @_EVP_PKEY_asn1_set_public_check + {$else} + {$IF declared(ERR_EVP_PKEY_asn1_set_public_check)} + EVP_PKEY_asn1_set_public_check := @ERR_EVP_PKEY_asn1_set_public_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_asn1_set_public_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_asn1_set_public_check'); + end; + + + if not assigned(EVP_PKEY_asn1_set_param_check) then + begin + {$if declared(EVP_PKEY_asn1_set_param_check_introduced)} + if LibVersion < EVP_PKEY_asn1_set_param_check_introduced then + {$if declared(FC_EVP_PKEY_asn1_set_param_check)} + EVP_PKEY_asn1_set_param_check := @FC_EVP_PKEY_asn1_set_param_check + {$else} + EVP_PKEY_asn1_set_param_check := @ERR_EVP_PKEY_asn1_set_param_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_asn1_set_param_check_removed)} + if EVP_PKEY_asn1_set_param_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_asn1_set_param_check)} + EVP_PKEY_asn1_set_param_check := @_EVP_PKEY_asn1_set_param_check + {$else} + {$IF declared(ERR_EVP_PKEY_asn1_set_param_check)} + EVP_PKEY_asn1_set_param_check := @ERR_EVP_PKEY_asn1_set_param_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_asn1_set_param_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_asn1_set_param_check'); + end; + + + if not assigned(EVP_PKEY_asn1_set_set_priv_key) then + begin + {$if declared(EVP_PKEY_asn1_set_set_priv_key_introduced)} + if LibVersion < EVP_PKEY_asn1_set_set_priv_key_introduced then + {$if declared(FC_EVP_PKEY_asn1_set_set_priv_key)} + EVP_PKEY_asn1_set_set_priv_key := @FC_EVP_PKEY_asn1_set_set_priv_key + {$else} + EVP_PKEY_asn1_set_set_priv_key := @ERR_EVP_PKEY_asn1_set_set_priv_key + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_asn1_set_set_priv_key_removed)} + if EVP_PKEY_asn1_set_set_priv_key_removed <= LibVersion then + {$if declared(_EVP_PKEY_asn1_set_set_priv_key)} + EVP_PKEY_asn1_set_set_priv_key := @_EVP_PKEY_asn1_set_set_priv_key + {$else} + {$IF declared(ERR_EVP_PKEY_asn1_set_set_priv_key)} + EVP_PKEY_asn1_set_set_priv_key := @ERR_EVP_PKEY_asn1_set_set_priv_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_asn1_set_set_priv_key) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_asn1_set_set_priv_key'); + end; + + + if not assigned(EVP_PKEY_asn1_set_set_pub_key) then + begin + {$if declared(EVP_PKEY_asn1_set_set_pub_key_introduced)} + if LibVersion < EVP_PKEY_asn1_set_set_pub_key_introduced then + {$if declared(FC_EVP_PKEY_asn1_set_set_pub_key)} + EVP_PKEY_asn1_set_set_pub_key := @FC_EVP_PKEY_asn1_set_set_pub_key + {$else} + EVP_PKEY_asn1_set_set_pub_key := @ERR_EVP_PKEY_asn1_set_set_pub_key + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_asn1_set_set_pub_key_removed)} + if EVP_PKEY_asn1_set_set_pub_key_removed <= LibVersion then + {$if declared(_EVP_PKEY_asn1_set_set_pub_key)} + EVP_PKEY_asn1_set_set_pub_key := @_EVP_PKEY_asn1_set_set_pub_key + {$else} + {$IF declared(ERR_EVP_PKEY_asn1_set_set_pub_key)} + EVP_PKEY_asn1_set_set_pub_key := @ERR_EVP_PKEY_asn1_set_set_pub_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_asn1_set_set_pub_key) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_asn1_set_set_pub_key'); + end; + + + if not assigned(EVP_PKEY_asn1_set_get_priv_key) then + begin + {$if declared(EVP_PKEY_asn1_set_get_priv_key_introduced)} + if LibVersion < EVP_PKEY_asn1_set_get_priv_key_introduced then + {$if declared(FC_EVP_PKEY_asn1_set_get_priv_key)} + EVP_PKEY_asn1_set_get_priv_key := @FC_EVP_PKEY_asn1_set_get_priv_key + {$else} + EVP_PKEY_asn1_set_get_priv_key := @ERR_EVP_PKEY_asn1_set_get_priv_key + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_asn1_set_get_priv_key_removed)} + if EVP_PKEY_asn1_set_get_priv_key_removed <= LibVersion then + {$if declared(_EVP_PKEY_asn1_set_get_priv_key)} + EVP_PKEY_asn1_set_get_priv_key := @_EVP_PKEY_asn1_set_get_priv_key + {$else} + {$IF declared(ERR_EVP_PKEY_asn1_set_get_priv_key)} + EVP_PKEY_asn1_set_get_priv_key := @ERR_EVP_PKEY_asn1_set_get_priv_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_asn1_set_get_priv_key) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_asn1_set_get_priv_key'); + end; + + + if not assigned(EVP_PKEY_asn1_set_get_pub_key) then + begin + {$if declared(EVP_PKEY_asn1_set_get_pub_key_introduced)} + if LibVersion < EVP_PKEY_asn1_set_get_pub_key_introduced then + {$if declared(FC_EVP_PKEY_asn1_set_get_pub_key)} + EVP_PKEY_asn1_set_get_pub_key := @FC_EVP_PKEY_asn1_set_get_pub_key + {$else} + EVP_PKEY_asn1_set_get_pub_key := @ERR_EVP_PKEY_asn1_set_get_pub_key + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_asn1_set_get_pub_key_removed)} + if EVP_PKEY_asn1_set_get_pub_key_removed <= LibVersion then + {$if declared(_EVP_PKEY_asn1_set_get_pub_key)} + EVP_PKEY_asn1_set_get_pub_key := @_EVP_PKEY_asn1_set_get_pub_key + {$else} + {$IF declared(ERR_EVP_PKEY_asn1_set_get_pub_key)} + EVP_PKEY_asn1_set_get_pub_key := @ERR_EVP_PKEY_asn1_set_get_pub_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_asn1_set_get_pub_key) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_asn1_set_get_pub_key'); + end; + + + if not assigned(EVP_PKEY_asn1_set_security_bits) then + begin + {$if declared(EVP_PKEY_asn1_set_security_bits_introduced)} + if LibVersion < EVP_PKEY_asn1_set_security_bits_introduced then + {$if declared(FC_EVP_PKEY_asn1_set_security_bits)} + EVP_PKEY_asn1_set_security_bits := @FC_EVP_PKEY_asn1_set_security_bits + {$else} + EVP_PKEY_asn1_set_security_bits := @ERR_EVP_PKEY_asn1_set_security_bits + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_asn1_set_security_bits_removed)} + if EVP_PKEY_asn1_set_security_bits_removed <= LibVersion then + {$if declared(_EVP_PKEY_asn1_set_security_bits)} + EVP_PKEY_asn1_set_security_bits := @_EVP_PKEY_asn1_set_security_bits + {$else} + {$IF declared(ERR_EVP_PKEY_asn1_set_security_bits)} + EVP_PKEY_asn1_set_security_bits := @ERR_EVP_PKEY_asn1_set_security_bits + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_asn1_set_security_bits) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_asn1_set_security_bits'); + end; + + + if not assigned(EVP_PKEY_meth_remove) then + begin + {$if declared(EVP_PKEY_meth_remove_introduced)} + if LibVersion < EVP_PKEY_meth_remove_introduced then + {$if declared(FC_EVP_PKEY_meth_remove)} + EVP_PKEY_meth_remove := @FC_EVP_PKEY_meth_remove + {$else} + EVP_PKEY_meth_remove := @ERR_EVP_PKEY_meth_remove + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_remove_removed)} + if EVP_PKEY_meth_remove_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_remove)} + EVP_PKEY_meth_remove := @_EVP_PKEY_meth_remove + {$else} + {$IF declared(ERR_EVP_PKEY_meth_remove)} + EVP_PKEY_meth_remove := @ERR_EVP_PKEY_meth_remove + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_remove) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_remove'); + end; + + + if not assigned(EVP_PKEY_meth_get_count) then + begin + {$if declared(EVP_PKEY_meth_get_count_introduced)} + if LibVersion < EVP_PKEY_meth_get_count_introduced then + {$if declared(FC_EVP_PKEY_meth_get_count)} + EVP_PKEY_meth_get_count := @FC_EVP_PKEY_meth_get_count + {$else} + EVP_PKEY_meth_get_count := @ERR_EVP_PKEY_meth_get_count + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_get_count_removed)} + if EVP_PKEY_meth_get_count_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_get_count)} + EVP_PKEY_meth_get_count := @_EVP_PKEY_meth_get_count + {$else} + {$IF declared(ERR_EVP_PKEY_meth_get_count)} + EVP_PKEY_meth_get_count := @ERR_EVP_PKEY_meth_get_count + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_get_count) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_get_count'); + end; + + + if not assigned(EVP_PKEY_meth_get0) then + begin + {$if declared(EVP_PKEY_meth_get0_introduced)} + if LibVersion < EVP_PKEY_meth_get0_introduced then + {$if declared(FC_EVP_PKEY_meth_get0)} + EVP_PKEY_meth_get0 := @FC_EVP_PKEY_meth_get0 + {$else} + EVP_PKEY_meth_get0 := @ERR_EVP_PKEY_meth_get0 + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_get0_removed)} + if EVP_PKEY_meth_get0_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_get0)} + EVP_PKEY_meth_get0 := @_EVP_PKEY_meth_get0 + {$else} + {$IF declared(ERR_EVP_PKEY_meth_get0)} + EVP_PKEY_meth_get0 := @ERR_EVP_PKEY_meth_get0 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_get0) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_get0'); + end; + + + if not assigned(EVP_PKEY_CTX_ctrl_uint64) then + begin + {$if declared(EVP_PKEY_CTX_ctrl_uint64_introduced)} + if LibVersion < EVP_PKEY_CTX_ctrl_uint64_introduced then + {$if declared(FC_EVP_PKEY_CTX_ctrl_uint64)} + EVP_PKEY_CTX_ctrl_uint64 := @FC_EVP_PKEY_CTX_ctrl_uint64 + {$else} + EVP_PKEY_CTX_ctrl_uint64 := @ERR_EVP_PKEY_CTX_ctrl_uint64 + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_CTX_ctrl_uint64_removed)} + if EVP_PKEY_CTX_ctrl_uint64_removed <= LibVersion then + {$if declared(_EVP_PKEY_CTX_ctrl_uint64)} + EVP_PKEY_CTX_ctrl_uint64 := @_EVP_PKEY_CTX_ctrl_uint64 + {$else} + {$IF declared(ERR_EVP_PKEY_CTX_ctrl_uint64)} + EVP_PKEY_CTX_ctrl_uint64 := @ERR_EVP_PKEY_CTX_ctrl_uint64 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_CTX_ctrl_uint64) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_CTX_ctrl_uint64'); + end; + + + if not assigned(EVP_PKEY_CTX_str2ctrl) then + begin + {$if declared(EVP_PKEY_CTX_str2ctrl_introduced)} + if LibVersion < EVP_PKEY_CTX_str2ctrl_introduced then + {$if declared(FC_EVP_PKEY_CTX_str2ctrl)} + EVP_PKEY_CTX_str2ctrl := @FC_EVP_PKEY_CTX_str2ctrl + {$else} + EVP_PKEY_CTX_str2ctrl := @ERR_EVP_PKEY_CTX_str2ctrl + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_CTX_str2ctrl_removed)} + if EVP_PKEY_CTX_str2ctrl_removed <= LibVersion then + {$if declared(_EVP_PKEY_CTX_str2ctrl)} + EVP_PKEY_CTX_str2ctrl := @_EVP_PKEY_CTX_str2ctrl + {$else} + {$IF declared(ERR_EVP_PKEY_CTX_str2ctrl)} + EVP_PKEY_CTX_str2ctrl := @ERR_EVP_PKEY_CTX_str2ctrl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_CTX_str2ctrl) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_CTX_str2ctrl'); + end; + + + if not assigned(EVP_PKEY_CTX_hex2ctrl) then + begin + {$if declared(EVP_PKEY_CTX_hex2ctrl_introduced)} + if LibVersion < EVP_PKEY_CTX_hex2ctrl_introduced then + {$if declared(FC_EVP_PKEY_CTX_hex2ctrl)} + EVP_PKEY_CTX_hex2ctrl := @FC_EVP_PKEY_CTX_hex2ctrl + {$else} + EVP_PKEY_CTX_hex2ctrl := @ERR_EVP_PKEY_CTX_hex2ctrl + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_CTX_hex2ctrl_removed)} + if EVP_PKEY_CTX_hex2ctrl_removed <= LibVersion then + {$if declared(_EVP_PKEY_CTX_hex2ctrl)} + EVP_PKEY_CTX_hex2ctrl := @_EVP_PKEY_CTX_hex2ctrl + {$else} + {$IF declared(ERR_EVP_PKEY_CTX_hex2ctrl)} + EVP_PKEY_CTX_hex2ctrl := @ERR_EVP_PKEY_CTX_hex2ctrl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_CTX_hex2ctrl) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_CTX_hex2ctrl'); + end; + + + if not assigned(EVP_PKEY_CTX_md) then + begin + {$if declared(EVP_PKEY_CTX_md_introduced)} + if LibVersion < EVP_PKEY_CTX_md_introduced then + {$if declared(FC_EVP_PKEY_CTX_md)} + EVP_PKEY_CTX_md := @FC_EVP_PKEY_CTX_md + {$else} + EVP_PKEY_CTX_md := @ERR_EVP_PKEY_CTX_md + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_CTX_md_removed)} + if EVP_PKEY_CTX_md_removed <= LibVersion then + {$if declared(_EVP_PKEY_CTX_md)} + EVP_PKEY_CTX_md := @_EVP_PKEY_CTX_md + {$else} + {$IF declared(ERR_EVP_PKEY_CTX_md)} + EVP_PKEY_CTX_md := @ERR_EVP_PKEY_CTX_md + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_CTX_md) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_CTX_md'); + end; + + + if not assigned(EVP_PKEY_new_raw_private_key) then + begin + {$if declared(EVP_PKEY_new_raw_private_key_introduced)} + if LibVersion < EVP_PKEY_new_raw_private_key_introduced then + {$if declared(FC_EVP_PKEY_new_raw_private_key)} + EVP_PKEY_new_raw_private_key := @FC_EVP_PKEY_new_raw_private_key + {$else} + EVP_PKEY_new_raw_private_key := @ERR_EVP_PKEY_new_raw_private_key + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_new_raw_private_key_removed)} + if EVP_PKEY_new_raw_private_key_removed <= LibVersion then + {$if declared(_EVP_PKEY_new_raw_private_key)} + EVP_PKEY_new_raw_private_key := @_EVP_PKEY_new_raw_private_key + {$else} + {$IF declared(ERR_EVP_PKEY_new_raw_private_key)} + EVP_PKEY_new_raw_private_key := @ERR_EVP_PKEY_new_raw_private_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_new_raw_private_key) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_new_raw_private_key'); + end; + + + if not assigned(EVP_PKEY_new_raw_public_key) then + begin + {$if declared(EVP_PKEY_new_raw_public_key_introduced)} + if LibVersion < EVP_PKEY_new_raw_public_key_introduced then + {$if declared(FC_EVP_PKEY_new_raw_public_key)} + EVP_PKEY_new_raw_public_key := @FC_EVP_PKEY_new_raw_public_key + {$else} + EVP_PKEY_new_raw_public_key := @ERR_EVP_PKEY_new_raw_public_key + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_new_raw_public_key_removed)} + if EVP_PKEY_new_raw_public_key_removed <= LibVersion then + {$if declared(_EVP_PKEY_new_raw_public_key)} + EVP_PKEY_new_raw_public_key := @_EVP_PKEY_new_raw_public_key + {$else} + {$IF declared(ERR_EVP_PKEY_new_raw_public_key)} + EVP_PKEY_new_raw_public_key := @ERR_EVP_PKEY_new_raw_public_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_new_raw_public_key) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_new_raw_public_key'); + end; + + + if not assigned(EVP_PKEY_get_raw_private_key) then + begin + {$if declared(EVP_PKEY_get_raw_private_key_introduced)} + if LibVersion < EVP_PKEY_get_raw_private_key_introduced then + {$if declared(FC_EVP_PKEY_get_raw_private_key)} + EVP_PKEY_get_raw_private_key := @FC_EVP_PKEY_get_raw_private_key + {$else} + EVP_PKEY_get_raw_private_key := @ERR_EVP_PKEY_get_raw_private_key + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_get_raw_private_key_removed)} + if EVP_PKEY_get_raw_private_key_removed <= LibVersion then + {$if declared(_EVP_PKEY_get_raw_private_key)} + EVP_PKEY_get_raw_private_key := @_EVP_PKEY_get_raw_private_key + {$else} + {$IF declared(ERR_EVP_PKEY_get_raw_private_key)} + EVP_PKEY_get_raw_private_key := @ERR_EVP_PKEY_get_raw_private_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_get_raw_private_key) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_get_raw_private_key'); + end; + + + if not assigned(EVP_PKEY_get_raw_public_key) then + begin + {$if declared(EVP_PKEY_get_raw_public_key_introduced)} + if LibVersion < EVP_PKEY_get_raw_public_key_introduced then + {$if declared(FC_EVP_PKEY_get_raw_public_key)} + EVP_PKEY_get_raw_public_key := @FC_EVP_PKEY_get_raw_public_key + {$else} + EVP_PKEY_get_raw_public_key := @ERR_EVP_PKEY_get_raw_public_key + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_get_raw_public_key_removed)} + if EVP_PKEY_get_raw_public_key_removed <= LibVersion then + {$if declared(_EVP_PKEY_get_raw_public_key)} + EVP_PKEY_get_raw_public_key := @_EVP_PKEY_get_raw_public_key + {$else} + {$IF declared(ERR_EVP_PKEY_get_raw_public_key)} + EVP_PKEY_get_raw_public_key := @ERR_EVP_PKEY_get_raw_public_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_get_raw_public_key) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_get_raw_public_key'); + end; + + + if not assigned(EVP_PKEY_new_CMAC_key) then + begin + {$if declared(EVP_PKEY_new_CMAC_key_introduced)} + if LibVersion < EVP_PKEY_new_CMAC_key_introduced then + {$if declared(FC_EVP_PKEY_new_CMAC_key)} + EVP_PKEY_new_CMAC_key := @FC_EVP_PKEY_new_CMAC_key + {$else} + EVP_PKEY_new_CMAC_key := @ERR_EVP_PKEY_new_CMAC_key + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_new_CMAC_key_removed)} + if EVP_PKEY_new_CMAC_key_removed <= LibVersion then + {$if declared(_EVP_PKEY_new_CMAC_key)} + EVP_PKEY_new_CMAC_key := @_EVP_PKEY_new_CMAC_key + {$else} + {$IF declared(ERR_EVP_PKEY_new_CMAC_key)} + EVP_PKEY_new_CMAC_key := @ERR_EVP_PKEY_new_CMAC_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_new_CMAC_key) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_new_CMAC_key'); + end; + + + if not assigned(EVP_PKEY_check) then + begin + {$if declared(EVP_PKEY_check_introduced)} + if LibVersion < EVP_PKEY_check_introduced then + {$if declared(FC_EVP_PKEY_check)} + EVP_PKEY_check := @FC_EVP_PKEY_check + {$else} + EVP_PKEY_check := @ERR_EVP_PKEY_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_check_removed)} + if EVP_PKEY_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_check)} + EVP_PKEY_check := @_EVP_PKEY_check + {$else} + {$IF declared(ERR_EVP_PKEY_check)} + EVP_PKEY_check := @ERR_EVP_PKEY_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_check'); + end; + + + if not assigned(EVP_PKEY_public_check) then + begin + {$if declared(EVP_PKEY_public_check_introduced)} + if LibVersion < EVP_PKEY_public_check_introduced then + {$if declared(FC_EVP_PKEY_public_check)} + EVP_PKEY_public_check := @FC_EVP_PKEY_public_check + {$else} + EVP_PKEY_public_check := @ERR_EVP_PKEY_public_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_public_check_removed)} + if EVP_PKEY_public_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_public_check)} + EVP_PKEY_public_check := @_EVP_PKEY_public_check + {$else} + {$IF declared(ERR_EVP_PKEY_public_check)} + EVP_PKEY_public_check := @ERR_EVP_PKEY_public_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_public_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_public_check'); + end; + + + if not assigned(EVP_PKEY_param_check) then + begin + {$if declared(EVP_PKEY_param_check_introduced)} + if LibVersion < EVP_PKEY_param_check_introduced then + {$if declared(FC_EVP_PKEY_param_check)} + EVP_PKEY_param_check := @FC_EVP_PKEY_param_check + {$else} + EVP_PKEY_param_check := @ERR_EVP_PKEY_param_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_param_check_removed)} + if EVP_PKEY_param_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_param_check)} + EVP_PKEY_param_check := @_EVP_PKEY_param_check + {$else} + {$IF declared(ERR_EVP_PKEY_param_check)} + EVP_PKEY_param_check := @ERR_EVP_PKEY_param_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_param_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_param_check'); + end; + + + if not assigned(EVP_PKEY_meth_set_digestsign) then + begin + {$if declared(EVP_PKEY_meth_set_digestsign_introduced)} + if LibVersion < EVP_PKEY_meth_set_digestsign_introduced then + {$if declared(FC_EVP_PKEY_meth_set_digestsign)} + EVP_PKEY_meth_set_digestsign := @FC_EVP_PKEY_meth_set_digestsign + {$else} + EVP_PKEY_meth_set_digestsign := @ERR_EVP_PKEY_meth_set_digestsign + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_set_digestsign_removed)} + if EVP_PKEY_meth_set_digestsign_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_set_digestsign)} + EVP_PKEY_meth_set_digestsign := @_EVP_PKEY_meth_set_digestsign + {$else} + {$IF declared(ERR_EVP_PKEY_meth_set_digestsign)} + EVP_PKEY_meth_set_digestsign := @ERR_EVP_PKEY_meth_set_digestsign + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_set_digestsign) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_set_digestsign'); + end; + + + if not assigned(EVP_PKEY_meth_set_digestverify) then + begin + {$if declared(EVP_PKEY_meth_set_digestverify_introduced)} + if LibVersion < EVP_PKEY_meth_set_digestverify_introduced then + {$if declared(FC_EVP_PKEY_meth_set_digestverify)} + EVP_PKEY_meth_set_digestverify := @FC_EVP_PKEY_meth_set_digestverify + {$else} + EVP_PKEY_meth_set_digestverify := @ERR_EVP_PKEY_meth_set_digestverify + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_set_digestverify_removed)} + if EVP_PKEY_meth_set_digestverify_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_set_digestverify)} + EVP_PKEY_meth_set_digestverify := @_EVP_PKEY_meth_set_digestverify + {$else} + {$IF declared(ERR_EVP_PKEY_meth_set_digestverify)} + EVP_PKEY_meth_set_digestverify := @ERR_EVP_PKEY_meth_set_digestverify + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_set_digestverify) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_set_digestverify'); + end; + + + if not assigned(EVP_PKEY_meth_set_check) then + begin + {$if declared(EVP_PKEY_meth_set_check_introduced)} + if LibVersion < EVP_PKEY_meth_set_check_introduced then + {$if declared(FC_EVP_PKEY_meth_set_check)} + EVP_PKEY_meth_set_check := @FC_EVP_PKEY_meth_set_check + {$else} + EVP_PKEY_meth_set_check := @ERR_EVP_PKEY_meth_set_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_set_check_removed)} + if EVP_PKEY_meth_set_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_set_check)} + EVP_PKEY_meth_set_check := @_EVP_PKEY_meth_set_check + {$else} + {$IF declared(ERR_EVP_PKEY_meth_set_check)} + EVP_PKEY_meth_set_check := @ERR_EVP_PKEY_meth_set_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_set_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_set_check'); + end; + + + if not assigned(EVP_PKEY_meth_set_public_check) then + begin + {$if declared(EVP_PKEY_meth_set_public_check_introduced)} + if LibVersion < EVP_PKEY_meth_set_public_check_introduced then + {$if declared(FC_EVP_PKEY_meth_set_public_check)} + EVP_PKEY_meth_set_public_check := @FC_EVP_PKEY_meth_set_public_check + {$else} + EVP_PKEY_meth_set_public_check := @ERR_EVP_PKEY_meth_set_public_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_set_public_check_removed)} + if EVP_PKEY_meth_set_public_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_set_public_check)} + EVP_PKEY_meth_set_public_check := @_EVP_PKEY_meth_set_public_check + {$else} + {$IF declared(ERR_EVP_PKEY_meth_set_public_check)} + EVP_PKEY_meth_set_public_check := @ERR_EVP_PKEY_meth_set_public_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_set_public_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_set_public_check'); + end; + + + if not assigned(EVP_PKEY_meth_set_param_check) then + begin + {$if declared(EVP_PKEY_meth_set_param_check_introduced)} + if LibVersion < EVP_PKEY_meth_set_param_check_introduced then + {$if declared(FC_EVP_PKEY_meth_set_param_check)} + EVP_PKEY_meth_set_param_check := @FC_EVP_PKEY_meth_set_param_check + {$else} + EVP_PKEY_meth_set_param_check := @ERR_EVP_PKEY_meth_set_param_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_set_param_check_removed)} + if EVP_PKEY_meth_set_param_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_set_param_check)} + EVP_PKEY_meth_set_param_check := @_EVP_PKEY_meth_set_param_check + {$else} + {$IF declared(ERR_EVP_PKEY_meth_set_param_check)} + EVP_PKEY_meth_set_param_check := @ERR_EVP_PKEY_meth_set_param_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_set_param_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_set_param_check'); + end; + + + if not assigned(EVP_PKEY_meth_set_digest_custom) then + begin + {$if declared(EVP_PKEY_meth_set_digest_custom_introduced)} + if LibVersion < EVP_PKEY_meth_set_digest_custom_introduced then + {$if declared(FC_EVP_PKEY_meth_set_digest_custom)} + EVP_PKEY_meth_set_digest_custom := @FC_EVP_PKEY_meth_set_digest_custom + {$else} + EVP_PKEY_meth_set_digest_custom := @ERR_EVP_PKEY_meth_set_digest_custom + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_set_digest_custom_removed)} + if EVP_PKEY_meth_set_digest_custom_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_set_digest_custom)} + EVP_PKEY_meth_set_digest_custom := @_EVP_PKEY_meth_set_digest_custom + {$else} + {$IF declared(ERR_EVP_PKEY_meth_set_digest_custom)} + EVP_PKEY_meth_set_digest_custom := @ERR_EVP_PKEY_meth_set_digest_custom + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_set_digest_custom) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_set_digest_custom'); + end; + + + if not assigned(EVP_PKEY_meth_get_digestsign) then + begin + {$if declared(EVP_PKEY_meth_get_digestsign_introduced)} + if LibVersion < EVP_PKEY_meth_get_digestsign_introduced then + {$if declared(FC_EVP_PKEY_meth_get_digestsign)} + EVP_PKEY_meth_get_digestsign := @FC_EVP_PKEY_meth_get_digestsign + {$else} + EVP_PKEY_meth_get_digestsign := @ERR_EVP_PKEY_meth_get_digestsign + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_get_digestsign_removed)} + if EVP_PKEY_meth_get_digestsign_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_get_digestsign)} + EVP_PKEY_meth_get_digestsign := @_EVP_PKEY_meth_get_digestsign + {$else} + {$IF declared(ERR_EVP_PKEY_meth_get_digestsign)} + EVP_PKEY_meth_get_digestsign := @ERR_EVP_PKEY_meth_get_digestsign + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_get_digestsign) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_get_digestsign'); + end; + + + if not assigned(EVP_PKEY_meth_get_digestverify) then + begin + {$if declared(EVP_PKEY_meth_get_digestverify_introduced)} + if LibVersion < EVP_PKEY_meth_get_digestverify_introduced then + {$if declared(FC_EVP_PKEY_meth_get_digestverify)} + EVP_PKEY_meth_get_digestverify := @FC_EVP_PKEY_meth_get_digestverify + {$else} + EVP_PKEY_meth_get_digestverify := @ERR_EVP_PKEY_meth_get_digestverify + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_get_digestverify_removed)} + if EVP_PKEY_meth_get_digestverify_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_get_digestverify)} + EVP_PKEY_meth_get_digestverify := @_EVP_PKEY_meth_get_digestverify + {$else} + {$IF declared(ERR_EVP_PKEY_meth_get_digestverify)} + EVP_PKEY_meth_get_digestverify := @ERR_EVP_PKEY_meth_get_digestverify + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_get_digestverify) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_get_digestverify'); + end; + + + if not assigned(EVP_PKEY_meth_get_check) then + begin + {$if declared(EVP_PKEY_meth_get_check_introduced)} + if LibVersion < EVP_PKEY_meth_get_check_introduced then + {$if declared(FC_EVP_PKEY_meth_get_check)} + EVP_PKEY_meth_get_check := @FC_EVP_PKEY_meth_get_check + {$else} + EVP_PKEY_meth_get_check := @ERR_EVP_PKEY_meth_get_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_get_check_removed)} + if EVP_PKEY_meth_get_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_get_check)} + EVP_PKEY_meth_get_check := @_EVP_PKEY_meth_get_check + {$else} + {$IF declared(ERR_EVP_PKEY_meth_get_check)} + EVP_PKEY_meth_get_check := @ERR_EVP_PKEY_meth_get_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_get_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_get_check'); + end; + + + if not assigned(EVP_PKEY_meth_get_public_check) then + begin + {$if declared(EVP_PKEY_meth_get_public_check_introduced)} + if LibVersion < EVP_PKEY_meth_get_public_check_introduced then + {$if declared(FC_EVP_PKEY_meth_get_public_check)} + EVP_PKEY_meth_get_public_check := @FC_EVP_PKEY_meth_get_public_check + {$else} + EVP_PKEY_meth_get_public_check := @ERR_EVP_PKEY_meth_get_public_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_get_public_check_removed)} + if EVP_PKEY_meth_get_public_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_get_public_check)} + EVP_PKEY_meth_get_public_check := @_EVP_PKEY_meth_get_public_check + {$else} + {$IF declared(ERR_EVP_PKEY_meth_get_public_check)} + EVP_PKEY_meth_get_public_check := @ERR_EVP_PKEY_meth_get_public_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_get_public_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_get_public_check'); + end; + + + if not assigned(EVP_PKEY_meth_get_param_check) then + begin + {$if declared(EVP_PKEY_meth_get_param_check_introduced)} + if LibVersion < EVP_PKEY_meth_get_param_check_introduced then + {$if declared(FC_EVP_PKEY_meth_get_param_check)} + EVP_PKEY_meth_get_param_check := @FC_EVP_PKEY_meth_get_param_check + {$else} + EVP_PKEY_meth_get_param_check := @ERR_EVP_PKEY_meth_get_param_check + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_get_param_check_removed)} + if EVP_PKEY_meth_get_param_check_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_get_param_check)} + EVP_PKEY_meth_get_param_check := @_EVP_PKEY_meth_get_param_check + {$else} + {$IF declared(ERR_EVP_PKEY_meth_get_param_check)} + EVP_PKEY_meth_get_param_check := @ERR_EVP_PKEY_meth_get_param_check + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_get_param_check) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_get_param_check'); + end; + + + if not assigned(EVP_PKEY_meth_get_digest_custom) then + begin + {$if declared(EVP_PKEY_meth_get_digest_custom_introduced)} + if LibVersion < EVP_PKEY_meth_get_digest_custom_introduced then + {$if declared(FC_EVP_PKEY_meth_get_digest_custom)} + EVP_PKEY_meth_get_digest_custom := @FC_EVP_PKEY_meth_get_digest_custom + {$else} + EVP_PKEY_meth_get_digest_custom := @ERR_EVP_PKEY_meth_get_digest_custom + {$ifend} + else + {$ifend} + {$if declared(EVP_PKEY_meth_get_digest_custom_removed)} + if EVP_PKEY_meth_get_digest_custom_removed <= LibVersion then + {$if declared(_EVP_PKEY_meth_get_digest_custom)} + EVP_PKEY_meth_get_digest_custom := @_EVP_PKEY_meth_get_digest_custom + {$else} + {$IF declared(ERR_EVP_PKEY_meth_get_digest_custom)} + EVP_PKEY_meth_get_digest_custom := @ERR_EVP_PKEY_meth_get_digest_custom + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_PKEY_meth_get_digest_custom) and Assigned(AFailed) then + AFailed.Add('EVP_PKEY_meth_get_digest_custom'); + end; + + + if not assigned(OpenSSL_add_all_ciphers) then + begin + {$if declared(OpenSSL_add_all_ciphers_introduced)} + if LibVersion < OpenSSL_add_all_ciphers_introduced then + {$if declared(FC_OpenSSL_add_all_ciphers)} + OpenSSL_add_all_ciphers := @FC_OpenSSL_add_all_ciphers + {$else} + OpenSSL_add_all_ciphers := @ERR_OpenSSL_add_all_ciphers + {$ifend} + else + {$ifend} + {$if declared(OpenSSL_add_all_ciphers_removed)} + if OpenSSL_add_all_ciphers_removed <= LibVersion then + {$if declared(_OpenSSL_add_all_ciphers)} + OpenSSL_add_all_ciphers := @_OpenSSL_add_all_ciphers + {$else} + {$IF declared(ERR_OpenSSL_add_all_ciphers)} + OpenSSL_add_all_ciphers := @ERR_OpenSSL_add_all_ciphers + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OpenSSL_add_all_ciphers) and Assigned(AFailed) then + AFailed.Add('OpenSSL_add_all_ciphers'); + end; + + + if not assigned(OpenSSL_add_all_digests) then + begin + {$if declared(OpenSSL_add_all_digests_introduced)} + if LibVersion < OpenSSL_add_all_digests_introduced then + {$if declared(FC_OpenSSL_add_all_digests)} + OpenSSL_add_all_digests := @FC_OpenSSL_add_all_digests + {$else} + OpenSSL_add_all_digests := @ERR_OpenSSL_add_all_digests + {$ifend} + else + {$ifend} + {$if declared(OpenSSL_add_all_digests_removed)} + if OpenSSL_add_all_digests_removed <= LibVersion then + {$if declared(_OpenSSL_add_all_digests)} + OpenSSL_add_all_digests := @_OpenSSL_add_all_digests + {$else} + {$IF declared(ERR_OpenSSL_add_all_digests)} + OpenSSL_add_all_digests := @ERR_OpenSSL_add_all_digests + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OpenSSL_add_all_digests) and Assigned(AFailed) then + AFailed.Add('OpenSSL_add_all_digests'); + end; + + + if not assigned(EVP_cleanup) then + begin + {$if declared(EVP_cleanup_introduced)} + if LibVersion < EVP_cleanup_introduced then + {$if declared(FC_EVP_cleanup)} + EVP_cleanup := @FC_EVP_cleanup + {$else} + EVP_cleanup := @ERR_EVP_cleanup + {$ifend} + else + {$ifend} + {$if declared(EVP_cleanup_removed)} + if EVP_cleanup_removed <= LibVersion then + {$if declared(_EVP_cleanup)} + EVP_cleanup := @_EVP_cleanup + {$else} + {$IF declared(ERR_EVP_cleanup)} + EVP_cleanup := @ERR_EVP_cleanup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(EVP_cleanup) and Assigned(AFailed) then + AFailed.Add('EVP_cleanup'); + end; + + +end; + +procedure Unload; +begin + EVP_PKEY_assign_RSA := nil; {removed 1.0.0} + EVP_PKEY_assign_DSA := nil; {removed 1.0.0} + EVP_PKEY_assign_DH := nil; {removed 1.0.0} + EVP_PKEY_assign_EC_KEY := nil; {removed 1.0.0} + EVP_PKEY_assign_SIPHASH := nil; {removed 1.0.0} + EVP_PKEY_assign_POLY1305 := nil; {removed 1.0.0} + EVP_MD_meth_new := nil; {introduced 1.1.0} + EVP_MD_meth_dup := nil; {introduced 1.1.0} + EVP_MD_meth_free := nil; {introduced 1.1.0} + EVP_MD_meth_set_input_blocksize := nil; {introduced 1.1.0} + EVP_MD_meth_set_result_size := nil; {introduced 1.1.0} + EVP_MD_meth_set_app_datasize := nil; {introduced 1.1.0} + EVP_MD_meth_set_flags := nil; {introduced 1.1.0} + EVP_MD_meth_set_init := nil; {introduced 1.1.0} + EVP_MD_meth_set_update := nil; {introduced 1.1.0} + EVP_MD_meth_set_final := nil; {introduced 1.1.0} + EVP_MD_meth_set_copy := nil; {introduced 1.1.0} + EVP_MD_meth_set_cleanup := nil; {introduced 1.1.0} + EVP_MD_meth_set_ctrl := nil; {introduced 1.1.0} + EVP_MD_meth_get_input_blocksize := nil; {introduced 1.1.0} + EVP_MD_meth_get_result_size := nil; {introduced 1.1.0} + EVP_MD_meth_get_app_datasize := nil; {introduced 1.1.0} + EVP_MD_meth_get_flags := nil; {introduced 1.1.0} + EVP_MD_meth_get_init := nil; {introduced 1.1.0} + EVP_MD_meth_get_update := nil; {introduced 1.1.0} + EVP_MD_meth_get_final := nil; {introduced 1.1.0} + EVP_MD_meth_get_copy := nil; {introduced 1.1.0} + EVP_MD_meth_get_cleanup := nil; {introduced 1.1.0} + EVP_MD_meth_get_ctrl := nil; {introduced 1.1.0} + EVP_CIPHER_meth_new := nil; {introduced 1.1.0} + EVP_CIPHER_meth_dup := nil; {introduced 1.1.0} + EVP_CIPHER_meth_free := nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_iv_length := nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_flags := nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_impl_ctx_size := nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_init := nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_do_cipher := nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_cleanup := nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_set_asn1_params := nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_get_asn1_params := nil; {introduced 1.1.0} + EVP_CIPHER_meth_set_ctrl := nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_init := nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_do_cipher := nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_cleanup := nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_set_asn1_params := nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_get_asn1_params := nil; {introduced 1.1.0} + EVP_CIPHER_meth_get_ctrl := nil; {introduced 1.1.0} + EVP_MD_type := nil; {removed 3.0.0} + EVP_MD_pkey_type := nil; {removed 3.0.0} + EVP_MD_size := nil; {removed 3.0.0} + EVP_MD_block_size := nil; {removed 3.0.0} + EVP_MD_flags := nil; {removed 3.0.0} + EVP_MD_CTX_md := nil; + EVP_MD_CTX_update_fn := nil; {introduced 1.1.0} + EVP_MD_CTX_set_update_fn := nil; {introduced 1.1.0} + EVP_MD_CTX_pkey_ctx := nil; {introduced 1.1.0 removed 3.0.0} + EVP_MD_CTX_set_pkey_ctx := nil; {introduced 1.1.0} + EVP_MD_CTX_md_data := nil; {introduced 1.1.0 removed 3.0.0} + EVP_CIPHER_nid := nil; {removed 3.0.0} + EVP_CIPHER_block_size := nil; {removed 3.0.0} + EVP_CIPHER_impl_ctx_size := nil; {introduced 1.1.0} + EVP_CIPHER_key_length := nil; {removed 3.0.0} + EVP_CIPHER_iv_length := nil; {removed 3.0.0} + EVP_CIPHER_flags := nil; {removed 3.0.0} + EVP_CIPHER_CTX_cipher := nil; + EVP_CIPHER_CTX_encrypting := nil; {introduced 1.1.0 removed 3.0.0} + EVP_CIPHER_CTX_nid := nil; {removed 3.0.0} + EVP_CIPHER_CTX_block_size := nil; {removed 3.0.0} + EVP_CIPHER_CTX_key_length := nil; {removed 3.0.0} + EVP_CIPHER_CTX_iv_length := nil; {removed 3.0.0} + EVP_CIPHER_CTX_iv := nil; {introduced 1.1.0} + EVP_CIPHER_CTX_original_iv := nil; {introduced 1.1.0} + EVP_CIPHER_CTX_iv_noconst := nil; {introduced 1.1.0} + EVP_CIPHER_CTX_buf_noconst := nil; {introduced 1.1.0} + EVP_CIPHER_CTX_num := nil; {introduced 1.1.0 removed 3.0.0} + EVP_CIPHER_CTX_set_num := nil; {introduced 1.1.0} + EVP_CIPHER_CTX_copy := nil; + EVP_CIPHER_CTX_get_app_data := nil; + EVP_CIPHER_CTX_set_app_data := nil; + EVP_CIPHER_CTX_get_cipher_data := nil; {introduced 1.1.0} + EVP_CIPHER_CTX_set_cipher_data := nil; {introduced 1.1.0} + BIO_set_md := nil; {removed 1.0.0} + EVP_MD_CTX_ctrl := nil; {introduced 1.1.0} + EVP_MD_CTX_new := nil; {introduced 1.1.0} + EVP_MD_CTX_reset := nil; {introduced 1.1.0} + EVP_MD_CTX_free := nil; {introduced 1.1.0} + EVP_MD_CTX_copy_ex := nil; + EVP_MD_CTX_set_flags := nil; + EVP_MD_CTX_clear_flags := nil; + EVP_MD_CTX_test_flags := nil; + EVP_DigestInit_ex := nil; + EVP_DigestUpdate := nil; + EVP_DigestFinal_ex := nil; + EVP_Digest := nil; + EVP_MD_CTX_copy := nil; + EVP_DigestInit := nil; + EVP_DigestFinal := nil; + EVP_DigestFinalXOF := nil; {introduced 1.1.0} + EVP_read_pw_string := nil; + EVP_read_pw_string_min := nil; + EVP_set_pw_prompt := nil; + EVP_get_pw_prompt := nil; + EVP_BytesToKey := nil; + EVP_CIPHER_CTX_set_flags := nil; + EVP_CIPHER_CTX_clear_flags := nil; + EVP_CIPHER_CTX_test_flags := nil; + EVP_EncryptInit := nil; + EVP_EncryptInit_ex := nil; + EVP_EncryptUpdate := nil; + EVP_EncryptFinal_ex := nil; + EVP_EncryptFinal := nil; + EVP_DecryptInit := nil; + EVP_DecryptInit_ex := nil; + EVP_DecryptUpdate := nil; + EVP_DecryptFinal := nil; + EVP_DecryptFinal_ex := nil; + EVP_CipherInit := nil; + EVP_CipherInit_ex := nil; + EVP_CipherUpdate := nil; + EVP_CipherFinal := nil; + EVP_CipherFinal_ex := nil; + EVP_SignFinal := nil; + EVP_DigestSign := nil; {introduced 1.1.0} + EVP_VerifyFinal := nil; + EVP_DigestVerify := nil; {introduced 1.1.0} + EVP_DigestSignInit := nil; + EVP_DigestSignFinal := nil; + EVP_DigestVerifyInit := nil; + EVP_DigestVerifyFinal := nil; + EVP_OpenInit := nil; + EVP_OpenFinal := nil; + EVP_SealInit := nil; + EVP_SealFinal := nil; + EVP_ENCODE_CTX_new := nil; {introduced 1.1.0} + EVP_ENCODE_CTX_free := nil; {introduced 1.1.0} + EVP_ENCODE_CTX_copy := nil; {introduced 1.1.0} + EVP_ENCODE_CTX_num := nil; {introduced 1.1.0} + EVP_EncodeInit := nil; + EVP_EncodeUpdate := nil; + EVP_EncodeFinal := nil; + EVP_EncodeBlock := nil; + EVP_DecodeInit := nil; + EVP_DecodeUpdate := nil; + EVP_DecodeFinal := nil; + EVP_DecodeBlock := nil; + EVP_CIPHER_CTX_new := nil; + EVP_CIPHER_CTX_reset := nil; {introduced 1.1.0} + EVP_CIPHER_CTX_free := nil; + EVP_CIPHER_CTX_set_key_length := nil; + EVP_CIPHER_CTX_set_padding := nil; + EVP_CIPHER_CTX_ctrl := nil; + EVP_CIPHER_CTX_rand_key := nil; + BIO_f_md := nil; + BIO_f_base64 := nil; + BIO_f_cipher := nil; + BIO_f_reliable := nil; + BIO_set_cipher := nil; + EVP_md_null := nil; + EVP_md5 := nil; + EVP_md5_sha1 := nil; {introduced 1.1.0} + EVP_sha1 := nil; + EVP_sha224 := nil; + EVP_sha256 := nil; + EVP_sha384 := nil; + EVP_sha512 := nil; + EVP_sha512_224 := nil; {introduced 1.1.0} + EVP_sha512_256 := nil; {introduced 1.1.0} + EVP_sha3_224 := nil; {introduced 1.1.0} + EVP_sha3_256 := nil; {introduced 1.1.0} + EVP_sha3_384 := nil; {introduced 1.1.0} + EVP_sha3_512 := nil; {introduced 1.1.0} + EVP_shake128 := nil; {introduced 1.1.0} + EVP_shake256 := nil; {introduced 1.1.0} + EVP_enc_null := nil; + EVP_des_ecb := nil; + EVP_des_ede := nil; + EVP_des_ede3 := nil; + EVP_des_ede_ecb := nil; + EVP_des_ede3_ecb := nil; + EVP_des_cfb64 := nil; + EVP_des_cfb1 := nil; + EVP_des_cfb8 := nil; + EVP_des_ede_cfb64 := nil; + EVP_des_ede3_cfb64 := nil; + EVP_des_ede3_cfb1 := nil; + EVP_des_ede3_cfb8 := nil; + EVP_des_ofb := nil; + EVP_des_ede_ofb := nil; + EVP_des_ede3_ofb := nil; + EVP_des_cbc := nil; + EVP_des_ede_cbc := nil; + EVP_des_ede3_cbc := nil; + EVP_desx_cbc := nil; + EVP_des_ede3_wrap := nil; + EVP_rc4 := nil; + EVP_rc4_40 := nil; + EVP_rc2_ecb := nil; + EVP_rc2_cbc := nil; + EVP_rc2_40_cbc := nil; + EVP_rc2_64_cbc := nil; + EVP_rc2_cfb64 := nil; + EVP_rc2_ofb := nil; + EVP_bf_ecb := nil; + EVP_bf_cbc := nil; + EVP_bf_cfb64 := nil; + EVP_bf_ofb := nil; + EVP_cast5_ecb := nil; + EVP_cast5_cbc := nil; + EVP_cast5_cfb64 := nil; + EVP_cast5_ofb := nil; + EVP_aes_128_ecb := nil; + EVP_aes_128_cbc := nil; + EVP_aes_128_cfb1 := nil; + EVP_aes_128_cfb8 := nil; + EVP_aes_128_cfb128 := nil; + EVP_aes_128_ofb := nil; + EVP_aes_128_ctr := nil; + EVP_aes_128_ccm := nil; + EVP_aes_128_gcm := nil; + EVP_aes_128_xts := nil; + EVP_aes_128_wrap := nil; + EVP_aes_128_wrap_pad := nil; {introduced 1.1.0} + EVP_aes_128_ocb := nil; {introduced 1.1.0} + EVP_aes_192_ecb := nil; + EVP_aes_192_cbc := nil; + EVP_aes_192_cfb1 := nil; + EVP_aes_192_cfb8 := nil; + EVP_aes_192_cfb128 := nil; + EVP_aes_192_ofb := nil; + EVP_aes_192_ctr := nil; + EVP_aes_192_ccm := nil; + EVP_aes_192_gcm := nil; + EVP_aes_192_wrap := nil; + EVP_aes_192_wrap_pad := nil; {introduced 1.1.0} + EVP_aes_192_ocb := nil; {introduced 1.1.0} + EVP_aes_256_ecb := nil; + EVP_aes_256_cbc := nil; + EVP_aes_256_cfb1 := nil; + EVP_aes_256_cfb8 := nil; + EVP_aes_256_cfb128 := nil; + EVP_aes_256_ofb := nil; + EVP_aes_256_ctr := nil; + EVP_aes_256_ccm := nil; + EVP_aes_256_gcm := nil; + EVP_aes_256_xts := nil; + EVP_aes_256_wrap := nil; + EVP_aes_256_wrap_pad := nil; {introduced 1.1.0} + EVP_aes_256_ocb := nil; {introduced 1.1.0} + EVP_aes_128_cbc_hmac_sha1 := nil; + EVP_aes_256_cbc_hmac_sha1 := nil; + EVP_aes_128_cbc_hmac_sha256 := nil; + EVP_aes_256_cbc_hmac_sha256 := nil; + EVP_aria_128_ecb := nil; {introduced 1.1.0} + EVP_aria_128_cbc := nil; {introduced 1.1.0} + EVP_aria_128_cfb1 := nil; {introduced 1.1.0} + EVP_aria_128_cfb8 := nil; {introduced 1.1.0} + EVP_aria_128_cfb128 := nil; {introduced 1.1.0} + EVP_aria_128_ctr := nil; {introduced 1.1.0} + EVP_aria_128_ofb := nil; {introduced 1.1.0} + EVP_aria_128_gcm := nil; {introduced 1.1.0} + EVP_aria_128_ccm := nil; {introduced 1.1.0} + EVP_aria_192_ecb := nil; {introduced 1.1.0} + EVP_aria_192_cbc := nil; {introduced 1.1.0} + EVP_aria_192_cfb1 := nil; {introduced 1.1.0} + EVP_aria_192_cfb8 := nil; {introduced 1.1.0} + EVP_aria_192_cfb128 := nil; {introduced 1.1.0} + EVP_aria_192_ctr := nil; {introduced 1.1.0} + EVP_aria_192_ofb := nil; {introduced 1.1.0} + EVP_aria_192_gcm := nil; {introduced 1.1.0} + EVP_aria_192_ccm := nil; {introduced 1.1.0} + EVP_aria_256_ecb := nil; {introduced 1.1.0} + EVP_aria_256_cbc := nil; {introduced 1.1.0} + EVP_aria_256_cfb1 := nil; {introduced 1.1.0} + EVP_aria_256_cfb8 := nil; {introduced 1.1.0} + EVP_aria_256_cfb128 := nil; {introduced 1.1.0} + EVP_aria_256_ctr := nil; {introduced 1.1.0} + EVP_aria_256_ofb := nil; {introduced 1.1.0} + EVP_aria_256_gcm := nil; {introduced 1.1.0} + EVP_aria_256_ccm := nil; {introduced 1.1.0} + EVP_camellia_128_ecb := nil; + EVP_camellia_128_cbc := nil; + EVP_camellia_128_cfb1 := nil; + EVP_camellia_128_cfb8 := nil; + EVP_camellia_128_cfb128 := nil; + EVP_camellia_128_ofb := nil; + EVP_camellia_128_ctr := nil; {introduced 1.1.0} + EVP_camellia_192_ecb := nil; + EVP_camellia_192_cbc := nil; + EVP_camellia_192_cfb1 := nil; + EVP_camellia_192_cfb8 := nil; + EVP_camellia_192_cfb128 := nil; + EVP_camellia_192_ofb := nil; + EVP_camellia_192_ctr := nil; {introduced 1.1.0} + EVP_camellia_256_ecb := nil; + EVP_camellia_256_cbc := nil; + EVP_camellia_256_cfb1 := nil; + EVP_camellia_256_cfb8 := nil; + EVP_camellia_256_cfb128 := nil; + EVP_camellia_256_ofb := nil; + EVP_camellia_256_ctr := nil; {introduced 1.1.0} + EVP_chacha20 := nil; {introduced 1.1.0} + EVP_chacha20_poly1305 := nil; {introduced 1.1.0} + EVP_seed_ecb := nil; + EVP_seed_cbc := nil; + EVP_seed_cfb128 := nil; + EVP_seed_ofb := nil; + EVP_sm4_ecb := nil; {introduced 1.1.0} + EVP_sm4_cbc := nil; {introduced 1.1.0} + EVP_sm4_cfb128 := nil; {introduced 1.1.0} + EVP_sm4_ofb := nil; {introduced 1.1.0} + EVP_sm4_ctr := nil; {introduced 1.1.0} + EVP_add_cipher := nil; + EVP_add_digest := nil; + EVP_get_cipherbyname := nil; + EVP_get_digestbyname := nil; + EVP_CIPHER_do_all := nil; + EVP_CIPHER_do_all_sorted := nil; + EVP_MD_do_all := nil; + EVP_MD_do_all_sorted := nil; + EVP_PKEY_decrypt_old := nil; + EVP_PKEY_encrypt_old := nil; + EVP_PKEY_type := nil; + EVP_PKEY_id := nil; {removed 3.0.0} + EVP_PKEY_base_id := nil; {removed 3.0.0} + EVP_PKEY_bits := nil; {removed 3.0.0} + EVP_PKEY_security_bits := nil; {introduced 1.1.0 removed 3.0.0} + EVP_PKEY_size := nil; {removed 3.0.0} + EVP_PKEY_set_type := nil; + EVP_PKEY_set_type_str := nil; + EVP_PKEY_set_alias_type := nil; {introduced 1.1.0 removed 3.0.0} + EVP_PKEY_set1_engine := nil; {introduced 1.1.0} + EVP_PKEY_get0_engine := nil; {introduced 1.1.0} + EVP_PKEY_assign := nil; + EVP_PKEY_get0 := nil; + EVP_PKEY_get0_hmac := nil; {introduced 1.1.0} + EVP_PKEY_get0_poly1305 := nil; {introduced 1.1.0} + EVP_PKEY_get0_siphash := nil; {introduced 1.1.0} + EVP_PKEY_set1_RSA := nil; + EVP_PKEY_get0_RSA := nil; {introduced 1.1.0} + EVP_PKEY_get1_RSA := nil; + EVP_PKEY_set1_DSA := nil; + EVP_PKEY_get0_DSA := nil; {introduced 1.1.0} + EVP_PKEY_get1_DSA := nil; + EVP_PKEY_set1_DH := nil; + EVP_PKEY_get0_DH := nil; {introduced 1.1.0} + EVP_PKEY_get1_DH := nil; + EVP_PKEY_set1_EC_KEY := nil; + EVP_PKEY_get0_EC_KEY := nil; {introduced 1.1.0} + EVP_PKEY_get1_EC_KEY := nil; + EVP_PKEY_new := nil; + EVP_PKEY_up_ref := nil; {introduced 1.1.0} + EVP_PKEY_free := nil; + d2i_PublicKey := nil; + i2d_PublicKey := nil; + d2i_PrivateKey := nil; + d2i_AutoPrivateKey := nil; + i2d_PrivateKey := nil; + EVP_PKEY_copy_parameters := nil; + EVP_PKEY_missing_parameters := nil; + EVP_PKEY_save_parameters := nil; + EVP_PKEY_cmp_parameters := nil; + EVP_PKEY_cmp := nil; + EVP_PKEY_print_public := nil; + EVP_PKEY_print_private := nil; + EVP_PKEY_print_params := nil; + EVP_PKEY_get_default_digest_nid := nil; + EVP_PKEY_set1_tls_encodedpoint := nil; {introduced 1.1.0 removed 3.0.0} + EVP_PKEY_get1_tls_encodedpoint := nil; {introduced 1.1.0 removed 3.0.0} + EVP_CIPHER_type := nil; {removed 3.0.0} + EVP_CIPHER_param_to_asn1 := nil; + EVP_CIPHER_asn1_to_param := nil; + EVP_CIPHER_set_asn1_iv := nil; + EVP_CIPHER_get_asn1_iv := nil; + PKCS5_PBE_keyivgen := nil; + PKCS5_PBKDF2_HMAC_SHA1 := nil; + PKCS5_PBKDF2_HMAC := nil; + PKCS5_v2_PBE_keyivgen := nil; + EVP_PBE_scrypt := nil; {introduced 1.1.0} + PKCS5_v2_scrypt_keyivgen := nil; {introduced 1.1.0} + PKCS5_PBE_add := nil; + EVP_PBE_CipherInit := nil; + EVP_PBE_alg_add_type := nil; + EVP_PBE_alg_add := nil; + EVP_PBE_find := nil; + EVP_PBE_cleanup := nil; + EVP_PBE_get := nil; {introduced 1.1.0} + EVP_PKEY_asn1_get_count := nil; + EVP_PKEY_asn1_get0 := nil; + EVP_PKEY_asn1_find := nil; + EVP_PKEY_asn1_find_str := nil; + EVP_PKEY_asn1_add0 := nil; + EVP_PKEY_asn1_add_alias := nil; + EVP_PKEY_asn1_get0_info := nil; + EVP_PKEY_get0_asn1 := nil; + EVP_PKEY_asn1_new := nil; + EVP_PKEY_asn1_copy := nil; + EVP_PKEY_asn1_free := nil; + EVP_PKEY_asn1_set_public := nil; + EVP_PKEY_asn1_set_private := nil; + EVP_PKEY_asn1_set_param := nil; + EVP_PKEY_asn1_set_free := nil; + EVP_PKEY_asn1_set_ctrl := nil; + EVP_PKEY_asn1_set_item := nil; + EVP_PKEY_asn1_set_siginf := nil; {introduced 1.1.0} + EVP_PKEY_asn1_set_check := nil; {introduced 1.1.0} + EVP_PKEY_asn1_set_public_check := nil; {introduced 1.1.0} + EVP_PKEY_asn1_set_param_check := nil; {introduced 1.1.0} + EVP_PKEY_asn1_set_set_priv_key := nil; {introduced 1.1.0} + EVP_PKEY_asn1_set_set_pub_key := nil; {introduced 1.1.0} + EVP_PKEY_asn1_set_get_priv_key := nil; {introduced 1.1.0} + EVP_PKEY_asn1_set_get_pub_key := nil; {introduced 1.1.0} + EVP_PKEY_asn1_set_security_bits := nil; {introduced 1.1.0} + EVP_PKEY_meth_find := nil; + EVP_PKEY_meth_new := nil; + EVP_PKEY_meth_get0_info := nil; + EVP_PKEY_meth_copy := nil; + EVP_PKEY_meth_free := nil; + EVP_PKEY_meth_add0 := nil; + EVP_PKEY_meth_remove := nil; {introduced 1.1.0} + EVP_PKEY_meth_get_count := nil; {introduced 1.1.0} + EVP_PKEY_meth_get0 := nil; {introduced 1.1.0} + EVP_PKEY_CTX_new := nil; + EVP_PKEY_CTX_new_id := nil; + EVP_PKEY_CTX_dup := nil; + EVP_PKEY_CTX_free := nil; + EVP_PKEY_CTX_ctrl := nil; + EVP_PKEY_CTX_ctrl_str := nil; + EVP_PKEY_CTX_ctrl_uint64 := nil; {introduced 1.1.0} + EVP_PKEY_CTX_str2ctrl := nil; {introduced 1.1.0} + EVP_PKEY_CTX_hex2ctrl := nil; {introduced 1.1.0} + EVP_PKEY_CTX_md := nil; {introduced 1.1.0} + EVP_PKEY_CTX_get_operation := nil; + EVP_PKEY_CTX_set0_keygen_info := nil; + EVP_PKEY_new_mac_key := nil; + EVP_PKEY_new_raw_private_key := nil; {introduced 1.1.0} + EVP_PKEY_new_raw_public_key := nil; {introduced 1.1.0} + EVP_PKEY_get_raw_private_key := nil; {introduced 1.1.0} + EVP_PKEY_get_raw_public_key := nil; {introduced 1.1.0} + EVP_PKEY_new_CMAC_key := nil; {introduced 1.1.0} + EVP_PKEY_CTX_set_data := nil; + EVP_PKEY_CTX_get_data := nil; + EVP_PKEY_CTX_get0_pkey := nil; + EVP_PKEY_CTX_get0_peerkey := nil; + EVP_PKEY_CTX_set_app_data := nil; + EVP_PKEY_CTX_get_app_data := nil; + EVP_PKEY_sign_init := nil; + EVP_PKEY_sign := nil; + EVP_PKEY_verify_init := nil; + EVP_PKEY_verify := nil; + EVP_PKEY_verify_recover_init := nil; + EVP_PKEY_verify_recover := nil; + EVP_PKEY_encrypt_init := nil; + EVP_PKEY_encrypt := nil; + EVP_PKEY_decrypt_init := nil; + EVP_PKEY_decrypt := nil; + EVP_PKEY_derive_init := nil; + EVP_PKEY_derive_set_peer := nil; + EVP_PKEY_derive := nil; + EVP_PKEY_paramgen_init := nil; + EVP_PKEY_paramgen := nil; + EVP_PKEY_keygen_init := nil; + EVP_PKEY_keygen := nil; + EVP_PKEY_check := nil; {introduced 1.1.0} + EVP_PKEY_public_check := nil; {introduced 1.1.0} + EVP_PKEY_param_check := nil; {introduced 1.1.0} + EVP_PKEY_CTX_set_cb := nil; + EVP_PKEY_CTX_get_cb := nil; + EVP_PKEY_CTX_get_keygen_info := nil; + EVP_PKEY_meth_set_init := nil; + EVP_PKEY_meth_set_copy := nil; + EVP_PKEY_meth_set_cleanup := nil; + EVP_PKEY_meth_set_paramgen := nil; + EVP_PKEY_meth_set_keygen := nil; + EVP_PKEY_meth_set_sign := nil; + EVP_PKEY_meth_set_verify := nil; + EVP_PKEY_meth_set_verify_recover := nil; + EVP_PKEY_meth_set_signctx := nil; + EVP_PKEY_meth_set_verifyctx := nil; + EVP_PKEY_meth_set_encrypt := nil; + EVP_PKEY_meth_set_decrypt := nil; + EVP_PKEY_meth_set_derive := nil; + EVP_PKEY_meth_set_ctrl := nil; + EVP_PKEY_meth_set_digestsign := nil; {introduced 1.1.0} + EVP_PKEY_meth_set_digestverify := nil; {introduced 1.1.0} + EVP_PKEY_meth_set_check := nil; {introduced 1.1.0} + EVP_PKEY_meth_set_public_check := nil; {introduced 1.1.0} + EVP_PKEY_meth_set_param_check := nil; {introduced 1.1.0} + EVP_PKEY_meth_set_digest_custom := nil; {introduced 1.1.0} + EVP_PKEY_meth_get_init := nil; + EVP_PKEY_meth_get_copy := nil; + EVP_PKEY_meth_get_cleanup := nil; + EVP_PKEY_meth_get_paramgen := nil; + EVP_PKEY_meth_get_keygen := nil; + EVP_PKEY_meth_get_sign := nil; + EVP_PKEY_meth_get_verify := nil; + EVP_PKEY_meth_get_verify_recover := nil; + EVP_PKEY_meth_get_signctx := nil; + EVP_PKEY_meth_get_verifyctx := nil; + EVP_PKEY_meth_get_encrypt := nil; + EVP_PKEY_meth_get_decrypt := nil; + EVP_PKEY_meth_get_derive := nil; + EVP_PKEY_meth_get_ctrl := nil; + EVP_PKEY_meth_get_digestsign := nil; {introduced 1.1.0} + EVP_PKEY_meth_get_digestverify := nil; {introduced 1.1.0} + EVP_PKEY_meth_get_check := nil; {introduced 1.1.0} + EVP_PKEY_meth_get_public_check := nil; {introduced 1.1.0} + EVP_PKEY_meth_get_param_check := nil; {introduced 1.1.0} + EVP_PKEY_meth_get_digest_custom := nil; {introduced 1.1.0} + EVP_add_alg_module := nil; + OpenSSL_add_all_ciphers := nil; {removed 1.1.0} + OpenSSL_add_all_digests := nil; {removed 1.1.0} + EVP_cleanup := nil; {removed 1.1.0} +end; +{$ELSE} +function EVP_PKEY_assign_RSA(pkey: PEVP_PKEY; rsa: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_RSA, rsa); +end; + +//# define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA, (char *)(dsa)) +function EVP_PKEY_assign_DSA(pkey: PEVP_PKEY; dsa: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_DSA, dsa); +end; + +//# define EVP_PKEY_assign_DH(pkey,dh) EVP_PKEY_assign((pkey),EVP_PKEY_DH, (char *)(dh)) +function EVP_PKEY_assign_DH(pkey: PEVP_PKEY; dh: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_DH, dh); +end; + +//# define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC, (char *)(eckey)) +function EVP_PKEY_assign_EC_KEY(pkey: PEVP_PKEY; eckey: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_EC, eckey); +end; + +//# define EVP_PKEY_assign_SIPHASH(pkey,shkey) EVP_PKEY_assign((pkey),EVP_PKEY_SIPHASH, (char *)(shkey)) +function EVP_PKEY_assign_SIPHASH(pkey: PEVP_PKEY; shkey: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_SIPHASH, shkey); +end; + +//# define EVP_PKEY_assign_POLY1305(pkey,polykey) EVP_PKEY_assign((pkey),EVP_PKEY_POLY1305, (char *)(polykey)) +function EVP_PKEY_assign_POLY1305(pkey: PEVP_PKEY; polykey: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_POLY1305, polykey); +end; + +procedure OpenSSL_add_all_ciphers; +begin + OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS, nil); +end; + +procedure OpenSSL_add_all_digests; +begin + OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_DIGESTS, Nil); +end; + +procedure EVP_cleanup; +begin +end; + +procedure BIO_set_md(v1: PBIO; const md: PEVP_MD); +begin + {define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,0,(char *)(md))} + BIO_ctrl(v1,BIO_C_SET_MD,0,PIdAnsiChar(md)); +end; + +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_evperr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_evperr.pas new file mode 100644 index 000000000..a87c2abc8 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_evperr.pas @@ -0,0 +1,282 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_evperr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_evperr.h2pas + and this file regenerated. IdOpenSSLHeaders_evperr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_evperr; + +interface + +// Headers for OpenSSL 1.1.1 +// evperr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * EVP function codes. + *) + EVP_F_AESNI_INIT_KEY = 165; + EVP_F_AESNI_XTS_INIT_KEY = 207; + EVP_F_AES_GCM_CTRL = 196; + EVP_F_AES_INIT_KEY = 133; + EVP_F_AES_OCB_CIPHER = 169; + EVP_F_AES_T4_INIT_KEY = 178; + EVP_F_AES_T4_XTS_INIT_KEY = 208; + EVP_F_AES_WRAP_CIPHER = 170; + EVP_F_AES_XTS_INIT_KEY = 209; + EVP_F_ALG_MODULE_INIT = 177; + EVP_F_ARIA_CCM_INIT_KEY = 175; + EVP_F_ARIA_GCM_CTRL = 197; + EVP_F_ARIA_GCM_INIT_KEY = 176; + EVP_F_ARIA_INIT_KEY = 185; + EVP_F_B64_NEW = 198; + EVP_F_CAMELLIA_INIT_KEY = 159; + EVP_F_CHACHA20_POLY1305_CTRL = 182; + EVP_F_CMLL_T4_INIT_KEY = 179; + EVP_F_DES_EDE3_WRAP_CIPHER = 171; + EVP_F_DO_SIGVER_INIT = 161; + EVP_F_ENC_NEW = 199; + EVP_F_EVP_CIPHERINIT_EX = 123; + EVP_F_EVP_CIPHER_ASN1_TO_PARAM = 204; + EVP_F_EVP_CIPHER_CTX_COPY = 163; + EVP_F_EVP_CIPHER_CTX_CTRL = 124; + EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH = 122; + EVP_F_EVP_CIPHER_PARAM_TO_ASN1 = 205; + EVP_F_EVP_DECRYPTFINAL_EX = 101; + EVP_F_EVP_DECRYPTUPDATE = 166; + EVP_F_EVP_DIGESTFINALXOF = 174; + EVP_F_EVP_DIGESTINIT_EX = 128; + EVP_F_EVP_ENCRYPTDECRYPTUPDATE = 219; + EVP_F_EVP_ENCRYPTFINAL_EX = 127; + EVP_F_EVP_ENCRYPTUPDATE = 167; + EVP_F_EVP_MD_CTX_COPY_EX = 110; + EVP_F_EVP_MD_SIZE = 162; + EVP_F_EVP_OPENINIT = 102; + EVP_F_EVP_PBE_ALG_ADD = 115; + EVP_F_EVP_PBE_ALG_ADD_TYPE = 160; + EVP_F_EVP_PBE_CIPHERINIT = 116; + EVP_F_EVP_PBE_SCRYPT = 181; + EVP_F_EVP_PKCS82PKEY = 111; + EVP_F_EVP_PKEY2PKCS8 = 113; + EVP_F_EVP_PKEY_ASN1_ADD0 = 188; + EVP_F_EVP_PKEY_CHECK = 186; + EVP_F_EVP_PKEY_COPY_PARAMETERS = 103; + EVP_F_EVP_PKEY_CTX_CTRL = 137; + EVP_F_EVP_PKEY_CTX_CTRL_STR = 150; + EVP_F_EVP_PKEY_CTX_DUP = 156; + EVP_F_EVP_PKEY_CTX_MD = 168; + EVP_F_EVP_PKEY_DECRYPT = 104; + EVP_F_EVP_PKEY_DECRYPT_INIT = 138; + EVP_F_EVP_PKEY_DECRYPT_OLD = 151; + EVP_F_EVP_PKEY_DERIVE = 153; + EVP_F_EVP_PKEY_DERIVE_INIT = 154; + EVP_F_EVP_PKEY_DERIVE_SET_PEER = 155; + EVP_F_EVP_PKEY_ENCRYPT = 105; + EVP_F_EVP_PKEY_ENCRYPT_INIT = 139; + EVP_F_EVP_PKEY_ENCRYPT_OLD = 152; + EVP_F_EVP_PKEY_GET0_DH = 119; + EVP_F_EVP_PKEY_GET0_DSA = 120; + EVP_F_EVP_PKEY_GET0_EC_KEY = 131; + EVP_F_EVP_PKEY_GET0_HMAC = 183; + EVP_F_EVP_PKEY_GET0_POLY1305 = 184; + EVP_F_EVP_PKEY_GET0_RSA = 121; + EVP_F_EVP_PKEY_GET0_SIPHASH = 172; + EVP_F_EVP_PKEY_GET_RAW_PRIVATE_KEY = 202; + EVP_F_EVP_PKEY_GET_RAW_PUBLIC_KEY = 203; + EVP_F_EVP_PKEY_KEYGEN = 146; + EVP_F_EVP_PKEY_KEYGEN_INIT = 147; + EVP_F_EVP_PKEY_METH_ADD0 = 194; + EVP_F_EVP_PKEY_METH_NEW = 195; + EVP_F_EVP_PKEY_NEW = 106; + EVP_F_EVP_PKEY_NEW_CMAC_KEY = 193; + EVP_F_EVP_PKEY_NEW_RAW_PRIVATE_KEY = 191; + EVP_F_EVP_PKEY_NEW_RAW_PUBLIC_KEY = 192; + EVP_F_EVP_PKEY_PARAMGEN = 148; + EVP_F_EVP_PKEY_PARAMGEN_INIT = 149; + EVP_F_EVP_PKEY_PARAM_CHECK = 189; + EVP_F_EVP_PKEY_PUBLIC_CHECK = 190; + EVP_F_EVP_PKEY_SET1_ENGINE = 187; + EVP_F_EVP_PKEY_SET_ALIAS_TYPE = 206; + EVP_F_EVP_PKEY_SIGN = 140; + EVP_F_EVP_PKEY_SIGN_INIT = 141; + EVP_F_EVP_PKEY_VERIFY = 142; + EVP_F_EVP_PKEY_VERIFY_INIT = 143; + EVP_F_EVP_PKEY_VERIFY_RECOVER = 144; + EVP_F_EVP_PKEY_VERIFY_RECOVER_INIT = 145; + EVP_F_EVP_SIGNFINAL = 107; + EVP_F_EVP_VERIFYFINAL = 108; + EVP_F_INT_CTX_NEW = 157; + EVP_F_OK_NEW = 200; + EVP_F_PKCS5_PBE_KEYIVGEN = 117; + EVP_F_PKCS5_V2_PBE_KEYIVGEN = 118; + EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN = 164; + EVP_F_PKCS5_V2_SCRYPT_KEYIVGEN = 180; + EVP_F_PKEY_SET_TYPE = 158; + EVP_F_RC2_MAGIC_TO_METH = 109; + EVP_F_RC5_CTRL = 125; + EVP_F_R_32_12_16_INIT_KEY = 242; + EVP_F_S390X_AES_GCM_CTRL = 201; + EVP_F_UPDATE = 173; + + (* + * EVP reason codes. + *) + EVP_R_AES_KEY_SETUP_FAILED = 143; + EVP_R_ARIA_KEY_SETUP_FAILED = 176; + EVP_R_BAD_DECRYPT = 100; + EVP_R_BAD_KEY_LENGTH = 195; + EVP_R_BUFFER_TOO_SMALL = 155; + EVP_R_CAMELLIA_KEY_SETUP_FAILED = 157; + EVP_R_CIPHER_PARAMETER_ERROR = 122; + EVP_R_COMMAND_NOT_SUPPORTED = 147; + EVP_R_COPY_ERROR = 173; + EVP_R_CTRL_NOT_IMPLEMENTED = 132; + EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED = 133; + EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH = 138; + EVP_R_DECODE_ERROR = 114; + EVP_R_DIFFERENT_KEY_TYPES = 101; + EVP_R_DIFFERENT_PARAMETERS = 153; + EVP_R_ERROR_LOADING_SECTION = 165; + EVP_R_ERROR_SETTING_FIPS_MODE = 166; + EVP_R_EXPECTING_AN_HMAC_KEY = 174; + EVP_R_EXPECTING_AN_RSA_KEY = 127; + EVP_R_EXPECTING_A_DH_KEY = 128; + EVP_R_EXPECTING_A_DSA_KEY = 129; + EVP_R_EXPECTING_A_EC_KEY = 142; + EVP_R_EXPECTING_A_POLY1305_KEY = 164; + EVP_R_EXPECTING_A_SIPHASH_KEY = 175; + EVP_R_FIPS_MODE_NOT_SUPPORTED = 167; + EVP_R_GET_RAW_KEY_FAILED = 182; + EVP_R_ILLEGAL_SCRYPT_PARAMETERS = 171; + EVP_R_INITIALIZATION_ERROR = 134; + EVP_R_INPUT_NOT_INITIALIZED = 111; + EVP_R_INVALID_DIGEST = 152; + EVP_R_INVALID_FIPS_MODE = 168; + EVP_R_INVALID_KEY = 163; + EVP_R_INVALID_KEY_LENGTH = 130; + EVP_R_INVALID_OPERATION = 148; + EVP_R_KEYGEN_FAILURE = 120; + EVP_R_KEY_SETUP_FAILED = 180; + EVP_R_MEMORY_LIMIT_EXCEEDED = 172; + EVP_R_MESSAGE_DIGEST_IS_NULL = 159; + EVP_R_METHOD_NOT_SUPPORTED = 144; + EVP_R_MISSING_PARAMETERS = 103; + EVP_R_NOT_XOF_OR_INVALID_LENGTH = 178; + EVP_R_NO_CIPHER_SET = 131; + EVP_R_NO_DEFAULT_DIGEST = 158; + EVP_R_NO_DIGEST_SET = 139; + EVP_R_NO_KEY_SET = 154; + EVP_R_NO_OPERATION_SET = 149; + EVP_R_ONLY_ONESHOT_SUPPORTED = 177; + EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE = 150; + EVP_R_OPERATON_NOT_INITIALIZED = 151; + EVP_R_PARTIALLY_OVERLAPPING = 162; + EVP_R_PBKDF2_ERROR = 181; + EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED = 179; + EVP_R_PRIVATE_KEY_DECODE_ERROR = 145; + EVP_R_PRIVATE_KEY_ENCODE_ERROR = 146; + EVP_R_PUBLIC_KEY_NOT_RSA = 106; + EVP_R_UNKNOWN_CIPHER = 160; + EVP_R_UNKNOWN_DIGEST = 161; + EVP_R_UNKNOWN_OPTION = 169; + EVP_R_UNKNOWN_PBE_ALGORITHM = 121; + EVP_R_UNSUPPORTED_ALGORITHM = 156; + EVP_R_UNSUPPORTED_CIPHER = 107; + EVP_R_UNSUPPORTED_KEYLENGTH = 123; + EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION = 124; + EVP_R_UNSUPPORTED_KEY_SIZE = 108; + EVP_R_UNSUPPORTED_NUMBER_OF_ROUNDS = 135; + EVP_R_UNSUPPORTED_PRF = 125; + EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM = 118; + EVP_R_UNSUPPORTED_SALT_TYPE = 126; + EVP_R_WRAP_MODE_NOT_ALLOWED = 170; + EVP_R_WRONG_FINAL_BLOCK_LENGTH = 109; + EVP_R_XTS_DUPLICATED_KEYS = 183; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_EVP_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_EVP_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_EVP_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_EVP_strings := LoadFunction('ERR_load_EVP_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_EVP_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_hmac.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_hmac.pas new file mode 100644 index 000000000..632d62e66 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_hmac.pas @@ -0,0 +1,155 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_hmac.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_hmac.h2pas + and this file regenerated. IdOpenSSLHeaders_hmac.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_hmac; + +interface + +// Headers for OpenSSL 1.1.1 +// hmac.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM HMAC_size} + {$EXTERNALSYM HMAC_CTX_new} + {$EXTERNALSYM HMAC_CTX_reset} + {$EXTERNALSYM HMAC_CTX_free} + {$EXTERNALSYM HMAC_Init_ex} + {$EXTERNALSYM HMAC_Update} + {$EXTERNALSYM HMAC_Final} + {$EXTERNALSYM HMAC} + {$EXTERNALSYM HMAC_CTX_copy} + {$EXTERNALSYM HMAC_CTX_set_flags} + {$EXTERNALSYM HMAC_CTX_get_md} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + HMAC_size: function(const e: PHMAC_CTX): TIdC_SIZET; cdecl = nil; + HMAC_CTX_new: function: PHMAC_CTX; cdecl = nil; + HMAC_CTX_reset: function(ctx: PHMAC_CTX): TIdC_INT; cdecl = nil; + HMAC_CTX_free: procedure(ctx: PHMAC_CTX); cdecl = nil; + + HMAC_Init_ex: function(ctx: PHMAC_CTX; const key: Pointer; len: TIdC_INT; const md: PEVP_MD; impl: PENGINE): TIdC_INT; cdecl = nil; + HMAC_Update: function(ctx: PHMAC_CTX; const data: PByte; len: TIdC_SIZET): TIdC_INT; cdecl = nil; + HMAC_Final: function(ctx: PHMAC_CTX; md: PByte; len: PByte): TIdC_INT; cdecl = nil; + HMAC: function(const evp_md: PEVP_MD; const key: Pointer; key_len: TIdC_INT; const d: PByte; n: TIdC_SIZET; md: PByte; md_len: PIdC_INT): PByte; cdecl = nil; + HMAC_CTX_copy: function(dctx: PHMAC_CTX; sctx: PHMAC_CTX): TIdC_INT; cdecl = nil; + + HMAC_CTX_set_flags: procedure(ctx: PHMAC_CTX; flags: TIdC_ULONG); cdecl = nil; + HMAC_CTX_get_md: function(const ctx: PHMAC_CTX): PEVP_MD; cdecl = nil; + +{$ELSE} + function HMAC_size(const e: PHMAC_CTX): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function HMAC_CTX_new: PHMAC_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function HMAC_CTX_reset(ctx: PHMAC_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure HMAC_CTX_free(ctx: PHMAC_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function HMAC_Init_ex(ctx: PHMAC_CTX; const key: Pointer; len: TIdC_INT; const md: PEVP_MD; impl: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function HMAC_Update(ctx: PHMAC_CTX; const data: PByte; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function HMAC_Final(ctx: PHMAC_CTX; md: PByte; len: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function HMAC(const evp_md: PEVP_MD; const key: Pointer; key_len: TIdC_INT; const d: PByte; n: TIdC_SIZET; md: PByte; md_len: PIdC_INT): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function HMAC_CTX_copy(dctx: PHMAC_CTX; sctx: PHMAC_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure HMAC_CTX_set_flags(ctx: PHMAC_CTX; flags: TIdC_ULONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function HMAC_CTX_get_md(const ctx: PHMAC_CTX): PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + HMAC_size := LoadFunction('HMAC_size',AFailed); + HMAC_CTX_new := LoadFunction('HMAC_CTX_new',AFailed); + HMAC_CTX_reset := LoadFunction('HMAC_CTX_reset',AFailed); + HMAC_CTX_free := LoadFunction('HMAC_CTX_free',AFailed); + HMAC_Init_ex := LoadFunction('HMAC_Init_ex',AFailed); + HMAC_Update := LoadFunction('HMAC_Update',AFailed); + HMAC_Final := LoadFunction('HMAC_Final',AFailed); + HMAC := LoadFunction('HMAC',AFailed); + HMAC_CTX_copy := LoadFunction('HMAC_CTX_copy',AFailed); + HMAC_CTX_set_flags := LoadFunction('HMAC_CTX_set_flags',AFailed); + HMAC_CTX_get_md := LoadFunction('HMAC_CTX_get_md',AFailed); +end; + +procedure Unload; +begin + HMAC_size := nil; + HMAC_CTX_new := nil; + HMAC_CTX_reset := nil; + HMAC_CTX_free := nil; + HMAC_Init_ex := nil; + HMAC_Update := nil; + HMAC_Final := nil; + HMAC := nil; + HMAC_CTX_copy := nil; + HMAC_CTX_set_flags := nil; + HMAC_CTX_get_md := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_idea.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_idea.pas new file mode 100644 index 000000000..196a9e0e7 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_idea.pas @@ -0,0 +1,153 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_idea.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_idea.h2pas + and this file regenerated. IdOpenSSLHeaders_idea.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_idea; + +interface + +// Headers for OpenSSL 1.1.1 +// idea.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // Added '_CONST' to avoid name clashes + IDEA_ENCRYPT_CONST = 1; + // Added '_CONST' to avoid name clashes + IDEA_DECRYPT_CONST = 0; + + IDEA_BLOCK = 8; + IDEA_KEY_LENGTH = 16; + +type + IDEA_INT = type TIdC_INT; + + idea_key_st = record + data: array[0..8, 0..5] of IDEA_INT; + end; + IDEA_KEY_SCHEDULE = idea_key_st; + PIDEA_KEY_SCHEDULE = ^IDEA_KEY_SCHEDULE; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM IDEA_options} + {$EXTERNALSYM IDEA_ecb_encrypt} + {$EXTERNALSYM IDEA_set_encrypt_key} + {$EXTERNALSYM IDEA_set_decrypt_key} + {$EXTERNALSYM IDEA_cbc_encrypt} + {$EXTERNALSYM IDEA_cfb64_encrypt} + {$EXTERNALSYM IDEA_ofb64_encrypt} + {$EXTERNALSYM IDEA_encrypt} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + IDEA_options: function: PIdAnsiChar; cdecl = nil; + IDEA_ecb_encrypt: procedure(const in_: PByte; out_: PByte; ks: PIDEA_KEY_SCHEDULE); cdecl = nil; + IDEA_set_encrypt_key: procedure(const key: PByte; ks: PIDEA_KEY_SCHEDULE); cdecl = nil; + IDEA_set_decrypt_key: procedure(ek: PIDEA_KEY_SCHEDULE; dk: PIDEA_KEY_SCHEDULE); cdecl = nil; + IDEA_cbc_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_LONG; ks: PIDEA_KEY_SCHEDULE; iv: PByte; enc: TIdC_INT); cdecl = nil; + IDEA_cfb64_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_LONG; ks: PIDEA_KEY_SCHEDULE; iv: PByte; num: PIdC_INT; enc: TIdC_INT); cdecl = nil; + IDEA_ofb64_encrypt: procedure(const in_: PByte; out_: PByte; length: TIdC_LONG; ks: PIDEA_KEY_SCHEDULE; iv: PByte; num: PIdC_INT); cdecl = nil; + IDEA_encrypt: procedure(in_: PIdC_LONG; ks: PIDEA_KEY_SCHEDULE); cdecl = nil; + +{$ELSE} + function IDEA_options: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure IDEA_ecb_encrypt(const in_: PByte; out_: PByte; ks: PIDEA_KEY_SCHEDULE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure IDEA_set_encrypt_key(const key: PByte; ks: PIDEA_KEY_SCHEDULE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure IDEA_set_decrypt_key(ek: PIDEA_KEY_SCHEDULE; dk: PIDEA_KEY_SCHEDULE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure IDEA_cbc_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; ks: PIDEA_KEY_SCHEDULE; iv: PByte; enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure IDEA_cfb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; ks: PIDEA_KEY_SCHEDULE; iv: PByte; num: PIdC_INT; enc: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure IDEA_ofb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; ks: PIDEA_KEY_SCHEDULE; iv: PByte; num: PIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure IDEA_encrypt(in_: PIdC_LONG; ks: PIDEA_KEY_SCHEDULE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + IDEA_options := LoadFunction('IDEA_options',AFailed); + IDEA_ecb_encrypt := LoadFunction('IDEA_ecb_encrypt',AFailed); + IDEA_set_encrypt_key := LoadFunction('IDEA_set_encrypt_key',AFailed); + IDEA_set_decrypt_key := LoadFunction('IDEA_set_decrypt_key',AFailed); + IDEA_cbc_encrypt := LoadFunction('IDEA_cbc_encrypt',AFailed); + IDEA_cfb64_encrypt := LoadFunction('IDEA_cfb64_encrypt',AFailed); + IDEA_ofb64_encrypt := LoadFunction('IDEA_ofb64_encrypt',AFailed); + IDEA_encrypt := LoadFunction('IDEA_encrypt',AFailed); +end; + +procedure Unload; +begin + IDEA_options := nil; + IDEA_ecb_encrypt := nil; + IDEA_set_encrypt_key := nil; + IDEA_set_decrypt_key := nil; + IDEA_cbc_encrypt := nil; + IDEA_cfb64_encrypt := nil; + IDEA_ofb64_encrypt := nil; + IDEA_encrypt := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_kdferr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_kdferr.pas new file mode 100644 index 000000000..5c603d211 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_kdferr.pas @@ -0,0 +1,133 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_kdferr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_kdferr.h2pas + and this file regenerated. IdOpenSSLHeaders_kdferr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_kdferr; + +interface + +// Headers for OpenSSL 1.1.1 +// kdferr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * KDF function codes. + *) + KDF_F_PKEY_HKDF_CTRL_STR = 103; + KDF_F_PKEY_HKDF_DERIVE = 102; + KDF_F_PKEY_HKDF_INIT = 108; + KDF_F_PKEY_SCRYPT_CTRL_STR = 104; + KDF_F_PKEY_SCRYPT_CTRL_UINT64 = 105; + KDF_F_PKEY_SCRYPT_DERIVE = 109; + KDF_F_PKEY_SCRYPT_INIT = 106; + KDF_F_PKEY_SCRYPT_SET_MEMBUF = 107; + KDF_F_PKEY_TLS1_PRF_CTRL_STR = 100; + KDF_F_PKEY_TLS1_PRF_DERIVE = 101; + KDF_F_PKEY_TLS1_PRF_INIT = 110; + KDF_F_TLS1_PRF_ALG = 111; + + (* + * KDF reason codes. + *) + KDF_R_INVALID_DIGEST = 100; + KDF_R_MISSING_ITERATION_COUNT = 109; + KDF_R_MISSING_KEY = 104; + KDF_R_MISSING_MESSAGE_DIGEST = 105; + KDF_R_MISSING_PARAMETER = 101; + KDF_R_MISSING_PASS = 110; + KDF_R_MISSING_SALT = 111; + KDF_R_MISSING_SECRET = 107; + KDF_R_MISSING_SEED = 106; + KDF_R_UNKNOWN_PARAMETER_TYPE = 103; + KDF_R_VALUE_ERROR = 108; + KDF_R_VALUE_MISSING = 102; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_KDF_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_KDF_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_KDF_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_KDF_strings := LoadFunction('ERR_load_KDF_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_KDF_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_obj_mac.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_obj_mac.pas new file mode 100644 index 000000000..8cd058393 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_obj_mac.pas @@ -0,0 +1,4102 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_obj_mac.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_obj_mac.h2pas + and this file regenerated. IdOpenSSLHeaders_obj_mac.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_obj_mac; + +interface + +// Headers for OpenSSL 1.1.1 +// obj_mac.h + + +const + SN_undef = AnsiString('UNDEF'); + LN_undef = AnsiString('undefined'); + NID_undef = 0; + + SN_itu_t = AnsiString('ITU-T'); + LN_itu_t = AnsiString('itu-t'); + NID_itu_t = 645; + + NID_ccitt = 404; + + SN_iso = AnsiString('ISO'); + LN_iso = AnsiString('iso'); + NID_iso = 181; + + SN_joint_iso_itu_t = AnsiString('JOINT-ISO-ITU-T'); + LN_joint_iso_itu_t = AnsiString('joint-iso-itu-t'); + NID_joint_iso_itu_t = 646; + + NID_joint_iso_ccitt = 393; + + SN_member_body = AnsiString('member-body'); + LN_member_body = AnsiString('ISO Member Body'); + NID_member_body = 182; + + SN_identified_organization = AnsiString('identified-organization'); + NID_identified_organization = 676; + + SN_hmac_md5 = AnsiString('HMAC-MD5'); + LN_hmac_md5 = AnsiString('hmac-md5'); + NID_hmac_md5 = 780; + + SN_hmac_sha1 = AnsiString('HMAC-SHA1'); + LN_hmac_sha1 = AnsiString('hmac-sha1'); + NID_hmac_sha1 = 781; + + SN_x509ExtAdmission = AnsiString('x509ExtAdmission'); + LN_x509ExtAdmission = AnsiString('Professional Information or basis for Admission'); + NID_x509ExtAdmission = 1093; + + SN_certicom_arc = AnsiString('certicom-arc'); + NID_certicom_arc = 677; + + SN_ieee = AnsiString('ieee'); + NID_ieee = 1170; + + SN_ieee_siswg = AnsiString('ieee-siswg'); + LN_ieee_siswg = AnsiString('IEEE Security in Storage Working Group'); + NID_ieee_siswg = 1171; + + SN_international_organizations = AnsiString('international-organizations'); + LN_international_organizations = AnsiString('International Organizations'); + NID_international_organizations = 647; + + SN_wap = AnsiString('wap'); + NID_wap = 678; + + SN_wap_wsg = AnsiString('wap-wsg'); + NID_wap_wsg = 679; + + SN_selected_attribute_types = AnsiString('selected-attribute-types'); + LN_selected_attribute_types = AnsiString('Selected Attribute Types'); + NID_selected_attribute_types = 394; + + SN_clearance = AnsiString('clearance'); + NID_clearance = 395; + + SN_ISO_US = AnsiString('ISO-US'); + LN_ISO_US = AnsiString('ISO US Member Body'); + NID_ISO_US = 183; + + SN_X9_57 = AnsiString('X9-57'); + LN_X9_57 = AnsiString('X9.57'); + NID_X9_57 = 184; + + SN_X9cm = AnsiString('X9cm'); + LN_X9cm = AnsiString('X9.57 CM ?'); + NID_X9cm = 185; + + SN_ISO_CN = AnsiString('ISO-CN'); + LN_ISO_CN = AnsiString('ISO CN Member Body'); + NID_ISO_CN = 1140; + + SN_oscca = AnsiString('oscca'); + NID_oscca = 1141; + + SN_sm_scheme = AnsiString('sm-scheme'); + NID_sm_scheme = 1142; + + SN_dsa = AnsiString('DSA'); + LN_dsa = AnsiString('dsaEncryption'); + NID_dsa = 116; + + SN_dsaWithSHA1 = AnsiString('DSA-SHA1'); + LN_dsaWithSHA1 = AnsiString('dsaWithSHA1'); + NID_dsaWithSHA1 = 113; + + SN_ansi_X9_62 = AnsiString('ansi-X9-62'); + LN_ansi_X9_62 = AnsiString('ANSI X9.62'); + NID_ansi_X9_62 = 405; + + SN_X9_62_prime_field = AnsiString('prime-field'); + NID_X9_62_prime_field = 406; + + SN_X9_62_characteristic_two_field = AnsiString('characteristic-two-field'); + NID_X9_62_characteristic_two_field = 407; + + SN_X9_62_id_characteristic_two_basis = AnsiString('id-characteristic-two-basis'); + NID_X9_62_id_characteristic_two_basis = 680; + + SN_X9_62_onBasis = AnsiString('onBasis'); + NID_X9_62_onBasis = 681; + + SN_X9_62_tpBasis = AnsiString('tpBasis'); + NID_X9_62_tpBasis = 682; + + SN_X9_62_ppBasis = AnsiString('ppBasis'); + NID_X9_62_ppBasis = 683; + + SN_X9_62_id_ecPublicKey = AnsiString('id-ecPublicKey'); + NID_X9_62_id_ecPublicKey = 408; + + SN_X9_62_c2pnb163v1 = AnsiString('c2pnb163v1'); + NID_X9_62_c2pnb163v1 = 684; + + SN_X9_62_c2pnb163v2 = AnsiString('c2pnb163v2'); + NID_X9_62_c2pnb163v2 = 685; + + SN_X9_62_c2pnb163v3 = AnsiString('c2pnb163v3'); + NID_X9_62_c2pnb163v3 = 686; + + SN_X9_62_c2pnb176v1 = AnsiString('c2pnb176v1'); + NID_X9_62_c2pnb176v1 = 687; + + SN_X9_62_c2tnb191v1 = AnsiString('c2tnb191v1'); + NID_X9_62_c2tnb191v1 = 688; + + SN_X9_62_c2tnb191v2 = AnsiString('c2tnb191v2'); + NID_X9_62_c2tnb191v2 = 689; + + SN_X9_62_c2tnb191v3 = AnsiString('c2tnb191v3'); + NID_X9_62_c2tnb191v3 = 690; + + SN_X9_62_c2onb191v4 = AnsiString('c2onb191v4'); + NID_X9_62_c2onb191v4 = 691; + + SN_X9_62_c2onb191v5 = AnsiString('c2onb191v5'); + NID_X9_62_c2onb191v5 = 692; + + SN_X9_62_c2pnb208w1 = AnsiString('c2pnb208w1'); + NID_X9_62_c2pnb208w1 = 693; + + SN_X9_62_c2tnb239v1 = AnsiString('c2tnb239v1'); + NID_X9_62_c2tnb239v1 = 694; + + SN_X9_62_c2tnb239v2 = AnsiString('c2tnb239v2'); + NID_X9_62_c2tnb239v2 = 695; + + SN_X9_62_c2tnb239v3 = AnsiString('c2tnb239v3'); + NID_X9_62_c2tnb239v3 = 696; + + SN_X9_62_c2onb239v4 = AnsiString('c2onb239v4'); + NID_X9_62_c2onb239v4 = 697; + + SN_X9_62_c2onb239v5 = AnsiString('c2onb239v5'); + NID_X9_62_c2onb239v5 = 698; + + SN_X9_62_c2pnb272w1 = AnsiString('c2pnb272w1'); + NID_X9_62_c2pnb272w1 = 699; + + SN_X9_62_c2pnb304w1 = AnsiString('c2pnb304w1'); + NID_X9_62_c2pnb304w1 = 700; + + SN_X9_62_c2tnb359v1 = AnsiString('c2tnb359v1'); + NID_X9_62_c2tnb359v1 = 701; + + SN_X9_62_c2pnb368w1 = AnsiString('c2pnb368w1'); + NID_X9_62_c2pnb368w1 = 702; + + SN_X9_62_c2tnb431r1 = AnsiString('c2tnb431r1'); + NID_X9_62_c2tnb431r1 = 703; + + SN_X9_62_prime192v1 = AnsiString('prime192v1'); + NID_X9_62_prime192v1 = 409; + + SN_X9_62_prime192v2 = AnsiString('prime192v2'); + NID_X9_62_prime192v2 = 410; + + SN_X9_62_prime192v3 = AnsiString('prime192v3'); + NID_X9_62_prime192v3 = 411; + + SN_X9_62_prime239v1 = AnsiString('prime239v1'); + NID_X9_62_prime239v1 = 412; + + SN_X9_62_prime239v2 = AnsiString('prime239v2'); + NID_X9_62_prime239v2 = 413; + + SN_X9_62_prime239v3 = AnsiString('prime239v3'); + NID_X9_62_prime239v3 = 414; + + SN_X9_62_prime256v1 = AnsiString('prime256v1'); + NID_X9_62_prime256v1 = 415; + + SN_ecdsa_with_SHA1 = AnsiString('ecdsa-with-SHA1'); + NID_ecdsa_with_SHA1 = 416; + + SN_ecdsa_with_Recommended = AnsiString('ecdsa-with-Recommended'); + NID_ecdsa_with_Recommended = 791; + + SN_ecdsa_with_Specified = AnsiString('ecdsa-with-Specified'); + NID_ecdsa_with_Specified = 792; + + SN_ecdsa_with_SHA224 = AnsiString('ecdsa-with-SHA224'); + NID_ecdsa_with_SHA224 = 793; + + SN_ecdsa_with_SHA256 = AnsiString('ecdsa-with-SHA256'); + NID_ecdsa_with_SHA256 = 794; + + SN_ecdsa_with_SHA384 = AnsiString('ecdsa-with-SHA384'); + NID_ecdsa_with_SHA384 = 795; + + SN_ecdsa_with_SHA512 = AnsiString('ecdsa-with-SHA512'); + NID_ecdsa_with_SHA512 = 796; + + SN_secp112r1 = AnsiString('secp112r1'); + NID_secp112r1 = 704; + + SN_secp112r2 = AnsiString('secp112r2'); + NID_secp112r2 = 705; + + SN_secp128r1 = AnsiString('secp128r1'); + NID_secp128r1 = 706; + + SN_secp128r2 = AnsiString('secp128r2'); + NID_secp128r2 = 707; + + SN_secp160k1 = AnsiString('secp160k1'); + NID_secp160k1 = 708; + + SN_secp160r1 = AnsiString('secp160r1'); + NID_secp160r1 = 709; + + SN_secp160r2 = AnsiString('secp160r2'); + NID_secp160r2 = 710; + + SN_secp192k1 = AnsiString('secp192k1'); + NID_secp192k1 = 711; + + SN_secp224k1 = AnsiString('secp224k1'); + NID_secp224k1 = 712; + + SN_secp224r1 = AnsiString('secp224r1'); + NID_secp224r1 = 713; + + SN_secp256k1 = AnsiString('secp256k1'); + NID_secp256k1 = 714; + + SN_secp384r1 = AnsiString('secp384r1'); + NID_secp384r1 = 715; + + SN_secp521r1 = AnsiString('secp521r1'); + NID_secp521r1 = 716; + + SN_sect113r1 = AnsiString('sect113r1'); + NID_sect113r1 = 717; + + SN_sect113r2 = AnsiString('sect113r2'); + NID_sect113r2 = 718; + + SN_sect131r1 = AnsiString('sect131r1'); + NID_sect131r1 = 719; + + SN_sect131r2 = AnsiString('sect131r2'); + NID_sect131r2 = 720; + + SN_sect163k1 = AnsiString('sect163k1'); + NID_sect163k1 = 721; + + SN_sect163r1 = AnsiString('sect163r1'); + NID_sect163r1 = 722; + + SN_sect163r2 = AnsiString('sect163r2'); + NID_sect163r2 = 723; + + SN_sect193r1 = AnsiString('sect193r1'); + NID_sect193r1 = 724; + + SN_sect193r2 = AnsiString('sect193r2'); + NID_sect193r2 = 725; + + SN_sect233k1 = AnsiString('sect233k1'); + NID_sect233k1 = 726; + + SN_sect233r1 = AnsiString('sect233r1'); + NID_sect233r1 = 727; + + SN_sect239k1 = AnsiString('sect239k1'); + NID_sect239k1 = 728; + + SN_sect283k1 = AnsiString('sect283k1'); + NID_sect283k1 = 729; + + SN_sect283r1 = AnsiString('sect283r1'); + NID_sect283r1 = 730; + + SN_sect409k1 = AnsiString('sect409k1'); + NID_sect409k1 = 731; + + SN_sect409r1 = AnsiString('sect409r1'); + NID_sect409r1 = 732; + + SN_sect571k1 = AnsiString('sect571k1'); + NID_sect571k1 = 733; + + SN_sect571r1 = AnsiString('sect571r1'); + NID_sect571r1 = 734; + + SN_wap_wsg_idm_ecid_wtls1 = AnsiString('wap-wsg-idm-ecid-wtls1'); + NID_wap_wsg_idm_ecid_wtls1 = 735; + + SN_wap_wsg_idm_ecid_wtls3 = AnsiString('wap-wsg-idm-ecid-wtls3'); + NID_wap_wsg_idm_ecid_wtls3 = 736; + + SN_wap_wsg_idm_ecid_wtls4 = AnsiString('wap-wsg-idm-ecid-wtls4'); + NID_wap_wsg_idm_ecid_wtls4 = 737; + + SN_wap_wsg_idm_ecid_wtls5 = AnsiString('wap-wsg-idm-ecid-wtls5'); + NID_wap_wsg_idm_ecid_wtls5 = 738; + + SN_wap_wsg_idm_ecid_wtls6 = AnsiString('wap-wsg-idm-ecid-wtls6'); + NID_wap_wsg_idm_ecid_wtls6 = 739; + + SN_wap_wsg_idm_ecid_wtls7 = AnsiString('wap-wsg-idm-ecid-wtls7'); + NID_wap_wsg_idm_ecid_wtls7 = 740; + + SN_wap_wsg_idm_ecid_wtls8 = AnsiString('wap-wsg-idm-ecid-wtls8'); + NID_wap_wsg_idm_ecid_wtls8 = 741; + + SN_wap_wsg_idm_ecid_wtls9 = AnsiString('wap-wsg-idm-ecid-wtls9'); + NID_wap_wsg_idm_ecid_wtls9 = 742; + + SN_wap_wsg_idm_ecid_wtls10 = AnsiString('wap-wsg-idm-ecid-wtls10'); + NID_wap_wsg_idm_ecid_wtls10 = 743; + + SN_wap_wsg_idm_ecid_wtls11 = AnsiString('wap-wsg-idm-ecid-wtls11'); + NID_wap_wsg_idm_ecid_wtls11 = 744; + + SN_wap_wsg_idm_ecid_wtls12 = AnsiString('wap-wsg-idm-ecid-wtls12'); + NID_wap_wsg_idm_ecid_wtls12 = 745; + + SN_cast5_cbc = AnsiString('CAST5-CBC'); + LN_cast5_cbc = AnsiString('cast5-cbc'); + NID_cast5_cbc = 108; + + SN_cast5_ecb = AnsiString('CAST5-ECB'); + LN_cast5_ecb = AnsiString('cast5-ecb'); + NID_cast5_ecb = 109; + + SN_cast5_cfb64 = AnsiString('CAST5-CFB'); + LN_cast5_cfb64 = AnsiString('cast5-cfb'); + NID_cast5_cfb64 = 110; + + SN_cast5_ofb64 = AnsiString('CAST5-OFB'); + LN_cast5_ofb64 = AnsiString('cast5-ofb'); + NID_cast5_ofb64 = 111; + + LN_pbeWithMD5AndCast5_CBC = AnsiString('pbeWithMD5AndCast5CBC'); + NID_pbeWithMD5AndCast5_CBC = 112; + + SN_id_PasswordBasedMAC = AnsiString('id-PasswordBasedMAC'); + LN_id_PasswordBasedMAC = AnsiString('password based MAC'); + NID_id_PasswordBasedMAC = 782; + + SN_id_DHBasedMac = AnsiString('id-DHBasedMac'); + LN_id_DHBasedMac = AnsiString('Diffie-Hellman based MAC'); + NID_id_DHBasedMac = 783; + + SN_rsadsi = AnsiString('rsadsi'); + LN_rsadsi = AnsiString('RSA Data Security; Inc.'); + NID_rsadsi = 1; + + SN_pkcs = AnsiString('pkcs'); + LN_pkcs = AnsiString('RSA Data Security; Inc. PKCS'); + NID_pkcs = 2; + + SN_pkcs1 = AnsiString('pkcs1'); + NID_pkcs1 = 186; + + LN_rsaEncryption = AnsiString('rsaEncryption'); + NID_rsaEncryption = 6; + + SN_md2WithRSAEncryption = AnsiString('RSA-MD2'); + LN_md2WithRSAEncryption = AnsiString('md2WithRSAEncryption'); + NID_md2WithRSAEncryption = 7; + + SN_md4WithRSAEncryption = AnsiString('RSA-MD4'); + LN_md4WithRSAEncryption = AnsiString('md4WithRSAEncryption'); + NID_md4WithRSAEncryption = 396; + + SN_md5WithRSAEncryption = AnsiString('RSA-MD5'); + LN_md5WithRSAEncryption = AnsiString('md5WithRSAEncryption'); + NID_md5WithRSAEncryption = 8; + + SN_sha1WithRSAEncryption = AnsiString('RSA-SHA1'); + LN_sha1WithRSAEncryption = AnsiString('sha1WithRSAEncryption'); + NID_sha1WithRSAEncryption = 65; + + SN_rsaesOaep = AnsiString('RSAES-OAEP'); + LN_rsaesOaep = AnsiString('rsaesOaep'); + NID_rsaesOaep = 919; + + SN_mgf1 = AnsiString('MGF1'); + LN_mgf1 = AnsiString('mgf1'); + NID_mgf1 = 911; + + SN_pSpecified = AnsiString('PSPECIFIED'); + LN_pSpecified = AnsiString('pSpecified'); + NID_pSpecified = 935; + + SN_rsassaPss = AnsiString('RSASSA-PSS'); + LN_rsassaPss = AnsiString('rsassaPss'); + NID_rsassaPss = 912; + + SN_sha256WithRSAEncryption = AnsiString('RSA-SHA256'); + LN_sha256WithRSAEncryption = AnsiString('sha256WithRSAEncryption'); + NID_sha256WithRSAEncryption = 668; + + SN_sha384WithRSAEncryption = AnsiString('RSA-SHA384'); + LN_sha384WithRSAEncryption = AnsiString('sha384WithRSAEncryption'); + NID_sha384WithRSAEncryption = 669; + + SN_sha512WithRSAEncryption = AnsiString('RSA-SHA512'); + LN_sha512WithRSAEncryption = AnsiString('sha512WithRSAEncryption'); + NID_sha512WithRSAEncryption = 670; + + SN_sha224WithRSAEncryption = AnsiString('RSA-SHA224'); + LN_sha224WithRSAEncryption = AnsiString('sha224WithRSAEncryption'); + NID_sha224WithRSAEncryption = 671; + + SN_sha512_224WithRSAEncryption = AnsiString('RSA-SHA512/224'); + LN_sha512_224WithRSAEncryption = AnsiString('sha512-224WithRSAEncryption'); + NID_sha512_224WithRSAEncryption = 1145; + + SN_sha512_256WithRSAEncryption = AnsiString('RSA-SHA512/256'); + LN_sha512_256WithRSAEncryption = AnsiString('sha512-256WithRSAEncryption'); + NID_sha512_256WithRSAEncryption = 1146; + + SN_pkcs3 = AnsiString('pkcs3'); + NID_pkcs3 = 27; + + LN_dhKeyAgreement = AnsiString('dhKeyAgreement'); + NID_dhKeyAgreement = 28; + + SN_pkcs5 = AnsiString('pkcs5'); + NID_pkcs5 = 187; + + SN_pbeWithMD2AndDES_CBC = AnsiString('PBE-MD2-DES'); + LN_pbeWithMD2AndDES_CBC = AnsiString('pbeWithMD2AndDES-CBC'); + NID_pbeWithMD2AndDES_CBC = 9; + + SN_pbeWithMD5AndDES_CBC = AnsiString('PBE-MD5-DES'); + LN_pbeWithMD5AndDES_CBC = AnsiString('pbeWithMD5AndDES-CBC'); + NID_pbeWithMD5AndDES_CBC = 10; + + SN_pbeWithMD2AndRC2_CBC = AnsiString('PBE-MD2-RC2-64'); + LN_pbeWithMD2AndRC2_CBC = AnsiString('pbeWithMD2AndRC2-CBC'); + NID_pbeWithMD2AndRC2_CBC = 168; + + SN_pbeWithMD5AndRC2_CBC = AnsiString('PBE-MD5-RC2-64'); + LN_pbeWithMD5AndRC2_CBC = AnsiString('pbeWithMD5AndRC2-CBC'); + NID_pbeWithMD5AndRC2_CBC = 169; + + SN_pbeWithSHA1AndDES_CBC = AnsiString('PBE-SHA1-DES'); + LN_pbeWithSHA1AndDES_CBC = AnsiString('pbeWithSHA1AndDES-CBC'); + NID_pbeWithSHA1AndDES_CBC = 170; + + SN_pbeWithSHA1AndRC2_CBC = AnsiString('PBE-SHA1-RC2-64'); + LN_pbeWithSHA1AndRC2_CBC = AnsiString('pbeWithSHA1AndRC2-CBC'); + NID_pbeWithSHA1AndRC2_CBC = 68; + + LN_id_pbkdf2 = AnsiString('PBKDF2'); + NID_id_pbkdf2 = 69; + + LN_pbes2 = AnsiString('PBES2'); + NID_pbes2 = 161; + + LN_pbmac1 = AnsiString('PBMAC1'); + NID_pbmac1 = 162; + + SN_pkcs7 = AnsiString('pkcs7'); + NID_pkcs7 = 20; + + LN_pkcs7_data = AnsiString('pkcs7-data'); + NID_pkcs7_data = 21; + + LN_pkcs7_signed = AnsiString('pkcs7-signedData'); + NID_pkcs7_signed = 22; + + LN_pkcs7_enveloped = AnsiString('pkcs7-envelopedData'); + NID_pkcs7_enveloped = 23; + + LN_pkcs7_signedAndEnveloped = AnsiString('pkcs7-signedAndEnvelopedData'); + NID_pkcs7_signedAndEnveloped = 24; + + LN_pkcs7_digest = AnsiString('pkcs7-digestData'); + NID_pkcs7_digest = 25; + + LN_pkcs7_encrypted = AnsiString('pkcs7-encryptedData'); + NID_pkcs7_encrypted = 26; + + SN_pkcs9 = AnsiString('pkcs9'); + NID_pkcs9 = 47; + + LN_pkcs9_emailAddress = AnsiString('emailAddress'); + NID_pkcs9_emailAddress = 48; + + LN_pkcs9_unstructuredName = AnsiString('unstructuredName'); + NID_pkcs9_unstructuredName = 49; + + LN_pkcs9_contentType = AnsiString('contentType'); + NID_pkcs9_contentType = 50; + + LN_pkcs9_messageDigest = AnsiString('messageDigest'); + NID_pkcs9_messageDigest = 51; + + LN_pkcs9_signingTime = AnsiString('signingTime'); + NID_pkcs9_signingTime = 52; + + LN_pkcs9_countersignature = AnsiString('countersignature'); + NID_pkcs9_countersignature = 53; + + LN_pkcs9_challengePassword = AnsiString('challengePassword'); + NID_pkcs9_challengePassword = 54; + + LN_pkcs9_unstructuredAddress = AnsiString('unstructuredAddress'); + NID_pkcs9_unstructuredAddress = 55; + + LN_pkcs9_extCertAttributes = AnsiString('extendedCertificateAttributes'); + NID_pkcs9_extCertAttributes = 56; + + SN_ext_req = AnsiString('extReq'); + LN_ext_req = AnsiString('Extension Request'); + NID_ext_req = 172; + + SN_SMIMECapabilities = AnsiString('SMIME-CAPS'); + LN_SMIMECapabilities = AnsiString('S/MIME Capabilities'); + NID_SMIMECapabilities = 167; + + SN_SMIME = AnsiString('SMIME'); + LN_SMIME = AnsiString('S/MIME'); + NID_SMIME = 188; + + SN_id_smime_mod = AnsiString('id-smime-mod'); + NID_id_smime_mod = 189; + + SN_id_smime_ct = AnsiString('id-smime-ct'); + NID_id_smime_ct = 190; + + SN_id_smime_aa = AnsiString('id-smime-aa'); + NID_id_smime_aa = 191; + + SN_id_smime_alg = AnsiString('id-smime-alg'); + NID_id_smime_alg = 192; + + SN_id_smime_cd = AnsiString('id-smime-cd'); + NID_id_smime_cd = 193; + + SN_id_smime_spq = AnsiString('id-smime-spq'); + NID_id_smime_spq = 194; + + SN_id_smime_cti = AnsiString('id-smime-cti'); + NID_id_smime_cti = 195; + + SN_id_smime_mod_cms = AnsiString('id-smime-mod-cms'); + NID_id_smime_mod_cms = 196; + + SN_id_smime_mod_ess = AnsiString('id-smime-mod-ess'); + NID_id_smime_mod_ess = 197; + + SN_id_smime_mod_oid = AnsiString('id-smime-mod-oid'); + NID_id_smime_mod_oid = 198; + + SN_id_smime_mod_msg_v3 = AnsiString('id-smime-mod-msg-v3'); + NID_id_smime_mod_msg_v3 = 199; + + SN_id_smime_mod_ets_eSignature_88 = AnsiString('id-smime-mod-ets-eSignature-88'); + NID_id_smime_mod_ets_eSignature_88 = 200; + + SN_id_smime_mod_ets_eSignature_97 = AnsiString('id-smime-mod-ets-eSignature-97'); + NID_id_smime_mod_ets_eSignature_97 = 201; + + SN_id_smime_mod_ets_eSigPolicy_88 = AnsiString('id-smime-mod-ets-eSigPolicy-88'); + NID_id_smime_mod_ets_eSigPolicy_88 = 202; + + SN_id_smime_mod_ets_eSigPolicy_97 = AnsiString('id-smime-mod-ets-eSigPolicy-97'); + NID_id_smime_mod_ets_eSigPolicy_97 = 203; + + SN_id_smime_ct_receipt = AnsiString('id-smime-ct-receipt'); + NID_id_smime_ct_receipt = 204; + + SN_id_smime_ct_authData = AnsiString('id-smime-ct-authData'); + NID_id_smime_ct_authData = 205; + + SN_id_smime_ct_publishCert = AnsiString('id-smime-ct-publishCert'); + NID_id_smime_ct_publishCert = 206; + + SN_id_smime_ct_TSTInfo = AnsiString('id-smime-ct-TSTInfo'); + NID_id_smime_ct_TSTInfo = 207; + + SN_id_smime_ct_TDTInfo = AnsiString('id-smime-ct-TDTInfo'); + NID_id_smime_ct_TDTInfo = 208; + + SN_id_smime_ct_contentInfo = AnsiString('id-smime-ct-contentInfo'); + NID_id_smime_ct_contentInfo = 209; + + SN_id_smime_ct_DVCSRequestData = AnsiString('id-smime-ct-DVCSRequestData'); + NID_id_smime_ct_DVCSRequestData = 210; + + SN_id_smime_ct_DVCSResponseData = AnsiString('id-smime-ct-DVCSResponseData'); + NID_id_smime_ct_DVCSResponseData = 211; + + SN_id_smime_ct_compressedData = AnsiString('id-smime-ct-compressedData'); + NID_id_smime_ct_compressedData = 786; + + SN_id_smime_ct_contentCollection = AnsiString('id-smime-ct-contentCollection'); + NID_id_smime_ct_contentCollection = 1058; + + SN_id_smime_ct_authEnvelopedData = AnsiString('id-smime-ct-authEnvelopedData'); + NID_id_smime_ct_authEnvelopedData = 1059; + + SN_id_ct_asciiTextWithCRLF = AnsiString('id-ct-asciiTextWithCRLF'); + NID_id_ct_asciiTextWithCRLF = 787; + + SN_id_ct_xml = AnsiString('id-ct-xml'); + NID_id_ct_xml = 1060; + + SN_id_smime_aa_receiptRequest = AnsiString('id-smime-aa-receiptRequest'); + NID_id_smime_aa_receiptRequest = 212; + + SN_id_smime_aa_securityLabel = AnsiString('id-smime-aa-securityLabel'); + NID_id_smime_aa_securityLabel = 213; + + SN_id_smime_aa_mlExpandHistory = AnsiString('id-smime-aa-mlExpandHistory'); + NID_id_smime_aa_mlExpandHistory = 214; + + SN_id_smime_aa_contentHint = AnsiString('id-smime-aa-contentHint'); + NID_id_smime_aa_contentHint = 215; + + SN_id_smime_aa_msgSigDigest = AnsiString('id-smime-aa-msgSigDigest'); + NID_id_smime_aa_msgSigDigest = 216; + + SN_id_smime_aa_encapContentType = AnsiString('id-smime-aa-encapContentType'); + NID_id_smime_aa_encapContentType = 217; + + SN_id_smime_aa_contentIdentifier = AnsiString('id-smime-aa-contentIdentifier'); + NID_id_smime_aa_contentIdentifier = 218; + + SN_id_smime_aa_macValue = AnsiString('id-smime-aa-macValue'); + NID_id_smime_aa_macValue = 219; + + SN_id_smime_aa_equivalentLabels = AnsiString('id-smime-aa-equivalentLabels'); + NID_id_smime_aa_equivalentLabels = 220; + + SN_id_smime_aa_contentReference = AnsiString('id-smime-aa-contentReference'); + NID_id_smime_aa_contentReference = 221; + + SN_id_smime_aa_encrypKeyPref = AnsiString('id-smime-aa-encrypKeyPref'); + NID_id_smime_aa_encrypKeyPref = 222; + + SN_id_smime_aa_signingCertificate = AnsiString('id-smime-aa-signingCertificate'); + NID_id_smime_aa_signingCertificate = 223; + + SN_id_smime_aa_smimeEncryptCerts = AnsiString('id-smime-aa-smimeEncryptCerts'); + NID_id_smime_aa_smimeEncryptCerts = 224; + + SN_id_smime_aa_timeStampToken = AnsiString('id-smime-aa-timeStampToken'); + NID_id_smime_aa_timeStampToken = 225; + + SN_id_smime_aa_ets_sigPolicyId = AnsiString('id-smime-aa-ets-sigPolicyId'); + NID_id_smime_aa_ets_sigPolicyId = 226; + + SN_id_smime_aa_ets_commitmentType = AnsiString('id-smime-aa-ets-commitmentType'); + NID_id_smime_aa_ets_commitmentType = 227; + + SN_id_smime_aa_ets_signerLocation = AnsiString('id-smime-aa-ets-signerLocation'); + NID_id_smime_aa_ets_signerLocation = 228; + + SN_id_smime_aa_ets_signerAttr = AnsiString('id-smime-aa-ets-signerAttr'); + NID_id_smime_aa_ets_signerAttr = 229; + + SN_id_smime_aa_ets_otherSigCert = AnsiString('id-smime-aa-ets-otherSigCert'); + NID_id_smime_aa_ets_otherSigCert = 230; + + SN_id_smime_aa_ets_contentTimestamp = AnsiString('id-smime-aa-ets-contentTimestamp'); + NID_id_smime_aa_ets_contentTimestamp = 231; + + SN_id_smime_aa_ets_CertificateRefs = AnsiString('id-smime-aa-ets-CertificateRefs'); + NID_id_smime_aa_ets_CertificateRefs = 232; + + SN_id_smime_aa_ets_RevocationRefs = AnsiString('id-smime-aa-ets-RevocationRefs'); + NID_id_smime_aa_ets_RevocationRefs = 233; + + SN_id_smime_aa_ets_certValues = AnsiString('id-smime-aa-ets-certValues'); + NID_id_smime_aa_ets_certValues = 234; + + SN_id_smime_aa_ets_revocationValues = AnsiString('id-smime-aa-ets-revocationValues'); + NID_id_smime_aa_ets_revocationValues = 235; + + SN_id_smime_aa_ets_escTimeStamp = AnsiString('id-smime-aa-ets-escTimeStamp'); + NID_id_smime_aa_ets_escTimeStamp = 236; + + SN_id_smime_aa_ets_certCRLTimestamp = AnsiString('id-smime-aa-ets-certCRLTimestamp'); + NID_id_smime_aa_ets_certCRLTimestamp = 237; + + SN_id_smime_aa_ets_archiveTimeStamp = AnsiString('id-smime-aa-ets-archiveTimeStamp'); + NID_id_smime_aa_ets_archiveTimeStamp = 238; + + SN_id_smime_aa_signatureType = AnsiString('id-smime-aa-signatureType'); + NID_id_smime_aa_signatureType = 239; + + SN_id_smime_aa_dvcs_dvc = AnsiString('id-smime-aa-dvcs-dvc'); + NID_id_smime_aa_dvcs_dvc = 240; + + SN_id_smime_aa_signingCertificateV2 = AnsiString('id-smime-aa-signingCertificateV2'); + NID_id_smime_aa_signingCertificateV2 = 1086; + + SN_id_smime_alg_ESDHwith3DES = AnsiString('id-smime-alg-ESDHwith3DES'); + NID_id_smime_alg_ESDHwith3DES = 241; + + SN_id_smime_alg_ESDHwithRC2 = AnsiString('id-smime-alg-ESDHwithRC2'); + NID_id_smime_alg_ESDHwithRC2 = 242; + + SN_id_smime_alg_3DESwrap = AnsiString('id-smime-alg-3DESwrap'); + NID_id_smime_alg_3DESwrap = 243; + + SN_id_smime_alg_RC2wrap = AnsiString('id-smime-alg-RC2wrap'); + NID_id_smime_alg_RC2wrap = 244; + + SN_id_smime_alg_ESDH = AnsiString('id-smime-alg-ESDH'); + NID_id_smime_alg_ESDH = 245; + + SN_id_smime_alg_CMS3DESwrap = AnsiString('id-smime-alg-CMS3DESwrap'); + NID_id_smime_alg_CMS3DESwrap = 246; + + SN_id_smime_alg_CMSRC2wrap = AnsiString('id-smime-alg-CMSRC2wrap'); + NID_id_smime_alg_CMSRC2wrap = 247; + + SN_id_alg_PWRI_KEK = AnsiString('id-alg-PWRI-KEK'); + NID_id_alg_PWRI_KEK = 893; + + SN_id_smime_cd_ldap = AnsiString('id-smime-cd-ldap'); + NID_id_smime_cd_ldap = 248; + + SN_id_smime_spq_ets_sqt_uri = AnsiString('id-smime-spq-ets-sqt-uri'); + NID_id_smime_spq_ets_sqt_uri = 249; + + SN_id_smime_spq_ets_sqt_unotice = AnsiString('id-smime-spq-ets-sqt-unotice'); + NID_id_smime_spq_ets_sqt_unotice = 250; + + SN_id_smime_cti_ets_proofOfOrigin = AnsiString('id-smime-cti-ets-proofOfOrigin'); + NID_id_smime_cti_ets_proofOfOrigin = 251; + + SN_id_smime_cti_ets_proofOfReceipt = AnsiString('id-smime-cti-ets-proofOfReceipt'); + NID_id_smime_cti_ets_proofOfReceipt = 252; + + SN_id_smime_cti_ets_proofOfDelivery = AnsiString('id-smime-cti-ets-proofOfDelivery'); + NID_id_smime_cti_ets_proofOfDelivery = 253; + + SN_id_smime_cti_ets_proofOfSender = AnsiString('id-smime-cti-ets-proofOfSender'); + NID_id_smime_cti_ets_proofOfSender = 254; + + SN_id_smime_cti_ets_proofOfApproval = AnsiString('id-smime-cti-ets-proofOfApproval'); + NID_id_smime_cti_ets_proofOfApproval = 255; + + SN_id_smime_cti_ets_proofOfCreation = AnsiString('id-smime-cti-ets-proofOfCreation'); + NID_id_smime_cti_ets_proofOfCreation = 256; + + LN_friendlyName = AnsiString('friendlyName'); + NID_friendlyName = 156; + + LN_localKeyID = AnsiString('localKeyID'); + NID_localKeyID = 157; + + SN_ms_csp_name = AnsiString('CSPName'); + LN_ms_csp_name = AnsiString('Microsoft CSP Name'); + NID_ms_csp_name = 417; + + SN_LocalKeySet = AnsiString('LocalKeySet'); + LN_LocalKeySet = AnsiString('Microsoft Local Key set'); + NID_LocalKeySet = 856; + + LN_x509Certificate = AnsiString('x509Certificate'); + NID_x509Certificate = 158; + + LN_sdsiCertificate = AnsiString('sdsiCertificate'); + NID_sdsiCertificate = 159; + + LN_x509Crl = AnsiString('x509Crl'); + NID_x509Crl = 160; + + SN_pbe_WithSHA1And128BitRC4 = AnsiString('PBE-SHA1-RC4-128'); + LN_pbe_WithSHA1And128BitRC4 = AnsiString('pbeWithSHA1And128BitRC4'); + NID_pbe_WithSHA1And128BitRC4 = 144; + + SN_pbe_WithSHA1And40BitRC4 = AnsiString('PBE-SHA1-RC4-40'); + LN_pbe_WithSHA1And40BitRC4 = AnsiString('pbeWithSHA1And40BitRC4'); + NID_pbe_WithSHA1And40BitRC4 = 145; + + SN_pbe_WithSHA1And3_Key_TripleDES_CBC = AnsiString('PBE-SHA1-3DES'); + LN_pbe_WithSHA1And3_Key_TripleDES_CBC = AnsiString('pbeWithSHA1And3-KeyTripleDES-CBC'); + NID_pbe_WithSHA1And3_Key_TripleDES_CBC = 146; + + SN_pbe_WithSHA1And2_Key_TripleDES_CBC = AnsiString('PBE-SHA1-2DES'); + LN_pbe_WithSHA1And2_Key_TripleDES_CBC = AnsiString('pbeWithSHA1And2-KeyTripleDES-CBC'); + NID_pbe_WithSHA1And2_Key_TripleDES_CBC = 147; + + SN_pbe_WithSHA1And128BitRC2_CBC = AnsiString('PBE-SHA1-RC2-128'); + LN_pbe_WithSHA1And128BitRC2_CBC = AnsiString('pbeWithSHA1And128BitRC2-CBC'); + NID_pbe_WithSHA1And128BitRC2_CBC = 148; + + SN_pbe_WithSHA1And40BitRC2_CBC = AnsiString('PBE-SHA1-RC2-40'); + LN_pbe_WithSHA1And40BitRC2_CBC = AnsiString('pbeWithSHA1And40BitRC2-CBC'); + NID_pbe_WithSHA1And40BitRC2_CBC = 149; + + LN_keyBag = AnsiString('keyBag'); + NID_keyBag = 150; + + LN_pkcs8ShroudedKeyBag = AnsiString('pkcs8ShroudedKeyBag'); + NID_pkcs8ShroudedKeyBag = 151; + + LN_certBag = AnsiString('certBag'); + NID_certBag = 152; + + LN_crlBag = AnsiString('crlBag'); + NID_crlBag = 153; + + LN_secretBag = AnsiString('secretBag'); + NID_secretBag = 154; + + LN_safeContentsBag = AnsiString('safeContentsBag'); + NID_safeContentsBag = 155; + + SN_md2 = AnsiString('MD2'); + LN_md2 = AnsiString('md2'); + NID_md2 = 3; + + SN_md4 = AnsiString('MD4'); + LN_md4 = AnsiString('md4'); + NID_md4 = 257; + + SN_md5 = AnsiString('MD5'); + LN_md5 = AnsiString('md5'); + NID_md5 = 4; + + SN_md5_sha1 = AnsiString('MD5-SHA1'); + LN_md5_sha1 = AnsiString('md5-sha1'); + NID_md5_sha1 = 114; + + LN_hmacWithMD5 = AnsiString('hmacWithMD5'); + NID_hmacWithMD5 = 797; + + LN_hmacWithSHA1 = AnsiString('hmacWithSHA1'); + NID_hmacWithSHA1 = 163; + + SN_sm2 = AnsiString('SM2'); + LN_sm2 = AnsiString('sm2'); + NID_sm2 = 1172; + + SN_sm3 = AnsiString('SM3'); + LN_sm3 = AnsiString('sm3'); + NID_sm3 = 1143; + + SN_sm3WithRSAEncryption = AnsiString('RSA-SM3'); + LN_sm3WithRSAEncryption = AnsiString('sm3WithRSAEncryption'); + NID_sm3WithRSAEncryption = 1144; + + LN_hmacWithSHA224 = AnsiString('hmacWithSHA224'); + NID_hmacWithSHA224 = 798; + + LN_hmacWithSHA256 = AnsiString('hmacWithSHA256'); + NID_hmacWithSHA256 = 799; + + LN_hmacWithSHA384 = AnsiString('hmacWithSHA384'); + NID_hmacWithSHA384 = 800; + + LN_hmacWithSHA512 = AnsiString('hmacWithSHA512'); + NID_hmacWithSHA512 = 801; + + LN_hmacWithSHA512_224 = AnsiString('hmacWithSHA512-224'); + NID_hmacWithSHA512_224 = 1193; + + LN_hmacWithSHA512_256 = AnsiString('hmacWithSHA512-256'); + NID_hmacWithSHA512_256 = 1194; + + SN_rc2_cbc = AnsiString('RC2-CBC'); + LN_rc2_cbc = AnsiString('rc2-cbc'); + NID_rc2_cbc = 37; + + SN_rc2_ecb = AnsiString('RC2-ECB'); + LN_rc2_ecb = AnsiString('rc2-ecb'); + NID_rc2_ecb = 38; + + SN_rc2_cfb64 = AnsiString('RC2-CFB'); + LN_rc2_cfb64 = AnsiString('rc2-cfb'); + NID_rc2_cfb64 = 39; + + SN_rc2_ofb64 = AnsiString('RC2-OFB'); + LN_rc2_ofb64 = AnsiString('rc2-ofb'); + NID_rc2_ofb64 = 40; + + SN_rc2_40_cbc = AnsiString('RC2-40-CBC'); + LN_rc2_40_cbc = AnsiString('rc2-40-cbc'); + NID_rc2_40_cbc = 98; + + SN_rc2_64_cbc = AnsiString('RC2-64-CBC'); + LN_rc2_64_cbc = AnsiString('rc2-64-cbc'); + NID_rc2_64_cbc = 166; + + SN_rc4 = AnsiString('RC4'); + LN_rc4 = AnsiString('rc4'); + NID_rc4 = 5; + + SN_rc4_40 = AnsiString('RC4-40'); + LN_rc4_40 = AnsiString('rc4-40'); + NID_rc4_40 = 97; + + SN_des_ede3_cbc = AnsiString('DES-EDE3-CBC'); + LN_des_ede3_cbc = AnsiString('des-ede3-cbc'); + NID_des_ede3_cbc = 44; + + SN_rc5_cbc = AnsiString('RC5-CBC'); + LN_rc5_cbc = AnsiString('rc5-cbc'); + NID_rc5_cbc = 120; + + SN_rc5_ecb = AnsiString('RC5-ECB'); + LN_rc5_ecb = AnsiString('rc5-ecb'); + NID_rc5_ecb = 121; + + SN_rc5_cfb64 = AnsiString('RC5-CFB'); + LN_rc5_cfb64 = AnsiString('rc5-cfb'); + NID_rc5_cfb64 = 122; + + SN_rc5_ofb64 = AnsiString('RC5-OFB'); + LN_rc5_ofb64 = AnsiString('rc5-ofb'); + NID_rc5_ofb64 = 123; + + SN_ms_ext_req = AnsiString('msExtReq'); + LN_ms_ext_req = AnsiString('Microsoft Extension Request'); + NID_ms_ext_req = 171; + + SN_ms_code_ind = AnsiString('msCodeInd'); + LN_ms_code_ind = AnsiString('Microsoft Individual Code Signing'); + NID_ms_code_ind = 134; + + SN_ms_code_com = AnsiString('msCodeCom'); + LN_ms_code_com = AnsiString('Microsoft Commercial Code Signing'); + NID_ms_code_com = 135; + + SN_ms_ctl_sign = AnsiString('msCTLSign'); + LN_ms_ctl_sign = AnsiString('Microsoft Trust List Signing'); + NID_ms_ctl_sign = 136; + + SN_ms_sgc = AnsiString('msSGC'); + LN_ms_sgc = AnsiString('Microsoft Server Gated Crypto'); + NID_ms_sgc = 137; + + SN_ms_efs = AnsiString('msEFS'); + LN_ms_efs = AnsiString('Microsoft Encrypted File System'); + NID_ms_efs = 138; + + SN_ms_smartcard_login = AnsiString('msSmartcardLogin'); + LN_ms_smartcard_login = AnsiString('Microsoft Smartcard Login'); + NID_ms_smartcard_login = 648; + + SN_ms_upn = AnsiString('msUPN'); + LN_ms_upn = AnsiString('Microsoft User Principal Name'); + NID_ms_upn = 649; + + SN_idea_cbc = AnsiString('IDEA-CBC'); + LN_idea_cbc = AnsiString('idea-cbc'); + NID_idea_cbc = 34; + + SN_idea_ecb = AnsiString('IDEA-ECB'); + LN_idea_ecb = AnsiString('idea-ecb'); + NID_idea_ecb = 36; + + SN_idea_cfb64 = AnsiString('IDEA-CFB'); + LN_idea_cfb64 = AnsiString('idea-cfb'); + NID_idea_cfb64 = 35; + + SN_idea_ofb64 = AnsiString('IDEA-OFB'); + LN_idea_ofb64 = AnsiString('idea-ofb'); + NID_idea_ofb64 = 46; + + SN_bf_cbc = AnsiString('BF-CBC'); + LN_bf_cbc = AnsiString('bf-cbc'); + NID_bf_cbc = 91; + + SN_bf_ecb = AnsiString('BF-ECB'); + LN_bf_ecb = AnsiString('bf-ecb'); + NID_bf_ecb = 92; + + SN_bf_cfb64 = AnsiString('BF-CFB'); + LN_bf_cfb64 = AnsiString('bf-cfb'); + NID_bf_cfb64 = 93; + + SN_bf_ofb64 = AnsiString('BF-OFB'); + LN_bf_ofb64 = AnsiString('bf-ofb'); + NID_bf_ofb64 = 94; + + SN_id_pkix = AnsiString('PKIX'); + NID_id_pkix = 127; + + SN_id_pkix_mod = AnsiString('id-pkix-mod'); + NID_id_pkix_mod = 258; + + SN_id_pe = AnsiString('id-pe'); + NID_id_pe = 175; + + SN_id_qt = AnsiString('id-qt'); + NID_id_qt = 259; + + SN_id_kp = AnsiString('id-kp'); + NID_id_kp = 128; + + SN_id_it = AnsiString('id-it'); + NID_id_it = 260; + + SN_id_pkip = AnsiString('id-pkip'); + NID_id_pkip = 261; + + SN_id_alg = AnsiString('id-alg'); + NID_id_alg = 262; + + SN_id_cmc = AnsiString('id-cmc'); + NID_id_cmc = 263; + + SN_id_on = AnsiString('id-on'); + NID_id_on = 264; + + SN_id_pda = AnsiString('id-pda'); + NID_id_pda = 265; + + SN_id_aca = AnsiString('id-aca'); + NID_id_aca = 266; + + SN_id_qcs = AnsiString('id-qcs'); + NID_id_qcs = 267; + + SN_id_cct = AnsiString('id-cct'); + NID_id_cct = 268; + + SN_id_ppl = AnsiString('id-ppl'); + NID_id_ppl = 662; + + SN_id_ad = AnsiString('id-ad'); + NID_id_ad = 176; + + SN_id_pkix1_explicit_88 = AnsiString('id-pkix1-explicit-88'); + NID_id_pkix1_explicit_88 = 269; + + SN_id_pkix1_implicit_88 = AnsiString('id-pkix1-implicit-88'); + NID_id_pkix1_implicit_88 = 270; + + SN_id_pkix1_explicit_93 = AnsiString('id-pkix1-explicit-93'); + NID_id_pkix1_explicit_93 = 271; + + SN_id_pkix1_implicit_93 = AnsiString('id-pkix1-implicit-93'); + NID_id_pkix1_implicit_93 = 272; + + SN_id_mod_crmf = AnsiString('id-mod-crmf'); + NID_id_mod_crmf = 273; + + SN_id_mod_cmc = AnsiString('id-mod-cmc'); + NID_id_mod_cmc = 274; + + SN_id_mod_kea_profile_88 = AnsiString('id-mod-kea-profile-88'); + NID_id_mod_kea_profile_88 = 275; + + SN_id_mod_kea_profile_93 = AnsiString('id-mod-kea-profile-93'); + NID_id_mod_kea_profile_93 = 276; + + SN_id_mod_cmp = AnsiString('id-mod-cmp'); + NID_id_mod_cmp = 277; + + SN_id_mod_qualified_cert_88 = AnsiString('id-mod-qualified-cert-88'); + NID_id_mod_qualified_cert_88 = 278; + + SN_id_mod_qualified_cert_93 = AnsiString('id-mod-qualified-cert-93'); + NID_id_mod_qualified_cert_93 = 279; + + SN_id_mod_attribute_cert = AnsiString('id-mod-attribute-cert'); + NID_id_mod_attribute_cert = 280; + + SN_id_mod_timestamp_protocol = AnsiString('id-mod-timestamp-protocol'); + NID_id_mod_timestamp_protocol = 281; + + SN_id_mod_ocsp = AnsiString('id-mod-ocsp'); + NID_id_mod_ocsp = 282; + + SN_id_mod_dvcs = AnsiString('id-mod-dvcs'); + NID_id_mod_dvcs = 283; + + SN_id_mod_cmp2000 = AnsiString('id-mod-cmp2000'); + NID_id_mod_cmp2000 = 284; + + SN_info_access = AnsiString('authorityInfoAccess'); + LN_info_access = AnsiString('Authority Information Access'); + NID_info_access = 177; + + SN_biometricInfo = AnsiString('biometricInfo'); + LN_biometricInfo = AnsiString('Biometric Info'); + NID_biometricInfo = 285; + + SN_qcStatements = AnsiString('qcStatements'); + NID_qcStatements = 286; + + SN_ac_auditEntity = AnsiString('ac-auditEntity'); + NID_ac_auditEntity = 287; + + SN_ac_targeting = AnsiString('ac-targeting'); + NID_ac_targeting = 288; + + SN_aaControls = AnsiString('aaControls'); + NID_aaControls = 289; + + SN_sbgp_ipAddrBlock = AnsiString('sbgp-ipAddrBlock'); + NID_sbgp_ipAddrBlock = 290; + + SN_sbgp_autonomousSysNum = AnsiString('sbgp-autonomousSysNum'); + NID_sbgp_autonomousSysNum = 291; + + SN_sbgp_routerIdentifier = AnsiString('sbgp-routerIdentifier'); + NID_sbgp_routerIdentifier = 292; + + SN_ac_proxying = AnsiString('ac-proxying'); + NID_ac_proxying = 397; + + SN_sinfo_access = AnsiString('subjectInfoAccess'); + LN_sinfo_access = AnsiString('Subject Information Access'); + NID_sinfo_access = 398; + + SN_proxyCertInfo = AnsiString('proxyCertInfo'); + LN_proxyCertInfo = AnsiString('Proxy Certificate Information'); + NID_proxyCertInfo = 663; + + SN_tlsfeature = AnsiString('tlsfeature'); + LN_tlsfeature = AnsiString('TLS Feature'); + NID_tlsfeature = 1020; + + SN_id_qt_cps = AnsiString('id-qt-cps'); + LN_id_qt_cps = AnsiString('Policy Qualifier CPS'); + NID_id_qt_cps = 164; + + SN_id_qt_unotice = AnsiString('id-qt-unotice'); + LN_id_qt_unotice = AnsiString('Policy Qualifier User Notice'); + NID_id_qt_unotice = 165; + + SN_textNotice = AnsiString('textNotice'); + NID_textNotice = 293; + + SN_server_auth = AnsiString('serverAuth'); + LN_server_auth = AnsiString('TLS Web Server Authentication'); + NID_server_auth = 129; + + SN_client_auth = AnsiString('clientAuth'); + LN_client_auth = AnsiString('TLS Web Client Authentication'); + NID_client_auth = 130; + + SN_code_sign = AnsiString('codeSigning'); + LN_code_sign = AnsiString('Code Signing'); + NID_code_sign = 131; + + SN_email_protect = AnsiString('emailProtection'); + LN_email_protect = AnsiString('E-mail Protection'); + NID_email_protect = 132; + + SN_ipsecEndSystem = AnsiString('ipsecEndSystem'); + LN_ipsecEndSystem = AnsiString('IPSec End System'); + NID_ipsecEndSystem = 294; + + SN_ipsecTunnel = AnsiString('ipsecTunnel'); + LN_ipsecTunnel = AnsiString('IPSec Tunnel'); + NID_ipsecTunnel = 295; + + SN_ipsecUser = AnsiString('ipsecUser'); + LN_ipsecUser = AnsiString('IPSec User'); + NID_ipsecUser = 296; + + SN_time_stamp = AnsiString('timeStamping'); + LN_time_stamp = AnsiString('Time Stamping'); + NID_time_stamp = 133; + + SN_OCSP_sign = AnsiString('OCSPSigning'); + LN_OCSP_sign = AnsiString('OCSP Signing'); + NID_OCSP_sign = 180; + + SN_dvcs = AnsiString('DVCS'); + LN_dvcs = AnsiString('dvcs'); + NID_dvcs = 297; + + SN_ipsec_IKE = AnsiString('ipsecIKE'); + LN_ipsec_IKE = AnsiString('ipsec Internet Key Exchange'); + NID_ipsec_IKE = 1022; + + SN_capwapAC = AnsiString('capwapAC'); + LN_capwapAC = AnsiString('Ctrl/provision WAP Access'); + NID_capwapAC = 1023; + + SN_capwapWTP = AnsiString('capwapWTP'); + LN_capwapWTP = AnsiString('Ctrl/Provision WAP Termination'); + NID_capwapWTP = 1024; + + SN_sshClient = AnsiString('secureShellClient'); + LN_sshClient = AnsiString('SSH Client'); + NID_sshClient = 1025; + + SN_sshServer = AnsiString('secureShellServer'); + LN_sshServer = AnsiString('SSH Server'); + NID_sshServer = 1026; + + SN_sendRouter = AnsiString('sendRouter'); + LN_sendRouter = AnsiString('Send Router'); + NID_sendRouter = 1027; + + SN_sendProxiedRouter = AnsiString('sendProxiedRouter'); + LN_sendProxiedRouter = AnsiString('Send Proxied Router'); + NID_sendProxiedRouter = 1028; + + SN_sendOwner = AnsiString('sendOwner'); + LN_sendOwner = AnsiString('Send Owner'); + NID_sendOwner = 1029; + + SN_sendProxiedOwner = AnsiString('sendProxiedOwner'); + LN_sendProxiedOwner = AnsiString('Send Proxied Owner'); + NID_sendProxiedOwner = 1030; + + SN_cmcCA = AnsiString('cmcCA'); + LN_cmcCA = AnsiString('CMC Certificate Authority'); + NID_cmcCA = 1131; + + SN_cmcRA = AnsiString('cmcRA'); + LN_cmcRA = AnsiString('CMC Registration Authority'); + NID_cmcRA = 1132; + + SN_id_it_caProtEncCert = AnsiString('id-it-caProtEncCert'); + NID_id_it_caProtEncCert = 298; + + SN_id_it_signKeyPairTypes = AnsiString('id-it-signKeyPairTypes'); + NID_id_it_signKeyPairTypes = 299; + + SN_id_it_encKeyPairTypes = AnsiString('id-it-encKeyPairTypes'); + NID_id_it_encKeyPairTypes = 300; + + SN_id_it_preferredSymmAlg = AnsiString('id-it-preferredSymmAlg'); + NID_id_it_preferredSymmAlg = 301; + + SN_id_it_caKeyUpdateInfo = AnsiString('id-it-caKeyUpdateInfo'); + NID_id_it_caKeyUpdateInfo = 302; + + SN_id_it_currentCRL = AnsiString('id-it-currentCRL'); + NID_id_it_currentCRL = 303; + + SN_id_it_unsupportedOIDs = AnsiString('id-it-unsupportedOIDs'); + NID_id_it_unsupportedOIDs = 304; + + SN_id_it_subscriptionRequest = AnsiString('id-it-subscriptionRequest'); + NID_id_it_subscriptionRequest = 305; + + SN_id_it_subscriptionResponse = AnsiString('id-it-subscriptionResponse'); + NID_id_it_subscriptionResponse = 306; + + SN_id_it_keyPairParamReq = AnsiString('id-it-keyPairParamReq'); + NID_id_it_keyPairParamReq = 307; + + SN_id_it_keyPairParamRep = AnsiString('id-it-keyPairParamRep'); + NID_id_it_keyPairParamRep = 308; + + SN_id_it_revPassphrase = AnsiString('id-it-revPassphrase'); + NID_id_it_revPassphrase = 309; + + SN_id_it_implicitConfirm = AnsiString('id-it-implicitConfirm'); + NID_id_it_implicitConfirm = 310; + + SN_id_it_confirmWaitTime = AnsiString('id-it-confirmWaitTime'); + NID_id_it_confirmWaitTime = 311; + + SN_id_it_origPKIMessage = AnsiString('id-it-origPKIMessage'); + NID_id_it_origPKIMessage = 312; + + SN_id_it_suppLangTags = AnsiString('id-it-suppLangTags'); + NID_id_it_suppLangTags = 784; + + SN_id_regCtrl = AnsiString('id-regCtrl'); + NID_id_regCtrl = 313; + + SN_id_regInfo = AnsiString('id-regInfo'); + NID_id_regInfo = 314; + + SN_id_regCtrl_regToken = AnsiString('id-regCtrl-regToken'); + NID_id_regCtrl_regToken = 315; + + SN_id_regCtrl_authenticator = AnsiString('id-regCtrl-authenticator'); + NID_id_regCtrl_authenticator = 316; + + SN_id_regCtrl_pkiPublicationInfo = AnsiString('id-regCtrl-pkiPublicationInfo'); + NID_id_regCtrl_pkiPublicationInfo = 317; + + SN_id_regCtrl_pkiArchiveOptions = AnsiString('id-regCtrl-pkiArchiveOptions'); + NID_id_regCtrl_pkiArchiveOptions = 318; + + SN_id_regCtrl_oldCertID = AnsiString('id-regCtrl-oldCertID'); + NID_id_regCtrl_oldCertID = 319; + + SN_id_regCtrl_protocolEncrKey = AnsiString('id-regCtrl-protocolEncrKey'); + NID_id_regCtrl_protocolEncrKey = 320; + + SN_id_regInfo_utf8Pairs = AnsiString('id-regInfo-utf8Pairs'); + NID_id_regInfo_utf8Pairs = 321; + + SN_id_regInfo_certReq = AnsiString('id-regInfo-certReq'); + NID_id_regInfo_certReq = 322; + + SN_id_alg_des40 = AnsiString('id-alg-des40'); + NID_id_alg_des40 = 323; + + SN_id_alg_noSignature = AnsiString('id-alg-noSignature'); + NID_id_alg_noSignature = 324; + + SN_id_alg_dh_sig_hmac_sha1 = AnsiString('id-alg-dh-sig-hmac-sha1'); + NID_id_alg_dh_sig_hmac_sha1 = 325; + + SN_id_alg_dh_pop = AnsiString('id-alg-dh-pop'); + NID_id_alg_dh_pop = 326; + + SN_id_cmc_statusInfo = AnsiString('id-cmc-statusInfo'); + NID_id_cmc_statusInfo = 327; + + SN_id_cmc_identification = AnsiString('id-cmc-identification'); + NID_id_cmc_identification = 328; + + SN_id_cmc_identityProof = AnsiString('id-cmc-identityProof'); + NID_id_cmc_identityProof = 329; + + SN_id_cmc_dataReturn = AnsiString('id-cmc-dataReturn'); + NID_id_cmc_dataReturn = 330; + + SN_id_cmc_transactionId = AnsiString('id-cmc-transactionId'); + NID_id_cmc_transactionId = 331; + + SN_id_cmc_senderNonce = AnsiString('id-cmc-senderNonce'); + NID_id_cmc_senderNonce = 332; + + SN_id_cmc_recipientNonce = AnsiString('id-cmc-recipientNonce'); + NID_id_cmc_recipientNonce = 333; + + SN_id_cmc_addExtensions = AnsiString('id-cmc-addExtensions'); + NID_id_cmc_addExtensions = 334; + + SN_id_cmc_encryptedPOP = AnsiString('id-cmc-encryptedPOP'); + NID_id_cmc_encryptedPOP = 335; + + SN_id_cmc_decryptedPOP = AnsiString('id-cmc-decryptedPOP'); + NID_id_cmc_decryptedPOP = 336; + + SN_id_cmc_lraPOPWitness = AnsiString('id-cmc-lraPOPWitness'); + NID_id_cmc_lraPOPWitness = 337; + + SN_id_cmc_getCert = AnsiString('id-cmc-getCert'); + NID_id_cmc_getCert = 338; + + SN_id_cmc_getCRL = AnsiString('id-cmc-getCRL'); + NID_id_cmc_getCRL = 339; + + SN_id_cmc_revokeRequest = AnsiString('id-cmc-revokeRequest'); + NID_id_cmc_revokeRequest = 340; + + SN_id_cmc_regInfo = AnsiString('id-cmc-regInfo'); + NID_id_cmc_regInfo = 341; + + SN_id_cmc_responseInfo = AnsiString('id-cmc-responseInfo'); + NID_id_cmc_responseInfo = 342; + + SN_id_cmc_queryPending = AnsiString('id-cmc-queryPending'); + NID_id_cmc_queryPending = 343; + + SN_id_cmc_popLinkRandom = AnsiString('id-cmc-popLinkRandom'); + NID_id_cmc_popLinkRandom = 344; + + SN_id_cmc_popLinkWitness = AnsiString('id-cmc-popLinkWitness'); + NID_id_cmc_popLinkWitness = 345; + + SN_id_cmc_confirmCertAcceptance = AnsiString('id-cmc-confirmCertAcceptance'); + NID_id_cmc_confirmCertAcceptance = 346; + + SN_id_on_personalData = AnsiString('id-on-personalData'); + NID_id_on_personalData = 347; + + SN_id_on_permanentIdentifier = AnsiString('id-on-permanentIdentifier'); + LN_id_on_permanentIdentifier = AnsiString('Permanent Identifier'); + NID_id_on_permanentIdentifier = 858; + + SN_id_pda_dateOfBirth = AnsiString('id-pda-dateOfBirth'); + NID_id_pda_dateOfBirth = 348; + + SN_id_pda_placeOfBirth = AnsiString('id-pda-placeOfBirth'); + NID_id_pda_placeOfBirth = 349; + + SN_id_pda_gender = AnsiString('id-pda-gender'); + NID_id_pda_gender = 351; + + SN_id_pda_countryOfCitizenship = AnsiString('id-pda-countryOfCitizenship'); + NID_id_pda_countryOfCitizenship = 352; + + SN_id_pda_countryOfResidence = AnsiString('id-pda-countryOfResidence'); + NID_id_pda_countryOfResidence = 353; + + SN_id_aca_authenticationInfo = AnsiString('id-aca-authenticationInfo'); + NID_id_aca_authenticationInfo = 354; + + SN_id_aca_accessIdentity = AnsiString('id-aca-accessIdentity'); + NID_id_aca_accessIdentity = 355; + + SN_id_aca_chargingIdentity = AnsiString('id-aca-chargingIdentity'); + NID_id_aca_chargingIdentity = 356; + + SN_id_aca_group = AnsiString('id-aca-group'); + NID_id_aca_group = 357; + + SN_id_aca_role = AnsiString('id-aca-role'); + NID_id_aca_role = 358; + + SN_id_aca_encAttrs = AnsiString('id-aca-encAttrs'); + NID_id_aca_encAttrs = 399; + + SN_id_qcs_pkixQCSyntax_v1 = AnsiString('id-qcs-pkixQCSyntax-v1'); + NID_id_qcs_pkixQCSyntax_v1 = 359; + + SN_id_cct_crs = AnsiString('id-cct-crs'); + NID_id_cct_crs = 360; + + SN_id_cct_PKIData = AnsiString('id-cct-PKIData'); + NID_id_cct_PKIData = 361; + + SN_id_cct_PKIResponse = AnsiString('id-cct-PKIResponse'); + NID_id_cct_PKIResponse = 362; + + SN_id_ppl_anyLanguage = AnsiString('id-ppl-anyLanguage'); + LN_id_ppl_anyLanguage = AnsiString('Any language'); + + NID_id_ppl_anyLanguage = 664; + SN_id_ppl_inheritAll = AnsiString('id-ppl-inheritAll'); + + LN_id_ppl_inheritAll = AnsiString('Inherit all'); + NID_id_ppl_inheritAll = 665; + + SN_Independent = AnsiString('id-ppl-independent'); + LN_Independent = AnsiString('Independent'); + NID_Independent = 667; + + SN_ad_OCSP = AnsiString('OCSP'); + LN_ad_OCSP = AnsiString('OCSP'); + NID_ad_OCSP = 178; + + SN_ad_ca_issuers = AnsiString('caIssuers'); + LN_ad_ca_issuers = AnsiString('CA Issuers'); + NID_ad_ca_issuers = 179; + + SN_ad_timeStamping = AnsiString('ad_timestamping'); + LN_ad_timeStamping = AnsiString('AD Time Stamping'); + NID_ad_timeStamping = 363; + + SN_ad_dvcs = AnsiString('AD_DVCS'); + LN_ad_dvcs = AnsiString('ad dvcs'); + NID_ad_dvcs = 364; + + SN_caRepository = AnsiString('caRepository'); + LN_caRepository = AnsiString('CA Repository'); + NID_caRepository = 785; + + SN_id_pkix_OCSP_basic = AnsiString('basicOCSPResponse'); + LN_id_pkix_OCSP_basic = AnsiString('Basic OCSP Response'); + NID_id_pkix_OCSP_basic = 365; + + SN_id_pkix_OCSP_Nonce = AnsiString('Nonce'); + LN_id_pkix_OCSP_Nonce = AnsiString('OCSP Nonce'); + NID_id_pkix_OCSP_Nonce = 366; + + SN_id_pkix_OCSP_CrlID = AnsiString('CrlID'); + LN_id_pkix_OCSP_CrlID = AnsiString('OCSP CRL ID'); + NID_id_pkix_OCSP_CrlID = 367; + + SN_id_pkix_OCSP_acceptableResponses = AnsiString('acceptableResponses'); + LN_id_pkix_OCSP_acceptableResponses = AnsiString('Acceptable OCSP Responses'); + NID_id_pkix_OCSP_acceptableResponses = 368; + + SN_id_pkix_OCSP_noCheck = AnsiString('noCheck'); + LN_id_pkix_OCSP_noCheck = AnsiString('OCSP No Check'); + NID_id_pkix_OCSP_noCheck = 369; + + SN_id_pkix_OCSP_archiveCutoff = AnsiString('archiveCutoff'); + LN_id_pkix_OCSP_archiveCutoff = AnsiString('OCSP Archive Cutoff'); + NID_id_pkix_OCSP_archiveCutoff = 370; + + SN_id_pkix_OCSP_serviceLocator = AnsiString('serviceLocator'); + LN_id_pkix_OCSP_serviceLocator = AnsiString('OCSP Service Locator'); + NID_id_pkix_OCSP_serviceLocator = 371; + + SN_id_pkix_OCSP_extendedStatus = AnsiString('extendedStatus'); + LN_id_pkix_OCSP_extendedStatus = AnsiString('Extended OCSP Status'); + NID_id_pkix_OCSP_extendedStatus = 372; + + SN_id_pkix_OCSP_valid = AnsiString('valid'); + NID_id_pkix_OCSP_valid = 373; + + SN_id_pkix_OCSP_path = AnsiString('path'); + NID_id_pkix_OCSP_path = 374; + + SN_id_pkix_OCSP_trustRoot = AnsiString('trustRoot'); + LN_id_pkix_OCSP_trustRoot = AnsiString('Trust Root'); + NID_id_pkix_OCSP_trustRoot = 375; + + SN_algorithm = AnsiString('algorithm'); + LN_algorithm = AnsiString('algorithm'); + NID_algorithm = 376; + + SN_md5WithRSA = AnsiString('RSA-NP-MD5'); + LN_md5WithRSA = AnsiString('md5WithRSA'); + NID_md5WithRSA = 104; + + SN_des_ecb = AnsiString('DES-ECB'); + LN_des_ecb = AnsiString('des-ecb'); + NID_des_ecb = 29; + + SN_des_cbc = AnsiString('DES-CBC'); + LN_des_cbc = AnsiString('des-cbc'); + NID_des_cbc = 31; + + SN_des_ofb64 = AnsiString('DES-OFB'); + LN_des_ofb64 = AnsiString('des-ofb'); + NID_des_ofb64 = 45; + + SN_des_cfb64 = AnsiString('DES-CFB'); + LN_des_cfb64 = AnsiString('des-cfb'); + NID_des_cfb64 = 30; + + SN_rsaSignature = AnsiString('rsaSignature'); + NID_rsaSignature = 377; + + SN_dsa_2 = AnsiString('DSA-old'); + LN_dsa_2 = AnsiString('dsaEncryption-old'); + NID_dsa_2 = 67; + + SN_dsaWithSHA = AnsiString('DSA-SHA'); + LN_dsaWithSHA = AnsiString('dsaWithSHA'); + NID_dsaWithSHA = 66; + + SN_shaWithRSAEncryption = AnsiString('RSA-SHA'); + LN_shaWithRSAEncryption = AnsiString('shaWithRSAEncryption'); + NID_shaWithRSAEncryption = 42; + + SN_des_ede_ecb = AnsiString('DES-EDE'); + LN_des_ede_ecb = AnsiString('des-ede'); + NID_des_ede_ecb = 32; + + SN_des_ede3_ecb = AnsiString('DES-EDE3'); + LN_des_ede3_ecb = AnsiString('des-ede3'); + NID_des_ede3_ecb = 33; + + SN_des_ede_cbc = AnsiString('DES-EDE-CBC'); + LN_des_ede_cbc = AnsiString('des-ede-cbc'); + NID_des_ede_cbc = 43; + + SN_des_ede_cfb64 = AnsiString('DES-EDE-CFB'); + LN_des_ede_cfb64 = AnsiString('des-ede-cfb'); + NID_des_ede_cfb64 = 60; + + SN_des_ede3_cfb64 = AnsiString('DES-EDE3-CFB'); + LN_des_ede3_cfb64 = AnsiString('des-ede3-cfb'); + NID_des_ede3_cfb64 = 61; + + SN_des_ede_ofb64 = AnsiString('DES-EDE-OFB'); + LN_des_ede_ofb64 = AnsiString('des-ede-ofb'); + NID_des_ede_ofb64 = 62; + + SN_des_ede3_ofb64 = AnsiString('DES-EDE3-OFB'); + LN_des_ede3_ofb64 = AnsiString('des-ede3-ofb'); + NID_des_ede3_ofb64 = 63; + + SN_desx_cbc = AnsiString('DESX-CBC'); + LN_desx_cbc = AnsiString('desx-cbc'); + NID_desx_cbc = 80; + + SN_sha = AnsiString('SHA'); + LN_sha = AnsiString('sha'); + NID_sha = 41; + + SN_sha1 = AnsiString('SHA1'); + LN_sha1 = AnsiString('sha1'); + NID_sha1 = 64; + + SN_dsaWithSHA1_2 = AnsiString('DSA-SHA1-old'); + LN_dsaWithSHA1_2 = AnsiString('dsaWithSHA1-old'); + NID_dsaWithSHA1_2 = 70; + + SN_sha1WithRSA = AnsiString('RSA-SHA1-2'); + LN_sha1WithRSA = AnsiString('sha1WithRSA'); + NID_sha1WithRSA = 115; + + SN_ripemd160 = AnsiString('RIPEMD160'); + LN_ripemd160 = AnsiString('ripemd160'); + NID_ripemd160 = 117; + + SN_ripemd160WithRSA = AnsiString('RSA-RIPEMD160'); + LN_ripemd160WithRSA = AnsiString('ripemd160WithRSA'); + NID_ripemd160WithRSA = 119; + + SN_blake2b512 = AnsiString('BLAKE2b512'); + LN_blake2b512 = AnsiString('blake2b512'); + NID_blake2b512 = 1056; + + SN_blake2s256 = AnsiString('BLAKE2s256'); + LN_blake2s256 = AnsiString('blake2s256'); + NID_blake2s256 = 1057; + + SN_sxnet = AnsiString('SXNetID'); + LN_sxnet = AnsiString('Strong Extranet ID'); + NID_sxnet = 143; + + SN_X500 = AnsiString('X500'); + LN_X500 = AnsiString('directory services(X.500)'); + NID_X500 = 11; + + SN_X509 = AnsiString('X509'); + NID_X509 = 12; + + SN_commonName = AnsiString('CN'); + LN_commonName = AnsiString('commonName'); + NID_commonName = 13; + + SN_surname = AnsiString('SN'); + LN_surname = AnsiString('surname'); + NID_surname = 100; + + LN_serialNumber = AnsiString('serialNumber'); + NID_serialNumber = 105; + + SN_countryName = AnsiString('C'); + LN_countryName = AnsiString('countryName'); + NID_countryName = 14; + + SN_localityName = AnsiString('L'); + LN_localityName = AnsiString('localityName'); + NID_localityName = 15; + + SN_stateOrProvinceName = AnsiString('ST'); + LN_stateOrProvinceName = AnsiString('stateOrProvinceName'); + NID_stateOrProvinceName = 16; + + SN_streetAddress = AnsiString('street'); + LN_streetAddress = AnsiString('streetAddress'); + NID_streetAddress = 660; + + SN_organizationName = AnsiString('O'); + LN_organizationName = AnsiString('organizationName'); + NID_organizationName = 17; + + SN_organizationalUnitName = AnsiString('OU'); + LN_organizationalUnitName = AnsiString('organizationalUnitName'); + NID_organizationalUnitName = 18; + + SN_title = AnsiString('title'); + LN_title = AnsiString('title'); + NID_title = 106; + + LN_description = AnsiString('description'); + NID_description = 107; + + LN_searchGuide = AnsiString('searchGuide'); + NID_searchGuide = 859; + LN_businessCategory = AnsiString('businessCategory'); + NID_businessCategory = 860; + + LN_postalAddress = AnsiString('postalAddress'); + NID_postalAddress = 861; + + LN_postalCode = AnsiString('postalCode'); + NID_postalCode = 661; + + LN_postOfficeBox = AnsiString('postOfficeBox'); + NID_postOfficeBox = 862; + + LN_physicalDeliveryOfficeName = AnsiString('physicalDeliveryOfficeName'); + NID_physicalDeliveryOfficeName = 863; + + LN_telephoneNumber = AnsiString('telephoneNumber'); + NID_telephoneNumber = 864; + + LN_telexNumber = AnsiString('telexNumber'); + NID_telexNumber = 865; + + LN_teletexTerminalIdentifier = AnsiString('teletexTerminalIdentifier'); + NID_teletexTerminalIdentifier = 866; + + LN_facsimileTelephoneNumber = AnsiString('facsimileTelephoneNumber'); + NID_facsimileTelephoneNumber = 867; + + LN_x121Address = AnsiString('x121Address'); + NID_x121Address = 868; + + LN_internationaliSDNNumber = AnsiString('internationaliSDNNumber'); + NID_internationaliSDNNumber = 869; + + LN_registeredAddress = AnsiString('registeredAddress'); + NID_registeredAddress = 870; + + LN_destinationIndicator = AnsiString('destinationIndicator'); + NID_destinationIndicator = 871; + + LN_preferredDeliveryMethod = AnsiString('preferredDeliveryMethod'); + NID_preferredDeliveryMethod = 872; + + LN_presentationAddress = AnsiString('presentationAddress'); + NID_presentationAddress = 873; + + LN_supportedApplicationContext = AnsiString('supportedApplicationContext'); + NID_supportedApplicationContext = 874; + + SN_member = AnsiString('member'); + NID_member = 875; + + SN_owner = AnsiString('owner'); + NID_owner = 876; + + LN_roleOccupant = AnsiString('roleOccupant'); + NID_roleOccupant = 877; + + SN_seeAlso = AnsiString('seeAlso'); + NID_seeAlso = 878; + + LN_userPassword = AnsiString('userPassword'); + NID_userPassword = 879; + + LN_userCertificate = AnsiString('userCertificate'); + NID_userCertificate = 880; + + LN_cACertificate = AnsiString('cACertificate'); + NID_cACertificate = 881; + + LN_authorityRevocationList = AnsiString('authorityRevocationList'); + NID_authorityRevocationList = 882; + + LN_certificateRevocationList = AnsiString('certificateRevocationList'); + NID_certificateRevocationList = 883; + + LN_crossCertificatePair = AnsiString('crossCertificatePair'); + NID_crossCertificatePair = 884; + + SN_name = AnsiString('name'); + LN_name = AnsiString('name'); + NID_name = 173; + + SN_givenName = AnsiString('GN'); + LN_givenName = AnsiString('givenName'); + NID_givenName = 99; + + SN_initials = AnsiString('initials'); + LN_initials = AnsiString('initials'); + NID_initials = 101; + + LN_generationQualifier = AnsiString('generationQualifier'); + NID_generationQualifier = 509; + + LN_x500UniqueIdentifier = AnsiString('x500UniqueIdentifier'); + NID_x500UniqueIdentifier = 503; + + SN_dnQualifier = AnsiString('dnQualifier'); + LN_dnQualifier = AnsiString('dnQualifier'); + NID_dnQualifier = 174; + + LN_enhancedSearchGuide = AnsiString('enhancedSearchGuide'); + NID_enhancedSearchGuide = 885; + + LN_protocolInformation = AnsiString('protocolInformation'); + NID_protocolInformation = 886; + + LN_distinguishedName = AnsiString('distinguishedName'); + NID_distinguishedName = 887; + + LN_uniqueMember = AnsiString('uniqueMember'); + NID_uniqueMember = 888; + + LN_houseIdentifier = AnsiString('houseIdentifier'); + NID_houseIdentifier = 889; + + LN_supportedAlgorithms = AnsiString('supportedAlgorithms'); + NID_supportedAlgorithms = 890; + + LN_deltaRevocationList = AnsiString('deltaRevocationList'); + NID_deltaRevocationList = 891; + + SN_dmdName = AnsiString('dmdName'); + NID_dmdName = 892; + + LN_pseudonym = AnsiString('pseudonym'); + NID_pseudonym = 510; + + SN_role = AnsiString('role'); + LN_role = AnsiString('role'); + NID_role = 400; + + LN_organizationIdentifier = AnsiString('organizationIdentifier'); + NID_organizationIdentifier = 1089; + + SN_countryCode3c = AnsiString('c3'); + LN_countryCode3c = AnsiString('countryCode3c'); + NID_countryCode3c = 1090; + + SN_countryCode3n = AnsiString('n3'); + LN_countryCode3n = AnsiString('countryCode3n'); + NID_countryCode3n = 1091; + + LN_dnsName = AnsiString('dnsName'); + NID_dnsName = 1092; + + SN_X500algorithms = AnsiString('X500algorithms'); + LN_X500algorithms = AnsiString('directory services - algorithms'); + NID_X500algorithms = 378; + + SN_rsa = AnsiString('RSA'); + LN_rsa = AnsiString('rsa'); + NID_rsa = 19; + + SN_mdc2WithRSA = AnsiString('RSA-MDC2'); + LN_mdc2WithRSA = AnsiString('mdc2WithRSA'); + NID_mdc2WithRSA = 96; + + SN_mdc2 = AnsiString('MDC2'); + LN_mdc2 = AnsiString('mdc2'); + NID_mdc2 = 95; + + SN_id_ce = AnsiString('id-ce'); + NID_id_ce = 81; + + SN_subject_directory_attributes = AnsiString('subjectDirectoryAttributes'); + LN_subject_directory_attributes = AnsiString('X509v3 Subject Directory Attributes'); + NID_subject_directory_attributes = 769; + + SN_subject_key_identifier = AnsiString('subjectKeyIdentifier'); + LN_subject_key_identifier = AnsiString('X509v3 Subject Key Identifier'); + NID_subject_key_identifier = 82; + + SN_key_usage = AnsiString('keyUsage'); + LN_key_usage = AnsiString('X509v3 Key Usage'); + NID_key_usage = 83; + + SN_private_key_usage_period = AnsiString('privateKeyUsagePeriod'); + LN_private_key_usage_period = AnsiString('X509v3 Private Key Usage Period'); + NID_private_key_usage_period = 84; + + SN_subject_alt_name = AnsiString('subjectAltName'); + LN_subject_alt_name = AnsiString('X509v3 Subject Alternative Name'); + NID_subject_alt_name = 85; + + SN_issuer_alt_name = AnsiString('issuerAltName'); + LN_issuer_alt_name = AnsiString('X509v3 Issuer Alternative Name'); + NID_issuer_alt_name = 86; + + SN_basic_constraints = AnsiString('basicConstraints'); + LN_basic_constraints = AnsiString('X509v3 Basic Constraints'); + NID_basic_constraints = 87; + + SN_crl_number = AnsiString('crlNumber'); + LN_crl_number = AnsiString('X509v3 CRL Number'); + NID_crl_number = 88; + + SN_crl_reason = AnsiString('CRLReason'); + LN_crl_reason = AnsiString('X509v3 CRL Reason Code'); + NID_crl_reason = 141; + + SN_invalidity_date = AnsiString('invalidityDate'); + LN_invalidity_date = AnsiString('Invalidity Date'); + NID_invalidity_date = 142; + + SN_delta_crl = AnsiString('deltaCRL'); + LN_delta_crl = AnsiString('X509v3 Delta CRL Indicator'); + NID_delta_crl = 140; + + SN_issuing_distribution_point = AnsiString('issuingDistributionPoint'); + LN_issuing_distribution_point = AnsiString('X509v3 Issuing Distribution Point'); + NID_issuing_distribution_point = 770; + + SN_certificate_issuer = AnsiString('certificateIssuer'); + LN_certificate_issuer = AnsiString('X509v3 Certificate Issuer'); + NID_certificate_issuer = 771; + + SN_name_constraints = AnsiString('nameConstraints'); + LN_name_constraints = AnsiString('X509v3 Name Constraints'); + NID_name_constraints = 666; + + SN_crl_distribution_points = AnsiString('crlDistributionPoints'); + LN_crl_distribution_points = AnsiString('X509v3 CRL Distribution Points'); + NID_crl_distribution_points = 103; + + SN_certificate_policies = AnsiString('certificatePolicies'); + LN_certificate_policies = AnsiString('X509v3 Certificate Policies'); + NID_certificate_policies = 89; + + SN_any_policy = AnsiString('anyPolicy'); + LN_any_policy = AnsiString('X509v3 Any Policy'); + NID_any_policy = 746; + + SN_policy_mappings = AnsiString('policyMappings'); + LN_policy_mappings = AnsiString('X509v3 Policy Mappings'); + NID_policy_mappings = 747; + + SN_authority_key_identifier = AnsiString('authorityKeyIdentifier'); + LN_authority_key_identifier = AnsiString('X509v3 Authority Key Identifier'); + NID_authority_key_identifier = 90; + + SN_policy_constraints = AnsiString('policyConstraints'); + LN_policy_constraints = AnsiString('X509v3 Policy Constraints'); + NID_policy_constraints = 401; + + SN_ext_key_usage = AnsiString('extendedKeyUsage'); + LN_ext_key_usage = AnsiString('X509v3 Extended Key Usage'); + NID_ext_key_usage = 126; + + SN_freshest_crl = AnsiString('freshestCRL'); + LN_freshest_crl = AnsiString('X509v3 Freshest CRL'); + NID_freshest_crl = 857; + + SN_inhibit_any_policy = AnsiString('inhibitAnyPolicy'); + LN_inhibit_any_policy = AnsiString('X509v3 Inhibit Any Policy'); + NID_inhibit_any_policy = 748; + + SN_target_information = AnsiString('targetInformation'); + LN_target_information = AnsiString('X509v3 AC Targeting'); + NID_target_information = 402; + + SN_no_rev_avail = AnsiString('noRevAvail'); + LN_no_rev_avail = AnsiString('X509v3 No Revocation Available'); + NID_no_rev_avail = 403; + + SN_anyExtendedKeyUsage = AnsiString('anyExtendedKeyUsage'); + LN_anyExtendedKeyUsage = AnsiString('Any Extended Key Usage'); + NID_anyExtendedKeyUsage = 910; + + SN_netscape = AnsiString('Netscape'); + LN_netscape = AnsiString('Netscape Communications Corp.'); + NID_netscape = 57; + + SN_netscape_cert_extension = AnsiString('nsCertExt'); + LN_netscape_cert_extension = AnsiString('Netscape Certificate Extension'); + NID_netscape_cert_extension = 58; + + SN_netscape_data_type = AnsiString('nsDataType'); + LN_netscape_data_type = AnsiString('Netscape Data Type'); + NID_netscape_data_type = 59; + + SN_netscape_cert_type = AnsiString('nsCertType'); + LN_netscape_cert_type = AnsiString('Netscape Cert Type'); + NID_netscape_cert_type = 71; + + SN_netscape_base_url = AnsiString('nsBaseUrl'); + LN_netscape_base_url = AnsiString('Netscape Base Url'); + NID_netscape_base_url = 72; + + SN_netscape_revocation_url = AnsiString('nsRevocationUrl'); + LN_netscape_revocation_url = AnsiString('Netscape Revocation Url'); + NID_netscape_revocation_url = 73; + + SN_netscape_ca_revocation_url = AnsiString('nsCaRevocationUrl'); + LN_netscape_ca_revocation_url = AnsiString('Netscape CA Revocation Url'); + NID_netscape_ca_revocation_url = 74; + + SN_netscape_renewal_url = AnsiString('nsRenewalUrl'); + LN_netscape_renewal_url = AnsiString('Netscape Renewal Url'); + NID_netscape_renewal_url = 75; + + SN_netscape_ca_policy_url = AnsiString('nsCaPolicyUrl'); + LN_netscape_ca_policy_url = AnsiString('Netscape CA Policy Url'); + NID_netscape_ca_policy_url = 76; + + SN_netscape_ssl_server_name = AnsiString('nsSslServerName'); + LN_netscape_ssl_server_name = AnsiString('Netscape Server: SSl Name'); + NID_netscape_ssl_server_name = 77; + + SN_netscape_comment = AnsiString('nsComment'); + LN_netscape_comment = AnsiString('Netscape Comment'); + NID_netscape_comment = 78; + + SN_netscape_cert_sequence = AnsiString('nsCertSequence'); + LN_netscape_cert_sequence = AnsiString('Netscape Certificate Sequence'); + NID_netscape_cert_sequence = 79; + + SN_ns_sgc = AnsiString('nsSGC'); + LN_ns_sgc = AnsiString('Netscape Server Gated Crypto'); + NID_ns_sgc = 139; + + SN_org = AnsiString('ORG'); + LN_org = AnsiString('org'); + NID_org = 379; + + SN_dod = AnsiString('DOD'); + LN_dod = AnsiString('dod'); + NID_dod = 380; + + SN_iana = AnsiString('IANA'); + LN_iana = AnsiString('iana'); + NID_iana = 381; + + SN_Directory = AnsiString('directory'); + LN_Directory = AnsiString('Directory'); + NID_Directory = 382; + + SN_Management = AnsiString('mgmt'); + LN_Management = AnsiString('Management'); + NID_Management = 383; + + SN_Experimental = AnsiString('experimental'); + LN_Experimental = AnsiString('Experimental'); + NID_Experimental = 384; + + SN_Private = AnsiString('private'); + LN_Private = AnsiString('Private'); + NID_Private = 385; + + SN_Security = AnsiString('security'); + LN_Security = AnsiString('Security'); + NID_Security = 386; + + SN_SNMPv2 = AnsiString('snmpv2'); + LN_SNMPv2 = AnsiString('SNMPv2'); + NID_SNMPv2 = 387; + + LN_Mail = AnsiString('Mail'); + NID_Mail = 388; + + SN_Enterprises = AnsiString('enterprises'); + LN_Enterprises = AnsiString('Enterprises'); + NID_Enterprises = 389; + + SN_dcObject = AnsiString('dcobject'); + LN_dcObject = AnsiString('dcObject'); + NID_dcObject = 390; + + SN_mime_mhs = AnsiString('mime-mhs'); + LN_mime_mhs = AnsiString('MIME MHS'); + NID_mime_mhs = 504; + + SN_mime_mhs_headings = AnsiString('mime-mhs-headings'); + LN_mime_mhs_headings = AnsiString('mime-mhs-headings'); + NID_mime_mhs_headings = 505; + + SN_mime_mhs_bodies = AnsiString('mime-mhs-bodies'); + LN_mime_mhs_bodies = AnsiString('mime-mhs-bodies'); + NID_mime_mhs_bodies = 506; + + SN_id_hex_partial_message = AnsiString('id-hex-partial-message'); + LN_id_hex_partial_message = AnsiString('id-hex-partial-message'); + NID_id_hex_partial_message = 507; + + SN_id_hex_multipart_message = AnsiString('id-hex-multipart-message'); + LN_id_hex_multipart_message = AnsiString('id-hex-multipart-message'); + NID_id_hex_multipart_message = 508; + + SN_zlib_compression = AnsiString('ZLIB'); + LN_zlib_compression = AnsiString('zlib compression'); + NID_zlib_compression = 125; + + SN_aes_128_ecb = AnsiString('AES-128-ECB'); + LN_aes_128_ecb = AnsiString('aes-128-ecb'); + NID_aes_128_ecb = 418; + + SN_aes_128_cbc = AnsiString('AES-128-CBC'); + LN_aes_128_cbc = AnsiString('aes-128-cbc'); + NID_aes_128_cbc = 419; + + SN_aes_128_ofb128 = AnsiString('AES-128-OFB'); + LN_aes_128_ofb128 = AnsiString('aes-128-ofb'); + NID_aes_128_ofb128 = 420; + + SN_aes_128_cfb128 = AnsiString('AES-128-CFB'); + LN_aes_128_cfb128 = AnsiString('aes-128-cfb'); + NID_aes_128_cfb128 = 421; + + SN_id_aes128_wrap = AnsiString('id-aes128-wrap'); + NID_id_aes128_wrap = 788; + + SN_aes_128_gcm = AnsiString('id-aes128-GCM'); + LN_aes_128_gcm = AnsiString('aes-128-gcm'); + NID_aes_128_gcm = 895; + + SN_aes_128_ccm = AnsiString('id-aes128-CCM'); + LN_aes_128_ccm = AnsiString('aes-128-ccm'); + NID_aes_128_ccm = 896; + + SN_id_aes128_wrap_pad = AnsiString('id-aes128-wrap-pad'); + NID_id_aes128_wrap_pad = 897; + + SN_aes_192_ecb = AnsiString('AES-192-ECB'); + LN_aes_192_ecb = AnsiString('aes-192-ecb'); + NID_aes_192_ecb = 422; + + SN_aes_192_cbc = AnsiString('AES-192-CBC'); + LN_aes_192_cbc = AnsiString('aes-192-cbc'); + NID_aes_192_cbc = 423; + + SN_aes_192_ofb128 = AnsiString('AES-192-OFB'); + LN_aes_192_ofb128 = AnsiString('aes-192-ofb'); + NID_aes_192_ofb128 = 424; + + SN_aes_192_cfb128 = AnsiString('AES-192-CFB'); + LN_aes_192_cfb128 = AnsiString('aes-192-cfb'); + NID_aes_192_cfb128 = 425; + + SN_id_aes192_wrap = AnsiString('id-aes192-wrap'); + NID_id_aes192_wrap = 789; + + SN_aes_192_gcm = AnsiString('id-aes192-GCM'); + LN_aes_192_gcm = AnsiString('aes-192-gcm'); + NID_aes_192_gcm = 898; + + SN_aes_192_ccm = AnsiString('id-aes192-CCM'); + LN_aes_192_ccm = AnsiString('aes-192-ccm'); + NID_aes_192_ccm = 899; + + SN_id_aes192_wrap_pad = AnsiString('id-aes192-wrap-pad'); + NID_id_aes192_wrap_pad = 900; + + SN_aes_256_ecb = AnsiString('AES-256-ECB'); + LN_aes_256_ecb = AnsiString('aes-256-ecb'); + NID_aes_256_ecb = 426; + + SN_aes_256_cbc = AnsiString('AES-256-CBC'); + LN_aes_256_cbc = AnsiString('aes-256-cbc'); + NID_aes_256_cbc = 427; + + SN_aes_256_ofb128 = AnsiString('AES-256-OFB'); + LN_aes_256_ofb128 = AnsiString('aes-256-ofb'); + NID_aes_256_ofb128 = 428; + + SN_aes_256_cfb128 = AnsiString('AES-256-CFB'); + LN_aes_256_cfb128 = AnsiString('aes-256-cfb'); + NID_aes_256_cfb128 = 429; + + SN_id_aes256_wrap = AnsiString('id-aes256-wrap'); + NID_id_aes256_wrap = 790; + + SN_aes_256_gcm = AnsiString('id-aes256-GCM'); + LN_aes_256_gcm = AnsiString('aes-256-gcm'); + NID_aes_256_gcm = 901; + + SN_aes_256_ccm = AnsiString('id-aes256-CCM'); + LN_aes_256_ccm = AnsiString('aes-256-ccm'); + NID_aes_256_ccm = 902; + + SN_id_aes256_wrap_pad = AnsiString('id-aes256-wrap-pad'); + NID_id_aes256_wrap_pad = 903; + + SN_aes_128_xts = AnsiString('AES-128-XTS'); + LN_aes_128_xts = AnsiString('aes-128-xts'); + NID_aes_128_xts = 913; + + SN_aes_256_xts = AnsiString('AES-256-XTS'); + LN_aes_256_xts = AnsiString('aes-256-xts'); + NID_aes_256_xts = 914; + + SN_aes_128_cfb1 = AnsiString('AES-128-CFB1'); + LN_aes_128_cfb1 = AnsiString('aes-128-cfb1'); + NID_aes_128_cfb1 = 650; + + SN_aes_192_cfb1 = AnsiString('AES-192-CFB1'); + LN_aes_192_cfb1 = AnsiString('aes-192-cfb1'); + NID_aes_192_cfb1 = 651; + + SN_aes_256_cfb1 = AnsiString('AES-256-CFB1'); + LN_aes_256_cfb1 = AnsiString('aes-256-cfb1'); + NID_aes_256_cfb1 = 652; + + SN_aes_128_cfb8 = AnsiString('AES-128-CFB8'); + LN_aes_128_cfb8 = AnsiString('aes-128-cfb8'); + NID_aes_128_cfb8 = 653; + + SN_aes_192_cfb8 = AnsiString('AES-192-CFB8'); + LN_aes_192_cfb8 = AnsiString('aes-192-cfb8'); + NID_aes_192_cfb8 = 654; + + SN_aes_256_cfb8 = AnsiString('AES-256-CFB8'); + LN_aes_256_cfb8 = AnsiString('aes-256-cfb8'); + NID_aes_256_cfb8 = 655; + + SN_aes_128_ctr = AnsiString('AES-128-CTR'); + LN_aes_128_ctr = AnsiString('aes-128-ctr'); + NID_aes_128_ctr = 904; + + SN_aes_192_ctr = AnsiString('AES-192-CTR'); + LN_aes_192_ctr = AnsiString('aes-192-ctr'); + NID_aes_192_ctr = 905; + + SN_aes_256_ctr = AnsiString('AES-256-CTR'); + LN_aes_256_ctr = AnsiString('aes-256-ctr'); + NID_aes_256_ctr = 906; + + SN_aes_128_ocb = AnsiString('AES-128-OCB'); + LN_aes_128_ocb = AnsiString('aes-128-ocb'); + NID_aes_128_ocb = 958; + + SN_aes_192_ocb = AnsiString('AES-192-OCB'); + LN_aes_192_ocb = AnsiString('aes-192-ocb'); + NID_aes_192_ocb = 959; + + SN_aes_256_ocb = AnsiString('AES-256-OCB'); + LN_aes_256_ocb = AnsiString('aes-256-ocb'); + NID_aes_256_ocb = 960; + + SN_des_cfb1 = AnsiString('DES-CFB1'); + LN_des_cfb1 = AnsiString('des-cfb1'); + NID_des_cfb1 = 656; + + SN_des_cfb8 = AnsiString('DES-CFB8'); + LN_des_cfb8 = AnsiString('des-cfb8'); + NID_des_cfb8 = 657; + + SN_des_ede3_cfb1 = AnsiString('DES-EDE3-CFB1'); + LN_des_ede3_cfb1 = AnsiString('des-ede3-cfb1'); + NID_des_ede3_cfb1 = 658; + + SN_des_ede3_cfb8 = AnsiString('DES-EDE3-CFB8'); + LN_des_ede3_cfb8 = AnsiString('des-ede3-cfb8'); + NID_des_ede3_cfb8 = 659; + + SN_sha256 = AnsiString('SHA256'); + LN_sha256 = AnsiString('sha256'); + NID_sha256 = 672; + + SN_sha384 = AnsiString('SHA384'); + LN_sha384 = AnsiString('sha384'); + NID_sha384 = 673; + + SN_sha512 = AnsiString('SHA512'); + LN_sha512 = AnsiString('sha512'); + NID_sha512 = 674; + + SN_sha224 = AnsiString('SHA224'); + LN_sha224 = AnsiString('sha224'); + NID_sha224 = 675; + + SN_sha512_224 = AnsiString('SHA512-224'); + LN_sha512_224 = AnsiString('sha512-224'); + NID_sha512_224 = 1094; + + SN_sha512_256 = AnsiString('SHA512-256'); + LN_sha512_256 = AnsiString('sha512-256'); + NID_sha512_256 = 1095; + + SN_sha3_224 = AnsiString('SHA3-224'); + LN_sha3_224 = AnsiString('sha3-224'); + NID_sha3_224 = 1096; + + SN_sha3_256 = AnsiString('SHA3-256'); + LN_sha3_256 = AnsiString('sha3-256'); + NID_sha3_256 = 1097; + + SN_sha3_384 = AnsiString('SHA3-384'); + LN_sha3_384 = AnsiString('sha3-384'); + NID_sha3_384 = 1098; + + SN_sha3_512 = AnsiString('SHA3-512'); + LN_sha3_512 = AnsiString('sha3-512'); + NID_sha3_512 = 1099; + + SN_shake128 = AnsiString('SHAKE128'); + LN_shake128 = AnsiString('shake128'); + NID_shake128 = 1100; + + SN_shake256 = AnsiString('SHAKE256'); + LN_shake256 = AnsiString('shake256'); + NID_shake256 = 1101; + + SN_hmac_sha3_224 = AnsiString('id-hmacWithSHA3-224'); + LN_hmac_sha3_224 = AnsiString('hmac-sha3-224'); + NID_hmac_sha3_224 = 1102; + + SN_hmac_sha3_256 = AnsiString('id-hmacWithSHA3-256'); + LN_hmac_sha3_256 = AnsiString('hmac-sha3-256'); + NID_hmac_sha3_256 = 1103; + + SN_hmac_sha3_384 = AnsiString('id-hmacWithSHA3-384'); + LN_hmac_sha3_384 = AnsiString('hmac-sha3-384'); + NID_hmac_sha3_384 = 1104; + + SN_hmac_sha3_512 = AnsiString('id-hmacWithSHA3-512'); + LN_hmac_sha3_512 = AnsiString('hmac-sha3-512'); + NID_hmac_sha3_512 = 1105; + + SN_dsa_with_SHA224 = AnsiString('dsa_with_SHA224'); + NID_dsa_with_SHA224 = 802; + + SN_dsa_with_SHA256 = AnsiString('dsa_with_SHA256'); + NID_dsa_with_SHA256 = 803; + + SN_dsa_with_SHA384 = AnsiString('id-dsa-with-sha384'); + LN_dsa_with_SHA384 = AnsiString('dsa_with_SHA384'); + NID_dsa_with_SHA384 = 1106; + + SN_dsa_with_SHA512 = AnsiString('id-dsa-with-sha512'); + LN_dsa_with_SHA512 = AnsiString('dsa_with_SHA512'); + NID_dsa_with_SHA512 = 1107; + + SN_dsa_with_SHA3_224 = AnsiString('id-dsa-with-sha3-224'); + LN_dsa_with_SHA3_224 = AnsiString('dsa_with_SHA3-224'); + NID_dsa_with_SHA3_224 = 1108; + + SN_dsa_with_SHA3_256 = AnsiString('id-dsa-with-sha3-256'); + LN_dsa_with_SHA3_256 = AnsiString('dsa_with_SHA3-256'); + NID_dsa_with_SHA3_256 = 1109; + + SN_dsa_with_SHA3_384 = AnsiString('id-dsa-with-sha3-384'); + LN_dsa_with_SHA3_384 = AnsiString('dsa_with_SHA3-384'); + NID_dsa_with_SHA3_384 = 1110; + + SN_dsa_with_SHA3_512 = AnsiString('id-dsa-with-sha3-512'); + LN_dsa_with_SHA3_512 = AnsiString('dsa_with_SHA3-512'); + NID_dsa_with_SHA3_512 = 1111; + + SN_ecdsa_with_SHA3_224 = AnsiString('id-ecdsa-with-sha3-224'); + LN_ecdsa_with_SHA3_224 = AnsiString('ecdsa_with_SHA3-224'); + NID_ecdsa_with_SHA3_224 = 1112; + + SN_ecdsa_with_SHA3_256 = AnsiString('id-ecdsa-with-sha3-256'); + LN_ecdsa_with_SHA3_256 = AnsiString('ecdsa_with_SHA3-256'); + NID_ecdsa_with_SHA3_256 = 1113; + + SN_ecdsa_with_SHA3_384 = AnsiString('id-ecdsa-with-sha3-384'); + LN_ecdsa_with_SHA3_384 = AnsiString('ecdsa_with_SHA3-384'); + NID_ecdsa_with_SHA3_384 = 1114; + + SN_ecdsa_with_SHA3_512 = AnsiString('id-ecdsa-with-sha3-512'); + LN_ecdsa_with_SHA3_512 = AnsiString('ecdsa_with_SHA3-512'); + NID_ecdsa_with_SHA3_512 = 1115; + + SN_RSA_SHA3_224 = AnsiString('id-rsassa-pkcs1-v1_5-with-sha3-224'); + LN_RSA_SHA3_224 = AnsiString('RSA-SHA3-224'); + NID_RSA_SHA3_224 = 1116; + + SN_RSA_SHA3_256 = AnsiString('id-rsassa-pkcs1-v1_5-with-sha3-256'); + LN_RSA_SHA3_256 = AnsiString('RSA-SHA3-256'); + NID_RSA_SHA3_256 = 1117; + + SN_RSA_SHA3_384 = AnsiString('id-rsassa-pkcs1-v1_5-with-sha3-384'); + LN_RSA_SHA3_384 = AnsiString('RSA-SHA3-384'); + NID_RSA_SHA3_384 = 1118; + + SN_RSA_SHA3_512 = AnsiString('id-rsassa-pkcs1-v1_5-with-sha3-512'); + LN_RSA_SHA3_512 = AnsiString('RSA-SHA3-512'); + NID_RSA_SHA3_512 = 1119; + + SN_hold_instruction_code = AnsiString('holdInstructionCode'); + LN_hold_instruction_code = AnsiString('Hold Instruction Code'); + NID_hold_instruction_code = 430; + + SN_hold_instruction_none = AnsiString('holdInstructionNone'); + LN_hold_instruction_none = AnsiString('Hold Instruction None'); + NID_hold_instruction_none = 431; + + SN_hold_instruction_call_issuer = AnsiString('holdInstructionCallIssuer'); + LN_hold_instruction_call_issuer = AnsiString('Hold Instruction Call Issuer'); + NID_hold_instruction_call_issuer = 432; + + SN_hold_instruction_reject = AnsiString('holdInstructionReject'); + LN_hold_instruction_reject = AnsiString('Hold Instruction Reject'); + NID_hold_instruction_reject = 433; + + SN_data = AnsiString('data'); + NID_data = 434; + + SN_pss = AnsiString('pss'); + NID_pss = 435; + + SN_ucl = AnsiString('ucl'); + NID_ucl = 436; + + SN_pilot = AnsiString('pilot'); + NID_pilot = 437; + + LN_pilotAttributeType = AnsiString('pilotAttributeType'); + NID_pilotAttributeType = 438; + + LN_pilotAttributeSyntax = AnsiString('pilotAttributeSyntax'); + NID_pilotAttributeSyntax = 439; + + LN_pilotObjectClass = AnsiString('pilotObjectClass'); + NID_pilotObjectClass = 440; + + LN_pilotGroups = AnsiString('pilotGroups'); + NID_pilotGroups = 441; + + LN_iA5StringSyntax = AnsiString('iA5StringSyntax'); + NID_iA5StringSyntax = 442; + + LN_caseIgnoreIA5StringSyntax = AnsiString('caseIgnoreIA5StringSyntax'); + NID_caseIgnoreIA5StringSyntax = 443; + + LN_pilotObject = AnsiString('pilotObject'); + NID_pilotObject = 444; + + LN_pilotPerson = AnsiString('pilotPerson'); + NID_pilotPerson = 445; + + SN_account = AnsiString('account'); + NID_account = 446; + + SN_document = AnsiString('document'); + NID_document = 447; + + SN_room = AnsiString('room'); + NID_room = 448; + + LN_documentSeries = AnsiString('documentSeries'); + NID_documentSeries = 449; + + SN_Domain = AnsiString('domain'); + LN_Domain = AnsiString('Domain'); + NID_Domain = 392; + + LN_rFC822localPart = AnsiString('rFC822localPart'); + NID_rFC822localPart = 450; + + LN_dNSDomain = AnsiString('dNSDomain'); + NID_dNSDomain = 451; + + LN_domainRelatedObject = AnsiString('domainRelatedObject'); + NID_domainRelatedObject = 452; + + LN_friendlyCountry = AnsiString('friendlyCountry'); + NID_friendlyCountry = 453; + + LN_simpleSecurityObject = AnsiString('simpleSecurityObject'); + NID_simpleSecurityObject = 454; + + LN_pilotOrganization = AnsiString('pilotOrganization'); + NID_pilotOrganization = 455; + + LN_pilotDSA = AnsiString('pilotDSA'); + NID_pilotDSA = 456; + + LN_qualityLabelledData = AnsiString('qualityLabelledData'); + NID_qualityLabelledData = 457; + + SN_userId = AnsiString('UID'); + LN_userId = AnsiString('userId'); + NID_userId = 458; + + LN_textEncodedORAddress = AnsiString('textEncodedORAddress'); + NID_textEncodedORAddress = 459; + + SN_rfc822Mailbox = AnsiString('mail'); + LN_rfc822Mailbox = AnsiString('rfc822Mailbox'); + NID_rfc822Mailbox = 460; + + SN_info = AnsiString('info'); + NID_info = 461; + + LN_favouriteDrink = AnsiString('favouriteDrink'); + NID_favouriteDrink = 462; + + LN_roomNumber = AnsiString('roomNumber'); + NID_roomNumber = 463; + + SN_photo = AnsiString('photo'); + NID_photo = 464; + + LN_userClass = AnsiString('userClass'); + NID_userClass = 465; + + SN_host = AnsiString('host'); + NID_host = 466; + + SN_manager = AnsiString('manager'); + NID_manager = 467; + + LN_documentIdentifier = AnsiString('documentIdentifier'); + NID_documentIdentifier = 468; + + LN_documentTitle = AnsiString('documentTitle'); + NID_documentTitle = 469; + + LN_documentVersion = AnsiString('documentVersion'); + NID_documentVersion = 470; + + LN_documentAuthor = AnsiString('documentAuthor'); + NID_documentAuthor = 471; + + LN_documentLocation = AnsiString('documentLocation'); + NID_documentLocation = 472; + + LN_homeTelephoneNumber = AnsiString('homeTelephoneNumber'); + NID_homeTelephoneNumber = 473; + + SN_secretary = AnsiString('secretary'); + NID_secretary = 474; + + LN_otherMailbox = AnsiString('otherMailbox'); + NID_otherMailbox = 475; + + LN_lastModifiedTime = AnsiString('lastModifiedTime'); + NID_lastModifiedTime = 476; + + LN_lastModifiedBy = AnsiString('lastModifiedBy'); + NID_lastModifiedBy = 477; + + SN_domainComponent = AnsiString('DC'); + LN_domainComponent = AnsiString('domainComponent'); + NID_domainComponent = 391; + + LN_aRecord = AnsiString('aRecord'); + NID_aRecord = 478; + + LN_pilotAttributeType27 = AnsiString('pilotAttributeType27'); + NID_pilotAttributeType27 = 479; + + LN_mXRecord = AnsiString('mXRecord'); + NID_mXRecord = 480; + + LN_nSRecord = AnsiString('nSRecord'); + NID_nSRecord = 481; + + LN_sOARecord = AnsiString('sOARecord'); + NID_sOARecord = 482; + + LN_cNAMERecord = AnsiString('cNAMERecord'); + NID_cNAMERecord = 483; + + LN_associatedDomain = AnsiString('associatedDomain'); + NID_associatedDomain = 484; + + LN_associatedName = AnsiString('associatedName'); + NID_associatedName = 485; + + LN_homePostalAddress = AnsiString('homePostalAddress'); + NID_homePostalAddress = 486; + + LN_personalTitle = AnsiString('personalTitle'); + NID_personalTitle = 487; + + LN_mobileTelephoneNumber = AnsiString('mobileTelephoneNumber'); + NID_mobileTelephoneNumber = 488; + + LN_pagerTelephoneNumber = AnsiString('pagerTelephoneNumber'); + NID_pagerTelephoneNumber = 489; + + LN_friendlyCountryName = AnsiString('friendlyCountryName'); + NID_friendlyCountryName = 490; + + SN_uniqueIdentifier = AnsiString('uid'); + LN_uniqueIdentifier = AnsiString('uniqueIdentifier'); + NID_uniqueIdentifier = 102; + + LN_organizationalStatus = AnsiString('organizationalStatus'); + NID_organizationalStatus = 491; + + LN_janetMailbox = AnsiString('janetMailbox'); + NID_janetMailbox = 492; + LN_mailPreferenceOption = AnsiString('mailPreferenceOption'); + NID_mailPreferenceOption = 493; + + LN_buildingName = AnsiString('buildingName'); + NID_buildingName = 494; + + LN_dSAQuality = AnsiString('dSAQuality'); + NID_dSAQuality = 495; + + LN_singleLevelQuality = AnsiString('singleLevelQuality'); + NID_singleLevelQuality = 496; + + LN_subtreeMinimumQuality = AnsiString('subtreeMinimumQuality'); + NID_subtreeMinimumQuality = 497; + + LN_subtreeMaximumQuality = AnsiString('subtreeMaximumQuality'); + NID_subtreeMaximumQuality = 498; + + LN_personalSignature = AnsiString('personalSignature'); + NID_personalSignature = 499; + + LN_dITRedirect = AnsiString('dITRedirect'); + NID_dITRedirect = 500; + + SN_audio = AnsiString('audio'); + NID_audio = 501; + + LN_documentPublisher = AnsiString('documentPublisher'); + NID_documentPublisher = 502; + + SN_id_set = AnsiString('id-set'); + LN_id_set = AnsiString('Secure Electronic Transactions'); + NID_id_set = 512; + + SN_set_ctype = AnsiString('set-ctype'); + LN_set_ctype = AnsiString('content types'); + NID_set_ctype = 513; + + SN_set_msgExt = AnsiString('set-msgExt'); + LN_set_msgExt = AnsiString('message extensions'); + NID_set_msgExt = 514; + + SN_set_attr = AnsiString('set-attr'); + NID_set_attr = 515; + + SN_set_policy = AnsiString('set-policy'); + NID_set_policy = 516; + + SN_set_certExt = AnsiString('set-certExt'); + LN_set_certExt = AnsiString('certificate extensions'); + NID_set_certExt = 517; + + SN_set_brand = AnsiString('set-brand'); + NID_set_brand = 518; + + SN_setct_PANData = AnsiString('setct-PANData'); + NID_setct_PANData = 519; + + SN_setct_PANToken = AnsiString('setct-PANToken'); + NID_setct_PANToken = 520; + + SN_setct_PANOnly = AnsiString('setct-PANOnly'); + NID_setct_PANOnly = 521; + + SN_setct_OIData = AnsiString('setct-OIData'); + NID_setct_OIData = 522; + + SN_setct_PI = AnsiString('setct-PI'); + NID_setct_PI = 523; + + SN_setct_PIData = AnsiString('setct-PIData'); + NID_setct_PIData = 524; + + SN_setct_PIDataUnsigned = AnsiString('setct-PIDataUnsigned'); + NID_setct_PIDataUnsigned = 525; + + SN_setct_HODInput = AnsiString('setct-HODInput'); + NID_setct_HODInput = 526; + + SN_setct_AuthResBaggage = AnsiString('setct-AuthResBaggage'); + NID_setct_AuthResBaggage = 527; + + SN_setct_AuthRevReqBaggage = AnsiString('setct-AuthRevReqBaggage'); + NID_setct_AuthRevReqBaggage = 528; + + SN_setct_AuthRevResBaggage = AnsiString('setct-AuthRevResBaggage'); + NID_setct_AuthRevResBaggage = 529; + + SN_setct_CapTokenSeq = AnsiString('setct-CapTokenSeq'); + NID_setct_CapTokenSeq = 530; + + SN_setct_PInitResData = AnsiString('setct-PInitResData'); + NID_setct_PInitResData = 531; + + SN_setct_PI_TBS = AnsiString('setct-PI-TBS'); + NID_setct_PI_TBS = 532; + + SN_setct_PResData = AnsiString('setct-PResData'); + NID_setct_PResData = 533; + + SN_setct_AuthReqTBS = AnsiString('setct-AuthReqTBS'); + NID_setct_AuthReqTBS = 534; + + SN_setct_AuthResTBS = AnsiString('setct-AuthResTBS'); + NID_setct_AuthResTBS = 535; + + SN_setct_AuthResTBSX = AnsiString('setct-AuthResTBSX'); + NID_setct_AuthResTBSX = 536; + + SN_setct_AuthTokenTBS = AnsiString('setct-AuthTokenTBS'); + NID_setct_AuthTokenTBS = 537; + + SN_setct_CapTokenData = AnsiString('setct-CapTokenData'); + NID_setct_CapTokenData = 538; + + SN_setct_CapTokenTBS = AnsiString('setct-CapTokenTBS'); + NID_setct_CapTokenTBS = 539; + + SN_setct_AcqCardCodeMsg = AnsiString('setct-AcqCardCodeMsg'); + NID_setct_AcqCardCodeMsg = 540; + + SN_setct_AuthRevReqTBS = AnsiString('setct-AuthRevReqTBS'); + NID_setct_AuthRevReqTBS = 541; + + SN_setct_AuthRevResData = AnsiString('setct-AuthRevResData'); + NID_setct_AuthRevResData = 542; + + SN_setct_AuthRevResTBS = AnsiString('setct-AuthRevResTBS'); + NID_setct_AuthRevResTBS = 543; + + SN_setct_CapReqTBS = AnsiString('setct-CapReqTBS'); + NID_setct_CapReqTBS = 544; + + SN_setct_CapReqTBSX = AnsiString('setct-CapReqTBSX'); + NID_setct_CapReqTBSX = 545; + + SN_setct_CapResData = AnsiString('setct-CapResData'); + NID_setct_CapResData = 546; + + SN_setct_CapRevReqTBS = AnsiString('setct-CapRevReqTBS'); + NID_setct_CapRevReqTBS = 547; + + SN_setct_CapRevReqTBSX = AnsiString('setct-CapRevReqTBSX'); + NID_setct_CapRevReqTBSX = 548; + + SN_setct_CapRevResData = AnsiString('setct-CapRevResData'); + NID_setct_CapRevResData = 549; + + SN_setct_CredReqTBS = AnsiString('setct-CredReqTBS'); + NID_setct_CredReqTBS = 550; + + SN_setct_CredReqTBSX = AnsiString('setct-CredReqTBSX'); + NID_setct_CredReqTBSX = 551; + + SN_setct_CredResData = AnsiString('setct-CredResData'); + NID_setct_CredResData = 552; + + SN_setct_CredRevReqTBS = AnsiString('setct-CredRevReqTBS'); + NID_setct_CredRevReqTBS = 553; + + SN_setct_CredRevReqTBSX = AnsiString('setct-CredRevReqTBSX'); + NID_setct_CredRevReqTBSX = 554; + + SN_setct_CredRevResData = AnsiString('setct-CredRevResData'); + NID_setct_CredRevResData = 555; + + SN_setct_PCertReqData = AnsiString('setct-PCertReqData'); + NID_setct_PCertReqData = 556; + + SN_setct_PCertResTBS = AnsiString('setct-PCertResTBS'); + NID_setct_PCertResTBS = 557; + + SN_setct_BatchAdminReqData = AnsiString('setct-BatchAdminReqData'); + NID_setct_BatchAdminReqData = 558; + + SN_setct_BatchAdminResData = AnsiString('setct-BatchAdminResData'); + NID_setct_BatchAdminResData = 559; + + SN_setct_CardCInitResTBS = AnsiString('setct-CardCInitResTBS'); + NID_setct_CardCInitResTBS = 560; + + SN_setct_MeAqCInitResTBS = AnsiString('setct-MeAqCInitResTBS'); + NID_setct_MeAqCInitResTBS = 561; + + SN_setct_RegFormResTBS = AnsiString('setct-RegFormResTBS'); + NID_setct_RegFormResTBS = 562; + + SN_setct_CertReqData = AnsiString('setct-CertReqData'); + NID_setct_CertReqData = 563; + + SN_setct_CertReqTBS = AnsiString('setct-CertReqTBS'); + NID_setct_CertReqTBS = 564; + + SN_setct_CertResData = AnsiString('setct-CertResData'); + NID_setct_CertResData = 565; + + SN_setct_CertInqReqTBS = AnsiString('setct-CertInqReqTBS'); + NID_setct_CertInqReqTBS = 566; + + SN_setct_ErrorTBS = AnsiString('setct-ErrorTBS'); + NID_setct_ErrorTBS = 567; + + SN_setct_PIDualSignedTBE = AnsiString('setct-PIDualSignedTBE'); + NID_setct_PIDualSignedTBE = 568; + + SN_setct_PIUnsignedTBE = AnsiString('setct-PIUnsignedTBE'); + NID_setct_PIUnsignedTBE = 569; + + SN_setct_AuthReqTBE = AnsiString('setct-AuthReqTBE'); + NID_setct_AuthReqTBE = 570; + + SN_setct_AuthResTBE = AnsiString('setct-AuthResTBE'); + NID_setct_AuthResTBE = 571; + + SN_setct_AuthResTBEX = AnsiString('setct-AuthResTBEX'); + NID_setct_AuthResTBEX = 572; + + SN_setct_AuthTokenTBE = AnsiString('setct-AuthTokenTBE'); + NID_setct_AuthTokenTBE = 573; + + SN_setct_CapTokenTBE = AnsiString('setct-CapTokenTBE'); + NID_setct_CapTokenTBE = 574; + + SN_setct_CapTokenTBEX = AnsiString('setct-CapTokenTBEX'); + NID_setct_CapTokenTBEX = 575; + + SN_setct_AcqCardCodeMsgTBE = AnsiString('setct-AcqCardCodeMsgTBE'); + NID_setct_AcqCardCodeMsgTBE = 576; + + SN_setct_AuthRevReqTBE = AnsiString('setct-AuthRevReqTBE'); + NID_setct_AuthRevReqTBE = 577; + + SN_setct_AuthRevResTBE = AnsiString('setct-AuthRevResTBE'); + NID_setct_AuthRevResTBE = 578; + + SN_setct_AuthRevResTBEB = AnsiString('setct-AuthRevResTBEB'); + NID_setct_AuthRevResTBEB = 579; + + SN_setct_CapReqTBE = AnsiString('setct-CapReqTBE'); + NID_setct_CapReqTBE = 580; + + SN_setct_CapReqTBEX = AnsiString('setct-CapReqTBEX'); + NID_setct_CapReqTBEX = 581; + + SN_setct_CapResTBE = AnsiString('setct-CapResTBE'); + NID_setct_CapResTBE = 582; + + SN_setct_CapRevReqTBE = AnsiString('setct-CapRevReqTBE'); + NID_setct_CapRevReqTBE = 583; + + SN_setct_CapRevReqTBEX = AnsiString('setct-CapRevReqTBEX'); + NID_setct_CapRevReqTBEX = 584; + + SN_setct_CapRevResTBE = AnsiString('setct-CapRevResTBE'); + NID_setct_CapRevResTBE = 585; + + SN_setct_CredReqTBE = AnsiString('setct-CredReqTBE'); + NID_setct_CredReqTBE = 586; + + SN_setct_CredReqTBEX = AnsiString('setct-CredReqTBEX'); + NID_setct_CredReqTBEX = 587; + + SN_setct_CredResTBE = AnsiString('setct-CredResTBE'); + NID_setct_CredResTBE = 588; + + SN_setct_CredRevReqTBE = AnsiString('setct-CredRevReqTBE'); + NID_setct_CredRevReqTBE = 589; + + SN_setct_CredRevReqTBEX = AnsiString('setct-CredRevReqTBEX'); + NID_setct_CredRevReqTBEX = 590; + + SN_setct_CredRevResTBE = AnsiString('setct-CredRevResTBE'); + NID_setct_CredRevResTBE = 591; + + SN_setct_BatchAdminReqTBE = AnsiString('setct-BatchAdminReqTBE'); + NID_setct_BatchAdminReqTBE = 592; + + SN_setct_BatchAdminResTBE = AnsiString('setct-BatchAdminResTBE'); + NID_setct_BatchAdminResTBE = 593; + + SN_setct_RegFormReqTBE = AnsiString('setct-RegFormReqTBE'); + NID_setct_RegFormReqTBE = 594; + + SN_setct_CertReqTBE = AnsiString('setct-CertReqTBE'); + NID_setct_CertReqTBE = 595; + + SN_setct_CertReqTBEX = AnsiString('setct-CertReqTBEX'); + NID_setct_CertReqTBEX = 596; + + SN_setct_CertResTBE = AnsiString('setct-CertResTBE'); + NID_setct_CertResTBE = 597; + + SN_setct_CRLNotificationTBS = AnsiString('setct-CRLNotificationTBS'); + NID_setct_CRLNotificationTBS = 598; + + SN_setct_CRLNotificationResTBS = AnsiString('setct-CRLNotificationResTBS'); + NID_setct_CRLNotificationResTBS = 599; + + SN_setct_BCIDistributionTBS = AnsiString('setct-BCIDistributionTBS'); + NID_setct_BCIDistributionTBS = 600; + + SN_setext_genCrypt = AnsiString('setext-genCrypt'); + LN_setext_genCrypt = AnsiString('generic cryptogram'); + NID_setext_genCrypt = 601; + + SN_setext_miAuth = AnsiString('setext-miAuth'); + LN_setext_miAuth = AnsiString('merchant initiated auth'); + NID_setext_miAuth = 602; + + SN_setext_pinSecure = AnsiString('setext-pinSecure'); + NID_setext_pinSecure = 603; + + SN_setext_pinAny = AnsiString('setext-pinAny'); + NID_setext_pinAny = 604; + + SN_setext_track2 = AnsiString('setext-track2'); + NID_setext_track2 = 605; + + SN_setext_cv = AnsiString('setext-cv'); + LN_setext_cv = AnsiString('additional verification'); + NID_setext_cv = 606; + + SN_set_policy_root = AnsiString('set-policy-root'); + NID_set_policy_root = 607; + + SN_setCext_hashedRoot = AnsiString('setCext-hashedRoot'); + NID_setCext_hashedRoot = 608; + + SN_setCext_certType = AnsiString('setCext-certType'); + NID_setCext_certType = 609; + + SN_setCext_merchData = AnsiString('setCext-merchData'); + NID_setCext_merchData = 610; + + SN_setCext_cCertRequired = AnsiString('setCext-cCertRequired'); + NID_setCext_cCertRequired = 611; + + SN_setCext_tunneling = AnsiString('setCext-tunneling'); + NID_setCext_tunneling = 612; + + SN_setCext_setExt = AnsiString('setCext-setExt'); + NID_setCext_setExt = 613; + + SN_setCext_setQualf = AnsiString('setCext-setQualf'); + NID_setCext_setQualf = 614; + + SN_setCext_PGWYcapabilities = AnsiString('setCext-PGWYcapabilities'); + NID_setCext_PGWYcapabilities = 615; + + SN_setCext_TokenIdentifier = AnsiString('setCext-TokenIdentifier'); + NID_setCext_TokenIdentifier = 616; + + SN_setCext_Track2Data = AnsiString('setCext-Track2Data'); + NID_setCext_Track2Data = 617; + + SN_setCext_TokenType = AnsiString('setCext-TokenType'); + NID_setCext_TokenType = 618; + + SN_setCext_IssuerCapabilities = AnsiString('setCext-IssuerCapabilities'); + NID_setCext_IssuerCapabilities = 619; + + SN_setAttr_Cert = AnsiString('setAttr-Cert'); + NID_setAttr_Cert = 620; + + SN_setAttr_PGWYcap = AnsiString('setAttr-PGWYcap'); + LN_setAttr_PGWYcap = AnsiString('payment gateway capabilities'); + NID_setAttr_PGWYcap = 621; + + SN_setAttr_TokenType = AnsiString('setAttr-TokenType'); + NID_setAttr_TokenType = 622; + + SN_setAttr_IssCap = AnsiString('setAttr-IssCap'); + LN_setAttr_IssCap = AnsiString('issuer capabilities'); + NID_setAttr_IssCap = 623; + + SN_set_rootKeyThumb = AnsiString('set-rootKeyThumb'); + NID_set_rootKeyThumb = 624; + + SN_set_addPolicy = AnsiString('set-addPolicy'); + NID_set_addPolicy = 625; + + SN_setAttr_Token_EMV = AnsiString('setAttr-Token-EMV'); + NID_setAttr_Token_EMV = 626; + + SN_setAttr_Token_B0Prime = AnsiString('setAttr-Token-B0Prime'); + NID_setAttr_Token_B0Prime = 627; + + SN_setAttr_IssCap_CVM = AnsiString('setAttr-IssCap-CVM'); + NID_setAttr_IssCap_CVM = 628; + + SN_setAttr_IssCap_T2 = AnsiString('setAttr-IssCap-T2'); + NID_setAttr_IssCap_T2 = 629; + + SN_setAttr_IssCap_Sig = AnsiString('setAttr-IssCap-Sig'); + NID_setAttr_IssCap_Sig = 630; + + SN_setAttr_GenCryptgrm = AnsiString('setAttr-GenCryptgrm'); + LN_setAttr_GenCryptgrm = AnsiString('generate cryptogram'); + NID_setAttr_GenCryptgrm = 631; + + SN_setAttr_T2Enc = AnsiString('setAttr-T2Enc'); + LN_setAttr_T2Enc = AnsiString('encrypted track 2'); + NID_setAttr_T2Enc = 632; + + SN_setAttr_T2cleartxt = AnsiString('setAttr-T2cleartxt'); + LN_setAttr_T2cleartxt = AnsiString('cleartext track 2'); + NID_setAttr_T2cleartxt = 633; + + SN_setAttr_TokICCsig = AnsiString('setAttr-TokICCsig'); + LN_setAttr_TokICCsig = AnsiString('ICC or token signature'); + NID_setAttr_TokICCsig = 634; + + SN_setAttr_SecDevSig = AnsiString('setAttr-SecDevSig'); + LN_setAttr_SecDevSig = AnsiString('secure device signature'); + NID_setAttr_SecDevSig = 635; + + SN_set_brand_IATA_ATA = AnsiString('set-brand-IATA-ATA'); + NID_set_brand_IATA_ATA = 636; + + SN_set_brand_Diners = AnsiString('set-brand-Diners'); + NID_set_brand_Diners = 637; + + SN_set_brand_AmericanExpress = AnsiString('set-brand-AmericanExpress'); + NID_set_brand_AmericanExpress = 638; + + SN_set_brand_JCB = AnsiString('set-brand-JCB'); + NID_set_brand_JCB = 639; + + SN_set_brand_Visa = AnsiString('set-brand-Visa'); + NID_set_brand_Visa = 640; + + SN_set_brand_MasterCard = AnsiString('set-brand-MasterCard'); + NID_set_brand_MasterCard = 641; + + SN_set_brand_Novus = AnsiString('set-brand-Novus'); + NID_set_brand_Novus = 642; + + SN_des_cdmf = AnsiString('DES-CDMF'); + LN_des_cdmf = AnsiString('des-cdmf'); + NID_des_cdmf = 643; + + SN_rsaOAEPEncryptionSET = AnsiString('rsaOAEPEncryptionSET'); + NID_rsaOAEPEncryptionSET = 644; + + SN_ipsec3 = AnsiString('Oakley-EC2N-3'); + LN_ipsec3 = AnsiString('ipsec3'); + NID_ipsec3 = 749; + + SN_ipsec4 = AnsiString('Oakley-EC2N-4'); + LN_ipsec4 = AnsiString('ipsec4'); + NID_ipsec4 = 750; + + SN_whirlpool = AnsiString('whirlpool'); + NID_whirlpool = 804; + + SN_cryptopro = AnsiString('cryptopro'); + NID_cryptopro = 805; + + SN_cryptocom = AnsiString('cryptocom'); + NID_cryptocom = 806; + + SN_id_tc26 = AnsiString('id-tc26'); + NID_id_tc26 = 974; + + SN_id_GostR3411_94_with_GostR3410_2001 = AnsiString('id-GostR3411-94-with-GostR3410-2001'); + LN_id_GostR3411_94_with_GostR3410_2001 = AnsiString('GOST R 34.11-94 with GOST R 34.10-2001'); + NID_id_GostR3411_94_with_GostR3410_2001 = 807; + + SN_id_GostR3411_94_with_GostR3410_94 = AnsiString('id-GostR3411-94-with-GostR3410-94'); + LN_id_GostR3411_94_with_GostR3410_94 = AnsiString('GOST R 34.11-94 with GOST R 34.10-94'); + NID_id_GostR3411_94_with_GostR3410_94 = 808; + + SN_id_GostR3411_94 = AnsiString('md_gost94'); + LN_id_GostR3411_94 = AnsiString('GOST R 34.11-94'); + NID_id_GostR3411_94 = 809; + + SN_id_HMACGostR3411_94 = AnsiString('id-HMACGostR3411-94'); + LN_id_HMACGostR3411_94 = AnsiString('HMAC GOST 34.11-94'); + NID_id_HMACGostR3411_94 = 810; + + SN_id_GostR3410_2001 = AnsiString('gost2001'); + LN_id_GostR3410_2001 = AnsiString('GOST R 34.10-2001'); + NID_id_GostR3410_2001 = 811; + + SN_id_GostR3410_94 = AnsiString('gost94'); + LN_id_GostR3410_94 = AnsiString('GOST R 34.10-94'); + NID_id_GostR3410_94 = 812; + + SN_id_Gost28147_89 = AnsiString('gost89'); + LN_id_Gost28147_89 = AnsiString('GOST 28147-89'); + NID_id_Gost28147_89 = 813; + + SN_gost89_cnt = AnsiString('gost89-cnt'); + NID_gost89_cnt = 814; + + SN_gost89_cnt_12 = AnsiString('gost89-cnt-12'); + NID_gost89_cnt_12 = 975; + + SN_gost89_cbc = AnsiString('gost89-cbc'); + NID_gost89_cbc = 1009; + + SN_gost89_ecb = AnsiString('gost89-ecb'); + NID_gost89_ecb = 1010; + + SN_gost89_ctr = AnsiString('gost89-ctr'); + NID_gost89_ctr = 1011; + + SN_id_Gost28147_89_MAC = AnsiString('gost-mac'); + LN_id_Gost28147_89_MAC = AnsiString('GOST 28147-89 MAC'); + NID_id_Gost28147_89_MAC = 815; + + SN_gost_mac_12 = AnsiString('gost-mac-12'); + NID_gost_mac_12 = 976; + + SN_id_GostR3411_94_prf = AnsiString('prf-gostr3411-94'); + LN_id_GostR3411_94_prf = AnsiString('GOST R 34.11-94 PRF'); + NID_id_GostR3411_94_prf = 816; + + SN_id_GostR3410_2001DH = AnsiString('id-GostR3410-2001DH'); + LN_id_GostR3410_2001DH = AnsiString('GOST R 34.10-2001 DH'); + NID_id_GostR3410_2001DH = 817; + + SN_id_GostR3410_94DH = AnsiString('id-GostR3410-94DH'); + LN_id_GostR3410_94DH = AnsiString('GOST R 34.10-94 DH'); + NID_id_GostR3410_94DH = 818; + + SN_id_Gost28147_89_CryptoPro_KeyMeshing = AnsiString('id-Gost28147-89-CryptoPro-KeyMeshing'); + NID_id_Gost28147_89_CryptoPro_KeyMeshing = 819; + + SN_id_Gost28147_89_None_KeyMeshing = AnsiString('id-Gost28147-89-None-KeyMeshing'); + NID_id_Gost28147_89_None_KeyMeshing = 820; + + SN_id_GostR3411_94_TestParamSet = AnsiString('id-GostR3411-94-TestParamSet'); + NID_id_GostR3411_94_TestParamSet = 821; + + SN_id_GostR3411_94_CryptoProParamSet = AnsiString('id-GostR3411-94-CryptoProParamSet'); + NID_id_GostR3411_94_CryptoProParamSet = 822; + + SN_id_Gost28147_89_TestParamSet = AnsiString('id-Gost28147-89-TestParamSet'); + NID_id_Gost28147_89_TestParamSet = 823; + + SN_id_Gost28147_89_CryptoPro_A_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-A-ParamSet'); + NID_id_Gost28147_89_CryptoPro_A_ParamSet = 824; + + SN_id_Gost28147_89_CryptoPro_B_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-B-ParamSet'); + NID_id_Gost28147_89_CryptoPro_B_ParamSet = 825; + + SN_id_Gost28147_89_CryptoPro_C_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-C-ParamSet'); + NID_id_Gost28147_89_CryptoPro_C_ParamSet = 826; + + SN_id_Gost28147_89_CryptoPro_D_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-D-ParamSet'); + NID_id_Gost28147_89_CryptoPro_D_ParamSet = 827; + + SN_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-Oscar-1-1-ParamSet'); + NID_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet = 828; + + SN_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-Oscar-1-0-ParamSet'); + NID_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet = 829; + + SN_id_Gost28147_89_CryptoPro_RIC_1_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-RIC-1-ParamSet'); + NID_id_Gost28147_89_CryptoPro_RIC_1_ParamSet = 830; + + SN_id_GostR3410_94_TestParamSet = AnsiString('id-GostR3410-94-TestParamSet'); + NID_id_GostR3410_94_TestParamSet = 831; + + SN_id_GostR3410_94_CryptoPro_A_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-A-ParamSet'); + NID_id_GostR3410_94_CryptoPro_A_ParamSet = 832; + + SN_id_GostR3410_94_CryptoPro_B_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-B-ParamSet'); + NID_id_GostR3410_94_CryptoPro_B_ParamSet = 833; + + SN_id_GostR3410_94_CryptoPro_C_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-C-ParamSet'); + NID_id_GostR3410_94_CryptoPro_C_ParamSet = 834; + + SN_id_GostR3410_94_CryptoPro_D_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-D-ParamSet'); + NID_id_GostR3410_94_CryptoPro_D_ParamSet = 835; + + SN_id_GostR3410_94_CryptoPro_XchA_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-XchA-ParamSet'); + NID_id_GostR3410_94_CryptoPro_XchA_ParamSet = 836; + + SN_id_GostR3410_94_CryptoPro_XchB_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-XchB-ParamSet'); + NID_id_GostR3410_94_CryptoPro_XchB_ParamSet = 837; + + SN_id_GostR3410_94_CryptoPro_XchC_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-XchC-ParamSet'); + NID_id_GostR3410_94_CryptoPro_XchC_ParamSet = 838; + + SN_id_GostR3410_2001_TestParamSet = AnsiString('id-GostR3410-2001-TestParamSet'); + NID_id_GostR3410_2001_TestParamSet = 839; + + SN_id_GostR3410_2001_CryptoPro_A_ParamSet = AnsiString('id-GostR3410-2001-CryptoPro-A-ParamSet'); + NID_id_GostR3410_2001_CryptoPro_A_ParamSet = 840; + + SN_id_GostR3410_2001_CryptoPro_B_ParamSet = AnsiString('id-GostR3410-2001-CryptoPro-B-ParamSet'); + NID_id_GostR3410_2001_CryptoPro_B_ParamSet = 841; + + SN_id_GostR3410_2001_CryptoPro_C_ParamSet = AnsiString('id-GostR3410-2001-CryptoPro-C-ParamSet'); + NID_id_GostR3410_2001_CryptoPro_C_ParamSet = 842; + + SN_id_GostR3410_2001_CryptoPro_XchA_ParamSet = AnsiString('id-GostR3410-2001-CryptoPro-XchA-ParamSet'); + NID_id_GostR3410_2001_CryptoPro_XchA_ParamSet = 843; + + SN_id_GostR3410_2001_CryptoPro_XchB_ParamSet = AnsiString('id-GostR3410-2001-CryptoPro-XchB-ParamSet'); + NID_id_GostR3410_2001_CryptoPro_XchB_ParamSet = 844; + + SN_id_GostR3410_94_a = AnsiString('id-GostR3410-94-a'); + NID_id_GostR3410_94_a = 845; + + SN_id_GostR3410_94_aBis = AnsiString('id-GostR3410-94-aBis'); + NID_id_GostR3410_94_aBis = 846; + + SN_id_GostR3410_94_b = AnsiString('id-GostR3410-94-b'); + NID_id_GostR3410_94_b = 847; + + SN_id_GostR3410_94_bBis = AnsiString('id-GostR3410-94-bBis'); + NID_id_GostR3410_94_bBis = 848; + + SN_id_Gost28147_89_cc = AnsiString('id-Gost28147-89-cc'); + LN_id_Gost28147_89_cc = AnsiString('GOST 28147-89 Cryptocom ParamSet'); + NID_id_Gost28147_89_cc = 849; + + SN_id_GostR3410_94_cc = AnsiString('gost94cc'); + LN_id_GostR3410_94_cc = AnsiString('GOST 34.10-94 Cryptocom'); + NID_id_GostR3410_94_cc = 850; + + SN_id_GostR3410_2001_cc = AnsiString('gost2001cc'); + LN_id_GostR3410_2001_cc = AnsiString('GOST 34.10-2001 Cryptocom'); + NID_id_GostR3410_2001_cc = 851; + + SN_id_GostR3411_94_with_GostR3410_94_cc = AnsiString('id-GostR3411-94-with-GostR3410-94-cc'); + LN_id_GostR3411_94_with_GostR3410_94_cc = AnsiString('GOST R 34.11-94 with GOST R 34.10-94 Cryptocom'); + NID_id_GostR3411_94_with_GostR3410_94_cc = 852; + + SN_id_GostR3411_94_with_GostR3410_2001_cc = AnsiString('id-GostR3411-94-with-GostR3410-2001-cc'); + LN_id_GostR3411_94_with_GostR3410_2001_cc = AnsiString('GOST R 34.11-94 with GOST R 34.10-2001 Cryptocom'); + NID_id_GostR3411_94_with_GostR3410_2001_cc = 853; + + SN_id_GostR3410_2001_ParamSet_cc = AnsiString('id-GostR3410-2001-ParamSet-cc'); + LN_id_GostR3410_2001_ParamSet_cc = AnsiString('GOST R 3410-2001 Parameter Set Cryptocom'); + NID_id_GostR3410_2001_ParamSet_cc = 854; + + SN_id_tc26_algorithms = AnsiString('id-tc26-algorithms'); + NID_id_tc26_algorithms = 977; + + SN_id_tc26_sign = AnsiString('id-tc26-sign'); + NID_id_tc26_sign = 978; + + SN_id_GostR3410_2012_256 = AnsiString('gost2012_256'); + LN_id_GostR3410_2012_256 = AnsiString('GOST R 34.10-2012 with 256 bit modulus'); + NID_id_GostR3410_2012_256 = 979; + + SN_id_GostR3410_2012_512 = AnsiString('gost2012_512'); + LN_id_GostR3410_2012_512 = AnsiString('GOST R 34.10-2012 with 512 bit modulus'); + NID_id_GostR3410_2012_512 = 980; + + SN_id_tc26_digest = AnsiString('id-tc26-digest'); + NID_id_tc26_digest = 981; + + SN_id_GostR3411_2012_256 = AnsiString('md_gost12_256'); + LN_id_GostR3411_2012_256 = AnsiString('GOST R 34.11-2012 with 256 bit hash'); + NID_id_GostR3411_2012_256 = 982; + + SN_id_GostR3411_2012_512 = AnsiString('md_gost12_512'); + LN_id_GostR3411_2012_512 = AnsiString('GOST R 34.11-2012 with 512 bit hash'); + NID_id_GostR3411_2012_512 = 983; + + SN_id_tc26_signwithdigest = AnsiString('id-tc26-signwithdigest'); + NID_id_tc26_signwithdigest = 984; + + SN_id_tc26_signwithdigest_gost3410_2012_256 = AnsiString('id-tc26-signwithdigest-gost3410-2012-256'); + LN_id_tc26_signwithdigest_gost3410_2012_256 = AnsiString('GOST R 34.10-2012 with GOST R 34.11-2012(256 bit)'); + NID_id_tc26_signwithdigest_gost3410_2012_256 = 985; + + SN_id_tc26_signwithdigest_gost3410_2012_512 = AnsiString('id-tc26-signwithdigest-gost3410-2012-512'); + LN_id_tc26_signwithdigest_gost3410_2012_512 = AnsiString('GOST R 34.10-2012 with GOST R 34.11-2012(512 bit)'); + NID_id_tc26_signwithdigest_gost3410_2012_512 = 986; + + SN_id_tc26_mac = AnsiString('id-tc26-mac'); + NID_id_tc26_mac = 987; + + SN_id_tc26_hmac_gost_3411_2012_256 = AnsiString('id-tc26-hmac-gost-3411-2012-256'); + LN_id_tc26_hmac_gost_3411_2012_256 = AnsiString('HMAC GOST 34.11-2012 256 bit'); + NID_id_tc26_hmac_gost_3411_2012_256 = 988; + + SN_id_tc26_hmac_gost_3411_2012_512 = AnsiString('id-tc26-hmac-gost-3411-2012-512'); + LN_id_tc26_hmac_gost_3411_2012_512 = AnsiString('HMAC GOST 34.11-2012 512 bit'); + NID_id_tc26_hmac_gost_3411_2012_512 = 989; + + SN_id_tc26_cipher = AnsiString('id-tc26-cipher'); + NID_id_tc26_cipher = 990; + + SN_id_tc26_cipher_gostr3412_2015_magma = AnsiString('id-tc26-cipher-gostr3412-2015-magma'); + NID_id_tc26_cipher_gostr3412_2015_magma = 1173; + + SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm = AnsiString('id-tc26-cipher-gostr3412-2015-magma-ctracpkm'); + NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm = 1174; + + SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac = AnsiString('id-tc26-cipher-gostr3412-2015-magma-ctracpkm-omac'); + NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac = 1175; + + SN_id_tc26_cipher_gostr3412_2015_kuznyechik = AnsiString('id-tc26-cipher-gostr3412-2015-kuznyechik'); + NID_id_tc26_cipher_gostr3412_2015_kuznyechik = 1176; + + SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm = AnsiString('id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm'); + NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm = 1177; + + SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac = AnsiString('id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm-omac'); + NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac = 1178; + + SN_id_tc26_agreement = AnsiString('id-tc26-agreement'); + NID_id_tc26_agreement = 991; + + SN_id_tc26_agreement_gost_3410_2012_256 = AnsiString('id-tc26-agreement-gost-3410-2012-256'); + NID_id_tc26_agreement_gost_3410_2012_256 = 992; + + SN_id_tc26_agreement_gost_3410_2012_512 = AnsiString('id-tc26-agreement-gost-3410-2012-512'); + NID_id_tc26_agreement_gost_3410_2012_512 = 993; + + SN_id_tc26_wrap = AnsiString('id-tc26-wrap'); + NID_id_tc26_wrap = 1179; + + SN_id_tc26_wrap_gostr3412_2015_magma = AnsiString('id-tc26-wrap-gostr3412-2015-magma'); + NID_id_tc26_wrap_gostr3412_2015_magma = 1180; + + SN_id_tc26_wrap_gostr3412_2015_magma_kexp15 = AnsiString('id-tc26-wrap-gostr3412-2015-magma-kexp15'); + NID_id_tc26_wrap_gostr3412_2015_magma_kexp15 = 1181; + + SN_id_tc26_wrap_gostr3412_2015_kuznyechik = AnsiString('id-tc26-wrap-gostr3412-2015-kuznyechik'); + NID_id_tc26_wrap_gostr3412_2015_kuznyechik = 1182; + + SN_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 = AnsiString('id-tc26-wrap-gostr3412-2015-kuznyechik-kexp15'); + NID_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 = 1183; + + SN_id_tc26_constants = AnsiString('id-tc26-constants'); + NID_id_tc26_constants = 994; + + SN_id_tc26_sign_constants = AnsiString('id-tc26-sign-constants'); + NID_id_tc26_sign_constants = 995; + + SN_id_tc26_gost_3410_2012_256_constants = AnsiString('id-tc26-gost-3410-2012-256-constants'); + NID_id_tc26_gost_3410_2012_256_constants = 1147; + + SN_id_tc26_gost_3410_2012_256_paramSetA = AnsiString('id-tc26-gost-3410-2012-256-paramSetA'); + LN_id_tc26_gost_3410_2012_256_paramSetA = AnsiString('GOST R 34.10-2012(256 bit)ParamSet A'); + NID_id_tc26_gost_3410_2012_256_paramSetA = 1148; + + SN_id_tc26_gost_3410_2012_256_paramSetB = AnsiString('id-tc26-gost-3410-2012-256-paramSetB'); + LN_id_tc26_gost_3410_2012_256_paramSetB = AnsiString('GOST R 34.10-2012(256 bit)ParamSet B'); + NID_id_tc26_gost_3410_2012_256_paramSetB = 1184; + + SN_id_tc26_gost_3410_2012_256_paramSetC = AnsiString('id-tc26-gost-3410-2012-256-paramSetC'); + LN_id_tc26_gost_3410_2012_256_paramSetC = AnsiString('GOST R 34.10-2012(256 bit)ParamSet C'); + NID_id_tc26_gost_3410_2012_256_paramSetC = 1185; + + SN_id_tc26_gost_3410_2012_256_paramSetD = AnsiString('id-tc26-gost-3410-2012-256-paramSetD'); + LN_id_tc26_gost_3410_2012_256_paramSetD = AnsiString('GOST R 34.10-2012(256 bit)ParamSet D'); + NID_id_tc26_gost_3410_2012_256_paramSetD = 1186; + + SN_id_tc26_gost_3410_2012_512_constants = AnsiString('id-tc26-gost-3410-2012-512-constants'); + NID_id_tc26_gost_3410_2012_512_constants = 996; + + SN_id_tc26_gost_3410_2012_512_paramSetTest = AnsiString('id-tc26-gost-3410-2012-512-paramSetTest'); + LN_id_tc26_gost_3410_2012_512_paramSetTest = AnsiString('GOST R 34.10-2012(512 bit)testing parameter set'); + NID_id_tc26_gost_3410_2012_512_paramSetTest = 997; + + SN_id_tc26_gost_3410_2012_512_paramSetA = AnsiString('id-tc26-gost-3410-2012-512-paramSetA'); + LN_id_tc26_gost_3410_2012_512_paramSetA = AnsiString('GOST R 34.10-2012(512 bit)ParamSet A'); + NID_id_tc26_gost_3410_2012_512_paramSetA = 998; + + SN_id_tc26_gost_3410_2012_512_paramSetB = AnsiString('id-tc26-gost-3410-2012-512-paramSetB'); + LN_id_tc26_gost_3410_2012_512_paramSetB = AnsiString('GOST R 34.10-2012(512 bit)ParamSet B'); + NID_id_tc26_gost_3410_2012_512_paramSetB = 999; + + SN_id_tc26_gost_3410_2012_512_paramSetC = AnsiString('id-tc26-gost-3410-2012-512-paramSetC'); + LN_id_tc26_gost_3410_2012_512_paramSetC = AnsiString('GOST R 34.10-2012(512 bit)ParamSet C'); + NID_id_tc26_gost_3410_2012_512_paramSetC = 1149; + + SN_id_tc26_digest_constants = AnsiString('id-tc26-digest-constants'); + NID_id_tc26_digest_constants = 1000; + + SN_id_tc26_cipher_constants = AnsiString('id-tc26-cipher-constants'); + NID_id_tc26_cipher_constants = 1001; + + SN_id_tc26_gost_28147_constants = AnsiString('id-tc26-gost-28147-constants'); + NID_id_tc26_gost_28147_constants = 1002; + + SN_id_tc26_gost_28147_param_Z = AnsiString('id-tc26-gost-28147-param-Z'); + LN_id_tc26_gost_28147_param_Z = AnsiString('GOST 28147-89 TC26 parameter set'); + NID_id_tc26_gost_28147_param_Z = 1003; + + SN_INN = AnsiString('INN'); + LN_INN = AnsiString('INN'); + NID_INN = 1004; + + SN_OGRN = AnsiString('OGRN'); + LN_OGRN = AnsiString('OGRN'); + NID_OGRN = 1005; + + SN_SNILS = AnsiString('SNILS'); + LN_SNILS = AnsiString('SNILS'); + NID_SNILS = 1006; + + SN_subjectSignTool = AnsiString('subjectSignTool'); + LN_subjectSignTool = AnsiString('Signing Tool of Subject'); + NID_subjectSignTool = 1007; + + SN_issuerSignTool = AnsiString('issuerSignTool'); + LN_issuerSignTool = AnsiString('Signing Tool of Issuer'); + NID_issuerSignTool = 1008; + + SN_grasshopper_ecb = AnsiString('grasshopper-ecb'); + NID_grasshopper_ecb = 1012; + + SN_grasshopper_ctr = AnsiString('grasshopper-ctr'); + NID_grasshopper_ctr = 1013; + + SN_grasshopper_ofb = AnsiString('grasshopper-ofb'); + NID_grasshopper_ofb = 1014; + + SN_grasshopper_cbc = AnsiString('grasshopper-cbc'); + NID_grasshopper_cbc = 1015; + + SN_grasshopper_cfb = AnsiString('grasshopper-cfb'); + NID_grasshopper_cfb = 1016; + + SN_grasshopper_mac = AnsiString('grasshopper-mac'); + NID_grasshopper_mac = 1017; + + SN_magma_ecb = AnsiString('magma-ecb'); + NID_magma_ecb = 1187; + + SN_magma_ctr = AnsiString('magma-ctr'); + NID_magma_ctr = 1188; + + SN_magma_ofb = AnsiString('magma-ofb'); + NID_magma_ofb = 1189; + + SN_magma_cbc = AnsiString('magma-cbc'); + NID_magma_cbc = 1190; + + SN_magma_cfb = AnsiString('magma-cfb'); + NID_magma_cfb = 1191; + + SN_magma_mac = AnsiString('magma-mac'); + NID_magma_mac = 1192; + + SN_camellia_128_cbc = AnsiString('CAMELLIA-128-CBC'); + LN_camellia_128_cbc = AnsiString('camellia-128-cbc'); + NID_camellia_128_cbc = 751; + + SN_camellia_192_cbc = AnsiString('CAMELLIA-192-CBC'); + LN_camellia_192_cbc = AnsiString('camellia-192-cbc'); + NID_camellia_192_cbc = 752; + + SN_camellia_256_cbc = AnsiString('CAMELLIA-256-CBC'); + LN_camellia_256_cbc = AnsiString('camellia-256-cbc'); + NID_camellia_256_cbc = 753; + + SN_id_camellia128_wrap = AnsiString('id-camellia128-wrap'); + NID_id_camellia128_wrap = 907; + + SN_id_camellia192_wrap = AnsiString('id-camellia192-wrap'); + NID_id_camellia192_wrap = 908; + + SN_id_camellia256_wrap = AnsiString('id-camellia256-wrap'); + NID_id_camellia256_wrap = 909; + + SN_camellia_128_ecb = AnsiString('CAMELLIA-128-ECB'); + LN_camellia_128_ecb = AnsiString('camellia-128-ecb'); + NID_camellia_128_ecb = 754; + + SN_camellia_128_ofb128 = AnsiString('CAMELLIA-128-OFB'); + LN_camellia_128_ofb128 = AnsiString('camellia-128-ofb'); + NID_camellia_128_ofb128 = 766; + + SN_camellia_128_cfb128 = AnsiString('CAMELLIA-128-CFB'); + LN_camellia_128_cfb128 = AnsiString('camellia-128-cfb'); + NID_camellia_128_cfb128 = 757; + + SN_camellia_128_gcm = AnsiString('CAMELLIA-128-GCM'); + LN_camellia_128_gcm = AnsiString('camellia-128-gcm'); + NID_camellia_128_gcm = 961; + + SN_camellia_128_ccm = AnsiString('CAMELLIA-128-CCM'); + LN_camellia_128_ccm = AnsiString('camellia-128-ccm'); + NID_camellia_128_ccm = 962; + + SN_camellia_128_ctr = AnsiString('CAMELLIA-128-CTR'); + LN_camellia_128_ctr = AnsiString('camellia-128-ctr'); + NID_camellia_128_ctr = 963; + + SN_camellia_128_cmac = AnsiString('CAMELLIA-128-CMAC'); + LN_camellia_128_cmac = AnsiString('camellia-128-cmac'); + NID_camellia_128_cmac = 964; + + SN_camellia_192_ecb = AnsiString('CAMELLIA-192-ECB'); + LN_camellia_192_ecb = AnsiString('camellia-192-ecb'); + NID_camellia_192_ecb = 755; + + SN_camellia_192_ofb128 = AnsiString('CAMELLIA-192-OFB'); + LN_camellia_192_ofb128 = AnsiString('camellia-192-ofb'); + NID_camellia_192_ofb128 = 767; + + SN_camellia_192_cfb128 = AnsiString('CAMELLIA-192-CFB'); + LN_camellia_192_cfb128 = AnsiString('camellia-192-cfb'); + NID_camellia_192_cfb128 = 758; + + SN_camellia_192_gcm = AnsiString('CAMELLIA-192-GCM'); + LN_camellia_192_gcm = AnsiString('camellia-192-gcm'); + NID_camellia_192_gcm = 965; + + SN_camellia_192_ccm = AnsiString('CAMELLIA-192-CCM'); + LN_camellia_192_ccm = AnsiString('camellia-192-ccm'); + NID_camellia_192_ccm = 966; + + SN_camellia_192_ctr = AnsiString('CAMELLIA-192-CTR'); + LN_camellia_192_ctr = AnsiString('camellia-192-ctr'); + NID_camellia_192_ctr = 967; + + SN_camellia_192_cmac = AnsiString('CAMELLIA-192-CMAC'); + LN_camellia_192_cmac = AnsiString('camellia-192-cmac'); + NID_camellia_192_cmac = 968; + + SN_camellia_256_ecb = AnsiString('CAMELLIA-256-ECB'); + LN_camellia_256_ecb = AnsiString('camellia-256-ecb'); + NID_camellia_256_ecb = 756; + + SN_camellia_256_ofb128 = AnsiString('CAMELLIA-256-OFB'); + LN_camellia_256_ofb128 = AnsiString('camellia-256-ofb'); + NID_camellia_256_ofb128 = 768; + + SN_camellia_256_cfb128 = AnsiString('CAMELLIA-256-CFB'); + LN_camellia_256_cfb128 = AnsiString('camellia-256-cfb'); + NID_camellia_256_cfb128 = 759; + + SN_camellia_256_gcm = AnsiString('CAMELLIA-256-GCM'); + LN_camellia_256_gcm = AnsiString('camellia-256-gcm'); + NID_camellia_256_gcm = 969; + + SN_camellia_256_ccm = AnsiString('CAMELLIA-256-CCM'); + LN_camellia_256_ccm = AnsiString('camellia-256-ccm'); + NID_camellia_256_ccm = 970; + + SN_camellia_256_ctr = AnsiString('CAMELLIA-256-CTR'); + LN_camellia_256_ctr = AnsiString('camellia-256-ctr'); + NID_camellia_256_ctr = 971; + + SN_camellia_256_cmac = AnsiString('CAMELLIA-256-CMAC'); + LN_camellia_256_cmac = AnsiString('camellia-256-cmac'); + NID_camellia_256_cmac = 972; + + SN_camellia_128_cfb1 = AnsiString('CAMELLIA-128-CFB1'); + LN_camellia_128_cfb1 = AnsiString('camellia-128-cfb1'); + NID_camellia_128_cfb1 = 760; + + SN_camellia_192_cfb1 = AnsiString('CAMELLIA-192-CFB1'); + LN_camellia_192_cfb1 = AnsiString('camellia-192-cfb1'); + NID_camellia_192_cfb1 = 761; + + SN_camellia_256_cfb1 = AnsiString('CAMELLIA-256-CFB1'); + LN_camellia_256_cfb1 = AnsiString('camellia-256-cfb1'); + NID_camellia_256_cfb1 = 762; + + SN_camellia_128_cfb8 = AnsiString('CAMELLIA-128-CFB8'); + LN_camellia_128_cfb8 = AnsiString('camellia-128-cfb8'); + NID_camellia_128_cfb8 = 763; + + SN_camellia_192_cfb8 = AnsiString('CAMELLIA-192-CFB8'); + LN_camellia_192_cfb8 = AnsiString('camellia-192-cfb8'); + NID_camellia_192_cfb8 = 764; + + SN_camellia_256_cfb8 = AnsiString('CAMELLIA-256-CFB8'); + LN_camellia_256_cfb8 = AnsiString('camellia-256-cfb8'); + NID_camellia_256_cfb8 = 765; + + SN_aria_128_ecb = AnsiString('ARIA-128-ECB'); + LN_aria_128_ecb = AnsiString('aria-128-ecb'); + NID_aria_128_ecb = 1065; + + SN_aria_128_cbc = AnsiString('ARIA-128-CBC'); + LN_aria_128_cbc = AnsiString('aria-128-cbc'); + NID_aria_128_cbc = 1066; + + SN_aria_128_cfb128 = AnsiString('ARIA-128-CFB'); + LN_aria_128_cfb128 = AnsiString('aria-128-cfb'); + NID_aria_128_cfb128 = 1067; + + SN_aria_128_ofb128 = AnsiString('ARIA-128-OFB'); + LN_aria_128_ofb128 = AnsiString('aria-128-ofb'); + NID_aria_128_ofb128 = 1068; + + SN_aria_128_ctr = AnsiString('ARIA-128-CTR'); + LN_aria_128_ctr = AnsiString('aria-128-ctr'); + NID_aria_128_ctr = 1069; + + SN_aria_192_ecb = AnsiString('ARIA-192-ECB'); + LN_aria_192_ecb = AnsiString('aria-192-ecb'); + NID_aria_192_ecb = 1070; + + SN_aria_192_cbc = AnsiString('ARIA-192-CBC'); + LN_aria_192_cbc = AnsiString('aria-192-cbc'); + NID_aria_192_cbc = 1071; + + SN_aria_192_cfb128 = AnsiString('ARIA-192-CFB'); + LN_aria_192_cfb128 = AnsiString('aria-192-cfb'); + NID_aria_192_cfb128 = 1072; + + SN_aria_192_ofb128 = AnsiString('ARIA-192-OFB'); + LN_aria_192_ofb128 = AnsiString('aria-192-ofb'); + NID_aria_192_ofb128 = 1073; + + SN_aria_192_ctr = AnsiString('ARIA-192-CTR'); + LN_aria_192_ctr = AnsiString('aria-192-ctr'); + NID_aria_192_ctr = 1074; + + SN_aria_256_ecb = AnsiString('ARIA-256-ECB'); + LN_aria_256_ecb = AnsiString('aria-256-ecb'); + NID_aria_256_ecb = 1075; + + SN_aria_256_cbc = AnsiString('ARIA-256-CBC'); + LN_aria_256_cbc = AnsiString('aria-256-cbc'); + NID_aria_256_cbc = 1076; + + SN_aria_256_cfb128 = AnsiString('ARIA-256-CFB'); + LN_aria_256_cfb128 = AnsiString('aria-256-cfb'); + NID_aria_256_cfb128 = 1077; + + SN_aria_256_ofb128 = AnsiString('ARIA-256-OFB'); + LN_aria_256_ofb128 = AnsiString('aria-256-ofb'); + NID_aria_256_ofb128 = 1078; + + SN_aria_256_ctr = AnsiString('ARIA-256-CTR'); + LN_aria_256_ctr = AnsiString('aria-256-ctr'); + NID_aria_256_ctr = 1079; + + SN_aria_128_cfb1 = AnsiString('ARIA-128-CFB1'); + LN_aria_128_cfb1 = AnsiString('aria-128-cfb1'); + NID_aria_128_cfb1 = 1080; + + SN_aria_192_cfb1 = AnsiString('ARIA-192-CFB1'); + LN_aria_192_cfb1 = AnsiString('aria-192-cfb1'); + NID_aria_192_cfb1 = 1081; + + SN_aria_256_cfb1 = AnsiString('ARIA-256-CFB1'); + LN_aria_256_cfb1 = AnsiString('aria-256-cfb1'); + NID_aria_256_cfb1 = 1082; + + SN_aria_128_cfb8 = AnsiString('ARIA-128-CFB8'); + LN_aria_128_cfb8 = AnsiString('aria-128-cfb8'); + NID_aria_128_cfb8 = 1083; + + SN_aria_192_cfb8 = AnsiString('ARIA-192-CFB8'); + LN_aria_192_cfb8 = AnsiString('aria-192-cfb8'); + NID_aria_192_cfb8 = 1084; + + SN_aria_256_cfb8 = AnsiString('ARIA-256-CFB8'); + LN_aria_256_cfb8 = AnsiString('aria-256-cfb8'); + NID_aria_256_cfb8 = 1085; + + SN_aria_128_ccm = AnsiString('ARIA-128-CCM'); + LN_aria_128_ccm = AnsiString('aria-128-ccm'); + NID_aria_128_ccm = 1120; + + SN_aria_192_ccm = AnsiString('ARIA-192-CCM'); + LN_aria_192_ccm = AnsiString('aria-192-ccm'); + NID_aria_192_ccm = 1121; + + SN_aria_256_ccm = AnsiString('ARIA-256-CCM'); + LN_aria_256_ccm = AnsiString('aria-256-ccm'); + NID_aria_256_ccm = 1122; + + SN_aria_128_gcm = AnsiString('ARIA-128-GCM'); + LN_aria_128_gcm = AnsiString('aria-128-gcm'); + NID_aria_128_gcm = 1123; + + SN_aria_192_gcm = AnsiString('ARIA-192-GCM'); + LN_aria_192_gcm = AnsiString('aria-192-gcm'); + NID_aria_192_gcm = 1124; + + SN_aria_256_gcm = AnsiString('ARIA-256-GCM'); + LN_aria_256_gcm = AnsiString('aria-256-gcm'); + NID_aria_256_gcm = 1125; + + SN_kisa = AnsiString('KISA'); + LN_kisa = AnsiString('kisa'); + NID_kisa = 773; + + SN_seed_ecb = AnsiString('SEED-ECB'); + LN_seed_ecb = AnsiString('seed-ecb'); + NID_seed_ecb = 776; + + SN_seed_cbc = AnsiString('SEED-CBC'); + LN_seed_cbc = AnsiString('seed-cbc'); + NID_seed_cbc = 777; + + SN_seed_cfb128 = AnsiString('SEED-CFB'); + LN_seed_cfb128 = AnsiString('seed-cfb'); + NID_seed_cfb128 = 779; + + SN_seed_ofb128 = AnsiString('SEED-OFB'); + LN_seed_ofb128 = AnsiString('seed-ofb'); + NID_seed_ofb128 = 778; + + SN_sm4_ecb = AnsiString('SM4-ECB'); + LN_sm4_ecb = AnsiString('sm4-ecb'); + NID_sm4_ecb = 1133; + + SN_sm4_cbc = AnsiString('SM4-CBC'); + LN_sm4_cbc = AnsiString('sm4-cbc'); + NID_sm4_cbc = 1134; + + SN_sm4_ofb128 = AnsiString('SM4-OFB'); + LN_sm4_ofb128 = AnsiString('sm4-ofb'); + NID_sm4_ofb128 = 1135; + + SN_sm4_cfb128 = AnsiString('SM4-CFB'); + LN_sm4_cfb128 = AnsiString('sm4-cfb'); + NID_sm4_cfb128 = 1137; + + SN_sm4_cfb1 = AnsiString('SM4-CFB1'); + LN_sm4_cfb1 = AnsiString('sm4-cfb1'); + NID_sm4_cfb1 = 1136; + + SN_sm4_cfb8 = AnsiString('SM4-CFB8'); + LN_sm4_cfb8 = AnsiString('sm4-cfb8'); + NID_sm4_cfb8 = 1138; + + SN_sm4_ctr = AnsiString('SM4-CTR'); + LN_sm4_ctr = AnsiString('sm4-ctr'); + NID_sm4_ctr = 1139; + + SN_hmac = AnsiString('HMAC'); + LN_hmac = AnsiString('hmac'); + NID_hmac = 855; + + SN_cmac = AnsiString('CMAC'); + LN_cmac = AnsiString('cmac'); + NID_cmac = 894; + + SN_rc4_hmac_md5 = AnsiString('RC4-HMAC-MD5'); + LN_rc4_hmac_md5 = AnsiString('rc4-hmac-md5'); + NID_rc4_hmac_md5 = 915; + + SN_aes_128_cbc_hmac_sha1 = AnsiString('AES-128-CBC-HMAC-SHA1'); + LN_aes_128_cbc_hmac_sha1 = AnsiString('aes-128-cbc-hmac-sha1'); + NID_aes_128_cbc_hmac_sha1 = 916; + + SN_aes_192_cbc_hmac_sha1 = AnsiString('AES-192-CBC-HMAC-SHA1'); + LN_aes_192_cbc_hmac_sha1 = AnsiString('aes-192-cbc-hmac-sha1'); + NID_aes_192_cbc_hmac_sha1 = 917; + + SN_aes_256_cbc_hmac_sha1 = AnsiString('AES-256-CBC-HMAC-SHA1'); + LN_aes_256_cbc_hmac_sha1 = AnsiString('aes-256-cbc-hmac-sha1'); + NID_aes_256_cbc_hmac_sha1 = 918; + + SN_aes_128_cbc_hmac_sha256 = AnsiString('AES-128-CBC-HMAC-SHA256'); + LN_aes_128_cbc_hmac_sha256 = AnsiString('aes-128-cbc-hmac-sha256'); + NID_aes_128_cbc_hmac_sha256 = 948; + + SN_aes_192_cbc_hmac_sha256 = AnsiString('AES-192-CBC-HMAC-SHA256'); + LN_aes_192_cbc_hmac_sha256 = AnsiString('aes-192-cbc-hmac-sha256'); + NID_aes_192_cbc_hmac_sha256 = 949; + + SN_aes_256_cbc_hmac_sha256 = AnsiString('AES-256-CBC-HMAC-SHA256'); + LN_aes_256_cbc_hmac_sha256 = AnsiString('aes-256-cbc-hmac-sha256'); + NID_aes_256_cbc_hmac_sha256 = 950; + + SN_chacha20_poly1305 = AnsiString('ChaCha20-Poly1305'); + LN_chacha20_poly1305 = AnsiString('chacha20-poly1305'); + NID_chacha20_poly1305 = 1018; + + SN_chacha20 = AnsiString('ChaCha20'); + LN_chacha20 = AnsiString('chacha20'); + NID_chacha20 = 1019; + + SN_dhpublicnumber = AnsiString('dhpublicnumber'); + LN_dhpublicnumber = AnsiString('X9.42 DH'); + NID_dhpublicnumber = 920; + + SN_brainpoolP160r1 = AnsiString('brainpoolP160r1'); + NID_brainpoolP160r1 = 921; + + SN_brainpoolP160t1 = AnsiString('brainpoolP160t1'); + NID_brainpoolP160t1 = 922; + + SN_brainpoolP192r1 = AnsiString('brainpoolP192r1'); + NID_brainpoolP192r1 = 923; + + SN_brainpoolP192t1 = AnsiString('brainpoolP192t1'); + NID_brainpoolP192t1 = 924; + + SN_brainpoolP224r1 = AnsiString('brainpoolP224r1'); + NID_brainpoolP224r1 = 925; + + SN_brainpoolP224t1 = AnsiString('brainpoolP224t1'); + NID_brainpoolP224t1 = 926; + + SN_brainpoolP256r1 = AnsiString('brainpoolP256r1'); + NID_brainpoolP256r1 = 927; + + SN_brainpoolP256t1 = AnsiString('brainpoolP256t1'); + NID_brainpoolP256t1 = 928; + + SN_brainpoolP320r1 = AnsiString('brainpoolP320r1'); + NID_brainpoolP320r1 = 929; + + SN_brainpoolP320t1 = AnsiString('brainpoolP320t1'); + NID_brainpoolP320t1 = 930; + + SN_brainpoolP384r1 = AnsiString('brainpoolP384r1'); + NID_brainpoolP384r1 = 931; + + SN_brainpoolP384t1 = AnsiString('brainpoolP384t1'); + NID_brainpoolP384t1 = 932; + + SN_brainpoolP512r1 = AnsiString('brainpoolP512r1'); + NID_brainpoolP512r1 = 933; + + SN_brainpoolP512t1 = AnsiString('brainpoolP512t1'); + NID_brainpoolP512t1 = 934; + + SN_dhSinglePass_stdDH_sha1kdf_scheme = AnsiString('dhSinglePass-stdDH-sha1kdf-scheme'); + NID_dhSinglePass_stdDH_sha1kdf_scheme = 936; + + SN_dhSinglePass_stdDH_sha224kdf_scheme = AnsiString('dhSinglePass-stdDH-sha224kdf-scheme'); + NID_dhSinglePass_stdDH_sha224kdf_scheme = 937; + + SN_dhSinglePass_stdDH_sha256kdf_scheme = AnsiString('dhSinglePass-stdDH-sha256kdf-scheme'); + NID_dhSinglePass_stdDH_sha256kdf_scheme = 938; + + SN_dhSinglePass_stdDH_sha384kdf_scheme = AnsiString('dhSinglePass-stdDH-sha384kdf-scheme'); + NID_dhSinglePass_stdDH_sha384kdf_scheme = 939; + + SN_dhSinglePass_stdDH_sha512kdf_scheme = AnsiString('dhSinglePass-stdDH-sha512kdf-scheme'); + NID_dhSinglePass_stdDH_sha512kdf_scheme = 940; + + SN_dhSinglePass_cofactorDH_sha1kdf_scheme = AnsiString('dhSinglePass-cofactorDH-sha1kdf-scheme'); + NID_dhSinglePass_cofactorDH_sha1kdf_scheme = 941; + + SN_dhSinglePass_cofactorDH_sha224kdf_scheme = AnsiString('dhSinglePass-cofactorDH-sha224kdf-scheme'); + NID_dhSinglePass_cofactorDH_sha224kdf_scheme = 942; + + SN_dhSinglePass_cofactorDH_sha256kdf_scheme = AnsiString('dhSinglePass-cofactorDH-sha256kdf-scheme'); + NID_dhSinglePass_cofactorDH_sha256kdf_scheme = 943; + + SN_dhSinglePass_cofactorDH_sha384kdf_scheme = AnsiString('dhSinglePass-cofactorDH-sha384kdf-scheme'); + NID_dhSinglePass_cofactorDH_sha384kdf_scheme = 944; + + SN_dhSinglePass_cofactorDH_sha512kdf_scheme = AnsiString('dhSinglePass-cofactorDH-sha512kdf-scheme'); + NID_dhSinglePass_cofactorDH_sha512kdf_scheme = 945; + + SN_dh_std_kdf = AnsiString('dh-std-kdf'); + NID_dh_std_kdf = 946; + + SN_dh_cofactor_kdf = AnsiString('dh-cofactor-kdf'); + NID_dh_cofactor_kdf = 947; + + SN_ct_precert_scts = AnsiString('ct_precert_scts'); + LN_ct_precert_scts = AnsiString('CT Precertificate SCTs'); + NID_ct_precert_scts = 951; + + SN_ct_precert_poison = AnsiString('ct_precert_poison'); + LN_ct_precert_poison = AnsiString('CT Precertificate Poison'); + NID_ct_precert_poison = 952; + + SN_ct_precert_signer = AnsiString('ct_precert_signer'); + LN_ct_precert_signer = AnsiString('CT Precertificate Signer'); + NID_ct_precert_signer = 953; + + SN_ct_cert_scts = AnsiString('ct_cert_scts'); + LN_ct_cert_scts = AnsiString('CT Certificate SCTs'); + NID_ct_cert_scts = 954; + + SN_jurisdictionLocalityName = AnsiString('jurisdictionL'); + LN_jurisdictionLocalityName = AnsiString('jurisdictionLocalityName'); + NID_jurisdictionLocalityName = 955; + + SN_jurisdictionStateOrProvinceName = AnsiString('jurisdictionST'); + LN_jurisdictionStateOrProvinceName = AnsiString('jurisdictionStateOrProvinceName'); + NID_jurisdictionStateOrProvinceName = 956; + + SN_jurisdictionCountryName = AnsiString('jurisdictionC'); + LN_jurisdictionCountryName = AnsiString('jurisdictionCountryName'); + NID_jurisdictionCountryName = 957; + + SN_id_scrypt = AnsiString('id-scrypt'); + LN_id_scrypt = AnsiString('scrypt'); + NID_id_scrypt = 973; + + SN_tls1_prf = AnsiString('TLS1-PRF'); + LN_tls1_prf = AnsiString('tls1-prf'); + NID_tls1_prf = 1021; + + SN_hkdf = AnsiString('HKDF'); + LN_hkdf = AnsiString('hkdf'); + NID_hkdf = 1036; + + SN_id_pkinit = AnsiString('id-pkinit'); + NID_id_pkinit = 1031; + + SN_pkInitClientAuth = AnsiString('pkInitClientAuth'); + LN_pkInitClientAuth = AnsiString('PKINIT Client Auth'); + NID_pkInitClientAuth = 1032; + + SN_pkInitKDC = AnsiString('pkInitKDC'); + LN_pkInitKDC = AnsiString('Signing KDC Response'); + NID_pkInitKDC = 1033; + + SN_X25519 = AnsiString('X25519'); + NID_X25519 = 1034; + + SN_X448 = AnsiString('X448'); + NID_X448 = 1035; + + SN_ED25519 = AnsiString('ED25519'); + NID_ED25519 = 1087; + + SN_ED448 = AnsiString('ED448'); + NID_ED448 = 1088; + + SN_kx_rsa = AnsiString('KxRSA'); + LN_kx_rsa = AnsiString('kx-rsa'); + NID_kx_rsa = 1037; + + SN_kx_ecdhe = AnsiString('KxECDHE'); + LN_kx_ecdhe = AnsiString('kx-ecdhe'); + NID_kx_ecdhe = 1038; + + SN_kx_dhe = AnsiString('KxDHE'); + LN_kx_dhe = AnsiString('kx-dhe'); + NID_kx_dhe = 1039; + + SN_kx_ecdhe_psk = AnsiString('KxECDHE-PSK'); + LN_kx_ecdhe_psk = AnsiString('kx-ecdhe-psk'); + NID_kx_ecdhe_psk = 1040; + + SN_kx_dhe_psk = AnsiString('KxDHE-PSK'); + LN_kx_dhe_psk = AnsiString('kx-dhe-psk'); + NID_kx_dhe_psk = 1041; + + SN_kx_rsa_psk = AnsiString('KxRSA_PSK'); + LN_kx_rsa_psk = AnsiString('kx-rsa-psk'); + NID_kx_rsa_psk = 1042; + + SN_kx_psk = AnsiString('KxPSK'); + LN_kx_psk = AnsiString('kx-psk'); + NID_kx_psk = 1043; + + SN_kx_srp = AnsiString('KxSRP'); + LN_kx_srp = AnsiString('kx-srp'); + NID_kx_srp = 1044; + + SN_kx_gost = AnsiString('KxGOST'); + LN_kx_gost = AnsiString('kx-gost'); + NID_kx_gost = 1045; + + SN_kx_any = AnsiString('KxANY'); + LN_kx_any = AnsiString('kx-any'); + NID_kx_any = 1063; + + SN_auth_rsa = AnsiString('AuthRSA'); + LN_auth_rsa = AnsiString('auth-rsa'); + NID_auth_rsa = 1046; + + SN_auth_ecdsa = AnsiString('AuthECDSA'); + LN_auth_ecdsa = AnsiString('auth-ecdsa'); + NID_auth_ecdsa = 1047; + + SN_auth_psk = AnsiString('AuthPSK'); + LN_auth_psk = AnsiString('auth-psk'); + NID_auth_psk = 1048; + + SN_auth_dss = AnsiString('AuthDSS'); + LN_auth_dss = AnsiString('auth-dss'); + NID_auth_dss = 1049; + + SN_auth_gost01 = AnsiString('AuthGOST01'); + LN_auth_gost01 = AnsiString('auth-gost01'); + NID_auth_gost01 = 1050; + + SN_auth_gost12 = AnsiString('AuthGOST12'); + LN_auth_gost12 = AnsiString('auth-gost12'); + NID_auth_gost12 = 1051; + + SN_auth_srp = AnsiString('AuthSRP'); + LN_auth_srp = AnsiString('auth-srp'); + NID_auth_srp = 1052; + + SN_auth_null = AnsiString('AuthNULL'); + LN_auth_null = AnsiString('auth-null'); + NID_auth_null = 1053; + + SN_auth_any = AnsiString('AuthANY'); + LN_auth_any = AnsiString('auth-any'); + NID_auth_any = 1064; + + SN_poly1305 = AnsiString('Poly1305'); + LN_poly1305 = AnsiString('poly1305'); + NID_poly1305 = 1061; + + SN_siphash = AnsiString('SipHash'); + LN_siphash = AnsiString('siphash'); + NID_siphash = 1062; + + SN_ffdhe2048 = AnsiString('ffdhe2048'); + NID_ffdhe2048 = 1126; + + SN_ffdhe3072 = AnsiString('ffdhe3072'); + NID_ffdhe3072 = 1127; + + SN_ffdhe4096 = AnsiString('ffdhe4096'); + NID_ffdhe4096 = 1128; + + SN_ffdhe6144 = AnsiString('ffdhe6144'); + NID_ffdhe6144 = 1129; + + SN_ffdhe8192 = AnsiString('ffdhe8192'); + NID_ffdhe8192 = 1130; + + SN_ISO_UA = AnsiString('ISO-UA'); + NID_ISO_UA = 1150; + + SN_ua_pki = AnsiString('ua-pki'); + NID_ua_pki = 1151; + + SN_dstu28147 = AnsiString('dstu28147'); + LN_dstu28147 = AnsiString('DSTU Gost 28147-2009'); + NID_dstu28147 = 1152; + + SN_dstu28147_ofb = AnsiString('dstu28147-ofb'); + LN_dstu28147_ofb = AnsiString('DSTU Gost 28147-2009 OFB mode'); + NID_dstu28147_ofb = 1153; + + SN_dstu28147_cfb = AnsiString('dstu28147-cfb'); + LN_dstu28147_cfb = AnsiString('DSTU Gost 28147-2009 CFB mode'); + NID_dstu28147_cfb = 1154; + + SN_dstu28147_wrap = AnsiString('dstu28147-wrap'); + LN_dstu28147_wrap = AnsiString('DSTU Gost 28147-2009 key wrap'); + NID_dstu28147_wrap = 1155; + + SN_hmacWithDstu34311 = AnsiString('hmacWithDstu34311'); + LN_hmacWithDstu34311 = AnsiString('HMAC DSTU Gost 34311-95'); + NID_hmacWithDstu34311 = 1156; + + SN_dstu34311 = AnsiString('dstu34311'); + LN_dstu34311 = AnsiString('DSTU Gost 34311-95'); + NID_dstu34311 = 1157; + + SN_dstu4145le = AnsiString('dstu4145le'); + LN_dstu4145le = AnsiString('DSTU 4145-2002 little endian'); + NID_dstu4145le = 1158; + + SN_dstu4145be = AnsiString('dstu4145be'); + LN_dstu4145be = AnsiString('DSTU 4145-2002 big endian'); + NID_dstu4145be = 1159; + + SN_uacurve0 = AnsiString('uacurve0'); + LN_uacurve0 = AnsiString('DSTU curve 0'); + NID_uacurve0 = 1160; + + SN_uacurve1 = AnsiString('uacurve1'); + LN_uacurve1 = AnsiString('DSTU curve 1'); + NID_uacurve1 = 1161; + + SN_uacurve2 = AnsiString('uacurve2'); + LN_uacurve2 = AnsiString('DSTU curve 2'); + NID_uacurve2 = 1162; + + SN_uacurve3 = AnsiString('uacurve3'); + LN_uacurve3 = AnsiString('DSTU curve 3'); + NID_uacurve3 = 1163; + + SN_uacurve4 = AnsiString('uacurve4'); + LN_uacurve4 = AnsiString('DSTU curve 4'); + NID_uacurve4 = 1164; + + SN_uacurve5 = AnsiString('uacurve5'); + LN_uacurve5 = AnsiString('DSTU curve 5'); + NID_uacurve5 = 1165; + + SN_uacurve6 = AnsiString('uacurve6'); + LN_uacurve6 = AnsiString('DSTU curve 6'); + NID_uacurve6 = 1166; + + SN_uacurve7 = AnsiString('uacurve7'); + LN_uacurve7 = AnsiString('DSTU curve 7'); + NID_uacurve7 = 1167; + + SN_uacurve8 = AnsiString('uacurve8'); + LN_uacurve8 = AnsiString('DSTU curve 8'); + NID_uacurve8 = 1168; + + SN_uacurve9 = AnsiString('uacurve9'); + LN_uacurve9 = AnsiString('DSTU curve 9'); + NID_uacurve9 = 1169; + +implementation + +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_objects.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_objects.pas new file mode 100644 index 000000000..c1043c371 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_objects.pas @@ -0,0 +1,501 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_objects.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_objects.h2pas + and this file regenerated. IdOpenSSLHeaders_objects.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_objects; + +interface + +// Headers for OpenSSL 1.1.1 +// objects.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +type + obj_name_st = record + type_: TIdC_INT; + alias: TIdC_INT; + name: PIdAnsiChar; + data: PIdAnsiChar; + end; + OBJ_NAME = obj_name_st; + POBJ_NAME = ^OBJ_NAME; + +//# define OBJ_create_and_add_object(a,b,c) OBJ_create(a,b,c) + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM OBJ_NAME_init} + {$EXTERNALSYM OBJ_NAME_get} + {$EXTERNALSYM OBJ_NAME_add} + {$EXTERNALSYM OBJ_NAME_remove} + {$EXTERNALSYM OBJ_NAME_cleanup} + {$EXTERNALSYM OBJ_dup} + {$EXTERNALSYM OBJ_nid2obj} + {$EXTERNALSYM OBJ_nid2ln} + {$EXTERNALSYM OBJ_nid2sn} + {$EXTERNALSYM OBJ_obj2nid} + {$EXTERNALSYM OBJ_txt2obj} + {$EXTERNALSYM OBJ_obj2txt} + {$EXTERNALSYM OBJ_txt2nid} + {$EXTERNALSYM OBJ_ln2nid} + {$EXTERNALSYM OBJ_sn2nid} + {$EXTERNALSYM OBJ_cmp} + {$EXTERNALSYM OBJ_new_nid} + {$EXTERNALSYM OBJ_add_object} + {$EXTERNALSYM OBJ_create} + {$EXTERNALSYM OBJ_create_objects} + {$EXTERNALSYM OBJ_length} {introduced 1.1.0} + {$EXTERNALSYM OBJ_get0_data} {introduced 1.1.0} + {$EXTERNALSYM OBJ_find_sigid_algs} + {$EXTERNALSYM OBJ_find_sigid_by_algs} + {$EXTERNALSYM OBJ_add_sigid} + {$EXTERNALSYM OBJ_sigid_free} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + OBJ_NAME_init: function: TIdC_INT; cdecl = nil; + //TIdC_INT OBJ_NAME_new_index(TIdC_ULONG (*hash_func) (const PIdAnsiChar *); + // TIdC_INT (*cmp_func) (const PIdAnsiChar *; const PIdAnsiChar *); + // void (*free_func) (const PIdAnsiChar *; TIdC_INT; const PIdAnsiChar *)); + OBJ_NAME_get: function(const name: PIdAnsiChar; type_: TIdC_INT): PIdAnsiChar; cdecl = nil; + OBJ_NAME_add: function(const name: PIdAnsiChar; type_: TIdC_INT; const data: PIdAnsiChar): TIdC_INT; cdecl = nil; + OBJ_NAME_remove: function(const name: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; cdecl = nil; + OBJ_NAME_cleanup: procedure(type_: TIdC_INT); cdecl = nil; +// void OBJ_NAME_do_all(TIdC_INT type_; void (*fn) (const OBJ_NAME *; void *arg); +// void *arg); +// void OBJ_NAME_do_all_sorted(TIdC_INT type_; +// void (*fn) (const OBJ_NAME *; void *arg); +// void *arg); + + OBJ_dup: function(const o: PASN1_OBJECT): PASN1_OBJECT; cdecl = nil; + OBJ_nid2obj: function(n: TIdC_INT): PASN1_OBJECT; cdecl = nil; + OBJ_nid2ln: function(n: TIdC_INT): PIdAnsiChar; cdecl = nil; + OBJ_nid2sn: function(n: TIdC_INT): PIdAnsiChar; cdecl = nil; + OBJ_obj2nid: function(const o: PASN1_OBJECT): TIdC_INT; cdecl = nil; + OBJ_txt2obj: function(const s: PIdAnsiChar; no_name: TIdC_INT): PASN1_OBJECT; cdecl = nil; + OBJ_obj2txt: function(buf: PIdAnsiChar; buf_len: TIdC_INT; const a: PASN1_OBJECT; no_name: TIdC_INT): TIdC_INT; cdecl = nil; + OBJ_txt2nid: function(const s: PIdAnsiChar): TIdC_INT; cdecl = nil; + OBJ_ln2nid: function(const s: PIdAnsiChar): TIdC_INT; cdecl = nil; + OBJ_sn2nid: function(const s: PIdAnsiChar): TIdC_INT; cdecl = nil; + OBJ_cmp: function(const a: PASN1_OBJECT; const b: PASN1_OBJECT): TIdC_INT; cdecl = nil; +// const void *OBJ_bsearch_(const void *key; const void *base; TIdC_INT num; TIdC_INT size; +// TIdC_INT (*cmp) (const void *; const void *)); +// const void *OBJ_bsearch_ex_(const void *key; const void *base; TIdC_INT num; +// TIdC_INT size; +// TIdC_INT (*cmp) (const void *; const void *); +// TIdC_INT flags); + + //# define _DECLARE_OBJ_BSEARCH_CMP_FN(scope; type1; type2; nm) \ + // static TIdC_INT nm##_cmp_BSEARCH_CMP_FN(const void *; const void *); \ + // static TIdC_INT nm##_cmp(type1 const *; type2 const *); \ + // scope type2 * OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) + // + //# define DECLARE_OBJ_BSEARCH_CMP_FN(type1; type2; cmp) \ + // _DECLARE_OBJ_BSEARCH_CMP_FN(static; type1; type2; cmp) + //# define DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(type1; type2; nm) \ + // type2 * OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) + + (* + * Unsolved problem: if a type is actually a pointer type, like + * nid_triple is, then its impossible to get a const where you need + * it. Consider: + * + * typedef TIdC_INT nid_triple[3]; + * const void *a_; + * const nid_triple const *a = a_; + * + * The assignment discards a const because what you really want is: + * + * const TIdC_INT const * const *a = a_; + * + * But if you do that, you lose the fact that a is an array of 3 ints, + * which breaks comparison functions. + * + * Thus we end up having to cast, sadly, or unpack the + * declarations. Or, as I finally did in this case, declare nid_triple + * to be a struct, which it should have been in the first place. + * + * Ben, August 2008. + * + * Also, strictly speaking not all types need be const, but handling + * the non-constness means a lot of complication, and in practice + * comparison routines do always not touch their arguments. + *) + + //# define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm) \ + // static TIdC_INT nm##_cmp_BSEARCH_CMP_FN(const void *a_; const void *b_) \ + // { \ + // type1 const *a = a_; \ + // type2 const *b = b_; \ + // return nm##_cmp(a;b); \ + // } \ + // static type2 *OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) \ + // { \ + // return (type2 *)OBJ_bsearch_(key; base; num; sizeof(type2); \ + // nm##_cmp_BSEARCH_CMP_FN); \ + // } \ + // extern void dummy_prototype(void) + // + //# define IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN(type1; type2; nm) \ + // static TIdC_INT nm##_cmp_BSEARCH_CMP_FN(const void *a_; const void *b_) \ + // { \ + // type1 const *a = a_; \ + // type2 const *b = b_; \ + // return nm##_cmp(a;b); \ + // } \ + // type2 *OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) \ + // { \ + // return (type2 *)OBJ_bsearch_(key; base; num; sizeof(type2); \ + // nm##_cmp_BSEARCH_CMP_FN); \ + // } \ + // extern void dummy_prototype(void) + // + //# define OBJ_bsearch(type1;key;type2;base;num;cmp) \ + // ((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1;key);CHECKED_PTR_OF(type2;base); \ + // num;sizeof(type2); \ + // ((void)CHECKED_PTR_OF(type1;cmp##_type_1); \ + // (void)CHECKED_PTR_OF(type2;cmp##_type_2); \ + // cmp##_BSEARCH_CMP_FN))) + // + //# define OBJ_bsearch_ex(type1;key;type2;base;num;cmp;flags) \ + // ((type2 *)OBJ_bsearch_ex_(CHECKED_PTR_OF(type1;key);CHECKED_PTR_OF(type2;base); \ + // num;sizeof(type2); \ + // ((void)CHECKED_PTR_OF(type1;cmp##_type_1); \ + // (void)type_2=CHECKED_PTR_OF(type2;cmp##_type_2); \ + // cmp##_BSEARCH_CMP_FN));flags) + + OBJ_new_nid: function(num: TIdC_INT): TIdC_INT; cdecl = nil; + OBJ_add_object: function(const obj: PASN1_OBJECT): TIdC_INT; cdecl = nil; + OBJ_create: function(const oid: PIdAnsiChar; const sn: PIdAnsiChar; const ln: PIdAnsiChar): TIdC_INT; cdecl = nil; + OBJ_create_objects: function(in_: PBIO): TIdC_INT; cdecl = nil; + + OBJ_length: function(const obj: PASN1_OBJECT): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + OBJ_get0_data: function(const obj: PASN1_OBJECT): PByte; cdecl = nil; {introduced 1.1.0} + + OBJ_find_sigid_algs: function(signid: TIdC_INT; pdig_nid: PIdC_INT; ppkey_nid: PIdC_INT): TIdC_INT; cdecl = nil; + OBJ_find_sigid_by_algs: function(psignid: PIdC_INT; dig_nid: TIdC_INT; pkey_nid: TIdC_INT): TIdC_INT; cdecl = nil; + OBJ_add_sigid: function(signid: TIdC_INT; dig_id: TIdC_INT; pkey_id: TIdC_INT): TIdC_INT; cdecl = nil; + OBJ_sigid_free: procedure; cdecl = nil; + +{$ELSE} + function OBJ_NAME_init: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //TIdC_INT OBJ_NAME_new_index(TIdC_ULONG (*hash_func) (const PIdAnsiChar *); + // TIdC_INT (*cmp_func) (const PIdAnsiChar *; const PIdAnsiChar *); + // void (*free_func) (const PIdAnsiChar *; TIdC_INT; const PIdAnsiChar *)); + function OBJ_NAME_get(const name: PIdAnsiChar; type_: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_NAME_add(const name: PIdAnsiChar; type_: TIdC_INT; const data: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_NAME_remove(const name: PIdAnsiChar; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure OBJ_NAME_cleanup(type_: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// void OBJ_NAME_do_all(TIdC_INT type_; void (*fn) (const OBJ_NAME *; void *arg); +// void *arg); +// void OBJ_NAME_do_all_sorted(TIdC_INT type_; +// void (*fn) (const OBJ_NAME *; void *arg); +// void *arg); + + function OBJ_dup(const o: PASN1_OBJECT): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_nid2obj(n: TIdC_INT): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_nid2ln(n: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_nid2sn(n: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_obj2nid(const o: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_txt2obj(const s: PIdAnsiChar; no_name: TIdC_INT): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_obj2txt(buf: PIdAnsiChar; buf_len: TIdC_INT; const a: PASN1_OBJECT; no_name: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_txt2nid(const s: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_ln2nid(const s: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_sn2nid(const s: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_cmp(const a: PASN1_OBJECT; const b: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// const void *OBJ_bsearch_(const void *key; const void *base; TIdC_INT num; TIdC_INT size; +// TIdC_INT (*cmp) (const void *; const void *)); +// const void *OBJ_bsearch_ex_(const void *key; const void *base; TIdC_INT num; +// TIdC_INT size; +// TIdC_INT (*cmp) (const void *; const void *); +// TIdC_INT flags); + + //# define _DECLARE_OBJ_BSEARCH_CMP_FN(scope; type1; type2; nm) \ + // static TIdC_INT nm##_cmp_BSEARCH_CMP_FN(const void *; const void *); \ + // static TIdC_INT nm##_cmp(type1 const *; type2 const *); \ + // scope type2 * OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) + // + //# define DECLARE_OBJ_BSEARCH_CMP_FN(type1; type2; cmp) \ + // _DECLARE_OBJ_BSEARCH_CMP_FN(static; type1; type2; cmp) + //# define DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(type1; type2; nm) \ + // type2 * OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) + + (* + * Unsolved problem: if a type is actually a pointer type, like + * nid_triple is, then its impossible to get a const where you need + * it. Consider: + * + * typedef TIdC_INT nid_triple[3]; + * const void *a_; + * const nid_triple const *a = a_; + * + * The assignment discards a const because what you really want is: + * + * const TIdC_INT const * const *a = a_; + * + * But if you do that, you lose the fact that a is an array of 3 ints, + * which breaks comparison functions. + * + * Thus we end up having to cast, sadly, or unpack the + * declarations. Or, as I finally did in this case, declare nid_triple + * to be a struct, which it should have been in the first place. + * + * Ben, August 2008. + * + * Also, strictly speaking not all types need be const, but handling + * the non-constness means a lot of complication, and in practice + * comparison routines do always not touch their arguments. + *) + + //# define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm) \ + // static TIdC_INT nm##_cmp_BSEARCH_CMP_FN(const void *a_; const void *b_) \ + // { \ + // type1 const *a = a_; \ + // type2 const *b = b_; \ + // return nm##_cmp(a;b); \ + // } \ + // static type2 *OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) \ + // { \ + // return (type2 *)OBJ_bsearch_(key; base; num; sizeof(type2); \ + // nm##_cmp_BSEARCH_CMP_FN); \ + // } \ + // extern void dummy_prototype(void) + // + //# define IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN(type1; type2; nm) \ + // static TIdC_INT nm##_cmp_BSEARCH_CMP_FN(const void *a_; const void *b_) \ + // { \ + // type1 const *a = a_; \ + // type2 const *b = b_; \ + // return nm##_cmp(a;b); \ + // } \ + // type2 *OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) \ + // { \ + // return (type2 *)OBJ_bsearch_(key; base; num; sizeof(type2); \ + // nm##_cmp_BSEARCH_CMP_FN); \ + // } \ + // extern void dummy_prototype(void) + // + //# define OBJ_bsearch(type1;key;type2;base;num;cmp) \ + // ((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1;key);CHECKED_PTR_OF(type2;base); \ + // num;sizeof(type2); \ + // ((void)CHECKED_PTR_OF(type1;cmp##_type_1); \ + // (void)CHECKED_PTR_OF(type2;cmp##_type_2); \ + // cmp##_BSEARCH_CMP_FN))) + // + //# define OBJ_bsearch_ex(type1;key;type2;base;num;cmp;flags) \ + // ((type2 *)OBJ_bsearch_ex_(CHECKED_PTR_OF(type1;key);CHECKED_PTR_OF(type2;base); \ + // num;sizeof(type2); \ + // ((void)CHECKED_PTR_OF(type1;cmp##_type_1); \ + // (void)type_2=CHECKED_PTR_OF(type2;cmp##_type_2); \ + // cmp##_BSEARCH_CMP_FN));flags) + + function OBJ_new_nid(num: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_add_object(const obj: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_create(const oid: PIdAnsiChar; const sn: PIdAnsiChar; const ln: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_create_objects(in_: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function OBJ_length(const obj: PASN1_OBJECT): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OBJ_get0_data(const obj: PASN1_OBJECT): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function OBJ_find_sigid_algs(signid: TIdC_INT; pdig_nid: PIdC_INT; ppkey_nid: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_find_sigid_by_algs(psignid: PIdC_INT; dig_nid: TIdC_INT; pkey_nid: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OBJ_add_sigid(signid: TIdC_INT; dig_id: TIdC_INT; pkey_id: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure OBJ_sigid_free cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + OBJ_length_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OBJ_get0_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +function ERR_OBJ_length(const obj: PASN1_OBJECT): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('OBJ_length'); +end; + + +function ERR_OBJ_get0_data(const obj: PASN1_OBJECT): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('OBJ_get0_data'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + OBJ_NAME_init := LoadFunction('OBJ_NAME_init',AFailed); + OBJ_NAME_get := LoadFunction('OBJ_NAME_get',AFailed); + OBJ_NAME_add := LoadFunction('OBJ_NAME_add',AFailed); + OBJ_NAME_remove := LoadFunction('OBJ_NAME_remove',AFailed); + OBJ_NAME_cleanup := LoadFunction('OBJ_NAME_cleanup',AFailed); + OBJ_dup := LoadFunction('OBJ_dup',AFailed); + OBJ_nid2obj := LoadFunction('OBJ_nid2obj',AFailed); + OBJ_nid2ln := LoadFunction('OBJ_nid2ln',AFailed); + OBJ_nid2sn := LoadFunction('OBJ_nid2sn',AFailed); + OBJ_obj2nid := LoadFunction('OBJ_obj2nid',AFailed); + OBJ_txt2obj := LoadFunction('OBJ_txt2obj',AFailed); + OBJ_obj2txt := LoadFunction('OBJ_obj2txt',AFailed); + OBJ_txt2nid := LoadFunction('OBJ_txt2nid',AFailed); + OBJ_ln2nid := LoadFunction('OBJ_ln2nid',AFailed); + OBJ_sn2nid := LoadFunction('OBJ_sn2nid',AFailed); + OBJ_cmp := LoadFunction('OBJ_cmp',AFailed); + OBJ_new_nid := LoadFunction('OBJ_new_nid',AFailed); + OBJ_add_object := LoadFunction('OBJ_add_object',AFailed); + OBJ_create := LoadFunction('OBJ_create',AFailed); + OBJ_create_objects := LoadFunction('OBJ_create_objects',AFailed); + OBJ_find_sigid_algs := LoadFunction('OBJ_find_sigid_algs',AFailed); + OBJ_find_sigid_by_algs := LoadFunction('OBJ_find_sigid_by_algs',AFailed); + OBJ_add_sigid := LoadFunction('OBJ_add_sigid',AFailed); + OBJ_sigid_free := LoadFunction('OBJ_sigid_free',AFailed); + OBJ_length := LoadFunction('OBJ_length',nil); {introduced 1.1.0} + OBJ_get0_data := LoadFunction('OBJ_get0_data',nil); {introduced 1.1.0} + if not assigned(OBJ_length) then + begin + {$if declared(OBJ_length_introduced)} + if LibVersion < OBJ_length_introduced then + {$if declared(FC_OBJ_length)} + OBJ_length := @FC_OBJ_length + {$else} + OBJ_length := @ERR_OBJ_length + {$ifend} + else + {$ifend} + {$if declared(OBJ_length_removed)} + if OBJ_length_removed <= LibVersion then + {$if declared(_OBJ_length)} + OBJ_length := @_OBJ_length + {$else} + {$IF declared(ERR_OBJ_length)} + OBJ_length := @ERR_OBJ_length + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OBJ_length) and Assigned(AFailed) then + AFailed.Add('OBJ_length'); + end; + + + if not assigned(OBJ_get0_data) then + begin + {$if declared(OBJ_get0_data_introduced)} + if LibVersion < OBJ_get0_data_introduced then + {$if declared(FC_OBJ_get0_data)} + OBJ_get0_data := @FC_OBJ_get0_data + {$else} + OBJ_get0_data := @ERR_OBJ_get0_data + {$ifend} + else + {$ifend} + {$if declared(OBJ_get0_data_removed)} + if OBJ_get0_data_removed <= LibVersion then + {$if declared(_OBJ_get0_data)} + OBJ_get0_data := @_OBJ_get0_data + {$else} + {$IF declared(ERR_OBJ_get0_data)} + OBJ_get0_data := @ERR_OBJ_get0_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OBJ_get0_data) and Assigned(AFailed) then + AFailed.Add('OBJ_get0_data'); + end; + + +end; + +procedure Unload; +begin + OBJ_NAME_init := nil; + OBJ_NAME_get := nil; + OBJ_NAME_add := nil; + OBJ_NAME_remove := nil; + OBJ_NAME_cleanup := nil; + OBJ_dup := nil; + OBJ_nid2obj := nil; + OBJ_nid2ln := nil; + OBJ_nid2sn := nil; + OBJ_obj2nid := nil; + OBJ_txt2obj := nil; + OBJ_obj2txt := nil; + OBJ_txt2nid := nil; + OBJ_ln2nid := nil; + OBJ_sn2nid := nil; + OBJ_cmp := nil; + OBJ_new_nid := nil; + OBJ_add_object := nil; + OBJ_create := nil; + OBJ_create_objects := nil; + OBJ_length := nil; {introduced 1.1.0} + OBJ_get0_data := nil; {introduced 1.1.0} + OBJ_find_sigid_algs := nil; + OBJ_find_sigid_by_algs := nil; + OBJ_add_sigid := nil; + OBJ_sigid_free := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_objectserr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_objectserr.pas new file mode 100644 index 000000000..6ffc05bff --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_objectserr.pas @@ -0,0 +1,120 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_objectserr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_objectserr.h2pas + and this file regenerated. IdOpenSSLHeaders_objectserr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_objectserr; + +interface + +// Headers for OpenSSL 1.1.1 +// objectserr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * OBJ function codes. + *) + OBJ_F_OBJ_ADD_OBJECT = 105; + OBJ_F_OBJ_ADD_SIGID = 107; + OBJ_F_OBJ_CREATE = 100; + OBJ_F_OBJ_DUP = 101; + OBJ_F_OBJ_NAME_NEW_INDEX = 106; + OBJ_F_OBJ_NID2LN = 102; + OBJ_F_OBJ_NID2OBJ = 103; + OBJ_F_OBJ_NID2SN = 104; + OBJ_F_OBJ_TXT2OBJ = 108; + + (* + * OBJ reason codes. + *) + OBJ_R_OID_EXISTS = 102; + OBJ_R_UNKNOWN_NID = 101; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_OBJ_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_OBJ_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_OBJ_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_OBJ_strings := LoadFunction('ERR_load_OBJ_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_OBJ_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ocsperr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ocsperr.pas new file mode 100644 index 000000000..58b5af3c3 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ocsperr.pas @@ -0,0 +1,151 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_ocsperr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_ocsperr.h2pas + and this file regenerated. IdOpenSSLHeaders_ocsperr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ocsperr; + +interface + +// Headers for OpenSSL 1.1.1 +// ocsperr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * OCSP function codes. + *) + OCSP_F_D2I_OCSP_NONCE = 102; + OCSP_F_OCSP_BASIC_ADD1_STATUS = 103; + OCSP_F_OCSP_BASIC_SIGN = 104; + OCSP_F_OCSP_BASIC_SIGN_CTX = 119; + OCSP_F_OCSP_BASIC_VERIFY = 105; + OCSP_F_OCSP_CERT_ID_NEW = 101; + OCSP_F_OCSP_CHECK_DELEGATED = 106; + OCSP_F_OCSP_CHECK_IDS = 107; + OCSP_F_OCSP_CHECK_ISSUER = 108; + OCSP_F_OCSP_CHECK_VALIDITY = 115; + OCSP_F_OCSP_MATCH_ISSUERID = 109; + OCSP_F_OCSP_PARSE_URL = 114; + OCSP_F_OCSP_REQUEST_SIGN = 110; + OCSP_F_OCSP_REQUEST_VERIFY = 116; + OCSP_F_OCSP_RESPONSE_GET1_BASIC = 111; + OCSP_F_PARSE_HTTP_LINE1 = 118; + + (* + * OCSP reason codes. + *) + OCSP_R_CERTIFICATE_VERIFY_ERROR = 101; + OCSP_R_DIGEST_ERR = 102; + OCSP_R_ERROR_IN_NEXTUPDATE_FIELD = 122; + OCSP_R_ERROR_IN_THISUPDATE_FIELD = 123; + OCSP_R_ERROR_PARSING_URL = 121; + OCSP_R_MISSING_OCSPSIGNING_USAGE = 103; + OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE = 124; + OCSP_R_NOT_BASIC_RESPONSE = 104; + OCSP_R_NO_CERTIFICATES_IN_CHAIN = 105; + OCSP_R_NO_RESPONSE_DATA = 108; + OCSP_R_NO_REVOKED_TIME = 109; + OCSP_R_NO_SIGNER_KEY = 130; + OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE = 110; + OCSP_R_REQUEST_NOT_SIGNED = 128; + OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA = 111; + OCSP_R_ROOT_CA_NOT_TRUSTED = 112; + OCSP_R_SERVER_RESPONSE_ERROR = 114; + OCSP_R_SERVER_RESPONSE_PARSE_ERROR = 115; + OCSP_R_SIGNATURE_FAILURE = 117; + OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND = 118; + OCSP_R_STATUS_EXPIRED = 125; + OCSP_R_STATUS_NOT_YET_VALID = 126; + OCSP_R_STATUS_TOO_OLD = 127; + OCSP_R_UNKNOWN_MESSAGE_DIGEST = 119; + OCSP_R_UNKNOWN_NID = 120; + OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE = 129; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_OCSP_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_OCSP_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_OCSP_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_OCSP_strings := LoadFunction('ERR_load_OCSP_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_OCSP_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ossl_typ.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ossl_typ.pas new file mode 100644 index 000000000..d79dd14fb --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ossl_typ.pas @@ -0,0 +1,545 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_ossl_typ.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_ossl_typ.h2pas + and this file regenerated. IdOpenSSLHeaders_ossl_typ.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ossl_typ; + +interface + +// Headers for OpenSSL 1.1.1 +// ossl_typ.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +type +// moved from unit "asn1" to prevent circular references + asn1_string_st = record + length: TIdC_INT; + type_: TIdC_INT; + data: PByte; + (* + * The value of the following field depends on the type being held. It + * is mostly being used for BIT_STRING so if the input data has a + * non-zero 'unused bits' value, it will be handled correctly + *) + flags: TIdC_LONG; + end; + + // moved from asn1 + ASN1_VALUE_st = type Pointer; + ASN1_VALUE = ASN1_VALUE_st; + PASN1_VALUE = ^ASN1_VALUE; + PPASN1_VALUE = ^PASN1_VALUE; + + // moved from e_os2 + ossl_ssize_t = type {$IFDEF WIN64}TIdC_INT64{$ELSE}TIdC_INT{$ENDIF}; + + asn1_object_st = type Pointer; + ASN1_OBJECT = asn1_object_st; + PASN1_OBJECT = ^ASN1_OBJECT; + PPASN1_OBJECT = ^PASN1_OBJECT; + + ASN1_INTEGER = type asn1_string_st; + PASN1_INTEGER = ^ASN1_INTEGER; + PPASN1_INTEGER = ^PASN1_INTEGER; + + ASN1_ENUMERATED = type asn1_string_st; + PASN1_ENUMERATED = ^ASN1_ENUMERATED; + + ASN1_BIT_STRING = type asn1_string_st; + PASN1_BIT_STRING = ^ASN1_BIT_STRING; + PPASN1_BIT_STRING = ^PASN1_BIT_STRING; + + ASN1_OCTET_STRING = type asn1_string_st; + PASN1_OCTET_STRING = ^ASN1_OCTET_STRING; + PPASN1_OCTET_STRING = ^PASN1_OCTET_STRING; + + ASN1_PRINTABLESTRING = type asn1_string_st; + PASN1_PRINTABLESTRING = ^ASN1_PRINTABLESTRING; + + ASN1_T61STRING = type asn1_string_st; + PASN1_T61STRING = ^ASN1_T61STRING; + + ASN1_IA5STRING = type asn1_string_st; + PASN1_IA5STRING = ^ASN1_IA5STRING; + + ASN1_GENERALSTRING = type asn1_string_st; + PASN1_GENERALSTRING = ^ASN1_GENERALSTRING; + + ASN1_UNIVERSALSTRING = type asn1_string_st; + PASN1_UNIVERSALSTRING = ^ASN1_UNIVERSALSTRING; + + ASN1_BMPSTRING = type asn1_string_st; + PASN1_BMPSTRING = ^ASN1_BMPSTRING; + + ASN1_UTCTIME = type asn1_string_st; + PASN1_UTCTIME = ^ASN1_UTCTIME; + PPASN1_UTCTIME = ^PASN1_UTCTIME; + + ASN1_TIME = type asn1_string_st; + PASN1_TIME = ^ASN1_TIME; + PPASN1_TIME = ^PASN1_TIME; + + ASN1_GENERALIZEDTIME = type asn1_string_st; + PASN1_GENERALIZEDTIME = ^ASN1_GENERALIZEDTIME; + PPASN1_GENERALIZEDTIME = ^PASN1_GENERALIZEDTIME; + + ASN1_VISIBLESTRING = type asn1_string_st; + PASN1_VISIBLESTRING = ^ASN1_VISIBLESTRING; + + ASN1_UTF8STRING = type asn1_string_st; + PASN1_UTF8STRING = ^ASN1_UTF8STRING; + + ASN1_STRING = type asn1_string_st; + PASN1_STRING = ^ASN1_STRING; + PPASN1_STRING = ^PASN1_STRING; + + ASN1_BOOLEAN = type TIdC_INT; + PASN1_BOOLEAN = ^ASN1_BOOLEAN; + + ASN1_NULL = type TIdC_INT; + PASN1_NULL = ^ASN1_NULL; + + + ASN1_ITEM_st = type Pointer; + ASN1_ITEM = ASN1_ITEM_st; + PASN1_ITEM = ^ASN1_ITEM; + + asn1_pctx_st = type Pointer; + ASN1_PCTX = asn1_pctx_st; + PASN1_PCTX = ^ASN1_PCTX; + + asn1_sctx_st = type Pointer; + ASN1_SCTX = asn1_sctx_st; + PASN1_SCTX = ^ASN1_SCTX; + + dane_st = type Pointer; + bio_st = type Pointer; + BIO = bio_st; + PBIO = ^BIO; + PPBIO = ^PBIO; + bignum_st = type Pointer; + BIGNUM = bignum_st; + PBIGNUM = ^BIGNUM; + PPBIGNUM = ^PBIGNUM; + bignum_ctx = type Pointer; + BN_CTX = bignum_ctx; + PBN_CTX = ^BN_CTX; + bn_blinding_st = type Pointer; + BN_BLINDING = bn_blinding_st; + PBN_BLINDING = ^BN_BLINDING; + bn_mont_ctx_st = type Pointer; + BN_MONT_CTX = bn_mont_ctx_st; + PBN_MONT_CTX = ^BN_MONT_CTX; + bn_recp_ctx_st = type Pointer; + BN_RECP_CTX = bn_recp_ctx_st; + PBN_RECP_CTX = ^BN_RECP_CTX; + bn_gencb_st = type Pointer; + BN_GENCB = bn_gencb_st; + PBN_GENCB = ^BN_GENCB; + + buf_mem_st = type Pointer; + BUF_MEM = buf_mem_st; + PBUF_MEM = ^BUF_MEM; + + evp_cipher_st = type Pointer; + EVP_CIPHER = evp_cipher_st; + PEVP_CIPHER = ^EVP_CIPHER; + PPEVP_CIPHER = ^PEVP_CIPHER; + evp_cipher_ctx_st = type Pointer; + EVP_CIPHER_CTX = evp_cipher_ctx_st; + PEVP_CIPHER_CTX = ^EVP_CIPHER_CTX; + evp_md_st = type Pointer; + EVP_MD = evp_md_st; + PEVP_MD = ^EVP_MD; + PPEVP_MD = ^PEVP_MD; + evp_md_ctx_st = type Pointer; + EVP_MD_CTX = evp_md_ctx_st; + PEVP_MD_CTX = ^EVP_MD_CTX; + evp_pkey_st = type Pointer; + EVP_PKEY = evp_pkey_st; + PEVP_PKEY = ^EVP_PKEY; + PPEVP_PKEY = ^PEVP_PKEY; + + evp_pkey_asn1_method_st = type Pointer; + EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; + PEVP_PKEY_ASN1_METHOD = ^EVP_PKEY_ASN1_METHOD; + PPEVP_PKEY_ASN1_METHOD = ^PEVP_PKEY_ASN1_METHOD; + + evp_pkey_method_st = type Pointer; + EVP_PKEY_METHOD = evp_pkey_method_st; + PEVP_PKEY_METHOD = ^EVP_PKEY_METHOD; + PPEVP_PKEY_METHOD = ^PEVP_PKEY_METHOD; + evp_pkey_ctx_st = type Pointer; + EVP_PKEY_CTX = evp_pkey_ctx_st; + PEVP_PKEY_CTX = ^EVP_PKEY_CTX; + PPEVP_PKEY_CTX = ^PEVP_PKEY_CTX; + + evp_Encode_Ctx_st = type Pointer; + EVP_ENCODE_CTX = evp_Encode_Ctx_st; + PEVP_ENCODE_CTX = ^EVP_ENCODE_CTX; + + hmac_ctx_st = type Pointer; + HMAC_CTX = hmac_ctx_st; + PHMAC_CTX = ^HMAC_CTX; + + dh_st = type Pointer; + DH = dh_st; + PDH = ^DH; + PPDH = ^PDH; + dh_method_st = type Pointer; + DH_METHOD = dh_method_st; + PDH_METHOD = ^DH_METHOD; + + dsa_st = type Pointer; + DSA = dsa_st; + PDSA = ^DSA; + PPDSA = ^PDSA; + dsa_method_st = type Pointer; + DSA_METHOD = dsa_method_st; + PDSA_METHOD = ^DSA_METHOD; + + rsa_st = type Pointer; + RSA = rsa_st; + PRSA = ^RSA; + PPRSA = ^PRSA; + rsa_meth_st = type Pointer; + RSA_METHOD = rsa_meth_st; + PRSA_METHOD = ^RSA_METHOD; + + ec_key_st = type Pointer; + EC_KEY = ec_key_st; + PEC_KEY = ^EC_KEY; + PPEC_KEY = ^PEC_KEY; + ec_key_method_st = type Pointer; + EC_KEY_METHOD = ec_key_method_st; + PEC_KEY_METHOD = ^EC_KEY_METHOD; + + rand_meth_st = type Pointer; + RAND_METHOD = rand_meth_st; + PRAND_METHOD = ^RAND_METHOD; + rand_drbg_st = type Pointer; + RAND_DRBG = rand_drbg_st; + PRAND_DRBG = ^RAND_DRBG; + + ssl_dane_st = type Pointer; + SSL_DANE = ssl_dane_st; + PSSL_DANE = ^SSL_DANE; + x509_st = type Pointer; + X509 = x509_st; + PX509 = ^X509; + PPX509 = ^PX509; + Stack_Of_X509 = type Pointer; + PStack_Of_X509 = ^Stack_Of_X509; + PPStack_Of_X509 = ^PStack_Of_X509; + X509_crl_st = type Pointer; + X509_CRL = X509_crl_st; + PX509_CRL = ^X509_CRL; + PPX509_CRL = ^PX509_CRL; + x509_crl_method_st = type Pointer; + X509_CRL_METHOD = x509_crl_method_st; + PX509_CRL_METHOD = ^X509_CRL_METHOD; + x509_revoked_st = type Pointer; + X509_REVOKED = x509_revoked_st; + PX509_REVOKED = ^X509_REVOKED; + PPX509_REVOKED = ^PX509_REVOKED; + X509_name_st = type Pointer; + X509_NAME = X509_name_st; + PX509_NAME = ^X509_NAME; + PPX509_NAME = ^PX509_NAME; + X509_pubkey_st = type Pointer; + X509_PUBKEY = X509_pubkey_st; + PX509_PUBKEY = ^X509_PUBKEY; + PPX509_PUBKEY = ^PX509_PUBKEY; + x509_store_st = type Pointer; + X509_STORE = x509_store_st; + PX509_STORE = ^X509_STORE; + x509_store_ctx_st = type Pointer; + X509_STORE_CTX = x509_store_ctx_st; + PX509_STORE_CTX = ^X509_STORE_CTX; + + x509_object_st = type Pointer; + X509_OBJECT = x509_object_st; + PX509_OBJECT = ^X509_OBJECT; + x509_lookup_st = type Pointer; + X509_LOOKUP = x509_lookup_st; + PX509_LOOKUP = ^X509_LOOKUP; + x509_lookup_method_st = type Pointer; + X509_LOOKUP_METHOD = x509_lookup_method_st; + PX509_LOOKUP_METHOD = ^X509_LOOKUP_METHOD; + X509_VERIFY_PARAM_st = type Pointer; + X509_VERIFY_PARAM = X509_VERIFY_PARAM_st; + PX509_VERIFY_PARAM = ^X509_VERIFY_PARAM; + + x509_sig_info_st = type Pointer; + X509_SIG_INFO = x509_sig_info_st; + PX509_SIG_INFO = ^X509_SIG_INFO; + + pkcs8_priv_key_info_st = type Pointer; + PKCS8_PRIV_KEY_INFO = pkcs8_priv_key_info_st; + PPKCS8_PRIV_KEY_INFO = ^PKCS8_PRIV_KEY_INFO; + PPPKCS8_PRIV_KEY_INFO = ^PPKCS8_PRIV_KEY_INFO; + +// moved from x509 to prevent circular references + X509_REQ = type Pointer; // X509_req_st + PX509_REQ = ^X509_REQ; + PPX509_REQ = ^PX509_REQ; + +// moved from x509v3 to prevent circular references + (* Context specific info *) + v3_ext_ctx = record + flags: TIdC_INT; + issuer_cert: PX509; + subject_cert: PX509; + subject_req: PX509_REQ; + crl: PX509_CRL; + db_meth: Pointer; //PX509V3_CONF_METHOD; + db: Pointer; + (* Maybe more here *) + end; +// v3_ext_ctx = type Pointer; + X509V3_CTX = v3_ext_ctx; + PX509V3_CTX = ^X509V3_CTX; + conf_st = type Pointer; + CONF = conf_st; + PCONF = ^CONF; + ossl_init_settings_st = type Pointer; + OPENSSL_INIT_SETTINGS = ossl_init_settings_st; + POPENSSL_INIT_SETTINGS = ^OPENSSL_INIT_SETTINGS; + + ui_st = type Pointer; + UI = ui_st; + PUI = ^UI; + ui_method_st = type Pointer; + UI_METHOD = ui_method_st; + PUI_METHOD = ^UI_METHOD; + + engine_st = type Pointer; + ENGINE = engine_st; + PENGINE = ^ENGINE; + PPENGINE = ^PENGINE; + ssl_st = type Pointer; + SSL = ssl_st; + PSSL = ^SSL; + ssl_ctx_st = type Pointer; + SSL_CTX = ssl_ctx_st; + PSSL_CTX = ^SSL_CTX; + PPSSL_CTX = ^PSSL_CTX; + + comp_ctx_st = type Pointer; + COMP_CTX = comp_ctx_st; + PCOMP_CTX = ^COMP_CTX; + comp_method_st = type Pointer; + COMP_METHOD = comp_method_st; + PCOMP_METHOD = ^COMP_METHOD; + + X509_POLICY_NODE_st = type Pointer; + X509_POLICY_NODE = X509_POLICY_NODE_st; + PX509_POLICY_NODE = ^X509_POLICY_NODE; + X509_POLICY_LEVEL_st = type Pointer; + X509_POLICY_LEVEL = X509_POLICY_LEVEL_st; + PX509_POLICY_LEVEL = ^X509_POLICY_LEVEL; + X509_POLICY_TREE_st = type Pointer; + X509_POLICY_TREE = X509_POLICY_TREE_st; + PX509_POLICY_TREE = ^X509_POLICY_TREE; + X509_POLICY_CACHE_st = type Pointer; + X509_POLICY_CACHE = X509_POLICY_CACHE_st; + PX509_POLICY_CACHE = ^X509_POLICY_CACHE; + + AUTHORITY_KEYID_st = type Pointer; + AUTHORITY_KEYID = AUTHORITY_KEYID_st; + PAUTHORITY_KEYID = ^AUTHORITY_KEYID; + DIST_POINT_st = type Pointer; + DIST_POINT = DIST_POINT_st; + PDIST_POINT = ^DIST_POINT; + ISSUING_DIST_POINT_st = type Pointer; + ISSUING_DIST_POINT = ISSUING_DIST_POINT_st; + PISSUING_DIST_POINT = ^ISSUING_DIST_POINT; + NAME_CONSTRAINTS_st = type Pointer; + NAME_CONSTRAINTS = NAME_CONSTRAINTS_st; + PNAME_CONSTRAINTS = ^NAME_CONSTRAINTS; + + crypto_ex_data_st = type Pointer; + CRYPTO_EX_DATA = crypto_ex_data_st; + PCRYPTO_EX_DATA = ^CRYPTO_EX_DATA; + + ocsp_req_ctx_st = type Pointer; + OCSP_REQ_CTX = ocsp_req_ctx_st; + POCSP_REQ_CTX = ^OCSP_REQ_CTX; + ocsp_response_st = type Pointer; + OCSP_RESPONSE = ocsp_response_st; + POCSP_RESPONSE = ^OCSP_RESPONSE; + ocsp_responder_id_st = type Pointer; + OCSP_RESPID = ocsp_responder_id_st; + POCSP_RESPID = ^OCSP_RESPID; + + sct_st = type Pointer; + SCT = sct_st; + PSCT = ^SCT; + sct_ctx_st = type Pointer; + SCT_CTX = sct_ctx_st; + PSCT_CTX = ^SCT_CTX; + ctlog_st = type Pointer; + CTLOG = ctlog_st; + PCTLOG = ^CTLOG; + ctlog_store_st = type Pointer; + CTLOG_STORE = ctlog_store_st; + PCTLOG_STORE = ^CTLOG_STORE; + ct_policy_eval_ctx_st = type Pointer; + CT_POLICY_EVAL_CTX = ct_policy_eval_ctx_st; + PCT_POLICY_EVAL_CTX = ^CT_POLICY_EVAL_CTX; + + ossl_store_info_st = type Pointer; + OSSL_STORE_INFO = ossl_store_info_st; + POSSL_STORE_INFO = ^OSSL_STORE_INFO; + ossl_store_search_st = type Pointer; + OSSL_STORE_SEARCH = ossl_store_search_st; + POSSL_STORE_SEARCH = ^OSSL_STORE_SEARCH; + +// moved from unit "asn1" to prevent circular references' +const + V_ASN1_UNIVERSAL = $00; + V_ASN1_APPLICATION = $40; + V_ASN1_CONTEXT_SPECIFIC = $80; + V_ASN1_PRIVATE = $c0; + + V_ASN1_CONSTRUCTED = $20; + V_ASN1_PRIMITIVE_TAG = $1f; + V_ASN1_PRIMATIVE_TAG = V_ASN1_PRIMITIVE_TAG; + + V_ASN1_APP_CHOOSE = -2; (* let the recipient choose *) + V_ASN1_OTHER = -3; (* used in ASN1_TYPE *) + V_ASN1_ANY = -4; (* used in ASN1 template code *) + + V_ASN1_UNDEF = -1; + V_ASN1_EOC = 0; + V_ASN1_BOOLEAN = 1; + V_ASN1_INTEGER = 2; + V_ASN1_BIT_STRING = 3; + V_ASN1_OCTET_STRING = 4; + V_ASN1_NULL = 5; + V_ASN1_OBJECT = 6; + V_ASN1_OBJECT_DESCRIPTOR = 7; + V_ASN1_EXTERNAL = 8; + V_ASN1_REAL = 9; + V_ASN1_ENUMERATED = 10; + V_ASN1_UTF8STRING = 12; + V_ASN1_SEQUENCE = 16; + V_ASN1_SET = 17; + V_ASN1_NUMERICSTRING = 18; + V_ASN1_PRINTABLESTRING = 19; + V_ASN1_T61STRING = 20; + V_ASN1_TELETEXSTRING = 20; + V_ASN1_VIDEOTEXSTRING = 21; + V_ASN1_IA5STRING = 22; + V_ASN1_UTCTIME = 23; + V_ASN1_GENERALIZEDTIME = 24; + V_ASN1_GRAPHICSTRING = 25; + V_ASN1_ISO64STRING = 26; + V_ASN1_VISIBLESTRING = 26; + V_ASN1_GENERALSTRING = 27; + V_ASN1_UNIVERSALSTRING = 28; + V_ASN1_BMPSTRING = 30; + +type + asn1_type_st = record + case type_: TIdC_INT of +// (ptr: PIdAnsichar); + V_ASN1_BOOLEAN: (boolean: ASN1_BOOLEAN); +// (asn1_string: PASN1_STRING); + V_ASN1_OBJECT: (object_: PASN1_OBJECT); + V_ASN1_INTEGER: (integer: PASN1_INTEGER); + V_ASN1_ENUMERATED: (enumerated: PASN1_ENUMERATED); + V_ASN1_BIT_STRING: (bit_string: PASN1_BIT_STRING); + V_ASN1_OCTET_STRING: (octet_string: PASN1_OCTET_STRING); + V_ASN1_PRINTABLESTRING: (printablestring: PASN1_PRINTABLESTRING); + V_ASN1_T61STRING: (t61string: PASN1_T61STRING); + V_ASN1_IA5STRING: (ia5string: PASN1_IA5STRING); + V_ASN1_GENERALSTRING: (generalstring: PASN1_GENERALSTRING); + V_ASN1_BMPSTRING: (bmpstring: PASN1_BMPSTRING); + V_ASN1_UNIVERSALSTRING: (universalstring: PASN1_UNIVERSALSTRING); + V_ASN1_UTCTIME: (utctime: PASN1_UTCTIME); + V_ASN1_GENERALIZEDTIME: (generalizedtime: PASN1_GENERALIZEDTIME); + V_ASN1_VISIBLESTRING: (visiblestring: PASN1_VISIBLESTRING); + V_ASN1_UTF8STRING: (utf8string: PASN1_UTF8STRING); + (* + * set and sequence are left complete and still contain the set or + * sequence bytes + *) + V_ASN1_SET: (set_: PASN1_STRING); + V_ASN1_SEQUENCE: (sequence: PASN1_STRING); +// (asn1_value: PASN1_VALUE); + +// V_ASN1_UNDEF: ; +// V_ASN1_EOC: ; +// V_ASN1_NULL: ; +// V_ASN1_OBJECT_DESCRIPTOR: ; +// V_ASN1_EXTERNAL: ; +// V_ASN1_REAL: ; +// V_ASN1_NUMERICSTRING: ; +// V_ASN1_TELETEXSTRING: ; +// V_ASN1_VIDEOTEXSTRING: ; +// V_ASN1_GRAPHICSTRING: ; +// V_ASN1_ISO64STRING: ; + end; + ASN1_TYPE = asn1_type_st; + PASN1_TYPE = ^ASN1_TYPE; + PPASN1_TYPE = ^PASN1_TYPE; + +// moved from unit "x509" to prevent circular references + X509_algor_st = record + algorithm: PASN1_OBJECT; + parameter: PASN1_TYPE; + end; (* X509_ALGOR *) + + X509_ALGOR = X509_algor_st; + PX509_ALGOR = ^X509_ALGOR; + PPX509_ALGOR = ^PX509_ALGOR; + + i2d_of_void = type Pointer; + Pi2d_of_void = ^i2d_of_void; + + d2i_of_void = type Pointer; + Pd2i_of_void = ^d2i_of_void; + + {OSSL_LIB_CTX is defined in types.h from 3.0.0 onwards} + // typedef struct ossl_lib_ctx_st OSSL_LIB_CTX; + ossl_lib_ctx_st = record + end; + POSSL_LIB_CTX = ^OSSL_LIB_CTX; + OSSL_LIB_CTX = ossl_lib_ctx_st; + + +implementation + +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pem.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pem.pas new file mode 100644 index 000000000..017639eb0 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pem.pas @@ -0,0 +1,723 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_pem.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_pem.h2pas + and this file regenerated. IdOpenSSLHeaders_pem.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_pem; + +interface + +// Headers for OpenSSL 1.1.1 +// pem.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ec, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_pkcs7, + IdOpenSSLHeaders_x509; + +type + EVP_CIPHER_INFO = type Pointer; + PEVP_CIPHER_INFO = ^EVP_CIPHER_INFO; + +const + PEM_BUFSIZE = 1024; + + PEM_STRING_X509_OLD = AnsiString('X509 CERTIFICATE'); + PEM_STRING_X509 = AnsiString('CERTIFICATE'); + PEM_STRING_X509_TRUSTED = AnsiString('TRUSTED CERTIFICATE'); + PEM_STRING_X509_REQ_OLD = AnsiString('NEW CERTIFICATE REQUEST'); + PEM_STRING_X509_REQ = AnsiString('CERTIFICATE REQUEST'); + PEM_STRING_X509_CRL = AnsiString('X509 CRL'); + PEM_STRING_EVP_PKEY = AnsiString('ANY PRIVATE KEY'); + PEM_STRING_PUBLIC = AnsiString('PUBLIC KEY'); + PEM_STRING_RSA = AnsiString('RSA PRIVATE KEY'); + PEM_STRING_RSA_PUBLIC = AnsiString('RSA PUBLIC KEY'); + PEM_STRING_DSA = AnsiString('DSA PRIVATE KEY'); + PEM_STRING_DSA_PUBLIC = AnsiString('DSA PUBLIC KEY'); + PEM_STRING_PKCS7 = AnsiString('PKCS7'); + PEM_STRING_PKCS7_SIGNED = AnsiString('PKCS #7 SIGNED DATA'); + PEM_STRING_PKCS8 = AnsiString('ENCRYPTED PRIVATE KEY'); + PEM_STRING_PKCS8INF = AnsiString('PRIVATE KEY'); + PEM_STRING_DHPARAMS = AnsiString('DH PARAMETERS'); + PEM_STRING_DHXPARAMS = AnsiString('X9.42 DH PARAMETERS'); + PEM_STRING_SSL_SESSION = AnsiString('SSL SESSION PARAMETERS'); + PEM_STRING_DSAPARAMS = AnsiString('DSA PARAMETERS'); + PEM_STRING_ECDSA_PUBLIC = AnsiString('ECDSA PUBLIC KEY'); + PEM_STRING_ECPARAMETERS = AnsiString('EC PARAMETERS'); + PEM_STRING_ECPRIVATEKEY = AnsiString('EC PRIVATE KEY'); + PEM_STRING_PARAMETERS = AnsiString('PARAMETERS'); + PEM_STRING_CMS = AnsiString('CMS'); + + PEM_TYPE_ENCRYPTED = 10; + PEM_TYPE_MIC_ONLY = 20; + PEM_TYPE_MIC_CLEAR = 30; + PEM_TYPE_CLEAR = 40; + + PEM_FLAG_SECURE = $1; + PEM_FLAG_EAY_COMPATIBLE = $2; + PEM_FLAG_ONLY_B64 = $4; + + {Reason Codes} + PEM_R_BAD_BASE64_DECODE = 100; + PEM_R_BAD_DECRYPT = 101; + PEM_R_BAD_END_LINE = 102; + PEM_R_BAD_IV_CHARS = 103; + PEM_R_BAD_MAGIC_NUMBER = 116; + PEM_R_BAD_PASSWORD_READ = 104; + PEM_R_BAD_VERSION_NUMBER = 117; + PEM_R_BIO_WRITE_FAILURE = 118; + PEM_R_CIPHER_IS_NULL = 127; + PEM_R_ERROR_CONVERTING_PRIVATE_KEY = 115; + PEM_R_EXPECTING_PRIVATE_KEY_BLOB = 119; + PEM_R_EXPECTING_PUBLIC_KEY_BLOB = 120; + PEM_R_HEADER_TOO_LONG = 128; + PEM_R_INCONSISTENT_HEADER = 121; + PEM_R_KEYBLOB_HEADER_PARSE_ERROR = 122; + PEM_R_KEYBLOB_TOO_SHORT = 123; + PEM_R_NOT_DEK_INFO = 105; + PEM_R_NOT_ENCRYPTED = 106; + PEM_R_NOT_PROC_TYPE = 107; + PEM_R_NO_START_LINE = 108; + PEM_R_PROBLEMS_GETTING_PASSWORD = 109; + PEM_R_PUBLIC_KEY_NO_RSA = 110; + PEM_R_PVK_DATA_TOO_SHORT = 124; + PEM_R_PVK_TOO_SHORT = 125; + PEM_R_READ_KEY = 111; + PEM_R_SHORT_HEADER = 112; + PEM_R_UNSUPPORTED_CIPHER = 113; + PEM_R_UNSUPPORTED_ENCRYPTION = 114; + +type + PSTACK_OF_X509_INFO = pointer; + pem_password_cb = function(buf: PIdAnsiChar; size: TIdC_INT; rwflag: TIdC_INT; userdata: Pointer): TIdC_INT; cdecl; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM PEM_get_EVP_CIPHER_INFO} + {$EXTERNALSYM PEM_do_header} + {$EXTERNALSYM PEM_read_bio} + {$EXTERNALSYM PEM_read_bio_ex} {introduced 1.1.0} + {$EXTERNALSYM PEM_bytes_read_bio_secmem} {introduced 1.1.0} + {$EXTERNALSYM PEM_write_bio} + {$EXTERNALSYM PEM_bytes_read_bio} + {$EXTERNALSYM PEM_ASN1_read_bio} + {$EXTERNALSYM PEM_ASN1_write_bio} + {$EXTERNALSYM PEM_X509_INFO_read_bio} + {$EXTERNALSYM PEM_X509_INFO_write_bio} + {$EXTERNALSYM PEM_SignInit} + {$EXTERNALSYM PEM_SignUpdate} + {$EXTERNALSYM PEM_SignFinal} + {$EXTERNALSYM PEM_def_callback} + {$EXTERNALSYM PEM_proc_type} + {$EXTERNALSYM PEM_dek_info} + {$EXTERNALSYM PEM_read_bio_X509} + {$EXTERNALSYM PEM_write_bio_X509} + {$EXTERNALSYM PEM_read_bio_X509_AUX} + {$EXTERNALSYM PEM_write_bio_X509_AUX} + {$EXTERNALSYM PEM_read_bio_X509_REQ} + {$EXTERNALSYM PEM_write_bio_X509_REQ} + {$EXTERNALSYM PEM_write_bio_X509_REQ_NEW} + {$EXTERNALSYM PEM_read_bio_X509_CRL} + {$EXTERNALSYM PEM_write_bio_X509_CRL} + {$EXTERNALSYM PEM_read_bio_PKCS7} + {$EXTERNALSYM PEM_write_bio_PKCS7} + {$EXTERNALSYM PEM_read_bio_PKCS8} + {$EXTERNALSYM PEM_write_bio_PKCS8} + {$EXTERNALSYM PEM_read_bio_PKCS8_PRIV_KEY_INFO} + {$EXTERNALSYM PEM_write_bio_PKCS8_PRIV_KEY_INFO} + {$EXTERNALSYM PEM_read_bio_RSAPrivateKey} + {$EXTERNALSYM PEM_write_bio_RSAPrivateKey} + {$EXTERNALSYM PEM_read_bio_RSAPublicKey} + {$EXTERNALSYM PEM_write_bio_RSAPublicKey} + {$EXTERNALSYM PEM_read_bio_RSA_PUBKEY} + {$EXTERNALSYM PEM_write_bio_RSA_PUBKEY} + {$EXTERNALSYM PEM_read_bio_DSAPrivateKey} + {$EXTERNALSYM PEM_write_bio_DSAPrivateKey} + {$EXTERNALSYM PEM_read_bio_DSA_PUBKEY} + {$EXTERNALSYM PEM_write_bio_DSA_PUBKEY} + {$EXTERNALSYM PEM_read_bio_DSAparams} + {$EXTERNALSYM PEM_write_bio_DSAparams} + {$EXTERNALSYM PEM_read_bio_ECPKParameters} + {$EXTERNALSYM PEM_write_bio_ECPKParameters} + {$EXTERNALSYM PEM_read_bio_ECPrivateKey} + {$EXTERNALSYM PEM_write_bio_ECPrivateKey} + {$EXTERNALSYM PEM_read_bio_EC_PUBKEY} + {$EXTERNALSYM PEM_write_bio_EC_PUBKEY} + {$EXTERNALSYM PEM_read_bio_DHparams} + {$EXTERNALSYM PEM_write_bio_DHparams} + {$EXTERNALSYM PEM_write_bio_DHxparams} + {$EXTERNALSYM PEM_read_bio_PrivateKey} + {$EXTERNALSYM PEM_write_bio_PrivateKey} + {$EXTERNALSYM PEM_read_bio_PUBKEY} + {$EXTERNALSYM PEM_write_bio_PUBKEY} + {$EXTERNALSYM PEM_write_bio_PrivateKey_traditional} {introduced 1.1.0} + {$EXTERNALSYM PEM_write_bio_PKCS8PrivateKey_nid} + {$EXTERNALSYM PEM_write_bio_PKCS8PrivateKey} + {$EXTERNALSYM i2d_PKCS8PrivateKey_bio} + {$EXTERNALSYM i2d_PKCS8PrivateKey_nid_bio} + {$EXTERNALSYM d2i_PKCS8PrivateKey_bio} + {$EXTERNALSYM PEM_read_bio_Parameters} + {$EXTERNALSYM PEM_write_bio_Parameters} + {$EXTERNALSYM b2i_PrivateKey} + {$EXTERNALSYM b2i_PublicKey} + {$EXTERNALSYM b2i_PrivateKey_bio} + {$EXTERNALSYM b2i_PublicKey_bio} + {$EXTERNALSYM i2b_PrivateKey_bio} + {$EXTERNALSYM i2b_PublicKey_bio} + {$EXTERNALSYM b2i_PVK_bio} + {$EXTERNALSYM i2b_PVK_bio} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + PEM_get_EVP_CIPHER_INFO: function(header: PIdAnsiChar; cipher: PEVP_CIPHER_INFO): TIdC_INT; cdecl = nil; + PEM_do_header: function(cipher: PEVP_CIPHER_INFO; data: PByte; len: PIdC_LONG; callback: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + + PEM_read_bio: function(bp: PBIO; name: PPIdAnsiChar; header: PPIdAnsiChar; data: PPByte; len: PIdC_LONG): TIdC_INT; cdecl = nil; + PEM_read_bio_ex: function(bp: PBIO; name: PPIdAnsiChar; header: PPIdAnsiChar; data: PPByte; len: PIdC_LONG; flags: TIdC_UINT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + PEM_bytes_read_bio_secmem: function(pdata: PPByte; plen: PIdC_LONG; pnm: PPIdAnsiChar; const name: PIdAnsiChar; bp: PBIO; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + PEM_write_bio: function(bp: PBIO; const name: PIdAnsiChar; const hdr: PIdAnsiChar; const data: PByte; len: TIdC_LONG): TIdC_INT; cdecl = nil; + PEM_bytes_read_bio: function(pdata: PPByte; plen: PIdC_LONG; pnm: PPIdAnsiChar; const name: PIdAnsiChar; bp: PBIO; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + PEM_ASN1_read_bio: function(d2i: d2i_of_void; const name: PIdAnsiChar; bp: PBIO; x: PPointer; cb: pem_password_cb; u: Pointer): Pointer; cdecl = nil; + PEM_ASN1_write_bio: function(i2d: i2d_of_void; const name: PIdAnsiChar; bp: PBIO; x: Pointer; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + + PEM_X509_INFO_read_bio: function(bp: PBIO; sk: PSTACK_OF_X509_INFO; cb: pem_password_cb; u: Pointer): PSTACK_OF_X509_INFO; cdecl = nil; + PEM_X509_INFO_write_bio: function(bp: PBIO; xi: PX509_INFO; enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cd: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + + PEM_SignInit: function(ctx: PEVP_MD_CTX; type_: PEVP_MD): TIdC_INT; cdecl = nil; + PEM_SignUpdate: function(ctx: PEVP_MD_CTX; d: PByte; cnt: Byte): TIdC_INT; cdecl = nil; + PEM_SignFinal: function(ctx: PEVP_MD_CTX; sigret: PByte; siglen: PIdC_UINT; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + + (* The default pem_password_cb that's used internally *) + PEM_def_callback: function(buf: PIdAnsiChar; num: TIdC_INT; rwflag: TIdC_INT; userdata: Pointer): TIdC_INT; cdecl = nil; + PEM_proc_type: procedure(buf: PIdAnsiChar; type_: TIdC_INT); cdecl = nil; + PEM_dek_info: procedure(buf: PIdAnsiChar; const type_: PIdAnsiChar; len: TIdC_INT; str: PIdAnsiChar); cdecl = nil; + + PEM_read_bio_X509: function(bp: PBIO; x: PPX509; cb: pem_password_cb; u: Pointer): PX509; cdecl = nil; + PEM_write_bio_X509: function(bp: PBIO; x: PX509): TIdC_INT; cdecl = nil; + + PEM_read_bio_X509_AUX: function(bp: PBIO; x: PPX509; cb: pem_password_cb; u: Pointer): PX509; cdecl = nil; + PEM_write_bio_X509_AUX: function(bp: PBIO; x: PX509): TIdC_INT; cdecl = nil; + + PEM_read_bio_X509_REQ: function(bp: PBIO; x: PPX509_REQ; cb: pem_password_cb; u: Pointer): PX509_REQ; cdecl = nil; + PEM_write_bio_X509_REQ: function(bp: PBIO; x: PX509_REQ): TIdC_INT; cdecl = nil; + + PEM_write_bio_X509_REQ_NEW: function(bp: PBIO; x: PX509_REQ): TIdC_INT; cdecl = nil; + + PEM_read_bio_X509_CRL: function(bp: PBIO; x: PPX509_CRL; cb: pem_password_cb; u: Pointer): PX509_CRL; cdecl = nil; + PEM_write_bio_X509_CRL: function(bp: PBIO; x: PX509_CRL): TIdC_INT; cdecl = nil; + + PEM_read_bio_PKCS7: function(bp: PBIO; x: PPPKCS7; cb: pem_password_cb; u: Pointer): PPKCS7; cdecl = nil; + PEM_write_bio_PKCS7: function(bp: PBIO; x: PPKCS7): TIdC_INT; cdecl = nil; + +// function PEM_read_bio_NETSCAPE_CERT_SEQUENCE(bp: PBIO; x: PPNETSCAPE_CERT_SEQUENCE; cb: pem_password_cb; u: Pointer): PNETSCAPE_CERT_SEQUENCE; +// function PEM_write_bio_NETSCAPE_CERT_SEQUENCE(bp: PBIO; x: PNETSCAPE_CERT_SEQUENCE): TIdC_INT; + + PEM_read_bio_PKCS8: function(bp: PBIO; x: PPX509_SIG; cb: pem_password_cb; u: Pointer): PX509_SIG; cdecl = nil; + PEM_write_bio_PKCS8: function(bp: PBIO; x: PX509_SIG): TIdC_INT; cdecl = nil; + + PEM_read_bio_PKCS8_PRIV_KEY_INFO: function(bp: PBIO; x: PPPKCS8_PRIV_KEY_INFO; cb: pem_password_cb; u: Pointer): PPKCS8_PRIV_KEY_INFO; cdecl = nil; + PEM_write_bio_PKCS8_PRIV_KEY_INFO: function(bp: PBIO; x: PPKCS8_PRIV_KEY_INFO): TIdC_INT; cdecl = nil; + + // RSA + PEM_read_bio_RSAPrivateKey: function(bp: PBIO; x: PPRSA; cb: pem_password_cb; u: Pointer): PRSA; cdecl = nil; + PEM_write_bio_RSAPrivateKey: function(bp: PBIO; x: PRSA; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + + PEM_read_bio_RSAPublicKey: function(bp: PBIO; x: PPRSA; cb: pem_password_cb; u: Pointer): PRSA; cdecl = nil; + PEM_write_bio_RSAPublicKey: function(bp: PBIO; const x: PRSA): TIdC_INT; cdecl = nil; + + PEM_read_bio_RSA_PUBKEY: function(bp: PBIO; x: PPRSA; cb: pem_password_cb; u: Pointer): PRSA; cdecl = nil; + PEM_write_bio_RSA_PUBKEY: function(bp: PBIO; x: PRSA): TIdC_INT; cdecl = nil; + // ~RSA + + // DSA + PEM_read_bio_DSAPrivateKey: function(bp: PBIO; x: PPDSA; cb: pem_password_cb; u: Pointer): PDSA; cdecl = nil; + PEM_write_bio_DSAPrivateKey: function(bp: PBIO; x: PDSA; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + + PEM_read_bio_DSA_PUBKEY: function(bp: PBIO; x: PPDSA; cb: pem_password_cb; u: Pointer): PDSA; cdecl = nil; + PEM_write_bio_DSA_PUBKEY: function(bp: PBIO; x: PDSA): TIdC_INT; cdecl = nil; + + PEM_read_bio_DSAparams: function(bp: PBIO; x: PPDSA; cb: pem_password_cb; u: Pointer): PDSA; cdecl = nil; + PEM_write_bio_DSAparams: function(bp: PBIO; const x: PDSA): TIdC_INT; cdecl = nil; + // ~DSA + + // EC + PEM_read_bio_ECPKParameters: function(bp: PBIO; x: PPEC_GROUP; cb: pem_password_cb; u: Pointer): PEC_GROUP; cdecl = nil; + PEM_write_bio_ECPKParameters: function(bp: PBIO; const x: PEC_GROUP): TIdC_INT; cdecl = nil; + + PEM_read_bio_ECPrivateKey: function(bp: PBIO; x: PPEC_KEY; cb: pem_password_cb; u: Pointer): PEC_KEY; cdecl = nil; + PEM_write_bio_ECPrivateKey: function(bp: PBIO; x: PEC_KEY; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + + PEM_read_bio_EC_PUBKEY: function(bp: PBIO; x: PPEC_KEY; cb: pem_password_cb; u: Pointer): PEC_KEY; cdecl = nil; + PEM_write_bio_EC_PUBKEY: function(bp: PBIO; x: PEC_KEY): TIdC_INT; cdecl = nil; + // ~EC + + // DH + PEM_read_bio_DHparams: function(bp: PBIO; x: PPDH; cb: pem_password_cb; u: Pointer): PDH; cdecl = nil; + PEM_write_bio_DHparams: function(bp: PBIO; const x: PDH): TIdC_INT; cdecl = nil; + + PEM_write_bio_DHxparams: function(bp: PBIO; const x: PDH): TIdC_INT; cdecl = nil; + // ~DH + + PEM_read_bio_PrivateKey: function(bp: PBIO; x: PPEVP_PKEY; cb: pem_password_cb; u: Pointer): PEVP_PKEY; cdecl = nil; + PEM_write_bio_PrivateKey: function(bp: PBIO; x: PEVP_PKEY; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + + PEM_read_bio_PUBKEY: function(bp: PBIO; x: PPEVP_PKEY; cb: pem_password_cb; u: Pointer): PEVP_PKEY; cdecl = nil; + PEM_write_bio_PUBKEY: function(bp: PBIO; x: PEVP_PKEY): TIdC_INT; cdecl = nil; + + PEM_write_bio_PrivateKey_traditional: function(bp: PBIO; x: PEVP_PKEY; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + PEM_write_bio_PKCS8PrivateKey_nid: function(bp: PBIO; x: PEVP_PKEY; nid: TIdC_INT; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + PEM_write_bio_PKCS8PrivateKey: function(bp: PBIO; x: PEVP_PKEY_METHOD; const enc: PEVP_CIPHER; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + i2d_PKCS8PrivateKey_bio: function(bp: PBIO; x: PEVP_PKEY; const enc: PEVP_CIPHER_CTX; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + i2d_PKCS8PrivateKey_nid_bio: function(bp: PBIO; x: PEVP_PKEY; nid: TIdC_INT; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + d2i_PKCS8PrivateKey_bio: function(bp: PBIO; x: PPEVP_PKEY_CTX; cb: pem_password_cb; u: Pointer): PEVP_PKEY; cdecl = nil; + + PEM_read_bio_Parameters: function(bp: PBIO; x: PPEVP_PKEY): PEVP_PKEY; cdecl = nil; + PEM_write_bio_Parameters: function(bp: PBIO; x: PEVP_PKEY): TIdC_INT; cdecl = nil; + + b2i_PrivateKey: function(const in_: PPByte; length: TIdC_LONG): PEVP_PKEY; cdecl = nil; + b2i_PublicKey: function(const in_: PPByte; length: TIdC_LONG): PEVP_PKEY; cdecl = nil; + b2i_PrivateKey_bio: function(in_: PBIO): PEVP_PKEY; cdecl = nil; + b2i_PublicKey_bio: function(in_: PBIO): PEVP_PKEY; cdecl = nil; + i2b_PrivateKey_bio: function(out_: PBIO; pk: PEVP_PKEY): TIdC_INT; cdecl = nil; + i2b_PublicKey_bio: function(out_: PBIO; pk: PEVP_PKEY): TIdC_INT; cdecl = nil; + b2i_PVK_bio: function(in_: PBIO; cb: pem_password_cb; u: Pointer): PEVP_PKEY; cdecl = nil; + i2b_PVK_bio: function(out_: PBIO; pk: PEVP_PKEY; enclevel: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; cdecl = nil; + +{$ELSE} + function PEM_get_EVP_CIPHER_INFO(header: PIdAnsiChar; cipher: PEVP_CIPHER_INFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_do_header(cipher: PEVP_CIPHER_INFO; data: PByte; len: PIdC_LONG; callback: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio(bp: PBIO; name: PPIdAnsiChar; header: PPIdAnsiChar; data: PPByte; len: PIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_read_bio_ex(bp: PBIO; name: PPIdAnsiChar; header: PPIdAnsiChar; data: PPByte; len: PIdC_LONG; flags: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PEM_bytes_read_bio_secmem(pdata: PPByte; plen: PIdC_LONG; pnm: PPIdAnsiChar; const name: PIdAnsiChar; bp: PBIO; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PEM_write_bio(bp: PBIO; const name: PIdAnsiChar; const hdr: PIdAnsiChar; const data: PByte; len: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_bytes_read_bio(pdata: PPByte; plen: PIdC_LONG; pnm: PPIdAnsiChar; const name: PIdAnsiChar; bp: PBIO; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_ASN1_read_bio(d2i: d2i_of_void; const name: PIdAnsiChar; bp: PBIO; x: PPointer; cb: pem_password_cb; u: Pointer): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_ASN1_write_bio(i2d: i2d_of_void; const name: PIdAnsiChar; bp: PBIO; x: Pointer; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_X509_INFO_read_bio(bp: PBIO; sk: PSTACK_OF_X509_INFO; cb: pem_password_cb; u: Pointer): PSTACK_OF_X509_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_X509_INFO_write_bio(bp: PBIO; xi: PX509_INFO; enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cd: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_SignInit(ctx: PEVP_MD_CTX; type_: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_SignUpdate(ctx: PEVP_MD_CTX; d: PByte; cnt: Byte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_SignFinal(ctx: PEVP_MD_CTX; sigret: PByte; siglen: PIdC_UINT; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* The default pem_password_cb that's used internally *) + function PEM_def_callback(buf: PIdAnsiChar; num: TIdC_INT; rwflag: TIdC_INT; userdata: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure PEM_proc_type(buf: PIdAnsiChar; type_: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure PEM_dek_info(buf: PIdAnsiChar; const type_: PIdAnsiChar; len: TIdC_INT; str: PIdAnsiChar) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_X509(bp: PBIO; x: PPX509; cb: pem_password_cb; u: Pointer): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_X509(bp: PBIO; x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_X509_AUX(bp: PBIO; x: PPX509; cb: pem_password_cb; u: Pointer): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_X509_AUX(bp: PBIO; x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_X509_REQ(bp: PBIO; x: PPX509_REQ; cb: pem_password_cb; u: Pointer): PX509_REQ cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_X509_REQ(bp: PBIO; x: PX509_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_write_bio_X509_REQ_NEW(bp: PBIO; x: PX509_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_X509_CRL(bp: PBIO; x: PPX509_CRL; cb: pem_password_cb; u: Pointer): PX509_CRL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_X509_CRL(bp: PBIO; x: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_PKCS7(bp: PBIO; x: PPPKCS7; cb: pem_password_cb; u: Pointer): PPKCS7 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_PKCS7(bp: PBIO; x: PPKCS7): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// function PEM_read_bio_NETSCAPE_CERT_SEQUENCE(bp: PBIO; x: PPNETSCAPE_CERT_SEQUENCE; cb: pem_password_cb; u: Pointer): PNETSCAPE_CERT_SEQUENCE; +// function PEM_write_bio_NETSCAPE_CERT_SEQUENCE(bp: PBIO; x: PNETSCAPE_CERT_SEQUENCE): TIdC_INT; + + function PEM_read_bio_PKCS8(bp: PBIO; x: PPX509_SIG; cb: pem_password_cb; u: Pointer): PX509_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_PKCS8(bp: PBIO; x: PX509_SIG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_PKCS8_PRIV_KEY_INFO(bp: PBIO; x: PPPKCS8_PRIV_KEY_INFO; cb: pem_password_cb; u: Pointer): PPKCS8_PRIV_KEY_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_PKCS8_PRIV_KEY_INFO(bp: PBIO; x: PPKCS8_PRIV_KEY_INFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // RSA + function PEM_read_bio_RSAPrivateKey(bp: PBIO; x: PPRSA; cb: pem_password_cb; u: Pointer): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_RSAPrivateKey(bp: PBIO; x: PRSA; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_RSAPublicKey(bp: PBIO; x: PPRSA; cb: pem_password_cb; u: Pointer): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_RSAPublicKey(bp: PBIO; const x: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_RSA_PUBKEY(bp: PBIO; x: PPRSA; cb: pem_password_cb; u: Pointer): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_RSA_PUBKEY(bp: PBIO; x: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // ~RSA + + // DSA + function PEM_read_bio_DSAPrivateKey(bp: PBIO; x: PPDSA; cb: pem_password_cb; u: Pointer): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_DSAPrivateKey(bp: PBIO; x: PDSA; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_DSA_PUBKEY(bp: PBIO; x: PPDSA; cb: pem_password_cb; u: Pointer): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_DSA_PUBKEY(bp: PBIO; x: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_DSAparams(bp: PBIO; x: PPDSA; cb: pem_password_cb; u: Pointer): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_DSAparams(bp: PBIO; const x: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // ~DSA + + // EC + function PEM_read_bio_ECPKParameters(bp: PBIO; x: PPEC_GROUP; cb: pem_password_cb; u: Pointer): PEC_GROUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_ECPKParameters(bp: PBIO; const x: PEC_GROUP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_ECPrivateKey(bp: PBIO; x: PPEC_KEY; cb: pem_password_cb; u: Pointer): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_ECPrivateKey(bp: PBIO; x: PEC_KEY; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_EC_PUBKEY(bp: PBIO; x: PPEC_KEY; cb: pem_password_cb; u: Pointer): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_EC_PUBKEY(bp: PBIO; x: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // ~EC + + // DH + function PEM_read_bio_DHparams(bp: PBIO; x: PPDH; cb: pem_password_cb; u: Pointer): PDH cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_DHparams(bp: PBIO; const x: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_write_bio_DHxparams(bp: PBIO; const x: PDH): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // ~DH + + function PEM_read_bio_PrivateKey(bp: PBIO; x: PPEVP_PKEY; cb: pem_password_cb; u: Pointer): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_PrivateKey(bp: PBIO; x: PEVP_PKEY; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_PUBKEY(bp: PBIO; x: PPEVP_PKEY; cb: pem_password_cb; u: Pointer): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_PUBKEY(bp: PBIO; x: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_write_bio_PrivateKey_traditional(bp: PBIO; x: PEVP_PKEY; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PEM_write_bio_PKCS8PrivateKey_nid(bp: PBIO; x: PEVP_PKEY; nid: TIdC_INT; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_PKCS8PrivateKey(bp: PBIO; x: PEVP_PKEY_METHOD; const enc: PEVP_CIPHER; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PKCS8PrivateKey_bio(bp: PBIO; x: PEVP_PKEY; const enc: PEVP_CIPHER_CTX; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PKCS8PrivateKey_nid_bio(bp: PBIO; x: PEVP_PKEY; nid: TIdC_INT; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_PKCS8PrivateKey_bio(bp: PBIO; x: PPEVP_PKEY_CTX; cb: pem_password_cb; u: Pointer): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PEM_read_bio_Parameters(bp: PBIO; x: PPEVP_PKEY): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_Parameters(bp: PBIO; x: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function b2i_PrivateKey(const in_: PPByte; length: TIdC_LONG): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function b2i_PublicKey(const in_: PPByte; length: TIdC_LONG): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function b2i_PrivateKey_bio(in_: PBIO): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function b2i_PublicKey_bio(in_: PBIO): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2b_PrivateKey_bio(out_: PBIO; pk: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2b_PublicKey_bio(out_: PBIO; pk: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function b2i_PVK_bio(in_: PBIO; cb: pem_password_cb; u: Pointer): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2b_PVK_bio(out_: PBIO; pk: PEVP_PKEY; enclevel: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + PEM_read_bio_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PEM_bytes_read_bio_secmem_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PEM_write_bio_PrivateKey_traditional_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +function ERR_PEM_read_bio_ex(bp: PBIO; name: PPIdAnsiChar; header: PPIdAnsiChar; data: PPByte; len: PIdC_LONG; flags: TIdC_UINT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('PEM_read_bio_ex'); +end; + + +function ERR_PEM_bytes_read_bio_secmem(pdata: PPByte; plen: PIdC_LONG; pnm: PPIdAnsiChar; const name: PIdAnsiChar; bp: PBIO; cb: pem_password_cb; u: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('PEM_bytes_read_bio_secmem'); +end; + + +function ERR_PEM_write_bio_PrivateKey_traditional(bp: PBIO; x: PEVP_PKEY; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('PEM_write_bio_PrivateKey_traditional'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + PEM_get_EVP_CIPHER_INFO := LoadFunction('PEM_get_EVP_CIPHER_INFO',AFailed); + PEM_do_header := LoadFunction('PEM_do_header',AFailed); + PEM_read_bio := LoadFunction('PEM_read_bio',AFailed); + PEM_write_bio := LoadFunction('PEM_write_bio',AFailed); + PEM_bytes_read_bio := LoadFunction('PEM_bytes_read_bio',AFailed); + PEM_ASN1_read_bio := LoadFunction('PEM_ASN1_read_bio',AFailed); + PEM_ASN1_write_bio := LoadFunction('PEM_ASN1_write_bio',AFailed); + PEM_X509_INFO_read_bio := LoadFunction('PEM_X509_INFO_read_bio',AFailed); + PEM_X509_INFO_write_bio := LoadFunction('PEM_X509_INFO_write_bio',AFailed); + PEM_SignInit := LoadFunction('PEM_SignInit',AFailed); + PEM_SignUpdate := LoadFunction('PEM_SignUpdate',AFailed); + PEM_SignFinal := LoadFunction('PEM_SignFinal',AFailed); + PEM_def_callback := LoadFunction('PEM_def_callback',AFailed); + PEM_proc_type := LoadFunction('PEM_proc_type',AFailed); + PEM_dek_info := LoadFunction('PEM_dek_info',AFailed); + PEM_read_bio_X509 := LoadFunction('PEM_read_bio_X509',AFailed); + PEM_write_bio_X509 := LoadFunction('PEM_write_bio_X509',AFailed); + PEM_read_bio_X509_AUX := LoadFunction('PEM_read_bio_X509_AUX',AFailed); + PEM_write_bio_X509_AUX := LoadFunction('PEM_write_bio_X509_AUX',AFailed); + PEM_read_bio_X509_REQ := LoadFunction('PEM_read_bio_X509_REQ',AFailed); + PEM_write_bio_X509_REQ := LoadFunction('PEM_write_bio_X509_REQ',AFailed); + PEM_write_bio_X509_REQ_NEW := LoadFunction('PEM_write_bio_X509_REQ_NEW',AFailed); + PEM_read_bio_X509_CRL := LoadFunction('PEM_read_bio_X509_CRL',AFailed); + PEM_write_bio_X509_CRL := LoadFunction('PEM_write_bio_X509_CRL',AFailed); + PEM_read_bio_PKCS7 := LoadFunction('PEM_read_bio_PKCS7',AFailed); + PEM_write_bio_PKCS7 := LoadFunction('PEM_write_bio_PKCS7',AFailed); + PEM_read_bio_PKCS8 := LoadFunction('PEM_read_bio_PKCS8',AFailed); + PEM_write_bio_PKCS8 := LoadFunction('PEM_write_bio_PKCS8',AFailed); + PEM_read_bio_PKCS8_PRIV_KEY_INFO := LoadFunction('PEM_read_bio_PKCS8_PRIV_KEY_INFO',AFailed); + PEM_write_bio_PKCS8_PRIV_KEY_INFO := LoadFunction('PEM_write_bio_PKCS8_PRIV_KEY_INFO',AFailed); + PEM_read_bio_RSAPrivateKey := LoadFunction('PEM_read_bio_RSAPrivateKey',AFailed); + PEM_write_bio_RSAPrivateKey := LoadFunction('PEM_write_bio_RSAPrivateKey',AFailed); + PEM_read_bio_RSAPublicKey := LoadFunction('PEM_read_bio_RSAPublicKey',AFailed); + PEM_write_bio_RSAPublicKey := LoadFunction('PEM_write_bio_RSAPublicKey',AFailed); + PEM_read_bio_RSA_PUBKEY := LoadFunction('PEM_read_bio_RSA_PUBKEY',AFailed); + PEM_write_bio_RSA_PUBKEY := LoadFunction('PEM_write_bio_RSA_PUBKEY',AFailed); + PEM_read_bio_DSAPrivateKey := LoadFunction('PEM_read_bio_DSAPrivateKey',AFailed); + PEM_write_bio_DSAPrivateKey := LoadFunction('PEM_write_bio_DSAPrivateKey',AFailed); + PEM_read_bio_DSA_PUBKEY := LoadFunction('PEM_read_bio_DSA_PUBKEY',AFailed); + PEM_write_bio_DSA_PUBKEY := LoadFunction('PEM_write_bio_DSA_PUBKEY',AFailed); + PEM_read_bio_DSAparams := LoadFunction('PEM_read_bio_DSAparams',AFailed); + PEM_write_bio_DSAparams := LoadFunction('PEM_write_bio_DSAparams',AFailed); + PEM_read_bio_ECPKParameters := LoadFunction('PEM_read_bio_ECPKParameters',AFailed); + PEM_write_bio_ECPKParameters := LoadFunction('PEM_write_bio_ECPKParameters',AFailed); + PEM_read_bio_ECPrivateKey := LoadFunction('PEM_read_bio_ECPrivateKey',AFailed); + PEM_write_bio_ECPrivateKey := LoadFunction('PEM_write_bio_ECPrivateKey',AFailed); + PEM_read_bio_EC_PUBKEY := LoadFunction('PEM_read_bio_EC_PUBKEY',AFailed); + PEM_write_bio_EC_PUBKEY := LoadFunction('PEM_write_bio_EC_PUBKEY',AFailed); + PEM_read_bio_DHparams := LoadFunction('PEM_read_bio_DHparams',AFailed); + PEM_write_bio_DHparams := LoadFunction('PEM_write_bio_DHparams',AFailed); + PEM_write_bio_DHxparams := LoadFunction('PEM_write_bio_DHxparams',AFailed); + PEM_read_bio_PrivateKey := LoadFunction('PEM_read_bio_PrivateKey',AFailed); + PEM_write_bio_PrivateKey := LoadFunction('PEM_write_bio_PrivateKey',AFailed); + PEM_read_bio_PUBKEY := LoadFunction('PEM_read_bio_PUBKEY',AFailed); + PEM_write_bio_PUBKEY := LoadFunction('PEM_write_bio_PUBKEY',AFailed); + PEM_write_bio_PKCS8PrivateKey_nid := LoadFunction('PEM_write_bio_PKCS8PrivateKey_nid',AFailed); + PEM_write_bio_PKCS8PrivateKey := LoadFunction('PEM_write_bio_PKCS8PrivateKey',AFailed); + i2d_PKCS8PrivateKey_bio := LoadFunction('i2d_PKCS8PrivateKey_bio',AFailed); + i2d_PKCS8PrivateKey_nid_bio := LoadFunction('i2d_PKCS8PrivateKey_nid_bio',AFailed); + d2i_PKCS8PrivateKey_bio := LoadFunction('d2i_PKCS8PrivateKey_bio',AFailed); + PEM_read_bio_Parameters := LoadFunction('PEM_read_bio_Parameters',AFailed); + PEM_write_bio_Parameters := LoadFunction('PEM_write_bio_Parameters',AFailed); + b2i_PrivateKey := LoadFunction('b2i_PrivateKey',AFailed); + b2i_PublicKey := LoadFunction('b2i_PublicKey',AFailed); + b2i_PrivateKey_bio := LoadFunction('b2i_PrivateKey_bio',AFailed); + b2i_PublicKey_bio := LoadFunction('b2i_PublicKey_bio',AFailed); + i2b_PrivateKey_bio := LoadFunction('i2b_PrivateKey_bio',AFailed); + i2b_PublicKey_bio := LoadFunction('i2b_PublicKey_bio',AFailed); + b2i_PVK_bio := LoadFunction('b2i_PVK_bio',AFailed); + i2b_PVK_bio := LoadFunction('i2b_PVK_bio',AFailed); + PEM_read_bio_ex := LoadFunction('PEM_read_bio_ex',nil); {introduced 1.1.0} + PEM_bytes_read_bio_secmem := LoadFunction('PEM_bytes_read_bio_secmem',nil); {introduced 1.1.0} + PEM_write_bio_PrivateKey_traditional := LoadFunction('PEM_write_bio_PrivateKey_traditional',nil); {introduced 1.1.0} + if not assigned(PEM_read_bio_ex) then + begin + {$if declared(PEM_read_bio_ex_introduced)} + if LibVersion < PEM_read_bio_ex_introduced then + {$if declared(FC_PEM_read_bio_ex)} + PEM_read_bio_ex := @FC_PEM_read_bio_ex + {$else} + PEM_read_bio_ex := @ERR_PEM_read_bio_ex + {$ifend} + else + {$ifend} + {$if declared(PEM_read_bio_ex_removed)} + if PEM_read_bio_ex_removed <= LibVersion then + {$if declared(_PEM_read_bio_ex)} + PEM_read_bio_ex := @_PEM_read_bio_ex + {$else} + {$IF declared(ERR_PEM_read_bio_ex)} + PEM_read_bio_ex := @ERR_PEM_read_bio_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PEM_read_bio_ex) and Assigned(AFailed) then + AFailed.Add('PEM_read_bio_ex'); + end; + + + if not assigned(PEM_bytes_read_bio_secmem) then + begin + {$if declared(PEM_bytes_read_bio_secmem_introduced)} + if LibVersion < PEM_bytes_read_bio_secmem_introduced then + {$if declared(FC_PEM_bytes_read_bio_secmem)} + PEM_bytes_read_bio_secmem := @FC_PEM_bytes_read_bio_secmem + {$else} + PEM_bytes_read_bio_secmem := @ERR_PEM_bytes_read_bio_secmem + {$ifend} + else + {$ifend} + {$if declared(PEM_bytes_read_bio_secmem_removed)} + if PEM_bytes_read_bio_secmem_removed <= LibVersion then + {$if declared(_PEM_bytes_read_bio_secmem)} + PEM_bytes_read_bio_secmem := @_PEM_bytes_read_bio_secmem + {$else} + {$IF declared(ERR_PEM_bytes_read_bio_secmem)} + PEM_bytes_read_bio_secmem := @ERR_PEM_bytes_read_bio_secmem + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PEM_bytes_read_bio_secmem) and Assigned(AFailed) then + AFailed.Add('PEM_bytes_read_bio_secmem'); + end; + + + if not assigned(PEM_write_bio_PrivateKey_traditional) then + begin + {$if declared(PEM_write_bio_PrivateKey_traditional_introduced)} + if LibVersion < PEM_write_bio_PrivateKey_traditional_introduced then + {$if declared(FC_PEM_write_bio_PrivateKey_traditional)} + PEM_write_bio_PrivateKey_traditional := @FC_PEM_write_bio_PrivateKey_traditional + {$else} + PEM_write_bio_PrivateKey_traditional := @ERR_PEM_write_bio_PrivateKey_traditional + {$ifend} + else + {$ifend} + {$if declared(PEM_write_bio_PrivateKey_traditional_removed)} + if PEM_write_bio_PrivateKey_traditional_removed <= LibVersion then + {$if declared(_PEM_write_bio_PrivateKey_traditional)} + PEM_write_bio_PrivateKey_traditional := @_PEM_write_bio_PrivateKey_traditional + {$else} + {$IF declared(ERR_PEM_write_bio_PrivateKey_traditional)} + PEM_write_bio_PrivateKey_traditional := @ERR_PEM_write_bio_PrivateKey_traditional + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PEM_write_bio_PrivateKey_traditional) and Assigned(AFailed) then + AFailed.Add('PEM_write_bio_PrivateKey_traditional'); + end; + + +end; + +procedure Unload; +begin + PEM_get_EVP_CIPHER_INFO := nil; + PEM_do_header := nil; + PEM_read_bio := nil; + PEM_read_bio_ex := nil; {introduced 1.1.0} + PEM_bytes_read_bio_secmem := nil; {introduced 1.1.0} + PEM_write_bio := nil; + PEM_bytes_read_bio := nil; + PEM_ASN1_read_bio := nil; + PEM_ASN1_write_bio := nil; + PEM_X509_INFO_read_bio := nil; + PEM_X509_INFO_write_bio := nil; + PEM_SignInit := nil; + PEM_SignUpdate := nil; + PEM_SignFinal := nil; + PEM_def_callback := nil; + PEM_proc_type := nil; + PEM_dek_info := nil; + PEM_read_bio_X509 := nil; + PEM_write_bio_X509 := nil; + PEM_read_bio_X509_AUX := nil; + PEM_write_bio_X509_AUX := nil; + PEM_read_bio_X509_REQ := nil; + PEM_write_bio_X509_REQ := nil; + PEM_write_bio_X509_REQ_NEW := nil; + PEM_read_bio_X509_CRL := nil; + PEM_write_bio_X509_CRL := nil; + PEM_read_bio_PKCS7 := nil; + PEM_write_bio_PKCS7 := nil; + PEM_read_bio_PKCS8 := nil; + PEM_write_bio_PKCS8 := nil; + PEM_read_bio_PKCS8_PRIV_KEY_INFO := nil; + PEM_write_bio_PKCS8_PRIV_KEY_INFO := nil; + PEM_read_bio_RSAPrivateKey := nil; + PEM_write_bio_RSAPrivateKey := nil; + PEM_read_bio_RSAPublicKey := nil; + PEM_write_bio_RSAPublicKey := nil; + PEM_read_bio_RSA_PUBKEY := nil; + PEM_write_bio_RSA_PUBKEY := nil; + PEM_read_bio_DSAPrivateKey := nil; + PEM_write_bio_DSAPrivateKey := nil; + PEM_read_bio_DSA_PUBKEY := nil; + PEM_write_bio_DSA_PUBKEY := nil; + PEM_read_bio_DSAparams := nil; + PEM_write_bio_DSAparams := nil; + PEM_read_bio_ECPKParameters := nil; + PEM_write_bio_ECPKParameters := nil; + PEM_read_bio_ECPrivateKey := nil; + PEM_write_bio_ECPrivateKey := nil; + PEM_read_bio_EC_PUBKEY := nil; + PEM_write_bio_EC_PUBKEY := nil; + PEM_read_bio_DHparams := nil; + PEM_write_bio_DHparams := nil; + PEM_write_bio_DHxparams := nil; + PEM_read_bio_PrivateKey := nil; + PEM_write_bio_PrivateKey := nil; + PEM_read_bio_PUBKEY := nil; + PEM_write_bio_PUBKEY := nil; + PEM_write_bio_PrivateKey_traditional := nil; {introduced 1.1.0} + PEM_write_bio_PKCS8PrivateKey_nid := nil; + PEM_write_bio_PKCS8PrivateKey := nil; + i2d_PKCS8PrivateKey_bio := nil; + i2d_PKCS8PrivateKey_nid_bio := nil; + d2i_PKCS8PrivateKey_bio := nil; + PEM_read_bio_Parameters := nil; + PEM_write_bio_Parameters := nil; + b2i_PrivateKey := nil; + b2i_PublicKey := nil; + b2i_PrivateKey_bio := nil; + b2i_PublicKey_bio := nil; + i2b_PrivateKey_bio := nil; + i2b_PublicKey_bio := nil; + b2i_PVK_bio := nil; + i2b_PVK_bio := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pemerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pemerr.pas new file mode 100644 index 000000000..33ab3cb45 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pemerr.pas @@ -0,0 +1,176 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_pemerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_pemerr.h2pas + and this file regenerated. IdOpenSSLHeaders_pemerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_pemerr; + +interface + +// Headers for OpenSSL 1.1.1 +// pemerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // PEM function codes + PEM_F_B2I_DSS = 127; + PEM_F_B2I_PVK_BIO = 128; + PEM_F_B2I_RSA = 129; + PEM_F_CHECK_BITLEN_DSA = 130; + PEM_F_CHECK_BITLEN_RSA = 131; + PEM_F_D2I_PKCS8PRIVATEKEY_BIO = 120; + PEM_F_D2I_PKCS8PRIVATEKEY_FP = 121; + PEM_F_DO_B2I = 132; + PEM_F_DO_B2I_BIO = 133; + PEM_F_DO_BLOB_HEADER = 134; + PEM_F_DO_I2B = 146; + PEM_F_DO_PK8PKEY = 126; + PEM_F_DO_PK8PKEY_FP = 125; + PEM_F_DO_PVK_BODY = 135; + PEM_F_DO_PVK_HEADER = 136; + PEM_F_GET_HEADER_AND_DATA = 143; + PEM_F_GET_NAME = 144; + PEM_F_I2B_PVK = 137; + PEM_F_I2B_PVK_BIO = 138; + PEM_F_LOAD_IV = 101; + PEM_F_PEM_ASN1_READ = 102; + PEM_F_PEM_ASN1_READ_BIO = 103; + PEM_F_PEM_ASN1_WRITE = 104; + PEM_F_PEM_ASN1_WRITE_BIO = 105; + PEM_F_PEM_DEF_CALLBACK = 100; + PEM_F_PEM_DO_HEADER = 106; + PEM_F_PEM_GET_EVP_CIPHER_INFO = 107; + PEM_F_PEM_READ = 108; + PEM_F_PEM_READ_BIO = 109; + PEM_F_PEM_READ_BIO_DHPARAMS = 141; + PEM_F_PEM_READ_BIO_EX = 145; + PEM_F_PEM_READ_BIO_PARAMETERS = 140; + PEM_F_PEM_READ_BIO_PRIVATEKEY = 123; + PEM_F_PEM_READ_DHPARAMS = 142; + PEM_F_PEM_READ_PRIVATEKEY = 124; + PEM_F_PEM_SIGNFINAL = 112; + PEM_F_PEM_WRITE = 113; + PEM_F_PEM_WRITE_BIO = 114; + PEM_F_PEM_WRITE_PRIVATEKEY = 139; + PEM_F_PEM_X509_INFO_READ = 115; + PEM_F_PEM_X509_INFO_READ_BIO = 116; + PEM_F_PEM_X509_INFO_WRITE_BIO = 117; + // PEM reason codes + PEM_R_BAD_BASE64_DECODE = 100; + PEM_R_BAD_DECRYPT = 101; + PEM_R_BAD_END_LINE = 102; + PEM_R_BAD_IV_CHARS = 103; + PEM_R_BAD_MAGIC_NUMBER = 116; + PEM_R_BAD_PASSWORD_READ = 104; + PEM_R_BAD_VERSION_NUMBER = 117; + PEM_R_BIO_WRITE_FAILURE = 118; + PEM_R_CIPHER_IS_NULL = 127; + PEM_R_ERROR_CONVERTING_PRIVATE_KEY = 115; + PEM_R_EXPECTING_PRIVATE_KEY_BLOB = 119; + PEM_R_EXPECTING_PUBLIC_KEY_BLOB = 120; + PEM_R_HEADER_TOO_LONG = 128; + PEM_R_INCONSISTENT_HEADER = 121; + PEM_R_KEYBLOB_HEADER_PARSE_ERROR = 122; + PEM_R_KEYBLOB_TOO_SHORT = 123; + PEM_R_MISSING_DEK_IV = 129; + PEM_R_NOT_DEK_INFO = 105; + PEM_R_NOT_ENCRYPTED = 106; + PEM_R_NOT_PROC_TYPE = 107; + PEM_R_NO_START_LINE = 108; + PEM_R_PROBLEMS_GETTING_PASSWORD = 109; + PEM_R_PVK_DATA_TOO_SHORT = 124; + PEM_R_PVK_TOO_SHORT = 125; + PEM_R_READ_KEY = 111; + PEM_R_SHORT_HEADER = 112; + PEM_R_UNEXPECTED_DEK_IV = 130; + PEM_R_UNSUPPORTED_CIPHER = 113; + PEM_R_UNSUPPORTED_ENCRYPTION = 114; + PEM_R_UNSUPPORTED_KEY_COMPONENTS = 126; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_PEM_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_PEM_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_PEM_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_PEM_strings := LoadFunction('ERR_load_PEM_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_PEM_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs12.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs12.pas new file mode 100644 index 000000000..48548cfb6 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs12.pas @@ -0,0 +1,1237 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_pkcs12.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_pkcs12.h2pas + and this file regenerated. IdOpenSSLHeaders_pkcs12.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_pkcs12; + +interface + +// Headers for OpenSSL 1.1.1 +// pkcs12.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_pkcs7, + IdOpenSSLHeaders_x509; + +const + PKCS12_KEY_ID = 1; + PKCS12_IV_ID = 2; + PKCS12_MAC_ID = 3; + + ///* Default iteration count */ + //# ifndef PKCS12_DEFAULT_ITER + //# define PKCS12_DEFAULT_ITER PKCS5_DEFAULT_ITER + //# endif + + PKCS12_MAC_KEY_LENGTH = 20; + + PKCS12_SALT_LEN = 8; + + ///* It's not clear if these are actually needed... */ + //# define PKCS12_key_gen PKCS12_key_gen_utf8 + //# define PKCS12_add_friendlyname PKCS12_add_friendlyname_utf8 + + (* MS key usage constants *) + KEY_EX = $10; + KEY_SIG = $80; + + PKCS12_ERROR = 0; + PKCS12_OK = 1; + +type + PKCS12_MAC_DATA_st = type Pointer; + PKCS12_MAC_DATA = PKCS12_MAC_DATA_st; + PPKCS12_MAC_DATA = ^PKCS12_MAC_DATA; + PPPKCS12_MAC_DATA = ^PPKCS12_MAC_DATA; + + PKCS12_st = type Pointer; + PKCS12 = PKCS12_st; + PPKCS12 = ^PKCS12; + PPPKCS12 = ^PPKCS12; + + PKCS12_SAFEBAG_st = type Pointer; + PKCS12_SAFEBAG = PKCS12_SAFEBAG_st; + PPKCS12_SAFEBAG = ^PKCS12_SAFEBAG; + PPPKCS12_SAFEBAG = ^PPKCS12_SAFEBAG; + +// DEFINE_STACK_OF(PKCS12_SAFEBAG) + + pkcs12_bag_st = type Pointer; + PKCS12_BAGS = pkcs12_bag_st; + PPKCS12_BAGS = ^PKCS12_BAGS; + PPPKCS12_BAGS = ^PPKCS12_BAGS; + + //ASN1_TYPE *PKCS8_get_attr(PKCS8_PRIV_KEY_INFO *p8, TIdC_INT attr_nid); + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM PKCS12_mac_present} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_get0_mac} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_get0_attr} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_get0_type} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_get_nid} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_get_bag_nid} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_get1_cert} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_get1_crl} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_get0_p8inf} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_get0_pkcs8} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_create_cert} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_create_crl} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_create0_p8inf} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_create0_pkcs8} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_SAFEBAG_create_pkcs8_encrypt} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_item_pack_safebag} + {$EXTERNALSYM PKCS8_decrypt} + {$EXTERNALSYM PKCS12_decrypt_skey} + {$EXTERNALSYM PKCS8_encrypt} + {$EXTERNALSYM PKCS8_set0_pbe} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_add_localkeyid} + {$EXTERNALSYM PKCS12_add_friendlyname_asc} + {$EXTERNALSYM PKCS12_add_friendlyname_utf8} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_add_CSPName_asc} + {$EXTERNALSYM PKCS12_add_friendlyname_uni} + {$EXTERNALSYM PKCS8_add_keyusage} + {$EXTERNALSYM PKCS12_get_friendlyname} + {$EXTERNALSYM PKCS12_pbe_crypt} + {$EXTERNALSYM PKCS12_item_decrypt_d2i} + {$EXTERNALSYM PKCS12_item_i2d_encrypt} + {$EXTERNALSYM PKCS12_init} + {$EXTERNALSYM PKCS12_key_gen_asc} + {$EXTERNALSYM PKCS12_key_gen_uni} + {$EXTERNALSYM PKCS12_key_gen_utf8} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_PBE_keyivgen} + {$EXTERNALSYM PKCS12_gen_mac} + {$EXTERNALSYM PKCS12_verify_mac} + {$EXTERNALSYM PKCS12_set_mac} + {$EXTERNALSYM PKCS12_setup_mac} + {$EXTERNALSYM OPENSSL_asc2uni} + {$EXTERNALSYM OPENSSL_uni2asc} + {$EXTERNALSYM OPENSSL_utf82uni} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_uni2utf8} {introduced 1.1.0} + {$EXTERNALSYM PKCS12_new} + {$EXTERNALSYM PKCS12_free} + {$EXTERNALSYM d2i_PKCS12} + {$EXTERNALSYM i2d_PKCS12} + {$EXTERNALSYM PKCS12_it} + {$EXTERNALSYM PKCS12_MAC_DATA_new} + {$EXTERNALSYM PKCS12_MAC_DATA_free} + {$EXTERNALSYM d2i_PKCS12_MAC_DATA} + {$EXTERNALSYM i2d_PKCS12_MAC_DATA} + {$EXTERNALSYM PKCS12_MAC_DATA_it} + {$EXTERNALSYM PKCS12_SAFEBAG_new} + {$EXTERNALSYM PKCS12_SAFEBAG_free} + {$EXTERNALSYM d2i_PKCS12_SAFEBAG} + {$EXTERNALSYM i2d_PKCS12_SAFEBAG} + {$EXTERNALSYM PKCS12_SAFEBAG_it} + {$EXTERNALSYM PKCS12_BAGS_new} + {$EXTERNALSYM PKCS12_BAGS_free} + {$EXTERNALSYM d2i_PKCS12_BAGS} + {$EXTERNALSYM i2d_PKCS12_BAGS} + {$EXTERNALSYM PKCS12_BAGS_it} + {$EXTERNALSYM PKCS12_PBE_add} + {$EXTERNALSYM PKCS12_parse} + {$EXTERNALSYM PKCS12_create} + {$EXTERNALSYM i2d_PKCS12_bio} + {$EXTERNALSYM d2i_PKCS12_bio} + {$EXTERNALSYM PKCS12_newpass} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + PKCS12_mac_present: function(const p12: PPKCS12): TIdC_INT; cdecl = nil; {introduced 1.1.0} + PKCS12_get0_mac: procedure(const pmac: PPASN1_OCTET_STRING; const pmacalg: PPX509_ALGOR; const psalt: PPASN1_OCTET_STRING; const piter: PPASN1_INTEGER; const p12: PPKCS12); cdecl = nil; {introduced 1.1.0} + + PKCS12_SAFEBAG_get0_attr: function(const bag: PPKCS12_SAFEBAG; attr_nid: TIdC_INT): PASN1_TYPE; cdecl = nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get0_type: function(const bag: PPKCS12_SAFEBAG): PASN1_OBJECT; cdecl = nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get_nid: function(const bag: PPKCS12_SAFEBAG): TIdC_INT; cdecl = nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get_bag_nid: function(const bag: PPKCS12_SAFEBAG): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + PKCS12_SAFEBAG_get1_cert: function(const bag: PPKCS12_SAFEBAG): PX509; cdecl = nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get1_crl: function(const bag: PPKCS12_SAFEBAG): PX509_CRL; cdecl = nil; {introduced 1.1.0} +// const STACK_OF(PKCS12_SAFEBAG) *PKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag); + PKCS12_SAFEBAG_get0_p8inf: function(const bag: PPKCS12_SAFEBAG): PPKCS8_PRIV_KEY_INFO; cdecl = nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get0_pkcs8: function(const bag: PPKCS12_SAFEBAG): PX509_SIG; cdecl = nil; {introduced 1.1.0} + + PKCS12_SAFEBAG_create_cert: function(x509: PX509): PPKCS12_SAFEBAG; cdecl = nil; {introduced 1.1.0} + PKCS12_SAFEBAG_create_crl: function(crl: PX509_CRL): PPKCS12_SAFEBAG; cdecl = nil; {introduced 1.1.0} + PKCS12_SAFEBAG_create0_p8inf: function(p8: PPKCS8_PRIV_KEY_INFO): PPKCS12_SAFEBAG; cdecl = nil; {introduced 1.1.0} + PKCS12_SAFEBAG_create0_pkcs8: function(p8: PX509_SIG): PPKCS12_SAFEBAG; cdecl = nil; {introduced 1.1.0} + PKCS12_SAFEBAG_create_pkcs8_encrypt: function(pbe_nid: TIdC_INT; const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; p8inf: PPKCS8_PRIV_KEY_INFO): PPKCS12_SAFEBAG; cdecl = nil; {introduced 1.1.0} + + PKCS12_item_pack_safebag: function(obj: Pointer; const it: PASN1_ITEM; nid1: TIdC_INT; nid2: TIdC_INT): PPKCS12_SAFEBAG; cdecl = nil; + PKCS8_decrypt: function(const p8: PX509_SIG; const pass: PIdAnsiChar; passlen: TIdC_INT): PPKCS8_PRIV_KEY_INFO; cdecl = nil; + PKCS12_decrypt_skey: function(const bag: PPKCS12_SAFEBAG; const pass: PIdAnsiChar; passlen: TIdC_INT): PPKCS8_PRIV_KEY_INFO; cdecl = nil; + PKCS8_encrypt: function(pbe_nid: TIdC_INT; const cipher: PEVP_CIPHER; const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; p8: PPKCS8_PRIV_KEY_INFO): PX509_SIG; cdecl = nil; + PKCS8_set0_pbe: function(const pass: PIdAnsiChar; passlen: TIdC_INT; p8inf: PPKCS8_PRIV_KEY_INFO; pbe: PX509_ALGOR): PX509_SIG; cdecl = nil; {introduced 1.1.0} +// PKCS7 *PKCS12_pack_p7data(STACK_OF(PKCS12_SAFEBAG) *sk); +// STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7); +// function PKCS12_pack_p7encdata(TIdC_INT pbe_nid, const PIdAnsiChar pass, TIdC_INT passlen, +// Byte *salt, TIdC_INT saltlen, TIdC_INT iter, +// STACK_OF(PKCS12_SAFEBAG) *bags): PPKCS7; +// STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const PIdAnsiChar *pass, +// TIdC_INT passlen); + +// TIdC_INT PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes); +// STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12); + + PKCS12_add_localkeyid: function(bag: PPKCS12_SAFEBAG; name: PByte; namelen: TIdC_INT): TIdC_INT; cdecl = nil; + PKCS12_add_friendlyname_asc: function(bag: PPKCS12_SAFEBAG; const name: PIdAnsiChar; namelen: TIdC_INT): TIdC_INT; cdecl = nil; + PKCS12_add_friendlyname_utf8: function(bag: PPKCS12_SAFEBAG; const name: PIdAnsiChar; namelen: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + PKCS12_add_CSPName_asc: function(bag: PPKCS12_SAFEBAG; const name: PIdAnsiChar; namelen: TIdC_INT): TIdC_INT; cdecl = nil; + PKCS12_add_friendlyname_uni: function(bag: PPKCS12_SAFEBAG; const name: PByte; namelen: TIdC_INT): TIdC_INT; cdecl = nil; + PKCS8_add_keyusage: function(p8: PPKCS8_PRIV_KEY_INFO; usage: TIdC_INT): TIdC_INT; cdecl = nil; +// function PKCS12_get_attr_gen(const STACK_OF(X509_ATTRIBUTE) *attrs; TIdC_INT attr_nid): PASN1_TYPE; + PKCS12_get_friendlyname: function(bag: PPKCS12_SAFEBAG): PIdAnsiChar; cdecl = nil; +// const STACK_OF(X509_ATTRIBUTE) *PKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag); + PKCS12_pbe_crypt: function(const algor: PX509_ALGOR; const pass: PIdAnsiChar; passlen: TIdC_INT; const in_: PByte; inlen: TIdC_INT; data: PPByte; datalen: PIdC_INT; en_de: TIdC_INT): PByte; cdecl = nil; + PKCS12_item_decrypt_d2i: function(const algor: PX509_ALGOR; const it: PASN1_ITEM; const pass: PIdAnsiChar; passlen: TIdC_INT; const oct: PASN1_OCTET_STRING; zbuf: TIdC_INT): Pointer; cdecl = nil; + PKCS12_item_i2d_encrypt: function(algor: PX509_ALGOR; const it: PASN1_ITEM; const pass: PIdAnsiChar; passlen: TIdC_INT; obj: Pointer; zbuf: TIdC_INT): PASN1_OCTET_STRING; cdecl = nil; + PKCS12_init: function(mode: TIdC_INT): PPKCS12; cdecl = nil; + PKCS12_key_gen_asc: function(const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; id: TIdC_INT; iter: TIdC_INT; n: TIdC_INT; out_: PByte; const md_type: PEVP_MD): TIdC_INT; cdecl = nil; + PKCS12_key_gen_uni: function(pass: PByte; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; id: TIdC_INT; iter: TIdC_INT; n: TIdC_INT; out_: PByte; const md_type: PEVP_MD): TIdC_INT; cdecl = nil; + PKCS12_key_gen_utf8: function(const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; id: TIdC_INT; iter: TIdC_INT; n: TIdC_INT; out_: PByte; const md_type: PEVP_MD): TIdC_INT; cdecl = nil; {introduced 1.1.0} + PKCS12_PBE_keyivgen: function(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const cipher: PEVP_CIPHER; const md_type: PEVP_MD; en_de: TIdC_INT): TIdC_INT; cdecl = nil; + PKCS12_gen_mac: function(p12: PPKCS12; const pass: PIdAnsiChar; passlen: TIdC_INT; mac: PByte; maclen: PIdC_UINT): TIdC_INT; cdecl = nil; + PKCS12_verify_mac: function(p12: PPKCS12; const pass: PIdAnsiChar; passlen: TIdC_INT): TIdC_INT; cdecl = nil; + PKCS12_set_mac: function(p12: PPKCS12; const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; const md_type: PEVP_MD): TIdC_INT; cdecl = nil; + PKCS12_setup_mac: function(p12: PPKCS12; iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT; const md_type: PEVP_MD): TIdC_INT; cdecl = nil; + OPENSSL_asc2uni: function(const asc: PIdAnsiChar; asclen: TIdC_INT; uni: PPByte; unilen: PIdC_INT): PByte; cdecl = nil; + OPENSSL_uni2asc: function(const uni: PByte; unilen: TIdC_INT): PIdAnsiChar; cdecl = nil; + OPENSSL_utf82uni: function(const asc: PIdAnsiChar; asclen: TIdC_INT; uni: PPByte; unilen: PIdC_INT): PByte; cdecl = nil; {introduced 1.1.0} + OPENSSL_uni2utf8: function(const uni: PByte; unilen: TIdC_INT): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + + PKCS12_new: function: PPKCS12; cdecl = nil; + PKCS12_free: procedure(a: PPKCS12); cdecl = nil; + d2i_PKCS12: function(a: PPPKCS12; const in_: PPByte; len: TIdC_LONG): PPKCS12; cdecl = nil; + i2d_PKCS12: function(a: PPKCS12; out_: PPByte): TIdC_INT; cdecl = nil; + PKCS12_it: function: PASN1_ITEM; cdecl = nil; + + PKCS12_MAC_DATA_new: function: PPKCS12_MAC_DATA; cdecl = nil; + PKCS12_MAC_DATA_free: procedure(a: PPKCS12_MAC_DATA); cdecl = nil; + d2i_PKCS12_MAC_DATA: function(a: PPPKCS12_MAC_DATA; const in_: PPByte; len: TIdC_LONG): PPKCS12_MAC_DATA; cdecl = nil; + i2d_PKCS12_MAC_DATA: function(a: PPKCS12_MAC_DATA; out_: PPByte): TIdC_INT; cdecl = nil; + PKCS12_MAC_DATA_it: function: PASN1_ITEM; cdecl = nil; + + PKCS12_SAFEBAG_new: function: PPKCS12_SAFEBAG; cdecl = nil; + PKCS12_SAFEBAG_free: procedure(a: PPKCS12_SAFEBAG); cdecl = nil; + d2i_PKCS12_SAFEBAG: function(a: PPPKCS12_SAFEBAG; const in_: PPByte; len: TIdC_LONG): PPKCS12_SAFEBAG; cdecl = nil; + i2d_PKCS12_SAFEBAG: function(a: PPKCS12_SAFEBAG; out_: PPByte): TIdC_INT; cdecl = nil; + PKCS12_SAFEBAG_it: function: PASN1_ITEM; cdecl = nil; + + PKCS12_BAGS_new: function: PPKCS12_BAGS; cdecl = nil; + PKCS12_BAGS_free: procedure(a: PPKCS12_BAGS); cdecl = nil; + d2i_PKCS12_BAGS: function(a: PPPKCS12_BAGS; const in_: PPByte; len: TIdC_LONG): PPKCS12_BAGS; cdecl = nil; + i2d_PKCS12_BAGS: function(a: PPKCS12_BAGS; out_: PPByte): TIdC_INT; cdecl = nil; + PKCS12_BAGS_it: function: PASN1_ITEM; cdecl = nil; + + PKCS12_PBE_add: procedure(v: Pointer); cdecl = nil; + PKCS12_parse: function(p12: PPKCS12; const pass: PIdAnsiChar; out pkey: PEVP_PKEY; out cert: PX509; ca: PPStack_Of_X509): TIdC_INT; cdecl = nil; + PKCS12_create: function(const pass: PIdAnsiChar; const name: PIdAnsiChar; pkey: PEVP_PKEY; cert: PX509; ca: PStack_Of_X509; nid_key: TIdC_INT; nid_cert: TIdC_INT; iter: TIdC_INT; mac_iter: TIdC_INT; keytype: TIdC_INT): PPKCS12; cdecl = nil; + +// function PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags; X509 *cert): PKCS12_SAFEBAG; +// PKCS12_SAFEBAG *PKCS12_add_key(STACK_OF(PKCS12_SAFEBAG) **pbags; +// EVP_PKEY *key; TIdC_INT key_usage; iter: TIdC_INT; +// TIdC_INT key_nid; const pass: PIdAnsiChar); +// TIdC_INT PKCS12_add_safe(STACK_OF(PKCS7) **psafes; STACK_OF(PKCS12_SAFEBAG) *bags; +// TIdC_INT safe_nid; iter: TIdC_INT; const pass: PIdAnsiChar); +// PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes; TIdC_INT p7_nid); + + i2d_PKCS12_bio: function(bp: PBIO; p12: PPKCS12): TIdC_INT; cdecl = nil; + d2i_PKCS12_bio: function(bp: PBIO; p12: PPPKCS12): PPKCS12; cdecl = nil; + PKCS12_newpass: function(p12: PPKCS12; const oldpass: PIdAnsiChar; const newpass: PIdAnsiChar): TIdC_INT; cdecl = nil; + +{$ELSE} + function PKCS12_mac_present(const p12: PPKCS12): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure PKCS12_get0_mac(const pmac: PPASN1_OCTET_STRING; const pmacalg: PPX509_ALGOR; const psalt: PPASN1_OCTET_STRING; const piter: PPASN1_INTEGER; const p12: PPKCS12) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function PKCS12_SAFEBAG_get0_attr(const bag: PPKCS12_SAFEBAG; attr_nid: TIdC_INT): PASN1_TYPE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PKCS12_SAFEBAG_get0_type(const bag: PPKCS12_SAFEBAG): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PKCS12_SAFEBAG_get_nid(const bag: PPKCS12_SAFEBAG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PKCS12_SAFEBAG_get_bag_nid(const bag: PPKCS12_SAFEBAG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function PKCS12_SAFEBAG_get1_cert(const bag: PPKCS12_SAFEBAG): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PKCS12_SAFEBAG_get1_crl(const bag: PPKCS12_SAFEBAG): PX509_CRL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} +// const STACK_OF(PKCS12_SAFEBAG) *PKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag); + function PKCS12_SAFEBAG_get0_p8inf(const bag: PPKCS12_SAFEBAG): PPKCS8_PRIV_KEY_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PKCS12_SAFEBAG_get0_pkcs8(const bag: PPKCS12_SAFEBAG): PX509_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function PKCS12_SAFEBAG_create_cert(x509: PX509): PPKCS12_SAFEBAG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PKCS12_SAFEBAG_create_crl(crl: PX509_CRL): PPKCS12_SAFEBAG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PKCS12_SAFEBAG_create0_p8inf(p8: PPKCS8_PRIV_KEY_INFO): PPKCS12_SAFEBAG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PKCS12_SAFEBAG_create0_pkcs8(p8: PX509_SIG): PPKCS12_SAFEBAG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PKCS12_SAFEBAG_create_pkcs8_encrypt(pbe_nid: TIdC_INT; const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; p8inf: PPKCS8_PRIV_KEY_INFO): PPKCS12_SAFEBAG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function PKCS12_item_pack_safebag(obj: Pointer; const it: PASN1_ITEM; nid1: TIdC_INT; nid2: TIdC_INT): PPKCS12_SAFEBAG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS8_decrypt(const p8: PX509_SIG; const pass: PIdAnsiChar; passlen: TIdC_INT): PPKCS8_PRIV_KEY_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_decrypt_skey(const bag: PPKCS12_SAFEBAG; const pass: PIdAnsiChar; passlen: TIdC_INT): PPKCS8_PRIV_KEY_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS8_encrypt(pbe_nid: TIdC_INT; const cipher: PEVP_CIPHER; const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; p8: PPKCS8_PRIV_KEY_INFO): PX509_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS8_set0_pbe(const pass: PIdAnsiChar; passlen: TIdC_INT; p8inf: PPKCS8_PRIV_KEY_INFO; pbe: PX509_ALGOR): PX509_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} +// PKCS7 *PKCS12_pack_p7data(STACK_OF(PKCS12_SAFEBAG) *sk); +// STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7); +// function PKCS12_pack_p7encdata(TIdC_INT pbe_nid, const PIdAnsiChar pass, TIdC_INT passlen, +// Byte *salt, TIdC_INT saltlen, TIdC_INT iter, +// STACK_OF(PKCS12_SAFEBAG) *bags): PPKCS7; +// STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const PIdAnsiChar *pass, +// TIdC_INT passlen); + +// TIdC_INT PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes); +// STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12); + + function PKCS12_add_localkeyid(bag: PPKCS12_SAFEBAG; name: PByte; namelen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_add_friendlyname_asc(bag: PPKCS12_SAFEBAG; const name: PIdAnsiChar; namelen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_add_friendlyname_utf8(bag: PPKCS12_SAFEBAG; const name: PIdAnsiChar; namelen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PKCS12_add_CSPName_asc(bag: PPKCS12_SAFEBAG; const name: PIdAnsiChar; namelen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_add_friendlyname_uni(bag: PPKCS12_SAFEBAG; const name: PByte; namelen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS8_add_keyusage(p8: PPKCS8_PRIV_KEY_INFO; usage: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function PKCS12_get_attr_gen(const STACK_OF(X509_ATTRIBUTE) *attrs; TIdC_INT attr_nid): PASN1_TYPE; + function PKCS12_get_friendlyname(bag: PPKCS12_SAFEBAG): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// const STACK_OF(X509_ATTRIBUTE) *PKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag); + function PKCS12_pbe_crypt(const algor: PX509_ALGOR; const pass: PIdAnsiChar; passlen: TIdC_INT; const in_: PByte; inlen: TIdC_INT; data: PPByte; datalen: PIdC_INT; en_de: TIdC_INT): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_item_decrypt_d2i(const algor: PX509_ALGOR; const it: PASN1_ITEM; const pass: PIdAnsiChar; passlen: TIdC_INT; const oct: PASN1_OCTET_STRING; zbuf: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_item_i2d_encrypt(algor: PX509_ALGOR; const it: PASN1_ITEM; const pass: PIdAnsiChar; passlen: TIdC_INT; obj: Pointer; zbuf: TIdC_INT): PASN1_OCTET_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_init(mode: TIdC_INT): PPKCS12 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_key_gen_asc(const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; id: TIdC_INT; iter: TIdC_INT; n: TIdC_INT; out_: PByte; const md_type: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_key_gen_uni(pass: PByte; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; id: TIdC_INT; iter: TIdC_INT; n: TIdC_INT; out_: PByte; const md_type: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_key_gen_utf8(const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; id: TIdC_INT; iter: TIdC_INT; n: TIdC_INT; out_: PByte; const md_type: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function PKCS12_PBE_keyivgen(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const cipher: PEVP_CIPHER; const md_type: PEVP_MD; en_de: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_gen_mac(p12: PPKCS12; const pass: PIdAnsiChar; passlen: TIdC_INT; mac: PByte; maclen: PIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_verify_mac(p12: PPKCS12; const pass: PIdAnsiChar; passlen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_set_mac(p12: PPKCS12; const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; const md_type: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_setup_mac(p12: PPKCS12; iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT; const md_type: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OPENSSL_asc2uni(const asc: PIdAnsiChar; asclen: TIdC_INT; uni: PPByte; unilen: PIdC_INT): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OPENSSL_uni2asc(const uni: PByte; unilen: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function OPENSSL_utf82uni(const asc: PIdAnsiChar; asclen: TIdC_INT; uni: PPByte; unilen: PIdC_INT): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_uni2utf8(const uni: PByte; unilen: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function PKCS12_new: PPKCS12 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure PKCS12_free(a: PPKCS12) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_PKCS12(a: PPPKCS12; const in_: PPByte; len: TIdC_LONG): PPKCS12 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PKCS12(a: PPKCS12; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_it: PASN1_ITEM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS12_MAC_DATA_new: PPKCS12_MAC_DATA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure PKCS12_MAC_DATA_free(a: PPKCS12_MAC_DATA) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_PKCS12_MAC_DATA(a: PPPKCS12_MAC_DATA; const in_: PPByte; len: TIdC_LONG): PPKCS12_MAC_DATA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PKCS12_MAC_DATA(a: PPKCS12_MAC_DATA; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_MAC_DATA_it: PASN1_ITEM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS12_SAFEBAG_new: PPKCS12_SAFEBAG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure PKCS12_SAFEBAG_free(a: PPKCS12_SAFEBAG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_PKCS12_SAFEBAG(a: PPPKCS12_SAFEBAG; const in_: PPByte; len: TIdC_LONG): PPKCS12_SAFEBAG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PKCS12_SAFEBAG(a: PPKCS12_SAFEBAG; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_SAFEBAG_it: PASN1_ITEM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS12_BAGS_new: PPKCS12_BAGS cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure PKCS12_BAGS_free(a: PPKCS12_BAGS) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_PKCS12_BAGS(a: PPPKCS12_BAGS; const in_: PPByte; len: TIdC_LONG): PPKCS12_BAGS cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PKCS12_BAGS(a: PPKCS12_BAGS; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_BAGS_it: PASN1_ITEM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure PKCS12_PBE_add(v: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_parse(p12: PPKCS12; const pass: PIdAnsiChar; out pkey: PEVP_PKEY; out cert: PX509; ca: PPStack_Of_X509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_create(const pass: PIdAnsiChar; const name: PIdAnsiChar; pkey: PEVP_PKEY; cert: PX509; ca: PStack_Of_X509; nid_key: TIdC_INT; nid_cert: TIdC_INT; iter: TIdC_INT; mac_iter: TIdC_INT; keytype: TIdC_INT): PPKCS12 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// function PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags; X509 *cert): PKCS12_SAFEBAG; +// PKCS12_SAFEBAG *PKCS12_add_key(STACK_OF(PKCS12_SAFEBAG) **pbags; +// EVP_PKEY *key; TIdC_INT key_usage; iter: TIdC_INT; +// TIdC_INT key_nid; const pass: PIdAnsiChar); +// TIdC_INT PKCS12_add_safe(STACK_OF(PKCS7) **psafes; STACK_OF(PKCS12_SAFEBAG) *bags; +// TIdC_INT safe_nid; iter: TIdC_INT; const pass: PIdAnsiChar); +// PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes; TIdC_INT p7_nid); + + function i2d_PKCS12_bio(bp: PBIO; p12: PPKCS12): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_PKCS12_bio(bp: PBIO; p12: PPPKCS12): PPKCS12 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS12_newpass(p12: PPKCS12; const oldpass: PIdAnsiChar; const newpass: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + PKCS12_mac_present_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_get0_mac_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_get0_attr_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_get0_type_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_get_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_get_bag_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_get1_cert_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_get1_crl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_get0_p8inf_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_get0_pkcs8_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_create_cert_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_create_crl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_create0_p8inf_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_create0_pkcs8_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_SAFEBAG_create_pkcs8_encrypt_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS8_set0_pbe_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_add_friendlyname_utf8_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS12_key_gen_utf8_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_utf82uni_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_uni2utf8_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +function ERR_PKCS12_mac_present(const p12: PPKCS12): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_mac_present'); +end; + + +procedure ERR_PKCS12_get0_mac(const pmac: PPASN1_OCTET_STRING; const pmacalg: PPX509_ALGOR; const psalt: PPASN1_OCTET_STRING; const piter: PPASN1_INTEGER; const p12: PPKCS12); +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_get0_mac'); +end; + + +function ERR_PKCS12_SAFEBAG_get0_attr(const bag: PPKCS12_SAFEBAG; attr_nid: TIdC_INT): PASN1_TYPE; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_get0_attr'); +end; + + +function ERR_PKCS12_SAFEBAG_get0_type(const bag: PPKCS12_SAFEBAG): PASN1_OBJECT; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_get0_type'); +end; + + +function ERR_PKCS12_SAFEBAG_get_nid(const bag: PPKCS12_SAFEBAG): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_get_nid'); +end; + + +function ERR_PKCS12_SAFEBAG_get_bag_nid(const bag: PPKCS12_SAFEBAG): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_get_bag_nid'); +end; + + +function ERR_PKCS12_SAFEBAG_get1_cert(const bag: PPKCS12_SAFEBAG): PX509; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_get1_cert'); +end; + + +function ERR_PKCS12_SAFEBAG_get1_crl(const bag: PPKCS12_SAFEBAG): PX509_CRL; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_get1_crl'); +end; + + +function ERR_PKCS12_SAFEBAG_get0_p8inf(const bag: PPKCS12_SAFEBAG): PPKCS8_PRIV_KEY_INFO; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_get0_p8inf'); +end; + + +function ERR_PKCS12_SAFEBAG_get0_pkcs8(const bag: PPKCS12_SAFEBAG): PX509_SIG; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_get0_pkcs8'); +end; + + +function ERR_PKCS12_SAFEBAG_create_cert(x509: PX509): PPKCS12_SAFEBAG; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_create_cert'); +end; + + +function ERR_PKCS12_SAFEBAG_create_crl(crl: PX509_CRL): PPKCS12_SAFEBAG; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_create_crl'); +end; + + +function ERR_PKCS12_SAFEBAG_create0_p8inf(p8: PPKCS8_PRIV_KEY_INFO): PPKCS12_SAFEBAG; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_create0_p8inf'); +end; + + +function ERR_PKCS12_SAFEBAG_create0_pkcs8(p8: PX509_SIG): PPKCS12_SAFEBAG; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_create0_pkcs8'); +end; + + +function ERR_PKCS12_SAFEBAG_create_pkcs8_encrypt(pbe_nid: TIdC_INT; const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; p8inf: PPKCS8_PRIV_KEY_INFO): PPKCS12_SAFEBAG; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_SAFEBAG_create_pkcs8_encrypt'); +end; + + +function ERR_PKCS8_set0_pbe(const pass: PIdAnsiChar; passlen: TIdC_INT; p8inf: PPKCS8_PRIV_KEY_INFO; pbe: PX509_ALGOR): PX509_SIG; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS8_set0_pbe'); +end; + + +function ERR_PKCS12_add_friendlyname_utf8(bag: PPKCS12_SAFEBAG; const name: PIdAnsiChar; namelen: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_add_friendlyname_utf8'); +end; + + +function ERR_PKCS12_key_gen_utf8(const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; id: TIdC_INT; iter: TIdC_INT; n: TIdC_INT; out_: PByte; const md_type: PEVP_MD): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS12_key_gen_utf8'); +end; + + +function ERR_OPENSSL_utf82uni(const asc: PIdAnsiChar; asclen: TIdC_INT; uni: PPByte; unilen: PIdC_INT): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_utf82uni'); +end; + + +function ERR_OPENSSL_uni2utf8(const uni: PByte; unilen: TIdC_INT): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_uni2utf8'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + PKCS12_item_pack_safebag := LoadFunction('PKCS12_item_pack_safebag',AFailed); + PKCS8_decrypt := LoadFunction('PKCS8_decrypt',AFailed); + PKCS12_decrypt_skey := LoadFunction('PKCS12_decrypt_skey',AFailed); + PKCS8_encrypt := LoadFunction('PKCS8_encrypt',AFailed); + PKCS12_add_localkeyid := LoadFunction('PKCS12_add_localkeyid',AFailed); + PKCS12_add_friendlyname_asc := LoadFunction('PKCS12_add_friendlyname_asc',AFailed); + PKCS12_add_CSPName_asc := LoadFunction('PKCS12_add_CSPName_asc',AFailed); + PKCS12_add_friendlyname_uni := LoadFunction('PKCS12_add_friendlyname_uni',AFailed); + PKCS8_add_keyusage := LoadFunction('PKCS8_add_keyusage',AFailed); + PKCS12_get_friendlyname := LoadFunction('PKCS12_get_friendlyname',AFailed); + PKCS12_pbe_crypt := LoadFunction('PKCS12_pbe_crypt',AFailed); + PKCS12_item_decrypt_d2i := LoadFunction('PKCS12_item_decrypt_d2i',AFailed); + PKCS12_item_i2d_encrypt := LoadFunction('PKCS12_item_i2d_encrypt',AFailed); + PKCS12_init := LoadFunction('PKCS12_init',AFailed); + PKCS12_key_gen_asc := LoadFunction('PKCS12_key_gen_asc',AFailed); + PKCS12_key_gen_uni := LoadFunction('PKCS12_key_gen_uni',AFailed); + PKCS12_PBE_keyivgen := LoadFunction('PKCS12_PBE_keyivgen',AFailed); + PKCS12_gen_mac := LoadFunction('PKCS12_gen_mac',AFailed); + PKCS12_verify_mac := LoadFunction('PKCS12_verify_mac',AFailed); + PKCS12_set_mac := LoadFunction('PKCS12_set_mac',AFailed); + PKCS12_setup_mac := LoadFunction('PKCS12_setup_mac',AFailed); + OPENSSL_asc2uni := LoadFunction('OPENSSL_asc2uni',AFailed); + OPENSSL_uni2asc := LoadFunction('OPENSSL_uni2asc',AFailed); + PKCS12_new := LoadFunction('PKCS12_new',AFailed); + PKCS12_free := LoadFunction('PKCS12_free',AFailed); + d2i_PKCS12 := LoadFunction('d2i_PKCS12',AFailed); + i2d_PKCS12 := LoadFunction('i2d_PKCS12',AFailed); + PKCS12_it := LoadFunction('PKCS12_it',AFailed); + PKCS12_MAC_DATA_new := LoadFunction('PKCS12_MAC_DATA_new',AFailed); + PKCS12_MAC_DATA_free := LoadFunction('PKCS12_MAC_DATA_free',AFailed); + d2i_PKCS12_MAC_DATA := LoadFunction('d2i_PKCS12_MAC_DATA',AFailed); + i2d_PKCS12_MAC_DATA := LoadFunction('i2d_PKCS12_MAC_DATA',AFailed); + PKCS12_MAC_DATA_it := LoadFunction('PKCS12_MAC_DATA_it',AFailed); + PKCS12_SAFEBAG_new := LoadFunction('PKCS12_SAFEBAG_new',AFailed); + PKCS12_SAFEBAG_free := LoadFunction('PKCS12_SAFEBAG_free',AFailed); + d2i_PKCS12_SAFEBAG := LoadFunction('d2i_PKCS12_SAFEBAG',AFailed); + i2d_PKCS12_SAFEBAG := LoadFunction('i2d_PKCS12_SAFEBAG',AFailed); + PKCS12_SAFEBAG_it := LoadFunction('PKCS12_SAFEBAG_it',AFailed); + PKCS12_BAGS_new := LoadFunction('PKCS12_BAGS_new',AFailed); + PKCS12_BAGS_free := LoadFunction('PKCS12_BAGS_free',AFailed); + d2i_PKCS12_BAGS := LoadFunction('d2i_PKCS12_BAGS',AFailed); + i2d_PKCS12_BAGS := LoadFunction('i2d_PKCS12_BAGS',AFailed); + PKCS12_BAGS_it := LoadFunction('PKCS12_BAGS_it',AFailed); + PKCS12_PBE_add := LoadFunction('PKCS12_PBE_add',AFailed); + PKCS12_parse := LoadFunction('PKCS12_parse',AFailed); + PKCS12_create := LoadFunction('PKCS12_create',AFailed); + i2d_PKCS12_bio := LoadFunction('i2d_PKCS12_bio',AFailed); + d2i_PKCS12_bio := LoadFunction('d2i_PKCS12_bio',AFailed); + PKCS12_newpass := LoadFunction('PKCS12_newpass',AFailed); + PKCS12_mac_present := LoadFunction('PKCS12_mac_present',nil); {introduced 1.1.0} + PKCS12_get0_mac := LoadFunction('PKCS12_get0_mac',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_get0_attr := LoadFunction('PKCS12_SAFEBAG_get0_attr',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_get0_type := LoadFunction('PKCS12_SAFEBAG_get0_type',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_get_nid := LoadFunction('PKCS12_SAFEBAG_get_nid',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_get_bag_nid := LoadFunction('PKCS12_SAFEBAG_get_bag_nid',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_get1_cert := LoadFunction('PKCS12_SAFEBAG_get1_cert',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_get1_crl := LoadFunction('PKCS12_SAFEBAG_get1_crl',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_get0_p8inf := LoadFunction('PKCS12_SAFEBAG_get0_p8inf',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_get0_pkcs8 := LoadFunction('PKCS12_SAFEBAG_get0_pkcs8',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_create_cert := LoadFunction('PKCS12_SAFEBAG_create_cert',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_create_crl := LoadFunction('PKCS12_SAFEBAG_create_crl',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_create0_p8inf := LoadFunction('PKCS12_SAFEBAG_create0_p8inf',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_create0_pkcs8 := LoadFunction('PKCS12_SAFEBAG_create0_pkcs8',nil); {introduced 1.1.0} + PKCS12_SAFEBAG_create_pkcs8_encrypt := LoadFunction('PKCS12_SAFEBAG_create_pkcs8_encrypt',nil); {introduced 1.1.0} + PKCS8_set0_pbe := LoadFunction('PKCS8_set0_pbe',nil); {introduced 1.1.0} + PKCS12_add_friendlyname_utf8 := LoadFunction('PKCS12_add_friendlyname_utf8',nil); {introduced 1.1.0} + PKCS12_key_gen_utf8 := LoadFunction('PKCS12_key_gen_utf8',nil); {introduced 1.1.0} + OPENSSL_utf82uni := LoadFunction('OPENSSL_utf82uni',nil); {introduced 1.1.0} + OPENSSL_uni2utf8 := LoadFunction('OPENSSL_uni2utf8',nil); {introduced 1.1.0} + if not assigned(PKCS12_mac_present) then + begin + {$if declared(PKCS12_mac_present_introduced)} + if LibVersion < PKCS12_mac_present_introduced then + {$if declared(FC_PKCS12_mac_present)} + PKCS12_mac_present := @FC_PKCS12_mac_present + {$else} + PKCS12_mac_present := @ERR_PKCS12_mac_present + {$ifend} + else + {$ifend} + {$if declared(PKCS12_mac_present_removed)} + if PKCS12_mac_present_removed <= LibVersion then + {$if declared(_PKCS12_mac_present)} + PKCS12_mac_present := @_PKCS12_mac_present + {$else} + {$IF declared(ERR_PKCS12_mac_present)} + PKCS12_mac_present := @ERR_PKCS12_mac_present + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_mac_present) and Assigned(AFailed) then + AFailed.Add('PKCS12_mac_present'); + end; + + + if not assigned(PKCS12_get0_mac) then + begin + {$if declared(PKCS12_get0_mac_introduced)} + if LibVersion < PKCS12_get0_mac_introduced then + {$if declared(FC_PKCS12_get0_mac)} + PKCS12_get0_mac := @FC_PKCS12_get0_mac + {$else} + PKCS12_get0_mac := @ERR_PKCS12_get0_mac + {$ifend} + else + {$ifend} + {$if declared(PKCS12_get0_mac_removed)} + if PKCS12_get0_mac_removed <= LibVersion then + {$if declared(_PKCS12_get0_mac)} + PKCS12_get0_mac := @_PKCS12_get0_mac + {$else} + {$IF declared(ERR_PKCS12_get0_mac)} + PKCS12_get0_mac := @ERR_PKCS12_get0_mac + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_get0_mac) and Assigned(AFailed) then + AFailed.Add('PKCS12_get0_mac'); + end; + + + if not assigned(PKCS12_SAFEBAG_get0_attr) then + begin + {$if declared(PKCS12_SAFEBAG_get0_attr_introduced)} + if LibVersion < PKCS12_SAFEBAG_get0_attr_introduced then + {$if declared(FC_PKCS12_SAFEBAG_get0_attr)} + PKCS12_SAFEBAG_get0_attr := @FC_PKCS12_SAFEBAG_get0_attr + {$else} + PKCS12_SAFEBAG_get0_attr := @ERR_PKCS12_SAFEBAG_get0_attr + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_get0_attr_removed)} + if PKCS12_SAFEBAG_get0_attr_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_get0_attr)} + PKCS12_SAFEBAG_get0_attr := @_PKCS12_SAFEBAG_get0_attr + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_get0_attr)} + PKCS12_SAFEBAG_get0_attr := @ERR_PKCS12_SAFEBAG_get0_attr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_get0_attr) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_get0_attr'); + end; + + + if not assigned(PKCS12_SAFEBAG_get0_type) then + begin + {$if declared(PKCS12_SAFEBAG_get0_type_introduced)} + if LibVersion < PKCS12_SAFEBAG_get0_type_introduced then + {$if declared(FC_PKCS12_SAFEBAG_get0_type)} + PKCS12_SAFEBAG_get0_type := @FC_PKCS12_SAFEBAG_get0_type + {$else} + PKCS12_SAFEBAG_get0_type := @ERR_PKCS12_SAFEBAG_get0_type + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_get0_type_removed)} + if PKCS12_SAFEBAG_get0_type_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_get0_type)} + PKCS12_SAFEBAG_get0_type := @_PKCS12_SAFEBAG_get0_type + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_get0_type)} + PKCS12_SAFEBAG_get0_type := @ERR_PKCS12_SAFEBAG_get0_type + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_get0_type) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_get0_type'); + end; + + + if not assigned(PKCS12_SAFEBAG_get_nid) then + begin + {$if declared(PKCS12_SAFEBAG_get_nid_introduced)} + if LibVersion < PKCS12_SAFEBAG_get_nid_introduced then + {$if declared(FC_PKCS12_SAFEBAG_get_nid)} + PKCS12_SAFEBAG_get_nid := @FC_PKCS12_SAFEBAG_get_nid + {$else} + PKCS12_SAFEBAG_get_nid := @ERR_PKCS12_SAFEBAG_get_nid + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_get_nid_removed)} + if PKCS12_SAFEBAG_get_nid_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_get_nid)} + PKCS12_SAFEBAG_get_nid := @_PKCS12_SAFEBAG_get_nid + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_get_nid)} + PKCS12_SAFEBAG_get_nid := @ERR_PKCS12_SAFEBAG_get_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_get_nid) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_get_nid'); + end; + + + if not assigned(PKCS12_SAFEBAG_get_bag_nid) then + begin + {$if declared(PKCS12_SAFEBAG_get_bag_nid_introduced)} + if LibVersion < PKCS12_SAFEBAG_get_bag_nid_introduced then + {$if declared(FC_PKCS12_SAFEBAG_get_bag_nid)} + PKCS12_SAFEBAG_get_bag_nid := @FC_PKCS12_SAFEBAG_get_bag_nid + {$else} + PKCS12_SAFEBAG_get_bag_nid := @ERR_PKCS12_SAFEBAG_get_bag_nid + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_get_bag_nid_removed)} + if PKCS12_SAFEBAG_get_bag_nid_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_get_bag_nid)} + PKCS12_SAFEBAG_get_bag_nid := @_PKCS12_SAFEBAG_get_bag_nid + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_get_bag_nid)} + PKCS12_SAFEBAG_get_bag_nid := @ERR_PKCS12_SAFEBAG_get_bag_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_get_bag_nid) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_get_bag_nid'); + end; + + + if not assigned(PKCS12_SAFEBAG_get1_cert) then + begin + {$if declared(PKCS12_SAFEBAG_get1_cert_introduced)} + if LibVersion < PKCS12_SAFEBAG_get1_cert_introduced then + {$if declared(FC_PKCS12_SAFEBAG_get1_cert)} + PKCS12_SAFEBAG_get1_cert := @FC_PKCS12_SAFEBAG_get1_cert + {$else} + PKCS12_SAFEBAG_get1_cert := @ERR_PKCS12_SAFEBAG_get1_cert + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_get1_cert_removed)} + if PKCS12_SAFEBAG_get1_cert_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_get1_cert)} + PKCS12_SAFEBAG_get1_cert := @_PKCS12_SAFEBAG_get1_cert + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_get1_cert)} + PKCS12_SAFEBAG_get1_cert := @ERR_PKCS12_SAFEBAG_get1_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_get1_cert) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_get1_cert'); + end; + + + if not assigned(PKCS12_SAFEBAG_get1_crl) then + begin + {$if declared(PKCS12_SAFEBAG_get1_crl_introduced)} + if LibVersion < PKCS12_SAFEBAG_get1_crl_introduced then + {$if declared(FC_PKCS12_SAFEBAG_get1_crl)} + PKCS12_SAFEBAG_get1_crl := @FC_PKCS12_SAFEBAG_get1_crl + {$else} + PKCS12_SAFEBAG_get1_crl := @ERR_PKCS12_SAFEBAG_get1_crl + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_get1_crl_removed)} + if PKCS12_SAFEBAG_get1_crl_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_get1_crl)} + PKCS12_SAFEBAG_get1_crl := @_PKCS12_SAFEBAG_get1_crl + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_get1_crl)} + PKCS12_SAFEBAG_get1_crl := @ERR_PKCS12_SAFEBAG_get1_crl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_get1_crl) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_get1_crl'); + end; + + + if not assigned(PKCS12_SAFEBAG_get0_p8inf) then + begin + {$if declared(PKCS12_SAFEBAG_get0_p8inf_introduced)} + if LibVersion < PKCS12_SAFEBAG_get0_p8inf_introduced then + {$if declared(FC_PKCS12_SAFEBAG_get0_p8inf)} + PKCS12_SAFEBAG_get0_p8inf := @FC_PKCS12_SAFEBAG_get0_p8inf + {$else} + PKCS12_SAFEBAG_get0_p8inf := @ERR_PKCS12_SAFEBAG_get0_p8inf + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_get0_p8inf_removed)} + if PKCS12_SAFEBAG_get0_p8inf_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_get0_p8inf)} + PKCS12_SAFEBAG_get0_p8inf := @_PKCS12_SAFEBAG_get0_p8inf + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_get0_p8inf)} + PKCS12_SAFEBAG_get0_p8inf := @ERR_PKCS12_SAFEBAG_get0_p8inf + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_get0_p8inf) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_get0_p8inf'); + end; + + + if not assigned(PKCS12_SAFEBAG_get0_pkcs8) then + begin + {$if declared(PKCS12_SAFEBAG_get0_pkcs8_introduced)} + if LibVersion < PKCS12_SAFEBAG_get0_pkcs8_introduced then + {$if declared(FC_PKCS12_SAFEBAG_get0_pkcs8)} + PKCS12_SAFEBAG_get0_pkcs8 := @FC_PKCS12_SAFEBAG_get0_pkcs8 + {$else} + PKCS12_SAFEBAG_get0_pkcs8 := @ERR_PKCS12_SAFEBAG_get0_pkcs8 + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_get0_pkcs8_removed)} + if PKCS12_SAFEBAG_get0_pkcs8_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_get0_pkcs8)} + PKCS12_SAFEBAG_get0_pkcs8 := @_PKCS12_SAFEBAG_get0_pkcs8 + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_get0_pkcs8)} + PKCS12_SAFEBAG_get0_pkcs8 := @ERR_PKCS12_SAFEBAG_get0_pkcs8 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_get0_pkcs8) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_get0_pkcs8'); + end; + + + if not assigned(PKCS12_SAFEBAG_create_cert) then + begin + {$if declared(PKCS12_SAFEBAG_create_cert_introduced)} + if LibVersion < PKCS12_SAFEBAG_create_cert_introduced then + {$if declared(FC_PKCS12_SAFEBAG_create_cert)} + PKCS12_SAFEBAG_create_cert := @FC_PKCS12_SAFEBAG_create_cert + {$else} + PKCS12_SAFEBAG_create_cert := @ERR_PKCS12_SAFEBAG_create_cert + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_create_cert_removed)} + if PKCS12_SAFEBAG_create_cert_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_create_cert)} + PKCS12_SAFEBAG_create_cert := @_PKCS12_SAFEBAG_create_cert + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_create_cert)} + PKCS12_SAFEBAG_create_cert := @ERR_PKCS12_SAFEBAG_create_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_create_cert) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_create_cert'); + end; + + + if not assigned(PKCS12_SAFEBAG_create_crl) then + begin + {$if declared(PKCS12_SAFEBAG_create_crl_introduced)} + if LibVersion < PKCS12_SAFEBAG_create_crl_introduced then + {$if declared(FC_PKCS12_SAFEBAG_create_crl)} + PKCS12_SAFEBAG_create_crl := @FC_PKCS12_SAFEBAG_create_crl + {$else} + PKCS12_SAFEBAG_create_crl := @ERR_PKCS12_SAFEBAG_create_crl + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_create_crl_removed)} + if PKCS12_SAFEBAG_create_crl_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_create_crl)} + PKCS12_SAFEBAG_create_crl := @_PKCS12_SAFEBAG_create_crl + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_create_crl)} + PKCS12_SAFEBAG_create_crl := @ERR_PKCS12_SAFEBAG_create_crl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_create_crl) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_create_crl'); + end; + + + if not assigned(PKCS12_SAFEBAG_create0_p8inf) then + begin + {$if declared(PKCS12_SAFEBAG_create0_p8inf_introduced)} + if LibVersion < PKCS12_SAFEBAG_create0_p8inf_introduced then + {$if declared(FC_PKCS12_SAFEBAG_create0_p8inf)} + PKCS12_SAFEBAG_create0_p8inf := @FC_PKCS12_SAFEBAG_create0_p8inf + {$else} + PKCS12_SAFEBAG_create0_p8inf := @ERR_PKCS12_SAFEBAG_create0_p8inf + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_create0_p8inf_removed)} + if PKCS12_SAFEBAG_create0_p8inf_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_create0_p8inf)} + PKCS12_SAFEBAG_create0_p8inf := @_PKCS12_SAFEBAG_create0_p8inf + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_create0_p8inf)} + PKCS12_SAFEBAG_create0_p8inf := @ERR_PKCS12_SAFEBAG_create0_p8inf + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_create0_p8inf) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_create0_p8inf'); + end; + + + if not assigned(PKCS12_SAFEBAG_create0_pkcs8) then + begin + {$if declared(PKCS12_SAFEBAG_create0_pkcs8_introduced)} + if LibVersion < PKCS12_SAFEBAG_create0_pkcs8_introduced then + {$if declared(FC_PKCS12_SAFEBAG_create0_pkcs8)} + PKCS12_SAFEBAG_create0_pkcs8 := @FC_PKCS12_SAFEBAG_create0_pkcs8 + {$else} + PKCS12_SAFEBAG_create0_pkcs8 := @ERR_PKCS12_SAFEBAG_create0_pkcs8 + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_create0_pkcs8_removed)} + if PKCS12_SAFEBAG_create0_pkcs8_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_create0_pkcs8)} + PKCS12_SAFEBAG_create0_pkcs8 := @_PKCS12_SAFEBAG_create0_pkcs8 + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_create0_pkcs8)} + PKCS12_SAFEBAG_create0_pkcs8 := @ERR_PKCS12_SAFEBAG_create0_pkcs8 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_create0_pkcs8) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_create0_pkcs8'); + end; + + + if not assigned(PKCS12_SAFEBAG_create_pkcs8_encrypt) then + begin + {$if declared(PKCS12_SAFEBAG_create_pkcs8_encrypt_introduced)} + if LibVersion < PKCS12_SAFEBAG_create_pkcs8_encrypt_introduced then + {$if declared(FC_PKCS12_SAFEBAG_create_pkcs8_encrypt)} + PKCS12_SAFEBAG_create_pkcs8_encrypt := @FC_PKCS12_SAFEBAG_create_pkcs8_encrypt + {$else} + PKCS12_SAFEBAG_create_pkcs8_encrypt := @ERR_PKCS12_SAFEBAG_create_pkcs8_encrypt + {$ifend} + else + {$ifend} + {$if declared(PKCS12_SAFEBAG_create_pkcs8_encrypt_removed)} + if PKCS12_SAFEBAG_create_pkcs8_encrypt_removed <= LibVersion then + {$if declared(_PKCS12_SAFEBAG_create_pkcs8_encrypt)} + PKCS12_SAFEBAG_create_pkcs8_encrypt := @_PKCS12_SAFEBAG_create_pkcs8_encrypt + {$else} + {$IF declared(ERR_PKCS12_SAFEBAG_create_pkcs8_encrypt)} + PKCS12_SAFEBAG_create_pkcs8_encrypt := @ERR_PKCS12_SAFEBAG_create_pkcs8_encrypt + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_SAFEBAG_create_pkcs8_encrypt) and Assigned(AFailed) then + AFailed.Add('PKCS12_SAFEBAG_create_pkcs8_encrypt'); + end; + + + if not assigned(PKCS8_set0_pbe) then + begin + {$if declared(PKCS8_set0_pbe_introduced)} + if LibVersion < PKCS8_set0_pbe_introduced then + {$if declared(FC_PKCS8_set0_pbe)} + PKCS8_set0_pbe := @FC_PKCS8_set0_pbe + {$else} + PKCS8_set0_pbe := @ERR_PKCS8_set0_pbe + {$ifend} + else + {$ifend} + {$if declared(PKCS8_set0_pbe_removed)} + if PKCS8_set0_pbe_removed <= LibVersion then + {$if declared(_PKCS8_set0_pbe)} + PKCS8_set0_pbe := @_PKCS8_set0_pbe + {$else} + {$IF declared(ERR_PKCS8_set0_pbe)} + PKCS8_set0_pbe := @ERR_PKCS8_set0_pbe + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS8_set0_pbe) and Assigned(AFailed) then + AFailed.Add('PKCS8_set0_pbe'); + end; + + + if not assigned(PKCS12_add_friendlyname_utf8) then + begin + {$if declared(PKCS12_add_friendlyname_utf8_introduced)} + if LibVersion < PKCS12_add_friendlyname_utf8_introduced then + {$if declared(FC_PKCS12_add_friendlyname_utf8)} + PKCS12_add_friendlyname_utf8 := @FC_PKCS12_add_friendlyname_utf8 + {$else} + PKCS12_add_friendlyname_utf8 := @ERR_PKCS12_add_friendlyname_utf8 + {$ifend} + else + {$ifend} + {$if declared(PKCS12_add_friendlyname_utf8_removed)} + if PKCS12_add_friendlyname_utf8_removed <= LibVersion then + {$if declared(_PKCS12_add_friendlyname_utf8)} + PKCS12_add_friendlyname_utf8 := @_PKCS12_add_friendlyname_utf8 + {$else} + {$IF declared(ERR_PKCS12_add_friendlyname_utf8)} + PKCS12_add_friendlyname_utf8 := @ERR_PKCS12_add_friendlyname_utf8 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_add_friendlyname_utf8) and Assigned(AFailed) then + AFailed.Add('PKCS12_add_friendlyname_utf8'); + end; + + + if not assigned(PKCS12_key_gen_utf8) then + begin + {$if declared(PKCS12_key_gen_utf8_introduced)} + if LibVersion < PKCS12_key_gen_utf8_introduced then + {$if declared(FC_PKCS12_key_gen_utf8)} + PKCS12_key_gen_utf8 := @FC_PKCS12_key_gen_utf8 + {$else} + PKCS12_key_gen_utf8 := @ERR_PKCS12_key_gen_utf8 + {$ifend} + else + {$ifend} + {$if declared(PKCS12_key_gen_utf8_removed)} + if PKCS12_key_gen_utf8_removed <= LibVersion then + {$if declared(_PKCS12_key_gen_utf8)} + PKCS12_key_gen_utf8 := @_PKCS12_key_gen_utf8 + {$else} + {$IF declared(ERR_PKCS12_key_gen_utf8)} + PKCS12_key_gen_utf8 := @ERR_PKCS12_key_gen_utf8 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS12_key_gen_utf8) and Assigned(AFailed) then + AFailed.Add('PKCS12_key_gen_utf8'); + end; + + + if not assigned(OPENSSL_utf82uni) then + begin + {$if declared(OPENSSL_utf82uni_introduced)} + if LibVersion < OPENSSL_utf82uni_introduced then + {$if declared(FC_OPENSSL_utf82uni)} + OPENSSL_utf82uni := @FC_OPENSSL_utf82uni + {$else} + OPENSSL_utf82uni := @ERR_OPENSSL_utf82uni + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_utf82uni_removed)} + if OPENSSL_utf82uni_removed <= LibVersion then + {$if declared(_OPENSSL_utf82uni)} + OPENSSL_utf82uni := @_OPENSSL_utf82uni + {$else} + {$IF declared(ERR_OPENSSL_utf82uni)} + OPENSSL_utf82uni := @ERR_OPENSSL_utf82uni + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_utf82uni) and Assigned(AFailed) then + AFailed.Add('OPENSSL_utf82uni'); + end; + + + if not assigned(OPENSSL_uni2utf8) then + begin + {$if declared(OPENSSL_uni2utf8_introduced)} + if LibVersion < OPENSSL_uni2utf8_introduced then + {$if declared(FC_OPENSSL_uni2utf8)} + OPENSSL_uni2utf8 := @FC_OPENSSL_uni2utf8 + {$else} + OPENSSL_uni2utf8 := @ERR_OPENSSL_uni2utf8 + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_uni2utf8_removed)} + if OPENSSL_uni2utf8_removed <= LibVersion then + {$if declared(_OPENSSL_uni2utf8)} + OPENSSL_uni2utf8 := @_OPENSSL_uni2utf8 + {$else} + {$IF declared(ERR_OPENSSL_uni2utf8)} + OPENSSL_uni2utf8 := @ERR_OPENSSL_uni2utf8 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_uni2utf8) and Assigned(AFailed) then + AFailed.Add('OPENSSL_uni2utf8'); + end; + + +end; + +procedure Unload; +begin + PKCS12_mac_present := nil; {introduced 1.1.0} + PKCS12_get0_mac := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get0_attr := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get0_type := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get_nid := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get_bag_nid := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get1_cert := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get1_crl := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get0_p8inf := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_get0_pkcs8 := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_create_cert := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_create_crl := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_create0_p8inf := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_create0_pkcs8 := nil; {introduced 1.1.0} + PKCS12_SAFEBAG_create_pkcs8_encrypt := nil; {introduced 1.1.0} + PKCS12_item_pack_safebag := nil; + PKCS8_decrypt := nil; + PKCS12_decrypt_skey := nil; + PKCS8_encrypt := nil; + PKCS8_set0_pbe := nil; {introduced 1.1.0} + PKCS12_add_localkeyid := nil; + PKCS12_add_friendlyname_asc := nil; + PKCS12_add_friendlyname_utf8 := nil; {introduced 1.1.0} + PKCS12_add_CSPName_asc := nil; + PKCS12_add_friendlyname_uni := nil; + PKCS8_add_keyusage := nil; + PKCS12_get_friendlyname := nil; + PKCS12_pbe_crypt := nil; + PKCS12_item_decrypt_d2i := nil; + PKCS12_item_i2d_encrypt := nil; + PKCS12_init := nil; + PKCS12_key_gen_asc := nil; + PKCS12_key_gen_uni := nil; + PKCS12_key_gen_utf8 := nil; {introduced 1.1.0} + PKCS12_PBE_keyivgen := nil; + PKCS12_gen_mac := nil; + PKCS12_verify_mac := nil; + PKCS12_set_mac := nil; + PKCS12_setup_mac := nil; + OPENSSL_asc2uni := nil; + OPENSSL_uni2asc := nil; + OPENSSL_utf82uni := nil; {introduced 1.1.0} + OPENSSL_uni2utf8 := nil; {introduced 1.1.0} + PKCS12_new := nil; + PKCS12_free := nil; + d2i_PKCS12 := nil; + i2d_PKCS12 := nil; + PKCS12_it := nil; + PKCS12_MAC_DATA_new := nil; + PKCS12_MAC_DATA_free := nil; + d2i_PKCS12_MAC_DATA := nil; + i2d_PKCS12_MAC_DATA := nil; + PKCS12_MAC_DATA_it := nil; + PKCS12_SAFEBAG_new := nil; + PKCS12_SAFEBAG_free := nil; + d2i_PKCS12_SAFEBAG := nil; + i2d_PKCS12_SAFEBAG := nil; + PKCS12_SAFEBAG_it := nil; + PKCS12_BAGS_new := nil; + PKCS12_BAGS_free := nil; + d2i_PKCS12_BAGS := nil; + i2d_PKCS12_BAGS := nil; + PKCS12_BAGS_it := nil; + PKCS12_PBE_add := nil; + PKCS12_parse := nil; + PKCS12_create := nil; + i2d_PKCS12_bio := nil; + d2i_PKCS12_bio := nil; + PKCS12_newpass := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs7.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs7.pas new file mode 100644 index 000000000..1f6b34208 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs7.pas @@ -0,0 +1,663 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_pkcs7.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_pkcs7.h2pas + and this file regenerated. IdOpenSSLHeaders_pkcs7.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_pkcs7; + +interface + +// Headers for OpenSSL 1.1.1 +// pkcs7.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + PKCS7_S_HEADER = 0; + PKCS7_S_BODY = 1; + PKCS7_S_TAIL = 2; + + PKCS7_OP_SET_DETACHED_SIGNATURE = 1; + PKCS7_OP_GET_DETACHED_SIGNATURE = 2; + + (* S/MIME related flags *) + PKCS7_TEXT = $1; + PKCS7_NOCERTS = $2; + PKCS7_NOSIGS = $4; + PKCS7_NOCHAIN = $8; + PKCS7_NOINTERN = $10; + PKCS7_NOVERIFY = $20; + PKCS7_DETACHED = $40; + PKCS7_BINARY = $80; + PKCS7_NOATTR = $100; + PKCS7_NOSMIMECAP = $200; + PKCS7_NOOLDMIMETYPE = $400; + PKCS7_CRLFEOL = $800; + // Added '_CONST' to avoid name clashes + PKCS7_STREAM_CONST = $1000; + PKCS7_NOCRL = $2000; + PKCS7_PARTIAL = $4000; + PKCS7_REUSE_DIGEST = $8000; + PKCS7_NO_DUAL_CONTENT = $10000; + + (* Flags: for compatibility with older code *) + SMIME_TEXT = PKCS7_TEXT; + SMIME_NOCERTS = PKCS7_NOCERTS; + SMIME_NOSIGS = PKCS7_NOSIGS; + SMIME_NOCHAIN = PKCS7_NOCHAIN; + SMIME_NOINTERN = PKCS7_NOINTERN; + SMIME_NOVERIFY = PKCS7_NOVERIFY; + SMIME_DETACHED = PKCS7_DETACHED; + SMIME_BINARY = PKCS7_BINARY; + SMIME_NOATTR = PKCS7_NOATTR; + + (* CRLF ASCII canonicalisation *) + SMIME_ASCIICRLF = $80000; + +type + PPKCS7 = ^PKCS7; + PPPKCS7 = ^PPKCS7; + + PPKCS7_DIGEST = ^PKCS7_DIGEST; + PPPKCS7_DIGEST = ^PPKCS7_DIGEST; + + pkcs7_issuer_and_serial_st = record + issue: PX509_NAME; + serial: PASN1_INTEGER; + end; + PKCS7_ISSUER_AND_SERIAL = pkcs7_issuer_and_serial_st; + PPKCS7_ISSUER_AND_SERIAL = ^PKCS7_ISSUER_AND_SERIAL; + PPPKCS7_ISSUER_AND_SERIAL = ^PPKCS7_ISSUER_AND_SERIAL; + + pkcs7_signer_info_st = record + version: PASN1_INTEGER; + issuer_and_serial: PPKCS7_ISSUER_AND_SERIAL; + digest_alg: PX509_ALGOR; + auth_attr: Pointer; //PSTACK_OF_X509_ATTRIBUTE; + digest_enc_alg: PX509_ALGOR; + enc_digest: PASN1_OCTET_STRING; + unauth_attr: Pointer; //PSTACK_OF_X509_ATTRIBUTE; + pkey: PEVP_PKEY; + end; + PKCS7_SIGNER_INFO = pkcs7_issuer_and_serial_st; + PPKCS7_SIGNER_INFO = ^PKCS7_SIGNER_INFO; + PPPKCS7_SIGNER_INFO = ^PPKCS7_SIGNER_INFO; + + pkcs7_recip_info_st = record + version: PASN1_INTEGER; + issuer_and_serial: PPKCS7_ISSUER_AND_SERIAL; + key_enc_algor: PX509_ALGOR; + enc_key: PASN1_OCTET_STRING; + cert: PX509; + end; + PKCS7_RECIP_INFO = pkcs7_recip_info_st; + PPKCS7_RECIP_INFO = ^PKCS7_RECIP_INFO; + PPPKCS7_RECIP_INFO = ^PPKCS7_RECIP_INFO; + + pkcs7_signed_st = record + version: PASN1_INTEGER; + md_algs: Pointer; //PSTACK_OF_X509_ALGOR; + cert: Pointer; //PSTACK_OF_X509; + crl: Pointer; //PSTACK_OF_X509_CRL; + signer_info: Pointer; //PSTACK_OF_PKCS7_SIGNER_INFO; + contents: PPKCS7; + end; + PKCS7_SIGNED = pkcs7_signed_st; + PPKCS7_SIGNED = ^PKCS7_SIGNED; + PPPKCS7_SIGNED = ^PPKCS7_SIGNED; + + pkcs7_enc_content_st = record + content_type: PASN1_OBJECT; + algorithm: PX509_ALGOR; + enc_data: PASN1_OCTET_STRING; + cipher: PEVP_CIPHER; + end; + PKCS7_ENC_CONTENT = pkcs7_enc_content_st; + PPKCS7_ENC_CONTENT = ^PKCS7_ENC_CONTENT; + PPPKCS7_ENC_CONTENT = ^PPKCS7_ENC_CONTENT; + + pkcs7_enveloped_st = record + version: PASN1_INTEGER; + recipientinfo: Pointer; //PSTACK_OF_PKCS7_RECIP_INFO; + enc_data: PPKCS7_ENC_CONTENT; + end; + PKCS7_ENVELOPE = pkcs7_enveloped_st; + PPKCS7_ENVELOPE = ^PKCS7_ENVELOPE; + PPPKCS7_ENVELOPE = ^PPKCS7_ENVELOPE; + + pkcs7_signedandenveloped_st = record + version: PASN1_INTEGER; + md_algs: Pointer; //PSTACK_OF_X509_ALGOR; + cert: Pointer; //PSTACK_OF_X509; + crl: Pointer; //PSTACK_OF_X509_CRL; + signer_info: Pointer; //PSTACK_OF_PKCS7_SIGNER_INFO; + enc_data: PPKCS7_ENC_CONTENT; + recipientinfo: Pointer; //PSTACK_OF_PKCS7_RECIP_INFO; + end; + PKCS7_SIGN_ENVELOPE = pkcs7_signedandenveloped_st; + PPKCS7_SIGN_ENVELOPE = ^PKCS7_SIGN_ENVELOPE; + PPPKCS7_SIGN_ENVELOPE = ^PPKCS7_SIGN_ENVELOPE; + + pkcs7_encrypted_st = record + version: PASN1_INTEGER; + enc_data: PPKCS7_ENC_CONTENT; + end; + // Added '_STRUCT' to avoid name clashes + PKCS7_ENCRYPT_STRUCT = pkcs7_encrypted_st; + PPKCS7_ENCRYPT_STRUCT = ^PKCS7_ENCRYPT_STRUCT; + PPPKCS7_ENCRYPT_STRUCT = ^PPKCS7_ENCRYPT_STRUCT; + + pkcs7_st_d = record + case Integer of + 0: (ptr: PIdAnsiChar); + 1: (data: PASN1_OCTET_STRING); + 2: (sign: PPKCS7_SIGNED); + 3: (enveloped: PPKCS7_ENVELOPE); + 4: (signed_and_enveloped: PPKCS7_SIGN_ENVELOPE); + 5: (digest: PPKCS7_DIGEST); + 6: (encrypted: PPKCS7_ENCRYPT_STRUCT); + 7: (other: PASN1_TYPE); + end; + pkcs7_st = record + asn1: PByte; + length: TIdC_LONG; + state: TIdC_INT; + detached: TIdC_INT; + type_: PASN1_OBJECT; + d: pkcs7_st_d; + end; + PKCS7 = pkcs7_st; + + pkcs7_digest_st = record + version: PASN1_INTEGER; + md: PX509_ALGOR; + contents: PPKCS7; + digest: PASN1_OCTET_STRING; + end; + PKCS7_DIGEST = pkcs7_digest_st; + + //function PKCS7_ISSUER_AND_SERIAL_new: PPKCS7_ISSUER_AND_SERIAL; + //procedure PKCS7_ISSUER_AND_SERIAL_free(a: PPKCS7_ISSUER_AND_SERIAL); + //function d2i_PKCS7_ISSUER_AND_SERIAL(a: PPPKCS7_ISSUER_AND_SERIAL; const in_: PByte; len: TIdC_LONG): PPKCS7_ISSUER_AND_SERIAL; + //function i2d_PKCS7_ISSUER_AND_SERIAL(const a: PPKCS7_ISSUER_AND_SERIAL; out_: PByte): TIdC_INT; + //function PKCS7_ISSUER_AND_SERIAL_it: PASN1_ITEM; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM PKCS7_ISSUER_AND_SERIAL_digest} + {$EXTERNALSYM PKCS7_dup} + {$EXTERNALSYM d2i_PKCS7_bio} + {$EXTERNALSYM i2d_PKCS7_bio} + {$EXTERNALSYM i2d_PKCS7_bio_stream} + {$EXTERNALSYM PEM_write_bio_PKCS7_stream} + {$EXTERNALSYM PKCS7_ctrl} + {$EXTERNALSYM PKCS7_set_type} + {$EXTERNALSYM PKCS7_set0_type_other} + {$EXTERNALSYM PKCS7_set_content} + {$EXTERNALSYM PKCS7_SIGNER_INFO_set} + {$EXTERNALSYM PKCS7_SIGNER_INFO_sign} + {$EXTERNALSYM PKCS7_add_signer} + {$EXTERNALSYM PKCS7_add_certificate} + {$EXTERNALSYM PKCS7_add_crl} + {$EXTERNALSYM PKCS7_content_new} + {$EXTERNALSYM PKCS7_dataVerify} + {$EXTERNALSYM PKCS7_signatureVerify} + {$EXTERNALSYM PKCS7_dataInit} + {$EXTERNALSYM PKCS7_dataFinal} + {$EXTERNALSYM PKCS7_dataDecode} + {$EXTERNALSYM PKCS7_add_signature} + {$EXTERNALSYM PKCS7_cert_from_signer_info} + {$EXTERNALSYM PKCS7_set_digest} + {$EXTERNALSYM PKCS7_add_recipient} + {$EXTERNALSYM PKCS7_SIGNER_INFO_get0_algs} + {$EXTERNALSYM PKCS7_RECIP_INFO_get0_alg} + {$EXTERNALSYM PKCS7_add_recipient_info} + {$EXTERNALSYM PKCS7_RECIP_INFO_set} + {$EXTERNALSYM PKCS7_set_cipher} + {$EXTERNALSYM PKCS7_stream} + {$EXTERNALSYM PKCS7_get_issuer_and_serial} + {$EXTERNALSYM PKCS7_add_signed_attribute} + {$EXTERNALSYM PKCS7_add_attribute} + {$EXTERNALSYM PKCS7_get_attribute} + {$EXTERNALSYM PKCS7_get_signed_attribute} + {$EXTERNALSYM PKCS7_sign_add_signer} + {$EXTERNALSYM PKCS7_final} + {$EXTERNALSYM PKCS7_decrypt} + {$EXTERNALSYM PKCS7_add_attrib_content_type} + {$EXTERNALSYM PKCS7_add0_attrib_signing_time} + {$EXTERNALSYM PKCS7_add1_attrib_digest} + {$EXTERNALSYM SMIME_write_PKCS7} + {$EXTERNALSYM SMIME_read_PKCS7} + {$EXTERNALSYM BIO_new_PKCS7} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + PKCS7_ISSUER_AND_SERIAL_digest: function(data: PPKCS7_ISSUER_AND_SERIAL; const type_: PEVP_MD; md: PByte; len: PIdC_UINT): TIdC_INT; cdecl = nil; + + PKCS7_dup: function(p7: PPKCS7): PPKCS7; cdecl = nil; + d2i_PKCS7_bio: function(bp: PBIO; p7: PPPKCS7): PPKCS7; cdecl = nil; + i2d_PKCS7_bio: function(bp: PBIO; p7: PPKCS7): TIdC_INT; cdecl = nil; + i2d_PKCS7_bio_stream: function(out_: PBIO; p7: PPKCS7; in_: PBIO; flags: TIdC_INT): TIdC_INT; cdecl = nil; + PEM_write_bio_PKCS7_stream: function(out_: PBIO; p7: PPKCS7; in_: PBIO; flags: TIdC_INT): TIdC_INT; cdecl = nil; + +// function PKCS7_SIGNER_INFO_new: PPKCS7_SIGNER_INFO; +// procedure PKCS7_SIGNER_INFO_free(a: PPKCS7_SIGNER_INFO); +// function d2i_PKCS7_SIGNER_INFO(a: PPPKCS7_SIGNER_INFO; const in_: PByte; len: TIdC_LONG): PPKCS7_SIGNER_INFO; +// function i2d_PKCS7_SIGNER_INFO(const a: PPKCS7_SIGNER_INFO; out_: PByte): TIdC_INT; +// function PKCS7_SIGNER_INFO_it: PASN1_ITEM; +// +// function PKCS7_RECIP_INFO_new: PPKCS7_RECIP_INFO; +// procedure PKCS7_RECIP_INFO_free(a: PPKCS7_RECIP_INFO); +// function d2i_PKCS7_RECIP_INFO(a: PPPKCS7_RECIP_INFO; const in_: PByte; len: TIdC_LONG): PPKCS7_RECIP_INFO; +// function i2d_PKCS7_RECIP_INFO(const a: PPKCS7_RECIP_INFO; out_: PByte): TIdC_INT; +// function PKCS7_RECIP_INFO_it: PASN1_ITEM; +// +// function PKCS7_SIGNED_new: PPKCS7_SIGNED; +// procedure PKCS7_SIGNED_free(a: PPKCS7_SIGNED); +// function d2i_PKCS7_SIGNED(a: PPPKCS7_SIGNED; const in_: PByte; len: TIdC_LONG): PPKCS7_SIGNED; +// function i2d_PKCS7_SIGNED(const a: PPKCS7_SIGNED; out_: PByte): TIdC_INT; +// function PKCS7_SIGNED_it: PASN1_ITEM; +// +// function PKCS7_ENC_CONTENT_new: PPKCS7_ENC_CONTENT; +// procedure PKCS7_ENC_CONTENT_free(a: PPKCS7_ENC_CONTENT); +// function d2i_PKCS7_ENC_CONTENT(a: PPPKCS7_ENC_CONTENT; const in_: PByte; len: TIdC_LONG): PPKCS7_ENC_CONTENT; +// function i2d_PKCS7_ENC_CONTENT(const a: PPKCS7_ENC_CONTENT; out_: PByte): TIdC_INT; +// function PKCS7_ENC_CONTENT_it: PASN1_ITEM; +// +// function PKCS7_ENVELOPE_new: PPKCS7_ENVELOPE; +// procedure PKCS7_ENVELOPE_free(a: PPKCS7_ENVELOPE); +// function d2i_PKCS7_ENVELOPE(a: PPPKCS7_ENVELOPE; const in_: PByte; len: TIdC_LONG): PPKCS7_ENVELOPE; +// function i2d_PKCS7_ENVELOPE(const a: PPKCS7_ENVELOPE; out_: PByte): TIdC_INT; +// function PKCS7_ENVELOPE_it: PASN1_ITEM; +// +// function PKCS7_SIGN_ENVELOPE_new: PPKCS7_SIGN_ENVELOPE; +// procedure PKCS7_SIGN_ENVELOPE_free(a: PPKCS7_SIGN_ENVELOPE); +// function d2i_PKCS7_SIGN_ENVELOPE(a: PPPKCS7_SIGN_ENVELOPE; const in_: PByte; len: TIdC_LONG): PPKCS7_SIGN_ENVELOPE; +// function i2d_PKCS7_SIGN_ENVELOPE(const a: PPKCS7_SIGN_ENVELOPE; out_: PByte): TIdC_INT; +// function PKCS7_SIGN_ENVELOPE_it: PASN1_ITEM; +// +// function PKCS7_DIGEST_new: PPKCS7_DIGEST; +// procedure PKCS7_DIGEST_free(a: PPKCS7_DIGEST); +// function d2i_PKCS7_DIGEST(a: PPPKCS7_DIGEST; const in_: PByte; len: TIdC_LONG): PPKCS7_DIGEST; +// function i2d_PKCS7_DIGEST(const a: PPKCS7_DIGEST; out_: PByte): TIdC_INT; +// function PKCS7_DIGEST_it: PASN1_ITEM; +// +// function PKCS7_ENCRYPT_new: PPKCS7_ENCRYPT_STRUCT; +// procedure PKCS7_ENCRYPT_free(a: PPKCS7_ENCRYPT_STRUCT); +// function d2i_PKCS7_ENCRYPT(a: PPPKCS7_ENCRYPT_STRUCT; const in_: PByte; len: TIdC_LONG): PPKCS7_ENCRYPT_STRUCT; +// function i2d_PKCS7_ENCRYPT(const a: PPKCS7_ENCRYPT_STRUCT; out_: PByte): TIdC_INT; +// function PKCS7_ENCRYPT_it: PASN1_ITEM; +// +// function PKCS7_new: PPKCS7; +// procedure PKCS7_free(a: PPKCS7); +// function d2i_PKCS7(a: PPPKCS7; const in_: PByte; len: TIdC_LONG): PPKCS7; +// function i2d_PKCS7(const a: PPKCS7; out_: PByte): TIdC_INT; +// function PKCS7_it: PASN1_ITEM; +// +// function PKCS7_ATTR_SIGN_it: PASN1_ITEM; +// +// function PKCS7_ATTR_VERIFY_it: PASN1_ITEM; +// +// function i2d_PKCS7_NDEF(const a: PPKCS7; out_: PPByte): TIdC_INT; +// function PKCS7_print_ctx(out_: PBIO; const x: PPKCS7; indent: TIdC_INT; const pctx: PASN1_PCTX): TIdC_INT; + + PKCS7_ctrl: function(p7: PPKCS7; cmd: TIdC_INT; larg: TIdC_LONG; parg: PIdAnsiChar): TIdC_LONG; cdecl = nil; + + PKCS7_set_type: function(p7: PPKCS7; type_: TIdC_INT): TIdC_INT; cdecl = nil; + PKCS7_set0_type_other: function(p7: PPKCS7; type_: TIdC_INT; other: PASN1_TYPE): TIdC_INT; cdecl = nil; + PKCS7_set_content: function(p7: PPKCS7; p7_data: PPKCS7): TIdC_INT; cdecl = nil; + PKCS7_SIGNER_INFO_set: function(p7i: PPKCS7_SIGNER_INFO; x509: PX509; pkey: PEVP_PKEY; const dgst: PEVP_MD): TIdC_INT; cdecl = nil; + PKCS7_SIGNER_INFO_sign: function(si: PPKCS7_SIGNER_INFO): TIdC_INT; cdecl = nil; + PKCS7_add_signer: function(p7: PPKCS7; p7i: PPKCS7_SIGNER_INFO): TIdC_INT; cdecl = nil; + PKCS7_add_certificate: function(p7: PPKCS7; x509: PX509): TIdC_INT; cdecl = nil; + PKCS7_add_crl: function(p7: PPKCS7; x509: PX509_CRL): TIdC_INT; cdecl = nil; + PKCS7_content_new: function(p7: PPKCS7; nid: TIdC_INT): TIdC_INT; cdecl = nil; + PKCS7_dataVerify: function(cert_store: PX509_STORE; ctx: PX509_STORE_CTX; bio: PBIO; p7: PPKCS7; si: PPKCS7_SIGNER_INFO): TIdC_INT; cdecl = nil; + PKCS7_signatureVerify: function(bio: PBIO; p7: PPKCS7; si: PPKCS7_SIGNER_INFO; x509: PX509): TIdC_INT; cdecl = nil; + + PKCS7_dataInit: function(p7: PPKCS7; bio: PBIO): PBIO; cdecl = nil; + PKCS7_dataFinal: function(p7: PPKCS7; bio: PBIO): TIdC_INT; cdecl = nil; + PKCS7_dataDecode: function(p7: PPKCS7; pkey: PEVP_PKEY; in_bio: PBIO; pcert: PX509): PBIO; cdecl = nil; + + PKCS7_add_signature: function(p7: PPKCS7; x509: PX509; pkey: PEVP_PKEY; const dgst: PEVP_MD): PPKCS7_SIGNER_INFO; cdecl = nil; + PKCS7_cert_from_signer_info: function(p7: PPKCS7; si: PPKCS7_SIGNER_INFO): PX509; cdecl = nil; + PKCS7_set_digest: function(p7: PPKCS7; const md: PEVP_MD): TIdC_INT; cdecl = nil; +// function PKCS7_get_signer_info(p7: PPKCS7): PSTACK_OF_PKCS7_SIGNER_INFO; + + PKCS7_add_recipient: function(p7: PPKCS7; x509: PX509): PPKCS7_RECIP_INFO; cdecl = nil; + PKCS7_SIGNER_INFO_get0_algs: procedure(si: PPKCS7_SIGNER_INFO; pk: PPEVP_PKEY; pdig: PPX509_ALGOR; psig: PPX509_ALGOR); cdecl = nil; + PKCS7_RECIP_INFO_get0_alg: procedure(ri: PPKCS7_RECIP_INFO; penc: PPX509_ALGOR); cdecl = nil; + PKCS7_add_recipient_info: function(p7: PPKCS7; ri: PPKCS7_RECIP_INFO): TIdC_INT; cdecl = nil; + PKCS7_RECIP_INFO_set: function(p7i: PPKCS7_RECIP_INFO; x509: PX509): TIdC_INT; cdecl = nil; + PKCS7_set_cipher: function(p7: PPKCS7; const cipher: PEVP_CIPHER): TIdC_INT; cdecl = nil; + PKCS7_stream: function(boundary: PPPByte; p7: PPKCS7): TIdC_INT; cdecl = nil; + + PKCS7_get_issuer_and_serial: function(p7: PPKCS7; idx: TIdC_INT): PPKCS7_ISSUER_AND_SERIAL; cdecl = nil; + //function PKCS7_digest_from_attributes(sk: Pointer{PSTACK_OF_X509_ATTRIBUTE}): PASN1_OCTET_STRING; + PKCS7_add_signed_attribute: function(p7si: PPKCS7_SIGNER_INFO; nid: TIdC_INT; type_: TIdC_INT; data: Pointer): TIdC_INT; cdecl = nil; + PKCS7_add_attribute: function(p7si: PPKCS7_SIGNER_INFO; nid: TIdC_INT; atrtype: TIdC_INT; value: Pointer): TIdC_INT; cdecl = nil; + PKCS7_get_attribute: function(si: PPKCS7_SIGNER_INFO; nid: TIdC_INT): PASN1_TYPE; cdecl = nil; + PKCS7_get_signed_attribute: function(si: PPKCS7_SIGNER_INFO; nid: TIdC_INT): PASN1_TYPE; cdecl = nil; + //function PKCS7_set_signed_attributes(p7si: PPKCS7_SIGNER_INFO; sk: PSTACK_OF_X509): TIdC_INT; + //function PKCS7_set_attributes(p7si: PPKCS7_SIGNER_INFO; sk: PSTACK_OF_X509_ATTRIBUTE): TIdC_INT; + + //function PKCS7_sign(signcert: PX509; pkey: PEVP_PKEY; certs: PSTACK_OF_X509; data: PBIO; flags: TIdC_INT): PPKCS7; + + PKCS7_sign_add_signer: function(p7: PPKCS7; signcert: PX509; pkey: PEVP_PKEY; const md: PEVP_MD; flags: TIdC_INT): PPKCS7_SIGNER_INFO; cdecl = nil; + + PKCS7_final: function(p7: PPKCS7; data: PBIO; flags: TIdC_INT): TIdC_INT; cdecl = nil; + //function PKCS7_verify(p7: PPKCS7; certs: PSTACK_OF_X509; store: PX509_STORE; indata: PBIO; out_: PBIO; flags: TIdC_INT): TIdC_INT; + //function PKCS7_get0_signers(p7: PPKCS7; certs: PSTACK_OF_X509; flags: TIdC_INT): PSTACK_OF_X509; + //function PKCS7_encrypt(certs: PSTACK_OF_X509; in_: PBIO; const cipher: PEVP_CIPHER; flags: TIdC_INT): PPKCS7; + PKCS7_decrypt: function(p7: PPKCS7; pkey: PEVP_PKEY; cert: PX509; data: PBIO; flags: TIdC_INT): TIdC_INT; cdecl = nil; + + //function PKCS7_add_attrib_smimecap(si: PPKCS7_SIGNER_INFO; cap: PSTACK_OF_X509_ALGOR): TIdC_INT; + //function PKCS7_get_smimecap(si: PPKCS7_SIGNER_INFO): PSTACK_OF_X509_ALGOR; + //function PKCS7_simple_smimecap(sk: PSTACK_OF_X509_ALGOR; nid: TIdC_INT; arg: TIdC_INT): TIdC_INT; + + PKCS7_add_attrib_content_type: function(si: PPKCS7_SIGNER_INFO; coid: PASN1_OBJECT): TIdC_INT; cdecl = nil; + PKCS7_add0_attrib_signing_time: function(si: PPKCS7_SIGNER_INFO; t: PASN1_TIME): TIdC_INT; cdecl = nil; + PKCS7_add1_attrib_digest: function(si: PPKCS7_SIGNER_INFO; const md: PByte; mdlen: TIdC_INT): TIdC_INT; cdecl = nil; + + SMIME_write_PKCS7: function(bio: PBIO; p7: PPKCS7; data: PBIO; flags: TIdC_INT): TIdC_INT; cdecl = nil; + SMIME_read_PKCS7: function(bio: PBIO; bcont: PPBIO): PPKCS7; cdecl = nil; + + BIO_new_PKCS7: function(out_: PBIO; p7: PPKCS7): PBIO; cdecl = nil; + +{$ELSE} + function PKCS7_ISSUER_AND_SERIAL_digest(data: PPKCS7_ISSUER_AND_SERIAL; const type_: PEVP_MD; md: PByte; len: PIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS7_dup(p7: PPKCS7): PPKCS7 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_PKCS7_bio(bp: PBIO; p7: PPPKCS7): PPKCS7 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PKCS7_bio(bp: PBIO; p7: PPKCS7): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PKCS7_bio_stream(out_: PBIO; p7: PPKCS7; in_: PBIO; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PEM_write_bio_PKCS7_stream(out_: PBIO; p7: PPKCS7; in_: PBIO; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// function PKCS7_SIGNER_INFO_new: PPKCS7_SIGNER_INFO; +// procedure PKCS7_SIGNER_INFO_free(a: PPKCS7_SIGNER_INFO); +// function d2i_PKCS7_SIGNER_INFO(a: PPPKCS7_SIGNER_INFO; const in_: PByte; len: TIdC_LONG): PPKCS7_SIGNER_INFO; +// function i2d_PKCS7_SIGNER_INFO(const a: PPKCS7_SIGNER_INFO; out_: PByte): TIdC_INT; +// function PKCS7_SIGNER_INFO_it: PASN1_ITEM; +// +// function PKCS7_RECIP_INFO_new: PPKCS7_RECIP_INFO; +// procedure PKCS7_RECIP_INFO_free(a: PPKCS7_RECIP_INFO); +// function d2i_PKCS7_RECIP_INFO(a: PPPKCS7_RECIP_INFO; const in_: PByte; len: TIdC_LONG): PPKCS7_RECIP_INFO; +// function i2d_PKCS7_RECIP_INFO(const a: PPKCS7_RECIP_INFO; out_: PByte): TIdC_INT; +// function PKCS7_RECIP_INFO_it: PASN1_ITEM; +// +// function PKCS7_SIGNED_new: PPKCS7_SIGNED; +// procedure PKCS7_SIGNED_free(a: PPKCS7_SIGNED); +// function d2i_PKCS7_SIGNED(a: PPPKCS7_SIGNED; const in_: PByte; len: TIdC_LONG): PPKCS7_SIGNED; +// function i2d_PKCS7_SIGNED(const a: PPKCS7_SIGNED; out_: PByte): TIdC_INT; +// function PKCS7_SIGNED_it: PASN1_ITEM; +// +// function PKCS7_ENC_CONTENT_new: PPKCS7_ENC_CONTENT; +// procedure PKCS7_ENC_CONTENT_free(a: PPKCS7_ENC_CONTENT); +// function d2i_PKCS7_ENC_CONTENT(a: PPPKCS7_ENC_CONTENT; const in_: PByte; len: TIdC_LONG): PPKCS7_ENC_CONTENT; +// function i2d_PKCS7_ENC_CONTENT(const a: PPKCS7_ENC_CONTENT; out_: PByte): TIdC_INT; +// function PKCS7_ENC_CONTENT_it: PASN1_ITEM; +// +// function PKCS7_ENVELOPE_new: PPKCS7_ENVELOPE; +// procedure PKCS7_ENVELOPE_free(a: PPKCS7_ENVELOPE); +// function d2i_PKCS7_ENVELOPE(a: PPPKCS7_ENVELOPE; const in_: PByte; len: TIdC_LONG): PPKCS7_ENVELOPE; +// function i2d_PKCS7_ENVELOPE(const a: PPKCS7_ENVELOPE; out_: PByte): TIdC_INT; +// function PKCS7_ENVELOPE_it: PASN1_ITEM; +// +// function PKCS7_SIGN_ENVELOPE_new: PPKCS7_SIGN_ENVELOPE; +// procedure PKCS7_SIGN_ENVELOPE_free(a: PPKCS7_SIGN_ENVELOPE); +// function d2i_PKCS7_SIGN_ENVELOPE(a: PPPKCS7_SIGN_ENVELOPE; const in_: PByte; len: TIdC_LONG): PPKCS7_SIGN_ENVELOPE; +// function i2d_PKCS7_SIGN_ENVELOPE(const a: PPKCS7_SIGN_ENVELOPE; out_: PByte): TIdC_INT; +// function PKCS7_SIGN_ENVELOPE_it: PASN1_ITEM; +// +// function PKCS7_DIGEST_new: PPKCS7_DIGEST; +// procedure PKCS7_DIGEST_free(a: PPKCS7_DIGEST); +// function d2i_PKCS7_DIGEST(a: PPPKCS7_DIGEST; const in_: PByte; len: TIdC_LONG): PPKCS7_DIGEST; +// function i2d_PKCS7_DIGEST(const a: PPKCS7_DIGEST; out_: PByte): TIdC_INT; +// function PKCS7_DIGEST_it: PASN1_ITEM; +// +// function PKCS7_ENCRYPT_new: PPKCS7_ENCRYPT_STRUCT; +// procedure PKCS7_ENCRYPT_free(a: PPKCS7_ENCRYPT_STRUCT); +// function d2i_PKCS7_ENCRYPT(a: PPPKCS7_ENCRYPT_STRUCT; const in_: PByte; len: TIdC_LONG): PPKCS7_ENCRYPT_STRUCT; +// function i2d_PKCS7_ENCRYPT(const a: PPKCS7_ENCRYPT_STRUCT; out_: PByte): TIdC_INT; +// function PKCS7_ENCRYPT_it: PASN1_ITEM; +// +// function PKCS7_new: PPKCS7; +// procedure PKCS7_free(a: PPKCS7); +// function d2i_PKCS7(a: PPPKCS7; const in_: PByte; len: TIdC_LONG): PPKCS7; +// function i2d_PKCS7(const a: PPKCS7; out_: PByte): TIdC_INT; +// function PKCS7_it: PASN1_ITEM; +// +// function PKCS7_ATTR_SIGN_it: PASN1_ITEM; +// +// function PKCS7_ATTR_VERIFY_it: PASN1_ITEM; +// +// function i2d_PKCS7_NDEF(const a: PPKCS7; out_: PPByte): TIdC_INT; +// function PKCS7_print_ctx(out_: PBIO; const x: PPKCS7; indent: TIdC_INT; const pctx: PASN1_PCTX): TIdC_INT; + + function PKCS7_ctrl(p7: PPKCS7; cmd: TIdC_INT; larg: TIdC_LONG; parg: PIdAnsiChar): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS7_set_type(p7: PPKCS7; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_set0_type_other(p7: PPKCS7; type_: TIdC_INT; other: PASN1_TYPE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_set_content(p7: PPKCS7; p7_data: PPKCS7): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_SIGNER_INFO_set(p7i: PPKCS7_SIGNER_INFO; x509: PX509; pkey: PEVP_PKEY; const dgst: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_SIGNER_INFO_sign(si: PPKCS7_SIGNER_INFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_add_signer(p7: PPKCS7; p7i: PPKCS7_SIGNER_INFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_add_certificate(p7: PPKCS7; x509: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_add_crl(p7: PPKCS7; x509: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_content_new(p7: PPKCS7; nid: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_dataVerify(cert_store: PX509_STORE; ctx: PX509_STORE_CTX; bio: PBIO; p7: PPKCS7; si: PPKCS7_SIGNER_INFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_signatureVerify(bio: PBIO; p7: PPKCS7; si: PPKCS7_SIGNER_INFO; x509: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS7_dataInit(p7: PPKCS7; bio: PBIO): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_dataFinal(p7: PPKCS7; bio: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_dataDecode(p7: PPKCS7; pkey: PEVP_PKEY; in_bio: PBIO; pcert: PX509): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS7_add_signature(p7: PPKCS7; x509: PX509; pkey: PEVP_PKEY; const dgst: PEVP_MD): PPKCS7_SIGNER_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_cert_from_signer_info(p7: PPKCS7; si: PPKCS7_SIGNER_INFO): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_set_digest(p7: PPKCS7; const md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function PKCS7_get_signer_info(p7: PPKCS7): PSTACK_OF_PKCS7_SIGNER_INFO; + + function PKCS7_add_recipient(p7: PPKCS7; x509: PX509): PPKCS7_RECIP_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure PKCS7_SIGNER_INFO_get0_algs(si: PPKCS7_SIGNER_INFO; pk: PPEVP_PKEY; pdig: PPX509_ALGOR; psig: PPX509_ALGOR) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure PKCS7_RECIP_INFO_get0_alg(ri: PPKCS7_RECIP_INFO; penc: PPX509_ALGOR) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_add_recipient_info(p7: PPKCS7; ri: PPKCS7_RECIP_INFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_RECIP_INFO_set(p7i: PPKCS7_RECIP_INFO; x509: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_set_cipher(p7: PPKCS7; const cipher: PEVP_CIPHER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_stream(boundary: PPPByte; p7: PPKCS7): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS7_get_issuer_and_serial(p7: PPKCS7; idx: TIdC_INT): PPKCS7_ISSUER_AND_SERIAL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function PKCS7_digest_from_attributes(sk: Pointer{PSTACK_OF_X509_ATTRIBUTE}): PASN1_OCTET_STRING; + function PKCS7_add_signed_attribute(p7si: PPKCS7_SIGNER_INFO; nid: TIdC_INT; type_: TIdC_INT; data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_add_attribute(p7si: PPKCS7_SIGNER_INFO; nid: TIdC_INT; atrtype: TIdC_INT; value: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_get_attribute(si: PPKCS7_SIGNER_INFO; nid: TIdC_INT): PASN1_TYPE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_get_signed_attribute(si: PPKCS7_SIGNER_INFO; nid: TIdC_INT): PASN1_TYPE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function PKCS7_set_signed_attributes(p7si: PPKCS7_SIGNER_INFO; sk: PSTACK_OF_X509): TIdC_INT; + //function PKCS7_set_attributes(p7si: PPKCS7_SIGNER_INFO; sk: PSTACK_OF_X509_ATTRIBUTE): TIdC_INT; + + //function PKCS7_sign(signcert: PX509; pkey: PEVP_PKEY; certs: PSTACK_OF_X509; data: PBIO; flags: TIdC_INT): PPKCS7; + + function PKCS7_sign_add_signer(p7: PPKCS7; signcert: PX509; pkey: PEVP_PKEY; const md: PEVP_MD; flags: TIdC_INT): PPKCS7_SIGNER_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS7_final(p7: PPKCS7; data: PBIO; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function PKCS7_verify(p7: PPKCS7; certs: PSTACK_OF_X509; store: PX509_STORE; indata: PBIO; out_: PBIO; flags: TIdC_INT): TIdC_INT; + //function PKCS7_get0_signers(p7: PPKCS7; certs: PSTACK_OF_X509; flags: TIdC_INT): PSTACK_OF_X509; + //function PKCS7_encrypt(certs: PSTACK_OF_X509; in_: PBIO; const cipher: PEVP_CIPHER; flags: TIdC_INT): PPKCS7; + function PKCS7_decrypt(p7: PPKCS7; pkey: PEVP_PKEY; cert: PX509; data: PBIO; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //function PKCS7_add_attrib_smimecap(si: PPKCS7_SIGNER_INFO; cap: PSTACK_OF_X509_ALGOR): TIdC_INT; + //function PKCS7_get_smimecap(si: PPKCS7_SIGNER_INFO): PSTACK_OF_X509_ALGOR; + //function PKCS7_simple_smimecap(sk: PSTACK_OF_X509_ALGOR; nid: TIdC_INT; arg: TIdC_INT): TIdC_INT; + + function PKCS7_add_attrib_content_type(si: PPKCS7_SIGNER_INFO; coid: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_add0_attrib_signing_time(si: PPKCS7_SIGNER_INFO; t: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_add1_attrib_digest(si: PPKCS7_SIGNER_INFO; const md: PByte; mdlen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function SMIME_write_PKCS7(bio: PBIO; p7: PPKCS7; data: PBIO; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SMIME_read_PKCS7(bio: PBIO; bcont: PPBIO): PPKCS7 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function BIO_new_PKCS7(out_: PBIO; p7: PPKCS7): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + PKCS7_ISSUER_AND_SERIAL_digest := LoadFunction('PKCS7_ISSUER_AND_SERIAL_digest',AFailed); + PKCS7_dup := LoadFunction('PKCS7_dup',AFailed); + d2i_PKCS7_bio := LoadFunction('d2i_PKCS7_bio',AFailed); + i2d_PKCS7_bio := LoadFunction('i2d_PKCS7_bio',AFailed); + i2d_PKCS7_bio_stream := LoadFunction('i2d_PKCS7_bio_stream',AFailed); + PEM_write_bio_PKCS7_stream := LoadFunction('PEM_write_bio_PKCS7_stream',AFailed); + PKCS7_ctrl := LoadFunction('PKCS7_ctrl',AFailed); + PKCS7_set_type := LoadFunction('PKCS7_set_type',AFailed); + PKCS7_set0_type_other := LoadFunction('PKCS7_set0_type_other',AFailed); + PKCS7_set_content := LoadFunction('PKCS7_set_content',AFailed); + PKCS7_SIGNER_INFO_set := LoadFunction('PKCS7_SIGNER_INFO_set',AFailed); + PKCS7_SIGNER_INFO_sign := LoadFunction('PKCS7_SIGNER_INFO_sign',AFailed); + PKCS7_add_signer := LoadFunction('PKCS7_add_signer',AFailed); + PKCS7_add_certificate := LoadFunction('PKCS7_add_certificate',AFailed); + PKCS7_add_crl := LoadFunction('PKCS7_add_crl',AFailed); + PKCS7_content_new := LoadFunction('PKCS7_content_new',AFailed); + PKCS7_dataVerify := LoadFunction('PKCS7_dataVerify',AFailed); + PKCS7_signatureVerify := LoadFunction('PKCS7_signatureVerify',AFailed); + PKCS7_dataInit := LoadFunction('PKCS7_dataInit',AFailed); + PKCS7_dataFinal := LoadFunction('PKCS7_dataFinal',AFailed); + PKCS7_dataDecode := LoadFunction('PKCS7_dataDecode',AFailed); + PKCS7_add_signature := LoadFunction('PKCS7_add_signature',AFailed); + PKCS7_cert_from_signer_info := LoadFunction('PKCS7_cert_from_signer_info',AFailed); + PKCS7_set_digest := LoadFunction('PKCS7_set_digest',AFailed); + PKCS7_add_recipient := LoadFunction('PKCS7_add_recipient',AFailed); + PKCS7_SIGNER_INFO_get0_algs := LoadFunction('PKCS7_SIGNER_INFO_get0_algs',AFailed); + PKCS7_RECIP_INFO_get0_alg := LoadFunction('PKCS7_RECIP_INFO_get0_alg',AFailed); + PKCS7_add_recipient_info := LoadFunction('PKCS7_add_recipient_info',AFailed); + PKCS7_RECIP_INFO_set := LoadFunction('PKCS7_RECIP_INFO_set',AFailed); + PKCS7_set_cipher := LoadFunction('PKCS7_set_cipher',AFailed); + PKCS7_stream := LoadFunction('PKCS7_stream',AFailed); + PKCS7_get_issuer_and_serial := LoadFunction('PKCS7_get_issuer_and_serial',AFailed); + PKCS7_add_signed_attribute := LoadFunction('PKCS7_add_signed_attribute',AFailed); + PKCS7_add_attribute := LoadFunction('PKCS7_add_attribute',AFailed); + PKCS7_get_attribute := LoadFunction('PKCS7_get_attribute',AFailed); + PKCS7_get_signed_attribute := LoadFunction('PKCS7_get_signed_attribute',AFailed); + PKCS7_sign_add_signer := LoadFunction('PKCS7_sign_add_signer',AFailed); + PKCS7_final := LoadFunction('PKCS7_final',AFailed); + PKCS7_decrypt := LoadFunction('PKCS7_decrypt',AFailed); + PKCS7_add_attrib_content_type := LoadFunction('PKCS7_add_attrib_content_type',AFailed); + PKCS7_add0_attrib_signing_time := LoadFunction('PKCS7_add0_attrib_signing_time',AFailed); + PKCS7_add1_attrib_digest := LoadFunction('PKCS7_add1_attrib_digest',AFailed); + SMIME_write_PKCS7 := LoadFunction('SMIME_write_PKCS7',AFailed); + SMIME_read_PKCS7 := LoadFunction('SMIME_read_PKCS7',AFailed); + BIO_new_PKCS7 := LoadFunction('BIO_new_PKCS7',AFailed); +end; + +procedure Unload; +begin + PKCS7_ISSUER_AND_SERIAL_digest := nil; + PKCS7_dup := nil; + d2i_PKCS7_bio := nil; + i2d_PKCS7_bio := nil; + i2d_PKCS7_bio_stream := nil; + PEM_write_bio_PKCS7_stream := nil; + PKCS7_ctrl := nil; + PKCS7_set_type := nil; + PKCS7_set0_type_other := nil; + PKCS7_set_content := nil; + PKCS7_SIGNER_INFO_set := nil; + PKCS7_SIGNER_INFO_sign := nil; + PKCS7_add_signer := nil; + PKCS7_add_certificate := nil; + PKCS7_add_crl := nil; + PKCS7_content_new := nil; + PKCS7_dataVerify := nil; + PKCS7_signatureVerify := nil; + PKCS7_dataInit := nil; + PKCS7_dataFinal := nil; + PKCS7_dataDecode := nil; + PKCS7_add_signature := nil; + PKCS7_cert_from_signer_info := nil; + PKCS7_set_digest := nil; + PKCS7_add_recipient := nil; + PKCS7_SIGNER_INFO_get0_algs := nil; + PKCS7_RECIP_INFO_get0_alg := nil; + PKCS7_add_recipient_info := nil; + PKCS7_RECIP_INFO_set := nil; + PKCS7_set_cipher := nil; + PKCS7_stream := nil; + PKCS7_get_issuer_and_serial := nil; + PKCS7_add_signed_attribute := nil; + PKCS7_add_attribute := nil; + PKCS7_get_attribute := nil; + PKCS7_get_signed_attribute := nil; + PKCS7_sign_add_signer := nil; + PKCS7_final := nil; + PKCS7_decrypt := nil; + PKCS7_add_attrib_content_type := nil; + PKCS7_add0_attrib_signing_time := nil; + PKCS7_add1_attrib_digest := nil; + SMIME_write_PKCS7 := nil; + SMIME_read_PKCS7 := nil; + BIO_new_PKCS7 := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs7err.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs7err.pas new file mode 100644 index 000000000..a099d48a6 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_pkcs7err.pas @@ -0,0 +1,181 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_pkcs7err.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_pkcs7err.h2pas + and this file regenerated. IdOpenSSLHeaders_pkcs7err.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_pkcs7err; + +interface + +// Headers for OpenSSL 1.1.1 +// pkcs7err.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * PKCS7 function codes. + *) + PKCS7_F_DO_PKCS7_SIGNED_ATTRIB = 136; + PKCS7_F_PKCS7_ADD0_ATTRIB_SIGNING_TIME = 135; + PKCS7_F_PKCS7_ADD_ATTRIB_SMIMECAP = 118; + PKCS7_F_PKCS7_ADD_CERTIFICATE = 100; + PKCS7_F_PKCS7_ADD_CRL = 101; + PKCS7_F_PKCS7_ADD_RECIPIENT_INFO = 102; + PKCS7_F_PKCS7_ADD_SIGNATURE = 131; + PKCS7_F_PKCS7_ADD_SIGNER = 103; + PKCS7_F_PKCS7_BIO_ADD_DIGEST = 125; + PKCS7_F_PKCS7_COPY_EXISTING_DIGEST = 138; + PKCS7_F_PKCS7_CTRL = 104; + PKCS7_F_PKCS7_DATADECODE = 112; + PKCS7_F_PKCS7_DATAFINAL = 128; + PKCS7_F_PKCS7_DATAINIT = 105; + PKCS7_F_PKCS7_DATAVERIFY = 107; + PKCS7_F_PKCS7_DECRYPT = 114; + PKCS7_F_PKCS7_DECRYPT_RINFO = 133; + PKCS7_F_PKCS7_ENCODE_RINFO = 132; + PKCS7_F_PKCS7_ENCRYPT = 115; + PKCS7_F_PKCS7_FINAL = 134; + PKCS7_F_PKCS7_FIND_DIGEST = 127; + PKCS7_F_PKCS7_GET0_SIGNERS = 124; + PKCS7_F_PKCS7_RECIP_INFO_SET = 130; + PKCS7_F_PKCS7_SET_CIPHER = 108; + PKCS7_F_PKCS7_SET_CONTENT = 109; + PKCS7_F_PKCS7_SET_DIGEST = 126; + PKCS7_F_PKCS7_SET_TYPE = 110; + PKCS7_F_PKCS7_SIGN = 116; + PKCS7_F_PKCS7_SIGNATUREVERIFY = 113; + PKCS7_F_PKCS7_SIGNER_INFO_SET = 129; + PKCS7_F_PKCS7_SIGNER_INFO_SIGN = 139; + PKCS7_F_PKCS7_SIGN_ADD_SIGNER = 137; + PKCS7_F_PKCS7_SIMPLE_SMIMECAP = 119; + PKCS7_F_PKCS7_VERIFY = 117; + + (* + * PKCS7 reason codes. + *) + PKCS7_R_CERTIFICATE_VERIFY_ERROR = 117; + PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER = 144; + PKCS7_R_CIPHER_NOT_INITIALIZED = 116; + PKCS7_R_CONTENT_AND_DATA_PRESENT = 118; + PKCS7_R_CTRL_ERROR = 152; + PKCS7_R_DECRYPT_ERROR = 119; + PKCS7_R_DIGEST_FAILURE = 101; + PKCS7_R_ENCRYPTION_CTRL_FAILURE = 149; + PKCS7_R_ENCRYPTION_NOT_SUPPORTED_FOR_THIS_KEY_TYPE = 150; + PKCS7_R_ERROR_ADDING_RECIPIENT = 120; + PKCS7_R_ERROR_SETTING_CIPHER = 121; + PKCS7_R_INVALID_NULL_POINTER = 143; + PKCS7_R_INVALID_SIGNED_DATA_TYPE = 155; + PKCS7_R_NO_CONTENT = 122; + PKCS7_R_NO_DEFAULT_DIGEST = 151; + PKCS7_R_NO_MATCHING_DIGEST_TYPE_FOUND = 154; + PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE = 115; + PKCS7_R_NO_SIGNATURES_ON_DATA = 123; + PKCS7_R_NO_SIGNERS = 142; + PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE = 104; + PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR = 124; + PKCS7_R_PKCS7_ADD_SIGNER_ERROR = 153; + PKCS7_R_PKCS7_DATASIGN = 145; + PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE = 127; + PKCS7_R_SIGNATURE_FAILURE = 105; + PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND = 128; + PKCS7_R_SIGNING_CTRL_FAILURE = 147; + PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE = 148; + PKCS7_R_SMIME_TEXT_ERROR = 129; + PKCS7_R_UNABLE_TO_FIND_CERTIFICATE = 106; + PKCS7_R_UNABLE_TO_FIND_MEM_BIO = 107; + PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST = 108; + PKCS7_R_UNKNOWN_DIGEST_TYPE = 109; + PKCS7_R_UNKNOWN_OPERATION = 110; + PKCS7_R_UNSUPPORTED_CIPHER_TYPE = 111; + PKCS7_R_UNSUPPORTED_CONTENT_TYPE = 112; + PKCS7_R_WRONG_CONTENT_TYPE = 113; + PKCS7_R_WRONG_PKCS7_TYPE = 114; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_PKCS7_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_PKCS7_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_PKCS7_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_PKCS7_strings := LoadFunction('ERR_load_PKCS7_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_PKCS7_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rand.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rand.pas new file mode 100644 index 000000000..7c74ecd4f --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rand.pas @@ -0,0 +1,205 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_rand.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_rand.h2pas + and this file regenerated. IdOpenSSLHeaders_rand.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_rand; + +interface + +// Headers for OpenSSL 1.1.1 +// rand.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +type + rand_meth_st_seed = function (const buf: Pointer; num: TIdC_INT): TIdC_INT; cdecl; + rand_meth_st_bytes = function (buf: PByte; num: TIdC_INT): TIdC_INT; cdecl; + rand_meth_st_cleanup = procedure; cdecl; + rand_meth_st_add = function (const buf: Pointer; num: TIdC_INT; randomness: TIdC_DOUBLE): TIdC_INT; cdecl; + rand_meth_st_pseudorand = function (buf: PByte; num: TIdC_INT): TIdC_INT; cdecl; + rand_meth_st_status = function: TIdC_INT; cdecl; + + rand_meth_st = record + seed: rand_meth_st_seed; + bytes: rand_meth_st_bytes; + cleanup: rand_meth_st_cleanup; + add: rand_meth_st_add; + pseudorand: rand_meth_st_pseudorand; + status: rand_meth_st_status; + end; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM RAND_set_rand_method} + {$EXTERNALSYM RAND_get_rand_method} + {$EXTERNALSYM RAND_set_rand_engine} + {$EXTERNALSYM RAND_OpenSSL} + {$EXTERNALSYM RAND_bytes} + {$EXTERNALSYM RAND_priv_bytes} + {$EXTERNALSYM RAND_seed} + {$EXTERNALSYM RAND_keep_random_devices_open} + {$EXTERNALSYM RAND_add} + {$EXTERNALSYM RAND_load_file} + {$EXTERNALSYM RAND_write_file} + {$EXTERNALSYM RAND_status} + {$EXTERNALSYM RAND_query_egd_bytes} + {$EXTERNALSYM RAND_egd} + {$EXTERNALSYM RAND_egd_bytes} + {$EXTERNALSYM RAND_poll} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + RAND_set_rand_method: function(const meth: PRAND_METHOD): TIdC_INT; cdecl = nil; + RAND_get_rand_method: function: PRAND_METHOD; cdecl = nil; + RAND_set_rand_engine: function(engine: PENGINE): TIdC_INT; cdecl = nil; + + RAND_OpenSSL: function: PRAND_METHOD; cdecl = nil; + + RAND_bytes: function(buf: PByte; num: TIdC_INT): TIdC_INT; cdecl = nil; + RAND_priv_bytes: function(buf: PByte; num: TIdC_INT): TIdC_INT; cdecl = nil; + + RAND_seed: procedure(const buf: Pointer; num: TIdC_INT); cdecl = nil; + RAND_keep_random_devices_open: procedure(keep: TIdC_INT); cdecl = nil; + + RAND_add: procedure(const buf: Pointer; num: TIdC_INT; randomness: TIdC_DOUBLE); cdecl = nil; + RAND_load_file: function(const file_: PIdAnsiChar; max_bytes: TIdC_LONG): TIdC_INT; cdecl = nil; + RAND_write_file: function(const file_: PIdAnsiChar): TIdC_INT; cdecl = nil; + RAND_status: function: TIdC_INT; cdecl = nil; + + RAND_query_egd_bytes: function(const path: PIdAnsiChar; buf: PByte; bytes: TIdC_INT): TIdC_INT; cdecl = nil; + RAND_egd: function(const path: PIdAnsiChar): TIdC_INT; cdecl = nil; + RAND_egd_bytes: function(const path: PIdAnsiChar; bytes: TIdC_INT): TIdC_INT; cdecl = nil; + + RAND_poll: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function RAND_set_rand_method(const meth: PRAND_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RAND_get_rand_method: PRAND_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RAND_set_rand_engine(engine: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RAND_OpenSSL: PRAND_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RAND_bytes(buf: PByte; num: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RAND_priv_bytes(buf: PByte; num: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure RAND_seed(const buf: Pointer; num: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure RAND_keep_random_devices_open(keep: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure RAND_add(const buf: Pointer; num: TIdC_INT; randomness: TIdC_DOUBLE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RAND_load_file(const file_: PIdAnsiChar; max_bytes: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RAND_write_file(const file_: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RAND_status: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RAND_query_egd_bytes(const path: PIdAnsiChar; buf: PByte; bytes: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RAND_egd(const path: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RAND_egd_bytes(const path: PIdAnsiChar; bytes: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RAND_poll: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + RAND_set_rand_method := LoadFunction('RAND_set_rand_method',AFailed); + RAND_get_rand_method := LoadFunction('RAND_get_rand_method',AFailed); + RAND_set_rand_engine := LoadFunction('RAND_set_rand_engine',AFailed); + RAND_OpenSSL := LoadFunction('RAND_OpenSSL',AFailed); + RAND_bytes := LoadFunction('RAND_bytes',AFailed); + RAND_priv_bytes := LoadFunction('RAND_priv_bytes',AFailed); + RAND_seed := LoadFunction('RAND_seed',AFailed); + RAND_keep_random_devices_open := LoadFunction('RAND_keep_random_devices_open',AFailed); + RAND_add := LoadFunction('RAND_add',AFailed); + RAND_load_file := LoadFunction('RAND_load_file',AFailed); + RAND_write_file := LoadFunction('RAND_write_file',AFailed); + RAND_status := LoadFunction('RAND_status',AFailed); + RAND_query_egd_bytes := LoadFunction('RAND_query_egd_bytes',AFailed); + RAND_egd := LoadFunction('RAND_egd',AFailed); + RAND_egd_bytes := LoadFunction('RAND_egd_bytes',AFailed); + RAND_poll := LoadFunction('RAND_poll',AFailed); +end; + +procedure Unload; +begin + RAND_set_rand_method := nil; + RAND_get_rand_method := nil; + RAND_set_rand_engine := nil; + RAND_OpenSSL := nil; + RAND_bytes := nil; + RAND_priv_bytes := nil; + RAND_seed := nil; + RAND_keep_random_devices_open := nil; + RAND_add := nil; + RAND_load_file := nil; + RAND_write_file := nil; + RAND_status := nil; + RAND_query_egd_bytes := nil; + RAND_egd := nil; + RAND_egd_bytes := nil; + RAND_poll := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_randerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_randerr.pas new file mode 100644 index 000000000..e21ce7e5b --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_randerr.pas @@ -0,0 +1,172 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_randerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_randerr.h2pas + and this file regenerated. IdOpenSSLHeaders_randerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_randerr; + +interface + +// Headers for OpenSSL 1.1.1 +// randerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * RAND function codes. + *) + RAND_F_DRBG_BYTES = 101; + RAND_F_DRBG_GET_ENTROPY = 105; + RAND_F_DRBG_SETUP = 117; + RAND_F_GET_ENTROPY = 106; + RAND_F_RAND_BYTES = 100; + RAND_F_RAND_DRBG_ENABLE_LOCKING = 119; + RAND_F_RAND_DRBG_GENERATE = 107; + RAND_F_RAND_DRBG_GET_ENTROPY = 120; + RAND_F_RAND_DRBG_GET_NONCE = 123; + RAND_F_RAND_DRBG_INSTANTIATE = 108; + RAND_F_RAND_DRBG_NEW = 109; + RAND_F_RAND_DRBG_RESEED = 110; + RAND_F_RAND_DRBG_RESTART = 102; + RAND_F_RAND_DRBG_SET = 104; + RAND_F_RAND_DRBG_SET_DEFAULTS = 121; + RAND_F_RAND_DRBG_UNINSTANTIATE = 118; + RAND_F_RAND_LOAD_FILE = 111; + RAND_F_RAND_POOL_ACQUIRE_ENTROPY = 122; + RAND_F_RAND_POOL_ADD = 103; + RAND_F_RAND_POOL_ADD_BEGIN = 113; + RAND_F_RAND_POOL_ADD_END = 114; + RAND_F_RAND_POOL_ATTACH = 124; + RAND_F_RAND_POOL_BYTES_NEEDED = 115; + RAND_F_RAND_POOL_GROW = 125; + RAND_F_RAND_POOL_NEW = 116; + RAND_F_RAND_WRITE_FILE = 112; + + (* + * RAND reason codes. + *) + RAND_R_ADDITIONAL_INPUT_TOO_LONG = 102; + RAND_R_ALREADY_INSTANTIATED = 103; + RAND_R_ARGUMENT_OUT_OF_RANGE = 105; + RAND_R_CANNOT_OPEN_FILE = 121; + RAND_R_DRBG_ALREADY_INITIALIZED = 129; + RAND_R_DRBG_NOT_INITIALISED = 104; + RAND_R_ENTROPY_INPUT_TOO_LONG = 106; + RAND_R_ENTROPY_OUT_OF_RANGE = 124; + RAND_R_ERROR_ENTROPY_POOL_WAS_IGNORED = 127; + RAND_R_ERROR_INITIALISING_DRBG = 107; + RAND_R_ERROR_INSTANTIATING_DRBG = 108; + RAND_R_ERROR_RETRIEVING_ADDITIONAL_INPUT = 109; + RAND_R_ERROR_RETRIEVING_ENTROPY = 110; + RAND_R_ERROR_RETRIEVING_NONCE = 111; + RAND_R_FAILED_TO_CREATE_LOCK = 126; + RAND_R_FUNC_NOT_IMPLEMENTED = 101; + RAND_R_FWRITE_ERROR = 123; + RAND_R_GENERATE_ERROR = 112; + RAND_R_INTERNAL_ERROR = 113; + RAND_R_IN_ERROR_STATE = 114; + RAND_R_NOT_A_REGULAR_FILE = 122; + RAND_R_NOT_INSTANTIATED = 115; + RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED = 128; + RAND_R_PARENT_LOCKING_NOT_ENABLED = 130; + RAND_R_PARENT_STRENGTH_TOO_WEAK = 131; + RAND_R_PERSONALISATION_STRING_TOO_LONG = 116; + RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED = 133; + RAND_R_PRNG_NOT_SEEDED = 100; + RAND_R_RANDOM_POOL_OVERFLOW = 125; + RAND_R_RANDOM_POOL_UNDERFLOW = 134; + RAND_R_REQUEST_TOO_LARGE_FOR_DRBG = 117; + RAND_R_RESEED_ERROR = 118; + RAND_R_SELFTEST_FAILURE = 119; + RAND_R_TOO_LITTLE_NONCE_REQUESTED = 135; + RAND_R_TOO_MUCH_NONCE_REQUESTED = 136; + RAND_R_UNSUPPORTED_DRBG_FLAGS = 132; + RAND_R_UNSUPPORTED_DRBG_TYPE = 120; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_RAND_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_RAND_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_RAND_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_RAND_strings := LoadFunction('ERR_load_RAND_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_RAND_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rsa.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rsa.pas new file mode 100644 index 000000000..99b060b1c --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rsa.pas @@ -0,0 +1,951 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_rsa.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_rsa.h2pas + and this file regenerated. IdOpenSSLHeaders_rsa.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_rsa; + +interface + +// Headers for OpenSSL 1.1.1 +// rsa.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_evp; + +(* The types RSA and RSA_METHOD are defined in ossl_typ.h *) + +const + OPENSSL_RSA_MAX_MODULUS_BITS = 16384; + OPENSSL_RSA_FIPS_MIN_MODULUS_BITS = 1024; + OPENSSL_RSA_SMALL_MODULUS_BITS = 3072; + (* exponent limit enforced for "large" modulus only *) + OPENSSL_RSA_MAX_PUBEXP_BITS = 64; + + RSA_3 = TIdC_Long($3); + RSA_F4 = TIdC_Long($10001); + + (* based on RFC 8017 appendix A.1.2 *) + RSA_ASN1_VERSION_DEFAULT = 0; + RSA_ASN1_VERSION_MULTI = 1; + RSA_DEFAULT_PRIME_NUM = 2; + + RSA_METHOD_FLAG_NO_CHECK = $0001; (* don't check pub/private match *) + RSA_FLAG_CACHE_PUBLIC = $0002; + RSA_FLAG_CACHE_PRIVATE = $0004; + RSA_FLAG_BLINDING = $0008; + RSA_FLAG_THREAD_SAFE = $0010; + (* + * This flag means the private key operations will be handled by rsa_mod_exp + * and that they do not depend on the private key components being present: + * for example a key stored in external hardware. Without this flag + * bn_mod_exp gets called when private key components are absent. + *) + RSA_FLAG_EXT_PKEY = $0020; + (* + * new with 0.9.6j and 0.9.7b; the built-in + * RSA implementation now uses blinding by + * default (ignoring RSA_FLAG_BLINDING), + * but other engines might not need it + *) + RSA_FLAG_NO_BLINDING = $0080; + (* + * Does nothing. Previously this switched off constant time behaviour. + *) + RSA_FLAG_NO_CONSTTIME = $0000; + + (* Salt length matches digest *) + RSA_PSS_SALTLEN_DIGEST = -1; + (* Verify only: auto detect salt length *) + RSA_PSS_SALTLEN_AUTO = -2; + (* Set salt length to maximum possible *) + RSA_PSS_SALTLEN_MAX = -3; + (* Old compatible max salt length for sign only *) + RSA_PSS_SALTLEN_MAX_SIGN = -2; + + EVP_PKEY_CTRL_RSA_PADDING = EVP_PKEY_ALG_CTRL + 1; + EVP_PKEY_CTRL_RSA_PSS_SALTLEN = EVP_PKEY_ALG_CTRL + 2; + + EVP_PKEY_CTRL_RSA_KEYGEN_BITS = EVP_PKEY_ALG_CTRL + 3; + EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP = EVP_PKEY_ALG_CTRL + 4; + EVP_PKEY_CTRL_RSA_MGF1_MD = EVP_PKEY_ALG_CTRL + 5; + + EVP_PKEY_CTRL_GET_RSA_PADDING = EVP_PKEY_ALG_CTRL + 6; + EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN = EVP_PKEY_ALG_CTRL + 7; + EVP_PKEY_CTRL_GET_RSA_MGF1_MD = EVP_PKEY_ALG_CTRL + 8; + + EVP_PKEY_CTRL_RSA_OAEP_MD = EVP_PKEY_ALG_CTRL + 9; + EVP_PKEY_CTRL_RSA_OAEP_LABEL = EVP_PKEY_ALG_CTRL + 10; + + EVP_PKEY_CTRL_GET_RSA_OAEP_MD = EVP_PKEY_ALG_CTRL + 11; + EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL = EVP_PKEY_ALG_CTRL + 12; + + EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES = EVP_PKEY_ALG_CTRL + 13; + + RSA_PKCS1_PADDING = 1; + RSA_SSLV23_PADDING = 2; + RSA_NO_PADDING = 3; + RSA_PKCS1_OAEP_PADDING = 4; + RSA_X931_PADDING = 5; + RSA_PKCS1_PSS_PADDING = 6; (* EVP_PKEY_ only *) + RSA_PKCS1_PADDING_SIZE = 11; + + (* + * If this flag is set the RSA method is FIPS compliant and can be used in + * FIPS mode. This is set in the validated module method. If an application + * sets this flag in its own methods it is its responsibility to ensure the + * result is compliant. + *) + RSA_FLAG_FIPS_METHOD = $0400; + (* + * If this flag is set the operations normally disabled in FIPS mode are + * permitted it is then the applications responsibility to ensure that the + * usage is compliant. + *) + RSA_FLAG_NON_FIPS_ALLOW = $0400; + (* + * Application has decided PRNG is good enough to generate a key: don't + * check. + *) + RSA_FLAG_CHECKED = $0800; + +type + rsa_pss_params_st = record + hashAlgorithm: PX509_ALGOR; + maskGenAlgorithm: PX509_ALGOR; + saltLength: PASN1_INTEGER; + trailerField: PASN1_INTEGER; + (* Decoded hash algorithm from maskGenAlgorithm *) + maskHash: PX509_ALGOR; + end; + RSA_PSS_PARAMS = rsa_pss_params_st; + // DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS) + + rsa_oaep_params_st = record + hashFunc: PX509_ALGOR; + maskGenFunc: PX509_ALGOR; + pSourceFunc: PX509_ALGOR; + (* Decoded hash algorithm from maskGenFunc *) + maskHash: PX509_ALGOR; + end; + RSA_OAEP_PARAMS = rsa_oaep_params_st; + //DECLARE_ASN1_FUNCTIONS(RSA_OAEP_PARAMS) + + //DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey) + //DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey) + + RSA_meth_set_priv_dec_priv_dec = function(flen: TIdC_INT; const from: PByte; + to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT; cdecl; + + RSA_meth_set_mod_exp_mod_exp = function(r0: PBIGNUM; const i: PBIGNUM; + rsa: PRSA; ctx: PBN_CTX): TIdC_INT; cdecl; + + RSA_meth_set_bn_mod_exp_bn_mod_exp = function(r: PBIGNUM; const a: PBIGNUM; + const p: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTx; m_ctx: PBN_MONT_CTx): TIdC_INT; cdecl; + + RSA_meth_set_init_init = function(rsa: PRSA): TIdC_INT; cdecl; + + RSA_meth_set_finish_finish = function(rsa: PRSA): TIdC_INT; cdecl; + + RSA_meth_set_sign_sign = function(type_: TIdC_INT; const m: PByte; + m_length: TIdC_UINT; sigret: PByte; siglen: PIdC_UINT; const rsa: PRSA): TIdC_INT; cdecl; + + RSA_meth_set_verify_verify = function(dtype: TIdC_INT; const m: PByte; + m_length: TIdC_UINT; const sigbuf: PByte; siglen: TIdC_UINT; const rsa: PRSA): TIdC_INT; cdecl; + + RSA_meth_set_keygen_keygen = function(rsa: PRSA; bits: TIdC_INT; e: PBIGNUM; cb: PBN_GENCb): TIdC_INT; cdecl; + + RSA_meth_set_multi_prime_keygen_keygen = function(rsa: PRSA; bits: TIdC_INT; + primes: TIdC_INT; e: PBIGNUM; cb: PBN_GENCb): TIdC_INT; cdecl; + +//# define EVP_PKEY_CTX_set_rsa_padding(ctx, pad) \ +// RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_RSA_PADDING, pad, NULL) +// +//# define EVP_PKEY_CTX_get_rsa_padding(ctx, ppad) \ +// RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_GET_RSA_PADDING, 0, ppad) +// +//# define EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, len) \ +// RSA_pkey_ctx_ctrl(ctx, (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \ +// EVP_PKEY_CTRL_RSA_PSS_SALTLEN, len, NULL) + +//# define EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(ctx, len) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, EVP_PKEY_OP_KEYGEN, \ +// EVP_PKEY_CTRL_RSA_PSS_SALTLEN, len, NULL) +// +//# define EVP_PKEY_CTX_get_rsa_pss_saltlen(ctx, plen) \ +// RSA_pkey_ctx_ctrl(ctx, (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \ +// EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN, 0, plen) +// +//# define EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits) \ +// RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \ +// EVP_PKEY_CTRL_RSA_KEYGEN_BITS, bits, NULL) +// +//# define EVP_PKEY_CTX_set_rsa_keygen_pubexp(ctx, pubexp) \ +// RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \ +// EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP, 0, pubexp) +// +//# define EVP_PKEY_CTX_set_rsa_keygen_primes(ctx, primes) \ +// RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \ +// EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES, primes, NULL) +// +//# define EVP_PKEY_CTX_set_rsa_mgf1_md(ctx, md) \ +// RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md)) +// +//# define EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(ctx, md) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, EVP_PKEY_OP_KEYGEN, \ +// EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md)) +// +//# define EVP_PKEY_CTX_set_rsa_oaep_md(ctx, md) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_RSA_OAEP_MD, 0, (void *)(md)) +// +//# define EVP_PKEY_CTX_get_rsa_mgf1_md(ctx, pmd) \ +// RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_GET_RSA_MGF1_MD, 0, (void *)(pmd)) +// +//# define EVP_PKEY_CTX_get_rsa_oaep_md(ctx, pmd) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_GET_RSA_OAEP_MD, 0, (void *)(pmd)) +// +//# define EVP_PKEY_CTX_set0_rsa_oaep_label(ctx, l, llen) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_RSA_OAEP_LABEL, llen, (void *)(l)) +// +//# define EVP_PKEY_CTX_get0_rsa_oaep_label(ctx, l) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL, 0, (void *)(l)) +// +//# define EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx, md) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, \ +// EVP_PKEY_OP_KEYGEN, EVP_PKEY_CTRL_MD, \ +// 0, (void *)(md)) + +//# define RSA_set_app_data(s,arg) RSA_set_ex_data(s,0,arg) +//# define RSA_get_app_data(s) RSA_get_ex_data(s,0) + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM RSA_new} + {$EXTERNALSYM RSA_new_method} + {$EXTERNALSYM RSA_bits} + {$EXTERNALSYM RSA_size} + {$EXTERNALSYM RSA_security_bits} + {$EXTERNALSYM RSA_set0_key} + {$EXTERNALSYM RSA_set0_factors} + {$EXTERNALSYM RSA_set0_crt_params} + {$EXTERNALSYM RSA_get0_key} + {$EXTERNALSYM RSA_get0_factors} + {$EXTERNALSYM RSA_get_multi_prime_extra_count} + {$EXTERNALSYM RSA_get0_crt_params} + {$EXTERNALSYM RSA_get0_n} + {$EXTERNALSYM RSA_get0_e} + {$EXTERNALSYM RSA_get0_d} + {$EXTERNALSYM RSA_get0_p} + {$EXTERNALSYM RSA_get0_q} + {$EXTERNALSYM RSA_get0_dmp1} + {$EXTERNALSYM RSA_get0_dmq1} + {$EXTERNALSYM RSA_get0_iqmp} + {$EXTERNALSYM RSA_clear_flags} + {$EXTERNALSYM RSA_test_flags} + {$EXTERNALSYM RSA_set_flags} + {$EXTERNALSYM RSA_get_version} + {$EXTERNALSYM RSA_get0_engine} + {$EXTERNALSYM RSA_generate_key_ex} + {$EXTERNALSYM RSA_generate_multi_prime_key} + {$EXTERNALSYM RSA_X931_derive_ex} + {$EXTERNALSYM RSA_X931_generate_key_ex} + {$EXTERNALSYM RSA_check_key} + {$EXTERNALSYM RSA_check_key_ex} + {$EXTERNALSYM RSA_public_encrypt} + {$EXTERNALSYM RSA_private_encrypt} + {$EXTERNALSYM RSA_public_decrypt} + {$EXTERNALSYM RSA_private_decrypt} + {$EXTERNALSYM RSA_free} + {$EXTERNALSYM RSA_up_ref} + {$EXTERNALSYM RSA_flags} + {$EXTERNALSYM RSA_set_default_method} + {$EXTERNALSYM RSA_get_default_method} + {$EXTERNALSYM RSA_null_method} + {$EXTERNALSYM RSA_get_method} + {$EXTERNALSYM RSA_set_method} + {$EXTERNALSYM RSA_PKCS1_OpenSSL} + {$EXTERNALSYM RSA_pkey_ctx_ctrl} + {$EXTERNALSYM RSA_print} + {$EXTERNALSYM RSA_sign} + {$EXTERNALSYM RSA_verify} + {$EXTERNALSYM RSA_sign_ASN1_OCTET_STRING} + {$EXTERNALSYM RSA_verify_ASN1_OCTET_STRING} + {$EXTERNALSYM RSA_blinding_on} + {$EXTERNALSYM RSA_blinding_off} + {$EXTERNALSYM RSA_setup_blinding} + {$EXTERNALSYM RSA_padding_add_PKCS1_type_1} + {$EXTERNALSYM RSA_padding_check_PKCS1_type_1} + {$EXTERNALSYM RSA_padding_add_PKCS1_type_2} + {$EXTERNALSYM RSA_padding_check_PKCS1_type_2} + {$EXTERNALSYM PKCS1_MGF1} + {$EXTERNALSYM RSA_padding_add_PKCS1_OAEP} + {$EXTERNALSYM RSA_padding_check_PKCS1_OAEP} + {$EXTERNALSYM RSA_padding_add_PKCS1_OAEP_mgf1} + {$EXTERNALSYM RSA_padding_check_PKCS1_OAEP_mgf1} + {$EXTERNALSYM RSA_padding_add_SSLv23} + {$EXTERNALSYM RSA_padding_check_SSLv23} + {$EXTERNALSYM RSA_padding_add_none} + {$EXTERNALSYM RSA_padding_check_none} + {$EXTERNALSYM RSA_padding_add_X931} + {$EXTERNALSYM RSA_padding_check_X931} + {$EXTERNALSYM RSA_X931_hash_id} + {$EXTERNALSYM RSA_verify_PKCS1_PSS} + {$EXTERNALSYM RSA_padding_add_PKCS1_PSS} + {$EXTERNALSYM RSA_verify_PKCS1_PSS_mgf1} + {$EXTERNALSYM RSA_padding_add_PKCS1_PSS_mgf1} + {$EXTERNALSYM RSA_set_ex_data} + {$EXTERNALSYM RSA_get_ex_data} + {$EXTERNALSYM RSAPublicKey_dup} + {$EXTERNALSYM RSAPrivateKey_dup} + {$EXTERNALSYM RSA_meth_new} + {$EXTERNALSYM RSA_meth_free} + {$EXTERNALSYM RSA_meth_dup} + {$EXTERNALSYM RSA_meth_get0_name} + {$EXTERNALSYM RSA_meth_set1_name} + {$EXTERNALSYM RSA_meth_get_flags} + {$EXTERNALSYM RSA_meth_set_flags} + {$EXTERNALSYM RSA_meth_get0_app_data} + {$EXTERNALSYM RSA_meth_set0_app_data} + {$EXTERNALSYM RSA_meth_set_priv_dec} + {$EXTERNALSYM RSA_meth_set_mod_exp} + {$EXTERNALSYM RSA_meth_set_bn_mod_exp} + {$EXTERNALSYM RSA_meth_set_init} + {$EXTERNALSYM RSA_meth_set_finish} + {$EXTERNALSYM RSA_meth_set_sign} + {$EXTERNALSYM RSA_meth_set_verify} + {$EXTERNALSYM RSA_meth_set_keygen} + {$EXTERNALSYM RSA_meth_set_multi_prime_keygen} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + RSA_new: function: PRSA; cdecl = nil; + RSA_new_method: function(engine: PENGINE): PRSA; cdecl = nil; + RSA_bits: function(const rsa: PRSA): TIdC_INT; cdecl = nil; + RSA_size: function(const rsa: PRSA): TIdC_INT; cdecl = nil; + RSA_security_bits: function(const rsa: PRSA): TIdC_INT; cdecl = nil; + + RSA_set0_key: function(r: PRSA; n: PBIGNUM; e: PBIGNUM; d: PBIGNUM): TIdC_INT; cdecl = nil; + RSA_set0_factors: function(r: PRSA; p: PBIGNUM; q: PBIGNUM): TIdC_INT; cdecl = nil; + RSA_set0_crt_params: function(r: PRSA; dmp1: PBIGNUM; dmq1: PBIGNUM; iqmp: PBIGNUM): TIdC_INT; cdecl = nil; + //function RSA_set0_multi_prime_params(r: PRSA; primes: array of PBIGNUM; exps: array of PBIGNUM; coeffs: array of PBIGNUM; pnum: TIdC_INT): TIdC_INT; + + RSA_get0_key: procedure(const r: PRSA; const n: PPBIGNUM; const e: PPBIGNUM; const d: PPBIGNUM); cdecl = nil; + RSA_get0_factors: procedure(const r: PRSA; const p: PPBIGNUM; const q: PPBIGNUM); cdecl = nil; + RSA_get_multi_prime_extra_count: function(const r: PRSA): TIdC_INT; cdecl = nil; + //function RSA_get0_multi_prime_factors(const r: PRSA; const primes: array of PBIGNUM): TIdC_INT; + RSA_get0_crt_params: procedure(const r: PRSA; const dmp1: PPBIGNUM; const dmq1: PPBIGNUM; const iqmp: PPBIGNUM); cdecl = nil; + + //function RSA_get0_multi_prime_crt_params(const r: PRSA; const exps: array of PBIGNUM; const coeffs: array of PBIGNUM): TIdC_INT; + + RSA_get0_n: function(const d: PRSA): PBIGNUM; cdecl = nil; + RSA_get0_e: function(const d: PRSA): PBIGNUM; cdecl = nil; + RSA_get0_d: function(const d: PRSA): PBIGNUM; cdecl = nil; + RSA_get0_p: function(const d: PRSA): PBIGNUM; cdecl = nil; + RSA_get0_q: function(const d: PRSA): PBIGNUM; cdecl = nil; + RSA_get0_dmp1: function(const r: PRSA): PBIGNUM; cdecl = nil; + RSA_get0_dmq1: function(const r: PRSA): PBIGNUM; cdecl = nil; + RSA_get0_iqmp: function(const r: PRSA): PBIGNUM; cdecl = nil; + + RSA_clear_flags: procedure(r: PRSA; flags: TIdC_INT); cdecl = nil; + RSA_test_flags: function(const r: PRSA; flags: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_set_flags: procedure(r: PRSA; flags: TIdC_INT); cdecl = nil; + RSA_get_version: function(r: PRSA): TIdC_INT; cdecl = nil; + RSA_get0_engine: function(const r: PRSA): PENGINE; cdecl = nil; + + (* New version *) + RSA_generate_key_ex: function(rsa: PRSA; bits: TIdC_INT; e: PBIGNUM; cb: PBN_GENCB): TIdC_INT; cdecl = nil; + (* Multi-prime version *) + RSA_generate_multi_prime_key: function(rsa: PRSA; bits: TIdC_INT; primes: TIdC_INT; e: PBIGNUM; cb: PBN_GENCB): TIdC_INT; cdecl = nil; + RSA_X931_derive_ex: function(rsa: PRSA; p1: PBIGNUM; p2: PBIGNUM; q1: PBIGNUM; q2: PBIGNUM; const Xp1: PBIGNUM; const Xp2: PBIGNUM; const Xp: PBIGNUM; const Xq1: PBIGNUM; const Xq2: PBIGNUM; const Xq: PBIGNUM; const e: PBIGNUM; cb: PBN_GENCB): TIdC_INT; cdecl = nil; + RSA_X931_generate_key_ex: function(rsa: PRSA; bits: TIdC_INT; const e: PBIGNUM; cb: PBN_GENCB): TIdC_INT; cdecl = nil; + + RSA_check_key: function(const v1: PRSA): TIdC_INT; cdecl = nil; + RSA_check_key_ex: function(const v1: PRSA; cb: BN_GENCB): TIdC_INT; cdecl = nil; + (* next 4 return -1 on error *) + RSA_public_encrypt: function(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_private_encrypt: function(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_public_decrypt: function(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_private_decrypt: function(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT; cdecl = nil; + + RSA_free: procedure(r: PRSA); cdecl = nil; + (* "up" the RSA object's reference count *) + RSA_up_ref: function(r: PRSA): TIdC_INT; cdecl = nil; + + RSA_flags: function(const r: PRSA): TIdC_INT; cdecl = nil; + + RSA_set_default_method: procedure(const meth: PRSA_METHOD); cdecl = nil; + RSA_get_default_method: function: PRSA_METHOD; cdecl = nil; + RSA_null_method: function: PRSA_METHOD; cdecl = nil; + RSA_get_method: function(const rsa: PRSA): PRSA_METHOD; cdecl = nil; + RSA_set_method: function(rsa: PRSA; const meth: PRSA_METHOD): TIdC_INT; cdecl = nil; + + (* these are the actual RSA functions *) + RSA_PKCS1_OpenSSL: function: PRSA_METHOD; cdecl = nil; + + RSA_pkey_ctx_ctrl: function(ctx: PEVP_PKEY_CTX; optype: TIdC_INT; cmd: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT; cdecl = nil; + + RSA_print: function(bp: PBIO; const r: PRSA; offset: TIdC_INT): TIdC_INT; cdecl = nil; + + (* + * The following 2 functions sign and verify a X509_SIG ASN1 object inside + * PKCS#1 padded RSA encryption + *) + RSA_sign: function(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; sigret: PByte; siglen: PIdC_UINT; rsa: PRSA): TIdC_INT; cdecl = nil; + RSA_verify: function(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; const sigbuf: PByte; siglen: TIdC_UINT; rsa: PRSA): TIdC_INT; cdecl = nil; + + (* + * The following 2 function sign and verify a ASN1_OCTET_STRING object inside + * PKCS#1 padded RSA encryption + *) + RSA_sign_ASN1_OCTET_STRING: function(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; sigret: PByte; siglen: PIdC_UINT; rsa: PRSA): TIdC_INT; cdecl = nil; + RSA_verify_ASN1_OCTET_STRING: function(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; sigbuf: PByte; siglen: TIdC_UINT; rsa: PRSA): TIdC_INT; cdecl = nil; + + RSA_blinding_on: function(rsa: PRSA; ctx: PBN_CTX): TIdC_INT; cdecl = nil; + RSA_blinding_off: procedure(rsa: PRSA); cdecl = nil; + RSA_setup_blinding: function(rsa: PRSA; ctx: PBN_CTX): PBN_BLINDING; cdecl = nil; + RSA_padding_add_PKCS1_type_1: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_check_PKCS1_type_1: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_add_PKCS1_type_2: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_check_PKCS1_type_2: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT; cdecl = nil; + PKCS1_MGF1: function(mask: PByte; len: TIdC_LONG; const seed: PByte; seedlen: TIdC_LONG; const dgst: PEVP_MD): TIdC_INT; cdecl = nil; + RSA_padding_add_PKCS1_OAEP: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; const p: PByte; pl: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_check_PKCS1_OAEP: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT; const p: PByte; pl: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_add_PKCS1_OAEP_mgf1: function(to_: PByte; tlen: TIdC_INT; const from: PByte; flen: TIdC_INT; const param: PByte; plen: TIdC_INT; const md: PEVP_MD; const mgf1md: PEVP_MD): TIdC_INT; cdecl = nil; + RSA_padding_check_PKCS1_OAEP_mgf1: function(to_: PByte; tlen: TIdC_INT; const from: PByte; flen: TIdC_INT; num: TIdC_INT; const param: PByte; plen: TIdC_INT; const md: PEVP_MD; const mgf1md: PEVP_MD): TIdC_INT; cdecl = nil; + RSA_padding_add_SSLv23: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_check_SSLv23: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_add_none: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_check_none: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_add_X931: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_check_X931: function(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_X931_hash_id: function(nid: TIdC_INT): TIdC_INT; cdecl = nil; + + RSA_verify_PKCS1_PSS: function(rsa: PRSA; const mHash: PByte; const Hash: PEVP_MD; const EM: PByte; sLen: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_add_PKCS1_PSS: function(rsa: PRSA; EM: PByte; const mHash: PByte; const Hash: PEVP_MD; sLen: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_verify_PKCS1_PSS_mgf1: function(rsa: PRSA; const mHash: PByte; const Hash: PEVP_MD; const mgf1Hash: PEVP_MD; const EM: PByte; sLen: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_padding_add_PKCS1_PSS_mgf1: function(rsa: PRSA; EM: PByte; const mHash: PByte; const Hash: PEVP_MD; const mgf1Hash: PEVP_MD; sLen: TIdC_INT): TIdC_INT; cdecl = nil; + + //#define RSA_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_RSA, l, p, newf, dupf, freef) + + RSA_set_ex_data: function(r: PRSA; idx: TIdC_INT; arg: Pointer): TIdC_INT; cdecl = nil; + RSA_get_ex_data: function(const r: PRSA; idx: TIdC_INT): Pointer; cdecl = nil; + RSAPublicKey_dup: function(rsa: PRSA): PRSA; cdecl = nil; + RSAPrivateKey_dup: function(rsa: PRSA): PRSA; cdecl = nil; + + RSA_meth_new: function(const name: PIdAnsiChar; flags: TIdC_INT): PRSA_METHOD; cdecl = nil; + RSA_meth_free: procedure(meth: PRSA_METHOD); cdecl = nil; + RSA_meth_dup: function(const meth: PRSA_METHOD): PRSA_METHOD; cdecl = nil; + RSA_meth_get0_name: function(const meth: PRSA_METHOD): PIdAnsiChar; cdecl = nil; + RSA_meth_set1_name: function(meth: PRSA_METHOD; const name: PIdAnsiChar): TIdC_INT; cdecl = nil; + RSA_meth_get_flags: function(const meth: PRSA_METHOD): TIdC_INT; cdecl = nil; + RSA_meth_set_flags: function(meth: PRSA_METHOD; flags: TIdC_INT): TIdC_INT; cdecl = nil; + RSA_meth_get0_app_data: function(const meth: PRSA_METHOD): Pointer; cdecl = nil; + RSA_meth_set0_app_data: function(meth: PRSA_METHOD; app_data: Pointer): TIdC_INT; cdecl = nil; + + //int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + //int RSA_meth_set_pub_enc(RSA_METHOD *rsa, + // int (*pub_enc) (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, + // int padding)); + //int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + //int RSA_meth_set_pub_dec(RSA_METHOD *rsa, + // int (*pub_dec) (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, + // int padding)); + //int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + //int RSA_meth_set_priv_enc(RSA_METHOD *rsa, + // int (*priv_enc) (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, + // int padding)); + //int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + RSA_meth_set_priv_dec: function(rsa: PRSA_METHOD; priv_dec: RSA_meth_set_priv_dec_priv_dec): TIdC_INT; cdecl = nil; + + //int (*RSA_meth_get_mod_exp(const RSA_METHOD *meth)) + // (BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx); + RSA_meth_set_mod_exp: function(rsa: PRSA_METHOD; mod_exp: RSA_meth_set_mod_exp_mod_exp): TIdC_INT; cdecl = nil; + //int (*RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth)) + // (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, + // const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); + RSA_meth_set_bn_mod_exp: function(rsa: PRSA_METHOD; bn_mod_exp: RSA_meth_set_bn_mod_exp_bn_mod_exp): TIdC_INT; cdecl = nil; + //int (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa); + RSA_meth_set_init: function(rsa: PRSA_METHOD; init: RSA_meth_set_init_init): TIdC_INT; cdecl = nil; + //int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); + RSA_meth_set_finish: function(rsa: PRSA_METHOD; finish: RSA_meth_set_finish_finish): TIdC_INT; cdecl = nil; + //int (*RSA_meth_get_sign(const RSA_METHOD *meth)) + // (int type_, + // const unsigned char *m, unsigned int m_length, + // unsigned char *sigret, unsigned int *siglen, + // const RSA *rsa); + RSA_meth_set_sign: function(rsa: PRSA_METHOD; sign: RSA_meth_set_sign_sign): TIdC_INT; cdecl = nil; + //int (*RSA_meth_get_verify(const RSA_METHOD *meth)) + // (int dtype, const unsigned char *m, + // unsigned int m_length, const unsigned char *sigbuf, + // unsigned int siglen, const RSA *rsa); + RSA_meth_set_verify: function(rsa: PRSA_METHOD; verify: RSA_meth_set_verify_verify): TIdC_INT; cdecl = nil; + //int (*RSA_meth_get_keygen(const RSA_METHOD *meth)) + // (RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb); + RSA_meth_set_keygen: function(rsa: PRSA_METHOD; keygen: RSA_meth_set_keygen_keygen): TIdC_INT; cdecl = nil; + //int (*RSA_meth_get_multi_prime_keygen(const RSA_METHOD *meth)) + // (RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb); + RSA_meth_set_multi_prime_keygen: function(meth: PRSA_METHOD; keygen: RSA_meth_set_multi_prime_keygen_keygen): TIdC_INT; cdecl = nil; + +{$ELSE} + function RSA_new: PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_new_method(engine: PENGINE): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_bits(const rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_size(const rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_security_bits(const rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RSA_set0_key(r: PRSA; n: PBIGNUM; e: PBIGNUM; d: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_set0_factors(r: PRSA; p: PBIGNUM; q: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_set0_crt_params(r: PRSA; dmp1: PBIGNUM; dmq1: PBIGNUM; iqmp: PBIGNUM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function RSA_set0_multi_prime_params(r: PRSA; primes: array of PBIGNUM; exps: array of PBIGNUM; coeffs: array of PBIGNUM; pnum: TIdC_INT): TIdC_INT; + + procedure RSA_get0_key(const r: PRSA; const n: PPBIGNUM; const e: PPBIGNUM; const d: PPBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure RSA_get0_factors(const r: PRSA; const p: PPBIGNUM; const q: PPBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get_multi_prime_extra_count(const r: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function RSA_get0_multi_prime_factors(const r: PRSA; const primes: array of PBIGNUM): TIdC_INT; + procedure RSA_get0_crt_params(const r: PRSA; const dmp1: PPBIGNUM; const dmq1: PPBIGNUM; const iqmp: PPBIGNUM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //function RSA_get0_multi_prime_crt_params(const r: PRSA; const exps: array of PBIGNUM; const coeffs: array of PBIGNUM): TIdC_INT; + + function RSA_get0_n(const d: PRSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get0_e(const d: PRSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get0_d(const d: PRSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get0_p(const d: PRSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get0_q(const d: PRSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get0_dmp1(const r: PRSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get0_dmq1(const r: PRSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get0_iqmp(const r: PRSA): PBIGNUM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure RSA_clear_flags(r: PRSA; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_test_flags(const r: PRSA; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure RSA_set_flags(r: PRSA; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get_version(r: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get0_engine(const r: PRSA): PENGINE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* New version *) + function RSA_generate_key_ex(rsa: PRSA; bits: TIdC_INT; e: PBIGNUM; cb: PBN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* Multi-prime version *) + function RSA_generate_multi_prime_key(rsa: PRSA; bits: TIdC_INT; primes: TIdC_INT; e: PBIGNUM; cb: PBN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_X931_derive_ex(rsa: PRSA; p1: PBIGNUM; p2: PBIGNUM; q1: PBIGNUM; q2: PBIGNUM; const Xp1: PBIGNUM; const Xp2: PBIGNUM; const Xp: PBIGNUM; const Xq1: PBIGNUM; const Xq2: PBIGNUM; const Xq: PBIGNUM; const e: PBIGNUM; cb: PBN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_X931_generate_key_ex(rsa: PRSA; bits: TIdC_INT; const e: PBIGNUM; cb: PBN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RSA_check_key(const v1: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_check_key_ex(const v1: PRSA; cb: BN_GENCB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* next 4 return -1 on error *) + function RSA_public_encrypt(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_private_encrypt(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_public_decrypt(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_private_decrypt(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure RSA_free(r: PRSA) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* "up" the RSA object's reference count *) + function RSA_up_ref(r: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RSA_flags(const r: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure RSA_set_default_method(const meth: PRSA_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get_default_method: PRSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_null_method: PRSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get_method(const rsa: PRSA): PRSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_set_method(rsa: PRSA; const meth: PRSA_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* these are the actual RSA functions *) + function RSA_PKCS1_OpenSSL: PRSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RSA_pkey_ctx_ctrl(ctx: PEVP_PKEY_CTX; optype: TIdC_INT; cmd: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RSA_print(bp: PBIO; const r: PRSA; offset: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * The following 2 functions sign and verify a X509_SIG ASN1 object inside + * PKCS#1 padded RSA encryption + *) + function RSA_sign(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; sigret: PByte; siglen: PIdC_UINT; rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_verify(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; const sigbuf: PByte; siglen: TIdC_UINT; rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * The following 2 function sign and verify a ASN1_OCTET_STRING object inside + * PKCS#1 padded RSA encryption + *) + function RSA_sign_ASN1_OCTET_STRING(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; sigret: PByte; siglen: PIdC_UINT; rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_verify_ASN1_OCTET_STRING(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; sigbuf: PByte; siglen: TIdC_UINT; rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RSA_blinding_on(rsa: PRSA; ctx: PBN_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure RSA_blinding_off(rsa: PRSA) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_setup_blinding(rsa: PRSA; ctx: PBN_CTX): PBN_BLINDING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_add_PKCS1_type_1(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_check_PKCS1_type_1(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_add_PKCS1_type_2(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_check_PKCS1_type_2(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS1_MGF1(mask: PByte; len: TIdC_LONG; const seed: PByte; seedlen: TIdC_LONG; const dgst: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_add_PKCS1_OAEP(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; const p: PByte; pl: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_check_PKCS1_OAEP(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT; const p: PByte; pl: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_add_PKCS1_OAEP_mgf1(to_: PByte; tlen: TIdC_INT; const from: PByte; flen: TIdC_INT; const param: PByte; plen: TIdC_INT; const md: PEVP_MD; const mgf1md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_check_PKCS1_OAEP_mgf1(to_: PByte; tlen: TIdC_INT; const from: PByte; flen: TIdC_INT; num: TIdC_INT; const param: PByte; plen: TIdC_INT; const md: PEVP_MD; const mgf1md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_add_SSLv23(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_check_SSLv23(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_add_none(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_check_none(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_add_X931(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_check_X931(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_X931_hash_id(nid: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RSA_verify_PKCS1_PSS(rsa: PRSA; const mHash: PByte; const Hash: PEVP_MD; const EM: PByte; sLen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_add_PKCS1_PSS(rsa: PRSA; EM: PByte; const mHash: PByte; const Hash: PEVP_MD; sLen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_verify_PKCS1_PSS_mgf1(rsa: PRSA; const mHash: PByte; const Hash: PEVP_MD; const mgf1Hash: PEVP_MD; const EM: PByte; sLen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_padding_add_PKCS1_PSS_mgf1(rsa: PRSA; EM: PByte; const mHash: PByte; const Hash: PEVP_MD; const mgf1Hash: PEVP_MD; sLen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //#define RSA_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_RSA, l, p, newf, dupf, freef) + + function RSA_set_ex_data(r: PRSA; idx: TIdC_INT; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_get_ex_data(const r: PRSA; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSAPublicKey_dup(rsa: PRSA): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSAPrivateKey_dup(rsa: PRSA): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function RSA_meth_new(const name: PIdAnsiChar; flags: TIdC_INT): PRSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure RSA_meth_free(meth: PRSA_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_meth_dup(const meth: PRSA_METHOD): PRSA_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_meth_get0_name(const meth: PRSA_METHOD): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_meth_set1_name(meth: PRSA_METHOD; const name: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_meth_get_flags(const meth: PRSA_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_meth_set_flags(meth: PRSA_METHOD; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_meth_get0_app_data(const meth: PRSA_METHOD): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function RSA_meth_set0_app_data(meth: PRSA_METHOD; app_data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + //int RSA_meth_set_pub_enc(RSA_METHOD *rsa, + // int (*pub_enc) (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, + // int padding)); + //int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + //int RSA_meth_set_pub_dec(RSA_METHOD *rsa, + // int (*pub_dec) (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, + // int padding)); + //int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + //int RSA_meth_set_priv_enc(RSA_METHOD *rsa, + // int (*priv_enc) (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, + // int padding)); + //int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + function RSA_meth_set_priv_dec(rsa: PRSA_METHOD; priv_dec: RSA_meth_set_priv_dec_priv_dec): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //int (*RSA_meth_get_mod_exp(const RSA_METHOD *meth)) + // (BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx); + function RSA_meth_set_mod_exp(rsa: PRSA_METHOD; mod_exp: RSA_meth_set_mod_exp_mod_exp): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //int (*RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth)) + // (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, + // const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); + function RSA_meth_set_bn_mod_exp(rsa: PRSA_METHOD; bn_mod_exp: RSA_meth_set_bn_mod_exp_bn_mod_exp): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //int (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa); + function RSA_meth_set_init(rsa: PRSA_METHOD; init: RSA_meth_set_init_init): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); + function RSA_meth_set_finish(rsa: PRSA_METHOD; finish: RSA_meth_set_finish_finish): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //int (*RSA_meth_get_sign(const RSA_METHOD *meth)) + // (int type_, + // const unsigned char *m, unsigned int m_length, + // unsigned char *sigret, unsigned int *siglen, + // const RSA *rsa); + function RSA_meth_set_sign(rsa: PRSA_METHOD; sign: RSA_meth_set_sign_sign): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //int (*RSA_meth_get_verify(const RSA_METHOD *meth)) + // (int dtype, const unsigned char *m, + // unsigned int m_length, const unsigned char *sigbuf, + // unsigned int siglen, const RSA *rsa); + function RSA_meth_set_verify(rsa: PRSA_METHOD; verify: RSA_meth_set_verify_verify): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //int (*RSA_meth_get_keygen(const RSA_METHOD *meth)) + // (RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb); + function RSA_meth_set_keygen(rsa: PRSA_METHOD; keygen: RSA_meth_set_keygen_keygen): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //int (*RSA_meth_get_multi_prime_keygen(const RSA_METHOD *meth)) + // (RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb); + function RSA_meth_set_multi_prime_keygen(meth: PRSA_METHOD; keygen: RSA_meth_set_multi_prime_keygen_keygen): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + RSA_new := LoadFunction('RSA_new',AFailed); + RSA_new_method := LoadFunction('RSA_new_method',AFailed); + RSA_bits := LoadFunction('RSA_bits',AFailed); + RSA_size := LoadFunction('RSA_size',AFailed); + RSA_security_bits := LoadFunction('RSA_security_bits',AFailed); + RSA_set0_key := LoadFunction('RSA_set0_key',AFailed); + RSA_set0_factors := LoadFunction('RSA_set0_factors',AFailed); + RSA_set0_crt_params := LoadFunction('RSA_set0_crt_params',AFailed); + RSA_get0_key := LoadFunction('RSA_get0_key',AFailed); + RSA_get0_factors := LoadFunction('RSA_get0_factors',AFailed); + RSA_get_multi_prime_extra_count := LoadFunction('RSA_get_multi_prime_extra_count',AFailed); + RSA_get0_crt_params := LoadFunction('RSA_get0_crt_params',AFailed); + RSA_get0_n := LoadFunction('RSA_get0_n',AFailed); + RSA_get0_e := LoadFunction('RSA_get0_e',AFailed); + RSA_get0_d := LoadFunction('RSA_get0_d',AFailed); + RSA_get0_p := LoadFunction('RSA_get0_p',AFailed); + RSA_get0_q := LoadFunction('RSA_get0_q',AFailed); + RSA_get0_dmp1 := LoadFunction('RSA_get0_dmp1',AFailed); + RSA_get0_dmq1 := LoadFunction('RSA_get0_dmq1',AFailed); + RSA_get0_iqmp := LoadFunction('RSA_get0_iqmp',AFailed); + RSA_clear_flags := LoadFunction('RSA_clear_flags',AFailed); + RSA_test_flags := LoadFunction('RSA_test_flags',AFailed); + RSA_set_flags := LoadFunction('RSA_set_flags',AFailed); + RSA_get_version := LoadFunction('RSA_get_version',AFailed); + RSA_get0_engine := LoadFunction('RSA_get0_engine',AFailed); + RSA_generate_key_ex := LoadFunction('RSA_generate_key_ex',AFailed); + RSA_generate_multi_prime_key := LoadFunction('RSA_generate_multi_prime_key',AFailed); + RSA_X931_derive_ex := LoadFunction('RSA_X931_derive_ex',AFailed); + RSA_X931_generate_key_ex := LoadFunction('RSA_X931_generate_key_ex',AFailed); + RSA_check_key := LoadFunction('RSA_check_key',AFailed); + RSA_check_key_ex := LoadFunction('RSA_check_key_ex',AFailed); + RSA_public_encrypt := LoadFunction('RSA_public_encrypt',AFailed); + RSA_private_encrypt := LoadFunction('RSA_private_encrypt',AFailed); + RSA_public_decrypt := LoadFunction('RSA_public_decrypt',AFailed); + RSA_private_decrypt := LoadFunction('RSA_private_decrypt',AFailed); + RSA_free := LoadFunction('RSA_free',AFailed); + RSA_up_ref := LoadFunction('RSA_up_ref',AFailed); + RSA_flags := LoadFunction('RSA_flags',AFailed); + RSA_set_default_method := LoadFunction('RSA_set_default_method',AFailed); + RSA_get_default_method := LoadFunction('RSA_get_default_method',AFailed); + RSA_null_method := LoadFunction('RSA_null_method',AFailed); + RSA_get_method := LoadFunction('RSA_get_method',AFailed); + RSA_set_method := LoadFunction('RSA_set_method',AFailed); + RSA_PKCS1_OpenSSL := LoadFunction('RSA_PKCS1_OpenSSL',AFailed); + RSA_pkey_ctx_ctrl := LoadFunction('RSA_pkey_ctx_ctrl',AFailed); + RSA_print := LoadFunction('RSA_print',AFailed); + RSA_sign := LoadFunction('RSA_sign',AFailed); + RSA_verify := LoadFunction('RSA_verify',AFailed); + RSA_sign_ASN1_OCTET_STRING := LoadFunction('RSA_sign_ASN1_OCTET_STRING',AFailed); + RSA_verify_ASN1_OCTET_STRING := LoadFunction('RSA_verify_ASN1_OCTET_STRING',AFailed); + RSA_blinding_on := LoadFunction('RSA_blinding_on',AFailed); + RSA_blinding_off := LoadFunction('RSA_blinding_off',AFailed); + RSA_setup_blinding := LoadFunction('RSA_setup_blinding',AFailed); + RSA_padding_add_PKCS1_type_1 := LoadFunction('RSA_padding_add_PKCS1_type_1',AFailed); + RSA_padding_check_PKCS1_type_1 := LoadFunction('RSA_padding_check_PKCS1_type_1',AFailed); + RSA_padding_add_PKCS1_type_2 := LoadFunction('RSA_padding_add_PKCS1_type_2',AFailed); + RSA_padding_check_PKCS1_type_2 := LoadFunction('RSA_padding_check_PKCS1_type_2',AFailed); + PKCS1_MGF1 := LoadFunction('PKCS1_MGF1',AFailed); + RSA_padding_add_PKCS1_OAEP := LoadFunction('RSA_padding_add_PKCS1_OAEP',AFailed); + RSA_padding_check_PKCS1_OAEP := LoadFunction('RSA_padding_check_PKCS1_OAEP',AFailed); + RSA_padding_add_PKCS1_OAEP_mgf1 := LoadFunction('RSA_padding_add_PKCS1_OAEP_mgf1',AFailed); + RSA_padding_check_PKCS1_OAEP_mgf1 := LoadFunction('RSA_padding_check_PKCS1_OAEP_mgf1',AFailed); + RSA_padding_add_SSLv23 := LoadFunction('RSA_padding_add_SSLv23',AFailed); + RSA_padding_check_SSLv23 := LoadFunction('RSA_padding_check_SSLv23',AFailed); + RSA_padding_add_none := LoadFunction('RSA_padding_add_none',AFailed); + RSA_padding_check_none := LoadFunction('RSA_padding_check_none',AFailed); + RSA_padding_add_X931 := LoadFunction('RSA_padding_add_X931',AFailed); + RSA_padding_check_X931 := LoadFunction('RSA_padding_check_X931',AFailed); + RSA_X931_hash_id := LoadFunction('RSA_X931_hash_id',AFailed); + RSA_verify_PKCS1_PSS := LoadFunction('RSA_verify_PKCS1_PSS',AFailed); + RSA_padding_add_PKCS1_PSS := LoadFunction('RSA_padding_add_PKCS1_PSS',AFailed); + RSA_verify_PKCS1_PSS_mgf1 := LoadFunction('RSA_verify_PKCS1_PSS_mgf1',AFailed); + RSA_padding_add_PKCS1_PSS_mgf1 := LoadFunction('RSA_padding_add_PKCS1_PSS_mgf1',AFailed); + RSA_set_ex_data := LoadFunction('RSA_set_ex_data',AFailed); + RSA_get_ex_data := LoadFunction('RSA_get_ex_data',AFailed); + RSAPublicKey_dup := LoadFunction('RSAPublicKey_dup',AFailed); + RSAPrivateKey_dup := LoadFunction('RSAPrivateKey_dup',AFailed); + RSA_meth_new := LoadFunction('RSA_meth_new',AFailed); + RSA_meth_free := LoadFunction('RSA_meth_free',AFailed); + RSA_meth_dup := LoadFunction('RSA_meth_dup',AFailed); + RSA_meth_get0_name := LoadFunction('RSA_meth_get0_name',AFailed); + RSA_meth_set1_name := LoadFunction('RSA_meth_set1_name',AFailed); + RSA_meth_get_flags := LoadFunction('RSA_meth_get_flags',AFailed); + RSA_meth_set_flags := LoadFunction('RSA_meth_set_flags',AFailed); + RSA_meth_get0_app_data := LoadFunction('RSA_meth_get0_app_data',AFailed); + RSA_meth_set0_app_data := LoadFunction('RSA_meth_set0_app_data',AFailed); + RSA_meth_set_priv_dec := LoadFunction('RSA_meth_set_priv_dec',AFailed); + RSA_meth_set_mod_exp := LoadFunction('RSA_meth_set_mod_exp',AFailed); + RSA_meth_set_bn_mod_exp := LoadFunction('RSA_meth_set_bn_mod_exp',AFailed); + RSA_meth_set_init := LoadFunction('RSA_meth_set_init',AFailed); + RSA_meth_set_finish := LoadFunction('RSA_meth_set_finish',AFailed); + RSA_meth_set_sign := LoadFunction('RSA_meth_set_sign',AFailed); + RSA_meth_set_verify := LoadFunction('RSA_meth_set_verify',AFailed); + RSA_meth_set_keygen := LoadFunction('RSA_meth_set_keygen',AFailed); + RSA_meth_set_multi_prime_keygen := LoadFunction('RSA_meth_set_multi_prime_keygen',AFailed); +end; + +procedure Unload; +begin + RSA_new := nil; + RSA_new_method := nil; + RSA_bits := nil; + RSA_size := nil; + RSA_security_bits := nil; + RSA_set0_key := nil; + RSA_set0_factors := nil; + RSA_set0_crt_params := nil; + RSA_get0_key := nil; + RSA_get0_factors := nil; + RSA_get_multi_prime_extra_count := nil; + RSA_get0_crt_params := nil; + RSA_get0_n := nil; + RSA_get0_e := nil; + RSA_get0_d := nil; + RSA_get0_p := nil; + RSA_get0_q := nil; + RSA_get0_dmp1 := nil; + RSA_get0_dmq1 := nil; + RSA_get0_iqmp := nil; + RSA_clear_flags := nil; + RSA_test_flags := nil; + RSA_set_flags := nil; + RSA_get_version := nil; + RSA_get0_engine := nil; + RSA_generate_key_ex := nil; + RSA_generate_multi_prime_key := nil; + RSA_X931_derive_ex := nil; + RSA_X931_generate_key_ex := nil; + RSA_check_key := nil; + RSA_check_key_ex := nil; + RSA_public_encrypt := nil; + RSA_private_encrypt := nil; + RSA_public_decrypt := nil; + RSA_private_decrypt := nil; + RSA_free := nil; + RSA_up_ref := nil; + RSA_flags := nil; + RSA_set_default_method := nil; + RSA_get_default_method := nil; + RSA_null_method := nil; + RSA_get_method := nil; + RSA_set_method := nil; + RSA_PKCS1_OpenSSL := nil; + RSA_pkey_ctx_ctrl := nil; + RSA_print := nil; + RSA_sign := nil; + RSA_verify := nil; + RSA_sign_ASN1_OCTET_STRING := nil; + RSA_verify_ASN1_OCTET_STRING := nil; + RSA_blinding_on := nil; + RSA_blinding_off := nil; + RSA_setup_blinding := nil; + RSA_padding_add_PKCS1_type_1 := nil; + RSA_padding_check_PKCS1_type_1 := nil; + RSA_padding_add_PKCS1_type_2 := nil; + RSA_padding_check_PKCS1_type_2 := nil; + PKCS1_MGF1 := nil; + RSA_padding_add_PKCS1_OAEP := nil; + RSA_padding_check_PKCS1_OAEP := nil; + RSA_padding_add_PKCS1_OAEP_mgf1 := nil; + RSA_padding_check_PKCS1_OAEP_mgf1 := nil; + RSA_padding_add_SSLv23 := nil; + RSA_padding_check_SSLv23 := nil; + RSA_padding_add_none := nil; + RSA_padding_check_none := nil; + RSA_padding_add_X931 := nil; + RSA_padding_check_X931 := nil; + RSA_X931_hash_id := nil; + RSA_verify_PKCS1_PSS := nil; + RSA_padding_add_PKCS1_PSS := nil; + RSA_verify_PKCS1_PSS_mgf1 := nil; + RSA_padding_add_PKCS1_PSS_mgf1 := nil; + RSA_set_ex_data := nil; + RSA_get_ex_data := nil; + RSAPublicKey_dup := nil; + RSAPrivateKey_dup := nil; + RSA_meth_new := nil; + RSA_meth_free := nil; + RSA_meth_dup := nil; + RSA_meth_get0_name := nil; + RSA_meth_set1_name := nil; + RSA_meth_get_flags := nil; + RSA_meth_set_flags := nil; + RSA_meth_get0_app_data := nil; + RSA_meth_set0_app_data := nil; + RSA_meth_set_priv_dec := nil; + RSA_meth_set_mod_exp := nil; + RSA_meth_set_bn_mod_exp := nil; + RSA_meth_set_init := nil; + RSA_meth_set_finish := nil; + RSA_meth_set_sign := nil; + RSA_meth_set_verify := nil; + RSA_meth_set_keygen := nil; + RSA_meth_set_multi_prime_keygen := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rsaerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rsaerr.pas new file mode 100644 index 000000000..2a08746f7 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_rsaerr.pas @@ -0,0 +1,245 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_rsaerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_rsaerr.h2pas + and this file regenerated. IdOpenSSLHeaders_rsaerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_rsaerr; + +interface + +// Headers for OpenSSL 1.1.1 +// rsaerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * RSA function codes. + *) + RSA_F_CHECK_PADDING_MD = 140; + RSA_F_ENCODE_PKCS1 = 146; + RSA_F_INT_RSA_VERIFY = 145; + RSA_F_OLD_RSA_PRIV_DECODE = 147; + RSA_F_PKEY_PSS_INIT = 165; + RSA_F_PKEY_RSA_CTRL = 143; + RSA_F_PKEY_RSA_CTRL_STR = 144; + RSA_F_PKEY_RSA_SIGN = 142; + RSA_F_PKEY_RSA_VERIFY = 149; + RSA_F_PKEY_RSA_VERIFYRECOVER = 141; + RSA_F_RSA_ALGOR_TO_MD = 156; + RSA_F_RSA_BUILTIN_KEYGEN = 129; + RSA_F_RSA_CHECK_KEY = 123; + RSA_F_RSA_CHECK_KEY_EX = 160; + RSA_F_RSA_CMS_DECRYPT = 159; + RSA_F_RSA_CMS_VERIFY = 158; + RSA_F_RSA_ITEM_VERIFY = 148; + RSA_F_RSA_METH_DUP = 161; + RSA_F_RSA_METH_NEW = 162; + RSA_F_RSA_METH_SET1_NAME = 163; + RSA_F_RSA_MGF1_TO_MD = 157; + RSA_F_RSA_MULTIP_INFO_NEW = 166; + RSA_F_RSA_NEW_METHOD = 106; + RSA_F_RSA_NULL = 124; + RSA_F_RSA_NULL_PRIVATE_DECRYPT = 132; + RSA_F_RSA_NULL_PRIVATE_ENCRYPT = 133; + RSA_F_RSA_NULL_PUBLIC_DECRYPT = 134; + RSA_F_RSA_NULL_PUBLIC_ENCRYPT = 135; + RSA_F_RSA_OSSL_PRIVATE_DECRYPT = 101; + RSA_F_RSA_OSSL_PRIVATE_ENCRYPT = 102; + RSA_F_RSA_OSSL_PUBLIC_DECRYPT = 103; + RSA_F_RSA_OSSL_PUBLIC_ENCRYPT = 104; + RSA_F_RSA_PADDING_ADD_NONE = 107; + RSA_F_RSA_PADDING_ADD_PKCS1_OAEP = 121; + RSA_F_RSA_PADDING_ADD_PKCS1_OAEP_MGF1 = 154; + RSA_F_RSA_PADDING_ADD_PKCS1_PSS = 125; + RSA_F_RSA_PADDING_ADD_PKCS1_PSS_MGF1 = 152; + RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1 = 108; + RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2 = 109; + RSA_F_RSA_PADDING_ADD_SSLV23 = 110; + RSA_F_RSA_PADDING_ADD_X931 = 127; + RSA_F_RSA_PADDING_CHECK_NONE = 111; + RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP = 122; + RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP_MGF1 = 153; + RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1 = 112; + RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2 = 113; + RSA_F_RSA_PADDING_CHECK_SSLV23 = 114; + RSA_F_RSA_PADDING_CHECK_X931 = 128; + RSA_F_RSA_PARAM_DECODE = 164; + RSA_F_RSA_PRINT = 115; + RSA_F_RSA_PRINT_FP = 116; + RSA_F_RSA_PRIV_DECODE = 150; + RSA_F_RSA_PRIV_ENCODE = 138; + RSA_F_RSA_PSS_GET_PARAM = 151; + RSA_F_RSA_PSS_TO_CTX = 155; + RSA_F_RSA_PUB_DECODE = 139; + RSA_F_RSA_SETUP_BLINDING = 136; + RSA_F_RSA_SIGN = 117; + RSA_F_RSA_SIGN_ASN1_OCTET_STRING = 118; + RSA_F_RSA_VERIFY = 119; + RSA_F_RSA_VERIFY_ASN1_OCTET_STRING = 120; + RSA_F_RSA_VERIFY_PKCS1_PSS_MGF1 = 126; + RSA_F_SETUP_TBUF = 167; + + (* + * RSA reason codes. + *) + RSA_R_ALGORITHM_MISMATCH = 100; + RSA_R_BAD_E_VALUE = 101; + RSA_R_BAD_FIXED_HEADER_DECRYPT = 102; + RSA_R_BAD_PAD_BYTE_COUNT = 103; + RSA_R_BAD_SIGNATURE = 104; + RSA_R_BLOCK_TYPE_IS_NOT_01 = 106; + RSA_R_BLOCK_TYPE_IS_NOT_02 = 107; + RSA_R_DATA_GREATER_THAN_MOD_LEN = 108; + RSA_R_DATA_TOO_LARGE = 109; + RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE = 110; + RSA_R_DATA_TOO_LARGE_FOR_MODULUS = 132; + RSA_R_DATA_TOO_SMALL = 111; + RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE = 122; + RSA_R_DIGEST_DOES_NOT_MATCH = 158; + RSA_R_DIGEST_NOT_ALLOWED = 145; + RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY = 112; + RSA_R_DMP1_NOT_CONGRUENT_TO_D = 124; + RSA_R_DMQ1_NOT_CONGRUENT_TO_D = 125; + RSA_R_D_E_NOT_CONGRUENT_TO_1 = 123; + RSA_R_FIRST_OCTET_INVALID = 133; + RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE = 144; + RSA_R_INVALID_DIGEST = 157; + RSA_R_INVALID_DIGEST_LENGTH = 143; + RSA_R_INVALID_HEADER = 137; + RSA_R_INVALID_LABEL = 160; + RSA_R_INVALID_MESSAGE_LENGTH = 131; + RSA_R_INVALID_MGF1_MD = 156; + RSA_R_INVALID_MULTI_PRIME_KEY = 167; + RSA_R_INVALID_OAEP_PARAMETERS = 161; + RSA_R_INVALID_PADDING = 138; + RSA_R_INVALID_PADDING_MODE = 141; + RSA_R_INVALID_PSS_PARAMETERS = 149; + RSA_R_INVALID_PSS_SALTLEN = 146; + RSA_R_INVALID_SALT_LENGTH = 150; + RSA_R_INVALID_TRAILER = 139; + RSA_R_INVALID_X931_DIGEST = 142; + RSA_R_IQMP_NOT_INVERSE_OF_Q = 126; + RSA_R_KEY_PRIME_NUM_INVALID = 165; + RSA_R_KEY_SIZE_TOO_SMALL = 120; + RSA_R_LAST_OCTET_INVALID = 134; + RSA_R_MISSING_PRIVATE_KEY = 179; + RSA_R_MGF1_DIGEST_NOT_ALLOWED = 152; + RSA_R_MODULUS_TOO_LARGE = 105; + RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R = 168; + RSA_R_MP_EXPONENT_NOT_CONGRUENT_TO_D = 169; + RSA_R_MP_R_NOT_PRIME = 170; + RSA_R_NO_PUBLIC_EXPONENT = 140; + RSA_R_NULL_BEFORE_BLOCK_MISSING = 113; + RSA_R_N_DOES_NOT_EQUAL_PRODUCT_OF_PRIMES = 172; + RSA_R_N_DOES_NOT_EQUAL_P_Q = 127; + RSA_R_OAEP_DECODING_ERROR = 121; + RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE = 148; + RSA_R_PADDING_CHECK_FAILED = 114; + RSA_R_PKCS_DECODING_ERROR = 159; + RSA_R_PSS_SALTLEN_TOO_SMALL = 164; + RSA_R_P_NOT_PRIME = 128; + RSA_R_Q_NOT_PRIME = 129; + RSA_R_RSA_OPERATIONS_NOT_SUPPORTED = 130; + RSA_R_SLEN_CHECK_FAILED = 136; + RSA_R_SLEN_RECOVERY_FAILED = 135; + RSA_R_SSLV3_ROLLBACK_ATTACK = 115; + RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD = 116; + RSA_R_UNKNOWN_ALGORITHM_TYPE = 117; + RSA_R_UNKNOWN_DIGEST = 166; + RSA_R_UNKNOWN_MASK_DIGEST = 151; + RSA_R_UNKNOWN_PADDING_TYPE = 118; + RSA_R_UNSUPPORTED_ENCRYPTION_TYPE = 162; + RSA_R_UNSUPPORTED_LABEL_SOURCE = 163; + RSA_R_UNSUPPORTED_MASK_ALGORITHM = 153; + RSA_R_UNSUPPORTED_MASK_PARAMETER = 154; + RSA_R_UNSUPPORTED_SIGNATURE_TYPE = 155; + RSA_R_VALUE_MISSING = 147; + RSA_R_WRONG_SIGNATURE_LENGTH = 119; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_RSA_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_RSA_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_RSA_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_RSA_strings := LoadFunction('ERR_load_RSA_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_RSA_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_sha.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_sha.pas new file mode 100644 index 000000000..8d50bd6b9 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_sha.pas @@ -0,0 +1,272 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_sha.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_sha.h2pas + and this file regenerated. IdOpenSSLHeaders_sha.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_sha; + +interface + +// Headers for OpenSSL 1.1.1 +// sha.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + SHA_LBLOCK = 16; + SHA_CBLOCK = SHA_LBLOCK * 4; + + SHA_LAST_BLOCK = SHA_CBLOCK - 8; + SHA_DIGEST_LENGTH = 20; + + SHA256_CBLOCK = SHA_LBLOCK * 4; + + SHA224_DIGEST_LENGTH = 28; + SHA256_DIGEST_LENGTH = 32; + SHA384_DIGEST_LENGTH = 48; + SHA512_DIGEST_LENGTH = 64; + + SHA512_CBLOCK = SHA_LBLOCK * 8; + +type + SHA_LONG = TIdC_UINT; + + SHAstate_sf = record + h0, h1, h2, h3, h4: SHA_LONG; + Nl, Nh: SHA_LONG; + data: array[0 .. SHA_LAST_BLOCK - 1] of SHA_LONG; + num: TIdC_UINT; + end; + SHA_CTX = SHAstate_sf; + PSHA_CTX = ^SHA_CTX; + + SHAstate256_sf = record + h: array[0..7] of SHA_LONG; + Nl, Nh: SHA_LONG; + data: array[0 .. SHA_LAST_BLOCK - 1] of SHA_LONG; + num, md_len: TIdC_UINT; + end; + SHA256_CTX = SHAstate256_sf; + PSHA256_CTX = ^SHA256_CTX; + + SHA_LONG64 = TIdC_UINT64; + + SHA512state_st_u = record + case Integer of + 0: (d: array[0 .. SHA_LBLOCK - 1] of SHA_LONG64); + 1: (p: array[0 .. SHA512_CBLOCK - 1] of Byte); + end; + + SHA512state_st = record + h: array[0..7] of SHA_LONG64; + Nl, Nh: SHA_LONG64; + u: SHA512state_st_u; + num, md_len: TIdC_UINT; + end; + SHA512_CTX = SHA512state_st; + PSHA512_CTX = ^SHA512_CTX; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM SHA1_Init} + {$EXTERNALSYM SHA1_Update} + {$EXTERNALSYM SHA1_Final} + {$EXTERNALSYM SHA1} + {$EXTERNALSYM SHA1_Transform} + {$EXTERNALSYM SHA224_Init} + {$EXTERNALSYM SHA224_Update} + {$EXTERNALSYM SHA224_Final} + {$EXTERNALSYM SHA224} + {$EXTERNALSYM SHA256_Init} + {$EXTERNALSYM SHA256_Update} + {$EXTERNALSYM SHA256_Final} + {$EXTERNALSYM SHA256} + {$EXTERNALSYM SHA256_Transform} + {$EXTERNALSYM SHA384_Init} + {$EXTERNALSYM SHA384_Update} + {$EXTERNALSYM SHA384_Final} + {$EXTERNALSYM SHA384} + {$EXTERNALSYM SHA512_Init} + {$EXTERNALSYM SHA512_Update} + {$EXTERNALSYM SHA512_Final} + {$EXTERNALSYM SHA512} + {$EXTERNALSYM SHA512_Transform} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + SHA1_Init: function(c: PSHA_CTX): TIdC_INT; cdecl = nil; + SHA1_Update: function(c: PSHA_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT; cdecl = nil; + SHA1_Final: function(md: PByte; c: PSHA_CTX): TIdC_INT; cdecl = nil; + SHA1: function(const d: PByte; n: TIdC_SIZET; md: PByte): PByte; cdecl = nil; + SHA1_Transform: procedure(c: PSHA_CTX; const data: PByte); cdecl = nil; + + SHA224_Init: function(c: PSHA256_CTX): TIdC_INT; cdecl = nil; + SHA224_Update: function(c: PSHA256_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT; cdecl = nil; + SHA224_Final: function(md: PByte; c: PSHA256_CTX): TIdC_INT; cdecl = nil; + SHA224: function(const d: PByte; n: TIdC_SIZET; md: PByte): PByte; cdecl = nil; + + SHA256_Init: function(c: PSHA256_CTX): TIdC_INT; cdecl = nil; + SHA256_Update: function(c: PSHA256_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT; cdecl = nil; + SHA256_Final: function(md: PByte; c: PSHA256_CTX): TIdC_INT; cdecl = nil; + SHA256: function(const d: PByte; n: TIdC_SIZET; md: PByte): PByte; cdecl = nil; + SHA256_Transform: procedure(c: PSHA256_CTX; const data: PByte); cdecl = nil; + + SHA384_Init: function(c: PSHA512_CTX): TIdC_INT; cdecl = nil; + SHA384_Update: function(c: PSHA512_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT; cdecl = nil; + SHA384_Final: function(md: PByte; c: PSHA512_CTX): TIdC_INT; cdecl = nil; + SHA384: function(const d: PByte; n: TIdC_SIZET; md: PByte): PByte; cdecl = nil; + + SHA512_Init: function(c: PSHA512_CTX): TIdC_INT; cdecl = nil; + SHA512_Update: function(c: PSHA512_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT; cdecl = nil; + SHA512_Final: function(md: PByte; c: PSHA512_CTX): TIdC_INT; cdecl = nil; + SHA512: function(const d: PByte; n: TIdC_SIZET; md: PByte): PByte; cdecl = nil; + SHA512_Transform: procedure(c: PSHA512_CTX; const data: PByte); cdecl = nil; + +{$ELSE} + function SHA1_Init(c: PSHA_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA1_Update(c: PSHA_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA1_Final(md: PByte; c: PSHA_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA1(const d: PByte; n: TIdC_SIZET; md: PByte): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure SHA1_Transform(c: PSHA_CTX; const data: PByte) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function SHA224_Init(c: PSHA256_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA224_Update(c: PSHA256_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA224_Final(md: PByte; c: PSHA256_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA224(const d: PByte; n: TIdC_SIZET; md: PByte): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function SHA256_Init(c: PSHA256_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA256_Update(c: PSHA256_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA256_Final(md: PByte; c: PSHA256_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA256(const d: PByte; n: TIdC_SIZET; md: PByte): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure SHA256_Transform(c: PSHA256_CTX; const data: PByte) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function SHA384_Init(c: PSHA512_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA384_Update(c: PSHA512_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA384_Final(md: PByte; c: PSHA512_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA384(const d: PByte; n: TIdC_SIZET; md: PByte): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function SHA512_Init(c: PSHA512_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA512_Update(c: PSHA512_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA512_Final(md: PByte; c: PSHA512_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SHA512(const d: PByte; n: TIdC_SIZET; md: PByte): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure SHA512_Transform(c: PSHA512_CTX; const data: PByte) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + SHA1_Init := LoadFunction('SHA1_Init',AFailed); + SHA1_Update := LoadFunction('SHA1_Update',AFailed); + SHA1_Final := LoadFunction('SHA1_Final',AFailed); + SHA1 := LoadFunction('SHA1',AFailed); + SHA1_Transform := LoadFunction('SHA1_Transform',AFailed); + SHA224_Init := LoadFunction('SHA224_Init',AFailed); + SHA224_Update := LoadFunction('SHA224_Update',AFailed); + SHA224_Final := LoadFunction('SHA224_Final',AFailed); + SHA224 := LoadFunction('SHA224',AFailed); + SHA256_Init := LoadFunction('SHA256_Init',AFailed); + SHA256_Update := LoadFunction('SHA256_Update',AFailed); + SHA256_Final := LoadFunction('SHA256_Final',AFailed); + SHA256 := LoadFunction('SHA256',AFailed); + SHA256_Transform := LoadFunction('SHA256_Transform',AFailed); + SHA384_Init := LoadFunction('SHA384_Init',AFailed); + SHA384_Update := LoadFunction('SHA384_Update',AFailed); + SHA384_Final := LoadFunction('SHA384_Final',AFailed); + SHA384 := LoadFunction('SHA384',AFailed); + SHA512_Init := LoadFunction('SHA512_Init',AFailed); + SHA512_Update := LoadFunction('SHA512_Update',AFailed); + SHA512_Final := LoadFunction('SHA512_Final',AFailed); + SHA512 := LoadFunction('SHA512',AFailed); + SHA512_Transform := LoadFunction('SHA512_Transform',AFailed); +end; + +procedure Unload; +begin + SHA1_Init := nil; + SHA1_Update := nil; + SHA1_Final := nil; + SHA1 := nil; + SHA1_Transform := nil; + SHA224_Init := nil; + SHA224_Update := nil; + SHA224_Final := nil; + SHA224 := nil; + SHA256_Init := nil; + SHA256_Update := nil; + SHA256_Final := nil; + SHA256 := nil; + SHA256_Transform := nil; + SHA384_Init := nil; + SHA384_Update := nil; + SHA384_Final := nil; + SHA384 := nil; + SHA512_Init := nil; + SHA512_Update := nil; + SHA512_Final := nil; + SHA512 := nil; + SHA512_Transform := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_srtp.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_srtp.pas new file mode 100644 index 000000000..d100c1cf8 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_srtp.pas @@ -0,0 +1,128 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_srtp.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_srtp.h2pas + and this file regenerated. IdOpenSSLHeaders_srtp.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_srtp; + +interface + +// Headers for OpenSSL 1.1.1 +// srtp.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_ssl; + +const + SRTP_AES128_CM_SHA1_80 = $0001; + SRTP_AES128_CM_SHA1_32 = $0002; + SRTP_AES128_F8_SHA1_80 = $0003; + SRTP_AES128_F8_SHA1_32 = $0004; + SRTP_NULL_SHA1_80 = $0005; + SRTP_NULL_SHA1_32 = $0006; + + (* AEAD SRTP protection profiles from RFC 7714 *) + SRTP_AEAD_AES_128_GCM = $0007; + SRTP_AEAD_AES_256_GCM = $0008; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM SSL_CTX_set_tlsext_use_srtp} + {$EXTERNALSYM SSL_set_tlsext_use_srtp} + {$EXTERNALSYM SSL_get_selected_srtp_profile} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + SSL_CTX_set_tlsext_use_srtp: function(ctx: PSSL_CTX; const profiles: PIdAnsiChar): TIdC_INT; cdecl = nil; + SSL_set_tlsext_use_srtp: function(ctx: PSSL_CTX; const profiles: PIdAnsiChar): TIdC_INT; cdecl = nil; + + //function SSL_get_srtp_profiles(s: PSSL): PSTACK_OF_SRTP_PROTECTION_PROFILE; + SSL_get_selected_srtp_profile: function(s: PSSL): PSRTP_PROTECTION_PROFILE; cdecl = nil; + +{$ELSE} + function SSL_CTX_set_tlsext_use_srtp(ctx: PSSL_CTX; const profiles: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function SSL_set_tlsext_use_srtp(ctx: PSSL_CTX; const profiles: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //function SSL_get_srtp_profiles(s: PSSL): PSTACK_OF_SRTP_PROTECTION_PROFILE; + function SSL_get_selected_srtp_profile(s: PSSL): PSRTP_PROTECTION_PROFILE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + SSL_CTX_set_tlsext_use_srtp := LoadFunction('SSL_CTX_set_tlsext_use_srtp',AFailed); + SSL_set_tlsext_use_srtp := LoadFunction('SSL_set_tlsext_use_srtp',AFailed); + SSL_get_selected_srtp_profile := LoadFunction('SSL_get_selected_srtp_profile',AFailed); +end; + +procedure Unload; +begin + SSL_CTX_set_tlsext_use_srtp := nil; + SSL_set_tlsext_use_srtp := nil; + SSL_get_selected_srtp_profile := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ssl.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ssl.pas new file mode 100644 index 000000000..494be93a0 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ssl.pas @@ -0,0 +1,14819 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_ssl.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_ssl.h2pas + and this file regenerated. IdOpenSSLHeaders_ssl.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ssl; + +interface + +// Headers for OpenSSL 1.1.1 +// ssl.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_async, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_crypto, + IdOpenSSLHeaders_pem, + IdOpenSSLHeaders_tls1, + IdOpenSSLHeaders_ssl3, + IdOpenSSLHeaders_x509; + +{$MINENUMSIZE 4} + +const + (* OpenSSL version number for ASN.1 encoding of the session information *) + (*- + * Version 0 - initial version + * Version 1 - added the optional peer certificate + *) + SSL_SESSION_ASN1_VERSION = $0001; + + SSL_MAX_SSL_SESSION_ID_LENGTH = 32; + SSL_MAX_SID_CTX_LENGTH = 32; + + SSL_MIN_RSA_MODULUS_LENGTH_IN_BYTES = 512/8; + SSL_MAX_KEY_ARG_LENGTH = 8; + SSL_MAX_MASTER_KEY_LENGTH = 48; + + (* The maximum number of encrypt/decrypt pipelines we can support *) + SSL_MAX_PIPELINES = 32; + + (* text strings for the ciphers *) + + (* These are used to specify which ciphers to use and not to use *) + + SSL_TXT_LOW = AnsiString('LOW'); + SSL_TXT_MEDIUM = AnsiString('MEDIUM'); + SSL_TXT_HIGH = AnsiString('HIGH'); + SSL_TXT_FIPS = AnsiString('FIPS'); + + SSL_TXT_aNULL = AnsiString('aNULL'); + SSL_TXT_eNULL = AnsiString('eNULL'); + SSL_TXT_NULL = AnsiString('NULL'); + + SSL_TXT_kRSA = AnsiString('kRSA'); + SSL_TXT_kDHr = AnsiString('kDHr'); + SSL_TXT_kDHd = AnsiString('kDHd'); + SSL_TXT_kDH = AnsiString('kDH'); + SSL_TXT_kEDH = AnsiString('kEDH'); + SSL_TXT_kDHE = AnsiString('kDHE'); + SSL_TXT_kECDHr = AnsiString('kECDHr'); +//const SSL_TXT_kECDHe = AnsiString('kECDHe'); + SSL_TXT_kECDH = AnsiString('kECDH'); + SSL_TXT_kEECDH = AnsiString('kEECDH'); + SSL_TXT_kECDHE = AnsiString('kECDHE'); + SSL_TXT_kPSK = AnsiString('kPSK'); + SSL_TXT_kRSAPSK = AnsiString('kRSAPSK'); + SSL_TXT_kECDHEPSK = AnsiString('kECDHEPSK'); + SSL_TXT_kDHEPSK = AnsiString('kDHEPSK'); + SSL_TXT_kGOST = AnsiString('kGOST'); + SSL_TXT_kSRP = AnsiString('kSRP'); + + SSL_TXT_aRSA = AnsiString('aRSA'); + SSL_TXT_aDSS = AnsiString('aDSS'); + SSL_TXT_aDH = AnsiString('aDH'); + SSL_TXT_aECDH = AnsiString('aECDH'); + SSL_TXT_aECDSA = AnsiString('aECDSA'); + SSL_TXT_aPSK = AnsiString('aPSK'); + SSL_TXT_aGOST94 = AnsiString('aGOST94'); + SSL_TXT_aGOST01 = AnsiString('aGOST01'); + SSL_TXT_aGOST12 = AnsiString('aGOST12'); + SSL_TXT_aGOST = AnsiString('aGOST'); + SSL_TXT_aSRP = AnsiString('aSRP'); + + SSL_TXT_DSS = AnsiString('DSS'); + SSL_TXT_DH = AnsiString('DH'); + SSL_TXT_DHE = AnsiString('DHE'); + SSL_TXT_EDH = AnsiString('EDH'); + //SSL_TXT_ADH = AnsiString('ADH'); + SSL_TXT_RSA = AnsiString('RSA'); + SSL_TXT_ECDH = AnsiString('ECDH'); + SSL_TXT_EECDH = AnsiString('EECDH'); + SSL_TXT_ECDHE = AnsiString('ECDHE'); + //SSL_TXT_AECDH = AnsiString('AECDH'); + SSL_TXT_ECDSA = AnsiString('ECDSA'); + SSL_TXT_PSK = AnsiString('PSK'); + SSL_TXT_SRP = AnsiString('SRP'); + + SSL_TXT_DES = AnsiString('DES'); + SSL_TXT_3DES = AnsiString('3DES'); + SSL_TXT_RC4 = AnsiString('RC4'); + SSL_TXT_RC2 = AnsiString('RC2'); + SSL_TXT_IDEA = AnsiString('IDEA'); + SSL_TXT_SEED = AnsiString('SEED'); + SSL_TXT_AES128 = AnsiString('AES128'); + SSL_TXT_AES256 = AnsiString('AES256'); + SSL_TXT_AES = AnsiString('AES'); + SSL_TXT_AES_GCM = AnsiString('AESGCM'); + SSL_TXT_AES_CCM = AnsiString('AESCCM'); + SSL_TXT_AES_CCM_8 = AnsiString('AESCCM8'); + SSL_TXT_CAMELLIA128 = AnsiString('CAMELLIA128'); + SSL_TXT_CAMELLIA256 = AnsiString('CAMELLIA256'); + SSL_TXT_CAMELLIA = AnsiString('CAMELLIA'); + SSL_TXT_CHACHA20 = AnsiString('CHACHA20'); + SSL_TXT_GOST = AnsiString('GOST89'); + SSL_TXT_ARIA = AnsiString('ARIA'); + SSL_TXT_ARIA_GCM = AnsiString('ARIAGCM'); + SSL_TXT_ARIA128 = AnsiString('ARIA128'); + SSL_TXT_ARIA256 = AnsiString('ARIA256'); + + SSL_TXT_MD5 = AnsiString('MD5'); + SSL_TXT_SHA1 = AnsiString('SHA1'); + SSL_TXT_SHA = AnsiString('SHA'); + SSL_TXT_GOST94 = AnsiString('GOST94'); + SSL_TXT_GOST89MAC = AnsiString('GOST89MAC'); + SSL_TXT_GOST12 = AnsiString('GOST12'); + SSL_TXT_GOST89MAC12 = AnsiString('GOST89MAC12'); + SSL_TXT_SHA256 = AnsiString('SHA256'); + SSL_TXT_SHA384 = AnsiString('SHA384'); + + SSL_TXT_SSLV3 = AnsiString('SSLv3'); + SSL_TXT_TLSV1 = AnsiString('TLSv1'); + SSL_TXT_TLSV1_1 = AnsiString('TLSv1.1'); + SSL_TXT_TLSV1_2 = AnsiString('TLSv1.2'); + + SSL_TXT_ALL = AnsiString('ALL'); + + (*- + * COMPLEMENTOF* definitions. These identifiers are used to (de-select) + * ciphers normally not being used. + * Example: "RC4" will activate all ciphers using RC4 including ciphers + * without authentication, which would normally disabled by DEFAULT (due + * the "!ADH" being part of default). Therefore "RC4:!COMPLEMENTOFDEFAULT" + * will make sure that it is also disabled in the specific selection. + * COMPLEMENTOF* identifiers are portable between version, as adjustments + * to the default cipher setup will also be included here. + * + * COMPLEMENTOFDEFAULT does not experience the same special treatment that + * DEFAULT gets, as only selection is being done and no sorting as needed + * for DEFAULT. + *) + SSL_TXT_CMPALL = AnsiString('COMPLEMENTOFALL'); + SSL_TXT_CMPDEF = AnsiString('COMPLEMENTOFDEFAULT'); + + (* + * The following cipher list is used by default. It also is substituted when + * an application-defined cipher list string starts with 'DEFAULT'. + * This applies to ciphersuites for TLSv1.2 and below. + *) + SSL_DEFAULT_CIPHER_LIST = AnsiString('ALL:!COMPLEMENTOFDEFAULT:!eNULL'); + (* This is the default set of TLSv1.3 ciphersuites *) + TLS_DEFAULT_CIPHERSUITES = AnsiString('TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256'); + + (* + * As of OpenSSL 1.0.0, ssl_create_cipher_list() in ssl/ssl_ciph.c always + * starts with a reasonable order, and all we have to do for DEFAULT is + * throwing out anonymous and unencrypted ciphersuites! (The latter are not + * actually enabled by ALL, but "ALL:RSA" would enable some of them.) + *) + + (* Used in SSL_set_shutdown()/SSL_get_shutdown(); *) + SSL_SENT_SHUTDOWN = 1; + SSL_RECEIVED_SHUTDOWN = 2; + + SSL_FILETYPE_ASN1 = X509_FILETYPE_ASN1; + SSL_FILETYPE_PEM = X509_FILETYPE_PEM; + + {Error codes for the SSL functions.} + SSL_F_SSL_CTX_USE_CERTIFICATE_CHAIN_FILE = 220; + + (* Extension context codes *) + (* This extension is only allowed in TLS *) + SSL_EXT_TLS_ONLY = $0001; + (* This extension is only allowed in DTLS *) + SSL_EXT_DTLS_ONLY = $0002; + (* Some extensions may be allowed in DTLS but we don't implement them for it *) + SSL_EXT_TLS_IMPLEMENTATION_ONLY = $0004; + (* Most extensions are not defined for SSLv3 but EXT_TYPE_renegotiate is *) + SSL_EXT_SSL3_ALLOWED = $0008; + (* Extension is only defined for TLS1.2 and below *) + SSL_EXT_TLS1_2_AND_BELOW_ONLY = $0010; + (* Extension is only defined for TLS1.3 and above *) + SSL_EXT_TLS1_3_ONLY = $0020; + (* Ignore this extension during parsing if we are resuming *) + SSL_EXT_IGNORE_ON_RESUMPTION = $0040; + SSL_EXT_CLIENT_HELLO = $0080; + (* Really means TLS1.2 or below *) + SSL_EXT_TLS1_2_SERVER_HELLO = $0100; + SSL_EXT_TLS1_3_SERVER_HELLO = $0200; + SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS = $0400; + SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST = $0800; + SSL_EXT_TLS1_3_CERTIFICATE = $1000; + SSL_EXT_TLS1_3_NEW_SESSION_TICKET = $2000; + SSL_EXT_TLS1_3_CERTIFICATE_REQUEST = $4000; + + (* + * Some values are reserved until OpenSSL 1.2.0 because they were previously + * included in SSL_OP_ALL in a 1.1.x release. + * + * Reserved value (until OpenSSL 1.2.0) $00000001U + * Reserved value (until OpenSSL 1.2.0) $00000002U + *) + (* Allow initial connection to servers that don't support RI *) + SSL_OP_LEGACY_SERVER_CONNECT = TIdC_UINT($00000004); + + (* Reserved value (until OpenSSL 1.2.0) $00000008U *) + SSL_OP_TLSEXT_PADDING = TIdC_UINT($00000010); + (* Reserved value (until OpenSSL 1.2.0) $00000020U *) + SSL_OP_SAFARI_ECDHE_ECDSA_BUG = TIdC_UINT($00000040); + (* + * Reserved value (until OpenSSL 1.2.0) $00000080U + * Reserved value (until OpenSSL 1.2.0) $00000100U + * Reserved value (until OpenSSL 1.2.0) $00000200U + *) + + (* In TLSv1.3 allow a non-(ec)dhe based kex_mode *) + SSL_OP_ALLOW_NO_DHE_KEX = TIdC_UINT($00000400); + + (* + * Disable SSL 3.0/TLS 1.0 CBC vulnerability workaround that was added in + * OpenSSL 0.9.6d. Usually (depending on the application protocol) the + * workaround is not needed. Unfortunately some broken SSL/TLS + * implementations cannot handle it at all, which is why we include it in + * SSL_OP_ALL. Added in 0.9.6e + *) + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS = TIdC_UINT($00000800); + + (* DTLS options *) + SSL_OP_NO_QUERY_MTU = TIdC_UINT($00001000); + (* Turn on Cookie Exchange (on relevant for servers) *) + SSL_OP_COOKIE_EXCHANGE = TIdC_UINT($00002000); + (* Don't use RFC4507 ticket extension *) + SSL_OP_NO_TICKET = TIdC_UINT($00004000); + (* Use Cisco's "speshul" version of DTLS_BAD_VER + * (only with deprecated DTLSv1_client_method()) *) + SSL_OP_CISCO_ANYCONNECT = TIdC_UINT($00008000); + + (* As server, disallow session resumption on renegotiation *) + SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION = TIdC_UINT($00010000); + (* Don't use compression even if supported *) + SSL_OP_NO_COMPRESSION = TIdC_UINT($00020000); + (* Permit unsafe legacy renegotiation *) + SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION = TIdC_UINT($00040000); + (* Disable encrypt-then-mac *) + SSL_OP_NO_ENCRYPT_THEN_MAC = TIdC_UINT($00080000); + + (* + * Enable TLSv1.3 Compatibility mode. This is on by default. A future version + * of OpenSSL may have this disabled by default. + *) + SSL_OP_ENABLE_MIDDLEBOX_COMPAT = TIdC_UINT($00100000); + + (* Prioritize Chacha20Poly1305 when client does. + * Modifies SSL_OP_CIPHER_SERVER_PREFERENCE *) + SSL_OP_PRIORITIZE_CHACHA = TIdC_UINT($00200000); + + (* + * Set on servers to choose the cipher according to the server's preferences + *) + SSL_OP_CIPHER_SERVER_PREFERENCE = TIdC_UINT($00400000); + (* + * If set, a server will allow a client to issue a SSLv3.0 version number as + * latest version supported in the premaster secret, even when TLSv1.0 + * (version 3.1) was announced in the client hello. Normally this is + * forbidden to prevent version rollback attacks. + *) + SSL_OP_TLS_ROLLBACK_BUG = TIdC_UINT($00800000); + + (* + * Switches off automatic TLSv1.3 anti-replay protection for early data. This + * is a server-side option only (no effect on the client). + *) + SSL_OP_NO_ANTI_REPLAY = TIdC_UINT($01000000); + + SSL_OP_NO_SSLv3 = TIdC_UINT($02000000); + SSL_OP_NO_TLSv1 = TIdC_UINT($04000000); + SSL_OP_NO_TLSv1_2 = TIdC_UINT($08000000); + SSL_OP_NO_TLSv1_1 = TIdC_UINT($10000000); + SSL_OP_NO_TLSv1_3 = TIdC_UINT($20000000); + + SSL_OP_NO_DTLSv1 = TIdC_UINT($04000000); + SSL_OP_NO_DTLSv1_2 = TIdC_UINT($08000000); + + SSL_OP_NO_SSL_MASK = SSL_OP_NO_SSLv3 or SSL_OP_NO_TLSv1 or SSL_OP_NO_TLSv1_1 + or SSL_OP_NO_TLSv1_2 or SSL_OP_NO_TLSv1_3; + SSL_OP_NO_DTLS_MASK = SSL_OP_NO_DTLSv1 or SSL_OP_NO_DTLSv1_2; + + (* Disallow all renegotiation *) + SSL_OP_NO_RENEGOTIATION = TIdC_UINT($40000000); + + (* + * Make server add server-hello extension from early version of cryptopro + * draft, when GOST ciphersuite is negotiated. Required for interoperability + * with CryptoPro CSP 3.x + *) + SSL_OP_CRYPTOPRO_TLSEXT_BUG = TIdC_UINT($80000000); + + (* + * SSL_OP_ALL: various bug workarounds that should be rather harmless. + * This used to be $000FFFFFL before 0.9.7. + * This used to be $80000BFFU before 1.1.1. + *) + SSL_OP_ALL = SSL_OP_CRYPTOPRO_TLSEXT_BUG or SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + or SSL_OP_LEGACY_SERVER_CONNECT or SSL_OP_TLSEXT_PADDING or SSL_OP_SAFARI_ECDHE_ECDSA_BUG; + + (* OBSOLETE OPTIONS: retained for compatibility *) + + (* Removed from OpenSSL 1.1.0. Was $00000001L *) + (* Related to removed SSLv2. *) + SSL_OP_MICROSOFT_SESS_ID_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $00000002L *) + (* Related to removed SSLv2. *) + SSL_OP_NETSCAPE_CHALLENGE_BUG = $0; + (* Removed from OpenSSL 0.9.8q and 1.0.0c. Was $00000008L *) + (* Dead forever, see CVE-2010-4180 *) + SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG = $0; + (* Removed from OpenSSL 1.0.1h and 1.0.2. Was $00000010L *) + (* Refers to ancient SSLREF and SSLv2. *) + SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $00000020 *) + SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER = $0; + (* Removed from OpenSSL 0.9.7h and 0.9.8b. Was $00000040L *) + SSL_OP_MSIE_SSLV2_RSA_PADDING = $0; + (* Removed from OpenSSL 1.1.0. Was $00000080 *) + (* Ancient SSLeay version. *) + SSL_OP_SSLEAY_080_CLIENT_DH_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $00000100L *) + SSL_OP_TLS_D5_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $00000200L *) + SSL_OP_TLS_BLOCK_PADDING_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $00080000L *) + SSL_OP_SINGLE_ECDH_USE = $0; + (* Removed from OpenSSL 1.1.0. Was $00100000L *) + SSL_OP_SINGLE_DH_USE = $0; + (* Removed from OpenSSL 1.0.1k and 1.0.2. Was $00200000L *) + SSL_OP_EPHEMERAL_RSA = $0; + (* Removed from OpenSSL 1.1.0. Was $01000000L *) + SSL_OP_NO_SSLv2 = $0; + (* Removed from OpenSSL 1.0.1. Was $08000000L *) + SSL_OP_PKCS1_CHECK_1 = $0; + (* Removed from OpenSSL 1.0.1. Was $10000000L *) + SSL_OP_PKCS1_CHECK_2 = $0; + (* Removed from OpenSSL 1.1.0. Was $20000000L *) + SSL_OP_NETSCAPE_CA_DN_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $40000000L *) + SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG = $0; + + (* + * Allow SSL_write(..., n) to return r with 0 < r < n (i.e. report success + * when just a single record has been written): + *) + SSL_MODE_ENABLE_PARTIAL_WRITE = TIdC_UINT($00000001); + (* + * Make it possible to retry SSL_write() with changed buffer location (buffer + * contents must stay the same!); this is not the default to avoid the + * misconception that non-blocking SSL_write() behaves like non-blocking + * write(): + *) + SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER = TIdC_UINT($00000002); + (* + * Never bother the application with retries if the transport is blocking: + *) + SSL_MODE_AUTO_RETRY = TIdC_UINT($00000004); + (* Don't attempt to automatically build certificate chain *) + SSL_MODE_NO_AUTO_CHAIN = TIdC_UINT($00000008); + (* + * Save RAM by releasing read and write buffers when they're empty. (SSL3 and + * TLS only.) Released buffers are freed. + *) + SSL_MODE_RELEASE_BUFFERS = TIdC_UINT($00000010); + (* + * Send the current time in the Random fields of the ClientHello and + * ServerHello records for compatibility with hypothetical implementations + * that require it. + *) + SSL_MODE_SEND_CLIENTHELLO_TIME = TIdC_UINT($00000020); + SSL_MODE_SEND_SERVERHELLO_TIME = TIdC_UINT($00000040); + (* + * Send TLS_FALLBACK_SCSV in the ClientHello. To be set only by applications + * that reconnect with a downgraded protocol version; see + * draft-ietf-tls-downgrade-scsv-00 for details. DO NOT ENABLE THIS if your + * application attempts a normal handshake. Only use this in explicit + * fallback retries, following the guidance in + * draft-ietf-tls-downgrade-scsv-00. + *) + SSL_MODE_SEND_FALLBACK_SCSV = TIdC_UINT($00000080); + (* + * Support Asynchronous operation + *) + SSL_MODE_ASYNC = TIdC_UINT($00000100); + + (* + * 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 + *) + SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG = TIdC_UINT($00000400); + + (* Cert related flags *) + (* + * Many implementations ignore some aspects of the TLS standards such as + * enforcing certificate chain algorithms. When this is set we enforce them. + *) + SSL_CERT_FLAG_TLS_STRICT = TIdC_UINT($00000001); + (* Suite B modes, takes same values as certificate verify flags *) + SSL_CERT_FLAG_SUITEB_128_LOS_ONLY = $10000; + (* Suite B 192 bit only mode *) + SSL_CERT_FLAG_SUITEB_192_LOS = $20000; + (* Suite B 128 bit mode allowing 192 bit algorithms *) + SSL_CERT_FLAG_SUITEB_128_LOS = $30000; + + (* Perform all sorts of protocol violations for testing purposes *) + SSL_CERT_FLAG_BROKEN_PROTOCOL = $10000000; + + (* Flags for building certificate chains *) + (* Treat any existing certificates as untrusted CAs *) + SSL_BUILD_CHAIN_FLAG_UNTRUSTED = $1; + (* Don't include root CA in chain *) + SSL_BUILD_CHAIN_FLAG_NO_ROOT = $2; + (* Just check certificates already there *) + SSL_BUILD_CHAIN_FLAG_CHECK = $4; + (* Ignore verification errors *) + SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR = $8; + (* Clear verification errors from queue *) + SSL_BUILD_CHAIN_FLAG_CLEAR_ERROR = $10; + + (* Flags returned by SSL_check_chain *) + (* Certificate can be used with this session *) + CERT_PKEY_VALID = $1; + (* Certificate can also be used for signing *) + CERT_PKEY_SIGN = $2; + (* EE certificate signing algorithm OK *) + CERT_PKEY_EE_SIGNATURE = $10; + (* CA signature algorithms OK *) + CERT_PKEY_CA_SIGNATURE = $20; + (* EE certificate parameters OK *) + CERT_PKEY_EE_PARAM = $40; + (* CA certificate parameters OK *) + CERT_PKEY_CA_PARAM = $80; + (* Signing explicitly allowed as opposed to SHA1 fallback *) + CERT_PKEY_EXPLICIT_SIGN = $100; + (* Client CA issuer names match (always set for server cert) *) + CERT_PKEY_ISSUER_NAME = $200; + (* Cert type matches client types (always set for server cert) *) + CERT_PKEY_CERT_TYPE = $400; + (* Cert chain suitable to Suite B *) + CERT_PKEY_SUITEB = $800; + + SSL_CONF_FLAG_CMDLINE = $1; + SSL_CONF_FLAG_FILE = $2; + SSL_CONF_FLAG_CLIENT = $4; + SSL_CONF_FLAG_SERVER = $8; + SSL_CONF_FLAG_SHOW_ERRORS = $10; + SSL_CONF_FLAG_CERTIFICATE = $20; + SSL_CONF_FLAG_REQUIRE_PRIVATE = $40; + (* Configuration value types *) + SSL_CONF_TYPE_UNKNOWN = $0; + SSL_CONF_TYPE_STRING = $1; + SSL_CONF_TYPE_FILE = $2; + SSL_CONF_TYPE_DIR = $3; + SSL_CONF_TYPE_NONE = $4; + + (* Maximum length of the application-controlled segment of a a TLSv1.3 cookie *) + SSL_COOKIE_LENGTH = 4096; + + (* 100k max cert list *) + SSL_MAX_CERT_LIST_DEFAULT = 1024 * 100; + SSL_SESSION_CACHE_MAX_SIZE_DEFAULT = 1024 * 20; + + SSL_SESS_CACHE_OFF = $0000; + SSL_SESS_CACHE_CLIENT = $0001; + SSL_SESS_CACHE_SERVER = $0002; + SSL_SESS_CACHE_BOTH = (SSL_SESS_CACHE_CLIENT or SSL_SESS_CACHE_SERVER); + SSL_SESS_CACHE_NO_AUTO_CLEAR = $0080; + (* enough comments already ... see SSL_CTX_set_session_cache_mode(3) *) + SSL_SESS_CACHE_NO_INTERNAL_LOOKUP = $0100; + SSL_SESS_CACHE_NO_INTERNAL_STORE = $0200; + SSL_SESS_CACHE_NO_INTERNAL = (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP or SSL_SESS_CACHE_NO_INTERNAL_STORE); + + OPENSSL_NPN_UNSUPPORTED = 0; + OPENSSL_NPN_NEGOTIATED = 1; + OPENSSL_NPN_NO_OVERLAP = 2; + + (* + * the maximum length of the buffer given to callbacks containing the + * resulting identity/psk + *) + PSK_MAX_IDENTITY_LEN = 128; + PSK_MAX_PSK_LEN = 256; + + SSL_NOTHING = 1; + SSL_WRITING = 2; + SSL_READING = 3; + SSL_X509_LOOKUP = 4; + SSL_ASYNC_PAUSED = 5; + SSL_ASYNC_NO_JOBS = 6; + SSL_CLIENT_HELLO_CB = 7; + + SSL_MAC_FLAG_READ_MAC_STREAM = 1; + SSL_MAC_FLAG_WRITE_MAC_STREAM = 2; + + (* TLSv1.3 KeyUpdate message types *) + (* -1 used so that this is an invalid value for the on-the-wire protocol *) + SSL_KEY_UPDATE_NONE = -1; + (* Values as defined for the on-the-wire protocol *) + SSL_KEY_UPDATE_NOT_REQUESTED = 0; + SSL_KEY_UPDATE_REQUESTED = 1; + + (* + * Most of the following state values are no longer used and are defined to be + * the closest equivalent value in_ the current state machine code. Not all + * defines have an equivalent and are set to a dummy value (-1). SSL_ST_CONNECT + * and SSL_ST_ACCEPT are still in_ use in_ the definition of SSL_CB_ACCEPT_LOOP, + * SSL_CB_ACCEPT_EXIT, SSL_CB_CONNECT_LOOP and SSL_CB_CONNECT_EXIT. + *) + SSL_ST_CONNECT = $1000; + SSL_ST_ACCEPT = $2000; + + SSL_ST_MASK = $0FFF; + + SSL_CB_LOOP = $01; + SSL_CB_EXIT = $02; + SSL_CB_READ = $04; + SSL_CB_WRITE = $08; + SSL_CB_ALERT = $4000; + SSL_CB_READ_ALERT = SSL_CB_ALERT or SSL_CB_READ; + SSL_CB_WRITE_ALERT = SSL_CB_ALERT or SSL_CB_WRITE; + SSL_CB_ACCEPT_LOOP = SSL_ST_ACCEPT or SSL_CB_LOOP; + SSL_CB_ACCEPT_EXIT = SSL_ST_ACCEPT or SSL_CB_EXIT; + SSL_CB_CONNECT_LOOP = SSL_ST_CONNECT or SSL_CB_LOOP; + SSL_CB_CONNECT_EXIT = SSL_ST_CONNECT or SSL_CB_EXIT; + SSL_CB_HANDSHAKE_START = $10; + SSL_CB_HANDSHAKE_DONE = $20; + + (* + * The following 3 states are kept in ssl->rlayer.rstate when reads fail, you + * should not need these + *) + SSL_ST_READ_HEADER = $F0; + SSL_ST_READ_BODY = $F1; + SSL_ST_READ_DONE = $F2; + + (* + * use either SSL_VERIFY_NONE or SSL_VERIFY_PEER, the last 3 options are + * 'ored' with SSL_VERIFY_PEER if they are desired + *) + SSL_VERIFY_NONE = $00; + SSL_VERIFY_PEER = $01; + SSL_VERIFY_FAIL_IF_NO_PEER_CERT = $02; + SSL_VERIFY_CLIENT_ONCE = $04; + SSL_VERIFY_POST_HANDSHAKE = $08; + + SSL_AD_REASON_OFFSET = 1000; (* offset to get SSL_R_... value + * from SSL_AD_... *) + (* These alert types are for SSLv3 and TLSv1 *) + SSL_AD_CLOSE_NOTIFY = SSL3_AD_CLOSE_NOTIFY; + (* fatal *) + SSL_AD_UNEXPECTED_MESSAGE = SSL3_AD_UNEXPECTED_MESSAGE; + (* fatal *) + SSL_AD_BAD_RECORD_MAC = SSL3_AD_BAD_RECORD_MAC; + SSL_AD_DECRYPTION_FAILED = TLS1_AD_DECRYPTION_FAILED; + SSL_AD_RECORD_OVERFLOW = TLS1_AD_RECORD_OVERFLOW; + (* fatal *) + SSL_AD_DECOMPRESSION_FAILURE = SSL3_AD_DECOMPRESSION_FAILURE; + (* fatal *) + SSL_AD_HANDSHAKE_FAILURE = SSL3_AD_HANDSHAKE_FAILURE; + (* Not for TLS *) + SSL_AD_NO_CERTIFICATE = SSL3_AD_NO_CERTIFICATE; + SSL_AD_BAD_CERTIFICATE = SSL3_AD_BAD_CERTIFICATE; + SSL_AD_UNSUPPORTED_CERTIFICATE = SSL3_AD_UNSUPPORTED_CERTIFICATE; + SSL_AD_CERTIFICATE_REVOKED = SSL3_AD_CERTIFICATE_REVOKED; + SSL_AD_CERTIFICATE_EXPIRED = SSL3_AD_CERTIFICATE_EXPIRED; + SSL_AD_CERTIFICATE_UNKNOWN = SSL3_AD_CERTIFICATE_UNKNOWN; + (* fatal *) + SSL_AD_ILLEGAL_PARAMETER = SSL3_AD_ILLEGAL_PARAMETER; + (* fatal *) + SSL_AD_UNKNOWN_CA = TLS1_AD_UNKNOWN_CA; + (* fatal *) + SSL_AD_ACCESS_DENIED = TLS1_AD_ACCESS_DENIED; + (* fatal *) + SSL_AD_DECODE_ERROR = TLS1_AD_DECODE_ERROR; + SSL_AD_DECRYPT_ERROR = TLS1_AD_DECRYPT_ERROR; + (* fatal *) + SSL_AD_EXPORT_RESTRICTION = TLS1_AD_EXPORT_RESTRICTION; + (* fatal *) + SSL_AD_PROTOCOL_VERSION = TLS1_AD_PROTOCOL_VERSION; + (* fatal *) + SSL_AD_INSUFFICIENT_SECURITY = TLS1_AD_INSUFFICIENT_SECURITY; + (* fatal *) + SSL_AD_INTERNAL_ERROR = TLS1_AD_INTERNAL_ERROR; + SSL_AD_USER_CANCELLED = TLS1_AD_USER_CANCELLED; + SSL_AD_NO_RENEGOTIATION = TLS1_AD_NO_RENEGOTIATION; + SSL_AD_MISSING_EXTENSION = TLS13_AD_MISSING_EXTENSION; + SSL_AD_CERTIFICATE_REQUIRED = TLS13_AD_CERTIFICATE_REQUIRED; + SSL_AD_UNSUPPORTED_EXTENSION = TLS1_AD_UNSUPPORTED_EXTENSION; + SSL_AD_CERTIFICATE_UNOBTAINABLE = TLS1_AD_CERTIFICATE_UNOBTAINABLE; + SSL_AD_UNRECOGNIZED_NAME = TLS1_AD_UNRECOGNIZED_NAME; + SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE = TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE; + SSL_AD_BAD_CERTIFICATE_HASH_VALUE = TLS1_AD_BAD_CERTIFICATE_HASH_VALUE; + (* fatal *) + SSL_AD_UNKNOWN_PSK_IDENTITY = TLS1_AD_UNKNOWN_PSK_IDENTITY; + (* fatal *) + SSL_AD_INAPPROPRIATE_FALLBACK = TLS1_AD_INAPPROPRIATE_FALLBACK; + SSL_AD_NO_APPLICATION_PROTOCOL = TLS1_AD_NO_APPLICATION_PROTOCOL; + SSL_ERROR_NONE = 0; + SSL_ERROR_SSL = 1; + SSL_ERROR_WANT_READ = 2; + SSL_ERROR_WANT_WRITE = 3; + SSL_ERROR_WANT_X509_LOOKUP = 4; + SSL_ERROR_SYSCALL = 5; (* look at error stack/return + * value/errno *) + SSL_ERROR_ZERO_RETURN = 6; + SSL_ERROR_WANT_CONNECT = 7; + SSL_ERROR_WANT_ACCEPT = 8; + SSL_ERROR_WANT_ASYNC = 9; + SSL_ERROR_WANT_ASYNC_JOB = 10; + SSL_ERROR_WANT_CLIENT_HELLO_CB = 11; + SSL_CTRL_SET_TMP_DH = 3; + SSL_CTRL_SET_TMP_ECDH = 4; + SSL_CTRL_SET_TMP_DH_CB = 6; + SSL_CTRL_GET_CLIENT_CERT_REQUEST = 9; + SSL_CTRL_GET_NUM_RENEGOTIATIONS = 10; + SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS = 11; + SSL_CTRL_GET_TOTAL_RENEGOTIATIONS = 12; + SSL_CTRL_GET_FLAGS = 13; + SSL_CTRL_EXTRA_CHAIN_CERT = 14; + SSL_CTRL_SET_MSG_CALLBACK = 15; + SSL_CTRL_SET_MSG_CALLBACK_ARG = 16; + (* only applies to datagram connections *) + SSL_CTRL_SET_MTU = 17; + (* Stats *) + SSL_CTRL_SESS_NUMBER = 20; + SSL_CTRL_SESS_CONNECT = 21; + SSL_CTRL_SESS_CONNECT_GOOD = 22; + SSL_CTRL_SESS_CONNECT_RENEGOTIATE = 23; + SSL_CTRL_SESS_ACCEPT = 24; + SSL_CTRL_SESS_ACCEPT_GOOD = 25; + SSL_CTRL_SESS_ACCEPT_RENEGOTIATE = 26; + SSL_CTRL_SESS_HIT = 27; + SSL_CTRL_SESS_CB_HIT = 28; + SSL_CTRL_SESS_MISSES = 29; + SSL_CTRL_SESS_TIMEOUTS = 30; + SSL_CTRL_SESS_CACHE_FULL = 31; + SSL_CTRL_MODE = 33; + SSL_CTRL_GET_READ_AHEAD = 40; + SSL_CTRL_SET_READ_AHEAD = 41; + SSL_CTRL_SET_SESS_CACHE_SIZE = 42; + SSL_CTRL_GET_SESS_CACHE_SIZE = 43; + SSL_CTRL_SET_SESS_CACHE_MODE = 44; + SSL_CTRL_GET_SESS_CACHE_MODE = 45; + SSL_CTRL_GET_MAX_CERT_LIST = 50; + SSL_CTRL_SET_MAX_CERT_LIST = 51; + SSL_CTRL_SET_MAX_SEND_FRAGMENT = 52; + (* see tls1.h for macros based on these *) + SSL_CTRL_SET_TLSEXT_SERVERNAME_CB = 53; + SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG = 54; + SSL_CTRL_SET_TLSEXT_HOSTNAME = 55; + SSL_CTRL_SET_TLSEXT_DEBUG_CB = 56; + SSL_CTRL_SET_TLSEXT_DEBUG_ARG = 57; + SSL_CTRL_GET_TLSEXT_TICKET_KEYS = 58; + SSL_CTRL_SET_TLSEXT_TICKET_KEYS = 59; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB = 63; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG = 64; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE = 65; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS = 66; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS = 67; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS = 68; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS = 69; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP = 70; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP = 71; + SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB = 72; + SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB = 75; + SSL_CTRL_SET_SRP_VERIFY_PARAM_CB = 76; + SSL_CTRL_SET_SRP_GIVE_CLIENT_PWD_CB = 77; + SSL_CTRL_SET_SRP_ARG = 78; + SSL_CTRL_SET_TLS_EXT_SRP_USERNAME = 79; + SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH = 80; + SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD = 81; + SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT = 85; + SSL_CTRL_GET_DTLS_EXT_HEARTBEAT_PENDING = 86; + SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS = 87; + DTLS_CTRL_GET_TIMEOUT = 73; + DTLS_CTRL_HANDLE_TIMEOUT = 74; + SSL_CTRL_GET_RI_SUPPORT = 76; + SSL_CTRL_CLEAR_MODE = 78; + SSL_CTRL_SET_NOT_RESUMABLE_SESS_CB = 79; + SSL_CTRL_GET_EXTRA_CHAIN_CERTS = 82; + SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS = 83; + SSL_CTRL_CHAIN = 88; + SSL_CTRL_CHAIN_CERT = 89; + SSL_CTRL_GET_GROUPS = 90; + SSL_CTRL_SET_GROUPS = 91; + SSL_CTRL_SET_GROUPS_LIST = 92; + SSL_CTRL_GET_SHARED_GROUP = 93; + SSL_CTRL_SET_SIGALGS = 97; + SSL_CTRL_SET_SIGALGS_LIST = 98; + SSL_CTRL_CERT_FLAGS = 99; + SSL_CTRL_CLEAR_CERT_FLAGS = 100; + SSL_CTRL_SET_CLIENT_SIGALGS = 101; + SSL_CTRL_SET_CLIENT_SIGALGS_LIST = 102; + SSL_CTRL_GET_CLIENT_CERT_TYPES = 103; + SSL_CTRL_SET_CLIENT_CERT_TYPES = 104; + SSL_CTRL_BUILD_CERT_CHAIN = 105; + SSL_CTRL_SET_VERIFY_CERT_STORE = 106; + SSL_CTRL_SET_CHAIN_CERT_STORE = 107; + SSL_CTRL_GET_PEER_SIGNATURE_NID = 108; + SSL_CTRL_GET_PEER_TMP_KEY = 109; + SSL_CTRL_GET_RAW_CIPHERLIST = 110; + SSL_CTRL_GET_EC_POINT_FORMATS = 111; + SSL_CTRL_GET_CHAIN_CERTS = 115; + SSL_CTRL_SELECT_CURRENT_CERT = 116; + SSL_CTRL_SET_CURRENT_CERT = 117; + SSL_CTRL_SET_DH_AUTO = 118; + DTLS_CTRL_SET_LINK_MTU = 120; + DTLS_CTRL_GET_LINK_MIN_MTU = 121; + SSL_CTRL_GET_EXTMS_SUPPORT = 122; + SSL_CTRL_SET_MIN_PROTO_VERSION = 123; + SSL_CTRL_SET_MAX_PROTO_VERSION = 124; + SSL_CTRL_SET_SPLIT_SEND_FRAGMENT = 125; + SSL_CTRL_SET_MAX_PIPELINES = 126; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE = 127; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB = 128; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG = 129; + SSL_CTRL_GET_MIN_PROTO_VERSION = 130; + SSL_CTRL_GET_MAX_PROTO_VERSION = 131; + SSL_CTRL_GET_SIGNATURE_NID = 132; + SSL_CTRL_GET_TMP_KEY = 133; + SSL_CERT_SET_FIRST = 1; + SSL_CERT_SET_NEXT = 2; + SSL_CERT_SET_SERVER = 3; + + (* + * The following symbol names are old and obsolete. They are kept + * for compatibility reasons only and should not be used anymore. + *) + SSL_CTRL_GET_CURVES = SSL_CTRL_GET_GROUPS; + SSL_CTRL_SET_CURVES = SSL_CTRL_SET_GROUPS; + SSL_CTRL_SET_CURVES_LIST = SSL_CTRL_SET_GROUPS_LIST; + SSL_CTRL_GET_SHARED_CURVE = SSL_CTRL_GET_SHARED_GROUP; + +// SSL_get1_curves = SSL_get1_groups; +// SSL_CTX_set1_curves = SSL_CTX_set1_groups; +// SSL_CTX_set1_curves_list = SSL_CTX_set1_groups_list; +// SSL_set1_curves = SSL_set1_groups; +// SSL_set1_curves_list = SSL_set1_groups_list; +// SSL_get_shared_curve = SSL_get_shared_group; + + (* serverinfo file format versions *) + SSL_SERVERINFOV1 = 1; + SSL_SERVERINFOV2 = 2; + + SSL_CLIENT_HELLO_SUCCESS = 1; + SSL_CLIENT_HELLO_ERROR = 0; + SSL_CLIENT_HELLO_RETRY = -1; + + SSL_READ_EARLY_DATA_ERROR = 0; + SSL_READ_EARLY_DATA_SUCCESS = 1; + SSL_READ_EARLY_DATA_FINISH = 2; + + SSL_EARLY_DATA_NOT_SENT = 0; + SSL_EARLY_DATA_REJECTED = 1; + SSL_EARLY_DATA_ACCEPTED = 2; + + //SSLv23_method = TLS_method; + //SSLv23_server_method = TLS_server_method; + //SSLv23_client_method = TLS_client_method; + + (* What the 'other' parameter contains in_ security callback *) + (* Mask for type *) + SSL_SECOP_OTHER_TYPE = $ffff0000; + SSL_SECOP_OTHER_NONE = 0; + SSL_SECOP_OTHER_CIPHER = (1 shl 16); + SSL_SECOP_OTHER_CURVE = (2 shl 16); + SSL_SECOP_OTHER_DH = (3 shl 16); + SSL_SECOP_OTHER_PKEY = (4 shl 16); + SSL_SECOP_OTHER_SIGALG = (5 shl 16); + SSL_SECOP_OTHER_CERT = (6 shl 16); + + (* Indicated operation refers to peer key or certificate *) + SSL_SECOP_PEER = $1000; + + (* Values for "op" parameter in security callback *) + + (* Called to filter ciphers *) + (* Ciphers client supports *) + SSL_SECOP_CIPHER_SUPPORTED = 1 or SSL_SECOP_OTHER_CIPHER; + (* Cipher shared by client/server *) + SSL_SECOP_CIPHER_SHARED = 2 or SSL_SECOP_OTHER_CIPHER; + (* Sanity check of cipher server selects *) + SSL_SECOP_CIPHER_CHECK = 3 or SSL_SECOP_OTHER_CIPHER; + (* Curves supported by client *) + SSL_SECOP_CURVE_SUPPORTED = 4 or SSL_SECOP_OTHER_CURVE; + (* Curves shared by client/server *) + SSL_SECOP_CURVE_SHARED = 5 or SSL_SECOP_OTHER_CURVE; + (* Sanity check of curve server selects *) + SSL_SECOP_CURVE_CHECK = 6 or SSL_SECOP_OTHER_CURVE; + (* Temporary DH key *) + SSL_SECOP_TMP_DH = 7 or SSL_SECOP_OTHER_PKEY; + (* SSL/TLS version *) + SSL_SECOP_VERSION = 9 or SSL_SECOP_OTHER_NONE; + (* Session tickets *) + SSL_SECOP_TICKET = 10 or SSL_SECOP_OTHER_NONE; + (* Supported signature algorithms sent to peer *) + SSL_SECOP_SIGALG_SUPPORTED = 11 or SSL_SECOP_OTHER_SIGALG; + (* Shared signature algorithm *) + SSL_SECOP_SIGALG_SHARED = 12 or SSL_SECOP_OTHER_SIGALG; + (* Sanity check signature algorithm allowed *) + SSL_SECOP_SIGALG_CHECK = 13 or SSL_SECOP_OTHER_SIGALG; + (* Used to get mask of supported public key signature algorithms *) + SSL_SECOP_SIGALG_MASK = 14 or SSL_SECOP_OTHER_SIGALG; + (* Use to see if compression is allowed *) + SSL_SECOP_COMPRESSION = 15 or SSL_SECOP_OTHER_NONE; + (* EE key in certificate *) + SSL_SECOP_EE_KEY = 16 or SSL_SECOP_OTHER_CERT; + (* CA key in certificate *) + SSL_SECOP_CA_KEY = 17 or SSL_SECOP_OTHER_CERT; + (* CA digest algorithm in certificate *) + SSL_SECOP_CA_MD = 18 or SSL_SECOP_OTHER_CERT; + (* Peer EE key in certificate *) + SSL_SECOP_PEER_EE_KEY = SSL_SECOP_EE_KEY or SSL_SECOP_PEER; + (* Peer CA key in certificate *) + SSL_SECOP_PEER_CA_KEY = SSL_SECOP_CA_KEY or SSL_SECOP_PEER; + (* Peer CA digest algorithm in certificate *) + SSL_SECOP_PEER_CA_MD = SSL_SECOP_CA_MD or SSL_SECOP_PEER; + + (* OPENSSL_INIT flag 0x010000 reserved for internal use *) + OPENSSL_INIT_NO_LOAD_SSL_STRINGS = TIdC_LONG($00100000); + OPENSSL_INIT_LOAD_SSL_STRINGS = TIdC_LONG($00200000); + OPENSSL_INIT_SSL_DEFAULT = OPENSSL_INIT_LOAD_SSL_STRINGS or OPENSSL_INIT_LOAD_CRYPTO_STRINGS; + + (* Support for ticket appdata *) + (* fatal error, malloc failure *) + SSL_TICKET_FATAL_ERR_MALLOC = 0; + (* fatal error, either from parsing or decrypting the ticket *) + SSL_TICKET_FATAL_ERR_OTHER = 1; + (* No ticket present *) + SSL_TICKET_NONE = 2; + (* Empty ticket present *) + SSL_TICKET_EMPTY = 3; + (* the ticket couldn't be decrypted *) + SSL_TICKET_NO_DECRYPT = 4; + (* a ticket was successfully decrypted *) + SSL_TICKET_SUCCESS = 5; + (* same as above but the ticket needs to be renewed *) + SSL_TICKET_SUCCESS_RENEW = 6; + + (* An error occurred *) + SSL_TICKET_RETURN_ABORT = 0; + (* Do not use the ticket, do not send a renewed ticket to the client *) + SSL_TICKET_RETURN_IGNORE = 1; + (* Do not use the ticket, send a renewed ticket to the client *) + SSL_TICKET_RETURN_IGNORE_RENEW = 2; + (* Use the ticket, do not send a renewed ticket to the client *) + SSL_TICKET_RETURN_USE = 3; + (* Use the ticket, send a renewed ticket to the client *) + SSL_TICKET_RETURN_USE_RENEW = 4; + +type + (* + * This is needed to stop compilers complaining about the 'struct ssl_st *' + * function parameters used to prototype callbacks in SSL_CTX. + *) + ssl_crock_st = ^ssl_st; + TLS_SESSION_TICKET_EXT = tls_session_ticket_ext_st; + ssl_method_st = type Pointer; + SSL_METHOD = ssl_method_st; + PSSL_METHOD = ^SSL_METHOD; + ssl_session_st = type Pointer; + SSL_CIPHER = ssl_session_st; + PSSL_CIPHER = ^SSL_CIPHER; + SSL_SESSION = ssl_session_st; + PSSL_SESSION = ^SSL_SESSION; + PPSSL_SESSION = ^PSSL_SESSION; + tls_sigalgs_st = type Pointer; + TLS_SIGALGS = tls_sigalgs_st; + ssl_conf_ctx_st = type Pointer; + SSL_CONF_CTX = ssl_conf_ctx_st; + PSSL_CONF_CTX = ^SSL_CONF_CTX; + ssl_comp_st = type Pointer; + SSL_COMP = ssl_comp_st; + + + //STACK_OF(SSL_CIPHER); + //STACK_OF(SSL_COMP); + + (* SRTP protection profiles for use with the use_srtp extension (RFC 5764)*) + srtp_protection_profile_st = record + name: PIdAnsiChar; + id: TIdC_ULONG; + end; + SRTP_PROTECTION_PROFILE = srtp_protection_profile_st; + PSRTP_PROTECTION_PROFILE = ^SRTP_PROTECTION_PROFILE; + + //DEFINE_STACK_OF(SRTP_PROTECTION_PROFILE) + + (* Typedefs for handling custom extensions *) + custom_ext_add_cb = function (s: PSSL; ext_type: TIdC_UINT; const out_: PByte; outlen: PIdC_SIZET; al: PIdC_INT; add_arg: Pointer): TIdC_INT; cdecl; + custom_ext_free_cb = procedure (s: PSSL; ext_type: TIdC_UINT; const out_: PByte; add_arg: Pointer); cdecl; + custom_ext_parse_cb = function (s: PSSL; ext_type: TIdC_UINT; const in_: PByte; inlen: TIdC_SIZET; al: PIdC_INT; parse_arg: Pointer): TIdC_INT; cdecl; + + SSL_custom_ext_add_cb_ex = function (s: PSSL; ext_type: TIdC_UINT; context: TIdC_UINT; const out_: PByte; outlen: PIdC_SIZET; x: Px509; chainidx: TIdC_SIZET; al: PIdC_INT; add_arg: Pointer): TIdC_INT; cdecl; + SSL_custom_ext_free_cb_ex = procedure (s: PSSL; ext_type: TIdC_UINT; context: TIdC_UINT; const out_: PByte; add_arg: Pointer); cdecl; + SSL_custom_ext_parse_cb_ex = function (s: PSSL; ext_type: TIdC_UINT; context: TIdC_UINT; const in_: PByte; inlen: TIdC_SIZET; x: Px509; chainidx: TIdC_SIZET; al: PIdC_INT; parse_arg: Pointer): TIdC_INT; cdecl; + + (* Typedef for verification callback *) + SSL_verify_cb = function (preverify_ok: TIdC_INT; x509_ctx: PX509_STORE_CTX): TIdC_INT; cdecl; + + tls_session_ticket_ext_cb_fn = function (s: PSSL; const data: PByte; len: TIdC_INT; arg: Pointer): TIdC_INT; cdecl; + + (* + * This callback type is used inside SSL_CTX, SSL, and in_ the functions that + * set them. It is used to override the generation of SSL/TLS session IDs in_ + * a server. Return value should be zero on an error, non-zero to proceed. + * Also, callbacks should themselves check if the id they generate is unique + * otherwise the SSL handshake will fail with an error - callbacks can do + * this using the 'ssl' value they're passed by; + * SSL_has_matching_session_id(ssl, id, *id_len) The length value passed in_ + * is set at the maximum size the session ID can be. in_ SSLv3/TLSv1 it is 32 + * bytes. The callback can alter this length to be less if desired. It is + * also an error for the callback to set the size to zero. + *) + GEN_SESSION_CB = function (ssl: PSSL; id: PByte; id_len: PIdC_UINT): TIdC_INT; cdecl; + + SSL_CTX_info_callback = procedure (const ssl: PSSL; type_: TIdC_INT; val: TIdC_INT); cdecl; + SSL_CTX_client_cert_cb = function (ssl: PSSL; x509: PPx509; pkey: PPEVP_PKEY): TIdC_INT; cdecl; + + SSL_CTX_cookie_verify_cb = function (ssl: PSSL; cookie: PByte; cookie_len: PIdC_UINT): TIdC_INT; cdecl; + SSL_CTX_set_cookie_verify_cb_app_verify_cookie_cb = function (ssl: PSSL; const cookie: PByte; cookie_len: TIdC_UINT): TIdC_INT; cdecl; + SSL_CTX_set_stateless_cookie_generate_cb_gen_stateless_cookie_cb = function (ssl: PSSL; cookie: PByte; cookie_len: PIdC_SIZET): TIdC_INT; cdecl; + SSL_CTX_set_stateless_cookie_verify_cb_verify_stateless_cookie_cb = function (ssl: PSSL; const cookie: PByte; cookie_len: TIdC_SIZET): TIdC_INT; cdecl; + + SSL_CTX_alpn_select_cb_func = function (ssl: PSSL; const out_: PPByte; outlen: PByte; const in_: PByte; inlen: TIdC_UINT; arg: Pointer): TIdC_INT; cdecl; + SSL_psk_client_cb_func = function (ssl: PSSL; const hint: PIdAnsiChar; identity: PIdAnsiChar; max_identity_len: TIdC_UINT; psk: PByte; max_psk_len: TIdC_UINT): TIdC_UINT; cdecl; + SSL_psk_server_cb_func = function (ssl: PSSL; const identity: PIdAnsiChar; psk: PByte; max_psk_len: TIdC_UINT): TIdC_UINT; cdecl; + SSL_psk_find_session_cb_func = function (ssl: PSSL; const identity: PByte; identity_len: TIdC_SIZET; sess: PPSSL_SESSION): TIdC_INT; cdecl; + SSL_psk_use_session_cb_func = function (ssl: PSSL; const md: PEVP_MD; const id: PPByte; idlen: PIdC_SIZET; sess: PPSSL_SESSION): TIdC_INT; cdecl; + + (* + * A callback for logging out TLS key material. This callback should log out + * |line| followed by a newline. + *) + SSL_CTX_keylog_cb_func = procedure(const ssl: PSSL; const line: PIdAnsiChar); cdecl; + + (* + * The valid handshake states (one for each type message sent and one for each + * type of message received). There are also two "special" states: + * TLS = TLS or DTLS state + * DTLS = DTLS specific state + * CR/SR = Client Read/Server Read + * CW/SW = Client Write/Server Write + * + * The "special" states are: + * TLS_ST_BEFORE = No handshake has been initiated yet + * TLS_ST_OK = A handshake has been successfully completed + *) + TLS_ST_OK = ( + DTLS_ST_CR_HELLO_VERIFY_REQUEST, + TLS_ST_CR_SRVR_HELLO, + TLS_ST_CR_CERT, + TLS_ST_CR_CERT_STATUS, + TLS_ST_CR_KEY_EXCH, + TLS_ST_CR_CERT_REQ, + TLS_ST_CR_SRVR_DONE, + TLS_ST_CR_SESSION_TICKET, + TLS_ST_CR_CHANGE, + TLS_ST_CR_FINISHED, + TLS_ST_CW_CLNT_HELLO, + TLS_ST_CW_CERT, + TLS_ST_CW_KEY_EXCH, + TLS_ST_CW_CERT_VRFY, + TLS_ST_CW_CHANGE, + TLS_ST_CW_NEXT_PROTO, + TLS_ST_CW_FINISHED, + TLS_ST_SW_HELLO_REQ, + TLS_ST_SR_CLNT_HELLO, + DTLS_ST_SW_HELLO_VERIFY_REQUEST, + TLS_ST_SW_SRVR_HELLO, + TLS_ST_SW_CERT, + TLS_ST_SW_KEY_EXCH, + TLS_ST_SW_CERT_REQ, + TLS_ST_SW_SRVR_DONE, + TLS_ST_SR_CERT, + TLS_ST_SR_KEY_EXCH, + TLS_ST_SR_CERT_VRFY, + TLS_ST_SR_NEXT_PROTO, + TLS_ST_SR_CHANGE, + TLS_ST_SR_FINISHED, + TLS_ST_SW_SESSION_TICKET, + TLS_ST_SW_CERT_STATUS, + TLS_ST_SW_CHANGE, + TLS_ST_SW_FINISHED, + TLS_ST_SW_ENCRYPTED_EXTENSIONS, + TLS_ST_CR_ENCRYPTED_EXTENSIONS, + TLS_ST_CR_CERT_VRFY, + TLS_ST_SW_CERT_VRFY, + TLS_ST_CR_HELLO_REQ, + TLS_ST_SW_KEY_UPDATE, + TLS_ST_CW_KEY_UPDATE, + TLS_ST_SR_KEY_UPDATE, + TLS_ST_CR_KEY_UPDATE, + TLS_ST_EARLY_DATA, + TLS_ST_PENDING_EARLY_DATA_END, + TLS_ST_CW_END_OF_EARLY_DATA + ); + OSSL_HANDSHAKE_STATE = TLS_ST_OK; + + SSL_CTX_set_cert_verify_callback_cb = function (v1: PX509_STORE_CTX; v2: Pointer): TIdC_INT; cdecl; + SSL_CTX_set_cert_cb_cb = function (ssl: PSSL; arg: Pointer): TIdC_INT; cdecl; + + SSL_CTX_set_srp_client_pwd_callback_cb = function (v1: PSSL; v2: Pointer): PIdAnsiChar; cdecl; + SSL_CTX_set_srp_verify_param_callback_cb = function (v1: PSSL; v2: Pointer): TIdC_INT; cdecl; + SSL_CTX_set_srp_username_callback_cb = function (v1: PSSL; v2: PIdC_INT; v3: Pointer): TIdC_INT; cdecl; + SSL_client_hello_cb_fn = function (s: PSSL; al: PIdC_INT; arg: Pointer): TIdC_INT; cdecl; + SSL_callback_ctrl_v3 = procedure; cdecl; + SSL_CTX_callback_ctrl_v3 = procedure; cdecl; + SSL_info_callback = procedure (const ssl: PSSL; type_: TIdC_INT; val: TIdC_INT); cdecl; + + (* NB: the |keylength| is only applicable when is_export is true *) + SSL_CTX_set_tmp_dh_callback_dh = function (ssl: PSSL; is_export: TIdC_INT; keylength: TIdC_INT): PDH; cdecl; + SSL_set_tmp_dh_callback_dh = function (ssl: PSSL; is_export: TIdC_INT; keylength: TIdC_INT): PDH; cdecl; + SSL_CTX_set_not_resumable_session_callback_cb = function (ssl: PSSL; is_forward_secure: TIdC_INT): TIdC_INT; cdecl; + SSL_set_not_resumable_session_callback_cb = function (ssl: PSSL; is_forward_secure: TIdC_INT): TIdC_INT; cdecl; + SSL_CTX_set_record_padding_callback_cb = function (ssl: PSSL; type_: TIdC_INT; len: TIdC_SIZET; arg: Pointer): TIdC_SIZET; cdecl; + SSL_set_record_padding_callback_cb = function (ssl: PSSL; type_: TIdC_INT; len: TIdC_SIZET; arg: Pointer): TIdC_SIZET; cdecl; + + (* + * The validation type enumerates the available behaviours of the built-in SSL + * CT validation callback selected via SSL_enable_ct() and SSL_CTX_enable_ct(). + * The underlying callback is a static function in libssl. + *) + SSL_CT_VALIDATION = ( + SSL_CT_VALIDATION_PERMISSIVE = 0, + SSL_CT_VALIDATION_STRICT + ); + SSL_security_callback = function (const s: PSSL; const ctx: PSSL_CTX; op: TIdC_INT; bits: TIdC_INT; nid: TIdC_INT; other: Pointer; ex: Pointer): TIdC_INT; cdecl; + + (* Status codes passed to the decrypt session ticket callback. Some of these + * are for internal use only and are never passed to the callback. *) + SSL_TICKET_STATUS = TIdC_INT; + SSL_TICKET_RETURN = TIdC_INT; + + SSL_CTX_generate_session_ticket_fn = function(s: PSSL; arg: Pointer): TIdC_INT; cdecl; + + SSL_CTX_decrypt_session_ticket_fn = function (s: PSSL; ss: PSSL_SESSION; const keyname: PByte; keyname_length: TIdC_SIZET; status: SSL_TICKET_STATUS; arg: Pointer): SSL_TICKET_RETURN; cdecl; + + DTLS_timer_cb = function(s: PSSL; timer_us: TIdC_UINT): TIdC_UINT; cdecl; + SSL_allow_early_data_cb_fn = function(s: PSSL; arg: Pointer): TIdC_INT; cdecl; + + SSL_CTX_sess_new_cb = function (ssl: PSSL; sess: PSSL_SESSION): TIdC_INT; cdecl; + + SSL_CTX_sess_remove_cb = procedure(ctx: PSSL_CTX; sess: PSSL_SESSION); cdecl; + + TSSL_CTX_set_verify_callback = function (ok : TIdC_INT; ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM SSL_CTX_get_options} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_options} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_clear_options} {introduced 1.1.0} + {$EXTERNALSYM SSL_clear_options} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_options} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_options} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_sess_set_new_cb} + {$EXTERNALSYM SSL_CTX_sess_get_new_cb} + {$EXTERNALSYM SSL_CTX_sess_set_remove_cb} + {$EXTERNALSYM SSL_CTX_sess_get_remove_cb} + {$EXTERNALSYM SSL_CTX_set_info_callback} + {$EXTERNALSYM SSL_CTX_get_info_callback} + {$EXTERNALSYM SSL_CTX_set_client_cert_cb} + {$EXTERNALSYM SSL_CTX_get_client_cert_cb} + {$EXTERNALSYM SSL_CTX_set_client_cert_engine} + {$EXTERNALSYM SSL_CTX_set_cookie_generate_cb} + {$EXTERNALSYM SSL_CTX_set_cookie_verify_cb} + {$EXTERNALSYM SSL_CTX_set_stateless_cookie_generate_cb} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_stateless_cookie_verify_cb} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_alpn_select_cb} + {$EXTERNALSYM SSL_get0_alpn_selected} + {$EXTERNALSYM SSL_CTX_set_psk_client_callback} + {$EXTERNALSYM SSL_set_psk_client_callback} + {$EXTERNALSYM SSL_CTX_set_psk_server_callback} + {$EXTERNALSYM SSL_set_psk_server_callback} + {$EXTERNALSYM SSL_set_psk_find_session_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_psk_find_session_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_psk_use_session_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_psk_use_session_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_keylog_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_get_keylog_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_max_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_get_max_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_max_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_max_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_recv_max_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_get_recv_max_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_recv_max_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_recv_max_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_in_init} {introduced 1.1.0} + {$EXTERNALSYM SSL_in_before} {introduced 1.1.0} + {$EXTERNALSYM SSL_is_init_finished} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_finished} + {$EXTERNALSYM SSL_get_peer_finished} + {$EXTERNALSYM BIO_f_ssl} + {$EXTERNALSYM BIO_new_ssl} + {$EXTERNALSYM BIO_new_ssl_connect} + {$EXTERNALSYM BIO_new_buffer_ssl_connect} + {$EXTERNALSYM BIO_ssl_copy_session_id} + {$EXTERNALSYM SSL_CTX_set_cipher_list} + {$EXTERNALSYM SSL_CTX_new} + {$EXTERNALSYM SSL_CTX_set_timeout} + {$EXTERNALSYM SSL_CTX_get_timeout} + {$EXTERNALSYM SSL_CTX_get_cert_store} + {$EXTERNALSYM SSL_want} + {$EXTERNALSYM SSL_clear} + {$EXTERNALSYM BIO_ssl_shutdown} + {$EXTERNALSYM SSL_CTX_up_ref} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_free} + {$EXTERNALSYM SSL_CTX_set_cert_store} + {$EXTERNALSYM SSL_CTX_set1_cert_store} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_flush_sessions} + {$EXTERNALSYM SSL_get_current_cipher} + {$EXTERNALSYM SSL_get_pending_cipher} {introduced 1.1.0} + {$EXTERNALSYM SSL_CIPHER_get_bits} + {$EXTERNALSYM SSL_CIPHER_get_version} + {$EXTERNALSYM SSL_CIPHER_get_name} + {$EXTERNALSYM SSL_CIPHER_standard_name} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_cipher_name} {introduced 1.1.0} + {$EXTERNALSYM SSL_CIPHER_get_id} + {$EXTERNALSYM SSL_CIPHER_get_protocol_id} {introduced 1.1.0} + {$EXTERNALSYM SSL_CIPHER_get_kx_nid} {introduced 1.1.0} + {$EXTERNALSYM SSL_CIPHER_get_auth_nid} {introduced 1.1.0} + {$EXTERNALSYM SSL_CIPHER_get_handshake_digest} {introduced 1.1.0} + {$EXTERNALSYM SSL_CIPHER_is_aead} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_fd} + {$EXTERNALSYM SSL_get_rfd} + {$EXTERNALSYM SSL_get_wfd} + {$EXTERNALSYM SSL_get_cipher_list} + {$EXTERNALSYM SSL_get_shared_ciphers} + {$EXTERNALSYM SSL_get_read_ahead} + {$EXTERNALSYM SSL_pending} + {$EXTERNALSYM SSL_has_pending} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_fd} + {$EXTERNALSYM SSL_set_rfd} + {$EXTERNALSYM SSL_set_wfd} + {$EXTERNALSYM SSL_set0_rbio} {introduced 1.1.0} + {$EXTERNALSYM SSL_set0_wbio} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_bio} + {$EXTERNALSYM SSL_get_rbio} + {$EXTERNALSYM SSL_get_wbio} + {$EXTERNALSYM SSL_set_cipher_list} + {$EXTERNALSYM SSL_CTX_set_ciphersuites} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_ciphersuites} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_verify_mode} + {$EXTERNALSYM SSL_get_verify_depth} + {$EXTERNALSYM SSL_get_verify_callback} + {$EXTERNALSYM SSL_set_read_ahead} + {$EXTERNALSYM SSL_set_verify} + {$EXTERNALSYM SSL_set_verify_depth} + {$EXTERNALSYM SSL_use_RSAPrivateKey} + {$EXTERNALSYM SSL_use_RSAPrivateKey_ASN1} + {$EXTERNALSYM SSL_use_PrivateKey} + {$EXTERNALSYM SSL_use_PrivateKey_ASN1} + {$EXTERNALSYM SSL_use_certificate} + {$EXTERNALSYM SSL_use_certificate_ASN1} + {$EXTERNALSYM SSL_CTX_use_serverinfo} + {$EXTERNALSYM SSL_CTX_use_serverinfo_ex} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_use_serverinfo_file} + {$EXTERNALSYM SSL_use_RSAPrivateKey_file} + {$EXTERNALSYM SSL_use_PrivateKey_file} + {$EXTERNALSYM SSL_use_certificate_file} + {$EXTERNALSYM SSL_CTX_use_RSAPrivateKey_file} + {$EXTERNALSYM SSL_CTX_use_PrivateKey_file} + {$EXTERNALSYM SSL_CTX_use_certificate_file} + {$EXTERNALSYM SSL_CTX_use_certificate_chain_file} + {$EXTERNALSYM SSL_use_certificate_chain_file} {introduced 1.1.0} + {$EXTERNALSYM SSL_load_client_CA_file} + {$EXTERNALSYM SSL_add_file_cert_subjects_to_stack} + {$EXTERNALSYM SSL_add_dir_cert_subjects_to_stack} + {$EXTERNALSYM SSL_state_string} + {$EXTERNALSYM SSL_rstate_string} + {$EXTERNALSYM SSL_state_string_long} + {$EXTERNALSYM SSL_rstate_string_long} + {$EXTERNALSYM SSL_SESSION_get_time} + {$EXTERNALSYM SSL_SESSION_set_time} + {$EXTERNALSYM SSL_SESSION_get_timeout} + {$EXTERNALSYM SSL_SESSION_set_timeout} + {$EXTERNALSYM SSL_SESSION_get_protocol_version} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_set_protocol_version} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_get0_hostname} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_set1_hostname} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_get0_alpn_selected} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_set1_alpn_selected} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_get0_cipher} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_set_cipher} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_has_ticket} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_get_ticket_lifetime_hint} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_get0_ticket} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_get_max_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_set_max_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_copy_session_id} + {$EXTERNALSYM SSL_SESSION_get0_peer} + {$EXTERNALSYM SSL_SESSION_set1_id_context} + {$EXTERNALSYM SSL_SESSION_set1_id} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_is_resumable} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_new} + {$EXTERNALSYM SSL_SESSION_dup} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_get_id} + {$EXTERNALSYM SSL_SESSION_get0_id_context} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_get_compress_id} + {$EXTERNALSYM SSL_SESSION_print} + {$EXTERNALSYM SSL_SESSION_print_keylog} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_up_ref} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_free} + {$EXTERNALSYM SSL_set_session} + {$EXTERNALSYM SSL_CTX_add_session} + {$EXTERNALSYM SSL_CTX_remove_session} + {$EXTERNALSYM SSL_CTX_set_generate_session_id} + {$EXTERNALSYM SSL_set_generate_session_id} + {$EXTERNALSYM SSL_has_matching_session_id} + {$EXTERNALSYM d2i_SSL_SESSION} + {$EXTERNALSYM SSL_CTX_get_verify_mode} + {$EXTERNALSYM SSL_CTX_get_verify_depth} + {$EXTERNALSYM SSL_CTX_get_verify_callback} + {$EXTERNALSYM SSL_CTX_set_verify} + {$EXTERNALSYM SSL_CTX_set_verify_depth} + {$EXTERNALSYM SSL_CTX_set_cert_verify_callback} + {$EXTERNALSYM SSL_CTX_set_cert_cb} + {$EXTERNALSYM SSL_CTX_use_RSAPrivateKey} + {$EXTERNALSYM SSL_CTX_use_RSAPrivateKey_ASN1} + {$EXTERNALSYM SSL_CTX_use_PrivateKey} + {$EXTERNALSYM SSL_CTX_use_PrivateKey_ASN1} + {$EXTERNALSYM SSL_CTX_use_certificate} + {$EXTERNALSYM SSL_CTX_use_certificate_ASN1} + {$EXTERNALSYM SSL_CTX_set_default_passwd_cb} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_default_passwd_cb_userdata} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_get_default_passwd_cb} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_get_default_passwd_cb_userdata} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_default_passwd_cb} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_default_passwd_cb_userdata} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_default_passwd_cb} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_default_passwd_cb_userdata} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_check_private_key} + {$EXTERNALSYM SSL_check_private_key} + {$EXTERNALSYM SSL_CTX_set_session_id_context} + {$EXTERNALSYM SSL_new} + {$EXTERNALSYM SSL_up_ref} {introduced 1.1.0} + {$EXTERNALSYM SSL_is_dtls} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_session_id_context} + {$EXTERNALSYM SSL_CTX_set_purpose} + {$EXTERNALSYM SSL_set_purpose} + {$EXTERNALSYM SSL_CTX_set_trust} + {$EXTERNALSYM SSL_set_trust} + {$EXTERNALSYM SSL_set1_host} {introduced 1.1.0} + {$EXTERNALSYM SSL_add1_host} {introduced 1.1.0} + {$EXTERNALSYM SSL_get0_peername} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_hostflags} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_dane_enable} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_dane_mtype_set} {introduced 1.1.0} + {$EXTERNALSYM SSL_dane_enable} {introduced 1.1.0} + {$EXTERNALSYM SSL_dane_tlsa_add} {introduced 1.1.0} + {$EXTERNALSYM SSL_get0_dane_authority} {introduced 1.1.0} + {$EXTERNALSYM SSL_get0_dane_tlsa} {introduced 1.1.0} + {$EXTERNALSYM SSL_get0_dane} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_dane_set_flags} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_dane_clear_flags} {introduced 1.1.0} + {$EXTERNALSYM SSL_dane_set_flags} {introduced 1.1.0} + {$EXTERNALSYM SSL_dane_clear_flags} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set1_param} + {$EXTERNALSYM SSL_set1_param} + {$EXTERNALSYM SSL_CTX_get0_param} + {$EXTERNALSYM SSL_get0_param} + {$EXTERNALSYM SSL_CTX_set_srp_username} + {$EXTERNALSYM SSL_CTX_set_srp_password} + {$EXTERNALSYM SSL_CTX_set_srp_strength} + {$EXTERNALSYM SSL_CTX_set_srp_client_pwd_callback} + {$EXTERNALSYM SSL_CTX_set_srp_verify_param_callback} + {$EXTERNALSYM SSL_CTX_set_srp_username_callback} + {$EXTERNALSYM SSL_CTX_set_srp_cb_arg} + {$EXTERNALSYM SSL_set_srp_server_param} + {$EXTERNALSYM SSL_set_srp_server_param_pw} + {$EXTERNALSYM SSL_CTX_set_client_hello_cb} {introduced 1.1.0} + {$EXTERNALSYM SSL_client_hello_isv2} {introduced 1.1.0} + {$EXTERNALSYM SSL_client_hello_get0_legacy_version} {introduced 1.1.0} + {$EXTERNALSYM SSL_client_hello_get0_random} {introduced 1.1.0} + {$EXTERNALSYM SSL_client_hello_get0_session_id} {introduced 1.1.0} + {$EXTERNALSYM SSL_client_hello_get0_ciphers} {introduced 1.1.0} + {$EXTERNALSYM SSL_client_hello_get0_compression_methods} {introduced 1.1.0} + {$EXTERNALSYM SSL_client_hello_get1_extensions_present} {introduced 1.1.0} + {$EXTERNALSYM SSL_client_hello_get0_ext} {introduced 1.1.0} + {$EXTERNALSYM SSL_certs_clear} + {$EXTERNALSYM SSL_free} + {$EXTERNALSYM SSL_waiting_for_async} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_all_async_fds} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_changed_async_fds} {introduced 1.1.0} + {$EXTERNALSYM SSL_accept} + {$EXTERNALSYM SSL_stateless} {introduced 1.1.0} + {$EXTERNALSYM SSL_connect} + {$EXTERNALSYM SSL_read} + {$EXTERNALSYM SSL_read_ex} {introduced 1.1.0} + {$EXTERNALSYM SSL_read_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_peek} + {$EXTERNALSYM SSL_peek_ex} {introduced 1.1.0} + {$EXTERNALSYM SSL_write} + {$EXTERNALSYM SSL_write_ex} {introduced 1.1.0} + {$EXTERNALSYM SSL_write_early_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_callback_ctrl} + {$EXTERNALSYM SSL_ctrl} + {$EXTERNALSYM SSL_CTX_ctrl} + {$EXTERNALSYM SSL_CTX_callback_ctrl} + {$EXTERNALSYM SSL_get_early_data_status} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_error} + {$EXTERNALSYM SSL_get_version} + {$EXTERNALSYM SSL_CTX_set_ssl_version} + {$EXTERNALSYM TLS_method} {introduced 1.1.0} + {$EXTERNALSYM TLS_server_method} {introduced 1.1.0} + {$EXTERNALSYM TLS_client_method} {introduced 1.1.0} + {$EXTERNALSYM SSL_key_update} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_key_update_type} {introduced 1.1.0} + {$EXTERNALSYM SSL_renegotiate} + {$EXTERNALSYM SSL_renegotiate_abbreviated} + {$EXTERNALSYM SSL_shutdown} + {$EXTERNALSYM SSL_CTX_set_post_handshake_auth} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_post_handshake_auth} {introduced 1.1.0} + {$EXTERNALSYM SSL_renegotiate_pending} + {$EXTERNALSYM SSL_verify_client_post_handshake} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_get_ssl_method} + {$EXTERNALSYM SSL_get_ssl_method} + {$EXTERNALSYM SSL_set_ssl_method} + {$EXTERNALSYM SSL_alert_type_string_long} + {$EXTERNALSYM SSL_alert_type_string} + {$EXTERNALSYM SSL_alert_desc_string_long} + {$EXTERNALSYM SSL_alert_desc_string} + {$EXTERNALSYM SSL_CTX_set_client_CA_list} + {$EXTERNALSYM SSL_add_client_CA} + {$EXTERNALSYM SSL_CTX_add_client_CA} + {$EXTERNALSYM SSL_set_connect_state} + {$EXTERNALSYM SSL_set_accept_state} + {$EXTERNALSYM SSL_CIPHER_description} + {$EXTERNALSYM SSL_dup} + {$EXTERNALSYM SSL_get_certificate} + {$EXTERNALSYM SSL_get_privatekey} + {$EXTERNALSYM SSL_CTX_get0_certificate} + {$EXTERNALSYM SSL_CTX_get0_privatekey} + {$EXTERNALSYM SSL_CTX_set_quiet_shutdown} + {$EXTERNALSYM SSL_CTX_get_quiet_shutdown} + {$EXTERNALSYM SSL_set_quiet_shutdown} + {$EXTERNALSYM SSL_get_quiet_shutdown} + {$EXTERNALSYM SSL_set_shutdown} + {$EXTERNALSYM SSL_get_shutdown} + {$EXTERNALSYM SSL_version} + {$EXTERNALSYM SSL_client_version} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_default_verify_paths} + {$EXTERNALSYM SSL_CTX_set_default_verify_dir} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_default_verify_file} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_load_verify_locations} + {$EXTERNALSYM SSL_get_session} + {$EXTERNALSYM SSL_get1_session} + {$EXTERNALSYM SSL_get_SSL_CTX} + {$EXTERNALSYM SSL_set_SSL_CTX} + {$EXTERNALSYM SSL_set_info_callback} + {$EXTERNALSYM SSL_get_info_callback} + {$EXTERNALSYM SSL_get_state} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_verify_result} + {$EXTERNALSYM SSL_get_verify_result} + {$EXTERNALSYM SSL_get_client_random} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_server_random} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_get_master_key} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_set1_master_key} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_get_max_fragment_length} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_ex_data} + {$EXTERNALSYM SSL_get_ex_data} + {$EXTERNALSYM SSL_SESSION_set_ex_data} + {$EXTERNALSYM SSL_SESSION_get_ex_data} + {$EXTERNALSYM SSL_CTX_set_ex_data} + {$EXTERNALSYM SSL_CTX_get_ex_data} + {$EXTERNALSYM SSL_get_ex_data_X509_STORE_CTX_idx} + {$EXTERNALSYM SSL_CTX_set_default_read_buffer_len} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_default_read_buffer_len} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_tmp_dh_callback} + {$EXTERNALSYM SSL_set_tmp_dh_callback} + {$EXTERNALSYM SSL_CIPHER_find} + {$EXTERNALSYM SSL_CIPHER_get_cipher_nid} {introduced 1.1.0} + {$EXTERNALSYM SSL_CIPHER_get_digest_nid} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_session_ticket_ext} + {$EXTERNALSYM SSL_set_session_ticket_ext_cb} + {$EXTERNALSYM SSL_CTX_set_not_resumable_session_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_not_resumable_session_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_record_padding_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_record_padding_callback_arg} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_get_record_padding_callback_arg} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_block_padding} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_record_padding_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_record_padding_callback_arg} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_record_padding_callback_arg} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_block_padding} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_num_tickets} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_num_tickets} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_num_tickets} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_get_num_tickets} {introduced 1.1.0} + {$EXTERNALSYM SSL_session_reused} {introduced 1.1.0} + {$EXTERNALSYM SSL_is_server} + {$EXTERNALSYM SSL_CONF_CTX_new} + {$EXTERNALSYM SSL_CONF_CTX_finish} + {$EXTERNALSYM SSL_CONF_CTX_free} + {$EXTERNALSYM SSL_CONF_CTX_set_flags} + {$EXTERNALSYM SSL_CONF_CTX_clear_flags} + {$EXTERNALSYM SSL_CONF_CTX_set1_prefix} + {$EXTERNALSYM SSL_CONF_cmd} + {$EXTERNALSYM SSL_CONF_cmd_argv} + {$EXTERNALSYM SSL_CONF_cmd_value_type} + {$EXTERNALSYM SSL_CONF_CTX_set_ssl} + {$EXTERNALSYM SSL_CONF_CTX_set_ssl_ctx} + {$EXTERNALSYM SSL_add_ssl_module} {introduced 1.1.0} + {$EXTERNALSYM SSL_config} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_config} {introduced 1.1.0} + {$EXTERNALSYM DTLSv1_listen} {introduced 1.1.0} + {$EXTERNALSYM SSL_enable_ct} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_enable_ct} {introduced 1.1.0} + {$EXTERNALSYM SSL_ct_is_enabled} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_ct_is_enabled} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_default_ctlog_list_file} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_ctlog_list_file} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set0_ctlog_store} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_security_level} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_security_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_security_callback} {introduced 1.1.0} + {$EXTERNALSYM SSL_set0_security_ex_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_get0_security_ex_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_security_level} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_get_security_level} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_get0_security_ex_data} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set0_security_ex_data} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_init_ssl} {introduced 1.1.0} + {$EXTERNALSYM SSL_free_buffers} {introduced 1.1.0} + {$EXTERNALSYM SSL_alloc_buffers} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_session_ticket_cb} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_set1_ticket_appdata} {introduced 1.1.0} + {$EXTERNALSYM SSL_SESSION_get0_ticket_appdata} {introduced 1.1.0} + {$EXTERNALSYM DTLS_set_timer_cb} {introduced 1.1.0} + {$EXTERNALSYM SSL_CTX_set_allow_early_data_cb} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_allow_early_data_cb} {introduced 1.1.0} + {$EXTERNALSYM SSL_get0_peer_certificate} {introduced 3.3.0} + {$EXTERNALSYM SSL_get1_peer_certificate} {introduced 3.3.0} +{helper_functions} + function IsOpenSSL_SSLv2_Available : Boolean; + function IsOpenSSL_SSLv3_Available : Boolean; + function IsOpenSSL_SSLv23_Available : Boolean; + function IsOpenSSL_TLSv1_0_Available : Boolean; + function IsOpenSSL_TLSv1_1_Available : Boolean; + function IsOpenSSL_TLSv1_2_Available : Boolean; + function HasTLS_method: boolean; + function SSL_CTX_set_min_proto_version(ctx: PSSL_CTX; version: TIdC_LONG): TIdC_LONG; + function SSL_CTX_set_max_proto_version(ctx: PSSL_CTX; version: TIdC_LONG): TIdC_LONG; + function SSL_CTX_get_min_proto_version(ctx: PSSL_CTX): TIdC_LONG; + function SSL_CTX_get_max_proto_version(ctx: PSSL_CTX): TIdC_LONG; + function SSL_set_min_proto_version(s: PSSL; version: TIdC_LONG): TIdC_LONG; + function SSL_set_max_proto_version(s: PSSL; version: TIdC_LONG): TIdC_LONG; + function SSL_get_min_proto_version(s: PSSL): TIdC_LONG; + function SSL_get_max_proto_version(s: PSSL): TIdC_LONG; +{/helper_functions} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + {$EXTERNALSYM SSL_CTX_set_mode} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_clear_mode} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_sess_set_cache_size} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_sess_get_cache_size} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set_session_cache_mode} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_get_session_cache_mode} {removed 1.0.0} + {$EXTERNALSYM SSL_clear_num_renegotiations} {removed 1.0.0} + {$EXTERNALSYM SSL_total_renegotiations} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set_tmp_dh} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set_tmp_ecdh} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set_dh_auto} {removed 1.0.0} + {$EXTERNALSYM SSL_set_dh_auto} {removed 1.0.0} + {$EXTERNALSYM SSL_set_tmp_dh} {removed 1.0.0} + {$EXTERNALSYM SSL_set_tmp_ecdh} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_add_extra_chain_cert} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_get_extra_chain_certs} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_get_extra_chain_certs_only} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_clear_extra_chain_certs} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set0_chain} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set1_chain} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_add0_chain_cert} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_add1_chain_cert} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_get0_chain_certs} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_clear_chain_certs} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_build_cert_chain} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_select_current_cert} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set_current_cert} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set0_verify_cert_store} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set1_verify_cert_store} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set0_chain_cert_store} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set1_chain_cert_store} {removed 1.0.0} + {$EXTERNALSYM SSL_set0_chain} {removed 1.0.0} + {$EXTERNALSYM SSL_set1_chain} {removed 1.0.0} + {$EXTERNALSYM SSL_add0_chain_cert} {removed 1.0.0} + {$EXTERNALSYM SSL_add1_chain_cert} {removed 1.0.0} + {$EXTERNALSYM SSL_get0_chain_certs} {removed 1.0.0} + {$EXTERNALSYM SSL_clear_chain_certs} {removed 1.0.0} + {$EXTERNALSYM SSL_build_cert_chain} {removed 1.0.0} + {$EXTERNALSYM SSL_select_current_cert} {removed 1.0.0} + {$EXTERNALSYM SSL_set_current_cert} {removed 1.0.0} + {$EXTERNALSYM SSL_set0_verify_cert_store} {removed 1.0.0} + {$EXTERNALSYM SSL_set1_verify_cert_store} {removed 1.0.0} + {$EXTERNALSYM SSL_set0_chain_cert_store} {removed 1.0.0} + {$EXTERNALSYM SSL_set1_chain_cert_store} {removed 1.0.0} + {$EXTERNALSYM SSL_get1_groups} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set1_groups} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set1_groups_list} {removed 1.0.0} + {$EXTERNALSYM SSL_set1_groups} {removed 1.0.0} + {$EXTERNALSYM SSL_set1_groups_list} {removed 1.0.0} + {$EXTERNALSYM SSL_get_shared_group} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set1_sigalgs} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set1_sigalgs_list} {removed 1.0.0} + {$EXTERNALSYM SSL_set1_sigalgs} {removed 1.0.0} + {$EXTERNALSYM SSL_set1_sigalgs_list} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set1_client_sigalgs} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set1_client_sigalgs_list} {removed 1.0.0} + {$EXTERNALSYM SSL_set1_client_sigalgs} {removed 1.0.0} + {$EXTERNALSYM SSL_set1_client_sigalgs_list} {removed 1.0.0} + {$EXTERNALSYM SSL_get0_certificate_types} {removed 1.0.0} + {$EXTERNALSYM SSL_CTX_set1_client_certificate_types} {removed 1.0.0} + {$EXTERNALSYM SSL_set1_client_certificate_types} {removed 1.0.0} + {$EXTERNALSYM SSL_get_signature_nid} {removed 1.0.0} + {$EXTERNALSYM SSL_get_peer_signature_nid} {removed 1.0.0} + {$EXTERNALSYM SSL_get_peer_tmp_key} {removed 1.0.0} + {$EXTERNALSYM SSL_get_tmp_key} {removed 1.0.0} + {$EXTERNALSYM SSL_get0_raw_cipherlist} {removed 1.0.0} + {$EXTERNALSYM SSL_get0_ec_point_formats} {removed 1.0.0} + {$EXTERNALSYM SSL_get_app_data} {removed 1.0.0} + {$EXTERNALSYM SSL_set_app_data} {removed 1.0.0} + {$EXTERNALSYM SSLeay_add_ssl_algorithms} {removed 1.0.0} + {$EXTERNALSYM SSL_load_error_strings} {removed 1.1.0} + {$EXTERNALSYM SSL_get_peer_certificate} {removed 3.0.0} + {$EXTERNALSYM SSL_library_init} {removed 1.1.0} + {$EXTERNALSYM SSLv2_method} {removed 1.1.0 allow_nil} // SSLv2 + {$EXTERNALSYM SSLv2_server_method} {removed 1.1.0 allow_nil} // SSLv2 + {$EXTERNALSYM SSLv2_client_method} {removed 1.1.0 allow_nil} // SSLv2 + {$EXTERNALSYM SSLv3_method} {removed 1.1.0 allow_nil} // SSLv3 + {$EXTERNALSYM SSLv3_server_method} {removed 1.1.0 allow_nil} // SSLv3 + {$EXTERNALSYM SSLv3_client_method} {removed 1.1.0 allow_nil} // SSLv3 + {$EXTERNALSYM SSLv23_method} {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + {$EXTERNALSYM SSLv23_server_method} {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + {$EXTERNALSYM SSLv23_client_method} {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + {$EXTERNALSYM TLSv1_method} {removed 1.1.0 allow_nil} // TLSv1.0 + {$EXTERNALSYM TLSv1_server_method} {removed 1.1.0 allow_nil} // TLSv1.0 + {$EXTERNALSYM TLSv1_client_method} {removed 1.1.0 allow_nil} // TLSv1.0 + {$EXTERNALSYM TLSv1_1_method} {removed 1.1.0 allow_nil} //TLS1.1 + {$EXTERNALSYM TLSv1_1_server_method} {removed 1.1.0 allow_nil} //TLS1.1 + {$EXTERNALSYM TLSv1_1_client_method} {removed 1.1.0 allow_nil} //TLS1.1 + {$EXTERNALSYM TLSv1_2_method} {removed 1.1.0 allow_nil} // TLSv1.2 + {$EXTERNALSYM TLSv1_2_server_method} {removed 1.1.0 allow_nil} // TLSv1.2 + {$EXTERNALSYM TLSv1_2_client_method} {removed 1.1.0 allow_nil} // TLSv1.2 + SSL_CTX_set_mode: function(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_clear_mode: function(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + + SSL_CTX_sess_set_cache_size: function(ctx: PSSL_CTX; t: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_sess_get_cache_size: function(ctx: PSSL_CTX): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set_session_cache_mode: function(ctx: PSSL_CTX; m: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_get_session_cache_mode: function(ctx: PSSL_CTX): TIdC_LONG; cdecl = nil; {removed 1.0.0} + + SSL_clear_num_renegotiations: function(ssl: PSSL): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_total_renegotiations: function(ssl: PSSL): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set_tmp_dh: function(ctx: PSSL_CTX; dh: PDH): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set_tmp_ecdh: function(ctx: PSSL_CTX; ecdh: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set_dh_auto: function(ctx: PSSL_CTX; onoff: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set_dh_auto: function(s: PSSL; onoff: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set_tmp_dh: function(ssl: PSSL; dh: PDH): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set_tmp_ecdh: function(ssl: PSSL; ecdh: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_add_extra_chain_cert: function(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_get_extra_chain_certs: function(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_get_extra_chain_certs_only: function(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_clear_extra_chain_certs: function(ctx: PSSL_CTX): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set0_chain: function(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set1_chain: function(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_add0_chain_cert: function(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_add1_chain_cert: function(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_get0_chain_certs: function(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_clear_chain_certs: function(ctx: PSSL_CTX): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_build_cert_chain: function(ctx: PSSL_CTX; flags: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_select_current_cert: function(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set_current_cert: function(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set0_verify_cert_store: function(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set1_verify_cert_store: function(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set0_chain_cert_store: function(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set1_chain_cert_store: function(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set0_chain: function(s: PSSL; sk: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set1_chain: function(s: PSSL; sk: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_add0_chain_cert: function(s: PSSL; x509: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_add1_chain_cert: function(s: PSSL; x509: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_get0_chain_certs: function(s: PSSL; px509: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_clear_chain_certs: function(s: PSSL): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_build_cert_chain: function(s: PSSL; flags: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_select_current_cert: function(s: PSSL; x509: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set_current_cert: function(s: PSSL; op: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set0_verify_cert_store: function(s: PSSL; st: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set1_verify_cert_store: function(s: PSSL; st: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set0_chain_cert_store: function(s: PSSL; st: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set1_chain_cert_store: function(s: PSSL; st: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_get1_groups: function(s: PSSL; glist: PIdC_INT): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set1_groups: function(ctx: PSSL_CTX; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set1_groups_list: function(ctx: PSSL_CTX; s: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set1_groups: function(s: PSSL; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set1_groups_list: function(s: PSSL; str: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_get_shared_group: function(s: PSSL; n: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set1_sigalgs: function(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set1_sigalgs_list: function(ctx: PSSL_CTX; s: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set1_sigalgs: function(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set1_sigalgs_list: function(s: PSSL; str: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set1_client_sigalgs: function(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set1_client_sigalgs_list: function(ctx: PSSL_CTX; s: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set1_client_sigalgs: function(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set1_client_sigalgs_list: function(s: PSSL; str: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_get0_certificate_types: function(s: PSSL; clist: PByte): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_CTX_set1_client_certificate_types: function(ctx: PSSL_CTX; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_set1_client_certificate_types: function(s: PSSL; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_get_signature_nid: function(s: PSSL; pn: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_get_peer_signature_nid: function(s: PSSL; pn: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_get_peer_tmp_key: function(s: PSSL; pk: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_get_tmp_key: function(s: PSSL; pk: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_get0_raw_cipherlist: function(s: PSSL; plst: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + SSL_get0_ec_point_formats: function(s: PSSL; plst: Pointer): TIdC_LONG; cdecl = nil; {removed 1.0.0} + + //typedef TIdC_INT (*tls_session_secret_cb_fn)(s: PSSL, void *secret, TIdC_INT *secret_len, + // STACK_OF(SSL_CIPHER) *peer_ciphers, + // const SSL_CIPHER **cipher, void *arg); + + SSL_CTX_get_options: function(const ctx: PSSL_CTX): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + SSL_get_options: function(const s: PSSL): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + SSL_CTX_clear_options: function(ctx: PSSL_CTX; op: TIdC_ULONG): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + SSL_clear_options: function(s: PSSL; op: TIdC_ULONG): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_options: function(ctx: PSSL_CTX; op: TIdC_ULONG): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + SSL_set_options: function(s: PSSL; op: TIdC_ULONG): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + + //# define SSL_CTX_set_mode(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL) + //# define SSL_CTX_clear_mode(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_MODE,(op),NULL) + //# define SSL_CTX_get_mode(ctx) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,0,NULL) + //# define SSL_clear_mode(ssl,op) \ + // SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL) + //# define SSL_set_mode(ssl,op) \ + // SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL) + //# define SSL_get_mode(ssl) \ + // SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL) + //# define SSL_set_mtu(ssl, mtu) \ + // SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL) + //# define DTLS_set_link_mtu(ssl, mtu) \ + // SSL_ctrl((ssl),DTLS_CTRL_SET_LINK_MTU,(mtu),NULL) + //# define DTLS_get_link_min_mtu(ssl) \ + // SSL_ctrl((ssl),DTLS_CTRL_GET_LINK_MIN_MTU,0,NULL) + // + //# define SSL_get_secure_renegotiation_support(ssl) \ + // SSL_ctrl((ssl), SSL_CTRL_GET_RI_SUPPORT, 0, NULL) + // + //# ifndef OPENSSL_NO_HEARTBEATS + //# define SSL_heartbeat(ssl) \ + // SSL_ctrl((ssl),SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT,0,NULL) + //# endif + // + //# define SSL_CTX_set_cert_flags(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_CERT_FLAGS,(op),NULL) + //# define SSL_set_cert_flags(s,op) \ + // SSL_ctrl((s),SSL_CTRL_CERT_FLAGS,(op),NULL) + //# define SSL_CTX_clear_cert_flags(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL) + //# define SSL_clear_cert_flags(s,op) \ + // SSL_ctrl((s),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL) + // + //void SSL_CTX_set_msg_callback(ctx: PSSL_CTX, + // void (*cb) (TIdC_INT write_p, TIdC_INT version, + // TIdC_INT content_type, const void *buf, + // TIdC_SIZET len, ssl: PSSL, void *arg)); + //void SSL_set_msg_callback(ssl: PSSL, + // void (*cb) (TIdC_INT write_p, TIdC_INT version, + // TIdC_INT content_type, const void *buf, + // TIdC_SIZET len, ssl: PSSL, void *arg)); + //# define SSL_CTX_set_msg_callback_arg(ctx, arg) SSL_CTX_ctrl((ctx), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg)) + //# define SSL_set_msg_callback_arg(ssl, arg) SSL_ctrl((ssl), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg)) + // + //# define SSL_get_extms_support(s) \ + // SSL_ctrl((s),SSL_CTRL_GET_EXTMS_SUPPORT,0,NULL) + // + //# ifndef OPENSSL_NO_SRP + + ///* see tls_srp.c */ + //__owur TIdC_INT SSL_SRP_CTX_init(s: PSSL); + //__owur TIdC_INT SSL_CTX_SRP_CTX_init(ctx: PSSL_CTX); + //TIdC_INT SSL_SRP_CTX_free(SSL *ctx); + //TIdC_INT SSL_CTX_SRP_CTX_free(ctx: PSSL_CTX); + //__owur TIdC_INT SSL_srp_server_param_with_username(s: PSSL, TIdC_INT *ad); + //__owur TIdC_INT SRP_Calc_A_param(s: PSSL); + + // # endif + + // LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(ctx: PSSL_CTX); + //# define SSL_CTX_sess_number(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_NUMBER,0,NULL) + //# define SSL_CTX_sess_connect(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT,0,NULL) + //# define SSL_CTX_sess_connect_good(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_GOOD,0,NULL) + //# define SSL_CTX_sess_connect_renegotiate(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_RENEGOTIATE,0,NULL) + //# define SSL_CTX_sess_accept(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT,0,NULL) + //# define SSL_CTX_sess_accept_renegotiate(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_RENEGOTIATE,0,NULL) + //# define SSL_CTX_sess_accept_good(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_GOOD,0,NULL) + //# define SSL_CTX_sess_hits(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_HIT,0,NULL) + //# define SSL_CTX_sess_cb_hits(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CB_HIT,0,NULL) + //# define SSL_CTX_sess_misses(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_MISSES,0,NULL) + //# define SSL_CTX_sess_timeouts(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_TIMEOUTS,0,NULL) + //# define SSL_CTX_sess_cache_full(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CACHE_FULL,0,NULL) + + SSL_CTX_sess_set_new_cb: procedure(ctx: PSSL_CTX; new_session_cb: SSL_CTX_sess_new_cb); cdecl = nil; + SSL_CTX_sess_get_new_cb: function(ctx: PSSL_CTX): SSL_CTX_sess_new_cb; cdecl = nil; + SSL_CTX_sess_set_remove_cb: procedure(ctx: PSSL_CTX; remove_session_cb: SSL_CTX_sess_remove_cb); cdecl = nil; + SSL_CTX_sess_get_remove_cb: function(ctx: PSSL_CTX): SSL_CTX_sess_remove_cb; cdecl = nil; + + //void SSL_CTX_sess_set_get_cb(ctx: PSSL_CTX, + // SSL_SESSION *(*get_session_cb) (struct ssl_st + // *ssl, + // const Byte + // *data, TIdC_INT len, + // TIdC_INT *copy)); + //SSL_SESSION *(*SSL_CTX_sess_get_get_cb(ctx: PSSL_CTX)) (struct ssl_st *ssl, + // const d: PByteata, + // TIdC_INT len, TIdC_INT *copy); + SSL_CTX_set_info_callback: procedure(ctx: PSSL_CTX; cb: SSL_CTX_info_callback); cdecl = nil; + SSL_CTX_get_info_callback: function(ctx: PSSL_CTX): SSL_CTX_info_callback; cdecl = nil; + SSL_CTX_set_client_cert_cb: procedure(ctx: PSSL_CTX; client_cert_cb: SSL_CTX_client_cert_cb); cdecl = nil; + SSL_CTX_get_client_cert_cb: function(ctx: PSSL_CTX): SSL_CTX_client_cert_cb; cdecl = nil; + SSL_CTX_set_client_cert_engine: function(ctx: PSSL_CTX; e: PENGINE): TIdC_INT; cdecl = nil; + + SSL_CTX_set_cookie_generate_cb: procedure(ctx: PSSL_CTX; app_gen_cookie_cb: SSL_CTX_cookie_verify_cb); cdecl = nil; + SSL_CTX_set_cookie_verify_cb: procedure(ctx: PSSL_CTX; app_verify_cookie_cb: SSL_CTX_set_cookie_verify_cb_app_verify_cookie_cb); cdecl = nil; + SSL_CTX_set_stateless_cookie_generate_cb: procedure(ctx: PSSL_CTX; gen_stateless_cookie_cb: SSL_CTX_set_stateless_cookie_generate_cb_gen_stateless_cookie_cb); cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_stateless_cookie_verify_cb: procedure(ctx: PSSL_CTX; verify_stateless_cookie_cb: SSL_CTX_set_stateless_cookie_verify_cb_verify_stateless_cookie_cb); cdecl = nil; {introduced 1.1.0} + + //__owur TIdC_INT SSL_CTX_set_alpn_protos(ctx: PSSL_CTX, const Byte *protos, + // TIdC_UINT protos_len); + //__owur TIdC_INT SSL_set_alpn_protos(ssl: PSSL, const Byte *protos, + // TIdC_UINT protos_len); + + SSL_CTX_set_alpn_select_cb: procedure(ctx: PSSL_CTX; cb: SSL_CTX_alpn_select_cb_func; arg: Pointer); cdecl = nil; + SSL_get0_alpn_selected: procedure(const ssl: PSSL; const data: PPByte; len: PIdC_UINT); cdecl = nil; + SSL_CTX_set_psk_client_callback: procedure(ctx: PSSL_CTX; cb: SSL_psk_client_cb_func); cdecl = nil; + SSL_set_psk_client_callback: procedure(ssl: PSSL; cb: SSL_psk_client_cb_func); cdecl = nil; + SSL_CTX_set_psk_server_callback: procedure(ctx: PSSL_CTX; cb: SSL_psk_server_cb_func); cdecl = nil; + SSL_set_psk_server_callback: procedure(ssl: PSSL; cb: SSL_psk_server_cb_func); cdecl = nil; + + //__owur TIdC_INT SSL_CTX_use_psk_identity_hint(ctx: PSSL_CTX, const PIdAnsiChar *identity_hint); + //__owur TIdC_INT SSL_use_psk_identity_hint(s: PSSL, const PIdAnsiChar *identity_hint); + //const PIdAnsiChar *SSL_get_psk_identity_hint(const s: PSSL); + //const PIdAnsiChar *SSL_get_psk_identity(const s: PSSL); + + SSL_set_psk_find_session_callback: procedure(s: PSSL; cb: SSL_psk_find_session_cb_func); cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_psk_find_session_callback: procedure(ctx: PSSL_CTX; cb: SSL_psk_find_session_cb_func); cdecl = nil; {introduced 1.1.0} + SSL_set_psk_use_session_callback: procedure(s: PSSL; cb: SSL_psk_use_session_cb_func); cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_psk_use_session_callback: procedure(ctx: PSSL_CTX; cb: SSL_psk_use_session_cb_func); cdecl = nil; {introduced 1.1.0} + + ///* Register callbacks to handle custom TLS Extensions for client or server. */ + + //__owur TIdC_INT SSL_CTX_has_client_custom_ext(const ctx: PSSL_CTX, + // TIdC_UINT ext_type); + // + //__owur TIdC_INT SSL_CTX_add_client_custom_ext(ctx: PSSL_CTX, + // TIdC_UINT ext_type, + // custom_ext_add_cb add_cb, + // custom_ext_free_cb free_cb, + // void *add_arg, + // custom_ext_parse_cb parse_cb, + // void *parse_arg); + // + //__owur TIdC_INT SSL_CTX_add_server_custom_ext(ctx: PSSL_CTX, + // TIdC_UINT ext_type, + // custom_ext_add_cb add_cb, + // custom_ext_free_cb free_cb, + // void *add_arg, + // custom_ext_parse_cb parse_cb, + // void *parse_arg); + // + //__owur TIdC_INT SSL_CTX_add_custom_ext(ctx: PSSL_CTX, TIdC_UINT ext_type, + // TIdC_UINT context, + // SSL_custom_ext_add_cb_ex add_cb, + // SSL_custom_ext_free_cb_ex free_cb, + // void *add_arg, + // SSL_custom_ext_parse_cb_ex parse_cb, + // void *parse_arg); + + //__owur TIdC_INT SSL_extension_supported(TIdC_UINT ext_type); + + + ///* These will only be used when doing non-blocking IO */ + //# define SSL_want_nothing(s) (SSL_want(s) == SSL_NOTHING) + //# define SSL_want_read(s) (SSL_want(s) == SSL_READING) + //# define SSL_want_write(s) (SSL_want(s) == SSL_WRITING) + //# define SSL_want_x509_lookup(s) (SSL_want(s) == SSL_X509_LOOKUP) + //# define SSL_want_async(s) (SSL_want(s) == SSL_ASYNC_PAUSED) + //# define SSL_want_async_job(s) (SSL_want(s) == SSL_ASYNC_NO_JOBS) + //# define SSL_want_client_hello_cb(s) (SSL_want(s) == SSL_CLIENT_HELLO_CB) + + (* + * SSL_CTX_set_keylog_callback configures a callback to log key material. This + * is intended for debugging use with tools like Wireshark. The cb function + * should log line followed by a newline. + *) + SSL_CTX_set_keylog_callback: procedure(ctx: PSSL_CTX; cb: SSL_CTX_keylog_cb_func); cdecl = nil; {introduced 1.1.0} + (* + * SSL_CTX_get_keylog_callback returns the callback configured by + * SSL_CTX_set_keylog_callback. + *) + SSL_CTX_get_keylog_callback: function(const ctx: PSSL_CTX): SSL_CTX_keylog_cb_func; cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_max_early_data: function(ctx: PSSL_CTX; max_early_data: TIdC_UINT32): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_get_max_early_data: function(const ctx: PSSL_CTX): TIdC_UINT32; cdecl = nil; {introduced 1.1.0} + SSL_set_max_early_data: function(s: PSSL; max_early_data: TIdC_UINT32): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get_max_early_data: function(const s: PSSL): TIdC_UINT32; cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_recv_max_early_data: function(ctx: PSSL_CTX; recv_max_early_data: TIdC_UINT32): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_get_recv_max_early_data: function(const ctx: PSSL_CTX): TIdC_UINT32; cdecl = nil; {introduced 1.1.0} + SSL_set_recv_max_early_data: function(s: PSSL; recv_max_early_data: TIdC_UINT32): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get_recv_max_early_data: function(const s: PSSL): TIdC_UINT32; cdecl = nil; {introduced 1.1.0} + + ///* + // * These need to be after the above set of includes due to a compiler bug + // * in_ VisualStudio 2015 + // */ + //DEFINE_STACK_OF_CONST(SSL_CIPHER) + //DEFINE_STACK_OF(SSL_COMP) + + ///* compatibility */ + //# define SSL_set_app_data(s,arg) (SSL_set_ex_data(s,0,(PIdAnsiChar *)(arg))) + //# define SSL_get_app_data(s) (SSL_get_ex_data(s,0)) + //# define SSL_SESSION_set_app_data(s,a) (SSL_SESSION_set_ex_data(s,0, \ + // (PIdAnsiChar *)(a))) + //# define SSL_SESSION_get_app_data(s) (SSL_SESSION_get_ex_data(s,0)) + //# define SSL_CTX_get_app_data(ctx) (SSL_CTX_get_ex_data(ctx,0)) + //# define SSL_CTX_set_app_data(ctx,arg) (SSL_CTX_set_ex_data(ctx,0, \ + // (PIdAnsiChar *)(arg))) + SSL_get_app_data: function(const ssl: PSSL): Pointer ; cdecl = nil; {removed 1.0.0} + SSL_set_app_data: function(ssl: PSSL; data: Pointer): TIdC_INT; cdecl = nil; {removed 1.0.0} + + ///* Is the SSL_connection established? */ + //# define SSL_in_connect_init(a) (SSL_in_init(a) && !SSL_is_server(a)) + //# define SSL_in_accept_init(a) (SSL_in_init(a) && SSL_is_server(a)) + SSL_in_init: function(const s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_in_before: function(const s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_is_init_finished: function(const s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + (*- + * Obtain latest Finished message + * -- that we sent (SSL_get_finished) + * -- that we expected from peer (SSL_get_peer_finished). + * Returns length (0 == no Finished so far), copies up to 'count' bytes. + *) + SSL_get_finished: function(const s: PSSL; buf: Pointer; count: TIdC_SIZET): TIdC_SIZET; cdecl = nil; + SSL_get_peer_finished: function(const s: PSSL; buf: Pointer; count: TIdC_SIZET): TIdC_SIZET; cdecl = nil; + + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define OpenSSL_add_ssl_algorithms() SSL_library_init() + //# define SSLeay_add_ssl_algorithms() SSL_library_init() + //# endif + SSLeay_add_ssl_algorithms: function: TIdC_INT; cdecl = nil; {removed 1.0.0} + + ///* More backward compatibility */ + //# define SSL_get_cipher(s) \ + // SSL_CIPHER_get_name(SSL_get_current_cipher(s)) + //# define SSL_get_cipher_bits(s,np) \ + // SSL_CIPHER_get_bits(SSL_get_current_cipher(s),np) + //# define SSL_get_cipher_version(s) \ + // SSL_CIPHER_get_version(SSL_get_current_cipher(s)) + //# define SSL_get_cipher_name(s) \ + // SSL_CIPHER_get_name(SSL_get_current_cipher(s)) + //# define SSL_get_time(a) SSL_SESSION_get_time(a) + //# define SSL_set_time(a,b) SSL_SESSION_set_time((a),(b)) + //# define SSL_get_timeout(a) SSL_SESSION_get_timeout(a) + //# define SSL_set_timeout(a,b) SSL_SESSION_set_timeout((a),(b)) + // + //# define d2i_SSL_SESSION_bio(bp,s_id) ASN1_d2i_bio_of(SSL_SESSION,SSL_SESSION_new,d2i_SSL_SESSION,bp,s_id) + //# define i2d_SSL_SESSION_bio(bp,s_id) ASN1_i2d_bio_of(SSL_SESSION,i2d_SSL_SESSION,bp,s_id) + + //DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION) + + //# define DTLSv1_get_timeout(ssl, arg) \ + // SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0, (void *)(arg)) + //# define DTLSv1_handle_timeout(ssl) \ + // SSL_ctrl(ssl,DTLS_CTRL_HANDLE_TIMEOUT,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) + + //# if OPENSSL_API_COMPAT < 0x10100000L + //const SSL_CTX_need_tmp_RSA = (ctx) 0; + //const SSL_CTX_set_tmp_rsa = (ctx;rsa) 1; + //const SSL_need_tmp_RSA = (ssl) 0; + //const SSL_set_tmp_rsa = (ssl;rsa) 1; + + //# define SSL_CTX_set_ecdh_auto(dummy, onoff) ((onoff) != 0) + //# define SSL_set_ecdh_auto(dummy, onoff) ((onoff) != 0) + ///* + // * We 'pretend' to call the callback to avoid warnings about unused static + // * functions. + // */ + //# define SSL_CTX_set_tmp_rsa_callback(ctx, cb) while(0) (cb)(NULL, 0, 0) + //# define SSL_set_tmp_rsa_callback(ssl, cb) while(0) (cb)(NULL, 0, 0) + //# endif + // + BIO_f_ssl: function: PBIO_METHOD; cdecl = nil; + BIO_new_ssl: function(ctx: PSSL_CTX; client: TIdC_INT): PBIO; cdecl = nil; + BIO_new_ssl_connect: function(ctx: PSSL_CTX): PBIO; cdecl = nil; + BIO_new_buffer_ssl_connect: function(ctx: PSSL_CTX): PBIO; cdecl = nil; + BIO_ssl_copy_session_id: function(to_: PBIO; from: PBIO): TIdC_INT; cdecl = nil; + + SSL_CTX_set_cipher_list: function(v1: PSSL_CTX; const str: PIdAnsiChar): TIdC_INT; cdecl = nil; + SSL_CTX_new: function(const meth: PSSL_METHOD): PSSL_CTX; cdecl = nil; + SSL_CTX_set_timeout: function(ctx: PSSL_CTX; t: TIdC_LONG): TIdC_LONG; cdecl = nil; + SSL_CTX_get_timeout: function(const ctx: PSSL_CTX): TIdC_LONG; cdecl = nil; + SSL_CTX_get_cert_store: function(const v1: PSSL_CTX): PX509_STORE; cdecl = nil; + SSL_want: function(const s: PSSL): TIdC_INT; cdecl = nil; + SSL_clear: function(s: PSSL): TIdC_INT; cdecl = nil; + + BIO_ssl_shutdown: procedure(ssl_bio: PBIO); cdecl = nil; + SSL_CTX_up_ref: function(ctx: PSSL_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_free: procedure(v1: PSSL_CTX); cdecl = nil; + SSL_CTX_set_cert_store: procedure(v1: PSSL_CTX; v2: PX509_STORE); cdecl = nil; + SSL_CTX_set1_cert_store: procedure(v1: PSSL_CTX; v2: PX509_STORE); cdecl = nil; {introduced 1.1.0} + + SSL_CTX_flush_sessions: procedure(ctx: PSSL_CTX; tm: TIdC_LONG); cdecl = nil; + + SSL_get_current_cipher: function(const s: PSSL): PSSL_CIPHER; cdecl = nil; + SSL_get_pending_cipher: function(const s: PSSL): PSSL_CIPHER; cdecl = nil; {introduced 1.1.0} + SSL_CIPHER_get_bits: function(const c: PSSL_CIPHER; var alg_bits: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_CIPHER_get_version: function(const c: PSSL_CIPHER): PIdAnsiChar; cdecl = nil; + SSL_CIPHER_get_name: function(const c: PSSL_CIPHER): PIdAnsiChar; cdecl = nil; + SSL_CIPHER_standard_name: function(const c: PSSL_CIPHER): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + OPENSSL_cipher_name: function(const rfc_name: PIdAnsiChar): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + SSL_CIPHER_get_id: function(const c: PSSL_CIPHER): TIdC_UINT32; cdecl = nil; + SSL_CIPHER_get_protocol_id: function(const c: PSSL_CIPHER): TIdC_UINT16; cdecl = nil; {introduced 1.1.0} + SSL_CIPHER_get_kx_nid: function(const c: PSSL_CIPHER): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CIPHER_get_auth_nid: function(const c: PSSL_CIPHER): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CIPHER_get_handshake_digest: function(const c: PSSL_CIPHER): PEVP_MD; cdecl = nil; {introduced 1.1.0} + SSL_CIPHER_is_aead: function(const c: PSSL_CIPHER): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSL_get_fd: function(const s: PSSL): TIdC_INT; cdecl = nil; + SSL_get_rfd: function(const s: PSSL): TIdC_INT; cdecl = nil; + SSL_get_wfd: function(const s: PSSL): TIdC_INT; cdecl = nil; + SSL_get_cipher_list: function(const s: PSSL; n: TIdC_INT): PIdAnsiChar; cdecl = nil; + SSL_get_shared_ciphers: function(const s: PSSL; buf: PIdAnsiChar; size: TIdC_INT): PIdAnsiChar; cdecl = nil; + SSL_get_read_ahead: function(const s: PSSL): TIdC_INT; cdecl = nil; + SSL_pending: function(const s: PSSL): TIdC_INT; cdecl = nil; + SSL_has_pending: function(const s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_set_fd: function(s: PSSL; fd: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_set_rfd: function(s: PSSL; fd: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_set_wfd: function(s: PSSL; fd: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_set0_rbio: procedure(s: PSSL; rbio: PBIO); cdecl = nil; {introduced 1.1.0} + SSL_set0_wbio: procedure(s: PSSL; wbio: PBIO); cdecl = nil; {introduced 1.1.0} + SSL_set_bio: procedure(s: PSSL; rbio: PBIO; wbio: PBIO); cdecl = nil; + SSL_get_rbio: function(const s: PSSL): PBIO; cdecl = nil; + SSL_get_wbio: function(const s: PSSL): PBIO; cdecl = nil; + SSL_set_cipher_list: function(s: PSSL; const str: PIdAnsiChar): TIdC_INT; cdecl = nil; + SSL_CTX_set_ciphersuites: function(ctx: PSSL_CTX; const str: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_set_ciphersuites: function(s: PSSL; const str: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get_verify_mode: function(const s: PSSL): TIdC_INT; cdecl = nil; + SSL_get_verify_depth: function(const s: PSSL): TIdC_INT; cdecl = nil; + SSL_get_verify_callback: function(const s: PSSL): SSL_verify_cb; cdecl = nil; + SSL_set_read_ahead: procedure(s: PSSL; yes: TIdC_INT); cdecl = nil; + SSL_set_verify: procedure(s: PSSL; mode: TIdC_INT; callback: SSL_verify_cb); cdecl = nil; + SSL_set_verify_depth: procedure(s: PSSL; depth: TIdC_INT); cdecl = nil; + //void SSL_set_cert_cb(s: PSSL, TIdC_INT (*cb) (ssl: PSSL, void *arg), void *arg); + + SSL_use_RSAPrivateKey: function(ssl: PSSL; rsa: PRSA): TIdC_INT; cdecl = nil; + SSL_use_RSAPrivateKey_ASN1: function(ssl: PSSL; const d: PByte; len: TIdC_LONG): TIdC_INT; cdecl = nil; + SSL_use_PrivateKey: function(ssl: PSSL; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + SSL_use_PrivateKey_ASN1: function(pk: TIdC_INT; ssl: PSSL; const d: PByte; len: TIdC_LONG): TIdC_INT; cdecl = nil; + SSL_use_certificate: function(ssl: PSSL; x: PX509): TIdC_INT; cdecl = nil; + SSL_use_certificate_ASN1: function(ssl: PSSL; const d: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + //__owur TIdC_INT SSL_use_cert_and_key(ssl: PSSL, x509: PX509, EVP_PKEY *privatekey, + // STACK_OF(X509) *chain, TIdC_INT override); + + (* Set serverinfo data for the current active cert. *) + SSL_CTX_use_serverinfo: function(ctx: PSSL_CTX; const serverinfo: PByte; serverinfo_length: TIdC_SIZET): TIdC_INT; cdecl = nil; + SSL_CTX_use_serverinfo_ex: function(ctx: PSSL_CTX; version: TIdC_UINT; const serverinfo: PByte; serverinfo_length: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_use_serverinfo_file: function(ctx: PSSL_CTX; const file_: PIdAnsiChar): TIdC_INT; cdecl = nil; + + SSL_use_RSAPrivateKey_file: function(ssl: PSSL; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; cdecl = nil; + + SSL_use_PrivateKey_file: function(ssl: PSSL; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_use_certificate_file: function(ssl: PSSL; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; cdecl = nil; + + SSL_CTX_use_RSAPrivateKey_file: function(ctx: PSSL_CTX; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; cdecl = nil; + + SSL_CTX_use_PrivateKey_file: function(ctx: PSSL_CTX; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_CTX_use_certificate_file: function(ctx: PSSL_CTX; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; cdecl = nil; + (* PEM type *) + SSL_CTX_use_certificate_chain_file: function(ctx: PSSL_CTX; const file_: PIdAnsiChar): TIdC_INT; cdecl = nil; + SSL_use_certificate_chain_file: function(ssl: PSSL; const file_: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_load_client_CA_file: function(const file_: PIdAnsiChar): PSTACK_OF_X509_NAME; cdecl = nil; + SSL_add_file_cert_subjects_to_stack: function(stackCAs: PSTACK_OF_X509_NAME; const file_: PIdAnsiChar):TIdC_INT; cdecl = nil; + SSL_add_dir_cert_subjects_to_stack: function(stackCAs: PSTACK_OF_X509_NAME; const dir_: PIdAnsiChar): TIdC_INT; cdecl = nil; + + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_load_error_strings() \ + // OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \ + // | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL) + //# endif + SSL_load_error_strings: procedure; cdecl = nil; {removed 1.1.0} + + SSL_state_string: function(const s: PSSL): PIdAnsiChar; cdecl = nil; + SSL_rstate_string: function(const s: PSSL): PIdAnsiChar; cdecl = nil; + SSL_state_string_long: function(const s: PSSL): PIdAnsiChar; cdecl = nil; + SSL_rstate_string_long: function(const s: PSSL): PIdAnsiChar; cdecl = nil; + SSL_SESSION_get_time: function(const s: PSSL_SESSION): TIdC_LONG; cdecl = nil; + SSL_SESSION_set_time: function(s: PSSL_SESSION; t: TIdC_LONG): TIdC_LONG; cdecl = nil; + SSL_SESSION_get_timeout: function(const s: PSSL_SESSION): TIdC_LONG; cdecl = nil; + SSL_SESSION_set_timeout: function(s: PSSL_SESSION; t: TIdC_LONG): TIdC_LONG; cdecl = nil; + SSL_SESSION_get_protocol_version: function(const s: PSSL_SESSION): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_set_protocol_version: function(s: PSSL_SESSION; version: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSL_SESSION_get0_hostname: function(const s: PSSL_SESSION): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_set1_hostname: function(s: PSSL_SESSION; const hostname: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_get0_alpn_selected: procedure(const s: PSSL_SESSION; const alpn: PPByte; len: PIdC_SIZET); cdecl = nil; {introduced 1.1.0} + SSL_SESSION_set1_alpn_selected: function(s: PSSL_SESSION; const alpn: PByte; len: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_get0_cipher: function(const s: PSSL_SESSION): PSSL_CIPHER; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_set_cipher: function(s: PSSL_SESSION; const cipher: PSSL_CIPHER): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_has_ticket: function(const s: PSSL_SESSION): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_get_ticket_lifetime_hint: function(const s: PSSL_SESSION): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_get0_ticket: procedure(const s: PSSL_SESSION; const tick: PPByte; len: PIdC_SIZET); cdecl = nil; {introduced 1.1.0} + SSL_SESSION_get_max_early_data: function(const s: PSSL_SESSION): TIdC_UINT32; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_set_max_early_data: function(s: PSSL_SESSION; max_early_data: TIdC_UINT32): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_copy_session_id: function(to_: PSSL; const from: PSSL): TIdC_INT; cdecl = nil; + SSL_SESSION_get0_peer: function(s: PSSL_SESSION): PX509; cdecl = nil; + SSL_SESSION_set1_id_context: function(s: PSSL_SESSION; const sid_ctx: PByte; sid_ctx_len: TIdC_UINT): TIdC_INT; cdecl = nil; + SSL_SESSION_set1_id: function(s: PSSL_SESSION; const sid: PByte; sid_len: TIdC_UINT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_is_resumable: function(const s: PSSL_SESSION): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSL_SESSION_new: function: PSSL_SESSION; cdecl = nil; + SSL_SESSION_dup: function(src: PSSL_SESSION): PSSL_SESSION; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_get_id: function(const s: PSSL_SESSION; len: PIdC_UINT): PByte; cdecl = nil; + SSL_SESSION_get0_id_context: function(const s: PSSL_SESSION; len: PIdC_UINT): PByte; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_get_compress_id: function(const s: PSSL_SESSION): TIdC_UINT; cdecl = nil; + SSL_SESSION_print: function(fp: PBIO; const ses: PSSL_SESSION): TIdC_INT; cdecl = nil; + SSL_SESSION_print_keylog: function(bp: PBIO; const x: PSSL_SESSION): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_up_ref: function(ses: PSSL_SESSION): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_free: procedure(ses: PSSL_SESSION); cdecl = nil; + //__owur TIdC_INT i2d_SSL_SESSION(SSL_SESSION *in_, Byte **pp); + SSL_set_session: function(to_: PSSL; session: PSSL_SESSION): TIdC_INT; cdecl = nil; + SSL_CTX_add_session: function(ctx: PSSL_CTX; session: PSSL_SESSION): TIdC_INT; cdecl = nil; + SSL_CTX_remove_session: function(ctx: PSSL_CTX; session: PSSL_SESSION): TIdC_INT; cdecl = nil; + SSL_CTX_set_generate_session_id: function(ctx: PSSL_CTX; cb: GEN_SESSION_CB): TIdC_INT; cdecl = nil; + SSL_set_generate_session_id: function(s: PSSL; cb: GEN_SESSION_CB): TIdC_INT; cdecl = nil; + SSL_has_matching_session_id: function(const s: PSSL; const id: PByte; id_len: TIdC_UINT): TIdC_INT; cdecl = nil; + d2i_SSL_SESSION: function(a: PPSSL_SESSION; const pp: PPByte; length: TIdC_LONG): PSSL_SESSION; cdecl = nil; + + SSL_get_peer_certificate: function(const s: PSSL): PX509; cdecl = nil; {removed 3.0.0} + + //__owur STACK_OF(X509) *SSL_get_peer_cert_chain(const s: PSSL); + // + SSL_CTX_get_verify_mode: function(const ctx: PSSL_CTX): TIdC_INT; cdecl = nil; + SSL_CTX_get_verify_depth: function(const ctx: PSSL_CTX): TIdC_INT; cdecl = nil; + SSL_CTX_get_verify_callback: function(const ctx: PSSL_CTX): SSL_verify_cb; cdecl = nil; + SSL_CTX_set_verify: procedure(ctx: PSSL_CTX; mode: TIdC_INT; callback: SSL_verify_cb); cdecl = nil; + SSL_CTX_set_verify_depth: procedure(ctx: PSSL_CTX; depth: TIdC_INT); cdecl = nil; + SSL_CTX_set_cert_verify_callback: procedure(ctx: PSSL_CTX; cb: SSL_CTX_set_cert_verify_callback_cb; arg: Pointer); cdecl = nil; + SSL_CTX_set_cert_cb: procedure(c: PSSL_CTX; cb: SSL_CTX_set_cert_cb_cb; arg: Pointer); cdecl = nil; + SSL_CTX_use_RSAPrivateKey: function(ctx: PSSL_CTX; rsa: PRSA): TIdC_INT; cdecl = nil; + SSL_CTX_use_RSAPrivateKey_ASN1: function(ctx: PSSL_CTX; const d: PByte; len: TIdC_LONG): TIdC_INT; cdecl = nil; + SSL_CTX_use_PrivateKey: function(ctx: PSSL_CTX; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + SSL_CTX_use_PrivateKey_ASN1: function(pk: TIdC_INT; ctx: PSSL_CTX; const d: PByte; len: TIdC_LONG): TIdC_INT; cdecl = nil; + SSL_CTX_use_certificate: function(ctx: PSSL_CTX; x: X509): TIdC_INT; cdecl = nil; + SSL_CTX_use_certificate_ASN1: function(ctx: PSSL_CTX; len: TIdC_INT; const d: PByte): TIdC_INT; cdecl = nil; + //function TIdC_INT SSL_CTX_use_cert_and_key(ctx: PSSL_CTX; x509: PX509; EVP_PKEY *privatekey; STACK_OF(X509) *chain; TIdC_INT override); + + SSL_CTX_set_default_passwd_cb: procedure(ctx: PSSL_CTX; cb: pem_password_cb); cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_default_passwd_cb_userdata: procedure(ctx: PSSL_CTX; u: Pointer); cdecl = nil; {introduced 1.1.0} + SSL_CTX_get_default_passwd_cb: function(ctx: PSSL_CTX): pem_password_cb; cdecl = nil; {introduced 1.1.0} + SSL_CTX_get_default_passwd_cb_userdata: function(ctx: PSSL_CTX): Pointer; cdecl = nil; {introduced 1.1.0} + SSL_set_default_passwd_cb: procedure(s: PSSL; cb: pem_password_cb); cdecl = nil; {introduced 1.1.0} + SSL_set_default_passwd_cb_userdata: procedure(s: PSSL; u: Pointer); cdecl = nil; {introduced 1.1.0} + SSL_get_default_passwd_cb: function(s: PSSL): pem_password_cb; cdecl = nil; {introduced 1.1.0} + SSL_get_default_passwd_cb_userdata: function(s: PSSL): Pointer; cdecl = nil; {introduced 1.1.0} + + SSL_CTX_check_private_key: function(const ctx: PSSL_CTX): TIdC_INT; cdecl = nil; + SSL_check_private_key: function(const ctx: PSSL): TIdC_INT; cdecl = nil; + + SSL_CTX_set_session_id_context: function(ctx: PSSL_CTX; const sid_ctx: PByte; sid_ctx_len: TIdC_UINT): TIdC_INT; cdecl = nil; + + SSL_new: function(ctx: PSSL_CTX): PSSL; cdecl = nil; + SSL_up_ref: function(s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_is_dtls: function(const s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_set_session_id_context: function(ssl: PSSL; const sid_ctx: PByte; sid_ctx_len: TIdC_UINT): TIdC_INT; cdecl = nil; + + SSL_CTX_set_purpose: function(ctx: PSSL_CTX; purpose: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_set_purpose: function(ssl: PSSL; purpose: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_CTX_set_trust: function(ctx: PSSL_CTX; trust: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_set_trust: function(ssl: PSSL; trust: TIdC_INT): TIdC_INT; cdecl = nil; + + SSL_set1_host: function(s: PSSL; const hostname: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_add1_host: function(s: PSSL; const hostname: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get0_peername: function(s: PSSL): PIdAnsiChar; cdecl = nil; {introduced 1.1.0} + SSL_set_hostflags: procedure(s: PSSL; flags: TIdC_UINT); cdecl = nil; {introduced 1.1.0} + + SSL_CTX_dane_enable: function(ctx: PSSL_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_dane_mtype_set: function(ctx: PSSL_CTX; const md: PEVP_MD; mtype: TIdC_UINT8; ord: TIdC_UINT8): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_dane_enable: function(s: PSSL; const basedomain: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_dane_tlsa_add: function(s: PSSL; usage: TIdC_UINT8; selector: TIdC_UINT8; mtype: TIdC_UINT8; const data: PByte; dlen: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get0_dane_authority: function(s: PSSL; mcert: PPX509; mspki: PPEVP_PKEY): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get0_dane_tlsa: function(s: PSSL; usage: PIdC_UINT8; selector: PIdC_UINT8; mtype: PIdC_UINT8; const data: PPByte; dlen: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + (* + * Bridge opacity barrier between libcrypt and libssl, also needed to support + * offline testing in test/danetest.c + *) + SSL_get0_dane: function(ssl: PSSL): PSSL_DANE; cdecl = nil; {introduced 1.1.0} + + (* + * DANE flags + *) + SSL_CTX_dane_set_flags: function(ctx: PSSL_CTX; flags: TIdC_ULONG): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + SSL_CTX_dane_clear_flags: function(ctx: PSSL_CTX; flags: TIdC_ULONG): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + SSL_dane_set_flags: function(ssl: PSSL; flags: TIdC_ULONG): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + SSL_dane_clear_flags: function(ssl: PSSL; flags: TIdC_ULONG): TIdC_ULONG; cdecl = nil; {introduced 1.1.0} + + SSL_CTX_set1_param: function(ctx: PSSL_CTX; vpm: PX509_VERIFY_PARAM): TIdC_INT; cdecl = nil; + SSL_set1_param: function(ssl: PSSL; vpm: PX509_VERIFY_PARAM): TIdC_INT; cdecl = nil; + + SSL_CTX_get0_param: function(ctx: PSSL_CTX): PX509_VERIFY_PARAM; cdecl = nil; + SSL_get0_param: function(ssl: PSSL): PX509_VERIFY_PARAM; cdecl = nil; + + SSL_CTX_set_srp_username: function(ctx: PSSL_CTX; name: PIdAnsiChar): TIdC_INT; cdecl = nil; + SSL_CTX_set_srp_password: function(ctx: PSSL_CTX; password: PIdAnsiChar): TIdC_INT; cdecl = nil; + SSL_CTX_set_srp_strength: function(ctx: PSSL_CTX; strength: TIdC_INT): TIdC_INT; cdecl = nil; + + SSL_CTX_set_srp_client_pwd_callback: function(ctx: PSSL_CTX; cb: SSL_CTX_set_srp_client_pwd_callback_cb): TIdC_INT; cdecl = nil; + SSL_CTX_set_srp_verify_param_callback: function(ctx: PSSL_CTX; cb: SSL_CTX_set_srp_verify_param_callback_cb): TIdC_INT; cdecl = nil; + SSL_CTX_set_srp_username_callback: function(ctx: PSSL_CTX; cb: SSL_CTX_set_srp_username_callback_cb): TIdC_INT; cdecl = nil; + + SSL_CTX_set_srp_cb_arg: function(ctx: PSSL_CTX; arg: Pointer): TIdC_INT; cdecl = nil; + SSL_set_srp_server_param: function(s: PSSL; const N: PBIGNUm; const g: PBIGNUm; sa: PBIGNUm; v: PBIGNUm; info: PIdAnsiChar): TIdC_INT; cdecl = nil; + SSL_set_srp_server_param_pw: function(s: PSSL; const user: PIdAnsiChar; const pass: PIdAnsiChar; const grp: PIdAnsiChar): TIdC_INT; cdecl = nil; + + //__owur BIGNUM *SSL_get_srp_g(s: PSSL); + //__owur BIGNUM *SSL_get_srp_N(s: PSSL); + // + //__owur PIdAnsiChar *SSL_get_srp_username(s: PSSL); + //__owur PIdAnsiChar *SSL_get_srp_userinfo(s: PSSL); + // + ///* + // * ClientHello callback and helpers. + // */ + SSL_CTX_set_client_hello_cb: procedure(c: PSSL_CTX; cb: SSL_client_hello_cb_fn; arg: Pointer); cdecl = nil; {introduced 1.1.0} + SSL_client_hello_isv2: function(s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_client_hello_get0_legacy_version: function(s: PSSL): TIdC_UINT; cdecl = nil; {introduced 1.1.0} + SSL_client_hello_get0_random: function(s: PSSL; const out_: PPByte): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + SSL_client_hello_get0_session_id: function(s: PSSL; const out_: PPByte): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + SSL_client_hello_get0_ciphers: function(s: PSSL; const out_: PPByte): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + SSL_client_hello_get0_compression_methods: function(s: PSSL; const out_: PPByte): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + SSL_client_hello_get1_extensions_present: function(s: PSSL; out_: PPIdC_INT; outlen: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_client_hello_get0_ext: function(s: PSSL; type_: TIdC_UINT; const out_: PPByte; outlen: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_certs_clear: procedure(s: PSSL); cdecl = nil; + SSL_free: procedure(ssl: PSSL); cdecl = nil; + + (* + * Windows application developer has to include windows.h to use these. + *) + SSL_waiting_for_async: function(s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get_all_async_fds: function(s: PSSL; fds: POSSL_ASYNC_FD; numfds: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get_changed_async_fds: function(s: PSSL; addfd: POSSL_ASYNC_FD; numaddfds: PIdC_SIZET; delfd: POSSL_ASYNC_FD; numdelfds: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_accept: function(ssl: PSSL): TIdC_INT; cdecl = nil; + SSL_stateless: function(s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_connect: function(ssl: PSSL): TIdC_INT; cdecl = nil; + SSL_read: function(ssl: PSSL; buf: Pointer; num: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_read_ex: function(ssl: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSL_read_early_data: function(s: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_peek: function(ssl: PSSL; buf: Pointer; num: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_peek_ex: function(ssl: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_write: function(ssl: PSSL; const buf: Pointer; num: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_write_ex: function(s: PSSL; const buf: Pointer; num: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_write_early_data: function(s: PSSL; const buf: Pointer; num: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_callback_ctrl: function(v1: PSSL; v2: TIdC_INT; v3: SSL_callback_ctrl_v3): TIdC_LONG; cdecl = nil; + + SSL_ctrl: function(ssl: PSSL; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG; cdecl = nil; + SSL_CTX_ctrl: function(ctx: PSSL_CTX; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG; cdecl = nil; + SSL_CTX_callback_ctrl: function(v1: PSSL_CTX; v2: TIdC_INT; v3: SSL_CTX_callback_ctrl_v3): TIdC_LONG; cdecl = nil; + + SSL_get_early_data_status: function(const s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSL_get_error: function(const s: PSSL; ret_code: TIdC_INT): TIdC_INT; cdecl = nil; + SSL_get_version: function(const s: PSSL): PIdAnsiChar; cdecl = nil; + + (* This sets the 'default' SSL version that SSL_new() will create *) + SSL_CTX_set_ssl_version: function(ctx: PSSL_CTX; const meth: PSSL_METHOD): TIdC_INT; cdecl = nil; + + ///* Negotiate highest available SSL/TLS version */ + TLS_method: function: PSSL_METHOD; cdecl = nil; {introduced 1.1.0} + TLS_server_method: function: PSSL_METHOD; cdecl = nil; {introduced 1.1.0} + TLS_client_method: function: PSSL_METHOD; cdecl = nil; {introduced 1.1.0} + + //__owur const SSL_METHOD *DTLS_method(void); /* DTLS 1.0 and 1.2 */ + //__owur const SSL_METHOD *DTLS_server_method(void); /* DTLS 1.0 and 1.2 */ + //__owur const SSL_METHOD *DTLS_client_method(void); /* DTLS 1.0 and 1.2 */ + // + //__owur TIdC_SIZET DTLS_get_data_mtu(const s: PSSL); + // + //__owur STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const s: PSSL); + //__owur STACK_OF(SSL_CIPHER) *SSL_CTX_get_ciphers(const ctx: PSSL_CTX); + //__owur STACK_OF(SSL_CIPHER) *SSL_get_client_ciphers(const s: PSSL); + //__owur STACK_OF(SSL_CIPHER) *SSL_get1_supported_ciphers(s: PSSL); + // + //__owur TIdC_INT SSL_do_handshake(s: PSSL); + SSL_key_update: function(s: PSSL; updatetype: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get_key_update_type: function(const s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_renegotiate: function(s: PSSL): TIdC_INT; cdecl = nil; + SSL_renegotiate_abbreviated: function(s: PSSL): TIdC_INT; cdecl = nil; + SSL_shutdown: function(s: PSSL): TIdC_INT; cdecl = nil; + SSL_CTX_set_post_handshake_auth: procedure(ctx: PSSL_CTX; val: TIdC_INT); cdecl = nil; {introduced 1.1.0} + SSL_set_post_handshake_auth: procedure(s: PSSL; val: TIdC_INT); cdecl = nil; {introduced 1.1.0} + + SSL_renegotiate_pending: function(const s: PSSL): TIdC_INT; cdecl = nil; + SSL_verify_client_post_handshake: function(s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSL_CTX_get_ssl_method: function(const ctx: PSSL_CTX): PSSL_METHOD; cdecl = nil; + SSL_get_ssl_method: function(const s: PSSL): PSSL_METHOD; cdecl = nil; + SSL_set_ssl_method: function(s: PSSL; const method: PSSL_METHOD): TIdC_INT; cdecl = nil; + SSL_alert_type_string_long: function(value: TIdC_INT): PIdAnsiChar; cdecl = nil; + SSL_alert_type_string: function(value: TIdC_INT): PIdAnsiChar; cdecl = nil; + SSL_alert_desc_string_long: function(value: TIdC_INT): PIdAnsiChar; cdecl = nil; + SSL_alert_desc_string: function(value: TIdC_INT): PIdAnsiChar; cdecl = nil; + + //void SSL_set0_CA_list(s: PSSL, STACK_OF(X509_NAME) *name_list); + //void SSL_CTX_set0_CA_list(ctx: PSSL_CTX, STACK_OF(X509_NAME) *name_list); + //__owur const STACK_OF(X509_NAME) *SSL_get0_CA_list(const s: PSSL); + //__owur const STACK_OF(X509_NAME) *SSL_CTX_get0_CA_list(const ctx: PSSL_CTX); + //__owur TIdC_INT SSL_add1_to_CA_list(ssl: PSSL, const X509 *x); + //__owur TIdC_INT SSL_CTX_add1_to_CA_list(ctx: PSSL_CTX, const X509 *x); + //__owur const STACK_OF(X509_NAME) *SSL_get0_peer_CA_list(const s: PSSL); + + //void SSL_set_client_CA_list(s: PSSL, STACK_OF(X509_NAME) *name_list); + //void SSL_CTX_set_client_CA_list(ctx: PSSL_CTX, STACK_OF(X509_NAME) *name_list); + //__owur STACK_OF(X509_NAME) *SSL_get_client_CA_list(const s: PSSL); + //__owur STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *s); + + SSL_CTX_set_client_CA_list: procedure(ctx: PSSL_CTX; name_list: PSTACK_OF_X509_NAME); cdecl = nil; + SSL_add_client_CA: function(ssl: PSSL; x: PX509): TIdC_INT; cdecl = nil; + SSL_CTX_add_client_CA: function(ctx: PSSL_CTX; x: PX509): TIdC_INT; cdecl = nil; + + SSL_set_connect_state: procedure(s: PSSL); cdecl = nil; + SSL_set_accept_state: procedure(s: PSSL); cdecl = nil; + + //__owur TIdC_LONG SSL_get_default_timeout(const s: PSSL); + // + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_library_init() OPENSSL_init_ssl(0, NULL) + //# endif + SSL_library_init: function: TIdC_INT; cdecl = nil; {removed 1.1.0} + + //__owur PIdAnsiChar *SSL_CIPHER_description(const SSL_CIPHER *, PIdAnsiChar *buf, TIdC_INT size); + //__owur STACK_OF(X509_NAME) *SSL_dup_CA_list(const STACK_OF(X509_NAME) *sk); + SSL_CIPHER_description: function(cipher: PSSL_CIPHER; buf: PIdAnsiChar; size_ :TIdC_INT): PIdAnsiChar; cdecl = nil; + + SSL_dup: function(ssl: PSSL): PSSL; cdecl = nil; + + SSL_get_certificate: function(const ssl: PSSL): PX509; cdecl = nil; + (* + * EVP_PKEY + *) + SSL_get_privatekey: function(const ssl: PSSL): PEVP_PKEY; cdecl = nil; + + SSL_CTX_get0_certificate: function(const ctx: PSSL_CTX): PX509; cdecl = nil; + SSL_CTX_get0_privatekey: function(const ctx: PSSL_CTX): PEVP_PKEY; cdecl = nil; + + SSL_CTX_set_quiet_shutdown: procedure(ctx: PSSL_CTX; mode: TIdC_INT); cdecl = nil; + SSL_CTX_get_quiet_shutdown: function(const ctx: PSSL_CTX): TIdC_INT; cdecl = nil; + SSL_set_quiet_shutdown: procedure(ssl: PSSL; mode: TIdC_INT); cdecl = nil; + SSL_get_quiet_shutdown: function(const ssl: PSSL): TIdC_INT; cdecl = nil; + SSL_set_shutdown: procedure(ssl: PSSL; mode: TIdC_INT); cdecl = nil; + SSL_get_shutdown: function(const ssl: PSSL): TIdC_INT; cdecl = nil; + SSL_version: function(const ssl: PSSL): TIdC_INT; cdecl = nil; + SSL_client_version: function(const s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_default_verify_paths: function(ctx: PSSL_CTX): TIdC_INT; cdecl = nil; + SSL_CTX_set_default_verify_dir: function(ctx: PSSL_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_default_verify_file: function(ctx: PSSL_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_load_verify_locations: function(ctx: PSSL_CTX; const CAfile: PIdAnsiChar; const CApath: PIdAnsiChar): TIdC_INT; cdecl = nil; + //# define SSL_get0_session SSL_get_session/* just peek at pointer */ + SSL_get_session: function(const ssl: PSSL): PSSL_SESSION; cdecl = nil; + (* obtain a reference count *) + SSL_get1_session: function(ssl: PSSL): PSSL_SESSION; cdecl = nil; + SSL_get_SSL_CTX: function(const ssl: PSSL): PSSL_CTX; cdecl = nil; + SSL_set_SSL_CTX: function(ssl: PSSL; ctx: PSSL_CTX): PSSL_CTX; cdecl = nil; + SSL_set_info_callback: procedure(ssl: PSSL; cb: SSL_info_callback); cdecl = nil; + SSL_get_info_callback: function(const ssl: PSSL): SSL_info_callback; cdecl = nil; + SSL_get_state: function(const ssl: PSSL): OSSL_HANDSHAKE_STATE; cdecl = nil; {introduced 1.1.0} + + SSL_set_verify_result: procedure(ssl: PSSL; v: TIdC_LONG); cdecl = nil; + SSL_get_verify_result: function(const ssl: PSSL): TIdC_LONG; cdecl = nil; + //__owur STACK_OF(X509) *SSL_get0_verified_chain(const s: PSSL); + + SSL_get_client_random: function(const ssl: PSSL; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + SSL_get_server_random: function(const ssl: PSSL; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_get_master_key: function(const sess: PSSL_SESSION; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_set1_master_key: function(sess: PSSL_SESSION; const in_: PByte; len: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_get_max_fragment_length: function(const sess: PSSL_SESSION): TIdC_UINT8; cdecl = nil; {introduced 1.1.0} + + //#define SSL_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL, l, p, newf, dupf, freef) + SSL_set_ex_data: function(ssl: PSSL; idx: TIdC_INT; data: Pointer): TIdC_INT; cdecl = nil; + SSL_get_ex_data: function(const ssl: PSSL; idx: TIdC_INT): Pointer; cdecl = nil; + //#define SSL_SESSION_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_SESSION, l, p, newf, dupf, freef) + SSL_SESSION_set_ex_data: function(ss: PSSL_SESSION; idx: TIdC_INT; data: Pointer): TIdC_INT; cdecl = nil; + SSL_SESSION_get_ex_data: function(const ss: PSSL_SESSION; idx: TIdC_INT): Pointer; cdecl = nil; + //#define SSL_CTX_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_CTX, l, p, newf, dupf, freef) + SSL_CTX_set_ex_data: function(ssl: PSSL_CTX; idx: TIdC_INT; data: Pointer): TIdC_INT; cdecl = nil; + SSL_CTX_get_ex_data: function(const ssl: PSSL_CTX; idx: TIdC_INT): Pointer; cdecl = nil; + + SSL_get_ex_data_X509_STORE_CTX_idx: function: TIdC_INT; cdecl = nil; + + //# define SSL_CTX_get_default_read_ahead(ctx) SSL_CTX_get_read_ahead(ctx) + //# define SSL_CTX_set_default_read_ahead(ctx,m) SSL_CTX_set_read_ahead(ctx,m) + //# define SSL_CTX_get_read_ahead(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_GET_READ_AHEAD,0,NULL) + //# define SSL_CTX_set_read_ahead(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_READ_AHEAD,m,NULL) + //# define SSL_CTX_get_max_cert_list(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL) + //# define SSL_CTX_set_max_cert_list(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL) + //# define SSL_get_max_cert_list(ssl) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL) + //# define SSL_set_max_cert_list(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL) + // + //# define SSL_CTX_set_max_send_fragment(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL) + //# define SSL_set_max_send_fragment(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL) + //# define SSL_CTX_set_split_send_fragment(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL) + //# define SSL_set_split_send_fragment(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL) + //# define SSL_CTX_set_max_pipelines(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_PIPELINES,m,NULL) + //# define SSL_set_max_pipelines(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_MAX_PIPELINES,m,NULL) + + SSL_CTX_set_default_read_buffer_len: procedure(ctx: PSSL_CTX; len: TIdC_SIZET); cdecl = nil; {introduced 1.1.0} + SSL_set_default_read_buffer_len: procedure(s: PSSL; len: TIdC_SIZET); cdecl = nil; {introduced 1.1.0} + + SSL_CTX_set_tmp_dh_callback: procedure(ctx: PSSL_CTX; dh: SSL_CTX_set_tmp_dh_callback_dh); cdecl = nil; + SSL_set_tmp_dh_callback: procedure(ssl: PSSL; dh: SSL_set_tmp_dh_callback_dh); cdecl = nil; + + //__owur const COMP_METHOD *SSL_get_current_compression(const s: PSSL); + //__owur const COMP_METHOD *SSL_get_current_expansion(const s: PSSL); + //__owur const PIdAnsiChar *SSL_COMP_get_name(const COMP_METHOD *comp); + //__owur const PIdAnsiChar *SSL_COMP_get0_name(const SSL_COMP *comp); + //__owur TIdC_INT SSL_COMP_get_id(const SSL_COMP *comp); + //STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void); + //__owur STACK_OF(SSL_COMP) *SSL_COMP_set0_compression_methods(STACK_OF(SSL_COMP) + // *meths); + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_COMP_free_compression_methods() while(0) continue + //# endif + //__owur TIdC_INT SSL_COMP_add_compression_method(TIdC_INT id, COMP_METHOD *cm); + + SSL_CIPHER_find: function(ssl: PSSL; const ptr: PByte): PSSL_CIPHER; cdecl = nil; + SSL_CIPHER_get_cipher_nid: function(const c: PSSL_CIPHEr): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CIPHER_get_digest_nid: function(const c: PSSL_CIPHEr): TIdC_INT; cdecl = nil; {introduced 1.1.0} + //TIdC_INT SSL_bytes_to_cipher_list(s: PSSL, const Byte *bytes, TIdC_SIZET len, + // TIdC_INT isv2format, STACK_OF(SSL_CIPHER) **sk, + // STACK_OF(SSL_CIPHER) **scsvs); + + (* TLS extensions functions *) + SSL_set_session_ticket_ext: function(s: PSSL; ext_data: Pointer; ext_len: TIdC_INT): TIdC_INT; cdecl = nil; + // + SSL_set_session_ticket_ext_cb: function(s: PSSL; cb: tls_session_ticket_ext_cb_fn; arg: Pointer): TIdC_INT; cdecl = nil; + + ///* Pre-shared secret session resumption functions */ + //__owur TIdC_INT SSL_set_session_secret_cb(s: PSSL, + // tls_session_secret_cb_fn session_secret_cb, + // void *arg); + + SSL_CTX_set_not_resumable_session_callback: procedure(ctx: PSSL_CTX; cb: SSL_CTX_set_not_resumable_session_callback_cb); cdecl = nil; {introduced 1.1.0} + SSL_set_not_resumable_session_callback: procedure(ssl: PSSL; cb: SSL_set_not_resumable_session_callback_cb); cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_record_padding_callback: procedure(ctx: PSSL_CTX; cb: SSL_CTX_set_record_padding_callback_cb); cdecl = nil; {introduced 1.1.0} + + SSL_CTX_set_record_padding_callback_arg: procedure(ctx: PSSL_CTX; arg: Pointer); cdecl = nil; {introduced 1.1.0} + SSL_CTX_get_record_padding_callback_arg: function(const ctx: PSSL_CTX): Pointer; cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_block_padding: function(ctx: PSSL_CTX; block_size: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSL_set_record_padding_callback: procedure(ssl: PSSL; cb: SSL_set_record_padding_callback_cb); cdecl = nil; {introduced 1.1.0} + + SSL_set_record_padding_callback_arg: procedure(ssl: PSSL; arg: Pointer); cdecl = nil; {introduced 1.1.0} + SSL_get_record_padding_callback_arg: function(const ssl: PSSL): Pointer; cdecl = nil; {introduced 1.1.0} + SSL_set_block_padding: function(ssl: PSSL; block_size: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_set_num_tickets: function(s: PSSL; num_tickets: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get_num_tickets: function(const s: PSSL): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_num_tickets: function(ctx: PSSL_CTX; num_tickets: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_get_num_tickets: function(const ctx: PSSL_CTX): TIdC_SIZET; cdecl = nil; {introduced 1.1.0} + + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_cache_hit(s) SSL_session_reused(s) + //# endif + + SSL_session_reused: function(const s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_is_server: function(const s: PSSL): TIdC_INT; cdecl = nil; + + SSL_CONF_CTX_new: function: PSSL_CONF_CTX; cdecl = nil; + SSL_CONF_CTX_finish: function(cctx: PSSL_CONF_CTX): TIdC_INT; cdecl = nil; + SSL_CONF_CTX_free: procedure(cctx: PSSL_CONF_CTX); cdecl = nil; + SSL_CONF_CTX_set_flags: function(cctx: PSSL_CONF_CTX; flags: TIdC_UINT): TIdC_UINT; cdecl = nil; + SSL_CONF_CTX_clear_flags: function(cctx: PSSL_CONF_CTX; flags: TIdC_UINT): TIdC_UINT; cdecl = nil; + SSL_CONF_CTX_set1_prefix: function(cctx: PSSL_CONF_CTX; const pre: PIdAnsiChar): TIdC_INT; cdecl = nil; + SSL_CONF_cmd: function(cctx: PSSL_CONF_CTX; const cmd: PIdAnsiChar; const value: PIdAnsiChar): TIdC_INT; cdecl = nil; + SSL_CONF_cmd_argv: function(cctx: PSSL_CONF_CTX; pargc: PIdC_INT; pargv: PPPIdAnsiChar): TIdC_INT; cdecl = nil; + SSL_CONF_cmd_value_type: function(cctx: PSSL_CONF_CTX; const cmd: PIdAnsiChar): TIdC_INT; cdecl = nil; + + SSL_CONF_CTX_set_ssl: procedure(cctx: PSSL_CONF_CTX; ssl: PSSL); cdecl = nil; + SSL_CONF_CTX_set_ssl_ctx: procedure(cctx: PSSL_CONF_CTX; ctx: PSSL_CTX); cdecl = nil; + SSL_add_ssl_module: procedure; cdecl = nil; {introduced 1.1.0} + SSL_config: function(s: PSSL; const name: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_config: function(ctx: PSSL_CTX; const name: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + +// procedure SSL_trace(write_p: TIdC_INT; version: TIdC_INT; content_type: TIdC_INT; const buf: Pointer; len: TIdC_SIZET; ssl: PSSL; arg: Pointer); + + DTLSv1_listen: function(s: PSSL; client: PBIO_ADDr): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + //# ifndef OPENSSL_NO_CT + // + ///* + // * A callback for verifying that the received SCTs are sufficient. + // * Expected to return 1 if they are sufficient, otherwise 0. + // * May return a negative integer if an error occurs. + // * A connection should be aborted if the SCTs are deemed insufficient. + // */ + //typedef TIdC_INT (*ssl_ct_validation_cb)(const CT_POLICY_EVAL_CTX *ctx, + // const STACK_OF(SCT) *scts, void *arg); + + ///* + // * Sets a |callback| that is invoked upon receipt of ServerHelloDone to validate + // * the received SCTs. + // * If the callback returns a non-positive result, the connection is terminated. + // * Call this function before beginning a handshake. + // * If a NULL |callback| is provided, SCT validation is disabled. + // * |arg| is arbitrary userdata that will be passed to the callback whenever it + // * is invoked. Ownership of |arg| remains with the caller. + // * + // * NOTE: A side-effect of setting a CT callback is that an OCSP stapled response + // * will be requested. + // */ + //function SSL_set_ct_validation_callback(s: PSSL; callback: ssl_ct_validation_cb; arg: Pointer): TIdC_INT; + //function SSL_CTX_set_ct_validation_callback(ctx: PSSL_CTX; callback: ssl_ct_validation_cb; arg: Pointer): TIdC_INT; + + //#define SSL_disable_ct(s) \ + // ((void) SSL_set_validation_callback((s), NULL, NULL)) + //#define SSL_CTX_disable_ct(ctx) \ + // ((void) SSL_CTX_set_validation_callback((ctx), NULL, NULL)) + + ///* + // * The validation type enumerates the available behaviours of the built-in SSL + // * CT validation callback selected via SSL_enable_ct() and SSL_CTX_enable_ct(). + // * The underlying callback is a static function in_ libssl. + // */ + + ///* + // * Enable CT by setting up a callback that implements one of the built-in + // * validation variants. The SSL_CT_VALIDATION_PERMISSIVE variant always + // * continues the handshake, the application can make appropriate decisions at + // * handshake completion. The SSL_CT_VALIDATION_STRICT variant requires at + // * least one valid SCT, or else handshake termination will be requested. The + // * handshake may continue anyway if SSL_VERIFY_NONE is in_ effect. + // */ + SSL_enable_ct: function(s: PSSL; validation_mode: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_enable_ct: function(ctx: PSSL_CTX; validation_mode: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + ///* + // * Report whether a non-NULL callback is enabled. + // */ + SSL_ct_is_enabled: function(const s: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_ct_is_enabled: function(const ctx: PSSL_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + ///* Gets the SCTs received from a connection */ + //const STACK_OF(SCT) *SSL_get0_peer_scts(s: PSSL); + + SSL_CTX_set_default_ctlog_list_file: function(ctx: PSSL_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_ctlog_list_file: function(ctx: PSSL_CTX; const path: PIdAnsiChar): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_CTX_set0_ctlog_store: procedure(ctx: PSSL_CTX; logs: PCTLOG_STORE); cdecl = nil; {introduced 1.1.0} + + // const CTLOG_STORE *SSL_CTX_get0_ctlog_store(const ctx: PSSL_CTX); + + // # endif /* OPENSSL_NO_CT */ + + SSL_set_security_level: procedure(s: PSSL; level: TIdC_INT); cdecl = nil; {introduced 1.1.0} + + ////__owur TIdC_INT SSL_get_security_level(const s: PSSL); + SSL_set_security_callback: procedure(s: PSSL; cb: SSL_security_callback); cdecl = nil; {introduced 1.1.0} + SSL_get_security_callback: function(const s: PSSL): SSL_security_callback; cdecl = nil; {introduced 1.1.0} + SSL_set0_security_ex_data: procedure(s: PSSL; ex: Pointer); cdecl = nil; {introduced 1.1.0} + SSL_get0_security_ex_data: function(const s: PSSL): Pointer; cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_security_level: procedure(ctx: PSSL_CTX; level: TIdC_INT); cdecl = nil; {introduced 1.1.0} + SSL_CTX_get_security_level: function(const ctx: PSSL_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + //void SSL_CTX_set_security_callback(ctx: PSSL_CTX, + // TIdC_INT (*cb) (const s: PSSL, const ctx: PSSL_CTX, + // TIdC_INT op, TIdC_INT bits, TIdC_INT nid, + // void *other, void *ex)); + //TIdC_INT (*SSL_CTX_get_security_callback(const ctx: PSSL_CTX)) (const s: PSSL, + // const ctx: PSSL_CTX, + // TIdC_INT op, TIdC_INT bits, + // TIdC_INT nid, + // void *other, + // void *ex); + + SSL_CTX_get0_security_ex_data: function(const ctx: PSSL_CTX): Pointer; cdecl = nil; {introduced 1.1.0} + + SSL_CTX_set0_security_ex_data: procedure(ctx: PSSL_CTX; ex: Pointer); cdecl = nil; {introduced 1.1.0} + + OPENSSL_init_ssl: function(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + //# ifndef OPENSSL_NO_UNIT_TEST + //__owur const struct openssl_ssl_test_functions *SSL_test_functions(void); + //# endif + + SSL_free_buffers: function(ssl: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_alloc_buffers: function(ssl: PSSL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSL_CTX_set_session_ticket_cb: function(ctx: PSSL_CTX; gen_cb: SSL_CTX_generate_session_ticket_fn; dec_cb: SSL_CTX_decrypt_session_ticket_fn; arg: Pointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSL_SESSION_set1_ticket_appdata: function(ss: PSSL_SESSION; const data: Pointer; len: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_SESSION_get0_ticket_appdata: function(ss: PSSL_SESSION; data: PPointer; len: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + //extern const PIdAnsiChar SSL_version_str[]; + + DTLS_set_timer_cb: procedure(s: PSSL; cb: DTLS_timer_cb); cdecl = nil; {introduced 1.1.0} + SSL_CTX_set_allow_early_data_cb: procedure(ctx: PSSL_CTX; cb: SSL_allow_early_data_cb_fN; arg: Pointer); cdecl = nil; {introduced 1.1.0} + SSL_set_allow_early_data_cb: procedure(s: PSSL; cb: SSL_allow_early_data_cb_fN; arg: Pointer); cdecl = nil; {introduced 1.1.0} + + SSLv2_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // SSLv2 + SSLv2_server_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // SSLv2 + SSLv2_client_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // SSLv2 + SSLv3_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // SSLv3 + SSLv3_server_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // SSLv3 + SSLv3_client_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // SSLv3 + SSLv23_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + SSLv23_server_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + SSLv23_client_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + TLSv1_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // TLSv1.0 + TLSv1_server_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // TLSv1.0 + TLSv1_client_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // TLSv1.0 + TLSv1_1_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} //TLS1.1 + TLSv1_1_server_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} //TLS1.1 + TLSv1_1_client_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} //TLS1.1 + TLSv1_2_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // TLSv1.2 + TLSv1_2_server_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // TLSv1.2 + TLSv1_2_client_method: function: PSSL_METHOD; cdecl = nil; {removed 1.1.0 allow_nil} // TLSv1.2 + + //X509 *SSL_get0_peer_certificate(const SSL *s); + SSL_get0_peer_certificate: function(const s: PSSL): PX509; cdecl = nil; {introduced 3.3.0} + // X509 *SSL_get1_peer_certificate(const SSL *s); + SSL_get1_peer_certificate: function(const s: PSSL): PX509; cdecl = nil; {introduced 3.3.0} + + + +{$ELSE} + + + + //typedef TIdC_INT (*tls_session_secret_cb_fn)(s: PSSL, void *secret, TIdC_INT *secret_len, + // STACK_OF(SSL_CIPHER) *peer_ciphers, + // const SSL_CIPHER **cipher, void *arg); + + function SSL_CTX_get_options(const ctx: PSSL_CTX): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_options(const s: PSSL): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_clear_options(ctx: PSSL_CTX; op: TIdC_ULONG): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_clear_options(s: PSSL; op: TIdC_ULONG): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_set_options(ctx: PSSL_CTX; op: TIdC_ULONG): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_set_options(s: PSSL; op: TIdC_ULONG): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + //# define SSL_CTX_set_mode(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL) + //# define SSL_CTX_clear_mode(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_MODE,(op),NULL) + //# define SSL_CTX_get_mode(ctx) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,0,NULL) + //# define SSL_clear_mode(ssl,op) \ + // SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL) + //# define SSL_set_mode(ssl,op) \ + // SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL) + //# define SSL_get_mode(ssl) \ + // SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL) + //# define SSL_set_mtu(ssl, mtu) \ + // SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL) + //# define DTLS_set_link_mtu(ssl, mtu) \ + // SSL_ctrl((ssl),DTLS_CTRL_SET_LINK_MTU,(mtu),NULL) + //# define DTLS_get_link_min_mtu(ssl) \ + // SSL_ctrl((ssl),DTLS_CTRL_GET_LINK_MIN_MTU,0,NULL) + // + //# define SSL_get_secure_renegotiation_support(ssl) \ + // SSL_ctrl((ssl), SSL_CTRL_GET_RI_SUPPORT, 0, NULL) + // + //# ifndef OPENSSL_NO_HEARTBEATS + //# define SSL_heartbeat(ssl) \ + // SSL_ctrl((ssl),SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT,0,NULL) + //# endif + // + //# define SSL_CTX_set_cert_flags(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_CERT_FLAGS,(op),NULL) + //# define SSL_set_cert_flags(s,op) \ + // SSL_ctrl((s),SSL_CTRL_CERT_FLAGS,(op),NULL) + //# define SSL_CTX_clear_cert_flags(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL) + //# define SSL_clear_cert_flags(s,op) \ + // SSL_ctrl((s),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL) + // + //void SSL_CTX_set_msg_callback(ctx: PSSL_CTX, + // void (*cb) (TIdC_INT write_p, TIdC_INT version, + // TIdC_INT content_type, const void *buf, + // TIdC_SIZET len, ssl: PSSL, void *arg)); + //void SSL_set_msg_callback(ssl: PSSL, + // void (*cb) (TIdC_INT write_p, TIdC_INT version, + // TIdC_INT content_type, const void *buf, + // TIdC_SIZET len, ssl: PSSL, void *arg)); + //# define SSL_CTX_set_msg_callback_arg(ctx, arg) SSL_CTX_ctrl((ctx), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg)) + //# define SSL_set_msg_callback_arg(ssl, arg) SSL_ctrl((ssl), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg)) + // + //# define SSL_get_extms_support(s) \ + // SSL_ctrl((s),SSL_CTRL_GET_EXTMS_SUPPORT,0,NULL) + // + //# ifndef OPENSSL_NO_SRP + + ///* see tls_srp.c */ + //__owur TIdC_INT SSL_SRP_CTX_init(s: PSSL); + //__owur TIdC_INT SSL_CTX_SRP_CTX_init(ctx: PSSL_CTX); + //TIdC_INT SSL_SRP_CTX_free(SSL *ctx); + //TIdC_INT SSL_CTX_SRP_CTX_free(ctx: PSSL_CTX); + //__owur TIdC_INT SSL_srp_server_param_with_username(s: PSSL, TIdC_INT *ad); + //__owur TIdC_INT SRP_Calc_A_param(s: PSSL); + + // # endif + + // LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(ctx: PSSL_CTX); + //# define SSL_CTX_sess_number(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_NUMBER,0,NULL) + //# define SSL_CTX_sess_connect(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT,0,NULL) + //# define SSL_CTX_sess_connect_good(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_GOOD,0,NULL) + //# define SSL_CTX_sess_connect_renegotiate(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_RENEGOTIATE,0,NULL) + //# define SSL_CTX_sess_accept(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT,0,NULL) + //# define SSL_CTX_sess_accept_renegotiate(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_RENEGOTIATE,0,NULL) + //# define SSL_CTX_sess_accept_good(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_GOOD,0,NULL) + //# define SSL_CTX_sess_hits(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_HIT,0,NULL) + //# define SSL_CTX_sess_cb_hits(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CB_HIT,0,NULL) + //# define SSL_CTX_sess_misses(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_MISSES,0,NULL) + //# define SSL_CTX_sess_timeouts(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_TIMEOUTS,0,NULL) + //# define SSL_CTX_sess_cache_full(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CACHE_FULL,0,NULL) + + procedure SSL_CTX_sess_set_new_cb(ctx: PSSL_CTX; new_session_cb: SSL_CTX_sess_new_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_sess_get_new_cb(ctx: PSSL_CTX): SSL_CTX_sess_new_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_sess_set_remove_cb(ctx: PSSL_CTX; remove_session_cb: SSL_CTX_sess_remove_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_sess_get_remove_cb(ctx: PSSL_CTX): SSL_CTX_sess_remove_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + //void SSL_CTX_sess_set_get_cb(ctx: PSSL_CTX, + // SSL_SESSION *(*get_session_cb) (struct ssl_st + // *ssl, + // const Byte + // *data, TIdC_INT len, + // TIdC_INT *copy)); + //SSL_SESSION *(*SSL_CTX_sess_get_get_cb(ctx: PSSL_CTX)) (struct ssl_st *ssl, + // const d: PByteata, + // TIdC_INT len, TIdC_INT *copy); + procedure SSL_CTX_set_info_callback(ctx: PSSL_CTX; cb: SSL_CTX_info_callback) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_get_info_callback(ctx: PSSL_CTX): SSL_CTX_info_callback cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set_client_cert_cb(ctx: PSSL_CTX; client_cert_cb: SSL_CTX_client_cert_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_get_client_cert_cb(ctx: PSSL_CTX): SSL_CTX_client_cert_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_set_client_cert_engine(ctx: PSSL_CTX; e: PENGINE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + procedure SSL_CTX_set_cookie_generate_cb(ctx: PSSL_CTX; app_gen_cookie_cb: SSL_CTX_cookie_verify_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set_cookie_verify_cb(ctx: PSSL_CTX; app_verify_cookie_cb: SSL_CTX_set_cookie_verify_cb_app_verify_cookie_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set_stateless_cookie_generate_cb(ctx: PSSL_CTX; gen_stateless_cookie_cb: SSL_CTX_set_stateless_cookie_generate_cb_gen_stateless_cookie_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_CTX_set_stateless_cookie_verify_cb(ctx: PSSL_CTX; verify_stateless_cookie_cb: SSL_CTX_set_stateless_cookie_verify_cb_verify_stateless_cookie_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + //__owur TIdC_INT SSL_CTX_set_alpn_protos(ctx: PSSL_CTX, const Byte *protos, + // TIdC_UINT protos_len); + //__owur TIdC_INT SSL_set_alpn_protos(ssl: PSSL, const Byte *protos, + // TIdC_UINT protos_len); + + procedure SSL_CTX_set_alpn_select_cb(ctx: PSSL_CTX; cb: SSL_CTX_alpn_select_cb_func; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_get0_alpn_selected(const ssl: PSSL; const data: PPByte; len: PIdC_UINT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set_psk_client_callback(ctx: PSSL_CTX; cb: SSL_psk_client_cb_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_set_psk_client_callback(ssl: PSSL; cb: SSL_psk_client_cb_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set_psk_server_callback(ctx: PSSL_CTX; cb: SSL_psk_server_cb_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_set_psk_server_callback(ssl: PSSL; cb: SSL_psk_server_cb_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + //__owur TIdC_INT SSL_CTX_use_psk_identity_hint(ctx: PSSL_CTX, const PIdAnsiChar *identity_hint); + //__owur TIdC_INT SSL_use_psk_identity_hint(s: PSSL, const PIdAnsiChar *identity_hint); + //const PIdAnsiChar *SSL_get_psk_identity_hint(const s: PSSL); + //const PIdAnsiChar *SSL_get_psk_identity(const s: PSSL); + + procedure SSL_set_psk_find_session_callback(s: PSSL; cb: SSL_psk_find_session_cb_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_CTX_set_psk_find_session_callback(ctx: PSSL_CTX; cb: SSL_psk_find_session_cb_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_set_psk_use_session_callback(s: PSSL; cb: SSL_psk_use_session_cb_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_CTX_set_psk_use_session_callback(ctx: PSSL_CTX; cb: SSL_psk_use_session_cb_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + ///* Register callbacks to handle custom TLS Extensions for client or server. */ + + //__owur TIdC_INT SSL_CTX_has_client_custom_ext(const ctx: PSSL_CTX, + // TIdC_UINT ext_type); + // + //__owur TIdC_INT SSL_CTX_add_client_custom_ext(ctx: PSSL_CTX, + // TIdC_UINT ext_type, + // custom_ext_add_cb add_cb, + // custom_ext_free_cb free_cb, + // void *add_arg, + // custom_ext_parse_cb parse_cb, + // void *parse_arg); + // + //__owur TIdC_INT SSL_CTX_add_server_custom_ext(ctx: PSSL_CTX, + // TIdC_UINT ext_type, + // custom_ext_add_cb add_cb, + // custom_ext_free_cb free_cb, + // void *add_arg, + // custom_ext_parse_cb parse_cb, + // void *parse_arg); + // + //__owur TIdC_INT SSL_CTX_add_custom_ext(ctx: PSSL_CTX, TIdC_UINT ext_type, + // TIdC_UINT context, + // SSL_custom_ext_add_cb_ex add_cb, + // SSL_custom_ext_free_cb_ex free_cb, + // void *add_arg, + // SSL_custom_ext_parse_cb_ex parse_cb, + // void *parse_arg); + + //__owur TIdC_INT SSL_extension_supported(TIdC_UINT ext_type); + + + ///* These will only be used when doing non-blocking IO */ + //# define SSL_want_nothing(s) (SSL_want(s) == SSL_NOTHING) + //# define SSL_want_read(s) (SSL_want(s) == SSL_READING) + //# define SSL_want_write(s) (SSL_want(s) == SSL_WRITING) + //# define SSL_want_x509_lookup(s) (SSL_want(s) == SSL_X509_LOOKUP) + //# define SSL_want_async(s) (SSL_want(s) == SSL_ASYNC_PAUSED) + //# define SSL_want_async_job(s) (SSL_want(s) == SSL_ASYNC_NO_JOBS) + //# define SSL_want_client_hello_cb(s) (SSL_want(s) == SSL_CLIENT_HELLO_CB) + + (* + * SSL_CTX_set_keylog_callback configures a callback to log key material. This + * is intended for debugging use with tools like Wireshark. The cb function + * should log line followed by a newline. + *) + procedure SSL_CTX_set_keylog_callback(ctx: PSSL_CTX; cb: SSL_CTX_keylog_cb_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + (* + * SSL_CTX_get_keylog_callback returns the callback configured by + * SSL_CTX_set_keylog_callback. + *) + function SSL_CTX_get_keylog_callback(const ctx: PSSL_CTX): SSL_CTX_keylog_cb_func cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_set_max_early_data(ctx: PSSL_CTX; max_early_data: TIdC_UINT32): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_get_max_early_data(const ctx: PSSL_CTX): TIdC_UINT32 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_set_max_early_data(s: PSSL; max_early_data: TIdC_UINT32): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_max_early_data(const s: PSSL): TIdC_UINT32 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_set_recv_max_early_data(ctx: PSSL_CTX; recv_max_early_data: TIdC_UINT32): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_get_recv_max_early_data(const ctx: PSSL_CTX): TIdC_UINT32 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_set_recv_max_early_data(s: PSSL; recv_max_early_data: TIdC_UINT32): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_recv_max_early_data(const s: PSSL): TIdC_UINT32 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + ///* + // * These need to be after the above set of includes due to a compiler bug + // * in_ VisualStudio 2015 + // */ + //DEFINE_STACK_OF_CONST(SSL_CIPHER) + //DEFINE_STACK_OF(SSL_COMP) + + ///* compatibility */ + //# define SSL_set_app_data(s,arg) (SSL_set_ex_data(s,0,(PIdAnsiChar *)(arg))) + //# define SSL_get_app_data(s) (SSL_get_ex_data(s,0)) + //# define SSL_SESSION_set_app_data(s,a) (SSL_SESSION_set_ex_data(s,0, \ + // (PIdAnsiChar *)(a))) + //# define SSL_SESSION_get_app_data(s) (SSL_SESSION_get_ex_data(s,0)) + //# define SSL_CTX_get_app_data(ctx) (SSL_CTX_get_ex_data(ctx,0)) + //# define SSL_CTX_set_app_data(ctx,arg) (SSL_CTX_set_ex_data(ctx,0, \ + // (PIdAnsiChar *)(arg))) + + ///* Is the SSL_connection established? */ + //# define SSL_in_connect_init(a) (SSL_in_init(a) && !SSL_is_server(a)) + //# define SSL_in_accept_init(a) (SSL_in_init(a) && SSL_is_server(a)) + function SSL_in_init(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_in_before(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_is_init_finished(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + (*- + * Obtain latest Finished message + * -- that we sent (SSL_get_finished) + * -- that we expected from peer (SSL_get_peer_finished). + * Returns length (0 == no Finished so far), copies up to 'count' bytes. + *) + function SSL_get_finished(const s: PSSL; buf: Pointer; count: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_peer_finished(const s: PSSL; buf: Pointer; count: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define OpenSSL_add_ssl_algorithms() SSL_library_init() + //# define SSLeay_add_ssl_algorithms() SSL_library_init() + //# endif + + ///* More backward compatibility */ + //# define SSL_get_cipher(s) \ + // SSL_CIPHER_get_name(SSL_get_current_cipher(s)) + //# define SSL_get_cipher_bits(s,np) \ + // SSL_CIPHER_get_bits(SSL_get_current_cipher(s),np) + //# define SSL_get_cipher_version(s) \ + // SSL_CIPHER_get_version(SSL_get_current_cipher(s)) + //# define SSL_get_cipher_name(s) \ + // SSL_CIPHER_get_name(SSL_get_current_cipher(s)) + //# define SSL_get_time(a) SSL_SESSION_get_time(a) + //# define SSL_set_time(a,b) SSL_SESSION_set_time((a),(b)) + //# define SSL_get_timeout(a) SSL_SESSION_get_timeout(a) + //# define SSL_set_timeout(a,b) SSL_SESSION_set_timeout((a),(b)) + // + //# define d2i_SSL_SESSION_bio(bp,s_id) ASN1_d2i_bio_of(SSL_SESSION,SSL_SESSION_new,d2i_SSL_SESSION,bp,s_id) + //# define i2d_SSL_SESSION_bio(bp,s_id) ASN1_i2d_bio_of(SSL_SESSION,i2d_SSL_SESSION,bp,s_id) + + //DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION) + + //# define DTLSv1_get_timeout(ssl, arg) \ + // SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0, (void *)(arg)) + //# define DTLSv1_handle_timeout(ssl) \ + // SSL_ctrl(ssl,DTLS_CTRL_HANDLE_TIMEOUT,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) + + //# if OPENSSL_API_COMPAT < 0x10100000L + //const SSL_CTX_need_tmp_RSA = (ctx) 0; + //const SSL_CTX_set_tmp_rsa = (ctx;rsa) 1; + //const SSL_need_tmp_RSA = (ssl) 0; + //const SSL_set_tmp_rsa = (ssl;rsa) 1; + + //# define SSL_CTX_set_ecdh_auto(dummy, onoff) ((onoff) != 0) + //# define SSL_set_ecdh_auto(dummy, onoff) ((onoff) != 0) + ///* + // * We 'pretend' to call the callback to avoid warnings about unused static + // * functions. + // */ + //# define SSL_CTX_set_tmp_rsa_callback(ctx, cb) while(0) (cb)(NULL, 0, 0) + //# define SSL_set_tmp_rsa_callback(ssl, cb) while(0) (cb)(NULL, 0, 0) + //# endif + // + function BIO_f_ssl: PBIO_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function BIO_new_ssl(ctx: PSSL_CTX; client: TIdC_INT): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function BIO_new_ssl_connect(ctx: PSSL_CTX): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function BIO_new_buffer_ssl_connect(ctx: PSSL_CTX): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function BIO_ssl_copy_session_id(to_: PBIO; from: PBIO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_CTX_set_cipher_list(v1: PSSL_CTX; const str: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_new(const meth: PSSL_METHOD): PSSL_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_set_timeout(ctx: PSSL_CTX; t: TIdC_LONG): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_get_timeout(const ctx: PSSL_CTX): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_get_cert_store(const v1: PSSL_CTX): PX509_STORE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_want(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_clear(s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + procedure BIO_ssl_shutdown(ssl_bio: PBIO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_up_ref(ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_CTX_free(v1: PSSL_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set_cert_store(v1: PSSL_CTX; v2: PX509_STORE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set1_cert_store(v1: PSSL_CTX; v2: PX509_STORE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + procedure SSL_CTX_flush_sessions(ctx: PSSL_CTX; tm: TIdC_LONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_get_current_cipher(const s: PSSL): PSSL_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_pending_cipher(const s: PSSL): PSSL_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CIPHER_get_bits(const c: PSSL_CIPHER; var alg_bits: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CIPHER_get_version(const c: PSSL_CIPHER): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CIPHER_get_name(const c: PSSL_CIPHER): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CIPHER_standard_name(const c: PSSL_CIPHER): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function OPENSSL_cipher_name(const rfc_name: PIdAnsiChar): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CIPHER_get_id(const c: PSSL_CIPHER): TIdC_UINT32 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CIPHER_get_protocol_id(const c: PSSL_CIPHER): TIdC_UINT16 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CIPHER_get_kx_nid(const c: PSSL_CIPHER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CIPHER_get_auth_nid(const c: PSSL_CIPHER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CIPHER_get_handshake_digest(const c: PSSL_CIPHER): PEVP_MD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CIPHER_is_aead(const c: PSSL_CIPHER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_get_fd(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_rfd(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_wfd(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_cipher_list(const s: PSSL; n: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_shared_ciphers(const s: PSSL; buf: PIdAnsiChar; size: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_read_ahead(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_pending(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_has_pending(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_set_fd(s: PSSL; fd: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_set_rfd(s: PSSL; fd: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_set_wfd(s: PSSL; fd: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_set0_rbio(s: PSSL; rbio: PBIO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_set0_wbio(s: PSSL; wbio: PBIO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_set_bio(s: PSSL; rbio: PBIO; wbio: PBIO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_rbio(const s: PSSL): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_wbio(const s: PSSL): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_set_cipher_list(s: PSSL; const str: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_set_ciphersuites(ctx: PSSL_CTX; const str: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_set_ciphersuites(s: PSSL; const str: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_verify_mode(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_verify_depth(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_verify_callback(const s: PSSL): SSL_verify_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_set_read_ahead(s: PSSL; yes: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_set_verify(s: PSSL; mode: TIdC_INT; callback: SSL_verify_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_set_verify_depth(s: PSSL; depth: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + //void SSL_set_cert_cb(s: PSSL, TIdC_INT (*cb) (ssl: PSSL, void *arg), void *arg); + + function SSL_use_RSAPrivateKey(ssl: PSSL; rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_use_RSAPrivateKey_ASN1(ssl: PSSL; const d: PByte; len: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_use_PrivateKey(ssl: PSSL; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_use_PrivateKey_ASN1(pk: TIdC_INT; ssl: PSSL; const d: PByte; len: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_use_certificate(ssl: PSSL; x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_use_certificate_ASN1(ssl: PSSL; const d: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + //__owur TIdC_INT SSL_use_cert_and_key(ssl: PSSL, x509: PX509, EVP_PKEY *privatekey, + // STACK_OF(X509) *chain, TIdC_INT override); + + (* Set serverinfo data for the current active cert. *) + function SSL_CTX_use_serverinfo(ctx: PSSL_CTX; const serverinfo: PByte; serverinfo_length: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_use_serverinfo_ex(ctx: PSSL_CTX; version: TIdC_UINT; const serverinfo: PByte; serverinfo_length: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_use_serverinfo_file(ctx: PSSL_CTX; const file_: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_use_RSAPrivateKey_file(ssl: PSSL; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_use_PrivateKey_file(ssl: PSSL; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_use_certificate_file(ssl: PSSL; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_CTX_use_RSAPrivateKey_file(ctx: PSSL_CTX; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_CTX_use_PrivateKey_file(ctx: PSSL_CTX; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_use_certificate_file(ctx: PSSL_CTX; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + (* PEM type *) + function SSL_CTX_use_certificate_chain_file(ctx: PSSL_CTX; const file_: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_use_certificate_chain_file(ssl: PSSL; const file_: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_load_client_CA_file(const file_: PIdAnsiChar): PSTACK_OF_X509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_add_file_cert_subjects_to_stack(stackCAs: PSTACK_OF_X509_NAME; const file_: PIdAnsiChar):TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_add_dir_cert_subjects_to_stack(stackCAs: PSTACK_OF_X509_NAME; const dir_: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_load_error_strings() \ + // OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \ + // | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL) + //# endif + + function SSL_state_string(const s: PSSL): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_rstate_string(const s: PSSL): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_state_string_long(const s: PSSL): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_rstate_string_long(const s: PSSL): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_get_time(const s: PSSL_SESSION): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_set_time(s: PSSL_SESSION; t: TIdC_LONG): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_get_timeout(const s: PSSL_SESSION): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_set_timeout(s: PSSL_SESSION; t: TIdC_LONG): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_get_protocol_version(const s: PSSL_SESSION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_set_protocol_version(s: PSSL_SESSION; version: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_SESSION_get0_hostname(const s: PSSL_SESSION): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_set1_hostname(s: PSSL_SESSION; const hostname: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_SESSION_get0_alpn_selected(const s: PSSL_SESSION; const alpn: PPByte; len: PIdC_SIZET) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_set1_alpn_selected(s: PSSL_SESSION; const alpn: PByte; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_get0_cipher(const s: PSSL_SESSION): PSSL_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_set_cipher(s: PSSL_SESSION; const cipher: PSSL_CIPHER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_has_ticket(const s: PSSL_SESSION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_get_ticket_lifetime_hint(const s: PSSL_SESSION): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_SESSION_get0_ticket(const s: PSSL_SESSION; const tick: PPByte; len: PIdC_SIZET) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_get_max_early_data(const s: PSSL_SESSION): TIdC_UINT32 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_set_max_early_data(s: PSSL_SESSION; max_early_data: TIdC_UINT32): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_copy_session_id(to_: PSSL; const from: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_get0_peer(s: PSSL_SESSION): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_set1_id_context(s: PSSL_SESSION; const sid_ctx: PByte; sid_ctx_len: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_set1_id(s: PSSL_SESSION; const sid: PByte; sid_len: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_is_resumable(const s: PSSL_SESSION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_SESSION_new: PSSL_SESSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_dup(src: PSSL_SESSION): PSSL_SESSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_get_id(const s: PSSL_SESSION; len: PIdC_UINT): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_get0_id_context(const s: PSSL_SESSION; len: PIdC_UINT): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_get_compress_id(const s: PSSL_SESSION): TIdC_UINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_print(fp: PBIO; const ses: PSSL_SESSION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_print_keylog(bp: PBIO; const x: PSSL_SESSION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_up_ref(ses: PSSL_SESSION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_SESSION_free(ses: PSSL_SESSION) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + //__owur TIdC_INT i2d_SSL_SESSION(SSL_SESSION *in_, Byte **pp); + function SSL_set_session(to_: PSSL; session: PSSL_SESSION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_add_session(ctx: PSSL_CTX; session: PSSL_SESSION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_remove_session(ctx: PSSL_CTX; session: PSSL_SESSION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_set_generate_session_id(ctx: PSSL_CTX; cb: GEN_SESSION_CB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_set_generate_session_id(s: PSSL; cb: GEN_SESSION_CB): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_has_matching_session_id(const s: PSSL; const id: PByte; id_len: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function d2i_SSL_SESSION(a: PPSSL_SESSION; const pp: PPByte; length: TIdC_LONG): PSSL_SESSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + + //__owur STACK_OF(X509) *SSL_get_peer_cert_chain(const s: PSSL); + // + function SSL_CTX_get_verify_mode(const ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_get_verify_depth(const ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_get_verify_callback(const ctx: PSSL_CTX): SSL_verify_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set_verify(ctx: PSSL_CTX; mode: TIdC_INT; callback: SSL_verify_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set_verify_depth(ctx: PSSL_CTX; depth: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set_cert_verify_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_cert_verify_callback_cb; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set_cert_cb(c: PSSL_CTX; cb: SSL_CTX_set_cert_cb_cb; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_use_RSAPrivateKey(ctx: PSSL_CTX; rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_use_RSAPrivateKey_ASN1(ctx: PSSL_CTX; const d: PByte; len: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_use_PrivateKey(ctx: PSSL_CTX; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_use_PrivateKey_ASN1(pk: TIdC_INT; ctx: PSSL_CTX; const d: PByte; len: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_use_certificate(ctx: PSSL_CTX; x: X509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_use_certificate_ASN1(ctx: PSSL_CTX; len: TIdC_INT; const d: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + //function TIdC_INT SSL_CTX_use_cert_and_key(ctx: PSSL_CTX; x509: PX509; EVP_PKEY *privatekey; STACK_OF(X509) *chain; TIdC_INT override); + + procedure SSL_CTX_set_default_passwd_cb(ctx: PSSL_CTX; cb: pem_password_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_CTX_set_default_passwd_cb_userdata(ctx: PSSL_CTX; u: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_get_default_passwd_cb(ctx: PSSL_CTX): pem_password_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_get_default_passwd_cb_userdata(ctx: PSSL_CTX): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_set_default_passwd_cb(s: PSSL; cb: pem_password_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_set_default_passwd_cb_userdata(s: PSSL; u: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_default_passwd_cb(s: PSSL): pem_password_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_default_passwd_cb_userdata(s: PSSL): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_CTX_check_private_key(const ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_check_private_key(const ctx: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_CTX_set_session_id_context(ctx: PSSL_CTX; const sid_ctx: PByte; sid_ctx_len: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_new(ctx: PSSL_CTX): PSSL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_up_ref(s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_is_dtls(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_set_session_id_context(ssl: PSSL; const sid_ctx: PByte; sid_ctx_len: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_CTX_set_purpose(ctx: PSSL_CTX; purpose: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_set_purpose(ssl: PSSL; purpose: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_set_trust(ctx: PSSL_CTX; trust: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_set_trust(ssl: PSSL; trust: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_set1_host(s: PSSL; const hostname: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_add1_host(s: PSSL; const hostname: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get0_peername(s: PSSL): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_set_hostflags(s: PSSL; flags: TIdC_UINT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_CTX_dane_enable(ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_dane_mtype_set(ctx: PSSL_CTX; const md: PEVP_MD; mtype: TIdC_UINT8; ord: TIdC_UINT8): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_dane_enable(s: PSSL; const basedomain: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_dane_tlsa_add(s: PSSL; usage: TIdC_UINT8; selector: TIdC_UINT8; mtype: TIdC_UINT8; const data: PByte; dlen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get0_dane_authority(s: PSSL; mcert: PPX509; mspki: PPEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get0_dane_tlsa(s: PSSL; usage: PIdC_UINT8; selector: PIdC_UINT8; mtype: PIdC_UINT8; const data: PPByte; dlen: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + (* + * Bridge opacity barrier between libcrypt and libssl, also needed to support + * offline testing in test/danetest.c + *) + function SSL_get0_dane(ssl: PSSL): PSSL_DANE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + (* + * DANE flags + *) + function SSL_CTX_dane_set_flags(ctx: PSSL_CTX; flags: TIdC_ULONG): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_dane_clear_flags(ctx: PSSL_CTX; flags: TIdC_ULONG): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_dane_set_flags(ssl: PSSL; flags: TIdC_ULONG): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_dane_clear_flags(ssl: PSSL; flags: TIdC_ULONG): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_CTX_set1_param(ctx: PSSL_CTX; vpm: PX509_VERIFY_PARAM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_set1_param(ssl: PSSL; vpm: PX509_VERIFY_PARAM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_CTX_get0_param(ctx: PSSL_CTX): PX509_VERIFY_PARAM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get0_param(ssl: PSSL): PX509_VERIFY_PARAM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_CTX_set_srp_username(ctx: PSSL_CTX; name: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_set_srp_password(ctx: PSSL_CTX; password: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_set_srp_strength(ctx: PSSL_CTX; strength: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_CTX_set_srp_client_pwd_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_srp_client_pwd_callback_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_set_srp_verify_param_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_srp_verify_param_callback_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_set_srp_username_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_srp_username_callback_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_CTX_set_srp_cb_arg(ctx: PSSL_CTX; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_set_srp_server_param(s: PSSL; const N: PBIGNUm; const g: PBIGNUm; sa: PBIGNUm; v: PBIGNUm; info: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_set_srp_server_param_pw(s: PSSL; const user: PIdAnsiChar; const pass: PIdAnsiChar; const grp: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + //__owur BIGNUM *SSL_get_srp_g(s: PSSL); + //__owur BIGNUM *SSL_get_srp_N(s: PSSL); + // + //__owur PIdAnsiChar *SSL_get_srp_username(s: PSSL); + //__owur PIdAnsiChar *SSL_get_srp_userinfo(s: PSSL); + // + ///* + // * ClientHello callback and helpers. + // */ + procedure SSL_CTX_set_client_hello_cb(c: PSSL_CTX; cb: SSL_client_hello_cb_fn; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_client_hello_isv2(s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_client_hello_get0_legacy_version(s: PSSL): TIdC_UINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_client_hello_get0_random(s: PSSL; const out_: PPByte): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_client_hello_get0_session_id(s: PSSL; const out_: PPByte): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_client_hello_get0_ciphers(s: PSSL; const out_: PPByte): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_client_hello_get0_compression_methods(s: PSSL; const out_: PPByte): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_client_hello_get1_extensions_present(s: PSSL; out_: PPIdC_INT; outlen: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_client_hello_get0_ext(s: PSSL; type_: TIdC_UINT; const out_: PPByte; outlen: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_certs_clear(s: PSSL) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_free(ssl: PSSL) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + (* + * Windows application developer has to include windows.h to use these. + *) + function SSL_waiting_for_async(s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_all_async_fds(s: PSSL; fds: POSSL_ASYNC_FD; numfds: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_changed_async_fds(s: PSSL; addfd: POSSL_ASYNC_FD; numaddfds: PIdC_SIZET; delfd: POSSL_ASYNC_FD; numdelfds: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_accept(ssl: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_stateless(s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_connect(ssl: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_read(ssl: PSSL; buf: Pointer; num: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_read_ex(ssl: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_read_early_data(s: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_peek(ssl: PSSL; buf: Pointer; num: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_peek_ex(ssl: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_write(ssl: PSSL; const buf: Pointer; num: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_write_ex(s: PSSL; const buf: Pointer; num: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_write_early_data(s: PSSL; const buf: Pointer; num: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_callback_ctrl(v1: PSSL; v2: TIdC_INT; v3: SSL_callback_ctrl_v3): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_ctrl(ssl: PSSL; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_ctrl(ctx: PSSL_CTX; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_callback_ctrl(v1: PSSL_CTX; v2: TIdC_INT; v3: SSL_CTX_callback_ctrl_v3): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_get_early_data_status(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_get_error(const s: PSSL; ret_code: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_version(const s: PSSL): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + (* This sets the 'default' SSL version that SSL_new() will create *) + function SSL_CTX_set_ssl_version(ctx: PSSL_CTX; const meth: PSSL_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + ///* Negotiate highest available SSL/TLS version */ + function TLS_method: PSSL_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function TLS_server_method: PSSL_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function TLS_client_method: PSSL_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + //__owur const SSL_METHOD *DTLS_method(void); /* DTLS 1.0 and 1.2 */ + //__owur const SSL_METHOD *DTLS_server_method(void); /* DTLS 1.0 and 1.2 */ + //__owur const SSL_METHOD *DTLS_client_method(void); /* DTLS 1.0 and 1.2 */ + // + //__owur TIdC_SIZET DTLS_get_data_mtu(const s: PSSL); + // + //__owur STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const s: PSSL); + //__owur STACK_OF(SSL_CIPHER) *SSL_CTX_get_ciphers(const ctx: PSSL_CTX); + //__owur STACK_OF(SSL_CIPHER) *SSL_get_client_ciphers(const s: PSSL); + //__owur STACK_OF(SSL_CIPHER) *SSL_get1_supported_ciphers(s: PSSL); + // + //__owur TIdC_INT SSL_do_handshake(s: PSSL); + function SSL_key_update(s: PSSL; updatetype: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_key_update_type(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_renegotiate(s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_renegotiate_abbreviated(s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_shutdown(s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CTX_set_post_handshake_auth(ctx: PSSL_CTX; val: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_set_post_handshake_auth(s: PSSL; val: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_renegotiate_pending(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_verify_client_post_handshake(s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_CTX_get_ssl_method(const ctx: PSSL_CTX): PSSL_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_ssl_method(const s: PSSL): PSSL_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_set_ssl_method(s: PSSL; const method: PSSL_METHOD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_alert_type_string_long(value: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_alert_type_string(value: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_alert_desc_string_long(value: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_alert_desc_string(value: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + //void SSL_set0_CA_list(s: PSSL, STACK_OF(X509_NAME) *name_list); + //void SSL_CTX_set0_CA_list(ctx: PSSL_CTX, STACK_OF(X509_NAME) *name_list); + //__owur const STACK_OF(X509_NAME) *SSL_get0_CA_list(const s: PSSL); + //__owur const STACK_OF(X509_NAME) *SSL_CTX_get0_CA_list(const ctx: PSSL_CTX); + //__owur TIdC_INT SSL_add1_to_CA_list(ssl: PSSL, const X509 *x); + //__owur TIdC_INT SSL_CTX_add1_to_CA_list(ctx: PSSL_CTX, const X509 *x); + //__owur const STACK_OF(X509_NAME) *SSL_get0_peer_CA_list(const s: PSSL); + + //void SSL_set_client_CA_list(s: PSSL, STACK_OF(X509_NAME) *name_list); + //void SSL_CTX_set_client_CA_list(ctx: PSSL_CTX, STACK_OF(X509_NAME) *name_list); + //__owur STACK_OF(X509_NAME) *SSL_get_client_CA_list(const s: PSSL); + //__owur STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *s); + + procedure SSL_CTX_set_client_CA_list(ctx: PSSL_CTX; name_list: PSTACK_OF_X509_NAME) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_add_client_CA(ssl: PSSL; x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_add_client_CA(ctx: PSSL_CTX; x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + procedure SSL_set_connect_state(s: PSSL) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_set_accept_state(s: PSSL) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + //__owur TIdC_LONG SSL_get_default_timeout(const s: PSSL); + // + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_library_init() OPENSSL_init_ssl(0, NULL) + //# endif + + //__owur PIdAnsiChar *SSL_CIPHER_description(const SSL_CIPHER *, PIdAnsiChar *buf, TIdC_INT size); + //__owur STACK_OF(X509_NAME) *SSL_dup_CA_list(const STACK_OF(X509_NAME) *sk); + function SSL_CIPHER_description(cipher: PSSL_CIPHER; buf: PIdAnsiChar; size_ :TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_dup(ssl: PSSL): PSSL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_get_certificate(const ssl: PSSL): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + (* + * EVP_PKEY + *) + function SSL_get_privatekey(const ssl: PSSL): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_CTX_get0_certificate(const ctx: PSSL_CTX): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_get0_privatekey(const ctx: PSSL_CTX): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + procedure SSL_CTX_set_quiet_shutdown(ctx: PSSL_CTX; mode: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_get_quiet_shutdown(const ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_set_quiet_shutdown(ssl: PSSL; mode: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_quiet_shutdown(const ssl: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_set_shutdown(ssl: PSSL; mode: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_shutdown(const ssl: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_version(const ssl: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_client_version(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_set_default_verify_paths(ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_set_default_verify_dir(ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_set_default_verify_file(ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_load_verify_locations(ctx: PSSL_CTX; const CAfile: PIdAnsiChar; const CApath: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + //# define SSL_get0_session SSL_get_session/* just peek at pointer */ + function SSL_get_session(const ssl: PSSL): PSSL_SESSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + (* obtain a reference count *) + function SSL_get1_session(ssl: PSSL): PSSL_SESSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_SSL_CTX(const ssl: PSSL): PSSL_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_set_SSL_CTX(ssl: PSSL; ctx: PSSL_CTX): PSSL_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_set_info_callback(ssl: PSSL; cb: SSL_info_callback) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_info_callback(const ssl: PSSL): SSL_info_callback cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_state(const ssl: PSSL): OSSL_HANDSHAKE_STATE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + procedure SSL_set_verify_result(ssl: PSSL; v: TIdC_LONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_verify_result(const ssl: PSSL): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + //__owur STACK_OF(X509) *SSL_get0_verified_chain(const s: PSSL); + + function SSL_get_client_random(const ssl: PSSL; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_server_random(const ssl: PSSL; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_get_master_key(const sess: PSSL_SESSION; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_set1_master_key(sess: PSSL_SESSION; const in_: PByte; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_get_max_fragment_length(const sess: PSSL_SESSION): TIdC_UINT8 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + //#define SSL_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL, l, p, newf, dupf, freef) + function SSL_set_ex_data(ssl: PSSL; idx: TIdC_INT; data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_ex_data(const ssl: PSSL; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + //#define SSL_SESSION_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_SESSION, l, p, newf, dupf, freef) + function SSL_SESSION_set_ex_data(ss: PSSL_SESSION; idx: TIdC_INT; data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_SESSION_get_ex_data(const ss: PSSL_SESSION; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + //#define SSL_CTX_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_CTX, l, p, newf, dupf, freef) + function SSL_CTX_set_ex_data(ssl: PSSL_CTX; idx: TIdC_INT; data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CTX_get_ex_data(const ssl: PSSL_CTX; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_get_ex_data_X509_STORE_CTX_idx: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + //# define SSL_CTX_get_default_read_ahead(ctx) SSL_CTX_get_read_ahead(ctx) + //# define SSL_CTX_set_default_read_ahead(ctx,m) SSL_CTX_set_read_ahead(ctx,m) + //# define SSL_CTX_get_read_ahead(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_GET_READ_AHEAD,0,NULL) + //# define SSL_CTX_set_read_ahead(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_READ_AHEAD,m,NULL) + //# define SSL_CTX_get_max_cert_list(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL) + //# define SSL_CTX_set_max_cert_list(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL) + //# define SSL_get_max_cert_list(ssl) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL) + //# define SSL_set_max_cert_list(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL) + // + //# define SSL_CTX_set_max_send_fragment(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL) + //# define SSL_set_max_send_fragment(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL) + //# define SSL_CTX_set_split_send_fragment(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL) + //# define SSL_set_split_send_fragment(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL) + //# define SSL_CTX_set_max_pipelines(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_PIPELINES,m,NULL) + //# define SSL_set_max_pipelines(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_MAX_PIPELINES,m,NULL) + + procedure SSL_CTX_set_default_read_buffer_len(ctx: PSSL_CTX; len: TIdC_SIZET) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_set_default_read_buffer_len(s: PSSL; len: TIdC_SIZET) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + procedure SSL_CTX_set_tmp_dh_callback(ctx: PSSL_CTX; dh: SSL_CTX_set_tmp_dh_callback_dh) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_set_tmp_dh_callback(ssl: PSSL; dh: SSL_set_tmp_dh_callback_dh) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + //__owur const COMP_METHOD *SSL_get_current_compression(const s: PSSL); + //__owur const COMP_METHOD *SSL_get_current_expansion(const s: PSSL); + //__owur const PIdAnsiChar *SSL_COMP_get_name(const COMP_METHOD *comp); + //__owur const PIdAnsiChar *SSL_COMP_get0_name(const SSL_COMP *comp); + //__owur TIdC_INT SSL_COMP_get_id(const SSL_COMP *comp); + //STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void); + //__owur STACK_OF(SSL_COMP) *SSL_COMP_set0_compression_methods(STACK_OF(SSL_COMP) + // *meths); + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_COMP_free_compression_methods() while(0) continue + //# endif + //__owur TIdC_INT SSL_COMP_add_compression_method(TIdC_INT id, COMP_METHOD *cm); + + function SSL_CIPHER_find(ssl: PSSL; const ptr: PByte): PSSL_CIPHER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CIPHER_get_cipher_nid(const c: PSSL_CIPHEr): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CIPHER_get_digest_nid(const c: PSSL_CIPHEr): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + //TIdC_INT SSL_bytes_to_cipher_list(s: PSSL, const Byte *bytes, TIdC_SIZET len, + // TIdC_INT isv2format, STACK_OF(SSL_CIPHER) **sk, + // STACK_OF(SSL_CIPHER) **scsvs); + + (* TLS extensions functions *) + function SSL_set_session_ticket_ext(s: PSSL; ext_data: Pointer; ext_len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + // + function SSL_set_session_ticket_ext_cb(s: PSSL; cb: tls_session_ticket_ext_cb_fn; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + ///* Pre-shared secret session resumption functions */ + //__owur TIdC_INT SSL_set_session_secret_cb(s: PSSL, + // tls_session_secret_cb_fn session_secret_cb, + // void *arg); + + procedure SSL_CTX_set_not_resumable_session_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_not_resumable_session_callback_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_set_not_resumable_session_callback(ssl: PSSL; cb: SSL_set_not_resumable_session_callback_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_CTX_set_record_padding_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_record_padding_callback_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + procedure SSL_CTX_set_record_padding_callback_arg(ctx: PSSL_CTX; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_get_record_padding_callback_arg(const ctx: PSSL_CTX): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_set_block_padding(ctx: PSSL_CTX; block_size: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + procedure SSL_set_record_padding_callback(ssl: PSSL; cb: SSL_set_record_padding_callback_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + procedure SSL_set_record_padding_callback_arg(ssl: PSSL; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_record_padding_callback_arg(const ssl: PSSL): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_set_block_padding(ssl: PSSL; block_size: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_set_num_tickets(s: PSSL; num_tickets: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_num_tickets(const s: PSSL): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_set_num_tickets(ctx: PSSL_CTX; num_tickets: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_get_num_tickets(const ctx: PSSL_CTX): TIdC_SIZET cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_cache_hit(s) SSL_session_reused(s) + //# endif + + function SSL_session_reused(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_is_server(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + function SSL_CONF_CTX_new: PSSL_CONF_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CONF_CTX_finish(cctx: PSSL_CONF_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CONF_CTX_free(cctx: PSSL_CONF_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CONF_CTX_set_flags(cctx: PSSL_CONF_CTX; flags: TIdC_UINT): TIdC_UINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CONF_CTX_clear_flags(cctx: PSSL_CONF_CTX; flags: TIdC_UINT): TIdC_UINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CONF_CTX_set1_prefix(cctx: PSSL_CONF_CTX; const pre: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CONF_cmd(cctx: PSSL_CONF_CTX; const cmd: PIdAnsiChar; const value: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CONF_cmd_argv(cctx: PSSL_CONF_CTX; pargc: PIdC_INT; pargv: PPPIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_CONF_cmd_value_type(cctx: PSSL_CONF_CTX; const cmd: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + procedure SSL_CONF_CTX_set_ssl(cctx: PSSL_CONF_CTX; ssl: PSSL) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_CONF_CTX_set_ssl_ctx(cctx: PSSL_CONF_CTX; ctx: PSSL_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + procedure SSL_add_ssl_module cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_config(s: PSSL; const name: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_config(ctx: PSSL_CTX; const name: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + +// procedure SSL_trace(write_p: TIdC_INT; version: TIdC_INT; content_type: TIdC_INT; const buf: Pointer; len: TIdC_SIZET; ssl: PSSL; arg: Pointer); + + function DTLSv1_listen(s: PSSL; client: PBIO_ADDr): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + //# ifndef OPENSSL_NO_CT + // + ///* + // * A callback for verifying that the received SCTs are sufficient. + // * Expected to return 1 if they are sufficient, otherwise 0. + // * May return a negative integer if an error occurs. + // * A connection should be aborted if the SCTs are deemed insufficient. + // */ + //typedef TIdC_INT (*ssl_ct_validation_cb)(const CT_POLICY_EVAL_CTX *ctx, + // const STACK_OF(SCT) *scts, void *arg); + + ///* + // * Sets a |callback| that is invoked upon receipt of ServerHelloDone to validate + // * the received SCTs. + // * If the callback returns a non-positive result, the connection is terminated. + // * Call this function before beginning a handshake. + // * If a NULL |callback| is provided, SCT validation is disabled. + // * |arg| is arbitrary userdata that will be passed to the callback whenever it + // * is invoked. Ownership of |arg| remains with the caller. + // * + // * NOTE: A side-effect of setting a CT callback is that an OCSP stapled response + // * will be requested. + // */ + //function SSL_set_ct_validation_callback(s: PSSL; callback: ssl_ct_validation_cb; arg: Pointer): TIdC_INT; + //function SSL_CTX_set_ct_validation_callback(ctx: PSSL_CTX; callback: ssl_ct_validation_cb; arg: Pointer): TIdC_INT; + + //#define SSL_disable_ct(s) \ + // ((void) SSL_set_validation_callback((s), NULL, NULL)) + //#define SSL_CTX_disable_ct(ctx) \ + // ((void) SSL_CTX_set_validation_callback((ctx), NULL, NULL)) + + ///* + // * The validation type enumerates the available behaviours of the built-in SSL + // * CT validation callback selected via SSL_enable_ct() and SSL_CTX_enable_ct(). + // * The underlying callback is a static function in_ libssl. + // */ + + ///* + // * Enable CT by setting up a callback that implements one of the built-in + // * validation variants. The SSL_CT_VALIDATION_PERMISSIVE variant always + // * continues the handshake, the application can make appropriate decisions at + // * handshake completion. The SSL_CT_VALIDATION_STRICT variant requires at + // * least one valid SCT, or else handshake termination will be requested. The + // * handshake may continue anyway if SSL_VERIFY_NONE is in_ effect. + // */ + function SSL_enable_ct(s: PSSL; validation_mode: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_enable_ct(ctx: PSSL_CTX; validation_mode: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + ///* + // * Report whether a non-NULL callback is enabled. + // */ + function SSL_ct_is_enabled(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_ct_is_enabled(const ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + ///* Gets the SCTs received from a connection */ + //const STACK_OF(SCT) *SSL_get0_peer_scts(s: PSSL); + + function SSL_CTX_set_default_ctlog_list_file(ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_set_ctlog_list_file(ctx: PSSL_CTX; const path: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_CTX_set0_ctlog_store(ctx: PSSL_CTX; logs: PCTLOG_STORE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + // const CTLOG_STORE *SSL_CTX_get0_ctlog_store(const ctx: PSSL_CTX); + + // # endif /* OPENSSL_NO_CT */ + + procedure SSL_set_security_level(s: PSSL; level: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + ////__owur TIdC_INT SSL_get_security_level(const s: PSSL); + procedure SSL_set_security_callback(s: PSSL; cb: SSL_security_callback) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_security_callback(const s: PSSL): SSL_security_callback cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_set0_security_ex_data(s: PSSL; ex: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get0_security_ex_data(const s: PSSL): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_CTX_set_security_level(ctx: PSSL_CTX; level: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_CTX_get_security_level(const ctx: PSSL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + //void SSL_CTX_set_security_callback(ctx: PSSL_CTX, + // TIdC_INT (*cb) (const s: PSSL, const ctx: PSSL_CTX, + // TIdC_INT op, TIdC_INT bits, TIdC_INT nid, + // void *other, void *ex)); + //TIdC_INT (*SSL_CTX_get_security_callback(const ctx: PSSL_CTX)) (const s: PSSL, + // const ctx: PSSL_CTX, + // TIdC_INT op, TIdC_INT bits, + // TIdC_INT nid, + // void *other, + // void *ex); + + function SSL_CTX_get0_security_ex_data(const ctx: PSSL_CTX): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + procedure SSL_CTX_set0_security_ex_data(ctx: PSSL_CTX; ex: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function OPENSSL_init_ssl(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + //# ifndef OPENSSL_NO_UNIT_TEST + //__owur const struct openssl_ssl_test_functions *SSL_test_functions(void); + //# endif + + function SSL_free_buffers(ssl: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_alloc_buffers(ssl: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_CTX_set_session_ticket_cb(ctx: PSSL_CTX; gen_cb: SSL_CTX_generate_session_ticket_fn; dec_cb: SSL_CTX_decrypt_session_ticket_fn; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_SESSION_set1_ticket_appdata(ss: PSSL_SESSION; const data: Pointer; len: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_SESSION_get0_ticket_appdata(ss: PSSL_SESSION; data: PPointer; len: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + //extern const PIdAnsiChar SSL_version_str[]; + + procedure DTLS_set_timer_cb(s: PSSL; cb: DTLS_timer_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_CTX_set_allow_early_data_cb(ctx: PSSL_CTX; cb: SSL_allow_early_data_cb_fN; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + procedure SSL_set_allow_early_data_cb(s: PSSL; cb: SSL_allow_early_data_cb_fN; arg: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + + //X509 *SSL_get0_peer_certificate(const SSL *s); + function SSL_get0_peer_certificate(const s: PSSL): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 3.3.0} + // X509 *SSL_get1_peer_certificate(const SSL *s); + function SSL_get1_peer_certificate(const s: PSSL): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 3.3.0} + + + +function SSL_CTX_set_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_clear_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_sess_set_cache_size(ctx: PSSL_CTX; t: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_sess_get_cache_size(ctx: PSSL_CTX): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set_session_cache_mode(ctx: PSSL_CTX; m: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_get_session_cache_mode(ctx: PSSL_CTX): TIdC_LONG; {removed 1.0.0} +function SSL_clear_num_renegotiations(ssl: PSSL): TIdC_LONG; {removed 1.0.0} +function SSL_total_renegotiations(ssl: PSSL): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set_tmp_dh(ctx: PSSL_CTX; dh: PDH): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set_tmp_ecdh(ctx: PSSL_CTX; ecdh: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set_dh_auto(ctx: PSSL_CTX; onoff: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set_dh_auto(s: PSSL; onoff: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set_tmp_dh(ssl: PSSL; dh: PDH): TIdC_LONG; {removed 1.0.0} +function SSL_set_tmp_ecdh(ssl: PSSL; ecdh: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_add_extra_chain_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_get_extra_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_get_extra_chain_certs_only(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_clear_extra_chain_certs(ctx: PSSL_CTX): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set0_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_add0_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_add1_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_get0_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_clear_chain_certs(ctx: PSSL_CTX): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_build_cert_chain(ctx: PSSL_CTX; flags: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_select_current_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set_current_cert(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set0_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set0_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_set0_chain(s: PSSL; sk: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_chain(s: PSSL; sk: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_add0_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_add1_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_get0_chain_certs(s: PSSL; px509: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_clear_chain_certs(s: PSSL): TIdC_LONG; {removed 1.0.0} +function SSL_build_cert_chain(s: PSSL; flags: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_select_current_cert(s: PSSL; x509: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set_current_cert(s: PSSL; op: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set0_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set0_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_get1_groups(s: PSSL; glist: PIdC_INT): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_groups(ctx: PSSL_CTX; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_groups_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_groups(s: PSSL; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set1_groups_list(s: PSSL; str: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_get_shared_group(s: PSSL; n: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set1_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_client_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_client_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_client_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set1_client_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_get0_certificate_types(s: PSSL; clist: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_client_certificate_types(ctx: PSSL_CTX; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set1_client_certificate_types(s: PSSL; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_get_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_get_peer_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_get_peer_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_get_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_get0_raw_cipherlist(s: PSSL; plst: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_get0_ec_point_formats(s: PSSL; plst: Pointer): TIdC_LONG; {removed 1.0.0} + function SSL_get_app_data(const ssl: PSSL): Pointer ; {removed 1.0.0} + function SSL_set_app_data(ssl: PSSL; data: Pointer): TIdC_INT; {removed 1.0.0} + function SSLeay_add_ssl_algorithms: TIdC_INT; {removed 1.0.0} + procedure SSL_load_error_strings; {removed 1.1.0} + function SSL_get_peer_certificate(const s: PSSL): PX509; {removed 3.0.0} + function SSL_library_init: TIdC_INT; {removed 1.1.0} +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + SSL_CTX_get_options_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_options_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_clear_options_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_clear_options_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_options_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_options_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_stateless_cookie_generate_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_stateless_cookie_verify_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_psk_find_session_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_psk_find_session_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_psk_use_session_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_psk_use_session_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_keylog_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_get_keylog_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_max_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_get_max_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_max_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_max_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_recv_max_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_get_recv_max_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_recv_max_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_recv_max_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_in_init_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_in_before_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_is_init_finished_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_up_ref_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set1_cert_store_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_pending_cipher_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CIPHER_standard_name_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_cipher_name_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CIPHER_get_protocol_id_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CIPHER_get_kx_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CIPHER_get_auth_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CIPHER_get_handshake_digest_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CIPHER_is_aead_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_has_pending_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set0_rbio_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set0_wbio_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_ciphersuites_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_ciphersuites_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_use_serverinfo_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_use_certificate_chain_file_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_get_protocol_version_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_set_protocol_version_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_get0_hostname_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_set1_hostname_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_get0_alpn_selected_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_set1_alpn_selected_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_get0_cipher_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_set_cipher_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_has_ticket_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_get_ticket_lifetime_hint_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_get0_ticket_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_get_max_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_set_max_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_set1_id_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_is_resumable_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_dup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_get0_id_context_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_print_keylog_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_up_ref_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_default_passwd_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_default_passwd_cb_userdata_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_get_default_passwd_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_get_default_passwd_cb_userdata_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_default_passwd_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_default_passwd_cb_userdata_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_default_passwd_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_default_passwd_cb_userdata_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_up_ref_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_is_dtls_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set1_host_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_add1_host_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get0_peername_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_hostflags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_dane_enable_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_dane_mtype_set_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_dane_enable_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_dane_tlsa_add_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get0_dane_authority_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get0_dane_tlsa_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get0_dane_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_dane_set_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_dane_clear_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_dane_set_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_dane_clear_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_client_hello_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_client_hello_isv2_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_client_hello_get0_legacy_version_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_client_hello_get0_random_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_client_hello_get0_session_id_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_client_hello_get0_ciphers_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_client_hello_get0_compression_methods_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_client_hello_get1_extensions_present_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_client_hello_get0_ext_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_waiting_for_async_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_all_async_fds_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_changed_async_fds_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_stateless_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_read_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_read_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_peek_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_write_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_write_early_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_early_data_status_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + TLS_method_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + TLS_server_method_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + TLS_client_method_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_key_update_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_key_update_type_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_post_handshake_auth_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_post_handshake_auth_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_verify_client_post_handshake_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_client_version_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_default_verify_dir_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_default_verify_file_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_state_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_client_random_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_server_random_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_get_master_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_set1_master_key_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_get_max_fragment_length_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_default_read_buffer_len_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_default_read_buffer_len_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CIPHER_get_cipher_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CIPHER_get_digest_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_not_resumable_session_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_not_resumable_session_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_record_padding_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_record_padding_callback_arg_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_get_record_padding_callback_arg_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_block_padding_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_record_padding_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_record_padding_callback_arg_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_record_padding_callback_arg_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_block_padding_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_num_tickets_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_num_tickets_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_num_tickets_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_get_num_tickets_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_session_reused_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_add_ssl_module_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_config_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_config_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DTLSv1_listen_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_enable_ct_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_enable_ct_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_ct_is_enabled_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_ct_is_enabled_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_default_ctlog_list_file_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_ctlog_list_file_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set0_ctlog_store_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_security_level_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_security_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_security_callback_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set0_security_ex_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get0_security_ex_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_security_level_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_get_security_level_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_get0_security_ex_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set0_security_ex_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_init_ssl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_free_buffers_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_alloc_buffers_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_session_ticket_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_set1_ticket_appdata_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_SESSION_get0_ticket_appdata_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + DTLS_set_timer_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_CTX_set_allow_early_data_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_allow_early_data_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get0_peer_certificate_introduced = (byte(3) shl 8 or byte(3)) shl 8 or byte(0); + SSL_get1_peer_certificate_introduced = (byte(3) shl 8 or byte(3)) shl 8 or byte(0); + SSL_CTX_set_mode_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_clear_mode_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_sess_set_cache_size_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_sess_get_cache_size_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set_session_cache_mode_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_get_session_cache_mode_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_clear_num_renegotiations_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_total_renegotiations_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set_tmp_dh_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set_tmp_ecdh_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set_dh_auto_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set_dh_auto_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set_tmp_dh_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set_tmp_ecdh_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_add_extra_chain_cert_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_get_extra_chain_certs_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_get_extra_chain_certs_only_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_clear_extra_chain_certs_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set0_chain_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set1_chain_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_add0_chain_cert_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_add1_chain_cert_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_get0_chain_certs_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_clear_chain_certs_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_build_cert_chain_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_select_current_cert_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set_current_cert_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set0_verify_cert_store_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set1_verify_cert_store_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set0_chain_cert_store_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set1_chain_cert_store_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set0_chain_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set1_chain_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_add0_chain_cert_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_add1_chain_cert_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_get0_chain_certs_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_clear_chain_certs_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_build_cert_chain_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_select_current_cert_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set_current_cert_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set0_verify_cert_store_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set1_verify_cert_store_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set0_chain_cert_store_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set1_chain_cert_store_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_get1_groups_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set1_groups_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set1_groups_list_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set1_groups_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set1_groups_list_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_get_shared_group_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set1_sigalgs_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set1_sigalgs_list_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set1_sigalgs_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set1_sigalgs_list_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set1_client_sigalgs_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set1_client_sigalgs_list_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set1_client_sigalgs_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set1_client_sigalgs_list_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_get0_certificate_types_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_CTX_set1_client_certificate_types_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set1_client_certificate_types_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_get_signature_nid_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_get_peer_signature_nid_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_get_peer_tmp_key_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_get_tmp_key_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_get0_raw_cipherlist_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_get0_ec_point_formats_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_get_app_data_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_set_app_data_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSLeay_add_ssl_algorithms_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + SSL_load_error_strings_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_peer_certificate_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + SSL_library_init_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSLv2_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // SSLv2 + SSLv2_server_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // SSLv2 + SSLv2_client_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // SSLv2 + SSLv3_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // SSLv3 + SSLv3_server_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // SSLv3 + SSLv3_client_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // SSLv3 + SSLv23_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // SSLv3 but can rollback to v2 + SSLv23_server_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // SSLv3 but can rollback to v2 + SSLv23_client_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // SSLv3 but can rollback to v2 + TLSv1_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // TLSv1.0 + TLSv1_server_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // TLSv1.0 + TLSv1_client_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // TLSv1.0 + TLSv1_1_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); //TLS1.1 + TLSv1_1_server_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); //TLS1.1 + TLSv1_1_client_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); //TLS1.1 + TLSv1_2_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // TLSv1.2 + TLSv1_2_server_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // TLSv1.2 + TLSv1_2_client_method_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); // TLSv1.2 + +//# define SSL_get_peer_certificate SSL_get1_peer_certificate +{helper_functions} + +function IsOpenSSL_SSLv2_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(SSLv2_method) and + Assigned(SSLv2_server_method) and + Assigned(SSLv2_client_method); + {$ELSE} + Result := false; + {$ENDIF} + end; + + function IsOpenSSL_SSLv3_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(SSLv3_method) and + Assigned(SSLv3_server_method) and + Assigned(SSLv3_client_method); + {$ELSE} + Result := true; + {$ENDIF} + end; + + function IsOpenSSL_SSLv23_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(SSLv23_method) and + Assigned(SSLv23_server_method) and + Assigned(SSLv23_client_method); + {$ELSE} + Result := false; + {$ENDIF} + end; + + function IsOpenSSL_TLSv1_0_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(TLSv1_method) and + Assigned(TLSv1_server_method) and + Assigned(TLSv1_client_method); + {$ELSE} + Result := true; + {$ENDIF} + end; + + function IsOpenSSL_TLSv1_1_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(TLSv1_1_method) and + Assigned(TLSv1_1_server_method) and + Assigned(TLSv1_1_client_method); + {$ELSE} + Result := true; + {$ENDIF} + end; + + function IsOpenSSL_TLSv1_2_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(TLSv1_2_method) and + Assigned(TLSv1_2_server_method) and + Assigned(TLSv1_2_client_method); + {$ELSE} + Result := true; + {$ENDIF} + end; + +function HasTLS_method: boolean; +begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + if Assigned(SSLeay) then + Result := TLS_method_introduced <= (SSLeay shr 12); + {$ELSE} + Result := true; + {$ENDIF} +end; + + +//# define SSL_CTX_set_min_proto_version(ctx, version) SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL) +function SSL_CTX_set_min_proto_version(ctx: PSSL_CTX; version: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, nil); +end; + +//# define SSL_CTX_set_max_proto_version(ctx, version) SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL) +function SSL_CTX_set_max_proto_version(ctx: PSSL_CTX; version: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, nil); +end; + +//# define SSL_CTX_get_min_proto_version(ctx) SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL) +function SSL_CTX_get_min_proto_version(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, nil); +end; + +//# define SSL_CTX_get_max_proto_version(ctx) SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL) +function SSL_CTX_get_max_proto_version(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, nil); +end; + +//# define SSL_set_min_proto_version(s, version) SSL_ctrl(s, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL) +function SSL_set_min_proto_version(s: PSSL; version: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_MIN_PROTO_VERSION, version, nil); +end; + +//# define SSL_set_max_proto_version(s, version) SSL_ctrl(s, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL) +function SSL_set_max_proto_version(s: PSSL; version: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_MAX_PROTO_VERSION, version, nil); +end; + +//# define SSL_get_min_proto_version(s) SSL_ctrl(s, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL) +function SSL_get_min_proto_version(s: PSSL): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, nil); +end; + +//# define SSL_get_max_proto_version(s) SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL) +function SSL_get_max_proto_version(s: PSSL): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, nil); +end; +{/helper_functions} +{$IFNDEF USE_EXTERNAL_LIBRARY} + +//# define SSL_get_peer_certificate SSL_get1_peer_certificate +function _SSL_get_peer_certificate(const s: PSSL): PX509; cdecl; +begin + Result := SSL_get1_peer_certificate(s); +end; + + +//# define SSL_CTX_set_mode(ctx,op) SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL) +function _SSL_CTX_set_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_MODE, op, nil); +end; + +//# define SSL_CTX_clear_mode(ctx,op) SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_MODE,(op),NULL) +function _SSL_CTX_clear_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CLEAR_MODE, op, nil); +end; + +//# define SSL_CTX_sess_set_cache_size(ctx,t) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_SIZE,t,NULL) +function _SSL_CTX_sess_set_cache_size(ctx: PSSL_CTX; t: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SESS_CACHE_SIZE, t, nil); +end; + +//# define SSL_CTX_sess_get_cache_size(ctx) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_SIZE,0,NULL) +function _SSL_CTX_sess_get_cache_size(ctx: PSSL_CTX): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_SESS_CACHE_SIZE, 0, nil); +end; + +//# define SSL_CTX_set_session_cache_mode(ctx,m) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_MODE,m,NULL) +function _SSL_CTX_set_session_cache_mode(ctx: PSSL_CTX; m: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SESS_CACHE_MODE, m, nil); +end; + +//# define SSL_CTX_get_session_cache_mode(ctx) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_MODE,0,NULL) +function _SSL_CTX_get_session_cache_mode(ctx: PSSL_CTX): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_SESS_CACHE_MODE, 0, nil); +end; + +//# define SSL_num_renegotiations(ssl) SSL_ctrl((ssl),SSL_CTRL_GET_NUM_RENEGOTIATIONS,0,NULL) +function _SSL_num_renegotiations(ssl: PSSL): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_GET_NUM_RENEGOTIATIONS, 0, nil); +end; + +//# define SSL_clear_num_renegotiations(ssl) SSL_ctrl((ssl),SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS,0,NULL) +function _SSL_clear_num_renegotiations(ssl: PSSL): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS, 0, nil); +end; + +//# define SSL_total_renegotiations(ssl) SSL_ctrl((ssl),SSL_CTRL_GET_TOTAL_RENEGOTIATIONS,0,NULL) +function _SSL_total_renegotiations(ssl: PSSL): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_GET_TOTAL_RENEGOTIATIONS, 0, nil); +end; + +//# define SSL_CTX_set_tmp_dh(ctx,dh) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)(dh)) +function _SSL_CTX_set_tmp_dh(ctx: PSSL_CTX; dh: PDH): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_TMP_DH, 0, dh); +end; + +//# define SSL_CTX_set_tmp_ecdh(ctx,ecdh) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh)) +function _SSL_CTX_set_tmp_ecdh(ctx: PSSL_CTX; ecdh: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_TMP_ECDH, 0, ecdh); +end; + +//# define SSL_CTX_set_dh_auto(ctx, onoff) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_DH_AUTO,onoff,NULL) +function _SSL_CTX_set_dh_auto(ctx: PSSL_CTX; onoff: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_DH_AUTO, onoff, nil); +end; + +//# define SSL_set_dh_auto(s, onoff) SSL_ctrl(s,SSL_CTRL_SET_DH_AUTO,onoff,NULL) +function _SSL_set_dh_auto(s: PSSL; onoff: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_DH_AUTO, onoff, nil); +end; + +//# define SSL_set_tmp_dh(ssl,dh) SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)(dh)) +function _SSL_set_tmp_dh(ssl: PSSL; dh: PDH): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_SET_TMP_DH, 0, dh); +end; + +//# define SSL_set_tmp_ecdh(ssl,ecdh) SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh)) +function _SSL_set_tmp_ecdh(ssl: PSSL; ecdh: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_SET_TMP_ECDH, 0, ecdh); +end; + +//# define SSL_CTX_add_extra_chain_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)(x509)) +function _SSL_CTX_add_extra_chain_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_EXTRA_CHAIN_CERT, 0, x509); +end; + +//# define SSL_CTX_get_extra_chain_certs(ctx,px509) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,0,px509) +function _SSL_CTX_get_extra_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_EXTRA_CHAIN_CERTS, 0, px509); +end; + +//# define SSL_CTX_get_extra_chain_certs_only(ctx,px509) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,1,px509) +function _SSL_CTX_get_extra_chain_certs_only(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_EXTRA_CHAIN_CERTS, 1, px509); +end; + +//# define SSL_CTX_clear_extra_chain_certs(ctx) SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS,0,NULL) +function _SSL_CTX_clear_extra_chain_certs(ctx: PSSL_CTX): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS, 0, nil); +end; + +//# define SSL_CTX_set0_chain(ctx,sk) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,0,(char *)(sk)) +function _SSL_CTX_set0_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN, 0, sk); +end; + +//# define SSL_CTX_set1_chain(ctx,sk) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,1,(char *)(sk)) +function _SSL_CTX_set1_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN, 1, sk); +end; + +//# define SSL_CTX_add0_chain_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,0,(char *)(x509)) +function _SSL_CTX_add0_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN_CERT, 0, x509); +end; + +//# define SSL_CTX_add1_chain_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,1,(char *)(x509)) +function _SSL_CTX_add1_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN_CERT, 1, x509); +end; + +//# define SSL_CTX_get0_chain_certs(ctx,px509) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_CHAIN_CERTS,0,px509) +function _SSL_CTX_get0_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_CHAIN_CERTS, 0, px509); +end; + +//# define SSL_CTX_clear_chain_certs(ctx) SSL_CTX_set0_chain(ctx,NULL) +function _SSL_CTX_clear_chain_certs(ctx: PSSL_CTX): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_set0_chain(ctx, nil); +end; + +//# define SSL_CTX_build_cert_chain(ctx, flags) SSL_CTX_ctrl(ctx,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL) +function _SSL_CTX_build_cert_chain(ctx: PSSL_CTX; flags: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_BUILD_CERT_CHAIN, flags, nil); +end; + +//# define SSL_CTX_select_current_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509)) +function _SSL_CTX_select_current_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SELECT_CURRENT_CERT, 0, x509); +end; + +//# define SSL_CTX_set_current_cert(ctx, op) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CURRENT_CERT, op, NULL) +function _SSL_CTX_set_current_cert(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CURRENT_CERT, op, nil); +end; + +//# define SSL_CTX_set0_verify_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st)) +function _SSL_CTX_set0_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_VERIFY_CERT_STORE, 0, st); +end; + +//# define SSL_CTX_set1_verify_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st)) +function _SSL_CTX_set1_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_VERIFY_CERT_STORE, 1, st); +end; + +//# define SSL_CTX_set0_chain_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st)) +function _SSL_CTX_set0_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CHAIN_CERT_STORE, 0, st); +end; + +//# define SSL_CTX_set1_chain_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st)) +function _SSL_CTX_set1_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CHAIN_CERT_STORE, 1, st); +end; + +//# define SSL_set0_chain(s,sk) SSL_ctrl(s,SSL_CTRL_CHAIN,0,(char *)(sk)) +function _SSL_set0_chain(s: PSSL; sk: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN, 0, sk); +end; + +//# define SSL_set1_chain(s,sk) SSL_ctrl(s,SSL_CTRL_CHAIN,1,(char *)(sk)) +function _SSL_set1_chain(s: PSSL; sk: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN, 1, sk); +end; + +//# define SSL_add0_chain_cert(s,x509) SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,0,(char *)(x509)) +function _SSL_add0_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN_CERT, 0, x509); +end; + +//# define SSL_add1_chain_cert(s,x509) SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,1,(char *)(x509)) +function _SSL_add1_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN_CERT, 1, x509); +end; + +//# define SSL_get0_chain_certs(s,px509) SSL_ctrl(s,SSL_CTRL_GET_CHAIN_CERTS,0,px509) +function _SSL_get0_chain_certs(s: PSSL; px509: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_CHAIN_CERTS, 0, px509); +end; + +//# define SSL_clear_chain_certs(s) SSL_set0_chain(s,NULL) +function _SSL_clear_chain_certs(s: PSSL): TIdC_LONG; cdecl; +begin + Result := SSL_set0_chain(s, nil); +end; + +//# define SSL_build_cert_chain(s, flags) SSL_ctrl(s,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL) +function _SSL_build_cert_chain(s: PSSL; flags: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_BUILD_CERT_CHAIN, flags, nil); +end; + +//# define SSL_select_current_cert(s,x509) SSL_ctrl(s,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509)) +function _SSL_select_current_cert(s: PSSL; x509: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SELECT_CURRENT_CERT, 0, x509); +end; + +//# define SSL_set_current_cert(s,op) SSL_ctrl(s,SSL_CTRL_SET_CURRENT_CERT, op, NULL) +function _SSL_set_current_cert(s: PSSL; op: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CURRENT_CERT, op, nil); +end; + +//# define SSL_set0_verify_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st)) +function _SSL_set0_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_VERIFY_CERT_STORE, 0, st); +end; + +//# define SSL_set1_verify_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st)) +function _SSL_set1_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_VERIFY_CERT_STORE, 1, st); +end; + +//# define SSL_set0_chain_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st)) +function _SSL_set0_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CHAIN_CERT_STORE, 0, st); +end; + +//# define SSL_set1_chain_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st)) +function _SSL_set1_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CHAIN_CERT_STORE, 1, st); +end; + +//# define SSL_get1_groups(s, glist) SSL_ctrl(s,SSL_CTRL_GET_GROUPS,0,(TIdC_INT*)(glist)) +function _SSL_get1_groups(s: PSSL; glist: PIdC_INT): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_GROUPS, 0, glist); +end; + +//# define SSL_CTX_set1_groups(ctx, glist, glistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist)) +function _SSL_CTX_set1_groups(ctx: PSSL_CTX; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_GROUPS, glistlen, glist); +end; + +//# define SSL_CTX_set1_groups_list(ctx, s) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s)) +function _SSL_CTX_set1_groups_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_GROUPS_LIST, 0, s); +end; + +//# define SSL_set1_groups(s, glist, glistlen) SSL_ctrl(s,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist)) +function _SSL_set1_groups(s: PSSL; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_GROUPS, glistlen, glist); +end; + +//# define SSL_set1_groups_list(s, str) SSL_ctrl(s,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(str)) +function _SSL_set1_groups_list(s: PSSL; str: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_GROUPS_LIST, 0, str); +end; + +//# define SSL_get_shared_group(s, n) SSL_ctrl(s,SSL_CTRL_GET_SHARED_GROUP,n,NULL) +function _SSL_get_shared_group(s: PSSL; n: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_SHARED_GROUP, n, nil); +end; + +//# define SSL_CTX_set1_sigalgs(ctx, slist, slistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function _SSL_CTX_set1_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SIGALGS, slistlen, slist); +end; + +//# define SSL_CTX_set1_sigalgs_list(ctx, s) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(s)) +function _SSL_CTX_set1_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SIGALGS_LIST, 0, s); +end; + +//# define SSL_set1_sigalgs(s, slist, slistlen) SSL_ctrl(s,SSL_CTRL_SET_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function _SSL_set1_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_SIGALGS, slistlen, slist); +end; + +//# define SSL_set1_sigalgs_list(s, str) SSL_ctrl(s,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(str)) +function _SSL_set1_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_SIGALGS_LIST, 0, str); +end; + +//# define SSL_CTX_set1_client_sigalgs(ctx, slist, slistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function _SSL_CTX_set1_client_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CLIENT_SIGALGS, slistlen, slist); +end; + +//# define SSL_CTX_set1_client_sigalgs_list(ctx, s) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(s)) +function _SSL_CTX_set1_client_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CLIENT_SIGALGS_LIST, 0, s); +end; + +//# define SSL_set1_client_sigalgs(s, slist, slistlen) SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function _SSL_set1_client_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CLIENT_SIGALGS, slistlen, slist); +end; + +//# define SSL_set1_client_sigalgs_list(s, str) SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(str)) +function _SSL_set1_client_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CLIENT_SIGALGS_LIST, 0, str); +end; + +//# define SSL_get0_certificate_types(s, clist) SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, (char *)(clist)) +function _SSL_get0_certificate_types(s: PSSL; clist: PByte): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, clist); +end; + +//# define SSL_CTX_set1_client_certificate_types(ctx, clist, clistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen, (char *)(clist)) +function _SSL_CTX_set1_client_certificate_types(ctx: PSSL_CTX; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CLIENT_CERT_TYPES, clistlen, clist); +end; + +//# define SSL_set1_client_certificate_types(s, clist, clistlen) SSL_ctrl(s,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen,(char *)(clist)) +function _SSL_set1_client_certificate_types(s: PSSL; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CLIENT_CERT_TYPES, clistlen, clist); +end; + +//# define SSL_get_signature_nid(s, pn) SSL_ctrl(s,SSL_CTRL_GET_SIGNATURE_NID,0,pn) +function _SSL_get_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_SIGNATURE_NID, 0, pn); +end; + +//# define SSL_get_peer_signature_nid(s, pn) SSL_ctrl(s,SSL_CTRL_GET_PEER_SIGNATURE_NID,0,pn) +function _SSL_get_peer_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_PEER_SIGNATURE_NID, 0, pn); +end; + +//# define SSL_get_peer_tmp_key(s, pk) SSL_ctrl(s,SSL_CTRL_GET_PEER_TMP_KEY,0,pk) +function _SSL_get_peer_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_PEER_TMP_KEY, 0, pk); +end; + +//# define SSL_get_tmp_key(s, pk) SSL_ctrl(s,SSL_CTRL_GET_TMP_KEY,0,pk) +function _SSL_get_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_TMP_KEY, 0, pk); +end; + +//# define SSL_get0_raw_cipherlist(s, plst) SSL_ctrl(s,SSL_CTRL_GET_RAW_CIPHERLIST,0,plst) +function _SSL_get0_raw_cipherlist(s: PSSL; plst: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_RAW_CIPHERLIST, 0, plst); +end; + +//# define SSL_get0_ec_point_formats(s, plst) SSL_ctrl(s,SSL_CTRL_GET_EC_POINT_FORMATS,0,plst) +function _SSL_get0_ec_point_formats(s: PSSL; plst: Pointer): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_EC_POINT_FORMATS, 0, plst); +end; + + +function _SSL_get_app_data(const ssl: PSSL): Pointer ; cdecl; +begin + Result := SSL_get_ex_data(ssl,0); +end; + +procedure _SSL_load_error_strings; cdecl; +begin + OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS or OPENSSL_INIT_LOAD_CRYPTO_STRINGS,nil); +end; + +function _SSL_library_init: TIdC_INT; cdecl; +begin + Result := OPENSSL_init_ssl(0, nil); +end; + +function _SSLeay_add_ssl_algorithms: TIdC_INT; cdecl; +begin + Result := SSL_library_init; +end; + +function _SSL_set_app_data(ssl: PSSL; data: Pointer): TIdC_INT; cdecl; +begin + Result := SSL_set_ex_data(ssl,0,data); +end; + + +{forward_compatibility} + +type + PSTACK_OF_SSL_CIPHER = pointer; + Plash_of_SSL_SESSION = pointer; + SSL_CTX_stats = record + sess_connect: TIdC_INT; // SSL new conn - started + sess_connect_renegotiate: TIdC_INT; // SSL reneg - requested + sess_connect_good: TIdC_INT; // SSL new conne/reneg - finished + sess_accept: TIdC_INT; // SSL new accept - started + sess_accept_renegotiate: TIdC_INT; // SSL reneg - requested + sess_accept_good: TIdC_INT; // SSL accept/reneg - finished + sess_miss: TIdC_INT; // session lookup misses + sess_timeout: TIdC_INT; // reuse attempt on timeouted session + sess_cache_full: TIdC_INT; // session removed due to full cache + sess_hit: TIdC_INT; // session reuse actually done + sess_cb_hit: TIdC_INT; // session-id that was not + // in the cache was + // passed back via the callback. This + // indicates that the application is + // supplying session-id's from other + // processes - spooky :-) + end; + PSTACK_OF_COMP = pointer; + PSSL_CTX_info_callback = pointer; + PX509_VERIFY_PARAM = pointer; + PCERT = pointer; + size_t = type integer; + PGEN_SESSION_CB = pointer; + PSSL_CTEX_tlsext_servername_callback = pointer; + Ptlsext_status_cb = pointer; + Ptlsext_ticket_key_cb = pointer; + Pssl3_buf_freelist_st = pointer; + PSRP_CTX = ^SRP_CTX; + SRP_CTX = record + //* param for all the callbacks */ + SRP_cb_arg : Pointer; + //* set client Hello login callback */ + TLS_ext_srp_username_callback : function(para1 : PSSL; para2 : TIdC_INT; para3 : Pointer) : TIdC_INT cdecl; + //int (*TLS_ext_srp_username_callback)(SSL *, int *, void *); + //* set SRP N/g param callback for verification */ + SRP_verify_param_callback : function(para1 : PSSL; para2 : Pointer) : TIdC_INT cdecl; +// int (*SRP_verify_param_callback)(SSL *, void *); + //* set SRP client passwd callback */ + SRP_give_srp_client_pwd_callback : function(para1 : PSSL; para2 : Pointer) : PIdAnsiChar cdecl; + // char *(*SRP_give_srp_client_pwd_callback)(SSL *, void *); + login : PIdAnsiChar; + N, g, s, B, A : PBIGNUM; + _a, _b, v : PBIGNUM; + info : PIdAnsiChar; + strength : TIdC_INT; + srp_Mask : TIdC_ULONG; + end; + PSTACK_OF_SRTP_PROTECTION_PROFILE = pointer; + + _PSSL_CTX = ^SSL_CTX; + SSL_CTX = record + method: PSSL_METHOD; + cipher_list: PSTACK_OF_SSL_CIPHER; + // same as above but sorted for lookup + cipher_list_by_id: PSTACK_OF_SSL_CIPHER; + cert_store: PX509_STORE; + sessions: Plash_of_SSL_SESSION; + // a set of SSL_SESSIONs + // Most session-ids that will be cached, default is + // SSL_SESSION_CACHE_MAX_SIZE_DEFAULT. 0 is unlimited. + session_cache_size: TIdC_ULONG; + session_cache_head: PSSL_SESSION; + session_cache_tail: PSSL_SESSION; + // This can have one of 2 values, ored together, + // SSL_SESS_CACHE_CLIENT, + // SSL_SESS_CACHE_SERVER, + // Default is SSL_SESSION_CACHE_SERVER, which means only + // SSL_accept which cache SSL_SESSIONS. + session_cache_mode: TIdC_INT; + session_timeout: TIdC_LONG; + // If this callback is not null, it will be called each + // time a session id is added to the cache. If this function + // returns 1, it means that the callback will do a + // SSL_SESSION_free() when it has finished using it. Otherwise, + // on 0, it means the callback has finished with it. + // If remove_session_cb is not null, it will be called when + // a session-id is removed from the cache. After the call, + // OpenSSL will SSL_SESSION_free() it. + new_session_cb: function (ssl : PSSL; sess: PSSL_SESSION): TIdC_INT; cdecl; + remove_session_cb: procedure (ctx : PSSL_CTX; sess : PSSL_SESSION); cdecl; + get_session_cb: function (ssl : PSSL; data : PByte; len: TIdC_INT; copy : PIdC_INT) : PSSL_SESSION; cdecl; + stats : SSL_CTX_stats; + + references: TIdC_INT; + // if defined, these override the X509_verify_cert() calls + app_verify_callback: function (_para1 : PX509_STORE_CTX; _para2 : Pointer) : TIdC_INT; cdecl; + app_verify_arg: Pointer; + // before OpenSSL 0.9.7, 'app_verify_arg' was ignored + // ('app_verify_callback' was called with just one argument) + // Default password callback. + default_passwd_callback: pem_password_cb; + // Default password callback user data. + default_passwd_callback_userdata: Pointer; + // get client cert callback + client_cert_cb: function (SSL : PSSL; x509 : PPX509; pkey : PPEVP_PKEY) : TIdC_INT; cdecl; + // verify cookie callback + app_gen_cookie_cb: function (ssl : PSSL; cookie : PByte; cookie_len : TIdC_UINT) : TIdC_INT; cdecl; + app_verify_cookie_cb: Pointer; + ex_data : CRYPTO_EX_DATA; + rsa_md5 : PEVP_MD; // For SSLv2 - name is 'ssl2-md5' + md5: PEVP_MD; // For SSLv3/TLSv1 'ssl3-md5' + sha1: PEVP_MD; // For SSLv3/TLSv1 'ssl3->sha1' + extra_certs: PSTACK_OF_X509; + comp_methods: PSTACK_OF_COMP; // stack of SSL_COMP, SSLv3/TLSv1 + // Default values used when no per-SSL value is defined follow + info_callback: PSSL_CTX_info_callback; // used if SSL's info_callback is NULL + // what we put in client cert requests + client_CA : PSTACK_OF_X509_NAME; + // Default values to use in SSL structures follow (these are copied by SSL_new) + options : TIdC_ULONG; + mode : TIdC_ULONG; + max_cert_list : TIdC_LONG; + cert : PCERT; + read_ahead : TIdC_INT; + // callback that allows applications to peek at protocol messages + msg_callback : procedure (write_p, version, content_type : TIdC_INT; const buf : Pointer; len : size_t; ssl : PSSL; arg : Pointer); cdecl; + msg_callback_arg : Pointer; + verify_mode : TIdC_INT; + sid_ctx_length : TIdC_UINT; + sid_ctx : array[0..SSL_MAX_SID_CTX_LENGTH - 1] of TIdAnsiChar; + default_verify_callback : function(ok : TIdC_INT; ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; // called 'verify_callback' in the SSL + // Default generate session ID callback. + generate_session_id : PGEN_SESSION_CB; + param : PX509_VERIFY_PARAM; + {$IFDEF OMIT_THIS} + purpose : TIdC_INT; // Purpose setting + trust : TIdC_INT; // Trust setting + {$ENDIF} + + quiet_shutdown : TIdC_INT; + //* Maximum amount of data to send in one fragment. + // * actual record size can be more than this due to + // * padding and MAC overheads. + // */ + max_send_fragment : TIdC_UINT; + {$IFNDEF OPENSSL_ENGINE} + ///* Engine to pass requests for client certs to + // */ + client_cert_engine : PENGINE; + {$ENDIF} + {$IFNDEF OPENSSL_NO_TLSEXT} +//* TLS extensions servername callback */ + tlsext_servername_callback : PSSL_CTEX_tlsext_servername_callback; + tlsext_servername_arg : Pointer; + //* RFC 4507 session ticket keys */ + tlsext_tick_key_name : array [0..(16-1)] of TIdAnsiChar; + tlsext_tick_hmac_key : array [0..(16-1)] of TIdAnsiChar; + tlsext_tick_aes_key : array [0..(16-1)] of TIdAnsiChar; + //* Callback to support customisation of ticket key setting */ + // int (*tlsext_ticket_key_cb)(SSL *ssl, + // unsigned char *name, unsigned char *iv, + // EVP_CIPHER_CTX *ectx, + // HMAC_CTX *hctx, int enc); + tlsext_ticket_key_cb : Ptlsext_ticket_key_cb; + //* certificate status request info */ + //* Callback for status request */ + //int (*tlsext_status_cb)(SSL *ssl, void *arg); + tlsext_status_cb : Ptlsext_status_cb; + tlsext_status_arg : Pointer; + {$ENDIF} + //* draft-rescorla-tls-opaque-prf-input-00.txt information */ + tlsext_opaque_prf_input_callback : function(para1 : PSSL; peerinput : Pointer; len : size_t; arg : Pointer ) : TIdC_INT cdecl; + //int (*tlsext_opaque_prf_input_callback)(SSL *, void *peerinput, size_t len, void *arg); + tlsext_opaque_prf_input_callback_arg : Pointer; + +{$ifndef OPENSSL_NO_PSK} + psk_identity_hint : PIdAnsiChar; + psk_client_callback : function (ssl : PSSL; hint : PIdAnsiChar; + identity : PIdAnsiChar; max_identity_len : TIdC_UINT; + psk : PIdAnsiChar; max_psk_len : TIdC_UINT ) : TIdC_UINT cdecl; + // unsigned int (*psk_client_callback)(SSL *ssl, const char *hint, char *identity, +// unsigned int max_identity_len, unsigned char *psk, +// unsigned int max_psk_len); + psk_server_callback : function (ssl : PSSL; identity, psk : PIdAnsiChar; max_psk_len : TIdC_UINT) : TIdC_UINT cdecl; +// unsigned int (*psk_server_callback)(SSL *ssl, const char *identity, +// unsigned char *psk, unsigned int max_psk_len); +{$endif} + +{$ifndef OPENSSL_NO_BUF_FREELISTS} + freelist_max_len : TIdC_UINT; + wbuf_freelist : Pssl3_buf_freelist_st; + rbuf_freelist : Pssl3_buf_freelist_st; +{$endif} +{$ifndef OPENSSL_NO_SRP} + srp_ctx : SRP_CTX; //* ctx for SRP authentication */ +{$endif} + +{$ifndef OPENSSL_NO_TLSEXT} +//# ifndef OPENSSL_NO_NEXTPROTONEG + //* Next protocol negotiation information */ + //* (for experimental NPN extension). */ + + //* For a server, this contains a callback function by which the set of + // * advertised protocols can be provided. */ + next_protos_advertised_cb : function(s : PSSL; out but : PIdAnsiChar; + out len : TIdC_UINT; arg : Pointer) : TIdC_INT cdecl; +// int (*next_protos_advertised_cb)(SSL *s, const unsigned char **buf, +// unsigned int *len, void *arg); + next_protos_advertised_cb_arg : Pointer; + //* For a client, this contains a callback function that selects the + // * next protocol from the list provided by the server. */ + next_proto_select_cb : function(s : PSSL; out _out : PIdAnsiChar; + outlen : PIdAnsiChar; + _in : PIdAnsiChar; + inlen : TIdC_UINT; + arg : Pointer) : TIdC_INT cdecl; +// int (*next_proto_select_cb)(SSL *s, unsigned char **out, +// unsigned char *outlen, +// const unsigned char *in, +// unsigned int inlen, +// void *arg); + next_proto_select_cb_arg : Pointer; +//# endif + //* SRTP profiles we are willing to do from RFC 5764 */ + srtp_profiles : PSTACK_OF_SRTP_PROTECTION_PROFILE; +{$endif} + end; + +const + SSL_CTRL_OPTIONS = 32; + SSL_CTRL_CLEAR_OPTIONS = 77; + +function FC_SSL_CTX_get_default_passwd_cb(ctx: PSSL_CTX): pem_password_cb; cdecl; +begin + Result := _PSSL_CTX(ctx)^.default_passwd_callback; +end; + +function FC_SSL_CTX_get_default_passwd_cb_userdata(ctx: PSSL_CTX): Pointer; cdecl; +begin + Result := _PSSL_CTX(ctx)^.default_passwd_callback_userdata; +end; + +procedure FC_SSL_CTX_set_default_passwd_cb(ctx: PSSL_CTX; cb: pem_password_cb); cdecl; +begin + _PSSL_CTX(ctx)^.default_passwd_callback := cb; +end; + +procedure FC_SSL_CTX_set_default_passwd_cb_userdata(ctx: PSSL_CTX; u: Pointer); cdecl; +begin + _PSSL_CTX(ctx)^.default_passwd_callback_userdata := u; +end; + +//* Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value, +// * they cannot be used to clear bits. */ + +function FC_SSL_CTX_set_options(ctx: PSSL_CTX; op: TIdC_LONG):TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, op, nil); +end; + +function FC_SSL_CTX_clear_options(ctx : PSSL_CTX; op : TIdC_LONG):TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_OPTIONS,op,nil); +end; + +function FC_SSL_CTX_get_options(ctx: PSSL_CTX) : TIdC_LONG; cdecl; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS,0,nil); +end; + +function FC_SSL_CTX_get_cert_store(const ctx: PSSL_CTX): PX509_STORE; cdecl; +begin + Result := _PSSL_CTX(ctx)^.cert_store; +end; + +const + SSL_MAX_KRB5_PRINCIPAL_LENGTH = 256; + +type + PSESS_CERT = pointer; + _PSSL_SESSION = ^_SSL_SESSION; + _SSL_SESSION = record + ssl_version : TIdC_INT; // what ssl version session info is being kept in here? + // only really used in SSLv2 + key_arg_length: TIdC_UINT; + key_arg: Array[0..SSL_MAX_KEY_ARG_LENGTH-1] of Byte; + master_key_length: TIdC_INT; + master_key: Array[0..SSL_MAX_MASTER_KEY_LENGTH-1] of Byte; + // session_id - valid? + session_id_length: TIdC_UINT; + session_id: Array[0..SSL_MAX_SSL_SESSION_ID_LENGTH-1] of Byte; + // this is used to determine whether the session is being reused in + // the appropriate context. It is up to the application to set this, + // via SSL_new + sid_ctx_length: TIdC_UINT; + sid_ctx: array[0..SSL_MAX_SID_CTX_LENGTH-1] of Byte; + {$IFNDEF OPENSSL_NO_KRB5} + krb5_client_princ_len: TIdC_UINT; + krb5_client_princ: array[0..SSL_MAX_KRB5_PRINCIPAL_LENGTH-1] of Byte; + {$ENDIF} +{$ifndef OPENSSL_NO_PSK} + psk_identity_hint : PIdAnsiChar; + psk_identity : PIdAnsiChar; +{$endif} + not_resumable: TIdC_INT; + // The cert is the certificate used to establish this connection + sess_cert : PSESS_CERT; + + //* This is the cert for the other end. + // * On clients, it will be the same as sess_cert->peer_key->x509 + // * (the latter is not enough as sess_cert is not retained + // * in the external representation of sessions, see ssl_asn1.c). */ + peer : PX509; + //* when app_verify_callback accepts a session where the peer's certificate + // * is not ok, we must remember the error for session reuse: */ + verify_result : TIdC_LONG; //* only for servers */ + references : TIdC_INT; + timeout : TIdC_LONG; + time : TIdC_LONG; + compress_meth : TIdC_UINT; //* Need to lookup the method */ + + cipher : PSSL_CIPHER; + cipher_id : TIdC_ULONG; //* when ASN.1 loaded, this + // * needs to be used to load + // * the 'cipher' structure */ + ciphers : PSTACK_OF_SSL_CIPHER; //* shared ciphers? */ + ex_data : CRYPTO_EX_DATA; // application specific data */ + //* These are used to make removal of session-ids more + // * efficient and to implement a maximum cache size. */ + prev, next : PSSL_SESSION; + + {$IFNDEF OPENSSL_NO_TLSEXT} + tlsext_hostname : PIdAnsiChar; + {$IFDEF OPENSSL_NO_EC} + tlsext_ecpointformatlist_length : size_t; + tlsext_ecpointformatlist : PIdAnsiChar; //* peer's list */ + tlsext_ellipticcurvelist_length : size_t; + tlsext_ellipticcurvelist : PIdAnsiChar; //* peer's list */ + {$ENDIF} //* OPENSSL_NO_EC */ + + //* RFC4507 info */ + tlsext_tick : PIdAnsiChar;//* Session ticket */ + tlsext_ticklen : size_t;//* Session ticket length */ + tlsext_tick_lifetime_hint : TIdC_LONG;//* Session lifetime hint in seconds */ + {$ENDIF} +{$ifndef OPENSSL_NO_SRP} + srp_username : PIdAnsiChar; +{$endif} + end; + +function FC_SSL_SESSION_get_protocol_version(const s: PSSL_SESSION): TIdC_INT; cdecl; +begin + Result := _PSSL_SESSION(s).ssl_version; +end; + +function FC_OPENSSL_init_ssl(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT; cdecl; +begin + if opts and OPENSSL_INIT_LOAD_SSL_STRINGS <> 0 then + SSL_load_error_strings; + SSL_library_init; + Result := OPENSSL_init_crypto(opts,settings); +end; + +{/forward_compatibility} +{$WARN NO_RETVAL OFF} +function ERR_SSL_CTX_set_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_mode'); +end; + + +function ERR_SSL_CTX_clear_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_clear_mode'); +end; + + +function ERR_SSL_CTX_sess_set_cache_size(ctx: PSSL_CTX; t: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_sess_set_cache_size'); +end; + + +function ERR_SSL_CTX_sess_get_cache_size(ctx: PSSL_CTX): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_sess_get_cache_size'); +end; + + +function ERR_SSL_CTX_set_session_cache_mode(ctx: PSSL_CTX; m: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_session_cache_mode'); +end; + + +function ERR_SSL_CTX_get_session_cache_mode(ctx: PSSL_CTX): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_session_cache_mode'); +end; + + +function ERR_SSL_clear_num_renegotiations(ssl: PSSL): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_clear_num_renegotiations'); +end; + + +function ERR_SSL_total_renegotiations(ssl: PSSL): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_total_renegotiations'); +end; + + +function ERR_SSL_CTX_set_tmp_dh(ctx: PSSL_CTX; dh: PDH): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_tmp_dh'); +end; + + +function ERR_SSL_CTX_set_tmp_ecdh(ctx: PSSL_CTX; ecdh: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_tmp_ecdh'); +end; + + +function ERR_SSL_CTX_set_dh_auto(ctx: PSSL_CTX; onoff: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_dh_auto'); +end; + + +function ERR_SSL_set_dh_auto(s: PSSL; onoff: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_dh_auto'); +end; + + +function ERR_SSL_set_tmp_dh(ssl: PSSL; dh: PDH): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_tmp_dh'); +end; + + +function ERR_SSL_set_tmp_ecdh(ssl: PSSL; ecdh: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_tmp_ecdh'); +end; + + +function ERR_SSL_CTX_add_extra_chain_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_add_extra_chain_cert'); +end; + + +function ERR_SSL_CTX_get_extra_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_extra_chain_certs'); +end; + + +function ERR_SSL_CTX_get_extra_chain_certs_only(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_extra_chain_certs_only'); +end; + + +function ERR_SSL_CTX_clear_extra_chain_certs(ctx: PSSL_CTX): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_clear_extra_chain_certs'); +end; + + +function ERR_SSL_CTX_set0_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set0_chain'); +end; + + +function ERR_SSL_CTX_set1_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set1_chain'); +end; + + +function ERR_SSL_CTX_add0_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_add0_chain_cert'); +end; + + +function ERR_SSL_CTX_add1_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_add1_chain_cert'); +end; + + +function ERR_SSL_CTX_get0_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get0_chain_certs'); +end; + + +function ERR_SSL_CTX_clear_chain_certs(ctx: PSSL_CTX): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_clear_chain_certs'); +end; + + +function ERR_SSL_CTX_build_cert_chain(ctx: PSSL_CTX; flags: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_build_cert_chain'); +end; + + +function ERR_SSL_CTX_select_current_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_select_current_cert'); +end; + + +function ERR_SSL_CTX_set_current_cert(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_current_cert'); +end; + + +function ERR_SSL_CTX_set0_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set0_verify_cert_store'); +end; + + +function ERR_SSL_CTX_set1_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set1_verify_cert_store'); +end; + + +function ERR_SSL_CTX_set0_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set0_chain_cert_store'); +end; + + +function ERR_SSL_CTX_set1_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set1_chain_cert_store'); +end; + + +function ERR_SSL_set0_chain(s: PSSL; sk: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set0_chain'); +end; + + +function ERR_SSL_set1_chain(s: PSSL; sk: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set1_chain'); +end; + + +function ERR_SSL_add0_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_add0_chain_cert'); +end; + + +function ERR_SSL_add1_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_add1_chain_cert'); +end; + + +function ERR_SSL_get0_chain_certs(s: PSSL; px509: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get0_chain_certs'); +end; + + +function ERR_SSL_clear_chain_certs(s: PSSL): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_clear_chain_certs'); +end; + + +function ERR_SSL_build_cert_chain(s: PSSL; flags: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_build_cert_chain'); +end; + + +function ERR_SSL_select_current_cert(s: PSSL; x509: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_select_current_cert'); +end; + + +function ERR_SSL_set_current_cert(s: PSSL; op: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_current_cert'); +end; + + +function ERR_SSL_set0_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set0_verify_cert_store'); +end; + + +function ERR_SSL_set1_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set1_verify_cert_store'); +end; + + +function ERR_SSL_set0_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set0_chain_cert_store'); +end; + + +function ERR_SSL_set1_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set1_chain_cert_store'); +end; + + +function ERR_SSL_get1_groups(s: PSSL; glist: PIdC_INT): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get1_groups'); +end; + + +function ERR_SSL_CTX_set1_groups(ctx: PSSL_CTX; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set1_groups'); +end; + + +function ERR_SSL_CTX_set1_groups_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set1_groups_list'); +end; + + +function ERR_SSL_set1_groups(s: PSSL; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set1_groups'); +end; + + +function ERR_SSL_set1_groups_list(s: PSSL; str: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set1_groups_list'); +end; + + +function ERR_SSL_get_shared_group(s: PSSL; n: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_shared_group'); +end; + + +function ERR_SSL_CTX_set1_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set1_sigalgs'); +end; + + +function ERR_SSL_CTX_set1_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set1_sigalgs_list'); +end; + + +function ERR_SSL_set1_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set1_sigalgs'); +end; + + +function ERR_SSL_set1_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set1_sigalgs_list'); +end; + + +function ERR_SSL_CTX_set1_client_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set1_client_sigalgs'); +end; + + +function ERR_SSL_CTX_set1_client_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set1_client_sigalgs_list'); +end; + + +function ERR_SSL_set1_client_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set1_client_sigalgs'); +end; + + +function ERR_SSL_set1_client_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set1_client_sigalgs_list'); +end; + + +function ERR_SSL_get0_certificate_types(s: PSSL; clist: PByte): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get0_certificate_types'); +end; + + +function ERR_SSL_CTX_set1_client_certificate_types(ctx: PSSL_CTX; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set1_client_certificate_types'); +end; + + +function ERR_SSL_set1_client_certificate_types(s: PSSL; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set1_client_certificate_types'); +end; + + +function ERR_SSL_get_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_signature_nid'); +end; + + +function ERR_SSL_get_peer_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_peer_signature_nid'); +end; + + +function ERR_SSL_get_peer_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_peer_tmp_key'); +end; + + +function ERR_SSL_get_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_tmp_key'); +end; + + +function ERR_SSL_get0_raw_cipherlist(s: PSSL; plst: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get0_raw_cipherlist'); +end; + + +function ERR_SSL_get0_ec_point_formats(s: PSSL; plst: Pointer): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get0_ec_point_formats'); +end; + + +function ERR_SSL_CTX_get_options(const ctx: PSSL_CTX): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_options'); +end; + + +function ERR_SSL_get_options(const s: PSSL): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_options'); +end; + + +function ERR_SSL_CTX_clear_options(ctx: PSSL_CTX; op: TIdC_ULONG): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_clear_options'); +end; + + +function ERR_SSL_clear_options(s: PSSL; op: TIdC_ULONG): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_clear_options'); +end; + + +function ERR_SSL_CTX_set_options(ctx: PSSL_CTX; op: TIdC_ULONG): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_options'); +end; + + +function ERR_SSL_set_options(s: PSSL; op: TIdC_ULONG): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_options'); +end; + + +procedure ERR_SSL_CTX_set_stateless_cookie_generate_cb(ctx: PSSL_CTX; gen_stateless_cookie_cb: SSL_CTX_set_stateless_cookie_generate_cb_gen_stateless_cookie_cb); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_stateless_cookie_generate_cb'); +end; + + +procedure ERR_SSL_CTX_set_stateless_cookie_verify_cb(ctx: PSSL_CTX; verify_stateless_cookie_cb: SSL_CTX_set_stateless_cookie_verify_cb_verify_stateless_cookie_cb); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_stateless_cookie_verify_cb'); +end; + + +procedure ERR_SSL_set_psk_find_session_callback(s: PSSL; cb: SSL_psk_find_session_cb_func); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_psk_find_session_callback'); +end; + + +procedure ERR_SSL_CTX_set_psk_find_session_callback(ctx: PSSL_CTX; cb: SSL_psk_find_session_cb_func); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_psk_find_session_callback'); +end; + + +procedure ERR_SSL_set_psk_use_session_callback(s: PSSL; cb: SSL_psk_use_session_cb_func); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_psk_use_session_callback'); +end; + + +procedure ERR_SSL_CTX_set_psk_use_session_callback(ctx: PSSL_CTX; cb: SSL_psk_use_session_cb_func); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_psk_use_session_callback'); +end; + + +procedure ERR_SSL_CTX_set_keylog_callback(ctx: PSSL_CTX; cb: SSL_CTX_keylog_cb_func); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_keylog_callback'); +end; + + +function ERR_SSL_CTX_get_keylog_callback(const ctx: PSSL_CTX): SSL_CTX_keylog_cb_func; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_keylog_callback'); +end; + + +function ERR_SSL_CTX_set_max_early_data(ctx: PSSL_CTX; max_early_data: TIdC_UINT32): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_max_early_data'); +end; + + +function ERR_SSL_CTX_get_max_early_data(const ctx: PSSL_CTX): TIdC_UINT32; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_max_early_data'); +end; + + +function ERR_SSL_set_max_early_data(s: PSSL; max_early_data: TIdC_UINT32): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_max_early_data'); +end; + + +function ERR_SSL_get_max_early_data(const s: PSSL): TIdC_UINT32; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_max_early_data'); +end; + + +function ERR_SSL_CTX_set_recv_max_early_data(ctx: PSSL_CTX; recv_max_early_data: TIdC_UINT32): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_recv_max_early_data'); +end; + + +function ERR_SSL_CTX_get_recv_max_early_data(const ctx: PSSL_CTX): TIdC_UINT32; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_recv_max_early_data'); +end; + + +function ERR_SSL_set_recv_max_early_data(s: PSSL; recv_max_early_data: TIdC_UINT32): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_recv_max_early_data'); +end; + + +function ERR_SSL_get_recv_max_early_data(const s: PSSL): TIdC_UINT32; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_recv_max_early_data'); +end; + + +function ERR_SSL_get_app_data(const ssl: PSSL): Pointer ; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_app_data'); +end; + + +function ERR_SSL_set_app_data(ssl: PSSL; data: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_app_data'); +end; + + +function ERR_SSL_in_init(const s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_in_init'); +end; + + +function ERR_SSL_in_before(const s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_in_before'); +end; + + +function ERR_SSL_is_init_finished(const s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_is_init_finished'); +end; + + +function ERR_SSLeay_add_ssl_algorithms: TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSLeay_add_ssl_algorithms'); +end; + + +function ERR_SSL_CTX_up_ref(ctx: PSSL_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_up_ref'); +end; + + +procedure ERR_SSL_CTX_set1_cert_store(v1: PSSL_CTX; v2: PX509_STORE); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set1_cert_store'); +end; + + +function ERR_SSL_get_pending_cipher(const s: PSSL): PSSL_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_pending_cipher'); +end; + + +function ERR_SSL_CIPHER_standard_name(const c: PSSL_CIPHER): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CIPHER_standard_name'); +end; + + +function ERR_OPENSSL_cipher_name(const rfc_name: PIdAnsiChar): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_cipher_name'); +end; + + +function ERR_SSL_CIPHER_get_protocol_id(const c: PSSL_CIPHER): TIdC_UINT16; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CIPHER_get_protocol_id'); +end; + + +function ERR_SSL_CIPHER_get_kx_nid(const c: PSSL_CIPHER): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CIPHER_get_kx_nid'); +end; + + +function ERR_SSL_CIPHER_get_auth_nid(const c: PSSL_CIPHER): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CIPHER_get_auth_nid'); +end; + + +function ERR_SSL_CIPHER_get_handshake_digest(const c: PSSL_CIPHER): PEVP_MD; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CIPHER_get_handshake_digest'); +end; + + +function ERR_SSL_CIPHER_is_aead(const c: PSSL_CIPHER): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CIPHER_is_aead'); +end; + + +function ERR_SSL_has_pending(const s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_has_pending'); +end; + + +procedure ERR_SSL_set0_rbio(s: PSSL; rbio: PBIO); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set0_rbio'); +end; + + +procedure ERR_SSL_set0_wbio(s: PSSL; wbio: PBIO); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set0_wbio'); +end; + + +function ERR_SSL_CTX_set_ciphersuites(ctx: PSSL_CTX; const str: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_ciphersuites'); +end; + + +function ERR_SSL_set_ciphersuites(s: PSSL; const str: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_ciphersuites'); +end; + + +function ERR_SSL_CTX_use_serverinfo_ex(ctx: PSSL_CTX; version: TIdC_UINT; const serverinfo: PByte; serverinfo_length: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_use_serverinfo_ex'); +end; + + +function ERR_SSL_use_certificate_chain_file(ssl: PSSL; const file_: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_use_certificate_chain_file'); +end; + + +procedure ERR_SSL_load_error_strings; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_load_error_strings'); +end; + + +function ERR_SSL_SESSION_get_protocol_version(const s: PSSL_SESSION): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_get_protocol_version'); +end; + + +function ERR_SSL_SESSION_set_protocol_version(s: PSSL_SESSION; version: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_set_protocol_version'); +end; + + +function ERR_SSL_SESSION_get0_hostname(const s: PSSL_SESSION): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_get0_hostname'); +end; + + +function ERR_SSL_SESSION_set1_hostname(s: PSSL_SESSION; const hostname: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_set1_hostname'); +end; + + +procedure ERR_SSL_SESSION_get0_alpn_selected(const s: PSSL_SESSION; const alpn: PPByte; len: PIdC_SIZET); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_get0_alpn_selected'); +end; + + +function ERR_SSL_SESSION_set1_alpn_selected(s: PSSL_SESSION; const alpn: PByte; len: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_set1_alpn_selected'); +end; + + +function ERR_SSL_SESSION_get0_cipher(const s: PSSL_SESSION): PSSL_CIPHER; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_get0_cipher'); +end; + + +function ERR_SSL_SESSION_set_cipher(s: PSSL_SESSION; const cipher: PSSL_CIPHER): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_set_cipher'); +end; + + +function ERR_SSL_SESSION_has_ticket(const s: PSSL_SESSION): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_has_ticket'); +end; + + +function ERR_SSL_SESSION_get_ticket_lifetime_hint(const s: PSSL_SESSION): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_get_ticket_lifetime_hint'); +end; + + +procedure ERR_SSL_SESSION_get0_ticket(const s: PSSL_SESSION; const tick: PPByte; len: PIdC_SIZET); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_get0_ticket'); +end; + + +function ERR_SSL_SESSION_get_max_early_data(const s: PSSL_SESSION): TIdC_UINT32; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_get_max_early_data'); +end; + + +function ERR_SSL_SESSION_set_max_early_data(s: PSSL_SESSION; max_early_data: TIdC_UINT32): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_set_max_early_data'); +end; + + +function ERR_SSL_SESSION_set1_id(s: PSSL_SESSION; const sid: PByte; sid_len: TIdC_UINT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_set1_id'); +end; + + +function ERR_SSL_SESSION_is_resumable(const s: PSSL_SESSION): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_is_resumable'); +end; + + +function ERR_SSL_SESSION_dup(src: PSSL_SESSION): PSSL_SESSION; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_dup'); +end; + + +function ERR_SSL_SESSION_get0_id_context(const s: PSSL_SESSION; len: PIdC_UINT): PByte; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_get0_id_context'); +end; + + +function ERR_SSL_SESSION_print_keylog(bp: PBIO; const x: PSSL_SESSION): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_print_keylog'); +end; + + +function ERR_SSL_SESSION_up_ref(ses: PSSL_SESSION): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_up_ref'); +end; + + +function ERR_SSL_get_peer_certificate(const s: PSSL): PX509; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_peer_certificate'); +end; + + +procedure ERR_SSL_CTX_set_default_passwd_cb(ctx: PSSL_CTX; cb: pem_password_cb); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_default_passwd_cb'); +end; + + +procedure ERR_SSL_CTX_set_default_passwd_cb_userdata(ctx: PSSL_CTX; u: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_default_passwd_cb_userdata'); +end; + + +function ERR_SSL_CTX_get_default_passwd_cb(ctx: PSSL_CTX): pem_password_cb; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_default_passwd_cb'); +end; + + +function ERR_SSL_CTX_get_default_passwd_cb_userdata(ctx: PSSL_CTX): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_default_passwd_cb_userdata'); +end; + + +procedure ERR_SSL_set_default_passwd_cb(s: PSSL; cb: pem_password_cb); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_default_passwd_cb'); +end; + + +procedure ERR_SSL_set_default_passwd_cb_userdata(s: PSSL; u: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_default_passwd_cb_userdata'); +end; + + +function ERR_SSL_get_default_passwd_cb(s: PSSL): pem_password_cb; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_default_passwd_cb'); +end; + + +function ERR_SSL_get_default_passwd_cb_userdata(s: PSSL): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_default_passwd_cb_userdata'); +end; + + +function ERR_SSL_up_ref(s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_up_ref'); +end; + + +function ERR_SSL_is_dtls(const s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_is_dtls'); +end; + + +function ERR_SSL_set1_host(s: PSSL; const hostname: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set1_host'); +end; + + +function ERR_SSL_add1_host(s: PSSL; const hostname: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_add1_host'); +end; + + +function ERR_SSL_get0_peername(s: PSSL): PIdAnsiChar; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get0_peername'); +end; + + +procedure ERR_SSL_set_hostflags(s: PSSL; flags: TIdC_UINT); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_hostflags'); +end; + + +function ERR_SSL_CTX_dane_enable(ctx: PSSL_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_dane_enable'); +end; + + +function ERR_SSL_CTX_dane_mtype_set(ctx: PSSL_CTX; const md: PEVP_MD; mtype: TIdC_UINT8; ord: TIdC_UINT8): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_dane_mtype_set'); +end; + + +function ERR_SSL_dane_enable(s: PSSL; const basedomain: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_dane_enable'); +end; + + +function ERR_SSL_dane_tlsa_add(s: PSSL; usage: TIdC_UINT8; selector: TIdC_UINT8; mtype: TIdC_UINT8; const data: PByte; dlen: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_dane_tlsa_add'); +end; + + +function ERR_SSL_get0_dane_authority(s: PSSL; mcert: PPX509; mspki: PPEVP_PKEY): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get0_dane_authority'); +end; + + +function ERR_SSL_get0_dane_tlsa(s: PSSL; usage: PIdC_UINT8; selector: PIdC_UINT8; mtype: PIdC_UINT8; const data: PPByte; dlen: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get0_dane_tlsa'); +end; + + +function ERR_SSL_get0_dane(ssl: PSSL): PSSL_DANE; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get0_dane'); +end; + + +function ERR_SSL_CTX_dane_set_flags(ctx: PSSL_CTX; flags: TIdC_ULONG): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_dane_set_flags'); +end; + + +function ERR_SSL_CTX_dane_clear_flags(ctx: PSSL_CTX; flags: TIdC_ULONG): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_dane_clear_flags'); +end; + + +function ERR_SSL_dane_set_flags(ssl: PSSL; flags: TIdC_ULONG): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_dane_set_flags'); +end; + + +function ERR_SSL_dane_clear_flags(ssl: PSSL; flags: TIdC_ULONG): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_dane_clear_flags'); +end; + + +procedure ERR_SSL_CTX_set_client_hello_cb(c: PSSL_CTX; cb: SSL_client_hello_cb_fn; arg: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_client_hello_cb'); +end; + + +function ERR_SSL_client_hello_isv2(s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_client_hello_isv2'); +end; + + +function ERR_SSL_client_hello_get0_legacy_version(s: PSSL): TIdC_UINT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_client_hello_get0_legacy_version'); +end; + + +function ERR_SSL_client_hello_get0_random(s: PSSL; const out_: PPByte): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_client_hello_get0_random'); +end; + + +function ERR_SSL_client_hello_get0_session_id(s: PSSL; const out_: PPByte): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_client_hello_get0_session_id'); +end; + + +function ERR_SSL_client_hello_get0_ciphers(s: PSSL; const out_: PPByte): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_client_hello_get0_ciphers'); +end; + + +function ERR_SSL_client_hello_get0_compression_methods(s: PSSL; const out_: PPByte): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_client_hello_get0_compression_methods'); +end; + + +function ERR_SSL_client_hello_get1_extensions_present(s: PSSL; out_: PPIdC_INT; outlen: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_client_hello_get1_extensions_present'); +end; + + +function ERR_SSL_client_hello_get0_ext(s: PSSL; type_: TIdC_UINT; const out_: PPByte; outlen: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_client_hello_get0_ext'); +end; + + +function ERR_SSL_waiting_for_async(s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_waiting_for_async'); +end; + + +function ERR_SSL_get_all_async_fds(s: PSSL; fds: POSSL_ASYNC_FD; numfds: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_all_async_fds'); +end; + + +function ERR_SSL_get_changed_async_fds(s: PSSL; addfd: POSSL_ASYNC_FD; numaddfds: PIdC_SIZET; delfd: POSSL_ASYNC_FD; numdelfds: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_changed_async_fds'); +end; + + +function ERR_SSL_stateless(s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_stateless'); +end; + + +function ERR_SSL_read_ex(ssl: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_read_ex'); +end; + + +function ERR_SSL_read_early_data(s: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_read_early_data'); +end; + + +function ERR_SSL_peek_ex(ssl: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_peek_ex'); +end; + + +function ERR_SSL_write_ex(s: PSSL; const buf: Pointer; num: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_write_ex'); +end; + + +function ERR_SSL_write_early_data(s: PSSL; const buf: Pointer; num: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_write_early_data'); +end; + + +function ERR_SSL_get_early_data_status(const s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_early_data_status'); +end; + + +function ERR_TLS_method: PSSL_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('TLS_method'); +end; + + +function ERR_TLS_server_method: PSSL_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('TLS_server_method'); +end; + + +function ERR_TLS_client_method: PSSL_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('TLS_client_method'); +end; + + +function ERR_SSL_key_update(s: PSSL; updatetype: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_key_update'); +end; + + +function ERR_SSL_get_key_update_type(const s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_key_update_type'); +end; + + +procedure ERR_SSL_CTX_set_post_handshake_auth(ctx: PSSL_CTX; val: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_post_handshake_auth'); +end; + + +procedure ERR_SSL_set_post_handshake_auth(s: PSSL; val: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_post_handshake_auth'); +end; + + +function ERR_SSL_verify_client_post_handshake(s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_verify_client_post_handshake'); +end; + + +function ERR_SSL_library_init: TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_library_init'); +end; + + +function ERR_SSL_client_version(const s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_client_version'); +end; + + +function ERR_SSL_CTX_set_default_verify_dir(ctx: PSSL_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_default_verify_dir'); +end; + + +function ERR_SSL_CTX_set_default_verify_file(ctx: PSSL_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_default_verify_file'); +end; + + +function ERR_SSL_get_state(const ssl: PSSL): OSSL_HANDSHAKE_STATE; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_state'); +end; + + +function ERR_SSL_get_client_random(const ssl: PSSL; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_client_random'); +end; + + +function ERR_SSL_get_server_random(const ssl: PSSL; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_server_random'); +end; + + +function ERR_SSL_SESSION_get_master_key(const sess: PSSL_SESSION; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_get_master_key'); +end; + + +function ERR_SSL_SESSION_set1_master_key(sess: PSSL_SESSION; const in_: PByte; len: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_set1_master_key'); +end; + + +function ERR_SSL_SESSION_get_max_fragment_length(const sess: PSSL_SESSION): TIdC_UINT8; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_get_max_fragment_length'); +end; + + +procedure ERR_SSL_CTX_set_default_read_buffer_len(ctx: PSSL_CTX; len: TIdC_SIZET); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_default_read_buffer_len'); +end; + + +procedure ERR_SSL_set_default_read_buffer_len(s: PSSL; len: TIdC_SIZET); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_default_read_buffer_len'); +end; + + +function ERR_SSL_CIPHER_get_cipher_nid(const c: PSSL_CIPHEr): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CIPHER_get_cipher_nid'); +end; + + +function ERR_SSL_CIPHER_get_digest_nid(const c: PSSL_CIPHEr): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CIPHER_get_digest_nid'); +end; + + +procedure ERR_SSL_CTX_set_not_resumable_session_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_not_resumable_session_callback_cb); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_not_resumable_session_callback'); +end; + + +procedure ERR_SSL_set_not_resumable_session_callback(ssl: PSSL; cb: SSL_set_not_resumable_session_callback_cb); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_not_resumable_session_callback'); +end; + + +procedure ERR_SSL_CTX_set_record_padding_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_record_padding_callback_cb); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_record_padding_callback'); +end; + + +procedure ERR_SSL_CTX_set_record_padding_callback_arg(ctx: PSSL_CTX; arg: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_record_padding_callback_arg'); +end; + + +function ERR_SSL_CTX_get_record_padding_callback_arg(const ctx: PSSL_CTX): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_record_padding_callback_arg'); +end; + + +function ERR_SSL_CTX_set_block_padding(ctx: PSSL_CTX; block_size: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_block_padding'); +end; + + +procedure ERR_SSL_set_record_padding_callback(ssl: PSSL; cb: SSL_set_record_padding_callback_cb); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_record_padding_callback'); +end; + + +procedure ERR_SSL_set_record_padding_callback_arg(ssl: PSSL; arg: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_record_padding_callback_arg'); +end; + + +function ERR_SSL_get_record_padding_callback_arg(const ssl: PSSL): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_record_padding_callback_arg'); +end; + + +function ERR_SSL_set_block_padding(ssl: PSSL; block_size: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_block_padding'); +end; + + +function ERR_SSL_set_num_tickets(s: PSSL; num_tickets: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_num_tickets'); +end; + + +function ERR_SSL_get_num_tickets(const s: PSSL): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_num_tickets'); +end; + + +function ERR_SSL_CTX_set_num_tickets(ctx: PSSL_CTX; num_tickets: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_num_tickets'); +end; + + +function ERR_SSL_CTX_get_num_tickets(const ctx: PSSL_CTX): TIdC_SIZET; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_num_tickets'); +end; + + +function ERR_SSL_session_reused(const s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_session_reused'); +end; + + +procedure ERR_SSL_add_ssl_module; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_add_ssl_module'); +end; + + +function ERR_SSL_config(s: PSSL; const name: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_config'); +end; + + +function ERR_SSL_CTX_config(ctx: PSSL_CTX; const name: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_config'); +end; + + +function ERR_DTLSv1_listen(s: PSSL; client: PBIO_ADDr): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('DTLSv1_listen'); +end; + + +function ERR_SSL_enable_ct(s: PSSL; validation_mode: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_enable_ct'); +end; + + +function ERR_SSL_CTX_enable_ct(ctx: PSSL_CTX; validation_mode: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_enable_ct'); +end; + + +function ERR_SSL_ct_is_enabled(const s: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_ct_is_enabled'); +end; + + +function ERR_SSL_CTX_ct_is_enabled(const ctx: PSSL_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_ct_is_enabled'); +end; + + +function ERR_SSL_CTX_set_default_ctlog_list_file(ctx: PSSL_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_default_ctlog_list_file'); +end; + + +function ERR_SSL_CTX_set_ctlog_list_file(ctx: PSSL_CTX; const path: PIdAnsiChar): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_ctlog_list_file'); +end; + + +procedure ERR_SSL_CTX_set0_ctlog_store(ctx: PSSL_CTX; logs: PCTLOG_STORE); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set0_ctlog_store'); +end; + + +procedure ERR_SSL_set_security_level(s: PSSL; level: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_security_level'); +end; + + +procedure ERR_SSL_set_security_callback(s: PSSL; cb: SSL_security_callback); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_security_callback'); +end; + + +function ERR_SSL_get_security_callback(const s: PSSL): SSL_security_callback; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_security_callback'); +end; + + +procedure ERR_SSL_set0_security_ex_data(s: PSSL; ex: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set0_security_ex_data'); +end; + + +function ERR_SSL_get0_security_ex_data(const s: PSSL): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get0_security_ex_data'); +end; + + +procedure ERR_SSL_CTX_set_security_level(ctx: PSSL_CTX; level: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_security_level'); +end; + + +function ERR_SSL_CTX_get_security_level(const ctx: PSSL_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get_security_level'); +end; + + +function ERR_SSL_CTX_get0_security_ex_data(const ctx: PSSL_CTX): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_get0_security_ex_data'); +end; + + +procedure ERR_SSL_CTX_set0_security_ex_data(ctx: PSSL_CTX; ex: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set0_security_ex_data'); +end; + + +function ERR_OPENSSL_init_ssl(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_init_ssl'); +end; + + +function ERR_SSL_free_buffers(ssl: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_free_buffers'); +end; + + +function ERR_SSL_alloc_buffers(ssl: PSSL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_alloc_buffers'); +end; + + +function ERR_SSL_CTX_set_session_ticket_cb(ctx: PSSL_CTX; gen_cb: SSL_CTX_generate_session_ticket_fn; dec_cb: SSL_CTX_decrypt_session_ticket_fn; arg: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_session_ticket_cb'); +end; + + +function ERR_SSL_SESSION_set1_ticket_appdata(ss: PSSL_SESSION; const data: Pointer; len: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_set1_ticket_appdata'); +end; + + +function ERR_SSL_SESSION_get0_ticket_appdata(ss: PSSL_SESSION; data: PPointer; len: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_SESSION_get0_ticket_appdata'); +end; + + +procedure ERR_DTLS_set_timer_cb(s: PSSL; cb: DTLS_timer_cb); +begin + EIdAPIFunctionNotPresent.RaiseException('DTLS_set_timer_cb'); +end; + + +procedure ERR_SSL_CTX_set_allow_early_data_cb(ctx: PSSL_CTX; cb: SSL_allow_early_data_cb_fN; arg: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_allow_early_data_cb'); +end; + + +procedure ERR_SSL_set_allow_early_data_cb(s: PSSL; cb: SSL_allow_early_data_cb_fN; arg: Pointer); +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_allow_early_data_cb'); +end; + + +function ERR_SSL_get0_peer_certificate(const s: PSSL): PX509; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get0_peer_certificate'); +end; + + +function ERR_SSL_get1_peer_certificate(const s: PSSL): PX509; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get1_peer_certificate'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + SSL_CTX_sess_set_new_cb := LoadFunction('SSL_CTX_sess_set_new_cb',AFailed); + SSL_CTX_sess_get_new_cb := LoadFunction('SSL_CTX_sess_get_new_cb',AFailed); + SSL_CTX_sess_set_remove_cb := LoadFunction('SSL_CTX_sess_set_remove_cb',AFailed); + SSL_CTX_sess_get_remove_cb := LoadFunction('SSL_CTX_sess_get_remove_cb',AFailed); + SSL_CTX_set_info_callback := LoadFunction('SSL_CTX_set_info_callback',AFailed); + SSL_CTX_get_info_callback := LoadFunction('SSL_CTX_get_info_callback',AFailed); + SSL_CTX_set_client_cert_cb := LoadFunction('SSL_CTX_set_client_cert_cb',AFailed); + SSL_CTX_get_client_cert_cb := LoadFunction('SSL_CTX_get_client_cert_cb',AFailed); + SSL_CTX_set_client_cert_engine := LoadFunction('SSL_CTX_set_client_cert_engine',AFailed); + SSL_CTX_set_cookie_generate_cb := LoadFunction('SSL_CTX_set_cookie_generate_cb',AFailed); + SSL_CTX_set_cookie_verify_cb := LoadFunction('SSL_CTX_set_cookie_verify_cb',AFailed); + SSL_CTX_set_alpn_select_cb := LoadFunction('SSL_CTX_set_alpn_select_cb',AFailed); + SSL_get0_alpn_selected := LoadFunction('SSL_get0_alpn_selected',AFailed); + SSL_CTX_set_psk_client_callback := LoadFunction('SSL_CTX_set_psk_client_callback',AFailed); + SSL_set_psk_client_callback := LoadFunction('SSL_set_psk_client_callback',AFailed); + SSL_CTX_set_psk_server_callback := LoadFunction('SSL_CTX_set_psk_server_callback',AFailed); + SSL_set_psk_server_callback := LoadFunction('SSL_set_psk_server_callback',AFailed); + SSL_get_finished := LoadFunction('SSL_get_finished',AFailed); + SSL_get_peer_finished := LoadFunction('SSL_get_peer_finished',AFailed); + BIO_f_ssl := LoadFunction('BIO_f_ssl',AFailed); + BIO_new_ssl := LoadFunction('BIO_new_ssl',AFailed); + BIO_new_ssl_connect := LoadFunction('BIO_new_ssl_connect',AFailed); + BIO_new_buffer_ssl_connect := LoadFunction('BIO_new_buffer_ssl_connect',AFailed); + BIO_ssl_copy_session_id := LoadFunction('BIO_ssl_copy_session_id',AFailed); + SSL_CTX_set_cipher_list := LoadFunction('SSL_CTX_set_cipher_list',AFailed); + SSL_CTX_new := LoadFunction('SSL_CTX_new',AFailed); + SSL_CTX_set_timeout := LoadFunction('SSL_CTX_set_timeout',AFailed); + SSL_CTX_get_timeout := LoadFunction('SSL_CTX_get_timeout',AFailed); + SSL_CTX_get_cert_store := LoadFunction('SSL_CTX_get_cert_store',AFailed); + SSL_want := LoadFunction('SSL_want',AFailed); + SSL_clear := LoadFunction('SSL_clear',AFailed); + BIO_ssl_shutdown := LoadFunction('BIO_ssl_shutdown',AFailed); + SSL_CTX_free := LoadFunction('SSL_CTX_free',AFailed); + SSL_CTX_set_cert_store := LoadFunction('SSL_CTX_set_cert_store',AFailed); + SSL_CTX_flush_sessions := LoadFunction('SSL_CTX_flush_sessions',AFailed); + SSL_get_current_cipher := LoadFunction('SSL_get_current_cipher',AFailed); + SSL_CIPHER_get_bits := LoadFunction('SSL_CIPHER_get_bits',AFailed); + SSL_CIPHER_get_version := LoadFunction('SSL_CIPHER_get_version',AFailed); + SSL_CIPHER_get_name := LoadFunction('SSL_CIPHER_get_name',AFailed); + SSL_CIPHER_get_id := LoadFunction('SSL_CIPHER_get_id',AFailed); + SSL_get_fd := LoadFunction('SSL_get_fd',AFailed); + SSL_get_rfd := LoadFunction('SSL_get_rfd',AFailed); + SSL_get_wfd := LoadFunction('SSL_get_wfd',AFailed); + SSL_get_cipher_list := LoadFunction('SSL_get_cipher_list',AFailed); + SSL_get_shared_ciphers := LoadFunction('SSL_get_shared_ciphers',AFailed); + SSL_get_read_ahead := LoadFunction('SSL_get_read_ahead',AFailed); + SSL_pending := LoadFunction('SSL_pending',AFailed); + SSL_set_fd := LoadFunction('SSL_set_fd',AFailed); + SSL_set_rfd := LoadFunction('SSL_set_rfd',AFailed); + SSL_set_wfd := LoadFunction('SSL_set_wfd',AFailed); + SSL_set_bio := LoadFunction('SSL_set_bio',AFailed); + SSL_get_rbio := LoadFunction('SSL_get_rbio',AFailed); + SSL_get_wbio := LoadFunction('SSL_get_wbio',AFailed); + SSL_set_cipher_list := LoadFunction('SSL_set_cipher_list',AFailed); + SSL_get_verify_mode := LoadFunction('SSL_get_verify_mode',AFailed); + SSL_get_verify_depth := LoadFunction('SSL_get_verify_depth',AFailed); + SSL_get_verify_callback := LoadFunction('SSL_get_verify_callback',AFailed); + SSL_set_read_ahead := LoadFunction('SSL_set_read_ahead',AFailed); + SSL_set_verify := LoadFunction('SSL_set_verify',AFailed); + SSL_set_verify_depth := LoadFunction('SSL_set_verify_depth',AFailed); + SSL_use_RSAPrivateKey := LoadFunction('SSL_use_RSAPrivateKey',AFailed); + SSL_use_RSAPrivateKey_ASN1 := LoadFunction('SSL_use_RSAPrivateKey_ASN1',AFailed); + SSL_use_PrivateKey := LoadFunction('SSL_use_PrivateKey',AFailed); + SSL_use_PrivateKey_ASN1 := LoadFunction('SSL_use_PrivateKey_ASN1',AFailed); + SSL_use_certificate := LoadFunction('SSL_use_certificate',AFailed); + SSL_use_certificate_ASN1 := LoadFunction('SSL_use_certificate_ASN1',AFailed); + SSL_CTX_use_serverinfo := LoadFunction('SSL_CTX_use_serverinfo',AFailed); + SSL_CTX_use_serverinfo_file := LoadFunction('SSL_CTX_use_serverinfo_file',AFailed); + SSL_use_RSAPrivateKey_file := LoadFunction('SSL_use_RSAPrivateKey_file',AFailed); + SSL_use_PrivateKey_file := LoadFunction('SSL_use_PrivateKey_file',AFailed); + SSL_use_certificate_file := LoadFunction('SSL_use_certificate_file',AFailed); + SSL_CTX_use_RSAPrivateKey_file := LoadFunction('SSL_CTX_use_RSAPrivateKey_file',AFailed); + SSL_CTX_use_PrivateKey_file := LoadFunction('SSL_CTX_use_PrivateKey_file',AFailed); + SSL_CTX_use_certificate_file := LoadFunction('SSL_CTX_use_certificate_file',AFailed); + SSL_CTX_use_certificate_chain_file := LoadFunction('SSL_CTX_use_certificate_chain_file',AFailed); + SSL_load_client_CA_file := LoadFunction('SSL_load_client_CA_file',AFailed); + SSL_add_file_cert_subjects_to_stack := LoadFunction('SSL_add_file_cert_subjects_to_stack',AFailed); + SSL_add_dir_cert_subjects_to_stack := LoadFunction('SSL_add_dir_cert_subjects_to_stack',AFailed); + SSL_state_string := LoadFunction('SSL_state_string',AFailed); + SSL_rstate_string := LoadFunction('SSL_rstate_string',AFailed); + SSL_state_string_long := LoadFunction('SSL_state_string_long',AFailed); + SSL_rstate_string_long := LoadFunction('SSL_rstate_string_long',AFailed); + SSL_SESSION_get_time := LoadFunction('SSL_SESSION_get_time',AFailed); + SSL_SESSION_set_time := LoadFunction('SSL_SESSION_set_time',AFailed); + SSL_SESSION_get_timeout := LoadFunction('SSL_SESSION_get_timeout',AFailed); + SSL_SESSION_set_timeout := LoadFunction('SSL_SESSION_set_timeout',AFailed); + SSL_copy_session_id := LoadFunction('SSL_copy_session_id',AFailed); + SSL_SESSION_get0_peer := LoadFunction('SSL_SESSION_get0_peer',AFailed); + SSL_SESSION_set1_id_context := LoadFunction('SSL_SESSION_set1_id_context',AFailed); + SSL_SESSION_new := LoadFunction('SSL_SESSION_new',AFailed); + SSL_SESSION_get_id := LoadFunction('SSL_SESSION_get_id',AFailed); + SSL_SESSION_get_compress_id := LoadFunction('SSL_SESSION_get_compress_id',AFailed); + SSL_SESSION_print := LoadFunction('SSL_SESSION_print',AFailed); + SSL_SESSION_free := LoadFunction('SSL_SESSION_free',AFailed); + SSL_set_session := LoadFunction('SSL_set_session',AFailed); + SSL_CTX_add_session := LoadFunction('SSL_CTX_add_session',AFailed); + SSL_CTX_remove_session := LoadFunction('SSL_CTX_remove_session',AFailed); + SSL_CTX_set_generate_session_id := LoadFunction('SSL_CTX_set_generate_session_id',AFailed); + SSL_set_generate_session_id := LoadFunction('SSL_set_generate_session_id',AFailed); + SSL_has_matching_session_id := LoadFunction('SSL_has_matching_session_id',AFailed); + d2i_SSL_SESSION := LoadFunction('d2i_SSL_SESSION',AFailed); + SSL_CTX_get_verify_mode := LoadFunction('SSL_CTX_get_verify_mode',AFailed); + SSL_CTX_get_verify_depth := LoadFunction('SSL_CTX_get_verify_depth',AFailed); + SSL_CTX_get_verify_callback := LoadFunction('SSL_CTX_get_verify_callback',AFailed); + SSL_CTX_set_verify := LoadFunction('SSL_CTX_set_verify',AFailed); + SSL_CTX_set_verify_depth := LoadFunction('SSL_CTX_set_verify_depth',AFailed); + SSL_CTX_set_cert_verify_callback := LoadFunction('SSL_CTX_set_cert_verify_callback',AFailed); + SSL_CTX_set_cert_cb := LoadFunction('SSL_CTX_set_cert_cb',AFailed); + SSL_CTX_use_RSAPrivateKey := LoadFunction('SSL_CTX_use_RSAPrivateKey',AFailed); + SSL_CTX_use_RSAPrivateKey_ASN1 := LoadFunction('SSL_CTX_use_RSAPrivateKey_ASN1',AFailed); + SSL_CTX_use_PrivateKey := LoadFunction('SSL_CTX_use_PrivateKey',AFailed); + SSL_CTX_use_PrivateKey_ASN1 := LoadFunction('SSL_CTX_use_PrivateKey_ASN1',AFailed); + SSL_CTX_use_certificate := LoadFunction('SSL_CTX_use_certificate',AFailed); + SSL_CTX_use_certificate_ASN1 := LoadFunction('SSL_CTX_use_certificate_ASN1',AFailed); + SSL_CTX_check_private_key := LoadFunction('SSL_CTX_check_private_key',AFailed); + SSL_check_private_key := LoadFunction('SSL_check_private_key',AFailed); + SSL_CTX_set_session_id_context := LoadFunction('SSL_CTX_set_session_id_context',AFailed); + SSL_new := LoadFunction('SSL_new',AFailed); + SSL_set_session_id_context := LoadFunction('SSL_set_session_id_context',AFailed); + SSL_CTX_set_purpose := LoadFunction('SSL_CTX_set_purpose',AFailed); + SSL_set_purpose := LoadFunction('SSL_set_purpose',AFailed); + SSL_CTX_set_trust := LoadFunction('SSL_CTX_set_trust',AFailed); + SSL_set_trust := LoadFunction('SSL_set_trust',AFailed); + SSL_CTX_set1_param := LoadFunction('SSL_CTX_set1_param',AFailed); + SSL_set1_param := LoadFunction('SSL_set1_param',AFailed); + SSL_CTX_get0_param := LoadFunction('SSL_CTX_get0_param',AFailed); + SSL_get0_param := LoadFunction('SSL_get0_param',AFailed); + SSL_CTX_set_srp_username := LoadFunction('SSL_CTX_set_srp_username',AFailed); + SSL_CTX_set_srp_password := LoadFunction('SSL_CTX_set_srp_password',AFailed); + SSL_CTX_set_srp_strength := LoadFunction('SSL_CTX_set_srp_strength',AFailed); + SSL_CTX_set_srp_client_pwd_callback := LoadFunction('SSL_CTX_set_srp_client_pwd_callback',AFailed); + SSL_CTX_set_srp_verify_param_callback := LoadFunction('SSL_CTX_set_srp_verify_param_callback',AFailed); + SSL_CTX_set_srp_username_callback := LoadFunction('SSL_CTX_set_srp_username_callback',AFailed); + SSL_CTX_set_srp_cb_arg := LoadFunction('SSL_CTX_set_srp_cb_arg',AFailed); + SSL_set_srp_server_param := LoadFunction('SSL_set_srp_server_param',AFailed); + SSL_set_srp_server_param_pw := LoadFunction('SSL_set_srp_server_param_pw',AFailed); + SSL_certs_clear := LoadFunction('SSL_certs_clear',AFailed); + SSL_free := LoadFunction('SSL_free',AFailed); + SSL_accept := LoadFunction('SSL_accept',AFailed); + SSL_connect := LoadFunction('SSL_connect',AFailed); + SSL_read := LoadFunction('SSL_read',AFailed); + SSL_peek := LoadFunction('SSL_peek',AFailed); + SSL_write := LoadFunction('SSL_write',AFailed); + SSL_callback_ctrl := LoadFunction('SSL_callback_ctrl',AFailed); + SSL_ctrl := LoadFunction('SSL_ctrl',AFailed); + SSL_CTX_ctrl := LoadFunction('SSL_CTX_ctrl',AFailed); + SSL_CTX_callback_ctrl := LoadFunction('SSL_CTX_callback_ctrl',AFailed); + SSL_get_error := LoadFunction('SSL_get_error',AFailed); + SSL_get_version := LoadFunction('SSL_get_version',AFailed); + SSL_CTX_set_ssl_version := LoadFunction('SSL_CTX_set_ssl_version',AFailed); + SSL_renegotiate := LoadFunction('SSL_renegotiate',AFailed); + SSL_renegotiate_abbreviated := LoadFunction('SSL_renegotiate_abbreviated',AFailed); + SSL_shutdown := LoadFunction('SSL_shutdown',AFailed); + SSL_renegotiate_pending := LoadFunction('SSL_renegotiate_pending',AFailed); + SSL_CTX_get_ssl_method := LoadFunction('SSL_CTX_get_ssl_method',AFailed); + SSL_get_ssl_method := LoadFunction('SSL_get_ssl_method',AFailed); + SSL_set_ssl_method := LoadFunction('SSL_set_ssl_method',AFailed); + SSL_alert_type_string_long := LoadFunction('SSL_alert_type_string_long',AFailed); + SSL_alert_type_string := LoadFunction('SSL_alert_type_string',AFailed); + SSL_alert_desc_string_long := LoadFunction('SSL_alert_desc_string_long',AFailed); + SSL_alert_desc_string := LoadFunction('SSL_alert_desc_string',AFailed); + SSL_CTX_set_client_CA_list := LoadFunction('SSL_CTX_set_client_CA_list',AFailed); + SSL_add_client_CA := LoadFunction('SSL_add_client_CA',AFailed); + SSL_CTX_add_client_CA := LoadFunction('SSL_CTX_add_client_CA',AFailed); + SSL_set_connect_state := LoadFunction('SSL_set_connect_state',AFailed); + SSL_set_accept_state := LoadFunction('SSL_set_accept_state',AFailed); + SSL_CIPHER_description := LoadFunction('SSL_CIPHER_description',AFailed); + SSL_dup := LoadFunction('SSL_dup',AFailed); + SSL_get_certificate := LoadFunction('SSL_get_certificate',AFailed); + SSL_get_privatekey := LoadFunction('SSL_get_privatekey',AFailed); + SSL_CTX_get0_certificate := LoadFunction('SSL_CTX_get0_certificate',AFailed); + SSL_CTX_get0_privatekey := LoadFunction('SSL_CTX_get0_privatekey',AFailed); + SSL_CTX_set_quiet_shutdown := LoadFunction('SSL_CTX_set_quiet_shutdown',AFailed); + SSL_CTX_get_quiet_shutdown := LoadFunction('SSL_CTX_get_quiet_shutdown',AFailed); + SSL_set_quiet_shutdown := LoadFunction('SSL_set_quiet_shutdown',AFailed); + SSL_get_quiet_shutdown := LoadFunction('SSL_get_quiet_shutdown',AFailed); + SSL_set_shutdown := LoadFunction('SSL_set_shutdown',AFailed); + SSL_get_shutdown := LoadFunction('SSL_get_shutdown',AFailed); + SSL_version := LoadFunction('SSL_version',AFailed); + SSL_CTX_set_default_verify_paths := LoadFunction('SSL_CTX_set_default_verify_paths',AFailed); + SSL_CTX_load_verify_locations := LoadFunction('SSL_CTX_load_verify_locations',AFailed); + SSL_get_session := LoadFunction('SSL_get_session',AFailed); + SSL_get1_session := LoadFunction('SSL_get1_session',AFailed); + SSL_get_SSL_CTX := LoadFunction('SSL_get_SSL_CTX',AFailed); + SSL_set_SSL_CTX := LoadFunction('SSL_set_SSL_CTX',AFailed); + SSL_set_info_callback := LoadFunction('SSL_set_info_callback',AFailed); + SSL_get_info_callback := LoadFunction('SSL_get_info_callback',AFailed); + SSL_set_verify_result := LoadFunction('SSL_set_verify_result',AFailed); + SSL_get_verify_result := LoadFunction('SSL_get_verify_result',AFailed); + SSL_set_ex_data := LoadFunction('SSL_set_ex_data',AFailed); + SSL_get_ex_data := LoadFunction('SSL_get_ex_data',AFailed); + SSL_SESSION_set_ex_data := LoadFunction('SSL_SESSION_set_ex_data',AFailed); + SSL_SESSION_get_ex_data := LoadFunction('SSL_SESSION_get_ex_data',AFailed); + SSL_CTX_set_ex_data := LoadFunction('SSL_CTX_set_ex_data',AFailed); + SSL_CTX_get_ex_data := LoadFunction('SSL_CTX_get_ex_data',AFailed); + SSL_get_ex_data_X509_STORE_CTX_idx := LoadFunction('SSL_get_ex_data_X509_STORE_CTX_idx',AFailed); + SSL_CTX_set_tmp_dh_callback := LoadFunction('SSL_CTX_set_tmp_dh_callback',AFailed); + SSL_set_tmp_dh_callback := LoadFunction('SSL_set_tmp_dh_callback',AFailed); + SSL_CIPHER_find := LoadFunction('SSL_CIPHER_find',AFailed); + SSL_set_session_ticket_ext := LoadFunction('SSL_set_session_ticket_ext',AFailed); + SSL_set_session_ticket_ext_cb := LoadFunction('SSL_set_session_ticket_ext_cb',AFailed); + SSL_is_server := LoadFunction('SSL_is_server',AFailed); + SSL_CONF_CTX_new := LoadFunction('SSL_CONF_CTX_new',AFailed); + SSL_CONF_CTX_finish := LoadFunction('SSL_CONF_CTX_finish',AFailed); + SSL_CONF_CTX_free := LoadFunction('SSL_CONF_CTX_free',AFailed); + SSL_CONF_CTX_set_flags := LoadFunction('SSL_CONF_CTX_set_flags',AFailed); + SSL_CONF_CTX_clear_flags := LoadFunction('SSL_CONF_CTX_clear_flags',AFailed); + SSL_CONF_CTX_set1_prefix := LoadFunction('SSL_CONF_CTX_set1_prefix',AFailed); + SSL_CONF_cmd := LoadFunction('SSL_CONF_cmd',AFailed); + SSL_CONF_cmd_argv := LoadFunction('SSL_CONF_cmd_argv',AFailed); + SSL_CONF_cmd_value_type := LoadFunction('SSL_CONF_cmd_value_type',AFailed); + SSL_CONF_CTX_set_ssl := LoadFunction('SSL_CONF_CTX_set_ssl',AFailed); + SSL_CONF_CTX_set_ssl_ctx := LoadFunction('SSL_CONF_CTX_set_ssl_ctx',AFailed); + SSL_CTX_set_mode := LoadFunction('SSL_CTX_set_mode',nil); {removed 1.0.0} + SSL_CTX_clear_mode := LoadFunction('SSL_CTX_clear_mode',nil); {removed 1.0.0} + SSL_CTX_sess_set_cache_size := LoadFunction('SSL_CTX_sess_set_cache_size',nil); {removed 1.0.0} + SSL_CTX_sess_get_cache_size := LoadFunction('SSL_CTX_sess_get_cache_size',nil); {removed 1.0.0} + SSL_CTX_set_session_cache_mode := LoadFunction('SSL_CTX_set_session_cache_mode',nil); {removed 1.0.0} + SSL_CTX_get_session_cache_mode := LoadFunction('SSL_CTX_get_session_cache_mode',nil); {removed 1.0.0} + SSL_clear_num_renegotiations := LoadFunction('SSL_clear_num_renegotiations',nil); {removed 1.0.0} + SSL_total_renegotiations := LoadFunction('SSL_total_renegotiations',nil); {removed 1.0.0} + SSL_CTX_set_tmp_dh := LoadFunction('SSL_CTX_set_tmp_dh',nil); {removed 1.0.0} + SSL_CTX_set_tmp_ecdh := LoadFunction('SSL_CTX_set_tmp_ecdh',nil); {removed 1.0.0} + SSL_CTX_set_dh_auto := LoadFunction('SSL_CTX_set_dh_auto',nil); {removed 1.0.0} + SSL_set_dh_auto := LoadFunction('SSL_set_dh_auto',nil); {removed 1.0.0} + SSL_set_tmp_dh := LoadFunction('SSL_set_tmp_dh',nil); {removed 1.0.0} + SSL_set_tmp_ecdh := LoadFunction('SSL_set_tmp_ecdh',nil); {removed 1.0.0} + SSL_CTX_add_extra_chain_cert := LoadFunction('SSL_CTX_add_extra_chain_cert',nil); {removed 1.0.0} + SSL_CTX_get_extra_chain_certs := LoadFunction('SSL_CTX_get_extra_chain_certs',nil); {removed 1.0.0} + SSL_CTX_get_extra_chain_certs_only := LoadFunction('SSL_CTX_get_extra_chain_certs_only',nil); {removed 1.0.0} + SSL_CTX_clear_extra_chain_certs := LoadFunction('SSL_CTX_clear_extra_chain_certs',nil); {removed 1.0.0} + SSL_CTX_set0_chain := LoadFunction('SSL_CTX_set0_chain',nil); {removed 1.0.0} + SSL_CTX_set1_chain := LoadFunction('SSL_CTX_set1_chain',nil); {removed 1.0.0} + SSL_CTX_add0_chain_cert := LoadFunction('SSL_CTX_add0_chain_cert',nil); {removed 1.0.0} + SSL_CTX_add1_chain_cert := LoadFunction('SSL_CTX_add1_chain_cert',nil); {removed 1.0.0} + SSL_CTX_get0_chain_certs := LoadFunction('SSL_CTX_get0_chain_certs',nil); {removed 1.0.0} + SSL_CTX_clear_chain_certs := LoadFunction('SSL_CTX_clear_chain_certs',nil); {removed 1.0.0} + SSL_CTX_build_cert_chain := LoadFunction('SSL_CTX_build_cert_chain',nil); {removed 1.0.0} + SSL_CTX_select_current_cert := LoadFunction('SSL_CTX_select_current_cert',nil); {removed 1.0.0} + SSL_CTX_set_current_cert := LoadFunction('SSL_CTX_set_current_cert',nil); {removed 1.0.0} + SSL_CTX_set0_verify_cert_store := LoadFunction('SSL_CTX_set0_verify_cert_store',nil); {removed 1.0.0} + SSL_CTX_set1_verify_cert_store := LoadFunction('SSL_CTX_set1_verify_cert_store',nil); {removed 1.0.0} + SSL_CTX_set0_chain_cert_store := LoadFunction('SSL_CTX_set0_chain_cert_store',nil); {removed 1.0.0} + SSL_CTX_set1_chain_cert_store := LoadFunction('SSL_CTX_set1_chain_cert_store',nil); {removed 1.0.0} + SSL_set0_chain := LoadFunction('SSL_set0_chain',nil); {removed 1.0.0} + SSL_set1_chain := LoadFunction('SSL_set1_chain',nil); {removed 1.0.0} + SSL_add0_chain_cert := LoadFunction('SSL_add0_chain_cert',nil); {removed 1.0.0} + SSL_add1_chain_cert := LoadFunction('SSL_add1_chain_cert',nil); {removed 1.0.0} + SSL_get0_chain_certs := LoadFunction('SSL_get0_chain_certs',nil); {removed 1.0.0} + SSL_clear_chain_certs := LoadFunction('SSL_clear_chain_certs',nil); {removed 1.0.0} + SSL_build_cert_chain := LoadFunction('SSL_build_cert_chain',nil); {removed 1.0.0} + SSL_select_current_cert := LoadFunction('SSL_select_current_cert',nil); {removed 1.0.0} + SSL_set_current_cert := LoadFunction('SSL_set_current_cert',nil); {removed 1.0.0} + SSL_set0_verify_cert_store := LoadFunction('SSL_set0_verify_cert_store',nil); {removed 1.0.0} + SSL_set1_verify_cert_store := LoadFunction('SSL_set1_verify_cert_store',nil); {removed 1.0.0} + SSL_set0_chain_cert_store := LoadFunction('SSL_set0_chain_cert_store',nil); {removed 1.0.0} + SSL_set1_chain_cert_store := LoadFunction('SSL_set1_chain_cert_store',nil); {removed 1.0.0} + SSL_get1_groups := LoadFunction('SSL_get1_groups',nil); {removed 1.0.0} + SSL_CTX_set1_groups := LoadFunction('SSL_CTX_set1_groups',nil); {removed 1.0.0} + SSL_CTX_set1_groups_list := LoadFunction('SSL_CTX_set1_groups_list',nil); {removed 1.0.0} + SSL_set1_groups := LoadFunction('SSL_set1_groups',nil); {removed 1.0.0} + SSL_set1_groups_list := LoadFunction('SSL_set1_groups_list',nil); {removed 1.0.0} + SSL_get_shared_group := LoadFunction('SSL_get_shared_group',nil); {removed 1.0.0} + SSL_CTX_set1_sigalgs := LoadFunction('SSL_CTX_set1_sigalgs',nil); {removed 1.0.0} + SSL_CTX_set1_sigalgs_list := LoadFunction('SSL_CTX_set1_sigalgs_list',nil); {removed 1.0.0} + SSL_set1_sigalgs := LoadFunction('SSL_set1_sigalgs',nil); {removed 1.0.0} + SSL_set1_sigalgs_list := LoadFunction('SSL_set1_sigalgs_list',nil); {removed 1.0.0} + SSL_CTX_set1_client_sigalgs := LoadFunction('SSL_CTX_set1_client_sigalgs',nil); {removed 1.0.0} + SSL_CTX_set1_client_sigalgs_list := LoadFunction('SSL_CTX_set1_client_sigalgs_list',nil); {removed 1.0.0} + SSL_set1_client_sigalgs := LoadFunction('SSL_set1_client_sigalgs',nil); {removed 1.0.0} + SSL_set1_client_sigalgs_list := LoadFunction('SSL_set1_client_sigalgs_list',nil); {removed 1.0.0} + SSL_get0_certificate_types := LoadFunction('SSL_get0_certificate_types',nil); {removed 1.0.0} + SSL_CTX_set1_client_certificate_types := LoadFunction('SSL_CTX_set1_client_certificate_types',nil); {removed 1.0.0} + SSL_set1_client_certificate_types := LoadFunction('SSL_set1_client_certificate_types',nil); {removed 1.0.0} + SSL_get_signature_nid := LoadFunction('SSL_get_signature_nid',nil); {removed 1.0.0} + SSL_get_peer_signature_nid := LoadFunction('SSL_get_peer_signature_nid',nil); {removed 1.0.0} + SSL_get_peer_tmp_key := LoadFunction('SSL_get_peer_tmp_key',nil); {removed 1.0.0} + SSL_get_tmp_key := LoadFunction('SSL_get_tmp_key',nil); {removed 1.0.0} + SSL_get0_raw_cipherlist := LoadFunction('SSL_get0_raw_cipherlist',nil); {removed 1.0.0} + SSL_get0_ec_point_formats := LoadFunction('SSL_get0_ec_point_formats',nil); {removed 1.0.0} + SSL_CTX_get_options := LoadFunction('SSL_CTX_get_options',nil); {introduced 1.1.0} + SSL_get_options := LoadFunction('SSL_get_options',nil); {introduced 1.1.0} + SSL_CTX_clear_options := LoadFunction('SSL_CTX_clear_options',nil); {introduced 1.1.0} + SSL_clear_options := LoadFunction('SSL_clear_options',nil); {introduced 1.1.0} + SSL_CTX_set_options := LoadFunction('SSL_CTX_set_options',nil); {introduced 1.1.0} + SSL_set_options := LoadFunction('SSL_set_options',nil); {introduced 1.1.0} + SSL_CTX_set_stateless_cookie_generate_cb := LoadFunction('SSL_CTX_set_stateless_cookie_generate_cb',nil); {introduced 1.1.0} + SSL_CTX_set_stateless_cookie_verify_cb := LoadFunction('SSL_CTX_set_stateless_cookie_verify_cb',nil); {introduced 1.1.0} + SSL_set_psk_find_session_callback := LoadFunction('SSL_set_psk_find_session_callback',nil); {introduced 1.1.0} + SSL_CTX_set_psk_find_session_callback := LoadFunction('SSL_CTX_set_psk_find_session_callback',nil); {introduced 1.1.0} + SSL_set_psk_use_session_callback := LoadFunction('SSL_set_psk_use_session_callback',nil); {introduced 1.1.0} + SSL_CTX_set_psk_use_session_callback := LoadFunction('SSL_CTX_set_psk_use_session_callback',nil); {introduced 1.1.0} + SSL_CTX_set_keylog_callback := LoadFunction('SSL_CTX_set_keylog_callback',nil); {introduced 1.1.0} + SSL_CTX_get_keylog_callback := LoadFunction('SSL_CTX_get_keylog_callback',nil); {introduced 1.1.0} + SSL_CTX_set_max_early_data := LoadFunction('SSL_CTX_set_max_early_data',nil); {introduced 1.1.0} + SSL_CTX_get_max_early_data := LoadFunction('SSL_CTX_get_max_early_data',nil); {introduced 1.1.0} + SSL_set_max_early_data := LoadFunction('SSL_set_max_early_data',nil); {introduced 1.1.0} + SSL_get_max_early_data := LoadFunction('SSL_get_max_early_data',nil); {introduced 1.1.0} + SSL_CTX_set_recv_max_early_data := LoadFunction('SSL_CTX_set_recv_max_early_data',nil); {introduced 1.1.0} + SSL_CTX_get_recv_max_early_data := LoadFunction('SSL_CTX_get_recv_max_early_data',nil); {introduced 1.1.0} + SSL_set_recv_max_early_data := LoadFunction('SSL_set_recv_max_early_data',nil); {introduced 1.1.0} + SSL_get_recv_max_early_data := LoadFunction('SSL_get_recv_max_early_data',nil); {introduced 1.1.0} + SSL_get_app_data := LoadFunction('SSL_get_app_data',nil); {removed 1.0.0} + SSL_set_app_data := LoadFunction('SSL_set_app_data',nil); {removed 1.0.0} + SSL_in_init := LoadFunction('SSL_in_init',nil); {introduced 1.1.0} + SSL_in_before := LoadFunction('SSL_in_before',nil); {introduced 1.1.0} + SSL_is_init_finished := LoadFunction('SSL_is_init_finished',nil); {introduced 1.1.0} + SSLeay_add_ssl_algorithms := LoadFunction('SSLeay_add_ssl_algorithms',nil); {removed 1.0.0} + SSL_CTX_up_ref := LoadFunction('SSL_CTX_up_ref',nil); {introduced 1.1.0} + SSL_CTX_set1_cert_store := LoadFunction('SSL_CTX_set1_cert_store',nil); {introduced 1.1.0} + SSL_get_pending_cipher := LoadFunction('SSL_get_pending_cipher',nil); {introduced 1.1.0} + SSL_CIPHER_standard_name := LoadFunction('SSL_CIPHER_standard_name',nil); {introduced 1.1.0} + OPENSSL_cipher_name := LoadFunction('OPENSSL_cipher_name',nil); {introduced 1.1.0} + SSL_CIPHER_get_protocol_id := LoadFunction('SSL_CIPHER_get_protocol_id',nil); {introduced 1.1.0} + SSL_CIPHER_get_kx_nid := LoadFunction('SSL_CIPHER_get_kx_nid',nil); {introduced 1.1.0} + SSL_CIPHER_get_auth_nid := LoadFunction('SSL_CIPHER_get_auth_nid',nil); {introduced 1.1.0} + SSL_CIPHER_get_handshake_digest := LoadFunction('SSL_CIPHER_get_handshake_digest',nil); {introduced 1.1.0} + SSL_CIPHER_is_aead := LoadFunction('SSL_CIPHER_is_aead',nil); {introduced 1.1.0} + SSL_has_pending := LoadFunction('SSL_has_pending',nil); {introduced 1.1.0} + SSL_set0_rbio := LoadFunction('SSL_set0_rbio',nil); {introduced 1.1.0} + SSL_set0_wbio := LoadFunction('SSL_set0_wbio',nil); {introduced 1.1.0} + SSL_CTX_set_ciphersuites := LoadFunction('SSL_CTX_set_ciphersuites',nil); {introduced 1.1.0} + SSL_set_ciphersuites := LoadFunction('SSL_set_ciphersuites',nil); {introduced 1.1.0} + SSL_CTX_use_serverinfo_ex := LoadFunction('SSL_CTX_use_serverinfo_ex',nil); {introduced 1.1.0} + SSL_use_certificate_chain_file := LoadFunction('SSL_use_certificate_chain_file',nil); {introduced 1.1.0} + SSL_load_error_strings := LoadFunction('SSL_load_error_strings',nil); {removed 1.1.0} + SSL_SESSION_get_protocol_version := LoadFunction('SSL_SESSION_get_protocol_version',nil); {introduced 1.1.0} + SSL_SESSION_set_protocol_version := LoadFunction('SSL_SESSION_set_protocol_version',nil); {introduced 1.1.0} + SSL_SESSION_get0_hostname := LoadFunction('SSL_SESSION_get0_hostname',nil); {introduced 1.1.0} + SSL_SESSION_set1_hostname := LoadFunction('SSL_SESSION_set1_hostname',nil); {introduced 1.1.0} + SSL_SESSION_get0_alpn_selected := LoadFunction('SSL_SESSION_get0_alpn_selected',nil); {introduced 1.1.0} + SSL_SESSION_set1_alpn_selected := LoadFunction('SSL_SESSION_set1_alpn_selected',nil); {introduced 1.1.0} + SSL_SESSION_get0_cipher := LoadFunction('SSL_SESSION_get0_cipher',nil); {introduced 1.1.0} + SSL_SESSION_set_cipher := LoadFunction('SSL_SESSION_set_cipher',nil); {introduced 1.1.0} + SSL_SESSION_has_ticket := LoadFunction('SSL_SESSION_has_ticket',nil); {introduced 1.1.0} + SSL_SESSION_get_ticket_lifetime_hint := LoadFunction('SSL_SESSION_get_ticket_lifetime_hint',nil); {introduced 1.1.0} + SSL_SESSION_get0_ticket := LoadFunction('SSL_SESSION_get0_ticket',nil); {introduced 1.1.0} + SSL_SESSION_get_max_early_data := LoadFunction('SSL_SESSION_get_max_early_data',nil); {introduced 1.1.0} + SSL_SESSION_set_max_early_data := LoadFunction('SSL_SESSION_set_max_early_data',nil); {introduced 1.1.0} + SSL_SESSION_set1_id := LoadFunction('SSL_SESSION_set1_id',nil); {introduced 1.1.0} + SSL_SESSION_is_resumable := LoadFunction('SSL_SESSION_is_resumable',nil); {introduced 1.1.0} + SSL_SESSION_dup := LoadFunction('SSL_SESSION_dup',nil); {introduced 1.1.0} + SSL_SESSION_get0_id_context := LoadFunction('SSL_SESSION_get0_id_context',nil); {introduced 1.1.0} + SSL_SESSION_print_keylog := LoadFunction('SSL_SESSION_print_keylog',nil); {introduced 1.1.0} + SSL_SESSION_up_ref := LoadFunction('SSL_SESSION_up_ref',nil); {introduced 1.1.0} + SSL_get_peer_certificate := LoadFunction('SSL_get_peer_certificate',nil); {removed 3.0.0} + SSL_CTX_set_default_passwd_cb := LoadFunction('SSL_CTX_set_default_passwd_cb',nil); {introduced 1.1.0} + SSL_CTX_set_default_passwd_cb_userdata := LoadFunction('SSL_CTX_set_default_passwd_cb_userdata',nil); {introduced 1.1.0} + SSL_CTX_get_default_passwd_cb := LoadFunction('SSL_CTX_get_default_passwd_cb',nil); {introduced 1.1.0} + SSL_CTX_get_default_passwd_cb_userdata := LoadFunction('SSL_CTX_get_default_passwd_cb_userdata',nil); {introduced 1.1.0} + SSL_set_default_passwd_cb := LoadFunction('SSL_set_default_passwd_cb',nil); {introduced 1.1.0} + SSL_set_default_passwd_cb_userdata := LoadFunction('SSL_set_default_passwd_cb_userdata',nil); {introduced 1.1.0} + SSL_get_default_passwd_cb := LoadFunction('SSL_get_default_passwd_cb',nil); {introduced 1.1.0} + SSL_get_default_passwd_cb_userdata := LoadFunction('SSL_get_default_passwd_cb_userdata',nil); {introduced 1.1.0} + SSL_up_ref := LoadFunction('SSL_up_ref',nil); {introduced 1.1.0} + SSL_is_dtls := LoadFunction('SSL_is_dtls',nil); {introduced 1.1.0} + SSL_set1_host := LoadFunction('SSL_set1_host',nil); {introduced 1.1.0} + SSL_add1_host := LoadFunction('SSL_add1_host',nil); {introduced 1.1.0} + SSL_get0_peername := LoadFunction('SSL_get0_peername',nil); {introduced 1.1.0} + SSL_set_hostflags := LoadFunction('SSL_set_hostflags',nil); {introduced 1.1.0} + SSL_CTX_dane_enable := LoadFunction('SSL_CTX_dane_enable',nil); {introduced 1.1.0} + SSL_CTX_dane_mtype_set := LoadFunction('SSL_CTX_dane_mtype_set',nil); {introduced 1.1.0} + SSL_dane_enable := LoadFunction('SSL_dane_enable',nil); {introduced 1.1.0} + SSL_dane_tlsa_add := LoadFunction('SSL_dane_tlsa_add',nil); {introduced 1.1.0} + SSL_get0_dane_authority := LoadFunction('SSL_get0_dane_authority',nil); {introduced 1.1.0} + SSL_get0_dane_tlsa := LoadFunction('SSL_get0_dane_tlsa',nil); {introduced 1.1.0} + SSL_get0_dane := LoadFunction('SSL_get0_dane',nil); {introduced 1.1.0} + SSL_CTX_dane_set_flags := LoadFunction('SSL_CTX_dane_set_flags',nil); {introduced 1.1.0} + SSL_CTX_dane_clear_flags := LoadFunction('SSL_CTX_dane_clear_flags',nil); {introduced 1.1.0} + SSL_dane_set_flags := LoadFunction('SSL_dane_set_flags',nil); {introduced 1.1.0} + SSL_dane_clear_flags := LoadFunction('SSL_dane_clear_flags',nil); {introduced 1.1.0} + SSL_CTX_set_client_hello_cb := LoadFunction('SSL_CTX_set_client_hello_cb',nil); {introduced 1.1.0} + SSL_client_hello_isv2 := LoadFunction('SSL_client_hello_isv2',nil); {introduced 1.1.0} + SSL_client_hello_get0_legacy_version := LoadFunction('SSL_client_hello_get0_legacy_version',nil); {introduced 1.1.0} + SSL_client_hello_get0_random := LoadFunction('SSL_client_hello_get0_random',nil); {introduced 1.1.0} + SSL_client_hello_get0_session_id := LoadFunction('SSL_client_hello_get0_session_id',nil); {introduced 1.1.0} + SSL_client_hello_get0_ciphers := LoadFunction('SSL_client_hello_get0_ciphers',nil); {introduced 1.1.0} + SSL_client_hello_get0_compression_methods := LoadFunction('SSL_client_hello_get0_compression_methods',nil); {introduced 1.1.0} + SSL_client_hello_get1_extensions_present := LoadFunction('SSL_client_hello_get1_extensions_present',nil); {introduced 1.1.0} + SSL_client_hello_get0_ext := LoadFunction('SSL_client_hello_get0_ext',nil); {introduced 1.1.0} + SSL_waiting_for_async := LoadFunction('SSL_waiting_for_async',nil); {introduced 1.1.0} + SSL_get_all_async_fds := LoadFunction('SSL_get_all_async_fds',nil); {introduced 1.1.0} + SSL_get_changed_async_fds := LoadFunction('SSL_get_changed_async_fds',nil); {introduced 1.1.0} + SSL_stateless := LoadFunction('SSL_stateless',nil); {introduced 1.1.0} + SSL_read_ex := LoadFunction('SSL_read_ex',nil); {introduced 1.1.0} + SSL_read_early_data := LoadFunction('SSL_read_early_data',nil); {introduced 1.1.0} + SSL_peek_ex := LoadFunction('SSL_peek_ex',nil); {introduced 1.1.0} + SSL_write_ex := LoadFunction('SSL_write_ex',nil); {introduced 1.1.0} + SSL_write_early_data := LoadFunction('SSL_write_early_data',nil); {introduced 1.1.0} + SSL_get_early_data_status := LoadFunction('SSL_get_early_data_status',nil); {introduced 1.1.0} + TLS_method := LoadFunction('TLS_method',nil); {introduced 1.1.0} + TLS_server_method := LoadFunction('TLS_server_method',nil); {introduced 1.1.0} + TLS_client_method := LoadFunction('TLS_client_method',nil); {introduced 1.1.0} + SSL_key_update := LoadFunction('SSL_key_update',nil); {introduced 1.1.0} + SSL_get_key_update_type := LoadFunction('SSL_get_key_update_type',nil); {introduced 1.1.0} + SSL_CTX_set_post_handshake_auth := LoadFunction('SSL_CTX_set_post_handshake_auth',nil); {introduced 1.1.0} + SSL_set_post_handshake_auth := LoadFunction('SSL_set_post_handshake_auth',nil); {introduced 1.1.0} + SSL_verify_client_post_handshake := LoadFunction('SSL_verify_client_post_handshake',nil); {introduced 1.1.0} + SSL_library_init := LoadFunction('SSL_library_init',nil); {removed 1.1.0} + SSL_client_version := LoadFunction('SSL_client_version',nil); {introduced 1.1.0} + SSL_CTX_set_default_verify_dir := LoadFunction('SSL_CTX_set_default_verify_dir',nil); {introduced 1.1.0} + SSL_CTX_set_default_verify_file := LoadFunction('SSL_CTX_set_default_verify_file',nil); {introduced 1.1.0} + SSL_get_state := LoadFunction('SSL_get_state',nil); {introduced 1.1.0} + SSL_get_client_random := LoadFunction('SSL_get_client_random',nil); {introduced 1.1.0} + SSL_get_server_random := LoadFunction('SSL_get_server_random',nil); {introduced 1.1.0} + SSL_SESSION_get_master_key := LoadFunction('SSL_SESSION_get_master_key',nil); {introduced 1.1.0} + SSL_SESSION_set1_master_key := LoadFunction('SSL_SESSION_set1_master_key',nil); {introduced 1.1.0} + SSL_SESSION_get_max_fragment_length := LoadFunction('SSL_SESSION_get_max_fragment_length',nil); {introduced 1.1.0} + SSL_CTX_set_default_read_buffer_len := LoadFunction('SSL_CTX_set_default_read_buffer_len',nil); {introduced 1.1.0} + SSL_set_default_read_buffer_len := LoadFunction('SSL_set_default_read_buffer_len',nil); {introduced 1.1.0} + SSL_CIPHER_get_cipher_nid := LoadFunction('SSL_CIPHER_get_cipher_nid',nil); {introduced 1.1.0} + SSL_CIPHER_get_digest_nid := LoadFunction('SSL_CIPHER_get_digest_nid',nil); {introduced 1.1.0} + SSL_CTX_set_not_resumable_session_callback := LoadFunction('SSL_CTX_set_not_resumable_session_callback',nil); {introduced 1.1.0} + SSL_set_not_resumable_session_callback := LoadFunction('SSL_set_not_resumable_session_callback',nil); {introduced 1.1.0} + SSL_CTX_set_record_padding_callback := LoadFunction('SSL_CTX_set_record_padding_callback',nil); {introduced 1.1.0} + SSL_CTX_set_record_padding_callback_arg := LoadFunction('SSL_CTX_set_record_padding_callback_arg',nil); {introduced 1.1.0} + SSL_CTX_get_record_padding_callback_arg := LoadFunction('SSL_CTX_get_record_padding_callback_arg',nil); {introduced 1.1.0} + SSL_CTX_set_block_padding := LoadFunction('SSL_CTX_set_block_padding',nil); {introduced 1.1.0} + SSL_set_record_padding_callback := LoadFunction('SSL_set_record_padding_callback',nil); {introduced 1.1.0} + SSL_set_record_padding_callback_arg := LoadFunction('SSL_set_record_padding_callback_arg',nil); {introduced 1.1.0} + SSL_get_record_padding_callback_arg := LoadFunction('SSL_get_record_padding_callback_arg',nil); {introduced 1.1.0} + SSL_set_block_padding := LoadFunction('SSL_set_block_padding',nil); {introduced 1.1.0} + SSL_set_num_tickets := LoadFunction('SSL_set_num_tickets',nil); {introduced 1.1.0} + SSL_get_num_tickets := LoadFunction('SSL_get_num_tickets',nil); {introduced 1.1.0} + SSL_CTX_set_num_tickets := LoadFunction('SSL_CTX_set_num_tickets',nil); {introduced 1.1.0} + SSL_CTX_get_num_tickets := LoadFunction('SSL_CTX_get_num_tickets',nil); {introduced 1.1.0} + SSL_session_reused := LoadFunction('SSL_session_reused',nil); {introduced 1.1.0} + SSL_add_ssl_module := LoadFunction('SSL_add_ssl_module',nil); {introduced 1.1.0} + SSL_config := LoadFunction('SSL_config',nil); {introduced 1.1.0} + SSL_CTX_config := LoadFunction('SSL_CTX_config',nil); {introduced 1.1.0} + DTLSv1_listen := LoadFunction('DTLSv1_listen',nil); {introduced 1.1.0} + SSL_enable_ct := LoadFunction('SSL_enable_ct',nil); {introduced 1.1.0} + SSL_CTX_enable_ct := LoadFunction('SSL_CTX_enable_ct',nil); {introduced 1.1.0} + SSL_ct_is_enabled := LoadFunction('SSL_ct_is_enabled',nil); {introduced 1.1.0} + SSL_CTX_ct_is_enabled := LoadFunction('SSL_CTX_ct_is_enabled',nil); {introduced 1.1.0} + SSL_CTX_set_default_ctlog_list_file := LoadFunction('SSL_CTX_set_default_ctlog_list_file',nil); {introduced 1.1.0} + SSL_CTX_set_ctlog_list_file := LoadFunction('SSL_CTX_set_ctlog_list_file',nil); {introduced 1.1.0} + SSL_CTX_set0_ctlog_store := LoadFunction('SSL_CTX_set0_ctlog_store',nil); {introduced 1.1.0} + SSL_set_security_level := LoadFunction('SSL_set_security_level',nil); {introduced 1.1.0} + SSL_set_security_callback := LoadFunction('SSL_set_security_callback',nil); {introduced 1.1.0} + SSL_get_security_callback := LoadFunction('SSL_get_security_callback',nil); {introduced 1.1.0} + SSL_set0_security_ex_data := LoadFunction('SSL_set0_security_ex_data',nil); {introduced 1.1.0} + SSL_get0_security_ex_data := LoadFunction('SSL_get0_security_ex_data',nil); {introduced 1.1.0} + SSL_CTX_set_security_level := LoadFunction('SSL_CTX_set_security_level',nil); {introduced 1.1.0} + SSL_CTX_get_security_level := LoadFunction('SSL_CTX_get_security_level',nil); {introduced 1.1.0} + SSL_CTX_get0_security_ex_data := LoadFunction('SSL_CTX_get0_security_ex_data',nil); {introduced 1.1.0} + SSL_CTX_set0_security_ex_data := LoadFunction('SSL_CTX_set0_security_ex_data',nil); {introduced 1.1.0} + OPENSSL_init_ssl := LoadFunction('OPENSSL_init_ssl',nil); {introduced 1.1.0} + SSL_free_buffers := LoadFunction('SSL_free_buffers',nil); {introduced 1.1.0} + SSL_alloc_buffers := LoadFunction('SSL_alloc_buffers',nil); {introduced 1.1.0} + SSL_CTX_set_session_ticket_cb := LoadFunction('SSL_CTX_set_session_ticket_cb',nil); {introduced 1.1.0} + SSL_SESSION_set1_ticket_appdata := LoadFunction('SSL_SESSION_set1_ticket_appdata',nil); {introduced 1.1.0} + SSL_SESSION_get0_ticket_appdata := LoadFunction('SSL_SESSION_get0_ticket_appdata',nil); {introduced 1.1.0} + DTLS_set_timer_cb := LoadFunction('DTLS_set_timer_cb',nil); {introduced 1.1.0} + SSL_CTX_set_allow_early_data_cb := LoadFunction('SSL_CTX_set_allow_early_data_cb',nil); {introduced 1.1.0} + SSL_set_allow_early_data_cb := LoadFunction('SSL_set_allow_early_data_cb',nil); {introduced 1.1.0} + SSLv2_method := LoadFunction('SSLv2_method',nil); {removed 1.1.0 allow_nil} // SSLv2 + SSLv2_server_method := LoadFunction('SSLv2_server_method',nil); {removed 1.1.0 allow_nil} // SSLv2 + SSLv2_client_method := LoadFunction('SSLv2_client_method',nil); {removed 1.1.0 allow_nil} // SSLv2 + SSLv3_method := LoadFunction('SSLv3_method',nil); {removed 1.1.0 allow_nil} // SSLv3 + SSLv3_server_method := LoadFunction('SSLv3_server_method',nil); {removed 1.1.0 allow_nil} // SSLv3 + SSLv3_client_method := LoadFunction('SSLv3_client_method',nil); {removed 1.1.0 allow_nil} // SSLv3 + SSLv23_method := LoadFunction('SSLv23_method',nil); {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + SSLv23_server_method := LoadFunction('SSLv23_server_method',nil); {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + SSLv23_client_method := LoadFunction('SSLv23_client_method',nil); {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + TLSv1_method := LoadFunction('TLSv1_method',nil); {removed 1.1.0 allow_nil} // TLSv1.0 + TLSv1_server_method := LoadFunction('TLSv1_server_method',nil); {removed 1.1.0 allow_nil} // TLSv1.0 + TLSv1_client_method := LoadFunction('TLSv1_client_method',nil); {removed 1.1.0 allow_nil} // TLSv1.0 + TLSv1_1_method := LoadFunction('TLSv1_1_method',nil); {removed 1.1.0 allow_nil} //TLS1.1 + TLSv1_1_server_method := LoadFunction('TLSv1_1_server_method',nil); {removed 1.1.0 allow_nil} //TLS1.1 + TLSv1_1_client_method := LoadFunction('TLSv1_1_client_method',nil); {removed 1.1.0 allow_nil} //TLS1.1 + TLSv1_2_method := LoadFunction('TLSv1_2_method',nil); {removed 1.1.0 allow_nil} // TLSv1.2 + TLSv1_2_server_method := LoadFunction('TLSv1_2_server_method',nil); {removed 1.1.0 allow_nil} // TLSv1.2 + TLSv1_2_client_method := LoadFunction('TLSv1_2_client_method',nil); {removed 1.1.0 allow_nil} // TLSv1.2 + SSL_get0_peer_certificate := LoadFunction('SSL_get0_peer_certificate',nil); {introduced 3.3.0} + SSL_get1_peer_certificate := LoadFunction('SSL_get1_peer_certificate',nil); {introduced 3.3.0} + if not assigned(SSL_CTX_set_mode) then + begin + {$if declared(SSL_CTX_set_mode_introduced)} + if LibVersion < SSL_CTX_set_mode_introduced then + {$if declared(FC_SSL_CTX_set_mode)} + SSL_CTX_set_mode := @FC_SSL_CTX_set_mode + {$else} + SSL_CTX_set_mode := @ERR_SSL_CTX_set_mode + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_mode_removed)} + if SSL_CTX_set_mode_removed <= LibVersion then + {$if declared(_SSL_CTX_set_mode)} + SSL_CTX_set_mode := @_SSL_CTX_set_mode + {$else} + {$IF declared(ERR_SSL_CTX_set_mode)} + SSL_CTX_set_mode := @ERR_SSL_CTX_set_mode + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_mode) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_mode'); + end; + + + if not assigned(SSL_CTX_clear_mode) then + begin + {$if declared(SSL_CTX_clear_mode_introduced)} + if LibVersion < SSL_CTX_clear_mode_introduced then + {$if declared(FC_SSL_CTX_clear_mode)} + SSL_CTX_clear_mode := @FC_SSL_CTX_clear_mode + {$else} + SSL_CTX_clear_mode := @ERR_SSL_CTX_clear_mode + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_clear_mode_removed)} + if SSL_CTX_clear_mode_removed <= LibVersion then + {$if declared(_SSL_CTX_clear_mode)} + SSL_CTX_clear_mode := @_SSL_CTX_clear_mode + {$else} + {$IF declared(ERR_SSL_CTX_clear_mode)} + SSL_CTX_clear_mode := @ERR_SSL_CTX_clear_mode + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_clear_mode) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_clear_mode'); + end; + + + if not assigned(SSL_CTX_sess_set_cache_size) then + begin + {$if declared(SSL_CTX_sess_set_cache_size_introduced)} + if LibVersion < SSL_CTX_sess_set_cache_size_introduced then + {$if declared(FC_SSL_CTX_sess_set_cache_size)} + SSL_CTX_sess_set_cache_size := @FC_SSL_CTX_sess_set_cache_size + {$else} + SSL_CTX_sess_set_cache_size := @ERR_SSL_CTX_sess_set_cache_size + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_sess_set_cache_size_removed)} + if SSL_CTX_sess_set_cache_size_removed <= LibVersion then + {$if declared(_SSL_CTX_sess_set_cache_size)} + SSL_CTX_sess_set_cache_size := @_SSL_CTX_sess_set_cache_size + {$else} + {$IF declared(ERR_SSL_CTX_sess_set_cache_size)} + SSL_CTX_sess_set_cache_size := @ERR_SSL_CTX_sess_set_cache_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_sess_set_cache_size) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_sess_set_cache_size'); + end; + + + if not assigned(SSL_CTX_sess_get_cache_size) then + begin + {$if declared(SSL_CTX_sess_get_cache_size_introduced)} + if LibVersion < SSL_CTX_sess_get_cache_size_introduced then + {$if declared(FC_SSL_CTX_sess_get_cache_size)} + SSL_CTX_sess_get_cache_size := @FC_SSL_CTX_sess_get_cache_size + {$else} + SSL_CTX_sess_get_cache_size := @ERR_SSL_CTX_sess_get_cache_size + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_sess_get_cache_size_removed)} + if SSL_CTX_sess_get_cache_size_removed <= LibVersion then + {$if declared(_SSL_CTX_sess_get_cache_size)} + SSL_CTX_sess_get_cache_size := @_SSL_CTX_sess_get_cache_size + {$else} + {$IF declared(ERR_SSL_CTX_sess_get_cache_size)} + SSL_CTX_sess_get_cache_size := @ERR_SSL_CTX_sess_get_cache_size + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_sess_get_cache_size) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_sess_get_cache_size'); + end; + + + if not assigned(SSL_CTX_set_session_cache_mode) then + begin + {$if declared(SSL_CTX_set_session_cache_mode_introduced)} + if LibVersion < SSL_CTX_set_session_cache_mode_introduced then + {$if declared(FC_SSL_CTX_set_session_cache_mode)} + SSL_CTX_set_session_cache_mode := @FC_SSL_CTX_set_session_cache_mode + {$else} + SSL_CTX_set_session_cache_mode := @ERR_SSL_CTX_set_session_cache_mode + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_session_cache_mode_removed)} + if SSL_CTX_set_session_cache_mode_removed <= LibVersion then + {$if declared(_SSL_CTX_set_session_cache_mode)} + SSL_CTX_set_session_cache_mode := @_SSL_CTX_set_session_cache_mode + {$else} + {$IF declared(ERR_SSL_CTX_set_session_cache_mode)} + SSL_CTX_set_session_cache_mode := @ERR_SSL_CTX_set_session_cache_mode + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_session_cache_mode) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_session_cache_mode'); + end; + + + if not assigned(SSL_CTX_get_session_cache_mode) then + begin + {$if declared(SSL_CTX_get_session_cache_mode_introduced)} + if LibVersion < SSL_CTX_get_session_cache_mode_introduced then + {$if declared(FC_SSL_CTX_get_session_cache_mode)} + SSL_CTX_get_session_cache_mode := @FC_SSL_CTX_get_session_cache_mode + {$else} + SSL_CTX_get_session_cache_mode := @ERR_SSL_CTX_get_session_cache_mode + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_session_cache_mode_removed)} + if SSL_CTX_get_session_cache_mode_removed <= LibVersion then + {$if declared(_SSL_CTX_get_session_cache_mode)} + SSL_CTX_get_session_cache_mode := @_SSL_CTX_get_session_cache_mode + {$else} + {$IF declared(ERR_SSL_CTX_get_session_cache_mode)} + SSL_CTX_get_session_cache_mode := @ERR_SSL_CTX_get_session_cache_mode + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_session_cache_mode) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_session_cache_mode'); + end; + + + if not assigned(SSL_clear_num_renegotiations) then + begin + {$if declared(SSL_clear_num_renegotiations_introduced)} + if LibVersion < SSL_clear_num_renegotiations_introduced then + {$if declared(FC_SSL_clear_num_renegotiations)} + SSL_clear_num_renegotiations := @FC_SSL_clear_num_renegotiations + {$else} + SSL_clear_num_renegotiations := @ERR_SSL_clear_num_renegotiations + {$ifend} + else + {$ifend} + {$if declared(SSL_clear_num_renegotiations_removed)} + if SSL_clear_num_renegotiations_removed <= LibVersion then + {$if declared(_SSL_clear_num_renegotiations)} + SSL_clear_num_renegotiations := @_SSL_clear_num_renegotiations + {$else} + {$IF declared(ERR_SSL_clear_num_renegotiations)} + SSL_clear_num_renegotiations := @ERR_SSL_clear_num_renegotiations + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_clear_num_renegotiations) and Assigned(AFailed) then + AFailed.Add('SSL_clear_num_renegotiations'); + end; + + + if not assigned(SSL_total_renegotiations) then + begin + {$if declared(SSL_total_renegotiations_introduced)} + if LibVersion < SSL_total_renegotiations_introduced then + {$if declared(FC_SSL_total_renegotiations)} + SSL_total_renegotiations := @FC_SSL_total_renegotiations + {$else} + SSL_total_renegotiations := @ERR_SSL_total_renegotiations + {$ifend} + else + {$ifend} + {$if declared(SSL_total_renegotiations_removed)} + if SSL_total_renegotiations_removed <= LibVersion then + {$if declared(_SSL_total_renegotiations)} + SSL_total_renegotiations := @_SSL_total_renegotiations + {$else} + {$IF declared(ERR_SSL_total_renegotiations)} + SSL_total_renegotiations := @ERR_SSL_total_renegotiations + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_total_renegotiations) and Assigned(AFailed) then + AFailed.Add('SSL_total_renegotiations'); + end; + + + if not assigned(SSL_CTX_set_tmp_dh) then + begin + {$if declared(SSL_CTX_set_tmp_dh_introduced)} + if LibVersion < SSL_CTX_set_tmp_dh_introduced then + {$if declared(FC_SSL_CTX_set_tmp_dh)} + SSL_CTX_set_tmp_dh := @FC_SSL_CTX_set_tmp_dh + {$else} + SSL_CTX_set_tmp_dh := @ERR_SSL_CTX_set_tmp_dh + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_tmp_dh_removed)} + if SSL_CTX_set_tmp_dh_removed <= LibVersion then + {$if declared(_SSL_CTX_set_tmp_dh)} + SSL_CTX_set_tmp_dh := @_SSL_CTX_set_tmp_dh + {$else} + {$IF declared(ERR_SSL_CTX_set_tmp_dh)} + SSL_CTX_set_tmp_dh := @ERR_SSL_CTX_set_tmp_dh + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_tmp_dh) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_tmp_dh'); + end; + + + if not assigned(SSL_CTX_set_tmp_ecdh) then + begin + {$if declared(SSL_CTX_set_tmp_ecdh_introduced)} + if LibVersion < SSL_CTX_set_tmp_ecdh_introduced then + {$if declared(FC_SSL_CTX_set_tmp_ecdh)} + SSL_CTX_set_tmp_ecdh := @FC_SSL_CTX_set_tmp_ecdh + {$else} + SSL_CTX_set_tmp_ecdh := @ERR_SSL_CTX_set_tmp_ecdh + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_tmp_ecdh_removed)} + if SSL_CTX_set_tmp_ecdh_removed <= LibVersion then + {$if declared(_SSL_CTX_set_tmp_ecdh)} + SSL_CTX_set_tmp_ecdh := @_SSL_CTX_set_tmp_ecdh + {$else} + {$IF declared(ERR_SSL_CTX_set_tmp_ecdh)} + SSL_CTX_set_tmp_ecdh := @ERR_SSL_CTX_set_tmp_ecdh + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_tmp_ecdh) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_tmp_ecdh'); + end; + + + if not assigned(SSL_CTX_set_dh_auto) then + begin + {$if declared(SSL_CTX_set_dh_auto_introduced)} + if LibVersion < SSL_CTX_set_dh_auto_introduced then + {$if declared(FC_SSL_CTX_set_dh_auto)} + SSL_CTX_set_dh_auto := @FC_SSL_CTX_set_dh_auto + {$else} + SSL_CTX_set_dh_auto := @ERR_SSL_CTX_set_dh_auto + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_dh_auto_removed)} + if SSL_CTX_set_dh_auto_removed <= LibVersion then + {$if declared(_SSL_CTX_set_dh_auto)} + SSL_CTX_set_dh_auto := @_SSL_CTX_set_dh_auto + {$else} + {$IF declared(ERR_SSL_CTX_set_dh_auto)} + SSL_CTX_set_dh_auto := @ERR_SSL_CTX_set_dh_auto + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_dh_auto) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_dh_auto'); + end; + + + if not assigned(SSL_set_dh_auto) then + begin + {$if declared(SSL_set_dh_auto_introduced)} + if LibVersion < SSL_set_dh_auto_introduced then + {$if declared(FC_SSL_set_dh_auto)} + SSL_set_dh_auto := @FC_SSL_set_dh_auto + {$else} + SSL_set_dh_auto := @ERR_SSL_set_dh_auto + {$ifend} + else + {$ifend} + {$if declared(SSL_set_dh_auto_removed)} + if SSL_set_dh_auto_removed <= LibVersion then + {$if declared(_SSL_set_dh_auto)} + SSL_set_dh_auto := @_SSL_set_dh_auto + {$else} + {$IF declared(ERR_SSL_set_dh_auto)} + SSL_set_dh_auto := @ERR_SSL_set_dh_auto + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_dh_auto) and Assigned(AFailed) then + AFailed.Add('SSL_set_dh_auto'); + end; + + + if not assigned(SSL_set_tmp_dh) then + begin + {$if declared(SSL_set_tmp_dh_introduced)} + if LibVersion < SSL_set_tmp_dh_introduced then + {$if declared(FC_SSL_set_tmp_dh)} + SSL_set_tmp_dh := @FC_SSL_set_tmp_dh + {$else} + SSL_set_tmp_dh := @ERR_SSL_set_tmp_dh + {$ifend} + else + {$ifend} + {$if declared(SSL_set_tmp_dh_removed)} + if SSL_set_tmp_dh_removed <= LibVersion then + {$if declared(_SSL_set_tmp_dh)} + SSL_set_tmp_dh := @_SSL_set_tmp_dh + {$else} + {$IF declared(ERR_SSL_set_tmp_dh)} + SSL_set_tmp_dh := @ERR_SSL_set_tmp_dh + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_tmp_dh) and Assigned(AFailed) then + AFailed.Add('SSL_set_tmp_dh'); + end; + + + if not assigned(SSL_set_tmp_ecdh) then + begin + {$if declared(SSL_set_tmp_ecdh_introduced)} + if LibVersion < SSL_set_tmp_ecdh_introduced then + {$if declared(FC_SSL_set_tmp_ecdh)} + SSL_set_tmp_ecdh := @FC_SSL_set_tmp_ecdh + {$else} + SSL_set_tmp_ecdh := @ERR_SSL_set_tmp_ecdh + {$ifend} + else + {$ifend} + {$if declared(SSL_set_tmp_ecdh_removed)} + if SSL_set_tmp_ecdh_removed <= LibVersion then + {$if declared(_SSL_set_tmp_ecdh)} + SSL_set_tmp_ecdh := @_SSL_set_tmp_ecdh + {$else} + {$IF declared(ERR_SSL_set_tmp_ecdh)} + SSL_set_tmp_ecdh := @ERR_SSL_set_tmp_ecdh + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_tmp_ecdh) and Assigned(AFailed) then + AFailed.Add('SSL_set_tmp_ecdh'); + end; + + + if not assigned(SSL_CTX_add_extra_chain_cert) then + begin + {$if declared(SSL_CTX_add_extra_chain_cert_introduced)} + if LibVersion < SSL_CTX_add_extra_chain_cert_introduced then + {$if declared(FC_SSL_CTX_add_extra_chain_cert)} + SSL_CTX_add_extra_chain_cert := @FC_SSL_CTX_add_extra_chain_cert + {$else} + SSL_CTX_add_extra_chain_cert := @ERR_SSL_CTX_add_extra_chain_cert + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_add_extra_chain_cert_removed)} + if SSL_CTX_add_extra_chain_cert_removed <= LibVersion then + {$if declared(_SSL_CTX_add_extra_chain_cert)} + SSL_CTX_add_extra_chain_cert := @_SSL_CTX_add_extra_chain_cert + {$else} + {$IF declared(ERR_SSL_CTX_add_extra_chain_cert)} + SSL_CTX_add_extra_chain_cert := @ERR_SSL_CTX_add_extra_chain_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_add_extra_chain_cert) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_add_extra_chain_cert'); + end; + + + if not assigned(SSL_CTX_get_extra_chain_certs) then + begin + {$if declared(SSL_CTX_get_extra_chain_certs_introduced)} + if LibVersion < SSL_CTX_get_extra_chain_certs_introduced then + {$if declared(FC_SSL_CTX_get_extra_chain_certs)} + SSL_CTX_get_extra_chain_certs := @FC_SSL_CTX_get_extra_chain_certs + {$else} + SSL_CTX_get_extra_chain_certs := @ERR_SSL_CTX_get_extra_chain_certs + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_extra_chain_certs_removed)} + if SSL_CTX_get_extra_chain_certs_removed <= LibVersion then + {$if declared(_SSL_CTX_get_extra_chain_certs)} + SSL_CTX_get_extra_chain_certs := @_SSL_CTX_get_extra_chain_certs + {$else} + {$IF declared(ERR_SSL_CTX_get_extra_chain_certs)} + SSL_CTX_get_extra_chain_certs := @ERR_SSL_CTX_get_extra_chain_certs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_extra_chain_certs) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_extra_chain_certs'); + end; + + + if not assigned(SSL_CTX_get_extra_chain_certs_only) then + begin + {$if declared(SSL_CTX_get_extra_chain_certs_only_introduced)} + if LibVersion < SSL_CTX_get_extra_chain_certs_only_introduced then + {$if declared(FC_SSL_CTX_get_extra_chain_certs_only)} + SSL_CTX_get_extra_chain_certs_only := @FC_SSL_CTX_get_extra_chain_certs_only + {$else} + SSL_CTX_get_extra_chain_certs_only := @ERR_SSL_CTX_get_extra_chain_certs_only + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_extra_chain_certs_only_removed)} + if SSL_CTX_get_extra_chain_certs_only_removed <= LibVersion then + {$if declared(_SSL_CTX_get_extra_chain_certs_only)} + SSL_CTX_get_extra_chain_certs_only := @_SSL_CTX_get_extra_chain_certs_only + {$else} + {$IF declared(ERR_SSL_CTX_get_extra_chain_certs_only)} + SSL_CTX_get_extra_chain_certs_only := @ERR_SSL_CTX_get_extra_chain_certs_only + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_extra_chain_certs_only) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_extra_chain_certs_only'); + end; + + + if not assigned(SSL_CTX_clear_extra_chain_certs) then + begin + {$if declared(SSL_CTX_clear_extra_chain_certs_introduced)} + if LibVersion < SSL_CTX_clear_extra_chain_certs_introduced then + {$if declared(FC_SSL_CTX_clear_extra_chain_certs)} + SSL_CTX_clear_extra_chain_certs := @FC_SSL_CTX_clear_extra_chain_certs + {$else} + SSL_CTX_clear_extra_chain_certs := @ERR_SSL_CTX_clear_extra_chain_certs + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_clear_extra_chain_certs_removed)} + if SSL_CTX_clear_extra_chain_certs_removed <= LibVersion then + {$if declared(_SSL_CTX_clear_extra_chain_certs)} + SSL_CTX_clear_extra_chain_certs := @_SSL_CTX_clear_extra_chain_certs + {$else} + {$IF declared(ERR_SSL_CTX_clear_extra_chain_certs)} + SSL_CTX_clear_extra_chain_certs := @ERR_SSL_CTX_clear_extra_chain_certs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_clear_extra_chain_certs) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_clear_extra_chain_certs'); + end; + + + if not assigned(SSL_CTX_set0_chain) then + begin + {$if declared(SSL_CTX_set0_chain_introduced)} + if LibVersion < SSL_CTX_set0_chain_introduced then + {$if declared(FC_SSL_CTX_set0_chain)} + SSL_CTX_set0_chain := @FC_SSL_CTX_set0_chain + {$else} + SSL_CTX_set0_chain := @ERR_SSL_CTX_set0_chain + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set0_chain_removed)} + if SSL_CTX_set0_chain_removed <= LibVersion then + {$if declared(_SSL_CTX_set0_chain)} + SSL_CTX_set0_chain := @_SSL_CTX_set0_chain + {$else} + {$IF declared(ERR_SSL_CTX_set0_chain)} + SSL_CTX_set0_chain := @ERR_SSL_CTX_set0_chain + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set0_chain) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set0_chain'); + end; + + + if not assigned(SSL_CTX_set1_chain) then + begin + {$if declared(SSL_CTX_set1_chain_introduced)} + if LibVersion < SSL_CTX_set1_chain_introduced then + {$if declared(FC_SSL_CTX_set1_chain)} + SSL_CTX_set1_chain := @FC_SSL_CTX_set1_chain + {$else} + SSL_CTX_set1_chain := @ERR_SSL_CTX_set1_chain + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set1_chain_removed)} + if SSL_CTX_set1_chain_removed <= LibVersion then + {$if declared(_SSL_CTX_set1_chain)} + SSL_CTX_set1_chain := @_SSL_CTX_set1_chain + {$else} + {$IF declared(ERR_SSL_CTX_set1_chain)} + SSL_CTX_set1_chain := @ERR_SSL_CTX_set1_chain + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set1_chain) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set1_chain'); + end; + + + if not assigned(SSL_CTX_add0_chain_cert) then + begin + {$if declared(SSL_CTX_add0_chain_cert_introduced)} + if LibVersion < SSL_CTX_add0_chain_cert_introduced then + {$if declared(FC_SSL_CTX_add0_chain_cert)} + SSL_CTX_add0_chain_cert := @FC_SSL_CTX_add0_chain_cert + {$else} + SSL_CTX_add0_chain_cert := @ERR_SSL_CTX_add0_chain_cert + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_add0_chain_cert_removed)} + if SSL_CTX_add0_chain_cert_removed <= LibVersion then + {$if declared(_SSL_CTX_add0_chain_cert)} + SSL_CTX_add0_chain_cert := @_SSL_CTX_add0_chain_cert + {$else} + {$IF declared(ERR_SSL_CTX_add0_chain_cert)} + SSL_CTX_add0_chain_cert := @ERR_SSL_CTX_add0_chain_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_add0_chain_cert) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_add0_chain_cert'); + end; + + + if not assigned(SSL_CTX_add1_chain_cert) then + begin + {$if declared(SSL_CTX_add1_chain_cert_introduced)} + if LibVersion < SSL_CTX_add1_chain_cert_introduced then + {$if declared(FC_SSL_CTX_add1_chain_cert)} + SSL_CTX_add1_chain_cert := @FC_SSL_CTX_add1_chain_cert + {$else} + SSL_CTX_add1_chain_cert := @ERR_SSL_CTX_add1_chain_cert + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_add1_chain_cert_removed)} + if SSL_CTX_add1_chain_cert_removed <= LibVersion then + {$if declared(_SSL_CTX_add1_chain_cert)} + SSL_CTX_add1_chain_cert := @_SSL_CTX_add1_chain_cert + {$else} + {$IF declared(ERR_SSL_CTX_add1_chain_cert)} + SSL_CTX_add1_chain_cert := @ERR_SSL_CTX_add1_chain_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_add1_chain_cert) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_add1_chain_cert'); + end; + + + if not assigned(SSL_CTX_get0_chain_certs) then + begin + {$if declared(SSL_CTX_get0_chain_certs_introduced)} + if LibVersion < SSL_CTX_get0_chain_certs_introduced then + {$if declared(FC_SSL_CTX_get0_chain_certs)} + SSL_CTX_get0_chain_certs := @FC_SSL_CTX_get0_chain_certs + {$else} + SSL_CTX_get0_chain_certs := @ERR_SSL_CTX_get0_chain_certs + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get0_chain_certs_removed)} + if SSL_CTX_get0_chain_certs_removed <= LibVersion then + {$if declared(_SSL_CTX_get0_chain_certs)} + SSL_CTX_get0_chain_certs := @_SSL_CTX_get0_chain_certs + {$else} + {$IF declared(ERR_SSL_CTX_get0_chain_certs)} + SSL_CTX_get0_chain_certs := @ERR_SSL_CTX_get0_chain_certs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get0_chain_certs) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get0_chain_certs'); + end; + + + if not assigned(SSL_CTX_clear_chain_certs) then + begin + {$if declared(SSL_CTX_clear_chain_certs_introduced)} + if LibVersion < SSL_CTX_clear_chain_certs_introduced then + {$if declared(FC_SSL_CTX_clear_chain_certs)} + SSL_CTX_clear_chain_certs := @FC_SSL_CTX_clear_chain_certs + {$else} + SSL_CTX_clear_chain_certs := @ERR_SSL_CTX_clear_chain_certs + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_clear_chain_certs_removed)} + if SSL_CTX_clear_chain_certs_removed <= LibVersion then + {$if declared(_SSL_CTX_clear_chain_certs)} + SSL_CTX_clear_chain_certs := @_SSL_CTX_clear_chain_certs + {$else} + {$IF declared(ERR_SSL_CTX_clear_chain_certs)} + SSL_CTX_clear_chain_certs := @ERR_SSL_CTX_clear_chain_certs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_clear_chain_certs) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_clear_chain_certs'); + end; + + + if not assigned(SSL_CTX_build_cert_chain) then + begin + {$if declared(SSL_CTX_build_cert_chain_introduced)} + if LibVersion < SSL_CTX_build_cert_chain_introduced then + {$if declared(FC_SSL_CTX_build_cert_chain)} + SSL_CTX_build_cert_chain := @FC_SSL_CTX_build_cert_chain + {$else} + SSL_CTX_build_cert_chain := @ERR_SSL_CTX_build_cert_chain + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_build_cert_chain_removed)} + if SSL_CTX_build_cert_chain_removed <= LibVersion then + {$if declared(_SSL_CTX_build_cert_chain)} + SSL_CTX_build_cert_chain := @_SSL_CTX_build_cert_chain + {$else} + {$IF declared(ERR_SSL_CTX_build_cert_chain)} + SSL_CTX_build_cert_chain := @ERR_SSL_CTX_build_cert_chain + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_build_cert_chain) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_build_cert_chain'); + end; + + + if not assigned(SSL_CTX_select_current_cert) then + begin + {$if declared(SSL_CTX_select_current_cert_introduced)} + if LibVersion < SSL_CTX_select_current_cert_introduced then + {$if declared(FC_SSL_CTX_select_current_cert)} + SSL_CTX_select_current_cert := @FC_SSL_CTX_select_current_cert + {$else} + SSL_CTX_select_current_cert := @ERR_SSL_CTX_select_current_cert + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_select_current_cert_removed)} + if SSL_CTX_select_current_cert_removed <= LibVersion then + {$if declared(_SSL_CTX_select_current_cert)} + SSL_CTX_select_current_cert := @_SSL_CTX_select_current_cert + {$else} + {$IF declared(ERR_SSL_CTX_select_current_cert)} + SSL_CTX_select_current_cert := @ERR_SSL_CTX_select_current_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_select_current_cert) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_select_current_cert'); + end; + + + if not assigned(SSL_CTX_set_current_cert) then + begin + {$if declared(SSL_CTX_set_current_cert_introduced)} + if LibVersion < SSL_CTX_set_current_cert_introduced then + {$if declared(FC_SSL_CTX_set_current_cert)} + SSL_CTX_set_current_cert := @FC_SSL_CTX_set_current_cert + {$else} + SSL_CTX_set_current_cert := @ERR_SSL_CTX_set_current_cert + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_current_cert_removed)} + if SSL_CTX_set_current_cert_removed <= LibVersion then + {$if declared(_SSL_CTX_set_current_cert)} + SSL_CTX_set_current_cert := @_SSL_CTX_set_current_cert + {$else} + {$IF declared(ERR_SSL_CTX_set_current_cert)} + SSL_CTX_set_current_cert := @ERR_SSL_CTX_set_current_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_current_cert) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_current_cert'); + end; + + + if not assigned(SSL_CTX_set0_verify_cert_store) then + begin + {$if declared(SSL_CTX_set0_verify_cert_store_introduced)} + if LibVersion < SSL_CTX_set0_verify_cert_store_introduced then + {$if declared(FC_SSL_CTX_set0_verify_cert_store)} + SSL_CTX_set0_verify_cert_store := @FC_SSL_CTX_set0_verify_cert_store + {$else} + SSL_CTX_set0_verify_cert_store := @ERR_SSL_CTX_set0_verify_cert_store + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set0_verify_cert_store_removed)} + if SSL_CTX_set0_verify_cert_store_removed <= LibVersion then + {$if declared(_SSL_CTX_set0_verify_cert_store)} + SSL_CTX_set0_verify_cert_store := @_SSL_CTX_set0_verify_cert_store + {$else} + {$IF declared(ERR_SSL_CTX_set0_verify_cert_store)} + SSL_CTX_set0_verify_cert_store := @ERR_SSL_CTX_set0_verify_cert_store + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set0_verify_cert_store) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set0_verify_cert_store'); + end; + + + if not assigned(SSL_CTX_set1_verify_cert_store) then + begin + {$if declared(SSL_CTX_set1_verify_cert_store_introduced)} + if LibVersion < SSL_CTX_set1_verify_cert_store_introduced then + {$if declared(FC_SSL_CTX_set1_verify_cert_store)} + SSL_CTX_set1_verify_cert_store := @FC_SSL_CTX_set1_verify_cert_store + {$else} + SSL_CTX_set1_verify_cert_store := @ERR_SSL_CTX_set1_verify_cert_store + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set1_verify_cert_store_removed)} + if SSL_CTX_set1_verify_cert_store_removed <= LibVersion then + {$if declared(_SSL_CTX_set1_verify_cert_store)} + SSL_CTX_set1_verify_cert_store := @_SSL_CTX_set1_verify_cert_store + {$else} + {$IF declared(ERR_SSL_CTX_set1_verify_cert_store)} + SSL_CTX_set1_verify_cert_store := @ERR_SSL_CTX_set1_verify_cert_store + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set1_verify_cert_store) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set1_verify_cert_store'); + end; + + + if not assigned(SSL_CTX_set0_chain_cert_store) then + begin + {$if declared(SSL_CTX_set0_chain_cert_store_introduced)} + if LibVersion < SSL_CTX_set0_chain_cert_store_introduced then + {$if declared(FC_SSL_CTX_set0_chain_cert_store)} + SSL_CTX_set0_chain_cert_store := @FC_SSL_CTX_set0_chain_cert_store + {$else} + SSL_CTX_set0_chain_cert_store := @ERR_SSL_CTX_set0_chain_cert_store + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set0_chain_cert_store_removed)} + if SSL_CTX_set0_chain_cert_store_removed <= LibVersion then + {$if declared(_SSL_CTX_set0_chain_cert_store)} + SSL_CTX_set0_chain_cert_store := @_SSL_CTX_set0_chain_cert_store + {$else} + {$IF declared(ERR_SSL_CTX_set0_chain_cert_store)} + SSL_CTX_set0_chain_cert_store := @ERR_SSL_CTX_set0_chain_cert_store + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set0_chain_cert_store) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set0_chain_cert_store'); + end; + + + if not assigned(SSL_CTX_set1_chain_cert_store) then + begin + {$if declared(SSL_CTX_set1_chain_cert_store_introduced)} + if LibVersion < SSL_CTX_set1_chain_cert_store_introduced then + {$if declared(FC_SSL_CTX_set1_chain_cert_store)} + SSL_CTX_set1_chain_cert_store := @FC_SSL_CTX_set1_chain_cert_store + {$else} + SSL_CTX_set1_chain_cert_store := @ERR_SSL_CTX_set1_chain_cert_store + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set1_chain_cert_store_removed)} + if SSL_CTX_set1_chain_cert_store_removed <= LibVersion then + {$if declared(_SSL_CTX_set1_chain_cert_store)} + SSL_CTX_set1_chain_cert_store := @_SSL_CTX_set1_chain_cert_store + {$else} + {$IF declared(ERR_SSL_CTX_set1_chain_cert_store)} + SSL_CTX_set1_chain_cert_store := @ERR_SSL_CTX_set1_chain_cert_store + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set1_chain_cert_store) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set1_chain_cert_store'); + end; + + + if not assigned(SSL_set0_chain) then + begin + {$if declared(SSL_set0_chain_introduced)} + if LibVersion < SSL_set0_chain_introduced then + {$if declared(FC_SSL_set0_chain)} + SSL_set0_chain := @FC_SSL_set0_chain + {$else} + SSL_set0_chain := @ERR_SSL_set0_chain + {$ifend} + else + {$ifend} + {$if declared(SSL_set0_chain_removed)} + if SSL_set0_chain_removed <= LibVersion then + {$if declared(_SSL_set0_chain)} + SSL_set0_chain := @_SSL_set0_chain + {$else} + {$IF declared(ERR_SSL_set0_chain)} + SSL_set0_chain := @ERR_SSL_set0_chain + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set0_chain) and Assigned(AFailed) then + AFailed.Add('SSL_set0_chain'); + end; + + + if not assigned(SSL_set1_chain) then + begin + {$if declared(SSL_set1_chain_introduced)} + if LibVersion < SSL_set1_chain_introduced then + {$if declared(FC_SSL_set1_chain)} + SSL_set1_chain := @FC_SSL_set1_chain + {$else} + SSL_set1_chain := @ERR_SSL_set1_chain + {$ifend} + else + {$ifend} + {$if declared(SSL_set1_chain_removed)} + if SSL_set1_chain_removed <= LibVersion then + {$if declared(_SSL_set1_chain)} + SSL_set1_chain := @_SSL_set1_chain + {$else} + {$IF declared(ERR_SSL_set1_chain)} + SSL_set1_chain := @ERR_SSL_set1_chain + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set1_chain) and Assigned(AFailed) then + AFailed.Add('SSL_set1_chain'); + end; + + + if not assigned(SSL_add0_chain_cert) then + begin + {$if declared(SSL_add0_chain_cert_introduced)} + if LibVersion < SSL_add0_chain_cert_introduced then + {$if declared(FC_SSL_add0_chain_cert)} + SSL_add0_chain_cert := @FC_SSL_add0_chain_cert + {$else} + SSL_add0_chain_cert := @ERR_SSL_add0_chain_cert + {$ifend} + else + {$ifend} + {$if declared(SSL_add0_chain_cert_removed)} + if SSL_add0_chain_cert_removed <= LibVersion then + {$if declared(_SSL_add0_chain_cert)} + SSL_add0_chain_cert := @_SSL_add0_chain_cert + {$else} + {$IF declared(ERR_SSL_add0_chain_cert)} + SSL_add0_chain_cert := @ERR_SSL_add0_chain_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_add0_chain_cert) and Assigned(AFailed) then + AFailed.Add('SSL_add0_chain_cert'); + end; + + + if not assigned(SSL_add1_chain_cert) then + begin + {$if declared(SSL_add1_chain_cert_introduced)} + if LibVersion < SSL_add1_chain_cert_introduced then + {$if declared(FC_SSL_add1_chain_cert)} + SSL_add1_chain_cert := @FC_SSL_add1_chain_cert + {$else} + SSL_add1_chain_cert := @ERR_SSL_add1_chain_cert + {$ifend} + else + {$ifend} + {$if declared(SSL_add1_chain_cert_removed)} + if SSL_add1_chain_cert_removed <= LibVersion then + {$if declared(_SSL_add1_chain_cert)} + SSL_add1_chain_cert := @_SSL_add1_chain_cert + {$else} + {$IF declared(ERR_SSL_add1_chain_cert)} + SSL_add1_chain_cert := @ERR_SSL_add1_chain_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_add1_chain_cert) and Assigned(AFailed) then + AFailed.Add('SSL_add1_chain_cert'); + end; + + + if not assigned(SSL_get0_chain_certs) then + begin + {$if declared(SSL_get0_chain_certs_introduced)} + if LibVersion < SSL_get0_chain_certs_introduced then + {$if declared(FC_SSL_get0_chain_certs)} + SSL_get0_chain_certs := @FC_SSL_get0_chain_certs + {$else} + SSL_get0_chain_certs := @ERR_SSL_get0_chain_certs + {$ifend} + else + {$ifend} + {$if declared(SSL_get0_chain_certs_removed)} + if SSL_get0_chain_certs_removed <= LibVersion then + {$if declared(_SSL_get0_chain_certs)} + SSL_get0_chain_certs := @_SSL_get0_chain_certs + {$else} + {$IF declared(ERR_SSL_get0_chain_certs)} + SSL_get0_chain_certs := @ERR_SSL_get0_chain_certs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get0_chain_certs) and Assigned(AFailed) then + AFailed.Add('SSL_get0_chain_certs'); + end; + + + if not assigned(SSL_clear_chain_certs) then + begin + {$if declared(SSL_clear_chain_certs_introduced)} + if LibVersion < SSL_clear_chain_certs_introduced then + {$if declared(FC_SSL_clear_chain_certs)} + SSL_clear_chain_certs := @FC_SSL_clear_chain_certs + {$else} + SSL_clear_chain_certs := @ERR_SSL_clear_chain_certs + {$ifend} + else + {$ifend} + {$if declared(SSL_clear_chain_certs_removed)} + if SSL_clear_chain_certs_removed <= LibVersion then + {$if declared(_SSL_clear_chain_certs)} + SSL_clear_chain_certs := @_SSL_clear_chain_certs + {$else} + {$IF declared(ERR_SSL_clear_chain_certs)} + SSL_clear_chain_certs := @ERR_SSL_clear_chain_certs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_clear_chain_certs) and Assigned(AFailed) then + AFailed.Add('SSL_clear_chain_certs'); + end; + + + if not assigned(SSL_build_cert_chain) then + begin + {$if declared(SSL_build_cert_chain_introduced)} + if LibVersion < SSL_build_cert_chain_introduced then + {$if declared(FC_SSL_build_cert_chain)} + SSL_build_cert_chain := @FC_SSL_build_cert_chain + {$else} + SSL_build_cert_chain := @ERR_SSL_build_cert_chain + {$ifend} + else + {$ifend} + {$if declared(SSL_build_cert_chain_removed)} + if SSL_build_cert_chain_removed <= LibVersion then + {$if declared(_SSL_build_cert_chain)} + SSL_build_cert_chain := @_SSL_build_cert_chain + {$else} + {$IF declared(ERR_SSL_build_cert_chain)} + SSL_build_cert_chain := @ERR_SSL_build_cert_chain + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_build_cert_chain) and Assigned(AFailed) then + AFailed.Add('SSL_build_cert_chain'); + end; + + + if not assigned(SSL_select_current_cert) then + begin + {$if declared(SSL_select_current_cert_introduced)} + if LibVersion < SSL_select_current_cert_introduced then + {$if declared(FC_SSL_select_current_cert)} + SSL_select_current_cert := @FC_SSL_select_current_cert + {$else} + SSL_select_current_cert := @ERR_SSL_select_current_cert + {$ifend} + else + {$ifend} + {$if declared(SSL_select_current_cert_removed)} + if SSL_select_current_cert_removed <= LibVersion then + {$if declared(_SSL_select_current_cert)} + SSL_select_current_cert := @_SSL_select_current_cert + {$else} + {$IF declared(ERR_SSL_select_current_cert)} + SSL_select_current_cert := @ERR_SSL_select_current_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_select_current_cert) and Assigned(AFailed) then + AFailed.Add('SSL_select_current_cert'); + end; + + + if not assigned(SSL_set_current_cert) then + begin + {$if declared(SSL_set_current_cert_introduced)} + if LibVersion < SSL_set_current_cert_introduced then + {$if declared(FC_SSL_set_current_cert)} + SSL_set_current_cert := @FC_SSL_set_current_cert + {$else} + SSL_set_current_cert := @ERR_SSL_set_current_cert + {$ifend} + else + {$ifend} + {$if declared(SSL_set_current_cert_removed)} + if SSL_set_current_cert_removed <= LibVersion then + {$if declared(_SSL_set_current_cert)} + SSL_set_current_cert := @_SSL_set_current_cert + {$else} + {$IF declared(ERR_SSL_set_current_cert)} + SSL_set_current_cert := @ERR_SSL_set_current_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_current_cert) and Assigned(AFailed) then + AFailed.Add('SSL_set_current_cert'); + end; + + + if not assigned(SSL_set0_verify_cert_store) then + begin + {$if declared(SSL_set0_verify_cert_store_introduced)} + if LibVersion < SSL_set0_verify_cert_store_introduced then + {$if declared(FC_SSL_set0_verify_cert_store)} + SSL_set0_verify_cert_store := @FC_SSL_set0_verify_cert_store + {$else} + SSL_set0_verify_cert_store := @ERR_SSL_set0_verify_cert_store + {$ifend} + else + {$ifend} + {$if declared(SSL_set0_verify_cert_store_removed)} + if SSL_set0_verify_cert_store_removed <= LibVersion then + {$if declared(_SSL_set0_verify_cert_store)} + SSL_set0_verify_cert_store := @_SSL_set0_verify_cert_store + {$else} + {$IF declared(ERR_SSL_set0_verify_cert_store)} + SSL_set0_verify_cert_store := @ERR_SSL_set0_verify_cert_store + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set0_verify_cert_store) and Assigned(AFailed) then + AFailed.Add('SSL_set0_verify_cert_store'); + end; + + + if not assigned(SSL_set1_verify_cert_store) then + begin + {$if declared(SSL_set1_verify_cert_store_introduced)} + if LibVersion < SSL_set1_verify_cert_store_introduced then + {$if declared(FC_SSL_set1_verify_cert_store)} + SSL_set1_verify_cert_store := @FC_SSL_set1_verify_cert_store + {$else} + SSL_set1_verify_cert_store := @ERR_SSL_set1_verify_cert_store + {$ifend} + else + {$ifend} + {$if declared(SSL_set1_verify_cert_store_removed)} + if SSL_set1_verify_cert_store_removed <= LibVersion then + {$if declared(_SSL_set1_verify_cert_store)} + SSL_set1_verify_cert_store := @_SSL_set1_verify_cert_store + {$else} + {$IF declared(ERR_SSL_set1_verify_cert_store)} + SSL_set1_verify_cert_store := @ERR_SSL_set1_verify_cert_store + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set1_verify_cert_store) and Assigned(AFailed) then + AFailed.Add('SSL_set1_verify_cert_store'); + end; + + + if not assigned(SSL_set0_chain_cert_store) then + begin + {$if declared(SSL_set0_chain_cert_store_introduced)} + if LibVersion < SSL_set0_chain_cert_store_introduced then + {$if declared(FC_SSL_set0_chain_cert_store)} + SSL_set0_chain_cert_store := @FC_SSL_set0_chain_cert_store + {$else} + SSL_set0_chain_cert_store := @ERR_SSL_set0_chain_cert_store + {$ifend} + else + {$ifend} + {$if declared(SSL_set0_chain_cert_store_removed)} + if SSL_set0_chain_cert_store_removed <= LibVersion then + {$if declared(_SSL_set0_chain_cert_store)} + SSL_set0_chain_cert_store := @_SSL_set0_chain_cert_store + {$else} + {$IF declared(ERR_SSL_set0_chain_cert_store)} + SSL_set0_chain_cert_store := @ERR_SSL_set0_chain_cert_store + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set0_chain_cert_store) and Assigned(AFailed) then + AFailed.Add('SSL_set0_chain_cert_store'); + end; + + + if not assigned(SSL_set1_chain_cert_store) then + begin + {$if declared(SSL_set1_chain_cert_store_introduced)} + if LibVersion < SSL_set1_chain_cert_store_introduced then + {$if declared(FC_SSL_set1_chain_cert_store)} + SSL_set1_chain_cert_store := @FC_SSL_set1_chain_cert_store + {$else} + SSL_set1_chain_cert_store := @ERR_SSL_set1_chain_cert_store + {$ifend} + else + {$ifend} + {$if declared(SSL_set1_chain_cert_store_removed)} + if SSL_set1_chain_cert_store_removed <= LibVersion then + {$if declared(_SSL_set1_chain_cert_store)} + SSL_set1_chain_cert_store := @_SSL_set1_chain_cert_store + {$else} + {$IF declared(ERR_SSL_set1_chain_cert_store)} + SSL_set1_chain_cert_store := @ERR_SSL_set1_chain_cert_store + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set1_chain_cert_store) and Assigned(AFailed) then + AFailed.Add('SSL_set1_chain_cert_store'); + end; + + + if not assigned(SSL_get1_groups) then + begin + {$if declared(SSL_get1_groups_introduced)} + if LibVersion < SSL_get1_groups_introduced then + {$if declared(FC_SSL_get1_groups)} + SSL_get1_groups := @FC_SSL_get1_groups + {$else} + SSL_get1_groups := @ERR_SSL_get1_groups + {$ifend} + else + {$ifend} + {$if declared(SSL_get1_groups_removed)} + if SSL_get1_groups_removed <= LibVersion then + {$if declared(_SSL_get1_groups)} + SSL_get1_groups := @_SSL_get1_groups + {$else} + {$IF declared(ERR_SSL_get1_groups)} + SSL_get1_groups := @ERR_SSL_get1_groups + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get1_groups) and Assigned(AFailed) then + AFailed.Add('SSL_get1_groups'); + end; + + + if not assigned(SSL_CTX_set1_groups) then + begin + {$if declared(SSL_CTX_set1_groups_introduced)} + if LibVersion < SSL_CTX_set1_groups_introduced then + {$if declared(FC_SSL_CTX_set1_groups)} + SSL_CTX_set1_groups := @FC_SSL_CTX_set1_groups + {$else} + SSL_CTX_set1_groups := @ERR_SSL_CTX_set1_groups + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set1_groups_removed)} + if SSL_CTX_set1_groups_removed <= LibVersion then + {$if declared(_SSL_CTX_set1_groups)} + SSL_CTX_set1_groups := @_SSL_CTX_set1_groups + {$else} + {$IF declared(ERR_SSL_CTX_set1_groups)} + SSL_CTX_set1_groups := @ERR_SSL_CTX_set1_groups + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set1_groups) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set1_groups'); + end; + + + if not assigned(SSL_CTX_set1_groups_list) then + begin + {$if declared(SSL_CTX_set1_groups_list_introduced)} + if LibVersion < SSL_CTX_set1_groups_list_introduced then + {$if declared(FC_SSL_CTX_set1_groups_list)} + SSL_CTX_set1_groups_list := @FC_SSL_CTX_set1_groups_list + {$else} + SSL_CTX_set1_groups_list := @ERR_SSL_CTX_set1_groups_list + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set1_groups_list_removed)} + if SSL_CTX_set1_groups_list_removed <= LibVersion then + {$if declared(_SSL_CTX_set1_groups_list)} + SSL_CTX_set1_groups_list := @_SSL_CTX_set1_groups_list + {$else} + {$IF declared(ERR_SSL_CTX_set1_groups_list)} + SSL_CTX_set1_groups_list := @ERR_SSL_CTX_set1_groups_list + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set1_groups_list) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set1_groups_list'); + end; + + + if not assigned(SSL_set1_groups) then + begin + {$if declared(SSL_set1_groups_introduced)} + if LibVersion < SSL_set1_groups_introduced then + {$if declared(FC_SSL_set1_groups)} + SSL_set1_groups := @FC_SSL_set1_groups + {$else} + SSL_set1_groups := @ERR_SSL_set1_groups + {$ifend} + else + {$ifend} + {$if declared(SSL_set1_groups_removed)} + if SSL_set1_groups_removed <= LibVersion then + {$if declared(_SSL_set1_groups)} + SSL_set1_groups := @_SSL_set1_groups + {$else} + {$IF declared(ERR_SSL_set1_groups)} + SSL_set1_groups := @ERR_SSL_set1_groups + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set1_groups) and Assigned(AFailed) then + AFailed.Add('SSL_set1_groups'); + end; + + + if not assigned(SSL_set1_groups_list) then + begin + {$if declared(SSL_set1_groups_list_introduced)} + if LibVersion < SSL_set1_groups_list_introduced then + {$if declared(FC_SSL_set1_groups_list)} + SSL_set1_groups_list := @FC_SSL_set1_groups_list + {$else} + SSL_set1_groups_list := @ERR_SSL_set1_groups_list + {$ifend} + else + {$ifend} + {$if declared(SSL_set1_groups_list_removed)} + if SSL_set1_groups_list_removed <= LibVersion then + {$if declared(_SSL_set1_groups_list)} + SSL_set1_groups_list := @_SSL_set1_groups_list + {$else} + {$IF declared(ERR_SSL_set1_groups_list)} + SSL_set1_groups_list := @ERR_SSL_set1_groups_list + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set1_groups_list) and Assigned(AFailed) then + AFailed.Add('SSL_set1_groups_list'); + end; + + + if not assigned(SSL_get_shared_group) then + begin + {$if declared(SSL_get_shared_group_introduced)} + if LibVersion < SSL_get_shared_group_introduced then + {$if declared(FC_SSL_get_shared_group)} + SSL_get_shared_group := @FC_SSL_get_shared_group + {$else} + SSL_get_shared_group := @ERR_SSL_get_shared_group + {$ifend} + else + {$ifend} + {$if declared(SSL_get_shared_group_removed)} + if SSL_get_shared_group_removed <= LibVersion then + {$if declared(_SSL_get_shared_group)} + SSL_get_shared_group := @_SSL_get_shared_group + {$else} + {$IF declared(ERR_SSL_get_shared_group)} + SSL_get_shared_group := @ERR_SSL_get_shared_group + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_shared_group) and Assigned(AFailed) then + AFailed.Add('SSL_get_shared_group'); + end; + + + if not assigned(SSL_CTX_set1_sigalgs) then + begin + {$if declared(SSL_CTX_set1_sigalgs_introduced)} + if LibVersion < SSL_CTX_set1_sigalgs_introduced then + {$if declared(FC_SSL_CTX_set1_sigalgs)} + SSL_CTX_set1_sigalgs := @FC_SSL_CTX_set1_sigalgs + {$else} + SSL_CTX_set1_sigalgs := @ERR_SSL_CTX_set1_sigalgs + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set1_sigalgs_removed)} + if SSL_CTX_set1_sigalgs_removed <= LibVersion then + {$if declared(_SSL_CTX_set1_sigalgs)} + SSL_CTX_set1_sigalgs := @_SSL_CTX_set1_sigalgs + {$else} + {$IF declared(ERR_SSL_CTX_set1_sigalgs)} + SSL_CTX_set1_sigalgs := @ERR_SSL_CTX_set1_sigalgs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set1_sigalgs) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set1_sigalgs'); + end; + + + if not assigned(SSL_CTX_set1_sigalgs_list) then + begin + {$if declared(SSL_CTX_set1_sigalgs_list_introduced)} + if LibVersion < SSL_CTX_set1_sigalgs_list_introduced then + {$if declared(FC_SSL_CTX_set1_sigalgs_list)} + SSL_CTX_set1_sigalgs_list := @FC_SSL_CTX_set1_sigalgs_list + {$else} + SSL_CTX_set1_sigalgs_list := @ERR_SSL_CTX_set1_sigalgs_list + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set1_sigalgs_list_removed)} + if SSL_CTX_set1_sigalgs_list_removed <= LibVersion then + {$if declared(_SSL_CTX_set1_sigalgs_list)} + SSL_CTX_set1_sigalgs_list := @_SSL_CTX_set1_sigalgs_list + {$else} + {$IF declared(ERR_SSL_CTX_set1_sigalgs_list)} + SSL_CTX_set1_sigalgs_list := @ERR_SSL_CTX_set1_sigalgs_list + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set1_sigalgs_list) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set1_sigalgs_list'); + end; + + + if not assigned(SSL_set1_sigalgs) then + begin + {$if declared(SSL_set1_sigalgs_introduced)} + if LibVersion < SSL_set1_sigalgs_introduced then + {$if declared(FC_SSL_set1_sigalgs)} + SSL_set1_sigalgs := @FC_SSL_set1_sigalgs + {$else} + SSL_set1_sigalgs := @ERR_SSL_set1_sigalgs + {$ifend} + else + {$ifend} + {$if declared(SSL_set1_sigalgs_removed)} + if SSL_set1_sigalgs_removed <= LibVersion then + {$if declared(_SSL_set1_sigalgs)} + SSL_set1_sigalgs := @_SSL_set1_sigalgs + {$else} + {$IF declared(ERR_SSL_set1_sigalgs)} + SSL_set1_sigalgs := @ERR_SSL_set1_sigalgs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set1_sigalgs) and Assigned(AFailed) then + AFailed.Add('SSL_set1_sigalgs'); + end; + + + if not assigned(SSL_set1_sigalgs_list) then + begin + {$if declared(SSL_set1_sigalgs_list_introduced)} + if LibVersion < SSL_set1_sigalgs_list_introduced then + {$if declared(FC_SSL_set1_sigalgs_list)} + SSL_set1_sigalgs_list := @FC_SSL_set1_sigalgs_list + {$else} + SSL_set1_sigalgs_list := @ERR_SSL_set1_sigalgs_list + {$ifend} + else + {$ifend} + {$if declared(SSL_set1_sigalgs_list_removed)} + if SSL_set1_sigalgs_list_removed <= LibVersion then + {$if declared(_SSL_set1_sigalgs_list)} + SSL_set1_sigalgs_list := @_SSL_set1_sigalgs_list + {$else} + {$IF declared(ERR_SSL_set1_sigalgs_list)} + SSL_set1_sigalgs_list := @ERR_SSL_set1_sigalgs_list + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set1_sigalgs_list) and Assigned(AFailed) then + AFailed.Add('SSL_set1_sigalgs_list'); + end; + + + if not assigned(SSL_CTX_set1_client_sigalgs) then + begin + {$if declared(SSL_CTX_set1_client_sigalgs_introduced)} + if LibVersion < SSL_CTX_set1_client_sigalgs_introduced then + {$if declared(FC_SSL_CTX_set1_client_sigalgs)} + SSL_CTX_set1_client_sigalgs := @FC_SSL_CTX_set1_client_sigalgs + {$else} + SSL_CTX_set1_client_sigalgs := @ERR_SSL_CTX_set1_client_sigalgs + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set1_client_sigalgs_removed)} + if SSL_CTX_set1_client_sigalgs_removed <= LibVersion then + {$if declared(_SSL_CTX_set1_client_sigalgs)} + SSL_CTX_set1_client_sigalgs := @_SSL_CTX_set1_client_sigalgs + {$else} + {$IF declared(ERR_SSL_CTX_set1_client_sigalgs)} + SSL_CTX_set1_client_sigalgs := @ERR_SSL_CTX_set1_client_sigalgs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set1_client_sigalgs) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set1_client_sigalgs'); + end; + + + if not assigned(SSL_CTX_set1_client_sigalgs_list) then + begin + {$if declared(SSL_CTX_set1_client_sigalgs_list_introduced)} + if LibVersion < SSL_CTX_set1_client_sigalgs_list_introduced then + {$if declared(FC_SSL_CTX_set1_client_sigalgs_list)} + SSL_CTX_set1_client_sigalgs_list := @FC_SSL_CTX_set1_client_sigalgs_list + {$else} + SSL_CTX_set1_client_sigalgs_list := @ERR_SSL_CTX_set1_client_sigalgs_list + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set1_client_sigalgs_list_removed)} + if SSL_CTX_set1_client_sigalgs_list_removed <= LibVersion then + {$if declared(_SSL_CTX_set1_client_sigalgs_list)} + SSL_CTX_set1_client_sigalgs_list := @_SSL_CTX_set1_client_sigalgs_list + {$else} + {$IF declared(ERR_SSL_CTX_set1_client_sigalgs_list)} + SSL_CTX_set1_client_sigalgs_list := @ERR_SSL_CTX_set1_client_sigalgs_list + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set1_client_sigalgs_list) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set1_client_sigalgs_list'); + end; + + + if not assigned(SSL_set1_client_sigalgs) then + begin + {$if declared(SSL_set1_client_sigalgs_introduced)} + if LibVersion < SSL_set1_client_sigalgs_introduced then + {$if declared(FC_SSL_set1_client_sigalgs)} + SSL_set1_client_sigalgs := @FC_SSL_set1_client_sigalgs + {$else} + SSL_set1_client_sigalgs := @ERR_SSL_set1_client_sigalgs + {$ifend} + else + {$ifend} + {$if declared(SSL_set1_client_sigalgs_removed)} + if SSL_set1_client_sigalgs_removed <= LibVersion then + {$if declared(_SSL_set1_client_sigalgs)} + SSL_set1_client_sigalgs := @_SSL_set1_client_sigalgs + {$else} + {$IF declared(ERR_SSL_set1_client_sigalgs)} + SSL_set1_client_sigalgs := @ERR_SSL_set1_client_sigalgs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set1_client_sigalgs) and Assigned(AFailed) then + AFailed.Add('SSL_set1_client_sigalgs'); + end; + + + if not assigned(SSL_set1_client_sigalgs_list) then + begin + {$if declared(SSL_set1_client_sigalgs_list_introduced)} + if LibVersion < SSL_set1_client_sigalgs_list_introduced then + {$if declared(FC_SSL_set1_client_sigalgs_list)} + SSL_set1_client_sigalgs_list := @FC_SSL_set1_client_sigalgs_list + {$else} + SSL_set1_client_sigalgs_list := @ERR_SSL_set1_client_sigalgs_list + {$ifend} + else + {$ifend} + {$if declared(SSL_set1_client_sigalgs_list_removed)} + if SSL_set1_client_sigalgs_list_removed <= LibVersion then + {$if declared(_SSL_set1_client_sigalgs_list)} + SSL_set1_client_sigalgs_list := @_SSL_set1_client_sigalgs_list + {$else} + {$IF declared(ERR_SSL_set1_client_sigalgs_list)} + SSL_set1_client_sigalgs_list := @ERR_SSL_set1_client_sigalgs_list + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set1_client_sigalgs_list) and Assigned(AFailed) then + AFailed.Add('SSL_set1_client_sigalgs_list'); + end; + + + if not assigned(SSL_get0_certificate_types) then + begin + {$if declared(SSL_get0_certificate_types_introduced)} + if LibVersion < SSL_get0_certificate_types_introduced then + {$if declared(FC_SSL_get0_certificate_types)} + SSL_get0_certificate_types := @FC_SSL_get0_certificate_types + {$else} + SSL_get0_certificate_types := @ERR_SSL_get0_certificate_types + {$ifend} + else + {$ifend} + {$if declared(SSL_get0_certificate_types_removed)} + if SSL_get0_certificate_types_removed <= LibVersion then + {$if declared(_SSL_get0_certificate_types)} + SSL_get0_certificate_types := @_SSL_get0_certificate_types + {$else} + {$IF declared(ERR_SSL_get0_certificate_types)} + SSL_get0_certificate_types := @ERR_SSL_get0_certificate_types + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get0_certificate_types) and Assigned(AFailed) then + AFailed.Add('SSL_get0_certificate_types'); + end; + + + if not assigned(SSL_CTX_set1_client_certificate_types) then + begin + {$if declared(SSL_CTX_set1_client_certificate_types_introduced)} + if LibVersion < SSL_CTX_set1_client_certificate_types_introduced then + {$if declared(FC_SSL_CTX_set1_client_certificate_types)} + SSL_CTX_set1_client_certificate_types := @FC_SSL_CTX_set1_client_certificate_types + {$else} + SSL_CTX_set1_client_certificate_types := @ERR_SSL_CTX_set1_client_certificate_types + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set1_client_certificate_types_removed)} + if SSL_CTX_set1_client_certificate_types_removed <= LibVersion then + {$if declared(_SSL_CTX_set1_client_certificate_types)} + SSL_CTX_set1_client_certificate_types := @_SSL_CTX_set1_client_certificate_types + {$else} + {$IF declared(ERR_SSL_CTX_set1_client_certificate_types)} + SSL_CTX_set1_client_certificate_types := @ERR_SSL_CTX_set1_client_certificate_types + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set1_client_certificate_types) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set1_client_certificate_types'); + end; + + + if not assigned(SSL_set1_client_certificate_types) then + begin + {$if declared(SSL_set1_client_certificate_types_introduced)} + if LibVersion < SSL_set1_client_certificate_types_introduced then + {$if declared(FC_SSL_set1_client_certificate_types)} + SSL_set1_client_certificate_types := @FC_SSL_set1_client_certificate_types + {$else} + SSL_set1_client_certificate_types := @ERR_SSL_set1_client_certificate_types + {$ifend} + else + {$ifend} + {$if declared(SSL_set1_client_certificate_types_removed)} + if SSL_set1_client_certificate_types_removed <= LibVersion then + {$if declared(_SSL_set1_client_certificate_types)} + SSL_set1_client_certificate_types := @_SSL_set1_client_certificate_types + {$else} + {$IF declared(ERR_SSL_set1_client_certificate_types)} + SSL_set1_client_certificate_types := @ERR_SSL_set1_client_certificate_types + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set1_client_certificate_types) and Assigned(AFailed) then + AFailed.Add('SSL_set1_client_certificate_types'); + end; + + + if not assigned(SSL_get_signature_nid) then + begin + {$if declared(SSL_get_signature_nid_introduced)} + if LibVersion < SSL_get_signature_nid_introduced then + {$if declared(FC_SSL_get_signature_nid)} + SSL_get_signature_nid := @FC_SSL_get_signature_nid + {$else} + SSL_get_signature_nid := @ERR_SSL_get_signature_nid + {$ifend} + else + {$ifend} + {$if declared(SSL_get_signature_nid_removed)} + if SSL_get_signature_nid_removed <= LibVersion then + {$if declared(_SSL_get_signature_nid)} + SSL_get_signature_nid := @_SSL_get_signature_nid + {$else} + {$IF declared(ERR_SSL_get_signature_nid)} + SSL_get_signature_nid := @ERR_SSL_get_signature_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_signature_nid) and Assigned(AFailed) then + AFailed.Add('SSL_get_signature_nid'); + end; + + + if not assigned(SSL_get_peer_signature_nid) then + begin + {$if declared(SSL_get_peer_signature_nid_introduced)} + if LibVersion < SSL_get_peer_signature_nid_introduced then + {$if declared(FC_SSL_get_peer_signature_nid)} + SSL_get_peer_signature_nid := @FC_SSL_get_peer_signature_nid + {$else} + SSL_get_peer_signature_nid := @ERR_SSL_get_peer_signature_nid + {$ifend} + else + {$ifend} + {$if declared(SSL_get_peer_signature_nid_removed)} + if SSL_get_peer_signature_nid_removed <= LibVersion then + {$if declared(_SSL_get_peer_signature_nid)} + SSL_get_peer_signature_nid := @_SSL_get_peer_signature_nid + {$else} + {$IF declared(ERR_SSL_get_peer_signature_nid)} + SSL_get_peer_signature_nid := @ERR_SSL_get_peer_signature_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_peer_signature_nid) and Assigned(AFailed) then + AFailed.Add('SSL_get_peer_signature_nid'); + end; + + + if not assigned(SSL_get_peer_tmp_key) then + begin + {$if declared(SSL_get_peer_tmp_key_introduced)} + if LibVersion < SSL_get_peer_tmp_key_introduced then + {$if declared(FC_SSL_get_peer_tmp_key)} + SSL_get_peer_tmp_key := @FC_SSL_get_peer_tmp_key + {$else} + SSL_get_peer_tmp_key := @ERR_SSL_get_peer_tmp_key + {$ifend} + else + {$ifend} + {$if declared(SSL_get_peer_tmp_key_removed)} + if SSL_get_peer_tmp_key_removed <= LibVersion then + {$if declared(_SSL_get_peer_tmp_key)} + SSL_get_peer_tmp_key := @_SSL_get_peer_tmp_key + {$else} + {$IF declared(ERR_SSL_get_peer_tmp_key)} + SSL_get_peer_tmp_key := @ERR_SSL_get_peer_tmp_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_peer_tmp_key) and Assigned(AFailed) then + AFailed.Add('SSL_get_peer_tmp_key'); + end; + + + if not assigned(SSL_get_tmp_key) then + begin + {$if declared(SSL_get_tmp_key_introduced)} + if LibVersion < SSL_get_tmp_key_introduced then + {$if declared(FC_SSL_get_tmp_key)} + SSL_get_tmp_key := @FC_SSL_get_tmp_key + {$else} + SSL_get_tmp_key := @ERR_SSL_get_tmp_key + {$ifend} + else + {$ifend} + {$if declared(SSL_get_tmp_key_removed)} + if SSL_get_tmp_key_removed <= LibVersion then + {$if declared(_SSL_get_tmp_key)} + SSL_get_tmp_key := @_SSL_get_tmp_key + {$else} + {$IF declared(ERR_SSL_get_tmp_key)} + SSL_get_tmp_key := @ERR_SSL_get_tmp_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_tmp_key) and Assigned(AFailed) then + AFailed.Add('SSL_get_tmp_key'); + end; + + + if not assigned(SSL_get0_raw_cipherlist) then + begin + {$if declared(SSL_get0_raw_cipherlist_introduced)} + if LibVersion < SSL_get0_raw_cipherlist_introduced then + {$if declared(FC_SSL_get0_raw_cipherlist)} + SSL_get0_raw_cipherlist := @FC_SSL_get0_raw_cipherlist + {$else} + SSL_get0_raw_cipherlist := @ERR_SSL_get0_raw_cipherlist + {$ifend} + else + {$ifend} + {$if declared(SSL_get0_raw_cipherlist_removed)} + if SSL_get0_raw_cipherlist_removed <= LibVersion then + {$if declared(_SSL_get0_raw_cipherlist)} + SSL_get0_raw_cipherlist := @_SSL_get0_raw_cipherlist + {$else} + {$IF declared(ERR_SSL_get0_raw_cipherlist)} + SSL_get0_raw_cipherlist := @ERR_SSL_get0_raw_cipherlist + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get0_raw_cipherlist) and Assigned(AFailed) then + AFailed.Add('SSL_get0_raw_cipherlist'); + end; + + + if not assigned(SSL_get0_ec_point_formats) then + begin + {$if declared(SSL_get0_ec_point_formats_introduced)} + if LibVersion < SSL_get0_ec_point_formats_introduced then + {$if declared(FC_SSL_get0_ec_point_formats)} + SSL_get0_ec_point_formats := @FC_SSL_get0_ec_point_formats + {$else} + SSL_get0_ec_point_formats := @ERR_SSL_get0_ec_point_formats + {$ifend} + else + {$ifend} + {$if declared(SSL_get0_ec_point_formats_removed)} + if SSL_get0_ec_point_formats_removed <= LibVersion then + {$if declared(_SSL_get0_ec_point_formats)} + SSL_get0_ec_point_formats := @_SSL_get0_ec_point_formats + {$else} + {$IF declared(ERR_SSL_get0_ec_point_formats)} + SSL_get0_ec_point_formats := @ERR_SSL_get0_ec_point_formats + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get0_ec_point_formats) and Assigned(AFailed) then + AFailed.Add('SSL_get0_ec_point_formats'); + end; + + + if not assigned(SSL_CTX_get_options) then + begin + {$if declared(SSL_CTX_get_options_introduced)} + if LibVersion < SSL_CTX_get_options_introduced then + {$if declared(FC_SSL_CTX_get_options)} + SSL_CTX_get_options := @FC_SSL_CTX_get_options + {$else} + SSL_CTX_get_options := @ERR_SSL_CTX_get_options + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_options_removed)} + if SSL_CTX_get_options_removed <= LibVersion then + {$if declared(_SSL_CTX_get_options)} + SSL_CTX_get_options := @_SSL_CTX_get_options + {$else} + {$IF declared(ERR_SSL_CTX_get_options)} + SSL_CTX_get_options := @ERR_SSL_CTX_get_options + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_options) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_options'); + end; + + + if not assigned(SSL_get_options) then + begin + {$if declared(SSL_get_options_introduced)} + if LibVersion < SSL_get_options_introduced then + {$if declared(FC_SSL_get_options)} + SSL_get_options := @FC_SSL_get_options + {$else} + SSL_get_options := @ERR_SSL_get_options + {$ifend} + else + {$ifend} + {$if declared(SSL_get_options_removed)} + if SSL_get_options_removed <= LibVersion then + {$if declared(_SSL_get_options)} + SSL_get_options := @_SSL_get_options + {$else} + {$IF declared(ERR_SSL_get_options)} + SSL_get_options := @ERR_SSL_get_options + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_options) and Assigned(AFailed) then + AFailed.Add('SSL_get_options'); + end; + + + if not assigned(SSL_CTX_clear_options) then + begin + {$if declared(SSL_CTX_clear_options_introduced)} + if LibVersion < SSL_CTX_clear_options_introduced then + {$if declared(FC_SSL_CTX_clear_options)} + SSL_CTX_clear_options := @FC_SSL_CTX_clear_options + {$else} + SSL_CTX_clear_options := @ERR_SSL_CTX_clear_options + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_clear_options_removed)} + if SSL_CTX_clear_options_removed <= LibVersion then + {$if declared(_SSL_CTX_clear_options)} + SSL_CTX_clear_options := @_SSL_CTX_clear_options + {$else} + {$IF declared(ERR_SSL_CTX_clear_options)} + SSL_CTX_clear_options := @ERR_SSL_CTX_clear_options + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_clear_options) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_clear_options'); + end; + + + if not assigned(SSL_clear_options) then + begin + {$if declared(SSL_clear_options_introduced)} + if LibVersion < SSL_clear_options_introduced then + {$if declared(FC_SSL_clear_options)} + SSL_clear_options := @FC_SSL_clear_options + {$else} + SSL_clear_options := @ERR_SSL_clear_options + {$ifend} + else + {$ifend} + {$if declared(SSL_clear_options_removed)} + if SSL_clear_options_removed <= LibVersion then + {$if declared(_SSL_clear_options)} + SSL_clear_options := @_SSL_clear_options + {$else} + {$IF declared(ERR_SSL_clear_options)} + SSL_clear_options := @ERR_SSL_clear_options + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_clear_options) and Assigned(AFailed) then + AFailed.Add('SSL_clear_options'); + end; + + + if not assigned(SSL_CTX_set_options) then + begin + {$if declared(SSL_CTX_set_options_introduced)} + if LibVersion < SSL_CTX_set_options_introduced then + {$if declared(FC_SSL_CTX_set_options)} + SSL_CTX_set_options := @FC_SSL_CTX_set_options + {$else} + SSL_CTX_set_options := @ERR_SSL_CTX_set_options + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_options_removed)} + if SSL_CTX_set_options_removed <= LibVersion then + {$if declared(_SSL_CTX_set_options)} + SSL_CTX_set_options := @_SSL_CTX_set_options + {$else} + {$IF declared(ERR_SSL_CTX_set_options)} + SSL_CTX_set_options := @ERR_SSL_CTX_set_options + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_options) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_options'); + end; + + + if not assigned(SSL_set_options) then + begin + {$if declared(SSL_set_options_introduced)} + if LibVersion < SSL_set_options_introduced then + {$if declared(FC_SSL_set_options)} + SSL_set_options := @FC_SSL_set_options + {$else} + SSL_set_options := @ERR_SSL_set_options + {$ifend} + else + {$ifend} + {$if declared(SSL_set_options_removed)} + if SSL_set_options_removed <= LibVersion then + {$if declared(_SSL_set_options)} + SSL_set_options := @_SSL_set_options + {$else} + {$IF declared(ERR_SSL_set_options)} + SSL_set_options := @ERR_SSL_set_options + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_options) and Assigned(AFailed) then + AFailed.Add('SSL_set_options'); + end; + + + if not assigned(SSL_CTX_set_stateless_cookie_generate_cb) then + begin + {$if declared(SSL_CTX_set_stateless_cookie_generate_cb_introduced)} + if LibVersion < SSL_CTX_set_stateless_cookie_generate_cb_introduced then + {$if declared(FC_SSL_CTX_set_stateless_cookie_generate_cb)} + SSL_CTX_set_stateless_cookie_generate_cb := @FC_SSL_CTX_set_stateless_cookie_generate_cb + {$else} + SSL_CTX_set_stateless_cookie_generate_cb := @ERR_SSL_CTX_set_stateless_cookie_generate_cb + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_stateless_cookie_generate_cb_removed)} + if SSL_CTX_set_stateless_cookie_generate_cb_removed <= LibVersion then + {$if declared(_SSL_CTX_set_stateless_cookie_generate_cb)} + SSL_CTX_set_stateless_cookie_generate_cb := @_SSL_CTX_set_stateless_cookie_generate_cb + {$else} + {$IF declared(ERR_SSL_CTX_set_stateless_cookie_generate_cb)} + SSL_CTX_set_stateless_cookie_generate_cb := @ERR_SSL_CTX_set_stateless_cookie_generate_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_stateless_cookie_generate_cb) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_stateless_cookie_generate_cb'); + end; + + + if not assigned(SSL_CTX_set_stateless_cookie_verify_cb) then + begin + {$if declared(SSL_CTX_set_stateless_cookie_verify_cb_introduced)} + if LibVersion < SSL_CTX_set_stateless_cookie_verify_cb_introduced then + {$if declared(FC_SSL_CTX_set_stateless_cookie_verify_cb)} + SSL_CTX_set_stateless_cookie_verify_cb := @FC_SSL_CTX_set_stateless_cookie_verify_cb + {$else} + SSL_CTX_set_stateless_cookie_verify_cb := @ERR_SSL_CTX_set_stateless_cookie_verify_cb + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_stateless_cookie_verify_cb_removed)} + if SSL_CTX_set_stateless_cookie_verify_cb_removed <= LibVersion then + {$if declared(_SSL_CTX_set_stateless_cookie_verify_cb)} + SSL_CTX_set_stateless_cookie_verify_cb := @_SSL_CTX_set_stateless_cookie_verify_cb + {$else} + {$IF declared(ERR_SSL_CTX_set_stateless_cookie_verify_cb)} + SSL_CTX_set_stateless_cookie_verify_cb := @ERR_SSL_CTX_set_stateless_cookie_verify_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_stateless_cookie_verify_cb) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_stateless_cookie_verify_cb'); + end; + + + if not assigned(SSL_set_psk_find_session_callback) then + begin + {$if declared(SSL_set_psk_find_session_callback_introduced)} + if LibVersion < SSL_set_psk_find_session_callback_introduced then + {$if declared(FC_SSL_set_psk_find_session_callback)} + SSL_set_psk_find_session_callback := @FC_SSL_set_psk_find_session_callback + {$else} + SSL_set_psk_find_session_callback := @ERR_SSL_set_psk_find_session_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_set_psk_find_session_callback_removed)} + if SSL_set_psk_find_session_callback_removed <= LibVersion then + {$if declared(_SSL_set_psk_find_session_callback)} + SSL_set_psk_find_session_callback := @_SSL_set_psk_find_session_callback + {$else} + {$IF declared(ERR_SSL_set_psk_find_session_callback)} + SSL_set_psk_find_session_callback := @ERR_SSL_set_psk_find_session_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_psk_find_session_callback) and Assigned(AFailed) then + AFailed.Add('SSL_set_psk_find_session_callback'); + end; + + + if not assigned(SSL_CTX_set_psk_find_session_callback) then + begin + {$if declared(SSL_CTX_set_psk_find_session_callback_introduced)} + if LibVersion < SSL_CTX_set_psk_find_session_callback_introduced then + {$if declared(FC_SSL_CTX_set_psk_find_session_callback)} + SSL_CTX_set_psk_find_session_callback := @FC_SSL_CTX_set_psk_find_session_callback + {$else} + SSL_CTX_set_psk_find_session_callback := @ERR_SSL_CTX_set_psk_find_session_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_psk_find_session_callback_removed)} + if SSL_CTX_set_psk_find_session_callback_removed <= LibVersion then + {$if declared(_SSL_CTX_set_psk_find_session_callback)} + SSL_CTX_set_psk_find_session_callback := @_SSL_CTX_set_psk_find_session_callback + {$else} + {$IF declared(ERR_SSL_CTX_set_psk_find_session_callback)} + SSL_CTX_set_psk_find_session_callback := @ERR_SSL_CTX_set_psk_find_session_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_psk_find_session_callback) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_psk_find_session_callback'); + end; + + + if not assigned(SSL_set_psk_use_session_callback) then + begin + {$if declared(SSL_set_psk_use_session_callback_introduced)} + if LibVersion < SSL_set_psk_use_session_callback_introduced then + {$if declared(FC_SSL_set_psk_use_session_callback)} + SSL_set_psk_use_session_callback := @FC_SSL_set_psk_use_session_callback + {$else} + SSL_set_psk_use_session_callback := @ERR_SSL_set_psk_use_session_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_set_psk_use_session_callback_removed)} + if SSL_set_psk_use_session_callback_removed <= LibVersion then + {$if declared(_SSL_set_psk_use_session_callback)} + SSL_set_psk_use_session_callback := @_SSL_set_psk_use_session_callback + {$else} + {$IF declared(ERR_SSL_set_psk_use_session_callback)} + SSL_set_psk_use_session_callback := @ERR_SSL_set_psk_use_session_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_psk_use_session_callback) and Assigned(AFailed) then + AFailed.Add('SSL_set_psk_use_session_callback'); + end; + + + if not assigned(SSL_CTX_set_psk_use_session_callback) then + begin + {$if declared(SSL_CTX_set_psk_use_session_callback_introduced)} + if LibVersion < SSL_CTX_set_psk_use_session_callback_introduced then + {$if declared(FC_SSL_CTX_set_psk_use_session_callback)} + SSL_CTX_set_psk_use_session_callback := @FC_SSL_CTX_set_psk_use_session_callback + {$else} + SSL_CTX_set_psk_use_session_callback := @ERR_SSL_CTX_set_psk_use_session_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_psk_use_session_callback_removed)} + if SSL_CTX_set_psk_use_session_callback_removed <= LibVersion then + {$if declared(_SSL_CTX_set_psk_use_session_callback)} + SSL_CTX_set_psk_use_session_callback := @_SSL_CTX_set_psk_use_session_callback + {$else} + {$IF declared(ERR_SSL_CTX_set_psk_use_session_callback)} + SSL_CTX_set_psk_use_session_callback := @ERR_SSL_CTX_set_psk_use_session_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_psk_use_session_callback) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_psk_use_session_callback'); + end; + + + if not assigned(SSL_CTX_set_keylog_callback) then + begin + {$if declared(SSL_CTX_set_keylog_callback_introduced)} + if LibVersion < SSL_CTX_set_keylog_callback_introduced then + {$if declared(FC_SSL_CTX_set_keylog_callback)} + SSL_CTX_set_keylog_callback := @FC_SSL_CTX_set_keylog_callback + {$else} + SSL_CTX_set_keylog_callback := @ERR_SSL_CTX_set_keylog_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_keylog_callback_removed)} + if SSL_CTX_set_keylog_callback_removed <= LibVersion then + {$if declared(_SSL_CTX_set_keylog_callback)} + SSL_CTX_set_keylog_callback := @_SSL_CTX_set_keylog_callback + {$else} + {$IF declared(ERR_SSL_CTX_set_keylog_callback)} + SSL_CTX_set_keylog_callback := @ERR_SSL_CTX_set_keylog_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_keylog_callback) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_keylog_callback'); + end; + + + if not assigned(SSL_CTX_get_keylog_callback) then + begin + {$if declared(SSL_CTX_get_keylog_callback_introduced)} + if LibVersion < SSL_CTX_get_keylog_callback_introduced then + {$if declared(FC_SSL_CTX_get_keylog_callback)} + SSL_CTX_get_keylog_callback := @FC_SSL_CTX_get_keylog_callback + {$else} + SSL_CTX_get_keylog_callback := @ERR_SSL_CTX_get_keylog_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_keylog_callback_removed)} + if SSL_CTX_get_keylog_callback_removed <= LibVersion then + {$if declared(_SSL_CTX_get_keylog_callback)} + SSL_CTX_get_keylog_callback := @_SSL_CTX_get_keylog_callback + {$else} + {$IF declared(ERR_SSL_CTX_get_keylog_callback)} + SSL_CTX_get_keylog_callback := @ERR_SSL_CTX_get_keylog_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_keylog_callback) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_keylog_callback'); + end; + + + if not assigned(SSL_CTX_set_max_early_data) then + begin + {$if declared(SSL_CTX_set_max_early_data_introduced)} + if LibVersion < SSL_CTX_set_max_early_data_introduced then + {$if declared(FC_SSL_CTX_set_max_early_data)} + SSL_CTX_set_max_early_data := @FC_SSL_CTX_set_max_early_data + {$else} + SSL_CTX_set_max_early_data := @ERR_SSL_CTX_set_max_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_max_early_data_removed)} + if SSL_CTX_set_max_early_data_removed <= LibVersion then + {$if declared(_SSL_CTX_set_max_early_data)} + SSL_CTX_set_max_early_data := @_SSL_CTX_set_max_early_data + {$else} + {$IF declared(ERR_SSL_CTX_set_max_early_data)} + SSL_CTX_set_max_early_data := @ERR_SSL_CTX_set_max_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_max_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_max_early_data'); + end; + + + if not assigned(SSL_CTX_get_max_early_data) then + begin + {$if declared(SSL_CTX_get_max_early_data_introduced)} + if LibVersion < SSL_CTX_get_max_early_data_introduced then + {$if declared(FC_SSL_CTX_get_max_early_data)} + SSL_CTX_get_max_early_data := @FC_SSL_CTX_get_max_early_data + {$else} + SSL_CTX_get_max_early_data := @ERR_SSL_CTX_get_max_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_max_early_data_removed)} + if SSL_CTX_get_max_early_data_removed <= LibVersion then + {$if declared(_SSL_CTX_get_max_early_data)} + SSL_CTX_get_max_early_data := @_SSL_CTX_get_max_early_data + {$else} + {$IF declared(ERR_SSL_CTX_get_max_early_data)} + SSL_CTX_get_max_early_data := @ERR_SSL_CTX_get_max_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_max_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_max_early_data'); + end; + + + if not assigned(SSL_set_max_early_data) then + begin + {$if declared(SSL_set_max_early_data_introduced)} + if LibVersion < SSL_set_max_early_data_introduced then + {$if declared(FC_SSL_set_max_early_data)} + SSL_set_max_early_data := @FC_SSL_set_max_early_data + {$else} + SSL_set_max_early_data := @ERR_SSL_set_max_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_set_max_early_data_removed)} + if SSL_set_max_early_data_removed <= LibVersion then + {$if declared(_SSL_set_max_early_data)} + SSL_set_max_early_data := @_SSL_set_max_early_data + {$else} + {$IF declared(ERR_SSL_set_max_early_data)} + SSL_set_max_early_data := @ERR_SSL_set_max_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_max_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_set_max_early_data'); + end; + + + if not assigned(SSL_get_max_early_data) then + begin + {$if declared(SSL_get_max_early_data_introduced)} + if LibVersion < SSL_get_max_early_data_introduced then + {$if declared(FC_SSL_get_max_early_data)} + SSL_get_max_early_data := @FC_SSL_get_max_early_data + {$else} + SSL_get_max_early_data := @ERR_SSL_get_max_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_get_max_early_data_removed)} + if SSL_get_max_early_data_removed <= LibVersion then + {$if declared(_SSL_get_max_early_data)} + SSL_get_max_early_data := @_SSL_get_max_early_data + {$else} + {$IF declared(ERR_SSL_get_max_early_data)} + SSL_get_max_early_data := @ERR_SSL_get_max_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_max_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_get_max_early_data'); + end; + + + if not assigned(SSL_CTX_set_recv_max_early_data) then + begin + {$if declared(SSL_CTX_set_recv_max_early_data_introduced)} + if LibVersion < SSL_CTX_set_recv_max_early_data_introduced then + {$if declared(FC_SSL_CTX_set_recv_max_early_data)} + SSL_CTX_set_recv_max_early_data := @FC_SSL_CTX_set_recv_max_early_data + {$else} + SSL_CTX_set_recv_max_early_data := @ERR_SSL_CTX_set_recv_max_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_recv_max_early_data_removed)} + if SSL_CTX_set_recv_max_early_data_removed <= LibVersion then + {$if declared(_SSL_CTX_set_recv_max_early_data)} + SSL_CTX_set_recv_max_early_data := @_SSL_CTX_set_recv_max_early_data + {$else} + {$IF declared(ERR_SSL_CTX_set_recv_max_early_data)} + SSL_CTX_set_recv_max_early_data := @ERR_SSL_CTX_set_recv_max_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_recv_max_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_recv_max_early_data'); + end; + + + if not assigned(SSL_CTX_get_recv_max_early_data) then + begin + {$if declared(SSL_CTX_get_recv_max_early_data_introduced)} + if LibVersion < SSL_CTX_get_recv_max_early_data_introduced then + {$if declared(FC_SSL_CTX_get_recv_max_early_data)} + SSL_CTX_get_recv_max_early_data := @FC_SSL_CTX_get_recv_max_early_data + {$else} + SSL_CTX_get_recv_max_early_data := @ERR_SSL_CTX_get_recv_max_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_recv_max_early_data_removed)} + if SSL_CTX_get_recv_max_early_data_removed <= LibVersion then + {$if declared(_SSL_CTX_get_recv_max_early_data)} + SSL_CTX_get_recv_max_early_data := @_SSL_CTX_get_recv_max_early_data + {$else} + {$IF declared(ERR_SSL_CTX_get_recv_max_early_data)} + SSL_CTX_get_recv_max_early_data := @ERR_SSL_CTX_get_recv_max_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_recv_max_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_recv_max_early_data'); + end; + + + if not assigned(SSL_set_recv_max_early_data) then + begin + {$if declared(SSL_set_recv_max_early_data_introduced)} + if LibVersion < SSL_set_recv_max_early_data_introduced then + {$if declared(FC_SSL_set_recv_max_early_data)} + SSL_set_recv_max_early_data := @FC_SSL_set_recv_max_early_data + {$else} + SSL_set_recv_max_early_data := @ERR_SSL_set_recv_max_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_set_recv_max_early_data_removed)} + if SSL_set_recv_max_early_data_removed <= LibVersion then + {$if declared(_SSL_set_recv_max_early_data)} + SSL_set_recv_max_early_data := @_SSL_set_recv_max_early_data + {$else} + {$IF declared(ERR_SSL_set_recv_max_early_data)} + SSL_set_recv_max_early_data := @ERR_SSL_set_recv_max_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_recv_max_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_set_recv_max_early_data'); + end; + + + if not assigned(SSL_get_recv_max_early_data) then + begin + {$if declared(SSL_get_recv_max_early_data_introduced)} + if LibVersion < SSL_get_recv_max_early_data_introduced then + {$if declared(FC_SSL_get_recv_max_early_data)} + SSL_get_recv_max_early_data := @FC_SSL_get_recv_max_early_data + {$else} + SSL_get_recv_max_early_data := @ERR_SSL_get_recv_max_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_get_recv_max_early_data_removed)} + if SSL_get_recv_max_early_data_removed <= LibVersion then + {$if declared(_SSL_get_recv_max_early_data)} + SSL_get_recv_max_early_data := @_SSL_get_recv_max_early_data + {$else} + {$IF declared(ERR_SSL_get_recv_max_early_data)} + SSL_get_recv_max_early_data := @ERR_SSL_get_recv_max_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_recv_max_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_get_recv_max_early_data'); + end; + + + if not assigned(SSL_get_app_data) then + begin + {$if declared(SSL_get_app_data_introduced)} + if LibVersion < SSL_get_app_data_introduced then + {$if declared(FC_SSL_get_app_data)} + SSL_get_app_data := @FC_SSL_get_app_data + {$else} + SSL_get_app_data := @ERR_SSL_get_app_data + {$ifend} + else + {$ifend} + {$if declared(SSL_get_app_data_removed)} + if SSL_get_app_data_removed <= LibVersion then + {$if declared(_SSL_get_app_data)} + SSL_get_app_data := @_SSL_get_app_data + {$else} + {$IF declared(ERR_SSL_get_app_data)} + SSL_get_app_data := @ERR_SSL_get_app_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_app_data) and Assigned(AFailed) then + AFailed.Add('SSL_get_app_data'); + end; + + + if not assigned(SSL_set_app_data) then + begin + {$if declared(SSL_set_app_data_introduced)} + if LibVersion < SSL_set_app_data_introduced then + {$if declared(FC_SSL_set_app_data)} + SSL_set_app_data := @FC_SSL_set_app_data + {$else} + SSL_set_app_data := @ERR_SSL_set_app_data + {$ifend} + else + {$ifend} + {$if declared(SSL_set_app_data_removed)} + if SSL_set_app_data_removed <= LibVersion then + {$if declared(_SSL_set_app_data)} + SSL_set_app_data := @_SSL_set_app_data + {$else} + {$IF declared(ERR_SSL_set_app_data)} + SSL_set_app_data := @ERR_SSL_set_app_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_app_data) and Assigned(AFailed) then + AFailed.Add('SSL_set_app_data'); + end; + + + if not assigned(SSL_in_init) then + begin + {$if declared(SSL_in_init_introduced)} + if LibVersion < SSL_in_init_introduced then + {$if declared(FC_SSL_in_init)} + SSL_in_init := @FC_SSL_in_init + {$else} + SSL_in_init := @ERR_SSL_in_init + {$ifend} + else + {$ifend} + {$if declared(SSL_in_init_removed)} + if SSL_in_init_removed <= LibVersion then + {$if declared(_SSL_in_init)} + SSL_in_init := @_SSL_in_init + {$else} + {$IF declared(ERR_SSL_in_init)} + SSL_in_init := @ERR_SSL_in_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_in_init) and Assigned(AFailed) then + AFailed.Add('SSL_in_init'); + end; + + + if not assigned(SSL_in_before) then + begin + {$if declared(SSL_in_before_introduced)} + if LibVersion < SSL_in_before_introduced then + {$if declared(FC_SSL_in_before)} + SSL_in_before := @FC_SSL_in_before + {$else} + SSL_in_before := @ERR_SSL_in_before + {$ifend} + else + {$ifend} + {$if declared(SSL_in_before_removed)} + if SSL_in_before_removed <= LibVersion then + {$if declared(_SSL_in_before)} + SSL_in_before := @_SSL_in_before + {$else} + {$IF declared(ERR_SSL_in_before)} + SSL_in_before := @ERR_SSL_in_before + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_in_before) and Assigned(AFailed) then + AFailed.Add('SSL_in_before'); + end; + + + if not assigned(SSL_is_init_finished) then + begin + {$if declared(SSL_is_init_finished_introduced)} + if LibVersion < SSL_is_init_finished_introduced then + {$if declared(FC_SSL_is_init_finished)} + SSL_is_init_finished := @FC_SSL_is_init_finished + {$else} + SSL_is_init_finished := @ERR_SSL_is_init_finished + {$ifend} + else + {$ifend} + {$if declared(SSL_is_init_finished_removed)} + if SSL_is_init_finished_removed <= LibVersion then + {$if declared(_SSL_is_init_finished)} + SSL_is_init_finished := @_SSL_is_init_finished + {$else} + {$IF declared(ERR_SSL_is_init_finished)} + SSL_is_init_finished := @ERR_SSL_is_init_finished + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_is_init_finished) and Assigned(AFailed) then + AFailed.Add('SSL_is_init_finished'); + end; + + + if not assigned(SSLeay_add_ssl_algorithms) then + begin + {$if declared(SSLeay_add_ssl_algorithms_introduced)} + if LibVersion < SSLeay_add_ssl_algorithms_introduced then + {$if declared(FC_SSLeay_add_ssl_algorithms)} + SSLeay_add_ssl_algorithms := @FC_SSLeay_add_ssl_algorithms + {$else} + SSLeay_add_ssl_algorithms := @ERR_SSLeay_add_ssl_algorithms + {$ifend} + else + {$ifend} + {$if declared(SSLeay_add_ssl_algorithms_removed)} + if SSLeay_add_ssl_algorithms_removed <= LibVersion then + {$if declared(_SSLeay_add_ssl_algorithms)} + SSLeay_add_ssl_algorithms := @_SSLeay_add_ssl_algorithms + {$else} + {$IF declared(ERR_SSLeay_add_ssl_algorithms)} + SSLeay_add_ssl_algorithms := @ERR_SSLeay_add_ssl_algorithms + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLeay_add_ssl_algorithms) and Assigned(AFailed) then + AFailed.Add('SSLeay_add_ssl_algorithms'); + end; + + + if not assigned(SSL_CTX_up_ref) then + begin + {$if declared(SSL_CTX_up_ref_introduced)} + if LibVersion < SSL_CTX_up_ref_introduced then + {$if declared(FC_SSL_CTX_up_ref)} + SSL_CTX_up_ref := @FC_SSL_CTX_up_ref + {$else} + SSL_CTX_up_ref := @ERR_SSL_CTX_up_ref + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_up_ref_removed)} + if SSL_CTX_up_ref_removed <= LibVersion then + {$if declared(_SSL_CTX_up_ref)} + SSL_CTX_up_ref := @_SSL_CTX_up_ref + {$else} + {$IF declared(ERR_SSL_CTX_up_ref)} + SSL_CTX_up_ref := @ERR_SSL_CTX_up_ref + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_up_ref) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_up_ref'); + end; + + + if not assigned(SSL_CTX_set1_cert_store) then + begin + {$if declared(SSL_CTX_set1_cert_store_introduced)} + if LibVersion < SSL_CTX_set1_cert_store_introduced then + {$if declared(FC_SSL_CTX_set1_cert_store)} + SSL_CTX_set1_cert_store := @FC_SSL_CTX_set1_cert_store + {$else} + SSL_CTX_set1_cert_store := @ERR_SSL_CTX_set1_cert_store + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set1_cert_store_removed)} + if SSL_CTX_set1_cert_store_removed <= LibVersion then + {$if declared(_SSL_CTX_set1_cert_store)} + SSL_CTX_set1_cert_store := @_SSL_CTX_set1_cert_store + {$else} + {$IF declared(ERR_SSL_CTX_set1_cert_store)} + SSL_CTX_set1_cert_store := @ERR_SSL_CTX_set1_cert_store + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set1_cert_store) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set1_cert_store'); + end; + + + if not assigned(SSL_get_pending_cipher) then + begin + {$if declared(SSL_get_pending_cipher_introduced)} + if LibVersion < SSL_get_pending_cipher_introduced then + {$if declared(FC_SSL_get_pending_cipher)} + SSL_get_pending_cipher := @FC_SSL_get_pending_cipher + {$else} + SSL_get_pending_cipher := @ERR_SSL_get_pending_cipher + {$ifend} + else + {$ifend} + {$if declared(SSL_get_pending_cipher_removed)} + if SSL_get_pending_cipher_removed <= LibVersion then + {$if declared(_SSL_get_pending_cipher)} + SSL_get_pending_cipher := @_SSL_get_pending_cipher + {$else} + {$IF declared(ERR_SSL_get_pending_cipher)} + SSL_get_pending_cipher := @ERR_SSL_get_pending_cipher + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_pending_cipher) and Assigned(AFailed) then + AFailed.Add('SSL_get_pending_cipher'); + end; + + + if not assigned(SSL_CIPHER_standard_name) then + begin + {$if declared(SSL_CIPHER_standard_name_introduced)} + if LibVersion < SSL_CIPHER_standard_name_introduced then + {$if declared(FC_SSL_CIPHER_standard_name)} + SSL_CIPHER_standard_name := @FC_SSL_CIPHER_standard_name + {$else} + SSL_CIPHER_standard_name := @ERR_SSL_CIPHER_standard_name + {$ifend} + else + {$ifend} + {$if declared(SSL_CIPHER_standard_name_removed)} + if SSL_CIPHER_standard_name_removed <= LibVersion then + {$if declared(_SSL_CIPHER_standard_name)} + SSL_CIPHER_standard_name := @_SSL_CIPHER_standard_name + {$else} + {$IF declared(ERR_SSL_CIPHER_standard_name)} + SSL_CIPHER_standard_name := @ERR_SSL_CIPHER_standard_name + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CIPHER_standard_name) and Assigned(AFailed) then + AFailed.Add('SSL_CIPHER_standard_name'); + end; + + + if not assigned(OPENSSL_cipher_name) then + begin + {$if declared(OPENSSL_cipher_name_introduced)} + if LibVersion < OPENSSL_cipher_name_introduced then + {$if declared(FC_OPENSSL_cipher_name)} + OPENSSL_cipher_name := @FC_OPENSSL_cipher_name + {$else} + OPENSSL_cipher_name := @ERR_OPENSSL_cipher_name + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_cipher_name_removed)} + if OPENSSL_cipher_name_removed <= LibVersion then + {$if declared(_OPENSSL_cipher_name)} + OPENSSL_cipher_name := @_OPENSSL_cipher_name + {$else} + {$IF declared(ERR_OPENSSL_cipher_name)} + OPENSSL_cipher_name := @ERR_OPENSSL_cipher_name + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_cipher_name) and Assigned(AFailed) then + AFailed.Add('OPENSSL_cipher_name'); + end; + + + if not assigned(SSL_CIPHER_get_protocol_id) then + begin + {$if declared(SSL_CIPHER_get_protocol_id_introduced)} + if LibVersion < SSL_CIPHER_get_protocol_id_introduced then + {$if declared(FC_SSL_CIPHER_get_protocol_id)} + SSL_CIPHER_get_protocol_id := @FC_SSL_CIPHER_get_protocol_id + {$else} + SSL_CIPHER_get_protocol_id := @ERR_SSL_CIPHER_get_protocol_id + {$ifend} + else + {$ifend} + {$if declared(SSL_CIPHER_get_protocol_id_removed)} + if SSL_CIPHER_get_protocol_id_removed <= LibVersion then + {$if declared(_SSL_CIPHER_get_protocol_id)} + SSL_CIPHER_get_protocol_id := @_SSL_CIPHER_get_protocol_id + {$else} + {$IF declared(ERR_SSL_CIPHER_get_protocol_id)} + SSL_CIPHER_get_protocol_id := @ERR_SSL_CIPHER_get_protocol_id + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CIPHER_get_protocol_id) and Assigned(AFailed) then + AFailed.Add('SSL_CIPHER_get_protocol_id'); + end; + + + if not assigned(SSL_CIPHER_get_kx_nid) then + begin + {$if declared(SSL_CIPHER_get_kx_nid_introduced)} + if LibVersion < SSL_CIPHER_get_kx_nid_introduced then + {$if declared(FC_SSL_CIPHER_get_kx_nid)} + SSL_CIPHER_get_kx_nid := @FC_SSL_CIPHER_get_kx_nid + {$else} + SSL_CIPHER_get_kx_nid := @ERR_SSL_CIPHER_get_kx_nid + {$ifend} + else + {$ifend} + {$if declared(SSL_CIPHER_get_kx_nid_removed)} + if SSL_CIPHER_get_kx_nid_removed <= LibVersion then + {$if declared(_SSL_CIPHER_get_kx_nid)} + SSL_CIPHER_get_kx_nid := @_SSL_CIPHER_get_kx_nid + {$else} + {$IF declared(ERR_SSL_CIPHER_get_kx_nid)} + SSL_CIPHER_get_kx_nid := @ERR_SSL_CIPHER_get_kx_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CIPHER_get_kx_nid) and Assigned(AFailed) then + AFailed.Add('SSL_CIPHER_get_kx_nid'); + end; + + + if not assigned(SSL_CIPHER_get_auth_nid) then + begin + {$if declared(SSL_CIPHER_get_auth_nid_introduced)} + if LibVersion < SSL_CIPHER_get_auth_nid_introduced then + {$if declared(FC_SSL_CIPHER_get_auth_nid)} + SSL_CIPHER_get_auth_nid := @FC_SSL_CIPHER_get_auth_nid + {$else} + SSL_CIPHER_get_auth_nid := @ERR_SSL_CIPHER_get_auth_nid + {$ifend} + else + {$ifend} + {$if declared(SSL_CIPHER_get_auth_nid_removed)} + if SSL_CIPHER_get_auth_nid_removed <= LibVersion then + {$if declared(_SSL_CIPHER_get_auth_nid)} + SSL_CIPHER_get_auth_nid := @_SSL_CIPHER_get_auth_nid + {$else} + {$IF declared(ERR_SSL_CIPHER_get_auth_nid)} + SSL_CIPHER_get_auth_nid := @ERR_SSL_CIPHER_get_auth_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CIPHER_get_auth_nid) and Assigned(AFailed) then + AFailed.Add('SSL_CIPHER_get_auth_nid'); + end; + + + if not assigned(SSL_CIPHER_get_handshake_digest) then + begin + {$if declared(SSL_CIPHER_get_handshake_digest_introduced)} + if LibVersion < SSL_CIPHER_get_handshake_digest_introduced then + {$if declared(FC_SSL_CIPHER_get_handshake_digest)} + SSL_CIPHER_get_handshake_digest := @FC_SSL_CIPHER_get_handshake_digest + {$else} + SSL_CIPHER_get_handshake_digest := @ERR_SSL_CIPHER_get_handshake_digest + {$ifend} + else + {$ifend} + {$if declared(SSL_CIPHER_get_handshake_digest_removed)} + if SSL_CIPHER_get_handshake_digest_removed <= LibVersion then + {$if declared(_SSL_CIPHER_get_handshake_digest)} + SSL_CIPHER_get_handshake_digest := @_SSL_CIPHER_get_handshake_digest + {$else} + {$IF declared(ERR_SSL_CIPHER_get_handshake_digest)} + SSL_CIPHER_get_handshake_digest := @ERR_SSL_CIPHER_get_handshake_digest + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CIPHER_get_handshake_digest) and Assigned(AFailed) then + AFailed.Add('SSL_CIPHER_get_handshake_digest'); + end; + + + if not assigned(SSL_CIPHER_is_aead) then + begin + {$if declared(SSL_CIPHER_is_aead_introduced)} + if LibVersion < SSL_CIPHER_is_aead_introduced then + {$if declared(FC_SSL_CIPHER_is_aead)} + SSL_CIPHER_is_aead := @FC_SSL_CIPHER_is_aead + {$else} + SSL_CIPHER_is_aead := @ERR_SSL_CIPHER_is_aead + {$ifend} + else + {$ifend} + {$if declared(SSL_CIPHER_is_aead_removed)} + if SSL_CIPHER_is_aead_removed <= LibVersion then + {$if declared(_SSL_CIPHER_is_aead)} + SSL_CIPHER_is_aead := @_SSL_CIPHER_is_aead + {$else} + {$IF declared(ERR_SSL_CIPHER_is_aead)} + SSL_CIPHER_is_aead := @ERR_SSL_CIPHER_is_aead + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CIPHER_is_aead) and Assigned(AFailed) then + AFailed.Add('SSL_CIPHER_is_aead'); + end; + + + if not assigned(SSL_has_pending) then + begin + {$if declared(SSL_has_pending_introduced)} + if LibVersion < SSL_has_pending_introduced then + {$if declared(FC_SSL_has_pending)} + SSL_has_pending := @FC_SSL_has_pending + {$else} + SSL_has_pending := @ERR_SSL_has_pending + {$ifend} + else + {$ifend} + {$if declared(SSL_has_pending_removed)} + if SSL_has_pending_removed <= LibVersion then + {$if declared(_SSL_has_pending)} + SSL_has_pending := @_SSL_has_pending + {$else} + {$IF declared(ERR_SSL_has_pending)} + SSL_has_pending := @ERR_SSL_has_pending + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_has_pending) and Assigned(AFailed) then + AFailed.Add('SSL_has_pending'); + end; + + + if not assigned(SSL_set0_rbio) then + begin + {$if declared(SSL_set0_rbio_introduced)} + if LibVersion < SSL_set0_rbio_introduced then + {$if declared(FC_SSL_set0_rbio)} + SSL_set0_rbio := @FC_SSL_set0_rbio + {$else} + SSL_set0_rbio := @ERR_SSL_set0_rbio + {$ifend} + else + {$ifend} + {$if declared(SSL_set0_rbio_removed)} + if SSL_set0_rbio_removed <= LibVersion then + {$if declared(_SSL_set0_rbio)} + SSL_set0_rbio := @_SSL_set0_rbio + {$else} + {$IF declared(ERR_SSL_set0_rbio)} + SSL_set0_rbio := @ERR_SSL_set0_rbio + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set0_rbio) and Assigned(AFailed) then + AFailed.Add('SSL_set0_rbio'); + end; + + + if not assigned(SSL_set0_wbio) then + begin + {$if declared(SSL_set0_wbio_introduced)} + if LibVersion < SSL_set0_wbio_introduced then + {$if declared(FC_SSL_set0_wbio)} + SSL_set0_wbio := @FC_SSL_set0_wbio + {$else} + SSL_set0_wbio := @ERR_SSL_set0_wbio + {$ifend} + else + {$ifend} + {$if declared(SSL_set0_wbio_removed)} + if SSL_set0_wbio_removed <= LibVersion then + {$if declared(_SSL_set0_wbio)} + SSL_set0_wbio := @_SSL_set0_wbio + {$else} + {$IF declared(ERR_SSL_set0_wbio)} + SSL_set0_wbio := @ERR_SSL_set0_wbio + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set0_wbio) and Assigned(AFailed) then + AFailed.Add('SSL_set0_wbio'); + end; + + + if not assigned(SSL_CTX_set_ciphersuites) then + begin + {$if declared(SSL_CTX_set_ciphersuites_introduced)} + if LibVersion < SSL_CTX_set_ciphersuites_introduced then + {$if declared(FC_SSL_CTX_set_ciphersuites)} + SSL_CTX_set_ciphersuites := @FC_SSL_CTX_set_ciphersuites + {$else} + SSL_CTX_set_ciphersuites := @ERR_SSL_CTX_set_ciphersuites + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_ciphersuites_removed)} + if SSL_CTX_set_ciphersuites_removed <= LibVersion then + {$if declared(_SSL_CTX_set_ciphersuites)} + SSL_CTX_set_ciphersuites := @_SSL_CTX_set_ciphersuites + {$else} + {$IF declared(ERR_SSL_CTX_set_ciphersuites)} + SSL_CTX_set_ciphersuites := @ERR_SSL_CTX_set_ciphersuites + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_ciphersuites) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_ciphersuites'); + end; + + + if not assigned(SSL_set_ciphersuites) then + begin + {$if declared(SSL_set_ciphersuites_introduced)} + if LibVersion < SSL_set_ciphersuites_introduced then + {$if declared(FC_SSL_set_ciphersuites)} + SSL_set_ciphersuites := @FC_SSL_set_ciphersuites + {$else} + SSL_set_ciphersuites := @ERR_SSL_set_ciphersuites + {$ifend} + else + {$ifend} + {$if declared(SSL_set_ciphersuites_removed)} + if SSL_set_ciphersuites_removed <= LibVersion then + {$if declared(_SSL_set_ciphersuites)} + SSL_set_ciphersuites := @_SSL_set_ciphersuites + {$else} + {$IF declared(ERR_SSL_set_ciphersuites)} + SSL_set_ciphersuites := @ERR_SSL_set_ciphersuites + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_ciphersuites) and Assigned(AFailed) then + AFailed.Add('SSL_set_ciphersuites'); + end; + + + if not assigned(SSL_CTX_use_serverinfo_ex) then + begin + {$if declared(SSL_CTX_use_serverinfo_ex_introduced)} + if LibVersion < SSL_CTX_use_serverinfo_ex_introduced then + {$if declared(FC_SSL_CTX_use_serverinfo_ex)} + SSL_CTX_use_serverinfo_ex := @FC_SSL_CTX_use_serverinfo_ex + {$else} + SSL_CTX_use_serverinfo_ex := @ERR_SSL_CTX_use_serverinfo_ex + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_use_serverinfo_ex_removed)} + if SSL_CTX_use_serverinfo_ex_removed <= LibVersion then + {$if declared(_SSL_CTX_use_serverinfo_ex)} + SSL_CTX_use_serverinfo_ex := @_SSL_CTX_use_serverinfo_ex + {$else} + {$IF declared(ERR_SSL_CTX_use_serverinfo_ex)} + SSL_CTX_use_serverinfo_ex := @ERR_SSL_CTX_use_serverinfo_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_use_serverinfo_ex) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_use_serverinfo_ex'); + end; + + + if not assigned(SSL_use_certificate_chain_file) then + begin + {$if declared(SSL_use_certificate_chain_file_introduced)} + if LibVersion < SSL_use_certificate_chain_file_introduced then + {$if declared(FC_SSL_use_certificate_chain_file)} + SSL_use_certificate_chain_file := @FC_SSL_use_certificate_chain_file + {$else} + SSL_use_certificate_chain_file := @ERR_SSL_use_certificate_chain_file + {$ifend} + else + {$ifend} + {$if declared(SSL_use_certificate_chain_file_removed)} + if SSL_use_certificate_chain_file_removed <= LibVersion then + {$if declared(_SSL_use_certificate_chain_file)} + SSL_use_certificate_chain_file := @_SSL_use_certificate_chain_file + {$else} + {$IF declared(ERR_SSL_use_certificate_chain_file)} + SSL_use_certificate_chain_file := @ERR_SSL_use_certificate_chain_file + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_use_certificate_chain_file) and Assigned(AFailed) then + AFailed.Add('SSL_use_certificate_chain_file'); + end; + + + if not assigned(SSL_load_error_strings) then + begin + {$if declared(SSL_load_error_strings_introduced)} + if LibVersion < SSL_load_error_strings_introduced then + {$if declared(FC_SSL_load_error_strings)} + SSL_load_error_strings := @FC_SSL_load_error_strings + {$else} + SSL_load_error_strings := @ERR_SSL_load_error_strings + {$ifend} + else + {$ifend} + {$if declared(SSL_load_error_strings_removed)} + if SSL_load_error_strings_removed <= LibVersion then + {$if declared(_SSL_load_error_strings)} + SSL_load_error_strings := @_SSL_load_error_strings + {$else} + {$IF declared(ERR_SSL_load_error_strings)} + SSL_load_error_strings := @ERR_SSL_load_error_strings + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_load_error_strings) and Assigned(AFailed) then + AFailed.Add('SSL_load_error_strings'); + end; + + + if not assigned(SSL_SESSION_get_protocol_version) then + begin + {$if declared(SSL_SESSION_get_protocol_version_introduced)} + if LibVersion < SSL_SESSION_get_protocol_version_introduced then + {$if declared(FC_SSL_SESSION_get_protocol_version)} + SSL_SESSION_get_protocol_version := @FC_SSL_SESSION_get_protocol_version + {$else} + SSL_SESSION_get_protocol_version := @ERR_SSL_SESSION_get_protocol_version + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_get_protocol_version_removed)} + if SSL_SESSION_get_protocol_version_removed <= LibVersion then + {$if declared(_SSL_SESSION_get_protocol_version)} + SSL_SESSION_get_protocol_version := @_SSL_SESSION_get_protocol_version + {$else} + {$IF declared(ERR_SSL_SESSION_get_protocol_version)} + SSL_SESSION_get_protocol_version := @ERR_SSL_SESSION_get_protocol_version + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_get_protocol_version) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_get_protocol_version'); + end; + + + if not assigned(SSL_SESSION_set_protocol_version) then + begin + {$if declared(SSL_SESSION_set_protocol_version_introduced)} + if LibVersion < SSL_SESSION_set_protocol_version_introduced then + {$if declared(FC_SSL_SESSION_set_protocol_version)} + SSL_SESSION_set_protocol_version := @FC_SSL_SESSION_set_protocol_version + {$else} + SSL_SESSION_set_protocol_version := @ERR_SSL_SESSION_set_protocol_version + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_set_protocol_version_removed)} + if SSL_SESSION_set_protocol_version_removed <= LibVersion then + {$if declared(_SSL_SESSION_set_protocol_version)} + SSL_SESSION_set_protocol_version := @_SSL_SESSION_set_protocol_version + {$else} + {$IF declared(ERR_SSL_SESSION_set_protocol_version)} + SSL_SESSION_set_protocol_version := @ERR_SSL_SESSION_set_protocol_version + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_set_protocol_version) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_set_protocol_version'); + end; + + + if not assigned(SSL_SESSION_get0_hostname) then + begin + {$if declared(SSL_SESSION_get0_hostname_introduced)} + if LibVersion < SSL_SESSION_get0_hostname_introduced then + {$if declared(FC_SSL_SESSION_get0_hostname)} + SSL_SESSION_get0_hostname := @FC_SSL_SESSION_get0_hostname + {$else} + SSL_SESSION_get0_hostname := @ERR_SSL_SESSION_get0_hostname + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_get0_hostname_removed)} + if SSL_SESSION_get0_hostname_removed <= LibVersion then + {$if declared(_SSL_SESSION_get0_hostname)} + SSL_SESSION_get0_hostname := @_SSL_SESSION_get0_hostname + {$else} + {$IF declared(ERR_SSL_SESSION_get0_hostname)} + SSL_SESSION_get0_hostname := @ERR_SSL_SESSION_get0_hostname + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_get0_hostname) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_get0_hostname'); + end; + + + if not assigned(SSL_SESSION_set1_hostname) then + begin + {$if declared(SSL_SESSION_set1_hostname_introduced)} + if LibVersion < SSL_SESSION_set1_hostname_introduced then + {$if declared(FC_SSL_SESSION_set1_hostname)} + SSL_SESSION_set1_hostname := @FC_SSL_SESSION_set1_hostname + {$else} + SSL_SESSION_set1_hostname := @ERR_SSL_SESSION_set1_hostname + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_set1_hostname_removed)} + if SSL_SESSION_set1_hostname_removed <= LibVersion then + {$if declared(_SSL_SESSION_set1_hostname)} + SSL_SESSION_set1_hostname := @_SSL_SESSION_set1_hostname + {$else} + {$IF declared(ERR_SSL_SESSION_set1_hostname)} + SSL_SESSION_set1_hostname := @ERR_SSL_SESSION_set1_hostname + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_set1_hostname) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_set1_hostname'); + end; + + + if not assigned(SSL_SESSION_get0_alpn_selected) then + begin + {$if declared(SSL_SESSION_get0_alpn_selected_introduced)} + if LibVersion < SSL_SESSION_get0_alpn_selected_introduced then + {$if declared(FC_SSL_SESSION_get0_alpn_selected)} + SSL_SESSION_get0_alpn_selected := @FC_SSL_SESSION_get0_alpn_selected + {$else} + SSL_SESSION_get0_alpn_selected := @ERR_SSL_SESSION_get0_alpn_selected + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_get0_alpn_selected_removed)} + if SSL_SESSION_get0_alpn_selected_removed <= LibVersion then + {$if declared(_SSL_SESSION_get0_alpn_selected)} + SSL_SESSION_get0_alpn_selected := @_SSL_SESSION_get0_alpn_selected + {$else} + {$IF declared(ERR_SSL_SESSION_get0_alpn_selected)} + SSL_SESSION_get0_alpn_selected := @ERR_SSL_SESSION_get0_alpn_selected + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_get0_alpn_selected) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_get0_alpn_selected'); + end; + + + if not assigned(SSL_SESSION_set1_alpn_selected) then + begin + {$if declared(SSL_SESSION_set1_alpn_selected_introduced)} + if LibVersion < SSL_SESSION_set1_alpn_selected_introduced then + {$if declared(FC_SSL_SESSION_set1_alpn_selected)} + SSL_SESSION_set1_alpn_selected := @FC_SSL_SESSION_set1_alpn_selected + {$else} + SSL_SESSION_set1_alpn_selected := @ERR_SSL_SESSION_set1_alpn_selected + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_set1_alpn_selected_removed)} + if SSL_SESSION_set1_alpn_selected_removed <= LibVersion then + {$if declared(_SSL_SESSION_set1_alpn_selected)} + SSL_SESSION_set1_alpn_selected := @_SSL_SESSION_set1_alpn_selected + {$else} + {$IF declared(ERR_SSL_SESSION_set1_alpn_selected)} + SSL_SESSION_set1_alpn_selected := @ERR_SSL_SESSION_set1_alpn_selected + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_set1_alpn_selected) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_set1_alpn_selected'); + end; + + + if not assigned(SSL_SESSION_get0_cipher) then + begin + {$if declared(SSL_SESSION_get0_cipher_introduced)} + if LibVersion < SSL_SESSION_get0_cipher_introduced then + {$if declared(FC_SSL_SESSION_get0_cipher)} + SSL_SESSION_get0_cipher := @FC_SSL_SESSION_get0_cipher + {$else} + SSL_SESSION_get0_cipher := @ERR_SSL_SESSION_get0_cipher + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_get0_cipher_removed)} + if SSL_SESSION_get0_cipher_removed <= LibVersion then + {$if declared(_SSL_SESSION_get0_cipher)} + SSL_SESSION_get0_cipher := @_SSL_SESSION_get0_cipher + {$else} + {$IF declared(ERR_SSL_SESSION_get0_cipher)} + SSL_SESSION_get0_cipher := @ERR_SSL_SESSION_get0_cipher + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_get0_cipher) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_get0_cipher'); + end; + + + if not assigned(SSL_SESSION_set_cipher) then + begin + {$if declared(SSL_SESSION_set_cipher_introduced)} + if LibVersion < SSL_SESSION_set_cipher_introduced then + {$if declared(FC_SSL_SESSION_set_cipher)} + SSL_SESSION_set_cipher := @FC_SSL_SESSION_set_cipher + {$else} + SSL_SESSION_set_cipher := @ERR_SSL_SESSION_set_cipher + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_set_cipher_removed)} + if SSL_SESSION_set_cipher_removed <= LibVersion then + {$if declared(_SSL_SESSION_set_cipher)} + SSL_SESSION_set_cipher := @_SSL_SESSION_set_cipher + {$else} + {$IF declared(ERR_SSL_SESSION_set_cipher)} + SSL_SESSION_set_cipher := @ERR_SSL_SESSION_set_cipher + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_set_cipher) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_set_cipher'); + end; + + + if not assigned(SSL_SESSION_has_ticket) then + begin + {$if declared(SSL_SESSION_has_ticket_introduced)} + if LibVersion < SSL_SESSION_has_ticket_introduced then + {$if declared(FC_SSL_SESSION_has_ticket)} + SSL_SESSION_has_ticket := @FC_SSL_SESSION_has_ticket + {$else} + SSL_SESSION_has_ticket := @ERR_SSL_SESSION_has_ticket + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_has_ticket_removed)} + if SSL_SESSION_has_ticket_removed <= LibVersion then + {$if declared(_SSL_SESSION_has_ticket)} + SSL_SESSION_has_ticket := @_SSL_SESSION_has_ticket + {$else} + {$IF declared(ERR_SSL_SESSION_has_ticket)} + SSL_SESSION_has_ticket := @ERR_SSL_SESSION_has_ticket + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_has_ticket) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_has_ticket'); + end; + + + if not assigned(SSL_SESSION_get_ticket_lifetime_hint) then + begin + {$if declared(SSL_SESSION_get_ticket_lifetime_hint_introduced)} + if LibVersion < SSL_SESSION_get_ticket_lifetime_hint_introduced then + {$if declared(FC_SSL_SESSION_get_ticket_lifetime_hint)} + SSL_SESSION_get_ticket_lifetime_hint := @FC_SSL_SESSION_get_ticket_lifetime_hint + {$else} + SSL_SESSION_get_ticket_lifetime_hint := @ERR_SSL_SESSION_get_ticket_lifetime_hint + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_get_ticket_lifetime_hint_removed)} + if SSL_SESSION_get_ticket_lifetime_hint_removed <= LibVersion then + {$if declared(_SSL_SESSION_get_ticket_lifetime_hint)} + SSL_SESSION_get_ticket_lifetime_hint := @_SSL_SESSION_get_ticket_lifetime_hint + {$else} + {$IF declared(ERR_SSL_SESSION_get_ticket_lifetime_hint)} + SSL_SESSION_get_ticket_lifetime_hint := @ERR_SSL_SESSION_get_ticket_lifetime_hint + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_get_ticket_lifetime_hint) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_get_ticket_lifetime_hint'); + end; + + + if not assigned(SSL_SESSION_get0_ticket) then + begin + {$if declared(SSL_SESSION_get0_ticket_introduced)} + if LibVersion < SSL_SESSION_get0_ticket_introduced then + {$if declared(FC_SSL_SESSION_get0_ticket)} + SSL_SESSION_get0_ticket := @FC_SSL_SESSION_get0_ticket + {$else} + SSL_SESSION_get0_ticket := @ERR_SSL_SESSION_get0_ticket + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_get0_ticket_removed)} + if SSL_SESSION_get0_ticket_removed <= LibVersion then + {$if declared(_SSL_SESSION_get0_ticket)} + SSL_SESSION_get0_ticket := @_SSL_SESSION_get0_ticket + {$else} + {$IF declared(ERR_SSL_SESSION_get0_ticket)} + SSL_SESSION_get0_ticket := @ERR_SSL_SESSION_get0_ticket + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_get0_ticket) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_get0_ticket'); + end; + + + if not assigned(SSL_SESSION_get_max_early_data) then + begin + {$if declared(SSL_SESSION_get_max_early_data_introduced)} + if LibVersion < SSL_SESSION_get_max_early_data_introduced then + {$if declared(FC_SSL_SESSION_get_max_early_data)} + SSL_SESSION_get_max_early_data := @FC_SSL_SESSION_get_max_early_data + {$else} + SSL_SESSION_get_max_early_data := @ERR_SSL_SESSION_get_max_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_get_max_early_data_removed)} + if SSL_SESSION_get_max_early_data_removed <= LibVersion then + {$if declared(_SSL_SESSION_get_max_early_data)} + SSL_SESSION_get_max_early_data := @_SSL_SESSION_get_max_early_data + {$else} + {$IF declared(ERR_SSL_SESSION_get_max_early_data)} + SSL_SESSION_get_max_early_data := @ERR_SSL_SESSION_get_max_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_get_max_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_get_max_early_data'); + end; + + + if not assigned(SSL_SESSION_set_max_early_data) then + begin + {$if declared(SSL_SESSION_set_max_early_data_introduced)} + if LibVersion < SSL_SESSION_set_max_early_data_introduced then + {$if declared(FC_SSL_SESSION_set_max_early_data)} + SSL_SESSION_set_max_early_data := @FC_SSL_SESSION_set_max_early_data + {$else} + SSL_SESSION_set_max_early_data := @ERR_SSL_SESSION_set_max_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_set_max_early_data_removed)} + if SSL_SESSION_set_max_early_data_removed <= LibVersion then + {$if declared(_SSL_SESSION_set_max_early_data)} + SSL_SESSION_set_max_early_data := @_SSL_SESSION_set_max_early_data + {$else} + {$IF declared(ERR_SSL_SESSION_set_max_early_data)} + SSL_SESSION_set_max_early_data := @ERR_SSL_SESSION_set_max_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_set_max_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_set_max_early_data'); + end; + + + if not assigned(SSL_SESSION_set1_id) then + begin + {$if declared(SSL_SESSION_set1_id_introduced)} + if LibVersion < SSL_SESSION_set1_id_introduced then + {$if declared(FC_SSL_SESSION_set1_id)} + SSL_SESSION_set1_id := @FC_SSL_SESSION_set1_id + {$else} + SSL_SESSION_set1_id := @ERR_SSL_SESSION_set1_id + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_set1_id_removed)} + if SSL_SESSION_set1_id_removed <= LibVersion then + {$if declared(_SSL_SESSION_set1_id)} + SSL_SESSION_set1_id := @_SSL_SESSION_set1_id + {$else} + {$IF declared(ERR_SSL_SESSION_set1_id)} + SSL_SESSION_set1_id := @ERR_SSL_SESSION_set1_id + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_set1_id) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_set1_id'); + end; + + + if not assigned(SSL_SESSION_is_resumable) then + begin + {$if declared(SSL_SESSION_is_resumable_introduced)} + if LibVersion < SSL_SESSION_is_resumable_introduced then + {$if declared(FC_SSL_SESSION_is_resumable)} + SSL_SESSION_is_resumable := @FC_SSL_SESSION_is_resumable + {$else} + SSL_SESSION_is_resumable := @ERR_SSL_SESSION_is_resumable + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_is_resumable_removed)} + if SSL_SESSION_is_resumable_removed <= LibVersion then + {$if declared(_SSL_SESSION_is_resumable)} + SSL_SESSION_is_resumable := @_SSL_SESSION_is_resumable + {$else} + {$IF declared(ERR_SSL_SESSION_is_resumable)} + SSL_SESSION_is_resumable := @ERR_SSL_SESSION_is_resumable + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_is_resumable) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_is_resumable'); + end; + + + if not assigned(SSL_SESSION_dup) then + begin + {$if declared(SSL_SESSION_dup_introduced)} + if LibVersion < SSL_SESSION_dup_introduced then + {$if declared(FC_SSL_SESSION_dup)} + SSL_SESSION_dup := @FC_SSL_SESSION_dup + {$else} + SSL_SESSION_dup := @ERR_SSL_SESSION_dup + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_dup_removed)} + if SSL_SESSION_dup_removed <= LibVersion then + {$if declared(_SSL_SESSION_dup)} + SSL_SESSION_dup := @_SSL_SESSION_dup + {$else} + {$IF declared(ERR_SSL_SESSION_dup)} + SSL_SESSION_dup := @ERR_SSL_SESSION_dup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_dup) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_dup'); + end; + + + if not assigned(SSL_SESSION_get0_id_context) then + begin + {$if declared(SSL_SESSION_get0_id_context_introduced)} + if LibVersion < SSL_SESSION_get0_id_context_introduced then + {$if declared(FC_SSL_SESSION_get0_id_context)} + SSL_SESSION_get0_id_context := @FC_SSL_SESSION_get0_id_context + {$else} + SSL_SESSION_get0_id_context := @ERR_SSL_SESSION_get0_id_context + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_get0_id_context_removed)} + if SSL_SESSION_get0_id_context_removed <= LibVersion then + {$if declared(_SSL_SESSION_get0_id_context)} + SSL_SESSION_get0_id_context := @_SSL_SESSION_get0_id_context + {$else} + {$IF declared(ERR_SSL_SESSION_get0_id_context)} + SSL_SESSION_get0_id_context := @ERR_SSL_SESSION_get0_id_context + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_get0_id_context) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_get0_id_context'); + end; + + + if not assigned(SSL_SESSION_print_keylog) then + begin + {$if declared(SSL_SESSION_print_keylog_introduced)} + if LibVersion < SSL_SESSION_print_keylog_introduced then + {$if declared(FC_SSL_SESSION_print_keylog)} + SSL_SESSION_print_keylog := @FC_SSL_SESSION_print_keylog + {$else} + SSL_SESSION_print_keylog := @ERR_SSL_SESSION_print_keylog + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_print_keylog_removed)} + if SSL_SESSION_print_keylog_removed <= LibVersion then + {$if declared(_SSL_SESSION_print_keylog)} + SSL_SESSION_print_keylog := @_SSL_SESSION_print_keylog + {$else} + {$IF declared(ERR_SSL_SESSION_print_keylog)} + SSL_SESSION_print_keylog := @ERR_SSL_SESSION_print_keylog + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_print_keylog) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_print_keylog'); + end; + + + if not assigned(SSL_SESSION_up_ref) then + begin + {$if declared(SSL_SESSION_up_ref_introduced)} + if LibVersion < SSL_SESSION_up_ref_introduced then + {$if declared(FC_SSL_SESSION_up_ref)} + SSL_SESSION_up_ref := @FC_SSL_SESSION_up_ref + {$else} + SSL_SESSION_up_ref := @ERR_SSL_SESSION_up_ref + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_up_ref_removed)} + if SSL_SESSION_up_ref_removed <= LibVersion then + {$if declared(_SSL_SESSION_up_ref)} + SSL_SESSION_up_ref := @_SSL_SESSION_up_ref + {$else} + {$IF declared(ERR_SSL_SESSION_up_ref)} + SSL_SESSION_up_ref := @ERR_SSL_SESSION_up_ref + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_up_ref) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_up_ref'); + end; + + + if not assigned(SSL_get_peer_certificate) then + begin + {$if declared(SSL_get_peer_certificate_introduced)} + if LibVersion < SSL_get_peer_certificate_introduced then + {$if declared(FC_SSL_get_peer_certificate)} + SSL_get_peer_certificate := @FC_SSL_get_peer_certificate + {$else} + SSL_get_peer_certificate := @ERR_SSL_get_peer_certificate + {$ifend} + else + {$ifend} + {$if declared(SSL_get_peer_certificate_removed)} + if SSL_get_peer_certificate_removed <= LibVersion then + {$if declared(_SSL_get_peer_certificate)} + SSL_get_peer_certificate := @_SSL_get_peer_certificate + {$else} + {$IF declared(ERR_SSL_get_peer_certificate)} + SSL_get_peer_certificate := @ERR_SSL_get_peer_certificate + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_peer_certificate) and Assigned(AFailed) then + AFailed.Add('SSL_get_peer_certificate'); + end; + + + if not assigned(SSL_CTX_set_default_passwd_cb) then + begin + {$if declared(SSL_CTX_set_default_passwd_cb_introduced)} + if LibVersion < SSL_CTX_set_default_passwd_cb_introduced then + {$if declared(FC_SSL_CTX_set_default_passwd_cb)} + SSL_CTX_set_default_passwd_cb := @FC_SSL_CTX_set_default_passwd_cb + {$else} + SSL_CTX_set_default_passwd_cb := @ERR_SSL_CTX_set_default_passwd_cb + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_default_passwd_cb_removed)} + if SSL_CTX_set_default_passwd_cb_removed <= LibVersion then + {$if declared(_SSL_CTX_set_default_passwd_cb)} + SSL_CTX_set_default_passwd_cb := @_SSL_CTX_set_default_passwd_cb + {$else} + {$IF declared(ERR_SSL_CTX_set_default_passwd_cb)} + SSL_CTX_set_default_passwd_cb := @ERR_SSL_CTX_set_default_passwd_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_default_passwd_cb) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_default_passwd_cb'); + end; + + + if not assigned(SSL_CTX_set_default_passwd_cb_userdata) then + begin + {$if declared(SSL_CTX_set_default_passwd_cb_userdata_introduced)} + if LibVersion < SSL_CTX_set_default_passwd_cb_userdata_introduced then + {$if declared(FC_SSL_CTX_set_default_passwd_cb_userdata)} + SSL_CTX_set_default_passwd_cb_userdata := @FC_SSL_CTX_set_default_passwd_cb_userdata + {$else} + SSL_CTX_set_default_passwd_cb_userdata := @ERR_SSL_CTX_set_default_passwd_cb_userdata + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_default_passwd_cb_userdata_removed)} + if SSL_CTX_set_default_passwd_cb_userdata_removed <= LibVersion then + {$if declared(_SSL_CTX_set_default_passwd_cb_userdata)} + SSL_CTX_set_default_passwd_cb_userdata := @_SSL_CTX_set_default_passwd_cb_userdata + {$else} + {$IF declared(ERR_SSL_CTX_set_default_passwd_cb_userdata)} + SSL_CTX_set_default_passwd_cb_userdata := @ERR_SSL_CTX_set_default_passwd_cb_userdata + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_default_passwd_cb_userdata) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_default_passwd_cb_userdata'); + end; + + + if not assigned(SSL_CTX_get_default_passwd_cb) then + begin + {$if declared(SSL_CTX_get_default_passwd_cb_introduced)} + if LibVersion < SSL_CTX_get_default_passwd_cb_introduced then + {$if declared(FC_SSL_CTX_get_default_passwd_cb)} + SSL_CTX_get_default_passwd_cb := @FC_SSL_CTX_get_default_passwd_cb + {$else} + SSL_CTX_get_default_passwd_cb := @ERR_SSL_CTX_get_default_passwd_cb + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_default_passwd_cb_removed)} + if SSL_CTX_get_default_passwd_cb_removed <= LibVersion then + {$if declared(_SSL_CTX_get_default_passwd_cb)} + SSL_CTX_get_default_passwd_cb := @_SSL_CTX_get_default_passwd_cb + {$else} + {$IF declared(ERR_SSL_CTX_get_default_passwd_cb)} + SSL_CTX_get_default_passwd_cb := @ERR_SSL_CTX_get_default_passwd_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_default_passwd_cb) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_default_passwd_cb'); + end; + + + if not assigned(SSL_CTX_get_default_passwd_cb_userdata) then + begin + {$if declared(SSL_CTX_get_default_passwd_cb_userdata_introduced)} + if LibVersion < SSL_CTX_get_default_passwd_cb_userdata_introduced then + {$if declared(FC_SSL_CTX_get_default_passwd_cb_userdata)} + SSL_CTX_get_default_passwd_cb_userdata := @FC_SSL_CTX_get_default_passwd_cb_userdata + {$else} + SSL_CTX_get_default_passwd_cb_userdata := @ERR_SSL_CTX_get_default_passwd_cb_userdata + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_default_passwd_cb_userdata_removed)} + if SSL_CTX_get_default_passwd_cb_userdata_removed <= LibVersion then + {$if declared(_SSL_CTX_get_default_passwd_cb_userdata)} + SSL_CTX_get_default_passwd_cb_userdata := @_SSL_CTX_get_default_passwd_cb_userdata + {$else} + {$IF declared(ERR_SSL_CTX_get_default_passwd_cb_userdata)} + SSL_CTX_get_default_passwd_cb_userdata := @ERR_SSL_CTX_get_default_passwd_cb_userdata + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_default_passwd_cb_userdata) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_default_passwd_cb_userdata'); + end; + + + if not assigned(SSL_set_default_passwd_cb) then + begin + {$if declared(SSL_set_default_passwd_cb_introduced)} + if LibVersion < SSL_set_default_passwd_cb_introduced then + {$if declared(FC_SSL_set_default_passwd_cb)} + SSL_set_default_passwd_cb := @FC_SSL_set_default_passwd_cb + {$else} + SSL_set_default_passwd_cb := @ERR_SSL_set_default_passwd_cb + {$ifend} + else + {$ifend} + {$if declared(SSL_set_default_passwd_cb_removed)} + if SSL_set_default_passwd_cb_removed <= LibVersion then + {$if declared(_SSL_set_default_passwd_cb)} + SSL_set_default_passwd_cb := @_SSL_set_default_passwd_cb + {$else} + {$IF declared(ERR_SSL_set_default_passwd_cb)} + SSL_set_default_passwd_cb := @ERR_SSL_set_default_passwd_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_default_passwd_cb) and Assigned(AFailed) then + AFailed.Add('SSL_set_default_passwd_cb'); + end; + + + if not assigned(SSL_set_default_passwd_cb_userdata) then + begin + {$if declared(SSL_set_default_passwd_cb_userdata_introduced)} + if LibVersion < SSL_set_default_passwd_cb_userdata_introduced then + {$if declared(FC_SSL_set_default_passwd_cb_userdata)} + SSL_set_default_passwd_cb_userdata := @FC_SSL_set_default_passwd_cb_userdata + {$else} + SSL_set_default_passwd_cb_userdata := @ERR_SSL_set_default_passwd_cb_userdata + {$ifend} + else + {$ifend} + {$if declared(SSL_set_default_passwd_cb_userdata_removed)} + if SSL_set_default_passwd_cb_userdata_removed <= LibVersion then + {$if declared(_SSL_set_default_passwd_cb_userdata)} + SSL_set_default_passwd_cb_userdata := @_SSL_set_default_passwd_cb_userdata + {$else} + {$IF declared(ERR_SSL_set_default_passwd_cb_userdata)} + SSL_set_default_passwd_cb_userdata := @ERR_SSL_set_default_passwd_cb_userdata + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_default_passwd_cb_userdata) and Assigned(AFailed) then + AFailed.Add('SSL_set_default_passwd_cb_userdata'); + end; + + + if not assigned(SSL_get_default_passwd_cb) then + begin + {$if declared(SSL_get_default_passwd_cb_introduced)} + if LibVersion < SSL_get_default_passwd_cb_introduced then + {$if declared(FC_SSL_get_default_passwd_cb)} + SSL_get_default_passwd_cb := @FC_SSL_get_default_passwd_cb + {$else} + SSL_get_default_passwd_cb := @ERR_SSL_get_default_passwd_cb + {$ifend} + else + {$ifend} + {$if declared(SSL_get_default_passwd_cb_removed)} + if SSL_get_default_passwd_cb_removed <= LibVersion then + {$if declared(_SSL_get_default_passwd_cb)} + SSL_get_default_passwd_cb := @_SSL_get_default_passwd_cb + {$else} + {$IF declared(ERR_SSL_get_default_passwd_cb)} + SSL_get_default_passwd_cb := @ERR_SSL_get_default_passwd_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_default_passwd_cb) and Assigned(AFailed) then + AFailed.Add('SSL_get_default_passwd_cb'); + end; + + + if not assigned(SSL_get_default_passwd_cb_userdata) then + begin + {$if declared(SSL_get_default_passwd_cb_userdata_introduced)} + if LibVersion < SSL_get_default_passwd_cb_userdata_introduced then + {$if declared(FC_SSL_get_default_passwd_cb_userdata)} + SSL_get_default_passwd_cb_userdata := @FC_SSL_get_default_passwd_cb_userdata + {$else} + SSL_get_default_passwd_cb_userdata := @ERR_SSL_get_default_passwd_cb_userdata + {$ifend} + else + {$ifend} + {$if declared(SSL_get_default_passwd_cb_userdata_removed)} + if SSL_get_default_passwd_cb_userdata_removed <= LibVersion then + {$if declared(_SSL_get_default_passwd_cb_userdata)} + SSL_get_default_passwd_cb_userdata := @_SSL_get_default_passwd_cb_userdata + {$else} + {$IF declared(ERR_SSL_get_default_passwd_cb_userdata)} + SSL_get_default_passwd_cb_userdata := @ERR_SSL_get_default_passwd_cb_userdata + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_default_passwd_cb_userdata) and Assigned(AFailed) then + AFailed.Add('SSL_get_default_passwd_cb_userdata'); + end; + + + if not assigned(SSL_up_ref) then + begin + {$if declared(SSL_up_ref_introduced)} + if LibVersion < SSL_up_ref_introduced then + {$if declared(FC_SSL_up_ref)} + SSL_up_ref := @FC_SSL_up_ref + {$else} + SSL_up_ref := @ERR_SSL_up_ref + {$ifend} + else + {$ifend} + {$if declared(SSL_up_ref_removed)} + if SSL_up_ref_removed <= LibVersion then + {$if declared(_SSL_up_ref)} + SSL_up_ref := @_SSL_up_ref + {$else} + {$IF declared(ERR_SSL_up_ref)} + SSL_up_ref := @ERR_SSL_up_ref + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_up_ref) and Assigned(AFailed) then + AFailed.Add('SSL_up_ref'); + end; + + + if not assigned(SSL_is_dtls) then + begin + {$if declared(SSL_is_dtls_introduced)} + if LibVersion < SSL_is_dtls_introduced then + {$if declared(FC_SSL_is_dtls)} + SSL_is_dtls := @FC_SSL_is_dtls + {$else} + SSL_is_dtls := @ERR_SSL_is_dtls + {$ifend} + else + {$ifend} + {$if declared(SSL_is_dtls_removed)} + if SSL_is_dtls_removed <= LibVersion then + {$if declared(_SSL_is_dtls)} + SSL_is_dtls := @_SSL_is_dtls + {$else} + {$IF declared(ERR_SSL_is_dtls)} + SSL_is_dtls := @ERR_SSL_is_dtls + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_is_dtls) and Assigned(AFailed) then + AFailed.Add('SSL_is_dtls'); + end; + + + if not assigned(SSL_set1_host) then + begin + {$if declared(SSL_set1_host_introduced)} + if LibVersion < SSL_set1_host_introduced then + {$if declared(FC_SSL_set1_host)} + SSL_set1_host := @FC_SSL_set1_host + {$else} + SSL_set1_host := @ERR_SSL_set1_host + {$ifend} + else + {$ifend} + {$if declared(SSL_set1_host_removed)} + if SSL_set1_host_removed <= LibVersion then + {$if declared(_SSL_set1_host)} + SSL_set1_host := @_SSL_set1_host + {$else} + {$IF declared(ERR_SSL_set1_host)} + SSL_set1_host := @ERR_SSL_set1_host + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set1_host) and Assigned(AFailed) then + AFailed.Add('SSL_set1_host'); + end; + + + if not assigned(SSL_add1_host) then + begin + {$if declared(SSL_add1_host_introduced)} + if LibVersion < SSL_add1_host_introduced then + {$if declared(FC_SSL_add1_host)} + SSL_add1_host := @FC_SSL_add1_host + {$else} + SSL_add1_host := @ERR_SSL_add1_host + {$ifend} + else + {$ifend} + {$if declared(SSL_add1_host_removed)} + if SSL_add1_host_removed <= LibVersion then + {$if declared(_SSL_add1_host)} + SSL_add1_host := @_SSL_add1_host + {$else} + {$IF declared(ERR_SSL_add1_host)} + SSL_add1_host := @ERR_SSL_add1_host + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_add1_host) and Assigned(AFailed) then + AFailed.Add('SSL_add1_host'); + end; + + + if not assigned(SSL_get0_peername) then + begin + {$if declared(SSL_get0_peername_introduced)} + if LibVersion < SSL_get0_peername_introduced then + {$if declared(FC_SSL_get0_peername)} + SSL_get0_peername := @FC_SSL_get0_peername + {$else} + SSL_get0_peername := @ERR_SSL_get0_peername + {$ifend} + else + {$ifend} + {$if declared(SSL_get0_peername_removed)} + if SSL_get0_peername_removed <= LibVersion then + {$if declared(_SSL_get0_peername)} + SSL_get0_peername := @_SSL_get0_peername + {$else} + {$IF declared(ERR_SSL_get0_peername)} + SSL_get0_peername := @ERR_SSL_get0_peername + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get0_peername) and Assigned(AFailed) then + AFailed.Add('SSL_get0_peername'); + end; + + + if not assigned(SSL_set_hostflags) then + begin + {$if declared(SSL_set_hostflags_introduced)} + if LibVersion < SSL_set_hostflags_introduced then + {$if declared(FC_SSL_set_hostflags)} + SSL_set_hostflags := @FC_SSL_set_hostflags + {$else} + SSL_set_hostflags := @ERR_SSL_set_hostflags + {$ifend} + else + {$ifend} + {$if declared(SSL_set_hostflags_removed)} + if SSL_set_hostflags_removed <= LibVersion then + {$if declared(_SSL_set_hostflags)} + SSL_set_hostflags := @_SSL_set_hostflags + {$else} + {$IF declared(ERR_SSL_set_hostflags)} + SSL_set_hostflags := @ERR_SSL_set_hostflags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_hostflags) and Assigned(AFailed) then + AFailed.Add('SSL_set_hostflags'); + end; + + + if not assigned(SSL_CTX_dane_enable) then + begin + {$if declared(SSL_CTX_dane_enable_introduced)} + if LibVersion < SSL_CTX_dane_enable_introduced then + {$if declared(FC_SSL_CTX_dane_enable)} + SSL_CTX_dane_enable := @FC_SSL_CTX_dane_enable + {$else} + SSL_CTX_dane_enable := @ERR_SSL_CTX_dane_enable + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_dane_enable_removed)} + if SSL_CTX_dane_enable_removed <= LibVersion then + {$if declared(_SSL_CTX_dane_enable)} + SSL_CTX_dane_enable := @_SSL_CTX_dane_enable + {$else} + {$IF declared(ERR_SSL_CTX_dane_enable)} + SSL_CTX_dane_enable := @ERR_SSL_CTX_dane_enable + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_dane_enable) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_dane_enable'); + end; + + + if not assigned(SSL_CTX_dane_mtype_set) then + begin + {$if declared(SSL_CTX_dane_mtype_set_introduced)} + if LibVersion < SSL_CTX_dane_mtype_set_introduced then + {$if declared(FC_SSL_CTX_dane_mtype_set)} + SSL_CTX_dane_mtype_set := @FC_SSL_CTX_dane_mtype_set + {$else} + SSL_CTX_dane_mtype_set := @ERR_SSL_CTX_dane_mtype_set + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_dane_mtype_set_removed)} + if SSL_CTX_dane_mtype_set_removed <= LibVersion then + {$if declared(_SSL_CTX_dane_mtype_set)} + SSL_CTX_dane_mtype_set := @_SSL_CTX_dane_mtype_set + {$else} + {$IF declared(ERR_SSL_CTX_dane_mtype_set)} + SSL_CTX_dane_mtype_set := @ERR_SSL_CTX_dane_mtype_set + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_dane_mtype_set) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_dane_mtype_set'); + end; + + + if not assigned(SSL_dane_enable) then + begin + {$if declared(SSL_dane_enable_introduced)} + if LibVersion < SSL_dane_enable_introduced then + {$if declared(FC_SSL_dane_enable)} + SSL_dane_enable := @FC_SSL_dane_enable + {$else} + SSL_dane_enable := @ERR_SSL_dane_enable + {$ifend} + else + {$ifend} + {$if declared(SSL_dane_enable_removed)} + if SSL_dane_enable_removed <= LibVersion then + {$if declared(_SSL_dane_enable)} + SSL_dane_enable := @_SSL_dane_enable + {$else} + {$IF declared(ERR_SSL_dane_enable)} + SSL_dane_enable := @ERR_SSL_dane_enable + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_dane_enable) and Assigned(AFailed) then + AFailed.Add('SSL_dane_enable'); + end; + + + if not assigned(SSL_dane_tlsa_add) then + begin + {$if declared(SSL_dane_tlsa_add_introduced)} + if LibVersion < SSL_dane_tlsa_add_introduced then + {$if declared(FC_SSL_dane_tlsa_add)} + SSL_dane_tlsa_add := @FC_SSL_dane_tlsa_add + {$else} + SSL_dane_tlsa_add := @ERR_SSL_dane_tlsa_add + {$ifend} + else + {$ifend} + {$if declared(SSL_dane_tlsa_add_removed)} + if SSL_dane_tlsa_add_removed <= LibVersion then + {$if declared(_SSL_dane_tlsa_add)} + SSL_dane_tlsa_add := @_SSL_dane_tlsa_add + {$else} + {$IF declared(ERR_SSL_dane_tlsa_add)} + SSL_dane_tlsa_add := @ERR_SSL_dane_tlsa_add + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_dane_tlsa_add) and Assigned(AFailed) then + AFailed.Add('SSL_dane_tlsa_add'); + end; + + + if not assigned(SSL_get0_dane_authority) then + begin + {$if declared(SSL_get0_dane_authority_introduced)} + if LibVersion < SSL_get0_dane_authority_introduced then + {$if declared(FC_SSL_get0_dane_authority)} + SSL_get0_dane_authority := @FC_SSL_get0_dane_authority + {$else} + SSL_get0_dane_authority := @ERR_SSL_get0_dane_authority + {$ifend} + else + {$ifend} + {$if declared(SSL_get0_dane_authority_removed)} + if SSL_get0_dane_authority_removed <= LibVersion then + {$if declared(_SSL_get0_dane_authority)} + SSL_get0_dane_authority := @_SSL_get0_dane_authority + {$else} + {$IF declared(ERR_SSL_get0_dane_authority)} + SSL_get0_dane_authority := @ERR_SSL_get0_dane_authority + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get0_dane_authority) and Assigned(AFailed) then + AFailed.Add('SSL_get0_dane_authority'); + end; + + + if not assigned(SSL_get0_dane_tlsa) then + begin + {$if declared(SSL_get0_dane_tlsa_introduced)} + if LibVersion < SSL_get0_dane_tlsa_introduced then + {$if declared(FC_SSL_get0_dane_tlsa)} + SSL_get0_dane_tlsa := @FC_SSL_get0_dane_tlsa + {$else} + SSL_get0_dane_tlsa := @ERR_SSL_get0_dane_tlsa + {$ifend} + else + {$ifend} + {$if declared(SSL_get0_dane_tlsa_removed)} + if SSL_get0_dane_tlsa_removed <= LibVersion then + {$if declared(_SSL_get0_dane_tlsa)} + SSL_get0_dane_tlsa := @_SSL_get0_dane_tlsa + {$else} + {$IF declared(ERR_SSL_get0_dane_tlsa)} + SSL_get0_dane_tlsa := @ERR_SSL_get0_dane_tlsa + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get0_dane_tlsa) and Assigned(AFailed) then + AFailed.Add('SSL_get0_dane_tlsa'); + end; + + + if not assigned(SSL_get0_dane) then + begin + {$if declared(SSL_get0_dane_introduced)} + if LibVersion < SSL_get0_dane_introduced then + {$if declared(FC_SSL_get0_dane)} + SSL_get0_dane := @FC_SSL_get0_dane + {$else} + SSL_get0_dane := @ERR_SSL_get0_dane + {$ifend} + else + {$ifend} + {$if declared(SSL_get0_dane_removed)} + if SSL_get0_dane_removed <= LibVersion then + {$if declared(_SSL_get0_dane)} + SSL_get0_dane := @_SSL_get0_dane + {$else} + {$IF declared(ERR_SSL_get0_dane)} + SSL_get0_dane := @ERR_SSL_get0_dane + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get0_dane) and Assigned(AFailed) then + AFailed.Add('SSL_get0_dane'); + end; + + + if not assigned(SSL_CTX_dane_set_flags) then + begin + {$if declared(SSL_CTX_dane_set_flags_introduced)} + if LibVersion < SSL_CTX_dane_set_flags_introduced then + {$if declared(FC_SSL_CTX_dane_set_flags)} + SSL_CTX_dane_set_flags := @FC_SSL_CTX_dane_set_flags + {$else} + SSL_CTX_dane_set_flags := @ERR_SSL_CTX_dane_set_flags + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_dane_set_flags_removed)} + if SSL_CTX_dane_set_flags_removed <= LibVersion then + {$if declared(_SSL_CTX_dane_set_flags)} + SSL_CTX_dane_set_flags := @_SSL_CTX_dane_set_flags + {$else} + {$IF declared(ERR_SSL_CTX_dane_set_flags)} + SSL_CTX_dane_set_flags := @ERR_SSL_CTX_dane_set_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_dane_set_flags) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_dane_set_flags'); + end; + + + if not assigned(SSL_CTX_dane_clear_flags) then + begin + {$if declared(SSL_CTX_dane_clear_flags_introduced)} + if LibVersion < SSL_CTX_dane_clear_flags_introduced then + {$if declared(FC_SSL_CTX_dane_clear_flags)} + SSL_CTX_dane_clear_flags := @FC_SSL_CTX_dane_clear_flags + {$else} + SSL_CTX_dane_clear_flags := @ERR_SSL_CTX_dane_clear_flags + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_dane_clear_flags_removed)} + if SSL_CTX_dane_clear_flags_removed <= LibVersion then + {$if declared(_SSL_CTX_dane_clear_flags)} + SSL_CTX_dane_clear_flags := @_SSL_CTX_dane_clear_flags + {$else} + {$IF declared(ERR_SSL_CTX_dane_clear_flags)} + SSL_CTX_dane_clear_flags := @ERR_SSL_CTX_dane_clear_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_dane_clear_flags) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_dane_clear_flags'); + end; + + + if not assigned(SSL_dane_set_flags) then + begin + {$if declared(SSL_dane_set_flags_introduced)} + if LibVersion < SSL_dane_set_flags_introduced then + {$if declared(FC_SSL_dane_set_flags)} + SSL_dane_set_flags := @FC_SSL_dane_set_flags + {$else} + SSL_dane_set_flags := @ERR_SSL_dane_set_flags + {$ifend} + else + {$ifend} + {$if declared(SSL_dane_set_flags_removed)} + if SSL_dane_set_flags_removed <= LibVersion then + {$if declared(_SSL_dane_set_flags)} + SSL_dane_set_flags := @_SSL_dane_set_flags + {$else} + {$IF declared(ERR_SSL_dane_set_flags)} + SSL_dane_set_flags := @ERR_SSL_dane_set_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_dane_set_flags) and Assigned(AFailed) then + AFailed.Add('SSL_dane_set_flags'); + end; + + + if not assigned(SSL_dane_clear_flags) then + begin + {$if declared(SSL_dane_clear_flags_introduced)} + if LibVersion < SSL_dane_clear_flags_introduced then + {$if declared(FC_SSL_dane_clear_flags)} + SSL_dane_clear_flags := @FC_SSL_dane_clear_flags + {$else} + SSL_dane_clear_flags := @ERR_SSL_dane_clear_flags + {$ifend} + else + {$ifend} + {$if declared(SSL_dane_clear_flags_removed)} + if SSL_dane_clear_flags_removed <= LibVersion then + {$if declared(_SSL_dane_clear_flags)} + SSL_dane_clear_flags := @_SSL_dane_clear_flags + {$else} + {$IF declared(ERR_SSL_dane_clear_flags)} + SSL_dane_clear_flags := @ERR_SSL_dane_clear_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_dane_clear_flags) and Assigned(AFailed) then + AFailed.Add('SSL_dane_clear_flags'); + end; + + + if not assigned(SSL_CTX_set_client_hello_cb) then + begin + {$if declared(SSL_CTX_set_client_hello_cb_introduced)} + if LibVersion < SSL_CTX_set_client_hello_cb_introduced then + {$if declared(FC_SSL_CTX_set_client_hello_cb)} + SSL_CTX_set_client_hello_cb := @FC_SSL_CTX_set_client_hello_cb + {$else} + SSL_CTX_set_client_hello_cb := @ERR_SSL_CTX_set_client_hello_cb + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_client_hello_cb_removed)} + if SSL_CTX_set_client_hello_cb_removed <= LibVersion then + {$if declared(_SSL_CTX_set_client_hello_cb)} + SSL_CTX_set_client_hello_cb := @_SSL_CTX_set_client_hello_cb + {$else} + {$IF declared(ERR_SSL_CTX_set_client_hello_cb)} + SSL_CTX_set_client_hello_cb := @ERR_SSL_CTX_set_client_hello_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_client_hello_cb) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_client_hello_cb'); + end; + + + if not assigned(SSL_client_hello_isv2) then + begin + {$if declared(SSL_client_hello_isv2_introduced)} + if LibVersion < SSL_client_hello_isv2_introduced then + {$if declared(FC_SSL_client_hello_isv2)} + SSL_client_hello_isv2 := @FC_SSL_client_hello_isv2 + {$else} + SSL_client_hello_isv2 := @ERR_SSL_client_hello_isv2 + {$ifend} + else + {$ifend} + {$if declared(SSL_client_hello_isv2_removed)} + if SSL_client_hello_isv2_removed <= LibVersion then + {$if declared(_SSL_client_hello_isv2)} + SSL_client_hello_isv2 := @_SSL_client_hello_isv2 + {$else} + {$IF declared(ERR_SSL_client_hello_isv2)} + SSL_client_hello_isv2 := @ERR_SSL_client_hello_isv2 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_client_hello_isv2) and Assigned(AFailed) then + AFailed.Add('SSL_client_hello_isv2'); + end; + + + if not assigned(SSL_client_hello_get0_legacy_version) then + begin + {$if declared(SSL_client_hello_get0_legacy_version_introduced)} + if LibVersion < SSL_client_hello_get0_legacy_version_introduced then + {$if declared(FC_SSL_client_hello_get0_legacy_version)} + SSL_client_hello_get0_legacy_version := @FC_SSL_client_hello_get0_legacy_version + {$else} + SSL_client_hello_get0_legacy_version := @ERR_SSL_client_hello_get0_legacy_version + {$ifend} + else + {$ifend} + {$if declared(SSL_client_hello_get0_legacy_version_removed)} + if SSL_client_hello_get0_legacy_version_removed <= LibVersion then + {$if declared(_SSL_client_hello_get0_legacy_version)} + SSL_client_hello_get0_legacy_version := @_SSL_client_hello_get0_legacy_version + {$else} + {$IF declared(ERR_SSL_client_hello_get0_legacy_version)} + SSL_client_hello_get0_legacy_version := @ERR_SSL_client_hello_get0_legacy_version + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_client_hello_get0_legacy_version) and Assigned(AFailed) then + AFailed.Add('SSL_client_hello_get0_legacy_version'); + end; + + + if not assigned(SSL_client_hello_get0_random) then + begin + {$if declared(SSL_client_hello_get0_random_introduced)} + if LibVersion < SSL_client_hello_get0_random_introduced then + {$if declared(FC_SSL_client_hello_get0_random)} + SSL_client_hello_get0_random := @FC_SSL_client_hello_get0_random + {$else} + SSL_client_hello_get0_random := @ERR_SSL_client_hello_get0_random + {$ifend} + else + {$ifend} + {$if declared(SSL_client_hello_get0_random_removed)} + if SSL_client_hello_get0_random_removed <= LibVersion then + {$if declared(_SSL_client_hello_get0_random)} + SSL_client_hello_get0_random := @_SSL_client_hello_get0_random + {$else} + {$IF declared(ERR_SSL_client_hello_get0_random)} + SSL_client_hello_get0_random := @ERR_SSL_client_hello_get0_random + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_client_hello_get0_random) and Assigned(AFailed) then + AFailed.Add('SSL_client_hello_get0_random'); + end; + + + if not assigned(SSL_client_hello_get0_session_id) then + begin + {$if declared(SSL_client_hello_get0_session_id_introduced)} + if LibVersion < SSL_client_hello_get0_session_id_introduced then + {$if declared(FC_SSL_client_hello_get0_session_id)} + SSL_client_hello_get0_session_id := @FC_SSL_client_hello_get0_session_id + {$else} + SSL_client_hello_get0_session_id := @ERR_SSL_client_hello_get0_session_id + {$ifend} + else + {$ifend} + {$if declared(SSL_client_hello_get0_session_id_removed)} + if SSL_client_hello_get0_session_id_removed <= LibVersion then + {$if declared(_SSL_client_hello_get0_session_id)} + SSL_client_hello_get0_session_id := @_SSL_client_hello_get0_session_id + {$else} + {$IF declared(ERR_SSL_client_hello_get0_session_id)} + SSL_client_hello_get0_session_id := @ERR_SSL_client_hello_get0_session_id + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_client_hello_get0_session_id) and Assigned(AFailed) then + AFailed.Add('SSL_client_hello_get0_session_id'); + end; + + + if not assigned(SSL_client_hello_get0_ciphers) then + begin + {$if declared(SSL_client_hello_get0_ciphers_introduced)} + if LibVersion < SSL_client_hello_get0_ciphers_introduced then + {$if declared(FC_SSL_client_hello_get0_ciphers)} + SSL_client_hello_get0_ciphers := @FC_SSL_client_hello_get0_ciphers + {$else} + SSL_client_hello_get0_ciphers := @ERR_SSL_client_hello_get0_ciphers + {$ifend} + else + {$ifend} + {$if declared(SSL_client_hello_get0_ciphers_removed)} + if SSL_client_hello_get0_ciphers_removed <= LibVersion then + {$if declared(_SSL_client_hello_get0_ciphers)} + SSL_client_hello_get0_ciphers := @_SSL_client_hello_get0_ciphers + {$else} + {$IF declared(ERR_SSL_client_hello_get0_ciphers)} + SSL_client_hello_get0_ciphers := @ERR_SSL_client_hello_get0_ciphers + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_client_hello_get0_ciphers) and Assigned(AFailed) then + AFailed.Add('SSL_client_hello_get0_ciphers'); + end; + + + if not assigned(SSL_client_hello_get0_compression_methods) then + begin + {$if declared(SSL_client_hello_get0_compression_methods_introduced)} + if LibVersion < SSL_client_hello_get0_compression_methods_introduced then + {$if declared(FC_SSL_client_hello_get0_compression_methods)} + SSL_client_hello_get0_compression_methods := @FC_SSL_client_hello_get0_compression_methods + {$else} + SSL_client_hello_get0_compression_methods := @ERR_SSL_client_hello_get0_compression_methods + {$ifend} + else + {$ifend} + {$if declared(SSL_client_hello_get0_compression_methods_removed)} + if SSL_client_hello_get0_compression_methods_removed <= LibVersion then + {$if declared(_SSL_client_hello_get0_compression_methods)} + SSL_client_hello_get0_compression_methods := @_SSL_client_hello_get0_compression_methods + {$else} + {$IF declared(ERR_SSL_client_hello_get0_compression_methods)} + SSL_client_hello_get0_compression_methods := @ERR_SSL_client_hello_get0_compression_methods + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_client_hello_get0_compression_methods) and Assigned(AFailed) then + AFailed.Add('SSL_client_hello_get0_compression_methods'); + end; + + + if not assigned(SSL_client_hello_get1_extensions_present) then + begin + {$if declared(SSL_client_hello_get1_extensions_present_introduced)} + if LibVersion < SSL_client_hello_get1_extensions_present_introduced then + {$if declared(FC_SSL_client_hello_get1_extensions_present)} + SSL_client_hello_get1_extensions_present := @FC_SSL_client_hello_get1_extensions_present + {$else} + SSL_client_hello_get1_extensions_present := @ERR_SSL_client_hello_get1_extensions_present + {$ifend} + else + {$ifend} + {$if declared(SSL_client_hello_get1_extensions_present_removed)} + if SSL_client_hello_get1_extensions_present_removed <= LibVersion then + {$if declared(_SSL_client_hello_get1_extensions_present)} + SSL_client_hello_get1_extensions_present := @_SSL_client_hello_get1_extensions_present + {$else} + {$IF declared(ERR_SSL_client_hello_get1_extensions_present)} + SSL_client_hello_get1_extensions_present := @ERR_SSL_client_hello_get1_extensions_present + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_client_hello_get1_extensions_present) and Assigned(AFailed) then + AFailed.Add('SSL_client_hello_get1_extensions_present'); + end; + + + if not assigned(SSL_client_hello_get0_ext) then + begin + {$if declared(SSL_client_hello_get0_ext_introduced)} + if LibVersion < SSL_client_hello_get0_ext_introduced then + {$if declared(FC_SSL_client_hello_get0_ext)} + SSL_client_hello_get0_ext := @FC_SSL_client_hello_get0_ext + {$else} + SSL_client_hello_get0_ext := @ERR_SSL_client_hello_get0_ext + {$ifend} + else + {$ifend} + {$if declared(SSL_client_hello_get0_ext_removed)} + if SSL_client_hello_get0_ext_removed <= LibVersion then + {$if declared(_SSL_client_hello_get0_ext)} + SSL_client_hello_get0_ext := @_SSL_client_hello_get0_ext + {$else} + {$IF declared(ERR_SSL_client_hello_get0_ext)} + SSL_client_hello_get0_ext := @ERR_SSL_client_hello_get0_ext + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_client_hello_get0_ext) and Assigned(AFailed) then + AFailed.Add('SSL_client_hello_get0_ext'); + end; + + + if not assigned(SSL_waiting_for_async) then + begin + {$if declared(SSL_waiting_for_async_introduced)} + if LibVersion < SSL_waiting_for_async_introduced then + {$if declared(FC_SSL_waiting_for_async)} + SSL_waiting_for_async := @FC_SSL_waiting_for_async + {$else} + SSL_waiting_for_async := @ERR_SSL_waiting_for_async + {$ifend} + else + {$ifend} + {$if declared(SSL_waiting_for_async_removed)} + if SSL_waiting_for_async_removed <= LibVersion then + {$if declared(_SSL_waiting_for_async)} + SSL_waiting_for_async := @_SSL_waiting_for_async + {$else} + {$IF declared(ERR_SSL_waiting_for_async)} + SSL_waiting_for_async := @ERR_SSL_waiting_for_async + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_waiting_for_async) and Assigned(AFailed) then + AFailed.Add('SSL_waiting_for_async'); + end; + + + if not assigned(SSL_get_all_async_fds) then + begin + {$if declared(SSL_get_all_async_fds_introduced)} + if LibVersion < SSL_get_all_async_fds_introduced then + {$if declared(FC_SSL_get_all_async_fds)} + SSL_get_all_async_fds := @FC_SSL_get_all_async_fds + {$else} + SSL_get_all_async_fds := @ERR_SSL_get_all_async_fds + {$ifend} + else + {$ifend} + {$if declared(SSL_get_all_async_fds_removed)} + if SSL_get_all_async_fds_removed <= LibVersion then + {$if declared(_SSL_get_all_async_fds)} + SSL_get_all_async_fds := @_SSL_get_all_async_fds + {$else} + {$IF declared(ERR_SSL_get_all_async_fds)} + SSL_get_all_async_fds := @ERR_SSL_get_all_async_fds + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_all_async_fds) and Assigned(AFailed) then + AFailed.Add('SSL_get_all_async_fds'); + end; + + + if not assigned(SSL_get_changed_async_fds) then + begin + {$if declared(SSL_get_changed_async_fds_introduced)} + if LibVersion < SSL_get_changed_async_fds_introduced then + {$if declared(FC_SSL_get_changed_async_fds)} + SSL_get_changed_async_fds := @FC_SSL_get_changed_async_fds + {$else} + SSL_get_changed_async_fds := @ERR_SSL_get_changed_async_fds + {$ifend} + else + {$ifend} + {$if declared(SSL_get_changed_async_fds_removed)} + if SSL_get_changed_async_fds_removed <= LibVersion then + {$if declared(_SSL_get_changed_async_fds)} + SSL_get_changed_async_fds := @_SSL_get_changed_async_fds + {$else} + {$IF declared(ERR_SSL_get_changed_async_fds)} + SSL_get_changed_async_fds := @ERR_SSL_get_changed_async_fds + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_changed_async_fds) and Assigned(AFailed) then + AFailed.Add('SSL_get_changed_async_fds'); + end; + + + if not assigned(SSL_stateless) then + begin + {$if declared(SSL_stateless_introduced)} + if LibVersion < SSL_stateless_introduced then + {$if declared(FC_SSL_stateless)} + SSL_stateless := @FC_SSL_stateless + {$else} + SSL_stateless := @ERR_SSL_stateless + {$ifend} + else + {$ifend} + {$if declared(SSL_stateless_removed)} + if SSL_stateless_removed <= LibVersion then + {$if declared(_SSL_stateless)} + SSL_stateless := @_SSL_stateless + {$else} + {$IF declared(ERR_SSL_stateless)} + SSL_stateless := @ERR_SSL_stateless + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_stateless) and Assigned(AFailed) then + AFailed.Add('SSL_stateless'); + end; + + + if not assigned(SSL_read_ex) then + begin + {$if declared(SSL_read_ex_introduced)} + if LibVersion < SSL_read_ex_introduced then + {$if declared(FC_SSL_read_ex)} + SSL_read_ex := @FC_SSL_read_ex + {$else} + SSL_read_ex := @ERR_SSL_read_ex + {$ifend} + else + {$ifend} + {$if declared(SSL_read_ex_removed)} + if SSL_read_ex_removed <= LibVersion then + {$if declared(_SSL_read_ex)} + SSL_read_ex := @_SSL_read_ex + {$else} + {$IF declared(ERR_SSL_read_ex)} + SSL_read_ex := @ERR_SSL_read_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_read_ex) and Assigned(AFailed) then + AFailed.Add('SSL_read_ex'); + end; + + + if not assigned(SSL_read_early_data) then + begin + {$if declared(SSL_read_early_data_introduced)} + if LibVersion < SSL_read_early_data_introduced then + {$if declared(FC_SSL_read_early_data)} + SSL_read_early_data := @FC_SSL_read_early_data + {$else} + SSL_read_early_data := @ERR_SSL_read_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_read_early_data_removed)} + if SSL_read_early_data_removed <= LibVersion then + {$if declared(_SSL_read_early_data)} + SSL_read_early_data := @_SSL_read_early_data + {$else} + {$IF declared(ERR_SSL_read_early_data)} + SSL_read_early_data := @ERR_SSL_read_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_read_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_read_early_data'); + end; + + + if not assigned(SSL_peek_ex) then + begin + {$if declared(SSL_peek_ex_introduced)} + if LibVersion < SSL_peek_ex_introduced then + {$if declared(FC_SSL_peek_ex)} + SSL_peek_ex := @FC_SSL_peek_ex + {$else} + SSL_peek_ex := @ERR_SSL_peek_ex + {$ifend} + else + {$ifend} + {$if declared(SSL_peek_ex_removed)} + if SSL_peek_ex_removed <= LibVersion then + {$if declared(_SSL_peek_ex)} + SSL_peek_ex := @_SSL_peek_ex + {$else} + {$IF declared(ERR_SSL_peek_ex)} + SSL_peek_ex := @ERR_SSL_peek_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_peek_ex) and Assigned(AFailed) then + AFailed.Add('SSL_peek_ex'); + end; + + + if not assigned(SSL_write_ex) then + begin + {$if declared(SSL_write_ex_introduced)} + if LibVersion < SSL_write_ex_introduced then + {$if declared(FC_SSL_write_ex)} + SSL_write_ex := @FC_SSL_write_ex + {$else} + SSL_write_ex := @ERR_SSL_write_ex + {$ifend} + else + {$ifend} + {$if declared(SSL_write_ex_removed)} + if SSL_write_ex_removed <= LibVersion then + {$if declared(_SSL_write_ex)} + SSL_write_ex := @_SSL_write_ex + {$else} + {$IF declared(ERR_SSL_write_ex)} + SSL_write_ex := @ERR_SSL_write_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_write_ex) and Assigned(AFailed) then + AFailed.Add('SSL_write_ex'); + end; + + + if not assigned(SSL_write_early_data) then + begin + {$if declared(SSL_write_early_data_introduced)} + if LibVersion < SSL_write_early_data_introduced then + {$if declared(FC_SSL_write_early_data)} + SSL_write_early_data := @FC_SSL_write_early_data + {$else} + SSL_write_early_data := @ERR_SSL_write_early_data + {$ifend} + else + {$ifend} + {$if declared(SSL_write_early_data_removed)} + if SSL_write_early_data_removed <= LibVersion then + {$if declared(_SSL_write_early_data)} + SSL_write_early_data := @_SSL_write_early_data + {$else} + {$IF declared(ERR_SSL_write_early_data)} + SSL_write_early_data := @ERR_SSL_write_early_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_write_early_data) and Assigned(AFailed) then + AFailed.Add('SSL_write_early_data'); + end; + + + if not assigned(SSL_get_early_data_status) then + begin + {$if declared(SSL_get_early_data_status_introduced)} + if LibVersion < SSL_get_early_data_status_introduced then + {$if declared(FC_SSL_get_early_data_status)} + SSL_get_early_data_status := @FC_SSL_get_early_data_status + {$else} + SSL_get_early_data_status := @ERR_SSL_get_early_data_status + {$ifend} + else + {$ifend} + {$if declared(SSL_get_early_data_status_removed)} + if SSL_get_early_data_status_removed <= LibVersion then + {$if declared(_SSL_get_early_data_status)} + SSL_get_early_data_status := @_SSL_get_early_data_status + {$else} + {$IF declared(ERR_SSL_get_early_data_status)} + SSL_get_early_data_status := @ERR_SSL_get_early_data_status + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_early_data_status) and Assigned(AFailed) then + AFailed.Add('SSL_get_early_data_status'); + end; + + + if not assigned(TLS_method) then + begin + {$if declared(TLS_method_introduced)} + if LibVersion < TLS_method_introduced then + {$if declared(FC_TLS_method)} + TLS_method := @FC_TLS_method + {$else} + TLS_method := @ERR_TLS_method + {$ifend} + else + {$ifend} + {$if declared(TLS_method_removed)} + if TLS_method_removed <= LibVersion then + {$if declared(_TLS_method)} + TLS_method := @_TLS_method + {$else} + {$IF declared(ERR_TLS_method)} + TLS_method := @ERR_TLS_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLS_method) and Assigned(AFailed) then + AFailed.Add('TLS_method'); + end; + + + if not assigned(TLS_server_method) then + begin + {$if declared(TLS_server_method_introduced)} + if LibVersion < TLS_server_method_introduced then + {$if declared(FC_TLS_server_method)} + TLS_server_method := @FC_TLS_server_method + {$else} + TLS_server_method := @ERR_TLS_server_method + {$ifend} + else + {$ifend} + {$if declared(TLS_server_method_removed)} + if TLS_server_method_removed <= LibVersion then + {$if declared(_TLS_server_method)} + TLS_server_method := @_TLS_server_method + {$else} + {$IF declared(ERR_TLS_server_method)} + TLS_server_method := @ERR_TLS_server_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLS_server_method) and Assigned(AFailed) then + AFailed.Add('TLS_server_method'); + end; + + + if not assigned(TLS_client_method) then + begin + {$if declared(TLS_client_method_introduced)} + if LibVersion < TLS_client_method_introduced then + {$if declared(FC_TLS_client_method)} + TLS_client_method := @FC_TLS_client_method + {$else} + TLS_client_method := @ERR_TLS_client_method + {$ifend} + else + {$ifend} + {$if declared(TLS_client_method_removed)} + if TLS_client_method_removed <= LibVersion then + {$if declared(_TLS_client_method)} + TLS_client_method := @_TLS_client_method + {$else} + {$IF declared(ERR_TLS_client_method)} + TLS_client_method := @ERR_TLS_client_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLS_client_method) and Assigned(AFailed) then + AFailed.Add('TLS_client_method'); + end; + + + if not assigned(SSL_key_update) then + begin + {$if declared(SSL_key_update_introduced)} + if LibVersion < SSL_key_update_introduced then + {$if declared(FC_SSL_key_update)} + SSL_key_update := @FC_SSL_key_update + {$else} + SSL_key_update := @ERR_SSL_key_update + {$ifend} + else + {$ifend} + {$if declared(SSL_key_update_removed)} + if SSL_key_update_removed <= LibVersion then + {$if declared(_SSL_key_update)} + SSL_key_update := @_SSL_key_update + {$else} + {$IF declared(ERR_SSL_key_update)} + SSL_key_update := @ERR_SSL_key_update + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_key_update) and Assigned(AFailed) then + AFailed.Add('SSL_key_update'); + end; + + + if not assigned(SSL_get_key_update_type) then + begin + {$if declared(SSL_get_key_update_type_introduced)} + if LibVersion < SSL_get_key_update_type_introduced then + {$if declared(FC_SSL_get_key_update_type)} + SSL_get_key_update_type := @FC_SSL_get_key_update_type + {$else} + SSL_get_key_update_type := @ERR_SSL_get_key_update_type + {$ifend} + else + {$ifend} + {$if declared(SSL_get_key_update_type_removed)} + if SSL_get_key_update_type_removed <= LibVersion then + {$if declared(_SSL_get_key_update_type)} + SSL_get_key_update_type := @_SSL_get_key_update_type + {$else} + {$IF declared(ERR_SSL_get_key_update_type)} + SSL_get_key_update_type := @ERR_SSL_get_key_update_type + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_key_update_type) and Assigned(AFailed) then + AFailed.Add('SSL_get_key_update_type'); + end; + + + if not assigned(SSL_CTX_set_post_handshake_auth) then + begin + {$if declared(SSL_CTX_set_post_handshake_auth_introduced)} + if LibVersion < SSL_CTX_set_post_handshake_auth_introduced then + {$if declared(FC_SSL_CTX_set_post_handshake_auth)} + SSL_CTX_set_post_handshake_auth := @FC_SSL_CTX_set_post_handshake_auth + {$else} + SSL_CTX_set_post_handshake_auth := @ERR_SSL_CTX_set_post_handshake_auth + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_post_handshake_auth_removed)} + if SSL_CTX_set_post_handshake_auth_removed <= LibVersion then + {$if declared(_SSL_CTX_set_post_handshake_auth)} + SSL_CTX_set_post_handshake_auth := @_SSL_CTX_set_post_handshake_auth + {$else} + {$IF declared(ERR_SSL_CTX_set_post_handshake_auth)} + SSL_CTX_set_post_handshake_auth := @ERR_SSL_CTX_set_post_handshake_auth + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_post_handshake_auth) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_post_handshake_auth'); + end; + + + if not assigned(SSL_set_post_handshake_auth) then + begin + {$if declared(SSL_set_post_handshake_auth_introduced)} + if LibVersion < SSL_set_post_handshake_auth_introduced then + {$if declared(FC_SSL_set_post_handshake_auth)} + SSL_set_post_handshake_auth := @FC_SSL_set_post_handshake_auth + {$else} + SSL_set_post_handshake_auth := @ERR_SSL_set_post_handshake_auth + {$ifend} + else + {$ifend} + {$if declared(SSL_set_post_handshake_auth_removed)} + if SSL_set_post_handshake_auth_removed <= LibVersion then + {$if declared(_SSL_set_post_handshake_auth)} + SSL_set_post_handshake_auth := @_SSL_set_post_handshake_auth + {$else} + {$IF declared(ERR_SSL_set_post_handshake_auth)} + SSL_set_post_handshake_auth := @ERR_SSL_set_post_handshake_auth + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_post_handshake_auth) and Assigned(AFailed) then + AFailed.Add('SSL_set_post_handshake_auth'); + end; + + + if not assigned(SSL_verify_client_post_handshake) then + begin + {$if declared(SSL_verify_client_post_handshake_introduced)} + if LibVersion < SSL_verify_client_post_handshake_introduced then + {$if declared(FC_SSL_verify_client_post_handshake)} + SSL_verify_client_post_handshake := @FC_SSL_verify_client_post_handshake + {$else} + SSL_verify_client_post_handshake := @ERR_SSL_verify_client_post_handshake + {$ifend} + else + {$ifend} + {$if declared(SSL_verify_client_post_handshake_removed)} + if SSL_verify_client_post_handshake_removed <= LibVersion then + {$if declared(_SSL_verify_client_post_handshake)} + SSL_verify_client_post_handshake := @_SSL_verify_client_post_handshake + {$else} + {$IF declared(ERR_SSL_verify_client_post_handshake)} + SSL_verify_client_post_handshake := @ERR_SSL_verify_client_post_handshake + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_verify_client_post_handshake) and Assigned(AFailed) then + AFailed.Add('SSL_verify_client_post_handshake'); + end; + + + if not assigned(SSL_library_init) then + begin + {$if declared(SSL_library_init_introduced)} + if LibVersion < SSL_library_init_introduced then + {$if declared(FC_SSL_library_init)} + SSL_library_init := @FC_SSL_library_init + {$else} + SSL_library_init := @ERR_SSL_library_init + {$ifend} + else + {$ifend} + {$if declared(SSL_library_init_removed)} + if SSL_library_init_removed <= LibVersion then + {$if declared(_SSL_library_init)} + SSL_library_init := @_SSL_library_init + {$else} + {$IF declared(ERR_SSL_library_init)} + SSL_library_init := @ERR_SSL_library_init + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_library_init) and Assigned(AFailed) then + AFailed.Add('SSL_library_init'); + end; + + + if not assigned(SSL_client_version) then + begin + {$if declared(SSL_client_version_introduced)} + if LibVersion < SSL_client_version_introduced then + {$if declared(FC_SSL_client_version)} + SSL_client_version := @FC_SSL_client_version + {$else} + SSL_client_version := @ERR_SSL_client_version + {$ifend} + else + {$ifend} + {$if declared(SSL_client_version_removed)} + if SSL_client_version_removed <= LibVersion then + {$if declared(_SSL_client_version)} + SSL_client_version := @_SSL_client_version + {$else} + {$IF declared(ERR_SSL_client_version)} + SSL_client_version := @ERR_SSL_client_version + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_client_version) and Assigned(AFailed) then + AFailed.Add('SSL_client_version'); + end; + + + if not assigned(SSL_CTX_set_default_verify_dir) then + begin + {$if declared(SSL_CTX_set_default_verify_dir_introduced)} + if LibVersion < SSL_CTX_set_default_verify_dir_introduced then + {$if declared(FC_SSL_CTX_set_default_verify_dir)} + SSL_CTX_set_default_verify_dir := @FC_SSL_CTX_set_default_verify_dir + {$else} + SSL_CTX_set_default_verify_dir := @ERR_SSL_CTX_set_default_verify_dir + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_default_verify_dir_removed)} + if SSL_CTX_set_default_verify_dir_removed <= LibVersion then + {$if declared(_SSL_CTX_set_default_verify_dir)} + SSL_CTX_set_default_verify_dir := @_SSL_CTX_set_default_verify_dir + {$else} + {$IF declared(ERR_SSL_CTX_set_default_verify_dir)} + SSL_CTX_set_default_verify_dir := @ERR_SSL_CTX_set_default_verify_dir + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_default_verify_dir) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_default_verify_dir'); + end; + + + if not assigned(SSL_CTX_set_default_verify_file) then + begin + {$if declared(SSL_CTX_set_default_verify_file_introduced)} + if LibVersion < SSL_CTX_set_default_verify_file_introduced then + {$if declared(FC_SSL_CTX_set_default_verify_file)} + SSL_CTX_set_default_verify_file := @FC_SSL_CTX_set_default_verify_file + {$else} + SSL_CTX_set_default_verify_file := @ERR_SSL_CTX_set_default_verify_file + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_default_verify_file_removed)} + if SSL_CTX_set_default_verify_file_removed <= LibVersion then + {$if declared(_SSL_CTX_set_default_verify_file)} + SSL_CTX_set_default_verify_file := @_SSL_CTX_set_default_verify_file + {$else} + {$IF declared(ERR_SSL_CTX_set_default_verify_file)} + SSL_CTX_set_default_verify_file := @ERR_SSL_CTX_set_default_verify_file + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_default_verify_file) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_default_verify_file'); + end; + + + if not assigned(SSL_get_state) then + begin + {$if declared(SSL_get_state_introduced)} + if LibVersion < SSL_get_state_introduced then + {$if declared(FC_SSL_get_state)} + SSL_get_state := @FC_SSL_get_state + {$else} + SSL_get_state := @ERR_SSL_get_state + {$ifend} + else + {$ifend} + {$if declared(SSL_get_state_removed)} + if SSL_get_state_removed <= LibVersion then + {$if declared(_SSL_get_state)} + SSL_get_state := @_SSL_get_state + {$else} + {$IF declared(ERR_SSL_get_state)} + SSL_get_state := @ERR_SSL_get_state + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_state) and Assigned(AFailed) then + AFailed.Add('SSL_get_state'); + end; + + + if not assigned(SSL_get_client_random) then + begin + {$if declared(SSL_get_client_random_introduced)} + if LibVersion < SSL_get_client_random_introduced then + {$if declared(FC_SSL_get_client_random)} + SSL_get_client_random := @FC_SSL_get_client_random + {$else} + SSL_get_client_random := @ERR_SSL_get_client_random + {$ifend} + else + {$ifend} + {$if declared(SSL_get_client_random_removed)} + if SSL_get_client_random_removed <= LibVersion then + {$if declared(_SSL_get_client_random)} + SSL_get_client_random := @_SSL_get_client_random + {$else} + {$IF declared(ERR_SSL_get_client_random)} + SSL_get_client_random := @ERR_SSL_get_client_random + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_client_random) and Assigned(AFailed) then + AFailed.Add('SSL_get_client_random'); + end; + + + if not assigned(SSL_get_server_random) then + begin + {$if declared(SSL_get_server_random_introduced)} + if LibVersion < SSL_get_server_random_introduced then + {$if declared(FC_SSL_get_server_random)} + SSL_get_server_random := @FC_SSL_get_server_random + {$else} + SSL_get_server_random := @ERR_SSL_get_server_random + {$ifend} + else + {$ifend} + {$if declared(SSL_get_server_random_removed)} + if SSL_get_server_random_removed <= LibVersion then + {$if declared(_SSL_get_server_random)} + SSL_get_server_random := @_SSL_get_server_random + {$else} + {$IF declared(ERR_SSL_get_server_random)} + SSL_get_server_random := @ERR_SSL_get_server_random + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_server_random) and Assigned(AFailed) then + AFailed.Add('SSL_get_server_random'); + end; + + + if not assigned(SSL_SESSION_get_master_key) then + begin + {$if declared(SSL_SESSION_get_master_key_introduced)} + if LibVersion < SSL_SESSION_get_master_key_introduced then + {$if declared(FC_SSL_SESSION_get_master_key)} + SSL_SESSION_get_master_key := @FC_SSL_SESSION_get_master_key + {$else} + SSL_SESSION_get_master_key := @ERR_SSL_SESSION_get_master_key + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_get_master_key_removed)} + if SSL_SESSION_get_master_key_removed <= LibVersion then + {$if declared(_SSL_SESSION_get_master_key)} + SSL_SESSION_get_master_key := @_SSL_SESSION_get_master_key + {$else} + {$IF declared(ERR_SSL_SESSION_get_master_key)} + SSL_SESSION_get_master_key := @ERR_SSL_SESSION_get_master_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_get_master_key) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_get_master_key'); + end; + + + if not assigned(SSL_SESSION_set1_master_key) then + begin + {$if declared(SSL_SESSION_set1_master_key_introduced)} + if LibVersion < SSL_SESSION_set1_master_key_introduced then + {$if declared(FC_SSL_SESSION_set1_master_key)} + SSL_SESSION_set1_master_key := @FC_SSL_SESSION_set1_master_key + {$else} + SSL_SESSION_set1_master_key := @ERR_SSL_SESSION_set1_master_key + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_set1_master_key_removed)} + if SSL_SESSION_set1_master_key_removed <= LibVersion then + {$if declared(_SSL_SESSION_set1_master_key)} + SSL_SESSION_set1_master_key := @_SSL_SESSION_set1_master_key + {$else} + {$IF declared(ERR_SSL_SESSION_set1_master_key)} + SSL_SESSION_set1_master_key := @ERR_SSL_SESSION_set1_master_key + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_set1_master_key) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_set1_master_key'); + end; + + + if not assigned(SSL_SESSION_get_max_fragment_length) then + begin + {$if declared(SSL_SESSION_get_max_fragment_length_introduced)} + if LibVersion < SSL_SESSION_get_max_fragment_length_introduced then + {$if declared(FC_SSL_SESSION_get_max_fragment_length)} + SSL_SESSION_get_max_fragment_length := @FC_SSL_SESSION_get_max_fragment_length + {$else} + SSL_SESSION_get_max_fragment_length := @ERR_SSL_SESSION_get_max_fragment_length + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_get_max_fragment_length_removed)} + if SSL_SESSION_get_max_fragment_length_removed <= LibVersion then + {$if declared(_SSL_SESSION_get_max_fragment_length)} + SSL_SESSION_get_max_fragment_length := @_SSL_SESSION_get_max_fragment_length + {$else} + {$IF declared(ERR_SSL_SESSION_get_max_fragment_length)} + SSL_SESSION_get_max_fragment_length := @ERR_SSL_SESSION_get_max_fragment_length + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_get_max_fragment_length) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_get_max_fragment_length'); + end; + + + if not assigned(SSL_CTX_set_default_read_buffer_len) then + begin + {$if declared(SSL_CTX_set_default_read_buffer_len_introduced)} + if LibVersion < SSL_CTX_set_default_read_buffer_len_introduced then + {$if declared(FC_SSL_CTX_set_default_read_buffer_len)} + SSL_CTX_set_default_read_buffer_len := @FC_SSL_CTX_set_default_read_buffer_len + {$else} + SSL_CTX_set_default_read_buffer_len := @ERR_SSL_CTX_set_default_read_buffer_len + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_default_read_buffer_len_removed)} + if SSL_CTX_set_default_read_buffer_len_removed <= LibVersion then + {$if declared(_SSL_CTX_set_default_read_buffer_len)} + SSL_CTX_set_default_read_buffer_len := @_SSL_CTX_set_default_read_buffer_len + {$else} + {$IF declared(ERR_SSL_CTX_set_default_read_buffer_len)} + SSL_CTX_set_default_read_buffer_len := @ERR_SSL_CTX_set_default_read_buffer_len + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_default_read_buffer_len) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_default_read_buffer_len'); + end; + + + if not assigned(SSL_set_default_read_buffer_len) then + begin + {$if declared(SSL_set_default_read_buffer_len_introduced)} + if LibVersion < SSL_set_default_read_buffer_len_introduced then + {$if declared(FC_SSL_set_default_read_buffer_len)} + SSL_set_default_read_buffer_len := @FC_SSL_set_default_read_buffer_len + {$else} + SSL_set_default_read_buffer_len := @ERR_SSL_set_default_read_buffer_len + {$ifend} + else + {$ifend} + {$if declared(SSL_set_default_read_buffer_len_removed)} + if SSL_set_default_read_buffer_len_removed <= LibVersion then + {$if declared(_SSL_set_default_read_buffer_len)} + SSL_set_default_read_buffer_len := @_SSL_set_default_read_buffer_len + {$else} + {$IF declared(ERR_SSL_set_default_read_buffer_len)} + SSL_set_default_read_buffer_len := @ERR_SSL_set_default_read_buffer_len + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_default_read_buffer_len) and Assigned(AFailed) then + AFailed.Add('SSL_set_default_read_buffer_len'); + end; + + + if not assigned(SSL_CIPHER_get_cipher_nid) then + begin + {$if declared(SSL_CIPHER_get_cipher_nid_introduced)} + if LibVersion < SSL_CIPHER_get_cipher_nid_introduced then + {$if declared(FC_SSL_CIPHER_get_cipher_nid)} + SSL_CIPHER_get_cipher_nid := @FC_SSL_CIPHER_get_cipher_nid + {$else} + SSL_CIPHER_get_cipher_nid := @ERR_SSL_CIPHER_get_cipher_nid + {$ifend} + else + {$ifend} + {$if declared(SSL_CIPHER_get_cipher_nid_removed)} + if SSL_CIPHER_get_cipher_nid_removed <= LibVersion then + {$if declared(_SSL_CIPHER_get_cipher_nid)} + SSL_CIPHER_get_cipher_nid := @_SSL_CIPHER_get_cipher_nid + {$else} + {$IF declared(ERR_SSL_CIPHER_get_cipher_nid)} + SSL_CIPHER_get_cipher_nid := @ERR_SSL_CIPHER_get_cipher_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CIPHER_get_cipher_nid) and Assigned(AFailed) then + AFailed.Add('SSL_CIPHER_get_cipher_nid'); + end; + + + if not assigned(SSL_CIPHER_get_digest_nid) then + begin + {$if declared(SSL_CIPHER_get_digest_nid_introduced)} + if LibVersion < SSL_CIPHER_get_digest_nid_introduced then + {$if declared(FC_SSL_CIPHER_get_digest_nid)} + SSL_CIPHER_get_digest_nid := @FC_SSL_CIPHER_get_digest_nid + {$else} + SSL_CIPHER_get_digest_nid := @ERR_SSL_CIPHER_get_digest_nid + {$ifend} + else + {$ifend} + {$if declared(SSL_CIPHER_get_digest_nid_removed)} + if SSL_CIPHER_get_digest_nid_removed <= LibVersion then + {$if declared(_SSL_CIPHER_get_digest_nid)} + SSL_CIPHER_get_digest_nid := @_SSL_CIPHER_get_digest_nid + {$else} + {$IF declared(ERR_SSL_CIPHER_get_digest_nid)} + SSL_CIPHER_get_digest_nid := @ERR_SSL_CIPHER_get_digest_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CIPHER_get_digest_nid) and Assigned(AFailed) then + AFailed.Add('SSL_CIPHER_get_digest_nid'); + end; + + + if not assigned(SSL_CTX_set_not_resumable_session_callback) then + begin + {$if declared(SSL_CTX_set_not_resumable_session_callback_introduced)} + if LibVersion < SSL_CTX_set_not_resumable_session_callback_introduced then + {$if declared(FC_SSL_CTX_set_not_resumable_session_callback)} + SSL_CTX_set_not_resumable_session_callback := @FC_SSL_CTX_set_not_resumable_session_callback + {$else} + SSL_CTX_set_not_resumable_session_callback := @ERR_SSL_CTX_set_not_resumable_session_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_not_resumable_session_callback_removed)} + if SSL_CTX_set_not_resumable_session_callback_removed <= LibVersion then + {$if declared(_SSL_CTX_set_not_resumable_session_callback)} + SSL_CTX_set_not_resumable_session_callback := @_SSL_CTX_set_not_resumable_session_callback + {$else} + {$IF declared(ERR_SSL_CTX_set_not_resumable_session_callback)} + SSL_CTX_set_not_resumable_session_callback := @ERR_SSL_CTX_set_not_resumable_session_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_not_resumable_session_callback) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_not_resumable_session_callback'); + end; + + + if not assigned(SSL_set_not_resumable_session_callback) then + begin + {$if declared(SSL_set_not_resumable_session_callback_introduced)} + if LibVersion < SSL_set_not_resumable_session_callback_introduced then + {$if declared(FC_SSL_set_not_resumable_session_callback)} + SSL_set_not_resumable_session_callback := @FC_SSL_set_not_resumable_session_callback + {$else} + SSL_set_not_resumable_session_callback := @ERR_SSL_set_not_resumable_session_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_set_not_resumable_session_callback_removed)} + if SSL_set_not_resumable_session_callback_removed <= LibVersion then + {$if declared(_SSL_set_not_resumable_session_callback)} + SSL_set_not_resumable_session_callback := @_SSL_set_not_resumable_session_callback + {$else} + {$IF declared(ERR_SSL_set_not_resumable_session_callback)} + SSL_set_not_resumable_session_callback := @ERR_SSL_set_not_resumable_session_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_not_resumable_session_callback) and Assigned(AFailed) then + AFailed.Add('SSL_set_not_resumable_session_callback'); + end; + + + if not assigned(SSL_CTX_set_record_padding_callback) then + begin + {$if declared(SSL_CTX_set_record_padding_callback_introduced)} + if LibVersion < SSL_CTX_set_record_padding_callback_introduced then + {$if declared(FC_SSL_CTX_set_record_padding_callback)} + SSL_CTX_set_record_padding_callback := @FC_SSL_CTX_set_record_padding_callback + {$else} + SSL_CTX_set_record_padding_callback := @ERR_SSL_CTX_set_record_padding_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_record_padding_callback_removed)} + if SSL_CTX_set_record_padding_callback_removed <= LibVersion then + {$if declared(_SSL_CTX_set_record_padding_callback)} + SSL_CTX_set_record_padding_callback := @_SSL_CTX_set_record_padding_callback + {$else} + {$IF declared(ERR_SSL_CTX_set_record_padding_callback)} + SSL_CTX_set_record_padding_callback := @ERR_SSL_CTX_set_record_padding_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_record_padding_callback) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_record_padding_callback'); + end; + + + if not assigned(SSL_CTX_set_record_padding_callback_arg) then + begin + {$if declared(SSL_CTX_set_record_padding_callback_arg_introduced)} + if LibVersion < SSL_CTX_set_record_padding_callback_arg_introduced then + {$if declared(FC_SSL_CTX_set_record_padding_callback_arg)} + SSL_CTX_set_record_padding_callback_arg := @FC_SSL_CTX_set_record_padding_callback_arg + {$else} + SSL_CTX_set_record_padding_callback_arg := @ERR_SSL_CTX_set_record_padding_callback_arg + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_record_padding_callback_arg_removed)} + if SSL_CTX_set_record_padding_callback_arg_removed <= LibVersion then + {$if declared(_SSL_CTX_set_record_padding_callback_arg)} + SSL_CTX_set_record_padding_callback_arg := @_SSL_CTX_set_record_padding_callback_arg + {$else} + {$IF declared(ERR_SSL_CTX_set_record_padding_callback_arg)} + SSL_CTX_set_record_padding_callback_arg := @ERR_SSL_CTX_set_record_padding_callback_arg + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_record_padding_callback_arg) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_record_padding_callback_arg'); + end; + + + if not assigned(SSL_CTX_get_record_padding_callback_arg) then + begin + {$if declared(SSL_CTX_get_record_padding_callback_arg_introduced)} + if LibVersion < SSL_CTX_get_record_padding_callback_arg_introduced then + {$if declared(FC_SSL_CTX_get_record_padding_callback_arg)} + SSL_CTX_get_record_padding_callback_arg := @FC_SSL_CTX_get_record_padding_callback_arg + {$else} + SSL_CTX_get_record_padding_callback_arg := @ERR_SSL_CTX_get_record_padding_callback_arg + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_record_padding_callback_arg_removed)} + if SSL_CTX_get_record_padding_callback_arg_removed <= LibVersion then + {$if declared(_SSL_CTX_get_record_padding_callback_arg)} + SSL_CTX_get_record_padding_callback_arg := @_SSL_CTX_get_record_padding_callback_arg + {$else} + {$IF declared(ERR_SSL_CTX_get_record_padding_callback_arg)} + SSL_CTX_get_record_padding_callback_arg := @ERR_SSL_CTX_get_record_padding_callback_arg + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_record_padding_callback_arg) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_record_padding_callback_arg'); + end; + + + if not assigned(SSL_CTX_set_block_padding) then + begin + {$if declared(SSL_CTX_set_block_padding_introduced)} + if LibVersion < SSL_CTX_set_block_padding_introduced then + {$if declared(FC_SSL_CTX_set_block_padding)} + SSL_CTX_set_block_padding := @FC_SSL_CTX_set_block_padding + {$else} + SSL_CTX_set_block_padding := @ERR_SSL_CTX_set_block_padding + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_block_padding_removed)} + if SSL_CTX_set_block_padding_removed <= LibVersion then + {$if declared(_SSL_CTX_set_block_padding)} + SSL_CTX_set_block_padding := @_SSL_CTX_set_block_padding + {$else} + {$IF declared(ERR_SSL_CTX_set_block_padding)} + SSL_CTX_set_block_padding := @ERR_SSL_CTX_set_block_padding + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_block_padding) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_block_padding'); + end; + + + if not assigned(SSL_set_record_padding_callback) then + begin + {$if declared(SSL_set_record_padding_callback_introduced)} + if LibVersion < SSL_set_record_padding_callback_introduced then + {$if declared(FC_SSL_set_record_padding_callback)} + SSL_set_record_padding_callback := @FC_SSL_set_record_padding_callback + {$else} + SSL_set_record_padding_callback := @ERR_SSL_set_record_padding_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_set_record_padding_callback_removed)} + if SSL_set_record_padding_callback_removed <= LibVersion then + {$if declared(_SSL_set_record_padding_callback)} + SSL_set_record_padding_callback := @_SSL_set_record_padding_callback + {$else} + {$IF declared(ERR_SSL_set_record_padding_callback)} + SSL_set_record_padding_callback := @ERR_SSL_set_record_padding_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_record_padding_callback) and Assigned(AFailed) then + AFailed.Add('SSL_set_record_padding_callback'); + end; + + + if not assigned(SSL_set_record_padding_callback_arg) then + begin + {$if declared(SSL_set_record_padding_callback_arg_introduced)} + if LibVersion < SSL_set_record_padding_callback_arg_introduced then + {$if declared(FC_SSL_set_record_padding_callback_arg)} + SSL_set_record_padding_callback_arg := @FC_SSL_set_record_padding_callback_arg + {$else} + SSL_set_record_padding_callback_arg := @ERR_SSL_set_record_padding_callback_arg + {$ifend} + else + {$ifend} + {$if declared(SSL_set_record_padding_callback_arg_removed)} + if SSL_set_record_padding_callback_arg_removed <= LibVersion then + {$if declared(_SSL_set_record_padding_callback_arg)} + SSL_set_record_padding_callback_arg := @_SSL_set_record_padding_callback_arg + {$else} + {$IF declared(ERR_SSL_set_record_padding_callback_arg)} + SSL_set_record_padding_callback_arg := @ERR_SSL_set_record_padding_callback_arg + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_record_padding_callback_arg) and Assigned(AFailed) then + AFailed.Add('SSL_set_record_padding_callback_arg'); + end; + + + if not assigned(SSL_get_record_padding_callback_arg) then + begin + {$if declared(SSL_get_record_padding_callback_arg_introduced)} + if LibVersion < SSL_get_record_padding_callback_arg_introduced then + {$if declared(FC_SSL_get_record_padding_callback_arg)} + SSL_get_record_padding_callback_arg := @FC_SSL_get_record_padding_callback_arg + {$else} + SSL_get_record_padding_callback_arg := @ERR_SSL_get_record_padding_callback_arg + {$ifend} + else + {$ifend} + {$if declared(SSL_get_record_padding_callback_arg_removed)} + if SSL_get_record_padding_callback_arg_removed <= LibVersion then + {$if declared(_SSL_get_record_padding_callback_arg)} + SSL_get_record_padding_callback_arg := @_SSL_get_record_padding_callback_arg + {$else} + {$IF declared(ERR_SSL_get_record_padding_callback_arg)} + SSL_get_record_padding_callback_arg := @ERR_SSL_get_record_padding_callback_arg + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_record_padding_callback_arg) and Assigned(AFailed) then + AFailed.Add('SSL_get_record_padding_callback_arg'); + end; + + + if not assigned(SSL_set_block_padding) then + begin + {$if declared(SSL_set_block_padding_introduced)} + if LibVersion < SSL_set_block_padding_introduced then + {$if declared(FC_SSL_set_block_padding)} + SSL_set_block_padding := @FC_SSL_set_block_padding + {$else} + SSL_set_block_padding := @ERR_SSL_set_block_padding + {$ifend} + else + {$ifend} + {$if declared(SSL_set_block_padding_removed)} + if SSL_set_block_padding_removed <= LibVersion then + {$if declared(_SSL_set_block_padding)} + SSL_set_block_padding := @_SSL_set_block_padding + {$else} + {$IF declared(ERR_SSL_set_block_padding)} + SSL_set_block_padding := @ERR_SSL_set_block_padding + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_block_padding) and Assigned(AFailed) then + AFailed.Add('SSL_set_block_padding'); + end; + + + if not assigned(SSL_set_num_tickets) then + begin + {$if declared(SSL_set_num_tickets_introduced)} + if LibVersion < SSL_set_num_tickets_introduced then + {$if declared(FC_SSL_set_num_tickets)} + SSL_set_num_tickets := @FC_SSL_set_num_tickets + {$else} + SSL_set_num_tickets := @ERR_SSL_set_num_tickets + {$ifend} + else + {$ifend} + {$if declared(SSL_set_num_tickets_removed)} + if SSL_set_num_tickets_removed <= LibVersion then + {$if declared(_SSL_set_num_tickets)} + SSL_set_num_tickets := @_SSL_set_num_tickets + {$else} + {$IF declared(ERR_SSL_set_num_tickets)} + SSL_set_num_tickets := @ERR_SSL_set_num_tickets + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_num_tickets) and Assigned(AFailed) then + AFailed.Add('SSL_set_num_tickets'); + end; + + + if not assigned(SSL_get_num_tickets) then + begin + {$if declared(SSL_get_num_tickets_introduced)} + if LibVersion < SSL_get_num_tickets_introduced then + {$if declared(FC_SSL_get_num_tickets)} + SSL_get_num_tickets := @FC_SSL_get_num_tickets + {$else} + SSL_get_num_tickets := @ERR_SSL_get_num_tickets + {$ifend} + else + {$ifend} + {$if declared(SSL_get_num_tickets_removed)} + if SSL_get_num_tickets_removed <= LibVersion then + {$if declared(_SSL_get_num_tickets)} + SSL_get_num_tickets := @_SSL_get_num_tickets + {$else} + {$IF declared(ERR_SSL_get_num_tickets)} + SSL_get_num_tickets := @ERR_SSL_get_num_tickets + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_num_tickets) and Assigned(AFailed) then + AFailed.Add('SSL_get_num_tickets'); + end; + + + if not assigned(SSL_CTX_set_num_tickets) then + begin + {$if declared(SSL_CTX_set_num_tickets_introduced)} + if LibVersion < SSL_CTX_set_num_tickets_introduced then + {$if declared(FC_SSL_CTX_set_num_tickets)} + SSL_CTX_set_num_tickets := @FC_SSL_CTX_set_num_tickets + {$else} + SSL_CTX_set_num_tickets := @ERR_SSL_CTX_set_num_tickets + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_num_tickets_removed)} + if SSL_CTX_set_num_tickets_removed <= LibVersion then + {$if declared(_SSL_CTX_set_num_tickets)} + SSL_CTX_set_num_tickets := @_SSL_CTX_set_num_tickets + {$else} + {$IF declared(ERR_SSL_CTX_set_num_tickets)} + SSL_CTX_set_num_tickets := @ERR_SSL_CTX_set_num_tickets + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_num_tickets) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_num_tickets'); + end; + + + if not assigned(SSL_CTX_get_num_tickets) then + begin + {$if declared(SSL_CTX_get_num_tickets_introduced)} + if LibVersion < SSL_CTX_get_num_tickets_introduced then + {$if declared(FC_SSL_CTX_get_num_tickets)} + SSL_CTX_get_num_tickets := @FC_SSL_CTX_get_num_tickets + {$else} + SSL_CTX_get_num_tickets := @ERR_SSL_CTX_get_num_tickets + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_num_tickets_removed)} + if SSL_CTX_get_num_tickets_removed <= LibVersion then + {$if declared(_SSL_CTX_get_num_tickets)} + SSL_CTX_get_num_tickets := @_SSL_CTX_get_num_tickets + {$else} + {$IF declared(ERR_SSL_CTX_get_num_tickets)} + SSL_CTX_get_num_tickets := @ERR_SSL_CTX_get_num_tickets + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_num_tickets) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_num_tickets'); + end; + + + if not assigned(SSL_session_reused) then + begin + {$if declared(SSL_session_reused_introduced)} + if LibVersion < SSL_session_reused_introduced then + {$if declared(FC_SSL_session_reused)} + SSL_session_reused := @FC_SSL_session_reused + {$else} + SSL_session_reused := @ERR_SSL_session_reused + {$ifend} + else + {$ifend} + {$if declared(SSL_session_reused_removed)} + if SSL_session_reused_removed <= LibVersion then + {$if declared(_SSL_session_reused)} + SSL_session_reused := @_SSL_session_reused + {$else} + {$IF declared(ERR_SSL_session_reused)} + SSL_session_reused := @ERR_SSL_session_reused + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_session_reused) and Assigned(AFailed) then + AFailed.Add('SSL_session_reused'); + end; + + + if not assigned(SSL_add_ssl_module) then + begin + {$if declared(SSL_add_ssl_module_introduced)} + if LibVersion < SSL_add_ssl_module_introduced then + {$if declared(FC_SSL_add_ssl_module)} + SSL_add_ssl_module := @FC_SSL_add_ssl_module + {$else} + SSL_add_ssl_module := @ERR_SSL_add_ssl_module + {$ifend} + else + {$ifend} + {$if declared(SSL_add_ssl_module_removed)} + if SSL_add_ssl_module_removed <= LibVersion then + {$if declared(_SSL_add_ssl_module)} + SSL_add_ssl_module := @_SSL_add_ssl_module + {$else} + {$IF declared(ERR_SSL_add_ssl_module)} + SSL_add_ssl_module := @ERR_SSL_add_ssl_module + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_add_ssl_module) and Assigned(AFailed) then + AFailed.Add('SSL_add_ssl_module'); + end; + + + if not assigned(SSL_config) then + begin + {$if declared(SSL_config_introduced)} + if LibVersion < SSL_config_introduced then + {$if declared(FC_SSL_config)} + SSL_config := @FC_SSL_config + {$else} + SSL_config := @ERR_SSL_config + {$ifend} + else + {$ifend} + {$if declared(SSL_config_removed)} + if SSL_config_removed <= LibVersion then + {$if declared(_SSL_config)} + SSL_config := @_SSL_config + {$else} + {$IF declared(ERR_SSL_config)} + SSL_config := @ERR_SSL_config + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_config) and Assigned(AFailed) then + AFailed.Add('SSL_config'); + end; + + + if not assigned(SSL_CTX_config) then + begin + {$if declared(SSL_CTX_config_introduced)} + if LibVersion < SSL_CTX_config_introduced then + {$if declared(FC_SSL_CTX_config)} + SSL_CTX_config := @FC_SSL_CTX_config + {$else} + SSL_CTX_config := @ERR_SSL_CTX_config + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_config_removed)} + if SSL_CTX_config_removed <= LibVersion then + {$if declared(_SSL_CTX_config)} + SSL_CTX_config := @_SSL_CTX_config + {$else} + {$IF declared(ERR_SSL_CTX_config)} + SSL_CTX_config := @ERR_SSL_CTX_config + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_config) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_config'); + end; + + + if not assigned(DTLSv1_listen) then + begin + {$if declared(DTLSv1_listen_introduced)} + if LibVersion < DTLSv1_listen_introduced then + {$if declared(FC_DTLSv1_listen)} + DTLSv1_listen := @FC_DTLSv1_listen + {$else} + DTLSv1_listen := @ERR_DTLSv1_listen + {$ifend} + else + {$ifend} + {$if declared(DTLSv1_listen_removed)} + if DTLSv1_listen_removed <= LibVersion then + {$if declared(_DTLSv1_listen)} + DTLSv1_listen := @_DTLSv1_listen + {$else} + {$IF declared(ERR_DTLSv1_listen)} + DTLSv1_listen := @ERR_DTLSv1_listen + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DTLSv1_listen) and Assigned(AFailed) then + AFailed.Add('DTLSv1_listen'); + end; + + + if not assigned(SSL_enable_ct) then + begin + {$if declared(SSL_enable_ct_introduced)} + if LibVersion < SSL_enable_ct_introduced then + {$if declared(FC_SSL_enable_ct)} + SSL_enable_ct := @FC_SSL_enable_ct + {$else} + SSL_enable_ct := @ERR_SSL_enable_ct + {$ifend} + else + {$ifend} + {$if declared(SSL_enable_ct_removed)} + if SSL_enable_ct_removed <= LibVersion then + {$if declared(_SSL_enable_ct)} + SSL_enable_ct := @_SSL_enable_ct + {$else} + {$IF declared(ERR_SSL_enable_ct)} + SSL_enable_ct := @ERR_SSL_enable_ct + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_enable_ct) and Assigned(AFailed) then + AFailed.Add('SSL_enable_ct'); + end; + + + if not assigned(SSL_CTX_enable_ct) then + begin + {$if declared(SSL_CTX_enable_ct_introduced)} + if LibVersion < SSL_CTX_enable_ct_introduced then + {$if declared(FC_SSL_CTX_enable_ct)} + SSL_CTX_enable_ct := @FC_SSL_CTX_enable_ct + {$else} + SSL_CTX_enable_ct := @ERR_SSL_CTX_enable_ct + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_enable_ct_removed)} + if SSL_CTX_enable_ct_removed <= LibVersion then + {$if declared(_SSL_CTX_enable_ct)} + SSL_CTX_enable_ct := @_SSL_CTX_enable_ct + {$else} + {$IF declared(ERR_SSL_CTX_enable_ct)} + SSL_CTX_enable_ct := @ERR_SSL_CTX_enable_ct + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_enable_ct) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_enable_ct'); + end; + + + if not assigned(SSL_ct_is_enabled) then + begin + {$if declared(SSL_ct_is_enabled_introduced)} + if LibVersion < SSL_ct_is_enabled_introduced then + {$if declared(FC_SSL_ct_is_enabled)} + SSL_ct_is_enabled := @FC_SSL_ct_is_enabled + {$else} + SSL_ct_is_enabled := @ERR_SSL_ct_is_enabled + {$ifend} + else + {$ifend} + {$if declared(SSL_ct_is_enabled_removed)} + if SSL_ct_is_enabled_removed <= LibVersion then + {$if declared(_SSL_ct_is_enabled)} + SSL_ct_is_enabled := @_SSL_ct_is_enabled + {$else} + {$IF declared(ERR_SSL_ct_is_enabled)} + SSL_ct_is_enabled := @ERR_SSL_ct_is_enabled + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_ct_is_enabled) and Assigned(AFailed) then + AFailed.Add('SSL_ct_is_enabled'); + end; + + + if not assigned(SSL_CTX_ct_is_enabled) then + begin + {$if declared(SSL_CTX_ct_is_enabled_introduced)} + if LibVersion < SSL_CTX_ct_is_enabled_introduced then + {$if declared(FC_SSL_CTX_ct_is_enabled)} + SSL_CTX_ct_is_enabled := @FC_SSL_CTX_ct_is_enabled + {$else} + SSL_CTX_ct_is_enabled := @ERR_SSL_CTX_ct_is_enabled + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_ct_is_enabled_removed)} + if SSL_CTX_ct_is_enabled_removed <= LibVersion then + {$if declared(_SSL_CTX_ct_is_enabled)} + SSL_CTX_ct_is_enabled := @_SSL_CTX_ct_is_enabled + {$else} + {$IF declared(ERR_SSL_CTX_ct_is_enabled)} + SSL_CTX_ct_is_enabled := @ERR_SSL_CTX_ct_is_enabled + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_ct_is_enabled) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_ct_is_enabled'); + end; + + + if not assigned(SSL_CTX_set_default_ctlog_list_file) then + begin + {$if declared(SSL_CTX_set_default_ctlog_list_file_introduced)} + if LibVersion < SSL_CTX_set_default_ctlog_list_file_introduced then + {$if declared(FC_SSL_CTX_set_default_ctlog_list_file)} + SSL_CTX_set_default_ctlog_list_file := @FC_SSL_CTX_set_default_ctlog_list_file + {$else} + SSL_CTX_set_default_ctlog_list_file := @ERR_SSL_CTX_set_default_ctlog_list_file + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_default_ctlog_list_file_removed)} + if SSL_CTX_set_default_ctlog_list_file_removed <= LibVersion then + {$if declared(_SSL_CTX_set_default_ctlog_list_file)} + SSL_CTX_set_default_ctlog_list_file := @_SSL_CTX_set_default_ctlog_list_file + {$else} + {$IF declared(ERR_SSL_CTX_set_default_ctlog_list_file)} + SSL_CTX_set_default_ctlog_list_file := @ERR_SSL_CTX_set_default_ctlog_list_file + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_default_ctlog_list_file) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_default_ctlog_list_file'); + end; + + + if not assigned(SSL_CTX_set_ctlog_list_file) then + begin + {$if declared(SSL_CTX_set_ctlog_list_file_introduced)} + if LibVersion < SSL_CTX_set_ctlog_list_file_introduced then + {$if declared(FC_SSL_CTX_set_ctlog_list_file)} + SSL_CTX_set_ctlog_list_file := @FC_SSL_CTX_set_ctlog_list_file + {$else} + SSL_CTX_set_ctlog_list_file := @ERR_SSL_CTX_set_ctlog_list_file + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_ctlog_list_file_removed)} + if SSL_CTX_set_ctlog_list_file_removed <= LibVersion then + {$if declared(_SSL_CTX_set_ctlog_list_file)} + SSL_CTX_set_ctlog_list_file := @_SSL_CTX_set_ctlog_list_file + {$else} + {$IF declared(ERR_SSL_CTX_set_ctlog_list_file)} + SSL_CTX_set_ctlog_list_file := @ERR_SSL_CTX_set_ctlog_list_file + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_ctlog_list_file) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_ctlog_list_file'); + end; + + + if not assigned(SSL_CTX_set0_ctlog_store) then + begin + {$if declared(SSL_CTX_set0_ctlog_store_introduced)} + if LibVersion < SSL_CTX_set0_ctlog_store_introduced then + {$if declared(FC_SSL_CTX_set0_ctlog_store)} + SSL_CTX_set0_ctlog_store := @FC_SSL_CTX_set0_ctlog_store + {$else} + SSL_CTX_set0_ctlog_store := @ERR_SSL_CTX_set0_ctlog_store + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set0_ctlog_store_removed)} + if SSL_CTX_set0_ctlog_store_removed <= LibVersion then + {$if declared(_SSL_CTX_set0_ctlog_store)} + SSL_CTX_set0_ctlog_store := @_SSL_CTX_set0_ctlog_store + {$else} + {$IF declared(ERR_SSL_CTX_set0_ctlog_store)} + SSL_CTX_set0_ctlog_store := @ERR_SSL_CTX_set0_ctlog_store + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set0_ctlog_store) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set0_ctlog_store'); + end; + + + if not assigned(SSL_set_security_level) then + begin + {$if declared(SSL_set_security_level_introduced)} + if LibVersion < SSL_set_security_level_introduced then + {$if declared(FC_SSL_set_security_level)} + SSL_set_security_level := @FC_SSL_set_security_level + {$else} + SSL_set_security_level := @ERR_SSL_set_security_level + {$ifend} + else + {$ifend} + {$if declared(SSL_set_security_level_removed)} + if SSL_set_security_level_removed <= LibVersion then + {$if declared(_SSL_set_security_level)} + SSL_set_security_level := @_SSL_set_security_level + {$else} + {$IF declared(ERR_SSL_set_security_level)} + SSL_set_security_level := @ERR_SSL_set_security_level + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_security_level) and Assigned(AFailed) then + AFailed.Add('SSL_set_security_level'); + end; + + + if not assigned(SSL_set_security_callback) then + begin + {$if declared(SSL_set_security_callback_introduced)} + if LibVersion < SSL_set_security_callback_introduced then + {$if declared(FC_SSL_set_security_callback)} + SSL_set_security_callback := @FC_SSL_set_security_callback + {$else} + SSL_set_security_callback := @ERR_SSL_set_security_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_set_security_callback_removed)} + if SSL_set_security_callback_removed <= LibVersion then + {$if declared(_SSL_set_security_callback)} + SSL_set_security_callback := @_SSL_set_security_callback + {$else} + {$IF declared(ERR_SSL_set_security_callback)} + SSL_set_security_callback := @ERR_SSL_set_security_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_security_callback) and Assigned(AFailed) then + AFailed.Add('SSL_set_security_callback'); + end; + + + if not assigned(SSL_get_security_callback) then + begin + {$if declared(SSL_get_security_callback_introduced)} + if LibVersion < SSL_get_security_callback_introduced then + {$if declared(FC_SSL_get_security_callback)} + SSL_get_security_callback := @FC_SSL_get_security_callback + {$else} + SSL_get_security_callback := @ERR_SSL_get_security_callback + {$ifend} + else + {$ifend} + {$if declared(SSL_get_security_callback_removed)} + if SSL_get_security_callback_removed <= LibVersion then + {$if declared(_SSL_get_security_callback)} + SSL_get_security_callback := @_SSL_get_security_callback + {$else} + {$IF declared(ERR_SSL_get_security_callback)} + SSL_get_security_callback := @ERR_SSL_get_security_callback + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_security_callback) and Assigned(AFailed) then + AFailed.Add('SSL_get_security_callback'); + end; + + + if not assigned(SSL_set0_security_ex_data) then + begin + {$if declared(SSL_set0_security_ex_data_introduced)} + if LibVersion < SSL_set0_security_ex_data_introduced then + {$if declared(FC_SSL_set0_security_ex_data)} + SSL_set0_security_ex_data := @FC_SSL_set0_security_ex_data + {$else} + SSL_set0_security_ex_data := @ERR_SSL_set0_security_ex_data + {$ifend} + else + {$ifend} + {$if declared(SSL_set0_security_ex_data_removed)} + if SSL_set0_security_ex_data_removed <= LibVersion then + {$if declared(_SSL_set0_security_ex_data)} + SSL_set0_security_ex_data := @_SSL_set0_security_ex_data + {$else} + {$IF declared(ERR_SSL_set0_security_ex_data)} + SSL_set0_security_ex_data := @ERR_SSL_set0_security_ex_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set0_security_ex_data) and Assigned(AFailed) then + AFailed.Add('SSL_set0_security_ex_data'); + end; + + + if not assigned(SSL_get0_security_ex_data) then + begin + {$if declared(SSL_get0_security_ex_data_introduced)} + if LibVersion < SSL_get0_security_ex_data_introduced then + {$if declared(FC_SSL_get0_security_ex_data)} + SSL_get0_security_ex_data := @FC_SSL_get0_security_ex_data + {$else} + SSL_get0_security_ex_data := @ERR_SSL_get0_security_ex_data + {$ifend} + else + {$ifend} + {$if declared(SSL_get0_security_ex_data_removed)} + if SSL_get0_security_ex_data_removed <= LibVersion then + {$if declared(_SSL_get0_security_ex_data)} + SSL_get0_security_ex_data := @_SSL_get0_security_ex_data + {$else} + {$IF declared(ERR_SSL_get0_security_ex_data)} + SSL_get0_security_ex_data := @ERR_SSL_get0_security_ex_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get0_security_ex_data) and Assigned(AFailed) then + AFailed.Add('SSL_get0_security_ex_data'); + end; + + + if not assigned(SSL_CTX_set_security_level) then + begin + {$if declared(SSL_CTX_set_security_level_introduced)} + if LibVersion < SSL_CTX_set_security_level_introduced then + {$if declared(FC_SSL_CTX_set_security_level)} + SSL_CTX_set_security_level := @FC_SSL_CTX_set_security_level + {$else} + SSL_CTX_set_security_level := @ERR_SSL_CTX_set_security_level + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_security_level_removed)} + if SSL_CTX_set_security_level_removed <= LibVersion then + {$if declared(_SSL_CTX_set_security_level)} + SSL_CTX_set_security_level := @_SSL_CTX_set_security_level + {$else} + {$IF declared(ERR_SSL_CTX_set_security_level)} + SSL_CTX_set_security_level := @ERR_SSL_CTX_set_security_level + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_security_level) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_security_level'); + end; + + + if not assigned(SSL_CTX_get_security_level) then + begin + {$if declared(SSL_CTX_get_security_level_introduced)} + if LibVersion < SSL_CTX_get_security_level_introduced then + {$if declared(FC_SSL_CTX_get_security_level)} + SSL_CTX_get_security_level := @FC_SSL_CTX_get_security_level + {$else} + SSL_CTX_get_security_level := @ERR_SSL_CTX_get_security_level + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get_security_level_removed)} + if SSL_CTX_get_security_level_removed <= LibVersion then + {$if declared(_SSL_CTX_get_security_level)} + SSL_CTX_get_security_level := @_SSL_CTX_get_security_level + {$else} + {$IF declared(ERR_SSL_CTX_get_security_level)} + SSL_CTX_get_security_level := @ERR_SSL_CTX_get_security_level + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get_security_level) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get_security_level'); + end; + + + if not assigned(SSL_CTX_get0_security_ex_data) then + begin + {$if declared(SSL_CTX_get0_security_ex_data_introduced)} + if LibVersion < SSL_CTX_get0_security_ex_data_introduced then + {$if declared(FC_SSL_CTX_get0_security_ex_data)} + SSL_CTX_get0_security_ex_data := @FC_SSL_CTX_get0_security_ex_data + {$else} + SSL_CTX_get0_security_ex_data := @ERR_SSL_CTX_get0_security_ex_data + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_get0_security_ex_data_removed)} + if SSL_CTX_get0_security_ex_data_removed <= LibVersion then + {$if declared(_SSL_CTX_get0_security_ex_data)} + SSL_CTX_get0_security_ex_data := @_SSL_CTX_get0_security_ex_data + {$else} + {$IF declared(ERR_SSL_CTX_get0_security_ex_data)} + SSL_CTX_get0_security_ex_data := @ERR_SSL_CTX_get0_security_ex_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_get0_security_ex_data) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_get0_security_ex_data'); + end; + + + if not assigned(SSL_CTX_set0_security_ex_data) then + begin + {$if declared(SSL_CTX_set0_security_ex_data_introduced)} + if LibVersion < SSL_CTX_set0_security_ex_data_introduced then + {$if declared(FC_SSL_CTX_set0_security_ex_data)} + SSL_CTX_set0_security_ex_data := @FC_SSL_CTX_set0_security_ex_data + {$else} + SSL_CTX_set0_security_ex_data := @ERR_SSL_CTX_set0_security_ex_data + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set0_security_ex_data_removed)} + if SSL_CTX_set0_security_ex_data_removed <= LibVersion then + {$if declared(_SSL_CTX_set0_security_ex_data)} + SSL_CTX_set0_security_ex_data := @_SSL_CTX_set0_security_ex_data + {$else} + {$IF declared(ERR_SSL_CTX_set0_security_ex_data)} + SSL_CTX_set0_security_ex_data := @ERR_SSL_CTX_set0_security_ex_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set0_security_ex_data) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set0_security_ex_data'); + end; + + + if not assigned(OPENSSL_init_ssl) then + begin + {$if declared(OPENSSL_init_ssl_introduced)} + if LibVersion < OPENSSL_init_ssl_introduced then + {$if declared(FC_OPENSSL_init_ssl)} + OPENSSL_init_ssl := @FC_OPENSSL_init_ssl + {$else} + OPENSSL_init_ssl := @ERR_OPENSSL_init_ssl + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_init_ssl_removed)} + if OPENSSL_init_ssl_removed <= LibVersion then + {$if declared(_OPENSSL_init_ssl)} + OPENSSL_init_ssl := @_OPENSSL_init_ssl + {$else} + {$IF declared(ERR_OPENSSL_init_ssl)} + OPENSSL_init_ssl := @ERR_OPENSSL_init_ssl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_init_ssl) and Assigned(AFailed) then + AFailed.Add('OPENSSL_init_ssl'); + end; + + + if not assigned(SSL_free_buffers) then + begin + {$if declared(SSL_free_buffers_introduced)} + if LibVersion < SSL_free_buffers_introduced then + {$if declared(FC_SSL_free_buffers)} + SSL_free_buffers := @FC_SSL_free_buffers + {$else} + SSL_free_buffers := @ERR_SSL_free_buffers + {$ifend} + else + {$ifend} + {$if declared(SSL_free_buffers_removed)} + if SSL_free_buffers_removed <= LibVersion then + {$if declared(_SSL_free_buffers)} + SSL_free_buffers := @_SSL_free_buffers + {$else} + {$IF declared(ERR_SSL_free_buffers)} + SSL_free_buffers := @ERR_SSL_free_buffers + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_free_buffers) and Assigned(AFailed) then + AFailed.Add('SSL_free_buffers'); + end; + + + if not assigned(SSL_alloc_buffers) then + begin + {$if declared(SSL_alloc_buffers_introduced)} + if LibVersion < SSL_alloc_buffers_introduced then + {$if declared(FC_SSL_alloc_buffers)} + SSL_alloc_buffers := @FC_SSL_alloc_buffers + {$else} + SSL_alloc_buffers := @ERR_SSL_alloc_buffers + {$ifend} + else + {$ifend} + {$if declared(SSL_alloc_buffers_removed)} + if SSL_alloc_buffers_removed <= LibVersion then + {$if declared(_SSL_alloc_buffers)} + SSL_alloc_buffers := @_SSL_alloc_buffers + {$else} + {$IF declared(ERR_SSL_alloc_buffers)} + SSL_alloc_buffers := @ERR_SSL_alloc_buffers + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_alloc_buffers) and Assigned(AFailed) then + AFailed.Add('SSL_alloc_buffers'); + end; + + + if not assigned(SSL_CTX_set_session_ticket_cb) then + begin + {$if declared(SSL_CTX_set_session_ticket_cb_introduced)} + if LibVersion < SSL_CTX_set_session_ticket_cb_introduced then + {$if declared(FC_SSL_CTX_set_session_ticket_cb)} + SSL_CTX_set_session_ticket_cb := @FC_SSL_CTX_set_session_ticket_cb + {$else} + SSL_CTX_set_session_ticket_cb := @ERR_SSL_CTX_set_session_ticket_cb + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_session_ticket_cb_removed)} + if SSL_CTX_set_session_ticket_cb_removed <= LibVersion then + {$if declared(_SSL_CTX_set_session_ticket_cb)} + SSL_CTX_set_session_ticket_cb := @_SSL_CTX_set_session_ticket_cb + {$else} + {$IF declared(ERR_SSL_CTX_set_session_ticket_cb)} + SSL_CTX_set_session_ticket_cb := @ERR_SSL_CTX_set_session_ticket_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_session_ticket_cb) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_session_ticket_cb'); + end; + + + if not assigned(SSL_SESSION_set1_ticket_appdata) then + begin + {$if declared(SSL_SESSION_set1_ticket_appdata_introduced)} + if LibVersion < SSL_SESSION_set1_ticket_appdata_introduced then + {$if declared(FC_SSL_SESSION_set1_ticket_appdata)} + SSL_SESSION_set1_ticket_appdata := @FC_SSL_SESSION_set1_ticket_appdata + {$else} + SSL_SESSION_set1_ticket_appdata := @ERR_SSL_SESSION_set1_ticket_appdata + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_set1_ticket_appdata_removed)} + if SSL_SESSION_set1_ticket_appdata_removed <= LibVersion then + {$if declared(_SSL_SESSION_set1_ticket_appdata)} + SSL_SESSION_set1_ticket_appdata := @_SSL_SESSION_set1_ticket_appdata + {$else} + {$IF declared(ERR_SSL_SESSION_set1_ticket_appdata)} + SSL_SESSION_set1_ticket_appdata := @ERR_SSL_SESSION_set1_ticket_appdata + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_set1_ticket_appdata) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_set1_ticket_appdata'); + end; + + + if not assigned(SSL_SESSION_get0_ticket_appdata) then + begin + {$if declared(SSL_SESSION_get0_ticket_appdata_introduced)} + if LibVersion < SSL_SESSION_get0_ticket_appdata_introduced then + {$if declared(FC_SSL_SESSION_get0_ticket_appdata)} + SSL_SESSION_get0_ticket_appdata := @FC_SSL_SESSION_get0_ticket_appdata + {$else} + SSL_SESSION_get0_ticket_appdata := @ERR_SSL_SESSION_get0_ticket_appdata + {$ifend} + else + {$ifend} + {$if declared(SSL_SESSION_get0_ticket_appdata_removed)} + if SSL_SESSION_get0_ticket_appdata_removed <= LibVersion then + {$if declared(_SSL_SESSION_get0_ticket_appdata)} + SSL_SESSION_get0_ticket_appdata := @_SSL_SESSION_get0_ticket_appdata + {$else} + {$IF declared(ERR_SSL_SESSION_get0_ticket_appdata)} + SSL_SESSION_get0_ticket_appdata := @ERR_SSL_SESSION_get0_ticket_appdata + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_SESSION_get0_ticket_appdata) and Assigned(AFailed) then + AFailed.Add('SSL_SESSION_get0_ticket_appdata'); + end; + + + if not assigned(DTLS_set_timer_cb) then + begin + {$if declared(DTLS_set_timer_cb_introduced)} + if LibVersion < DTLS_set_timer_cb_introduced then + {$if declared(FC_DTLS_set_timer_cb)} + DTLS_set_timer_cb := @FC_DTLS_set_timer_cb + {$else} + DTLS_set_timer_cb := @ERR_DTLS_set_timer_cb + {$ifend} + else + {$ifend} + {$if declared(DTLS_set_timer_cb_removed)} + if DTLS_set_timer_cb_removed <= LibVersion then + {$if declared(_DTLS_set_timer_cb)} + DTLS_set_timer_cb := @_DTLS_set_timer_cb + {$else} + {$IF declared(ERR_DTLS_set_timer_cb)} + DTLS_set_timer_cb := @ERR_DTLS_set_timer_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(DTLS_set_timer_cb) and Assigned(AFailed) then + AFailed.Add('DTLS_set_timer_cb'); + end; + + + if not assigned(SSL_CTX_set_allow_early_data_cb) then + begin + {$if declared(SSL_CTX_set_allow_early_data_cb_introduced)} + if LibVersion < SSL_CTX_set_allow_early_data_cb_introduced then + {$if declared(FC_SSL_CTX_set_allow_early_data_cb)} + SSL_CTX_set_allow_early_data_cb := @FC_SSL_CTX_set_allow_early_data_cb + {$else} + SSL_CTX_set_allow_early_data_cb := @ERR_SSL_CTX_set_allow_early_data_cb + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_allow_early_data_cb_removed)} + if SSL_CTX_set_allow_early_data_cb_removed <= LibVersion then + {$if declared(_SSL_CTX_set_allow_early_data_cb)} + SSL_CTX_set_allow_early_data_cb := @_SSL_CTX_set_allow_early_data_cb + {$else} + {$IF declared(ERR_SSL_CTX_set_allow_early_data_cb)} + SSL_CTX_set_allow_early_data_cb := @ERR_SSL_CTX_set_allow_early_data_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_allow_early_data_cb) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_allow_early_data_cb'); + end; + + + if not assigned(SSL_set_allow_early_data_cb) then + begin + {$if declared(SSL_set_allow_early_data_cb_introduced)} + if LibVersion < SSL_set_allow_early_data_cb_introduced then + {$if declared(FC_SSL_set_allow_early_data_cb)} + SSL_set_allow_early_data_cb := @FC_SSL_set_allow_early_data_cb + {$else} + SSL_set_allow_early_data_cb := @ERR_SSL_set_allow_early_data_cb + {$ifend} + else + {$ifend} + {$if declared(SSL_set_allow_early_data_cb_removed)} + if SSL_set_allow_early_data_cb_removed <= LibVersion then + {$if declared(_SSL_set_allow_early_data_cb)} + SSL_set_allow_early_data_cb := @_SSL_set_allow_early_data_cb + {$else} + {$IF declared(ERR_SSL_set_allow_early_data_cb)} + SSL_set_allow_early_data_cb := @ERR_SSL_set_allow_early_data_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_allow_early_data_cb) and Assigned(AFailed) then + AFailed.Add('SSL_set_allow_early_data_cb'); + end; + + + if not assigned(SSLv2_method) then + begin + {$if declared(SSLv2_method_introduced)} + if LibVersion < SSLv2_method_introduced then + {$if declared(FC_SSLv2_method)} + SSLv2_method := @FC_SSLv2_method + {$else} + SSLv2_method := @ERR_SSLv2_method + {$ifend} + else + {$ifend} + {$if declared(SSLv2_method_removed)} + if SSLv2_method_removed <= LibVersion then + {$if declared(_SSLv2_method)} + SSLv2_method := @_SSLv2_method + {$else} + {$IF declared(ERR_SSLv2_method)} + SSLv2_method := @ERR_SSLv2_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLv2_method) and Assigned(AFailed) then + AFailed.Add('SSLv2_method'); + end; + + // SSLv2 + if not assigned(SSLv2_server_method) then + begin + {$if declared(SSLv2_server_method_introduced)} + if LibVersion < SSLv2_server_method_introduced then + {$if declared(FC_SSLv2_server_method)} + SSLv2_server_method := @FC_SSLv2_server_method + {$else} + SSLv2_server_method := @ERR_SSLv2_server_method + {$ifend} + else + {$ifend} + {$if declared(SSLv2_server_method_removed)} + if SSLv2_server_method_removed <= LibVersion then + {$if declared(_SSLv2_server_method)} + SSLv2_server_method := @_SSLv2_server_method + {$else} + {$IF declared(ERR_SSLv2_server_method)} + SSLv2_server_method := @ERR_SSLv2_server_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLv2_server_method) and Assigned(AFailed) then + AFailed.Add('SSLv2_server_method'); + end; + + // SSLv2 + if not assigned(SSLv2_client_method) then + begin + {$if declared(SSLv2_client_method_introduced)} + if LibVersion < SSLv2_client_method_introduced then + {$if declared(FC_SSLv2_client_method)} + SSLv2_client_method := @FC_SSLv2_client_method + {$else} + SSLv2_client_method := @ERR_SSLv2_client_method + {$ifend} + else + {$ifend} + {$if declared(SSLv2_client_method_removed)} + if SSLv2_client_method_removed <= LibVersion then + {$if declared(_SSLv2_client_method)} + SSLv2_client_method := @_SSLv2_client_method + {$else} + {$IF declared(ERR_SSLv2_client_method)} + SSLv2_client_method := @ERR_SSLv2_client_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLv2_client_method) and Assigned(AFailed) then + AFailed.Add('SSLv2_client_method'); + end; + + // SSLv2 + if not assigned(SSLv3_method) then + begin + {$if declared(SSLv3_method_introduced)} + if LibVersion < SSLv3_method_introduced then + {$if declared(FC_SSLv3_method)} + SSLv3_method := @FC_SSLv3_method + {$else} + SSLv3_method := @ERR_SSLv3_method + {$ifend} + else + {$ifend} + {$if declared(SSLv3_method_removed)} + if SSLv3_method_removed <= LibVersion then + {$if declared(_SSLv3_method)} + SSLv3_method := @_SSLv3_method + {$else} + {$IF declared(ERR_SSLv3_method)} + SSLv3_method := @ERR_SSLv3_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLv3_method) and Assigned(AFailed) then + AFailed.Add('SSLv3_method'); + end; + + // SSLv3 + if not assigned(SSLv3_server_method) then + begin + {$if declared(SSLv3_server_method_introduced)} + if LibVersion < SSLv3_server_method_introduced then + {$if declared(FC_SSLv3_server_method)} + SSLv3_server_method := @FC_SSLv3_server_method + {$else} + SSLv3_server_method := @ERR_SSLv3_server_method + {$ifend} + else + {$ifend} + {$if declared(SSLv3_server_method_removed)} + if SSLv3_server_method_removed <= LibVersion then + {$if declared(_SSLv3_server_method)} + SSLv3_server_method := @_SSLv3_server_method + {$else} + {$IF declared(ERR_SSLv3_server_method)} + SSLv3_server_method := @ERR_SSLv3_server_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLv3_server_method) and Assigned(AFailed) then + AFailed.Add('SSLv3_server_method'); + end; + + // SSLv3 + if not assigned(SSLv3_client_method) then + begin + {$if declared(SSLv3_client_method_introduced)} + if LibVersion < SSLv3_client_method_introduced then + {$if declared(FC_SSLv3_client_method)} + SSLv3_client_method := @FC_SSLv3_client_method + {$else} + SSLv3_client_method := @ERR_SSLv3_client_method + {$ifend} + else + {$ifend} + {$if declared(SSLv3_client_method_removed)} + if SSLv3_client_method_removed <= LibVersion then + {$if declared(_SSLv3_client_method)} + SSLv3_client_method := @_SSLv3_client_method + {$else} + {$IF declared(ERR_SSLv3_client_method)} + SSLv3_client_method := @ERR_SSLv3_client_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLv3_client_method) and Assigned(AFailed) then + AFailed.Add('SSLv3_client_method'); + end; + + // SSLv3 + if not assigned(SSLv23_method) then + begin + {$if declared(SSLv23_method_introduced)} + if LibVersion < SSLv23_method_introduced then + {$if declared(FC_SSLv23_method)} + SSLv23_method := @FC_SSLv23_method + {$else} + SSLv23_method := @ERR_SSLv23_method + {$ifend} + else + {$ifend} + {$if declared(SSLv23_method_removed)} + if SSLv23_method_removed <= LibVersion then + {$if declared(_SSLv23_method)} + SSLv23_method := @_SSLv23_method + {$else} + {$IF declared(ERR_SSLv23_method)} + SSLv23_method := @ERR_SSLv23_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLv23_method) and Assigned(AFailed) then + AFailed.Add('SSLv23_method'); + end; + + // SSLv3 but can rollback to v2 + if not assigned(SSLv23_server_method) then + begin + {$if declared(SSLv23_server_method_introduced)} + if LibVersion < SSLv23_server_method_introduced then + {$if declared(FC_SSLv23_server_method)} + SSLv23_server_method := @FC_SSLv23_server_method + {$else} + SSLv23_server_method := @ERR_SSLv23_server_method + {$ifend} + else + {$ifend} + {$if declared(SSLv23_server_method_removed)} + if SSLv23_server_method_removed <= LibVersion then + {$if declared(_SSLv23_server_method)} + SSLv23_server_method := @_SSLv23_server_method + {$else} + {$IF declared(ERR_SSLv23_server_method)} + SSLv23_server_method := @ERR_SSLv23_server_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLv23_server_method) and Assigned(AFailed) then + AFailed.Add('SSLv23_server_method'); + end; + + // SSLv3 but can rollback to v2 + if not assigned(SSLv23_client_method) then + begin + {$if declared(SSLv23_client_method_introduced)} + if LibVersion < SSLv23_client_method_introduced then + {$if declared(FC_SSLv23_client_method)} + SSLv23_client_method := @FC_SSLv23_client_method + {$else} + SSLv23_client_method := @ERR_SSLv23_client_method + {$ifend} + else + {$ifend} + {$if declared(SSLv23_client_method_removed)} + if SSLv23_client_method_removed <= LibVersion then + {$if declared(_SSLv23_client_method)} + SSLv23_client_method := @_SSLv23_client_method + {$else} + {$IF declared(ERR_SSLv23_client_method)} + SSLv23_client_method := @ERR_SSLv23_client_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSLv23_client_method) and Assigned(AFailed) then + AFailed.Add('SSLv23_client_method'); + end; + + // SSLv3 but can rollback to v2 + if not assigned(TLSv1_method) then + begin + {$if declared(TLSv1_method_introduced)} + if LibVersion < TLSv1_method_introduced then + {$if declared(FC_TLSv1_method)} + TLSv1_method := @FC_TLSv1_method + {$else} + TLSv1_method := @ERR_TLSv1_method + {$ifend} + else + {$ifend} + {$if declared(TLSv1_method_removed)} + if TLSv1_method_removed <= LibVersion then + {$if declared(_TLSv1_method)} + TLSv1_method := @_TLSv1_method + {$else} + {$IF declared(ERR_TLSv1_method)} + TLSv1_method := @ERR_TLSv1_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLSv1_method) and Assigned(AFailed) then + AFailed.Add('TLSv1_method'); + end; + + // TLSv1.0 + if not assigned(TLSv1_server_method) then + begin + {$if declared(TLSv1_server_method_introduced)} + if LibVersion < TLSv1_server_method_introduced then + {$if declared(FC_TLSv1_server_method)} + TLSv1_server_method := @FC_TLSv1_server_method + {$else} + TLSv1_server_method := @ERR_TLSv1_server_method + {$ifend} + else + {$ifend} + {$if declared(TLSv1_server_method_removed)} + if TLSv1_server_method_removed <= LibVersion then + {$if declared(_TLSv1_server_method)} + TLSv1_server_method := @_TLSv1_server_method + {$else} + {$IF declared(ERR_TLSv1_server_method)} + TLSv1_server_method := @ERR_TLSv1_server_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLSv1_server_method) and Assigned(AFailed) then + AFailed.Add('TLSv1_server_method'); + end; + + // TLSv1.0 + if not assigned(TLSv1_client_method) then + begin + {$if declared(TLSv1_client_method_introduced)} + if LibVersion < TLSv1_client_method_introduced then + {$if declared(FC_TLSv1_client_method)} + TLSv1_client_method := @FC_TLSv1_client_method + {$else} + TLSv1_client_method := @ERR_TLSv1_client_method + {$ifend} + else + {$ifend} + {$if declared(TLSv1_client_method_removed)} + if TLSv1_client_method_removed <= LibVersion then + {$if declared(_TLSv1_client_method)} + TLSv1_client_method := @_TLSv1_client_method + {$else} + {$IF declared(ERR_TLSv1_client_method)} + TLSv1_client_method := @ERR_TLSv1_client_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLSv1_client_method) and Assigned(AFailed) then + AFailed.Add('TLSv1_client_method'); + end; + + // TLSv1.0 + if not assigned(TLSv1_1_method) then + begin + {$if declared(TLSv1_1_method_introduced)} + if LibVersion < TLSv1_1_method_introduced then + {$if declared(FC_TLSv1_1_method)} + TLSv1_1_method := @FC_TLSv1_1_method + {$else} + TLSv1_1_method := @ERR_TLSv1_1_method + {$ifend} + else + {$ifend} + {$if declared(TLSv1_1_method_removed)} + if TLSv1_1_method_removed <= LibVersion then + {$if declared(_TLSv1_1_method)} + TLSv1_1_method := @_TLSv1_1_method + {$else} + {$IF declared(ERR_TLSv1_1_method)} + TLSv1_1_method := @ERR_TLSv1_1_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLSv1_1_method) and Assigned(AFailed) then + AFailed.Add('TLSv1_1_method'); + end; + + //TLS1.1 + if not assigned(TLSv1_1_server_method) then + begin + {$if declared(TLSv1_1_server_method_introduced)} + if LibVersion < TLSv1_1_server_method_introduced then + {$if declared(FC_TLSv1_1_server_method)} + TLSv1_1_server_method := @FC_TLSv1_1_server_method + {$else} + TLSv1_1_server_method := @ERR_TLSv1_1_server_method + {$ifend} + else + {$ifend} + {$if declared(TLSv1_1_server_method_removed)} + if TLSv1_1_server_method_removed <= LibVersion then + {$if declared(_TLSv1_1_server_method)} + TLSv1_1_server_method := @_TLSv1_1_server_method + {$else} + {$IF declared(ERR_TLSv1_1_server_method)} + TLSv1_1_server_method := @ERR_TLSv1_1_server_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLSv1_1_server_method) and Assigned(AFailed) then + AFailed.Add('TLSv1_1_server_method'); + end; + + //TLS1.1 + if not assigned(TLSv1_1_client_method) then + begin + {$if declared(TLSv1_1_client_method_introduced)} + if LibVersion < TLSv1_1_client_method_introduced then + {$if declared(FC_TLSv1_1_client_method)} + TLSv1_1_client_method := @FC_TLSv1_1_client_method + {$else} + TLSv1_1_client_method := @ERR_TLSv1_1_client_method + {$ifend} + else + {$ifend} + {$if declared(TLSv1_1_client_method_removed)} + if TLSv1_1_client_method_removed <= LibVersion then + {$if declared(_TLSv1_1_client_method)} + TLSv1_1_client_method := @_TLSv1_1_client_method + {$else} + {$IF declared(ERR_TLSv1_1_client_method)} + TLSv1_1_client_method := @ERR_TLSv1_1_client_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLSv1_1_client_method) and Assigned(AFailed) then + AFailed.Add('TLSv1_1_client_method'); + end; + + //TLS1.1 + if not assigned(TLSv1_2_method) then + begin + {$if declared(TLSv1_2_method_introduced)} + if LibVersion < TLSv1_2_method_introduced then + {$if declared(FC_TLSv1_2_method)} + TLSv1_2_method := @FC_TLSv1_2_method + {$else} + TLSv1_2_method := @ERR_TLSv1_2_method + {$ifend} + else + {$ifend} + {$if declared(TLSv1_2_method_removed)} + if TLSv1_2_method_removed <= LibVersion then + {$if declared(_TLSv1_2_method)} + TLSv1_2_method := @_TLSv1_2_method + {$else} + {$IF declared(ERR_TLSv1_2_method)} + TLSv1_2_method := @ERR_TLSv1_2_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLSv1_2_method) and Assigned(AFailed) then + AFailed.Add('TLSv1_2_method'); + end; + + // TLSv1.2 + if not assigned(TLSv1_2_server_method) then + begin + {$if declared(TLSv1_2_server_method_introduced)} + if LibVersion < TLSv1_2_server_method_introduced then + {$if declared(FC_TLSv1_2_server_method)} + TLSv1_2_server_method := @FC_TLSv1_2_server_method + {$else} + TLSv1_2_server_method := @ERR_TLSv1_2_server_method + {$ifend} + else + {$ifend} + {$if declared(TLSv1_2_server_method_removed)} + if TLSv1_2_server_method_removed <= LibVersion then + {$if declared(_TLSv1_2_server_method)} + TLSv1_2_server_method := @_TLSv1_2_server_method + {$else} + {$IF declared(ERR_TLSv1_2_server_method)} + TLSv1_2_server_method := @ERR_TLSv1_2_server_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLSv1_2_server_method) and Assigned(AFailed) then + AFailed.Add('TLSv1_2_server_method'); + end; + + // TLSv1.2 + if not assigned(TLSv1_2_client_method) then + begin + {$if declared(TLSv1_2_client_method_introduced)} + if LibVersion < TLSv1_2_client_method_introduced then + {$if declared(FC_TLSv1_2_client_method)} + TLSv1_2_client_method := @FC_TLSv1_2_client_method + {$else} + TLSv1_2_client_method := @ERR_TLSv1_2_client_method + {$ifend} + else + {$ifend} + {$if declared(TLSv1_2_client_method_removed)} + if TLSv1_2_client_method_removed <= LibVersion then + {$if declared(_TLSv1_2_client_method)} + TLSv1_2_client_method := @_TLSv1_2_client_method + {$else} + {$IF declared(ERR_TLSv1_2_client_method)} + TLSv1_2_client_method := @ERR_TLSv1_2_client_method + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(TLSv1_2_client_method) and Assigned(AFailed) then + AFailed.Add('TLSv1_2_client_method'); + end; + + // TLSv1.2 + if not assigned(SSL_get0_peer_certificate) then + begin + {$if declared(SSL_get0_peer_certificate_introduced)} + if LibVersion < SSL_get0_peer_certificate_introduced then + {$if declared(FC_SSL_get0_peer_certificate)} + SSL_get0_peer_certificate := @FC_SSL_get0_peer_certificate + {$else} + SSL_get0_peer_certificate := @ERR_SSL_get0_peer_certificate + {$ifend} + else + {$ifend} + {$if declared(SSL_get0_peer_certificate_removed)} + if SSL_get0_peer_certificate_removed <= LibVersion then + {$if declared(_SSL_get0_peer_certificate)} + SSL_get0_peer_certificate := @_SSL_get0_peer_certificate + {$else} + {$IF declared(ERR_SSL_get0_peer_certificate)} + SSL_get0_peer_certificate := @ERR_SSL_get0_peer_certificate + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get0_peer_certificate) and Assigned(AFailed) then + AFailed.Add('SSL_get0_peer_certificate'); + end; + + + if not assigned(SSL_get1_peer_certificate) then + begin + {$if declared(SSL_get1_peer_certificate_introduced)} + if LibVersion < SSL_get1_peer_certificate_introduced then + {$if declared(FC_SSL_get1_peer_certificate)} + SSL_get1_peer_certificate := @FC_SSL_get1_peer_certificate + {$else} + SSL_get1_peer_certificate := @ERR_SSL_get1_peer_certificate + {$ifend} + else + {$ifend} + {$if declared(SSL_get1_peer_certificate_removed)} + if SSL_get1_peer_certificate_removed <= LibVersion then + {$if declared(_SSL_get1_peer_certificate)} + SSL_get1_peer_certificate := @_SSL_get1_peer_certificate + {$else} + {$IF declared(ERR_SSL_get1_peer_certificate)} + SSL_get1_peer_certificate := @ERR_SSL_get1_peer_certificate + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get1_peer_certificate) and Assigned(AFailed) then + AFailed.Add('SSL_get1_peer_certificate'); + end; + + +end; + +procedure Unload; +begin + SSL_CTX_set_mode := nil; {removed 1.0.0} + SSL_CTX_clear_mode := nil; {removed 1.0.0} + SSL_CTX_sess_set_cache_size := nil; {removed 1.0.0} + SSL_CTX_sess_get_cache_size := nil; {removed 1.0.0} + SSL_CTX_set_session_cache_mode := nil; {removed 1.0.0} + SSL_CTX_get_session_cache_mode := nil; {removed 1.0.0} + SSL_clear_num_renegotiations := nil; {removed 1.0.0} + SSL_total_renegotiations := nil; {removed 1.0.0} + SSL_CTX_set_tmp_dh := nil; {removed 1.0.0} + SSL_CTX_set_tmp_ecdh := nil; {removed 1.0.0} + SSL_CTX_set_dh_auto := nil; {removed 1.0.0} + SSL_set_dh_auto := nil; {removed 1.0.0} + SSL_set_tmp_dh := nil; {removed 1.0.0} + SSL_set_tmp_ecdh := nil; {removed 1.0.0} + SSL_CTX_add_extra_chain_cert := nil; {removed 1.0.0} + SSL_CTX_get_extra_chain_certs := nil; {removed 1.0.0} + SSL_CTX_get_extra_chain_certs_only := nil; {removed 1.0.0} + SSL_CTX_clear_extra_chain_certs := nil; {removed 1.0.0} + SSL_CTX_set0_chain := nil; {removed 1.0.0} + SSL_CTX_set1_chain := nil; {removed 1.0.0} + SSL_CTX_add0_chain_cert := nil; {removed 1.0.0} + SSL_CTX_add1_chain_cert := nil; {removed 1.0.0} + SSL_CTX_get0_chain_certs := nil; {removed 1.0.0} + SSL_CTX_clear_chain_certs := nil; {removed 1.0.0} + SSL_CTX_build_cert_chain := nil; {removed 1.0.0} + SSL_CTX_select_current_cert := nil; {removed 1.0.0} + SSL_CTX_set_current_cert := nil; {removed 1.0.0} + SSL_CTX_set0_verify_cert_store := nil; {removed 1.0.0} + SSL_CTX_set1_verify_cert_store := nil; {removed 1.0.0} + SSL_CTX_set0_chain_cert_store := nil; {removed 1.0.0} + SSL_CTX_set1_chain_cert_store := nil; {removed 1.0.0} + SSL_set0_chain := nil; {removed 1.0.0} + SSL_set1_chain := nil; {removed 1.0.0} + SSL_add0_chain_cert := nil; {removed 1.0.0} + SSL_add1_chain_cert := nil; {removed 1.0.0} + SSL_get0_chain_certs := nil; {removed 1.0.0} + SSL_clear_chain_certs := nil; {removed 1.0.0} + SSL_build_cert_chain := nil; {removed 1.0.0} + SSL_select_current_cert := nil; {removed 1.0.0} + SSL_set_current_cert := nil; {removed 1.0.0} + SSL_set0_verify_cert_store := nil; {removed 1.0.0} + SSL_set1_verify_cert_store := nil; {removed 1.0.0} + SSL_set0_chain_cert_store := nil; {removed 1.0.0} + SSL_set1_chain_cert_store := nil; {removed 1.0.0} + SSL_get1_groups := nil; {removed 1.0.0} + SSL_CTX_set1_groups := nil; {removed 1.0.0} + SSL_CTX_set1_groups_list := nil; {removed 1.0.0} + SSL_set1_groups := nil; {removed 1.0.0} + SSL_set1_groups_list := nil; {removed 1.0.0} + SSL_get_shared_group := nil; {removed 1.0.0} + SSL_CTX_set1_sigalgs := nil; {removed 1.0.0} + SSL_CTX_set1_sigalgs_list := nil; {removed 1.0.0} + SSL_set1_sigalgs := nil; {removed 1.0.0} + SSL_set1_sigalgs_list := nil; {removed 1.0.0} + SSL_CTX_set1_client_sigalgs := nil; {removed 1.0.0} + SSL_CTX_set1_client_sigalgs_list := nil; {removed 1.0.0} + SSL_set1_client_sigalgs := nil; {removed 1.0.0} + SSL_set1_client_sigalgs_list := nil; {removed 1.0.0} + SSL_get0_certificate_types := nil; {removed 1.0.0} + SSL_CTX_set1_client_certificate_types := nil; {removed 1.0.0} + SSL_set1_client_certificate_types := nil; {removed 1.0.0} + SSL_get_signature_nid := nil; {removed 1.0.0} + SSL_get_peer_signature_nid := nil; {removed 1.0.0} + SSL_get_peer_tmp_key := nil; {removed 1.0.0} + SSL_get_tmp_key := nil; {removed 1.0.0} + SSL_get0_raw_cipherlist := nil; {removed 1.0.0} + SSL_get0_ec_point_formats := nil; {removed 1.0.0} + SSL_CTX_get_options := nil; {introduced 1.1.0} + SSL_get_options := nil; {introduced 1.1.0} + SSL_CTX_clear_options := nil; {introduced 1.1.0} + SSL_clear_options := nil; {introduced 1.1.0} + SSL_CTX_set_options := nil; {introduced 1.1.0} + SSL_set_options := nil; {introduced 1.1.0} + SSL_CTX_sess_set_new_cb := nil; + SSL_CTX_sess_get_new_cb := nil; + SSL_CTX_sess_set_remove_cb := nil; + SSL_CTX_sess_get_remove_cb := nil; + SSL_CTX_set_info_callback := nil; + SSL_CTX_get_info_callback := nil; + SSL_CTX_set_client_cert_cb := nil; + SSL_CTX_get_client_cert_cb := nil; + SSL_CTX_set_client_cert_engine := nil; + SSL_CTX_set_cookie_generate_cb := nil; + SSL_CTX_set_cookie_verify_cb := nil; + SSL_CTX_set_stateless_cookie_generate_cb := nil; {introduced 1.1.0} + SSL_CTX_set_stateless_cookie_verify_cb := nil; {introduced 1.1.0} + SSL_CTX_set_alpn_select_cb := nil; + SSL_get0_alpn_selected := nil; + SSL_CTX_set_psk_client_callback := nil; + SSL_set_psk_client_callback := nil; + SSL_CTX_set_psk_server_callback := nil; + SSL_set_psk_server_callback := nil; + SSL_set_psk_find_session_callback := nil; {introduced 1.1.0} + SSL_CTX_set_psk_find_session_callback := nil; {introduced 1.1.0} + SSL_set_psk_use_session_callback := nil; {introduced 1.1.0} + SSL_CTX_set_psk_use_session_callback := nil; {introduced 1.1.0} + SSL_CTX_set_keylog_callback := nil; {introduced 1.1.0} + SSL_CTX_get_keylog_callback := nil; {introduced 1.1.0} + SSL_CTX_set_max_early_data := nil; {introduced 1.1.0} + SSL_CTX_get_max_early_data := nil; {introduced 1.1.0} + SSL_set_max_early_data := nil; {introduced 1.1.0} + SSL_get_max_early_data := nil; {introduced 1.1.0} + SSL_CTX_set_recv_max_early_data := nil; {introduced 1.1.0} + SSL_CTX_get_recv_max_early_data := nil; {introduced 1.1.0} + SSL_set_recv_max_early_data := nil; {introduced 1.1.0} + SSL_get_recv_max_early_data := nil; {introduced 1.1.0} + SSL_get_app_data := nil; {removed 1.0.0} + SSL_set_app_data := nil; {removed 1.0.0} + SSL_in_init := nil; {introduced 1.1.0} + SSL_in_before := nil; {introduced 1.1.0} + SSL_is_init_finished := nil; {introduced 1.1.0} + SSL_get_finished := nil; + SSL_get_peer_finished := nil; + SSLeay_add_ssl_algorithms := nil; {removed 1.0.0} + BIO_f_ssl := nil; + BIO_new_ssl := nil; + BIO_new_ssl_connect := nil; + BIO_new_buffer_ssl_connect := nil; + BIO_ssl_copy_session_id := nil; + SSL_CTX_set_cipher_list := nil; + SSL_CTX_new := nil; + SSL_CTX_set_timeout := nil; + SSL_CTX_get_timeout := nil; + SSL_CTX_get_cert_store := nil; + SSL_want := nil; + SSL_clear := nil; + BIO_ssl_shutdown := nil; + SSL_CTX_up_ref := nil; {introduced 1.1.0} + SSL_CTX_free := nil; + SSL_CTX_set_cert_store := nil; + SSL_CTX_set1_cert_store := nil; {introduced 1.1.0} + SSL_CTX_flush_sessions := nil; + SSL_get_current_cipher := nil; + SSL_get_pending_cipher := nil; {introduced 1.1.0} + SSL_CIPHER_get_bits := nil; + SSL_CIPHER_get_version := nil; + SSL_CIPHER_get_name := nil; + SSL_CIPHER_standard_name := nil; {introduced 1.1.0} + OPENSSL_cipher_name := nil; {introduced 1.1.0} + SSL_CIPHER_get_id := nil; + SSL_CIPHER_get_protocol_id := nil; {introduced 1.1.0} + SSL_CIPHER_get_kx_nid := nil; {introduced 1.1.0} + SSL_CIPHER_get_auth_nid := nil; {introduced 1.1.0} + SSL_CIPHER_get_handshake_digest := nil; {introduced 1.1.0} + SSL_CIPHER_is_aead := nil; {introduced 1.1.0} + SSL_get_fd := nil; + SSL_get_rfd := nil; + SSL_get_wfd := nil; + SSL_get_cipher_list := nil; + SSL_get_shared_ciphers := nil; + SSL_get_read_ahead := nil; + SSL_pending := nil; + SSL_has_pending := nil; {introduced 1.1.0} + SSL_set_fd := nil; + SSL_set_rfd := nil; + SSL_set_wfd := nil; + SSL_set0_rbio := nil; {introduced 1.1.0} + SSL_set0_wbio := nil; {introduced 1.1.0} + SSL_set_bio := nil; + SSL_get_rbio := nil; + SSL_get_wbio := nil; + SSL_set_cipher_list := nil; + SSL_CTX_set_ciphersuites := nil; {introduced 1.1.0} + SSL_set_ciphersuites := nil; {introduced 1.1.0} + SSL_get_verify_mode := nil; + SSL_get_verify_depth := nil; + SSL_get_verify_callback := nil; + SSL_set_read_ahead := nil; + SSL_set_verify := nil; + SSL_set_verify_depth := nil; + SSL_use_RSAPrivateKey := nil; + SSL_use_RSAPrivateKey_ASN1 := nil; + SSL_use_PrivateKey := nil; + SSL_use_PrivateKey_ASN1 := nil; + SSL_use_certificate := nil; + SSL_use_certificate_ASN1 := nil; + SSL_CTX_use_serverinfo := nil; + SSL_CTX_use_serverinfo_ex := nil; {introduced 1.1.0} + SSL_CTX_use_serverinfo_file := nil; + SSL_use_RSAPrivateKey_file := nil; + SSL_use_PrivateKey_file := nil; + SSL_use_certificate_file := nil; + SSL_CTX_use_RSAPrivateKey_file := nil; + SSL_CTX_use_PrivateKey_file := nil; + SSL_CTX_use_certificate_file := nil; + SSL_CTX_use_certificate_chain_file := nil; + SSL_use_certificate_chain_file := nil; {introduced 1.1.0} + SSL_load_client_CA_file := nil; + SSL_add_file_cert_subjects_to_stack := nil; + SSL_add_dir_cert_subjects_to_stack := nil; + SSL_load_error_strings := nil; {removed 1.1.0} + SSL_state_string := nil; + SSL_rstate_string := nil; + SSL_state_string_long := nil; + SSL_rstate_string_long := nil; + SSL_SESSION_get_time := nil; + SSL_SESSION_set_time := nil; + SSL_SESSION_get_timeout := nil; + SSL_SESSION_set_timeout := nil; + SSL_SESSION_get_protocol_version := nil; {introduced 1.1.0} + SSL_SESSION_set_protocol_version := nil; {introduced 1.1.0} + SSL_SESSION_get0_hostname := nil; {introduced 1.1.0} + SSL_SESSION_set1_hostname := nil; {introduced 1.1.0} + SSL_SESSION_get0_alpn_selected := nil; {introduced 1.1.0} + SSL_SESSION_set1_alpn_selected := nil; {introduced 1.1.0} + SSL_SESSION_get0_cipher := nil; {introduced 1.1.0} + SSL_SESSION_set_cipher := nil; {introduced 1.1.0} + SSL_SESSION_has_ticket := nil; {introduced 1.1.0} + SSL_SESSION_get_ticket_lifetime_hint := nil; {introduced 1.1.0} + SSL_SESSION_get0_ticket := nil; {introduced 1.1.0} + SSL_SESSION_get_max_early_data := nil; {introduced 1.1.0} + SSL_SESSION_set_max_early_data := nil; {introduced 1.1.0} + SSL_copy_session_id := nil; + SSL_SESSION_get0_peer := nil; + SSL_SESSION_set1_id_context := nil; + SSL_SESSION_set1_id := nil; {introduced 1.1.0} + SSL_SESSION_is_resumable := nil; {introduced 1.1.0} + SSL_SESSION_new := nil; + SSL_SESSION_dup := nil; {introduced 1.1.0} + SSL_SESSION_get_id := nil; + SSL_SESSION_get0_id_context := nil; {introduced 1.1.0} + SSL_SESSION_get_compress_id := nil; + SSL_SESSION_print := nil; + SSL_SESSION_print_keylog := nil; {introduced 1.1.0} + SSL_SESSION_up_ref := nil; {introduced 1.1.0} + SSL_SESSION_free := nil; + SSL_set_session := nil; + SSL_CTX_add_session := nil; + SSL_CTX_remove_session := nil; + SSL_CTX_set_generate_session_id := nil; + SSL_set_generate_session_id := nil; + SSL_has_matching_session_id := nil; + d2i_SSL_SESSION := nil; + SSL_get_peer_certificate := nil; {removed 3.0.0} + SSL_CTX_get_verify_mode := nil; + SSL_CTX_get_verify_depth := nil; + SSL_CTX_get_verify_callback := nil; + SSL_CTX_set_verify := nil; + SSL_CTX_set_verify_depth := nil; + SSL_CTX_set_cert_verify_callback := nil; + SSL_CTX_set_cert_cb := nil; + SSL_CTX_use_RSAPrivateKey := nil; + SSL_CTX_use_RSAPrivateKey_ASN1 := nil; + SSL_CTX_use_PrivateKey := nil; + SSL_CTX_use_PrivateKey_ASN1 := nil; + SSL_CTX_use_certificate := nil; + SSL_CTX_use_certificate_ASN1 := nil; + SSL_CTX_set_default_passwd_cb := nil; {introduced 1.1.0} + SSL_CTX_set_default_passwd_cb_userdata := nil; {introduced 1.1.0} + SSL_CTX_get_default_passwd_cb := nil; {introduced 1.1.0} + SSL_CTX_get_default_passwd_cb_userdata := nil; {introduced 1.1.0} + SSL_set_default_passwd_cb := nil; {introduced 1.1.0} + SSL_set_default_passwd_cb_userdata := nil; {introduced 1.1.0} + SSL_get_default_passwd_cb := nil; {introduced 1.1.0} + SSL_get_default_passwd_cb_userdata := nil; {introduced 1.1.0} + SSL_CTX_check_private_key := nil; + SSL_check_private_key := nil; + SSL_CTX_set_session_id_context := nil; + SSL_new := nil; + SSL_up_ref := nil; {introduced 1.1.0} + SSL_is_dtls := nil; {introduced 1.1.0} + SSL_set_session_id_context := nil; + SSL_CTX_set_purpose := nil; + SSL_set_purpose := nil; + SSL_CTX_set_trust := nil; + SSL_set_trust := nil; + SSL_set1_host := nil; {introduced 1.1.0} + SSL_add1_host := nil; {introduced 1.1.0} + SSL_get0_peername := nil; {introduced 1.1.0} + SSL_set_hostflags := nil; {introduced 1.1.0} + SSL_CTX_dane_enable := nil; {introduced 1.1.0} + SSL_CTX_dane_mtype_set := nil; {introduced 1.1.0} + SSL_dane_enable := nil; {introduced 1.1.0} + SSL_dane_tlsa_add := nil; {introduced 1.1.0} + SSL_get0_dane_authority := nil; {introduced 1.1.0} + SSL_get0_dane_tlsa := nil; {introduced 1.1.0} + SSL_get0_dane := nil; {introduced 1.1.0} + SSL_CTX_dane_set_flags := nil; {introduced 1.1.0} + SSL_CTX_dane_clear_flags := nil; {introduced 1.1.0} + SSL_dane_set_flags := nil; {introduced 1.1.0} + SSL_dane_clear_flags := nil; {introduced 1.1.0} + SSL_CTX_set1_param := nil; + SSL_set1_param := nil; + SSL_CTX_get0_param := nil; + SSL_get0_param := nil; + SSL_CTX_set_srp_username := nil; + SSL_CTX_set_srp_password := nil; + SSL_CTX_set_srp_strength := nil; + SSL_CTX_set_srp_client_pwd_callback := nil; + SSL_CTX_set_srp_verify_param_callback := nil; + SSL_CTX_set_srp_username_callback := nil; + SSL_CTX_set_srp_cb_arg := nil; + SSL_set_srp_server_param := nil; + SSL_set_srp_server_param_pw := nil; + SSL_CTX_set_client_hello_cb := nil; {introduced 1.1.0} + SSL_client_hello_isv2 := nil; {introduced 1.1.0} + SSL_client_hello_get0_legacy_version := nil; {introduced 1.1.0} + SSL_client_hello_get0_random := nil; {introduced 1.1.0} + SSL_client_hello_get0_session_id := nil; {introduced 1.1.0} + SSL_client_hello_get0_ciphers := nil; {introduced 1.1.0} + SSL_client_hello_get0_compression_methods := nil; {introduced 1.1.0} + SSL_client_hello_get1_extensions_present := nil; {introduced 1.1.0} + SSL_client_hello_get0_ext := nil; {introduced 1.1.0} + SSL_certs_clear := nil; + SSL_free := nil; + SSL_waiting_for_async := nil; {introduced 1.1.0} + SSL_get_all_async_fds := nil; {introduced 1.1.0} + SSL_get_changed_async_fds := nil; {introduced 1.1.0} + SSL_accept := nil; + SSL_stateless := nil; {introduced 1.1.0} + SSL_connect := nil; + SSL_read := nil; + SSL_read_ex := nil; {introduced 1.1.0} + SSL_read_early_data := nil; {introduced 1.1.0} + SSL_peek := nil; + SSL_peek_ex := nil; {introduced 1.1.0} + SSL_write := nil; + SSL_write_ex := nil; {introduced 1.1.0} + SSL_write_early_data := nil; {introduced 1.1.0} + SSL_callback_ctrl := nil; + SSL_ctrl := nil; + SSL_CTX_ctrl := nil; + SSL_CTX_callback_ctrl := nil; + SSL_get_early_data_status := nil; {introduced 1.1.0} + SSL_get_error := nil; + SSL_get_version := nil; + SSL_CTX_set_ssl_version := nil; + TLS_method := nil; {introduced 1.1.0} + TLS_server_method := nil; {introduced 1.1.0} + TLS_client_method := nil; {introduced 1.1.0} + SSL_key_update := nil; {introduced 1.1.0} + SSL_get_key_update_type := nil; {introduced 1.1.0} + SSL_renegotiate := nil; + SSL_renegotiate_abbreviated := nil; + SSL_shutdown := nil; + SSL_CTX_set_post_handshake_auth := nil; {introduced 1.1.0} + SSL_set_post_handshake_auth := nil; {introduced 1.1.0} + SSL_renegotiate_pending := nil; + SSL_verify_client_post_handshake := nil; {introduced 1.1.0} + SSL_CTX_get_ssl_method := nil; + SSL_get_ssl_method := nil; + SSL_set_ssl_method := nil; + SSL_alert_type_string_long := nil; + SSL_alert_type_string := nil; + SSL_alert_desc_string_long := nil; + SSL_alert_desc_string := nil; + SSL_CTX_set_client_CA_list := nil; + SSL_add_client_CA := nil; + SSL_CTX_add_client_CA := nil; + SSL_set_connect_state := nil; + SSL_set_accept_state := nil; + SSL_library_init := nil; {removed 1.1.0} + SSL_CIPHER_description := nil; + SSL_dup := nil; + SSL_get_certificate := nil; + SSL_get_privatekey := nil; + SSL_CTX_get0_certificate := nil; + SSL_CTX_get0_privatekey := nil; + SSL_CTX_set_quiet_shutdown := nil; + SSL_CTX_get_quiet_shutdown := nil; + SSL_set_quiet_shutdown := nil; + SSL_get_quiet_shutdown := nil; + SSL_set_shutdown := nil; + SSL_get_shutdown := nil; + SSL_version := nil; + SSL_client_version := nil; {introduced 1.1.0} + SSL_CTX_set_default_verify_paths := nil; + SSL_CTX_set_default_verify_dir := nil; {introduced 1.1.0} + SSL_CTX_set_default_verify_file := nil; {introduced 1.1.0} + SSL_CTX_load_verify_locations := nil; + SSL_get_session := nil; + SSL_get1_session := nil; + SSL_get_SSL_CTX := nil; + SSL_set_SSL_CTX := nil; + SSL_set_info_callback := nil; + SSL_get_info_callback := nil; + SSL_get_state := nil; {introduced 1.1.0} + SSL_set_verify_result := nil; + SSL_get_verify_result := nil; + SSL_get_client_random := nil; {introduced 1.1.0} + SSL_get_server_random := nil; {introduced 1.1.0} + SSL_SESSION_get_master_key := nil; {introduced 1.1.0} + SSL_SESSION_set1_master_key := nil; {introduced 1.1.0} + SSL_SESSION_get_max_fragment_length := nil; {introduced 1.1.0} + SSL_set_ex_data := nil; + SSL_get_ex_data := nil; + SSL_SESSION_set_ex_data := nil; + SSL_SESSION_get_ex_data := nil; + SSL_CTX_set_ex_data := nil; + SSL_CTX_get_ex_data := nil; + SSL_get_ex_data_X509_STORE_CTX_idx := nil; + SSL_CTX_set_default_read_buffer_len := nil; {introduced 1.1.0} + SSL_set_default_read_buffer_len := nil; {introduced 1.1.0} + SSL_CTX_set_tmp_dh_callback := nil; + SSL_set_tmp_dh_callback := nil; + SSL_CIPHER_find := nil; + SSL_CIPHER_get_cipher_nid := nil; {introduced 1.1.0} + SSL_CIPHER_get_digest_nid := nil; {introduced 1.1.0} + SSL_set_session_ticket_ext := nil; + SSL_set_session_ticket_ext_cb := nil; + SSL_CTX_set_not_resumable_session_callback := nil; {introduced 1.1.0} + SSL_set_not_resumable_session_callback := nil; {introduced 1.1.0} + SSL_CTX_set_record_padding_callback := nil; {introduced 1.1.0} + SSL_CTX_set_record_padding_callback_arg := nil; {introduced 1.1.0} + SSL_CTX_get_record_padding_callback_arg := nil; {introduced 1.1.0} + SSL_CTX_set_block_padding := nil; {introduced 1.1.0} + SSL_set_record_padding_callback := nil; {introduced 1.1.0} + SSL_set_record_padding_callback_arg := nil; {introduced 1.1.0} + SSL_get_record_padding_callback_arg := nil; {introduced 1.1.0} + SSL_set_block_padding := nil; {introduced 1.1.0} + SSL_set_num_tickets := nil; {introduced 1.1.0} + SSL_get_num_tickets := nil; {introduced 1.1.0} + SSL_CTX_set_num_tickets := nil; {introduced 1.1.0} + SSL_CTX_get_num_tickets := nil; {introduced 1.1.0} + SSL_session_reused := nil; {introduced 1.1.0} + SSL_is_server := nil; + SSL_CONF_CTX_new := nil; + SSL_CONF_CTX_finish := nil; + SSL_CONF_CTX_free := nil; + SSL_CONF_CTX_set_flags := nil; + SSL_CONF_CTX_clear_flags := nil; + SSL_CONF_CTX_set1_prefix := nil; + SSL_CONF_cmd := nil; + SSL_CONF_cmd_argv := nil; + SSL_CONF_cmd_value_type := nil; + SSL_CONF_CTX_set_ssl := nil; + SSL_CONF_CTX_set_ssl_ctx := nil; + SSL_add_ssl_module := nil; {introduced 1.1.0} + SSL_config := nil; {introduced 1.1.0} + SSL_CTX_config := nil; {introduced 1.1.0} + DTLSv1_listen := nil; {introduced 1.1.0} + SSL_enable_ct := nil; {introduced 1.1.0} + SSL_CTX_enable_ct := nil; {introduced 1.1.0} + SSL_ct_is_enabled := nil; {introduced 1.1.0} + SSL_CTX_ct_is_enabled := nil; {introduced 1.1.0} + SSL_CTX_set_default_ctlog_list_file := nil; {introduced 1.1.0} + SSL_CTX_set_ctlog_list_file := nil; {introduced 1.1.0} + SSL_CTX_set0_ctlog_store := nil; {introduced 1.1.0} + SSL_set_security_level := nil; {introduced 1.1.0} + SSL_set_security_callback := nil; {introduced 1.1.0} + SSL_get_security_callback := nil; {introduced 1.1.0} + SSL_set0_security_ex_data := nil; {introduced 1.1.0} + SSL_get0_security_ex_data := nil; {introduced 1.1.0} + SSL_CTX_set_security_level := nil; {introduced 1.1.0} + SSL_CTX_get_security_level := nil; {introduced 1.1.0} + SSL_CTX_get0_security_ex_data := nil; {introduced 1.1.0} + SSL_CTX_set0_security_ex_data := nil; {introduced 1.1.0} + OPENSSL_init_ssl := nil; {introduced 1.1.0} + SSL_free_buffers := nil; {introduced 1.1.0} + SSL_alloc_buffers := nil; {introduced 1.1.0} + SSL_CTX_set_session_ticket_cb := nil; {introduced 1.1.0} + SSL_SESSION_set1_ticket_appdata := nil; {introduced 1.1.0} + SSL_SESSION_get0_ticket_appdata := nil; {introduced 1.1.0} + DTLS_set_timer_cb := nil; {introduced 1.1.0} + SSL_CTX_set_allow_early_data_cb := nil; {introduced 1.1.0} + SSL_set_allow_early_data_cb := nil; {introduced 1.1.0} + SSLv2_method := nil; {removed 1.1.0 allow_nil} // SSLv2 + SSLv2_server_method := nil; {removed 1.1.0 allow_nil} // SSLv2 + SSLv2_client_method := nil; {removed 1.1.0 allow_nil} // SSLv2 + SSLv3_method := nil; {removed 1.1.0 allow_nil} // SSLv3 + SSLv3_server_method := nil; {removed 1.1.0 allow_nil} // SSLv3 + SSLv3_client_method := nil; {removed 1.1.0 allow_nil} // SSLv3 + SSLv23_method := nil; {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + SSLv23_server_method := nil; {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + SSLv23_client_method := nil; {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + TLSv1_method := nil; {removed 1.1.0 allow_nil} // TLSv1.0 + TLSv1_server_method := nil; {removed 1.1.0 allow_nil} // TLSv1.0 + TLSv1_client_method := nil; {removed 1.1.0 allow_nil} // TLSv1.0 + TLSv1_1_method := nil; {removed 1.1.0 allow_nil} //TLS1.1 + TLSv1_1_server_method := nil; {removed 1.1.0 allow_nil} //TLS1.1 + TLSv1_1_client_method := nil; {removed 1.1.0 allow_nil} //TLS1.1 + TLSv1_2_method := nil; {removed 1.1.0 allow_nil} // TLSv1.2 + TLSv1_2_server_method := nil; {removed 1.1.0 allow_nil} // TLSv1.2 + TLSv1_2_client_method := nil; {removed 1.1.0 allow_nil} // TLSv1.2 + SSL_get0_peer_certificate := nil; {introduced 3.3.0} + SSL_get1_peer_certificate := nil; {introduced 3.3.0} +end; +{$ELSE} +function SSL_get_peer_certificate(const s: PSSL): PX509; +begin + Result := SSL_get1_peer_certificate(s); +end; + + +//# define SSL_CTX_set_mode(ctx,op) SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL) +function SSL_CTX_set_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_MODE, op, nil); +end; + +//# define SSL_CTX_clear_mode(ctx,op) SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_MODE,(op),NULL) +function SSL_CTX_clear_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CLEAR_MODE, op, nil); +end; + +//# define SSL_CTX_sess_set_cache_size(ctx,t) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_SIZE,t,NULL) +function SSL_CTX_sess_set_cache_size(ctx: PSSL_CTX; t: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SESS_CACHE_SIZE, t, nil); +end; + +//# define SSL_CTX_sess_get_cache_size(ctx) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_SIZE,0,NULL) +function SSL_CTX_sess_get_cache_size(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_SESS_CACHE_SIZE, 0, nil); +end; + +//# define SSL_CTX_set_session_cache_mode(ctx,m) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_MODE,m,NULL) +function SSL_CTX_set_session_cache_mode(ctx: PSSL_CTX; m: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SESS_CACHE_MODE, m, nil); +end; + +//# define SSL_CTX_get_session_cache_mode(ctx) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_MODE,0,NULL) +function SSL_CTX_get_session_cache_mode(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_SESS_CACHE_MODE, 0, nil); +end; + +//# define SSL_num_renegotiations(ssl) SSL_ctrl((ssl),SSL_CTRL_GET_NUM_RENEGOTIATIONS,0,NULL) +function SSL_num_renegotiations(ssl: PSSL): TIdC_LONG; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_GET_NUM_RENEGOTIATIONS, 0, nil); +end; + +//# define SSL_clear_num_renegotiations(ssl) SSL_ctrl((ssl),SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS,0,NULL) +function SSL_clear_num_renegotiations(ssl: PSSL): TIdC_LONG; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS, 0, nil); +end; + +//# define SSL_total_renegotiations(ssl) SSL_ctrl((ssl),SSL_CTRL_GET_TOTAL_RENEGOTIATIONS,0,NULL) +function SSL_total_renegotiations(ssl: PSSL): TIdC_LONG; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_GET_TOTAL_RENEGOTIATIONS, 0, nil); +end; + +//# define SSL_CTX_set_tmp_dh(ctx,dh) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)(dh)) +function SSL_CTX_set_tmp_dh(ctx: PSSL_CTX; dh: PDH): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_TMP_DH, 0, dh); +end; + +//# define SSL_CTX_set_tmp_ecdh(ctx,ecdh) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh)) +function SSL_CTX_set_tmp_ecdh(ctx: PSSL_CTX; ecdh: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_TMP_ECDH, 0, ecdh); +end; + +//# define SSL_CTX_set_dh_auto(ctx, onoff) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_DH_AUTO,onoff,NULL) +function SSL_CTX_set_dh_auto(ctx: PSSL_CTX; onoff: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_DH_AUTO, onoff, nil); +end; + +//# define SSL_set_dh_auto(s, onoff) SSL_ctrl(s,SSL_CTRL_SET_DH_AUTO,onoff,NULL) +function SSL_set_dh_auto(s: PSSL; onoff: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_DH_AUTO, onoff, nil); +end; + +//# define SSL_set_tmp_dh(ssl,dh) SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)(dh)) +function SSL_set_tmp_dh(ssl: PSSL; dh: PDH): TIdC_LONG; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_SET_TMP_DH, 0, dh); +end; + +//# define SSL_set_tmp_ecdh(ssl,ecdh) SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh)) +function SSL_set_tmp_ecdh(ssl: PSSL; ecdh: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_SET_TMP_ECDH, 0, ecdh); +end; + +//# define SSL_CTX_add_extra_chain_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)(x509)) +function SSL_CTX_add_extra_chain_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_EXTRA_CHAIN_CERT, 0, x509); +end; + +//# define SSL_CTX_get_extra_chain_certs(ctx,px509) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,0,px509) +function SSL_CTX_get_extra_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_EXTRA_CHAIN_CERTS, 0, px509); +end; + +//# define SSL_CTX_get_extra_chain_certs_only(ctx,px509) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,1,px509) +function SSL_CTX_get_extra_chain_certs_only(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_EXTRA_CHAIN_CERTS, 1, px509); +end; + +//# define SSL_CTX_clear_extra_chain_certs(ctx) SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS,0,NULL) +function SSL_CTX_clear_extra_chain_certs(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS, 0, nil); +end; + +//# define SSL_CTX_set0_chain(ctx,sk) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,0,(char *)(sk)) +function SSL_CTX_set0_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN, 0, sk); +end; + +//# define SSL_CTX_set1_chain(ctx,sk) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,1,(char *)(sk)) +function SSL_CTX_set1_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN, 1, sk); +end; + +//# define SSL_CTX_add0_chain_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,0,(char *)(x509)) +function SSL_CTX_add0_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN_CERT, 0, x509); +end; + +//# define SSL_CTX_add1_chain_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,1,(char *)(x509)) +function SSL_CTX_add1_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN_CERT, 1, x509); +end; + +//# define SSL_CTX_get0_chain_certs(ctx,px509) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_CHAIN_CERTS,0,px509) +function SSL_CTX_get0_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_CHAIN_CERTS, 0, px509); +end; + +//# define SSL_CTX_clear_chain_certs(ctx) SSL_CTX_set0_chain(ctx,NULL) +function SSL_CTX_clear_chain_certs(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_set0_chain(ctx, nil); +end; + +//# define SSL_CTX_build_cert_chain(ctx, flags) SSL_CTX_ctrl(ctx,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL) +function SSL_CTX_build_cert_chain(ctx: PSSL_CTX; flags: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_BUILD_CERT_CHAIN, flags, nil); +end; + +//# define SSL_CTX_select_current_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509)) +function SSL_CTX_select_current_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SELECT_CURRENT_CERT, 0, x509); +end; + +//# define SSL_CTX_set_current_cert(ctx, op) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CURRENT_CERT, op, NULL) +function SSL_CTX_set_current_cert(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CURRENT_CERT, op, nil); +end; + +//# define SSL_CTX_set0_verify_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st)) +function SSL_CTX_set0_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_VERIFY_CERT_STORE, 0, st); +end; + +//# define SSL_CTX_set1_verify_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st)) +function SSL_CTX_set1_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_VERIFY_CERT_STORE, 1, st); +end; + +//# define SSL_CTX_set0_chain_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st)) +function SSL_CTX_set0_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CHAIN_CERT_STORE, 0, st); +end; + +//# define SSL_CTX_set1_chain_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st)) +function SSL_CTX_set1_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CHAIN_CERT_STORE, 1, st); +end; + +//# define SSL_set0_chain(s,sk) SSL_ctrl(s,SSL_CTRL_CHAIN,0,(char *)(sk)) +function SSL_set0_chain(s: PSSL; sk: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN, 0, sk); +end; + +//# define SSL_set1_chain(s,sk) SSL_ctrl(s,SSL_CTRL_CHAIN,1,(char *)(sk)) +function SSL_set1_chain(s: PSSL; sk: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN, 1, sk); +end; + +//# define SSL_add0_chain_cert(s,x509) SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,0,(char *)(x509)) +function SSL_add0_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN_CERT, 0, x509); +end; + +//# define SSL_add1_chain_cert(s,x509) SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,1,(char *)(x509)) +function SSL_add1_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN_CERT, 1, x509); +end; + +//# define SSL_get0_chain_certs(s,px509) SSL_ctrl(s,SSL_CTRL_GET_CHAIN_CERTS,0,px509) +function SSL_get0_chain_certs(s: PSSL; px509: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_CHAIN_CERTS, 0, px509); +end; + +//# define SSL_clear_chain_certs(s) SSL_set0_chain(s,NULL) +function SSL_clear_chain_certs(s: PSSL): TIdC_LONG; +begin + Result := SSL_set0_chain(s, nil); +end; + +//# define SSL_build_cert_chain(s, flags) SSL_ctrl(s,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL) +function SSL_build_cert_chain(s: PSSL; flags: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_BUILD_CERT_CHAIN, flags, nil); +end; + +//# define SSL_select_current_cert(s,x509) SSL_ctrl(s,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509)) +function SSL_select_current_cert(s: PSSL; x509: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SELECT_CURRENT_CERT, 0, x509); +end; + +//# define SSL_set_current_cert(s,op) SSL_ctrl(s,SSL_CTRL_SET_CURRENT_CERT, op, NULL) +function SSL_set_current_cert(s: PSSL; op: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CURRENT_CERT, op, nil); +end; + +//# define SSL_set0_verify_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st)) +function SSL_set0_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_VERIFY_CERT_STORE, 0, st); +end; + +//# define SSL_set1_verify_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st)) +function SSL_set1_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_VERIFY_CERT_STORE, 1, st); +end; + +//# define SSL_set0_chain_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st)) +function SSL_set0_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CHAIN_CERT_STORE, 0, st); +end; + +//# define SSL_set1_chain_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st)) +function SSL_set1_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CHAIN_CERT_STORE, 1, st); +end; + +//# define SSL_get1_groups(s, glist) SSL_ctrl(s,SSL_CTRL_GET_GROUPS,0,(TIdC_INT*)(glist)) +function SSL_get1_groups(s: PSSL; glist: PIdC_INT): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_GROUPS, 0, glist); +end; + +//# define SSL_CTX_set1_groups(ctx, glist, glistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist)) +function SSL_CTX_set1_groups(ctx: PSSL_CTX; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_GROUPS, glistlen, glist); +end; + +//# define SSL_CTX_set1_groups_list(ctx, s) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s)) +function SSL_CTX_set1_groups_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_GROUPS_LIST, 0, s); +end; + +//# define SSL_set1_groups(s, glist, glistlen) SSL_ctrl(s,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist)) +function SSL_set1_groups(s: PSSL; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_GROUPS, glistlen, glist); +end; + +//# define SSL_set1_groups_list(s, str) SSL_ctrl(s,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(str)) +function SSL_set1_groups_list(s: PSSL; str: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_GROUPS_LIST, 0, str); +end; + +//# define SSL_get_shared_group(s, n) SSL_ctrl(s,SSL_CTRL_GET_SHARED_GROUP,n,NULL) +function SSL_get_shared_group(s: PSSL; n: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_SHARED_GROUP, n, nil); +end; + +//# define SSL_CTX_set1_sigalgs(ctx, slist, slistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function SSL_CTX_set1_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SIGALGS, slistlen, slist); +end; + +//# define SSL_CTX_set1_sigalgs_list(ctx, s) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(s)) +function SSL_CTX_set1_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SIGALGS_LIST, 0, s); +end; + +//# define SSL_set1_sigalgs(s, slist, slistlen) SSL_ctrl(s,SSL_CTRL_SET_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function SSL_set1_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_SIGALGS, slistlen, slist); +end; + +//# define SSL_set1_sigalgs_list(s, str) SSL_ctrl(s,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(str)) +function SSL_set1_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_SIGALGS_LIST, 0, str); +end; + +//# define SSL_CTX_set1_client_sigalgs(ctx, slist, slistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function SSL_CTX_set1_client_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CLIENT_SIGALGS, slistlen, slist); +end; + +//# define SSL_CTX_set1_client_sigalgs_list(ctx, s) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(s)) +function SSL_CTX_set1_client_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CLIENT_SIGALGS_LIST, 0, s); +end; + +//# define SSL_set1_client_sigalgs(s, slist, slistlen) SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function SSL_set1_client_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CLIENT_SIGALGS, slistlen, slist); +end; + +//# define SSL_set1_client_sigalgs_list(s, str) SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(str)) +function SSL_set1_client_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CLIENT_SIGALGS_LIST, 0, str); +end; + +//# define SSL_get0_certificate_types(s, clist) SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, (char *)(clist)) +function SSL_get0_certificate_types(s: PSSL; clist: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, clist); +end; + +//# define SSL_CTX_set1_client_certificate_types(ctx, clist, clistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen, (char *)(clist)) +function SSL_CTX_set1_client_certificate_types(ctx: PSSL_CTX; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CLIENT_CERT_TYPES, clistlen, clist); +end; + +//# define SSL_set1_client_certificate_types(s, clist, clistlen) SSL_ctrl(s,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen,(char *)(clist)) +function SSL_set1_client_certificate_types(s: PSSL; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CLIENT_CERT_TYPES, clistlen, clist); +end; + +//# define SSL_get_signature_nid(s, pn) SSL_ctrl(s,SSL_CTRL_GET_SIGNATURE_NID,0,pn) +function SSL_get_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_SIGNATURE_NID, 0, pn); +end; + +//# define SSL_get_peer_signature_nid(s, pn) SSL_ctrl(s,SSL_CTRL_GET_PEER_SIGNATURE_NID,0,pn) +function SSL_get_peer_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_PEER_SIGNATURE_NID, 0, pn); +end; + +//# define SSL_get_peer_tmp_key(s, pk) SSL_ctrl(s,SSL_CTRL_GET_PEER_TMP_KEY,0,pk) +function SSL_get_peer_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_PEER_TMP_KEY, 0, pk); +end; + +//# define SSL_get_tmp_key(s, pk) SSL_ctrl(s,SSL_CTRL_GET_TMP_KEY,0,pk) +function SSL_get_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_TMP_KEY, 0, pk); +end; + +//# define SSL_get0_raw_cipherlist(s, plst) SSL_ctrl(s,SSL_CTRL_GET_RAW_CIPHERLIST,0,plst) +function SSL_get0_raw_cipherlist(s: PSSL; plst: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_RAW_CIPHERLIST, 0, plst); +end; + +//# define SSL_get0_ec_point_formats(s, plst) SSL_ctrl(s,SSL_CTRL_GET_EC_POINT_FORMATS,0,plst) +function SSL_get0_ec_point_formats(s: PSSL; plst: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_EC_POINT_FORMATS, 0, plst); +end; + + +function SSL_get_app_data(const ssl: PSSL): Pointer ; +begin + Result := SSL_get_ex_data(ssl,0); +end; + +procedure SSL_load_error_strings; +begin + OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS or OPENSSL_INIT_LOAD_CRYPTO_STRINGS,nil); +end; + +function SSL_library_init: TIdC_INT; +begin + Result := OPENSSL_init_ssl(0, nil); +end; + +function SSLeay_add_ssl_algorithms: TIdC_INT; +begin + Result := SSL_library_init; +end; + +function SSL_set_app_data(ssl: PSSL; data: Pointer): TIdC_INT; +begin + Result := SSL_set_ex_data(ssl,0,data); +end; + + +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibSSL'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ssl3.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ssl3.pas new file mode 100644 index 000000000..165f3312b --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ssl3.pas @@ -0,0 +1,332 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_ssl3.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_ssl3.h2pas + and this file regenerated. IdOpenSSLHeaders_ssl3.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ssl3; + +interface + +// Headers for OpenSSL 1.1.1 +// ssl3.h + + +uses + IdGlobal; + +const + (* + * Signalling cipher suite value from RFC 5746 + * (TLS_EMPTY_RENEGOTIATION_INFO_SCSV) + *) + SSL3_CK_SCSV = $030000FF; + + (* + * Signalling cipher suite value from draft-ietf-tls-downgrade-scsv-00 + * (TLS_FALLBACK_SCSV) + *) + SSL3_CK_FALLBACK_SCSV = $03005600; + + SSL3_CK_RSA_NULL_MD5 = $03000001; + SSL3_CK_RSA_NULL_SHA = $03000002; + SSL3_CK_RSA_RC4_40_MD5 = $03000003; + SSL3_CK_RSA_RC4_128_MD5 = $03000004; + SSL3_CK_RSA_RC4_128_SHA = $03000005; + SSL3_CK_RSA_RC2_40_MD5 = $03000006; + SSL3_CK_RSA_IDEA_128_SHA = $03000007; + SSL3_CK_RSA_DES_40_CBC_SHA = $03000008; + SSL3_CK_RSA_DES_64_CBC_SHA = $03000009; + SSL3_CK_RSA_DES_192_CBC3_SHA = $0300000A; + + SSL3_CK_DH_DSS_DES_40_CBC_SHA = $0300000B; + SSL3_CK_DH_DSS_DES_64_CBC_SHA = $0300000C; + SSL3_CK_DH_DSS_DES_192_CBC3_SHA = $0300000D; + SSL3_CK_DH_RSA_DES_40_CBC_SHA = $0300000E; + SSL3_CK_DH_RSA_DES_64_CBC_SHA = $0300000F; + SSL3_CK_DH_RSA_DES_192_CBC3_SHA = $03000010; + + SSL3_CK_DHE_DSS_DES_40_CBC_SHA = $03000011; + SSL3_CK_EDH_DSS_DES_40_CBC_SHA = SSL3_CK_DHE_DSS_DES_40_CBC_SHA; + SSL3_CK_DHE_DSS_DES_64_CBC_SHA = $03000012; + SSL3_CK_EDH_DSS_DES_64_CBC_SHA = SSL3_CK_DHE_DSS_DES_64_CBC_SHA; + SSL3_CK_DHE_DSS_DES_192_CBC3_SHA = $03000013; + SSL3_CK_EDH_DSS_DES_192_CBC3_SHA = SSL3_CK_DHE_DSS_DES_192_CBC3_SHA; + SSL3_CK_DHE_RSA_DES_40_CBC_SHA = $03000014; + SSL3_CK_EDH_RSA_DES_40_CBC_SHA = SSL3_CK_DHE_RSA_DES_40_CBC_SHA; + SSL3_CK_DHE_RSA_DES_64_CBC_SHA = $03000015; + SSL3_CK_EDH_RSA_DES_64_CBC_SHA = SSL3_CK_DHE_RSA_DES_64_CBC_SHA; + SSL3_CK_DHE_RSA_DES_192_CBC3_SHA = $03000016; + SSL3_CK_EDH_RSA_DES_192_CBC3_SHA = SSL3_CK_DHE_RSA_DES_192_CBC3_SHA; + + SSL3_CK_ADH_RC4_40_MD5 = $03000017; + SSL3_CK_ADH_RC4_128_MD5 = $03000018; + SSL3_CK_ADH_DES_40_CBC_SHA = $03000019; + SSL3_CK_ADH_DES_64_CBC_SHA = $0300001A; + SSL3_CK_ADH_DES_192_CBC_SHA = $0300001B; + + (* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] *) + SSL3_RFC_RSA_NULL_MD5 = AnsiString('TLS_RSA_WITH_NULL_MD5'); + SSL3_RFC_RSA_NULL_SHA = AnsiString('TLS_RSA_WITH_NULL_SHA'); + SSL3_RFC_RSA_DES_192_CBC3_SHA = AnsiString('TLS_RSA_WITH_3DES_EDE_CBC_SHA'); + SSL3_RFC_DHE_DSS_DES_192_CBC3_SHA = AnsiString('TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA'); + SSL3_RFC_DHE_RSA_DES_192_CBC3_SHA = AnsiString('TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA'); + SSL3_RFC_ADH_DES_192_CBC_SHA = AnsiString('TLS_DH_anon_WITH_3DES_EDE_CBC_SHA'); + SSL3_RFC_RSA_IDEA_128_SHA = AnsiString('TLS_RSA_WITH_IDEA_CBC_SHA'); + SSL3_RFC_RSA_RC4_128_MD5 = AnsiString('TLS_RSA_WITH_RC4_128_MD5'); + SSL3_RFC_RSA_RC4_128_SHA = AnsiString('TLS_RSA_WITH_RC4_128_SHA'); + SSL3_RFC_ADH_RC4_128_MD5 = AnsiString('TLS_DH_anon_WITH_RC4_128_MD5'); + + SSL3_TXT_RSA_NULL_MD5 = AnsiString('NULL-MD5'); + SSL3_TXT_RSA_NULL_SHA = AnsiString('NULL-SHA'); + SSL3_TXT_RSA_RC4_40_MD5 = AnsiString('EXP-RC4-MD5'); + SSL3_TXT_RSA_RC4_128_MD5 = AnsiString('RC4-MD5'); + SSL3_TXT_RSA_RC4_128_SHA = AnsiString('RC4-SHA'); + SSL3_TXT_RSA_RC2_40_MD5 = AnsiString('EXP-RC2-CBC-MD5'); + SSL3_TXT_RSA_IDEA_128_SHA = AnsiString('IDEA-CBC-SHA'); + SSL3_TXT_RSA_DES_40_CBC_SHA = AnsiString('EXP-DES-CBC-SHA'); + SSL3_TXT_RSA_DES_64_CBC_SHA = AnsiString('DES-CBC-SHA'); + SSL3_TXT_RSA_DES_192_CBC3_SHA = AnsiString('DES-CBC3-SHA'); + + SSL3_TXT_DH_DSS_DES_40_CBC_SHA = AnsiString('EXP-DH-DSS-DES-CBC-SHA'); + SSL3_TXT_DH_DSS_DES_64_CBC_SHA = AnsiString('DH-DSS-DES-CBC-SHA'); + SSL3_TXT_DH_DSS_DES_192_CBC3_SHA = AnsiString('DH-DSS-DES-CBC3-SHA'); + SSL3_TXT_DH_RSA_DES_40_CBC_SHA = AnsiString('EXP-DH-RSA-DES-CBC-SHA'); + SSL3_TXT_DH_RSA_DES_64_CBC_SHA = AnsiString('DH-RSA-DES-CBC-SHA'); + SSL3_TXT_DH_RSA_DES_192_CBC3_SHA = AnsiString('DH-RSA-DES-CBC3-SHA'); + + SSL3_TXT_DHE_DSS_DES_40_CBC_SHA = AnsiString('EXP-DHE-DSS-DES-CBC-SHA'); + SSL3_TXT_DHE_DSS_DES_64_CBC_SHA = AnsiString('DHE-DSS-DES-CBC-SHA'); + SSL3_TXT_DHE_DSS_DES_192_CBC3_SHA = AnsiString('DHE-DSS-DES-CBC3-SHA'); + SSL3_TXT_DHE_RSA_DES_40_CBC_SHA = AnsiString('EXP-DHE-RSA-DES-CBC-SHA'); + SSL3_TXT_DHE_RSA_DES_64_CBC_SHA = AnsiString('DHE-RSA-DES-CBC-SHA'); + SSL3_TXT_DHE_RSA_DES_192_CBC3_SHA = AnsiString('DHE-RSA-DES-CBC3-SHA'); + + (* + * This next block of six 'EDH' labels is for backward compatibility with + * older versions of OpenSSL. New code should use the six 'DHE' labels above + * instead: + *) + SSL3_TXT_EDH_DSS_DES_40_CBC_SHA = AnsiString('EXP-EDH-DSS-DES-CBC-SHA'); + SSL3_TXT_EDH_DSS_DES_64_CBC_SHA = AnsiString('EDH-DSS-DES-CBC-SHA'); + SSL3_TXT_EDH_DSS_DES_192_CBC3_SHA = AnsiString('EDH-DSS-DES-CBC3-SHA'); + SSL3_TXT_EDH_RSA_DES_40_CBC_SHA = AnsiString('EXP-EDH-RSA-DES-CBC-SHA'); + SSL3_TXT_EDH_RSA_DES_64_CBC_SHA = AnsiString('EDH-RSA-DES-CBC-SHA'); + SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA = AnsiString('EDH-RSA-DES-CBC3-SHA'); + + SSL3_TXT_ADH_RC4_40_MD5 = AnsiString('EXP-ADH-RC4-MD5'); + SSL3_TXT_ADH_RC4_128_MD5 = AnsiString('ADH-RC4-MD5'); + SSL3_TXT_ADH_DES_40_CBC_SHA = AnsiString('EXP-ADH-DES-CBC-SHA'); + SSL3_TXT_ADH_DES_64_CBC_SHA = AnsiString('ADH-DES-CBC-SHA'); + SSL3_TXT_ADH_DES_192_CBC_SHA = AnsiString('ADH-DES-CBC3-SHA'); + + SSL3_SSL_SESSION_ID_LENGTH = 32; + SSL3_MAX_SSL_SESSION_ID_LENGTH = 32; + + SSL3_MASTER_SECRET_SIZE = 48; + SSL3_RANDOM_SIZE = 32; + SSL3_SESSION_ID_SIZE = 32; + SSL3_RT_HEADER_LENGTH = 5; + + SSL3_HM_HEADER_LENGTH = 4; + + (* + * Some will argue that this increases memory footprint, but it's not + * actually true. Point is that malloc has to return at least 64-bit aligned + * pointers, meaning that allocating 5 bytes wastes 3 bytes in either case. + * Suggested pre-gaping simply moves these wasted bytes from the end of + * allocated region to its front, but makes data payload aligned, which + * improves performance:-) + *) + SSL3_ALIGN_PAYLOAD = 8; + + + (* + * This is the maximum MAC (digest) size used by the SSL library. Currently + * maximum of 20 is used by SHA1, but we reserve for future extension for + * 512-bit hashes. + *) + SSL3_RT_MAX_MD_SIZE = 64; + + (* + * Maximum block size used in all ciphersuites. Currently 16 for AES. + *) + SSL_RT_MAX_CIPHER_BLOCK_SIZE = 16; + SSL3_RT_MAX_EXTRA = 16384; + + (* Maximum plaintext length: defined by SSL/TLS standards *) + SSL3_RT_MAX_PLAIN_LENGTH = 16384; + (* Maximum compression overhead: defined by SSL/TLS standards *) + SSL3_RT_MAX_COMPRESSED_OVERHEAD = 1024; + + (* + * The standards give a maximum encryption overhead of 1024 bytes. In + * practice the value is lower than this. The overhead is the maximum number + * of padding bytes (256) plus the mac size. + *) + SSL3_RT_MAX_ENCRYPTED_OVERHEAD = 256 + SSL3_RT_MAX_MD_SIZE; + SSL3_RT_MAX_TLS13_ENCRYPTED_OVERHEAD = 256; + + (* + * OpenSSL currently only uses a padding length of at most one block so the + * send overhead is smaller. + *) + SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD = SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE; + + (* If compression isn't used don't include the compression overhead *) + SSL3_RT_MAX_COMPRESSED_LENGTH = SSL3_RT_MAX_PLAIN_LENGTH; +// SSL3_RT_MAX_COMPRESSED_LENGTH = (SSL3_RT_MAX_PLAIN_LENGTH + SSL3_RT_MAX_COMPRESSED_OVERHEAD); + + SSL3_RT_MAX_ENCRYPTED_LENGTH = SSL3_RT_MAX_ENCRYPTED_OVERHEAD + SSL3_RT_MAX_COMPRESSED_LENGTH; + SSL3_RT_MAX_TLS13_ENCRYPTED_LENGTH = SSL3_RT_MAX_PLAIN_LENGTH + SSL3_RT_MAX_TLS13_ENCRYPTED_OVERHEAD; + SSL3_RT_MAX_PACKET_SIZE = SSL3_RT_MAX_ENCRYPTED_LENGTH + SSL3_RT_HEADER_LENGTH; + + SSL3_MD_CLIENT_FINISHED_= TIdAnsiChar($43) + TIdAnsiChar($4C) + TIdAnsiChar($4E) + TIdAnsiChar($54); + SSL3_MD_SERVER_FINISHED_= TIdAnsiChar($53) + TIdAnsiChar($52) + TIdAnsiChar($56) + TIdAnsiChar($52); + + SSL3_VERSION = $0300; + SSL3_VERSION_MAJOR = $03; + SSL3_VERSION_MINOR = $00; + + SSL3_RT_CHANGE_CIPHER_SPEC = 20; + SSL3_RT_ALERT = 21; + SSL3_RT_HANDSHAKE = 22; + SSL3_RT_APPLICATION_DATA = 23; + DTLS1_RT_HEARTBEAT = 24; + + (* Pseudo content types to indicate additional parameters *) + TLS1_RT_CRYPTO = $1000; + TLS1_RT_CRYPTO_PREMASTER = TLS1_RT_CRYPTO or $1; + TLS1_RT_CRYPTO_CLIENT_RANDOM = TLS1_RT_CRYPTO or $2; + TLS1_RT_CRYPTO_SERVER_RANDOM = TLS1_RT_CRYPTO or $3; + TLS1_RT_CRYPTO_MASTER = TLS1_RT_CRYPTO or $4; + + TLS1_RT_CRYPTO_READ = $0000; + TLS1_RT_CRYPTO_WRITE = $0100; + TLS1_RT_CRYPTO_MAC = TLS1_RT_CRYPTO or $5; + TLS1_RT_CRYPTO_KEY = TLS1_RT_CRYPTO or $6; + TLS1_RT_CRYPTO_IV = TLS1_RT_CRYPTO or $7; + TLS1_RT_CRYPTO_FIXED_IV = TLS1_RT_CRYPTO or $8; + + (* Pseudo content types for SSL/TLS header info *) + SSL3_RT_HEADER = $100; + SSL3_RT_INNER_CONTENT_TYPE = $101; + + SSL3_AL_WARNING = 1; + SSL3_AL_FATAL = 2; + + SSL3_AD_CLOSE_NOTIFY = 0; + SSL3_AD_UNEXPECTED_MESSAGE = 10; (* fatal *) + SSL3_AD_BAD_RECORD_MAC = 20; (* fatal *) + SSL3_AD_DECOMPRESSION_FAILURE = 30; (* fatal *) + SSL3_AD_HANDSHAKE_FAILURE = 40; (* fatal *) + SSL3_AD_NO_CERTIFICATE = 41; + SSL3_AD_BAD_CERTIFICATE = 42; + SSL3_AD_UNSUPPORTED_CERTIFICATE = 43; + SSL3_AD_CERTIFICATE_REVOKED = 44; + SSL3_AD_CERTIFICATE_EXPIRED = 45; + SSL3_AD_CERTIFICATE_UNKNOWN = 46; + SSL3_AD_ILLEGAL_PARAMETER = 47; (* fatal *) + + TLS1_HB_REQUEST = 1; + TLS1_HB_RESPONSE = 2; + + SSL3_CT_RSA_SIGN = 1; + SSL3_CT_DSS_SIGN = 2; + SSL3_CT_RSA_FIXED_DH = 3; + SSL3_CT_DSS_FIXED_DH = 4; + SSL3_CT_RSA_EPHEMERAL_DH = 5; + SSL3_CT_DSS_EPHEMERAL_DH = 6; + SSL3_CT_FORTEZZA_DMS = 20; + + (* + * SSL3_CT_NUMBER is used to size arrays and it must be large enough to + * contain all of the cert types defined for *either* SSLv3 and TLSv1. + *) + SSL3_CT_NUMBER = 10; + + (* No longer used as of OpenSSL 1.1.1 *) + SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS = $0001; + + (* Removed from OpenSSL 1.1.0 *) + TLS1_FLAGS_TLS_PADDING_BUG = $0; + TLS1_FLAGS_SKIP_CERT_VERIFY = $0010; + + (* Set if we encrypt then mac instead of usual mac then encrypt *) + TLS1_FLAGS_ENCRYPT_THEN_MAC_READ = $0100; + TLS1_FLAGS_ENCRYPT_THEN_MAC = TLS1_FLAGS_ENCRYPT_THEN_MAC_READ; + + + (* Set if extended master secret extension received from peer *) + TLS1_FLAGS_RECEIVED_EXTMS = $0200; + + TLS1_FLAGS_ENCRYPT_THEN_MAC_WRITE = $0400; + + TLS1_FLAGS_STATELESS = $0800; + + SSL3_MT_HELLO_REQUEST = 0; + SSL3_MT_CLIENT_HELLO = 1; + SSL3_MT_SERVER_HELLO = 2; + SSL3_MT_NEWSESSION_TICKET = 4; + SSL3_MT_END_OF_EARLY_DATA = 5; + SSL3_MT_ENCRYPTED_EXTENSIONS = 8; + SSL3_MT_CERTIFICATE = 11; + SSL3_MT_SERVER_KEY_EXCHANGE = 12; + SSL3_MT_CERTIFICATE_REQUEST = 13; + SSL3_MT_SERVER_DONE = 14; + SSL3_MT_CERTIFICATE_VERIFY = 15; + SSL3_MT_CLIENT_KEY_EXCHANGE = 16; + SSL3_MT_FINISHED = 20; + SSL3_MT_CERTIFICATE_URL = 21; + SSL3_MT_CERTIFICATE_STATUS = 22; + SSL3_MT_SUPPLEMENTAL_DATA = 23; + SSL3_MT_KEY_UPDATE = 24; + SSL3_MT_NEXT_PROTO = 67; + SSL3_MT_MESSAGE_HASH = 254; + DTLS1_MT_HELLO_VERIFY_REQUEST = 3; + + (* Dummy message type for handling CCS like a normal handshake message *) + SSL3_MT_CHANGE_CIPHER_SPEC = $0101; + + SSL3_MT_CCS = 1; + + (* These are used when changing over to a new cipher *) + SSL3_CC_READ = $001; + SSL3_CC_WRITE = $002; + SSL3_CC_CLIENT = $010; + SSL3_CC_SERVER = $020; + SSL3_CC_EARLY = $040; + SSL3_CC_HANDSHAKE = $080; + SSL3_CC_APPLICATION = $100; + SSL3_CHANGE_CIPHER_CLIENT_WRITE = SSL3_CC_CLIENT or SSL3_CC_WRITE; + SSL3_CHANGE_CIPHER_SERVER_READ = SSL3_CC_SERVER or SSL3_CC_READ; + SSL3_CHANGE_CIPHER_CLIENT_READ = SSL3_CC_CLIENT or SSL3_CC_READ; + SSL3_CHANGE_CIPHER_SERVER_WRITE = SSL3_CC_SERVER or SSL3_CC_WRITE; + +implementation + +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_sslerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_sslerr.pas new file mode 100644 index 000000000..6a5ba67f5 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_sslerr.pas @@ -0,0 +1,846 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_sslerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_sslerr.h2pas + and this file regenerated. IdOpenSSLHeaders_sslerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_sslerr; + +interface + +// Headers for OpenSSL 1.1.1 +// sslerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +(* + * SSL function codes. + *) +const + SSL_F_ADD_CLIENT_KEY_SHARE_EXT = 438; + SSL_F_ADD_KEY_SHARE = 512; + SSL_F_BYTES_TO_CIPHER_LIST = 519; + SSL_F_CHECK_SUITEB_CIPHER_LIST = 331; + SSL_F_CIPHERSUITE_CB = 622; + SSL_F_CONSTRUCT_CA_NAMES = 552; + SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS = 553; + SSL_F_CONSTRUCT_STATEFUL_TICKET = 636; + SSL_F_CONSTRUCT_STATELESS_TICKET = 637; + SSL_F_CREATE_SYNTHETIC_MESSAGE_HASH = 539; + SSL_F_CREATE_TICKET_PREQUEL = 638; + SSL_F_CT_MOVE_SCTS = 345; + SSL_F_CT_STRICT = 349; + SSL_F_CUSTOM_EXT_ADD = 554; + SSL_F_CUSTOM_EXT_PARSE = 555; + SSL_F_D2I_SSL_SESSION = 103; + SSL_F_DANE_CTX_ENABLE = 347; + SSL_F_DANE_MTYPE_SET = 393; + SSL_F_DANE_TLSA_ADD = 394; + SSL_F_DERIVE_SECRET_KEY_AND_IV = 514; + SSL_F_DO_DTLS1_WRITE = 245; + SSL_F_DO_SSL3_WRITE = 104; + SSL_F_DTLS1_BUFFER_RECORD = 247; + SSL_F_DTLS1_CHECK_TIMEOUT_NUM = 318; + SSL_F_DTLS1_HEARTBEAT = 305; + SSL_F_DTLS1_HM_FRAGMENT_NEW = 623; + SSL_F_DTLS1_PREPROCESS_FRAGMENT = 288; + SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS = 424; + SSL_F_DTLS1_PROCESS_RECORD = 257; + SSL_F_DTLS1_READ_BYTES = 258; + SSL_F_DTLS1_READ_FAILED = 339; + SSL_F_DTLS1_RETRANSMIT_MESSAGE = 390; + SSL_F_DTLS1_WRITE_APP_DATA_BYTES = 268; + SSL_F_DTLS1_WRITE_BYTES = 545; + SSL_F_DTLSV1_LISTEN = 350; + SSL_F_DTLS_CONSTRUCT_CHANGE_CIPHER_SPEC = 371; + SSL_F_DTLS_CONSTRUCT_HELLO_VERIFY_REQUEST = 385; + SSL_F_DTLS_GET_REASSEMBLED_MESSAGE = 370; + SSL_F_DTLS_PROCESS_HELLO_VERIFY = 386; + SSL_F_DTLS_RECORD_LAYER_NEW = 635; + SSL_F_DTLS_WAIT_FOR_DRY = 592; + SSL_F_EARLY_DATA_COUNT_OK = 532; + SSL_F_FINAL_EARLY_DATA = 556; + SSL_F_FINAL_EC_PT_FORMATS = 485; + SSL_F_FINAL_EMS = 486; + SSL_F_FINAL_KEY_SHARE = 503; + SSL_F_FINAL_MAXFRAGMENTLEN = 557; + SSL_F_FINAL_RENEGOTIATE = 483; + SSL_F_FINAL_SERVER_NAME = 558; + SSL_F_FINAL_SIG_ALGS = 497; + SSL_F_GET_CERT_VERIFY_TBS_DATA = 588; + SSL_F_NSS_KEYLOG_INT = 500; + SSL_F_OPENSSL_INIT_SSL = 342; + SSL_F_OSSL_STATEM_CLIENT13_READ_TRANSITION = 436; + SSL_F_OSSL_STATEM_CLIENT13_WRITE_TRANSITION = 598; + SSL_F_OSSL_STATEM_CLIENT_CONSTRUCT_MESSAGE = 430; + SSL_F_OSSL_STATEM_CLIENT_POST_PROCESS_MESSAGE = 593; + SSL_F_OSSL_STATEM_CLIENT_PROCESS_MESSAGE = 594; + SSL_F_OSSL_STATEM_CLIENT_READ_TRANSITION = 417; + SSL_F_OSSL_STATEM_CLIENT_WRITE_TRANSITION = 599; + SSL_F_OSSL_STATEM_SERVER13_READ_TRANSITION = 437; + SSL_F_OSSL_STATEM_SERVER13_WRITE_TRANSITION = 600; + SSL_F_OSSL_STATEM_SERVER_CONSTRUCT_MESSAGE = 431; + SSL_F_OSSL_STATEM_SERVER_POST_PROCESS_MESSAGE = 601; + SSL_F_OSSL_STATEM_SERVER_POST_WORK = 602; + SSL_F_OSSL_STATEM_SERVER_PROCESS_MESSAGE = 603; + SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION = 418; + SSL_F_OSSL_STATEM_SERVER_WRITE_TRANSITION = 604; + SSL_F_PARSE_CA_NAMES = 541; + SSL_F_PITEM_NEW = 624; + SSL_F_PQUEUE_NEW = 625; + SSL_F_PROCESS_KEY_SHARE_EXT = 439; + SSL_F_READ_STATE_MACHINE = 352; + SSL_F_SET_CLIENT_CIPHERSUITE = 540; + SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET = 595; + SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET = 589; + SSL_F_SRP_VERIFY_SERVER_PARAM = 596; + SSL_F_SSL3_CHANGE_CIPHER_STATE = 129; + SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM = 130; + SSL_F_SSL3_CTRL = 213; + SSL_F_SSL3_CTX_CTRL = 133; + SSL_F_SSL3_DIGEST_CACHED_RECORDS = 293; + SSL_F_SSL3_DO_CHANGE_CIPHER_SPEC = 292; + SSL_F_SSL3_ENC = 608; + SSL_F_SSL3_FINAL_FINISH_MAC = 285; + SSL_F_SSL3_FINISH_MAC = 587; + SSL_F_SSL3_GENERATE_KEY_BLOCK = 238; + SSL_F_SSL3_GENERATE_MASTER_SECRET = 388; + SSL_F_SSL3_GET_RECORD = 143; + SSL_F_SSL3_INIT_FINISHED_MAC = 397; + SSL_F_SSL3_OUTPUT_CERT_CHAIN = 147; + SSL_F_SSL3_READ_BYTES = 148; + SSL_F_SSL3_READ_N = 149; + SSL_F_SSL3_SETUP_KEY_BLOCK = 157; + SSL_F_SSL3_SETUP_READ_BUFFER = 156; + SSL_F_SSL3_SETUP_WRITE_BUFFER = 291; + SSL_F_SSL3_WRITE_BYTES = 158; + SSL_F_SSL3_WRITE_PENDING = 159; + SSL_F_SSL_ADD_CERT_CHAIN = 316; + SSL_F_SSL_ADD_CERT_TO_BUF = 319; + SSL_F_SSL_ADD_CERT_TO_WPACKET = 493; + SSL_F_SSL_ADD_CLIENTHELLO_RENEGOTIATE_EXT = 298; + SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT = 277; + SSL_F_SSL_ADD_CLIENTHELLO_USE_SRTP_EXT = 307; + SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK = 215; + SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK = 216; + SSL_F_SSL_ADD_SERVERHELLO_RENEGOTIATE_EXT = 299; + SSL_F_SSL_ADD_SERVERHELLO_TLSEXT = 278; + SSL_F_SSL_ADD_SERVERHELLO_USE_SRTP_EXT = 308; + SSL_F_SSL_BAD_METHOD = 160; + SSL_F_SSL_BUILD_CERT_CHAIN = 332; + SSL_F_SSL_BYTES_TO_CIPHER_LIST = 161; + SSL_F_SSL_CACHE_CIPHERLIST = 520; + SSL_F_SSL_CERT_ADD0_CHAIN_CERT = 346; + SSL_F_SSL_CERT_DUP = 221; + SSL_F_SSL_CERT_NEW = 162; + SSL_F_SSL_CERT_SET0_CHAIN = 340; + SSL_F_SSL_CHECK_PRIVATE_KEY = 163; + SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT = 280; + SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO = 606; + SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG = 279; + SSL_F_SSL_CHOOSE_CLIENT_VERSION = 607; + SSL_F_SSL_CIPHER_DESCRIPTION = 626; + SSL_F_SSL_CIPHER_LIST_TO_BYTES = 425; + SSL_F_SSL_CIPHER_PROCESS_RULESTR = 230; + SSL_F_SSL_CIPHER_STRENGTH_SORT = 231; + SSL_F_SSL_CLEAR = 164; + SSL_F_SSL_CLIENT_HELLO_GET1_EXTENSIONS_PRESENT = 627; + SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD = 165; + SSL_F_SSL_CONF_CMD = 334; + SSL_F_SSL_CREATE_CIPHER_LIST = 166; + SSL_F_SSL_CTRL = 232; + SSL_F_SSL_CTX_CHECK_PRIVATE_KEY = 168; + SSL_F_SSL_CTX_ENABLE_CT = 398; + SSL_F_SSL_CTX_MAKE_PROFILES = 309; + SSL_F_SSL_CTX_NEW = 169; + SSL_F_SSL_CTX_SET_ALPN_PROTOS = 343; + SSL_F_SSL_CTX_SET_CIPHER_LIST = 269; + SSL_F_SSL_CTX_SET_CLIENT_CERT_ENGINE = 290; + SSL_F_SSL_CTX_SET_CT_VALIDATION_CALLBACK = 396; + SSL_F_SSL_CTX_SET_SESSION_ID_CONTEXT = 219; + SSL_F_SSL_CTX_SET_SSL_VERSION = 170; + SSL_F_SSL_CTX_SET_TLSEXT_MAX_FRAGMENT_LENGTH = 551; + SSL_F_SSL_CTX_USE_CERTIFICATE = 171; + SSL_F_SSL_CTX_USE_CERTIFICATE_ASN1 = 172; + SSL_F_SSL_CTX_USE_CERTIFICATE_FILE = 173; + SSL_F_SSL_CTX_USE_PRIVATEKEY = 174; + SSL_F_SSL_CTX_USE_PRIVATEKEY_ASN1 = 175; + SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE = 176; + SSL_F_SSL_CTX_USE_PSK_IDENTITY_HINT = 272; + SSL_F_SSL_CTX_USE_RSAPRIVATEKEY = 177; + SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_ASN1 = 178; + SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_FILE = 179; + SSL_F_SSL_CTX_USE_SERVERINFO = 336; + SSL_F_SSL_CTX_USE_SERVERINFO_EX = 543; + SSL_F_SSL_CTX_USE_SERVERINFO_FILE = 337; + SSL_F_SSL_DANE_DUP = 403; + SSL_F_SSL_DANE_ENABLE = 395; + SSL_F_SSL_DERIVE = 590; + SSL_F_SSL_DO_CONFIG = 391; + SSL_F_SSL_DO_HANDSHAKE = 180; + SSL_F_SSL_DUP_CA_LIST = 408; + SSL_F_SSL_ENABLE_CT = 402; + SSL_F_SSL_GENERATE_PKEY_GROUP = 559; + SSL_F_SSL_GENERATE_SESSION_ID = 547; + SSL_F_SSL_GET_NEW_SESSION = 181; + SSL_F_SSL_GET_PREV_SESSION = 217; + SSL_F_SSL_GET_SERVER_CERT_INDEX = 322; + SSL_F_SSL_GET_SIGN_PKEY = 183; + SSL_F_SSL_HANDSHAKE_HASH = 560; + SSL_F_SSL_INIT_WBIO_BUFFER = 184; + SSL_F_SSL_KEY_UPDATE = 515; + SSL_F_SSL_LOAD_CLIENT_CA_FILE = 185; + SSL_F_SSL_LOG_MASTER_SECRET = 498; + SSL_F_SSL_LOG_RSA_CLIENT_KEY_EXCHANGE = 499; + SSL_F_SSL_MODULE_INIT = 392; + SSL_F_SSL_NEW = 186; + SSL_F_SSL_NEXT_PROTO_VALIDATE = 565; + SSL_F_SSL_PARSE_CLIENTHELLO_RENEGOTIATE_EXT = 300; + SSL_F_SSL_PARSE_CLIENTHELLO_TLSEXT = 302; + SSL_F_SSL_PARSE_CLIENTHELLO_USE_SRTP_EXT = 310; + SSL_F_SSL_PARSE_SERVERHELLO_RENEGOTIATE_EXT = 301; + SSL_F_SSL_PARSE_SERVERHELLO_TLSEXT = 303; + SSL_F_SSL_PARSE_SERVERHELLO_USE_SRTP_EXT = 311; + SSL_F_SSL_PEEK = 270; + SSL_F_SSL_PEEK_EX = 432; + SSL_F_SSL_PEEK_INTERNAL = 522; + SSL_F_SSL_READ = 223; + SSL_F_SSL_READ_EARLY_DATA = 529; + SSL_F_SSL_READ_EX = 434; + SSL_F_SSL_READ_INTERNAL = 523; + SSL_F_SSL_RENEGOTIATE = 516; + SSL_F_SSL_RENEGOTIATE_ABBREVIATED = 546; + SSL_F_SSL_SCAN_CLIENTHELLO_TLSEXT = 320; + SSL_F_SSL_SCAN_SERVERHELLO_TLSEXT = 321; + SSL_F_SSL_SESSION_DUP = 348; + SSL_F_SSL_SESSION_NEW = 189; + SSL_F_SSL_SESSION_PRINT_FP = 190; + SSL_F_SSL_SESSION_SET1_ID = 423; + SSL_F_SSL_SESSION_SET1_ID_CONTEXT = 312; + SSL_F_SSL_SET_ALPN_PROTOS = 344; + SSL_F_SSL_SET_CERT = 191; + SSL_F_SSL_SET_CERT_AND_KEY = 621; + SSL_F_SSL_SET_CIPHER_LIST = 271; + SSL_F_SSL_SET_CT_VALIDATION_CALLBACK = 399; + SSL_F_SSL_SET_FD = 192; + SSL_F_SSL_SET_PKEY = 193; + SSL_F_SSL_SET_RFD = 194; + SSL_F_SSL_SET_SESSION = 195; + SSL_F_SSL_SET_SESSION_ID_CONTEXT = 218; + SSL_F_SSL_SET_SESSION_TICKET_EXT = 294; + SSL_F_SSL_SET_TLSEXT_MAX_FRAGMENT_LENGTH = 550; + SSL_F_SSL_SET_WFD = 196; + SSL_F_SSL_SHUTDOWN = 224; + SSL_F_SSL_SRP_CTX_INIT = 313; + SSL_F_SSL_START_ASYNC_JOB = 389; + SSL_F_SSL_UNDEFINED_FUNCTION = 197; + SSL_F_SSL_UNDEFINED_VOID_FUNCTION = 244; + SSL_F_SSL_USE_CERTIFICATE = 198; + SSL_F_SSL_USE_CERTIFICATE_ASN1 = 199; + SSL_F_SSL_USE_CERTIFICATE_FILE = 200; + SSL_F_SSL_USE_PRIVATEKEY = 201; + SSL_F_SSL_USE_PRIVATEKEY_ASN1 = 202; + SSL_F_SSL_USE_PRIVATEKEY_FILE = 203; + SSL_F_SSL_USE_PSK_IDENTITY_HINT = 273; + SSL_F_SSL_USE_RSAPRIVATEKEY = 204; + SSL_F_SSL_USE_RSAPRIVATEKEY_ASN1 = 205; + SSL_F_SSL_USE_RSAPRIVATEKEY_FILE = 206; + SSL_F_SSL_VALIDATE_CT = 400; + SSL_F_SSL_VERIFY_CERT_CHAIN = 207; + SSL_F_SSL_VERIFY_CLIENT_POST_HANDSHAKE = 616; + SSL_F_SSL_WRITE = 208; + SSL_F_SSL_WRITE_EARLY_DATA = 526; + SSL_F_SSL_WRITE_EARLY_FINISH = 527; + SSL_F_SSL_WRITE_EX = 433; + SSL_F_SSL_WRITE_INTERNAL = 524; + SSL_F_STATE_MACHINE = 353; + SSL_F_TLS12_CHECK_PEER_SIGALG = 333; + SSL_F_TLS12_COPY_SIGALGS = 533; + SSL_F_TLS13_CHANGE_CIPHER_STATE = 440; + SSL_F_TLS13_ENC = 609; + SSL_F_TLS13_FINAL_FINISH_MAC = 605; + SSL_F_TLS13_GENERATE_SECRET = 591; + SSL_F_TLS13_HKDF_EXPAND = 561; + SSL_F_TLS13_RESTORE_HANDSHAKE_DIGEST_FOR_PHA = 617; + SSL_F_TLS13_SAVE_HANDSHAKE_DIGEST_FOR_PHA = 618; + SSL_F_TLS13_SETUP_KEY_BLOCK = 441; + SSL_F_TLS1_CHANGE_CIPHER_STATE = 209; + SSL_F_TLS1_CHECK_DUPLICATE_EXTENSIONS = 341; + SSL_F_TLS1_ENC = 401; + SSL_F_TLS1_EXPORT_KEYING_MATERIAL = 314; + SSL_F_TLS1_GET_CURVELIST = 338; + SSL_F_TLS1_PRF = 284; + SSL_F_TLS1_SAVE_U16 = 628; + SSL_F_TLS1_SETUP_KEY_BLOCK = 211; + SSL_F_TLS1_SET_GROUPS = 629; + SSL_F_TLS1_SET_RAW_SIGALGS = 630; + SSL_F_TLS1_SET_SERVER_SIGALGS = 335; + SSL_F_TLS1_SET_SHARED_SIGALGS = 631; + SSL_F_TLS1_SET_SIGALGS = 632; + SSL_F_TLS_CHOOSE_SIGALG = 513; + SSL_F_TLS_CLIENT_KEY_EXCHANGE_POST_WORK = 354; + SSL_F_TLS_COLLECT_EXTENSIONS = 435; + SSL_F_TLS_CONSTRUCT_CERTIFICATE_AUTHORITIES = 542; + SSL_F_TLS_CONSTRUCT_CERTIFICATE_REQUEST = 372; + SSL_F_TLS_CONSTRUCT_CERT_STATUS = 429; + SSL_F_TLS_CONSTRUCT_CERT_STATUS_BODY = 494; + SSL_F_TLS_CONSTRUCT_CERT_VERIFY = 496; + SSL_F_TLS_CONSTRUCT_CHANGE_CIPHER_SPEC = 427; + SSL_F_TLS_CONSTRUCT_CKE_DHE = 404; + SSL_F_TLS_CONSTRUCT_CKE_ECDHE = 405; + SSL_F_TLS_CONSTRUCT_CKE_GOST = 406; + SSL_F_TLS_CONSTRUCT_CKE_PSK_PREAMBLE = 407; + SSL_F_TLS_CONSTRUCT_CKE_RSA = 409; + SSL_F_TLS_CONSTRUCT_CKE_SRP = 410; + SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE = 484; + SSL_F_TLS_CONSTRUCT_CLIENT_HELLO = 487; + SSL_F_TLS_CONSTRUCT_CLIENT_KEY_EXCHANGE = 488; + SSL_F_TLS_CONSTRUCT_CLIENT_VERIFY = 489; + SSL_F_TLS_CONSTRUCT_CTOS_ALPN = 466; + SSL_F_TLS_CONSTRUCT_CTOS_CERTIFICATE = 355; + SSL_F_TLS_CONSTRUCT_CTOS_COOKIE = 535; + SSL_F_TLS_CONSTRUCT_CTOS_EARLY_DATA = 530; + SSL_F_TLS_CONSTRUCT_CTOS_EC_PT_FORMATS = 467; + SSL_F_TLS_CONSTRUCT_CTOS_EMS = 468; + SSL_F_TLS_CONSTRUCT_CTOS_ETM = 469; + SSL_F_TLS_CONSTRUCT_CTOS_HELLO = 356; + SSL_F_TLS_CONSTRUCT_CTOS_KEY_EXCHANGE = 357; + SSL_F_TLS_CONSTRUCT_CTOS_KEY_SHARE = 470; + SSL_F_TLS_CONSTRUCT_CTOS_MAXFRAGMENTLEN = 549; + SSL_F_TLS_CONSTRUCT_CTOS_NPN = 471; + SSL_F_TLS_CONSTRUCT_CTOS_PADDING = 472; + SSL_F_TLS_CONSTRUCT_CTOS_POST_HANDSHAKE_AUTH = 619; + SSL_F_TLS_CONSTRUCT_CTOS_PSK = 501; + SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES = 509; + SSL_F_TLS_CONSTRUCT_CTOS_RENEGOTIATE = 473; + SSL_F_TLS_CONSTRUCT_CTOS_SCT = 474; + SSL_F_TLS_CONSTRUCT_CTOS_SERVER_NAME = 475; + SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET = 476; + SSL_F_TLS_CONSTRUCT_CTOS_SIG_ALGS = 477; + SSL_F_TLS_CONSTRUCT_CTOS_SRP = 478; + SSL_F_TLS_CONSTRUCT_CTOS_STATUS_REQUEST = 479; + SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS = 480; + SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_VERSIONS = 481; + SSL_F_TLS_CONSTRUCT_CTOS_USE_SRTP = 482; + SSL_F_TLS_CONSTRUCT_CTOS_VERIFY = 358; + SSL_F_TLS_CONSTRUCT_ENCRYPTED_EXTENSIONS = 443; + SSL_F_TLS_CONSTRUCT_END_OF_EARLY_DATA = 536; + SSL_F_TLS_CONSTRUCT_EXTENSIONS = 447; + SSL_F_TLS_CONSTRUCT_FINISHED = 359; + SSL_F_TLS_CONSTRUCT_HELLO_REQUEST = 373; + SSL_F_TLS_CONSTRUCT_HELLO_RETRY_REQUEST = 510; + SSL_F_TLS_CONSTRUCT_KEY_UPDATE = 517; + SSL_F_TLS_CONSTRUCT_NEW_SESSION_TICKET = 428; + SSL_F_TLS_CONSTRUCT_NEXT_PROTO = 426; + SSL_F_TLS_CONSTRUCT_SERVER_CERTIFICATE = 490; + SSL_F_TLS_CONSTRUCT_SERVER_HELLO = 491; + SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE = 492; + SSL_F_TLS_CONSTRUCT_STOC_ALPN = 451; + SSL_F_TLS_CONSTRUCT_STOC_CERTIFICATE = 374; + SSL_F_TLS_CONSTRUCT_STOC_COOKIE = 613; + SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG = 452; + SSL_F_TLS_CONSTRUCT_STOC_DONE = 375; + SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA = 531; + SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA_INFO = 525; + SSL_F_TLS_CONSTRUCT_STOC_EC_PT_FORMATS = 453; + SSL_F_TLS_CONSTRUCT_STOC_EMS = 454; + SSL_F_TLS_CONSTRUCT_STOC_ETM = 455; + SSL_F_TLS_CONSTRUCT_STOC_HELLO = 376; + SSL_F_TLS_CONSTRUCT_STOC_KEY_EXCHANGE = 377; + SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE = 456; + SSL_F_TLS_CONSTRUCT_STOC_MAXFRAGMENTLEN = 548; + SSL_F_TLS_CONSTRUCT_STOC_NEXT_PROTO_NEG = 457; + SSL_F_TLS_CONSTRUCT_STOC_PSK = 504; + SSL_F_TLS_CONSTRUCT_STOC_RENEGOTIATE = 458; + SSL_F_TLS_CONSTRUCT_STOC_SERVER_NAME = 459; + SSL_F_TLS_CONSTRUCT_STOC_SESSION_TICKET = 460; + SSL_F_TLS_CONSTRUCT_STOC_STATUS_REQUEST = 461; + SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_GROUPS = 544; + SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_VERSIONS = 611; + SSL_F_TLS_CONSTRUCT_STOC_USE_SRTP = 462; + SSL_F_TLS_EARLY_POST_PROCESS_CLIENT_HELLO = 521; + SSL_F_TLS_FINISH_HANDSHAKE = 597; + SSL_F_TLS_GET_MESSAGE_BODY = 351; + SSL_F_TLS_GET_MESSAGE_HEADER = 387; + SSL_F_TLS_HANDLE_ALPN = 562; + SSL_F_TLS_HANDLE_STATUS_REQUEST = 563; + SSL_F_TLS_PARSE_CERTIFICATE_AUTHORITIES = 566; + SSL_F_TLS_PARSE_CLIENTHELLO_TLSEXT = 449; + SSL_F_TLS_PARSE_CTOS_ALPN = 567; + SSL_F_TLS_PARSE_CTOS_COOKIE = 614; + SSL_F_TLS_PARSE_CTOS_EARLY_DATA = 568; + SSL_F_TLS_PARSE_CTOS_EC_PT_FORMATS = 569; + SSL_F_TLS_PARSE_CTOS_EMS = 570; + SSL_F_TLS_PARSE_CTOS_KEY_SHARE = 463; + SSL_F_TLS_PARSE_CTOS_MAXFRAGMENTLEN = 571; + SSL_F_TLS_PARSE_CTOS_POST_HANDSHAKE_AUTH = 620; + SSL_F_TLS_PARSE_CTOS_PSK = 505; + SSL_F_TLS_PARSE_CTOS_PSK_KEX_MODES = 572; + SSL_F_TLS_PARSE_CTOS_RENEGOTIATE = 464; + SSL_F_TLS_PARSE_CTOS_SERVER_NAME = 573; + SSL_F_TLS_PARSE_CTOS_SESSION_TICKET = 574; + SSL_F_TLS_PARSE_CTOS_SIG_ALGS = 575; + SSL_F_TLS_PARSE_CTOS_SIG_ALGS_CERT = 615; + SSL_F_TLS_PARSE_CTOS_SRP = 576; + SSL_F_TLS_PARSE_CTOS_STATUS_REQUEST = 577; + SSL_F_TLS_PARSE_CTOS_SUPPORTED_GROUPS = 578; + SSL_F_TLS_PARSE_CTOS_USE_SRTP = 465; + SSL_F_TLS_PARSE_STOC_ALPN = 579; + SSL_F_TLS_PARSE_STOC_COOKIE = 534; + SSL_F_TLS_PARSE_STOC_EARLY_DATA = 538; + SSL_F_TLS_PARSE_STOC_EARLY_DATA_INFO = 528; + SSL_F_TLS_PARSE_STOC_EC_PT_FORMATS = 580; + SSL_F_TLS_PARSE_STOC_KEY_SHARE = 445; + SSL_F_TLS_PARSE_STOC_MAXFRAGMENTLEN = 581; + SSL_F_TLS_PARSE_STOC_NPN = 582; + SSL_F_TLS_PARSE_STOC_PSK = 502; + SSL_F_TLS_PARSE_STOC_RENEGOTIATE = 448; + SSL_F_TLS_PARSE_STOC_SCT = 564; + SSL_F_TLS_PARSE_STOC_SERVER_NAME = 583; + SSL_F_TLS_PARSE_STOC_SESSION_TICKET = 584; + SSL_F_TLS_PARSE_STOC_STATUS_REQUEST = 585; + SSL_F_TLS_PARSE_STOC_SUPPORTED_VERSIONS = 612; + SSL_F_TLS_PARSE_STOC_USE_SRTP = 446; + SSL_F_TLS_POST_PROCESS_CLIENT_HELLO = 378; + SSL_F_TLS_POST_PROCESS_CLIENT_KEY_EXCHANGE = 384; + SSL_F_TLS_PREPARE_CLIENT_CERTIFICATE = 360; + SSL_F_TLS_PROCESS_AS_HELLO_RETRY_REQUEST = 610; + SSL_F_TLS_PROCESS_CERTIFICATE_REQUEST = 361; + SSL_F_TLS_PROCESS_CERT_STATUS = 362; + SSL_F_TLS_PROCESS_CERT_STATUS_BODY = 495; + SSL_F_TLS_PROCESS_CERT_VERIFY = 379; + SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC = 363; + SSL_F_TLS_PROCESS_CKE_DHE = 411; + SSL_F_TLS_PROCESS_CKE_ECDHE = 412; + SSL_F_TLS_PROCESS_CKE_GOST = 413; + SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE = 414; + SSL_F_TLS_PROCESS_CKE_RSA = 415; + SSL_F_TLS_PROCESS_CKE_SRP = 416; + SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE = 380; + SSL_F_TLS_PROCESS_CLIENT_HELLO = 381; + SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE = 382; + SSL_F_TLS_PROCESS_ENCRYPTED_EXTENSIONS = 444; + SSL_F_TLS_PROCESS_END_OF_EARLY_DATA = 537; + SSL_F_TLS_PROCESS_FINISHED = 364; + SSL_F_TLS_PROCESS_HELLO_REQ = 507; + SSL_F_TLS_PROCESS_HELLO_RETRY_REQUEST = 511; + SSL_F_TLS_PROCESS_INITIAL_SERVER_FLIGHT = 442; + SSL_F_TLS_PROCESS_KEY_EXCHANGE = 365; + SSL_F_TLS_PROCESS_KEY_UPDATE = 518; + SSL_F_TLS_PROCESS_NEW_SESSION_TICKET = 366; + SSL_F_TLS_PROCESS_NEXT_PROTO = 383; + SSL_F_TLS_PROCESS_SERVER_CERTIFICATE = 367; + SSL_F_TLS_PROCESS_SERVER_DONE = 368; + SSL_F_TLS_PROCESS_SERVER_HELLO = 369; + SSL_F_TLS_PROCESS_SKE_DHE = 419; + SSL_F_TLS_PROCESS_SKE_ECDHE = 420; + SSL_F_TLS_PROCESS_SKE_PSK_PREAMBLE = 421; + SSL_F_TLS_PROCESS_SKE_SRP = 422; + SSL_F_TLS_PSK_DO_BINDER = 506; + SSL_F_TLS_SCAN_CLIENTHELLO_TLSEXT = 450; + SSL_F_TLS_SETUP_HANDSHAKE = 508; + SSL_F_USE_CERTIFICATE_CHAIN_FILE = 220; + SSL_F_WPACKET_INTERN_INIT_LEN = 633; + SSL_F_WPACKET_START_SUB_PACKET_LEN__ = 634; + SSL_F_WRITE_STATE_MACHINE = 586; + SSL_R_APPLICATION_DATA_AFTER_CLOSE_NOTIFY = 291; + SSL_R_APP_DATA_IN_HANDSHAKE = 100; + SSL_R_ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT = 272; + SSL_R_AT_LEAST_TLS_1_0_NEEDED_IN_FIPS_MODE = 143; + SSL_R_AT_LEAST_TLS_1_2_NEEDED_IN_SUITEB_MODE = 158; + SSL_R_BAD_CHANGE_CIPHER_SPEC = 103; + SSL_R_BAD_CIPHER = 186; + SSL_R_BAD_DATA = 390; + SSL_R_BAD_DATA_RETURNED_BY_CALLBACK = 106; + SSL_R_BAD_DECOMPRESSION = 107; + SSL_R_BAD_DH_VALUE = 102; + SSL_R_BAD_DIGEST_LENGTH = 111; + SSL_R_BAD_EARLY_DATA = 233; + SSL_R_BAD_ECC_CERT = 304; + SSL_R_BAD_ECPOINT = 306; + SSL_R_BAD_EXTENSION = 110; + SSL_R_BAD_HANDSHAKE_LENGTH = 332; + SSL_R_BAD_HANDSHAKE_STATE = 236; + SSL_R_BAD_HELLO_REQUEST = 105; + SSL_R_BAD_HRR_VERSION = 263; + SSL_R_BAD_KEY_SHARE = 108; + SSL_R_BAD_KEY_UPDATE = 122; + SSL_R_BAD_LEGACY_VERSION = 292; + SSL_R_BAD_LENGTH = 271; + SSL_R_BAD_PACKET = 240; + SSL_R_BAD_PACKET_LENGTH = 115; + SSL_R_BAD_PROTOCOL_VERSION_NUMBER = 116; + SSL_R_BAD_PSK = 219; + SSL_R_BAD_PSK_IDENTITY = 114; + SSL_R_BAD_RECORD_TYPE = 443; + SSL_R_BAD_RSA_ENCRYPT = 119; + SSL_R_BAD_SIGNATURE = 123; + SSL_R_BAD_SRP_A_LENGTH = 347; + SSL_R_BAD_SRP_PARAMETERS = 371; + SSL_R_BAD_SRTP_MKI_VALUE = 352; + SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST = 353; + SSL_R_BAD_SSL_FILETYPE = 124; + SSL_R_BAD_VALUE = 384; + SSL_R_BAD_WRITE_RETRY = 127; + SSL_R_BINDER_DOES_NOT_VERIFY = 253; + SSL_R_BIO_NOT_SET = 128; + SSL_R_BLOCK_CIPHER_PAD_IS_WRONG = 129; + SSL_R_BN_LIB = 130; + SSL_R_CALLBACK_FAILED = 234; + SSL_R_CANNOT_CHANGE_CIPHER = 109; + SSL_R_CA_DN_LENGTH_MISMATCH = 131; + SSL_R_CA_KEY_TOO_SMALL = 397; + SSL_R_CA_MD_TOO_WEAK = 398; + SSL_R_CCS_RECEIVED_EARLY = 133; + SSL_R_CERTIFICATE_VERIFY_FAILED = 134; + SSL_R_CERT_CB_ERROR = 377; + SSL_R_CERT_LENGTH_MISMATCH = 135; + SSL_R_CIPHERSUITE_DIGEST_HAS_CHANGED = 218; + SSL_R_CIPHER_CODE_WRONG_LENGTH = 137; + SSL_R_CIPHER_OR_HASH_UNAVAILABLE = 138; + SSL_R_CLIENTHELLO_TLSEXT = 226; + SSL_R_COMPRESSED_LENGTH_TOO_LONG = 140; + SSL_R_COMPRESSION_DISABLED = 343; + SSL_R_COMPRESSION_FAILURE = 141; + SSL_R_COMPRESSION_ID_NOT_WITHIN_PRIVATE_RANGE = 307; + SSL_R_COMPRESSION_LIBRARY_ERROR = 142; + SSL_R_CONNECTION_TYPE_NOT_SET = 144; + SSL_R_CONTEXT_NOT_DANE_ENABLED = 167; + SSL_R_COOKIE_GEN_CALLBACK_FAILURE = 400; + SSL_R_COOKIE_MISMATCH = 308; + SSL_R_CUSTOM_EXT_HANDLER_ALREADY_INSTALLED = 206; + SSL_R_DANE_ALREADY_ENABLED = 172; + SSL_R_DANE_CANNOT_OVERRIDE_MTYPE_FULL = 173; + SSL_R_DANE_NOT_ENABLED = 175; + SSL_R_DANE_TLSA_BAD_CERTIFICATE = 180; + SSL_R_DANE_TLSA_BAD_CERTIFICATE_USAGE = 184; + SSL_R_DANE_TLSA_BAD_DATA_LENGTH = 189; + SSL_R_DANE_TLSA_BAD_DIGEST_LENGTH = 192; + SSL_R_DANE_TLSA_BAD_MATCHING_TYPE = 200; + SSL_R_DANE_TLSA_BAD_PUBLIC_KEY = 201; + SSL_R_DANE_TLSA_BAD_SELECTOR = 202; + SSL_R_DANE_TLSA_NULL_DATA = 203; + SSL_R_DATA_BETWEEN_CCS_AND_FINISHED = 145; + SSL_R_DATA_LENGTH_TOO_LONG = 146; + SSL_R_DECRYPTION_FAILED = 147; + SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC = 281; + SSL_R_DH_KEY_TOO_SMALL = 394; + SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG = 148; + SSL_R_DIGEST_CHECK_FAILED = 149; + SSL_R_DTLS_MESSAGE_TOO_BIG = 334; + SSL_R_DUPLICATE_COMPRESSION_ID = 309; + SSL_R_ECC_CERT_NOT_FOR_SIGNING = 318; + SSL_R_ECDH_REQUIRED_FOR_SUITEB_MODE = 374; + SSL_R_EE_KEY_TOO_SMALL = 399; + SSL_R_EMPTY_SRTP_PROTECTION_PROFILE_LIST = 354; + SSL_R_ENCRYPTED_LENGTH_TOO_LONG = 150; + SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST = 151; + SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN = 204; + SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE = 194; + SSL_R_EXCESSIVE_MESSAGE_SIZE = 152; + SSL_R_EXTENSION_NOT_RECEIVED = 279; + SSL_R_EXTRA_DATA_IN_MESSAGE = 153; + SSL_R_EXT_LENGTH_MISMATCH = 163; + SSL_R_FAILED_TO_INIT_ASYNC = 405; + SSL_R_FRAGMENTED_CLIENT_HELLO = 401; + SSL_R_GOT_A_FIN_BEFORE_A_CCS = 154; + SSL_R_HTTPS_PROXY_REQUEST = 155; + SSL_R_HTTP_REQUEST = 156; + SSL_R_ILLEGAL_POINT_COMPRESSION = 162; + SSL_R_ILLEGAL_SUITEB_DIGEST = 380; + SSL_R_INAPPROPRIATE_FALLBACK = 373; + SSL_R_INCONSISTENT_COMPRESSION = 340; + SSL_R_INCONSISTENT_EARLY_DATA_ALPN = 222; + SSL_R_INCONSISTENT_EARLY_DATA_SNI = 231; + SSL_R_INCONSISTENT_EXTMS = 104; + SSL_R_INSUFFICIENT_SECURITY = 241; + SSL_R_INVALID_ALERT = 205; + SSL_R_INVALID_CCS_MESSAGE = 260; + SSL_R_INVALID_CERTIFICATE_OR_ALG = 238; + SSL_R_INVALID_COMMAND = 280; + SSL_R_INVALID_COMPRESSION_ALGORITHM = 341; + SSL_R_INVALID_CONFIG = 283; + SSL_R_INVALID_CONFIGURATION_NAME = 113; + SSL_R_INVALID_CONTEXT = 282; + SSL_R_INVALID_CT_VALIDATION_TYPE = 212; + SSL_R_INVALID_KEY_UPDATE_TYPE = 120; + SSL_R_INVALID_MAX_EARLY_DATA = 174; + SSL_R_INVALID_NULL_CMD_NAME = 385; + SSL_R_INVALID_SEQUENCE_NUMBER = 402; + SSL_R_INVALID_SERVERINFO_DATA = 388; + SSL_R_INVALID_SESSION_ID = 999; + SSL_R_INVALID_SRP_USERNAME = 357; + SSL_R_INVALID_STATUS_RESPONSE = 328; + SSL_R_INVALID_TICKET_KEYS_LENGTH = 325; + SSL_R_LENGTH_MISMATCH = 159; + SSL_R_LENGTH_TOO_LONG = 404; + SSL_R_LENGTH_TOO_SHORT = 160; + SSL_R_LIBRARY_BUG = 274; + SSL_R_LIBRARY_HAS_NO_CIPHERS = 161; + SSL_R_MISSING_DSA_SIGNING_CERT = 165; + SSL_R_MISSING_ECDSA_SIGNING_CERT = 381; + SSL_R_MISSING_FATAL = 256; + SSL_R_MISSING_PARAMETERS = 290; + SSL_R_MISSING_RSA_CERTIFICATE = 168; + SSL_R_MISSING_RSA_ENCRYPTING_CERT = 169; + SSL_R_MISSING_RSA_SIGNING_CERT = 170; + SSL_R_MISSING_SIGALGS_EXTENSION = 112; + SSL_R_MISSING_SIGNING_CERT = 221; + SSL_R_MISSING_SRP_PARAM = 358; + SSL_R_MISSING_SUPPORTED_GROUPS_EXTENSION = 209; + SSL_R_MISSING_TMP_DH_KEY = 171; + SSL_R_MISSING_TMP_ECDH_KEY = 311; + SSL_R_MIXED_HANDSHAKE_AND_NON_HANDSHAKE_DATA = 293; + SSL_R_NOT_ON_RECORD_BOUNDARY = 182; + SSL_R_NOT_REPLACING_CERTIFICATE = 289; + SSL_R_NOT_SERVER = 284; + SSL_R_NO_APPLICATION_PROTOCOL = 235; + SSL_R_NO_CERTIFICATES_RETURNED = 176; + SSL_R_NO_CERTIFICATE_ASSIGNED = 177; + SSL_R_NO_CERTIFICATE_SET = 179; + SSL_R_NO_CHANGE_FOLLOWING_HRR = 214; + SSL_R_NO_CIPHERS_AVAILABLE = 181; + SSL_R_NO_CIPHERS_SPECIFIED = 183; + SSL_R_NO_CIPHER_MATCH = 185; + SSL_R_NO_CLIENT_CERT_METHOD = 331; + SSL_R_NO_COMPRESSION_SPECIFIED = 187; + SSL_R_NO_COOKIE_CALLBACK_SET = 287; + SSL_R_NO_GOST_CERTIFICATE_SENT_BY_PEER = 330; + SSL_R_NO_METHOD_SPECIFIED = 188; + SSL_R_NO_PEM_EXTENSIONS = 389; + SSL_R_NO_PRIVATE_KEY_ASSIGNED = 190; + SSL_R_NO_PROTOCOLS_AVAILABLE = 191; + SSL_R_NO_RENEGOTIATION = 339; + SSL_R_NO_REQUIRED_DIGEST = 324; + SSL_R_NO_SHARED_CIPHER = 193; + SSL_R_NO_SHARED_GROUPS = 410; + SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS = 376; + SSL_R_NO_SRTP_PROFILES = 359; + SSL_R_NO_SUITABLE_KEY_SHARE = 101; + SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM = 118; + SSL_R_NO_VALID_SCTS = 216; + SSL_R_NO_VERIFY_COOKIE_CALLBACK = 403; + SSL_R_NULL_SSL_CTX = 195; + SSL_R_NULL_SSL_METHOD_PASSED = 196; + SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED = 197; + SSL_R_OLD_SESSION_COMPRESSION_ALGORITHM_NOT_RETURNED = 344; + SSL_R_OVERFLOW_ERROR = 237; + SSL_R_PACKET_LENGTH_TOO_LONG = 198; + SSL_R_PARSE_TLSEXT = 227; + SSL_R_PATH_TOO_LONG = 270; + SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE = 199; + SSL_R_PEM_NAME_BAD_PREFIX = 391; + SSL_R_PEM_NAME_TOO_SHORT = 392; + SSL_R_PIPELINE_FAILURE = 406; + SSL_R_POST_HANDSHAKE_AUTH_ENCODING_ERR = 278; + SSL_R_PRIVATE_KEY_MISMATCH = 288; + SSL_R_PROTOCOL_IS_SHUTDOWN = 207; + SSL_R_PSK_IDENTITY_NOT_FOUND = 223; + SSL_R_PSK_NO_CLIENT_CB = 224; + SSL_R_PSK_NO_SERVER_CB = 225; + SSL_R_READ_BIO_NOT_SET = 211; + SSL_R_READ_TIMEOUT_EXPIRED = 312; + SSL_R_RECORD_LENGTH_MISMATCH = 213; + SSL_R_RECORD_TOO_SMALL = 298; + SSL_R_RENEGOTIATE_EXT_TOO_LONG = 335; + SSL_R_RENEGOTIATION_ENCODING_ERR = 336; + SSL_R_RENEGOTIATION_MISMATCH = 337; + SSL_R_REQUEST_PENDING = 285; + SSL_R_REQUEST_SENT = 286; + SSL_R_REQUIRED_CIPHER_MISSING = 215; + SSL_R_REQUIRED_COMPRESSION_ALGORITHM_MISSING = 342; + SSL_R_SCSV_RECEIVED_WHEN_RENEGOTIATING = 345; + SSL_R_SCT_VERIFICATION_FAILED = 208; + SSL_R_SERVERHELLO_TLSEXT = 275; + SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED = 277; + SSL_R_SHUTDOWN_WHILE_IN_INIT = 407; + SSL_R_SIGNATURE_ALGORITHMS_ERROR = 360; + SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE = 220; + SSL_R_SRP_A_CALC = 361; + SSL_R_SRTP_COULD_NOT_ALLOCATE_PROFILES = 362; + SSL_R_SRTP_PROTECTION_PROFILE_LIST_TOO_LONG = 363; + SSL_R_SRTP_UNKNOWN_PROTECTION_PROFILE = 364; + SSL_R_SSL3_EXT_INVALID_MAX_FRAGMENT_LENGTH = 232; + SSL_R_SSL3_EXT_INVALID_SERVERNAME = 319; + SSL_R_SSL3_EXT_INVALID_SERVERNAME_TYPE = 320; + SSL_R_SSL3_SESSION_ID_TOO_LONG = 300; + SSL_R_SSLV3_ALERT_BAD_CERTIFICATE = 1042; + SSL_R_SSLV3_ALERT_BAD_RECORD_MAC = 1020; + SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED = 1045; + SSL_R_SSLV3_ALERT_CERTIFICATE_REVOKED = 1044; + SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN = 1046; + SSL_R_SSLV3_ALERT_DECOMPRESSION_FAILURE = 1030; + SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE = 1040; + SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER = 1047; + SSL_R_SSLV3_ALERT_NO_CERTIFICATE = 1041; + SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE = 1010; + SSL_R_SSLV3_ALERT_UNSUPPORTED_CERTIFICATE = 1043; + SSL_R_SSL_COMMAND_SECTION_EMPTY = 117; + SSL_R_SSL_COMMAND_SECTION_NOT_FOUND = 125; + SSL_R_SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION = 228; + SSL_R_SSL_HANDSHAKE_FAILURE = 229; + SSL_R_SSL_LIBRARY_HAS_NO_CIPHERS = 230; + SSL_R_SSL_NEGATIVE_LENGTH = 372; + SSL_R_SSL_SECTION_EMPTY = 126; + SSL_R_SSL_SECTION_NOT_FOUND = 136; + SSL_R_SSL_SESSION_ID_CALLBACK_FAILED = 301; + SSL_R_SSL_SESSION_ID_CONFLICT = 302; + SSL_R_SSL_SESSION_ID_CONTEXT_TOO_LONG = 273; + SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH = 303; + SSL_R_SSL_SESSION_ID_TOO_LONG = 408; + SSL_R_SSL_SESSION_VERSION_MISMATCH = 210; + SSL_R_STILL_IN_INIT = 121; + SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED = 1116; + SSL_R_TLSV13_ALERT_MISSING_EXTENSION = 1109; + SSL_R_TLSV1_ALERT_ACCESS_DENIED = 1049; + SSL_R_TLSV1_ALERT_DECODE_ERROR = 1050; + SSL_R_TLSV1_ALERT_DECRYPTION_FAILED = 1021; + SSL_R_TLSV1_ALERT_DECRYPT_ERROR = 1051; + SSL_R_TLSV1_ALERT_EXPORT_RESTRICTION = 1060; + SSL_R_TLSV1_ALERT_INAPPROPRIATE_FALLBACK = 1086; + SSL_R_TLSV1_ALERT_INSUFFICIENT_SECURITY = 1071; + SSL_R_TLSV1_ALERT_INTERNAL_ERROR = 1080; + SSL_R_TLSV1_ALERT_NO_RENEGOTIATION = 1100; + SSL_R_TLSV1_ALERT_PROTOCOL_VERSION = 1070; + SSL_R_TLSV1_ALERT_RECORD_OVERFLOW = 1022; + SSL_R_TLSV1_ALERT_UNKNOWN_CA = 1048; + SSL_R_TLSV1_ALERT_USER_CANCELLED = 1090; + SSL_R_TLSV1_BAD_CERTIFICATE_HASH_VALUE = 1114; + SSL_R_TLSV1_BAD_CERTIFICATE_STATUS_RESPONSE = 1113; + SSL_R_TLSV1_CERTIFICATE_UNOBTAINABLE = 1111; + SSL_R_TLSV1_UNRECOGNIZED_NAME = 1112; + SSL_R_TLSV1_UNSUPPORTED_EXTENSION = 1110; + SSL_R_TLS_HEARTBEAT_PEER_DOESNT_ACCEPT = 365; + SSL_R_TLS_HEARTBEAT_PENDING = 366; + SSL_R_TLS_ILLEGAL_EXPORTER_LABEL = 367; + SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST = 157; + SSL_R_TOO_MANY_KEY_UPDATES = 132; + SSL_R_TOO_MANY_WARN_ALERTS = 409; + SSL_R_TOO_MUCH_EARLY_DATA = 164; + SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS = 314; + SSL_R_UNABLE_TO_FIND_PUBLIC_KEY_PARAMETERS = 239; + SSL_R_UNABLE_TO_LOAD_SSL3_MD5_ROUTINES = 242; + SSL_R_UNABLE_TO_LOAD_SSL3_SHA1_ROUTINES = 243; + SSL_R_UNEXPECTED_CCS_MESSAGE = 262; + SSL_R_UNEXPECTED_END_OF_EARLY_DATA = 178; + SSL_R_UNEXPECTED_MESSAGE = 244; + SSL_R_UNEXPECTED_RECORD = 245; + SSL_R_UNINITIALIZED = 276; + SSL_R_UNKNOWN_ALERT_TYPE = 246; + SSL_R_UNKNOWN_CERTIFICATE_TYPE = 247; + SSL_R_UNKNOWN_CIPHER_RETURNED = 248; + SSL_R_UNKNOWN_CIPHER_TYPE = 249; + SSL_R_UNKNOWN_CMD_NAME = 386; + SSL_R_UNKNOWN_COMMAND = 139; + SSL_R_UNKNOWN_DIGEST = 368; + SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE = 250; + SSL_R_UNKNOWN_PKEY_TYPE = 251; + SSL_R_UNKNOWN_PROTOCOL = 252; + SSL_R_UNKNOWN_SSL_VERSION = 254; + SSL_R_UNKNOWN_STATE = 255; + SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED = 338; + SSL_R_UNSOLICITED_EXTENSION = 217; + SSL_R_UNSUPPORTED_COMPRESSION_ALGORITHM = 257; + SSL_R_UNSUPPORTED_ELLIPTIC_CURVE = 315; + SSL_R_UNSUPPORTED_PROTOCOL = 258; + SSL_R_UNSUPPORTED_SSL_VERSION = 259; + SSL_R_UNSUPPORTED_STATUS_TYPE = 329; + SSL_R_USE_SRTP_NOT_NEGOTIATED = 369; + SSL_R_VERSION_TOO_HIGH = 166; + SSL_R_VERSION_TOO_LOW = 396; + SSL_R_WRONG_CERTIFICATE_TYPE = 383; + SSL_R_WRONG_CIPHER_RETURNED = 261; + SSL_R_WRONG_CURVE = 378; + SSL_R_WRONG_SIGNATURE_LENGTH = 264; + SSL_R_WRONG_SIGNATURE_SIZE = 265; + SSL_R_WRONG_SIGNATURE_TYPE = 370; + SSL_R_WRONG_SSL_VERSION = 266; + SSL_R_WRONG_VERSION_NUMBER = 267; + SSL_R_X509_LIB = 268; + SSL_R_X509_VERIFICATION_SETUP_PROBLEMS = 269; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_SSL_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_SSL_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_SSL_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_SSL_strings := LoadFunction('ERR_load_SSL_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_SSL_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibSSL'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_stack.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_stack.pas new file mode 100644 index 000000000..716113b34 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_stack.pas @@ -0,0 +1,2234 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_stack.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_stack.h2pas + and this file regenerated. IdOpenSSLHeaders_stack.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} +unit IdOpenSSLHeaders_stack; + +interface + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + + +{ + Automatically converted by H2Pas 1.0.0 from stack.h + The following command line parameters were used: + -p + -t + stack.h +} + + { + * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the OpenSSL license (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + } + + type + POPENSSL_STACK = pointer; + + TOPENSSL_sk_compfunc = function (_para1:pointer; _para2:pointer):longint;cdecl; + TOPENSSL_sk_freefunc = procedure (_para1:pointer);cdecl; + TOPENSSL_sk_copyfunc = function (_para1:pointer):pointer;cdecl; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM OPENSSL_sk_num} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_value} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_set} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_new} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_new_null} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_new_reserve} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_reserve} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_free} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_pop_free} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_deep_copy} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_insert} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_delete} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_delete_ptr} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_find} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_find_ex} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_push} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_unshift} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_shift} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_pop} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_zero} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_set_cmp_func} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_dup} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_sort} {introduced 1.1.0} + {$EXTERNALSYM OPENSSL_sk_is_sorted} {introduced 1.1.0} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + {$EXTERNALSYM sk_num} {removed 1.1.0} + {$EXTERNALSYM sk_value} {removed 1.1.0} + {$EXTERNALSYM sk_set} {removed 1.1.0} + {$EXTERNALSYM sk_new} {removed 1.1.0} + {$EXTERNALSYM sk_new_null} {removed 1.1.0} + {$EXTERNALSYM sk_new_reserve} {removed 1.0.0} + {$EXTERNALSYM sk_reserve} {removed 1.0.0} + {$EXTERNALSYM sk_free} {removed 1.1.0} + {$EXTERNALSYM sk_pop_free} {removed 1.1.0} + {$EXTERNALSYM sk_deep_copy} {removed 1.1.0} + {$EXTERNALSYM sk_insert} {removed 1.1.0} + {$EXTERNALSYM sk_delete} {removed 1.1.0} + {$EXTERNALSYM sk_delete_ptr} {removed 1.1.0} + {$EXTERNALSYM sk_find} {removed 1.1.0} + {$EXTERNALSYM sk_find_ex} {removed 1.1.0} + {$EXTERNALSYM sk_push} {removed 1.1.0} + {$EXTERNALSYM sk_unshift} {removed 1.1.0} + {$EXTERNALSYM sk_shift} {removed 1.1.0} + {$EXTERNALSYM sk_pop} {removed 1.1.0} + {$EXTERNALSYM sk_zero} {removed 1.1.0} + {$EXTERNALSYM sk_set_cmp_func} {removed 1.1.0} + {$EXTERNALSYM sk_dup} {removed 1.1.0} + {$EXTERNALSYM sk_sort} {removed 1.1.0} + {$EXTERNALSYM sk_is_sorted} {removed 1.1.0} + OPENSSL_sk_num: function(_para1:POPENSSL_STACK):longint; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_value: function(_para1:POPENSSL_STACK; _para2:longint):pointer; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_set: function(st:POPENSSL_STACK; i:longint; data:pointer):pointer; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_new: function(cmp:TOPENSSL_sk_compfunc):POPENSSL_STACK; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_new_null: function:POPENSSL_STACK; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_new_reserve: function(c:TOPENSSL_sk_compfunc; n:longint):POPENSSL_STACK; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_reserve: function(st:POPENSSL_STACK; n:longint):longint; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_free: procedure(_para1:POPENSSL_STACK); cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_pop_free: procedure(st:POPENSSL_STACK; func:TOPENSSL_sk_freefunc); cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_deep_copy: function(_para1:POPENSSL_STACK; c:TOPENSSL_sk_copyfunc; f:TOPENSSL_sk_freefunc):POPENSSL_STACK; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_insert: function(sk:POPENSSL_STACK; data:pointer; where:longint):longint; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_delete: function(st:POPENSSL_STACK; loc:longint):pointer; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_delete_ptr: function(st:POPENSSL_STACK; p:pointer):pointer; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_find: function(st:POPENSSL_STACK; data:pointer):longint; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_find_ex: function(st:POPENSSL_STACK; data:pointer):longint; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_push: function(st:POPENSSL_STACK; data:pointer):longint; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_unshift: function(st:POPENSSL_STACK; data:pointer):longint; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_shift: function(st:POPENSSL_STACK):pointer; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_pop: function(st:POPENSSL_STACK):pointer; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_zero: procedure(st:POPENSSL_STACK); cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_set_cmp_func: function(sk:POPENSSL_STACK; cmp:TOPENSSL_sk_compfunc):TOPENSSL_sk_compfunc; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_dup: function(st:POPENSSL_STACK):POPENSSL_STACK; cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_sort: procedure(st:POPENSSL_STACK); cdecl = nil; {introduced 1.1.0} + OPENSSL_sk_is_sorted: function(st:POPENSSL_STACK):longint; cdecl = nil; {introduced 1.1.0} + + sk_num: function(_para1:POPENSSL_STACK):longint; cdecl = nil; {removed 1.1.0} + sk_value: function(_para1:POPENSSL_STACK; _para2:longint):pointer; cdecl = nil; {removed 1.1.0} + sk_set: function(st:POPENSSL_STACK; i:longint; data:pointer):pointer; cdecl = nil; {removed 1.1.0} + sk_new: function(cmp:TOPENSSL_sk_compfunc):POPENSSL_STACK; cdecl = nil; {removed 1.1.0} + sk_new_null: function:POPENSSL_STACK; cdecl = nil; {removed 1.1.0} + sk_new_reserve: function(c:TOPENSSL_sk_compfunc; n:longint):POPENSSL_STACK; cdecl = nil; {removed 1.0.0} + sk_reserve: function(st:POPENSSL_STACK; n:longint):longint; cdecl = nil; {removed 1.0.0} + sk_free: procedure(_para1:POPENSSL_STACK); cdecl = nil; {removed 1.1.0} + sk_pop_free: procedure(st:POPENSSL_STACK; func:TOPENSSL_sk_freefunc); cdecl = nil; {removed 1.1.0} + sk_deep_copy: function(_para1:POPENSSL_STACK; c:TOPENSSL_sk_copyfunc; f:TOPENSSL_sk_freefunc):POPENSSL_STACK; cdecl = nil; {removed 1.1.0} + sk_insert: function(sk:POPENSSL_STACK; data:pointer; where:longint):longint; cdecl = nil; {removed 1.1.0} + sk_delete: function(st:POPENSSL_STACK; loc:longint):pointer; cdecl = nil; {removed 1.1.0} + sk_delete_ptr: function(st:POPENSSL_STACK; p:pointer):pointer; cdecl = nil; {removed 1.1.0} + sk_find: function(st:POPENSSL_STACK; data:pointer):longint; cdecl = nil; {removed 1.1.0} + sk_find_ex: function(st:POPENSSL_STACK; data:pointer):longint; cdecl = nil; {removed 1.1.0} + sk_push: function(st:POPENSSL_STACK; data:pointer):longint; cdecl = nil; {removed 1.1.0} + sk_unshift: function(st:POPENSSL_STACK; data:pointer):longint; cdecl = nil; {removed 1.1.0} + sk_shift: function(st:POPENSSL_STACK):pointer; cdecl = nil; {removed 1.1.0} + sk_pop: function(st:POPENSSL_STACK):pointer; cdecl = nil; {removed 1.1.0} + sk_zero: procedure(st:POPENSSL_STACK); cdecl = nil; {removed 1.1.0} + sk_set_cmp_func: function(sk:POPENSSL_STACK; cmp:TOPENSSL_sk_compfunc):TOPENSSL_sk_compfunc; cdecl = nil; {removed 1.1.0} + sk_dup: function(st:POPENSSL_STACK):POPENSSL_STACK; cdecl = nil; {removed 1.1.0} + sk_sort: procedure(st:POPENSSL_STACK); cdecl = nil; {removed 1.1.0} + sk_is_sorted: function(st:POPENSSL_STACK):longint; cdecl = nil; {removed 1.1.0} + +{$ELSE} + function OPENSSL_sk_num(_para1:POPENSSL_STACK):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_value(_para1:POPENSSL_STACK; _para2:longint):pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_set(st:POPENSSL_STACK; i:longint; data:pointer):pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_new(cmp:TOPENSSL_sk_compfunc):POPENSSL_STACK cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_new_null:POPENSSL_STACK cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_new_reserve(c:TOPENSSL_sk_compfunc; n:longint):POPENSSL_STACK cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_reserve(st:POPENSSL_STACK; n:longint):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure OPENSSL_sk_free(_para1:POPENSSL_STACK) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure OPENSSL_sk_pop_free(st:POPENSSL_STACK; func:TOPENSSL_sk_freefunc) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_deep_copy(_para1:POPENSSL_STACK; c:TOPENSSL_sk_copyfunc; f:TOPENSSL_sk_freefunc):POPENSSL_STACK cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_insert(sk:POPENSSL_STACK; data:pointer; where:longint):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_delete(st:POPENSSL_STACK; loc:longint):pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_delete_ptr(st:POPENSSL_STACK; p:pointer):pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_find(st:POPENSSL_STACK; data:pointer):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_find_ex(st:POPENSSL_STACK; data:pointer):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_push(st:POPENSSL_STACK; data:pointer):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_unshift(st:POPENSSL_STACK; data:pointer):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_shift(st:POPENSSL_STACK):pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_pop(st:POPENSSL_STACK):pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure OPENSSL_sk_zero(st:POPENSSL_STACK) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_set_cmp_func(sk:POPENSSL_STACK; cmp:TOPENSSL_sk_compfunc):TOPENSSL_sk_compfunc cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_dup(st:POPENSSL_STACK):POPENSSL_STACK cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure OPENSSL_sk_sort(st:POPENSSL_STACK) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function OPENSSL_sk_is_sorted(st:POPENSSL_STACK):longint cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + + function sk_num(_para1:POPENSSL_STACK):longint; {removed 1.1.0} + function sk_value(_para1:POPENSSL_STACK; _para2:longint):pointer; {removed 1.1.0} + function sk_set(st:POPENSSL_STACK; i:longint; data:pointer):pointer; {removed 1.1.0} + function sk_new(cmp:TOPENSSL_sk_compfunc):POPENSSL_STACK; {removed 1.1.0} + function sk_new_null:POPENSSL_STACK; {removed 1.1.0} + function sk_new_reserve(c:TOPENSSL_sk_compfunc; n:longint):POPENSSL_STACK; {removed 1.0.0} + function sk_reserve(st:POPENSSL_STACK; n:longint):longint; {removed 1.0.0} + procedure sk_free(_para1:POPENSSL_STACK); {removed 1.1.0} + procedure sk_pop_free(st:POPENSSL_STACK; func:TOPENSSL_sk_freefunc); {removed 1.1.0} + function sk_deep_copy(_para1:POPENSSL_STACK; c:TOPENSSL_sk_copyfunc; f:TOPENSSL_sk_freefunc):POPENSSL_STACK; {removed 1.1.0} + function sk_insert(sk:POPENSSL_STACK; data:pointer; where:longint):longint; {removed 1.1.0} + function sk_delete(st:POPENSSL_STACK; loc:longint):pointer; {removed 1.1.0} + function sk_delete_ptr(st:POPENSSL_STACK; p:pointer):pointer; {removed 1.1.0} + function sk_find(st:POPENSSL_STACK; data:pointer):longint; {removed 1.1.0} + function sk_find_ex(st:POPENSSL_STACK; data:pointer):longint; {removed 1.1.0} + function sk_push(st:POPENSSL_STACK; data:pointer):longint; {removed 1.1.0} + function sk_unshift(st:POPENSSL_STACK; data:pointer):longint; {removed 1.1.0} + function sk_shift(st:POPENSSL_STACK):pointer; {removed 1.1.0} + function sk_pop(st:POPENSSL_STACK):pointer; {removed 1.1.0} + procedure sk_zero(st:POPENSSL_STACK); {removed 1.1.0} + function sk_set_cmp_func(sk:POPENSSL_STACK; cmp:TOPENSSL_sk_compfunc):TOPENSSL_sk_compfunc; {removed 1.1.0} + function sk_dup(st:POPENSSL_STACK):POPENSSL_STACK; {removed 1.1.0} + procedure sk_sort(st:POPENSSL_STACK); {removed 1.1.0} + function sk_is_sorted(st:POPENSSL_STACK):longint; {removed 1.1.0} +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + OPENSSL_sk_num_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_value_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_set_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_new_null_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_new_reserve_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_reserve_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_pop_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_deep_copy_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_insert_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_delete_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_delete_ptr_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_find_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_find_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_push_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_unshift_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_shift_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_pop_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_zero_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_set_cmp_func_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_dup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_sort_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + OPENSSL_sk_is_sorted_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_num_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_value_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_set_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_new_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_new_null_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_new_reserve_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + sk_reserve_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + sk_free_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_pop_free_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_deep_copy_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_insert_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_delete_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_delete_ptr_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_find_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_find_ex_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_push_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_unshift_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_shift_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_pop_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_zero_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_set_cmp_func_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_dup_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_sort_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + sk_is_sorted_removed = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +function _sk_num(_para1:POPENSSL_STACK):longint; cdecl; +begin + Result := OPENSSL_sk_num(_para1); +end; + +function _sk_value(_para1:POPENSSL_STACK; _para2:longint):pointer; cdecl; +begin + Result := OPENSSL_sk_value(_para1,_para2); +end; + +function _sk_set(st:POPENSSL_STACK; i:longint; data:pointer):pointer; cdecl; +begin + Result := OPENSSL_sk_set(st,i,data); +end; + +function _sk_new(cmp:TOPENSSL_sk_compfunc):POPENSSL_STACK; cdecl; +begin + Result := OPENSSL_sk_new(cmp); +end; + +function _sk_new_null:POPENSSL_STACK; cdecl; +begin + Result := OPENSSL_sk_new_null; +end; + +function _sk_new_reserve(c:TOPENSSL_sk_compfunc; n:longint):POPENSSL_STACK; cdecl; +begin + Result := OPENSSL_sk_new_reserve(c,n); +end; + +function _sk_reserve(st:POPENSSL_STACK; n:longint):longint; cdecl; +begin + Result := OPENSSL_sk_reserve(st,n); +end; + +procedure _sk_free(_para1:POPENSSL_STACK); cdecl; +begin + OPENSSL_sk_free(_para1); +end; + +procedure _sk_pop_free(st:POPENSSL_STACK; func:TOPENSSL_sk_freefunc); cdecl; +begin + OPENSSL_sk_pop_free(st, func); +end; + +function _sk_deep_copy(_para1:POPENSSL_STACK; c:TOPENSSL_sk_copyfunc; f:TOPENSSL_sk_freefunc):POPENSSL_STACK; cdecl; +begin + Result := OPENSSL_sk_deep_copy(_para1,c,f); +end; + +function _sk_insert(sk:POPENSSL_STACK; data:pointer; where:longint):longint; cdecl; +begin + Result := OPENSSL_sk_insert(sk,data,where); +end; + +function _sk_delete(st:POPENSSL_STACK; loc:longint):pointer; cdecl; +begin + Result := OPENSSL_sk_delete(st,loc); +end; + +function _sk_delete_ptr(st:POPENSSL_STACK; p:pointer):pointer; cdecl; +begin + Result := OPENSSL_sk_delete_ptr(st,p); +end; + +function _sk_find(st:POPENSSL_STACK; data:pointer):longint; cdecl; +begin + Result := OPENSSL_sk_find(st,data); +end; + +function _sk_find_ex(st:POPENSSL_STACK; data:pointer):longint; cdecl; +begin + Result := OPENSSL_sk_find_ex(st,data); +end; + +function _sk_push(st:POPENSSL_STACK; data:pointer):longint; cdecl; +begin + Result := OPENSSL_sk_push(st,data); +end; + +function _sk_unshift(st:POPENSSL_STACK; data:pointer):longint; cdecl; +begin + Result := OPENSSL_sk_unshift(st,data); +end; + +function _sk_shift(st:POPENSSL_STACK):pointer; cdecl; +begin + Result := OPENSSL_sk_shift(st); +end; + +function _sk_pop(st:POPENSSL_STACK):pointer; cdecl; +begin + Result := OPENSSL_sk_pop(st); +end; + +procedure _sk_zero(st:POPENSSL_STACK); cdecl; +begin + OPENSSL_sk_zero(st); +end; + +function _sk_set_cmp_func(sk:POPENSSL_STACK; cmp:TOPENSSL_sk_compfunc):TOPENSSL_sk_compfunc; cdecl; +begin + Result := OPENSSL_sk_set_cmp_func(sk,cmp); +end; + +function _sk_dup(st:POPENSSL_STACK):POPENSSL_STACK; cdecl; +begin + Result := OPENSSL_sk_dup(st); +end; + +procedure _sk_sort(st:POPENSSL_STACK); cdecl; +begin + OPENSSL_sk_sort(st); +end; + +function _sk_is_sorted(st:POPENSSL_STACK):longint; cdecl; +begin + Result := OPENSSL_sk_is_sorted(st); +end; + + + +{$WARN NO_RETVAL OFF} +function ERR_OPENSSL_sk_num(_para1:POPENSSL_STACK):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_num'); +end; + + +function ERR_OPENSSL_sk_value(_para1:POPENSSL_STACK; _para2:longint):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_value'); +end; + + +function ERR_OPENSSL_sk_set(st:POPENSSL_STACK; i:longint; data:pointer):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_set'); +end; + + +function ERR_OPENSSL_sk_new(cmp:TOPENSSL_sk_compfunc):POPENSSL_STACK; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_new'); +end; + + +function ERR_OPENSSL_sk_new_null:POPENSSL_STACK; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_new_null'); +end; + + +function ERR_OPENSSL_sk_new_reserve(c:TOPENSSL_sk_compfunc; n:longint):POPENSSL_STACK; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_new_reserve'); +end; + + +function ERR_OPENSSL_sk_reserve(st:POPENSSL_STACK; n:longint):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_reserve'); +end; + + +procedure ERR_OPENSSL_sk_free(_para1:POPENSSL_STACK); +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_free'); +end; + + +procedure ERR_OPENSSL_sk_pop_free(st:POPENSSL_STACK; func:TOPENSSL_sk_freefunc); +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_pop_free'); +end; + + +function ERR_OPENSSL_sk_deep_copy(_para1:POPENSSL_STACK; c:TOPENSSL_sk_copyfunc; f:TOPENSSL_sk_freefunc):POPENSSL_STACK; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_deep_copy'); +end; + + +function ERR_OPENSSL_sk_insert(sk:POPENSSL_STACK; data:pointer; where:longint):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_insert'); +end; + + +function ERR_OPENSSL_sk_delete(st:POPENSSL_STACK; loc:longint):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_delete'); +end; + + +function ERR_OPENSSL_sk_delete_ptr(st:POPENSSL_STACK; p:pointer):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_delete_ptr'); +end; + + +function ERR_OPENSSL_sk_find(st:POPENSSL_STACK; data:pointer):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_find'); +end; + + +function ERR_OPENSSL_sk_find_ex(st:POPENSSL_STACK; data:pointer):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_find_ex'); +end; + + +function ERR_OPENSSL_sk_push(st:POPENSSL_STACK; data:pointer):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_push'); +end; + + +function ERR_OPENSSL_sk_unshift(st:POPENSSL_STACK; data:pointer):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_unshift'); +end; + + +function ERR_OPENSSL_sk_shift(st:POPENSSL_STACK):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_shift'); +end; + + +function ERR_OPENSSL_sk_pop(st:POPENSSL_STACK):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_pop'); +end; + + +procedure ERR_OPENSSL_sk_zero(st:POPENSSL_STACK); +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_zero'); +end; + + +function ERR_OPENSSL_sk_set_cmp_func(sk:POPENSSL_STACK; cmp:TOPENSSL_sk_compfunc):TOPENSSL_sk_compfunc; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_set_cmp_func'); +end; + + +function ERR_OPENSSL_sk_dup(st:POPENSSL_STACK):POPENSSL_STACK; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_dup'); +end; + + +procedure ERR_OPENSSL_sk_sort(st:POPENSSL_STACK); +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_sort'); +end; + + +function ERR_OPENSSL_sk_is_sorted(st:POPENSSL_STACK):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('OPENSSL_sk_is_sorted'); +end; + + +function ERR_sk_num(_para1:POPENSSL_STACK):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_num'); +end; + + +function ERR_sk_value(_para1:POPENSSL_STACK; _para2:longint):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_value'); +end; + + +function ERR_sk_set(st:POPENSSL_STACK; i:longint; data:pointer):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_set'); +end; + + +function ERR_sk_new(cmp:TOPENSSL_sk_compfunc):POPENSSL_STACK; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_new'); +end; + + +function ERR_sk_new_null:POPENSSL_STACK; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_new_null'); +end; + + +function ERR_sk_new_reserve(c:TOPENSSL_sk_compfunc; n:longint):POPENSSL_STACK; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_new_reserve'); +end; + + +function ERR_sk_reserve(st:POPENSSL_STACK; n:longint):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_reserve'); +end; + + +procedure ERR_sk_free(_para1:POPENSSL_STACK); +begin + EIdAPIFunctionNotPresent.RaiseException('sk_free'); +end; + + +procedure ERR_sk_pop_free(st:POPENSSL_STACK; func:TOPENSSL_sk_freefunc); +begin + EIdAPIFunctionNotPresent.RaiseException('sk_pop_free'); +end; + + +function ERR_sk_deep_copy(_para1:POPENSSL_STACK; c:TOPENSSL_sk_copyfunc; f:TOPENSSL_sk_freefunc):POPENSSL_STACK; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_deep_copy'); +end; + + +function ERR_sk_insert(sk:POPENSSL_STACK; data:pointer; where:longint):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_insert'); +end; + + +function ERR_sk_delete(st:POPENSSL_STACK; loc:longint):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_delete'); +end; + + +function ERR_sk_delete_ptr(st:POPENSSL_STACK; p:pointer):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_delete_ptr'); +end; + + +function ERR_sk_find(st:POPENSSL_STACK; data:pointer):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_find'); +end; + + +function ERR_sk_find_ex(st:POPENSSL_STACK; data:pointer):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_find_ex'); +end; + + +function ERR_sk_push(st:POPENSSL_STACK; data:pointer):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_push'); +end; + + +function ERR_sk_unshift(st:POPENSSL_STACK; data:pointer):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_unshift'); +end; + + +function ERR_sk_shift(st:POPENSSL_STACK):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_shift'); +end; + + +function ERR_sk_pop(st:POPENSSL_STACK):pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_pop'); +end; + + +procedure ERR_sk_zero(st:POPENSSL_STACK); +begin + EIdAPIFunctionNotPresent.RaiseException('sk_zero'); +end; + + +function ERR_sk_set_cmp_func(sk:POPENSSL_STACK; cmp:TOPENSSL_sk_compfunc):TOPENSSL_sk_compfunc; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_set_cmp_func'); +end; + + +function ERR_sk_dup(st:POPENSSL_STACK):POPENSSL_STACK; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_dup'); +end; + + +procedure ERR_sk_sort(st:POPENSSL_STACK); +begin + EIdAPIFunctionNotPresent.RaiseException('sk_sort'); +end; + + +function ERR_sk_is_sorted(st:POPENSSL_STACK):longint; +begin + EIdAPIFunctionNotPresent.RaiseException('sk_is_sorted'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + OPENSSL_sk_num := LoadFunction('OPENSSL_sk_num',nil); {introduced 1.1.0} + OPENSSL_sk_value := LoadFunction('OPENSSL_sk_value',nil); {introduced 1.1.0} + OPENSSL_sk_set := LoadFunction('OPENSSL_sk_set',nil); {introduced 1.1.0} + OPENSSL_sk_new := LoadFunction('OPENSSL_sk_new',nil); {introduced 1.1.0} + OPENSSL_sk_new_null := LoadFunction('OPENSSL_sk_new_null',nil); {introduced 1.1.0} + OPENSSL_sk_new_reserve := LoadFunction('OPENSSL_sk_new_reserve',nil); {introduced 1.1.0} + OPENSSL_sk_reserve := LoadFunction('OPENSSL_sk_reserve',nil); {introduced 1.1.0} + OPENSSL_sk_free := LoadFunction('OPENSSL_sk_free',nil); {introduced 1.1.0} + OPENSSL_sk_pop_free := LoadFunction('OPENSSL_sk_pop_free',nil); {introduced 1.1.0} + OPENSSL_sk_deep_copy := LoadFunction('OPENSSL_sk_deep_copy',nil); {introduced 1.1.0} + OPENSSL_sk_insert := LoadFunction('OPENSSL_sk_insert',nil); {introduced 1.1.0} + OPENSSL_sk_delete := LoadFunction('OPENSSL_sk_delete',nil); {introduced 1.1.0} + OPENSSL_sk_delete_ptr := LoadFunction('OPENSSL_sk_delete_ptr',nil); {introduced 1.1.0} + OPENSSL_sk_find := LoadFunction('OPENSSL_sk_find',nil); {introduced 1.1.0} + OPENSSL_sk_find_ex := LoadFunction('OPENSSL_sk_find_ex',nil); {introduced 1.1.0} + OPENSSL_sk_push := LoadFunction('OPENSSL_sk_push',nil); {introduced 1.1.0} + OPENSSL_sk_unshift := LoadFunction('OPENSSL_sk_unshift',nil); {introduced 1.1.0} + OPENSSL_sk_shift := LoadFunction('OPENSSL_sk_shift',nil); {introduced 1.1.0} + OPENSSL_sk_pop := LoadFunction('OPENSSL_sk_pop',nil); {introduced 1.1.0} + OPENSSL_sk_zero := LoadFunction('OPENSSL_sk_zero',nil); {introduced 1.1.0} + OPENSSL_sk_set_cmp_func := LoadFunction('OPENSSL_sk_set_cmp_func',nil); {introduced 1.1.0} + OPENSSL_sk_dup := LoadFunction('OPENSSL_sk_dup',nil); {introduced 1.1.0} + OPENSSL_sk_sort := LoadFunction('OPENSSL_sk_sort',nil); {introduced 1.1.0} + OPENSSL_sk_is_sorted := LoadFunction('OPENSSL_sk_is_sorted',nil); {introduced 1.1.0} + sk_num := LoadFunction('sk_num',nil); {removed 1.1.0} + sk_value := LoadFunction('sk_value',nil); {removed 1.1.0} + sk_set := LoadFunction('sk_set',nil); {removed 1.1.0} + sk_new := LoadFunction('sk_new',nil); {removed 1.1.0} + sk_new_null := LoadFunction('sk_new_null',nil); {removed 1.1.0} + sk_new_reserve := LoadFunction('sk_new_reserve',nil); {removed 1.0.0} + sk_reserve := LoadFunction('sk_reserve',nil); {removed 1.0.0} + sk_free := LoadFunction('sk_free',nil); {removed 1.1.0} + sk_pop_free := LoadFunction('sk_pop_free',nil); {removed 1.1.0} + sk_deep_copy := LoadFunction('sk_deep_copy',nil); {removed 1.1.0} + sk_insert := LoadFunction('sk_insert',nil); {removed 1.1.0} + sk_delete := LoadFunction('sk_delete',nil); {removed 1.1.0} + sk_delete_ptr := LoadFunction('sk_delete_ptr',nil); {removed 1.1.0} + sk_find := LoadFunction('sk_find',nil); {removed 1.1.0} + sk_find_ex := LoadFunction('sk_find_ex',nil); {removed 1.1.0} + sk_push := LoadFunction('sk_push',nil); {removed 1.1.0} + sk_unshift := LoadFunction('sk_unshift',nil); {removed 1.1.0} + sk_shift := LoadFunction('sk_shift',nil); {removed 1.1.0} + sk_pop := LoadFunction('sk_pop',nil); {removed 1.1.0} + sk_zero := LoadFunction('sk_zero',nil); {removed 1.1.0} + sk_set_cmp_func := LoadFunction('sk_set_cmp_func',nil); {removed 1.1.0} + sk_dup := LoadFunction('sk_dup',nil); {removed 1.1.0} + sk_sort := LoadFunction('sk_sort',nil); {removed 1.1.0} + sk_is_sorted := LoadFunction('sk_is_sorted',nil); {removed 1.1.0} + if not assigned(OPENSSL_sk_num) then + begin + {$if declared(OPENSSL_sk_num_introduced)} + if LibVersion < OPENSSL_sk_num_introduced then + {$if declared(FC_OPENSSL_sk_num)} + OPENSSL_sk_num := @FC_OPENSSL_sk_num + {$else} + OPENSSL_sk_num := @ERR_OPENSSL_sk_num + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_num_removed)} + if OPENSSL_sk_num_removed <= LibVersion then + {$if declared(_OPENSSL_sk_num)} + OPENSSL_sk_num := @_OPENSSL_sk_num + {$else} + {$IF declared(ERR_OPENSSL_sk_num)} + OPENSSL_sk_num := @ERR_OPENSSL_sk_num + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_num) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_num'); + end; + + + if not assigned(OPENSSL_sk_value) then + begin + {$if declared(OPENSSL_sk_value_introduced)} + if LibVersion < OPENSSL_sk_value_introduced then + {$if declared(FC_OPENSSL_sk_value)} + OPENSSL_sk_value := @FC_OPENSSL_sk_value + {$else} + OPENSSL_sk_value := @ERR_OPENSSL_sk_value + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_value_removed)} + if OPENSSL_sk_value_removed <= LibVersion then + {$if declared(_OPENSSL_sk_value)} + OPENSSL_sk_value := @_OPENSSL_sk_value + {$else} + {$IF declared(ERR_OPENSSL_sk_value)} + OPENSSL_sk_value := @ERR_OPENSSL_sk_value + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_value) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_value'); + end; + + + if not assigned(OPENSSL_sk_set) then + begin + {$if declared(OPENSSL_sk_set_introduced)} + if LibVersion < OPENSSL_sk_set_introduced then + {$if declared(FC_OPENSSL_sk_set)} + OPENSSL_sk_set := @FC_OPENSSL_sk_set + {$else} + OPENSSL_sk_set := @ERR_OPENSSL_sk_set + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_set_removed)} + if OPENSSL_sk_set_removed <= LibVersion then + {$if declared(_OPENSSL_sk_set)} + OPENSSL_sk_set := @_OPENSSL_sk_set + {$else} + {$IF declared(ERR_OPENSSL_sk_set)} + OPENSSL_sk_set := @ERR_OPENSSL_sk_set + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_set) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_set'); + end; + + + if not assigned(OPENSSL_sk_new) then + begin + {$if declared(OPENSSL_sk_new_introduced)} + if LibVersion < OPENSSL_sk_new_introduced then + {$if declared(FC_OPENSSL_sk_new)} + OPENSSL_sk_new := @FC_OPENSSL_sk_new + {$else} + OPENSSL_sk_new := @ERR_OPENSSL_sk_new + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_new_removed)} + if OPENSSL_sk_new_removed <= LibVersion then + {$if declared(_OPENSSL_sk_new)} + OPENSSL_sk_new := @_OPENSSL_sk_new + {$else} + {$IF declared(ERR_OPENSSL_sk_new)} + OPENSSL_sk_new := @ERR_OPENSSL_sk_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_new) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_new'); + end; + + + if not assigned(OPENSSL_sk_new_null) then + begin + {$if declared(OPENSSL_sk_new_null_introduced)} + if LibVersion < OPENSSL_sk_new_null_introduced then + {$if declared(FC_OPENSSL_sk_new_null)} + OPENSSL_sk_new_null := @FC_OPENSSL_sk_new_null + {$else} + OPENSSL_sk_new_null := @ERR_OPENSSL_sk_new_null + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_new_null_removed)} + if OPENSSL_sk_new_null_removed <= LibVersion then + {$if declared(_OPENSSL_sk_new_null)} + OPENSSL_sk_new_null := @_OPENSSL_sk_new_null + {$else} + {$IF declared(ERR_OPENSSL_sk_new_null)} + OPENSSL_sk_new_null := @ERR_OPENSSL_sk_new_null + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_new_null) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_new_null'); + end; + + + if not assigned(OPENSSL_sk_new_reserve) then + begin + {$if declared(OPENSSL_sk_new_reserve_introduced)} + if LibVersion < OPENSSL_sk_new_reserve_introduced then + {$if declared(FC_OPENSSL_sk_new_reserve)} + OPENSSL_sk_new_reserve := @FC_OPENSSL_sk_new_reserve + {$else} + OPENSSL_sk_new_reserve := @ERR_OPENSSL_sk_new_reserve + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_new_reserve_removed)} + if OPENSSL_sk_new_reserve_removed <= LibVersion then + {$if declared(_OPENSSL_sk_new_reserve)} + OPENSSL_sk_new_reserve := @_OPENSSL_sk_new_reserve + {$else} + {$IF declared(ERR_OPENSSL_sk_new_reserve)} + OPENSSL_sk_new_reserve := @ERR_OPENSSL_sk_new_reserve + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_new_reserve) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_new_reserve'); + end; + + + if not assigned(OPENSSL_sk_reserve) then + begin + {$if declared(OPENSSL_sk_reserve_introduced)} + if LibVersion < OPENSSL_sk_reserve_introduced then + {$if declared(FC_OPENSSL_sk_reserve)} + OPENSSL_sk_reserve := @FC_OPENSSL_sk_reserve + {$else} + OPENSSL_sk_reserve := @ERR_OPENSSL_sk_reserve + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_reserve_removed)} + if OPENSSL_sk_reserve_removed <= LibVersion then + {$if declared(_OPENSSL_sk_reserve)} + OPENSSL_sk_reserve := @_OPENSSL_sk_reserve + {$else} + {$IF declared(ERR_OPENSSL_sk_reserve)} + OPENSSL_sk_reserve := @ERR_OPENSSL_sk_reserve + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_reserve) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_reserve'); + end; + + + if not assigned(OPENSSL_sk_free) then + begin + {$if declared(OPENSSL_sk_free_introduced)} + if LibVersion < OPENSSL_sk_free_introduced then + {$if declared(FC_OPENSSL_sk_free)} + OPENSSL_sk_free := @FC_OPENSSL_sk_free + {$else} + OPENSSL_sk_free := @ERR_OPENSSL_sk_free + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_free_removed)} + if OPENSSL_sk_free_removed <= LibVersion then + {$if declared(_OPENSSL_sk_free)} + OPENSSL_sk_free := @_OPENSSL_sk_free + {$else} + {$IF declared(ERR_OPENSSL_sk_free)} + OPENSSL_sk_free := @ERR_OPENSSL_sk_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_free) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_free'); + end; + + + if not assigned(OPENSSL_sk_pop_free) then + begin + {$if declared(OPENSSL_sk_pop_free_introduced)} + if LibVersion < OPENSSL_sk_pop_free_introduced then + {$if declared(FC_OPENSSL_sk_pop_free)} + OPENSSL_sk_pop_free := @FC_OPENSSL_sk_pop_free + {$else} + OPENSSL_sk_pop_free := @ERR_OPENSSL_sk_pop_free + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_pop_free_removed)} + if OPENSSL_sk_pop_free_removed <= LibVersion then + {$if declared(_OPENSSL_sk_pop_free)} + OPENSSL_sk_pop_free := @_OPENSSL_sk_pop_free + {$else} + {$IF declared(ERR_OPENSSL_sk_pop_free)} + OPENSSL_sk_pop_free := @ERR_OPENSSL_sk_pop_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_pop_free) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_pop_free'); + end; + + + if not assigned(OPENSSL_sk_deep_copy) then + begin + {$if declared(OPENSSL_sk_deep_copy_introduced)} + if LibVersion < OPENSSL_sk_deep_copy_introduced then + {$if declared(FC_OPENSSL_sk_deep_copy)} + OPENSSL_sk_deep_copy := @FC_OPENSSL_sk_deep_copy + {$else} + OPENSSL_sk_deep_copy := @ERR_OPENSSL_sk_deep_copy + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_deep_copy_removed)} + if OPENSSL_sk_deep_copy_removed <= LibVersion then + {$if declared(_OPENSSL_sk_deep_copy)} + OPENSSL_sk_deep_copy := @_OPENSSL_sk_deep_copy + {$else} + {$IF declared(ERR_OPENSSL_sk_deep_copy)} + OPENSSL_sk_deep_copy := @ERR_OPENSSL_sk_deep_copy + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_deep_copy) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_deep_copy'); + end; + + + if not assigned(OPENSSL_sk_insert) then + begin + {$if declared(OPENSSL_sk_insert_introduced)} + if LibVersion < OPENSSL_sk_insert_introduced then + {$if declared(FC_OPENSSL_sk_insert)} + OPENSSL_sk_insert := @FC_OPENSSL_sk_insert + {$else} + OPENSSL_sk_insert := @ERR_OPENSSL_sk_insert + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_insert_removed)} + if OPENSSL_sk_insert_removed <= LibVersion then + {$if declared(_OPENSSL_sk_insert)} + OPENSSL_sk_insert := @_OPENSSL_sk_insert + {$else} + {$IF declared(ERR_OPENSSL_sk_insert)} + OPENSSL_sk_insert := @ERR_OPENSSL_sk_insert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_insert) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_insert'); + end; + + + if not assigned(OPENSSL_sk_delete) then + begin + {$if declared(OPENSSL_sk_delete_introduced)} + if LibVersion < OPENSSL_sk_delete_introduced then + {$if declared(FC_OPENSSL_sk_delete)} + OPENSSL_sk_delete := @FC_OPENSSL_sk_delete + {$else} + OPENSSL_sk_delete := @ERR_OPENSSL_sk_delete + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_delete_removed)} + if OPENSSL_sk_delete_removed <= LibVersion then + {$if declared(_OPENSSL_sk_delete)} + OPENSSL_sk_delete := @_OPENSSL_sk_delete + {$else} + {$IF declared(ERR_OPENSSL_sk_delete)} + OPENSSL_sk_delete := @ERR_OPENSSL_sk_delete + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_delete) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_delete'); + end; + + + if not assigned(OPENSSL_sk_delete_ptr) then + begin + {$if declared(OPENSSL_sk_delete_ptr_introduced)} + if LibVersion < OPENSSL_sk_delete_ptr_introduced then + {$if declared(FC_OPENSSL_sk_delete_ptr)} + OPENSSL_sk_delete_ptr := @FC_OPENSSL_sk_delete_ptr + {$else} + OPENSSL_sk_delete_ptr := @ERR_OPENSSL_sk_delete_ptr + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_delete_ptr_removed)} + if OPENSSL_sk_delete_ptr_removed <= LibVersion then + {$if declared(_OPENSSL_sk_delete_ptr)} + OPENSSL_sk_delete_ptr := @_OPENSSL_sk_delete_ptr + {$else} + {$IF declared(ERR_OPENSSL_sk_delete_ptr)} + OPENSSL_sk_delete_ptr := @ERR_OPENSSL_sk_delete_ptr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_delete_ptr) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_delete_ptr'); + end; + + + if not assigned(OPENSSL_sk_find) then + begin + {$if declared(OPENSSL_sk_find_introduced)} + if LibVersion < OPENSSL_sk_find_introduced then + {$if declared(FC_OPENSSL_sk_find)} + OPENSSL_sk_find := @FC_OPENSSL_sk_find + {$else} + OPENSSL_sk_find := @ERR_OPENSSL_sk_find + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_find_removed)} + if OPENSSL_sk_find_removed <= LibVersion then + {$if declared(_OPENSSL_sk_find)} + OPENSSL_sk_find := @_OPENSSL_sk_find + {$else} + {$IF declared(ERR_OPENSSL_sk_find)} + OPENSSL_sk_find := @ERR_OPENSSL_sk_find + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_find) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_find'); + end; + + + if not assigned(OPENSSL_sk_find_ex) then + begin + {$if declared(OPENSSL_sk_find_ex_introduced)} + if LibVersion < OPENSSL_sk_find_ex_introduced then + {$if declared(FC_OPENSSL_sk_find_ex)} + OPENSSL_sk_find_ex := @FC_OPENSSL_sk_find_ex + {$else} + OPENSSL_sk_find_ex := @ERR_OPENSSL_sk_find_ex + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_find_ex_removed)} + if OPENSSL_sk_find_ex_removed <= LibVersion then + {$if declared(_OPENSSL_sk_find_ex)} + OPENSSL_sk_find_ex := @_OPENSSL_sk_find_ex + {$else} + {$IF declared(ERR_OPENSSL_sk_find_ex)} + OPENSSL_sk_find_ex := @ERR_OPENSSL_sk_find_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_find_ex) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_find_ex'); + end; + + + if not assigned(OPENSSL_sk_push) then + begin + {$if declared(OPENSSL_sk_push_introduced)} + if LibVersion < OPENSSL_sk_push_introduced then + {$if declared(FC_OPENSSL_sk_push)} + OPENSSL_sk_push := @FC_OPENSSL_sk_push + {$else} + OPENSSL_sk_push := @ERR_OPENSSL_sk_push + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_push_removed)} + if OPENSSL_sk_push_removed <= LibVersion then + {$if declared(_OPENSSL_sk_push)} + OPENSSL_sk_push := @_OPENSSL_sk_push + {$else} + {$IF declared(ERR_OPENSSL_sk_push)} + OPENSSL_sk_push := @ERR_OPENSSL_sk_push + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_push) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_push'); + end; + + + if not assigned(OPENSSL_sk_unshift) then + begin + {$if declared(OPENSSL_sk_unshift_introduced)} + if LibVersion < OPENSSL_sk_unshift_introduced then + {$if declared(FC_OPENSSL_sk_unshift)} + OPENSSL_sk_unshift := @FC_OPENSSL_sk_unshift + {$else} + OPENSSL_sk_unshift := @ERR_OPENSSL_sk_unshift + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_unshift_removed)} + if OPENSSL_sk_unshift_removed <= LibVersion then + {$if declared(_OPENSSL_sk_unshift)} + OPENSSL_sk_unshift := @_OPENSSL_sk_unshift + {$else} + {$IF declared(ERR_OPENSSL_sk_unshift)} + OPENSSL_sk_unshift := @ERR_OPENSSL_sk_unshift + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_unshift) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_unshift'); + end; + + + if not assigned(OPENSSL_sk_shift) then + begin + {$if declared(OPENSSL_sk_shift_introduced)} + if LibVersion < OPENSSL_sk_shift_introduced then + {$if declared(FC_OPENSSL_sk_shift)} + OPENSSL_sk_shift := @FC_OPENSSL_sk_shift + {$else} + OPENSSL_sk_shift := @ERR_OPENSSL_sk_shift + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_shift_removed)} + if OPENSSL_sk_shift_removed <= LibVersion then + {$if declared(_OPENSSL_sk_shift)} + OPENSSL_sk_shift := @_OPENSSL_sk_shift + {$else} + {$IF declared(ERR_OPENSSL_sk_shift)} + OPENSSL_sk_shift := @ERR_OPENSSL_sk_shift + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_shift) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_shift'); + end; + + + if not assigned(OPENSSL_sk_pop) then + begin + {$if declared(OPENSSL_sk_pop_introduced)} + if LibVersion < OPENSSL_sk_pop_introduced then + {$if declared(FC_OPENSSL_sk_pop)} + OPENSSL_sk_pop := @FC_OPENSSL_sk_pop + {$else} + OPENSSL_sk_pop := @ERR_OPENSSL_sk_pop + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_pop_removed)} + if OPENSSL_sk_pop_removed <= LibVersion then + {$if declared(_OPENSSL_sk_pop)} + OPENSSL_sk_pop := @_OPENSSL_sk_pop + {$else} + {$IF declared(ERR_OPENSSL_sk_pop)} + OPENSSL_sk_pop := @ERR_OPENSSL_sk_pop + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_pop) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_pop'); + end; + + + if not assigned(OPENSSL_sk_zero) then + begin + {$if declared(OPENSSL_sk_zero_introduced)} + if LibVersion < OPENSSL_sk_zero_introduced then + {$if declared(FC_OPENSSL_sk_zero)} + OPENSSL_sk_zero := @FC_OPENSSL_sk_zero + {$else} + OPENSSL_sk_zero := @ERR_OPENSSL_sk_zero + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_zero_removed)} + if OPENSSL_sk_zero_removed <= LibVersion then + {$if declared(_OPENSSL_sk_zero)} + OPENSSL_sk_zero := @_OPENSSL_sk_zero + {$else} + {$IF declared(ERR_OPENSSL_sk_zero)} + OPENSSL_sk_zero := @ERR_OPENSSL_sk_zero + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_zero) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_zero'); + end; + + + if not assigned(OPENSSL_sk_set_cmp_func) then + begin + {$if declared(OPENSSL_sk_set_cmp_func_introduced)} + if LibVersion < OPENSSL_sk_set_cmp_func_introduced then + {$if declared(FC_OPENSSL_sk_set_cmp_func)} + OPENSSL_sk_set_cmp_func := @FC_OPENSSL_sk_set_cmp_func + {$else} + OPENSSL_sk_set_cmp_func := @ERR_OPENSSL_sk_set_cmp_func + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_set_cmp_func_removed)} + if OPENSSL_sk_set_cmp_func_removed <= LibVersion then + {$if declared(_OPENSSL_sk_set_cmp_func)} + OPENSSL_sk_set_cmp_func := @_OPENSSL_sk_set_cmp_func + {$else} + {$IF declared(ERR_OPENSSL_sk_set_cmp_func)} + OPENSSL_sk_set_cmp_func := @ERR_OPENSSL_sk_set_cmp_func + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_set_cmp_func) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_set_cmp_func'); + end; + + + if not assigned(OPENSSL_sk_dup) then + begin + {$if declared(OPENSSL_sk_dup_introduced)} + if LibVersion < OPENSSL_sk_dup_introduced then + {$if declared(FC_OPENSSL_sk_dup)} + OPENSSL_sk_dup := @FC_OPENSSL_sk_dup + {$else} + OPENSSL_sk_dup := @ERR_OPENSSL_sk_dup + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_dup_removed)} + if OPENSSL_sk_dup_removed <= LibVersion then + {$if declared(_OPENSSL_sk_dup)} + OPENSSL_sk_dup := @_OPENSSL_sk_dup + {$else} + {$IF declared(ERR_OPENSSL_sk_dup)} + OPENSSL_sk_dup := @ERR_OPENSSL_sk_dup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_dup) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_dup'); + end; + + + if not assigned(OPENSSL_sk_sort) then + begin + {$if declared(OPENSSL_sk_sort_introduced)} + if LibVersion < OPENSSL_sk_sort_introduced then + {$if declared(FC_OPENSSL_sk_sort)} + OPENSSL_sk_sort := @FC_OPENSSL_sk_sort + {$else} + OPENSSL_sk_sort := @ERR_OPENSSL_sk_sort + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_sort_removed)} + if OPENSSL_sk_sort_removed <= LibVersion then + {$if declared(_OPENSSL_sk_sort)} + OPENSSL_sk_sort := @_OPENSSL_sk_sort + {$else} + {$IF declared(ERR_OPENSSL_sk_sort)} + OPENSSL_sk_sort := @ERR_OPENSSL_sk_sort + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_sort) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_sort'); + end; + + + if not assigned(OPENSSL_sk_is_sorted) then + begin + {$if declared(OPENSSL_sk_is_sorted_introduced)} + if LibVersion < OPENSSL_sk_is_sorted_introduced then + {$if declared(FC_OPENSSL_sk_is_sorted)} + OPENSSL_sk_is_sorted := @FC_OPENSSL_sk_is_sorted + {$else} + OPENSSL_sk_is_sorted := @ERR_OPENSSL_sk_is_sorted + {$ifend} + else + {$ifend} + {$if declared(OPENSSL_sk_is_sorted_removed)} + if OPENSSL_sk_is_sorted_removed <= LibVersion then + {$if declared(_OPENSSL_sk_is_sorted)} + OPENSSL_sk_is_sorted := @_OPENSSL_sk_is_sorted + {$else} + {$IF declared(ERR_OPENSSL_sk_is_sorted)} + OPENSSL_sk_is_sorted := @ERR_OPENSSL_sk_is_sorted + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(OPENSSL_sk_is_sorted) and Assigned(AFailed) then + AFailed.Add('OPENSSL_sk_is_sorted'); + end; + + + if not assigned(sk_num) then + begin + {$if declared(sk_num_introduced)} + if LibVersion < sk_num_introduced then + {$if declared(FC_sk_num)} + sk_num := @FC_sk_num + {$else} + sk_num := @ERR_sk_num + {$ifend} + else + {$ifend} + {$if declared(sk_num_removed)} + if sk_num_removed <= LibVersion then + {$if declared(_sk_num)} + sk_num := @_sk_num + {$else} + {$IF declared(ERR_sk_num)} + sk_num := @ERR_sk_num + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_num) and Assigned(AFailed) then + AFailed.Add('sk_num'); + end; + + + if not assigned(sk_value) then + begin + {$if declared(sk_value_introduced)} + if LibVersion < sk_value_introduced then + {$if declared(FC_sk_value)} + sk_value := @FC_sk_value + {$else} + sk_value := @ERR_sk_value + {$ifend} + else + {$ifend} + {$if declared(sk_value_removed)} + if sk_value_removed <= LibVersion then + {$if declared(_sk_value)} + sk_value := @_sk_value + {$else} + {$IF declared(ERR_sk_value)} + sk_value := @ERR_sk_value + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_value) and Assigned(AFailed) then + AFailed.Add('sk_value'); + end; + + + if not assigned(sk_set) then + begin + {$if declared(sk_set_introduced)} + if LibVersion < sk_set_introduced then + {$if declared(FC_sk_set)} + sk_set := @FC_sk_set + {$else} + sk_set := @ERR_sk_set + {$ifend} + else + {$ifend} + {$if declared(sk_set_removed)} + if sk_set_removed <= LibVersion then + {$if declared(_sk_set)} + sk_set := @_sk_set + {$else} + {$IF declared(ERR_sk_set)} + sk_set := @ERR_sk_set + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_set) and Assigned(AFailed) then + AFailed.Add('sk_set'); + end; + + + if not assigned(sk_new) then + begin + {$if declared(sk_new_introduced)} + if LibVersion < sk_new_introduced then + {$if declared(FC_sk_new)} + sk_new := @FC_sk_new + {$else} + sk_new := @ERR_sk_new + {$ifend} + else + {$ifend} + {$if declared(sk_new_removed)} + if sk_new_removed <= LibVersion then + {$if declared(_sk_new)} + sk_new := @_sk_new + {$else} + {$IF declared(ERR_sk_new)} + sk_new := @ERR_sk_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_new) and Assigned(AFailed) then + AFailed.Add('sk_new'); + end; + + + if not assigned(sk_new_null) then + begin + {$if declared(sk_new_null_introduced)} + if LibVersion < sk_new_null_introduced then + {$if declared(FC_sk_new_null)} + sk_new_null := @FC_sk_new_null + {$else} + sk_new_null := @ERR_sk_new_null + {$ifend} + else + {$ifend} + {$if declared(sk_new_null_removed)} + if sk_new_null_removed <= LibVersion then + {$if declared(_sk_new_null)} + sk_new_null := @_sk_new_null + {$else} + {$IF declared(ERR_sk_new_null)} + sk_new_null := @ERR_sk_new_null + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_new_null) and Assigned(AFailed) then + AFailed.Add('sk_new_null'); + end; + + + if not assigned(sk_new_reserve) then + begin + {$if declared(sk_new_reserve_introduced)} + if LibVersion < sk_new_reserve_introduced then + {$if declared(FC_sk_new_reserve)} + sk_new_reserve := @FC_sk_new_reserve + {$else} + sk_new_reserve := @ERR_sk_new_reserve + {$ifend} + else + {$ifend} + {$if declared(sk_new_reserve_removed)} + if sk_new_reserve_removed <= LibVersion then + {$if declared(_sk_new_reserve)} + sk_new_reserve := @_sk_new_reserve + {$else} + {$IF declared(ERR_sk_new_reserve)} + sk_new_reserve := @ERR_sk_new_reserve + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_new_reserve) and Assigned(AFailed) then + AFailed.Add('sk_new_reserve'); + end; + + + if not assigned(sk_reserve) then + begin + {$if declared(sk_reserve_introduced)} + if LibVersion < sk_reserve_introduced then + {$if declared(FC_sk_reserve)} + sk_reserve := @FC_sk_reserve + {$else} + sk_reserve := @ERR_sk_reserve + {$ifend} + else + {$ifend} + {$if declared(sk_reserve_removed)} + if sk_reserve_removed <= LibVersion then + {$if declared(_sk_reserve)} + sk_reserve := @_sk_reserve + {$else} + {$IF declared(ERR_sk_reserve)} + sk_reserve := @ERR_sk_reserve + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_reserve) and Assigned(AFailed) then + AFailed.Add('sk_reserve'); + end; + + + if not assigned(sk_free) then + begin + {$if declared(sk_free_introduced)} + if LibVersion < sk_free_introduced then + {$if declared(FC_sk_free)} + sk_free := @FC_sk_free + {$else} + sk_free := @ERR_sk_free + {$ifend} + else + {$ifend} + {$if declared(sk_free_removed)} + if sk_free_removed <= LibVersion then + {$if declared(_sk_free)} + sk_free := @_sk_free + {$else} + {$IF declared(ERR_sk_free)} + sk_free := @ERR_sk_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_free) and Assigned(AFailed) then + AFailed.Add('sk_free'); + end; + + + if not assigned(sk_pop_free) then + begin + {$if declared(sk_pop_free_introduced)} + if LibVersion < sk_pop_free_introduced then + {$if declared(FC_sk_pop_free)} + sk_pop_free := @FC_sk_pop_free + {$else} + sk_pop_free := @ERR_sk_pop_free + {$ifend} + else + {$ifend} + {$if declared(sk_pop_free_removed)} + if sk_pop_free_removed <= LibVersion then + {$if declared(_sk_pop_free)} + sk_pop_free := @_sk_pop_free + {$else} + {$IF declared(ERR_sk_pop_free)} + sk_pop_free := @ERR_sk_pop_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_pop_free) and Assigned(AFailed) then + AFailed.Add('sk_pop_free'); + end; + + + if not assigned(sk_deep_copy) then + begin + {$if declared(sk_deep_copy_introduced)} + if LibVersion < sk_deep_copy_introduced then + {$if declared(FC_sk_deep_copy)} + sk_deep_copy := @FC_sk_deep_copy + {$else} + sk_deep_copy := @ERR_sk_deep_copy + {$ifend} + else + {$ifend} + {$if declared(sk_deep_copy_removed)} + if sk_deep_copy_removed <= LibVersion then + {$if declared(_sk_deep_copy)} + sk_deep_copy := @_sk_deep_copy + {$else} + {$IF declared(ERR_sk_deep_copy)} + sk_deep_copy := @ERR_sk_deep_copy + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_deep_copy) and Assigned(AFailed) then + AFailed.Add('sk_deep_copy'); + end; + + + if not assigned(sk_insert) then + begin + {$if declared(sk_insert_introduced)} + if LibVersion < sk_insert_introduced then + {$if declared(FC_sk_insert)} + sk_insert := @FC_sk_insert + {$else} + sk_insert := @ERR_sk_insert + {$ifend} + else + {$ifend} + {$if declared(sk_insert_removed)} + if sk_insert_removed <= LibVersion then + {$if declared(_sk_insert)} + sk_insert := @_sk_insert + {$else} + {$IF declared(ERR_sk_insert)} + sk_insert := @ERR_sk_insert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_insert) and Assigned(AFailed) then + AFailed.Add('sk_insert'); + end; + + + if not assigned(sk_delete) then + begin + {$if declared(sk_delete_introduced)} + if LibVersion < sk_delete_introduced then + {$if declared(FC_sk_delete)} + sk_delete := @FC_sk_delete + {$else} + sk_delete := @ERR_sk_delete + {$ifend} + else + {$ifend} + {$if declared(sk_delete_removed)} + if sk_delete_removed <= LibVersion then + {$if declared(_sk_delete)} + sk_delete := @_sk_delete + {$else} + {$IF declared(ERR_sk_delete)} + sk_delete := @ERR_sk_delete + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_delete) and Assigned(AFailed) then + AFailed.Add('sk_delete'); + end; + + + if not assigned(sk_delete_ptr) then + begin + {$if declared(sk_delete_ptr_introduced)} + if LibVersion < sk_delete_ptr_introduced then + {$if declared(FC_sk_delete_ptr)} + sk_delete_ptr := @FC_sk_delete_ptr + {$else} + sk_delete_ptr := @ERR_sk_delete_ptr + {$ifend} + else + {$ifend} + {$if declared(sk_delete_ptr_removed)} + if sk_delete_ptr_removed <= LibVersion then + {$if declared(_sk_delete_ptr)} + sk_delete_ptr := @_sk_delete_ptr + {$else} + {$IF declared(ERR_sk_delete_ptr)} + sk_delete_ptr := @ERR_sk_delete_ptr + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_delete_ptr) and Assigned(AFailed) then + AFailed.Add('sk_delete_ptr'); + end; + + + if not assigned(sk_find) then + begin + {$if declared(sk_find_introduced)} + if LibVersion < sk_find_introduced then + {$if declared(FC_sk_find)} + sk_find := @FC_sk_find + {$else} + sk_find := @ERR_sk_find + {$ifend} + else + {$ifend} + {$if declared(sk_find_removed)} + if sk_find_removed <= LibVersion then + {$if declared(_sk_find)} + sk_find := @_sk_find + {$else} + {$IF declared(ERR_sk_find)} + sk_find := @ERR_sk_find + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_find) and Assigned(AFailed) then + AFailed.Add('sk_find'); + end; + + + if not assigned(sk_find_ex) then + begin + {$if declared(sk_find_ex_introduced)} + if LibVersion < sk_find_ex_introduced then + {$if declared(FC_sk_find_ex)} + sk_find_ex := @FC_sk_find_ex + {$else} + sk_find_ex := @ERR_sk_find_ex + {$ifend} + else + {$ifend} + {$if declared(sk_find_ex_removed)} + if sk_find_ex_removed <= LibVersion then + {$if declared(_sk_find_ex)} + sk_find_ex := @_sk_find_ex + {$else} + {$IF declared(ERR_sk_find_ex)} + sk_find_ex := @ERR_sk_find_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_find_ex) and Assigned(AFailed) then + AFailed.Add('sk_find_ex'); + end; + + + if not assigned(sk_push) then + begin + {$if declared(sk_push_introduced)} + if LibVersion < sk_push_introduced then + {$if declared(FC_sk_push)} + sk_push := @FC_sk_push + {$else} + sk_push := @ERR_sk_push + {$ifend} + else + {$ifend} + {$if declared(sk_push_removed)} + if sk_push_removed <= LibVersion then + {$if declared(_sk_push)} + sk_push := @_sk_push + {$else} + {$IF declared(ERR_sk_push)} + sk_push := @ERR_sk_push + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_push) and Assigned(AFailed) then + AFailed.Add('sk_push'); + end; + + + if not assigned(sk_unshift) then + begin + {$if declared(sk_unshift_introduced)} + if LibVersion < sk_unshift_introduced then + {$if declared(FC_sk_unshift)} + sk_unshift := @FC_sk_unshift + {$else} + sk_unshift := @ERR_sk_unshift + {$ifend} + else + {$ifend} + {$if declared(sk_unshift_removed)} + if sk_unshift_removed <= LibVersion then + {$if declared(_sk_unshift)} + sk_unshift := @_sk_unshift + {$else} + {$IF declared(ERR_sk_unshift)} + sk_unshift := @ERR_sk_unshift + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_unshift) and Assigned(AFailed) then + AFailed.Add('sk_unshift'); + end; + + + if not assigned(sk_shift) then + begin + {$if declared(sk_shift_introduced)} + if LibVersion < sk_shift_introduced then + {$if declared(FC_sk_shift)} + sk_shift := @FC_sk_shift + {$else} + sk_shift := @ERR_sk_shift + {$ifend} + else + {$ifend} + {$if declared(sk_shift_removed)} + if sk_shift_removed <= LibVersion then + {$if declared(_sk_shift)} + sk_shift := @_sk_shift + {$else} + {$IF declared(ERR_sk_shift)} + sk_shift := @ERR_sk_shift + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_shift) and Assigned(AFailed) then + AFailed.Add('sk_shift'); + end; + + + if not assigned(sk_pop) then + begin + {$if declared(sk_pop_introduced)} + if LibVersion < sk_pop_introduced then + {$if declared(FC_sk_pop)} + sk_pop := @FC_sk_pop + {$else} + sk_pop := @ERR_sk_pop + {$ifend} + else + {$ifend} + {$if declared(sk_pop_removed)} + if sk_pop_removed <= LibVersion then + {$if declared(_sk_pop)} + sk_pop := @_sk_pop + {$else} + {$IF declared(ERR_sk_pop)} + sk_pop := @ERR_sk_pop + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_pop) and Assigned(AFailed) then + AFailed.Add('sk_pop'); + end; + + + if not assigned(sk_zero) then + begin + {$if declared(sk_zero_introduced)} + if LibVersion < sk_zero_introduced then + {$if declared(FC_sk_zero)} + sk_zero := @FC_sk_zero + {$else} + sk_zero := @ERR_sk_zero + {$ifend} + else + {$ifend} + {$if declared(sk_zero_removed)} + if sk_zero_removed <= LibVersion then + {$if declared(_sk_zero)} + sk_zero := @_sk_zero + {$else} + {$IF declared(ERR_sk_zero)} + sk_zero := @ERR_sk_zero + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_zero) and Assigned(AFailed) then + AFailed.Add('sk_zero'); + end; + + + if not assigned(sk_set_cmp_func) then + begin + {$if declared(sk_set_cmp_func_introduced)} + if LibVersion < sk_set_cmp_func_introduced then + {$if declared(FC_sk_set_cmp_func)} + sk_set_cmp_func := @FC_sk_set_cmp_func + {$else} + sk_set_cmp_func := @ERR_sk_set_cmp_func + {$ifend} + else + {$ifend} + {$if declared(sk_set_cmp_func_removed)} + if sk_set_cmp_func_removed <= LibVersion then + {$if declared(_sk_set_cmp_func)} + sk_set_cmp_func := @_sk_set_cmp_func + {$else} + {$IF declared(ERR_sk_set_cmp_func)} + sk_set_cmp_func := @ERR_sk_set_cmp_func + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_set_cmp_func) and Assigned(AFailed) then + AFailed.Add('sk_set_cmp_func'); + end; + + + if not assigned(sk_dup) then + begin + {$if declared(sk_dup_introduced)} + if LibVersion < sk_dup_introduced then + {$if declared(FC_sk_dup)} + sk_dup := @FC_sk_dup + {$else} + sk_dup := @ERR_sk_dup + {$ifend} + else + {$ifend} + {$if declared(sk_dup_removed)} + if sk_dup_removed <= LibVersion then + {$if declared(_sk_dup)} + sk_dup := @_sk_dup + {$else} + {$IF declared(ERR_sk_dup)} + sk_dup := @ERR_sk_dup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_dup) and Assigned(AFailed) then + AFailed.Add('sk_dup'); + end; + + + if not assigned(sk_sort) then + begin + {$if declared(sk_sort_introduced)} + if LibVersion < sk_sort_introduced then + {$if declared(FC_sk_sort)} + sk_sort := @FC_sk_sort + {$else} + sk_sort := @ERR_sk_sort + {$ifend} + else + {$ifend} + {$if declared(sk_sort_removed)} + if sk_sort_removed <= LibVersion then + {$if declared(_sk_sort)} + sk_sort := @_sk_sort + {$else} + {$IF declared(ERR_sk_sort)} + sk_sort := @ERR_sk_sort + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_sort) and Assigned(AFailed) then + AFailed.Add('sk_sort'); + end; + + + if not assigned(sk_is_sorted) then + begin + {$if declared(sk_is_sorted_introduced)} + if LibVersion < sk_is_sorted_introduced then + {$if declared(FC_sk_is_sorted)} + sk_is_sorted := @FC_sk_is_sorted + {$else} + sk_is_sorted := @ERR_sk_is_sorted + {$ifend} + else + {$ifend} + {$if declared(sk_is_sorted_removed)} + if sk_is_sorted_removed <= LibVersion then + {$if declared(_sk_is_sorted)} + sk_is_sorted := @_sk_is_sorted + {$else} + {$IF declared(ERR_sk_is_sorted)} + sk_is_sorted := @ERR_sk_is_sorted + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(sk_is_sorted) and Assigned(AFailed) then + AFailed.Add('sk_is_sorted'); + end; + + +end; + +procedure Unload; +begin + OPENSSL_sk_num := nil; {introduced 1.1.0} + OPENSSL_sk_value := nil; {introduced 1.1.0} + OPENSSL_sk_set := nil; {introduced 1.1.0} + OPENSSL_sk_new := nil; {introduced 1.1.0} + OPENSSL_sk_new_null := nil; {introduced 1.1.0} + OPENSSL_sk_new_reserve := nil; {introduced 1.1.0} + OPENSSL_sk_reserve := nil; {introduced 1.1.0} + OPENSSL_sk_free := nil; {introduced 1.1.0} + OPENSSL_sk_pop_free := nil; {introduced 1.1.0} + OPENSSL_sk_deep_copy := nil; {introduced 1.1.0} + OPENSSL_sk_insert := nil; {introduced 1.1.0} + OPENSSL_sk_delete := nil; {introduced 1.1.0} + OPENSSL_sk_delete_ptr := nil; {introduced 1.1.0} + OPENSSL_sk_find := nil; {introduced 1.1.0} + OPENSSL_sk_find_ex := nil; {introduced 1.1.0} + OPENSSL_sk_push := nil; {introduced 1.1.0} + OPENSSL_sk_unshift := nil; {introduced 1.1.0} + OPENSSL_sk_shift := nil; {introduced 1.1.0} + OPENSSL_sk_pop := nil; {introduced 1.1.0} + OPENSSL_sk_zero := nil; {introduced 1.1.0} + OPENSSL_sk_set_cmp_func := nil; {introduced 1.1.0} + OPENSSL_sk_dup := nil; {introduced 1.1.0} + OPENSSL_sk_sort := nil; {introduced 1.1.0} + OPENSSL_sk_is_sorted := nil; {introduced 1.1.0} + sk_num := nil; {removed 1.1.0} + sk_value := nil; {removed 1.1.0} + sk_set := nil; {removed 1.1.0} + sk_new := nil; {removed 1.1.0} + sk_new_null := nil; {removed 1.1.0} + sk_new_reserve := nil; {removed 1.0.0} + sk_reserve := nil; {removed 1.0.0} + sk_free := nil; {removed 1.1.0} + sk_pop_free := nil; {removed 1.1.0} + sk_deep_copy := nil; {removed 1.1.0} + sk_insert := nil; {removed 1.1.0} + sk_delete := nil; {removed 1.1.0} + sk_delete_ptr := nil; {removed 1.1.0} + sk_find := nil; {removed 1.1.0} + sk_find_ex := nil; {removed 1.1.0} + sk_push := nil; {removed 1.1.0} + sk_unshift := nil; {removed 1.1.0} + sk_shift := nil; {removed 1.1.0} + sk_pop := nil; {removed 1.1.0} + sk_zero := nil; {removed 1.1.0} + sk_set_cmp_func := nil; {removed 1.1.0} + sk_dup := nil; {removed 1.1.0} + sk_sort := nil; {removed 1.1.0} + sk_is_sorted := nil; {removed 1.1.0} +end; +{$ELSE} +function sk_num(_para1:POPENSSL_STACK):longint; +begin + Result := OPENSSL_sk_num(_para1); +end; + +function sk_value(_para1:POPENSSL_STACK; _para2:longint):pointer; +begin + Result := OPENSSL_sk_value(_para1,_para2); +end; + +function sk_set(st:POPENSSL_STACK; i:longint; data:pointer):pointer; +begin + Result := OPENSSL_sk_set(st,i,data); +end; + +function sk_new(cmp:TOPENSSL_sk_compfunc):POPENSSL_STACK; +begin + Result := OPENSSL_sk_new(cmp); +end; + +function sk_new_null:POPENSSL_STACK; +begin + Result := OPENSSL_sk_new_null; +end; + +function sk_new_reserve(c:TOPENSSL_sk_compfunc; n:longint):POPENSSL_STACK; +begin + Result := OPENSSL_sk_new_reserve(c,n); +end; + +function sk_reserve(st:POPENSSL_STACK; n:longint):longint; +begin + Result := OPENSSL_sk_reserve(st,n); +end; + +procedure sk_free(_para1:POPENSSL_STACK); +begin + OPENSSL_sk_free(_para1); +end; + +procedure sk_pop_free(st:POPENSSL_STACK; func:TOPENSSL_sk_freefunc); +begin + OPENSSL_sk_pop_free(st, func); +end; + +function sk_deep_copy(_para1:POPENSSL_STACK; c:TOPENSSL_sk_copyfunc; f:TOPENSSL_sk_freefunc):POPENSSL_STACK; +begin + Result := OPENSSL_sk_deep_copy(_para1,c,f); +end; + +function sk_insert(sk:POPENSSL_STACK; data:pointer; where:longint):longint; +begin + Result := OPENSSL_sk_insert(sk,data,where); +end; + +function sk_delete(st:POPENSSL_STACK; loc:longint):pointer; +begin + Result := OPENSSL_sk_delete(st,loc); +end; + +function sk_delete_ptr(st:POPENSSL_STACK; p:pointer):pointer; +begin + Result := OPENSSL_sk_delete_ptr(st,p); +end; + +function sk_find(st:POPENSSL_STACK; data:pointer):longint; +begin + Result := OPENSSL_sk_find(st,data); +end; + +function sk_find_ex(st:POPENSSL_STACK; data:pointer):longint; +begin + Result := OPENSSL_sk_find_ex(st,data); +end; + +function sk_push(st:POPENSSL_STACK; data:pointer):longint; +begin + Result := OPENSSL_sk_push(st,data); +end; + +function sk_unshift(st:POPENSSL_STACK; data:pointer):longint; +begin + Result := OPENSSL_sk_unshift(st,data); +end; + +function sk_shift(st:POPENSSL_STACK):pointer; +begin + Result := OPENSSL_sk_shift(st); +end; + +function sk_pop(st:POPENSSL_STACK):pointer; +begin + Result := OPENSSL_sk_pop(st); +end; + +procedure sk_zero(st:POPENSSL_STACK); +begin + OPENSSL_sk_zero(st); +end; + +function sk_set_cmp_func(sk:POPENSSL_STACK; cmp:TOPENSSL_sk_compfunc):TOPENSSL_sk_compfunc; +begin + Result := OPENSSL_sk_set_cmp_func(sk,cmp); +end; + +function sk_dup(st:POPENSSL_STACK):POPENSSL_STACK; +begin + Result := OPENSSL_sk_dup(st); +end; + +procedure sk_sort(st:POPENSSL_STACK); +begin + OPENSSL_sk_sort(st); +end; + +function sk_is_sorted(st:POPENSSL_STACK):longint; +begin + Result := OPENSSL_sk_is_sorted(st); +end; + + + +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_storeerr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_storeerr.pas new file mode 100644 index 000000000..c574d733e --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_storeerr.pas @@ -0,0 +1,170 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_storeerr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_storeerr.h2pas + and this file regenerated. IdOpenSSLHeaders_storeerr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_storeerr; + +interface + +// Headers for OpenSSL 1.1.1 +// storeerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * OSSL_STORE function codes. + *) + OSSL_STORE_F_FILE_CTRL = 129; + OSSL_STORE_F_FILE_FIND = 138; + OSSL_STORE_F_FILE_GET_PASS = 118; + OSSL_STORE_F_FILE_LOAD = 119; + OSSL_STORE_F_FILE_LOAD_TRY_DECODE = 124; + OSSL_STORE_F_FILE_NAME_TO_URI = 126; + OSSL_STORE_F_FILE_OPEN = 120; + OSSL_STORE_F_OSSL_STORE_ATTACH_PEM_BIO = 127; + OSSL_STORE_F_OSSL_STORE_EXPECT = 130; + OSSL_STORE_F_OSSL_STORE_FILE_ATTACH_PEM_BIO_INT = 128; + OSSL_STORE_F_OSSL_STORE_FIND = 131; + OSSL_STORE_F_OSSL_STORE_GET0_LOADER_INT = 100; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_CERT = 101; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_CRL = 102; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME = 103; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME_DESCRIPTION = 135; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_PARAMS = 104; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_PKEY = 105; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_CERT = 106; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_CRL = 107; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_EMBEDDED = 123; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_NAME = 109; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_PARAMS = 110; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_PKEY = 111; + OSSL_STORE_F_OSSL_STORE_INFO_SET0_NAME_DESCRIPTION = 134; + OSSL_STORE_F_OSSL_STORE_INIT_ONCE = 112; + OSSL_STORE_F_OSSL_STORE_LOADER_NEW = 113; + OSSL_STORE_F_OSSL_STORE_OPEN = 114; + OSSL_STORE_F_OSSL_STORE_OPEN_INT = 115; + OSSL_STORE_F_OSSL_STORE_REGISTER_LOADER_INT = 117; + OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ALIAS = 132; + OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ISSUER_SERIAL = 133; + OSSL_STORE_F_OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT = 136; + OSSL_STORE_F_OSSL_STORE_SEARCH_BY_NAME = 137; + OSSL_STORE_F_OSSL_STORE_UNREGISTER_LOADER_INT = 116; + OSSL_STORE_F_TRY_DECODE_PARAMS = 121; + OSSL_STORE_F_TRY_DECODE_PKCS12 = 122; + OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED = 125; + + + (* + * OSSL_STORE reason codes. + *) + OSSL_STORE_R_AMBIGUOUS_CONTENT_TYPE = 107; + OSSL_STORE_R_BAD_PASSWORD_READ = 115; + OSSL_STORE_R_ERROR_VERIFYING_PKCS12_MAC = 113; + OSSL_STORE_R_FINGERPRINT_SIZE_DOES_NOT_MATCH_DIGEST = 121; + OSSL_STORE_R_INVALID_SCHEME = 106; + OSSL_STORE_R_IS_NOT_A = 112; + OSSL_STORE_R_LOADER_INCOMPLETE = 116; + OSSL_STORE_R_LOADING_STARTED = 117; + OSSL_STORE_R_NOT_A_CERTIFICATE = 100; + OSSL_STORE_R_NOT_A_CRL = 101; + OSSL_STORE_R_NOT_A_KEY = 102; + OSSL_STORE_R_NOT_A_NAME = 103; + OSSL_STORE_R_NOT_PARAMETERS = 104; + OSSL_STORE_R_PASSPHRASE_CALLBACK_ERROR = 114; + OSSL_STORE_R_PATH_MUST_BE_ABSOLUTE = 108; + OSSL_STORE_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES = 119; + OSSL_STORE_R_UI_PROCESS_INTERRUPTED_OR_CANCELLED = 109; + OSSL_STORE_R_UNREGISTERED_SCHEME = 105; + OSSL_STORE_R_UNSUPPORTED_CONTENT_TYPE = 110; + OSSL_STORE_R_UNSUPPORTED_OPERATION = 118; + OSSL_STORE_R_UNSUPPORTED_SEARCH_TYPE = 120; + OSSL_STORE_R_URI_AUTHORITY_UNSUPPORTED = 111; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_OSSL_STORE_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_OSSL_STORE_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_OSSL_STORE_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_OSSL_STORE_strings := LoadFunction('ERR_load_OSSL_STORE_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_OSSL_STORE_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_tls1.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_tls1.pas new file mode 100644 index 000000000..f1d367b2c --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_tls1.pas @@ -0,0 +1,1591 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_tls1.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_tls1.h2pas + and this file regenerated. IdOpenSSLHeaders_tls1.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_tls1; + +interface + +// Headers for OpenSSL 1.1.1 +// tls1.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + (* Default security level if not overridden at config time *) + OPENSSL_TLS_SECURITY_LEVEL = 1; + + TLS1_VERSION = $0301; + TLS1_1_VERSION = $0302; + TLS1_2_VERSION = $0303; + TLS1_3_VERSION = $0304; + TLS_MAX_VERSION = TLS1_3_VERSION; + + (* Special value for method supporting multiple versions *) + TLS_ANY_VERSION = $10000; + + TLS1_VERSION_MAJOR = $03; + TLS1_VERSION_MINOR = $01; + + TLS1_1_VERSION_MAJOR = $03; + TLS1_1_VERSION_MINOR = $02; + + TLS1_2_VERSION_MAJOR = $03; + TLS1_2_VERSION_MINOR = $03; + + +//# define TLS1_get_version(s) \ +// ((SSL_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_version(s) : 0) +// +//# define TLS1_get_client_version(s) \ +// ((SSL_client_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_client_version(s) : 0) + + TLS1_AD_DECRYPTION_FAILED = 21; + TLS1_AD_RECORD_OVERFLOW = 22; + TLS1_AD_UNKNOWN_CA = 48; (* fatal *) + TLS1_AD_ACCESS_DENIED = 49; (* fatal *) + TLS1_AD_DECODE_ERROR = 50; (* fatal *) + TLS1_AD_DECRYPT_ERROR = 51; + TLS1_AD_EXPORT_RESTRICTION = 60; (* fatal *) + TLS1_AD_PROTOCOL_VERSION = 70; (* fatal *) + TLS1_AD_INSUFFICIENT_SECURITY = 71; (* fatal *) + TLS1_AD_INTERNAL_ERROR = 80; (* fatal *) + TLS1_AD_INAPPROPRIATE_FALLBACK = 86; (* fatal *) + TLS1_AD_USER_CANCELLED = 90; + TLS1_AD_NO_RENEGOTIATION = 100; + (* TLSv1.3 alerts *) + TLS13_AD_MISSING_EXTENSION = 109; (* fatal *) + TLS13_AD_CERTIFICATE_REQUIRED = 116; (* fatal *) + (* codes 110-114 are from RFC3546 *) + TLS1_AD_UNSUPPORTED_EXTENSION = 110; + TLS1_AD_CERTIFICATE_UNOBTAINABLE = 111; + TLS1_AD_UNRECOGNIZED_NAME = 112; + TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE = 113; + TLS1_AD_BAD_CERTIFICATE_HASH_VALUE = 114; + TLS1_AD_UNKNOWN_PSK_IDENTITY = 115; (* fatal *) + TLS1_AD_NO_APPLICATION_PROTOCOL = 120; (* fatal *) + + (* ExtensionType values from RFC3546 / RFC4366 / RFC6066 *) + TLSEXT_TYPE_server_name = 0; + TLSEXT_TYPE_max_fragment_length = 1; + TLSEXT_TYPE_client_certificate_url = 2; + TLSEXT_TYPE_trusted_ca_keys = 3; + TLSEXT_TYPE_truncated_hmac = 4; + TLSEXT_TYPE_status_request = 5; + (* ExtensionType values from RFC4681 *) + TLSEXT_TYPE_user_mapping = 6; + (* ExtensionType values from RFC5878 *) + TLSEXT_TYPE_client_authz = 7; + TLSEXT_TYPE_server_authz = 8; + (* ExtensionType values from RFC6091 *) + TLSEXT_TYPE_cert_type = 9; + + (* ExtensionType values from RFC4492 *) + (* + * Prior to TLSv1.3 the supported_groups extension was known as + * elliptic_curves + *) + TLSEXT_TYPE_supported_groups = 10; + TLSEXT_TYPE_elliptic_curves = TLSEXT_TYPE_supported_groups; + TLSEXT_TYPE_ec_poTIdC_INT_formats = 11; + + (* ExtensionType value from RFC5054 *) + TLSEXT_TYPE_srp = 12; + (* ExtensionType values from RFC5246 *) + TLSEXT_TYPE_signature_algorithms = 13; + + (* ExtensionType value from RFC5764 *) + TLSEXT_TYPE_use_srtp = 14; + + (* ExtensionType value from RFC5620 *) + TLSEXT_TYPE_heartbeat = 15; + + (* ExtensionType value from RFC7301 *) + TLSEXT_TYPE_application_layer_protocol_negotiation = 16; + + (* + * Extension type for Certificate Transparency + * https://tools.ietf.org/html/rfc6962#section-3.3.1 + *) + TLSEXT_TYPE_signed_certificate_timestamp = 18; + + (* + * ExtensionType value for TLS padding extension. + * http://tools.ietf.org/html/draft-agl-tls-padding + *) + TLSEXT_TYPE_padding = 21; + + (* ExtensionType value from RFC7366 *) + TLSEXT_TYPE_encrypt_then_mac = 22; + + (* ExtensionType value from RFC7627 *) + TLSEXT_TYPE_extended_master_secret = 23; + + (* ExtensionType value from RFC4507 *) + TLSEXT_TYPE_session_ticket = 35; + + (* As defined for TLS1.3 *) + TLSEXT_TYPE_psk = 41; + TLSEXT_TYPE_early_data = 42; + TLSEXT_TYPE_supported_versions = 43; + TLSEXT_TYPE_cookie = 44; + TLSEXT_TYPE_psk_kex_modes = 45; + TLSEXT_TYPE_certificate_authorities = 47; + TLSEXT_TYPE_post_handshake_auth = 49; + TLSEXT_TYPE_signature_algorithms_cert = 50; + TLSEXT_TYPE_key_share = 51; + + (* Temporary extension type *) + TLSEXT_TYPE_renegotiate = $ff01; + + (* This is not an IANA defined extension number *) + TLSEXT_TYPE_next_proto_neg = 13172; + + (* NameType value from RFC3546 *) + TLSEXT_NAMETYPE_host_name = 0; + (* status request value from RFC3546 *) + TLSEXT_STATUSTYPE_ocsp = 1; + + (* ECPoTIdC_INTFormat values from RFC4492 *) + TLSEXT_ECPOTIdC_INTFORMAT_first = 0; + TLSEXT_ECPOTIdC_INTFORMAT_uncompressed = 0; + TLSEXT_ECPOTIdC_INTFORMAT_ansiX962_compressed_prime = 1; + TLSEXT_ECPOTIdC_INTFORMAT_ansiX962_compressed_PIdAnsiChar2 = 2; + TLSEXT_ECPOTIdC_INTFORMAT_last = 2; + + (* Signature and hash algorithms from RFC5246 *) + TLSEXT_signature_anonymous = 0; + TLSEXT_signature_rsa = 1; + TLSEXT_signature_dsa = 2; + TLSEXT_signature_ecdsa = 3; + TLSEXT_signature_gostr34102001 = 237; + TLSEXT_signature_gostr34102012_256 = 238; + TLSEXT_signature_gostr34102012_512 = 239; + + (* Total number of different signature algorithms *) + TLSEXT_signature_num = 7; + + TLSEXT_hash_none = 0; + TLSEXT_hash_md5 = 1; + TLSEXT_hash_sha1 = 2; + TLSEXT_hash_sha224 = 3; + TLSEXT_hash_sha256 = 4; + TLSEXT_hash_sha384 = 5; + TLSEXT_hash_sha512 = 6; + TLSEXT_hash_gostr3411 = 237; + TLSEXT_hash_gostr34112012_256 = 238; + TLSEXT_hash_gostr34112012_512 = 239; + + (* Total number of different digest algorithms *) + TLSEXT_hash_num = 10; + + (* Flag set for unrecognised algorithms *) + TLSEXT_nid_unknown = $1000000; + + (* ECC curves *) + TLSEXT_curve_P_256 = 23; + TLSEXT_curve_P_384 = 24; + + (* OpenSSL value to disable maximum fragment length extension *) + TLSEXT_max_fragment_length_DISABLED = 0; + (* Allowed values for max fragment length extension *) + TLSEXT_max_fragment_length_512 = 1; + TLSEXT_max_fragment_length_1024 = 2; + TLSEXT_max_fragment_length_2048 = 3; + TLSEXT_max_fragment_length_4096 = 4; + + TLSEXT_MAXLEN_host_name = 255; + + SSL_TLSEXT_ERR_OK = 0; + SSL_TLSEXT_ERR_ALERT_WARNING = 1; + SSL_TLSEXT_ERR_ALERT_FATAL = 2; + SSL_TLSEXT_ERR_NOACK = 3; + + SSL_DTLSEXT_HB_ENABLED = $01; + SSL_DTLSEXT_HB_DONT_SEND_REQUESTS = $02; + SSL_DTLSEXT_HB_DONT_RECV_REQUESTS = $04; + + (* PSK ciphersuites from 4279 *) + TLS1_CK_PSK_WITH_RC4_128_SHA = $0300008A; + TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA = $0300008B; + TLS1_CK_PSK_WITH_AES_128_CBC_SHA = $0300008C; + TLS1_CK_PSK_WITH_AES_256_CBC_SHA = $0300008D; + TLS1_CK_DHE_PSK_WITH_RC4_128_SHA = $0300008E; + TLS1_CK_DHE_PSK_WITH_3DES_EDE_CBC_SHA = $0300008F; + TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA = $03000090; + TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA = $03000091; + TLS1_CK_RSA_PSK_WITH_RC4_128_SHA = $03000092; + TLS1_CK_RSA_PSK_WITH_3DES_EDE_CBC_SHA = $03000093; + TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA = $03000094; + TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA = $03000095; + + (* PSK ciphersuites from 5487 *) + TLS1_CK_PSK_WITH_AES_128_GCM_SHA256 = $030000A8; + TLS1_CK_PSK_WITH_AES_256_GCM_SHA384 = $030000A9; + TLS1_CK_DHE_PSK_WITH_AES_128_GCM_SHA256 = $030000AA; + TLS1_CK_DHE_PSK_WITH_AES_256_GCM_SHA384 = $030000AB; + TLS1_CK_RSA_PSK_WITH_AES_128_GCM_SHA256 = $030000AC; + TLS1_CK_RSA_PSK_WITH_AES_256_GCM_SHA384 = $030000AD; + TLS1_CK_PSK_WITH_AES_128_CBC_SHA256 = $030000AE; + TLS1_CK_PSK_WITH_AES_256_CBC_SHA384 = $030000AF; + TLS1_CK_PSK_WITH_NULL_SHA256 = $030000B0; + TLS1_CK_PSK_WITH_NULL_SHA384 = $030000B1; + TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA256 = $030000B2; + TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA384 = $030000B3; + TLS1_CK_DHE_PSK_WITH_NULL_SHA256 = $030000B4; + TLS1_CK_DHE_PSK_WITH_NULL_SHA384 = $030000B5; + TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA256 = $030000B6; + TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA384 = $030000B7; + TLS1_CK_RSA_PSK_WITH_NULL_SHA256 = $030000B8; + TLS1_CK_RSA_PSK_WITH_NULL_SHA384 = $030000B9; + + (* NULL PSK ciphersuites from RFC4785 *) + TLS1_CK_PSK_WITH_NULL_SHA = $0300002C; + TLS1_CK_DHE_PSK_WITH_NULL_SHA = $0300002D; + TLS1_CK_RSA_PSK_WITH_NULL_SHA = $0300002E; + + (* AES ciphersuites from RFC3268 *) + TLS1_CK_RSA_WITH_AES_128_SHA = $0300002F; + TLS1_CK_DH_DSS_WITH_AES_128_SHA = $03000030; + TLS1_CK_DH_RSA_WITH_AES_128_SHA = $03000031; + TLS1_CK_DHE_DSS_WITH_AES_128_SHA = $03000032; + TLS1_CK_DHE_RSA_WITH_AES_128_SHA = $03000033; + TLS1_CK_ADH_WITH_AES_128_SHA = $03000034; + TLS1_CK_RSA_WITH_AES_256_SHA = $03000035; + TLS1_CK_DH_DSS_WITH_AES_256_SHA = $03000036; + TLS1_CK_DH_RSA_WITH_AES_256_SHA = $03000037; + TLS1_CK_DHE_DSS_WITH_AES_256_SHA = $03000038; + TLS1_CK_DHE_RSA_WITH_AES_256_SHA = $03000039; + TLS1_CK_ADH_WITH_AES_256_SHA = $0300003A; + + (* TLS v1.2 ciphersuites *) + TLS1_CK_RSA_WITH_NULL_SHA256 = $0300003B; + TLS1_CK_RSA_WITH_AES_128_SHA256 = $0300003C; + TLS1_CK_RSA_WITH_AES_256_SHA256 = $0300003D; + TLS1_CK_DH_DSS_WITH_AES_128_SHA256 = $0300003E; + TLS1_CK_DH_RSA_WITH_AES_128_SHA256 = $0300003F; + TLS1_CK_DHE_DSS_WITH_AES_128_SHA256 = $03000040; + + (* Camellia ciphersuites from RFC4132 *) + TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA = $03000041; + TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA = $03000042; + TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA = $03000043; + TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA = $03000044; + TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA = $03000045; + TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA = $03000046; + + (* TLS v1.2 ciphersuites *) + TLS1_CK_DHE_RSA_WITH_AES_128_SHA256 = $03000067; + TLS1_CK_DH_DSS_WITH_AES_256_SHA256 = $03000068; + TLS1_CK_DH_RSA_WITH_AES_256_SHA256 = $03000069; + TLS1_CK_DHE_DSS_WITH_AES_256_SHA256 = $0300006A; + TLS1_CK_DHE_RSA_WITH_AES_256_SHA256 = $0300006B; + TLS1_CK_ADH_WITH_AES_128_SHA256 = $0300006C; + TLS1_CK_ADH_WITH_AES_256_SHA256 = $0300006D; + + (* Camellia ciphersuites from RFC4132 *) + TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA = $03000084; + TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA = $03000085; + TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA = $03000086; + TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA = $03000087; + TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA = $03000088; + TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA = $03000089; + + (* SEED ciphersuites from RFC4162 *) + TLS1_CK_RSA_WITH_SEED_SHA = $03000096; + TLS1_CK_DH_DSS_WITH_SEED_SHA = $03000097; + TLS1_CK_DH_RSA_WITH_SEED_SHA = $03000098; + TLS1_CK_DHE_DSS_WITH_SEED_SHA = $03000099; + TLS1_CK_DHE_RSA_WITH_SEED_SHA = $0300009A; + TLS1_CK_ADH_WITH_SEED_SHA = $0300009B; + + (* TLS v1.2 GCM ciphersuites from RFC5288 *) + TLS1_CK_RSA_WITH_AES_128_GCM_SHA256 = $0300009C; + TLS1_CK_RSA_WITH_AES_256_GCM_SHA384 = $0300009D; + TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256 = $0300009E; + TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384 = $0300009F; + TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256 = $030000A0; + TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384 = $030000A1; + TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256 = $030000A2; + TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384 = $030000A3; + TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256 = $030000A4; + TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384 = $030000A5; + TLS1_CK_ADH_WITH_AES_128_GCM_SHA256 = $030000A6; + TLS1_CK_ADH_WITH_AES_256_GCM_SHA384 = $030000A7; + + (* CCM ciphersuites from RFC6655 *) + TLS1_CK_RSA_WITH_AES_128_CCM = $0300C09C; + TLS1_CK_RSA_WITH_AES_256_CCM = $0300C09D; + TLS1_CK_DHE_RSA_WITH_AES_128_CCM = $0300C09E; + TLS1_CK_DHE_RSA_WITH_AES_256_CCM = $0300C09F; + TLS1_CK_RSA_WITH_AES_128_CCM_8 = $0300C0A0; + TLS1_CK_RSA_WITH_AES_256_CCM_8 = $0300C0A1; + TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8 = $0300C0A2; + TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8 = $0300C0A3; + TLS1_CK_PSK_WITH_AES_128_CCM = $0300C0A4; + TLS1_CK_PSK_WITH_AES_256_CCM = $0300C0A5; + TLS1_CK_DHE_PSK_WITH_AES_128_CCM = $0300C0A6; + TLS1_CK_DHE_PSK_WITH_AES_256_CCM = $0300C0A7; + TLS1_CK_PSK_WITH_AES_128_CCM_8 = $0300C0A8; + TLS1_CK_PSK_WITH_AES_256_CCM_8 = $0300C0A9; + TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8 = $0300C0AA; + TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8 = $0300C0AB; + + (* CCM ciphersuites from RFC7251 *) + TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM = $0300C0AC; + TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM = $0300C0AD; + TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8 = $0300C0AE; + TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8 = $0300C0AF; + + (* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 *) + TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256 = $030000BA; + TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 = $030000BB; + TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 = $030000BC; + TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 = $030000BD; + TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = $030000BE; + TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256 = $030000BF; + + TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256 = $030000C0; + TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 = $030000C1; + TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 = $030000C2; + TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 = $030000C3; + TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 = $030000C4; + TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256 = $030000C5; + + (* ECC ciphersuites from RFC4492 *) + TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA = $0300C001; + TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA = $0300C002; + TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA = $0300C003; + TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA = $0300C004; + TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA = $0300C005; + + TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA = $0300C006; + TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA = $0300C007; + TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA = $0300C008; + TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = $0300C009; + TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = $0300C00A; + + TLS1_CK_ECDH_RSA_WITH_NULL_SHA = $0300C00B; + TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA = $0300C00C; + TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA = $0300C00D; + TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA = $0300C00E; + TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA = $0300C00F; + + TLS1_CK_ECDHE_RSA_WITH_NULL_SHA = $0300C010; + TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA = $0300C011; + TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA = $0300C012; + TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA = $0300C013; + TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA = $0300C014; + + TLS1_CK_ECDH_anon_WITH_NULL_SHA = $0300C015; + TLS1_CK_ECDH_anon_WITH_RC4_128_SHA = $0300C016; + TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA = $0300C017; + TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA = $0300C018; + TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA = $0300C019; + + (* SRP ciphersuites from RFC 5054 *) + TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA = $0300C01A; + TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA = $0300C01B; + TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA = $0300C01C; + TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA = $0300C01D; + TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA = $0300C01E; + TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA = $0300C01F; + TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA = $0300C020; + TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA = $0300C021; + TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA = $0300C022; + + (* ECDH HMAC based ciphersuites from RFC5289 *) + TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256 = $0300C023; + TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384 = $0300C024; + TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256 = $0300C025; + TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384 = $0300C026; + TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256 = $0300C027; + TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384 = $0300C028; + TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256 = $0300C029; + TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384 = $0300C02A; + + (* ECDH GCM based ciphersuites from RFC5289 *) + TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = $0300C02B; + TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = $0300C02C; + TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = $0300C02D; + TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = $0300C02E; + TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = $0300C02F; + TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = $0300C030; + TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256 = $0300C031; + TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384 = $0300C032; + + (* ECDHE PSK ciphersuites from RFC5489 *) + TLS1_CK_ECDHE_PSK_WITH_RC4_128_SHA = $0300C033; + TLS1_CK_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA = $0300C034; + TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA = $0300C035; + TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA = $0300C036; + TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA256 = $0300C037; + TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA384 = $0300C038; + TLS1_CK_ECDHE_PSK_WITH_NULL_SHA = $0300C039; + + TLS1_CK_ECDHE_PSK_WITH_NULL_SHA256 = $0300C03A; + TLS1_CK_ECDHE_PSK_WITH_NULL_SHA384 = $0300C03B; + + (* Camellia-CBC ciphersuites from RFC6367 *) + TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = $0300C072; + TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = $0300C073; + TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = $0300C074; + TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = $0300C075; + TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = $0300C076; + TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 = $0300C077; + TLS1_CK_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 = $0300C078; + TLS1_CK_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 = $0300C079; + + TLS1_CK_PSK_WITH_CAMELLIA_128_CBC_SHA256 = $0300C094; + TLS1_CK_PSK_WITH_CAMELLIA_256_CBC_SHA384 = $0300C095; + TLS1_CK_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = $0300C096; + TLS1_CK_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = $0300C097; + TLS1_CK_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 = $0300C098; + TLS1_CK_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 = $0300C099; + TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = $0300C09A; + TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = $0300C09B; + + (* draft-ietf-tls-chacha20-poly1305-03 *) + TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305 = $0300CCA8; + TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 = $0300CCA9; + TLS1_CK_DHE_RSA_WITH_CHACHA20_POLY1305 = $0300CCAA; + TLS1_CK_PSK_WITH_CHACHA20_POLY1305 = $0300CCAB; + TLS1_CK_ECDHE_PSK_WITH_CHACHA20_POLY1305 = $0300CCAC; + TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305 = $0300CCAD; + TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305 = $0300CCAE; + + (* TLS v1.3 ciphersuites *) + TLS1_3_CK_AES_128_GCM_SHA256 = $03001301; + TLS1_3_CK_AES_256_GCM_SHA384 = $03001302; + TLS1_3_CK_CHACHA20_POLY1305_SHA256 = $03001303; + TLS1_3_CK_AES_128_CCM_SHA256 = $03001304; + TLS1_3_CK_AES_128_CCM_8_SHA256 = $03001305; + + (* Aria ciphersuites from RFC6209 *) + TLS1_CK_RSA_WITH_ARIA_128_GCM_SHA256 = $0300C050; + TLS1_CK_RSA_WITH_ARIA_256_GCM_SHA384 = $0300C051; + TLS1_CK_DHE_RSA_WITH_ARIA_128_GCM_SHA256 = $0300C052; + TLS1_CK_DHE_RSA_WITH_ARIA_256_GCM_SHA384 = $0300C053; + TLS1_CK_DH_RSA_WITH_ARIA_128_GCM_SHA256 = $0300C054; + TLS1_CK_DH_RSA_WITH_ARIA_256_GCM_SHA384 = $0300C055; + TLS1_CK_DHE_DSS_WITH_ARIA_128_GCM_SHA256 = $0300C056; + TLS1_CK_DHE_DSS_WITH_ARIA_256_GCM_SHA384 = $0300C057; + TLS1_CK_DH_DSS_WITH_ARIA_128_GCM_SHA256 = $0300C058; + TLS1_CK_DH_DSS_WITH_ARIA_256_GCM_SHA384 = $0300C059; + TLS1_CK_DH_anon_WITH_ARIA_128_GCM_SHA256 = $0300C05A; + TLS1_CK_DH_anon_WITH_ARIA_256_GCM_SHA384 = $0300C05B; + TLS1_CK_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 = $0300C05C; + TLS1_CK_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 = $0300C05D; + TLS1_CK_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 = $0300C05E; + TLS1_CK_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 = $0300C05F; + TLS1_CK_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 = $0300C060; + TLS1_CK_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 = $0300C061; + TLS1_CK_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 = $0300C062; + TLS1_CK_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 = $0300C063; + TLS1_CK_PSK_WITH_ARIA_128_GCM_SHA256 = $0300C06A; + TLS1_CK_PSK_WITH_ARIA_256_GCM_SHA384 = $0300C06B; + TLS1_CK_DHE_PSK_WITH_ARIA_128_GCM_SHA256 = $0300C06C; + TLS1_CK_DHE_PSK_WITH_ARIA_256_GCM_SHA384 = $0300C06D; + TLS1_CK_RSA_PSK_WITH_ARIA_128_GCM_SHA256 = $0300C06E; + TLS1_CK_RSA_PSK_WITH_ARIA_256_GCM_SHA384 = $0300C06F; + + (* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] *) + TLS1_RFC_RSA_WITH_AES_128_SHA = AnsiString('TLS_RSA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_DHE_DSS_WITH_AES_128_SHA = AnsiString('TLS_DHE_DSS_WITH_AES_128_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_AES_128_SHA = AnsiString('TLS_DHE_RSA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_ADH_WITH_AES_128_SHA = AnsiString('TLS_DH_anon_WITH_AES_128_CBC_SHA'); + TLS1_RFC_RSA_WITH_AES_256_SHA = AnsiString('TLS_RSA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_DHE_DSS_WITH_AES_256_SHA = AnsiString('TLS_DHE_DSS_WITH_AES_256_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_AES_256_SHA = AnsiString('TLS_DHE_RSA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_ADH_WITH_AES_256_SHA = AnsiString('TLS_DH_anon_WITH_AES_256_CBC_SHA'); + TLS1_RFC_RSA_WITH_NULL_SHA256 = AnsiString('TLS_RSA_WITH_NULL_SHA256'); + TLS1_RFC_RSA_WITH_AES_128_SHA256 = AnsiString('TLS_RSA_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_RSA_WITH_AES_256_SHA256 = AnsiString('TLS_RSA_WITH_AES_256_CBC_SHA256'); + TLS1_RFC_DHE_DSS_WITH_AES_128_SHA256 = AnsiString('TLS_DHE_DSS_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_DHE_RSA_WITH_AES_128_SHA256 = AnsiString('TLS_DHE_RSA_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_DHE_DSS_WITH_AES_256_SHA256 = AnsiString('TLS_DHE_DSS_WITH_AES_256_CBC_SHA256'); + TLS1_RFC_DHE_RSA_WITH_AES_256_SHA256 = AnsiString('TLS_DHE_RSA_WITH_AES_256_CBC_SHA256'); + TLS1_RFC_ADH_WITH_AES_128_SHA256 = AnsiString('TLS_DH_anon_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_ADH_WITH_AES_256_SHA256 = AnsiString('TLS_DH_anon_WITH_AES_256_CBC_SHA256'); + TLS1_RFC_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_RSA_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_RSA_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_DHE_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_DHE_RSA_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_DHE_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_DHE_RSA_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_DHE_DSS_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_DHE_DSS_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_DHE_DSS_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_DHE_DSS_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_ADH_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_DH_anon_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_ADH_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_DH_anon_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_RSA_WITH_AES_128_CCM = AnsiString('TLS_RSA_WITH_AES_128_CCM'); + TLS1_RFC_RSA_WITH_AES_256_CCM = AnsiString('TLS_RSA_WITH_AES_256_CCM'); + TLS1_RFC_DHE_RSA_WITH_AES_128_CCM = AnsiString('TLS_DHE_RSA_WITH_AES_128_CCM'); + TLS1_RFC_DHE_RSA_WITH_AES_256_CCM = AnsiString('TLS_DHE_RSA_WITH_AES_256_CCM'); + TLS1_RFC_RSA_WITH_AES_128_CCM_8 = AnsiString('TLS_RSA_WITH_AES_128_CCM_8'); + TLS1_RFC_RSA_WITH_AES_256_CCM_8 = AnsiString('TLS_RSA_WITH_AES_256_CCM_8'); + TLS1_RFC_DHE_RSA_WITH_AES_128_CCM_8 = AnsiString('TLS_DHE_RSA_WITH_AES_128_CCM_8'); + TLS1_RFC_DHE_RSA_WITH_AES_256_CCM_8 = AnsiString('TLS_DHE_RSA_WITH_AES_256_CCM_8'); + TLS1_RFC_PSK_WITH_AES_128_CCM = AnsiString('TLS_PSK_WITH_AES_128_CCM'); + TLS1_RFC_PSK_WITH_AES_256_CCM = AnsiString('TLS_PSK_WITH_AES_256_CCM'); + TLS1_RFC_DHE_PSK_WITH_AES_128_CCM = AnsiString('TLS_DHE_PSK_WITH_AES_128_CCM'); + TLS1_RFC_DHE_PSK_WITH_AES_256_CCM = AnsiString('TLS_DHE_PSK_WITH_AES_256_CCM'); + TLS1_RFC_PSK_WITH_AES_128_CCM_8 = AnsiString('TLS_PSK_WITH_AES_128_CCM_8'); + TLS1_RFC_PSK_WITH_AES_256_CCM_8 = AnsiString('TLS_PSK_WITH_AES_256_CCM_8'); + TLS1_RFC_DHE_PSK_WITH_AES_128_CCM_8 = AnsiString('TLS_PSK_DHE_WITH_AES_128_CCM_8'); + TLS1_RFC_DHE_PSK_WITH_AES_256_CCM_8 = AnsiString('TLS_PSK_DHE_WITH_AES_256_CCM_8'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_128_CCM'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_256_CCM'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM_8 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM_8 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8'); + TLS1_3_RFC_AES_128_GCM_SHA256 = AnsiString('TLS_AES_128_GCM_SHA256'); + TLS1_3_RFC_AES_256_GCM_SHA384 = AnsiString('TLS_AES_256_GCM_SHA384'); + TLS1_3_RFC_CHACHA20_POLY1305_SHA256 = AnsiString('TLS_CHACHA20_POLY1305_SHA256'); + TLS1_3_RFC_AES_128_CCM_SHA256 = AnsiString('TLS_AES_128_CCM_SHA256'); + TLS1_3_RFC_AES_128_CCM_8_SHA256 = AnsiString('TLS_AES_128_CCM_8_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_NULL_SHA = AnsiString('TLS_ECDHE_ECDSA_WITH_NULL_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA = AnsiString('TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_ECDHE_RSA_WITH_NULL_SHA = AnsiString('TLS_ECDHE_RSA_WITH_NULL_SHA'); + TLS1_RFC_ECDHE_RSA_WITH_DES_192_CBC3_SHA = AnsiString('TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_ECDHE_RSA_WITH_AES_128_CBC_SHA = AnsiString('TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_ECDHE_RSA_WITH_AES_256_CBC_SHA = AnsiString('TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_ECDH_anon_WITH_NULL_SHA = AnsiString('TLS_ECDH_anon_WITH_NULL_SHA'); + TLS1_RFC_ECDH_anon_WITH_DES_192_CBC3_SHA = AnsiString('TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_ECDH_anon_WITH_AES_128_CBC_SHA = AnsiString('TLS_ECDH_anon_WITH_AES_128_CBC_SHA'); + TLS1_RFC_ECDH_anon_WITH_AES_256_CBC_SHA = AnsiString('TLS_ECDH_anon_WITH_AES_256_CBC_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_SHA256 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_SHA384 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_ECDHE_RSA_WITH_AES_128_SHA256 = AnsiString('TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_ECDHE_RSA_WITH_AES_256_SHA384 = AnsiString('TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_PSK_WITH_NULL_SHA = AnsiString('TLS_PSK_WITH_NULL_SHA'); + TLS1_RFC_DHE_PSK_WITH_NULL_SHA = AnsiString('TLS_DHE_PSK_WITH_NULL_SHA'); + TLS1_RFC_RSA_PSK_WITH_NULL_SHA = AnsiString('TLS_RSA_PSK_WITH_NULL_SHA'); + TLS1_RFC_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_PSK_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_PSK_WITH_AES_128_CBC_SHA = AnsiString('TLS_PSK_WITH_AES_128_CBC_SHA'); + TLS1_RFC_PSK_WITH_AES_256_CBC_SHA = AnsiString('TLS_PSK_WITH_AES_256_CBC_SHA'); + TLS1_RFC_DHE_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA = AnsiString('TLS_DHE_PSK_WITH_AES_128_CBC_SHA'); + TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA = AnsiString('TLS_DHE_PSK_WITH_AES_256_CBC_SHA'); + TLS1_RFC_RSA_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA = AnsiString('TLS_RSA_PSK_WITH_AES_128_CBC_SHA'); + TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA = AnsiString('TLS_RSA_PSK_WITH_AES_256_CBC_SHA'); + TLS1_RFC_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_PSK_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_PSK_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_DHE_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_DHE_PSK_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_DHE_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_DHE_PSK_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_RSA_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_RSA_PSK_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_RSA_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_RSA_PSK_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('TLS_PSK_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('TLS_PSK_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_PSK_WITH_NULL_SHA256 = AnsiString('TLS_PSK_WITH_NULL_SHA256'); + TLS1_RFC_PSK_WITH_NULL_SHA384 = AnsiString('TLS_PSK_WITH_NULL_SHA384'); + TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('TLS_DHE_PSK_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('TLS_DHE_PSK_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_DHE_PSK_WITH_NULL_SHA256 = AnsiString('TLS_DHE_PSK_WITH_NULL_SHA256'); + TLS1_RFC_DHE_PSK_WITH_NULL_SHA384 = AnsiString('TLS_DHE_PSK_WITH_NULL_SHA384'); + TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('TLS_RSA_PSK_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('TLS_RSA_PSK_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_RSA_PSK_WITH_NULL_SHA256 = AnsiString('TLS_RSA_PSK_WITH_NULL_SHA256'); + TLS1_RFC_RSA_PSK_WITH_NULL_SHA384 = AnsiString('TLS_RSA_PSK_WITH_NULL_SHA384'); + TLS1_RFC_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA = AnsiString('TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA'); + TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA = AnsiString('TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA'); + TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA = AnsiString('TLS_ECDHE_PSK_WITH_NULL_SHA'); + TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA256 = AnsiString('TLS_ECDHE_PSK_WITH_NULL_SHA256'); + TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA384 = AnsiString('TLS_ECDHE_PSK_WITH_NULL_SHA384'); + TLS1_RFC_SRP_SHA_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_SRP_SHA_WITH_AES_128_CBC_SHA = AnsiString('TLS_SRP_SHA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_SRP_SHA_RSA_WITH_AES_128_CBC_SHA = AnsiString('TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_SRP_SHA_DSS_WITH_AES_128_CBC_SHA = AnsiString('TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA'); + TLS1_RFC_SRP_SHA_WITH_AES_256_CBC_SHA = AnsiString('TLS_SRP_SHA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_SRP_SHA_RSA_WITH_AES_256_CBC_SHA = AnsiString('TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_SRP_SHA_DSS_WITH_AES_256_CBC_SHA = AnsiString('TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_CHACHA20_POLY1305 = AnsiString('TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_ECDHE_RSA_WITH_CHACHA20_POLY1305 = AnsiString('TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 = AnsiString('TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_PSK_WITH_CHACHA20_POLY1305 = AnsiString('TLS_PSK_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_ECDHE_PSK_WITH_CHACHA20_POLY1305 = AnsiString('TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_DHE_PSK_WITH_CHACHA20_POLY1305 = AnsiString('TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_RSA_PSK_WITH_CHACHA20_POLY1305 = AnsiString('TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256'); + TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256'); + TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256'); + TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256'); + TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA = AnsiString('TLS_RSA_WITH_CAMELLIA_256_CBC_SHA'); + TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA = AnsiString('TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA = AnsiString('TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA'); + TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA = AnsiString('TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA'); + TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA = AnsiString('TLS_RSA_WITH_CAMELLIA_128_CBC_SHA'); + TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA = AnsiString('TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA = AnsiString('TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA'); + TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA = AnsiString('TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_RSA_WITH_SEED_SHA = AnsiString('TLS_RSA_WITH_SEED_CBC_SHA'); + TLS1_RFC_DHE_DSS_WITH_SEED_SHA = AnsiString('TLS_DHE_DSS_WITH_SEED_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_SEED_SHA = AnsiString('TLS_DHE_RSA_WITH_SEED_CBC_SHA'); + TLS1_RFC_ADH_WITH_SEED_SHA = AnsiString('TLS_DH_anon_WITH_SEED_CBC_SHA'); + TLS1_RFC_ECDHE_PSK_WITH_RC4_128_SHA = AnsiString('TLS_ECDHE_PSK_WITH_RC4_128_SHA'); + TLS1_RFC_ECDH_anon_WITH_RC4_128_SHA = AnsiString('TLS_ECDH_anon_WITH_RC4_128_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_RC4_128_SHA = AnsiString('TLS_ECDHE_ECDSA_WITH_RC4_128_SHA'); + TLS1_RFC_ECDHE_RSA_WITH_RC4_128_SHA = AnsiString('TLS_ECDHE_RSA_WITH_RC4_128_SHA'); + TLS1_RFC_PSK_WITH_RC4_128_SHA = AnsiString('TLS_PSK_WITH_RC4_128_SHA'); + TLS1_RFC_RSA_PSK_WITH_RC4_128_SHA = AnsiString('TLS_RSA_PSK_WITH_RC4_128_SHA'); + TLS1_RFC_DHE_PSK_WITH_RC4_128_SHA = AnsiString('TLS_DHE_PSK_WITH_RC4_128_SHA'); + TLS1_RFC_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_RSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_RSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DHE_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DHE_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DH_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DH_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DHE_DSS_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DHE_DSS_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DH_DSS_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DH_DSS_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DH_anon_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DH_anon_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DH_anon_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DH_anon_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_PSK_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_PSK_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DHE_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DHE_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_RSA_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_RSA_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384'); + + (* + * XXX Backward compatibility alert: Older versions of OpenSSL gave some DHE + * ciphers names with "EDH" instead of "DHE". Going forward, we should be + * using DHE everywhere, though we may indefinitely maTIdC_INTain aliases for + * users or configurations that used "EDH" + *) + TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA = AnsiString('DHE-DSS-RC4-SHA'); + + TLS1_TXT_PSK_WITH_NULL_SHA = AnsiString('PSK-NULL-SHA'); + TLS1_TXT_DHE_PSK_WITH_NULL_SHA = AnsiString('DHE-PSK-NULL-SHA'); + TLS1_TXT_RSA_PSK_WITH_NULL_SHA = AnsiString('RSA-PSK-NULL-SHA'); + + (* AES ciphersuites from RFC3268 *) + TLS1_TXT_RSA_WITH_AES_128_SHA = AnsiString('AES128-SHA'); + TLS1_TXT_DH_DSS_WITH_AES_128_SHA = AnsiString('DH-DSS-AES128-SHA'); + TLS1_TXT_DH_RSA_WITH_AES_128_SHA = AnsiString('DH-RSA-AES128-SHA'); + TLS1_TXT_DHE_DSS_WITH_AES_128_SHA = AnsiString('DHE-DSS-AES128-SHA'); + TLS1_TXT_DHE_RSA_WITH_AES_128_SHA = AnsiString('DHE-RSA-AES128-SHA'); + TLS1_TXT_ADH_WITH_AES_128_SHA = AnsiString('ADH-AES128-SHA'); + + TLS1_TXT_RSA_WITH_AES_256_SHA = AnsiString('AES256-SHA'); + TLS1_TXT_DH_DSS_WITH_AES_256_SHA = AnsiString('DH-DSS-AES256-SHA'); + TLS1_TXT_DH_RSA_WITH_AES_256_SHA = AnsiString('DH-RSA-AES256-SHA'); + TLS1_TXT_DHE_DSS_WITH_AES_256_SHA = AnsiString('DHE-DSS-AES256-SHA'); + TLS1_TXT_DHE_RSA_WITH_AES_256_SHA = AnsiString('DHE-RSA-AES256-SHA'); + TLS1_TXT_ADH_WITH_AES_256_SHA = AnsiString('ADH-AES256-SHA'); + + (* ECC ciphersuites from RFC4492 *) + TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA = AnsiString('ECDH-ECDSA-NULL-SHA'); + TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA = AnsiString('ECDH-ECDSA-RC4-SHA'); + TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA = AnsiString('ECDH-ECDSA-DES-CBC3-SHA'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA = AnsiString('ECDH-ECDSA-AES128-SHA'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA = AnsiString('ECDH-ECDSA-AES256-SHA'); + + TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA = AnsiString('ECDHE-ECDSA-NULL-SHA'); + TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA = AnsiString('ECDHE-ECDSA-RC4-SHA'); + TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA = AnsiString('ECDHE-ECDSA-DES-CBC3-SHA'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = AnsiString('ECDHE-ECDSA-AES128-SHA'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = AnsiString('ECDHE-ECDSA-AES256-SHA'); + + TLS1_TXT_ECDH_RSA_WITH_NULL_SHA = AnsiString('ECDH-RSA-NULL-SHA'); + TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA = AnsiString('ECDH-RSA-RC4-SHA'); + TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA = AnsiString('ECDH-RSA-DES-CBC3-SHA'); + TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA = AnsiString('ECDH-RSA-AES128-SHA'); + TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA = AnsiString('ECDH-RSA-AES256-SHA'); + + TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA = AnsiString('ECDHE-RSA-NULL-SHA'); + TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA = AnsiString('ECDHE-RSA-RC4-SHA'); + TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA = AnsiString('ECDHE-RSA-DES-CBC3-SHA'); + TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA = AnsiString('ECDHE-RSA-AES128-SHA'); + TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA = AnsiString('ECDHE-RSA-AES256-SHA'); + + TLS1_TXT_ECDH_anon_WITH_NULL_SHA = AnsiString('AECDH-NULL-SHA'); + TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA = AnsiString('AECDH-RC4-SHA'); + TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA = AnsiString('AECDH-DES-CBC3-SHA'); + TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA = AnsiString('AECDH-AES128-SHA'); + TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA = AnsiString('AECDH-AES256-SHA'); + + (* PSK ciphersuites from RFC 4279 *) + TLS1_TXT_PSK_WITH_RC4_128_SHA = AnsiString('PSK-RC4-SHA'); + TLS1_TXT_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('PSK-3DES-EDE-CBC-SHA'); + TLS1_TXT_PSK_WITH_AES_128_CBC_SHA = AnsiString('PSK-AES128-CBC-SHA'); + TLS1_TXT_PSK_WITH_AES_256_CBC_SHA = AnsiString('PSK-AES256-CBC-SHA'); + + TLS1_TXT_DHE_PSK_WITH_RC4_128_SHA = AnsiString('DHE-PSK-RC4-SHA'); + TLS1_TXT_DHE_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('DHE-PSK-3DES-EDE-CBC-SHA'); + TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA = AnsiString('DHE-PSK-AES128-CBC-SHA'); + TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA = AnsiString('DHE-PSK-AES256-CBC-SHA'); + TLS1_TXT_RSA_PSK_WITH_RC4_128_SHA = AnsiString('RSA-PSK-RC4-SHA'); + TLS1_TXT_RSA_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('RSA-PSK-3DES-EDE-CBC-SHA'); + TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA = AnsiString('RSA-PSK-AES128-CBC-SHA'); + TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA = AnsiString('RSA-PSK-AES256-CBC-SHA'); + + (* PSK ciphersuites from RFC 5487 *) + TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('PSK-AES128-GCM-SHA256'); + TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('PSK-AES256-GCM-SHA384'); + TLS1_TXT_DHE_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('DHE-PSK-AES128-GCM-SHA256'); + TLS1_TXT_DHE_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('DHE-PSK-AES256-GCM-SHA384'); + TLS1_TXT_RSA_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('RSA-PSK-AES128-GCM-SHA256'); + TLS1_TXT_RSA_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('RSA-PSK-AES256-GCM-SHA384'); + + TLS1_TXT_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('PSK-AES128-CBC-SHA256'); + TLS1_TXT_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('PSK-AES256-CBC-SHA384'); + TLS1_TXT_PSK_WITH_NULL_SHA256 = AnsiString('PSK-NULL-SHA256'); + TLS1_TXT_PSK_WITH_NULL_SHA384 = AnsiString('PSK-NULL-SHA384'); + + TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('DHE-PSK-AES128-CBC-SHA256'); + TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('DHE-PSK-AES256-CBC-SHA384'); + TLS1_TXT_DHE_PSK_WITH_NULL_SHA256 = AnsiString('DHE-PSK-NULL-SHA256'); + TLS1_TXT_DHE_PSK_WITH_NULL_SHA384 = AnsiString('DHE-PSK-NULL-SHA384'); + + TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('RSA-PSK-AES128-CBC-SHA256'); + TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('RSA-PSK-AES256-CBC-SHA384'); + TLS1_TXT_RSA_PSK_WITH_NULL_SHA256 = AnsiString('RSA-PSK-NULL-SHA256'); + TLS1_TXT_RSA_PSK_WITH_NULL_SHA384 = AnsiString('RSA-PSK-NULL-SHA384'); + + (* SRP ciphersuite from RFC 5054 *) + TLS1_TXT_SRP_SHA_WITH_3DES_EDE_CBC_SHA = AnsiString('SRP-3DES-EDE-CBC-SHA'); + TLS1_TXT_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA = AnsiString('SRP-RSA-3DES-EDE-CBC-SHA'); + TLS1_TXT_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA = AnsiString('SRP-DSS-3DES-EDE-CBC-SHA'); + TLS1_TXT_SRP_SHA_WITH_AES_128_CBC_SHA = AnsiString('SRP-AES-128-CBC-SHA'); + TLS1_TXT_SRP_SHA_RSA_WITH_AES_128_CBC_SHA = AnsiString('SRP-RSA-AES-128-CBC-SHA'); + TLS1_TXT_SRP_SHA_DSS_WITH_AES_128_CBC_SHA = AnsiString('SRP-DSS-AES-128-CBC-SHA'); + TLS1_TXT_SRP_SHA_WITH_AES_256_CBC_SHA = AnsiString('SRP-AES-256-CBC-SHA'); + TLS1_TXT_SRP_SHA_RSA_WITH_AES_256_CBC_SHA = AnsiString('SRP-RSA-AES-256-CBC-SHA'); + TLS1_TXT_SRP_SHA_DSS_WITH_AES_256_CBC_SHA = AnsiString('SRP-DSS-AES-256-CBC-SHA'); + + (* Camellia ciphersuites from RFC4132 *) + TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA = AnsiString('CAMELLIA128-SHA'); + TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA = AnsiString('DH-DSS-CAMELLIA128-SHA'); + TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA = AnsiString('DH-RSA-CAMELLIA128-SHA'); + TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA = AnsiString('DHE-DSS-CAMELLIA128-SHA'); + TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA = AnsiString('DHE-RSA-CAMELLIA128-SHA'); + TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA = AnsiString('ADH-CAMELLIA128-SHA'); + + TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA = AnsiString('CAMELLIA256-SHA'); + TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA = AnsiString('DH-DSS-CAMELLIA256-SHA'); + TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA = AnsiString('DH-RSA-CAMELLIA256-SHA'); + TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA = AnsiString('DHE-DSS-CAMELLIA256-SHA'); + TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA = AnsiString('DHE-RSA-CAMELLIA256-SHA'); + TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA = AnsiString('ADH-CAMELLIA256-SHA'); + + (* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 *) + TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('CAMELLIA128-SHA256'); + TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('DH-DSS-CAMELLIA128-SHA256'); + TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('DH-RSA-CAMELLIA128-SHA256'); + TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('DHE-DSS-CAMELLIA128-SHA256'); + TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('DHE-RSA-CAMELLIA128-SHA256'); + TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ADH-CAMELLIA128-SHA256'); + + TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('CAMELLIA256-SHA256'); + TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('DH-DSS-CAMELLIA256-SHA256'); + TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('DH-RSA-CAMELLIA256-SHA256'); + TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('DHE-DSS-CAMELLIA256-SHA256'); + TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('DHE-RSA-CAMELLIA256-SHA256'); + TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('ADH-CAMELLIA256-SHA256'); + + TLS1_TXT_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('PSK-CAMELLIA128-SHA256'); + TLS1_TXT_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('PSK-CAMELLIA256-SHA384'); + TLS1_TXT_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('DHE-PSK-CAMELLIA128-SHA256'); + TLS1_TXT_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('DHE-PSK-CAMELLIA256-SHA384'); + TLS1_TXT_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('RSA-PSK-CAMELLIA128-SHA256'); + TLS1_TXT_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('RSA-PSK-CAMELLIA256-SHA384'); + TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ECDHE-PSK-CAMELLIA128-SHA256'); + TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('ECDHE-PSK-CAMELLIA256-SHA384'); + + (* SEED ciphersuites from RFC4162 *) + TLS1_TXT_RSA_WITH_SEED_SHA = AnsiString('SEED-SHA'); + TLS1_TXT_DH_DSS_WITH_SEED_SHA = AnsiString('DH-DSS-SEED-SHA'); + TLS1_TXT_DH_RSA_WITH_SEED_SHA = AnsiString('DH-RSA-SEED-SHA'); + TLS1_TXT_DHE_DSS_WITH_SEED_SHA = AnsiString('DHE-DSS-SEED-SHA'); + TLS1_TXT_DHE_RSA_WITH_SEED_SHA = AnsiString('DHE-RSA-SEED-SHA'); + TLS1_TXT_ADH_WITH_SEED_SHA = AnsiString('ADH-SEED-SHA'); + + (* TLS v1.2 ciphersuites *) + TLS1_TXT_RSA_WITH_NULL_SHA256 = AnsiString('NULL-SHA256'); + TLS1_TXT_RSA_WITH_AES_128_SHA256 = AnsiString('AES128-SHA256'); + TLS1_TXT_RSA_WITH_AES_256_SHA256 = AnsiString('AES256-SHA256'); + TLS1_TXT_DH_DSS_WITH_AES_128_SHA256 = AnsiString('DH-DSS-AES128-SHA256'); + TLS1_TXT_DH_RSA_WITH_AES_128_SHA256 = AnsiString('DH-RSA-AES128-SHA256'); + TLS1_TXT_DHE_DSS_WITH_AES_128_SHA256 = AnsiString('DHE-DSS-AES128-SHA256'); + TLS1_TXT_DHE_RSA_WITH_AES_128_SHA256 = AnsiString('DHE-RSA-AES128-SHA256'); + TLS1_TXT_DH_DSS_WITH_AES_256_SHA256 = AnsiString('DH-DSS-AES256-SHA256'); + TLS1_TXT_DH_RSA_WITH_AES_256_SHA256 = AnsiString('DH-RSA-AES256-SHA256'); + TLS1_TXT_DHE_DSS_WITH_AES_256_SHA256 = AnsiString('DHE-DSS-AES256-SHA256'); + TLS1_TXT_DHE_RSA_WITH_AES_256_SHA256 = AnsiString('DHE-RSA-AES256-SHA256'); + TLS1_TXT_ADH_WITH_AES_128_SHA256 = AnsiString('ADH-AES128-SHA256'); + TLS1_TXT_ADH_WITH_AES_256_SHA256 = AnsiString('ADH-AES256-SHA256'); + + (* TLS v1.2 GCM ciphersuites from RFC5288 *) + TLS1_TXT_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('AES128-GCM-SHA256'); + TLS1_TXT_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('AES256-GCM-SHA384'); + TLS1_TXT_DHE_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('DHE-RSA-AES128-GCM-SHA256'); + TLS1_TXT_DHE_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('DHE-RSA-AES256-GCM-SHA384'); + TLS1_TXT_DH_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('DH-RSA-AES128-GCM-SHA256'); + TLS1_TXT_DH_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('DH-RSA-AES256-GCM-SHA384'); + TLS1_TXT_DHE_DSS_WITH_AES_128_GCM_SHA256 = AnsiString('DHE-DSS-AES128-GCM-SHA256'); + TLS1_TXT_DHE_DSS_WITH_AES_256_GCM_SHA384 = AnsiString('DHE-DSS-AES256-GCM-SHA384'); + TLS1_TXT_DH_DSS_WITH_AES_128_GCM_SHA256 = AnsiString('DH-DSS-AES128-GCM-SHA256'); + TLS1_TXT_DH_DSS_WITH_AES_256_GCM_SHA384 = AnsiString('DH-DSS-AES256-GCM-SHA384'); + TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256 = AnsiString('ADH-AES128-GCM-SHA256'); + TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384 = AnsiString('ADH-AES256-GCM-SHA384'); + + (* CCM ciphersuites from RFC6655 *) + TLS1_TXT_RSA_WITH_AES_128_CCM = AnsiString('AES128-CCM'); + TLS1_TXT_RSA_WITH_AES_256_CCM = AnsiString('AES256-CCM'); + TLS1_TXT_DHE_RSA_WITH_AES_128_CCM = AnsiString('DHE-RSA-AES128-CCM'); + TLS1_TXT_DHE_RSA_WITH_AES_256_CCM = AnsiString('DHE-RSA-AES256-CCM'); + + TLS1_TXT_RSA_WITH_AES_128_CCM_8 = AnsiString('AES128-CCM8'); + TLS1_TXT_RSA_WITH_AES_256_CCM_8 = AnsiString('AES256-CCM8'); + TLS1_TXT_DHE_RSA_WITH_AES_128_CCM_8 = AnsiString('DHE-RSA-AES128-CCM8'); + TLS1_TXT_DHE_RSA_WITH_AES_256_CCM_8 = AnsiString('DHE-RSA-AES256-CCM8'); + + TLS1_TXT_PSK_WITH_AES_128_CCM = AnsiString('PSK-AES128-CCM'); + TLS1_TXT_PSK_WITH_AES_256_CCM = AnsiString('PSK-AES256-CCM'); + TLS1_TXT_DHE_PSK_WITH_AES_128_CCM = AnsiString('DHE-PSK-AES128-CCM'); + TLS1_TXT_DHE_PSK_WITH_AES_256_CCM = AnsiString('DHE-PSK-AES256-CCM'); + + TLS1_TXT_PSK_WITH_AES_128_CCM_8 = AnsiString('PSK-AES128-CCM8'); + TLS1_TXT_PSK_WITH_AES_256_CCM_8 = AnsiString('PSK-AES256-CCM8'); + TLS1_TXT_DHE_PSK_WITH_AES_128_CCM_8 = AnsiString('DHE-PSK-AES128-CCM8'); + TLS1_TXT_DHE_PSK_WITH_AES_256_CCM_8 = AnsiString('DHE-PSK-AES256-CCM8'); + + (* CCM ciphersuites from RFC7251 *) + TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM = AnsiString('ECDHE-ECDSA-AES128-CCM'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM = AnsiString('ECDHE-ECDSA-AES256-CCM'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM_8 = AnsiString('ECDHE-ECDSA-AES128-CCM8'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM_8 = AnsiString('ECDHE-ECDSA-AES256-CCM8'); + + (* ECDH HMAC based ciphersuites from RFC5289 *) + TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256 = AnsiString('ECDHE-ECDSA-AES128-SHA256'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_SHA384 = AnsiString('ECDHE-ECDSA-AES256-SHA384'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_128_SHA256 = AnsiString('ECDH-ECDSA-AES128-SHA256'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_256_SHA384 = AnsiString('ECDH-ECDSA-AES256-SHA384'); + TLS1_TXT_ECDHE_RSA_WITH_AES_128_SHA256 = AnsiString('ECDHE-RSA-AES128-SHA256'); + TLS1_TXT_ECDHE_RSA_WITH_AES_256_SHA384 = AnsiString('ECDHE-RSA-AES256-SHA384'); + TLS1_TXT_ECDH_RSA_WITH_AES_128_SHA256 = AnsiString('ECDH-RSA-AES128-SHA256'); + TLS1_TXT_ECDH_RSA_WITH_AES_256_SHA384 = AnsiString('ECDH-RSA-AES256-SHA384'); + + (* ECDH GCM based ciphersuites from RFC5289 *) + TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = AnsiString('ECDHE-ECDSA-AES128-GCM-SHA256'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = AnsiString('ECDHE-ECDSA-AES256-GCM-SHA384'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = AnsiString('ECDH-ECDSA-AES128-GCM-SHA256'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = AnsiString('ECDH-ECDSA-AES256-GCM-SHA384'); + TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('ECDHE-RSA-AES128-GCM-SHA256'); + TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('ECDHE-RSA-AES256-GCM-SHA384'); + TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('ECDH-RSA-AES128-GCM-SHA256'); + TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('ECDH-RSA-AES256-GCM-SHA384'); + + (* TLS v1.2 PSK GCM ciphersuites from RFC5487 *) + //TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('PSK-AES128-GCM-SHA256'); + //TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('PSK-AES256-GCM-SHA384'); + + (* ECDHE PSK ciphersuites from RFC 5489 *) + TLS1_TXT_ECDHE_PSK_WITH_RC4_128_SHA = AnsiString('ECDHE-PSK-RC4-SHA'); + TLS1_TXT_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('ECDHE-PSK-3DES-EDE-CBC-SHA'); + TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA = AnsiString('ECDHE-PSK-AES128-CBC-SHA'); + TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA = AnsiString('ECDHE-PSK-AES256-CBC-SHA'); + + TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('ECDHE-PSK-AES128-CBC-SHA256'); + TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('ECDHE-PSK-AES256-CBC-SHA384'); + + TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA = AnsiString('ECDHE-PSK-NULL-SHA'); + TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA256 = AnsiString('ECDHE-PSK-NULL-SHA256'); + TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA384 = AnsiString('ECDHE-PSK-NULL-SHA384'); + + (* Camellia-CBC ciphersuites from RFC6367 *) + TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ECDHE-ECDSA-CAMELLIA128-SHA256'); + TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('ECDHE-ECDSA-CAMELLIA256-SHA384'); + TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ECDH-ECDSA-CAMELLIA128-SHA256'); + TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('ECDH-ECDSA-CAMELLIA256-SHA384'); + TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ECDHE-RSA-CAMELLIA128-SHA256'); + TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('ECDHE-RSA-CAMELLIA256-SHA384'); + TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ECDH-RSA-CAMELLIA128-SHA256'); + TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('ECDH-RSA-CAMELLIA256-SHA384'); + + (* draft-ietf-tls-chacha20-poly1305-03 *) + TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305 = AnsiString('ECDHE-RSA-CHACHA20-POLY1305'); + TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 = AnsiString('ECDHE-ECDSA-CHACHA20-POLY1305'); + TLS1_TXT_DHE_RSA_WITH_CHACHA20_POLY1305 = AnsiString('DHE-RSA-CHACHA20-POLY1305'); + TLS1_TXT_PSK_WITH_CHACHA20_POLY1305 = AnsiString('PSK-CHACHA20-POLY1305'); + TLS1_TXT_ECDHE_PSK_WITH_CHACHA20_POLY1305 = AnsiString('ECDHE-PSK-CHACHA20-POLY1305'); + TLS1_TXT_DHE_PSK_WITH_CHACHA20_POLY1305 = AnsiString('DHE-PSK-CHACHA20-POLY1305'); + TLS1_TXT_RSA_PSK_WITH_CHACHA20_POLY1305 = AnsiString('RSA-PSK-CHACHA20-POLY1305'); + + (* Aria ciphersuites from RFC6209 *) + TLS1_TXT_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('ARIA128-GCM-SHA256'); + TLS1_TXT_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('ARIA256-GCM-SHA384'); + TLS1_TXT_DHE_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('DHE-RSA-ARIA128-GCM-SHA256'); + TLS1_TXT_DHE_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('DHE-RSA-ARIA256-GCM-SHA384'); + TLS1_TXT_DH_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('DH-RSA-ARIA128-GCM-SHA256'); + TLS1_TXT_DH_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('DH-RSA-ARIA256-GCM-SHA384'); + TLS1_TXT_DHE_DSS_WITH_ARIA_128_GCM_SHA256 = AnsiString('DHE-DSS-ARIA128-GCM-SHA256'); + TLS1_TXT_DHE_DSS_WITH_ARIA_256_GCM_SHA384 = AnsiString('DHE-DSS-ARIA256-GCM-SHA384'); + TLS1_TXT_DH_DSS_WITH_ARIA_128_GCM_SHA256 = AnsiString('DH-DSS-ARIA128-GCM-SHA256'); + TLS1_TXT_DH_DSS_WITH_ARIA_256_GCM_SHA384 = AnsiString('DH-DSS-ARIA256-GCM-SHA384'); + TLS1_TXT_DH_anon_WITH_ARIA_128_GCM_SHA256 = AnsiString('ADH-ARIA128-GCM-SHA256'); + TLS1_TXT_DH_anon_WITH_ARIA_256_GCM_SHA384 = AnsiString('ADH-ARIA256-GCM-SHA384'); + TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('ECDHE-ECDSA-ARIA128-GCM-SHA256'); + TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('ECDHE-ECDSA-ARIA256-GCM-SHA384'); + TLS1_TXT_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('ECDH-ECDSA-ARIA128-GCM-SHA256'); + TLS1_TXT_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('ECDH-ECDSA-ARIA256-GCM-SHA384'); + TLS1_TXT_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('ECDHE-ARIA128-GCM-SHA256'); + TLS1_TXT_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('ECDHE-ARIA256-GCM-SHA384'); + TLS1_TXT_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('ECDH-ARIA128-GCM-SHA256'); + TLS1_TXT_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('ECDH-ARIA256-GCM-SHA384'); + TLS1_TXT_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('PSK-ARIA128-GCM-SHA256'); + TLS1_TXT_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('PSK-ARIA256-GCM-SHA384'); + TLS1_TXT_DHE_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('DHE-PSK-ARIA128-GCM-SHA256'); + TLS1_TXT_DHE_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('DHE-PSK-ARIA256-GCM-SHA384'); + TLS1_TXT_RSA_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('RSA-PSK-ARIA128-GCM-SHA256'); + TLS1_TXT_RSA_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('RSA-PSK-ARIA256-GCM-SHA384'); + + TLS_CT_RSA_SIGN = 1; + TLS_CT_DSS_SIGN = 2; + TLS_CT_RSA_FIXED_DH = 3; + TLS_CT_DSS_FIXED_DH = 4; + TLS_CT_ECDSA_SIGN = 64; + TLS_CT_RSA_FIXED_ECDH = 65; + TLS_CT_ECDSA_FIXED_ECDH = 66; + TLS_CT_GOST01_SIGN = 22; + TLS_CT_GOST12_SIGN = 238; + TLS_CT_GOST12_512_SIGN = 239; + + (* + * when correcting this number, correct also SSL3_CT_NUMBER in ssl3.h (see + * comment there) + *) + TLS_CT_NUMBER = 10; + + TLS1_FINISH_MAC_LENGTH = 12; + + TLS_MD_MAX_CONST_SIZE = 22; + TLS_MD_CLIENT_FINISH_CONST = AnsiString('client finished'); + TLS_MD_CLIENT_FINISH_CONST_SIZE = 15; + TLS_MD_SERVER_FINISH_CONST = AnsiString('server finished'); + TLS_MD_SERVER_FINISH_CONST_SIZE = 15; + TLS_MD_KEY_EXPANSION_CONST = AnsiString('key expansion'); + TLS_MD_KEY_EXPANSION_CONST_SIZE = 13; + TLS_MD_CLIENT_WRITE_KEY_CONST = AnsiString('client write key'); + TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE = 16; + TLS_MD_SERVER_WRITE_KEY_CONST = AnsiString('server write key'); + TLS_MD_SERVER_WRITE_KEY_CONST_SIZE = 16; + TLS_MD_IV_BLOCK_CONST = AnsiString('IV block'); + TLS_MD_IV_BLOCK_CONST_SIZE = 8; + TLS_MD_MASTER_SECRET_CONST = AnsiString('master secret'); + TLS_MD_MASTER_SECRET_CONST_SIZE = 13; + TLS_MD_EXTENDED_MASTER_SECRET_CONST = AnsiString('extended master secret'); + TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE = 22; + +// (* +// * client finished +// *) +// TLS_MD_CLIENT_FINISH_CONST = TIdAnsiChar($63) + TIdAnsiChar($6c) + TIdAnsiChar($69) + TIdAnsiChar($65) + TIdAnsiChar($6e) + TIdAnsiChar($74) + TIdAnsiChar($20) + TIdAnsiChar($66) + TIdAnsiChar($69) + TIdAnsiChar($6e) + TIdAnsiChar($69) + TIdAnsiChar($73) + TIdAnsiChar($68) + TIdAnsiChar($65) + TIdAnsiChar($64); +// +// (* +// * server finished +// *) +// TLS_MD_SERVER_FINISH_CONST = TIdAnsiChar($73) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($76) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($20) + TIdAnsiChar($66) + TIdAnsiChar($69) + TIdAnsiChar($6e) + TIdAnsiChar($69) + TIdAnsiChar($73) + TIdAnsiChar($68) + TIdAnsiChar($65) + TIdAnsiChar($64); +// +// (* +// * server write key +// *) +// TLS_MD_SERVER_WRITE_KEY_CONST = TIdAnsiChar($73) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($76) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($20) + TIdAnsiChar($77) + TIdAnsiChar($72) + TIdAnsiChar($69) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($20) + TIdAnsiChar($6b) + TIdAnsiChar($65) + TIdAnsiChar($79); +// +// (* +// * key expansion +// *) +// TLS_MD_KEY_EXPANSION_CONST = TIdAnsiChar($6b) + TIdAnsiChar($65) + TIdAnsiChar($79) + TIdAnsiChar($20) + TIdAnsiChar($65) + TIdAnsiChar($78) + TIdAnsiChar($70) + TIdAnsiChar($61) + TIdAnsiChar($6e) + TIdAnsiChar($73) + TIdAnsiChar($69) + TIdAnsiChar($6f) + TIdAnsiChar($6e); +// +// (* +// * client write key +// *) +// TLS_MD_CLIENT_WRITE_KEY_CONST = TIdAnsiChar($63) + TIdAnsiChar($6c) + TIdAnsiChar($69) + TIdAnsiChar($65) + TIdAnsiChar($6e) + TIdAnsiChar($74) + TIdAnsiChar($20) + TIdAnsiChar($77) + TIdAnsiChar($72) + TIdAnsiChar($69) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($20) + TIdAnsiChar($6b) + TIdAnsiChar($65) + TIdAnsiChar($79); +// +// (* +// * server write key +// *) +// TLS_MD_SERVER_WRITE_KEY_CONST = TIdAnsiChar($73) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($76) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($20) + TIdAnsiChar($77) + TIdAnsiChar($72) + TIdAnsiChar($69) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($20) + TIdAnsiChar($6b) + TIdAnsiChar($65) + TIdAnsiChar($79); +// +// (* +// * IV block +// *) +// TLS_MD_IV_BLOCK_CONST = TIdAnsiChar($49) + TIdAnsiChar($56) + TIdAnsiChar($20) + TIdAnsiChar($62) + TIdAnsiChar($6c) + TIdAnsiChar($6f) + TIdAnsiChar($63) + TIdAnsiChar($6b); +// +// (* +// * master secret +// *) +// TLS_MD_MASTER_SECRET_CONST = TIdAnsiChar($6d) + TIdAnsiChar($61) + TIdAnsiChar($73) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($20) + TIdAnsiChar($73) + TIdAnsiChar($65) + TIdAnsiChar($63) + TIdAnsiChar($72) + TIdAnsiChar($65) + TIdAnsiChar($74); +// +// (* +// * extended master secret +// *) +// TLS_MD_EXTENDED_MASTER_SECRET_CONST = TIdAnsiChar($65) + TIdAnsiChar($78) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($6e) + TIdAnsiChar($64) + TIdAnsiChar($65) + TIdAnsiChar($64) + TIdAnsiChar($20) + TIdAnsiChar($6d) + TIdAnsiChar($61) + TIdAnsiChar($73) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($20) + TIdAnsiChar($73) + TIdAnsiChar($65) + TIdAnsiChar($63) + TIdAnsiChar($72) + TIdAnsiChar($65) + TIdAnsiChar($74); + +type + (* TLS Session Ticket extension struct *) + tls_session_ticket_ext_st = record + length: TIdC_USHORT; + data: Pointer; + end; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM SSL_CTX_set_tlsext_max_fragment_length} {introduced 1.1.0} + {$EXTERNALSYM SSL_set_tlsext_max_fragment_length} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_servername} + {$EXTERNALSYM SSL_get_servername_type} + {$EXTERNALSYM SSL_export_keying_material} + {$EXTERNALSYM SSL_export_keying_material_early} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_peer_signature_type_nid} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_signature_type_nid} {introduced 1.1.0} + {$EXTERNALSYM SSL_get_sigalgs} + {$EXTERNALSYM SSL_get_shared_sigalgs} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + {$EXTERNALSYM SSL_set_tlsext_host_name} {removed 1.0.0} + SSL_set_tlsext_host_name: function(s: PSSL; const name: PIdAnsiChar): TIdC_LONG; cdecl = nil; {removed 1.0.0} + + SSL_CTX_set_tlsext_max_fragment_length: function(ctx: PSSL_CTx; mode: TIdC_UINT8): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_set_tlsext_max_fragment_length: function(ssl: PSSL; mode: TIdC_UINT8): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSL_get_servername: function(const s: PSSL; const type_: TIdC_INT): PIdAnsiChar; cdecl = nil; + SSL_get_servername_type: function(const s: PSSL): TIdC_INT; cdecl = nil; + (* + * SSL_export_keying_material exports a value derived from the master secret, + * as specified in RFC 5705. It writes |olen| bytes to |out| given a label and + * optional context. (Since a zero length context is allowed, the |use_context| + * flag controls whether a context is included.) It returns 1 on success and + * 0 or -1 otherwise. + *) + SSL_export_keying_material: function(s: PSSL; out_: PByte; olen: TIdC_SIZET; const label_: PIdAnsiChar; llen: TIdC_SIZET; const context: PByte; contextlen: TIdC_SIZET; use_context: TIdC_INT): TIdC_INT; cdecl = nil; + + (* + * SSL_export_keying_material_early exports a value derived from the + * early exporter master secret, as specified in + * https://tools.ietf.org/html/draft-ietf-tls-tls13-23. It writes + * |olen| bytes to |out| given a label and optional context. It + * returns 1 on success and 0 otherwise. + *) + SSL_export_keying_material_early: function(s: PSSL; out_: PByte; olen: TIdC_SIZET; const label_: PIdAnsiChar; llen: TIdC_SIZET; const context: PByte; contextlen: TIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + SSL_get_peer_signature_type_nid: function(const s: PSSl; pnid: PIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get_signature_type_nid: function(const s: PSSl; pnid: PIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + SSL_get_sigalgs: function(s: PSSl; idx: TIdC_INT; psign: PIdC_INT; phash: PIdC_INT; psignandhash: PIdC_INT; rsig: PByte; rhash: PByte): TIdC_INT; cdecl = nil; + SSL_get_shared_sigalgs: function(s: PSSl; idx: TIdC_INT; psign: PIdC_INT; phash: PIdC_INT; psignandhash: PIdC_INT; rsig: PByte; rhash: PByte): TIdC_INT; cdecl = nil; + + //__owur TIdC_INT SSL_check_chain(s: PSSL, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain); + + //# define SSL_set_tlsext_debug_callback(ssl, cb) \ + // SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,\ + // (void (*)(void))cb) + + //# define SSL_set_tlsext_debug_arg(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg) + // + //# define SSL_get_tlsext_status_type(ssl) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL) + // + //# define SSL_set_tlsext_status_type(ssl, type) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL) + // + //# define SSL_get_tlsext_status_exts(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS,0,arg) + // + //# define SSL_set_tlsext_status_exts(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS,0,arg) + // + //# define SSL_get_tlsext_status_ids(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS,0,arg) + // + //# define SSL_set_tlsext_status_ids(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS,0,arg) + // + //# define SSL_get_tlsext_status_ocsp_resp(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP,0,arg) + // + //# define SSL_set_tlsext_status_ocsp_resp(ssl, arg, arglen) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP,arglen,arg) + // + //# define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \ + // SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_CB,\ + // (void (*)(void))cb) + + //# define SSL_CTX_set_tlsext_servername_arg(ctx, arg) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG,0,arg) + // + //# define SSL_CTX_get_tlsext_ticket_keys(ctx, keys, keylen) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_GET_TLSEXT_TICKET_KEYS,keylen,keys) + //# define SSL_CTX_set_tlsext_ticket_keys(ctx, keys, keylen) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_TICKET_KEYS,keylen,keys) + // + //# define SSL_CTX_get_tlsext_status_cb(ssl, cb) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB,0,(void *)cb) + //# define SSL_CTX_set_tlsext_status_cb(ssl, cb) \ + // SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB,\ + // (void (*)(void))cb) + + //# define SSL_CTX_get_tlsext_status_arg(ssl, arg) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG,0,arg) + //# define SSL_CTX_set_tlsext_status_arg(ssl, arg) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG,0,arg) + // + //# define SSL_CTX_set_tlsext_status_type(ssl, type) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL) + // + //# define SSL_CTX_get_tlsext_status_type(ssl) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL) + // + //# define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \ + // SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,\ + // (void (*)(void))cb) + +{$ELSE} + + function SSL_CTX_set_tlsext_max_fragment_length(ctx: PSSL_CTx; mode: TIdC_UINT8): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_set_tlsext_max_fragment_length(ssl: PSSL; mode: TIdC_UINT8): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_get_servername(const s: PSSL; const type_: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_servername_type(const s: PSSL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + (* + * SSL_export_keying_material exports a value derived from the master secret, + * as specified in RFC 5705. It writes |olen| bytes to |out| given a label and + * optional context. (Since a zero length context is allowed, the |use_context| + * flag controls whether a context is included.) It returns 1 on success and + * 0 or -1 otherwise. + *) + function SSL_export_keying_material(s: PSSL; out_: PByte; olen: TIdC_SIZET; const label_: PIdAnsiChar; llen: TIdC_SIZET; const context: PByte; contextlen: TIdC_SIZET; use_context: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + (* + * SSL_export_keying_material_early exports a value derived from the + * early exporter master secret, as specified in + * https://tools.ietf.org/html/draft-ietf-tls-tls13-23. It writes + * |olen| bytes to |out| given a label and optional context. It + * returns 1 on success and 0 otherwise. + *) + function SSL_export_keying_material_early(s: PSSL; out_: PByte; olen: TIdC_SIZET; const label_: PIdAnsiChar; llen: TIdC_SIZET; const context: PByte; contextlen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + + function SSL_get_peer_signature_type_nid(const s: PSSl; pnid: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_signature_type_nid(const s: PSSl; pnid: PIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; {introduced 1.1.0} + function SSL_get_sigalgs(s: PSSl; idx: TIdC_INT; psign: PIdC_INT; phash: PIdC_INT; psignandhash: PIdC_INT; rsig: PByte; rhash: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + function SSL_get_shared_sigalgs(s: PSSl; idx: TIdC_INT; psign: PIdC_INT; phash: PIdC_INT; psignandhash: PIdC_INT; rsig: PByte; rhash: PByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibSSL{$ENDIF}; + + //__owur TIdC_INT SSL_check_chain(s: PSSL, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain); + + //# define SSL_set_tlsext_debug_callback(ssl, cb) \ + // SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,\ + // (void (*)(void))cb) + + //# define SSL_set_tlsext_debug_arg(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg) + // + //# define SSL_get_tlsext_status_type(ssl) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL) + // + //# define SSL_set_tlsext_status_type(ssl, type) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL) + // + //# define SSL_get_tlsext_status_exts(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS,0,arg) + // + //# define SSL_set_tlsext_status_exts(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS,0,arg) + // + //# define SSL_get_tlsext_status_ids(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS,0,arg) + // + //# define SSL_set_tlsext_status_ids(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS,0,arg) + // + //# define SSL_get_tlsext_status_ocsp_resp(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP,0,arg) + // + //# define SSL_set_tlsext_status_ocsp_resp(ssl, arg, arglen) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP,arglen,arg) + // + //# define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \ + // SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_CB,\ + // (void (*)(void))cb) + + //# define SSL_CTX_set_tlsext_servername_arg(ctx, arg) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG,0,arg) + // + //# define SSL_CTX_get_tlsext_ticket_keys(ctx, keys, keylen) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_GET_TLSEXT_TICKET_KEYS,keylen,keys) + //# define SSL_CTX_set_tlsext_ticket_keys(ctx, keys, keylen) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_TICKET_KEYS,keylen,keys) + // + //# define SSL_CTX_get_tlsext_status_cb(ssl, cb) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB,0,(void *)cb) + //# define SSL_CTX_set_tlsext_status_cb(ssl, cb) \ + // SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB,\ + // (void (*)(void))cb) + + //# define SSL_CTX_get_tlsext_status_arg(ssl, arg) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG,0,arg) + //# define SSL_CTX_set_tlsext_status_arg(ssl, arg) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG,0,arg) + // + //# define SSL_CTX_set_tlsext_status_type(ssl, type) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL) + // + //# define SSL_CTX_get_tlsext_status_type(ssl) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL) + // + //# define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \ + // SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,\ + // (void (*)(void))cb) + +function SSL_set_tlsext_host_name(s: PSSL; const name: PIdAnsiChar): TIdC_LONG; {removed 1.0.0} +{$ENDIF} + +implementation + +uses + {$IFNDEF USE_EXTERNAL_LIBRARY} + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader, + {$ENDIF} + IdOpenSSLHeaders_ssl; + +const + SSL_CTX_set_tlsext_max_fragment_length_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_tlsext_max_fragment_length_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_export_keying_material_early_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_peer_signature_type_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_get_signature_type_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + SSL_set_tlsext_host_name_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + + +//# define SSL_set_tlsext_host_name(s,name) SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name, (void *)name) +{$IFNDEF USE_EXTERNAL_LIBRARY} + + +//# define SSL_set_tlsext_host_name(s,name) SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name, (void *)name) +function _SSL_set_tlsext_host_name(s: PSSL; const name: PIdAnsiChar): TIdC_LONG; cdecl; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_TLSEXT_HOSTNAME, TLSEXT_NAMETYPE_host_name, Pointer(name)); +end; + +{$WARN NO_RETVAL OFF} +function ERR_SSL_set_tlsext_host_name(s: PSSL; const name: PIdAnsiChar): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_tlsext_host_name'); +end; + + +function ERR_SSL_CTX_set_tlsext_max_fragment_length(ctx: PSSL_CTx; mode: TIdC_UINT8): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_CTX_set_tlsext_max_fragment_length'); +end; + + +function ERR_SSL_set_tlsext_max_fragment_length(ssl: PSSL; mode: TIdC_UINT8): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_set_tlsext_max_fragment_length'); +end; + + +function ERR_SSL_export_keying_material_early(s: PSSL; out_: PByte; olen: TIdC_SIZET; const label_: PIdAnsiChar; llen: TIdC_SIZET; const context: PByte; contextlen: TIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_export_keying_material_early'); +end; + + +function ERR_SSL_get_peer_signature_type_nid(const s: PSSl; pnid: PIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_peer_signature_type_nid'); +end; + + +function ERR_SSL_get_signature_type_nid(const s: PSSl; pnid: PIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('SSL_get_signature_type_nid'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + SSL_get_servername := LoadFunction('SSL_get_servername',AFailed); + SSL_get_servername_type := LoadFunction('SSL_get_servername_type',AFailed); + SSL_export_keying_material := LoadFunction('SSL_export_keying_material',AFailed); + SSL_get_sigalgs := LoadFunction('SSL_get_sigalgs',AFailed); + SSL_get_shared_sigalgs := LoadFunction('SSL_get_shared_sigalgs',AFailed); + SSL_set_tlsext_host_name := LoadFunction('SSL_set_tlsext_host_name',nil); {removed 1.0.0} + SSL_CTX_set_tlsext_max_fragment_length := LoadFunction('SSL_CTX_set_tlsext_max_fragment_length',nil); {introduced 1.1.0} + SSL_set_tlsext_max_fragment_length := LoadFunction('SSL_set_tlsext_max_fragment_length',nil); {introduced 1.1.0} + SSL_export_keying_material_early := LoadFunction('SSL_export_keying_material_early',nil); {introduced 1.1.0} + SSL_get_peer_signature_type_nid := LoadFunction('SSL_get_peer_signature_type_nid',nil); {introduced 1.1.0} + SSL_get_signature_type_nid := LoadFunction('SSL_get_signature_type_nid',nil); {introduced 1.1.0} + if not assigned(SSL_set_tlsext_host_name) then + begin + {$if declared(SSL_set_tlsext_host_name_introduced)} + if LibVersion < SSL_set_tlsext_host_name_introduced then + {$if declared(FC_SSL_set_tlsext_host_name)} + SSL_set_tlsext_host_name := @FC_SSL_set_tlsext_host_name + {$else} + SSL_set_tlsext_host_name := @ERR_SSL_set_tlsext_host_name + {$ifend} + else + {$ifend} + {$if declared(SSL_set_tlsext_host_name_removed)} + if SSL_set_tlsext_host_name_removed <= LibVersion then + {$if declared(_SSL_set_tlsext_host_name)} + SSL_set_tlsext_host_name := @_SSL_set_tlsext_host_name + {$else} + {$IF declared(ERR_SSL_set_tlsext_host_name)} + SSL_set_tlsext_host_name := @ERR_SSL_set_tlsext_host_name + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_tlsext_host_name) and Assigned(AFailed) then + AFailed.Add('SSL_set_tlsext_host_name'); + end; + + + if not assigned(SSL_CTX_set_tlsext_max_fragment_length) then + begin + {$if declared(SSL_CTX_set_tlsext_max_fragment_length_introduced)} + if LibVersion < SSL_CTX_set_tlsext_max_fragment_length_introduced then + {$if declared(FC_SSL_CTX_set_tlsext_max_fragment_length)} + SSL_CTX_set_tlsext_max_fragment_length := @FC_SSL_CTX_set_tlsext_max_fragment_length + {$else} + SSL_CTX_set_tlsext_max_fragment_length := @ERR_SSL_CTX_set_tlsext_max_fragment_length + {$ifend} + else + {$ifend} + {$if declared(SSL_CTX_set_tlsext_max_fragment_length_removed)} + if SSL_CTX_set_tlsext_max_fragment_length_removed <= LibVersion then + {$if declared(_SSL_CTX_set_tlsext_max_fragment_length)} + SSL_CTX_set_tlsext_max_fragment_length := @_SSL_CTX_set_tlsext_max_fragment_length + {$else} + {$IF declared(ERR_SSL_CTX_set_tlsext_max_fragment_length)} + SSL_CTX_set_tlsext_max_fragment_length := @ERR_SSL_CTX_set_tlsext_max_fragment_length + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_CTX_set_tlsext_max_fragment_length) and Assigned(AFailed) then + AFailed.Add('SSL_CTX_set_tlsext_max_fragment_length'); + end; + + + if not assigned(SSL_set_tlsext_max_fragment_length) then + begin + {$if declared(SSL_set_tlsext_max_fragment_length_introduced)} + if LibVersion < SSL_set_tlsext_max_fragment_length_introduced then + {$if declared(FC_SSL_set_tlsext_max_fragment_length)} + SSL_set_tlsext_max_fragment_length := @FC_SSL_set_tlsext_max_fragment_length + {$else} + SSL_set_tlsext_max_fragment_length := @ERR_SSL_set_tlsext_max_fragment_length + {$ifend} + else + {$ifend} + {$if declared(SSL_set_tlsext_max_fragment_length_removed)} + if SSL_set_tlsext_max_fragment_length_removed <= LibVersion then + {$if declared(_SSL_set_tlsext_max_fragment_length)} + SSL_set_tlsext_max_fragment_length := @_SSL_set_tlsext_max_fragment_length + {$else} + {$IF declared(ERR_SSL_set_tlsext_max_fragment_length)} + SSL_set_tlsext_max_fragment_length := @ERR_SSL_set_tlsext_max_fragment_length + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_set_tlsext_max_fragment_length) and Assigned(AFailed) then + AFailed.Add('SSL_set_tlsext_max_fragment_length'); + end; + + + if not assigned(SSL_export_keying_material_early) then + begin + {$if declared(SSL_export_keying_material_early_introduced)} + if LibVersion < SSL_export_keying_material_early_introduced then + {$if declared(FC_SSL_export_keying_material_early)} + SSL_export_keying_material_early := @FC_SSL_export_keying_material_early + {$else} + SSL_export_keying_material_early := @ERR_SSL_export_keying_material_early + {$ifend} + else + {$ifend} + {$if declared(SSL_export_keying_material_early_removed)} + if SSL_export_keying_material_early_removed <= LibVersion then + {$if declared(_SSL_export_keying_material_early)} + SSL_export_keying_material_early := @_SSL_export_keying_material_early + {$else} + {$IF declared(ERR_SSL_export_keying_material_early)} + SSL_export_keying_material_early := @ERR_SSL_export_keying_material_early + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_export_keying_material_early) and Assigned(AFailed) then + AFailed.Add('SSL_export_keying_material_early'); + end; + + + if not assigned(SSL_get_peer_signature_type_nid) then + begin + {$if declared(SSL_get_peer_signature_type_nid_introduced)} + if LibVersion < SSL_get_peer_signature_type_nid_introduced then + {$if declared(FC_SSL_get_peer_signature_type_nid)} + SSL_get_peer_signature_type_nid := @FC_SSL_get_peer_signature_type_nid + {$else} + SSL_get_peer_signature_type_nid := @ERR_SSL_get_peer_signature_type_nid + {$ifend} + else + {$ifend} + {$if declared(SSL_get_peer_signature_type_nid_removed)} + if SSL_get_peer_signature_type_nid_removed <= LibVersion then + {$if declared(_SSL_get_peer_signature_type_nid)} + SSL_get_peer_signature_type_nid := @_SSL_get_peer_signature_type_nid + {$else} + {$IF declared(ERR_SSL_get_peer_signature_type_nid)} + SSL_get_peer_signature_type_nid := @ERR_SSL_get_peer_signature_type_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_peer_signature_type_nid) and Assigned(AFailed) then + AFailed.Add('SSL_get_peer_signature_type_nid'); + end; + + + if not assigned(SSL_get_signature_type_nid) then + begin + {$if declared(SSL_get_signature_type_nid_introduced)} + if LibVersion < SSL_get_signature_type_nid_introduced then + {$if declared(FC_SSL_get_signature_type_nid)} + SSL_get_signature_type_nid := @FC_SSL_get_signature_type_nid + {$else} + SSL_get_signature_type_nid := @ERR_SSL_get_signature_type_nid + {$ifend} + else + {$ifend} + {$if declared(SSL_get_signature_type_nid_removed)} + if SSL_get_signature_type_nid_removed <= LibVersion then + {$if declared(_SSL_get_signature_type_nid)} + SSL_get_signature_type_nid := @_SSL_get_signature_type_nid + {$else} + {$IF declared(ERR_SSL_get_signature_type_nid)} + SSL_get_signature_type_nid := @ERR_SSL_get_signature_type_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(SSL_get_signature_type_nid) and Assigned(AFailed) then + AFailed.Add('SSL_get_signature_type_nid'); + end; + + +end; + +procedure Unload; +begin + SSL_set_tlsext_host_name := nil; {removed 1.0.0} + SSL_CTX_set_tlsext_max_fragment_length := nil; {introduced 1.1.0} + SSL_set_tlsext_max_fragment_length := nil; {introduced 1.1.0} + SSL_get_servername := nil; + SSL_get_servername_type := nil; + SSL_export_keying_material := nil; + SSL_export_keying_material_early := nil; {introduced 1.1.0} + SSL_get_peer_signature_type_nid := nil; {introduced 1.1.0} + SSL_get_signature_type_nid := nil; {introduced 1.1.0} + SSL_get_sigalgs := nil; + SSL_get_shared_sigalgs := nil; +end; +{$ELSE} +function SSL_set_tlsext_host_name(s: PSSL; const name: PIdAnsiChar): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_TLSEXT_HOSTNAME, TLSEXT_NAMETYPE_host_name, Pointer(name)); +end; + +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibSSL'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ts.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ts.pas new file mode 100644 index 000000000..f660a6f1b --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ts.pas @@ -0,0 +1,1517 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_ts.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_ts.h2pas + and this file regenerated. IdOpenSSLHeaders_ts.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ts; + +interface + +// Headers for OpenSSL 1.1.1 +// ts.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_asn1, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_pkcs7, + IdOpenSSLHeaders_rsa, + IdOpenSSLHeaders_tserr, + IdOpenSSLHeaders_x509, + IdOpenSSLHeaders_x509v3; + +const + (* Possible values for status. *) + TS_STATUS_GRANTED = 0; + TS_STATUS_GRANTED_WITH_MODS = 1; + TS_STATUS_REJECTION = 2; + TS_STATUS_WAITING = 3; + TS_STATUS_REVOCATION_WARNING = 4; + TS_STATUS_REVOCATION_NOTIFICATION = 5; + + + (* Possible values for failure_info. *) + TS_INFO_BAD_ALG = 0; + TS_INFO_BAD_REQUEST = 2; + TS_INFO_BAD_DATA_FORMAT = 5; + TS_INFO_TIME_NOT_AVAILABLE = 14; + TS_INFO_UNACCEPTED_POLICY = 15; + TS_INFO_UNACCEPTED_EXTENSION = 16; + TS_INFO_ADD_INFO_NOT_AVAILABLE = 17; + TS_INFO_SYSTEM_FAILURE = 25; + + (* Optional flags for response generation. *) + + (* Don't include the TSA name in response. *) + TS_TSA_NAME = $01; + + (* Set ordering to true in response. *) + TS_ORDERING = $02; + + (* + * Include the signer certificate and the other specified certificates in + * the ESS signing certificate attribute beside the PKCS7 signed data. + * Only the signer certificates is included by default. + *) + TS_ESS_CERT_ID_CHAIN = $04; + + (* At most we accept usec precision. *) + TS_MAX_CLOCK_PRECISION_DIGITS = 6; + + (* Maximum status message length *) + TS_MAX_STATUS_LENGTH = 1024 * 1024; + + (* Verify the signer's certificate and the signature of the response. *) + TS_VFY_SIGNATURE = TIdC_UINT(1) shl 0; + (* Verify the version number of the response. *) + TS_VFY_VERSION = TIdC_UINT(1) shl 1; + (* Verify if the policy supplied by the user matches the policy of the TSA. *) + TS_VFY_POLICY = TIdC_UINT(1) shl 2; + (* + * Verify the message imprint provided by the user. This flag should not be + * specified with TS_VFY_DATA. + *) + TS_VFY_IMPRINT = TIdC_UINT(1) shl 3; + (* + * Verify the message imprint computed by the verify method from the user + * provided data and the MD algorithm of the response. This flag should not + * be specified with TS_VFY_IMPRINT. + *) + TS_VFY_DATA = TIdC_UINT(1) shl 4; + (* Verify the nonce value. *) + TS_VFY_NONCE = TIdC_UINT(1) shl 5; + (* Verify if the TSA name field matches the signer certificate. *) + TS_VFY_SIGNER = TIdC_UINT(1) shl 6; + (* Verify if the TSA name field equals to the user provided name. *) + TS_VFY_TSA_NAME = TIdC_UINT(1) shl 7; + + (* You can use the following convenience constants. *) + TS_VFY_ALL_IMPRINT = TS_VFY_SIGNATURE or TS_VFY_VERSION or TS_VFY_POLICY + or TS_VFY_IMPRINT or TS_VFY_NONCE or TS_VFY_SIGNER or TS_VFY_TSA_NAME; + + TS_VFY_ALL_DATA = TS_VFY_SIGNATURE or TS_VFY_VERSION or TS_VFY_POLICY + or TS_VFY_DATA or TS_VFY_NONCE or TS_VFY_SIGNER or TS_VFY_TSA_NAME; + +type + TS_msg_imprint_st = type Pointer; + TS_req_st = type Pointer; + TS_accuracy_st = type Pointer; + TS_tst_info_st = type Pointer; + + TS_MSG_IMPRINT = TS_msg_imprint_st; + PTS_MSG_IMPRINT = ^TS_MSG_IMPRINT; + PPTS_MSG_IMPRINT = ^PTS_MSG_IMPRINT; + + TS_REQ = TS_req_st; + PTS_REQ = ^TS_REQ; + PPTS_REQ = ^PTS_REQ; + + TS_ACCURACY = TS_accuracy_st; + PTS_ACCURACY = ^TS_ACCURACY; + PPTS_ACCURACY = ^PTS_ACCURACY; + + TS_TST_INFO = TS_tst_info_st; + PTS_TST_INFO = ^TS_TST_INFO; + PPTS_TST_INFO = ^PTS_TST_INFO; + + TS_status_info_st = type Pointer; + ESS_issuer_serial_st = type Pointer; + ESS_cert_id_st = type Pointer; + ESS_signing_cert_st = type Pointer; + ESS_cert_id_v2_st = type Pointer; + ESS_signing_cert_v2_st = type Pointer; + + TS_STATUS_INFO = TS_status_info_st; + PTS_STATUS_INFO = ^TS_STATUS_INFO; + PPTS_STATUS_INFO = ^PTS_STATUS_INFO; + + ESS_ISSUER_SERIAL = ESS_issuer_serial_st; + PESS_ISSUER_SERIAL = ^ESS_ISSUER_SERIAL; + PPESS_ISSUER_SERIAL = ^PESS_ISSUER_SERIAL; + + ESS_CERT_ID = ESS_cert_id_st; + PESS_CERT_ID = ^ESS_CERT_ID; + PPESS_CERT_ID = ^PESS_CERT_ID; + + ESS_SIGNING_CERT = ESS_signing_cert_st; + PESS_SIGNING_CERT = ^ESS_SIGNING_CERT; + PPESS_SIGNING_CERT = ^PESS_SIGNING_CERT; + +// DEFINE_STACK_OF(ESS_CERT_ID) + + ESS_CERT_ID_V2 = ESS_cert_id_v2_st; + PESS_CERT_ID_V2 = ^ESS_CERT_ID_V2; + PPESS_CERT_ID_V2 = ^PESS_CERT_ID_V2; + + ESS_SIGNING_CERT_V2 = ESS_signing_cert_v2_st; + PESS_SIGNING_CERT_V2 = ^ESS_SIGNING_CERT_V2; + PPESS_SIGNING_CERT_V2 = ^PESS_SIGNING_CERT_V2; + +// DEFINE_STACK_OF(ESS_CERT_ID_V2) + TS_resp_st = type Pointer; + TS_RESP = TS_resp_st; + PTS_RESP = ^TS_RESP; + PPTS_RESP = ^PTS_RESP; + + (* Forward declaration. *) + TS_resp_ctx = type Pointer; + PTS_resp_ctx = ^TS_resp_ctx; + PPTS_resp_ctx = ^PTS_resp_ctx; + + (* This must return a unique number less than 160 bits long. *) + TS_serial_cb = function({struct} v1: PTS_resp_ctx; v2: Pointer): PASN1_INTEGER; + + (* + * This must return the seconds and microseconds since Jan 1, 1970 in the sec + * and usec variables allocated by the caller. Return non-zero for success + * and zero for failure. + *) + TS_time_cb = function({struct} v1: PTS_resp_ctx; v2: Pointer; sec: PIdC_LONG; usec: PIdC_LONG): TIdC_INT; + + (* + * This must process the given extension. It can modify the TS_TST_INFO + * object of the context. Return values: !0 (processed), 0 (error, it must + * set the status info/failure info of the response). + *) + TS_extension_cb = function({struct} v1: PTS_resp_ctx; v2: PX509_Extension; v3: Pointer): TIdC_INT; + +// TS_VERIFY_CTX = TS_verify_ctx; + TS_VERIFY_CTX = type Pointer; + PTS_VERIFY_CTX = ^TS_VERIFY_CTX; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM TS_REQ_new} + {$EXTERNALSYM TS_REQ_free} + {$EXTERNALSYM i2d_TS_REQ} + {$EXTERNALSYM d2i_TS_REQ} + {$EXTERNALSYM TS_REQ_dup} + {$EXTERNALSYM d2i_TS_REQ_bio} + {$EXTERNALSYM i2d_TS_REQ_bio} + {$EXTERNALSYM TS_MSG_IMPRINT_new} + {$EXTERNALSYM TS_MSG_IMPRINT_free} + {$EXTERNALSYM i2d_TS_MSG_IMPRINT} + {$EXTERNALSYM d2i_TS_MSG_IMPRINT} + {$EXTERNALSYM TS_MSG_IMPRINT_dup} + {$EXTERNALSYM d2i_TS_MSG_IMPRINT_bio} + {$EXTERNALSYM i2d_TS_MSG_IMPRINT_bio} + {$EXTERNALSYM TS_RESP_new} + {$EXTERNALSYM TS_RESP_free} + {$EXTERNALSYM i2d_TS_RESP} + {$EXTERNALSYM d2i_TS_RESP} + {$EXTERNALSYM PKCS7_to_TS_TST_INFO} + {$EXTERNALSYM TS_RESP_dup} + {$EXTERNALSYM d2i_TS_RESP_bio} + {$EXTERNALSYM i2d_TS_RESP_bio} + {$EXTERNALSYM TS_STATUS_INFO_new} + {$EXTERNALSYM TS_STATUS_INFO_free} + {$EXTERNALSYM i2d_TS_STATUS_INFO} + {$EXTERNALSYM d2i_TS_STATUS_INFO} + {$EXTERNALSYM TS_STATUS_INFO_dup} + {$EXTERNALSYM TS_TST_INFO_new} + {$EXTERNALSYM TS_TST_INFO_free} + {$EXTERNALSYM i2d_TS_TST_INFO} + {$EXTERNALSYM d2i_TS_TST_INFO} + {$EXTERNALSYM TS_TST_INFO_dup} + {$EXTERNALSYM d2i_TS_TST_INFO_bio} + {$EXTERNALSYM i2d_TS_TST_INFO_bio} + {$EXTERNALSYM TS_ACCURACY_new} + {$EXTERNALSYM TS_ACCURACY_free} + {$EXTERNALSYM i2d_TS_ACCURACY} + {$EXTERNALSYM d2i_TS_ACCURACY} + {$EXTERNALSYM TS_ACCURACY_dup} + {$EXTERNALSYM ESS_ISSUER_SERIAL_new} + {$EXTERNALSYM ESS_ISSUER_SERIAL_free} + {$EXTERNALSYM i2d_ESS_ISSUER_SERIAL} + {$EXTERNALSYM d2i_ESS_ISSUER_SERIAL} + {$EXTERNALSYM ESS_ISSUER_SERIAL_dup} + {$EXTERNALSYM ESS_CERT_ID_new} + {$EXTERNALSYM ESS_CERT_ID_free} + {$EXTERNALSYM i2d_ESS_CERT_ID} + {$EXTERNALSYM d2i_ESS_CERT_ID} + {$EXTERNALSYM ESS_CERT_ID_dup} + {$EXTERNALSYM ESS_SIGNING_CERT_new} + {$EXTERNALSYM ESS_SIGNING_CERT_free} + {$EXTERNALSYM i2d_ESS_SIGNING_CERT} + {$EXTERNALSYM d2i_ESS_SIGNING_CERT} + {$EXTERNALSYM ESS_SIGNING_CERT_dup} + {$EXTERNALSYM ESS_CERT_ID_V2_new} + {$EXTERNALSYM ESS_CERT_ID_V2_free} + {$EXTERNALSYM i2d_ESS_CERT_ID_V2} + {$EXTERNALSYM d2i_ESS_CERT_ID_V2} + {$EXTERNALSYM ESS_CERT_ID_V2_dup} + {$EXTERNALSYM ESS_SIGNING_CERT_V2_new} + {$EXTERNALSYM ESS_SIGNING_CERT_V2_free} + {$EXTERNALSYM i2d_ESS_SIGNING_CERT_V2} + {$EXTERNALSYM d2i_ESS_SIGNING_CERT_V2} + {$EXTERNALSYM ESS_SIGNING_CERT_V2_dup} + {$EXTERNALSYM TS_REQ_set_version} + {$EXTERNALSYM TS_REQ_get_version} + {$EXTERNALSYM TS_STATUS_INFO_set_status} + {$EXTERNALSYM TS_STATUS_INFO_get0_status} + {$EXTERNALSYM TS_REQ_set_msg_imprint} + {$EXTERNALSYM TS_REQ_get_msg_imprint} + {$EXTERNALSYM TS_MSG_IMPRINT_set_algo} + {$EXTERNALSYM TS_MSG_IMPRINT_get_algo} + {$EXTERNALSYM TS_MSG_IMPRINT_set_msg} + {$EXTERNALSYM TS_MSG_IMPRINT_get_msg} + {$EXTERNALSYM TS_REQ_set_policy_id} + {$EXTERNALSYM TS_REQ_get_policy_id} + {$EXTERNALSYM TS_REQ_set_nonce} + {$EXTERNALSYM TS_REQ_get_nonce} + {$EXTERNALSYM TS_REQ_set_cert_req} + {$EXTERNALSYM TS_REQ_get_cert_req} + {$EXTERNALSYM TS_REQ_ext_free} + {$EXTERNALSYM TS_REQ_get_ext_count} + {$EXTERNALSYM TS_REQ_get_ext_by_NID} + {$EXTERNALSYM TS_REQ_get_ext_by_OBJ} + {$EXTERNALSYM TS_REQ_get_ext_by_critical} + {$EXTERNALSYM TS_REQ_get_ext} + {$EXTERNALSYM TS_REQ_delete_ext} + {$EXTERNALSYM TS_REQ_add_ext} + {$EXTERNALSYM TS_REQ_get_ext_d2i} + {$EXTERNALSYM TS_REQ_print_bio} + {$EXTERNALSYM TS_RESP_set_status_info} + {$EXTERNALSYM TS_RESP_get_status_info} + {$EXTERNALSYM TS_RESP_set_tst_info} + {$EXTERNALSYM TS_RESP_get_token} + {$EXTERNALSYM TS_RESP_get_tst_info} + {$EXTERNALSYM TS_TST_INFO_set_version} + {$EXTERNALSYM TS_TST_INFO_get_version} + {$EXTERNALSYM TS_TST_INFO_set_policy_id} + {$EXTERNALSYM TS_TST_INFO_get_policy_id} + {$EXTERNALSYM TS_TST_INFO_set_msg_imprint} + {$EXTERNALSYM TS_TST_INFO_get_msg_imprint} + {$EXTERNALSYM TS_TST_INFO_set_serial} + {$EXTERNALSYM TS_TST_INFO_get_serial} + {$EXTERNALSYM TS_TST_INFO_set_time} + {$EXTERNALSYM TS_TST_INFO_get_time} + {$EXTERNALSYM TS_TST_INFO_set_accuracy} + {$EXTERNALSYM TS_TST_INFO_get_accuracy} + {$EXTERNALSYM TS_ACCURACY_set_seconds} + {$EXTERNALSYM TS_ACCURACY_get_seconds} + {$EXTERNALSYM TS_ACCURACY_set_millis} + {$EXTERNALSYM TS_ACCURACY_get_millis} + {$EXTERNALSYM TS_ACCURACY_set_micros} + {$EXTERNALSYM TS_ACCURACY_get_micros} + {$EXTERNALSYM TS_TST_INFO_set_ordering} + {$EXTERNALSYM TS_TST_INFO_get_ordering} + {$EXTERNALSYM TS_TST_INFO_set_nonce} + {$EXTERNALSYM TS_TST_INFO_get_nonce} + {$EXTERNALSYM TS_TST_INFO_set_tsa} + {$EXTERNALSYM TS_TST_INFO_get_tsa} + {$EXTERNALSYM TS_TST_INFO_ext_free} + {$EXTERNALSYM TS_TST_INFO_get_ext_count} + {$EXTERNALSYM TS_TST_INFO_get_ext_by_NID} + {$EXTERNALSYM TS_TST_INFO_get_ext_by_OBJ} + {$EXTERNALSYM TS_TST_INFO_get_ext_by_critical} + {$EXTERNALSYM TS_TST_INFO_get_ext} + {$EXTERNALSYM TS_TST_INFO_delete_ext} + {$EXTERNALSYM TS_TST_INFO_add_ext} + {$EXTERNALSYM TS_TST_INFO_get_ext_d2i} + {$EXTERNALSYM TS_RESP_CTX_new} + {$EXTERNALSYM TS_RESP_CTX_free} + {$EXTERNALSYM TS_RESP_CTX_set_signer_cert} + {$EXTERNALSYM TS_RESP_CTX_set_signer_key} + {$EXTERNALSYM TS_RESP_CTX_set_signer_digest} + {$EXTERNALSYM TS_RESP_CTX_set_ess_cert_id_digest} + {$EXTERNALSYM TS_RESP_CTX_set_def_policy} + {$EXTERNALSYM TS_RESP_CTX_add_policy} + {$EXTERNALSYM TS_RESP_CTX_add_md} + {$EXTERNALSYM TS_RESP_CTX_set_accuracy} + {$EXTERNALSYM TS_RESP_CTX_set_clock_precision_digits} + {$EXTERNALSYM TS_RESP_CTX_add_flags} + {$EXTERNALSYM TS_RESP_CTX_set_serial_cb} + {$EXTERNALSYM TS_RESP_CTX_set_time_cb} + {$EXTERNALSYM TS_RESP_CTX_set_extension_cb} + {$EXTERNALSYM TS_RESP_CTX_set_status_info} + {$EXTERNALSYM TS_RESP_CTX_set_status_info_cond} + {$EXTERNALSYM TS_RESP_CTX_add_failure_info} + {$EXTERNALSYM TS_RESP_CTX_get_request} + {$EXTERNALSYM TS_RESP_CTX_get_tst_info} + {$EXTERNALSYM TS_RESP_create_response} + {$EXTERNALSYM TS_RESP_verify_response} + {$EXTERNALSYM TS_RESP_verify_token} + {$EXTERNALSYM TS_VERIFY_CTX_new} + {$EXTERNALSYM TS_VERIFY_CTX_init} + {$EXTERNALSYM TS_VERIFY_CTX_free} + {$EXTERNALSYM TS_VERIFY_CTX_cleanup} + {$EXTERNALSYM TS_VERIFY_CTX_set_flags} + {$EXTERNALSYM TS_VERIFY_CTX_add_flags} + {$EXTERNALSYM TS_VERIFY_CTX_set_data} + {$EXTERNALSYM TS_VERIFY_CTX_set_imprint} + {$EXTERNALSYM TS_VERIFY_CTX_set_store} + {$EXTERNALSYM TS_REQ_to_TS_VERIFY_CTX} + {$EXTERNALSYM TS_RESP_print_bio} + {$EXTERNALSYM TS_STATUS_INFO_print_bio} + {$EXTERNALSYM TS_TST_INFO_print_bio} + {$EXTERNALSYM TS_ASN1_INTEGER_print_bio} + {$EXTERNALSYM TS_OBJ_print_bio} + {$EXTERNALSYM TS_X509_ALGOR_print_bio} + {$EXTERNALSYM TS_MSG_IMPRINT_print_bio} + {$EXTERNALSYM TS_CONF_load_cert} + {$EXTERNALSYM TS_CONF_load_key} + {$EXTERNALSYM TS_CONF_set_serial} + {$EXTERNALSYM TS_CONF_get_tsa_section} + {$EXTERNALSYM TS_CONF_set_crypto_device} + {$EXTERNALSYM TS_CONF_set_default_engine} + {$EXTERNALSYM TS_CONF_set_signer_cert} + {$EXTERNALSYM TS_CONF_set_certs} + {$EXTERNALSYM TS_CONF_set_signer_key} + {$EXTERNALSYM TS_CONF_set_signer_digest} + {$EXTERNALSYM TS_CONF_set_def_policy} + {$EXTERNALSYM TS_CONF_set_policies} + {$EXTERNALSYM TS_CONF_set_digests} + {$EXTERNALSYM TS_CONF_set_accuracy} + {$EXTERNALSYM TS_CONF_set_clock_precision_digits} + {$EXTERNALSYM TS_CONF_set_ordering} + {$EXTERNALSYM TS_CONF_set_tsa_name} + {$EXTERNALSYM TS_CONF_set_ess_cert_id_chain} + {$EXTERNALSYM TS_CONF_set_ess_cert_id_digest} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + TS_REQ_new: function: PTS_REQ; cdecl = nil; + TS_REQ_free: procedure(a: PTS_REQ); cdecl = nil; + i2d_TS_REQ: function(a: PTS_REQ; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_TS_REQ: function(a: PPTS_REQ; pp: PPByte; length: TIdC_LONG): PTS_REQ; cdecl = nil; + + TS_REQ_dup: function(a: PTS_REQ): PTS_REQ; cdecl = nil; + + d2i_TS_REQ_bio: function(fp: PBIO; a: PPTS_REQ): PTS_REQ; cdecl = nil; + i2d_TS_REQ_bio: function(fp: PBIO; a: PTS_REQ): TIdC_INT; cdecl = nil; + + TS_MSG_IMPRINT_new: function: PTS_MSG_IMPRINT; cdecl = nil; + TS_MSG_IMPRINT_free: procedure(a: PTS_MSG_IMPRINT); cdecl = nil; + i2d_TS_MSG_IMPRINT: function(a: PTS_MSG_IMPRINT; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_TS_MSG_IMPRINT: function(a: PPTS_MSG_IMPRINT; pp: PPByte; length: TIdC_LONG): PTS_MSG_IMPRINT; cdecl = nil; + + TS_MSG_IMPRINT_dup: function(a: PTS_MSG_IMPRINT): PTS_MSG_IMPRINT; cdecl = nil; + + d2i_TS_MSG_IMPRINT_bio: function(bio: PBIO; a: PPTS_MSG_IMPRINT): PTS_MSG_IMPRINT; cdecl = nil; + i2d_TS_MSG_IMPRINT_bio: function(bio: PBIO; a: PTS_MSG_IMPRINT): TIdC_INT; cdecl = nil; + + TS_RESP_new: function: PTS_RESP; cdecl = nil; + TS_RESP_free: procedure(a: PTS_RESP); cdecl = nil; + i2d_TS_RESP: function(a: PTS_RESP; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_TS_RESP: function(a: PPTS_RESP; pp: PPByte; length: TIdC_LONG): PTS_RESP; cdecl = nil; + PKCS7_to_TS_TST_INFO: function(token: PPKCS7): PTS_TST_Info; cdecl = nil; + TS_RESP_dup: function(a: PTS_RESP): PTS_RESP; cdecl = nil; + + d2i_TS_RESP_bio: function(bio: PBIO; a: PPTS_RESP): PTS_RESP; cdecl = nil; + i2d_TS_RESP_bio: function(bio: PBIO; a: PTS_RESP): TIdC_INT; cdecl = nil; + + TS_STATUS_INFO_new: function: PTS_STATUS_INFO; cdecl = nil; + TS_STATUS_INFO_free: procedure(a: PTS_STATUS_INFO); cdecl = nil; + i2d_TS_STATUS_INFO: function(a: PTS_STATUS_INFO; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_TS_STATUS_INFO: function(a: PPTS_STATUS_INFO; pp: PPByte; length: TIdC_LONG): PTS_STATUS_INFO; cdecl = nil; + TS_STATUS_INFO_dup: function(a: PTS_STATUS_INFO): PTS_STATUS_INFO; cdecl = nil; + + TS_TST_INFO_new: function: PTS_TST_Info; cdecl = nil; + TS_TST_INFO_free: procedure(a: PTS_TST_Info); cdecl = nil; + i2d_TS_TST_INFO: function(a: PTS_TST_Info; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_TS_TST_INFO: function(a: PPTS_TST_Info; pp: PPByte; length: TIdC_LONG): PTS_TST_Info; cdecl = nil; + TS_TST_INFO_dup: function(a: PTS_TST_Info): PTS_TST_Info; cdecl = nil; + + d2i_TS_TST_INFO_bio: function(bio: PBIO; a: PPTS_TST_Info): PTS_TST_Info; cdecl = nil; + i2d_TS_TST_INFO_bio: function(bio: PBIO; a: PTS_TST_Info): TIdC_INT; cdecl = nil; + + TS_ACCURACY_new: function: PTS_ACCURACY; cdecl = nil; + TS_ACCURACY_free: procedure(a: PTS_ACCURACY); cdecl = nil; + i2d_TS_ACCURACY: function(a: PTS_ACCURACY; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_TS_ACCURACY: function(a: PPTS_ACCURACY; pp: PPByte; length: TIdC_LONG): PTS_ACCURACY; cdecl = nil; + TS_ACCURACY_dup: function(a: PTS_ACCURACY): PTS_ACCURACY; cdecl = nil; + + ESS_ISSUER_SERIAL_new: function: PESS_ISSUER_SERIAL; cdecl = nil; + ESS_ISSUER_SERIAL_free: procedure(a: PESS_ISSUER_SERIAL); cdecl = nil; + i2d_ESS_ISSUER_SERIAL: function( a: PESS_ISSUER_SERIAL; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_ESS_ISSUER_SERIAL: function(a: PPESS_ISSUER_SERIAL; pp: PPByte; length: TIdC_LONG): PESS_ISSUER_SERIAL; cdecl = nil; + ESS_ISSUER_SERIAL_dup: function(a: PESS_ISSUER_SERIAL): PESS_ISSUER_SERIAL; cdecl = nil; + + ESS_CERT_ID_new: function: PESS_CERT_ID; cdecl = nil; + ESS_CERT_ID_free: procedure(a: PESS_CERT_ID); cdecl = nil; + i2d_ESS_CERT_ID: function(a: PESS_CERT_ID; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_ESS_CERT_ID: function(a: PPESS_CERT_ID; pp: PPByte; length: TIdC_LONG): PESS_CERT_ID; cdecl = nil; + ESS_CERT_ID_dup: function(a: PESS_CERT_ID): PESS_CERT_ID; cdecl = nil; + + ESS_SIGNING_CERT_new: function: PESS_SIGNING_Cert; cdecl = nil; + ESS_SIGNING_CERT_free: procedure(a: PESS_SIGNING_Cert); cdecl = nil; + i2d_ESS_SIGNING_CERT: function( a: PESS_SIGNING_Cert; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_ESS_SIGNING_CERT: function(a: PPESS_SIGNING_Cert; pp: PPByte; length: TIdC_LONG): PESS_SIGNING_Cert; cdecl = nil; + ESS_SIGNING_CERT_dup: function(a: PESS_SIGNING_Cert): PESS_SIGNING_Cert; cdecl = nil; + + ESS_CERT_ID_V2_new: function: PESS_CERT_ID_V2; cdecl = nil; + ESS_CERT_ID_V2_free: procedure(a: PESS_CERT_ID_V2); cdecl = nil; + i2d_ESS_CERT_ID_V2: function( a: PESS_CERT_ID_V2; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_ESS_CERT_ID_V2: function(a: PPESS_CERT_ID_V2; pp: PPByte; length: TIdC_LONG): PESS_CERT_ID_V2; cdecl = nil; + ESS_CERT_ID_V2_dup: function(a: PESS_CERT_ID_V2): PESS_CERT_ID_V2; cdecl = nil; + + ESS_SIGNING_CERT_V2_new: function: PESS_SIGNING_CERT_V2; cdecl = nil; + ESS_SIGNING_CERT_V2_free: procedure(a: PESS_SIGNING_CERT_V2); cdecl = nil; + i2d_ESS_SIGNING_CERT_V2: function(a: PESS_SIGNING_CERT_V2; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_ESS_SIGNING_CERT_V2: function(a: PPESS_SIGNING_CERT_V2; pp: PPByte; length: TIdC_LONG): PESS_SIGNING_CERT_V2; cdecl = nil; + ESS_SIGNING_CERT_V2_dup: function(a: PESS_SIGNING_CERT_V2): PESS_SIGNING_CERT_V2; cdecl = nil; + + TS_REQ_set_version: function(a: PTS_REQ; version: TIdC_LONG): TIdC_INT; cdecl = nil; + TS_REQ_get_version: function(a: PTS_REQ): TIdC_LONG; cdecl = nil; + + TS_STATUS_INFO_set_status: function(a: PTS_STATUS_INFO; i: TIdC_INT): TIdC_INT; cdecl = nil; + TS_STATUS_INFO_get0_status: function(const a: PTS_STATUS_INFO): PASN1_INTEGER; cdecl = nil; + + // const STACK_OF(ASN1_UTF8STRING) *TS_STATUS_INFO_get0_text(const TS_STATUS_INFO *a); + + // const ASN1_BIT_STRING *TS_STATUS_INFO_get0_failure_info(const TS_STATUS_INFO *a); + + TS_REQ_set_msg_imprint: function(a: PTS_REQ; msg_imprint: PTS_MSG_IMPRINT): TIdC_INT; cdecl = nil; + TS_REQ_get_msg_imprint: function(a: PTS_REQ): PTS_MSG_IMPRINT; cdecl = nil; + + TS_MSG_IMPRINT_set_algo: function(a: PTS_MSG_IMPRINT; alg: PX509_ALGOr): TIdC_INT; cdecl = nil; + TS_MSG_IMPRINT_get_algo: function(a: PTS_MSG_IMPRINT): PX509_ALGOr; cdecl = nil; + + TS_MSG_IMPRINT_set_msg: function(a: PTS_MSG_IMPRINT; d: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + TS_MSG_IMPRINT_get_msg: function(a: PTS_MSG_IMPRINT): PASN1_OCTET_STRING; cdecl = nil; + + TS_REQ_set_policy_id: function(a: PTS_REQ; policy: PASN1_OBJECT): TIdC_INT; cdecl = nil; + TS_REQ_get_policy_id: function(a: PTS_REQ): PASN1_OBJECT; cdecl = nil; + + TS_REQ_set_nonce: function(a: PTS_REQ; nonce: PASN1_INTEGER): TIdC_INT; cdecl = nil; + TS_REQ_get_nonce: function(const a: PTS_REQ): PASN1_INTEGER; cdecl = nil; + + TS_REQ_set_cert_req: function(a: PTS_REQ; cert_req: TIdC_INT): TIdC_INT; cdecl = nil; + TS_REQ_get_cert_req: function(a: PTS_REQ): TIdC_INT; cdecl = nil; + + //STACK_OF(X509_EXTENSION) *TS_REQ_get_exts(TS_REQ *a); + TS_REQ_ext_free: procedure(a: PTS_REQ); cdecl = nil; + TS_REQ_get_ext_count: function(a: PTS_REQ): TIdC_INT; cdecl = nil; + TS_REQ_get_ext_by_NID: function(a: PTS_REQ; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + TS_REQ_get_ext_by_OBJ: function(a: PTS_REQ; obj: PASN1_Object; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + TS_REQ_get_ext_by_critical: function(a: PTS_REQ; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + TS_REQ_get_ext: function(a: PTS_REQ; loc: TIdC_INT): PX509_Extension; cdecl = nil; + TS_REQ_delete_ext: function(a: PTS_REQ; loc: TIdC_INT): PX509_Extension; cdecl = nil; + TS_REQ_add_ext: function(a: PTS_REQ; ex: PX509_Extension; loc: TIdC_INT): TIdC_INT; cdecl = nil; + TS_REQ_get_ext_d2i: function(a: PTS_REQ; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer; cdecl = nil; + + //* Function declarations for TS_REQ defined in ts/ts_req_print.c */ + + TS_REQ_print_bio: function(bio: PBIO; a: PTS_REQ): TIdC_INT; cdecl = nil; + + //* Function declarations for TS_RESP defined in ts/ts_resp_utils.c */ + + TS_RESP_set_status_info: function(a: PTS_RESP; info: PTS_STATUS_INFO): TIdC_INT; cdecl = nil; + TS_RESP_get_status_info: function(a: PTS_RESP): PTS_STATUS_INFO; cdecl = nil; + + //* Caller loses ownership of PKCS7 and TS_TST_INFO objects. */ + TS_RESP_set_tst_info: procedure(a: PTS_RESP; p7: PPKCS7; tst_info: PTS_TST_Info); cdecl = nil; + TS_RESP_get_token: function(a: PTS_RESP): PPKCS7; cdecl = nil; + TS_RESP_get_tst_info: function(a: PTS_RESP): PTS_TST_Info; cdecl = nil; + + TS_TST_INFO_set_version: function(a: PTS_TST_Info; version: TIdC_LONG): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_version: function(const a: PTS_TST_Info): TIdC_LONG; cdecl = nil; + + TS_TST_INFO_set_policy_id: function(a: PTS_TST_Info; policy_id: PASN1_Object): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_policy_id: function(a: PTS_TST_Info): PASN1_Object; cdecl = nil; + + TS_TST_INFO_set_msg_imprint: function(a: PTS_TST_Info; msg_imprint: PTS_MSG_IMPRINT): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_msg_imprint: function(a: PTS_TST_Info): PTS_MSG_IMPRINT; cdecl = nil; + + TS_TST_INFO_set_serial: function(a: PTS_TST_Info; const serial: PASN1_INTEGER): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_serial: function(const a: PTS_TST_INFO): PASN1_INTEGER; cdecl = nil; + + TS_TST_INFO_set_time: function(a: PTS_TST_Info; gtime: PASN1_GENERALIZEDTIME): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_time: function(const a: PTS_TST_INFO): PASN1_GENERALIZEDTIME; cdecl = nil; + + TS_TST_INFO_set_accuracy: function(a: PTS_TST_Info; accuracy: PTS_ACCURACY): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_accuracy: function(a: PTS_TST_Info): PTS_ACCURACY; cdecl = nil; + + TS_ACCURACY_set_seconds: function(a: PTS_ACCURACY; const seconds: PASN1_INTEGER): TIdC_INT; cdecl = nil; + TS_ACCURACY_get_seconds: function(const a: PTS_ACCURACY): PASN1_INTEGER; cdecl = nil; + + TS_ACCURACY_set_millis: function(a: PTS_ACCURACY; const millis: PASN1_INTEGER): TIdC_INT; cdecl = nil; + TS_ACCURACY_get_millis: function(const a: PTS_ACCURACY): PASN1_INTEGER; cdecl = nil; + + TS_ACCURACY_set_micros: function(a: PTS_ACCURACY; const micros: PASN1_INTEGER): TIdC_INT; cdecl = nil; + TS_ACCURACY_get_micros: function(const a: PTS_ACCURACY): PASN1_INTEGER; cdecl = nil; + + TS_TST_INFO_set_ordering: function(a: PTS_TST_Info; ordering: TIdC_INT): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_ordering: function(const a: PTS_TST_Info): TIdC_INT; cdecl = nil; + + TS_TST_INFO_set_nonce: function(a: PTS_TST_Info; const nonce: PASN1_INTEGER): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_nonce: function(const a: PTS_TST_INFO): PASN1_INTEGER; cdecl = nil; + + TS_TST_INFO_set_tsa: function(a: PTS_TST_Info; tsa: PGENERAL_NAME): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_tsa: function(a: PTS_TST_Info): PGENERAL_NAME; cdecl = nil; + + //STACK_OF(X509_EXTENSION) *TS_TST_INFO_get_exts(TS_TST_INFO *a); + TS_TST_INFO_ext_free: procedure(a: PTS_TST_Info); cdecl = nil; + TS_TST_INFO_get_ext_count: function(a: PTS_TST_Info): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_ext_by_NID: function(a: PTS_TST_Info; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_ext_by_OBJ: function(a: PTS_TST_Info; const obj: PASN1_Object; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_ext_by_critical: function(a: PTS_TST_Info; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_ext: function(a: PTS_TST_Info; loc: TIdC_INT): PX509_Extension; cdecl = nil; + TS_TST_INFO_delete_ext: function(a: PTS_TST_Info; loc: TIdC_INT): PX509_Extension; cdecl = nil; + TS_TST_INFO_add_ext: function(a: PTS_TST_Info; ex: PX509_Extension; loc: TIdC_INT): TIdC_INT; cdecl = nil; + TS_TST_INFO_get_ext_d2i: function(a: PTS_TST_Info; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer; cdecl = nil; + + (* + * Declarations related to response generation, defined in ts/ts_resp_sign.c. + *) + + //DEFINE_STACK_OF_CONST(EVP_MD) + + (* Creates a response context that can be used for generating responses. *) + TS_RESP_CTX_new: function: PTS_RESP_CTX; cdecl = nil; + TS_RESP_CTX_free: procedure(ctx: PTS_RESP_CTX); cdecl = nil; + + (* This parameter must be set. *) + TS_RESP_CTX_set_signer_cert: function(ctx: PTS_RESP_CTX; signer: PX509): TIdC_INT; cdecl = nil; + + (* This parameter must be set. *) + TS_RESP_CTX_set_signer_key: function(ctx: PTS_RESP_CTX; key: PEVP_PKEY): TIdC_INT; cdecl = nil; + + TS_RESP_CTX_set_signer_digest: function(ctx: PTS_RESP_CTX; signer_digest: PEVP_MD): TIdC_INT; cdecl = nil; + TS_RESP_CTX_set_ess_cert_id_digest: function(ctx: PTS_RESP_CTX; md: PEVP_MD): TIdC_INT; cdecl = nil; + + (* This parameter must be set. *) + TS_RESP_CTX_set_def_policy: function(ctx: PTS_RESP_CTX; def_policy: PASN1_Object): TIdC_INT; cdecl = nil; + + (* No additional certs are included in the response by default. *) + // int TS_RESP_CTX_set_certs(TS_RESP_CTX *ctx, STACK_OF(X509) *certs); + + (* + * Adds a new acceptable policy, only the default policy is accepted by + * default. + *) + TS_RESP_CTX_add_policy: function(ctx: PTS_RESP_CTX; const policy: PASN1_Object): TIdC_INT; cdecl = nil; + + (* + * Adds a new acceptable message digest. Note that no message digests are + * accepted by default. The md argument is shared with the caller. + *) + TS_RESP_CTX_add_md: function(ctx: PTS_RESP_CTX; const md: PEVP_MD): TIdC_INT; cdecl = nil; + + (* Accuracy is not included by default. *) + TS_RESP_CTX_set_accuracy: function(ctx: PTS_RESP_CTX; secs: TIdC_INT; millis: TIdC_INT; micros: TIdC_INT): TIdC_INT; cdecl = nil; + + (* + * Clock precision digits, i.e. the number of decimal digits: '0' means sec, + * '3' msec, '6' usec, and so on. Default is 0. + *) + TS_RESP_CTX_set_clock_precision_digits: function(ctx: PTS_RESP_CTX; clock_precision_digits: TIdC_UINT): TIdC_INT; cdecl = nil; + + (* No flags are set by default. *) + TS_RESP_CTX_add_flags: procedure(ctx: PTS_RESP_CTX; flags: TIdC_INT); cdecl = nil; + + (* Default callback always returns a constant. *) + TS_RESP_CTX_set_serial_cb: procedure(ctx: PTS_RESP_CTX; cb: TS_serial_cb; data: Pointer); cdecl = nil; + + (* Default callback uses the gettimeofday() and gmtime() system calls. *) + TS_RESP_CTX_set_time_cb: procedure(ctx: PTS_RESP_CTX; cb: TS_time_cb; data: Pointer); cdecl = nil; + + (* + * Default callback rejects all extensions. The extension callback is called + * when the TS_TST_INFO object is already set up and not signed yet. + *) + (* FIXME: extension handling is not tested yet. *) + TS_RESP_CTX_set_extension_cb: procedure(ctx: PTS_RESP_CTX; cb: TS_extension_cb; data: Pointer); cdecl = nil; + + (* The following methods can be used in the callbacks. *) + TS_RESP_CTX_set_status_info: function(ctx: PTS_RESP_CTX; status: TIdC_INT; text: PIdAnsiChar): TIdC_INT; cdecl = nil; + + (* Sets the status info only if it is still TS_STATUS_GRANTED. *) + TS_RESP_CTX_set_status_info_cond: function(ctx: PTS_RESP_CTX; status: TIdC_INT; text: PIdAnsiChar): TIdC_INT; cdecl = nil; + + TS_RESP_CTX_add_failure_info: function(ctx: PTS_RESP_CTX; failure: TIdC_INT): TIdC_INT; cdecl = nil; + + (* The get methods below can be used in the extension callback. *) + TS_RESP_CTX_get_request: function(ctx: PTS_RESP_CTX): PTS_REQ; cdecl = nil; + + TS_RESP_CTX_get_tst_info: function(ctx: PTS_RESP_CTX): PTS_TST_Info; cdecl = nil; + + (* + * Creates the signed TS_TST_INFO and puts it in TS_RESP. + * In case of errors it sets the status info properly. + * Returns NULL only in case of memory allocation/fatal error. + *) + TS_RESP_create_response: function(ctx: PTS_RESP_CTX; req_bio: PBIO): PTS_RESP; cdecl = nil; + + (* + * Declarations related to response verification, + * they are defined in ts/ts_resp_verify.c. + *) + + //int TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs, + // X509_STORE *store, X509 **signer_out); + + (* Context structure for the generic verify method. *) + + TS_RESP_verify_response: function(ctx: PTS_VERIFY_CTX; response: PTS_RESP): TIdC_INT; cdecl = nil; + TS_RESP_verify_token: function(ctx: PTS_VERIFY_CTX; token: PPKCS7): TIdC_INT; cdecl = nil; + + (* + * Declarations related to response verification context, + *) + TS_VERIFY_CTX_new: function: PTS_VERIFY_CTX; cdecl = nil; + TS_VERIFY_CTX_init: procedure(ctx: PTS_VERIFY_CTX); cdecl = nil; + TS_VERIFY_CTX_free: procedure(ctx: PTS_VERIFY_CTX); cdecl = nil; + TS_VERIFY_CTX_cleanup: procedure(ctx: PTS_VERIFY_CTX); cdecl = nil; + TS_VERIFY_CTX_set_flags: function(ctx: PTS_VERIFY_CTX; f: TIdC_INT): TIdC_INT; cdecl = nil; + TS_VERIFY_CTX_add_flags: function(ctx: PTS_VERIFY_CTX; f: TIdC_INT): TIdC_INT; cdecl = nil; + TS_VERIFY_CTX_set_data: function(ctx: PTS_VERIFY_CTX; b: PBIO): PBIO; cdecl = nil; + TS_VERIFY_CTX_set_imprint: function(ctx: PTS_VERIFY_CTX; hexstr: PByte; len: TIdC_LONG): PByte; cdecl = nil; + TS_VERIFY_CTX_set_store: function(ctx: PTS_VERIFY_CTX; s: PX509_Store): PX509_Store; cdecl = nil; + // STACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs); + + (*- + * If ctx is NULL, it allocates and returns a new object, otherwise + * it returns ctx. It initialises all the members as follows: + * flags = TS_VFY_ALL_IMPRINT & ~(TS_VFY_TSA_NAME | TS_VFY_SIGNATURE) + * certs = NULL + * store = NULL + * policy = policy from the request or NULL if absent (in this case + * TS_VFY_POLICY is cleared from flags as well) + * md_alg = MD algorithm from request + * imprint, imprint_len = imprint from request + * data = NULL + * nonce, nonce_len = nonce from the request or NULL if absent (in this case + * TS_VFY_NONCE is cleared from flags as well) + * tsa_name = NULL + * Important: after calling this method TS_VFY_SIGNATURE should be added! + *) + TS_REQ_to_TS_VERIFY_CTX: function(req: PTS_REQ; ctx: PTS_VERIFY_CTX): PTS_VERIFY_CTX; cdecl = nil; + + (* Function declarations for TS_RESP defined in ts/ts_resp_print.c *) + + TS_RESP_print_bio: function(bio: PBIO; a: PTS_RESP): TIdC_INT; cdecl = nil; + TS_STATUS_INFO_print_bio: function(bio: PBIO; a: PTS_STATUS_INFO): TIdC_INT; cdecl = nil; + TS_TST_INFO_print_bio: function(bio: PBIO; a: PTS_TST_Info): TIdC_INT; cdecl = nil; + + (* Common utility functions defined in ts/ts_lib.c *) + + TS_ASN1_INTEGER_print_bio: function(bio: PBIO; const num: PASN1_INTEGER): TIdC_INT; cdecl = nil; + TS_OBJ_print_bio: function(bio: PBIO; const obj: PASN1_Object): TIdC_INT; cdecl = nil; + //function TS_ext_print_bio(bio: PBIO; const STACK_OF(): X509_Extension * extensions): TIdC_INT; + TS_X509_ALGOR_print_bio: function(bio: PBIO; const alg: PX509_ALGOr): TIdC_INT; cdecl = nil; + TS_MSG_IMPRINT_print_bio: function(bio: PBIO; msg: PTS_MSG_IMPRINT): TIdC_INT; cdecl = nil; + + (* + * Function declarations for handling configuration options, defined in + * ts/ts_conf.c + *) + + TS_CONF_load_cert: function(file_: PIdAnsiChar): PX509; cdecl = nil; + TS_CONF_load_key: function( file_: PIdAnsiChar; pass: PIdAnsiChar): PEVP_PKey; cdecl = nil; + TS_CONF_set_serial: function(conf: PCONF; section: PIdAnsiChar; cb: TS_serial_cb; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + //STACK_OF(X509) *TS_CONF_load_certs(const char *file); + TS_CONF_get_tsa_section: function(conf: PCONF; const section: PIdAnsiChar): PIdAnsiChar; cdecl = nil; + TS_CONF_set_crypto_device: function(conf: PCONF; section: PIdAnsiChar; device: PIdAnsiChar): TIdC_INT; cdecl = nil; + TS_CONF_set_default_engine: function(name: PIdAnsiChar): TIdC_INT; cdecl = nil; + TS_CONF_set_signer_cert: function(conf: PCONF; section: PIdAnsiChar; cert: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_certs: function(conf: PCONF; section: PIdAnsiChar; certs: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_signer_key: function(conf: PCONF; const section: PIdAnsiChar; key: PIdAnsiChar; pass: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_signer_digest: function(conf: PCONF; section: PIdAnsiChar; md: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_def_policy: function(conf: PCONF; section: PIdAnsiChar; policy: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_policies: function(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_digests: function(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_accuracy: function(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_clock_precision_digits: function(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_ordering: function(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_tsa_name: function(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_ess_cert_id_chain: function(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + TS_CONF_set_ess_cert_id_digest: function(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; cdecl = nil; + +{$ELSE} + function TS_REQ_new: PTS_REQ cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure TS_REQ_free(a: PTS_REQ) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_TS_REQ(a: PTS_REQ; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_TS_REQ(a: PPTS_REQ; pp: PPByte; length: TIdC_LONG): PTS_REQ cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_REQ_dup(a: PTS_REQ): PTS_REQ cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_TS_REQ_bio(fp: PBIO; a: PPTS_REQ): PTS_REQ cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_TS_REQ_bio(fp: PBIO; a: PTS_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_MSG_IMPRINT_new: PTS_MSG_IMPRINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure TS_MSG_IMPRINT_free(a: PTS_MSG_IMPRINT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_TS_MSG_IMPRINT(a: PTS_MSG_IMPRINT; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_TS_MSG_IMPRINT(a: PPTS_MSG_IMPRINT; pp: PPByte; length: TIdC_LONG): PTS_MSG_IMPRINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_MSG_IMPRINT_dup(a: PTS_MSG_IMPRINT): PTS_MSG_IMPRINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_TS_MSG_IMPRINT_bio(bio: PBIO; a: PPTS_MSG_IMPRINT): PTS_MSG_IMPRINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_TS_MSG_IMPRINT_bio(bio: PBIO; a: PTS_MSG_IMPRINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_RESP_new: PTS_RESP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure TS_RESP_free(a: PTS_RESP) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_TS_RESP(a: PTS_RESP; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_TS_RESP(a: PPTS_RESP; pp: PPByte; length: TIdC_LONG): PTS_RESP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS7_to_TS_TST_INFO(token: PPKCS7): PTS_TST_Info cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_RESP_dup(a: PTS_RESP): PTS_RESP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_TS_RESP_bio(bio: PBIO; a: PPTS_RESP): PTS_RESP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_TS_RESP_bio(bio: PBIO; a: PTS_RESP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_STATUS_INFO_new: PTS_STATUS_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure TS_STATUS_INFO_free(a: PTS_STATUS_INFO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_TS_STATUS_INFO(a: PTS_STATUS_INFO; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_TS_STATUS_INFO(a: PPTS_STATUS_INFO; pp: PPByte; length: TIdC_LONG): PTS_STATUS_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_STATUS_INFO_dup(a: PTS_STATUS_INFO): PTS_STATUS_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_TST_INFO_new: PTS_TST_Info cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure TS_TST_INFO_free(a: PTS_TST_Info) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_TS_TST_INFO(a: PTS_TST_Info; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_TS_TST_INFO(a: PPTS_TST_Info; pp: PPByte; length: TIdC_LONG): PTS_TST_Info cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_dup(a: PTS_TST_Info): PTS_TST_Info cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_TS_TST_INFO_bio(bio: PBIO; a: PPTS_TST_Info): PTS_TST_Info cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_TS_TST_INFO_bio(bio: PBIO; a: PTS_TST_Info): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_ACCURACY_new: PTS_ACCURACY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure TS_ACCURACY_free(a: PTS_ACCURACY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_TS_ACCURACY(a: PTS_ACCURACY; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_TS_ACCURACY(a: PPTS_ACCURACY; pp: PPByte; length: TIdC_LONG): PTS_ACCURACY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_ACCURACY_dup(a: PTS_ACCURACY): PTS_ACCURACY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ESS_ISSUER_SERIAL_new: PESS_ISSUER_SERIAL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ESS_ISSUER_SERIAL_free(a: PESS_ISSUER_SERIAL) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ESS_ISSUER_SERIAL( a: PESS_ISSUER_SERIAL; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ESS_ISSUER_SERIAL(a: PPESS_ISSUER_SERIAL; pp: PPByte; length: TIdC_LONG): PESS_ISSUER_SERIAL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ESS_ISSUER_SERIAL_dup(a: PESS_ISSUER_SERIAL): PESS_ISSUER_SERIAL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ESS_CERT_ID_new: PESS_CERT_ID cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ESS_CERT_ID_free(a: PESS_CERT_ID) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ESS_CERT_ID(a: PESS_CERT_ID; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ESS_CERT_ID(a: PPESS_CERT_ID; pp: PPByte; length: TIdC_LONG): PESS_CERT_ID cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ESS_CERT_ID_dup(a: PESS_CERT_ID): PESS_CERT_ID cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ESS_SIGNING_CERT_new: PESS_SIGNING_Cert cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ESS_SIGNING_CERT_free(a: PESS_SIGNING_Cert) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ESS_SIGNING_CERT( a: PESS_SIGNING_Cert; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ESS_SIGNING_CERT(a: PPESS_SIGNING_Cert; pp: PPByte; length: TIdC_LONG): PESS_SIGNING_Cert cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ESS_SIGNING_CERT_dup(a: PESS_SIGNING_Cert): PESS_SIGNING_Cert cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ESS_CERT_ID_V2_new: PESS_CERT_ID_V2 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ESS_CERT_ID_V2_free(a: PESS_CERT_ID_V2) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ESS_CERT_ID_V2( a: PESS_CERT_ID_V2; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ESS_CERT_ID_V2(a: PPESS_CERT_ID_V2; pp: PPByte; length: TIdC_LONG): PESS_CERT_ID_V2 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ESS_CERT_ID_V2_dup(a: PESS_CERT_ID_V2): PESS_CERT_ID_V2 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ESS_SIGNING_CERT_V2_new: PESS_SIGNING_CERT_V2 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ESS_SIGNING_CERT_V2_free(a: PESS_SIGNING_CERT_V2) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ESS_SIGNING_CERT_V2(a: PESS_SIGNING_CERT_V2; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ESS_SIGNING_CERT_V2(a: PPESS_SIGNING_CERT_V2; pp: PPByte; length: TIdC_LONG): PESS_SIGNING_CERT_V2 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ESS_SIGNING_CERT_V2_dup(a: PESS_SIGNING_CERT_V2): PESS_SIGNING_CERT_V2 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_REQ_set_version(a: PTS_REQ; version: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_get_version(a: PTS_REQ): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_STATUS_INFO_set_status(a: PTS_STATUS_INFO; i: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_STATUS_INFO_get0_status(const a: PTS_STATUS_INFO): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + // const STACK_OF(ASN1_UTF8STRING) *TS_STATUS_INFO_get0_text(const TS_STATUS_INFO *a); + + // const ASN1_BIT_STRING *TS_STATUS_INFO_get0_failure_info(const TS_STATUS_INFO *a); + + function TS_REQ_set_msg_imprint(a: PTS_REQ; msg_imprint: PTS_MSG_IMPRINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_get_msg_imprint(a: PTS_REQ): PTS_MSG_IMPRINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_MSG_IMPRINT_set_algo(a: PTS_MSG_IMPRINT; alg: PX509_ALGOr): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_MSG_IMPRINT_get_algo(a: PTS_MSG_IMPRINT): PX509_ALGOr cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_MSG_IMPRINT_set_msg(a: PTS_MSG_IMPRINT; d: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_MSG_IMPRINT_get_msg(a: PTS_MSG_IMPRINT): PASN1_OCTET_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_REQ_set_policy_id(a: PTS_REQ; policy: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_get_policy_id(a: PTS_REQ): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_REQ_set_nonce(a: PTS_REQ; nonce: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_get_nonce(const a: PTS_REQ): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_REQ_set_cert_req(a: PTS_REQ; cert_req: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_get_cert_req(a: PTS_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //STACK_OF(X509_EXTENSION) *TS_REQ_get_exts(TS_REQ *a); + procedure TS_REQ_ext_free(a: PTS_REQ) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_get_ext_count(a: PTS_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_get_ext_by_NID(a: PTS_REQ; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_get_ext_by_OBJ(a: PTS_REQ; obj: PASN1_Object; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_get_ext_by_critical(a: PTS_REQ; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_get_ext(a: PTS_REQ; loc: TIdC_INT): PX509_Extension cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_delete_ext(a: PTS_REQ; loc: TIdC_INT): PX509_Extension cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_add_ext(a: PTS_REQ; ex: PX509_Extension; loc: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_REQ_get_ext_d2i(a: PTS_REQ; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //* Function declarations for TS_REQ defined in ts/ts_req_print.c */ + + function TS_REQ_print_bio(bio: PBIO; a: PTS_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //* Function declarations for TS_RESP defined in ts/ts_resp_utils.c */ + + function TS_RESP_set_status_info(a: PTS_RESP; info: PTS_STATUS_INFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_RESP_get_status_info(a: PTS_RESP): PTS_STATUS_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //* Caller loses ownership of PKCS7 and TS_TST_INFO objects. */ + procedure TS_RESP_set_tst_info(a: PTS_RESP; p7: PPKCS7; tst_info: PTS_TST_Info) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_RESP_get_token(a: PTS_RESP): PPKCS7 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_RESP_get_tst_info(a: PTS_RESP): PTS_TST_Info cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_TST_INFO_set_version(a: PTS_TST_Info; version: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_version(const a: PTS_TST_Info): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_TST_INFO_set_policy_id(a: PTS_TST_Info; policy_id: PASN1_Object): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_policy_id(a: PTS_TST_Info): PASN1_Object cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_TST_INFO_set_msg_imprint(a: PTS_TST_Info; msg_imprint: PTS_MSG_IMPRINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_msg_imprint(a: PTS_TST_Info): PTS_MSG_IMPRINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_TST_INFO_set_serial(a: PTS_TST_Info; const serial: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_serial(const a: PTS_TST_INFO): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_TST_INFO_set_time(a: PTS_TST_Info; gtime: PASN1_GENERALIZEDTIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_time(const a: PTS_TST_INFO): PASN1_GENERALIZEDTIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_TST_INFO_set_accuracy(a: PTS_TST_Info; accuracy: PTS_ACCURACY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_accuracy(a: PTS_TST_Info): PTS_ACCURACY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_ACCURACY_set_seconds(a: PTS_ACCURACY; const seconds: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_ACCURACY_get_seconds(const a: PTS_ACCURACY): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_ACCURACY_set_millis(a: PTS_ACCURACY; const millis: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_ACCURACY_get_millis(const a: PTS_ACCURACY): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_ACCURACY_set_micros(a: PTS_ACCURACY; const micros: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_ACCURACY_get_micros(const a: PTS_ACCURACY): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_TST_INFO_set_ordering(a: PTS_TST_Info; ordering: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_ordering(const a: PTS_TST_Info): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_TST_INFO_set_nonce(a: PTS_TST_Info; const nonce: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_nonce(const a: PTS_TST_INFO): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_TST_INFO_set_tsa(a: PTS_TST_Info; tsa: PGENERAL_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_tsa(a: PTS_TST_Info): PGENERAL_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //STACK_OF(X509_EXTENSION) *TS_TST_INFO_get_exts(TS_TST_INFO *a); + procedure TS_TST_INFO_ext_free(a: PTS_TST_Info) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_ext_count(a: PTS_TST_Info): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_ext_by_NID(a: PTS_TST_Info; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_ext_by_OBJ(a: PTS_TST_Info; const obj: PASN1_Object; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_ext_by_critical(a: PTS_TST_Info; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_ext(a: PTS_TST_Info; loc: TIdC_INT): PX509_Extension cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_delete_ext(a: PTS_TST_Info; loc: TIdC_INT): PX509_Extension cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_add_ext(a: PTS_TST_Info; ex: PX509_Extension; loc: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_get_ext_d2i(a: PTS_TST_Info; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Declarations related to response generation, defined in ts/ts_resp_sign.c. + *) + + //DEFINE_STACK_OF_CONST(EVP_MD) + + (* Creates a response context that can be used for generating responses. *) + function TS_RESP_CTX_new: PTS_RESP_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure TS_RESP_CTX_free(ctx: PTS_RESP_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* This parameter must be set. *) + function TS_RESP_CTX_set_signer_cert(ctx: PTS_RESP_CTX; signer: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* This parameter must be set. *) + function TS_RESP_CTX_set_signer_key(ctx: PTS_RESP_CTX; key: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_RESP_CTX_set_signer_digest(ctx: PTS_RESP_CTX; signer_digest: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_RESP_CTX_set_ess_cert_id_digest(ctx: PTS_RESP_CTX; md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* This parameter must be set. *) + function TS_RESP_CTX_set_def_policy(ctx: PTS_RESP_CTX; def_policy: PASN1_Object): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* No additional certs are included in the response by default. *) + // int TS_RESP_CTX_set_certs(TS_RESP_CTX *ctx, STACK_OF(X509) *certs); + + (* + * Adds a new acceptable policy, only the default policy is accepted by + * default. + *) + function TS_RESP_CTX_add_policy(ctx: PTS_RESP_CTX; const policy: PASN1_Object): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Adds a new acceptable message digest. Note that no message digests are + * accepted by default. The md argument is shared with the caller. + *) + function TS_RESP_CTX_add_md(ctx: PTS_RESP_CTX; const md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Accuracy is not included by default. *) + function TS_RESP_CTX_set_accuracy(ctx: PTS_RESP_CTX; secs: TIdC_INT; millis: TIdC_INT; micros: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Clock precision digits, i.e. the number of decimal digits: '0' means sec, + * '3' msec, '6' usec, and so on. Default is 0. + *) + function TS_RESP_CTX_set_clock_precision_digits(ctx: PTS_RESP_CTX; clock_precision_digits: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* No flags are set by default. *) + procedure TS_RESP_CTX_add_flags(ctx: PTS_RESP_CTX; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Default callback always returns a constant. *) + procedure TS_RESP_CTX_set_serial_cb(ctx: PTS_RESP_CTX; cb: TS_serial_cb; data: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Default callback uses the gettimeofday() and gmtime() system calls. *) + procedure TS_RESP_CTX_set_time_cb(ctx: PTS_RESP_CTX; cb: TS_time_cb; data: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Default callback rejects all extensions. The extension callback is called + * when the TS_TST_INFO object is already set up and not signed yet. + *) + (* FIXME: extension handling is not tested yet. *) + procedure TS_RESP_CTX_set_extension_cb(ctx: PTS_RESP_CTX; cb: TS_extension_cb; data: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* The following methods can be used in the callbacks. *) + function TS_RESP_CTX_set_status_info(ctx: PTS_RESP_CTX; status: TIdC_INT; text: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Sets the status info only if it is still TS_STATUS_GRANTED. *) + function TS_RESP_CTX_set_status_info_cond(ctx: PTS_RESP_CTX; status: TIdC_INT; text: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_RESP_CTX_add_failure_info(ctx: PTS_RESP_CTX; failure: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* The get methods below can be used in the extension callback. *) + function TS_RESP_CTX_get_request(ctx: PTS_RESP_CTX): PTS_REQ cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function TS_RESP_CTX_get_tst_info(ctx: PTS_RESP_CTX): PTS_TST_Info cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Creates the signed TS_TST_INFO and puts it in TS_RESP. + * In case of errors it sets the status info properly. + * Returns NULL only in case of memory allocation/fatal error. + *) + function TS_RESP_create_response(ctx: PTS_RESP_CTX; req_bio: PBIO): PTS_RESP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Declarations related to response verification, + * they are defined in ts/ts_resp_verify.c. + *) + + //int TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs, + // X509_STORE *store, X509 **signer_out); + + (* Context structure for the generic verify method. *) + + function TS_RESP_verify_response(ctx: PTS_VERIFY_CTX; response: PTS_RESP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_RESP_verify_token(ctx: PTS_VERIFY_CTX; token: PPKCS7): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Declarations related to response verification context, + *) + function TS_VERIFY_CTX_new: PTS_VERIFY_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure TS_VERIFY_CTX_init(ctx: PTS_VERIFY_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure TS_VERIFY_CTX_free(ctx: PTS_VERIFY_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure TS_VERIFY_CTX_cleanup(ctx: PTS_VERIFY_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_VERIFY_CTX_set_flags(ctx: PTS_VERIFY_CTX; f: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_VERIFY_CTX_add_flags(ctx: PTS_VERIFY_CTX; f: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_VERIFY_CTX_set_data(ctx: PTS_VERIFY_CTX; b: PBIO): PBIO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_VERIFY_CTX_set_imprint(ctx: PTS_VERIFY_CTX; hexstr: PByte; len: TIdC_LONG): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_VERIFY_CTX_set_store(ctx: PTS_VERIFY_CTX; s: PX509_Store): PX509_Store cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + // STACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs); + + (*- + * If ctx is NULL, it allocates and returns a new object, otherwise + * it returns ctx. It initialises all the members as follows: + * flags = TS_VFY_ALL_IMPRINT & ~(TS_VFY_TSA_NAME | TS_VFY_SIGNATURE) + * certs = NULL + * store = NULL + * policy = policy from the request or NULL if absent (in this case + * TS_VFY_POLICY is cleared from flags as well) + * md_alg = MD algorithm from request + * imprint, imprint_len = imprint from request + * data = NULL + * nonce, nonce_len = nonce from the request or NULL if absent (in this case + * TS_VFY_NONCE is cleared from flags as well) + * tsa_name = NULL + * Important: after calling this method TS_VFY_SIGNATURE should be added! + *) + function TS_REQ_to_TS_VERIFY_CTX(req: PTS_REQ; ctx: PTS_VERIFY_CTX): PTS_VERIFY_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Function declarations for TS_RESP defined in ts/ts_resp_print.c *) + + function TS_RESP_print_bio(bio: PBIO; a: PTS_RESP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_STATUS_INFO_print_bio(bio: PBIO; a: PTS_STATUS_INFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_TST_INFO_print_bio(bio: PBIO; a: PTS_TST_Info): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Common utility functions defined in ts/ts_lib.c *) + + function TS_ASN1_INTEGER_print_bio(bio: PBIO; const num: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_OBJ_print_bio(bio: PBIO; const obj: PASN1_Object): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function TS_ext_print_bio(bio: PBIO; const STACK_OF(): X509_Extension * extensions): TIdC_INT; + function TS_X509_ALGOR_print_bio(bio: PBIO; const alg: PX509_ALGOr): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_MSG_IMPRINT_print_bio(bio: PBIO; msg: PTS_MSG_IMPRINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Function declarations for handling configuration options, defined in + * ts/ts_conf.c + *) + + function TS_CONF_load_cert(file_: PIdAnsiChar): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_load_key( file_: PIdAnsiChar; pass: PIdAnsiChar): PEVP_PKey cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_serial(conf: PCONF; section: PIdAnsiChar; cb: TS_serial_cb; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //STACK_OF(X509) *TS_CONF_load_certs(const char *file); + function TS_CONF_get_tsa_section(conf: PCONF; const section: PIdAnsiChar): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_crypto_device(conf: PCONF; section: PIdAnsiChar; device: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_default_engine(name: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_signer_cert(conf: PCONF; section: PIdAnsiChar; cert: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_certs(conf: PCONF; section: PIdAnsiChar; certs: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_signer_key(conf: PCONF; const section: PIdAnsiChar; key: PIdAnsiChar; pass: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_signer_digest(conf: PCONF; section: PIdAnsiChar; md: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_def_policy(conf: PCONF; section: PIdAnsiChar; policy: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_policies(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_digests(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_accuracy(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_clock_precision_digits(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_ordering(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_tsa_name(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_ess_cert_id_chain(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TS_CONF_set_ess_cert_id_digest(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + TS_REQ_new := LoadFunction('TS_REQ_new',AFailed); + TS_REQ_free := LoadFunction('TS_REQ_free',AFailed); + i2d_TS_REQ := LoadFunction('i2d_TS_REQ',AFailed); + d2i_TS_REQ := LoadFunction('d2i_TS_REQ',AFailed); + TS_REQ_dup := LoadFunction('TS_REQ_dup',AFailed); + d2i_TS_REQ_bio := LoadFunction('d2i_TS_REQ_bio',AFailed); + i2d_TS_REQ_bio := LoadFunction('i2d_TS_REQ_bio',AFailed); + TS_MSG_IMPRINT_new := LoadFunction('TS_MSG_IMPRINT_new',AFailed); + TS_MSG_IMPRINT_free := LoadFunction('TS_MSG_IMPRINT_free',AFailed); + i2d_TS_MSG_IMPRINT := LoadFunction('i2d_TS_MSG_IMPRINT',AFailed); + d2i_TS_MSG_IMPRINT := LoadFunction('d2i_TS_MSG_IMPRINT',AFailed); + TS_MSG_IMPRINT_dup := LoadFunction('TS_MSG_IMPRINT_dup',AFailed); + d2i_TS_MSG_IMPRINT_bio := LoadFunction('d2i_TS_MSG_IMPRINT_bio',AFailed); + i2d_TS_MSG_IMPRINT_bio := LoadFunction('i2d_TS_MSG_IMPRINT_bio',AFailed); + TS_RESP_new := LoadFunction('TS_RESP_new',AFailed); + TS_RESP_free := LoadFunction('TS_RESP_free',AFailed); + i2d_TS_RESP := LoadFunction('i2d_TS_RESP',AFailed); + d2i_TS_RESP := LoadFunction('d2i_TS_RESP',AFailed); + PKCS7_to_TS_TST_INFO := LoadFunction('PKCS7_to_TS_TST_INFO',AFailed); + TS_RESP_dup := LoadFunction('TS_RESP_dup',AFailed); + d2i_TS_RESP_bio := LoadFunction('d2i_TS_RESP_bio',AFailed); + i2d_TS_RESP_bio := LoadFunction('i2d_TS_RESP_bio',AFailed); + TS_STATUS_INFO_new := LoadFunction('TS_STATUS_INFO_new',AFailed); + TS_STATUS_INFO_free := LoadFunction('TS_STATUS_INFO_free',AFailed); + i2d_TS_STATUS_INFO := LoadFunction('i2d_TS_STATUS_INFO',AFailed); + d2i_TS_STATUS_INFO := LoadFunction('d2i_TS_STATUS_INFO',AFailed); + TS_STATUS_INFO_dup := LoadFunction('TS_STATUS_INFO_dup',AFailed); + TS_TST_INFO_new := LoadFunction('TS_TST_INFO_new',AFailed); + TS_TST_INFO_free := LoadFunction('TS_TST_INFO_free',AFailed); + i2d_TS_TST_INFO := LoadFunction('i2d_TS_TST_INFO',AFailed); + d2i_TS_TST_INFO := LoadFunction('d2i_TS_TST_INFO',AFailed); + TS_TST_INFO_dup := LoadFunction('TS_TST_INFO_dup',AFailed); + d2i_TS_TST_INFO_bio := LoadFunction('d2i_TS_TST_INFO_bio',AFailed); + i2d_TS_TST_INFO_bio := LoadFunction('i2d_TS_TST_INFO_bio',AFailed); + TS_ACCURACY_new := LoadFunction('TS_ACCURACY_new',AFailed); + TS_ACCURACY_free := LoadFunction('TS_ACCURACY_free',AFailed); + i2d_TS_ACCURACY := LoadFunction('i2d_TS_ACCURACY',AFailed); + d2i_TS_ACCURACY := LoadFunction('d2i_TS_ACCURACY',AFailed); + TS_ACCURACY_dup := LoadFunction('TS_ACCURACY_dup',AFailed); + ESS_ISSUER_SERIAL_new := LoadFunction('ESS_ISSUER_SERIAL_new',AFailed); + ESS_ISSUER_SERIAL_free := LoadFunction('ESS_ISSUER_SERIAL_free',AFailed); + i2d_ESS_ISSUER_SERIAL := LoadFunction('i2d_ESS_ISSUER_SERIAL',AFailed); + d2i_ESS_ISSUER_SERIAL := LoadFunction('d2i_ESS_ISSUER_SERIAL',AFailed); + ESS_ISSUER_SERIAL_dup := LoadFunction('ESS_ISSUER_SERIAL_dup',AFailed); + ESS_CERT_ID_new := LoadFunction('ESS_CERT_ID_new',AFailed); + ESS_CERT_ID_free := LoadFunction('ESS_CERT_ID_free',AFailed); + i2d_ESS_CERT_ID := LoadFunction('i2d_ESS_CERT_ID',AFailed); + d2i_ESS_CERT_ID := LoadFunction('d2i_ESS_CERT_ID',AFailed); + ESS_CERT_ID_dup := LoadFunction('ESS_CERT_ID_dup',AFailed); + ESS_SIGNING_CERT_new := LoadFunction('ESS_SIGNING_CERT_new',AFailed); + ESS_SIGNING_CERT_free := LoadFunction('ESS_SIGNING_CERT_free',AFailed); + i2d_ESS_SIGNING_CERT := LoadFunction('i2d_ESS_SIGNING_CERT',AFailed); + d2i_ESS_SIGNING_CERT := LoadFunction('d2i_ESS_SIGNING_CERT',AFailed); + ESS_SIGNING_CERT_dup := LoadFunction('ESS_SIGNING_CERT_dup',AFailed); + ESS_CERT_ID_V2_new := LoadFunction('ESS_CERT_ID_V2_new',AFailed); + ESS_CERT_ID_V2_free := LoadFunction('ESS_CERT_ID_V2_free',AFailed); + i2d_ESS_CERT_ID_V2 := LoadFunction('i2d_ESS_CERT_ID_V2',AFailed); + d2i_ESS_CERT_ID_V2 := LoadFunction('d2i_ESS_CERT_ID_V2',AFailed); + ESS_CERT_ID_V2_dup := LoadFunction('ESS_CERT_ID_V2_dup',AFailed); + ESS_SIGNING_CERT_V2_new := LoadFunction('ESS_SIGNING_CERT_V2_new',AFailed); + ESS_SIGNING_CERT_V2_free := LoadFunction('ESS_SIGNING_CERT_V2_free',AFailed); + i2d_ESS_SIGNING_CERT_V2 := LoadFunction('i2d_ESS_SIGNING_CERT_V2',AFailed); + d2i_ESS_SIGNING_CERT_V2 := LoadFunction('d2i_ESS_SIGNING_CERT_V2',AFailed); + ESS_SIGNING_CERT_V2_dup := LoadFunction('ESS_SIGNING_CERT_V2_dup',AFailed); + TS_REQ_set_version := LoadFunction('TS_REQ_set_version',AFailed); + TS_REQ_get_version := LoadFunction('TS_REQ_get_version',AFailed); + TS_STATUS_INFO_set_status := LoadFunction('TS_STATUS_INFO_set_status',AFailed); + TS_STATUS_INFO_get0_status := LoadFunction('TS_STATUS_INFO_get0_status',AFailed); + TS_REQ_set_msg_imprint := LoadFunction('TS_REQ_set_msg_imprint',AFailed); + TS_REQ_get_msg_imprint := LoadFunction('TS_REQ_get_msg_imprint',AFailed); + TS_MSG_IMPRINT_set_algo := LoadFunction('TS_MSG_IMPRINT_set_algo',AFailed); + TS_MSG_IMPRINT_get_algo := LoadFunction('TS_MSG_IMPRINT_get_algo',AFailed); + TS_MSG_IMPRINT_set_msg := LoadFunction('TS_MSG_IMPRINT_set_msg',AFailed); + TS_MSG_IMPRINT_get_msg := LoadFunction('TS_MSG_IMPRINT_get_msg',AFailed); + TS_REQ_set_policy_id := LoadFunction('TS_REQ_set_policy_id',AFailed); + TS_REQ_get_policy_id := LoadFunction('TS_REQ_get_policy_id',AFailed); + TS_REQ_set_nonce := LoadFunction('TS_REQ_set_nonce',AFailed); + TS_REQ_get_nonce := LoadFunction('TS_REQ_get_nonce',AFailed); + TS_REQ_set_cert_req := LoadFunction('TS_REQ_set_cert_req',AFailed); + TS_REQ_get_cert_req := LoadFunction('TS_REQ_get_cert_req',AFailed); + TS_REQ_ext_free := LoadFunction('TS_REQ_ext_free',AFailed); + TS_REQ_get_ext_count := LoadFunction('TS_REQ_get_ext_count',AFailed); + TS_REQ_get_ext_by_NID := LoadFunction('TS_REQ_get_ext_by_NID',AFailed); + TS_REQ_get_ext_by_OBJ := LoadFunction('TS_REQ_get_ext_by_OBJ',AFailed); + TS_REQ_get_ext_by_critical := LoadFunction('TS_REQ_get_ext_by_critical',AFailed); + TS_REQ_get_ext := LoadFunction('TS_REQ_get_ext',AFailed); + TS_REQ_delete_ext := LoadFunction('TS_REQ_delete_ext',AFailed); + TS_REQ_add_ext := LoadFunction('TS_REQ_add_ext',AFailed); + TS_REQ_get_ext_d2i := LoadFunction('TS_REQ_get_ext_d2i',AFailed); + TS_REQ_print_bio := LoadFunction('TS_REQ_print_bio',AFailed); + TS_RESP_set_status_info := LoadFunction('TS_RESP_set_status_info',AFailed); + TS_RESP_get_status_info := LoadFunction('TS_RESP_get_status_info',AFailed); + TS_RESP_set_tst_info := LoadFunction('TS_RESP_set_tst_info',AFailed); + TS_RESP_get_token := LoadFunction('TS_RESP_get_token',AFailed); + TS_RESP_get_tst_info := LoadFunction('TS_RESP_get_tst_info',AFailed); + TS_TST_INFO_set_version := LoadFunction('TS_TST_INFO_set_version',AFailed); + TS_TST_INFO_get_version := LoadFunction('TS_TST_INFO_get_version',AFailed); + TS_TST_INFO_set_policy_id := LoadFunction('TS_TST_INFO_set_policy_id',AFailed); + TS_TST_INFO_get_policy_id := LoadFunction('TS_TST_INFO_get_policy_id',AFailed); + TS_TST_INFO_set_msg_imprint := LoadFunction('TS_TST_INFO_set_msg_imprint',AFailed); + TS_TST_INFO_get_msg_imprint := LoadFunction('TS_TST_INFO_get_msg_imprint',AFailed); + TS_TST_INFO_set_serial := LoadFunction('TS_TST_INFO_set_serial',AFailed); + TS_TST_INFO_get_serial := LoadFunction('TS_TST_INFO_get_serial',AFailed); + TS_TST_INFO_set_time := LoadFunction('TS_TST_INFO_set_time',AFailed); + TS_TST_INFO_get_time := LoadFunction('TS_TST_INFO_get_time',AFailed); + TS_TST_INFO_set_accuracy := LoadFunction('TS_TST_INFO_set_accuracy',AFailed); + TS_TST_INFO_get_accuracy := LoadFunction('TS_TST_INFO_get_accuracy',AFailed); + TS_ACCURACY_set_seconds := LoadFunction('TS_ACCURACY_set_seconds',AFailed); + TS_ACCURACY_get_seconds := LoadFunction('TS_ACCURACY_get_seconds',AFailed); + TS_ACCURACY_set_millis := LoadFunction('TS_ACCURACY_set_millis',AFailed); + TS_ACCURACY_get_millis := LoadFunction('TS_ACCURACY_get_millis',AFailed); + TS_ACCURACY_set_micros := LoadFunction('TS_ACCURACY_set_micros',AFailed); + TS_ACCURACY_get_micros := LoadFunction('TS_ACCURACY_get_micros',AFailed); + TS_TST_INFO_set_ordering := LoadFunction('TS_TST_INFO_set_ordering',AFailed); + TS_TST_INFO_get_ordering := LoadFunction('TS_TST_INFO_get_ordering',AFailed); + TS_TST_INFO_set_nonce := LoadFunction('TS_TST_INFO_set_nonce',AFailed); + TS_TST_INFO_get_nonce := LoadFunction('TS_TST_INFO_get_nonce',AFailed); + TS_TST_INFO_set_tsa := LoadFunction('TS_TST_INFO_set_tsa',AFailed); + TS_TST_INFO_get_tsa := LoadFunction('TS_TST_INFO_get_tsa',AFailed); + TS_TST_INFO_ext_free := LoadFunction('TS_TST_INFO_ext_free',AFailed); + TS_TST_INFO_get_ext_count := LoadFunction('TS_TST_INFO_get_ext_count',AFailed); + TS_TST_INFO_get_ext_by_NID := LoadFunction('TS_TST_INFO_get_ext_by_NID',AFailed); + TS_TST_INFO_get_ext_by_OBJ := LoadFunction('TS_TST_INFO_get_ext_by_OBJ',AFailed); + TS_TST_INFO_get_ext_by_critical := LoadFunction('TS_TST_INFO_get_ext_by_critical',AFailed); + TS_TST_INFO_get_ext := LoadFunction('TS_TST_INFO_get_ext',AFailed); + TS_TST_INFO_delete_ext := LoadFunction('TS_TST_INFO_delete_ext',AFailed); + TS_TST_INFO_add_ext := LoadFunction('TS_TST_INFO_add_ext',AFailed); + TS_TST_INFO_get_ext_d2i := LoadFunction('TS_TST_INFO_get_ext_d2i',AFailed); + TS_RESP_CTX_new := LoadFunction('TS_RESP_CTX_new',AFailed); + TS_RESP_CTX_free := LoadFunction('TS_RESP_CTX_free',AFailed); + TS_RESP_CTX_set_signer_cert := LoadFunction('TS_RESP_CTX_set_signer_cert',AFailed); + TS_RESP_CTX_set_signer_key := LoadFunction('TS_RESP_CTX_set_signer_key',AFailed); + TS_RESP_CTX_set_signer_digest := LoadFunction('TS_RESP_CTX_set_signer_digest',AFailed); + TS_RESP_CTX_set_ess_cert_id_digest := LoadFunction('TS_RESP_CTX_set_ess_cert_id_digest',AFailed); + TS_RESP_CTX_set_def_policy := LoadFunction('TS_RESP_CTX_set_def_policy',AFailed); + TS_RESP_CTX_add_policy := LoadFunction('TS_RESP_CTX_add_policy',AFailed); + TS_RESP_CTX_add_md := LoadFunction('TS_RESP_CTX_add_md',AFailed); + TS_RESP_CTX_set_accuracy := LoadFunction('TS_RESP_CTX_set_accuracy',AFailed); + TS_RESP_CTX_set_clock_precision_digits := LoadFunction('TS_RESP_CTX_set_clock_precision_digits',AFailed); + TS_RESP_CTX_add_flags := LoadFunction('TS_RESP_CTX_add_flags',AFailed); + TS_RESP_CTX_set_serial_cb := LoadFunction('TS_RESP_CTX_set_serial_cb',AFailed); + TS_RESP_CTX_set_time_cb := LoadFunction('TS_RESP_CTX_set_time_cb',AFailed); + TS_RESP_CTX_set_extension_cb := LoadFunction('TS_RESP_CTX_set_extension_cb',AFailed); + TS_RESP_CTX_set_status_info := LoadFunction('TS_RESP_CTX_set_status_info',AFailed); + TS_RESP_CTX_set_status_info_cond := LoadFunction('TS_RESP_CTX_set_status_info_cond',AFailed); + TS_RESP_CTX_add_failure_info := LoadFunction('TS_RESP_CTX_add_failure_info',AFailed); + TS_RESP_CTX_get_request := LoadFunction('TS_RESP_CTX_get_request',AFailed); + TS_RESP_CTX_get_tst_info := LoadFunction('TS_RESP_CTX_get_tst_info',AFailed); + TS_RESP_create_response := LoadFunction('TS_RESP_create_response',AFailed); + TS_RESP_verify_response := LoadFunction('TS_RESP_verify_response',AFailed); + TS_RESP_verify_token := LoadFunction('TS_RESP_verify_token',AFailed); + TS_VERIFY_CTX_new := LoadFunction('TS_VERIFY_CTX_new',AFailed); + TS_VERIFY_CTX_init := LoadFunction('TS_VERIFY_CTX_init',AFailed); + TS_VERIFY_CTX_free := LoadFunction('TS_VERIFY_CTX_free',AFailed); + TS_VERIFY_CTX_cleanup := LoadFunction('TS_VERIFY_CTX_cleanup',AFailed); + TS_VERIFY_CTX_set_flags := LoadFunction('TS_VERIFY_CTX_set_flags',AFailed); + TS_VERIFY_CTX_add_flags := LoadFunction('TS_VERIFY_CTX_add_flags',AFailed); + TS_VERIFY_CTX_set_data := LoadFunction('TS_VERIFY_CTX_set_data',AFailed); + TS_VERIFY_CTX_set_imprint := LoadFunction('TS_VERIFY_CTX_set_imprint',AFailed); + TS_VERIFY_CTX_set_store := LoadFunction('TS_VERIFY_CTX_set_store',AFailed); + TS_REQ_to_TS_VERIFY_CTX := LoadFunction('TS_REQ_to_TS_VERIFY_CTX',AFailed); + TS_RESP_print_bio := LoadFunction('TS_RESP_print_bio',AFailed); + TS_STATUS_INFO_print_bio := LoadFunction('TS_STATUS_INFO_print_bio',AFailed); + TS_TST_INFO_print_bio := LoadFunction('TS_TST_INFO_print_bio',AFailed); + TS_ASN1_INTEGER_print_bio := LoadFunction('TS_ASN1_INTEGER_print_bio',AFailed); + TS_OBJ_print_bio := LoadFunction('TS_OBJ_print_bio',AFailed); + TS_X509_ALGOR_print_bio := LoadFunction('TS_X509_ALGOR_print_bio',AFailed); + TS_MSG_IMPRINT_print_bio := LoadFunction('TS_MSG_IMPRINT_print_bio',AFailed); + TS_CONF_load_cert := LoadFunction('TS_CONF_load_cert',AFailed); + TS_CONF_load_key := LoadFunction('TS_CONF_load_key',AFailed); + TS_CONF_set_serial := LoadFunction('TS_CONF_set_serial',AFailed); + TS_CONF_get_tsa_section := LoadFunction('TS_CONF_get_tsa_section',AFailed); + TS_CONF_set_crypto_device := LoadFunction('TS_CONF_set_crypto_device',AFailed); + TS_CONF_set_default_engine := LoadFunction('TS_CONF_set_default_engine',AFailed); + TS_CONF_set_signer_cert := LoadFunction('TS_CONF_set_signer_cert',AFailed); + TS_CONF_set_certs := LoadFunction('TS_CONF_set_certs',AFailed); + TS_CONF_set_signer_key := LoadFunction('TS_CONF_set_signer_key',AFailed); + TS_CONF_set_signer_digest := LoadFunction('TS_CONF_set_signer_digest',AFailed); + TS_CONF_set_def_policy := LoadFunction('TS_CONF_set_def_policy',AFailed); + TS_CONF_set_policies := LoadFunction('TS_CONF_set_policies',AFailed); + TS_CONF_set_digests := LoadFunction('TS_CONF_set_digests',AFailed); + TS_CONF_set_accuracy := LoadFunction('TS_CONF_set_accuracy',AFailed); + TS_CONF_set_clock_precision_digits := LoadFunction('TS_CONF_set_clock_precision_digits',AFailed); + TS_CONF_set_ordering := LoadFunction('TS_CONF_set_ordering',AFailed); + TS_CONF_set_tsa_name := LoadFunction('TS_CONF_set_tsa_name',AFailed); + TS_CONF_set_ess_cert_id_chain := LoadFunction('TS_CONF_set_ess_cert_id_chain',AFailed); + TS_CONF_set_ess_cert_id_digest := LoadFunction('TS_CONF_set_ess_cert_id_digest',AFailed); +end; + +procedure Unload; +begin + TS_REQ_new := nil; + TS_REQ_free := nil; + i2d_TS_REQ := nil; + d2i_TS_REQ := nil; + TS_REQ_dup := nil; + d2i_TS_REQ_bio := nil; + i2d_TS_REQ_bio := nil; + TS_MSG_IMPRINT_new := nil; + TS_MSG_IMPRINT_free := nil; + i2d_TS_MSG_IMPRINT := nil; + d2i_TS_MSG_IMPRINT := nil; + TS_MSG_IMPRINT_dup := nil; + d2i_TS_MSG_IMPRINT_bio := nil; + i2d_TS_MSG_IMPRINT_bio := nil; + TS_RESP_new := nil; + TS_RESP_free := nil; + i2d_TS_RESP := nil; + d2i_TS_RESP := nil; + PKCS7_to_TS_TST_INFO := nil; + TS_RESP_dup := nil; + d2i_TS_RESP_bio := nil; + i2d_TS_RESP_bio := nil; + TS_STATUS_INFO_new := nil; + TS_STATUS_INFO_free := nil; + i2d_TS_STATUS_INFO := nil; + d2i_TS_STATUS_INFO := nil; + TS_STATUS_INFO_dup := nil; + TS_TST_INFO_new := nil; + TS_TST_INFO_free := nil; + i2d_TS_TST_INFO := nil; + d2i_TS_TST_INFO := nil; + TS_TST_INFO_dup := nil; + d2i_TS_TST_INFO_bio := nil; + i2d_TS_TST_INFO_bio := nil; + TS_ACCURACY_new := nil; + TS_ACCURACY_free := nil; + i2d_TS_ACCURACY := nil; + d2i_TS_ACCURACY := nil; + TS_ACCURACY_dup := nil; + ESS_ISSUER_SERIAL_new := nil; + ESS_ISSUER_SERIAL_free := nil; + i2d_ESS_ISSUER_SERIAL := nil; + d2i_ESS_ISSUER_SERIAL := nil; + ESS_ISSUER_SERIAL_dup := nil; + ESS_CERT_ID_new := nil; + ESS_CERT_ID_free := nil; + i2d_ESS_CERT_ID := nil; + d2i_ESS_CERT_ID := nil; + ESS_CERT_ID_dup := nil; + ESS_SIGNING_CERT_new := nil; + ESS_SIGNING_CERT_free := nil; + i2d_ESS_SIGNING_CERT := nil; + d2i_ESS_SIGNING_CERT := nil; + ESS_SIGNING_CERT_dup := nil; + ESS_CERT_ID_V2_new := nil; + ESS_CERT_ID_V2_free := nil; + i2d_ESS_CERT_ID_V2 := nil; + d2i_ESS_CERT_ID_V2 := nil; + ESS_CERT_ID_V2_dup := nil; + ESS_SIGNING_CERT_V2_new := nil; + ESS_SIGNING_CERT_V2_free := nil; + i2d_ESS_SIGNING_CERT_V2 := nil; + d2i_ESS_SIGNING_CERT_V2 := nil; + ESS_SIGNING_CERT_V2_dup := nil; + TS_REQ_set_version := nil; + TS_REQ_get_version := nil; + TS_STATUS_INFO_set_status := nil; + TS_STATUS_INFO_get0_status := nil; + TS_REQ_set_msg_imprint := nil; + TS_REQ_get_msg_imprint := nil; + TS_MSG_IMPRINT_set_algo := nil; + TS_MSG_IMPRINT_get_algo := nil; + TS_MSG_IMPRINT_set_msg := nil; + TS_MSG_IMPRINT_get_msg := nil; + TS_REQ_set_policy_id := nil; + TS_REQ_get_policy_id := nil; + TS_REQ_set_nonce := nil; + TS_REQ_get_nonce := nil; + TS_REQ_set_cert_req := nil; + TS_REQ_get_cert_req := nil; + TS_REQ_ext_free := nil; + TS_REQ_get_ext_count := nil; + TS_REQ_get_ext_by_NID := nil; + TS_REQ_get_ext_by_OBJ := nil; + TS_REQ_get_ext_by_critical := nil; + TS_REQ_get_ext := nil; + TS_REQ_delete_ext := nil; + TS_REQ_add_ext := nil; + TS_REQ_get_ext_d2i := nil; + TS_REQ_print_bio := nil; + TS_RESP_set_status_info := nil; + TS_RESP_get_status_info := nil; + TS_RESP_set_tst_info := nil; + TS_RESP_get_token := nil; + TS_RESP_get_tst_info := nil; + TS_TST_INFO_set_version := nil; + TS_TST_INFO_get_version := nil; + TS_TST_INFO_set_policy_id := nil; + TS_TST_INFO_get_policy_id := nil; + TS_TST_INFO_set_msg_imprint := nil; + TS_TST_INFO_get_msg_imprint := nil; + TS_TST_INFO_set_serial := nil; + TS_TST_INFO_get_serial := nil; + TS_TST_INFO_set_time := nil; + TS_TST_INFO_get_time := nil; + TS_TST_INFO_set_accuracy := nil; + TS_TST_INFO_get_accuracy := nil; + TS_ACCURACY_set_seconds := nil; + TS_ACCURACY_get_seconds := nil; + TS_ACCURACY_set_millis := nil; + TS_ACCURACY_get_millis := nil; + TS_ACCURACY_set_micros := nil; + TS_ACCURACY_get_micros := nil; + TS_TST_INFO_set_ordering := nil; + TS_TST_INFO_get_ordering := nil; + TS_TST_INFO_set_nonce := nil; + TS_TST_INFO_get_nonce := nil; + TS_TST_INFO_set_tsa := nil; + TS_TST_INFO_get_tsa := nil; + TS_TST_INFO_ext_free := nil; + TS_TST_INFO_get_ext_count := nil; + TS_TST_INFO_get_ext_by_NID := nil; + TS_TST_INFO_get_ext_by_OBJ := nil; + TS_TST_INFO_get_ext_by_critical := nil; + TS_TST_INFO_get_ext := nil; + TS_TST_INFO_delete_ext := nil; + TS_TST_INFO_add_ext := nil; + TS_TST_INFO_get_ext_d2i := nil; + TS_RESP_CTX_new := nil; + TS_RESP_CTX_free := nil; + TS_RESP_CTX_set_signer_cert := nil; + TS_RESP_CTX_set_signer_key := nil; + TS_RESP_CTX_set_signer_digest := nil; + TS_RESP_CTX_set_ess_cert_id_digest := nil; + TS_RESP_CTX_set_def_policy := nil; + TS_RESP_CTX_add_policy := nil; + TS_RESP_CTX_add_md := nil; + TS_RESP_CTX_set_accuracy := nil; + TS_RESP_CTX_set_clock_precision_digits := nil; + TS_RESP_CTX_add_flags := nil; + TS_RESP_CTX_set_serial_cb := nil; + TS_RESP_CTX_set_time_cb := nil; + TS_RESP_CTX_set_extension_cb := nil; + TS_RESP_CTX_set_status_info := nil; + TS_RESP_CTX_set_status_info_cond := nil; + TS_RESP_CTX_add_failure_info := nil; + TS_RESP_CTX_get_request := nil; + TS_RESP_CTX_get_tst_info := nil; + TS_RESP_create_response := nil; + TS_RESP_verify_response := nil; + TS_RESP_verify_token := nil; + TS_VERIFY_CTX_new := nil; + TS_VERIFY_CTX_init := nil; + TS_VERIFY_CTX_free := nil; + TS_VERIFY_CTX_cleanup := nil; + TS_VERIFY_CTX_set_flags := nil; + TS_VERIFY_CTX_add_flags := nil; + TS_VERIFY_CTX_set_data := nil; + TS_VERIFY_CTX_set_imprint := nil; + TS_VERIFY_CTX_set_store := nil; + TS_REQ_to_TS_VERIFY_CTX := nil; + TS_RESP_print_bio := nil; + TS_STATUS_INFO_print_bio := nil; + TS_TST_INFO_print_bio := nil; + TS_ASN1_INTEGER_print_bio := nil; + TS_OBJ_print_bio := nil; + TS_X509_ALGOR_print_bio := nil; + TS_MSG_IMPRINT_print_bio := nil; + TS_CONF_load_cert := nil; + TS_CONF_load_key := nil; + TS_CONF_set_serial := nil; + TS_CONF_get_tsa_section := nil; + TS_CONF_set_crypto_device := nil; + TS_CONF_set_default_engine := nil; + TS_CONF_set_signer_cert := nil; + TS_CONF_set_certs := nil; + TS_CONF_set_signer_key := nil; + TS_CONF_set_signer_digest := nil; + TS_CONF_set_def_policy := nil; + TS_CONF_set_policies := nil; + TS_CONF_set_digests := nil; + TS_CONF_set_accuracy := nil; + TS_CONF_set_clock_precision_digits := nil; + TS_CONF_set_ordering := nil; + TS_CONF_set_tsa_name := nil; + TS_CONF_set_ess_cert_id_chain := nil; + TS_CONF_set_ess_cert_id_digest := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_tserr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_tserr.pas new file mode 100644 index 000000000..64512d45c --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_tserr.pas @@ -0,0 +1,205 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_tserr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_tserr.h2pas + and this file regenerated. IdOpenSSLHeaders_tserr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_tserr; + +interface + +// Headers for OpenSSL 1.1.1 +// tserr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * TS function codes. + *) + TS_F_DEF_SERIAL_CB = 110; + TS_F_DEF_TIME_CB = 111; + TS_F_ESS_ADD_SIGNING_CERT = 112; + TS_F_ESS_ADD_SIGNING_CERT_V2 = 147; + TS_F_ESS_CERT_ID_NEW_INIT = 113; + TS_F_ESS_CERT_ID_V2_NEW_INIT = 156; + TS_F_ESS_SIGNING_CERT_NEW_INIT = 114; + TS_F_ESS_SIGNING_CERT_V2_NEW_INIT = 157; + TS_F_INT_TS_RESP_VERIFY_TOKEN = 149; + TS_F_PKCS7_TO_TS_TST_INFO = 148; + TS_F_TS_ACCURACY_SET_MICROS = 115; + TS_F_TS_ACCURACY_SET_MILLIS = 116; + TS_F_TS_ACCURACY_SET_SECONDS = 117; + TS_F_TS_CHECK_IMPRINTS = 100; + TS_F_TS_CHECK_NONCES = 101; + TS_F_TS_CHECK_POLICY = 102; + TS_F_TS_CHECK_SIGNING_CERTS = 103; + TS_F_TS_CHECK_STATUS_INFO = 104; + TS_F_TS_COMPUTE_IMPRINT = 145; + TS_F_TS_CONF_INVALID = 151; + TS_F_TS_CONF_LOAD_CERT = 153; + TS_F_TS_CONF_LOAD_CERTS = 154; + TS_F_TS_CONF_LOAD_KEY = 155; + TS_F_TS_CONF_LOOKUP_FAIL = 152; + TS_F_TS_CONF_SET_DEFAULT_ENGINE = 146; + TS_F_TS_GET_STATUS_TEXT = 105; + TS_F_TS_MSG_IMPRINT_SET_ALGO = 118; + TS_F_TS_REQ_SET_MSG_IMPRINT = 119; + TS_F_TS_REQ_SET_NONCE = 120; + TS_F_TS_REQ_SET_POLICY_ID = 121; + TS_F_TS_RESP_CREATE_RESPONSE = 122; + TS_F_TS_RESP_CREATE_TST_INFO = 123; + TS_F_TS_RESP_CTX_ADD_FAILURE_INFO = 124; + TS_F_TS_RESP_CTX_ADD_MD = 125; + TS_F_TS_RESP_CTX_ADD_POLICY = 126; + TS_F_TS_RESP_CTX_NEW = 127; + TS_F_TS_RESP_CTX_SET_ACCURACY = 128; + TS_F_TS_RESP_CTX_SET_CERTS = 129; + TS_F_TS_RESP_CTX_SET_DEF_POLICY = 130; + TS_F_TS_RESP_CTX_SET_SIGNER_CERT = 131; + TS_F_TS_RESP_CTX_SET_STATUS_INFO = 132; + TS_F_TS_RESP_GET_POLICY = 133; + TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION = 134; + TS_F_TS_RESP_SET_STATUS_INFO = 135; + TS_F_TS_RESP_SET_TST_INFO = 150; + TS_F_TS_RESP_SIGN = 136; + TS_F_TS_RESP_VERIFY_SIGNATURE = 106; + TS_F_TS_TST_INFO_SET_ACCURACY = 137; + TS_F_TS_TST_INFO_SET_MSG_IMPRINT = 138; + TS_F_TS_TST_INFO_SET_NONCE = 139; + TS_F_TS_TST_INFO_SET_POLICY_ID = 140; + TS_F_TS_TST_INFO_SET_SERIAL = 141; + TS_F_TS_TST_INFO_SET_TIME = 142; + TS_F_TS_TST_INFO_SET_TSA = 143; + TS_F_TS_VERIFY = 108; + TS_F_TS_VERIFY_CERT = 109; + TS_F_TS_VERIFY_CTX_NEW = 144; + + (* + * TS reason codes. + *) + TS_R_BAD_PKCS7_TYPE = 132; + TS_R_BAD_TYPE = 133; + TS_R_CANNOT_LOAD_CERT = 137; + TS_R_CANNOT_LOAD_KEY = 138; + TS_R_CERTIFICATE_VERIFY_ERROR = 100; + TS_R_COULD_NOT_SET_ENGINE = 127; + TS_R_COULD_NOT_SET_TIME = 115; + TS_R_DETACHED_CONTENT = 134; + TS_R_ESS_ADD_SIGNING_CERT_ERROR = 116; + TS_R_ESS_ADD_SIGNING_CERT_V2_ERROR = 139; + TS_R_ESS_SIGNING_CERTIFICATE_ERROR = 101; + TS_R_INVALID_NULL_POINTER = 102; + TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE = 117; + TS_R_MESSAGE_IMPRINT_MISMATCH = 103; + TS_R_NONCE_MISMATCH = 104; + TS_R_NONCE_NOT_RETURNED = 105; + TS_R_NO_CONTENT = 106; + TS_R_NO_TIME_STAMP_TOKEN = 107; + TS_R_PKCS7_ADD_SIGNATURE_ERROR = 118; + TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR = 119; + TS_R_PKCS7_TO_TS_TST_INFO_FAILED = 129; + TS_R_POLICY_MISMATCH = 108; + TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE = 120; + TS_R_RESPONSE_SETUP_ERROR = 121; + TS_R_SIGNATURE_FAILURE = 109; + TS_R_THERE_MUST_BE_ONE_SIGNER = 110; + TS_R_TIME_SYSCALL_ERROR = 122; + TS_R_TOKEN_NOT_PRESENT = 130; + TS_R_TOKEN_PRESENT = 131; + TS_R_TSA_NAME_MISMATCH = 111; + TS_R_TSA_UNTRUSTED = 112; + TS_R_TST_INFO_SETUP_ERROR = 123; + TS_R_TS_DATASIGN = 124; + TS_R_UNACCEPTABLE_POLICY = 125; + TS_R_UNSUPPORTED_MD_ALGORITHM = 126; + TS_R_UNSUPPORTED_VERSION = 113; + TS_R_VAR_BAD_VALUE = 135; + TS_R_VAR_LOOKUP_FAILURE = 136; + TS_R_WRONG_CONTENT_TYPE = 114; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_TS_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_TS_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_TS_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_TS_strings := LoadFunction('ERR_load_TS_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_TS_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_txt_db.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_txt_db.pas new file mode 100644 index 000000000..e176f7c53 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_txt_db.pas @@ -0,0 +1,153 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_txt_db.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_txt_db.h2pas + and this file regenerated. IdOpenSSLHeaders_txt_db.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_txt_db; + +interface + +// Headers for OpenSSL 1.1.1 +// txt_db.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + DB_ERROR_OK = 0; + DB_ERROR_MALLOC = 1; + DB_ERROR_INDEX_CLASH = 2; + DB_ERROR_INDEX_OUT_OF_RANGE = 3; + DB_ERROR_NO_INDEX = 4; + DB_ERROR_INSERT_INDEX_CLASH = 5; + DB_ERROR_WRONG_NUM_FIELDS = 6; + +type + OPENSSL_STRING = type Pointer; + POPENSSL_STRING = ^OPENSSL_STRING; +// DEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING) + + qual_func = function (v1: POPENSSL_STRING): TIdC_INT; + txt_db_st = record + num_fields: TIdC_INT; + data: Pointer; // STACK_OF(OPENSSL_PSTRING) * + index: Pointer; // LHASH_OF(OPENSSL_STRING) ** + qual: qual_func; + error: TIdC_LONG; + arg1: TIdC_LONG; + arg2: TIdC_LONG; + arg_row: POPENSSL_STRING; + end; + TXT_DB = txt_db_st; + PTXT_DB = ^TXT_DB; + + TXT_DB_create_index_qual = function(v1: POPENSSL_STRING): TIdC_INT; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM TXT_DB_read} + {$EXTERNALSYM TXT_DB_write} + {$EXTERNALSYM TXT_DB_free} + {$EXTERNALSYM TXT_DB_get_by_index} + {$EXTERNALSYM TXT_DB_insert} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + TXT_DB_read: function(in_: PBIO; num: TIdC_INT): PTXT_DB; cdecl = nil; + TXT_DB_write: function(out_: PBIO; db: PTXT_DB): TIdC_LONG; cdecl = nil; + //function TXT_DB_create_index(db: PTXT_DB; field: TIdC_INT; qual: TXT_DB_create_index_qual; hash: OPENSSL_LH_HashFunc; cmp: OPENSSL_LH_COMPFUNC): TIdC_INT; + TXT_DB_free: procedure(db: PTXT_DB); cdecl = nil; + TXT_DB_get_by_index: function(db: PTXT_DB; idx: TIdC_INT; value: POPENSSL_STRING): POPENSSL_STRING; cdecl = nil; + TXT_DB_insert: function(db: PTXT_DB; value: POPENSSL_STRING): TIdC_INT; cdecl = nil; + +{$ELSE} + function TXT_DB_read(in_: PBIO; num: TIdC_INT): PTXT_DB cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TXT_DB_write(out_: PBIO; db: PTXT_DB): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function TXT_DB_create_index(db: PTXT_DB; field: TIdC_INT; qual: TXT_DB_create_index_qual; hash: OPENSSL_LH_HashFunc; cmp: OPENSSL_LH_COMPFUNC): TIdC_INT; + procedure TXT_DB_free(db: PTXT_DB) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TXT_DB_get_by_index(db: PTXT_DB; idx: TIdC_INT; value: POPENSSL_STRING): POPENSSL_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function TXT_DB_insert(db: PTXT_DB; value: POPENSSL_STRING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + TXT_DB_read := LoadFunction('TXT_DB_read',AFailed); + TXT_DB_write := LoadFunction('TXT_DB_write',AFailed); + TXT_DB_free := LoadFunction('TXT_DB_free',AFailed); + TXT_DB_get_by_index := LoadFunction('TXT_DB_get_by_index',AFailed); + TXT_DB_insert := LoadFunction('TXT_DB_insert',AFailed); +end; + +procedure Unload; +begin + TXT_DB_read := nil; + TXT_DB_write := nil; + TXT_DB_free := nil; + TXT_DB_get_by_index := nil; + TXT_DB_insert := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ui.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ui.pas new file mode 100644 index 000000000..f89c59a47 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_ui.pas @@ -0,0 +1,853 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_ui.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_ui.h2pas + and this file regenerated. IdOpenSSLHeaders_ui.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ui; + +interface + +// Headers for OpenSSL 1.1.1 +// ui.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_crypto, + IdOpenSSLHeaders_pem, + IdOpenSSLHeaders_uierr; + +{$MINENUMSIZE 4} + +const + (* These are the possible flags. They can be or'ed together. *) + (* Use to have echoing of input *) + UI_INPUT_FLAG_ECHO = $01; + (* + * Use a default password. Where that password is found is completely up to + * the application, it might for example be in the user data set with + * UI_add_user_data(). It is not recommended to have more than one input in + * each UI being marked with this flag, or the application might get + * confused. + *) + UI_INPUT_FLAG_DEFAULT_PWD = $02; + + + (* + * The user of these routines may want to define flags of their own. The core + * UI won't look at those, but will pass them on to the method routines. They + * must use higher bits so they don't get confused with the UI bits above. + * UI_INPUT_FLAG_USER_BASE tells which is the lowest bit to use. A good + * example of use is this: + * + * #define MY_UI_FLAG1 (0x01 << UI_INPUT_FLAG_USER_BASE) + * + *) + UI_INPUT_FLAG_USER_BASE = 16; + + (* The commands *) + (* + * Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the + * OpenSSL error stack before printing any info or added error messages and + * before any prompting. + *) + UI_CTRL_PRINT_ERRORS = 1; + (* + * Check if a UI_process() is possible to do again with the same instance of + * a user interface. This makes UI_ctrl() return 1 if it is redoable, and 0 + * if not. + *) + UI_CTRL_IS_REDOABLE = 2; + +type + (* + * Give a user interface parameterised control commands. This can be used to + * send down an integer, a data pointer or a function pointer, as well as be + * used to get information from a UI. + *) + UI_ctrl_f = procedure; + + (* + * The UI_STRING type is the data structure that contains all the needed info + * about a string or a prompt, including test data for a verification prompt. + *) + ui_string_st = type Pointer; + UI_STRING = ui_string_st; + PUI_STRING = ^UI_STRING; +// DEFINE_STACK_OF(UI_STRING) + + (* + * The different types of strings that are currently supported. This is only + * needed by method authors. + *) + UI_string_types = ( + UIT_NONE = 0, + UIT_PROMPT, (* Prompt for a string *) + UIT_VERIFY, (* Prompt for a string and verify *) + UIT_BOOLEAN, (* Prompt for a yes/no response *) + UIT_INFO, (* Send info to the user *) + UIT_ERROR (* Send an error message to the user *) + ); + + (* Create and manipulate methods *) + UI_method_opener_cb = function(ui: PUI): TIdC_INT; + UI_method_writer_cb = function(ui: PUI; uis: PUI_String): TIdC_INT; + UI_method_flusher_cb = function(ui: PUI): TIdC_INT; + UI_method_reader_cb = function(ui: PUI; uis: PUI_String): TIdC_INT; + UI_method_closer_cb = function(ui: PUI): TIdC_INT; + UI_method_data_duplicator_cb = function(ui: PUI; ui_data: Pointer): Pointer; + UI_method_data_destructor_cb = procedure(ui: PUI; ui_data: Pointer); + UI_method_prompt_constructor_cb = function(ui: PUI; const object_desc: PIdAnsiChar; const object_name: PIdAnsiChar): PIdAnsiChar; + + (* + * All the following functions return -1 or NULL on error and in some cases + * (UI_process()) -2 if interrupted or in some other way cancelled. When + * everything is fine, they return 0, a positive value or a non-NULL pointer, + * all depending on their purpose. + *) + + (* Creators and destructor. *) + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM UI_new} + {$EXTERNALSYM UI_new_method} + {$EXTERNALSYM UI_free} + {$EXTERNALSYM UI_add_input_string} + {$EXTERNALSYM UI_dup_input_string} + {$EXTERNALSYM UI_add_verify_string} + {$EXTERNALSYM UI_dup_verify_string} + {$EXTERNALSYM UI_add_input_boolean} + {$EXTERNALSYM UI_dup_input_boolean} + {$EXTERNALSYM UI_add_info_string} + {$EXTERNALSYM UI_dup_info_string} + {$EXTERNALSYM UI_add_error_string} + {$EXTERNALSYM UI_dup_error_string} + {$EXTERNALSYM UI_construct_prompt} + {$EXTERNALSYM UI_add_user_data} + {$EXTERNALSYM UI_dup_user_data} + {$EXTERNALSYM UI_get0_user_data} + {$EXTERNALSYM UI_get0_result} + {$EXTERNALSYM UI_get_result_length} + {$EXTERNALSYM UI_process} + {$EXTERNALSYM UI_ctrl} + {$EXTERNALSYM UI_set_ex_data} + {$EXTERNALSYM UI_get_ex_data} + {$EXTERNALSYM UI_set_default_method} + {$EXTERNALSYM UI_get_default_method} + {$EXTERNALSYM UI_get_method} + {$EXTERNALSYM UI_set_method} + {$EXTERNALSYM UI_OpenSSL} + {$EXTERNALSYM UI_null} + {$EXTERNALSYM UI_create_method} + {$EXTERNALSYM UI_destroy_method} + {$EXTERNALSYM UI_method_set_opener} + {$EXTERNALSYM UI_method_set_writer} + {$EXTERNALSYM UI_method_set_flusher} + {$EXTERNALSYM UI_method_set_reader} + {$EXTERNALSYM UI_method_set_closer} + {$EXTERNALSYM UI_method_set_data_duplicator} + {$EXTERNALSYM UI_method_set_prompt_constructor} + {$EXTERNALSYM UI_method_set_ex_data} + {$EXTERNALSYM UI_method_get_opener} + {$EXTERNALSYM UI_method_get_writer} + {$EXTERNALSYM UI_method_get_flusher} + {$EXTERNALSYM UI_method_get_reader} + {$EXTERNALSYM UI_method_get_closer} + {$EXTERNALSYM UI_method_get_prompt_constructor} + {$EXTERNALSYM UI_method_get_data_duplicator} + {$EXTERNALSYM UI_method_get_data_destructor} + {$EXTERNALSYM UI_method_get_ex_data} + {$EXTERNALSYM UI_get_string_type} + {$EXTERNALSYM UI_get_input_flags} + {$EXTERNALSYM UI_get0_output_string} + {$EXTERNALSYM UI_get0_action_string} + {$EXTERNALSYM UI_get0_result_string} + {$EXTERNALSYM UI_get_result_string_length} + {$EXTERNALSYM UI_get0_test_string} + {$EXTERNALSYM UI_get_result_minsize} + {$EXTERNALSYM UI_get_result_maxsize} + {$EXTERNALSYM UI_set_result} + {$EXTERNALSYM UI_set_result_ex} + {$EXTERNALSYM UI_UTIL_read_pw_string} + {$EXTERNALSYM UI_UTIL_read_pw} + {$EXTERNALSYM UI_UTIL_wrap_read_pem_callback} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + UI_new: function: PUI; cdecl = nil; + UI_new_method: function(const method: PUI_Method): PUI; cdecl = nil; + UI_free: procedure(ui: PUI); cdecl = nil; + + (* + * The following functions are used to add strings to be printed and prompt + * strings to prompt for data. The names are UI_{add,dup}__string + * and UI_{add,dup}_input_boolean. + * + * UI_{add,dup}__string have the following meanings: + * add add a text or prompt string. The pointers given to these + * functions are used verbatim, no copying is done. + * dup make a copy of the text or prompt string, then add the copy + * to the collection of strings in the user interface. + * + * The function is a name for the functionality that the given + * string shall be used for. It can be one of: + * input use the string as data prompt. + * verify use the string as verification prompt. This + * is used to verify a previous input. + * info use the string for informational output. + * error use the string for error output. + * Honestly, there's currently no difference between info and error for the + * moment. + * + * UI_{add,dup}_input_boolean have the same semantics for "add" and "dup", + * and are typically used when one wants to prompt for a yes/no response. + * + * All of the functions in this group take a UI and a prompt string. + * The string input and verify addition functions also take a flag argument, + * a buffer for the result to end up with, a minimum input size and a maximum + * input size (the result buffer MUST be large enough to be able to contain + * the maximum number of characters). Additionally, the verify addition + * functions takes another buffer to compare the result against. + * The boolean input functions take an action description string (which should + * be safe to ignore if the expected user action is obvious, for example with + * a dialog box with an OK button and a Cancel button), a string of acceptable + * characters to mean OK and to mean Cancel. The two last strings are checked + * to make sure they don't have common characters. Additionally, the same + * flag argument as for the string input is taken, as well as a result buffer. + * The result buffer is required to be at least one byte long. Depending on + * the answer, the first character from the OK or the Cancel character strings + * will be stored in the first byte of the result buffer. No NUL will be + * added, so the result is *not* a string. + * + * On success, the all return an index of the added information. That index + * is useful when retrieving results with UI_get0_result(). *) + + UI_add_input_string: function(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT): TIdC_INT; cdecl = nil; + UI_dup_input_string: function(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT): TIdC_INT; cdecl = nil; + UI_add_verify_string: function(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT; const test_buf: PIdAnsiChar): TIdC_INT; cdecl = nil; + UI_dup_verify_string: function(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT; const test_buf: PIdAnsiChar): TIdC_INT; cdecl = nil; + UI_add_input_boolean: function(ui: PUI; const prompt: PIdAnsiChar; const action_desc: PIdAnsiChar; const ok_chars: PIdAnsiChar; const cancel_chars: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar): TIdC_INT; cdecl = nil; + UI_dup_input_boolean: function(ui: PUI; const prompt: PIdAnsiChar; const action_desc: PIdAnsiChar; const ok_chars: PIdAnsiChar; const cancel_chars: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar): TIdC_INT; cdecl = nil; + UI_add_info_string: function(ui: PUI; const text: PIdAnsiChar): TIdC_INT; cdecl = nil; + UI_dup_info_string: function(ui: PUI; const text: PIdAnsiChar): TIdC_INT; cdecl = nil; + UI_add_error_string: function(ui: PUI; const text: PIdAnsiChar): TIdC_INT; cdecl = nil; + UI_dup_error_string: function(ui: PUI; const text: PIdAnsiChar): TIdC_INT; cdecl = nil; + + (* + * The following function helps construct a prompt. object_desc is a + * textual short description of the object, for example "pass phrase", + * and object_name is the name of the object (might be a card name or + * a file name. + * The returned string shall always be allocated on the heap with + * OPENSSL_malloc(), and need to be free'd with OPENSSL_free(). + * + * If the ui_method doesn't contain a pointer to a user-defined prompt + * constructor, a default string is built, looking like this: + * + * "Enter {object_desc} for {object_name}:" + * + * So, if object_desc has the value "pass phrase" and object_name has + * the value "foo.key", the resulting string is: + * + * "Enter pass phrase for foo.key:" + *) + UI_construct_prompt: function(ui_method: PUI; const object_desc: PIdAnsiChar; const object_name: PIdAnsiChar): PIdAnsiChar; cdecl = nil; + + (* + * The following function is used to store a pointer to user-specific data. + * Any previous such pointer will be returned and replaced. + * + * For callback purposes, this function makes a lot more sense than using + * ex_data, since the latter requires that different parts of OpenSSL or + * applications share the same ex_data index. + * + * Note that the UI_OpenSSL() method completely ignores the user data. Other + * methods may not, however. + *) + UI_add_user_data: function(ui: PUI; user_data: Pointer): Pointer; cdecl = nil; + (* + * Alternatively, this function is used to duplicate the user data. + * This uses the duplicator method function. The destroy function will + * be used to free the user data in this case. + *) + UI_dup_user_data: function(ui: PUI; user_data: Pointer): TIdC_INT; cdecl = nil; + (* We need a user data retrieving function as well. *) + UI_get0_user_data: function(ui: PUI): Pointer; cdecl = nil; + + (* Return the result associated with a prompt given with the index i. *) + UI_get0_result: function(ui: PUI; i: TIdC_INT): PIdAnsiChar; cdecl = nil; + UI_get_result_length: function(ui: PUI; i: TIdC_INT): TIdC_INT; cdecl = nil; + + (* When all strings have been added, process the whole thing. *) + UI_process: function(ui: PUI): TIdC_INT; cdecl = nil; + + (* + * Give a user interface parameterised control commands. This can be used to + * send down an integer, a data pointer or a function pointer, as well as be + * used to get information from a UI. + *) + UI_ctrl: function(ui: PUI; cmd: TIdC_INT; i: TIdC_LONG; p: Pointer; f: UI_ctrl_f): TIdC_INT; cdecl = nil; + + + (* Some methods may use extra data *) + //# define UI_set_app_data(s,arg) UI_set_ex_data(s,0,arg) + //# define UI_get_app_data(s) UI_get_ex_data(s,0) + + //# define UI_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_UI, l, p, newf, dupf, freef) + UI_set_ex_data: function(r: PUI; idx: TIdC_INT; arg: Pointer): TIdC_INT; cdecl = nil; + UI_get_ex_data: function(r: PUI; idx: TIdC_INT): Pointer; cdecl = nil; + + (* Use specific methods instead of the built-in one *) + UI_set_default_method: procedure(const meth: PUI_Method); cdecl = nil; + UI_get_default_method: function: PUI_METHOD; cdecl = nil; + UI_get_method: function(ui: PUI): PUI_METHOD; cdecl = nil; + UI_set_method: function(ui: PUI; const meth: PUI_METHOD): PUI_METHOD; cdecl = nil; + + (* The method with all the built-in thingies *) + UI_OpenSSL: function: PUI_Method; cdecl = nil; + + (* + * NULL method. Literally does nothing, but may serve as a placeholder + * to avoid internal default. + *) + UI_null: function: PUI_METHOD; cdecl = nil; + + (* ---------- For method writers ---------- *) + (* + A method contains a number of functions that implement the low level + of the User Interface. The functions are: + + an opener This function starts a session, maybe by opening + a channel to a tty, or by opening a window. + a writer This function is called to write a given string, + maybe to the tty, maybe as a field label in a + window. + a flusher This function is called to flush everything that + has been output so far. It can be used to actually + display a dialog box after it has been built. + a reader This function is called to read a given prompt, + maybe from the tty, maybe from a field in a + window. Note that it's called with all string + structures, not only the prompt ones, so it must + check such things itself. + a closer This function closes the session, maybe by closing + the channel to the tty, or closing the window. + + All these functions are expected to return: + + 0 on error. + 1 on success. + -1 on out-of-band events, for example if some prompting has + been canceled (by pressing Ctrl-C, for example). This is + only checked when returned by the flusher or the reader. + + The way this is used, the opener is first called, then the writer for all + strings, then the flusher, then the reader for all strings and finally the + closer. Note that if you want to prompt from a terminal or other command + line interface, the best is to have the reader also write the prompts + instead of having the writer do it. If you want to prompt from a dialog + box, the writer can be used to build up the contents of the box, and the + flusher to actually display the box and run the event loop until all data + has been given, after which the reader only grabs the given data and puts + them back into the UI strings. + + All method functions take a UI as argument. Additionally, the writer and + the reader take a UI_STRING. + *) + + UI_create_method: function(const name: PIdAnsiChar): PUI_Method; cdecl = nil; + UI_destroy_method: procedure(ui_method: PUI_Method); cdecl = nil; + + UI_method_set_opener: function(method: PUI_Method; opener: UI_method_opener_cb): TIdC_INT; cdecl = nil; + UI_method_set_writer: function(method: PUI_Method; writer: UI_method_writer_cb): TIdC_INT; cdecl = nil; + UI_method_set_flusher: function(method: PUI_Method; flusher: UI_method_flusher_cb): TIdC_INT; cdecl = nil; + UI_method_set_reader: function(method: PUI_Method; reader: UI_method_reader_cb): TIdC_INT; cdecl = nil; + UI_method_set_closer: function(method: PUI_Method; closer: UI_method_closer_cb): TIdC_INT; cdecl = nil; + UI_method_set_data_duplicator: function(method: PUI_Method; duplicator: UI_method_data_duplicator_cb; destructor_: UI_method_data_destructor_cb): TIdC_INT; cdecl = nil; + UI_method_set_prompt_constructor: function(method: PUI_Method; prompt_constructor: UI_method_prompt_constructor_cb): TIdC_INT; cdecl = nil; + UI_method_set_ex_data: function(method: PUI_Method; idx: TIdC_INT; data: Pointer): TIdC_INT; cdecl = nil; + + UI_method_get_opener: function(const method: PUI_METHOD): UI_method_opener_cb; cdecl = nil; + UI_method_get_writer: function(const method: PUI_METHOD): UI_method_writer_cb; cdecl = nil; + UI_method_get_flusher: function(const method: PUI_METHOD): UI_method_flusher_cb; cdecl = nil; + UI_method_get_reader: function(const method: PUI_METHOD): UI_method_reader_cb; cdecl = nil; + UI_method_get_closer: function(const method: PUI_METHOD): UI_method_closer_cb; cdecl = nil; + UI_method_get_prompt_constructor: function(const method: PUI_METHOD): UI_method_prompt_constructor_cb; cdecl = nil; + UI_method_get_data_duplicator: function(const method: PUI_METHOD): UI_method_data_duplicator_cb; cdecl = nil; + UI_method_get_data_destructor: function(const method: PUI_METHOD): UI_method_data_destructor_cb; cdecl = nil; + UI_method_get_ex_data: function(const method: PUI_METHOD; idx: TIdC_INT): Pointer; cdecl = nil; + + (* + * The following functions are helpers for method writers to access relevant + * data from a UI_STRING. + *) + + (* Return type of the UI_STRING *) + UI_get_string_type: function(uis: PUI_String): UI_string_types; cdecl = nil; + (* Return input flags of the UI_STRING *) + UI_get_input_flags: function(uis: PUI_String): TIdC_INT; cdecl = nil; + (* Return the actual string to output (the prompt, info or error) *) + UI_get0_output_string: function(uis: PUI_String): PIdAnsiChar; cdecl = nil; + (* + * Return the optional action string to output (the boolean prompt + * instruction) + *) + UI_get0_action_string: function(uis: PUI_String): PIdAnsiChar; cdecl = nil; + (* Return the result of a prompt *) + UI_get0_result_string: function(uis: PUI_String): PIdAnsiChar; cdecl = nil; + UI_get_result_string_length: function(uis: PUI_String): TIdC_INT; cdecl = nil; + (* + * Return the string to test the result against. Only useful with verifies. + *) + UI_get0_test_string: function(uis: PUI_String): PIdAnsiChar; cdecl = nil; + (* Return the required minimum size of the result *) + UI_get_result_minsize: function(uis: PUI_String): TIdC_INT; cdecl = nil; + (* Return the required maximum size of the result *) + UI_get_result_maxsize: function(uis: PUI_String): TIdC_INT; cdecl = nil; + (* Set the result of a UI_STRING. *) + UI_set_result: function(ui: PUI; uis: PUI_String; const result: PIdAnsiChar): TIdC_INT; cdecl = nil; + UI_set_result_ex: function(ui: PUI; uis: PUI_String; const result: PIdAnsiChar; len: TIdC_INT): TIdC_INT; cdecl = nil; + + (* A couple of popular utility functions *) + UI_UTIL_read_pw_string: function(buf: PIdAnsiChar; length: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT; cdecl = nil; + UI_UTIL_read_pw: function(buf: PIdAnsiChar; buff: PIdAnsiChar; size: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT; cdecl = nil; + UI_UTIL_wrap_read_pem_callback: function(cb: pem_password_cb; rwflag: TIdC_INT): PUI_Method; cdecl = nil; + +{$ELSE} + function UI_new: PUI cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_new_method(const method: PUI_Method): PUI cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure UI_free(ui: PUI) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * The following functions are used to add strings to be printed and prompt + * strings to prompt for data. The names are UI_{add,dup}__string + * and UI_{add,dup}_input_boolean. + * + * UI_{add,dup}__string have the following meanings: + * add add a text or prompt string. The pointers given to these + * functions are used verbatim, no copying is done. + * dup make a copy of the text or prompt string, then add the copy + * to the collection of strings in the user interface. + * + * The function is a name for the functionality that the given + * string shall be used for. It can be one of: + * input use the string as data prompt. + * verify use the string as verification prompt. This + * is used to verify a previous input. + * info use the string for informational output. + * error use the string for error output. + * Honestly, there's currently no difference between info and error for the + * moment. + * + * UI_{add,dup}_input_boolean have the same semantics for "add" and "dup", + * and are typically used when one wants to prompt for a yes/no response. + * + * All of the functions in this group take a UI and a prompt string. + * The string input and verify addition functions also take a flag argument, + * a buffer for the result to end up with, a minimum input size and a maximum + * input size (the result buffer MUST be large enough to be able to contain + * the maximum number of characters). Additionally, the verify addition + * functions takes another buffer to compare the result against. + * The boolean input functions take an action description string (which should + * be safe to ignore if the expected user action is obvious, for example with + * a dialog box with an OK button and a Cancel button), a string of acceptable + * characters to mean OK and to mean Cancel. The two last strings are checked + * to make sure they don't have common characters. Additionally, the same + * flag argument as for the string input is taken, as well as a result buffer. + * The result buffer is required to be at least one byte long. Depending on + * the answer, the first character from the OK or the Cancel character strings + * will be stored in the first byte of the result buffer. No NUL will be + * added, so the result is *not* a string. + * + * On success, the all return an index of the added information. That index + * is useful when retrieving results with UI_get0_result(). *) + + function UI_add_input_string(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_dup_input_string(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_add_verify_string(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT; const test_buf: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_dup_verify_string(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT; const test_buf: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_add_input_boolean(ui: PUI; const prompt: PIdAnsiChar; const action_desc: PIdAnsiChar; const ok_chars: PIdAnsiChar; const cancel_chars: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_dup_input_boolean(ui: PUI; const prompt: PIdAnsiChar; const action_desc: PIdAnsiChar; const ok_chars: PIdAnsiChar; const cancel_chars: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_add_info_string(ui: PUI; const text: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_dup_info_string(ui: PUI; const text: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_add_error_string(ui: PUI; const text: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_dup_error_string(ui: PUI; const text: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * The following function helps construct a prompt. object_desc is a + * textual short description of the object, for example "pass phrase", + * and object_name is the name of the object (might be a card name or + * a file name. + * The returned string shall always be allocated on the heap with + * OPENSSL_malloc(), and need to be free'd with OPENSSL_free(). + * + * If the ui_method doesn't contain a pointer to a user-defined prompt + * constructor, a default string is built, looking like this: + * + * "Enter {object_desc} for {object_name}:" + * + * So, if object_desc has the value "pass phrase" and object_name has + * the value "foo.key", the resulting string is: + * + * "Enter pass phrase for foo.key:" + *) + function UI_construct_prompt(ui_method: PUI; const object_desc: PIdAnsiChar; const object_name: PIdAnsiChar): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * The following function is used to store a pointer to user-specific data. + * Any previous such pointer will be returned and replaced. + * + * For callback purposes, this function makes a lot more sense than using + * ex_data, since the latter requires that different parts of OpenSSL or + * applications share the same ex_data index. + * + * Note that the UI_OpenSSL() method completely ignores the user data. Other + * methods may not, however. + *) + function UI_add_user_data(ui: PUI; user_data: Pointer): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* + * Alternatively, this function is used to duplicate the user data. + * This uses the duplicator method function. The destroy function will + * be used to free the user data in this case. + *) + function UI_dup_user_data(ui: PUI; user_data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* We need a user data retrieving function as well. *) + function UI_get0_user_data(ui: PUI): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Return the result associated with a prompt given with the index i. *) + function UI_get0_result(ui: PUI; i: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_get_result_length(ui: PUI; i: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* When all strings have been added, process the whole thing. *) + function UI_process(ui: PUI): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Give a user interface parameterised control commands. This can be used to + * send down an integer, a data pointer or a function pointer, as well as be + * used to get information from a UI. + *) + function UI_ctrl(ui: PUI; cmd: TIdC_INT; i: TIdC_LONG; p: Pointer; f: UI_ctrl_f): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + + (* Some methods may use extra data *) + //# define UI_set_app_data(s,arg) UI_set_ex_data(s,0,arg) + //# define UI_get_app_data(s) UI_get_ex_data(s,0) + + //# define UI_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_UI, l, p, newf, dupf, freef) + function UI_set_ex_data(r: PUI; idx: TIdC_INT; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_get_ex_data(r: PUI; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* Use specific methods instead of the built-in one *) + procedure UI_set_default_method(const meth: PUI_Method) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_get_default_method: PUI_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_get_method(ui: PUI): PUI_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_set_method(ui: PUI; const meth: PUI_METHOD): PUI_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* The method with all the built-in thingies *) + function UI_OpenSSL: PUI_Method cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * NULL method. Literally does nothing, but may serve as a placeholder + * to avoid internal default. + *) + function UI_null: PUI_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* ---------- For method writers ---------- *) + (* + A method contains a number of functions that implement the low level + of the User Interface. The functions are: + + an opener This function starts a session, maybe by opening + a channel to a tty, or by opening a window. + a writer This function is called to write a given string, + maybe to the tty, maybe as a field label in a + window. + a flusher This function is called to flush everything that + has been output so far. It can be used to actually + display a dialog box after it has been built. + a reader This function is called to read a given prompt, + maybe from the tty, maybe from a field in a + window. Note that it's called with all string + structures, not only the prompt ones, so it must + check such things itself. + a closer This function closes the session, maybe by closing + the channel to the tty, or closing the window. + + All these functions are expected to return: + + 0 on error. + 1 on success. + -1 on out-of-band events, for example if some prompting has + been canceled (by pressing Ctrl-C, for example). This is + only checked when returned by the flusher or the reader. + + The way this is used, the opener is first called, then the writer for all + strings, then the flusher, then the reader for all strings and finally the + closer. Note that if you want to prompt from a terminal or other command + line interface, the best is to have the reader also write the prompts + instead of having the writer do it. If you want to prompt from a dialog + box, the writer can be used to build up the contents of the box, and the + flusher to actually display the box and run the event loop until all data + has been given, after which the reader only grabs the given data and puts + them back into the UI strings. + + All method functions take a UI as argument. Additionally, the writer and + the reader take a UI_STRING. + *) + + function UI_create_method(const name: PIdAnsiChar): PUI_Method cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure UI_destroy_method(ui_method: PUI_Method) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function UI_method_set_opener(method: PUI_Method; opener: UI_method_opener_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_set_writer(method: PUI_Method; writer: UI_method_writer_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_set_flusher(method: PUI_Method; flusher: UI_method_flusher_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_set_reader(method: PUI_Method; reader: UI_method_reader_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_set_closer(method: PUI_Method; closer: UI_method_closer_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_set_data_duplicator(method: PUI_Method; duplicator: UI_method_data_duplicator_cb; destructor_: UI_method_data_destructor_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_set_prompt_constructor(method: PUI_Method; prompt_constructor: UI_method_prompt_constructor_cb): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_set_ex_data(method: PUI_Method; idx: TIdC_INT; data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function UI_method_get_opener(const method: PUI_METHOD): UI_method_opener_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_get_writer(const method: PUI_METHOD): UI_method_writer_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_get_flusher(const method: PUI_METHOD): UI_method_flusher_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_get_reader(const method: PUI_METHOD): UI_method_reader_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_get_closer(const method: PUI_METHOD): UI_method_closer_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_get_prompt_constructor(const method: PUI_METHOD): UI_method_prompt_constructor_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_get_data_duplicator(const method: PUI_METHOD): UI_method_data_duplicator_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_get_data_destructor(const method: PUI_METHOD): UI_method_data_destructor_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_method_get_ex_data(const method: PUI_METHOD; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * The following functions are helpers for method writers to access relevant + * data from a UI_STRING. + *) + + (* Return type of the UI_STRING *) + function UI_get_string_type(uis: PUI_String): UI_string_types cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* Return input flags of the UI_STRING *) + function UI_get_input_flags(uis: PUI_String): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* Return the actual string to output (the prompt, info or error) *) + function UI_get0_output_string(uis: PUI_String): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* + * Return the optional action string to output (the boolean prompt + * instruction) + *) + function UI_get0_action_string(uis: PUI_String): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* Return the result of a prompt *) + function UI_get0_result_string(uis: PUI_String): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_get_result_string_length(uis: PUI_String): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* + * Return the string to test the result against. Only useful with verifies. + *) + function UI_get0_test_string(uis: PUI_String): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* Return the required minimum size of the result *) + function UI_get_result_minsize(uis: PUI_String): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* Return the required maximum size of the result *) + function UI_get_result_maxsize(uis: PUI_String): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + (* Set the result of a UI_STRING. *) + function UI_set_result(ui: PUI; uis: PUI_String; const result: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_set_result_ex(ui: PUI; uis: PUI_String; const result: PIdAnsiChar; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* A couple of popular utility functions *) + function UI_UTIL_read_pw_string(buf: PIdAnsiChar; length: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_UTIL_read_pw(buf: PIdAnsiChar; buff: PIdAnsiChar; size: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function UI_UTIL_wrap_read_pem_callback(cb: pem_password_cb; rwflag: TIdC_INT): PUI_Method cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + UI_new := LoadFunction('UI_new',AFailed); + UI_new_method := LoadFunction('UI_new_method',AFailed); + UI_free := LoadFunction('UI_free',AFailed); + UI_add_input_string := LoadFunction('UI_add_input_string',AFailed); + UI_dup_input_string := LoadFunction('UI_dup_input_string',AFailed); + UI_add_verify_string := LoadFunction('UI_add_verify_string',AFailed); + UI_dup_verify_string := LoadFunction('UI_dup_verify_string',AFailed); + UI_add_input_boolean := LoadFunction('UI_add_input_boolean',AFailed); + UI_dup_input_boolean := LoadFunction('UI_dup_input_boolean',AFailed); + UI_add_info_string := LoadFunction('UI_add_info_string',AFailed); + UI_dup_info_string := LoadFunction('UI_dup_info_string',AFailed); + UI_add_error_string := LoadFunction('UI_add_error_string',AFailed); + UI_dup_error_string := LoadFunction('UI_dup_error_string',AFailed); + UI_construct_prompt := LoadFunction('UI_construct_prompt',AFailed); + UI_add_user_data := LoadFunction('UI_add_user_data',AFailed); + UI_dup_user_data := LoadFunction('UI_dup_user_data',AFailed); + UI_get0_user_data := LoadFunction('UI_get0_user_data',AFailed); + UI_get0_result := LoadFunction('UI_get0_result',AFailed); + UI_get_result_length := LoadFunction('UI_get_result_length',AFailed); + UI_process := LoadFunction('UI_process',AFailed); + UI_ctrl := LoadFunction('UI_ctrl',AFailed); + UI_set_ex_data := LoadFunction('UI_set_ex_data',AFailed); + UI_get_ex_data := LoadFunction('UI_get_ex_data',AFailed); + UI_set_default_method := LoadFunction('UI_set_default_method',AFailed); + UI_get_default_method := LoadFunction('UI_get_default_method',AFailed); + UI_get_method := LoadFunction('UI_get_method',AFailed); + UI_set_method := LoadFunction('UI_set_method',AFailed); + UI_OpenSSL := LoadFunction('UI_OpenSSL',AFailed); + UI_null := LoadFunction('UI_null',AFailed); + UI_create_method := LoadFunction('UI_create_method',AFailed); + UI_destroy_method := LoadFunction('UI_destroy_method',AFailed); + UI_method_set_opener := LoadFunction('UI_method_set_opener',AFailed); + UI_method_set_writer := LoadFunction('UI_method_set_writer',AFailed); + UI_method_set_flusher := LoadFunction('UI_method_set_flusher',AFailed); + UI_method_set_reader := LoadFunction('UI_method_set_reader',AFailed); + UI_method_set_closer := LoadFunction('UI_method_set_closer',AFailed); + UI_method_set_data_duplicator := LoadFunction('UI_method_set_data_duplicator',AFailed); + UI_method_set_prompt_constructor := LoadFunction('UI_method_set_prompt_constructor',AFailed); + UI_method_set_ex_data := LoadFunction('UI_method_set_ex_data',AFailed); + UI_method_get_opener := LoadFunction('UI_method_get_opener',AFailed); + UI_method_get_writer := LoadFunction('UI_method_get_writer',AFailed); + UI_method_get_flusher := LoadFunction('UI_method_get_flusher',AFailed); + UI_method_get_reader := LoadFunction('UI_method_get_reader',AFailed); + UI_method_get_closer := LoadFunction('UI_method_get_closer',AFailed); + UI_method_get_prompt_constructor := LoadFunction('UI_method_get_prompt_constructor',AFailed); + UI_method_get_data_duplicator := LoadFunction('UI_method_get_data_duplicator',AFailed); + UI_method_get_data_destructor := LoadFunction('UI_method_get_data_destructor',AFailed); + UI_method_get_ex_data := LoadFunction('UI_method_get_ex_data',AFailed); + UI_get_string_type := LoadFunction('UI_get_string_type',AFailed); + UI_get_input_flags := LoadFunction('UI_get_input_flags',AFailed); + UI_get0_output_string := LoadFunction('UI_get0_output_string',AFailed); + UI_get0_action_string := LoadFunction('UI_get0_action_string',AFailed); + UI_get0_result_string := LoadFunction('UI_get0_result_string',AFailed); + UI_get_result_string_length := LoadFunction('UI_get_result_string_length',AFailed); + UI_get0_test_string := LoadFunction('UI_get0_test_string',AFailed); + UI_get_result_minsize := LoadFunction('UI_get_result_minsize',AFailed); + UI_get_result_maxsize := LoadFunction('UI_get_result_maxsize',AFailed); + UI_set_result := LoadFunction('UI_set_result',AFailed); + UI_set_result_ex := LoadFunction('UI_set_result_ex',AFailed); + UI_UTIL_read_pw_string := LoadFunction('UI_UTIL_read_pw_string',AFailed); + UI_UTIL_read_pw := LoadFunction('UI_UTIL_read_pw',AFailed); + UI_UTIL_wrap_read_pem_callback := LoadFunction('UI_UTIL_wrap_read_pem_callback',AFailed); +end; + +procedure Unload; +begin + UI_new := nil; + UI_new_method := nil; + UI_free := nil; + UI_add_input_string := nil; + UI_dup_input_string := nil; + UI_add_verify_string := nil; + UI_dup_verify_string := nil; + UI_add_input_boolean := nil; + UI_dup_input_boolean := nil; + UI_add_info_string := nil; + UI_dup_info_string := nil; + UI_add_error_string := nil; + UI_dup_error_string := nil; + UI_construct_prompt := nil; + UI_add_user_data := nil; + UI_dup_user_data := nil; + UI_get0_user_data := nil; + UI_get0_result := nil; + UI_get_result_length := nil; + UI_process := nil; + UI_ctrl := nil; + UI_set_ex_data := nil; + UI_get_ex_data := nil; + UI_set_default_method := nil; + UI_get_default_method := nil; + UI_get_method := nil; + UI_set_method := nil; + UI_OpenSSL := nil; + UI_null := nil; + UI_create_method := nil; + UI_destroy_method := nil; + UI_method_set_opener := nil; + UI_method_set_writer := nil; + UI_method_set_flusher := nil; + UI_method_set_reader := nil; + UI_method_set_closer := nil; + UI_method_set_data_duplicator := nil; + UI_method_set_prompt_constructor := nil; + UI_method_set_ex_data := nil; + UI_method_get_opener := nil; + UI_method_get_writer := nil; + UI_method_get_flusher := nil; + UI_method_get_reader := nil; + UI_method_get_closer := nil; + UI_method_get_prompt_constructor := nil; + UI_method_get_data_duplicator := nil; + UI_method_get_data_destructor := nil; + UI_method_get_ex_data := nil; + UI_get_string_type := nil; + UI_get_input_flags := nil; + UI_get0_output_string := nil; + UI_get0_action_string := nil; + UI_get0_result_string := nil; + UI_get_result_string_length := nil; + UI_get0_test_string := nil; + UI_get_result_minsize := nil; + UI_get_result_maxsize := nil; + UI_set_result := nil; + UI_set_result_ex := nil; + UI_UTIL_read_pw_string := nil; + UI_UTIL_read_pw := nil; + UI_UTIL_wrap_read_pem_callback := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_uierr.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_uierr.pas new file mode 100644 index 000000000..1b34046a9 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_uierr.pas @@ -0,0 +1,143 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_uierr.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_uierr.h2pas + and this file regenerated. IdOpenSSLHeaders_uierr.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_uierr; + +interface + +// Headers for OpenSSL 1.1.1 +// uierr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * UI function codes. + *) + UI_F_CLOSE_CONSOLE = 115; + UI_F_ECHO_CONSOLE = 116; + UI_F_GENERAL_ALLOCATE_BOOLEAN = 108; + UI_F_GENERAL_ALLOCATE_PROMPT = 109; + UI_F_NOECHO_CONSOLE = 117; + UI_F_OPEN_CONSOLE = 114; + UI_F_UI_CONSTRUCT_PROMPT = 121; + UI_F_UI_CREATE_METHOD = 112; + UI_F_UI_CTRL = 111; + UI_F_UI_DUP_ERROR_STRING = 101; + UI_F_UI_DUP_INFO_STRING = 102; + UI_F_UI_DUP_INPUT_BOOLEAN = 110; + UI_F_UI_DUP_INPUT_STRING = 103; + UI_F_UI_DUP_USER_DATA = 118; + UI_F_UI_DUP_VERIFY_STRING = 106; + UI_F_UI_GET0_RESULT = 107; + UI_F_UI_GET_RESULT_LENGTH = 119; + UI_F_UI_NEW_METHOD = 104; + UI_F_UI_PROCESS = 113; + UI_F_UI_SET_RESULT = 105; + UI_F_UI_SET_RESULT_EX = 120; + + (* + * UI reason codes. + *) + UI_R_COMMON_OK_AND_CANCEL_CHARACTERS = 104; + UI_R_INDEX_TOO_LARGE = 102; + UI_R_INDEX_TOO_SMALL = 103; + UI_R_NO_RESULT_BUFFER = 105; + UI_R_PROCESSING_ERROR = 107; + UI_R_RESULT_TOO_LARGE = 100; + UI_R_RESULT_TOO_SMALL = 101; + UI_R_SYSASSIGN_ERROR = 109; + UI_R_SYSDASSGN_ERROR = 110; + UI_R_SYSQIOW_ERROR = 111; + UI_R_UNKNOWN_CONTROL_COMMAND = 106; + UI_R_UNKNOWN_TTYGET_ERRNO_VALUE = 108; + UI_R_USER_DATA_DUPLICATION_UNSUPPORTED = 112; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_UI_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_UI_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_UI_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_UI_strings := LoadFunction('ERR_load_UI_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_UI_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_whrlpool.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_whrlpool.pas new file mode 100644 index 000000000..559e4ae0c --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_whrlpool.pas @@ -0,0 +1,140 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_whrlpool.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_whrlpool.h2pas + and this file regenerated. IdOpenSSLHeaders_whrlpool.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_whrlpool; + +interface + +// Headers for OpenSSL 1.1.1 +// whrlpool.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + WHIRLPOOL_DIGEST_LENGTH = 512 div 8; + WHIRLPOOL_BBLOCK = 512; + WHIRLPOOL_COUNTER = 256 div 8; + +type + WHIRLPOOL_CTX_union = record + case Byte of + 0: (c: array[0 .. WHIRLPOOL_DIGEST_LENGTH -1] of Byte); + (* double q is here to ensure 64-bit alignment *) + 1: (q: array[0 .. (WHIRLPOOL_DIGEST_LENGTH div SizeOf(TIdC_DOUBLE)) -1] of TIdC_DOUBLE); + end; + WHIRLPOOL_CTX = record + H: WHIRLPOOL_CTX_union; + data: array[0 .. (WHIRLPOOL_BBLOCK div 8) -1] of Byte; + bitoff: TIdC_UINT; + bitlen: array[0 .. (WHIRLPOOL_COUNTER div SizeOf(TIdC_SIZET)) -1] of TIdC_SIZET; + end; + PWHIRLPOOL_CTX = ^WHIRLPOOL_CTX; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM WHIRLPOOL_Init} + {$EXTERNALSYM WHIRLPOOL_Update} + {$EXTERNALSYM WHIRLPOOL_BitUpdate} + {$EXTERNALSYM WHIRLPOOL_Final} + {$EXTERNALSYM WHIRLPOOL} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + WHIRLPOOL_Init: function(c: PWHIRLPOOL_CTX): TIdC_INT; cdecl = nil; + WHIRLPOOL_Update: function(c: PWHIRLPOOL_CTX; inp: Pointer; bytes: TIdC_SIZET): TIdC_INT; cdecl = nil; + WHIRLPOOL_BitUpdate: procedure(c: PWHIRLPOOL_CTX; inp: Pointer; bits: TIdC_SIZET); cdecl = nil; + WHIRLPOOL_Final: function(md: PByte; c: PWHIRLPOOL_CTX): TIdC_INT; cdecl = nil; + WHIRLPOOL: function(inp: Pointer; bytes: TIdC_SIZET; md: PByte): PByte; cdecl = nil; + +{$ELSE} + function WHIRLPOOL_Init(c: PWHIRLPOOL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function WHIRLPOOL_Update(c: PWHIRLPOOL_CTX; inp: Pointer; bytes: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure WHIRLPOOL_BitUpdate(c: PWHIRLPOOL_CTX; inp: Pointer; bits: TIdC_SIZET) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function WHIRLPOOL_Final(md: PByte; c: PWHIRLPOOL_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function WHIRLPOOL(inp: Pointer; bytes: TIdC_SIZET; md: PByte): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + WHIRLPOOL_Init := LoadFunction('WHIRLPOOL_Init',AFailed); + WHIRLPOOL_Update := LoadFunction('WHIRLPOOL_Update',AFailed); + WHIRLPOOL_BitUpdate := LoadFunction('WHIRLPOOL_BitUpdate',AFailed); + WHIRLPOOL_Final := LoadFunction('WHIRLPOOL_Final',AFailed); + WHIRLPOOL := LoadFunction('WHIRLPOOL',AFailed); +end; + +procedure Unload; +begin + WHIRLPOOL_Init := nil; + WHIRLPOOL_Update := nil; + WHIRLPOOL_BitUpdate := nil; + WHIRLPOOL_Final := nil; + WHIRLPOOL := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509.pas new file mode 100644 index 000000000..a99b7bf59 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509.pas @@ -0,0 +1,4858 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_x509.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_x509.h2pas + and this file regenerated. IdOpenSSLHeaders_x509.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_x509; + +interface + +// Headers for OpenSSL 1.1.1 +// x509.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_asn1, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_evp, + IdOpenSSLHeaders_stack, + IdOpenSSLHeaders_objects, + IdOpenSSLHeaders_ossl_typ; + +type + X509_ALGORS = type Pointer; + +const + (* Flags for X509_get_signature_info() *) + (* Signature info is valid *) + X509_SIG_INFO_VALID = $1; + (* Signature is suitable for TLS use *) + X509_SIG_INFO_TLS = $2; + + X509_FILETYPE_PEM = 1; + X509_FILETYPE_ASN1 = 2; + X509_FILETYPE_DEFAULT = 3; + + X509v3_KU_DIGITAL_SIGNATURE = $0080; + X509v3_KU_NON_REPUDIATION = $0040; + X509v3_KU_KEY_ENCIPHERMENT = $0020; + X509v3_KU_DATA_ENCIPHERMENT = $0010; + X509v3_KU_KEY_AGREEMENT = $0008; + X509v3_KU_KEY_CERT_SIGN = $0004; + X509v3_KU_CRL_SIGN = $0002; + X509v3_KU_ENCIPHER_ONLY = $0001; + X509v3_KU_DECIPHER_ONLY = $8000; + X509v3_KU_UNDEF = $ffff; + + X509_EX_V_NETSCAPE_HACK = $8000; + X509_EX_V_INIT = $0001; + + + (* standard trust ids *) + + X509_TRUST_DEFAULT = 0; (* Only valid in purpose settings *) + + X509_TRUST_COMPAT = 1; + X509_TRUST_SSL_CLIENT = 2; + X509_TRUST_SSL_SERVER = 3; + X509_TRUST_EMAIL = 4; + X509_TRUST_OBJECT_SIGN = 5; + X509_TRUST_OCSP_SIGN = 6; + X509_TRUST_OCSP_REQUEST = 7; + X509_TRUST_TSA = 8; + + (* Keep these up to date! *) + X509_TRUST_MIN = 1; + X509_TRUST_MAX = 8; + + (* trust_flags values *) + X509_TRUST_DYNAMIC = TIdC_UINT(1) shl 0; + X509_TRUST_DYNAMIC_NAME = TIdC_UINT(1) shl 1; + (* No compat trust if self-signed, preempts "DO_SS" *) + X509_TRUST_NO_SS_COMPAT = TIdC_UINT(1) shl 2; + (* Compat trust if no explicit accepted trust EKUs *) + X509_TRUST_DO_SS_COMPAT = TIdC_UINT(1) shl 3; + (* Accept "anyEKU" as a wildcard trust OID *) + X509_TRUST_OK_ANY_EKU = TIdC_UINT(1) shl 4; + + (* check_trust return codes *) + + X509_TRUST_TRUSTED = 1; + X509_TRUST_REJECTED = 2; + X509_TRUST_UNTRUSTED = 3; + + (* Flags for X509_print_ex() *) + + X509_FLAG_COMPAT = 0; + X509_FLAG_NO_HEADER = TIdC_LONG(1); + X509_FLAG_NO_VERSION = TIdC_LONG(1) shl 1; + X509_FLAG_NO_SERIAL = TIdC_LONG(1) shl 2; + X509_FLAG_NO_SIGNAME = TIdC_LONG(1) shl 3; + X509_FLAG_NO_ISSUER = TIdC_LONG(1) shl 4; + X509_FLAG_NO_VALIDITY = TIdC_LONG(1) shl 5; + X509_FLAG_NO_SUBJECT = TIdC_LONG(1) shl 6; + X509_FLAG_NO_PUBKEY = TIdC_LONG(1) shl 7; + X509_FLAG_NO_EXTENSIONS = TIdC_LONG(1) shl 8; + X509_FLAG_NO_SIGDUMP = TIdC_LONG(1) shl 9; + X509_FLAG_NO_AUX = TIdC_LONG(1) shl 10; + X509_FLAG_NO_ATTRIBUTES = TIdC_LONG(1) shl 11; + X509_FLAG_NO_IDS = TIdC_LONG(1) shl 12; + + (* Flags specific to X509_NAME_print_ex() *) + + (* The field separator information *) + + XN_FLAG_SEP_MASK = $f shl 16; + + XN_FLAG_COMPAT = 0;(* Traditional; use old X509_NAME_print *) + XN_FLAG_SEP_COMMA_PLUS = 1 shl 16;(* RFC2253 ,+ *) + XN_FLAG_SEP_CPLUS_SPC = 2 shl 16;(* ,+ spaced: more readable *) + XN_FLAG_SEP_SPLUS_SPC = 3 shl 16;(* ;+ spaced *) + XN_FLAG_SEP_MULTILINE = 4 shl 16;(* One line per field *) + + XN_FLAG_DN_REV = 1 shl 20;(* Reverse DN order *) + + (* How the field name is shown *) + + XN_FLAG_FN_MASK = $3 shl 21; + + XN_FLAG_FN_SN = 0;(* Object short name *) + XN_FLAG_FN_LN = 1 shl 21;(* Object long name *) + XN_FLAG_FN_OID = 2 shl 21;(* Always use OIDs *) + XN_FLAG_FN_NONE = 3 shl 21;(* No field names *) + + XN_FLAG_SPC_EQ = 1 shl 23;(* Put spaces round '=' *) + + {function codes} + X509_F_ADD_CERT_DIR = 100; + X509_F_BY_FILE_CTRL = 101; + X509_F_CHECK_NAME_CONSTRAINTS = 106; + X509_F_CHECK_POLICY = 145; + X509_F_DIR_CTRL = 102; + X509_F_GET_CERT_BY_SUBJECT = 103; + X509_F_NETSCAPE_SPKI_B64_DECODE = 129; + X509_F_NETSCAPE_SPKI_B64_ENCODE = 130; + X509_F_X509AT_ADD1_ATTR = 135; + X509_F_X509V3_ADD_EXT = 104; + X509_F_X509_ATTRIBUTE_CREATE_BY_NID = 136; + X509_F_X509_ATTRIBUTE_CREATE_BY_OBJ = 137; + X509_F_X509_ATTRIBUTE_CREATE_BY_TXT = 140; + X509_F_X509_ATTRIBUTE_GET0_DATA = 139; + X509_F_X509_ATTRIBUTE_SET1_DATA = 138; + X509_F_X509_CHECK_PRIVATE_KEY = 128; + X509_F_X509_CRL_DIFF = 105; + X509_F_X509_CRL_PRINT_FP = 147; + X509_F_X509_EXTENSION_CREATE_BY_NID = 108; + X509_F_X509_EXTENSION_CREATE_BY_OBJ = 109; + X509_F_X509_GET_PUBKEY_PARAMETERS = 110; + X509_F_X509_LOAD_CERT_CRL_FILE = 132; + X509_F_X509_LOAD_CERT_FILE = 111; + X509_F_X509_LOAD_CRL_FILE = 112; + X509_F_X509_NAME_ADD_ENTRY = 113; + X509_F_X509_NAME_ENTRY_CREATE_BY_NID = 114; + X509_F_X509_NAME_ENTRY_CREATE_BY_TXT = 131; + X509_F_X509_NAME_ENTRY_SET_OBJECT = 115; + X509_F_X509_NAME_ONELINE = 116; + X509_F_X509_NAME_PRINT = 117; + X509_F_X509_PRINT_EX_FP = 118; + X509_F_X509_PUBKEY_GET = 119; + X509_F_X509_PUBKEY_SET = 120; + X509_F_X509_REQ_CHECK_PRIVATE_KEY = 144; + X509_F_X509_REQ_PRINT_EX = 121; + X509_F_X509_REQ_PRINT_FP = 122; + X509_F_X509_REQ_TO_X509 = 123; + X509_F_X509_STORE_ADD_CERT = 124; + X509_F_X509_STORE_ADD_CRL = 125; + X509_F_X509_STORE_CTX_GET1_ISSUER = 146; + X509_F_X509_STORE_CTX_INIT = 143; + X509_F_X509_STORE_CTX_NEW = 142; + X509_F_X509_STORE_CTX_PURPOSE_INHERIT = 134; + X509_F_X509_TO_X509_REQ = 126; + X509_F_X509_TRUST_ADD = 133; + X509_F_X509_TRUST_SET = 141; + X509_F_X509_VERIFY_CERT = 127; + + {Reason Codes} + X509_R_AKID_MISMATCH = 110; + X509_R_BAD_X509_FILETYPE = 100; + X509_R_BASE64_DECODE_ERROR = 118; + X509_R_CANT_CHECK_DH_KEY = 114; + X509_R_CERT_ALREADY_IN_HASH_TABLE = 101; + X509_R_CRL_ALREADY_DELTA = 127; + X509_R_CRL_VERIFY_FAILURE = 131; + X509_R_ERR_ASN1_LIB = 102; + X509_R_IDP_MISMATCH = 128; + X509_R_INVALID_DIRECTORY = 113; + X509_R_INVALID_FIELD_NAME = 119; + X509_R_INVALID_TRUST = 123; + X509_R_ISSUER_MISMATCH = 129; + X509_R_KEY_TYPE_MISMATCH = 115; + X509_R_KEY_VALUES_MISMATCH = 116; + X509_R_LOADING_CERT_DIR = 103; + X509_R_LOADING_DEFAULTS = 104; + X509_R_METHOD_NOT_SUPPORTED = 124; + X509_R_NAME_TOO_LONG = 134; + X509_R_NEWER_CRL_NOT_NEWER = 132; + X509_R_NO_CERT_SET_FOR_US_TO_VERIFY = 105; + X509_R_NO_CRL_NUMBER = 130; + X509_R_PUBLIC_KEY_DECODE_ERROR = 125; + X509_R_PUBLIC_KEY_ENCODE_ERROR = 126; + X509_R_SHOULD_RETRY = 106; + X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN = 107; + X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY = 108; + X509_R_UNKNOWN_KEY_TYPE = 117; + X509_R_UNKNOWN_NID = 109; + X509_R_UNKNOWN_PURPOSE_ID = 121; + X509_R_UNKNOWN_TRUST_ID = 120; + X509_R_UNSUPPORTED_ALGORITHM = 111; + X509_R_WRONG_LOOKUP_TYPE = 112; + X509_R_WRONG_TYPE = 122; + + (* + * This determines if we dump fields we don't recognise: RFC2253 requires + * this. + *) + + XN_FLAG_DUMP_UNKNOWN_FIELDS = 1 shl 24; + + XN_FLAG_FN_ALIGN = 1 shl 25;(* Align field names to 20 + * characters *) + + (* Complete set of RFC2253 flags *) + + XN_FLAG_RFC2253 = ASN1_STRFLGS_RFC2253 or XN_FLAG_SEP_COMMA_PLUS + or XN_FLAG_DN_REV or XN_FLAG_FN_SN or XN_FLAG_DUMP_UNKNOWN_FIELDS; + + (* readable oneline form *) + + XN_FLAG_ONELINE = ASN1_STRFLGS_RFC2253 or ASN1_STRFLGS_ESC_QUOTE + or XN_FLAG_SEP_CPLUS_SPC or XN_FLAG_SPC_EQ or XN_FLAG_FN_SN; + + (* readable multiline form *) + + XN_FLAG_MULTILINE = ASN1_STRFLGS_ESC_CTRL or ASN1_STRFLGS_ESC_MSB + or XN_FLAG_SEP_MULTILINE or XN_FLAG_SPC_EQ or XN_FLAG_FN_LN or XN_FLAG_FN_ALIGN; + + X509_EXT_PACK_UNKNOWN = 1; + X509_EXT_PACK_STRING = 2; + +type + + X509_val_st = record + notBefore: PASN1_TIME; + notAfter: PASN1_TIME; + end; + X509_VAL = X509_val_st; + PX509_VAL = ^X509_VAL; + PPX509_VAL = ^PX509_VAL; + + X509_SIG = type Pointer; // X509_sig_st + PX509_SIG = ^X509_SIG; + PPX509_SIG = ^PX509_SIG; + + X509_NAME_ENTRY = type Pointer; // X509_name_entry_st + PX509_NAME_ENTRY = ^X509_NAME_ENTRY; + PPX509_NAME_ENTRY = ^PX509_NAME_ENTRY; + + //DEFINE_STACK_OF(X509_NAME_ENTRY) + PSTACK_OF_X509_NAME_ENTRY = type pointer; + // + //DEFINE_STACK_OF(X509_NAME) + PSTACK_OF_X509_NAME = type pointer; + + X509_EXTENSION = type Pointer; // X509_extension_st + PX509_EXTENSION = ^X509_EXTENSION; + PPX509_EXTENSION = ^PX509_EXTENSION; + + //typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS; + // + //DEFINE_STACK_OF(X509_EXTENSION) + + X509_ATTRIBUTE = type Pointer; // x509_attributes_st + PX509_ATTRIBUTE = ^X509_ATTRIBUTE; + PPX509_ATTRIBUTE = ^PX509_ATTRIBUTE; + + //DEFINE_STACK_OF(X509_ATTRIBUTE) + + X509_REQ_INFO = type Pointer; // X509_req_info_st + PX509_REQ_INFO = ^X509_REQ_INFO; + PPX509_REQ_INFO = ^PX509_REQ_INFO; + + X509_CERT_AUX = type Pointer; // x509_cert_aux_st + + X509_CINF = type Pointer; // x509_cinf_st + + //DEFINE_STACK_OF(X509) + + (* This is used for a table of trust checking functions *) + + Px509_trust_st = ^x509_trust_st; + x509_trust_st = record + trust: TIdC_INT; + flags: TIdC_INT; + check_trust: function(v1: Px509_trust_st; v2: PX509; v3: TIdC_INT): TIdC_INT; cdecl; + name: PIdAnsiChar; + arg1: TIdC_INT; + arg2: Pointer; + end; + X509_TRUST = x509_trust_st; + PX509_TRUST = ^X509_TRUST; + + //DEFINE_STACK_OF(X509_TRUST) + + //DEFINE_STACK_OF(X509_REVOKED) + X509_CRL_INFO = type Pointer; // X509_crl_info_st + PX509_CRL_INFO = ^X509_CRL_INFO; + PPX509_CRL_INFO = ^PX509_CRL_INFO; + + //DEFINE_STACK_OF(X509_CRL) + + private_key_st = record + version: TIdC_INT; + (* The PKCS#8 data types *) + enc_algor: PX509_ALGOR; + enc_pkey: PASN1_OCTET_STRING; (* encrypted pub key *) + (* When decrypted, the following will not be NULL *) + dec_pkey: PEVP_PKEY; + (* used to encrypt and decrypt *) + key_length: TIdC_INT; + key_data: PIdAnsiChar; + key_free: TIdC_INT; (* true if we should auto free key_data *) + (* expanded version of 'enc_algor' *) + cipher: EVP_CIPHER_INFO; + end; + X509_PKEY = private_key_st; + PX509_PKEY = ^X509_PKEY; + + X509_info_st = record + x509: PX509; + crl: PX509_CRL; + x_pkey: PX509_PKEY; + enc_cipher: EVP_CIPHER_INFO; + enc_len: TIdC_INT; + enc_data: PIdAnsiChar; + end; + X509_INFO = X509_info_st; + PX509_INFO = ^X509_INFO; + + //DEFINE_STACK_OF(X509_INFO) + + (* + * The next 2 structures and their 8 routines are used to manipulate Netscape's + * spki structures - useful if you are writing a CA web page + *) + Netscape_spkac_st = record + pubkey: PX509_PUBKEY; + challenge: PASN1_IA5STRING; (* challenge sent in atlas >= PR2 *) + end; + NETSCAPE_SPKAC = Netscape_spkac_st; + PNETSCAPE_SPKAC = ^NETSCAPE_SPKAC; + + Netscape_spki_st = record + spkac: PNETSCAPE_SPKAC; (* signed public key and challenge *) + sig_algor: X509_ALGOR; + signature: PASN1_BIT_STRING; + end; + NETSCAPE_SPKI = Netscape_spki_st; + PNETSCAPE_SPKI = ^NETSCAPE_SPKI; + + (* Netscape certificate sequence structure *) +// Netscape_certificate_sequence: record +// type_: PASN1_OBJECT; +// certs: P --> STACK_OF(X509) <--; +// end; +// NETSCAPE_CERT_SEQUENCE = Netscape_certificate_sequence; + + (*- Unused (and iv length is wrong) + typedef struct CBCParameter_st + { + unsigned char iv[8]; + } CBC_PARAM; + *) + + (* Password based encryption structure *) + PBEPARAM_st = record + salt: PASN1_OCTET_STRING; + iter: PASN1_INTEGER; + end; + PBEPARAM = PBEPARAM_st; + + (* Password based encryption V2 structures *) + PBE2PARAM_st = record + keyfunc: PX509_ALGOR; + encryption: X509_ALGOR; + end; + PBE2PARAM = PBE2PARAM_st; + + PBKDF2PARAM_st = record + (* Usually OCTET STRING but could be anything *) + salt: PASN1_TYPE; + iter: PASN1_INTEGER; + keylength: PASN1_INTEGER; + prf: X509_ALGOR; + end; + PBKDF2PARAM = PBKDF2PARAM_st; + + SCRYPT_PARAMS_st = record + salt: PASN1_OCTET_STRING; + costParameter: PASN1_INTEGER; + blockSize: PASN1_INTEGER; + parallelizationParameter: PASN1_INTEGER; + keyLength: ASN1_INTEGER; + end; + SCRYPT_PARAMS = SCRYPT_PARAMS_st; + + //# define X509_extract_key(x) X509_get_pubkey(x)(*****) + //# define X509_REQ_extract_key(a) X509_REQ_get_pubkey(a) + //# define X509_name_cmp(a,b) X509_NAME_cmp((a),(b)) + // + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM X509_CRL_set_default_method} + {$EXTERNALSYM X509_CRL_METHOD_free} + {$EXTERNALSYM X509_CRL_set_meth_data} + {$EXTERNALSYM X509_CRL_get_meth_data} + {$EXTERNALSYM X509_verify_cert_error_string} + {$EXTERNALSYM X509_verify} + {$EXTERNALSYM X509_REQ_verify} + {$EXTERNALSYM X509_CRL_verify} + {$EXTERNALSYM NETSCAPE_SPKI_verify} + {$EXTERNALSYM NETSCAPE_SPKI_b64_decode} + {$EXTERNALSYM NETSCAPE_SPKI_b64_encode} + {$EXTERNALSYM NETSCAPE_SPKI_get_pubkey} + {$EXTERNALSYM NETSCAPE_SPKI_set_pubkey} + {$EXTERNALSYM NETSCAPE_SPKI_print} + {$EXTERNALSYM X509_signature_dump} + {$EXTERNALSYM X509_signature_print} + {$EXTERNALSYM X509_sign} + {$EXTERNALSYM X509_sign_ctx} + {$EXTERNALSYM X509_REQ_sign} + {$EXTERNALSYM X509_REQ_sign_ctx} + {$EXTERNALSYM X509_CRL_sign} + {$EXTERNALSYM X509_CRL_sign_ctx} + {$EXTERNALSYM NETSCAPE_SPKI_sign} + {$EXTERNALSYM X509_pubkey_digest} + {$EXTERNALSYM X509_digest} + {$EXTERNALSYM X509_CRL_digest} + {$EXTERNALSYM X509_REQ_digest} + {$EXTERNALSYM X509_NAME_digest} + {$EXTERNALSYM d2i_X509_bio} + {$EXTERNALSYM i2d_X509_bio} + {$EXTERNALSYM d2i_X509_CRL_bio} + {$EXTERNALSYM i2d_X509_CRL_bio} + {$EXTERNALSYM d2i_X509_REQ_bio} + {$EXTERNALSYM i2d_X509_REQ_bio} + {$EXTERNALSYM d2i_RSAPrivateKey_bio} + {$EXTERNALSYM i2d_RSAPrivateKey_bio} + {$EXTERNALSYM d2i_RSAPublicKey_bio} + {$EXTERNALSYM i2d_RSAPublicKey_bio} + {$EXTERNALSYM d2i_RSA_PUBKEY_bio} + {$EXTERNALSYM i2d_RSA_PUBKEY_bio} + {$EXTERNALSYM d2i_DSA_PUBKEY_bio} + {$EXTERNALSYM i2d_DSA_PUBKEY_bio} + {$EXTERNALSYM d2i_DSAPrivateKey_bio} + {$EXTERNALSYM i2d_DSAPrivateKey_bio} + {$EXTERNALSYM d2i_EC_PUBKEY_bio} + {$EXTERNALSYM i2d_EC_PUBKEY_bio} + {$EXTERNALSYM d2i_ECPrivateKey_bio} + {$EXTERNALSYM i2d_ECPrivateKey_bio} + {$EXTERNALSYM d2i_PKCS8_bio} + {$EXTERNALSYM i2d_PKCS8_bio} + {$EXTERNALSYM d2i_PKCS8_PRIV_KEY_INFO_bio} + {$EXTERNALSYM i2d_PKCS8_PRIV_KEY_INFO_bio} + {$EXTERNALSYM i2d_PKCS8PrivateKeyInfo_bio} + {$EXTERNALSYM i2d_PrivateKey_bio} + {$EXTERNALSYM d2i_PrivateKey_bio} + {$EXTERNALSYM i2d_PUBKEY_bio} + {$EXTERNALSYM d2i_PUBKEY_bio} + {$EXTERNALSYM X509_dup} + {$EXTERNALSYM X509_ATTRIBUTE_dup} + {$EXTERNALSYM X509_EXTENSION_dup} + {$EXTERNALSYM X509_CRL_dup} + {$EXTERNALSYM X509_REVOKED_dup} + {$EXTERNALSYM X509_REQ_dup} + {$EXTERNALSYM X509_ALGOR_dup} + {$EXTERNALSYM X509_ALGOR_set0} + {$EXTERNALSYM X509_ALGOR_get0} + {$EXTERNALSYM X509_ALGOR_set_md} + {$EXTERNALSYM X509_ALGOR_cmp} + {$EXTERNALSYM X509_NAME_dup} + {$EXTERNALSYM X509_NAME_ENTRY_dup} + {$EXTERNALSYM X509_cmp_time} + {$EXTERNALSYM X509_cmp_current_time} + {$EXTERNALSYM X509_time_adj} + {$EXTERNALSYM X509_time_adj_ex} + {$EXTERNALSYM X509_gmtime_adj} + {$EXTERNALSYM X509_get_default_cert_area} + {$EXTERNALSYM X509_get_default_cert_dir} + {$EXTERNALSYM X509_get_default_cert_file} + {$EXTERNALSYM X509_get_default_cert_dir_env} + {$EXTERNALSYM X509_get_default_cert_file_env} + {$EXTERNALSYM X509_get_default_private_dir} + {$EXTERNALSYM X509_to_X509_REQ} + {$EXTERNALSYM X509_REQ_to_X509} + {$EXTERNALSYM X509_ALGOR_new} + {$EXTERNALSYM X509_ALGOR_free} + {$EXTERNALSYM d2i_X509_ALGOR} + {$EXTERNALSYM i2d_X509_ALGOR} + {$EXTERNALSYM X509_VAL_new} + {$EXTERNALSYM X509_VAL_free} + {$EXTERNALSYM d2i_X509_VAL} + {$EXTERNALSYM i2d_X509_VAL} + {$EXTERNALSYM X509_PUBKEY_new} + {$EXTERNALSYM X509_PUBKEY_free} + {$EXTERNALSYM d2i_X509_PUBKEY} + {$EXTERNALSYM i2d_X509_PUBKEY} + {$EXTERNALSYM X509_PUBKEY_set} + {$EXTERNALSYM X509_PUBKEY_get0} {introduced 1.1.0} + {$EXTERNALSYM X509_PUBKEY_get} + {$EXTERNALSYM X509_get_pathlen} {introduced 1.1.0} + {$EXTERNALSYM i2d_PUBKEY} + {$EXTERNALSYM d2i_PUBKEY} + {$EXTERNALSYM i2d_RSA_PUBKEY} + {$EXTERNALSYM d2i_RSA_PUBKEY} + {$EXTERNALSYM i2d_DSA_PUBKEY} + {$EXTERNALSYM d2i_DSA_PUBKEY} + {$EXTERNALSYM i2d_EC_PUBKEY} + {$EXTERNALSYM d2i_EC_PUBKEY} + {$EXTERNALSYM X509_SIG_new} + {$EXTERNALSYM X509_SIG_free} + {$EXTERNALSYM d2i_X509_SIG} + {$EXTERNALSYM i2d_X509_SIG} + {$EXTERNALSYM X509_SIG_get0} {introduced 1.1.0} + {$EXTERNALSYM X509_SIG_getm} {introduced 1.1.0} + {$EXTERNALSYM X509_REQ_INFO_new} + {$EXTERNALSYM X509_REQ_INFO_free} + {$EXTERNALSYM d2i_X509_REQ_INFO} + {$EXTERNALSYM i2d_X509_REQ_INFO} + {$EXTERNALSYM X509_REQ_new} + {$EXTERNALSYM X509_REQ_free} + {$EXTERNALSYM d2i_X509_REQ} + {$EXTERNALSYM i2d_X509_REQ} + {$EXTERNALSYM X509_ATTRIBUTE_new} + {$EXTERNALSYM X509_ATTRIBUTE_free} + {$EXTERNALSYM d2i_X509_ATTRIBUTE} + {$EXTERNALSYM i2d_X509_ATTRIBUTE} + {$EXTERNALSYM X509_ATTRIBUTE_create} + {$EXTERNALSYM X509_EXTENSION_new} + {$EXTERNALSYM X509_EXTENSION_free} + {$EXTERNALSYM d2i_X509_EXTENSION} + {$EXTERNALSYM i2d_X509_EXTENSION} + {$EXTERNALSYM X509_NAME_ENTRY_new} + {$EXTERNALSYM X509_NAME_ENTRY_free} + {$EXTERNALSYM d2i_X509_NAME_ENTRY} + {$EXTERNALSYM i2d_X509_NAME_ENTRY} + {$EXTERNALSYM X509_NAME_new} + {$EXTERNALSYM X509_NAME_free} + {$EXTERNALSYM d2i_X509_NAME} + {$EXTERNALSYM i2d_X509_NAME} + {$EXTERNALSYM X509_NAME_set} + {$EXTERNALSYM X509_new} + {$EXTERNALSYM X509_free} + {$EXTERNALSYM d2i_X509} + {$EXTERNALSYM i2d_X509} + {$EXTERNALSYM X509_set_ex_data} + {$EXTERNALSYM X509_get_ex_data} + {$EXTERNALSYM i2d_X509_AUX} + {$EXTERNALSYM d2i_X509_AUX} + {$EXTERNALSYM i2d_re_X509_tbs} + {$EXTERNALSYM X509_SIG_INFO_get} {introduced 1.1.0} + {$EXTERNALSYM X509_SIG_INFO_set} {introduced 1.1.0} + {$EXTERNALSYM X509_get_signature_info} {introduced 1.1.0} + {$EXTERNALSYM X509_get0_signature} {introduced 1.1.0} + {$EXTERNALSYM X509_get_signature_nid} + {$EXTERNALSYM X509_trusted} {introduced 1.1.0} + {$EXTERNALSYM X509_alias_set1} + {$EXTERNALSYM X509_keyid_set1} + {$EXTERNALSYM X509_alias_get0} + {$EXTERNALSYM X509_keyid_get0} + {$EXTERNALSYM X509_TRUST_set} + {$EXTERNALSYM X509_add1_trust_object} + {$EXTERNALSYM X509_add1_reject_object} + {$EXTERNALSYM X509_trust_clear} + {$EXTERNALSYM X509_reject_clear} + {$EXTERNALSYM X509_REVOKED_new} + {$EXTERNALSYM X509_REVOKED_free} + {$EXTERNALSYM d2i_X509_REVOKED} + {$EXTERNALSYM i2d_X509_REVOKED} + {$EXTERNALSYM X509_CRL_INFO_new} + {$EXTERNALSYM X509_CRL_INFO_free} + {$EXTERNALSYM d2i_X509_CRL_INFO} + {$EXTERNALSYM i2d_X509_CRL_INFO} + {$EXTERNALSYM X509_CRL_new} + {$EXTERNALSYM X509_CRL_free} + {$EXTERNALSYM d2i_X509_CRL} + {$EXTERNALSYM i2d_X509_CRL} + {$EXTERNALSYM X509_CRL_add0_revoked} + {$EXTERNALSYM X509_CRL_get0_by_serial} + {$EXTERNALSYM X509_CRL_get0_by_cert} + {$EXTERNALSYM X509_PKEY_new} + {$EXTERNALSYM X509_PKEY_free} + {$EXTERNALSYM X509_INFO_new} + {$EXTERNALSYM X509_INFO_free} + {$EXTERNALSYM X509_NAME_oneline} + {$EXTERNALSYM ASN1_item_digest} + {$EXTERNALSYM ASN1_item_verify} + {$EXTERNALSYM ASN1_item_sign} + {$EXTERNALSYM ASN1_item_sign_ctx} + {$EXTERNALSYM X509_get_version} {introduced 1.1.0} + {$EXTERNALSYM X509_set_version} + {$EXTERNALSYM X509_set_serialNumber} + {$EXTERNALSYM X509_get_serialNumber} + {$EXTERNALSYM X509_get0_serialNumber} {introduced 1.1.0} + {$EXTERNALSYM X509_set_issuer_name} + {$EXTERNALSYM X509_get_issuer_name} + {$EXTERNALSYM X509_set_subject_name} + {$EXTERNALSYM X509_get_subject_name} + {$EXTERNALSYM X509_get0_notBefore} {introduced 1.1.0} + {$EXTERNALSYM X509_getm_notBefore} {introduced 1.1.0} + {$EXTERNALSYM X509_set1_notBefore} {introduced 1.1.0} + {$EXTERNALSYM X509_get0_notAfter} {introduced 1.1.0} + {$EXTERNALSYM X509_getm_notAfter} {introduced 1.1.0} + {$EXTERNALSYM X509_set1_notAfter} {introduced 1.1.0} + {$EXTERNALSYM X509_set_pubkey} + {$EXTERNALSYM X509_up_ref} {introduced 1.1.0} + {$EXTERNALSYM X509_get_signature_type} {introduced 1.1.0} + {$EXTERNALSYM X509_get_X509_PUBKEY} {introduced 1.1.0} + {$EXTERNALSYM X509_get0_uids} {introduced 1.1.0} + {$EXTERNALSYM X509_get0_tbs_sigalg} {introduced 1.1.0} + {$EXTERNALSYM X509_get0_pubkey} {introduced 1.1.0} + {$EXTERNALSYM X509_get_pubkey} + {$EXTERNALSYM X509_get0_pubkey_bitstr} + {$EXTERNALSYM X509_certificate_type} + {$EXTERNALSYM X509_REQ_get_version} {introduced 1.1.0} + {$EXTERNALSYM X509_REQ_set_version} + {$EXTERNALSYM X509_REQ_get_subject_name} {introduced 1.1.0} + {$EXTERNALSYM X509_REQ_set_subject_name} + {$EXTERNALSYM X509_REQ_get0_signature} {introduced 1.1.0} + {$EXTERNALSYM X509_REQ_get_signature_nid} {introduced 1.1.0} + {$EXTERNALSYM i2d_re_X509_REQ_tbs} {introduced 1.1.0} + {$EXTERNALSYM X509_REQ_set_pubkey} + {$EXTERNALSYM X509_REQ_get_pubkey} + {$EXTERNALSYM X509_REQ_get0_pubkey} {introduced 1.1.0} + {$EXTERNALSYM X509_REQ_get_X509_PUBKEY} {introduced 1.1.0} + {$EXTERNALSYM X509_REQ_extension_nid} + {$EXTERNALSYM X509_REQ_get_extension_nids} + {$EXTERNALSYM X509_REQ_set_extension_nids} + {$EXTERNALSYM X509_REQ_get_attr_count} + {$EXTERNALSYM X509_REQ_get_attr_by_NID} + {$EXTERNALSYM X509_REQ_get_attr_by_OBJ} + {$EXTERNALSYM X509_REQ_get_attr} + {$EXTERNALSYM X509_REQ_delete_attr} + {$EXTERNALSYM X509_REQ_add1_attr} + {$EXTERNALSYM X509_REQ_add1_attr_by_OBJ} + {$EXTERNALSYM X509_REQ_add1_attr_by_NID} + {$EXTERNALSYM X509_REQ_add1_attr_by_txt} + {$EXTERNALSYM X509_CRL_set_version} + {$EXTERNALSYM X509_CRL_set_issuer_name} + {$EXTERNALSYM X509_CRL_set1_lastUpdate} {introduced 1.1.0} + {$EXTERNALSYM X509_CRL_set1_nextUpdate} {introduced 1.1.0} + {$EXTERNALSYM X509_CRL_sort} + {$EXTERNALSYM X509_CRL_up_ref} {introduced 1.1.0} + {$EXTERNALSYM X509_CRL_get_version} {introduced 1.1.0} + {$EXTERNALSYM X509_CRL_get0_lastUpdate} {introduced 1.1.0} + {$EXTERNALSYM X509_CRL_get0_nextUpdate} {introduced 1.1.0} + {$EXTERNALSYM X509_CRL_get_issuer} {introduced 1.1.0} + {$EXTERNALSYM X509_CRL_get0_signature} {introduced 1.1.0} + {$EXTERNALSYM X509_CRL_get_signature_nid} {introduced 1.1.0} + {$EXTERNALSYM i2d_re_X509_CRL_tbs} {introduced 1.1.0} + {$EXTERNALSYM X509_REVOKED_get0_serialNumber} {introduced 1.1.0} + {$EXTERNALSYM X509_REVOKED_set_serialNumber} + {$EXTERNALSYM X509_REVOKED_get0_revocationDate} {introduced 1.1.0} + {$EXTERNALSYM X509_REVOKED_set_revocationDate} + {$EXTERNALSYM X509_CRL_diff} + {$EXTERNALSYM X509_REQ_check_private_key} + {$EXTERNALSYM X509_check_private_key} + {$EXTERNALSYM X509_CRL_check_suiteb} + {$EXTERNALSYM X509_issuer_and_serial_cmp} + {$EXTERNALSYM X509_issuer_and_serial_hash} + {$EXTERNALSYM X509_issuer_name_cmp} + {$EXTERNALSYM X509_issuer_name_hash} + {$EXTERNALSYM X509_subject_name_cmp} + {$EXTERNALSYM X509_subject_name_hash} + {$EXTERNALSYM X509_cmp} + {$EXTERNALSYM X509_NAME_cmp} + {$EXTERNALSYM X509_NAME_hash_old} + {$EXTERNALSYM X509_CRL_cmp} + {$EXTERNALSYM X509_CRL_match} + {$EXTERNALSYM X509_aux_print} {introduced 1.1.0} + {$EXTERNALSYM X509_NAME_print} + {$EXTERNALSYM X509_NAME_print_ex} + {$EXTERNALSYM X509_print_ex} + {$EXTERNALSYM X509_print} + {$EXTERNALSYM X509_ocspid_print} + {$EXTERNALSYM X509_CRL_print_ex} {introduced 1.1.0} + {$EXTERNALSYM X509_CRL_print} + {$EXTERNALSYM X509_REQ_print_ex} + {$EXTERNALSYM X509_REQ_print} + {$EXTERNALSYM X509_NAME_entry_count} + {$EXTERNALSYM X509_NAME_get_text_by_NID} + {$EXTERNALSYM X509_NAME_get_text_by_OBJ} + {$EXTERNALSYM X509_NAME_get_index_by_NID} + {$EXTERNALSYM X509_NAME_get_index_by_OBJ} + {$EXTERNALSYM X509_NAME_get_entry} + {$EXTERNALSYM X509_NAME_delete_entry} + {$EXTERNALSYM X509_NAME_add_entry} + {$EXTERNALSYM X509_NAME_add_entry_by_OBJ} + {$EXTERNALSYM X509_NAME_add_entry_by_NID} + {$EXTERNALSYM X509_NAME_ENTRY_create_by_txt} + {$EXTERNALSYM X509_NAME_ENTRY_create_by_NID} + {$EXTERNALSYM X509_NAME_add_entry_by_txt} + {$EXTERNALSYM X509_NAME_ENTRY_create_by_OBJ} + {$EXTERNALSYM X509_NAME_ENTRY_set_object} + {$EXTERNALSYM X509_NAME_ENTRY_set_data} + {$EXTERNALSYM X509_NAME_ENTRY_get_object} + {$EXTERNALSYM X509_NAME_ENTRY_get_data} + {$EXTERNALSYM X509_NAME_ENTRY_set} {introduced 1.1.0} + {$EXTERNALSYM X509_NAME_get0_der} {introduced 1.1.0} + {$EXTERNALSYM X509_get_ext_count} + {$EXTERNALSYM X509_get_ext_by_NID} + {$EXTERNALSYM X509_get_ext_by_OBJ} + {$EXTERNALSYM X509_get_ext_by_critical} + {$EXTERNALSYM X509_get_ext} + {$EXTERNALSYM X509_delete_ext} + {$EXTERNALSYM X509_add_ext} + {$EXTERNALSYM X509_get_ext_d2i} + {$EXTERNALSYM X509_add1_ext_i2d} + {$EXTERNALSYM X509_CRL_get_ext_count} + {$EXTERNALSYM X509_CRL_get_ext_by_NID} + {$EXTERNALSYM X509_CRL_get_ext_by_OBJ} + {$EXTERNALSYM X509_CRL_get_ext_by_critical} + {$EXTERNALSYM X509_CRL_get_ext} + {$EXTERNALSYM X509_CRL_delete_ext} + {$EXTERNALSYM X509_CRL_add_ext} + {$EXTERNALSYM X509_CRL_get_ext_d2i} + {$EXTERNALSYM X509_CRL_add1_ext_i2d} + {$EXTERNALSYM X509_REVOKED_get_ext_count} + {$EXTERNALSYM X509_REVOKED_get_ext_by_NID} + {$EXTERNALSYM X509_REVOKED_get_ext_by_OBJ} + {$EXTERNALSYM X509_REVOKED_get_ext_by_critical} + {$EXTERNALSYM X509_REVOKED_get_ext} + {$EXTERNALSYM X509_REVOKED_delete_ext} + {$EXTERNALSYM X509_REVOKED_add_ext} + {$EXTERNALSYM X509_REVOKED_get_ext_d2i} + {$EXTERNALSYM X509_REVOKED_add1_ext_i2d} + {$EXTERNALSYM X509_EXTENSION_create_by_NID} + {$EXTERNALSYM X509_EXTENSION_create_by_OBJ} + {$EXTERNALSYM X509_EXTENSION_set_object} + {$EXTERNALSYM X509_EXTENSION_set_critical} + {$EXTERNALSYM X509_EXTENSION_set_data} + {$EXTERNALSYM X509_EXTENSION_get_object} + {$EXTERNALSYM X509_EXTENSION_get_data} + {$EXTERNALSYM X509_EXTENSION_get_critical} + {$EXTERNALSYM X509_ATTRIBUTE_create_by_NID} + {$EXTERNALSYM X509_ATTRIBUTE_create_by_OBJ} + {$EXTERNALSYM X509_ATTRIBUTE_create_by_txt} + {$EXTERNALSYM X509_ATTRIBUTE_set1_object} + {$EXTERNALSYM X509_ATTRIBUTE_set1_data} + {$EXTERNALSYM X509_ATTRIBUTE_get0_data} + {$EXTERNALSYM X509_ATTRIBUTE_count} + {$EXTERNALSYM X509_ATTRIBUTE_get0_object} + {$EXTERNALSYM X509_ATTRIBUTE_get0_type} + {$EXTERNALSYM EVP_PKEY_get_attr_count} + {$EXTERNALSYM EVP_PKEY_get_attr_by_NID} + {$EXTERNALSYM EVP_PKEY_get_attr_by_OBJ} + {$EXTERNALSYM EVP_PKEY_get_attr} + {$EXTERNALSYM EVP_PKEY_delete_attr} + {$EXTERNALSYM EVP_PKEY_add1_attr} + {$EXTERNALSYM EVP_PKEY_add1_attr_by_OBJ} + {$EXTERNALSYM EVP_PKEY_add1_attr_by_NID} + {$EXTERNALSYM EVP_PKEY_add1_attr_by_txt} + {$EXTERNALSYM X509_verify_cert} + {$EXTERNALSYM PKCS5_pbe_set0_algor} + {$EXTERNALSYM PKCS5_pbe_set} + {$EXTERNALSYM PKCS5_pbe2_set} + {$EXTERNALSYM PKCS5_pbe2_set_iv} + {$EXTERNALSYM PKCS5_pbe2_set_scrypt} {introduced 1.1.0} + {$EXTERNALSYM PKCS5_pbkdf2_set} + {$EXTERNALSYM EVP_PKCS82PKEY} + {$EXTERNALSYM EVP_PKEY2PKCS8} + {$EXTERNALSYM PKCS8_pkey_set0} + {$EXTERNALSYM PKCS8_pkey_get0} + {$EXTERNALSYM PKCS8_pkey_add1_attr_by_NID} {introduced 1.1.0} + {$EXTERNALSYM X509_PUBKEY_set0_param} + {$EXTERNALSYM X509_PUBKEY_get0_param} + {$EXTERNALSYM X509_check_trust} + {$EXTERNALSYM X509_TRUST_get_count} + {$EXTERNALSYM X509_TRUST_get0} + {$EXTERNALSYM X509_TRUST_get_by_id} + {$EXTERNALSYM X509_TRUST_cleanup} + {$EXTERNALSYM X509_TRUST_get_flags} + {$EXTERNALSYM X509_TRUST_get0_name} + {$EXTERNALSYM X509_TRUST_get_trust} + {$EXTERNALSYM X509_NAME_hash_ex} {introduced 3.0.0} +{helper_functions} +type +{$EXTERNALSYM Tsk_pop_free_func} +{$EXTERNALSYM Tsk_new_cmp} +{$EXTERNALSYM PSTACK_OF_X509_INFO} + Tsk_new_cmp = function (const a, b : PIdAnsiChar; const c : PIdAnsiChar) : TIdC_INT cdecl; + Tsk_pop_free_func = procedure (p : Pointer); cdecl; + PSTACK_OF_X509_INFO = pointer; + {$EXTERNALSYM sk_X509_NAME_new} + {$EXTERNALSYM sk_X509_NAME_new_null} + {$EXTERNALSYM sk_X509_NAME_free} + {$EXTERNALSYM sk_X509_NAME_num} + {$EXTERNALSYM sk_X509_NAME_value} + {$EXTERNALSYM sk_X509_NAME_push} + {$EXTERNALSYM sk_X509_NAME_dup} + {$EXTERNALSYM sk_X509_NAME_find} + {$EXTERNALSYM sk_X509_NAME_pop_free} + {$EXTERNALSYM sk_X509_INFO_num} + {$EXTERNALSYM sk_X509_INFO_value} + {$EXTERNALSYM sk_X509_INFO_push} + {$EXTERNALSYM sk_X509_INFO_dup} + {$EXTERNALSYM sk_X509_INFO_find} + {$EXTERNALSYM sk_X509_INFO_pop_free} + + {$IFNDEF USE_EXTERNAL_LIBRARY} +{$EXTERNALSYM Tsk_X509_NAME_new} +{$EXTERNALSYM Tsk_X509_NAME_new_null} +{$EXTERNALSYM Tsk_X509_NAME_free} +{$EXTERNALSYM Tsk_X509_NAME_num} +{$EXTERNALSYM Tsk_X509_NAME_value} +{$EXTERNALSYM Tsk_X509_NAME_push} +{$EXTERNALSYM Tsk_X509_NAME_dup} +{$EXTERNALSYM Tsk_X509_NAME_find} +{$EXTERNALSYM Tsk_X509_NAME_pop_free} +{$EXTERNALSYM Tsk_X509_INFO_num} +{$EXTERNALSYM Tsk_X509_INFO_value} +{$EXTERNALSYM Tsk_X509_INFO_push} +{$EXTERNALSYM Tsk_X509_INFO_dup} +{$EXTERNALSYM Tsk_X509_INFO_find} +{$EXTERNALSYM Tsk_X509_INFO_pop_free} +{$EXTERNALSYM Tsk_new_cmp} +type + Tsk_X509_NAME_new = function(cmp : Tsk_new_cmp) : PSTACK_OF_X509_NAME cdecl; + Tsk_X509_NAME_new_null = function : PSTACK_OF_X509_NAME cdecl; + Tsk_X509_NAME_free = procedure(st : PSTACK_OF_X509_NAME) cdecl; + Tsk_X509_NAME_num = function (const sk : PSTACK_OF_X509_NAME) : TIdC_INT cdecl; + Tsk_X509_NAME_value = function (const sk : PSTACK_OF_X509_NAME; i : TIdC_INT) : PX509_NAME cdecl; + Tsk_X509_NAME_push = function (sk : PSTACK_OF_X509_NAME; st : PX509_NAME) : TIdC_INT cdecl; + Tsk_X509_NAME_dup = function (sk : PSTACK_OF_X509_NAME) : PSTACK_OF_X509_NAME cdecl; + Tsk_X509_NAME_find = function (sk : PSTACK_OF_X509_NAME; val : PX509_NAME) : TIdC_INT cdecl; + Tsk_X509_NAME_pop_free = procedure (sk : PSTACK_OF_X509_NAME; func: Tsk_pop_free_func) cdecl; + Tsk_X509_INFO_num = function (const sk : PSTACK_OF_X509_INFO) : TIdC_INT cdecl; + Tsk_X509_INFO_value = function (const sk : PSTACK_OF_X509_INFO; i : TIdC_INT) : PX509_INFO cdecl; + Tsk_X509_INFO_push = function (sk : PSTACK_OF_X509_INFO; st : PX509_INFO) : TIdC_INT cdecl; + Tsk_X509_INFO_dup = function (sk : PSTACK_OF_X509_INFO) : PSTACK_OF_X509_INFO cdecl; + Tsk_X509_INFO_find = function (sk : PSTACK_OF_X509_INFO; val : PX509_INFO) : TIdC_INT cdecl; + Tsk_X509_INFO_pop_free = procedure (sk : PSTACK_OF_X509_INFO; func: Tsk_pop_free_func) cdecl; + +var + sk_X509_NAME_new: Tsk_X509_NAME_new absolute sk_new; + sk_X509_NAME_new_null : Tsk_X509_NAME_new_null absolute sk_new_null; + sk_X509_NAME_free : Tsk_X509_NAME_free absolute sk_free; + sk_X509_NAME_num : Tsk_X509_NAME_num absolute sk_num; + sk_X509_NAME_value : Tsk_X509_NAME_value absolute sk_value; + sk_X509_NAME_push : Tsk_X509_NAME_push absolute sk_push; + sk_X509_NAME_dup : Tsk_X509_NAME_dup absolute sk_dup; + sk_X509_NAME_find : Tsk_X509_NAME_find absolute sk_find; + sk_X509_NAME_pop_free : Tsk_X509_NAME_pop_free absolute sk_pop_free; + sk_X509_INFO_num : Tsk_X509_INFO_num absolute sk_num; + sk_X509_INFO_value : Tsk_X509_INFO_value absolute sk_value; + sk_X509_INFO_push : Tsk_X509_INFO_push absolute sk_push; + sk_X509_INFO_dup : Tsk_X509_INFO_dup absolute sk_dup; + sk_X509_INFO_find : Tsk_X509_INFO_find absolute sk_find; + sk_X509_INFO_pop_free : Tsk_X509_INFO_pop_free absolute sk_pop_free; +{$ELSE} + function sk_X509_NAME_new(cmp : Tsk_new_cmp) : PSTACK_OF_X509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_new'; + function sk_X509_NAME_new_null : PSTACK_OF_X509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_new_null'; + procedure sk_X509_NAME_free(st : PSTACK_OF_X509_NAME) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_free'; + function sk_X509_NAME_num (const sk : PSTACK_OF_X509_NAME) : TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_num'; + function sk_X509_NAME_value (const sk : PSTACK_OF_X509_NAME; i : TIdC_INT): PX509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_value'; + function sk_X509_NAME_push (sk : PSTACK_OF_X509_NAME; st : PX509_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_push'; + function sk_X509_NAME_dup (sk : PSTACK_OF_X509_NAME) : PSTACK_OF_X509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_dup'; + function sk_X509_NAME_find (sk : PSTACK_OF_X509_NAME; val : PX509_NAME) : TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_find'; + procedure sk_X509_NAME_pop_free (sk : PSTACK_OF_X509_NAME; func: Tsk_pop_free_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_pop_free'; + function sk_X509_INFO_num (const sk : PSTACK_OF_X509_INFO) : TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_num'; + function sk_X509_INFO_value (const sk : PSTACK_OF_X509_INFO; i : TIdC_INT) : PX509_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_value'; + function sk_X509_INFO_push (sk : PSTACK_OF_X509_INFO; st : PX509_INFO) : TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_push'; + function sk_X509_INFO_dup (sk : PSTACK_OF_X509_INFO) : PSTACK_OF_X509_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_dup'; + function sk_X509_INFO_find (sk : PSTACK_OF_X509_INFO; val : PX509_INFO) : TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_find'; + procedure sk_X509_INFO_pop_free (sk : PSTACK_OF_X509_INFO; func: Tsk_pop_free_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_pop_free'; + +{$ENDIF} +{/helper_functions} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + {$EXTERNALSYM X509_http_nbio} {removed 3.0.0} + {$EXTERNALSYM X509_CRL_http_nbio} {removed 3.0.0} + {$EXTERNALSYM X509_NAME_hash} {removed 3.0.0} + X509_CRL_set_default_method: procedure(const meth: PX509_CRL_METHOD); cdecl = nil; +// function X509_CRL_METHOD_new(crl_init: function(crl: X509_CRL): TIdC_INT; +// crl_free: function(crl: PX509_CRL): TIdC_INT; +// crl_lookup: function(crl: PX509_CRL; ret: PPX509_REVOKED; ser: PASN1_INTEGER; issuer: PX509_NAME): TIdC_INT; +// crl_verify: function(crl: PX509_CRL, pk: PEVP_PKEY): TIdC_INT): PX509_CRL_METHOD; + X509_CRL_METHOD_free: procedure(m: PX509_CRL_METHOD); cdecl = nil; + + X509_CRL_set_meth_data: procedure(crl: PX509_CRL; dat: Pointer); cdecl = nil; + X509_CRL_get_meth_data: function(crl: PX509_CRL): Pointer; cdecl = nil; + + X509_verify_cert_error_string: function(n: TIdC_LONG): PIdAnsiChar; cdecl = nil; + + X509_verify: function(a: PX509; r: PEVP_PKEY): TIdC_INT; cdecl = nil; + + X509_REQ_verify: function(a: PX509_REQ; r: PEVP_PKEY): TIdC_INT; cdecl = nil; + X509_CRL_verify: function(a: PX509_CRL; r: PEVP_PKEY): TIdC_INT; cdecl = nil; + NETSCAPE_SPKI_verify: function(a: PNETSCAPE_SPKI; r: PEVP_PKEY): TIdC_INT; cdecl = nil; + + NETSCAPE_SPKI_b64_decode: function(const str: PIdAnsiChar; len: TIdC_INT): PNETSCAPE_SPKI; cdecl = nil; + NETSCAPE_SPKI_b64_encode: function(x: PNETSCAPE_SPKI): PIdAnsiChar; cdecl = nil; + NETSCAPE_SPKI_get_pubkey: function(x: PNETSCAPE_SPKI): PEVP_PKEY; cdecl = nil; + NETSCAPE_SPKI_set_pubkey: function(x: PNETSCAPE_SPKI; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + + NETSCAPE_SPKI_print: function(out_: PBIO; spki: PNETSCAPE_SPKI): TIdC_INT; cdecl = nil; + + X509_signature_dump: function(bp: PBIO; const sig: PASN1_STRING; indent: TIdC_INT): TIdC_INT; cdecl = nil; + X509_signature_print: function(bp: PBIO; const alg: PX509_ALGOR; const sig: PASN1_STRING): TIdC_INT; cdecl = nil; + + X509_sign: function(x: PX509; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT; cdecl = nil; + X509_sign_ctx: function(x: PX509; ctx: PEVP_MD_CTX): TIdC_INT; cdecl = nil; + + X509_http_nbio: function(rctx: POCSP_REQ_CTX; pcert: PPX509): TIdC_INT; cdecl = nil; {removed 3.0.0} + + X509_REQ_sign: function(x: PX509_REQ; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT; cdecl = nil; + X509_REQ_sign_ctx: function(x: PX509_REQ; ctx: PEVP_MD_CTX): TIdC_INT; cdecl = nil; + X509_CRL_sign: function(x: PX509_CRL; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT; cdecl = nil; + X509_CRL_sign_ctx: function(x: PX509_CRL; ctx: PEVP_MD_CTX): TIdC_INT; cdecl = nil; + + X509_CRL_http_nbio: function(rctx: POCSP_REQ_CTX; pcrl: PPX509_CRL): TIdC_INT; cdecl = nil; {removed 3.0.0} + + NETSCAPE_SPKI_sign: function(x: PNETSCAPE_SPKI; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT; cdecl = nil; + + X509_pubkey_digest: function(const data: PX509; const type_: PEVP_MD; md: PByte; len: PIdC_UINT): TIdC_INT; cdecl = nil; + X509_digest: function(const data: PX509; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT; cdecl = nil; + X509_CRL_digest: function(const data: PX509_CRL; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT; cdecl = nil; + X509_REQ_digest: function(const data: PX509_REQ; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT; cdecl = nil; + X509_NAME_digest: function(const data: PX509_NAME; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT; cdecl = nil; + + //# ifndef OPENSSL_NO_STDIO + //X509 *d2i_X509_fp(FILE *fp, X509 **x509); + //TIdC_INT i2d_X509_fp(FILE *fp, X509 *x509); + //X509_CRL *d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl); + //TIdC_INT i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl); + //X509_REQ *d2i_X509_REQ_fp(FILE *fp, X509_REQ **req); + //TIdC_INT i2d_X509_REQ_fp(FILE *fp, X509_REQ *req); + //# ifndef OPENSSL_NO_RSA + //RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa); + //TIdC_INT i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa); + //RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa); + //TIdC_INT i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa); + //RSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa); + //TIdC_INT i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa); + //# endif + //# ifndef OPENSSL_NO_DSA + //DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa); + //TIdC_INT i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa); + //DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa); + //TIdC_INT i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa); + //# endif + //# ifndef OPENSSL_NO_EC + //EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey); + //TIdC_INT i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey); + //EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey); + //TIdC_INT i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey); + //# endif + //X509_SIG *d2i_PKCS8_fp(FILE *fp, X509_SIG **p8); + //TIdC_INT i2d_PKCS8_fp(FILE *fp, X509_SIG *p8); + //PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, + // PKCS8_PRIV_KEY_INFO **p8inf); + //TIdC_INT i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf); + //TIdC_INT i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key); + //TIdC_INT i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey); + //EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a); + //TIdC_INT i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey); + //EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a); + //# endif + + d2i_X509_bio: function(bp: PBIO; x509: PPX509): PX509; cdecl = nil; + i2d_X509_bio: function(bp: PBIO; x509: PX509): TIdC_INT; cdecl = nil; + d2i_X509_CRL_bio: function(bp: PBIO; crl: PPX509_CRL): PX509_CRL; cdecl = nil; + i2d_X509_CRL_bio: function(bp: PBIO; crl: PX509_CRL): TIdC_INT; cdecl = nil; + d2i_X509_REQ_bio: function(bp: PBIO; req: PPX509_REQ): PX509_REQ; cdecl = nil; + i2d_X509_REQ_bio: function(bp: PBIO; req: PX509_REQ): TIdC_INT; cdecl = nil; + + d2i_RSAPrivateKey_bio: function(bp: PBIO; rsa: PPRSA): PRSA; cdecl = nil; + i2d_RSAPrivateKey_bio: function(bp: PBIO; rsa: PRSA): TIdC_INT; cdecl = nil; + d2i_RSAPublicKey_bio: function(bp: PBIO; rsa: PPRSA): PRSA; cdecl = nil; + i2d_RSAPublicKey_bio: function(bp: PBIO; rsa: PRSA): TIdC_INT; cdecl = nil; + d2i_RSA_PUBKEY_bio: function(bp: PBIO; rsa: PPRSA): PRSA; cdecl = nil; + i2d_RSA_PUBKEY_bio: function(bp: PBIO; rsa: PRSA): TIdC_INT; cdecl = nil; + + d2i_DSA_PUBKEY_bio: function(bp: PBIO; dsa: PPDSA): DSA; cdecl = nil; + i2d_DSA_PUBKEY_bio: function(bp: PBIO; dsa: PDSA): TIdC_INT; cdecl = nil; + d2i_DSAPrivateKey_bio: function(bp: PBIO; dsa: PPDSA): PDSA; cdecl = nil; + i2d_DSAPrivateKey_bio: function(bp: PBIO; dsa: PDSA): TIdC_INT; cdecl = nil; + + d2i_EC_PUBKEY_bio: function(bp: PBIO; eckey: PPEC_KEY): PEC_KEY; cdecl = nil; + i2d_EC_PUBKEY_bio: function(bp: PBIO; eckey: PEC_KEY): TIdC_INT; cdecl = nil; + d2i_ECPrivateKey_bio: function(bp: PBIO; eckey: PPEC_KEY): EC_KEY; cdecl = nil; + i2d_ECPrivateKey_bio: function(bp: PBIO; eckey: PEC_KEY): TIdC_INT; cdecl = nil; + + d2i_PKCS8_bio: function(bp: PBIO; p8: PPX509_SIG): PX509_SIG; cdecl = nil; + i2d_PKCS8_bio: function(bp: PBIO; p8: PX509_SIG): TIdC_INT; cdecl = nil; + d2i_PKCS8_PRIV_KEY_INFO_bio: function(bp: PBIO; p8inf: PPPKCS8_PRIV_KEY_INFO): PPKCS8_PRIV_KEY_INFO; cdecl = nil; + i2d_PKCS8_PRIV_KEY_INFO_bio: function(bp: PBIO; p8inf: PPKCS8_PRIV_KEY_INFO): TIdC_INT; cdecl = nil; + i2d_PKCS8PrivateKeyInfo_bio: function(bp: PBIO; key: PEVP_PKEY): TIdC_INT; cdecl = nil; + i2d_PrivateKey_bio: function(bp: PBIO; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + d2i_PrivateKey_bio: function(bp: PBIO; a: PPEVP_PKEY): PEVP_PKEY; cdecl = nil; + i2d_PUBKEY_bio: function(bp: PBIO; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + d2i_PUBKEY_bio: function(bp: PBIO; a: PPEVP_PKEY): PEVP_PKEY; cdecl = nil; + + X509_dup: function(x509: PX509): PX509; cdecl = nil; + X509_ATTRIBUTE_dup: function(xa: PX509_ATTRIBUTE): PX509_ATTRIBUTE; cdecl = nil; + X509_EXTENSION_dup: function(ex: PX509_EXTENSION): PX509_EXTENSION; cdecl = nil; + X509_CRL_dup: function(crl: PX509_CRL): PX509_CRL; cdecl = nil; + X509_REVOKED_dup: function(rev: PX509_REVOKED): PX509_REVOKED; cdecl = nil; + X509_REQ_dup: function(req: PX509_REQ): PX509_REQ; cdecl = nil; + X509_ALGOR_dup: function(xn: PX509_ALGOR): PX509_ALGOR; cdecl = nil; + X509_ALGOR_set0: function(alg: PX509_ALGOR; aobj: PASN1_OBJECT; ptype: TIdC_INT; pval: Pointer): TIdC_INT; cdecl = nil; + X509_ALGOR_get0: procedure(const paobj: PPASN1_OBJECT; pptype: PIdC_INT; const ppval: PPointer; const algor: PX509_ALGOR); cdecl = nil; + X509_ALGOR_set_md: procedure(alg: PX509_ALGOR; const md: PEVP_MD); cdecl = nil; + X509_ALGOR_cmp: function(const a: PX509_ALGOR; const b: PX509_ALGOR): TIdC_INT; cdecl = nil; + + X509_NAME_dup: function(xn: PX509_NAME): PX509_NAME; cdecl = nil; + X509_NAME_ENTRY_dup: function(ne: PX509_NAME_ENTRY): PX509_NAME_ENTRY; cdecl = nil; + + X509_cmp_time: function(const s: PASN1_TIME; t: PIdC_TIMET): TIdC_INT; cdecl = nil; + X509_cmp_current_time: function(const s: PASN1_TIME): TIdC_INT; cdecl = nil; + X509_time_adj: function(s: PASN1_TIME; adj: TIdC_LONG; t: PIdC_TIMET): PASN1_TIME; cdecl = nil; + X509_time_adj_ex: function(s: PASN1_TIME; offset_day: TIdC_INT; offset_sec: TIdC_LONG; t: PIdC_TIMET): PASN1_TIME; cdecl = nil; + X509_gmtime_adj: function(s: PASN1_TIME; adj: TIdC_LONG): PASN1_TIME; cdecl = nil; + + X509_get_default_cert_area: function: PIdAnsiChar; cdecl = nil; + X509_get_default_cert_dir: function: PIdAnsiChar; cdecl = nil; + X509_get_default_cert_file: function: PIdAnsiChar; cdecl = nil; + X509_get_default_cert_dir_env: function: PIdAnsiChar; cdecl = nil; + X509_get_default_cert_file_env: function: PIdAnsiChar; cdecl = nil; + X509_get_default_private_dir: function: PIdAnsiChar; cdecl = nil; + + X509_to_X509_REQ: function(x: PX509; pkey: PEVP_PKEY; const md: PEVP_MD): PX509_REQ; cdecl = nil; + X509_REQ_to_X509: function(r: PX509_REQ; days: TIdC_INT; pkey: PEVP_PKEY): PX509; cdecl = nil; + + X509_ALGOR_new: function: PX509_ALGOR; cdecl = nil; + X509_ALGOR_free: procedure(v1: PX509_ALGOR); cdecl = nil; + d2i_X509_ALGOR: function(a: PPX509_ALGOR; const in_: PPByte; len: TIdC_LONG): PX509_ALGOR; cdecl = nil; + i2d_X509_ALGOR: function(a: PX509_ALGOR; out_: PPByte): TIdC_INT; cdecl = nil; + //DECLARE_ASN1_ENCODE_FUNCTIONS(X509_ALGORS, X509_ALGORS, X509_ALGORS) + X509_VAL_new: function: PX509_VAL; cdecl = nil; + X509_VAL_free: procedure(v1: PX509_VAL); cdecl = nil; + d2i_X509_VAL: function(a: PPX509_VAL; const in_: PPByte; len: TIdC_LONG): PX509_VAL; cdecl = nil; + i2d_X509_VAL: function(a: PX509_VAL; out_: PPByte): TIdC_INT; cdecl = nil; + + X509_PUBKEY_new: function: PX509_PUBKEY; cdecl = nil; + X509_PUBKEY_free: procedure(v1: PX509_PUBKEY); cdecl = nil; + d2i_X509_PUBKEY: function(a: PPX509_PUBKEY; const in_: PPByte; len: TIdC_LONG): PX509_PUBKEY; cdecl = nil; + i2d_X509_PUBKEY: function(a: PX509_PUBKEY; out_: PPByte): TIdC_INT; cdecl = nil; + + X509_PUBKEY_set: function(x: PPX509_PUBKEY; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + X509_PUBKEY_get0: function(key: PX509_PUBKEY): PEVP_PKEY; cdecl = nil; {introduced 1.1.0} + X509_PUBKEY_get: function(key: PX509_PUBKEY): PEVP_PKEY; cdecl = nil; +// function X509_get_pubkey_parameters(pkey: PEVP_PKEY; chain: P STACK_OF(X509)): TIdC_INT; + X509_get_pathlen: function(x: PX509): TIdC_LONG; cdecl = nil; {introduced 1.1.0} + i2d_PUBKEY: function(a: PEVP_PKEY; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_PUBKEY: function(a: PPEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY; cdecl = nil; + + i2d_RSA_PUBKEY: function(a: PRSA; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_RSA_PUBKEY: function(a: PPRSA; const pp: PPByte; length: TIdC_LONG): PRSA; cdecl = nil; + + i2d_DSA_PUBKEY: function(a: PDSA; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_DSA_PUBKEY: function(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA; cdecl = nil; + + i2d_EC_PUBKEY: function(a: EC_KEY; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_EC_PUBKEY: function(a: PPEC_KEY; const pp: PPByte; length: TIdC_LONG): PEC_KEY; cdecl = nil; + + X509_SIG_new: function: PX509_SIG; cdecl = nil; + X509_SIG_free: procedure(v1: PX509_SIG); cdecl = nil; + d2i_X509_SIG: function(a: PPX509_SIG; const in_: PPByte; len: TIdC_LONG): PX509_SIG; cdecl = nil; + i2d_X509_SIG: function(a: PX509_SIG; out_: PPByte): TIdC_INT; cdecl = nil; + X509_SIG_get0: procedure(const sig: PX509_SIG; const palg: PPX509_ALGOR; const pdigest: PPASN1_OCTET_STRING); cdecl = nil; {introduced 1.1.0} + X509_SIG_getm: procedure(sig: X509_SIG; palg: PPX509_ALGOR; pdigest: PPASN1_OCTET_STRING); cdecl = nil; {introduced 1.1.0} + + X509_REQ_INFO_new: function: PX509_REQ_INFO; cdecl = nil; + X509_REQ_INFO_free: procedure(v1: PX509_REQ_INFO); cdecl = nil; + d2i_X509_REQ_INFO: function(a: PPX509_REQ_INFO; const in_: PPByte; len: TIdC_LONG): PX509_REQ_INFO; cdecl = nil; + i2d_X509_REQ_INFO: function(a: PX509_REQ_INFO; out_: PPByte): TIdC_INT; cdecl = nil; + + X509_REQ_new: function: PX509_REQ; cdecl = nil; + X509_REQ_free: procedure(v1: PX509_REQ); cdecl = nil; + d2i_X509_REQ: function(a: PPX509_REQ; const in_: PPByte; len: TIdC_LONG): PX509_REQ; cdecl = nil; + i2d_X509_REQ: function(a: PX509_REQ; out_: PPByte): TIdC_INT; cdecl = nil; + + X509_ATTRIBUTE_new: function: PX509_ATTRIBUTE; cdecl = nil; + X509_ATTRIBUTE_free: procedure(v1: PX509_ATTRIBUTE); cdecl = nil; + d2i_X509_ATTRIBUTE: function(a: PPX509_ATTRIBUTE; const in_: PPByte; len: TIdC_LONG): PX509_ATTRIBUTE; cdecl = nil; + i2d_X509_ATTRIBUTE: function(a: PX509_ATTRIBUTE; out_: PPByte): TIdC_INT; cdecl = nil; + X509_ATTRIBUTE_create: function(nid: TIdC_INT; trtype: TIdC_INT; value: Pointer): PX509_ATTRIBUTE; cdecl = nil; + + X509_EXTENSION_new: function: PX509_EXTENSION; cdecl = nil; + X509_EXTENSION_free: procedure(v1: PX509_EXTENSION); cdecl = nil; + d2i_X509_EXTENSION: function(a: PPX509_EXTENSION; const in_: PPByte; len: TIdC_LONG): PX509_EXTENSION; cdecl = nil; + i2d_X509_EXTENSION: function(a: PX509_EXTENSION; out_: PPByte): TIdC_INT; cdecl = nil; + //DECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS) + + X509_NAME_ENTRY_new: function: PX509_NAME_ENTRY; cdecl = nil; + X509_NAME_ENTRY_free: procedure(v1: PX509_NAME_ENTRY); cdecl = nil; + d2i_X509_NAME_ENTRY: function(a: PPX509_NAME_ENTRY; const in_: PPByte; len: TIdC_LONG): PX509_NAME_ENTRY; cdecl = nil; + i2d_X509_NAME_ENTRY: function(a: PX509_NAME_ENTRY; out_: PPByte): TIdC_INT; cdecl = nil; + + X509_NAME_new: function: PX509_NAME; cdecl = nil; + X509_NAME_free: procedure(v1: PX509_NAME); cdecl = nil; + d2i_X509_NAME: function(a: PPX509_NAME; const in_: PPByte; len: TIdC_LONG): PX509_NAME; cdecl = nil; + i2d_X509_NAME: function(a: PX509_NAME; out_: PPByte): TIdC_INT; cdecl = nil; + + X509_NAME_set: function(xn: PPX509_NAME; name: PX509_NAME): TIdC_INT; cdecl = nil; + + //DECLARE_ASN1_FUNCTIONS(X509_CINF) + + X509_new: function: PX509; cdecl = nil; + X509_free: procedure(v1: PX509); cdecl = nil; + d2i_X509: function(a: PPX509; const in_: PPByte; len: TIdC_LONG): PX509; cdecl = nil; + i2d_X509: function(a: PX509; out_: PPByte): TIdC_INT; cdecl = nil; + + //DECLARE_ASN1_FUNCTIONS(X509_CERT_AUX) + // + //#define X509_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509, l, p, newf, dupf, freef) + X509_set_ex_data: function(r: PX509; idx: TIdC_INT; arg: Pointer): TIdC_INT; cdecl = nil; + X509_get_ex_data: function(r: PX509; idx: TIdC_INT): Pointer; cdecl = nil; + i2d_X509_AUX: function(a: PX509; pp: PPByte): TIdC_INT; cdecl = nil; + d2i_X509_AUX: function(a: PPX509; const pp: PPByte; length: TIdC_LONG): PX509; cdecl = nil; + + i2d_re_X509_tbs: function(x: PX509; pp: PPByte): TIdC_INT; cdecl = nil; + + X509_SIG_INFO_get: function(const siginf: PX509_SIG_INFO; mdnid: PIdC_INT; pknid: PIdC_INT; secbits: PIdC_INT; flags: PIdC_UINT32): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_SIG_INFO_set: procedure(siginf: PX509_SIG_INFO; mdnid: TIdC_INT; pknid: TIdC_INT; secbits: TIdC_INT; flags: TIdC_UINT32); cdecl = nil; {introduced 1.1.0} + + X509_get_signature_info: function(x: PX509; mdnid: PIdC_INT; pknid: PIdC_INT; secbits: PIdC_INT; flags: PIdC_UINT32): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + X509_get0_signature: procedure(var sig: PASN1_BIT_STRING; var alg: PX509_ALGOR; const x: PX509); cdecl = nil; {introduced 1.1.0} + X509_get_signature_nid: function(const x: PX509): TIdC_INT; cdecl = nil; + + X509_trusted: function(const x: PX509): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_alias_set1: function(x: PX509; const name: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + X509_keyid_set1: function(x: PX509; const id: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + X509_alias_get0: function(x: PX509; len: PIdC_INT): PByte; cdecl = nil; + X509_keyid_get0: function(x: PX509; len: PIdC_INT): PByte; cdecl = nil; +// TIdC_INT (*X509_TRUST_set_default(TIdC_INT (*trust) (TIdC_INT, X509 *, TIdC_INT))) (TIdC_INT, X509 *, +// TIdC_INT); + X509_TRUST_set: function(t: PIdC_INT; trust: TIdC_INT): TIdC_INT; cdecl = nil; + X509_add1_trust_object: function(x: PX509; const obj: PASN1_OBJECT): TIdC_INT; cdecl = nil; + X509_add1_reject_object: function(x: PX509; const obj: PASN1_OBJECT): TIdC_INT; cdecl = nil; + X509_trust_clear: procedure(x: PX509); cdecl = nil; + X509_reject_clear: procedure(x: PX509); cdecl = nil; + + //STACK_OF(ASN1_OBJECT) *X509_get0_trust_objects(X509 *x); + //STACK_OF(ASN1_OBJECT) *X509_get0_reject_objects(X509 *x); + // + X509_REVOKED_new: function: PX509_REVOKED; cdecl = nil; + X509_REVOKED_free: procedure(v1: PX509_REVOKED); cdecl = nil; + d2i_X509_REVOKED: function(a: PPX509_REVOKED; const in_: PPByte; len: TIdC_LONG): PX509_REVOKED; cdecl = nil; + i2d_X509_REVOKED: function(a: PX509_REVOKED; out_: PPByte): TIdC_INT; cdecl = nil; + X509_CRL_INFO_new: function: PX509_CRL_INFO; cdecl = nil; + X509_CRL_INFO_free: procedure(v1: PX509_CRL_INFO); cdecl = nil; + d2i_X509_CRL_INFO: function(a: PPX509_CRL_INFO; const in_: PPByte; len: TIdC_LONG): PX509_CRL_INFO; cdecl = nil; + i2d_X509_CRL_INFO: function(a: PX509_CRL_INFO; out_: PPByte): TIdC_INT; cdecl = nil; + X509_CRL_new: function: PX509_CRL; cdecl = nil; + X509_CRL_free: procedure(v1: PX509_CRL); cdecl = nil; + d2i_X509_CRL: function(a: PPX509_CRL; const in_: PPByte; len: TIdC_LONG): PX509_CRL; cdecl = nil; + i2d_X509_CRL: function(a: PX509_CRL; out_: PPByte): TIdC_INT; cdecl = nil; + + X509_CRL_add0_revoked: function(crl: PX509_CRL; rev: PX509_REVOKED): TIdC_INT; cdecl = nil; + X509_CRL_get0_by_serial: function(crl: PX509_CRL; ret: PPX509_REVOKED; serial: PASN1_INTEGER): TIdC_INT; cdecl = nil; + X509_CRL_get0_by_cert: function(crl: PX509_CRL; ret: PPX509_REVOKED; x: PX509): TIdC_INT; cdecl = nil; + + X509_PKEY_new: function: PX509_PKEY; cdecl = nil; + X509_PKEY_free: procedure(a: PX509_PKEY); cdecl = nil; + + //DECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKI) + //DECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKAC) + //DECLARE_ASN1_FUNCTIONS(NETSCAPE_CERT_SEQUENCE) + + X509_INFO_new: function: PX509_INFO; cdecl = nil; + X509_INFO_free: procedure(a: PX509_INFO); cdecl = nil; + X509_NAME_oneline: function(const a: PX509_NAME; buf: PIdAnsiChar; size: TIdC_INT): PIdAnsiChar; cdecl = nil; + +// function ASN1_verify(i2d: Pi2d_of_void; algor1: PX509_ALGOR; +// signature: PASN1_BIT_STRING; data: PIdAnsiChar; pkey: PEVP_PKEY): TIdC_INT; + +// TIdC_INT ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data, +// unsigned char *md, unsigned TIdC_INT *len); + +// TIdC_INT ASN1_sign(i2d_of_void *i2d, X509_ALGOR *algor1, +// X509_ALGOR *algor2, ASN1_BIT_STRING *signature, +// char *data, EVP_PKEY *pkey, const EVP_MD *type); + + ASN1_item_digest: function(const it: PASN1_ITEM; const type_: PEVP_MD; data: Pointer; md: PByte; len: PIdC_UINT): TIdC_INT; cdecl = nil; + + ASN1_item_verify: function(const it: PASN1_ITEM; algor1: PX509_ALGOR; signature: PASN1_BIT_STRING; data: Pointer; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + + ASN1_item_sign: function(const it: PASN1_ITEM; algor1: PX509_ALGOR; algor2: PX509_ALGOR; signature: PASN1_BIT_STRING; data: Pointer; pkey: PEVP_PKEY; const type_: PEVP_MD): TIdC_INT; cdecl = nil; + ASN1_item_sign_ctx: function(const it: PASN1_ITEM; algor1: PX509_ALGOR; algor2: PX509_ALGOR; signature: PASN1_BIT_STRING; asn: Pointer; ctx: PEVP_MD_CTX): TIdC_INT; cdecl = nil; + + X509_get_version: function(const x: PX509): TIdC_LONG; cdecl = nil; {introduced 1.1.0} + X509_set_version: function(x: PX509; version: TIdC_LONG): TIdC_INT; cdecl = nil; + X509_set_serialNumber: function(x: PX509; serial: PASN1_INTEGER): TIdC_INT; cdecl = nil; + X509_get_serialNumber: function(x: PX509): PASN1_INTEGER; cdecl = nil; + X509_get0_serialNumber: function(const x: PX509): PASN1_INTEGER; cdecl = nil; {introduced 1.1.0} + X509_set_issuer_name: function(x: PX509; name: PX509_NAME): TIdC_INT; cdecl = nil; + X509_get_issuer_name: function(const a: PX509): PX509_NAME; cdecl = nil; + X509_set_subject_name: function(x: PX509; name: PX509_NAME): TIdC_INT; cdecl = nil; + X509_get_subject_name: function(const a: PX509): PX509_NAME; cdecl = nil; + X509_get0_notBefore: function(const x: PX509): PASN1_TIME; cdecl = nil; {introduced 1.1.0} + X509_getm_notBefore: function(const x: PX509): PASN1_TIME; cdecl = nil; {introduced 1.1.0} + X509_set1_notBefore: function(x: PX509; const tm: PASN1_TIME): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_get0_notAfter: function(const x: PX509): PASN1_TIME; cdecl = nil; {introduced 1.1.0} + X509_getm_notAfter: function(const x: PX509): PASN1_TIME; cdecl = nil; {introduced 1.1.0} + X509_set1_notAfter: function(x: PX509; const tm: PASN1_TIME): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_set_pubkey: function(x: PX509; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + X509_up_ref: function(x: PX509): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_get_signature_type: function(const x: PX509): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + (* + * This one is only used so that a binary form can output, as in + * i2d_X509_PUBKEY(X509_get_X509_PUBKEY(x), &buf) + *) + X509_get_X509_PUBKEY: function(const x: PX509): PX509_PUBKEY; cdecl = nil; {introduced 1.1.0} +// const STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x); + X509_get0_uids: procedure(const x: PX509; const piuid: PPASN1_BIT_STRING; const psuid: PPASN1_BIT_STRING); cdecl = nil; {introduced 1.1.0} + X509_get0_tbs_sigalg: function(const x: PX509): PX509_ALGOR; cdecl = nil; {introduced 1.1.0} + + X509_get0_pubkey: function(const x: PX509): PEVP_PKEY; cdecl = nil; {introduced 1.1.0} + X509_get_pubkey: function(x: PX509): PEVP_PKEY; cdecl = nil; + X509_get0_pubkey_bitstr: function(const x: PX509): PASN1_BIT_STRING; cdecl = nil; + X509_certificate_type: function(const x: PX509; const pubkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + + X509_REQ_get_version: function(const req: PX509_REQ): TIdC_LONG; cdecl = nil; {introduced 1.1.0} + X509_REQ_set_version: function(x: PX509_REQ; version: TIdC_LONG): TIdC_INT; cdecl = nil; + X509_REQ_get_subject_name: function(const req: PX509_REQ): PX509_NAME; cdecl = nil; {introduced 1.1.0} + X509_REQ_set_subject_name: function(req: PX509_REQ; name: PX509_NAME): TIdC_INT; cdecl = nil; + X509_REQ_get0_signature: procedure(const req: PX509_REQ; const psig: PPASN1_BIT_STRING; const palg: PPX509_ALGOR); cdecl = nil; {introduced 1.1.0} + X509_REQ_get_signature_nid: function(const req: PX509_REQ): TIdC_INT; cdecl = nil; {introduced 1.1.0} + i2d_re_X509_REQ_tbs: function(req: PX509_REQ; pp: PPByte): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_REQ_set_pubkey: function(x: PX509_REQ; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + X509_REQ_get_pubkey: function(req: PX509_REQ): PEVP_PKEY; cdecl = nil; + X509_REQ_get0_pubkey: function(req: PX509_REQ): PEVP_PKEY; cdecl = nil; {introduced 1.1.0} + X509_REQ_get_X509_PUBKEY: function(req: PX509_REQ): PX509_PUBKEY; cdecl = nil; {introduced 1.1.0} + X509_REQ_extension_nid: function(nid: TIdC_INT): TIdC_INT; cdecl = nil; + X509_REQ_get_extension_nids: function: PIdC_INT; cdecl = nil; + X509_REQ_set_extension_nids: procedure(nids: PIdC_INT); cdecl = nil; +// STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req); + //TIdC_INT X509_REQ_add_extensions_nid(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts, + // TIdC_INT nid); + //TIdC_INT X509_REQ_add_extensions(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts); + X509_REQ_get_attr_count: function(const req: PX509_REQ): TIdC_INT; cdecl = nil; + X509_REQ_get_attr_by_NID: function(const req: PX509_REQ; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_REQ_get_attr_by_OBJ: function(const req: PX509_REQ; const obj: ASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_REQ_get_attr: function(const req: PX509_REQ; loc: TIdC_INT): PX509_ATTRIBUTE; cdecl = nil; + X509_REQ_delete_attr: function(req: PX509_REQ; loc: TIdC_INT): PX509_ATTRIBUTE; cdecl = nil; + X509_REQ_add1_attr: function(req: PX509_REQ; attr: PX509_ATTRIBUTE): TIdC_INT; cdecl = nil; + X509_REQ_add1_attr_by_OBJ: function(req: PX509_REQ; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + X509_REQ_add1_attr_by_NID: function(req: PX509_REQ; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + X509_REQ_add1_attr_by_txt: function(req: PX509_REQ; const attrname: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + + X509_CRL_set_version: function(x: PX509_CRL; version: TIdC_LONG): TIdC_INT; cdecl = nil; + X509_CRL_set_issuer_name: function(x: PX509_CRL; name: PX509_NAME): TIdC_INT; cdecl = nil; + X509_CRL_set1_lastUpdate: function(x: PX509_CRL; const tm: PASN1_TIME): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_CRL_set1_nextUpdate: function(x: PX509_CRL; const tm: PASN1_TIME): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_CRL_sort: function(crl: PX509_CRL): TIdC_INT; cdecl = nil; + X509_CRL_up_ref: function(crl: PX509_CRL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + X509_CRL_get_version: function(const crl: PX509_CRL): TIdC_LONG; cdecl = nil; {introduced 1.1.0} + X509_CRL_get0_lastUpdate: function(const crl: PX509_CRL): PASN1_TIME; cdecl = nil; {introduced 1.1.0} + X509_CRL_get0_nextUpdate: function(const crl: PX509_CRL): PASN1_TIME; cdecl = nil; {introduced 1.1.0} + X509_CRL_get_issuer: function(const crl: PX509_CRL): PX509_NAME; cdecl = nil; {introduced 1.1.0} + //const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl); + //STACK_OF(X509_REVOKED) *X509_CRL_get_REVOKED(X509_CRL *crl); + X509_CRL_get0_signature: procedure(const crl: PX509_CRL; const psig: PPASN1_BIT_STRING; const palg: PPX509_ALGOR); cdecl = nil; {introduced 1.1.0} + X509_CRL_get_signature_nid: function(const crl: PX509_CRL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + i2d_re_X509_CRL_tbs: function(req: PX509_CRL; pp: PPByte): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + X509_REVOKED_get0_serialNumber: function(const x: PX509_REVOKED): PASN1_INTEGER; cdecl = nil; {introduced 1.1.0} + X509_REVOKED_set_serialNumber: function(x: PX509_REVOKED; serial: PASN1_INTEGER): TIdC_INT; cdecl = nil; + X509_REVOKED_get0_revocationDate: function(const x: PX509_REVOKED): PASN1_TIME; cdecl = nil; {introduced 1.1.0} + X509_REVOKED_set_revocationDate: function(r: PX509_REVOKED; tm: PASN1_TIME): TIdC_INT; cdecl = nil; + //const STACK_OF(X509_EXTENSION) * + //X509_REVOKED_get0_extensions(const X509_REVOKED *r); + + X509_CRL_diff: function(base: PX509_CRL; newer: PX509_CRL; skey: PEVP_PKEY; const md: PEVP_MD; flags: TIdC_UINT): PX509_CRL; cdecl = nil; + + X509_REQ_check_private_key: function(x509: PX509_REQ; pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + + X509_check_private_key: function(const x509: PX509; const pkey: PEVP_PKEY): TIdC_INT; cdecl = nil; + //TIdC_INT X509_chain_check_suiteb(TIdC_INT *perror_depth, + // X509 *x, STACK_OF(X509) *chain, + // unsigned TIdC_LONG flags); + X509_CRL_check_suiteb: function(crl: PX509_CRL; pk: PEVP_PKEY; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + //STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain); + + X509_issuer_and_serial_cmp: function(const a: PX509; const b: PX509): TIdC_INT; cdecl = nil; + X509_issuer_and_serial_hash: function(a: PX509): TIdC_ULONG; cdecl = nil; + + X509_issuer_name_cmp: function(const a: PX509; const b: PX509): TIdC_INT; cdecl = nil; + X509_issuer_name_hash: function(a: PX509): TIdC_uLONG; cdecl = nil; + + X509_subject_name_cmp: function(const a: PX509; const b: PX509): TIdC_INT; cdecl = nil; + X509_subject_name_hash: function(x: PX509): TIdC_ULONG; cdecl = nil; + + X509_cmp: function(const a: PX509; const b: PX509): TIdC_INT; cdecl = nil; + X509_NAME_cmp: function(const a: PX509_NAME; const b: PX509_NAME): TIdC_INT; cdecl = nil; + X509_NAME_hash: function(x: PX509_NAME): TIdC_ULONG; cdecl = nil; {removed 3.0.0} + X509_NAME_hash_old: function(x: PX509_NAME): TIdC_ULONG; cdecl = nil; + + X509_CRL_cmp: function(const a: PX509_CRL; const b: PX509_CRL): TIdC_INT; cdecl = nil; + X509_CRL_match: function(const a: PX509_CRL; const b: PX509_CRL): TIdC_INT; cdecl = nil; + X509_aux_print: function(out_: PBIO; x: PX509; indent: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + //# ifndef OPENSSL_NO_STDIO + //TIdC_INT X509_print_ex_fp(FILE *bp, X509 *x, unsigned TIdC_LONG nmflag, + // unsigned TIdC_LONG cflag); + //TIdC_INT X509_print_fp(FILE *bp, X509 *x); + //TIdC_INT X509_CRL_print_fp(FILE *bp, X509_CRL *x); + //TIdC_INT X509_REQ_print_fp(FILE *bp, X509_REQ *req); + //TIdC_INT X509_NAME_print_ex_fp(FILE *fp, const X509_NAME *nm, TIdC_INT indent, + // unsigned TIdC_LONG flags); + //# endif + + X509_NAME_print: function(bp: PBIO; const name: PX509_NAME; obase: TIdC_INT): TIdC_INT; cdecl = nil; + X509_NAME_print_ex: function(out_: PBIO; const nm: PX509_NAME; indent: TIdC_INT; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + X509_print_ex: function(bp: PBIO; x: PX509; nmflag: TIdC_ULONG; cflag: TIdC_ULONG): TIdC_INT; cdecl = nil; + X509_print: function(bp: PBIO; x: PX509): TIdC_INT; cdecl = nil; + X509_ocspid_print: function(bp: PBIO; x: PX509): TIdC_INT; cdecl = nil; + X509_CRL_print_ex: function(out_: PBIO; x: PX509_CRL; nmflag: TIdC_ULONG): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_CRL_print: function(bp: PBIO; x: PX509_CRL): TIdC_INT; cdecl = nil; + X509_REQ_print_ex: function(bp: PBIO; x: PX509_REQ; nmflag: TIdC_ULONG; cflag: TIdC_ULONG): TIdC_INT; cdecl = nil; + X509_REQ_print: function(bp: PBIO; req: PX509_REQ): TIdC_INT; cdecl = nil; + + X509_NAME_entry_count: function(const name: PX509_NAME): TIdC_INT; cdecl = nil; + X509_NAME_get_text_by_NID: function(name: PX509_NAME; nid: TIdC_INT; buf: PIdAnsiChar; len: TIdC_INT): TIdC_INT; cdecl = nil; + X509_NAME_get_text_by_OBJ: function(name: PX509_NAME; const obj: PASN1_OBJECT; buf: PIdAnsiChar; len: TIdC_INT): TIdC_INT; cdecl = nil; + + (* + * NOTE: you should be passing -1, not 0 as lastpos. The functions that use + * lastpos, search after that position on. + *) + X509_NAME_get_index_by_NID: function(name: PX509_NAME; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_NAME_get_index_by_OBJ: function(name: PX509_NAME; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_NAME_get_entry: function(const name: PX509_NAME; loc: TIdC_INT): PX509_NAME_ENTRY; cdecl = nil; + X509_NAME_delete_entry: function(name: PX509_NAME; loc: TIdC_INT): pX509_NAME_ENTRY; cdecl = nil; + X509_NAME_add_entry: function(name: PX509_NAME; const ne: PX509_NAME_ENTRY; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT; cdecl = nil; + X509_NAME_add_entry_by_OBJ: function(name: PX509_NAME; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT; cdecl = nil; + X509_NAME_add_entry_by_NID: function(name: PX509_NAME; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT; cdecl = nil; + X509_NAME_ENTRY_create_by_txt: function(ne: PPX509_NAME_ENTRY; const field: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_NAME_ENTRY; cdecl = nil; + X509_NAME_ENTRY_create_by_NID: function(ne: PPX509_NAME_ENTRY; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_NAME_ENTRY; cdecl = nil; + X509_NAME_add_entry_by_txt: function(name: PX509_NAME; const field: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT; cdecl = nil; + X509_NAME_ENTRY_create_by_OBJ: function(ne: PPX509_NAME_ENTRY; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_NAME_ENTRY; cdecl = nil; + X509_NAME_ENTRY_set_object: function(ne: PX509_NAME_ENTRY; const obj: PASN1_OBJECT): TIdC_INT; cdecl = nil; + X509_NAME_ENTRY_set_data: function(ne: PX509_NAME_ENTRY; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + X509_NAME_ENTRY_get_object: function(const ne: PX509_NAME_ENTRY): PASN1_OBJECT; cdecl = nil; + X509_NAME_ENTRY_get_data: function(const ne: PX509_NAME_ENTRY): PASN1_STRING; cdecl = nil; + X509_NAME_ENTRY_set: function(const ne: PX509_NAME_ENTRY): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + X509_NAME_get0_der: function(nm: PX509_NAME; const pder: PPByte; pderlen: PIdC_SIZET): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + //TIdC_INT X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x); + //TIdC_INT X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, + // TIdC_INT nid, TIdC_INT lastpos); + //TIdC_INT X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x, + // const ASN1_OBJECT *obj, TIdC_INT lastpos); + //TIdC_INT X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x, + // TIdC_INT crit, TIdC_INT lastpos); + //X509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, TIdC_INT loc); + //X509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, TIdC_INT loc); + //STACK_OF(X509_EXTENSION) *X509v3_add_ext(STACK_OF(X509_EXTENSION) **x, + // X509_EXTENSION *ex, TIdC_INT loc); + + X509_get_ext_count: function(const x: PX509): TIdC_INT; cdecl = nil; + X509_get_ext_by_NID: function(const x: PX509; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_get_ext_by_OBJ: function(const x: PX509; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_get_ext_by_critical: function(const x: PX509; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_get_ext: function(const x: PX509; loc: TIdC_INT): PX509_EXTENSION; cdecl = nil; + X509_delete_ext: function(x: PX509; loc: TIdC_INT): PX509_EXTENSION; cdecl = nil; + X509_add_ext: function(x: PX509; ex: PX509_EXTENSION; loc: TIdC_INT): TIdC_INT; cdecl = nil; + X509_get_ext_d2i: function(const x: PX509; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer; cdecl = nil; + X509_add1_ext_i2d: function(x: PX509; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + + X509_CRL_get_ext_count: function(const x: PX509_CRL): TIdC_INT; cdecl = nil; + X509_CRL_get_ext_by_NID: function(const x: PX509_CRL; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_CRL_get_ext_by_OBJ: function(const x: X509_CRL; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_CRL_get_ext_by_critical: function(const x: PX509_CRL; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_CRL_get_ext: function(const x: PX509_CRL; loc: TIdC_INT): PX509_EXTENSION; cdecl = nil; + X509_CRL_delete_ext: function(x: PX509_CRL; loc: TIdC_INT): PX509_EXTENSION; cdecl = nil; + X509_CRL_add_ext: function(x: PX509_CRL; ex: PX509_EXTENSION; loc: TIdC_INT): TIdC_INT; cdecl = nil; + X509_CRL_get_ext_d2i: function(const x: PX509_CRL; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer; cdecl = nil; + X509_CRL_add1_ext_i2d: function(x: PX509_CRL; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + + X509_REVOKED_get_ext_count: function(const x: PX509_REVOKED): TIdC_INT; cdecl = nil; + X509_REVOKED_get_ext_by_NID: function(const x: PX509_REVOKED; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_REVOKED_get_ext_by_OBJ: function(const x: PX509_REVOKED; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_REVOKED_get_ext_by_critical: function(const x: PX509_REVOKED; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + X509_REVOKED_get_ext: function(const x: PX509_REVOKED; loc: TIdC_INT): PX509_EXTENSION; cdecl = nil; + X509_REVOKED_delete_ext: function(x: PX509_REVOKED; loc: TIdC_INT): PX509_EXTENSION; cdecl = nil; + X509_REVOKED_add_ext: function(x: PX509_REVOKED; ex: PX509_EXTENSION; loc: TIdC_INT): TIdC_INT; cdecl = nil; + X509_REVOKED_get_ext_d2i: function(const x: PX509_REVOKED; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer; cdecl = nil; + X509_REVOKED_add1_ext_i2d: function(x: PX509_REVOKED; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + + X509_EXTENSION_create_by_NID: function(ex: PPX509_EXTENSION; nid: TIdC_INT; crit: TIdC_INT; data: PASN1_OCTET_STRING): PX509_EXTENSION; cdecl = nil; + X509_EXTENSION_create_by_OBJ: function(ex: PPX509_EXTENSION; const obj: PASN1_OBJECT; crit: TIdC_INT; data: PASN1_OCTET_STRING): PX509_EXTENSION; cdecl = nil; + X509_EXTENSION_set_object: function(ex: PX509_EXTENSION; const obj: PASN1_OBJECT): TIdC_INT; cdecl = nil; + X509_EXTENSION_set_critical: function(ex: PX509_EXTENSION; crit: TIdC_INT): TIdC_INT; cdecl = nil; + X509_EXTENSION_set_data: function(ex: PX509_EXTENSION; data: PASN1_OCTET_STRING): TIdC_INT; cdecl = nil; + X509_EXTENSION_get_object: function(ex: PX509_EXTENSION): PASN1_OBJECT; cdecl = nil; + X509_EXTENSION_get_data: function(ne: PX509_EXTENSION): PASN1_OCTET_STRING; cdecl = nil; + X509_EXTENSION_get_critical: function(const ex: PX509_EXTENSION): TIdC_INT; cdecl = nil; + + //TIdC_INT X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x); + //TIdC_INT X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x, TIdC_INT nid, + // TIdC_INT lastpos); + //TIdC_INT X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk, + // const ASN1_OBJECT *obj, TIdC_INT lastpos); + //X509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, TIdC_INT loc); + //X509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, TIdC_INT loc); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x, + // X509_ATTRIBUTE *attr); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE) + // **x, const ASN1_OBJECT *obj, + // TIdC_INT type, + // const unsigned char *bytes, + // TIdC_INT len); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE) + // **x, TIdC_INT nid, TIdC_INT type, + // const unsigned char *bytes, + // TIdC_INT len); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE) + // **x, const PIdAnsiChar *attrname, + // TIdC_INT type, + // const unsigned char *bytes, + // TIdC_INT len); + //void *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x, + // const ASN1_OBJECT *obj, TIdC_INT lastpos, TIdC_INT type); + X509_ATTRIBUTE_create_by_NID: function(attr: PPX509_ATTRIBUTE; nid: TIdC_INT; atrtype: TIdC_INT; const data: Pointer; len: TIdC_INT): PX509_ATTRIBUTE; cdecl = nil; + X509_ATTRIBUTE_create_by_OBJ: function(attr: PPX509_ATTRIBUTE; const obj: PASN1_OBJECT; atrtype: TIdC_INT; const data: Pointer; len: TIdC_INT): PX509_ATTRIBUTE; cdecl = nil; + X509_ATTRIBUTE_create_by_txt: function(attr: PPX509_ATTRIBUTE; const atrname: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_ATTRIBUTE; cdecl = nil; + X509_ATTRIBUTE_set1_object: function(attr: PX509_ATTRIBUTE; const obj: PASN1_OBJECT): TIdC_INT; cdecl = nil; + X509_ATTRIBUTE_set1_data: function(attr: PX509_ATTRIBUTE; attrtype: TIdC_INT; const data: Pointer; len: TIdC_INT): TIdC_INT; cdecl = nil; + X509_ATTRIBUTE_get0_data: function(attr: PX509_ATTRIBUTE; idx: TIdC_INT; atrtype: TIdC_INT; data: Pointer): Pointer; cdecl = nil; + X509_ATTRIBUTE_count: function(const attr: PX509_ATTRIBUTE): TIdC_INT; cdecl = nil; + X509_ATTRIBUTE_get0_object: function(attr: PX509_ATTRIBUTE): PASN1_OBJECT; cdecl = nil; + X509_ATTRIBUTE_get0_type: function(attr: PX509_ATTRIBUTE; idx: TIdC_INT): PASN1_TYPE; cdecl = nil; + + EVP_PKEY_get_attr_count: function(const key: PEVP_PKEY): TIdC_INT; cdecl = nil; + EVP_PKEY_get_attr_by_NID: function(const key: PEVP_PKEY; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_PKEY_get_attr_by_OBJ: function(const key: PEVP_PKEY; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_PKEY_get_attr: function(const key: PEVP_PKEY; loc: TIdC_INT): PX509_ATTRIBUTE; cdecl = nil; + EVP_PKEY_delete_attr: function(key: PEVP_PKEY; loc: TIdC_INT): PX509_ATTRIBUTE; cdecl = nil; + EVP_PKEY_add1_attr: function(key: PEVP_PKEY; attr: PX509_ATTRIBUTE): TIdC_INT; cdecl = nil; + EVP_PKEY_add1_attr_by_OBJ: function(key: PEVP_PKEY; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_PKEY_add1_attr_by_NID: function(key: PEVP_PKEY; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + EVP_PKEY_add1_attr_by_txt: function(key: PEVP_PKEY; const attrname: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; + + X509_verify_cert: function(ctx: PX509_STORE_CTX): TIdC_INT; cdecl = nil; + + (* lookup a cert from a X509 STACK *) +// function X509_find_by_issuer_and_serial(sk: P STACK_OF(X509); name: PX509_NAME; serial: PASN1_INTEGER): PX509; +// X509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name); + + //DECLARE_ASN1_FUNCTIONS(PBEPARAM) + //DECLARE_ASN1_FUNCTIONS(PBE2PARAM) + //DECLARE_ASN1_FUNCTIONS(PBKDF2PARAM) + //#ifndef OPENSSL_NO_SCRYPT + //DECLARE_ASN1_FUNCTIONS(SCRYPT_PARAMS) + //#endif + + PKCS5_pbe_set0_algor: function(algor: PX509_ALGOR; alg: TIdC_INT; iter: TIdC_INT; const salt: PByte; saltlen: TIdC_INT): TIdC_INT; cdecl = nil; + + PKCS5_pbe_set: function(alg: TIdC_INT; iter: TIdC_INT; const salt: PByte; saltlen: TIdC_INT): PX509_ALGOR; cdecl = nil; + PKCS5_pbe2_set: function(const cipher: PEVP_CIPHER; iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT): PX509_ALGOR; cdecl = nil; + PKCS5_pbe2_set_iv: function(const cipher: PEVP_CIPHER; iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT; aiv: PByte; prf_nid: TIdC_INT): PX509_ALGOR; cdecl = nil; + + PKCS5_pbe2_set_scrypt: function(const cipher: PEVP_CIPHER; const salt: PByte; saltlen: TIdC_INT; aiv: PByte; N: TIdC_UINT64; r: TIdC_UINT64; p: TIdC_UINT64): PX509_ALGOR; cdecl = nil; {introduced 1.1.0} + + PKCS5_pbkdf2_set: function(iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT; prf_nid: TIdC_INT; keylen: TIdC_INT): PX509_ALGOR; cdecl = nil; + + (* PKCS#8 utilities *) + + //DECLARE_ASN1_FUNCTIONS(PKCS8_PRIV_KEY_INFO) + + EVP_PKCS82PKEY: function(const p8: PPKCS8_PRIV_KEY_INFO): PEVP_PKEY; cdecl = nil; + EVP_PKEY2PKCS8: function(pkey: PEVP_PKEY): PKCS8_PRIV_KEY_INFO; cdecl = nil; + + PKCS8_pkey_set0: function(priv: PPKCS8_PRIV_KEY_INFO; aobj: PASN1_OBJECT; version: TIdC_INT; ptype: TIdC_INT; pval: Pointer; penc: PByte; penclen: TIdC_INT): TIdC_INT; cdecl = nil; + PKCS8_pkey_get0: function(const ppkalg: PPASN1_OBJECT; const pk: PPByte; ppklen: PIdC_INT; const pa: PPX509_ALGOR; const p8: PPKCS8_PRIV_KEY_INFO): TIdC_INT; cdecl = nil; + + //const STACK_OF(X509_ATTRIBUTE) * + //PKCS8_pkey_get0_attrs(const PKCS8_PRIV_KEY_INFO *p8); + PKCS8_pkey_add1_attr_by_NID: function(p8: PPKCS8_PRIV_KEY_INFO; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + X509_PUBKEY_set0_param: function(pub: PX509_PUBKEY; aobj: PASN1_OBJECT; ptype: TIdC_INT; pval: Pointer; penc: PByte; penclen: TIdC_INT): TIdC_INT; cdecl = nil; + X509_PUBKEY_get0_param: function(ppkalg: PPASN1_OBJECT; const pk: PPByte; ppklen: PIdC_INT; pa: PPX509_ALGOR; pub: PX509_PUBKEY): TIdC_INT; cdecl = nil; + + X509_check_trust: function(x: PX509; id: TIdC_INT; flags: TIdC_INT): TIdC_INT; cdecl = nil; + X509_TRUST_get_count: function: TIdC_INT; cdecl = nil; + X509_TRUST_get0: function(idx: TIdC_INT): PX509_TRUST; cdecl = nil; + X509_TRUST_get_by_id: function(id: TIdC_INT): TIdC_INT; cdecl = nil; +// TIdC_INT X509_TRUST_add(TIdC_INT id, TIdC_INT flags, TIdC_INT (*ck) (X509_TRUST *, X509 *, TIdC_INT), +// const PIdAnsiChar *name, TIdC_INT arg1, void *arg2); + X509_TRUST_cleanup: procedure; cdecl = nil; + X509_TRUST_get_flags: function(const xp: PX509_TRUST): TIdC_INT; cdecl = nil; + X509_TRUST_get0_name: function(const xp: PX509_TRUST): PIdAnsiChar; cdecl = nil; + X509_TRUST_get_trust: function(const xp: PX509_TRUST): TIdC_INT; cdecl = nil; + +// unsigned long X509_NAME_hash_ex(const X509_NAME *x, OSSL_LIB_CTX *libctx, +// const char *propq, int *ok); + X509_NAME_hash_ex: function(const x: PX509_NAME; libctx: POSSL_LIB_CTX; const propq: PIdAnsiChar; ok: PIdC_INT): TIdC_ULONG; cdecl = nil; {introduced 3.0.0} + + +{$ELSE} + procedure X509_CRL_set_default_method(const meth: PX509_CRL_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function X509_CRL_METHOD_new(crl_init: function(crl: X509_CRL): TIdC_INT; +// crl_free: function(crl: PX509_CRL): TIdC_INT; +// crl_lookup: function(crl: PX509_CRL; ret: PPX509_REVOKED; ser: PASN1_INTEGER; issuer: PX509_NAME): TIdC_INT; +// crl_verify: function(crl: PX509_CRL, pk: PEVP_PKEY): TIdC_INT): PX509_CRL_METHOD; + procedure X509_CRL_METHOD_free(m: PX509_CRL_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure X509_CRL_set_meth_data(crl: PX509_CRL; dat: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_get_meth_data(crl: PX509_CRL): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_verify_cert_error_string(n: TIdC_LONG): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_verify(a: PX509; r: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_REQ_verify(a: PX509_REQ; r: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_verify(a: PX509_CRL; r: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NETSCAPE_SPKI_verify(a: PNETSCAPE_SPKI; r: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function NETSCAPE_SPKI_b64_decode(const str: PIdAnsiChar; len: TIdC_INT): PNETSCAPE_SPKI cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NETSCAPE_SPKI_b64_encode(x: PNETSCAPE_SPKI): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NETSCAPE_SPKI_get_pubkey(x: PNETSCAPE_SPKI): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NETSCAPE_SPKI_set_pubkey(x: PNETSCAPE_SPKI; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function NETSCAPE_SPKI_print(out_: PBIO; spki: PNETSCAPE_SPKI): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_signature_dump(bp: PBIO; const sig: PASN1_STRING; indent: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_signature_print(bp: PBIO; const alg: PX509_ALGOR; const sig: PASN1_STRING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_sign(x: PX509; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_sign_ctx(x: PX509; ctx: PEVP_MD_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + + function X509_REQ_sign(x: PX509_REQ; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_sign_ctx(x: PX509_REQ; ctx: PEVP_MD_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_sign(x: PX509_CRL; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_sign_ctx(x: PX509_CRL; ctx: PEVP_MD_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + + function NETSCAPE_SPKI_sign(x: PNETSCAPE_SPKI; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_pubkey_digest(const data: PX509; const type_: PEVP_MD; md: PByte; len: PIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_digest(const data: PX509; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_digest(const data: PX509_CRL; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_digest(const data: PX509_REQ; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_digest(const data: PX509_NAME; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //# ifndef OPENSSL_NO_STDIO + //X509 *d2i_X509_fp(FILE *fp, X509 **x509); + //TIdC_INT i2d_X509_fp(FILE *fp, X509 *x509); + //X509_CRL *d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl); + //TIdC_INT i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl); + //X509_REQ *d2i_X509_REQ_fp(FILE *fp, X509_REQ **req); + //TIdC_INT i2d_X509_REQ_fp(FILE *fp, X509_REQ *req); + //# ifndef OPENSSL_NO_RSA + //RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa); + //TIdC_INT i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa); + //RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa); + //TIdC_INT i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa); + //RSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa); + //TIdC_INT i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa); + //# endif + //# ifndef OPENSSL_NO_DSA + //DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa); + //TIdC_INT i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa); + //DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa); + //TIdC_INT i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa); + //# endif + //# ifndef OPENSSL_NO_EC + //EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey); + //TIdC_INT i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey); + //EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey); + //TIdC_INT i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey); + //# endif + //X509_SIG *d2i_PKCS8_fp(FILE *fp, X509_SIG **p8); + //TIdC_INT i2d_PKCS8_fp(FILE *fp, X509_SIG *p8); + //PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, + // PKCS8_PRIV_KEY_INFO **p8inf); + //TIdC_INT i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf); + //TIdC_INT i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key); + //TIdC_INT i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey); + //EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a); + //TIdC_INT i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey); + //EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a); + //# endif + + function d2i_X509_bio(bp: PBIO; x509: PPX509): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_bio(bp: PBIO; x509: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_CRL_bio(bp: PBIO; crl: PPX509_CRL): PX509_CRL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_CRL_bio(bp: PBIO; crl: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_REQ_bio(bp: PBIO; req: PPX509_REQ): PX509_REQ cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_REQ_bio(bp: PBIO; req: PX509_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_RSAPrivateKey_bio(bp: PBIO; rsa: PPRSA): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_RSAPrivateKey_bio(bp: PBIO; rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_RSAPublicKey_bio(bp: PBIO; rsa: PPRSA): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_RSAPublicKey_bio(bp: PBIO; rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_RSA_PUBKEY_bio(bp: PBIO; rsa: PPRSA): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_RSA_PUBKEY_bio(bp: PBIO; rsa: PRSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_DSA_PUBKEY_bio(bp: PBIO; dsa: PPDSA): DSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_DSA_PUBKEY_bio(bp: PBIO; dsa: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_DSAPrivateKey_bio(bp: PBIO; dsa: PPDSA): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_DSAPrivateKey_bio(bp: PBIO; dsa: PDSA): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_EC_PUBKEY_bio(bp: PBIO; eckey: PPEC_KEY): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_EC_PUBKEY_bio(bp: PBIO; eckey: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_ECPrivateKey_bio(bp: PBIO; eckey: PPEC_KEY): EC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_ECPrivateKey_bio(bp: PBIO; eckey: PEC_KEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function d2i_PKCS8_bio(bp: PBIO; p8: PPX509_SIG): PX509_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PKCS8_bio(bp: PBIO; p8: PX509_SIG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_PKCS8_PRIV_KEY_INFO_bio(bp: PBIO; p8inf: PPPKCS8_PRIV_KEY_INFO): PPKCS8_PRIV_KEY_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PKCS8_PRIV_KEY_INFO_bio(bp: PBIO; p8inf: PPKCS8_PRIV_KEY_INFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PKCS8PrivateKeyInfo_bio(bp: PBIO; key: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PrivateKey_bio(bp: PBIO; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_PrivateKey_bio(bp: PBIO; a: PPEVP_PKEY): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_PUBKEY_bio(bp: PBIO; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_PUBKEY_bio(bp: PBIO; a: PPEVP_PKEY): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_dup(x509: PX509): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ATTRIBUTE_dup(xa: PX509_ATTRIBUTE): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_EXTENSION_dup(ex: PX509_EXTENSION): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_dup(crl: PX509_CRL): PX509_CRL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REVOKED_dup(rev: PX509_REVOKED): PX509_REVOKED cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_dup(req: PX509_REQ): PX509_REQ cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ALGOR_dup(xn: PX509_ALGOR): PX509_ALGOR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ALGOR_set0(alg: PX509_ALGOR; aobj: PASN1_OBJECT; ptype: TIdC_INT; pval: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_ALGOR_get0(const paobj: PPASN1_OBJECT; pptype: PIdC_INT; const ppval: PPointer; const algor: PX509_ALGOR) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_ALGOR_set_md(alg: PX509_ALGOR; const md: PEVP_MD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ALGOR_cmp(const a: PX509_ALGOR; const b: PX509_ALGOR): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_NAME_dup(xn: PX509_NAME): PX509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_ENTRY_dup(ne: PX509_NAME_ENTRY): PX509_NAME_ENTRY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_cmp_time(const s: PASN1_TIME; t: PIdC_TIMET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_cmp_current_time(const s: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_time_adj(s: PASN1_TIME; adj: TIdC_LONG; t: PIdC_TIMET): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_time_adj_ex(s: PASN1_TIME; offset_day: TIdC_INT; offset_sec: TIdC_LONG; t: PIdC_TIMET): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_gmtime_adj(s: PASN1_TIME; adj: TIdC_LONG): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_get_default_cert_area: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_default_cert_dir: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_default_cert_file: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_default_cert_dir_env: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_default_cert_file_env: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_default_private_dir: PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_to_X509_REQ(x: PX509; pkey: PEVP_PKEY; const md: PEVP_MD): PX509_REQ cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_to_X509(r: PX509_REQ; days: TIdC_INT; pkey: PEVP_PKEY): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_ALGOR_new: PX509_ALGOR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_ALGOR_free(v1: PX509_ALGOR) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_ALGOR(a: PPX509_ALGOR; const in_: PPByte; len: TIdC_LONG): PX509_ALGOR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_ALGOR(a: PX509_ALGOR; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //DECLARE_ASN1_ENCODE_FUNCTIONS(X509_ALGORS, X509_ALGORS, X509_ALGORS) + function X509_VAL_new: PX509_VAL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_VAL_free(v1: PX509_VAL) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_VAL(a: PPX509_VAL; const in_: PPByte; len: TIdC_LONG): PX509_VAL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_VAL(a: PX509_VAL; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_PUBKEY_new: PX509_PUBKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_PUBKEY_free(v1: PX509_PUBKEY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_PUBKEY(a: PPX509_PUBKEY; const in_: PPByte; len: TIdC_LONG): PX509_PUBKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_PUBKEY(a: PX509_PUBKEY; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_PUBKEY_set(x: PPX509_PUBKEY; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_PUBKEY_get0(key: PX509_PUBKEY): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_PUBKEY_get(key: PX509_PUBKEY): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// function X509_get_pubkey_parameters(pkey: PEVP_PKEY; chain: P STACK_OF(X509)): TIdC_INT; + function X509_get_pathlen(x: PX509): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function i2d_PUBKEY(a: PEVP_PKEY; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_PUBKEY(a: PPEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function i2d_RSA_PUBKEY(a: PRSA; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_RSA_PUBKEY(a: PPRSA; const pp: PPByte; length: TIdC_LONG): PRSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function i2d_DSA_PUBKEY(a: PDSA; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_DSA_PUBKEY(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function i2d_EC_PUBKEY(a: EC_KEY; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_EC_PUBKEY(a: PPEC_KEY; const pp: PPByte; length: TIdC_LONG): PEC_KEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_SIG_new: PX509_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_SIG_free(v1: PX509_SIG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_SIG(a: PPX509_SIG; const in_: PPByte; len: TIdC_LONG): PX509_SIG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_SIG(a: PX509_SIG; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_SIG_get0(const sig: PX509_SIG; const palg: PPX509_ALGOR; const pdigest: PPASN1_OCTET_STRING) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_SIG_getm(sig: X509_SIG; palg: PPX509_ALGOR; pdigest: PPASN1_OCTET_STRING) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_REQ_INFO_new: PX509_REQ_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_REQ_INFO_free(v1: PX509_REQ_INFO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_REQ_INFO(a: PPX509_REQ_INFO; const in_: PPByte; len: TIdC_LONG): PX509_REQ_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_REQ_INFO(a: PX509_REQ_INFO; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_REQ_new: PX509_REQ cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_REQ_free(v1: PX509_REQ) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_REQ(a: PPX509_REQ; const in_: PPByte; len: TIdC_LONG): PX509_REQ cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_REQ(a: PX509_REQ; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_ATTRIBUTE_new: PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_ATTRIBUTE_free(v1: PX509_ATTRIBUTE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_ATTRIBUTE(a: PPX509_ATTRIBUTE; const in_: PPByte; len: TIdC_LONG): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_ATTRIBUTE(a: PX509_ATTRIBUTE; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ATTRIBUTE_create(nid: TIdC_INT; trtype: TIdC_INT; value: Pointer): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_EXTENSION_new: PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_EXTENSION_free(v1: PX509_EXTENSION) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_EXTENSION(a: PPX509_EXTENSION; const in_: PPByte; len: TIdC_LONG): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_EXTENSION(a: PX509_EXTENSION; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //DECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS) + + function X509_NAME_ENTRY_new: PX509_NAME_ENTRY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_NAME_ENTRY_free(v1: PX509_NAME_ENTRY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_NAME_ENTRY(a: PPX509_NAME_ENTRY; const in_: PPByte; len: TIdC_LONG): PX509_NAME_ENTRY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_NAME_ENTRY(a: PX509_NAME_ENTRY; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_NAME_new: PX509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_NAME_free(v1: PX509_NAME) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_NAME(a: PPX509_NAME; const in_: PPByte; len: TIdC_LONG): PX509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_NAME(a: PX509_NAME; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_NAME_set(xn: PPX509_NAME; name: PX509_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //DECLARE_ASN1_FUNCTIONS(X509_CINF) + + function X509_new: PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_free(v1: PX509) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509(a: PPX509; const in_: PPByte; len: TIdC_LONG): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509(a: PX509; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //DECLARE_ASN1_FUNCTIONS(X509_CERT_AUX) + // + //#define X509_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509, l, p, newf, dupf, freef) + function X509_set_ex_data(r: PX509; idx: TIdC_INT; arg: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_ex_data(r: PX509; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_AUX(a: PX509; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_AUX(a: PPX509; const pp: PPByte; length: TIdC_LONG): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function i2d_re_X509_tbs(x: PX509; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_SIG_INFO_get(const siginf: PX509_SIG_INFO; mdnid: PIdC_INT; pknid: PIdC_INT; secbits: PIdC_INT; flags: PIdC_UINT32): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_SIG_INFO_set(siginf: PX509_SIG_INFO; mdnid: TIdC_INT; pknid: TIdC_INT; secbits: TIdC_INT; flags: TIdC_UINT32) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_get_signature_info(x: PX509; mdnid: PIdC_INT; pknid: PIdC_INT; secbits: PIdC_INT; flags: PIdC_UINT32): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure X509_get0_signature(var sig: PASN1_BIT_STRING; var alg: PX509_ALGOR; const x: PX509) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_get_signature_nid(const x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_trusted(const x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_alias_set1(x: PX509; const name: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_keyid_set1(x: PX509; const id: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_alias_get0(x: PX509; len: PIdC_INT): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_keyid_get0(x: PX509; len: PIdC_INT): PByte cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT (*X509_TRUST_set_default(TIdC_INT (*trust) (TIdC_INT, X509 *, TIdC_INT))) (TIdC_INT, X509 *, +// TIdC_INT); + function X509_TRUST_set(t: PIdC_INT; trust: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_add1_trust_object(x: PX509; const obj: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_add1_reject_object(x: PX509; const obj: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_trust_clear(x: PX509) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_reject_clear(x: PX509) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //STACK_OF(ASN1_OBJECT) *X509_get0_trust_objects(X509 *x); + //STACK_OF(ASN1_OBJECT) *X509_get0_reject_objects(X509 *x); + // + function X509_REVOKED_new: PX509_REVOKED cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_REVOKED_free(v1: PX509_REVOKED) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_REVOKED(a: PPX509_REVOKED; const in_: PPByte; len: TIdC_LONG): PX509_REVOKED cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_REVOKED(a: PX509_REVOKED; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_INFO_new: PX509_CRL_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_CRL_INFO_free(v1: PX509_CRL_INFO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_CRL_INFO(a: PPX509_CRL_INFO; const in_: PPByte; len: TIdC_LONG): PX509_CRL_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_CRL_INFO(a: PX509_CRL_INFO; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_new: PX509_CRL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_CRL_free(v1: PX509_CRL) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function d2i_X509_CRL(a: PPX509_CRL; const in_: PPByte; len: TIdC_LONG): PX509_CRL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function i2d_X509_CRL(a: PX509_CRL; out_: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_CRL_add0_revoked(crl: PX509_CRL; rev: PX509_REVOKED): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_get0_by_serial(crl: PX509_CRL; ret: PPX509_REVOKED; serial: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_get0_by_cert(crl: PX509_CRL; ret: PPX509_REVOKED; x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_PKEY_new: PX509_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_PKEY_free(a: PX509_PKEY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //DECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKI) + //DECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKAC) + //DECLARE_ASN1_FUNCTIONS(NETSCAPE_CERT_SEQUENCE) + + function X509_INFO_new: PX509_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_INFO_free(a: PX509_INFO) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_oneline(const a: PX509_NAME; buf: PIdAnsiChar; size: TIdC_INT): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// function ASN1_verify(i2d: Pi2d_of_void; algor1: PX509_ALGOR; +// signature: PASN1_BIT_STRING; data: PIdAnsiChar; pkey: PEVP_PKEY): TIdC_INT; + +// TIdC_INT ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data, +// unsigned char *md, unsigned TIdC_INT *len); + +// TIdC_INT ASN1_sign(i2d_of_void *i2d, X509_ALGOR *algor1, +// X509_ALGOR *algor2, ASN1_BIT_STRING *signature, +// char *data, EVP_PKEY *pkey, const EVP_MD *type); + + function ASN1_item_digest(const it: PASN1_ITEM; const type_: PEVP_MD; data: Pointer; md: PByte; len: PIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_item_verify(const it: PASN1_ITEM; algor1: PX509_ALGOR; signature: PASN1_BIT_STRING; data: Pointer; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ASN1_item_sign(const it: PASN1_ITEM; algor1: PX509_ALGOR; algor2: PX509_ALGOR; signature: PASN1_BIT_STRING; data: Pointer; pkey: PEVP_PKEY; const type_: PEVP_MD): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ASN1_item_sign_ctx(const it: PASN1_ITEM; algor1: PX509_ALGOR; algor2: PX509_ALGOR; signature: PASN1_BIT_STRING; asn: Pointer; ctx: PEVP_MD_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_get_version(const x: PX509): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_set_version(x: PX509; version: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_set_serialNumber(x: PX509; serial: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_serialNumber(x: PX509): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get0_serialNumber(const x: PX509): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_set_issuer_name(x: PX509; name: PX509_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_issuer_name(const a: PX509): PX509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_set_subject_name(x: PX509; name: PX509_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_subject_name(const a: PX509): PX509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get0_notBefore(const x: PX509): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_getm_notBefore(const x: PX509): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_set1_notBefore(x: PX509; const tm: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_get0_notAfter(const x: PX509): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_getm_notAfter(const x: PX509): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_set1_notAfter(x: PX509; const tm: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_set_pubkey(x: PX509; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_up_ref(x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_get_signature_type(const x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + (* + * This one is only used so that a binary form can output, as in + * i2d_X509_PUBKEY(X509_get_X509_PUBKEY(x), &buf) + *) + function X509_get_X509_PUBKEY(const x: PX509): PX509_PUBKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} +// const STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x); + procedure X509_get0_uids(const x: PX509; const piuid: PPASN1_BIT_STRING; const psuid: PPASN1_BIT_STRING) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_get0_tbs_sigalg(const x: PX509): PX509_ALGOR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_get0_pubkey(const x: PX509): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_get_pubkey(x: PX509): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get0_pubkey_bitstr(const x: PX509): PASN1_BIT_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_certificate_type(const x: PX509; const pubkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_REQ_get_version(const req: PX509_REQ): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_REQ_set_version(x: PX509_REQ; version: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_get_subject_name(const req: PX509_REQ): PX509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_REQ_set_subject_name(req: PX509_REQ; name: PX509_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_REQ_get0_signature(const req: PX509_REQ; const psig: PPASN1_BIT_STRING; const palg: PPX509_ALGOR) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_REQ_get_signature_nid(const req: PX509_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function i2d_re_X509_REQ_tbs(req: PX509_REQ; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_REQ_set_pubkey(x: PX509_REQ; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_get_pubkey(req: PX509_REQ): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_get0_pubkey(req: PX509_REQ): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_REQ_get_X509_PUBKEY(req: PX509_REQ): PX509_PUBKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_REQ_extension_nid(nid: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_get_extension_nids: PIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_REQ_set_extension_nids(nids: PIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req); + //TIdC_INT X509_REQ_add_extensions_nid(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts, + // TIdC_INT nid); + //TIdC_INT X509_REQ_add_extensions(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts); + function X509_REQ_get_attr_count(const req: PX509_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_get_attr_by_NID(const req: PX509_REQ; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_get_attr_by_OBJ(const req: PX509_REQ; const obj: ASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_get_attr(const req: PX509_REQ; loc: TIdC_INT): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_delete_attr(req: PX509_REQ; loc: TIdC_INT): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_add1_attr(req: PX509_REQ; attr: PX509_ATTRIBUTE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_add1_attr_by_OBJ(req: PX509_REQ; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_add1_attr_by_NID(req: PX509_REQ; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_add1_attr_by_txt(req: PX509_REQ; const attrname: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_CRL_set_version(x: PX509_CRL; version: TIdC_LONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_set_issuer_name(x: PX509_CRL; name: PX509_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_set1_lastUpdate(x: PX509_CRL; const tm: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_CRL_set1_nextUpdate(x: PX509_CRL; const tm: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_CRL_sort(crl: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_up_ref(crl: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_CRL_get_version(const crl: PX509_CRL): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_CRL_get0_lastUpdate(const crl: PX509_CRL): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_CRL_get0_nextUpdate(const crl: PX509_CRL): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_CRL_get_issuer(const crl: PX509_CRL): PX509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + //const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl); + //STACK_OF(X509_REVOKED) *X509_CRL_get_REVOKED(X509_CRL *crl); + procedure X509_CRL_get0_signature(const crl: PX509_CRL; const psig: PPASN1_BIT_STRING; const palg: PPX509_ALGOR) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_CRL_get_signature_nid(const crl: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function i2d_re_X509_CRL_tbs(req: PX509_CRL; pp: PPByte): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_REVOKED_get0_serialNumber(const x: PX509_REVOKED): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_REVOKED_set_serialNumber(x: PX509_REVOKED; serial: PASN1_INTEGER): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REVOKED_get0_revocationDate(const x: PX509_REVOKED): PASN1_TIME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_REVOKED_set_revocationDate(r: PX509_REVOKED; tm: PASN1_TIME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //const STACK_OF(X509_EXTENSION) * + //X509_REVOKED_get0_extensions(const X509_REVOKED *r); + + function X509_CRL_diff(base: PX509_CRL; newer: PX509_CRL; skey: PEVP_PKEY; const md: PEVP_MD; flags: TIdC_UINT): PX509_CRL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_REQ_check_private_key(x509: PX509_REQ; pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_check_private_key(const x509: PX509; const pkey: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //TIdC_INT X509_chain_check_suiteb(TIdC_INT *perror_depth, + // X509 *x, STACK_OF(X509) *chain, + // unsigned TIdC_LONG flags); + function X509_CRL_check_suiteb(crl: PX509_CRL; pk: PEVP_PKEY; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain); + + function X509_issuer_and_serial_cmp(const a: PX509; const b: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_issuer_and_serial_hash(a: PX509): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_issuer_name_cmp(const a: PX509; const b: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_issuer_name_hash(a: PX509): TIdC_uLONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_subject_name_cmp(const a: PX509; const b: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_subject_name_hash(x: PX509): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_cmp(const a: PX509; const b: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_cmp(const a: PX509_NAME; const b: PX509_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_hash_old(x: PX509_NAME): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_CRL_cmp(const a: PX509_CRL; const b: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_match(const a: PX509_CRL; const b: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_aux_print(out_: PBIO; x: PX509; indent: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + //# ifndef OPENSSL_NO_STDIO + //TIdC_INT X509_print_ex_fp(FILE *bp, X509 *x, unsigned TIdC_LONG nmflag, + // unsigned TIdC_LONG cflag); + //TIdC_INT X509_print_fp(FILE *bp, X509 *x); + //TIdC_INT X509_CRL_print_fp(FILE *bp, X509_CRL *x); + //TIdC_INT X509_REQ_print_fp(FILE *bp, X509_REQ *req); + //TIdC_INT X509_NAME_print_ex_fp(FILE *fp, const X509_NAME *nm, TIdC_INT indent, + // unsigned TIdC_LONG flags); + //# endif + + function X509_NAME_print(bp: PBIO; const name: PX509_NAME; obase: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_print_ex(out_: PBIO; const nm: PX509_NAME; indent: TIdC_INT; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_print_ex(bp: PBIO; x: PX509; nmflag: TIdC_ULONG; cflag: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_print(bp: PBIO; x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ocspid_print(bp: PBIO; x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_print_ex(out_: PBIO; x: PX509_CRL; nmflag: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_CRL_print(bp: PBIO; x: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_print_ex(bp: PBIO; x: PX509_REQ; nmflag: TIdC_ULONG; cflag: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REQ_print(bp: PBIO; req: PX509_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_NAME_entry_count(const name: PX509_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_get_text_by_NID(name: PX509_NAME; nid: TIdC_INT; buf: PIdAnsiChar; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_get_text_by_OBJ(name: PX509_NAME; const obj: PASN1_OBJECT; buf: PIdAnsiChar; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * NOTE: you should be passing -1, not 0 as lastpos. The functions that use + * lastpos, search after that position on. + *) + function X509_NAME_get_index_by_NID(name: PX509_NAME; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_get_index_by_OBJ(name: PX509_NAME; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_get_entry(const name: PX509_NAME; loc: TIdC_INT): PX509_NAME_ENTRY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_delete_entry(name: PX509_NAME; loc: TIdC_INT): pX509_NAME_ENTRY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_add_entry(name: PX509_NAME; const ne: PX509_NAME_ENTRY; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_add_entry_by_OBJ(name: PX509_NAME; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_add_entry_by_NID(name: PX509_NAME; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_ENTRY_create_by_txt(ne: PPX509_NAME_ENTRY; const field: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_NAME_ENTRY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_ENTRY_create_by_NID(ne: PPX509_NAME_ENTRY; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_NAME_ENTRY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_add_entry_by_txt(name: PX509_NAME; const field: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_ENTRY_create_by_OBJ(ne: PPX509_NAME_ENTRY; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_NAME_ENTRY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_ENTRY_set_object(ne: PX509_NAME_ENTRY; const obj: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_ENTRY_set_data(ne: PX509_NAME_ENTRY; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_ENTRY_get_object(const ne: PX509_NAME_ENTRY): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_ENTRY_get_data(const ne: PX509_NAME_ENTRY): PASN1_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_NAME_ENTRY_set(const ne: PX509_NAME_ENTRY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_NAME_get0_der(nm: PX509_NAME; const pder: PPByte; pderlen: PIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + //TIdC_INT X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x); + //TIdC_INT X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, + // TIdC_INT nid, TIdC_INT lastpos); + //TIdC_INT X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x, + // const ASN1_OBJECT *obj, TIdC_INT lastpos); + //TIdC_INT X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x, + // TIdC_INT crit, TIdC_INT lastpos); + //X509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, TIdC_INT loc); + //X509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, TIdC_INT loc); + //STACK_OF(X509_EXTENSION) *X509v3_add_ext(STACK_OF(X509_EXTENSION) **x, + // X509_EXTENSION *ex, TIdC_INT loc); + + function X509_get_ext_count(const x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_ext_by_NID(const x: PX509; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_ext_by_OBJ(const x: PX509; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_ext_by_critical(const x: PX509; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_ext(const x: PX509; loc: TIdC_INT): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_delete_ext(x: PX509; loc: TIdC_INT): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_add_ext(x: PX509; ex: PX509_EXTENSION; loc: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_ext_d2i(const x: PX509; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_add1_ext_i2d(x: PX509; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_CRL_get_ext_count(const x: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_get_ext_by_NID(const x: PX509_CRL; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_get_ext_by_OBJ(const x: X509_CRL; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_get_ext_by_critical(const x: PX509_CRL; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_get_ext(const x: PX509_CRL; loc: TIdC_INT): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_delete_ext(x: PX509_CRL; loc: TIdC_INT): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_add_ext(x: PX509_CRL; ex: PX509_EXTENSION; loc: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_get_ext_d2i(const x: PX509_CRL; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_CRL_add1_ext_i2d(x: PX509_CRL; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_REVOKED_get_ext_count(const x: PX509_REVOKED): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REVOKED_get_ext_by_NID(const x: PX509_REVOKED; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REVOKED_get_ext_by_OBJ(const x: PX509_REVOKED; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REVOKED_get_ext_by_critical(const x: PX509_REVOKED; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REVOKED_get_ext(const x: PX509_REVOKED; loc: TIdC_INT): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REVOKED_delete_ext(x: PX509_REVOKED; loc: TIdC_INT): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REVOKED_add_ext(x: PX509_REVOKED; ex: PX509_EXTENSION; loc: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REVOKED_get_ext_d2i(const x: PX509_REVOKED; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_REVOKED_add1_ext_i2d(x: PX509_REVOKED; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_EXTENSION_create_by_NID(ex: PPX509_EXTENSION; nid: TIdC_INT; crit: TIdC_INT; data: PASN1_OCTET_STRING): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_EXTENSION_create_by_OBJ(ex: PPX509_EXTENSION; const obj: PASN1_OBJECT; crit: TIdC_INT; data: PASN1_OCTET_STRING): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_EXTENSION_set_object(ex: PX509_EXTENSION; const obj: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_EXTENSION_set_critical(ex: PX509_EXTENSION; crit: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_EXTENSION_set_data(ex: PX509_EXTENSION; data: PASN1_OCTET_STRING): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_EXTENSION_get_object(ex: PX509_EXTENSION): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_EXTENSION_get_data(ne: PX509_EXTENSION): PASN1_OCTET_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_EXTENSION_get_critical(const ex: PX509_EXTENSION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //TIdC_INT X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x); + //TIdC_INT X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x, TIdC_INT nid, + // TIdC_INT lastpos); + //TIdC_INT X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk, + // const ASN1_OBJECT *obj, TIdC_INT lastpos); + //X509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, TIdC_INT loc); + //X509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, TIdC_INT loc); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x, + // X509_ATTRIBUTE *attr); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE) + // **x, const ASN1_OBJECT *obj, + // TIdC_INT type, + // const unsigned char *bytes, + // TIdC_INT len); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE) + // **x, TIdC_INT nid, TIdC_INT type, + // const unsigned char *bytes, + // TIdC_INT len); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE) + // **x, const PIdAnsiChar *attrname, + // TIdC_INT type, + // const unsigned char *bytes, + // TIdC_INT len); + //void *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x, + // const ASN1_OBJECT *obj, TIdC_INT lastpos, TIdC_INT type); + function X509_ATTRIBUTE_create_by_NID(attr: PPX509_ATTRIBUTE; nid: TIdC_INT; atrtype: TIdC_INT; const data: Pointer; len: TIdC_INT): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ATTRIBUTE_create_by_OBJ(attr: PPX509_ATTRIBUTE; const obj: PASN1_OBJECT; atrtype: TIdC_INT; const data: Pointer; len: TIdC_INT): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ATTRIBUTE_create_by_txt(attr: PPX509_ATTRIBUTE; const atrname: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ATTRIBUTE_set1_object(attr: PX509_ATTRIBUTE; const obj: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ATTRIBUTE_set1_data(attr: PX509_ATTRIBUTE; attrtype: TIdC_INT; const data: Pointer; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ATTRIBUTE_get0_data(attr: PX509_ATTRIBUTE; idx: TIdC_INT; atrtype: TIdC_INT; data: Pointer): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ATTRIBUTE_count(const attr: PX509_ATTRIBUTE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ATTRIBUTE_get0_object(attr: PX509_ATTRIBUTE): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_ATTRIBUTE_get0_type(attr: PX509_ATTRIBUTE; idx: TIdC_INT): PASN1_TYPE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function EVP_PKEY_get_attr_count(const key: PEVP_PKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_get_attr_by_NID(const key: PEVP_PKEY; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_get_attr_by_OBJ(const key: PEVP_PKEY; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_get_attr(const key: PEVP_PKEY; loc: TIdC_INT): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_delete_attr(key: PEVP_PKEY; loc: TIdC_INT): PX509_ATTRIBUTE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_add1_attr(key: PEVP_PKEY; attr: PX509_ATTRIBUTE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_add1_attr_by_OBJ(key: PEVP_PKEY; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_add1_attr_by_NID(key: PEVP_PKEY; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY_add1_attr_by_txt(key: PEVP_PKEY; const attrname: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_verify_cert(ctx: PX509_STORE_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* lookup a cert from a X509 STACK *) +// function X509_find_by_issuer_and_serial(sk: P STACK_OF(X509); name: PX509_NAME; serial: PASN1_INTEGER): PX509; +// X509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name); + + //DECLARE_ASN1_FUNCTIONS(PBEPARAM) + //DECLARE_ASN1_FUNCTIONS(PBE2PARAM) + //DECLARE_ASN1_FUNCTIONS(PBKDF2PARAM) + //#ifndef OPENSSL_NO_SCRYPT + //DECLARE_ASN1_FUNCTIONS(SCRYPT_PARAMS) + //#endif + + function PKCS5_pbe_set0_algor(algor: PX509_ALGOR; alg: TIdC_INT; iter: TIdC_INT; const salt: PByte; saltlen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS5_pbe_set(alg: TIdC_INT; iter: TIdC_INT; const salt: PByte; saltlen: TIdC_INT): PX509_ALGOR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS5_pbe2_set(const cipher: PEVP_CIPHER; iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT): PX509_ALGOR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS5_pbe2_set_iv(const cipher: PEVP_CIPHER; iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT; aiv: PByte; prf_nid: TIdC_INT): PX509_ALGOR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS5_pbe2_set_scrypt(const cipher: PEVP_CIPHER; const salt: PByte; saltlen: TIdC_INT; aiv: PByte; N: TIdC_UINT64; r: TIdC_UINT64; p: TIdC_UINT64): PX509_ALGOR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function PKCS5_pbkdf2_set(iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT; prf_nid: TIdC_INT; keylen: TIdC_INT): PX509_ALGOR cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* PKCS#8 utilities *) + + //DECLARE_ASN1_FUNCTIONS(PKCS8_PRIV_KEY_INFO) + + function EVP_PKCS82PKEY(const p8: PPKCS8_PRIV_KEY_INFO): PEVP_PKEY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function EVP_PKEY2PKCS8(pkey: PEVP_PKEY): PKCS8_PRIV_KEY_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function PKCS8_pkey_set0(priv: PPKCS8_PRIV_KEY_INFO; aobj: PASN1_OBJECT; version: TIdC_INT; ptype: TIdC_INT; pval: Pointer; penc: PByte; penclen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PKCS8_pkey_get0(const ppkalg: PPASN1_OBJECT; const pk: PPByte; ppklen: PIdC_INT; const pa: PPX509_ALGOR; const p8: PPKCS8_PRIV_KEY_INFO): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //const STACK_OF(X509_ATTRIBUTE) * + //PKCS8_pkey_get0_attrs(const PKCS8_PRIV_KEY_INFO *p8); + function PKCS8_pkey_add1_attr_by_NID(p8: PPKCS8_PRIV_KEY_INFO; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_PUBKEY_set0_param(pub: PX509_PUBKEY; aobj: PASN1_OBJECT; ptype: TIdC_INT; pval: Pointer; penc: PByte; penclen: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_PUBKEY_get0_param(ppkalg: PPASN1_OBJECT; const pk: PPByte; ppklen: PIdC_INT; pa: PPX509_ALGOR; pub: PX509_PUBKEY): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_check_trust(x: PX509; id: TIdC_INT; flags: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_TRUST_get_count: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_TRUST_get0(idx: TIdC_INT): PX509_TRUST cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_TRUST_get_by_id(id: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT X509_TRUST_add(TIdC_INT id, TIdC_INT flags, TIdC_INT (*ck) (X509_TRUST *, X509 *, TIdC_INT), +// const PIdAnsiChar *name, TIdC_INT arg1, void *arg2); + procedure X509_TRUST_cleanup cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_TRUST_get_flags(const xp: PX509_TRUST): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_TRUST_get0_name(const xp: PX509_TRUST): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_TRUST_get_trust(const xp: PX509_TRUST): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// unsigned long X509_NAME_hash_ex(const X509_NAME *x, OSSL_LIB_CTX *libctx, +// const char *propq, int *ok); + function X509_NAME_hash_ex(const x: PX509_NAME; libctx: POSSL_LIB_CTX; const propq: PIdAnsiChar; ok: PIdC_INT): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 3.0.0} + + + function X509_NAME_hash(x: PX509_NAME): TIdC_ULONG; {removed 3.0.0} +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + X509_PUBKEY_get0_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get_pathlen_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_SIG_get0_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_SIG_getm_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_SIG_INFO_get_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_SIG_INFO_set_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get_signature_info_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get0_signature_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_trusted_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get_version_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get0_serialNumber_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get0_notBefore_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_getm_notBefore_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_set1_notBefore_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get0_notAfter_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_getm_notAfter_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_set1_notAfter_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_up_ref_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get_signature_type_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get_X509_PUBKEY_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get0_uids_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get0_tbs_sigalg_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_get0_pubkey_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_REQ_get_version_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_REQ_get_subject_name_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_REQ_get0_signature_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_REQ_get_signature_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + i2d_re_X509_REQ_tbs_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_REQ_get0_pubkey_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_REQ_get_X509_PUBKEY_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_CRL_set1_lastUpdate_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_CRL_set1_nextUpdate_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_CRL_up_ref_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_CRL_get_version_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_CRL_get0_lastUpdate_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_CRL_get0_nextUpdate_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_CRL_get_issuer_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_CRL_get0_signature_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_CRL_get_signature_nid_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + i2d_re_X509_CRL_tbs_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_REVOKED_get0_serialNumber_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_REVOKED_get0_revocationDate_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_aux_print_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_CRL_print_ex_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_NAME_ENTRY_set_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_NAME_get0_der_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS5_pbe2_set_scrypt_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + PKCS8_pkey_add1_attr_by_NID_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_NAME_hash_ex_introduced = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + X509_http_nbio_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + X509_CRL_http_nbio_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + X509_NAME_hash_removed = (byte(3) shl 8 or byte(0)) shl 8 or byte(0); + + +//# define X509_NAME_hash(x) X509_NAME_hash_ex(x, NULL, NULL, NULL) +{$IFNDEF USE_EXTERNAL_LIBRARY} + + +//# define X509_NAME_hash(x) X509_NAME_hash_ex(x, NULL, NULL, NULL) +function _X509_NAME_hash(x: PX509_NAME): TIdC_ULONG; cdecl; +begin + Result := X509_NAME_hash_ex(x,nil,nil,nil); +end; + + + + + +{forward_compatibility} + +const + ASIdentifierChoice_inherit = 0; + ASIdentifierChoice_asIdsOrRanges = 1; + SHA_DIGEST_LENGTH = 20; + +type + PSTACK= type pointer; + PSTACK_OF_X509_EXTENSION = PSTACK; + PX509_CINF = ^_X509_CINF; + _X509_CINF = record + version: PASN1_INTEGER; + serialNumber: PASN1_INTEGER; + signature: PX509_ALGOR; + issuer: PX509_NAME; + validity: PX509_VAL; + subject: PX509_NAME; + key: PX509_PUBKEY; + issuerUID: PASN1_BIT_STRING; // [ 1 ] optional in v2 + subjectUID: PASN1_BIT_STRING; // [ 2 ] optional in v2 + extensions: PSTACK_OF_X509_EXTENSION; + enc : ASN1_ENCODING; + end; + + PX509_ALGOR = ^X509_ALGOR; + X509_ALGOR = record + algorithm : PASN1_OBJECT; + parameter : PASN1_TYPE; + end; + + PSTACK_OF_ASIdOrRange = PSTACK; + + PSTACK_OF_DIST_POINT = PSTACK; + PSTACK_OF_GENERAL_NAME = PSTACK; + PSTACK_OF_IPAddressFamily = PSTACK; + PASIdOrRanges = PSTACK_OF_ASIdOrRange; + + ASIdentifierChoice_union = record + case byte of + ASIdentifierChoice_inherit : (inherit : PASN1_NULL); + ASIdentifierChoice_asIdsOrRanges : (asIdsOrRanges : PASIdOrRanges); + end; + + PASIdentifierChoice = ^ASIdentifierChoice; + ASIdentifierChoice = record + _type : TIdC_INT; + u : ASIdentifierChoice_union; + end; + + PASIdentifiers = ^ASIdentifiers; + ASIdentifiers = record + asnum : PASIdentifierChoice; + rdi : PASIdentifierChoice; + end; + + PX509_CERT_AUX = pointer; + + _PX509 = ^X509; + +X509 = record + cert_info: PX509_CINF; + sig_alg : PX509_ALGOR; + signature : PASN1_BIT_STRING; + valid : TIdC_INT; + references : TIdC_INT; + name : PIdAnsiChar; + ex_data : CRYPTO_EX_DATA; + // These contain copies of various extension values + ex_pathlen : TIdC_LONG; + ex_pcpathlen : TIdC_LONG; + ex_flags : TIdC_ULONG; + ex_kusage : TIdC_ULONG; + ex_xkusage : TIdC_ULONG; + ex_nscert : TIdC_ULONG; + skid : PASN1_OCTET_STRING; + akid : PAUTHORITY_KEYID; + policy_cache : PX509_POLICY_CACHE; + crldp : PSTACK_OF_DIST_POINT; + altname : PSTACK_OF_GENERAL_NAME; + nc : PNAME_CONSTRAINTS; + {$IFNDEF OPENSSL_NO_RFC3779} + rfc3779_addr : PSTACK_OF_IPAddressFamily; + rfc3779_asid : PASIdentifiers; + {$ENDIF} + {$IFNDEF OPENSSL_NO_SHA} + sha1_hash : array [0..SHA_DIGEST_LENGTH-1] of TIdAnsiChar; + {$ENDIF} + aux : PX509_CERT_AUX; + end; + +procedure FC_X509_get0_signature(var sig: PASN1_BIT_STRING; var alg: PX509_ALGOR; const x: PX509); cdecl; +begin + sig := _PX509(x)^.signature; + alg := _PX509(x)^.sig_alg; +end; + +function FC_X509_get0_notBefore(const x: PX509): PASN1_TIME; cdecl; +begin + Result := _PX509(x)^.cert_info.validity.notBefore; +end; + +function FC_X509_get0_notAfter(const x: PX509): PASN1_TIME; cdecl; +begin + Result := _PX509(x)^.cert_info.validity.notAfter; +end; + +function FC_X509_get_signature_type(const x: PX509): TIdC_INT; cdecl; +begin + Result := EVP_PKEY_type(OBJ_obj2nid(_PX509(x)^.sig_alg^.algorithm)); +end; + +{/forward_compatibility} +{$WARN NO_RETVAL OFF} +function ERR_X509_http_nbio(rctx: POCSP_REQ_CTX; pcert: PPX509): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_http_nbio'); +end; + + +function ERR_X509_CRL_http_nbio(rctx: POCSP_REQ_CTX; pcrl: PPX509_CRL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_CRL_http_nbio'); +end; + + +function ERR_X509_PUBKEY_get0(key: PX509_PUBKEY): PEVP_PKEY; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_PUBKEY_get0'); +end; + + +function ERR_X509_get_pathlen(x: PX509): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get_pathlen'); +end; + + +procedure ERR_X509_SIG_get0(const sig: PX509_SIG; const palg: PPX509_ALGOR; const pdigest: PPASN1_OCTET_STRING); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_SIG_get0'); +end; + + +procedure ERR_X509_SIG_getm(sig: X509_SIG; palg: PPX509_ALGOR; pdigest: PPASN1_OCTET_STRING); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_SIG_getm'); +end; + + +function ERR_X509_SIG_INFO_get(const siginf: PX509_SIG_INFO; mdnid: PIdC_INT; pknid: PIdC_INT; secbits: PIdC_INT; flags: PIdC_UINT32): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_SIG_INFO_get'); +end; + + +procedure ERR_X509_SIG_INFO_set(siginf: PX509_SIG_INFO; mdnid: TIdC_INT; pknid: TIdC_INT; secbits: TIdC_INT; flags: TIdC_UINT32); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_SIG_INFO_set'); +end; + + +function ERR_X509_get_signature_info(x: PX509; mdnid: PIdC_INT; pknid: PIdC_INT; secbits: PIdC_INT; flags: PIdC_UINT32): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get_signature_info'); +end; + + +procedure ERR_X509_get0_signature(var sig: PASN1_BIT_STRING; var alg: PX509_ALGOR; const x: PX509); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get0_signature'); +end; + + +function ERR_X509_trusted(const x: PX509): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_trusted'); +end; + + +function ERR_X509_get_version(const x: PX509): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get_version'); +end; + + +function ERR_X509_get0_serialNumber(const x: PX509): PASN1_INTEGER; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get0_serialNumber'); +end; + + +function ERR_X509_get0_notBefore(const x: PX509): PASN1_TIME; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get0_notBefore'); +end; + + +function ERR_X509_getm_notBefore(const x: PX509): PASN1_TIME; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_getm_notBefore'); +end; + + +function ERR_X509_set1_notBefore(x: PX509; const tm: PASN1_TIME): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_set1_notBefore'); +end; + + +function ERR_X509_get0_notAfter(const x: PX509): PASN1_TIME; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get0_notAfter'); +end; + + +function ERR_X509_getm_notAfter(const x: PX509): PASN1_TIME; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_getm_notAfter'); +end; + + +function ERR_X509_set1_notAfter(x: PX509; const tm: PASN1_TIME): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_set1_notAfter'); +end; + + +function ERR_X509_up_ref(x: PX509): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_up_ref'); +end; + + +function ERR_X509_get_signature_type(const x: PX509): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get_signature_type'); +end; + + +function ERR_X509_get_X509_PUBKEY(const x: PX509): PX509_PUBKEY; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get_X509_PUBKEY'); +end; + + +procedure ERR_X509_get0_uids(const x: PX509; const piuid: PPASN1_BIT_STRING; const psuid: PPASN1_BIT_STRING); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get0_uids'); +end; + + +function ERR_X509_get0_tbs_sigalg(const x: PX509): PX509_ALGOR; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get0_tbs_sigalg'); +end; + + +function ERR_X509_get0_pubkey(const x: PX509): PEVP_PKEY; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_get0_pubkey'); +end; + + +function ERR_X509_REQ_get_version(const req: PX509_REQ): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_REQ_get_version'); +end; + + +function ERR_X509_REQ_get_subject_name(const req: PX509_REQ): PX509_NAME; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_REQ_get_subject_name'); +end; + + +procedure ERR_X509_REQ_get0_signature(const req: PX509_REQ; const psig: PPASN1_BIT_STRING; const palg: PPX509_ALGOR); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_REQ_get0_signature'); +end; + + +function ERR_X509_REQ_get_signature_nid(const req: PX509_REQ): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_REQ_get_signature_nid'); +end; + + +function ERR_i2d_re_X509_REQ_tbs(req: PX509_REQ; pp: PPByte): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('i2d_re_X509_REQ_tbs'); +end; + + +function ERR_X509_REQ_get0_pubkey(req: PX509_REQ): PEVP_PKEY; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_REQ_get0_pubkey'); +end; + + +function ERR_X509_REQ_get_X509_PUBKEY(req: PX509_REQ): PX509_PUBKEY; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_REQ_get_X509_PUBKEY'); +end; + + +function ERR_X509_CRL_set1_lastUpdate(x: PX509_CRL; const tm: PASN1_TIME): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_CRL_set1_lastUpdate'); +end; + + +function ERR_X509_CRL_set1_nextUpdate(x: PX509_CRL; const tm: PASN1_TIME): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_CRL_set1_nextUpdate'); +end; + + +function ERR_X509_CRL_up_ref(crl: PX509_CRL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_CRL_up_ref'); +end; + + +function ERR_X509_CRL_get_version(const crl: PX509_CRL): TIdC_LONG; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_CRL_get_version'); +end; + + +function ERR_X509_CRL_get0_lastUpdate(const crl: PX509_CRL): PASN1_TIME; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_CRL_get0_lastUpdate'); +end; + + +function ERR_X509_CRL_get0_nextUpdate(const crl: PX509_CRL): PASN1_TIME; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_CRL_get0_nextUpdate'); +end; + + +function ERR_X509_CRL_get_issuer(const crl: PX509_CRL): PX509_NAME; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_CRL_get_issuer'); +end; + + +procedure ERR_X509_CRL_get0_signature(const crl: PX509_CRL; const psig: PPASN1_BIT_STRING; const palg: PPX509_ALGOR); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_CRL_get0_signature'); +end; + + +function ERR_X509_CRL_get_signature_nid(const crl: PX509_CRL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_CRL_get_signature_nid'); +end; + + +function ERR_i2d_re_X509_CRL_tbs(req: PX509_CRL; pp: PPByte): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('i2d_re_X509_CRL_tbs'); +end; + + +function ERR_X509_REVOKED_get0_serialNumber(const x: PX509_REVOKED): PASN1_INTEGER; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_REVOKED_get0_serialNumber'); +end; + + +function ERR_X509_REVOKED_get0_revocationDate(const x: PX509_REVOKED): PASN1_TIME; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_REVOKED_get0_revocationDate'); +end; + + +function ERR_X509_NAME_hash(x: PX509_NAME): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_NAME_hash'); +end; + + +function ERR_X509_aux_print(out_: PBIO; x: PX509; indent: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_aux_print'); +end; + + +function ERR_X509_CRL_print_ex(out_: PBIO; x: PX509_CRL; nmflag: TIdC_ULONG): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_CRL_print_ex'); +end; + + +function ERR_X509_NAME_ENTRY_set(const ne: PX509_NAME_ENTRY): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_NAME_ENTRY_set'); +end; + + +function ERR_X509_NAME_get0_der(nm: PX509_NAME; const pder: PPByte; pderlen: PIdC_SIZET): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_NAME_get0_der'); +end; + + +function ERR_PKCS5_pbe2_set_scrypt(const cipher: PEVP_CIPHER; const salt: PByte; saltlen: TIdC_INT; aiv: PByte; N: TIdC_UINT64; r: TIdC_UINT64; p: TIdC_UINT64): PX509_ALGOR; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS5_pbe2_set_scrypt'); +end; + + +function ERR_PKCS8_pkey_add1_attr_by_NID(p8: PPKCS8_PRIV_KEY_INFO; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('PKCS8_pkey_add1_attr_by_NID'); +end; + + +function ERR_X509_NAME_hash_ex(const x: PX509_NAME; libctx: POSSL_LIB_CTX; const propq: PIdAnsiChar; ok: PIdC_INT): TIdC_ULONG; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_NAME_hash_ex'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + X509_CRL_set_default_method := LoadFunction('X509_CRL_set_default_method',AFailed); + X509_CRL_METHOD_free := LoadFunction('X509_CRL_METHOD_free',AFailed); + X509_CRL_set_meth_data := LoadFunction('X509_CRL_set_meth_data',AFailed); + X509_CRL_get_meth_data := LoadFunction('X509_CRL_get_meth_data',AFailed); + X509_verify_cert_error_string := LoadFunction('X509_verify_cert_error_string',AFailed); + X509_verify := LoadFunction('X509_verify',AFailed); + X509_REQ_verify := LoadFunction('X509_REQ_verify',AFailed); + X509_CRL_verify := LoadFunction('X509_CRL_verify',AFailed); + NETSCAPE_SPKI_verify := LoadFunction('NETSCAPE_SPKI_verify',AFailed); + NETSCAPE_SPKI_b64_decode := LoadFunction('NETSCAPE_SPKI_b64_decode',AFailed); + NETSCAPE_SPKI_b64_encode := LoadFunction('NETSCAPE_SPKI_b64_encode',AFailed); + NETSCAPE_SPKI_get_pubkey := LoadFunction('NETSCAPE_SPKI_get_pubkey',AFailed); + NETSCAPE_SPKI_set_pubkey := LoadFunction('NETSCAPE_SPKI_set_pubkey',AFailed); + NETSCAPE_SPKI_print := LoadFunction('NETSCAPE_SPKI_print',AFailed); + X509_signature_dump := LoadFunction('X509_signature_dump',AFailed); + X509_signature_print := LoadFunction('X509_signature_print',AFailed); + X509_sign := LoadFunction('X509_sign',AFailed); + X509_sign_ctx := LoadFunction('X509_sign_ctx',AFailed); + X509_REQ_sign := LoadFunction('X509_REQ_sign',AFailed); + X509_REQ_sign_ctx := LoadFunction('X509_REQ_sign_ctx',AFailed); + X509_CRL_sign := LoadFunction('X509_CRL_sign',AFailed); + X509_CRL_sign_ctx := LoadFunction('X509_CRL_sign_ctx',AFailed); + NETSCAPE_SPKI_sign := LoadFunction('NETSCAPE_SPKI_sign',AFailed); + X509_pubkey_digest := LoadFunction('X509_pubkey_digest',AFailed); + X509_digest := LoadFunction('X509_digest',AFailed); + X509_CRL_digest := LoadFunction('X509_CRL_digest',AFailed); + X509_REQ_digest := LoadFunction('X509_REQ_digest',AFailed); + X509_NAME_digest := LoadFunction('X509_NAME_digest',AFailed); + d2i_X509_bio := LoadFunction('d2i_X509_bio',AFailed); + i2d_X509_bio := LoadFunction('i2d_X509_bio',AFailed); + d2i_X509_CRL_bio := LoadFunction('d2i_X509_CRL_bio',AFailed); + i2d_X509_CRL_bio := LoadFunction('i2d_X509_CRL_bio',AFailed); + d2i_X509_REQ_bio := LoadFunction('d2i_X509_REQ_bio',AFailed); + i2d_X509_REQ_bio := LoadFunction('i2d_X509_REQ_bio',AFailed); + d2i_RSAPrivateKey_bio := LoadFunction('d2i_RSAPrivateKey_bio',AFailed); + i2d_RSAPrivateKey_bio := LoadFunction('i2d_RSAPrivateKey_bio',AFailed); + d2i_RSAPublicKey_bio := LoadFunction('d2i_RSAPublicKey_bio',AFailed); + i2d_RSAPublicKey_bio := LoadFunction('i2d_RSAPublicKey_bio',AFailed); + d2i_RSA_PUBKEY_bio := LoadFunction('d2i_RSA_PUBKEY_bio',AFailed); + i2d_RSA_PUBKEY_bio := LoadFunction('i2d_RSA_PUBKEY_bio',AFailed); + d2i_DSA_PUBKEY_bio := LoadFunction('d2i_DSA_PUBKEY_bio',AFailed); + i2d_DSA_PUBKEY_bio := LoadFunction('i2d_DSA_PUBKEY_bio',AFailed); + d2i_DSAPrivateKey_bio := LoadFunction('d2i_DSAPrivateKey_bio',AFailed); + i2d_DSAPrivateKey_bio := LoadFunction('i2d_DSAPrivateKey_bio',AFailed); + d2i_EC_PUBKEY_bio := LoadFunction('d2i_EC_PUBKEY_bio',AFailed); + i2d_EC_PUBKEY_bio := LoadFunction('i2d_EC_PUBKEY_bio',AFailed); + d2i_ECPrivateKey_bio := LoadFunction('d2i_ECPrivateKey_bio',AFailed); + i2d_ECPrivateKey_bio := LoadFunction('i2d_ECPrivateKey_bio',AFailed); + d2i_PKCS8_bio := LoadFunction('d2i_PKCS8_bio',AFailed); + i2d_PKCS8_bio := LoadFunction('i2d_PKCS8_bio',AFailed); + d2i_PKCS8_PRIV_KEY_INFO_bio := LoadFunction('d2i_PKCS8_PRIV_KEY_INFO_bio',AFailed); + i2d_PKCS8_PRIV_KEY_INFO_bio := LoadFunction('i2d_PKCS8_PRIV_KEY_INFO_bio',AFailed); + i2d_PKCS8PrivateKeyInfo_bio := LoadFunction('i2d_PKCS8PrivateKeyInfo_bio',AFailed); + i2d_PrivateKey_bio := LoadFunction('i2d_PrivateKey_bio',AFailed); + d2i_PrivateKey_bio := LoadFunction('d2i_PrivateKey_bio',AFailed); + i2d_PUBKEY_bio := LoadFunction('i2d_PUBKEY_bio',AFailed); + d2i_PUBKEY_bio := LoadFunction('d2i_PUBKEY_bio',AFailed); + X509_dup := LoadFunction('X509_dup',AFailed); + X509_ATTRIBUTE_dup := LoadFunction('X509_ATTRIBUTE_dup',AFailed); + X509_EXTENSION_dup := LoadFunction('X509_EXTENSION_dup',AFailed); + X509_CRL_dup := LoadFunction('X509_CRL_dup',AFailed); + X509_REVOKED_dup := LoadFunction('X509_REVOKED_dup',AFailed); + X509_REQ_dup := LoadFunction('X509_REQ_dup',AFailed); + X509_ALGOR_dup := LoadFunction('X509_ALGOR_dup',AFailed); + X509_ALGOR_set0 := LoadFunction('X509_ALGOR_set0',AFailed); + X509_ALGOR_get0 := LoadFunction('X509_ALGOR_get0',AFailed); + X509_ALGOR_set_md := LoadFunction('X509_ALGOR_set_md',AFailed); + X509_ALGOR_cmp := LoadFunction('X509_ALGOR_cmp',AFailed); + X509_NAME_dup := LoadFunction('X509_NAME_dup',AFailed); + X509_NAME_ENTRY_dup := LoadFunction('X509_NAME_ENTRY_dup',AFailed); + X509_cmp_time := LoadFunction('X509_cmp_time',AFailed); + X509_cmp_current_time := LoadFunction('X509_cmp_current_time',AFailed); + X509_time_adj := LoadFunction('X509_time_adj',AFailed); + X509_time_adj_ex := LoadFunction('X509_time_adj_ex',AFailed); + X509_gmtime_adj := LoadFunction('X509_gmtime_adj',AFailed); + X509_get_default_cert_area := LoadFunction('X509_get_default_cert_area',AFailed); + X509_get_default_cert_dir := LoadFunction('X509_get_default_cert_dir',AFailed); + X509_get_default_cert_file := LoadFunction('X509_get_default_cert_file',AFailed); + X509_get_default_cert_dir_env := LoadFunction('X509_get_default_cert_dir_env',AFailed); + X509_get_default_cert_file_env := LoadFunction('X509_get_default_cert_file_env',AFailed); + X509_get_default_private_dir := LoadFunction('X509_get_default_private_dir',AFailed); + X509_to_X509_REQ := LoadFunction('X509_to_X509_REQ',AFailed); + X509_REQ_to_X509 := LoadFunction('X509_REQ_to_X509',AFailed); + X509_ALGOR_new := LoadFunction('X509_ALGOR_new',AFailed); + X509_ALGOR_free := LoadFunction('X509_ALGOR_free',AFailed); + d2i_X509_ALGOR := LoadFunction('d2i_X509_ALGOR',AFailed); + i2d_X509_ALGOR := LoadFunction('i2d_X509_ALGOR',AFailed); + X509_VAL_new := LoadFunction('X509_VAL_new',AFailed); + X509_VAL_free := LoadFunction('X509_VAL_free',AFailed); + d2i_X509_VAL := LoadFunction('d2i_X509_VAL',AFailed); + i2d_X509_VAL := LoadFunction('i2d_X509_VAL',AFailed); + X509_PUBKEY_new := LoadFunction('X509_PUBKEY_new',AFailed); + X509_PUBKEY_free := LoadFunction('X509_PUBKEY_free',AFailed); + d2i_X509_PUBKEY := LoadFunction('d2i_X509_PUBKEY',AFailed); + i2d_X509_PUBKEY := LoadFunction('i2d_X509_PUBKEY',AFailed); + X509_PUBKEY_set := LoadFunction('X509_PUBKEY_set',AFailed); + X509_PUBKEY_get := LoadFunction('X509_PUBKEY_get',AFailed); + i2d_PUBKEY := LoadFunction('i2d_PUBKEY',AFailed); + d2i_PUBKEY := LoadFunction('d2i_PUBKEY',AFailed); + i2d_RSA_PUBKEY := LoadFunction('i2d_RSA_PUBKEY',AFailed); + d2i_RSA_PUBKEY := LoadFunction('d2i_RSA_PUBKEY',AFailed); + i2d_DSA_PUBKEY := LoadFunction('i2d_DSA_PUBKEY',AFailed); + d2i_DSA_PUBKEY := LoadFunction('d2i_DSA_PUBKEY',AFailed); + i2d_EC_PUBKEY := LoadFunction('i2d_EC_PUBKEY',AFailed); + d2i_EC_PUBKEY := LoadFunction('d2i_EC_PUBKEY',AFailed); + X509_SIG_new := LoadFunction('X509_SIG_new',AFailed); + X509_SIG_free := LoadFunction('X509_SIG_free',AFailed); + d2i_X509_SIG := LoadFunction('d2i_X509_SIG',AFailed); + i2d_X509_SIG := LoadFunction('i2d_X509_SIG',AFailed); + X509_REQ_INFO_new := LoadFunction('X509_REQ_INFO_new',AFailed); + X509_REQ_INFO_free := LoadFunction('X509_REQ_INFO_free',AFailed); + d2i_X509_REQ_INFO := LoadFunction('d2i_X509_REQ_INFO',AFailed); + i2d_X509_REQ_INFO := LoadFunction('i2d_X509_REQ_INFO',AFailed); + X509_REQ_new := LoadFunction('X509_REQ_new',AFailed); + X509_REQ_free := LoadFunction('X509_REQ_free',AFailed); + d2i_X509_REQ := LoadFunction('d2i_X509_REQ',AFailed); + i2d_X509_REQ := LoadFunction('i2d_X509_REQ',AFailed); + X509_ATTRIBUTE_new := LoadFunction('X509_ATTRIBUTE_new',AFailed); + X509_ATTRIBUTE_free := LoadFunction('X509_ATTRIBUTE_free',AFailed); + d2i_X509_ATTRIBUTE := LoadFunction('d2i_X509_ATTRIBUTE',AFailed); + i2d_X509_ATTRIBUTE := LoadFunction('i2d_X509_ATTRIBUTE',AFailed); + X509_ATTRIBUTE_create := LoadFunction('X509_ATTRIBUTE_create',AFailed); + X509_EXTENSION_new := LoadFunction('X509_EXTENSION_new',AFailed); + X509_EXTENSION_free := LoadFunction('X509_EXTENSION_free',AFailed); + d2i_X509_EXTENSION := LoadFunction('d2i_X509_EXTENSION',AFailed); + i2d_X509_EXTENSION := LoadFunction('i2d_X509_EXTENSION',AFailed); + X509_NAME_ENTRY_new := LoadFunction('X509_NAME_ENTRY_new',AFailed); + X509_NAME_ENTRY_free := LoadFunction('X509_NAME_ENTRY_free',AFailed); + d2i_X509_NAME_ENTRY := LoadFunction('d2i_X509_NAME_ENTRY',AFailed); + i2d_X509_NAME_ENTRY := LoadFunction('i2d_X509_NAME_ENTRY',AFailed); + X509_NAME_new := LoadFunction('X509_NAME_new',AFailed); + X509_NAME_free := LoadFunction('X509_NAME_free',AFailed); + d2i_X509_NAME := LoadFunction('d2i_X509_NAME',AFailed); + i2d_X509_NAME := LoadFunction('i2d_X509_NAME',AFailed); + X509_NAME_set := LoadFunction('X509_NAME_set',AFailed); + X509_new := LoadFunction('X509_new',AFailed); + X509_free := LoadFunction('X509_free',AFailed); + d2i_X509 := LoadFunction('d2i_X509',AFailed); + i2d_X509 := LoadFunction('i2d_X509',AFailed); + X509_set_ex_data := LoadFunction('X509_set_ex_data',AFailed); + X509_get_ex_data := LoadFunction('X509_get_ex_data',AFailed); + i2d_X509_AUX := LoadFunction('i2d_X509_AUX',AFailed); + d2i_X509_AUX := LoadFunction('d2i_X509_AUX',AFailed); + i2d_re_X509_tbs := LoadFunction('i2d_re_X509_tbs',AFailed); + X509_get_signature_nid := LoadFunction('X509_get_signature_nid',AFailed); + X509_alias_set1 := LoadFunction('X509_alias_set1',AFailed); + X509_keyid_set1 := LoadFunction('X509_keyid_set1',AFailed); + X509_alias_get0 := LoadFunction('X509_alias_get0',AFailed); + X509_keyid_get0 := LoadFunction('X509_keyid_get0',AFailed); + X509_TRUST_set := LoadFunction('X509_TRUST_set',AFailed); + X509_add1_trust_object := LoadFunction('X509_add1_trust_object',AFailed); + X509_add1_reject_object := LoadFunction('X509_add1_reject_object',AFailed); + X509_trust_clear := LoadFunction('X509_trust_clear',AFailed); + X509_reject_clear := LoadFunction('X509_reject_clear',AFailed); + X509_REVOKED_new := LoadFunction('X509_REVOKED_new',AFailed); + X509_REVOKED_free := LoadFunction('X509_REVOKED_free',AFailed); + d2i_X509_REVOKED := LoadFunction('d2i_X509_REVOKED',AFailed); + i2d_X509_REVOKED := LoadFunction('i2d_X509_REVOKED',AFailed); + X509_CRL_INFO_new := LoadFunction('X509_CRL_INFO_new',AFailed); + X509_CRL_INFO_free := LoadFunction('X509_CRL_INFO_free',AFailed); + d2i_X509_CRL_INFO := LoadFunction('d2i_X509_CRL_INFO',AFailed); + i2d_X509_CRL_INFO := LoadFunction('i2d_X509_CRL_INFO',AFailed); + X509_CRL_new := LoadFunction('X509_CRL_new',AFailed); + X509_CRL_free := LoadFunction('X509_CRL_free',AFailed); + d2i_X509_CRL := LoadFunction('d2i_X509_CRL',AFailed); + i2d_X509_CRL := LoadFunction('i2d_X509_CRL',AFailed); + X509_CRL_add0_revoked := LoadFunction('X509_CRL_add0_revoked',AFailed); + X509_CRL_get0_by_serial := LoadFunction('X509_CRL_get0_by_serial',AFailed); + X509_CRL_get0_by_cert := LoadFunction('X509_CRL_get0_by_cert',AFailed); + X509_PKEY_new := LoadFunction('X509_PKEY_new',AFailed); + X509_PKEY_free := LoadFunction('X509_PKEY_free',AFailed); + X509_INFO_new := LoadFunction('X509_INFO_new',AFailed); + X509_INFO_free := LoadFunction('X509_INFO_free',AFailed); + X509_NAME_oneline := LoadFunction('X509_NAME_oneline',AFailed); + ASN1_item_digest := LoadFunction('ASN1_item_digest',AFailed); + ASN1_item_verify := LoadFunction('ASN1_item_verify',AFailed); + ASN1_item_sign := LoadFunction('ASN1_item_sign',AFailed); + ASN1_item_sign_ctx := LoadFunction('ASN1_item_sign_ctx',AFailed); + X509_set_version := LoadFunction('X509_set_version',AFailed); + X509_set_serialNumber := LoadFunction('X509_set_serialNumber',AFailed); + X509_get_serialNumber := LoadFunction('X509_get_serialNumber',AFailed); + X509_set_issuer_name := LoadFunction('X509_set_issuer_name',AFailed); + X509_get_issuer_name := LoadFunction('X509_get_issuer_name',AFailed); + X509_set_subject_name := LoadFunction('X509_set_subject_name',AFailed); + X509_get_subject_name := LoadFunction('X509_get_subject_name',AFailed); + X509_set_pubkey := LoadFunction('X509_set_pubkey',AFailed); + X509_get_pubkey := LoadFunction('X509_get_pubkey',AFailed); + X509_get0_pubkey_bitstr := LoadFunction('X509_get0_pubkey_bitstr',AFailed); + X509_certificate_type := LoadFunction('X509_certificate_type',AFailed); + X509_REQ_set_version := LoadFunction('X509_REQ_set_version',AFailed); + X509_REQ_set_subject_name := LoadFunction('X509_REQ_set_subject_name',AFailed); + X509_REQ_set_pubkey := LoadFunction('X509_REQ_set_pubkey',AFailed); + X509_REQ_get_pubkey := LoadFunction('X509_REQ_get_pubkey',AFailed); + X509_REQ_extension_nid := LoadFunction('X509_REQ_extension_nid',AFailed); + X509_REQ_get_extension_nids := LoadFunction('X509_REQ_get_extension_nids',AFailed); + X509_REQ_set_extension_nids := LoadFunction('X509_REQ_set_extension_nids',AFailed); + X509_REQ_get_attr_count := LoadFunction('X509_REQ_get_attr_count',AFailed); + X509_REQ_get_attr_by_NID := LoadFunction('X509_REQ_get_attr_by_NID',AFailed); + X509_REQ_get_attr_by_OBJ := LoadFunction('X509_REQ_get_attr_by_OBJ',AFailed); + X509_REQ_get_attr := LoadFunction('X509_REQ_get_attr',AFailed); + X509_REQ_delete_attr := LoadFunction('X509_REQ_delete_attr',AFailed); + X509_REQ_add1_attr := LoadFunction('X509_REQ_add1_attr',AFailed); + X509_REQ_add1_attr_by_OBJ := LoadFunction('X509_REQ_add1_attr_by_OBJ',AFailed); + X509_REQ_add1_attr_by_NID := LoadFunction('X509_REQ_add1_attr_by_NID',AFailed); + X509_REQ_add1_attr_by_txt := LoadFunction('X509_REQ_add1_attr_by_txt',AFailed); + X509_CRL_set_version := LoadFunction('X509_CRL_set_version',AFailed); + X509_CRL_set_issuer_name := LoadFunction('X509_CRL_set_issuer_name',AFailed); + X509_CRL_sort := LoadFunction('X509_CRL_sort',AFailed); + X509_REVOKED_set_serialNumber := LoadFunction('X509_REVOKED_set_serialNumber',AFailed); + X509_REVOKED_set_revocationDate := LoadFunction('X509_REVOKED_set_revocationDate',AFailed); + X509_CRL_diff := LoadFunction('X509_CRL_diff',AFailed); + X509_REQ_check_private_key := LoadFunction('X509_REQ_check_private_key',AFailed); + X509_check_private_key := LoadFunction('X509_check_private_key',AFailed); + X509_CRL_check_suiteb := LoadFunction('X509_CRL_check_suiteb',AFailed); + X509_issuer_and_serial_cmp := LoadFunction('X509_issuer_and_serial_cmp',AFailed); + X509_issuer_and_serial_hash := LoadFunction('X509_issuer_and_serial_hash',AFailed); + X509_issuer_name_cmp := LoadFunction('X509_issuer_name_cmp',AFailed); + X509_issuer_name_hash := LoadFunction('X509_issuer_name_hash',AFailed); + X509_subject_name_cmp := LoadFunction('X509_subject_name_cmp',AFailed); + X509_subject_name_hash := LoadFunction('X509_subject_name_hash',AFailed); + X509_cmp := LoadFunction('X509_cmp',AFailed); + X509_NAME_cmp := LoadFunction('X509_NAME_cmp',AFailed); + X509_NAME_hash_old := LoadFunction('X509_NAME_hash_old',AFailed); + X509_CRL_cmp := LoadFunction('X509_CRL_cmp',AFailed); + X509_CRL_match := LoadFunction('X509_CRL_match',AFailed); + X509_NAME_print := LoadFunction('X509_NAME_print',AFailed); + X509_NAME_print_ex := LoadFunction('X509_NAME_print_ex',AFailed); + X509_print_ex := LoadFunction('X509_print_ex',AFailed); + X509_print := LoadFunction('X509_print',AFailed); + X509_ocspid_print := LoadFunction('X509_ocspid_print',AFailed); + X509_CRL_print := LoadFunction('X509_CRL_print',AFailed); + X509_REQ_print_ex := LoadFunction('X509_REQ_print_ex',AFailed); + X509_REQ_print := LoadFunction('X509_REQ_print',AFailed); + X509_NAME_entry_count := LoadFunction('X509_NAME_entry_count',AFailed); + X509_NAME_get_text_by_NID := LoadFunction('X509_NAME_get_text_by_NID',AFailed); + X509_NAME_get_text_by_OBJ := LoadFunction('X509_NAME_get_text_by_OBJ',AFailed); + X509_NAME_get_index_by_NID := LoadFunction('X509_NAME_get_index_by_NID',AFailed); + X509_NAME_get_index_by_OBJ := LoadFunction('X509_NAME_get_index_by_OBJ',AFailed); + X509_NAME_get_entry := LoadFunction('X509_NAME_get_entry',AFailed); + X509_NAME_delete_entry := LoadFunction('X509_NAME_delete_entry',AFailed); + X509_NAME_add_entry := LoadFunction('X509_NAME_add_entry',AFailed); + X509_NAME_add_entry_by_OBJ := LoadFunction('X509_NAME_add_entry_by_OBJ',AFailed); + X509_NAME_add_entry_by_NID := LoadFunction('X509_NAME_add_entry_by_NID',AFailed); + X509_NAME_ENTRY_create_by_txt := LoadFunction('X509_NAME_ENTRY_create_by_txt',AFailed); + X509_NAME_ENTRY_create_by_NID := LoadFunction('X509_NAME_ENTRY_create_by_NID',AFailed); + X509_NAME_add_entry_by_txt := LoadFunction('X509_NAME_add_entry_by_txt',AFailed); + X509_NAME_ENTRY_create_by_OBJ := LoadFunction('X509_NAME_ENTRY_create_by_OBJ',AFailed); + X509_NAME_ENTRY_set_object := LoadFunction('X509_NAME_ENTRY_set_object',AFailed); + X509_NAME_ENTRY_set_data := LoadFunction('X509_NAME_ENTRY_set_data',AFailed); + X509_NAME_ENTRY_get_object := LoadFunction('X509_NAME_ENTRY_get_object',AFailed); + X509_NAME_ENTRY_get_data := LoadFunction('X509_NAME_ENTRY_get_data',AFailed); + X509_get_ext_count := LoadFunction('X509_get_ext_count',AFailed); + X509_get_ext_by_NID := LoadFunction('X509_get_ext_by_NID',AFailed); + X509_get_ext_by_OBJ := LoadFunction('X509_get_ext_by_OBJ',AFailed); + X509_get_ext_by_critical := LoadFunction('X509_get_ext_by_critical',AFailed); + X509_get_ext := LoadFunction('X509_get_ext',AFailed); + X509_delete_ext := LoadFunction('X509_delete_ext',AFailed); + X509_add_ext := LoadFunction('X509_add_ext',AFailed); + X509_get_ext_d2i := LoadFunction('X509_get_ext_d2i',AFailed); + X509_add1_ext_i2d := LoadFunction('X509_add1_ext_i2d',AFailed); + X509_CRL_get_ext_count := LoadFunction('X509_CRL_get_ext_count',AFailed); + X509_CRL_get_ext_by_NID := LoadFunction('X509_CRL_get_ext_by_NID',AFailed); + X509_CRL_get_ext_by_OBJ := LoadFunction('X509_CRL_get_ext_by_OBJ',AFailed); + X509_CRL_get_ext_by_critical := LoadFunction('X509_CRL_get_ext_by_critical',AFailed); + X509_CRL_get_ext := LoadFunction('X509_CRL_get_ext',AFailed); + X509_CRL_delete_ext := LoadFunction('X509_CRL_delete_ext',AFailed); + X509_CRL_add_ext := LoadFunction('X509_CRL_add_ext',AFailed); + X509_CRL_get_ext_d2i := LoadFunction('X509_CRL_get_ext_d2i',AFailed); + X509_CRL_add1_ext_i2d := LoadFunction('X509_CRL_add1_ext_i2d',AFailed); + X509_REVOKED_get_ext_count := LoadFunction('X509_REVOKED_get_ext_count',AFailed); + X509_REVOKED_get_ext_by_NID := LoadFunction('X509_REVOKED_get_ext_by_NID',AFailed); + X509_REVOKED_get_ext_by_OBJ := LoadFunction('X509_REVOKED_get_ext_by_OBJ',AFailed); + X509_REVOKED_get_ext_by_critical := LoadFunction('X509_REVOKED_get_ext_by_critical',AFailed); + X509_REVOKED_get_ext := LoadFunction('X509_REVOKED_get_ext',AFailed); + X509_REVOKED_delete_ext := LoadFunction('X509_REVOKED_delete_ext',AFailed); + X509_REVOKED_add_ext := LoadFunction('X509_REVOKED_add_ext',AFailed); + X509_REVOKED_get_ext_d2i := LoadFunction('X509_REVOKED_get_ext_d2i',AFailed); + X509_REVOKED_add1_ext_i2d := LoadFunction('X509_REVOKED_add1_ext_i2d',AFailed); + X509_EXTENSION_create_by_NID := LoadFunction('X509_EXTENSION_create_by_NID',AFailed); + X509_EXTENSION_create_by_OBJ := LoadFunction('X509_EXTENSION_create_by_OBJ',AFailed); + X509_EXTENSION_set_object := LoadFunction('X509_EXTENSION_set_object',AFailed); + X509_EXTENSION_set_critical := LoadFunction('X509_EXTENSION_set_critical',AFailed); + X509_EXTENSION_set_data := LoadFunction('X509_EXTENSION_set_data',AFailed); + X509_EXTENSION_get_object := LoadFunction('X509_EXTENSION_get_object',AFailed); + X509_EXTENSION_get_data := LoadFunction('X509_EXTENSION_get_data',AFailed); + X509_EXTENSION_get_critical := LoadFunction('X509_EXTENSION_get_critical',AFailed); + X509_ATTRIBUTE_create_by_NID := LoadFunction('X509_ATTRIBUTE_create_by_NID',AFailed); + X509_ATTRIBUTE_create_by_OBJ := LoadFunction('X509_ATTRIBUTE_create_by_OBJ',AFailed); + X509_ATTRIBUTE_create_by_txt := LoadFunction('X509_ATTRIBUTE_create_by_txt',AFailed); + X509_ATTRIBUTE_set1_object := LoadFunction('X509_ATTRIBUTE_set1_object',AFailed); + X509_ATTRIBUTE_set1_data := LoadFunction('X509_ATTRIBUTE_set1_data',AFailed); + X509_ATTRIBUTE_get0_data := LoadFunction('X509_ATTRIBUTE_get0_data',AFailed); + X509_ATTRIBUTE_count := LoadFunction('X509_ATTRIBUTE_count',AFailed); + X509_ATTRIBUTE_get0_object := LoadFunction('X509_ATTRIBUTE_get0_object',AFailed); + X509_ATTRIBUTE_get0_type := LoadFunction('X509_ATTRIBUTE_get0_type',AFailed); + EVP_PKEY_get_attr_count := LoadFunction('EVP_PKEY_get_attr_count',AFailed); + EVP_PKEY_get_attr_by_NID := LoadFunction('EVP_PKEY_get_attr_by_NID',AFailed); + EVP_PKEY_get_attr_by_OBJ := LoadFunction('EVP_PKEY_get_attr_by_OBJ',AFailed); + EVP_PKEY_get_attr := LoadFunction('EVP_PKEY_get_attr',AFailed); + EVP_PKEY_delete_attr := LoadFunction('EVP_PKEY_delete_attr',AFailed); + EVP_PKEY_add1_attr := LoadFunction('EVP_PKEY_add1_attr',AFailed); + EVP_PKEY_add1_attr_by_OBJ := LoadFunction('EVP_PKEY_add1_attr_by_OBJ',AFailed); + EVP_PKEY_add1_attr_by_NID := LoadFunction('EVP_PKEY_add1_attr_by_NID',AFailed); + EVP_PKEY_add1_attr_by_txt := LoadFunction('EVP_PKEY_add1_attr_by_txt',AFailed); + X509_verify_cert := LoadFunction('X509_verify_cert',AFailed); + PKCS5_pbe_set0_algor := LoadFunction('PKCS5_pbe_set0_algor',AFailed); + PKCS5_pbe_set := LoadFunction('PKCS5_pbe_set',AFailed); + PKCS5_pbe2_set := LoadFunction('PKCS5_pbe2_set',AFailed); + PKCS5_pbe2_set_iv := LoadFunction('PKCS5_pbe2_set_iv',AFailed); + PKCS5_pbkdf2_set := LoadFunction('PKCS5_pbkdf2_set',AFailed); + EVP_PKCS82PKEY := LoadFunction('EVP_PKCS82PKEY',AFailed); + EVP_PKEY2PKCS8 := LoadFunction('EVP_PKEY2PKCS8',AFailed); + PKCS8_pkey_set0 := LoadFunction('PKCS8_pkey_set0',AFailed); + PKCS8_pkey_get0 := LoadFunction('PKCS8_pkey_get0',AFailed); + X509_PUBKEY_set0_param := LoadFunction('X509_PUBKEY_set0_param',AFailed); + X509_PUBKEY_get0_param := LoadFunction('X509_PUBKEY_get0_param',AFailed); + X509_check_trust := LoadFunction('X509_check_trust',AFailed); + X509_TRUST_get_count := LoadFunction('X509_TRUST_get_count',AFailed); + X509_TRUST_get0 := LoadFunction('X509_TRUST_get0',AFailed); + X509_TRUST_get_by_id := LoadFunction('X509_TRUST_get_by_id',AFailed); + X509_TRUST_cleanup := LoadFunction('X509_TRUST_cleanup',AFailed); + X509_TRUST_get_flags := LoadFunction('X509_TRUST_get_flags',AFailed); + X509_TRUST_get0_name := LoadFunction('X509_TRUST_get0_name',AFailed); + X509_TRUST_get_trust := LoadFunction('X509_TRUST_get_trust',AFailed); + X509_http_nbio := LoadFunction('X509_http_nbio',nil); {removed 3.0.0} + X509_CRL_http_nbio := LoadFunction('X509_CRL_http_nbio',nil); {removed 3.0.0} + X509_PUBKEY_get0 := LoadFunction('X509_PUBKEY_get0',nil); {introduced 1.1.0} + X509_get_pathlen := LoadFunction('X509_get_pathlen',nil); {introduced 1.1.0} + X509_SIG_get0 := LoadFunction('X509_SIG_get0',nil); {introduced 1.1.0} + X509_SIG_getm := LoadFunction('X509_SIG_getm',nil); {introduced 1.1.0} + X509_SIG_INFO_get := LoadFunction('X509_SIG_INFO_get',nil); {introduced 1.1.0} + X509_SIG_INFO_set := LoadFunction('X509_SIG_INFO_set',nil); {introduced 1.1.0} + X509_get_signature_info := LoadFunction('X509_get_signature_info',nil); {introduced 1.1.0} + X509_get0_signature := LoadFunction('X509_get0_signature',nil); {introduced 1.1.0} + X509_trusted := LoadFunction('X509_trusted',nil); {introduced 1.1.0} + X509_get_version := LoadFunction('X509_get_version',nil); {introduced 1.1.0} + X509_get0_serialNumber := LoadFunction('X509_get0_serialNumber',nil); {introduced 1.1.0} + X509_get0_notBefore := LoadFunction('X509_get0_notBefore',nil); {introduced 1.1.0} + X509_getm_notBefore := LoadFunction('X509_getm_notBefore',nil); {introduced 1.1.0} + X509_set1_notBefore := LoadFunction('X509_set1_notBefore',nil); {introduced 1.1.0} + X509_get0_notAfter := LoadFunction('X509_get0_notAfter',nil); {introduced 1.1.0} + X509_getm_notAfter := LoadFunction('X509_getm_notAfter',nil); {introduced 1.1.0} + X509_set1_notAfter := LoadFunction('X509_set1_notAfter',nil); {introduced 1.1.0} + X509_up_ref := LoadFunction('X509_up_ref',nil); {introduced 1.1.0} + X509_get_signature_type := LoadFunction('X509_get_signature_type',nil); {introduced 1.1.0} + X509_get_X509_PUBKEY := LoadFunction('X509_get_X509_PUBKEY',nil); {introduced 1.1.0} + X509_get0_uids := LoadFunction('X509_get0_uids',nil); {introduced 1.1.0} + X509_get0_tbs_sigalg := LoadFunction('X509_get0_tbs_sigalg',nil); {introduced 1.1.0} + X509_get0_pubkey := LoadFunction('X509_get0_pubkey',nil); {introduced 1.1.0} + X509_REQ_get_version := LoadFunction('X509_REQ_get_version',nil); {introduced 1.1.0} + X509_REQ_get_subject_name := LoadFunction('X509_REQ_get_subject_name',nil); {introduced 1.1.0} + X509_REQ_get0_signature := LoadFunction('X509_REQ_get0_signature',nil); {introduced 1.1.0} + X509_REQ_get_signature_nid := LoadFunction('X509_REQ_get_signature_nid',nil); {introduced 1.1.0} + i2d_re_X509_REQ_tbs := LoadFunction('i2d_re_X509_REQ_tbs',nil); {introduced 1.1.0} + X509_REQ_get0_pubkey := LoadFunction('X509_REQ_get0_pubkey',nil); {introduced 1.1.0} + X509_REQ_get_X509_PUBKEY := LoadFunction('X509_REQ_get_X509_PUBKEY',nil); {introduced 1.1.0} + X509_CRL_set1_lastUpdate := LoadFunction('X509_CRL_set1_lastUpdate',nil); {introduced 1.1.0} + X509_CRL_set1_nextUpdate := LoadFunction('X509_CRL_set1_nextUpdate',nil); {introduced 1.1.0} + X509_CRL_up_ref := LoadFunction('X509_CRL_up_ref',nil); {introduced 1.1.0} + X509_CRL_get_version := LoadFunction('X509_CRL_get_version',nil); {introduced 1.1.0} + X509_CRL_get0_lastUpdate := LoadFunction('X509_CRL_get0_lastUpdate',nil); {introduced 1.1.0} + X509_CRL_get0_nextUpdate := LoadFunction('X509_CRL_get0_nextUpdate',nil); {introduced 1.1.0} + X509_CRL_get_issuer := LoadFunction('X509_CRL_get_issuer',nil); {introduced 1.1.0} + X509_CRL_get0_signature := LoadFunction('X509_CRL_get0_signature',nil); {introduced 1.1.0} + X509_CRL_get_signature_nid := LoadFunction('X509_CRL_get_signature_nid',nil); {introduced 1.1.0} + i2d_re_X509_CRL_tbs := LoadFunction('i2d_re_X509_CRL_tbs',nil); {introduced 1.1.0} + X509_REVOKED_get0_serialNumber := LoadFunction('X509_REVOKED_get0_serialNumber',nil); {introduced 1.1.0} + X509_REVOKED_get0_revocationDate := LoadFunction('X509_REVOKED_get0_revocationDate',nil); {introduced 1.1.0} + X509_NAME_hash := LoadFunction('X509_NAME_hash',nil); {removed 3.0.0} + X509_aux_print := LoadFunction('X509_aux_print',nil); {introduced 1.1.0} + X509_CRL_print_ex := LoadFunction('X509_CRL_print_ex',nil); {introduced 1.1.0} + X509_NAME_ENTRY_set := LoadFunction('X509_NAME_ENTRY_set',nil); {introduced 1.1.0} + X509_NAME_get0_der := LoadFunction('X509_NAME_get0_der',nil); {introduced 1.1.0} + PKCS5_pbe2_set_scrypt := LoadFunction('PKCS5_pbe2_set_scrypt',nil); {introduced 1.1.0} + PKCS8_pkey_add1_attr_by_NID := LoadFunction('PKCS8_pkey_add1_attr_by_NID',nil); {introduced 1.1.0} + X509_NAME_hash_ex := LoadFunction('X509_NAME_hash_ex',nil); {introduced 3.0.0} + if not assigned(X509_http_nbio) then + begin + {$if declared(X509_http_nbio_introduced)} + if LibVersion < X509_http_nbio_introduced then + {$if declared(FC_X509_http_nbio)} + X509_http_nbio := @FC_X509_http_nbio + {$else} + X509_http_nbio := @ERR_X509_http_nbio + {$ifend} + else + {$ifend} + {$if declared(X509_http_nbio_removed)} + if X509_http_nbio_removed <= LibVersion then + {$if declared(_X509_http_nbio)} + X509_http_nbio := @_X509_http_nbio + {$else} + {$IF declared(ERR_X509_http_nbio)} + X509_http_nbio := @ERR_X509_http_nbio + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_http_nbio) and Assigned(AFailed) then + AFailed.Add('X509_http_nbio'); + end; + + + if not assigned(X509_CRL_http_nbio) then + begin + {$if declared(X509_CRL_http_nbio_introduced)} + if LibVersion < X509_CRL_http_nbio_introduced then + {$if declared(FC_X509_CRL_http_nbio)} + X509_CRL_http_nbio := @FC_X509_CRL_http_nbio + {$else} + X509_CRL_http_nbio := @ERR_X509_CRL_http_nbio + {$ifend} + else + {$ifend} + {$if declared(X509_CRL_http_nbio_removed)} + if X509_CRL_http_nbio_removed <= LibVersion then + {$if declared(_X509_CRL_http_nbio)} + X509_CRL_http_nbio := @_X509_CRL_http_nbio + {$else} + {$IF declared(ERR_X509_CRL_http_nbio)} + X509_CRL_http_nbio := @ERR_X509_CRL_http_nbio + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_CRL_http_nbio) and Assigned(AFailed) then + AFailed.Add('X509_CRL_http_nbio'); + end; + + + if not assigned(X509_PUBKEY_get0) then + begin + {$if declared(X509_PUBKEY_get0_introduced)} + if LibVersion < X509_PUBKEY_get0_introduced then + {$if declared(FC_X509_PUBKEY_get0)} + X509_PUBKEY_get0 := @FC_X509_PUBKEY_get0 + {$else} + X509_PUBKEY_get0 := @ERR_X509_PUBKEY_get0 + {$ifend} + else + {$ifend} + {$if declared(X509_PUBKEY_get0_removed)} + if X509_PUBKEY_get0_removed <= LibVersion then + {$if declared(_X509_PUBKEY_get0)} + X509_PUBKEY_get0 := @_X509_PUBKEY_get0 + {$else} + {$IF declared(ERR_X509_PUBKEY_get0)} + X509_PUBKEY_get0 := @ERR_X509_PUBKEY_get0 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_PUBKEY_get0) and Assigned(AFailed) then + AFailed.Add('X509_PUBKEY_get0'); + end; + + + if not assigned(X509_get_pathlen) then + begin + {$if declared(X509_get_pathlen_introduced)} + if LibVersion < X509_get_pathlen_introduced then + {$if declared(FC_X509_get_pathlen)} + X509_get_pathlen := @FC_X509_get_pathlen + {$else} + X509_get_pathlen := @ERR_X509_get_pathlen + {$ifend} + else + {$ifend} + {$if declared(X509_get_pathlen_removed)} + if X509_get_pathlen_removed <= LibVersion then + {$if declared(_X509_get_pathlen)} + X509_get_pathlen := @_X509_get_pathlen + {$else} + {$IF declared(ERR_X509_get_pathlen)} + X509_get_pathlen := @ERR_X509_get_pathlen + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get_pathlen) and Assigned(AFailed) then + AFailed.Add('X509_get_pathlen'); + end; + + + if not assigned(X509_SIG_get0) then + begin + {$if declared(X509_SIG_get0_introduced)} + if LibVersion < X509_SIG_get0_introduced then + {$if declared(FC_X509_SIG_get0)} + X509_SIG_get0 := @FC_X509_SIG_get0 + {$else} + X509_SIG_get0 := @ERR_X509_SIG_get0 + {$ifend} + else + {$ifend} + {$if declared(X509_SIG_get0_removed)} + if X509_SIG_get0_removed <= LibVersion then + {$if declared(_X509_SIG_get0)} + X509_SIG_get0 := @_X509_SIG_get0 + {$else} + {$IF declared(ERR_X509_SIG_get0)} + X509_SIG_get0 := @ERR_X509_SIG_get0 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_SIG_get0) and Assigned(AFailed) then + AFailed.Add('X509_SIG_get0'); + end; + + + if not assigned(X509_SIG_getm) then + begin + {$if declared(X509_SIG_getm_introduced)} + if LibVersion < X509_SIG_getm_introduced then + {$if declared(FC_X509_SIG_getm)} + X509_SIG_getm := @FC_X509_SIG_getm + {$else} + X509_SIG_getm := @ERR_X509_SIG_getm + {$ifend} + else + {$ifend} + {$if declared(X509_SIG_getm_removed)} + if X509_SIG_getm_removed <= LibVersion then + {$if declared(_X509_SIG_getm)} + X509_SIG_getm := @_X509_SIG_getm + {$else} + {$IF declared(ERR_X509_SIG_getm)} + X509_SIG_getm := @ERR_X509_SIG_getm + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_SIG_getm) and Assigned(AFailed) then + AFailed.Add('X509_SIG_getm'); + end; + + + if not assigned(X509_SIG_INFO_get) then + begin + {$if declared(X509_SIG_INFO_get_introduced)} + if LibVersion < X509_SIG_INFO_get_introduced then + {$if declared(FC_X509_SIG_INFO_get)} + X509_SIG_INFO_get := @FC_X509_SIG_INFO_get + {$else} + X509_SIG_INFO_get := @ERR_X509_SIG_INFO_get + {$ifend} + else + {$ifend} + {$if declared(X509_SIG_INFO_get_removed)} + if X509_SIG_INFO_get_removed <= LibVersion then + {$if declared(_X509_SIG_INFO_get)} + X509_SIG_INFO_get := @_X509_SIG_INFO_get + {$else} + {$IF declared(ERR_X509_SIG_INFO_get)} + X509_SIG_INFO_get := @ERR_X509_SIG_INFO_get + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_SIG_INFO_get) and Assigned(AFailed) then + AFailed.Add('X509_SIG_INFO_get'); + end; + + + if not assigned(X509_SIG_INFO_set) then + begin + {$if declared(X509_SIG_INFO_set_introduced)} + if LibVersion < X509_SIG_INFO_set_introduced then + {$if declared(FC_X509_SIG_INFO_set)} + X509_SIG_INFO_set := @FC_X509_SIG_INFO_set + {$else} + X509_SIG_INFO_set := @ERR_X509_SIG_INFO_set + {$ifend} + else + {$ifend} + {$if declared(X509_SIG_INFO_set_removed)} + if X509_SIG_INFO_set_removed <= LibVersion then + {$if declared(_X509_SIG_INFO_set)} + X509_SIG_INFO_set := @_X509_SIG_INFO_set + {$else} + {$IF declared(ERR_X509_SIG_INFO_set)} + X509_SIG_INFO_set := @ERR_X509_SIG_INFO_set + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_SIG_INFO_set) and Assigned(AFailed) then + AFailed.Add('X509_SIG_INFO_set'); + end; + + + if not assigned(X509_get_signature_info) then + begin + {$if declared(X509_get_signature_info_introduced)} + if LibVersion < X509_get_signature_info_introduced then + {$if declared(FC_X509_get_signature_info)} + X509_get_signature_info := @FC_X509_get_signature_info + {$else} + X509_get_signature_info := @ERR_X509_get_signature_info + {$ifend} + else + {$ifend} + {$if declared(X509_get_signature_info_removed)} + if X509_get_signature_info_removed <= LibVersion then + {$if declared(_X509_get_signature_info)} + X509_get_signature_info := @_X509_get_signature_info + {$else} + {$IF declared(ERR_X509_get_signature_info)} + X509_get_signature_info := @ERR_X509_get_signature_info + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get_signature_info) and Assigned(AFailed) then + AFailed.Add('X509_get_signature_info'); + end; + + + if not assigned(X509_get0_signature) then + begin + {$if declared(X509_get0_signature_introduced)} + if LibVersion < X509_get0_signature_introduced then + {$if declared(FC_X509_get0_signature)} + X509_get0_signature := @FC_X509_get0_signature + {$else} + X509_get0_signature := @ERR_X509_get0_signature + {$ifend} + else + {$ifend} + {$if declared(X509_get0_signature_removed)} + if X509_get0_signature_removed <= LibVersion then + {$if declared(_X509_get0_signature)} + X509_get0_signature := @_X509_get0_signature + {$else} + {$IF declared(ERR_X509_get0_signature)} + X509_get0_signature := @ERR_X509_get0_signature + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get0_signature) and Assigned(AFailed) then + AFailed.Add('X509_get0_signature'); + end; + + + if not assigned(X509_trusted) then + begin + {$if declared(X509_trusted_introduced)} + if LibVersion < X509_trusted_introduced then + {$if declared(FC_X509_trusted)} + X509_trusted := @FC_X509_trusted + {$else} + X509_trusted := @ERR_X509_trusted + {$ifend} + else + {$ifend} + {$if declared(X509_trusted_removed)} + if X509_trusted_removed <= LibVersion then + {$if declared(_X509_trusted)} + X509_trusted := @_X509_trusted + {$else} + {$IF declared(ERR_X509_trusted)} + X509_trusted := @ERR_X509_trusted + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_trusted) and Assigned(AFailed) then + AFailed.Add('X509_trusted'); + end; + + + if not assigned(X509_get_version) then + begin + {$if declared(X509_get_version_introduced)} + if LibVersion < X509_get_version_introduced then + {$if declared(FC_X509_get_version)} + X509_get_version := @FC_X509_get_version + {$else} + X509_get_version := @ERR_X509_get_version + {$ifend} + else + {$ifend} + {$if declared(X509_get_version_removed)} + if X509_get_version_removed <= LibVersion then + {$if declared(_X509_get_version)} + X509_get_version := @_X509_get_version + {$else} + {$IF declared(ERR_X509_get_version)} + X509_get_version := @ERR_X509_get_version + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get_version) and Assigned(AFailed) then + AFailed.Add('X509_get_version'); + end; + + + if not assigned(X509_get0_serialNumber) then + begin + {$if declared(X509_get0_serialNumber_introduced)} + if LibVersion < X509_get0_serialNumber_introduced then + {$if declared(FC_X509_get0_serialNumber)} + X509_get0_serialNumber := @FC_X509_get0_serialNumber + {$else} + X509_get0_serialNumber := @ERR_X509_get0_serialNumber + {$ifend} + else + {$ifend} + {$if declared(X509_get0_serialNumber_removed)} + if X509_get0_serialNumber_removed <= LibVersion then + {$if declared(_X509_get0_serialNumber)} + X509_get0_serialNumber := @_X509_get0_serialNumber + {$else} + {$IF declared(ERR_X509_get0_serialNumber)} + X509_get0_serialNumber := @ERR_X509_get0_serialNumber + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get0_serialNumber) and Assigned(AFailed) then + AFailed.Add('X509_get0_serialNumber'); + end; + + + if not assigned(X509_get0_notBefore) then + begin + {$if declared(X509_get0_notBefore_introduced)} + if LibVersion < X509_get0_notBefore_introduced then + {$if declared(FC_X509_get0_notBefore)} + X509_get0_notBefore := @FC_X509_get0_notBefore + {$else} + X509_get0_notBefore := @ERR_X509_get0_notBefore + {$ifend} + else + {$ifend} + {$if declared(X509_get0_notBefore_removed)} + if X509_get0_notBefore_removed <= LibVersion then + {$if declared(_X509_get0_notBefore)} + X509_get0_notBefore := @_X509_get0_notBefore + {$else} + {$IF declared(ERR_X509_get0_notBefore)} + X509_get0_notBefore := @ERR_X509_get0_notBefore + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get0_notBefore) and Assigned(AFailed) then + AFailed.Add('X509_get0_notBefore'); + end; + + + if not assigned(X509_getm_notBefore) then + begin + {$if declared(X509_getm_notBefore_introduced)} + if LibVersion < X509_getm_notBefore_introduced then + {$if declared(FC_X509_getm_notBefore)} + X509_getm_notBefore := @FC_X509_getm_notBefore + {$else} + X509_getm_notBefore := @ERR_X509_getm_notBefore + {$ifend} + else + {$ifend} + {$if declared(X509_getm_notBefore_removed)} + if X509_getm_notBefore_removed <= LibVersion then + {$if declared(_X509_getm_notBefore)} + X509_getm_notBefore := @_X509_getm_notBefore + {$else} + {$IF declared(ERR_X509_getm_notBefore)} + X509_getm_notBefore := @ERR_X509_getm_notBefore + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_getm_notBefore) and Assigned(AFailed) then + AFailed.Add('X509_getm_notBefore'); + end; + + + if not assigned(X509_set1_notBefore) then + begin + {$if declared(X509_set1_notBefore_introduced)} + if LibVersion < X509_set1_notBefore_introduced then + {$if declared(FC_X509_set1_notBefore)} + X509_set1_notBefore := @FC_X509_set1_notBefore + {$else} + X509_set1_notBefore := @ERR_X509_set1_notBefore + {$ifend} + else + {$ifend} + {$if declared(X509_set1_notBefore_removed)} + if X509_set1_notBefore_removed <= LibVersion then + {$if declared(_X509_set1_notBefore)} + X509_set1_notBefore := @_X509_set1_notBefore + {$else} + {$IF declared(ERR_X509_set1_notBefore)} + X509_set1_notBefore := @ERR_X509_set1_notBefore + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_set1_notBefore) and Assigned(AFailed) then + AFailed.Add('X509_set1_notBefore'); + end; + + + if not assigned(X509_get0_notAfter) then + begin + {$if declared(X509_get0_notAfter_introduced)} + if LibVersion < X509_get0_notAfter_introduced then + {$if declared(FC_X509_get0_notAfter)} + X509_get0_notAfter := @FC_X509_get0_notAfter + {$else} + X509_get0_notAfter := @ERR_X509_get0_notAfter + {$ifend} + else + {$ifend} + {$if declared(X509_get0_notAfter_removed)} + if X509_get0_notAfter_removed <= LibVersion then + {$if declared(_X509_get0_notAfter)} + X509_get0_notAfter := @_X509_get0_notAfter + {$else} + {$IF declared(ERR_X509_get0_notAfter)} + X509_get0_notAfter := @ERR_X509_get0_notAfter + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get0_notAfter) and Assigned(AFailed) then + AFailed.Add('X509_get0_notAfter'); + end; + + + if not assigned(X509_getm_notAfter) then + begin + {$if declared(X509_getm_notAfter_introduced)} + if LibVersion < X509_getm_notAfter_introduced then + {$if declared(FC_X509_getm_notAfter)} + X509_getm_notAfter := @FC_X509_getm_notAfter + {$else} + X509_getm_notAfter := @ERR_X509_getm_notAfter + {$ifend} + else + {$ifend} + {$if declared(X509_getm_notAfter_removed)} + if X509_getm_notAfter_removed <= LibVersion then + {$if declared(_X509_getm_notAfter)} + X509_getm_notAfter := @_X509_getm_notAfter + {$else} + {$IF declared(ERR_X509_getm_notAfter)} + X509_getm_notAfter := @ERR_X509_getm_notAfter + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_getm_notAfter) and Assigned(AFailed) then + AFailed.Add('X509_getm_notAfter'); + end; + + + if not assigned(X509_set1_notAfter) then + begin + {$if declared(X509_set1_notAfter_introduced)} + if LibVersion < X509_set1_notAfter_introduced then + {$if declared(FC_X509_set1_notAfter)} + X509_set1_notAfter := @FC_X509_set1_notAfter + {$else} + X509_set1_notAfter := @ERR_X509_set1_notAfter + {$ifend} + else + {$ifend} + {$if declared(X509_set1_notAfter_removed)} + if X509_set1_notAfter_removed <= LibVersion then + {$if declared(_X509_set1_notAfter)} + X509_set1_notAfter := @_X509_set1_notAfter + {$else} + {$IF declared(ERR_X509_set1_notAfter)} + X509_set1_notAfter := @ERR_X509_set1_notAfter + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_set1_notAfter) and Assigned(AFailed) then + AFailed.Add('X509_set1_notAfter'); + end; + + + if not assigned(X509_up_ref) then + begin + {$if declared(X509_up_ref_introduced)} + if LibVersion < X509_up_ref_introduced then + {$if declared(FC_X509_up_ref)} + X509_up_ref := @FC_X509_up_ref + {$else} + X509_up_ref := @ERR_X509_up_ref + {$ifend} + else + {$ifend} + {$if declared(X509_up_ref_removed)} + if X509_up_ref_removed <= LibVersion then + {$if declared(_X509_up_ref)} + X509_up_ref := @_X509_up_ref + {$else} + {$IF declared(ERR_X509_up_ref)} + X509_up_ref := @ERR_X509_up_ref + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_up_ref) and Assigned(AFailed) then + AFailed.Add('X509_up_ref'); + end; + + + if not assigned(X509_get_signature_type) then + begin + {$if declared(X509_get_signature_type_introduced)} + if LibVersion < X509_get_signature_type_introduced then + {$if declared(FC_X509_get_signature_type)} + X509_get_signature_type := @FC_X509_get_signature_type + {$else} + X509_get_signature_type := @ERR_X509_get_signature_type + {$ifend} + else + {$ifend} + {$if declared(X509_get_signature_type_removed)} + if X509_get_signature_type_removed <= LibVersion then + {$if declared(_X509_get_signature_type)} + X509_get_signature_type := @_X509_get_signature_type + {$else} + {$IF declared(ERR_X509_get_signature_type)} + X509_get_signature_type := @ERR_X509_get_signature_type + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get_signature_type) and Assigned(AFailed) then + AFailed.Add('X509_get_signature_type'); + end; + + + if not assigned(X509_get_X509_PUBKEY) then + begin + {$if declared(X509_get_X509_PUBKEY_introduced)} + if LibVersion < X509_get_X509_PUBKEY_introduced then + {$if declared(FC_X509_get_X509_PUBKEY)} + X509_get_X509_PUBKEY := @FC_X509_get_X509_PUBKEY + {$else} + X509_get_X509_PUBKEY := @ERR_X509_get_X509_PUBKEY + {$ifend} + else + {$ifend} + {$if declared(X509_get_X509_PUBKEY_removed)} + if X509_get_X509_PUBKEY_removed <= LibVersion then + {$if declared(_X509_get_X509_PUBKEY)} + X509_get_X509_PUBKEY := @_X509_get_X509_PUBKEY + {$else} + {$IF declared(ERR_X509_get_X509_PUBKEY)} + X509_get_X509_PUBKEY := @ERR_X509_get_X509_PUBKEY + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get_X509_PUBKEY) and Assigned(AFailed) then + AFailed.Add('X509_get_X509_PUBKEY'); + end; + + + if not assigned(X509_get0_uids) then + begin + {$if declared(X509_get0_uids_introduced)} + if LibVersion < X509_get0_uids_introduced then + {$if declared(FC_X509_get0_uids)} + X509_get0_uids := @FC_X509_get0_uids + {$else} + X509_get0_uids := @ERR_X509_get0_uids + {$ifend} + else + {$ifend} + {$if declared(X509_get0_uids_removed)} + if X509_get0_uids_removed <= LibVersion then + {$if declared(_X509_get0_uids)} + X509_get0_uids := @_X509_get0_uids + {$else} + {$IF declared(ERR_X509_get0_uids)} + X509_get0_uids := @ERR_X509_get0_uids + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get0_uids) and Assigned(AFailed) then + AFailed.Add('X509_get0_uids'); + end; + + + if not assigned(X509_get0_tbs_sigalg) then + begin + {$if declared(X509_get0_tbs_sigalg_introduced)} + if LibVersion < X509_get0_tbs_sigalg_introduced then + {$if declared(FC_X509_get0_tbs_sigalg)} + X509_get0_tbs_sigalg := @FC_X509_get0_tbs_sigalg + {$else} + X509_get0_tbs_sigalg := @ERR_X509_get0_tbs_sigalg + {$ifend} + else + {$ifend} + {$if declared(X509_get0_tbs_sigalg_removed)} + if X509_get0_tbs_sigalg_removed <= LibVersion then + {$if declared(_X509_get0_tbs_sigalg)} + X509_get0_tbs_sigalg := @_X509_get0_tbs_sigalg + {$else} + {$IF declared(ERR_X509_get0_tbs_sigalg)} + X509_get0_tbs_sigalg := @ERR_X509_get0_tbs_sigalg + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get0_tbs_sigalg) and Assigned(AFailed) then + AFailed.Add('X509_get0_tbs_sigalg'); + end; + + + if not assigned(X509_get0_pubkey) then + begin + {$if declared(X509_get0_pubkey_introduced)} + if LibVersion < X509_get0_pubkey_introduced then + {$if declared(FC_X509_get0_pubkey)} + X509_get0_pubkey := @FC_X509_get0_pubkey + {$else} + X509_get0_pubkey := @ERR_X509_get0_pubkey + {$ifend} + else + {$ifend} + {$if declared(X509_get0_pubkey_removed)} + if X509_get0_pubkey_removed <= LibVersion then + {$if declared(_X509_get0_pubkey)} + X509_get0_pubkey := @_X509_get0_pubkey + {$else} + {$IF declared(ERR_X509_get0_pubkey)} + X509_get0_pubkey := @ERR_X509_get0_pubkey + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_get0_pubkey) and Assigned(AFailed) then + AFailed.Add('X509_get0_pubkey'); + end; + + + if not assigned(X509_REQ_get_version) then + begin + {$if declared(X509_REQ_get_version_introduced)} + if LibVersion < X509_REQ_get_version_introduced then + {$if declared(FC_X509_REQ_get_version)} + X509_REQ_get_version := @FC_X509_REQ_get_version + {$else} + X509_REQ_get_version := @ERR_X509_REQ_get_version + {$ifend} + else + {$ifend} + {$if declared(X509_REQ_get_version_removed)} + if X509_REQ_get_version_removed <= LibVersion then + {$if declared(_X509_REQ_get_version)} + X509_REQ_get_version := @_X509_REQ_get_version + {$else} + {$IF declared(ERR_X509_REQ_get_version)} + X509_REQ_get_version := @ERR_X509_REQ_get_version + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_REQ_get_version) and Assigned(AFailed) then + AFailed.Add('X509_REQ_get_version'); + end; + + + if not assigned(X509_REQ_get_subject_name) then + begin + {$if declared(X509_REQ_get_subject_name_introduced)} + if LibVersion < X509_REQ_get_subject_name_introduced then + {$if declared(FC_X509_REQ_get_subject_name)} + X509_REQ_get_subject_name := @FC_X509_REQ_get_subject_name + {$else} + X509_REQ_get_subject_name := @ERR_X509_REQ_get_subject_name + {$ifend} + else + {$ifend} + {$if declared(X509_REQ_get_subject_name_removed)} + if X509_REQ_get_subject_name_removed <= LibVersion then + {$if declared(_X509_REQ_get_subject_name)} + X509_REQ_get_subject_name := @_X509_REQ_get_subject_name + {$else} + {$IF declared(ERR_X509_REQ_get_subject_name)} + X509_REQ_get_subject_name := @ERR_X509_REQ_get_subject_name + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_REQ_get_subject_name) and Assigned(AFailed) then + AFailed.Add('X509_REQ_get_subject_name'); + end; + + + if not assigned(X509_REQ_get0_signature) then + begin + {$if declared(X509_REQ_get0_signature_introduced)} + if LibVersion < X509_REQ_get0_signature_introduced then + {$if declared(FC_X509_REQ_get0_signature)} + X509_REQ_get0_signature := @FC_X509_REQ_get0_signature + {$else} + X509_REQ_get0_signature := @ERR_X509_REQ_get0_signature + {$ifend} + else + {$ifend} + {$if declared(X509_REQ_get0_signature_removed)} + if X509_REQ_get0_signature_removed <= LibVersion then + {$if declared(_X509_REQ_get0_signature)} + X509_REQ_get0_signature := @_X509_REQ_get0_signature + {$else} + {$IF declared(ERR_X509_REQ_get0_signature)} + X509_REQ_get0_signature := @ERR_X509_REQ_get0_signature + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_REQ_get0_signature) and Assigned(AFailed) then + AFailed.Add('X509_REQ_get0_signature'); + end; + + + if not assigned(X509_REQ_get_signature_nid) then + begin + {$if declared(X509_REQ_get_signature_nid_introduced)} + if LibVersion < X509_REQ_get_signature_nid_introduced then + {$if declared(FC_X509_REQ_get_signature_nid)} + X509_REQ_get_signature_nid := @FC_X509_REQ_get_signature_nid + {$else} + X509_REQ_get_signature_nid := @ERR_X509_REQ_get_signature_nid + {$ifend} + else + {$ifend} + {$if declared(X509_REQ_get_signature_nid_removed)} + if X509_REQ_get_signature_nid_removed <= LibVersion then + {$if declared(_X509_REQ_get_signature_nid)} + X509_REQ_get_signature_nid := @_X509_REQ_get_signature_nid + {$else} + {$IF declared(ERR_X509_REQ_get_signature_nid)} + X509_REQ_get_signature_nid := @ERR_X509_REQ_get_signature_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_REQ_get_signature_nid) and Assigned(AFailed) then + AFailed.Add('X509_REQ_get_signature_nid'); + end; + + + if not assigned(i2d_re_X509_REQ_tbs) then + begin + {$if declared(i2d_re_X509_REQ_tbs_introduced)} + if LibVersion < i2d_re_X509_REQ_tbs_introduced then + {$if declared(FC_i2d_re_X509_REQ_tbs)} + i2d_re_X509_REQ_tbs := @FC_i2d_re_X509_REQ_tbs + {$else} + i2d_re_X509_REQ_tbs := @ERR_i2d_re_X509_REQ_tbs + {$ifend} + else + {$ifend} + {$if declared(i2d_re_X509_REQ_tbs_removed)} + if i2d_re_X509_REQ_tbs_removed <= LibVersion then + {$if declared(_i2d_re_X509_REQ_tbs)} + i2d_re_X509_REQ_tbs := @_i2d_re_X509_REQ_tbs + {$else} + {$IF declared(ERR_i2d_re_X509_REQ_tbs)} + i2d_re_X509_REQ_tbs := @ERR_i2d_re_X509_REQ_tbs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(i2d_re_X509_REQ_tbs) and Assigned(AFailed) then + AFailed.Add('i2d_re_X509_REQ_tbs'); + end; + + + if not assigned(X509_REQ_get0_pubkey) then + begin + {$if declared(X509_REQ_get0_pubkey_introduced)} + if LibVersion < X509_REQ_get0_pubkey_introduced then + {$if declared(FC_X509_REQ_get0_pubkey)} + X509_REQ_get0_pubkey := @FC_X509_REQ_get0_pubkey + {$else} + X509_REQ_get0_pubkey := @ERR_X509_REQ_get0_pubkey + {$ifend} + else + {$ifend} + {$if declared(X509_REQ_get0_pubkey_removed)} + if X509_REQ_get0_pubkey_removed <= LibVersion then + {$if declared(_X509_REQ_get0_pubkey)} + X509_REQ_get0_pubkey := @_X509_REQ_get0_pubkey + {$else} + {$IF declared(ERR_X509_REQ_get0_pubkey)} + X509_REQ_get0_pubkey := @ERR_X509_REQ_get0_pubkey + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_REQ_get0_pubkey) and Assigned(AFailed) then + AFailed.Add('X509_REQ_get0_pubkey'); + end; + + + if not assigned(X509_REQ_get_X509_PUBKEY) then + begin + {$if declared(X509_REQ_get_X509_PUBKEY_introduced)} + if LibVersion < X509_REQ_get_X509_PUBKEY_introduced then + {$if declared(FC_X509_REQ_get_X509_PUBKEY)} + X509_REQ_get_X509_PUBKEY := @FC_X509_REQ_get_X509_PUBKEY + {$else} + X509_REQ_get_X509_PUBKEY := @ERR_X509_REQ_get_X509_PUBKEY + {$ifend} + else + {$ifend} + {$if declared(X509_REQ_get_X509_PUBKEY_removed)} + if X509_REQ_get_X509_PUBKEY_removed <= LibVersion then + {$if declared(_X509_REQ_get_X509_PUBKEY)} + X509_REQ_get_X509_PUBKEY := @_X509_REQ_get_X509_PUBKEY + {$else} + {$IF declared(ERR_X509_REQ_get_X509_PUBKEY)} + X509_REQ_get_X509_PUBKEY := @ERR_X509_REQ_get_X509_PUBKEY + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_REQ_get_X509_PUBKEY) and Assigned(AFailed) then + AFailed.Add('X509_REQ_get_X509_PUBKEY'); + end; + + + if not assigned(X509_CRL_set1_lastUpdate) then + begin + {$if declared(X509_CRL_set1_lastUpdate_introduced)} + if LibVersion < X509_CRL_set1_lastUpdate_introduced then + {$if declared(FC_X509_CRL_set1_lastUpdate)} + X509_CRL_set1_lastUpdate := @FC_X509_CRL_set1_lastUpdate + {$else} + X509_CRL_set1_lastUpdate := @ERR_X509_CRL_set1_lastUpdate + {$ifend} + else + {$ifend} + {$if declared(X509_CRL_set1_lastUpdate_removed)} + if X509_CRL_set1_lastUpdate_removed <= LibVersion then + {$if declared(_X509_CRL_set1_lastUpdate)} + X509_CRL_set1_lastUpdate := @_X509_CRL_set1_lastUpdate + {$else} + {$IF declared(ERR_X509_CRL_set1_lastUpdate)} + X509_CRL_set1_lastUpdate := @ERR_X509_CRL_set1_lastUpdate + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_CRL_set1_lastUpdate) and Assigned(AFailed) then + AFailed.Add('X509_CRL_set1_lastUpdate'); + end; + + + if not assigned(X509_CRL_set1_nextUpdate) then + begin + {$if declared(X509_CRL_set1_nextUpdate_introduced)} + if LibVersion < X509_CRL_set1_nextUpdate_introduced then + {$if declared(FC_X509_CRL_set1_nextUpdate)} + X509_CRL_set1_nextUpdate := @FC_X509_CRL_set1_nextUpdate + {$else} + X509_CRL_set1_nextUpdate := @ERR_X509_CRL_set1_nextUpdate + {$ifend} + else + {$ifend} + {$if declared(X509_CRL_set1_nextUpdate_removed)} + if X509_CRL_set1_nextUpdate_removed <= LibVersion then + {$if declared(_X509_CRL_set1_nextUpdate)} + X509_CRL_set1_nextUpdate := @_X509_CRL_set1_nextUpdate + {$else} + {$IF declared(ERR_X509_CRL_set1_nextUpdate)} + X509_CRL_set1_nextUpdate := @ERR_X509_CRL_set1_nextUpdate + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_CRL_set1_nextUpdate) and Assigned(AFailed) then + AFailed.Add('X509_CRL_set1_nextUpdate'); + end; + + + if not assigned(X509_CRL_up_ref) then + begin + {$if declared(X509_CRL_up_ref_introduced)} + if LibVersion < X509_CRL_up_ref_introduced then + {$if declared(FC_X509_CRL_up_ref)} + X509_CRL_up_ref := @FC_X509_CRL_up_ref + {$else} + X509_CRL_up_ref := @ERR_X509_CRL_up_ref + {$ifend} + else + {$ifend} + {$if declared(X509_CRL_up_ref_removed)} + if X509_CRL_up_ref_removed <= LibVersion then + {$if declared(_X509_CRL_up_ref)} + X509_CRL_up_ref := @_X509_CRL_up_ref + {$else} + {$IF declared(ERR_X509_CRL_up_ref)} + X509_CRL_up_ref := @ERR_X509_CRL_up_ref + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_CRL_up_ref) and Assigned(AFailed) then + AFailed.Add('X509_CRL_up_ref'); + end; + + + if not assigned(X509_CRL_get_version) then + begin + {$if declared(X509_CRL_get_version_introduced)} + if LibVersion < X509_CRL_get_version_introduced then + {$if declared(FC_X509_CRL_get_version)} + X509_CRL_get_version := @FC_X509_CRL_get_version + {$else} + X509_CRL_get_version := @ERR_X509_CRL_get_version + {$ifend} + else + {$ifend} + {$if declared(X509_CRL_get_version_removed)} + if X509_CRL_get_version_removed <= LibVersion then + {$if declared(_X509_CRL_get_version)} + X509_CRL_get_version := @_X509_CRL_get_version + {$else} + {$IF declared(ERR_X509_CRL_get_version)} + X509_CRL_get_version := @ERR_X509_CRL_get_version + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_CRL_get_version) and Assigned(AFailed) then + AFailed.Add('X509_CRL_get_version'); + end; + + + if not assigned(X509_CRL_get0_lastUpdate) then + begin + {$if declared(X509_CRL_get0_lastUpdate_introduced)} + if LibVersion < X509_CRL_get0_lastUpdate_introduced then + {$if declared(FC_X509_CRL_get0_lastUpdate)} + X509_CRL_get0_lastUpdate := @FC_X509_CRL_get0_lastUpdate + {$else} + X509_CRL_get0_lastUpdate := @ERR_X509_CRL_get0_lastUpdate + {$ifend} + else + {$ifend} + {$if declared(X509_CRL_get0_lastUpdate_removed)} + if X509_CRL_get0_lastUpdate_removed <= LibVersion then + {$if declared(_X509_CRL_get0_lastUpdate)} + X509_CRL_get0_lastUpdate := @_X509_CRL_get0_lastUpdate + {$else} + {$IF declared(ERR_X509_CRL_get0_lastUpdate)} + X509_CRL_get0_lastUpdate := @ERR_X509_CRL_get0_lastUpdate + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_CRL_get0_lastUpdate) and Assigned(AFailed) then + AFailed.Add('X509_CRL_get0_lastUpdate'); + end; + + + if not assigned(X509_CRL_get0_nextUpdate) then + begin + {$if declared(X509_CRL_get0_nextUpdate_introduced)} + if LibVersion < X509_CRL_get0_nextUpdate_introduced then + {$if declared(FC_X509_CRL_get0_nextUpdate)} + X509_CRL_get0_nextUpdate := @FC_X509_CRL_get0_nextUpdate + {$else} + X509_CRL_get0_nextUpdate := @ERR_X509_CRL_get0_nextUpdate + {$ifend} + else + {$ifend} + {$if declared(X509_CRL_get0_nextUpdate_removed)} + if X509_CRL_get0_nextUpdate_removed <= LibVersion then + {$if declared(_X509_CRL_get0_nextUpdate)} + X509_CRL_get0_nextUpdate := @_X509_CRL_get0_nextUpdate + {$else} + {$IF declared(ERR_X509_CRL_get0_nextUpdate)} + X509_CRL_get0_nextUpdate := @ERR_X509_CRL_get0_nextUpdate + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_CRL_get0_nextUpdate) and Assigned(AFailed) then + AFailed.Add('X509_CRL_get0_nextUpdate'); + end; + + + if not assigned(X509_CRL_get_issuer) then + begin + {$if declared(X509_CRL_get_issuer_introduced)} + if LibVersion < X509_CRL_get_issuer_introduced then + {$if declared(FC_X509_CRL_get_issuer)} + X509_CRL_get_issuer := @FC_X509_CRL_get_issuer + {$else} + X509_CRL_get_issuer := @ERR_X509_CRL_get_issuer + {$ifend} + else + {$ifend} + {$if declared(X509_CRL_get_issuer_removed)} + if X509_CRL_get_issuer_removed <= LibVersion then + {$if declared(_X509_CRL_get_issuer)} + X509_CRL_get_issuer := @_X509_CRL_get_issuer + {$else} + {$IF declared(ERR_X509_CRL_get_issuer)} + X509_CRL_get_issuer := @ERR_X509_CRL_get_issuer + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_CRL_get_issuer) and Assigned(AFailed) then + AFailed.Add('X509_CRL_get_issuer'); + end; + + + if not assigned(X509_CRL_get0_signature) then + begin + {$if declared(X509_CRL_get0_signature_introduced)} + if LibVersion < X509_CRL_get0_signature_introduced then + {$if declared(FC_X509_CRL_get0_signature)} + X509_CRL_get0_signature := @FC_X509_CRL_get0_signature + {$else} + X509_CRL_get0_signature := @ERR_X509_CRL_get0_signature + {$ifend} + else + {$ifend} + {$if declared(X509_CRL_get0_signature_removed)} + if X509_CRL_get0_signature_removed <= LibVersion then + {$if declared(_X509_CRL_get0_signature)} + X509_CRL_get0_signature := @_X509_CRL_get0_signature + {$else} + {$IF declared(ERR_X509_CRL_get0_signature)} + X509_CRL_get0_signature := @ERR_X509_CRL_get0_signature + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_CRL_get0_signature) and Assigned(AFailed) then + AFailed.Add('X509_CRL_get0_signature'); + end; + + + if not assigned(X509_CRL_get_signature_nid) then + begin + {$if declared(X509_CRL_get_signature_nid_introduced)} + if LibVersion < X509_CRL_get_signature_nid_introduced then + {$if declared(FC_X509_CRL_get_signature_nid)} + X509_CRL_get_signature_nid := @FC_X509_CRL_get_signature_nid + {$else} + X509_CRL_get_signature_nid := @ERR_X509_CRL_get_signature_nid + {$ifend} + else + {$ifend} + {$if declared(X509_CRL_get_signature_nid_removed)} + if X509_CRL_get_signature_nid_removed <= LibVersion then + {$if declared(_X509_CRL_get_signature_nid)} + X509_CRL_get_signature_nid := @_X509_CRL_get_signature_nid + {$else} + {$IF declared(ERR_X509_CRL_get_signature_nid)} + X509_CRL_get_signature_nid := @ERR_X509_CRL_get_signature_nid + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_CRL_get_signature_nid) and Assigned(AFailed) then + AFailed.Add('X509_CRL_get_signature_nid'); + end; + + + if not assigned(i2d_re_X509_CRL_tbs) then + begin + {$if declared(i2d_re_X509_CRL_tbs_introduced)} + if LibVersion < i2d_re_X509_CRL_tbs_introduced then + {$if declared(FC_i2d_re_X509_CRL_tbs)} + i2d_re_X509_CRL_tbs := @FC_i2d_re_X509_CRL_tbs + {$else} + i2d_re_X509_CRL_tbs := @ERR_i2d_re_X509_CRL_tbs + {$ifend} + else + {$ifend} + {$if declared(i2d_re_X509_CRL_tbs_removed)} + if i2d_re_X509_CRL_tbs_removed <= LibVersion then + {$if declared(_i2d_re_X509_CRL_tbs)} + i2d_re_X509_CRL_tbs := @_i2d_re_X509_CRL_tbs + {$else} + {$IF declared(ERR_i2d_re_X509_CRL_tbs)} + i2d_re_X509_CRL_tbs := @ERR_i2d_re_X509_CRL_tbs + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(i2d_re_X509_CRL_tbs) and Assigned(AFailed) then + AFailed.Add('i2d_re_X509_CRL_tbs'); + end; + + + if not assigned(X509_REVOKED_get0_serialNumber) then + begin + {$if declared(X509_REVOKED_get0_serialNumber_introduced)} + if LibVersion < X509_REVOKED_get0_serialNumber_introduced then + {$if declared(FC_X509_REVOKED_get0_serialNumber)} + X509_REVOKED_get0_serialNumber := @FC_X509_REVOKED_get0_serialNumber + {$else} + X509_REVOKED_get0_serialNumber := @ERR_X509_REVOKED_get0_serialNumber + {$ifend} + else + {$ifend} + {$if declared(X509_REVOKED_get0_serialNumber_removed)} + if X509_REVOKED_get0_serialNumber_removed <= LibVersion then + {$if declared(_X509_REVOKED_get0_serialNumber)} + X509_REVOKED_get0_serialNumber := @_X509_REVOKED_get0_serialNumber + {$else} + {$IF declared(ERR_X509_REVOKED_get0_serialNumber)} + X509_REVOKED_get0_serialNumber := @ERR_X509_REVOKED_get0_serialNumber + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_REVOKED_get0_serialNumber) and Assigned(AFailed) then + AFailed.Add('X509_REVOKED_get0_serialNumber'); + end; + + + if not assigned(X509_REVOKED_get0_revocationDate) then + begin + {$if declared(X509_REVOKED_get0_revocationDate_introduced)} + if LibVersion < X509_REVOKED_get0_revocationDate_introduced then + {$if declared(FC_X509_REVOKED_get0_revocationDate)} + X509_REVOKED_get0_revocationDate := @FC_X509_REVOKED_get0_revocationDate + {$else} + X509_REVOKED_get0_revocationDate := @ERR_X509_REVOKED_get0_revocationDate + {$ifend} + else + {$ifend} + {$if declared(X509_REVOKED_get0_revocationDate_removed)} + if X509_REVOKED_get0_revocationDate_removed <= LibVersion then + {$if declared(_X509_REVOKED_get0_revocationDate)} + X509_REVOKED_get0_revocationDate := @_X509_REVOKED_get0_revocationDate + {$else} + {$IF declared(ERR_X509_REVOKED_get0_revocationDate)} + X509_REVOKED_get0_revocationDate := @ERR_X509_REVOKED_get0_revocationDate + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_REVOKED_get0_revocationDate) and Assigned(AFailed) then + AFailed.Add('X509_REVOKED_get0_revocationDate'); + end; + + + if not assigned(X509_NAME_hash) then + begin + {$if declared(X509_NAME_hash_introduced)} + if LibVersion < X509_NAME_hash_introduced then + {$if declared(FC_X509_NAME_hash)} + X509_NAME_hash := @FC_X509_NAME_hash + {$else} + X509_NAME_hash := @ERR_X509_NAME_hash + {$ifend} + else + {$ifend} + {$if declared(X509_NAME_hash_removed)} + if X509_NAME_hash_removed <= LibVersion then + {$if declared(_X509_NAME_hash)} + X509_NAME_hash := @_X509_NAME_hash + {$else} + {$IF declared(ERR_X509_NAME_hash)} + X509_NAME_hash := @ERR_X509_NAME_hash + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_NAME_hash) and Assigned(AFailed) then + AFailed.Add('X509_NAME_hash'); + end; + + + if not assigned(X509_aux_print) then + begin + {$if declared(X509_aux_print_introduced)} + if LibVersion < X509_aux_print_introduced then + {$if declared(FC_X509_aux_print)} + X509_aux_print := @FC_X509_aux_print + {$else} + X509_aux_print := @ERR_X509_aux_print + {$ifend} + else + {$ifend} + {$if declared(X509_aux_print_removed)} + if X509_aux_print_removed <= LibVersion then + {$if declared(_X509_aux_print)} + X509_aux_print := @_X509_aux_print + {$else} + {$IF declared(ERR_X509_aux_print)} + X509_aux_print := @ERR_X509_aux_print + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_aux_print) and Assigned(AFailed) then + AFailed.Add('X509_aux_print'); + end; + + + if not assigned(X509_CRL_print_ex) then + begin + {$if declared(X509_CRL_print_ex_introduced)} + if LibVersion < X509_CRL_print_ex_introduced then + {$if declared(FC_X509_CRL_print_ex)} + X509_CRL_print_ex := @FC_X509_CRL_print_ex + {$else} + X509_CRL_print_ex := @ERR_X509_CRL_print_ex + {$ifend} + else + {$ifend} + {$if declared(X509_CRL_print_ex_removed)} + if X509_CRL_print_ex_removed <= LibVersion then + {$if declared(_X509_CRL_print_ex)} + X509_CRL_print_ex := @_X509_CRL_print_ex + {$else} + {$IF declared(ERR_X509_CRL_print_ex)} + X509_CRL_print_ex := @ERR_X509_CRL_print_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_CRL_print_ex) and Assigned(AFailed) then + AFailed.Add('X509_CRL_print_ex'); + end; + + + if not assigned(X509_NAME_ENTRY_set) then + begin + {$if declared(X509_NAME_ENTRY_set_introduced)} + if LibVersion < X509_NAME_ENTRY_set_introduced then + {$if declared(FC_X509_NAME_ENTRY_set)} + X509_NAME_ENTRY_set := @FC_X509_NAME_ENTRY_set + {$else} + X509_NAME_ENTRY_set := @ERR_X509_NAME_ENTRY_set + {$ifend} + else + {$ifend} + {$if declared(X509_NAME_ENTRY_set_removed)} + if X509_NAME_ENTRY_set_removed <= LibVersion then + {$if declared(_X509_NAME_ENTRY_set)} + X509_NAME_ENTRY_set := @_X509_NAME_ENTRY_set + {$else} + {$IF declared(ERR_X509_NAME_ENTRY_set)} + X509_NAME_ENTRY_set := @ERR_X509_NAME_ENTRY_set + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_NAME_ENTRY_set) and Assigned(AFailed) then + AFailed.Add('X509_NAME_ENTRY_set'); + end; + + + if not assigned(X509_NAME_get0_der) then + begin + {$if declared(X509_NAME_get0_der_introduced)} + if LibVersion < X509_NAME_get0_der_introduced then + {$if declared(FC_X509_NAME_get0_der)} + X509_NAME_get0_der := @FC_X509_NAME_get0_der + {$else} + X509_NAME_get0_der := @ERR_X509_NAME_get0_der + {$ifend} + else + {$ifend} + {$if declared(X509_NAME_get0_der_removed)} + if X509_NAME_get0_der_removed <= LibVersion then + {$if declared(_X509_NAME_get0_der)} + X509_NAME_get0_der := @_X509_NAME_get0_der + {$else} + {$IF declared(ERR_X509_NAME_get0_der)} + X509_NAME_get0_der := @ERR_X509_NAME_get0_der + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_NAME_get0_der) and Assigned(AFailed) then + AFailed.Add('X509_NAME_get0_der'); + end; + + + if not assigned(PKCS5_pbe2_set_scrypt) then + begin + {$if declared(PKCS5_pbe2_set_scrypt_introduced)} + if LibVersion < PKCS5_pbe2_set_scrypt_introduced then + {$if declared(FC_PKCS5_pbe2_set_scrypt)} + PKCS5_pbe2_set_scrypt := @FC_PKCS5_pbe2_set_scrypt + {$else} + PKCS5_pbe2_set_scrypt := @ERR_PKCS5_pbe2_set_scrypt + {$ifend} + else + {$ifend} + {$if declared(PKCS5_pbe2_set_scrypt_removed)} + if PKCS5_pbe2_set_scrypt_removed <= LibVersion then + {$if declared(_PKCS5_pbe2_set_scrypt)} + PKCS5_pbe2_set_scrypt := @_PKCS5_pbe2_set_scrypt + {$else} + {$IF declared(ERR_PKCS5_pbe2_set_scrypt)} + PKCS5_pbe2_set_scrypt := @ERR_PKCS5_pbe2_set_scrypt + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS5_pbe2_set_scrypt) and Assigned(AFailed) then + AFailed.Add('PKCS5_pbe2_set_scrypt'); + end; + + + if not assigned(PKCS8_pkey_add1_attr_by_NID) then + begin + {$if declared(PKCS8_pkey_add1_attr_by_NID_introduced)} + if LibVersion < PKCS8_pkey_add1_attr_by_NID_introduced then + {$if declared(FC_PKCS8_pkey_add1_attr_by_NID)} + PKCS8_pkey_add1_attr_by_NID := @FC_PKCS8_pkey_add1_attr_by_NID + {$else} + PKCS8_pkey_add1_attr_by_NID := @ERR_PKCS8_pkey_add1_attr_by_NID + {$ifend} + else + {$ifend} + {$if declared(PKCS8_pkey_add1_attr_by_NID_removed)} + if PKCS8_pkey_add1_attr_by_NID_removed <= LibVersion then + {$if declared(_PKCS8_pkey_add1_attr_by_NID)} + PKCS8_pkey_add1_attr_by_NID := @_PKCS8_pkey_add1_attr_by_NID + {$else} + {$IF declared(ERR_PKCS8_pkey_add1_attr_by_NID)} + PKCS8_pkey_add1_attr_by_NID := @ERR_PKCS8_pkey_add1_attr_by_NID + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(PKCS8_pkey_add1_attr_by_NID) and Assigned(AFailed) then + AFailed.Add('PKCS8_pkey_add1_attr_by_NID'); + end; + + + if not assigned(X509_NAME_hash_ex) then + begin + {$if declared(X509_NAME_hash_ex_introduced)} + if LibVersion < X509_NAME_hash_ex_introduced then + {$if declared(FC_X509_NAME_hash_ex)} + X509_NAME_hash_ex := @FC_X509_NAME_hash_ex + {$else} + X509_NAME_hash_ex := @ERR_X509_NAME_hash_ex + {$ifend} + else + {$ifend} + {$if declared(X509_NAME_hash_ex_removed)} + if X509_NAME_hash_ex_removed <= LibVersion then + {$if declared(_X509_NAME_hash_ex)} + X509_NAME_hash_ex := @_X509_NAME_hash_ex + {$else} + {$IF declared(ERR_X509_NAME_hash_ex)} + X509_NAME_hash_ex := @ERR_X509_NAME_hash_ex + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_NAME_hash_ex) and Assigned(AFailed) then + AFailed.Add('X509_NAME_hash_ex'); + end; + + +end; + +procedure Unload; +begin + X509_CRL_set_default_method := nil; + X509_CRL_METHOD_free := nil; + X509_CRL_set_meth_data := nil; + X509_CRL_get_meth_data := nil; + X509_verify_cert_error_string := nil; + X509_verify := nil; + X509_REQ_verify := nil; + X509_CRL_verify := nil; + NETSCAPE_SPKI_verify := nil; + NETSCAPE_SPKI_b64_decode := nil; + NETSCAPE_SPKI_b64_encode := nil; + NETSCAPE_SPKI_get_pubkey := nil; + NETSCAPE_SPKI_set_pubkey := nil; + NETSCAPE_SPKI_print := nil; + X509_signature_dump := nil; + X509_signature_print := nil; + X509_sign := nil; + X509_sign_ctx := nil; + X509_http_nbio := nil; {removed 3.0.0} + X509_REQ_sign := nil; + X509_REQ_sign_ctx := nil; + X509_CRL_sign := nil; + X509_CRL_sign_ctx := nil; + X509_CRL_http_nbio := nil; {removed 3.0.0} + NETSCAPE_SPKI_sign := nil; + X509_pubkey_digest := nil; + X509_digest := nil; + X509_CRL_digest := nil; + X509_REQ_digest := nil; + X509_NAME_digest := nil; + d2i_X509_bio := nil; + i2d_X509_bio := nil; + d2i_X509_CRL_bio := nil; + i2d_X509_CRL_bio := nil; + d2i_X509_REQ_bio := nil; + i2d_X509_REQ_bio := nil; + d2i_RSAPrivateKey_bio := nil; + i2d_RSAPrivateKey_bio := nil; + d2i_RSAPublicKey_bio := nil; + i2d_RSAPublicKey_bio := nil; + d2i_RSA_PUBKEY_bio := nil; + i2d_RSA_PUBKEY_bio := nil; + d2i_DSA_PUBKEY_bio := nil; + i2d_DSA_PUBKEY_bio := nil; + d2i_DSAPrivateKey_bio := nil; + i2d_DSAPrivateKey_bio := nil; + d2i_EC_PUBKEY_bio := nil; + i2d_EC_PUBKEY_bio := nil; + d2i_ECPrivateKey_bio := nil; + i2d_ECPrivateKey_bio := nil; + d2i_PKCS8_bio := nil; + i2d_PKCS8_bio := nil; + d2i_PKCS8_PRIV_KEY_INFO_bio := nil; + i2d_PKCS8_PRIV_KEY_INFO_bio := nil; + i2d_PKCS8PrivateKeyInfo_bio := nil; + i2d_PrivateKey_bio := nil; + d2i_PrivateKey_bio := nil; + i2d_PUBKEY_bio := nil; + d2i_PUBKEY_bio := nil; + X509_dup := nil; + X509_ATTRIBUTE_dup := nil; + X509_EXTENSION_dup := nil; + X509_CRL_dup := nil; + X509_REVOKED_dup := nil; + X509_REQ_dup := nil; + X509_ALGOR_dup := nil; + X509_ALGOR_set0 := nil; + X509_ALGOR_get0 := nil; + X509_ALGOR_set_md := nil; + X509_ALGOR_cmp := nil; + X509_NAME_dup := nil; + X509_NAME_ENTRY_dup := nil; + X509_cmp_time := nil; + X509_cmp_current_time := nil; + X509_time_adj := nil; + X509_time_adj_ex := nil; + X509_gmtime_adj := nil; + X509_get_default_cert_area := nil; + X509_get_default_cert_dir := nil; + X509_get_default_cert_file := nil; + X509_get_default_cert_dir_env := nil; + X509_get_default_cert_file_env := nil; + X509_get_default_private_dir := nil; + X509_to_X509_REQ := nil; + X509_REQ_to_X509 := nil; + X509_ALGOR_new := nil; + X509_ALGOR_free := nil; + d2i_X509_ALGOR := nil; + i2d_X509_ALGOR := nil; + X509_VAL_new := nil; + X509_VAL_free := nil; + d2i_X509_VAL := nil; + i2d_X509_VAL := nil; + X509_PUBKEY_new := nil; + X509_PUBKEY_free := nil; + d2i_X509_PUBKEY := nil; + i2d_X509_PUBKEY := nil; + X509_PUBKEY_set := nil; + X509_PUBKEY_get0 := nil; {introduced 1.1.0} + X509_PUBKEY_get := nil; + X509_get_pathlen := nil; {introduced 1.1.0} + i2d_PUBKEY := nil; + d2i_PUBKEY := nil; + i2d_RSA_PUBKEY := nil; + d2i_RSA_PUBKEY := nil; + i2d_DSA_PUBKEY := nil; + d2i_DSA_PUBKEY := nil; + i2d_EC_PUBKEY := nil; + d2i_EC_PUBKEY := nil; + X509_SIG_new := nil; + X509_SIG_free := nil; + d2i_X509_SIG := nil; + i2d_X509_SIG := nil; + X509_SIG_get0 := nil; {introduced 1.1.0} + X509_SIG_getm := nil; {introduced 1.1.0} + X509_REQ_INFO_new := nil; + X509_REQ_INFO_free := nil; + d2i_X509_REQ_INFO := nil; + i2d_X509_REQ_INFO := nil; + X509_REQ_new := nil; + X509_REQ_free := nil; + d2i_X509_REQ := nil; + i2d_X509_REQ := nil; + X509_ATTRIBUTE_new := nil; + X509_ATTRIBUTE_free := nil; + d2i_X509_ATTRIBUTE := nil; + i2d_X509_ATTRIBUTE := nil; + X509_ATTRIBUTE_create := nil; + X509_EXTENSION_new := nil; + X509_EXTENSION_free := nil; + d2i_X509_EXTENSION := nil; + i2d_X509_EXTENSION := nil; + X509_NAME_ENTRY_new := nil; + X509_NAME_ENTRY_free := nil; + d2i_X509_NAME_ENTRY := nil; + i2d_X509_NAME_ENTRY := nil; + X509_NAME_new := nil; + X509_NAME_free := nil; + d2i_X509_NAME := nil; + i2d_X509_NAME := nil; + X509_NAME_set := nil; + X509_new := nil; + X509_free := nil; + d2i_X509 := nil; + i2d_X509 := nil; + X509_set_ex_data := nil; + X509_get_ex_data := nil; + i2d_X509_AUX := nil; + d2i_X509_AUX := nil; + i2d_re_X509_tbs := nil; + X509_SIG_INFO_get := nil; {introduced 1.1.0} + X509_SIG_INFO_set := nil; {introduced 1.1.0} + X509_get_signature_info := nil; {introduced 1.1.0} + X509_get0_signature := nil; {introduced 1.1.0} + X509_get_signature_nid := nil; + X509_trusted := nil; {introduced 1.1.0} + X509_alias_set1 := nil; + X509_keyid_set1 := nil; + X509_alias_get0 := nil; + X509_keyid_get0 := nil; + X509_TRUST_set := nil; + X509_add1_trust_object := nil; + X509_add1_reject_object := nil; + X509_trust_clear := nil; + X509_reject_clear := nil; + X509_REVOKED_new := nil; + X509_REVOKED_free := nil; + d2i_X509_REVOKED := nil; + i2d_X509_REVOKED := nil; + X509_CRL_INFO_new := nil; + X509_CRL_INFO_free := nil; + d2i_X509_CRL_INFO := nil; + i2d_X509_CRL_INFO := nil; + X509_CRL_new := nil; + X509_CRL_free := nil; + d2i_X509_CRL := nil; + i2d_X509_CRL := nil; + X509_CRL_add0_revoked := nil; + X509_CRL_get0_by_serial := nil; + X509_CRL_get0_by_cert := nil; + X509_PKEY_new := nil; + X509_PKEY_free := nil; + X509_INFO_new := nil; + X509_INFO_free := nil; + X509_NAME_oneline := nil; + ASN1_item_digest := nil; + ASN1_item_verify := nil; + ASN1_item_sign := nil; + ASN1_item_sign_ctx := nil; + X509_get_version := nil; {introduced 1.1.0} + X509_set_version := nil; + X509_set_serialNumber := nil; + X509_get_serialNumber := nil; + X509_get0_serialNumber := nil; {introduced 1.1.0} + X509_set_issuer_name := nil; + X509_get_issuer_name := nil; + X509_set_subject_name := nil; + X509_get_subject_name := nil; + X509_get0_notBefore := nil; {introduced 1.1.0} + X509_getm_notBefore := nil; {introduced 1.1.0} + X509_set1_notBefore := nil; {introduced 1.1.0} + X509_get0_notAfter := nil; {introduced 1.1.0} + X509_getm_notAfter := nil; {introduced 1.1.0} + X509_set1_notAfter := nil; {introduced 1.1.0} + X509_set_pubkey := nil; + X509_up_ref := nil; {introduced 1.1.0} + X509_get_signature_type := nil; {introduced 1.1.0} + X509_get_X509_PUBKEY := nil; {introduced 1.1.0} + X509_get0_uids := nil; {introduced 1.1.0} + X509_get0_tbs_sigalg := nil; {introduced 1.1.0} + X509_get0_pubkey := nil; {introduced 1.1.0} + X509_get_pubkey := nil; + X509_get0_pubkey_bitstr := nil; + X509_certificate_type := nil; + X509_REQ_get_version := nil; {introduced 1.1.0} + X509_REQ_set_version := nil; + X509_REQ_get_subject_name := nil; {introduced 1.1.0} + X509_REQ_set_subject_name := nil; + X509_REQ_get0_signature := nil; {introduced 1.1.0} + X509_REQ_get_signature_nid := nil; {introduced 1.1.0} + i2d_re_X509_REQ_tbs := nil; {introduced 1.1.0} + X509_REQ_set_pubkey := nil; + X509_REQ_get_pubkey := nil; + X509_REQ_get0_pubkey := nil; {introduced 1.1.0} + X509_REQ_get_X509_PUBKEY := nil; {introduced 1.1.0} + X509_REQ_extension_nid := nil; + X509_REQ_get_extension_nids := nil; + X509_REQ_set_extension_nids := nil; + X509_REQ_get_attr_count := nil; + X509_REQ_get_attr_by_NID := nil; + X509_REQ_get_attr_by_OBJ := nil; + X509_REQ_get_attr := nil; + X509_REQ_delete_attr := nil; + X509_REQ_add1_attr := nil; + X509_REQ_add1_attr_by_OBJ := nil; + X509_REQ_add1_attr_by_NID := nil; + X509_REQ_add1_attr_by_txt := nil; + X509_CRL_set_version := nil; + X509_CRL_set_issuer_name := nil; + X509_CRL_set1_lastUpdate := nil; {introduced 1.1.0} + X509_CRL_set1_nextUpdate := nil; {introduced 1.1.0} + X509_CRL_sort := nil; + X509_CRL_up_ref := nil; {introduced 1.1.0} + X509_CRL_get_version := nil; {introduced 1.1.0} + X509_CRL_get0_lastUpdate := nil; {introduced 1.1.0} + X509_CRL_get0_nextUpdate := nil; {introduced 1.1.0} + X509_CRL_get_issuer := nil; {introduced 1.1.0} + X509_CRL_get0_signature := nil; {introduced 1.1.0} + X509_CRL_get_signature_nid := nil; {introduced 1.1.0} + i2d_re_X509_CRL_tbs := nil; {introduced 1.1.0} + X509_REVOKED_get0_serialNumber := nil; {introduced 1.1.0} + X509_REVOKED_set_serialNumber := nil; + X509_REVOKED_get0_revocationDate := nil; {introduced 1.1.0} + X509_REVOKED_set_revocationDate := nil; + X509_CRL_diff := nil; + X509_REQ_check_private_key := nil; + X509_check_private_key := nil; + X509_CRL_check_suiteb := nil; + X509_issuer_and_serial_cmp := nil; + X509_issuer_and_serial_hash := nil; + X509_issuer_name_cmp := nil; + X509_issuer_name_hash := nil; + X509_subject_name_cmp := nil; + X509_subject_name_hash := nil; + X509_cmp := nil; + X509_NAME_cmp := nil; + X509_NAME_hash := nil; {removed 3.0.0} + X509_NAME_hash_old := nil; + X509_CRL_cmp := nil; + X509_CRL_match := nil; + X509_aux_print := nil; {introduced 1.1.0} + X509_NAME_print := nil; + X509_NAME_print_ex := nil; + X509_print_ex := nil; + X509_print := nil; + X509_ocspid_print := nil; + X509_CRL_print_ex := nil; {introduced 1.1.0} + X509_CRL_print := nil; + X509_REQ_print_ex := nil; + X509_REQ_print := nil; + X509_NAME_entry_count := nil; + X509_NAME_get_text_by_NID := nil; + X509_NAME_get_text_by_OBJ := nil; + X509_NAME_get_index_by_NID := nil; + X509_NAME_get_index_by_OBJ := nil; + X509_NAME_get_entry := nil; + X509_NAME_delete_entry := nil; + X509_NAME_add_entry := nil; + X509_NAME_add_entry_by_OBJ := nil; + X509_NAME_add_entry_by_NID := nil; + X509_NAME_ENTRY_create_by_txt := nil; + X509_NAME_ENTRY_create_by_NID := nil; + X509_NAME_add_entry_by_txt := nil; + X509_NAME_ENTRY_create_by_OBJ := nil; + X509_NAME_ENTRY_set_object := nil; + X509_NAME_ENTRY_set_data := nil; + X509_NAME_ENTRY_get_object := nil; + X509_NAME_ENTRY_get_data := nil; + X509_NAME_ENTRY_set := nil; {introduced 1.1.0} + X509_NAME_get0_der := nil; {introduced 1.1.0} + X509_get_ext_count := nil; + X509_get_ext_by_NID := nil; + X509_get_ext_by_OBJ := nil; + X509_get_ext_by_critical := nil; + X509_get_ext := nil; + X509_delete_ext := nil; + X509_add_ext := nil; + X509_get_ext_d2i := nil; + X509_add1_ext_i2d := nil; + X509_CRL_get_ext_count := nil; + X509_CRL_get_ext_by_NID := nil; + X509_CRL_get_ext_by_OBJ := nil; + X509_CRL_get_ext_by_critical := nil; + X509_CRL_get_ext := nil; + X509_CRL_delete_ext := nil; + X509_CRL_add_ext := nil; + X509_CRL_get_ext_d2i := nil; + X509_CRL_add1_ext_i2d := nil; + X509_REVOKED_get_ext_count := nil; + X509_REVOKED_get_ext_by_NID := nil; + X509_REVOKED_get_ext_by_OBJ := nil; + X509_REVOKED_get_ext_by_critical := nil; + X509_REVOKED_get_ext := nil; + X509_REVOKED_delete_ext := nil; + X509_REVOKED_add_ext := nil; + X509_REVOKED_get_ext_d2i := nil; + X509_REVOKED_add1_ext_i2d := nil; + X509_EXTENSION_create_by_NID := nil; + X509_EXTENSION_create_by_OBJ := nil; + X509_EXTENSION_set_object := nil; + X509_EXTENSION_set_critical := nil; + X509_EXTENSION_set_data := nil; + X509_EXTENSION_get_object := nil; + X509_EXTENSION_get_data := nil; + X509_EXTENSION_get_critical := nil; + X509_ATTRIBUTE_create_by_NID := nil; + X509_ATTRIBUTE_create_by_OBJ := nil; + X509_ATTRIBUTE_create_by_txt := nil; + X509_ATTRIBUTE_set1_object := nil; + X509_ATTRIBUTE_set1_data := nil; + X509_ATTRIBUTE_get0_data := nil; + X509_ATTRIBUTE_count := nil; + X509_ATTRIBUTE_get0_object := nil; + X509_ATTRIBUTE_get0_type := nil; + EVP_PKEY_get_attr_count := nil; + EVP_PKEY_get_attr_by_NID := nil; + EVP_PKEY_get_attr_by_OBJ := nil; + EVP_PKEY_get_attr := nil; + EVP_PKEY_delete_attr := nil; + EVP_PKEY_add1_attr := nil; + EVP_PKEY_add1_attr_by_OBJ := nil; + EVP_PKEY_add1_attr_by_NID := nil; + EVP_PKEY_add1_attr_by_txt := nil; + X509_verify_cert := nil; + PKCS5_pbe_set0_algor := nil; + PKCS5_pbe_set := nil; + PKCS5_pbe2_set := nil; + PKCS5_pbe2_set_iv := nil; + PKCS5_pbe2_set_scrypt := nil; {introduced 1.1.0} + PKCS5_pbkdf2_set := nil; + EVP_PKCS82PKEY := nil; + EVP_PKEY2PKCS8 := nil; + PKCS8_pkey_set0 := nil; + PKCS8_pkey_get0 := nil; + PKCS8_pkey_add1_attr_by_NID := nil; {introduced 1.1.0} + X509_PUBKEY_set0_param := nil; + X509_PUBKEY_get0_param := nil; + X509_check_trust := nil; + X509_TRUST_get_count := nil; + X509_TRUST_get0 := nil; + X509_TRUST_get_by_id := nil; + X509_TRUST_cleanup := nil; + X509_TRUST_get_flags := nil; + X509_TRUST_get0_name := nil; + X509_TRUST_get_trust := nil; + X509_NAME_hash_ex := nil; {introduced 3.0.0} +end; +{$ELSE} +function X509_NAME_hash(x: PX509_NAME): TIdC_ULONG; +begin + Result := X509_NAME_hash_ex(x,nil,nil,nil); +end; + + + + + +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509_vfy.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509_vfy.pas new file mode 100644 index 000000000..84b98c72a --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509_vfy.pas @@ -0,0 +1,3917 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_x509_vfy.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_x509_vfy.h2pas + and this file regenerated. IdOpenSSLHeaders_x509_vfy.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_x509_vfy; + +interface + +// Headers for OpenSSL 1.1.1 +// x509_vfy.h + + +{$MINENUMSIZE 4} + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ssl, + IdOpenSSLHeaders_ossl_typ; + +const + X509_L_FILE_LOAD = 1; + X509_L_ADD_DIR = 2; + + X509_V_OK = 0; + X509_V_ERR_UNSPECIFIED = 1; + X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT = 2; + X509_V_ERR_UNABLE_TO_GET_CRL = 3; + X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE = 4; + X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE = 5; + X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY = 6; + X509_V_ERR_CERT_SIGNATURE_FAILURE = 7; + X509_V_ERR_CRL_SIGNATURE_FAILURE = 8; + X509_V_ERR_CERT_NOT_YET_VALID = 9; + X509_V_ERR_CERT_HAS_EXPIRED = 10; + X509_V_ERR_CRL_NOT_YET_VALID = 11; + X509_V_ERR_CRL_HAS_EXPIRED = 12; + X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD = 13; + X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD = 14; + X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD = 15; + X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD = 16; + X509_V_ERR_OUT_OF_MEM = 17; + X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT = 18; + X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN = 19; + X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY = 20; + X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE = 21; + X509_V_ERR_CERT_CHAIN_TOO_LONG = 22; + X509_V_ERR_CERT_REVOKED = 23; + X509_V_ERR_INVALID_CA = 24; + X509_V_ERR_PATH_LENGTH_EXCEEDED = 25; + X509_V_ERR_INVALID_PURPOSE = 26; + X509_V_ERR_CERT_UNTRUSTED = 27; + X509_V_ERR_CERT_REJECTED = 28; + (* These are 'informational' when looking for issuer cert *) + X509_V_ERR_SUBJECT_ISSUER_MISMATCH = 29; + X509_V_ERR_AKID_SKID_MISMATCH = 30; + X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH = 31; + X509_V_ERR_KEYUSAGE_NO_CERTSIGN = 32; + X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER = 33; + X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION = 34; + X509_V_ERR_KEYUSAGE_NO_CRL_SIGN = 35; + X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION = 36; + X509_V_ERR_INVALID_NON_CA = 37; + X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED = 38; + X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE = 39; + X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED = 40; + X509_V_ERR_INVALID_EXTENSION = 41; + X509_V_ERR_INVALID_POLICY_EXTENSION = 42; + X509_V_ERR_NO_EXPLICIT_POLICY = 43; + X509_V_ERR_DIFFERENT_CRL_SCOPE = 44; + X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE = 45; + X509_V_ERR_UNNESTED_RESOURCE = 46; + X509_V_ERR_PERMITTED_VIOLATION = 47; + X509_V_ERR_EXCLUDED_VIOLATION = 48; + X509_V_ERR_SUBTREE_MINMAX = 49; + (* The application is not happy *) + X509_V_ERR_APPLICATION_VERIFICATION = 50; + X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE = 51; + X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX = 52; + X509_V_ERR_UNSUPPORTED_NAME_SYNTAX = 53; + X509_V_ERR_CRL_PATH_VALIDATION_ERROR = 54; + (* Another issuer check debug option *) + X509_V_ERR_PATH_LOOP = 55; + (* Suite B mode algorithm violation *) + X509_V_ERR_SUITE_B_INVALID_VERSION = 56; + X509_V_ERR_SUITE_B_INVALID_ALGORITHM = 57; + X509_V_ERR_SUITE_B_INVALID_CURVE = 58; + X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM = 59; + X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED = 60; + X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 = 61; + (* Host, email and IP check errors *) + X509_V_ERR_HOSTNAME_MISMATCH = 62; + X509_V_ERR_EMAIL_MISMATCH = 63; + X509_V_ERR_IP_ADDRESS_MISMATCH = 64; + (* DANE TLSA errors *) + X509_V_ERR_DANE_NO_MATCH = 65; + (* security level errors *) + X509_V_ERR_EE_KEY_TOO_SMALL = 66; + X509_V_ERR_CA_KEY_TOO_SMALL = 67; + X509_V_ERR_CA_MD_TOO_WEAK = 68; + (* Caller error *) + X509_V_ERR_INVALID_CALL = 69; + (* Issuer lookup error *) + X509_V_ERR_STORE_LOOKUP = 70; + (* Certificate transparency *) + X509_V_ERR_NO_VALID_SCTS = 71; + + X509_V_ERR_PROXY_SUBJECT_NAME_VIOLATION = 72; + (* OCSP status errors *) + X509_V_ERR_OCSP_VERIFY_NEEDED = 73; (* Need OCSP verification *) + X509_V_ERR_OCSP_VERIFY_FAILED = 74; (* Couldn't verify cert through OCSP *) + X509_V_ERR_OCSP_CERT_UNKNOWN = 75; (* Certificate wasn't recognized by the OCSP responder *) + + (* Certificate verify flags *) + + (* Use check time instead of current time *) + X509_V_FLAG_USE_CHECK_TIME = $2; + (* Lookup CRLs *) + X509_V_FLAG_CRL_CHECK = $4; + (* Lookup CRLs for whole chain *) + X509_V_FLAG_CRL_CHECK_ALL = $8; + (* Ignore unhandled critical extensions *) + X509_V_FLAG_IGNORE_CRITICAL = $10; + (* Disable workarounds for broken certificates *) + X509_V_FLAG_X509_STRICT = $20; + (* Enable proxy certificate validation *) + X509_V_FLAG_ALLOW_PROXY_CERTS = $40; + (* Enable policy checking *) + X509_V_FLAG_POLICY_CHECK = $80; + (* Policy variable require-explicit-policy *) + X509_V_FLAG_EXPLICIT_POLICY = $100; + (* Policy variable inhibit-any-policy *) + X509_V_FLAG_INHIBIT_ANY = $200; + (* Policy variable inhibit-policy-mapping *) + X509_V_FLAG_INHIBIT_MAP = $400; + (* Notify callback that policy is OK *) + X509_V_FLAG_NOTIFY_POLICY = $800; + (* Extended CRL features such as indirect CRLs, alternate CRL signing keys *) + X509_V_FLAG_EXTENDED_CRL_SUPPORT = $1000; + (* Delta CRL support *) + X509_V_FLAG_USE_DELTAS = $2000; + (* Check self-signed CA signature *) + X509_V_FLAG_CHECK_SS_SIGNATURE = $4000; + (* Use trusted store first *) + X509_V_FLAG_TRUSTED_FIRST = $8000; + (* Suite B 128 bit only mode: not normally used *) + X509_V_FLAG_SUITEB_128_LOS_ONLY = $10000; + (* Suite B 192 bit only mode *) + X509_V_FLAG_SUITEB_192_LOS = $20000; + (* Suite B 128 bit mode allowing 192 bit algorithms *) + X509_V_FLAG_SUITEB_128_LOS = $30000; + (* Allow partial chains if at least one certificate is in trusted store *) + X509_V_FLAG_PARTIAL_CHAIN = $80000; + (* + * If the initial chain is not trusted, do not attempt to build an alternative + * chain. Alternate chain checking was introduced 1.1.0. Setting this flag + * will force the behaviour to match that of previous versions. + *) + X509_V_FLAG_NO_ALT_CHAINS = $100000; + (* Do not check certificate/CRL validity against current time *) + X509_V_FLAG_NO_CHECK_TIME = $200000; + + X509_VP_FLAG_DEFAULT = $1; + X509_VP_FLAG_OVERWRITE = $2; + X509_VP_FLAG_RESET_FLAGS = $4; + X509_VP_FLAG_LOCKED = $8; + X509_VP_FLAG_ONCE = $10; + + (* Internal use: mask of policy related options *) + X509_V_FLAG_POLICY_MASK = X509_V_FLAG_POLICY_CHECK or X509_V_FLAG_EXPLICIT_POLICY + or X509_V_FLAG_INHIBIT_ANY or X509_V_FLAG_INHIBIT_MAP; + + + DANE_FLAG_NO_DANE_EE_NAMECHECKS = TIdC_Long(1) shl 0; + + (* Non positive return values are errors *) + X509_PCY_TREE_FAILURE = -2; (* Failure to satisfy explicit policy *) + X509_PCY_TREE_INVALID = -1; (* Inconsistent or invalid extensions *) + X509_PCY_TREE_INTERNAL = 0; (* Internal error, most likely malloc *) + + (* + * Positive return values form a bit mask, all but the first are internal to + * the library and don't appear in results from X509_policy_check(). + *) + X509_PCY_TREE_VALID = 1; (* The policy tree is valid *) + X509_PCY_TREE_EMPTY = 2; (* The policy tree is empty *) + X509_PCY_TREE_EXPLICIT = 4; (* Explicit policy required *) + +type + (*- + SSL_CTX -> X509_STORE + -> X509_LOOKUP + ->X509_LOOKUP_METHOD + -> X509_LOOKUP + ->X509_LOOKUP_METHOD + + SSL -> X509_STORE_CTX + ->X509_STORE + + The X509_STORE holds the tables etc for verification stuff. + A X509_STORE_CTX is used while validating a single certificate. + The X509_STORE has X509_LOOKUPs for looking up certs. + The X509_STORE then calls a function to actually verify the + certificate chain. + *) + + X509_LOOKUP_TYPE = ( + X509_LU_NONE = 0, + X509_LU_X509, + X509_LU_CRL + ); + + X509_STORE_CTX_verify_cb = function(v1: TIdC_INT; v2: PX509_STORE_CTX): TIdC_INT; + X509_STORE_CTX_verify_fn = function(v1: PX509_STORE_CTX): TIdC_INT; + X509_STORE_CTX_get_issuer_fn = function(issuer: PPX509; ctx: PX509_STORE_CTX; x: PX509): TIdC_INT; + X509_STORE_CTX_check_issued_fn = function(ctx: PX509_STORE_CTX; x: PX509; issuer: PX509): TIdC_INT; + X509_STORE_CTX_check_revocation_fn = function(ctx: PX509_STORE_CTX): TIdC_INT; + X509_STORE_CTX_get_crl_fn = function(ctx: PX509_STORE_CTX; crl: PPX509_CRL; x: PX509): TIdC_INT; + X509_STORE_CTX_check_crl_fn = function(ctx: PX509_STORE_CTX; crl: PX509_CRL): TIdC_INT; + X509_STORE_CTX_cert_crl_fn = function(ctx: PX509_STORE_CTX; crl: PX509_CRL; x: PX509): TIdC_INT; + X509_STORE_CTX_check_policy_fn = function(ctx: PX509_STORE_CTX): TIdC_INT; +// typedef STACK_OF(X509) *(*X509_STORE_CTX_lookup_certs_fn)(X509_STORE_CTX *ctx, +// X509_NAME *nm); +// typedef STACK_OF(X509_CRL) *(*X509_STORE_CTX_lookup_crls_fn)(X509_STORE_CTX *ctx, +// X509_NAME *nm); + X509_STORE_CTX_cleanup_fn = function(ctx: PX509_STORE_CTX): TIdC_INT; + + X509_LOOKUP_ctrl_fn = function(ctx: PX509_LOOKUP; cmd: TIdC_INT; + const argc: PIdAnsiChar; argl: TIdC_LONG; ret: PPIdAnsiChar): TIdC_INT; cdecl; + X509_LOOKUP_get_by_subject_fn = function(ctx: PX509_LOOKUP; + type_: X509_LOOKUP_TYPE; name: PX509_NAME; ret: PX509_OBJECT): TIdC_INT; cdecl; + X509_LOOKUP_get_by_issuer_serial_fn = function(ctx: PX509_LOOKUP; + type_: X509_LOOKUP_TYPE; name: PX509_NAME; serial: PASN1_INTEGER; ret: PX509_OBJECT): TIdC_INT; cdecl; + X509_LOOKUP_get_by_fingerprint_fn = function(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; + const bytes: PByte; len: TIdC_INT; ret: PX509_OBJECT): TIdC_INT; cdecl; + X509_LOOKUP_get_by_alias_fn = function(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; + const str: PIdAnsiChar; len: TIdC_INT; ret: PX509_OBJECT): TIdC_INT; cdecl; + + //DEFINE_STACK_OF(X509_LOOKUP) + //DEFINE_STACK_OF(X509_OBJECT) + //DEFINE_STACK_OF(X509_VERIFY_PARAM) + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM X509_STORE_set_depth} + {$EXTERNALSYM X509_STORE_CTX_set_depth} + {$EXTERNALSYM X509_OBJECT_up_ref_count} + {$EXTERNALSYM X509_OBJECT_new} {introduced 1.1.0} + {$EXTERNALSYM X509_OBJECT_free} {introduced 1.1.0} + {$EXTERNALSYM X509_OBJECT_get_type} {introduced 1.1.0} + {$EXTERNALSYM X509_OBJECT_get0_X509} {introduced 1.1.0} + {$EXTERNALSYM X509_OBJECT_set1_X509} {introduced 1.1.0} + {$EXTERNALSYM X509_OBJECT_get0_X509_CRL} {introduced 1.1.0} + {$EXTERNALSYM X509_OBJECT_set1_X509_CRL} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_new} + {$EXTERNALSYM X509_STORE_free} + {$EXTERNALSYM X509_STORE_lock} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_unlock} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_up_ref} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_flags} + {$EXTERNALSYM X509_STORE_set_purpose} + {$EXTERNALSYM X509_STORE_set_trust} + {$EXTERNALSYM X509_STORE_set1_param} + {$EXTERNALSYM X509_STORE_get0_param} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_verify} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_set_verify} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_get_verify} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_verify_cb} + {$EXTERNALSYM X509_STORE_get_verify_cb} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_get_issuer} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_get_get_issuer} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_check_issued} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_get_check_issued} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_check_revocation} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_get_check_revocation} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_get_crl} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_get_get_crl} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_check_crl} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_get_check_crl} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_cert_crl} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_get_cert_crl} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_check_policy} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_get_check_policy} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_cleanup} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_get_cleanup} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_set_ex_data} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_get_ex_data} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_new} + {$EXTERNALSYM X509_STORE_CTX_get1_issuer} + {$EXTERNALSYM X509_STORE_CTX_free} + {$EXTERNALSYM X509_STORE_CTX_cleanup} + {$EXTERNALSYM X509_STORE_CTX_get0_store} + {$EXTERNALSYM X509_STORE_CTX_get0_cert} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_set_verify_cb} + {$EXTERNALSYM X509_STORE_CTX_get_verify_cb} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get_verify} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get_get_issuer} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get_check_issued} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get_check_revocation} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get_get_crl} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get_check_crl} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get_cert_crl} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get_check_policy} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get_cleanup} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_add_lookup} + {$EXTERNALSYM X509_LOOKUP_hash_dir} + {$EXTERNALSYM X509_LOOKUP_file} + {$EXTERNALSYM X509_LOOKUP_meth_new} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_meth_free} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_meth_set_ctrl} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_meth_get_ctrl} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_meth_set_get_by_subject} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_meth_get_get_by_subject} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_meth_set_get_by_issuer_serial} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_meth_get_get_by_issuer_serial} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_meth_set_get_by_fingerprint} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_meth_get_get_by_fingerprint} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_meth_set_get_by_alias} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_meth_get_get_by_alias} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_add_cert} + {$EXTERNALSYM X509_STORE_add_crl} + {$EXTERNALSYM X509_STORE_CTX_get_by_subject} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get_obj_by_subject} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_ctrl} + {$EXTERNALSYM X509_load_cert_file} + {$EXTERNALSYM X509_load_crl_file} + {$EXTERNALSYM X509_load_cert_crl_file} + {$EXTERNALSYM X509_LOOKUP_new} + {$EXTERNALSYM X509_LOOKUP_free} + {$EXTERNALSYM X509_LOOKUP_init} + {$EXTERNALSYM X509_LOOKUP_by_subject} + {$EXTERNALSYM X509_LOOKUP_by_issuer_serial} + {$EXTERNALSYM X509_LOOKUP_by_fingerprint} + {$EXTERNALSYM X509_LOOKUP_by_alias} + {$EXTERNALSYM X509_LOOKUP_set_method_data} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_get_method_data} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_get_store} {introduced 1.1.0} + {$EXTERNALSYM X509_LOOKUP_shutdown} + {$EXTERNALSYM X509_STORE_load_locations} + {$EXTERNALSYM X509_STORE_set_default_paths} + {$EXTERNALSYM X509_STORE_CTX_set_ex_data} + {$EXTERNALSYM X509_STORE_CTX_get_ex_data} + {$EXTERNALSYM X509_STORE_CTX_get_error} + {$EXTERNALSYM X509_STORE_CTX_set_error} + {$EXTERNALSYM X509_STORE_CTX_get_error_depth} + {$EXTERNALSYM X509_STORE_CTX_set_error_depth} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get_current_cert} + {$EXTERNALSYM X509_STORE_CTX_set_current_cert} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get0_current_issuer} + {$EXTERNALSYM X509_STORE_CTX_get0_current_crl} + {$EXTERNALSYM X509_STORE_CTX_get0_parent_ctx} + {$EXTERNALSYM X509_STORE_CTX_set_cert} + {$EXTERNALSYM X509_STORE_CTX_set_purpose} + {$EXTERNALSYM X509_STORE_CTX_set_trust} + {$EXTERNALSYM X509_STORE_CTX_purpose_inherit} + {$EXTERNALSYM X509_STORE_CTX_set_flags} + {$EXTERNALSYM X509_STORE_CTX_get0_policy_tree} + {$EXTERNALSYM X509_STORE_CTX_get_explicit_policy} + {$EXTERNALSYM X509_STORE_CTX_get_num_untrusted} {introduced 1.1.0} + {$EXTERNALSYM X509_STORE_CTX_get0_param} + {$EXTERNALSYM X509_STORE_CTX_set0_param} + {$EXTERNALSYM X509_STORE_CTX_set_default} + {$EXTERNALSYM X509_STORE_CTX_set0_dane} {introduced 1.1.0} + {$EXTERNALSYM X509_VERIFY_PARAM_new} + {$EXTERNALSYM X509_VERIFY_PARAM_free} + {$EXTERNALSYM X509_VERIFY_PARAM_inherit} + {$EXTERNALSYM X509_VERIFY_PARAM_set1} + {$EXTERNALSYM X509_VERIFY_PARAM_set1_name} + {$EXTERNALSYM X509_VERIFY_PARAM_set_flags} + {$EXTERNALSYM X509_VERIFY_PARAM_clear_flags} + {$EXTERNALSYM X509_VERIFY_PARAM_get_flags} + {$EXTERNALSYM X509_VERIFY_PARAM_set_purpose} + {$EXTERNALSYM X509_VERIFY_PARAM_set_trust} + {$EXTERNALSYM X509_VERIFY_PARAM_set_depth} + {$EXTERNALSYM X509_VERIFY_PARAM_set_auth_level} {introduced 1.1.0} + {$EXTERNALSYM X509_VERIFY_PARAM_add0_policy} + {$EXTERNALSYM X509_VERIFY_PARAM_set_inh_flags} {introduced 1.1.0} + {$EXTERNALSYM X509_VERIFY_PARAM_get_inh_flags} {introduced 1.1.0} + {$EXTERNALSYM X509_VERIFY_PARAM_set1_host} + {$EXTERNALSYM X509_VERIFY_PARAM_add1_host} + {$EXTERNALSYM X509_VERIFY_PARAM_set_hostflags} + {$EXTERNALSYM X509_VERIFY_PARAM_get_hostflags} {introduced 1.1.0} + {$EXTERNALSYM X509_VERIFY_PARAM_get0_peername} + {$EXTERNALSYM X509_VERIFY_PARAM_move_peername} {introduced 1.1.0} + {$EXTERNALSYM X509_VERIFY_PARAM_set1_email} + {$EXTERNALSYM X509_VERIFY_PARAM_set1_ip} + {$EXTERNALSYM X509_VERIFY_PARAM_set1_ip_asc} + {$EXTERNALSYM X509_VERIFY_PARAM_get_depth} + {$EXTERNALSYM X509_VERIFY_PARAM_get_auth_level} {introduced 1.1.0} + {$EXTERNALSYM X509_VERIFY_PARAM_get0_name} + {$EXTERNALSYM X509_VERIFY_PARAM_add0_table} + {$EXTERNALSYM X509_VERIFY_PARAM_get_count} + {$EXTERNALSYM X509_VERIFY_PARAM_get0} + {$EXTERNALSYM X509_VERIFY_PARAM_lookup} + {$EXTERNALSYM X509_VERIFY_PARAM_table_cleanup} + {$EXTERNALSYM X509_policy_tree_free} + {$EXTERNALSYM X509_policy_tree_level_count} + {$EXTERNALSYM X509_policy_tree_get0_level} + {$EXTERNALSYM X509_policy_level_node_count} + {$EXTERNALSYM X509_policy_level_get0_node} + {$EXTERNALSYM X509_policy_node_get0_policy} + {$EXTERNALSYM X509_policy_node_get0_parent} +{helper_functions} +function X509_LOOKUP_load_file(ctx: PX509_LOOKUP; name: PIdAnsiChar; type_: TIdC_LONG): TIdC_INT; +{\helper_functions} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + {$EXTERNALSYM X509_STORE_CTX_get_app_data} {removed 1.0.0} + X509_STORE_set_depth: function(store: PX509_STORE; depth: TIdC_INT): TIdC_INT; cdecl = nil; + + X509_STORE_CTX_set_depth: procedure(ctx: PX509_STORE_CTX; depth: TIdC_INT); cdecl = nil; + + //# define X509_STORE_CTX_set_app_data(ctx,data) \ + // X509_STORE_CTX_set_ex_data(ctx,0,data) + //# define X509_STORE_CTX_get_app_data(ctx) \ + // X509_STORE_CTX_get_ex_data(ctx,0) + X509_STORE_CTX_get_app_data: function(ctx: PX509_STORE_CTX): Pointer; cdecl = nil; {removed 1.0.0} + // + //# define X509_LOOKUP_load_file(x,name,type) \ + // X509_LOOKUP_ctrl((x),X509_L_FILE_LOAD,(name),(TIdC_LONG)(type),NULL) + // + //# define X509_LOOKUP_add_dir(x,name,type) \ + // X509_LOOKUP_ctrl((x),X509_L_ADD_DIR,(name),(TIdC_LONG)(type),NULL) + // + //TIdC_INT X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type, + // X509_NAME *name); + //X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h, + // X509_LOOKUP_TYPE type, + // X509_NAME *name); + //X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h, + // X509_OBJECT *x); + X509_OBJECT_up_ref_count: function(a: PX509_OBJECT): TIdC_INT; cdecl = nil; + X509_OBJECT_new: function: PX509_OBJECT; cdecl = nil; {introduced 1.1.0} + X509_OBJECT_free: procedure(a: PX509_OBJECT); cdecl = nil; {introduced 1.1.0} + X509_OBJECT_get_type: function(const a: PX509_OBJECT): X509_LOOKUP_TYPE; cdecl = nil; {introduced 1.1.0} + X509_OBJECT_get0_X509: function(const a: PX509_OBJECT): PX509; cdecl = nil; {introduced 1.1.0} + X509_OBJECT_set1_X509: function(a: PX509_OBJECT; obj: PX509): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_OBJECT_get0_X509_CRL: function(a: PX509_OBJECT): PX509_CRL; cdecl = nil; {introduced 1.1.0} + X509_OBJECT_set1_X509_CRL: function(a: PX509_OBJECT; obj: PX509_CRL): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_STORE_new: function: PX509_STORE; cdecl = nil; + X509_STORE_free: procedure(v: PX509_STORE); cdecl = nil; + X509_STORE_lock: function(ctx: PX509_STORE): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_STORE_unlock: function(ctx: PX509_STORE): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_STORE_up_ref: function(v: PX509_STORE): TIdC_INT; cdecl = nil; {introduced 1.1.0} + //STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *v); + + //STACK_OF(X509) *X509_STORE_CTX_get1_certs(X509_STORE_CTX *st, X509_NAME *nm); + //STACK_OF(X509_CRL) *X509_STORE_CTX_get1_crls(X509_STORE_CTX *st, X509_NAME *nm); + X509_STORE_set_flags: function(ctx: PX509_STORE; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + X509_STORE_set_purpose: function(ctx: PX509_STORE; purpose: TIdC_INT): TIdC_INT; cdecl = nil; + X509_STORE_set_trust: function(ctx: PX509_STORE; trust: TIdC_INT): TIdC_INT; cdecl = nil; + X509_STORE_set1_param: function(ctx: PX509_STORE; pm: PX509_VERIFY_PARAM): TIdC_INT; cdecl = nil; + X509_STORE_get0_param: function(ctx: PX509_STORE): PX509_VERIFY_PARAM; cdecl = nil; {introduced 1.1.0} + + X509_STORE_set_verify: procedure(ctx: PX509_STORE; verify: X509_STORE_CTX_verify_fn); cdecl = nil; {introduced 1.1.0} + //#define X509_STORE_set_verify_func(ctx, func) \ + // X509_STORE_set_verify((ctx),(func)) + X509_STORE_CTX_set_verify: procedure(ctx: PX509_STORE_CTX; verify: X509_STORE_CTX_verify_fn); cdecl = nil; {introduced 1.1.0} + X509_STORE_get_verify: function(ctx: PX509_STORE): X509_STORE_CTX_verify_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_set_verify_cb: procedure(ctx: PX509_STORE; verify_cb: X509_STORE_CTX_verify_cb); cdecl = nil; + //# define X509_STORE_set_verify_cb_func(ctx,func) \ + // X509_STORE_set_verify_cb((ctx),(func)) + X509_STORE_get_verify_cb: function(ctx: PX509_STORE): X509_STORE_CTX_verify_cb; cdecl = nil; {introduced 1.1.0} + X509_STORE_set_get_issuer: procedure(ctx: PX509_STORE; get_issuer: X509_STORE_CTX_get_issuer_fn); cdecl = nil; {introduced 1.1.0} + X509_STORE_get_get_issuer: function(ctx: PX509_STORE): X509_STORE_CTX_get_issuer_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_set_check_issued: procedure(ctx: PX509_STORE; check_issued: X509_STORE_CTX_check_issued_fn); cdecl = nil; {introduced 1.1.0} + X509_STORE_get_check_issued: function(ctx: PX509_STORE): X509_STORE_CTX_check_issued_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_set_check_revocation: procedure(ctx: PX509_STORE; check_revocation: X509_STORE_CTX_check_revocation_fn); cdecl = nil; {introduced 1.1.0} + X509_STORE_get_check_revocation: function(ctx: PX509_STORE): X509_STORE_CTX_check_revocation_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_set_get_crl: procedure(ctx: PX509_STORE; get_crl: X509_STORE_CTX_get_crl_fn); cdecl = nil; {introduced 1.1.0} + X509_STORE_get_get_crl: function(ctx: PX509_STORE): X509_STORE_CTX_get_crl_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_set_check_crl: procedure(ctx: PX509_STORE; check_crl: X509_STORE_CTX_check_crl_fn); cdecl = nil; {introduced 1.1.0} + X509_STORE_get_check_crl: function(ctx: PX509_STORE): X509_STORE_CTX_check_crl_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_set_cert_crl: procedure(ctx: PX509_STORE; cert_crl: X509_STORE_CTX_cert_crl_fn); cdecl = nil; {introduced 1.1.0} + X509_STORE_get_cert_crl: function(ctx: PX509_STORE): X509_STORE_CTX_cert_crl_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_set_check_policy: procedure(ctx: PX509_STORE; check_policy: X509_STORE_CTX_check_policy_fn); cdecl = nil; {introduced 1.1.0} + X509_STORE_get_check_policy: function(ctx: PX509_STORE): X509_STORE_CTX_check_policy_fn; cdecl = nil; {introduced 1.1.0} +// procedure X509_STORE_set_lookup_certs(ctx: PX509_STORE; lookup_certs: X509_STORE_CTX_lookup_certs_fn); +// function X509_STORE_get_lookup_certs(ctx: PX509_STORE): X509_STORE_CTX_lookup_certs_fn; +// procedure X509_STORE_set_lookup_crls(ctx: PX509_STORE; lookup_crls: X509_STORE_CTX_lookup_crls_fn); +// #define X509_STORE_set_lookup_crls_cb(ctx, func) \ +// X509_STORE_set_lookup_crls((ctx), (func)) +// function X509_STORE_get_lookup_crls(ctx: PX509_STORE): X509_STORE_CTX_lookup_crls_fn; + X509_STORE_set_cleanup: procedure(ctx: PX509_STORE; cleanup: X509_STORE_CTX_cleanup_fn); cdecl = nil; {introduced 1.1.0} + X509_STORE_get_cleanup: function(ctx: PX509_STORE): X509_STORE_CTX_cleanup_fn; cdecl = nil; {introduced 1.1.0} + + //#define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, l, p, newf, dupf, freef) + X509_STORE_set_ex_data: function(ctx: PX509_STORE; idx: TIdC_INT; data: Pointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_STORE_get_ex_data: function(ctx: PX509_STORE; idx: TIdC_INT): Pointer; cdecl = nil; {introduced 1.1.0} + + X509_STORE_CTX_new: function: PX509_STORE_CTX; cdecl = nil; + + X509_STORE_CTX_get1_issuer: function(issuer: PPX509; ctx: PX509_STORE_CTX; x: PX509): TIdC_INT; cdecl = nil; + + X509_STORE_CTX_free: procedure(ctx: PX509_STORE_CTX); cdecl = nil; +// TIdC_INT X509_STORE_CTX_init(ctx: PX509_STORE_CTX; store: PX509_STORE; x509: PX509; chain: P STACK_OF(X509)); +// procedure X509_STORE_CTX_set0_trusted_stack(ctx: PX509_STORE_CTX; sk: P STACK_OF(X509)); + X509_STORE_CTX_cleanup: procedure(ctx: PX509_STORE_CTX); cdecl = nil; + + X509_STORE_CTX_get0_store: function(ctx: PX509_STORE_CTX): PX509_STORE; cdecl = nil; + X509_STORE_CTX_get0_cert: function(ctx: PX509_STORE_CTX): PX509; cdecl = nil; {introduced 1.1.0} + //STACK_OF(X509)* X509_STORE_CTX_get0_untrusted(X509_STORE_CTX *ctx); + //void X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk); + X509_STORE_CTX_set_verify_cb: procedure(ctx: PX509_STORE_CTX; verify: X509_STORE_CTX_verify_cb); cdecl = nil; + X509_STORE_CTX_get_verify_cb: function(ctx: PX509_STORE_CTX): X509_STORE_CTX_verify_cb; cdecl = nil; {introduced 1.1.0} + X509_STORE_CTX_get_verify: function(ctx: PX509_STORE_CTX): X509_STORE_CTX_verify_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_CTX_get_get_issuer: function(ctx: PX509_STORE_CTX): X509_STORE_CTX_get_issuer_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_CTX_get_check_issued: function(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_issued_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_CTX_get_check_revocation: function(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_revocation_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_CTX_get_get_crl: function(ctx: PX509_STORE_CTX): X509_STORE_CTX_get_crl_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_CTX_get_check_crl: function(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_crl_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_CTX_get_cert_crl: function(ctx: PX509_STORE_CTX): X509_STORE_CTX_cert_crl_fn; cdecl = nil; {introduced 1.1.0} + X509_STORE_CTX_get_check_policy: function(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_policy_fn; cdecl = nil; {introduced 1.1.0} +// function X509_STORE_CTX_get_lookup_certs(ctx: PX509_STORE_CTX): X509_STORE_CTX_lookup_certs_fn; +// function X509_STORE_CTX_get_lookup_crls(ctx: PX509_STORE_CTX): X509_STORE_CTX_lookup_crls_fn; + X509_STORE_CTX_get_cleanup: function(ctx: PX509_STORE_CTX): X509_STORE_CTX_cleanup_fn; cdecl = nil; {introduced 1.1.0} + + X509_STORE_add_lookup: function(v: PX509_STORE; m: PX509_LOOKUP_METHOD): PX509_LOOKUP; cdecl = nil; + X509_LOOKUP_hash_dir: function: PX509_LOOKUP_METHOD; cdecl = nil; + X509_LOOKUP_file: function: PX509_LOOKUP_METHOD; cdecl = nil; + + X509_LOOKUP_meth_new: function(const name: PIdAnsiChar): PX509_LOOKUP_METHOD; cdecl = nil; {introduced 1.1.0} + X509_LOOKUP_meth_free: procedure(method: PX509_LOOKUP_METHOD); cdecl = nil; {introduced 1.1.0} + + //TIdC_INT X509_LOOKUP_meth_set_new_item(X509_LOOKUP_METHOD *method, + // TIdC_INT (*new_item) (X509_LOOKUP *ctx)); + //TIdC_INT (*X509_LOOKUP_meth_get_new_item(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + // + //TIdC_INT X509_LOOKUP_meth_set_free(X509_LOOKUP_METHOD *method, + // void (*free_fn) (X509_LOOKUP *ctx)); + //void (*X509_LOOKUP_meth_get_free(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + // + //TIdC_INT X509_LOOKUP_meth_set_init(X509_LOOKUP_METHOD *method, + // TIdC_INT (*init) (X509_LOOKUP *ctx)); + //TIdC_INT (*X509_LOOKUP_meth_get_init(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + // + //TIdC_INT X509_LOOKUP_meth_set_shutdown(X509_LOOKUP_METHOD *method, + // TIdC_INT (*shutdown) (X509_LOOKUP *ctx)); + //TIdC_INT (*X509_LOOKUP_meth_get_shutdown(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + + X509_LOOKUP_meth_set_ctrl: function(method: PX509_LOOKUP_METHOD; ctrl_fn: X509_LOOKUP_ctrl_fn): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_LOOKUP_meth_get_ctrl: function(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_ctrl_fn; cdecl = nil; {introduced 1.1.0} + + X509_LOOKUP_meth_set_get_by_subject: function(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_subject_fn): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_subject: function(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_subject_fn; cdecl = nil; {introduced 1.1.0} + + X509_LOOKUP_meth_set_get_by_issuer_serial: function(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_issuer_serial_fn): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_issuer_serial: function(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_issuer_serial_fn; cdecl = nil; {introduced 1.1.0} + + X509_LOOKUP_meth_set_get_by_fingerprint: function(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_fingerprint_fn): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_fingerprint: function(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_fingerprint_fn; cdecl = nil; {introduced 1.1.0} + + X509_LOOKUP_meth_set_get_by_alias: function(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_alias_fn): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_alias: function(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_alias_fn; cdecl = nil; {introduced 1.1.0} + + X509_STORE_add_cert: function(ctx: PX509_STORE; x: PX509): TIdC_INT; cdecl = nil; + X509_STORE_add_crl: function(ctx: PX509_STORE; x: PX509_CRL): TIdC_INT; cdecl = nil; + + X509_STORE_CTX_get_by_subject: function(vs: PX509_STORE_CTX; type_: X509_LOOKUP_TYPE; name: PX509_NAME; ret: PX509_OBJECT): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_STORE_CTX_get_obj_by_subject: function(vs: PX509_STORE_CTX; type_: X509_LOOKUP_TYPE; name: PX509_NAME): PX509_OBJECT; cdecl = nil; {introduced 1.1.0} + + X509_LOOKUP_ctrl: function(ctx: PX509_LOOKUP; cmd: TIdC_INT; const argc: PIdAnsiChar; argl: TIdC_LONG; ret: PPIdAnsiChar): TIdC_INT; cdecl = nil; + + X509_load_cert_file: function(ctx: PX509_LOOKUP; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; cdecl = nil; + X509_load_crl_file: function(ctx: PX509_LOOKUP; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; cdecl = nil; + X509_load_cert_crl_file: function(ctx: PX509_LOOKUP; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; cdecl = nil; + + X509_LOOKUP_new: function(method: PX509_LOOKUP_METHOD): PX509_LOOKUP; cdecl = nil; + X509_LOOKUP_free: procedure(ctx: PX509_LOOKUP); cdecl = nil; + X509_LOOKUP_init: function(ctx: PX509_LOOKUP): TIdC_INT; cdecl = nil; + X509_LOOKUP_by_subject: function(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; name: PX509_NAME; ret: PX509_OBJECT): TIdC_INT; cdecl = nil; + X509_LOOKUP_by_issuer_serial: function(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; name: PX509_NAME; serial: PASN1_INTEGER; ret: PX509_OBJECT): TIdC_INT; cdecl = nil; + X509_LOOKUP_by_fingerprint: function(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; const bytes: PByte; len: TIdC_INT; ret: PX509_OBJECT): TIdC_INT; cdecl = nil; + X509_LOOKUP_by_alias: function(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; const str: PIdAnsiChar; len: TIdC_INT; ret: PX509_OBJECT): TIdC_INT; cdecl = nil; + X509_LOOKUP_set_method_data: function(ctx: PX509_LOOKUP; data: Pointer): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_LOOKUP_get_method_data: function(const ctx: PX509_LOOKUP): Pointer; cdecl = nil; {introduced 1.1.0} + X509_LOOKUP_get_store: function(const ctx: PX509_LOOKUP): PX509_STORE; cdecl = nil; {introduced 1.1.0} + X509_LOOKUP_shutdown: function(ctx: PX509_LOOKUP): TIdC_INT; cdecl = nil; + + X509_STORE_load_locations: function(ctx: PX509_STORE; const file_: PIdAnsiChar; const dir: PIdAnsiChar): TIdC_INT; cdecl = nil; + X509_STORE_set_default_paths: function(ctx: PX509_STORE): TIdC_INT; cdecl = nil; + + //#define X509_STORE_CTX_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE_CTX, l, p, newf, dupf, freef) + X509_STORE_CTX_set_ex_data: function(ctx: PX509_STORE_CTX; idx: TIdC_INT; data: Pointer): TIdC_INT; cdecl = nil; + X509_STORE_CTX_get_ex_data: function(ctx: PX509_STORE_CTX; idx: TIdC_INT): Pointer; cdecl = nil; + X509_STORE_CTX_get_error: function(ctx: PX509_STORE_CTX): TIdC_INT; cdecl = nil; + X509_STORE_CTX_set_error: procedure(ctx: X509_STORE_CTX; s: TIdC_INT); cdecl = nil; + X509_STORE_CTX_get_error_depth: function(ctx: PX509_STORE_CTX): TIdC_INT; cdecl = nil; + X509_STORE_CTX_set_error_depth: procedure(ctx: PX509_STORE_CTX; depth: TIdC_INT); cdecl = nil; {introduced 1.1.0} + X509_STORE_CTX_get_current_cert: function(ctx: PX509_STORE_CTX): PX509; cdecl = nil; + X509_STORE_CTX_set_current_cert: procedure(ctx: PX509_STORE_CTX; x: PX509); cdecl = nil; {introduced 1.1.0} + X509_STORE_CTX_get0_current_issuer: function(ctx: PX509_STORE_CTX): PX509; cdecl = nil; + X509_STORE_CTX_get0_current_crl: function(ctx: PX509_STORE_CTX): PX509_CRL; cdecl = nil; + X509_STORE_CTX_get0_parent_ctx: function(ctx: PX509_STORE_CTX): PX509_STORE_CTX; cdecl = nil; +// STACK_OF(X509) *X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx); +// STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx); + X509_STORE_CTX_set_cert: procedure(c: PX509_STORE_CTX; x: PX509); cdecl = nil; +// void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *c, STACK_OF(X509) *sk); +// void X509_STORE_CTX_set0_crls(X509_STORE_CTX *c, STACK_OF(X509_CRL) *sk); + X509_STORE_CTX_set_purpose: function(ctx: PX509_STORE_CTX; purpose: TIdC_INT): TIdC_INT; cdecl = nil; + X509_STORE_CTX_set_trust: function(ctx: PX509_STORE_CTX; trust: TIdC_INT): TIdC_INT; cdecl = nil; + X509_STORE_CTX_purpose_inherit: function(ctx: PX509_STORE_CTX; def_purpose: TIdC_INT; purpose: TIdC_INT; trust: TIdC_INT): TIdC_INT; cdecl = nil; + X509_STORE_CTX_set_flags: procedure(ctx: PX509_STORE_CTX; flags: TIdC_ULONG); cdecl = nil; +// procedure X509_STORE_CTX_set_time(ctx: PX509_STORE_CTX; flags: TIdC_ULONG; t: TIdC_TIMET); + + X509_STORE_CTX_get0_policy_tree: function(ctx: PX509_STORE_CTX): PX509_POLICY_TREE; cdecl = nil; + X509_STORE_CTX_get_explicit_policy: function(ctx: PX509_STORE_CTX): TIdC_INT; cdecl = nil; + X509_STORE_CTX_get_num_untrusted: function(ctx: PX509_STORE_CTX): TIdC_INT; cdecl = nil; {introduced 1.1.0} + + X509_STORE_CTX_get0_param: function(ctx: PX509_STORE_CTX): PX509_VERIFY_PARAM; cdecl = nil; + X509_STORE_CTX_set0_param: procedure(ctx: PX509_STORE_CTX; param: PX509_VERIFY_PARAM); cdecl = nil; + X509_STORE_CTX_set_default: function(ctx: PX509_STORE_CTX; const name: PIdAnsiChar): TIdC_INT; cdecl = nil; + + (* + * Bridge opacity barrier between libcrypt and libssl, also needed to support + * offline testing in test/danetest.c + *) + X509_STORE_CTX_set0_dane: procedure(ctx: PX509_STORE_CTX; dane: PSSL_DANE); cdecl = nil; {introduced 1.1.0} + + (* X509_VERIFY_PARAM functions *) + + X509_VERIFY_PARAM_new: function: PX509_VERIFY_PARAM; cdecl = nil; + X509_VERIFY_PARAM_free: procedure(param: PX509_VERIFY_PARAM); cdecl = nil; + X509_VERIFY_PARAM_inherit: function(to_: PX509_VERIFY_PARAM; const from: PX509_VERIFY_PARAM): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_set1: function(to_: PX509_VERIFY_PARAM; const from: PX509_VERIFY_PARAM): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_set1_name: function(param: PX509_VERIFY_PARAM; const name: PIdAnsiChar): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_set_flags: function(param: PX509_VERIFY_PARAM; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_clear_flags: function(param: PX509_VERIFY_PARAM; flags: TIdC_ULONG): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_get_flags: function(param: PX509_VERIFY_PARAM): TIdC_ULONG; cdecl = nil; + X509_VERIFY_PARAM_set_purpose: function(param: PX509_VERIFY_PARAM; purpose: TIdC_INT): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_set_trust: function(param: PX509_VERIFY_PARAM; trust: TIdC_INT): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_set_depth: procedure(param: PX509_VERIFY_PARAM; depth: TIdC_INT); cdecl = nil; + X509_VERIFY_PARAM_set_auth_level: procedure(param: PX509_VERIFY_PARAM; auth_level: TIdC_INT); cdecl = nil; {introduced 1.1.0} +// function X509_VERIFY_PARAM_get_time(const param: PX509_VERIFY_PARAM): TIdC_TIMET; +// procedure X509_VERIFY_PARAM_set_time(param: PX509_VERIFY_PARAM; t: TIdC_TIMET); + X509_VERIFY_PARAM_add0_policy: function(param: PX509_VERIFY_PARAM; policy: PASN1_OBJECT): TIdC_INT; cdecl = nil; + //TIdC_INT X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param, + // STACK_OF(ASN1_OBJECT) *policies); + + X509_VERIFY_PARAM_set_inh_flags: function(param: PX509_VERIFY_PARAM; flags: TIdC_UINT32): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_VERIFY_PARAM_get_inh_flags: function(const param: PX509_VERIFY_PARAM): TIdC_UINT32; cdecl = nil; {introduced 1.1.0} + + X509_VERIFY_PARAM_set1_host: function(param: PX509_VERIFY_PARAM; const name: PIdAnsiChar; namelen: TIdC_SIZET): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_add1_host: function(param: PX509_VERIFY_PARAM; const name: PIdAnsiChar; namelen: TIdC_SIZET): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_set_hostflags: procedure(param: PX509_VERIFY_PARAM; flags: TIdC_UINT); cdecl = nil; + X509_VERIFY_PARAM_get_hostflags: function(const param: PX509_VERIFY_PARAM): TIdC_UINT; cdecl = nil; {introduced 1.1.0} + X509_VERIFY_PARAM_get0_peername: function(v1: PX509_VERIFY_PARAM): PIdAnsiChar; cdecl = nil; + X509_VERIFY_PARAM_move_peername: procedure(v1: PX509_VERIFY_PARAM; v2: PX509_VERIFY_PARAM); cdecl = nil; {introduced 1.1.0} + X509_VERIFY_PARAM_set1_email: function(param: PX509_VERIFY_PARAM; const email: PIdAnsiChar; emaillen: TIdC_SIZET): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_set1_ip: function(param: PX509_VERIFY_PARAM; const ip: PByte; iplen: TIdC_SIZET): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_set1_ip_asc: function(param: PX509_VERIFY_PARAM; const ipasc: PIdAnsiChar): TIdC_INT; cdecl = nil; + + X509_VERIFY_PARAM_get_depth: function(const param: PX509_VERIFY_PARAM): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_get_auth_level: function(const param: PX509_VERIFY_PARAM): TIdC_INT; cdecl = nil; {introduced 1.1.0} + X509_VERIFY_PARAM_get0_name: function(const param: PX509_VERIFY_PARAM): PIdAnsiChar; cdecl = nil; + + X509_VERIFY_PARAM_add0_table: function(param: PX509_VERIFY_PARAM): TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_get_count: function: TIdC_INT; cdecl = nil; + X509_VERIFY_PARAM_get0: function(id: TIdC_INT): PX509_VERIFY_PARAM; cdecl = nil; + X509_VERIFY_PARAM_lookup: function(const name: PIdAnsiChar): X509_VERIFY_PARAM; cdecl = nil; + X509_VERIFY_PARAM_table_cleanup: procedure; cdecl = nil; + + //TIdC_INT X509_policy_check(X509_POLICY_TREE **ptree, TIdC_INT *pexplicit_policy, + // STACK_OF(X509) *certs, + // STACK_OF(ASN1_OBJECT) *policy_oids, TIdC_UINT flags); + + X509_policy_tree_free: procedure(tree: PX509_POLICY_TREE); cdecl = nil; + + X509_policy_tree_level_count: function(const tree: PX509_POLICY_TREE): TIdC_INT; cdecl = nil; + X509_policy_tree_get0_level: function(const tree: PX509_POLICY_TREE; i: TIdC_INT): PX509_POLICY_LEVEL; cdecl = nil; + + //STACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_policies(const + // X509_POLICY_TREE + // *tree); + // + //STACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_user_policies(const + // X509_POLICY_TREE + // *tree); + + X509_policy_level_node_count: function(level: PX509_POLICY_LEVEL): TIdC_INT; cdecl = nil; + + X509_policy_level_get0_node: function(level: PX509_POLICY_LEVEL; i: TIdC_INT): PX509_POLICY_NODE; cdecl = nil; + + X509_policy_node_get0_policy: function(const node: PX509_POLICY_NODE): PASN1_OBJECT; cdecl = nil; + + //STACK_OF(POLICYQUALINFO) *X509_policy_node_get0_qualifiers(const + // X509_POLICY_NODE + // *node); + X509_policy_node_get0_parent: function(const node: PX509_POLICY_NODE): PX509_POLICY_NODE; cdecl = nil; + +{$ELSE} + function X509_STORE_set_depth(store: PX509_STORE; depth: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure X509_STORE_CTX_set_depth(ctx: PX509_STORE_CTX; depth: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //# define X509_STORE_CTX_set_app_data(ctx,data) \ + // X509_STORE_CTX_set_ex_data(ctx,0,data) + //# define X509_STORE_CTX_get_app_data(ctx) \ + // X509_STORE_CTX_get_ex_data(ctx,0) + // + //# define X509_LOOKUP_load_file(x,name,type) \ + // X509_LOOKUP_ctrl((x),X509_L_FILE_LOAD,(name),(TIdC_LONG)(type),NULL) + // + //# define X509_LOOKUP_add_dir(x,name,type) \ + // X509_LOOKUP_ctrl((x),X509_L_ADD_DIR,(name),(TIdC_LONG)(type),NULL) + // + //TIdC_INT X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type, + // X509_NAME *name); + //X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h, + // X509_LOOKUP_TYPE type, + // X509_NAME *name); + //X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h, + // X509_OBJECT *x); + function X509_OBJECT_up_ref_count(a: PX509_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_OBJECT_new: PX509_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_OBJECT_free(a: PX509_OBJECT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_OBJECT_get_type(const a: PX509_OBJECT): X509_LOOKUP_TYPE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_OBJECT_get0_X509(const a: PX509_OBJECT): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_OBJECT_set1_X509(a: PX509_OBJECT; obj: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_OBJECT_get0_X509_CRL(a: PX509_OBJECT): PX509_CRL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_OBJECT_set1_X509_CRL(a: PX509_OBJECT; obj: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_new: PX509_STORE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_STORE_free(v: PX509_STORE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_lock(ctx: PX509_STORE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_unlock(ctx: PX509_STORE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_up_ref(v: PX509_STORE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + //STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *v); + + //STACK_OF(X509) *X509_STORE_CTX_get1_certs(X509_STORE_CTX *st, X509_NAME *nm); + //STACK_OF(X509_CRL) *X509_STORE_CTX_get1_crls(X509_STORE_CTX *st, X509_NAME *nm); + function X509_STORE_set_flags(ctx: PX509_STORE; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_set_purpose(ctx: PX509_STORE; purpose: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_set_trust(ctx: PX509_STORE; trust: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_set1_param(ctx: PX509_STORE; pm: PX509_VERIFY_PARAM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_get0_param(ctx: PX509_STORE): PX509_VERIFY_PARAM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + procedure X509_STORE_set_verify(ctx: PX509_STORE; verify: X509_STORE_CTX_verify_fn) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + //#define X509_STORE_set_verify_func(ctx, func) \ + // X509_STORE_set_verify((ctx),(func)) + procedure X509_STORE_CTX_set_verify(ctx: PX509_STORE_CTX; verify: X509_STORE_CTX_verify_fn) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_get_verify(ctx: PX509_STORE): X509_STORE_CTX_verify_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_STORE_set_verify_cb(ctx: PX509_STORE; verify_cb: X509_STORE_CTX_verify_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //# define X509_STORE_set_verify_cb_func(ctx,func) \ + // X509_STORE_set_verify_cb((ctx),(func)) + function X509_STORE_get_verify_cb(ctx: PX509_STORE): X509_STORE_CTX_verify_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_STORE_set_get_issuer(ctx: PX509_STORE; get_issuer: X509_STORE_CTX_get_issuer_fn) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_get_get_issuer(ctx: PX509_STORE): X509_STORE_CTX_get_issuer_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_STORE_set_check_issued(ctx: PX509_STORE; check_issued: X509_STORE_CTX_check_issued_fn) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_get_check_issued(ctx: PX509_STORE): X509_STORE_CTX_check_issued_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_STORE_set_check_revocation(ctx: PX509_STORE; check_revocation: X509_STORE_CTX_check_revocation_fn) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_get_check_revocation(ctx: PX509_STORE): X509_STORE_CTX_check_revocation_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_STORE_set_get_crl(ctx: PX509_STORE; get_crl: X509_STORE_CTX_get_crl_fn) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_get_get_crl(ctx: PX509_STORE): X509_STORE_CTX_get_crl_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_STORE_set_check_crl(ctx: PX509_STORE; check_crl: X509_STORE_CTX_check_crl_fn) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_get_check_crl(ctx: PX509_STORE): X509_STORE_CTX_check_crl_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_STORE_set_cert_crl(ctx: PX509_STORE; cert_crl: X509_STORE_CTX_cert_crl_fn) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_get_cert_crl(ctx: PX509_STORE): X509_STORE_CTX_cert_crl_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_STORE_set_check_policy(ctx: PX509_STORE; check_policy: X509_STORE_CTX_check_policy_fn) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_get_check_policy(ctx: PX509_STORE): X509_STORE_CTX_check_policy_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} +// procedure X509_STORE_set_lookup_certs(ctx: PX509_STORE; lookup_certs: X509_STORE_CTX_lookup_certs_fn); +// function X509_STORE_get_lookup_certs(ctx: PX509_STORE): X509_STORE_CTX_lookup_certs_fn; +// procedure X509_STORE_set_lookup_crls(ctx: PX509_STORE; lookup_crls: X509_STORE_CTX_lookup_crls_fn); +// #define X509_STORE_set_lookup_crls_cb(ctx, func) \ +// X509_STORE_set_lookup_crls((ctx), (func)) +// function X509_STORE_get_lookup_crls(ctx: PX509_STORE): X509_STORE_CTX_lookup_crls_fn; + procedure X509_STORE_set_cleanup(ctx: PX509_STORE; cleanup: X509_STORE_CTX_cleanup_fn) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_get_cleanup(ctx: PX509_STORE): X509_STORE_CTX_cleanup_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + //#define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, l, p, newf, dupf, freef) + function X509_STORE_set_ex_data(ctx: PX509_STORE; idx: TIdC_INT; data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_get_ex_data(ctx: PX509_STORE; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_STORE_CTX_new: PX509_STORE_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_STORE_CTX_get1_issuer(issuer: PPX509; ctx: PX509_STORE_CTX; x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + procedure X509_STORE_CTX_free(ctx: PX509_STORE_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT X509_STORE_CTX_init(ctx: PX509_STORE_CTX; store: PX509_STORE; x509: PX509; chain: P STACK_OF(X509)); +// procedure X509_STORE_CTX_set0_trusted_stack(ctx: PX509_STORE_CTX; sk: P STACK_OF(X509)); + procedure X509_STORE_CTX_cleanup(ctx: PX509_STORE_CTX) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_STORE_CTX_get0_store(ctx: PX509_STORE_CTX): PX509_STORE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_get0_cert(ctx: PX509_STORE_CTX): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + //STACK_OF(X509)* X509_STORE_CTX_get0_untrusted(X509_STORE_CTX *ctx); + //void X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk); + procedure X509_STORE_CTX_set_verify_cb(ctx: PX509_STORE_CTX; verify: X509_STORE_CTX_verify_cb) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_get_verify_cb(ctx: PX509_STORE_CTX): X509_STORE_CTX_verify_cb cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_CTX_get_verify(ctx: PX509_STORE_CTX): X509_STORE_CTX_verify_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_CTX_get_get_issuer(ctx: PX509_STORE_CTX): X509_STORE_CTX_get_issuer_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_CTX_get_check_issued(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_issued_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_CTX_get_check_revocation(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_revocation_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_CTX_get_get_crl(ctx: PX509_STORE_CTX): X509_STORE_CTX_get_crl_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_CTX_get_check_crl(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_crl_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_CTX_get_cert_crl(ctx: PX509_STORE_CTX): X509_STORE_CTX_cert_crl_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_CTX_get_check_policy(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_policy_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} +// function X509_STORE_CTX_get_lookup_certs(ctx: PX509_STORE_CTX): X509_STORE_CTX_lookup_certs_fn; +// function X509_STORE_CTX_get_lookup_crls(ctx: PX509_STORE_CTX): X509_STORE_CTX_lookup_crls_fn; + function X509_STORE_CTX_get_cleanup(ctx: PX509_STORE_CTX): X509_STORE_CTX_cleanup_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_STORE_add_lookup(v: PX509_STORE; m: PX509_LOOKUP_METHOD): PX509_LOOKUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_LOOKUP_hash_dir: PX509_LOOKUP_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_LOOKUP_file: PX509_LOOKUP_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_LOOKUP_meth_new(const name: PIdAnsiChar): PX509_LOOKUP_METHOD cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + procedure X509_LOOKUP_meth_free(method: PX509_LOOKUP_METHOD) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + //TIdC_INT X509_LOOKUP_meth_set_new_item(X509_LOOKUP_METHOD *method, + // TIdC_INT (*new_item) (X509_LOOKUP *ctx)); + //TIdC_INT (*X509_LOOKUP_meth_get_new_item(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + // + //TIdC_INT X509_LOOKUP_meth_set_free(X509_LOOKUP_METHOD *method, + // void (*free_fn) (X509_LOOKUP *ctx)); + //void (*X509_LOOKUP_meth_get_free(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + // + //TIdC_INT X509_LOOKUP_meth_set_init(X509_LOOKUP_METHOD *method, + // TIdC_INT (*init) (X509_LOOKUP *ctx)); + //TIdC_INT (*X509_LOOKUP_meth_get_init(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + // + //TIdC_INT X509_LOOKUP_meth_set_shutdown(X509_LOOKUP_METHOD *method, + // TIdC_INT (*shutdown) (X509_LOOKUP *ctx)); + //TIdC_INT (*X509_LOOKUP_meth_get_shutdown(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + + function X509_LOOKUP_meth_set_ctrl(method: PX509_LOOKUP_METHOD; ctrl_fn: X509_LOOKUP_ctrl_fn): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_LOOKUP_meth_get_ctrl(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_ctrl_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_LOOKUP_meth_set_get_by_subject(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_subject_fn): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_LOOKUP_meth_get_get_by_subject(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_subject_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_LOOKUP_meth_set_get_by_issuer_serial(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_issuer_serial_fn): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_LOOKUP_meth_get_get_by_issuer_serial(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_issuer_serial_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_LOOKUP_meth_set_get_by_fingerprint(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_fingerprint_fn): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_LOOKUP_meth_get_get_by_fingerprint(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_fingerprint_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_LOOKUP_meth_set_get_by_alias(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_alias_fn): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_LOOKUP_meth_get_get_by_alias(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_alias_fn cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_STORE_add_cert(ctx: PX509_STORE; x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_add_crl(ctx: PX509_STORE; x: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_STORE_CTX_get_by_subject(vs: PX509_STORE_CTX; type_: X509_LOOKUP_TYPE; name: PX509_NAME; ret: PX509_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_CTX_get_obj_by_subject(vs: PX509_STORE_CTX; type_: X509_LOOKUP_TYPE; name: PX509_NAME): PX509_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_LOOKUP_ctrl(ctx: PX509_LOOKUP; cmd: TIdC_INT; const argc: PIdAnsiChar; argl: TIdC_LONG; ret: PPIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_load_cert_file(ctx: PX509_LOOKUP; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_load_crl_file(ctx: PX509_LOOKUP; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_load_cert_crl_file(ctx: PX509_LOOKUP; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_LOOKUP_new(method: PX509_LOOKUP_METHOD): PX509_LOOKUP cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_LOOKUP_free(ctx: PX509_LOOKUP) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_LOOKUP_init(ctx: PX509_LOOKUP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_LOOKUP_by_subject(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; name: PX509_NAME; ret: PX509_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_LOOKUP_by_issuer_serial(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; name: PX509_NAME; serial: PASN1_INTEGER; ret: PX509_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_LOOKUP_by_fingerprint(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; const bytes: PByte; len: TIdC_INT; ret: PX509_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_LOOKUP_by_alias(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; const str: PIdAnsiChar; len: TIdC_INT; ret: PX509_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_LOOKUP_set_method_data(ctx: PX509_LOOKUP; data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_LOOKUP_get_method_data(const ctx: PX509_LOOKUP): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_LOOKUP_get_store(const ctx: PX509_LOOKUP): PX509_STORE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_LOOKUP_shutdown(ctx: PX509_LOOKUP): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_STORE_load_locations(ctx: PX509_STORE; const file_: PIdAnsiChar; const dir: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_set_default_paths(ctx: PX509_STORE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //#define X509_STORE_CTX_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE_CTX, l, p, newf, dupf, freef) + function X509_STORE_CTX_set_ex_data(ctx: PX509_STORE_CTX; idx: TIdC_INT; data: Pointer): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_get_ex_data(ctx: PX509_STORE_CTX; idx: TIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_get_error(ctx: PX509_STORE_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_STORE_CTX_set_error(ctx: X509_STORE_CTX; s: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_get_error_depth(ctx: PX509_STORE_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_STORE_CTX_set_error_depth(ctx: PX509_STORE_CTX; depth: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_CTX_get_current_cert(ctx: PX509_STORE_CTX): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_STORE_CTX_set_current_cert(ctx: PX509_STORE_CTX; x: PX509) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_STORE_CTX_get0_current_issuer(ctx: PX509_STORE_CTX): PX509 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_get0_current_crl(ctx: PX509_STORE_CTX): PX509_CRL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_get0_parent_ctx(ctx: PX509_STORE_CTX): PX509_STORE_CTX cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// STACK_OF(X509) *X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx); +// STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx); + procedure X509_STORE_CTX_set_cert(c: PX509_STORE_CTX; x: PX509) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *c, STACK_OF(X509) *sk); +// void X509_STORE_CTX_set0_crls(X509_STORE_CTX *c, STACK_OF(X509_CRL) *sk); + function X509_STORE_CTX_set_purpose(ctx: PX509_STORE_CTX; purpose: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_set_trust(ctx: PX509_STORE_CTX; trust: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_purpose_inherit(ctx: PX509_STORE_CTX; def_purpose: TIdC_INT; purpose: TIdC_INT; trust: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_STORE_CTX_set_flags(ctx: PX509_STORE_CTX; flags: TIdC_ULONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// procedure X509_STORE_CTX_set_time(ctx: PX509_STORE_CTX; flags: TIdC_ULONG; t: TIdC_TIMET); + + function X509_STORE_CTX_get0_policy_tree(ctx: PX509_STORE_CTX): PX509_POLICY_TREE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_get_explicit_policy(ctx: PX509_STORE_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_get_num_untrusted(ctx: PX509_STORE_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_STORE_CTX_get0_param(ctx: PX509_STORE_CTX): PX509_VERIFY_PARAM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_STORE_CTX_set0_param(ctx: PX509_STORE_CTX; param: PX509_VERIFY_PARAM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_STORE_CTX_set_default(ctx: PX509_STORE_CTX; const name: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Bridge opacity barrier between libcrypt and libssl, also needed to support + * offline testing in test/danetest.c + *) + procedure X509_STORE_CTX_set0_dane(ctx: PX509_STORE_CTX; dane: PSSL_DANE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + (* X509_VERIFY_PARAM functions *) + + function X509_VERIFY_PARAM_new: PX509_VERIFY_PARAM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_VERIFY_PARAM_free(param: PX509_VERIFY_PARAM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_inherit(to_: PX509_VERIFY_PARAM; const from: PX509_VERIFY_PARAM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_set1(to_: PX509_VERIFY_PARAM; const from: PX509_VERIFY_PARAM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_set1_name(param: PX509_VERIFY_PARAM; const name: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_set_flags(param: PX509_VERIFY_PARAM; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_clear_flags(param: PX509_VERIFY_PARAM; flags: TIdC_ULONG): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_get_flags(param: PX509_VERIFY_PARAM): TIdC_ULONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_set_purpose(param: PX509_VERIFY_PARAM; purpose: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_set_trust(param: PX509_VERIFY_PARAM; trust: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_VERIFY_PARAM_set_depth(param: PX509_VERIFY_PARAM; depth: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_VERIFY_PARAM_set_auth_level(param: PX509_VERIFY_PARAM; auth_level: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} +// function X509_VERIFY_PARAM_get_time(const param: PX509_VERIFY_PARAM): TIdC_TIMET; +// procedure X509_VERIFY_PARAM_set_time(param: PX509_VERIFY_PARAM; t: TIdC_TIMET); + function X509_VERIFY_PARAM_add0_policy(param: PX509_VERIFY_PARAM; policy: PASN1_OBJECT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //TIdC_INT X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param, + // STACK_OF(ASN1_OBJECT) *policies); + + function X509_VERIFY_PARAM_set_inh_flags(param: PX509_VERIFY_PARAM; flags: TIdC_UINT32): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_VERIFY_PARAM_get_inh_flags(const param: PX509_VERIFY_PARAM): TIdC_UINT32 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + + function X509_VERIFY_PARAM_set1_host(param: PX509_VERIFY_PARAM; const name: PIdAnsiChar; namelen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_add1_host(param: PX509_VERIFY_PARAM; const name: PIdAnsiChar; namelen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_VERIFY_PARAM_set_hostflags(param: PX509_VERIFY_PARAM; flags: TIdC_UINT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_get_hostflags(const param: PX509_VERIFY_PARAM): TIdC_UINT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_VERIFY_PARAM_get0_peername(v1: PX509_VERIFY_PARAM): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_VERIFY_PARAM_move_peername(v1: PX509_VERIFY_PARAM; v2: PX509_VERIFY_PARAM) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_VERIFY_PARAM_set1_email(param: PX509_VERIFY_PARAM; const email: PIdAnsiChar; emaillen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_set1_ip(param: PX509_VERIFY_PARAM; const ip: PByte; iplen: TIdC_SIZET): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_set1_ip_asc(param: PX509_VERIFY_PARAM; const ipasc: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_VERIFY_PARAM_get_depth(const param: PX509_VERIFY_PARAM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_get_auth_level(const param: PX509_VERIFY_PARAM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; {introduced 1.1.0} + function X509_VERIFY_PARAM_get0_name(const param: PX509_VERIFY_PARAM): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_VERIFY_PARAM_add0_table(param: PX509_VERIFY_PARAM): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_get_count: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_get0(id: TIdC_INT): PX509_VERIFY_PARAM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_VERIFY_PARAM_lookup(const name: PIdAnsiChar): X509_VERIFY_PARAM cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_VERIFY_PARAM_table_cleanup cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //TIdC_INT X509_policy_check(X509_POLICY_TREE **ptree, TIdC_INT *pexplicit_policy, + // STACK_OF(X509) *certs, + // STACK_OF(ASN1_OBJECT) *policy_oids, TIdC_UINT flags); + + procedure X509_policy_tree_free(tree: PX509_POLICY_TREE) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_policy_tree_level_count(const tree: PX509_POLICY_TREE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_policy_tree_get0_level(const tree: PX509_POLICY_TREE; i: TIdC_INT): PX509_POLICY_LEVEL cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //STACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_policies(const + // X509_POLICY_TREE + // *tree); + // + //STACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_user_policies(const + // X509_POLICY_TREE + // *tree); + + function X509_policy_level_node_count(level: PX509_POLICY_LEVEL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_policy_level_get0_node(level: PX509_POLICY_LEVEL; i: TIdC_INT): PX509_POLICY_NODE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_policy_node_get0_policy(const node: PX509_POLICY_NODE): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //STACK_OF(POLICYQUALINFO) *X509_policy_node_get0_qualifiers(const + // X509_POLICY_NODE + // *node); + function X509_policy_node_get0_parent(const node: PX509_POLICY_NODE): PX509_POLICY_NODE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +function X509_STORE_CTX_get_app_data(ctx: PX509_STORE_CTX): Pointer; {removed 1.0.0} +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + +const + X509_OBJECT_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_OBJECT_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_OBJECT_get_type_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_OBJECT_get0_X509_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_OBJECT_set1_X509_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_OBJECT_get0_X509_CRL_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_OBJECT_set1_X509_CRL_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_lock_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_unlock_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_up_ref_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get0_param_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_set_verify_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_set_verify_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get_verify_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get_verify_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_set_get_issuer_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get_get_issuer_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_set_check_issued_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get_check_issued_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_set_check_revocation_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get_check_revocation_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_set_get_crl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get_get_crl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_set_check_crl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get_check_crl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_set_cert_crl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get_cert_crl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_set_check_policy_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get_check_policy_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_set_cleanup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get_cleanup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_set_ex_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_get_ex_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get0_cert_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_verify_cb_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_verify_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_get_issuer_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_check_issued_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_check_revocation_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_get_crl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_check_crl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_cert_crl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_check_policy_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_cleanup_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_new_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_free_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_set_ctrl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_get_ctrl_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_set_get_by_subject_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_get_get_by_subject_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_set_get_by_issuer_serial_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_get_get_by_issuer_serial_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_set_get_by_fingerprint_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_get_get_by_fingerprint_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_set_get_by_alias_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_meth_get_get_by_alias_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_by_subject_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_obj_by_subject_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_set_method_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_get_method_data_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_LOOKUP_get_store_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_set_error_depth_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_set_current_cert_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_num_untrusted_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_set0_dane_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_VERIFY_PARAM_set_auth_level_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_VERIFY_PARAM_set_inh_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_VERIFY_PARAM_get_inh_flags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_VERIFY_PARAM_get_hostflags_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_VERIFY_PARAM_move_peername_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_VERIFY_PARAM_get_auth_level_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(0); + X509_STORE_CTX_get_app_data_removed = (byte(1) shl 8 or byte(0)) shl 8 or byte(0); + +{helper_functions} +function X509_LOOKUP_load_file(ctx: PX509_LOOKUP; name: PIdAnsiChar; type_: TIdC_LONG): TIdC_INT; +begin + Result := X509_LOOKUP_ctrl(ctx,X509_L_FILE_LOAD,name,type_,nil); +end; +{\helper_functions} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +function _X509_STORE_CTX_get_app_data(ctx: PX509_STORE_CTX): Pointer; cdecl; +begin + Result := X509_STORE_CTX_get_ex_data(ctx,SSL_get_ex_data_X509_STORE_CTX_idx); +end; + + +{forward_compatibility} +type + _PX509_LOOKUP_METHOD = ^_X509_LOOKUP_METHOD; + _X509_LOOKUP_METHOD = record + name : PIdAnsiChar; + new_item : function (ctx : PX509_LOOKUP): TIdC_INT; cdecl; + free : procedure (ctx : PX509_LOOKUP); cdecl; + init : function(ctx : PX509_LOOKUP) : TIdC_INT; cdecl; + shutdown : function(ctx : PX509_LOOKUP) : TIdC_INT; cdecl; + ctrl: function(ctx : PX509_LOOKUP; cmd : TIdC_INT; const argc : PIdAnsiChar; argl : TIdC_LONG; out ret : PIdAnsiChar ) : TIdC_INT; cdecl; + get_by_subject: function(ctx : PX509_LOOKUP; _type : TIdC_INT; name : PX509_NAME; ret : PX509_OBJECT ) : TIdC_INT; cdecl; + get_by_issuer_serial : function(ctx : PX509_LOOKUP; _type : TIdC_INT; name : PX509_NAME; serial : PASN1_INTEGER; ret : PX509_OBJECT) : TIdC_INT; cdecl; + get_by_fingerprint : function (ctx : PX509_LOOKUP; _type : TIdC_INT; bytes : PIdAnsiChar; len : TIdC_INT; ret : PX509_OBJECT): TIdC_INT; cdecl; + get_by_alias : function(ctx : PX509_LOOKUP; _type : TIdC_INT; str : PIdAnsiChar; ret : PX509_OBJECT) : TIdC_INT; cdecl; + end; + +const + Indy_x509_unicode_file_lookup: _X509_LOOKUP_METHOD = + ( + name: 'Load file into cache'; + new_item: nil; // * new */ + free: nil; // * free */ + init: nil; // * init */ + shutdown: nil; // * shutdown */ + ctrl: nil; // * ctrl */ + get_by_subject: nil; // * get_by_subject */ + get_by_issuer_serial: nil; // * get_by_issuer_serial */ + get_by_fingerprint: nil; // * get_by_fingerprint */ + get_by_alias: nil // * get_by_alias */ + ); + +function FC_X509_LOOKUP_meth_new(const name: PIdAnsiChar): PX509_LOOKUP_METHOD; cdecl; +begin + Result := @Indy_x509_unicode_file_lookup; +end; + +procedure FC_X509_LOOKUP_meth_free(method: PX509_LOOKUP_METHOD); cdecl; +begin + //Do nothing +end; + +function FC_X509_LOOKUP_meth_set_ctrl(method: PX509_LOOKUP_METHOD; ctrl_fn: X509_LOOKUP_ctrl_fn): TIdC_INT; cdecl; +begin + _PX509_LOOKUP_METHOD(method)^.ctrl := @ctrl_fn; + Result := 1; +end; +(* +struct x509_lookup_st { + int init; /* have we been started */ + int skip; /* don't use us. */ + X509_LOOKUP_METHOD *method; /* the functions */ + char *method_data; /* method data */ + X509_STORE *store_ctx; /* who owns us */ +} /* X509_LOOKUP */ ; +*) + +type + _PX509_LOOKUP = ^_X509_LOOKUP; + _X509_LOOKUP = record + init: TIdC_INT; + skip: TIdC_INT; + method: PX509_LOOKUP_METHOD; + method_data: PIdAnsiChar; + store_ctx: PX509_STORE; + end; + +function FC_X509_LOOKUP_get_store(const ctx: PX509_LOOKUP): PX509_STORE; cdecl; +begin + Result := _PX509_LOOKUP(ctx)^.store_ctx; +end; + +{/forward_compatibility} +{$WARN NO_RETVAL OFF} +function ERR_X509_STORE_CTX_get_app_data(ctx: PX509_STORE_CTX): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_app_data'); +end; + + +function ERR_X509_OBJECT_new: PX509_OBJECT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_OBJECT_new'); +end; + + +procedure ERR_X509_OBJECT_free(a: PX509_OBJECT); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_OBJECT_free'); +end; + + +function ERR_X509_OBJECT_get_type(const a: PX509_OBJECT): X509_LOOKUP_TYPE; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_OBJECT_get_type'); +end; + + +function ERR_X509_OBJECT_get0_X509(const a: PX509_OBJECT): PX509; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_OBJECT_get0_X509'); +end; + + +function ERR_X509_OBJECT_set1_X509(a: PX509_OBJECT; obj: PX509): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_OBJECT_set1_X509'); +end; + + +function ERR_X509_OBJECT_get0_X509_CRL(a: PX509_OBJECT): PX509_CRL; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_OBJECT_get0_X509_CRL'); +end; + + +function ERR_X509_OBJECT_set1_X509_CRL(a: PX509_OBJECT; obj: PX509_CRL): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_OBJECT_set1_X509_CRL'); +end; + + +function ERR_X509_STORE_lock(ctx: PX509_STORE): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_lock'); +end; + + +function ERR_X509_STORE_unlock(ctx: PX509_STORE): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_unlock'); +end; + + +function ERR_X509_STORE_up_ref(v: PX509_STORE): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_up_ref'); +end; + + +function ERR_X509_STORE_get0_param(ctx: PX509_STORE): PX509_VERIFY_PARAM; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get0_param'); +end; + + +procedure ERR_X509_STORE_set_verify(ctx: PX509_STORE; verify: X509_STORE_CTX_verify_fn); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_set_verify'); +end; + + +procedure ERR_X509_STORE_CTX_set_verify(ctx: PX509_STORE_CTX; verify: X509_STORE_CTX_verify_fn); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_set_verify'); +end; + + +function ERR_X509_STORE_get_verify(ctx: PX509_STORE): X509_STORE_CTX_verify_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get_verify'); +end; + + +function ERR_X509_STORE_get_verify_cb(ctx: PX509_STORE): X509_STORE_CTX_verify_cb; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get_verify_cb'); +end; + + +procedure ERR_X509_STORE_set_get_issuer(ctx: PX509_STORE; get_issuer: X509_STORE_CTX_get_issuer_fn); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_set_get_issuer'); +end; + + +function ERR_X509_STORE_get_get_issuer(ctx: PX509_STORE): X509_STORE_CTX_get_issuer_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get_get_issuer'); +end; + + +procedure ERR_X509_STORE_set_check_issued(ctx: PX509_STORE; check_issued: X509_STORE_CTX_check_issued_fn); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_set_check_issued'); +end; + + +function ERR_X509_STORE_get_check_issued(ctx: PX509_STORE): X509_STORE_CTX_check_issued_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get_check_issued'); +end; + + +procedure ERR_X509_STORE_set_check_revocation(ctx: PX509_STORE; check_revocation: X509_STORE_CTX_check_revocation_fn); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_set_check_revocation'); +end; + + +function ERR_X509_STORE_get_check_revocation(ctx: PX509_STORE): X509_STORE_CTX_check_revocation_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get_check_revocation'); +end; + + +procedure ERR_X509_STORE_set_get_crl(ctx: PX509_STORE; get_crl: X509_STORE_CTX_get_crl_fn); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_set_get_crl'); +end; + + +function ERR_X509_STORE_get_get_crl(ctx: PX509_STORE): X509_STORE_CTX_get_crl_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get_get_crl'); +end; + + +procedure ERR_X509_STORE_set_check_crl(ctx: PX509_STORE; check_crl: X509_STORE_CTX_check_crl_fn); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_set_check_crl'); +end; + + +function ERR_X509_STORE_get_check_crl(ctx: PX509_STORE): X509_STORE_CTX_check_crl_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get_check_crl'); +end; + + +procedure ERR_X509_STORE_set_cert_crl(ctx: PX509_STORE; cert_crl: X509_STORE_CTX_cert_crl_fn); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_set_cert_crl'); +end; + + +function ERR_X509_STORE_get_cert_crl(ctx: PX509_STORE): X509_STORE_CTX_cert_crl_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get_cert_crl'); +end; + + +procedure ERR_X509_STORE_set_check_policy(ctx: PX509_STORE; check_policy: X509_STORE_CTX_check_policy_fn); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_set_check_policy'); +end; + + +function ERR_X509_STORE_get_check_policy(ctx: PX509_STORE): X509_STORE_CTX_check_policy_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get_check_policy'); +end; + + +procedure ERR_X509_STORE_set_cleanup(ctx: PX509_STORE; cleanup: X509_STORE_CTX_cleanup_fn); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_set_cleanup'); +end; + + +function ERR_X509_STORE_get_cleanup(ctx: PX509_STORE): X509_STORE_CTX_cleanup_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get_cleanup'); +end; + + +function ERR_X509_STORE_set_ex_data(ctx: PX509_STORE; idx: TIdC_INT; data: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_set_ex_data'); +end; + + +function ERR_X509_STORE_get_ex_data(ctx: PX509_STORE; idx: TIdC_INT): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_get_ex_data'); +end; + + +function ERR_X509_STORE_CTX_get0_cert(ctx: PX509_STORE_CTX): PX509; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get0_cert'); +end; + + +function ERR_X509_STORE_CTX_get_verify_cb(ctx: PX509_STORE_CTX): X509_STORE_CTX_verify_cb; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_verify_cb'); +end; + + +function ERR_X509_STORE_CTX_get_verify(ctx: PX509_STORE_CTX): X509_STORE_CTX_verify_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_verify'); +end; + + +function ERR_X509_STORE_CTX_get_get_issuer(ctx: PX509_STORE_CTX): X509_STORE_CTX_get_issuer_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_get_issuer'); +end; + + +function ERR_X509_STORE_CTX_get_check_issued(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_issued_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_check_issued'); +end; + + +function ERR_X509_STORE_CTX_get_check_revocation(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_revocation_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_check_revocation'); +end; + + +function ERR_X509_STORE_CTX_get_get_crl(ctx: PX509_STORE_CTX): X509_STORE_CTX_get_crl_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_get_crl'); +end; + + +function ERR_X509_STORE_CTX_get_check_crl(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_crl_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_check_crl'); +end; + + +function ERR_X509_STORE_CTX_get_cert_crl(ctx: PX509_STORE_CTX): X509_STORE_CTX_cert_crl_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_cert_crl'); +end; + + +function ERR_X509_STORE_CTX_get_check_policy(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_policy_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_check_policy'); +end; + + +function ERR_X509_STORE_CTX_get_cleanup(ctx: PX509_STORE_CTX): X509_STORE_CTX_cleanup_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_cleanup'); +end; + + +function ERR_X509_LOOKUP_meth_new(const name: PIdAnsiChar): PX509_LOOKUP_METHOD; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_new'); +end; + + +procedure ERR_X509_LOOKUP_meth_free(method: PX509_LOOKUP_METHOD); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_free'); +end; + + +function ERR_X509_LOOKUP_meth_set_ctrl(method: PX509_LOOKUP_METHOD; ctrl_fn: X509_LOOKUP_ctrl_fn): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_set_ctrl'); +end; + + +function ERR_X509_LOOKUP_meth_get_ctrl(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_ctrl_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_get_ctrl'); +end; + + +function ERR_X509_LOOKUP_meth_set_get_by_subject(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_subject_fn): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_set_get_by_subject'); +end; + + +function ERR_X509_LOOKUP_meth_get_get_by_subject(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_subject_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_get_get_by_subject'); +end; + + +function ERR_X509_LOOKUP_meth_set_get_by_issuer_serial(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_issuer_serial_fn): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_set_get_by_issuer_serial'); +end; + + +function ERR_X509_LOOKUP_meth_get_get_by_issuer_serial(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_issuer_serial_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_get_get_by_issuer_serial'); +end; + + +function ERR_X509_LOOKUP_meth_set_get_by_fingerprint(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_fingerprint_fn): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_set_get_by_fingerprint'); +end; + + +function ERR_X509_LOOKUP_meth_get_get_by_fingerprint(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_fingerprint_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_get_get_by_fingerprint'); +end; + + +function ERR_X509_LOOKUP_meth_set_get_by_alias(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_alias_fn): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_set_get_by_alias'); +end; + + +function ERR_X509_LOOKUP_meth_get_get_by_alias(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_alias_fn; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_meth_get_get_by_alias'); +end; + + +function ERR_X509_STORE_CTX_get_by_subject(vs: PX509_STORE_CTX; type_: X509_LOOKUP_TYPE; name: PX509_NAME; ret: PX509_OBJECT): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_by_subject'); +end; + + +function ERR_X509_STORE_CTX_get_obj_by_subject(vs: PX509_STORE_CTX; type_: X509_LOOKUP_TYPE; name: PX509_NAME): PX509_OBJECT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_obj_by_subject'); +end; + + +function ERR_X509_LOOKUP_set_method_data(ctx: PX509_LOOKUP; data: Pointer): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_set_method_data'); +end; + + +function ERR_X509_LOOKUP_get_method_data(const ctx: PX509_LOOKUP): Pointer; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_get_method_data'); +end; + + +function ERR_X509_LOOKUP_get_store(const ctx: PX509_LOOKUP): PX509_STORE; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_LOOKUP_get_store'); +end; + + +procedure ERR_X509_STORE_CTX_set_error_depth(ctx: PX509_STORE_CTX; depth: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_set_error_depth'); +end; + + +procedure ERR_X509_STORE_CTX_set_current_cert(ctx: PX509_STORE_CTX; x: PX509); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_set_current_cert'); +end; + + +function ERR_X509_STORE_CTX_get_num_untrusted(ctx: PX509_STORE_CTX): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_get_num_untrusted'); +end; + + +procedure ERR_X509_STORE_CTX_set0_dane(ctx: PX509_STORE_CTX; dane: PSSL_DANE); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_STORE_CTX_set0_dane'); +end; + + +procedure ERR_X509_VERIFY_PARAM_set_auth_level(param: PX509_VERIFY_PARAM; auth_level: TIdC_INT); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_VERIFY_PARAM_set_auth_level'); +end; + + +function ERR_X509_VERIFY_PARAM_set_inh_flags(param: PX509_VERIFY_PARAM; flags: TIdC_UINT32): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_VERIFY_PARAM_set_inh_flags'); +end; + + +function ERR_X509_VERIFY_PARAM_get_inh_flags(const param: PX509_VERIFY_PARAM): TIdC_UINT32; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_VERIFY_PARAM_get_inh_flags'); +end; + + +function ERR_X509_VERIFY_PARAM_get_hostflags(const param: PX509_VERIFY_PARAM): TIdC_UINT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_VERIFY_PARAM_get_hostflags'); +end; + + +procedure ERR_X509_VERIFY_PARAM_move_peername(v1: PX509_VERIFY_PARAM; v2: PX509_VERIFY_PARAM); +begin + EIdAPIFunctionNotPresent.RaiseException('X509_VERIFY_PARAM_move_peername'); +end; + + +function ERR_X509_VERIFY_PARAM_get_auth_level(const param: PX509_VERIFY_PARAM): TIdC_INT; +begin + EIdAPIFunctionNotPresent.RaiseException('X509_VERIFY_PARAM_get_auth_level'); +end; + + +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + X509_STORE_set_depth := LoadFunction('X509_STORE_set_depth',AFailed); + X509_STORE_CTX_set_depth := LoadFunction('X509_STORE_CTX_set_depth',AFailed); + X509_OBJECT_up_ref_count := LoadFunction('X509_OBJECT_up_ref_count',AFailed); + X509_STORE_new := LoadFunction('X509_STORE_new',AFailed); + X509_STORE_free := LoadFunction('X509_STORE_free',AFailed); + X509_STORE_set_flags := LoadFunction('X509_STORE_set_flags',AFailed); + X509_STORE_set_purpose := LoadFunction('X509_STORE_set_purpose',AFailed); + X509_STORE_set_trust := LoadFunction('X509_STORE_set_trust',AFailed); + X509_STORE_set1_param := LoadFunction('X509_STORE_set1_param',AFailed); + X509_STORE_set_verify_cb := LoadFunction('X509_STORE_set_verify_cb',AFailed); + X509_STORE_CTX_new := LoadFunction('X509_STORE_CTX_new',AFailed); + X509_STORE_CTX_get1_issuer := LoadFunction('X509_STORE_CTX_get1_issuer',AFailed); + X509_STORE_CTX_free := LoadFunction('X509_STORE_CTX_free',AFailed); + X509_STORE_CTX_cleanup := LoadFunction('X509_STORE_CTX_cleanup',AFailed); + X509_STORE_CTX_get0_store := LoadFunction('X509_STORE_CTX_get0_store',AFailed); + X509_STORE_CTX_set_verify_cb := LoadFunction('X509_STORE_CTX_set_verify_cb',AFailed); + X509_STORE_add_lookup := LoadFunction('X509_STORE_add_lookup',AFailed); + X509_LOOKUP_hash_dir := LoadFunction('X509_LOOKUP_hash_dir',AFailed); + X509_LOOKUP_file := LoadFunction('X509_LOOKUP_file',AFailed); + X509_STORE_add_cert := LoadFunction('X509_STORE_add_cert',AFailed); + X509_STORE_add_crl := LoadFunction('X509_STORE_add_crl',AFailed); + X509_LOOKUP_ctrl := LoadFunction('X509_LOOKUP_ctrl',AFailed); + X509_load_cert_file := LoadFunction('X509_load_cert_file',AFailed); + X509_load_crl_file := LoadFunction('X509_load_crl_file',AFailed); + X509_load_cert_crl_file := LoadFunction('X509_load_cert_crl_file',AFailed); + X509_LOOKUP_new := LoadFunction('X509_LOOKUP_new',AFailed); + X509_LOOKUP_free := LoadFunction('X509_LOOKUP_free',AFailed); + X509_LOOKUP_init := LoadFunction('X509_LOOKUP_init',AFailed); + X509_LOOKUP_by_subject := LoadFunction('X509_LOOKUP_by_subject',AFailed); + X509_LOOKUP_by_issuer_serial := LoadFunction('X509_LOOKUP_by_issuer_serial',AFailed); + X509_LOOKUP_by_fingerprint := LoadFunction('X509_LOOKUP_by_fingerprint',AFailed); + X509_LOOKUP_by_alias := LoadFunction('X509_LOOKUP_by_alias',AFailed); + X509_LOOKUP_shutdown := LoadFunction('X509_LOOKUP_shutdown',AFailed); + X509_STORE_load_locations := LoadFunction('X509_STORE_load_locations',AFailed); + X509_STORE_set_default_paths := LoadFunction('X509_STORE_set_default_paths',AFailed); + X509_STORE_CTX_set_ex_data := LoadFunction('X509_STORE_CTX_set_ex_data',AFailed); + X509_STORE_CTX_get_ex_data := LoadFunction('X509_STORE_CTX_get_ex_data',AFailed); + X509_STORE_CTX_get_error := LoadFunction('X509_STORE_CTX_get_error',AFailed); + X509_STORE_CTX_set_error := LoadFunction('X509_STORE_CTX_set_error',AFailed); + X509_STORE_CTX_get_error_depth := LoadFunction('X509_STORE_CTX_get_error_depth',AFailed); + X509_STORE_CTX_get_current_cert := LoadFunction('X509_STORE_CTX_get_current_cert',AFailed); + X509_STORE_CTX_get0_current_issuer := LoadFunction('X509_STORE_CTX_get0_current_issuer',AFailed); + X509_STORE_CTX_get0_current_crl := LoadFunction('X509_STORE_CTX_get0_current_crl',AFailed); + X509_STORE_CTX_get0_parent_ctx := LoadFunction('X509_STORE_CTX_get0_parent_ctx',AFailed); + X509_STORE_CTX_set_cert := LoadFunction('X509_STORE_CTX_set_cert',AFailed); + X509_STORE_CTX_set_purpose := LoadFunction('X509_STORE_CTX_set_purpose',AFailed); + X509_STORE_CTX_set_trust := LoadFunction('X509_STORE_CTX_set_trust',AFailed); + X509_STORE_CTX_purpose_inherit := LoadFunction('X509_STORE_CTX_purpose_inherit',AFailed); + X509_STORE_CTX_set_flags := LoadFunction('X509_STORE_CTX_set_flags',AFailed); + X509_STORE_CTX_get0_policy_tree := LoadFunction('X509_STORE_CTX_get0_policy_tree',AFailed); + X509_STORE_CTX_get_explicit_policy := LoadFunction('X509_STORE_CTX_get_explicit_policy',AFailed); + X509_STORE_CTX_get0_param := LoadFunction('X509_STORE_CTX_get0_param',AFailed); + X509_STORE_CTX_set0_param := LoadFunction('X509_STORE_CTX_set0_param',AFailed); + X509_STORE_CTX_set_default := LoadFunction('X509_STORE_CTX_set_default',AFailed); + X509_VERIFY_PARAM_new := LoadFunction('X509_VERIFY_PARAM_new',AFailed); + X509_VERIFY_PARAM_free := LoadFunction('X509_VERIFY_PARAM_free',AFailed); + X509_VERIFY_PARAM_inherit := LoadFunction('X509_VERIFY_PARAM_inherit',AFailed); + X509_VERIFY_PARAM_set1 := LoadFunction('X509_VERIFY_PARAM_set1',AFailed); + X509_VERIFY_PARAM_set1_name := LoadFunction('X509_VERIFY_PARAM_set1_name',AFailed); + X509_VERIFY_PARAM_set_flags := LoadFunction('X509_VERIFY_PARAM_set_flags',AFailed); + X509_VERIFY_PARAM_clear_flags := LoadFunction('X509_VERIFY_PARAM_clear_flags',AFailed); + X509_VERIFY_PARAM_get_flags := LoadFunction('X509_VERIFY_PARAM_get_flags',AFailed); + X509_VERIFY_PARAM_set_purpose := LoadFunction('X509_VERIFY_PARAM_set_purpose',AFailed); + X509_VERIFY_PARAM_set_trust := LoadFunction('X509_VERIFY_PARAM_set_trust',AFailed); + X509_VERIFY_PARAM_set_depth := LoadFunction('X509_VERIFY_PARAM_set_depth',AFailed); + X509_VERIFY_PARAM_add0_policy := LoadFunction('X509_VERIFY_PARAM_add0_policy',AFailed); + X509_VERIFY_PARAM_set1_host := LoadFunction('X509_VERIFY_PARAM_set1_host',AFailed); + X509_VERIFY_PARAM_add1_host := LoadFunction('X509_VERIFY_PARAM_add1_host',AFailed); + X509_VERIFY_PARAM_set_hostflags := LoadFunction('X509_VERIFY_PARAM_set_hostflags',AFailed); + X509_VERIFY_PARAM_get0_peername := LoadFunction('X509_VERIFY_PARAM_get0_peername',AFailed); + X509_VERIFY_PARAM_set1_email := LoadFunction('X509_VERIFY_PARAM_set1_email',AFailed); + X509_VERIFY_PARAM_set1_ip := LoadFunction('X509_VERIFY_PARAM_set1_ip',AFailed); + X509_VERIFY_PARAM_set1_ip_asc := LoadFunction('X509_VERIFY_PARAM_set1_ip_asc',AFailed); + X509_VERIFY_PARAM_get_depth := LoadFunction('X509_VERIFY_PARAM_get_depth',AFailed); + X509_VERIFY_PARAM_get0_name := LoadFunction('X509_VERIFY_PARAM_get0_name',AFailed); + X509_VERIFY_PARAM_add0_table := LoadFunction('X509_VERIFY_PARAM_add0_table',AFailed); + X509_VERIFY_PARAM_get_count := LoadFunction('X509_VERIFY_PARAM_get_count',AFailed); + X509_VERIFY_PARAM_get0 := LoadFunction('X509_VERIFY_PARAM_get0',AFailed); + X509_VERIFY_PARAM_lookup := LoadFunction('X509_VERIFY_PARAM_lookup',AFailed); + X509_VERIFY_PARAM_table_cleanup := LoadFunction('X509_VERIFY_PARAM_table_cleanup',AFailed); + X509_policy_tree_free := LoadFunction('X509_policy_tree_free',AFailed); + X509_policy_tree_level_count := LoadFunction('X509_policy_tree_level_count',AFailed); + X509_policy_tree_get0_level := LoadFunction('X509_policy_tree_get0_level',AFailed); + X509_policy_level_node_count := LoadFunction('X509_policy_level_node_count',AFailed); + X509_policy_level_get0_node := LoadFunction('X509_policy_level_get0_node',AFailed); + X509_policy_node_get0_policy := LoadFunction('X509_policy_node_get0_policy',AFailed); + X509_policy_node_get0_parent := LoadFunction('X509_policy_node_get0_parent',AFailed); + X509_STORE_CTX_get_app_data := LoadFunction('X509_STORE_CTX_get_app_data',nil); {removed 1.0.0} + X509_OBJECT_new := LoadFunction('X509_OBJECT_new',nil); {introduced 1.1.0} + X509_OBJECT_free := LoadFunction('X509_OBJECT_free',nil); {introduced 1.1.0} + X509_OBJECT_get_type := LoadFunction('X509_OBJECT_get_type',nil); {introduced 1.1.0} + X509_OBJECT_get0_X509 := LoadFunction('X509_OBJECT_get0_X509',nil); {introduced 1.1.0} + X509_OBJECT_set1_X509 := LoadFunction('X509_OBJECT_set1_X509',nil); {introduced 1.1.0} + X509_OBJECT_get0_X509_CRL := LoadFunction('X509_OBJECT_get0_X509_CRL',nil); {introduced 1.1.0} + X509_OBJECT_set1_X509_CRL := LoadFunction('X509_OBJECT_set1_X509_CRL',nil); {introduced 1.1.0} + X509_STORE_lock := LoadFunction('X509_STORE_lock',nil); {introduced 1.1.0} + X509_STORE_unlock := LoadFunction('X509_STORE_unlock',nil); {introduced 1.1.0} + X509_STORE_up_ref := LoadFunction('X509_STORE_up_ref',nil); {introduced 1.1.0} + X509_STORE_get0_param := LoadFunction('X509_STORE_get0_param',nil); {introduced 1.1.0} + X509_STORE_set_verify := LoadFunction('X509_STORE_set_verify',nil); {introduced 1.1.0} + X509_STORE_CTX_set_verify := LoadFunction('X509_STORE_CTX_set_verify',nil); {introduced 1.1.0} + X509_STORE_get_verify := LoadFunction('X509_STORE_get_verify',nil); {introduced 1.1.0} + X509_STORE_get_verify_cb := LoadFunction('X509_STORE_get_verify_cb',nil); {introduced 1.1.0} + X509_STORE_set_get_issuer := LoadFunction('X509_STORE_set_get_issuer',nil); {introduced 1.1.0} + X509_STORE_get_get_issuer := LoadFunction('X509_STORE_get_get_issuer',nil); {introduced 1.1.0} + X509_STORE_set_check_issued := LoadFunction('X509_STORE_set_check_issued',nil); {introduced 1.1.0} + X509_STORE_get_check_issued := LoadFunction('X509_STORE_get_check_issued',nil); {introduced 1.1.0} + X509_STORE_set_check_revocation := LoadFunction('X509_STORE_set_check_revocation',nil); {introduced 1.1.0} + X509_STORE_get_check_revocation := LoadFunction('X509_STORE_get_check_revocation',nil); {introduced 1.1.0} + X509_STORE_set_get_crl := LoadFunction('X509_STORE_set_get_crl',nil); {introduced 1.1.0} + X509_STORE_get_get_crl := LoadFunction('X509_STORE_get_get_crl',nil); {introduced 1.1.0} + X509_STORE_set_check_crl := LoadFunction('X509_STORE_set_check_crl',nil); {introduced 1.1.0} + X509_STORE_get_check_crl := LoadFunction('X509_STORE_get_check_crl',nil); {introduced 1.1.0} + X509_STORE_set_cert_crl := LoadFunction('X509_STORE_set_cert_crl',nil); {introduced 1.1.0} + X509_STORE_get_cert_crl := LoadFunction('X509_STORE_get_cert_crl',nil); {introduced 1.1.0} + X509_STORE_set_check_policy := LoadFunction('X509_STORE_set_check_policy',nil); {introduced 1.1.0} + X509_STORE_get_check_policy := LoadFunction('X509_STORE_get_check_policy',nil); {introduced 1.1.0} + X509_STORE_set_cleanup := LoadFunction('X509_STORE_set_cleanup',nil); {introduced 1.1.0} + X509_STORE_get_cleanup := LoadFunction('X509_STORE_get_cleanup',nil); {introduced 1.1.0} + X509_STORE_set_ex_data := LoadFunction('X509_STORE_set_ex_data',nil); {introduced 1.1.0} + X509_STORE_get_ex_data := LoadFunction('X509_STORE_get_ex_data',nil); {introduced 1.1.0} + X509_STORE_CTX_get0_cert := LoadFunction('X509_STORE_CTX_get0_cert',nil); {introduced 1.1.0} + X509_STORE_CTX_get_verify_cb := LoadFunction('X509_STORE_CTX_get_verify_cb',nil); {introduced 1.1.0} + X509_STORE_CTX_get_verify := LoadFunction('X509_STORE_CTX_get_verify',nil); {introduced 1.1.0} + X509_STORE_CTX_get_get_issuer := LoadFunction('X509_STORE_CTX_get_get_issuer',nil); {introduced 1.1.0} + X509_STORE_CTX_get_check_issued := LoadFunction('X509_STORE_CTX_get_check_issued',nil); {introduced 1.1.0} + X509_STORE_CTX_get_check_revocation := LoadFunction('X509_STORE_CTX_get_check_revocation',nil); {introduced 1.1.0} + X509_STORE_CTX_get_get_crl := LoadFunction('X509_STORE_CTX_get_get_crl',nil); {introduced 1.1.0} + X509_STORE_CTX_get_check_crl := LoadFunction('X509_STORE_CTX_get_check_crl',nil); {introduced 1.1.0} + X509_STORE_CTX_get_cert_crl := LoadFunction('X509_STORE_CTX_get_cert_crl',nil); {introduced 1.1.0} + X509_STORE_CTX_get_check_policy := LoadFunction('X509_STORE_CTX_get_check_policy',nil); {introduced 1.1.0} + X509_STORE_CTX_get_cleanup := LoadFunction('X509_STORE_CTX_get_cleanup',nil); {introduced 1.1.0} + X509_LOOKUP_meth_new := LoadFunction('X509_LOOKUP_meth_new',nil); {introduced 1.1.0} + X509_LOOKUP_meth_free := LoadFunction('X509_LOOKUP_meth_free',nil); {introduced 1.1.0} + X509_LOOKUP_meth_set_ctrl := LoadFunction('X509_LOOKUP_meth_set_ctrl',nil); {introduced 1.1.0} + X509_LOOKUP_meth_get_ctrl := LoadFunction('X509_LOOKUP_meth_get_ctrl',nil); {introduced 1.1.0} + X509_LOOKUP_meth_set_get_by_subject := LoadFunction('X509_LOOKUP_meth_set_get_by_subject',nil); {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_subject := LoadFunction('X509_LOOKUP_meth_get_get_by_subject',nil); {introduced 1.1.0} + X509_LOOKUP_meth_set_get_by_issuer_serial := LoadFunction('X509_LOOKUP_meth_set_get_by_issuer_serial',nil); {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_issuer_serial := LoadFunction('X509_LOOKUP_meth_get_get_by_issuer_serial',nil); {introduced 1.1.0} + X509_LOOKUP_meth_set_get_by_fingerprint := LoadFunction('X509_LOOKUP_meth_set_get_by_fingerprint',nil); {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_fingerprint := LoadFunction('X509_LOOKUP_meth_get_get_by_fingerprint',nil); {introduced 1.1.0} + X509_LOOKUP_meth_set_get_by_alias := LoadFunction('X509_LOOKUP_meth_set_get_by_alias',nil); {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_alias := LoadFunction('X509_LOOKUP_meth_get_get_by_alias',nil); {introduced 1.1.0} + X509_STORE_CTX_get_by_subject := LoadFunction('X509_STORE_CTX_get_by_subject',nil); {introduced 1.1.0} + X509_STORE_CTX_get_obj_by_subject := LoadFunction('X509_STORE_CTX_get_obj_by_subject',nil); {introduced 1.1.0} + X509_LOOKUP_set_method_data := LoadFunction('X509_LOOKUP_set_method_data',nil); {introduced 1.1.0} + X509_LOOKUP_get_method_data := LoadFunction('X509_LOOKUP_get_method_data',nil); {introduced 1.1.0} + X509_LOOKUP_get_store := LoadFunction('X509_LOOKUP_get_store',nil); {introduced 1.1.0} + X509_STORE_CTX_set_error_depth := LoadFunction('X509_STORE_CTX_set_error_depth',nil); {introduced 1.1.0} + X509_STORE_CTX_set_current_cert := LoadFunction('X509_STORE_CTX_set_current_cert',nil); {introduced 1.1.0} + X509_STORE_CTX_get_num_untrusted := LoadFunction('X509_STORE_CTX_get_num_untrusted',nil); {introduced 1.1.0} + X509_STORE_CTX_set0_dane := LoadFunction('X509_STORE_CTX_set0_dane',nil); {introduced 1.1.0} + X509_VERIFY_PARAM_set_auth_level := LoadFunction('X509_VERIFY_PARAM_set_auth_level',nil); {introduced 1.1.0} + X509_VERIFY_PARAM_set_inh_flags := LoadFunction('X509_VERIFY_PARAM_set_inh_flags',nil); {introduced 1.1.0} + X509_VERIFY_PARAM_get_inh_flags := LoadFunction('X509_VERIFY_PARAM_get_inh_flags',nil); {introduced 1.1.0} + X509_VERIFY_PARAM_get_hostflags := LoadFunction('X509_VERIFY_PARAM_get_hostflags',nil); {introduced 1.1.0} + X509_VERIFY_PARAM_move_peername := LoadFunction('X509_VERIFY_PARAM_move_peername',nil); {introduced 1.1.0} + X509_VERIFY_PARAM_get_auth_level := LoadFunction('X509_VERIFY_PARAM_get_auth_level',nil); {introduced 1.1.0} + if not assigned(X509_STORE_CTX_get_app_data) then + begin + {$if declared(X509_STORE_CTX_get_app_data_introduced)} + if LibVersion < X509_STORE_CTX_get_app_data_introduced then + {$if declared(FC_X509_STORE_CTX_get_app_data)} + X509_STORE_CTX_get_app_data := @FC_X509_STORE_CTX_get_app_data + {$else} + X509_STORE_CTX_get_app_data := @ERR_X509_STORE_CTX_get_app_data + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_app_data_removed)} + if X509_STORE_CTX_get_app_data_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_app_data)} + X509_STORE_CTX_get_app_data := @_X509_STORE_CTX_get_app_data + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_app_data)} + X509_STORE_CTX_get_app_data := @ERR_X509_STORE_CTX_get_app_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_app_data) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_app_data'); + end; + + + if not assigned(X509_OBJECT_new) then + begin + {$if declared(X509_OBJECT_new_introduced)} + if LibVersion < X509_OBJECT_new_introduced then + {$if declared(FC_X509_OBJECT_new)} + X509_OBJECT_new := @FC_X509_OBJECT_new + {$else} + X509_OBJECT_new := @ERR_X509_OBJECT_new + {$ifend} + else + {$ifend} + {$if declared(X509_OBJECT_new_removed)} + if X509_OBJECT_new_removed <= LibVersion then + {$if declared(_X509_OBJECT_new)} + X509_OBJECT_new := @_X509_OBJECT_new + {$else} + {$IF declared(ERR_X509_OBJECT_new)} + X509_OBJECT_new := @ERR_X509_OBJECT_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_OBJECT_new) and Assigned(AFailed) then + AFailed.Add('X509_OBJECT_new'); + end; + + + if not assigned(X509_OBJECT_free) then + begin + {$if declared(X509_OBJECT_free_introduced)} + if LibVersion < X509_OBJECT_free_introduced then + {$if declared(FC_X509_OBJECT_free)} + X509_OBJECT_free := @FC_X509_OBJECT_free + {$else} + X509_OBJECT_free := @ERR_X509_OBJECT_free + {$ifend} + else + {$ifend} + {$if declared(X509_OBJECT_free_removed)} + if X509_OBJECT_free_removed <= LibVersion then + {$if declared(_X509_OBJECT_free)} + X509_OBJECT_free := @_X509_OBJECT_free + {$else} + {$IF declared(ERR_X509_OBJECT_free)} + X509_OBJECT_free := @ERR_X509_OBJECT_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_OBJECT_free) and Assigned(AFailed) then + AFailed.Add('X509_OBJECT_free'); + end; + + + if not assigned(X509_OBJECT_get_type) then + begin + {$if declared(X509_OBJECT_get_type_introduced)} + if LibVersion < X509_OBJECT_get_type_introduced then + {$if declared(FC_X509_OBJECT_get_type)} + X509_OBJECT_get_type := @FC_X509_OBJECT_get_type + {$else} + X509_OBJECT_get_type := @ERR_X509_OBJECT_get_type + {$ifend} + else + {$ifend} + {$if declared(X509_OBJECT_get_type_removed)} + if X509_OBJECT_get_type_removed <= LibVersion then + {$if declared(_X509_OBJECT_get_type)} + X509_OBJECT_get_type := @_X509_OBJECT_get_type + {$else} + {$IF declared(ERR_X509_OBJECT_get_type)} + X509_OBJECT_get_type := @ERR_X509_OBJECT_get_type + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_OBJECT_get_type) and Assigned(AFailed) then + AFailed.Add('X509_OBJECT_get_type'); + end; + + + if not assigned(X509_OBJECT_get0_X509) then + begin + {$if declared(X509_OBJECT_get0_X509_introduced)} + if LibVersion < X509_OBJECT_get0_X509_introduced then + {$if declared(FC_X509_OBJECT_get0_X509)} + X509_OBJECT_get0_X509 := @FC_X509_OBJECT_get0_X509 + {$else} + X509_OBJECT_get0_X509 := @ERR_X509_OBJECT_get0_X509 + {$ifend} + else + {$ifend} + {$if declared(X509_OBJECT_get0_X509_removed)} + if X509_OBJECT_get0_X509_removed <= LibVersion then + {$if declared(_X509_OBJECT_get0_X509)} + X509_OBJECT_get0_X509 := @_X509_OBJECT_get0_X509 + {$else} + {$IF declared(ERR_X509_OBJECT_get0_X509)} + X509_OBJECT_get0_X509 := @ERR_X509_OBJECT_get0_X509 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_OBJECT_get0_X509) and Assigned(AFailed) then + AFailed.Add('X509_OBJECT_get0_X509'); + end; + + + if not assigned(X509_OBJECT_set1_X509) then + begin + {$if declared(X509_OBJECT_set1_X509_introduced)} + if LibVersion < X509_OBJECT_set1_X509_introduced then + {$if declared(FC_X509_OBJECT_set1_X509)} + X509_OBJECT_set1_X509 := @FC_X509_OBJECT_set1_X509 + {$else} + X509_OBJECT_set1_X509 := @ERR_X509_OBJECT_set1_X509 + {$ifend} + else + {$ifend} + {$if declared(X509_OBJECT_set1_X509_removed)} + if X509_OBJECT_set1_X509_removed <= LibVersion then + {$if declared(_X509_OBJECT_set1_X509)} + X509_OBJECT_set1_X509 := @_X509_OBJECT_set1_X509 + {$else} + {$IF declared(ERR_X509_OBJECT_set1_X509)} + X509_OBJECT_set1_X509 := @ERR_X509_OBJECT_set1_X509 + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_OBJECT_set1_X509) and Assigned(AFailed) then + AFailed.Add('X509_OBJECT_set1_X509'); + end; + + + if not assigned(X509_OBJECT_get0_X509_CRL) then + begin + {$if declared(X509_OBJECT_get0_X509_CRL_introduced)} + if LibVersion < X509_OBJECT_get0_X509_CRL_introduced then + {$if declared(FC_X509_OBJECT_get0_X509_CRL)} + X509_OBJECT_get0_X509_CRL := @FC_X509_OBJECT_get0_X509_CRL + {$else} + X509_OBJECT_get0_X509_CRL := @ERR_X509_OBJECT_get0_X509_CRL + {$ifend} + else + {$ifend} + {$if declared(X509_OBJECT_get0_X509_CRL_removed)} + if X509_OBJECT_get0_X509_CRL_removed <= LibVersion then + {$if declared(_X509_OBJECT_get0_X509_CRL)} + X509_OBJECT_get0_X509_CRL := @_X509_OBJECT_get0_X509_CRL + {$else} + {$IF declared(ERR_X509_OBJECT_get0_X509_CRL)} + X509_OBJECT_get0_X509_CRL := @ERR_X509_OBJECT_get0_X509_CRL + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_OBJECT_get0_X509_CRL) and Assigned(AFailed) then + AFailed.Add('X509_OBJECT_get0_X509_CRL'); + end; + + + if not assigned(X509_OBJECT_set1_X509_CRL) then + begin + {$if declared(X509_OBJECT_set1_X509_CRL_introduced)} + if LibVersion < X509_OBJECT_set1_X509_CRL_introduced then + {$if declared(FC_X509_OBJECT_set1_X509_CRL)} + X509_OBJECT_set1_X509_CRL := @FC_X509_OBJECT_set1_X509_CRL + {$else} + X509_OBJECT_set1_X509_CRL := @ERR_X509_OBJECT_set1_X509_CRL + {$ifend} + else + {$ifend} + {$if declared(X509_OBJECT_set1_X509_CRL_removed)} + if X509_OBJECT_set1_X509_CRL_removed <= LibVersion then + {$if declared(_X509_OBJECT_set1_X509_CRL)} + X509_OBJECT_set1_X509_CRL := @_X509_OBJECT_set1_X509_CRL + {$else} + {$IF declared(ERR_X509_OBJECT_set1_X509_CRL)} + X509_OBJECT_set1_X509_CRL := @ERR_X509_OBJECT_set1_X509_CRL + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_OBJECT_set1_X509_CRL) and Assigned(AFailed) then + AFailed.Add('X509_OBJECT_set1_X509_CRL'); + end; + + + if not assigned(X509_STORE_lock) then + begin + {$if declared(X509_STORE_lock_introduced)} + if LibVersion < X509_STORE_lock_introduced then + {$if declared(FC_X509_STORE_lock)} + X509_STORE_lock := @FC_X509_STORE_lock + {$else} + X509_STORE_lock := @ERR_X509_STORE_lock + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_lock_removed)} + if X509_STORE_lock_removed <= LibVersion then + {$if declared(_X509_STORE_lock)} + X509_STORE_lock := @_X509_STORE_lock + {$else} + {$IF declared(ERR_X509_STORE_lock)} + X509_STORE_lock := @ERR_X509_STORE_lock + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_lock) and Assigned(AFailed) then + AFailed.Add('X509_STORE_lock'); + end; + + + if not assigned(X509_STORE_unlock) then + begin + {$if declared(X509_STORE_unlock_introduced)} + if LibVersion < X509_STORE_unlock_introduced then + {$if declared(FC_X509_STORE_unlock)} + X509_STORE_unlock := @FC_X509_STORE_unlock + {$else} + X509_STORE_unlock := @ERR_X509_STORE_unlock + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_unlock_removed)} + if X509_STORE_unlock_removed <= LibVersion then + {$if declared(_X509_STORE_unlock)} + X509_STORE_unlock := @_X509_STORE_unlock + {$else} + {$IF declared(ERR_X509_STORE_unlock)} + X509_STORE_unlock := @ERR_X509_STORE_unlock + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_unlock) and Assigned(AFailed) then + AFailed.Add('X509_STORE_unlock'); + end; + + + if not assigned(X509_STORE_up_ref) then + begin + {$if declared(X509_STORE_up_ref_introduced)} + if LibVersion < X509_STORE_up_ref_introduced then + {$if declared(FC_X509_STORE_up_ref)} + X509_STORE_up_ref := @FC_X509_STORE_up_ref + {$else} + X509_STORE_up_ref := @ERR_X509_STORE_up_ref + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_up_ref_removed)} + if X509_STORE_up_ref_removed <= LibVersion then + {$if declared(_X509_STORE_up_ref)} + X509_STORE_up_ref := @_X509_STORE_up_ref + {$else} + {$IF declared(ERR_X509_STORE_up_ref)} + X509_STORE_up_ref := @ERR_X509_STORE_up_ref + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_up_ref) and Assigned(AFailed) then + AFailed.Add('X509_STORE_up_ref'); + end; + + + if not assigned(X509_STORE_get0_param) then + begin + {$if declared(X509_STORE_get0_param_introduced)} + if LibVersion < X509_STORE_get0_param_introduced then + {$if declared(FC_X509_STORE_get0_param)} + X509_STORE_get0_param := @FC_X509_STORE_get0_param + {$else} + X509_STORE_get0_param := @ERR_X509_STORE_get0_param + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get0_param_removed)} + if X509_STORE_get0_param_removed <= LibVersion then + {$if declared(_X509_STORE_get0_param)} + X509_STORE_get0_param := @_X509_STORE_get0_param + {$else} + {$IF declared(ERR_X509_STORE_get0_param)} + X509_STORE_get0_param := @ERR_X509_STORE_get0_param + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get0_param) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get0_param'); + end; + + + if not assigned(X509_STORE_set_verify) then + begin + {$if declared(X509_STORE_set_verify_introduced)} + if LibVersion < X509_STORE_set_verify_introduced then + {$if declared(FC_X509_STORE_set_verify)} + X509_STORE_set_verify := @FC_X509_STORE_set_verify + {$else} + X509_STORE_set_verify := @ERR_X509_STORE_set_verify + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_set_verify_removed)} + if X509_STORE_set_verify_removed <= LibVersion then + {$if declared(_X509_STORE_set_verify)} + X509_STORE_set_verify := @_X509_STORE_set_verify + {$else} + {$IF declared(ERR_X509_STORE_set_verify)} + X509_STORE_set_verify := @ERR_X509_STORE_set_verify + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_set_verify) and Assigned(AFailed) then + AFailed.Add('X509_STORE_set_verify'); + end; + + + if not assigned(X509_STORE_CTX_set_verify) then + begin + {$if declared(X509_STORE_CTX_set_verify_introduced)} + if LibVersion < X509_STORE_CTX_set_verify_introduced then + {$if declared(FC_X509_STORE_CTX_set_verify)} + X509_STORE_CTX_set_verify := @FC_X509_STORE_CTX_set_verify + {$else} + X509_STORE_CTX_set_verify := @ERR_X509_STORE_CTX_set_verify + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_set_verify_removed)} + if X509_STORE_CTX_set_verify_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_set_verify)} + X509_STORE_CTX_set_verify := @_X509_STORE_CTX_set_verify + {$else} + {$IF declared(ERR_X509_STORE_CTX_set_verify)} + X509_STORE_CTX_set_verify := @ERR_X509_STORE_CTX_set_verify + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_set_verify) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_set_verify'); + end; + + + if not assigned(X509_STORE_get_verify) then + begin + {$if declared(X509_STORE_get_verify_introduced)} + if LibVersion < X509_STORE_get_verify_introduced then + {$if declared(FC_X509_STORE_get_verify)} + X509_STORE_get_verify := @FC_X509_STORE_get_verify + {$else} + X509_STORE_get_verify := @ERR_X509_STORE_get_verify + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get_verify_removed)} + if X509_STORE_get_verify_removed <= LibVersion then + {$if declared(_X509_STORE_get_verify)} + X509_STORE_get_verify := @_X509_STORE_get_verify + {$else} + {$IF declared(ERR_X509_STORE_get_verify)} + X509_STORE_get_verify := @ERR_X509_STORE_get_verify + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get_verify) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get_verify'); + end; + + + if not assigned(X509_STORE_get_verify_cb) then + begin + {$if declared(X509_STORE_get_verify_cb_introduced)} + if LibVersion < X509_STORE_get_verify_cb_introduced then + {$if declared(FC_X509_STORE_get_verify_cb)} + X509_STORE_get_verify_cb := @FC_X509_STORE_get_verify_cb + {$else} + X509_STORE_get_verify_cb := @ERR_X509_STORE_get_verify_cb + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get_verify_cb_removed)} + if X509_STORE_get_verify_cb_removed <= LibVersion then + {$if declared(_X509_STORE_get_verify_cb)} + X509_STORE_get_verify_cb := @_X509_STORE_get_verify_cb + {$else} + {$IF declared(ERR_X509_STORE_get_verify_cb)} + X509_STORE_get_verify_cb := @ERR_X509_STORE_get_verify_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get_verify_cb) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get_verify_cb'); + end; + + + if not assigned(X509_STORE_set_get_issuer) then + begin + {$if declared(X509_STORE_set_get_issuer_introduced)} + if LibVersion < X509_STORE_set_get_issuer_introduced then + {$if declared(FC_X509_STORE_set_get_issuer)} + X509_STORE_set_get_issuer := @FC_X509_STORE_set_get_issuer + {$else} + X509_STORE_set_get_issuer := @ERR_X509_STORE_set_get_issuer + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_set_get_issuer_removed)} + if X509_STORE_set_get_issuer_removed <= LibVersion then + {$if declared(_X509_STORE_set_get_issuer)} + X509_STORE_set_get_issuer := @_X509_STORE_set_get_issuer + {$else} + {$IF declared(ERR_X509_STORE_set_get_issuer)} + X509_STORE_set_get_issuer := @ERR_X509_STORE_set_get_issuer + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_set_get_issuer) and Assigned(AFailed) then + AFailed.Add('X509_STORE_set_get_issuer'); + end; + + + if not assigned(X509_STORE_get_get_issuer) then + begin + {$if declared(X509_STORE_get_get_issuer_introduced)} + if LibVersion < X509_STORE_get_get_issuer_introduced then + {$if declared(FC_X509_STORE_get_get_issuer)} + X509_STORE_get_get_issuer := @FC_X509_STORE_get_get_issuer + {$else} + X509_STORE_get_get_issuer := @ERR_X509_STORE_get_get_issuer + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get_get_issuer_removed)} + if X509_STORE_get_get_issuer_removed <= LibVersion then + {$if declared(_X509_STORE_get_get_issuer)} + X509_STORE_get_get_issuer := @_X509_STORE_get_get_issuer + {$else} + {$IF declared(ERR_X509_STORE_get_get_issuer)} + X509_STORE_get_get_issuer := @ERR_X509_STORE_get_get_issuer + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get_get_issuer) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get_get_issuer'); + end; + + + if not assigned(X509_STORE_set_check_issued) then + begin + {$if declared(X509_STORE_set_check_issued_introduced)} + if LibVersion < X509_STORE_set_check_issued_introduced then + {$if declared(FC_X509_STORE_set_check_issued)} + X509_STORE_set_check_issued := @FC_X509_STORE_set_check_issued + {$else} + X509_STORE_set_check_issued := @ERR_X509_STORE_set_check_issued + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_set_check_issued_removed)} + if X509_STORE_set_check_issued_removed <= LibVersion then + {$if declared(_X509_STORE_set_check_issued)} + X509_STORE_set_check_issued := @_X509_STORE_set_check_issued + {$else} + {$IF declared(ERR_X509_STORE_set_check_issued)} + X509_STORE_set_check_issued := @ERR_X509_STORE_set_check_issued + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_set_check_issued) and Assigned(AFailed) then + AFailed.Add('X509_STORE_set_check_issued'); + end; + + + if not assigned(X509_STORE_get_check_issued) then + begin + {$if declared(X509_STORE_get_check_issued_introduced)} + if LibVersion < X509_STORE_get_check_issued_introduced then + {$if declared(FC_X509_STORE_get_check_issued)} + X509_STORE_get_check_issued := @FC_X509_STORE_get_check_issued + {$else} + X509_STORE_get_check_issued := @ERR_X509_STORE_get_check_issued + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get_check_issued_removed)} + if X509_STORE_get_check_issued_removed <= LibVersion then + {$if declared(_X509_STORE_get_check_issued)} + X509_STORE_get_check_issued := @_X509_STORE_get_check_issued + {$else} + {$IF declared(ERR_X509_STORE_get_check_issued)} + X509_STORE_get_check_issued := @ERR_X509_STORE_get_check_issued + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get_check_issued) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get_check_issued'); + end; + + + if not assigned(X509_STORE_set_check_revocation) then + begin + {$if declared(X509_STORE_set_check_revocation_introduced)} + if LibVersion < X509_STORE_set_check_revocation_introduced then + {$if declared(FC_X509_STORE_set_check_revocation)} + X509_STORE_set_check_revocation := @FC_X509_STORE_set_check_revocation + {$else} + X509_STORE_set_check_revocation := @ERR_X509_STORE_set_check_revocation + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_set_check_revocation_removed)} + if X509_STORE_set_check_revocation_removed <= LibVersion then + {$if declared(_X509_STORE_set_check_revocation)} + X509_STORE_set_check_revocation := @_X509_STORE_set_check_revocation + {$else} + {$IF declared(ERR_X509_STORE_set_check_revocation)} + X509_STORE_set_check_revocation := @ERR_X509_STORE_set_check_revocation + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_set_check_revocation) and Assigned(AFailed) then + AFailed.Add('X509_STORE_set_check_revocation'); + end; + + + if not assigned(X509_STORE_get_check_revocation) then + begin + {$if declared(X509_STORE_get_check_revocation_introduced)} + if LibVersion < X509_STORE_get_check_revocation_introduced then + {$if declared(FC_X509_STORE_get_check_revocation)} + X509_STORE_get_check_revocation := @FC_X509_STORE_get_check_revocation + {$else} + X509_STORE_get_check_revocation := @ERR_X509_STORE_get_check_revocation + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get_check_revocation_removed)} + if X509_STORE_get_check_revocation_removed <= LibVersion then + {$if declared(_X509_STORE_get_check_revocation)} + X509_STORE_get_check_revocation := @_X509_STORE_get_check_revocation + {$else} + {$IF declared(ERR_X509_STORE_get_check_revocation)} + X509_STORE_get_check_revocation := @ERR_X509_STORE_get_check_revocation + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get_check_revocation) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get_check_revocation'); + end; + + + if not assigned(X509_STORE_set_get_crl) then + begin + {$if declared(X509_STORE_set_get_crl_introduced)} + if LibVersion < X509_STORE_set_get_crl_introduced then + {$if declared(FC_X509_STORE_set_get_crl)} + X509_STORE_set_get_crl := @FC_X509_STORE_set_get_crl + {$else} + X509_STORE_set_get_crl := @ERR_X509_STORE_set_get_crl + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_set_get_crl_removed)} + if X509_STORE_set_get_crl_removed <= LibVersion then + {$if declared(_X509_STORE_set_get_crl)} + X509_STORE_set_get_crl := @_X509_STORE_set_get_crl + {$else} + {$IF declared(ERR_X509_STORE_set_get_crl)} + X509_STORE_set_get_crl := @ERR_X509_STORE_set_get_crl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_set_get_crl) and Assigned(AFailed) then + AFailed.Add('X509_STORE_set_get_crl'); + end; + + + if not assigned(X509_STORE_get_get_crl) then + begin + {$if declared(X509_STORE_get_get_crl_introduced)} + if LibVersion < X509_STORE_get_get_crl_introduced then + {$if declared(FC_X509_STORE_get_get_crl)} + X509_STORE_get_get_crl := @FC_X509_STORE_get_get_crl + {$else} + X509_STORE_get_get_crl := @ERR_X509_STORE_get_get_crl + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get_get_crl_removed)} + if X509_STORE_get_get_crl_removed <= LibVersion then + {$if declared(_X509_STORE_get_get_crl)} + X509_STORE_get_get_crl := @_X509_STORE_get_get_crl + {$else} + {$IF declared(ERR_X509_STORE_get_get_crl)} + X509_STORE_get_get_crl := @ERR_X509_STORE_get_get_crl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get_get_crl) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get_get_crl'); + end; + + + if not assigned(X509_STORE_set_check_crl) then + begin + {$if declared(X509_STORE_set_check_crl_introduced)} + if LibVersion < X509_STORE_set_check_crl_introduced then + {$if declared(FC_X509_STORE_set_check_crl)} + X509_STORE_set_check_crl := @FC_X509_STORE_set_check_crl + {$else} + X509_STORE_set_check_crl := @ERR_X509_STORE_set_check_crl + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_set_check_crl_removed)} + if X509_STORE_set_check_crl_removed <= LibVersion then + {$if declared(_X509_STORE_set_check_crl)} + X509_STORE_set_check_crl := @_X509_STORE_set_check_crl + {$else} + {$IF declared(ERR_X509_STORE_set_check_crl)} + X509_STORE_set_check_crl := @ERR_X509_STORE_set_check_crl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_set_check_crl) and Assigned(AFailed) then + AFailed.Add('X509_STORE_set_check_crl'); + end; + + + if not assigned(X509_STORE_get_check_crl) then + begin + {$if declared(X509_STORE_get_check_crl_introduced)} + if LibVersion < X509_STORE_get_check_crl_introduced then + {$if declared(FC_X509_STORE_get_check_crl)} + X509_STORE_get_check_crl := @FC_X509_STORE_get_check_crl + {$else} + X509_STORE_get_check_crl := @ERR_X509_STORE_get_check_crl + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get_check_crl_removed)} + if X509_STORE_get_check_crl_removed <= LibVersion then + {$if declared(_X509_STORE_get_check_crl)} + X509_STORE_get_check_crl := @_X509_STORE_get_check_crl + {$else} + {$IF declared(ERR_X509_STORE_get_check_crl)} + X509_STORE_get_check_crl := @ERR_X509_STORE_get_check_crl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get_check_crl) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get_check_crl'); + end; + + + if not assigned(X509_STORE_set_cert_crl) then + begin + {$if declared(X509_STORE_set_cert_crl_introduced)} + if LibVersion < X509_STORE_set_cert_crl_introduced then + {$if declared(FC_X509_STORE_set_cert_crl)} + X509_STORE_set_cert_crl := @FC_X509_STORE_set_cert_crl + {$else} + X509_STORE_set_cert_crl := @ERR_X509_STORE_set_cert_crl + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_set_cert_crl_removed)} + if X509_STORE_set_cert_crl_removed <= LibVersion then + {$if declared(_X509_STORE_set_cert_crl)} + X509_STORE_set_cert_crl := @_X509_STORE_set_cert_crl + {$else} + {$IF declared(ERR_X509_STORE_set_cert_crl)} + X509_STORE_set_cert_crl := @ERR_X509_STORE_set_cert_crl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_set_cert_crl) and Assigned(AFailed) then + AFailed.Add('X509_STORE_set_cert_crl'); + end; + + + if not assigned(X509_STORE_get_cert_crl) then + begin + {$if declared(X509_STORE_get_cert_crl_introduced)} + if LibVersion < X509_STORE_get_cert_crl_introduced then + {$if declared(FC_X509_STORE_get_cert_crl)} + X509_STORE_get_cert_crl := @FC_X509_STORE_get_cert_crl + {$else} + X509_STORE_get_cert_crl := @ERR_X509_STORE_get_cert_crl + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get_cert_crl_removed)} + if X509_STORE_get_cert_crl_removed <= LibVersion then + {$if declared(_X509_STORE_get_cert_crl)} + X509_STORE_get_cert_crl := @_X509_STORE_get_cert_crl + {$else} + {$IF declared(ERR_X509_STORE_get_cert_crl)} + X509_STORE_get_cert_crl := @ERR_X509_STORE_get_cert_crl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get_cert_crl) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get_cert_crl'); + end; + + + if not assigned(X509_STORE_set_check_policy) then + begin + {$if declared(X509_STORE_set_check_policy_introduced)} + if LibVersion < X509_STORE_set_check_policy_introduced then + {$if declared(FC_X509_STORE_set_check_policy)} + X509_STORE_set_check_policy := @FC_X509_STORE_set_check_policy + {$else} + X509_STORE_set_check_policy := @ERR_X509_STORE_set_check_policy + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_set_check_policy_removed)} + if X509_STORE_set_check_policy_removed <= LibVersion then + {$if declared(_X509_STORE_set_check_policy)} + X509_STORE_set_check_policy := @_X509_STORE_set_check_policy + {$else} + {$IF declared(ERR_X509_STORE_set_check_policy)} + X509_STORE_set_check_policy := @ERR_X509_STORE_set_check_policy + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_set_check_policy) and Assigned(AFailed) then + AFailed.Add('X509_STORE_set_check_policy'); + end; + + + if not assigned(X509_STORE_get_check_policy) then + begin + {$if declared(X509_STORE_get_check_policy_introduced)} + if LibVersion < X509_STORE_get_check_policy_introduced then + {$if declared(FC_X509_STORE_get_check_policy)} + X509_STORE_get_check_policy := @FC_X509_STORE_get_check_policy + {$else} + X509_STORE_get_check_policy := @ERR_X509_STORE_get_check_policy + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get_check_policy_removed)} + if X509_STORE_get_check_policy_removed <= LibVersion then + {$if declared(_X509_STORE_get_check_policy)} + X509_STORE_get_check_policy := @_X509_STORE_get_check_policy + {$else} + {$IF declared(ERR_X509_STORE_get_check_policy)} + X509_STORE_get_check_policy := @ERR_X509_STORE_get_check_policy + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get_check_policy) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get_check_policy'); + end; + + + if not assigned(X509_STORE_set_cleanup) then + begin + {$if declared(X509_STORE_set_cleanup_introduced)} + if LibVersion < X509_STORE_set_cleanup_introduced then + {$if declared(FC_X509_STORE_set_cleanup)} + X509_STORE_set_cleanup := @FC_X509_STORE_set_cleanup + {$else} + X509_STORE_set_cleanup := @ERR_X509_STORE_set_cleanup + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_set_cleanup_removed)} + if X509_STORE_set_cleanup_removed <= LibVersion then + {$if declared(_X509_STORE_set_cleanup)} + X509_STORE_set_cleanup := @_X509_STORE_set_cleanup + {$else} + {$IF declared(ERR_X509_STORE_set_cleanup)} + X509_STORE_set_cleanup := @ERR_X509_STORE_set_cleanup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_set_cleanup) and Assigned(AFailed) then + AFailed.Add('X509_STORE_set_cleanup'); + end; + + + if not assigned(X509_STORE_get_cleanup) then + begin + {$if declared(X509_STORE_get_cleanup_introduced)} + if LibVersion < X509_STORE_get_cleanup_introduced then + {$if declared(FC_X509_STORE_get_cleanup)} + X509_STORE_get_cleanup := @FC_X509_STORE_get_cleanup + {$else} + X509_STORE_get_cleanup := @ERR_X509_STORE_get_cleanup + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get_cleanup_removed)} + if X509_STORE_get_cleanup_removed <= LibVersion then + {$if declared(_X509_STORE_get_cleanup)} + X509_STORE_get_cleanup := @_X509_STORE_get_cleanup + {$else} + {$IF declared(ERR_X509_STORE_get_cleanup)} + X509_STORE_get_cleanup := @ERR_X509_STORE_get_cleanup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get_cleanup) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get_cleanup'); + end; + + + if not assigned(X509_STORE_set_ex_data) then + begin + {$if declared(X509_STORE_set_ex_data_introduced)} + if LibVersion < X509_STORE_set_ex_data_introduced then + {$if declared(FC_X509_STORE_set_ex_data)} + X509_STORE_set_ex_data := @FC_X509_STORE_set_ex_data + {$else} + X509_STORE_set_ex_data := @ERR_X509_STORE_set_ex_data + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_set_ex_data_removed)} + if X509_STORE_set_ex_data_removed <= LibVersion then + {$if declared(_X509_STORE_set_ex_data)} + X509_STORE_set_ex_data := @_X509_STORE_set_ex_data + {$else} + {$IF declared(ERR_X509_STORE_set_ex_data)} + X509_STORE_set_ex_data := @ERR_X509_STORE_set_ex_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_set_ex_data) and Assigned(AFailed) then + AFailed.Add('X509_STORE_set_ex_data'); + end; + + + if not assigned(X509_STORE_get_ex_data) then + begin + {$if declared(X509_STORE_get_ex_data_introduced)} + if LibVersion < X509_STORE_get_ex_data_introduced then + {$if declared(FC_X509_STORE_get_ex_data)} + X509_STORE_get_ex_data := @FC_X509_STORE_get_ex_data + {$else} + X509_STORE_get_ex_data := @ERR_X509_STORE_get_ex_data + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_get_ex_data_removed)} + if X509_STORE_get_ex_data_removed <= LibVersion then + {$if declared(_X509_STORE_get_ex_data)} + X509_STORE_get_ex_data := @_X509_STORE_get_ex_data + {$else} + {$IF declared(ERR_X509_STORE_get_ex_data)} + X509_STORE_get_ex_data := @ERR_X509_STORE_get_ex_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_get_ex_data) and Assigned(AFailed) then + AFailed.Add('X509_STORE_get_ex_data'); + end; + + + if not assigned(X509_STORE_CTX_get0_cert) then + begin + {$if declared(X509_STORE_CTX_get0_cert_introduced)} + if LibVersion < X509_STORE_CTX_get0_cert_introduced then + {$if declared(FC_X509_STORE_CTX_get0_cert)} + X509_STORE_CTX_get0_cert := @FC_X509_STORE_CTX_get0_cert + {$else} + X509_STORE_CTX_get0_cert := @ERR_X509_STORE_CTX_get0_cert + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get0_cert_removed)} + if X509_STORE_CTX_get0_cert_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get0_cert)} + X509_STORE_CTX_get0_cert := @_X509_STORE_CTX_get0_cert + {$else} + {$IF declared(ERR_X509_STORE_CTX_get0_cert)} + X509_STORE_CTX_get0_cert := @ERR_X509_STORE_CTX_get0_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get0_cert) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get0_cert'); + end; + + + if not assigned(X509_STORE_CTX_get_verify_cb) then + begin + {$if declared(X509_STORE_CTX_get_verify_cb_introduced)} + if LibVersion < X509_STORE_CTX_get_verify_cb_introduced then + {$if declared(FC_X509_STORE_CTX_get_verify_cb)} + X509_STORE_CTX_get_verify_cb := @FC_X509_STORE_CTX_get_verify_cb + {$else} + X509_STORE_CTX_get_verify_cb := @ERR_X509_STORE_CTX_get_verify_cb + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_verify_cb_removed)} + if X509_STORE_CTX_get_verify_cb_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_verify_cb)} + X509_STORE_CTX_get_verify_cb := @_X509_STORE_CTX_get_verify_cb + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_verify_cb)} + X509_STORE_CTX_get_verify_cb := @ERR_X509_STORE_CTX_get_verify_cb + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_verify_cb) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_verify_cb'); + end; + + + if not assigned(X509_STORE_CTX_get_verify) then + begin + {$if declared(X509_STORE_CTX_get_verify_introduced)} + if LibVersion < X509_STORE_CTX_get_verify_introduced then + {$if declared(FC_X509_STORE_CTX_get_verify)} + X509_STORE_CTX_get_verify := @FC_X509_STORE_CTX_get_verify + {$else} + X509_STORE_CTX_get_verify := @ERR_X509_STORE_CTX_get_verify + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_verify_removed)} + if X509_STORE_CTX_get_verify_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_verify)} + X509_STORE_CTX_get_verify := @_X509_STORE_CTX_get_verify + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_verify)} + X509_STORE_CTX_get_verify := @ERR_X509_STORE_CTX_get_verify + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_verify) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_verify'); + end; + + + if not assigned(X509_STORE_CTX_get_get_issuer) then + begin + {$if declared(X509_STORE_CTX_get_get_issuer_introduced)} + if LibVersion < X509_STORE_CTX_get_get_issuer_introduced then + {$if declared(FC_X509_STORE_CTX_get_get_issuer)} + X509_STORE_CTX_get_get_issuer := @FC_X509_STORE_CTX_get_get_issuer + {$else} + X509_STORE_CTX_get_get_issuer := @ERR_X509_STORE_CTX_get_get_issuer + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_get_issuer_removed)} + if X509_STORE_CTX_get_get_issuer_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_get_issuer)} + X509_STORE_CTX_get_get_issuer := @_X509_STORE_CTX_get_get_issuer + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_get_issuer)} + X509_STORE_CTX_get_get_issuer := @ERR_X509_STORE_CTX_get_get_issuer + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_get_issuer) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_get_issuer'); + end; + + + if not assigned(X509_STORE_CTX_get_check_issued) then + begin + {$if declared(X509_STORE_CTX_get_check_issued_introduced)} + if LibVersion < X509_STORE_CTX_get_check_issued_introduced then + {$if declared(FC_X509_STORE_CTX_get_check_issued)} + X509_STORE_CTX_get_check_issued := @FC_X509_STORE_CTX_get_check_issued + {$else} + X509_STORE_CTX_get_check_issued := @ERR_X509_STORE_CTX_get_check_issued + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_check_issued_removed)} + if X509_STORE_CTX_get_check_issued_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_check_issued)} + X509_STORE_CTX_get_check_issued := @_X509_STORE_CTX_get_check_issued + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_check_issued)} + X509_STORE_CTX_get_check_issued := @ERR_X509_STORE_CTX_get_check_issued + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_check_issued) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_check_issued'); + end; + + + if not assigned(X509_STORE_CTX_get_check_revocation) then + begin + {$if declared(X509_STORE_CTX_get_check_revocation_introduced)} + if LibVersion < X509_STORE_CTX_get_check_revocation_introduced then + {$if declared(FC_X509_STORE_CTX_get_check_revocation)} + X509_STORE_CTX_get_check_revocation := @FC_X509_STORE_CTX_get_check_revocation + {$else} + X509_STORE_CTX_get_check_revocation := @ERR_X509_STORE_CTX_get_check_revocation + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_check_revocation_removed)} + if X509_STORE_CTX_get_check_revocation_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_check_revocation)} + X509_STORE_CTX_get_check_revocation := @_X509_STORE_CTX_get_check_revocation + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_check_revocation)} + X509_STORE_CTX_get_check_revocation := @ERR_X509_STORE_CTX_get_check_revocation + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_check_revocation) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_check_revocation'); + end; + + + if not assigned(X509_STORE_CTX_get_get_crl) then + begin + {$if declared(X509_STORE_CTX_get_get_crl_introduced)} + if LibVersion < X509_STORE_CTX_get_get_crl_introduced then + {$if declared(FC_X509_STORE_CTX_get_get_crl)} + X509_STORE_CTX_get_get_crl := @FC_X509_STORE_CTX_get_get_crl + {$else} + X509_STORE_CTX_get_get_crl := @ERR_X509_STORE_CTX_get_get_crl + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_get_crl_removed)} + if X509_STORE_CTX_get_get_crl_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_get_crl)} + X509_STORE_CTX_get_get_crl := @_X509_STORE_CTX_get_get_crl + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_get_crl)} + X509_STORE_CTX_get_get_crl := @ERR_X509_STORE_CTX_get_get_crl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_get_crl) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_get_crl'); + end; + + + if not assigned(X509_STORE_CTX_get_check_crl) then + begin + {$if declared(X509_STORE_CTX_get_check_crl_introduced)} + if LibVersion < X509_STORE_CTX_get_check_crl_introduced then + {$if declared(FC_X509_STORE_CTX_get_check_crl)} + X509_STORE_CTX_get_check_crl := @FC_X509_STORE_CTX_get_check_crl + {$else} + X509_STORE_CTX_get_check_crl := @ERR_X509_STORE_CTX_get_check_crl + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_check_crl_removed)} + if X509_STORE_CTX_get_check_crl_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_check_crl)} + X509_STORE_CTX_get_check_crl := @_X509_STORE_CTX_get_check_crl + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_check_crl)} + X509_STORE_CTX_get_check_crl := @ERR_X509_STORE_CTX_get_check_crl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_check_crl) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_check_crl'); + end; + + + if not assigned(X509_STORE_CTX_get_cert_crl) then + begin + {$if declared(X509_STORE_CTX_get_cert_crl_introduced)} + if LibVersion < X509_STORE_CTX_get_cert_crl_introduced then + {$if declared(FC_X509_STORE_CTX_get_cert_crl)} + X509_STORE_CTX_get_cert_crl := @FC_X509_STORE_CTX_get_cert_crl + {$else} + X509_STORE_CTX_get_cert_crl := @ERR_X509_STORE_CTX_get_cert_crl + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_cert_crl_removed)} + if X509_STORE_CTX_get_cert_crl_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_cert_crl)} + X509_STORE_CTX_get_cert_crl := @_X509_STORE_CTX_get_cert_crl + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_cert_crl)} + X509_STORE_CTX_get_cert_crl := @ERR_X509_STORE_CTX_get_cert_crl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_cert_crl) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_cert_crl'); + end; + + + if not assigned(X509_STORE_CTX_get_check_policy) then + begin + {$if declared(X509_STORE_CTX_get_check_policy_introduced)} + if LibVersion < X509_STORE_CTX_get_check_policy_introduced then + {$if declared(FC_X509_STORE_CTX_get_check_policy)} + X509_STORE_CTX_get_check_policy := @FC_X509_STORE_CTX_get_check_policy + {$else} + X509_STORE_CTX_get_check_policy := @ERR_X509_STORE_CTX_get_check_policy + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_check_policy_removed)} + if X509_STORE_CTX_get_check_policy_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_check_policy)} + X509_STORE_CTX_get_check_policy := @_X509_STORE_CTX_get_check_policy + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_check_policy)} + X509_STORE_CTX_get_check_policy := @ERR_X509_STORE_CTX_get_check_policy + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_check_policy) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_check_policy'); + end; + + + if not assigned(X509_STORE_CTX_get_cleanup) then + begin + {$if declared(X509_STORE_CTX_get_cleanup_introduced)} + if LibVersion < X509_STORE_CTX_get_cleanup_introduced then + {$if declared(FC_X509_STORE_CTX_get_cleanup)} + X509_STORE_CTX_get_cleanup := @FC_X509_STORE_CTX_get_cleanup + {$else} + X509_STORE_CTX_get_cleanup := @ERR_X509_STORE_CTX_get_cleanup + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_cleanup_removed)} + if X509_STORE_CTX_get_cleanup_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_cleanup)} + X509_STORE_CTX_get_cleanup := @_X509_STORE_CTX_get_cleanup + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_cleanup)} + X509_STORE_CTX_get_cleanup := @ERR_X509_STORE_CTX_get_cleanup + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_cleanup) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_cleanup'); + end; + + + if not assigned(X509_LOOKUP_meth_new) then + begin + {$if declared(X509_LOOKUP_meth_new_introduced)} + if LibVersion < X509_LOOKUP_meth_new_introduced then + {$if declared(FC_X509_LOOKUP_meth_new)} + X509_LOOKUP_meth_new := @FC_X509_LOOKUP_meth_new + {$else} + X509_LOOKUP_meth_new := @ERR_X509_LOOKUP_meth_new + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_new_removed)} + if X509_LOOKUP_meth_new_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_new)} + X509_LOOKUP_meth_new := @_X509_LOOKUP_meth_new + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_new)} + X509_LOOKUP_meth_new := @ERR_X509_LOOKUP_meth_new + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_new) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_new'); + end; + + + if not assigned(X509_LOOKUP_meth_free) then + begin + {$if declared(X509_LOOKUP_meth_free_introduced)} + if LibVersion < X509_LOOKUP_meth_free_introduced then + {$if declared(FC_X509_LOOKUP_meth_free)} + X509_LOOKUP_meth_free := @FC_X509_LOOKUP_meth_free + {$else} + X509_LOOKUP_meth_free := @ERR_X509_LOOKUP_meth_free + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_free_removed)} + if X509_LOOKUP_meth_free_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_free)} + X509_LOOKUP_meth_free := @_X509_LOOKUP_meth_free + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_free)} + X509_LOOKUP_meth_free := @ERR_X509_LOOKUP_meth_free + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_free) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_free'); + end; + + + if not assigned(X509_LOOKUP_meth_set_ctrl) then + begin + {$if declared(X509_LOOKUP_meth_set_ctrl_introduced)} + if LibVersion < X509_LOOKUP_meth_set_ctrl_introduced then + {$if declared(FC_X509_LOOKUP_meth_set_ctrl)} + X509_LOOKUP_meth_set_ctrl := @FC_X509_LOOKUP_meth_set_ctrl + {$else} + X509_LOOKUP_meth_set_ctrl := @ERR_X509_LOOKUP_meth_set_ctrl + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_set_ctrl_removed)} + if X509_LOOKUP_meth_set_ctrl_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_set_ctrl)} + X509_LOOKUP_meth_set_ctrl := @_X509_LOOKUP_meth_set_ctrl + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_set_ctrl)} + X509_LOOKUP_meth_set_ctrl := @ERR_X509_LOOKUP_meth_set_ctrl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_set_ctrl) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_set_ctrl'); + end; + + + if not assigned(X509_LOOKUP_meth_get_ctrl) then + begin + {$if declared(X509_LOOKUP_meth_get_ctrl_introduced)} + if LibVersion < X509_LOOKUP_meth_get_ctrl_introduced then + {$if declared(FC_X509_LOOKUP_meth_get_ctrl)} + X509_LOOKUP_meth_get_ctrl := @FC_X509_LOOKUP_meth_get_ctrl + {$else} + X509_LOOKUP_meth_get_ctrl := @ERR_X509_LOOKUP_meth_get_ctrl + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_get_ctrl_removed)} + if X509_LOOKUP_meth_get_ctrl_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_get_ctrl)} + X509_LOOKUP_meth_get_ctrl := @_X509_LOOKUP_meth_get_ctrl + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_get_ctrl)} + X509_LOOKUP_meth_get_ctrl := @ERR_X509_LOOKUP_meth_get_ctrl + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_get_ctrl) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_get_ctrl'); + end; + + + if not assigned(X509_LOOKUP_meth_set_get_by_subject) then + begin + {$if declared(X509_LOOKUP_meth_set_get_by_subject_introduced)} + if LibVersion < X509_LOOKUP_meth_set_get_by_subject_introduced then + {$if declared(FC_X509_LOOKUP_meth_set_get_by_subject)} + X509_LOOKUP_meth_set_get_by_subject := @FC_X509_LOOKUP_meth_set_get_by_subject + {$else} + X509_LOOKUP_meth_set_get_by_subject := @ERR_X509_LOOKUP_meth_set_get_by_subject + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_set_get_by_subject_removed)} + if X509_LOOKUP_meth_set_get_by_subject_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_set_get_by_subject)} + X509_LOOKUP_meth_set_get_by_subject := @_X509_LOOKUP_meth_set_get_by_subject + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_set_get_by_subject)} + X509_LOOKUP_meth_set_get_by_subject := @ERR_X509_LOOKUP_meth_set_get_by_subject + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_set_get_by_subject) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_set_get_by_subject'); + end; + + + if not assigned(X509_LOOKUP_meth_get_get_by_subject) then + begin + {$if declared(X509_LOOKUP_meth_get_get_by_subject_introduced)} + if LibVersion < X509_LOOKUP_meth_get_get_by_subject_introduced then + {$if declared(FC_X509_LOOKUP_meth_get_get_by_subject)} + X509_LOOKUP_meth_get_get_by_subject := @FC_X509_LOOKUP_meth_get_get_by_subject + {$else} + X509_LOOKUP_meth_get_get_by_subject := @ERR_X509_LOOKUP_meth_get_get_by_subject + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_get_get_by_subject_removed)} + if X509_LOOKUP_meth_get_get_by_subject_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_get_get_by_subject)} + X509_LOOKUP_meth_get_get_by_subject := @_X509_LOOKUP_meth_get_get_by_subject + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_get_get_by_subject)} + X509_LOOKUP_meth_get_get_by_subject := @ERR_X509_LOOKUP_meth_get_get_by_subject + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_get_get_by_subject) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_get_get_by_subject'); + end; + + + if not assigned(X509_LOOKUP_meth_set_get_by_issuer_serial) then + begin + {$if declared(X509_LOOKUP_meth_set_get_by_issuer_serial_introduced)} + if LibVersion < X509_LOOKUP_meth_set_get_by_issuer_serial_introduced then + {$if declared(FC_X509_LOOKUP_meth_set_get_by_issuer_serial)} + X509_LOOKUP_meth_set_get_by_issuer_serial := @FC_X509_LOOKUP_meth_set_get_by_issuer_serial + {$else} + X509_LOOKUP_meth_set_get_by_issuer_serial := @ERR_X509_LOOKUP_meth_set_get_by_issuer_serial + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_set_get_by_issuer_serial_removed)} + if X509_LOOKUP_meth_set_get_by_issuer_serial_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_set_get_by_issuer_serial)} + X509_LOOKUP_meth_set_get_by_issuer_serial := @_X509_LOOKUP_meth_set_get_by_issuer_serial + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_set_get_by_issuer_serial)} + X509_LOOKUP_meth_set_get_by_issuer_serial := @ERR_X509_LOOKUP_meth_set_get_by_issuer_serial + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_set_get_by_issuer_serial) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_set_get_by_issuer_serial'); + end; + + + if not assigned(X509_LOOKUP_meth_get_get_by_issuer_serial) then + begin + {$if declared(X509_LOOKUP_meth_get_get_by_issuer_serial_introduced)} + if LibVersion < X509_LOOKUP_meth_get_get_by_issuer_serial_introduced then + {$if declared(FC_X509_LOOKUP_meth_get_get_by_issuer_serial)} + X509_LOOKUP_meth_get_get_by_issuer_serial := @FC_X509_LOOKUP_meth_get_get_by_issuer_serial + {$else} + X509_LOOKUP_meth_get_get_by_issuer_serial := @ERR_X509_LOOKUP_meth_get_get_by_issuer_serial + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_get_get_by_issuer_serial_removed)} + if X509_LOOKUP_meth_get_get_by_issuer_serial_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_get_get_by_issuer_serial)} + X509_LOOKUP_meth_get_get_by_issuer_serial := @_X509_LOOKUP_meth_get_get_by_issuer_serial + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_get_get_by_issuer_serial)} + X509_LOOKUP_meth_get_get_by_issuer_serial := @ERR_X509_LOOKUP_meth_get_get_by_issuer_serial + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_get_get_by_issuer_serial) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_get_get_by_issuer_serial'); + end; + + + if not assigned(X509_LOOKUP_meth_set_get_by_fingerprint) then + begin + {$if declared(X509_LOOKUP_meth_set_get_by_fingerprint_introduced)} + if LibVersion < X509_LOOKUP_meth_set_get_by_fingerprint_introduced then + {$if declared(FC_X509_LOOKUP_meth_set_get_by_fingerprint)} + X509_LOOKUP_meth_set_get_by_fingerprint := @FC_X509_LOOKUP_meth_set_get_by_fingerprint + {$else} + X509_LOOKUP_meth_set_get_by_fingerprint := @ERR_X509_LOOKUP_meth_set_get_by_fingerprint + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_set_get_by_fingerprint_removed)} + if X509_LOOKUP_meth_set_get_by_fingerprint_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_set_get_by_fingerprint)} + X509_LOOKUP_meth_set_get_by_fingerprint := @_X509_LOOKUP_meth_set_get_by_fingerprint + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_set_get_by_fingerprint)} + X509_LOOKUP_meth_set_get_by_fingerprint := @ERR_X509_LOOKUP_meth_set_get_by_fingerprint + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_set_get_by_fingerprint) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_set_get_by_fingerprint'); + end; + + + if not assigned(X509_LOOKUP_meth_get_get_by_fingerprint) then + begin + {$if declared(X509_LOOKUP_meth_get_get_by_fingerprint_introduced)} + if LibVersion < X509_LOOKUP_meth_get_get_by_fingerprint_introduced then + {$if declared(FC_X509_LOOKUP_meth_get_get_by_fingerprint)} + X509_LOOKUP_meth_get_get_by_fingerprint := @FC_X509_LOOKUP_meth_get_get_by_fingerprint + {$else} + X509_LOOKUP_meth_get_get_by_fingerprint := @ERR_X509_LOOKUP_meth_get_get_by_fingerprint + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_get_get_by_fingerprint_removed)} + if X509_LOOKUP_meth_get_get_by_fingerprint_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_get_get_by_fingerprint)} + X509_LOOKUP_meth_get_get_by_fingerprint := @_X509_LOOKUP_meth_get_get_by_fingerprint + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_get_get_by_fingerprint)} + X509_LOOKUP_meth_get_get_by_fingerprint := @ERR_X509_LOOKUP_meth_get_get_by_fingerprint + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_get_get_by_fingerprint) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_get_get_by_fingerprint'); + end; + + + if not assigned(X509_LOOKUP_meth_set_get_by_alias) then + begin + {$if declared(X509_LOOKUP_meth_set_get_by_alias_introduced)} + if LibVersion < X509_LOOKUP_meth_set_get_by_alias_introduced then + {$if declared(FC_X509_LOOKUP_meth_set_get_by_alias)} + X509_LOOKUP_meth_set_get_by_alias := @FC_X509_LOOKUP_meth_set_get_by_alias + {$else} + X509_LOOKUP_meth_set_get_by_alias := @ERR_X509_LOOKUP_meth_set_get_by_alias + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_set_get_by_alias_removed)} + if X509_LOOKUP_meth_set_get_by_alias_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_set_get_by_alias)} + X509_LOOKUP_meth_set_get_by_alias := @_X509_LOOKUP_meth_set_get_by_alias + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_set_get_by_alias)} + X509_LOOKUP_meth_set_get_by_alias := @ERR_X509_LOOKUP_meth_set_get_by_alias + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_set_get_by_alias) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_set_get_by_alias'); + end; + + + if not assigned(X509_LOOKUP_meth_get_get_by_alias) then + begin + {$if declared(X509_LOOKUP_meth_get_get_by_alias_introduced)} + if LibVersion < X509_LOOKUP_meth_get_get_by_alias_introduced then + {$if declared(FC_X509_LOOKUP_meth_get_get_by_alias)} + X509_LOOKUP_meth_get_get_by_alias := @FC_X509_LOOKUP_meth_get_get_by_alias + {$else} + X509_LOOKUP_meth_get_get_by_alias := @ERR_X509_LOOKUP_meth_get_get_by_alias + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_meth_get_get_by_alias_removed)} + if X509_LOOKUP_meth_get_get_by_alias_removed <= LibVersion then + {$if declared(_X509_LOOKUP_meth_get_get_by_alias)} + X509_LOOKUP_meth_get_get_by_alias := @_X509_LOOKUP_meth_get_get_by_alias + {$else} + {$IF declared(ERR_X509_LOOKUP_meth_get_get_by_alias)} + X509_LOOKUP_meth_get_get_by_alias := @ERR_X509_LOOKUP_meth_get_get_by_alias + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_meth_get_get_by_alias) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_meth_get_get_by_alias'); + end; + + + if not assigned(X509_STORE_CTX_get_by_subject) then + begin + {$if declared(X509_STORE_CTX_get_by_subject_introduced)} + if LibVersion < X509_STORE_CTX_get_by_subject_introduced then + {$if declared(FC_X509_STORE_CTX_get_by_subject)} + X509_STORE_CTX_get_by_subject := @FC_X509_STORE_CTX_get_by_subject + {$else} + X509_STORE_CTX_get_by_subject := @ERR_X509_STORE_CTX_get_by_subject + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_by_subject_removed)} + if X509_STORE_CTX_get_by_subject_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_by_subject)} + X509_STORE_CTX_get_by_subject := @_X509_STORE_CTX_get_by_subject + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_by_subject)} + X509_STORE_CTX_get_by_subject := @ERR_X509_STORE_CTX_get_by_subject + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_by_subject) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_by_subject'); + end; + + + if not assigned(X509_STORE_CTX_get_obj_by_subject) then + begin + {$if declared(X509_STORE_CTX_get_obj_by_subject_introduced)} + if LibVersion < X509_STORE_CTX_get_obj_by_subject_introduced then + {$if declared(FC_X509_STORE_CTX_get_obj_by_subject)} + X509_STORE_CTX_get_obj_by_subject := @FC_X509_STORE_CTX_get_obj_by_subject + {$else} + X509_STORE_CTX_get_obj_by_subject := @ERR_X509_STORE_CTX_get_obj_by_subject + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_obj_by_subject_removed)} + if X509_STORE_CTX_get_obj_by_subject_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_obj_by_subject)} + X509_STORE_CTX_get_obj_by_subject := @_X509_STORE_CTX_get_obj_by_subject + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_obj_by_subject)} + X509_STORE_CTX_get_obj_by_subject := @ERR_X509_STORE_CTX_get_obj_by_subject + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_obj_by_subject) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_obj_by_subject'); + end; + + + if not assigned(X509_LOOKUP_set_method_data) then + begin + {$if declared(X509_LOOKUP_set_method_data_introduced)} + if LibVersion < X509_LOOKUP_set_method_data_introduced then + {$if declared(FC_X509_LOOKUP_set_method_data)} + X509_LOOKUP_set_method_data := @FC_X509_LOOKUP_set_method_data + {$else} + X509_LOOKUP_set_method_data := @ERR_X509_LOOKUP_set_method_data + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_set_method_data_removed)} + if X509_LOOKUP_set_method_data_removed <= LibVersion then + {$if declared(_X509_LOOKUP_set_method_data)} + X509_LOOKUP_set_method_data := @_X509_LOOKUP_set_method_data + {$else} + {$IF declared(ERR_X509_LOOKUP_set_method_data)} + X509_LOOKUP_set_method_data := @ERR_X509_LOOKUP_set_method_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_set_method_data) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_set_method_data'); + end; + + + if not assigned(X509_LOOKUP_get_method_data) then + begin + {$if declared(X509_LOOKUP_get_method_data_introduced)} + if LibVersion < X509_LOOKUP_get_method_data_introduced then + {$if declared(FC_X509_LOOKUP_get_method_data)} + X509_LOOKUP_get_method_data := @FC_X509_LOOKUP_get_method_data + {$else} + X509_LOOKUP_get_method_data := @ERR_X509_LOOKUP_get_method_data + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_get_method_data_removed)} + if X509_LOOKUP_get_method_data_removed <= LibVersion then + {$if declared(_X509_LOOKUP_get_method_data)} + X509_LOOKUP_get_method_data := @_X509_LOOKUP_get_method_data + {$else} + {$IF declared(ERR_X509_LOOKUP_get_method_data)} + X509_LOOKUP_get_method_data := @ERR_X509_LOOKUP_get_method_data + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_get_method_data) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_get_method_data'); + end; + + + if not assigned(X509_LOOKUP_get_store) then + begin + {$if declared(X509_LOOKUP_get_store_introduced)} + if LibVersion < X509_LOOKUP_get_store_introduced then + {$if declared(FC_X509_LOOKUP_get_store)} + X509_LOOKUP_get_store := @FC_X509_LOOKUP_get_store + {$else} + X509_LOOKUP_get_store := @ERR_X509_LOOKUP_get_store + {$ifend} + else + {$ifend} + {$if declared(X509_LOOKUP_get_store_removed)} + if X509_LOOKUP_get_store_removed <= LibVersion then + {$if declared(_X509_LOOKUP_get_store)} + X509_LOOKUP_get_store := @_X509_LOOKUP_get_store + {$else} + {$IF declared(ERR_X509_LOOKUP_get_store)} + X509_LOOKUP_get_store := @ERR_X509_LOOKUP_get_store + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_LOOKUP_get_store) and Assigned(AFailed) then + AFailed.Add('X509_LOOKUP_get_store'); + end; + + + if not assigned(X509_STORE_CTX_set_error_depth) then + begin + {$if declared(X509_STORE_CTX_set_error_depth_introduced)} + if LibVersion < X509_STORE_CTX_set_error_depth_introduced then + {$if declared(FC_X509_STORE_CTX_set_error_depth)} + X509_STORE_CTX_set_error_depth := @FC_X509_STORE_CTX_set_error_depth + {$else} + X509_STORE_CTX_set_error_depth := @ERR_X509_STORE_CTX_set_error_depth + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_set_error_depth_removed)} + if X509_STORE_CTX_set_error_depth_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_set_error_depth)} + X509_STORE_CTX_set_error_depth := @_X509_STORE_CTX_set_error_depth + {$else} + {$IF declared(ERR_X509_STORE_CTX_set_error_depth)} + X509_STORE_CTX_set_error_depth := @ERR_X509_STORE_CTX_set_error_depth + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_set_error_depth) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_set_error_depth'); + end; + + + if not assigned(X509_STORE_CTX_set_current_cert) then + begin + {$if declared(X509_STORE_CTX_set_current_cert_introduced)} + if LibVersion < X509_STORE_CTX_set_current_cert_introduced then + {$if declared(FC_X509_STORE_CTX_set_current_cert)} + X509_STORE_CTX_set_current_cert := @FC_X509_STORE_CTX_set_current_cert + {$else} + X509_STORE_CTX_set_current_cert := @ERR_X509_STORE_CTX_set_current_cert + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_set_current_cert_removed)} + if X509_STORE_CTX_set_current_cert_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_set_current_cert)} + X509_STORE_CTX_set_current_cert := @_X509_STORE_CTX_set_current_cert + {$else} + {$IF declared(ERR_X509_STORE_CTX_set_current_cert)} + X509_STORE_CTX_set_current_cert := @ERR_X509_STORE_CTX_set_current_cert + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_set_current_cert) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_set_current_cert'); + end; + + + if not assigned(X509_STORE_CTX_get_num_untrusted) then + begin + {$if declared(X509_STORE_CTX_get_num_untrusted_introduced)} + if LibVersion < X509_STORE_CTX_get_num_untrusted_introduced then + {$if declared(FC_X509_STORE_CTX_get_num_untrusted)} + X509_STORE_CTX_get_num_untrusted := @FC_X509_STORE_CTX_get_num_untrusted + {$else} + X509_STORE_CTX_get_num_untrusted := @ERR_X509_STORE_CTX_get_num_untrusted + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_get_num_untrusted_removed)} + if X509_STORE_CTX_get_num_untrusted_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_get_num_untrusted)} + X509_STORE_CTX_get_num_untrusted := @_X509_STORE_CTX_get_num_untrusted + {$else} + {$IF declared(ERR_X509_STORE_CTX_get_num_untrusted)} + X509_STORE_CTX_get_num_untrusted := @ERR_X509_STORE_CTX_get_num_untrusted + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_get_num_untrusted) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_get_num_untrusted'); + end; + + + if not assigned(X509_STORE_CTX_set0_dane) then + begin + {$if declared(X509_STORE_CTX_set0_dane_introduced)} + if LibVersion < X509_STORE_CTX_set0_dane_introduced then + {$if declared(FC_X509_STORE_CTX_set0_dane)} + X509_STORE_CTX_set0_dane := @FC_X509_STORE_CTX_set0_dane + {$else} + X509_STORE_CTX_set0_dane := @ERR_X509_STORE_CTX_set0_dane + {$ifend} + else + {$ifend} + {$if declared(X509_STORE_CTX_set0_dane_removed)} + if X509_STORE_CTX_set0_dane_removed <= LibVersion then + {$if declared(_X509_STORE_CTX_set0_dane)} + X509_STORE_CTX_set0_dane := @_X509_STORE_CTX_set0_dane + {$else} + {$IF declared(ERR_X509_STORE_CTX_set0_dane)} + X509_STORE_CTX_set0_dane := @ERR_X509_STORE_CTX_set0_dane + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_STORE_CTX_set0_dane) and Assigned(AFailed) then + AFailed.Add('X509_STORE_CTX_set0_dane'); + end; + + + if not assigned(X509_VERIFY_PARAM_set_auth_level) then + begin + {$if declared(X509_VERIFY_PARAM_set_auth_level_introduced)} + if LibVersion < X509_VERIFY_PARAM_set_auth_level_introduced then + {$if declared(FC_X509_VERIFY_PARAM_set_auth_level)} + X509_VERIFY_PARAM_set_auth_level := @FC_X509_VERIFY_PARAM_set_auth_level + {$else} + X509_VERIFY_PARAM_set_auth_level := @ERR_X509_VERIFY_PARAM_set_auth_level + {$ifend} + else + {$ifend} + {$if declared(X509_VERIFY_PARAM_set_auth_level_removed)} + if X509_VERIFY_PARAM_set_auth_level_removed <= LibVersion then + {$if declared(_X509_VERIFY_PARAM_set_auth_level)} + X509_VERIFY_PARAM_set_auth_level := @_X509_VERIFY_PARAM_set_auth_level + {$else} + {$IF declared(ERR_X509_VERIFY_PARAM_set_auth_level)} + X509_VERIFY_PARAM_set_auth_level := @ERR_X509_VERIFY_PARAM_set_auth_level + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_VERIFY_PARAM_set_auth_level) and Assigned(AFailed) then + AFailed.Add('X509_VERIFY_PARAM_set_auth_level'); + end; + + + if not assigned(X509_VERIFY_PARAM_set_inh_flags) then + begin + {$if declared(X509_VERIFY_PARAM_set_inh_flags_introduced)} + if LibVersion < X509_VERIFY_PARAM_set_inh_flags_introduced then + {$if declared(FC_X509_VERIFY_PARAM_set_inh_flags)} + X509_VERIFY_PARAM_set_inh_flags := @FC_X509_VERIFY_PARAM_set_inh_flags + {$else} + X509_VERIFY_PARAM_set_inh_flags := @ERR_X509_VERIFY_PARAM_set_inh_flags + {$ifend} + else + {$ifend} + {$if declared(X509_VERIFY_PARAM_set_inh_flags_removed)} + if X509_VERIFY_PARAM_set_inh_flags_removed <= LibVersion then + {$if declared(_X509_VERIFY_PARAM_set_inh_flags)} + X509_VERIFY_PARAM_set_inh_flags := @_X509_VERIFY_PARAM_set_inh_flags + {$else} + {$IF declared(ERR_X509_VERIFY_PARAM_set_inh_flags)} + X509_VERIFY_PARAM_set_inh_flags := @ERR_X509_VERIFY_PARAM_set_inh_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_VERIFY_PARAM_set_inh_flags) and Assigned(AFailed) then + AFailed.Add('X509_VERIFY_PARAM_set_inh_flags'); + end; + + + if not assigned(X509_VERIFY_PARAM_get_inh_flags) then + begin + {$if declared(X509_VERIFY_PARAM_get_inh_flags_introduced)} + if LibVersion < X509_VERIFY_PARAM_get_inh_flags_introduced then + {$if declared(FC_X509_VERIFY_PARAM_get_inh_flags)} + X509_VERIFY_PARAM_get_inh_flags := @FC_X509_VERIFY_PARAM_get_inh_flags + {$else} + X509_VERIFY_PARAM_get_inh_flags := @ERR_X509_VERIFY_PARAM_get_inh_flags + {$ifend} + else + {$ifend} + {$if declared(X509_VERIFY_PARAM_get_inh_flags_removed)} + if X509_VERIFY_PARAM_get_inh_flags_removed <= LibVersion then + {$if declared(_X509_VERIFY_PARAM_get_inh_flags)} + X509_VERIFY_PARAM_get_inh_flags := @_X509_VERIFY_PARAM_get_inh_flags + {$else} + {$IF declared(ERR_X509_VERIFY_PARAM_get_inh_flags)} + X509_VERIFY_PARAM_get_inh_flags := @ERR_X509_VERIFY_PARAM_get_inh_flags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_VERIFY_PARAM_get_inh_flags) and Assigned(AFailed) then + AFailed.Add('X509_VERIFY_PARAM_get_inh_flags'); + end; + + + if not assigned(X509_VERIFY_PARAM_get_hostflags) then + begin + {$if declared(X509_VERIFY_PARAM_get_hostflags_introduced)} + if LibVersion < X509_VERIFY_PARAM_get_hostflags_introduced then + {$if declared(FC_X509_VERIFY_PARAM_get_hostflags)} + X509_VERIFY_PARAM_get_hostflags := @FC_X509_VERIFY_PARAM_get_hostflags + {$else} + X509_VERIFY_PARAM_get_hostflags := @ERR_X509_VERIFY_PARAM_get_hostflags + {$ifend} + else + {$ifend} + {$if declared(X509_VERIFY_PARAM_get_hostflags_removed)} + if X509_VERIFY_PARAM_get_hostflags_removed <= LibVersion then + {$if declared(_X509_VERIFY_PARAM_get_hostflags)} + X509_VERIFY_PARAM_get_hostflags := @_X509_VERIFY_PARAM_get_hostflags + {$else} + {$IF declared(ERR_X509_VERIFY_PARAM_get_hostflags)} + X509_VERIFY_PARAM_get_hostflags := @ERR_X509_VERIFY_PARAM_get_hostflags + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_VERIFY_PARAM_get_hostflags) and Assigned(AFailed) then + AFailed.Add('X509_VERIFY_PARAM_get_hostflags'); + end; + + + if not assigned(X509_VERIFY_PARAM_move_peername) then + begin + {$if declared(X509_VERIFY_PARAM_move_peername_introduced)} + if LibVersion < X509_VERIFY_PARAM_move_peername_introduced then + {$if declared(FC_X509_VERIFY_PARAM_move_peername)} + X509_VERIFY_PARAM_move_peername := @FC_X509_VERIFY_PARAM_move_peername + {$else} + X509_VERIFY_PARAM_move_peername := @ERR_X509_VERIFY_PARAM_move_peername + {$ifend} + else + {$ifend} + {$if declared(X509_VERIFY_PARAM_move_peername_removed)} + if X509_VERIFY_PARAM_move_peername_removed <= LibVersion then + {$if declared(_X509_VERIFY_PARAM_move_peername)} + X509_VERIFY_PARAM_move_peername := @_X509_VERIFY_PARAM_move_peername + {$else} + {$IF declared(ERR_X509_VERIFY_PARAM_move_peername)} + X509_VERIFY_PARAM_move_peername := @ERR_X509_VERIFY_PARAM_move_peername + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_VERIFY_PARAM_move_peername) and Assigned(AFailed) then + AFailed.Add('X509_VERIFY_PARAM_move_peername'); + end; + + + if not assigned(X509_VERIFY_PARAM_get_auth_level) then + begin + {$if declared(X509_VERIFY_PARAM_get_auth_level_introduced)} + if LibVersion < X509_VERIFY_PARAM_get_auth_level_introduced then + {$if declared(FC_X509_VERIFY_PARAM_get_auth_level)} + X509_VERIFY_PARAM_get_auth_level := @FC_X509_VERIFY_PARAM_get_auth_level + {$else} + X509_VERIFY_PARAM_get_auth_level := @ERR_X509_VERIFY_PARAM_get_auth_level + {$ifend} + else + {$ifend} + {$if declared(X509_VERIFY_PARAM_get_auth_level_removed)} + if X509_VERIFY_PARAM_get_auth_level_removed <= LibVersion then + {$if declared(_X509_VERIFY_PARAM_get_auth_level)} + X509_VERIFY_PARAM_get_auth_level := @_X509_VERIFY_PARAM_get_auth_level + {$else} + {$IF declared(ERR_X509_VERIFY_PARAM_get_auth_level)} + X509_VERIFY_PARAM_get_auth_level := @ERR_X509_VERIFY_PARAM_get_auth_level + {$ifend} + {$ifend} + else + {$ifend} + if not assigned(X509_VERIFY_PARAM_get_auth_level) and Assigned(AFailed) then + AFailed.Add('X509_VERIFY_PARAM_get_auth_level'); + end; + + +end; + +procedure Unload; +begin + X509_STORE_set_depth := nil; + X509_STORE_CTX_set_depth := nil; + X509_STORE_CTX_get_app_data := nil; {removed 1.0.0} + X509_OBJECT_up_ref_count := nil; + X509_OBJECT_new := nil; {introduced 1.1.0} + X509_OBJECT_free := nil; {introduced 1.1.0} + X509_OBJECT_get_type := nil; {introduced 1.1.0} + X509_OBJECT_get0_X509 := nil; {introduced 1.1.0} + X509_OBJECT_set1_X509 := nil; {introduced 1.1.0} + X509_OBJECT_get0_X509_CRL := nil; {introduced 1.1.0} + X509_OBJECT_set1_X509_CRL := nil; {introduced 1.1.0} + X509_STORE_new := nil; + X509_STORE_free := nil; + X509_STORE_lock := nil; {introduced 1.1.0} + X509_STORE_unlock := nil; {introduced 1.1.0} + X509_STORE_up_ref := nil; {introduced 1.1.0} + X509_STORE_set_flags := nil; + X509_STORE_set_purpose := nil; + X509_STORE_set_trust := nil; + X509_STORE_set1_param := nil; + X509_STORE_get0_param := nil; {introduced 1.1.0} + X509_STORE_set_verify := nil; {introduced 1.1.0} + X509_STORE_CTX_set_verify := nil; {introduced 1.1.0} + X509_STORE_get_verify := nil; {introduced 1.1.0} + X509_STORE_set_verify_cb := nil; + X509_STORE_get_verify_cb := nil; {introduced 1.1.0} + X509_STORE_set_get_issuer := nil; {introduced 1.1.0} + X509_STORE_get_get_issuer := nil; {introduced 1.1.0} + X509_STORE_set_check_issued := nil; {introduced 1.1.0} + X509_STORE_get_check_issued := nil; {introduced 1.1.0} + X509_STORE_set_check_revocation := nil; {introduced 1.1.0} + X509_STORE_get_check_revocation := nil; {introduced 1.1.0} + X509_STORE_set_get_crl := nil; {introduced 1.1.0} + X509_STORE_get_get_crl := nil; {introduced 1.1.0} + X509_STORE_set_check_crl := nil; {introduced 1.1.0} + X509_STORE_get_check_crl := nil; {introduced 1.1.0} + X509_STORE_set_cert_crl := nil; {introduced 1.1.0} + X509_STORE_get_cert_crl := nil; {introduced 1.1.0} + X509_STORE_set_check_policy := nil; {introduced 1.1.0} + X509_STORE_get_check_policy := nil; {introduced 1.1.0} + X509_STORE_set_cleanup := nil; {introduced 1.1.0} + X509_STORE_get_cleanup := nil; {introduced 1.1.0} + X509_STORE_set_ex_data := nil; {introduced 1.1.0} + X509_STORE_get_ex_data := nil; {introduced 1.1.0} + X509_STORE_CTX_new := nil; + X509_STORE_CTX_get1_issuer := nil; + X509_STORE_CTX_free := nil; + X509_STORE_CTX_cleanup := nil; + X509_STORE_CTX_get0_store := nil; + X509_STORE_CTX_get0_cert := nil; {introduced 1.1.0} + X509_STORE_CTX_set_verify_cb := nil; + X509_STORE_CTX_get_verify_cb := nil; {introduced 1.1.0} + X509_STORE_CTX_get_verify := nil; {introduced 1.1.0} + X509_STORE_CTX_get_get_issuer := nil; {introduced 1.1.0} + X509_STORE_CTX_get_check_issued := nil; {introduced 1.1.0} + X509_STORE_CTX_get_check_revocation := nil; {introduced 1.1.0} + X509_STORE_CTX_get_get_crl := nil; {introduced 1.1.0} + X509_STORE_CTX_get_check_crl := nil; {introduced 1.1.0} + X509_STORE_CTX_get_cert_crl := nil; {introduced 1.1.0} + X509_STORE_CTX_get_check_policy := nil; {introduced 1.1.0} + X509_STORE_CTX_get_cleanup := nil; {introduced 1.1.0} + X509_STORE_add_lookup := nil; + X509_LOOKUP_hash_dir := nil; + X509_LOOKUP_file := nil; + X509_LOOKUP_meth_new := nil; {introduced 1.1.0} + X509_LOOKUP_meth_free := nil; {introduced 1.1.0} + X509_LOOKUP_meth_set_ctrl := nil; {introduced 1.1.0} + X509_LOOKUP_meth_get_ctrl := nil; {introduced 1.1.0} + X509_LOOKUP_meth_set_get_by_subject := nil; {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_subject := nil; {introduced 1.1.0} + X509_LOOKUP_meth_set_get_by_issuer_serial := nil; {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_issuer_serial := nil; {introduced 1.1.0} + X509_LOOKUP_meth_set_get_by_fingerprint := nil; {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_fingerprint := nil; {introduced 1.1.0} + X509_LOOKUP_meth_set_get_by_alias := nil; {introduced 1.1.0} + X509_LOOKUP_meth_get_get_by_alias := nil; {introduced 1.1.0} + X509_STORE_add_cert := nil; + X509_STORE_add_crl := nil; + X509_STORE_CTX_get_by_subject := nil; {introduced 1.1.0} + X509_STORE_CTX_get_obj_by_subject := nil; {introduced 1.1.0} + X509_LOOKUP_ctrl := nil; + X509_load_cert_file := nil; + X509_load_crl_file := nil; + X509_load_cert_crl_file := nil; + X509_LOOKUP_new := nil; + X509_LOOKUP_free := nil; + X509_LOOKUP_init := nil; + X509_LOOKUP_by_subject := nil; + X509_LOOKUP_by_issuer_serial := nil; + X509_LOOKUP_by_fingerprint := nil; + X509_LOOKUP_by_alias := nil; + X509_LOOKUP_set_method_data := nil; {introduced 1.1.0} + X509_LOOKUP_get_method_data := nil; {introduced 1.1.0} + X509_LOOKUP_get_store := nil; {introduced 1.1.0} + X509_LOOKUP_shutdown := nil; + X509_STORE_load_locations := nil; + X509_STORE_set_default_paths := nil; + X509_STORE_CTX_set_ex_data := nil; + X509_STORE_CTX_get_ex_data := nil; + X509_STORE_CTX_get_error := nil; + X509_STORE_CTX_set_error := nil; + X509_STORE_CTX_get_error_depth := nil; + X509_STORE_CTX_set_error_depth := nil; {introduced 1.1.0} + X509_STORE_CTX_get_current_cert := nil; + X509_STORE_CTX_set_current_cert := nil; {introduced 1.1.0} + X509_STORE_CTX_get0_current_issuer := nil; + X509_STORE_CTX_get0_current_crl := nil; + X509_STORE_CTX_get0_parent_ctx := nil; + X509_STORE_CTX_set_cert := nil; + X509_STORE_CTX_set_purpose := nil; + X509_STORE_CTX_set_trust := nil; + X509_STORE_CTX_purpose_inherit := nil; + X509_STORE_CTX_set_flags := nil; + X509_STORE_CTX_get0_policy_tree := nil; + X509_STORE_CTX_get_explicit_policy := nil; + X509_STORE_CTX_get_num_untrusted := nil; {introduced 1.1.0} + X509_STORE_CTX_get0_param := nil; + X509_STORE_CTX_set0_param := nil; + X509_STORE_CTX_set_default := nil; + X509_STORE_CTX_set0_dane := nil; {introduced 1.1.0} + X509_VERIFY_PARAM_new := nil; + X509_VERIFY_PARAM_free := nil; + X509_VERIFY_PARAM_inherit := nil; + X509_VERIFY_PARAM_set1 := nil; + X509_VERIFY_PARAM_set1_name := nil; + X509_VERIFY_PARAM_set_flags := nil; + X509_VERIFY_PARAM_clear_flags := nil; + X509_VERIFY_PARAM_get_flags := nil; + X509_VERIFY_PARAM_set_purpose := nil; + X509_VERIFY_PARAM_set_trust := nil; + X509_VERIFY_PARAM_set_depth := nil; + X509_VERIFY_PARAM_set_auth_level := nil; {introduced 1.1.0} + X509_VERIFY_PARAM_add0_policy := nil; + X509_VERIFY_PARAM_set_inh_flags := nil; {introduced 1.1.0} + X509_VERIFY_PARAM_get_inh_flags := nil; {introduced 1.1.0} + X509_VERIFY_PARAM_set1_host := nil; + X509_VERIFY_PARAM_add1_host := nil; + X509_VERIFY_PARAM_set_hostflags := nil; + X509_VERIFY_PARAM_get_hostflags := nil; {introduced 1.1.0} + X509_VERIFY_PARAM_get0_peername := nil; + X509_VERIFY_PARAM_move_peername := nil; {introduced 1.1.0} + X509_VERIFY_PARAM_set1_email := nil; + X509_VERIFY_PARAM_set1_ip := nil; + X509_VERIFY_PARAM_set1_ip_asc := nil; + X509_VERIFY_PARAM_get_depth := nil; + X509_VERIFY_PARAM_get_auth_level := nil; {introduced 1.1.0} + X509_VERIFY_PARAM_get0_name := nil; + X509_VERIFY_PARAM_add0_table := nil; + X509_VERIFY_PARAM_get_count := nil; + X509_VERIFY_PARAM_get0 := nil; + X509_VERIFY_PARAM_lookup := nil; + X509_VERIFY_PARAM_table_cleanup := nil; + X509_policy_tree_free := nil; + X509_policy_tree_level_count := nil; + X509_policy_tree_get0_level := nil; + X509_policy_level_node_count := nil; + X509_policy_level_get0_node := nil; + X509_policy_node_get0_policy := nil; + X509_policy_node_get0_parent := nil; +end; +{$ELSE} +function X509_STORE_CTX_get_app_data(ctx: PX509_STORE_CTX): Pointer; +begin + Result := X509_STORE_CTX_get_ex_data(ctx,SSL_get_ex_data_X509_STORE_CTX_idx); +end; + + +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509err.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509err.pas new file mode 100644 index 000000000..ce5d8f8e0 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509err.pas @@ -0,0 +1,208 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_x509err.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_x509err.h2pas + and this file regenerated. IdOpenSSLHeaders_x509err.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_x509err; + +interface + +// Headers for OpenSSL 1.1.1 +// x509err.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * X509 function codes. + *) + X509_F_ADD_CERT_DIR = 100; + X509_F_BUILD_CHAIN = 106; + X509_F_BY_FILE_CTRL = 101; + X509_F_CHECK_NAME_CONSTRAINTS = 149; + X509_F_CHECK_POLICY = 145; + X509_F_DANE_I2D = 107; + X509_F_DIR_CTRL = 102; + X509_F_GET_CERT_BY_SUBJECT = 103; + X509_F_I2D_X509_AUX = 151; + X509_F_LOOKUP_CERTS_SK = 152; + X509_F_NETSCAPE_SPKI_B64_DECODE = 129; + X509_F_NETSCAPE_SPKI_B64_ENCODE = 130; + X509_F_NEW_DIR = 153; + X509_F_X509AT_ADD1_ATTR = 135; + X509_F_X509V3_ADD_EXT = 104; + X509_F_X509_ATTRIBUTE_CREATE_BY_NID = 136; + X509_F_X509_ATTRIBUTE_CREATE_BY_OBJ = 137; + X509_F_X509_ATTRIBUTE_CREATE_BY_TXT = 140; + X509_F_X509_ATTRIBUTE_GET0_DATA = 139; + X509_F_X509_ATTRIBUTE_SET1_DATA = 138; + X509_F_X509_CHECK_PRIVATE_KEY = 128; + X509_F_X509_CRL_DIFF = 105; + X509_F_X509_CRL_METHOD_NEW = 154; + X509_F_X509_CRL_PRINT_FP = 147; + X509_F_X509_EXTENSION_CREATE_BY_NID = 108; + X509_F_X509_EXTENSION_CREATE_BY_OBJ = 109; + X509_F_X509_GET_PUBKEY_PARAMETERS = 110; + X509_F_X509_LOAD_CERT_CRL_FILE = 132; + X509_F_X509_LOAD_CERT_FILE = 111; + X509_F_X509_LOAD_CRL_FILE = 112; + X509_F_X509_LOOKUP_METH_NEW = 160; + X509_F_X509_LOOKUP_NEW = 155; + X509_F_X509_NAME_ADD_ENTRY = 113; + X509_F_X509_NAME_CANON = 156; + X509_F_X509_NAME_ENTRY_CREATE_BY_NID = 114; + X509_F_X509_NAME_ENTRY_CREATE_BY_TXT = 131; + X509_F_X509_NAME_ENTRY_SET_OBJECT = 115; + X509_F_X509_NAME_ONELINE = 116; + X509_F_X509_NAME_PRINT = 117; + X509_F_X509_OBJECT_NEW = 150; + X509_F_X509_PRINT_EX_FP = 118; + X509_F_X509_PUBKEY_DECODE = 148; + X509_F_X509_PUBKEY_GET0 = 119; + X509_F_X509_PUBKEY_SET = 120; + X509_F_X509_REQ_CHECK_PRIVATE_KEY = 144; + X509_F_X509_REQ_PRINT_EX = 121; + X509_F_X509_REQ_PRINT_FP = 122; + X509_F_X509_REQ_TO_X509 = 123; + X509_F_X509_STORE_ADD_CERT = 124; + X509_F_X509_STORE_ADD_CRL = 125; + X509_F_X509_STORE_ADD_LOOKUP = 157; + X509_F_X509_STORE_CTX_GET1_ISSUER = 146; + X509_F_X509_STORE_CTX_INIT = 143; + X509_F_X509_STORE_CTX_NEW = 142; + X509_F_X509_STORE_CTX_PURPOSE_INHERIT = 134; + X509_F_X509_STORE_NEW = 158; + X509_F_X509_TO_X509_REQ = 126; + X509_F_X509_TRUST_ADD = 133; + X509_F_X509_TRUST_SET = 141; + X509_F_X509_VERIFY_CERT = 127; + X509_F_X509_VERIFY_PARAM_NEW = 159; + + (* + * X509 reason codes. + *) + X509_R_AKID_MISMATCH = 110; + X509_R_BAD_SELECTOR = 133; + X509_R_BAD_X509_FILETYPE = 100; + X509_R_BASE64_DECODE_ERROR = 118; + X509_R_CANT_CHECK_DH_KEY = 114; + X509_R_CERT_ALREADY_IN_HASH_TABLE = 101; + X509_R_CRL_ALREADY_DELTA = 127; + X509_R_CRL_VERIFY_FAILURE = 131; + X509_R_IDP_MISMATCH = 128; + X509_R_INVALID_ATTRIBUTES = 138; + X509_R_INVALID_DIRECTORY = 113; + X509_R_INVALID_FIELD_NAME = 119; + X509_R_INVALID_TRUST = 123; + X509_R_ISSUER_MISMATCH = 129; + X509_R_KEY_TYPE_MISMATCH = 115; + X509_R_KEY_VALUES_MISMATCH = 116; + X509_R_LOADING_CERT_DIR = 103; + X509_R_LOADING_DEFAULTS = 104; + X509_R_METHOD_NOT_SUPPORTED = 124; + X509_R_NAME_TOO_LONG = 134; + X509_R_NEWER_CRL_NOT_NEWER = 132; + X509_R_NO_CERTIFICATE_FOUND = 135; + X509_R_NO_CERTIFICATE_OR_CRL_FOUND = 136; + X509_R_NO_CERT_SET_FOR_US_TO_VERIFY = 105; + X509_R_NO_CRL_FOUND = 137; + X509_R_NO_CRL_NUMBER = 130; + X509_R_PUBLIC_KEY_DECODE_ERROR = 125; + X509_R_PUBLIC_KEY_ENCODE_ERROR = 126; + X509_R_SHOULD_RETRY = 106; + X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN = 107; + X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY = 108; + X509_R_UNKNOWN_KEY_TYPE = 117; + X509_R_UNKNOWN_NID = 109; + X509_R_UNKNOWN_PURPOSE_ID = 121; + X509_R_UNKNOWN_TRUST_ID = 120; + X509_R_UNSUPPORTED_ALGORITHM = 111; + X509_R_WRONG_LOOKUP_TYPE = 112; + X509_R_WRONG_TYPE = 122; + + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM ERR_load_X509_strings} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + ERR_load_X509_strings: function: TIdC_INT; cdecl = nil; + +{$ELSE} + function ERR_load_X509_strings: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + ERR_load_X509_strings := LoadFunction('ERR_load_X509_strings',AFailed); +end; + +procedure Unload; +begin + ERR_load_X509_strings := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. diff --git a/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509v3.pas b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509v3.pas new file mode 100644 index 000000000..77fb6f9f5 --- /dev/null +++ b/Lib/Protocols/opensslHdrs/IdOpenSSLHeaders_x509v3.pas @@ -0,0 +1,1469 @@ + (* This unit was generated using the script genOpenSSLHdrs.sh from the source file IdOpenSSLHeaders_x509v3.h2pas + It should not be modified directly. All changes should be made to IdOpenSSLHeaders_x509v3.h2pas + and this file regenerated. IdOpenSSLHeaders_x509v3.h2pas is distributed with the full Indy + Distribution. + *) + +{$i IdCompilerDefines.inc} +{$i IdSSLOpenSSLDefines.inc} + +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_x509v3; + +interface + +// Headers for OpenSSL 1.1.1 +// x509v3.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_asn1, + IdOpenSSLHeaders_asn1t, + IdOpenSSLHeaders_x509; + +const + (* ext_flags values *) + X509V3_EXT_DYNAMIC = $1; + X509V3_EXT_CTX_DEP = $2; + X509V3_EXT_MULTILINE = $4; + + // v3_ext_ctx + CTX_TEST = $1; + X509V3_CTX_REPLACE = $2; + + // GENERAL_NAME_st + GEN_OTHERNAME = 0; + GEN_EMAIL = 1; + GEN_DNS = 2; + GEN_X400 = 3; + GEN_DIRNAME = 4; + GEN_EDIPARTY = 5; + GEN_URI = 6; + GEN_IPADD = 7; + GEN_RID = 8; + + (* All existing reasons *) + CRLDP_ALL_REASONS = $807f; + + CRL_REASON_NONE = -1; + CRL_REASON_UNSPECIFIED = 0; + CRL_REASON_KEY_COMPROMISE = 1; + CRL_REASON_CA_COMPROMISE = 2; + CRL_REASON_AFFILIATION_CHANGED = 3; + CRL_REASON_SUPERSEDED = 4; + CRL_REASON_CESSATION_OF_OPERATION = 5; + CRL_REASON_CERTIFICATE_HOLD = 6; + CRL_REASON_REMOVE_FROM_CRL = 8; + CRL_REASON_PRIVILEGE_WITHDRAWN = 9; + CRL_REASON_AA_COMPROMISE = 10; + + (* Values in idp_flags field *) + (* IDP present *) + IDP_PRESENT = $1; + (* IDP values inconsistent *) + IDP_INVALID = $2; + (* onlyuser true *) + IDP_ONLYUSER = $4; + (* onlyCA true *) + IDP_ONLYCA = $8; + (* onlyattr true *) + IDP_ONLYATTR = $10; + (* indirectCRL true *) + IDP_INDIRECT = $20; + (* onlysomereasons present *) + IDP_REASONS = $40; + + EXT_END: array[0..13] of TIdC_INT = (-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); + + (* X509_PURPOSE stuff *) + + EXFLAG_BCONS = $1; + EXFLAG_KUSAGE = $2; + EXFLAG_XKUSAGE = $4; + EXFLAG_NSCERT = $8; + + EXFLAG_CA = $10; + (* Really self issued not necessarily self signed *) + EXFLAG_SI = $20; + EXFLAG_V1 = $40; + EXFLAG_INVALID = $80; + (* EXFLAG_SET is set to indicate that some values have been precomputed *) + EXFLAG_SET = $100; + EXFLAG_CRITICAL = $200; + EXFLAG_PROXY = $400; + + EXFLAG_INVALID_POLICY = $800; + EXFLAG_FRESHEST = $1000; + (* Self signed *) + EXFLAG_SS = $2000; + + KU_DIGITAL_SIGNATURE = $0080; + KU_NON_REPUDIATION = $0040; + KU_KEY_ENCIPHERMENT = $0020; + KU_DATA_ENCIPHERMENT = $0010; + KU_KEY_AGREEMENT = $0008; + KU_KEY_CERT_SIGN = $0004; + KU_CRL_SIGN = $0002; + KU_ENCIPHER_ONLY = $0001; + KU_DECIPHER_ONLY = $8000; + + NS_SSL_CLIENT = $80; + NS_SSL_SERVER = $40; + NS_SMIME = $20; + NS_OBJSIGN = $10; + NS_SSL_CA = $04; + NS_SMIME_CA = $02; + NS_OBJSIGN_CA = $01; + NS_ANY_CA = NS_SSL_CA or NS_SMIME_CA or NS_OBJSIGN_CA; + + XKU_SSL_SERVER = $1; + XKU_SSL_CLIENT = $2; + XKU_SMIME = $4; + XKU_CODE_SIGN = $8; + XKU_SGC = $10; + XKU_OCSP_SIGN = $20; + XKU_TIMESTAMP = $40; + XKU_DVCS = $80; + XKU_ANYEKU = $100; + + X509_PURPOSE_DYNAMIC = $1; + X509_PURPOSE_DYNAMIC_NAME = $2; + + X509_PURPOSE_SSL_CLIENT = 1; + X509_PURPOSE_SSL_SERVER = 2; + X509_PURPOSE_NS_SSL_SERVER = 3; + X509_PURPOSE_SMIME_SIGN = 4; + X509_PURPOSE_SMIME_ENCRYPT = 5; + X509_PURPOSE_CRL_SIGN = 6; + X509_PURPOSE_ANY = 7; + X509_PURPOSE_OCSP_HELPER = 8; + X509_PURPOSE_TIMESTAMP_SIGN = 9; + + X509_PURPOSE_MIN = 1; + X509_PURPOSE_MAX = 9; + + (* Flags for X509V3_EXT_print() *) + + X509V3_EXT_UNKNOWN_MASK = TIdC_LONG($f) shl 16; + (* Return error for unknown extensions *) + X509V3_EXT_DEFAULT = 0; + (* Print error for unknown extensions *) + X509V3_EXT_ERROR_UNKNOWN = TIdC_LONG(1) shl 16; + (* ASN1 parse unknown extensions *) + X509V3_EXT_PARSE_UNKNOWN = TIdC_LONG(2) shl 16; + (* BIO_dump unknown extensions *) + X509V3_EXT_DUMP_UNKNOWN = TIdC_LONG(3) shl 16; + + (* Flags for X509V3_add1_i2d *) + + X509V3_ADD_OP_MASK = TIdC_LONG($f); + X509V3_ADD_DEFAULT = TIdC_LONG(0); + X509V3_ADD_APPEND = TIdC_LONG(1); + X509V3_ADD_REPLACE = TIdC_LONG(2); + X509V3_ADD_REPLACE_EXISTING = TIdC_LONG(3); + X509V3_ADD_KEEP_EXISTING = TIdC_LONG(4); + X509V3_ADD_DELETE = TIdC_LONG(5); + X509V3_ADD_SILENT = $10; + + (* Flags for X509_check_* functions *) + + (* + * Always check subject name for host match even if subject alt names present + *) + X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT = $1; + (* Disable wildcard matching for dnsName fields and common name. *) + X509_CHECK_FLAG_NO_WILDCARDS = $2; + (* Wildcards must not match a partial label. *) + X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS = $4; + (* Allow (non-partial) wildcards to match multiple labels. *) + X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS = $8; + (* Constraint verifier subdomain patterns to match a single labels. *) + X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS = $10; + (* Never check the subject CN *) + X509_CHECK_FLAG_NEVER_CHECK_SUBJECT = $20; + (* + * Match reference identifiers starting with "." to any sub-domain. + * This is a non-public flag, turned on implicitly when the subject + * reference identity is a DNS name. + *) + _X509_CHECK_FLAG_DOT_SUBDOMAINS = $8000; + + ASIdOrRange_id = 0; + ASIdOrRange_range = 1; + + ASIdentifierChoice_inherit = 0; + ASIdentifierChoice_asIdsOrRanges = 1; + + IPAddressOrRange_addressPrefix = 0; + IPAddressOrRange_addressRange = 1; + + IPAddressChoice_inherit = 0; + IPAddressChoice_addressesOrRanges = 1; + + (* + * API tag for elements of the ASIdentifer SEQUENCE. + *) + V3_ASID_ASNUM = 0; + V3_ASID_RDI = 1; + + (* + * AFI values, assigned by IANA. It'd be nice to make the AFI + * handling code totally generic, but there are too many little things + * that would need to be defined for other address families for it to + * be worth the trouble. + *) + IANA_AFI_IPV4 = 1; + IANA_AFI_IPV6 = 2; + +type + (* Forward reference *) + //Pv3_ext_method = ^v3_ext_method; + //Pv3_ext_ctx = ^v3_ext_ctx; + + (* Useful typedefs *) + + //X509V3_EXT_NEW = function: Pointer; cdecl; + //X509V3_EXT_FREE = procedure(v1: Pointer); cdecl; + //X509V3_EXT_D2I = function(v1: Pointer; v2: PPByte; v3: TIdC_Long): Pointer; cdecl; + //X509V3_EXT_I2D = function(v1: Pointer; v2: PPByte): TIdC_INT; cdecl; +// typedef STACK_OF(CONF_VALUE) * +// (*X509V3_EXT_I2V) (const struct v3_ext_method *method, void *ext, +// STACK_OF(CONF_VALUE) *extlist); +// typedef void *(*X509V3_EXT_V2I)(const struct v3_ext_method *method, +// struct v3_ext_ctx *ctx, +// STACK_OF(CONF_VALUE) *values); + //X509V3_EXT_I2S = function(method: Pv3_ext_method; ext: Pointer): PIdAnsiChar; cdecl; + //X509V3_EXT_S2I = function(method: Pv3_ext_method; ctx: Pv3_ext_ctx; const str: PIdAnsiChar): Pointer; cdecl; + //X509V3_EXT_I2R = function(const method: Pv3_ext_method; ext: Pointer; out_: PBIO; indent: TIdC_INT): TIdC_INT; cdecl; + //X509V3_EXT_R2I = function(const method: Pv3_ext_method; ctx: Pv3_ext_ctx; const str: PIdAnsiChar): Pointer; cdecl; + +// (* V3 extension structure *) +// v3_ext_method = record +// ext_nid: TIdC_INT; +// ext_flags: TIdC_INT; +//(* If this is set the following four fields are ignored *) +// it: PASN1_ITEM_EXP; +//(* Old style ASN1 calls *) +// ext_new: X509V3_EXT_NEW; +// ext_free: X509V3_EXT_FREE; +// d2i: X509V3_EXT_D2I; +// i2d: X509V3_EXT_I2D; +//(* The following pair is used for string extensions *) +// i2s: X509V3_EXT_I2S; +// s2i: X509V3_EXT_S2I; +//(* The following pair is used for multi-valued extensions *) +// i2v: X509V3_EXT_I2V; +// v2i: X509V3_EXT_V2I; +//(* The following are used for raw extensions *) +// i2r: X509V3_EXT_I2R; +// r2i: X509V3_EXT_R2I; +// usr_data: Pointer; (* Any extension specific data *) +// end; +// X509V3_EXT_METHOD = v3_ext_method; +// PX509V3_EXT_METHOD = ^X509V3_EXT_METHOD; +// DEFINE_STACK_OF(X509V3_EXT_METHOD) + +// typedef struct X509V3_CONF_METHOD_st { +// PIdAnsiChar *(*get_string) (void *db, const section: PIdAnsiChar, const value: PIdAnsiChar); +// STACK_OF(CONF_VALUE) *(*get_section) (void *db, const section: PIdAnsiChar); +// void (*free_string) (void *db, PIdAnsiChar *string); +// void (*free_section) (void *db, STACK_OF(CONF_VALUE) *section); +// } X509V3_CONF_METHOD; + +// Moved to ossl_typ +// (* Context specific info *) +// v3_ext_ctx = record +// flags: TIdC_INT; +// issuer_cert: PX509; +// subject_cert: PX509; +// subject_req: PX509_REQ; +// crl: PX509_CRL; +// db_meth: PX509V3_CONF_METHOD; +// db: Pointer; +// (* Maybe more here *) +// end; + + ENUMERATED_NAMES = BIT_STRING_BITNAME; + + BASIC_CONSTRAINTS_st = record + ca: TIdC_INT; + pathlen: PASN1_INTEGER; + end; + BASIC_CONSTRAINTS = BASIC_CONSTRAINTS_st; + PBASIC_CONSTRAINTS = ^BASIC_CONSTRAINTS; + + PKEY_USAGE_PERIOD_st = record + notBefore: PASN1_GENERALIZEDTIME; + notAfter: PASN1_GENERALIZEDTIME; + end; + PKEY_USAGE_PERIOD = PKEY_USAGE_PERIOD_st; + PPKEY_USAGE_PERIOD = ^PKEY_USAGE_PERIOD; + + otherName_st = record + type_id: PASN1_OBJECT; + value: PASN1_TYPE; + end; + OTHERNAME = otherName_st; + POTHERNAME = ^OTHERNAME; + + EDIPartyName_st = record + nameAssigner: PASN1_STRING; + partyName: PASN1_STRING; + end; + EDIPARTYNAME = EDIPartyName_st; + PEDIPARTYNAME = ^EDIPARTYNAME; + + GENERAL_NAME_st_union = record + case TIdC_INT of + 0: (ptr: PIdAnsiChar); + 1: (otherName: POTHERNAME); (* otherName *) + 2: (rfc822Name: PASN1_IA5STRING); + 3: (dNSName: PASN1_IA5STRING); + 4: (x400Address: PASN1_TYPE); + 5: (directoryName: PX509_NAME); + 6: (ediPartyName: PEDIPARTYNAME); + 7: (uniformResourceIdentifier: PASN1_IA5STRING); + 8: (iPAddress: PASN1_OCTET_STRING); + 9: (registeredID: PASN1_OBJECT); + (* Old names *) + 10: (ip: PASN1_OCTET_STRING); (* iPAddress *) + 11: (dirn: PX509_NAME); (* dirn *) + 12: (ia5: PASN1_IA5STRING); (* rfc822Name, dNSName, + * uniformResourceIdentifier *) + 13: (rid: PASN1_OBJECT); (* registeredID *) + 14: (other: PASN1_TYPE); (* x400Address *) + end; + GENERAL_NAME_st = record + type_: TIdC_INT; + d: GENERAL_NAME_st_union; + end; + GENERAL_NAME = GENERAL_NAME_st; + PGENERAL_NAME = ^GENERAL_NAME; + + ACCESS_DESCRIPTION_st = record + method: PASN1_OBJECT; + location: PGENERAL_NAME; + end; + ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; + PACCESS_DESCRIPTION = ^ACCESS_DESCRIPTION; + +// typedef STACK_OF(ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS; + +// typedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE; + +// typedef STACK_OF(ASN1_INTEGER) TLS_FEATURE; + +// DEFINE_STACK_OF(GENERAL_NAME) +// typedef STACK_OF(GENERAL_NAME) GENERAL_NAMES; +// DEFINE_STACK_OF(GENERAL_NAMES) + +// DEFINE_STACK_OF(ACCESS_DESCRIPTION) +// DIST_POINT_NAME_st_union = record +// case TIdC_INT of +// 0: (GENERAL_NAMES *fullname); +// 1: (STACK_OF(X509_NAME_ENTRY) *relativename); +// end; + DIST_POINT_NAME_st = record + type_: TIdC_INT; + (* If relativename then this contains the full distribution point name *) + dpname: PX509_NAME; + end; + DIST_POINT_NAME = DIST_POINT_NAME_st; + PDIST_POINT_NAME = ^DIST_POINT_NAME; + + +// struct DIST_POINT_ST { +// DIST_POINT_NAME *distpoint; +// ASN1_BIT_STRING *reasons; +// GENERAL_NAMES *CRLissuer; +// TIdC_INT dp_reasons; +// }; + +// typedef STACK_OF(DIST_POINT) CRL_DIST_POINTS; + +// DEFINE_STACK_OF(DIST_POINT) + +// AUTHORITY_KEYID_st = record +// keyid: PASN1_OCTET_STRING; +// issuer: PGENERAL_NAMES; +// serial: PASN1_INTEGER; +// end; + + (* Strong extranet structures *) + + SXNET_ID_st = record + zone: PASN1_INTEGER; + user: PASN1_OCTET_STRING; + end; + SXNETID = SXNET_ID_st; + PSXNETID = ^SXNETID; +// DEFINE_STACK_OF(SXNETID) + +// SXNET_st = record +// ASN1_INTEGER *version; +// STACK_OF(SXNETID) *ids; +// end; +// SXNET = SXNET_st; +// PSXNET = ^SXNET; + +// NOTICEREF_st = record +// ASN1_STRING *organization; +// STACK_OF(ASN1_INTEGER) *noticenos; +// end; +// NOTICEREF = NOTICEREF_st; +// PNOTICEREF = ^NOTICEREF; + +// USERNOTICE_st = record +// noticeref: PNOTICEREF; +// exptext: PASN1_STRING; +// end; +// USERNOTICE = USERNOTICE_st; +// PUSERNOTICE = ^USERNOTICE; + +// POLICYQUALINFO_st_union = record +// case TIdC_INT of +// 0: (cpsuri: PASN1_IA5STRING); +// 1: (usernotice: PUSERNOTICE); +// 2: (other: PASN1_TYPE); +// end; +// POLICYQUALINFO_st = record +// pqualid: PASN1_OBJECT; +// d: POLICYQUALINFO_st_union; +// end; +// POLICYQUALINFO = POLICYQUALINFO_st; +// PPOLICYQUALINFO = ^POLICYQUALINFO; +// DEFINE_STACK_OF(POLICYQUALINFO) + +// POLICYINFO_st = record +// ASN1_OBJECT *policyid; +// STACK_OF(POLICYQUALINFO) *qualifiers; +// end; +// POLICYINFO = POLICYINFO_st; +// PPOLICYINFO = ^POLICYINFO; +// typedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES; +// DEFINE_STACK_OF(POLICYINFO) + + POLICY_MAPPING_st = record + issuerDomainPolicy: PASN1_OBJECT; + subjectDomainPolicy: PASN1_OBJECT; + end; + POLICY_MAPPING = POLICY_MAPPING_st; + PPOLICY_MAPPING = ^POLICY_MAPPING; +// DEFINE_STACK_OF(POLICY_MAPPING) +// typedef STACK_OF(POLICY_MAPPING) POLICY_MAPPINGS; + + GENERAL_SUBTREE_st = record + base: PGENERAL_NAME; + minimum: PASN1_INTEGER; + maximum: PASN1_INTEGER; + end; + GENERAL_SUBTREE = GENERAL_SUBTREE_st; + PGENERAL_SUBTREE = ^GENERAL_SUBTREE; +// DEFINE_STACK_OF(GENERAL_SUBTREE) + +// NAME_CONSTRAINTS_st = record +// STACK_OF(GENERAL_SUBTREE) *permittedSubtrees; +// STACK_OF(GENERAL_SUBTREE) *excludedSubtrees; +// end; + + POLICY_CONSTRAINTS_st = record + requireExplicitPolicy: PASN1_INTEGER; + inhibitPolicyMapping: PASN1_INTEGER; + end; + POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; + PPOLICY_CONSTRAINTS = ^POLICY_CONSTRAINTS; + + (* Proxy certificate structures, see RFC 3820 *) + PROXY_POLICY_st = record + policyLanguage: PASN1_OBJECT; + policy: PASN1_OCTET_STRING; + end; + PROXY_POLICY = PROXY_POLICY_st; + PPROXY_POLICY = ^PROXY_POLICY; +// DECLARE_ASN1_FUNCTIONS(PROXY_POLICY) + + PROXY_CERT_INFO_EXTENSION_st = record + pcPathLengthConstraint: PASN1_INTEGER; + proxyPolicy: PPROXY_POLICY; + end; + PROXY_CERT_INFO_EXTENSION = PROXY_CERT_INFO_EXTENSION_st; + PPROXY_CERT_INFO_EXTENSION = ^PROXY_CERT_INFO_EXTENSION; +// DECLARE_ASN1_FUNCTIONS(PROXY_CERT_INFO_EXTENSION) + +// ISSUING_DIST_POint_st = record +// distpoint: PDIST_POINT_NAME; +// TIdC_INT onlyuser; +// TIdC_INT onlyCA; +// onlysomereasons: PASN1_BIT_STRING; +// TIdC_INT indirectCRL; +// TIdC_INT onlyattr; +// end; + +// # define X509V3_conf_err(val) ERR_add_error_data(6, \ +// "section:", (val)->section, \ +// ",name:", (val)->name, ",value:", (val)->value) +// +// # define X509V3_set_ctx_test(ctx) \ +// X509V3_set_ctx(ctx, NULL, NULL, NULL, NULL, CTX_TEST) +// # define X509V3_set_ctx_nodb(ctx) (ctx)->db = NULL; +// +// # define EXT_BITSTRING(nid, table) { nid, 0, ASN1_ITEM_ref(ASN1_BIT_STRING), \ +// 0,0,0,0, \ +// 0,0, \ +// (X509V3_EXT_I2V)i2v_ASN1_BIT_STRING, \ +// (X509V3_EXT_V2I)v2i_ASN1_BIT_STRING, \ +// NULL, NULL, \ +// table} +// +// # define EXT_IA5STRING(nid) { nid, 0, ASN1_ITEM_ref(ASN1_IA5STRING), \ +// 0,0,0,0, \ +// (X509V3_EXT_I2S)i2s_ASN1_IA5STRING, \ +// (X509V3_EXT_S2I)s2i_ASN1_IA5STRING, \ +// 0,0,0,0, \ +// NULL} + + PX509_PURPOSE = ^X509_PURPOSE; + x509_purpose_st = record + purpose: TIdC_INT; + trust: TIdC_INT; (* Default trust ID *) + flags: TIdC_INT; + check_purpose: function(const v1: PX509_PURPOSE; const v2: PX509; v3: TIdC_INT): TIdC_INT; cdecl; + name: PIdAnsiChar; + sname: PIdAnsiChar; + usr_data: Pointer; + end; + X509_PURPOSE = x509_purpose_st; +// DEFINE_STACK_OF(X509_PURPOSE) + +// DECLARE_ASN1_FUNCTIONS(BASIC_CONSTRAINTS_st) + +// DECLARE_ASN1_FUNCTIONS(SXNET) +// DECLARE_ASN1_FUNCTIONS(SXNETID) + + ASRange_st = record + min, max: PASN1_INTEGER; + end; + ASRange = ASRange_st; + PASRange = ^ASRange; + + ASIdOrRange_st = record + type_: TIdC_INT; + case u: TIdC_INT of + 0: (id: PASN1_INTEGER); + 1: (range: PASRange); + end; + ASIdOrRange = ASIdOrRange_st; + PASIdOrRange = ^ASIdOrRange; +// typedef STACK_OF(ASIdOrRange) ASIdOrRanges; +// DEFINE_STACK_OF(ASIdOrRange) + +// ASIdentifierChoice_st = record +// type_: TIdC_INT; +// case u: TIdC_INT of +// 0: (inherit: PASN1_NULL); +// 1: (asIdsOrRanges: PASIdOrRanges); +// end; +// ASIdentifierChoice = ASIdentifierChoice_st; +// PASIdentifierChoice = ^ASIdentifierChoice; + +// ASIdentifiers_st = record +// asnum, rdi: PASIdentifierChoice; +// end; +// ASIdentifiers = ASIdentifiers_st; +// PASIdentifiers = ^ASIdentifiers; + +// DECLARE_ASN1_FUNCTIONS(ASRange) +// DECLARE_ASN1_FUNCTIONS(ASIdOrRange) +// DECLARE_ASN1_FUNCTIONS(ASIdentifierChoice) +// DECLARE_ASN1_FUNCTIONS(ASIdentifiers) + + IPAddressRange_st = record + min, max: PASN1_BIT_STRING; + end; + IPAddressRange = IPAddressRange_st; + PIPAddressRange = ^IPAddressRange; + + IPAddressOrRange_st = record + type_: TIdC_INT; + case u: TIdC_INT of + 0: (addressPrefix: PASN1_BIT_STRING); + 1: (addressRange: PIPAddressRange); + end; + IPAddressOrRange = IPAddressOrRange_st; + PIPAddressOrRange = ^IPAddressOrRange; + +// typedef STACK_OF(IPAddressOrRange) IPAddressOrRanges; +// DEFINE_STACK_OF(IPAddressOrRange) + +// IPAddressChoice_st = record +// type_: TIdC_INT; +// case u: TIdC_INT of +// 0: (inherit: PASN1_NULL); +// 1: (addressesOrRanges: PIPAddressOrRanges); +// end; +// IPAddressChoice = IPAddressChoice_st; +// PIPAddressChoice = ^IPAddressChoice; + +// IPAddressFamily_st = record +// addressFamily: PASN1_OCTET_STRING; +// ipAddressChoice: PIPAddressChoice; +// end; +// IPAddressFamily = IPAddressFamily_st; +// PIPAddressFamily = ^IPAddressFamily; + +// typedef STACK_OF(IPAddressFamily) IPAddrBlocks; +// DEFINE_STACK_OF(IPAddressFamily) + +// DECLARE_ASN1_FUNCTIONS(IPAddressRange) +// DECLARE_ASN1_FUNCTIONS(IPAddressOrRange) +// DECLARE_ASN1_FUNCTIONS(IPAddressChoice) +// DECLARE_ASN1_FUNCTIONS(IPAddressFamily) + + NamingAuthority_st = type Pointer; + NAMING_AUTHORITY = NamingAuthority_st; + PNAMING_AUTHORITY = ^NAMING_AUTHORITY; + + ProfessionInfo_st = type Pointer; + PROFESSION_INFO = ProfessionInfo_st; + PPROFESSION_INFO = ^PROFESSION_INFO; + + Admissions_st = type Pointer; + ADMISSIONS = Admissions_st; + PADMISSIONS = ^ADMISSIONS; + + AdmissionSyntax_st = type Pointer; + ADMISSION_SYNTAX = AdmissionSyntax_st; + PADMISSION_SYNTAX = ^ADMISSION_SYNTAX; +// DECLARE_ASN1_FUNCTIONS(NAMING_AUTHORITY) +// DECLARE_ASN1_FUNCTIONS(PROFESSION_INFO) +// DECLARE_ASN1_FUNCTIONS(ADMISSIONS) +// DECLARE_ASN1_FUNCTIONS(ADMISSION_SYNTAX) +// DEFINE_STACK_OF(ADMISSIONS) +// DEFINE_STACK_OF(PROFESSION_INFO) +// typedef STACK_OF(PROFESSION_INFO) PROFESSION_INFOS; + +// function SXNET_add_id_asc(psx: PPSXNET; const zone: PIdAnsiChar; const user: PIdAnsiChar; userlen: TIdC_INT): TIdC_INT; +// function SXNET_add_id_ulong(psx: PPSXNET; lzone: TIdC_ULONG; const user: PIdAnsiChar; userlen: TIdC_INT): TIdC_INT; +// function SXNET_add_id_INTEGER(psx: PPSXNET; izone: PASN1_INTEGER; const user: PIdAnsiChar; userlen: TIdC_INT): TIdC_INT; + +// function SXNET_get_id_asc(sx: PSXNET; const zone: PIdAnsiChar): PASN1_OCTET_STRING; +// function SXNET_get_id_ulong(sx: PSXNET; lzone: TIdC_ULONG): PASN1_OCTET_STRING; +// function SXNET_get_id_INTEGER(sx: PSXNET; zone: PASN1_INTEGER): PASN1_OCTET_STRING; + +// DECLARE_ASN1_FUNCTIONS(AUTHORITY_KEYID) + +// DECLARE_ASN1_FUNCTIONS(PKEY_USAGE_PERIOD) + +// DECLARE_ASN1_FUNCTIONS(GENERAL_NAME) +// GENERAL_NAME *GENERAL_NAME_dup(a: PGENERAL_NAME); + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + + {$EXTERNALSYM GENERAL_NAME_cmp} + {$EXTERNALSYM GENERAL_NAME_print} + {$EXTERNALSYM OTHERNAME_cmp} + {$EXTERNALSYM GENERAL_NAME_set0_value} + {$EXTERNALSYM GENERAL_NAME_get0_value} + {$EXTERNALSYM GENERAL_NAME_set0_othername} + {$EXTERNALSYM GENERAL_NAME_get0_otherName} + {$EXTERNALSYM i2a_ACCESS_DESCRIPTION} + {$EXTERNALSYM DIST_POINT_set_dpname} + {$EXTERNALSYM NAME_CONSTRAINTS_check} + {$EXTERNALSYM NAME_CONSTRAINTS_check_CN} + {$EXTERNALSYM X509V3_EXT_nconf_nid} + {$EXTERNALSYM X509V3_EXT_nconf} + {$EXTERNALSYM X509V3_EXT_add_nconf} + {$EXTERNALSYM X509V3_EXT_REQ_add_nconf} + {$EXTERNALSYM X509V3_EXT_CRL_add_nconf} + {$EXTERNALSYM X509V3_EXT_conf_nid} + {$EXTERNALSYM X509V3_EXT_conf} + {$EXTERNALSYM X509V3_EXT_add_conf} + {$EXTERNALSYM X509V3_EXT_REQ_add_conf} + {$EXTERNALSYM X509V3_EXT_CRL_add_conf} + {$EXTERNALSYM X509V3_set_nconf} + {$EXTERNALSYM X509V3_get_string} + {$EXTERNALSYM X509V3_string_free} + {$EXTERNALSYM X509V3_set_ctx} + {$EXTERNALSYM X509V3_EXT_add_alias} + {$EXTERNALSYM X509V3_EXT_cleanup} + {$EXTERNALSYM X509V3_add_standard_extensions} + {$EXTERNALSYM X509V3_EXT_d2i} + {$EXTERNALSYM X509V3_EXT_i2d} + {$EXTERNALSYM X509V3_EXT_print} + {$EXTERNALSYM X509_check_ca} + {$EXTERNALSYM X509_check_purpose} + {$EXTERNALSYM X509_supported_extension} + {$EXTERNALSYM X509_PURPOSE_set} + {$EXTERNALSYM X509_check_issued} + {$EXTERNALSYM X509_check_akid} + {$EXTERNALSYM X509_set_proxy_flag} + {$EXTERNALSYM X509_set_proxy_pathlen} + {$EXTERNALSYM X509_get_proxy_pathlen} + {$EXTERNALSYM X509_get_extension_flags} + {$EXTERNALSYM X509_get_key_usage} + {$EXTERNALSYM X509_get_extended_key_usage} + {$EXTERNALSYM X509_get0_subject_key_id} + {$EXTERNALSYM X509_get0_authority_key_id} + {$EXTERNALSYM X509_get0_authority_serial} + {$EXTERNALSYM X509_PURPOSE_get_count} + {$EXTERNALSYM X509_PURPOSE_get0} + {$EXTERNALSYM X509_PURPOSE_get_by_sname} + {$EXTERNALSYM X509_PURPOSE_get_by_id} + {$EXTERNALSYM X509_PURPOSE_get0_name} + {$EXTERNALSYM X509_PURPOSE_get0_sname} + {$EXTERNALSYM X509_PURPOSE_get_trust} + {$EXTERNALSYM X509_PURPOSE_cleanup} + {$EXTERNALSYM X509_PURPOSE_get_id} + {$EXTERNALSYM X509_check_host} + {$EXTERNALSYM X509_check_email} + {$EXTERNALSYM X509_check_ip} + {$EXTERNALSYM X509_check_ip_asc} + {$EXTERNALSYM a2i_IPADDRESS} + {$EXTERNALSYM a2i_IPADDRESS_NC} + {$EXTERNALSYM X509_POLICY_NODE_print} + {$EXTERNALSYM X509v3_addr_get_range} + {$EXTERNALSYM X509v3_asid_validate_path} + {$EXTERNALSYM X509v3_addr_validate_path} + {$EXTERNALSYM NAMING_AUTHORITY_get0_authorityId} + {$EXTERNALSYM NAMING_AUTHORITY_get0_authorityURL} + {$EXTERNALSYM NAMING_AUTHORITY_get0_authorityText} + {$EXTERNALSYM NAMING_AUTHORITY_set0_authorityId} + {$EXTERNALSYM NAMING_AUTHORITY_set0_authorityURL} + {$EXTERNALSYM NAMING_AUTHORITY_set0_authorityText} + {$EXTERNALSYM ADMISSION_SYNTAX_get0_admissionAuthority} + {$EXTERNALSYM ADMISSION_SYNTAX_set0_admissionAuthority} + {$EXTERNALSYM ADMISSIONS_get0_admissionAuthority} + {$EXTERNALSYM ADMISSIONS_set0_admissionAuthority} + {$EXTERNALSYM ADMISSIONS_get0_namingAuthority} + {$EXTERNALSYM ADMISSIONS_set0_namingAuthority} + {$EXTERNALSYM PROFESSION_INFO_get0_addProfessionInfo} + {$EXTERNALSYM PROFESSION_INFO_set0_addProfessionInfo} + {$EXTERNALSYM PROFESSION_INFO_get0_namingAuthority} + {$EXTERNALSYM PROFESSION_INFO_set0_namingAuthority} + {$EXTERNALSYM PROFESSION_INFO_get0_registrationNumber} + {$EXTERNALSYM PROFESSION_INFO_set0_registrationNumber} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +var + GENERAL_NAME_cmp: function(a: PGENERAL_NAME; b: PGENERAL_NAME): TIdC_INT; cdecl = nil; + +// ASN1_BIT_STRING *v2i_ASN1_BIT_STRING(method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; STACK_OF(CONF_VALUE) *nval); +// STACK_OF(CONF_VALUE) *i2v_ASN1_BIT_STRING(method: PX509V3_EXT_METHOD; ASN1_BIT_STRING *bits; STACK_OF(CONF_VALUE) *extlist); + //function i2s_ASN1_IA5STRING(method: PX509V3_EXT_METHOD; ia5: PASN1_IA5STRING): PIdAnsiChar; + //function s2i_ASN1_IA5STRING(method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; const str: PIdAnsiChar): PASN1_IA5STRING; + +// STACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(method: PX509V3_EXT_METHOD; gen: PGENERAL_NAME; STACK_OF(CONF_VALUE) *ret); + GENERAL_NAME_print: function(out_: PBIO; gen: PGENERAL_NAME): TIdC_INT; cdecl = nil; + +// DECLARE_ASN1_FUNCTIONS(GENERAL_NAMES) + +// STACK_OF(CONF_VALUE) *i2v_GENERAL_NAMES(method: PX509V3_EXT_METHOD, GENERAL_NAMES *gen, STACK_OF(CONF_VALUE) *extlist); +// GENERAL_NAMES *v2i_GENERAL_NAMES(const method: PX509V3_EXT_METHOD, ctx: PX509V3_CTX, STACK_OF(CONF_VALUE) *nval); + +// DECLARE_ASN1_FUNCTIONS(OTHERNAME) +// DECLARE_ASN1_FUNCTIONS(EDIPARTYNAME) + OTHERNAME_cmp: function(a: POTHERNAME; b: POTHERNAME): TIdC_INT; cdecl = nil; + GENERAL_NAME_set0_value: procedure(a: PGENERAL_NAME; type_: TIdC_INT; value: Pointer); cdecl = nil; + GENERAL_NAME_get0_value: function(const a: PGENERAL_NAME; ptype: PIdC_INT): Pointer; cdecl = nil; + GENERAL_NAME_set0_othername: function(gen: PGENERAL_NAME; oid: PASN1_OBJECT; value: PASN1_TYPE): TIdC_INT; cdecl = nil; + GENERAL_NAME_get0_otherName: function(const gen: PGENERAL_NAME; poid: PPASN1_OBJECT; pvalue: PPASN1_TYPE): TIdC_INT; cdecl = nil; + + //function i2s_ASN1_OCTET_STRING(method: PX509V3_EXT_METHOD; const ia5: PASN1_OCTET_STRING): PIdAnsiChar; + //function s2i_ASN1_OCTET_STRING(method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; const str: PIdAnsiChar): PASN1_OCTET_STRING; + +// DECLARE_ASN1_FUNCTIONS(EXTENDED_KEY_USAGE) + i2a_ACCESS_DESCRIPTION: function(bp: PBIO; const a: PACCESS_DESCRIPTION): TIdC_INT; cdecl = nil; + +// DECLARE_ASN1_ALLOC_FUNCTIONS(TLS_FEATURE) + +// DECLARE_ASN1_FUNCTIONS(CERTIFICATEPOLICIES) +// DECLARE_ASN1_FUNCTIONS(POLICYINFO) +// DECLARE_ASN1_FUNCTIONS(POLICYQUALINFO) +// DECLARE_ASN1_FUNCTIONS(USERNOTICE) +// DECLARE_ASN1_FUNCTIONS(NOTICEREF) + +// DECLARE_ASN1_FUNCTIONS(CRL_DIST_POINTS) +// DECLARE_ASN1_FUNCTIONS(DIST_POINT) +// DECLARE_ASN1_FUNCTIONS(DIST_POINT_NAME) +// DECLARE_ASN1_FUNCTIONS(ISSUING_DIST_POINT) + + DIST_POINT_set_dpname: function(dpn: PDIST_POINT_NAME; iname: PX509_NAME): TIdC_INT; cdecl = nil; + + NAME_CONSTRAINTS_check: function(x: PX509; nc: PNAME_CONSTRAINTS): TIdC_INT; cdecl = nil; + NAME_CONSTRAINTS_check_CN: function(x: PX509; nc: PNAME_CONSTRAINTS): TIdC_INT; cdecl = nil; + +// DECLARE_ASN1_FUNCTIONS(ACCESS_DESCRIPTION) +// DECLARE_ASN1_FUNCTIONS(AUTHORITY_INFO_ACCESS) + +// DECLARE_ASN1_ITEM(POLICY_MAPPING) +// DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_MAPPING) +// DECLARE_ASN1_ITEM(POLICY_MAPPINGS) + +// DECLARE_ASN1_ITEM(GENERAL_SUBTREE) +// DECLARE_ASN1_ALLOC_FUNCTIONS(GENERAL_SUBTREE) + +// DECLARE_ASN1_ITEM(NAME_CONSTRAINTS) +// DECLARE_ASN1_ALLOC_FUNCTIONS(NAME_CONSTRAINTS) + +// DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_CONSTRAINTS) +// DECLARE_ASN1_ITEM(POLICY_CONSTRAINTS) + + //function a2i_GENERAL_NAME(out_: PGENERAL_NAME; const method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; TIdC_INT gen_type; const value: PIdAnsiChar; is_nc: TIdC_INT): GENERAL_NAME; + + //function v2i_GENERAL_NAME(const method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; cnf: PCONF_VALUE): PGENERAL_NAME; + //function v2i_GENERAL_NAME_ex(out_: PGENERAL_NAME; const method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; cnf: PCONF_VALUE; is_nc: TIdC_INT): PGENERAL_NAME; + //procedure X509V3_conf_free(val: PCONF_VALUE); + + X509V3_EXT_nconf_nid: function(conf: PCONF; ctx: PX509V3_CTX; ext_nid: TIdC_INT; const value: PIdAnsiChar): PX509_EXTENSION; cdecl = nil; + X509V3_EXT_nconf: function(conf: PCONF; ctx: PX509V3_CTX; const name: PIdAnsiChar; const value: PIdAnsiChar): PX509_EXTENSION; cdecl = nil; +// TIdC_INT X509V3_EXT_add_nconf_sk(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; STACK_OF(X509_EXTENSION) **sk); + X509V3_EXT_add_nconf: function(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; cert: PX509): TIdC_INT; cdecl = nil; + X509V3_EXT_REQ_add_nconf: function(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; req: PX509_REQ): TIdC_INT; cdecl = nil; + X509V3_EXT_CRL_add_nconf: function(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; crl: PX509_CRL): TIdC_INT; cdecl = nil; + + X509V3_EXT_conf_nid: function(conf: Pointer; ctx: PX509V3_CTX; ext_nid: TIdC_INT; const value: PIdAnsiChar): PX509_EXTENSION; cdecl = nil; +// X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; ext_nid: TIdC_INT; const value: PIdAnsiChar); + X509V3_EXT_conf: function(conf: Pointer; ctx: PX509V3_CTX; const name: PIdAnsiChar; const value: PIdAnsiChar): PX509_EXTENSION; cdecl = nil; +// X509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const name: PIdAnsiChar; const value: PIdAnsiChar); + X509V3_EXT_add_conf: function(conf: Pointer; ctx: PX509V3_CTX; const section: PIdAnsiChar; cert: PX509): TIdC_INT; cdecl = nil; +// TIdC_INT X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const section: PIdAnsiChar; cert: PX509); + X509V3_EXT_REQ_add_conf: function(conf: Pointer; ctx: PX509V3_CTX; const section: PIdAnsiChar; req: PX509_REQ): TIdC_INT; cdecl = nil; +// TIdC_INT X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const section: PIdAnsiChar; req: PX509_REQ); + X509V3_EXT_CRL_add_conf: function(conf: Pointer; ctx: PX509V3_CTX; const section: PIdAnsiChar; crl: PX509_CRL): TIdC_INT; cdecl = nil; +// TIdC_INT X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const section: PIdAnsiChar; crl: PX509_CRL); + +// TIdC_INT X509V3_add_value_bool_nf(const name: PIdAnsiChar; TIdC_INT asn1_bool; STACK_OF(CONF_VALUE) **extlist); + //function X509V3_get_value_bool(const value: PCONF_VALUE; asn1_bool: PIdC_INT): TIdC_INT; + //function X509V3_get_value_int(const value: PCONF_VALUE; aint: PPASN1_INTEGER): TIdC_INT; + X509V3_set_nconf: procedure(ctx: PX509V3_CTX; conf: PCONF); cdecl = nil; +// void X509V3_set_conf_lhash(ctx: PX509V3_CTX; LHASH_OF(CONF_VALUE) *lhash); + + X509V3_get_string: function(ctx: PX509V3_CTX; const name: PIdAnsiChar; const section: PIdAnsiChar): PIdAnsiChar; cdecl = nil; +// STACK_OF(CONF_VALUE) *X509V3_get_section(ctx: PX509V3_CTX; const section: PIdAnsiChar); + X509V3_string_free: procedure(ctx: PX509V3_CTX; str: PIdAnsiChar); cdecl = nil; +// void X509V3_section_free(ctx: PX509V3_CTX; STACK_OF(CONF_VALUE) *section); + X509V3_set_ctx: procedure(ctx: PX509V3_CTX; issuer: PX509; subject: PX509; req: PX509_REQ; crl: PX509_CRL; flags: TIdC_INT); cdecl = nil; + +// TIdC_INT X509V3_add_value(const name: PIdAnsiChar; const value: PIdAnsiChar; STACK_OF(CONF_VALUE) **extlist); +// TIdC_INT X509V3_add_value_uPIdAnsiChar(const name: PIdAnsiChar; const Byte *value; STACK_OF(CONF_VALUE) **extlist); +// TIdC_INT X509V3_add_value_bool(const name: PIdAnsiChar; TIdC_INT asn1_bool; STACK_OF(CONF_VALUE) **extlist); +// TIdC_INT X509V3_add_value_int(const name: PIdAnsiChar; const aint: PASN1_INTEGER; STACK_OF(CONF_VALUE) **extlist); + //function i2s_ASN1_INTEGER(meth: PX509V3_EXT_METHOD; const aint: PASN1_INTEGER): PIdAnsiChar; + //function s2i_ASN1_INTEGER(meth: PX509V3_EXT_METHOD; const value: PIdAnsiChar): PASN1_INTEGER; + //function i2s_ASN1_ENUMERATED(meth: PX509V3_EXT_METHOD; const aint: PASN1_ENUMERATED): PIdAnsiChar; + //function i2s_ASN1_ENUMERATED_TABLE(meth: PX509V3_EXT_METHOD; const aint: PASN1_ENUMERATED): PIdAnsiChar; + //function X509V3_EXT_add(ext: PX509V3_EXT_METHOD): TIdC_INT; + //function X509V3_EXT_add_list(extlist: PX509V3_EXT_METHOD): TIdC_INT; + X509V3_EXT_add_alias: function(nid_to: TIdC_INT; nid_from: TIdC_INT): TIdC_INT; cdecl = nil; + X509V3_EXT_cleanup: procedure; cdecl = nil; + + //function X509V3_EXT_get(ext: PX509_EXTENSION): PX509V3_EXT_METHOD; + //function X509V3_EXT_get_nid(nid: TIdC_INT): PX509V3_EXT_METHOD; + X509V3_add_standard_extensions: function: TIdC_INT; cdecl = nil; +// STACK_OF(CONF_VALUE) *X509V3_parse_list(const line: PIdAnsiChar); + X509V3_EXT_d2i: function(ext: PX509_EXTENSION): Pointer; cdecl = nil; +// void *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x; nid: TIdC_INT; TIdC_INT *crit; TIdC_INT *idx); + + X509V3_EXT_i2d: function(ext_nid: TIdC_INT; crit: TIdC_INT; ext_struc: Pointer): PX509_EXTENSION; cdecl = nil; +// TIdC_INT X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; TIdC_ULONG flags); + +// void X509V3_EXT_val_prn(out_: PBIO; STACK_OF(CONF_VALUE) *val; indent: TIdC_INT; TIdC_INT ml); + X509V3_EXT_print: function(out_: PBIO; ext: PX509_EXTENSION; flag: TIdC_ULONG; indent: TIdC_INT): TIdC_INT; cdecl = nil; +// TIdC_INT X509V3_extensions_print(out_: PBIO; const PIdAnsiChar *title; const STACK_OF(X509_EXTENSION) *exts; flag: TIdC_ULONG; indent: TIdC_INT); + + X509_check_ca: function(x: PX509): TIdC_INT; cdecl = nil; + X509_check_purpose: function(x: PX509; id: TIdC_INT; ca: TIdC_INT): TIdC_INT; cdecl = nil; + X509_supported_extension: function(ex: PX509_EXTENSION): TIdC_INT; cdecl = nil; + X509_PURPOSE_set: function(p: PIdC_INT; purpose: TIdC_INT): TIdC_INT; cdecl = nil; + X509_check_issued: function(issuer: PX509; subject: PX509): TIdC_INT; cdecl = nil; + X509_check_akid: function(issuer: PX509; akid: PAUTHORITY_KEYID): TIdC_INT; cdecl = nil; + X509_set_proxy_flag: procedure(x: PX509); cdecl = nil; + X509_set_proxy_pathlen: procedure(x: PX509; l: TIdC_LONG); cdecl = nil; + X509_get_proxy_pathlen: function(x: PX509): TIdC_LONG; cdecl = nil; + + X509_get_extension_flags: function(x: PX509): TIdC_UINT32; cdecl = nil; + X509_get_key_usage: function(x: PX509): TIdC_UINT32; cdecl = nil; + X509_get_extended_key_usage: function(x: PX509): TIdC_UINT32; cdecl = nil; + X509_get0_subject_key_id: function(x: PX509): PASN1_OCTET_STRING; cdecl = nil; + X509_get0_authority_key_id: function(x: PX509): PASN1_OCTET_STRING; cdecl = nil; + //function X509_get0_authority_issuer(x: PX509): PGENERAL_NAMES; + X509_get0_authority_serial: function(x: PX509): PASN1_INTEGER; cdecl = nil; + + X509_PURPOSE_get_count: function: TIdC_INT; cdecl = nil; + X509_PURPOSE_get0: function(idx: TIdC_INT): PX509_PURPOSE; cdecl = nil; + X509_PURPOSE_get_by_sname: function(const sname: PIdAnsiChar): TIdC_INT; cdecl = nil; + X509_PURPOSE_get_by_id: function(id: TIdC_INT): TIdC_INT; cdecl = nil; +// TIdC_INT X509_PURPOSE_add(id: TIdC_INT, TIdC_INT trust, flags: TIdC_INT, TIdC_INT (*ck) (const X509_PURPOSE *, const X509 *, TIdC_INT), const name: PIdAnsiChar, const sname: PIdAnsiChar, void *arg); + X509_PURPOSE_get0_name: function(const xp: PX509_PURPOSE): PIdAnsiChar; cdecl = nil; + X509_PURPOSE_get0_sname: function(const xp: PX509_PURPOSE): PIdAnsiChar; cdecl = nil; + X509_PURPOSE_get_trust: function(const xp: PX509_PURPOSE): TIdC_INT; cdecl = nil; + X509_PURPOSE_cleanup: procedure; cdecl = nil; + X509_PURPOSE_get_id: function(const v1: PX509_PURPOSE): TIdC_INT; cdecl = nil; + +// STACK_OF(OPENSSL_STRING) *X509_get1_email(x: PX509); +// STACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x); +// void X509_email_free(STACK_OF(OPENSSL_STRING) *sk); +// STACK_OF(OPENSSL_STRING) *X509_get1_ocsp(x: PX509); + + X509_check_host: function(x: PX509; const chk: PIdAnsiChar; chklen: TIdC_SIZET; flags: TIdC_UINT; peername: PPIdAnsiChar): TIdC_INT; cdecl = nil; + X509_check_email: function(x: PX509; const chk: PIdAnsiChar; chklen: TIdC_SIZET; flags: TIdC_UINT): TIdC_INT; cdecl = nil; + X509_check_ip: function(x: PX509; const chk: PByte; chklen: TIdC_SIZET; flags: TIdC_UINT): TIdC_INT; cdecl = nil; + X509_check_ip_asc: function(x: PX509; const ipasc: PIdAnsiChar; flags: TIdC_UINT): TIdC_INT; cdecl = nil; + + a2i_IPADDRESS: function(const ipasc: PIdAnsiChar): PASN1_OCTET_STRING; cdecl = nil; + a2i_IPADDRESS_NC: function(const ipasc: PIdAnsiChar): PASN1_OCTET_STRING; cdecl = nil; +// TIdC_INT X509V3_NAME_from_section(X509_NAME *nm; STACK_OF(CONF_VALUE) *dn_sk; TIdC_ULONG chtype); + + X509_POLICY_NODE_print: procedure(out_: PBIO; node: PX509_POLICY_NODE; indent: TIdC_INT); cdecl = nil; +// DEFINE_STACK_OF(X509_POLICY_NODE) + + (* + * Utilities to construct and extract values from RFC3779 extensions, + * since some of the encodings (particularly for IP address prefixes + * and ranges) are a bit tedious to work with directly. + *) + //function X509v3_asid_add_inherit(asid: PASIdentifiers; which: TIdC_INT): TIdC_INT; + //function X509v3_asid_add_id_or_range(asid: PASIdentifiers; which: TIdC_INT; min: PASN1_INTEGER; max: PASN1_INTEGER): TIdC_INT; + //function X509v3_addr_add_inherit(addr: PIPAddrBlocks; const afi: TIdC_UINT; const safi: PIdC_UINT): TIdC_INT; + //function X509v3_addr_add_prefix(addr: PIPAddrBlocks; const afi: TIdC_UINT; const safi: PIdC_UINT; a: PByte; const prefixlen: TIdC_INT): TIdC_INT; + //function X509v3_addr_add_range(addr: PIPAddrBlocks; const afi: TIdC_UINT; const safi: PIdC_UINT; min: PByte; max: PByte): TIdC_INT; + //function X509v3_addr_get_afi(const f: PIPAddressFamily): TIdC_UINT; + X509v3_addr_get_range: function(aor: PIPAddressOrRange; const afi: TIdC_UINT; min: PByte; max: Byte; const length: TIdC_INT): TIdC_INT; cdecl = nil; + + (* + * Canonical forms. + *) + //function X509v3_asid_is_canonical(asid: PASIdentifiers): TIdC_INT; + //function X509v3_addr_is_canonical(addr: PIPAddrBlocks): TIdC_INT; + //function X509v3_asid_canonize(asid: PASIdentifiers): TIdC_INT; + //function X509v3_addr_canonize(addr: PIPAddrBlocks): TIdC_INT; + + (* + * Tests for inheritance and containment. + *) + //function X509v3_asid_inherits(asid: PASIdentifiers): TIdC_INT; + //function X509v3_addr_inherits(addr: PIPAddrBlocks): TIdC_INT; + //function X509v3_asid_subset(a: PASIdentifiers; b: PASIdentifiers): TIdC_INT; + //function X509v3_addr_subset(a: PIPAddrBlocks; b: PIPAddrBlocks): TIdC_INT; + + (* + * Check whether RFC 3779 extensions nest properly in chains. + *) + X509v3_asid_validate_path: function(v1: PX509_STORE_CTX): TIdC_INT; cdecl = nil; + X509v3_addr_validate_path: function(v1: PX509_STORE_CTX): TIdC_INT; cdecl = nil; +// TIdC_INT X509v3_asid_validate_resource_set(STACK_OF(X509) *chain; ASIdentifiers *ext; TIdC_INT allow_inheritance); +// TIdC_INT X509v3_addr_validate_resource_set(STACK_OF(X509) *chain; IPAddrBlocks *ext; TIdC_INT allow_inheritance); + + +// DEFINE_STACK_OF(ASN1_STRING) + + (* + * Admission Syntax + *) + NAMING_AUTHORITY_get0_authorityId: function(const n: PNAMING_AUTHORITY): PASN1_OBJECT; cdecl = nil; + NAMING_AUTHORITY_get0_authorityURL: function(const n: PNAMING_AUTHORITY): PASN1_IA5STRING; cdecl = nil; + NAMING_AUTHORITY_get0_authorityText: function(const n: PNAMING_AUTHORITY): PASN1_STRING; cdecl = nil; + NAMING_AUTHORITY_set0_authorityId: procedure(n: PNAMING_AUTHORITY; namingAuthorityId: PASN1_OBJECT); cdecl = nil; + NAMING_AUTHORITY_set0_authorityURL: procedure(n: PNAMING_AUTHORITY; namingAuthorityUrl: PASN1_IA5STRING); cdecl = nil; + NAMING_AUTHORITY_set0_authorityText: procedure(n: PNAMING_AUTHORITY; namingAuthorityText: PASN1_STRING); cdecl = nil; + + ADMISSION_SYNTAX_get0_admissionAuthority: function(const as_: ADMISSION_SYNTAX): PGENERAL_NAME; cdecl = nil; + ADMISSION_SYNTAX_set0_admissionAuthority: procedure(as_: ADMISSION_SYNTAX; aa: PGENERAL_NAME); cdecl = nil; +// const STACK_OF(ADMISSIONS) *ADMISSION_SYNTAX_get0_contentsOfAdmissions(const as_: ADMISSION_SYNTAX); +// void ADMISSION_SYNTAX_set0_contentsOfAdmissions(as_: ADMISSION_SYNTAX; STACK_OF(ADMISSIONS) *a); + ADMISSIONS_get0_admissionAuthority: function(const a: PADMISSIONS): PGENERAL_NAME; cdecl = nil; + ADMISSIONS_set0_admissionAuthority: procedure(a: PADMISSIONS; aa: PGENERAL_NAME); cdecl = nil; + ADMISSIONS_get0_namingAuthority: function(const a: PADMISSIONS): PNAMING_AUTHORITY; cdecl = nil; + ADMISSIONS_set0_namingAuthority: procedure(a: PADMISSIONS; na: PNAMING_AUTHORITY); cdecl = nil; + //function ADMISSIONS_get0_professionInfos(const a: PADMISSIONS): PPROFESSION_INFOS; + //procedure ADMISSIONS_set0_professionInfos(a: PADMISSIONS; pi: PPROFESSION_INFOS); + PROFESSION_INFO_get0_addProfessionInfo: function(const pi: PPROFESSION_INFO): PASN1_OCTET_STRING; cdecl = nil; + PROFESSION_INFO_set0_addProfessionInfo: procedure(pi: PPROFESSION_INFO; aos: PASN1_OCTET_STRING); cdecl = nil; + PROFESSION_INFO_get0_namingAuthority: function(const pi: PPROFESSION_INFO): PNAMING_AUTHORITY; cdecl = nil; + PROFESSION_INFO_set0_namingAuthority: procedure(pi: PPROFESSION_INFO; na: PNAMING_AUTHORITY); cdecl = nil; +// const STACK_OF(ASN1_STRING) *PROFESSION_INFO_get0_professionItems(const pi: PPROFESSION_INFO); +// void PROFESSION_INFO_set0_professionItems(pi: PPROFESSION_INFO; STACK_OF(ASN1_STRING) *as); +// const STACK_OF(ASN1_OBJECT) *PROFESSION_INFO_get0_professionOIDs(const pi: PPROFESSION_INFO); +// void PROFESSION_INFO_set0_professionOIDs(pi: PPROFESSION_INFO; STACK_OF(ASN1_OBJECT) *po); + PROFESSION_INFO_get0_registrationNumber: function(const pi: PPROFESSION_INFO): PASN1_PRINTABLESTRING; cdecl = nil; + PROFESSION_INFO_set0_registrationNumber: procedure(pi: PPROFESSION_INFO; rn: PASN1_PRINTABLESTRING); cdecl = nil; + + +{$ELSE} + function GENERAL_NAME_cmp(a: PGENERAL_NAME; b: PGENERAL_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// ASN1_BIT_STRING *v2i_ASN1_BIT_STRING(method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; STACK_OF(CONF_VALUE) *nval); +// STACK_OF(CONF_VALUE) *i2v_ASN1_BIT_STRING(method: PX509V3_EXT_METHOD; ASN1_BIT_STRING *bits; STACK_OF(CONF_VALUE) *extlist); + //function i2s_ASN1_IA5STRING(method: PX509V3_EXT_METHOD; ia5: PASN1_IA5STRING): PIdAnsiChar; + //function s2i_ASN1_IA5STRING(method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; const str: PIdAnsiChar): PASN1_IA5STRING; + +// STACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(method: PX509V3_EXT_METHOD; gen: PGENERAL_NAME; STACK_OF(CONF_VALUE) *ret); + function GENERAL_NAME_print(out_: PBIO; gen: PGENERAL_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// DECLARE_ASN1_FUNCTIONS(GENERAL_NAMES) + +// STACK_OF(CONF_VALUE) *i2v_GENERAL_NAMES(method: PX509V3_EXT_METHOD, GENERAL_NAMES *gen, STACK_OF(CONF_VALUE) *extlist); +// GENERAL_NAMES *v2i_GENERAL_NAMES(const method: PX509V3_EXT_METHOD, ctx: PX509V3_CTX, STACK_OF(CONF_VALUE) *nval); + +// DECLARE_ASN1_FUNCTIONS(OTHERNAME) +// DECLARE_ASN1_FUNCTIONS(EDIPARTYNAME) + function OTHERNAME_cmp(a: POTHERNAME; b: POTHERNAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure GENERAL_NAME_set0_value(a: PGENERAL_NAME; type_: TIdC_INT; value: Pointer) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function GENERAL_NAME_get0_value(const a: PGENERAL_NAME; ptype: PIdC_INT): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function GENERAL_NAME_set0_othername(gen: PGENERAL_NAME; oid: PASN1_OBJECT; value: PASN1_TYPE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function GENERAL_NAME_get0_otherName(const gen: PGENERAL_NAME; poid: PPASN1_OBJECT; pvalue: PPASN1_TYPE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //function i2s_ASN1_OCTET_STRING(method: PX509V3_EXT_METHOD; const ia5: PASN1_OCTET_STRING): PIdAnsiChar; + //function s2i_ASN1_OCTET_STRING(method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; const str: PIdAnsiChar): PASN1_OCTET_STRING; + +// DECLARE_ASN1_FUNCTIONS(EXTENDED_KEY_USAGE) + function i2a_ACCESS_DESCRIPTION(bp: PBIO; const a: PACCESS_DESCRIPTION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// DECLARE_ASN1_ALLOC_FUNCTIONS(TLS_FEATURE) + +// DECLARE_ASN1_FUNCTIONS(CERTIFICATEPOLICIES) +// DECLARE_ASN1_FUNCTIONS(POLICYINFO) +// DECLARE_ASN1_FUNCTIONS(POLICYQUALINFO) +// DECLARE_ASN1_FUNCTIONS(USERNOTICE) +// DECLARE_ASN1_FUNCTIONS(NOTICEREF) + +// DECLARE_ASN1_FUNCTIONS(CRL_DIST_POINTS) +// DECLARE_ASN1_FUNCTIONS(DIST_POINT) +// DECLARE_ASN1_FUNCTIONS(DIST_POINT_NAME) +// DECLARE_ASN1_FUNCTIONS(ISSUING_DIST_POINT) + + function DIST_POINT_set_dpname(dpn: PDIST_POINT_NAME; iname: PX509_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function NAME_CONSTRAINTS_check(x: PX509; nc: PNAME_CONSTRAINTS): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NAME_CONSTRAINTS_check_CN(x: PX509; nc: PNAME_CONSTRAINTS): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// DECLARE_ASN1_FUNCTIONS(ACCESS_DESCRIPTION) +// DECLARE_ASN1_FUNCTIONS(AUTHORITY_INFO_ACCESS) + +// DECLARE_ASN1_ITEM(POLICY_MAPPING) +// DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_MAPPING) +// DECLARE_ASN1_ITEM(POLICY_MAPPINGS) + +// DECLARE_ASN1_ITEM(GENERAL_SUBTREE) +// DECLARE_ASN1_ALLOC_FUNCTIONS(GENERAL_SUBTREE) + +// DECLARE_ASN1_ITEM(NAME_CONSTRAINTS) +// DECLARE_ASN1_ALLOC_FUNCTIONS(NAME_CONSTRAINTS) + +// DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_CONSTRAINTS) +// DECLARE_ASN1_ITEM(POLICY_CONSTRAINTS) + + //function a2i_GENERAL_NAME(out_: PGENERAL_NAME; const method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; TIdC_INT gen_type; const value: PIdAnsiChar; is_nc: TIdC_INT): GENERAL_NAME; + + //function v2i_GENERAL_NAME(const method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; cnf: PCONF_VALUE): PGENERAL_NAME; + //function v2i_GENERAL_NAME_ex(out_: PGENERAL_NAME; const method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; cnf: PCONF_VALUE; is_nc: TIdC_INT): PGENERAL_NAME; + //procedure X509V3_conf_free(val: PCONF_VALUE); + + function X509V3_EXT_nconf_nid(conf: PCONF; ctx: PX509V3_CTX; ext_nid: TIdC_INT; const value: PIdAnsiChar): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509V3_EXT_nconf(conf: PCONF; ctx: PX509V3_CTX; const name: PIdAnsiChar; const value: PIdAnsiChar): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT X509V3_EXT_add_nconf_sk(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; STACK_OF(X509_EXTENSION) **sk); + function X509V3_EXT_add_nconf(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; cert: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509V3_EXT_REQ_add_nconf(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; req: PX509_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509V3_EXT_CRL_add_nconf(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; crl: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509V3_EXT_conf_nid(conf: Pointer; ctx: PX509V3_CTX; ext_nid: TIdC_INT; const value: PIdAnsiChar): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; ext_nid: TIdC_INT; const value: PIdAnsiChar); + function X509V3_EXT_conf(conf: Pointer; ctx: PX509V3_CTX; const name: PIdAnsiChar; const value: PIdAnsiChar): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// X509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const name: PIdAnsiChar; const value: PIdAnsiChar); + function X509V3_EXT_add_conf(conf: Pointer; ctx: PX509V3_CTX; const section: PIdAnsiChar; cert: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const section: PIdAnsiChar; cert: PX509); + function X509V3_EXT_REQ_add_conf(conf: Pointer; ctx: PX509V3_CTX; const section: PIdAnsiChar; req: PX509_REQ): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const section: PIdAnsiChar; req: PX509_REQ); + function X509V3_EXT_CRL_add_conf(conf: Pointer; ctx: PX509V3_CTX; const section: PIdAnsiChar; crl: PX509_CRL): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const section: PIdAnsiChar; crl: PX509_CRL); + +// TIdC_INT X509V3_add_value_bool_nf(const name: PIdAnsiChar; TIdC_INT asn1_bool; STACK_OF(CONF_VALUE) **extlist); + //function X509V3_get_value_bool(const value: PCONF_VALUE; asn1_bool: PIdC_INT): TIdC_INT; + //function X509V3_get_value_int(const value: PCONF_VALUE; aint: PPASN1_INTEGER): TIdC_INT; + procedure X509V3_set_nconf(ctx: PX509V3_CTX; conf: PCONF) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// void X509V3_set_conf_lhash(ctx: PX509V3_CTX; LHASH_OF(CONF_VALUE) *lhash); + + function X509V3_get_string(ctx: PX509V3_CTX; const name: PIdAnsiChar; const section: PIdAnsiChar): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// STACK_OF(CONF_VALUE) *X509V3_get_section(ctx: PX509V3_CTX; const section: PIdAnsiChar); + procedure X509V3_string_free(ctx: PX509V3_CTX; str: PIdAnsiChar) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// void X509V3_section_free(ctx: PX509V3_CTX; STACK_OF(CONF_VALUE) *section); + procedure X509V3_set_ctx(ctx: PX509V3_CTX; issuer: PX509; subject: PX509; req: PX509_REQ; crl: PX509_CRL; flags: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// TIdC_INT X509V3_add_value(const name: PIdAnsiChar; const value: PIdAnsiChar; STACK_OF(CONF_VALUE) **extlist); +// TIdC_INT X509V3_add_value_uPIdAnsiChar(const name: PIdAnsiChar; const Byte *value; STACK_OF(CONF_VALUE) **extlist); +// TIdC_INT X509V3_add_value_bool(const name: PIdAnsiChar; TIdC_INT asn1_bool; STACK_OF(CONF_VALUE) **extlist); +// TIdC_INT X509V3_add_value_int(const name: PIdAnsiChar; const aint: PASN1_INTEGER; STACK_OF(CONF_VALUE) **extlist); + //function i2s_ASN1_INTEGER(meth: PX509V3_EXT_METHOD; const aint: PASN1_INTEGER): PIdAnsiChar; + //function s2i_ASN1_INTEGER(meth: PX509V3_EXT_METHOD; const value: PIdAnsiChar): PASN1_INTEGER; + //function i2s_ASN1_ENUMERATED(meth: PX509V3_EXT_METHOD; const aint: PASN1_ENUMERATED): PIdAnsiChar; + //function i2s_ASN1_ENUMERATED_TABLE(meth: PX509V3_EXT_METHOD; const aint: PASN1_ENUMERATED): PIdAnsiChar; + //function X509V3_EXT_add(ext: PX509V3_EXT_METHOD): TIdC_INT; + //function X509V3_EXT_add_list(extlist: PX509V3_EXT_METHOD): TIdC_INT; + function X509V3_EXT_add_alias(nid_to: TIdC_INT; nid_from: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509V3_EXT_cleanup cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + //function X509V3_EXT_get(ext: PX509_EXTENSION): PX509V3_EXT_METHOD; + //function X509V3_EXT_get_nid(nid: TIdC_INT): PX509V3_EXT_METHOD; + function X509V3_add_standard_extensions: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// STACK_OF(CONF_VALUE) *X509V3_parse_list(const line: PIdAnsiChar); + function X509V3_EXT_d2i(ext: PX509_EXTENSION): Pointer cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// void *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x; nid: TIdC_INT; TIdC_INT *crit; TIdC_INT *idx); + + function X509V3_EXT_i2d(ext_nid: TIdC_INT; crit: TIdC_INT; ext_struc: Pointer): PX509_EXTENSION cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; TIdC_ULONG flags); + +// void X509V3_EXT_val_prn(out_: PBIO; STACK_OF(CONF_VALUE) *val; indent: TIdC_INT; TIdC_INT ml); + function X509V3_EXT_print(out_: PBIO; ext: PX509_EXTENSION; flag: TIdC_ULONG; indent: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT X509V3_extensions_print(out_: PBIO; const PIdAnsiChar *title; const STACK_OF(X509_EXTENSION) *exts; flag: TIdC_ULONG; indent: TIdC_INT); + + function X509_check_ca(x: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_check_purpose(x: PX509; id: TIdC_INT; ca: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_supported_extension(ex: PX509_EXTENSION): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_PURPOSE_set(p: PIdC_INT; purpose: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_check_issued(issuer: PX509; subject: PX509): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_check_akid(issuer: PX509; akid: PAUTHORITY_KEYID): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_set_proxy_flag(x: PX509) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_set_proxy_pathlen(x: PX509; l: TIdC_LONG) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_proxy_pathlen(x: PX509): TIdC_LONG cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_get_extension_flags(x: PX509): TIdC_UINT32 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_key_usage(x: PX509): TIdC_UINT32 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get_extended_key_usage(x: PX509): TIdC_UINT32 cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get0_subject_key_id(x: PX509): PASN1_OCTET_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_get0_authority_key_id(x: PX509): PASN1_OCTET_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function X509_get0_authority_issuer(x: PX509): PGENERAL_NAMES; + function X509_get0_authority_serial(x: PX509): PASN1_INTEGER cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function X509_PURPOSE_get_count: TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_PURPOSE_get0(idx: TIdC_INT): PX509_PURPOSE cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_PURPOSE_get_by_sname(const sname: PIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_PURPOSE_get_by_id(id: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT X509_PURPOSE_add(id: TIdC_INT, TIdC_INT trust, flags: TIdC_INT, TIdC_INT (*ck) (const X509_PURPOSE *, const X509 *, TIdC_INT), const name: PIdAnsiChar, const sname: PIdAnsiChar, void *arg); + function X509_PURPOSE_get0_name(const xp: PX509_PURPOSE): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_PURPOSE_get0_sname(const xp: PX509_PURPOSE): PIdAnsiChar cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_PURPOSE_get_trust(const xp: PX509_PURPOSE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure X509_PURPOSE_cleanup cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_PURPOSE_get_id(const v1: PX509_PURPOSE): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + +// STACK_OF(OPENSSL_STRING) *X509_get1_email(x: PX509); +// STACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x); +// void X509_email_free(STACK_OF(OPENSSL_STRING) *sk); +// STACK_OF(OPENSSL_STRING) *X509_get1_ocsp(x: PX509); + + function X509_check_host(x: PX509; const chk: PIdAnsiChar; chklen: TIdC_SIZET; flags: TIdC_UINT; peername: PPIdAnsiChar): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_check_email(x: PX509; const chk: PIdAnsiChar; chklen: TIdC_SIZET; flags: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_check_ip(x: PX509; const chk: PByte; chklen: TIdC_SIZET; flags: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509_check_ip_asc(x: PX509; const ipasc: PIdAnsiChar; flags: TIdC_UINT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function a2i_IPADDRESS(const ipasc: PIdAnsiChar): PASN1_OCTET_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function a2i_IPADDRESS_NC(const ipasc: PIdAnsiChar): PASN1_OCTET_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT X509V3_NAME_from_section(X509_NAME *nm; STACK_OF(CONF_VALUE) *dn_sk; TIdC_ULONG chtype); + + procedure X509_POLICY_NODE_print(out_: PBIO; node: PX509_POLICY_NODE; indent: TIdC_INT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// DEFINE_STACK_OF(X509_POLICY_NODE) + + (* + * Utilities to construct and extract values from RFC3779 extensions, + * since some of the encodings (particularly for IP address prefixes + * and ranges) are a bit tedious to work with directly. + *) + //function X509v3_asid_add_inherit(asid: PASIdentifiers; which: TIdC_INT): TIdC_INT; + //function X509v3_asid_add_id_or_range(asid: PASIdentifiers; which: TIdC_INT; min: PASN1_INTEGER; max: PASN1_INTEGER): TIdC_INT; + //function X509v3_addr_add_inherit(addr: PIPAddrBlocks; const afi: TIdC_UINT; const safi: PIdC_UINT): TIdC_INT; + //function X509v3_addr_add_prefix(addr: PIPAddrBlocks; const afi: TIdC_UINT; const safi: PIdC_UINT; a: PByte; const prefixlen: TIdC_INT): TIdC_INT; + //function X509v3_addr_add_range(addr: PIPAddrBlocks; const afi: TIdC_UINT; const safi: PIdC_UINT; min: PByte; max: PByte): TIdC_INT; + //function X509v3_addr_get_afi(const f: PIPAddressFamily): TIdC_UINT; + function X509v3_addr_get_range(aor: PIPAddressOrRange; const afi: TIdC_UINT; min: PByte; max: Byte; const length: TIdC_INT): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + (* + * Canonical forms. + *) + //function X509v3_asid_is_canonical(asid: PASIdentifiers): TIdC_INT; + //function X509v3_addr_is_canonical(addr: PIPAddrBlocks): TIdC_INT; + //function X509v3_asid_canonize(asid: PASIdentifiers): TIdC_INT; + //function X509v3_addr_canonize(addr: PIPAddrBlocks): TIdC_INT; + + (* + * Tests for inheritance and containment. + *) + //function X509v3_asid_inherits(asid: PASIdentifiers): TIdC_INT; + //function X509v3_addr_inherits(addr: PIPAddrBlocks): TIdC_INT; + //function X509v3_asid_subset(a: PASIdentifiers; b: PASIdentifiers): TIdC_INT; + //function X509v3_addr_subset(a: PIPAddrBlocks; b: PIPAddrBlocks): TIdC_INT; + + (* + * Check whether RFC 3779 extensions nest properly in chains. + *) + function X509v3_asid_validate_path(v1: PX509_STORE_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function X509v3_addr_validate_path(v1: PX509_STORE_CTX): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// TIdC_INT X509v3_asid_validate_resource_set(STACK_OF(X509) *chain; ASIdentifiers *ext; TIdC_INT allow_inheritance); +// TIdC_INT X509v3_addr_validate_resource_set(STACK_OF(X509) *chain; IPAddrBlocks *ext; TIdC_INT allow_inheritance); + + +// DEFINE_STACK_OF(ASN1_STRING) + + (* + * Admission Syntax + *) + function NAMING_AUTHORITY_get0_authorityId(const n: PNAMING_AUTHORITY): PASN1_OBJECT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NAMING_AUTHORITY_get0_authorityURL(const n: PNAMING_AUTHORITY): PASN1_IA5STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function NAMING_AUTHORITY_get0_authorityText(const n: PNAMING_AUTHORITY): PASN1_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure NAMING_AUTHORITY_set0_authorityId(n: PNAMING_AUTHORITY; namingAuthorityId: PASN1_OBJECT) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure NAMING_AUTHORITY_set0_authorityURL(n: PNAMING_AUTHORITY; namingAuthorityUrl: PASN1_IA5STRING) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure NAMING_AUTHORITY_set0_authorityText(n: PNAMING_AUTHORITY; namingAuthorityText: PASN1_STRING) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + function ADMISSION_SYNTAX_get0_admissionAuthority(const as_: ADMISSION_SYNTAX): PGENERAL_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ADMISSION_SYNTAX_set0_admissionAuthority(as_: ADMISSION_SYNTAX; aa: PGENERAL_NAME) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// const STACK_OF(ADMISSIONS) *ADMISSION_SYNTAX_get0_contentsOfAdmissions(const as_: ADMISSION_SYNTAX); +// void ADMISSION_SYNTAX_set0_contentsOfAdmissions(as_: ADMISSION_SYNTAX; STACK_OF(ADMISSIONS) *a); + function ADMISSIONS_get0_admissionAuthority(const a: PADMISSIONS): PGENERAL_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ADMISSIONS_set0_admissionAuthority(a: PADMISSIONS; aa: PGENERAL_NAME) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function ADMISSIONS_get0_namingAuthority(const a: PADMISSIONS): PNAMING_AUTHORITY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure ADMISSIONS_set0_namingAuthority(a: PADMISSIONS; na: PNAMING_AUTHORITY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + //function ADMISSIONS_get0_professionInfos(const a: PADMISSIONS): PPROFESSION_INFOS; + //procedure ADMISSIONS_set0_professionInfos(a: PADMISSIONS; pi: PPROFESSION_INFOS); + function PROFESSION_INFO_get0_addProfessionInfo(const pi: PPROFESSION_INFO): PASN1_OCTET_STRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure PROFESSION_INFO_set0_addProfessionInfo(pi: PPROFESSION_INFO; aos: PASN1_OCTET_STRING) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + function PROFESSION_INFO_get0_namingAuthority(const pi: PPROFESSION_INFO): PNAMING_AUTHORITY cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure PROFESSION_INFO_set0_namingAuthority(pi: PPROFESSION_INFO; na: PNAMING_AUTHORITY) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; +// const STACK_OF(ASN1_STRING) *PROFESSION_INFO_get0_professionItems(const pi: PPROFESSION_INFO); +// void PROFESSION_INFO_set0_professionItems(pi: PPROFESSION_INFO; STACK_OF(ASN1_STRING) *as); +// const STACK_OF(ASN1_OBJECT) *PROFESSION_INFO_get0_professionOIDs(const pi: PPROFESSION_INFO); +// void PROFESSION_INFO_set0_professionOIDs(pi: PPROFESSION_INFO; STACK_OF(ASN1_OBJECT) *po); + function PROFESSION_INFO_get0_registrationNumber(const pi: PPROFESSION_INFO): PASN1_PRINTABLESTRING cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + procedure PROFESSION_INFO_set0_registrationNumber(pi: PPROFESSION_INFO; rn: PASN1_PRINTABLESTRING) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF}; + + +{$ENDIF} + +implementation + + {$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {$ENDIF} + + +{$IFNDEF USE_EXTERNAL_LIBRARY} + +{$WARN NO_RETVAL OFF} +{$WARN NO_RETVAL ON} + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin + GENERAL_NAME_cmp := LoadFunction('GENERAL_NAME_cmp',AFailed); + GENERAL_NAME_print := LoadFunction('GENERAL_NAME_print',AFailed); + OTHERNAME_cmp := LoadFunction('OTHERNAME_cmp',AFailed); + GENERAL_NAME_set0_value := LoadFunction('GENERAL_NAME_set0_value',AFailed); + GENERAL_NAME_get0_value := LoadFunction('GENERAL_NAME_get0_value',AFailed); + GENERAL_NAME_set0_othername := LoadFunction('GENERAL_NAME_set0_othername',AFailed); + GENERAL_NAME_get0_otherName := LoadFunction('GENERAL_NAME_get0_otherName',AFailed); + i2a_ACCESS_DESCRIPTION := LoadFunction('i2a_ACCESS_DESCRIPTION',AFailed); + DIST_POINT_set_dpname := LoadFunction('DIST_POINT_set_dpname',AFailed); + NAME_CONSTRAINTS_check := LoadFunction('NAME_CONSTRAINTS_check',AFailed); + NAME_CONSTRAINTS_check_CN := LoadFunction('NAME_CONSTRAINTS_check_CN',AFailed); + X509V3_EXT_nconf_nid := LoadFunction('X509V3_EXT_nconf_nid',AFailed); + X509V3_EXT_nconf := LoadFunction('X509V3_EXT_nconf',AFailed); + X509V3_EXT_add_nconf := LoadFunction('X509V3_EXT_add_nconf',AFailed); + X509V3_EXT_REQ_add_nconf := LoadFunction('X509V3_EXT_REQ_add_nconf',AFailed); + X509V3_EXT_CRL_add_nconf := LoadFunction('X509V3_EXT_CRL_add_nconf',AFailed); + X509V3_EXT_conf_nid := LoadFunction('X509V3_EXT_conf_nid',AFailed); + X509V3_EXT_conf := LoadFunction('X509V3_EXT_conf',AFailed); + X509V3_EXT_add_conf := LoadFunction('X509V3_EXT_add_conf',AFailed); + X509V3_EXT_REQ_add_conf := LoadFunction('X509V3_EXT_REQ_add_conf',AFailed); + X509V3_EXT_CRL_add_conf := LoadFunction('X509V3_EXT_CRL_add_conf',AFailed); + X509V3_set_nconf := LoadFunction('X509V3_set_nconf',AFailed); + X509V3_get_string := LoadFunction('X509V3_get_string',AFailed); + X509V3_string_free := LoadFunction('X509V3_string_free',AFailed); + X509V3_set_ctx := LoadFunction('X509V3_set_ctx',AFailed); + X509V3_EXT_add_alias := LoadFunction('X509V3_EXT_add_alias',AFailed); + X509V3_EXT_cleanup := LoadFunction('X509V3_EXT_cleanup',AFailed); + X509V3_add_standard_extensions := LoadFunction('X509V3_add_standard_extensions',AFailed); + X509V3_EXT_d2i := LoadFunction('X509V3_EXT_d2i',AFailed); + X509V3_EXT_i2d := LoadFunction('X509V3_EXT_i2d',AFailed); + X509V3_EXT_print := LoadFunction('X509V3_EXT_print',AFailed); + X509_check_ca := LoadFunction('X509_check_ca',AFailed); + X509_check_purpose := LoadFunction('X509_check_purpose',AFailed); + X509_supported_extension := LoadFunction('X509_supported_extension',AFailed); + X509_PURPOSE_set := LoadFunction('X509_PURPOSE_set',AFailed); + X509_check_issued := LoadFunction('X509_check_issued',AFailed); + X509_check_akid := LoadFunction('X509_check_akid',AFailed); + X509_set_proxy_flag := LoadFunction('X509_set_proxy_flag',AFailed); + X509_set_proxy_pathlen := LoadFunction('X509_set_proxy_pathlen',AFailed); + X509_get_proxy_pathlen := LoadFunction('X509_get_proxy_pathlen',AFailed); + X509_get_extension_flags := LoadFunction('X509_get_extension_flags',AFailed); + X509_get_key_usage := LoadFunction('X509_get_key_usage',AFailed); + X509_get_extended_key_usage := LoadFunction('X509_get_extended_key_usage',AFailed); + X509_get0_subject_key_id := LoadFunction('X509_get0_subject_key_id',AFailed); + X509_get0_authority_key_id := LoadFunction('X509_get0_authority_key_id',AFailed); + X509_get0_authority_serial := LoadFunction('X509_get0_authority_serial',AFailed); + X509_PURPOSE_get_count := LoadFunction('X509_PURPOSE_get_count',AFailed); + X509_PURPOSE_get0 := LoadFunction('X509_PURPOSE_get0',AFailed); + X509_PURPOSE_get_by_sname := LoadFunction('X509_PURPOSE_get_by_sname',AFailed); + X509_PURPOSE_get_by_id := LoadFunction('X509_PURPOSE_get_by_id',AFailed); + X509_PURPOSE_get0_name := LoadFunction('X509_PURPOSE_get0_name',AFailed); + X509_PURPOSE_get0_sname := LoadFunction('X509_PURPOSE_get0_sname',AFailed); + X509_PURPOSE_get_trust := LoadFunction('X509_PURPOSE_get_trust',AFailed); + X509_PURPOSE_cleanup := LoadFunction('X509_PURPOSE_cleanup',AFailed); + X509_PURPOSE_get_id := LoadFunction('X509_PURPOSE_get_id',AFailed); + X509_check_host := LoadFunction('X509_check_host',AFailed); + X509_check_email := LoadFunction('X509_check_email',AFailed); + X509_check_ip := LoadFunction('X509_check_ip',AFailed); + X509_check_ip_asc := LoadFunction('X509_check_ip_asc',AFailed); + a2i_IPADDRESS := LoadFunction('a2i_IPADDRESS',AFailed); + a2i_IPADDRESS_NC := LoadFunction('a2i_IPADDRESS_NC',AFailed); + X509_POLICY_NODE_print := LoadFunction('X509_POLICY_NODE_print',AFailed); + X509v3_addr_get_range := LoadFunction('X509v3_addr_get_range',AFailed); + X509v3_asid_validate_path := LoadFunction('X509v3_asid_validate_path',AFailed); + X509v3_addr_validate_path := LoadFunction('X509v3_addr_validate_path',AFailed); + NAMING_AUTHORITY_get0_authorityId := LoadFunction('NAMING_AUTHORITY_get0_authorityId',AFailed); + NAMING_AUTHORITY_get0_authorityURL := LoadFunction('NAMING_AUTHORITY_get0_authorityURL',AFailed); + NAMING_AUTHORITY_get0_authorityText := LoadFunction('NAMING_AUTHORITY_get0_authorityText',AFailed); + NAMING_AUTHORITY_set0_authorityId := LoadFunction('NAMING_AUTHORITY_set0_authorityId',AFailed); + NAMING_AUTHORITY_set0_authorityURL := LoadFunction('NAMING_AUTHORITY_set0_authorityURL',AFailed); + NAMING_AUTHORITY_set0_authorityText := LoadFunction('NAMING_AUTHORITY_set0_authorityText',AFailed); + ADMISSION_SYNTAX_get0_admissionAuthority := LoadFunction('ADMISSION_SYNTAX_get0_admissionAuthority',AFailed); + ADMISSION_SYNTAX_set0_admissionAuthority := LoadFunction('ADMISSION_SYNTAX_set0_admissionAuthority',AFailed); + ADMISSIONS_get0_admissionAuthority := LoadFunction('ADMISSIONS_get0_admissionAuthority',AFailed); + ADMISSIONS_set0_admissionAuthority := LoadFunction('ADMISSIONS_set0_admissionAuthority',AFailed); + ADMISSIONS_get0_namingAuthority := LoadFunction('ADMISSIONS_get0_namingAuthority',AFailed); + ADMISSIONS_set0_namingAuthority := LoadFunction('ADMISSIONS_set0_namingAuthority',AFailed); + PROFESSION_INFO_get0_addProfessionInfo := LoadFunction('PROFESSION_INFO_get0_addProfessionInfo',AFailed); + PROFESSION_INFO_set0_addProfessionInfo := LoadFunction('PROFESSION_INFO_set0_addProfessionInfo',AFailed); + PROFESSION_INFO_get0_namingAuthority := LoadFunction('PROFESSION_INFO_get0_namingAuthority',AFailed); + PROFESSION_INFO_set0_namingAuthority := LoadFunction('PROFESSION_INFO_set0_namingAuthority',AFailed); + PROFESSION_INFO_get0_registrationNumber := LoadFunction('PROFESSION_INFO_get0_registrationNumber',AFailed); + PROFESSION_INFO_set0_registrationNumber := LoadFunction('PROFESSION_INFO_set0_registrationNumber',AFailed); +end; + +procedure Unload; +begin + GENERAL_NAME_cmp := nil; + GENERAL_NAME_print := nil; + OTHERNAME_cmp := nil; + GENERAL_NAME_set0_value := nil; + GENERAL_NAME_get0_value := nil; + GENERAL_NAME_set0_othername := nil; + GENERAL_NAME_get0_otherName := nil; + i2a_ACCESS_DESCRIPTION := nil; + DIST_POINT_set_dpname := nil; + NAME_CONSTRAINTS_check := nil; + NAME_CONSTRAINTS_check_CN := nil; + X509V3_EXT_nconf_nid := nil; + X509V3_EXT_nconf := nil; + X509V3_EXT_add_nconf := nil; + X509V3_EXT_REQ_add_nconf := nil; + X509V3_EXT_CRL_add_nconf := nil; + X509V3_EXT_conf_nid := nil; + X509V3_EXT_conf := nil; + X509V3_EXT_add_conf := nil; + X509V3_EXT_REQ_add_conf := nil; + X509V3_EXT_CRL_add_conf := nil; + X509V3_set_nconf := nil; + X509V3_get_string := nil; + X509V3_string_free := nil; + X509V3_set_ctx := nil; + X509V3_EXT_add_alias := nil; + X509V3_EXT_cleanup := nil; + X509V3_add_standard_extensions := nil; + X509V3_EXT_d2i := nil; + X509V3_EXT_i2d := nil; + X509V3_EXT_print := nil; + X509_check_ca := nil; + X509_check_purpose := nil; + X509_supported_extension := nil; + X509_PURPOSE_set := nil; + X509_check_issued := nil; + X509_check_akid := nil; + X509_set_proxy_flag := nil; + X509_set_proxy_pathlen := nil; + X509_get_proxy_pathlen := nil; + X509_get_extension_flags := nil; + X509_get_key_usage := nil; + X509_get_extended_key_usage := nil; + X509_get0_subject_key_id := nil; + X509_get0_authority_key_id := nil; + X509_get0_authority_serial := nil; + X509_PURPOSE_get_count := nil; + X509_PURPOSE_get0 := nil; + X509_PURPOSE_get_by_sname := nil; + X509_PURPOSE_get_by_id := nil; + X509_PURPOSE_get0_name := nil; + X509_PURPOSE_get0_sname := nil; + X509_PURPOSE_get_trust := nil; + X509_PURPOSE_cleanup := nil; + X509_PURPOSE_get_id := nil; + X509_check_host := nil; + X509_check_email := nil; + X509_check_ip := nil; + X509_check_ip_asc := nil; + a2i_IPADDRESS := nil; + a2i_IPADDRESS_NC := nil; + X509_POLICY_NODE_print := nil; + X509v3_addr_get_range := nil; + X509v3_asid_validate_path := nil; + X509v3_addr_validate_path := nil; + NAMING_AUTHORITY_get0_authorityId := nil; + NAMING_AUTHORITY_get0_authorityURL := nil; + NAMING_AUTHORITY_get0_authorityText := nil; + NAMING_AUTHORITY_set0_authorityId := nil; + NAMING_AUTHORITY_set0_authorityURL := nil; + NAMING_AUTHORITY_set0_authorityText := nil; + ADMISSION_SYNTAX_get0_admissionAuthority := nil; + ADMISSION_SYNTAX_set0_admissionAuthority := nil; + ADMISSIONS_get0_admissionAuthority := nil; + ADMISSIONS_set0_admissionAuthority := nil; + ADMISSIONS_get0_namingAuthority := nil; + ADMISSIONS_set0_namingAuthority := nil; + PROFESSION_INFO_get0_addProfessionInfo := nil; + PROFESSION_INFO_set0_addProfessionInfo := nil; + PROFESSION_INFO_get0_namingAuthority := nil; + PROFESSION_INFO_set0_namingAuthority := nil; + PROFESSION_INFO_get0_registrationNumber := nil; + PROFESSION_INFO_set0_registrationNumber := nil; +end; +{$ELSE} +{$ENDIF} + +{$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'LibCrypto'); + Register_SSLUnloader(@Unload); +{$ENDIF} +end. From 326ef020b307dcea0a09fdc62b608584d1d3158a Mon Sep 17 00:00:00 2001 From: tony062017 Date: Tue, 19 Mar 2024 08:47:23 +0000 Subject: [PATCH 02/30] merge --- Lib/Protocols/IdSSLOpenSSLDefines.inc | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Lib/Protocols/IdSSLOpenSSLDefines.inc diff --git a/Lib/Protocols/IdSSLOpenSSLDefines.inc b/Lib/Protocols/IdSSLOpenSSLDefines.inc new file mode 100644 index 000000000..ca71e1979 --- /dev/null +++ b/Lib/Protocols/IdSSLOpenSSLDefines.inc @@ -0,0 +1,40 @@ +{ Three ways to link to the OpenSSL library are supported: + + 1. Dynamic linking at run time using calls to LoadLibrary and GetProcAddress. + This is the default and allows Indy to find the OpenSSL libraries and adjust + itself to suit the version found. Versions 1.0.2 to 3.x and current supported. + + 2. Statically linked to a shared library (.dll or .so). When your program is loaded + the loader searches for the shared library and links it to your program. Indy + can only support the 3.x OpenSSL libraries in this mode. + + 3. Statically linked to a static library at link time. Your program executable + includes the OpenSSL libraries which then do not have to be separately + installed on the target system. Supported only for the 3.x OpenSSL Libraries + and for the Free Pascal Compiler (FPC). Delphi does not support this link option. + + Link Option 2 is selected if your program or the IndyOpenSSL package is compiled with + the OPENSSL_USE_SHARED_LIBRARY defined symbol. It is also selected if + IdCompilierDefines.inc sets the STATICLOAD_OPENSSL defined symbol (e.g. for IOS). + + Link Option 3 is selected if your program or the IndyOpenSSL package is compiled with + the OPENSSL_USE_STATIC_LIBRARY defined symbol. + + } +{$IFDEF STATICLOAD_OPENSSL} +{$DEFINE USE_EXTERNAL_LIBRARY} +{$UNDEF OPENSSL_USE_STATIC_LIBRARY} +{$ENDIF} +{$IFDEF OPENSSL_USE_SHARED_LIBRARY} +{$DEFINE USE_EXTERNAL_LIBRARY} +{$ENDIF} +{$IFDEF OPENSSL_USE_STATIC_LIBRARY} +{$IFNDEF FPC} +($message Error:OPENSSL_USE_STATIC_LIBRARY may only be used when compiling with the Free Pascal Compiler} +{$ELSE} +{$DEFINE USE_EXTERNAL_LIBRARY} +{$LINKLIB ssl.a} +{$LINKLIB crypto.a} +{$ENDIF} +{$ENDIF} + From cd8add8492e5fefcc5a0d45e4cb3b357a4f5fc5c Mon Sep 17 00:00:00 2001 From: tony062017 Date: Tue, 19 Mar 2024 08:49:11 +0000 Subject: [PATCH 03/30] OpenSSL HDr Gen --- Lib/Core/IdIOHandler.pas | 5344 ++++++++--------- Lib/Core/indycorefpc.pas | 142 +- Lib/System/indysystemfpc.pas | 50 +- .../README.OpensslHeadergeneration.txt | 85 + OpenSSLHdr_gen/genOpenSSLHdrs.sh | 306 + .../IdOpenSSLHeaders_aes.h2pas | 80 + .../IdOpenSSLHeaders_asn1.h2pas | 793 +++ .../IdOpenSSLHeaders_asn1_mac.h2pas | 35 + .../IdOpenSSLHeaders_asn1err.h2pas | 270 + .../IdOpenSSLHeaders_asn1t.h2pas | 984 +++ .../IdOpenSSLHeaders_async.h2pas | 81 + .../IdOpenSSLHeaders_asyncerr.h2pas | 59 + .../IdOpenSSLHeaders_bio.h2pas | 822 +++ .../IdOpenSSLHeaders_bioerr.h2pas | 141 + .../IdOpenSSLHeaders_blowfish.h2pas | 69 + .../IdOpenSSLHeaders_bn.h2pas | 422 ++ .../IdOpenSSLHeaders_bnerr.h2pas | 117 + .../IdOpenSSLHeaders_buffer.h2pas | 56 + .../IdOpenSSLHeaders_buffererr.h2pas | 47 + .../IdOpenSSLHeaders_camellia.h2pas | 80 + .../IdOpenSSLHeaders_cast.h2pas | 63 + .../IdOpenSSLHeaders_cmac.h2pas | 55 + .../IdOpenSSLHeaders_cms.h2pas | 285 + .../IdOpenSSLHeaders_cmserr.h2pas | 214 + .../IdOpenSSLHeaders_comp.h2pas | 53 + .../IdOpenSSLHeaders_comperr.h2pas | 56 + .../IdOpenSSLHeaders_conf.h2pas | 177 + .../IdOpenSSLHeaders_conf_api.h2pas | 54 + .../IdOpenSSLHeaders_conferr.h2pas | 93 + .../IdOpenSSLHeaders_crypto.h2pas | 504 ++ .../IdOpenSSLHeaders_cryptoerr.h2pas | 74 + .../IdOpenSSLHeaders_cterr.h2pas | 93 + .../IdOpenSSLHeaders_des.h2pas | 223 + .../IdOpenSSLHeaders_dh.h2pas | 294 + .../IdOpenSSLHeaders_dherr.h2pas | 96 + .../IdOpenSSLHeaders_dsa.h2pas | 191 + .../IdOpenSSLHeaders_dsaerr.h2pas | 84 + .../IdOpenSSLHeaders_ebcdic.h2pas | 44 + .../IdOpenSSLHeaders_ec.h2pas | 340 ++ .../IdOpenSSLHeaders_ecerr.h2pas | 287 + .../IdOpenSSLHeaders_engine.h2pas | 706 +++ .../IdOpenSSLHeaders_engineerr.h2pas | 123 + .../IdOpenSSLHeaders_err.h2pas | 275 + .../IdOpenSSLHeaders_evp.h2pas | 1339 +++++ .../IdOpenSSLHeaders_evperr.h2pas | 221 + .../IdOpenSSLHeaders_hmac.h2pas | 52 + .../IdOpenSSLHeaders_idea.h2pas | 64 + .../IdOpenSSLHeaders_kdferr.h2pas | 72 + .../IdOpenSSLHeaders_obj_mac.h2pas | 4093 +++++++++++++ .../IdOpenSSLHeaders_objects.h2pas | 174 + .../IdOpenSSLHeaders_objectserr.h2pas | 59 + .../IdOpenSSLHeaders_ocsperr.h2pas | 90 + .../IdOpenSSLHeaders_ossl_typ.h2pas | 536 ++ .../IdOpenSSLHeaders_pem.h2pas | 231 + .../IdOpenSSLHeaders_pemerr.h2pas | 115 + .../IdOpenSSLHeaders_pkcs12.h2pas | 191 + .../IdOpenSSLHeaders_pkcs7.h2pas | 340 ++ .../IdOpenSSLHeaders_pkcs7err.h2pas | 120 + .../IdOpenSSLHeaders_rand.h2pas | 78 + .../IdOpenSSLHeaders_randerr.h2pas | 111 + .../IdOpenSSLHeaders_rsa.h2pas | 430 ++ .../IdOpenSSLHeaders_rsaerr.h2pas | 184 + .../IdOpenSSLHeaders_sha.h2pas | 119 + .../IdOpenSSLHeaders_srtp.h2pas | 57 + .../IdOpenSSLHeaders_ssl.h2pas | 3058 ++++++++++ .../IdOpenSSLHeaders_ssl3.h2pas | 323 + .../IdOpenSSLHeaders_sslerr.h2pas | 785 +++ .../IdOpenSSLHeaders_stack.h2pas | 229 + .../IdOpenSSLHeaders_storeerr.h2pas | 109 + .../IdOpenSSLHeaders_tls1.h2pas | 1195 ++++ .../IdOpenSSLHeaders_ts.h2pas | 552 ++ .../IdOpenSSLHeaders_tserr.h2pas | 144 + .../IdOpenSSLHeaders_txt_db.h2pas | 75 + .../IdOpenSSLHeaders_ui.h2pas | 371 ++ .../IdOpenSSLHeaders_uierr.h2pas | 82 + .../IdOpenSSLHeaders_whrlpool.h2pas | 63 + .../IdOpenSSLHeaders_x509.h2pas | 1272 ++++ .../IdOpenSSLHeaders_x509_vfy.h2pas | 641 ++ .../IdOpenSSLHeaders_x509err.h2pas | 147 + .../IdOpenSSLHeaders_x509v3.h2pas | 920 +++ OpenSSLHdr_gen/sslheaders_source/tmp.hspas | 4 + fpc/runtime/core/Makefile.fpc | 21 + fpc/runtime/protocols/Makefile.fpc | 21 + fpc/runtime/system/Makefile.fpc | 21 + 84 files changed, 30308 insertions(+), 2768 deletions(-) create mode 100644 OpenSSLHdr_gen/README.OpensslHeadergeneration.txt create mode 100644 OpenSSLHdr_gen/genOpenSSLHdrs.sh create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_aes.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1_mac.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1err.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1t.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_async.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asyncerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bio.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bioerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_blowfish.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bn.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bnerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_buffer.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_buffererr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_camellia.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cast.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cmac.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cms.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cmserr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_comp.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_comperr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conf.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conf_api.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conferr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_crypto.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cryptoerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cterr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_des.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dh.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dherr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dsa.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dsaerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ebcdic.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ec.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ecerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_engine.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_engineerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_err.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_evp.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_evperr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_hmac.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_idea.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_kdferr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_obj_mac.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_objects.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_objectserr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ocsperr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ossl_typ.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pem.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pemerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs12.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs7.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs7err.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rand.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_randerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rsa.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rsaerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_sha.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_srtp.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ssl.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ssl3.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_sslerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_stack.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_storeerr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_tls1.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ts.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_tserr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_txt_db.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ui.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_uierr.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_whrlpool.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509_vfy.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509err.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509v3.h2pas create mode 100644 OpenSSLHdr_gen/sslheaders_source/tmp.hspas create mode 100644 fpc/runtime/core/Makefile.fpc create mode 100644 fpc/runtime/protocols/Makefile.fpc create mode 100644 fpc/runtime/system/Makefile.fpc diff --git a/Lib/Core/IdIOHandler.pas b/Lib/Core/IdIOHandler.pas index 37cc59114..8f4a7f9fe 100644 --- a/Lib/Core/IdIOHandler.pas +++ b/Lib/Core/IdIOHandler.pas @@ -1,2672 +1,2672 @@ -{ - $Project$ - $Workfile$ - $Revision$ - $DateUTC$ - $Id$ - - This file is part of the Indy (Internet Direct) project, and is offered - under the dual-licensing agreement described on the Indy website. - (http://www.indyproject.org/) - - Copyright: - (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserved. -} -{ - $Log$ -} - -{ - Rev 1.123 2/8/05 5:27:06 PM RLebeau - Bug fix for ReadLn(). - - Added try..finally block to ReadLnSplit(). - - Rev 1.122 1/27/05 3:09:30 PM RLebeau - Updated AllData() to call ReadFromSource() directly instead of using - CheckForDataOnSource(), since ReadFromSource() can return a disconnect - conditon. When data is in the InputBuffer, Connected() always return True - even if the socket is actually disconnected. - - Rev 1.121 12/21/04 3:21:40 AM RLebeau - Removed compiler warning - - Rev 1.120 17/12/2004 17:11:28 ANeillans - Compiler fix - - Rev 1.119 12/12/04 2:23:52 PM RLebeau - Added WriteRFCStrings() method - - Rev 1.118 12/11/2004 9:04:50 PM DSiders - Fixed comparison error in WaitFor. - - Rev 1.117 12/10/04 2:00:24 PM RLebeau - Updated WaitFor() to not return more data than actually needed. - - Updated AllData() to not concatenate the Result on every iteration of the - loop. - - Rev 1.116 11/29/04 10:37:18 AM RLebeau - Updated write buffering methods to prevent Access Violations when used - incorrectly. - - Rev 1.115 11/4/04 12:41:08 PM RLebeau - Bug fix for ReadLn() - - Rev 1.114 10/26/2004 8:43:00 PM JPMugaas - Should be more portable with new references to TIdStrings and TIdStringList. - - Rev 1.113 27.08.2004 21:58:18 Andreas Hausladen - Speed optimization ("const" for string parameters) - - Rev 1.112 8/2/04 5:49:20 PM RLebeau - Moved ConnectTimeout over from TIdIOHandlerSocket - - Rev 1.111 2004.08.01 19:36:14 czhower - Code optimization to WriteFile - - Rev 1.110 7/24/04 12:53:54 PM RLebeau - Compiler fix for WriteFile() - - Rev 1.109 7/23/04 6:39:14 PM RLebeau - Added extra exception handling to WriteFile() - - Rev 1.108 7/21/2004 5:45:10 PM JPMugaas - Updated with Remy's change. This should work better and fix a problem with - looping with ReadStream and ReadUntilDisconnect. - - Rev 1.107 7/21/2004 12:22:18 PM BGooijen - Reverted back 2 versions - - Rev 1.104 6/29/04 12:16:16 PM RLebeau - Updated ReadChar() to call ReadBytes() directly instead of ReadString() - - Rev 1.103 6/17/04 3:01:56 PM RLebeau - Changed ReadStream() to not extract too many bytes from the InputBuffer when - an error occurs - - Rev 1.102 6/12/04 11:36:44 AM RLebeau - Changed ReadString() to pass the ABytes parameter to ReadBytes() instead of - the LBuf length - - Rev 1.100 6/10/2004 6:52:12 PM JPMugaas - Regeneration to fix a bug in the package generator that I created. OOPS!!! - - Rev 1.99 6/9/04 7:36:26 PM RLebeau - ReadString() bug fix - - Rev 1.98 07/06/2004 20:55:36 CCostelloe - Fix for possible memory leak. - - Rev 1.97 5/29/04 10:46:24 PM RLebeau - Updated AllData() to only append values to the result when there is actual - data in the buffer. - - Rev 1.96 29/05/2004 21:07:40 CCostelloe - Bug fix (may need more investigation) - - Rev 1.95 2004.05.20 1:39:54 PM czhower - Last of the IdStream updates - - Rev 1.94 2004.05.20 12:34:22 PM czhower - Removed more non .NET compatible stream read and writes - - Rev 1.93 2004.05.20 11:39:02 AM czhower - IdStreamVCL - - Rev 1.92 5/3/2004 12:57:00 PM BGooijen - Fixes for 0-based - - Rev 1.91 2004.05.03 11:15:44 AM czhower - Changed Find to IndexOf and made 0 based to be consistent. - - Rev 1.90 4/24/04 12:40:04 PM RLebeau - Added Write() overload for Char type. - - Rev 1.89 4/18/2004 11:58:00 PM BGooijen - ReadBytes with count=-1 reads everything available, ( and waits ReadTimeOut - time for data) - - Rev 1.88 4/18/04 2:44:24 PM RLebeau - Read/write support for Int64 values - - Rev 1.87 2004.04.18 12:51:58 AM czhower - Big bug fix with server disconnect and several other bug fixed that I found - along the way. - - Rev 1.86 2004.04.16 11:30:28 PM czhower - Size fix to IdBuffer, optimizations, and memory leaks - - Rev 1.85 2004.04.08 7:06:46 PM czhower - Peek support. - - Rev 1.84 2004.04.08 3:56:28 PM czhower - Fixed bug with Intercept byte count. Also removed Bytes from Buffer. - - Rev 1.83 2004.04.08 2:08:00 AM czhower - Saved before checkin this time... - - Rev 1.82 7/4/2004 4:08:46 PM SGrobety - Re-introduce the IOHandler.MaxCapturedLines property - - Rev 1.81 2004.04.07 3:59:46 PM czhower - Bug fix for WriteDirect. - - Rev 1.79 2004.03.07 11:48:38 AM czhower - Flushbuffer fix + other minor ones found - - Rev 1.78 2004.03.03 11:54:58 AM czhower - IdStream change - - Rev 1.77 2004.03.02 2:47:08 PM czhower - .Net overloads - - Rev 1.76 2004.03.01 5:12:28 PM czhower - -Bug fix for shutdown of servers when connections still existed (AV) - -Implicit HELP support in CMDserver - -Several command handler bugs - -Additional command handler functionality. - - Rev 1.75 2004.02.03 4:16:44 PM czhower - For unit name changes. - - Rev 1.74 2004.01.21 9:36:00 PM czhower - .Net overload - - Rev 1.73 2004.01.21 12:19:58 AM czhower - .Readln overload for .net - - Rev 1.72 2004.01.20 10:03:26 PM czhower - InitComponent - - Rev 1.71 1/11/2004 5:51:04 PM BGooijen - Added AApend parameter to ReadBytes - - Rev 1.70 12/30/2003 7:17:56 PM BGooijen - .net - - Rev 1.69 2003.12.28 1:05:54 PM czhower - .Net changes. - - Rev 1.68 2003.12.28 11:53:28 AM czhower - Removed warning in .net. - - Rev 1.67 2003.11.29 10:15:30 AM czhower - InternalBuffer --> InputBuffer for consistency. - - Rev 1.66 11/23/03 1:46:28 PM RLebeau - Removed "var" specifier from TStrings parameter of ReadStrings(). - - Rev 1.65 11/4/2003 10:27:56 PM DSiders - Removed exceptions moved to IdException.pas. - - Rev 1.64 2003.10.24 10:44:52 AM czhower - IdStream implementation, bug fixes. - - Rev 1.63 10/22/03 2:05:40 PM RLebeau - Fix for TIdIOHandler::Write(TStream) where it was not reading the stream into - the TIdBytes correctly. - - Rev 1.62 10/19/2003 5:55:44 PM BGooijen - Fixed todo in PerformCapture - - Rev 1.61 2003.10.18 12:58:50 PM czhower - Added comment - - Rev 1.60 2003.10.18 12:42:04 PM czhower - Intercept.Disconnect is now called - - Rev 1.59 10/15/2003 7:39:28 PM DSiders - Added a formatted resource string for the exception raised in - TIdIOHandler.MakeIOHandler. - - Rev 1.58 2003.10.14 1:26:50 PM czhower - Uupdates + Intercept support - - Rev 1.57 2003.10.11 5:48:22 PM czhower - -VCL fixes for servers - -Chain suport for servers (Super core) - -Scheduler upgrades - -Full yarn support - - Rev 1.56 9/10/2003 1:50:38 PM SGrobety - Removed all "const" keywords from boolean parameter interfaces. Might trigger - changes in other units. - - Rev 1.55 10/5/2003 10:39:56 PM BGooijen - Write buffering - - Rev 1.54 10/4/2003 11:03:12 PM BGooijen - ReadStream, and functions with network ordering - - Rev 1.53 10/4/2003 7:10:46 PM BGooijen - ReadXXXXX - - Rev 1.52 10/4/2003 3:55:02 PM BGooijen - ReadString, and some Write functions - - Rev 1.51 04/10/2003 13:38:32 HHariri - Write(Integer) support - - Rev 1.50 10/3/2003 12:09:30 AM BGooijen - DotNet - - Rev 1.49 2003.10.02 8:29:14 PM czhower - Changed names of byte conversion routines to be more readily understood and - not to conflict with already in use ones. - - Rev 1.48 2003.10.02 1:18:50 PM czhower - Changed read methods to be overloaded and more consistent. Will break some - code, but nearly all code that uses them is Input. - - Rev 1.47 2003.10.02 10:16:26 AM czhower - .Net - - Rev 1.46 2003.10.01 9:11:16 PM czhower - .Net - - Rev 1.45 2003.10.01 2:46:36 PM czhower - .Net - - Rev 1.42 2003.10.01 11:16:32 AM czhower - .Net - - Rev 1.41 2003.10.01 1:37:34 AM czhower - .Net - - Rev 1.40 2003.10.01 1:12:34 AM czhower - .Net - - Rev 1.39 2003.09.30 1:22:56 PM czhower - Stack split for DotNet - - Rev 1.38 2003.09.18 5:17:58 PM czhower - Implemented OnWork - - Rev 1.37 2003.08.21 10:43:42 PM czhower - Fix to ReadStream from Doychin - - Rev 1.36 08/08/2003 17:32:26 CCostelloe - Removed "virtual" from function ReadLnSplit - - Rev 1.35 07/08/2003 00:25:08 CCostelloe - Function ReadLnSplit added - - Rev 1.34 2003.07.17 1:05:12 PM czhower - More IOCP improvements. - - Rev 1.33 2003.07.14 11:00:50 PM czhower - More IOCP fixes. - - Rev 1.32 2003.07.14 12:54:30 AM czhower - Fixed graceful close detection if it occurs after connect. - - Rev 1.31 2003.07.10 7:40:24 PM czhower - Comments - - Rev 1.30 2003.07.10 4:34:56 PM czhower - Fixed AV, added some new comments - - Rev 1.29 7/1/2003 5:50:44 PM BGooijen - Fixed ReadStream - - Rev 1.28 6/30/2003 10:26:08 AM BGooijen - forgot to remove some code regarding to TIdBuffer.Find - - Rev 1.27 6/29/2003 10:56:26 PM BGooijen - Removed .Memory from the buffer, and added some extra methods - - Rev 1.26 2003.06.25 4:30:00 PM czhower - Temp hack fix for AV problem. Working on real solution now. - - Rev 1.25 23/6/2003 22:33:14 GGrieve - fix CheckForDataOnSource - specify timeout - - Rev 1.24 23/6/2003 06:46:52 GGrieve - allow block on checkForData - - Rev 1.23 6/4/2003 1:07:08 AM BGooijen - changed comment - - Rev 1.22 6/3/2003 10:40:34 PM BGooijen - FRecvBuffer bug fixed, it was freed, but never recreated, resulting in an AV - - Rev 1.21 2003.06.03 6:28:04 PM czhower - Made check for data virtual - - Rev 1.20 2003.06.03 3:43:24 PM czhower - Resolved InputBuffer inconsistency. Added new method and renamed old one. - - Rev 1.19 5/25/2003 03:56:04 AM JPMugaas - Updated for unit rename. - - Rev 1.18 2003.04.17 11:01:12 PM czhower - - Rev 1.17 4/16/2003 3:29:30 PM BGooijen - minor change in ReadBuffer - - Rev 1.16 4/1/2003 7:54:24 PM BGooijen - ReadLn default terminator changed to LF - - Rev 1.15 3/27/2003 3:24:06 PM BGooijen - MaxLine* is now published - - Rev 1.14 2003.03.25 7:42:12 PM czhower - try finally to WriteStrings - - Rev 1.13 3/24/2003 11:01:36 PM BGooijen - WriteStrings is now buffered to increase speed - - Rev 1.12 3/19/2003 1:02:32 PM BGooijen - changed class function ConstructDefaultIOHandler a little (default parameter) - - Rev 1.11 3/13/2003 10:18:16 AM BGooijen - Server side fibers, bug fixes - - Rev 1.10 3/5/2003 11:03:06 PM BGooijen - Added Intercept here - - Rev 1.9 2/25/2003 11:02:12 PM BGooijen - InputBufferToStream now accepts a bytecount - - Rev 1.8 2003.02.25 1:36:00 AM czhower - - Rev 1.7 12-28-2002 22:28:16 BGooijen - removed warning, added initialization and finalization part. - - Rev 1.6 12-16-2002 20:43:28 BGooijen - Added class function ConstructIOHandler(....), and removed some comments - - Rev 1.5 12-15-2002 23:02:38 BGooijen - added SendBufferSize - - Rev 1.4 12-15-2002 20:50:32 BGooijen - FSendBufferSize was not initialized - - Rev 1.3 12-14-2002 22:14:54 BGooijen - improved method to detect timeouts in ReadLn. - - Rev 1.2 12/11/2002 04:09:28 AM JPMugaas - Updated for new API. - - Rev 1.1 2002.12.07 12:25:56 AM czhower - - Rev 1.0 11/13/2002 08:44:50 AM JPMugaas -} - -unit IdIOHandler; - -interface - -{$I IdCompilerDefines.inc} - -uses - Classes, - IdException, - IdAntiFreezeBase, IdBuffer, IdBaseComponent, IdComponent, IdGlobal, IdExceptionCore, - IdIntercept, IdResourceStringsCore, IdStream; - -(*$HPPEMIT '#if defined(_VCL_ALIAS_RECORDS)' *) -(*$HPPEMIT '#if !defined(UNICODE)' *) -(*$HPPEMIT '#pragma alias "@Idiohandler@TIdIOHandler@SetPortA$qqri"="@Idiohandler@TIdIOHandler@SetPort$qqri"' *) -(*$HPPEMIT '#else' *) -(*$HPPEMIT '#pragma alias "@Idiohandler@TIdIOHandler@SetPortW$qqri"="@Idiohandler@TIdIOHandler@SetPort$qqri"' *) -(*$HPPEMIT '#endif' *) -(*$HPPEMIT '#endif' *) - -const - GRecvBufferSizeDefault = 32 * 1024; - GSendBufferSizeDefault = 32 * 1024; - IdMaxLineLengthDefault = 16 * 1024; - // S.G. 6/4/2004: Maximum number of lines captured - // S.G. 6/4/2004: Default to "unlimited" - Id_IOHandler_MaxCapturedLines = -1; - -type - - EIdIOHandler = class(EIdException); - EIdIOHandlerRequiresLargeStream = class(EIdIOHandler); - EIdIOHandlerStreamDataTooLarge = class(EIdIOHandler); - - TIdIOHandlerClass = class of TIdIOHandler; - - { - How does this fit in in the hierarchy against TIdIOHandlerSocket - Destination - Socket - otehr file descendats it - - TIdIOHandler should only implement an interface. No default functionality - except very simple read/write functions such as ReadUInt32, etc. Functions - that cannot really be optimized beyond their default implementations. - - Some default implementations offer basic non optmized implementations. - - Yes, I know this comment conflicts. Its being worked on. - } - TIdIOHandler = class(TIdComponent) - private - FLargeStream: Boolean; - procedure EnsureInputBytes(AByteCount: Integer); - protected - FClosedGracefully: Boolean; - FConnectTimeout: Integer; - FDestination: string; - FHost: string; - // IOHandlers typically receive more data than they need to complete each - // request. They store this extra data in InputBuffer for future methods to - // use. InputBuffer is what collects the input and keeps it if the current - // method does not need all of it. - // - FInputBuffer: TIdBuffer; - {$IFDEF USE_OBJECT_ARC}[Weak]{$ENDIF} FIntercept: TIdConnectionIntercept; - FMaxCapturedLines: Integer; - FMaxLineAction: TIdMaxLineAction; - FMaxLineLength: Integer; - FOpened: Boolean; - FPort: Integer; - FReadLnSplit: Boolean; - FReadLnTimedOut: Boolean; - FReadTimeOut: Integer; -//TODO: - FRecvBufferSize: Integer; - FSendBufferSize: Integer; - - FWriteBuffer: TIdBuffer; - FWriteBufferThreshold: Integer; - FDefStringEncoding : IIdTextEncoding; - {$IFDEF STRING_IS_ANSI} - FDefAnsiEncoding : IIdTextEncoding; - {$ENDIF} - procedure SetDefStringEncoding(const AEncoding : IIdTextEncoding); - {$IFDEF STRING_IS_ANSI} - procedure SetDefAnsiEncoding(const AEncoding: IIdTextEncoding); - {$ENDIF} - // - procedure BufferRemoveNotify(ASender: TObject; ABytes: Integer); - function GetDestination: string; virtual; - procedure InitComponent; override; - procedure InterceptReceive(var VBuffer: TIdBytes); - {$IFNDEF USE_OBJECT_ARC} - procedure Notification(AComponent: TComponent; Operation: TOperation); override; - {$ENDIF} - procedure PerformCapture(const ADest: TObject; out VLineCount: Integer; - const ADelim: string; AUsesDotTransparency: Boolean; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); virtual; - procedure RaiseConnClosedGracefully; - procedure SetDestination(const AValue: string); virtual; - procedure SetHost(const AValue: string); virtual; - procedure SetPort(AValue: Integer); virtual; - procedure SetIntercept(AValue: TIdConnectionIntercept); virtual; - // This is the main Read function which all other default implementations - // use. - function ReadFromSource(ARaiseExceptionIfDisconnected: Boolean = True; - ATimeout: Integer = IdTimeoutDefault; - ARaiseExceptionOnTimeout: Boolean = True): Integer; - function ReadDataFromSource(var VBuffer: TIdBytes): Integer; virtual; abstract; - function WriteDataToTarget(const ABuffer: TIdBytes; const AOffset, ALength: Integer): Integer; virtual; abstract; - function SourceIsAvailable: Boolean; virtual; abstract; - function CheckForError(ALastResult: Integer): Integer; virtual; abstract; - procedure RaiseError(AError: Integer); virtual; abstract; - public - {$IFDEF WORKAROUND_INLINE_CONSTRUCTORS} - constructor Create(AOwner: TComponent); reintroduce; overload; - {$ENDIF} - procedure AfterAccept; virtual; - function Connected: Boolean; virtual; - destructor Destroy; override; - // CheckForDisconnect allows the implementation to check the status of the - // connection at the request of the user or this base class. - procedure CheckForDisconnect(ARaiseExceptionIfDisconnected: Boolean = True; - AIgnoreBuffer: Boolean = False); virtual; abstract; - // Does not wait or raise any exceptions. Just reads whatever data is - // available (if any) into the buffer. Must NOT raise closure exceptions. - // It is used to get avialable data, and check connection status. That is - // it can set status flags about the connection. - function CheckForDataOnSource(ATimeout: Integer = 0): Boolean; virtual; - procedure Close; virtual; - procedure CloseGracefully; virtual; - class function MakeDefaultIOHandler(AOwner: TComponent = nil) - : TIdIOHandler; - class function MakeIOHandler(ABaseType: TIdIOHandlerClass; - AOwner: TComponent = nil): TIdIOHandler; - // Variant of MakeIOHandler() which returns nil if it cannot find a registered IOHandler - class function TryMakeIOHandler(ABaseType: TIdIOHandlerClass; - AOwner: TComponent = nil): TIdIOHandler; - class procedure RegisterIOHandler; - class procedure SetDefaultClass; - function WaitFor(const AString: string; ARemoveFromBuffer: Boolean = True; - AInclusive: Boolean = False; AByteEncoding: IIdTextEncoding = nil; - ATimeout: Integer = IdTimeoutDefault - {$IFDEF STRING_IS_ANSI}; AAnsiEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; - // This is different than WriteDirect. WriteDirect goes - // directly to the network or next level. WriteBuffer allows for buffering - // using WriteBuffers. This should be the only call to WriteDirect - // unless the calls that bypass this are aware of WriteBuffering or are - // intended to bypass it. - procedure Write(const ABuffer: TIdBytes; const ALength: Integer = -1; const AOffset: Integer = 0); overload; virtual; - // This is the main write function which all other default implementations - // use. If default implementations are used, this must be implemented. - procedure WriteDirect(const ABuffer: TIdBytes; const ALength: Integer = -1; const AOffset: Integer = 0); - // - procedure Open; virtual; - function Readable(AMSec: Integer = IdTimeoutDefault): Boolean; virtual; - // - // Optimal Extra Methods - // - // These methods are based on the core methods. While they can be - // overridden, they are so simple that it is rare a more optimal method can - // be implemented. Because of this they are not overrideable. - // - // - // Write Methods - // - // Only the ones that have a hope of being better optimized in descendants - // have been marked virtual - procedure Write(const AOut: string; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); overload; virtual; - procedure WriteLn(AEncoding: IIdTextEncoding = nil); overload; - procedure WriteLn(const AOut: string; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); overload; virtual; - procedure WriteLnRFC(const AOut: string = ''; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); virtual; - procedure Write(AValue: TStrings; AWriteLinesCount: Boolean = False; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); overload; virtual; - procedure Write(AValue: Byte); overload; - procedure Write(AValue: Char; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); overload; - - // for iOS64, Delphi's Longint and LongWord are 64bit, so we can't rely on - // Write(Longint) and ReadLongint() being 32bit anymore, for instance when - // sending/reading a TStream with LargeStream=False. So adding new (U)IntX - // methods and deprecating the old ones... - // - procedure Write(AValue: Int16; AConvert: Boolean = True); overload; - procedure Write(AValue: UInt16; AConvert: Boolean = True); overload; - procedure Write(AValue: Int32; AConvert: Boolean = True); overload; - procedure Write(AValue: UInt32; AConvert: Boolean = True); overload; - procedure Write(AValue: Int64; AConvert: Boolean = True); overload; - procedure Write(AValue: TIdUInt64; AConvert: Boolean = True); overload; - // - - procedure Write(AStream: TStream; ASize: TIdStreamSize = 0; - AWriteByteCount: Boolean = False); overload; virtual; - procedure WriteRFCStrings(AStrings: TStrings; AWriteTerminator: Boolean = True; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); - // Not overloaded because it does not have a unique type for source - // and could be easily unresolvable with future additions - function WriteFile(const AFile: String; AEnableTransferFile: Boolean = False): Int64; virtual; - // - // Read methods - // - function AllData(AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; virtual; - function InputLn(const AMask: string = ''; AEcho: Boolean = True; - ATabWidth: Integer = 8; AMaxLineLength: Integer = -1; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; AAnsiEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; virtual; - // Capture - // Not virtual because each calls PerformCapture which is virtual - procedure Capture(ADest: TStream; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); overload; // .Net overload - procedure Capture(ADest: TStream; ADelim: string; - AUsesDotTransparency: Boolean = True; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); overload; - procedure Capture(ADest: TStream; out VLineCount: Integer; - const ADelim: string = '.'; AUsesDotTransparency: Boolean = True; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); overload; - procedure Capture(ADest: TStrings; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); overload; // .Net overload - procedure Capture(ADest: TStrings; const ADelim: string; - AUsesDotTransparency: Boolean = True; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); overload; - procedure Capture(ADest: TStrings; out VLineCount: Integer; - const ADelim: string = '.'; AUsesDotTransparency: Boolean = True; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); overload; - // - // Read___ - // Cannot overload, compiler cannot overload on return values - // - procedure ReadBytes(var VBuffer: TIdBytes; AByteCount: Integer; AAppend: Boolean = True); virtual; - // ReadLn - function ReadLn(AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; overload; // .Net overload - function ReadLn(ATerminator: string; AByteEncoding: IIdTextEncoding - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; overload; - function ReadLn(ATerminator: string; ATimeout: Integer = IdTimeoutDefault; - AMaxLineLength: Integer = -1; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; overload; virtual; - //RLebeau: added for RFC 822 retrieves - function ReadLnRFC(var VMsgEnd: Boolean; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; overload; - function ReadLnRFC(var VMsgEnd: Boolean; const ALineTerminator: string; - const ADelim: string = '.'; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; overload; - function ReadLnWait(AFailCount: Integer = MaxInt; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; virtual; - // Added for retrieving lines over 16K long} - function ReadLnSplit(var AWasSplit: Boolean; ATerminator: string = LF; - ATimeout: Integer = IdTimeoutDefault; AMaxLineLength: Integer = -1; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; - // Read - Simple Types - function ReadChar(AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): Char; - function ReadByte: Byte; - function ReadString(ABytes: Integer; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; - - // for iOS64, Delphi's Longint and LongWord are changed to 64bit, so we can't - // rely on Write(Longint) and ReadLongint() being 32bit anymore, for instance - // when sending/reading a TStream with LargeStream=False. So adding new (U)IntX - // methods and deprecating the old ones... - // - function ReadInt16(AConvert: Boolean = True): Int16; - function ReadUInt16(AConvert: Boolean = True): UInt16; - function ReadInt32(AConvert: Boolean = True): Int32; - function ReadUInt32(AConvert: Boolean = True): UInt32; - function ReadInt64(AConvert: Boolean = True): Int64; - function ReadUInt64(AConvert: Boolean = True): TIdUInt64; - // - function ReadSmallInt(AConvert: Boolean = True): Int16; {$IFDEF HAS_DEPRECATED}deprecated{$IFDEF HAS_DEPRECATED_MSG} 'Use ReadInt16()'{$ENDIF};{$ENDIF} - function ReadWord(AConvert: Boolean = True): UInt16; {$IFDEF HAS_DEPRECATED}deprecated{$IFDEF HAS_DEPRECATED_MSG} 'Use ReadUInt16()'{$ENDIF};{$ENDIF} - function ReadLongInt(AConvert: Boolean = True): Int32; {$IFDEF HAS_DEPRECATED}deprecated{$IFDEF HAS_DEPRECATED_MSG} 'Use ReadInt32()'{$ENDIF};{$ENDIF} - function ReadLongWord(AConvert: Boolean = True): UInt32; {$IFDEF HAS_DEPRECATED}deprecated{$IFDEF HAS_DEPRECATED_MSG} 'Use ReadUInt32()'{$ENDIF};{$ENDIF} - // - - procedure ReadStream(AStream: TStream; AByteCount: TIdStreamSize = -1; - AReadUntilDisconnect: Boolean = False); virtual; - procedure ReadStrings(ADest: TStrings; AReadLinesCount: Integer = -1; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); - // - procedure Discard(AByteCount: Int64); - procedure DiscardAll; - // - // WriteBuffering Methods - // - procedure WriteBufferCancel; virtual; - procedure WriteBufferClear; virtual; - procedure WriteBufferClose; virtual; - procedure WriteBufferFlush; overload; //.Net overload - procedure WriteBufferFlush(AByteCount: Integer); overload; virtual; - procedure WriteBufferOpen; overload; //.Net overload - procedure WriteBufferOpen(AThreshold: Integer); overload; virtual; - function WriteBufferingActive: Boolean; - // - // InputBuffer Methods - // - function InputBufferIsEmpty: Boolean; - // - // These two are direct access and do no reading of connection - procedure InputBufferToStream(AStream: TStream; AByteCount: Integer = -1); - function InputBufferAsString(AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; - // - // Properties - // - property ConnectTimeout: Integer read FConnectTimeout write FConnectTimeout default 0; - property ClosedGracefully: Boolean read FClosedGracefully; - // TODO: Need to name this consistent. Originally no access was allowed, - // but new model requires it for writing. Will decide after next set - // of changes are complete what to do with Buffer prop. - // - // Is used by SuperCore - property InputBuffer: TIdBuffer read FInputBuffer; - //currently an option, as LargeFile support changes the data format - property LargeStream: Boolean read FLargeStream write FLargeStream; - property MaxCapturedLines: Integer read FMaxCapturedLines write FMaxCapturedLines default Id_IOHandler_MaxCapturedLines; - property Opened: Boolean read FOpened; - property ReadTimeout: Integer read FReadTimeOut write FReadTimeOut default IdTimeoutDefault; - property ReadLnTimedout: Boolean read FReadLnTimedout ; - property WriteBufferThreshold: Integer read FWriteBufferThreshold; - property DefStringEncoding : IIdTextEncoding read FDefStringEncoding write SetDefStringEncoding; - {$IFDEF STRING_IS_ANSI} - property DefAnsiEncoding : IIdTextEncoding read FDefAnsiEncoding write SetDefAnsiEncoding; - {$ENDIF} - // - // Events - // - property OnWork; - property OnWorkBegin; - property OnWorkEnd; - published - property Destination: string read GetDestination write SetDestination; - property Host: string read FHost write SetHost; - property Intercept: TIdConnectionIntercept read FIntercept write SetIntercept; - property MaxLineLength: Integer read FMaxLineLength write FMaxLineLength default IdMaxLineLengthDefault; - property MaxLineAction: TIdMaxLineAction read FMaxLineAction write FMaxLineAction; - property Port: Integer read FPort write SetPort; - // RecvBufferSize is used by some methods that read large amounts of data. - // RecvBufferSize is the amount of data that will be requested at each read - // cycle. RecvBuffer is used to receive then send to the Intercepts, after - // that it goes to InputBuffer - property RecvBufferSize: Integer read FRecvBufferSize write FRecvBufferSize - default GRecvBufferSizeDefault; - // SendBufferSize is used by some methods that have to break apart large - // amounts of data into smaller pieces. This is the buffer size of the - // chunks that it will create and use. - property SendBufferSize: Integer read FSendBufferSize write FSendBufferSize - default GSendBufferSizeDefault; - end; - -implementation - -uses - //facilitate inlining only. - {$IFDEF DOTNET} - {$IFDEF USE_INLINE} - System.IO, - {$ENDIF} - {$ENDIF} - {$IFDEF WIN32_OR_WIN64} - Windows, - {$ENDIF} - {$IFDEF USE_VCL_POSIX} - {$IFDEF OSX} - Macapi.CoreServices, - {$ENDIF} - {$ENDIF} - {$IFDEF HAS_UNIT_Generics_Collections} - System.Generics.Collections, - {$ENDIF} - IdStack, IdStackConsts, IdResourceStrings, - SysUtils; - -type - {$IFDEF HAS_GENERICS_TList} - TIdIOHandlerClassList = TList; - {$ELSE} - // TODO: flesh out to match TList for non-Generics compilers - TIdIOHandlerClassList = TList; - {$ENDIF} - -var - GIOHandlerClassDefault: TIdIOHandlerClass = nil; - GIOHandlerClassList: TIdIOHandlerClassList = nil; - -{ TIdIOHandler } - -{$IFDEF WORKAROUND_INLINE_CONSTRUCTORS} -constructor TIdIOHandler.Create(AOwner: TComponent); -begin - inherited Create(AOwner); -end; -{$ENDIF} - -procedure TIdIOHandler.Close; -//do not do FInputBuffer.Clear; here. -//it breaks reading when remote connection does a disconnect -var - // under ARC, convert a weak reference to a strong reference before working with it - LIntercept: TIdConnectionIntercept; -begin - try - LIntercept := Intercept; - if LIntercept <> nil then begin - LIntercept.Disconnect; - end; - finally - FOpened := False; - WriteBufferClear; - end; -end; - -destructor TIdIOHandler.Destroy; -begin - Close; - FreeAndNil(FInputBuffer); - FreeAndNil(FWriteBuffer); - inherited Destroy; -end; - -procedure TIdIOHandler.AfterAccept; -begin - // -end; - -procedure TIdIOHandler.Open; -begin - FOpened := False; - FClosedGracefully := False; - WriteBufferClear; - FInputBuffer.Clear; - FOpened := True; -end; - -// under ARC, all weak references to a freed object get nil'ed automatically -{$IFNDEF USE_OBJECT_ARC} -procedure TIdIOHandler.Notification(AComponent: TComponent; Operation: TOperation); -begin - if (Operation = opRemove) and (AComponent = FIntercept) then begin - FIntercept := nil; - end; - inherited Notification(AComponent, OPeration); -end; -{$ENDIF} - -procedure TIdIOHandler.SetIntercept(AValue: TIdConnectionIntercept); -begin - {$IFDEF USE_OBJECT_ARC} - // under ARC, all weak references to a freed object get nil'ed automatically - FIntercept := AValue; - {$ELSE} - if FIntercept <> AValue then begin - // remove self from the Intercept's free notification list - if Assigned(FIntercept) then begin - FIntercept.RemoveFreeNotification(Self); - end; - FIntercept := AValue; - // add self to the Intercept's free notification list - if Assigned(AValue) then begin - AValue.FreeNotification(Self); - end; - end; - {$ENDIF} -end; - -class procedure TIdIOHandler.SetDefaultClass; -begin - GIOHandlerClassDefault := Self; - RegisterIOHandler; -end; - -procedure TIdIOHandler.SetDefStringEncoding(const AEncoding: IIdTextEncoding); -var - LEncoding: IIdTextEncoding; -begin - if FDefStringEncoding <> AEncoding then - begin - LEncoding := AEncoding; - EnsureEncoding(LEncoding); - FDefStringEncoding := LEncoding; - end; -end; - -{$IFDEF STRING_IS_ANSI} -procedure TIdIOHandler.SetDefAnsiEncoding(const AEncoding: IIdTextEncoding); -var - LEncoding: IIdTextEncoding; -begin - if FDefAnsiEncoding <> AEncoding then - begin - LEncoding := AEncoding; - EnsureEncoding(LEncoding, encOSDefault); - FDefAnsiEncoding := LEncoding; - end; -end; -{$ENDIF} - -class function TIdIOHandler.MakeDefaultIOHandler(AOwner: TComponent = nil): TIdIOHandler; -begin - Result := GIOHandlerClassDefault.Create(AOwner); -end; - -class procedure TIdIOHandler.RegisterIOHandler; -begin - if GIOHandlerClassList = nil then begin - GIOHandlerClassList := TIdIOHandlerClassList.Create; - end; - {$IFNDEF DOTNET_EXCLUDE} - //TODO: Reenable this. Dot net wont allow class references as objects - // Use an array? - if GIOHandlerClassList.IndexOf(Self) = -1 then begin - GIOHandlerClassList.Add(Self); - end; - {$ENDIF} -end; - -{ - Creates an IOHandler of type ABaseType, or descendant. -} -class function TIdIOHandler.MakeIOHandler(ABaseType: TIdIOHandlerClass; - AOwner: TComponent = nil): TIdIOHandler; -begin - Result := TryMakeIOHandler(ABaseType, AOwner); - if not Assigned(Result) then begin - raise EIdException.CreateFmt(RSIOHandlerTypeNotInstalled, [ABaseType.ClassName]); // TODO: create a new Exception class for this - end; -end; - -class function TIdIOHandler.TryMakeIOHandler(ABaseType: TIdIOHandlerClass; - AOwner: TComponent = nil): TIdIOHandler; -var - i: Integer; -begin - if GIOHandlerClassList <> nil then begin - for i := GIOHandlerClassList.Count - 1 downto 0 do begin - if TIdIOHandlerClass(GIOHandlerClassList[i]).InheritsFrom(ABaseType) then begin - Result := TIdIOHandlerClass(GIOHandlerClassList[i]).Create; - Exit; - end; - end; - end; - Result := nil; -end; - -function TIdIOHandler.GetDestination: string; -begin - Result := FDestination; -end; - -procedure TIdIOHandler.SetDestination(const AValue: string); -begin - FDestination := AValue; -end; - -procedure TIdIOHandler.BufferRemoveNotify(ASender: TObject; ABytes: Integer); -begin - DoWork(wmRead, ABytes); -end; - -procedure TIdIOHandler.WriteBufferOpen(AThreshold: Integer); -begin - if FWriteBuffer <> nil then begin - FWriteBuffer.Clear; - end else begin - FWriteBuffer := TIdBuffer.Create; - end; - FWriteBufferThreshold := AThreshold; -end; - -procedure TIdIOHandler.WriteBufferClose; -begin - try - WriteBufferFlush; - finally FreeAndNil(FWriteBuffer); end; -end; - -procedure TIdIOHandler.WriteBufferFlush(AByteCount: Integer); -var - LBytes: TIdBytes; -begin - if FWriteBuffer <> nil then begin - if FWriteBuffer.Size > 0 then begin - FWriteBuffer.ExtractToBytes(LBytes, AByteCount); - WriteDirect(LBytes); - end; - end; -end; - -procedure TIdIOHandler.WriteBufferClear; -begin - if FWriteBuffer <> nil then begin - FWriteBuffer.Clear; - end; -end; - -procedure TIdIOHandler.WriteBufferCancel; -begin - WriteBufferClear; - WriteBufferClose; -end; - -procedure TIdIOHandler.Write(const AOut: string; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); -begin - if AOut <> '' then begin - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - ASrcEncoding := iif(ASrcEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - Write( - ToBytes(AOut, -1, 1, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} - ) - ); - end; -end; - -procedure TIdIOHandler.Write(AValue: Byte); -begin - Write(ToBytes(AValue)); -end; - -procedure TIdIOHandler.Write(AValue: Char; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); -begin - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - ASrcEncoding := iif(ASrcEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - Write( - ToBytes(AValue, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} - ) - ); -end; - -procedure TIdIOHandler.Write(AValue: UInt32; AConvert: Boolean = True); -begin - if AConvert then begin - AValue := GStack.HostToNetwork(AValue); - end; - Write(ToBytes(AValue)); -end; - -procedure TIdIOHandler.Write(AValue: Int32; AConvert: Boolean = True); -begin - if AConvert then begin - AValue := Int32(GStack.HostToNetwork(UInt32(AValue))); - end; - Write(ToBytes(AValue)); -end; - -{$IFDEF DCC} - {$IFNDEF VCL_7_OR_ABOVE} - // RLebeau 5/13/2015: The Write(Int64) method produces an "Internal error URW533" - // compiler error in Delphi 5, and an "Internal error URW699" compiler error in - // Delphi 6, so need to use some workarounds for those versions... - {$DEFINE AVOID_URW_ERRORS} - {$ENDIF} -{$ENDIF} - -{$IFDEF HAS_UInt64} - {$IFDEF BROKEN_UInt64_HPPEMIT} - {$DEFINE HAS_TIdUInt64_QuadPart} - {$ENDIF} -{$ELSE} - {$IFNDEF HAS_QWord} - {$DEFINE HAS_TIdUInt64_QuadPart} - {$ENDIF} -{$ENDIF} - -procedure TIdIOHandler.Write(AValue: Int64; AConvert: Boolean = True); -{$IFDEF AVOID_URW_ERRORS} -var - LTemp: Int64; -{$ELSE} - {$IFDEF HAS_TIdUInt64_QuadPart} -var - LTemp: TIdUInt64; - {$ENDIF} -{$ENDIF} -begin - if AConvert then begin - {$IFDEF AVOID_URW_ERRORS} - // assigning to a local variable to avoid an "Internal error URW533" compiler - // error in Delphi 5, and an "Internal error URW699" compiler error in Delphi - // 6. Later versions seem OK without it... - LTemp := GStack.HostToNetwork(UInt64(AValue)); - AValue := LTemp; - {$ELSE} - {$IFDEF HAS_TIdUInt64_QuadPart} - // assigning to a local variable if UInt64 is not a native type, or if using - // a C++Builder version that has problems with UInt64 parameters... - LTemp.QuadPart := UInt64(AValue); - LTemp := GStack.HostToNetwork(LTemp); - AValue := Int64(LTemp.QuadPart); - {$ELSE} - AValue := Int64(GStack.HostToNetwork(UInt64(AValue))); - {$ENDIF} - {$ENDIF} - end; - Write(ToBytes(AValue)); -end; - -procedure TIdIOHandler.Write(AValue: TIdUInt64; AConvert: Boolean = True); -begin - if AConvert then begin - AValue := GStack.HostToNetwork(AValue); - end; - Write(ToBytes(AValue)); -end; - -procedure TIdIOHandler.Write(AValue: TStrings; AWriteLinesCount: Boolean = False; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); -var - i: Integer; - LBufferingStarted: Boolean; -begin - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - ASrcEncoding := iif(ASrcEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - LBufferingStarted := not WriteBufferingActive; - if LBufferingStarted then begin - WriteBufferOpen; - end; - try - if AWriteLinesCount then begin - Write(AValue.Count); - end; - for i := 0 to AValue.Count - 1 do begin - WriteLn(AValue.Strings[i], AByteEncoding - {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} - ); - end; - if LBufferingStarted then begin - WriteBufferClose; - end; - except - if LBufferingStarted then begin - WriteBufferCancel; - end; - raise; - end; -end; - -procedure TIdIOHandler.Write(AValue: UInt16; AConvert: Boolean = True); -begin - if AConvert then begin - AValue := GStack.HostToNetwork(AValue); - end; - Write(ToBytes(AValue)); -end; - -procedure TIdIOHandler.Write(AValue: Int16; AConvert: Boolean = True); -begin - if AConvert then begin - AValue := Int16(GStack.HostToNetwork(UInt16(AValue))); - end; - Write(ToBytes(AValue)); -end; - -procedure TIdIOHandler.EnsureInputBytes(AByteCount: Integer); -begin - Assert(FInputBuffer<>nil); - if AByteCount > 0 then begin - // Read from stack until we have enough data - while InputBuffer.Size < AByteCount do begin - // RLebeau: in case the other party disconnects - // after all of the bytes were transmitted ok. - // No need to throw an exception just yet... - if ReadFromSource(False) > 0 then begin - if InputBuffer.Size >= AByteCount then begin - Break; // we have enough data now - end; - end; - CheckForDisconnect(True, True); - end; - end - else if AByteCount < 0 then begin - if InputBufferIsEmpty then begin - // Read whatever data is currently on the stack - ReadFromSource(False, ReadTimeout, False); - CheckForDisconnect(True, True); - end; - end; -end; - -function TIdIOHandler.ReadString(ABytes: Integer; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; -begin - if ABytes > 0 then begin - EnsureInputBytes(ABytes); - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - Result := InputBuffer.ExtractToString(ABytes, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); - end else begin - Result := ''; - end; -end; - -procedure TIdIOHandler.ReadStrings(ADest: TStrings; AReadLinesCount: Integer = -1; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); -var - i: Integer; -begin - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - if AReadLinesCount < 0 then begin - AReadLinesCount := ReadInt32; - end; - ADest.BeginUpdate; - try - for i := 0 to AReadLinesCount - 1 do begin - ADest.Add(ReadLn(AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - )); - end; - finally - ADest.EndUpdate; - end; -end; - -function TIdIOHandler.ReadUInt16(AConvert: Boolean = True): UInt16; -begin - EnsureInputBytes(SizeOf(UInt16)); - Result := InputBuffer.ExtractToUInt16(-1, AConvert); -end; - -{$I IdDeprecatedImplBugOff.inc} -function TIdIOHandler.ReadWord(AConvert: Boolean = True): UInt16; -{$I IdDeprecatedImplBugOn.inc} -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - Result := ReadUInt16(AConvert); -end; - -function TIdIOHandler.ReadInt16(AConvert: Boolean = True): Int16; -begin - EnsureInputBytes(SizeOf(Int16)); - Result := Int16(InputBuffer.ExtractToUInt16(-1, AConvert)); -end; - -{$I IdDeprecatedImplBugOff.inc} -function TIdIOHandler.ReadSmallInt(AConvert: Boolean = True): Int16; -{$I IdDeprecatedImplBugOn.inc} -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - Result := ReadInt16(AConvert); -end; - -function TIdIOHandler.ReadChar(AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): Char; -var - I, J, NumChars, NumBytes: Integer; - LBytes: TIdBytes; - {$IFDEF DOTNET} - LChars: array[0..1] of Char; - {$ELSE} - LChars: TIdWideChars; - {$IFDEF STRING_IS_ANSI} - LWTmp: TIdUnicodeString; - LATmp: TIdBytes; - {$ENDIF} - {$ENDIF} -begin - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - // 2 Chars to handle UTF-16 surrogates - NumBytes := AByteEncoding.GetMaxByteCount(2); - SetLength(LBytes, NumBytes); - {$IFNDEF DOTNET} - SetLength(LChars, 2); - {$ENDIF} - NumChars := 0; - if NumBytes > 0 then - begin - for I := 1 to NumBytes do - begin - LBytes[I-1] := ReadByte; - NumChars := AByteEncoding.GetChars(LBytes, 0, I, LChars, 0); - if NumChars > 0 then begin - // RLebeau 10/19/2012: when Indy switched to its own UTF-8 implementation - // to avoid the MB_ERR_INVALID_CHARS flag on Windows, it accidentally broke - // this loop! Since this is not commonly used, this was not noticed until - // now. On Windows at least, GetChars() now returns >0 for an invalid - // sequence, so we have to check if any of the returned characters are the - // Unicode U+FFFD character, indicating bad data... - for J := 0 to NumChars-1 do begin - if LChars[J] = TIdWideChar($FFFD) then begin - // keep reading... - NumChars := 0; - Break; - end; - end; - if NumChars > 0 then begin - Break; - end; - end; - end; - end; - {$IFDEF STRING_IS_UNICODE} - // RLebeau: if the bytes were decoded into surrogates, the second - // surrogate is lost here, as it can't be returned unless we cache - // it somewhere for the the next ReadChar() call to retreive. Just - // raise an error for now. Users will have to update their code to - // read surrogates differently... - Assert(NumChars = 1); - Result := LChars[0]; - {$ELSE} - // RLebeau: since we can only return an AnsiChar here, let's convert - // the decoded characters, surrogates and all, into their Ansi - // representation. This will have the same problem as above if the - // conversion results in a multibyte character sequence... - SetString(LWTmp, PWideChar(LChars), NumChars); - LATmp := ADestEncoding.GetBytes(LWTmp); // convert to Ansi - Assert(Length(LATmp) = 1); - Result := Char(LATmp[0]); - {$ENDIF} -end; - -function TIdIOHandler.ReadByte: Byte; -begin - EnsureInputBytes(SizeOf(Byte)); - Result := InputBuffer.ExtractToUInt8(-1); -end; - -function TIdIOHandler.ReadInt32(AConvert: Boolean): Int32; -begin - EnsureInputBytes(SizeOf(Int32)); - Result := Int32(InputBuffer.ExtractToUInt32(-1, AConvert)); -end; - -{$I IdDeprecatedImplBugOff.inc} -function TIdIOHandler.ReadLongInt(AConvert: Boolean): Int32; -{$I IdDeprecatedImplBugOn.inc} -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - Result := ReadInt32(AConvert); -end; - -function TIdIOHandler.ReadInt64(AConvert: boolean): Int64; -var - LTemp: TIdUInt64; -begin - EnsureInputBytes(SizeOf(Int64)); - LTemp := InputBuffer.ExtractToUInt64(-1, AConvert); - Result := Int64(LTemp{$IFDEF HAS_TIdUInt64_QuadPart}.QuadPart{$ENDIF}); -end; - -function TIdIOHandler.ReadUInt64(AConvert: boolean): TIdUInt64; -begin - EnsureInputBytes(SizeOf(TIdUInt64)); - Result := InputBuffer.ExtractToUInt64(-1, AConvert); -end; - -function TIdIOHandler.ReadUInt32(AConvert: Boolean): UInt32; -begin - EnsureInputBytes(SizeOf(UInt32)); - Result := InputBuffer.ExtractToUInt32(-1, AConvert); -end; - -{$I IdDeprecatedImplBugOff.inc} -function TIdIOHandler.ReadLongWord(AConvert: Boolean): UInt32; -{$I IdDeprecatedImplBugOn.inc} -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - Result := ReadUInt32(AConvert); -end; - -function TIdIOHandler.ReadLn(AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - Result := ReadLn(LF, IdTimeoutDefault, -1, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); -end; - -function TIdIOHandler.ReadLn(ATerminator: string; AByteEncoding: IIdTextEncoding - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - Result := ReadLn(ATerminator, IdTimeoutDefault, -1, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); -end; - -function TIdIOHandler.ReadLn(ATerminator: string; ATimeout: Integer = IdTimeoutDefault; - AMaxLineLength: Integer = -1; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; -var - LInputBufferSize: Integer; - LStartPos: Integer; - LTermPos: Integer; - LReadLnStartTime: TIdTicks; - LTerm, LResult: TIdBytes; -begin - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - if AMaxLineLength < 0 then begin - AMaxLineLength := MaxLineLength; - end; - // User may pass '' if they need to pass arguments beyond the first. - if ATerminator = '' then begin - ATerminator := LF; - end; - // TODO: encountered an email that was using charset "cp1026", which encodes - // a LF character to byte $25 instead of $0A (and decodes byte $0A to character - // #$8E instead of #$A). To account for that, don't encoding the LF using the - // specified encoding anymore, force the encoding to what it should be. But - // what if UTF-16 is being used? - { - if ATerminator = LF then begin - LTerm := ToBytes(Byte($0A)); - end else begin - LTerm := ToBytes(ATerminator, AByteEncoding - {$IFDEF STRING_IS_ANSI, ADestEncoding{$ENDIF - ); - end; - } - LTerm := ToBytes(ATerminator, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); - FReadLnSplit := False; - FReadLnTimedOut := False; - LTermPos := -1; - LStartPos := 0; - LReadLnStartTime := Ticks64; - repeat - LInputBufferSize := FInputBuffer.Size; - if LInputBufferSize > 0 then begin - if LStartPos < LInputBufferSize then begin - LTermPos := FInputBuffer.IndexOf(LTerm, LStartPos); - end else begin - LTermPos := -1; - end; - LStartPos := IndyMax(LInputBufferSize-(Length(LTerm)-1), 0); - end; - // if the line length is limited and terminator is found after the limit or not found and the limit is exceeded - if (AMaxLineLength > 0) and ((LTermPos > AMaxLineLength) or ((LTermPos = -1) and (LStartPos > AMaxLineLength))) then begin - if MaxLineAction = maException then begin - raise EIdReadLnMaxLineLengthExceeded.Create(RSReadLnMaxLineLengthExceeded); - end; - // RLebeau: WARNING - if the line is using multibyte character sequences - // and a sequence staddles the AMaxLineLength boundary, this will chop - // the sequence, producing invalid data! - FReadLnSplit := True; - Result := FInputBuffer.ExtractToString(AMaxLineLength, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); - Exit; - end - // ReadFromSource blocks - do not call unless we need to - else if LTermPos = -1 then begin - // ReadLn needs to call this as data may exist in the buffer, but no EOL yet disconnected - CheckForDisconnect(True, True); - // Can only return -1 if timeout - FReadLnTimedOut := ReadFromSource(True, ATimeout, False) = -1; - if (not FReadLnTimedOut) and (ATimeout >= 0) then begin - if GetElapsedTicks(LReadLnStartTime) >= UInt32(ATimeout) then begin - FReadLnTimedOut := True; - end; - end; - if FReadLnTimedOut then begin - Result := ''; - Exit; - end; - end; - until LTermPos > -1; - // Extract actual data - { - IMPORTANT!!! - - When encoding from UTF8 to Unicode or ASCII, you will not always get the same - number of bytes that you input so you may have to recalculate LTermPos since - that was based on the number of bytes in the input stream. If do not do this, - you will probably get an incorrect result or a range check error since the - string is shorter then the original buffer position. - - JPM - } - // RLebeau 11/19/08: this is no longer needed as the terminator is encoded to raw bytes now ... - { - Result := FInputBuffer.Extract(LTermPos + Length(ATerminator), AEncoding); - LTermPos := IndyMin(LTermPos, Length(Result)); - if (ATerminator = LF) and (LTermPos > 0) then begin - if Result[LTermPos] = CR then begin - Dec(LTermPos); - end; - end; - SetLength(Result, LTermPos); - } - FInputBuffer.ExtractToBytes(LResult, LTermPos + Length(LTerm)); - if (ATerminator = LF) and (LTermPos > 0) then begin - if LResult[LTermPos-1] = Ord(CR) then begin - Dec(LTermPos); - end; - end; - Result := BytesToString(LResult, 0, LTermPos, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); -end; - -function TIdIOHandler.ReadLnRFC(var VMsgEnd: Boolean; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - Result := ReadLnRFC(VMsgEnd, LF, '.', AByteEncoding {do not localize} - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); -end; - -function TIdIOHandler.ReadLnRFC(var VMsgEnd: Boolean; const ALineTerminator: string; - const ADelim: String = '.'; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; -begin - Result := ReadLn(ALineTerminator, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); - // Do not use ATerminator since always ends with . (standard) - if Result = ADelim then - begin - VMsgEnd := True; - Exit; - end; - if TextStartsWith(Result, '..') then begin {do not localize} - Delete(Result, 1, 1); - end; - VMsgEnd := False; -end; - -function TIdIOHandler.ReadLnSplit(var AWasSplit: Boolean; ATerminator: string = LF; - ATimeout: Integer = IdTimeoutDefault; AMaxLineLength: Integer = -1; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; -var - FOldAction: TIdMaxLineAction; -begin - FOldAction := MaxLineAction; - MaxLineAction := maSplit; - try - Result := ReadLn(ATerminator, ATimeout, AMaxLineLength, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); - AWasSplit := FReadLnSplit; - finally - MaxLineAction := FOldAction; - end; -end; - -function TIdIOHandler.ReadLnWait(AFailCount: Integer = MaxInt; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; -var - LAttempts: Integer; -begin - // MtW: this is mostly used when empty lines could be sent. - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - Result := ''; - LAttempts := 0; - while LAttempts < AFailCount do - begin - Result := Trim(ReadLn(AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - )); - if Length(Result) > 0 then begin - Exit; - end; - if ReadLnTimedOut then begin - raise EIdReadTimeout.Create(RSReadTimeout); - end; - Inc(LAttempts); - end; - raise EIdReadLnWaitMaxAttemptsExceeded.Create(RSReadLnWaitMaxAttemptsExceeded); -end; - -function TIdIOHandler.ReadFromSource(ARaiseExceptionIfDisconnected: Boolean; - ATimeout: Integer; ARaiseExceptionOnTimeout: Boolean): Integer; -var - LByteCount: Integer; - LLastError: Integer; - LBuffer: TIdBytes; - // under ARC, convert a weak reference to a strong reference before working with it - LIntercept: TIdConnectionIntercept; -begin - if ATimeout = IdTimeoutDefault then begin - // MtW: check for 0 too, for compatibility - if (ReadTimeout = IdTimeoutDefault) or (ReadTimeout = 0) then begin - ATimeout := IdTimeoutInfinite; - end else begin - ATimeout := ReadTimeout; - end; - end; - Result := 0; - // Check here as this side may have closed the socket - CheckForDisconnect(ARaiseExceptionIfDisconnected); - if SourceIsAvailable then begin - repeat - LByteCount := 0; - // TODO: move the handling of Readable() into ReadDataFromSource() of descendant - // classes. For a plain socket, it makes sense to check for readability before - // attempting to read. Or just perform a blocking read w/ timeout applied. But for - // OpenSSL, you are not really supposed to check for readability first! You are - // supposed to attempt to read first, and then wait for new data w/ timeout only - // if OpenSSL explicitly asks you to do so after the read fails... - if Readable(ATimeout) then begin - if Opened then begin - // No need to call AntiFreeze, the Readable does that. - if SourceIsAvailable then begin - // TODO: Whey are we reallocating LBuffer every time? This - // should be a one time operation per connection. - - // RLebeau: because the Intercept does not allow the buffer - // size to be specified, and the Intercept could potentially - // resize the buffer... - - SetLength(LBuffer, RecvBufferSize); - try - LByteCount := ReadDataFromSource(LBuffer); - if LByteCount > 0 then begin - SetLength(LBuffer, LByteCount); - - LIntercept := Intercept; - if LIntercept <> nil then begin - LIntercept.Receive(LBuffer); - {$IFDEF USE_OBJECT_ARC}LIntercept := nil;{$ENDIF} - LByteCount := Length(LBuffer); - end; - - // Pass through LBuffer first so it can go through Intercept - //TODO: If not intercept, we can skip this step - InputBuffer.Write(LBuffer); - end; - finally - LBuffer := nil; - end; - end - else if ARaiseExceptionIfDisconnected then begin - raise EIdClosedSocket.Create(RSStatusDisconnected); - end; - end - else if ARaiseExceptionIfDisconnected then begin - raise EIdNotConnected.Create(RSNotConnected); - end; - if LByteCount < 0 then - begin - LLastError := CheckForError(LByteCount); - if LLastError = Id_WSAETIMEDOUT then begin - // Timeout - if ARaiseExceptionOnTimeout then begin - raise EIdReadTimeout.Create(RSReadTimeout); - end; - Result := -1; - Break; - end; - FClosedGracefully := True; - Close; - // Do not raise unless all data has been read by the user - if InputBufferIsEmpty and ARaiseExceptionIfDisconnected then begin - RaiseError(LLastError); - end; - LByteCount := 0; - end - else if LByteCount = 0 then begin - FClosedGracefully := True; - end; - // Check here as other side may have closed connection - CheckForDisconnect(ARaiseExceptionIfDisconnected); - Result := LByteCount; - end else begin - // Timeout - if ARaiseExceptionOnTimeout then begin - raise EIdReadTimeout.Create(RSReadTimeout); - end; - Result := -1; - Break; - end; - until (LByteCount <> 0) or (not SourceIsAvailable); - end - else if ARaiseExceptionIfDisconnected then begin - raise EIdNotConnected.Create(RSNotConnected); - end; -end; - -function TIdIOHandler.CheckForDataOnSource(ATimeout: Integer = 0): Boolean; -var - LPrevSize: Integer; -begin - Result := False; - // RLebeau - Connected() might read data into the InputBuffer, thus - // leaving no data for ReadFromSource() to receive a second time, - // causing a result of False when it should be True instead. So we - // save the current size of the InputBuffer before calling Connected() - // and then compare it afterwards.... - LPrevSize := InputBuffer.Size; - if Connected then begin - // return whether at least 1 byte was received - Result := (InputBuffer.Size > LPrevSize) or (ReadFromSource(False, ATimeout, False) > 0); - end; - // TODO: since Connected() just calls ReadFromSource() anyway, maybe just - // call ReadFromSource() by itself and not call Connected() at all? - // Result := ReadFromSource(False, ATimeout, False) > 0; -end; - -procedure TIdIOHandler.Write(AStream: TStream; ASize: TIdStreamSize = 0; - AWriteByteCount: Boolean = FALSE); -var - LBuffer: TIdBytes; - LStreamPos: TIdStreamSize; - LBufSize: Integer; - // LBufferingStarted: Boolean; -begin - // TODO: when AWriteByteCount is false, don't calculate the Size, just keep - // sending data until the end of stream is reached. This way, we can send - // streams that are not able to report accurate Size values... - - if ASize < 0 then begin //"-1" All from current position - LStreamPos := AStream.Position; - ASize := AStream.Size - LStreamPos; - //todo is this step required? - AStream.Position := LStreamPos; - end - else if ASize = 0 then begin //"0" ALL - ASize := AStream.Size; - AStream.Position := 0; - end; - //else ">0" number of bytes - - // RLebeau 3/19/2006: DO NOT ENABLE WRITE BUFFERING IN THIS METHOD! - // - // When sending large streams, especially with LargeStream enabled, - // this can easily cause "Out of Memory" errors. It is the caller's - // responsibility to enable/disable write buffering as needed before - // calling one of the Write() methods. - // - // Also, forcing write buffering in this method is having major - // impacts on TIdFTP, TIdFTPServer, and TIdHTTPServer. - - if AWriteByteCount then begin - if LargeStream then begin - Write(Int64(ASize)); - end else begin - {$IFDEF STREAM_SIZE_64} - if ASize > High(Integer) then begin - raise EIdIOHandlerRequiresLargeStream.Create(RSRequiresLargeStream); - end; - {$ENDIF} - Write(Int32(ASize)); - end; - end; - - BeginWork(wmWrite, ASize); - try - SetLength(LBuffer, FSendBufferSize); - while ASize > 0 do begin - LBufSize := IndyMin(ASize, Length(LBuffer)); - // Do not use ReadBuffer. Some source streams are real time and will not - // return as much data as we request. Kind of like recv() - // NOTE: We use .Size - size must be supported even if real time - LBufSize := TIdStreamHelper.ReadBytes(AStream, LBuffer, LBufSize); - if LBufSize <= 0 then begin - raise EIdNoDataToRead.Create(RSIdNoDataToRead); - end; - Write(LBuffer, LBufSize); - // RLebeau: DoWork() is called in WriteDirect() - //DoWork(wmWrite, LBufSize); - Dec(ASize, LBufSize); - end; - finally - EndWork(wmWrite); - LBuffer := nil; - end; -end; - -procedure TIdIOHandler.ReadBytes(var VBuffer: TIdBytes; AByteCount: Integer; AAppend: Boolean = True); -begin - EnsureInputBytes(AByteCount); - InputBuffer.ExtractToBytes(VBuffer, AByteCount, AAppend); -end; - -procedure TIdIOHandler.WriteLn(AEncoding: IIdTextEncoding = nil); -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - {$IFNDEF VCL_6_OR_ABOVE} - // RLebeau: in Delphi 5, explicitly specifying the nil value for the third - // parameter causes a "There is no overloaded version of 'WriteLn' that can - // be called with these arguments" compiler error. Must be a compiler bug, - // because it compiles fine in Delphi 6. The parameter value is nil by default - // anyway, so we don't really need to specify it here at all, but I'm documenting - // this so we know for future reference... - // - WriteLn('', AEncoding); - {$ELSE} - WriteLn('', AEncoding{$IFDEF STRING_IS_ANSI}, nil{$ENDIF}); - {$ENDIF} -end; - -procedure TIdIOHandler.WriteLn(const AOut: string; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); -begin - // TODO: RLebeau 1/2/2015: encountered an email that was using charset "cp1026", - // which encodes a LF character to byte $25 instead of $0A (and decodes - // byte $0A to character #$8E instead of #$A). To account for that, don't - // encoding the CRLF using the specified encoding anymore, force the encoding - // to what it should be... - // - // But, what to do if the target encoding is UTF-16? - { - Write(AOut, AByteEncoding{$IFDEF STRING_IS_ANSI, ASrcEncoding{$ENDIF); - Write(EOL, Indy8BitEncoding{$IFDEF STRING_IS_ANSI, Indy8BitEncoding{$ENDIF); - } - - // Do as one write so it only makes one call to network - Write(AOut + EOL, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} - ); -end; - -procedure TIdIOHandler.WriteLnRFC(const AOut: string = ''; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); -begin - if TextStartsWith(AOut, '.') then begin {do not localize} - WriteLn('.' + AOut, AByteEncoding {do not localize} - {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} - ); - end else begin - WriteLn(AOut, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} - ); - end; -end; - -function TIdIOHandler.Readable(AMSec: Integer): Boolean; -begin - // In case descendant does not override this or other methods but implements the higher level - // methods - Result := False; -end; - -procedure TIdIOHandler.SetHost(const AValue: string); -begin - FHost := AValue; -end; - -procedure TIdIOHandler.SetPort(AValue: Integer); -begin - FPort := AValue; -end; - -function TIdIOHandler.Connected: Boolean; -begin - CheckForDisconnect(False); - Result := - ( - ( - // Set when closed properly. Reflects actual socket state. - (not ClosedGracefully) - // Created on Open. Prior to Open ClosedGracefully is still false. - and (FInputBuffer <> nil) - ) - // Buffer must be empty. Even if closed, we are "connected" if we still have - // data - or (not InputBufferIsEmpty) - ) - and Opened; -end; - -// TODO: move this into IdGlobal.pas -procedure AdjustStreamSize(const AStream: TStream; const ASize: TIdStreamSize); -var - LStreamPos: TIdStreamSize; -begin - LStreamPos := AStream.Position; - AStream.Size := ASize; - // Must reset to original value in cases where size changes position - if AStream.Position <> LStreamPos then begin - AStream.Position := LStreamPos; - end; -end; - -procedure TIdIOHandler.ReadStream(AStream: TStream; AByteCount: TIdStreamSize; - AReadUntilDisconnect: Boolean); -var - LByteCount, LPos: TIdStreamSize; - {$IFNDEF STREAM_SIZE_64} - LTmp: Int64; - {$ENDIF} - - procedure CheckInputBufferForData; - var - i: Integer; - begin - i := FInputBuffer.Size; - if i > 0 then begin - if not AReadUntilDisconnect then begin - i := Integer(IndyMin(TIdStreamSize(i), LByteCount)); - Dec(LByteCount, i); - end; - if AStream <> nil then begin - FInputBuffer.ExtractToStream(AStream, i); - end else begin - FInputBuffer.Remove(i); - end; - end; - end; - -const - cSizeUnknown = -1; -begin - if (AByteCount = cSizeUnknown) and (not AReadUntilDisconnect) then begin - // Read size from connection - if LargeStream then begin - {$IFDEF STREAM_SIZE_64} - LByteCount := ReadInt64; - {$ELSE} - // TODO: if the peer is sending more than 2GB of data, don't fail - // here, just read it all in a loop until finished... - LTmp := ReadInt64; - if LTmp > MaxInt then begin - raise EIdIOHandlerStreamDataTooLarge.Create(RSDataTooLarge); - end; - LByteCount := TIdStreamSize(LTmp); - {$ENDIF} - end else begin - LByteCount := ReadInt32; - end; - end else begin - LByteCount := AByteCount; - end; - - // Presize stream if we know the size - this reduces memory/disk allocations to one time. - // TODO: need to add an option for this. user might not want to presize here, eg for reading - // int64 files, or when filling a manually-sized file using multiple threads. - if (AStream <> nil) and (LByteCount > -1) then begin - LPos := AStream.Position; - if (High(TIdStreamSize) - LPos) < LByteCount then begin - raise EIdIOHandlerStreamDataTooLarge.Create(RSDataTooLarge); - end; - AdjustStreamSize(AStream, LPos + LByteCount); - end; - - if (LByteCount <= cSizeUnknown) and (not AReadUntilDisconnect) then begin - AReadUntilDisconnect := True; - end; - - if AReadUntilDisconnect then begin - BeginWork(wmRead); - end else begin - BeginWork(wmRead, LByteCount); - end; - - try - // If data already exists in the buffer, write it out first. - CheckInputBufferForData; - - // RLebeau - don't call Connected() here! It can cause an - // EIdConnClosedGracefully exception that breaks the loop - // prematurely and thus leave unread bytes in the InputBuffer. - // Let the loop handle disconnects before exiting... - - // RLebeau 5/21/2019: rewritting this method to no longer use - // ReadBytes(), to avoid side-effects of an FMX issue with catching - // and reraising exceptions here during TIdFTP data transfers on iOS, - // per this blog: - // - // https://www.delphiworlds.com/2013/10/fixing-tidftp-for-ios-devices/ - // - // Besides, using ReadBytes() with exception handling here was always - // an ugly hack that we wanted to get rid of anyway, now its gone... - - while AReadUntilDisconnect or (LByteCount > 0) do begin - try - // Read from stack to get more data - if ReadFromSource(not AReadUntilDisconnect) < 1 then begin - CheckForDisconnect(False); - Break; - end; - TIdAntiFreezeBase.DoProcess; - finally - CheckInputBufferForData; - end; - end; - finally - EndWork(wmRead); - if AStream <> nil then begin - if AStream.Size > AStream.Position then begin - AStream.Size := AStream.Position; - end; - end; - end; -end; - -procedure TIdIOHandler.Discard(AByteCount: Int64); -var - LSize: Integer; -begin - Assert(AByteCount >= 0); - if AByteCount > 0 then - begin - BeginWork(wmRead, AByteCount); - try - repeat - LSize := iif(AByteCount < MaxInt, Integer(AByteCount), MaxInt); - LSize := IndyMin(LSize, FInputBuffer.Size); - if LSize > 0 then begin - FInputBuffer.Remove(LSize); - Dec(AByteCount, LSize); - if AByteCount < 1 then begin - Break; - end; - end; - // RLebeau: in case the other party disconnects - // after all of the bytes were transmitted ok. - // No need to throw an exception just yet... - if ReadFromSource(False) < 1 then begin - CheckForDisconnect(True, True); - end; - until False; - finally - EndWork(wmRead); - end; - end; -end; - -procedure TIdIOHandler.DiscardAll; -begin - BeginWork(wmRead); - try - // If data already exists in the buffer, discard it first. - FInputBuffer.Clear; - // RLebeau - don't call Connected() here! ReadBytes() already - // does that internally. Calling Connected() here can cause an - // EIdConnClosedGracefully exception that breaks the loop - // prematurely and thus leave unread bytes in the InputBuffer. - // Let the loop catch the exception before exiting... - repeat - //TODO: Improve this - dont like the use of the exception handler - try - if ReadFromSource(False) > 0 then begin - FInputBuffer.Clear; - end else begin; - CheckForDisconnect(True, True); - end; - except - on E: Exception do begin - // RLebeau - ReadFromSource() could have filled the - // InputBuffer with more bytes... - FInputBuffer.Clear; - if E is EIdConnClosedGracefully then begin - Break; - end else begin - raise; - end; - end; - end; - TIdAntiFreezeBase.DoProcess; - until False; - finally - EndWork(wmRead); - end; -end; - -procedure TIdIOHandler.RaiseConnClosedGracefully; -begin - (* ************************************************************* // - ------ If you receive an exception here, please read. ---------- - - If this is a SERVER - ------------------- - The client has disconnected the socket normally and this exception is used to notify the - server handling code. This exception is normal and will only happen from within the IDE, not - while your program is running as an EXE. If you do not want to see this, add this exception - or EIdSilentException to the IDE options as exceptions not to break on. - - From the IDE just hit F9 again and Indy will catch and handle the exception. - - Please see the FAQ and help file for possible further information. - The FAQ is at http://www.nevrona.com/Indy/FAQ.html - - If this is a CLIENT - ------------------- - The server side of this connection has disconnected normaly but your client has attempted - to read or write to the connection. You should trap this error using a try..except. - Please see the help file for possible further information. - - // ************************************************************* *) - raise EIdConnClosedGracefully.Create(RSConnectionClosedGracefully); -end; - -function TIdIOHandler.InputBufferAsString(AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; -begin - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - Result := FInputBuffer.ExtractToString(FInputBuffer.Size, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); -end; - -function TIdIOHandler.AllData(AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; -var - LBytes: Integer; -begin - Result := ''; - BeginWork(wmRead); - try - if Connected then - begin - try - try - repeat - LBytes := ReadFromSource(False, 250, False); - until LBytes = 0; // -1 on timeout - finally - if not InputBufferIsEmpty then begin - Result := InputBufferAsString(AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); - end; - end; - except end; - end; - finally - EndWork(wmRead); - end; -end; - -procedure TIdIOHandler.PerformCapture(const ADest: TObject; - out VLineCount: Integer; const ADelim: string; - AUsesDotTransparency: Boolean; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); -var - s: string; - LStream: TStream; - LStrings: TStrings; -begin - VLineCount := 0; - - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - - LStream := nil; - LStrings := nil; - - if ADest is TStrings then begin - LStrings := TStrings(ADest); - end - else if ADest is TStream then begin - LStream := TStream(ADest); - end - else begin - raise EIdObjectTypeNotSupported.Create(RSObjectTypeNotSupported); - end; - - BeginWork(wmRead); - try - if LStrings <> nil then begin - LStrings.BeginUpdate; - end; - try - repeat - s := ReadLn(AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); - if s = ADelim then begin - Exit; - end; - // S.G. 6/4/2004: All the consumers to protect themselves against memory allocation attacks - if FMaxCapturedLines > 0 then begin - if VLineCount > FMaxCapturedLines then begin - raise EIdMaxCaptureLineExceeded.Create(RSMaximumNumberOfCaptureLineExceeded); - end; - end; - // For RFC retrieves that use dot transparency - // No length check necessary, if only one byte it will be byte x + #0. - if AUsesDotTransparency then begin - if TextStartsWith(s, '..') then begin - Delete(s, 1, 1); - end; - end; - // Write to output - Inc(VLineCount); - if LStrings <> nil then begin - LStrings.Add(s); - end - else if LStream <> nil then begin - WriteStringToStream(LStream, s+EOL, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); - end; - until False; - finally - if LStrings <> nil then begin - LStrings.EndUpdate; - end; - end; - finally - EndWork(wmRead); - end; -end; - -function TIdIOHandler.InputLn(const AMask: String = ''; AEcho: Boolean = True; - ATabWidth: Integer = 8; AMaxLineLength: Integer = -1; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; AAnsiEncoding: IIdTextEncoding = nil{$ENDIF} - ): String; -var - i: Integer; - LChar: Char; - LTmp: string; -begin - Result := ''; - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - AAnsiEncoding := iif(AAnsiEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - if AMaxLineLength < 0 then begin - AMaxLineLength := MaxLineLength; - end; - repeat - LChar := ReadChar(AByteEncoding - {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} - ); - i := Length(Result); - if i <= AMaxLineLength then begin - case LChar of - BACKSPACE: - begin - if i > 0 then begin - SetLength(Result, i - 1); - if AEcho then begin - Write(BACKSPACE + ' ' + BACKSPACE, AByteEncoding - {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} - ); - end; - end; - end; - TAB: - begin - if ATabWidth > 0 then begin - i := ATabWidth - (i mod ATabWidth); - LTmp := StringOfChar(' ', i); - Result := Result + LTmp; - if AEcho then begin - Write(LTmp, AByteEncoding - {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} - ); - end; - end else begin - Result := Result + LChar; - if AEcho then begin - Write(LChar, AByteEncoding - {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} - ); - end; - end; - end; - LF: ; - CR: ; - #27: ; //ESC - currently not supported - else - Result := Result + LChar; - if AEcho then begin - if Length(AMask) = 0 then begin - Write(LChar, AByteEncoding - {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} - ); - end else begin - Write(AMask, AByteEncoding - {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} - ); - end; - end; - end; - end; - until LChar = LF; - // Remove CR trail - i := Length(Result); - while (i > 0) and CharIsInSet(Result, i, EOL) do begin - Dec(i); - end; - SetLength(Result, i); - if AEcho then begin - WriteLn(AByteEncoding); - end; -end; - -//TODO: Add a time out (default to infinite) and event to pass data -//TODO: Add a max size argument as well. -//TODO: Add a case insensitive option -function TIdIOHandler.WaitFor(const AString: string; ARemoveFromBuffer: Boolean = True; - AInclusive: Boolean = False; AByteEncoding: IIdTextEncoding = nil; - ATimeout: Integer = IdTimeoutDefault - {$IFDEF STRING_IS_ANSI}; AAnsiEncoding: IIdTextEncoding = nil{$ENDIF} - ): string; -var - LBytes: TIdBytes; - LPos: Integer; -begin - Result := ''; - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - AAnsiEncoding := iif(AAnsiEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - LBytes := ToBytes(AString, AByteEncoding - {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} - ); - LPos := 0; - repeat - LPos := InputBuffer.IndexOf(LBytes, LPos); - if LPos <> -1 then begin - if ARemoveFromBuffer and AInclusive then begin - Result := InputBuffer.ExtractToString(LPos+Length(LBytes), AByteEncoding - {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} - ); - end else begin - Result := InputBuffer.ExtractToString(LPos, AByteEncoding - {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} - ); - if ARemoveFromBuffer then begin - InputBuffer.Remove(Length(LBytes)); - end; - if AInclusive then begin - Result := Result + AString; - end; - end; - Exit; - end; - LPos := IndyMax(0, InputBuffer.Size - (Length(LBytes)-1)); - ReadFromSource(True, ATimeout, True); - until False; -end; - -procedure TIdIOHandler.Capture(ADest: TStream; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - Capture(ADest, '.', True, AByteEncoding {do not localize} - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); -end; - -procedure TIdIOHandler.Capture(ADest: TStream; out VLineCount: Integer; - const ADelim: string = '.'; AUsesDotTransparency: Boolean = True; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - PerformCapture(ADest, VLineCount, ADelim, AUsesDotTransparency, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); -end; - -procedure TIdIOHandler.Capture(ADest: TStream; ADelim: string; - AUsesDotTransparency: Boolean = True; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); -var - LLineCount: Integer; -begin - PerformCapture(ADest, LLineCount, '.', AUsesDotTransparency, AByteEncoding {do not localize} - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); -end; - -procedure TIdIOHandler.Capture(ADest: TStrings; out VLineCount: Integer; - const ADelim: string = '.'; AUsesDotTransparency: Boolean = True; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - PerformCapture(ADest, VLineCount, ADelim, AUsesDotTransparency, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); -end; - -procedure TIdIOHandler.Capture(ADest: TStrings; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); -var - LLineCount: Integer; -begin - PerformCapture(ADest, LLineCount, '.', True, AByteEncoding {do not localize} - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); -end; - -procedure TIdIOHandler.Capture(ADest: TStrings; const ADelim: string; - AUsesDotTransparency: Boolean = True; AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} - ); -var - LLineCount: Integer; -begin - PerformCapture(ADest, LLineCount, ADelim, AUsesDotTransparency, AByteEncoding - {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} - ); -end; - -procedure TIdIOHandler.InputBufferToStream(AStream: TStream; AByteCount: Integer = -1); -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - FInputBuffer.ExtractToStream(AStream, AByteCount); -end; - -function TIdIOHandler.InputBufferIsEmpty: Boolean; -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - Result := FInputBuffer.Size = 0; -end; - -procedure TIdIOHandler.Write(const ABuffer: TIdBytes; const ALength: Integer = -1; - const AOffset: Integer = 0); -var - LLength: Integer; -begin - LLength := IndyLength(ABuffer, ALength, AOffset); - if LLength > 0 then begin - if FWriteBuffer = nil then begin - WriteDirect(ABuffer, LLength, AOffset); - end else begin - // Write Buffering is enabled - FWriteBuffer.Write(ABuffer, LLength, AOffset); - if (FWriteBuffer.Size >= WriteBufferThreshold) and (WriteBufferThreshold > 0) then begin - repeat - WriteBufferFlush(WriteBufferThreshold); - until FWriteBuffer.Size < WriteBufferThreshold; - end; - end; - end; -end; - -procedure TIdIOHandler.WriteRFCStrings(AStrings: TStrings; AWriteTerminator: Boolean = True; - AByteEncoding: IIdTextEncoding = nil - {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} - ); -var - i: Integer; -begin - AByteEncoding := iif(AByteEncoding, FDefStringEncoding); - {$IFDEF STRING_IS_ANSI} - ASrcEncoding := iif(ASrcEncoding, FDefAnsiEncoding, encOSDefault); - {$ENDIF} - for i := 0 to AStrings.Count - 1 do begin - WriteLnRFC(AStrings[i], AByteEncoding - {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} - ); - end; - if AWriteTerminator then begin - WriteLn('.', AByteEncoding - {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} - ); - end; -end; - -function TIdIOHandler.WriteFile(const AFile: String; AEnableTransferFile: Boolean): Int64; -var - LStream: TStream; - {$IFDEF WIN32_OR_WIN64} - LOldErrorMode : Integer; - {$ENDIF} -begin - // keep the compiler happy (when was this fixed exactly?) - {$IFDEF DCC}{$IFNDEF VCL_8_OR_ABOVE} - Result := -1; - {$ENDIF}{$ENDIF} - - {$IFDEF WIN32_OR_WIN64} - LOldErrorMode := SetErrorMode(SEM_FAILCRITICALERRORS); - try - {$ENDIF} - if not FileExists(AFile) then begin - raise EIdFileNotFound.CreateFmt(RSFileNotFound, [AFile]); - end; - LStream := TIdReadFileExclusiveStream.Create(AFile); - try - Write(LStream); - Result := LStream.Size; - finally - FreeAndNil(LStream); - end; - {$IFDEF WIN32_OR_WIN64} - finally - SetErrorMode(LOldErrorMode) - end; - {$ENDIF} -end; - -function TIdIOHandler.WriteBufferingActive: Boolean; -{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} -begin - Result := FWriteBuffer <> nil; -end; - -procedure TIdIOHandler.CloseGracefully; -begin - FClosedGracefully := True -end; - -procedure TIdIOHandler.InterceptReceive(var VBuffer: TIdBytes); -var - // under ARC, convert a weak reference to a strong reference before working with it - LIntercept: TIdConnectionIntercept; -begin - LIntercept := Intercept; - if LIntercept <> nil then begin - LIntercept.Receive(VBuffer); - end; -end; - -procedure TIdIOHandler.InitComponent; -begin - inherited InitComponent; - FRecvBufferSize := GRecvBufferSizeDefault; - FSendBufferSize := GSendBufferSizeDefault; - FMaxLineLength := IdMaxLineLengthDefault; - FMaxCapturedLines := Id_IOHandler_MaxCapturedLines; - FLargeStream := False; - FReadTimeOut := IdTimeoutDefault; - FInputBuffer := TIdBuffer.Create(BufferRemoveNotify); - FDefStringEncoding := IndyTextEncoding_ASCII; // TODO: use IndyTextEncoding_Default instead... - {$IFDEF STRING_IS_ANSI} - FDefAnsiEncoding := IndyTextEncoding_OSDefault; - {$ENDIF} -end; - -procedure TIdIOHandler.WriteBufferFlush; -begin - WriteBufferFlush(-1); -end; - -procedure TIdIOHandler.WriteBufferOpen; -begin - WriteBufferOpen(-1); -end; - -procedure TIdIOHandler.WriteDirect(const ABuffer: TIdBytes; const ALength: Integer = -1; - const AOffset: Integer = 0); -var - LTemp: TIdBytes; - LPos: Integer; - LSize: Integer; - LByteCount: Integer; - LLastError: Integer; - // under ARC, convert a weak reference to a strong reference before working with it - LIntercept: TIdConnectionIntercept; -begin - // Check if disconnected - CheckForDisconnect(True, True); - - LIntercept := Intercept; - if LIntercept <> nil then begin - // TODO: pass offset/size parameters to the Intercept - // so that a copy is no longer needed here - LTemp := ToBytes(ABuffer, ALength, AOffset); - LIntercept.Send(LTemp); - {$IFDEF USE_OBJECT_ARC}LIntercept := nil;{$ENDIF} - LSize := Length(LTemp); - LPos := 0; - end else begin - LTemp := ABuffer; - LSize := IndyLength(LTemp, ALength, AOffset); - LPos := AOffset; - end; - while LSize > 0 do - begin - LByteCount := WriteDataToTarget(LTemp, LPos, LSize); - if LByteCount < 0 then - begin - LLastError := CheckForError(LByteCount); - if LLastError <> Id_WSAETIMEDOUT then begin - FClosedGracefully := True; - Close; - end; - RaiseError(LLastError); - end; - // TODO - Have a AntiFreeze param which allows the send to be split up so that process - // can be called more. Maybe a prop of the connection, MaxSendSize? - TIdAntiFreezeBase.DoProcess(False); - if LByteCount = 0 then begin - FClosedGracefully := True; - end; - // Check if other side disconnected - CheckForDisconnect; - DoWork(wmWrite, LByteCount); - Inc(LPos, LByteCount); - Dec(LSize, LByteCount); - end; -end; - -initialization - -finalization - FreeAndNil(GIOHandlerClassList) -end. +{ + $Project$ + $Workfile$ + $Revision$ + $DateUTC$ + $Id$ + + This file is part of the Indy (Internet Direct) project, and is offered + under the dual-licensing agreement described on the Indy website. + (http://www.indyproject.org/) + + Copyright: + (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserved. +} +{ + $Log$ +} + +{ + Rev 1.123 2/8/05 5:27:06 PM RLebeau + Bug fix for ReadLn(). + + Added try..finally block to ReadLnSplit(). + + Rev 1.122 1/27/05 3:09:30 PM RLebeau + Updated AllData() to call ReadFromSource() directly instead of using + CheckForDataOnSource(), since ReadFromSource() can return a disconnect + conditon. When data is in the InputBuffer, Connected() always return True + even if the socket is actually disconnected. + + Rev 1.121 12/21/04 3:21:40 AM RLebeau + Removed compiler warning + + Rev 1.120 17/12/2004 17:11:28 ANeillans + Compiler fix + + Rev 1.119 12/12/04 2:23:52 PM RLebeau + Added WriteRFCStrings() method + + Rev 1.118 12/11/2004 9:04:50 PM DSiders + Fixed comparison error in WaitFor. + + Rev 1.117 12/10/04 2:00:24 PM RLebeau + Updated WaitFor() to not return more data than actually needed. + + Updated AllData() to not concatenate the Result on every iteration of the + loop. + + Rev 1.116 11/29/04 10:37:18 AM RLebeau + Updated write buffering methods to prevent Access Violations when used + incorrectly. + + Rev 1.115 11/4/04 12:41:08 PM RLebeau + Bug fix for ReadLn() + + Rev 1.114 10/26/2004 8:43:00 PM JPMugaas + Should be more portable with new references to TIdStrings and TIdStringList. + + Rev 1.113 27.08.2004 21:58:18 Andreas Hausladen + Speed optimization ("const" for string parameters) + + Rev 1.112 8/2/04 5:49:20 PM RLebeau + Moved ConnectTimeout over from TIdIOHandlerSocket + + Rev 1.111 2004.08.01 19:36:14 czhower + Code optimization to WriteFile + + Rev 1.110 7/24/04 12:53:54 PM RLebeau + Compiler fix for WriteFile() + + Rev 1.109 7/23/04 6:39:14 PM RLebeau + Added extra exception handling to WriteFile() + + Rev 1.108 7/21/2004 5:45:10 PM JPMugaas + Updated with Remy's change. This should work better and fix a problem with + looping with ReadStream and ReadUntilDisconnect. + + Rev 1.107 7/21/2004 12:22:18 PM BGooijen + Reverted back 2 versions + + Rev 1.104 6/29/04 12:16:16 PM RLebeau + Updated ReadChar() to call ReadBytes() directly instead of ReadString() + + Rev 1.103 6/17/04 3:01:56 PM RLebeau + Changed ReadStream() to not extract too many bytes from the InputBuffer when + an error occurs + + Rev 1.102 6/12/04 11:36:44 AM RLebeau + Changed ReadString() to pass the ABytes parameter to ReadBytes() instead of + the LBuf length + + Rev 1.100 6/10/2004 6:52:12 PM JPMugaas + Regeneration to fix a bug in the package generator that I created. OOPS!!! + + Rev 1.99 6/9/04 7:36:26 PM RLebeau + ReadString() bug fix + + Rev 1.98 07/06/2004 20:55:36 CCostelloe + Fix for possible memory leak. + + Rev 1.97 5/29/04 10:46:24 PM RLebeau + Updated AllData() to only append values to the result when there is actual + data in the buffer. + + Rev 1.96 29/05/2004 21:07:40 CCostelloe + Bug fix (may need more investigation) + + Rev 1.95 2004.05.20 1:39:54 PM czhower + Last of the IdStream updates + + Rev 1.94 2004.05.20 12:34:22 PM czhower + Removed more non .NET compatible stream read and writes + + Rev 1.93 2004.05.20 11:39:02 AM czhower + IdStreamVCL + + Rev 1.92 5/3/2004 12:57:00 PM BGooijen + Fixes for 0-based + + Rev 1.91 2004.05.03 11:15:44 AM czhower + Changed Find to IndexOf and made 0 based to be consistent. + + Rev 1.90 4/24/04 12:40:04 PM RLebeau + Added Write() overload for Char type. + + Rev 1.89 4/18/2004 11:58:00 PM BGooijen + ReadBytes with count=-1 reads everything available, ( and waits ReadTimeOut + time for data) + + Rev 1.88 4/18/04 2:44:24 PM RLebeau + Read/write support for Int64 values + + Rev 1.87 2004.04.18 12:51:58 AM czhower + Big bug fix with server disconnect and several other bug fixed that I found + along the way. + + Rev 1.86 2004.04.16 11:30:28 PM czhower + Size fix to IdBuffer, optimizations, and memory leaks + + Rev 1.85 2004.04.08 7:06:46 PM czhower + Peek support. + + Rev 1.84 2004.04.08 3:56:28 PM czhower + Fixed bug with Intercept byte count. Also removed Bytes from Buffer. + + Rev 1.83 2004.04.08 2:08:00 AM czhower + Saved before checkin this time... + + Rev 1.82 7/4/2004 4:08:46 PM SGrobety + Re-introduce the IOHandler.MaxCapturedLines property + + Rev 1.81 2004.04.07 3:59:46 PM czhower + Bug fix for WriteDirect. + + Rev 1.79 2004.03.07 11:48:38 AM czhower + Flushbuffer fix + other minor ones found + + Rev 1.78 2004.03.03 11:54:58 AM czhower + IdStream change + + Rev 1.77 2004.03.02 2:47:08 PM czhower + .Net overloads + + Rev 1.76 2004.03.01 5:12:28 PM czhower + -Bug fix for shutdown of servers when connections still existed (AV) + -Implicit HELP support in CMDserver + -Several command handler bugs + -Additional command handler functionality. + + Rev 1.75 2004.02.03 4:16:44 PM czhower + For unit name changes. + + Rev 1.74 2004.01.21 9:36:00 PM czhower + .Net overload + + Rev 1.73 2004.01.21 12:19:58 AM czhower + .Readln overload for .net + + Rev 1.72 2004.01.20 10:03:26 PM czhower + InitComponent + + Rev 1.71 1/11/2004 5:51:04 PM BGooijen + Added AApend parameter to ReadBytes + + Rev 1.70 12/30/2003 7:17:56 PM BGooijen + .net + + Rev 1.69 2003.12.28 1:05:54 PM czhower + .Net changes. + + Rev 1.68 2003.12.28 11:53:28 AM czhower + Removed warning in .net. + + Rev 1.67 2003.11.29 10:15:30 AM czhower + InternalBuffer --> InputBuffer for consistency. + + Rev 1.66 11/23/03 1:46:28 PM RLebeau + Removed "var" specifier from TStrings parameter of ReadStrings(). + + Rev 1.65 11/4/2003 10:27:56 PM DSiders + Removed exceptions moved to IdException.pas. + + Rev 1.64 2003.10.24 10:44:52 AM czhower + IdStream implementation, bug fixes. + + Rev 1.63 10/22/03 2:05:40 PM RLebeau + Fix for TIdIOHandler::Write(TStream) where it was not reading the stream into + the TIdBytes correctly. + + Rev 1.62 10/19/2003 5:55:44 PM BGooijen + Fixed todo in PerformCapture + + Rev 1.61 2003.10.18 12:58:50 PM czhower + Added comment + + Rev 1.60 2003.10.18 12:42:04 PM czhower + Intercept.Disconnect is now called + + Rev 1.59 10/15/2003 7:39:28 PM DSiders + Added a formatted resource string for the exception raised in + TIdIOHandler.MakeIOHandler. + + Rev 1.58 2003.10.14 1:26:50 PM czhower + Uupdates + Intercept support + + Rev 1.57 2003.10.11 5:48:22 PM czhower + -VCL fixes for servers + -Chain suport for servers (Super core) + -Scheduler upgrades + -Full yarn support + + Rev 1.56 9/10/2003 1:50:38 PM SGrobety + Removed all "const" keywords from boolean parameter interfaces. Might trigger + changes in other units. + + Rev 1.55 10/5/2003 10:39:56 PM BGooijen + Write buffering + + Rev 1.54 10/4/2003 11:03:12 PM BGooijen + ReadStream, and functions with network ordering + + Rev 1.53 10/4/2003 7:10:46 PM BGooijen + ReadXXXXX + + Rev 1.52 10/4/2003 3:55:02 PM BGooijen + ReadString, and some Write functions + + Rev 1.51 04/10/2003 13:38:32 HHariri + Write(Integer) support + + Rev 1.50 10/3/2003 12:09:30 AM BGooijen + DotNet + + Rev 1.49 2003.10.02 8:29:14 PM czhower + Changed names of byte conversion routines to be more readily understood and + not to conflict with already in use ones. + + Rev 1.48 2003.10.02 1:18:50 PM czhower + Changed read methods to be overloaded and more consistent. Will break some + code, but nearly all code that uses them is Input. + + Rev 1.47 2003.10.02 10:16:26 AM czhower + .Net + + Rev 1.46 2003.10.01 9:11:16 PM czhower + .Net + + Rev 1.45 2003.10.01 2:46:36 PM czhower + .Net + + Rev 1.42 2003.10.01 11:16:32 AM czhower + .Net + + Rev 1.41 2003.10.01 1:37:34 AM czhower + .Net + + Rev 1.40 2003.10.01 1:12:34 AM czhower + .Net + + Rev 1.39 2003.09.30 1:22:56 PM czhower + Stack split for DotNet + + Rev 1.38 2003.09.18 5:17:58 PM czhower + Implemented OnWork + + Rev 1.37 2003.08.21 10:43:42 PM czhower + Fix to ReadStream from Doychin + + Rev 1.36 08/08/2003 17:32:26 CCostelloe + Removed "virtual" from function ReadLnSplit + + Rev 1.35 07/08/2003 00:25:08 CCostelloe + Function ReadLnSplit added + + Rev 1.34 2003.07.17 1:05:12 PM czhower + More IOCP improvements. + + Rev 1.33 2003.07.14 11:00:50 PM czhower + More IOCP fixes. + + Rev 1.32 2003.07.14 12:54:30 AM czhower + Fixed graceful close detection if it occurs after connect. + + Rev 1.31 2003.07.10 7:40:24 PM czhower + Comments + + Rev 1.30 2003.07.10 4:34:56 PM czhower + Fixed AV, added some new comments + + Rev 1.29 7/1/2003 5:50:44 PM BGooijen + Fixed ReadStream + + Rev 1.28 6/30/2003 10:26:08 AM BGooijen + forgot to remove some code regarding to TIdBuffer.Find + + Rev 1.27 6/29/2003 10:56:26 PM BGooijen + Removed .Memory from the buffer, and added some extra methods + + Rev 1.26 2003.06.25 4:30:00 PM czhower + Temp hack fix for AV problem. Working on real solution now. + + Rev 1.25 23/6/2003 22:33:14 GGrieve + fix CheckForDataOnSource - specify timeout + + Rev 1.24 23/6/2003 06:46:52 GGrieve + allow block on checkForData + + Rev 1.23 6/4/2003 1:07:08 AM BGooijen + changed comment + + Rev 1.22 6/3/2003 10:40:34 PM BGooijen + FRecvBuffer bug fixed, it was freed, but never recreated, resulting in an AV + + Rev 1.21 2003.06.03 6:28:04 PM czhower + Made check for data virtual + + Rev 1.20 2003.06.03 3:43:24 PM czhower + Resolved InputBuffer inconsistency. Added new method and renamed old one. + + Rev 1.19 5/25/2003 03:56:04 AM JPMugaas + Updated for unit rename. + + Rev 1.18 2003.04.17 11:01:12 PM czhower + + Rev 1.17 4/16/2003 3:29:30 PM BGooijen + minor change in ReadBuffer + + Rev 1.16 4/1/2003 7:54:24 PM BGooijen + ReadLn default terminator changed to LF + + Rev 1.15 3/27/2003 3:24:06 PM BGooijen + MaxLine* is now published + + Rev 1.14 2003.03.25 7:42:12 PM czhower + try finally to WriteStrings + + Rev 1.13 3/24/2003 11:01:36 PM BGooijen + WriteStrings is now buffered to increase speed + + Rev 1.12 3/19/2003 1:02:32 PM BGooijen + changed class function ConstructDefaultIOHandler a little (default parameter) + + Rev 1.11 3/13/2003 10:18:16 AM BGooijen + Server side fibers, bug fixes + + Rev 1.10 3/5/2003 11:03:06 PM BGooijen + Added Intercept here + + Rev 1.9 2/25/2003 11:02:12 PM BGooijen + InputBufferToStream now accepts a bytecount + + Rev 1.8 2003.02.25 1:36:00 AM czhower + + Rev 1.7 12-28-2002 22:28:16 BGooijen + removed warning, added initialization and finalization part. + + Rev 1.6 12-16-2002 20:43:28 BGooijen + Added class function ConstructIOHandler(....), and removed some comments + + Rev 1.5 12-15-2002 23:02:38 BGooijen + added SendBufferSize + + Rev 1.4 12-15-2002 20:50:32 BGooijen + FSendBufferSize was not initialized + + Rev 1.3 12-14-2002 22:14:54 BGooijen + improved method to detect timeouts in ReadLn. + + Rev 1.2 12/11/2002 04:09:28 AM JPMugaas + Updated for new API. + + Rev 1.1 2002.12.07 12:25:56 AM czhower + + Rev 1.0 11/13/2002 08:44:50 AM JPMugaas +} + +unit IdIOHandler; + +interface + +{$I IdCompilerDefines.inc} + +uses + Classes, + IdException, + IdAntiFreezeBase, IdBuffer, IdBaseComponent, IdComponent, IdGlobal, IdExceptionCore, + IdIntercept, IdResourceStringsCore, IdStream; + +(*$HPPEMIT '#if defined(_VCL_ALIAS_RECORDS)' *) +(*$HPPEMIT '#if !defined(UNICODE)' *) +(*$HPPEMIT '#pragma alias "@Idiohandler@TIdIOHandler@SetPortA$qqri"="@Idiohandler@TIdIOHandler@SetPort$qqri"' *) +(*$HPPEMIT '#else' *) +(*$HPPEMIT '#pragma alias "@Idiohandler@TIdIOHandler@SetPortW$qqri"="@Idiohandler@TIdIOHandler@SetPort$qqri"' *) +(*$HPPEMIT '#endif' *) +(*$HPPEMIT '#endif' *) + +const + GRecvBufferSizeDefault = 32 * 1024; + GSendBufferSizeDefault = 32 * 1024; + IdMaxLineLengthDefault = 16 * 1024; + // S.G. 6/4/2004: Maximum number of lines captured + // S.G. 6/4/2004: Default to "unlimited" + Id_IOHandler_MaxCapturedLines = -1; + +type + + EIdIOHandler = class(EIdException); + EIdIOHandlerRequiresLargeStream = class(EIdIOHandler); + EIdIOHandlerStreamDataTooLarge = class(EIdIOHandler); + + TIdIOHandlerClass = class of TIdIOHandler; + + { + How does this fit in in the hierarchy against TIdIOHandlerSocket + Destination - Socket - otehr file descendats it + + TIdIOHandler should only implement an interface. No default functionality + except very simple read/write functions such as ReadUInt32, etc. Functions + that cannot really be optimized beyond their default implementations. + + Some default implementations offer basic non optmized implementations. + + Yes, I know this comment conflicts. Its being worked on. + } + TIdIOHandler = class(TIdComponent) + private + FLargeStream: Boolean; + procedure EnsureInputBytes(AByteCount: Integer); + protected + FClosedGracefully: Boolean; + FConnectTimeout: Integer; + FDestination: string; + FHost: string; + // IOHandlers typically receive more data than they need to complete each + // request. They store this extra data in InputBuffer for future methods to + // use. InputBuffer is what collects the input and keeps it if the current + // method does not need all of it. + // + FInputBuffer: TIdBuffer; + {$IFDEF USE_OBJECT_ARC}[Weak]{$ENDIF} FIntercept: TIdConnectionIntercept; + FMaxCapturedLines: Integer; + FMaxLineAction: TIdMaxLineAction; + FMaxLineLength: Integer; + FOpened: Boolean; + FPort: Integer; + FReadLnSplit: Boolean; + FReadLnTimedOut: Boolean; + FReadTimeOut: Integer; +//TODO: + FRecvBufferSize: Integer; + FSendBufferSize: Integer; + + FWriteBuffer: TIdBuffer; + FWriteBufferThreshold: Integer; + FDefStringEncoding : IIdTextEncoding; + {$IFDEF STRING_IS_ANSI} + FDefAnsiEncoding : IIdTextEncoding; + {$ENDIF} + procedure SetDefStringEncoding(const AEncoding : IIdTextEncoding); + {$IFDEF STRING_IS_ANSI} + procedure SetDefAnsiEncoding(const AEncoding: IIdTextEncoding); + {$ENDIF} + // + procedure BufferRemoveNotify(ASender: TObject; ABytes: Integer); + function GetDestination: string; virtual; + procedure InitComponent; override; + procedure InterceptReceive(var VBuffer: TIdBytes); + {$IFNDEF USE_OBJECT_ARC} + procedure Notification(AComponent: TComponent; Operation: TOperation); override; + {$ENDIF} + procedure PerformCapture(const ADest: TObject; out VLineCount: Integer; + const ADelim: string; AUsesDotTransparency: Boolean; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); virtual; + procedure RaiseConnClosedGracefully; + procedure SetDestination(const AValue: string); virtual; + procedure SetHost(const AValue: string); virtual; + procedure SetPort(AValue: Integer); virtual; + procedure SetIntercept(AValue: TIdConnectionIntercept); virtual; + // This is the main Read function which all other default implementations + // use. + function ReadFromSource(ARaiseExceptionIfDisconnected: Boolean = True; + ATimeout: Integer = IdTimeoutDefault; + ARaiseExceptionOnTimeout: Boolean = True): Integer; + function ReadDataFromSource(var VBuffer: TIdBytes): Integer; virtual; abstract; + function WriteDataToTarget(const ABuffer: TIdBytes; const AOffset, ALength: Integer): Integer; virtual; abstract; + function SourceIsAvailable: Boolean; virtual; abstract; + function CheckForError(ALastResult: Integer): Integer; virtual; abstract; + procedure RaiseError(AError: Integer); virtual; abstract; + public + {$IFDEF WORKAROUND_INLINE_CONSTRUCTORS} + constructor Create(AOwner: TComponent); reintroduce; overload; + {$ENDIF} + procedure AfterAccept; virtual; + function Connected: Boolean; virtual; + destructor Destroy; override; + // CheckForDisconnect allows the implementation to check the status of the + // connection at the request of the user or this base class. + procedure CheckForDisconnect(ARaiseExceptionIfDisconnected: Boolean = True; + AIgnoreBuffer: Boolean = False); virtual; abstract; + // Does not wait or raise any exceptions. Just reads whatever data is + // available (if any) into the buffer. Must NOT raise closure exceptions. + // It is used to get avialable data, and check connection status. That is + // it can set status flags about the connection. + function CheckForDataOnSource(ATimeout: Integer = 0): Boolean; virtual; + procedure Close; virtual; + procedure CloseGracefully; virtual; + class function MakeDefaultIOHandler(AOwner: TComponent = nil) + : TIdIOHandler; + class function MakeIOHandler(ABaseType: TIdIOHandlerClass; + AOwner: TComponent = nil): TIdIOHandler; + // Variant of MakeIOHandler() which returns nil if it cannot find a registered IOHandler + class function TryMakeIOHandler(ABaseType: TIdIOHandlerClass; + AOwner: TComponent = nil): TIdIOHandler; + class procedure RegisterIOHandler; + class procedure SetDefaultClass; + function WaitFor(const AString: string; ARemoveFromBuffer: Boolean = True; + AInclusive: Boolean = False; AByteEncoding: IIdTextEncoding = nil; + ATimeout: Integer = IdTimeoutDefault + {$IFDEF STRING_IS_ANSI}; AAnsiEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; + // This is different than WriteDirect. WriteDirect goes + // directly to the network or next level. WriteBuffer allows for buffering + // using WriteBuffers. This should be the only call to WriteDirect + // unless the calls that bypass this are aware of WriteBuffering or are + // intended to bypass it. + procedure Write(const ABuffer: TIdBytes; const ALength: Integer = -1; const AOffset: Integer = 0); overload; virtual; + // This is the main write function which all other default implementations + // use. If default implementations are used, this must be implemented. + procedure WriteDirect(const ABuffer: TIdBytes; const ALength: Integer = -1; const AOffset: Integer = 0); + // + procedure Open; virtual; + function Readable(AMSec: Integer = IdTimeoutDefault): Boolean; virtual; + // + // Optimal Extra Methods + // + // These methods are based on the core methods. While they can be + // overridden, they are so simple that it is rare a more optimal method can + // be implemented. Because of this they are not overrideable. + // + // + // Write Methods + // + // Only the ones that have a hope of being better optimized in descendants + // have been marked virtual + procedure Write(const AOut: string; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); overload; virtual; + procedure WriteLn(AEncoding: IIdTextEncoding = nil); overload; + procedure WriteLn(const AOut: string; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); overload; virtual; + procedure WriteLnRFC(const AOut: string = ''; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); virtual; + procedure Write(AValue: TStrings; AWriteLinesCount: Boolean = False; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); overload; virtual; + procedure Write(AValue: Byte); overload; + procedure Write(AValue: Char; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); overload; + + // for iOS64, Delphi's Longint and LongWord are 64bit, so we can't rely on + // Write(Longint) and ReadLongint() being 32bit anymore, for instance when + // sending/reading a TStream with LargeStream=False. So adding new (U)IntX + // methods and deprecating the old ones... + // + procedure Write(AValue: Int16; AConvert: Boolean = True); overload; + procedure Write(AValue: UInt16; AConvert: Boolean = True); overload; + procedure Write(AValue: Int32; AConvert: Boolean = True); overload; + procedure Write(AValue: UInt32; AConvert: Boolean = True); overload; + procedure Write(AValue: Int64; AConvert: Boolean = True); overload; + procedure Write(AValue: TIdUInt64; AConvert: Boolean = True); overload; + // + + procedure Write(AStream: TStream; ASize: TIdStreamSize = 0; + AWriteByteCount: Boolean = False); overload; virtual; + procedure WriteRFCStrings(AStrings: TStrings; AWriteTerminator: Boolean = True; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); + // Not overloaded because it does not have a unique type for source + // and could be easily unresolvable with future additions + function WriteFile(const AFile: String; AEnableTransferFile: Boolean = False): Int64; virtual; + // + // Read methods + // + function AllData(AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; virtual; + function InputLn(const AMask: string = ''; AEcho: Boolean = True; + ATabWidth: Integer = 8; AMaxLineLength: Integer = -1; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; AAnsiEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; virtual; + // Capture + // Not virtual because each calls PerformCapture which is virtual + procedure Capture(ADest: TStream; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); overload; // .Net overload + procedure Capture(ADest: TStream; ADelim: string; + AUsesDotTransparency: Boolean = True; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); overload; + procedure Capture(ADest: TStream; out VLineCount: Integer; + const ADelim: string = '.'; AUsesDotTransparency: Boolean = True; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); overload; + procedure Capture(ADest: TStrings; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); overload; // .Net overload + procedure Capture(ADest: TStrings; const ADelim: string; + AUsesDotTransparency: Boolean = True; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); overload; + procedure Capture(ADest: TStrings; out VLineCount: Integer; + const ADelim: string = '.'; AUsesDotTransparency: Boolean = True; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); overload; + // + // Read___ + // Cannot overload, compiler cannot overload on return values + // + procedure ReadBytes(var VBuffer: TIdBytes; AByteCount: Integer; AAppend: Boolean = True); virtual; + // ReadLn + function ReadLn(AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; overload; // .Net overload + function ReadLn(ATerminator: string; AByteEncoding: IIdTextEncoding + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; overload; + function ReadLn(ATerminator: string; ATimeout: Integer = IdTimeoutDefault; + AMaxLineLength: Integer = -1; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; overload; virtual; + //RLebeau: added for RFC 822 retrieves + function ReadLnRFC(var VMsgEnd: Boolean; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; overload; + function ReadLnRFC(var VMsgEnd: Boolean; const ALineTerminator: string; + const ADelim: string = '.'; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; overload; + function ReadLnWait(AFailCount: Integer = MaxInt; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; virtual; + // Added for retrieving lines over 16K long} + function ReadLnSplit(var AWasSplit: Boolean; ATerminator: string = LF; + ATimeout: Integer = IdTimeoutDefault; AMaxLineLength: Integer = -1; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; + // Read - Simple Types + function ReadChar(AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): Char; + function ReadByte: Byte; + function ReadString(ABytes: Integer; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; + + // for iOS64, Delphi's Longint and LongWord are changed to 64bit, so we can't + // rely on Write(Longint) and ReadLongint() being 32bit anymore, for instance + // when sending/reading a TStream with LargeStream=False. So adding new (U)IntX + // methods and deprecating the old ones... + // + function ReadInt16(AConvert: Boolean = True): Int16; + function ReadUInt16(AConvert: Boolean = True): UInt16; + function ReadInt32(AConvert: Boolean = True): Int32; + function ReadUInt32(AConvert: Boolean = True): UInt32; + function ReadInt64(AConvert: Boolean = True): Int64; + function ReadUInt64(AConvert: Boolean = True): TIdUInt64; + // + function ReadSmallInt(AConvert: Boolean = True): Int16; {$IFDEF HAS_DEPRECATED}deprecated{$IFDEF HAS_DEPRECATED_MSG} 'Use ReadInt16()'{$ENDIF};{$ENDIF} + function ReadWord(AConvert: Boolean = True): UInt16; {$IFDEF HAS_DEPRECATED}deprecated{$IFDEF HAS_DEPRECATED_MSG} 'Use ReadUInt16()'{$ENDIF};{$ENDIF} + function ReadLongInt(AConvert: Boolean = True): Int32; {$IFDEF HAS_DEPRECATED}deprecated{$IFDEF HAS_DEPRECATED_MSG} 'Use ReadInt32()'{$ENDIF};{$ENDIF} + function ReadLongWord(AConvert: Boolean = True): UInt32; {$IFDEF HAS_DEPRECATED}deprecated{$IFDEF HAS_DEPRECATED_MSG} 'Use ReadUInt32()'{$ENDIF};{$ENDIF} + // + + procedure ReadStream(AStream: TStream; AByteCount: TIdStreamSize = -1; + AReadUntilDisconnect: Boolean = False); virtual; + procedure ReadStrings(ADest: TStrings; AReadLinesCount: Integer = -1; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); + // + procedure Discard(AByteCount: Int64); + procedure DiscardAll; + // + // WriteBuffering Methods + // + procedure WriteBufferCancel; virtual; + procedure WriteBufferClear; virtual; + procedure WriteBufferClose; virtual; + procedure WriteBufferFlush; overload; //.Net overload + procedure WriteBufferFlush(AByteCount: Integer); overload; virtual; + procedure WriteBufferOpen; overload; //.Net overload + procedure WriteBufferOpen(AThreshold: Integer); overload; virtual; + function WriteBufferingActive: Boolean; + // + // InputBuffer Methods + // + function InputBufferIsEmpty: Boolean; + // + // These two are direct access and do no reading of connection + procedure InputBufferToStream(AStream: TStream; AByteCount: Integer = -1); + function InputBufferAsString(AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; + // + // Properties + // + property ConnectTimeout: Integer read FConnectTimeout write FConnectTimeout default 0; + property ClosedGracefully: Boolean read FClosedGracefully; + // TODO: Need to name this consistent. Originally no access was allowed, + // but new model requires it for writing. Will decide after next set + // of changes are complete what to do with Buffer prop. + // + // Is used by SuperCore + property InputBuffer: TIdBuffer read FInputBuffer; + //currently an option, as LargeFile support changes the data format + property LargeStream: Boolean read FLargeStream write FLargeStream; + property MaxCapturedLines: Integer read FMaxCapturedLines write FMaxCapturedLines default Id_IOHandler_MaxCapturedLines; + property Opened: Boolean read FOpened; + property ReadTimeout: Integer read FReadTimeOut write FReadTimeOut default IdTimeoutDefault; + property ReadLnTimedout: Boolean read FReadLnTimedout ; + property WriteBufferThreshold: Integer read FWriteBufferThreshold; + property DefStringEncoding : IIdTextEncoding read FDefStringEncoding write SetDefStringEncoding; + {$IFDEF STRING_IS_ANSI} + property DefAnsiEncoding : IIdTextEncoding read FDefAnsiEncoding write SetDefAnsiEncoding; + {$ENDIF} + // + // Events + // + property OnWork; + property OnWorkBegin; + property OnWorkEnd; + published + property Destination: string read GetDestination write SetDestination; + property Host: string read FHost write SetHost; + property Intercept: TIdConnectionIntercept read FIntercept write SetIntercept; + property MaxLineLength: Integer read FMaxLineLength write FMaxLineLength default IdMaxLineLengthDefault; + property MaxLineAction: TIdMaxLineAction read FMaxLineAction write FMaxLineAction; + property Port: Integer read FPort write SetPort; + // RecvBufferSize is used by some methods that read large amounts of data. + // RecvBufferSize is the amount of data that will be requested at each read + // cycle. RecvBuffer is used to receive then send to the Intercepts, after + // that it goes to InputBuffer + property RecvBufferSize: Integer read FRecvBufferSize write FRecvBufferSize + default GRecvBufferSizeDefault; + // SendBufferSize is used by some methods that have to break apart large + // amounts of data into smaller pieces. This is the buffer size of the + // chunks that it will create and use. + property SendBufferSize: Integer read FSendBufferSize write FSendBufferSize + default GSendBufferSizeDefault; + end; + +implementation + +uses + //facilitate inlining only. + {$IFDEF DOTNET} + {$IFDEF USE_INLINE} + System.IO, + {$ENDIF} + {$ENDIF} + {$IFDEF WIN32_OR_WIN64} + Windows, + {$ENDIF} + {$IFDEF USE_VCL_POSIX} + {$IFDEF OSX} + Macapi.CoreServices, + {$ENDIF} + {$ENDIF} + {$IFDEF HAS_UNIT_Generics_Collections} + System.Generics.Collections, + {$ENDIF} + IdStack, IdStackConsts, IdResourceStrings, + SysUtils; + +type + {$IFDEF HAS_GENERICS_TList} + TIdIOHandlerClassList = TList; + {$ELSE} + // TODO: flesh out to match TList for non-Generics compilers + TIdIOHandlerClassList = TList; + {$ENDIF} + +var + GIOHandlerClassDefault: TIdIOHandlerClass = nil; + GIOHandlerClassList: TIdIOHandlerClassList = nil; + +{ TIdIOHandler } + +{$IFDEF WORKAROUND_INLINE_CONSTRUCTORS} +constructor TIdIOHandler.Create(AOwner: TComponent); +begin + inherited Create(AOwner); +end; +{$ENDIF} + +procedure TIdIOHandler.Close; +//do not do FInputBuffer.Clear; here. +//it breaks reading when remote connection does a disconnect +var + // under ARC, convert a weak reference to a strong reference before working with it + LIntercept: TIdConnectionIntercept; +begin + try + LIntercept := Intercept; + if LIntercept <> nil then begin + LIntercept.Disconnect; + end; + finally + FOpened := False; + WriteBufferClear; + end; +end; + +destructor TIdIOHandler.Destroy; +begin + Close; + FreeAndNil(FInputBuffer); + FreeAndNil(FWriteBuffer); + inherited Destroy; +end; + +procedure TIdIOHandler.AfterAccept; +begin + // +end; + +procedure TIdIOHandler.Open; +begin + FOpened := False; + FClosedGracefully := False; + WriteBufferClear; + FInputBuffer.Clear; + FOpened := True; +end; + +// under ARC, all weak references to a freed object get nil'ed automatically +{$IFNDEF USE_OBJECT_ARC} +procedure TIdIOHandler.Notification(AComponent: TComponent; Operation: TOperation); +begin + if (Operation = opRemove) and (AComponent = FIntercept) then begin + FIntercept := nil; + end; + inherited Notification(AComponent, OPeration); +end; +{$ENDIF} + +procedure TIdIOHandler.SetIntercept(AValue: TIdConnectionIntercept); +begin + {$IFDEF USE_OBJECT_ARC} + // under ARC, all weak references to a freed object get nil'ed automatically + FIntercept := AValue; + {$ELSE} + if FIntercept <> AValue then begin + // remove self from the Intercept's free notification list + if Assigned(FIntercept) then begin + FIntercept.RemoveFreeNotification(Self); + end; + FIntercept := AValue; + // add self to the Intercept's free notification list + if Assigned(AValue) then begin + AValue.FreeNotification(Self); + end; + end; + {$ENDIF} +end; + +class procedure TIdIOHandler.SetDefaultClass; +begin + GIOHandlerClassDefault := Self; + RegisterIOHandler; +end; + +procedure TIdIOHandler.SetDefStringEncoding(const AEncoding: IIdTextEncoding); +var + LEncoding: IIdTextEncoding; +begin + if FDefStringEncoding <> AEncoding then + begin + LEncoding := AEncoding; + EnsureEncoding(LEncoding); + FDefStringEncoding := LEncoding; + end; +end; + +{$IFDEF STRING_IS_ANSI} +procedure TIdIOHandler.SetDefAnsiEncoding(const AEncoding: IIdTextEncoding); +var + LEncoding: IIdTextEncoding; +begin + if FDefAnsiEncoding <> AEncoding then + begin + LEncoding := AEncoding; + EnsureEncoding(LEncoding, encOSDefault); + FDefAnsiEncoding := LEncoding; + end; +end; +{$ENDIF} + +class function TIdIOHandler.MakeDefaultIOHandler(AOwner: TComponent = nil): TIdIOHandler; +begin + Result := GIOHandlerClassDefault.Create(AOwner); +end; + +class procedure TIdIOHandler.RegisterIOHandler; +begin + if GIOHandlerClassList = nil then begin + GIOHandlerClassList := TIdIOHandlerClassList.Create; + end; + {$IFNDEF DOTNET_EXCLUDE} + //TODO: Reenable this. Dot net wont allow class references as objects + // Use an array? + if GIOHandlerClassList.IndexOf(Self) = -1 then begin + GIOHandlerClassList.Add(Self); + end; + {$ENDIF} +end; + +{ + Creates an IOHandler of type ABaseType, or descendant. +} +class function TIdIOHandler.MakeIOHandler(ABaseType: TIdIOHandlerClass; + AOwner: TComponent = nil): TIdIOHandler; +begin + Result := TryMakeIOHandler(ABaseType, AOwner); + if not Assigned(Result) then begin + raise EIdException.CreateFmt(RSIOHandlerTypeNotInstalled, [ABaseType.ClassName]); // TODO: create a new Exception class for this + end; +end; + +class function TIdIOHandler.TryMakeIOHandler(ABaseType: TIdIOHandlerClass; + AOwner: TComponent = nil): TIdIOHandler; +var + i: Integer; +begin + if GIOHandlerClassList <> nil then begin + for i := GIOHandlerClassList.Count - 1 downto 0 do begin + if TIdIOHandlerClass(GIOHandlerClassList[i]).InheritsFrom(ABaseType) then begin + Result := TIdIOHandlerClass(GIOHandlerClassList[i]).Create; + Exit; + end; + end; + end; + Result := nil; +end; + +function TIdIOHandler.GetDestination: string; +begin + Result := FDestination; +end; + +procedure TIdIOHandler.SetDestination(const AValue: string); +begin + FDestination := AValue; +end; + +procedure TIdIOHandler.BufferRemoveNotify(ASender: TObject; ABytes: Integer); +begin + DoWork(wmRead, ABytes); +end; + +procedure TIdIOHandler.WriteBufferOpen(AThreshold: Integer); +begin + if FWriteBuffer <> nil then begin + FWriteBuffer.Clear; + end else begin + FWriteBuffer := TIdBuffer.Create; + end; + FWriteBufferThreshold := AThreshold; +end; + +procedure TIdIOHandler.WriteBufferClose; +begin + try + WriteBufferFlush; + finally FreeAndNil(FWriteBuffer); end; +end; + +procedure TIdIOHandler.WriteBufferFlush(AByteCount: Integer); +var + LBytes: TIdBytes; +begin + if FWriteBuffer <> nil then begin + if FWriteBuffer.Size > 0 then begin + FWriteBuffer.ExtractToBytes(LBytes, AByteCount); + WriteDirect(LBytes); + end; + end; +end; + +procedure TIdIOHandler.WriteBufferClear; +begin + if FWriteBuffer <> nil then begin + FWriteBuffer.Clear; + end; +end; + +procedure TIdIOHandler.WriteBufferCancel; +begin + WriteBufferClear; + WriteBufferClose; +end; + +procedure TIdIOHandler.Write(const AOut: string; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); +begin + if AOut <> '' then begin + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + ASrcEncoding := iif(ASrcEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + Write( + ToBytes(AOut, -1, 1, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} + ) + ); + end; +end; + +procedure TIdIOHandler.Write(AValue: Byte); +begin + Write(ToBytes(AValue)); +end; + +procedure TIdIOHandler.Write(AValue: Char; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); +begin + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + ASrcEncoding := iif(ASrcEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + Write( + ToBytes(AValue, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} + ) + ); +end; + +procedure TIdIOHandler.Write(AValue: UInt32; AConvert: Boolean = True); +begin + if AConvert then begin + AValue := GStack.HostToNetwork(AValue); + end; + Write(ToBytes(AValue)); +end; + +procedure TIdIOHandler.Write(AValue: Int32; AConvert: Boolean = True); +begin + if AConvert then begin + AValue := Int32(GStack.HostToNetwork(UInt32(AValue))); + end; + Write(ToBytes(AValue)); +end; + +{$IFDEF DCC} + {$IFNDEF VCL_7_OR_ABOVE} + // RLebeau 5/13/2015: The Write(Int64) method produces an "Internal error URW533" + // compiler error in Delphi 5, and an "Internal error URW699" compiler error in + // Delphi 6, so need to use some workarounds for those versions... + {$DEFINE AVOID_URW_ERRORS} + {$ENDIF} +{$ENDIF} + +{$IFDEF HAS_UInt64} + {$IFDEF BROKEN_UInt64_HPPEMIT} + {$DEFINE HAS_TIdUInt64_QuadPart} + {$ENDIF} +{$ELSE} + {$IFNDEF HAS_QWord} + {$DEFINE HAS_TIdUInt64_QuadPart} + {$ENDIF} +{$ENDIF} + +procedure TIdIOHandler.Write(AValue: Int64; AConvert: Boolean = True); +{$IFDEF AVOID_URW_ERRORS} +var + LTemp: Int64; +{$ELSE} + {$IFDEF HAS_TIdUInt64_QuadPart} +var + LTemp: TIdUInt64; + {$ENDIF} +{$ENDIF} +begin + if AConvert then begin + {$IFDEF AVOID_URW_ERRORS} + // assigning to a local variable to avoid an "Internal error URW533" compiler + // error in Delphi 5, and an "Internal error URW699" compiler error in Delphi + // 6. Later versions seem OK without it... + LTemp := GStack.HostToNetwork(UInt64(AValue)); + AValue := LTemp; + {$ELSE} + {$IFDEF HAS_TIdUInt64_QuadPart} + // assigning to a local variable if UInt64 is not a native type, or if using + // a C++Builder version that has problems with UInt64 parameters... + LTemp.QuadPart := UInt64(AValue); + LTemp := GStack.HostToNetwork(LTemp); + AValue := Int64(LTemp.QuadPart); + {$ELSE} + AValue := Int64(GStack.HostToNetwork(UInt64(AValue))); + {$ENDIF} + {$ENDIF} + end; + Write(ToBytes(AValue)); +end; + +procedure TIdIOHandler.Write(AValue: TIdUInt64; AConvert: Boolean = True); +begin + if AConvert then begin + AValue := GStack.HostToNetwork(AValue); + end; + Write(ToBytes(AValue)); +end; + +procedure TIdIOHandler.Write(AValue: TStrings; AWriteLinesCount: Boolean = False; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); +var + i: Integer; + LBufferingStarted: Boolean; +begin + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + ASrcEncoding := iif(ASrcEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + LBufferingStarted := not WriteBufferingActive; + if LBufferingStarted then begin + WriteBufferOpen; + end; + try + if AWriteLinesCount then begin + Write(AValue.Count); + end; + for i := 0 to AValue.Count - 1 do begin + WriteLn(AValue.Strings[i], AByteEncoding + {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} + ); + end; + if LBufferingStarted then begin + WriteBufferClose; + end; + except + if LBufferingStarted then begin + WriteBufferCancel; + end; + raise; + end; +end; + +procedure TIdIOHandler.Write(AValue: UInt16; AConvert: Boolean = True); +begin + if AConvert then begin + AValue := GStack.HostToNetwork(AValue); + end; + Write(ToBytes(AValue)); +end; + +procedure TIdIOHandler.Write(AValue: Int16; AConvert: Boolean = True); +begin + if AConvert then begin + AValue := Int16(GStack.HostToNetwork(UInt16(AValue))); + end; + Write(ToBytes(AValue)); +end; + +procedure TIdIOHandler.EnsureInputBytes(AByteCount: Integer); +begin + Assert(FInputBuffer<>nil); + if AByteCount > 0 then begin + // Read from stack until we have enough data + while InputBuffer.Size < AByteCount do begin + // RLebeau: in case the other party disconnects + // after all of the bytes were transmitted ok. + // No need to throw an exception just yet... + if ReadFromSource(False) > 0 then begin + if InputBuffer.Size >= AByteCount then begin + Break; // we have enough data now + end; + end; + CheckForDisconnect(True, True); + end; + end + else if AByteCount < 0 then begin + if InputBufferIsEmpty then begin + // Read whatever data is currently on the stack + ReadFromSource(False, ReadTimeout, False); + CheckForDisconnect(True, True); + end; + end; +end; + +function TIdIOHandler.ReadString(ABytes: Integer; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; +begin + if ABytes > 0 then begin + EnsureInputBytes(ABytes); + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + Result := InputBuffer.ExtractToString(ABytes, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); + end else begin + Result := ''; + end; +end; + +procedure TIdIOHandler.ReadStrings(ADest: TStrings; AReadLinesCount: Integer = -1; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); +var + i: Integer; +begin + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + if AReadLinesCount < 0 then begin + AReadLinesCount := ReadInt32; + end; + ADest.BeginUpdate; + try + for i := 0 to AReadLinesCount - 1 do begin + ADest.Add(ReadLn(AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + )); + end; + finally + ADest.EndUpdate; + end; +end; + +function TIdIOHandler.ReadUInt16(AConvert: Boolean = True): UInt16; +begin + EnsureInputBytes(SizeOf(UInt16)); + Result := InputBuffer.ExtractToUInt16(-1, AConvert); +end; + +{$I IdDeprecatedImplBugOff.inc} +function TIdIOHandler.ReadWord(AConvert: Boolean = True): UInt16; +{$I IdDeprecatedImplBugOn.inc} +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + Result := ReadUInt16(AConvert); +end; + +function TIdIOHandler.ReadInt16(AConvert: Boolean = True): Int16; +begin + EnsureInputBytes(SizeOf(Int16)); + Result := Int16(InputBuffer.ExtractToUInt16(-1, AConvert)); +end; + +{$I IdDeprecatedImplBugOff.inc} +function TIdIOHandler.ReadSmallInt(AConvert: Boolean = True): Int16; +{$I IdDeprecatedImplBugOn.inc} +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + Result := ReadInt16(AConvert); +end; + +function TIdIOHandler.ReadChar(AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): Char; +var + I, J, NumChars, NumBytes: Integer; + LBytes: TIdBytes; + {$IFDEF DOTNET} + LChars: array[0..1] of Char; + {$ELSE} + LChars: TIdWideChars; + {$IFDEF STRING_IS_ANSI} + LWTmp: TIdUnicodeString; + LATmp: TIdBytes; + {$ENDIF} + {$ENDIF} +begin + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + // 2 Chars to handle UTF-16 surrogates + NumBytes := AByteEncoding.GetMaxByteCount(2); + SetLength(LBytes, NumBytes); + {$IFNDEF DOTNET} + SetLength(LChars, 2); + {$ENDIF} + NumChars := 0; + if NumBytes > 0 then + begin + for I := 1 to NumBytes do + begin + LBytes[I-1] := ReadByte; + NumChars := AByteEncoding.GetChars(LBytes, 0, I, LChars, 0); + if NumChars > 0 then begin + // RLebeau 10/19/2012: when Indy switched to its own UTF-8 implementation + // to avoid the MB_ERR_INVALID_CHARS flag on Windows, it accidentally broke + // this loop! Since this is not commonly used, this was not noticed until + // now. On Windows at least, GetChars() now returns >0 for an invalid + // sequence, so we have to check if any of the returned characters are the + // Unicode U+FFFD character, indicating bad data... + for J := 0 to NumChars-1 do begin + if LChars[J] = TIdWideChar($FFFD) then begin + // keep reading... + NumChars := 0; + Break; + end; + end; + if NumChars > 0 then begin + Break; + end; + end; + end; + end; + {$IFDEF STRING_IS_UNICODE} + // RLebeau: if the bytes were decoded into surrogates, the second + // surrogate is lost here, as it can't be returned unless we cache + // it somewhere for the the next ReadChar() call to retreive. Just + // raise an error for now. Users will have to update their code to + // read surrogates differently... + Assert(NumChars = 1); + Result := LChars[0]; + {$ELSE} + // RLebeau: since we can only return an AnsiChar here, let's convert + // the decoded characters, surrogates and all, into their Ansi + // representation. This will have the same problem as above if the + // conversion results in a multibyte character sequence... + SetString(LWTmp, PWideChar(LChars), NumChars); + LATmp := ADestEncoding.GetBytes(LWTmp); // convert to Ansi + Assert(Length(LATmp) = 1); + Result := Char(LATmp[0]); + {$ENDIF} +end; + +function TIdIOHandler.ReadByte: Byte; +begin + EnsureInputBytes(SizeOf(Byte)); + Result := InputBuffer.ExtractToUInt8(-1); +end; + +function TIdIOHandler.ReadInt32(AConvert: Boolean): Int32; +begin + EnsureInputBytes(SizeOf(Int32)); + Result := Int32(InputBuffer.ExtractToUInt32(-1, AConvert)); +end; + +{$I IdDeprecatedImplBugOff.inc} +function TIdIOHandler.ReadLongInt(AConvert: Boolean): Int32; +{$I IdDeprecatedImplBugOn.inc} +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + Result := ReadInt32(AConvert); +end; + +function TIdIOHandler.ReadInt64(AConvert: boolean): Int64; +var + LTemp: TIdUInt64; +begin + EnsureInputBytes(SizeOf(Int64)); + LTemp := InputBuffer.ExtractToUInt64(-1, AConvert); + Result := Int64(LTemp{$IFDEF HAS_TIdUInt64_QuadPart}.QuadPart{$ENDIF}); +end; + +function TIdIOHandler.ReadUInt64(AConvert: boolean): TIdUInt64; +begin + EnsureInputBytes(SizeOf(TIdUInt64)); + Result := InputBuffer.ExtractToUInt64(-1, AConvert); +end; + +function TIdIOHandler.ReadUInt32(AConvert: Boolean): UInt32; +begin + EnsureInputBytes(SizeOf(UInt32)); + Result := InputBuffer.ExtractToUInt32(-1, AConvert); +end; + +{$I IdDeprecatedImplBugOff.inc} +function TIdIOHandler.ReadLongWord(AConvert: Boolean): UInt32; +{$I IdDeprecatedImplBugOn.inc} +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + Result := ReadUInt32(AConvert); +end; + +function TIdIOHandler.ReadLn(AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + Result := ReadLn(LF, IdTimeoutDefault, -1, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); +end; + +function TIdIOHandler.ReadLn(ATerminator: string; AByteEncoding: IIdTextEncoding + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + Result := ReadLn(ATerminator, IdTimeoutDefault, -1, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); +end; + +function TIdIOHandler.ReadLn(ATerminator: string; ATimeout: Integer = IdTimeoutDefault; + AMaxLineLength: Integer = -1; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; +var + LInputBufferSize: Integer; + LStartPos: Integer; + LTermPos: Integer; + LReadLnStartTime: TIdTicks; + LTerm, LResult: TIdBytes; +begin + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + if AMaxLineLength < 0 then begin + AMaxLineLength := MaxLineLength; + end; + // User may pass '' if they need to pass arguments beyond the first. + if ATerminator = '' then begin + ATerminator := LF; + end; + // TODO: encountered an email that was using charset "cp1026", which encodes + // a LF character to byte $25 instead of $0A (and decodes byte $0A to character + // #$8E instead of #$A). To account for that, don't encoding the LF using the + // specified encoding anymore, force the encoding to what it should be. But + // what if UTF-16 is being used? + (* + if ATerminator = LF then begin + LTerm := ToBytes(Byte($0A)); + end else begin + LTerm := ToBytes(ATerminator, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); + end; + *) + LTerm := ToBytes(ATerminator, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); + FReadLnSplit := False; + FReadLnTimedOut := False; + LTermPos := -1; + LStartPos := 0; + LReadLnStartTime := Ticks64; + repeat + LInputBufferSize := FInputBuffer.Size; + if LInputBufferSize > 0 then begin + if LStartPos < LInputBufferSize then begin + LTermPos := FInputBuffer.IndexOf(LTerm, LStartPos); + end else begin + LTermPos := -1; + end; + LStartPos := IndyMax(LInputBufferSize-(Length(LTerm)-1), 0); + end; + // if the line length is limited and terminator is found after the limit or not found and the limit is exceeded + if (AMaxLineLength > 0) and ((LTermPos > AMaxLineLength) or ((LTermPos = -1) and (LStartPos > AMaxLineLength))) then begin + if MaxLineAction = maException then begin + raise EIdReadLnMaxLineLengthExceeded.Create(RSReadLnMaxLineLengthExceeded); + end; + // RLebeau: WARNING - if the line is using multibyte character sequences + // and a sequence staddles the AMaxLineLength boundary, this will chop + // the sequence, producing invalid data! + FReadLnSplit := True; + Result := FInputBuffer.ExtractToString(AMaxLineLength, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); + Exit; + end + // ReadFromSource blocks - do not call unless we need to + else if LTermPos = -1 then begin + // ReadLn needs to call this as data may exist in the buffer, but no EOL yet disconnected + CheckForDisconnect(True, True); + // Can only return -1 if timeout + FReadLnTimedOut := ReadFromSource(True, ATimeout, False) = -1; + if (not FReadLnTimedOut) and (ATimeout >= 0) then begin + if GetElapsedTicks(LReadLnStartTime) >= UInt32(ATimeout) then begin + FReadLnTimedOut := True; + end; + end; + if FReadLnTimedOut then begin + Result := ''; + Exit; + end; + end; + until LTermPos > -1; + // Extract actual data + { + IMPORTANT!!! + + When encoding from UTF8 to Unicode or ASCII, you will not always get the same + number of bytes that you input so you may have to recalculate LTermPos since + that was based on the number of bytes in the input stream. If do not do this, + you will probably get an incorrect result or a range check error since the + string is shorter then the original buffer position. + + JPM + } + // RLebeau 11/19/08: this is no longer needed as the terminator is encoded to raw bytes now ... + { + Result := FInputBuffer.Extract(LTermPos + Length(ATerminator), AEncoding); + LTermPos := IndyMin(LTermPos, Length(Result)); + if (ATerminator = LF) and (LTermPos > 0) then begin + if Result[LTermPos] = CR then begin + Dec(LTermPos); + end; + end; + SetLength(Result, LTermPos); + } + FInputBuffer.ExtractToBytes(LResult, LTermPos + Length(LTerm)); + if (ATerminator = LF) and (LTermPos > 0) then begin + if LResult[LTermPos-1] = Ord(CR) then begin + Dec(LTermPos); + end; + end; + Result := BytesToString(LResult, 0, LTermPos, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); +end; + +function TIdIOHandler.ReadLnRFC(var VMsgEnd: Boolean; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + Result := ReadLnRFC(VMsgEnd, LF, '.', AByteEncoding {do not localize} + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); +end; + +function TIdIOHandler.ReadLnRFC(var VMsgEnd: Boolean; const ALineTerminator: string; + const ADelim: String = '.'; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; +begin + Result := ReadLn(ALineTerminator, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); + // Do not use ATerminator since always ends with . (standard) + if Result = ADelim then + begin + VMsgEnd := True; + Exit; + end; + if TextStartsWith(Result, '..') then begin {do not localize} + Delete(Result, 1, 1); + end; + VMsgEnd := False; +end; + +function TIdIOHandler.ReadLnSplit(var AWasSplit: Boolean; ATerminator: string = LF; + ATimeout: Integer = IdTimeoutDefault; AMaxLineLength: Integer = -1; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; +var + FOldAction: TIdMaxLineAction; +begin + FOldAction := MaxLineAction; + MaxLineAction := maSplit; + try + Result := ReadLn(ATerminator, ATimeout, AMaxLineLength, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); + AWasSplit := FReadLnSplit; + finally + MaxLineAction := FOldAction; + end; +end; + +function TIdIOHandler.ReadLnWait(AFailCount: Integer = MaxInt; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; +var + LAttempts: Integer; +begin + // MtW: this is mostly used when empty lines could be sent. + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + Result := ''; + LAttempts := 0; + while LAttempts < AFailCount do + begin + Result := Trim(ReadLn(AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + )); + if Length(Result) > 0 then begin + Exit; + end; + if ReadLnTimedOut then begin + raise EIdReadTimeout.Create(RSReadTimeout); + end; + Inc(LAttempts); + end; + raise EIdReadLnWaitMaxAttemptsExceeded.Create(RSReadLnWaitMaxAttemptsExceeded); +end; + +function TIdIOHandler.ReadFromSource(ARaiseExceptionIfDisconnected: Boolean; + ATimeout: Integer; ARaiseExceptionOnTimeout: Boolean): Integer; +var + LByteCount: Integer; + LLastError: Integer; + LBuffer: TIdBytes; + // under ARC, convert a weak reference to a strong reference before working with it + LIntercept: TIdConnectionIntercept; +begin + if ATimeout = IdTimeoutDefault then begin + // MtW: check for 0 too, for compatibility + if (ReadTimeout = IdTimeoutDefault) or (ReadTimeout = 0) then begin + ATimeout := IdTimeoutInfinite; + end else begin + ATimeout := ReadTimeout; + end; + end; + Result := 0; + // Check here as this side may have closed the socket + CheckForDisconnect(ARaiseExceptionIfDisconnected); + if SourceIsAvailable then begin + repeat + LByteCount := 0; + // TODO: move the handling of Readable() into ReadDataFromSource() of descendant + // classes. For a plain socket, it makes sense to check for readability before + // attempting to read. Or just perform a blocking read w/ timeout applied. But for + // OpenSSL, you are not really supposed to check for readability first! You are + // supposed to attempt to read first, and then wait for new data w/ timeout only + // if OpenSSL explicitly asks you to do so after the read fails... + if Readable(ATimeout) then begin + if Opened then begin + // No need to call AntiFreeze, the Readable does that. + if SourceIsAvailable then begin + // TODO: Whey are we reallocating LBuffer every time? This + // should be a one time operation per connection. + + // RLebeau: because the Intercept does not allow the buffer + // size to be specified, and the Intercept could potentially + // resize the buffer... + + SetLength(LBuffer, RecvBufferSize); + try + LByteCount := ReadDataFromSource(LBuffer); + if LByteCount > 0 then begin + SetLength(LBuffer, LByteCount); + + LIntercept := Intercept; + if LIntercept <> nil then begin + LIntercept.Receive(LBuffer); + {$IFDEF USE_OBJECT_ARC}LIntercept := nil;{$ENDIF} + LByteCount := Length(LBuffer); + end; + + // Pass through LBuffer first so it can go through Intercept + //TODO: If not intercept, we can skip this step + InputBuffer.Write(LBuffer); + end; + finally + LBuffer := nil; + end; + end + else if ARaiseExceptionIfDisconnected then begin + raise EIdClosedSocket.Create(RSStatusDisconnected); + end; + end + else if ARaiseExceptionIfDisconnected then begin + raise EIdNotConnected.Create(RSNotConnected); + end; + if LByteCount < 0 then + begin + LLastError := CheckForError(LByteCount); + if LLastError = Id_WSAETIMEDOUT then begin + // Timeout + if ARaiseExceptionOnTimeout then begin + raise EIdReadTimeout.Create(RSReadTimeout); + end; + Result := -1; + Break; + end; + FClosedGracefully := True; + Close; + // Do not raise unless all data has been read by the user + if InputBufferIsEmpty and ARaiseExceptionIfDisconnected then begin + RaiseError(LLastError); + end; + LByteCount := 0; + end + else if LByteCount = 0 then begin + FClosedGracefully := True; + end; + // Check here as other side may have closed connection + CheckForDisconnect(ARaiseExceptionIfDisconnected); + Result := LByteCount; + end else begin + // Timeout + if ARaiseExceptionOnTimeout then begin + raise EIdReadTimeout.Create(RSReadTimeout); + end; + Result := -1; + Break; + end; + until (LByteCount <> 0) or (not SourceIsAvailable); + end + else if ARaiseExceptionIfDisconnected then begin + raise EIdNotConnected.Create(RSNotConnected); + end; +end; + +function TIdIOHandler.CheckForDataOnSource(ATimeout: Integer = 0): Boolean; +var + LPrevSize: Integer; +begin + Result := False; + // RLebeau - Connected() might read data into the InputBuffer, thus + // leaving no data for ReadFromSource() to receive a second time, + // causing a result of False when it should be True instead. So we + // save the current size of the InputBuffer before calling Connected() + // and then compare it afterwards.... + LPrevSize := InputBuffer.Size; + if Connected then begin + // return whether at least 1 byte was received + Result := (InputBuffer.Size > LPrevSize) or (ReadFromSource(False, ATimeout, False) > 0); + end; + // TODO: since Connected() just calls ReadFromSource() anyway, maybe just + // call ReadFromSource() by itself and not call Connected() at all? + // Result := ReadFromSource(False, ATimeout, False) > 0; +end; + +procedure TIdIOHandler.Write(AStream: TStream; ASize: TIdStreamSize = 0; + AWriteByteCount: Boolean = FALSE); +var + LBuffer: TIdBytes; + LStreamPos: TIdStreamSize; + LBufSize: Integer; + // LBufferingStarted: Boolean; +begin + // TODO: when AWriteByteCount is false, don't calculate the Size, just keep + // sending data until the end of stream is reached. This way, we can send + // streams that are not able to report accurate Size values... + + if ASize < 0 then begin //"-1" All from current position + LStreamPos := AStream.Position; + ASize := AStream.Size - LStreamPos; + //todo is this step required? + AStream.Position := LStreamPos; + end + else if ASize = 0 then begin //"0" ALL + ASize := AStream.Size; + AStream.Position := 0; + end; + //else ">0" number of bytes + + // RLebeau 3/19/2006: DO NOT ENABLE WRITE BUFFERING IN THIS METHOD! + // + // When sending large streams, especially with LargeStream enabled, + // this can easily cause "Out of Memory" errors. It is the caller's + // responsibility to enable/disable write buffering as needed before + // calling one of the Write() methods. + // + // Also, forcing write buffering in this method is having major + // impacts on TIdFTP, TIdFTPServer, and TIdHTTPServer. + + if AWriteByteCount then begin + if LargeStream then begin + Write(Int64(ASize)); + end else begin + {$IFDEF STREAM_SIZE_64} + if ASize > High(Integer) then begin + raise EIdIOHandlerRequiresLargeStream.Create(RSRequiresLargeStream); + end; + {$ENDIF} + Write(Int32(ASize)); + end; + end; + + BeginWork(wmWrite, ASize); + try + SetLength(LBuffer, FSendBufferSize); + while ASize > 0 do begin + LBufSize := IndyMin(ASize, Length(LBuffer)); + // Do not use ReadBuffer. Some source streams are real time and will not + // return as much data as we request. Kind of like recv() + // NOTE: We use .Size - size must be supported even if real time + LBufSize := TIdStreamHelper.ReadBytes(AStream, LBuffer, LBufSize); + if LBufSize <= 0 then begin + raise EIdNoDataToRead.Create(RSIdNoDataToRead); + end; + Write(LBuffer, LBufSize); + // RLebeau: DoWork() is called in WriteDirect() + //DoWork(wmWrite, LBufSize); + Dec(ASize, LBufSize); + end; + finally + EndWork(wmWrite); + LBuffer := nil; + end; +end; + +procedure TIdIOHandler.ReadBytes(var VBuffer: TIdBytes; AByteCount: Integer; AAppend: Boolean = True); +begin + EnsureInputBytes(AByteCount); + InputBuffer.ExtractToBytes(VBuffer, AByteCount, AAppend); +end; + +procedure TIdIOHandler.WriteLn(AEncoding: IIdTextEncoding = nil); +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + {$IFNDEF VCL_6_OR_ABOVE} + // RLebeau: in Delphi 5, explicitly specifying the nil value for the third + // parameter causes a "There is no overloaded version of 'WriteLn' that can + // be called with these arguments" compiler error. Must be a compiler bug, + // because it compiles fine in Delphi 6. The parameter value is nil by default + // anyway, so we don't really need to specify it here at all, but I'm documenting + // this so we know for future reference... + // + WriteLn('', AEncoding); + {$ELSE} + WriteLn('', AEncoding{$IFDEF STRING_IS_ANSI}, nil{$ENDIF}); + {$ENDIF} +end; + +procedure TIdIOHandler.WriteLn(const AOut: string; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); +begin + // TODO: RLebeau 1/2/2015: encountered an email that was using charset "cp1026", + // which encodes a LF character to byte $25 instead of $0A (and decodes + // byte $0A to character #$8E instead of #$A). To account for that, don't + // encoding the CRLF using the specified encoding anymore, force the encoding + // to what it should be... + // + // But, what to do if the target encoding is UTF-16? + { + Write(AOut, AByteEncoding{$IFDEF STRING_IS_ANSI, ASrcEncoding{$ENDIF); + Write(EOL, Indy8BitEncoding{$IFDEF STRING_IS_ANSI, Indy8BitEncoding{$ENDIF); + } + + // Do as one write so it only makes one call to network + Write(AOut + EOL, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} + ); +end; + +procedure TIdIOHandler.WriteLnRFC(const AOut: string = ''; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); +begin + if TextStartsWith(AOut, '.') then begin {do not localize} + WriteLn('.' + AOut, AByteEncoding {do not localize} + {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} + ); + end else begin + WriteLn(AOut, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} + ); + end; +end; + +function TIdIOHandler.Readable(AMSec: Integer): Boolean; +begin + // In case descendant does not override this or other methods but implements the higher level + // methods + Result := False; +end; + +procedure TIdIOHandler.SetHost(const AValue: string); +begin + FHost := AValue; +end; + +procedure TIdIOHandler.SetPort(AValue: Integer); +begin + FPort := AValue; +end; + +function TIdIOHandler.Connected: Boolean; +begin + CheckForDisconnect(False); + Result := + ( + ( + // Set when closed properly. Reflects actual socket state. + (not ClosedGracefully) + // Created on Open. Prior to Open ClosedGracefully is still false. + and (FInputBuffer <> nil) + ) + // Buffer must be empty. Even if closed, we are "connected" if we still have + // data + or (not InputBufferIsEmpty) + ) + and Opened; +end; + +// TODO: move this into IdGlobal.pas +procedure AdjustStreamSize(const AStream: TStream; const ASize: TIdStreamSize); +var + LStreamPos: TIdStreamSize; +begin + LStreamPos := AStream.Position; + AStream.Size := ASize; + // Must reset to original value in cases where size changes position + if AStream.Position <> LStreamPos then begin + AStream.Position := LStreamPos; + end; +end; + +procedure TIdIOHandler.ReadStream(AStream: TStream; AByteCount: TIdStreamSize; + AReadUntilDisconnect: Boolean); +var + LByteCount, LPos: TIdStreamSize; + {$IFNDEF STREAM_SIZE_64} + LTmp: Int64; + {$ENDIF} + + procedure CheckInputBufferForData; + var + i: Integer; + begin + i := FInputBuffer.Size; + if i > 0 then begin + if not AReadUntilDisconnect then begin + i := Integer(IndyMin(TIdStreamSize(i), LByteCount)); + Dec(LByteCount, i); + end; + if AStream <> nil then begin + FInputBuffer.ExtractToStream(AStream, i); + end else begin + FInputBuffer.Remove(i); + end; + end; + end; + +const + cSizeUnknown = -1; +begin + if (AByteCount = cSizeUnknown) and (not AReadUntilDisconnect) then begin + // Read size from connection + if LargeStream then begin + {$IFDEF STREAM_SIZE_64} + LByteCount := ReadInt64; + {$ELSE} + // TODO: if the peer is sending more than 2GB of data, don't fail + // here, just read it all in a loop until finished... + LTmp := ReadInt64; + if LTmp > MaxInt then begin + raise EIdIOHandlerStreamDataTooLarge.Create(RSDataTooLarge); + end; + LByteCount := TIdStreamSize(LTmp); + {$ENDIF} + end else begin + LByteCount := ReadInt32; + end; + end else begin + LByteCount := AByteCount; + end; + + // Presize stream if we know the size - this reduces memory/disk allocations to one time. + // TODO: need to add an option for this. user might not want to presize here, eg for reading + // int64 files, or when filling a manually-sized file using multiple threads. + if (AStream <> nil) and (LByteCount > -1) then begin + LPos := AStream.Position; + if (High(TIdStreamSize) - LPos) < LByteCount then begin + raise EIdIOHandlerStreamDataTooLarge.Create(RSDataTooLarge); + end; + AdjustStreamSize(AStream, LPos + LByteCount); + end; + + if (LByteCount <= cSizeUnknown) and (not AReadUntilDisconnect) then begin + AReadUntilDisconnect := True; + end; + + if AReadUntilDisconnect then begin + BeginWork(wmRead); + end else begin + BeginWork(wmRead, LByteCount); + end; + + try + // If data already exists in the buffer, write it out first. + CheckInputBufferForData; + + // RLebeau - don't call Connected() here! It can cause an + // EIdConnClosedGracefully exception that breaks the loop + // prematurely and thus leave unread bytes in the InputBuffer. + // Let the loop handle disconnects before exiting... + + // RLebeau 5/21/2019: rewritting this method to no longer use + // ReadBytes(), to avoid side-effects of an FMX issue with catching + // and reraising exceptions here during TIdFTP data transfers on iOS, + // per this blog: + // + // https://www.delphiworlds.com/2013/10/fixing-tidftp-for-ios-devices/ + // + // Besides, using ReadBytes() with exception handling here was always + // an ugly hack that we wanted to get rid of anyway, now its gone... + + while AReadUntilDisconnect or (LByteCount > 0) do begin + try + // Read from stack to get more data + if ReadFromSource(not AReadUntilDisconnect) < 1 then begin + CheckForDisconnect(False); + Break; + end; + TIdAntiFreezeBase.DoProcess; + finally + CheckInputBufferForData; + end; + end; + finally + EndWork(wmRead); + if AStream <> nil then begin + if AStream.Size > AStream.Position then begin + AStream.Size := AStream.Position; + end; + end; + end; +end; + +procedure TIdIOHandler.Discard(AByteCount: Int64); +var + LSize: Integer; +begin + Assert(AByteCount >= 0); + if AByteCount > 0 then + begin + BeginWork(wmRead, AByteCount); + try + repeat + LSize := iif(AByteCount < MaxInt, Integer(AByteCount), MaxInt); + LSize := IndyMin(LSize, FInputBuffer.Size); + if LSize > 0 then begin + FInputBuffer.Remove(LSize); + Dec(AByteCount, LSize); + if AByteCount < 1 then begin + Break; + end; + end; + // RLebeau: in case the other party disconnects + // after all of the bytes were transmitted ok. + // No need to throw an exception just yet... + if ReadFromSource(False) < 1 then begin + CheckForDisconnect(True, True); + end; + until False; + finally + EndWork(wmRead); + end; + end; +end; + +procedure TIdIOHandler.DiscardAll; +begin + BeginWork(wmRead); + try + // If data already exists in the buffer, discard it first. + FInputBuffer.Clear; + // RLebeau - don't call Connected() here! ReadBytes() already + // does that internally. Calling Connected() here can cause an + // EIdConnClosedGracefully exception that breaks the loop + // prematurely and thus leave unread bytes in the InputBuffer. + // Let the loop catch the exception before exiting... + repeat + //TODO: Improve this - dont like the use of the exception handler + try + if ReadFromSource(False) > 0 then begin + FInputBuffer.Clear; + end else begin; + CheckForDisconnect(True, True); + end; + except + on E: Exception do begin + // RLebeau - ReadFromSource() could have filled the + // InputBuffer with more bytes... + FInputBuffer.Clear; + if E is EIdConnClosedGracefully then begin + Break; + end else begin + raise; + end; + end; + end; + TIdAntiFreezeBase.DoProcess; + until False; + finally + EndWork(wmRead); + end; +end; + +procedure TIdIOHandler.RaiseConnClosedGracefully; +begin + (* ************************************************************* // + ------ If you receive an exception here, please read. ---------- + + If this is a SERVER + ------------------- + The client has disconnected the socket normally and this exception is used to notify the + server handling code. This exception is normal and will only happen from within the IDE, not + while your program is running as an EXE. If you do not want to see this, add this exception + or EIdSilentException to the IDE options as exceptions not to break on. + + From the IDE just hit F9 again and Indy will catch and handle the exception. + + Please see the FAQ and help file for possible further information. + The FAQ is at http://www.nevrona.com/Indy/FAQ.html + + If this is a CLIENT + ------------------- + The server side of this connection has disconnected normaly but your client has attempted + to read or write to the connection. You should trap this error using a try..except. + Please see the help file for possible further information. + + // ************************************************************* *) + raise EIdConnClosedGracefully.Create(RSConnectionClosedGracefully); +end; + +function TIdIOHandler.InputBufferAsString(AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; +begin + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + Result := FInputBuffer.ExtractToString(FInputBuffer.Size, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); +end; + +function TIdIOHandler.AllData(AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; +var + LBytes: Integer; +begin + Result := ''; + BeginWork(wmRead); + try + if Connected then + begin + try + try + repeat + LBytes := ReadFromSource(False, 250, False); + until LBytes = 0; // -1 on timeout + finally + if not InputBufferIsEmpty then begin + Result := InputBufferAsString(AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); + end; + end; + except end; + end; + finally + EndWork(wmRead); + end; +end; + +procedure TIdIOHandler.PerformCapture(const ADest: TObject; + out VLineCount: Integer; const ADelim: string; + AUsesDotTransparency: Boolean; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); +var + s: string; + LStream: TStream; + LStrings: TStrings; +begin + VLineCount := 0; + + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + ADestEncoding := iif(ADestEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + + LStream := nil; + LStrings := nil; + + if ADest is TStrings then begin + LStrings := TStrings(ADest); + end + else if ADest is TStream then begin + LStream := TStream(ADest); + end + else begin + raise EIdObjectTypeNotSupported.Create(RSObjectTypeNotSupported); + end; + + BeginWork(wmRead); + try + if LStrings <> nil then begin + LStrings.BeginUpdate; + end; + try + repeat + s := ReadLn(AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); + if s = ADelim then begin + Exit; + end; + // S.G. 6/4/2004: All the consumers to protect themselves against memory allocation attacks + if FMaxCapturedLines > 0 then begin + if VLineCount > FMaxCapturedLines then begin + raise EIdMaxCaptureLineExceeded.Create(RSMaximumNumberOfCaptureLineExceeded); + end; + end; + // For RFC retrieves that use dot transparency + // No length check necessary, if only one byte it will be byte x + #0. + if AUsesDotTransparency then begin + if TextStartsWith(s, '..') then begin + Delete(s, 1, 1); + end; + end; + // Write to output + Inc(VLineCount); + if LStrings <> nil then begin + LStrings.Add(s); + end + else if LStream <> nil then begin + WriteStringToStream(LStream, s+EOL, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); + end; + until False; + finally + if LStrings <> nil then begin + LStrings.EndUpdate; + end; + end; + finally + EndWork(wmRead); + end; +end; + +function TIdIOHandler.InputLn(const AMask: String = ''; AEcho: Boolean = True; + ATabWidth: Integer = 8; AMaxLineLength: Integer = -1; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; AAnsiEncoding: IIdTextEncoding = nil{$ENDIF} + ): String; +var + i: Integer; + LChar: Char; + LTmp: string; +begin + Result := ''; + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + AAnsiEncoding := iif(AAnsiEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + if AMaxLineLength < 0 then begin + AMaxLineLength := MaxLineLength; + end; + repeat + LChar := ReadChar(AByteEncoding + {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} + ); + i := Length(Result); + if i <= AMaxLineLength then begin + case LChar of + BACKSPACE: + begin + if i > 0 then begin + SetLength(Result, i - 1); + if AEcho then begin + Write(BACKSPACE + ' ' + BACKSPACE, AByteEncoding + {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} + ); + end; + end; + end; + TAB: + begin + if ATabWidth > 0 then begin + i := ATabWidth - (i mod ATabWidth); + LTmp := StringOfChar(' ', i); + Result := Result + LTmp; + if AEcho then begin + Write(LTmp, AByteEncoding + {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} + ); + end; + end else begin + Result := Result + LChar; + if AEcho then begin + Write(LChar, AByteEncoding + {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} + ); + end; + end; + end; + LF: ; + CR: ; + #27: ; //ESC - currently not supported + else + Result := Result + LChar; + if AEcho then begin + if Length(AMask) = 0 then begin + Write(LChar, AByteEncoding + {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} + ); + end else begin + Write(AMask, AByteEncoding + {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} + ); + end; + end; + end; + end; + until LChar = LF; + // Remove CR trail + i := Length(Result); + while (i > 0) and CharIsInSet(Result, i, EOL) do begin + Dec(i); + end; + SetLength(Result, i); + if AEcho then begin + WriteLn(AByteEncoding); + end; +end; + +//TODO: Add a time out (default to infinite) and event to pass data +//TODO: Add a max size argument as well. +//TODO: Add a case insensitive option +function TIdIOHandler.WaitFor(const AString: string; ARemoveFromBuffer: Boolean = True; + AInclusive: Boolean = False; AByteEncoding: IIdTextEncoding = nil; + ATimeout: Integer = IdTimeoutDefault + {$IFDEF STRING_IS_ANSI}; AAnsiEncoding: IIdTextEncoding = nil{$ENDIF} + ): string; +var + LBytes: TIdBytes; + LPos: Integer; +begin + Result := ''; + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + AAnsiEncoding := iif(AAnsiEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + LBytes := ToBytes(AString, AByteEncoding + {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} + ); + LPos := 0; + repeat + LPos := InputBuffer.IndexOf(LBytes, LPos); + if LPos <> -1 then begin + if ARemoveFromBuffer and AInclusive then begin + Result := InputBuffer.ExtractToString(LPos+Length(LBytes), AByteEncoding + {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} + ); + end else begin + Result := InputBuffer.ExtractToString(LPos, AByteEncoding + {$IFDEF STRING_IS_ANSI}, AAnsiEncoding{$ENDIF} + ); + if ARemoveFromBuffer then begin + InputBuffer.Remove(Length(LBytes)); + end; + if AInclusive then begin + Result := Result + AString; + end; + end; + Exit; + end; + LPos := IndyMax(0, InputBuffer.Size - (Length(LBytes)-1)); + ReadFromSource(True, ATimeout, True); + until False; +end; + +procedure TIdIOHandler.Capture(ADest: TStream; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + Capture(ADest, '.', True, AByteEncoding {do not localize} + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); +end; + +procedure TIdIOHandler.Capture(ADest: TStream; out VLineCount: Integer; + const ADelim: string = '.'; AUsesDotTransparency: Boolean = True; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + PerformCapture(ADest, VLineCount, ADelim, AUsesDotTransparency, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); +end; + +procedure TIdIOHandler.Capture(ADest: TStream; ADelim: string; + AUsesDotTransparency: Boolean = True; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); +var + LLineCount: Integer; +begin + PerformCapture(ADest, LLineCount, '.', AUsesDotTransparency, AByteEncoding {do not localize} + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); +end; + +procedure TIdIOHandler.Capture(ADest: TStrings; out VLineCount: Integer; + const ADelim: string = '.'; AUsesDotTransparency: Boolean = True; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + PerformCapture(ADest, VLineCount, ADelim, AUsesDotTransparency, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); +end; + +procedure TIdIOHandler.Capture(ADest: TStrings; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); +var + LLineCount: Integer; +begin + PerformCapture(ADest, LLineCount, '.', True, AByteEncoding {do not localize} + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); +end; + +procedure TIdIOHandler.Capture(ADest: TStrings; const ADelim: string; + AUsesDotTransparency: Boolean = True; AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ADestEncoding: IIdTextEncoding = nil{$ENDIF} + ); +var + LLineCount: Integer; +begin + PerformCapture(ADest, LLineCount, ADelim, AUsesDotTransparency, AByteEncoding + {$IFDEF STRING_IS_ANSI}, ADestEncoding{$ENDIF} + ); +end; + +procedure TIdIOHandler.InputBufferToStream(AStream: TStream; AByteCount: Integer = -1); +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + FInputBuffer.ExtractToStream(AStream, AByteCount); +end; + +function TIdIOHandler.InputBufferIsEmpty: Boolean; +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + Result := FInputBuffer.Size = 0; +end; + +procedure TIdIOHandler.Write(const ABuffer: TIdBytes; const ALength: Integer = -1; + const AOffset: Integer = 0); +var + LLength: Integer; +begin + LLength := IndyLength(ABuffer, ALength, AOffset); + if LLength > 0 then begin + if FWriteBuffer = nil then begin + WriteDirect(ABuffer, LLength, AOffset); + end else begin + // Write Buffering is enabled + FWriteBuffer.Write(ABuffer, LLength, AOffset); + if (FWriteBuffer.Size >= WriteBufferThreshold) and (WriteBufferThreshold > 0) then begin + repeat + WriteBufferFlush(WriteBufferThreshold); + until FWriteBuffer.Size < WriteBufferThreshold; + end; + end; + end; +end; + +procedure TIdIOHandler.WriteRFCStrings(AStrings: TStrings; AWriteTerminator: Boolean = True; + AByteEncoding: IIdTextEncoding = nil + {$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF} + ); +var + i: Integer; +begin + AByteEncoding := iif(AByteEncoding, FDefStringEncoding); + {$IFDEF STRING_IS_ANSI} + ASrcEncoding := iif(ASrcEncoding, FDefAnsiEncoding, encOSDefault); + {$ENDIF} + for i := 0 to AStrings.Count - 1 do begin + WriteLnRFC(AStrings[i], AByteEncoding + {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} + ); + end; + if AWriteTerminator then begin + WriteLn('.', AByteEncoding + {$IFDEF STRING_IS_ANSI}, ASrcEncoding{$ENDIF} + ); + end; +end; + +function TIdIOHandler.WriteFile(const AFile: String; AEnableTransferFile: Boolean): Int64; +var + LStream: TStream; + {$IFDEF WIN32_OR_WIN64} + LOldErrorMode : Integer; + {$ENDIF} +begin + // keep the compiler happy (when was this fixed exactly?) + {$IFDEF DCC}{$IFNDEF VCL_8_OR_ABOVE} + Result := -1; + {$ENDIF}{$ENDIF} + + {$IFDEF WIN32_OR_WIN64} + LOldErrorMode := SetErrorMode(SEM_FAILCRITICALERRORS); + try + {$ENDIF} + if not FileExists(AFile) then begin + raise EIdFileNotFound.CreateFmt(RSFileNotFound, [AFile]); + end; + LStream := TIdReadFileExclusiveStream.Create(AFile); + try + Write(LStream); + Result := LStream.Size; + finally + FreeAndNil(LStream); + end; + {$IFDEF WIN32_OR_WIN64} + finally + SetErrorMode(LOldErrorMode) + end; + {$ENDIF} +end; + +function TIdIOHandler.WriteBufferingActive: Boolean; +{$IFDEF USE_CLASSINLINE}inline;{$ENDIF} +begin + Result := FWriteBuffer <> nil; +end; + +procedure TIdIOHandler.CloseGracefully; +begin + FClosedGracefully := True +end; + +procedure TIdIOHandler.InterceptReceive(var VBuffer: TIdBytes); +var + // under ARC, convert a weak reference to a strong reference before working with it + LIntercept: TIdConnectionIntercept; +begin + LIntercept := Intercept; + if LIntercept <> nil then begin + LIntercept.Receive(VBuffer); + end; +end; + +procedure TIdIOHandler.InitComponent; +begin + inherited InitComponent; + FRecvBufferSize := GRecvBufferSizeDefault; + FSendBufferSize := GSendBufferSizeDefault; + FMaxLineLength := IdMaxLineLengthDefault; + FMaxCapturedLines := Id_IOHandler_MaxCapturedLines; + FLargeStream := False; + FReadTimeOut := IdTimeoutDefault; + FInputBuffer := TIdBuffer.Create(BufferRemoveNotify); + FDefStringEncoding := IndyTextEncoding_ASCII; // TODO: use IndyTextEncoding_Default instead... + {$IFDEF STRING_IS_ANSI} + FDefAnsiEncoding := IndyTextEncoding_OSDefault; + {$ENDIF} +end; + +procedure TIdIOHandler.WriteBufferFlush; +begin + WriteBufferFlush(-1); +end; + +procedure TIdIOHandler.WriteBufferOpen; +begin + WriteBufferOpen(-1); +end; + +procedure TIdIOHandler.WriteDirect(const ABuffer: TIdBytes; const ALength: Integer = -1; + const AOffset: Integer = 0); +var + LTemp: TIdBytes; + LPos: Integer; + LSize: Integer; + LByteCount: Integer; + LLastError: Integer; + // under ARC, convert a weak reference to a strong reference before working with it + LIntercept: TIdConnectionIntercept; +begin + // Check if disconnected + CheckForDisconnect(True, True); + + LIntercept := Intercept; + if LIntercept <> nil then begin + // TODO: pass offset/size parameters to the Intercept + // so that a copy is no longer needed here + LTemp := ToBytes(ABuffer, ALength, AOffset); + LIntercept.Send(LTemp); + {$IFDEF USE_OBJECT_ARC}LIntercept := nil;{$ENDIF} + LSize := Length(LTemp); + LPos := 0; + end else begin + LTemp := ABuffer; + LSize := IndyLength(LTemp, ALength, AOffset); + LPos := AOffset; + end; + while LSize > 0 do + begin + LByteCount := WriteDataToTarget(LTemp, LPos, LSize); + if LByteCount < 0 then + begin + LLastError := CheckForError(LByteCount); + if LLastError <> Id_WSAETIMEDOUT then begin + FClosedGracefully := True; + Close; + end; + RaiseError(LLastError); + end; + // TODO - Have a AntiFreeze param which allows the send to be split up so that process + // can be called more. Maybe a prop of the connection, MaxSendSize? + TIdAntiFreezeBase.DoProcess(False); + if LByteCount = 0 then begin + FClosedGracefully := True; + end; + // Check if other side disconnected + CheckForDisconnect; + DoWork(wmWrite, LByteCount); + Inc(LPos, LByteCount); + Dec(LSize, LByteCount); + end; +end; + +initialization + +finalization + FreeAndNil(GIOHandlerClassList) +end. diff --git a/Lib/Core/indycorefpc.pas b/Lib/Core/indycorefpc.pas index 5dc2a2565..8e0d4e781 100644 --- a/Lib/Core/indycorefpc.pas +++ b/Lib/Core/indycorefpc.pas @@ -1,71 +1,71 @@ -unit indycorefpc; -interface - -uses - IdAssignedNumbers, - IdBuffer, - IdCmdTCPClient, - IdCmdTCPServer, - IdCommandHandlers, - IdContext, - IdCustomTCPServer, - IdCustomTransparentProxy, - IdExceptionCore, - IdGlobalCore, - IdIOHandler, - IdIOHandlerSocket, - IdIOHandlerStack, - IdIOHandlerStream, - IdIPAddress, - IdIPMCastBase, - IdIPMCastClient, - IdIPMCastServer, - IdIcmpClient, - IdIntercept, - IdInterceptSimLog, - IdInterceptThrottler, - IdLogBase, - IdLogDebug, - IdLogEvent, - IdLogFile, - IdLogStream, - IdRawBase, - IdRawClient, - IdRawFunctions, - IdRawHeaders, - IdReply, - IdReplyRFC, - IdResourceStringsCore, - IdScheduler, - IdSchedulerOfThread, - IdSchedulerOfThreadDefault, - IdSchedulerOfThreadPool, - IdServerIOHandler, - IdServerIOHandlerSocket, - IdServerIOHandlerStack, - IdSimpleServer, - IdSocketHandle, - IdSocks, - IdSync, - IdTCPClient, - IdTCPConnection, - IdTCPServer, - IdTCPStream, - IdTask, - IdThread, - IdThreadComponent, - IdThreadSafe, - IdTraceRoute, - IdUDPBase, - IdUDPClient, - IdUDPServer, - IdYarn; - -implementation - -{ -disable hints about unused units. This unit just causes -FreePascal to compile implicitly listed units in a package. -} -{$hints off} -end. +unit indycorefpc; +interface + +uses + IdAssignedNumbers, + IdBuffer, + IdCmdTCPClient, + IdCmdTCPServer, + IdCommandHandlers, + IdContext, + IdCustomTCPServer, + IdCustomTransparentProxy, + IdExceptionCore, + IdGlobalCore, + IdIOHandler, + IdIOHandlerSocket, + IdIOHandlerStack, + IdIOHandlerStream, + IdIPAddress, + IdIPMCastBase, + IdIPMCastClient, + IdIPMCastServer, + IdIcmpClient, + IdIntercept, + IdInterceptSimLog, + IdInterceptThrottler, + IdLogBase, + IdLogDebug, + IdLogEvent, + IdLogFile, + IdLogStream, + IdRawBase, + IdRawClient, + IdRawFunctions, + IdRawHeaders, + IdReply, + IdReplyRFC, + IdResourceStringsCore, + IdScheduler, + IdSchedulerOfThread, + IdSchedulerOfThreadDefault, + IdSchedulerOfThreadPool, + IdServerIOHandler, + IdServerIOHandlerSocket, + IdServerIOHandlerStack, + IdSimpleServer, + IdSocketHandle, + IdSocks, + IdSync, + IdTCPClient, + IdTCPConnection, + IdTCPServer, + IdTCPStream, + IdTask, + IdThread, + IdThreadComponent, + IdThreadSafe, + IdTraceRoute, + IdUDPBase, + IdUDPClient, + IdUDPServer, + IdYarn; + +implementation + +{ +disable hints about unused units. This unit just causes +FreePascal to compile implicitly listed units in a package. +} +{$hints off} +end. diff --git a/Lib/System/indysystemfpc.pas b/Lib/System/indysystemfpc.pas index d85b30fe0..7d74a1b3d 100644 --- a/Lib/System/indysystemfpc.pas +++ b/Lib/System/indysystemfpc.pas @@ -1,25 +1,25 @@ -unit indysystemfpc; -interface - -uses - IdAntiFreezeBase, - IdBaseComponent, - IdCTypes, - IdComponent, - IdException, - IdGlobal, - IdResourceStrings, - IdStack, - IdStackConsts, - IdStream, - IdStreamVCL, - IdStruct; - -implementation - -{ -disable hints about unused units. This unit just causes -FreePascal to compile implicitly listed units in a package. -} -{$hints off} -end. +unit indysystemfpc; +interface + +uses + IdAntiFreezeBase, + IdBaseComponent, + IdCTypes, + IdComponent, + IdException, + IdGlobal, + IdResourceStrings, + IdStack, + IdStackConsts, + IdStream, + IdStreamVCL, + IdStruct; + +implementation + +{ +disable hints about unused units. This unit just causes +FreePascal to compile implicitly listed units in a package. +} +{$hints off} +end. diff --git a/OpenSSLHdr_gen/README.OpensslHeadergeneration.txt b/OpenSSLHdr_gen/README.OpensslHeadergeneration.txt new file mode 100644 index 000000000..5c03f09a8 --- /dev/null +++ b/OpenSSLHdr_gen/README.OpensslHeadergeneration.txt @@ -0,0 +1,85 @@ +OPENSSL HEADER GENERATION + +The OpenSSL library is written in 'C' and the programmatic interface is defined in a series of 'C' header files. These have to be translated into Pascal units in order to declare the interface to a Pascal code library, such as Indy. + +The approach take here is: + +1. To perform an initial automated translation using a tool such as Free Pascal's “h2pas”. This generates a Pascal unit from each 'C' header file and aims to create a Pascal procedure or function declaration and supporting constants and types for each 'C' function found. + +2. Each such unit is reviewed and marked up as described below and, where necessary, backwards and forwards compatibility procedures and functions are added in order to allow for more than one version of the OpenSSL library to be used by Indy. The saved file is given the extension “.h2pas” in order to distinguish it from a genuine Pascal unit. + +3. A shell script is run. This uses the line editor (sed) to perform multiple edits on each .h2pas unit in order to transform it into a Pascal unit (.pas file) suitable for use by Indy. The script is named “genOpenSSLHdrs.sh”. It processes every .h2pas file in the directory “sslheaders_source” and outputs a corresponding .pas file by default to the directory “../Lib/protocols”. The output directory can be overridden when the script is run by providing the output directory path as the only command parameter. + +Note: backwards compatibility procedures/functions are used instead of an OpenSSL procedure/function with the same name when that procedure/function has been removed from the version of the OpenSSL library that has been loaded. + +Note: forwards compatibility procedures/functions are needed when an internal OpenSSL data structure that was exposed in earlier versions of the OpenSSL library is opaque in later versions; the data structure being accessed through procedures/functions instead. The forwards compatibility functions replicate the action of the data structure access procedures/functions so that earlier versions of the OpenSSL library can continue to be used whilst the using code assumes the later version. + +H2PAS FILE STRUCTURE + +1. Standard unit layout with no external definitions. + +2. function/procedure definitions in interface section must each be on a single line and not split over multiple lines. + +3. Special bracketed comments after each function/procedure definition used to identify new (introduced) and removed functions procedures together with the 3 level release number (major.minor.fix) in which they were introduced/removed. e.g. {introduced 1.1.1} or {introduced 1.0.0 removed 3.0.0}. Removed clauses may also be followed by "allow_nil" indicating that it is not an error if the function/procedure cannot be loaded. e.g. {removed 3.0.0 allow_nil}. + +4. Special comments in implementation section "{forward_compatibility}" to "{/forward_compatibility}" used to indicate section comprising consts, types and function/procedure declarations used to provide an external function/procedure in a library version before it is introduced. Function/procedure names are the same as the external function/procedure. Typical use is when a later version of the SSL library hides a previously exposed data structure (e.g. SSL_CTX) and provides access functions instead. Providing early versions of these functions using the exposed data structure allows for the same user code to access both version of the SSL library. + +5. Implementation section otherwise) comprises const, types and local procedure/function bodies for removed procedure/functions where a backwards compatible procedure/function is needed. + +6. Both interface and implementation sections may contain a section delimited by "{helper_functions}" and "{/helper_functions}". These sections are copied unchanged to the output unit. + +GENERATION OF OUTPUT UNIT + +1. Same unit name as h2pas source. + +2. All const, var and type definitions in interface copied to output unit. + +3. The helper_functions section in the input unit's interface section is copied unchanged to the output unit's interface section. + +4. Defined symbol "USE_EXTERNAL_LIBRARY" used to separate static and dynamic interface sections in both interface and implementation sections. + +5. In the unit's static library "interface" section: + +i. All functions/procedures in interface section that have not been commented as removed are included and made external. A conditional definition is used to identify when the external library name is also included. Note: In FPC, the external library name is omitted when the intention is to link the program to a static OpenSSL library (.a file). Otherwise, the shared library name implies static linking to the shared OpenSSL library (.so or .dll). + +ii. All functions/procedures in interface section that have been commented as removed are included as normal function/procedure definitions provided that a function/procedure with the same name is located in the implementation section (backwards compatibility). + +6. In the unit's Dynamic Library "interface" Section all functions/procedures in interface section are converted to procedure variables. This includes all introduced and removed functions/procedures. + +7. In the unit's implementation section + +i. The implementation "uses" clause extended to include the classes, IdResourceStringsOpenSSL and IdOpenSSLLoader units for the dynamic library only. + +ii. This is followed by a list of consts to give the OpenSSL formatted version number of each introduced and removed function in the format "_introduced = ..." and "_removed = ...". e.g. + +X509_get0_serialNumber_introduced = (byte(1) shl 8 or byte(1)) shl 8 or byte(1); + +iii.The helper_functions section in the input unit's implementation section are copied unchanged to the output unit's implementation section. + +8. In the unit's static library "implementation" section: + +i. The original implementation body, including consts and types except for the {helper_functions} and the {forward_compatibility} sections. + +9. In the unit's Dynamic Library "implementation" Section + +i. All of implementation body, except for the {helper_functions} and the {forward_compatibility} sections, is then copied to the implementation section with procedure/function names prepended with an underscore to avoid name conflict with procedure variables of the same name. + +ii. The {forward_compatibility} section is then copied to the implementation with procedure/function names prepended with "FC_". + +iii. An error handling function/procedure is added for each introduced/removed function/procedure in the interface section other than those with the "allow_nil" tag. This has the same name and function signature as given in the interface section, except that the name is prepended with ERR_. + +10. A Load procedure is added to the dynamic interface section. This comprises: + + i. A Call to load the address of each procedure/function into the corresponding procedure variable. + + ii. If the procedure/function is neither "introduced" nor "removed" then a failure to load is handled by adding the procedure/function name to the "failed" list. + + iii. After all procedures/functions are loaded, the procedure/function variables for "introduced" procedures/functions are checked and, if null, the “{$IF declared” syntax is used to assigned the address of any procedure/function with the same name prepended with FC_, if one exists. + +iv. Otherwise, the procedure/function variables for "removed" procedures/functions are checked and, if null, the “{$IF declared” syntax is used to assigned the address of any procedure/function with the same name (plus a leading underscore). + +v. Otherwise, the variable is assigned the address of the procedure/function (prepended with ERR_) that raises an exception if it is called at runtime. Use of the “{$IF declared” syntax here ensure that "allow_nil" tagged procedures do not have an error handler. + +11. An Unload procedure is added to the dynamic interface section setting each function/procedure variable to nil. + +12. An initialization section is added for the dynamic library only. This registers the Load and Unload procedures with the OpenSSLLoader. diff --git a/OpenSSLHdr_gen/genOpenSSLHdrs.sh b/OpenSSLHdr_gen/genOpenSSLHdrs.sh new file mode 100644 index 000000000..474680624 --- /dev/null +++ b/OpenSSLHdr_gen/genOpenSSLHdrs.sh @@ -0,0 +1,306 @@ +#!/bin/sh + +cd `dirname $0` + +LIBSSLUNITS="IdOpenSSLHeaders_ssl IdOpenSSLHeaders_sslerr IdOpenSSLHeaders_tls1" +SRCDIR=sslheaders_source +if [ -d ../runtime/protocols ]; then + DESTDIR=../runtime/protocols/opensslHdrs +elif [ -d ../Lib/Protocols ]; then + DESTDIR=../Lib/Protocols/opensslHdrs +fi +if [ -n "$1" ]; then + DESTDIR="$1" +fi +mkdir -p "$DESTDIR" +ALLHEADERS="$DESTDIR"/AllOpenSSLHeaders.pas + +#Define some common regular expressions for later use by sed and grep +INTRODUCED='introduced *\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)' +REMOVED='removed *\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)' +INTRODUCEDONLYFILTER="{ *$INTRODUCED *}" +INTRODUCEDFILTER="{ *$INTRODUCED *\($REMOVED *\|\)}" +REMOVEDFILTER="{ *\(introduced *[0-9]\+\.[0-9]\+\.[0-9]\+\|\) *$REMOVED *\(allow_nil\|\)}" +REMOVEDNOTNILFILTER="{ *\(introduced *[0-9]\+\.[0-9]\+\.[0-9]\+\|\) *$REMOVED *}" +INTRODUCEDANDREMOVEDFILTER="\($INTRODUCEDONLYFILTER\|$REMOVEDFILTER\)" +PROCFILTER='^ *\(function\|procedure\) *\([A-Za-z0-9_]*\+\)\((.*) *: *[A-Za-z0-9_]\+ *\| *: *[A-Za-z0-9_]\+ *\|(.*) *\| *\)\(; *cdecl;\| *cdecl\|\);' +HELPERS='/^{helper_functions}/,/^{\/helper_functions}/' +FORWARDS='/^{forward_compatibility}/,/^{\/forward_compatibility}/' + +#Initialise AllHeaders Unit +( + echo "Unit AllOpenSSLHeaders;" + echo "" + echo "interface" + echo "" + echo "uses" +) > $ALLHEADERS +ALLHEADERS_SEPARATOR= + +for FILE in `ls -1 $SRCDIR/*.h2pas`; do + UNITNAME=`basename -s '.h2pas' "$FILE"` + SRCFILE=${UNITNAME}.h2pas + UNITFILE="$DESTDIR"/${UNITNAME}.pas + echo "Processing $UNITNAME" + + LIBNAME=LibCrypto #default + #Check to see if function declared by unit should be in LibSSL + for UNIT in $LIBSSLUNITS; do + if [ "$UNIT" = "$UNITNAME" ]; then + LIBNAME=LibSSL + break + fi + done + + #Initalise output unitfile - everything from start to line before first procedure/function definition + #and preceded by warning notice + cat <$UNITFILE + (* This unit was generated using the script `basename $0` from the source file $SRCFILE + It should not be modified directly. All changes should be made to $SRCFILE + and this file regenerated. $SRCFILE is distributed with the full Indy + Distribution. + *) + +{\$i IdCompilerDefines.inc} +{\$i IdSSLOpenSSLDefines.inc} + +EOT + #copy everything from source to dest up to the first function/procedure declaration + sed '/^ *\(procedure\|function\)/,$d' $FILE |sed 's/[[:blank:]]*$//' >>$UNITFILE + + #ignore files without a procedure/function definition + if grep -i '^ *\(procedure\|function\)' $FILE >/dev/null 2>&1; then + + #Add EXTERNALSYM directive for each function/procedure not removed in most recent version of OpenSSL + + cat <> $UNITFILE + { The EXTERNALSYM directive is ignored by FPC, however, it is used by Delphi as follows: + + The EXTERNALSYM directive prevents the specified Delphi symbol from appearing in header + files generated for C++. } + +EOT + sed '/^implementation.*$/,$d' $FILE | sed "${HELPERS}d" | sed -n '/^ *\(procedure\|function\)/,$p' | grep -v "$REMOVEDFILTER" |\ + sed "s/$PROCFILTER/ {\$EXTERNALSYM \2}/" |grep 'EXTERNALSYM' >>$UNITFILE + + #copy helper functions from interface + sed '/^implementation.*$/,$d' $FILE | sed -n "${HELPERS}p" >>$UNITFILE + + #Dynamic Library Interface section + #Copy all function/procedures as function/procedure variable definitions + ( + echo "" + echo '{$IFNDEF USE_EXTERNAL_LIBRARY}' + echo "var" + ) >>$UNITFILE + + #Include EXTERNALSYM declarations for removed functions + sed '/^implementation.*$/,$d' $FILE | sed "${HELPERS}d" | sed -n '/^ *\(procedure\|function\)/,$p' | grep "$REMOVEDFILTER" |\ + sed "s/$PROCFILTER/ {\$EXTERNALSYM \2}/" |grep 'EXTERNALSYM' >>$UNITFILE + + #Note assumes that all function and procedure declarations are contained in a single line + + #Generate dynamic library interface + sed '/^implementation.*$/,$d' $FILE | sed "${HELPERS}d" | sed -n '/^ *\(procedure\|function\)/,$p' |\ + sed "s/$PROCFILTER/ \2: \1\3; cdecl = nil;/" >> $UNITFILE + + echo '{$ELSE}' >>$UNITFILE + + #Generate static library interface + + #All functions/procedures in interface section other than helper functions that have not been commented as removed are included and made external + sed '/^implementation.*$/,$d' $FILE | sed "${HELPERS}d" | sed -n '/^ *\(procedure\|function\)/,$p' | grep -v "$REMOVEDFILTER" | \ + sed "s/^ *\(function\|procedure\) *\(.*\);/ \1 \2 cdecl; external {\$IFNDEF OPENSSL_USE_STATIC_LIBRARY}C$LIBNAME{\$ENDIF};/" >> $UNITFILE + + #All functions/procedures in interface section that have been commented as removed are included as normal + #function/procedure definitions provided that a function/procedure with the same name is located in the implementation section. + + sed '/^implementation.*$/,$d' $FILE | sed "${HELPERS}d" | sed -n '/^ *\(procedure\|function\)/,$p' | grep "$REMOVEDFILTER" | \ + sed "s/$PROCFILTER/\2/" | sed 's/ {.*//' | while read FUNC_NAME; do + if sed '0,/^implementation.*$/d' $FILE | grep "^ *\(function\|procedure\) *$FUNC_NAME *[(:;]" >/dev/null 2>&1; then + sed '/^implementation.*$/,$d' $FILE | grep "^ *\(procedure\|function\) *$FUNC_NAME *[(:;)]" >> $UNITFILE + fi + done + + cat <>$UNITFILE +{\$ENDIF} + +implementation + +EOT + #Update uses clause and add if necessary + USESFILTER='^uses.*;' + USESUNITS="\n\ + {\$IFNDEF USE_EXTERNAL_LIBRARY}\n\ + classes,\n\ + IdSSLOpenSSLExceptionHandlers,\n\ + IdSSLOpenSSLLoader,\n\ + {\$ENDIF}" + if sed '0,/^implementation.*$/d' $FILE| sed '/^end\..*$/,$d' | grep '^uses.*;' >/dev/null 2>&1; then + #Update uses clause + sed '0,/^implementation.*$/d' $FILE| sed -n "/$USESFILTER/p"| sed "s/^uses/uses $USESUNITS/" >> $UNITFILE + elif sed '0,/^implementation.*$/d' $FILE| sed '/^end\..*$/,$d' | grep '^uses' >/dev/null 2>&1; then + #Update uses clause + USESFILTER='^uses/,/.*;' + sed '0,/^implementation.*$/d' $FILE| sed '/^end\..*$/,$d' | sed -n "/$USESFILTER/p"| sed "s/^uses/uses $USESUNITS/" >> $UNITFILE + else + USESFILTER= + cat <>$UNITFILE + {\$IFNDEF USE_EXTERNAL_LIBRARY} + uses + classes, + IdSSLOpenSSLExceptionHandlers, + IdSSLOpenSSLLoader; + {\$ENDIF} +EOT + fi + + cat <> $UNITFILE + +EOT + if sed '/^implementation.*$/,$d' $FILE | sed "${HELPERS}d" |sed "${FORWARDS}d" | sed -n '/^ *\(procedure\|function\)/,$p' | grep "$INTRODUCEDANDREMOVEDFILTER" >/dev/null 2>&1; then + echo "const" >>$UNITFILE + #A list of consts is included to give the SSLeary formatted version number of each introduced and removed function + sed '/^implementation.*$/,$d' $FILE | sed "${HELPERS}d" |sed "${FORWARDS}d"| sed -n '/^ *\(procedure\|function\)/,$p' | grep "$INTRODUCEDFILTER" |\ + sed "s/$PROCFILTER *$INTRODUCEDFILTER/ \2_introduced = (byte(\5) shl 8 or byte(\6)) shl 8 or byte(\7);/" >> $UNITFILE + sed '/^implementation.*$/,$d' $FILE | sed "${HELPERS}d" |sed "${FORWARDS}d"| sed -n '/^ *\(procedure\|function\)/,$p' | grep "$REMOVEDFILTER" |\ + sed "s/$PROCFILTER *$REMOVEDFILTER/ \2_removed = (byte(\6) shl 8 or byte(\7)) shl 8 or byte(\8);/" >> $UNITFILE + fi + + + #Copy consts and types until first function/procedure definition + if [ -z "$USESFILTER" ] ; then + sed '0,/^implementation.*$/d' $FILE | sed '/^end\..*$/,$d' |sed "${HELPERS}d" |sed "${FORWARDS}d"|sed '/^ *\(procedure\|function\)/,$d' | sed 's/[[:blank:]]*$//' >>$UNITFILE + else + sed '0,/^implementation.*$/d' $FILE | sed '/^end\..*$/,$d' |sed "${HELPERS}d" |sed "${FORWARDS}d"|sed "/${USESFILTER}/d" | sed '/^ *\(procedure\|function\)/,$d' | sed 's/[[:blank:]]*$//' >>$UNITFILE + fi + + #Copy helper functions to implementation section + sed '0,/^implementation.*$/d' $FILE| sed '/^end\..*$/,$d' | sed -n "${HELPERS}p" >>$UNITFILE + + #Start Dynamic Interface section + echo "{\$IFNDEF USE_EXTERNAL_LIBRARY}" >>$UNITFILE + + #include implementation body for dynamic interface + if [ -z "$USESFILTER" ] ; then + sed '0,/^implementation.*$/d' $FILE| sed '/^end\..*$/,$d' | sed "${HELPERS}d" |sed "${FORWARDS}d" |\ + sed "s/$PROCFILTER/\1 _\2\3; cdecl;/" >> $UNITFILE + else + sed '0,/^implementation.*$/d' $FILE| sed '/^end\..*$/,$d' | sed "/$USESFILTER/d" | sed "${HELPERS}d" |sed "${FORWARDS}d" |\ + sed "s/$PROCFILTER/\1 _\2\3; cdecl;/" >> $UNITFILE + fi + + #Copy forward compatibility functions to implementation section + sed '0,/^implementation.*$/d' $FILE| sed '/^end\..*$/,$d' | sed -n "${FORWARDS}p" | sed "s/$PROCFILTER/\1 FC_\2\3; cdecl;/" >>$UNITFILE + + #Add Exception generators for each introduced/removed procedure/function + echo '{$WARN NO_RETVAL OFF}' >>$UNITFILE + sed '/^implementation.*$/,$d' $FILE | sed -n '/^ *\(procedure\|function\)/,$p' | grep "\($INTRODUCED\|$REMOVEDNOTNILFILTER\)" |\ + sed "s/$PROCFILTER *\({.*}\)/\ +\1 ERR_\2\3; \4\n\ +begin\n\ + EIdAPIFunctionNotPresent.RaiseException('\2');\n\ +end;\n\\n/" >>$UNITFILE + echo '{$WARN NO_RETVAL ON}' >>$UNITFILE + + + + cat <>$UNITFILE + +procedure Load(const ADllHandle: TIdLibHandle; LibVersion: TIdC_UINT; const AFailed: TStringList); + + function LoadFunction(const AMethodName: string; const AFailed: TStringList): Pointer; + begin + Result := LoadLibFunction(ADllHandle, AMethodName); + if not Assigned(Result) and Assigned(AFailed) then + AFailed.Add(AMethodName); + end; + +begin +EOT + + + #Generate Load procedures + #If the procedure/function is neither "introduced" nor "removed" then a failure to load is handled + #by adding the procedure/function name to the "failed" list + sed '/^implementation.*$/,$d' $FILE |sed "${HELPERS}d" | grep -i '^ *\(procedure\|function\)' | grep -v "$REMOVED" | grep -v "$INTRODUCED" |\ + sed "s/$PROCFILTER/ \2 := LoadFunction('\2',AFailed);/" >> $UNITFILE + + sed '/^implementation.*$/,$d' $FILE | sed "${HELPERS}d" | sed -n '/^ *\(procedure\|function\)/,$p' | grep "\($REMOVED\|$INTRODUCED\)" | \ + sed "s/$PROCFILTER/ \2 := LoadFunction('\2',nil);/" >> $UNITFILE + + + sed '/^implementation.*$/,$d' $FILE | sed "${HELPERS}d" | sed -n '/^ *\(procedure\|function\)/,$p' | grep "\($REMOVED\|$INTRODUCED\)" |\ + sed "s/$PROCFILTER *\({.*}\)/\ + if not assigned(\2) then \n\ + begin\n\ + {\$if declared(\2_introduced)}\n\ + if LibVersion < \2_introduced then\n\ + {\$if declared(FC_\2)}\n\ + \2 := @FC_\2\n\ + {\$else}\n\ + \2 := @ERR_\2\n\ + {\$ifend}\n\ + else\n\ + {\$ifend}\n\ + {\$if declared(\2_removed)}\n\ + if \2_removed <= LibVersion then\n\ + {\$if declared(_\2)}\n\ + \2 := @_\2\n\ + {\$else}\n\ + {\$IF declared(ERR_\2)}\n\ + \2 := @ERR_\2\n\ + {\$ifend}\n\ + {\$ifend}\n\ + else\n\ + {$\ifend}\n\ + if not assigned(\2) and Assigned(AFailed) then \n\ + AFailed.Add('\2');\n\ + end;\n\n/" >>$UNITFILE + + cat <> $UNITFILE +end; + +procedure Unload; +begin +EOT + #Generate Unload procedures + sed '/^implementation.*$/,$d' $FILE | sed "${HELPERS}d" | grep -i '^ *\(procedure\|function\)' |\ + sed "s/$PROCFILTER/ \2 := nil;/" >> $UNITFILE + + #Complete Unit File + cat <> $UNITFILE +end; +{\$ELSE} +EOT + #Static Library section + #Copy functions to implementation section + sed '0,/^implementation.*$/d' $FILE| sed '/^end\..*$/,$d'| sed "${HELPERS}d" | sed "${FORWARDS}d" | sed -n '/^ *\(procedure\|function\)/,$p' >>$UNITFILE + + cat <> $UNITFILE +{\$ENDIF} + +{\$IFNDEF USE_EXTERNAL_LIBRARY} +initialization + Register_SSLLoader(@Load,'$LIBNAME'); + Register_SSLUnloader(@Unload); +{\$ENDIF} +end. +EOT +fi + + #Add to All Headers + echo "$ALLHEADERS_SEPARATOR" >>$ALLHEADERS + echo -n " $UNITNAME" >>$ALLHEADERS + ALLHEADERS_SEPARATOR=, + +done + +#Complete Allheaders +( + echo " ;" + echo "" + echo "implementation" + echo "end." +) >> "$ALLHEADERS" + diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_aes.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_aes.h2pas new file mode 100644 index 000000000..ee15dd1c6 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_aes.h2pas @@ -0,0 +1,80 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_aes; + +interface + +// Headers for OpenSSL 1.1.1 +// aes.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const +// Added '_CONST' to avoid name clashes + AES_ENCRYPT_CONST = 1; +// Added '_CONST' to avoid name clashes + AES_DECRYPT_CONST = 0; + AES_MAXNR = 14; + AES_BLOCK_SIZE = 16; + +type + aes_key_st = record + // in old IdSSLOpenSSLHeaders.pas it was also TIdC_UINT ¯\_(ツ)_/¯ +// {$IFDEF AES_LONG} +// rd_key: array[0..(4 * (AES_MAXNR + 1))] of TIdC_ULONG; +// {$ELSE} + rd_key: array[0..(4 * (AES_MAXNR + 1))] of TIdC_UINT; +// {$ENDIF} + rounds: TIdC_INT; + end; + AES_KEY = aes_key_st; + PAES_KEY = ^AES_KEY; + + function AES_options: PIdAnsiChar; + + function AES_set_encrypt_key(const userKey: PByte; const bits: TIdC_INT; const key: PAES_KEY): TIdC_INT; + function AES_set_decrypt_key(const userKey: PByte; const bits: TIdC_INT; const key: PAES_KEY): TIdC_INT; + + procedure AES_encrypt(const in_: PByte; out_: PByte; const key: PAES_KEY); + procedure AES_decrypt(const in_: PByte; out_: PByte; const key: PAES_KEY); + + procedure AES_ecb_encrypt(const in_: PByte; out_: PByte; const key: PAES_KEY; const enc: TIdC_INT); + procedure AES_cbc_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; const enc: TIdC_INT); + procedure AES_cfb128_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); + procedure AES_cfb1_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); + procedure AES_cfb8_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); + procedure AES_ofb128_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; num: PIdC_INT); + (* NB: the IV is _two_ blocks long *) + procedure AES_ige_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; ivec: PByte; const enc: TIdC_INT); + (* NB: the IV is _four_ blocks long *) + procedure AES_bi_ige_encrypt(const in_: PByte; out_: PByte; length: TIdC_SIZET; const key: PAES_KEY; const key2: PAES_KEY; ivec: PByte; const enc: TIdC_INT); + + function AES_wrap_key(key: PAES_KEY; const iv: PByte; out_: PByte; const in_: PByte; inlen: TIdC_UINT): TIdC_INT; + function AES_unwrap_key(key: PAES_KEY; const iv: PByte; out_: PByte; const in_: PByte; inlen: TIdC_UINT): TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1.h2pas new file mode 100644 index 000000000..816394765 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1.h2pas @@ -0,0 +1,793 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_asn1; + +interface + +// Headers for OpenSSL 1.1.1 +// asn1.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_asn1t, + IdOpenSSLHeaders_bio, + IdOpenSSlHeaders_ossl_typ; + +{$MINENUMSIZE 4} + +const + (* + * NB the constants below are used internally by ASN1_INTEGER + * and ASN1_ENUMERATED to indicate the sign. They are *not* on + * the wire tag values. + *) + + V_ASN1_NEG = $100; + V_ASN1_NEG_INTEGER = 2 or V_ASN1_NEG; + V_ASN1_NEG_ENUMERATED = 10 or V_ASN1_NEG; + + (* For use with d2i_ASN1_type_bytes() *) + B_ASN1_NUMERICSTRING = $0001; + B_ASN1_PRINTABLESTRING = $0002; + B_ASN1_T61STRING = $0004; + B_ASN1_TELETEXSTRING = $0004; + B_ASN1_VIDEOTEXSTRING = $0008; + B_ASN1_IA5STRING = $0010; + B_ASN1_GRAPHICSTRING = $0020; + B_ASN1_ISO64STRING = $0040; + B_ASN1_VISIBLESTRING = $0040; + B_ASN1_GENERALSTRING = $0080; + B_ASN1_UNIVERSALSTRING = $0100; + B_ASN1_OCTET_STRING = $0200; + B_ASN1_BIT_STRING = $0400; + B_ASN1_BMPSTRING = $0800; + B_ASN1_UNKNOWN = $1000; + B_ASN1_UTF8STRING = $2000; + B_ASN1_UTCTIME = $4000; + B_ASN1_GENERALIZEDTIME = $8000; + B_ASN1_SEQUENCE = $10000; + (* For use with ASN1_mbstring_copy() *) + MBSTRING_FLAG = $1000; + MBSTRING_UTF8 = MBSTRING_FLAG; + MBSTRING_ASC = MBSTRING_FLAG or 1; + MBSTRING_BMP = MBSTRING_FLAG or 2; + MBSTRING_UNIV = MBSTRING_FLAG or 4; + SMIME_OLDMIME = $400; + SMIME_CRLFEOL = $800; + SMIME_STREAM = $1000; + +// struct X509_algor_st; +//DEFINE_STACK_OF(X509_ALGOR) + + ASN1_STRING_FLAG_BITS_LEFT = $08; (* Set if $07 has bits left value *) + (* + * This indicates that the ASN1_STRING is not a real value but just a place + * holder for the location where indefinite length constructed data should be + * inserted in the memory buffer + *) + ASN1_STRING_FLAG_NDEF = $010; + + (* + * This flag is used by the CMS code to indicate that a string is not + * complete and is a place holder for content when it had all been accessed. + * The flag will be reset when content has been written to it. + *) + + ASN1_STRING_FLAG_CONT = $020; + (* + * This flag is used by ASN1 code to indicate an ASN1_STRING is an MSTRING + * type. + *) + ASN1_STRING_FLAG_MSTRING = $040; + (* String is embedded and only content should be freed *) + ASN1_STRING_FLAG_EMBED = $080; + (* String should be parsed in RFC 5280's time format *) + ASN1_STRING_FLAG_X509_TIME = $100; + + (* Used with ASN1 LONG type: if a long is set to this it is omitted *) + ASN1_LONG_UNDEF = TIdC_LONG($7fffffff); + + STABLE_FLAGS_MALLOC = $01; + (* + * A zero passed to ASN1_STRING_TABLE_new_add for the flags is interpreted + * as "don't change" and STABLE_FLAGS_MALLOC is always set. By setting + * STABLE_FLAGS_MALLOC only we can clear the existing value. Use the alias + * STABLE_FLAGS_CLEAR to reflect this. + *) + STABLE_FLAGS_CLEAR = STABLE_FLAGS_MALLOC; + STABLE_NO_MASK = $02; + DIRSTRING_TYPE = B_ASN1_PRINTABLESTRING or B_ASN1_T61STRING or B_ASN1_BMPSTRING or B_ASN1_UTF8STRING; + PKCS9STRING_TYPE = DIRSTRING_TYPE or B_ASN1_IA5STRING; + + (* size limits: this stuff is taken straight from RFC2459 *) + ub_name = 32768; + ub_common_name = 64; + ub_locality_name = 128; + ub_state_name = 128; + ub_organization_name = 64; + ub_organization_unit_name = 64; + ub_title = 64; + ub_email_address = 128; + + (* Parameters used by ASN1_STRING_print_ex() *) + + (* + * These determine which characters to escape: RFC2253 special characters, + * control characters and MSB set characters + *) + ASN1_STRFLGS_ESC_2253 = 1; + ASN1_STRFLGS_ESC_CTRL = 2; + ASN1_STRFLGS_ESC_MSB = 4; + + (* + * This flag determines how we do escaping: normally RC2253 backslash only, + * set this to use backslash and quote. + *) + + ASN1_STRFLGS_ESC_QUOTE = 8; + + (* These three flags are internal use only. *) + + (* Character is a valid PrintableString character *) + CHARTYPE_PRINTABLESTRING = $10; + (* Character needs escaping if it is the first character *) + CHARTYPE_FIRST_ESC_2253 = $20; + (* Character needs escaping if it is the last character *) + CHARTYPE_LAST_ESC_2253 = $40; + + (* + * NB the internal flags are safely reused below by flags handled at the top + * level. + *) + + (* + * If this is set we convert all character strings to UTF8 first + *) + + ASN1_STRFLGS_UTF8_CONVERT = $10; + + (* + * If this is set we don't attempt to interpret content: just assume all + * strings are 1 byte per character. This will produce some pretty odd + * looking output! + *) + + ASN1_STRFLGS_IGNORE_TYPE = $20; + + (* If this is set we include the string type in the output *) + ASN1_STRFLGS_SHOW_TYPE = $40; + + (* + * This determines which strings to display and which to 'dump' (hex dump of + * content octets or DER encoding). We can only dump non character strings or + * everything. If we don't dump 'unknown' they are interpreted as character + * strings with 1 octet per character and are subject to the usual escaping + * options. + *) + + ASN1_STRFLGS_DUMP_ALL = $80; + ASN1_STRFLGS_DUMP_UNKNOWN = $100; + + (* + * These determine what 'dumping' does, we can dump the content octets or the + * DER encoding: both use the RFC2253 #XXXXX notation. + *) + + ASN1_STRFLGS_DUMP_DER = $200; + + (* + * This flag specifies that RC2254 escaping shall be performed. + *) + + ASN1_STRFLGS_ESC_2254 = $400; + + (* + * All the string flags consistent with RFC2253, escaping control characters + * isn't essential in RFC2253 but it is advisable anyway. + *) + + ASN1_STRFLGS_RFC2253 = ASN1_STRFLGS_ESC_2253 or ASN1_STRFLGS_ESC_CTRL or + ASN1_STRFLGS_ESC_MSB or ASN1_STRFLGS_UTF8_CONVERT or + ASN1_STRFLGS_DUMP_UNKNOWN or ASN1_STRFLGS_DUMP_DER; + + B_ASN1_TIME = B_ASN1_UTCTIME or B_ASN1_GENERALIZEDTIME; + + B_ASN1_PRINTABLE = B_ASN1_NUMERICSTRING or B_ASN1_PRINTABLESTRING or + B_ASN1_T61STRING or B_ASN1_IA5STRING or B_ASN1_BIT_STRING or + B_ASN1_UNIVERSALSTRING or B_ASN1_BMPSTRING or B_ASN1_UTF8STRING or + B_ASN1_SEQUENCE or B_ASN1_UNKNOWN; + + B_ASN1_DIRECTORYSTRING = B_ASN1_PRINTABLESTRING or B_ASN1_TELETEXSTRING or + B_ASN1_BMPSTRING or B_ASN1_UNIVERSALSTRING or B_ASN1_UTF8STRING; + + B_ASN1_DISPLAYTEXT = B_ASN1_IA5STRING or B_ASN1_VISIBLESTRING or + B_ASN1_BMPSTRING or B_ASN1_UTF8STRING; + + (* ASN1 Print flags *) + (* Indicate missing OPTIONAL fields *) + ASN1_PCTX_FLAGS_SHOW_ABSENT = $001; + (* Mark start and end of SEQUENCE *) + ASN1_PCTX_FLAGS_SHOW_SEQUENCE = $002; + (* Mark start and end of SEQUENCE/SET OF *) + ASN1_PCTX_FLAGS_SHOW_SSOF = $004; + (* Show the ASN1 type of primitives *) + ASN1_PCTX_FLAGS_SHOW_TYPE = $008; + (* Don't show ASN1 type of ANY *) + ASN1_PCTX_FLAGS_NO_ANY_TYPE = $010; + (* Don't show ASN1 type of MSTRINGs *) + ASN1_PCTX_FLAGS_NO_MSTRING_TYPE = $020; + (* Don't show field names in SEQUENCE *) + ASN1_PCTX_FLAGS_NO_FIELD_NAME = $040; + (* Show structure names of each SEQUENCE field *) + ASN1_PCTX_FLAGS_SHOW_FIELD_STRUCT_NAME = $080; + (* Don't show structure name even at top level *) + ASN1_PCTX_FLAGS_NO_STRUCT_NAME = $100; + +type +// Moved to ossl_type to prevent circular references +///(* This is the base type that holds just about everything :-) *) +// asn1_string_st = record +// length: TIdC_int; +// type_: TIdC_int; +// data: PByte; +// (* +// * The value of the following field depends on the type being held. It +// * is mostly being used for BIT_STRING so if the input data has a +// * non-zero 'unused bits' value, it will be handled correctly +// *) +// flags: TIdC_long; +// end; + + (* + * ASN1_ENCODING structure: this is used to save the received encoding of an + * ASN1 type. This is useful to get round problems with invalid encodings + * which can break signatures. + *) + + ASN1_ENCODING_st = record + enc: PIdAnsiChar; (* DER encoding *) + len: TIdC_LONG; (* Length of encoding *) + modified: TIdC_INT; (* set to 1 if 'enc' is invalid *) + end; + ASN1_ENCODING = ASN1_ENCODING_st; + + asn1_string_table_st = record + nid: TIdC_INT; + minsize: TIdC_LONG; + maxsize: TIdC_LONG; + mask: TIdC_ULONG; + flags: TIdC_ULONG; + end; + ASN1_STRING_TABLE = asn1_string_table_st; + PASN1_STRING_TABLE = ^ASN1_STRING_TABLE; + +// DEFINE_STACK_OF(ASN1_STRING_TABLE) + + (* !!! + * Declarations for template structures: for full definitions see asn1t.h + *) + (* This is just an opaque pointer *) +// typedef struct ASN1_VALUE_st ASN1_VALUE; + + (* Declare ASN1 functions: the implement macro in in asn1t.h *) + +//# define DECLARE_ASN1_FUNCTIONS(type) DECLARE_ASN1_FUNCTIONS_name(type, type) +// +//# define DECLARE_ASN1_ALLOC_FUNCTIONS(type) \ +// DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, type) +// +//# define DECLARE_ASN1_FUNCTIONS_name(type, name) \ +// DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \ +// DECLARE_ASN1_ENCODE_FUNCTIONS(type, name, name) +// +//# define DECLARE_ASN1_FUNCTIONS_fname(type, itname, name) \ +// DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \ +// DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) +// +//# define DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) \ +// type *d2i_##name(type **a, const unsigned char **in, long len); \ +// int i2d_##name(type *a, unsigned char **out); \ +// DECLARE_ASN1_ITEM(itname) +// +//# define DECLARE_ASN1_ENCODE_FUNCTIONS_const(type, name) \ +// type *d2i_##name(type **a, const unsigned char **in, long len); \ +// int i2d_##name(const type *a, unsigned char **out); \ +// DECLARE_ASN1_ITEM(name) +// +//# define DECLARE_ASN1_NDEF_FUNCTION(name) \ +// int i2d_##name##_NDEF(name *a, unsigned char **out); +// +//# define DECLARE_ASN1_FUNCTIONS_const(name) \ +// DECLARE_ASN1_ALLOC_FUNCTIONS(name) \ +// DECLARE_ASN1_ENCODE_FUNCTIONS_const(name, name) +// +//# define DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \ +// type *name##_new(void); \ +// void name##_free(type *a); +// +//# define DECLARE_ASN1_PRINT_FUNCTION(stname) \ +// DECLARE_ASN1_PRINT_FUNCTION_fname(stname, stname) +// +//# define DECLARE_ASN1_PRINT_FUNCTION_fname(stname, fname) \ +// int fname##_print_ctx(BIO *out, stname *x, int indent, \ +// const ASN1_PCTX *pctx); +// +//# define D2I_OF(type) type *(*)(type **,const unsigned char **,long) +//# define I2D_OF(type) int (*)(type *,unsigned char **) +//# define I2D_OF_const(type) int (*)(const type *,unsigned char **) +// +//# define CHECKED_D2I_OF(type, d2i) \ +// ((d2i_of_void*) (1 ? d2i : ((D2I_OF(type))0))) +//# define CHECKED_I2D_OF(type, i2d) \ +// ((i2d_of_void*) (1 ? i2d : ((I2D_OF(type))0))) +//# define CHECKED_NEW_OF(type, xnew) \ +// ((void *(*)(void)) (1 ? xnew : ((type *(*)(void))0))) +//# define CHECKED_PTR_OF(type, p) \ +// ((void*) (1 ? p : (type*)0)) +//# define CHECKED_PPTR_OF(type, p) \ +// ((void**) (1 ? p : (type**)0)) +// +//# define TYPEDEF_D2I_OF(type) typedef type *d2i_of_##type(type **,const unsigned char **,long) +//# define TYPEDEF_I2D_OF(type) typedef int i2d_of_##type(type *,unsigned char **) +//# define TYPEDEF_D2I2D_OF(type) TYPEDEF_D2I_OF(type); TYPEDEF_I2D_OF(type) +// +//TYPEDEF_D2I2D_OF(void); + + (*- + * The following macros and typedefs allow an ASN1_ITEM + * to be embedded in a structure and referenced. Since + * the ASN1_ITEM pointers need to be globally accessible + * (possibly from shared libraries) they may exist in + * different forms. On platforms that support it the + * ASN1_ITEM structure itself will be globally exported. + * Other platforms will export a function that returns + * an ASN1_ITEM pointer. + * + * To handle both cases transparently the macros below + * should be used instead of hard coding an ASN1_ITEM + * pointer in a structure. + * + * The structure will look like this: + * + * typedef struct SOMETHING_st { + * ... + * ASN1_ITEM_EXP *iptr; + * ... + * } SOMETHING; + * + * It would be initialised as e.g.: + * + * SOMETHING somevar = {...,ASN1_ITEM_ref(X509),...}; + * + * and the actual pointer extracted with: + * + * const ASN1_ITEM *it = ASN1_ITEM_ptr(somevar.iptr); + * + * Finally an ASN1_ITEM pointer can be extracted from an + * appropriate reference with: ASN1_ITEM_rptr(X509). This + * would be used when a function takes an ASN1_ITEM * argument. + * + *) + +// # ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION + +///(* ASN1_ITEM pointer exported type *) +//typedef const ASN1_ITEM ASN1_ITEM_EXP; +// +///(* Macro to obtain ASN1_ITEM pointer from exported type *) +//# define ASN1_ITEM_ptr(iptr) (iptr) +// +// (* Macro to include ASN1_ITEM pointer from base type *) +//# define ASN1_ITEM_ref(iptr) (&(iptr##_it)) +// +//# define ASN1_ITEM_rptr(ref) (&(ref##_it)) +// +//# define DECLARE_ASN1_ITEM(name) \ +// OPENSSL_EXTERN const ASN1_ITEM name##_it; +// +//# else + +// (* +// * Platforms that can't easily handle shared global variables are declared as +// * functions returning ASN1_ITEM pointers. +// *) + +///(* ASN1_ITEM pointer exported type *) +//typedef const ASN1_ITEM *ASN1_ITEM_EXP (void); +// +///(* Macro to obtain ASN1_ITEM pointer from exported type *) +//# define ASN1_ITEM_ptr(iptr) (iptr()) +// +///(* Macro to include ASN1_ITEM pointer from base type *) +//# define ASN1_ITEM_ref(iptr) (iptr##_it) +// +//# define ASN1_ITEM_rptr(ref) (ref##_it()) +// +//# define DECLARE_ASN1_ITEM(name) \ +// const ASN1_ITEM * name##_it(void); +// +//# endif + +//DEFINE_STACK_OF(ASN1_INTEGER) +// +//DEFINE_STACK_OF(ASN1_GENERALSTRING) +// +//DEFINE_STACK_OF(ASN1_UTF8STRING) + +//DEFINE_STACK_OF(ASN1_TYPE) +// +//typedef STACK_OF(ASN1_TYPE) ASN1_SEQUENCE_ANY; +// +//DECLARE_ASN1_ENCODE_FUNCTIONS_const(ASN1_SEQUENCE_ANY, ASN1_SEQUENCE_ANY) +//DECLARE_ASN1_ENCODE_FUNCTIONS_const(ASN1_SEQUENCE_ANY, ASN1_SET_ANY) + + (* This is used to contain a list of bit names *) + + BIT_STRING_BITNAME_st = record + bitnum: TIdC_INT; + lname: PIdAnsiChar; + sname: PIdAnsiChar; + end; + BIT_STRING_BITNAME = BIT_STRING_BITNAME_st; + PBIT_STRING_BITNAME = ^BIT_STRING_BITNAME; + +//DECLARE_ASN1_FUNCTIONS(type) --> +// type *name##_new(void); \ +// void name##_free(type *a); +// type *d2i_##name(type **a, const unsigned char **in, long len); \ +// int i2d_##name(type *a, unsigned char **out); \ +//# define DECLARE_ASN1_ITEM(name) \ +// OPENSSL_EXTERN const ASN1_ITEM name##_it; + +// DECLARE_ASN1_FUNCTIONS_fname(ASN1_TYPE, ASN1_ANY, ASN1_TYPE) + function ASN1_TYPE_get(const a: PASN1_TYPE): TIdC_INT; + procedure ASN1_TYPE_set(a: PASN1_TYPE; type_: TIdC_INT; value: Pointer); + function ASN1_TYPE_set1(a: PASN1_TYPE; type_: TIdC_INT; const value: Pointer): TIdC_INT; + function ASN1_TYPE_cmp(const a: PASN1_TYPE; const b: PASN1_TYPE): TIdC_INT; + + function ASN1_TYPE_pack_sequence(const it: PASN1_ITEM; s: Pointer; t: PPASN1_TYPE): PASN1_TYPE; {introduced 1.1.0} + function ASN1_TYPE_unpack_sequence(const it: PASN1_ITEM; const t: PASN1_TYPE): Pointer; {introduced 1.1.0} + + function ASN1_OBJECT_new: PASN1_OBJECT; + procedure ASN1_OBJECT_free(a: PASN1_OBJECT); + function i2d_ASN1_OBJECT(const a: PASN1_OBJECT; pp: PPByte): TIdC_INT; + function d2i_ASN1_OBJECT(a: PPASN1_OBJECT; const pp: PPByte; length: TIdC_LONG): PASN1_OBJECT; + + //DECLARE_ASN1_ITEM(ASN1_OBJECT) + // + //DEFINE_STACK_OF(ASN1_OBJECT) + + function ASN1_STRING_new: PASN1_STRING; + procedure ASN1_STRING_free(a: PASN1_STRING); + procedure ASN1_STRING_clear_free(a: PASN1_STRING); + function ASN1_STRING_copy(dst: PASN1_STRING; const str: PASN1_STRING): TIdC_INT; + function ASN1_STRING_dup(const a: PASN1_STRING): PASN1_STRING; + function ASN1_STRING_type_new(type_: TIdC_INT): PASN1_STRING; + function ASN1_STRING_cmp(const a: PASN1_STRING; const b: PASN1_STRING): TIdC_INT; + + (* + * Since this is used to store all sorts of things, via macros, for now, + * make its data void * + *) + function ASN1_STRING_set(str: PASN1_STRING; const data: Pointer; len: TIdC_INT): TIdC_INT; + procedure ASN1_STRING_set0(str: PASN1_STRING; data: Pointer; len: TIdC_INT); + function ASN1_STRING_length(const x: PASN1_STRING): TIdC_INT; + procedure ASN1_STRING_length_set(x: PASN1_STRING; n: TIdC_INT); + function ASN1_STRING_type(const x: PASN1_STRING): TIdC_INT; + function ASN1_STRING_get0_data(const x: PASN1_STRING): PByte; {introduced 1.1.0} + + //DECLARE_ASN1_FUNCTIONS(ASN1_BIT_STRING) + function ASN1_BIT_STRING_set(a: PASN1_BIT_STRING; d: PByte; length: TIdC_INT): TIdC_INT; + function ASN1_BIT_STRING_set_bit(a: PASN1_BIT_STRING; n: TIdC_INT; value: TIdC_INT): TIdC_INT; + function ASN1_BIT_STRING_get_bit(const a: PASN1_BIT_STRING; n: TIdC_INT): TIdC_INT; + function ASN1_BIT_STRING_check(const a: PASN1_BIT_STRING; const flags: PByte; flags_len: TIdC_INT): TIdC_INT; + + function ASN1_BIT_STRING_name_print(out_: PBIO; bs: PASN1_BIT_STRING; tbl: PBIT_STRING_BITNAME; indent: TIdC_INT): TIdC_INT; + function ASN1_BIT_STRING_num_asc(const name: PIdAnsiChar; tbl: PBIT_STRING_BITNAME): TIdC_INT; + function ASN1_BIT_STRING_set_asc(bs: PASN1_BIT_STRING; const name: PIdAnsiChar; value: TIdC_INT; tbl: PBIT_STRING_BITNAME): TIdC_INT; + + function ASN1_INTEGER_new: PASN1_INTEGER; + procedure ASN1_INTEGER_free(a: PASN1_INTEGER); + function d2i_ASN1_INTEGER(a: PPASN1_INTEGER; const in_: PPByte; len: TIdC_Long): PASN1_INTEGER; + function i2d_ASN1_INTEGER(a: PASN1_INTEGER; out_: PPByte): TIdC_Int; + + function d2i_ASN1_UINTEGER(a: PPASN1_INTEGER; const pp: PPByte; length: TIdC_LONG): PASN1_INTEGER; + function ASN1_INTEGER_dup(const x: PASN1_INTEGER): PASN1_INTEGER; + function ASN1_INTEGER_cmp(const x: PASN1_INTEGER; const y: PASN1_INTEGER): TIdC_INT; + + // DECLARE_ASN1_FUNCTIONS(ASN1_ENUMERATED) + + function ASN1_UTCTIME_check(const a: PASN1_UTCTIME): TIdC_INT; + function ASN1_UTCTIME_set(s: PASN1_UTCTIME; t: TIdC_TIMET): PASN1_UTCTIME; + function ASN1_UTCTIME_adj(s: PASN1_UTCTIME; t: TIdC_TIMET; offset_day: TIdC_INT; offset_sec: TIdC_LONG): PASN1_UTCTIME; + function ASN1_UTCTIME_set_string(s: PASN1_UTCTIME; const str: PAnsiChar): TIdC_INT; + function ASN1_UTCTIME_cmp_time_t(const s: PASN1_UTCTIME; t: TIdC_TIMET): TIdC_INT; + + function ASN1_GENERALIZEDTIME_check(const a: PASN1_GENERALIZEDTIME): TIdC_INT; + function ASN1_GENERALIZEDTIME_set(s: PASN1_GENERALIZEDTIME; t: TIdC_TIMET): PASN1_GENERALIZEDTIME; + function ASN1_GENERALIZEDTIME_adj(s: PASN1_GENERALIZEDTIME; t: TIdC_TIMET; offset_day: TIdC_INT; offset_sec: TIdC_LONG): PASN1_GENERALIZEDTIME; + function ASN1_GENERALIZEDTIME_set_string(s: pASN1_GENERALIZEDTIME; const str: PAnsiChar): TIdC_INT; + + function ASN1_TIME_diff(pday: PIdC_INT; psec: PIdC_INT; const from: PASN1_TIME; const to_: PASN1_TIME): TIdC_INT; + + // DECLARE_ASN1_FUNCTIONS(ASN1_OCTET_STRING) + function ASN1_OCTET_STRING_dup(const a: PASN1_OCTET_STRING): PASN1_OCTET_STRING; + function ASN1_OCTET_STRING_cmp(const a: PASN1_OCTET_STRING; const b: PASN1_OCTET_STRING): TIdC_INT; + function ASN1_OCTET_STRING_set(str: PASN1_OCTET_STRING; const data: PByte; len: TIdC_INT): TIdC_INT; + + //DECLARE_ASN1_FUNCTIONS(ASN1_VISIBLESTRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_UNIVERSALSTRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_UTF8STRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_NULL) + //DECLARE_ASN1_FUNCTIONS(ASN1_BMPSTRING) + + function UTF8_getc(const str: PByte; len: TIdC_INT; val: PIdC_ULONG): TIdC_INT; + function UTF8_putc(str: PIdAnsiChar; len: TIdC_INT; value: TIdC_ULONG): TIdC_INT; + + //DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE) + // + //DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DIRECTORYSTRING) + //DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DISPLAYTEXT) + //DECLARE_ASN1_FUNCTIONS(ASN1_PRINTABLESTRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_T61STRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_IA5STRING) + //DECLARE_ASN1_FUNCTIONS(ASN1_GENERALSTRING) + + function ASN1_UTCTIME_new: PASN1_UTCTIME; + procedure ASN1_UTCTIME_free(a: PASN1_UTCTIME); + function d2i_ASN1_UTCTIME(a: PPASN1_UTCTIME; const in_: PPByte; len: TIdC_LONG): PASN1_UTCTIME; + function i2d_ASN1_UTCTIME(a: PASN1_UTCTIME; out_: PPByte): TIdC_INT; + + function ASN1_GENERALIZEDTIME_new: PASN1_GENERALIZEDTIME; + procedure ASN1_GENERALIZEDTIME_free(a: PASN1_GENERALIZEDTIME); + function d2i_ASN1_GENERALIZEDTIME(a: PPASN1_GENERALIZEDTIME; const in_: PPByte; len: TIdC_LONG): PASN1_GENERALIZEDTIME; + function i2d_ASN1_GENERALIZEDTIME(a: PASN1_GENERALIZEDTIME; out_: PPByte): TIdC_INT; + + function ASN1_TIME_new: PASN1_TIME; + procedure ASN1_TIME_free(a: PASN1_TIME); + function d2i_ASN1_TIME(a: PPASN1_TIME; const in_: PPByte; len: TIdC_LONG): PASN1_TIME; + function i2d_ASN1_TIME(a: PASN1_TIME; out_: PPByte): TIdC_INT; + + // DECLARE_ASN1_ITEM(ASN1_OCTET_STRING_NDEF) + + function ASN1_TIME_set(s: PASN1_TIME; t: TIdC_TIMET): PASN1_TIME; + function ASN1_TIME_adj(s: PASN1_TIME; t: TIdC_TIMET; offset_day: TIdC_INT; offset_sec: TIdC_LONG): PASN1_TIME; + function ASN1_TIME_check(const t: PASN1_TIME): TIdC_INT; + function ASN1_TIME_to_generalizedtime(const t: PASN1_TIME; out_: PPASN1_GENERALIZEDTIME): PASN1_GENERALIZEDTIME; + function ASN1_TIME_set_string(s: PASN1_TIME; const str: PIdAnsiChar): TIdC_INT; + function ASN1_TIME_set_string_X509(s: PASN1_TIME; const str: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + function ASN1_TIME_to_tm(const s: PASN1_TIME; tm: PIdC_TM): TIdC_INT; {introduced 1.1.0} + function ASN1_TIME_normalize(s: PASN1_TIME): TIdC_INT; {introduced 1.1.0} + function ASN1_TIME_cmp_time_t(const s: PASN1_TIME; t: TIdC_TIMET): TIdC_INT; {introduced 1.1.0} + function ASN1_TIME_compare(const a: PASN1_TIME; const b: PASN1_TIME): TIdC_INT; {introduced 1.1.0} + + function i2a_ASN1_INTEGER(bp: PBIO; const a: PASN1_INTEGER): TIdC_INT; + function a2i_ASN1_INTEGER(bp: PBIO; bs: PASN1_INTEGER; buf: PIdAnsiChar; size: TIdC_INT): TIdC_INT; + function i2a_ASN1_ENUMERATED(bp: PBIO; const a: PASN1_ENUMERATED): TIdC_INT; + function a2i_ASN1_ENUMERATED(bp: PBIO; bs: PASN1_ENUMERATED; buf: PIdAnsiChar; size: TIdC_INT): TIdC_INT; + function i2a_ASN1_OBJECT(bp: PBIO; const a: PASN1_OBJECT): TIdC_INT; + function a2i_ASN1_STRING(bp: PBIO; bs: PASN1_STRING; buf: PAnsiChar; size: TIdC_INT): TIdC_INT; + function i2a_ASN1_STRING(bp: PBIO; const a: PASN1_STRING; type_: TIdC_INT): TIdC_INT; + function i2t_ASN1_OBJECT(buf: PAnsiChar; buf_len: TIdC_INT; const a: PASN1_OBJECT): TIdC_INT; + + function a2d_ASN1_OBJECT(out_: PByte; olen: TIdC_INT; const buf: PIdAnsiChar; num: TIdC_INT): TIdC_INT; + function ASN1_OBJECT_create(nid: TIdC_INT; data: PByte; len: TIdC_INT; const sn: PAnsiChar; const ln: PAnsiChar): PASN1_OBJECT; + + function ASN1_INTEGER_get_int64(pr: PIdC_Int64; const a: PASN1_INTEGER): TIdC_INT; {introduced 1.1.0} + function ASN1_INTEGER_set_int64(a: PASN1_INTEGER; r: TIdC_Int64): TIdC_INT; {introduced 1.1.0} + function ASN1_INTEGER_get_uint64(pr: PIdC_UInt64; const a: PASN1_INTEGER): TIdC_INT; {introduced 1.1.0} + function ASN1_INTEGER_set_uint64(a: PASN1_INTEGER; r: TIdC_UInt64): TIdC_INT; {introduced 1.1.0} + + function ASN1_INTEGER_set(a: PASN1_INTEGER; v: TIdC_LONG): TIdC_INT; + function ASN1_INTEGER_get(const a: PASN1_INTEGER): TIdC_LONG; + function BN_to_ASN1_INTEGER(const bn: PBIGNUM; ai: PASN1_INTEGER): PASN1_INTEGER; + function ASN1_INTEGER_to_BN(const ai: PASN1_INTEGER; bn: PBIGNUM): PBIGNUM; + + function ASN1_ENUMERATED_get_int64(pr: PIdC_Int64; const a: PASN1_ENUMERATED): TIdC_INT; {introduced 1.1.0} + function ASN1_ENUMERATED_set_int64(a: PASN1_ENUMERATED; r: TIdC_Int64): TIdC_INT; {introduced 1.1.0} + + + function ASN1_ENUMERATED_set(a: PASN1_ENUMERATED; v: TIdC_LONG): TIdC_INT; + function ASN1_ENUMERATED_get(const a: PASN1_ENUMERATED): TIdC_LONG; + function BN_to_ASN1_ENUMERATED(const bn: PBIGNUM; ai: PASN1_ENUMERATED): PASN1_ENUMERATED; + function ASN1_ENUMERATED_to_BN(const ai: PASN1_ENUMERATED; bn: PBIGNUM): PBIGNUM; + + (* General *) + (* given a string, return the correct type, max is the maximum length *) + function ASN1_PRINTABLE_type(const s: PByte; max: TIdC_INT): TIdC_INT; + + function ASN1_tag2bit(tag: TIdC_INT): TIdC_ULONG; + + (* SPECIALS *) + function ASN1_get_object(const pp: PPByte; plength: PIdC_LONG; ptag: PIdC_INT; pclass: PIdC_INT; omax: TIdC_LONG): TIdC_INT; + function ASN1_check_infinite_end(p: PPByte; len: TIdC_LONG): TIdC_INT; + function ASN1_const_check_infinite_end(const p: PPByte; len: TIdC_LONG): TIdC_INT; + procedure ASN1_put_object(pp: PPByte; constructed: TIdC_INT; length: TIdC_INT; tag: TIdC_INT; xclass: TIdC_INT); + function ASN1_put_eoc(pp: PPByte): TIdC_INT; + function ASN1_object_size(constructed: TIdC_INT; length: TIdC_INT; tag: TIdC_INT): TIdC_INT; + + (* Used to implement other functions *) + //void *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, void *x); + // + //# define ASN1_dup_of(type,i2d,d2i,x) \ + // ((type*)ASN1_dup(CHECKED_I2D_OF(type, i2d), \ + // CHECKED_D2I_OF(type, d2i), \ + // CHECKED_PTR_OF(type, x))) + // + //# define ASN1_dup_of_const(type,i2d,d2i,x) \ + // ((type*)ASN1_dup(CHECKED_I2D_OF(const type, i2d), \ + // CHECKED_D2I_OF(type, d2i), \ + // CHECKED_PTR_OF(const type, x))) + // + function ASN1_item_dup(const it: PASN1_ITEM; x: Pointer): Pointer; + + (* ASN1 alloc/free macros for when a type is only used internally *) + + //# define M_ASN1_new_of(type) (type *)ASN1_item_new(ASN1_ITEM_rptr(type)) + //# define M_ASN1_free_of(x, type) \ + // ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type)) + // + //# ifndef OPENSSL_NO_STDIO + //void *ASN1_d2i_fp(void *(*xnew) (void), d2i_of_void *d2i, FILE *in, void **x); + + //# define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ + // ((type*)ASN1_d2i_fp(CHECKED_NEW_OF(type, xnew), \ + // CHECKED_D2I_OF(type, d2i), \ + // in, \ + // CHECKED_PPTR_OF(type, x))) + // + //function ASN1_item_d2i_fp(const it: PASN1_ITEM; in_: PFILE; x: Pointer): Pointer; + //function ASN1_i2d_fp(i2d: Pi2d_of_void; out_: PFILE; x: Pointer): TIdC_INT; + // + //# define ASN1_i2d_fp_of(type,i2d,out,x) \ + // (ASN1_i2d_fp(CHECKED_I2D_OF(type, i2d), \ + // out, \ + // CHECKED_PTR_OF(type, x))) + // + //# define ASN1_i2d_fp_of_const(type,i2d,out,x) \ + // (ASN1_i2d_fp(CHECKED_I2D_OF(const type, i2d), \ + // out, \ + // CHECKED_PTR_OF(const type, x))) + // + //function ASN1_item_i2d_fp(const it: PASN1_ITEM; out_: PFILE; x: Pointer): TIdC_INT; + //function ASN1_STRING_print_ex_fp(&fp: PFILE; const str: PASN1_STRING; flags: TIdC_ULONG): TIdC_INT; + //# endif + + function ASN1_STRING_to_UTF8(out_: PPByte; const in_: PASN1_STRING): TIdC_INT; + + //void *ASN1_d2i_bio(void *(*xnew) (void), d2i_of_void *d2i, BIO *in, void **x); + + //# define ASN1_d2i_bio_of(type,xnew,d2i,in,x) \ + // ((type*)ASN1_d2i_bio( CHECKED_NEW_OF(type, xnew), \ + // CHECKED_D2I_OF(type, d2i), \ + // in, \ + // CHECKED_PPTR_OF(type, x))) + + function ASN1_item_d2i_bio(const it: PASN1_ITEM; in_: PBIO; x: Pointer): Pointer; + function ASN1_i2d_bio(i2d: Pi2d_of_void; out_: PBIO; x: PByte): TIdC_INT; + + //# define ASN1_i2d_bio_of(type,i2d,out,x) \ + // (ASN1_i2d_bio(CHECKED_I2D_OF(type, i2d), \ + // out, \ + // CHECKED_PTR_OF(type, x))) + // + //# define ASN1_i2d_bio_of_const(type,i2d,out,x) \ + // (ASN1_i2d_bio(CHECKED_I2D_OF(const type, i2d), \ + // out, \ + // CHECKED_PTR_OF(const type, x))) + + function ASN1_item_i2d_bio(const it: PASN1_ITEM; out_: PBIO; x: Pointer): TIdC_INT; + function ASN1_UTCTIME_print(fp: PBIO; const a: PASN1_UTCTIME): TIdC_INT; + function ASN1_GENERALIZEDTIME_print(fp: PBIO; const a: PASN1_GENERALIZEDTIME): TIdC_INT; + function ASN1_TIME_print(fp: PBIO; const a: PASN1_TIME): TIdC_INT; + function ASN1_STRING_print(bp: PBIO; const v: PASN1_STRING): TIdC_INT; + function ASN1_STRING_print_ex(out_: PBIO; const str: PASN1_STRING; flags: TIdC_ULONG): TIdC_INT; + function ASN1_buf_print(bp: PBIO; const buf: PByte; buflen: TIdC_SIZET; off: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function ASN1_bn_print(bp: PBIO; const number: PIdAnsiChar; const num: PBIGNUM; buf: PByte; off: TIdC_INT): TIdC_INT; + function ASN1_parse(bp: PBIO; const pp: PByte; len: TIdC_LONG; indent: TIdC_INT): TIdC_INT; + function ASN1_parse_dump(bp: PPBIO; const pp: PByte; len: TIdC_LONG; indent: TIdC_INT; dump: TIdC_INT): TIdC_INT; + function ASN1_tag2str(tag: TIdC_INT): PIdAnsiChar; + + (* Used to load and write Netscape format cert *) + + function ASN1_UNIVERSALSTRING_to_string(s: PASN1_UNIVERSALSTRING): TIdC_INT; + + function ASN1_TYPE_set_octetstring(a: PASN1_TYPE; data: PByte; len: TIdC_INT): TIdC_INT; + function ASN1_TYPE_get_octetstring(const a: PASN1_TYPE; data: PByte; max_len: TIdC_INT): TIdC_INT; + function ASN1_TYPE_set_int_octetstring(a: PASN1_TYPE; num: TIdC_LONG; data: PByte; len: TIdC_INT): TIdC_INT; + function ASN1_TYPE_get_int_octetstring(const a: PASN1_TYPE; num: PIdC_LONG; data: PByte; max_len: TIdC_INT): TIdC_INT; + + function ASN1_item_unpack(const oct: PASN1_STRING; const it: PASN1_ITEM): Pointer; + + function ASN1_item_pack(obj: Pointer; const it: PASN1_ITEM; oct: PPASN1_OCTET_STRING): PASN1_STRING; + + procedure ASN1_STRING_set_default_mask(mask: TIdC_ULONG); + function ASN1_STRING_set_default_mask_asc(const p: PAnsiChar): TIdC_INT; + function ASN1_STRING_get_default_mask: TIdC_ULONG; + function ASN1_mbstring_copy(out_: PPASN1_STRING; const in_: PByte; len: TIdC_INT; inform: TIdC_INT; mask: TIdC_ULONG): TIdC_INT; + function ASN1_mbstring_ncopy(out_: PPASN1_STRING; const in_: PByte; len: TIdC_INT; inform: TIdC_INT; mask: TIdC_ULONG; minsize: TIdC_LONG; maxsize: TIdC_LONG): TIdC_INT; + + function ASN1_STRING_set_by_NID(out_: PPASN1_STRING; const in_: PByte; inlen: TIdC_INT; inform: TIdC_INT; nid: TIdC_INT): PASN1_STRING; + function ASN1_STRING_TABLE_get(nid: TIdC_INT): PASN1_STRING_TABLE; + function ASN1_STRING_TABLE_add(v1: TIdC_INT; v2: TIdC_LONG; v3: TIdC_LONG; v4: TIdC_ULONG; v5: TIdC_ULONG): TIdC_INT; + procedure ASN1_STRING_TABLE_cleanup; + + (* ASN1 template functions *) + + (* Old API compatible functions *) + function ASN1_item_new(const it: PASN1_ITEM): PASN1_VALUE; + procedure ASN1_item_free(val: PASN1_VALUE; const it: PASN1_ITEM); + function ASN1_item_d2i(val: PPASN1_VALUE; const in_: PPByte; len: TIdC_LONG; const it: PASN1_ITEM): PASN1_VALUE; + function ASN1_item_i2d(val: PASN1_VALUE; out_: PPByte; const it: PASN1_ITEM): TIdC_INT; + function ASN1_item_ndef_i2d(val: PASN1_VALUE; out_: PPByte; const it: PASN1_ITEM): TIdC_INT; + + procedure ASN1_add_oid_module; + procedure ASN1_add_stable_module; {introduced 1.1.0} + + function ASN1_generate_nconf(const str: PAnsiChar; nconf: PCONF): PASN1_TYPE; + function ASN1_generate_v3(const str: PAnsiChar; cnf: PX509V3_CTX): PASN1_TYPE; + function ASN1_str2mask(const str: PByte; pmask: PIdC_ULONG): TIdC_INT; {introduced 1.1.0} + + function ASN1_item_print(out_: PBIO; ifld: PASN1_VALUE; indent: TIdC_INT; const it: PASN1_ITEM; const pctx: PASN1_PCTX): TIdC_INT; + function ASN1_PCTX_new: PASN1_PCTX; + procedure ASN1_PCTX_free(p: PASN1_PCTX); + function ASN1_PCTX_get_flags(const p: PASN1_PCTX): TIdC_ULONG; + procedure ASN1_PCTX_set_flags(p: PASN1_PCTX; flags: TIdC_ULONG); + function ASN1_PCTX_get_nm_flags(const p: PASN1_PCTX): TIdC_ULONG; + procedure ASN1_PCTX_set_nm_flags(p: PASN1_PCTX; flags: TIdC_ULONG); + function ASN1_PCTX_get_cert_flags(const p: PASN1_PCTX): TIdC_ULONG; + procedure ASN1_PCTX_set_cert_flags(p: PASN1_PCTX; flags: TIdC_ULONG); + function ASN1_PCTX_get_oid_flags(const p: PASN1_PCTX): TIdC_ULONG; + procedure ASN1_PCTX_set_oid_flags(p: PASN1_PCTX; flags: TIdC_ULONG); + function ASN1_PCTX_get_str_flags(const p: PASN1_PCTX): TIdC_ULONG; + procedure ASN1_PCTX_set_str_flags(p: PASN1_PCTX; flags: TIdC_ULONG); + + //ASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx)); + procedure ASN1_SCTX_free(p: PASN1_SCTX); {introduced 1.1.0} + function ASN1_SCTX_get_item(p: PASN1_SCTX): PASN1_ITEM; {introduced 1.1.0} + function ASN1_SCTX_get_template(p: PASN1_SCTX): PASN1_TEMPLATE; {introduced 1.1.0} + function ASN1_SCTX_get_flags(p: PASN1_SCTX): TIdC_ULONG; {introduced 1.1.0} + procedure ASN1_SCTX_set_app_data(p: PASN1_SCTX; data: Pointer); {introduced 1.1.0} + function ASN1_SCTX_get_app_data(p: PASN1_SCTX): Pointer; {introduced 1.1.0} + + function BIO_f_asn1: PBIO_METHOD; + + function BIO_new_NDEF(out_: PBIO; val: PASN1_VALUE; const it: PASN1_ITEM): PBIO; + + function i2d_ASN1_bio_stream(out_: PBIO; val: PASN1_VALUE; in_: PBIO; flags: TIdC_INT; const it: PASN1_ITEM): TIdC_INT; + function PEM_write_bio_ASN1_stream(out_: PBIO; val: PASN1_VALUE; in_: PBIO; flags: TIdC_INT; const hdr: PAnsiChar; const it: PASN1_ITEM): TIdC_INT; + //function SMIME_write_ASN1(bio: PBIO; val: PASN1_VALUE; data: PBIO; flags: TIdC_INT; + // ctype_nid: TIdC_INT; econt_nid: TIdC_INT; + // STACK_OF(X509_ALGOR) *mdalgs, const ASN1_ITEM *it): TIdC_INT; + function SMIME_read_ASN1(bio: PBIO; bcont: PPBIO; const it: PASN1_ITEM): PASN1_VALUE; + function SMIME_crlf_copy(in_: PBIO; out_: PBIO; flags: TIdC_INT): TIdC_INT; + function SMIME_text(in_: PBIO; out_: PBIO): TIdC_INT; + + function ASN1_ITEM_lookup(const name: PIdAnsiChar): PASN1_ITEM; {introduced 1.1.0} + function ASN1_ITEM_get(i: TIdC_SIZET): PASN1_ITEM; {introduced 1.1.0} + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1_mac.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1_mac.h2pas new file mode 100644 index 000000000..d8dcc3f92 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1_mac.h2pas @@ -0,0 +1,35 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_asn1_mac; + +interface + +// Headers for OpenSSL 1.1.1 +// asn1_mac.h + +{.$i IdCompilerDefines.inc} + +//#error "This file is obsolete; please update your software." + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1err.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1err.h2pas new file mode 100644 index 000000000..fd8ba1a93 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1err.h2pas @@ -0,0 +1,270 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_asn1err; + +interface + +// Headers for OpenSSL 1.1.1 +// asn1err.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + +// ASN1 function codes. + ASN1_F_A2D_ASN1_OBJECT = 100; + ASN1_F_A2I_ASN1_INTEGER = 102; + ASN1_F_A2I_ASN1_STRING = 103; + ASN1_F_APPEND_EXP = 176; + ASN1_F_ASN1_BIO_INIT = 113; + ASN1_F_ASN1_BIT_STRING_SET_BIT = 183; + ASN1_F_ASN1_CB = 177; + ASN1_F_ASN1_CHECK_TLEN = 104; + ASN1_F_ASN1_COLLECT = 106; + ASN1_F_ASN1_D2I_EX_PRIMITIVE = 108; + ASN1_F_ASN1_D2I_FP = 109; + ASN1_F_ASN1_D2I_READ_BIO = 107; + ASN1_F_ASN1_DIGEST = 184; + ASN1_F_ASN1_DO_ADB = 110; + ASN1_F_ASN1_DO_LOCK = 233; + ASN1_F_ASN1_DUP = 111; + ASN1_F_ASN1_ENC_SAVE = 115; + ASN1_F_ASN1_EX_C2I = 204; + ASN1_F_ASN1_FIND_END = 190; + ASN1_F_ASN1_GENERALIZEDTIME_ADJ = 216; + ASN1_F_ASN1_GENERATE_V3 = 178; + ASN1_F_ASN1_GET_INT64 = 224; + ASN1_F_ASN1_GET_OBJECT = 114; + ASN1_F_ASN1_GET_UINT64 = 225; + ASN1_F_ASN1_I2D_BIO = 116; + ASN1_F_ASN1_I2D_FP = 117; + ASN1_F_ASN1_ITEM_D2I_FP = 206; + ASN1_F_ASN1_ITEM_DUP = 191; + ASN1_F_ASN1_ITEM_EMBED_D2I = 120; + ASN1_F_ASN1_ITEM_EMBED_NEW = 121; + ASN1_F_ASN1_ITEM_FLAGS_I2D = 118; + ASN1_F_ASN1_ITEM_I2D_BIO = 192; + ASN1_F_ASN1_ITEM_I2D_FP = 193; + ASN1_F_ASN1_ITEM_PACK = 198; + ASN1_F_ASN1_ITEM_SIGN = 195; + ASN1_F_ASN1_ITEM_SIGN_CTX = 220; + ASN1_F_ASN1_ITEM_UNPACK = 199; + ASN1_F_ASN1_ITEM_VERIFY = 197; + ASN1_F_ASN1_MBSTRING_NCOPY = 122; + ASN1_F_ASN1_OBJECT_NEW = 123; + ASN1_F_ASN1_OUTPUT_DATA = 214; + ASN1_F_ASN1_PCTX_NEW = 205; + ASN1_F_ASN1_PRIMITIVE_NEW = 119; + ASN1_F_ASN1_SCTX_NEW = 221; + ASN1_F_ASN1_SIGN = 128; + ASN1_F_ASN1_STR2TYPE = 179; + ASN1_F_ASN1_STRING_GET_INT64 = 227; + ASN1_F_ASN1_STRING_GET_UINT64 = 230; + ASN1_F_ASN1_STRING_SET = 186; + ASN1_F_ASN1_STRING_TABLE_ADD = 129; + ASN1_F_ASN1_STRING_TO_BN = 228; + ASN1_F_ASN1_STRING_TYPE_NEW = 130; + ASN1_F_ASN1_TEMPLATE_EX_D2I = 132; + ASN1_F_ASN1_TEMPLATE_NEW = 133; + ASN1_F_ASN1_TEMPLATE_NOEXP_D2I = 131; + ASN1_F_ASN1_TIME_ADJ = 217; + ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING = 134; + ASN1_F_ASN1_TYPE_GET_OCTETSTRING = 135; + ASN1_F_ASN1_UTCTIME_ADJ = 218; + ASN1_F_ASN1_VERIFY = 137; + ASN1_F_B64_READ_ASN1 = 209; + ASN1_F_B64_WRITE_ASN1 = 210; + ASN1_F_BIO_NEW_NDEF = 208; + ASN1_F_BITSTR_CB = 180; + ASN1_F_BN_TO_ASN1_STRING = 229; + ASN1_F_C2I_ASN1_BIT_STRING = 189; + ASN1_F_C2I_ASN1_INTEGER = 194; + ASN1_F_C2I_ASN1_OBJECT = 196; + ASN1_F_C2I_IBUF = 226; + ASN1_F_C2I_UINT64_INT = 101; + ASN1_F_COLLECT_DATA = 140; + ASN1_F_D2I_ASN1_OBJECT = 147; + ASN1_F_D2I_ASN1_UINTEGER = 150; + ASN1_F_D2I_AUTOPRIVATEKEY = 207; + ASN1_F_D2I_PRIVATEKEY = 154; + ASN1_F_D2I_PUBLICKEY = 155; + ASN1_F_DO_BUF = 142; + ASN1_F_DO_CREATE = 124; + ASN1_F_DO_DUMP = 125; + ASN1_F_DO_TCREATE = 222; + ASN1_F_I2A_ASN1_OBJECT = 126; + ASN1_F_I2D_ASN1_BIO_STREAM = 211; + ASN1_F_I2D_ASN1_OBJECT = 143; + ASN1_F_I2D_DSA_PUBKEY = 161; + ASN1_F_I2D_EC_PUBKEY = 181; + ASN1_F_I2D_PRIVATEKEY = 163; + ASN1_F_I2D_PUBLICKEY = 164; + ASN1_F_I2D_RSA_PUBKEY = 165; + ASN1_F_LONG_C2I = 166; + ASN1_F_NDEF_PREFIX = 127; + ASN1_F_NDEF_SUFFIX = 136; + ASN1_F_OID_MODULE_INIT = 174; + ASN1_F_PARSE_TAGGING = 182; + ASN1_F_PKCS5_PBE2_SET_IV = 167; + ASN1_F_PKCS5_PBE2_SET_SCRYPT = 231; + ASN1_F_PKCS5_PBE_SET = 202; + ASN1_F_PKCS5_PBE_SET0_ALGOR = 215; + ASN1_F_PKCS5_PBKDF2_SET = 219; + ASN1_F_PKCS5_SCRYPT_SET = 232; + ASN1_F_SMIME_READ_ASN1 = 212; + ASN1_F_SMIME_TEXT = 213; + ASN1_F_STABLE_GET = 138; + ASN1_F_STBL_MODULE_INIT = 223; + ASN1_F_UINT32_C2I = 105; + ASN1_F_UINT32_NEW = 139; + ASN1_F_UINT64_C2I = 112; + ASN1_F_UINT64_NEW = 141; + ASN1_F_X509_CRL_ADD0_REVOKED = 169; + ASN1_F_X509_INFO_NEW = 170; + ASN1_F_X509_NAME_ENCODE = 203; + ASN1_F_X509_NAME_EX_D2I = 158; + ASN1_F_X509_NAME_EX_NEW = 171; + ASN1_F_X509_PKEY_NEW = 173; + +// ASN1 reason codes. + ASN1_R_ADDING_OBJECT = 171; + ASN1_R_ASN1_PARSE_ERROR = 203; + ASN1_R_ASN1_SIG_PARSE_ERROR = 204; + ASN1_R_AUX_ERROR = 100; + ASN1_R_BAD_OBJECT_HEADER = 102; + ASN1_R_BMPSTRING_IS_WRONG_LENGTH = 214; + ASN1_R_BN_LIB = 105; + ASN1_R_BOOLEAN_IS_WRONG_LENGTH = 106; + ASN1_R_BUFFER_TOO_SMALL = 107; + ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER = 108; + ASN1_R_CONTEXT_NOT_INITIALISED = 217; + ASN1_R_DATA_IS_WRONG = 109; + ASN1_R_DECODE_ERROR = 110; + ASN1_R_DEPTH_EXCEEDED = 174; + ASN1_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED = 198; + ASN1_R_ENCODE_ERROR = 112; + ASN1_R_ERROR_GETTING_TIME = 173; + ASN1_R_ERROR_LOADING_SECTION = 172; + ASN1_R_ERROR_SETTING_CIPHER_PARAMS = 114; + ASN1_R_EXPECTING_AN_INTEGER = 115; + ASN1_R_EXPECTING_AN_OBJECT = 116; + ASN1_R_EXPLICIT_LENGTH_MISMATCH = 119; + ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED = 120; + ASN1_R_FIELD_MISSING = 121; + ASN1_R_FIRST_NUM_TOO_LARGE = 122; + ASN1_R_HEADER_TOO_LONG = 123; + ASN1_R_ILLEGAL_BITSTRING_FORMAT = 175; + ASN1_R_ILLEGAL_BOOLEAN = 176; + ASN1_R_ILLEGAL_CHARACTERS = 124; + ASN1_R_ILLEGAL_FORMAT = 177; + ASN1_R_ILLEGAL_HEX = 178; + ASN1_R_ILLEGAL_IMPLICIT_TAG = 179; + ASN1_R_ILLEGAL_INTEGER = 180; + ASN1_R_ILLEGAL_NEGATIVE_VALUE = 226; + ASN1_R_ILLEGAL_NESTED_TAGGING = 181; + ASN1_R_ILLEGAL_NULL = 125; + ASN1_R_ILLEGAL_NULL_VALUE = 182; + ASN1_R_ILLEGAL_OBJECT = 183; + ASN1_R_ILLEGAL_OPTIONAL_ANY = 126; + ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE = 170; + ASN1_R_ILLEGAL_PADDING = 221; + ASN1_R_ILLEGAL_TAGGED_ANY = 127; + ASN1_R_ILLEGAL_TIME_VALUE = 184; + ASN1_R_ILLEGAL_ZERO_CONTENT = 222; + ASN1_R_INTEGER_NOT_ASCII_FORMAT = 185; + ASN1_R_INTEGER_TOO_LARGE_FOR_LONG = 128; + ASN1_R_INVALID_BIT_STRING_BITS_LEFT = 220; + ASN1_R_INVALID_BMPSTRING_LENGTH = 129; + ASN1_R_INVALID_DIGIT = 130; + ASN1_R_INVALID_MIME_TYPE = 205; + ASN1_R_INVALID_MODIFIER = 186; + ASN1_R_INVALID_NUMBER = 187; + ASN1_R_INVALID_OBJECT_ENCODING = 216; + ASN1_R_INVALID_SCRYPT_PARAMETERS = 227; + ASN1_R_INVALID_SEPARATOR = 131; + ASN1_R_INVALID_STRING_TABLE_VALUE = 218; + ASN1_R_INVALID_UNIVERSALSTRING_LENGTH = 133; + ASN1_R_INVALID_UTF8STRING = 134; + ASN1_R_INVALID_VALUE = 219; + ASN1_R_LIST_ERROR = 188; + ASN1_R_MIME_NO_CONTENT_TYPE = 206; + ASN1_R_MIME_PARSE_ERROR = 207; + ASN1_R_MIME_SIG_PARSE_ERROR = 208; + ASN1_R_MISSING_EOC = 137; + ASN1_R_MISSING_SECOND_NUMBER = 138; + ASN1_R_MISSING_VALUE = 189; + ASN1_R_MSTRING_NOT_UNIVERSAL = 139; + ASN1_R_MSTRING_WRONG_TAG = 140; + ASN1_R_NESTED_ASN1_STRING = 197; + ASN1_R_NESTED_TOO_DEEP = 201; + ASN1_R_NON_HEX_CHARACTERS = 141; + ASN1_R_NOT_ASCII_FORMAT = 190; + ASN1_R_NOT_ENOUGH_DATA = 142; + ASN1_R_NO_CONTENT_TYPE = 209; + ASN1_R_NO_MATCHING_CHOICE_TYPE = 143; + ASN1_R_NO_MULTIPART_BODY_FAILURE = 210; + ASN1_R_NO_MULTIPART_BOUNDARY = 211; + ASN1_R_NO_SIG_CONTENT_TYPE = 212; + ASN1_R_NULL_IS_WRONG_LENGTH = 144; + ASN1_R_OBJECT_NOT_ASCII_FORMAT = 191; + ASN1_R_ODD_NUMBER_OF_CHARS = 145; + ASN1_R_SECOND_NUMBER_TOO_LARGE = 147; + ASN1_R_SEQUENCE_LENGTH_MISMATCH = 148; + ASN1_R_SEQUENCE_NOT_CONSTRUCTED = 149; + ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG = 192; + ASN1_R_SHORT_LINE = 150; + ASN1_R_SIG_INVALID_MIME_TYPE = 213; + ASN1_R_STREAMING_NOT_SUPPORTED = 202; + ASN1_R_STRING_TOO_LONG = 151; + ASN1_R_STRING_TOO_SHORT = 152; + ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD = 154; + ASN1_R_TIME_NOT_ASCII_FORMAT = 193; + ASN1_R_TOO_LARGE = 223; + ASN1_R_TOO_LONG = 155; + ASN1_R_TOO_SMALL = 224; + ASN1_R_TYPE_NOT_CONSTRUCTED = 156; + ASN1_R_TYPE_NOT_PRIMITIVE = 195; + ASN1_R_UNEXPECTED_EOC = 159; + ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH = 215; + ASN1_R_UNKNOWN_FORMAT = 160; + ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM = 161; + ASN1_R_UNKNOWN_OBJECT_TYPE = 162; + ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE = 163; + ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM = 199; + ASN1_R_UNKNOWN_TAG = 194; + ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE = 164; + ASN1_R_UNSUPPORTED_CIPHER = 228; + ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE = 167; + ASN1_R_UNSUPPORTED_TYPE = 196; + ASN1_R_WRONG_INTEGER_TYPE = 225; + ASN1_R_WRONG_PUBLIC_KEY_TYPE = 200; + ASN1_R_WRONG_TAG = 168; + + function ERR_load_ASN1_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1t.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1t.h2pas new file mode 100644 index 000000000..c94772bab --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asn1t.h2pas @@ -0,0 +1,984 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_asn1t; + +interface + +// Headers for OpenSSL 1.1.1 +// asn1t.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +type + // moved from asn1 + ASN1_ITEM_EXP = ASN1_ITEM; + PASN1_ITEM_EXP = ^ASN1_ITEM_EXP; + +//# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION +// +///// Macro to obtain ASN1_ADB pointer from a type (only used internally) /// +//# define ASN1_ADB_ptr(iptr) ((const ASN1_ADB //)(iptr)) +// +///// Macros for start and end of ASN1_ITEM definition /// +// +//# define ASN1_ITEM_start(itname) \ +// const ASN1_ITEM itname##_it = { +// +//# define static_ASN1_ITEM_start(itname) \ +// static const ASN1_ITEM itname##_it = { +// +//# define ASN1_ITEM_end(itname) \ +// }; +// +//# else +// +///// Macro to obtain ASN1_ADB pointer from a type (only used internally) /// +//# define ASN1_ADB_ptr(iptr) ((const ASN1_ADB //)((iptr)())) +// +///// Macros for start and end of ASN1_ITEM definition /// +// +//# define ASN1_ITEM_start(itname) \ +// const ASN1_ITEM // itname##_it(void) \ +// { \ +// static const ASN1_ITEM local_it = { +// +//# define static_ASN1_ITEM_start(itname) \ +// static ASN1_ITEM_start(itname) +// +//# define ASN1_ITEM_end(itname) \ +// }; \ +// return &local_it; \ +// } +// +//# endif +// +///// Macros to aid ASN1 template writing /// +// +// ASN1_ITEM_TEMPLATE(tname) \ +// static const PASN1_TEMPLATE tname##_item_tt +// +// ASN1_ITEM_TEMPLATE_END(tname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_PRIMITIVE,\ +// -1,\ +// &tname##_item_tt,\ +// 0,\ +// NULL,\ +// 0,\ +// #tname \ +// ASN1_ITEM_end(tname) +// static_ASN1_ITEM_TEMPLATE_END(tname) \ +// ;\ +// static_ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_PRIMITIVE,\ +// -1,\ +// &tname##_item_tt,\ +// 0,\ +// NULL,\ +// 0,\ +// #tname \ +// ASN1_ITEM_end(tname) +// +///// This is a ASN1 type which just embeds a template /// +// +/////- +// // This pair helps declare a SEQUENCE. We can do: +// // +// // ASN1_SEQUENCE(stname) = { +// // ... SEQUENCE components ... +// // } ASN1_SEQUENCE_END(stname) +// // +// // This will produce an ASN1_ITEM called stname_it +// // for a structure called stname. +// // +// // If you want the same structure but a different +// // name then use: +// // +// // ASN1_SEQUENCE(itname) = { +// // ... SEQUENCE components ... +// // } ASN1_SEQUENCE_END_name(stname, itname) +// // +// // This will create an item called itname_it using +// // a structure called stname. +// /// +// +// ASN1_SEQUENCE(tname) \ +// static const PASN1_TEMPLATE tname##_seq_tt[] +// +// ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname) +// +// static_ASN1_SEQUENCE_END(stname) static_ASN1_SEQUENCE_END_name(stname, stname) +// +// ASN1_SEQUENCE_END_name(stname, tname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(stname),\ +// #tname \ +// ASN1_ITEM_end(tname) +// +// static_ASN1_SEQUENCE_END_name(stname, tname) \ +// ;\ +// static_ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +// ASN1_NDEF_SEQUENCE(tname) \ +// ASN1_SEQUENCE(tname) +// +// ASN1_NDEF_SEQUENCE_cb(tname, cb) \ +// ASN1_SEQUENCE_cb(tname, cb) +// +// ASN1_SEQUENCE_cb(tname, cb) \ +// static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \ +// ASN1_SEQUENCE(tname) +// +// ASN1_BROKEN_SEQUENCE(tname) \ +// static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_BROKEN, 0, 0, 0, 0}; \ +// ASN1_SEQUENCE(tname) +// +// ASN1_SEQUENCE_ref(tname, cb) \ +// static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_REFCOUNT, offsetof(tname, references), offsetof(tname, lock), cb, 0}; \ +// ASN1_SEQUENCE(tname) +// +// ASN1_SEQUENCE_enc(tname, enc, cb) \ +// static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_ENCODING, 0, 0, cb, offsetof(tname, enc)}; \ +// ASN1_SEQUENCE(tname) +// +// ASN1_NDEF_SEQUENCE_END(tname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_NDEF_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(tname),\ +// #tname \ +// ASN1_ITEM_end(tname) +// static_ASN1_NDEF_SEQUENCE_END(tname) \ +// ;\ +// static_ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_NDEF_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(tname),\ +// #tname \ +// ASN1_ITEM_end(tname) +// +// ASN1_BROKEN_SEQUENCE_END(stname) ASN1_SEQUENCE_END_ref(stname, stname) +// static_ASN1_BROKEN_SEQUENCE_END(stname) \ +// static_ASN1_SEQUENCE_END_ref(stname, stname) +// +// ASN1_SEQUENCE_END_enc(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname) +// +// ASN1_SEQUENCE_END_cb(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname) +// static_ASN1_SEQUENCE_END_cb(stname, tname) static_ASN1_SEQUENCE_END_ref(stname, tname) +// +// ASN1_SEQUENCE_END_ref(stname, tname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// &tname##_aux,\ +// sizeof(stname),\ +// #tname \ +// ASN1_ITEM_end(tname) +// static_ASN1_SEQUENCE_END_ref(stname, tname) \ +// ;\ +// static_ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// &tname##_aux,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +// ASN1_NDEF_SEQUENCE_END_cb(stname, tname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_NDEF_SEQUENCE,\ +// V_ASN1_SEQUENCE,\ +// tname##_seq_tt,\ +// sizeof(tname##_seq_tt) / sizeof(PASN1_TEMPLATE),\ +// &tname##_aux,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +/////- +// // This pair helps declare a CHOICE type. We can do: +// // +// // ASN1_CHOICE(chname) = { +// // ... CHOICE options ... +// // ASN1_CHOICE_END(chname) +// // +// // This will produce an ASN1_ITEM called chname_it +// // for a structure called chname. The structure +// // definition must look like this: +// // typedef struct { +// // int type; +// // union { +// // ASN1_SOMETHING //opt1; +// // ASN1_SOMEOTHER //opt2; +// // } value; +// // } chname; +// // +// // the name of the selector must be 'type'. +// // to use an alternative selector name use the +// // ASN1_CHOICE_END_selector() version. +// /// +// +// ASN1_CHOICE(tname) \ +// static const PASN1_TEMPLATE tname##_ch_tt[] +// +// ASN1_CHOICE_cb(tname, cb) \ +// static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \ +// ASN1_CHOICE(tname) +// +// ASN1_CHOICE_END(stname) ASN1_CHOICE_END_name(stname, stname) +// +// static_ASN1_CHOICE_END(stname) static_ASN1_CHOICE_END_name(stname, stname) +// +// ASN1_CHOICE_END_name(stname, tname) ASN1_CHOICE_END_selector(stname, tname, type) +// +// static_ASN1_CHOICE_END_name(stname, tname) static_ASN1_CHOICE_END_selector(stname, tname, type) +// +// ASN1_CHOICE_END_selector(stname, tname, selname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_CHOICE,\ +// offsetof(stname,selname) ,\ +// tname##_ch_tt,\ +// sizeof(tname##_ch_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +// static_ASN1_CHOICE_END_selector(stname, tname, selname) \ +// ;\ +// static_ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_CHOICE,\ +// offsetof(stname,selname) ,\ +// tname##_ch_tt,\ +// sizeof(tname##_ch_tt) / sizeof(PASN1_TEMPLATE),\ +// NULL,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +// ASN1_CHOICE_END_cb(stname, tname, selname) \ +// ;\ +// ASN1_ITEM_start(tname) \ +// ASN1_ITYPE_CHOICE,\ +// offsetof(stname,selname) ,\ +// tname##_ch_tt,\ +// sizeof(tname##_ch_tt) / sizeof(PASN1_TEMPLATE),\ +// &tname##_aux,\ +// sizeof(stname),\ +// #stname \ +// ASN1_ITEM_end(tname) +// +///// This helps with the template wrapper form of ASN1_ITEM /// +// +// ASN1_EX_TEMPLATE_TYPE(flags, tag, name, type) { \ +// (flags), (tag), 0,\ +// #name, ASN1_ITEM_ref(type) } +// +///// These help with SEQUENCE or CHOICE components /// +// +///// used to declare other types /// +// +// ASN1_EX_TYPE(flags, tag, stname, field, type) { \ +// (flags), (tag), offsetof(stname, field),\ +// #field, ASN1_ITEM_ref(type) } +// +///// implicit and explicit helper macros /// +// +// ASN1_IMP_EX(stname, field, type, tag, ex) \ +// ASN1_EX_TYPE(ASN1_TFLG_IMPLICIT | (ex), tag, stname, field, type) +// +// ASN1_EXP_EX(stname, field, type, tag, ex) \ +// ASN1_EX_TYPE(ASN1_TFLG_EXPLICIT | (ex), tag, stname, field, type) +// +///// Any defined by macros: the field used is in the table itself /// +// +//# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION +//# define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, (const ASN1_ITEM //)&(tblname##_adb) } +//# define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, (const ASN1_ITEM //)&(tblname##_adb) } +//# else +//# define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, tblname##_adb } +//# define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, tblname##_adb } +//# endif +///// Plain simple type /// +// ASN1_SIMPLE(stname, field, type) ASN1_EX_TYPE(0,0, stname, field, type) +///// Embedded simple type /// +// ASN1_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_EMBED,0, stname, field, type) +// +///// OPTIONAL simple type /// +// ASN1_OPT(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL, 0, stname, field, type) +// ASN1_OPT_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED, 0, stname, field, type) +// +///// IMPLICIT tagged simple type /// +// ASN1_IMP(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, 0) +// ASN1_IMP_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_EMBED) +// +///// IMPLICIT tagged OPTIONAL simple type /// +// ASN1_IMP_OPT(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL) +// ASN1_IMP_OPT_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED) +// +///// Same as above but EXPLICIT /// +// +// ASN1_EXP(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, 0) +// ASN1_EXP_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_EMBED) +// ASN1_EXP_OPT(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL) +// ASN1_EXP_OPT_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED) +// +///// SEQUENCE OF type /// +// ASN1_SEQUENCE_OF(stname, field, type) \ +// ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, stname, field, type) +// +///// OPTIONAL SEQUENCE OF /// +// ASN1_SEQUENCE_OF_OPT(stname, field, type) \ +// ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type) +// +///// Same as above but for SET OF /// +// +// ASN1_SET_OF(stname, field, type) \ +// ASN1_EX_TYPE(ASN1_TFLG_SET_OF, 0, stname, field, type) +// +// ASN1_SET_OF_OPT(stname, field, type) \ +// ASN1_EX_TYPE(ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type) +// +///// Finally compound types of SEQUENCE, SET, IMPLICIT, EXPLICIT and OPTIONAL /// +// +// ASN1_IMP_SET_OF(stname, field, type, tag) \ +// ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF) +// +// ASN1_EXP_SET_OF(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF) +// +// ASN1_IMP_SET_OF_OPT(stname, field, type, tag) \ +// ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL) +// +// ASN1_EXP_SET_OF_OPT(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL) +// +// ASN1_IMP_SEQUENCE_OF(stname, field, type, tag) \ +// ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF) +// +// ASN1_IMP_SEQUENCE_OF_OPT(stname, field, type, tag) \ +// ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL) +// +// ASN1_EXP_SEQUENCE_OF(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF) +// +// ASN1_EXP_SEQUENCE_OF_OPT(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL) +// +///// EXPLICIT using indefinite length constructed form /// +// ASN1_NDEF_EXP(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_NDEF) +// +///// EXPLICIT OPTIONAL using indefinite length constructed form /// +// ASN1_NDEF_EXP_OPT(stname, field, type, tag) \ +// ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_NDEF) +// +///// Macros for the ASN1_ADB structure /// +// +// ASN1_ADB(name) \ +// static const ASN1_ADB_TABLE name##_adbtbl[] +// +//# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION +// +//# define ASN1_ADB_END(name, flags, field, adb_cb, def, none) \ +// ;\ +// static const ASN1_ADB name##_adb = {\ +// flags,\ +// offsetof(name, field),\ +// adb_cb,\ +// name##_adbtbl,\ +// sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\ +// def,\ +// none\ +// } +// +//# else +// +//# define ASN1_ADB_END(name, flags, field, adb_cb, def, none) \ +// ;\ +// static const ASN1_ITEM //name##_adb(void) \ +// { \ +// static const ASN1_ADB internal_adb = \ +// {\ +// flags,\ +// offsetof(name, field),\ +// adb_cb,\ +// name##_adbtbl,\ +// sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\ +// def,\ +// none\ +// }; \ +// return (const ASN1_ITEM //) &internal_adb; \ +// } \ +// void dummy_function(void) +// +//# endif +// +// ADB_ENTRY(val, template) {val, template} +// +// ASN1_ADB_TEMPLATE(name) \ +// static const PASN1_TEMPLATE name##_tt +// +///// +// // This is the ASN1 template structure that defines a wrapper round the +// // actual type. It determines the actual position of the field in the value +// // structure, various flags such as OPTIONAL and the field name. +// /// + +type + ASN1_TEMPLATE_st = record + flags: TIdC_ULONG; + tag: TIdC_LONG; + offset: TIdC_ULONG; + fieldname: PIdAnsiChar; + item: PASN1_ITEM_EXP; + end; + ASN1_TEMPLATE = ASN1_TEMPLATE_st; + PASN1_TEMPLATE = ^ASN1_TEMPLATE; + +///// Macro to extract ASN1_ITEM and ASN1_ADB pointer from PASN1_TEMPLATE /// +// +// ASN1_TEMPLATE_item(t) (t->item_ptr) +// ASN1_TEMPLATE_adb(t) (t->item_ptr) + + adb_cb_callback = function(psel: PIdC_LONG): TIdC_INT; + + ASN1_ADB_TABLE_st = record + value: TIdC_LONG; + tt: PASN1_TEMPLATE; + end; + + ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; + PASN1_ADB_TABLE = ^ASN1_ADB_TABLE; + + ASN1_ADB_st = record + flags: TIdC_ULONG; + offset: TIdC_ULONG; + adb_cb: adb_cb_callback; + tbl: PASN1_ADB_TABLE; + tblcount: TIdC_LONG; + default_tt: PASN1_TEMPLATE; + null_tt: PASN1_TEMPLATE; + end; + ASN1_ADB = ASN1_ADB_st; + +const +// template flags // + +// Field is optional // + ASN1_TFLG_OPTIONAL = $1; + +// Field is a SET OF // + ASN1_TFLG_SET_OF = ($1 shl 1); + +// Field is a SEQUENCE OF // + ASN1_TFLG_SEQUENCE_OF = ($2 shl 1); + +// +// Special case: this refers to a SET OF that will be sorted into DER order +// when encoded /and/ the corresponding STACK will be modified to match the +// new order. + // + ASN1_TFLG_SET_ORDER = ($3 shl 1); + +// Mask for SET OF or SEQUENCE OF // + ASN1_TFLG_SK_MASK = ($3 shl 1); + +// +// These flags mean the tag should be taken from the tag field. If EXPLICIT +// then the underlying type is used for the inner tag. + // + +// IMPLICIT tagging // + ASN1_TFLG_IMPTAG = ($1 shl 3); + +// EXPLICIT tagging, inner tag from underlying type // + ASN1_TFLG_EXPTAG = ($2 shl 3); + + ASN1_TFLG_TAG_MASK = ($3 shl 3); + +// context specific IMPLICIT // +// ASN1_TFLG_IMPLICIT (ASN1_TFLG_IMPTAG|ASN1_TFLG_CONTEXT) + +// context specific EXPLICIT // +// ASN1_TFLG_EXPLICIT (ASN1_TFLG_EXPTAG|ASN1_TFLG_CONTEXT) + +// +// If tagging is in force these determine the type of tag to use. Otherwise +// the tag is determined by the underlying type. These values reflect the +// actual octet format. + // + +// Universal tag // + ASN1_TFLG_UNIVERSAL = ($0 shl 6); +// Application tag // + ASN1_TFLG_APPLICATION = ($1 shl 6); +// Context specific tag // + ASN1_TFLG_CONTEXT = ($2 shl 6); +// Private tag // + ASN1_TFLG_PRIVATE = ($3 shl 6); + + ASN1_TFLG_TAG_CLASS = ($3 shl 6); + +// +// These are for ANY DEFINED BY type. In this case the 'item' field points to +// an ASN1_ADB structure which contains a table of values to decode the +// relevant type + // + + ASN1_TFLG_ADB_MASK = ($3 shl 8); + + ASN1_TFLG_ADB_OID = ($1 shl 8); + + ASN1_TFLG_ADB_INT = ($1 shl 9); + +// +// This flag when present in a SEQUENCE OF, SET OF or EXPLICIT causes +// indefinite length constructed encoding to be used if required. + // + + ASN1_TFLG_NDEF = ($1 shl 11); + +// Field is embedded and not a pointer // + ASN1_TFLG_EMBED = ($1 shl 12); + +// This is the actual ASN1 item itself // + +type + ASN1_ITEM_st = record + itype: AnsiChar; + utype: TIdC_LONG; + template: PASN1_TEMPLATE; + tcount: TIdC_LONG; + funcs: Pointer; + size: TIdC_LONG; + sname: PIdAnsiChar; + end; + +//- + // These are values for the itype field and + // determine how the type is interpreted. + // + // For PRIMITIVE types the underlying type + // determines the behaviour if items is NULL. + // + // Otherwise templates must contain a single + // template and the type is treated in the + // same way as the type specified in the template. + // + // For SEQUENCE types the templates field points + // to the members, the size field is the + // structure size. + // + // For CHOICE types the templates field points + // to each possible member (typically a union) + // and the 'size' field is the offset of the + // selector. + // + // The 'funcs' field is used for application + // specific functions. + // + // The EXTERN type uses a new style d2i/i2d. + // The new style should be used where possible + // because it avoids things like the d2i IMPLICIT + // hack. + // + // MSTRING is a multiple string type, it is used + // for a CHOICE of character strings where the + // actual strings all occupy an ASN1_STRING + // structure. In this case the 'utype' field + // has a special meaning, it is used as a mask + // of acceptable types using the B_ASN1 constants. + // + // NDEF_SEQUENCE is the same as SEQUENCE except + // that it will use indefinite length constructed + // encoding if requested. + // + // +const + ASN1_ITYPE_PRIMITIVE = $0; + + ASN1_ITYPE_SEQUENCE = $1; + + ASN1_ITYPE_CHOICE = $2; + + ASN1_ITYPE_EXTERN = $4; + + ASN1_ITYPE_MSTRING = $5; + + ASN1_ITYPE_NDEF_SEQUENCE = $6; + +// + // Cache for ASN1 tag and length, so we don't keep re-reading it for things + // like CHOICE + // + +type + ASN1_TLC_st = record + valid: AnsiChar; + ret: TIdC_INT; + plen: TIdC_LONG; + ptag: TIdC_INT; + pclass: TIdC_INT; + hdrlen: TIdC_INT; + end; + ASN1_TLC = ASN1_TLC_st; + PASN1_TLC = ^ASN1_TLC; + + ASN1_ex_d2i = function(pval: PPASN1_VALUE; const AIn: PPByte; len: TIdC_LONG; + const it: PASN1_ITEM; tag: TIdC_INT; aclass: TIdC_INT; + opt: AnsiChar; ctx: PASN1_TLC): TIdC_INT; + PASN1_ex_d2i = ^ASN1_ex_d2i; + + ASN1_ex_i2d = function(pval: PPASN1_VALUE; AOut: PPByte; const it: PASN1_ITEM; + tag: TIdC_INT; aclass: TIdC_INT): TIdC_INT; + PASN1_ex_i2d = ^ASN1_ex_i2d; + + ASN1_ex_new_func = function(pval: PPASN1_VALUE; const it: PASN1_ITEM): TIdC_INT; + PASN1_ex_new_func = ^ASN1_ex_new_func; + + ASN1_ex_free_func = procedure(pval: PPASN1_VALUE; const it: PASN1_ITEM); + PASN1_ex_free_func = ^ASN1_ex_free_func; + + ASN1_ex_print_func = function(AOut: PBIO; pval: PPASN1_VALUE; indent: TIdC_INT; + const fname: PIdAnsiChar; const pctx: PASN1_PCTX): TIdC_INT; + PASN1_ex_print_func = ^ASN1_ex_print_func; + + ASN1_primitive_i2c = function(pval: PPASN1_VALUE; const cont: PIdAnsiChar; + puttype: PIdC_INT; const it: PASN1_ITEM): TIdC_INT; + PASN1_primitive_i2c = ^ASN1_primitive_i2c; + + ASN1_primitive_c2i = function(pval: PPASN1_VALUE; const cont: PByte; + len: TIdC_INT; utype: TIdC_INT; free_cont: PIdAnsiChar; + const it: PASN1_ITEM): TIdC_INT; + PASN1_primitive_c2i = ^ASN1_primitive_c2i; + + ASN1_primitive_print = function(AOut: PBIO; pval: PPASN1_VALUE; + const it: PASN1_ITEM; indent: TIdC_INT; const pctx: PASN1_PCTX): TIdC_INT; + PASN1_primitive_print = ^ASN1_primitive_print; + + ASN1_EXTERN_FUNCS_st = record + app_data: Pointer; + asn1_ex_new: PASN1_ex_new_func; + asn1_ex_free: PASN1_ex_free_func; + asn1_ex_clear: PASN1_ex_free_func; + asn1_ex_d2i: PASN1_ex_d2i; + asn1_ex_i2d: PASN1_ex_i2d; + asn1_ex_print: PASN1_ex_print_func; + end; + + ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; + + ASN1_PRIMITIVE_FUNCS_st = record + app_data: Pointer; + flags: TIdC_ULONG; + prim_new: PASN1_ex_new_func; + prim_free: PASN1_ex_free_func; + prim_clear: PASN1_ex_free_func; + prim_c2i: PASN1_primitive_c2i; + prim_i2c: PASN1_primitive_i2c; + prim_print: PASN1_primitive_print; + end; + + ASN1_PRIMITIVE_FUNCS = ASN1_PRIMITIVE_FUNCS_st; + +// + // This is the ASN1_AUX structure: it handles various miscellaneous + // requirements. For example the use of reference counts and an informational + // callback. The "informational callback" is called at various points during + // the ASN1 encoding and decoding. It can be used to provide minor + // customisation of the structures used. This is most useful where the + // supplied routines //almost// do the right thing but need some extra help at + // a few points. If the callback returns zero then it is assumed a fatal + // error has occurred and the main operation should be abandoned. If major + // changes in the default behaviour are required then an external type is + // more appropriate. + // + + ASN1_aux_cb = function(operation: TIdC_INT; AIn: PASN1_VALUE; const it: PASN1_ITEM; exarg: Pointer): TIdC_INT; + PASN1_aux_cb = ^ASN1_aux_cb; + + ASN1_AUX_st = record + app_data: Pointer; + flags: TIdC_INT; + ref_offset: TIdC_INT; + ref_lock: TIdC_INT; + asn1_cb: PASN1_aux_cb; + enc_offset: TidC_INT; + end; + + ASN1_AUX = ASN1_AUX_st; + +// For print related callbacks exarg points to this structure + + ASN1_PRINT_ARG_st = record + AOut: PBIO; + indent: TIdC_INT; + pctx: PASN1_PCTX; + end; + + ASN1_PRINT_ARG = ASN1_PRINT_ARG_st; + +// For streaming related callbacks exarg points to this structure + ASN1_STREAM_ARG_st = record + // BIO to stream through + FOut: PBIO; + // BIO with filters appended + ndef_bio: PBIO; + // Streaming I/O boundary + boundary: PPByte; + end; + + ASN1_STREAM_ARG = ASN1_STREAM_ARG_st; + +const +/// Flags in ASN1_AUX /// + +/// Use a reference count /// + ASN1_AFLG_REFCOUNT = 1; +/// Save the encoding of structure (useful for signatures) /// + ASN1_AFLG_ENCODING = 2; +/// The Sequence length is invalid /// + ASN1_AFLG_BROKEN = 4; + +/// operation values for asn1_cb /// + + ASN1_OP_NEW_PRE = 0; + ASN1_OP_NEW_POST = 1; + ASN1_OP_FREE_PRE = 2; + ASN1_OP_FREE_POST = 3; + ASN1_OP_D2I_PRE = 4; + ASN1_OP_D2I_POST = 5; + ASN1_OP_I2D_PRE = 6; + ASN1_OP_I2D_POST = 7; + ASN1_OP_PRINT_PRE = 8; + ASN1_OP_PRINT_POST = 9; + ASN1_OP_STREAM_PRE = 10; + ASN1_OP_STREAM_POST = 11; + ASN1_OP_DETACHED_PRE = 12; + ASN1_OP_DETACHED_POST = 13; + +///* Macro to implement a primitive type */ +//# define IMPLEMENT_ASN1_TYPE(stname) IMPLEMENT_ASN1_TYPE_ex(stname, stname, 0) +//# define IMPLEMENT_ASN1_TYPE_ex(itname, vname, ex) \ +// ASN1_ITEM_start(itname) \ +// ASN1_ITYPE_PRIMITIVE, V_##vname, NULL, 0, NULL, ex, #itname \ +// ASN1_ITEM_end(itname) +// +///* Macro to implement a multi string type */ +//# define IMPLEMENT_ASN1_MSTRING(itname, mask) \ +// ASN1_ITEM_start(itname) \ +// ASN1_ITYPE_MSTRING, mask, NULL, 0, NULL, sizeof(ASN1_STRING), #itname \ +// ASN1_ITEM_end(itname) +// +//# define IMPLEMENT_EXTERN_ASN1(sname, tag, fptrs) \ +// ASN1_ITEM_start(sname) \ +// ASN1_ITYPE_EXTERN, \ +// tag, \ +// NULL, \ +// 0, \ +// &fptrs, \ +// 0, \ +// #sname \ +// ASN1_ITEM_end(sname) +// +///* Macro to implement standard functions in terms of ASN1_ITEM structures */ +// +//# define IMPLEMENT_ASN1_FUNCTIONS(stname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname) +// +//# define IMPLEMENT_ASN1_FUNCTIONS_name(stname, itname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, itname) +// +//# define IMPLEMENT_ASN1_FUNCTIONS_ENCODE_name(stname, itname) \ +// IMPLEMENT_ASN1_FUNCTIONS_ENCODE_fname(stname, itname, itname) +// +//# define IMPLEMENT_STATIC_ASN1_ALLOC_FUNCTIONS(stname) \ +// IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(static, stname, stname, stname) +// +//# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS(stname) \ +// IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, stname, stname) +// +//# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(pre, stname, itname, fname) \ +// pre stname *fname##_new(void) \ +// { \ +// return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \ +// } \ +// pre void fname##_free(stname *a) \ +// { \ +// ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \ +// } +// +//# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) \ +// stname *fname##_new(void) \ +// { \ +// return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \ +// } \ +// void fname##_free(stname *a) \ +// { \ +// ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \ +// } +// +//# define IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, fname) \ +// IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \ +// IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) +// +//# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \ +// stname *d2i_##fname(stname **a, const unsigned char **in, long len) \ +// { \ +// return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\ +// } \ +// int i2d_##fname(stname *a, unsigned char **out) \ +// { \ +// return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\ +// } +// +//# define IMPLEMENT_ASN1_NDEF_FUNCTION(stname) \ +// int i2d_##stname##_NDEF(stname *a, unsigned char **out) \ +// { \ +// return ASN1_item_ndef_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(stname));\ +// } +// +//# define IMPLEMENT_STATIC_ASN1_ENCODE_FUNCTIONS(stname) \ +// static stname *d2i_##stname(stname **a, \ +// const unsigned char **in, long len) \ +// { \ +// return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, \ +// ASN1_ITEM_rptr(stname)); \ +// } \ +// static int i2d_##stname(stname *a, unsigned char **out) \ +// { \ +// return ASN1_item_i2d((ASN1_VALUE *)a, out, \ +// ASN1_ITEM_rptr(stname)); \ +// } +// +///* +// * This includes evil casts to remove const: they will go away when full ASN1 +// * constification is done. +// */ +//# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \ +// stname *d2i_##fname(stname **a, const unsigned char **in, long len) \ +// { \ +// return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\ +// } \ +// int i2d_##fname(const stname *a, unsigned char **out) \ +// { \ +// return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\ +// } +// +//# define IMPLEMENT_ASN1_DUP_FUNCTION(stname) \ +// stname * stname##_dup(stname *x) \ +// { \ +// return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \ +// } +// +//# define IMPLEMENT_ASN1_PRINT_FUNCTION(stname) \ +// IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, stname, stname) +// +//# define IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, itname, fname) \ +// int fname##_print_ctx(BIO *out, stname *x, int indent, \ +// const ASN1_PCTX *pctx) \ +// { \ +// return ASN1_item_print(out, (ASN1_VALUE *)x, indent, \ +// ASN1_ITEM_rptr(itname), pctx); \ +// } +// +//# define IMPLEMENT_ASN1_FUNCTIONS_const(name) \ +// IMPLEMENT_ASN1_FUNCTIONS_const_fname(name, name, name) +// +//# define IMPLEMENT_ASN1_FUNCTIONS_const_fname(stname, itname, fname) \ +// IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \ +// IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) +// +//* external definitions for primitive types */ + +//DECLARE_ASN1_ITEM(ASN1_BOOLEAN) +//DECLARE_ASN1_ITEM(ASN1_TBOOLEAN) +//DECLARE_ASN1_ITEM(ASN1_FBOOLEAN) +//DECLARE_ASN1_ITEM(ASN1_SEQUENCE) +//DECLARE_ASN1_ITEM(CBIGNUM) +//DECLARE_ASN1_ITEM(BIGNUM) +//DECLARE_ASN1_ITEM(INT32) +//DECLARE_ASN1_ITEM(ZINT32) +//DECLARE_ASN1_ITEM(UINT32) +//DECLARE_ASN1_ITEM(ZUINT32) +//DECLARE_ASN1_ITEM(INT64) +//DECLARE_ASN1_ITEM(ZINT64) +//DECLARE_ASN1_ITEM(UINT64) +//DECLARE_ASN1_ITEM(ZUINT64) + +//# if OPENSSL_API_COMPAT < 0x10200000L +///* +// * LONG and ZLONG are strongly discouraged for use as stored data, as the +// * underlying C type (long) differs in size depending on the architecture. +// * They are designed with 32-bit longs in mind. +// */ +//DECLARE_ASN1_ITEM(LONG) +//DECLARE_ASN1_ITEM(ZLONG) +//# endif + +//DEFINE_STACK_OF(ASN1_VALUE) + +//* Functions used internally by the ASN1 code */ + + function ASN1_item_ex_new(pval: PPASN1_VALUE; const it: PASN1_ITEM): TIdC_INT; + procedure ASN1_item_ex_free(pval: PPASN1_VALUE; const it: PASN1_ITEM); + + function ASN1_item_ex_d2i(pval: PPASN1_VALUE; const AIn: PPByte; len: TIdC_LONG; const it: PASN1_ITEM; tag: TIdC_INT; aclass: TIdC_INT; opt: AnsiChar; ctx: PASN1_TLC): TIdC_INT; + + function ASN1_item_ex_i2d(pval: PPASN1_VALUE; AOut: PPByte; const it: PASN1_ITEM; tag: TIdC_INT; aclass: TIdC_INT): TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_async.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_async.h2pas new file mode 100644 index 000000000..b0dab984d --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_async.h2pas @@ -0,0 +1,81 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_async; + +interface + +// Headers for OpenSSL 1.1.1 +// async.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + ASYNC_ERR = 0; + ASYNC_NO_JOBS = 0; + ASYNC_PAUSE = 2; + ASYNC_FINISH = 3; + +type + async_job_st = type Pointer; + ASYNC_JOB = async_job_st; + PASYNC_JOB = ^ASYNC_JOB; + PPASYNC_JOB = ^PASYNC_JOB; + + async_wait_ctx_st = type Pointer; + ASYNC_WAIT_CTX = async_wait_ctx_st; + PASYNC_WAIT_CTX = ^ASYNC_WAIT_CTX; + + OSSL_ASYNC_FD = type TIdC_INT; + POSSL_ASYNC_FD = ^OSSL_ASYNC_FD; + + ASYNC_WAIT_CTX_set_wait_fd_cleanup = procedure(v1: PASYNC_WAIT_CTX; + const v2: Pointer; v3: OSSL_ASYNC_FD; v4: Pointer); + ASYNC_start_job_cb = function(v1: Pointer): TIdC_INT; + + function ASYNC_init_thread(max_size: TIdC_SIZET; init_size: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + procedure ASYNC_cleanup_thread; {introduced 1.1.0} + + function ASYNC_WAIT_CTX_new: PASYNC_WAIT_CTX; {introduced 1.1.0} + procedure ASYNC_WAIT_CTX_free(ctx: PASYNC_WAIT_CTX); {introduced 1.1.0} + function ASYNC_WAIT_CTX_set_wait_fd(ctx: PASYNC_WAIT_CTX; const key: Pointer; fd: OSSL_ASYNC_FD; custom_data: Pointer; cleanup_cb: ASYNC_WAIT_CTX_set_wait_fd_cleanup): TIdC_INT; {introduced 1.1.0} + function ASYNC_WAIT_CTX_get_fd(ctx: PASYNC_WAIT_CTX; const key: Pointer; fd: POSSL_ASYNC_FD; custom_data: PPointer): TIdC_INT; {introduced 1.1.0} + function ASYNC_WAIT_CTX_get_all_fds(ctx: PASYNC_WAIT_CTX; fd: POSSL_ASYNC_FD; numfds: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function ASYNC_WAIT_CTX_get_changed_fds(ctx: PASYNC_WAIT_CTX; addfd: POSSL_ASYNC_FD; numaddfds: PIdC_SIZET; delfd: POSSL_ASYNC_FD; numdelfds: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function ASYNC_WAIT_CTX_clear_fd(ctx: PASYNC_WAIT_CTX; const key: Pointer): TIdC_INT; {introduced 1.1.0} + + function ASYNC_is_capable: TIdC_INT; {introduced 1.1.0} + + function ASYNC_start_job(job: PPASYNC_JOB; ctx: PASYNC_WAIT_CTX; ret: PIdC_INT; func: ASYNC_start_job_cb; args: Pointer; size: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function ASYNC_pause_job: TIdC_INT; {introduced 1.1.0} + + function ASYNC_get_current_job: PASYNC_JOB; {introduced 1.1.0} + function ASYNC_get_wait_ctx(job: PASYNC_JOB): PASYNC_WAIT_CTX; {introduced 1.1.0} + procedure ASYNC_block_pause; {introduced 1.1.0} + procedure ASYNC_unblock_pause; {introduced 1.1.0} + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asyncerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asyncerr.h2pas new file mode 100644 index 000000000..a98af040e --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_asyncerr.h2pas @@ -0,0 +1,59 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_asyncerr; + +interface + +// Headers for OpenSSL 1.1.1 +// asyncerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // + // ASYNC function codes. + // + ASYNC_F_ASYNC_CTX_NEW = 100; + ASYNC_F_ASYNC_INIT_THREAD = 101; + ASYNC_F_ASYNC_JOB_NEW = 102; + ASYNC_F_ASYNC_PAUSE_JOB = 103; + ASYNC_F_ASYNC_START_FUNC = 104; + ASYNC_F_ASYNC_START_JOB = 105; + ASYNC_F_ASYNC_WAIT_CTX_SET_WAIT_FD = 106; + + // + // ASYNC reason codes. + // + ASYNC_R_FAILED_TO_SET_POOL = 101; + ASYNC_R_FAILED_TO_SWAP_CONTEXT = 102; + ASYNC_R_INIT_FAILED = 105; + ASYNC_R_INVALID_POOL_SIZE = 103; + + function ERR_load_ASYNC_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bio.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bio.h2pas new file mode 100644 index 000000000..c28957bba --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bio.h2pas @@ -0,0 +1,822 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_bio; + +interface + +// Headers for OpenSSL 1.1.1 +// bio.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSlHeaders_ossl_typ; + +{$MINENUMSIZE 4} + +const + (* There are the classes of BIOs *) + BIO_TYPE_DESCRIPTOR = $0100; + BIO_TYPE_FILTER = $0200; + BIO_TYPE_SOURCE_SINK = $0400; + + (* These are the 'types' of BIOs *) + BIO_TYPE_NONE = 0; + BIO_TYPE_MEM = 1 or BIO_TYPE_SOURCE_SINK; + BIO_TYPE_FILE = 2 or BIO_TYPE_SOURCE_SINK; + + BIO_TYPE_FD = 4 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + BIO_TYPE_SOCKET = 5 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + BIO_TYPE_NULL = 6 or BIO_TYPE_SOURCE_SINK; + BIO_TYPE_SSL = 7 or BIO_TYPE_FILTER; + BIO_TYPE_MD = 8 or BIO_TYPE_FILTER; + BIO_TYPE_BUFFER = 9 or BIO_TYPE_FILTER; + BIO_TYPE_CIPHER = 10 or BIO_TYPE_FILTER; + BIO_TYPE_BASE64 = 11 or BIO_TYPE_FILTER; + BIO_TYPE_CONNECT = 12 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + BIO_TYPE_ACCEPT = 13 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + + BIO_TYPE_NBIO_TEST = 16 or BIO_TYPE_FILTER; + BIO_TYPE_NULL_FILTER = 17 or BIO_TYPE_FILTER; + BIO_TYPE_BIO = 19 or BIO_TYPE_SOURCE_SINK; + BIO_TYPE_LINEBUFFER = 20 or BIO_TYPE_FILTER; + BIO_TYPE_DGRAM = 21 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + BIO_TYPE_ASN1 = 22 or BIO_TYPE_FILTER; + BIO_TYPE_COMP = 23 or BIO_TYPE_FILTER; + BIO_TYPE_DGRAM_SCTP = 24 or BIO_TYPE_SOURCE_SINK or BIO_TYPE_DESCRIPTOR; + + BIO_TYPE_START = 128; + + (* + * BIO_FILENAME_READ|BIO_CLOSE to open or close on free. + * BIO_set_fp(in,stdin,BIO_NOCLOSE); + *) + BIO_NOCLOSE = $00; + BIO_CLOSE = $01; + + (* + * These are used in the following macros and are passed to BIO_ctrl() + *) + BIO_CTRL_RESET = 1;(* opt - rewind/zero etc *) + BIO_CTRL_EOF = 2;(* opt - are we at the eof *) + BIO_CTRL_INFO = 3;(* opt - extra tit-bits *) + BIO_CTRL_SET = 4;(* man - set the 'IO' type *) + BIO_CTRL_GET = 5;(* man - get the 'IO' type *) + BIO_CTRL_PUSH = 6;(* opt - internal, used to signify change *) + BIO_CTRL_POP = 7;(* opt - internal, used to signify change *) + BIO_CTRL_GET_CLOSE = 8;(* man - set the 'close' on free *) + BIO_CTRL_SET_CLOSE = 9;(* man - set the 'close' on free *) + // Added "_const" to prevent naming clashes + BIO_CTRL_PENDING_const = 10;(* opt - is their more data buffered *) + BIO_CTRL_FLUSH = 11;(* opt - 'flush' buffered output *) + BIO_CTRL_DUP = 12;(* man - extra stuff for 'duped' BIO *) + // Added "_const" to prevent naming clashes + BIO_CTRL_WPENDING_const = 13;(* opt - number of bytes still to write *) + BIO_CTRL_SET_CALLBACK = 14;(* opt - set callback function *) + BIO_CTRL_GET_CALLBACK = 15;(* opt - set callback function *) + + BIO_CTRL_PEEK = 29;(* BIO_f_buffer special *) + BIO_CTRL_SET_FILENAME = 30;(* BIO_s_file special *) + + (* dgram BIO stuff *) + BIO_CTRL_DGRAM_CONNECT = 31;(* BIO dgram special *) + BIO_CTRL_DGRAM_SET_CONNECTED = 32;(* allow for an externally connected + * socket to be passed in *) + BIO_CTRL_DGRAM_SET_RECV_TIMEOUT = 33;(* setsockopt, essentially *) + BIO_CTRL_DGRAM_GET_RECV_TIMEOUT = 34;(* getsockopt, essentially *) + BIO_CTRL_DGRAM_SET_SEND_TIMEOUT = 35;(* setsockopt, essentially *) + BIO_CTRL_DGRAM_GET_SEND_TIMEOUT = 36;(* getsockopt, essentially *) + + BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP = 37;(* flag whether the last *) + BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP = 38;(* I/O operation tiemd out *) + + BIO_CTRL_DGRAM_MTU_DISCOVER = 39;(* set DF bit on egress packets *) + + BIO_CTRL_DGRAM_QUERY_MTU = 40;(* as kernel for current MTU *) + BIO_CTRL_DGRAM_GET_FALLBACK_MTU = 47; + BIO_CTRL_DGRAM_GET_MTU = 41;(* get cached value for MTU *) + BIO_CTRL_DGRAM_SET_MTU = 42;(* set cached value for MTU. + * want to use this if asking + * the kernel fails *) + + BIO_CTRL_DGRAM_MTU_EXCEEDED = 43;(* check whether the MTU was + * exceed in the previous write + * operation *) + + BIO_CTRL_DGRAM_GET_PEER = 46; + BIO_CTRL_DGRAM_SET_PEER = 44;(* Destination for the data *) + + BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT = 45;(* Next DTLS handshake timeout + * to adjust socket timeouts *) + BIO_CTRL_DGRAM_SET_DONT_FRAG = 48; + + BIO_CTRL_DGRAM_GET_MTU_OVERHEAD = 49; + + (* Deliberately outside of OPENSSL_NO_SCTP - used in bss_dgram.c *) + BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE = 50; + (* SCTP stuff *) + BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY = 51; + BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY = 52; + BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD = 53; + BIO_CTRL_DGRAM_SCTP_GET_SNDINFO = 60; + BIO_CTRL_DGRAM_SCTP_SET_SNDINFO = 61; + BIO_CTRL_DGRAM_SCTP_GET_RCVINFO = 62; + BIO_CTRL_DGRAM_SCTP_SET_RCVINFO = 63; + BIO_CTRL_DGRAM_SCTP_GET_PRINFO = 64; + BIO_CTRL_DGRAM_SCTP_SET_PRINFO = 65; + BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN = 70; + + BIO_CTRL_DGRAM_SET_PEEK_MODE = 71; + + (* modifiers *) + BIO_FP_READ = $02; + BIO_FP_WRITE = $04; + BIO_FP_APPEND = $08; + BIO_FP_TEXT = $10; + + BIO_FLAGS_READ = $01; + BIO_FLAGS_WRITE = $02; + BIO_FLAGS_IO_SPECIAL = $04; + BIO_FLAGS_RWS = BIO_FLAGS_READ or BIO_FLAGS_WRITE or BIO_FLAGS_IO_SPECIAL; + BIO_FLAGS_SHOULD_RETRY = $08; + + BIO_FLAGS_BASE64_NO_NL = $100; + + (* + * This is used with memory BIOs: + * BIO_FLAGS_MEM_RDONLY means we shouldn't free up or change the data in any way; + * BIO_FLAGS_NONCLEAR_RST means we shouldn't clear data on reset. + *) + BIO_FLAGS_MEM_RDONLY = $200; + BIO_FLAGS_NONCLEAR_RST = $400; + + BIO_RR_SSL_X509_LOOKUP = $01; + (* Returned from the connect BIO when a connect would have blocked *) + BIO_RR_CONNECT = $02; + (* Returned from the accept BIO when an accept would have blocked *) + BIO_RR_ACCEPT = $03; + + (* These are passed by the BIO callback *) + BIO_CB_FREE = $01; + BIO_CB_READ = $02; + BIO_CB_WRITE = $03; + BIO_CB_PUTS = $04; + BIO_CB_GETS = $05; + BIO_CB_CTRL = $06; +///* +// * The callback is called before and after the underling operation, The +// * BIO_CB_RETURN flag indicates if it is after the call +// */ +//# define BIO_CB_RETURN 0x80 +//# define BIO_CB_return(a) ((a)|BIO_CB_RETURN) +//# define BIO_cb_pre(a) (!((a)&BIO_CB_RETURN)) +//# define BIO_cb_post(a) ((a)&BIO_CB_RETURN) + + BIO_C_SET_CONNECT = 100; + BIO_C_DO_STATE_MACHINE = 101; + BIO_C_SET_NBIO = 102; + (* BIO_C_SET_PROXY_PARAM = 103 *) + BIO_C_SET_FD = 104; + BIO_C_GET_FD = 105; + BIO_C_SET_FILE_PTR = 106; + BIO_C_GET_FILE_PTR = 107; + BIO_C_SET_FILENAME = 108; + BIO_C_SET_SSL = 109; + BIO_C_GET_SSL = 110; + BIO_C_SET_MD = 111; + BIO_C_GET_MD = 112; + BIO_C_GET_CIPHER_STATUS = 113; + BIO_C_SET_BUF_MEM = 114; + BIO_C_GET_BUF_MEM_PTR = 115; + BIO_C_GET_BUFF_NUM_LINES = 116; + BIO_C_SET_BUFF_SIZE = 117; + BIO_C_SET_ACCEPT = 118; + BIO_C_SSL_MODE = 119; + BIO_C_GET_MD_CTX = 120; + (* BIO_C_GET_PROXY_PARAM = 121 *) + BIO_C_SET_BUFF_READ_DATA = 122;(* data to read first *) + BIO_C_GET_CONNECT = 123; + BIO_C_GET_ACCEPT = 124; + BIO_C_SET_SSL_RENEGOTIATE_BYTES = 125; + BIO_C_GET_SSL_NUM_RENEGOTIATES = 126; + BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT = 127; + BIO_C_FILE_SEEK = 128; + BIO_C_GET_CIPHER_CTX = 129; + BIO_C_SET_BUF_MEM_EOF_RETURN = 130;(* return end of input + * value *) + BIO_C_SET_BIND_MODE = 131; + BIO_C_GET_BIND_MODE = 132; + BIO_C_FILE_TELL = 133; + BIO_C_GET_SOCKS = 134; + BIO_C_SET_SOCKS = 135; + + BIO_C_SET_WRITE_BUF_SIZE = 136;(* for BIO_s_bio *) + BIO_C_GET_WRITE_BUF_SIZE = 137; + BIO_C_MAKE_BIO_PAIR = 138; + BIO_C_DESTROY_BIO_PAIR = 139; + BIO_C_GET_WRITE_GUARANTEE = 140; + BIO_C_GET_READ_REQUEST = 141; + BIO_C_SHUTDOWN_WR = 142; + BIO_C_NREAD0 = 143; + BIO_C_NREAD = 144; + BIO_C_NWRITE0 = 145; + BIO_C_NWRITE = 146; + BIO_C_RESET_READ_REQUEST = 147; + BIO_C_SET_MD_CTX = 148; + + BIO_C_SET_PREFIX = 149; + BIO_C_GET_PREFIX = 150; + BIO_C_SET_SUFFIX = 151; + BIO_C_GET_SUFFIX = 152; + + BIO_C_SET_EX_ARG = 153; + BIO_C_GET_EX_ARG = 154; + + BIO_C_SET_CONNECT_MODE = 155; + + BIO_SOCK_REUSEADDR = $01; + BIO_SOCK_V6_ONLY = $02; + BIO_SOCK_KEEPALIVE = $04; + BIO_SOCK_NONBLOCK = $08; + BIO_SOCK_NODELAY = $10; + +type + BIO_ADDR = Pointer; // bio_addr_st + PBIO_ADDR = ^BIO_ADDR; + BIO_ADDRINFO = Pointer; // bio_addrinfo_st + PBIO_ADDRINFO = ^BIO_ADDRINFO; + PPBIO_ADDRINFO = ^PBIO_ADDRINFO; + BIO_callback_fn = function(b: PBIO; oper: TIdC_INT; const argp: PIdAnsiChar; + argi: TIdC_INT; argl: TIdC_LONG; ret: TIdC_LONG): TIdC_LONG; + BIO_callback_fn_ex = function(b: PBIO; oper: TIdC_INT; const argp: PIdAnsiChar; len: TIdC_SIZET; argi: TIdC_INT; argl: TIdC_LONG; ret: TIdC_INT; processed: PIdC_SIZET): TIdC_LONG; + BIO_METHOD = Pointer; // bio_method_st + PBIO_METHOD = ^BIO_METHOD; + BIO_info_cb = function(v1: PBIO; v2: TIdC_INT; v3: TIdC_INT): TIdC_INT; + PBIO_info_cb = ^BIO_info_cb; + asn1_ps_func = function(b: PBIO; pbuf: PPIdAnsiChar; plen: PIdC_INT; parg: Pointer): TIdC_INT; + + bio_dgram_sctp_sndinfo = record + snd_sid: TIdC_UINT16; + snd_flags: TIdC_UINT16; + snd_ppid: TIdC_UINT32; + snd_context: TIdC_UINT32; + end; + + bio_dgram_sctp_rcvinfo = record + rcv_sid: TIdC_UINT16; + rcv_ssn: TIdC_UINT16; + rcv_flags: TIdC_UINT16; + rcv_ppid: TIdC_UINT32; + rcv_tsn: TIdC_UINT32; + rcv_cumtsn: TIdC_UINT32; + rcv_context: TIdC_UINT32; + end; + + bio_dgram_sctp_prinfo = record + pr_policy: TIdC_UINT16; + pr_value: TIdC_UINT32; + end; + + BIO_hostserv_priorities = (BIO_PARSE_PRIO_HOST, BIO_PARSE_PRIO_SERV); + + BIO_lookup_type = (BIO_LOOKUP_CLIENT, BIO_LOOKUP_SERVER); + + BIO_sock_info_u = record + addr: PBIO_ADDR; + end; + PBIO_sock_info_u = ^BIO_sock_info_u; + + BIO_sock_info_type = (BIO_SOCK_INFO_ADDRESS); + +function BIO_get_flags(const b: PBIO): TIdC_INT; {removed 1.0.0} +procedure BIO_set_retry_special(b: PBIO); {removed 1.0.0} +procedure BIO_set_retry_read(b: PBIO); {removed 1.0.0} +procedure BIO_set_retry_write(b: PBIO); {removed 1.0.0} + +(* These are normally used internally in BIOs *) +procedure BIO_clear_retry_flags(b: PBIO); {removed 1.0.0} +function BIO_get_retry_flags(b: PBIO): TIdC_INT; {removed 1.0.0} + +(* These should be used by the application to tell why we should retry *) +function BIO_should_read(b: PBIO): TIdC_INT; {removed 1.0.0} +function BIO_should_write(b: PBIO): TIdC_INT; {removed 1.0.0} +function BIO_should_io_special(b: PBIO): TIdC_INT; {removed 1.0.0} +function BIO_retry_type(b: PBIO): TIdC_INT; {removed 1.0.0} +function BIO_should_retry(b: PBIO): TIdC_INT; {removed 1.0.0} + +(* BIO_s_accept() and BIO_s_connect() *) +function BIO_do_connect(b: PBIO): TIdC_LONG; {removed 1.0.0} +function BIO_do_accept(b: PBIO): TIdC_LONG; {removed 1.0.0} +function BIO_do_handshake(b: PBIO): TIdC_LONG; {removed 1.0.0} + +function BIO_get_mem_data(b: PBIO; pp: PIdAnsiChar) : TIdC_INT; {removed 1.0.0} +function BIO_set_mem_buf(b: PBIO; bm: PIdAnsiChar; c: TIdC_INT): TIdC_INT; {removed 1.0.0} +function BIO_get_mem_ptr(b: PBIO; pp: PIdAnsiChar): TIdC_INT; {removed 1.0.0} +function BIO_set_mem_eof_return(b: PBIO; v: TIdC_INT): TIdC_INT; {removed 1.0.0} + + function BIO_get_new_index: TIdC_INT; {introduced 1.1.0} + procedure BIO_set_flags(b: PBIO; flags: TIdC_INT); + function BIO_test_flags(const b: PBIO; flags: TIdC_INT): TIdC_INT; + procedure BIO_clear_flags(b: PBIO; flags: TIdC_INT); + + function BIO_get_callback(b: PBIO): BIO_callback_fn; + procedure BIO_set_callback(b: PBIO; callback: BIO_callback_fn); + + function BIO_get_callback_ex(b: PBIO): BIO_callback_fn_ex; {introduced 1.1.0} + procedure BIO_set_callback_ex(b: PBIO; callback: BIO_callback_fn_ex); {introduced 1.1.0} + + function BIO_get_callback_arg(const b: PBIO): PIdAnsiChar; + procedure BIO_set_callback_arg(var b: PBIO; arg: PIdAnsiChar); + + function BIO_method_name(const b: PBIO): PIdAnsiChar; + function BIO_method_type(const b: PBIO): TIdC_INT; + +// {$HPPEMIT '# define BIO_set_app_data(s,arg) BIO_set_ex_data(s,0,arg)'} +// {$HPPEMIT '# define BIO_get_app_data(s) BIO_get_ex_data(s,0)'} +// +// {$HPPEMIT '# define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)'} +// +// {$HPPEMIT '# ifndef OPENSSL_NO_SOCK'} +// (* IP families we support, for BIO_s_connect() and BIO_s_accept() *) +// (* Note: the underlying operating system may not support some of them *) +// {$HPPEMIT '# define BIO_FAMILY_IPV4 4'} +// {$HPPEMIT '# define BIO_FAMILY_IPV6 6'} +// {$HPPEMIT '# define BIO_FAMILY_IPANY 256'} +// +// (* BIO_s_connect() *) +// {$HPPEMIT '# define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0,'} +// (char (name)) +// {$HPPEMIT '# define BIO_set_conn_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,1,'} +// (char (port)) +// {$HPPEMIT '# define BIO_set_conn_address(b,addr) BIO_ctrl(b,BIO_C_SET_CONNECT,2,'} +// (char (addr)) +// {$HPPEMIT '# define BIO_set_conn_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_CONNECT,3,f)'} +// {$HPPEMIT '# define BIO_get_conn_hostname(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0))'} +// {$HPPEMIT '# define BIO_get_conn_port(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1))'} +// {$HPPEMIT '# define BIO_get_conn_address(b) (( PBIO_ADDR )BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2))'} +// {$HPPEMIT '# define BIO_get_conn_ip_family(b) BIO_ctrl(b,BIO_C_GET_CONNECT,3,NULL)'} +// {$HPPEMIT '# define BIO_set_conn_mode(b,n) BIO_ctrl(b,BIO_C_SET_CONNECT_MODE,(n),NULL)'} +// +// (* BIO_s_accept() *) +// {$HPPEMIT '# define BIO_set_accept_name(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0,'} +// {$EXTERNALSYM PBIO} +// (char (name)) +// {$HPPEMIT '# define BIO_set_accept_port(b,port) BIO_ctrl(b,BIO_C_SET_ACCEPT,1,'} +// (char (port)) +// {$HPPEMIT '# define BIO_get_accept_name(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0))'} +// {$HPPEMIT '# define BIO_get_accept_port(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,1))'} +// {$HPPEMIT '# define BIO_get_peer_name(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,2))'} +// {$HPPEMIT '# define BIO_get_peer_port(b) (( char )BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,3))'} +// (* #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) *) +// {$HPPEMIT '# define BIO_set_nbio_accept(b,n) # define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(n)?(procedure )'a':NULL) BIO_ctrl(b,BIO_C_SET_ACCEPT,3,'} +// (char (bio)) +// {$HPPEMIT '# define BIO_set_accept_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_ACCEPT,4,f)'} +// {$HPPEMIT '# define BIO_get_accept_ip_family(b) BIO_ctrl(b,BIO_C_GET_ACCEPT,4,NULL)'} +// +// (* Aliases kept for backward compatibility *) +// {$HPPEMIT '# define BIO_BIND_NORMAL 0'} +// {$HPPEMIT '# define BIO_BIND_REUSEADDR BIO_SOCK_REUSEADDR'} +// {$HPPEMIT '# define BIO_BIND_REUSEADDR_IF_UNUSED BIO_SOCK_REUSEADDR'} +// {$HPPEMIT '# define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL)'} +// {$HPPEMIT '# define BIO_get_bind_mode(b) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL)'} +// +// (* BIO_s_accept() and BIO_s_connect() *) +// {$HPPEMIT '# define BIO_do_connect(b) BIO_do_handshake(b)'} +// {$HPPEMIT '# define BIO_do_accept(b) BIO_do_handshake(b)'} +// {$HPPEMIT '# endif'} (* OPENSSL_NO_SOCK *) +// +// {$HPPEMIT '# define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL)'} +// +// (* BIO_s_datagram(), BIO_s_fd(), BIO_s_socket(), BIO_s_accept() and BIO_s_connect() *) +// {$HPPEMIT '# define BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)'} +// {$HPPEMIT '# define BIO_get_fd(b,c) BIO_ctrl(b,BIO_C_GET_FD,0,(char (c))'} +// +// (* BIO_s_file() *) +// {$HPPEMIT '# define BIO_set_fp(b,fp,c) BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char (fp))'} +// {$HPPEMIT '# define BIO_get_fp(b,fpp) BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char (fpp))'} +// +// (* BIO_s_fd() and BIO_s_file() *) +// {$HPPEMIT '# define BIO_seek(b,ofs(int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)'} +// {$HPPEMIT '# define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)'} +// +// (* +// * name is cast to lose , but might be better to route through a +// * cFunction so we can do it safely +// *) +// {$HPPEMIT '# ifdef CONST_STRICT'} +// (* +// * If you are wondering why this isn't defined, its because CONST_STRICT is +// * purely a compile-time kludge to allow to be checked. +// *) +//// function BIO_read_filename(b: PBIO; const name: PIdAnsiChar): TIdC_INT; +// {$HPPEMIT '# define BIO_write_filename(b,name(int)BIO_ctrl(b,BIO_C_SET_FILENAME,'} +// BIO_CLOSE or BIO_FP_WRITE,name) +// {$HPPEMIT '# define BIO_append_filename(b,name(int)BIO_ctrl(b,BIO_C_SET_FILENAME,'} +// BIO_CLOSE or BIO_FP_APPEND,name) +// {$HPPEMIT '# define BIO_rw_filename(b,name(int)BIO_ctrl(b,BIO_C_SET_FILENAME,'} +// BIO_CLOSE or BIO_FP_READ or BIO_FP_WRITE,name) +// +// (* +// * WARNING WARNING, this ups the reference count on the read bio of the SSL +// * structure. This is because the ssl read PBIO is now pointed to by the +// * next_bio field in the bio. So when you free the PBIO, make sure you are +// * doing a BIO_free_all() to catch the underlying PBIO. +// *) +// {$HPPEMIT '# define BIO_set_ssl(b,ssl,c) BIO_ctrl(b,BIO_C_SET_SSL,c,(char (ssl))'} +// {$HPPEMIT '# define BIO_get_ssl(b,sslp) BIO_ctrl(b,BIO_C_GET_SSL,0,(char (sslp))'} +// {$HPPEMIT '# define BIO_set_ssl_mode(b,client) BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)'} +// {$HPPEMIT '# define BIO_set_ssl_renegotiate_bytes(b,num)'} +// BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,0) +// {$HPPEMIT '# define BIO_get_num_renegotiates(b)'} +// BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,0) +// {$HPPEMIT '# define BIO_set_ssl_renegotiate_timeout(b,seconds)'} +// BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,0) +// +// (* defined in evp.h *) +// (* #define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,1,(char )(md)) *) +// +// (* For the BIO_f_buffer() type *) +// {$HPPEMIT '# define BIO_get_buffer_num_lines(b) BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL)'} +// {$HPPEMIT '# define BIO_set_buffer_size(b,size) BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL)'} +// {$HPPEMIT '# define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0)'} +// {$HPPEMIT '# define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1)'} +// {$HPPEMIT '# define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf)'} +// +// (* Don't use the next one unless you know what you are doing :-) */ +// {$HPPEMIT '# define BIO_dup_state(b,ret) BIO_ctrl(b,BIO_CTRL_DUP,0,(char (ret))'} +// +// {$HPPEMIT '# define BIO_reset(b) (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL)'} +// {$HPPEMIT '# define BIO_eof(b) (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL)'} +// {$HPPEMIT '# define BIO_set_close(b,c) (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)'} +// {$HPPEMIT '# define BIO_get_close(b) (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)'} +// {$HPPEMIT '# define BIO_pending(b) (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)'} +// {$HPPEMIT '# define BIO_wpending(b) (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)'} + (* ...pending macros have inappropriate return type *) + function BIO_ctrl_pending(b: PBIO): TIdC_SIZET; + function BIO_ctrl_wpending(b: PBIO): TIdC_SIZET; +// {$HPPEMIT '# define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)'} +// {$HPPEMIT '# define BIO_get_info_callback(b,cbp(int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0,'} +// cbp) +// {$HPPEMIT '# define BIO_set_info_callback(b,cb(int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)'} +// +// (* For the BIO_f_buffer() type *) +// {$HPPEMIT '# define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)'} +// {$HPPEMIT '# define BIO_buffer_peek(b,s,l) BIO_ctrl(b,BIO_CTRL_PEEK,(l),(s))'} +// +// (* For BIO_s_bio() *) +// {$HPPEMIT '# define BIO_set_write_buf_size(b,size(int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)'} +// {$HPPEMIT '# define BIO_get_write_buf_size(b,size(TIdC_SIZET)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)'} +// {$HPPEMIT '# define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)'} +// {$HPPEMIT '# define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)'} +// {$HPPEMIT '# define BIO_shutdown_wr(b(int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)'} +// (* macros with inappropriate type -- but ...pending macros use int too: *) +// {$HPPEMIT '# define BIO_get_write_guarantee(b(int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)'} +// {$HPPEMIT '# define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)'} + function BIO_ctrl_get_write_guarantee(b: PBIO): TIdC_SIZET; + function BIO_ctrl_get_read_request(b: PBIO): TIdC_SIZET; + function BIO_ctrl_reset_read_request(b: PBIO): TIdC_INT; + + (* ctrl macros for dgram *) +// {$HPPEMIT '# define BIO_ctrl_dgram_connect(b,peer)'} +// (TIdC_INT)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char (peer)) +// {$HPPEMIT '# define BIO_ctrl_set_connected(b,peer)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, 0, (char (peer)) +// {$HPPEMIT '# define BIO_dgram_recv_timedout(b)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, 0) +// {$HPPEMIT '# define BIO_dgram_send_timedout(b)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, 0) +// {$HPPEMIT '# define BIO_dgram_get_peer(b,peer)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char (peer)) +// {$HPPEMIT '# define BIO_dgram_set_peer(b,peer)'} +// (TIdC_INT)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char (peer)) +// {$HPPEMIT '# define BIO_dgram_get_mtu_overhead(b)'} +// (Cardinal)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_MTU_OVERHEAD, 0, 0) + +//#define BIO_get_ex_new_index(l, p, newf, dupf, freef) \ +// CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_BIO, l, p, newf, dupf, freef) + + function BIO_set_ex_data(bio: PBIO; idx: TIdC_INT; data: Pointer): TIdC_INT; + function BIO_get_ex_data(bio: PBIO; idx: TIdC_INT): Pointer; + function BIO_number_read(bio: PBIO): TIdC_UINT64; + function BIO_number_written(bio: PBIO): TIdC_UINT64; + + (* For BIO_f_asn1() *) +// function BIO_asn1_set_prefix(b: PBIO; prefix: ^asn1_ps_func; prefix_free: ^asn1_ps_func): TIdC_INT; +// function BIO_asn1_get_prefix(b: PBIO; pprefix: ^^asn1_ps_func; pprefix_free: ^^asn1_ps_func): TIdC_INT; +// function BIO_asn1_set_suffix(b: PBIO; suffix: ^asn1_ps_func; suffix_free: ^asn1_ps_func): TIdC_INT; +// function BIO_asn1_get_suffix(b: PBIO; psuffix: ^asn1_ps_func; psuffix_free: ^^asn1_ps_func): TIdC_INT; + + function BIO_s_file: PBIO_METHOD; + function BIO_new_file(const filename: PIdAnsiChar; const mode: PIdAnsiChar): PBIO; +// function BIO_new_fp(stream: cFile; close_flag: TIdC_INT): PBIO; + function BIO_new(const cType: PBIO_METHOD): PBIO; + function BIO_free(a: PBIO): TIdC_INT; + procedure BIO_set_data(a: PBIO; ptr: Pointer); {introduced 1.1.0} + function BIO_get_data(a: PBIO): Pointer; {introduced 1.1.0} + procedure BIO_set_init(a: PBIO; init: TIdC_INT); {introduced 1.1.0} + function BIO_get_init(a: PBIO): TIdC_INT; {introduced 1.1.0} + procedure BIO_set_shutdown(a: PBIO; shut: TIdC_INT); {introduced 1.1.0} + function BIO_get_shutdown(a: PBIO): TIdC_INT; {introduced 1.1.0} + procedure BIO_vfree(a: PBIO); + function BIO_up_ref(a: PBIO): TIdC_INT; {introduced 1.1.0} + function BIO_read(b: PBIO; data: Pointer; dlen: TIdC_INT): TIdC_INT; + function BIO_read_ex(b: PBIO; data: Pointer; dlen: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function BIO_gets( bp: PBIO; buf: PIdAnsiChar; size: TIdC_INT): TIdC_INT; + function BIO_write(b: PBIO; const data: Pointer; dlen: TIdC_INT): TIdC_INT; + function BIO_write_ex(b: PBIO; const data: Pointer; dlen: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function BIO_puts(bp: PBIO; const buf: PIdAnsiChar): TIdC_INT; + function BIO_indent(b: PBIO; indent: TIdC_INT; max: TIdC_INT): TIdC_INT; + function BIO_ctrl(bp: PBIO; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG; + function BIO_callback_ctrl(b: PBIO; cmd: TIdC_INT; fp: PBIO_info_cb): TIdC_LONG; + function BIO_ptr_ctrl(bp: PBIO; cmd: TIdC_INT; larg: TIdC_LONG): Pointer; + function BIO_int_ctrl(bp: PBIO; cmd: TIdC_INT; larg: TIdC_LONG; iarg: TIdC_INT): TIdC_LONG; + function BIO_push(b: PBIO; append: PBIO): PBIO; + function BIO_pop(b: PBIO): PBIO; + procedure BIO_free_all(a: PBIO); + function BIO_find_type(b: PBIO; bio_type: TIdC_INT): PBIO; + function BIO_next(b: PBIO): PBIO; + procedure BIO_set_next(b: PBIO; next: PBIO); {introduced 1.1.0} + function BIO_get_retry_BIO(bio: PBIO; reason: TIdC_INT): PBIO; + function BIO_get_retry_reason(bio: PBIO): TIdC_INT; + procedure BIO_set_retry_reason(bio: PBIO; reason: TIdC_INT); {introduced 1.1.0} + function BIO_dup_chain(in_: PBIO): PBIO; + + function BIO_nread0(bio: PBIO; buf: PPIdAnsiChar): TIdC_INT; + function BIO_nread(bio: PBIO; buf: PPIdAnsiChar; num: TIdC_INT): TIdC_INT; + function BIO_nwrite0(bio: PBIO; buf: PPIdAnsiChar): TIdC_INT; + function BIO_nwrite(bio: PBIO; buf: PPIdAnsiChar; num: TIdC_INT): TIdC_INT; + + function BIO_debug_callback(bio: PBIO; cmd: TIdC_INT; const argp: PIdAnsiChar; argi: TIdC_INT; argl: TIdC_LONG; ret: TIdC_LONG): TIdC_LONG; + + function BIO_s_mem: PBIO_METHOD; + function BIO_s_secmem: PBIO_METHOD; {introduced 1.1.0} + function BIO_new_mem_buf(const buf: Pointer; len: TIdC_INT): PBIO; + + function BIO_s_socket: PBIO_METHOD; + function BIO_s_connect: PBIO_METHOD; + function BIO_s_accept: PBIO_METHOD; + + function BIO_s_fd: PBIO_METHOD; + function BIO_s_log: PBIO_METHOD; + function BIO_s_bio: PBIO_METHOD; + function BIO_s_null: PBIO_METHOD; + function BIO_f_null: PBIO_METHOD; + function BIO_f_buffer: PBIO_METHOD; + function BIO_f_linebuffer: PBIO_METHOD; {introduced 1.1.0} + function BIO_f_nbio_test: PBIO_METHOD; + function BIO_s_datagram: PBIO_METHOD; + function BIO_dgram_non_fatal_error(error: TIdC_INT): TIdC_INT; + function BIO_new_dgram(fd: TIdC_INT; close_flag: TIdC_INT): PBIO; + +// function BIO_s_datagram_sctp: PBIO_METHOD; +// function BIO_new_dgram_sctp(fd: TIdC_INT; close_flag: TIdC_INT): PBIO; +// function BIO_dgram_is_sctp(bio: PBIO): TIdC_INT; +// function BIO_dgram_sctp_notification_cb(bio: PBIO; handle_notifications(PBIO; +// context: Pointer; +// buf: Pointer): TIdC_INT, Pointer context); +// function BIO_dgram_sctp_wait_for_dry(b: PBIO): TIdC_INT; +// function BIO_dgram_sctp_msg_waiting(b: PBIO): TIdC_INT; + + function BIO_sock_should_retry(i: TIdC_INT): TIdC_INT; + function BIO_sock_non_fatal_error(error: TIdC_INT): TIdC_INT; + + function BIO_fd_should_retry(i: TIdC_INT): TIdC_INT; + function BIO_fd_non_fatal_error(error: TIdC_INT): TIdC_INT; +// function BIO_dump_cb( +// Pointer data: cb(; +// len: TIdC_SIZET; +// function: Pointer): u: TIdC_INT, Pointer function , PIdAnsiChar s, TIdC_INT len): u; +// function BIO_dump_indent_cb(TIdC_INT (cb( Pointer data, TIdC_SIZET len, Pointer function ): u: TIdC_INT, Pointer function , PIdAnsiChar s, TIdC_INT len, TIdC_INT indent): u; + function BIO_dump(b: PBIO; const bytes: PIdAnsiChar; len: TIdC_INT): TIdC_INT; + function BIO_dump_indent(b: PBIO; const bytes: PIdAnsiChar; len: TIdC_INT; indent: TIdC_INT): TIdC_INT; + +// function BIO_dump_fp(fp: cFile; const s: PByte; len: TIdC_INT): TIdC_INT; +// function BIO_dump_indent_fp(fp: cFile; const s: PByte; len: TIdC_INT; indent: TIdC_INT): TIdC_INT; + + function BIO_hex_string(out_: PBIO; indent: TIdC_INT; width: TIdC_INT; data: PByte; datalen: TIdC_INT): TIdC_INT; + + function BIO_ADDR_new: PBIO_ADDR; {introduced 1.1.0} + function BIO_ADDR_rawmake(ap: PBIO_ADDR; familiy: TIdC_INT; const where: Pointer; wherelen: TIdC_SIZET; port: TIdC_SHORT): TIdC_INT; {introduced 1.1.0} + procedure BIO_ADDR_free(a: PBIO_ADDR); {introduced 1.1.0} + procedure BIO_ADDR_clear(ap: PBIO_ADDR); {introduced 1.1.0} + function BIO_ADDR_family(const ap: PBIO_ADDR): TIdC_INT; {introduced 1.1.0} + function BIO_ADDR_rawaddress(const ap: PBIO_ADDR; p: Pointer; l: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function BIO_ADDR_rawport(const ap: PBIO_ADDR): TIdC_SHORT; {introduced 1.1.0} + function BIO_ADDR_hostname_string(const ap: PBIO_ADDR; numeric: TIdC_INT): PIdAnsiChar; {introduced 1.1.0} + function BIO_ADDR_service_string(const ap: PBIO_ADDR; numeric: TIdC_INT): PIdAnsiChar; {introduced 1.1.0} + function BIO_ADDR_path_string(const ap: PBIO_ADDR): PIdAnsiChar; {introduced 1.1.0} + + function BIO_ADDRINFO_next(const bai: PBIO_ADDRINFO): PBIO_ADDRINFO; {introduced 1.1.0} + function BIO_ADDRINFO_family(const bai: PBIO_ADDRINFO): TIdC_INT; {introduced 1.1.0} + function BIO_ADDRINFO_socktype(const bai: PBIO_ADDRINFO): TIdC_INT; {introduced 1.1.0} + function BIO_ADDRINFO_protocol(const bai: PBIO_ADDRINFO): TIdC_INT; {introduced 1.1.0} + function BIO_ADDRINFO_address(const bai: PBIO_ADDRINFO): PBIO_ADDR; {introduced 1.1.0} + procedure BIO_ADDRINFO_free(bai: PBIO_ADDRINFO); {introduced 1.1.0} + + function BIO_parse_hostserv(const hostserv: PIdAnsiChar; host: PPIdAnsiChar; service: PPIdAnsiChar; hostserv_prio: BIO_hostserv_priorities): TIdC_INT; {introduced 1.1.0} + + function BIO_lookup(const host: PIdAnsiChar; const service: PIdAnsiChar; lookup_type: BIO_lookup_type; family: TIdC_INT; socktype: TIdC_INT; res: PPBIO_ADDRINFO): TIdC_INT; {introduced 1.1.0} + function BIO_lookup_ex(const host: PIdAnsiChar; const service: PIdAnsiChar; lookup_type: TIdC_INT; family: TIdC_INT; socktype: TIdC_INT; protocol: TIdC_INT; res: PPBIO_ADDRINFO): TIdC_INT; {introduced 1.1.0} + function BIO_sock_error(sock: TIdC_INT): TIdC_INT; + function BIO_socket_ioctl(fd: TIdC_INT; cType: TIdC_LONG; arg: Pointer): TIdC_INT; + function BIO_socket_nbio(fd: TIdC_INT; mode: TIdC_INT): TIdC_INT; + function BIO_sock_init: TIdC_INT; + + function BIO_set_tcp_ndelay(sock: TIdC_INT; turn_on: TIdC_INT): TIdC_INT; + + function BIO_sock_info(sock: TIdC_INT; type_: BIO_sock_info_type; info: PBIO_sock_info_u): TIdC_INT; {introduced 1.1.0} + + function BIO_socket(domain: TIdC_INT; socktype: TIdC_INT; protocol: TIdC_INT; options: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function BIO_connect(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function BIO_bind(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function BIO_listen(sock: TIdC_INT; const addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function BIO_accept_ex(accept_sock: TIdC_INT; addr: PBIO_ADDR; options: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function BIO_closesocket(sock: TIdC_INT): TIdC_INT; {introduced 1.1.0} + + function BIO_new_socket(sock: TIdC_INT; close_flag: TIdC_INT): PBIO; + function BIO_new_connect(const host_port: PIdAnsiChar): PBIO; + function BIO_new_accept(const host_port: PIdAnsiChar): PBIO; + + function BIO_new_fd(fd: TIdC_INT; close_flag: TIdC_INT): PBIO; + + function BIO_new_bio_pair(bio1: PPBIO; writebuf1: TIdC_SIZET; bio2: PPBIO; writebuf2: TIdC_SIZET): TIdC_INT; + (* + * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints. + * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. Size 0 uses default + * value. + *) + + procedure BIO_copy_next_retry(b: PBIO); + +// BIO_METHOD *BIO_meth_new(int type, const char *name); +// void BIO_meth_free(BIO_METHOD *biom); +// int (*BIO_meth_get_write(const BIO_METHOD *biom)) (BIO *, const char *, int); +// int (*BIO_meth_get_write_ex(const BIO_METHOD *biom)) (BIO *, const char *, TIdC_SIZET, +// TIdC_SIZET *); +// int BIO_meth_set_write(BIO_METHOD *biom, +// int (*write) (BIO *, const char *, int)); +// int BIO_meth_set_write_ex(BIO_METHOD *biom, +// int (*bwrite) (BIO *, const char *, TIdC_SIZET, TIdC_SIZET *)); +// int (*BIO_meth_get_read(const BIO_METHOD *biom)) (BIO *, char *, int); +// int (*BIO_meth_get_read_ex(const BIO_METHOD *biom)) (BIO *, char *, TIdC_SIZET, TIdC_SIZET *); +// int BIO_meth_set_read(BIO_METHOD *biom, +// int (*read) (BIO *, char *, int)); +// int BIO_meth_set_read_ex(BIO_METHOD *biom, +// int (*bread) (BIO *, char *, TIdC_SIZET, TIdC_SIZET *)); +// int (*BIO_meth_get_puts(const BIO_METHOD *biom)) (BIO *, const char *); +// int BIO_meth_set_puts(BIO_METHOD *biom, +// int (*puts) (BIO *, const char *)); +// int (*BIO_meth_get_gets(const BIO_METHOD *biom)) (BIO *, char *, int); +// int BIO_meth_set_gets(BIO_METHOD *biom, +// int (*gets) (BIO *, char *, int)); +// long (*BIO_meth_get_ctrl(const BIO_METHOD *biom)) (BIO *, int, long, void *); +// int BIO_meth_set_ctrl(BIO_METHOD *biom, +// long (*ctrl) (BIO *, int, long, void *)); +// int (*BIO_meth_get_create(const BIO_METHOD *bion)) (BIO *); +// int BIO_meth_set_create(BIO_METHOD *biom, int (*create) (BIO *)); +// int (*BIO_meth_get_destroy(const BIO_METHOD *biom)) (BIO *); +// int BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy) (BIO *)); +// long (*BIO_meth_get_callback_ctrl(const BIO_METHOD *biom)) +// (BIO *, int, BIO_info_cb *); +// int BIO_meth_set_callback_ctrl(BIO_METHOD *biom, +// long (*callback_ctrl) (BIO *, int, +// BIO_info_cb *)); + +implementation + +// # define BIO_get_flags(b) BIO_test_flags(b, ~(0x0)) +function BIO_get_flags(const b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, not $0); +end; + +//# define BIO_set_retry_special(b) \ +// BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY)) +procedure BIO_set_retry_special(b: PBIO); +begin + BIO_set_flags(b, BIO_FLAGS_IO_SPECIAL or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_set_retry_read(b) \ +// BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY)) +procedure BIO_set_retry_read(b: PBIO); +begin + BIO_set_flags(b, BIO_FLAGS_READ or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_set_retry_write(b) \ +// BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY)) +procedure BIO_set_retry_write(b: PBIO); +begin + BIO_set_flags(b, BIO_FLAGS_WRITE or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_clear_retry_flags(b) \ +// BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY)) +procedure BIO_clear_retry_flags(b: PBIO); +begin + BIO_clear_flags(b, BIO_FLAGS_RWS or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_get_retry_flags(b) \ +// BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY)) +function BIO_get_retry_flags(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_RWS or BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_should_read(a) BIO_test_flags(a, BIO_FLAGS_READ) +function BIO_should_read(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_READ); +end; + +//# define BIO_should_write(a) BIO_test_flags(a, BIO_FLAGS_WRITE) +function BIO_should_write(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_WRITE); +end; + +//# define BIO_should_io_special(a) BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL) +function BIO_should_io_special(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_IO_SPECIAL); +end; + +//# define BIO_retry_type(a) BIO_test_flags(a, BIO_FLAGS_RWS) +function BIO_retry_type(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_RWS); +end; + +//# define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY) +function BIO_should_retry(b: PBIO): TIdC_INT; +begin + Result := BIO_test_flags(b, BIO_FLAGS_SHOULD_RETRY); +end; + +//# define BIO_do_connect(b) BIO_do_handshake(b) +function BIO_do_connect(b: PBIO): TIdC_LONG; +begin + Result := BIO_do_handshake(b); +end; + +//# define BIO_do_accept(b) BIO_do_handshake(b) +function BIO_do_accept(b: PBIO): TIdC_LONG; +begin + Result := BIO_do_handshake(b); +end; + +//# define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL) +function BIO_do_handshake(b: PBIO): TIdC_LONG; +begin + Result := BIO_ctrl(b, BIO_C_DO_STATE_MACHINE, 0, nil); +end; + +//# define BIO_get_mem_data(b,pp) BIO_ctrl(b,BIO_CTRL_INFO,0,(char (pp)) +function BIO_get_mem_data(b: PBIO; pp: PIdAnsiChar) : TIdC_INT; +begin + Result := BIO_ctrl(b, BIO_CTRL_INFO, 0, pp); +end; + +//# define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char (bm)) +function BIO_set_mem_buf(b: PBIO; bm: PIdAnsiChar; c: TIdC_INT): TIdC_INT; +begin + Result := BIO_ctrl(b, BIO_C_SET_BUF_MEM, c, bm); +end; + +//# define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char (pp)) +function BIO_get_mem_ptr(b: PBIO; pp: PIdAnsiChar): TIdC_INT; +begin + Result := BIO_ctrl(b, BIO_C_GET_BUF_MEM_PTR, 0, pp); +end; + +//# define BIO_set_mem_eof_return(b,v) BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,0) +function BIO_set_mem_eof_return(b: PBIO; v: TIdC_INT): TIdC_INT; +begin + Result := BIO_ctrl(b, BIO_C_SET_BUF_MEM_EOF_RETURN, v, nil); +end; + +end. + diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bioerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bioerr.h2pas new file mode 100644 index 000000000..cbb4c0257 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bioerr.h2pas @@ -0,0 +1,141 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_bioerr; + +interface + +// Headers for OpenSSL 1.1.1 +// bioerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * BIO function codes. + *) + BIO_F_ACPT_STATE = 100; + BIO_F_ADDRINFO_WRAP = 148; + BIO_F_ADDR_STRINGS = 134; + BIO_F_BIO_ACCEPT = 101; + BIO_F_BIO_ACCEPT_EX = 137; + BIO_F_BIO_ACCEPT_NEW = 152; + BIO_F_BIO_ADDR_NEW = 144; + BIO_F_BIO_BIND = 147; + BIO_F_BIO_CALLBACK_CTRL = 131; + BIO_F_BIO_CONNECT = 138; + BIO_F_BIO_CONNECT_NEW = 153; + BIO_F_BIO_CTRL = 103; + BIO_F_BIO_GETS = 104; + BIO_F_BIO_GET_HOST_IP = 106; + BIO_F_BIO_GET_NEW_INDEX = 102; + BIO_F_BIO_GET_PORT = 107; + BIO_F_BIO_LISTEN = 139; + BIO_F_BIO_LOOKUP = 135; + BIO_F_BIO_LOOKUP_EX = 143; + BIO_F_BIO_MAKE_PAIR = 121; + BIO_F_BIO_METH_NEW = 146; + BIO_F_BIO_NEW = 108; + BIO_F_BIO_NEW_DGRAM_SCTP = 145; + BIO_F_BIO_NEW_FILE = 109; + BIO_F_BIO_NEW_MEM_BUF = 126; + BIO_F_BIO_NREAD = 123; + BIO_F_BIO_NREAD0 = 124; + BIO_F_BIO_NWRITE = 125; + BIO_F_BIO_NWRITE0 = 122; + BIO_F_BIO_PARSE_HOSTSERV = 136; + BIO_F_BIO_PUTS = 110; + BIO_F_BIO_READ = 111; + BIO_F_BIO_READ_EX = 105; + BIO_F_BIO_READ_INTERN = 120; + BIO_F_BIO_SOCKET = 140; + BIO_F_BIO_SOCKET_NBIO = 142; + BIO_F_BIO_SOCK_INFO = 141; + BIO_F_BIO_SOCK_INIT = 112; + BIO_F_BIO_WRITE = 113; + BIO_F_BIO_WRITE_EX = 119; + BIO_F_BIO_WRITE_INTERN = 128; + BIO_F_BUFFER_CTRL = 114; + BIO_F_CONN_CTRL = 127; + BIO_F_CONN_STATE = 115; + BIO_F_DGRAM_SCTP_NEW = 149; + BIO_F_DGRAM_SCTP_READ = 132; + BIO_F_DGRAM_SCTP_WRITE = 133; + BIO_F_DOAPR_OUTCH = 150; + BIO_F_FILE_CTRL = 116; + BIO_F_FILE_READ = 130; + BIO_F_LINEBUFFER_CTRL = 129; + BIO_F_LINEBUFFER_NEW = 151; + BIO_F_MEM_WRITE = 117; + BIO_F_NBIOF_NEW = 154; + BIO_F_SLG_WRITE = 155; + BIO_F_SSL_NEW = 118; + + (* + * BIO reason codes. + *) + BIO_R_ACCEPT_ERROR = 100; + BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET = 141; + BIO_R_AMBIGUOUS_HOST_OR_SERVICE = 129; + BIO_R_BAD_FOPEN_MODE = 101; + BIO_R_BROKEN_PIPE = 124; + BIO_R_CONNECT_ERROR = 103; + BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET = 107; + BIO_R_GETSOCKNAME_ERROR = 132; + BIO_R_GETSOCKNAME_TRUNCATED_ADDRESS = 133; + BIO_R_GETTING_SOCKTYPE = 134; + BIO_R_INVALID_ARGUMENT = 125; + BIO_R_INVALID_SOCKET = 135; + BIO_R_IN_USE = 123; + BIO_R_LENGTH_TOO_LONG = 102; + BIO_R_LISTEN_V6_ONLY = 136; + BIO_R_LOOKUP_RETURNED_NOTHING = 142; + BIO_R_MALFORMED_HOST_OR_SERVICE = 130; + BIO_R_NBIO_CONNECT_ERROR = 110; + BIO_R_NO_ACCEPT_ADDR_OR_SERVICE_SPECIFIED = 143; + BIO_R_NO_HOSTNAME_OR_SERVICE_SPECIFIED = 144; + BIO_R_NO_PORT_DEFINED = 113; + BIO_R_NO_SUCH_FILE = 128; + BIO_R_NULL_PARAMETER = 115; + BIO_R_UNABLE_TO_BIND_SOCKET = 117; + BIO_R_UNABLE_TO_CREATE_SOCKET = 118; + BIO_R_UNABLE_TO_KEEPALIVE = 137; + BIO_R_UNABLE_TO_LISTEN_SOCKET = 119; + BIO_R_UNABLE_TO_NODELAY = 138; + BIO_R_UNABLE_TO_REUSEADDR = 139; + BIO_R_UNAVAILABLE_IP_FAMILY = 145; + BIO_R_UNINITIALIZED = 120; + BIO_R_UNKNOWN_INFO_TYPE = 140; + BIO_R_UNSUPPORTED_IP_FAMILY = 146; + BIO_R_UNSUPPORTED_METHOD = 121; + BIO_R_UNSUPPORTED_PROTOCOL_FAMILY = 131; + BIO_R_WRITE_TO_READ_ONLY_BIO = 126; + BIO_R_WSASTARTUP = 122; + + function ERR_load_BIO_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_blowfish.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_blowfish.h2pas new file mode 100644 index 000000000..cc6f4ee42 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_blowfish.h2pas @@ -0,0 +1,69 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_blowfish; + +interface + +// Headers for OpenSSL 1.1.1 +// blowfish.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // Added '_CONST' to avoid name clashes + BF_ENCRYPT_CONST = 1; + // Added '_CONST' to avoid name clashes + BF_DECRYPT_CONST = 0; + + BF_ROUNDS = 16; + BF_BLOCK = 8; + +type + BF_LONG = TIdC_UINT; + PBF_LONG = ^BF_LONG; + + bf_key_st = record + p: array[0 .. BF_ROUNDS + 2 - 1] of BF_LONG; + s: array[0 .. 4 * 256 - 1] of BF_LONG; + end; + BF_KEY = bf_key_st; + PBF_KEY = ^BF_KEY; + + procedure BF_set_key(key: PBF_KEY; len: TIdC_INT; const data: PByte); + + procedure BF_encrypt(data: PBF_LONG; const key: PBF_KEY); + procedure BF_decrypt(data: PBF_LONG; const key: PBF_KEY); + + procedure BF_ecb_encrypt(const in_: PByte; out_: PByte; key: PBF_KEY; enc: TIdC_INT); + procedure BF_cbc_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; schedule: PBF_KEY; ivec: PByte; enc: TIdC_INT); + procedure BF_cfb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; schedule: PBF_KEY; ivec: PByte; num: PIdC_INT; enc: TIdC_INT); + procedure BF_ofb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; schedule: PBF_KEY; ivec: PByte; num: PIdC_INT); + + function BF_options: PIdAnsiChar; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bn.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bn.h2pas new file mode 100644 index 000000000..439b974de --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bn.h2pas @@ -0,0 +1,422 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_bn; + +interface + +// Headers for OpenSSL 1.1.1 +// bn.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + BN_FLG_MALLOCED = $01; + BN_FLG_STATIC_DATA = $02; + + (* + * avoid leaking exponent information through timing, + * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime, + * BN_div() will call BN_div_no_branch, + * BN_mod_inverse() will call BN_mod_inverse_no_branch. + *) + BN_FLG_CONSTTIME = $04; + BN_FLG_SECURE = $08; + + (* Values for |top| in BN_rand() *) + BN_RAND_TOP_ANY = -1; + BN_RAND_TOP_ONE = 0; + BN_RAND_TOP_TWO = 1; + + (* Values for |bottom| in BN_rand() *) + BN_RAND_BOTTOM_ANY = 0; + BN_RAND_BOTTOM_ODD = 1; + + (* BN_BLINDING flags *) + BN_BLINDING_NO_UPDATE = $00000001; + BN_BLINDING_NO_RECREATE = $00000002; + +type + BN_ULONG = TIdC_ULONG; + + BN_GENCB_set_old_cb = procedure (a: TIdC_INT; b: TIdC_INT; c: Pointer); cdecl; + BN_GENCB_set_cb = function (a: TIdC_INT; b: TIdC_INT; c: PBN_GENCB): TIdC_INT; cdecl; + + procedure BN_set_flags(b: PBIGNUM; n: TIdC_INT); + function BN_get_flags(b: PBIGNUM; n: TIdC_INT): TIdC_INT; + + (* + * get a clone of a BIGNUM with changed flags, for *temporary* use only (the + * two BIGNUMs cannot be used in parallel!). Also only for *read only* use. The + * value |dest| should be a newly allocated BIGNUM obtained via BN_new() that + * has not been otherwise initialised or used. + *) + procedure BN_with_flags(dest: PBIGNUM; b: PBIGNUM; flags: TIdC_INT); + (* Wrapper function to make using BN_GENCB easier *) + function BN_GENCB_call(cb: PBN_GENCB; a: TIdC_INT; b: TIdC_INT): TIdC_INT; + + function BN_GENCB_new: PBN_GENCB; + procedure BN_GENCB_free(cb: PBN_GENCB); + + (* Populate a PBN_GENCB structure with an "old"-style callback *) + procedure BN_GENCB_set_old(gencb: PBN_GENCB; callback: BN_GENCB_set_old_cb; cb_arg: Pointer); + + (* Populate a PBN_GENCB structure with a "new"-style callback *) + procedure BN_GENCB_set(gencb: PBN_GENCB; callback: BN_GENCB_set_cb; cb_arg: Pointer); + + function BN_GENCB_get_arg(cb: PBN_GENCB): Pointer; + + (* + * BN_prime_checks_for_size() returns the number of Miller-Rabin iterations + * that will be done for checking that a random number is probably prime. The + * error rate for accepting a composite number as prime depends on the size of + * the prime |b|. The error rates used are for calculating an RSA key with 2 primes, + * and so the level is what you would expect for a key of double the size of the + * prime. + * + * This table is generated using the algorithm of FIPS PUB 186-4 + * Digital Signature Standard (DSS), section F.1, page 117. + * (https://dx.doi.org/10.6028/NIST.FIPS.186-4) + * + * The following magma script was used to generate the output: + * securitybits:=125; + * k:=1024; + * for t:=1 to 65 do + * for M:=3 to Floor(2*Sqrt(k-1)-1) do + * S:=0; + * // Sum over m + * for m:=3 to M do + * s:=0; + * // Sum over j + * for j:=2 to m do + * s+:=(RealField(32)!2)^-(j+(k-1)/j); + * end for; + * S+:=2^(m-(m-1)*t)*s; + * end for; + * A:=2^(k-2-M*t); + * B:=8*(Pi(RealField(32))^2-6)/3*2^(k-2)*S; + * pkt:=2.00743*Log(2)*k*2^-k*(A+B); + * seclevel:=Floor(-Log(2,pkt)); + * if seclevel ge securitybits then + * printf "k: %5o, security: %o bits (t: %o, M: %o)\n",k,seclevel,t,M; + * break; + * end if; + * end for; + * if seclevel ge securitybits then break; end if; + * end for; + * + * It can be run online at: + * http://magma.maths.usyd.edu.au/calc + * + * And will output: + * k: 1024, security: 129 bits (t: 6, M: 23) + * + * k is the number of bits of the prime, securitybits is the level we want to + * reach. + * + * prime length | RSA key size | # MR tests | security level + * -------------+--------------|------------+--------------- + * (b) >= 6394 | >= 12788 | 3 | 256 bit + * (b) >= 3747 | >= 7494 | 3 | 192 bit + * (b) >= 1345 | >= 2690 | 4 | 128 bit + * (b) >= 1080 | >= 2160 | 5 | 128 bit + * (b) >= 852 | >= 1704 | 5 | 112 bit + * (b) >= 476 | >= 952 | 5 | 80 bit + * (b) >= 400 | >= 800 | 6 | 80 bit + * (b) >= 347 | >= 694 | 7 | 80 bit + * (b) >= 308 | >= 616 | 8 | 80 bit + * (b) >= 55 | >= 110 | 27 | 64 bit + * (b) >= 6 | >= 12 | 34 | 64 bit + *) + +// # define BN_prime_checks_for_size(b) ((b) >= 3747 ? 3 : \ +// (b) >= 1345 ? 4 : \ +// (b) >= 476 ? 5 : \ +// (b) >= 400 ? 6 : \ +// (b) >= 347 ? 7 : \ +// (b) >= 308 ? 8 : \ +// (b) >= 55 ? 27 : \ +// (* b >= 6 *) 34) +// +// # define BN_num_bytes(a) ((BN_num_bits(a)+7)/8) + + function BN_abs_is_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT; + function BN_is_zero(a: PBIGNUM): TIdC_INT; + function BN_is_one(a: PBIGNUM): TIdC_INT; + function BN_is_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT; + function BN_is_odd(a: PBIGNUM): TIdC_INT; + +// # define BN_one(a) (BN_set_word((a),1)) + + procedure BN_zero_ex(a: PBIGNUM); + + function BN_value_one: PBIGNUM; + function BN_options: PIdAnsiChar; + function BN_CTX_new: PBN_CTX; + function BN_CTX_secure_new: PBN_CTX; + procedure BN_CTX_free(c: PBN_CTX); + procedure BN_CTX_start(ctx: PBN_CTX); + function BN_CTX_get(ctx: PBN_CTX): PBIGNUM; + procedure BN_CTX_end(ctx: PBN_CTX); + function BN_rand(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT; + function BN_priv_rand(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT; + function BN_rand_range(rnd: PBIGNUM; range: PBIGNUM): TIdC_INT; + function BN_priv_rand_range(rnd: PBIGNUM; range: PBIGNUM): TIdC_INT; + function BN_pseudo_rand(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT; + function BN_pseudo_rand_range(rnd: PBIGNUM; range: PBIGNUM): TIdC_INT; + function BN_num_bits(a: PBIGNUM): TIdC_INT; + function BN_num_bits_word(l: BN_ULONG): TIdC_INT; + function BN_security_bits(L: TIdC_INT; N: TIdC_INT): TIdC_INT; + function BN_new: PBIGNUM; + function BN_secure_new: PBIGNUM; + procedure BN_clear_free(a: PBIGNUM); + function BN_copy(a: PBIGNUM; b: PBIGNUM): PBIGNUM; + procedure BN_swap(a: PBIGNUM; b: PBIGNUM); + function BN_bin2bn(const s: PByte; len: TIdC_INT; ret: PBIGNUM): PBIGNUM; + function BN_bn2bin(const a: PBIGNUM; to_: PByte): TIdC_INT; + function BN_bn2binpad(const a: PBIGNUM; to_: PByte; tolen: TIdC_INT): TIdC_INT; + function BN_lebin2bn(const s: PByte; len: TIdC_INT; ret: PBIGNUM): PBIGNUM; + function BN_bn2lebinpad(a: PBIGNUM; to_: PByte; tolen: TIdC_INT): TIdC_INT; + function BN_mpi2bn(const s: PByte; len: TIdC_INT; ret: PBIGNUM): PBIGNUM; + function BN_bn2mpi(a: PBIGNUM; to_: PByte): TIdC_INT; + function BN_sub(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT; + function BN_usub(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT; + function BN_uadd(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT; + function BN_add(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM): TIdC_INT; + function BN_mul(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_sqr(r: PBIGNUM; const a: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + + (** BN_set_negative sets sign of a BIGNUM + * \param b pointer to the BIGNUM object + * \param n 0 if the BIGNUM b should be positive and a value != 0 otherwise + *) + procedure BN_set_negative(b: PBIGNUM; n: TIdC_INT); + (** BN_is_negative returns 1 if the BIGNUM is negative + * \param b pointer to the BIGNUM object + * \return 1 if a < 0 and 0 otherwise + *) + function BN_is_negative(b: PBIGNUM): TIdC_INT; + + function BN_div(dv: PBIGNUM; rem: PBIGNUM; const m: PBIGNUM; const d: PBIGNUM; ctx: PBN_CTX): TIdC_INT; +// # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) + function BN_nnmod(r: PBIGNUM; const m: PBIGNUM; const d: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_mod_add(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_mod_add_quick(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM): TIdC_INT; + function BN_mod_sub(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_mod_sub_quick(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM): TIdC_INT; + function BN_mod_mul(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_mod_sqr(r: PBIGNUM; const a: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_mod_lshift1(r: PBIGNUM; const a: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_mod_lshift1_quick(r: PBIGNUM; const a: PBIGNUM; const m: PBIGNUM): TIdC_INT; + function BN_mod_lshift(r: PBIGNUM; const a: PBIGNUM; n: TIdC_INT; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_mod_lshift_quick(r: PBIGNUM; const a: PBIGNUM; n: TIdC_INT; const m: PBIGNUM): TIdC_INT; + + function BN_mod_word(const a: PBIGNUM; w: BN_ULONG): BN_ULONG; + function BN_div_word(a: PBIGNUM; w: BN_ULONG): BN_ULONG; + function BN_mul_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT; + function BN_add_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT; + function BN_sub_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT; + function BN_set_word(a: PBIGNUM; w: BN_ULONG): TIdC_INT; + function BN_get_word(const a: PBIGNUM): BN_ULONG; + + function BN_cmp(const a: PBIGNUM; const b: PBIGNUM): TIdC_INT; + procedure BN_free(a: PBIGNUM); + function BN_is_bit_set(const a: PBIGNUM; n: TIdC_INT): TIdC_INT; + function BN_lshift(r: PBIGNUM; const a: PBIGNUM; n: TIdC_INT): TIdC_INT; + function BN_lshift1(r: PBIGNUM; const a: PBIGNUM): TIdC_INT; + function BN_exp(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + + function BN_mod_exp(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_mod_exp_mont(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX; m_ctx: PBN_MONT_CTX): TIdC_INT; + function BN_mod_exp_mont_consttime(rr: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX; in_mont: PBN_MONT_CTX): TIdC_INT; + function BN_mod_exp_mont_word(r: PBIGNUM; a: BN_ULONG; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX; m_ctx: PBN_MONT_CTX): TIdC_INT; + function BN_mod_exp2_mont(r: PBIGNUM; const a1: PBIGNUM; const p1: PBIGNUM; const a2: PBIGNUM; const p2: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTX; m_ctx: PBN_MONT_CTX): TIdC_INT; + function BN_mod_exp_simple(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + + function BN_mask_bits(a: PBIGNUM; n: TIdC_INT): TIdC_INT; + function BN_print(bio: PBIO; a: PBIGNUM): TIdC_INT; + function BN_reciprocal(r: PBIGNUM; m: PBIGNUM; len: TIdC_INT; ctx: PBN_CTX): TIdC_INT; + function BN_rshift(r: PBIGNUM; a: PBIGNUM; n: TIdC_INT): TIdC_INT; + function BN_rshift1(r: PBIGNUM; a: PBIGNUM): TIdC_INT; + procedure BN_clear(a: PBIGNUM); + function BN_dup(const a: PBIGNUM): PBIGNUM; + function BN_ucmp(a: PBIGNUM; b: PBIGNUM): TIdC_INT; + function BN_set_bit(a: PBIGNUM; n: TIdC_INT): TIdC_INT; + function BN_clear_bit(a: PBIGNUM; n: TIdC_INT): TIdC_INT; + function BN_bn2hex(a: PBIGNUM): PIdAnsiChar; + function BN_bn2dec(a: PBIGNUM): PIdAnsiChar; + function BN_hex2bn(a: PPBIGNUM; str: PIdAnsiChar): TIdC_INT; + function BN_dec2bn(a: PPBIGNUM; str: PIdAnsiChar): TIdC_INT; + function BN_asc2bn(a: PPBIGNUM; str: PIdAnsiChar): TIdC_INT; + function BN_gcd(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_kronecker(a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + + function BN_mod_inverse(ret: PBIGNUM; a: PBIGNUM; const n: PBIGNUM; ctx: PBN_CTX): PBIGNUM; + function BN_mod_sqrt(ret: PBIGNUM; a: PBIGNUM; const n: PBIGNUM; ctx: PBN_CTX): PBIGNUM; + + procedure BN_consttime_swap(swap: BN_ULONG; a: PBIGNUM; b: PBIGNUM; nwords: TIdC_INT); + + function BN_generate_prime_ex(ret: PBIGNUM; bits: TIdC_INT; safe: TIdC_INT; const add: PBIGNUM; const rem: PBIGNUM; cb: PBN_GENCB): TIdC_INT; + function BN_is_prime_ex(const p: PBIGNUM; nchecks: TIdC_INT; ctx: PBN_CTX; cb: PBN_GENCB): TIdC_INT; + function BN_is_prime_fasttest_ex(const p: PBIGNUM; nchecks: TIdC_INT; ctx: PBN_CTX; do_trial_division: TIdC_INT; cb: PBN_GENCB): TIdC_INT; + function BN_X931_generate_Xpq(Xp: PBIGNUM; Xq: PBIGNUM; nbits: TIdC_INT; ctx: PBN_CTX): TIdC_INT; + function BN_X931_derive_prime_ex(p: PBIGNUM; p1: PBIGNUM; p2: PBIGNUM; const Xp: PBIGNUM; const Xp1: PBIGNUM; const Xp2: PBIGNUM; const e: PBIGNUM; ctx: PBN_CTX; cb: PBN_GENCB): TIdC_INT; + function BN_X931_generate_prime_ex(p: PBIGNUM; p1: PBIGNUM; p2: PBIGNUM; Xp1: PBIGNUM; Xp2: PBIGNUM; Xp: PBIGNUM; const e: PBIGNUM; ctx: PBN_CTX; cb: PBN_GENCB): TIdC_INT; + function BN_MONT_CTX_new: PBN_MONT_CTX; + function BN_mod_mul_montgomery(r: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; mont: PBN_MONT_CTX; ctx: PBN_CTX): TIdC_INT; + function BN_to_montgomery(r: PBIGNUM; a: PBIGNUM; mont: PBN_MONT_CTX; ctx: PBN_CTX): TIdC_INT; + function BN_from_montgomery(r: PBIGNUM; a: PBIGNUM; mont: PBN_MONT_CTX; ctx: PBN_CTX): TIdC_INT; + procedure BN_MONT_CTX_free(mont: PBN_MONT_CTX); + function BN_MONT_CTX_set(mont: PBN_MONT_CTX; mod_: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_MONT_CTX_copy(to_: PBN_MONT_CTX; from: PBN_MONT_CTX): PBN_MONT_CTX; +// function BN_MONT_CTX_set_locked(pmont: ^PBN_MONT_CTX; lock: CRYPTO_RWLOCK; mod_: PBIGNUM; ctx: PBN_CTX): PBN_MONT_CTX; + + function BN_BLINDING_new(const A: PBIGNUM; const Ai: PBIGNUM; mod_: PBIGNUM): PBN_BLINDING; + procedure BN_BLINDING_free(b: PBN_BLINDING); + function BN_BLINDING_update(b: PBN_BLINDING; ctx: PBN_CTX): TIdC_INT; + function BN_BLINDING_convert(n: PBIGNUM; b: PBN_BLINDING; ctx: PBN_CTX): TIdC_INT; + function BN_BLINDING_invert(n: PBIGNUM; b: PBN_BLINDING; ctx: PBN_CTX): TIdC_INT; + function BN_BLINDING_convert_ex(n: PBIGNUM; r: PBIGNUM; b: PBN_BLINDING; v4: PBN_CTX): TIdC_INT; + function BN_BLINDING_invert_ex(n: PBIGNUM; r: PBIGNUM; b: PBN_BLINDING; v2: PBN_CTX): TIdC_INT; + + function BN_BLINDING_is_current_thread(b: PBN_BLINDING): TIdC_INT; + procedure BN_BLINDING_set_current_thread(b: PBN_BLINDING); + function BN_BLINDING_lock(b: PBN_BLINDING): TIdC_INT; + function BN_BLINDING_unlock(b: PBN_BLINDING): TIdC_INT; + + function BN_BLINDING_get_flags(v1: PBN_BLINDING): TIdC_ULONG; + procedure BN_BLINDING_set_flags(v1: PBN_BLINDING; v2: TIdC_ULONG); +// function BN_BLINDING_create_param(PBN_BLINDING *b, +// PBIGNUM *e, PBIGNUM *m, PBN_CTX *ctx, +// function ( +// r: PBIGNUM; +// a: PBIGNUM; +// p: PBIGNUM; +// m: PBIGNUM; +// ctx: PBN_CTX; +// m_ctx: PBN_MONT_CTX): TIdC_INT, +// PBN_MONT_CTX *m_ctx): PBN_BLINDING; + + procedure BN_RECP_CTX_free(recp: PBN_RECP_CTX); + function BN_RECP_CTX_set(recp: PBN_RECP_CTX; rdiv: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_mod_mul_reciprocal(r: PBIGNUM; x: PBIGNUM; y: PBIGNUM; recp: PBN_RECP_CTX; ctx: PBN_CTX): TIdC_INT; + function BN_mod_exp_recp(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_div_recp(dv: PBIGNUM; rem: PBIGNUM; m: PBIGNUM; recp: PBN_RECP_CTX; ctx: PBN_CTX): TIdC_INT; + + (* + * Functions for arithmetic over binary polynomials represented by BIGNUMs. + * The BIGNUM::neg property of BIGNUMs representing binary polynomials is + * ignored. Note that input arguments are not const so that their bit arrays + * can be expanded to the appropriate size if needed. + *) + + (* + * r = a + b + *) + function BN_GF2m_add(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM): TIdC_INT; +// # define BN_GF2m_sub(r, a, b) BN_GF2m_add(r, a, b) + (* + * r=a mod p + *) + function BN_GF2m_mod(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM): TIdC_INT; + (* r = (a * b) mod p *) + function BN_GF2m_mod_mul(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + (* r = (a * a) mod p *) + function BN_GF2m_mod_sqr(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + (* r = (1 / b) mod p *) + function BN_GF2m_mod_inv(r: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + (* r = (a / b) mod p *) + function BN_GF2m_mod_div(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + (* r = (a ^ b) mod p *) + function BN_GF2m_mod_exp(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + (* r = sqrt(a) mod p *) + function BN_GF2m_mod_sqrt(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + (* r^2 + r = a mod p *) + function BN_GF2m_mod_solve_quad(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; +// # define BN_GF2m_cmp(a, b) BN_ucmp((a), (b)) + (*- + * Some functions allow for representation of the irreducible polynomials + * as an unsigned int[], say p. The irreducible f(t) is then of the form: + * t^p[0] + t^p[1] + ... + t^p[k] + * where m = p[0] > p[1] > ... > p[k] = 0. + *) + (* r = a mod p *) +// function BN_GF2m_mod_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT): TIdC_INT; + (* r = (a * b) mod p *) +// function BN_GF2m_mod_mul_arr(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (a * a) mod p *) +// function BN_GF2m_mod_sqr_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (1 / b) mod p *) +// function BN_GF2m_mod_inv_arr(r: PBIGNUM; b: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (a / b) mod p *) +// function BN_GF2m_mod_div_arr(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = (a ^ b) mod p *) +// function BN_GF2m_mod_exp_arr(r: PBIGNUM; a: PBIGNUM; b: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r = sqrt(a) mod p *) +// function BN_GF2m_mod_sqrt_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; + (* r^2 + r = a mod p *) +// function BN_GF2m_mod_solve_quad_arr(r: PBIGNUM; a: PBIGNUM; p: array of TIdC_INT; ctx: PBN_CTX): TIdC_INT; +// function BN_GF2m_poly2arr(a: PBIGNUM; p: array of TIdC_INT; max: TIdC_INT): TIdC_INT; +// function BN_GF2m_arr2poly(p: array of TIdC_INT; a: PBIGNUM): TIdC_INT; + + (* + * faster mod functions for the 'NIST primes' 0 <= a < p^2 + *) + function BN_nist_mod_192(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_nist_mod_224(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_nist_mod_256(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_nist_mod_384(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function BN_nist_mod_521(r: PBIGNUM; a: PBIGNUM; p: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + + function BN_get0_nist_prime_192: PBIGNUM; + function BN_get0_nist_prime_224: PBIGNUM; + function BN_get0_nist_prime_256: PBIGNUM; + function BN_get0_nist_prime_384: PBIGNUM; + function BN_get0_nist_prime_521: PBIGNUM; + +//int (*BN_nist_mod_func(const BIGNUM *p)) (BIGNUM *r, const BIGNUM *a, +// const BIGNUM *field, BN_CTX *ctx); + + function BN_generate_dsa_nonce(out_: PBIGNUM; range: PBIGNUM; priv: PBIGNUM; const message_: PByte; message_len: TIdC_SIZET; ctx: PBN_CTX): TIdC_INT; + + (* Primes from RFC 2409 *) + function BN_get_rfc2409_prime_768(bn: PBIGNUM ): PBIGNUM; + function BN_get_rfc2409_prime_1024(bn: PBIGNUM): PBIGNUM; + + (* Primes from RFC 3526 *) + function BN_get_rfc3526_prime_1536(bn: PBIGNUM): PBIGNUM; + function BN_get_rfc3526_prime_2048(bn: PBIGNUM): PBIGNUM; + function BN_get_rfc3526_prime_3072(bn: PBIGNUM): PBIGNUM; + function BN_get_rfc3526_prime_4096(bn: PBIGNUM): PBIGNUM; + function BN_get_rfc3526_prime_6144(bn: PBIGNUM): PBIGNUM; + function BN_get_rfc3526_prime_8192(bn: PBIGNUM): PBIGNUM; + + function BN_bntest_rand(rnd: PBIGNUM; bits: TIdC_INT; top: TIdC_INT; bottom: TIdC_INT): TIdC_INT; + +implementation + +end. + diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bnerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bnerr.h2pas new file mode 100644 index 000000000..f4aa9ed5f --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_bnerr.h2pas @@ -0,0 +1,117 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_bnerr; + +interface + +// Headers for OpenSSL 1.1.1 +// bnerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * BN function codes. + *) + BN_F_BNRAND = 127; + BN_F_BNRAND_RANGE = 138; + BN_F_BN_BLINDING_CONVERT_EX = 100; + BN_F_BN_BLINDING_CREATE_PARAM = 128; + BN_F_BN_BLINDING_INVERT_EX = 101; + BN_F_BN_BLINDING_NEW = 102; + BN_F_BN_BLINDING_UPDATE = 103; + BN_F_BN_BN2DEC = 104; + BN_F_BN_BN2HEX = 105; + BN_F_BN_COMPUTE_WNAF = 142; + BN_F_BN_CTX_GET = 116; + BN_F_BN_CTX_NEW = 106; + BN_F_BN_CTX_START = 129; + BN_F_BN_DIV = 107; + BN_F_BN_DIV_RECP = 130; + BN_F_BN_EXP = 123; + BN_F_BN_EXPAND_INTERNAL = 120; + BN_F_BN_GENCB_NEW = 143; + BN_F_BN_GENERATE_DSA_NONCE = 140; + BN_F_BN_GENERATE_PRIME_EX = 141; + BN_F_BN_GF2M_MOD = 131; + BN_F_BN_GF2M_MOD_EXP = 132; + BN_F_BN_GF2M_MOD_MUL = 133; + BN_F_BN_GF2M_MOD_SOLVE_QUAD = 134; + BN_F_BN_GF2M_MOD_SOLVE_QUAD_ARR = 135; + BN_F_BN_GF2M_MOD_SQR = 136; + BN_F_BN_GF2M_MOD_SQRT = 137; + BN_F_BN_LSHIFT = 145; + BN_F_BN_MOD_EXP2_MONT = 118; + BN_F_BN_MOD_EXP_MONT = 109; + BN_F_BN_MOD_EXP_MONT_CONSTTIME = 124; + BN_F_BN_MOD_EXP_MONT_WORD = 117; + BN_F_BN_MOD_EXP_RECP = 125; + BN_F_BN_MOD_EXP_SIMPLE = 126; + BN_F_BN_MOD_INVERSE = 110; + BN_F_BN_MOD_INVERSE_NO_BRANCH = 139; + BN_F_BN_MOD_LSHIFT_QUICK = 119; + BN_F_BN_MOD_SQRT = 121; + BN_F_BN_MONT_CTX_NEW = 149; + BN_F_BN_MPI2BN = 112; + BN_F_BN_NEW = 113; + BN_F_BN_POOL_GET = 147; + BN_F_BN_RAND = 114; + BN_F_BN_RAND_RANGE = 122; + BN_F_BN_RECP_CTX_NEW = 150; + BN_F_BN_RSHIFT = 146; + BN_F_BN_SET_WORDS = 144; + BN_F_BN_STACK_PUSH = 148; + BN_F_BN_USUB = 115; + + (* + * BN reason codes. + *) + BN_R_ARG2_LT_ARG3 = 100; + BN_R_BAD_RECIPROCAL = 101; + BN_R_BIGNUM_TOO_LONG = 114; + BN_R_BITS_TOO_SMALL = 118; + BN_R_CALLED_WITH_EVEN_MODULUS = 102; + BN_R_DIV_BY_ZERO = 103; + BN_R_ENCODING_ERROR = 104; + BN_R_EXPAND_ON_STATIC_BIGNUM_DATA = 105; + BN_R_INPUT_NOT_REDUCED = 110; + BN_R_INVALID_LENGTH = 106; + BN_R_INVALID_RANGE = 115; + BN_R_INVALID_SHIFT = 119; + BN_R_NOT_A_SQUARE = 111; + BN_R_NOT_INITIALIZED = 107; + BN_R_NO_INVERSE = 108; + BN_R_NO_SOLUTION = 116; + BN_R_PRIVATE_KEY_TOO_LARGE = 117; + BN_R_P_IS_NOT_PRIME = 112; + BN_R_TOO_MANY_ITERATIONS = 113; + BN_R_TOO_MANY_TEMPORARY_VARIABLES = 109; + + function ERR_load_BN_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_buffer.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_buffer.h2pas new file mode 100644 index 000000000..9345df898 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_buffer.h2pas @@ -0,0 +1,56 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_buffer; + +interface + +// Headers for OpenSSL 1.1.1 +// buffer.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + BUF_MEM_FLAG_SECURE = $01; + +type + buf_mem_st = record + length: TIdC_SIZET; + data: PIdAnsiChar; + max: TIdC_SIZET; + flags: TIdC_ULONG; + end; + + function BUF_MEM_new: PBUF_MEM; + function BUF_MEM_new_ex(flags: TIdC_ULONG): PBUF_MEM; + procedure BUF_MEM_free(a: PBUF_MEM); + function BUF_MEM_grow(str: PBUF_MEM; len: TIdC_SIZET): TIdC_SIZET; + function BUF_MEM_grow_clean(str: PBUF_MEM; len: TIdC_SIZET): TIdC_SIZET; + procedure BUF_reverse(out_: PByte; const in_: PByte; siz: TIdC_SIZET); + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_buffererr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_buffererr.h2pas new file mode 100644 index 000000000..57c923a51 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_buffererr.h2pas @@ -0,0 +1,47 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_buffererr; + +interface + +// Headers for OpenSSL 1.1.1 +// buffererr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const +// BUF function codes. + BUF_F_BUF_MEM_GROW = 100; + BUF_F_BUF_MEM_GROW_CLEAN = 105; + BUF_F_BUF_MEM_NEW = 101; + +// BUF reason codes. + + function ERR_load_BUF_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_camellia.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_camellia.h2pas new file mode 100644 index 000000000..c1493dc4f --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_camellia.h2pas @@ -0,0 +1,80 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_camellia; + +interface + +// Headers for OpenSSL 1.1.1 +// camellia.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // Added '_CONST' to avoid name clashes + CAMELLIA_ENCRYPT_CONST = 1; + // Added '_CONST' to avoid name clashes + CAMELLIA_DECRYPT_CONST = 0; + + CAMELLIA_BLOCK_SIZE = 16; + CAMELLIA_TABLE_BYTE_LEN = 272; + CAMELLIA_TABLE_WORD_LEN = CAMELLIA_TABLE_BYTE_LEN div 4; + +type + KEY_TABLE_TYPE = array[0 .. CAMELLIA_TABLE_WORD_LEN - 1] of TIdC_UINT; + + camellia_key_st_u = record + case Integer of + 0: (d: TIdC_DOUBLE); + 1: (rd_key: KEY_TABLE_TYPE); + end; + + camellia_key_st = record + u: camellia_key_st_u; + grand_rounds: TIdC_INT; + end; + + CAMELLIA_KEY = camellia_key_st; + PCAMELLIA_KEY = ^CAMELLIA_KEY; + + TCamellia_ctr128_encrypt_ivec = array[0 .. CAMELLIA_TABLE_WORD_LEN - 1] of Byte; + TCamellia_ctr128_encrypt_ecount_buf = array[0 .. CAMELLIA_TABLE_WORD_LEN - 1] of Byte; + + function Camellia_set_key(const userKey: PByte; const bits: TIdC_INT; key: PCAMELLIA_KEY): TIdC_INT; + + procedure Camellia_encrypt(const in_: PByte; const out_: PByte; const key: PCAMELLIA_KEY); + procedure Camellia_decrypt(const in_: PByte; const out_: PByte; const key: PCAMELLIA_KEY); + + procedure Camellia_ecb_encrypt( const in_: PByte; const out_: PByte; const key: PCAMELLIA_KEY; const enc: TIdC_INT); + procedure Camellia_cbc_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; const enc: TIdC_INT); + procedure Camellia_cfb128_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); + procedure Camellia_cfb1_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); + procedure Camellia_cfb8_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT; const enc: TIdC_INT); + procedure Camellia_ofb128_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: PByte; num: PIdC_INT); + procedure Camellia_ctr128_encrypt( const in_: PByte; const out_: PByte; length: TIdC_SIZET; const key: PCAMELLIA_KEY; ivec: TCamellia_ctr128_encrypt_ivec; ecount_buf: TCamellia_ctr128_encrypt_ecount_buf; num: PIdC_INT); + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cast.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cast.h2pas new file mode 100644 index 000000000..82492e5f4 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cast.h2pas @@ -0,0 +1,63 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cast; + +interface + +// Headers for OpenSSL 1.1.1 +// cast.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + CAST_ENCRYPT_CONST = 1; + CAST_DECRYPT_CONST = 0; + CAST_BLOCK = 8; + CAST_KEY_LENGTH = 16; + +type + CAST_LONG = type TIdC_UINT; + PCAST_LONG = ^CAST_LONG; + + cast_key_st = record + data: array of CAST_LONG; + short_key: TIdC_INT; //* Use reduced rounds for short key */ + end; + + CAST_KEY = cast_key_st; + PCAST_KEY = ^CAST_KEY; + + procedure CAST_set_key(key: PCast_Key; len: TIdC_INT; const data: PByte); + procedure CAST_ecb_encrypt(const in_: PByte; out_: PByte; const key: PCast_Key; enc: TIdC_INT); + procedure CAST_encrypt(data: PCAST_LONG; const key: PCast_Key); + procedure CAST_decrypt(data: PCAST_LONG; const key: PCast_Key); + procedure CAST_cbc_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; const ks: PCast_Key; iv: PByte; enc: TIdC_INT); + procedure CAST_cfb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; const schedule: PCast_Key; ivec: PByte; num: PIdC_INT; enc: TIdC_INT); + procedure CAST_ofb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; const schedule: PCast_Key; ivec: PByte; num: PIdC_INT); + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cmac.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cmac.h2pas new file mode 100644 index 000000000..52e324a19 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cmac.h2pas @@ -0,0 +1,55 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cmac; + +interface + +// Headers for OpenSSL 1.1.1 +// cmac.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_evp, + IdOpenSSLHeaders_ossl_typ; + +//* Opaque */ +type + CMAC_CTX_st = type Pointer; + CMAC_CTX = CMAC_CTX_st; + PCMAC_CTX = ^CMAC_CTX; + + function CMAC_CTX_new: PCMAC_CTX; + procedure CMAC_CTX_cleanup(ctx: PCMAC_CTX); + procedure CMAC_CTX_free(ctx: PCMAC_CTX); + function CMAC_CTX_get0_cipher_ctx(ctx: PCMAC_CTX): PEVP_CIPHER_CTX; + function CMAC_CTX_copy(out_: PCMAC_CTX; const in_: PCMAC_CTX): TIdC_INT; + function CMAC_Init(ctx: PCMAC_CTX; const key: Pointer; keylen: TIdC_SIZET; const cipher: PEVP_Cipher; impl: PENGINe): TIdC_INT; + function CMAC_Update(ctx: PCMAC_CTX; const data: Pointer; dlen: TIdC_SIZET): TIdC_INT; + function CMAC_Final(ctx: PCMAC_CTX; out_: PByte; poutlen: PIdC_SIZET): TIdC_INT; + function CMAC_resume(ctx: PCMAC_CTX): TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cms.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cms.h2pas new file mode 100644 index 000000000..a434a11a3 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cms.h2pas @@ -0,0 +1,285 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cms; + +interface + +// Headers for OpenSSL 1.1.1 +// cms.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_x509; + +type + CMS_ContentInfo_st = type Pointer; + CMS_ContentInfo = CMS_ContentInfo_st; + PCMS_ContentInfo = ^CMS_ContentInfo; + PPCMS_ContentInfo = ^PCMS_ContentInfo; + + CMS_SignerInfo_st = type Pointer; + CMS_SignerInfo = CMS_SignerInfo_st; + PCMS_SignerInfo = ^CMS_SignerInfo; + + CMS_CertificateChoices_st = type Pointer; + CMS_CertificateChoices = CMS_CertificateChoices_st; + PCMS_CertificateChoices = ^CMS_CertificateChoices; + + CMS_RevocationInfoChoice_st = type Pointer; + CMS_RevocationInfoChoice = CMS_RevocationInfoChoice_st; + PCMS_RevocationInfoChoice = ^CMS_RevocationInfoChoice; + + CMS_RecipientInfo_st = type Pointer; + CMS_RecipientInfo = CMS_RecipientInfo_st; + PCMS_RecipientInfo = ^CMS_RecipientInfo; + PPCMS_RecipientInfo = ^PCMS_RecipientInfo; + + CMS_ReceiptRequest_st = type Pointer; + CMS_ReceiptRequest = CMS_ReceiptRequest_st; + PCMS_ReceiptRequest = ^CMS_ReceiptRequest; + PPCMS_ReceiptRequest = ^PCMS_ReceiptRequest; + + CMS_Receipt_st = type Pointer; + CMS_Receipt = CMS_Receipt_st; + PCMS_Receipt = ^CMS_Receipt; + + CMS_RecipientEncryptedKey_st = type Pointer; + CMS_RecipientEncryptedKey = CMS_RecipientEncryptedKey_st; + PCMS_RecipientEncryptedKey = ^CMS_RecipientEncryptedKey; + + CMS_OtherKeyAttribute_st = type Pointer; + CMS_OtherKeyAttribute = CMS_OtherKeyAttribute_st; + PCMS_OtherKeyAttribute = ^CMS_OtherKeyAttribute; + PPCMS_OtherKeyAttribute = ^PCMS_OtherKeyAttribute; + +//DEFINE_STACK_OF(CMS_SignerInfo) +//DEFINE_STACK_OF(CMS_RecipientEncryptedKey) +//DEFINE_STACK_OF(CMS_RecipientInfo) +//DEFINE_STACK_OF(CMS_RevocationInfoChoice) +//DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo) +//DECLARE_ASN1_FUNCTIONS(CMS_ReceiptRequest) +//DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo) + +const + CMS_SIGNERINFO_ISSUER_SERIAL = 0; + CMS_SIGNERINFO_KEYIDENTIFIER = 1; + + CMS_RECIPINFO_NONE = -1; + CMS_RECIPINFO_TRANS = 0; + CMS_RECIPINFO_AGREE = 1; + CMS_RECIPINFO_KEK = 2; + CMS_RECIPINFO_PASS = 3; + CMS_RECIPINFO_OTHER = 4; + +// S/MIME related flags / + + CMS_TEXT = $1; + CMS_NOCERTS = $2; + CMS_NO_CONTENT_VERIFY = $4; + CMS_NO_ATTR_VERIFY = $8; + CMS_NOSIGS = (CMS_NO_CONTENT_VERIFY or CMS_NO_ATTR_VERIFY); + CMS_NOINTERN = $10; + CMS_NO_SIGNER_CERT_VERIFY = $20; + CMS_NOVERIFY = $20; + CMS_DETACHED = $40; + CMS_BINARY = $80; + CMS_NOATTR = $100; + CMS_NOSMIMECAP = $200; + CMS_NOOLDMIMETYPE = $400; + CMS_CRLFEOL = $800; + CMS_STREAM_CONST = $1000; + CMS_NOCRL = $2000; + CMS_PARTIAL = $4000; + CMS_REUSE_DIGEST = $8000; + CMS_USE_KEYID = $10000; + CMS_DEBUG_DECRYPT = $20000; + CMS_KEY_PARAM = $40000; + CMS_ASCIICRLF = $80000; + + function CMS_get0_type(const cms: PCMS_ContentInfo): PASN1_OBJECT; + + function CMS_dataInit(cms: PCMS_ContentInfo; icont: PBIO): PBIO; + function CMS_dataFinal(cms: PCMS_ContentInfo; bio: PBIO): TIdC_INT; + + function CMS_get0_content(cms: PCMS_ContentInfo): PPASN1_OCTET_STRING; + function CMS_is_detached(cms: PCMS_ContentInfo): TIdC_INT; + function CMS_set_detached(cms: PCMS_ContentInfo; detached: TIdC_INT): TIdC_INT; + + function CMS_stream(cms: PCMS_ContentInfo; boundary: PPPByte): TIdC_INT; + function d2i_CMS_bio(bp: PBIO; cms: PPCMS_ContentInfo): PCMS_ContentInfo; + function i2d_CMS_bio(bp: PBIO; cms: PCMS_ContentInfo): TIdC_INT; + + function BIO_new_CMS(out_: PBIO; cms: PCMS_ContentInfo): PBIO; + function i2d_CMS_bio_stream(out_: PBIO; cms: PCMS_ContentInfo; in_: PBIO; flags: TIdC_INT): TIdC_INT; + function PEM_write_bio_CMS_stream(out_: PBIO; cms: PCMS_ContentInfo; in_: PBIO; flags: TIdC_INT): TIdC_INT; + function SMIME_read_CMS(bio: PBIO; bcont: PPBIO): PCMS_ContentInfo; + function SMIME_write_CMS(bio: PBIO; cms: PCMS_ContentInfo; data: PBIO; flags: TIdC_INT): TIdC_INT; + + function CMS_final(cms: PCMS_ContentInfo; data: PBIO; dcont: PBIO; flags: TIdC_UINT): TIdC_INT; + +// function CMS_sign(signcert: PX509; pkey: PEVP_PKEY; {STACK_OF(x509) *certs;} data: PBIO; flags: TIdC_UINT): PCMS_ContentInfo; + +// function CMS_sign_receipt(si: PCMS_SignerInfo; signcert: PX509; pkey: PEVP_PKEY; {STACK_OF(X509) *certs;} flags: TIdC_UINT): PCMS_ContentInfo; + + function CMS_data(cms: PCMS_ContentInfo; out_: PBIO; flags: TIdC_UINT): TIdC_INT; + function CMS_data_create(in_: PBIO; flags: TIdC_UINT): PCMS_ContentInfo; + + function CMS_digest_verify(cms: PCMS_ContentInfo; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT; + function CMS_digest_create(in_: PBIO; const md: PEVP_MD; flags: TIdC_UINT): PCMS_ContentInfo; + + function CMS_EncryptedData_decrypt(cms: PCMS_ContentInfo; const key: PByte; keylen: TIdC_SIZET; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT; + + function CMS_EncryptedData_encrypt(in_: PBIO; const cipher: PEVP_CIPHER; const key: PByte; keylen: TIdC_SIZET; flags: TIdC_UINT): PCMS_ContentInfo; + + function CMS_EncryptedData_set1_key(cms: PCMS_ContentInfo; const ciph: PEVP_CIPHER; const key: PByte; keylen: TIdC_SIZET): TIdC_INT; + +// function CMS_verify(cms: PCMS_ContentInfo; {STACK_OF(X509) *certs;} store: PX509_STORE; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT; + +// function CMS_verify_receipt(rcms: PCMS_ContentInfo; ocms: PCMS_ContentInfo; {STACK_OF(x509) *certs;} store: PX509_STORE; flags: TIdC_UINT): TIdC_INT; + + // STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms); + +// function CMS_encrypt({STACK_OF(x509) *certs;} in_: PBIO; const cipher: PEVP_CIPHER; flags: TIdC_UINT): PCMS_ContentInfo; + + function CMS_decrypt(cms: PCMS_ContentInfo; pkey: PEVP_PKEY; cert: PX509; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT; + + function CMS_decrypt_set1_pkey(cms: PCMS_ContentInfo; pk: PEVP_PKEY; cert: PX509): TIdC_INT; + function CMS_decrypt_set1_key(cms: PCMS_ContentInfo; key: PByte; keylen: TIdC_SIZET; const id: PByte; idlen: TIdC_SIZET): TIdC_INT; + function CMS_decrypt_set1_password(cms: PCMS_ContentInfo; pass: PByte; passlen: ossl_ssize_t): TIdC_INT; + + //STACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms); + function CMS_RecipientInfo_type(ri: PCMS_RecipientInfo): TIdC_INT; + function CMS_RecipientInfo_get0_pkey_ctx(ri: PCMS_RecipientInfo): PEVP_PKEY_CTX; + function CMS_EnvelopedData_create(const cipher: PEVP_CIPHER): PCMS_ContentInfo; + function CMS_add1_recipient_cert(cms: PCMS_ContentInfo; recip: PX509; flags: TIdC_UINT): PCMS_RecipientInfo; + function CMS_RecipientInfo_set0_pkey(ri: PCMS_RecipientInfo; pkey: PEVP_PKEY): TIdC_INT; + function CMS_RecipientInfo_ktri_cert_cmp(ri: PCMS_RecipientInfo; cert: PX509): TIdC_INT; + function CMS_RecipientInfo_ktri_get0_algs(ri: PCMS_RecipientInfo; pk: PPEVP_PKEY; recip: PPX509; palg: PPX509_ALGOR): TIdC_INT; + function CMS_RecipientInfo_ktri_get0_signer_id(ri: PPCMS_RecipientInfo; keyid: PPASN1_OCTET_STRING; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT; + + function CMS_add0_recipient_key(cms: PCMS_ContentInfo; nid: TIdC_INT; key: PByte; keylen: TIdC_SIZET; id: PByte; idlen: TIdC_SIZET; date: PASN1_GENERALIZEDTIME; otherTypeId: PASN1_OBJECT; otherType: ASN1_TYPE): PCMS_RecipientInfo; + + function CMS_RecipientInfo_kekri_get0_id(ri: PCMS_RecipientInfo; palg: PPX509_ALGOR; pid: PPASN1_OCTET_STRING; pdate: PPASN1_GENERALIZEDTIME; potherid: PPASN1_OBJECT; pothertype: PASN1_TYPE): TIdC_INT; + + function CMS_RecipientInfo_set0_key(ri: PCMS_RecipientInfo; key: PByte; keylen: TIdC_SIZET): TIdC_INT; + + function CMS_RecipientInfo_kekri_id_cmp(ri: PCMS_RecipientInfo; const id: PByte; idlen: TIdC_SIZET): TIdC_INT; + + function CMS_RecipientInfo_set0_password(ri: PCMS_RecipientInfo; pass: PByte; passlen: ossl_ssize_t): TIdC_INT; + + function CMS_add0_recipient_password(cms: PCMS_ContentInfo; iter: TIdC_INT; wrap_nid: TIdC_INT; pbe_nid: TIdC_INT; pass: PByte; passlen: ossl_ssize_t; const kekciph: PEVP_CIPHER): PCMS_RecipientInfo; + + function CMS_RecipientInfo_decrypt(cms: PCMS_ContentInfo; ri: PCMS_RecipientInfo): TIdC_INT; + function CMS_RecipientInfo_encrypt(cms: PCMS_ContentInfo; ri: PCMS_RecipientInfo): TIdC_INT; + + function CMS_uncompress(cms: PCMS_ContentInfo; dcont: PBIO; out_: PBIO; flags: TIdC_UINT): TIdC_INT; + function CMS_compress(in_: PBIO; comp_nid: TIdC_INT; flags: TIdC_UINT): PCMS_ContentInfo; + + function CMS_set1_eContentType(cms: CMS_ContentInfo; const oit: PASN1_OBJECT): TIdC_INT; + function CMS_get0_eContentType(cms: PCMS_ContentInfo): PASN1_OBJECT; + + function CMS_add0_CertificateChoices(cms: PCMS_ContentInfo): PCMS_CertificateChoices; + function CMS_add0_cert(cms: PCMS_ContentInfo; cert: PX509): TIdC_INT; + function CMS_add1_cert(cms: PCMS_ContentInfo; cert: PX509): TIdC_INT; + // STACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms); + + function CMS_add0_RevocationInfoChoice(cms: PCMS_ContentInfo): PCMS_RevocationInfoChoice; + function CMS_add0_crl(cms: PCMS_ContentInfo; crl: PX509_CRL): TIdC_INT; + function CMS_add1_crl(cms: PCMS_ContentInfo; crl: PX509_CRL): TIdC_INT; + // STACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms); + + function CMS_SignedData_init(cms: PCMS_ContentInfo): TIdC_INT; + function CMS_add1_signer(cms: PCMS_ContentInfo; signer: PX509; pk: PEVP_PKEY; const md: PEVP_MD; flags: TIdC_UINT): PCMS_SignerInfo; + function CMS_SignerInfo_get0_pkey_ctx(si: PCMS_SignerInfo): PEVP_PKEY_CTX; + function CMS_SignerInfo_get0_md_ctx(si: PCMS_SignerInfo): PEVP_MD_CTX; + // STACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms); + + procedure CMS_SignerInfo_set1_signer_cert(si: PCMS_SignerInfo; signer: PX509); + function CMS_SignerInfo_get0_signer_id(si: PCMS_SignerInfo; keyid: PPASN1_OCTET_STRING; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT; + function CMS_SignerInfo_cert_cmp(si: PCMS_SignerInfo; cert: PX509): TIdC_INT; +// function CMS_set1_signers_certs(cms: PCMS_ContentInfo; {STACK_OF(X509) *certs;} flags: TIdC_UINT): TIdC_INT; + procedure CMS_SignerInfo_get0_algs(si: PCMS_SignerInfo; pk: PPEVP_PKEY; signer: PPX509; pdig: PPX509_ALGOR; psig: PPX509_ALGOR); + function CMS_SignerInfo_get0_signature(si: PCMS_SignerInfo): PASN1_OCTET_STRING; + function CMS_SignerInfo_sign(si: PCMS_SignerInfo): TIdC_INT; + function CMS_SignerInfo_verify(si: PCMS_SignerInfo): TIdC_INT; + function CMS_SignerInfo_verify_content(si: PCMS_SignerInfo; chain: PBIO): TIdC_INT; + +// function CMS_add_smimecap(si: PCMS_SignerInfo{; STACK_OF(X509_ALGOR) *algs}): TIdC_INT; +// function CMS_add_simple_smimecap({STACK_OF(X509_ALGOR) **algs;} algnid: TIdC_INT; keysize: TIdC_INT): TIdC_INT; +// function CMS_add_standard_smimecap({STACK_OF(X509_ALGOR) **smcap}): TIdC_INT; + + function CMS_signed_get_attr_count(const si: PCMS_SignerInfo): TIdC_INT; + function CMS_signed_get_attr_by_NID(const si: PCMS_SignerInfo; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function CMS_signed_get_attr_by_OBJ(const si: PCMS_SignerInfo; const obj: ASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; + function CMS_signed_get_attr(const si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE; + function CMS_signed_delete_attr(const si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE; + function CMS_signed_add1_attr(si: PCMS_SignerInfo; loc: TIdC_INT): TIdC_INT; + function CMS_signed_add1_attr_by_OBJ(si: PCMS_SignerInfo; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; + function CMS_signed_add1_attr_by_NID(si: PCMS_SignerInfo; nid: TIdC_INT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; + function CMS_signed_add1_attr_by_txt(si: PCMS_SignerInfo; const attrname: PAnsiChar; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; + function CMS_signed_get0_data_by_OBJ(si: PCMS_SignerInfo; const oid: PASN1_OBJECT; lastpos: TIdC_INT; type_: TIdC_INT): Pointer; + + function CMS_unsigned_get_attr_count(const si: PCMS_SignerInfo): TIdC_INT; + function CMS_unsigned_get_attr_by_NID(const si: PCMS_SignerInfo; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function CMS_unsigned_get_attr_by_OBJ(const si: PCMS_SignerInfo; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; + function CMS_unsigned_get_attr(const si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE; + function CMS_unsigned_delete_attr(si: PCMS_SignerInfo; loc: TIdC_INT): PX509_ATTRIBUTE; + function CMS_unsigned_add1_attr(si: PCMS_SignerInfo; attr: PX509_ATTRIBUTE): TIdC_INT; + function CMS_unsigned_add1_attr_by_OBJ(si: PCMS_SignerInfo; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; + function CMS_unsigned_add1_attr_by_NID(si: PCMS_SignerInfo; nid: TIdC_INT; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; + function CMS_unsigned_add1_attr_by_txt(si: PCMS_SignerInfo; const attrname: PAnsiChar; type_: TIdC_INT; const bytes: Pointer; len: TIdC_INT): TIdC_INT; + function CMS_unsigned_get0_data_by_OBJ(si: PCMS_SignerInfo; oid: PASN1_OBJECT; lastpos: TIdC_INT; type_: TIdC_INT): Pointer; + + function CMS_get1_ReceiptRequest(si: PCMS_SignerInfo; prr: PPCMS_ReceiptRequest): TIdC_INT; +// function CMS_ReceiptRequest_create0(id: PByte; idlen: TIdC_INT; allorfirst: TIdC_INT +// {;STACK_OF(GENERAL_NAMES) *receiptList;} {STACK_OF(GENERAL_NAMES) *receiptsTo}): PCMS_ReceiptRequest; + function CMS_add1_ReceiptRequest(si: PCMS_SignerInfo; rr: PCMS_ReceiptRequest): TIdC_INT; +// procedure CMS_ReceiptRequest_get0_values(rr: PCMS_ReceiptRequest; pcid: PPASN1_STRING; +// pallorfirst: PIdC_INT {;STACK_OF(GENERAL_NAMES) **plist;} +// {STACK_OF(GENERAL_NAMES) **prto}); +// function CMS_RecipientInfo_kari_get0_alg(ri: PCMS_RecipientInfo; palg: PPX509_ALGOR; +// pukm: PPASN1_OCTET_STRING): TIdC_INT; +// // STACK_OF(CMS_RecipientEncryptedKey) *CMS_RecipientInfo_kari_get0_reks(CMS_RecipientInfo *ri); + + function CMS_RecipientInfo_kari_get0_orig_id(ri: PCMS_RecipientInfo; pubalg: PPX509_ALGOR; pubkey: PASN1_BIT_STRING; keyid: PPASN1_OCTET_STRING; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT; + + function CMS_RecipientInfo_kari_orig_id_cmp(ri: PCMS_RecipientInfo; cert: PX509): TIdC_INT; + + function CMS_RecipientEncryptedKey_get0_id(rek: PCMS_RecipientEncryptedKey; keyid: PPASN1_OCTET_STRING; tm: PPASN1_GENERALIZEDTIME; other: PPCMS_OtherKeyAttribute; issuer: PPX509_NAME; sno: PPASN1_INTEGER): TIdC_INT; + function CMS_RecipientEncryptedKey_cert_cmp(rek: PCMS_RecipientEncryptedKey; cert: PX509): TIdC_INT; + function CMS_RecipientInfo_kari_set0_pkey(ri: PCMS_RecipientInfo; pk: PEVP_PKEY): TIdC_INT; + function CMS_RecipientInfo_kari_get0_ctx(ri: PCMS_RecipientInfo): PEVP_CIPHER_CTX; + function CMS_RecipientInfo_kari_decrypt(cms: PCMS_ContentInfo; ri: PCMS_RecipientInfo; rek: PCMS_RecipientEncryptedKey): TIdC_INT; + + function CMS_SharedInfo_encode(pder: PPByte; kekalg: PX509_ALGOR; ukm: PASN1_OCTET_STRING; keylen: TIdC_INT): TIdC_INT; + + ///* Backward compatibility for spelling errors. */ + //# define CMS_R_UNKNOWN_DIGEST_ALGORITM CMS_R_UNKNOWN_DIGEST_ALGORITHM + //# define CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE \ CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cmserr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cmserr.h2pas new file mode 100644 index 000000000..f2813cbc0 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cmserr.h2pas @@ -0,0 +1,214 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cmserr; + +interface + +// Headers for OpenSSL 1.1.1 +// cmserr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // + // CMS function codes. + // + CMS_F_CHECK_CONTENT = 99; + CMS_F_CMS_ADD0_CERT = 164; + CMS_F_CMS_ADD0_RECIPIENT_KEY = 100; + CMS_F_CMS_ADD0_RECIPIENT_PASSWORD = 165; + CMS_F_CMS_ADD1_RECEIPTREQUEST = 158; + CMS_F_CMS_ADD1_RECIPIENT_CERT = 101; + CMS_F_CMS_ADD1_SIGNER = 102; + CMS_F_CMS_ADD1_SIGNINGTIME = 103; + CMS_F_CMS_COMPRESS = 104; + CMS_F_CMS_COMPRESSEDDATA_CREATE = 105; + CMS_F_CMS_COMPRESSEDDATA_INIT_BIO = 106; + CMS_F_CMS_COPY_CONTENT = 107; + CMS_F_CMS_COPY_MESSAGEDIGEST = 108; + CMS_F_CMS_DATA = 109; + CMS_F_CMS_DATAFINAL = 110; + CMS_F_CMS_DATAINIT = 111; + CMS_F_CMS_DECRYPT = 112; + CMS_F_CMS_DECRYPT_SET1_KEY = 113; + CMS_F_CMS_DECRYPT_SET1_PASSWORD = 166; + CMS_F_CMS_DECRYPT_SET1_PKEY = 114; + CMS_F_CMS_DIGESTALGORITHM_FIND_CTX = 115; + CMS_F_CMS_DIGESTALGORITHM_INIT_BIO = 116; + CMS_F_CMS_DIGESTEDDATA_DO_FINAL = 117; + CMS_F_CMS_DIGEST_VERIFY = 118; + CMS_F_CMS_ENCODE_RECEIPT = 161; + CMS_F_CMS_ENCRYPT = 119; + CMS_F_CMS_ENCRYPTEDCONTENT_INIT = 179; + CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO = 120; + CMS_F_CMS_ENCRYPTEDDATA_DECRYPT = 121; + CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT = 122; + CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY = 123; + CMS_F_CMS_ENVELOPEDDATA_CREATE = 124; + CMS_F_CMS_ENVELOPEDDATA_INIT_BIO = 125; + CMS_F_CMS_ENVELOPED_DATA_INIT = 126; + CMS_F_CMS_ENV_ASN1_CTRL = 171; + CMS_F_CMS_FINAL = 127; + CMS_F_CMS_GET0_CERTIFICATE_CHOICES = 128; + CMS_F_CMS_GET0_CONTENT = 129; + CMS_F_CMS_GET0_ECONTENT_TYPE = 130; + CMS_F_CMS_GET0_ENVELOPED = 131; + CMS_F_CMS_GET0_REVOCATION_CHOICES = 132; + CMS_F_CMS_GET0_SIGNED = 133; + CMS_F_CMS_MSGSIGDIGEST_ADD1 = 162; + CMS_F_CMS_RECEIPTREQUEST_CREATE0 = 159; + CMS_F_CMS_RECEIPT_VERIFY = 160; + CMS_F_CMS_RECIPIENTINFO_DECRYPT = 134; + CMS_F_CMS_RECIPIENTINFO_ENCRYPT = 169; + CMS_F_CMS_RECIPIENTINFO_KARI_ENCRYPT = 178; + CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ALG = 175; + CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ORIG_ID = 173; + CMS_F_CMS_RECIPIENTINFO_KARI_GET0_REKS = 172; + CMS_F_CMS_RECIPIENTINFO_KARI_ORIG_ID_CMP = 174; + CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT = 135; + CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT = 136; + CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID = 137; + CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP = 138; + CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP = 139; + CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT = 140; + CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT = 141; + CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS = 142; + CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID = 143; + CMS_F_CMS_RECIPIENTINFO_PWRI_CRYPT = 167; + CMS_F_CMS_RECIPIENTINFO_SET0_KEY = 144; + CMS_F_CMS_RECIPIENTINFO_SET0_PASSWORD = 168; + CMS_F_CMS_RECIPIENTINFO_SET0_PKEY = 145; + CMS_F_CMS_SD_ASN1_CTRL = 170; + CMS_F_CMS_SET1_IAS = 176; + CMS_F_CMS_SET1_KEYID = 177; + CMS_F_CMS_SET1_SIGNERIDENTIFIER = 146; + CMS_F_CMS_SET_DETACHED = 147; + CMS_F_CMS_SIGN = 148; + CMS_F_CMS_SIGNED_DATA_INIT = 149; + CMS_F_CMS_SIGNERINFO_CONTENT_SIGN = 150; + CMS_F_CMS_SIGNERINFO_SIGN = 151; + CMS_F_CMS_SIGNERINFO_VERIFY = 152; + CMS_F_CMS_SIGNERINFO_VERIFY_CERT = 153; + CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT = 154; + CMS_F_CMS_SIGN_RECEIPT = 163; + CMS_F_CMS_SI_CHECK_ATTRIBUTES = 183; + CMS_F_CMS_STREAM = 155; + CMS_F_CMS_UNCOMPRESS = 156; + CMS_F_CMS_VERIFY = 157; + CMS_F_KEK_UNWRAP_KEY = 180; + + // + // CMS reason codes. + // + CMS_R_ADD_SIGNER_ERROR = 99; + CMS_R_ATTRIBUTE_ERROR = 161; + CMS_R_CERTIFICATE_ALREADY_PRESENT = 175; + CMS_R_CERTIFICATE_HAS_NO_KEYID = 160; + CMS_R_CERTIFICATE_VERIFY_ERROR = 100; + CMS_R_CIPHER_INITIALISATION_ERROR = 101; + CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR = 102; + CMS_R_CMS_DATAFINAL_ERROR = 103; + CMS_R_CMS_LIB = 104; + CMS_R_CONTENTIDENTIFIER_MISMATCH = 170; + CMS_R_CONTENT_NOT_FOUND = 105; + CMS_R_CONTENT_TYPE_MISMATCH = 171; + CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA = 106; + CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA = 107; + CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA = 108; + CMS_R_CONTENT_VERIFY_ERROR = 109; + CMS_R_CTRL_ERROR = 110; + CMS_R_CTRL_FAILURE = 111; + CMS_R_DECRYPT_ERROR = 112; + CMS_R_ERROR_GETTING_PUBLIC_KEY = 113; + CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE = 114; + CMS_R_ERROR_SETTING_KEY = 115; + CMS_R_ERROR_SETTING_RECIPIENTINFO = 116; + CMS_R_INVALID_ENCRYPTED_KEY_LENGTH = 117; + CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER = 176; + CMS_R_INVALID_KEY_LENGTH = 118; + CMS_R_MD_BIO_INIT_ERROR = 119; + CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH = 120; + CMS_R_MESSAGEDIGEST_WRONG_LENGTH = 121; + CMS_R_MSGSIGDIGEST_ERROR = 172; + CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE = 162; + CMS_R_MSGSIGDIGEST_WRONG_LENGTH = 163; + CMS_R_NEED_ONE_SIGNER = 164; + CMS_R_NOT_A_SIGNED_RECEIPT = 165; + CMS_R_NOT_ENCRYPTED_DATA = 122; + CMS_R_NOT_KEK = 123; + CMS_R_NOT_KEY_AGREEMENT = 181; + CMS_R_NOT_KEY_TRANSPORT = 124; + CMS_R_NOT_PWRI = 177; + CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE = 125; + CMS_R_NO_CIPHER = 126; + CMS_R_NO_CONTENT = 127; + CMS_R_NO_CONTENT_TYPE = 173; + CMS_R_NO_DEFAULT_DIGEST = 128; + CMS_R_NO_DIGEST_SET = 129; + CMS_R_NO_KEY = 130; + CMS_R_NO_KEY_OR_CERT = 174; + CMS_R_NO_MATCHING_DIGEST = 131; + CMS_R_NO_MATCHING_RECIPIENT = 132; + CMS_R_NO_MATCHING_SIGNATURE = 166; + CMS_R_NO_MSGSIGDIGEST = 167; + CMS_R_NO_PASSWORD = 178; + CMS_R_NO_PRIVATE_KEY = 133; + CMS_R_NO_PUBLIC_KEY = 134; + CMS_R_NO_RECEIPT_REQUEST = 168; + CMS_R_NO_SIGNERS = 135; + CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE = 136; + CMS_R_RECEIPT_DECODE_ERROR = 169; + CMS_R_RECIPIENT_ERROR = 137; + CMS_R_SIGNER_CERTIFICATE_NOT_FOUND = 138; + CMS_R_SIGNFINAL_ERROR = 139; + CMS_R_SMIME_TEXT_ERROR = 140; + CMS_R_STORE_INIT_ERROR = 141; + CMS_R_TYPE_NOT_COMPRESSED_DATA = 142; + CMS_R_TYPE_NOT_DATA = 143; + CMS_R_TYPE_NOT_DIGESTED_DATA = 144; + CMS_R_TYPE_NOT_ENCRYPTED_DATA = 145; + CMS_R_TYPE_NOT_ENVELOPED_DATA = 146; + CMS_R_UNABLE_TO_FINALIZE_CONTEXT = 147; + CMS_R_UNKNOWN_CIPHER = 148; + CMS_R_UNKNOWN_DIGEST_ALGORITHM = 149; + CMS_R_UNKNOWN_ID = 150; + CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM = 151; + CMS_R_UNSUPPORTED_CONTENT_TYPE = 152; + CMS_R_UNSUPPORTED_KEK_ALGORITHM = 153; + CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM = 179; + CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE = 155; + CMS_R_UNSUPPORTED_RECIPIENT_TYPE = 154; + CMS_R_UNSUPPORTED_TYPE = 156; + CMS_R_UNWRAP_ERROR = 157; + CMS_R_UNWRAP_FAILURE = 180; + CMS_R_VERIFICATION_FAILURE = 158; + CMS_R_WRAP_ERROR = 159; + + function ERR_load_CMS_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_comp.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_comp.h2pas new file mode 100644 index 000000000..0aac23e4b --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_comp.h2pas @@ -0,0 +1,53 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_comp; + +interface + +// Headers for OpenSSL 1.1.1 +// comp.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_ossl_typ; + + function COMP_CTX_new(meth: PCOMP_METHOD): PCOMP_CTX; + function COMP_CTX_get_method(const ctx: PCOMP_CTX): PCOMP_METHOD; + function COMP_CTX_get_type(const comp: PCOMP_CTX): TIdC_INT; + function COMP_get_type(const meth: PCOMP_METHOD): TIdC_INT; + function COMP_get_name(const meth: PCOMP_METHOD): PIdAnsiChar; + procedure COMP_CTX_free(ctx: PCOMP_CTX); + + function COMP_compress_block(ctx: PCOMP_CTX; out_: PByte; olen: TIdC_INT; in_: PByte; ilen: TIdC_INT): TIdC_INT; + function COMP_expand_block(ctx: PCOMP_CTX; out_: PByte; olen: TIdC_INT; in_: PByte; ilen: TIdC_INT): TIdC_INT; + + function COMP_zlib: PCOMP_METHOD; + + function BIO_f_zlib: PBIO_METHOD; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_comperr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_comperr.h2pas new file mode 100644 index 000000000..680c1b522 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_comperr.h2pas @@ -0,0 +1,56 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_comperr; + +interface + +// Headers for OpenSSL 1.1.1 +// comperr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const +///* +// * COMP function codes. +// */ + COMP_F_BIO_ZLIB_FLUSH = 99; + COMP_F_BIO_ZLIB_NEW = 100; + COMP_F_BIO_ZLIB_READ = 101; + COMP_F_BIO_ZLIB_WRITE = 102; + COMP_F_COMP_CTX_NEW = 103; + +///* +// * COMP reason codes. +// */ + COMP_R_ZLIB_DEFLATE_ERROR = 99; + COMP_R_ZLIB_INFLATE_ERROR = 100; + COMP_R_ZLIB_NOT_SUPPORTED = 101; + + function ERR_load_COMP_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conf.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conf.h2pas new file mode 100644 index 000000000..c1674530d --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conf.h2pas @@ -0,0 +1,177 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_conf; + +interface + +// Headers for OpenSSL 1.1.1 +// conf.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_ossl_typ; + +type + CONF_parse_list_list_cb = function (const elem: PAnsiChar; len: TIdC_INT; usr: Pointer): TIdC_INT; + + CONF_VALUE = record + section: PAnsiChar; + name: PAnsiChar; + value: PAnsiChar; + end; + PCONF_VALUE = ^CONF_VALUE; + +//DEFINE_STACK_OF(CONF_VALUE) +//DEFINE_LHASH_OF(CONF_VALUE); + + conf_st = type Pointer; + conf_method_st = type Pointer; + CONF_METHOD = conf_method_st; + PCONF_METHOD = ^conf_method_st; + CONF = conf_st; + PCONF = ^CONF; + + (*conf_method_st = record + const char *name; + CONF *(*create) (CONF_METHOD *meth); + int (*init) (CONF *conf); + int (*destroy) (CONF *conf); + int (*destroy_data) (CONF *conf); + int (*load_bio) (CONF *conf, BIO *bp, long *eline); + int (*dump) (const CONF *conf, BIO *bp); + int (*is_number) (const CONF *conf, char c); + int (*to_int) (const CONF *conf, char c); + int (*load) (CONF *conf, const char *name, long *eline); + end; *) + +//* Module definitions */ + + conf_imodule_st = type Pointer; + CONF_IMODULE = conf_imodule_st; + PCONF_IMODULE = ^CONF_IMODULE; + conf_module_st = type Pointer; + CONF_MODULE = conf_module_st; + PCONF_MODULE = ^CONF_MODULE; + +//DEFINE_STACK_OF(CONF_MODULE) +//DEFINE_STACK_OF(CONF_IMODULE) + +//* DSO module function typedefs */ + conf_init_func = function(md: PCONF_IMODULE; const cnf: PCONF): TIdC_INT; + conf_finish_func = procedure(md: PCONF_IMODULE); + +const + CONF_MFLAGS_IGNORE_ERRORS = $1; + CONF_MFLAGS_IGNORE_RETURN_CODES = $2; + CONF_MFLAGS_SILENT = $4; + CONF_MFLAGS_NO_DSO = $8; + CONF_MFLAGS_IGNORE_MISSING_FILE = $10; + CONF_MFLAGS_DEFAULT_SECTION = $20; + + function CONF_set_default_method(meth: PCONF_METHOD): TIdC_INT; +// (* +// void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); +// LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, long *eline); +// {$ifndef OPENSSL_NO_STDIO} +// LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, long *eline); +// {$endif} +// LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, +// long *eline); +// STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, +// const char *section); +// char *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group, +// const char *name); +// long CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group, +// const char *name); +// void CONF_free(LHASH_OF(CONF_VALUE) *conf); +// #ifndef OPENSSL_NO_STDIO +// int CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out); +// #endif +// int CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out); +// +// DEPRECATEDIN_1_1_0(void OPENSSL_config(const char *config_name)) +// +// #if OPENSSL_API_COMPAT < 0x10100000L +// # define OPENSSL_no_config() \ +// OPENSSL_init_crypto(OPENSSL_INIT_NO_LOAD_CONFIG, NULL) +// #endif +// *) + + (* + * New conf code. The semantics are different from the functions above. If + * that wasn't the case, the above functions would have been replaced + *) + + //type Doppelt??? + // conf_st = record + // CONF_METHOD *meth; + // void *meth_data; + // LHASH_OF(CONF_VALUE) *data; + // end; + + function NCONF_new(meth: PCONF_METHOD): PCONF; + function NCONF_default: PCONF_METHOD; + function NCONF_WIN32: PCONF_METHOD; + procedure NCONF_free(conf: PCONF); + procedure NCONF_free_data(conf: PCONF); + + function NCONF_load(conf: PCONF; const file_: PAnsiChar; eline: PIdC_LONG): TIdC_INT; + function NCONF_load_bio(conf: PCONF; bp: PBIO; eline: PIdC_LONG): TIdC_INT; + //STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, + // const char *section); + function NCONF_get_string(const conf: PCONF; const group: PAnsiChar; const name: PAnsiChar): PAnsiChar; + function NCONF_get_number_e(const conf: PCONF; const group: PAnsiChar; const name: PAnsiChar; result: PIdC_LONG): TIdC_INT; + function NCONF_dump_bio(const conf: PCONf; out_: PBIO): TIdC_INT; + + //#define NCONF_get_number(c,g,n,r) NCONF_get_number_e(c,g,n,r) + + //* Module functions */ + + function CONF_modules_load(const cnf: PCONF; const appname: PAnsiChar; flags: TIdC_ULONG): TIdC_INT; + function CONF_modules_load_file(const filename: PAnsiChar; const appname: PAnsiChar; flags: TIdC_ULONG): TIdC_INT; + + procedure CONF_modules_unload(all: TIdC_INT); + procedure CONF_modules_finish; + function CONF_module_add(const name: PAnsiChar; ifunc: conf_init_func; ffunc: conf_finish_func): TIdC_INT; + + //const char *CONF_imodule_get_name(const CONF_IMODULE *md); + //const char *CONF_imodule_get_value(const CONF_IMODULE *md); + function CONF_imodule_get_usr_data(const md: PCONF_IMODULE): Pointer; + procedure CONF_imodule_set_usr_data(md: PCONF_IMODULE; usr_data: Pointer); + function CONF_imodule_get_module(const md: PCONF_IMODULE): PCONF_MODULE; + function CONF_imodule_get_flags(const md: PCONF_IMODULE): TIdC_ULONG; + procedure CONF_imodule_set_flags(md: PCONF_IMODULE; flags: TIdC_ULONG); + function CONF_module_get_usr_data(pmod: PCONF_MODULE): Pointer; + procedure CONF_module_set_usr_data(pmod: PCONF_MODULE; usr_data: Pointer); + + function CONF_get1_default_config_file: PAnsiChar; + function CONF_parse_list(const list: PAnsiChar; sep: TIdC_INT; nospc: TIdC_INT; list_cb: CONF_parse_list_list_cb; arg: Pointer): TIdC_INT; + + procedure OPENSSL_load_builtin_modules; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conf_api.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conf_api.h2pas new file mode 100644 index 000000000..e19156903 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conf_api.h2pas @@ -0,0 +1,54 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_conf_api; + +interface + +// Headers for OpenSSL 1.1.1 +// conf_api.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_conf; + + //* Up until OpenSSL 0.9.5a, this was new_section */ + function _CONF_new_section(conf: PCONF; const section: PAnsiChar): PCONF_VALUE; + //* Up until OpenSSL 0.9.5a, this was get_section */ + function _CONF_get_section(const conf: PCONF; const section: PAnsiChar): PCONF_VALUE; + //* Up until OpenSSL 0.9.5a, this was CONF_get_section */ + //STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, + // const char *section); + + function _CONF_add_string(conf: PCONF; section: PCONF_VALUE; value: PCONF_VALUE): TIdC_INT; + function _CONF_get_string(const conf: PCONF; const section: PAnsiChar; const name: PAnsiChar): PAnsiChar; + function _CONF_get_number(const conf: PCONF; const section: PAnsiChar; const name: PAnsiChar): TIdC_LONG; + + function _CONF_new_data(conf: PCONF): TIdC_INT; + procedure _CONF_free_data(conf: PCONF); + + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conferr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conferr.h2pas new file mode 100644 index 000000000..5b577f0ec --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_conferr.h2pas @@ -0,0 +1,93 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_conferr; + +interface + +// Headers for OpenSSL 1.1.1 +// conferr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + ///* + // * CONF function codes. + // */ + CONF_F_CONF_DUMP_FP = 104; + CONF_F_CONF_LOAD = 100; + CONF_F_CONF_LOAD_FP = 103; + CONF_F_CONF_PARSE_LIST = 119; + CONF_F_DEF_LOAD = 120; + CONF_F_DEF_LOAD_BIO = 121; + CONF_F_GET_NEXT_FILE = 107; + CONF_F_MODULE_ADD = 122; + CONF_F_MODULE_INIT = 115; + CONF_F_MODULE_LOAD_DSO = 117; + CONF_F_MODULE_RUN = 118; + CONF_F_NCONF_DUMP_BIO = 105; + CONF_F_NCONF_DUMP_FP = 106; + CONF_F_NCONF_GET_NUMBER_E = 112; + CONF_F_NCONF_GET_SECTION = 108; + CONF_F_NCONF_GET_STRING = 109; + CONF_F_NCONF_LOAD = 113; + CONF_F_NCONF_LOAD_BIO = 110; + CONF_F_NCONF_LOAD_FP = 114; + CONF_F_NCONF_NEW = 111; + CONF_F_PROCESS_INCLUDE = 116; + CONF_F_SSL_MODULE_INIT = 123; + CONF_F_STR_COPY = 101; + + ///* + // * CONF reason codes. + // */ + CONF_R_ERROR_LOADING_DSO = 110; + CONF_R_LIST_CANNOT_BE_NULL = 115; + CONF_R_MISSING_CLOSE_SQUARE_BRACKET = 100; + CONF_R_MISSING_EQUAL_SIGN = 101; + CONF_R_MISSING_INIT_FUNCTION = 112; + CONF_R_MODULE_INITIALIZATION_ERROR = 109; + CONF_R_NO_CLOSE_BRACE = 102; + CONF_R_NO_CONF = 105; + CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE = 106; + CONF_R_NO_SECTION = 107; + CONF_R_NO_SUCH_FILE = 114; + CONF_R_NO_VALUE = 108; + CONF_R_NUMBER_TOO_LARGE = 121; + CONF_R_RECURSIVE_DIRECTORY_INCLUDE = 111; + CONF_R_SSL_COMMAND_SECTION_EMPTY = 117; + CONF_R_SSL_COMMAND_SECTION_NOT_FOUND = 118; + CONF_R_SSL_SECTION_EMPTY = 119; + CONF_R_SSL_SECTION_NOT_FOUND = 120; + CONF_R_UNABLE_TO_CREATE_NEW_SECTION = 103; + CONF_R_UNKNOWN_MODULE_NAME = 113; + CONF_R_VARIABLE_EXPANSION_TOO_LONG = 116; + CONF_R_VARIABLE_HAS_NO_VALUE = 104; + + function ERR_load_CONF_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_crypto.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_crypto.h2pas new file mode 100644 index 000000000..55d3b39e2 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_crypto.h2pas @@ -0,0 +1,504 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_crypto; + +interface + +// Headers for OpenSSL 1.1.1 +// crypto.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_evp, + {$IFDEF VCL_XE3_OR_ABOVE}System.Types{$ELSE}Types{$ENDIF}; + +{$MINENUMSIZE 4} + +const + CRYPTO_MEM_CHECK_OFF = $0; //* Control only */ + CRYPTO_MEM_CHECK_ON = $1; //* Control and mode bit */ + CRYPTO_MEM_CHECK_ENABLE = $2; //* Control and mode bit */ + CRYPTO_MEM_CHECK_DISABLE = $3; //* Control only */ + + CRYPTO_EX_INDEX_SSL = 0; + CRYPTO_EX_INDEX_SSL_CTX = 1; + CRYPTO_EX_INDEX_SSL_SESSION = 2; + CRYPTO_EX_INDEX_X509 = 3; + CRYPTO_EX_INDEX_X509_STORE = 4; + CRYPTO_EX_INDEX_X509_STORE_CTX = 5; + CRYPTO_EX_INDEX_DH = 6; + CRYPTO_EX_INDEX_DSA = 7; + CRYPTO_EX_INDEX_EC_KEY = 8; + CRYPTO_EX_INDEX_RSA = 9; + CRYPTO_EX_INDEX_ENGINE = 10; + CRYPTO_EX_INDEX_UI = 11; + CRYPTO_EX_INDEX_BIO = 12; + CRYPTO_EX_INDEX_APP = 13; + CRYPTO_EX_INDEX_UI_METHOD = 14; + CRYPTO_EX_INDEX_DRBG = 15; + CRYPTO_EX_INDEX__COUNT = 16; + + // Added _CONST to prevent nameclashes + OPENSSL_VERSION_CONST = 0; + OPENSSL_CFLAGS = 1; + OPENSSL_BUILT_ON = 2; + OPENSSL_PLATFORM = 3; + OPENSSL_DIR = 4; + OPENSSL_ENGINES_DIR = 5; + SSLEAY_VERSION_CONST = OPENSSL_VERSION_CONST; + + (* + * These defines where used in combination with the old locking callbacks, + * they are not called anymore, but old code that's not called might still + * use them. + *) + CRYPTO_LOCK = 1; + CRYPTO_UNLOCK = 2; + CRYPTO_READ = 4; + CRYPTO_WRITE = 8; + + (* Standard initialisation options *) + OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS = TIdC_Long($00000001); + OPENSSL_INIT_LOAD_CRYPTO_STRINGS = TIdC_Long($00000002); + OPENSSL_INIT_ADD_ALL_CIPHERS = TIdC_Long($00000004); + OPENSSL_INIT_ADD_ALL_DIGESTS = TIdC_Long($00000008); + OPENSSL_INIT_NO_ADD_ALL_CIPHERS = TIdC_Long($00000010); + OPENSSL_INIT_NO_ADD_ALL_DIGESTS = TIdC_Long($00000020); + OPENSSL_INIT_LOAD_CONFIG = TIdC_Long($00000040); + OPENSSL_INIT_NO_LOAD_CONFIG = TIdC_Long($00000080); + OPENSSL_INIT_ASYNC = TIdC_Long($00000100); + OPENSSL_INIT_ENGINE_RDRAND = TIdC_Long($00000200); + OPENSSL_INIT_ENGINE_DYNAMIC = TIdC_Long($00000400); + OPENSSL_INIT_ENGINE_OPENSSL = TIdC_Long($00000800); + OPENSSL_INIT_ENGINE_CRYPTODEV = TIdC_Long($00001000); + OPENSSL_INIT_ENGINE_CAPI = TIdC_Long($00002000); + OPENSSL_INIT_ENGINE_PADLOCK = TIdC_Long($00004000); + OPENSSL_INIT_ENGINE_AFALG = TIdC_Long($00008000); + (* OPENSSL_INIT_ZLIB = TIdC_Long($00010000); *) + OPENSSL_INIT_ATFORK = TIdC_Long(00020000); + (* OPENSSL_INIT_BASE_ONLY = TIdC_Long(00040000); *) + OPENSSL_INIT_NO_ATEXIT = TIdC_Long(00080000); + (* OPENSSL_INIT flag range 0xfff00000 reserved for OPENSSL_init_ssl() *) + (* Max OPENSSL_INIT flag value is 0x80000000 *) + + (* openssl and dasync not counted as builtin *) + OPENSSL_INIT_ENGINE_ALL_BUILTIN = OPENSSL_INIT_ENGINE_RDRAND + or OPENSSL_INIT_ENGINE_DYNAMIC or OPENSSL_INIT_ENGINE_CRYPTODEV + or OPENSSL_INIT_ENGINE_CAPI or OPENSSL_INIT_ENGINE_PADLOCK; + + CRYPTO_ONCE_STATIC_INIT = 0; + +type + CRYPTO_THREADID = record {1.0.x only} + ptr : Pointer; + val : TIdC_ULONG; + end; + PCRYPTO_THREADID = ^CRYPTO_THREADID; + CRYPTO_RWLOCK = type Pointer; + PCRYPTO_RWLOCK = ^CRYPTO_RWLOCK; + //crypto_ex_data_st = record + // sk: PStackOfVoid; + //end; + //DEFINE_STACK_OF(void) + + Tthreadid_func = procedure (id : PCRYPTO_THREADID) cdecl; + + + // CRYPTO_EX_new = procedure(parent: Pointer; ptr: Pointer; CRYPTO_EX_DATA *ad; idx: TIdC_INT; argl: TIdC_LONG; argp: Pointer); + // CRYPTO_EX_free = procedure(void *parent, void *ptr, CRYPTO_EX_DATA *ad, + // int idx, long argl, void *argp); + //typedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from, + // void *from_d, int idx, long argl, void *argp); + //__owur int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp, + // CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, + // CRYPTO_EX_free *free_func); + + CRYPTO_mem_leaks_cb_cb = function(const str: PIdAnsiChar; len: TIdC_SIZET; u: Pointer): TIdC_INT; cdecl; + CRYPTO_THREAD_run_once_init = procedure; cdecl; + + CRYPTO_THREAD_LOCAL = type DWORD; + PCRYPTO_THREAD_LOCAL = ^CRYPTO_THREAD_LOCAL; + CRYPTO_THREAD_ID = type DWORD; + CRYPTO_ONCE = type TIdC_LONG; + PCRYPTO_ONCE = ^CRYPTO_ONCE; + + CRYPTO_set_mem_functions_m = function(size: TIdC_SIZET; const filename: PIdAnsiChar; linenumber: TIdC_INT): Pointer; cdecl; + CRYPTO_set_mem_functions_r = function(buffer: Pointer; size: TIdC_SIZET; const filename: PIdAnsiChar; linenumber: TIdC_INT): Pointer; cdecl; + CRYPTO_set_mem_functions_f = procedure(buffer: Pointer; const filename: PIdAnsiChar; const linenumber: TIdC_INT); cdecl; + TIdSslIdCallback = function: TIdC_ULONG; cdecl; + TIdSslLockingCallback = procedure (mode, n : TIdC_INT; Afile : PIdAnsiChar; line : TIdC_INT); cdecl; + +function OPENSSL_malloc(num: TIdC_SIZET): Pointer; {removed 1.0.0} +function OPENSSL_zalloc(num: TIdC_SIZET): Pointer; {removed 1.0.0} +function OPENSSL_realloc(addr: Pointer; num: TIdC_SIZET): Pointer; {removed 1.0.0} +function OPENSSL_clear_realloc(addr: Pointer; old_num: TIdC_SIZET; num: TIdC_SIZET): Pointer; {removed 1.0.0} +procedure OPENSSL_clear_free(addr: Pointer; num: TIdC_SIZET); {removed 1.0.0} +procedure OPENSSL_free(addr: Pointer); {removed 1.0.0} +function OPENSSL_memdup(const str: Pointer; s: TIdC_SIZET): Pointer; {removed 1.0.0} +function OPENSSL_strdup(const str: PIdAnsiChar): PIdAnsiChar; {removed 1.0.0} +function OPENSSL_strndup(const str: PIdAnsiChar; n: TIdC_SIZET): PIdAnsiChar; {removed 1.0.0} +function OPENSSL_secure_malloc(num: TIdC_SIZET): Pointer; {removed 1.0.0} +function OPENSSL_secure_zalloc(num: TIdC_SIZET): Pointer; {removed 1.0.0} +procedure OPENSSL_secure_free(addr: Pointer); {removed 1.0.0} +procedure OPENSSL_secure_clear_free(addr: Pointer; num: TIdC_SIZET); {removed 1.0.0} +function OPENSSL_secure_actual_size(ptr: Pointer): TIdC_SIZET; {removed 1.0.0} + + function CRYPTO_THREAD_lock_new: PCRYPTO_RWLOCK; {introduced 1.1.0} + function CRYPTO_THREAD_read_lock(lock: PCRYPTO_RWLOCK): TIdC_INT; {introduced 1.1.0} + function CRYPTO_THREAD_write_lock(lock: PCRYPTO_RWLOCK): TIdC_INT; {introduced 1.1.0} + function CRYPTO_THREAD_unlock(lock: PCRYPTO_RWLOCK): TIdC_INT; {introduced 1.1.0} + procedure CRYPTO_THREAD_lock_free(lock: PCRYPTO_RWLOCK); {introduced 1.1.0} + + function CRYPTO_atomic_add(val: PIdC_INT; amount: TIdC_INT; ret: PIdC_INT; lock: PCRYPTO_RWLOCK): TIdC_INT; {introduced 1.1.0} + + function CRYPTO_mem_ctrl(mode: TIdC_INT): TIdC_INT; {removed 3.0.0} + + function OPENSSL_strlcpy(dst: PIdAnsiChar; const src: PIdAnsiChar; siz: TIdC_SIZET): TIdC_SIZET; {introduced 1.1.0} + function OPENSSL_strlcat(dst: PIdAnsiChar; const src: PIdAnsiChar; siz: TIdC_SIZET): TIdC_SIZET; {introduced 1.1.0} + function OPENSSL_strnlen(const str: PIdAnsiChar; maxlen: TIdC_SIZET): TIdC_SIZET; {introduced 1.1.0} + function OPENSSL_buf2hexstr(const buffer: PByte; len: TIdC_LONG): PIdAnsiChar; {introduced 1.1.0} + function OPENSSL_hexstr2buf(const str: PIdAnsiChar; len: PIdC_LONG): PByte; {introduced 1.1.0} + function OPENSSL_hexchar2int(c: Byte): TIdC_INT; {introduced 1.1.0} + + // # define OPENSSL_MALLOC_MAX_NELEMS(type) (((1U<<(sizeof(int)*8-1))-1)/sizeof(type)) + + function OpenSSL_version_num: TIdC_ULONG; {introduced 1.1.0} + function OpenSSL_version(type_: TIdC_INT): PIdAnsiChar; {introduced 1.1.0} + + function OPENSSL_issetugid: TIdC_INT; + + (* No longer use an index. *) + //function CRYPTO_free_ex_index(class_index: TIdC_INT; idx: TIdC_INT): TIdC_INT; + + (* + * Initialise/duplicate/free CRYPTO_EX_DATA variables corresponding to a + * given class (invokes whatever per-class callbacks are applicable) + *) + function CRYPTO_new_ex_data(class_index: TIdC_INT; obj: Pointer; ad: PCRYPTO_EX_DATA): TIdC_INT; + function CRYPTO_dup_ex_data(class_index: TIdC_INT; to_: PCRYPTO_EX_DATA; const from: PCRYPTO_EX_DATA): TIdC_INT; + + procedure CRYPTO_free_ex_data(class_index: TIdC_INT; obj: Pointer; ad: PCRYPTO_EX_DATA); + + (* + * Get/set data in a CRYPTO_EX_DATA variable corresponding to a particular + * index (relative to the class type involved) + *) + function CRYPTO_set_ex_data(ad: PCRYPTO_EX_DATA; idx: TIdC_INT; val: Pointer): TIdC_INT; + function CRYPTO_get_ex_data(const ad: PCRYPTO_EX_DATA; idx: TIdC_INT): Pointer; + + ///* + // * The old locking functions have been removed completely without compatibility + // * macros. This is because the old functions either could not properly report + // * errors, or the returned error values were not clearly documented. + // * Replacing the locking functions with no-ops would cause race condition + // * issues in the affected applications. It is far better for them to fail at + // * compile time. + // * On the other hand, the locking callbacks are no longer used. Consequently, + // * the callback management functions can be safely replaced with no-op macros. + // */ + //# define CRYPTO_num_locks() (1) + function CRYPTO_num_locks: TIdC_INT; {removed 1.1.0} + //# define CRYPTO_set_locking_callback(func) + //# define CRYPTO_get_locking_callback() (NULL) + //# define CRYPTO_set_add_lock_callback(func) + //# define CRYPTO_get_add_lock_callback() (NULL) + procedure CRYPTO_set_locking_callback(func: TIdSslLockingCallback); {removed 1.1.0} + + ///* Only use CRYPTO_THREADID_set_[numeric|pointer]() within callbacks */ + //# define CRYPTO_THREADID_set_numeric(id, val) + procedure CRYPTO_THREADID_set_numeric(id : PCRYPTO_THREADID; val: TIdC_ULONG); {removed 1.1.0} + //# define CRYPTO_THREADID_set_pointer(id, ptr) + //# define CRYPTO_THREADID_set_callback(threadid_func) (0) + procedure CRYPTO_THREADID_set_callback(threadid_func: Tthreadid_func); {removed 1.1.0} + //# define CRYPTO_THREADID_get_callback() (NULL) + //# define CRYPTO_THREADID_current(id) + //# define CRYPTO_THREADID_cmp(a, b) (-1) + //# define CRYPTO_THREADID_cpy(dest, src) + //# define CRYPTO_THREADID_hash(id) (0UL) + + procedure CRYPTO_set_id_callback(func: TIdSslIdCallback); {removed 1.1.0} + // + //# define CRYPTO_set_dynlock_create_callback(dyn_create_function) + //# define CRYPTO_set_dynlock_lock_callback(dyn_lock_function) + //# define CRYPTO_set_dynlock_destroy_callback(dyn_destroy_function) + //# define CRYPTO_get_dynlock_create_callback() (NULL) + //# define CRYPTO_get_dynlock_lock_callback() (NULL) + //# define CRYPTO_get_dynlock_destroy_callback() (NULL) + //# endif /* OPENSSL_API_COMPAT < 0x10100000L */ + + function CRYPTO_set_mem_functions(m: CRYPTO_set_mem_functions_m; r: CRYPTO_set_mem_functions_r; f: CRYPTO_set_mem_functions_f): TIdC_INT; + function CRYPTO_set_mem_debug(flag: TIdC_INT): TIdC_INT; {introduced 1.1.0 removed 3.0.0} + //void CRYPTO_get_mem_functions( + // void *(**m) (TIdC_SIZET, const char *, int), + // void *(**r) (void *, TIdC_SIZET, const char *, int), + // void (**f) (void *, const char *, int)); + + function CRYPTO_malloc(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; + function CRYPTO_zalloc(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; {introduced 1.1.0} + function CRYPTO_memdup(const str: Pointer; siz: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; {introduced 1.1.0} + function CRYPTO_strdup(const str: PIdAnsiChar; const file_: PIdAnsiChar; line: TIdC_INT): PIdAnsiChar; + function CRYPTO_strndup(const str: PIdAnsiChar; s: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): PIdAnsiChar; {introduced 1.1.0} + procedure CRYPTO_free(ptr: Pointer; const file_: PIdAnsiChar; line: TIdC_INT); + procedure CRYPTO_clear_free(ptr: Pointer; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT); {introduced 1.1.0} + function CRYPTO_realloc(addr: Pointer; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; + function CRYPTO_clear_realloc(addr: Pointer; old_num: TIdC_SIZET; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; {introduced 1.1.0} + + function CRYPTO_secure_malloc_init(sz: TIdC_SIZET; minsize: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function CRYPTO_secure_malloc_done: TIdC_INT; {introduced 1.1.0} + function CRYPTO_secure_malloc(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; {introduced 1.1.0} + function CRYPTO_secure_zalloc(num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT): Pointer; {introduced 1.1.0} + procedure CRYPTO_secure_free(ptr: Pointer; const file_: PIdAnsiChar; line: TIdC_INT); {introduced 1.1.0} + procedure CRYPTO_secure_clear_free(ptr: Pointer; num: TIdC_SIZET; const file_: PIdAnsiChar; line: TIdC_INT); {introduced 1.1.0} + function CRYPTO_secure_allocated(const ptr: Pointer): TIdC_INT; {introduced 1.1.0} + function CRYPTO_secure_malloc_initialized: TIdC_INT; {introduced 1.1.0} + function CRYPTO_secure_actual_size(ptr: Pointer): TIdC_SIZET; {introduced 1.1.0} + function CRYPTO_secure_used: TIdC_SIZET; {introduced 1.1.0} + + procedure OPENSSL_cleanse(ptr: Pointer; len: TIdC_SIZET); + + (* debug libraries only *) +// function CRYPTO_mem_debug_push(const info: PIdAnsiChar; const file_: PIdAnsiChar; line: TIdC_INT): TIdC_INT; +// function CRYPTO_mem_debug_pop: TIdC_INT; +// procedure CRYPTO_get_alloc_counts(mcount: PIdC_INT; rcount: PIdC_INT; fcount: PIdC_INT); + + (* + * Debugging functions (enabled by CRYPTO_set_mem_debug(1)) + * The flag argument has the following significance: + * 0: called before the actual memory allocation has taken place + * 1: called after the actual memory allocation has taken place + *) + +// procedure CRYPTO_mem_debug_malloc(addr: Pointer; num: TIdC_SIZET; flag: TIdC_INT; const file_: PIdAnsiChar; line: TIdC_INT); +// procedure CRYPTO_mem_debug_realloc(addr1: Pointer; addr2: Pointer; num: TIdC_SIZET; flag: TIdC_INT; const file_: PIdAnsiChar; line: TIdC_INT); +// procedure CRYPTO_mem_debug_free(addr: Pointer; flag: TIdC_INT; const file_: PIdAnsiChar; line: TIdC_INT); + +// function CRYPTO_mem_leaks_cb(cb: CRYPTO_mem_leaks_cb_cb; u: Pointer): TIdC_INT; + +// function CRYPTO_mem_leaks_fp(&FILE: Pointer): TIdC_INT; +// function CRYPTO_mem_leaks(BIO: PBIO): TIdC_INT; + + //* die if we have to */ + //ossl_noreturn void OPENSSL_die(const char *assertion, const char *file, int line); + + //# define OPENSSL_assert(e) \ + // (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1)) + + function OPENSSL_isservice: TIdC_INT; + + function FIPS_mode: TIdC_INT; {removed 3.0.0} + function FIPS_mode_set(r: TIdC_INT): TIdC_INT; {removed 3.0.0} + + procedure OPENSSL_init; + + // struct tm *OPENSSL_gmtime(const TIdC_TIMET *timer, struct tm *result); + + //function OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec): TIdC_INT; + //function OPENSSL_gmtime_diff(int *pday, int *psec, const struct tm *from, const struct tm *to): TIdC_INT; + + (* + * CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. + * It takes an amount of time dependent on |len|, but independent of the + * contents of |a| and |b|. Unlike memcmp, it cannot be used to put elements + * into a defined order as the return value when a != b is undefined, other + * than to be non-zero. + *) + function CRYPTO_memcmp(const in_a: Pointer; const in_b: Pointer; len: TIdC_SIZET): TIdC_INT; + + (* Library initialisation functions *) + procedure OPENSSL_cleanup; {introduced 1.1.0} + function OPENSSL_init_crypto(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT; {introduced 1.1.0} + // int OPENSSL_atexit(void (*handler)(void)); + procedure OPENSSL_thread_stop; {introduced 1.1.0} + + (* Low-level control of initialization *) + function OPENSSL_INIT_new: POPENSSL_INIT_SETTINGS; {introduced 1.1.0} + //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, + // const char *config_appname); + procedure OPENSSL_INIT_free(settings: POPENSSL_INIT_SETTINGS); {introduced 1.1.0} + + function CRYPTO_THREAD_run_once(once: PCRYPTO_ONCE; init: CRYPTO_THREAD_run_once_init): TIdC_INT; {introduced 1.1.0} + + //type + // CRYPTO_THREAD_init_local_cleanup = procedure(v1: Pointer); + // + //function CRYPTO_THREAD_init_local(key: PCRYPTO_THREAD_LOCAL; cleanup: CRYPTO_THREAD_init_local_cleanup): TIdC_INT; + function CRYPTO_THREAD_get_local(key: PCRYPTO_THREAD_LOCAL): Pointer; {introduced 1.1.0} + function CRYPTO_THREAD_set_local(key: PCRYPTO_THREAD_LOCAL; val: Pointer): TIdC_INT; {introduced 1.1.0} + function CRYPTO_THREAD_cleanup_local(key: PCRYPTO_THREAD_LOCAL): TidC_INT; {introduced 1.1.0} + + function CRYPTO_THREAD_get_current_id: CRYPTO_THREAD_ID; {introduced 1.1.0} + function CRYPTO_THREAD_compare_id(a: CRYPTO_THREAD_ID; b: CRYPTO_THREAD_ID): TIdC_INT; {introduced 1.1.0} + + function SSLeay_version(type_ : TIdC_INT) : PIdAnsiChar; {removed 1.1.0} + function SSLeay: TIdC_ULONG; {removed 1.1.0} + +implementation + +// OPENSSL_FILE = __FILE__ = C preprocessor macro +// OPENSSL_LINE = __LINE__ = C preprocessor macro +// FPC hase an equivalent with {$I %FILE%} and {$I %LINENUM%}, see https://www.freepascal.org/docs-html/prog/progsu41.html#x47-460001.1.41 +// Delphi has nothing :( + +//# define OPENSSL_malloc(num) CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_malloc(num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_malloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_zalloc(num) CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_zalloc(num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_zalloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_realloc(addr, num) CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_realloc(addr: Pointer; num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_realloc(addr, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_clear_realloc(addr, old_num, num) CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_clear_realloc(addr: Pointer; old_num: TIdC_SIZET; num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_clear_realloc(addr, old_num, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_clear_free(addr, num) CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE) +procedure OPENSSL_clear_free(addr: Pointer; num: TIdC_SIZET); +begin + CRYPTO_clear_free(addr, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_free(addr) CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE) +procedure OPENSSL_free(addr: Pointer); +begin + CRYPTO_free(addr, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_memdup(str, s) CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_memdup(const str: Pointer; s: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_memdup(str, s, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_strdup(str) CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_strdup(const str: PIdAnsiChar): PIdAnsiChar; +begin + Result := CRYPTO_strdup(str, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_strndup(str, n) CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_strndup(const str: PIdAnsiChar; n: TIdC_SIZET): PIdAnsiChar; +begin + Result := CRYPTO_strndup(str, n, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_malloc(num) CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_secure_malloc(num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_secure_malloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_zalloc(num) CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE) +function OPENSSL_secure_zalloc(num: TIdC_SIZET): Pointer; +begin + Result := CRYPTO_secure_zalloc(num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_free(addr) CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE) +procedure OPENSSL_secure_free(addr: Pointer); +begin + CRYPTO_secure_free(addr, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_clear_free(addr, num) CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE) +procedure OPENSSL_secure_clear_free(addr: Pointer; num: TIdC_SIZET); +begin + CRYPTO_secure_clear_free(addr, num, {$IFNDEF FPC}''{$ELSE}{$I %FILE%}{$ENDIF}, {$IFNDEF FPC}-1{$ELSE}{$I %LINENUM%}{$ENDIF}); +end; + +//# define OPENSSL_secure_actual_size(ptr) CRYPTO_secure_actual_size(ptr) +function OPENSSL_secure_actual_size(ptr: Pointer): TIdC_SIZET; +begin + Result := CRYPTO_secure_actual_size(ptr); +end; + +function CRYPTO_num_locks: TIdC_INT; +begin + Result := 0; +end; + +procedure CRYPTO_set_locking_callback; +begin +end; + +procedure CRYPTO_set_id_callback(func: TIdSslIdCallback); +begin +end; + +function SSLeay_version(type_ : TIdC_INT) : PIdAnsiChar; +begin + Result := OpenSSL_version(type_); +end; + +function SSLeay: TIdC_ULONG; +begin + Result := OpenSSL_version_num(); +end; + +procedure CRYPTO_THREADID_set_numeric(id : PCRYPTO_THREADID; val: TIdC_ULONG); +begin +end; + +procedure CRYPTO_THREADID_set_callback(threadid_func: Tthreadid_func); +begin +end; + +{forward_compatibility} + +function OPENSSL_init_crypto(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT; +begin + Result := 0; + if opts and OPENSSL_INIT_ADD_ALL_CIPHERS <> 0 then + OpenSSL_add_all_ciphers; + if opts and OPENSSL_INIT_ADD_ALL_DIGESTS <> 0 then + OpenSSL_add_all_digests; + Result := 1; +end; + +procedure OPENSSL_cleanup; +begin + {nothing to do} +end; + +{/forward_compatibility} + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cryptoerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cryptoerr.h2pas new file mode 100644 index 000000000..5c24243c2 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cryptoerr.h2pas @@ -0,0 +1,74 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cryptoerr; + +interface + +// Headers for OpenSSL 1.1.1 +// cryptoerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * CRYPTO function codes. + *) + CRYPTO_F_CMAC_CTX_NEW = 120; + CRYPTO_F_CRYPTO_DUP_EX_DATA = 110; + CRYPTO_F_CRYPTO_FREE_EX_DATA = 111; + CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX = 100; + CRYPTO_F_CRYPTO_MEMDUP = 115; + CRYPTO_F_CRYPTO_NEW_EX_DATA = 112; + CRYPTO_F_CRYPTO_OCB128_COPY_CTX = 121; + CRYPTO_F_CRYPTO_OCB128_INIT = 122; + CRYPTO_F_CRYPTO_SET_EX_DATA = 102; + CRYPTO_F_FIPS_MODE_SET = 109; + CRYPTO_F_GET_AND_LOCK = 113; + CRYPTO_F_OPENSSL_ATEXIT = 114; + CRYPTO_F_OPENSSL_BUF2HEXSTR = 117; + CRYPTO_F_OPENSSL_FOPEN = 119; + CRYPTO_F_OPENSSL_HEXSTR2BUF = 118; + CRYPTO_F_OPENSSL_INIT_CRYPTO = 116; + CRYPTO_F_OPENSSL_LH_NEW = 126; + CRYPTO_F_OPENSSL_SK_DEEP_COPY = 127; + CRYPTO_F_OPENSSL_SK_DUP = 128; + CRYPTO_F_PKEY_HMAC_INIT = 123; + CRYPTO_F_PKEY_POLY1305_INIT = 124; + CRYPTO_F_PKEY_SIPHASH_INIT = 125; + CRYPTO_F_SK_RESERVE = 129; + + (* + * CRYPTO reason codes. + *) + CRYPTO_R_FIPS_MODE_NOT_SUPPORTED = 101; + CRYPTO_R_ILLEGAL_HEX_DIGIT = 102; + CRYPTO_R_ODD_NUMBER_OF_DIGITS = 103; + + function ERR_load_CRYPTO_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cterr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cterr.h2pas new file mode 100644 index 000000000..0c3fbcedc --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_cterr.h2pas @@ -0,0 +1,93 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_cterr; + +interface + +// Headers for OpenSSL 1.1.1 +// cterr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + ///* + // * CT function codes. + // */ + CT_F_CTLOG_NEW = 117; + CT_F_CTLOG_NEW_FROM_BASE64 = 118; + CT_F_CTLOG_NEW_FROM_CONF = 119; + CT_F_CTLOG_STORE_LOAD_CTX_NEW = 122; + CT_F_CTLOG_STORE_LOAD_FILE = 123; + CT_F_CTLOG_STORE_LOAD_LOG = 130; + CT_F_CTLOG_STORE_NEW = 131; + CT_F_CT_BASE64_DECODE = 124; + CT_F_CT_POLICY_EVAL_CTX_NEW = 133; + CT_F_CT_V1_LOG_ID_FROM_PKEY = 125; + CT_F_I2O_SCT = 107; + CT_F_I2O_SCT_LIST = 108; + CT_F_I2O_SCT_SIGNATURE = 109; + CT_F_O2I_SCT = 110; + CT_F_O2I_SCT_LIST = 111; + CT_F_O2I_SCT_SIGNATURE = 112; + CT_F_SCT_CTX_NEW = 126; + CT_F_SCT_CTX_VERIFY = 128; + CT_F_SCT_NEW = 100; + CT_F_SCT_NEW_FROM_BASE64 = 127; + CT_F_SCT_SET0_LOG_ID = 101; + CT_F_SCT_SET1_EXTENSIONS = 114; + CT_F_SCT_SET1_LOG_ID = 115; + CT_F_SCT_SET1_SIGNATURE = 116; + CT_F_SCT_SET_LOG_ENTRY_TYPE = 102; + CT_F_SCT_SET_SIGNATURE_NID = 103; + CT_F_SCT_SET_VERSION = 104; + + + ///* + // * CT reason codes. + // */ + CT_R_BASE64_DECODE_ERROR = 108; + CT_R_INVALID_LOG_ID_LENGTH = 100; + CT_R_LOG_CONF_INVALID = 109; + CT_R_LOG_CONF_INVALID_KEY = 110; + CT_R_LOG_CONF_MISSING_DESCRIPTION = 111; + CT_R_LOG_CONF_MISSING_KEY = 112; + CT_R_LOG_KEY_INVALID = 113; + CT_R_SCT_FUTURE_TIMESTAMP = 116; + CT_R_SCT_INVALID = 104; + CT_R_SCT_INVALID_SIGNATURE = 107; + CT_R_SCT_LIST_INVALID = 105; + CT_R_SCT_LOG_ID_MISMATCH = 114; + CT_R_SCT_NOT_SET = 106; + CT_R_SCT_UNSUPPORTED_VERSION = 115; + CT_R_UNRECOGNIZED_SIGNATURE_NID = 101; + CT_R_UNSUPPORTED_ENTRY_TYPE = 102; + CT_R_UNSUPPORTED_VERSION = 103; + + function ERR_load_CT_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_des.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_des.h2pas new file mode 100644 index 000000000..51b756f47 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_des.h2pas @@ -0,0 +1,223 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + + +unit IdOpenSSLHeaders_des; + +interface + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +{ + Automatically converted by H2Pas 1.0.0 from des.h + The following command line parameters were used: + des.h +} + + Type + DES_LONG = type cardinal; + Pconst_DES_cblock = ^const_DES_cblock; + PDES_cblock = ^DES_cblock; + PDES_key_schedule = ^DES_key_schedule; + PDES_LONG = ^DES_LONG; + + + DES_cblock = array[0..7] of byte; + { const } + const_DES_cblock = array[0..7] of byte; + { + * With "const", gcc 2.8.1 on Solaris thinks that DES_cblock * and + * const_DES_cblock * are incompatible pointer types. + } + { + * make sure things are correct size on machines with 8 byte longs + } + + DES_ks = record + ks : array[0..15] of record + case longint of + 0 : ( cblock : DES_cblock ); + 1 : ( deslong : array[0..1] of DES_LONG ); + end; + end; + DES_key_schedule = DES_ks; + +var + DES_check_key : longint; + + + const + DES_ENCRYPT = 1; + DES_DECRYPT = 0; + DES_CBC_MODE = 0; + DES_PCBC_MODE = 1; + + procedure DES_ecb2_encrypt(input:Pconst_DES_cblock; output:PDES_cblock; ks1:PDES_key_schedule; ks2:PDES_key_schedule; enc:longint); {removed 1.0.0} + procedure DES_ede2_cbc_encrypt(input:Pbyte; output:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; enc:longint); {removed 1.0.0} + procedure DES_ede2_cfb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; num:Plongint; enc:longint); {removed 1.0.0} + procedure DES_ede2_ofb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ivec:PDES_cblock; num:Plongint); {removed 1.0.0} + + +(* Const before type ignored *) + function DES_options: PIdAnsiChar; + + procedure DES_ecb3_encrypt(input:Pconst_DES_cblock; output:PDES_cblock; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; enc:longint); + +(* Const before type ignored *) + function DES_cbc_cksum(input:Pbyte; output:PDES_cblock; length:longint; schedule:PDES_key_schedule; ivec:Pconst_DES_cblock):DES_LONG; + + { DES_cbc_encrypt does not update the IV! Use DES_ncbc_encrypt instead. } +(* Const before type ignored *) + procedure DES_cbc_encrypt(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint); + +(* Const before type ignored *) + procedure DES_ncbc_encrypt(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint); + +(* Const before type ignored *) + procedure DES_xcbc_encrypt(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; inw:Pconst_DES_cblock; outw:Pconst_DES_cblock; enc:longint); + +(* Const before type ignored *) + procedure DES_cfb_encrypt(in_:Pbyte; out_:Pbyte; numbits:longint; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint); + + procedure DES_ecb_encrypt(input:Pconst_DES_cblock; output:PDES_cblock; ks:PDES_key_schedule; enc:longint); + { + * This is the DES encryption function that gets called by just about every + * other DES routine in the library. You should not use this function except + * to implement 'modes' of DES. I say this because the functions that call + * this routine do the conversion from 'char *' to long, and this needs to be + * done to make sure 'non-aligned' memory access do not occur. The + * characters are loaded 'little endian'. Data is a pointer to 2 unsigned + * long's and ks is the DES_key_schedule to use. enc, is non zero specifies + * encryption, zero if decryption. + } + procedure DES_encrypt1(data:PDES_LONG; ks:PDES_key_schedule; enc:longint); + + { + * This functions is the same as DES_encrypt1() except that the DES initial + * permutation (IP) and final permutation (FP) have been left out. As for + * DES_encrypt1(), you should not use this function. It is used by the + * routines in the library that implement triple DES. IP() DES_encrypt2() + * DES_encrypt2() DES_encrypt2() FP() is the same as DES_encrypt1() + * DES_encrypt1() DES_encrypt1() except faster :-). + } + procedure DES_encrypt2(data:PDES_LONG; ks:PDES_key_schedule; enc:longint); + + procedure DES_encrypt3(data:PDES_LONG; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule); + + procedure DES_decrypt3(data:PDES_LONG; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule); + +(* Const before type ignored *) + procedure DES_ede3_cbc_encrypt(input:Pbyte; output:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; enc:longint); + +(* Const before type ignored *) + procedure DES_ede3_cfb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; num:Plongint; enc:longint); + +(* Const before type ignored *) + procedure DES_ede3_cfb_encrypt(in_:Pbyte; out_:Pbyte; numbits:longint; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; enc:longint); + +(* Const before type ignored *) + procedure DES_ede3_ofb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; ks1:PDES_key_schedule; ks2:PDES_key_schedule; ks3:PDES_key_schedule; ivec:PDES_cblock; num:Plongint); + +(* Const before type ignored *) +(* Const before type ignored *) + function DES_fcrypt(buf:PIdAnsiChar; salt:PIdAnsiChar; ret:PIdAnsiChar): PIdAnsiChar; + +(* Const before type ignored *) +(* Const before type ignored *) + function DES_crypt(buf:PIdAnsiChar; salt:PIdAnsiChar): PIdAnsiChar; + +(* Const before type ignored *) + procedure DES_ofb_encrypt(in_:Pbyte; out_:Pbyte; numbits:longint; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock); + +(* Const before type ignored *) + procedure DES_pcbc_encrypt(input:Pbyte; output:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; enc:longint); + +(* Const before type ignored *) + function DES_quad_cksum(input:Pbyte; output:PDES_cblock; length:longint; out_count:longint; seed:PDES_cblock):DES_LONG; + + function DES_random_key(ret:PDES_cblock):longint; + + procedure DES_set_odd_parity(key:PDES_cblock); + + function DES_check_key_parity(key:Pconst_DES_cblock):longint; + + function DES_is_weak_key(key:Pconst_DES_cblock):longint; + + { + * DES_set_key (= set_key = DES_key_sched = key_sched) calls + * DES_set_key_checked if global variable DES_check_key is set, + * DES_set_key_unchecked otherwise. + } + function DES_set_key(key:Pconst_DES_cblock; var schedule: DES_key_schedule):longint; + + function DES_key_sched(key:Pconst_DES_cblock; schedule:PDES_key_schedule):longint; + + function DES_set_key_checked(key:Pconst_DES_cblock; schedule:PDES_key_schedule):longint; + + procedure DES_set_key_unchecked(key:Pconst_DES_cblock; schedule:PDES_key_schedule); + +(* Const before type ignored *) + procedure DES_string_to_key(str:PIdAnsiChar; key:PDES_cblock); + +(* Const before type ignored *) + procedure DES_string_to_2keys(str:PIdAnsiChar; key1:PDES_cblock; key2:PDES_cblock); + +(* Const before type ignored *) + procedure DES_cfb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; num:Plongint; enc:longint); + +(* Const before type ignored *) + procedure DES_ofb64_encrypt(in_:Pbyte; out_:Pbyte; length:longint; schedule:PDES_key_schedule; ivec:PDES_cblock; num:Plongint); + + procedure DES_fixup_key_parity(key: PDES_cblock); {removed 1.0.0} + +implementation + + procedure DES_ecb2_encrypt(input:Pconst_DES_cblock; output:PDES_cblock; ks1: PDES_key_schedule; ks2: PDES_key_schedule; enc: longint); + begin + DES_ecb3_encrypt(input,output,ks1,ks2,ks1,enc); + end; + + procedure DES_ede2_cbc_encrypt(input:Pbyte; output:Pbyte; length: longint; ks1: PDES_key_schedule; ks2: PDES_key_schedule; ivec: PDES_cblock; enc: longint); + begin + DES_ede3_cbc_encrypt(input,output,length,ks1,ks2,ks1,ivec,enc); + end; + + procedure DES_ede2_cfb64_encrypt(in_: Pbyte; out_: Pbyte; length: longint; ks1: PDES_key_schedule; ks2: PDES_key_schedule; ivec: PDES_cblock; num: Plongint; enc: longint); + begin + DES_ede3_cfb64_encrypt(in_,out_,length,ks1,ks2,ks1,ivec,num,enc); + end; + + procedure DES_ede2_ofb64_encrypt(in_: Pbyte; out_: Pbyte; length: longint; ks1: PDES_key_schedule; ks2: PDES_key_schedule; ivec: PDES_cblock; num: Plongint); + begin + DES_ede3_ofb64_encrypt(in_,out_,length,ks1,ks2,ks1,ivec,num); + end; + + procedure DES_fixup_key_parity(key:PDES_cblock); + begin + DES_set_odd_parity(key); + end; + + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dh.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dh.h2pas new file mode 100644 index 000000000..30323d3b5 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dh.h2pas @@ -0,0 +1,294 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_dh; + +interface + +// Headers for OpenSSL 1.1.1 +// dh.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_evp; + +const + OPENSSL_DH_MAX_MODULUS_BITS = 10000; + OPENSSL_DH_FIPS_MIN_MODULUS_BITS = 1024; + + DH_FLAG_CACHE_MONT_P = $01; + DH_FLAG_FIPS_METHOD = $0400; + DH_FLAG_NON_FIPS_ALLOW = $0400; + + DH_GENERATOR_2 = 2; + DH_GENERATOR_5 = 5; + + DH_CHECK_P_NOT_PRIME = $01; + DH_CHECK_P_NOT_SAFE_PRIME = $02; + DH_UNABLE_TO_CHECK_GENERATOR = $04; + DH_NOT_SUITABLE_GENERATOR = $08; + DH_CHECK_Q_NOT_PRIME = $10; + DH_CHECK_INVALID_Q_VALUE = $20; + DH_CHECK_INVALID_J_VALUE = $40; + DH_CHECK_PUBKEY_TOO_SMALL = $01; + DH_CHECK_PUBKEY_TOO_LARGE = $02; + DH_CHECK_PUBKEY_INVALID = $04; + DH_CHECK_P_NOT_STRONG_PRIME = DH_CHECK_P_NOT_SAFE_PRIME; + + EVP_PKEY_DH_KDF_NONE = 1; + EVP_PKEY_DH_KDF_X9_42 = 2; + + EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN = (EVP_PKEY_ALG_CTRL + 1); + EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR = (EVP_PKEY_ALG_CTRL + 2); + EVP_PKEY_CTRL_DH_RFC5114 = (EVP_PKEY_ALG_CTRL + 3); + EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN = (EVP_PKEY_ALG_CTRL + 4); + EVP_PKEY_CTRL_DH_PARAMGEN_TYPE = (EVP_PKEY_ALG_CTRL + 5); + EVP_PKEY_CTRL_DH_KDF_TYPE = (EVP_PKEY_ALG_CTRL + 6); + EVP_PKEY_CTRL_DH_KDF_MD = (EVP_PKEY_ALG_CTRL + 7); + EVP_PKEY_CTRL_GET_DH_KDF_MD = (EVP_PKEY_ALG_CTRL + 8); + EVP_PKEY_CTRL_DH_KDF_OUTLEN = (EVP_PKEY_ALG_CTRL + 9); + EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN = (EVP_PKEY_ALG_CTRL + 10); + EVP_PKEY_CTRL_DH_KDF_UKM = (EVP_PKEY_ALG_CTRL + 11); + EVP_PKEY_CTRL_GET_DH_KDF_UKM = (EVP_PKEY_ALG_CTRL + 12); + EVP_PKEY_CTRL_DH_KDF_OID = (EVP_PKEY_ALG_CTRL + 13); + EVP_PKEY_CTRL_GET_DH_KDF_OID = (EVP_PKEY_ALG_CTRL + 14); + EVP_PKEY_CTRL_DH_NID = (EVP_PKEY_ALG_CTRL + 15); + EVP_PKEY_CTRL_DH_PAD = (EVP_PKEY_ALG_CTRL + 16); + +type + DH_meth_generate_key_cb = function(dh: PDH): TIdC_INT cdecl; + DH_meth_compute_key_cb = function(key: PByte; const pub_key: PBIGNUM; dh: PDH): TIdC_INT cdecl; + DH_meth_bn_mod_exp_cb = function( + const dh: PDH; r: PBIGNUM; const a: PBIGNUM; + const p: PBIGNUM; const m: PBIGNUM; + ctx: PBN_CTX; m_ctx: PBN_MONT_CTX): TIdC_INT cdecl; + DH_meth_init_cb = function(dh: PDH): TIdC_INT cdecl; + DH_meth_finish_cb = function(dh: PDH): TIdC_INT cdecl; + DH_meth_generate_params_cb = function(dh: PDH; prime_len: TIdC_INT; generator: TIdC_INT; cb: PBN_GENCB): TIdC_INT cdecl; + +{ + # define DH_CHECK_P_NOT_STRONG_PRIME DH_CHECK_P_NOT_SAFE_PRIME + + # define d2i_DHparams_fp(fp,x) \ + (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ + (char *(*)())d2i_DHparams, \ + (fp), \ + (unsigned char **)(x)) + # define i2d_DHparams_fp(fp,x) \ + ASN1_i2d_fp(i2d_DHparams,(fp), (unsigned char *)(x)) + # define d2i_DHparams_bio(bp,x) \ + ASN1_d2i_bio_of(DH, DH_new, d2i_DHparams, bp, x) + # define i2d_DHparams_bio(bp,x) \ + ASN1_i2d_bio_of_const(DH,i2d_DHparams,bp,x) + + # define d2i_DHxparams_fp(fp,x) \ + (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ + (char *(*)())d2i_DHxparams, \ + (fp), \ + (unsigned char **)(x)) + # define i2d_DHxparams_fp(fp,x) \ + ASN1_i2d_fp(i2d_DHxparams,(fp), (unsigned char *)(x)) + # define d2i_DHxparams_bio(bp,x) \ + ASN1_d2i_bio_of(DH, DH_new, d2i_DHxparams, bp, x) + # define i2d_DHxparams_bio(bp,x) \ + ASN1_i2d_bio_of_const(DH, i2d_DHxparams, bp, x) +} + + function DHparams_dup(dh: PDH): PDH; + + function DH_OpenSSL: PDH_Method; + + procedure DH_set_default_method(const meth: PDH_Method); + function DH_get_default_method: PDH_Method; + function DH_set_method(dh: PDH; const meth: PDH_Method): TIdC_INT; + function DH_new_method(engine: PENGINE): PDH; + + function DH_new: PDH; + procedure DH_free(dh: PDH); + function DH_up_ref(dh: PDH): TIdC_INT; + function DH_bits(const dh: PDH): TIdC_INT; {introduced 1.1.0} + function DH_size(const dh: PDH): TIdC_INT; + function DH_security_bits(const dh: PDH): TIdC_INT; {introduced 1.1.0} + function DH_set_ex_data(d: PDH; idx: TIdC_INT; arg: Pointer): TIdC_INT; + function DH_get_ex_data(d: PDH; idx: TIdC_INT): Pointer; + + function DH_generate_parameters_ex(dh: PDH; prime_len: TIdC_INT; generator: TIdC_INT; cb: PBN_GENCB): TIdC_INT; + + function DH_check_params_ex(const dh: PDH): TIdC_INT; {introduced 1.1.0} + function DH_check_ex(const dh: PDH): TIdC_INT; {introduced 1.1.0} + function DH_check_pub_key_ex(const dh: PDH; const pub_key: PBIGNUM): TIdC_INT; {introduced 1.1.0} + function DH_check_params(const dh: PDH; ret: PIdC_INT): TIdC_INT; {introduced 1.1.0} + function DH_check(const dh: PDH; codes: PIdC_INT): TIdC_INT; + function DH_check_pub_key(const dh: PDH; const pub_key: PBIGNUM; codes: PIdC_INT): TIdC_INT; + function DH_generate_key(dh: PDH): TIdC_INT; + function DH_compute_key(key: PByte; const pub_key: PBIGNUM; dh: PDH): TIdC_INT; + function DH_compute_key_padded(key: PByte; const pub_key: PBIGNUM; dh: PDH): TIdC_INT; + function d2i_DHparams(a: PPDH; const pp: PPByte; length: TIdC_LONG): PDH; + function i2d_DHparams(const a: PDH; pp: PPByte): TIdC_INT; + function d2i_DHxparams(a: PPDH; const pp: PPByte; length: TIdC_LONG): PDH; + function i2d_DHxparams(const a: PDH; pp: PPByte): TIdC_INT; + function DHparams_print(bp: PBIO; const x: PDH): TIdC_INT; + + function DH_get_1024_160: PDH; + function DH_get_2048_224: PDH; + function DH_get_2048_256: PDH; + + function DH_new_by_nid(nid: TIdC_INT): PDH; {introduced 1.1.0} + function DH_get_nid(const dh: PDH): TIdC_INT; {introduced 1.1.0} + + function DH_KDF_X9_42( out_: PByte; outlen: TIdC_SIZET; const Z: PByte; Zlen: TIdC_SIZET; key_oid: PASN1_OBJECT; const ukm: PByte; ukmlen: TIdC_SIZET; const md: PEVP_MD): TIdC_INT; + + procedure DH_get0_pqg(const dh: PDH; const p: PPBIGNUM; const q: PPBIGNUM; const g: PPBIGNUM); {introduced 1.1.0} + function DH_set0_pqg(dh: PDH; p: PBIGNUM; q: PBIGNUM; g: PBIGNUM): TIdC_INT; {introduced 1.1.0} + procedure DH_get0_key(const dh: PDH; const pub_key: PPBIGNUM; const priv_key: PPBIGNUM); {introduced 1.1.0} + function DH_set0_key(dh: PDH; pub_key: PBIGNUM; priv_key: PBIGNUM): TIdC_INT; {introduced 1.1.0} + function DH_get0_p(const dh: PDH): PBIGNUM; {introduced 1.1.0} + function DH_get0_q(const dh: PDH): PBIGNUM; {introduced 1.1.0} + function DH_get0_g(const dh: PDH): PBIGNUM; {introduced 1.1.0} + function DH_get0_priv_key(const dh: PDH): PBIGNUM; {introduced 1.1.0} + function DH_get0_pub_key(const dh: PDH): PBIGNUM; {introduced 1.1.0} + procedure DH_clear_flags(dh: PDH; flags: TIdC_INT); {introduced 1.1.0} + function DH_test_flags(const dh: PDH; flags: TIdC_INT): TIdC_INT; {introduced 1.1.0} + procedure DH_set_flags(dh: PDH; flags: TIdC_INT); {introduced 1.1.0} + function DH_get0_engine(d: PDH): PENGINE; {introduced 1.1.0} + function DH_get_length(const dh: PDH): TIdC_LONG; {introduced 1.1.0} + function DH_set_length(dh: PDH; length: TIdC_LONG): TIdC_INT; {introduced 1.1.0} + + function DH_meth_new(const name: PIdAnsiChar; flags: TIdC_INT): PDH_Method; {introduced 1.1.0} + procedure DH_meth_free(dhm: PDH_Method); {introduced 1.1.0} + function DH_meth_dup(const dhm: PDH_Method): PDH_Method; {introduced 1.1.0} + function DH_meth_get0_name(const dhm: PDH_Method): PIdAnsiChar; {introduced 1.1.0} + function DH_meth_set1_name(dhm: PDH_Method; const name: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + function DH_meth_get_flags(const dhm: PDH_Method): TIdC_INT; {introduced 1.1.0} + function DH_meth_set_flags(const dhm: PDH_Method; flags: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function DH_meth_get0_app_data(const dhm: PDH_Method): Pointer; {introduced 1.1.0} + function DH_meth_set0_app_data(const dhm: PDH_Method; app_data: Pointer): TIdC_INT; {introduced 1.1.0} + + function DH_meth_get_generate_key(const dhm: PDH_Method): DH_meth_generate_key_cb; {introduced 1.1.0} + function DH_meth_set_generate_key(const dhm: PDH_Method; generate_key: DH_meth_generate_key_cb): TIdC_INT; {introduced 1.1.0} + + function DH_meth_get_compute_key(const dhm: PDH_Method): DH_meth_compute_key_cb; {introduced 1.1.0} + function DH_meth_set_compute_key(const dhm: PDH_Method; compute_key: DH_meth_compute_key_cb): TIdC_INT; {introduced 1.1.0} + + function DH_meth_get_bn_mod_exp(const dhm: PDH_Method): DH_meth_bn_mod_exp_cb; {introduced 1.1.0} + function DH_meth_set_bn_mod_exp(const dhm: PDH_Method; bn_mod_expr: DH_meth_bn_mod_exp_cb): TIdC_INT; {introduced 1.1.0} + + function DH_meth_get_init(const dhm: PDH_Method): DH_meth_init_cb; {introduced 1.1.0} + function DH_meth_set_init(const dhm: PDH_Method; init: DH_meth_init_cb): TIdC_INT; {introduced 1.1.0} + + function DH_meth_get_finish(const dhm: PDH_Method): DH_meth_finish_cb; {introduced 1.1.0} + function DH_meth_set_finish(const dhm: PDH_Method; finish: DH_meth_finish_cb): TIdC_INT; {introduced 1.1.0} + + function DH_meth_get_generate_params(const dhm: PDH_Method): DH_meth_generate_params_cb; {introduced 1.1.0} + function DH_meth_set_generate_params(const dhm: PDH_Method; generate_params: DH_meth_generate_params_cb): TIdC_INT; {introduced 1.1.0} + +{ +# define EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, len) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, len, NULL) + +# define EVP_PKEY_CTX_set_dh_paramgen_subprime_len(ctx, len) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN, len, NULL) + +# define EVP_PKEY_CTX_set_dh_paramgen_type(ctx, typ) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_TYPE, typ, NULL) + +# define EVP_PKEY_CTX_set_dh_paramgen_generator(ctx, gen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR, gen, NULL) + +# define EVP_PKEY_CTX_set_dh_rfc5114(ctx, gen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_RFC5114, gen, NULL) + +# define EVP_PKEY_CTX_set_dhx_rfc5114(ctx, gen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \ + EVP_PKEY_CTRL_DH_RFC5114, gen, NULL) + +# define EVP_PKEY_CTX_set_dh_nid(ctx, nid) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, \ + EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN, \ + EVP_PKEY_CTRL_DH_NID, nid, NULL) + +# define EVP_PKEY_CTX_set_dh_pad(ctx, pad) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_PAD, pad, NULL) + +# define EVP_PKEY_CTX_set_dh_kdf_type(ctx, kdf) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_TYPE, kdf, NULL) + +# define EVP_PKEY_CTX_get_dh_kdf_type(ctx) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_TYPE, -2, NULL) + +# define EVP_PKEY_CTX_set0_dh_kdf_oid(ctx, oid) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_OID, 0, (void *)(oid)) + +# define EVP_PKEY_CTX_get0_dh_kdf_oid(ctx, poid) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_OID, 0, (void *)(poid)) + +# define EVP_PKEY_CTX_set_dh_kdf_md(ctx, md) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_MD, 0, (void *)(md)) + +# define EVP_PKEY_CTX_get_dh_kdf_md(ctx, pmd) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_MD, 0, (void *)(pmd)) + +# define EVP_PKEY_CTX_set_dh_kdf_outlen(ctx, len) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_OUTLEN, len, NULL) + +# define EVP_PKEY_CTX_get_dh_kdf_outlen(ctx, plen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN, 0, (void *)(plen)) + +# define EVP_PKEY_CTX_set0_dh_kdf_ukm(ctx, p, plen) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_DH_KDF_UKM, plen, (void *)(p)) + +# define EVP_PKEY_CTX_get0_dh_kdf_ukm(ctx, p) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ + EVP_PKEY_OP_DERIVE, \ + EVP_PKEY_CTRL_GET_DH_KDF_UKM, 0, (void *)(p)) +} + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dherr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dherr.h2pas new file mode 100644 index 000000000..c70fe9be1 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dherr.h2pas @@ -0,0 +1,96 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_dherr; + +interface + +// Headers for OpenSSL 1.1.1 +// dherr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // DH function codes + DH_F_COMPUTE_KEY = 102; + DH_F_DHPARAMS_PRINT_FP = 101; + DH_F_DH_BUILTIN_GENPARAMS = 106; + DH_F_DH_CHECK_EX = 121; + DH_F_DH_CHECK_PARAMS_EX = 122; + DH_F_DH_CHECK_PUB_KEY_EX = 123; + DH_F_DH_CMS_DECRYPT = 114; + DH_F_DH_CMS_SET_PEERKEY = 115; + DH_F_DH_CMS_SET_SHARED_INFO = 116; + DH_F_DH_METH_DUP = 117; + DH_F_DH_METH_NEW = 118; + DH_F_DH_METH_SET1_NAME = 119; + DH_F_DH_NEW_BY_NID = 104; + DH_F_DH_NEW_METHOD = 105; + DH_F_DH_PARAM_DECODE = 107; + DH_F_DH_PKEY_PUBLIC_CHECK = 124; + DH_F_DH_PRIV_DECODE = 110; + DH_F_DH_PRIV_ENCODE = 111; + DH_F_DH_PUB_DECODE = 108; + DH_F_DH_PUB_ENCODE = 109; + DH_F_DO_DH_PRINT = 100; + DH_F_GENERATE_KEY = 103; + DH_F_PKEY_DH_CTRL_STR = 120; + DH_F_PKEY_DH_DERIVE = 112; + DH_F_PKEY_DH_INIT = 125; + DH_F_PKEY_DH_KEYGEN = 113; + + // DH reason codes + DH_R_BAD_GENERATOR = 101; + DH_R_BN_DECODE_ERROR = 109; + DH_R_BN_ERROR = 106; + DH_R_CHECK_INVALID_J_VALUE = 115; + DH_R_CHECK_INVALID_Q_VALUE = 116; + DH_R_CHECK_PUBKEY_INVALID = 122; + DH_R_CHECK_PUBKEY_TOO_LARGE = 123; + DH_R_CHECK_PUBKEY_TOO_SMALL = 124; + DH_R_CHECK_P_NOT_PRIME = 117; + DH_R_CHECK_P_NOT_SAFE_PRIME = 118; + DH_R_CHECK_Q_NOT_PRIME = 119; + DH_R_DECODE_ERROR = 104; + DH_R_INVALID_PARAMETER_NAME = 110; + DH_R_INVALID_PARAMETER_NID = 114; + DH_R_INVALID_PUBKEY = 102; + DH_R_KDF_PARAMETER_ERROR = 112; + DH_R_KEYS_NOT_SET = 108; + DH_R_MISSING_PUBKEY = 125; + DH_R_MODULUS_TOO_LARGE = 103; + DH_R_NOT_SUITABLE_GENERATOR = 120; + DH_R_NO_PARAMETERS_SET = 107; + DH_R_NO_PRIVATE_VALUE = 100; + DH_R_PARAMETER_ENCODING_ERROR = 105; + DH_R_PEER_KEY_ERROR = 111; + DH_R_SHARED_INFO_ERROR = 113; + DH_R_UNABLE_TO_CHECK_GENERATOR = 121; + + function ERR_load_DH_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dsa.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dsa.h2pas new file mode 100644 index 000000000..43677841a --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dsa.h2pas @@ -0,0 +1,191 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_dsa; + +interface + +// Headers for OpenSSL 1.1.1 +// dsa.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_evp; + +const + OPENSSL_DSA_MAX_MODULUS_BITS = 10000; + OPENSSL_DSA_FIPS_MIN_MODULUS_BITS = 1024; + DSA_FLAG_CACHE_MONT_P = $01; + DSA_FLAG_NO_EXP_CONSTTIME = $00; + DSA_FLAG_FIPS_METHOD = $0400; + DSA_FLAG_NON_FIPS_ALLOW = $0400; + DSA_FLAG_FIPS_CHECKED = $0800; + + DSS_prime_checks = 64; + + EVP_PKEY_CTRL_DSA_PARAMGEN_BITS = EVP_PKEY_ALG_CTRL + 1; + EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS = EVP_PKEY_ALG_CTRL + 2; + EVP_PKEY_CTRL_DSA_PARAMGEN_MD = EVP_PKEY_ALG_CTRL + 3; + +type + DSA_SIG = type Pointer; // DSA_SIG_st + PDSA_SIG = ^DSA_SIG; + PPDSA_SIG = ^PDSA_SIG; + + DSA_meth_sign_cb = function (const v1: PByte; v2: TIdC_INT; v3: PDSA): PDSA_SIG cdecl; + DSA_meth_sign_setup_cb = function (v1: PDSA; v2: PBN_CTX; + v3: PPBIGNUM; v4: PPBIGNUM): TIdC_INT cdecl; + DSA_meth_verify_cb = function (const v1: PByte; v2: TIdC_INT; + v3: PDSA_SIG; v4: PDSA): TIdC_INT cdecl; + DSA_meth_mod_exp_cb = function (v1: PDSA; v2: PBIGNUM; + const v3: PBIGNUM; const v4: PBIGNUM; const v5: PBIGNUM; const v6: PBIGNUM; + const v7: PBIGNUM; v8: PBN_CTX; v9: PBN_MONT_CTX): TIdC_INT cdecl; + DSA_meth_bn_mod_exp_cb = function (v1: PDSA; v2: PBIGNUM; + const v3: PBIGNUM; const v4: PBIGNUM; const v5: PBIGNUM; v6: PBN_CTX; v7: PBN_MONT_CTX): TIdC_INT cdecl; + DSA_meth_init_cb = function(v1: PDSA): TIdC_INT cdecl; + DSA_meth_finish_cb = function (v1: PDSA): TIdC_INT cdecl; + DSA_meth_paramgen_cb = function (v1: PDSA; v2: TIdC_INT; + const v3: PByte; v4: TIdC_INT; v5: PIdC_INT; v6: PIdC_ULONG; v7: PBN_GENCB): TIdC_INT cdecl; + DSA_meth_keygen_cb = function (v1: PDSA): TIdC_INT cdecl; + +//# define d2i_DSAparams_fp(fp,x) (DSA *)ASN1_d2i_fp((char *(*)())DSA_new, \ +// (char *(*)())d2i_DSAparams,(fp),(unsigned char **)(x)) +//# define i2d_DSAparams_fp(fp,x) ASN1_i2d_fp(i2d_DSAparams,(fp), \ +// (unsigned char *)(x)) +//# define d2i_DSAparams_bio(bp,x) ASN1_d2i_bio_of(DSA,DSA_new,d2i_DSAparams,bp,x) +//# define i2d_DSAparams_bio(bp,x) ASN1_i2d_bio_of_const(DSA,i2d_DSAparams,bp,x) + + function DSAparams_dup(x: PDSA): PDSA; + function DSA_SIG_new: PDSA_SIG; + procedure DSA_SIG_free(a: PDSA_SIG); + function i2d_DSA_SIG(const a: PDSA_SIG; pp: PPByte): TIdC_INT; + function d2i_DSA_SIG(v: PPDSA_SIG; const pp: PPByte; length: TIdC_LONG): PDSA_SIG; + procedure DSA_SIG_get0(const sig: PDSA_SIG; const pr: PPBIGNUM; const ps: PPBIGNUM); + function DSA_SIG_set0(sig: PDSA_SIG; r: PBIGNUM; s: PBIGNUM): TIdC_INT; + + function DSA_do_sign(const dgst: PByte; dlen: TIdC_INT; dsa: PDSA): PDSA_SIG; + function DSA_do_verify(const dgst: PByte; dgst_len: TIdC_INT; sig: PDSA_SIG; dsa: PDSA): TIdC_INT; + + function DSA_OpenSSL: PDSA_METHOD; + procedure DSA_set_default_method(const v1: PDSA_METHOD); + function DSA_get_default_method: PDSA_METHOD; + function DSA_set_method(dsa: PDSA; const v1: PDSA_METHOD): TIdC_INT; + function DSA_get_method(d: PDSA): PDSA_METHOD; + + function DSA_new: PDSA; + function DSA_new_method(engine: PENGINE): PDSA; + procedure DSA_free(r: PDSA); + (* "up" the DSA object's reference count *) + function DSA_up_ref(r: PDSA): TIdC_INT; + function DSA_size(const v1: PDSA): TIdC_INT; + function DSA_bits(const d: PDSA): TIdC_INT; + function DSA_security_bits(const d: PDSA): TIdC_INT; + function DSA_sign(type_: TIdC_INT; const dgst: PByte; dlen: TIdC_INT; sig: PByte; siglen: PIdC_UINT; dsa: PDSA): TIdC_INT; + function DSA_verify(type_: TIdC_INT; const dgst: PByte; dgst_len: TIdC_INT; const sigbuf: PByte; siglen: TIdC_INT; dsa: PDSA): TIdC_INT; + //#define DSA_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DSA, l, p, newf, dupf, freef) + function DSA_set_ex_data(d: PDSA; idx: TIdC_INT; arg: Pointer): TIdC_INT; + function DSA_get_ex_data(d: PDSA; idx: TIdC_INT): Pointer; + + function d2i_DSAPublicKey(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA; + function d2i_DSAPrivateKey(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA; + function d2i_DSAparams(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA; + + function DSA_generate_parameters_ex(dsa: PDSA; bits: TIdC_INT; const seed: PByte; seed_len: TIdC_INT; counter_ret: PIdC_INT; h_ret: PIdC_ULONG; cb: PBN_GENCB): TIdC_INT; + + function DSA_generate_key(a: PDSA): TIdC_INT; + function i2d_DSAPublicKey(const a: PDSA; pp: PPByte): TIdC_INT; + function i2d_DSAPrivateKey(const a: PDSA; pp: PPByte): TIdC_INT; + function i2d_DSAparams(const a: PDSA; pp: PPByte): TIdC_INT; + + function DSAparams_print(bp: PBIO; const x: PDSA): TIdC_INT; + function DSA_print(bp: PBIO; const x: PDSA; off: TIdC_INT): TIdC_INT; +// function DSAparams_print_fp(fp: PFile; const x: PDSA): TIdC_INT; +// function DSA_print_fp(bp: PFile; const x: PDSA; off: TIdC_INT): TIdC_INT; + + //# define DSA_is_prime(n, callback, cb_arg) \ + // BN_is_prime(n, DSS_prime_checks, callback, NULL, cb_arg) + + (* + * Convert DSA structure (key or just parameters) into DH structure (be + * careful to avoid small subgroup attacks when using this!) + *) + function DSA_dup_DH(const r: PDSA): PDH; + + //# define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \ + // EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \ + // 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)) + + procedure DSA_get0_pqg(const d: PDSA; const p: PPBIGNUM; const q: PPBIGNUM; const g: PPBIGNUM); + function DSA_set0_pqg(d: PDSA; p: PBIGNUM; q: PBIGNUM; g: PBIGNUM): TIdC_INT; + procedure DSA_get0_key(const d: PDSA; const pub_key: PPBIGNUM; const priv_key: PPBIGNUM); + function DSA_set0_key(d: PDSA; pub_key: PBIGNUM; priv_key: PBIGNUM): TIdC_INT; + function DSA_get0_p(const d: PDSA): PBIGNUM; + function DSA_get0_q(const d: PDSA): PBIGNUM; + function DSA_get0_g(const d: PDSA): PBIGNUM; + function DSA_get0_pub_key(const d: PDSA): PBIGNUM; + function DSA_get0_priv_key(const d: PDSA): PBIGNUM; + procedure DSA_clear_flags(d: PDSA; flags: TIdC_INT); + function DSA_test_flags(const d: PDSA; flags: TIdC_INT): TIdC_INT; + procedure DSA_set_flags(d: PDSA; flags: TIdC_INT); + function DSA_get0_engine(d: PDSA): PENGINE; + + function DSA_meth_new(const name: PIdAnsiChar; flags: TIdC_INT): PDSA_METHOD; + procedure DSA_meth_free(dsam: PDSA_METHOD); + function DSA_meth_dup(const dsam: PDSA_METHOD): PDSA_METHOD; + function DSA_meth_get0_name(const dsam: PDSA_METHOD): PIdAnsiChar; + function DSA_meth_set1_name(dsam: PDSA_METHOD; const name: PIdAnsiChar): TIdC_INT; + function DSA_meth_get_flags(const dsam: PDSA_METHOD): TIdC_INT; + function DSA_meth_set_flags(dsam: PDSA_METHOD; flags: TIdC_INT): TIdC_INT; + function DSA_meth_get0_app_data(const dsam: PDSA_METHOD): Pointer; + function DSA_meth_set0_app_data(dsam: PDSA_METHOD; app_data: Pointer): TIdC_INT; + function DSA_meth_get_sign(const dsam: PDSA_METHOD): DSA_meth_sign_cb; + function DSA_meth_set_sign(dsam: PDSA_METHOD; sign: DSA_meth_sign_cb): TIdC_INT; + function DSA_meth_get_sign_setup(const dsam: PDSA_METHOD): DSA_meth_sign_setup_cb; + function DSA_meth_set_sign_setup(dsam: PDSA_METHOD; sign_setup: DSA_meth_sign_setup_cb): TIdC_INT; + function DSA_meth_get_verify(const dsam: PDSA_METHOD): DSA_meth_verify_cb; + function DSA_meth_set_verify(dsam: PDSA_METHOD; verify: DSA_meth_verify_cb): TIdC_INT; + function DSA_meth_get_mod_exp(const dsam: PDSA_METHOD): DSA_meth_mod_exp_cb; + function DSA_meth_set_mod_exp(dsam: PDSA_METHOD; mod_exp: DSA_meth_mod_exp_cb): TIdC_INT; + function DSA_meth_get_bn_mod_exp(const dsam: PDSA_METHOD): DSA_meth_bn_mod_exp_cb; + function DSA_meth_set_bn_mod_exp(dsam: PDSA_METHOD; bn_mod_exp: DSA_meth_bn_mod_exp_cb): TIdC_INT; + function DSA_meth_get_init(const dsam: PDSA_METHOD): DSA_meth_init_cb; + function DSA_meth_set_init(dsam: PDSA_METHOD; init: DSA_meth_init_cb): TIdC_INT; + function DSA_meth_get_finish(const dsam: PDSA_METHOD): DSA_meth_finish_cb; + function DSA_meth_set_finish(dsam: PDSA_METHOD; finish: DSA_meth_finish_cb): TIdC_INT; + function DSA_meth_get_paramgen(const dsam: PDSA_METHOD): DSA_meth_paramgen_cb; + function DSA_meth_set_paramgen(dsam: PDSA_METHOD; paramgen: DSA_meth_paramgen_cb): TIdC_INT; + function DSA_meth_get_keygen(const dsam: PDSA_METHOD): DSA_meth_keygen_cb; + function DSA_meth_set_keygen(dsam: PDSA_METHOD; keygen: DSA_meth_keygen_cb): TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dsaerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dsaerr.h2pas new file mode 100644 index 000000000..0b90d5f88 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_dsaerr.h2pas @@ -0,0 +1,84 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_dsaerr; + +interface + +// Headers for OpenSSL 1.1.1 +// dsaerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + ///* + // * DSA function codes. + // */ + DSA_F_DSAPARAMS_PRINT = 100; + DSA_F_DSAPARAMS_PRINT_FP = 101; + DSA_F_DSA_BUILTIN_PARAMGEN = 125; + DSA_F_DSA_BUILTIN_PARAMGEN2 = 126; + DSA_F_DSA_DO_SIGN = 112; + DSA_F_DSA_DO_VERIFY = 113; + DSA_F_DSA_METH_DUP = 127; + DSA_F_DSA_METH_NEW = 128; + DSA_F_DSA_METH_SET1_NAME = 129; + DSA_F_DSA_NEW_METHOD = 103; + DSA_F_DSA_PARAM_DECODE = 119; + DSA_F_DSA_PRINT_FP = 105; + DSA_F_DSA_PRIV_DECODE = 115; + DSA_F_DSA_PRIV_ENCODE = 116; + DSA_F_DSA_PUB_DECODE = 117; + DSA_F_DSA_PUB_ENCODE = 118; + DSA_F_DSA_SIGN = 106; + DSA_F_DSA_SIGN_SETUP = 107; + DSA_F_DSA_SIG_NEW = 102; + DSA_F_OLD_DSA_PRIV_DECODE = 122; + DSA_F_PKEY_DSA_CTRL = 120; + DSA_F_PKEY_DSA_CTRL_STR = 104; + DSA_F_PKEY_DSA_KEYGEN = 121; + + ///* + // * DSA reason codes. + // */ + DSA_R_BAD_Q_VALUE = 102; + DSA_R_BN_DECODE_ERROR = 108; + DSA_R_BN_ERROR = 109; + DSA_R_DECODE_ERROR = 104; + DSA_R_INVALID_DIGEST_TYPE = 106; + DSA_R_INVALID_PARAMETERS = 112; + DSA_R_MISSING_PARAMETERS = 101; + DSA_R_MISSING_PRIVATE_KEY = 111; + DSA_R_MODULUS_TOO_LARGE = 103; + DSA_R_NO_PARAMETERS_SET = 107; + DSA_R_PARAMETER_ENCODING_ERROR = 105; + DSA_R_Q_NOT_PRIME = 113; + DSA_R_SEED_LEN_SMALL = 110; + + function ERR_load_DSA_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ebcdic.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ebcdic.h2pas new file mode 100644 index 000000000..7dee55195 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ebcdic.h2pas @@ -0,0 +1,44 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ebcdic; + +interface + +// Headers for OpenSSL 1.1.1 +// ebcdic.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + + + //extern const unsigned char os_toascii[256]; + //extern const unsigned char os_toebcdic[256]; + + function ebcdic2ascii(dest: Pointer; const srce: Pointer; count: TIdC_SIZET): Pointer; + function ascii2ebcdic(dest: Pointer; const srce: Pointer; count: TIdC_SIZET): Pointer; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ec.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ec.h2pas new file mode 100644 index 000000000..a64004071 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ec.h2pas @@ -0,0 +1,340 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ec; + +interface + +// Headers for OpenSSL 1.1.1 +// ec.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_evp; + +const + OPENSSL_EC_EXPLICIT_CURVE = $000; + OPENSSL_EC_NAMED_CURVE = $001; + EC_PKEY_NO_PARAMETERS = $001; + EC_PKEY_NO_PUBKEY = $002; + EC_FLAG_NON_FIPS_ALLOW = $1; + EC_FLAG_FIPS_CHECKED = $2; + EC_FLAG_COFACTOR_ECDH = $1000; + EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID = (EVP_PKEY_ALG_CTRL + 1); + EVP_PKEY_CTRL_EC_PARAM_ENC = (EVP_PKEY_ALG_CTRL + 2); + EVP_PKEY_CTRL_EC_ECDH_COFACTOR = (EVP_PKEY_ALG_CTRL + 3); + EVP_PKEY_CTRL_EC_KDF_TYPE = (EVP_PKEY_ALG_CTRL + 4); + EVP_PKEY_CTRL_EC_KDF_MD = (EVP_PKEY_ALG_CTRL + 5); + EVP_PKEY_CTRL_GET_EC_KDF_MD = (EVP_PKEY_ALG_CTRL + 6); + EVP_PKEY_CTRL_EC_KDF_OUTLEN = (EVP_PKEY_ALG_CTRL + 7); + EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN = (EVP_PKEY_ALG_CTRL + 8); + EVP_PKEY_CTRL_EC_KDF_UKM = (EVP_PKEY_ALG_CTRL + 9); + EVP_PKEY_CTRL_GET_EC_KDF_UKM = (EVP_PKEY_ALG_CTRL + 10); + EVP_PKEY_CTRL_SET1_ID = (EVP_PKEY_ALG_CTRL + 11); + EVP_PKEY_CTRL_GET1_ID = (EVP_PKEY_ALG_CTRL + 12); + EVP_PKEY_CTRL_GET1_ID_LEN = (EVP_PKEY_ALG_CTRL + 13); + EVP_PKEY_ECDH_KDF_NONE = 1; + EVP_PKEY_ECDH_KDF_X9_63 = 2; + EVP_PKEY_ECDH_KDF_X9_62 = EVP_PKEY_ECDH_KDF_X9_63; + +type + {$MINENUMSIZE 4} + point_conversion_form_t = ( + POINT_CONVERSION_COMPRESSED = 2, + POINT_CONVERSION_UNCOMPRESSED = 4, + POINT_CONVERSION_HYBRID = 6 + ); + + EC_METHOD = type Pointer; // ec_method_st + PEC_METHOD = ^EC_METHOD; + + EC_GROUP = type Pointer; // ec_group_st + PEC_GROUP = ^EC_GROUP; + PPEC_GROUP = ^PEC_GROUP; + + EC_POINT = type Pointer; // ec_point_st + PEC_POINT = ^EC_POINT; + PPEC_POINT = ^PEC_POINT; + + ECPKPARAMETERS = type Pointer; // ecpk_parameters_st + PECPKPARAMETERS = ^ECPKPARAMETERS; + + ECPARAMETERS = type Pointer; // ec_parameters_st + PECPARAMETERS = ^ECPARAMETERS; + + EC_builtin_curve = record + nid: TIdC_INT; + comment: PIdAnsiChar; + end; + PEC_builtin_curve = ^EC_builtin_curve; + + ECDSA_SIG = type Pointer; // ECDSA_SIG_st + PECDSA_SIG = ^ECDSA_SIG; + PPECDSA_SIG = ^PECDSA_SIG; + + ECDH_compute_key_KDF = function(const in_: Pointer; inlen: TIdC_SIZET; out_: Pointer; outlen: PIdC_SIZET): Pointer; cdecl; + + EC_KEY_METHOD_init_init = function(key: PEC_KEY): TIdC_INT; cdecl; + EC_KEY_METHOD_init_finish = procedure(key: PEC_KEY); cdecl; + EC_KEY_METHOD_init_copy = function(dest: PEC_KEY; const src: PEC_KEY): TIdC_INT; cdecl; + EC_KEY_METHOD_init_set_group = function(key: PEC_KEY; const grp: PEC_GROUP): TIdC_INT; cdecl; + EC_KEY_METHOD_init_set_private = function(key: PEC_KEY; const priv_key: PBIGNUM): TIdC_INT; cdecl; + EC_KEY_METHOD_init_set_public = function(key: PEC_KEY; const pub_key: PEC_POINT): TIdC_INT; cdecl; + + EC_KEY_METHOD_keygen_keygen = function(key: PEC_KEY): TIdC_INT; cdecl; + + EC_KEY_METHOD_compute_key_ckey = function(psec: PPByte; pseclen: PIdC_SIZET; const pub_key: PEC_POINT; const ecdh: PEC_KEY): TIdC_INT; cdecl; + + EC_KEY_METHOD_sign_sign = function(type_: TIdC_INT; const dgst: PByte; dlen: TIdC_INT; sig: PByte; siglen: PIdC_UINT; const kinv: PBIGNUM; const r: PBIGNUM; eckey: PEC_KEY): TIdC_INT; cdecl; + EC_KEY_METHOD_sign_sign_setup = function(eckey: PEC_KEY; ctx_in: PBN_CTX; kinvp: PPBIGNUM; rp: PPBIGNUM): TIdC_INT; cdecl; + EC_KEY_METHOD_sign_sign_sig = function(const dgst: PByte; dgst_len: TIdC_INT; const in_kinv: PBIGNUM; const in_r: PBIGNUM; eckey: PEC_KEY): PECDSA_SIG; cdecl; + + EC_KEY_METHOD_verify_verify = function(type_: TIdC_INT; const dgst: PByte; dgst_len: TIdC_INT; const sigbuf: PByte; sig_len: TIdC_INT; eckey: PEC_KEY): TIdC_INT; cdecl; + EC_KEY_METHOD_verify_verify_sig = function(const dgst: PByte; dgst_len: TIdC_INT; const sig: PECDSA_SIG; eckey: PEC_KEY): TIdC_INT; cdecl; + + PEC_KEY_METHOD_init_init = ^EC_KEY_METHOD_init_init; + PEC_KEY_METHOD_init_finish = ^EC_KEY_METHOD_init_finish; + PEC_KEY_METHOD_init_copy = ^EC_KEY_METHOD_init_copy; + PEC_KEY_METHOD_init_set_group = ^EC_KEY_METHOD_init_set_group; + PEC_KEY_METHOD_init_set_private = ^EC_KEY_METHOD_init_set_private; + PEC_KEY_METHOD_init_set_public = ^EC_KEY_METHOD_init_set_public; + + PEC_KEY_METHOD_keygen_keygen = ^EC_KEY_METHOD_keygen_keygen; + + PEC_KEY_METHOD_compute_key_ckey = ^EC_KEY_METHOD_compute_key_ckey; + + PEC_KEY_METHOD_sign_sign = ^EC_KEY_METHOD_sign_sign; + PEC_KEY_METHOD_sign_sign_setup = ^EC_KEY_METHOD_sign_sign_setup; + PEC_KEY_METHOD_sign_sign_sig = ^EC_KEY_METHOD_sign_sign_sig; + + PEC_KEY_METHOD_verify_verify = ^EC_KEY_METHOD_verify_verify; + PEC_KEY_METHOD_verify_verify_sig = ^EC_KEY_METHOD_verify_verify_sig; + + function EC_GFp_simple_method: PEC_METHOD; + function EC_GFp_mont_method: PEC_METHOD; + function EC_GFp_nist_method: PEC_METHOD; + function EC_GFp_nistp224_method: PEC_METHOD; {introduced 1.1.0 removed 3.0.0} + function EC_GFp_nistp256_method: PEC_METHOD; {introduced 1.1.0 removed 3.0.0} + function EC_GFp_nistp521_method: PEC_METHOD; {introduced 1.1.0 removed 3.0.0} + + function EC_GF2m_simple_method: PEC_METHOD; + + function EC_GROUP_new(const meth: PEC_METHOD): PEC_GROUP; + procedure EC_GROUP_free(group: PEC_GROUP); + procedure EC_GROUP_clear_free(group: PEC_GROUP); + function EC_GROUP_copy(dst: PEC_GROUP; const src: PEC_GROUP): TIdC_INT; + function EC_GROUP_dup(const src: PEC_GROUP): PEC_GROUP; + function EC_GROUP_method_of(const group: PEC_GROUP): PEC_GROUP; + function EC_METHOD_get_field_type(const meth: PEC_METHOD): TIdC_INT; + function EC_GROUP_set_generator(group: PEC_GROUP; const generator: PEC_POINT; const order: PBIGNUM; const cofactor: PBIGNUM): TIdC_INT; + function EC_GROUP_get0_generator(const group: PEC_GROUP): PEC_POINT; + function EC_GROUP_get_mont_data(const group: PEC_GROUP): PBN_MONT_CTX; + function EC_GROUP_get_order(const group: PEC_GROUP; order: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_GROUP_get0_order(const group: PEC_GROUP): PBIGNUM; {introduced 1.1.0} + function EC_GROUP_order_bits(const group: PEC_GROUP): TIdC_INT; {introduced 1.1.0} + function EC_GROUP_get_cofactor(const group: PEC_GROUP; cofactor: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_GROUP_get0_cofactor(const group: PEC_GROUP): PBIGNUM; {introduced 1.1.0} + procedure EC_GROUP_set_curve_name(group: PEC_GROUP; nid: TIdC_INT); + function EC_GROUP_get_curve_name(const group: PEC_GROUP): TIdC_INT; + + procedure EC_GROUP_set_asn1_flag(group: PEC_GROUP; flag: TIdC_INT); + function EC_GROUP_get_asn1_flag(const group: PEC_GROUP): TIdC_INT; + + procedure EC_GROUP_set_point_conversion_form(group: PEC_GROUP; form: point_conversion_form_t); + function EC_GROUP_get_point_conversion_form(const group: PEC_GROUP): point_conversion_form_t; + + function EC_GROUP_get0_seed(const x: PEC_GROUP): PByte; + function EC_GROUP_get_seed_len(const x: PEC_GROUP): TIdC_SIZET; + function EC_GROUP_set_seed(x: PEC_GROUP; const p: PByte; len: TIdC_SIZET): TIdC_SIZET; + + function EC_GROUP_set_curve(group: PEC_GROUP; const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; {introduced 1.1.0} + function EC_GROUP_get_curve(const group: PEC_GROUP; p: PBIGNUM; a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; {introduced 1.1.0} + function EC_GROUP_set_curve_GFp(group: PEC_GROUP; const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_GROUP_get_curve_GFp(const group: PEC_GROUP; p: PBIGNUM; a: PBIGNUM; b: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_GROUP_set_curve_GF2m(group: PEC_GROUP; const p: PBIGNUM; const a: PBIGNUM; const b:PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_GROUP_get_curve_GF2m(const group: PEC_GROUP; p: PBIGNUM; a: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + + function EC_GROUP_get_degree(const group: PEC_GROUP): TIdC_INT; + function EC_GROUP_check(const group: PEC_GROUP; ctx: PBN_CTX): TIdC_INT; + function EC_GROUP_check_discriminant(const group: PEC_GROUP; ctx: PBN_CTX): TIdC_INT; + function EC_GROUP_cmp(const a: PEC_GROUP; const b: PEC_GROUP; ctx: PBN_CTX): TIdC_INT; + + function EC_GROUP_new_curve_GFp(const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): PEC_GROUP; + function EC_GROUP_new_curve_GF2m(const p: PBIGNUM; const a: PBIGNUM; const b: PBIGNUM; ctx: PBN_CTX): PEC_GROUP; + function EC_GROUP_new_by_curve_name(nid: TIdC_INT): PEC_GROUP; + function EC_GROUP_new_from_ecparameters(const params: PECPARAMETERS): PEC_GROUP; {introduced 1.1.0} + function EC_GROUP_get_ecparameters(const group: PEC_GROUP; params: PECPARAMETERS): PECPARAMETERS; {introduced 1.1.0} + function EC_GROUP_new_from_ecpkparameters(const params: PECPKPARAMETERS): PEC_GROUP; {introduced 1.1.0} + function EC_GROUP_get_ecpkparameters(const group: PEC_GROUP; params: PECPKPARAMETERS): PECPKPARAMETERS; {introduced 1.1.0} + + function EC_get_builtin_curves(r: PEC_builtin_curve; nitems: TIdC_SIZET): TIdC_SIZET; + + function EC_curve_nid2nist(nid: TIdC_INT): PIdAnsiChar; + function EC_curve_nist2nid(const name: PIdAnsiChar): TIdC_INT; + + function EC_POINT_new(const group: PEC_GROUP): PEC_POINT; + procedure EC_POINT_free(point: PEC_POINT); + procedure EC_POINT_clear_free(point: PEC_POINT); + function EC_POINT_copy(dst: PEC_POINT; const src: PEC_POINT): TIdC_INT; + function EC_POINT_dup(const src: PEC_POINT; const group: PEC_GROUP): PEC_POINT; + function EC_POINT_method_of(const point: PEC_POINT): PEC_METHOD; + function EC_POINT_set_to_infinity(const group: PEC_GROUP; point: PEC_POINT): TIdC_INT; + function EC_POINT_set_Jprojective_coordinates_GFp(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; const z: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_get_Jprojective_coordinates_GFp(const group: PEC_METHOD; const p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; z: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_set_affine_coordinates(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; {introduced 1.1.0} + function EC_POINT_get_affine_coordinates(const group: PEC_GROUP; const p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; {introduced 1.1.0} + function EC_POINT_set_affine_coordinates_GFp(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_get_affine_coordinates_GFp(const group: PEC_GROUP; const p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_set_compressed_coordinates(const group: PEC_GROUP; p: PEC_POINT; x: PBIGNUM; y_bit: TIdC_INT; ctx: PBN_CTX): TIdC_INT; {introduced 1.1.0} + function EC_POINT_set_compressed_coordinates_GFp(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; y_bit: TIdC_INT; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_set_affine_coordinates_GF2m(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; const y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_get_affine_coordinates_GF2m(const group: PEC_GROUP; p: PEC_POINT; x: PBIGNUM; y: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_set_compressed_coordinates_GF2m(const group: PEC_GROUP; p: PEC_POINT; const x: PBIGNUM; y_bit: TIdC_INT; ctx: PBN_CTX): TIdC_INT; + + function EC_POINT_point2oct(const group: PEC_GROUP; const p: PEC_POINT; form: point_conversion_form_t; buf: PByte; len: TIdC_SIZET; ctx: PBN_CTX): TIdC_SIZET; + function EC_POINT_oct2point(const group: PEC_GROUP; p: PEC_POINT; const buf: PByte; len: TIdC_SIZET; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_point2buf(const group: PEC_GROUP; const point: PEC_POINT; form: point_conversion_form_t; pbuf: PPByte; ctx: PBN_CTX): TIdC_SIZET; {introduced 1.1.0} + function EC_POINT_point2bn(const group: PEC_GROUP; const p: PEC_POINT; form: point_conversion_form_t; bn: PBIGNUM; ctx: PBN_CTX): PBIGNUM; + function EC_POINT_bn2point(const group: PEC_GROUP; const bn: PBIGNUM; p: PEC_POINT; ctx: PBN_CTX): PEC_POINT; + function EC_POINT_point2hex(const group: PEC_GROUP; const p: PEC_POINT; form: point_conversion_form_t; ctx: PBN_CTX): PIdAnsiChar; + function EC_POINT_hex2point(const group: PEC_GROUP; const buf: PIdAnsiChar; p: PEC_POINT; ctx: PBN_CTX): PEC_POINT; + + function EC_POINT_add(const group: PEC_GROUP; r: PEC_POINT; const a: PEC_POINT; const b: PEC_POINT; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_dbl(const group: PEC_GROUP; r: PEC_POINT; const a: PEC_POINT; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_invert(const group: PEC_GROUP; a: PEC_POINT; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_is_at_infinity(const group: PEC_GROUP; const p: PEC_POINT): TIdC_INT; + function EC_POINT_is_on_curve(const group: PEC_GROUP; const point: PEC_POINT; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_cmp(const group: PEC_GROUP; const a: PEC_POINT; const b: PEC_POINT; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_make_affine(const group: PEC_GROUP; point: PEC_POINT; ctx: PBN_CTX): TIdC_INT; + function EC_POINTs_make_affine(const group: PEC_METHOD; num: TIdC_SIZET; points: PPEC_POINT; ctx: PBN_CTX): TIdC_INT; + function EC_POINTs_mul(const group: PEC_GROUP; r: PEC_POINT; const n: PBIGNUM; num: TIdC_SIZET; const p: PPEC_POINT; const m: PPBIGNUM; ctx: PBN_CTX): TIdC_INT; + function EC_POINT_mul(const group: PEC_GROUP; r: PEC_POINT; const n: PBIGNUM; const q: PEC_POINT; const m: PBIGNUM; ctx: PBN_CTX): TIdC_INT; + + function EC_GROUP_precompute_mult(group: PEC_GROUP; ctx: PBN_CTX): TIdC_INT; + function EC_GROUP_have_precompute_mult(const group: PEC_GROUP): TIdC_INT; + + function ECPKPARAMETERS_it: PASN1_ITEM; + function ECPKPARAMETERS_new: PECPKPARAMETERS; + procedure ECPKPARAMETERS_free(a: PECPKPARAMETERS); + + function ECPARAMETERS_it: PASN1_ITEM; + function ECPARAMETERS_new: PECPARAMETERS; + procedure ECPARAMETERS_free(a: PECPARAMETERS); + + function EC_GROUP_get_basis_type(const group: PEC_GROUP): TIdC_INT; + function EC_GROUP_get_trinomial_basis(const group: PEC_GROUP; k: PIdC_UINT): TIdC_INT; + function EC_GROUP_get_pentanomial_basis(const group: PEC_GROUP; k1: PIdC_UINT; k2: PIdC_UINT; k3: PIdC_UINT): TIdC_INT; + + function d2i_ECPKParameters(group: PPEC_GROUP; const in_: PPByte; len: TIdC_LONG): PEC_GROUP; + function i2d_ECPKParameters(const group: PEC_GROUP; out_: PPByte): TIdC_INT; + + function ECPKParameters_print(bp: PBIO; const x: PEC_GROUP; off: TIdC_INT): TIdC_INT; + + function EC_KEY_new: PEC_KEY; + function EC_KEY_get_flags(const key: PEC_KEY): TIdC_INT; + procedure EC_KEY_set_flags(key: PEC_KEY; flags: TIdC_INT); + procedure EC_KEY_clear_flags(key: PEC_KEY; flags: TIdC_INT); + function EC_KEY_new_by_curve_name(nid: TIdC_INT): PEC_KEY; + procedure EC_KEY_free(key: PEC_KEY); + function EC_KEY_copy(dst: PEC_KEY; const src: PEC_KEY): PEC_KEY; + function EC_KEY_dup(const src: PEC_KEY): PEC_KEY; + function EC_KEY_up_ref(key: PEC_KEY): TIdC_INT; + function EC_KEY_get0_engine(const eckey: PEC_KEY): PENGINE; {introduced 1.1.0} + function EC_KEY_get0_group(const key: PEC_KEY): PEC_GROUP; + function EC_KEY_set_group(key: PEC_KEY; const group: PEC_GROUP): TIdC_INT; + function EC_KEY_get0_private_key(const key: PEC_KEY): PBIGNUM; + function EC_KEY_set_private_key(const key: PEC_KEY; const prv: PBIGNUM): TIdC_INT; + function EC_KEY_get0_public_key(const key: PEC_KEY): PEC_POINT; + function EC_KEY_set_public_key(key: PEC_KEY; const pub: PEC_POINT): TIdC_INT; + function EC_KEY_get_enc_flags(const key: PEC_KEY): TIdC_UINT; + procedure EC_KEY_set_enc_flags(eckey: PEC_KEY; flags: TIdC_UINT); + function EC_KEY_get_conv_form(const key: PEC_KEY): point_conversion_form_t; + procedure EC_KEY_set_conv_form(eckey: PEC_KEY; cform: point_conversion_form_t); + function EC_KEY_set_ex_data(key: PEC_KEY; idx: TIdC_INT; arg: Pointer): TIdC_INT; {introduced 1.1.0} + function EC_KEY_get_ex_data(const key: PEC_KEY; idx: TIdC_INT): Pointer; {introduced 1.1.0} + procedure EC_KEY_set_asn1_flag(eckey: PEC_KEY; asn1_flag: TIdC_INT); + function EC_KEY_precompute_mult(key: PEC_KEY; ctx: PBN_CTX): TIdC_INT; + function EC_KEY_generate_key(key: PEC_KEY): TIdC_INT; + function EC_KEY_check_key(const key: PEC_KEY): TIdC_INT; + function EC_KEY_can_sign(const eckey: PEC_KEY): TIdC_INT; {introduced 1.1.0} + function EC_KEY_set_public_key_affine_coordinates(key: PEC_KEY; x: PBIGNUM; y: PBIGNUM): TIdC_INT; + function EC_KEY_key2buf(const key: PEC_KEY; form: point_conversion_form_t; pbuf: PPByte; ctx: PBN_CTX): TIdC_SIZET; {introduced 1.1.0} + function EC_KEY_oct2key(key: PEC_KEY; const buf: PByte; len: TIdC_SIZET; ctx: PBN_CTX): TIdC_INT; {introduced 1.1.0} + function EC_KEY_oct2priv(key: PEC_KEY; const buf: PByte; len: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function EC_KEY_priv2oct(const key: PEC_KEY; buf: PByte; len: TIdC_SIZET): TIdC_SIZET; {introduced 1.1.0} + function EC_KEY_priv2buf(const eckey: PEC_KEY; buf: PPByte): TIdC_SIZET; {introduced 1.1.0} + + function d2i_ECPrivateKey(key: PPEC_KEY; const in_: PPByte; len: TIdC_LONG): PEC_KEY; + function i2d_ECPrivateKey(key: PEC_KEY; out_: PPByte): TIdC_INT; + function o2i_ECPublicKey(key: PPEC_KEY; const in_: PPByte; len: TIdC_LONG): PEC_KEY; + function i2o_ECPublicKey(const key: PEC_KEY; out_: PPByte): TIdC_INT; + + function ECParameters_print(bp: PBIO; const key: PEC_KEY): TIdC_INT; + function EC_KEY_print(bp: PBIO; const key: PEC_KEY; off: TIdC_INT): TIdC_INT; + + function EC_KEY_OpenSSL: PEC_KEY_METHOD; {introduced 1.1.0} + function EC_KEY_get_default_method: PEC_KEY_METHOD; {introduced 1.1.0} + procedure EC_KEY_set_default_method(const meth: PEC_KEY_METHOD); {introduced 1.1.0} + function EC_KEY_get_method(const key: PEC_KEY): PEC_KEY_METHOD; {introduced 1.1.0} + function EC_KEY_set_method(key: PEC_KEY; const meth: PEC_KEY_METHOD): TIdC_INT; {introduced 1.1.0} + function EC_KEY_new_method(engine: PENGINE): PEC_KEY; {introduced 1.1.0} + + function ECDH_KDF_X9_62(out_: PByte; outlen: TIdC_SIZET; const Z: PByte; Zlen: TIdC_SIZET; const sinfo: PByte; sinfolen: TIdC_SIZET; const md: PEVP_MD): TIdC_INT; + function ECDH_compute_key(out_: Pointer; oulen: TIdC_SIZET; const pub_key: PEC_POINT; const ecdh: PEC_KEY; kdf: ECDH_compute_key_KDF): TIdC_INT; + + function ECDSA_SIG_new: PECDSA_SIG; + procedure ECDSA_SIG_free(sig: PECDSA_SIG); + function i2d_ECDSA_SIG(const sig: PECDSA_SIG; pp: PPByte): TIdC_INT; + function d2i_ECDSA_SIG(sig: PPECDSA_SIG; const pp: PPByte; len: TIdC_LONG): PECDSA_SIG; + procedure ECDSA_SIG_get0(const sig: PECDSA_SIG; const pr: PPBIGNUM; const ps: PPBIGNUM); {introduced 1.1.0} + function ECDSA_SIG_get0_r(const sig: PECDSA_SIG): PBIGNUM; {introduced 1.1.0} + function ECDSA_SIG_get0_s(const sig: PECDSA_SIG): PBIGNUM; {introduced 1.1.0} + function ECDSA_SIG_set0(sig: PECDSA_SIG; r: PBIGNUM; s: PBIGNUM): TIdC_INT; {introduced 1.1.0} + function ECDSA_do_sign(const dgst: PByte; dgst_len: TIdC_INT; eckey: PEC_KEY): PECDSA_SIG; + function ECDSA_do_sign_ex(const dgst: PByte; dgst_len: TIdC_INT; const kinv: PBIGNUM; const rp: PBIGNUM; eckey: PEC_KEY): PECDSA_SIG; + function ECDSA_do_verify(const dgst: PByte; dgst_len: TIdC_INT; const sig: PECDSA_SIG; eckey: PEC_KEY): TIdC_INT; + function ECDSA_sign_setup(eckey: PEC_KEY; ctx: PBN_CTX; kiv: PPBIGNUM; rp: PPBIGNUM): TIdC_INT; + function ECDSA_sign(type_: TIdC_INT; const dgst: PByte; dgstlen: TIdC_INT; sig: PByte; siglen: PIdC_UINT; eckey: PEC_KEY): TIdC_INT; + function ECDSA_sign_ex(type_: TIdC_INT; const dgst: PByte; dgstlen: TIdC_INT; sig: PByte; siglen: PIdC_UINT; const kinv: PBIGNUM; const rp: PBIGNUM; eckey: PEC_KEY): TIdC_INT; + function ECDSA_verify(type_: TIdC_INT; const dgst: PByte; dgstlen: TIdC_INT; const sig: PByte; siglen: TIdC_INT; eckey: PEC_KEY): TIdC_INT; + function ECDSA_size(const eckey: PEC_KEY): TIdC_INT; + + function EC_KEY_METHOD_new(const meth: PEC_KEY_METHOD): PEC_KEY_METHOD; {introduced 1.1.0} + procedure EC_KEY_METHOD_free(meth: PEC_KEY_METHOD); {introduced 1.1.0} + procedure EC_KEY_METHOD_set_init(meth: PEC_KEY_METHOD; init: EC_KEY_METHOD_init_init; finish: EC_KEY_METHOD_init_finish; copy: EC_KEY_METHOD_init_copy; set_group: EC_KEY_METHOD_init_set_group; set_private: EC_KEY_METHOD_init_set_private; set_public: EC_KEY_METHOD_init_set_public); {introduced 1.1.0} + procedure EC_KEY_METHOD_set_keygen(meth: PEC_KEY_METHOD; keygen: EC_KEY_METHOD_keygen_keygen); {introduced 1.1.0} + procedure EC_KEY_METHOD_set_compute_key(meth: PEC_KEY_METHOD; ckey: EC_KEY_METHOD_compute_key_ckey); {introduced 1.1.0} + procedure EC_KEY_METHOD_set_sign(meth: PEC_KEY_METHOD; sign: EC_KEY_METHOD_sign_sign; sign_setup: EC_KEY_METHOD_sign_sign_setup; sign_sig: EC_KEY_METHOD_sign_sign_sig); {introduced 1.1.0} + procedure EC_KEY_METHOD_set_verify(meth: PEC_KEY_METHOD; verify: EC_KEY_METHOD_verify_verify; verify_sig: EC_KEY_METHOD_verify_verify_sig); {introduced 1.1.0} + + procedure EC_KEY_METHOD_get_init(const meth: PEC_KEY_METHOD; pinit: PEC_KEY_METHOD_init_init; pfinish: PEC_KEY_METHOD_init_finish; pcopy: PEC_KEY_METHOD_init_copy; pset_group: PEC_KEY_METHOD_init_set_group; pset_private: PEC_KEY_METHOD_init_set_private; pset_public: PEC_KEY_METHOD_init_set_public); {introduced 1.1.0} + procedure EC_KEY_METHOD_get_keygen(const meth: PEC_KEY_METHOD; pkeygen: PEC_KEY_METHOD_keygen_keygen); {introduced 1.1.0} + procedure EC_KEY_METHOD_get_compute_key(const meth: PEC_KEY_METHOD; pck: PEC_KEY_METHOD_compute_key_ckey); {introduced 1.1.0} + procedure EC_KEY_METHOD_get_sign(const meth: PEC_KEY_METHOD; psign: PEC_KEY_METHOD_sign_sign; psign_setup: PEC_KEY_METHOD_sign_sign_setup; psign_sig: PEC_KEY_METHOD_sign_sign_sig); {introduced 1.1.0} + procedure EC_KEY_METHOD_get_verify(const meth: PEC_KEY_METHOD; pverify: PEC_KEY_METHOD_verify_verify; pverify_sig: PEC_KEY_METHOD_verify_verify_sig); {introduced 1.1.0} + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ecerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ecerr.h2pas new file mode 100644 index 000000000..afdf75d65 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ecerr.h2pas @@ -0,0 +1,287 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ecerr; + +interface + +// Headers for OpenSSL 1.1.1 +// ecerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * EC function codes. + *) + EC_F_BN_TO_FELEM = 224; + EC_F_D2I_ECPARAMETERS = 144; + EC_F_D2I_ECPKPARAMETERS = 145; + EC_F_D2I_ECPRIVATEKEY = 146; + EC_F_DO_EC_KEY_PRINT = 221; + EC_F_ECDH_CMS_DECRYPT = 238; + EC_F_ECDH_CMS_SET_SHARED_INFO = 239; + EC_F_ECDH_COMPUTE_KEY = 246; + EC_F_ECDH_SIMPLE_COMPUTE_KEY = 257; + EC_F_ECDSA_DO_SIGN_EX = 251; + EC_F_ECDSA_DO_VERIFY = 252; + EC_F_ECDSA_SIGN_EX = 254; + EC_F_ECDSA_SIGN_SETUP = 248; + EC_F_ECDSA_SIG_NEW = 265; + EC_F_ECDSA_VERIFY = 253; + EC_F_ECD_ITEM_VERIFY = 270; + EC_F_ECKEY_PARAM2TYPE = 223; + EC_F_ECKEY_PARAM_DECODE = 212; + EC_F_ECKEY_PRIV_DECODE = 213; + EC_F_ECKEY_PRIV_ENCODE = 214; + EC_F_ECKEY_PUB_DECODE = 215; + EC_F_ECKEY_PUB_ENCODE = 216; + EC_F_ECKEY_TYPE2PARAM = 220; + EC_F_ECPARAMETERS_PRINT = 147; + EC_F_ECPARAMETERS_PRINT_FP = 148; + EC_F_ECPKPARAMETERS_PRINT = 149; + EC_F_ECPKPARAMETERS_PRINT_FP = 150; + EC_F_ECP_NISTZ256_GET_AFFINE = 240; + EC_F_ECP_NISTZ256_INV_MOD_ORD = 275; + EC_F_ECP_NISTZ256_MULT_PRECOMPUTE = 243; + EC_F_ECP_NISTZ256_POINTS_MUL = 241; + EC_F_ECP_NISTZ256_PRE_COMP_NEW = 244; + EC_F_ECP_NISTZ256_WINDOWED_MUL = 242; + EC_F_ECX_KEY_OP = 266; + EC_F_ECX_PRIV_ENCODE = 267; + EC_F_ECX_PUB_ENCODE = 268; + EC_F_EC_ASN1_GROUP2CURVE = 153; + EC_F_EC_ASN1_GROUP2FIELDID = 154; + EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY = 208; + EC_F_EC_GF2M_SIMPLE_FIELD_INV = 296; + EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT = 159; + EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE = 195; + EC_F_EC_GF2M_SIMPLE_LADDER_POST = 285; + EC_F_EC_GF2M_SIMPLE_LADDER_PRE = 288; + EC_F_EC_GF2M_SIMPLE_OCT2POINT = 160; + EC_F_EC_GF2M_SIMPLE_POINT2OCT = 161; + EC_F_EC_GF2M_SIMPLE_POINTS_MUL = 289; + EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES = 162; + EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES = 163; + EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES = 164; + EC_F_EC_GFP_MONT_FIELD_DECODE = 133; + EC_F_EC_GFP_MONT_FIELD_ENCODE = 134; + EC_F_EC_GFP_MONT_FIELD_INV = 297; + EC_F_EC_GFP_MONT_FIELD_MUL = 131; + EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE = 209; + EC_F_EC_GFP_MONT_FIELD_SQR = 132; + EC_F_EC_GFP_MONT_GROUP_SET_CURVE = 189; + EC_F_EC_GFP_NISTP224_GROUP_SET_CURVE = 225; + EC_F_EC_GFP_NISTP224_POINTS_MUL = 228; + EC_F_EC_GFP_NISTP224_POINT_GET_AFFINE_COORDINATES = 226; + EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE = 230; + EC_F_EC_GFP_NISTP256_POINTS_MUL = 231; + EC_F_EC_GFP_NISTP256_POINT_GET_AFFINE_COORDINATES = 232; + EC_F_EC_GFP_NISTP521_GROUP_SET_CURVE = 233; + EC_F_EC_GFP_NISTP521_POINTS_MUL = 234; + EC_F_EC_GFP_NISTP521_POINT_GET_AFFINE_COORDINATES = 235; + EC_F_EC_GFP_NIST_FIELD_MUL = 200; + EC_F_EC_GFP_NIST_FIELD_SQR = 201; + EC_F_EC_GFP_NIST_GROUP_SET_CURVE = 202; + EC_F_EC_GFP_SIMPLE_BLIND_COORDINATES = 287; + EC_F_EC_GFP_SIMPLE_FIELD_INV = 298; + EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT = 165; + EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE = 166; + EC_F_EC_GFP_SIMPLE_MAKE_AFFINE = 102; + EC_F_EC_GFP_SIMPLE_OCT2POINT = 103; + EC_F_EC_GFP_SIMPLE_POINT2OCT = 104; + EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE = 137; + EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES = 167; + EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES = 168; + EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES = 169; + EC_F_EC_GROUP_CHECK = 170; + EC_F_EC_GROUP_CHECK_DISCRIMINANT = 171; + EC_F_EC_GROUP_COPY = 106; + EC_F_EC_GROUP_GET_CURVE = 291; + EC_F_EC_GROUP_GET_CURVE_GF2M = 172; + EC_F_EC_GROUP_GET_CURVE_GFP = 130; + EC_F_EC_GROUP_GET_DEGREE = 173; + EC_F_EC_GROUP_GET_ECPARAMETERS = 261; + EC_F_EC_GROUP_GET_ECPKPARAMETERS = 262; + EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS = 193; + EC_F_EC_GROUP_GET_TRINOMIAL_BASIS = 194; + EC_F_EC_GROUP_NEW = 108; + EC_F_EC_GROUP_NEW_BY_CURVE_NAME = 174; + EC_F_EC_GROUP_NEW_FROM_DATA = 175; + EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS = 263; + EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS = 264; + EC_F_EC_GROUP_SET_CURVE = 292; + EC_F_EC_GROUP_SET_CURVE_GF2M = 176; + EC_F_EC_GROUP_SET_CURVE_GFP = 109; + EC_F_EC_GROUP_SET_GENERATOR = 111; + EC_F_EC_GROUP_SET_SEED = 286; + EC_F_EC_KEY_CHECK_KEY = 177; + EC_F_EC_KEY_COPY = 178; + EC_F_EC_KEY_GENERATE_KEY = 179; + EC_F_EC_KEY_NEW = 182; + EC_F_EC_KEY_NEW_METHOD = 245; + EC_F_EC_KEY_OCT2PRIV = 255; + EC_F_EC_KEY_PRINT = 180; + EC_F_EC_KEY_PRINT_FP = 181; + EC_F_EC_KEY_PRIV2BUF = 279; + EC_F_EC_KEY_PRIV2OCT = 256; + EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES = 229; + EC_F_EC_KEY_SIMPLE_CHECK_KEY = 258; + EC_F_EC_KEY_SIMPLE_OCT2PRIV = 259; + EC_F_EC_KEY_SIMPLE_PRIV2OCT = 260; + EC_F_EC_PKEY_CHECK = 273; + EC_F_EC_PKEY_PARAM_CHECK = 274; + EC_F_EC_POINTS_MAKE_AFFINE = 136; + EC_F_EC_POINTS_MUL = 290; + EC_F_EC_POINT_ADD = 112; + EC_F_EC_POINT_BN2POINT = 280; + EC_F_EC_POINT_CMP = 113; + EC_F_EC_POINT_COPY = 114; + EC_F_EC_POINT_DBL = 115; + EC_F_EC_POINT_GET_AFFINE_COORDINATES = 293; + EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M = 183; + EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP = 116; + EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP = 117; + EC_F_EC_POINT_INVERT = 210; + EC_F_EC_POINT_IS_AT_INFINITY = 118; + EC_F_EC_POINT_IS_ON_CURVE = 119; + EC_F_EC_POINT_MAKE_AFFINE = 120; + EC_F_EC_POINT_NEW = 121; + EC_F_EC_POINT_OCT2POINT = 122; + EC_F_EC_POINT_POINT2BUF = 281; + EC_F_EC_POINT_POINT2OCT = 123; + EC_F_EC_POINT_SET_AFFINE_COORDINATES = 294; + EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M = 185; + EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP = 124; + EC_F_EC_POINT_SET_COMPRESSED_COORDINATES = 295; + EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M = 186; + EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP = 125; + EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP = 126; + EC_F_EC_POINT_SET_TO_INFINITY = 127; + EC_F_EC_PRE_COMP_NEW = 196; + EC_F_EC_SCALAR_MUL_LADDER = 284; + EC_F_EC_WNAF_MUL = 187; + EC_F_EC_WNAF_PRECOMPUTE_MULT = 188; + EC_F_I2D_ECPARAMETERS = 190; + EC_F_I2D_ECPKPARAMETERS = 191; + EC_F_I2D_ECPRIVATEKEY = 192; + EC_F_I2O_ECPUBLICKEY = 151; + EC_F_NISTP224_PRE_COMP_NEW = 227; + EC_F_NISTP256_PRE_COMP_NEW = 236; + EC_F_NISTP521_PRE_COMP_NEW = 237; + EC_F_O2I_ECPUBLICKEY = 152; + EC_F_OLD_EC_PRIV_DECODE = 222; + EC_F_OSSL_ECDH_COMPUTE_KEY = 247; + EC_F_OSSL_ECDSA_SIGN_SIG = 249; + EC_F_OSSL_ECDSA_VERIFY_SIG = 250; + EC_F_PKEY_ECD_CTRL = 271; + EC_F_PKEY_ECD_DIGESTSIGN = 272; + EC_F_PKEY_ECD_DIGESTSIGN25519 = 276; + EC_F_PKEY_ECD_DIGESTSIGN448 = 277; + EC_F_PKEY_ECX_DERIVE = 269; + EC_F_PKEY_EC_CTRL = 197; + EC_F_PKEY_EC_CTRL_STR = 198; + EC_F_PKEY_EC_DERIVE = 217; + EC_F_PKEY_EC_INIT = 282; + EC_F_PKEY_EC_KDF_DERIVE = 283; + EC_F_PKEY_EC_KEYGEN = 199; + EC_F_PKEY_EC_PARAMGEN = 219; + EC_F_PKEY_EC_SIGN = 218; + EC_F_VALIDATE_ECX_DERIVE = 278; + + (* + * EC reason codes. + *) + EC_R_ASN1_ERROR = 115; + EC_R_BAD_SIGNATURE = 156; + EC_R_BIGNUM_OUT_OF_RANGE = 144; + EC_R_BUFFER_TOO_SMALL = 100; + EC_R_CANNOT_INVERT = 165; + EC_R_COORDINATES_OUT_OF_RANGE = 146; + EC_R_CURVE_DOES_NOT_SUPPORT_ECDH = 160; + EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING = 159; + EC_R_D2I_ECPKPARAMETERS_FAILURE = 117; + EC_R_DECODE_ERROR = 142; + EC_R_DISCRIMINANT_IS_ZERO = 118; + EC_R_EC_GROUP_NEW_BY_NAME_FAILURE = 119; + EC_R_FIELD_TOO_LARGE = 143; + EC_R_GF2M_NOT_SUPPORTED = 147; + EC_R_GROUP2PKPARAMETERS_FAILURE = 120; + EC_R_I2D_ECPKPARAMETERS_FAILURE = 121; + EC_R_INCOMPATIBLE_OBJECTS = 101; + EC_R_INVALID_ARGUMENT = 112; + EC_R_INVALID_COMPRESSED_POINT = 110; + EC_R_INVALID_COMPRESSION_BIT = 109; + EC_R_INVALID_CURVE = 141; + EC_R_INVALID_DIGEST = 151; + EC_R_INVALID_DIGEST_TYPE = 138; + EC_R_INVALID_ENCODING = 102; + EC_R_INVALID_FIELD = 103; + EC_R_INVALID_FORM = 104; + EC_R_INVALID_GROUP_ORDER = 122; + EC_R_INVALID_KEY = 116; + EC_R_INVALID_OUTPUT_LENGTH = 161; + EC_R_INVALID_PEER_KEY = 133; + EC_R_INVALID_PENTANOMIAL_BASIS = 132; + EC_R_INVALID_PRIVATE_KEY = 123; + EC_R_INVALID_TRINOMIAL_BASIS = 137; + EC_R_KDF_PARAMETER_ERROR = 148; + EC_R_KEYS_NOT_SET = 140; + EC_R_LADDER_POST_FAILURE = 136; + EC_R_LADDER_PRE_FAILURE = 153; + EC_R_LADDER_STEP_FAILURE = 162; + EC_R_MISSING_PARAMETERS = 124; + EC_R_MISSING_PRIVATE_KEY = 125; + EC_R_NEED_NEW_SETUP_VALUES = 157; + EC_R_NOT_A_NIST_PRIME = 135; + EC_R_NOT_IMPLEMENTED = 126; + EC_R_NOT_INITIALIZED = 111; + EC_R_NO_PARAMETERS_SET = 139; + EC_R_NO_PRIVATE_VALUE = 154; + EC_R_OPERATION_NOT_SUPPORTED = 152; + EC_R_PASSED_NULL_PARAMETER = 134; + EC_R_PEER_KEY_ERROR = 149; + EC_R_PKPARAMETERS2GROUP_FAILURE = 127; + EC_R_POINT_ARITHMETIC_FAILURE = 155; + EC_R_POINT_AT_INFINITY = 106; + EC_R_POINT_COORDINATES_BLIND_FAILURE = 163; + EC_R_POINT_IS_NOT_ON_CURVE = 107; + EC_R_RANDOM_NUMBER_GENERATION_FAILED = 158; + EC_R_SHARED_INFO_ERROR = 150; + EC_R_SLOT_FULL = 108; + EC_R_UNDEFINED_GENERATOR = 113; + EC_R_UNDEFINED_ORDER = 128; + EC_R_UNKNOWN_COFACTOR = 164; + EC_R_UNKNOWN_GROUP = 129; + EC_R_UNKNOWN_ORDER = 114; + EC_R_UNSUPPORTED_FIELD = 131; + EC_R_WRONG_CURVE_PARAMETERS = 145; + EC_R_WRONG_ORDER = 130; + + function ERR_load_EC_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_engine.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_engine.h2pas new file mode 100644 index 000000000..37ec6ee7a --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_engine.h2pas @@ -0,0 +1,706 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_engine; + +interface + +// Headers for OpenSSL 1.1.1 +// engine.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_ec; + +const + (* + * These flags are used to control combinations of algorithm (methods) by + * bitwise "OR"ing. + *) + ENGINE_METHOD_RSA = TIdC_UINT($0001); + ENGINE_METHOD_DSA = TIdC_UINT($0002); + ENGINE_METHOD_DH = TIdC_UINT($0004); + ENGINE_METHOD_RAND = TIdC_UINT($0008); + ENGINE_METHOD_CIPHERS = TIdC_UINT($0040); + ENGINE_METHOD_DIGESTS = TIdC_UINT($0080); + ENGINE_METHOD_PKEY_METHS = TIdC_UINT($0200); + ENGINE_METHOD_PKEY_ASN1_METHS = TIdC_UINT($0400); + ENGINE_METHOD_EC = TIdC_UINT($0800); + (* Obvious all-or-nothing cases. *) + ENGINE_METHOD_ALL = TIdC_UINT($FFFF); + ENGINE_METHOD_NONE = TIdC_UINT($0000); + + // + // This(ese) flag(s) controls behaviour of the ENGINE_TABLE mechanism used + // internally to control registration of ENGINE implementations, and can be + // set by ENGINE_set_table_flags(). The "NOINIT" flag prevents attempts to + // initialise registered ENGINEs if they are not already initialised. + // + ENGINE_TABLE_FLAG_NOINIT = TIdC_UINT($0001); + + // + // This flag is for ENGINEs that wish to handle the various 'CMD'-related + // control commands on their own. Without this flag, ENGINE_ctrl() handles + // these control commands on behalf of the ENGINE using their "cmd_defns" + // data. + // + ENGINE_FLAGS_MANUAL_CMD_CTRL = TIdC_INT($0002); + + // + // This flag is for ENGINEs who return new duplicate structures when found + // via "ENGINE_by_id()". When an ENGINE must store state (eg. if + // ENGINE_ctrl() commands are called in sequence as part of some stateful + // process like key-generation setup and execution), it can set this flag - + // then each attempt to obtain the ENGINE will result in it being copied intoo + // a new structure. Normally, ENGINEs don't declare this flag so + // ENGINE_by_id() just increments the existing ENGINE's structural reference + // count. + // + ENGINE_FLAGS_BY_ID_COPY = TIdC_INT($0004); + + // + // This flag if for an ENGINE that does not want its methods registered as + // part of ENGINE_register_all_complete() for example if the methods are not + // usable as default methods. + // + + ENGINE_FLAGS_NO_REGISTER_ALL = TIdC_INT($0008); + + // + // ENGINEs can support their own command types, and these flags are used in + // ENGINE_CTRL_GET_CMD_FLAGS to indicate to the caller what kind of input + // each command expects. Currently only numeric and string input is + // supported. If a control command supports none of the _NUMERIC, _STRING, or + // _NO_INPUT options, then it is regarded as an "internal" control command - + // and not for use in config setting situations. As such, they're not + // available to the ENGINE_ctrl_cmd_string() function, only raw ENGINE_ctrl() + // access. Changes to this list of 'command types' should be reflected + // carefully in ENGINE_cmd_is_executable() and ENGINE_ctrl_cmd_string(). + // + + // accepts a 'long' input value (3rd parameter to ENGINE_ctrl) */ + ENGINE_CMD_FLAG_NUMERIC = TIdC_UINT($0001); + // + // accepts string input (cast from 'void*' to 'const char *', 4th parameter + // to ENGINE_ctrl) + // + ENGINE_CMD_FLAG_STRING = TIdC_UINT($0002); + // + // Indicates that the control command takes *no* input. Ie. the control + // command is unparameterised. + // + ENGINE_CMD_FLAG_NO_INPUT = TIdC_UINT($0004); + // + // Indicates that the control command is internal. This control command won't + // be shown in any output, and is only usable through the ENGINE_ctrl_cmd() + // function. + // + ENGINE_CMD_FLAG_INTERNAL = TIdC_UINT($0008); + + // + // NB: These 3 control commands are deprecated and should not be used. + // ENGINEs relying on these commands should compile conditional support for + // compatibility (eg. if these symbols are defined) but should also migrate + // the same functionality to their own ENGINE-specific control functions that + // can be "discovered" by calling applications. The fact these control + // commands wouldn't be "executable" (ie. usable by text-based config) + // doesn't change the fact that application code can find and use them + // without requiring per-ENGINE hacking. + // + + // + // These flags are used to tell the ctrl function what should be done. All + // command numbers are shared between all engines, even if some don't make + // sense to some engines. In such a case, they do nothing but return the + // error ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED. + // + ENGINE_CTRL_SET_LOGSTREAM = 1; + ENGINE_CTRL_SET_PASSWORD_CALLBACK = 2; + ENGINE_CTRL_HUP = 3;// Close and reinitialise + // any handles/connections + // etc. + ENGINE_CTRL_SET_USER_INTERFACE = 4;// Alternative to callback + ENGINE_CTRL_SET_CALLBACK_DATA = 5;// User-specific data, used + // when calling the password + // callback and the user + // interface + ENGINE_CTRL_LOAD_CONFIGURATION = 6;// Load a configuration, + // given a string that + // represents a file name + // or so + ENGINE_CTRL_LOAD_SECTION = 7;// Load data from a given + // section in the already + // loaded configuration + + // + // These control commands allow an application to deal with an arbitrary + // engine in a dynamic way. Warn: Negative return values indicate errors FOR + // THESE COMMANDS because zero is used to indicate 'end-of-list'. Other + // commands, including ENGINE-specific command types, return zero for an + // error. An ENGINE can choose to implement these ctrl functions, and can + // internally manage things however it chooses - it does so by setting the + // ENGINE_FLAGS_MANUAL_CMD_CTRL flag (using ENGINE_set_flags()). Otherwise + // the ENGINE_ctrl() code handles this on the ENGINE's behalf using the + // cmd_defns data (set using ENGINE_set_cmd_defns()). This means an ENGINE's + // ctrl() handler need only implement its own commands - the above "meta" + // commands will be taken care of. + // + + // + // Returns non-zero if the supplied ENGINE has a ctrl() handler. If "not", + // then all the remaining control commands will return failure, so it is + // worth checking this first if the caller is trying to "discover" the + // engine's capabilities and doesn't want errors generated unnecessarily. + // + ENGINE_CTRL_HAS_CTRL_FUNCTION = 10; + // + // Returns a positive command number for the first command supported by the + // engine. Returns zero if no ctrl commands are supported. + // + ENGINE_CTRL_GET_FIRST_CMD_TYPE = 11; + // + // The 'long' argument specifies a command implemented by the engine, and the + // return value is the next command supported, or zero if there are no more. + // + ENGINE_CTRL_GET_NEXT_CMD_TYPE = 12; + // + // The 'void*' argument is a command name (cast from 'const char *'), and the + // return value is the command that corresponds to it. + // + ENGINE_CTRL_GET_CMD_FROM_NAME = 13; + // + // The next two allow a command to be converted into its corresponding string + // form. In each case, the 'long' argument supplies the command. In the + // NAME_LEN case, the return value is the length of the command name (not + // counting a trailing EOL). In the NAME case, the 'void*' argument must be a + // string buffer large enough, and it will be populated with the name of the + // command (WITH a trailing EOL). + // + ENGINE_CTRL_GET_NAME_LEN_FROM_CMD = 14; + ENGINE_CTRL_GET_NAME_FROM_CMD = 15; + // The next two are similar but give a "short description" of a command. */ + ENGINE_CTRL_GET_DESC_LEN_FROM_CMD = 16; + ENGINE_CTRL_GET_DESC_FROM_CMD = 17; + // + // With this command, the return value is the OR'd combination of + // ENGINE_CMD_FLAG_*** values that indicate what kind of input a given + // engine-specific ctrl command expects. + // + ENGINE_CTRL_GET_CMD_FLAGS = 18; + + // + // ENGINE implementations should start the numbering of their own control + // commands from this value. (ie. ENGINE_CMD_BASE, ENGINE_CMD_BASE += 1, etc). + // + ENGINE_CMD_BASE = 200; + + // + // NB: These 2 nCipher "chil" control commands are deprecated, and their + // functionality is now available through ENGINE-specific control commands + // (exposed through the above-mentioned 'CMD'-handling). Code using these 2 + // commands should be migrated to the more general command handling before + // these are removed. + // + + // Flags specific to the nCipher "chil" engine */ + ENGINE_CTRL_CHIL_SET_FORKCHECK = 100; + // + // Depending on the value of the (long)i argument, this sets or + // unsets the SimpleForkCheck flag in the CHIL API to enable or + // disable checking and workarounds for applications that fork(). + // + ENGINE_CTRL_CHIL_NO_LOCKING = 101; + // + // This prevents the initialisation function from providing mutex + // callbacks to the nCipher library. + // + +type + // + // If an ENGINE supports its own specific control commands and wishes the + // framework to handle the above 'ENGINE_CMD_***'-manipulation commands on + // its behalf, it should supply a null-terminated array of ENGINE_CMD_DEFN + // entries to ENGINE_set_cmd_defns(). It should also implement a ctrl() + // handler that supports the stated commands (ie. the "cmd_num" entries as + // described by the array). NB: The array must be ordered in increasing order + // of cmd_num. "null-terminated" means that the last ENGINE_CMD_DEFN element + // has cmd_num set to zero and/or cmd_name set to NULL. + // + ENGINE_CMD_DEFN_st = record + cmd_num: TIdC_UINT; + cmd_name: PIdAnsiChar; + cmd_desc: PIdAnsiChar; + cmd_flags: TIdC_UINT; + end; + ENGINE_CMD_DEFN = ENGINE_CMD_DEFN_st; + PENGINE_CMD_DEFN = ^ENGINE_CMD_DEFN; + + // Generic function pointer */ + ENGINE_GEN_FUNC_PTR = function: TIdC_INT; cdecl; + // Generic function pointer taking no arguments */ + ENGINE_GEN_INT_FUNC_PTR = function(v1: PENGINE): TIdC_INT; cdecl; + // Specific control function pointer */ + f = procedure; cdecl; + ENGINE_CTRL_FUNC_PTR = function(v1: PENGINE; v2: TIdC_INT; v3: TIdC_LONG; v4: Pointer; v5: f): TIdC_INT; cdecl; + // Generic load_key function pointer */ + ENGINE_LOAD_KEY_PTR = function(v1: PENGINE; const v2: PIdAnsiChar; + ui_method: PUI_METHOD; callback_data: Pointer): PEVP_PKEY; cdecl; + //ENGINE_SSL_CLIENT_CERT_PTR = function(v1: PENGINE; ssl: PSSL; + // {STACK_OF(X509_NAME) *ca_dn;} pcert: PPX509; pkey: PPEVP_PKEY; + // {STACK_OF(X509) **pother;} ui_method: PUI_METHOD; callback_data: Pointer): TIdC_INT; cdecl; + + // + // These callback types are for an ENGINE's handler for cipher and digest logic. + // These handlers have these prototypes; + // int foo(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid); + // int foo(ENGINE *e, const EVP_MD **digest, const int **nids, int nid); + // Looking at how to implement these handlers in the case of cipher support, if + // the framework wants the EVP_CIPHER for 'nid', it will call; + // foo(e, &p_evp_cipher, NULL, nid); (return zero for failure) + // If the framework wants a list of supported 'nid's, it will call; + // foo(e, NULL, &p_nids, 0); (returns number of 'nids' or -1 for error) + // + // + // Returns to a pointer to the array of supported cipher 'nid's. If the + // second parameter is non-NULL it is set to the size of the returned array. + // + ENGINE_CIPHERS_PTR = function(v1: PENGINE; const v2: PPEVP_CIPHER; + const v3: PPIdC_INT; v4: TIdC_INT): TIdC_INT; cdecl; + ENGINE_DIGESTS_PTR = function(v1: PENGINE; const v2: PPEVP_MD; + const v3: PPIdC_INT; v4: TIdC_INT): TIdC_INT; cdecl; + ENGINE_PKEY_METHS_PTR = function(v1: PENGINE; v2: PPEVP_PKEY_METHOD; + const v3: PPIdC_INT; v4: TIdC_INT): TIdC_INT; cdecl; + ENGINE_PKEY_ASN1_METHS_PTR = function(v1: PENGINE; v2: PPEVP_PKEY_ASN1_METHOD; + const v3: PPIdC_INT; v4: TIdC_INT): TIdC_INT; cdecl; + + dyn_MEM_malloc_fn = function(v1: TIdC_SIZET; const v2: PIdAnsiChar; v3: TIdC_INT): Pointer; cdecl; + dyn_MEM_realloc_fn = function(v1: Pointer; v2: TIdC_SIZET; const v3: PIdAnsiChar; v4: TIdC_INT): Pointer; cdecl; + dyn_MEM_free_fn = procedure(v1: Pointer; const v2: PIdAnsiChar; v3: TIdC_INT); cdecl; + + st_dynamic_MEM_fns = record + malloc_fn: dyn_MEM_malloc_fn; + realloc_fn: dyn_MEM_realloc_fn; + free_fn: dyn_MEM_free_fn; + end; + dynamic_MEM_fns = st_dynamic_MEM_fns; + + //* + // * FIXME: Perhaps the memory and locking code (crypto.h) should declare and + // * use these types so we (and any other dependent code) can simplify a bit?? + // */ + //* The top-level structure */ + st_dynamic_fns = record + static_state: Pointer; + mem_fns: dynamic_MEM_fns; + end; + dynamic_fns = st_dynamic_fns; + + //* + // * The version checking function should be of this prototype. NB: The + // * ossl_version value passed in is the OSSL_DYNAMIC_VERSION of the loading + // * code. If this function returns zero, it indicates a (potential) version + // * incompatibility and the loaded library doesn't believe it can proceed. + // * Otherwise, the returned value is the (latest) version supported by the + // * loading library. The loader may still decide that the loaded code's + // * version is unsatisfactory and could veto the load. The function is + // * expected to be implemented with the symbol name "v_check", and a default + // * implementation can be fully instantiated with + // * IMPLEMENT_DYNAMIC_CHECK_FN(). + // */ + dynamic_v_check_fn = function(ossl_version: TIdC_ULONG): TIdC_ULONG; cdecl; + //# define IMPLEMENT_DYNAMIC_CHECK_FN() \ + // OPENSSL_EXPORT unsigned long v_check(unsigned long v); \ + // OPENSSL_EXPORT unsigned long v_check(unsigned long v) { \ + // if (v >= OSSL_DYNAMIC_OLDEST) return OSSL_DYNAMIC_VERSION; \ + // return 0; } + + //* + // * This function is passed the ENGINE structure to initialise with its own + // * function and command settings. It should not adjust the structural or + // * functional reference counts. If this function returns zero, (a) the load + // * will be aborted, (b) the previous ENGINE state will be memcpy'd back onto + // * the structure, and (c) the shared library will be unloaded. So + // * implementations should do their own internal cleanup in failure + // * circumstances otherwise they could leak. The 'id' parameter, if non-NULL, + // * represents the ENGINE id that the loader is looking for. If this is NULL, + // * the shared library can choose to return failure or to initialise a + // * 'default' ENGINE. If non-NULL, the shared library must initialise only an + // * ENGINE matching the passed 'id'. The function is expected to be + // * implemented with the symbol name "bind_engine". A standard implementation + // * can be instantiated with IMPLEMENT_DYNAMIC_BIND_FN(fn) where the parameter + // * 'fn' is a callback function that populates the ENGINE structure and + // * returns an int value (zero for failure). 'fn' should have prototype; + // * [static] int fn(ENGINE *e, const char *id); + // */ + dynamic_bind_engine = function(e: PENGINE; const id: PIdAnsiChar; + const fns: dynamic_fns): TIdC_INT; cdecl; + + // + // STRUCTURE functions ... all of these functions deal with pointers to + // ENGINE structures where the pointers have a "structural reference". This + // means that their reference is to allowed access to the structure but it + // does not imply that the structure is functional. To simply increment or + // decrement the structural reference count, use ENGINE_by_id and + // ENGINE_free. NB: This is not required when iterating using ENGINE_get_next + // as it will automatically decrement the structural reference count of the + // "current" ENGINE and increment the structural reference count of the + // ENGINE it returns (unless it is NULL). + // + // Get the first/last "ENGINE" type available. */ + function ENGINE_get_first: PENGINE; + function ENGINE_get_last: PENGINE; + function ENGINE_get_next(e: PENGINE): PENGINE; + function ENGINE_get_prev(e: PENGINE): PENGINE; + function ENGINE_add(e: PENGINE): TIdC_INT; + function ENGINE_remove(e: PENGINE): TIdC_INT; + function ENGINE_by_id(const id: PIdAnsiChar): PENGINE; + + procedure ENGINE_load_builtin_engines; + + // + // Get and set global flags (ENGINE_TABLE_FLAG_***) for the implementation + // "registry" handling. + // + function ENGINE_get_table_flags: TIdC_UINT; + procedure ENGINE_set_table_flags(flags: TIdC_UINT); + + //- Manage registration of ENGINEs per "table". For each type, there are 3 + // functions; + // ENGINE_register_***(e) - registers the implementation from 'e' (if it has one) + // ENGINE_unregister_***(e) - unregister the implementation from 'e' + // ENGINE_register_all_***() - call ENGINE_register_***() for each 'e' in the list + // Cleanup is automatically registered from each table when required. + // + + function ENGINE_register_RSA(e: PENGINE): TIdC_INT; + procedure ENGINE_unregister_RSA(e: PENGINE); + procedure ENGINE_register_all_RSA; + + function ENGINE_register_DSA(e: PENGINE): TIdC_INT; + procedure ENGINE_unregister_DSA(e: PENGINE); + procedure ENGINE_register_all_DSA; + + function ENGINE_register_EC(e: PENGINE): TIdC_INT; + procedure ENGINE_unregister_EC(e: PENGINE); + procedure ENGINE_register_all_EC; + + function ENGINE_register_DH(e: PENGINE): TIdC_INT; + procedure ENGINE_unregister_DH(e: PENGINE); + procedure ENGINE_register_all_DH; + + function ENGINE_register_RAND(e: PENGINE): TIdC_INT; + procedure ENGINE_unregister_RAND(e: PENGINE); + procedure ENGINE_register_all_RAND; + + function ENGINE_register_ciphers(e: PENGINE): TIdC_INT; + procedure ENGINE_unregister_ciphers(e: PENGINE); + procedure ENGINE_register_all_ciphers; + + function ENGINE_register_digests(e: PENGINE): TIdC_INT; + procedure ENGINE_unregister_digests(e: PENGINE); + procedure ENGINE_register_all_digests; + + function ENGINE_register_pkey_meths(e: PENGINE): TIdC_INT; + procedure ENGINE_unregister_pkey_meths(e: PENGINE); + procedure ENGINE_register_all_pkey_meths; + + function ENGINE_register_pkey_asn1_meths(e: PENGINE): TIdC_INT; + procedure ENGINE_unregister_pkey_asn1_meths(e: PENGINE); + procedure ENGINE_register_all_pkey_asn1_meths; + + // + // These functions register all support from the above categories. Note, use + // of these functions can result in static linkage of code your application + // may not need. If you only need a subset of functionality, consider using + // more selective initialisation. + // + function ENGINE_register_complete(e: PENGINE): TIdC_INT; + function ENGINE_register_all_complete: TIdC_INT; + + // + // Send parameterised control commands to the engine. The possibilities to + // send down an integer, a pointer to data or a function pointer are + // provided. Any of the parameters may or may not be NULL, depending on the + // command number. In actuality, this function only requires a structural + // (rather than functional) reference to an engine, but many control commands + // may require the engine be functional. The caller should be aware of trying + // commands that require an operational ENGINE, and only use functional + // references in such situations. + // + function ENGINE_ctrl(e: PENGINE; cmd: TIdC_INT; i: TIdC_LONG; p: Pointer; v1: f): TIdC_INT; + + // + // This function tests if an ENGINE-specific command is usable as a + // "setting". Eg. in an application's config file that gets processed through + // ENGINE_ctrl_cmd_string(). If this returns zero, it is not available to + // ENGINE_ctrl_cmd_string(), only ENGINE_ctrl(). + // + function ENGINE_cmd_is_executable(e: PENGINE; cmd: TIdC_INT): TIdC_INT; + + // + // This function works like ENGINE_ctrl() with the exception of taking a + // command name instead of a command number, and can handle optional + // commands. See the comment on ENGINE_ctrl_cmd_string() for an explanation + // on how to use the cmd_name and cmd_optional. + // + function ENGINE_ctrl_cmd(e: PENGINE; const cmd_name: PIdAnsiChar; i: TIdC_LONG; p: Pointer; v1: f; cmd_optional: TIdC_INT): TIdC_INT; + + // + // This function passes a command-name and argument to an ENGINE. The + // cmd_name is converted to a command number and the control command is + // called using 'arg' as an argument (unless the ENGINE doesn't support such + // a command, in which case no control command is called). The command is + // checked for input flags, and if necessary the argument will be converted + // to a numeric value. If cmd_optional is non-zero, then if the ENGINE + // doesn't support the given cmd_name the return value will be success + // anyway. This function is intended for applications to use so that users + // (or config files) can supply engine-specific config data to the ENGINE at + // run-time to control behaviour of specific engines. As such, it shouldn't + // be used for calling ENGINE_ctrl() functions that return data, deal with + // binary data, or that are otherwise supposed to be used directly through + // ENGINE_ctrl() in application code. Any "return" data from an ENGINE_ctrl() + // operation in this function will be lost - the return value is interpreted + // as failure if the return value is zero, success otherwise, and this + // function returns a boolean value as a result. In other words, vendors of + // 'ENGINE'-enabled devices should write ENGINE implementations with + // parameterisations that work in this scheme, so that compliant ENGINE-based + // applications can work consistently with the same configuration for the + // same ENGINE-enabled devices, across applications. + // + function ENGINE_ctrl_cmd_string(e: PENGINE; const cmd_name: PIdAnsiChar; const arg: PIdAnsiChar; cmd_optional: TIdC_INT): TIdC_INT; + + // + // These functions are useful for manufacturing new ENGINE structures. They + // don't address reference counting at all - one uses them to populate an + // ENGINE structure with personalised implementations of things prior to + // using it directly or adding it to the builtin ENGINE list in OpenSSL. + // These are also here so that the ENGINE structure doesn't have to be + // exposed and break binary compatibility! + // + function ENGINE_new: PENGINE; + function ENGINE_free(e: PENGINE): TIdC_INT; + function ENGINE_up_ref(e: PENGINE): TIdC_INT; + function ENGINE_set_id(e: PENGINE; const id: PIdAnsiChar): TIdC_INT; + function ENGINE_set_name(e: PENGINE; const name: PIdAnsiChar): TIdC_INT; + function ENGINE_set_RSA(e: PENGINE; const rsa_meth: PRSA_METHOD): TIdC_INT; + function ENGINE_set_DSA(e: PENGINE; const dsa_meth: PDSA_METHOD): TIdC_INT; + function ENGINE_set_EC(e: PENGINE; const ecdsa_meth: PEC_KEY_METHOD): TIdC_INT; + function ENGINE_set_DH(e: PENGINE; const dh_meth: PDH_METHOD): TIdC_INT; + function ENGINE_set_RAND(e: PENGINE; const rand_meth: PRAND_METHOD): TIdC_INT; + function ENGINE_set_destroy_function(e: PENGINE; destroy_f: ENGINE_GEN_INT_FUNC_PTR): TIdC_INT; + function ENGINE_set_init_function(e: PENGINE; init_f: ENGINE_GEN_INT_FUNC_PTR): TIdC_INT; + function ENGINE_set_finish_function(e: PENGINE; finish_f: ENGINE_GEN_INT_FUNC_PTR): TIdC_INT; + function ENGINE_set_ctrl_function(e: PENGINE; ctrl_f: ENGINE_CTRL_FUNC_PTR): TIdC_INT; + function ENGINE_set_load_privkey_function(e: PENGINE; loadpriv_f: ENGINE_LOAD_KEY_PTR): TIdC_INT; + function ENGINE_set_load_pubkey_function(e: PENGINE; loadpub_f: ENGINE_LOAD_KEY_PTR): TIdC_INT; + //function ENGINE_set_load_ssl_client_cert_function(e: PENGINE; loadssl_f: ENGINE_SSL_CLIENT_CERT_PTR): TIdC_INT; + function ENGINE_set_ciphers(e: PENGINE; f: ENGINE_CIPHERS_PTR): TIdC_INT; + function ENGINE_set_digests(e: PENGINE; f: ENGINE_DIGESTS_PTR): TIdC_INT; + function ENGINE_set_pkey_meths(e: PENGINE; f: ENGINE_PKEY_METHS_PTR): TIdC_INT; + function ENGINE_set_pkey_asn1_meths(e: PENGINE; f: ENGINE_PKEY_ASN1_METHS_PTR): TIdC_INT; + function ENGINE_set_flags(e: PENGINE; flags: TIdC_INT): TIdC_INT; + function ENGINE_set_cmd_defns(e: PENGINE; const defns: PENGINE_CMD_DEFN): TIdC_INT; + // These functions allow control over any per-structure ENGINE data. */ + //#define ENGINE_get_ex_new_index(l, p, newf, dupf, freef) CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_ENGINE, l, p, newf, dupf, freef) + function ENGINE_set_ex_data(e: PENGINE; idx: TIdC_INT; arg: Pointer): TIdC_INT; + function ENGINE_get_ex_data(const e: PENGINE; idx: TIdC_INT): Pointer; + + // + // These return values from within the ENGINE structure. These can be useful + // with functional references as well as structural references - it depends + // which you obtained. Using the result for functional purposes if you only + // obtained a structural reference may be problematic! + // + function ENGINE_get_id(const e: PENGINE): PIdAnsiChar; + function ENGINE_get_name(const e: PENGINE): PIdAnsiChar; + function ENGINE_get_RSA(const e: PENGINE): PRSA_METHOD; + function ENGINE_get_DSA(const e: PENGINE): PDSA_METHOD; + function ENGINE_get_EC(const e: PENGINE): PEC_METHOD; + function ENGINE_get_DH(const e: PENGINE): PDH_METHOD; + function ENGINE_get_RAND(const e: PENGINE): PRAND_METHOD; + function ENGINE_get_destroy_function(const e: PENGINE): ENGINE_GEN_INT_FUNC_PTR; + function ENGINE_get_init_function(const e: PENGINE): ENGINE_GEN_INT_FUNC_PTR; + function ENGINE_get_finish_function(const e: PENGINE): ENGINE_GEN_INT_FUNC_PTR; + function ENGINE_get_ctrl_function(const e: PENGINE): ENGINE_CTRL_FUNC_PTR; + function ENGINE_get_load_privkey_function(const e: PENGINE): ENGINE_LOAD_KEY_PTR; + function ENGINE_get_load_pubkey_function(const e: PENGINE): ENGINE_LOAD_KEY_PTR; + //function ENGINE_get_ssl_client_cert_function(const e: PENGINE): ENGINE_SSL_CLIENT_CERT_PTR; + + function ENGINE_get_ciphers(const e: PENGINE): ENGINE_CIPHERS_PTR; + function ENGINE_get_digests(const e: PENGINE): ENGINE_DIGESTS_PTR; + function ENGINE_get_pkey_meths(const e: PENGINE): ENGINE_PKEY_METHS_PTR; + function ENGINE_get_pkey_asn1_meths(const e: PENGINE): ENGINE_PKEY_ASN1_METHS_PTR; + function ENGINE_get_cipher(e: PENGINE; nid: TIdC_INT): PEVP_CIPHER; + function ENGINE_get_digest(e: PENGINE; nid: TIdC_INT): PEVP_MD; + function ENGINE_get_pkey_meth(e: PENGINE; nid: TIdC_INT): PEVP_PKEY_METHOD; + function ENGINE_get_pkey_asn1_meth(e: PENGINE; nid: TIdC_INT): PEVP_PKEY_ASN1_METHOD; + function ENGINE_get_pkey_asn1_meth_str(e: PENGINE; const str: PIdAnsiChar; len: TIdC_INT): PEVP_PKEY_ASN1_METHOD; + function ENGINE_pkey_asn1_find_str(pe: PPENGINE; const str: PIdAnsiChar; len: TIdC_INT): PEVP_PKEY_ASN1_METHOD; + function ENGINE_get_cmd_defns(const e: PENGINE): PENGINE_CMD_DEFN; + function ENGINE_get_flags(const e: PENGINE): TIdC_INT; + + ///* + // * FUNCTIONAL functions. These functions deal with ENGINE structures that + // * have (or will) be initialised for use. Broadly speaking, the structural + // * functions are useful for iterating the list of available engine types, + // * creating new engine types, and other "list" operations. These functions + // * actually deal with ENGINEs that are to be used. As such these functions + // * can fail (if applicable) when particular engines are unavailable - eg. if + // * a hardware accelerator is not attached or not functioning correctly. Each + // * ENGINE has 2 reference counts; structural and functional. Every time a + // * functional reference is obtained or released, a corresponding structural + // * reference is automatically obtained or released too. + // */ + + ///* + // * Initialise a engine type for use (or up its reference count if it's + // * already in use). This will fail if the engine is not currently operational + // * and cannot initialise. + // */ + function ENGINE_init(e: PENGINE): TIdC_INT; + ///* + // * Free a functional reference to a engine type. This does not require a + // * corresponding call to ENGINE_free as it also releases a structural + // * reference. + // */ + function ENGINE_finish(e: PENGINE): TIdC_INT; + + ///* + // * The following functions handle keys that are stored in some secondary + // * location, handled by the engine. The storage may be on a card or + // * whatever. + // */ + function ENGINE_load_private_key(e: PENGINE; const key_id: PIdAnsiChar; ui_method: PUI_METHOD; callback_data: Pointer): PEVP_PKEY; + function ENGINE_load_public_key(e: PENGINE; const key_id: PIdAnsiChar; ui_method: PUI_METHOD; callback_data: Pointer): PEVP_PKEY; + //function ENGINE_load_ssl_client_cert(e: PENGINE; s: PSSL; + // {STACK_OF(X509) *ca_dn;} {STACK_OF(X509) **pother;} ui_method: PUI_METHOD; + // callback_data: Pointer): TIdC_INT; + + ///* + // * This returns a pointer for the current ENGINE structure that is (by + // * default) performing any RSA operations. The value returned is an + // * incremented reference, so it should be free'd (ENGINE_finish) before it is + // * discarded. + // */ + function ENGINE_get_default_RSA: PENGINE; + //* Same for the other "methods" */ + function ENGINE_get_default_DSA: PENGINE; + function ENGINE_get_default_EC: PENGINE; + function ENGINE_get_default_DH: PENGINE; + function ENGINE_get_default_RAND: PENGINE; + ///* + // * These functions can be used to get a functional reference to perform + // * ciphering or digesting corresponding to "nid". + // */ + function ENGINE_get_cipher_engine(nid: TIdC_INT): PENGINE; + function ENGINE_get_digest_engine(nid: TIdC_INT): PENGINE; + function ENGINE_get_pkey_meth_engine(nid: TIdC_INT): PENGINE; + function ENGINE_get_pkey_asn1_meth_engine(nid: TIdC_INT): PENGINE; + ///* + // * This sets a new default ENGINE structure for performing RSA operations. If + // * the result is non-zero (success) then the ENGINE structure will have had + // * its reference count up'd so the caller should still free their own + // * reference 'e'. + // */ + function ENGINE_set_default_RSA(e: PENGINE): TIdC_INT; + function ENGINE_set_default_string(e: PENGINE; const def_list: PIdAnsiChar): TIdC_INT; + // Same for the other "methods" + function ENGINE_set_default_DSA(e: PENGINE): TIdC_INT; + function ENGINE_set_default_EC(e: PENGINE): TIdC_INT; + function ENGINE_set_default_DH(e: PENGINE): TIdC_INT; + function ENGINE_set_default_RAND(e: PENGINE): TIdC_INT; + function ENGINE_set_default_ciphers(e: PENGINE): TIdC_INT; + function ENGINE_set_default_digests(e: PENGINE): TIdC_INT; + function ENGINE_set_default_pkey_meths(e: PENGINE): TIdC_INT; + function ENGINE_set_default_pkey_asn1_meths(e: PENGINE): TIdC_INT; + + ///* + // * The combination "set" - the flags are bitwise "OR"d from the + // * ENGINE_METHOD_*** defines above. As with the "ENGINE_register_complete()" + // * function, this function can result in unnecessary static linkage. If your + // * application requires only specific functionality, consider using more + // * selective functions. + // */ + function ENGINE_set_default(e: PENGINE; flags: TIdC_ULONG): TIdC_INT; + + procedure ENGINE_add_conf_module; + + ///* Deprecated functions ... */ + ///* int ENGINE_clear_defaults(void); */ + // + //**************************/ + //* DYNAMIC ENGINE SUPPORT */ + //**************************/ + // + //* Binary/behaviour compatibility levels */ + //# define OSSL_DYNAMIC_VERSION (unsigned long)0x00030000 + //* + // * Binary versions older than this are too old for us (whether we're a loader + // * or a loadee) + // */ + //# define OSSL_DYNAMIC_OLDEST (unsigned long)0x00030000 + // + //* + // * When compiling an ENGINE entirely as an external shared library, loadable + // * by the "dynamic" ENGINE, these types are needed. The 'dynamic_fns' + // * structure type provides the calling application's (or library's) error + // * functionality and memory management function pointers to the loaded + // * library. These should be used/set in the loaded library code so that the + // * loading application's 'state' will be used/changed in all operations. The + // * 'static_state' pointer allows the loaded library to know if it shares the + // * same static data as the calling application (or library), and thus whether + // * these callbacks need to be set or not. + // */ + + + //# define IMPLEMENT_DYNAMIC_BIND_FN(fn) \ + // OPENSSL_EXPORT \ + // int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); \ + // OPENSSL_EXPORT \ + // int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { \ + // if (ENGINE_get_static_state() == fns->static_state) goto skip_cbs; \ + // CRYPTO_set_mem_functions(fns->mem_fns.malloc_fn, \ + // fns->mem_fns.realloc_fn, \ + // fns->mem_fns.free_fn); \ + // skip_cbs: \ + // if (!fn(e, id)) return 0; \ + // return 1; } + // + //* + // * If the loading application (or library) and the loaded ENGINE library + // * share the same static data (eg. they're both dynamically linked to the + // * same libcrypto.so) we need a way to avoid trying to set system callbacks - + // * this would fail, and for the same reason that it's unnecessary to try. If + // * the loaded ENGINE has (or gets from through the loader) its own copy of + // * the libcrypto static data, we will need to set the callbacks. The easiest + // * way to detect this is to have a function that returns a pointer to some + // * static data and let the loading application and loaded ENGINE compare + // * their respective values. + // */ + function ENGINE_get_static_state: Pointer; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_engineerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_engineerr.h2pas new file mode 100644 index 000000000..453fb2c28 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_engineerr.h2pas @@ -0,0 +1,123 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_engineerr; + +interface + +// Headers for OpenSSL 1.1.1 +// engineerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * ENGINE function codes. + *) + ENGINE_F_DIGEST_UPDATE = 198; + ENGINE_F_DYNAMIC_CTRL = 180; + ENGINE_F_DYNAMIC_GET_DATA_CTX = 181; + ENGINE_F_DYNAMIC_LOAD = 182; + ENGINE_F_DYNAMIC_SET_DATA_CTX = 183; + ENGINE_F_ENGINE_ADD = 105; + ENGINE_F_ENGINE_BY_ID = 106; + ENGINE_F_ENGINE_CMD_IS_EXECUTABLE = 170; + ENGINE_F_ENGINE_CTRL = 142; + ENGINE_F_ENGINE_CTRL_CMD = 178; + ENGINE_F_ENGINE_CTRL_CMD_STRING = 171; + ENGINE_F_ENGINE_FINISH = 107; + ENGINE_F_ENGINE_GET_CIPHER = 185; + ENGINE_F_ENGINE_GET_DIGEST = 186; + ENGINE_F_ENGINE_GET_FIRST = 195; + ENGINE_F_ENGINE_GET_LAST = 196; + ENGINE_F_ENGINE_GET_NEXT = 115; + ENGINE_F_ENGINE_GET_PKEY_ASN1_METH = 193; + ENGINE_F_ENGINE_GET_PKEY_METH = 192; + ENGINE_F_ENGINE_GET_PREV = 116; + ENGINE_F_ENGINE_INIT = 119; + ENGINE_F_ENGINE_LIST_ADD = 120; + ENGINE_F_ENGINE_LIST_REMOVE = 121; + ENGINE_F_ENGINE_LOAD_PRIVATE_KEY = 150; + ENGINE_F_ENGINE_LOAD_PUBLIC_KEY = 151; + ENGINE_F_ENGINE_LOAD_SSL_CLIENT_CERT = 194; + ENGINE_F_ENGINE_NEW = 122; + ENGINE_F_ENGINE_PKEY_ASN1_FIND_STR = 197; + ENGINE_F_ENGINE_REMOVE = 123; + ENGINE_F_ENGINE_SET_DEFAULT_STRING = 189; + ENGINE_F_ENGINE_SET_ID = 129; + ENGINE_F_ENGINE_SET_NAME = 130; + ENGINE_F_ENGINE_TABLE_REGISTER = 184; + ENGINE_F_ENGINE_UNLOCKED_FINISH = 191; + ENGINE_F_ENGINE_UP_REF = 190; + ENGINE_F_INT_CLEANUP_ITEM = 199; + ENGINE_F_INT_CTRL_HELPER = 172; + ENGINE_F_INT_ENGINE_CONFIGURE = 188; + ENGINE_F_INT_ENGINE_MODULE_INIT = 187; + ENGINE_F_OSSL_HMAC_INIT = 200; + + (* + * ENGINE reason codes. + *) + ENGINE_R_ALREADY_LOADED = 100; + ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER = 133; + ENGINE_R_CMD_NOT_EXECUTABLE = 134; + ENGINE_R_COMMAND_TAKES_INPUT = 135; + ENGINE_R_COMMAND_TAKES_NO_INPUT = 136; + ENGINE_R_CONFLICTING_ENGINE_ID = 103; + ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED = 119; + ENGINE_R_DSO_FAILURE = 104; + ENGINE_R_DSO_NOT_FOUND = 132; + ENGINE_R_ENGINES_SECTION_ERROR = 148; + ENGINE_R_ENGINE_CONFIGURATION_ERROR = 102; + ENGINE_R_ENGINE_IS_NOT_IN_LIST = 105; + ENGINE_R_ENGINE_SECTION_ERROR = 149; + ENGINE_R_FAILED_LOADING_PRIVATE_KEY = 128; + ENGINE_R_FAILED_LOADING_PUBLIC_KEY = 129; + ENGINE_R_FINISH_FAILED = 106; + ENGINE_R_ID_OR_NAME_MISSING = 108; + ENGINE_R_INIT_FAILED = 109; + ENGINE_R_INTERNAL_LIST_ERROR = 110; + ENGINE_R_INVALID_ARGUMENT = 143; + ENGINE_R_INVALID_CMD_NAME = 137; + ENGINE_R_INVALID_CMD_NUMBER = 138; + ENGINE_R_INVALID_INIT_VALUE = 151; + ENGINE_R_INVALID_STRING = 150; + ENGINE_R_NOT_INITIALISED = 117; + ENGINE_R_NOT_LOADED = 112; + ENGINE_R_NO_CONTROL_FUNCTION = 120; + ENGINE_R_NO_INDEX = 144; + ENGINE_R_NO_LOAD_FUNCTION = 125; + ENGINE_R_NO_REFERENCE = 130; + ENGINE_R_NO_SUCH_ENGINE = 116; + ENGINE_R_UNIMPLEMENTED_CIPHER = 146; + ENGINE_R_UNIMPLEMENTED_DIGEST = 147; + ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD = 101; + ENGINE_R_VERSION_INCOMPATIBILITY = 145; + + function ERR_load_ENGINE_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_err.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_err.h2pas new file mode 100644 index 000000000..cecf1aca7 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_err.h2pas @@ -0,0 +1,275 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_err; + +interface + +// Headers for OpenSSL 1.1.1 +// err.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + ERR_TXT_MALLOCED = $01; + ERR_TXT_STRING = $02; + ERR_FLAG_MARK = $01; + ERR_FLAG_CLEAR = $02; + + ERR_NUM_ERRORS = 16; + +//* library */ + ERR_LIB_SYS = 2; + ERR_LIB_BN = 3; + ERR_LIB_RSA = 4; + ERR_LIB_DH = 5; + ERR_LIB_EVP = 6; + ERR_LIB_BUF = 7; + ERR_LIB_OBJ = 8; + ERR_LIB_PEM = 9; + ERR_LIB_DSA = 10; + ERR_LIB_X509 = 11; + // ERR_LIB_METH 12 + ERR_LIB_ASN1 = 13; + ERR_LIB_CONF = 14; + ERR_LIB_CRYPTO = 15; + ERR_LIB_EC = 16; + ERR_LIB_SSL = 20; +(* #define ERR_LIB_SSL23 21 *) +(* #define ERR_LIB_SSL2 22 *) +(* #define ERR_LIB_SSL3 23 *) +(* #define ERR_LIB_RSAREF 30 *) +(* #define ERR_LIB_PROXY 31 *) + ERR_LIB_BIO = 32; + ERR_LIB_PKCS7 = 33; + ERR_LIB_X509V3 = 34; + ERR_LIB_PKCS12 = 35; + ERR_LIB_RAND = 36; + ERR_LIB_DSO = 37; + ERR_LIB_ENGINE = 38; + ERR_LIB_OCSP = 39; + ERR_LIB_UI = 40; + ERR_LIB_COMP = 41; + ERR_LIB_ECDSA = 42; + ERR_LIB_ECDH = 43; + ERR_LIB_OSSL_STORE = 44; + ERR_LIB_FIPS = 45; + ERR_LIB_CMS = 46; + ERR_LIB_TS = 47; + ERR_LIB_HMAC = 48; +(* # define ERR_LIB_JPAKE 49 *) + ERR_LIB_CT = 50; + ERR_LIB_ASYNC = 51; + ERR_LIB_KDF = 52; + ERR_LIB_SM2 = 53; + ERR_LIB_USER = 128; + +//* OS functions */ + SYS_F_FOPEN = 1; + SYS_F_CONNECT = 2; + SYS_F_GETSERVBYNAME = 3; + SYS_F_SOCKET = 4; + SYS_F_IOCTLSOCKET = 5; + SYS_F_BIND = 6; + SYS_F_LISTEN = 7; + SYS_F_ACCEPT = 8; + SYS_F_WSASTARTUP = 9; (* Winsock stuff *) + SYS_F_OPENDIR = 10; + SYS_F_FREAD = 11; + SYS_F_GETADDRINFO = 12; + SYS_F_GETNAMEINFO = 13; + SYS_F_SETSOCKOPT = 14; + SYS_F_GETSOCKOPT = 15; + SYS_F_GETSOCKNAME = 16; + SYS_F_GETHOSTBYNAME = 17; + SYS_F_FFLUSH = 18; + SYS_F_OPEN = 19; + SYS_F_CLOSE = 20; + SYS_F_IOCTL = 21; + SYS_F_STAT = 22; + SYS_F_FCNTL = 23; + SYS_F_FSTAT = 24; + +//* reasons */ + ERR_R_SYS_LIB = ERR_LIB_SYS; //2 + ERR_R_BN_LIB = ERR_LIB_BN; //3 + ERR_R_RSA_LIB = ERR_LIB_RSA; //4 + ERR_R_DH_LIB = ERR_LIB_DH; //5 + ERR_R_EVP_LIB = ERR_LIB_EVP; //6 + ERR_R_BUF_LIB = ERR_LIB_BUF; //7 + ERR_R_OBJ_LIB = ERR_LIB_OBJ; //8 + ERR_R_PEM_LIB = ERR_LIB_PEM; //9 + ERR_R_DSA_LIB = ERR_LIB_DSA; //10 + ERR_R_X509_LIB = ERR_LIB_X509; //11 + ERR_R_ASN1_LIB = ERR_LIB_ASN1; //13 + ERR_R_EC_LIB = ERR_LIB_EC; //16 + ERR_R_BIO_LIB = ERR_LIB_BIO; //32 + ERR_R_PKCS7_LIB = ERR_LIB_PKCS7; //33 + ERR_R_X509V3_LIB = ERR_LIB_X509V3; //34 + ERR_R_ENGINE_LIB = ERR_LIB_ENGINE; //38 + ERR_R_UI_LIB = ERR_LIB_UI; //40 + ERR_R_ECDSA_LIB = ERR_LIB_ECDSA; //42 + ERR_R_OSSL_STORE_LIB = ERR_LIB_OSSL_STORE; //44 + + ERR_R_NESTED_ASN1_ERROR = 58; + ERR_R_MISSING_ASN1_EOS = 63; + + //* fatal error */ + ERR_R_FATAL = 64; + ERR_R_MALLOC_FAILURE = (1 or ERR_R_FATAL); + ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED = (2 or ERR_R_FATAL); + ERR_R_PASSED_NULL_PARAMETER = (3 or ERR_R_FATAL); + ERR_R_INTERNAL_ERROR = (4 or ERR_R_FATAL); + ERR_R_DISABLED = (5 or ERR_R_FATAL); + ERR_R_INIT_FAIL = (6 or ERR_R_FATAL); + ERR_R_PASSED_INVALID_ARGUMENT = (7); + ERR_R_OPERATION_FAIL = (8 or ERR_R_FATAL); + ERR_R_PKCS12_LIB = ERR_LIB_PKCS12; + + +(* + * 99 is the maximum possible ERR_R_... code, higher values are reserved for + * the individual libraries + *) + +type + err_state_st = record + err_flags: array[0..ERR_NUM_ERRORS -1] of TIdC_INT; + err_buffer: array[0..ERR_NUM_ERRORS -1] of TIdC_ULONG; + err_data: array[0..ERR_NUM_ERRORS -1] of PIdAnsiChar; + err_data_flags: array[0..ERR_NUM_ERRORS -1] of TIdC_INT; + err_file: array[0..ERR_NUM_ERRORS -1] of PIdAnsiChar; + err_line: array[0..ERR_NUM_ERRORS -1] of TIdC_INT; + top, bottom: TIdC_INT; + end; + ERR_STATE = err_state_st; + PERR_STATE = ^ERR_STATE; + + ERR_string_data_st = record + error: TIdC_ULONG; + string_: PIdAnsiChar; + end; + ERR_STRING_DATA = ERR_string_data_st; + PERR_STRING_DATA = ^ERR_STRING_DATA; + + ERR_print_errors_cb_cb = function(str: PIdAnsiChar; len: TIdC_SIZET; u: Pointer): TIdC_INT; cdecl; + +// DEFINE_LHASH_OF(ERR_STRING_DATA); + + procedure ERR_put_error(lib: TIdC_INT; func: TIdC_INT; reason: TIdC_INT; file_: PIdAnsiChar; line: TIdC_INT); {removed 3.0.0} + +{ From 3.0 onwards, replaced by a macro + define ERR_put_error(lib, func, reason, file, line) + (ERR_new(), + ERR_set_debug((file), (line), OPENSSL_FUNC), + ERR_set_error((lib), (reason), NULL))} + + procedure ERR_new; {introduced 3.0.0} + procedure ERR_set_debug(const file_: PIdAnsiChar; line: integer; const func: PIdAnsiChar); {introduced 3.0.0} + procedure ERR_set_error(lib: integer; reason: integer; fmt: PIdAnsiChar; args: array of const); {introduced 3.0.0} + + + procedure ERR_set_error_data(data: PIdAnsiChar; flags: TIdC_INT); + + function ERR_get_error: TIdC_ULONG; + function ERR_get_error_line(file_: PPIdAnsiChar; line: PIdC_INT): TIdC_ULONG; + function ERR_get_error_line_data(file_: PPIdAnsiChar; line: PIdC_INT; data: PPIdAnsiChar; flags: PIdC_INT): TIdC_ULONG; + + function ERR_peek_error: TIdC_ULONG; + function ERR_peek_error_line(file_: PPIdAnsiChar; line: PIdC_INT): TIdC_ULONG; + function ERR_peek_error_line_data(file_: PPIdAnsiChar; line: PIdC_INT; data: PPIdAnsiChar; flags: PIdC_INT): TIdC_ULONG; + + function ERR_peek_last_error: TIdC_ULONG; + function ERR_peek_last_error_line(file_: PPIdAnsiChar; line: PIdC_INT): TIdC_ULONG; + function ERR_peek_last_error_line_data(file_: PPIdAnsiChar; line: PIdC_INT; data: PPIdAnsiChar; flags: PIdC_INT): TIdC_ULONG; + + procedure ERR_clear_error; + function ERR_error_string(e: TIdC_ULONG; buf: PIdAnsiChar): PIdAnsiChar; + procedure ERR_error_string_n(e: TIdC_ULONG; buf: PIdAnsiChar; len: TIdC_SIZET); + function ERR_lib_error_string(e: TIdC_ULONG): PIdAnsiChar; + function ERR_func_error_string(e: TIdC_ULONG): PIdAnsiChar; + function ERR_reason_error_string(e: TIdC_ULONG): PIdAnsiChar; + procedure ERR_print_errors_cb(cb: ERR_print_errors_cb_cb; u: Pointer); + + procedure ERR_print_errors(bp: PBIO); + // void ERR_add_error_data(int num, ...); + // procedure ERR_add_error_vdata(num: TIdC_INT; args: va_list); + function ERR_load_strings(lib: TIdC_INT; str: PERR_STRING_DATA): TIdC_INT; + function ERR_load_strings_const(str: PERR_STRING_DATA): TIdC_INT; {introduced 1.1.0} + function ERR_unload_strings(lib: TIdC_INT; str: PERR_STRING_DATA): TIdC_INT; + function ERR_load_ERR_strings: TIdC_INT; + + function ERR_get_state: PERR_STATE; + function ERR_get_next_error_library: TIdC_INT; + function ERR_set_mark: TIdC_INT; + function ERR_pop_to_mark: TIdC_INT; + function ERR_clear_last_mark: TIdC_INT; {introduced 1.1.0} + + procedure SSLErr(func: TIdC_INT; reason: TIdC_INT); {removed 1.0.0} + procedure X509err(const f,r : TIdC_INT); {removed 1.0.0} + function ERR_GET_REASON(const l : TIdC_INT) : TIdC_INT; {removed 1.0.0} + +{helper_functions} +function ERR_GET_LIB(l: TIdC_INT): TIdC_ULONG; +{\helper_functions} + +implementation + +procedure SSLErr(func: TIdC_INT; reason: TIdC_INT); +begin + ERR_put_error(ERR_LIB_SSL,func,reason,'',0); +end; + +procedure ERR_put_error(lib: TIdC_INT; func: TIdC_INT; reason: TIdC_INT; file_: PIdAnsiChar; line: TIdC_INT); +{ From 3.0 onwards, replaced by a macro + define ERR_put_error(lib, func, reason, file, line) + (ERR_new(), + ERR_set_debug((file), (line), OPENSSL_FUNC), + ERR_set_error((lib), (reason), '',[]))} +begin + ERR_new; + ERR_set_debug(file_,line, ''); + ERR_set_error(lib,reason,'',[]); +end; + +procedure X509err(const f,r : TIdC_INT); +begin + ERR_PUT_error(ERR_LIB_X509,f,r,nil,0); +end; + +function ERR_GET_REASON(const l : TIdC_INT) : TIdC_INT; +begin + Result := l and $fff; +end; + +{helper_functions} +function ERR_GET_LIB(l: TIdC_INT): TIdC_ULONG; +begin + Result := (l shr 24) and $ff; +end; +{\helper_functions} + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_evp.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_evp.h2pas new file mode 100644 index 000000000..536daebe4 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_evp.h2pas @@ -0,0 +1,1339 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_evp; + +interface + +// Headers for OpenSSL 1.1.1 +// evp.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_obj_mac, + IdOpenSSLHeaders_ossl_typ; + +const + EVP_MAX_MD_SIZE = 64; // longest known is SHA512 + EVP_MAX_KEY_LENGTH = 64; + EVP_MAX_IV_LENGTH = 16; + EVP_MAX_BLOCK_LENGTH = 32; + PKCS5_SALT_LEN = 8; + // Default PKCS#5 iteration count + PKCS5_DEFAULT_ITER = 2048; + EVP_PK_RSA = $0001; + EVP_PK_DSA = $0002; + EVP_PK_DH = $0004; + EVP_PK_EC = $0008; + EVP_PKT_SIGN = $0010; + EVP_PKT_ENC = $0020; + EVP_PKT_EXCH = $0040; + EVP_PKS_RSA = $0100; + EVP_PKS_DSA = $0200; + EVP_PKS_EC = $0400; + + EVP_PKEY_NONE = NID_undef; + EVP_PKEY_RSA = NID_rsaEncryption; + EVP_PKEY_RSA2 = NID_rsa; + EVP_PKEY_RSA_PSS = NID_rsassaPss; + EVP_PKEY_DSA = NID_dsa; + EVP_PKEY_DSA1 = NID_dsa_2; + EVP_PKEY_DSA2 = NID_dsaWithSHA; + EVP_PKEY_DSA3 = NID_dsaWithSHA1; + EVP_PKEY_DSA4 = NID_dsaWithSHA1_2; + EVP_PKEY_DH = NID_dhKeyAgreement; + EVP_PKEY_DHX = NID_dhpublicnumber; + EVP_PKEY_EC = NID_X9_62_id_ecPublicKey; + EVP_PKEY_SM2 = NID_sm2; + EVP_PKEY_HMAC = NID_hmac; + EVP_PKEY_CMAC = NID_cmac; + EVP_PKEY_SCRYPT = NID_id_scrypt; + EVP_PKEY_TLS1_PRF = NID_tls1_prf; + EVP_PKEY_HKDF = NID_hkdf; + EVP_PKEY_POLY1305 = NID_poly1305; + EVP_PKEY_SIPHASH = NID_siphash; + EVP_PKEY_X25519 = NID_X25519; + EVP_PKEY_ED25519 = NID_ED25519; + EVP_PKEY_X448 = NID_X448; + EVP_PKEY_ED448 = NID_ED448; + + EVP_PKEY_MO_SIGN = $0001; + EVP_PKEY_MO_VERIFY = $0002; + EVP_PKEY_MO_ENCRYPT = $0004; + EVP_PKEY_MO_DECRYPT = $0008; + +// digest can only handle a single block /// + EVP_MD_FLAG_ONESHOT = $0001; + +// digest is extensible-output function; XOF /// + + EVP_MD_FLAG_XOF = $0002; + +// DigestAlgorithmIdentifier flags... /// + + EVP_MD_FLAG_DIGALGID_MASK = $0018; + +// NULL or absent parameter accepted. Use NULL /// + + EVP_MD_FLAG_DIGALGID_NULL = $0000; + +// NULL or absent parameter accepted. Use NULL for PKCS#1 otherwise absent /// + + EVP_MD_FLAG_DIGALGID_ABSENT = $0008; + +// Custom handling via ctrl /// + + EVP_MD_FLAG_DIGALGID_CUSTOM = $0018; + +// Note if suitable for use in FIPS mode /// + + EVP_MD_FLAG_FIPS = $0400; + +// Digest ctrls /// + + EVP_MD_CTRL_DIGALGID = $1; + EVP_MD_CTRL_MICALG = $2; + EVP_MD_CTRL_XOF_LEN = $3; + +// Minimum Algorithm specific ctrl value /// + + EVP_MD_CTRL_ALG_CTRL = $1000; + // not EVP_MD /// + +// values for EVP_MD_CTX flags /// + EVP_MD_CTX_FLAG_ONESHOT = $0001; + EVP_MD_CTX_FLAG_CLEANED = $0002; + EVP_MD_CTX_FLAG_REUSE = $0004; +// + // FIPS and pad options are ignored in 1.0.0; definitions are here so we + // don't accidentally reuse the values for other purposes. + /// + + EVP_MD_CTX_FLAG_NON_FIPS_ALLOW = $0008; + +// + // The following PAD options are also currently ignored in 1.0.0; digest + // parameters are handled through EVP_DigestSign//() and EVP_DigestVerify//() + // instead. + /// + EVP_MD_CTX_FLAG_PAD_MASK = $F0; + EVP_MD_CTX_FLAG_PAD_PKCS1 = $00; + EVP_MD_CTX_FLAG_PAD_X931 = $10; + EVP_MD_CTX_FLAG_PAD_PSS = $20; + + EVP_MD_CTX_FLAG_NO_INIT = $0100; +// + // Some functions such as EVP_DigestSign only finalise copies of internal + // contexts so additional data can be included after the finalisation call. + // This is inefficient if this functionality is not required: it is disabled + // if the following flag is set. + /// + EVP_MD_CTX_FLAG_FINALISE = $0200; + + +// NOTE: $0400 is reserved for internal usage /// +// Values for cipher flags /// + +// Modes for ciphers /// + + EVP_CIPH_STREAM_CIPHER = $0; + EVP_CIPH_ECB_MODE = $1; + EVP_CIPHC_MODE = $2; + EVP_CIPH_CFB_MODE = $3; + EVP_CIPH_OFB_MODE = $4; + EVP_CIPH_CTR_MODE = $5; + EVP_CIPH_GCM_MODE = $6; + EVP_CIPH_CCM_MODE = $7; + EVP_CIPH_XTS_MODE = $10001; + EVP_CIPH_WRAP_MODE = $10002; + EVP_CIPH_OCB_MODE = $10003; + EVP_CIPH_MODE = $F0007; +// Set if variable length cipher /// + EVP_CIPH_VARIABLE_LENGTH = $8; +// Set if the iv handling should be done by the cipher itself /// + EVP_CIPH_CUSTOM_IV = $10; +// Set if the cipher's init() function should be called if key is NULL /// + EVP_CIPH_ALWAYS_CALL_INIT = $20; +// Call ctrl() to init cipher parameters /// + EVP_CIPH_CTRL_INIT = $40; +// Don't use standard key length function /// + EVP_CIPH_CUSTOM_KEY_LENGTH = $80; +// Don't use standard block padding /// + EVP_CIPH_NO_PADDING = $100; +// cipher handles random key generation /// + EVP_CIPH_RAND_KEY = $200; +// cipher has its own additional copying logic /// + EVP_CIPH_CUSTOM_COPY = $400; +// Don't use standard iv length function /// + EVP_CIPH_CUSTOM_IV_LENGTH = $800; +// Allow use default ASN1 get/set iv /// + EVP_CIPH_FLAG_DEFAULT_ASN1 = $1000; +// Buffer length in bits not bytes: CFB1 mode only /// + EVP_CIPH_FLAG_LENGTH_BITS = $2000; +// Note if suitable for use in FIPS mode /// + EVP_CIPH_FLAG_FIPS = $4000; +// Allow non FIPS cipher in FIPS mode /// + EVP_CIPH_FLAG_NON_FIPS_ALLOW = $8000; +// + // Cipher handles any and all padding logic as well as finalisation. + /// + EVP_CIPH_FLAG_CUSTOM_CIPHER = $100000; + EVP_CIPH_FLAG_AEAD_CIPHER = $200000; + EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK = $400000; +// Cipher can handle pipeline operations /// + EVP_CIPH_FLAG_PIPELINE = $800000; + +// + // Cipher context flag to indicate we can handle wrap mode: if allowed in + // older applications it could overflow buffers. + /// + + EVP_CIPHER_CTX_FLAG_WRAP_ALLOW = $1; + +// ctrl() values /// + + EVP_CTRL_INIT = $0; + EVP_CTRL_SET_KEY_LENGTH = $1; + EVP_CTRL_GET_RC2_KEY_BITS = $2; + EVP_CTRL_SET_RC2_KEY_BITS = $3; + EVP_CTRL_GET_RC5_ROUNDS = $4; + EVP_CTRL_SET_RC5_ROUNDS = $5; + EVP_CTRL_RAND_KEY = $6; + EVP_CTRL_PBE_PRF_NID = $7; + EVP_CTRL_COPY = $8; + EVP_CTRL_AEAD_SET_IVLEN = $9; + EVP_CTRL_AEAD_GET_TAG = $10; + EVP_CTRL_AEAD_SET_TAG = $11; + EVP_CTRL_AEAD_SET_IV_FIXED = $12; + EVP_CTRL_GCM_SET_IVLEN = EVP_CTRL_AEAD_SET_IVLEN; + EVP_CTRL_GCM_GET_TAG = EVP_CTRL_AEAD_GET_TAG; + EVP_CTRL_GCM_SET_TAG = EVP_CTRL_AEAD_SET_TAG; + EVP_CTRL_GCM_SET_IV_FIXED = EVP_CTRL_AEAD_SET_IV_FIXED; + EVP_CTRL_GCM_IV_GEN = $13; + EVP_CTRL_CCM_SET_IVLEN = EVP_CTRL_AEAD_SET_IVLEN; + EVP_CTRL_CCM_GET_TAG = EVP_CTRL_AEAD_GET_TAG; + EVP_CTRL_CCM_SET_TAG = EVP_CTRL_AEAD_SET_TAG; + EVP_CTRL_CCM_SET_IV_FIXED = EVP_CTRL_AEAD_SET_IV_FIXED; + EVP_CTRL_CCM_SET_L = $14; + EVP_CTRL_CCM_SET_MSGLEN = $15; +// + // AEAD cipher deduces payload length and returns number of bytes required to + // store MAC and eventual padding. Subsequent call to EVP_Cipher even + // appends/verifies MAC. + /// + EVP_CTRL_AEAD_TLS1_AAD = $16; +// Used by composite AEAD ciphers; no-op in GCM; CCM... /// + EVP_CTRL_AEAD_SET_MAC_KEY = $17; +// Set the GCM invocation field; decrypt only /// + EVP_CTRL_GCM_SET_IV_INV = $18; + + EVP_CTRL_TLS1_1_MULTIBLOCK_AAD = $19; + EVP_CTRL_TLS1_1_MULTIBLOCK_ENCRYPT = $1a; + EVP_CTRL_TLS1_1_MULTIBLOCK_DECRYPT = $1b; + EVP_CTRL_TLS1_1_MULTIBLOCK_MAX_BUFSIZE = $1c; + + EVP_CTRL_SSL3_MASTER_SECRET = $1d; + +// EVP_CTRL_SET_SBOX takes the PIdAnsiChar// specifying S-boxes/// + EVP_CTRL_SET_SBOX = $1e; +// +// EVP_CTRL_SBOX_USED takes a 'TIdC_SIZET' and 'PIdAnsiChar//'; pointing at a +// pre-allocated buffer with specified size +/// + EVP_CTRL_SBOX_USED = $1f; +// EVP_CTRL_KEY_MESH takes 'TIdC_SIZET' number of bytes to mesh the key after; +// 0 switches meshing off +/// + EVP_CTRL_KEY_MESH = $20; +// EVP_CTRL_BLOCK_PADDING_MODE takes the padding mode/// + EVP_CTRL_BLOCK_PADDING_MODE = $21; + +// Set the output buffers to use for a pipelined operation/// + EVP_CTRL_SET_PIPELINE_OUTPUT_BUFS = $22; +// Set the input buffers to use for a pipelined operation/// + EVP_CTRL_SET_PIPELINE_INPUT_BUFS = $23; +// Set the input buffer lengths to use for a pipelined operation/// + EVP_CTRL_SET_PIPELINE_INPUT_LENS = $24; + + EVP_CTRL_GET_IVLEN = $25; + +// Padding modes/// + EVP_PADDING_PKCS7 = 1; + EVP_PADDING_ISO7816_4 = 2; + EVP_PADDING_ANSI923 = 3; + EVP_PADDING_ISO10126 = 4; + EVP_PADDING_ZERO = 5; + +// RFC 5246 defines additional data to be 13 bytes in length/// + EVP_AEAD_TLS1_AAD_LEN = 13; + +// GCM TLS constants/// +// Length of fixed part of IV derived from PRF/// + EVP_GCM_TLS_FIXED_IV_LEN = 4; +// Length of explicit part of IV part of TLS records/// + EVP_GCM_TLS_EXPLICIT_IV_LEN = 8; +// Length of tag for TLS + EVP_GCM_TLS_TAG_LEN = 16; + +/// CCM TLS constants /// +/// Length of fixed part of IV derived from PRF /// + EVP_CCM_TLS_FIXED_IV_LEN = 4; +/// Length of explicit part of IV part of TLS records /// + EVP_CCM_TLS_EXPLICIT_IV_LEN = 8; +/// Total length of CCM IV length for TLS /// + EVP_CCM_TLS_IV_LEN = 12; +/// Length of tag for TLS /// + EVP_CCM_TLS_TAG_LEN = 16; +/// Length of CCM8 tag for TLS /// + EVP_CCM8_TLS_TAG_LEN = 8; + +/// Length of tag for TLS /// + EVP_CHACHAPOLY_TLS_TAG_LEN = 16; + +(* Can appear as the outermost AlgorithmIdentifier *) + EVP_PBE_TYPE_OUTER = $0; +(* Is an PRF type OID *) + EVP_PBE_TYPE_PRF = $1; +(* Is a PKCS#5 v2.0 KDF *) + EVP_PBE_TYPE_KDF = $2; + + ASN1_PKEY_ALIAS = $1; + ASN1_PKEY_DYNAMIC = $2; + ASN1_PKEY_SIGPARAM_NULL = $4; + + ASN1_PKEY_CTRL_PKCS7_SIGN = $1; + ASN1_PKEY_CTRL_PKCS7_ENCRYPT = $2; + ASN1_PKEY_CTRL_DEFAULT_MD_NID = $3; + ASN1_PKEY_CTRL_CMS_SIGN = $5; + ASN1_PKEY_CTRL_CMS_ENVELOPE = $7; + ASN1_PKEY_CTRL_CMS_RI_TYPE = $8; + + ASN1_PKEY_CTRL_SET1_TLS_ENCPT = $9; + ASN1_PKEY_CTRL_GET1_TLS_ENCPT = $a; + + EVP_PKEY_OP_UNDEFINED = 0; + EVP_PKEY_OP_PARAMGEN = (1 shl 1); + EVP_PKEY_OP_KEYGEN = (1 shl 2); + EVP_PKEY_OP_SIGN = (1 shl 3); + EVP_PKEY_OP_VERIFY = (1 shl 4); + EVP_PKEY_OP_VERIFYRECOVER = (1 shl 5); + EVP_PKEY_OP_SIGNCTX = (1 shl 6); + EVP_PKEY_OP_VERIFYCTX = (1 shl 7); + EVP_PKEY_OP_ENCRYPT = (1 shl 8); + EVP_PKEY_OP_DECRYPT = (1 shl 9); + EVP_PKEY_OP_DERIVE = (1 shl 10); + + EVP_PKEY_OP_TYPE_SIG = EVP_PKEY_OP_SIGN or EVP_PKEY_OP_VERIFY + or EVP_PKEY_OP_VERIFYRECOVER or EVP_PKEY_OP_SIGNCTX or EVP_PKEY_OP_VERIFYCTX; + + EVP_PKEY_OP_TYPE_CRYPT = EVP_PKEY_OP_ENCRYPT or EVP_PKEY_OP_DECRYPT; + + EVP_PKEY_OP_TYPE_NOGEN = EVP_PKEY_OP_TYPE_SIG or EVP_PKEY_OP_TYPE_CRYPT or EVP_PKEY_OP_DERIVE; + + EVP_PKEY_OP_TYPE_GEN = EVP_PKEY_OP_PARAMGEN or EVP_PKEY_OP_KEYGEN; + + EVP_PKEY_CTRL_MD = 1; + EVP_PKEY_CTRL_PEER_KEY = 2; + + EVP_PKEY_CTRL_PKCS7_ENCRYPT = 3; + EVP_PKEY_CTRL_PKCS7_DECRYPT = 4; + + EVP_PKEY_CTRL_PKCS7_SIGN = 5; + + EVP_PKEY_CTRL_SET_MAC_KEY = 6; + + EVP_PKEY_CTRL_DIGESTINIT = 7; + +(* Used by GOST key encryption in TLS *) + EVP_PKEY_CTRL_SET_IV = 8; + + EVP_PKEY_CTRL_CMS_ENCRYPT = 9; + EVP_PKEY_CTRL_CMS_DECRYPT = 10; + EVP_PKEY_CTRL_CMS_SIGN = 11; + + EVP_PKEY_CTRL_CIPHER = 12; + + EVP_PKEY_CTRL_GET_MD = 13; + + EVP_PKEY_CTRL_SET_DIGEST_SIZE = 14; + + EVP_PKEY_ALG_CTRL = $1000; + + EVP_PKEY_FLAG_AUTOARGLEN = 2; + // + // Method handles all operations: don't assume any digest related defaults. + // + EVP_PKEY_FLAG_SIGCTX_CUSTOM = 4; + +type + EVP_MD_meth_init = function(ctx: PEVP_MD_CTX): TIdC_INT; cdecl; + EVP_MD_meth_update = function(ctx: PEVP_MD_CTX; const data: Pointer; + count: TIdC_SIZET): TIdC_INT; cdecl; + EVP_MD_meth_final = function(ctx: PEVP_MD_CTX; const md: PByte): TIdC_INT; cdecl; + EVP_MD_meth_copy = function(to_: PEVP_MD_CTX; const from: PEVP_MD_CTX): TIdC_INT; cdecl; + EVP_MD_meth_cleanup = function(ctx: PEVP_MD_CTX): TIdC_INT; cdecl; + EVP_MD_meth_ctrl = function(ctx: PEVP_MD_CTX; cmd: TIdC_INT; p1: TIdC_INT; + p2: Pointer): TIdC_INT; cdecl; + + EVP_CIPHER_meth_init = function(ctx: PEVP_CIPHER_CTX; const key: PByte; + const iv: PByte; enc: TIdC_SIZET): TIdC_INT; cdecl; + EVP_CIPHER_meth_do_cipher = function(ctx: PEVP_CIPHER_CTX; out_: PByte; + const in_: PByte; inl: TIdC_SIZET): TIdC_INT; cdecl; + EVP_CIPHER_meth_cleanup = function(v1: PEVP_CIPHER_CTX): TIdC_INT; cdecl; + EVP_CIPHER_meth_set_asn1_params = function(v1: PEVP_CIPHER_CTX; + v2: PASN1_TYPE): TIdC_INT; cdecl; + EVP_CIPHER_meth_get_asn1_params = function(v1: PEVP_CIPHER_CTX; + v2: PASN1_TYPE): TIdC_INT; cdecl; + EVP_CIPHER_meth_ctrl = function(v1: PEVP_CIPHER_CTX; type_: TIdC_INT; + arg: TIdC_INT; ptr: Pointer): TIdC_INT; cdecl; + + EVP_CTRL_TLS1_1_MULTIBLOCK_PARAM = record + out_: PByte; + inp: PByte; + len: TIdC_SIZET; + interleave: TidC_UINT; + end; + + evp_cipher_info_st = record + cipher: PEVP_CIPHER; + iv: array[0 .. EVP_MAX_IV_LENGTH - 1] of PByte; + end; + EVP_CIPHER_INFO = evp_cipher_info_st; + + EVP_MD_CTX_update = function(ctx: PEVP_MD_CTX; const data: Pointer; count: TIdC_SIZET): TIdC_INT; cdecl; + + fn = procedure(const ciph: PEVP_CIPHER; const from: PIdAnsiChar; const to_: PIdAnsiChar; x: Pointer); cdecl; + + pub_decode = function(pk: PEVP_PKEY; pub: PX509_PUBKEY): TIdC_INT; cdecl; + pub_encode = function(pub: PX509_PUBKEY; const pk: PEVP_PKEY): TIdC_INT; cdecl; + pub_cmd = function(const a: PEVP_PKEY; const b: PEVP_PKEY): TIdC_INT; cdecl; + pub_print = function(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; cdecl; + pkey_size = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + pkey_bits = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + + priv_decode = function(pk: PEVP_PKEY; const p8inf: PKCS8_PRIV_KEY_INFO): TIdC_INT; cdecl; + priv_encode = function(p8: PPKCS8_PRIV_KEY_INFO; const pk: PEVP_PKEY): TIdC_INT; cdecl; + priv_print = function(out_: PBIO; const pkea: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; cdecl; + + param_decode = function(pkey: PEVP_PKEY; const pder: PPByte; derlen: TIdC_INT): TIdC_INT; cdecl; + param_encode = function(const pkey: PEVP_PKEY; pder: PPByte): TIdC_INT; cdecl; + param_missing = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + param_copy = function(to_: PEVP_PKEY; const from: PEVP_PKEY): TIdC_INT; cdecl; + param_cmp = function(const a: PEVP_PKEY; const b: PEVP_PKEY): TIdC_INT; cdecl; + param_print = function(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; cdecl; + + pkey_free = procedure(pkey: PEVP_PKEY); cdecl; + pkey_ctrl = function(pkey: PEVP_PKEY; op: TIdC_INT; arg1: TIdC_LONG; arg2: Pointer): TIdC_INT; cdecl; + item_verify = function(ctx: PEVP_MD_CTX; const it: PASN1_ITEM; asn: Pointer; + a: PX509_ALGOR; sig: PASN1_BIT_STRING; pkey: PEVP_PKEY): TIdC_INT; cdecl; + item_sign = function(ctx: PEVP_MD_CTX; const it: PASN1_ITEM; asn: Pointer; + alg1: PX509_ALGOR; alg2: PX509_ALGOR; sig: PASN1_BIT_STRING): TIdC_INT; cdecl; + siginf_set = function(siginf: PX509_SIG_INFO; const alg: PX509_ALGOR; const sig: PASN1_STRING): TIdC_INT; cdecl; + pkey_check = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + pkey_pub_check = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + pkey_param_check = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + set_priv_key = function(pk: PEVP_PKEY; const priv: PByte; len: TIdC_SIZET): TIdC_INT; cdecl; + set_pub_key = function(pk: PEVP_PKEY; const pub: PByte; len: TIdC_SIZET): TIdC_INT; cdecl; + get_priv_key = function(const pk: PEVP_PKEY; priv: PByte; len: PIdC_SIZET): TIdC_INT; cdecl; + get_pub_key = function(const pk: PEVP_PKEY; pub: PByte; len: PIdC_SIZET): TIdC_INT; cdecl; + pkey_security_bits = function(const pk: PEVP_PKEY): TIdC_INT; cdecl; + + EVP_PKEY_gen_cb = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; +// PEVP_PKEY_gen_cb = ^EVP_PKEY_gen_cb; + + EVP_PKEY_meth_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_init = ^EVP_PKEY_meth_init; + EVP_PKEY_meth_copy_cb = function(dst: PEVP_PKEY_CTX; src: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_copy = ^EVP_PKEY_meth_copy_cb; + EVP_PKEY_meth_cleanup = procedure(ctx: PEVP_PKEY_CTX); cdecl; + PEVP_PKEY_meth_cleanup = ^EVP_PKEY_meth_cleanup; + EVP_PKEY_meth_paramgen_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_paramgen_init = ^EVP_PKEY_meth_paramgen_init; + EVP_PKEY_meth_paramgen = function(ctx: PEVP_PKEY_CTX; pkey: PEVP_PKEY): TIdC_INT; cdecl; + PEVP_PKEY_meth_paramgen = ^EVP_PKEY_meth_paramgen; + EVP_PKEY_meth_keygen_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_keygen_init = ^EVP_PKEY_meth_keygen_init; + EVP_PKEY_meth_keygen = function(ctx: PEVP_PKEY_CTX; pkey: PEVP_PKEY): TIdC_INT; cdecl; + PEVP_PKEY_meth_keygen = ^EVP_PKEY_meth_keygen; + EVP_PKEY_meth_sign_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_sign_init = ^EVP_PKEY_meth_sign_init; + EVP_PKEY_meth_sign = function(ctx: PEVP_PKEY_CTX; sig: PByte; siglen: TIdC_SIZET; + const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_sign = ^EVP_PKEY_meth_sign; + EVP_PKEY_meth_verify_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_verify_init = ^EVP_PKEY_meth_verify_init; + EVP_PKEY_meth_verify = function(ctx: PEVP_PKEY_CTX; const sig: PByte; + siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_verify = ^EVP_PKEY_meth_verify; + EVP_PKEY_meth_verify_recover_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_verify_recover_init = ^EVP_PKEY_meth_verify_recover_init; + EVP_PKEY_meth_verify_recover = function(ctx: PEVP_PKEY_CTX; sig: PByte; + siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_verify_recover = ^EVP_PKEY_meth_verify_recover; + EVP_PKEY_meth_signctx_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_signctx_init = ^EVP_PKEY_meth_signctx_init; + EVP_PKEY_meth_signctx = function(ctx: PEVP_PKEY_CTX; sig: Pbyte; + siglen: TIdC_SIZET; mctx: PEVP_MD_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_signctx = ^EVP_PKEY_meth_signctx; + EVP_PKEY_meth_verifyctx_init = function(ctx: PEVP_PKEY_CTX; mctx: PEVP_MD_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_verifyctx_init = ^EVP_PKEY_meth_verifyctx_init; + EVP_PKEY_meth_verifyctx = function(ctx: PEVP_PKEY_CTX; const sig: PByte; + siglen: TIdC_INT; mctx: PEVP_MD_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_verifyctx = ^EVP_PKEY_meth_verifyctx; + EVP_PKEY_meth_encrypt_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_encrypt_init = ^EVP_PKEY_meth_encrypt_init; + EVP_PKEY_meth_encrypt = function(ctx: PEVP_PKEY_CTX; out_: PByte; + outlen: TIdC_SIZET; const in_: PByte): TIdC_INT; cdecl; + PEVP_PKEY_meth_encrypt = ^ EVP_PKEY_meth_encrypt; + EVP_PKEY_meth_decrypt_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_decrypt_init = ^EVP_PKEY_meth_decrypt_init; + EVP_PKEY_meth_decrypt = function(ctx: PEVP_PKEY_CTX; out_: PByte; + outlen: TIdC_SIZET; const in_: PByte; inlen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_decrypt = ^EVP_PKEY_meth_decrypt; + EVP_PKEY_meth_derive_init = function(ctx: PEVP_PKEY_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_derive_init = ^EVP_PKEY_meth_derive_init; + EVP_PKEY_meth_derive = function(ctx: PEVP_PKEY_CTX; key: PByte; keylen: PIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_derive = ^EVP_PKEY_meth_derive; + EVP_PKEY_meth_ctrl = function(ctx: PEVP_PKEY_CTX; type_: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT; cdecl; + PEVP_PKEY_meth_ctrl = ^EVP_PKEY_meth_ctrl; + EVP_PKEY_meth_ctrl_str = function(ctx: PEVP_PKEY_CTX; key: PByte; keylen: PIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_ctrl_str = ^EVP_PKEY_meth_ctrl_str; + EVP_PKEY_meth_digestsign = function(ctx: PEVP_PKEY_CTX; sig: PByte; + siglen: PIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_digestsign = ^EVP_PKEY_meth_digestsign; + EVP_PKEY_meth_digestverify = function(ctx: PEVP_MD_CTX; const sig: PByte; + siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; cdecl; + PEVP_PKEY_meth_digestverify = ^EVP_PKEY_meth_digestverify; + EVP_PKEY_meth_check = function(pkey: PEVP_PKEY): TIdC_INT; cdecl; + PEVP_PKEY_meth_check = ^EVP_PKEY_meth_check; + EVP_PKEY_meth_public_check = function(pkey: PEVP_PKEY): TIdC_INT; cdecl; + PEVP_PKEY_meth_public_check = ^EVP_PKEY_meth_public_check; + EVP_PKEY_meth_param_check = function(pkey: PEVP_PKEY): TIdC_INT; cdecl; + PEVP_PKEY_meth_param_check = ^EVP_PKEY_meth_param_check; + EVP_PKEY_meth_digest_custom = function(pkey: PEVP_PKEY; mctx: PEVP_MD_CTX): TIdC_INT; cdecl; + PEVP_PKEY_meth_digest_custom = ^EVP_PKEY_meth_digest_custom; + + // Password based encryption function + EVP_PBE_KEYGEN = function(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; + passlen: TIdC_INT; param: PASN1_TYPE; const cipher: PEVP_CIPHER; + const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT; cdecl; + PEVP_PBE_KEYGEN = ^EVP_PBE_KEYGEN; + PPEVP_PBE_KEYGEN = ^PEVP_PBE_KEYGEN; + +function EVP_PKEY_assign_RSA(pkey: PEVP_PKEY; rsa: Pointer): TIdC_INT; {removed 1.0.0} +function EVP_PKEY_assign_DSA(pkey: PEVP_PKEY; dsa: Pointer): TIdC_INT; {removed 1.0.0} +function EVP_PKEY_assign_DH(pkey: PEVP_PKEY; dh: Pointer): TIdC_INT; {removed 1.0.0} +function EVP_PKEY_assign_EC_KEY(pkey: PEVP_PKEY; eckey: Pointer): TIdC_INT; {removed 1.0.0} +function EVP_PKEY_assign_SIPHASH(pkey: PEVP_PKEY; shkey: Pointer): TIdC_INT; {removed 1.0.0} +function EVP_PKEY_assign_POLY1305(pkey: PEVP_PKEY; polykey: Pointer): TIdC_INT; {removed 1.0.0} + + function EVP_MD_meth_new(md_type: TIdC_INT; pkey_type: TIdC_INT): PEVP_MD; {introduced 1.1.0} + function EVP_MD_meth_dup(const md: PEVP_MD): PEVP_MD; {introduced 1.1.0} + procedure EVP_MD_meth_free(md: PEVP_MD); {introduced 1.1.0} + + function EVP_MD_meth_set_input_blocksize(md: PEVP_MD; blocksize: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_set_result_size(md: PEVP_MD; resultsize: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_set_app_datasize(md: PEVP_MD; datasize: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_set_flags(md: PEVP_MD; flags: TIdC_ULONG): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_set_init(md: PEVP_MD; init: EVP_MD_meth_init): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_set_update(md: PEVP_MD; update: EVP_MD_meth_update): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_set_final(md: PEVP_MD; final_: EVP_MD_meth_final): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_set_copy(md: PEVP_MD; copy: EVP_MD_meth_copy): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_set_cleanup(md: PEVP_MD; cleanup: EVP_MD_meth_cleanup): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_set_ctrl(md: PEVP_MD; ctrl: EVP_MD_meth_ctrl): TIdC_INT; {introduced 1.1.0} + + function EVP_MD_meth_get_input_blocksize(const md: PEVP_MD): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_get_result_size(const md: PEVP_MD): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_get_app_datasize(const md: PEVP_MD): TIdC_INT; {introduced 1.1.0} + function EVP_MD_meth_get_flags(const md: PEVP_MD): TIdC_ULONG; {introduced 1.1.0} + function EVP_MD_meth_get_init(const md: PEVP_MD): EVP_MD_meth_init; {introduced 1.1.0} + function EVP_MD_meth_get_update(const md: PEVP_MD): EVP_MD_meth_update; {introduced 1.1.0} + function EVP_MD_meth_get_final(const md: PEVP_MD): EVP_MD_meth_final; {introduced 1.1.0} + function EVP_MD_meth_get_copy(const md: PEVP_MD): EVP_MD_meth_copy; {introduced 1.1.0} + function EVP_MD_meth_get_cleanup(const md: PEVP_MD): EVP_MD_meth_cleanup; {introduced 1.1.0} + function EVP_MD_meth_get_ctrl(const md: PEVP_MD): EVP_MD_meth_ctrl; {introduced 1.1.0} + + function EVP_CIPHER_meth_new(cipher_type: TIdC_INT; block_size: TIdC_INT; key_len: TIdC_INT): PEVP_CIPHER; {introduced 1.1.0} + function EVP_CIPHER_meth_dup(const cipher: PEVP_CIPHER): PEVP_CIPHER; {introduced 1.1.0} + procedure EVP_CIPHER_meth_free(cipher: PEVP_CIPHER); {introduced 1.1.0} + + function EVP_CIPHER_meth_set_iv_length(cipher: PEVP_CIPHER; iv_len: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function EVP_CIPHER_meth_set_flags(cipher: PEVP_CIPHER; flags: TIdC_ULONG): TIdC_INT; {introduced 1.1.0} + function EVP_CIPHER_meth_set_impl_ctx_size(cipher: PEVP_CIPHER; ctx_size: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function EVP_CIPHER_meth_set_init(cipher: PEVP_CIPHER; init: EVP_CIPHER_meth_init): TIdC_INT; {introduced 1.1.0} + function EVP_CIPHER_meth_set_do_cipher(cipher: PEVP_CIPHER; do_cipher: EVP_CIPHER_meth_do_cipher): TIdC_INT; {introduced 1.1.0} + function EVP_CIPHER_meth_set_cleanup(cipher: PEVP_CIPHER; cleanup: EVP_CIPHER_meth_cleanup): TIdC_INT; {introduced 1.1.0} + function EVP_CIPHER_meth_set_set_asn1_params(cipher: PEVP_CIPHER; set_asn1_parameters: EVP_CIPHER_meth_set_asn1_params): TIdC_INT; {introduced 1.1.0} + function EVP_CIPHER_meth_set_get_asn1_params(cipher: PEVP_CIPHER; get_asn1_parameters: EVP_CIPHER_meth_get_asn1_params): TIdC_INT; {introduced 1.1.0} + function EVP_CIPHER_meth_set_ctrl(cipher: PEVP_CIPHER; ctrl: EVP_CIPHER_meth_ctrl): TIdC_INT; {introduced 1.1.0} + function EVP_CIPHER_meth_get_init(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_init; {introduced 1.1.0} + function EVP_CIPHER_meth_get_do_cipher(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_do_cipher; {introduced 1.1.0} + function EVP_CIPHER_meth_get_cleanup(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_cleanup; {introduced 1.1.0} + function EVP_CIPHER_meth_get_set_asn1_params(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_set_asn1_params; {introduced 1.1.0} + function EVP_CIPHER_meth_get_get_asn1_params(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_get_asn1_params; {introduced 1.1.0} + function EVP_CIPHER_meth_get_ctrl(const cipher: PEVP_CIPHER): EVP_CIPHER_meth_ctrl; {introduced 1.1.0} + + /// Add some extra combinations /// + //# define EVP_get_digestbynid(a) EVP_get_digestbyname(OBJ_nid2sn(a)); + //# define EVP_get_digestbyobj(a) EVP_get_digestbynid(OBJ_obj2nid(a)); + //# define EVP_get_cipherbynid(a) EVP_get_cipherbyname(OBJ_nid2sn(a)); + //# define EVP_get_cipherbyobj(a) EVP_get_cipherbynid(OBJ_obj2nid(a)); + + function EVP_MD_type(const md: PEVP_MD): TIdC_INT; {removed 3.0.0} + //# define EVP_MD_nid(e) EVP_MD_type(e) + //# define EVP_MD_name(e) OBJ_nid2sn(EVP_MD_nid(e)) + function EVP_MD_pkey_type(const md: PEVP_MD): TIdC_INT; {removed 3.0.0} + function EVP_MD_size(const md: PEVP_MD): TIdC_INT; {removed 3.0.0} + function EVP_MD_block_size(const md: PEVP_MD): TIdC_INT; {removed 3.0.0} + function EVP_MD_flags(const md: PEVP_MD): PIdC_ULONG; {removed 3.0.0} + + function EVP_MD_CTX_md(ctx: PEVP_MD_CTX): PEVP_MD; + function EVP_MD_CTX_update_fn(ctx: PEVP_MD_CTX): EVP_MD_CTX_update; {introduced 1.1.0} + procedure EVP_MD_CTX_set_update_fn(ctx: PEVP_MD_CTX; update: EVP_MD_CTX_update); {introduced 1.1.0} + // EVP_MD_CTX_size(e) EVP_MD_size(EVP_MD_CTX_md(e)) + // EVP_MD_CTX_block_size(e) EVP_MD_block_size(EVP_MD_CTX_md(e)) + // EVP_MD_CTX_type(e) EVP_MD_type(EVP_MD_CTX_md(e)) + function EVP_MD_CTX_pkey_ctx(const ctx: PEVP_MD_CTX): PEVP_PKEY_CTX; {introduced 1.1.0 removed 3.0.0} + procedure EVP_MD_CTX_set_pkey_ctx(ctx: PEVP_MD_CTX; pctx: PEVP_PKEY_CTX); {introduced 1.1.0} + function EVP_MD_CTX_md_data(const ctx: PEVP_MD_CTX): Pointer; {introduced 1.1.0 removed 3.0.0} + + function EVP_CIPHER_nid(const ctx: PEVP_MD_CTX): TIdC_INT; {removed 3.0.0} + //# define EVP_CIPHER_name(e) OBJ_nid2sn(EVP_CIPHER_nid(e)) + function EVP_CIPHER_block_size(const cipher: PEVP_CIPHER): TIdC_INT; {removed 3.0.0} + function EVP_CIPHER_impl_ctx_size(const cipher: PEVP_CIPHER): TIdC_INT; {introduced 1.1.0} + function EVP_CIPHER_key_length(const cipher: PEVP_CIPHER): TIdC_INT; {removed 3.0.0} + function EVP_CIPHER_iv_length(const cipher: PEVP_CIPHER): TIdC_INT; {removed 3.0.0} + function EVP_CIPHER_flags(const cipher: PEVP_CIPHER): TIdC_ULONG; {removed 3.0.0} + //# define EVP_CIPHER_mode(e) (EVP_CIPHER_flags(e) & EVP_CIPH_MODE) + + function EVP_CIPHER_CTX_cipher(const ctx: PEVP_CIPHER_CTX): PEVP_CIPHER; + function EVP_CIPHER_CTX_encrypting(const ctx: PEVP_CIPHER_CTX): TIdC_INT; {introduced 1.1.0 removed 3.0.0} + function EVP_CIPHER_CTX_nid(const ctx: PEVP_CIPHER_CTX): TIdC_INT; {removed 3.0.0} + function EVP_CIPHER_CTX_block_size(const ctx: PEVP_CIPHER_CTX): TIdC_INT; {removed 3.0.0} + function EVP_CIPHER_CTX_key_length(const ctx: PEVP_CIPHER_CTX): TIdC_INT; {removed 3.0.0} + function EVP_CIPHER_CTX_iv_length(const ctx: PEVP_CIPHER_CTX): TIdC_INT; {removed 3.0.0} + function EVP_CIPHER_CTX_iv(const ctx: PEVP_CIPHER_CTX): PByte; {introduced 1.1.0} + function EVP_CIPHER_CTX_original_iv(const ctx: PEVP_CIPHER_CTX): PByte; {introduced 1.1.0} + function EVP_CIPHER_CTX_iv_noconst(ctx: PEVP_CIPHER_CTX): PByte; {introduced 1.1.0} + function EVP_CIPHER_CTX_buf_noconst(ctx: PEVP_CIPHER_CTX): PByte; {introduced 1.1.0} + function EVP_CIPHER_CTX_num(const ctx: PEVP_CIPHER_CTX): TIdC_INT; {introduced 1.1.0 removed 3.0.0} + procedure EVP_CIPHER_CTX_set_num(ctx: PEVP_CIPHER_CTX; num: TIdC_INT); {introduced 1.1.0} + function EVP_CIPHER_CTX_copy(out_: PEVP_CIPHER_CTX; const in_: PEVP_CIPHER_CTX): TIdC_INT; + function EVP_CIPHER_CTX_get_app_data(const ctx: PEVP_CIPHER_CTX): Pointer; + procedure EVP_CIPHER_CTX_set_app_data(ctx: PEVP_CIPHER_CTX; data: Pointer); + function EVP_CIPHER_CTX_get_cipher_data(const ctx: PEVP_CIPHER_CTX): Pointer; {introduced 1.1.0} + function EVP_CIPHER_CTX_set_cipher_data(ctx: PEVP_CIPHER_CTX; cipher_data: Pointer): Pointer; {introduced 1.1.0} + + //# define EVP_CIPHER_CTX_type(c) EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c)) + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define EVP_CIPHER_CTX_flags(c) EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(c)) + //# endif + //# define EVP_CIPHER_CTX_mode(c) EVP_CIPHER_mode(EVP_CIPHER_CTX_cipher(c)) + // + //# define EVP_ENCODE_LENGTH(l) ((((l)+2)/3*4)+((l)/48+1)*2+80) + //# define EVP_DECODE_LENGTH(l) (((l)+3)/4*3+80) + // + //# define EVP_SignInit_ex(a;b;c) EVP_DigestInit_ex(a;b;c) + //# define EVP_SignInit(a;b) EVP_DigestInit(a;b) + //# define EVP_SignUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + //# define EVP_VerifyInit_ex(a;b;c) EVP_DigestInit_ex(a;b;c) + //# define EVP_VerifyInit(a;b) EVP_DigestInit(a;b) + //# define EVP_VerifyUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + //# define EVP_OpenUpdate(a;b;c;d;e) EVP_DecryptUpdate(a;b;c;d;e) + //# define EVP_SealUpdate(a;b;c;d;e) EVP_EncryptUpdate(a;b;c;d;e) + //# define EVP_DigestSignUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + //# define EVP_DigestVerifyUpdate(a;b;c) EVP_DigestUpdate(a;b;c) + + procedure BIO_set_md(v1: PBIO; const md: PEVP_MD); {removed 1.0.0} + //# define BIO_get_md(b;mdp) BIO_ctrl(b;BIO_C_GET_MD;0;(PIdAnsiChar)(mdp)) + //# define BIO_get_md_ctx(b;mdcp) BIO_ctrl(b;BIO_C_GET_MD_CTX;0; (PIdAnsiChar)(mdcp)) + //# define BIO_set_md_ctx(b;mdcp) BIO_ctrl(b;BIO_C_SET_MD_CTX;0; (PIdAnsiChar)(mdcp)) + //# define BIO_get_cipher_status(b) BIO_ctrl(b;BIO_C_GET_CIPHER_STATUS;0;NULL) + //# define BIO_get_cipher_ctx(b;c_pp) BIO_ctrl(b;BIO_C_GET_CIPHER_CTX;0; (PIdAnsiChar)(c_pp)) + + //function EVP_Cipher(c: PEVP_CIPHER_CTX; out_: PByte; const in_: PByte; in1: TIdC_UINT): TIdC_INT; + + //# define EVP_add_cipher_alias(n;alias) OBJ_NAME_add((alias);OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS;(n)) + //# define EVP_add_digest_alias(n;alias) OBJ_NAME_add((alias);OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS;(n)) + //# define EVP_delete_cipher_alias(alias) OBJ_NAME_remove(alias;OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS); + //# define EVP_delete_digest_alias(alias) OBJ_NAME_remove(alias;OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS); + + function EVP_MD_CTX_ctrl(ctx: PEVP_MD_CTX; cmd: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT; {introduced 1.1.0} + function EVP_MD_CTX_new: PEVP_MD_CTX; {introduced 1.1.0} + function EVP_MD_CTX_reset(ctx: PEVP_MD_CTX): TIdC_INT; {introduced 1.1.0} + procedure EVP_MD_CTX_free(ctx: PEVP_MD_CTX); {introduced 1.1.0} + //# define EVP_MD_CTX_create() EVP_MD_CTX_new() + //# define EVP_MD_CTX_init(ctx) EVP_MD_CTX_reset((ctx)) + //# define EVP_MD_CTX_destroy(ctx) EVP_MD_CTX_free((ctx)) + function EVP_MD_CTX_copy_ex(out_: PEVP_MD_CTX; const in_: PEVP_MD_CTX): TIdC_INT; + procedure EVP_MD_CTX_set_flags(ctx: PEVP_MD_CTX; flags: TIdC_INT); + procedure EVP_MD_CTX_clear_flags(ctx: PEVP_MD_CTX; flags: TIdC_INT); + function EVP_MD_CTX_test_flags(const ctx: PEVP_MD_CTX; flags: TIdC_INT): TIdC_INT; + function EVP_DigestInit_ex(ctx: PEVP_MD_CTX; const type_: PEVP_MD; impl: PENGINE): TIdC_INT; + function EVP_DigestUpdate(ctx: PEVP_MD_CTX; const d: Pointer; cnt: TIdC_SIZET): TIdC_INT; + function EVP_DigestFinal_ex(ctx: PEVP_MD_CTX; md: PByte; s: PIdC_UINT): TIdC_INT; + function EVP_Digest(const data: Pointer; count: TIdC_SIZET; md: PByte; size: PIdC_UINT; const type_: PEVP_MD; impl: PENGINE): TIdC_INT; + + function EVP_MD_CTX_copy(out_: PEVP_MD_CTX; const in_: PEVP_MD_CTX): TIdC_INT; + function EVP_DigestInit(ctx: PEVP_MD_CTX; const type_: PEVP_MD): TIdC_INT; + function EVP_DigestFinal(ctx: PEVP_MD_CTX; md: PByte; s: PIdC_UINT): TIdC_INT; + function EVP_DigestFinalXOF(ctx: PEVP_MD_CTX; md: PByte; len: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + + function EVP_read_pw_string(buf: PIdAnsiChar; length: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT; + function EVP_read_pw_string_min(buf: PIdAnsiChar; minlen: TIdC_INT; maxlen: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT; + procedure EVP_set_pw_prompt(const prompt: PIdAnsiChar); + function EVP_get_pw_prompt: PIdAnsiChar; + function EVP_BytesToKey(const type_: PEVP_CIPHER; const md: PEVP_MD; const salt: PByte; const data: PByte; data1: TIdC_INT; count: TIdC_INT; key: PByte; iv: PByte): TIdC_INT; + + procedure EVP_CIPHER_CTX_set_flags(ctx: PEVP_CIPHER_CTX; flags: TIdC_INT); + procedure EVP_CIPHER_CTX_clear_flags(ctx: PEVP_CIPHER_CTX; flags: TIdC_INT); + function EVP_CIPHER_CTX_test_flags(const ctx: PEVP_CIPHER_CTX; flags: TIdC_INT): TIdC_INT; + + function EVP_EncryptInit(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; const key: PByte; const iv: PByte): TIdC_INT; + function EVP_EncryptInit_ex(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; impl: PENGINE; const key: PByte; const iv: PByte): TIdC_INT; + function EVP_EncryptUpdate(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in_1: TIdC_INT): TIdC_INT; + function EVP_EncryptFinal_ex(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT; + function EVP_EncryptFinal(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT; + + function EVP_DecryptInit(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PidC_INT): TIdC_INT; + function EVP_DecryptInit_ex(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; impl: PENGINE; const key: PByte; const iv: PByte): TIdC_INT; + function EVP_DecryptUpdate(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in_1: TIdC_INT): TIdC_INT; + function EVP_DecryptFinal(ctx: PEVP_CIPHER_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT; + function EVP_DecryptFinal_ex(ctx: PEVP_MD_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT; + + function EVP_CipherInit(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; const key: PByte; const iv: PByte; enc: TIdC_INT): TIdC_INT; + function EVP_CipherInit_ex(ctx: PEVP_CIPHER_CTX; const cipher: PEVP_CIPHER; impl: PENGINE; const key: PByte; const iv: PByte; enc: TidC_INT): TIdC_INT; + function EVP_CipherUpdate(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in1: TIdC_INT): TIdC_INT; + function EVP_CipherFinal(ctx: PEVP_CIPHER_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT; + function EVP_CipherFinal_ex(ctx: PEVP_CIPHER_CTX; outm: PByte; out1: PIdC_INT): TIdC_INT; + + function EVP_SignFinal(ctx: PEVP_CIPHER_CTX; md: PByte; s: PIdC_UINT; pkey: PEVP_PKEY): TIdC_INT; + + function EVP_DigestSign(ctx: PEVP_CIPHER_CTX; sigret: PByte; siglen: PIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + + function EVP_VerifyFinal(ctx: PEVP_MD_CTX; const sigbuf: PByte; siglen: TIdC_UINT; pkey: PEVP_PKEY): TIdC_INT; + + function EVP_DigestVerify(ctx: PEVP_CIPHER_CTX; const sigret: PByte; siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + + function EVP_DigestSignInit(ctx: PEVP_MD_CTX; pctx: PPEVP_PKEY_CTX; const type_: PEVP_MD; e: PENGINE; pkey: PEVP_PKEY): TIdC_INT; + function EVP_DigestSignFinal(ctx: PEVP_MD_CTX; sigret: PByte; siglen: PIdC_SIZET): TIdC_INT; + + function EVP_DigestVerifyInit(ctx: PEVP_MD_CTX; ppctx: PPEVP_PKEY_CTX; const type_: PEVP_MD; e: PENGINE; pkey: PEVP_PKEY): TIdC_INT; + function EVP_DigestVerifyFinal(ctx: PEVP_MD_CTX; const sig: PByte; siglen: TIdC_SIZET): TIdC_INT; + + function EVP_OpenInit(ctx: PEVP_CIPHER_CTX; const type_: PEVP_CIPHER; const ek: PByte; ek1: TIdC_INT; const iv: PByte; priv: PEVP_PKEY): TIdC_INT; + function EVP_OpenFinal(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT; + + function EVP_SealInit(ctx: PEVP_CIPHER_CTX; const type_: EVP_CIPHER; ek: PPByte; ek1: PIdC_INT; iv: PByte; pubk: PPEVP_PKEY; npubk: TIdC_INT): TIdC_INT; + function EVP_SealFinal(ctx: PEVP_CIPHER_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT; + + function EVP_ENCODE_CTX_new: PEVP_ENCODE_CTX; {introduced 1.1.0} + procedure EVP_ENCODE_CTX_free(ctx: PEVP_ENCODE_CTX); {introduced 1.1.0} + function EVP_ENCODE_CTX_copy(dctx: PEVP_ENCODE_CTX; sctx: PEVP_ENCODE_CTX): TIdC_INT; {introduced 1.1.0} + function EVP_ENCODE_CTX_num(ctx: PEVP_ENCODE_CTX): TIdC_INT; {introduced 1.1.0} + procedure EVP_EncodeInit(ctx: PEVP_ENCODE_CTX); + function EVP_EncodeUpdate(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in1: TIdC_INT): TIdC_INT; + procedure EVP_EncodeFinal(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT); + function EVP_EncodeBlock(t: PByte; const f: PByte; n: TIdC_INT): TIdC_INT; + + procedure EVP_DecodeInit(ctx: PEVP_ENCODE_CTX); + function EVP_DecodeUpdate(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT; const in_: PByte; in1: TIdC_INT): TIdC_INT; + function EVP_DecodeFinal(ctx: PEVP_ENCODE_CTX; out_: PByte; out1: PIdC_INT): TIdC_INT; + function EVP_DecodeBlock(t: PByte; const f: PByte; n: TIdC_INT): TIdC_INT; + + function EVP_CIPHER_CTX_new: PEVP_CIPHER_CTX; + function EVP_CIPHER_CTX_reset(c: PEVP_CIPHER_CTX): TIdC_INT; {introduced 1.1.0} + procedure EVP_CIPHER_CTX_free(c: PEVP_CIPHER_CTX); + function EVP_CIPHER_CTX_set_key_length(x: PEVP_CIPHER_CTX; keylen: TIdC_INT): TIdC_INT; + function EVP_CIPHER_CTX_set_padding(c: PEVP_CIPHER_CTX; pad: TIdC_INT): TIdC_INT; + function EVP_CIPHER_CTX_ctrl(ctx: PEVP_CIPHER_CTX; type_: TIdC_INT; arg: TIdC_INT; ptr: Pointer): TIdC_INT; + function EVP_CIPHER_CTX_rand_key(ctx: PEVP_CIPHER_CTX; key: PByte): TIdC_INT; + + function BIO_f_md: PBIO_METHOD; + function BIO_f_base64: PBIO_METHOD; + function BIO_f_cipher: PBIO_METHOD; + function BIO_f_reliable: PBIO_METHOD; + function BIO_set_cipher(b: PBIO; c: PEVP_CIPHER; const k: PByte; const i: PByte; enc: TIdC_INT): TIdC_INT; + + function EVP_md_null: PEVP_MD; + + function EVP_md5: PEVP_MD; + function EVP_md5_sha1: PEVP_MD; {introduced 1.1.0} + + function EVP_sha1: PEVP_MD; + function EVP_sha224: PEVP_MD; + function EVP_sha256: PEVP_MD; + function EVP_sha384: PEVP_MD; + function EVP_sha512: PEVP_MD; + function EVP_sha512_224: PEVP_MD; {introduced 1.1.0} + function EVP_sha512_256: PEVP_MD; {introduced 1.1.0} + function EVP_sha3_224: PEVP_MD; {introduced 1.1.0} + function EVP_sha3_256: PEVP_MD; {introduced 1.1.0} + function EVP_sha3_384: PEVP_MD; {introduced 1.1.0} + function EVP_sha3_512: PEVP_MD; {introduced 1.1.0} + function EVP_shake128: PEVP_MD; {introduced 1.1.0} + function EVP_shake256: PEVP_MD; {introduced 1.1.0} + + (* does nothing :-) *) + function EVP_enc_null: PEVP_CIPHER; + + function EVP_des_ecb: PEVP_CIPHER; + function EVP_des_ede: PEVP_CIPHER; + function EVP_des_ede3: PEVP_CIPHER; + function EVP_des_ede_ecb: PEVP_CIPHER; + function EVP_des_ede3_ecb: PEVP_CIPHER; + function EVP_des_cfb64: PEVP_CIPHER; + //EVP_des_cfb EVP_des_cfb64 + function EVP_des_cfb1: PEVP_CIPHER; + function EVP_des_cfb8: PEVP_CIPHER; + function EVP_des_ede_cfb64: PEVP_CIPHER; + function EVP_des_ede3_cfb64: PEVP_CIPHER; + //EVP_des_ede3_cfb EVP_des_ede3_cfb64 + function EVP_des_ede3_cfb1: PEVP_CIPHER; + function EVP_des_ede3_cfb8: PEVP_CIPHER; + function EVP_des_ofb: PEVP_CIPHER; + function EVP_des_ede_ofb: PEVP_CIPHER; + function EVP_des_ede3_ofb: PEVP_CIPHER; + function EVP_des_cbc: PEVP_CIPHER; + function EVP_des_ede_cbc: PEVP_CIPHER; + function EVP_des_ede3_cbc: PEVP_CIPHER; + function EVP_desx_cbc: PEVP_CIPHER; + function EVP_des_ede3_wrap: PEVP_CIPHER; + // + // This should now be supported through the dev_crypto ENGINE. But also, why + // are rc4 and md5 declarations made here inside a "NO_DES" precompiler + // branch? + // + function EVP_rc4: PEVP_CIPHER; + function EVP_rc4_40: PEVP_CIPHER; +// function EVP_idea_ecb: PEVP_CIPHER; +// function EVP_idea_cfb64: PEVP_CIPHER; + //EVP_idea_cfb EVP_idea_cfb64 +// function EVP_idea_ofb: PEVP_CIPHER; + // function EVP_idea_cbc: PEVP_CIPHER; + function EVP_rc2_ecb: PEVP_CIPHER; + function EVP_rc2_cbc: PEVP_CIPHER; + function EVP_rc2_40_cbc: PEVP_CIPHER; + function EVP_rc2_64_cbc: PEVP_CIPHER; + function EVP_rc2_cfb64: PEVP_CIPHER; + //EVP_rc2_cfb EVP_rc2_cfb64 + function EVP_rc2_ofb: PEVP_CIPHER; + function EVP_bf_ecb: PEVP_CIPHER; + function EVP_bf_cbc: PEVP_CIPHER; + function EVP_bf_cfb64: PEVP_CIPHER; + //EVP_bf_cfb EVP_bf_cfb64 + function EVP_bf_ofb: PEVP_CIPHER; + function EVP_cast5_ecb: PEVP_CIPHER; + function EVP_cast5_cbc: PEVP_CIPHER; + function EVP_cast5_cfb64: PEVP_CIPHER; + //EVP_cast5_cfb EVP_cast5_cfb64 + function EVP_cast5_ofb: PEVP_CIPHER; +// function EVP_rc5_32_12_16_cbc: PEVP_CIPHER; +// function EVP_rc5_32_12_16_ecb: PEVP_CIPHER; +// function EVP_rc5_32_12_16_cfb64: PEVP_CIPHER; + //EVP_rc5_32_12_16_cfb EVP_rc5_32_12_16_cfb64 +// function EVP_rc5_32_12_16_ofb: PEVP_CIPHER; + + function EVP_aes_128_ecb: PEVP_CIPHER; + function EVP_aes_128_cbc: PEVP_CIPHER; + function EVP_aes_128_cfb1: PEVP_CIPHER; + function EVP_aes_128_cfb8: PEVP_CIPHER; + function EVP_aes_128_cfb128: PEVP_CIPHER; + //EVP_aes_128_cfb EVP_aes_128_cfb128 + function EVP_aes_128_ofb: PEVP_CIPHER; + function EVP_aes_128_ctr: PEVP_CIPHER; + function EVP_aes_128_ccm: PEVP_CIPHER; + function EVP_aes_128_gcm: PEVP_CIPHER; + function EVP_aes_128_xts: PEVP_CIPHER; + function EVP_aes_128_wrap: PEVP_CIPHER; + function EVP_aes_128_wrap_pad: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aes_128_ocb: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aes_192_ecb: PEVP_CIPHER; + function EVP_aes_192_cbc: PEVP_CIPHER; + function EVP_aes_192_cfb1: PEVP_CIPHER; + function EVP_aes_192_cfb8: PEVP_CIPHER; + function EVP_aes_192_cfb128: PEVP_CIPHER; + //EVP_aes_192_cfb EVP_aes_192_cfb128 + function EVP_aes_192_ofb: PEVP_CIPHER; + function EVP_aes_192_ctr: PEVP_CIPHER; + function EVP_aes_192_ccm: PEVP_CIPHER; + function EVP_aes_192_gcm: PEVP_CIPHER; + function EVP_aes_192_wrap: PEVP_CIPHER; + function EVP_aes_192_wrap_pad: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aes_192_ocb: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aes_256_ecb: PEVP_CIPHER; + function EVP_aes_256_cbc: PEVP_CIPHER; + function EVP_aes_256_cfb1: PEVP_CIPHER; + function EVP_aes_256_cfb8: PEVP_CIPHER; + function EVP_aes_256_cfb128: PEVP_CIPHER; + //EVP_aes_256_cfb EVP_aes_256_cfb128 + function EVP_aes_256_ofb: PEVP_CIPHER; + function EVP_aes_256_ctr: PEVP_CIPHER; + function EVP_aes_256_ccm: PEVP_CIPHER; + function EVP_aes_256_gcm: PEVP_CIPHER; + function EVP_aes_256_xts: PEVP_CIPHER; + function EVP_aes_256_wrap: PEVP_CIPHER; + function EVP_aes_256_wrap_pad: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aes_256_ocb: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aes_128_cbc_hmac_sha1: PEVP_CIPHER; + function EVP_aes_256_cbc_hmac_sha1: PEVP_CIPHER; + function EVP_aes_128_cbc_hmac_sha256: PEVP_CIPHER; + function EVP_aes_256_cbc_hmac_sha256: PEVP_CIPHER; + + function EVP_aria_128_ecb: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_128_cbc: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_128_cfb1: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_128_cfb8: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_128_cfb128: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_128_ctr: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_128_ofb: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_128_gcm: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_128_ccm: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_192_ecb: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_192_cbc: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_192_cfb1: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_192_cfb8: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_192_cfb128: PEVP_CIPHER; {introduced 1.1.0} + //EVP_aria_192_cfb EVP_aria_192_cfb128 + function EVP_aria_192_ctr: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_192_ofb: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_192_gcm: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_192_ccm: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_256_ecb: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_256_cbc: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_256_cfb1: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_256_cfb8: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_256_cfb128: PEVP_CIPHER; {introduced 1.1.0} + //EVP_aria_256_cfb EVP_aria_256_cfb128 + function EVP_aria_256_ctr: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_256_ofb: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_256_gcm: PEVP_CIPHER; {introduced 1.1.0} + function EVP_aria_256_ccm: PEVP_CIPHER; {introduced 1.1.0} + + function EVP_camellia_128_ecb: PEVP_CIPHER; + function EVP_camellia_128_cbc: PEVP_CIPHER; + function EVP_camellia_128_cfb1: PEVP_CIPHER; + function EVP_camellia_128_cfb8: PEVP_CIPHER; + function EVP_camellia_128_cfb128: PEVP_CIPHER; + //EVP_camellia_128_cfb EVP_camellia_128_cfb128 + function EVP_camellia_128_ofb: PEVP_CIPHER; + function EVP_camellia_128_ctr: PEVP_CIPHER; {introduced 1.1.0} + function EVP_camellia_192_ecb: PEVP_CIPHER; + function EVP_camellia_192_cbc: PEVP_CIPHER; + function EVP_camellia_192_cfb1: PEVP_CIPHER; + function EVP_camellia_192_cfb8: PEVP_CIPHER; + function EVP_camellia_192_cfb128: PEVP_CIPHER; + //EVP_camellia_192_cfb EVP_camellia_192_cfb128 + function EVP_camellia_192_ofb: PEVP_CIPHER; + function EVP_camellia_192_ctr: PEVP_CIPHER; {introduced 1.1.0} + function EVP_camellia_256_ecb: PEVP_CIPHER; + function EVP_camellia_256_cbc: PEVP_CIPHER; + function EVP_camellia_256_cfb1: PEVP_CIPHER; + function EVP_camellia_256_cfb8: PEVP_CIPHER; + function EVP_camellia_256_cfb128: PEVP_CIPHER; + //EVP_camellia_256_cfb EVP_camellia_256_cfb128 + function EVP_camellia_256_ofb: PEVP_CIPHER; + function EVP_camellia_256_ctr: PEVP_CIPHER; {introduced 1.1.0} + + function EVP_chacha20: PEVP_CIPHER; {introduced 1.1.0} + function EVP_chacha20_poly1305: PEVP_CIPHER; {introduced 1.1.0} + + function EVP_seed_ecb: PEVP_CIPHER; + function EVP_seed_cbc: PEVP_CIPHER; + function EVP_seed_cfb128: PEVP_CIPHER; + //EVP_seed_cfb EVP_seed_cfb128 + function EVP_seed_ofb: PEVP_CIPHER; + + function EVP_sm4_ecb: PEVP_CIPHER; {introduced 1.1.0} + function EVP_sm4_cbc: PEVP_CIPHER; {introduced 1.1.0} + function EVP_sm4_cfb128: PEVP_CIPHER; {introduced 1.1.0} + //EVP_sm4_cfb EVP_sm4_cfb128 + function EVP_sm4_ofb: PEVP_CIPHER; {introduced 1.1.0} + function EVP_sm4_ctr: PEVP_CIPHER; {introduced 1.1.0} + + function EVP_add_cipher(const cipher: PEVP_CIPHER): TIdC_INT; + function EVP_add_digest(const digest: PEVP_MD): TIdC_INT; + + function EVP_get_cipherbyname(const name: PIdAnsiChar): PEVP_CIPHER; + function EVP_get_digestbyname(const name: PIdAnsiChar): PEVP_MD; + + procedure EVP_CIPHER_do_all(AFn: fn; arg: Pointer); + procedure EVP_CIPHER_do_all_sorted(AFn: fn; arg: Pointer); + + procedure EVP_MD_do_all(AFn: fn; arg: Pointer); + procedure EVP_MD_do_all_sorted(AFn: fn; arg: Pointer); + + function EVP_PKEY_decrypt_old(dec_key: PByte; const enc_key: PByte; enc_key_len: TIdC_INT; private_key: PEVP_PKEY): TIdC_INT; + function EVP_PKEY_encrypt_old(dec_key: PByte; const enc_key: PByte; key_len: TIdC_INT; pub_key: PEVP_PKEY): TIdC_INT; + function EVP_PKEY_type(type_: TIdC_INT): TIdC_INT; + function EVP_PKEY_id(const pkey: PEVP_PKEY): TIdC_INT; {removed 3.0.0} + function EVP_PKEY_base_id(const pkey: PEVP_PKEY): TIdC_INT; {removed 3.0.0} + function EVP_PKEY_bits(const pkey: PEVP_PKEY): TIdC_INT; {removed 3.0.0} + function EVP_PKEY_security_bits(const pkey: PEVP_PKEY): TIdC_INT; {introduced 1.1.0 removed 3.0.0} + function EVP_PKEY_size(const pkey: PEVP_PKEY): TIdC_INT; {removed 3.0.0} + function EVP_PKEY_set_type(pkey: PEVP_PKEY): TIdC_INT; + function EVP_PKEY_set_type_str(pkey: PEVP_PKEY; const str: PIdAnsiChar; len: TIdC_INT): TIdC_INT; + function EVP_PKEY_set_alias_type(pkey: PEVP_PKEY; type_: TIdC_INT): TIdC_INT; {introduced 1.1.0 removed 3.0.0} + + function EVP_PKEY_set1_engine(pkey: PEVP_PKEY; e: PENGINE): TIdC_INT; {introduced 1.1.0} + function EVP_PKEY_get0_engine(const pkey: PEVP_PKEY): PENGINE; {introduced 1.1.0} + + function EVP_PKEY_assign(pkey: PEVP_PKEY; type_: TIdC_INT; key: Pointer): TIdC_INT; + function EVP_PKEY_get0(const pkey: PEVP_PKEY): Pointer; + function EVP_PKEY_get0_hmac(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte; {introduced 1.1.0} + function EVP_PKEY_get0_poly1305(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte; {introduced 1.1.0} + function EVP_PKEY_get0_siphash(const pkey: PEVP_PKEY; len: PIdC_SIZET): PByte; {introduced 1.1.0} + + function EVP_PKEY_set1_RSA(pkey: PEVP_PKEY; key: PRSA): TIdC_INT; + function EVP_PKEY_get0_RSA(pkey: PEVP_PKEY): PRSA; {introduced 1.1.0} + function EVP_PKEY_get1_RSA(pkey: PEVP_PKEY): PRSA; + + function EVP_PKEY_set1_DSA(pkey: PEVP_PKEY; key: PDSA): TIdC_INT; + function EVP_PKEY_get0_DSA(pkey: PEVP_PKEY): PDSA; {introduced 1.1.0} + function EVP_PKEY_get1_DSA(pkey: PEVP_PKEY): PDSA; + + function EVP_PKEY_set1_DH(pkey: PEVP_PKEY; key: PDH): TIdC_INT; + function EVP_PKEY_get0_DH(pkey: PEVP_PKEY): PDH; {introduced 1.1.0} + function EVP_PKEY_get1_DH(pkey: PEVP_PKEY): PDH; + + function EVP_PKEY_set1_EC_KEY(pkey: PEVP_PKEY; key: PEC_KEY): TIdC_INT; + function EVP_PKEY_get0_EC_KEY(pkey: PEVP_PKEY): PEC_KEY; {introduced 1.1.0} + function EVP_PKEY_get1_EC_KEY(pkey: PEVP_PKEY): PEC_KEY; + + function EVP_PKEY_new: PEVP_PKEY; + function EVP_PKEY_up_ref(pkey: PEVP_PKEY): TIdC_INT; {introduced 1.1.0} + procedure EVP_PKEY_free(pkey: PEVP_PKEY); + + function d2i_PublicKey(type_: TIdC_INT; a: PPEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY; + function i2d_PublicKey(a: PEVP_PKEY; pp: PPByte): TIdC_INT; + + function d2i_PrivateKey(type_: TIdC_INT; a: PEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY; + function d2i_AutoPrivateKey(a: PPEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY; + function i2d_PrivateKey(a: PEVP_PKEY; pp: PPByte): TIdC_INT; + + function EVP_PKEY_copy_parameters(to_: PEVP_PKEY; const from: PEVP_PKEY): TIdC_INT; + function EVP_PKEY_missing_parameters(const pkey: PEVP_PKEY): TIdC_INT; + function EVP_PKEY_save_parameters(pkey: PEVP_PKEY; mode: TIdC_INT): TIdC_INT; + function EVP_PKEY_cmp_parameters(const a: PEVP_PKEY; const b: PEVP_PKEY): TIdC_INT; + + function EVP_PKEY_cmp(const a: PEVP_PKEY; const b: PEVP_PKEY): TIdC_INT; + + function EVP_PKEY_print_public(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; + function EVP_PKEY_print_private(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; + function EVP_PKEY_print_params(out_: PBIO; const pkey: PEVP_PKEY; indent: TIdC_INT; pctx: PASN1_PCTX): TIdC_INT; + + function EVP_PKEY_get_default_digest_nid(pkey: PEVP_PKEY; pnid: PIdC_INT): TIdC_INT; + + function EVP_PKEY_set1_tls_encodedpoint(pkey: PEVP_PKEY; const pt: PByte; ptlen: TIdC_SIZET): TIdC_INT; {introduced 1.1.0 removed 3.0.0} + function EVP_PKEY_get1_tls_encodedpoint(pkey: PEVP_PKEY; ppt: PPByte): TIdC_SIZET; {introduced 1.1.0 removed 3.0.0} + + function EVP_CIPHER_type(const ctx: PEVP_CIPHER): TIdC_INT; {removed 3.0.0} + + (* calls methods *) + function EVP_CIPHER_param_to_asn1(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT; + function EVP_CIPHER_asn1_to_param(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT; + + (* These are used by EVP_CIPHER methods *) + function EVP_CIPHER_set_asn1_iv(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT; + function EVP_CIPHER_get_asn1_iv(c: PEVP_CIPHER_CTX; type_: PASN1_TYPE): TIdC_INT; + + (* PKCS5 password based encryption *) + function PKCS5_PBE_keyivgen(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const cipher: PEVP_CIPHER; const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT; + function PKCS5_PBKDF2_HMAC_SHA1(const pass: PIdAnsiChar; passlen: TIdC_INT; const salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; keylen: TIdC_INT; out_: PByte): TIdC_INT; + function PKCS5_PBKDF2_HMAC(const pass: PIdAnsiChar; passlen: TIdC_INT; const salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; const digest: PEVP_MD; keylen: TIdC_INT; out_: PByte): TIdC_INT; + function PKCS5_v2_PBE_keyivgen(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const cipher: PEVP_CIPHER; const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT; + + function EVP_PBE_scrypt(const pass: PIdAnsiChar; passlen: TIdC_SIZET; const salt: PByte; saltlen: TIdC_SIZET; N: TIdC_UINT64; r: TIdC_UINT64; p: TIdC_UINT64; maxmem: TIdC_UINT64; key: PByte; keylen: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + + function PKCS5_v2_scrypt_keyivgen(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const c: PEVP_CIPHER; const md: PEVP_MD; en_de: TIdC_INT): TIdC_INT; {introduced 1.1.0} + + procedure PKCS5_PBE_add; + + function EVP_PBE_CipherInit(pbe_obj: PASN1_OBJECT; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; ctx: PEVP_CIPHER_CTX; en_de: TIdC_INT): TIdC_INT; + + (* PBE type *) + function EVP_PBE_alg_add_type(pbe_type: TIdC_INT; pbe_nid: TIdC_INT; cipher_nid: TIdC_INT; md_nid: TIdC_INT; keygen: PEVP_PBE_KEYGEN): TIdC_INT; + function EVP_PBE_alg_add(nid: TIdC_INT; const cipher: PEVP_CIPHER; const md: PEVP_MD; keygen: PEVP_PBE_KEYGEN): TIdC_INT; + function EVP_PBE_find(type_: TIdC_INT; pbe_nid: TIdC_INT; pcnid: PIdC_INT; pmnid: PIdC_INT; pkeygen: PPEVP_PBE_KEYGEN): TIdC_INT; + procedure EVP_PBE_cleanup; + function EVP_PBE_get(ptype: PIdC_INT; ppbe_nid: PIdC_INT; num: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + + function EVP_PKEY_asn1_get_count: TIdC_INT; + function EVP_PKEY_asn1_get0(idx: TIdC_INT): PEVP_PKEY_ASN1_METHOD; + function EVP_PKEY_asn1_find(pe: PPENGINE; type_: TIdC_INT): PEVP_PKEY_ASN1_METHOD; + function EVP_PKEY_asn1_find_str(pe: PPENGINE; const str: PIdAnsiChar; len: TIdC_INT): PEVP_PKEY_ASN1_METHOD; + function EVP_PKEY_asn1_add0(const ameth: PEVP_PKEY_ASN1_METHOD): TIdC_INT; + function EVP_PKEY_asn1_add_alias(to_: TIdC_INT; from: TIdC_INT): TIdC_INT; + function EVP_PKEY_asn1_get0_info(ppkey_id: PIdC_INT; pkey_base_id: PIdC_INT; ppkey_flags: PIdC_INT; const pinfo: PPIdAnsiChar; const ppem_str: PPIdAnsiChar; const ameth: PEVP_PKEY_ASN1_METHOD): TIdC_INT; + + function EVP_PKEY_get0_asn1(const pkey: PEVP_PKEY): PEVP_PKEY_ASN1_METHOD; + function EVP_PKEY_asn1_new(id: TIdC_INT; flags: TIdC_INT; const pem_str: PIdAnsiChar; const info: PIdAnsiChar): PEVP_PKEY_ASN1_METHOD; + procedure EVP_PKEY_asn1_copy(dst: PEVP_PKEY_ASN1_METHOD; const src: PEVP_PKEY_ASN1_METHOD); + procedure EVP_PKEY_asn1_free(ameth: PEVP_PKEY_ASN1_METHOD); + + procedure EVP_PKEY_asn1_set_public(ameth: PEVP_PKEY_ASN1_METHOD; APub_decode: pub_decode; APub_encode: pub_encode; APub_cmd: pub_cmd; APub_print: pub_print; APkey_size: pkey_size; APkey_bits: pkey_bits); + procedure EVP_PKEY_asn1_set_private(ameth: PEVP_PKEY_ASN1_METHOD; APriv_decode: priv_decode; APriv_encode: priv_encode; APriv_print: priv_print); + procedure EVP_PKEY_asn1_set_param(ameth: PEVP_PKEY_ASN1_METHOD; AParam_decode: param_decode; AParam_encode: param_encode; AParam_missing: param_missing; AParam_copy: param_copy; AParam_cmp: param_cmp; AParam_print: param_print); + + procedure EVP_PKEY_asn1_set_free(ameth: PEVP_PKEY_ASN1_METHOD; APkey_free: pkey_free); + procedure EVP_PKEY_asn1_set_ctrl(ameth: PEVP_PKEY_ASN1_METHOD; APkey_ctrl: pkey_ctrl); + procedure EVP_PKEY_asn1_set_item(ameth: PEVP_PKEY_ASN1_METHOD; AItem_verify: item_verify; AItem_sign: item_sign); + + procedure EVP_PKEY_asn1_set_siginf(ameth: PEVP_PKEY_ASN1_METHOD; ASiginf_set: siginf_set); {introduced 1.1.0} + + procedure EVP_PKEY_asn1_set_check(ameth: PEVP_PKEY_ASN1_METHOD; APkey_check: pkey_check); {introduced 1.1.0} + + procedure EVP_PKEY_asn1_set_public_check(ameth: PEVP_PKEY_ASN1_METHOD; APkey_pub_check: pkey_pub_check); {introduced 1.1.0} + + procedure EVP_PKEY_asn1_set_param_check(ameth: PEVP_PKEY_ASN1_METHOD; APkey_param_check: pkey_param_check); {introduced 1.1.0} + + procedure EVP_PKEY_asn1_set_set_priv_key(ameth: PEVP_PKEY_ASN1_METHOD; ASet_priv_key: set_priv_key); {introduced 1.1.0} + procedure EVP_PKEY_asn1_set_set_pub_key(ameth: PEVP_PKEY_ASN1_METHOD; ASet_pub_key: set_pub_key); {introduced 1.1.0} + procedure EVP_PKEY_asn1_set_get_priv_key(ameth: PEVP_PKEY_ASN1_METHOD; AGet_priv_key: get_priv_key); {introduced 1.1.0} + procedure EVP_PKEY_asn1_set_get_pub_key(ameth: PEVP_PKEY_ASN1_METHOD; AGet_pub_key: get_pub_key); {introduced 1.1.0} + + procedure EVP_PKEY_asn1_set_security_bits(ameth: PEVP_PKEY_ASN1_METHOD; APkey_security_bits: pkey_security_bits); {introduced 1.1.0} + + function EVP_PKEY_meth_find(type_: TIdC_INT): PEVP_PKEY_METHOD; + function EVP_PKEY_meth_new(id: TIdC_INT; flags: TIdC_INT): PEVP_PKEY_METHOD; + procedure EVP_PKEY_meth_get0_info(ppkey_id: PIdC_INT; pflags: PIdC_INT; const meth: PEVP_PKEY_METHOD); + procedure EVP_PKEY_meth_copy(dst: PEVP_PKEY_METHOD; const src: PEVP_PKEY_METHOD); + procedure EVP_PKEY_meth_free(pmeth: PEVP_PKEY_METHOD); + function EVP_PKEY_meth_add0(const pmeth: PEVP_PKEY_METHOD): TIdC_INT; + function EVP_PKEY_meth_remove(const pmeth: PEVP_PKEY_METHOD): TIdC_INT; {introduced 1.1.0} + function EVP_PKEY_meth_get_count: TIdC_SIZET; {introduced 1.1.0} + function EVP_PKEY_meth_get0(idx: TIdC_SIZET): PEVP_PKEY_METHOD; {introduced 1.1.0} + + function EVP_PKEY_CTX_new(pkey: PEVP_PKEY; e: PENGINE): PEVP_PKEY_CTX; + function EVP_PKEY_CTX_new_id(id: TIdC_INT; e: PENGINE): PEVP_PKEY_CTX; + function EVP_PKEY_CTX_dup(ctx: PEVP_PKEY_CTX): PEVP_PKEY_CTX; + procedure EVP_PKEY_CTX_free(ctx: PEVP_PKEY_CTX); + + function EVP_PKEY_CTX_ctrl(ctx: PEVP_PKEY_CTX; keytype: TIdC_INT; optype: TIdC_INT; cmd: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT; + function EVP_PKEY_CTX_ctrl_str(ctx: PEVP_PKEY_CTX; const type_: PIdAnsiChar; const value: PIdAnsiChar): TIdC_INT; + function EVP_PKEY_CTX_ctrl_uint64(ctx: PEVP_PKEY_CTX; keytype: TIdC_INT; optype: TIdC_INT; cmd: TIdC_INT; value: TIdC_UINT64): TIdC_INT; {introduced 1.1.0} + + function EVP_PKEY_CTX_str2ctrl(ctx: PEVP_PKEY_CTX; cmd: TIdC_INT; const str: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + function EVP_PKEY_CTX_hex2ctrl(ctx: PEVP_PKEY_CTX; cmd: TIdC_INT; const hex: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + + function EVP_PKEY_CTX_md(ctx: PEVP_PKEY_CTX; optype: TIdC_INT; cmd: TIdC_INT; const md: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + + function EVP_PKEY_CTX_get_operation(ctx: PEVP_PKEY_CTX): TIdC_INT; + procedure EVP_PKEY_CTX_set0_keygen_info(ctx: PEVP_PKEY_CTX; dat: PIdC_INT; datlen: TIdC_INT); + + function EVP_PKEY_new_mac_key(type_: TIdC_INT; e: PENGINE; const key: PByte; keylen: TIdC_INT): PEVP_PKEY; + function EVP_PKEY_new_raw_private_key(type_: TIdC_INT; e: PENGINE; const priv: PByte; len: TIdC_SIZET): PEVP_PKEY; {introduced 1.1.0} + function EVP_PKEY_new_raw_public_key(type_: TIdC_INT; e: PENGINE; const pub: PByte; len: TIdC_SIZET): PEVP_PKEY; {introduced 1.1.0} + function EVP_PKEY_get_raw_private_key(const pkey: PEVP_PKEY; priv: PByte; len: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function EVP_PKEY_get_raw_public_key(const pkey: PEVP_PKEY; pub: PByte; len: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + + function EVP_PKEY_new_CMAC_key(e: PENGINE; const priv: PByte; len: TIdC_SIZET; const cipher: PEVP_CIPHER): PEVP_PKEY; {introduced 1.1.0} + + procedure EVP_PKEY_CTX_set_data(ctx: PEVP_PKEY_CTX; data: Pointer); + function EVP_PKEY_CTX_get_data(ctx: PEVP_PKEY_CTX): Pointer; + function EVP_PKEY_CTX_get0_pkey(ctx: PEVP_PKEY_CTX): PEVP_PKEY; + + function EVP_PKEY_CTX_get0_peerkey(ctx: PEVP_PKEY_CTX): PEVP_PKEY; + + procedure EVP_PKEY_CTX_set_app_data(ctx: PEVP_PKEY_CTX; data: Pointer); + function EVP_PKEY_CTX_get_app_data(ctx: PEVP_PKEY_CTX): Pointer; + + function EVP_PKEY_sign_init(ctx: PEVP_PKEY_CTX): TIdC_INT; + function EVP_PKEY_sign(ctx: PEVP_PKEY_CTX; sig: PByte; siglen: PIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; + function EVP_PKEY_verify_init(ctx: PEVP_PKEY_CTX): TIdC_INT; + function EVP_PKEY_verify(ctx: PEVP_PKEY_CTX; const sig: PByte; siglen: TIdC_SIZET; const tbs: PByte; tbslen: TIdC_SIZET): TIdC_INT; + function EVP_PKEY_verify_recover_init(ctx: PEVP_PKEY_CTX): TIdC_INT; + function EVP_PKEY_verify_recover(ctx: PEVP_PKEY_CTX; rout: PByte; routlen: PIdC_SIZET; const sig: PByte; siglen: TIdC_SIZET): TIdC_INT; + function EVP_PKEY_encrypt_init(ctx: PEVP_PKEY_CTX): TIdC_INT; + function EVP_PKEY_encrypt(ctx: PEVP_PKEY_CTX; out_: PByte; outlen: PIdC_SIZET; const in_: PByte; inlen: TIdC_SIZET): TIdC_INT; + function EVP_PKEY_decrypt_init(ctx: PEVP_PKEY_CTX): TIdC_INT; + function EVP_PKEY_decrypt(ctx: PEVP_PKEY_CTX; out_: PByte; outlen: PIdC_SIZET; const in_: PByte; inlen: TIdC_SIZET): TIdC_INT; + + function EVP_PKEY_derive_init(ctx: PEVP_PKEY_CTX): TIdC_INT; + function EVP_PKEY_derive_set_peer(ctx: PEVP_PKEY_CTX; peer: PEVP_PKEY): TIdC_INT; + function EVP_PKEY_derive(ctx: PEVP_PKEY_CTX; key: PByte; keylen: PIdC_SIZET): TIdC_INT; + + function EVP_PKEY_paramgen_init(ctx: PEVP_PKEY_CTX): TIdC_INT; + function EVP_PKEY_paramgen(ctx: PEVP_PKEY_CTX; ppkey: PPEVP_PKEY): TIdC_INT; + function EVP_PKEY_keygen_init(ctx: PEVP_PKEY_CTX): TIdC_INT; + function EVP_PKEY_keygen(ctx: PEVP_PKEY_CTX; ppkey: PPEVP_PKEY): TIdC_INT; + function EVP_PKEY_check(ctx: PEVP_PKEY_CTX): TIdC_INT; {introduced 1.1.0} + function EVP_PKEY_public_check(ctx: PEVP_PKEY_CTX): TIdC_INT; {introduced 1.1.0} + function EVP_PKEY_param_check(ctx: PEVP_PKEY_CTX): TIdC_INT; {introduced 1.1.0} + + procedure EVP_PKEY_CTX_set_cb(ctx: PEVP_PKEY_CTX; cb: EVP_PKEY_gen_cb); + function EVP_PKEY_CTX_get_cb(ctx: PEVP_PKEY_CTX): EVP_PKEY_gen_cb; + + function EVP_PKEY_CTX_get_keygen_info(ctx: PEVP_PKEY_CTX; idx: TIdC_INT): TIdC_INT; + + procedure EVP_PKEY_meth_set_init(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_init: EVP_PKEY_meth_init); + + procedure EVP_PKEY_meth_set_copy(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_copy_cb: EVP_PKEY_meth_copy_cb); + + procedure EVP_PKEY_meth_set_cleanup(pmeth: PEVP_PKEY_METHOD; PEVP_PKEY_meth_cleanup: EVP_PKEY_meth_cleanup); + + procedure EVP_PKEY_meth_set_paramgen(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_paramgen_init: EVP_PKEY_meth_paramgen_init; AEVP_PKEY_meth_paramgen: EVP_PKEY_meth_paramgen_init); + + procedure EVP_PKEY_meth_set_keygen(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_keygen_init: EVP_PKEY_meth_keygen_init; AEVP_PKEY_meth_keygen: EVP_PKEY_meth_keygen); + + procedure EVP_PKEY_meth_set_sign(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_sign_init: EVP_PKEY_meth_sign_init; AEVP_PKEY_meth_sign: EVP_PKEY_meth_sign); + + procedure EVP_PKEY_meth_set_verify(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_init: EVP_PKEY_meth_verify_init; AEVP_PKEY_meth_verify: EVP_PKEY_meth_verify_init); + + procedure EVP_PKEY_meth_set_verify_recover(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_recover_init: EVP_PKEY_meth_verify_recover_init; AEVP_PKEY_meth_verify_recover: EVP_PKEY_meth_verify_recover_init); + + procedure EVP_PKEY_meth_set_signctx(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_signctx_init: EVP_PKEY_meth_signctx_init; AEVP_PKEY_meth_signctx: EVP_PKEY_meth_signctx); + + procedure EVP_PKEY_meth_set_verifyctx(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verifyctx_init: EVP_PKEY_meth_verifyctx_init; AEVP_PKEY_meth_verifyctx: EVP_PKEY_meth_verifyctx); + + procedure EVP_PKEY_meth_set_encrypt(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_encrypt_init: EVP_PKEY_meth_encrypt_init; AEVP_PKEY_meth_encrypt: EVP_PKEY_meth_encrypt); + + procedure EVP_PKEY_meth_set_decrypt(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_decrypt_init: EVP_PKEY_meth_decrypt_init; AEVP_PKEY_meth_decrypt: EVP_PKEY_meth_decrypt); + + procedure EVP_PKEY_meth_set_derive(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_derive_init: EVP_PKEY_meth_derive_init; AEVP_PKEY_meth_derive: EVP_PKEY_meth_derive); + + procedure EVP_PKEY_meth_set_ctrl(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_ctrl: EVP_PKEY_meth_ctrl; AEVP_PKEY_meth_ctrl_str: EVP_PKEY_meth_ctrl_str); + + procedure EVP_PKEY_meth_set_digestsign(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestsign: EVP_PKEY_meth_digestsign); {introduced 1.1.0} + + procedure EVP_PKEY_meth_set_digestverify(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestverify: EVP_PKEY_meth_digestverify); {introduced 1.1.0} + + procedure EVP_PKEY_meth_set_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_check: EVP_PKEY_meth_check); {introduced 1.1.0} + + procedure EVP_PKEY_meth_set_public_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_public_check: EVP_PKEY_meth_public_check); {introduced 1.1.0} + + procedure EVP_PKEY_meth_set_param_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_param_check: EVP_PKEY_meth_param_check); {introduced 1.1.0} + + procedure EVP_PKEY_meth_set_digest_custom(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digest_custom: EVP_PKEY_meth_digest_custom); {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_init(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_init: PEVP_PKEY_meth_init); + + procedure EVP_PKEY_meth_get_copy(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_copy: PEVP_PKEY_meth_copy); + + procedure EVP_PKEY_meth_get_cleanup(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_cleanup: PEVP_PKEY_meth_cleanup); + + procedure EVP_PKEY_meth_get_paramgen(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_paramgen_init: EVP_PKEY_meth_paramgen_init; AEVP_PKEY_meth_paramgen: PEVP_PKEY_meth_paramgen); + + procedure EVP_PKEY_meth_get_keygen(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_keygen_init: EVP_PKEY_meth_keygen_init; AEVP_PKEY_meth_keygen: PEVP_PKEY_meth_keygen); + + procedure EVP_PKEY_meth_get_sign(const pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_sign_init: PEVP_PKEY_meth_sign_init; AEVP_PKEY_meth_sign: PEVP_PKEY_meth_sign); + + procedure EVP_PKEY_meth_get_verify(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_init: PEVP_PKEY_meth_verify_init; AEVP_PKEY_meth_verify: PEVP_PKEY_meth_verify_init); + + procedure EVP_PKEY_meth_get_verify_recover(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verify_recover_init: PEVP_PKEY_meth_verify_recover_init; AEVP_PKEY_meth_verify_recover: PEVP_PKEY_meth_verify_recover_init); + + procedure EVP_PKEY_meth_get_signctx(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_signctx_init: PEVP_PKEY_meth_signctx_init; AEVP_PKEY_meth_signctx: PEVP_PKEY_meth_signctx); + + procedure EVP_PKEY_meth_get_verifyctx(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_verifyctx_init: PEVP_PKEY_meth_verifyctx_init; AEVP_PKEY_meth_verifyctx: PEVP_PKEY_meth_verifyctx); + + procedure EVP_PKEY_meth_get_encrypt(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_encrypt_init: PEVP_PKEY_meth_encrypt_init; AEVP_PKEY_meth_encrypt: PEVP_PKEY_meth_encrypt); + + procedure EVP_PKEY_meth_get_decrypt(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_decrypt_init: PEVP_PKEY_meth_decrypt_init; AEVP_PKEY_meth_decrypt: PEVP_PKEY_meth_decrypt); + + procedure EVP_PKEY_meth_get_derive(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_derive_init: PEVP_PKEY_meth_derive_init; AEVP_PKEY_meth_derive: PEVP_PKEY_meth_derive); + + procedure EVP_PKEY_meth_get_ctrl(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_ctrl: PEVP_PKEY_meth_ctrl; AEVP_PKEY_meth_ctrl_str: PEVP_PKEY_meth_ctrl_str); + + procedure EVP_PKEY_meth_get_digestsign(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestsign: PEVP_PKEY_meth_digestsign); {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_digestverify(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digestverify: PEVP_PKEY_meth_digestverify); {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_check: PEVP_PKEY_meth_check); {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_public_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_public_check: PEVP_PKEY_meth_public_check); {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_param_check(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_param_check: PEVP_PKEY_meth_param_check); {introduced 1.1.0} + + procedure EVP_PKEY_meth_get_digest_custom(pmeth: PEVP_PKEY_METHOD; AEVP_PKEY_meth_digest_custom: PEVP_PKEY_meth_digest_custom); {introduced 1.1.0} + + procedure EVP_add_alg_module; + + procedure OpenSSL_add_all_ciphers; {removed 1.1.0} + + procedure OpenSSL_add_all_digests; {removed 1.1.0} + + procedure EVP_cleanup; {removed 1.1.0} + +implementation + +uses IdOpenSSLHeaders_crypto; + +//# define EVP_PKEY_assign_RSA(pkey,rsa) EVP_PKEY_assign((pkey),EVP_PKEY_RSA, (char *)(rsa)) +function EVP_PKEY_assign_RSA(pkey: PEVP_PKEY; rsa: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_RSA, rsa); +end; + +//# define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA, (char *)(dsa)) +function EVP_PKEY_assign_DSA(pkey: PEVP_PKEY; dsa: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_DSA, dsa); +end; + +//# define EVP_PKEY_assign_DH(pkey,dh) EVP_PKEY_assign((pkey),EVP_PKEY_DH, (char *)(dh)) +function EVP_PKEY_assign_DH(pkey: PEVP_PKEY; dh: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_DH, dh); +end; + +//# define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC, (char *)(eckey)) +function EVP_PKEY_assign_EC_KEY(pkey: PEVP_PKEY; eckey: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_EC, eckey); +end; + +//# define EVP_PKEY_assign_SIPHASH(pkey,shkey) EVP_PKEY_assign((pkey),EVP_PKEY_SIPHASH, (char *)(shkey)) +function EVP_PKEY_assign_SIPHASH(pkey: PEVP_PKEY; shkey: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_SIPHASH, shkey); +end; + +//# define EVP_PKEY_assign_POLY1305(pkey,polykey) EVP_PKEY_assign((pkey),EVP_PKEY_POLY1305, (char *)(polykey)) +function EVP_PKEY_assign_POLY1305(pkey: PEVP_PKEY; polykey: Pointer): TIdC_INT; +begin + Result := EVP_PKEY_assign(pkey, EVP_PKEY_POLY1305, polykey); +end; + +procedure OpenSSL_add_all_ciphers; +begin + OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS, nil); +end; + +procedure OpenSSL_add_all_digests; +begin + OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_DIGESTS, Nil); +end; + +procedure EVP_cleanup; +begin +end; + +procedure BIO_set_md(v1: PBIO; const md: PEVP_MD); +begin + {define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,0,(char *)(md))} + BIO_ctrl(v1,BIO_C_SET_MD,0,PIdAnsiChar(md)); +end; + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_evperr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_evperr.h2pas new file mode 100644 index 000000000..fafbd723e --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_evperr.h2pas @@ -0,0 +1,221 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_evperr; + +interface + +// Headers for OpenSSL 1.1.1 +// evperr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * EVP function codes. + *) + EVP_F_AESNI_INIT_KEY = 165; + EVP_F_AESNI_XTS_INIT_KEY = 207; + EVP_F_AES_GCM_CTRL = 196; + EVP_F_AES_INIT_KEY = 133; + EVP_F_AES_OCB_CIPHER = 169; + EVP_F_AES_T4_INIT_KEY = 178; + EVP_F_AES_T4_XTS_INIT_KEY = 208; + EVP_F_AES_WRAP_CIPHER = 170; + EVP_F_AES_XTS_INIT_KEY = 209; + EVP_F_ALG_MODULE_INIT = 177; + EVP_F_ARIA_CCM_INIT_KEY = 175; + EVP_F_ARIA_GCM_CTRL = 197; + EVP_F_ARIA_GCM_INIT_KEY = 176; + EVP_F_ARIA_INIT_KEY = 185; + EVP_F_B64_NEW = 198; + EVP_F_CAMELLIA_INIT_KEY = 159; + EVP_F_CHACHA20_POLY1305_CTRL = 182; + EVP_F_CMLL_T4_INIT_KEY = 179; + EVP_F_DES_EDE3_WRAP_CIPHER = 171; + EVP_F_DO_SIGVER_INIT = 161; + EVP_F_ENC_NEW = 199; + EVP_F_EVP_CIPHERINIT_EX = 123; + EVP_F_EVP_CIPHER_ASN1_TO_PARAM = 204; + EVP_F_EVP_CIPHER_CTX_COPY = 163; + EVP_F_EVP_CIPHER_CTX_CTRL = 124; + EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH = 122; + EVP_F_EVP_CIPHER_PARAM_TO_ASN1 = 205; + EVP_F_EVP_DECRYPTFINAL_EX = 101; + EVP_F_EVP_DECRYPTUPDATE = 166; + EVP_F_EVP_DIGESTFINALXOF = 174; + EVP_F_EVP_DIGESTINIT_EX = 128; + EVP_F_EVP_ENCRYPTDECRYPTUPDATE = 219; + EVP_F_EVP_ENCRYPTFINAL_EX = 127; + EVP_F_EVP_ENCRYPTUPDATE = 167; + EVP_F_EVP_MD_CTX_COPY_EX = 110; + EVP_F_EVP_MD_SIZE = 162; + EVP_F_EVP_OPENINIT = 102; + EVP_F_EVP_PBE_ALG_ADD = 115; + EVP_F_EVP_PBE_ALG_ADD_TYPE = 160; + EVP_F_EVP_PBE_CIPHERINIT = 116; + EVP_F_EVP_PBE_SCRYPT = 181; + EVP_F_EVP_PKCS82PKEY = 111; + EVP_F_EVP_PKEY2PKCS8 = 113; + EVP_F_EVP_PKEY_ASN1_ADD0 = 188; + EVP_F_EVP_PKEY_CHECK = 186; + EVP_F_EVP_PKEY_COPY_PARAMETERS = 103; + EVP_F_EVP_PKEY_CTX_CTRL = 137; + EVP_F_EVP_PKEY_CTX_CTRL_STR = 150; + EVP_F_EVP_PKEY_CTX_DUP = 156; + EVP_F_EVP_PKEY_CTX_MD = 168; + EVP_F_EVP_PKEY_DECRYPT = 104; + EVP_F_EVP_PKEY_DECRYPT_INIT = 138; + EVP_F_EVP_PKEY_DECRYPT_OLD = 151; + EVP_F_EVP_PKEY_DERIVE = 153; + EVP_F_EVP_PKEY_DERIVE_INIT = 154; + EVP_F_EVP_PKEY_DERIVE_SET_PEER = 155; + EVP_F_EVP_PKEY_ENCRYPT = 105; + EVP_F_EVP_PKEY_ENCRYPT_INIT = 139; + EVP_F_EVP_PKEY_ENCRYPT_OLD = 152; + EVP_F_EVP_PKEY_GET0_DH = 119; + EVP_F_EVP_PKEY_GET0_DSA = 120; + EVP_F_EVP_PKEY_GET0_EC_KEY = 131; + EVP_F_EVP_PKEY_GET0_HMAC = 183; + EVP_F_EVP_PKEY_GET0_POLY1305 = 184; + EVP_F_EVP_PKEY_GET0_RSA = 121; + EVP_F_EVP_PKEY_GET0_SIPHASH = 172; + EVP_F_EVP_PKEY_GET_RAW_PRIVATE_KEY = 202; + EVP_F_EVP_PKEY_GET_RAW_PUBLIC_KEY = 203; + EVP_F_EVP_PKEY_KEYGEN = 146; + EVP_F_EVP_PKEY_KEYGEN_INIT = 147; + EVP_F_EVP_PKEY_METH_ADD0 = 194; + EVP_F_EVP_PKEY_METH_NEW = 195; + EVP_F_EVP_PKEY_NEW = 106; + EVP_F_EVP_PKEY_NEW_CMAC_KEY = 193; + EVP_F_EVP_PKEY_NEW_RAW_PRIVATE_KEY = 191; + EVP_F_EVP_PKEY_NEW_RAW_PUBLIC_KEY = 192; + EVP_F_EVP_PKEY_PARAMGEN = 148; + EVP_F_EVP_PKEY_PARAMGEN_INIT = 149; + EVP_F_EVP_PKEY_PARAM_CHECK = 189; + EVP_F_EVP_PKEY_PUBLIC_CHECK = 190; + EVP_F_EVP_PKEY_SET1_ENGINE = 187; + EVP_F_EVP_PKEY_SET_ALIAS_TYPE = 206; + EVP_F_EVP_PKEY_SIGN = 140; + EVP_F_EVP_PKEY_SIGN_INIT = 141; + EVP_F_EVP_PKEY_VERIFY = 142; + EVP_F_EVP_PKEY_VERIFY_INIT = 143; + EVP_F_EVP_PKEY_VERIFY_RECOVER = 144; + EVP_F_EVP_PKEY_VERIFY_RECOVER_INIT = 145; + EVP_F_EVP_SIGNFINAL = 107; + EVP_F_EVP_VERIFYFINAL = 108; + EVP_F_INT_CTX_NEW = 157; + EVP_F_OK_NEW = 200; + EVP_F_PKCS5_PBE_KEYIVGEN = 117; + EVP_F_PKCS5_V2_PBE_KEYIVGEN = 118; + EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN = 164; + EVP_F_PKCS5_V2_SCRYPT_KEYIVGEN = 180; + EVP_F_PKEY_SET_TYPE = 158; + EVP_F_RC2_MAGIC_TO_METH = 109; + EVP_F_RC5_CTRL = 125; + EVP_F_R_32_12_16_INIT_KEY = 242; + EVP_F_S390X_AES_GCM_CTRL = 201; + EVP_F_UPDATE = 173; + + (* + * EVP reason codes. + *) + EVP_R_AES_KEY_SETUP_FAILED = 143; + EVP_R_ARIA_KEY_SETUP_FAILED = 176; + EVP_R_BAD_DECRYPT = 100; + EVP_R_BAD_KEY_LENGTH = 195; + EVP_R_BUFFER_TOO_SMALL = 155; + EVP_R_CAMELLIA_KEY_SETUP_FAILED = 157; + EVP_R_CIPHER_PARAMETER_ERROR = 122; + EVP_R_COMMAND_NOT_SUPPORTED = 147; + EVP_R_COPY_ERROR = 173; + EVP_R_CTRL_NOT_IMPLEMENTED = 132; + EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED = 133; + EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH = 138; + EVP_R_DECODE_ERROR = 114; + EVP_R_DIFFERENT_KEY_TYPES = 101; + EVP_R_DIFFERENT_PARAMETERS = 153; + EVP_R_ERROR_LOADING_SECTION = 165; + EVP_R_ERROR_SETTING_FIPS_MODE = 166; + EVP_R_EXPECTING_AN_HMAC_KEY = 174; + EVP_R_EXPECTING_AN_RSA_KEY = 127; + EVP_R_EXPECTING_A_DH_KEY = 128; + EVP_R_EXPECTING_A_DSA_KEY = 129; + EVP_R_EXPECTING_A_EC_KEY = 142; + EVP_R_EXPECTING_A_POLY1305_KEY = 164; + EVP_R_EXPECTING_A_SIPHASH_KEY = 175; + EVP_R_FIPS_MODE_NOT_SUPPORTED = 167; + EVP_R_GET_RAW_KEY_FAILED = 182; + EVP_R_ILLEGAL_SCRYPT_PARAMETERS = 171; + EVP_R_INITIALIZATION_ERROR = 134; + EVP_R_INPUT_NOT_INITIALIZED = 111; + EVP_R_INVALID_DIGEST = 152; + EVP_R_INVALID_FIPS_MODE = 168; + EVP_R_INVALID_KEY = 163; + EVP_R_INVALID_KEY_LENGTH = 130; + EVP_R_INVALID_OPERATION = 148; + EVP_R_KEYGEN_FAILURE = 120; + EVP_R_KEY_SETUP_FAILED = 180; + EVP_R_MEMORY_LIMIT_EXCEEDED = 172; + EVP_R_MESSAGE_DIGEST_IS_NULL = 159; + EVP_R_METHOD_NOT_SUPPORTED = 144; + EVP_R_MISSING_PARAMETERS = 103; + EVP_R_NOT_XOF_OR_INVALID_LENGTH = 178; + EVP_R_NO_CIPHER_SET = 131; + EVP_R_NO_DEFAULT_DIGEST = 158; + EVP_R_NO_DIGEST_SET = 139; + EVP_R_NO_KEY_SET = 154; + EVP_R_NO_OPERATION_SET = 149; + EVP_R_ONLY_ONESHOT_SUPPORTED = 177; + EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE = 150; + EVP_R_OPERATON_NOT_INITIALIZED = 151; + EVP_R_PARTIALLY_OVERLAPPING = 162; + EVP_R_PBKDF2_ERROR = 181; + EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED = 179; + EVP_R_PRIVATE_KEY_DECODE_ERROR = 145; + EVP_R_PRIVATE_KEY_ENCODE_ERROR = 146; + EVP_R_PUBLIC_KEY_NOT_RSA = 106; + EVP_R_UNKNOWN_CIPHER = 160; + EVP_R_UNKNOWN_DIGEST = 161; + EVP_R_UNKNOWN_OPTION = 169; + EVP_R_UNKNOWN_PBE_ALGORITHM = 121; + EVP_R_UNSUPPORTED_ALGORITHM = 156; + EVP_R_UNSUPPORTED_CIPHER = 107; + EVP_R_UNSUPPORTED_KEYLENGTH = 123; + EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION = 124; + EVP_R_UNSUPPORTED_KEY_SIZE = 108; + EVP_R_UNSUPPORTED_NUMBER_OF_ROUNDS = 135; + EVP_R_UNSUPPORTED_PRF = 125; + EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM = 118; + EVP_R_UNSUPPORTED_SALT_TYPE = 126; + EVP_R_WRAP_MODE_NOT_ALLOWED = 170; + EVP_R_WRONG_FINAL_BLOCK_LENGTH = 109; + EVP_R_XTS_DUPLICATED_KEYS = 183; + + function ERR_load_EVP_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_hmac.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_hmac.h2pas new file mode 100644 index 000000000..11647b195 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_hmac.h2pas @@ -0,0 +1,52 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_hmac; + +interface + +// Headers for OpenSSL 1.1.1 +// hmac.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + + function HMAC_size(const e: PHMAC_CTX): TIdC_SIZET; + function HMAC_CTX_new: PHMAC_CTX; + function HMAC_CTX_reset(ctx: PHMAC_CTX): TIdC_INT; + procedure HMAC_CTX_free(ctx: PHMAC_CTX); + + function HMAC_Init_ex(ctx: PHMAC_CTX; const key: Pointer; len: TIdC_INT; const md: PEVP_MD; impl: PENGINE): TIdC_INT; + function HMAC_Update(ctx: PHMAC_CTX; const data: PByte; len: TIdC_SIZET): TIdC_INT; + function HMAC_Final(ctx: PHMAC_CTX; md: PByte; len: PByte): TIdC_INT; + function HMAC(const evp_md: PEVP_MD; const key: Pointer; key_len: TIdC_INT; const d: PByte; n: TIdC_SIZET; md: PByte; md_len: PIdC_INT): PByte; + function HMAC_CTX_copy(dctx: PHMAC_CTX; sctx: PHMAC_CTX): TIdC_INT; + + procedure HMAC_CTX_set_flags(ctx: PHMAC_CTX; flags: TIdC_ULONG); + function HMAC_CTX_get_md(const ctx: PHMAC_CTX): PEVP_MD; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_idea.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_idea.h2pas new file mode 100644 index 000000000..21a0d057e --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_idea.h2pas @@ -0,0 +1,64 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_idea; + +interface + +// Headers for OpenSSL 1.1.1 +// idea.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // Added '_CONST' to avoid name clashes + IDEA_ENCRYPT_CONST = 1; + // Added '_CONST' to avoid name clashes + IDEA_DECRYPT_CONST = 0; + + IDEA_BLOCK = 8; + IDEA_KEY_LENGTH = 16; + +type + IDEA_INT = type TIdC_INT; + + idea_key_st = record + data: array[0..8, 0..5] of IDEA_INT; + end; + IDEA_KEY_SCHEDULE = idea_key_st; + PIDEA_KEY_SCHEDULE = ^IDEA_KEY_SCHEDULE; + + function IDEA_options: PIdAnsiChar; + procedure IDEA_ecb_encrypt(const in_: PByte; out_: PByte; ks: PIDEA_KEY_SCHEDULE); + procedure IDEA_set_encrypt_key(const key: PByte; ks: PIDEA_KEY_SCHEDULE); + procedure IDEA_set_decrypt_key(ek: PIDEA_KEY_SCHEDULE; dk: PIDEA_KEY_SCHEDULE); + procedure IDEA_cbc_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; ks: PIDEA_KEY_SCHEDULE; iv: PByte; enc: TIdC_INT); + procedure IDEA_cfb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; ks: PIDEA_KEY_SCHEDULE; iv: PByte; num: PIdC_INT; enc: TIdC_INT); + procedure IDEA_ofb64_encrypt(const in_: PByte; out_: PByte; length: TIdC_LONG; ks: PIDEA_KEY_SCHEDULE; iv: PByte; num: PIdC_INT); + procedure IDEA_encrypt(in_: PIdC_LONG; ks: PIDEA_KEY_SCHEDULE); + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_kdferr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_kdferr.h2pas new file mode 100644 index 000000000..ef31e7033 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_kdferr.h2pas @@ -0,0 +1,72 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_kdferr; + +interface + +// Headers for OpenSSL 1.1.1 +// kdferr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * KDF function codes. + *) + KDF_F_PKEY_HKDF_CTRL_STR = 103; + KDF_F_PKEY_HKDF_DERIVE = 102; + KDF_F_PKEY_HKDF_INIT = 108; + KDF_F_PKEY_SCRYPT_CTRL_STR = 104; + KDF_F_PKEY_SCRYPT_CTRL_UINT64 = 105; + KDF_F_PKEY_SCRYPT_DERIVE = 109; + KDF_F_PKEY_SCRYPT_INIT = 106; + KDF_F_PKEY_SCRYPT_SET_MEMBUF = 107; + KDF_F_PKEY_TLS1_PRF_CTRL_STR = 100; + KDF_F_PKEY_TLS1_PRF_DERIVE = 101; + KDF_F_PKEY_TLS1_PRF_INIT = 110; + KDF_F_TLS1_PRF_ALG = 111; + + (* + * KDF reason codes. + *) + KDF_R_INVALID_DIGEST = 100; + KDF_R_MISSING_ITERATION_COUNT = 109; + KDF_R_MISSING_KEY = 104; + KDF_R_MISSING_MESSAGE_DIGEST = 105; + KDF_R_MISSING_PARAMETER = 101; + KDF_R_MISSING_PASS = 110; + KDF_R_MISSING_SALT = 111; + KDF_R_MISSING_SECRET = 107; + KDF_R_MISSING_SEED = 106; + KDF_R_UNKNOWN_PARAMETER_TYPE = 103; + KDF_R_VALUE_ERROR = 108; + KDF_R_VALUE_MISSING = 102; + + function ERR_load_KDF_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_obj_mac.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_obj_mac.h2pas new file mode 100644 index 000000000..332b0905b --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_obj_mac.h2pas @@ -0,0 +1,4093 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_obj_mac; + +interface + +// Headers for OpenSSL 1.1.1 +// obj_mac.h + + +const + SN_undef = AnsiString('UNDEF'); + LN_undef = AnsiString('undefined'); + NID_undef = 0; + + SN_itu_t = AnsiString('ITU-T'); + LN_itu_t = AnsiString('itu-t'); + NID_itu_t = 645; + + NID_ccitt = 404; + + SN_iso = AnsiString('ISO'); + LN_iso = AnsiString('iso'); + NID_iso = 181; + + SN_joint_iso_itu_t = AnsiString('JOINT-ISO-ITU-T'); + LN_joint_iso_itu_t = AnsiString('joint-iso-itu-t'); + NID_joint_iso_itu_t = 646; + + NID_joint_iso_ccitt = 393; + + SN_member_body = AnsiString('member-body'); + LN_member_body = AnsiString('ISO Member Body'); + NID_member_body = 182; + + SN_identified_organization = AnsiString('identified-organization'); + NID_identified_organization = 676; + + SN_hmac_md5 = AnsiString('HMAC-MD5'); + LN_hmac_md5 = AnsiString('hmac-md5'); + NID_hmac_md5 = 780; + + SN_hmac_sha1 = AnsiString('HMAC-SHA1'); + LN_hmac_sha1 = AnsiString('hmac-sha1'); + NID_hmac_sha1 = 781; + + SN_x509ExtAdmission = AnsiString('x509ExtAdmission'); + LN_x509ExtAdmission = AnsiString('Professional Information or basis for Admission'); + NID_x509ExtAdmission = 1093; + + SN_certicom_arc = AnsiString('certicom-arc'); + NID_certicom_arc = 677; + + SN_ieee = AnsiString('ieee'); + NID_ieee = 1170; + + SN_ieee_siswg = AnsiString('ieee-siswg'); + LN_ieee_siswg = AnsiString('IEEE Security in Storage Working Group'); + NID_ieee_siswg = 1171; + + SN_international_organizations = AnsiString('international-organizations'); + LN_international_organizations = AnsiString('International Organizations'); + NID_international_organizations = 647; + + SN_wap = AnsiString('wap'); + NID_wap = 678; + + SN_wap_wsg = AnsiString('wap-wsg'); + NID_wap_wsg = 679; + + SN_selected_attribute_types = AnsiString('selected-attribute-types'); + LN_selected_attribute_types = AnsiString('Selected Attribute Types'); + NID_selected_attribute_types = 394; + + SN_clearance = AnsiString('clearance'); + NID_clearance = 395; + + SN_ISO_US = AnsiString('ISO-US'); + LN_ISO_US = AnsiString('ISO US Member Body'); + NID_ISO_US = 183; + + SN_X9_57 = AnsiString('X9-57'); + LN_X9_57 = AnsiString('X9.57'); + NID_X9_57 = 184; + + SN_X9cm = AnsiString('X9cm'); + LN_X9cm = AnsiString('X9.57 CM ?'); + NID_X9cm = 185; + + SN_ISO_CN = AnsiString('ISO-CN'); + LN_ISO_CN = AnsiString('ISO CN Member Body'); + NID_ISO_CN = 1140; + + SN_oscca = AnsiString('oscca'); + NID_oscca = 1141; + + SN_sm_scheme = AnsiString('sm-scheme'); + NID_sm_scheme = 1142; + + SN_dsa = AnsiString('DSA'); + LN_dsa = AnsiString('dsaEncryption'); + NID_dsa = 116; + + SN_dsaWithSHA1 = AnsiString('DSA-SHA1'); + LN_dsaWithSHA1 = AnsiString('dsaWithSHA1'); + NID_dsaWithSHA1 = 113; + + SN_ansi_X9_62 = AnsiString('ansi-X9-62'); + LN_ansi_X9_62 = AnsiString('ANSI X9.62'); + NID_ansi_X9_62 = 405; + + SN_X9_62_prime_field = AnsiString('prime-field'); + NID_X9_62_prime_field = 406; + + SN_X9_62_characteristic_two_field = AnsiString('characteristic-two-field'); + NID_X9_62_characteristic_two_field = 407; + + SN_X9_62_id_characteristic_two_basis = AnsiString('id-characteristic-two-basis'); + NID_X9_62_id_characteristic_two_basis = 680; + + SN_X9_62_onBasis = AnsiString('onBasis'); + NID_X9_62_onBasis = 681; + + SN_X9_62_tpBasis = AnsiString('tpBasis'); + NID_X9_62_tpBasis = 682; + + SN_X9_62_ppBasis = AnsiString('ppBasis'); + NID_X9_62_ppBasis = 683; + + SN_X9_62_id_ecPublicKey = AnsiString('id-ecPublicKey'); + NID_X9_62_id_ecPublicKey = 408; + + SN_X9_62_c2pnb163v1 = AnsiString('c2pnb163v1'); + NID_X9_62_c2pnb163v1 = 684; + + SN_X9_62_c2pnb163v2 = AnsiString('c2pnb163v2'); + NID_X9_62_c2pnb163v2 = 685; + + SN_X9_62_c2pnb163v3 = AnsiString('c2pnb163v3'); + NID_X9_62_c2pnb163v3 = 686; + + SN_X9_62_c2pnb176v1 = AnsiString('c2pnb176v1'); + NID_X9_62_c2pnb176v1 = 687; + + SN_X9_62_c2tnb191v1 = AnsiString('c2tnb191v1'); + NID_X9_62_c2tnb191v1 = 688; + + SN_X9_62_c2tnb191v2 = AnsiString('c2tnb191v2'); + NID_X9_62_c2tnb191v2 = 689; + + SN_X9_62_c2tnb191v3 = AnsiString('c2tnb191v3'); + NID_X9_62_c2tnb191v3 = 690; + + SN_X9_62_c2onb191v4 = AnsiString('c2onb191v4'); + NID_X9_62_c2onb191v4 = 691; + + SN_X9_62_c2onb191v5 = AnsiString('c2onb191v5'); + NID_X9_62_c2onb191v5 = 692; + + SN_X9_62_c2pnb208w1 = AnsiString('c2pnb208w1'); + NID_X9_62_c2pnb208w1 = 693; + + SN_X9_62_c2tnb239v1 = AnsiString('c2tnb239v1'); + NID_X9_62_c2tnb239v1 = 694; + + SN_X9_62_c2tnb239v2 = AnsiString('c2tnb239v2'); + NID_X9_62_c2tnb239v2 = 695; + + SN_X9_62_c2tnb239v3 = AnsiString('c2tnb239v3'); + NID_X9_62_c2tnb239v3 = 696; + + SN_X9_62_c2onb239v4 = AnsiString('c2onb239v4'); + NID_X9_62_c2onb239v4 = 697; + + SN_X9_62_c2onb239v5 = AnsiString('c2onb239v5'); + NID_X9_62_c2onb239v5 = 698; + + SN_X9_62_c2pnb272w1 = AnsiString('c2pnb272w1'); + NID_X9_62_c2pnb272w1 = 699; + + SN_X9_62_c2pnb304w1 = AnsiString('c2pnb304w1'); + NID_X9_62_c2pnb304w1 = 700; + + SN_X9_62_c2tnb359v1 = AnsiString('c2tnb359v1'); + NID_X9_62_c2tnb359v1 = 701; + + SN_X9_62_c2pnb368w1 = AnsiString('c2pnb368w1'); + NID_X9_62_c2pnb368w1 = 702; + + SN_X9_62_c2tnb431r1 = AnsiString('c2tnb431r1'); + NID_X9_62_c2tnb431r1 = 703; + + SN_X9_62_prime192v1 = AnsiString('prime192v1'); + NID_X9_62_prime192v1 = 409; + + SN_X9_62_prime192v2 = AnsiString('prime192v2'); + NID_X9_62_prime192v2 = 410; + + SN_X9_62_prime192v3 = AnsiString('prime192v3'); + NID_X9_62_prime192v3 = 411; + + SN_X9_62_prime239v1 = AnsiString('prime239v1'); + NID_X9_62_prime239v1 = 412; + + SN_X9_62_prime239v2 = AnsiString('prime239v2'); + NID_X9_62_prime239v2 = 413; + + SN_X9_62_prime239v3 = AnsiString('prime239v3'); + NID_X9_62_prime239v3 = 414; + + SN_X9_62_prime256v1 = AnsiString('prime256v1'); + NID_X9_62_prime256v1 = 415; + + SN_ecdsa_with_SHA1 = AnsiString('ecdsa-with-SHA1'); + NID_ecdsa_with_SHA1 = 416; + + SN_ecdsa_with_Recommended = AnsiString('ecdsa-with-Recommended'); + NID_ecdsa_with_Recommended = 791; + + SN_ecdsa_with_Specified = AnsiString('ecdsa-with-Specified'); + NID_ecdsa_with_Specified = 792; + + SN_ecdsa_with_SHA224 = AnsiString('ecdsa-with-SHA224'); + NID_ecdsa_with_SHA224 = 793; + + SN_ecdsa_with_SHA256 = AnsiString('ecdsa-with-SHA256'); + NID_ecdsa_with_SHA256 = 794; + + SN_ecdsa_with_SHA384 = AnsiString('ecdsa-with-SHA384'); + NID_ecdsa_with_SHA384 = 795; + + SN_ecdsa_with_SHA512 = AnsiString('ecdsa-with-SHA512'); + NID_ecdsa_with_SHA512 = 796; + + SN_secp112r1 = AnsiString('secp112r1'); + NID_secp112r1 = 704; + + SN_secp112r2 = AnsiString('secp112r2'); + NID_secp112r2 = 705; + + SN_secp128r1 = AnsiString('secp128r1'); + NID_secp128r1 = 706; + + SN_secp128r2 = AnsiString('secp128r2'); + NID_secp128r2 = 707; + + SN_secp160k1 = AnsiString('secp160k1'); + NID_secp160k1 = 708; + + SN_secp160r1 = AnsiString('secp160r1'); + NID_secp160r1 = 709; + + SN_secp160r2 = AnsiString('secp160r2'); + NID_secp160r2 = 710; + + SN_secp192k1 = AnsiString('secp192k1'); + NID_secp192k1 = 711; + + SN_secp224k1 = AnsiString('secp224k1'); + NID_secp224k1 = 712; + + SN_secp224r1 = AnsiString('secp224r1'); + NID_secp224r1 = 713; + + SN_secp256k1 = AnsiString('secp256k1'); + NID_secp256k1 = 714; + + SN_secp384r1 = AnsiString('secp384r1'); + NID_secp384r1 = 715; + + SN_secp521r1 = AnsiString('secp521r1'); + NID_secp521r1 = 716; + + SN_sect113r1 = AnsiString('sect113r1'); + NID_sect113r1 = 717; + + SN_sect113r2 = AnsiString('sect113r2'); + NID_sect113r2 = 718; + + SN_sect131r1 = AnsiString('sect131r1'); + NID_sect131r1 = 719; + + SN_sect131r2 = AnsiString('sect131r2'); + NID_sect131r2 = 720; + + SN_sect163k1 = AnsiString('sect163k1'); + NID_sect163k1 = 721; + + SN_sect163r1 = AnsiString('sect163r1'); + NID_sect163r1 = 722; + + SN_sect163r2 = AnsiString('sect163r2'); + NID_sect163r2 = 723; + + SN_sect193r1 = AnsiString('sect193r1'); + NID_sect193r1 = 724; + + SN_sect193r2 = AnsiString('sect193r2'); + NID_sect193r2 = 725; + + SN_sect233k1 = AnsiString('sect233k1'); + NID_sect233k1 = 726; + + SN_sect233r1 = AnsiString('sect233r1'); + NID_sect233r1 = 727; + + SN_sect239k1 = AnsiString('sect239k1'); + NID_sect239k1 = 728; + + SN_sect283k1 = AnsiString('sect283k1'); + NID_sect283k1 = 729; + + SN_sect283r1 = AnsiString('sect283r1'); + NID_sect283r1 = 730; + + SN_sect409k1 = AnsiString('sect409k1'); + NID_sect409k1 = 731; + + SN_sect409r1 = AnsiString('sect409r1'); + NID_sect409r1 = 732; + + SN_sect571k1 = AnsiString('sect571k1'); + NID_sect571k1 = 733; + + SN_sect571r1 = AnsiString('sect571r1'); + NID_sect571r1 = 734; + + SN_wap_wsg_idm_ecid_wtls1 = AnsiString('wap-wsg-idm-ecid-wtls1'); + NID_wap_wsg_idm_ecid_wtls1 = 735; + + SN_wap_wsg_idm_ecid_wtls3 = AnsiString('wap-wsg-idm-ecid-wtls3'); + NID_wap_wsg_idm_ecid_wtls3 = 736; + + SN_wap_wsg_idm_ecid_wtls4 = AnsiString('wap-wsg-idm-ecid-wtls4'); + NID_wap_wsg_idm_ecid_wtls4 = 737; + + SN_wap_wsg_idm_ecid_wtls5 = AnsiString('wap-wsg-idm-ecid-wtls5'); + NID_wap_wsg_idm_ecid_wtls5 = 738; + + SN_wap_wsg_idm_ecid_wtls6 = AnsiString('wap-wsg-idm-ecid-wtls6'); + NID_wap_wsg_idm_ecid_wtls6 = 739; + + SN_wap_wsg_idm_ecid_wtls7 = AnsiString('wap-wsg-idm-ecid-wtls7'); + NID_wap_wsg_idm_ecid_wtls7 = 740; + + SN_wap_wsg_idm_ecid_wtls8 = AnsiString('wap-wsg-idm-ecid-wtls8'); + NID_wap_wsg_idm_ecid_wtls8 = 741; + + SN_wap_wsg_idm_ecid_wtls9 = AnsiString('wap-wsg-idm-ecid-wtls9'); + NID_wap_wsg_idm_ecid_wtls9 = 742; + + SN_wap_wsg_idm_ecid_wtls10 = AnsiString('wap-wsg-idm-ecid-wtls10'); + NID_wap_wsg_idm_ecid_wtls10 = 743; + + SN_wap_wsg_idm_ecid_wtls11 = AnsiString('wap-wsg-idm-ecid-wtls11'); + NID_wap_wsg_idm_ecid_wtls11 = 744; + + SN_wap_wsg_idm_ecid_wtls12 = AnsiString('wap-wsg-idm-ecid-wtls12'); + NID_wap_wsg_idm_ecid_wtls12 = 745; + + SN_cast5_cbc = AnsiString('CAST5-CBC'); + LN_cast5_cbc = AnsiString('cast5-cbc'); + NID_cast5_cbc = 108; + + SN_cast5_ecb = AnsiString('CAST5-ECB'); + LN_cast5_ecb = AnsiString('cast5-ecb'); + NID_cast5_ecb = 109; + + SN_cast5_cfb64 = AnsiString('CAST5-CFB'); + LN_cast5_cfb64 = AnsiString('cast5-cfb'); + NID_cast5_cfb64 = 110; + + SN_cast5_ofb64 = AnsiString('CAST5-OFB'); + LN_cast5_ofb64 = AnsiString('cast5-ofb'); + NID_cast5_ofb64 = 111; + + LN_pbeWithMD5AndCast5_CBC = AnsiString('pbeWithMD5AndCast5CBC'); + NID_pbeWithMD5AndCast5_CBC = 112; + + SN_id_PasswordBasedMAC = AnsiString('id-PasswordBasedMAC'); + LN_id_PasswordBasedMAC = AnsiString('password based MAC'); + NID_id_PasswordBasedMAC = 782; + + SN_id_DHBasedMac = AnsiString('id-DHBasedMac'); + LN_id_DHBasedMac = AnsiString('Diffie-Hellman based MAC'); + NID_id_DHBasedMac = 783; + + SN_rsadsi = AnsiString('rsadsi'); + LN_rsadsi = AnsiString('RSA Data Security; Inc.'); + NID_rsadsi = 1; + + SN_pkcs = AnsiString('pkcs'); + LN_pkcs = AnsiString('RSA Data Security; Inc. PKCS'); + NID_pkcs = 2; + + SN_pkcs1 = AnsiString('pkcs1'); + NID_pkcs1 = 186; + + LN_rsaEncryption = AnsiString('rsaEncryption'); + NID_rsaEncryption = 6; + + SN_md2WithRSAEncryption = AnsiString('RSA-MD2'); + LN_md2WithRSAEncryption = AnsiString('md2WithRSAEncryption'); + NID_md2WithRSAEncryption = 7; + + SN_md4WithRSAEncryption = AnsiString('RSA-MD4'); + LN_md4WithRSAEncryption = AnsiString('md4WithRSAEncryption'); + NID_md4WithRSAEncryption = 396; + + SN_md5WithRSAEncryption = AnsiString('RSA-MD5'); + LN_md5WithRSAEncryption = AnsiString('md5WithRSAEncryption'); + NID_md5WithRSAEncryption = 8; + + SN_sha1WithRSAEncryption = AnsiString('RSA-SHA1'); + LN_sha1WithRSAEncryption = AnsiString('sha1WithRSAEncryption'); + NID_sha1WithRSAEncryption = 65; + + SN_rsaesOaep = AnsiString('RSAES-OAEP'); + LN_rsaesOaep = AnsiString('rsaesOaep'); + NID_rsaesOaep = 919; + + SN_mgf1 = AnsiString('MGF1'); + LN_mgf1 = AnsiString('mgf1'); + NID_mgf1 = 911; + + SN_pSpecified = AnsiString('PSPECIFIED'); + LN_pSpecified = AnsiString('pSpecified'); + NID_pSpecified = 935; + + SN_rsassaPss = AnsiString('RSASSA-PSS'); + LN_rsassaPss = AnsiString('rsassaPss'); + NID_rsassaPss = 912; + + SN_sha256WithRSAEncryption = AnsiString('RSA-SHA256'); + LN_sha256WithRSAEncryption = AnsiString('sha256WithRSAEncryption'); + NID_sha256WithRSAEncryption = 668; + + SN_sha384WithRSAEncryption = AnsiString('RSA-SHA384'); + LN_sha384WithRSAEncryption = AnsiString('sha384WithRSAEncryption'); + NID_sha384WithRSAEncryption = 669; + + SN_sha512WithRSAEncryption = AnsiString('RSA-SHA512'); + LN_sha512WithRSAEncryption = AnsiString('sha512WithRSAEncryption'); + NID_sha512WithRSAEncryption = 670; + + SN_sha224WithRSAEncryption = AnsiString('RSA-SHA224'); + LN_sha224WithRSAEncryption = AnsiString('sha224WithRSAEncryption'); + NID_sha224WithRSAEncryption = 671; + + SN_sha512_224WithRSAEncryption = AnsiString('RSA-SHA512/224'); + LN_sha512_224WithRSAEncryption = AnsiString('sha512-224WithRSAEncryption'); + NID_sha512_224WithRSAEncryption = 1145; + + SN_sha512_256WithRSAEncryption = AnsiString('RSA-SHA512/256'); + LN_sha512_256WithRSAEncryption = AnsiString('sha512-256WithRSAEncryption'); + NID_sha512_256WithRSAEncryption = 1146; + + SN_pkcs3 = AnsiString('pkcs3'); + NID_pkcs3 = 27; + + LN_dhKeyAgreement = AnsiString('dhKeyAgreement'); + NID_dhKeyAgreement = 28; + + SN_pkcs5 = AnsiString('pkcs5'); + NID_pkcs5 = 187; + + SN_pbeWithMD2AndDES_CBC = AnsiString('PBE-MD2-DES'); + LN_pbeWithMD2AndDES_CBC = AnsiString('pbeWithMD2AndDES-CBC'); + NID_pbeWithMD2AndDES_CBC = 9; + + SN_pbeWithMD5AndDES_CBC = AnsiString('PBE-MD5-DES'); + LN_pbeWithMD5AndDES_CBC = AnsiString('pbeWithMD5AndDES-CBC'); + NID_pbeWithMD5AndDES_CBC = 10; + + SN_pbeWithMD2AndRC2_CBC = AnsiString('PBE-MD2-RC2-64'); + LN_pbeWithMD2AndRC2_CBC = AnsiString('pbeWithMD2AndRC2-CBC'); + NID_pbeWithMD2AndRC2_CBC = 168; + + SN_pbeWithMD5AndRC2_CBC = AnsiString('PBE-MD5-RC2-64'); + LN_pbeWithMD5AndRC2_CBC = AnsiString('pbeWithMD5AndRC2-CBC'); + NID_pbeWithMD5AndRC2_CBC = 169; + + SN_pbeWithSHA1AndDES_CBC = AnsiString('PBE-SHA1-DES'); + LN_pbeWithSHA1AndDES_CBC = AnsiString('pbeWithSHA1AndDES-CBC'); + NID_pbeWithSHA1AndDES_CBC = 170; + + SN_pbeWithSHA1AndRC2_CBC = AnsiString('PBE-SHA1-RC2-64'); + LN_pbeWithSHA1AndRC2_CBC = AnsiString('pbeWithSHA1AndRC2-CBC'); + NID_pbeWithSHA1AndRC2_CBC = 68; + + LN_id_pbkdf2 = AnsiString('PBKDF2'); + NID_id_pbkdf2 = 69; + + LN_pbes2 = AnsiString('PBES2'); + NID_pbes2 = 161; + + LN_pbmac1 = AnsiString('PBMAC1'); + NID_pbmac1 = 162; + + SN_pkcs7 = AnsiString('pkcs7'); + NID_pkcs7 = 20; + + LN_pkcs7_data = AnsiString('pkcs7-data'); + NID_pkcs7_data = 21; + + LN_pkcs7_signed = AnsiString('pkcs7-signedData'); + NID_pkcs7_signed = 22; + + LN_pkcs7_enveloped = AnsiString('pkcs7-envelopedData'); + NID_pkcs7_enveloped = 23; + + LN_pkcs7_signedAndEnveloped = AnsiString('pkcs7-signedAndEnvelopedData'); + NID_pkcs7_signedAndEnveloped = 24; + + LN_pkcs7_digest = AnsiString('pkcs7-digestData'); + NID_pkcs7_digest = 25; + + LN_pkcs7_encrypted = AnsiString('pkcs7-encryptedData'); + NID_pkcs7_encrypted = 26; + + SN_pkcs9 = AnsiString('pkcs9'); + NID_pkcs9 = 47; + + LN_pkcs9_emailAddress = AnsiString('emailAddress'); + NID_pkcs9_emailAddress = 48; + + LN_pkcs9_unstructuredName = AnsiString('unstructuredName'); + NID_pkcs9_unstructuredName = 49; + + LN_pkcs9_contentType = AnsiString('contentType'); + NID_pkcs9_contentType = 50; + + LN_pkcs9_messageDigest = AnsiString('messageDigest'); + NID_pkcs9_messageDigest = 51; + + LN_pkcs9_signingTime = AnsiString('signingTime'); + NID_pkcs9_signingTime = 52; + + LN_pkcs9_countersignature = AnsiString('countersignature'); + NID_pkcs9_countersignature = 53; + + LN_pkcs9_challengePassword = AnsiString('challengePassword'); + NID_pkcs9_challengePassword = 54; + + LN_pkcs9_unstructuredAddress = AnsiString('unstructuredAddress'); + NID_pkcs9_unstructuredAddress = 55; + + LN_pkcs9_extCertAttributes = AnsiString('extendedCertificateAttributes'); + NID_pkcs9_extCertAttributes = 56; + + SN_ext_req = AnsiString('extReq'); + LN_ext_req = AnsiString('Extension Request'); + NID_ext_req = 172; + + SN_SMIMECapabilities = AnsiString('SMIME-CAPS'); + LN_SMIMECapabilities = AnsiString('S/MIME Capabilities'); + NID_SMIMECapabilities = 167; + + SN_SMIME = AnsiString('SMIME'); + LN_SMIME = AnsiString('S/MIME'); + NID_SMIME = 188; + + SN_id_smime_mod = AnsiString('id-smime-mod'); + NID_id_smime_mod = 189; + + SN_id_smime_ct = AnsiString('id-smime-ct'); + NID_id_smime_ct = 190; + + SN_id_smime_aa = AnsiString('id-smime-aa'); + NID_id_smime_aa = 191; + + SN_id_smime_alg = AnsiString('id-smime-alg'); + NID_id_smime_alg = 192; + + SN_id_smime_cd = AnsiString('id-smime-cd'); + NID_id_smime_cd = 193; + + SN_id_smime_spq = AnsiString('id-smime-spq'); + NID_id_smime_spq = 194; + + SN_id_smime_cti = AnsiString('id-smime-cti'); + NID_id_smime_cti = 195; + + SN_id_smime_mod_cms = AnsiString('id-smime-mod-cms'); + NID_id_smime_mod_cms = 196; + + SN_id_smime_mod_ess = AnsiString('id-smime-mod-ess'); + NID_id_smime_mod_ess = 197; + + SN_id_smime_mod_oid = AnsiString('id-smime-mod-oid'); + NID_id_smime_mod_oid = 198; + + SN_id_smime_mod_msg_v3 = AnsiString('id-smime-mod-msg-v3'); + NID_id_smime_mod_msg_v3 = 199; + + SN_id_smime_mod_ets_eSignature_88 = AnsiString('id-smime-mod-ets-eSignature-88'); + NID_id_smime_mod_ets_eSignature_88 = 200; + + SN_id_smime_mod_ets_eSignature_97 = AnsiString('id-smime-mod-ets-eSignature-97'); + NID_id_smime_mod_ets_eSignature_97 = 201; + + SN_id_smime_mod_ets_eSigPolicy_88 = AnsiString('id-smime-mod-ets-eSigPolicy-88'); + NID_id_smime_mod_ets_eSigPolicy_88 = 202; + + SN_id_smime_mod_ets_eSigPolicy_97 = AnsiString('id-smime-mod-ets-eSigPolicy-97'); + NID_id_smime_mod_ets_eSigPolicy_97 = 203; + + SN_id_smime_ct_receipt = AnsiString('id-smime-ct-receipt'); + NID_id_smime_ct_receipt = 204; + + SN_id_smime_ct_authData = AnsiString('id-smime-ct-authData'); + NID_id_smime_ct_authData = 205; + + SN_id_smime_ct_publishCert = AnsiString('id-smime-ct-publishCert'); + NID_id_smime_ct_publishCert = 206; + + SN_id_smime_ct_TSTInfo = AnsiString('id-smime-ct-TSTInfo'); + NID_id_smime_ct_TSTInfo = 207; + + SN_id_smime_ct_TDTInfo = AnsiString('id-smime-ct-TDTInfo'); + NID_id_smime_ct_TDTInfo = 208; + + SN_id_smime_ct_contentInfo = AnsiString('id-smime-ct-contentInfo'); + NID_id_smime_ct_contentInfo = 209; + + SN_id_smime_ct_DVCSRequestData = AnsiString('id-smime-ct-DVCSRequestData'); + NID_id_smime_ct_DVCSRequestData = 210; + + SN_id_smime_ct_DVCSResponseData = AnsiString('id-smime-ct-DVCSResponseData'); + NID_id_smime_ct_DVCSResponseData = 211; + + SN_id_smime_ct_compressedData = AnsiString('id-smime-ct-compressedData'); + NID_id_smime_ct_compressedData = 786; + + SN_id_smime_ct_contentCollection = AnsiString('id-smime-ct-contentCollection'); + NID_id_smime_ct_contentCollection = 1058; + + SN_id_smime_ct_authEnvelopedData = AnsiString('id-smime-ct-authEnvelopedData'); + NID_id_smime_ct_authEnvelopedData = 1059; + + SN_id_ct_asciiTextWithCRLF = AnsiString('id-ct-asciiTextWithCRLF'); + NID_id_ct_asciiTextWithCRLF = 787; + + SN_id_ct_xml = AnsiString('id-ct-xml'); + NID_id_ct_xml = 1060; + + SN_id_smime_aa_receiptRequest = AnsiString('id-smime-aa-receiptRequest'); + NID_id_smime_aa_receiptRequest = 212; + + SN_id_smime_aa_securityLabel = AnsiString('id-smime-aa-securityLabel'); + NID_id_smime_aa_securityLabel = 213; + + SN_id_smime_aa_mlExpandHistory = AnsiString('id-smime-aa-mlExpandHistory'); + NID_id_smime_aa_mlExpandHistory = 214; + + SN_id_smime_aa_contentHint = AnsiString('id-smime-aa-contentHint'); + NID_id_smime_aa_contentHint = 215; + + SN_id_smime_aa_msgSigDigest = AnsiString('id-smime-aa-msgSigDigest'); + NID_id_smime_aa_msgSigDigest = 216; + + SN_id_smime_aa_encapContentType = AnsiString('id-smime-aa-encapContentType'); + NID_id_smime_aa_encapContentType = 217; + + SN_id_smime_aa_contentIdentifier = AnsiString('id-smime-aa-contentIdentifier'); + NID_id_smime_aa_contentIdentifier = 218; + + SN_id_smime_aa_macValue = AnsiString('id-smime-aa-macValue'); + NID_id_smime_aa_macValue = 219; + + SN_id_smime_aa_equivalentLabels = AnsiString('id-smime-aa-equivalentLabels'); + NID_id_smime_aa_equivalentLabels = 220; + + SN_id_smime_aa_contentReference = AnsiString('id-smime-aa-contentReference'); + NID_id_smime_aa_contentReference = 221; + + SN_id_smime_aa_encrypKeyPref = AnsiString('id-smime-aa-encrypKeyPref'); + NID_id_smime_aa_encrypKeyPref = 222; + + SN_id_smime_aa_signingCertificate = AnsiString('id-smime-aa-signingCertificate'); + NID_id_smime_aa_signingCertificate = 223; + + SN_id_smime_aa_smimeEncryptCerts = AnsiString('id-smime-aa-smimeEncryptCerts'); + NID_id_smime_aa_smimeEncryptCerts = 224; + + SN_id_smime_aa_timeStampToken = AnsiString('id-smime-aa-timeStampToken'); + NID_id_smime_aa_timeStampToken = 225; + + SN_id_smime_aa_ets_sigPolicyId = AnsiString('id-smime-aa-ets-sigPolicyId'); + NID_id_smime_aa_ets_sigPolicyId = 226; + + SN_id_smime_aa_ets_commitmentType = AnsiString('id-smime-aa-ets-commitmentType'); + NID_id_smime_aa_ets_commitmentType = 227; + + SN_id_smime_aa_ets_signerLocation = AnsiString('id-smime-aa-ets-signerLocation'); + NID_id_smime_aa_ets_signerLocation = 228; + + SN_id_smime_aa_ets_signerAttr = AnsiString('id-smime-aa-ets-signerAttr'); + NID_id_smime_aa_ets_signerAttr = 229; + + SN_id_smime_aa_ets_otherSigCert = AnsiString('id-smime-aa-ets-otherSigCert'); + NID_id_smime_aa_ets_otherSigCert = 230; + + SN_id_smime_aa_ets_contentTimestamp = AnsiString('id-smime-aa-ets-contentTimestamp'); + NID_id_smime_aa_ets_contentTimestamp = 231; + + SN_id_smime_aa_ets_CertificateRefs = AnsiString('id-smime-aa-ets-CertificateRefs'); + NID_id_smime_aa_ets_CertificateRefs = 232; + + SN_id_smime_aa_ets_RevocationRefs = AnsiString('id-smime-aa-ets-RevocationRefs'); + NID_id_smime_aa_ets_RevocationRefs = 233; + + SN_id_smime_aa_ets_certValues = AnsiString('id-smime-aa-ets-certValues'); + NID_id_smime_aa_ets_certValues = 234; + + SN_id_smime_aa_ets_revocationValues = AnsiString('id-smime-aa-ets-revocationValues'); + NID_id_smime_aa_ets_revocationValues = 235; + + SN_id_smime_aa_ets_escTimeStamp = AnsiString('id-smime-aa-ets-escTimeStamp'); + NID_id_smime_aa_ets_escTimeStamp = 236; + + SN_id_smime_aa_ets_certCRLTimestamp = AnsiString('id-smime-aa-ets-certCRLTimestamp'); + NID_id_smime_aa_ets_certCRLTimestamp = 237; + + SN_id_smime_aa_ets_archiveTimeStamp = AnsiString('id-smime-aa-ets-archiveTimeStamp'); + NID_id_smime_aa_ets_archiveTimeStamp = 238; + + SN_id_smime_aa_signatureType = AnsiString('id-smime-aa-signatureType'); + NID_id_smime_aa_signatureType = 239; + + SN_id_smime_aa_dvcs_dvc = AnsiString('id-smime-aa-dvcs-dvc'); + NID_id_smime_aa_dvcs_dvc = 240; + + SN_id_smime_aa_signingCertificateV2 = AnsiString('id-smime-aa-signingCertificateV2'); + NID_id_smime_aa_signingCertificateV2 = 1086; + + SN_id_smime_alg_ESDHwith3DES = AnsiString('id-smime-alg-ESDHwith3DES'); + NID_id_smime_alg_ESDHwith3DES = 241; + + SN_id_smime_alg_ESDHwithRC2 = AnsiString('id-smime-alg-ESDHwithRC2'); + NID_id_smime_alg_ESDHwithRC2 = 242; + + SN_id_smime_alg_3DESwrap = AnsiString('id-smime-alg-3DESwrap'); + NID_id_smime_alg_3DESwrap = 243; + + SN_id_smime_alg_RC2wrap = AnsiString('id-smime-alg-RC2wrap'); + NID_id_smime_alg_RC2wrap = 244; + + SN_id_smime_alg_ESDH = AnsiString('id-smime-alg-ESDH'); + NID_id_smime_alg_ESDH = 245; + + SN_id_smime_alg_CMS3DESwrap = AnsiString('id-smime-alg-CMS3DESwrap'); + NID_id_smime_alg_CMS3DESwrap = 246; + + SN_id_smime_alg_CMSRC2wrap = AnsiString('id-smime-alg-CMSRC2wrap'); + NID_id_smime_alg_CMSRC2wrap = 247; + + SN_id_alg_PWRI_KEK = AnsiString('id-alg-PWRI-KEK'); + NID_id_alg_PWRI_KEK = 893; + + SN_id_smime_cd_ldap = AnsiString('id-smime-cd-ldap'); + NID_id_smime_cd_ldap = 248; + + SN_id_smime_spq_ets_sqt_uri = AnsiString('id-smime-spq-ets-sqt-uri'); + NID_id_smime_spq_ets_sqt_uri = 249; + + SN_id_smime_spq_ets_sqt_unotice = AnsiString('id-smime-spq-ets-sqt-unotice'); + NID_id_smime_spq_ets_sqt_unotice = 250; + + SN_id_smime_cti_ets_proofOfOrigin = AnsiString('id-smime-cti-ets-proofOfOrigin'); + NID_id_smime_cti_ets_proofOfOrigin = 251; + + SN_id_smime_cti_ets_proofOfReceipt = AnsiString('id-smime-cti-ets-proofOfReceipt'); + NID_id_smime_cti_ets_proofOfReceipt = 252; + + SN_id_smime_cti_ets_proofOfDelivery = AnsiString('id-smime-cti-ets-proofOfDelivery'); + NID_id_smime_cti_ets_proofOfDelivery = 253; + + SN_id_smime_cti_ets_proofOfSender = AnsiString('id-smime-cti-ets-proofOfSender'); + NID_id_smime_cti_ets_proofOfSender = 254; + + SN_id_smime_cti_ets_proofOfApproval = AnsiString('id-smime-cti-ets-proofOfApproval'); + NID_id_smime_cti_ets_proofOfApproval = 255; + + SN_id_smime_cti_ets_proofOfCreation = AnsiString('id-smime-cti-ets-proofOfCreation'); + NID_id_smime_cti_ets_proofOfCreation = 256; + + LN_friendlyName = AnsiString('friendlyName'); + NID_friendlyName = 156; + + LN_localKeyID = AnsiString('localKeyID'); + NID_localKeyID = 157; + + SN_ms_csp_name = AnsiString('CSPName'); + LN_ms_csp_name = AnsiString('Microsoft CSP Name'); + NID_ms_csp_name = 417; + + SN_LocalKeySet = AnsiString('LocalKeySet'); + LN_LocalKeySet = AnsiString('Microsoft Local Key set'); + NID_LocalKeySet = 856; + + LN_x509Certificate = AnsiString('x509Certificate'); + NID_x509Certificate = 158; + + LN_sdsiCertificate = AnsiString('sdsiCertificate'); + NID_sdsiCertificate = 159; + + LN_x509Crl = AnsiString('x509Crl'); + NID_x509Crl = 160; + + SN_pbe_WithSHA1And128BitRC4 = AnsiString('PBE-SHA1-RC4-128'); + LN_pbe_WithSHA1And128BitRC4 = AnsiString('pbeWithSHA1And128BitRC4'); + NID_pbe_WithSHA1And128BitRC4 = 144; + + SN_pbe_WithSHA1And40BitRC4 = AnsiString('PBE-SHA1-RC4-40'); + LN_pbe_WithSHA1And40BitRC4 = AnsiString('pbeWithSHA1And40BitRC4'); + NID_pbe_WithSHA1And40BitRC4 = 145; + + SN_pbe_WithSHA1And3_Key_TripleDES_CBC = AnsiString('PBE-SHA1-3DES'); + LN_pbe_WithSHA1And3_Key_TripleDES_CBC = AnsiString('pbeWithSHA1And3-KeyTripleDES-CBC'); + NID_pbe_WithSHA1And3_Key_TripleDES_CBC = 146; + + SN_pbe_WithSHA1And2_Key_TripleDES_CBC = AnsiString('PBE-SHA1-2DES'); + LN_pbe_WithSHA1And2_Key_TripleDES_CBC = AnsiString('pbeWithSHA1And2-KeyTripleDES-CBC'); + NID_pbe_WithSHA1And2_Key_TripleDES_CBC = 147; + + SN_pbe_WithSHA1And128BitRC2_CBC = AnsiString('PBE-SHA1-RC2-128'); + LN_pbe_WithSHA1And128BitRC2_CBC = AnsiString('pbeWithSHA1And128BitRC2-CBC'); + NID_pbe_WithSHA1And128BitRC2_CBC = 148; + + SN_pbe_WithSHA1And40BitRC2_CBC = AnsiString('PBE-SHA1-RC2-40'); + LN_pbe_WithSHA1And40BitRC2_CBC = AnsiString('pbeWithSHA1And40BitRC2-CBC'); + NID_pbe_WithSHA1And40BitRC2_CBC = 149; + + LN_keyBag = AnsiString('keyBag'); + NID_keyBag = 150; + + LN_pkcs8ShroudedKeyBag = AnsiString('pkcs8ShroudedKeyBag'); + NID_pkcs8ShroudedKeyBag = 151; + + LN_certBag = AnsiString('certBag'); + NID_certBag = 152; + + LN_crlBag = AnsiString('crlBag'); + NID_crlBag = 153; + + LN_secretBag = AnsiString('secretBag'); + NID_secretBag = 154; + + LN_safeContentsBag = AnsiString('safeContentsBag'); + NID_safeContentsBag = 155; + + SN_md2 = AnsiString('MD2'); + LN_md2 = AnsiString('md2'); + NID_md2 = 3; + + SN_md4 = AnsiString('MD4'); + LN_md4 = AnsiString('md4'); + NID_md4 = 257; + + SN_md5 = AnsiString('MD5'); + LN_md5 = AnsiString('md5'); + NID_md5 = 4; + + SN_md5_sha1 = AnsiString('MD5-SHA1'); + LN_md5_sha1 = AnsiString('md5-sha1'); + NID_md5_sha1 = 114; + + LN_hmacWithMD5 = AnsiString('hmacWithMD5'); + NID_hmacWithMD5 = 797; + + LN_hmacWithSHA1 = AnsiString('hmacWithSHA1'); + NID_hmacWithSHA1 = 163; + + SN_sm2 = AnsiString('SM2'); + LN_sm2 = AnsiString('sm2'); + NID_sm2 = 1172; + + SN_sm3 = AnsiString('SM3'); + LN_sm3 = AnsiString('sm3'); + NID_sm3 = 1143; + + SN_sm3WithRSAEncryption = AnsiString('RSA-SM3'); + LN_sm3WithRSAEncryption = AnsiString('sm3WithRSAEncryption'); + NID_sm3WithRSAEncryption = 1144; + + LN_hmacWithSHA224 = AnsiString('hmacWithSHA224'); + NID_hmacWithSHA224 = 798; + + LN_hmacWithSHA256 = AnsiString('hmacWithSHA256'); + NID_hmacWithSHA256 = 799; + + LN_hmacWithSHA384 = AnsiString('hmacWithSHA384'); + NID_hmacWithSHA384 = 800; + + LN_hmacWithSHA512 = AnsiString('hmacWithSHA512'); + NID_hmacWithSHA512 = 801; + + LN_hmacWithSHA512_224 = AnsiString('hmacWithSHA512-224'); + NID_hmacWithSHA512_224 = 1193; + + LN_hmacWithSHA512_256 = AnsiString('hmacWithSHA512-256'); + NID_hmacWithSHA512_256 = 1194; + + SN_rc2_cbc = AnsiString('RC2-CBC'); + LN_rc2_cbc = AnsiString('rc2-cbc'); + NID_rc2_cbc = 37; + + SN_rc2_ecb = AnsiString('RC2-ECB'); + LN_rc2_ecb = AnsiString('rc2-ecb'); + NID_rc2_ecb = 38; + + SN_rc2_cfb64 = AnsiString('RC2-CFB'); + LN_rc2_cfb64 = AnsiString('rc2-cfb'); + NID_rc2_cfb64 = 39; + + SN_rc2_ofb64 = AnsiString('RC2-OFB'); + LN_rc2_ofb64 = AnsiString('rc2-ofb'); + NID_rc2_ofb64 = 40; + + SN_rc2_40_cbc = AnsiString('RC2-40-CBC'); + LN_rc2_40_cbc = AnsiString('rc2-40-cbc'); + NID_rc2_40_cbc = 98; + + SN_rc2_64_cbc = AnsiString('RC2-64-CBC'); + LN_rc2_64_cbc = AnsiString('rc2-64-cbc'); + NID_rc2_64_cbc = 166; + + SN_rc4 = AnsiString('RC4'); + LN_rc4 = AnsiString('rc4'); + NID_rc4 = 5; + + SN_rc4_40 = AnsiString('RC4-40'); + LN_rc4_40 = AnsiString('rc4-40'); + NID_rc4_40 = 97; + + SN_des_ede3_cbc = AnsiString('DES-EDE3-CBC'); + LN_des_ede3_cbc = AnsiString('des-ede3-cbc'); + NID_des_ede3_cbc = 44; + + SN_rc5_cbc = AnsiString('RC5-CBC'); + LN_rc5_cbc = AnsiString('rc5-cbc'); + NID_rc5_cbc = 120; + + SN_rc5_ecb = AnsiString('RC5-ECB'); + LN_rc5_ecb = AnsiString('rc5-ecb'); + NID_rc5_ecb = 121; + + SN_rc5_cfb64 = AnsiString('RC5-CFB'); + LN_rc5_cfb64 = AnsiString('rc5-cfb'); + NID_rc5_cfb64 = 122; + + SN_rc5_ofb64 = AnsiString('RC5-OFB'); + LN_rc5_ofb64 = AnsiString('rc5-ofb'); + NID_rc5_ofb64 = 123; + + SN_ms_ext_req = AnsiString('msExtReq'); + LN_ms_ext_req = AnsiString('Microsoft Extension Request'); + NID_ms_ext_req = 171; + + SN_ms_code_ind = AnsiString('msCodeInd'); + LN_ms_code_ind = AnsiString('Microsoft Individual Code Signing'); + NID_ms_code_ind = 134; + + SN_ms_code_com = AnsiString('msCodeCom'); + LN_ms_code_com = AnsiString('Microsoft Commercial Code Signing'); + NID_ms_code_com = 135; + + SN_ms_ctl_sign = AnsiString('msCTLSign'); + LN_ms_ctl_sign = AnsiString('Microsoft Trust List Signing'); + NID_ms_ctl_sign = 136; + + SN_ms_sgc = AnsiString('msSGC'); + LN_ms_sgc = AnsiString('Microsoft Server Gated Crypto'); + NID_ms_sgc = 137; + + SN_ms_efs = AnsiString('msEFS'); + LN_ms_efs = AnsiString('Microsoft Encrypted File System'); + NID_ms_efs = 138; + + SN_ms_smartcard_login = AnsiString('msSmartcardLogin'); + LN_ms_smartcard_login = AnsiString('Microsoft Smartcard Login'); + NID_ms_smartcard_login = 648; + + SN_ms_upn = AnsiString('msUPN'); + LN_ms_upn = AnsiString('Microsoft User Principal Name'); + NID_ms_upn = 649; + + SN_idea_cbc = AnsiString('IDEA-CBC'); + LN_idea_cbc = AnsiString('idea-cbc'); + NID_idea_cbc = 34; + + SN_idea_ecb = AnsiString('IDEA-ECB'); + LN_idea_ecb = AnsiString('idea-ecb'); + NID_idea_ecb = 36; + + SN_idea_cfb64 = AnsiString('IDEA-CFB'); + LN_idea_cfb64 = AnsiString('idea-cfb'); + NID_idea_cfb64 = 35; + + SN_idea_ofb64 = AnsiString('IDEA-OFB'); + LN_idea_ofb64 = AnsiString('idea-ofb'); + NID_idea_ofb64 = 46; + + SN_bf_cbc = AnsiString('BF-CBC'); + LN_bf_cbc = AnsiString('bf-cbc'); + NID_bf_cbc = 91; + + SN_bf_ecb = AnsiString('BF-ECB'); + LN_bf_ecb = AnsiString('bf-ecb'); + NID_bf_ecb = 92; + + SN_bf_cfb64 = AnsiString('BF-CFB'); + LN_bf_cfb64 = AnsiString('bf-cfb'); + NID_bf_cfb64 = 93; + + SN_bf_ofb64 = AnsiString('BF-OFB'); + LN_bf_ofb64 = AnsiString('bf-ofb'); + NID_bf_ofb64 = 94; + + SN_id_pkix = AnsiString('PKIX'); + NID_id_pkix = 127; + + SN_id_pkix_mod = AnsiString('id-pkix-mod'); + NID_id_pkix_mod = 258; + + SN_id_pe = AnsiString('id-pe'); + NID_id_pe = 175; + + SN_id_qt = AnsiString('id-qt'); + NID_id_qt = 259; + + SN_id_kp = AnsiString('id-kp'); + NID_id_kp = 128; + + SN_id_it = AnsiString('id-it'); + NID_id_it = 260; + + SN_id_pkip = AnsiString('id-pkip'); + NID_id_pkip = 261; + + SN_id_alg = AnsiString('id-alg'); + NID_id_alg = 262; + + SN_id_cmc = AnsiString('id-cmc'); + NID_id_cmc = 263; + + SN_id_on = AnsiString('id-on'); + NID_id_on = 264; + + SN_id_pda = AnsiString('id-pda'); + NID_id_pda = 265; + + SN_id_aca = AnsiString('id-aca'); + NID_id_aca = 266; + + SN_id_qcs = AnsiString('id-qcs'); + NID_id_qcs = 267; + + SN_id_cct = AnsiString('id-cct'); + NID_id_cct = 268; + + SN_id_ppl = AnsiString('id-ppl'); + NID_id_ppl = 662; + + SN_id_ad = AnsiString('id-ad'); + NID_id_ad = 176; + + SN_id_pkix1_explicit_88 = AnsiString('id-pkix1-explicit-88'); + NID_id_pkix1_explicit_88 = 269; + + SN_id_pkix1_implicit_88 = AnsiString('id-pkix1-implicit-88'); + NID_id_pkix1_implicit_88 = 270; + + SN_id_pkix1_explicit_93 = AnsiString('id-pkix1-explicit-93'); + NID_id_pkix1_explicit_93 = 271; + + SN_id_pkix1_implicit_93 = AnsiString('id-pkix1-implicit-93'); + NID_id_pkix1_implicit_93 = 272; + + SN_id_mod_crmf = AnsiString('id-mod-crmf'); + NID_id_mod_crmf = 273; + + SN_id_mod_cmc = AnsiString('id-mod-cmc'); + NID_id_mod_cmc = 274; + + SN_id_mod_kea_profile_88 = AnsiString('id-mod-kea-profile-88'); + NID_id_mod_kea_profile_88 = 275; + + SN_id_mod_kea_profile_93 = AnsiString('id-mod-kea-profile-93'); + NID_id_mod_kea_profile_93 = 276; + + SN_id_mod_cmp = AnsiString('id-mod-cmp'); + NID_id_mod_cmp = 277; + + SN_id_mod_qualified_cert_88 = AnsiString('id-mod-qualified-cert-88'); + NID_id_mod_qualified_cert_88 = 278; + + SN_id_mod_qualified_cert_93 = AnsiString('id-mod-qualified-cert-93'); + NID_id_mod_qualified_cert_93 = 279; + + SN_id_mod_attribute_cert = AnsiString('id-mod-attribute-cert'); + NID_id_mod_attribute_cert = 280; + + SN_id_mod_timestamp_protocol = AnsiString('id-mod-timestamp-protocol'); + NID_id_mod_timestamp_protocol = 281; + + SN_id_mod_ocsp = AnsiString('id-mod-ocsp'); + NID_id_mod_ocsp = 282; + + SN_id_mod_dvcs = AnsiString('id-mod-dvcs'); + NID_id_mod_dvcs = 283; + + SN_id_mod_cmp2000 = AnsiString('id-mod-cmp2000'); + NID_id_mod_cmp2000 = 284; + + SN_info_access = AnsiString('authorityInfoAccess'); + LN_info_access = AnsiString('Authority Information Access'); + NID_info_access = 177; + + SN_biometricInfo = AnsiString('biometricInfo'); + LN_biometricInfo = AnsiString('Biometric Info'); + NID_biometricInfo = 285; + + SN_qcStatements = AnsiString('qcStatements'); + NID_qcStatements = 286; + + SN_ac_auditEntity = AnsiString('ac-auditEntity'); + NID_ac_auditEntity = 287; + + SN_ac_targeting = AnsiString('ac-targeting'); + NID_ac_targeting = 288; + + SN_aaControls = AnsiString('aaControls'); + NID_aaControls = 289; + + SN_sbgp_ipAddrBlock = AnsiString('sbgp-ipAddrBlock'); + NID_sbgp_ipAddrBlock = 290; + + SN_sbgp_autonomousSysNum = AnsiString('sbgp-autonomousSysNum'); + NID_sbgp_autonomousSysNum = 291; + + SN_sbgp_routerIdentifier = AnsiString('sbgp-routerIdentifier'); + NID_sbgp_routerIdentifier = 292; + + SN_ac_proxying = AnsiString('ac-proxying'); + NID_ac_proxying = 397; + + SN_sinfo_access = AnsiString('subjectInfoAccess'); + LN_sinfo_access = AnsiString('Subject Information Access'); + NID_sinfo_access = 398; + + SN_proxyCertInfo = AnsiString('proxyCertInfo'); + LN_proxyCertInfo = AnsiString('Proxy Certificate Information'); + NID_proxyCertInfo = 663; + + SN_tlsfeature = AnsiString('tlsfeature'); + LN_tlsfeature = AnsiString('TLS Feature'); + NID_tlsfeature = 1020; + + SN_id_qt_cps = AnsiString('id-qt-cps'); + LN_id_qt_cps = AnsiString('Policy Qualifier CPS'); + NID_id_qt_cps = 164; + + SN_id_qt_unotice = AnsiString('id-qt-unotice'); + LN_id_qt_unotice = AnsiString('Policy Qualifier User Notice'); + NID_id_qt_unotice = 165; + + SN_textNotice = AnsiString('textNotice'); + NID_textNotice = 293; + + SN_server_auth = AnsiString('serverAuth'); + LN_server_auth = AnsiString('TLS Web Server Authentication'); + NID_server_auth = 129; + + SN_client_auth = AnsiString('clientAuth'); + LN_client_auth = AnsiString('TLS Web Client Authentication'); + NID_client_auth = 130; + + SN_code_sign = AnsiString('codeSigning'); + LN_code_sign = AnsiString('Code Signing'); + NID_code_sign = 131; + + SN_email_protect = AnsiString('emailProtection'); + LN_email_protect = AnsiString('E-mail Protection'); + NID_email_protect = 132; + + SN_ipsecEndSystem = AnsiString('ipsecEndSystem'); + LN_ipsecEndSystem = AnsiString('IPSec End System'); + NID_ipsecEndSystem = 294; + + SN_ipsecTunnel = AnsiString('ipsecTunnel'); + LN_ipsecTunnel = AnsiString('IPSec Tunnel'); + NID_ipsecTunnel = 295; + + SN_ipsecUser = AnsiString('ipsecUser'); + LN_ipsecUser = AnsiString('IPSec User'); + NID_ipsecUser = 296; + + SN_time_stamp = AnsiString('timeStamping'); + LN_time_stamp = AnsiString('Time Stamping'); + NID_time_stamp = 133; + + SN_OCSP_sign = AnsiString('OCSPSigning'); + LN_OCSP_sign = AnsiString('OCSP Signing'); + NID_OCSP_sign = 180; + + SN_dvcs = AnsiString('DVCS'); + LN_dvcs = AnsiString('dvcs'); + NID_dvcs = 297; + + SN_ipsec_IKE = AnsiString('ipsecIKE'); + LN_ipsec_IKE = AnsiString('ipsec Internet Key Exchange'); + NID_ipsec_IKE = 1022; + + SN_capwapAC = AnsiString('capwapAC'); + LN_capwapAC = AnsiString('Ctrl/provision WAP Access'); + NID_capwapAC = 1023; + + SN_capwapWTP = AnsiString('capwapWTP'); + LN_capwapWTP = AnsiString('Ctrl/Provision WAP Termination'); + NID_capwapWTP = 1024; + + SN_sshClient = AnsiString('secureShellClient'); + LN_sshClient = AnsiString('SSH Client'); + NID_sshClient = 1025; + + SN_sshServer = AnsiString('secureShellServer'); + LN_sshServer = AnsiString('SSH Server'); + NID_sshServer = 1026; + + SN_sendRouter = AnsiString('sendRouter'); + LN_sendRouter = AnsiString('Send Router'); + NID_sendRouter = 1027; + + SN_sendProxiedRouter = AnsiString('sendProxiedRouter'); + LN_sendProxiedRouter = AnsiString('Send Proxied Router'); + NID_sendProxiedRouter = 1028; + + SN_sendOwner = AnsiString('sendOwner'); + LN_sendOwner = AnsiString('Send Owner'); + NID_sendOwner = 1029; + + SN_sendProxiedOwner = AnsiString('sendProxiedOwner'); + LN_sendProxiedOwner = AnsiString('Send Proxied Owner'); + NID_sendProxiedOwner = 1030; + + SN_cmcCA = AnsiString('cmcCA'); + LN_cmcCA = AnsiString('CMC Certificate Authority'); + NID_cmcCA = 1131; + + SN_cmcRA = AnsiString('cmcRA'); + LN_cmcRA = AnsiString('CMC Registration Authority'); + NID_cmcRA = 1132; + + SN_id_it_caProtEncCert = AnsiString('id-it-caProtEncCert'); + NID_id_it_caProtEncCert = 298; + + SN_id_it_signKeyPairTypes = AnsiString('id-it-signKeyPairTypes'); + NID_id_it_signKeyPairTypes = 299; + + SN_id_it_encKeyPairTypes = AnsiString('id-it-encKeyPairTypes'); + NID_id_it_encKeyPairTypes = 300; + + SN_id_it_preferredSymmAlg = AnsiString('id-it-preferredSymmAlg'); + NID_id_it_preferredSymmAlg = 301; + + SN_id_it_caKeyUpdateInfo = AnsiString('id-it-caKeyUpdateInfo'); + NID_id_it_caKeyUpdateInfo = 302; + + SN_id_it_currentCRL = AnsiString('id-it-currentCRL'); + NID_id_it_currentCRL = 303; + + SN_id_it_unsupportedOIDs = AnsiString('id-it-unsupportedOIDs'); + NID_id_it_unsupportedOIDs = 304; + + SN_id_it_subscriptionRequest = AnsiString('id-it-subscriptionRequest'); + NID_id_it_subscriptionRequest = 305; + + SN_id_it_subscriptionResponse = AnsiString('id-it-subscriptionResponse'); + NID_id_it_subscriptionResponse = 306; + + SN_id_it_keyPairParamReq = AnsiString('id-it-keyPairParamReq'); + NID_id_it_keyPairParamReq = 307; + + SN_id_it_keyPairParamRep = AnsiString('id-it-keyPairParamRep'); + NID_id_it_keyPairParamRep = 308; + + SN_id_it_revPassphrase = AnsiString('id-it-revPassphrase'); + NID_id_it_revPassphrase = 309; + + SN_id_it_implicitConfirm = AnsiString('id-it-implicitConfirm'); + NID_id_it_implicitConfirm = 310; + + SN_id_it_confirmWaitTime = AnsiString('id-it-confirmWaitTime'); + NID_id_it_confirmWaitTime = 311; + + SN_id_it_origPKIMessage = AnsiString('id-it-origPKIMessage'); + NID_id_it_origPKIMessage = 312; + + SN_id_it_suppLangTags = AnsiString('id-it-suppLangTags'); + NID_id_it_suppLangTags = 784; + + SN_id_regCtrl = AnsiString('id-regCtrl'); + NID_id_regCtrl = 313; + + SN_id_regInfo = AnsiString('id-regInfo'); + NID_id_regInfo = 314; + + SN_id_regCtrl_regToken = AnsiString('id-regCtrl-regToken'); + NID_id_regCtrl_regToken = 315; + + SN_id_regCtrl_authenticator = AnsiString('id-regCtrl-authenticator'); + NID_id_regCtrl_authenticator = 316; + + SN_id_regCtrl_pkiPublicationInfo = AnsiString('id-regCtrl-pkiPublicationInfo'); + NID_id_regCtrl_pkiPublicationInfo = 317; + + SN_id_regCtrl_pkiArchiveOptions = AnsiString('id-regCtrl-pkiArchiveOptions'); + NID_id_regCtrl_pkiArchiveOptions = 318; + + SN_id_regCtrl_oldCertID = AnsiString('id-regCtrl-oldCertID'); + NID_id_regCtrl_oldCertID = 319; + + SN_id_regCtrl_protocolEncrKey = AnsiString('id-regCtrl-protocolEncrKey'); + NID_id_regCtrl_protocolEncrKey = 320; + + SN_id_regInfo_utf8Pairs = AnsiString('id-regInfo-utf8Pairs'); + NID_id_regInfo_utf8Pairs = 321; + + SN_id_regInfo_certReq = AnsiString('id-regInfo-certReq'); + NID_id_regInfo_certReq = 322; + + SN_id_alg_des40 = AnsiString('id-alg-des40'); + NID_id_alg_des40 = 323; + + SN_id_alg_noSignature = AnsiString('id-alg-noSignature'); + NID_id_alg_noSignature = 324; + + SN_id_alg_dh_sig_hmac_sha1 = AnsiString('id-alg-dh-sig-hmac-sha1'); + NID_id_alg_dh_sig_hmac_sha1 = 325; + + SN_id_alg_dh_pop = AnsiString('id-alg-dh-pop'); + NID_id_alg_dh_pop = 326; + + SN_id_cmc_statusInfo = AnsiString('id-cmc-statusInfo'); + NID_id_cmc_statusInfo = 327; + + SN_id_cmc_identification = AnsiString('id-cmc-identification'); + NID_id_cmc_identification = 328; + + SN_id_cmc_identityProof = AnsiString('id-cmc-identityProof'); + NID_id_cmc_identityProof = 329; + + SN_id_cmc_dataReturn = AnsiString('id-cmc-dataReturn'); + NID_id_cmc_dataReturn = 330; + + SN_id_cmc_transactionId = AnsiString('id-cmc-transactionId'); + NID_id_cmc_transactionId = 331; + + SN_id_cmc_senderNonce = AnsiString('id-cmc-senderNonce'); + NID_id_cmc_senderNonce = 332; + + SN_id_cmc_recipientNonce = AnsiString('id-cmc-recipientNonce'); + NID_id_cmc_recipientNonce = 333; + + SN_id_cmc_addExtensions = AnsiString('id-cmc-addExtensions'); + NID_id_cmc_addExtensions = 334; + + SN_id_cmc_encryptedPOP = AnsiString('id-cmc-encryptedPOP'); + NID_id_cmc_encryptedPOP = 335; + + SN_id_cmc_decryptedPOP = AnsiString('id-cmc-decryptedPOP'); + NID_id_cmc_decryptedPOP = 336; + + SN_id_cmc_lraPOPWitness = AnsiString('id-cmc-lraPOPWitness'); + NID_id_cmc_lraPOPWitness = 337; + + SN_id_cmc_getCert = AnsiString('id-cmc-getCert'); + NID_id_cmc_getCert = 338; + + SN_id_cmc_getCRL = AnsiString('id-cmc-getCRL'); + NID_id_cmc_getCRL = 339; + + SN_id_cmc_revokeRequest = AnsiString('id-cmc-revokeRequest'); + NID_id_cmc_revokeRequest = 340; + + SN_id_cmc_regInfo = AnsiString('id-cmc-regInfo'); + NID_id_cmc_regInfo = 341; + + SN_id_cmc_responseInfo = AnsiString('id-cmc-responseInfo'); + NID_id_cmc_responseInfo = 342; + + SN_id_cmc_queryPending = AnsiString('id-cmc-queryPending'); + NID_id_cmc_queryPending = 343; + + SN_id_cmc_popLinkRandom = AnsiString('id-cmc-popLinkRandom'); + NID_id_cmc_popLinkRandom = 344; + + SN_id_cmc_popLinkWitness = AnsiString('id-cmc-popLinkWitness'); + NID_id_cmc_popLinkWitness = 345; + + SN_id_cmc_confirmCertAcceptance = AnsiString('id-cmc-confirmCertAcceptance'); + NID_id_cmc_confirmCertAcceptance = 346; + + SN_id_on_personalData = AnsiString('id-on-personalData'); + NID_id_on_personalData = 347; + + SN_id_on_permanentIdentifier = AnsiString('id-on-permanentIdentifier'); + LN_id_on_permanentIdentifier = AnsiString('Permanent Identifier'); + NID_id_on_permanentIdentifier = 858; + + SN_id_pda_dateOfBirth = AnsiString('id-pda-dateOfBirth'); + NID_id_pda_dateOfBirth = 348; + + SN_id_pda_placeOfBirth = AnsiString('id-pda-placeOfBirth'); + NID_id_pda_placeOfBirth = 349; + + SN_id_pda_gender = AnsiString('id-pda-gender'); + NID_id_pda_gender = 351; + + SN_id_pda_countryOfCitizenship = AnsiString('id-pda-countryOfCitizenship'); + NID_id_pda_countryOfCitizenship = 352; + + SN_id_pda_countryOfResidence = AnsiString('id-pda-countryOfResidence'); + NID_id_pda_countryOfResidence = 353; + + SN_id_aca_authenticationInfo = AnsiString('id-aca-authenticationInfo'); + NID_id_aca_authenticationInfo = 354; + + SN_id_aca_accessIdentity = AnsiString('id-aca-accessIdentity'); + NID_id_aca_accessIdentity = 355; + + SN_id_aca_chargingIdentity = AnsiString('id-aca-chargingIdentity'); + NID_id_aca_chargingIdentity = 356; + + SN_id_aca_group = AnsiString('id-aca-group'); + NID_id_aca_group = 357; + + SN_id_aca_role = AnsiString('id-aca-role'); + NID_id_aca_role = 358; + + SN_id_aca_encAttrs = AnsiString('id-aca-encAttrs'); + NID_id_aca_encAttrs = 399; + + SN_id_qcs_pkixQCSyntax_v1 = AnsiString('id-qcs-pkixQCSyntax-v1'); + NID_id_qcs_pkixQCSyntax_v1 = 359; + + SN_id_cct_crs = AnsiString('id-cct-crs'); + NID_id_cct_crs = 360; + + SN_id_cct_PKIData = AnsiString('id-cct-PKIData'); + NID_id_cct_PKIData = 361; + + SN_id_cct_PKIResponse = AnsiString('id-cct-PKIResponse'); + NID_id_cct_PKIResponse = 362; + + SN_id_ppl_anyLanguage = AnsiString('id-ppl-anyLanguage'); + LN_id_ppl_anyLanguage = AnsiString('Any language'); + + NID_id_ppl_anyLanguage = 664; + SN_id_ppl_inheritAll = AnsiString('id-ppl-inheritAll'); + + LN_id_ppl_inheritAll = AnsiString('Inherit all'); + NID_id_ppl_inheritAll = 665; + + SN_Independent = AnsiString('id-ppl-independent'); + LN_Independent = AnsiString('Independent'); + NID_Independent = 667; + + SN_ad_OCSP = AnsiString('OCSP'); + LN_ad_OCSP = AnsiString('OCSP'); + NID_ad_OCSP = 178; + + SN_ad_ca_issuers = AnsiString('caIssuers'); + LN_ad_ca_issuers = AnsiString('CA Issuers'); + NID_ad_ca_issuers = 179; + + SN_ad_timeStamping = AnsiString('ad_timestamping'); + LN_ad_timeStamping = AnsiString('AD Time Stamping'); + NID_ad_timeStamping = 363; + + SN_ad_dvcs = AnsiString('AD_DVCS'); + LN_ad_dvcs = AnsiString('ad dvcs'); + NID_ad_dvcs = 364; + + SN_caRepository = AnsiString('caRepository'); + LN_caRepository = AnsiString('CA Repository'); + NID_caRepository = 785; + + SN_id_pkix_OCSP_basic = AnsiString('basicOCSPResponse'); + LN_id_pkix_OCSP_basic = AnsiString('Basic OCSP Response'); + NID_id_pkix_OCSP_basic = 365; + + SN_id_pkix_OCSP_Nonce = AnsiString('Nonce'); + LN_id_pkix_OCSP_Nonce = AnsiString('OCSP Nonce'); + NID_id_pkix_OCSP_Nonce = 366; + + SN_id_pkix_OCSP_CrlID = AnsiString('CrlID'); + LN_id_pkix_OCSP_CrlID = AnsiString('OCSP CRL ID'); + NID_id_pkix_OCSP_CrlID = 367; + + SN_id_pkix_OCSP_acceptableResponses = AnsiString('acceptableResponses'); + LN_id_pkix_OCSP_acceptableResponses = AnsiString('Acceptable OCSP Responses'); + NID_id_pkix_OCSP_acceptableResponses = 368; + + SN_id_pkix_OCSP_noCheck = AnsiString('noCheck'); + LN_id_pkix_OCSP_noCheck = AnsiString('OCSP No Check'); + NID_id_pkix_OCSP_noCheck = 369; + + SN_id_pkix_OCSP_archiveCutoff = AnsiString('archiveCutoff'); + LN_id_pkix_OCSP_archiveCutoff = AnsiString('OCSP Archive Cutoff'); + NID_id_pkix_OCSP_archiveCutoff = 370; + + SN_id_pkix_OCSP_serviceLocator = AnsiString('serviceLocator'); + LN_id_pkix_OCSP_serviceLocator = AnsiString('OCSP Service Locator'); + NID_id_pkix_OCSP_serviceLocator = 371; + + SN_id_pkix_OCSP_extendedStatus = AnsiString('extendedStatus'); + LN_id_pkix_OCSP_extendedStatus = AnsiString('Extended OCSP Status'); + NID_id_pkix_OCSP_extendedStatus = 372; + + SN_id_pkix_OCSP_valid = AnsiString('valid'); + NID_id_pkix_OCSP_valid = 373; + + SN_id_pkix_OCSP_path = AnsiString('path'); + NID_id_pkix_OCSP_path = 374; + + SN_id_pkix_OCSP_trustRoot = AnsiString('trustRoot'); + LN_id_pkix_OCSP_trustRoot = AnsiString('Trust Root'); + NID_id_pkix_OCSP_trustRoot = 375; + + SN_algorithm = AnsiString('algorithm'); + LN_algorithm = AnsiString('algorithm'); + NID_algorithm = 376; + + SN_md5WithRSA = AnsiString('RSA-NP-MD5'); + LN_md5WithRSA = AnsiString('md5WithRSA'); + NID_md5WithRSA = 104; + + SN_des_ecb = AnsiString('DES-ECB'); + LN_des_ecb = AnsiString('des-ecb'); + NID_des_ecb = 29; + + SN_des_cbc = AnsiString('DES-CBC'); + LN_des_cbc = AnsiString('des-cbc'); + NID_des_cbc = 31; + + SN_des_ofb64 = AnsiString('DES-OFB'); + LN_des_ofb64 = AnsiString('des-ofb'); + NID_des_ofb64 = 45; + + SN_des_cfb64 = AnsiString('DES-CFB'); + LN_des_cfb64 = AnsiString('des-cfb'); + NID_des_cfb64 = 30; + + SN_rsaSignature = AnsiString('rsaSignature'); + NID_rsaSignature = 377; + + SN_dsa_2 = AnsiString('DSA-old'); + LN_dsa_2 = AnsiString('dsaEncryption-old'); + NID_dsa_2 = 67; + + SN_dsaWithSHA = AnsiString('DSA-SHA'); + LN_dsaWithSHA = AnsiString('dsaWithSHA'); + NID_dsaWithSHA = 66; + + SN_shaWithRSAEncryption = AnsiString('RSA-SHA'); + LN_shaWithRSAEncryption = AnsiString('shaWithRSAEncryption'); + NID_shaWithRSAEncryption = 42; + + SN_des_ede_ecb = AnsiString('DES-EDE'); + LN_des_ede_ecb = AnsiString('des-ede'); + NID_des_ede_ecb = 32; + + SN_des_ede3_ecb = AnsiString('DES-EDE3'); + LN_des_ede3_ecb = AnsiString('des-ede3'); + NID_des_ede3_ecb = 33; + + SN_des_ede_cbc = AnsiString('DES-EDE-CBC'); + LN_des_ede_cbc = AnsiString('des-ede-cbc'); + NID_des_ede_cbc = 43; + + SN_des_ede_cfb64 = AnsiString('DES-EDE-CFB'); + LN_des_ede_cfb64 = AnsiString('des-ede-cfb'); + NID_des_ede_cfb64 = 60; + + SN_des_ede3_cfb64 = AnsiString('DES-EDE3-CFB'); + LN_des_ede3_cfb64 = AnsiString('des-ede3-cfb'); + NID_des_ede3_cfb64 = 61; + + SN_des_ede_ofb64 = AnsiString('DES-EDE-OFB'); + LN_des_ede_ofb64 = AnsiString('des-ede-ofb'); + NID_des_ede_ofb64 = 62; + + SN_des_ede3_ofb64 = AnsiString('DES-EDE3-OFB'); + LN_des_ede3_ofb64 = AnsiString('des-ede3-ofb'); + NID_des_ede3_ofb64 = 63; + + SN_desx_cbc = AnsiString('DESX-CBC'); + LN_desx_cbc = AnsiString('desx-cbc'); + NID_desx_cbc = 80; + + SN_sha = AnsiString('SHA'); + LN_sha = AnsiString('sha'); + NID_sha = 41; + + SN_sha1 = AnsiString('SHA1'); + LN_sha1 = AnsiString('sha1'); + NID_sha1 = 64; + + SN_dsaWithSHA1_2 = AnsiString('DSA-SHA1-old'); + LN_dsaWithSHA1_2 = AnsiString('dsaWithSHA1-old'); + NID_dsaWithSHA1_2 = 70; + + SN_sha1WithRSA = AnsiString('RSA-SHA1-2'); + LN_sha1WithRSA = AnsiString('sha1WithRSA'); + NID_sha1WithRSA = 115; + + SN_ripemd160 = AnsiString('RIPEMD160'); + LN_ripemd160 = AnsiString('ripemd160'); + NID_ripemd160 = 117; + + SN_ripemd160WithRSA = AnsiString('RSA-RIPEMD160'); + LN_ripemd160WithRSA = AnsiString('ripemd160WithRSA'); + NID_ripemd160WithRSA = 119; + + SN_blake2b512 = AnsiString('BLAKE2b512'); + LN_blake2b512 = AnsiString('blake2b512'); + NID_blake2b512 = 1056; + + SN_blake2s256 = AnsiString('BLAKE2s256'); + LN_blake2s256 = AnsiString('blake2s256'); + NID_blake2s256 = 1057; + + SN_sxnet = AnsiString('SXNetID'); + LN_sxnet = AnsiString('Strong Extranet ID'); + NID_sxnet = 143; + + SN_X500 = AnsiString('X500'); + LN_X500 = AnsiString('directory services(X.500)'); + NID_X500 = 11; + + SN_X509 = AnsiString('X509'); + NID_X509 = 12; + + SN_commonName = AnsiString('CN'); + LN_commonName = AnsiString('commonName'); + NID_commonName = 13; + + SN_surname = AnsiString('SN'); + LN_surname = AnsiString('surname'); + NID_surname = 100; + + LN_serialNumber = AnsiString('serialNumber'); + NID_serialNumber = 105; + + SN_countryName = AnsiString('C'); + LN_countryName = AnsiString('countryName'); + NID_countryName = 14; + + SN_localityName = AnsiString('L'); + LN_localityName = AnsiString('localityName'); + NID_localityName = 15; + + SN_stateOrProvinceName = AnsiString('ST'); + LN_stateOrProvinceName = AnsiString('stateOrProvinceName'); + NID_stateOrProvinceName = 16; + + SN_streetAddress = AnsiString('street'); + LN_streetAddress = AnsiString('streetAddress'); + NID_streetAddress = 660; + + SN_organizationName = AnsiString('O'); + LN_organizationName = AnsiString('organizationName'); + NID_organizationName = 17; + + SN_organizationalUnitName = AnsiString('OU'); + LN_organizationalUnitName = AnsiString('organizationalUnitName'); + NID_organizationalUnitName = 18; + + SN_title = AnsiString('title'); + LN_title = AnsiString('title'); + NID_title = 106; + + LN_description = AnsiString('description'); + NID_description = 107; + + LN_searchGuide = AnsiString('searchGuide'); + NID_searchGuide = 859; + LN_businessCategory = AnsiString('businessCategory'); + NID_businessCategory = 860; + + LN_postalAddress = AnsiString('postalAddress'); + NID_postalAddress = 861; + + LN_postalCode = AnsiString('postalCode'); + NID_postalCode = 661; + + LN_postOfficeBox = AnsiString('postOfficeBox'); + NID_postOfficeBox = 862; + + LN_physicalDeliveryOfficeName = AnsiString('physicalDeliveryOfficeName'); + NID_physicalDeliveryOfficeName = 863; + + LN_telephoneNumber = AnsiString('telephoneNumber'); + NID_telephoneNumber = 864; + + LN_telexNumber = AnsiString('telexNumber'); + NID_telexNumber = 865; + + LN_teletexTerminalIdentifier = AnsiString('teletexTerminalIdentifier'); + NID_teletexTerminalIdentifier = 866; + + LN_facsimileTelephoneNumber = AnsiString('facsimileTelephoneNumber'); + NID_facsimileTelephoneNumber = 867; + + LN_x121Address = AnsiString('x121Address'); + NID_x121Address = 868; + + LN_internationaliSDNNumber = AnsiString('internationaliSDNNumber'); + NID_internationaliSDNNumber = 869; + + LN_registeredAddress = AnsiString('registeredAddress'); + NID_registeredAddress = 870; + + LN_destinationIndicator = AnsiString('destinationIndicator'); + NID_destinationIndicator = 871; + + LN_preferredDeliveryMethod = AnsiString('preferredDeliveryMethod'); + NID_preferredDeliveryMethod = 872; + + LN_presentationAddress = AnsiString('presentationAddress'); + NID_presentationAddress = 873; + + LN_supportedApplicationContext = AnsiString('supportedApplicationContext'); + NID_supportedApplicationContext = 874; + + SN_member = AnsiString('member'); + NID_member = 875; + + SN_owner = AnsiString('owner'); + NID_owner = 876; + + LN_roleOccupant = AnsiString('roleOccupant'); + NID_roleOccupant = 877; + + SN_seeAlso = AnsiString('seeAlso'); + NID_seeAlso = 878; + + LN_userPassword = AnsiString('userPassword'); + NID_userPassword = 879; + + LN_userCertificate = AnsiString('userCertificate'); + NID_userCertificate = 880; + + LN_cACertificate = AnsiString('cACertificate'); + NID_cACertificate = 881; + + LN_authorityRevocationList = AnsiString('authorityRevocationList'); + NID_authorityRevocationList = 882; + + LN_certificateRevocationList = AnsiString('certificateRevocationList'); + NID_certificateRevocationList = 883; + + LN_crossCertificatePair = AnsiString('crossCertificatePair'); + NID_crossCertificatePair = 884; + + SN_name = AnsiString('name'); + LN_name = AnsiString('name'); + NID_name = 173; + + SN_givenName = AnsiString('GN'); + LN_givenName = AnsiString('givenName'); + NID_givenName = 99; + + SN_initials = AnsiString('initials'); + LN_initials = AnsiString('initials'); + NID_initials = 101; + + LN_generationQualifier = AnsiString('generationQualifier'); + NID_generationQualifier = 509; + + LN_x500UniqueIdentifier = AnsiString('x500UniqueIdentifier'); + NID_x500UniqueIdentifier = 503; + + SN_dnQualifier = AnsiString('dnQualifier'); + LN_dnQualifier = AnsiString('dnQualifier'); + NID_dnQualifier = 174; + + LN_enhancedSearchGuide = AnsiString('enhancedSearchGuide'); + NID_enhancedSearchGuide = 885; + + LN_protocolInformation = AnsiString('protocolInformation'); + NID_protocolInformation = 886; + + LN_distinguishedName = AnsiString('distinguishedName'); + NID_distinguishedName = 887; + + LN_uniqueMember = AnsiString('uniqueMember'); + NID_uniqueMember = 888; + + LN_houseIdentifier = AnsiString('houseIdentifier'); + NID_houseIdentifier = 889; + + LN_supportedAlgorithms = AnsiString('supportedAlgorithms'); + NID_supportedAlgorithms = 890; + + LN_deltaRevocationList = AnsiString('deltaRevocationList'); + NID_deltaRevocationList = 891; + + SN_dmdName = AnsiString('dmdName'); + NID_dmdName = 892; + + LN_pseudonym = AnsiString('pseudonym'); + NID_pseudonym = 510; + + SN_role = AnsiString('role'); + LN_role = AnsiString('role'); + NID_role = 400; + + LN_organizationIdentifier = AnsiString('organizationIdentifier'); + NID_organizationIdentifier = 1089; + + SN_countryCode3c = AnsiString('c3'); + LN_countryCode3c = AnsiString('countryCode3c'); + NID_countryCode3c = 1090; + + SN_countryCode3n = AnsiString('n3'); + LN_countryCode3n = AnsiString('countryCode3n'); + NID_countryCode3n = 1091; + + LN_dnsName = AnsiString('dnsName'); + NID_dnsName = 1092; + + SN_X500algorithms = AnsiString('X500algorithms'); + LN_X500algorithms = AnsiString('directory services - algorithms'); + NID_X500algorithms = 378; + + SN_rsa = AnsiString('RSA'); + LN_rsa = AnsiString('rsa'); + NID_rsa = 19; + + SN_mdc2WithRSA = AnsiString('RSA-MDC2'); + LN_mdc2WithRSA = AnsiString('mdc2WithRSA'); + NID_mdc2WithRSA = 96; + + SN_mdc2 = AnsiString('MDC2'); + LN_mdc2 = AnsiString('mdc2'); + NID_mdc2 = 95; + + SN_id_ce = AnsiString('id-ce'); + NID_id_ce = 81; + + SN_subject_directory_attributes = AnsiString('subjectDirectoryAttributes'); + LN_subject_directory_attributes = AnsiString('X509v3 Subject Directory Attributes'); + NID_subject_directory_attributes = 769; + + SN_subject_key_identifier = AnsiString('subjectKeyIdentifier'); + LN_subject_key_identifier = AnsiString('X509v3 Subject Key Identifier'); + NID_subject_key_identifier = 82; + + SN_key_usage = AnsiString('keyUsage'); + LN_key_usage = AnsiString('X509v3 Key Usage'); + NID_key_usage = 83; + + SN_private_key_usage_period = AnsiString('privateKeyUsagePeriod'); + LN_private_key_usage_period = AnsiString('X509v3 Private Key Usage Period'); + NID_private_key_usage_period = 84; + + SN_subject_alt_name = AnsiString('subjectAltName'); + LN_subject_alt_name = AnsiString('X509v3 Subject Alternative Name'); + NID_subject_alt_name = 85; + + SN_issuer_alt_name = AnsiString('issuerAltName'); + LN_issuer_alt_name = AnsiString('X509v3 Issuer Alternative Name'); + NID_issuer_alt_name = 86; + + SN_basic_constraints = AnsiString('basicConstraints'); + LN_basic_constraints = AnsiString('X509v3 Basic Constraints'); + NID_basic_constraints = 87; + + SN_crl_number = AnsiString('crlNumber'); + LN_crl_number = AnsiString('X509v3 CRL Number'); + NID_crl_number = 88; + + SN_crl_reason = AnsiString('CRLReason'); + LN_crl_reason = AnsiString('X509v3 CRL Reason Code'); + NID_crl_reason = 141; + + SN_invalidity_date = AnsiString('invalidityDate'); + LN_invalidity_date = AnsiString('Invalidity Date'); + NID_invalidity_date = 142; + + SN_delta_crl = AnsiString('deltaCRL'); + LN_delta_crl = AnsiString('X509v3 Delta CRL Indicator'); + NID_delta_crl = 140; + + SN_issuing_distribution_point = AnsiString('issuingDistributionPoint'); + LN_issuing_distribution_point = AnsiString('X509v3 Issuing Distribution Point'); + NID_issuing_distribution_point = 770; + + SN_certificate_issuer = AnsiString('certificateIssuer'); + LN_certificate_issuer = AnsiString('X509v3 Certificate Issuer'); + NID_certificate_issuer = 771; + + SN_name_constraints = AnsiString('nameConstraints'); + LN_name_constraints = AnsiString('X509v3 Name Constraints'); + NID_name_constraints = 666; + + SN_crl_distribution_points = AnsiString('crlDistributionPoints'); + LN_crl_distribution_points = AnsiString('X509v3 CRL Distribution Points'); + NID_crl_distribution_points = 103; + + SN_certificate_policies = AnsiString('certificatePolicies'); + LN_certificate_policies = AnsiString('X509v3 Certificate Policies'); + NID_certificate_policies = 89; + + SN_any_policy = AnsiString('anyPolicy'); + LN_any_policy = AnsiString('X509v3 Any Policy'); + NID_any_policy = 746; + + SN_policy_mappings = AnsiString('policyMappings'); + LN_policy_mappings = AnsiString('X509v3 Policy Mappings'); + NID_policy_mappings = 747; + + SN_authority_key_identifier = AnsiString('authorityKeyIdentifier'); + LN_authority_key_identifier = AnsiString('X509v3 Authority Key Identifier'); + NID_authority_key_identifier = 90; + + SN_policy_constraints = AnsiString('policyConstraints'); + LN_policy_constraints = AnsiString('X509v3 Policy Constraints'); + NID_policy_constraints = 401; + + SN_ext_key_usage = AnsiString('extendedKeyUsage'); + LN_ext_key_usage = AnsiString('X509v3 Extended Key Usage'); + NID_ext_key_usage = 126; + + SN_freshest_crl = AnsiString('freshestCRL'); + LN_freshest_crl = AnsiString('X509v3 Freshest CRL'); + NID_freshest_crl = 857; + + SN_inhibit_any_policy = AnsiString('inhibitAnyPolicy'); + LN_inhibit_any_policy = AnsiString('X509v3 Inhibit Any Policy'); + NID_inhibit_any_policy = 748; + + SN_target_information = AnsiString('targetInformation'); + LN_target_information = AnsiString('X509v3 AC Targeting'); + NID_target_information = 402; + + SN_no_rev_avail = AnsiString('noRevAvail'); + LN_no_rev_avail = AnsiString('X509v3 No Revocation Available'); + NID_no_rev_avail = 403; + + SN_anyExtendedKeyUsage = AnsiString('anyExtendedKeyUsage'); + LN_anyExtendedKeyUsage = AnsiString('Any Extended Key Usage'); + NID_anyExtendedKeyUsage = 910; + + SN_netscape = AnsiString('Netscape'); + LN_netscape = AnsiString('Netscape Communications Corp.'); + NID_netscape = 57; + + SN_netscape_cert_extension = AnsiString('nsCertExt'); + LN_netscape_cert_extension = AnsiString('Netscape Certificate Extension'); + NID_netscape_cert_extension = 58; + + SN_netscape_data_type = AnsiString('nsDataType'); + LN_netscape_data_type = AnsiString('Netscape Data Type'); + NID_netscape_data_type = 59; + + SN_netscape_cert_type = AnsiString('nsCertType'); + LN_netscape_cert_type = AnsiString('Netscape Cert Type'); + NID_netscape_cert_type = 71; + + SN_netscape_base_url = AnsiString('nsBaseUrl'); + LN_netscape_base_url = AnsiString('Netscape Base Url'); + NID_netscape_base_url = 72; + + SN_netscape_revocation_url = AnsiString('nsRevocationUrl'); + LN_netscape_revocation_url = AnsiString('Netscape Revocation Url'); + NID_netscape_revocation_url = 73; + + SN_netscape_ca_revocation_url = AnsiString('nsCaRevocationUrl'); + LN_netscape_ca_revocation_url = AnsiString('Netscape CA Revocation Url'); + NID_netscape_ca_revocation_url = 74; + + SN_netscape_renewal_url = AnsiString('nsRenewalUrl'); + LN_netscape_renewal_url = AnsiString('Netscape Renewal Url'); + NID_netscape_renewal_url = 75; + + SN_netscape_ca_policy_url = AnsiString('nsCaPolicyUrl'); + LN_netscape_ca_policy_url = AnsiString('Netscape CA Policy Url'); + NID_netscape_ca_policy_url = 76; + + SN_netscape_ssl_server_name = AnsiString('nsSslServerName'); + LN_netscape_ssl_server_name = AnsiString('Netscape Server: SSl Name'); + NID_netscape_ssl_server_name = 77; + + SN_netscape_comment = AnsiString('nsComment'); + LN_netscape_comment = AnsiString('Netscape Comment'); + NID_netscape_comment = 78; + + SN_netscape_cert_sequence = AnsiString('nsCertSequence'); + LN_netscape_cert_sequence = AnsiString('Netscape Certificate Sequence'); + NID_netscape_cert_sequence = 79; + + SN_ns_sgc = AnsiString('nsSGC'); + LN_ns_sgc = AnsiString('Netscape Server Gated Crypto'); + NID_ns_sgc = 139; + + SN_org = AnsiString('ORG'); + LN_org = AnsiString('org'); + NID_org = 379; + + SN_dod = AnsiString('DOD'); + LN_dod = AnsiString('dod'); + NID_dod = 380; + + SN_iana = AnsiString('IANA'); + LN_iana = AnsiString('iana'); + NID_iana = 381; + + SN_Directory = AnsiString('directory'); + LN_Directory = AnsiString('Directory'); + NID_Directory = 382; + + SN_Management = AnsiString('mgmt'); + LN_Management = AnsiString('Management'); + NID_Management = 383; + + SN_Experimental = AnsiString('experimental'); + LN_Experimental = AnsiString('Experimental'); + NID_Experimental = 384; + + SN_Private = AnsiString('private'); + LN_Private = AnsiString('Private'); + NID_Private = 385; + + SN_Security = AnsiString('security'); + LN_Security = AnsiString('Security'); + NID_Security = 386; + + SN_SNMPv2 = AnsiString('snmpv2'); + LN_SNMPv2 = AnsiString('SNMPv2'); + NID_SNMPv2 = 387; + + LN_Mail = AnsiString('Mail'); + NID_Mail = 388; + + SN_Enterprises = AnsiString('enterprises'); + LN_Enterprises = AnsiString('Enterprises'); + NID_Enterprises = 389; + + SN_dcObject = AnsiString('dcobject'); + LN_dcObject = AnsiString('dcObject'); + NID_dcObject = 390; + + SN_mime_mhs = AnsiString('mime-mhs'); + LN_mime_mhs = AnsiString('MIME MHS'); + NID_mime_mhs = 504; + + SN_mime_mhs_headings = AnsiString('mime-mhs-headings'); + LN_mime_mhs_headings = AnsiString('mime-mhs-headings'); + NID_mime_mhs_headings = 505; + + SN_mime_mhs_bodies = AnsiString('mime-mhs-bodies'); + LN_mime_mhs_bodies = AnsiString('mime-mhs-bodies'); + NID_mime_mhs_bodies = 506; + + SN_id_hex_partial_message = AnsiString('id-hex-partial-message'); + LN_id_hex_partial_message = AnsiString('id-hex-partial-message'); + NID_id_hex_partial_message = 507; + + SN_id_hex_multipart_message = AnsiString('id-hex-multipart-message'); + LN_id_hex_multipart_message = AnsiString('id-hex-multipart-message'); + NID_id_hex_multipart_message = 508; + + SN_zlib_compression = AnsiString('ZLIB'); + LN_zlib_compression = AnsiString('zlib compression'); + NID_zlib_compression = 125; + + SN_aes_128_ecb = AnsiString('AES-128-ECB'); + LN_aes_128_ecb = AnsiString('aes-128-ecb'); + NID_aes_128_ecb = 418; + + SN_aes_128_cbc = AnsiString('AES-128-CBC'); + LN_aes_128_cbc = AnsiString('aes-128-cbc'); + NID_aes_128_cbc = 419; + + SN_aes_128_ofb128 = AnsiString('AES-128-OFB'); + LN_aes_128_ofb128 = AnsiString('aes-128-ofb'); + NID_aes_128_ofb128 = 420; + + SN_aes_128_cfb128 = AnsiString('AES-128-CFB'); + LN_aes_128_cfb128 = AnsiString('aes-128-cfb'); + NID_aes_128_cfb128 = 421; + + SN_id_aes128_wrap = AnsiString('id-aes128-wrap'); + NID_id_aes128_wrap = 788; + + SN_aes_128_gcm = AnsiString('id-aes128-GCM'); + LN_aes_128_gcm = AnsiString('aes-128-gcm'); + NID_aes_128_gcm = 895; + + SN_aes_128_ccm = AnsiString('id-aes128-CCM'); + LN_aes_128_ccm = AnsiString('aes-128-ccm'); + NID_aes_128_ccm = 896; + + SN_id_aes128_wrap_pad = AnsiString('id-aes128-wrap-pad'); + NID_id_aes128_wrap_pad = 897; + + SN_aes_192_ecb = AnsiString('AES-192-ECB'); + LN_aes_192_ecb = AnsiString('aes-192-ecb'); + NID_aes_192_ecb = 422; + + SN_aes_192_cbc = AnsiString('AES-192-CBC'); + LN_aes_192_cbc = AnsiString('aes-192-cbc'); + NID_aes_192_cbc = 423; + + SN_aes_192_ofb128 = AnsiString('AES-192-OFB'); + LN_aes_192_ofb128 = AnsiString('aes-192-ofb'); + NID_aes_192_ofb128 = 424; + + SN_aes_192_cfb128 = AnsiString('AES-192-CFB'); + LN_aes_192_cfb128 = AnsiString('aes-192-cfb'); + NID_aes_192_cfb128 = 425; + + SN_id_aes192_wrap = AnsiString('id-aes192-wrap'); + NID_id_aes192_wrap = 789; + + SN_aes_192_gcm = AnsiString('id-aes192-GCM'); + LN_aes_192_gcm = AnsiString('aes-192-gcm'); + NID_aes_192_gcm = 898; + + SN_aes_192_ccm = AnsiString('id-aes192-CCM'); + LN_aes_192_ccm = AnsiString('aes-192-ccm'); + NID_aes_192_ccm = 899; + + SN_id_aes192_wrap_pad = AnsiString('id-aes192-wrap-pad'); + NID_id_aes192_wrap_pad = 900; + + SN_aes_256_ecb = AnsiString('AES-256-ECB'); + LN_aes_256_ecb = AnsiString('aes-256-ecb'); + NID_aes_256_ecb = 426; + + SN_aes_256_cbc = AnsiString('AES-256-CBC'); + LN_aes_256_cbc = AnsiString('aes-256-cbc'); + NID_aes_256_cbc = 427; + + SN_aes_256_ofb128 = AnsiString('AES-256-OFB'); + LN_aes_256_ofb128 = AnsiString('aes-256-ofb'); + NID_aes_256_ofb128 = 428; + + SN_aes_256_cfb128 = AnsiString('AES-256-CFB'); + LN_aes_256_cfb128 = AnsiString('aes-256-cfb'); + NID_aes_256_cfb128 = 429; + + SN_id_aes256_wrap = AnsiString('id-aes256-wrap'); + NID_id_aes256_wrap = 790; + + SN_aes_256_gcm = AnsiString('id-aes256-GCM'); + LN_aes_256_gcm = AnsiString('aes-256-gcm'); + NID_aes_256_gcm = 901; + + SN_aes_256_ccm = AnsiString('id-aes256-CCM'); + LN_aes_256_ccm = AnsiString('aes-256-ccm'); + NID_aes_256_ccm = 902; + + SN_id_aes256_wrap_pad = AnsiString('id-aes256-wrap-pad'); + NID_id_aes256_wrap_pad = 903; + + SN_aes_128_xts = AnsiString('AES-128-XTS'); + LN_aes_128_xts = AnsiString('aes-128-xts'); + NID_aes_128_xts = 913; + + SN_aes_256_xts = AnsiString('AES-256-XTS'); + LN_aes_256_xts = AnsiString('aes-256-xts'); + NID_aes_256_xts = 914; + + SN_aes_128_cfb1 = AnsiString('AES-128-CFB1'); + LN_aes_128_cfb1 = AnsiString('aes-128-cfb1'); + NID_aes_128_cfb1 = 650; + + SN_aes_192_cfb1 = AnsiString('AES-192-CFB1'); + LN_aes_192_cfb1 = AnsiString('aes-192-cfb1'); + NID_aes_192_cfb1 = 651; + + SN_aes_256_cfb1 = AnsiString('AES-256-CFB1'); + LN_aes_256_cfb1 = AnsiString('aes-256-cfb1'); + NID_aes_256_cfb1 = 652; + + SN_aes_128_cfb8 = AnsiString('AES-128-CFB8'); + LN_aes_128_cfb8 = AnsiString('aes-128-cfb8'); + NID_aes_128_cfb8 = 653; + + SN_aes_192_cfb8 = AnsiString('AES-192-CFB8'); + LN_aes_192_cfb8 = AnsiString('aes-192-cfb8'); + NID_aes_192_cfb8 = 654; + + SN_aes_256_cfb8 = AnsiString('AES-256-CFB8'); + LN_aes_256_cfb8 = AnsiString('aes-256-cfb8'); + NID_aes_256_cfb8 = 655; + + SN_aes_128_ctr = AnsiString('AES-128-CTR'); + LN_aes_128_ctr = AnsiString('aes-128-ctr'); + NID_aes_128_ctr = 904; + + SN_aes_192_ctr = AnsiString('AES-192-CTR'); + LN_aes_192_ctr = AnsiString('aes-192-ctr'); + NID_aes_192_ctr = 905; + + SN_aes_256_ctr = AnsiString('AES-256-CTR'); + LN_aes_256_ctr = AnsiString('aes-256-ctr'); + NID_aes_256_ctr = 906; + + SN_aes_128_ocb = AnsiString('AES-128-OCB'); + LN_aes_128_ocb = AnsiString('aes-128-ocb'); + NID_aes_128_ocb = 958; + + SN_aes_192_ocb = AnsiString('AES-192-OCB'); + LN_aes_192_ocb = AnsiString('aes-192-ocb'); + NID_aes_192_ocb = 959; + + SN_aes_256_ocb = AnsiString('AES-256-OCB'); + LN_aes_256_ocb = AnsiString('aes-256-ocb'); + NID_aes_256_ocb = 960; + + SN_des_cfb1 = AnsiString('DES-CFB1'); + LN_des_cfb1 = AnsiString('des-cfb1'); + NID_des_cfb1 = 656; + + SN_des_cfb8 = AnsiString('DES-CFB8'); + LN_des_cfb8 = AnsiString('des-cfb8'); + NID_des_cfb8 = 657; + + SN_des_ede3_cfb1 = AnsiString('DES-EDE3-CFB1'); + LN_des_ede3_cfb1 = AnsiString('des-ede3-cfb1'); + NID_des_ede3_cfb1 = 658; + + SN_des_ede3_cfb8 = AnsiString('DES-EDE3-CFB8'); + LN_des_ede3_cfb8 = AnsiString('des-ede3-cfb8'); + NID_des_ede3_cfb8 = 659; + + SN_sha256 = AnsiString('SHA256'); + LN_sha256 = AnsiString('sha256'); + NID_sha256 = 672; + + SN_sha384 = AnsiString('SHA384'); + LN_sha384 = AnsiString('sha384'); + NID_sha384 = 673; + + SN_sha512 = AnsiString('SHA512'); + LN_sha512 = AnsiString('sha512'); + NID_sha512 = 674; + + SN_sha224 = AnsiString('SHA224'); + LN_sha224 = AnsiString('sha224'); + NID_sha224 = 675; + + SN_sha512_224 = AnsiString('SHA512-224'); + LN_sha512_224 = AnsiString('sha512-224'); + NID_sha512_224 = 1094; + + SN_sha512_256 = AnsiString('SHA512-256'); + LN_sha512_256 = AnsiString('sha512-256'); + NID_sha512_256 = 1095; + + SN_sha3_224 = AnsiString('SHA3-224'); + LN_sha3_224 = AnsiString('sha3-224'); + NID_sha3_224 = 1096; + + SN_sha3_256 = AnsiString('SHA3-256'); + LN_sha3_256 = AnsiString('sha3-256'); + NID_sha3_256 = 1097; + + SN_sha3_384 = AnsiString('SHA3-384'); + LN_sha3_384 = AnsiString('sha3-384'); + NID_sha3_384 = 1098; + + SN_sha3_512 = AnsiString('SHA3-512'); + LN_sha3_512 = AnsiString('sha3-512'); + NID_sha3_512 = 1099; + + SN_shake128 = AnsiString('SHAKE128'); + LN_shake128 = AnsiString('shake128'); + NID_shake128 = 1100; + + SN_shake256 = AnsiString('SHAKE256'); + LN_shake256 = AnsiString('shake256'); + NID_shake256 = 1101; + + SN_hmac_sha3_224 = AnsiString('id-hmacWithSHA3-224'); + LN_hmac_sha3_224 = AnsiString('hmac-sha3-224'); + NID_hmac_sha3_224 = 1102; + + SN_hmac_sha3_256 = AnsiString('id-hmacWithSHA3-256'); + LN_hmac_sha3_256 = AnsiString('hmac-sha3-256'); + NID_hmac_sha3_256 = 1103; + + SN_hmac_sha3_384 = AnsiString('id-hmacWithSHA3-384'); + LN_hmac_sha3_384 = AnsiString('hmac-sha3-384'); + NID_hmac_sha3_384 = 1104; + + SN_hmac_sha3_512 = AnsiString('id-hmacWithSHA3-512'); + LN_hmac_sha3_512 = AnsiString('hmac-sha3-512'); + NID_hmac_sha3_512 = 1105; + + SN_dsa_with_SHA224 = AnsiString('dsa_with_SHA224'); + NID_dsa_with_SHA224 = 802; + + SN_dsa_with_SHA256 = AnsiString('dsa_with_SHA256'); + NID_dsa_with_SHA256 = 803; + + SN_dsa_with_SHA384 = AnsiString('id-dsa-with-sha384'); + LN_dsa_with_SHA384 = AnsiString('dsa_with_SHA384'); + NID_dsa_with_SHA384 = 1106; + + SN_dsa_with_SHA512 = AnsiString('id-dsa-with-sha512'); + LN_dsa_with_SHA512 = AnsiString('dsa_with_SHA512'); + NID_dsa_with_SHA512 = 1107; + + SN_dsa_with_SHA3_224 = AnsiString('id-dsa-with-sha3-224'); + LN_dsa_with_SHA3_224 = AnsiString('dsa_with_SHA3-224'); + NID_dsa_with_SHA3_224 = 1108; + + SN_dsa_with_SHA3_256 = AnsiString('id-dsa-with-sha3-256'); + LN_dsa_with_SHA3_256 = AnsiString('dsa_with_SHA3-256'); + NID_dsa_with_SHA3_256 = 1109; + + SN_dsa_with_SHA3_384 = AnsiString('id-dsa-with-sha3-384'); + LN_dsa_with_SHA3_384 = AnsiString('dsa_with_SHA3-384'); + NID_dsa_with_SHA3_384 = 1110; + + SN_dsa_with_SHA3_512 = AnsiString('id-dsa-with-sha3-512'); + LN_dsa_with_SHA3_512 = AnsiString('dsa_with_SHA3-512'); + NID_dsa_with_SHA3_512 = 1111; + + SN_ecdsa_with_SHA3_224 = AnsiString('id-ecdsa-with-sha3-224'); + LN_ecdsa_with_SHA3_224 = AnsiString('ecdsa_with_SHA3-224'); + NID_ecdsa_with_SHA3_224 = 1112; + + SN_ecdsa_with_SHA3_256 = AnsiString('id-ecdsa-with-sha3-256'); + LN_ecdsa_with_SHA3_256 = AnsiString('ecdsa_with_SHA3-256'); + NID_ecdsa_with_SHA3_256 = 1113; + + SN_ecdsa_with_SHA3_384 = AnsiString('id-ecdsa-with-sha3-384'); + LN_ecdsa_with_SHA3_384 = AnsiString('ecdsa_with_SHA3-384'); + NID_ecdsa_with_SHA3_384 = 1114; + + SN_ecdsa_with_SHA3_512 = AnsiString('id-ecdsa-with-sha3-512'); + LN_ecdsa_with_SHA3_512 = AnsiString('ecdsa_with_SHA3-512'); + NID_ecdsa_with_SHA3_512 = 1115; + + SN_RSA_SHA3_224 = AnsiString('id-rsassa-pkcs1-v1_5-with-sha3-224'); + LN_RSA_SHA3_224 = AnsiString('RSA-SHA3-224'); + NID_RSA_SHA3_224 = 1116; + + SN_RSA_SHA3_256 = AnsiString('id-rsassa-pkcs1-v1_5-with-sha3-256'); + LN_RSA_SHA3_256 = AnsiString('RSA-SHA3-256'); + NID_RSA_SHA3_256 = 1117; + + SN_RSA_SHA3_384 = AnsiString('id-rsassa-pkcs1-v1_5-with-sha3-384'); + LN_RSA_SHA3_384 = AnsiString('RSA-SHA3-384'); + NID_RSA_SHA3_384 = 1118; + + SN_RSA_SHA3_512 = AnsiString('id-rsassa-pkcs1-v1_5-with-sha3-512'); + LN_RSA_SHA3_512 = AnsiString('RSA-SHA3-512'); + NID_RSA_SHA3_512 = 1119; + + SN_hold_instruction_code = AnsiString('holdInstructionCode'); + LN_hold_instruction_code = AnsiString('Hold Instruction Code'); + NID_hold_instruction_code = 430; + + SN_hold_instruction_none = AnsiString('holdInstructionNone'); + LN_hold_instruction_none = AnsiString('Hold Instruction None'); + NID_hold_instruction_none = 431; + + SN_hold_instruction_call_issuer = AnsiString('holdInstructionCallIssuer'); + LN_hold_instruction_call_issuer = AnsiString('Hold Instruction Call Issuer'); + NID_hold_instruction_call_issuer = 432; + + SN_hold_instruction_reject = AnsiString('holdInstructionReject'); + LN_hold_instruction_reject = AnsiString('Hold Instruction Reject'); + NID_hold_instruction_reject = 433; + + SN_data = AnsiString('data'); + NID_data = 434; + + SN_pss = AnsiString('pss'); + NID_pss = 435; + + SN_ucl = AnsiString('ucl'); + NID_ucl = 436; + + SN_pilot = AnsiString('pilot'); + NID_pilot = 437; + + LN_pilotAttributeType = AnsiString('pilotAttributeType'); + NID_pilotAttributeType = 438; + + LN_pilotAttributeSyntax = AnsiString('pilotAttributeSyntax'); + NID_pilotAttributeSyntax = 439; + + LN_pilotObjectClass = AnsiString('pilotObjectClass'); + NID_pilotObjectClass = 440; + + LN_pilotGroups = AnsiString('pilotGroups'); + NID_pilotGroups = 441; + + LN_iA5StringSyntax = AnsiString('iA5StringSyntax'); + NID_iA5StringSyntax = 442; + + LN_caseIgnoreIA5StringSyntax = AnsiString('caseIgnoreIA5StringSyntax'); + NID_caseIgnoreIA5StringSyntax = 443; + + LN_pilotObject = AnsiString('pilotObject'); + NID_pilotObject = 444; + + LN_pilotPerson = AnsiString('pilotPerson'); + NID_pilotPerson = 445; + + SN_account = AnsiString('account'); + NID_account = 446; + + SN_document = AnsiString('document'); + NID_document = 447; + + SN_room = AnsiString('room'); + NID_room = 448; + + LN_documentSeries = AnsiString('documentSeries'); + NID_documentSeries = 449; + + SN_Domain = AnsiString('domain'); + LN_Domain = AnsiString('Domain'); + NID_Domain = 392; + + LN_rFC822localPart = AnsiString('rFC822localPart'); + NID_rFC822localPart = 450; + + LN_dNSDomain = AnsiString('dNSDomain'); + NID_dNSDomain = 451; + + LN_domainRelatedObject = AnsiString('domainRelatedObject'); + NID_domainRelatedObject = 452; + + LN_friendlyCountry = AnsiString('friendlyCountry'); + NID_friendlyCountry = 453; + + LN_simpleSecurityObject = AnsiString('simpleSecurityObject'); + NID_simpleSecurityObject = 454; + + LN_pilotOrganization = AnsiString('pilotOrganization'); + NID_pilotOrganization = 455; + + LN_pilotDSA = AnsiString('pilotDSA'); + NID_pilotDSA = 456; + + LN_qualityLabelledData = AnsiString('qualityLabelledData'); + NID_qualityLabelledData = 457; + + SN_userId = AnsiString('UID'); + LN_userId = AnsiString('userId'); + NID_userId = 458; + + LN_textEncodedORAddress = AnsiString('textEncodedORAddress'); + NID_textEncodedORAddress = 459; + + SN_rfc822Mailbox = AnsiString('mail'); + LN_rfc822Mailbox = AnsiString('rfc822Mailbox'); + NID_rfc822Mailbox = 460; + + SN_info = AnsiString('info'); + NID_info = 461; + + LN_favouriteDrink = AnsiString('favouriteDrink'); + NID_favouriteDrink = 462; + + LN_roomNumber = AnsiString('roomNumber'); + NID_roomNumber = 463; + + SN_photo = AnsiString('photo'); + NID_photo = 464; + + LN_userClass = AnsiString('userClass'); + NID_userClass = 465; + + SN_host = AnsiString('host'); + NID_host = 466; + + SN_manager = AnsiString('manager'); + NID_manager = 467; + + LN_documentIdentifier = AnsiString('documentIdentifier'); + NID_documentIdentifier = 468; + + LN_documentTitle = AnsiString('documentTitle'); + NID_documentTitle = 469; + + LN_documentVersion = AnsiString('documentVersion'); + NID_documentVersion = 470; + + LN_documentAuthor = AnsiString('documentAuthor'); + NID_documentAuthor = 471; + + LN_documentLocation = AnsiString('documentLocation'); + NID_documentLocation = 472; + + LN_homeTelephoneNumber = AnsiString('homeTelephoneNumber'); + NID_homeTelephoneNumber = 473; + + SN_secretary = AnsiString('secretary'); + NID_secretary = 474; + + LN_otherMailbox = AnsiString('otherMailbox'); + NID_otherMailbox = 475; + + LN_lastModifiedTime = AnsiString('lastModifiedTime'); + NID_lastModifiedTime = 476; + + LN_lastModifiedBy = AnsiString('lastModifiedBy'); + NID_lastModifiedBy = 477; + + SN_domainComponent = AnsiString('DC'); + LN_domainComponent = AnsiString('domainComponent'); + NID_domainComponent = 391; + + LN_aRecord = AnsiString('aRecord'); + NID_aRecord = 478; + + LN_pilotAttributeType27 = AnsiString('pilotAttributeType27'); + NID_pilotAttributeType27 = 479; + + LN_mXRecord = AnsiString('mXRecord'); + NID_mXRecord = 480; + + LN_nSRecord = AnsiString('nSRecord'); + NID_nSRecord = 481; + + LN_sOARecord = AnsiString('sOARecord'); + NID_sOARecord = 482; + + LN_cNAMERecord = AnsiString('cNAMERecord'); + NID_cNAMERecord = 483; + + LN_associatedDomain = AnsiString('associatedDomain'); + NID_associatedDomain = 484; + + LN_associatedName = AnsiString('associatedName'); + NID_associatedName = 485; + + LN_homePostalAddress = AnsiString('homePostalAddress'); + NID_homePostalAddress = 486; + + LN_personalTitle = AnsiString('personalTitle'); + NID_personalTitle = 487; + + LN_mobileTelephoneNumber = AnsiString('mobileTelephoneNumber'); + NID_mobileTelephoneNumber = 488; + + LN_pagerTelephoneNumber = AnsiString('pagerTelephoneNumber'); + NID_pagerTelephoneNumber = 489; + + LN_friendlyCountryName = AnsiString('friendlyCountryName'); + NID_friendlyCountryName = 490; + + SN_uniqueIdentifier = AnsiString('uid'); + LN_uniqueIdentifier = AnsiString('uniqueIdentifier'); + NID_uniqueIdentifier = 102; + + LN_organizationalStatus = AnsiString('organizationalStatus'); + NID_organizationalStatus = 491; + + LN_janetMailbox = AnsiString('janetMailbox'); + NID_janetMailbox = 492; + LN_mailPreferenceOption = AnsiString('mailPreferenceOption'); + NID_mailPreferenceOption = 493; + + LN_buildingName = AnsiString('buildingName'); + NID_buildingName = 494; + + LN_dSAQuality = AnsiString('dSAQuality'); + NID_dSAQuality = 495; + + LN_singleLevelQuality = AnsiString('singleLevelQuality'); + NID_singleLevelQuality = 496; + + LN_subtreeMinimumQuality = AnsiString('subtreeMinimumQuality'); + NID_subtreeMinimumQuality = 497; + + LN_subtreeMaximumQuality = AnsiString('subtreeMaximumQuality'); + NID_subtreeMaximumQuality = 498; + + LN_personalSignature = AnsiString('personalSignature'); + NID_personalSignature = 499; + + LN_dITRedirect = AnsiString('dITRedirect'); + NID_dITRedirect = 500; + + SN_audio = AnsiString('audio'); + NID_audio = 501; + + LN_documentPublisher = AnsiString('documentPublisher'); + NID_documentPublisher = 502; + + SN_id_set = AnsiString('id-set'); + LN_id_set = AnsiString('Secure Electronic Transactions'); + NID_id_set = 512; + + SN_set_ctype = AnsiString('set-ctype'); + LN_set_ctype = AnsiString('content types'); + NID_set_ctype = 513; + + SN_set_msgExt = AnsiString('set-msgExt'); + LN_set_msgExt = AnsiString('message extensions'); + NID_set_msgExt = 514; + + SN_set_attr = AnsiString('set-attr'); + NID_set_attr = 515; + + SN_set_policy = AnsiString('set-policy'); + NID_set_policy = 516; + + SN_set_certExt = AnsiString('set-certExt'); + LN_set_certExt = AnsiString('certificate extensions'); + NID_set_certExt = 517; + + SN_set_brand = AnsiString('set-brand'); + NID_set_brand = 518; + + SN_setct_PANData = AnsiString('setct-PANData'); + NID_setct_PANData = 519; + + SN_setct_PANToken = AnsiString('setct-PANToken'); + NID_setct_PANToken = 520; + + SN_setct_PANOnly = AnsiString('setct-PANOnly'); + NID_setct_PANOnly = 521; + + SN_setct_OIData = AnsiString('setct-OIData'); + NID_setct_OIData = 522; + + SN_setct_PI = AnsiString('setct-PI'); + NID_setct_PI = 523; + + SN_setct_PIData = AnsiString('setct-PIData'); + NID_setct_PIData = 524; + + SN_setct_PIDataUnsigned = AnsiString('setct-PIDataUnsigned'); + NID_setct_PIDataUnsigned = 525; + + SN_setct_HODInput = AnsiString('setct-HODInput'); + NID_setct_HODInput = 526; + + SN_setct_AuthResBaggage = AnsiString('setct-AuthResBaggage'); + NID_setct_AuthResBaggage = 527; + + SN_setct_AuthRevReqBaggage = AnsiString('setct-AuthRevReqBaggage'); + NID_setct_AuthRevReqBaggage = 528; + + SN_setct_AuthRevResBaggage = AnsiString('setct-AuthRevResBaggage'); + NID_setct_AuthRevResBaggage = 529; + + SN_setct_CapTokenSeq = AnsiString('setct-CapTokenSeq'); + NID_setct_CapTokenSeq = 530; + + SN_setct_PInitResData = AnsiString('setct-PInitResData'); + NID_setct_PInitResData = 531; + + SN_setct_PI_TBS = AnsiString('setct-PI-TBS'); + NID_setct_PI_TBS = 532; + + SN_setct_PResData = AnsiString('setct-PResData'); + NID_setct_PResData = 533; + + SN_setct_AuthReqTBS = AnsiString('setct-AuthReqTBS'); + NID_setct_AuthReqTBS = 534; + + SN_setct_AuthResTBS = AnsiString('setct-AuthResTBS'); + NID_setct_AuthResTBS = 535; + + SN_setct_AuthResTBSX = AnsiString('setct-AuthResTBSX'); + NID_setct_AuthResTBSX = 536; + + SN_setct_AuthTokenTBS = AnsiString('setct-AuthTokenTBS'); + NID_setct_AuthTokenTBS = 537; + + SN_setct_CapTokenData = AnsiString('setct-CapTokenData'); + NID_setct_CapTokenData = 538; + + SN_setct_CapTokenTBS = AnsiString('setct-CapTokenTBS'); + NID_setct_CapTokenTBS = 539; + + SN_setct_AcqCardCodeMsg = AnsiString('setct-AcqCardCodeMsg'); + NID_setct_AcqCardCodeMsg = 540; + + SN_setct_AuthRevReqTBS = AnsiString('setct-AuthRevReqTBS'); + NID_setct_AuthRevReqTBS = 541; + + SN_setct_AuthRevResData = AnsiString('setct-AuthRevResData'); + NID_setct_AuthRevResData = 542; + + SN_setct_AuthRevResTBS = AnsiString('setct-AuthRevResTBS'); + NID_setct_AuthRevResTBS = 543; + + SN_setct_CapReqTBS = AnsiString('setct-CapReqTBS'); + NID_setct_CapReqTBS = 544; + + SN_setct_CapReqTBSX = AnsiString('setct-CapReqTBSX'); + NID_setct_CapReqTBSX = 545; + + SN_setct_CapResData = AnsiString('setct-CapResData'); + NID_setct_CapResData = 546; + + SN_setct_CapRevReqTBS = AnsiString('setct-CapRevReqTBS'); + NID_setct_CapRevReqTBS = 547; + + SN_setct_CapRevReqTBSX = AnsiString('setct-CapRevReqTBSX'); + NID_setct_CapRevReqTBSX = 548; + + SN_setct_CapRevResData = AnsiString('setct-CapRevResData'); + NID_setct_CapRevResData = 549; + + SN_setct_CredReqTBS = AnsiString('setct-CredReqTBS'); + NID_setct_CredReqTBS = 550; + + SN_setct_CredReqTBSX = AnsiString('setct-CredReqTBSX'); + NID_setct_CredReqTBSX = 551; + + SN_setct_CredResData = AnsiString('setct-CredResData'); + NID_setct_CredResData = 552; + + SN_setct_CredRevReqTBS = AnsiString('setct-CredRevReqTBS'); + NID_setct_CredRevReqTBS = 553; + + SN_setct_CredRevReqTBSX = AnsiString('setct-CredRevReqTBSX'); + NID_setct_CredRevReqTBSX = 554; + + SN_setct_CredRevResData = AnsiString('setct-CredRevResData'); + NID_setct_CredRevResData = 555; + + SN_setct_PCertReqData = AnsiString('setct-PCertReqData'); + NID_setct_PCertReqData = 556; + + SN_setct_PCertResTBS = AnsiString('setct-PCertResTBS'); + NID_setct_PCertResTBS = 557; + + SN_setct_BatchAdminReqData = AnsiString('setct-BatchAdminReqData'); + NID_setct_BatchAdminReqData = 558; + + SN_setct_BatchAdminResData = AnsiString('setct-BatchAdminResData'); + NID_setct_BatchAdminResData = 559; + + SN_setct_CardCInitResTBS = AnsiString('setct-CardCInitResTBS'); + NID_setct_CardCInitResTBS = 560; + + SN_setct_MeAqCInitResTBS = AnsiString('setct-MeAqCInitResTBS'); + NID_setct_MeAqCInitResTBS = 561; + + SN_setct_RegFormResTBS = AnsiString('setct-RegFormResTBS'); + NID_setct_RegFormResTBS = 562; + + SN_setct_CertReqData = AnsiString('setct-CertReqData'); + NID_setct_CertReqData = 563; + + SN_setct_CertReqTBS = AnsiString('setct-CertReqTBS'); + NID_setct_CertReqTBS = 564; + + SN_setct_CertResData = AnsiString('setct-CertResData'); + NID_setct_CertResData = 565; + + SN_setct_CertInqReqTBS = AnsiString('setct-CertInqReqTBS'); + NID_setct_CertInqReqTBS = 566; + + SN_setct_ErrorTBS = AnsiString('setct-ErrorTBS'); + NID_setct_ErrorTBS = 567; + + SN_setct_PIDualSignedTBE = AnsiString('setct-PIDualSignedTBE'); + NID_setct_PIDualSignedTBE = 568; + + SN_setct_PIUnsignedTBE = AnsiString('setct-PIUnsignedTBE'); + NID_setct_PIUnsignedTBE = 569; + + SN_setct_AuthReqTBE = AnsiString('setct-AuthReqTBE'); + NID_setct_AuthReqTBE = 570; + + SN_setct_AuthResTBE = AnsiString('setct-AuthResTBE'); + NID_setct_AuthResTBE = 571; + + SN_setct_AuthResTBEX = AnsiString('setct-AuthResTBEX'); + NID_setct_AuthResTBEX = 572; + + SN_setct_AuthTokenTBE = AnsiString('setct-AuthTokenTBE'); + NID_setct_AuthTokenTBE = 573; + + SN_setct_CapTokenTBE = AnsiString('setct-CapTokenTBE'); + NID_setct_CapTokenTBE = 574; + + SN_setct_CapTokenTBEX = AnsiString('setct-CapTokenTBEX'); + NID_setct_CapTokenTBEX = 575; + + SN_setct_AcqCardCodeMsgTBE = AnsiString('setct-AcqCardCodeMsgTBE'); + NID_setct_AcqCardCodeMsgTBE = 576; + + SN_setct_AuthRevReqTBE = AnsiString('setct-AuthRevReqTBE'); + NID_setct_AuthRevReqTBE = 577; + + SN_setct_AuthRevResTBE = AnsiString('setct-AuthRevResTBE'); + NID_setct_AuthRevResTBE = 578; + + SN_setct_AuthRevResTBEB = AnsiString('setct-AuthRevResTBEB'); + NID_setct_AuthRevResTBEB = 579; + + SN_setct_CapReqTBE = AnsiString('setct-CapReqTBE'); + NID_setct_CapReqTBE = 580; + + SN_setct_CapReqTBEX = AnsiString('setct-CapReqTBEX'); + NID_setct_CapReqTBEX = 581; + + SN_setct_CapResTBE = AnsiString('setct-CapResTBE'); + NID_setct_CapResTBE = 582; + + SN_setct_CapRevReqTBE = AnsiString('setct-CapRevReqTBE'); + NID_setct_CapRevReqTBE = 583; + + SN_setct_CapRevReqTBEX = AnsiString('setct-CapRevReqTBEX'); + NID_setct_CapRevReqTBEX = 584; + + SN_setct_CapRevResTBE = AnsiString('setct-CapRevResTBE'); + NID_setct_CapRevResTBE = 585; + + SN_setct_CredReqTBE = AnsiString('setct-CredReqTBE'); + NID_setct_CredReqTBE = 586; + + SN_setct_CredReqTBEX = AnsiString('setct-CredReqTBEX'); + NID_setct_CredReqTBEX = 587; + + SN_setct_CredResTBE = AnsiString('setct-CredResTBE'); + NID_setct_CredResTBE = 588; + + SN_setct_CredRevReqTBE = AnsiString('setct-CredRevReqTBE'); + NID_setct_CredRevReqTBE = 589; + + SN_setct_CredRevReqTBEX = AnsiString('setct-CredRevReqTBEX'); + NID_setct_CredRevReqTBEX = 590; + + SN_setct_CredRevResTBE = AnsiString('setct-CredRevResTBE'); + NID_setct_CredRevResTBE = 591; + + SN_setct_BatchAdminReqTBE = AnsiString('setct-BatchAdminReqTBE'); + NID_setct_BatchAdminReqTBE = 592; + + SN_setct_BatchAdminResTBE = AnsiString('setct-BatchAdminResTBE'); + NID_setct_BatchAdminResTBE = 593; + + SN_setct_RegFormReqTBE = AnsiString('setct-RegFormReqTBE'); + NID_setct_RegFormReqTBE = 594; + + SN_setct_CertReqTBE = AnsiString('setct-CertReqTBE'); + NID_setct_CertReqTBE = 595; + + SN_setct_CertReqTBEX = AnsiString('setct-CertReqTBEX'); + NID_setct_CertReqTBEX = 596; + + SN_setct_CertResTBE = AnsiString('setct-CertResTBE'); + NID_setct_CertResTBE = 597; + + SN_setct_CRLNotificationTBS = AnsiString('setct-CRLNotificationTBS'); + NID_setct_CRLNotificationTBS = 598; + + SN_setct_CRLNotificationResTBS = AnsiString('setct-CRLNotificationResTBS'); + NID_setct_CRLNotificationResTBS = 599; + + SN_setct_BCIDistributionTBS = AnsiString('setct-BCIDistributionTBS'); + NID_setct_BCIDistributionTBS = 600; + + SN_setext_genCrypt = AnsiString('setext-genCrypt'); + LN_setext_genCrypt = AnsiString('generic cryptogram'); + NID_setext_genCrypt = 601; + + SN_setext_miAuth = AnsiString('setext-miAuth'); + LN_setext_miAuth = AnsiString('merchant initiated auth'); + NID_setext_miAuth = 602; + + SN_setext_pinSecure = AnsiString('setext-pinSecure'); + NID_setext_pinSecure = 603; + + SN_setext_pinAny = AnsiString('setext-pinAny'); + NID_setext_pinAny = 604; + + SN_setext_track2 = AnsiString('setext-track2'); + NID_setext_track2 = 605; + + SN_setext_cv = AnsiString('setext-cv'); + LN_setext_cv = AnsiString('additional verification'); + NID_setext_cv = 606; + + SN_set_policy_root = AnsiString('set-policy-root'); + NID_set_policy_root = 607; + + SN_setCext_hashedRoot = AnsiString('setCext-hashedRoot'); + NID_setCext_hashedRoot = 608; + + SN_setCext_certType = AnsiString('setCext-certType'); + NID_setCext_certType = 609; + + SN_setCext_merchData = AnsiString('setCext-merchData'); + NID_setCext_merchData = 610; + + SN_setCext_cCertRequired = AnsiString('setCext-cCertRequired'); + NID_setCext_cCertRequired = 611; + + SN_setCext_tunneling = AnsiString('setCext-tunneling'); + NID_setCext_tunneling = 612; + + SN_setCext_setExt = AnsiString('setCext-setExt'); + NID_setCext_setExt = 613; + + SN_setCext_setQualf = AnsiString('setCext-setQualf'); + NID_setCext_setQualf = 614; + + SN_setCext_PGWYcapabilities = AnsiString('setCext-PGWYcapabilities'); + NID_setCext_PGWYcapabilities = 615; + + SN_setCext_TokenIdentifier = AnsiString('setCext-TokenIdentifier'); + NID_setCext_TokenIdentifier = 616; + + SN_setCext_Track2Data = AnsiString('setCext-Track2Data'); + NID_setCext_Track2Data = 617; + + SN_setCext_TokenType = AnsiString('setCext-TokenType'); + NID_setCext_TokenType = 618; + + SN_setCext_IssuerCapabilities = AnsiString('setCext-IssuerCapabilities'); + NID_setCext_IssuerCapabilities = 619; + + SN_setAttr_Cert = AnsiString('setAttr-Cert'); + NID_setAttr_Cert = 620; + + SN_setAttr_PGWYcap = AnsiString('setAttr-PGWYcap'); + LN_setAttr_PGWYcap = AnsiString('payment gateway capabilities'); + NID_setAttr_PGWYcap = 621; + + SN_setAttr_TokenType = AnsiString('setAttr-TokenType'); + NID_setAttr_TokenType = 622; + + SN_setAttr_IssCap = AnsiString('setAttr-IssCap'); + LN_setAttr_IssCap = AnsiString('issuer capabilities'); + NID_setAttr_IssCap = 623; + + SN_set_rootKeyThumb = AnsiString('set-rootKeyThumb'); + NID_set_rootKeyThumb = 624; + + SN_set_addPolicy = AnsiString('set-addPolicy'); + NID_set_addPolicy = 625; + + SN_setAttr_Token_EMV = AnsiString('setAttr-Token-EMV'); + NID_setAttr_Token_EMV = 626; + + SN_setAttr_Token_B0Prime = AnsiString('setAttr-Token-B0Prime'); + NID_setAttr_Token_B0Prime = 627; + + SN_setAttr_IssCap_CVM = AnsiString('setAttr-IssCap-CVM'); + NID_setAttr_IssCap_CVM = 628; + + SN_setAttr_IssCap_T2 = AnsiString('setAttr-IssCap-T2'); + NID_setAttr_IssCap_T2 = 629; + + SN_setAttr_IssCap_Sig = AnsiString('setAttr-IssCap-Sig'); + NID_setAttr_IssCap_Sig = 630; + + SN_setAttr_GenCryptgrm = AnsiString('setAttr-GenCryptgrm'); + LN_setAttr_GenCryptgrm = AnsiString('generate cryptogram'); + NID_setAttr_GenCryptgrm = 631; + + SN_setAttr_T2Enc = AnsiString('setAttr-T2Enc'); + LN_setAttr_T2Enc = AnsiString('encrypted track 2'); + NID_setAttr_T2Enc = 632; + + SN_setAttr_T2cleartxt = AnsiString('setAttr-T2cleartxt'); + LN_setAttr_T2cleartxt = AnsiString('cleartext track 2'); + NID_setAttr_T2cleartxt = 633; + + SN_setAttr_TokICCsig = AnsiString('setAttr-TokICCsig'); + LN_setAttr_TokICCsig = AnsiString('ICC or token signature'); + NID_setAttr_TokICCsig = 634; + + SN_setAttr_SecDevSig = AnsiString('setAttr-SecDevSig'); + LN_setAttr_SecDevSig = AnsiString('secure device signature'); + NID_setAttr_SecDevSig = 635; + + SN_set_brand_IATA_ATA = AnsiString('set-brand-IATA-ATA'); + NID_set_brand_IATA_ATA = 636; + + SN_set_brand_Diners = AnsiString('set-brand-Diners'); + NID_set_brand_Diners = 637; + + SN_set_brand_AmericanExpress = AnsiString('set-brand-AmericanExpress'); + NID_set_brand_AmericanExpress = 638; + + SN_set_brand_JCB = AnsiString('set-brand-JCB'); + NID_set_brand_JCB = 639; + + SN_set_brand_Visa = AnsiString('set-brand-Visa'); + NID_set_brand_Visa = 640; + + SN_set_brand_MasterCard = AnsiString('set-brand-MasterCard'); + NID_set_brand_MasterCard = 641; + + SN_set_brand_Novus = AnsiString('set-brand-Novus'); + NID_set_brand_Novus = 642; + + SN_des_cdmf = AnsiString('DES-CDMF'); + LN_des_cdmf = AnsiString('des-cdmf'); + NID_des_cdmf = 643; + + SN_rsaOAEPEncryptionSET = AnsiString('rsaOAEPEncryptionSET'); + NID_rsaOAEPEncryptionSET = 644; + + SN_ipsec3 = AnsiString('Oakley-EC2N-3'); + LN_ipsec3 = AnsiString('ipsec3'); + NID_ipsec3 = 749; + + SN_ipsec4 = AnsiString('Oakley-EC2N-4'); + LN_ipsec4 = AnsiString('ipsec4'); + NID_ipsec4 = 750; + + SN_whirlpool = AnsiString('whirlpool'); + NID_whirlpool = 804; + + SN_cryptopro = AnsiString('cryptopro'); + NID_cryptopro = 805; + + SN_cryptocom = AnsiString('cryptocom'); + NID_cryptocom = 806; + + SN_id_tc26 = AnsiString('id-tc26'); + NID_id_tc26 = 974; + + SN_id_GostR3411_94_with_GostR3410_2001 = AnsiString('id-GostR3411-94-with-GostR3410-2001'); + LN_id_GostR3411_94_with_GostR3410_2001 = AnsiString('GOST R 34.11-94 with GOST R 34.10-2001'); + NID_id_GostR3411_94_with_GostR3410_2001 = 807; + + SN_id_GostR3411_94_with_GostR3410_94 = AnsiString('id-GostR3411-94-with-GostR3410-94'); + LN_id_GostR3411_94_with_GostR3410_94 = AnsiString('GOST R 34.11-94 with GOST R 34.10-94'); + NID_id_GostR3411_94_with_GostR3410_94 = 808; + + SN_id_GostR3411_94 = AnsiString('md_gost94'); + LN_id_GostR3411_94 = AnsiString('GOST R 34.11-94'); + NID_id_GostR3411_94 = 809; + + SN_id_HMACGostR3411_94 = AnsiString('id-HMACGostR3411-94'); + LN_id_HMACGostR3411_94 = AnsiString('HMAC GOST 34.11-94'); + NID_id_HMACGostR3411_94 = 810; + + SN_id_GostR3410_2001 = AnsiString('gost2001'); + LN_id_GostR3410_2001 = AnsiString('GOST R 34.10-2001'); + NID_id_GostR3410_2001 = 811; + + SN_id_GostR3410_94 = AnsiString('gost94'); + LN_id_GostR3410_94 = AnsiString('GOST R 34.10-94'); + NID_id_GostR3410_94 = 812; + + SN_id_Gost28147_89 = AnsiString('gost89'); + LN_id_Gost28147_89 = AnsiString('GOST 28147-89'); + NID_id_Gost28147_89 = 813; + + SN_gost89_cnt = AnsiString('gost89-cnt'); + NID_gost89_cnt = 814; + + SN_gost89_cnt_12 = AnsiString('gost89-cnt-12'); + NID_gost89_cnt_12 = 975; + + SN_gost89_cbc = AnsiString('gost89-cbc'); + NID_gost89_cbc = 1009; + + SN_gost89_ecb = AnsiString('gost89-ecb'); + NID_gost89_ecb = 1010; + + SN_gost89_ctr = AnsiString('gost89-ctr'); + NID_gost89_ctr = 1011; + + SN_id_Gost28147_89_MAC = AnsiString('gost-mac'); + LN_id_Gost28147_89_MAC = AnsiString('GOST 28147-89 MAC'); + NID_id_Gost28147_89_MAC = 815; + + SN_gost_mac_12 = AnsiString('gost-mac-12'); + NID_gost_mac_12 = 976; + + SN_id_GostR3411_94_prf = AnsiString('prf-gostr3411-94'); + LN_id_GostR3411_94_prf = AnsiString('GOST R 34.11-94 PRF'); + NID_id_GostR3411_94_prf = 816; + + SN_id_GostR3410_2001DH = AnsiString('id-GostR3410-2001DH'); + LN_id_GostR3410_2001DH = AnsiString('GOST R 34.10-2001 DH'); + NID_id_GostR3410_2001DH = 817; + + SN_id_GostR3410_94DH = AnsiString('id-GostR3410-94DH'); + LN_id_GostR3410_94DH = AnsiString('GOST R 34.10-94 DH'); + NID_id_GostR3410_94DH = 818; + + SN_id_Gost28147_89_CryptoPro_KeyMeshing = AnsiString('id-Gost28147-89-CryptoPro-KeyMeshing'); + NID_id_Gost28147_89_CryptoPro_KeyMeshing = 819; + + SN_id_Gost28147_89_None_KeyMeshing = AnsiString('id-Gost28147-89-None-KeyMeshing'); + NID_id_Gost28147_89_None_KeyMeshing = 820; + + SN_id_GostR3411_94_TestParamSet = AnsiString('id-GostR3411-94-TestParamSet'); + NID_id_GostR3411_94_TestParamSet = 821; + + SN_id_GostR3411_94_CryptoProParamSet = AnsiString('id-GostR3411-94-CryptoProParamSet'); + NID_id_GostR3411_94_CryptoProParamSet = 822; + + SN_id_Gost28147_89_TestParamSet = AnsiString('id-Gost28147-89-TestParamSet'); + NID_id_Gost28147_89_TestParamSet = 823; + + SN_id_Gost28147_89_CryptoPro_A_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-A-ParamSet'); + NID_id_Gost28147_89_CryptoPro_A_ParamSet = 824; + + SN_id_Gost28147_89_CryptoPro_B_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-B-ParamSet'); + NID_id_Gost28147_89_CryptoPro_B_ParamSet = 825; + + SN_id_Gost28147_89_CryptoPro_C_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-C-ParamSet'); + NID_id_Gost28147_89_CryptoPro_C_ParamSet = 826; + + SN_id_Gost28147_89_CryptoPro_D_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-D-ParamSet'); + NID_id_Gost28147_89_CryptoPro_D_ParamSet = 827; + + SN_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-Oscar-1-1-ParamSet'); + NID_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet = 828; + + SN_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-Oscar-1-0-ParamSet'); + NID_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet = 829; + + SN_id_Gost28147_89_CryptoPro_RIC_1_ParamSet = AnsiString('id-Gost28147-89-CryptoPro-RIC-1-ParamSet'); + NID_id_Gost28147_89_CryptoPro_RIC_1_ParamSet = 830; + + SN_id_GostR3410_94_TestParamSet = AnsiString('id-GostR3410-94-TestParamSet'); + NID_id_GostR3410_94_TestParamSet = 831; + + SN_id_GostR3410_94_CryptoPro_A_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-A-ParamSet'); + NID_id_GostR3410_94_CryptoPro_A_ParamSet = 832; + + SN_id_GostR3410_94_CryptoPro_B_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-B-ParamSet'); + NID_id_GostR3410_94_CryptoPro_B_ParamSet = 833; + + SN_id_GostR3410_94_CryptoPro_C_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-C-ParamSet'); + NID_id_GostR3410_94_CryptoPro_C_ParamSet = 834; + + SN_id_GostR3410_94_CryptoPro_D_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-D-ParamSet'); + NID_id_GostR3410_94_CryptoPro_D_ParamSet = 835; + + SN_id_GostR3410_94_CryptoPro_XchA_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-XchA-ParamSet'); + NID_id_GostR3410_94_CryptoPro_XchA_ParamSet = 836; + + SN_id_GostR3410_94_CryptoPro_XchB_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-XchB-ParamSet'); + NID_id_GostR3410_94_CryptoPro_XchB_ParamSet = 837; + + SN_id_GostR3410_94_CryptoPro_XchC_ParamSet = AnsiString('id-GostR3410-94-CryptoPro-XchC-ParamSet'); + NID_id_GostR3410_94_CryptoPro_XchC_ParamSet = 838; + + SN_id_GostR3410_2001_TestParamSet = AnsiString('id-GostR3410-2001-TestParamSet'); + NID_id_GostR3410_2001_TestParamSet = 839; + + SN_id_GostR3410_2001_CryptoPro_A_ParamSet = AnsiString('id-GostR3410-2001-CryptoPro-A-ParamSet'); + NID_id_GostR3410_2001_CryptoPro_A_ParamSet = 840; + + SN_id_GostR3410_2001_CryptoPro_B_ParamSet = AnsiString('id-GostR3410-2001-CryptoPro-B-ParamSet'); + NID_id_GostR3410_2001_CryptoPro_B_ParamSet = 841; + + SN_id_GostR3410_2001_CryptoPro_C_ParamSet = AnsiString('id-GostR3410-2001-CryptoPro-C-ParamSet'); + NID_id_GostR3410_2001_CryptoPro_C_ParamSet = 842; + + SN_id_GostR3410_2001_CryptoPro_XchA_ParamSet = AnsiString('id-GostR3410-2001-CryptoPro-XchA-ParamSet'); + NID_id_GostR3410_2001_CryptoPro_XchA_ParamSet = 843; + + SN_id_GostR3410_2001_CryptoPro_XchB_ParamSet = AnsiString('id-GostR3410-2001-CryptoPro-XchB-ParamSet'); + NID_id_GostR3410_2001_CryptoPro_XchB_ParamSet = 844; + + SN_id_GostR3410_94_a = AnsiString('id-GostR3410-94-a'); + NID_id_GostR3410_94_a = 845; + + SN_id_GostR3410_94_aBis = AnsiString('id-GostR3410-94-aBis'); + NID_id_GostR3410_94_aBis = 846; + + SN_id_GostR3410_94_b = AnsiString('id-GostR3410-94-b'); + NID_id_GostR3410_94_b = 847; + + SN_id_GostR3410_94_bBis = AnsiString('id-GostR3410-94-bBis'); + NID_id_GostR3410_94_bBis = 848; + + SN_id_Gost28147_89_cc = AnsiString('id-Gost28147-89-cc'); + LN_id_Gost28147_89_cc = AnsiString('GOST 28147-89 Cryptocom ParamSet'); + NID_id_Gost28147_89_cc = 849; + + SN_id_GostR3410_94_cc = AnsiString('gost94cc'); + LN_id_GostR3410_94_cc = AnsiString('GOST 34.10-94 Cryptocom'); + NID_id_GostR3410_94_cc = 850; + + SN_id_GostR3410_2001_cc = AnsiString('gost2001cc'); + LN_id_GostR3410_2001_cc = AnsiString('GOST 34.10-2001 Cryptocom'); + NID_id_GostR3410_2001_cc = 851; + + SN_id_GostR3411_94_with_GostR3410_94_cc = AnsiString('id-GostR3411-94-with-GostR3410-94-cc'); + LN_id_GostR3411_94_with_GostR3410_94_cc = AnsiString('GOST R 34.11-94 with GOST R 34.10-94 Cryptocom'); + NID_id_GostR3411_94_with_GostR3410_94_cc = 852; + + SN_id_GostR3411_94_with_GostR3410_2001_cc = AnsiString('id-GostR3411-94-with-GostR3410-2001-cc'); + LN_id_GostR3411_94_with_GostR3410_2001_cc = AnsiString('GOST R 34.11-94 with GOST R 34.10-2001 Cryptocom'); + NID_id_GostR3411_94_with_GostR3410_2001_cc = 853; + + SN_id_GostR3410_2001_ParamSet_cc = AnsiString('id-GostR3410-2001-ParamSet-cc'); + LN_id_GostR3410_2001_ParamSet_cc = AnsiString('GOST R 3410-2001 Parameter Set Cryptocom'); + NID_id_GostR3410_2001_ParamSet_cc = 854; + + SN_id_tc26_algorithms = AnsiString('id-tc26-algorithms'); + NID_id_tc26_algorithms = 977; + + SN_id_tc26_sign = AnsiString('id-tc26-sign'); + NID_id_tc26_sign = 978; + + SN_id_GostR3410_2012_256 = AnsiString('gost2012_256'); + LN_id_GostR3410_2012_256 = AnsiString('GOST R 34.10-2012 with 256 bit modulus'); + NID_id_GostR3410_2012_256 = 979; + + SN_id_GostR3410_2012_512 = AnsiString('gost2012_512'); + LN_id_GostR3410_2012_512 = AnsiString('GOST R 34.10-2012 with 512 bit modulus'); + NID_id_GostR3410_2012_512 = 980; + + SN_id_tc26_digest = AnsiString('id-tc26-digest'); + NID_id_tc26_digest = 981; + + SN_id_GostR3411_2012_256 = AnsiString('md_gost12_256'); + LN_id_GostR3411_2012_256 = AnsiString('GOST R 34.11-2012 with 256 bit hash'); + NID_id_GostR3411_2012_256 = 982; + + SN_id_GostR3411_2012_512 = AnsiString('md_gost12_512'); + LN_id_GostR3411_2012_512 = AnsiString('GOST R 34.11-2012 with 512 bit hash'); + NID_id_GostR3411_2012_512 = 983; + + SN_id_tc26_signwithdigest = AnsiString('id-tc26-signwithdigest'); + NID_id_tc26_signwithdigest = 984; + + SN_id_tc26_signwithdigest_gost3410_2012_256 = AnsiString('id-tc26-signwithdigest-gost3410-2012-256'); + LN_id_tc26_signwithdigest_gost3410_2012_256 = AnsiString('GOST R 34.10-2012 with GOST R 34.11-2012(256 bit)'); + NID_id_tc26_signwithdigest_gost3410_2012_256 = 985; + + SN_id_tc26_signwithdigest_gost3410_2012_512 = AnsiString('id-tc26-signwithdigest-gost3410-2012-512'); + LN_id_tc26_signwithdigest_gost3410_2012_512 = AnsiString('GOST R 34.10-2012 with GOST R 34.11-2012(512 bit)'); + NID_id_tc26_signwithdigest_gost3410_2012_512 = 986; + + SN_id_tc26_mac = AnsiString('id-tc26-mac'); + NID_id_tc26_mac = 987; + + SN_id_tc26_hmac_gost_3411_2012_256 = AnsiString('id-tc26-hmac-gost-3411-2012-256'); + LN_id_tc26_hmac_gost_3411_2012_256 = AnsiString('HMAC GOST 34.11-2012 256 bit'); + NID_id_tc26_hmac_gost_3411_2012_256 = 988; + + SN_id_tc26_hmac_gost_3411_2012_512 = AnsiString('id-tc26-hmac-gost-3411-2012-512'); + LN_id_tc26_hmac_gost_3411_2012_512 = AnsiString('HMAC GOST 34.11-2012 512 bit'); + NID_id_tc26_hmac_gost_3411_2012_512 = 989; + + SN_id_tc26_cipher = AnsiString('id-tc26-cipher'); + NID_id_tc26_cipher = 990; + + SN_id_tc26_cipher_gostr3412_2015_magma = AnsiString('id-tc26-cipher-gostr3412-2015-magma'); + NID_id_tc26_cipher_gostr3412_2015_magma = 1173; + + SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm = AnsiString('id-tc26-cipher-gostr3412-2015-magma-ctracpkm'); + NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm = 1174; + + SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac = AnsiString('id-tc26-cipher-gostr3412-2015-magma-ctracpkm-omac'); + NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac = 1175; + + SN_id_tc26_cipher_gostr3412_2015_kuznyechik = AnsiString('id-tc26-cipher-gostr3412-2015-kuznyechik'); + NID_id_tc26_cipher_gostr3412_2015_kuznyechik = 1176; + + SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm = AnsiString('id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm'); + NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm = 1177; + + SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac = AnsiString('id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm-omac'); + NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac = 1178; + + SN_id_tc26_agreement = AnsiString('id-tc26-agreement'); + NID_id_tc26_agreement = 991; + + SN_id_tc26_agreement_gost_3410_2012_256 = AnsiString('id-tc26-agreement-gost-3410-2012-256'); + NID_id_tc26_agreement_gost_3410_2012_256 = 992; + + SN_id_tc26_agreement_gost_3410_2012_512 = AnsiString('id-tc26-agreement-gost-3410-2012-512'); + NID_id_tc26_agreement_gost_3410_2012_512 = 993; + + SN_id_tc26_wrap = AnsiString('id-tc26-wrap'); + NID_id_tc26_wrap = 1179; + + SN_id_tc26_wrap_gostr3412_2015_magma = AnsiString('id-tc26-wrap-gostr3412-2015-magma'); + NID_id_tc26_wrap_gostr3412_2015_magma = 1180; + + SN_id_tc26_wrap_gostr3412_2015_magma_kexp15 = AnsiString('id-tc26-wrap-gostr3412-2015-magma-kexp15'); + NID_id_tc26_wrap_gostr3412_2015_magma_kexp15 = 1181; + + SN_id_tc26_wrap_gostr3412_2015_kuznyechik = AnsiString('id-tc26-wrap-gostr3412-2015-kuznyechik'); + NID_id_tc26_wrap_gostr3412_2015_kuznyechik = 1182; + + SN_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 = AnsiString('id-tc26-wrap-gostr3412-2015-kuznyechik-kexp15'); + NID_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15 = 1183; + + SN_id_tc26_constants = AnsiString('id-tc26-constants'); + NID_id_tc26_constants = 994; + + SN_id_tc26_sign_constants = AnsiString('id-tc26-sign-constants'); + NID_id_tc26_sign_constants = 995; + + SN_id_tc26_gost_3410_2012_256_constants = AnsiString('id-tc26-gost-3410-2012-256-constants'); + NID_id_tc26_gost_3410_2012_256_constants = 1147; + + SN_id_tc26_gost_3410_2012_256_paramSetA = AnsiString('id-tc26-gost-3410-2012-256-paramSetA'); + LN_id_tc26_gost_3410_2012_256_paramSetA = AnsiString('GOST R 34.10-2012(256 bit)ParamSet A'); + NID_id_tc26_gost_3410_2012_256_paramSetA = 1148; + + SN_id_tc26_gost_3410_2012_256_paramSetB = AnsiString('id-tc26-gost-3410-2012-256-paramSetB'); + LN_id_tc26_gost_3410_2012_256_paramSetB = AnsiString('GOST R 34.10-2012(256 bit)ParamSet B'); + NID_id_tc26_gost_3410_2012_256_paramSetB = 1184; + + SN_id_tc26_gost_3410_2012_256_paramSetC = AnsiString('id-tc26-gost-3410-2012-256-paramSetC'); + LN_id_tc26_gost_3410_2012_256_paramSetC = AnsiString('GOST R 34.10-2012(256 bit)ParamSet C'); + NID_id_tc26_gost_3410_2012_256_paramSetC = 1185; + + SN_id_tc26_gost_3410_2012_256_paramSetD = AnsiString('id-tc26-gost-3410-2012-256-paramSetD'); + LN_id_tc26_gost_3410_2012_256_paramSetD = AnsiString('GOST R 34.10-2012(256 bit)ParamSet D'); + NID_id_tc26_gost_3410_2012_256_paramSetD = 1186; + + SN_id_tc26_gost_3410_2012_512_constants = AnsiString('id-tc26-gost-3410-2012-512-constants'); + NID_id_tc26_gost_3410_2012_512_constants = 996; + + SN_id_tc26_gost_3410_2012_512_paramSetTest = AnsiString('id-tc26-gost-3410-2012-512-paramSetTest'); + LN_id_tc26_gost_3410_2012_512_paramSetTest = AnsiString('GOST R 34.10-2012(512 bit)testing parameter set'); + NID_id_tc26_gost_3410_2012_512_paramSetTest = 997; + + SN_id_tc26_gost_3410_2012_512_paramSetA = AnsiString('id-tc26-gost-3410-2012-512-paramSetA'); + LN_id_tc26_gost_3410_2012_512_paramSetA = AnsiString('GOST R 34.10-2012(512 bit)ParamSet A'); + NID_id_tc26_gost_3410_2012_512_paramSetA = 998; + + SN_id_tc26_gost_3410_2012_512_paramSetB = AnsiString('id-tc26-gost-3410-2012-512-paramSetB'); + LN_id_tc26_gost_3410_2012_512_paramSetB = AnsiString('GOST R 34.10-2012(512 bit)ParamSet B'); + NID_id_tc26_gost_3410_2012_512_paramSetB = 999; + + SN_id_tc26_gost_3410_2012_512_paramSetC = AnsiString('id-tc26-gost-3410-2012-512-paramSetC'); + LN_id_tc26_gost_3410_2012_512_paramSetC = AnsiString('GOST R 34.10-2012(512 bit)ParamSet C'); + NID_id_tc26_gost_3410_2012_512_paramSetC = 1149; + + SN_id_tc26_digest_constants = AnsiString('id-tc26-digest-constants'); + NID_id_tc26_digest_constants = 1000; + + SN_id_tc26_cipher_constants = AnsiString('id-tc26-cipher-constants'); + NID_id_tc26_cipher_constants = 1001; + + SN_id_tc26_gost_28147_constants = AnsiString('id-tc26-gost-28147-constants'); + NID_id_tc26_gost_28147_constants = 1002; + + SN_id_tc26_gost_28147_param_Z = AnsiString('id-tc26-gost-28147-param-Z'); + LN_id_tc26_gost_28147_param_Z = AnsiString('GOST 28147-89 TC26 parameter set'); + NID_id_tc26_gost_28147_param_Z = 1003; + + SN_INN = AnsiString('INN'); + LN_INN = AnsiString('INN'); + NID_INN = 1004; + + SN_OGRN = AnsiString('OGRN'); + LN_OGRN = AnsiString('OGRN'); + NID_OGRN = 1005; + + SN_SNILS = AnsiString('SNILS'); + LN_SNILS = AnsiString('SNILS'); + NID_SNILS = 1006; + + SN_subjectSignTool = AnsiString('subjectSignTool'); + LN_subjectSignTool = AnsiString('Signing Tool of Subject'); + NID_subjectSignTool = 1007; + + SN_issuerSignTool = AnsiString('issuerSignTool'); + LN_issuerSignTool = AnsiString('Signing Tool of Issuer'); + NID_issuerSignTool = 1008; + + SN_grasshopper_ecb = AnsiString('grasshopper-ecb'); + NID_grasshopper_ecb = 1012; + + SN_grasshopper_ctr = AnsiString('grasshopper-ctr'); + NID_grasshopper_ctr = 1013; + + SN_grasshopper_ofb = AnsiString('grasshopper-ofb'); + NID_grasshopper_ofb = 1014; + + SN_grasshopper_cbc = AnsiString('grasshopper-cbc'); + NID_grasshopper_cbc = 1015; + + SN_grasshopper_cfb = AnsiString('grasshopper-cfb'); + NID_grasshopper_cfb = 1016; + + SN_grasshopper_mac = AnsiString('grasshopper-mac'); + NID_grasshopper_mac = 1017; + + SN_magma_ecb = AnsiString('magma-ecb'); + NID_magma_ecb = 1187; + + SN_magma_ctr = AnsiString('magma-ctr'); + NID_magma_ctr = 1188; + + SN_magma_ofb = AnsiString('magma-ofb'); + NID_magma_ofb = 1189; + + SN_magma_cbc = AnsiString('magma-cbc'); + NID_magma_cbc = 1190; + + SN_magma_cfb = AnsiString('magma-cfb'); + NID_magma_cfb = 1191; + + SN_magma_mac = AnsiString('magma-mac'); + NID_magma_mac = 1192; + + SN_camellia_128_cbc = AnsiString('CAMELLIA-128-CBC'); + LN_camellia_128_cbc = AnsiString('camellia-128-cbc'); + NID_camellia_128_cbc = 751; + + SN_camellia_192_cbc = AnsiString('CAMELLIA-192-CBC'); + LN_camellia_192_cbc = AnsiString('camellia-192-cbc'); + NID_camellia_192_cbc = 752; + + SN_camellia_256_cbc = AnsiString('CAMELLIA-256-CBC'); + LN_camellia_256_cbc = AnsiString('camellia-256-cbc'); + NID_camellia_256_cbc = 753; + + SN_id_camellia128_wrap = AnsiString('id-camellia128-wrap'); + NID_id_camellia128_wrap = 907; + + SN_id_camellia192_wrap = AnsiString('id-camellia192-wrap'); + NID_id_camellia192_wrap = 908; + + SN_id_camellia256_wrap = AnsiString('id-camellia256-wrap'); + NID_id_camellia256_wrap = 909; + + SN_camellia_128_ecb = AnsiString('CAMELLIA-128-ECB'); + LN_camellia_128_ecb = AnsiString('camellia-128-ecb'); + NID_camellia_128_ecb = 754; + + SN_camellia_128_ofb128 = AnsiString('CAMELLIA-128-OFB'); + LN_camellia_128_ofb128 = AnsiString('camellia-128-ofb'); + NID_camellia_128_ofb128 = 766; + + SN_camellia_128_cfb128 = AnsiString('CAMELLIA-128-CFB'); + LN_camellia_128_cfb128 = AnsiString('camellia-128-cfb'); + NID_camellia_128_cfb128 = 757; + + SN_camellia_128_gcm = AnsiString('CAMELLIA-128-GCM'); + LN_camellia_128_gcm = AnsiString('camellia-128-gcm'); + NID_camellia_128_gcm = 961; + + SN_camellia_128_ccm = AnsiString('CAMELLIA-128-CCM'); + LN_camellia_128_ccm = AnsiString('camellia-128-ccm'); + NID_camellia_128_ccm = 962; + + SN_camellia_128_ctr = AnsiString('CAMELLIA-128-CTR'); + LN_camellia_128_ctr = AnsiString('camellia-128-ctr'); + NID_camellia_128_ctr = 963; + + SN_camellia_128_cmac = AnsiString('CAMELLIA-128-CMAC'); + LN_camellia_128_cmac = AnsiString('camellia-128-cmac'); + NID_camellia_128_cmac = 964; + + SN_camellia_192_ecb = AnsiString('CAMELLIA-192-ECB'); + LN_camellia_192_ecb = AnsiString('camellia-192-ecb'); + NID_camellia_192_ecb = 755; + + SN_camellia_192_ofb128 = AnsiString('CAMELLIA-192-OFB'); + LN_camellia_192_ofb128 = AnsiString('camellia-192-ofb'); + NID_camellia_192_ofb128 = 767; + + SN_camellia_192_cfb128 = AnsiString('CAMELLIA-192-CFB'); + LN_camellia_192_cfb128 = AnsiString('camellia-192-cfb'); + NID_camellia_192_cfb128 = 758; + + SN_camellia_192_gcm = AnsiString('CAMELLIA-192-GCM'); + LN_camellia_192_gcm = AnsiString('camellia-192-gcm'); + NID_camellia_192_gcm = 965; + + SN_camellia_192_ccm = AnsiString('CAMELLIA-192-CCM'); + LN_camellia_192_ccm = AnsiString('camellia-192-ccm'); + NID_camellia_192_ccm = 966; + + SN_camellia_192_ctr = AnsiString('CAMELLIA-192-CTR'); + LN_camellia_192_ctr = AnsiString('camellia-192-ctr'); + NID_camellia_192_ctr = 967; + + SN_camellia_192_cmac = AnsiString('CAMELLIA-192-CMAC'); + LN_camellia_192_cmac = AnsiString('camellia-192-cmac'); + NID_camellia_192_cmac = 968; + + SN_camellia_256_ecb = AnsiString('CAMELLIA-256-ECB'); + LN_camellia_256_ecb = AnsiString('camellia-256-ecb'); + NID_camellia_256_ecb = 756; + + SN_camellia_256_ofb128 = AnsiString('CAMELLIA-256-OFB'); + LN_camellia_256_ofb128 = AnsiString('camellia-256-ofb'); + NID_camellia_256_ofb128 = 768; + + SN_camellia_256_cfb128 = AnsiString('CAMELLIA-256-CFB'); + LN_camellia_256_cfb128 = AnsiString('camellia-256-cfb'); + NID_camellia_256_cfb128 = 759; + + SN_camellia_256_gcm = AnsiString('CAMELLIA-256-GCM'); + LN_camellia_256_gcm = AnsiString('camellia-256-gcm'); + NID_camellia_256_gcm = 969; + + SN_camellia_256_ccm = AnsiString('CAMELLIA-256-CCM'); + LN_camellia_256_ccm = AnsiString('camellia-256-ccm'); + NID_camellia_256_ccm = 970; + + SN_camellia_256_ctr = AnsiString('CAMELLIA-256-CTR'); + LN_camellia_256_ctr = AnsiString('camellia-256-ctr'); + NID_camellia_256_ctr = 971; + + SN_camellia_256_cmac = AnsiString('CAMELLIA-256-CMAC'); + LN_camellia_256_cmac = AnsiString('camellia-256-cmac'); + NID_camellia_256_cmac = 972; + + SN_camellia_128_cfb1 = AnsiString('CAMELLIA-128-CFB1'); + LN_camellia_128_cfb1 = AnsiString('camellia-128-cfb1'); + NID_camellia_128_cfb1 = 760; + + SN_camellia_192_cfb1 = AnsiString('CAMELLIA-192-CFB1'); + LN_camellia_192_cfb1 = AnsiString('camellia-192-cfb1'); + NID_camellia_192_cfb1 = 761; + + SN_camellia_256_cfb1 = AnsiString('CAMELLIA-256-CFB1'); + LN_camellia_256_cfb1 = AnsiString('camellia-256-cfb1'); + NID_camellia_256_cfb1 = 762; + + SN_camellia_128_cfb8 = AnsiString('CAMELLIA-128-CFB8'); + LN_camellia_128_cfb8 = AnsiString('camellia-128-cfb8'); + NID_camellia_128_cfb8 = 763; + + SN_camellia_192_cfb8 = AnsiString('CAMELLIA-192-CFB8'); + LN_camellia_192_cfb8 = AnsiString('camellia-192-cfb8'); + NID_camellia_192_cfb8 = 764; + + SN_camellia_256_cfb8 = AnsiString('CAMELLIA-256-CFB8'); + LN_camellia_256_cfb8 = AnsiString('camellia-256-cfb8'); + NID_camellia_256_cfb8 = 765; + + SN_aria_128_ecb = AnsiString('ARIA-128-ECB'); + LN_aria_128_ecb = AnsiString('aria-128-ecb'); + NID_aria_128_ecb = 1065; + + SN_aria_128_cbc = AnsiString('ARIA-128-CBC'); + LN_aria_128_cbc = AnsiString('aria-128-cbc'); + NID_aria_128_cbc = 1066; + + SN_aria_128_cfb128 = AnsiString('ARIA-128-CFB'); + LN_aria_128_cfb128 = AnsiString('aria-128-cfb'); + NID_aria_128_cfb128 = 1067; + + SN_aria_128_ofb128 = AnsiString('ARIA-128-OFB'); + LN_aria_128_ofb128 = AnsiString('aria-128-ofb'); + NID_aria_128_ofb128 = 1068; + + SN_aria_128_ctr = AnsiString('ARIA-128-CTR'); + LN_aria_128_ctr = AnsiString('aria-128-ctr'); + NID_aria_128_ctr = 1069; + + SN_aria_192_ecb = AnsiString('ARIA-192-ECB'); + LN_aria_192_ecb = AnsiString('aria-192-ecb'); + NID_aria_192_ecb = 1070; + + SN_aria_192_cbc = AnsiString('ARIA-192-CBC'); + LN_aria_192_cbc = AnsiString('aria-192-cbc'); + NID_aria_192_cbc = 1071; + + SN_aria_192_cfb128 = AnsiString('ARIA-192-CFB'); + LN_aria_192_cfb128 = AnsiString('aria-192-cfb'); + NID_aria_192_cfb128 = 1072; + + SN_aria_192_ofb128 = AnsiString('ARIA-192-OFB'); + LN_aria_192_ofb128 = AnsiString('aria-192-ofb'); + NID_aria_192_ofb128 = 1073; + + SN_aria_192_ctr = AnsiString('ARIA-192-CTR'); + LN_aria_192_ctr = AnsiString('aria-192-ctr'); + NID_aria_192_ctr = 1074; + + SN_aria_256_ecb = AnsiString('ARIA-256-ECB'); + LN_aria_256_ecb = AnsiString('aria-256-ecb'); + NID_aria_256_ecb = 1075; + + SN_aria_256_cbc = AnsiString('ARIA-256-CBC'); + LN_aria_256_cbc = AnsiString('aria-256-cbc'); + NID_aria_256_cbc = 1076; + + SN_aria_256_cfb128 = AnsiString('ARIA-256-CFB'); + LN_aria_256_cfb128 = AnsiString('aria-256-cfb'); + NID_aria_256_cfb128 = 1077; + + SN_aria_256_ofb128 = AnsiString('ARIA-256-OFB'); + LN_aria_256_ofb128 = AnsiString('aria-256-ofb'); + NID_aria_256_ofb128 = 1078; + + SN_aria_256_ctr = AnsiString('ARIA-256-CTR'); + LN_aria_256_ctr = AnsiString('aria-256-ctr'); + NID_aria_256_ctr = 1079; + + SN_aria_128_cfb1 = AnsiString('ARIA-128-CFB1'); + LN_aria_128_cfb1 = AnsiString('aria-128-cfb1'); + NID_aria_128_cfb1 = 1080; + + SN_aria_192_cfb1 = AnsiString('ARIA-192-CFB1'); + LN_aria_192_cfb1 = AnsiString('aria-192-cfb1'); + NID_aria_192_cfb1 = 1081; + + SN_aria_256_cfb1 = AnsiString('ARIA-256-CFB1'); + LN_aria_256_cfb1 = AnsiString('aria-256-cfb1'); + NID_aria_256_cfb1 = 1082; + + SN_aria_128_cfb8 = AnsiString('ARIA-128-CFB8'); + LN_aria_128_cfb8 = AnsiString('aria-128-cfb8'); + NID_aria_128_cfb8 = 1083; + + SN_aria_192_cfb8 = AnsiString('ARIA-192-CFB8'); + LN_aria_192_cfb8 = AnsiString('aria-192-cfb8'); + NID_aria_192_cfb8 = 1084; + + SN_aria_256_cfb8 = AnsiString('ARIA-256-CFB8'); + LN_aria_256_cfb8 = AnsiString('aria-256-cfb8'); + NID_aria_256_cfb8 = 1085; + + SN_aria_128_ccm = AnsiString('ARIA-128-CCM'); + LN_aria_128_ccm = AnsiString('aria-128-ccm'); + NID_aria_128_ccm = 1120; + + SN_aria_192_ccm = AnsiString('ARIA-192-CCM'); + LN_aria_192_ccm = AnsiString('aria-192-ccm'); + NID_aria_192_ccm = 1121; + + SN_aria_256_ccm = AnsiString('ARIA-256-CCM'); + LN_aria_256_ccm = AnsiString('aria-256-ccm'); + NID_aria_256_ccm = 1122; + + SN_aria_128_gcm = AnsiString('ARIA-128-GCM'); + LN_aria_128_gcm = AnsiString('aria-128-gcm'); + NID_aria_128_gcm = 1123; + + SN_aria_192_gcm = AnsiString('ARIA-192-GCM'); + LN_aria_192_gcm = AnsiString('aria-192-gcm'); + NID_aria_192_gcm = 1124; + + SN_aria_256_gcm = AnsiString('ARIA-256-GCM'); + LN_aria_256_gcm = AnsiString('aria-256-gcm'); + NID_aria_256_gcm = 1125; + + SN_kisa = AnsiString('KISA'); + LN_kisa = AnsiString('kisa'); + NID_kisa = 773; + + SN_seed_ecb = AnsiString('SEED-ECB'); + LN_seed_ecb = AnsiString('seed-ecb'); + NID_seed_ecb = 776; + + SN_seed_cbc = AnsiString('SEED-CBC'); + LN_seed_cbc = AnsiString('seed-cbc'); + NID_seed_cbc = 777; + + SN_seed_cfb128 = AnsiString('SEED-CFB'); + LN_seed_cfb128 = AnsiString('seed-cfb'); + NID_seed_cfb128 = 779; + + SN_seed_ofb128 = AnsiString('SEED-OFB'); + LN_seed_ofb128 = AnsiString('seed-ofb'); + NID_seed_ofb128 = 778; + + SN_sm4_ecb = AnsiString('SM4-ECB'); + LN_sm4_ecb = AnsiString('sm4-ecb'); + NID_sm4_ecb = 1133; + + SN_sm4_cbc = AnsiString('SM4-CBC'); + LN_sm4_cbc = AnsiString('sm4-cbc'); + NID_sm4_cbc = 1134; + + SN_sm4_ofb128 = AnsiString('SM4-OFB'); + LN_sm4_ofb128 = AnsiString('sm4-ofb'); + NID_sm4_ofb128 = 1135; + + SN_sm4_cfb128 = AnsiString('SM4-CFB'); + LN_sm4_cfb128 = AnsiString('sm4-cfb'); + NID_sm4_cfb128 = 1137; + + SN_sm4_cfb1 = AnsiString('SM4-CFB1'); + LN_sm4_cfb1 = AnsiString('sm4-cfb1'); + NID_sm4_cfb1 = 1136; + + SN_sm4_cfb8 = AnsiString('SM4-CFB8'); + LN_sm4_cfb8 = AnsiString('sm4-cfb8'); + NID_sm4_cfb8 = 1138; + + SN_sm4_ctr = AnsiString('SM4-CTR'); + LN_sm4_ctr = AnsiString('sm4-ctr'); + NID_sm4_ctr = 1139; + + SN_hmac = AnsiString('HMAC'); + LN_hmac = AnsiString('hmac'); + NID_hmac = 855; + + SN_cmac = AnsiString('CMAC'); + LN_cmac = AnsiString('cmac'); + NID_cmac = 894; + + SN_rc4_hmac_md5 = AnsiString('RC4-HMAC-MD5'); + LN_rc4_hmac_md5 = AnsiString('rc4-hmac-md5'); + NID_rc4_hmac_md5 = 915; + + SN_aes_128_cbc_hmac_sha1 = AnsiString('AES-128-CBC-HMAC-SHA1'); + LN_aes_128_cbc_hmac_sha1 = AnsiString('aes-128-cbc-hmac-sha1'); + NID_aes_128_cbc_hmac_sha1 = 916; + + SN_aes_192_cbc_hmac_sha1 = AnsiString('AES-192-CBC-HMAC-SHA1'); + LN_aes_192_cbc_hmac_sha1 = AnsiString('aes-192-cbc-hmac-sha1'); + NID_aes_192_cbc_hmac_sha1 = 917; + + SN_aes_256_cbc_hmac_sha1 = AnsiString('AES-256-CBC-HMAC-SHA1'); + LN_aes_256_cbc_hmac_sha1 = AnsiString('aes-256-cbc-hmac-sha1'); + NID_aes_256_cbc_hmac_sha1 = 918; + + SN_aes_128_cbc_hmac_sha256 = AnsiString('AES-128-CBC-HMAC-SHA256'); + LN_aes_128_cbc_hmac_sha256 = AnsiString('aes-128-cbc-hmac-sha256'); + NID_aes_128_cbc_hmac_sha256 = 948; + + SN_aes_192_cbc_hmac_sha256 = AnsiString('AES-192-CBC-HMAC-SHA256'); + LN_aes_192_cbc_hmac_sha256 = AnsiString('aes-192-cbc-hmac-sha256'); + NID_aes_192_cbc_hmac_sha256 = 949; + + SN_aes_256_cbc_hmac_sha256 = AnsiString('AES-256-CBC-HMAC-SHA256'); + LN_aes_256_cbc_hmac_sha256 = AnsiString('aes-256-cbc-hmac-sha256'); + NID_aes_256_cbc_hmac_sha256 = 950; + + SN_chacha20_poly1305 = AnsiString('ChaCha20-Poly1305'); + LN_chacha20_poly1305 = AnsiString('chacha20-poly1305'); + NID_chacha20_poly1305 = 1018; + + SN_chacha20 = AnsiString('ChaCha20'); + LN_chacha20 = AnsiString('chacha20'); + NID_chacha20 = 1019; + + SN_dhpublicnumber = AnsiString('dhpublicnumber'); + LN_dhpublicnumber = AnsiString('X9.42 DH'); + NID_dhpublicnumber = 920; + + SN_brainpoolP160r1 = AnsiString('brainpoolP160r1'); + NID_brainpoolP160r1 = 921; + + SN_brainpoolP160t1 = AnsiString('brainpoolP160t1'); + NID_brainpoolP160t1 = 922; + + SN_brainpoolP192r1 = AnsiString('brainpoolP192r1'); + NID_brainpoolP192r1 = 923; + + SN_brainpoolP192t1 = AnsiString('brainpoolP192t1'); + NID_brainpoolP192t1 = 924; + + SN_brainpoolP224r1 = AnsiString('brainpoolP224r1'); + NID_brainpoolP224r1 = 925; + + SN_brainpoolP224t1 = AnsiString('brainpoolP224t1'); + NID_brainpoolP224t1 = 926; + + SN_brainpoolP256r1 = AnsiString('brainpoolP256r1'); + NID_brainpoolP256r1 = 927; + + SN_brainpoolP256t1 = AnsiString('brainpoolP256t1'); + NID_brainpoolP256t1 = 928; + + SN_brainpoolP320r1 = AnsiString('brainpoolP320r1'); + NID_brainpoolP320r1 = 929; + + SN_brainpoolP320t1 = AnsiString('brainpoolP320t1'); + NID_brainpoolP320t1 = 930; + + SN_brainpoolP384r1 = AnsiString('brainpoolP384r1'); + NID_brainpoolP384r1 = 931; + + SN_brainpoolP384t1 = AnsiString('brainpoolP384t1'); + NID_brainpoolP384t1 = 932; + + SN_brainpoolP512r1 = AnsiString('brainpoolP512r1'); + NID_brainpoolP512r1 = 933; + + SN_brainpoolP512t1 = AnsiString('brainpoolP512t1'); + NID_brainpoolP512t1 = 934; + + SN_dhSinglePass_stdDH_sha1kdf_scheme = AnsiString('dhSinglePass-stdDH-sha1kdf-scheme'); + NID_dhSinglePass_stdDH_sha1kdf_scheme = 936; + + SN_dhSinglePass_stdDH_sha224kdf_scheme = AnsiString('dhSinglePass-stdDH-sha224kdf-scheme'); + NID_dhSinglePass_stdDH_sha224kdf_scheme = 937; + + SN_dhSinglePass_stdDH_sha256kdf_scheme = AnsiString('dhSinglePass-stdDH-sha256kdf-scheme'); + NID_dhSinglePass_stdDH_sha256kdf_scheme = 938; + + SN_dhSinglePass_stdDH_sha384kdf_scheme = AnsiString('dhSinglePass-stdDH-sha384kdf-scheme'); + NID_dhSinglePass_stdDH_sha384kdf_scheme = 939; + + SN_dhSinglePass_stdDH_sha512kdf_scheme = AnsiString('dhSinglePass-stdDH-sha512kdf-scheme'); + NID_dhSinglePass_stdDH_sha512kdf_scheme = 940; + + SN_dhSinglePass_cofactorDH_sha1kdf_scheme = AnsiString('dhSinglePass-cofactorDH-sha1kdf-scheme'); + NID_dhSinglePass_cofactorDH_sha1kdf_scheme = 941; + + SN_dhSinglePass_cofactorDH_sha224kdf_scheme = AnsiString('dhSinglePass-cofactorDH-sha224kdf-scheme'); + NID_dhSinglePass_cofactorDH_sha224kdf_scheme = 942; + + SN_dhSinglePass_cofactorDH_sha256kdf_scheme = AnsiString('dhSinglePass-cofactorDH-sha256kdf-scheme'); + NID_dhSinglePass_cofactorDH_sha256kdf_scheme = 943; + + SN_dhSinglePass_cofactorDH_sha384kdf_scheme = AnsiString('dhSinglePass-cofactorDH-sha384kdf-scheme'); + NID_dhSinglePass_cofactorDH_sha384kdf_scheme = 944; + + SN_dhSinglePass_cofactorDH_sha512kdf_scheme = AnsiString('dhSinglePass-cofactorDH-sha512kdf-scheme'); + NID_dhSinglePass_cofactorDH_sha512kdf_scheme = 945; + + SN_dh_std_kdf = AnsiString('dh-std-kdf'); + NID_dh_std_kdf = 946; + + SN_dh_cofactor_kdf = AnsiString('dh-cofactor-kdf'); + NID_dh_cofactor_kdf = 947; + + SN_ct_precert_scts = AnsiString('ct_precert_scts'); + LN_ct_precert_scts = AnsiString('CT Precertificate SCTs'); + NID_ct_precert_scts = 951; + + SN_ct_precert_poison = AnsiString('ct_precert_poison'); + LN_ct_precert_poison = AnsiString('CT Precertificate Poison'); + NID_ct_precert_poison = 952; + + SN_ct_precert_signer = AnsiString('ct_precert_signer'); + LN_ct_precert_signer = AnsiString('CT Precertificate Signer'); + NID_ct_precert_signer = 953; + + SN_ct_cert_scts = AnsiString('ct_cert_scts'); + LN_ct_cert_scts = AnsiString('CT Certificate SCTs'); + NID_ct_cert_scts = 954; + + SN_jurisdictionLocalityName = AnsiString('jurisdictionL'); + LN_jurisdictionLocalityName = AnsiString('jurisdictionLocalityName'); + NID_jurisdictionLocalityName = 955; + + SN_jurisdictionStateOrProvinceName = AnsiString('jurisdictionST'); + LN_jurisdictionStateOrProvinceName = AnsiString('jurisdictionStateOrProvinceName'); + NID_jurisdictionStateOrProvinceName = 956; + + SN_jurisdictionCountryName = AnsiString('jurisdictionC'); + LN_jurisdictionCountryName = AnsiString('jurisdictionCountryName'); + NID_jurisdictionCountryName = 957; + + SN_id_scrypt = AnsiString('id-scrypt'); + LN_id_scrypt = AnsiString('scrypt'); + NID_id_scrypt = 973; + + SN_tls1_prf = AnsiString('TLS1-PRF'); + LN_tls1_prf = AnsiString('tls1-prf'); + NID_tls1_prf = 1021; + + SN_hkdf = AnsiString('HKDF'); + LN_hkdf = AnsiString('hkdf'); + NID_hkdf = 1036; + + SN_id_pkinit = AnsiString('id-pkinit'); + NID_id_pkinit = 1031; + + SN_pkInitClientAuth = AnsiString('pkInitClientAuth'); + LN_pkInitClientAuth = AnsiString('PKINIT Client Auth'); + NID_pkInitClientAuth = 1032; + + SN_pkInitKDC = AnsiString('pkInitKDC'); + LN_pkInitKDC = AnsiString('Signing KDC Response'); + NID_pkInitKDC = 1033; + + SN_X25519 = AnsiString('X25519'); + NID_X25519 = 1034; + + SN_X448 = AnsiString('X448'); + NID_X448 = 1035; + + SN_ED25519 = AnsiString('ED25519'); + NID_ED25519 = 1087; + + SN_ED448 = AnsiString('ED448'); + NID_ED448 = 1088; + + SN_kx_rsa = AnsiString('KxRSA'); + LN_kx_rsa = AnsiString('kx-rsa'); + NID_kx_rsa = 1037; + + SN_kx_ecdhe = AnsiString('KxECDHE'); + LN_kx_ecdhe = AnsiString('kx-ecdhe'); + NID_kx_ecdhe = 1038; + + SN_kx_dhe = AnsiString('KxDHE'); + LN_kx_dhe = AnsiString('kx-dhe'); + NID_kx_dhe = 1039; + + SN_kx_ecdhe_psk = AnsiString('KxECDHE-PSK'); + LN_kx_ecdhe_psk = AnsiString('kx-ecdhe-psk'); + NID_kx_ecdhe_psk = 1040; + + SN_kx_dhe_psk = AnsiString('KxDHE-PSK'); + LN_kx_dhe_psk = AnsiString('kx-dhe-psk'); + NID_kx_dhe_psk = 1041; + + SN_kx_rsa_psk = AnsiString('KxRSA_PSK'); + LN_kx_rsa_psk = AnsiString('kx-rsa-psk'); + NID_kx_rsa_psk = 1042; + + SN_kx_psk = AnsiString('KxPSK'); + LN_kx_psk = AnsiString('kx-psk'); + NID_kx_psk = 1043; + + SN_kx_srp = AnsiString('KxSRP'); + LN_kx_srp = AnsiString('kx-srp'); + NID_kx_srp = 1044; + + SN_kx_gost = AnsiString('KxGOST'); + LN_kx_gost = AnsiString('kx-gost'); + NID_kx_gost = 1045; + + SN_kx_any = AnsiString('KxANY'); + LN_kx_any = AnsiString('kx-any'); + NID_kx_any = 1063; + + SN_auth_rsa = AnsiString('AuthRSA'); + LN_auth_rsa = AnsiString('auth-rsa'); + NID_auth_rsa = 1046; + + SN_auth_ecdsa = AnsiString('AuthECDSA'); + LN_auth_ecdsa = AnsiString('auth-ecdsa'); + NID_auth_ecdsa = 1047; + + SN_auth_psk = AnsiString('AuthPSK'); + LN_auth_psk = AnsiString('auth-psk'); + NID_auth_psk = 1048; + + SN_auth_dss = AnsiString('AuthDSS'); + LN_auth_dss = AnsiString('auth-dss'); + NID_auth_dss = 1049; + + SN_auth_gost01 = AnsiString('AuthGOST01'); + LN_auth_gost01 = AnsiString('auth-gost01'); + NID_auth_gost01 = 1050; + + SN_auth_gost12 = AnsiString('AuthGOST12'); + LN_auth_gost12 = AnsiString('auth-gost12'); + NID_auth_gost12 = 1051; + + SN_auth_srp = AnsiString('AuthSRP'); + LN_auth_srp = AnsiString('auth-srp'); + NID_auth_srp = 1052; + + SN_auth_null = AnsiString('AuthNULL'); + LN_auth_null = AnsiString('auth-null'); + NID_auth_null = 1053; + + SN_auth_any = AnsiString('AuthANY'); + LN_auth_any = AnsiString('auth-any'); + NID_auth_any = 1064; + + SN_poly1305 = AnsiString('Poly1305'); + LN_poly1305 = AnsiString('poly1305'); + NID_poly1305 = 1061; + + SN_siphash = AnsiString('SipHash'); + LN_siphash = AnsiString('siphash'); + NID_siphash = 1062; + + SN_ffdhe2048 = AnsiString('ffdhe2048'); + NID_ffdhe2048 = 1126; + + SN_ffdhe3072 = AnsiString('ffdhe3072'); + NID_ffdhe3072 = 1127; + + SN_ffdhe4096 = AnsiString('ffdhe4096'); + NID_ffdhe4096 = 1128; + + SN_ffdhe6144 = AnsiString('ffdhe6144'); + NID_ffdhe6144 = 1129; + + SN_ffdhe8192 = AnsiString('ffdhe8192'); + NID_ffdhe8192 = 1130; + + SN_ISO_UA = AnsiString('ISO-UA'); + NID_ISO_UA = 1150; + + SN_ua_pki = AnsiString('ua-pki'); + NID_ua_pki = 1151; + + SN_dstu28147 = AnsiString('dstu28147'); + LN_dstu28147 = AnsiString('DSTU Gost 28147-2009'); + NID_dstu28147 = 1152; + + SN_dstu28147_ofb = AnsiString('dstu28147-ofb'); + LN_dstu28147_ofb = AnsiString('DSTU Gost 28147-2009 OFB mode'); + NID_dstu28147_ofb = 1153; + + SN_dstu28147_cfb = AnsiString('dstu28147-cfb'); + LN_dstu28147_cfb = AnsiString('DSTU Gost 28147-2009 CFB mode'); + NID_dstu28147_cfb = 1154; + + SN_dstu28147_wrap = AnsiString('dstu28147-wrap'); + LN_dstu28147_wrap = AnsiString('DSTU Gost 28147-2009 key wrap'); + NID_dstu28147_wrap = 1155; + + SN_hmacWithDstu34311 = AnsiString('hmacWithDstu34311'); + LN_hmacWithDstu34311 = AnsiString('HMAC DSTU Gost 34311-95'); + NID_hmacWithDstu34311 = 1156; + + SN_dstu34311 = AnsiString('dstu34311'); + LN_dstu34311 = AnsiString('DSTU Gost 34311-95'); + NID_dstu34311 = 1157; + + SN_dstu4145le = AnsiString('dstu4145le'); + LN_dstu4145le = AnsiString('DSTU 4145-2002 little endian'); + NID_dstu4145le = 1158; + + SN_dstu4145be = AnsiString('dstu4145be'); + LN_dstu4145be = AnsiString('DSTU 4145-2002 big endian'); + NID_dstu4145be = 1159; + + SN_uacurve0 = AnsiString('uacurve0'); + LN_uacurve0 = AnsiString('DSTU curve 0'); + NID_uacurve0 = 1160; + + SN_uacurve1 = AnsiString('uacurve1'); + LN_uacurve1 = AnsiString('DSTU curve 1'); + NID_uacurve1 = 1161; + + SN_uacurve2 = AnsiString('uacurve2'); + LN_uacurve2 = AnsiString('DSTU curve 2'); + NID_uacurve2 = 1162; + + SN_uacurve3 = AnsiString('uacurve3'); + LN_uacurve3 = AnsiString('DSTU curve 3'); + NID_uacurve3 = 1163; + + SN_uacurve4 = AnsiString('uacurve4'); + LN_uacurve4 = AnsiString('DSTU curve 4'); + NID_uacurve4 = 1164; + + SN_uacurve5 = AnsiString('uacurve5'); + LN_uacurve5 = AnsiString('DSTU curve 5'); + NID_uacurve5 = 1165; + + SN_uacurve6 = AnsiString('uacurve6'); + LN_uacurve6 = AnsiString('DSTU curve 6'); + NID_uacurve6 = 1166; + + SN_uacurve7 = AnsiString('uacurve7'); + LN_uacurve7 = AnsiString('DSTU curve 7'); + NID_uacurve7 = 1167; + + SN_uacurve8 = AnsiString('uacurve8'); + LN_uacurve8 = AnsiString('DSTU curve 8'); + NID_uacurve8 = 1168; + + SN_uacurve9 = AnsiString('uacurve9'); + LN_uacurve9 = AnsiString('DSTU curve 9'); + NID_uacurve9 = 1169; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_objects.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_objects.h2pas new file mode 100644 index 000000000..1416b9017 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_objects.h2pas @@ -0,0 +1,174 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_objects; + +interface + +// Headers for OpenSSL 1.1.1 +// objects.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +type + obj_name_st = record + type_: TIdC_INT; + alias: TIdC_INT; + name: PIdAnsiChar; + data: PIdAnsiChar; + end; + OBJ_NAME = obj_name_st; + POBJ_NAME = ^OBJ_NAME; + +//# define OBJ_create_and_add_object(a,b,c) OBJ_create(a,b,c) + + function OBJ_NAME_init: TIdC_INT; + //TIdC_INT OBJ_NAME_new_index(TIdC_ULONG (*hash_func) (const PIdAnsiChar *); + // TIdC_INT (*cmp_func) (const PIdAnsiChar *; const PIdAnsiChar *); + // void (*free_func) (const PIdAnsiChar *; TIdC_INT; const PIdAnsiChar *)); + function OBJ_NAME_get(const name: PIdAnsiChar; type_: TIdC_INT): PIdAnsiChar; + function OBJ_NAME_add(const name: PIdAnsiChar; type_: TIdC_INT; const data: PIdAnsiChar): TIdC_INT; + function OBJ_NAME_remove(const name: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; + procedure OBJ_NAME_cleanup(type_: TIdC_INT); +// void OBJ_NAME_do_all(TIdC_INT type_; void (*fn) (const OBJ_NAME *; void *arg); +// void *arg); +// void OBJ_NAME_do_all_sorted(TIdC_INT type_; +// void (*fn) (const OBJ_NAME *; void *arg); +// void *arg); + + function OBJ_dup(const o: PASN1_OBJECT): PASN1_OBJECT; + function OBJ_nid2obj(n: TIdC_INT): PASN1_OBJECT; + function OBJ_nid2ln(n: TIdC_INT): PIdAnsiChar; + function OBJ_nid2sn(n: TIdC_INT): PIdAnsiChar; + function OBJ_obj2nid(const o: PASN1_OBJECT): TIdC_INT; + function OBJ_txt2obj(const s: PIdAnsiChar; no_name: TIdC_INT): PASN1_OBJECT; + function OBJ_obj2txt(buf: PIdAnsiChar; buf_len: TIdC_INT; const a: PASN1_OBJECT; no_name: TIdC_INT): TIdC_INT; + function OBJ_txt2nid(const s: PIdAnsiChar): TIdC_INT; + function OBJ_ln2nid(const s: PIdAnsiChar): TIdC_INT; + function OBJ_sn2nid(const s: PIdAnsiChar): TIdC_INT; + function OBJ_cmp(const a: PASN1_OBJECT; const b: PASN1_OBJECT): TIdC_INT; +// const void *OBJ_bsearch_(const void *key; const void *base; TIdC_INT num; TIdC_INT size; +// TIdC_INT (*cmp) (const void *; const void *)); +// const void *OBJ_bsearch_ex_(const void *key; const void *base; TIdC_INT num; +// TIdC_INT size; +// TIdC_INT (*cmp) (const void *; const void *); +// TIdC_INT flags); + + //# define _DECLARE_OBJ_BSEARCH_CMP_FN(scope; type1; type2; nm) \ + // static TIdC_INT nm##_cmp_BSEARCH_CMP_FN(const void *; const void *); \ + // static TIdC_INT nm##_cmp(type1 const *; type2 const *); \ + // scope type2 * OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) + // + //# define DECLARE_OBJ_BSEARCH_CMP_FN(type1; type2; cmp) \ + // _DECLARE_OBJ_BSEARCH_CMP_FN(static; type1; type2; cmp) + //# define DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(type1; type2; nm) \ + // type2 * OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) + + (* + * Unsolved problem: if a type is actually a pointer type, like + * nid_triple is, then its impossible to get a const where you need + * it. Consider: + * + * typedef TIdC_INT nid_triple[3]; + * const void *a_; + * const nid_triple const *a = a_; + * + * The assignment discards a const because what you really want is: + * + * const TIdC_INT const * const *a = a_; + * + * But if you do that, you lose the fact that a is an array of 3 ints, + * which breaks comparison functions. + * + * Thus we end up having to cast, sadly, or unpack the + * declarations. Or, as I finally did in this case, declare nid_triple + * to be a struct, which it should have been in the first place. + * + * Ben, August 2008. + * + * Also, strictly speaking not all types need be const, but handling + * the non-constness means a lot of complication, and in practice + * comparison routines do always not touch their arguments. + *) + + //# define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm) \ + // static TIdC_INT nm##_cmp_BSEARCH_CMP_FN(const void *a_; const void *b_) \ + // { \ + // type1 const *a = a_; \ + // type2 const *b = b_; \ + // return nm##_cmp(a;b); \ + // } \ + // static type2 *OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) \ + // { \ + // return (type2 *)OBJ_bsearch_(key; base; num; sizeof(type2); \ + // nm##_cmp_BSEARCH_CMP_FN); \ + // } \ + // extern void dummy_prototype(void) + // + //# define IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN(type1; type2; nm) \ + // static TIdC_INT nm##_cmp_BSEARCH_CMP_FN(const void *a_; const void *b_) \ + // { \ + // type1 const *a = a_; \ + // type2 const *b = b_; \ + // return nm##_cmp(a;b); \ + // } \ + // type2 *OBJ_bsearch_##nm(type1 *key; type2 const *base; TIdC_INT num) \ + // { \ + // return (type2 *)OBJ_bsearch_(key; base; num; sizeof(type2); \ + // nm##_cmp_BSEARCH_CMP_FN); \ + // } \ + // extern void dummy_prototype(void) + // + //# define OBJ_bsearch(type1;key;type2;base;num;cmp) \ + // ((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1;key);CHECKED_PTR_OF(type2;base); \ + // num;sizeof(type2); \ + // ((void)CHECKED_PTR_OF(type1;cmp##_type_1); \ + // (void)CHECKED_PTR_OF(type2;cmp##_type_2); \ + // cmp##_BSEARCH_CMP_FN))) + // + //# define OBJ_bsearch_ex(type1;key;type2;base;num;cmp;flags) \ + // ((type2 *)OBJ_bsearch_ex_(CHECKED_PTR_OF(type1;key);CHECKED_PTR_OF(type2;base); \ + // num;sizeof(type2); \ + // ((void)CHECKED_PTR_OF(type1;cmp##_type_1); \ + // (void)type_2=CHECKED_PTR_OF(type2;cmp##_type_2); \ + // cmp##_BSEARCH_CMP_FN));flags) + + function OBJ_new_nid(num: TIdC_INT): TIdC_INT; + function OBJ_add_object(const obj: PASN1_OBJECT): TIdC_INT; + function OBJ_create(const oid: PIdAnsiChar; const sn: PIdAnsiChar; const ln: PIdAnsiChar): TIdC_INT; + function OBJ_create_objects(in_: PBIO): TIdC_INT; + + function OBJ_length(const obj: PASN1_OBJECT): TIdC_SIZET; {introduced 1.1.0} + function OBJ_get0_data(const obj: PASN1_OBJECT): PByte; {introduced 1.1.0} + + function OBJ_find_sigid_algs(signid: TIdC_INT; pdig_nid: PIdC_INT; ppkey_nid: PIdC_INT): TIdC_INT; + function OBJ_find_sigid_by_algs(psignid: PIdC_INT; dig_nid: TIdC_INT; pkey_nid: TIdC_INT): TIdC_INT; + function OBJ_add_sigid(signid: TIdC_INT; dig_id: TIdC_INT; pkey_id: TIdC_INT): TIdC_INT; + procedure OBJ_sigid_free; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_objectserr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_objectserr.h2pas new file mode 100644 index 000000000..15fbba78a --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_objectserr.h2pas @@ -0,0 +1,59 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_objectserr; + +interface + +// Headers for OpenSSL 1.1.1 +// objectserr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * OBJ function codes. + *) + OBJ_F_OBJ_ADD_OBJECT = 105; + OBJ_F_OBJ_ADD_SIGID = 107; + OBJ_F_OBJ_CREATE = 100; + OBJ_F_OBJ_DUP = 101; + OBJ_F_OBJ_NAME_NEW_INDEX = 106; + OBJ_F_OBJ_NID2LN = 102; + OBJ_F_OBJ_NID2OBJ = 103; + OBJ_F_OBJ_NID2SN = 104; + OBJ_F_OBJ_TXT2OBJ = 108; + + (* + * OBJ reason codes. + *) + OBJ_R_OID_EXISTS = 102; + OBJ_R_UNKNOWN_NID = 101; + + function ERR_load_OBJ_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ocsperr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ocsperr.h2pas new file mode 100644 index 000000000..7919a901a --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ocsperr.h2pas @@ -0,0 +1,90 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ocsperr; + +interface + +// Headers for OpenSSL 1.1.1 +// ocsperr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * OCSP function codes. + *) + OCSP_F_D2I_OCSP_NONCE = 102; + OCSP_F_OCSP_BASIC_ADD1_STATUS = 103; + OCSP_F_OCSP_BASIC_SIGN = 104; + OCSP_F_OCSP_BASIC_SIGN_CTX = 119; + OCSP_F_OCSP_BASIC_VERIFY = 105; + OCSP_F_OCSP_CERT_ID_NEW = 101; + OCSP_F_OCSP_CHECK_DELEGATED = 106; + OCSP_F_OCSP_CHECK_IDS = 107; + OCSP_F_OCSP_CHECK_ISSUER = 108; + OCSP_F_OCSP_CHECK_VALIDITY = 115; + OCSP_F_OCSP_MATCH_ISSUERID = 109; + OCSP_F_OCSP_PARSE_URL = 114; + OCSP_F_OCSP_REQUEST_SIGN = 110; + OCSP_F_OCSP_REQUEST_VERIFY = 116; + OCSP_F_OCSP_RESPONSE_GET1_BASIC = 111; + OCSP_F_PARSE_HTTP_LINE1 = 118; + + (* + * OCSP reason codes. + *) + OCSP_R_CERTIFICATE_VERIFY_ERROR = 101; + OCSP_R_DIGEST_ERR = 102; + OCSP_R_ERROR_IN_NEXTUPDATE_FIELD = 122; + OCSP_R_ERROR_IN_THISUPDATE_FIELD = 123; + OCSP_R_ERROR_PARSING_URL = 121; + OCSP_R_MISSING_OCSPSIGNING_USAGE = 103; + OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE = 124; + OCSP_R_NOT_BASIC_RESPONSE = 104; + OCSP_R_NO_CERTIFICATES_IN_CHAIN = 105; + OCSP_R_NO_RESPONSE_DATA = 108; + OCSP_R_NO_REVOKED_TIME = 109; + OCSP_R_NO_SIGNER_KEY = 130; + OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE = 110; + OCSP_R_REQUEST_NOT_SIGNED = 128; + OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA = 111; + OCSP_R_ROOT_CA_NOT_TRUSTED = 112; + OCSP_R_SERVER_RESPONSE_ERROR = 114; + OCSP_R_SERVER_RESPONSE_PARSE_ERROR = 115; + OCSP_R_SIGNATURE_FAILURE = 117; + OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND = 118; + OCSP_R_STATUS_EXPIRED = 125; + OCSP_R_STATUS_NOT_YET_VALID = 126; + OCSP_R_STATUS_TOO_OLD = 127; + OCSP_R_UNKNOWN_MESSAGE_DIGEST = 119; + OCSP_R_UNKNOWN_NID = 120; + OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE = 129; + + function ERR_load_OCSP_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ossl_typ.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ossl_typ.h2pas new file mode 100644 index 000000000..c51740941 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ossl_typ.h2pas @@ -0,0 +1,536 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ossl_typ; + +interface + +// Headers for OpenSSL 1.1.1 +// ossl_typ.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +type +// moved from unit "asn1" to prevent circular references + asn1_string_st = record + length: TIdC_INT; + type_: TIdC_INT; + data: PByte; + (* + * The value of the following field depends on the type being held. It + * is mostly being used for BIT_STRING so if the input data has a + * non-zero 'unused bits' value, it will be handled correctly + *) + flags: TIdC_LONG; + end; + + // moved from asn1 + ASN1_VALUE_st = type Pointer; + ASN1_VALUE = ASN1_VALUE_st; + PASN1_VALUE = ^ASN1_VALUE; + PPASN1_VALUE = ^PASN1_VALUE; + + // moved from e_os2 + ossl_ssize_t = type {$IFDEF WIN64}TIdC_INT64{$ELSE}TIdC_INT{$ENDIF}; + + asn1_object_st = type Pointer; + ASN1_OBJECT = asn1_object_st; + PASN1_OBJECT = ^ASN1_OBJECT; + PPASN1_OBJECT = ^PASN1_OBJECT; + + ASN1_INTEGER = type asn1_string_st; + PASN1_INTEGER = ^ASN1_INTEGER; + PPASN1_INTEGER = ^PASN1_INTEGER; + + ASN1_ENUMERATED = type asn1_string_st; + PASN1_ENUMERATED = ^ASN1_ENUMERATED; + + ASN1_BIT_STRING = type asn1_string_st; + PASN1_BIT_STRING = ^ASN1_BIT_STRING; + PPASN1_BIT_STRING = ^PASN1_BIT_STRING; + + ASN1_OCTET_STRING = type asn1_string_st; + PASN1_OCTET_STRING = ^ASN1_OCTET_STRING; + PPASN1_OCTET_STRING = ^PASN1_OCTET_STRING; + + ASN1_PRINTABLESTRING = type asn1_string_st; + PASN1_PRINTABLESTRING = ^ASN1_PRINTABLESTRING; + + ASN1_T61STRING = type asn1_string_st; + PASN1_T61STRING = ^ASN1_T61STRING; + + ASN1_IA5STRING = type asn1_string_st; + PASN1_IA5STRING = ^ASN1_IA5STRING; + + ASN1_GENERALSTRING = type asn1_string_st; + PASN1_GENERALSTRING = ^ASN1_GENERALSTRING; + + ASN1_UNIVERSALSTRING = type asn1_string_st; + PASN1_UNIVERSALSTRING = ^ASN1_UNIVERSALSTRING; + + ASN1_BMPSTRING = type asn1_string_st; + PASN1_BMPSTRING = ^ASN1_BMPSTRING; + + ASN1_UTCTIME = type asn1_string_st; + PASN1_UTCTIME = ^ASN1_UTCTIME; + PPASN1_UTCTIME = ^PASN1_UTCTIME; + + ASN1_TIME = type asn1_string_st; + PASN1_TIME = ^ASN1_TIME; + PPASN1_TIME = ^PASN1_TIME; + + ASN1_GENERALIZEDTIME = type asn1_string_st; + PASN1_GENERALIZEDTIME = ^ASN1_GENERALIZEDTIME; + PPASN1_GENERALIZEDTIME = ^PASN1_GENERALIZEDTIME; + + ASN1_VISIBLESTRING = type asn1_string_st; + PASN1_VISIBLESTRING = ^ASN1_VISIBLESTRING; + + ASN1_UTF8STRING = type asn1_string_st; + PASN1_UTF8STRING = ^ASN1_UTF8STRING; + + ASN1_STRING = type asn1_string_st; + PASN1_STRING = ^ASN1_STRING; + PPASN1_STRING = ^PASN1_STRING; + + ASN1_BOOLEAN = type TIdC_INT; + PASN1_BOOLEAN = ^ASN1_BOOLEAN; + + ASN1_NULL = type TIdC_INT; + PASN1_NULL = ^ASN1_NULL; + + + ASN1_ITEM_st = type Pointer; + ASN1_ITEM = ASN1_ITEM_st; + PASN1_ITEM = ^ASN1_ITEM; + + asn1_pctx_st = type Pointer; + ASN1_PCTX = asn1_pctx_st; + PASN1_PCTX = ^ASN1_PCTX; + + asn1_sctx_st = type Pointer; + ASN1_SCTX = asn1_sctx_st; + PASN1_SCTX = ^ASN1_SCTX; + + dane_st = type Pointer; + bio_st = type Pointer; + BIO = bio_st; + PBIO = ^BIO; + PPBIO = ^PBIO; + bignum_st = type Pointer; + BIGNUM = bignum_st; + PBIGNUM = ^BIGNUM; + PPBIGNUM = ^PBIGNUM; + bignum_ctx = type Pointer; + BN_CTX = bignum_ctx; + PBN_CTX = ^BN_CTX; + bn_blinding_st = type Pointer; + BN_BLINDING = bn_blinding_st; + PBN_BLINDING = ^BN_BLINDING; + bn_mont_ctx_st = type Pointer; + BN_MONT_CTX = bn_mont_ctx_st; + PBN_MONT_CTX = ^BN_MONT_CTX; + bn_recp_ctx_st = type Pointer; + BN_RECP_CTX = bn_recp_ctx_st; + PBN_RECP_CTX = ^BN_RECP_CTX; + bn_gencb_st = type Pointer; + BN_GENCB = bn_gencb_st; + PBN_GENCB = ^BN_GENCB; + + buf_mem_st = type Pointer; + BUF_MEM = buf_mem_st; + PBUF_MEM = ^BUF_MEM; + + evp_cipher_st = type Pointer; + EVP_CIPHER = evp_cipher_st; + PEVP_CIPHER = ^EVP_CIPHER; + PPEVP_CIPHER = ^PEVP_CIPHER; + evp_cipher_ctx_st = type Pointer; + EVP_CIPHER_CTX = evp_cipher_ctx_st; + PEVP_CIPHER_CTX = ^EVP_CIPHER_CTX; + evp_md_st = type Pointer; + EVP_MD = evp_md_st; + PEVP_MD = ^EVP_MD; + PPEVP_MD = ^PEVP_MD; + evp_md_ctx_st = type Pointer; + EVP_MD_CTX = evp_md_ctx_st; + PEVP_MD_CTX = ^EVP_MD_CTX; + evp_pkey_st = type Pointer; + EVP_PKEY = evp_pkey_st; + PEVP_PKEY = ^EVP_PKEY; + PPEVP_PKEY = ^PEVP_PKEY; + + evp_pkey_asn1_method_st = type Pointer; + EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; + PEVP_PKEY_ASN1_METHOD = ^EVP_PKEY_ASN1_METHOD; + PPEVP_PKEY_ASN1_METHOD = ^PEVP_PKEY_ASN1_METHOD; + + evp_pkey_method_st = type Pointer; + EVP_PKEY_METHOD = evp_pkey_method_st; + PEVP_PKEY_METHOD = ^EVP_PKEY_METHOD; + PPEVP_PKEY_METHOD = ^PEVP_PKEY_METHOD; + evp_pkey_ctx_st = type Pointer; + EVP_PKEY_CTX = evp_pkey_ctx_st; + PEVP_PKEY_CTX = ^EVP_PKEY_CTX; + PPEVP_PKEY_CTX = ^PEVP_PKEY_CTX; + + evp_Encode_Ctx_st = type Pointer; + EVP_ENCODE_CTX = evp_Encode_Ctx_st; + PEVP_ENCODE_CTX = ^EVP_ENCODE_CTX; + + hmac_ctx_st = type Pointer; + HMAC_CTX = hmac_ctx_st; + PHMAC_CTX = ^HMAC_CTX; + + dh_st = type Pointer; + DH = dh_st; + PDH = ^DH; + PPDH = ^PDH; + dh_method_st = type Pointer; + DH_METHOD = dh_method_st; + PDH_METHOD = ^DH_METHOD; + + dsa_st = type Pointer; + DSA = dsa_st; + PDSA = ^DSA; + PPDSA = ^PDSA; + dsa_method_st = type Pointer; + DSA_METHOD = dsa_method_st; + PDSA_METHOD = ^DSA_METHOD; + + rsa_st = type Pointer; + RSA = rsa_st; + PRSA = ^RSA; + PPRSA = ^PRSA; + rsa_meth_st = type Pointer; + RSA_METHOD = rsa_meth_st; + PRSA_METHOD = ^RSA_METHOD; + + ec_key_st = type Pointer; + EC_KEY = ec_key_st; + PEC_KEY = ^EC_KEY; + PPEC_KEY = ^PEC_KEY; + ec_key_method_st = type Pointer; + EC_KEY_METHOD = ec_key_method_st; + PEC_KEY_METHOD = ^EC_KEY_METHOD; + + rand_meth_st = type Pointer; + RAND_METHOD = rand_meth_st; + PRAND_METHOD = ^RAND_METHOD; + rand_drbg_st = type Pointer; + RAND_DRBG = rand_drbg_st; + PRAND_DRBG = ^RAND_DRBG; + + ssl_dane_st = type Pointer; + SSL_DANE = ssl_dane_st; + PSSL_DANE = ^SSL_DANE; + x509_st = type Pointer; + X509 = x509_st; + PX509 = ^X509; + PPX509 = ^PX509; + Stack_Of_X509 = type Pointer; + PStack_Of_X509 = ^Stack_Of_X509; + PPStack_Of_X509 = ^PStack_Of_X509; + X509_crl_st = type Pointer; + X509_CRL = X509_crl_st; + PX509_CRL = ^X509_CRL; + PPX509_CRL = ^PX509_CRL; + x509_crl_method_st = type Pointer; + X509_CRL_METHOD = x509_crl_method_st; + PX509_CRL_METHOD = ^X509_CRL_METHOD; + x509_revoked_st = type Pointer; + X509_REVOKED = x509_revoked_st; + PX509_REVOKED = ^X509_REVOKED; + PPX509_REVOKED = ^PX509_REVOKED; + X509_name_st = type Pointer; + X509_NAME = X509_name_st; + PX509_NAME = ^X509_NAME; + PPX509_NAME = ^PX509_NAME; + X509_pubkey_st = type Pointer; + X509_PUBKEY = X509_pubkey_st; + PX509_PUBKEY = ^X509_PUBKEY; + PPX509_PUBKEY = ^PX509_PUBKEY; + x509_store_st = type Pointer; + X509_STORE = x509_store_st; + PX509_STORE = ^X509_STORE; + x509_store_ctx_st = type Pointer; + X509_STORE_CTX = x509_store_ctx_st; + PX509_STORE_CTX = ^X509_STORE_CTX; + + x509_object_st = type Pointer; + X509_OBJECT = x509_object_st; + PX509_OBJECT = ^X509_OBJECT; + x509_lookup_st = type Pointer; + X509_LOOKUP = x509_lookup_st; + PX509_LOOKUP = ^X509_LOOKUP; + x509_lookup_method_st = type Pointer; + X509_LOOKUP_METHOD = x509_lookup_method_st; + PX509_LOOKUP_METHOD = ^X509_LOOKUP_METHOD; + X509_VERIFY_PARAM_st = type Pointer; + X509_VERIFY_PARAM = X509_VERIFY_PARAM_st; + PX509_VERIFY_PARAM = ^X509_VERIFY_PARAM; + + x509_sig_info_st = type Pointer; + X509_SIG_INFO = x509_sig_info_st; + PX509_SIG_INFO = ^X509_SIG_INFO; + + pkcs8_priv_key_info_st = type Pointer; + PKCS8_PRIV_KEY_INFO = pkcs8_priv_key_info_st; + PPKCS8_PRIV_KEY_INFO = ^PKCS8_PRIV_KEY_INFO; + PPPKCS8_PRIV_KEY_INFO = ^PPKCS8_PRIV_KEY_INFO; + +// moved from x509 to prevent circular references + X509_REQ = type Pointer; // X509_req_st + PX509_REQ = ^X509_REQ; + PPX509_REQ = ^PX509_REQ; + +// moved from x509v3 to prevent circular references + (* Context specific info *) + v3_ext_ctx = record + flags: TIdC_INT; + issuer_cert: PX509; + subject_cert: PX509; + subject_req: PX509_REQ; + crl: PX509_CRL; + db_meth: Pointer; //PX509V3_CONF_METHOD; + db: Pointer; + (* Maybe more here *) + end; +// v3_ext_ctx = type Pointer; + X509V3_CTX = v3_ext_ctx; + PX509V3_CTX = ^X509V3_CTX; + conf_st = type Pointer; + CONF = conf_st; + PCONF = ^CONF; + ossl_init_settings_st = type Pointer; + OPENSSL_INIT_SETTINGS = ossl_init_settings_st; + POPENSSL_INIT_SETTINGS = ^OPENSSL_INIT_SETTINGS; + + ui_st = type Pointer; + UI = ui_st; + PUI = ^UI; + ui_method_st = type Pointer; + UI_METHOD = ui_method_st; + PUI_METHOD = ^UI_METHOD; + + engine_st = type Pointer; + ENGINE = engine_st; + PENGINE = ^ENGINE; + PPENGINE = ^PENGINE; + ssl_st = type Pointer; + SSL = ssl_st; + PSSL = ^SSL; + ssl_ctx_st = type Pointer; + SSL_CTX = ssl_ctx_st; + PSSL_CTX = ^SSL_CTX; + PPSSL_CTX = ^PSSL_CTX; + + comp_ctx_st = type Pointer; + COMP_CTX = comp_ctx_st; + PCOMP_CTX = ^COMP_CTX; + comp_method_st = type Pointer; + COMP_METHOD = comp_method_st; + PCOMP_METHOD = ^COMP_METHOD; + + X509_POLICY_NODE_st = type Pointer; + X509_POLICY_NODE = X509_POLICY_NODE_st; + PX509_POLICY_NODE = ^X509_POLICY_NODE; + X509_POLICY_LEVEL_st = type Pointer; + X509_POLICY_LEVEL = X509_POLICY_LEVEL_st; + PX509_POLICY_LEVEL = ^X509_POLICY_LEVEL; + X509_POLICY_TREE_st = type Pointer; + X509_POLICY_TREE = X509_POLICY_TREE_st; + PX509_POLICY_TREE = ^X509_POLICY_TREE; + X509_POLICY_CACHE_st = type Pointer; + X509_POLICY_CACHE = X509_POLICY_CACHE_st; + PX509_POLICY_CACHE = ^X509_POLICY_CACHE; + + AUTHORITY_KEYID_st = type Pointer; + AUTHORITY_KEYID = AUTHORITY_KEYID_st; + PAUTHORITY_KEYID = ^AUTHORITY_KEYID; + DIST_POINT_st = type Pointer; + DIST_POINT = DIST_POINT_st; + PDIST_POINT = ^DIST_POINT; + ISSUING_DIST_POINT_st = type Pointer; + ISSUING_DIST_POINT = ISSUING_DIST_POINT_st; + PISSUING_DIST_POINT = ^ISSUING_DIST_POINT; + NAME_CONSTRAINTS_st = type Pointer; + NAME_CONSTRAINTS = NAME_CONSTRAINTS_st; + PNAME_CONSTRAINTS = ^NAME_CONSTRAINTS; + + crypto_ex_data_st = type Pointer; + CRYPTO_EX_DATA = crypto_ex_data_st; + PCRYPTO_EX_DATA = ^CRYPTO_EX_DATA; + + ocsp_req_ctx_st = type Pointer; + OCSP_REQ_CTX = ocsp_req_ctx_st; + POCSP_REQ_CTX = ^OCSP_REQ_CTX; + ocsp_response_st = type Pointer; + OCSP_RESPONSE = ocsp_response_st; + POCSP_RESPONSE = ^OCSP_RESPONSE; + ocsp_responder_id_st = type Pointer; + OCSP_RESPID = ocsp_responder_id_st; + POCSP_RESPID = ^OCSP_RESPID; + + sct_st = type Pointer; + SCT = sct_st; + PSCT = ^SCT; + sct_ctx_st = type Pointer; + SCT_CTX = sct_ctx_st; + PSCT_CTX = ^SCT_CTX; + ctlog_st = type Pointer; + CTLOG = ctlog_st; + PCTLOG = ^CTLOG; + ctlog_store_st = type Pointer; + CTLOG_STORE = ctlog_store_st; + PCTLOG_STORE = ^CTLOG_STORE; + ct_policy_eval_ctx_st = type Pointer; + CT_POLICY_EVAL_CTX = ct_policy_eval_ctx_st; + PCT_POLICY_EVAL_CTX = ^CT_POLICY_EVAL_CTX; + + ossl_store_info_st = type Pointer; + OSSL_STORE_INFO = ossl_store_info_st; + POSSL_STORE_INFO = ^OSSL_STORE_INFO; + ossl_store_search_st = type Pointer; + OSSL_STORE_SEARCH = ossl_store_search_st; + POSSL_STORE_SEARCH = ^OSSL_STORE_SEARCH; + +// moved from unit "asn1" to prevent circular references' +const + V_ASN1_UNIVERSAL = $00; + V_ASN1_APPLICATION = $40; + V_ASN1_CONTEXT_SPECIFIC = $80; + V_ASN1_PRIVATE = $c0; + + V_ASN1_CONSTRUCTED = $20; + V_ASN1_PRIMITIVE_TAG = $1f; + V_ASN1_PRIMATIVE_TAG = V_ASN1_PRIMITIVE_TAG; + + V_ASN1_APP_CHOOSE = -2; (* let the recipient choose *) + V_ASN1_OTHER = -3; (* used in ASN1_TYPE *) + V_ASN1_ANY = -4; (* used in ASN1 template code *) + + V_ASN1_UNDEF = -1; + V_ASN1_EOC = 0; + V_ASN1_BOOLEAN = 1; + V_ASN1_INTEGER = 2; + V_ASN1_BIT_STRING = 3; + V_ASN1_OCTET_STRING = 4; + V_ASN1_NULL = 5; + V_ASN1_OBJECT = 6; + V_ASN1_OBJECT_DESCRIPTOR = 7; + V_ASN1_EXTERNAL = 8; + V_ASN1_REAL = 9; + V_ASN1_ENUMERATED = 10; + V_ASN1_UTF8STRING = 12; + V_ASN1_SEQUENCE = 16; + V_ASN1_SET = 17; + V_ASN1_NUMERICSTRING = 18; + V_ASN1_PRINTABLESTRING = 19; + V_ASN1_T61STRING = 20; + V_ASN1_TELETEXSTRING = 20; + V_ASN1_VIDEOTEXSTRING = 21; + V_ASN1_IA5STRING = 22; + V_ASN1_UTCTIME = 23; + V_ASN1_GENERALIZEDTIME = 24; + V_ASN1_GRAPHICSTRING = 25; + V_ASN1_ISO64STRING = 26; + V_ASN1_VISIBLESTRING = 26; + V_ASN1_GENERALSTRING = 27; + V_ASN1_UNIVERSALSTRING = 28; + V_ASN1_BMPSTRING = 30; + +type + asn1_type_st = record + case type_: TIdC_INT of +// (ptr: PIdAnsichar); + V_ASN1_BOOLEAN: (boolean: ASN1_BOOLEAN); +// (asn1_string: PASN1_STRING); + V_ASN1_OBJECT: (object_: PASN1_OBJECT); + V_ASN1_INTEGER: (integer: PASN1_INTEGER); + V_ASN1_ENUMERATED: (enumerated: PASN1_ENUMERATED); + V_ASN1_BIT_STRING: (bit_string: PASN1_BIT_STRING); + V_ASN1_OCTET_STRING: (octet_string: PASN1_OCTET_STRING); + V_ASN1_PRINTABLESTRING: (printablestring: PASN1_PRINTABLESTRING); + V_ASN1_T61STRING: (t61string: PASN1_T61STRING); + V_ASN1_IA5STRING: (ia5string: PASN1_IA5STRING); + V_ASN1_GENERALSTRING: (generalstring: PASN1_GENERALSTRING); + V_ASN1_BMPSTRING: (bmpstring: PASN1_BMPSTRING); + V_ASN1_UNIVERSALSTRING: (universalstring: PASN1_UNIVERSALSTRING); + V_ASN1_UTCTIME: (utctime: PASN1_UTCTIME); + V_ASN1_GENERALIZEDTIME: (generalizedtime: PASN1_GENERALIZEDTIME); + V_ASN1_VISIBLESTRING: (visiblestring: PASN1_VISIBLESTRING); + V_ASN1_UTF8STRING: (utf8string: PASN1_UTF8STRING); + (* + * set and sequence are left complete and still contain the set or + * sequence bytes + *) + V_ASN1_SET: (set_: PASN1_STRING); + V_ASN1_SEQUENCE: (sequence: PASN1_STRING); +// (asn1_value: PASN1_VALUE); + +// V_ASN1_UNDEF: ; +// V_ASN1_EOC: ; +// V_ASN1_NULL: ; +// V_ASN1_OBJECT_DESCRIPTOR: ; +// V_ASN1_EXTERNAL: ; +// V_ASN1_REAL: ; +// V_ASN1_NUMERICSTRING: ; +// V_ASN1_TELETEXSTRING: ; +// V_ASN1_VIDEOTEXSTRING: ; +// V_ASN1_GRAPHICSTRING: ; +// V_ASN1_ISO64STRING: ; + end; + ASN1_TYPE = asn1_type_st; + PASN1_TYPE = ^ASN1_TYPE; + PPASN1_TYPE = ^PASN1_TYPE; + +// moved from unit "x509" to prevent circular references + X509_algor_st = record + algorithm: PASN1_OBJECT; + parameter: PASN1_TYPE; + end; (* X509_ALGOR *) + + X509_ALGOR = X509_algor_st; + PX509_ALGOR = ^X509_ALGOR; + PPX509_ALGOR = ^PX509_ALGOR; + + i2d_of_void = type Pointer; + Pi2d_of_void = ^i2d_of_void; + + d2i_of_void = type Pointer; + Pd2i_of_void = ^d2i_of_void; + + {OSSL_LIB_CTX is defined in types.h from 3.0.0 onwards} + // typedef struct ossl_lib_ctx_st OSSL_LIB_CTX; + ossl_lib_ctx_st = record + end; + POSSL_LIB_CTX = ^OSSL_LIB_CTX; + OSSL_LIB_CTX = ossl_lib_ctx_st; + + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pem.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pem.h2pas new file mode 100644 index 000000000..62c52304d --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pem.h2pas @@ -0,0 +1,231 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_pem; + +interface + +// Headers for OpenSSL 1.1.1 +// pem.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ec, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_pkcs7, + IdOpenSSLHeaders_x509; + +type + EVP_CIPHER_INFO = type Pointer; + PEVP_CIPHER_INFO = ^EVP_CIPHER_INFO; + +const + PEM_BUFSIZE = 1024; + + PEM_STRING_X509_OLD = AnsiString('X509 CERTIFICATE'); + PEM_STRING_X509 = AnsiString('CERTIFICATE'); + PEM_STRING_X509_TRUSTED = AnsiString('TRUSTED CERTIFICATE'); + PEM_STRING_X509_REQ_OLD = AnsiString('NEW CERTIFICATE REQUEST'); + PEM_STRING_X509_REQ = AnsiString('CERTIFICATE REQUEST'); + PEM_STRING_X509_CRL = AnsiString('X509 CRL'); + PEM_STRING_EVP_PKEY = AnsiString('ANY PRIVATE KEY'); + PEM_STRING_PUBLIC = AnsiString('PUBLIC KEY'); + PEM_STRING_RSA = AnsiString('RSA PRIVATE KEY'); + PEM_STRING_RSA_PUBLIC = AnsiString('RSA PUBLIC KEY'); + PEM_STRING_DSA = AnsiString('DSA PRIVATE KEY'); + PEM_STRING_DSA_PUBLIC = AnsiString('DSA PUBLIC KEY'); + PEM_STRING_PKCS7 = AnsiString('PKCS7'); + PEM_STRING_PKCS7_SIGNED = AnsiString('PKCS #7 SIGNED DATA'); + PEM_STRING_PKCS8 = AnsiString('ENCRYPTED PRIVATE KEY'); + PEM_STRING_PKCS8INF = AnsiString('PRIVATE KEY'); + PEM_STRING_DHPARAMS = AnsiString('DH PARAMETERS'); + PEM_STRING_DHXPARAMS = AnsiString('X9.42 DH PARAMETERS'); + PEM_STRING_SSL_SESSION = AnsiString('SSL SESSION PARAMETERS'); + PEM_STRING_DSAPARAMS = AnsiString('DSA PARAMETERS'); + PEM_STRING_ECDSA_PUBLIC = AnsiString('ECDSA PUBLIC KEY'); + PEM_STRING_ECPARAMETERS = AnsiString('EC PARAMETERS'); + PEM_STRING_ECPRIVATEKEY = AnsiString('EC PRIVATE KEY'); + PEM_STRING_PARAMETERS = AnsiString('PARAMETERS'); + PEM_STRING_CMS = AnsiString('CMS'); + + PEM_TYPE_ENCRYPTED = 10; + PEM_TYPE_MIC_ONLY = 20; + PEM_TYPE_MIC_CLEAR = 30; + PEM_TYPE_CLEAR = 40; + + PEM_FLAG_SECURE = $1; + PEM_FLAG_EAY_COMPATIBLE = $2; + PEM_FLAG_ONLY_B64 = $4; + + {Reason Codes} + PEM_R_BAD_BASE64_DECODE = 100; + PEM_R_BAD_DECRYPT = 101; + PEM_R_BAD_END_LINE = 102; + PEM_R_BAD_IV_CHARS = 103; + PEM_R_BAD_MAGIC_NUMBER = 116; + PEM_R_BAD_PASSWORD_READ = 104; + PEM_R_BAD_VERSION_NUMBER = 117; + PEM_R_BIO_WRITE_FAILURE = 118; + PEM_R_CIPHER_IS_NULL = 127; + PEM_R_ERROR_CONVERTING_PRIVATE_KEY = 115; + PEM_R_EXPECTING_PRIVATE_KEY_BLOB = 119; + PEM_R_EXPECTING_PUBLIC_KEY_BLOB = 120; + PEM_R_HEADER_TOO_LONG = 128; + PEM_R_INCONSISTENT_HEADER = 121; + PEM_R_KEYBLOB_HEADER_PARSE_ERROR = 122; + PEM_R_KEYBLOB_TOO_SHORT = 123; + PEM_R_NOT_DEK_INFO = 105; + PEM_R_NOT_ENCRYPTED = 106; + PEM_R_NOT_PROC_TYPE = 107; + PEM_R_NO_START_LINE = 108; + PEM_R_PROBLEMS_GETTING_PASSWORD = 109; + PEM_R_PUBLIC_KEY_NO_RSA = 110; + PEM_R_PVK_DATA_TOO_SHORT = 124; + PEM_R_PVK_TOO_SHORT = 125; + PEM_R_READ_KEY = 111; + PEM_R_SHORT_HEADER = 112; + PEM_R_UNSUPPORTED_CIPHER = 113; + PEM_R_UNSUPPORTED_ENCRYPTION = 114; + +type + PSTACK_OF_X509_INFO = pointer; + pem_password_cb = function(buf: PIdAnsiChar; size: TIdC_INT; rwflag: TIdC_INT; userdata: Pointer): TIdC_INT; cdecl; + + function PEM_get_EVP_CIPHER_INFO(header: PIdAnsiChar; cipher: PEVP_CIPHER_INFO): TIdC_INT; + function PEM_do_header(cipher: PEVP_CIPHER_INFO; data: PByte; len: PIdC_LONG; callback: pem_password_cb; u: Pointer): TIdC_INT; + + function PEM_read_bio(bp: PBIO; name: PPIdAnsiChar; header: PPIdAnsiChar; data: PPByte; len: PIdC_LONG): TIdC_INT; + function PEM_read_bio_ex(bp: PBIO; name: PPIdAnsiChar; header: PPIdAnsiChar; data: PPByte; len: PIdC_LONG; flags: TIdC_UINT): TIdC_INT; {introduced 1.1.0} + function PEM_bytes_read_bio_secmem(pdata: PPByte; plen: PIdC_LONG; pnm: PPIdAnsiChar; const name: PIdAnsiChar; bp: PBIO; cb: pem_password_cb; u: Pointer): TIdC_INT; {introduced 1.1.0} + function PEM_write_bio(bp: PBIO; const name: PIdAnsiChar; const hdr: PIdAnsiChar; const data: PByte; len: TIdC_LONG): TIdC_INT; + function PEM_bytes_read_bio(pdata: PPByte; plen: PIdC_LONG; pnm: PPIdAnsiChar; const name: PIdAnsiChar; bp: PBIO; cb: pem_password_cb; u: Pointer): TIdC_INT; + function PEM_ASN1_read_bio(d2i: d2i_of_void; const name: PIdAnsiChar; bp: PBIO; x: PPointer; cb: pem_password_cb; u: Pointer): Pointer; + function PEM_ASN1_write_bio(i2d: i2d_of_void; const name: PIdAnsiChar; bp: PBIO; x: Pointer; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; + + function PEM_X509_INFO_read_bio(bp: PBIO; sk: PSTACK_OF_X509_INFO; cb: pem_password_cb; u: Pointer): PSTACK_OF_X509_INFO; + function PEM_X509_INFO_write_bio(bp: PBIO; xi: PX509_INFO; enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cd: pem_password_cb; u: Pointer): TIdC_INT; + + function PEM_SignInit(ctx: PEVP_MD_CTX; type_: PEVP_MD): TIdC_INT; + function PEM_SignUpdate(ctx: PEVP_MD_CTX; d: PByte; cnt: Byte): TIdC_INT; + function PEM_SignFinal(ctx: PEVP_MD_CTX; sigret: PByte; siglen: PIdC_UINT; pkey: PEVP_PKEY): TIdC_INT; + + (* The default pem_password_cb that's used internally *) + function PEM_def_callback(buf: PIdAnsiChar; num: TIdC_INT; rwflag: TIdC_INT; userdata: Pointer): TIdC_INT; + procedure PEM_proc_type(buf: PIdAnsiChar; type_: TIdC_INT); + procedure PEM_dek_info(buf: PIdAnsiChar; const type_: PIdAnsiChar; len: TIdC_INT; str: PIdAnsiChar); + + function PEM_read_bio_X509(bp: PBIO; x: PPX509; cb: pem_password_cb; u: Pointer): PX509; + function PEM_write_bio_X509(bp: PBIO; x: PX509): TIdC_INT; + + function PEM_read_bio_X509_AUX(bp: PBIO; x: PPX509; cb: pem_password_cb; u: Pointer): PX509; + function PEM_write_bio_X509_AUX(bp: PBIO; x: PX509): TIdC_INT; + + function PEM_read_bio_X509_REQ(bp: PBIO; x: PPX509_REQ; cb: pem_password_cb; u: Pointer): PX509_REQ; + function PEM_write_bio_X509_REQ(bp: PBIO; x: PX509_REQ): TIdC_INT; + + function PEM_write_bio_X509_REQ_NEW(bp: PBIO; x: PX509_REQ): TIdC_INT; + + function PEM_read_bio_X509_CRL(bp: PBIO; x: PPX509_CRL; cb: pem_password_cb; u: Pointer): PX509_CRL; + function PEM_write_bio_X509_CRL(bp: PBIO; x: PX509_CRL): TIdC_INT; + + function PEM_read_bio_PKCS7(bp: PBIO; x: PPPKCS7; cb: pem_password_cb; u: Pointer): PPKCS7; + function PEM_write_bio_PKCS7(bp: PBIO; x: PPKCS7): TIdC_INT; + +// function PEM_read_bio_NETSCAPE_CERT_SEQUENCE(bp: PBIO; x: PPNETSCAPE_CERT_SEQUENCE; cb: pem_password_cb; u: Pointer): PNETSCAPE_CERT_SEQUENCE; +// function PEM_write_bio_NETSCAPE_CERT_SEQUENCE(bp: PBIO; x: PNETSCAPE_CERT_SEQUENCE): TIdC_INT; + + function PEM_read_bio_PKCS8(bp: PBIO; x: PPX509_SIG; cb: pem_password_cb; u: Pointer): PX509_SIG; + function PEM_write_bio_PKCS8(bp: PBIO; x: PX509_SIG): TIdC_INT; + + function PEM_read_bio_PKCS8_PRIV_KEY_INFO(bp: PBIO; x: PPPKCS8_PRIV_KEY_INFO; cb: pem_password_cb; u: Pointer): PPKCS8_PRIV_KEY_INFO; + function PEM_write_bio_PKCS8_PRIV_KEY_INFO(bp: PBIO; x: PPKCS8_PRIV_KEY_INFO): TIdC_INT; + + // RSA + function PEM_read_bio_RSAPrivateKey(bp: PBIO; x: PPRSA; cb: pem_password_cb; u: Pointer): PRSA; + function PEM_write_bio_RSAPrivateKey(bp: PBIO; x: PRSA; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; + + function PEM_read_bio_RSAPublicKey(bp: PBIO; x: PPRSA; cb: pem_password_cb; u: Pointer): PRSA; + function PEM_write_bio_RSAPublicKey(bp: PBIO; const x: PRSA): TIdC_INT; + + function PEM_read_bio_RSA_PUBKEY(bp: PBIO; x: PPRSA; cb: pem_password_cb; u: Pointer): PRSA; + function PEM_write_bio_RSA_PUBKEY(bp: PBIO; x: PRSA): TIdC_INT; + // ~RSA + + // DSA + function PEM_read_bio_DSAPrivateKey(bp: PBIO; x: PPDSA; cb: pem_password_cb; u: Pointer): PDSA; + function PEM_write_bio_DSAPrivateKey(bp: PBIO; x: PDSA; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; + + function PEM_read_bio_DSA_PUBKEY(bp: PBIO; x: PPDSA; cb: pem_password_cb; u: Pointer): PDSA; + function PEM_write_bio_DSA_PUBKEY(bp: PBIO; x: PDSA): TIdC_INT; + + function PEM_read_bio_DSAparams(bp: PBIO; x: PPDSA; cb: pem_password_cb; u: Pointer): PDSA; + function PEM_write_bio_DSAparams(bp: PBIO; const x: PDSA): TIdC_INT; + // ~DSA + + // EC + function PEM_read_bio_ECPKParameters(bp: PBIO; x: PPEC_GROUP; cb: pem_password_cb; u: Pointer): PEC_GROUP; + function PEM_write_bio_ECPKParameters(bp: PBIO; const x: PEC_GROUP): TIdC_INT; + + function PEM_read_bio_ECPrivateKey(bp: PBIO; x: PPEC_KEY; cb: pem_password_cb; u: Pointer): PEC_KEY; + function PEM_write_bio_ECPrivateKey(bp: PBIO; x: PEC_KEY; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; + + function PEM_read_bio_EC_PUBKEY(bp: PBIO; x: PPEC_KEY; cb: pem_password_cb; u: Pointer): PEC_KEY; + function PEM_write_bio_EC_PUBKEY(bp: PBIO; x: PEC_KEY): TIdC_INT; + // ~EC + + // DH + function PEM_read_bio_DHparams(bp: PBIO; x: PPDH; cb: pem_password_cb; u: Pointer): PDH; + function PEM_write_bio_DHparams(bp: PBIO; const x: PDH): TIdC_INT; + + function PEM_write_bio_DHxparams(bp: PBIO; const x: PDH): TIdC_INT; + // ~DH + + function PEM_read_bio_PrivateKey(bp: PBIO; x: PPEVP_PKEY; cb: pem_password_cb; u: Pointer): PEVP_PKEY; + function PEM_write_bio_PrivateKey(bp: PBIO; x: PEVP_PKEY; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; + + function PEM_read_bio_PUBKEY(bp: PBIO; x: PPEVP_PKEY; cb: pem_password_cb; u: Pointer): PEVP_PKEY; + function PEM_write_bio_PUBKEY(bp: PBIO; x: PEVP_PKEY): TIdC_INT; + + function PEM_write_bio_PrivateKey_traditional(bp: PBIO; x: PEVP_PKEY; const enc: PEVP_CIPHER; kstr: PByte; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; {introduced 1.1.0} + function PEM_write_bio_PKCS8PrivateKey_nid(bp: PBIO; x: PEVP_PKEY; nid: TIdC_INT; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; + function PEM_write_bio_PKCS8PrivateKey(bp: PBIO; x: PEVP_PKEY_METHOD; const enc: PEVP_CIPHER; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; + function i2d_PKCS8PrivateKey_bio(bp: PBIO; x: PEVP_PKEY; const enc: PEVP_CIPHER_CTX; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; + function i2d_PKCS8PrivateKey_nid_bio(bp: PBIO; x: PEVP_PKEY; nid: TIdC_INT; kstr: PIdAnsiChar; klen: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; + function d2i_PKCS8PrivateKey_bio(bp: PBIO; x: PPEVP_PKEY_CTX; cb: pem_password_cb; u: Pointer): PEVP_PKEY; + + function PEM_read_bio_Parameters(bp: PBIO; x: PPEVP_PKEY): PEVP_PKEY; + function PEM_write_bio_Parameters(bp: PBIO; x: PEVP_PKEY): TIdC_INT; + + function b2i_PrivateKey(const in_: PPByte; length: TIdC_LONG): PEVP_PKEY; + function b2i_PublicKey(const in_: PPByte; length: TIdC_LONG): PEVP_PKEY; + function b2i_PrivateKey_bio(in_: PBIO): PEVP_PKEY; + function b2i_PublicKey_bio(in_: PBIO): PEVP_PKEY; + function i2b_PrivateKey_bio(out_: PBIO; pk: PEVP_PKEY): TIdC_INT; + function i2b_PublicKey_bio(out_: PBIO; pk: PEVP_PKEY): TIdC_INT; + function b2i_PVK_bio(in_: PBIO; cb: pem_password_cb; u: Pointer): PEVP_PKEY; + function i2b_PVK_bio(out_: PBIO; pk: PEVP_PKEY; enclevel: TIdC_INT; cb: pem_password_cb; u: Pointer): TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pemerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pemerr.h2pas new file mode 100644 index 000000000..cdedb4ac2 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pemerr.h2pas @@ -0,0 +1,115 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_pemerr; + +interface + +// Headers for OpenSSL 1.1.1 +// pemerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + // PEM function codes + PEM_F_B2I_DSS = 127; + PEM_F_B2I_PVK_BIO = 128; + PEM_F_B2I_RSA = 129; + PEM_F_CHECK_BITLEN_DSA = 130; + PEM_F_CHECK_BITLEN_RSA = 131; + PEM_F_D2I_PKCS8PRIVATEKEY_BIO = 120; + PEM_F_D2I_PKCS8PRIVATEKEY_FP = 121; + PEM_F_DO_B2I = 132; + PEM_F_DO_B2I_BIO = 133; + PEM_F_DO_BLOB_HEADER = 134; + PEM_F_DO_I2B = 146; + PEM_F_DO_PK8PKEY = 126; + PEM_F_DO_PK8PKEY_FP = 125; + PEM_F_DO_PVK_BODY = 135; + PEM_F_DO_PVK_HEADER = 136; + PEM_F_GET_HEADER_AND_DATA = 143; + PEM_F_GET_NAME = 144; + PEM_F_I2B_PVK = 137; + PEM_F_I2B_PVK_BIO = 138; + PEM_F_LOAD_IV = 101; + PEM_F_PEM_ASN1_READ = 102; + PEM_F_PEM_ASN1_READ_BIO = 103; + PEM_F_PEM_ASN1_WRITE = 104; + PEM_F_PEM_ASN1_WRITE_BIO = 105; + PEM_F_PEM_DEF_CALLBACK = 100; + PEM_F_PEM_DO_HEADER = 106; + PEM_F_PEM_GET_EVP_CIPHER_INFO = 107; + PEM_F_PEM_READ = 108; + PEM_F_PEM_READ_BIO = 109; + PEM_F_PEM_READ_BIO_DHPARAMS = 141; + PEM_F_PEM_READ_BIO_EX = 145; + PEM_F_PEM_READ_BIO_PARAMETERS = 140; + PEM_F_PEM_READ_BIO_PRIVATEKEY = 123; + PEM_F_PEM_READ_DHPARAMS = 142; + PEM_F_PEM_READ_PRIVATEKEY = 124; + PEM_F_PEM_SIGNFINAL = 112; + PEM_F_PEM_WRITE = 113; + PEM_F_PEM_WRITE_BIO = 114; + PEM_F_PEM_WRITE_PRIVATEKEY = 139; + PEM_F_PEM_X509_INFO_READ = 115; + PEM_F_PEM_X509_INFO_READ_BIO = 116; + PEM_F_PEM_X509_INFO_WRITE_BIO = 117; + // PEM reason codes + PEM_R_BAD_BASE64_DECODE = 100; + PEM_R_BAD_DECRYPT = 101; + PEM_R_BAD_END_LINE = 102; + PEM_R_BAD_IV_CHARS = 103; + PEM_R_BAD_MAGIC_NUMBER = 116; + PEM_R_BAD_PASSWORD_READ = 104; + PEM_R_BAD_VERSION_NUMBER = 117; + PEM_R_BIO_WRITE_FAILURE = 118; + PEM_R_CIPHER_IS_NULL = 127; + PEM_R_ERROR_CONVERTING_PRIVATE_KEY = 115; + PEM_R_EXPECTING_PRIVATE_KEY_BLOB = 119; + PEM_R_EXPECTING_PUBLIC_KEY_BLOB = 120; + PEM_R_HEADER_TOO_LONG = 128; + PEM_R_INCONSISTENT_HEADER = 121; + PEM_R_KEYBLOB_HEADER_PARSE_ERROR = 122; + PEM_R_KEYBLOB_TOO_SHORT = 123; + PEM_R_MISSING_DEK_IV = 129; + PEM_R_NOT_DEK_INFO = 105; + PEM_R_NOT_ENCRYPTED = 106; + PEM_R_NOT_PROC_TYPE = 107; + PEM_R_NO_START_LINE = 108; + PEM_R_PROBLEMS_GETTING_PASSWORD = 109; + PEM_R_PVK_DATA_TOO_SHORT = 124; + PEM_R_PVK_TOO_SHORT = 125; + PEM_R_READ_KEY = 111; + PEM_R_SHORT_HEADER = 112; + PEM_R_UNEXPECTED_DEK_IV = 130; + PEM_R_UNSUPPORTED_CIPHER = 113; + PEM_R_UNSUPPORTED_ENCRYPTION = 114; + PEM_R_UNSUPPORTED_KEY_COMPONENTS = 126; + + function ERR_load_PEM_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs12.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs12.h2pas new file mode 100644 index 000000000..14df638be --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs12.h2pas @@ -0,0 +1,191 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_pkcs12; + +interface + +// Headers for OpenSSL 1.1.1 +// pkcs12.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_pkcs7, + IdOpenSSLHeaders_x509; + +const + PKCS12_KEY_ID = 1; + PKCS12_IV_ID = 2; + PKCS12_MAC_ID = 3; + + ///* Default iteration count */ + //# ifndef PKCS12_DEFAULT_ITER + //# define PKCS12_DEFAULT_ITER PKCS5_DEFAULT_ITER + //# endif + + PKCS12_MAC_KEY_LENGTH = 20; + + PKCS12_SALT_LEN = 8; + + ///* It's not clear if these are actually needed... */ + //# define PKCS12_key_gen PKCS12_key_gen_utf8 + //# define PKCS12_add_friendlyname PKCS12_add_friendlyname_utf8 + + (* MS key usage constants *) + KEY_EX = $10; + KEY_SIG = $80; + + PKCS12_ERROR = 0; + PKCS12_OK = 1; + +type + PKCS12_MAC_DATA_st = type Pointer; + PKCS12_MAC_DATA = PKCS12_MAC_DATA_st; + PPKCS12_MAC_DATA = ^PKCS12_MAC_DATA; + PPPKCS12_MAC_DATA = ^PPKCS12_MAC_DATA; + + PKCS12_st = type Pointer; + PKCS12 = PKCS12_st; + PPKCS12 = ^PKCS12; + PPPKCS12 = ^PPKCS12; + + PKCS12_SAFEBAG_st = type Pointer; + PKCS12_SAFEBAG = PKCS12_SAFEBAG_st; + PPKCS12_SAFEBAG = ^PKCS12_SAFEBAG; + PPPKCS12_SAFEBAG = ^PPKCS12_SAFEBAG; + +// DEFINE_STACK_OF(PKCS12_SAFEBAG) + + pkcs12_bag_st = type Pointer; + PKCS12_BAGS = pkcs12_bag_st; + PPKCS12_BAGS = ^PKCS12_BAGS; + PPPKCS12_BAGS = ^PPKCS12_BAGS; + + //ASN1_TYPE *PKCS8_get_attr(PKCS8_PRIV_KEY_INFO *p8, TIdC_INT attr_nid); + function PKCS12_mac_present(const p12: PPKCS12): TIdC_INT; {introduced 1.1.0} + procedure PKCS12_get0_mac(const pmac: PPASN1_OCTET_STRING; const pmacalg: PPX509_ALGOR; const psalt: PPASN1_OCTET_STRING; const piter: PPASN1_INTEGER; const p12: PPKCS12); {introduced 1.1.0} + + function PKCS12_SAFEBAG_get0_attr(const bag: PPKCS12_SAFEBAG; attr_nid: TIdC_INT): PASN1_TYPE; {introduced 1.1.0} + function PKCS12_SAFEBAG_get0_type(const bag: PPKCS12_SAFEBAG): PASN1_OBJECT; {introduced 1.1.0} + function PKCS12_SAFEBAG_get_nid(const bag: PPKCS12_SAFEBAG): TIdC_INT; {introduced 1.1.0} + function PKCS12_SAFEBAG_get_bag_nid(const bag: PPKCS12_SAFEBAG): TIdC_INT; {introduced 1.1.0} + + function PKCS12_SAFEBAG_get1_cert(const bag: PPKCS12_SAFEBAG): PX509; {introduced 1.1.0} + function PKCS12_SAFEBAG_get1_crl(const bag: PPKCS12_SAFEBAG): PX509_CRL; {introduced 1.1.0} +// const STACK_OF(PKCS12_SAFEBAG) *PKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag); + function PKCS12_SAFEBAG_get0_p8inf(const bag: PPKCS12_SAFEBAG): PPKCS8_PRIV_KEY_INFO; {introduced 1.1.0} + function PKCS12_SAFEBAG_get0_pkcs8(const bag: PPKCS12_SAFEBAG): PX509_SIG; {introduced 1.1.0} + + function PKCS12_SAFEBAG_create_cert(x509: PX509): PPKCS12_SAFEBAG; {introduced 1.1.0} + function PKCS12_SAFEBAG_create_crl(crl: PX509_CRL): PPKCS12_SAFEBAG; {introduced 1.1.0} + function PKCS12_SAFEBAG_create0_p8inf(p8: PPKCS8_PRIV_KEY_INFO): PPKCS12_SAFEBAG; {introduced 1.1.0} + function PKCS12_SAFEBAG_create0_pkcs8(p8: PX509_SIG): PPKCS12_SAFEBAG; {introduced 1.1.0} + function PKCS12_SAFEBAG_create_pkcs8_encrypt(pbe_nid: TIdC_INT; const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; p8inf: PPKCS8_PRIV_KEY_INFO): PPKCS12_SAFEBAG; {introduced 1.1.0} + + function PKCS12_item_pack_safebag(obj: Pointer; const it: PASN1_ITEM; nid1: TIdC_INT; nid2: TIdC_INT): PPKCS12_SAFEBAG; + function PKCS8_decrypt(const p8: PX509_SIG; const pass: PIdAnsiChar; passlen: TIdC_INT): PPKCS8_PRIV_KEY_INFO; + function PKCS12_decrypt_skey(const bag: PPKCS12_SAFEBAG; const pass: PIdAnsiChar; passlen: TIdC_INT): PPKCS8_PRIV_KEY_INFO; + function PKCS8_encrypt(pbe_nid: TIdC_INT; const cipher: PEVP_CIPHER; const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; p8: PPKCS8_PRIV_KEY_INFO): PX509_SIG; + function PKCS8_set0_pbe(const pass: PIdAnsiChar; passlen: TIdC_INT; p8inf: PPKCS8_PRIV_KEY_INFO; pbe: PX509_ALGOR): PX509_SIG; {introduced 1.1.0} +// PKCS7 *PKCS12_pack_p7data(STACK_OF(PKCS12_SAFEBAG) *sk); +// STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7); +// function PKCS12_pack_p7encdata(TIdC_INT pbe_nid, const PIdAnsiChar pass, TIdC_INT passlen, +// Byte *salt, TIdC_INT saltlen, TIdC_INT iter, +// STACK_OF(PKCS12_SAFEBAG) *bags): PPKCS7; +// STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const PIdAnsiChar *pass, +// TIdC_INT passlen); + +// TIdC_INT PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes); +// STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12); + + function PKCS12_add_localkeyid(bag: PPKCS12_SAFEBAG; name: PByte; namelen: TIdC_INT): TIdC_INT; + function PKCS12_add_friendlyname_asc(bag: PPKCS12_SAFEBAG; const name: PIdAnsiChar; namelen: TIdC_INT): TIdC_INT; + function PKCS12_add_friendlyname_utf8(bag: PPKCS12_SAFEBAG; const name: PIdAnsiChar; namelen: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function PKCS12_add_CSPName_asc(bag: PPKCS12_SAFEBAG; const name: PIdAnsiChar; namelen: TIdC_INT): TIdC_INT; + function PKCS12_add_friendlyname_uni(bag: PPKCS12_SAFEBAG; const name: PByte; namelen: TIdC_INT): TIdC_INT; + function PKCS8_add_keyusage(p8: PPKCS8_PRIV_KEY_INFO; usage: TIdC_INT): TIdC_INT; +// function PKCS12_get_attr_gen(const STACK_OF(X509_ATTRIBUTE) *attrs; TIdC_INT attr_nid): PASN1_TYPE; + function PKCS12_get_friendlyname(bag: PPKCS12_SAFEBAG): PIdAnsiChar; +// const STACK_OF(X509_ATTRIBUTE) *PKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag); + function PKCS12_pbe_crypt(const algor: PX509_ALGOR; const pass: PIdAnsiChar; passlen: TIdC_INT; const in_: PByte; inlen: TIdC_INT; data: PPByte; datalen: PIdC_INT; en_de: TIdC_INT): PByte; + function PKCS12_item_decrypt_d2i(const algor: PX509_ALGOR; const it: PASN1_ITEM; const pass: PIdAnsiChar; passlen: TIdC_INT; const oct: PASN1_OCTET_STRING; zbuf: TIdC_INT): Pointer; + function PKCS12_item_i2d_encrypt(algor: PX509_ALGOR; const it: PASN1_ITEM; const pass: PIdAnsiChar; passlen: TIdC_INT; obj: Pointer; zbuf: TIdC_INT): PASN1_OCTET_STRING; + function PKCS12_init(mode: TIdC_INT): PPKCS12; + function PKCS12_key_gen_asc(const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; id: TIdC_INT; iter: TIdC_INT; n: TIdC_INT; out_: PByte; const md_type: PEVP_MD): TIdC_INT; + function PKCS12_key_gen_uni(pass: PByte; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; id: TIdC_INT; iter: TIdC_INT; n: TIdC_INT; out_: PByte; const md_type: PEVP_MD): TIdC_INT; + function PKCS12_key_gen_utf8(const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; id: TIdC_INT; iter: TIdC_INT; n: TIdC_INT; out_: PByte; const md_type: PEVP_MD): TIdC_INT; {introduced 1.1.0} + function PKCS12_PBE_keyivgen(ctx: PEVP_CIPHER_CTX; const pass: PIdAnsiChar; passlen: TIdC_INT; param: PASN1_TYPE; const cipher: PEVP_CIPHER; const md_type: PEVP_MD; en_de: TIdC_INT): TIdC_INT; + function PKCS12_gen_mac(p12: PPKCS12; const pass: PIdAnsiChar; passlen: TIdC_INT; mac: PByte; maclen: PIdC_UINT): TIdC_INT; + function PKCS12_verify_mac(p12: PPKCS12; const pass: PIdAnsiChar; passlen: TIdC_INT): TIdC_INT; + function PKCS12_set_mac(p12: PPKCS12; const pass: PIdAnsiChar; passlen: TIdC_INT; salt: PByte; saltlen: TIdC_INT; iter: TIdC_INT; const md_type: PEVP_MD): TIdC_INT; + function PKCS12_setup_mac(p12: PPKCS12; iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT; const md_type: PEVP_MD): TIdC_INT; + function OPENSSL_asc2uni(const asc: PIdAnsiChar; asclen: TIdC_INT; uni: PPByte; unilen: PIdC_INT): PByte; + function OPENSSL_uni2asc(const uni: PByte; unilen: TIdC_INT): PIdAnsiChar; + function OPENSSL_utf82uni(const asc: PIdAnsiChar; asclen: TIdC_INT; uni: PPByte; unilen: PIdC_INT): PByte; {introduced 1.1.0} + function OPENSSL_uni2utf8(const uni: PByte; unilen: TIdC_INT): PIdAnsiChar; {introduced 1.1.0} + + function PKCS12_new: PPKCS12; + procedure PKCS12_free(a: PPKCS12); + function d2i_PKCS12(a: PPPKCS12; const in_: PPByte; len: TIdC_LONG): PPKCS12; + function i2d_PKCS12(a: PPKCS12; out_: PPByte): TIdC_INT; + function PKCS12_it: PASN1_ITEM; + + function PKCS12_MAC_DATA_new: PPKCS12_MAC_DATA; + procedure PKCS12_MAC_DATA_free(a: PPKCS12_MAC_DATA); + function d2i_PKCS12_MAC_DATA(a: PPPKCS12_MAC_DATA; const in_: PPByte; len: TIdC_LONG): PPKCS12_MAC_DATA; + function i2d_PKCS12_MAC_DATA(a: PPKCS12_MAC_DATA; out_: PPByte): TIdC_INT; + function PKCS12_MAC_DATA_it: PASN1_ITEM; + + function PKCS12_SAFEBAG_new: PPKCS12_SAFEBAG; + procedure PKCS12_SAFEBAG_free(a: PPKCS12_SAFEBAG); + function d2i_PKCS12_SAFEBAG(a: PPPKCS12_SAFEBAG; const in_: PPByte; len: TIdC_LONG): PPKCS12_SAFEBAG; + function i2d_PKCS12_SAFEBAG(a: PPKCS12_SAFEBAG; out_: PPByte): TIdC_INT; + function PKCS12_SAFEBAG_it: PASN1_ITEM; + + function PKCS12_BAGS_new: PPKCS12_BAGS; + procedure PKCS12_BAGS_free(a: PPKCS12_BAGS); + function d2i_PKCS12_BAGS(a: PPPKCS12_BAGS; const in_: PPByte; len: TIdC_LONG): PPKCS12_BAGS; + function i2d_PKCS12_BAGS(a: PPKCS12_BAGS; out_: PPByte): TIdC_INT; + function PKCS12_BAGS_it: PASN1_ITEM; + + procedure PKCS12_PBE_add(v: Pointer); + function PKCS12_parse(p12: PPKCS12; const pass: PIdAnsiChar; out pkey: PEVP_PKEY; out cert: PX509; ca: PPStack_Of_X509): TIdC_INT; + function PKCS12_create(const pass: PIdAnsiChar; const name: PIdAnsiChar; pkey: PEVP_PKEY; cert: PX509; ca: PStack_Of_X509; nid_key: TIdC_INT; nid_cert: TIdC_INT; iter: TIdC_INT; mac_iter: TIdC_INT; keytype: TIdC_INT): PPKCS12; + +// function PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags; X509 *cert): PKCS12_SAFEBAG; +// PKCS12_SAFEBAG *PKCS12_add_key(STACK_OF(PKCS12_SAFEBAG) **pbags; +// EVP_PKEY *key; TIdC_INT key_usage; iter: TIdC_INT; +// TIdC_INT key_nid; const pass: PIdAnsiChar); +// TIdC_INT PKCS12_add_safe(STACK_OF(PKCS7) **psafes; STACK_OF(PKCS12_SAFEBAG) *bags; +// TIdC_INT safe_nid; iter: TIdC_INT; const pass: PIdAnsiChar); +// PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes; TIdC_INT p7_nid); + + function i2d_PKCS12_bio(bp: PBIO; p12: PPKCS12): TIdC_INT; + function d2i_PKCS12_bio(bp: PBIO; p12: PPPKCS12): PPKCS12; + function PKCS12_newpass(p12: PPKCS12; const oldpass: PIdAnsiChar; const newpass: PIdAnsiChar): TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs7.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs7.h2pas new file mode 100644 index 000000000..b614b1add --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs7.h2pas @@ -0,0 +1,340 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_pkcs7; + +interface + +// Headers for OpenSSL 1.1.1 +// pkcs7.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + PKCS7_S_HEADER = 0; + PKCS7_S_BODY = 1; + PKCS7_S_TAIL = 2; + + PKCS7_OP_SET_DETACHED_SIGNATURE = 1; + PKCS7_OP_GET_DETACHED_SIGNATURE = 2; + + (* S/MIME related flags *) + PKCS7_TEXT = $1; + PKCS7_NOCERTS = $2; + PKCS7_NOSIGS = $4; + PKCS7_NOCHAIN = $8; + PKCS7_NOINTERN = $10; + PKCS7_NOVERIFY = $20; + PKCS7_DETACHED = $40; + PKCS7_BINARY = $80; + PKCS7_NOATTR = $100; + PKCS7_NOSMIMECAP = $200; + PKCS7_NOOLDMIMETYPE = $400; + PKCS7_CRLFEOL = $800; + // Added '_CONST' to avoid name clashes + PKCS7_STREAM_CONST = $1000; + PKCS7_NOCRL = $2000; + PKCS7_PARTIAL = $4000; + PKCS7_REUSE_DIGEST = $8000; + PKCS7_NO_DUAL_CONTENT = $10000; + + (* Flags: for compatibility with older code *) + SMIME_TEXT = PKCS7_TEXT; + SMIME_NOCERTS = PKCS7_NOCERTS; + SMIME_NOSIGS = PKCS7_NOSIGS; + SMIME_NOCHAIN = PKCS7_NOCHAIN; + SMIME_NOINTERN = PKCS7_NOINTERN; + SMIME_NOVERIFY = PKCS7_NOVERIFY; + SMIME_DETACHED = PKCS7_DETACHED; + SMIME_BINARY = PKCS7_BINARY; + SMIME_NOATTR = PKCS7_NOATTR; + + (* CRLF ASCII canonicalisation *) + SMIME_ASCIICRLF = $80000; + +type + PPKCS7 = ^PKCS7; + PPPKCS7 = ^PPKCS7; + + PPKCS7_DIGEST = ^PKCS7_DIGEST; + PPPKCS7_DIGEST = ^PPKCS7_DIGEST; + + pkcs7_issuer_and_serial_st = record + issue: PX509_NAME; + serial: PASN1_INTEGER; + end; + PKCS7_ISSUER_AND_SERIAL = pkcs7_issuer_and_serial_st; + PPKCS7_ISSUER_AND_SERIAL = ^PKCS7_ISSUER_AND_SERIAL; + PPPKCS7_ISSUER_AND_SERIAL = ^PPKCS7_ISSUER_AND_SERIAL; + + pkcs7_signer_info_st = record + version: PASN1_INTEGER; + issuer_and_serial: PPKCS7_ISSUER_AND_SERIAL; + digest_alg: PX509_ALGOR; + auth_attr: Pointer; //PSTACK_OF_X509_ATTRIBUTE; + digest_enc_alg: PX509_ALGOR; + enc_digest: PASN1_OCTET_STRING; + unauth_attr: Pointer; //PSTACK_OF_X509_ATTRIBUTE; + pkey: PEVP_PKEY; + end; + PKCS7_SIGNER_INFO = pkcs7_issuer_and_serial_st; + PPKCS7_SIGNER_INFO = ^PKCS7_SIGNER_INFO; + PPPKCS7_SIGNER_INFO = ^PPKCS7_SIGNER_INFO; + + pkcs7_recip_info_st = record + version: PASN1_INTEGER; + issuer_and_serial: PPKCS7_ISSUER_AND_SERIAL; + key_enc_algor: PX509_ALGOR; + enc_key: PASN1_OCTET_STRING; + cert: PX509; + end; + PKCS7_RECIP_INFO = pkcs7_recip_info_st; + PPKCS7_RECIP_INFO = ^PKCS7_RECIP_INFO; + PPPKCS7_RECIP_INFO = ^PPKCS7_RECIP_INFO; + + pkcs7_signed_st = record + version: PASN1_INTEGER; + md_algs: Pointer; //PSTACK_OF_X509_ALGOR; + cert: Pointer; //PSTACK_OF_X509; + crl: Pointer; //PSTACK_OF_X509_CRL; + signer_info: Pointer; //PSTACK_OF_PKCS7_SIGNER_INFO; + contents: PPKCS7; + end; + PKCS7_SIGNED = pkcs7_signed_st; + PPKCS7_SIGNED = ^PKCS7_SIGNED; + PPPKCS7_SIGNED = ^PPKCS7_SIGNED; + + pkcs7_enc_content_st = record + content_type: PASN1_OBJECT; + algorithm: PX509_ALGOR; + enc_data: PASN1_OCTET_STRING; + cipher: PEVP_CIPHER; + end; + PKCS7_ENC_CONTENT = pkcs7_enc_content_st; + PPKCS7_ENC_CONTENT = ^PKCS7_ENC_CONTENT; + PPPKCS7_ENC_CONTENT = ^PPKCS7_ENC_CONTENT; + + pkcs7_enveloped_st = record + version: PASN1_INTEGER; + recipientinfo: Pointer; //PSTACK_OF_PKCS7_RECIP_INFO; + enc_data: PPKCS7_ENC_CONTENT; + end; + PKCS7_ENVELOPE = pkcs7_enveloped_st; + PPKCS7_ENVELOPE = ^PKCS7_ENVELOPE; + PPPKCS7_ENVELOPE = ^PPKCS7_ENVELOPE; + + pkcs7_signedandenveloped_st = record + version: PASN1_INTEGER; + md_algs: Pointer; //PSTACK_OF_X509_ALGOR; + cert: Pointer; //PSTACK_OF_X509; + crl: Pointer; //PSTACK_OF_X509_CRL; + signer_info: Pointer; //PSTACK_OF_PKCS7_SIGNER_INFO; + enc_data: PPKCS7_ENC_CONTENT; + recipientinfo: Pointer; //PSTACK_OF_PKCS7_RECIP_INFO; + end; + PKCS7_SIGN_ENVELOPE = pkcs7_signedandenveloped_st; + PPKCS7_SIGN_ENVELOPE = ^PKCS7_SIGN_ENVELOPE; + PPPKCS7_SIGN_ENVELOPE = ^PPKCS7_SIGN_ENVELOPE; + + pkcs7_encrypted_st = record + version: PASN1_INTEGER; + enc_data: PPKCS7_ENC_CONTENT; + end; + // Added '_STRUCT' to avoid name clashes + PKCS7_ENCRYPT_STRUCT = pkcs7_encrypted_st; + PPKCS7_ENCRYPT_STRUCT = ^PKCS7_ENCRYPT_STRUCT; + PPPKCS7_ENCRYPT_STRUCT = ^PPKCS7_ENCRYPT_STRUCT; + + pkcs7_st_d = record + case Integer of + 0: (ptr: PIdAnsiChar); + 1: (data: PASN1_OCTET_STRING); + 2: (sign: PPKCS7_SIGNED); + 3: (enveloped: PPKCS7_ENVELOPE); + 4: (signed_and_enveloped: PPKCS7_SIGN_ENVELOPE); + 5: (digest: PPKCS7_DIGEST); + 6: (encrypted: PPKCS7_ENCRYPT_STRUCT); + 7: (other: PASN1_TYPE); + end; + pkcs7_st = record + asn1: PByte; + length: TIdC_LONG; + state: TIdC_INT; + detached: TIdC_INT; + type_: PASN1_OBJECT; + d: pkcs7_st_d; + end; + PKCS7 = pkcs7_st; + + pkcs7_digest_st = record + version: PASN1_INTEGER; + md: PX509_ALGOR; + contents: PPKCS7; + digest: PASN1_OCTET_STRING; + end; + PKCS7_DIGEST = pkcs7_digest_st; + + //function PKCS7_ISSUER_AND_SERIAL_new: PPKCS7_ISSUER_AND_SERIAL; + //procedure PKCS7_ISSUER_AND_SERIAL_free(a: PPKCS7_ISSUER_AND_SERIAL); + //function d2i_PKCS7_ISSUER_AND_SERIAL(a: PPPKCS7_ISSUER_AND_SERIAL; const in_: PByte; len: TIdC_LONG): PPKCS7_ISSUER_AND_SERIAL; + //function i2d_PKCS7_ISSUER_AND_SERIAL(const a: PPKCS7_ISSUER_AND_SERIAL; out_: PByte): TIdC_INT; + //function PKCS7_ISSUER_AND_SERIAL_it: PASN1_ITEM; + + function PKCS7_ISSUER_AND_SERIAL_digest(data: PPKCS7_ISSUER_AND_SERIAL; const type_: PEVP_MD; md: PByte; len: PIdC_UINT): TIdC_INT; + + function PKCS7_dup(p7: PPKCS7): PPKCS7; + function d2i_PKCS7_bio(bp: PBIO; p7: PPPKCS7): PPKCS7; + function i2d_PKCS7_bio(bp: PBIO; p7: PPKCS7): TIdC_INT; + function i2d_PKCS7_bio_stream(out_: PBIO; p7: PPKCS7; in_: PBIO; flags: TIdC_INT): TIdC_INT; + function PEM_write_bio_PKCS7_stream(out_: PBIO; p7: PPKCS7; in_: PBIO; flags: TIdC_INT): TIdC_INT; + +// function PKCS7_SIGNER_INFO_new: PPKCS7_SIGNER_INFO; +// procedure PKCS7_SIGNER_INFO_free(a: PPKCS7_SIGNER_INFO); +// function d2i_PKCS7_SIGNER_INFO(a: PPPKCS7_SIGNER_INFO; const in_: PByte; len: TIdC_LONG): PPKCS7_SIGNER_INFO; +// function i2d_PKCS7_SIGNER_INFO(const a: PPKCS7_SIGNER_INFO; out_: PByte): TIdC_INT; +// function PKCS7_SIGNER_INFO_it: PASN1_ITEM; +// +// function PKCS7_RECIP_INFO_new: PPKCS7_RECIP_INFO; +// procedure PKCS7_RECIP_INFO_free(a: PPKCS7_RECIP_INFO); +// function d2i_PKCS7_RECIP_INFO(a: PPPKCS7_RECIP_INFO; const in_: PByte; len: TIdC_LONG): PPKCS7_RECIP_INFO; +// function i2d_PKCS7_RECIP_INFO(const a: PPKCS7_RECIP_INFO; out_: PByte): TIdC_INT; +// function PKCS7_RECIP_INFO_it: PASN1_ITEM; +// +// function PKCS7_SIGNED_new: PPKCS7_SIGNED; +// procedure PKCS7_SIGNED_free(a: PPKCS7_SIGNED); +// function d2i_PKCS7_SIGNED(a: PPPKCS7_SIGNED; const in_: PByte; len: TIdC_LONG): PPKCS7_SIGNED; +// function i2d_PKCS7_SIGNED(const a: PPKCS7_SIGNED; out_: PByte): TIdC_INT; +// function PKCS7_SIGNED_it: PASN1_ITEM; +// +// function PKCS7_ENC_CONTENT_new: PPKCS7_ENC_CONTENT; +// procedure PKCS7_ENC_CONTENT_free(a: PPKCS7_ENC_CONTENT); +// function d2i_PKCS7_ENC_CONTENT(a: PPPKCS7_ENC_CONTENT; const in_: PByte; len: TIdC_LONG): PPKCS7_ENC_CONTENT; +// function i2d_PKCS7_ENC_CONTENT(const a: PPKCS7_ENC_CONTENT; out_: PByte): TIdC_INT; +// function PKCS7_ENC_CONTENT_it: PASN1_ITEM; +// +// function PKCS7_ENVELOPE_new: PPKCS7_ENVELOPE; +// procedure PKCS7_ENVELOPE_free(a: PPKCS7_ENVELOPE); +// function d2i_PKCS7_ENVELOPE(a: PPPKCS7_ENVELOPE; const in_: PByte; len: TIdC_LONG): PPKCS7_ENVELOPE; +// function i2d_PKCS7_ENVELOPE(const a: PPKCS7_ENVELOPE; out_: PByte): TIdC_INT; +// function PKCS7_ENVELOPE_it: PASN1_ITEM; +// +// function PKCS7_SIGN_ENVELOPE_new: PPKCS7_SIGN_ENVELOPE; +// procedure PKCS7_SIGN_ENVELOPE_free(a: PPKCS7_SIGN_ENVELOPE); +// function d2i_PKCS7_SIGN_ENVELOPE(a: PPPKCS7_SIGN_ENVELOPE; const in_: PByte; len: TIdC_LONG): PPKCS7_SIGN_ENVELOPE; +// function i2d_PKCS7_SIGN_ENVELOPE(const a: PPKCS7_SIGN_ENVELOPE; out_: PByte): TIdC_INT; +// function PKCS7_SIGN_ENVELOPE_it: PASN1_ITEM; +// +// function PKCS7_DIGEST_new: PPKCS7_DIGEST; +// procedure PKCS7_DIGEST_free(a: PPKCS7_DIGEST); +// function d2i_PKCS7_DIGEST(a: PPPKCS7_DIGEST; const in_: PByte; len: TIdC_LONG): PPKCS7_DIGEST; +// function i2d_PKCS7_DIGEST(const a: PPKCS7_DIGEST; out_: PByte): TIdC_INT; +// function PKCS7_DIGEST_it: PASN1_ITEM; +// +// function PKCS7_ENCRYPT_new: PPKCS7_ENCRYPT_STRUCT; +// procedure PKCS7_ENCRYPT_free(a: PPKCS7_ENCRYPT_STRUCT); +// function d2i_PKCS7_ENCRYPT(a: PPPKCS7_ENCRYPT_STRUCT; const in_: PByte; len: TIdC_LONG): PPKCS7_ENCRYPT_STRUCT; +// function i2d_PKCS7_ENCRYPT(const a: PPKCS7_ENCRYPT_STRUCT; out_: PByte): TIdC_INT; +// function PKCS7_ENCRYPT_it: PASN1_ITEM; +// +// function PKCS7_new: PPKCS7; +// procedure PKCS7_free(a: PPKCS7); +// function d2i_PKCS7(a: PPPKCS7; const in_: PByte; len: TIdC_LONG): PPKCS7; +// function i2d_PKCS7(const a: PPKCS7; out_: PByte): TIdC_INT; +// function PKCS7_it: PASN1_ITEM; +// +// function PKCS7_ATTR_SIGN_it: PASN1_ITEM; +// +// function PKCS7_ATTR_VERIFY_it: PASN1_ITEM; +// +// function i2d_PKCS7_NDEF(const a: PPKCS7; out_: PPByte): TIdC_INT; +// function PKCS7_print_ctx(out_: PBIO; const x: PPKCS7; indent: TIdC_INT; const pctx: PASN1_PCTX): TIdC_INT; + + function PKCS7_ctrl(p7: PPKCS7; cmd: TIdC_INT; larg: TIdC_LONG; parg: PIdAnsiChar): TIdC_LONG; + + function PKCS7_set_type(p7: PPKCS7; type_: TIdC_INT): TIdC_INT; + function PKCS7_set0_type_other(p7: PPKCS7; type_: TIdC_INT; other: PASN1_TYPE): TIdC_INT; + function PKCS7_set_content(p7: PPKCS7; p7_data: PPKCS7): TIdC_INT; + function PKCS7_SIGNER_INFO_set(p7i: PPKCS7_SIGNER_INFO; x509: PX509; pkey: PEVP_PKEY; const dgst: PEVP_MD): TIdC_INT; + function PKCS7_SIGNER_INFO_sign(si: PPKCS7_SIGNER_INFO): TIdC_INT; + function PKCS7_add_signer(p7: PPKCS7; p7i: PPKCS7_SIGNER_INFO): TIdC_INT; + function PKCS7_add_certificate(p7: PPKCS7; x509: PX509): TIdC_INT; + function PKCS7_add_crl(p7: PPKCS7; x509: PX509_CRL): TIdC_INT; + function PKCS7_content_new(p7: PPKCS7; nid: TIdC_INT): TIdC_INT; + function PKCS7_dataVerify(cert_store: PX509_STORE; ctx: PX509_STORE_CTX; bio: PBIO; p7: PPKCS7; si: PPKCS7_SIGNER_INFO): TIdC_INT; + function PKCS7_signatureVerify(bio: PBIO; p7: PPKCS7; si: PPKCS7_SIGNER_INFO; x509: PX509): TIdC_INT; + + function PKCS7_dataInit(p7: PPKCS7; bio: PBIO): PBIO; + function PKCS7_dataFinal(p7: PPKCS7; bio: PBIO): TIdC_INT; + function PKCS7_dataDecode(p7: PPKCS7; pkey: PEVP_PKEY; in_bio: PBIO; pcert: PX509): PBIO; + + function PKCS7_add_signature(p7: PPKCS7; x509: PX509; pkey: PEVP_PKEY; const dgst: PEVP_MD): PPKCS7_SIGNER_INFO; + function PKCS7_cert_from_signer_info(p7: PPKCS7; si: PPKCS7_SIGNER_INFO): PX509; + function PKCS7_set_digest(p7: PPKCS7; const md: PEVP_MD): TIdC_INT; +// function PKCS7_get_signer_info(p7: PPKCS7): PSTACK_OF_PKCS7_SIGNER_INFO; + + function PKCS7_add_recipient(p7: PPKCS7; x509: PX509): PPKCS7_RECIP_INFO; + procedure PKCS7_SIGNER_INFO_get0_algs(si: PPKCS7_SIGNER_INFO; pk: PPEVP_PKEY; pdig: PPX509_ALGOR; psig: PPX509_ALGOR); + procedure PKCS7_RECIP_INFO_get0_alg(ri: PPKCS7_RECIP_INFO; penc: PPX509_ALGOR); + function PKCS7_add_recipient_info(p7: PPKCS7; ri: PPKCS7_RECIP_INFO): TIdC_INT; + function PKCS7_RECIP_INFO_set(p7i: PPKCS7_RECIP_INFO; x509: PX509): TIdC_INT; + function PKCS7_set_cipher(p7: PPKCS7; const cipher: PEVP_CIPHER): TIdC_INT; + function PKCS7_stream(boundary: PPPByte; p7: PPKCS7): TIdC_INT; + + function PKCS7_get_issuer_and_serial(p7: PPKCS7; idx: TIdC_INT): PPKCS7_ISSUER_AND_SERIAL; + //function PKCS7_digest_from_attributes(sk: Pointer{PSTACK_OF_X509_ATTRIBUTE}): PASN1_OCTET_STRING; + function PKCS7_add_signed_attribute(p7si: PPKCS7_SIGNER_INFO; nid: TIdC_INT; type_: TIdC_INT; data: Pointer): TIdC_INT; + function PKCS7_add_attribute(p7si: PPKCS7_SIGNER_INFO; nid: TIdC_INT; atrtype: TIdC_INT; value: Pointer): TIdC_INT; + function PKCS7_get_attribute(si: PPKCS7_SIGNER_INFO; nid: TIdC_INT): PASN1_TYPE; + function PKCS7_get_signed_attribute(si: PPKCS7_SIGNER_INFO; nid: TIdC_INT): PASN1_TYPE; + //function PKCS7_set_signed_attributes(p7si: PPKCS7_SIGNER_INFO; sk: PSTACK_OF_X509): TIdC_INT; + //function PKCS7_set_attributes(p7si: PPKCS7_SIGNER_INFO; sk: PSTACK_OF_X509_ATTRIBUTE): TIdC_INT; + + //function PKCS7_sign(signcert: PX509; pkey: PEVP_PKEY; certs: PSTACK_OF_X509; data: PBIO; flags: TIdC_INT): PPKCS7; + + function PKCS7_sign_add_signer(p7: PPKCS7; signcert: PX509; pkey: PEVP_PKEY; const md: PEVP_MD; flags: TIdC_INT): PPKCS7_SIGNER_INFO; + + function PKCS7_final(p7: PPKCS7; data: PBIO; flags: TIdC_INT): TIdC_INT; + //function PKCS7_verify(p7: PPKCS7; certs: PSTACK_OF_X509; store: PX509_STORE; indata: PBIO; out_: PBIO; flags: TIdC_INT): TIdC_INT; + //function PKCS7_get0_signers(p7: PPKCS7; certs: PSTACK_OF_X509; flags: TIdC_INT): PSTACK_OF_X509; + //function PKCS7_encrypt(certs: PSTACK_OF_X509; in_: PBIO; const cipher: PEVP_CIPHER; flags: TIdC_INT): PPKCS7; + function PKCS7_decrypt(p7: PPKCS7; pkey: PEVP_PKEY; cert: PX509; data: PBIO; flags: TIdC_INT): TIdC_INT; + + //function PKCS7_add_attrib_smimecap(si: PPKCS7_SIGNER_INFO; cap: PSTACK_OF_X509_ALGOR): TIdC_INT; + //function PKCS7_get_smimecap(si: PPKCS7_SIGNER_INFO): PSTACK_OF_X509_ALGOR; + //function PKCS7_simple_smimecap(sk: PSTACK_OF_X509_ALGOR; nid: TIdC_INT; arg: TIdC_INT): TIdC_INT; + + function PKCS7_add_attrib_content_type(si: PPKCS7_SIGNER_INFO; coid: PASN1_OBJECT): TIdC_INT; + function PKCS7_add0_attrib_signing_time(si: PPKCS7_SIGNER_INFO; t: PASN1_TIME): TIdC_INT; + function PKCS7_add1_attrib_digest(si: PPKCS7_SIGNER_INFO; const md: PByte; mdlen: TIdC_INT): TIdC_INT; + + function SMIME_write_PKCS7(bio: PBIO; p7: PPKCS7; data: PBIO; flags: TIdC_INT): TIdC_INT; + function SMIME_read_PKCS7(bio: PBIO; bcont: PPBIO): PPKCS7; + + function BIO_new_PKCS7(out_: PBIO; p7: PPKCS7): PBIO; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs7err.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs7err.h2pas new file mode 100644 index 000000000..8c06b2367 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_pkcs7err.h2pas @@ -0,0 +1,120 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_pkcs7err; + +interface + +// Headers for OpenSSL 1.1.1 +// pkcs7err.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * PKCS7 function codes. + *) + PKCS7_F_DO_PKCS7_SIGNED_ATTRIB = 136; + PKCS7_F_PKCS7_ADD0_ATTRIB_SIGNING_TIME = 135; + PKCS7_F_PKCS7_ADD_ATTRIB_SMIMECAP = 118; + PKCS7_F_PKCS7_ADD_CERTIFICATE = 100; + PKCS7_F_PKCS7_ADD_CRL = 101; + PKCS7_F_PKCS7_ADD_RECIPIENT_INFO = 102; + PKCS7_F_PKCS7_ADD_SIGNATURE = 131; + PKCS7_F_PKCS7_ADD_SIGNER = 103; + PKCS7_F_PKCS7_BIO_ADD_DIGEST = 125; + PKCS7_F_PKCS7_COPY_EXISTING_DIGEST = 138; + PKCS7_F_PKCS7_CTRL = 104; + PKCS7_F_PKCS7_DATADECODE = 112; + PKCS7_F_PKCS7_DATAFINAL = 128; + PKCS7_F_PKCS7_DATAINIT = 105; + PKCS7_F_PKCS7_DATAVERIFY = 107; + PKCS7_F_PKCS7_DECRYPT = 114; + PKCS7_F_PKCS7_DECRYPT_RINFO = 133; + PKCS7_F_PKCS7_ENCODE_RINFO = 132; + PKCS7_F_PKCS7_ENCRYPT = 115; + PKCS7_F_PKCS7_FINAL = 134; + PKCS7_F_PKCS7_FIND_DIGEST = 127; + PKCS7_F_PKCS7_GET0_SIGNERS = 124; + PKCS7_F_PKCS7_RECIP_INFO_SET = 130; + PKCS7_F_PKCS7_SET_CIPHER = 108; + PKCS7_F_PKCS7_SET_CONTENT = 109; + PKCS7_F_PKCS7_SET_DIGEST = 126; + PKCS7_F_PKCS7_SET_TYPE = 110; + PKCS7_F_PKCS7_SIGN = 116; + PKCS7_F_PKCS7_SIGNATUREVERIFY = 113; + PKCS7_F_PKCS7_SIGNER_INFO_SET = 129; + PKCS7_F_PKCS7_SIGNER_INFO_SIGN = 139; + PKCS7_F_PKCS7_SIGN_ADD_SIGNER = 137; + PKCS7_F_PKCS7_SIMPLE_SMIMECAP = 119; + PKCS7_F_PKCS7_VERIFY = 117; + + (* + * PKCS7 reason codes. + *) + PKCS7_R_CERTIFICATE_VERIFY_ERROR = 117; + PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER = 144; + PKCS7_R_CIPHER_NOT_INITIALIZED = 116; + PKCS7_R_CONTENT_AND_DATA_PRESENT = 118; + PKCS7_R_CTRL_ERROR = 152; + PKCS7_R_DECRYPT_ERROR = 119; + PKCS7_R_DIGEST_FAILURE = 101; + PKCS7_R_ENCRYPTION_CTRL_FAILURE = 149; + PKCS7_R_ENCRYPTION_NOT_SUPPORTED_FOR_THIS_KEY_TYPE = 150; + PKCS7_R_ERROR_ADDING_RECIPIENT = 120; + PKCS7_R_ERROR_SETTING_CIPHER = 121; + PKCS7_R_INVALID_NULL_POINTER = 143; + PKCS7_R_INVALID_SIGNED_DATA_TYPE = 155; + PKCS7_R_NO_CONTENT = 122; + PKCS7_R_NO_DEFAULT_DIGEST = 151; + PKCS7_R_NO_MATCHING_DIGEST_TYPE_FOUND = 154; + PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE = 115; + PKCS7_R_NO_SIGNATURES_ON_DATA = 123; + PKCS7_R_NO_SIGNERS = 142; + PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE = 104; + PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR = 124; + PKCS7_R_PKCS7_ADD_SIGNER_ERROR = 153; + PKCS7_R_PKCS7_DATASIGN = 145; + PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE = 127; + PKCS7_R_SIGNATURE_FAILURE = 105; + PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND = 128; + PKCS7_R_SIGNING_CTRL_FAILURE = 147; + PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE = 148; + PKCS7_R_SMIME_TEXT_ERROR = 129; + PKCS7_R_UNABLE_TO_FIND_CERTIFICATE = 106; + PKCS7_R_UNABLE_TO_FIND_MEM_BIO = 107; + PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST = 108; + PKCS7_R_UNKNOWN_DIGEST_TYPE = 109; + PKCS7_R_UNKNOWN_OPERATION = 110; + PKCS7_R_UNSUPPORTED_CIPHER_TYPE = 111; + PKCS7_R_UNSUPPORTED_CONTENT_TYPE = 112; + PKCS7_R_WRONG_CONTENT_TYPE = 113; + PKCS7_R_WRONG_PKCS7_TYPE = 114; + + function ERR_load_PKCS7_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rand.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rand.h2pas new file mode 100644 index 000000000..f6f1238ab --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rand.h2pas @@ -0,0 +1,78 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_rand; + +interface + +// Headers for OpenSSL 1.1.1 +// rand.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +type + rand_meth_st_seed = function (const buf: Pointer; num: TIdC_INT): TIdC_INT; cdecl; + rand_meth_st_bytes = function (buf: PByte; num: TIdC_INT): TIdC_INT; cdecl; + rand_meth_st_cleanup = procedure; cdecl; + rand_meth_st_add = function (const buf: Pointer; num: TIdC_INT; randomness: TIdC_DOUBLE): TIdC_INT; cdecl; + rand_meth_st_pseudorand = function (buf: PByte; num: TIdC_INT): TIdC_INT; cdecl; + rand_meth_st_status = function: TIdC_INT; cdecl; + + rand_meth_st = record + seed: rand_meth_st_seed; + bytes: rand_meth_st_bytes; + cleanup: rand_meth_st_cleanup; + add: rand_meth_st_add; + pseudorand: rand_meth_st_pseudorand; + status: rand_meth_st_status; + end; + + function RAND_set_rand_method(const meth: PRAND_METHOD): TIdC_INT; + function RAND_get_rand_method: PRAND_METHOD; + function RAND_set_rand_engine(engine: PENGINE): TIdC_INT; + + function RAND_OpenSSL: PRAND_METHOD; + + function RAND_bytes(buf: PByte; num: TIdC_INT): TIdC_INT; + function RAND_priv_bytes(buf: PByte; num: TIdC_INT): TIdC_INT; + + procedure RAND_seed(const buf: Pointer; num: TIdC_INT); + procedure RAND_keep_random_devices_open(keep: TIdC_INT); + + procedure RAND_add(const buf: Pointer; num: TIdC_INT; randomness: TIdC_DOUBLE); + function RAND_load_file(const file_: PIdAnsiChar; max_bytes: TIdC_LONG): TIdC_INT; + function RAND_write_file(const file_: PIdAnsiChar): TIdC_INT; + function RAND_status: TIdC_INT; + + function RAND_query_egd_bytes(const path: PIdAnsiChar; buf: PByte; bytes: TIdC_INT): TIdC_INT; + function RAND_egd(const path: PIdAnsiChar): TIdC_INT; + function RAND_egd_bytes(const path: PIdAnsiChar; bytes: TIdC_INT): TIdC_INT; + + function RAND_poll: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_randerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_randerr.h2pas new file mode 100644 index 000000000..2ec4c43ea --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_randerr.h2pas @@ -0,0 +1,111 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_randerr; + +interface + +// Headers for OpenSSL 1.1.1 +// randerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * RAND function codes. + *) + RAND_F_DRBG_BYTES = 101; + RAND_F_DRBG_GET_ENTROPY = 105; + RAND_F_DRBG_SETUP = 117; + RAND_F_GET_ENTROPY = 106; + RAND_F_RAND_BYTES = 100; + RAND_F_RAND_DRBG_ENABLE_LOCKING = 119; + RAND_F_RAND_DRBG_GENERATE = 107; + RAND_F_RAND_DRBG_GET_ENTROPY = 120; + RAND_F_RAND_DRBG_GET_NONCE = 123; + RAND_F_RAND_DRBG_INSTANTIATE = 108; + RAND_F_RAND_DRBG_NEW = 109; + RAND_F_RAND_DRBG_RESEED = 110; + RAND_F_RAND_DRBG_RESTART = 102; + RAND_F_RAND_DRBG_SET = 104; + RAND_F_RAND_DRBG_SET_DEFAULTS = 121; + RAND_F_RAND_DRBG_UNINSTANTIATE = 118; + RAND_F_RAND_LOAD_FILE = 111; + RAND_F_RAND_POOL_ACQUIRE_ENTROPY = 122; + RAND_F_RAND_POOL_ADD = 103; + RAND_F_RAND_POOL_ADD_BEGIN = 113; + RAND_F_RAND_POOL_ADD_END = 114; + RAND_F_RAND_POOL_ATTACH = 124; + RAND_F_RAND_POOL_BYTES_NEEDED = 115; + RAND_F_RAND_POOL_GROW = 125; + RAND_F_RAND_POOL_NEW = 116; + RAND_F_RAND_WRITE_FILE = 112; + + (* + * RAND reason codes. + *) + RAND_R_ADDITIONAL_INPUT_TOO_LONG = 102; + RAND_R_ALREADY_INSTANTIATED = 103; + RAND_R_ARGUMENT_OUT_OF_RANGE = 105; + RAND_R_CANNOT_OPEN_FILE = 121; + RAND_R_DRBG_ALREADY_INITIALIZED = 129; + RAND_R_DRBG_NOT_INITIALISED = 104; + RAND_R_ENTROPY_INPUT_TOO_LONG = 106; + RAND_R_ENTROPY_OUT_OF_RANGE = 124; + RAND_R_ERROR_ENTROPY_POOL_WAS_IGNORED = 127; + RAND_R_ERROR_INITIALISING_DRBG = 107; + RAND_R_ERROR_INSTANTIATING_DRBG = 108; + RAND_R_ERROR_RETRIEVING_ADDITIONAL_INPUT = 109; + RAND_R_ERROR_RETRIEVING_ENTROPY = 110; + RAND_R_ERROR_RETRIEVING_NONCE = 111; + RAND_R_FAILED_TO_CREATE_LOCK = 126; + RAND_R_FUNC_NOT_IMPLEMENTED = 101; + RAND_R_FWRITE_ERROR = 123; + RAND_R_GENERATE_ERROR = 112; + RAND_R_INTERNAL_ERROR = 113; + RAND_R_IN_ERROR_STATE = 114; + RAND_R_NOT_A_REGULAR_FILE = 122; + RAND_R_NOT_INSTANTIATED = 115; + RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED = 128; + RAND_R_PARENT_LOCKING_NOT_ENABLED = 130; + RAND_R_PARENT_STRENGTH_TOO_WEAK = 131; + RAND_R_PERSONALISATION_STRING_TOO_LONG = 116; + RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED = 133; + RAND_R_PRNG_NOT_SEEDED = 100; + RAND_R_RANDOM_POOL_OVERFLOW = 125; + RAND_R_RANDOM_POOL_UNDERFLOW = 134; + RAND_R_REQUEST_TOO_LARGE_FOR_DRBG = 117; + RAND_R_RESEED_ERROR = 118; + RAND_R_SELFTEST_FAILURE = 119; + RAND_R_TOO_LITTLE_NONCE_REQUESTED = 135; + RAND_R_TOO_MUCH_NONCE_REQUESTED = 136; + RAND_R_UNSUPPORTED_DRBG_FLAGS = 132; + RAND_R_UNSUPPORTED_DRBG_TYPE = 120; + + function ERR_load_RAND_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rsa.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rsa.h2pas new file mode 100644 index 000000000..b7af1ea7e --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rsa.h2pas @@ -0,0 +1,430 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_rsa; + +interface + +// Headers for OpenSSL 1.1.1 +// rsa.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_evp; + +(* The types RSA and RSA_METHOD are defined in ossl_typ.h *) + +const + OPENSSL_RSA_MAX_MODULUS_BITS = 16384; + OPENSSL_RSA_FIPS_MIN_MODULUS_BITS = 1024; + OPENSSL_RSA_SMALL_MODULUS_BITS = 3072; + (* exponent limit enforced for "large" modulus only *) + OPENSSL_RSA_MAX_PUBEXP_BITS = 64; + + RSA_3 = TIdC_Long($3); + RSA_F4 = TIdC_Long($10001); + + (* based on RFC 8017 appendix A.1.2 *) + RSA_ASN1_VERSION_DEFAULT = 0; + RSA_ASN1_VERSION_MULTI = 1; + RSA_DEFAULT_PRIME_NUM = 2; + + RSA_METHOD_FLAG_NO_CHECK = $0001; (* don't check pub/private match *) + RSA_FLAG_CACHE_PUBLIC = $0002; + RSA_FLAG_CACHE_PRIVATE = $0004; + RSA_FLAG_BLINDING = $0008; + RSA_FLAG_THREAD_SAFE = $0010; + (* + * This flag means the private key operations will be handled by rsa_mod_exp + * and that they do not depend on the private key components being present: + * for example a key stored in external hardware. Without this flag + * bn_mod_exp gets called when private key components are absent. + *) + RSA_FLAG_EXT_PKEY = $0020; + (* + * new with 0.9.6j and 0.9.7b; the built-in + * RSA implementation now uses blinding by + * default (ignoring RSA_FLAG_BLINDING), + * but other engines might not need it + *) + RSA_FLAG_NO_BLINDING = $0080; + (* + * Does nothing. Previously this switched off constant time behaviour. + *) + RSA_FLAG_NO_CONSTTIME = $0000; + + (* Salt length matches digest *) + RSA_PSS_SALTLEN_DIGEST = -1; + (* Verify only: auto detect salt length *) + RSA_PSS_SALTLEN_AUTO = -2; + (* Set salt length to maximum possible *) + RSA_PSS_SALTLEN_MAX = -3; + (* Old compatible max salt length for sign only *) + RSA_PSS_SALTLEN_MAX_SIGN = -2; + + EVP_PKEY_CTRL_RSA_PADDING = EVP_PKEY_ALG_CTRL + 1; + EVP_PKEY_CTRL_RSA_PSS_SALTLEN = EVP_PKEY_ALG_CTRL + 2; + + EVP_PKEY_CTRL_RSA_KEYGEN_BITS = EVP_PKEY_ALG_CTRL + 3; + EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP = EVP_PKEY_ALG_CTRL + 4; + EVP_PKEY_CTRL_RSA_MGF1_MD = EVP_PKEY_ALG_CTRL + 5; + + EVP_PKEY_CTRL_GET_RSA_PADDING = EVP_PKEY_ALG_CTRL + 6; + EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN = EVP_PKEY_ALG_CTRL + 7; + EVP_PKEY_CTRL_GET_RSA_MGF1_MD = EVP_PKEY_ALG_CTRL + 8; + + EVP_PKEY_CTRL_RSA_OAEP_MD = EVP_PKEY_ALG_CTRL + 9; + EVP_PKEY_CTRL_RSA_OAEP_LABEL = EVP_PKEY_ALG_CTRL + 10; + + EVP_PKEY_CTRL_GET_RSA_OAEP_MD = EVP_PKEY_ALG_CTRL + 11; + EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL = EVP_PKEY_ALG_CTRL + 12; + + EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES = EVP_PKEY_ALG_CTRL + 13; + + RSA_PKCS1_PADDING = 1; + RSA_SSLV23_PADDING = 2; + RSA_NO_PADDING = 3; + RSA_PKCS1_OAEP_PADDING = 4; + RSA_X931_PADDING = 5; + RSA_PKCS1_PSS_PADDING = 6; (* EVP_PKEY_ only *) + RSA_PKCS1_PADDING_SIZE = 11; + + (* + * If this flag is set the RSA method is FIPS compliant and can be used in + * FIPS mode. This is set in the validated module method. If an application + * sets this flag in its own methods it is its responsibility to ensure the + * result is compliant. + *) + RSA_FLAG_FIPS_METHOD = $0400; + (* + * If this flag is set the operations normally disabled in FIPS mode are + * permitted it is then the applications responsibility to ensure that the + * usage is compliant. + *) + RSA_FLAG_NON_FIPS_ALLOW = $0400; + (* + * Application has decided PRNG is good enough to generate a key: don't + * check. + *) + RSA_FLAG_CHECKED = $0800; + +type + rsa_pss_params_st = record + hashAlgorithm: PX509_ALGOR; + maskGenAlgorithm: PX509_ALGOR; + saltLength: PASN1_INTEGER; + trailerField: PASN1_INTEGER; + (* Decoded hash algorithm from maskGenAlgorithm *) + maskHash: PX509_ALGOR; + end; + RSA_PSS_PARAMS = rsa_pss_params_st; + // DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS) + + rsa_oaep_params_st = record + hashFunc: PX509_ALGOR; + maskGenFunc: PX509_ALGOR; + pSourceFunc: PX509_ALGOR; + (* Decoded hash algorithm from maskGenFunc *) + maskHash: PX509_ALGOR; + end; + RSA_OAEP_PARAMS = rsa_oaep_params_st; + //DECLARE_ASN1_FUNCTIONS(RSA_OAEP_PARAMS) + + //DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey) + //DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey) + + RSA_meth_set_priv_dec_priv_dec = function(flen: TIdC_INT; const from: PByte; + to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT; cdecl; + + RSA_meth_set_mod_exp_mod_exp = function(r0: PBIGNUM; const i: PBIGNUM; + rsa: PRSA; ctx: PBN_CTX): TIdC_INT; cdecl; + + RSA_meth_set_bn_mod_exp_bn_mod_exp = function(r: PBIGNUM; const a: PBIGNUM; + const p: PBIGNUM; const m: PBIGNUM; ctx: PBN_CTx; m_ctx: PBN_MONT_CTx): TIdC_INT; cdecl; + + RSA_meth_set_init_init = function(rsa: PRSA): TIdC_INT; cdecl; + + RSA_meth_set_finish_finish = function(rsa: PRSA): TIdC_INT; cdecl; + + RSA_meth_set_sign_sign = function(type_: TIdC_INT; const m: PByte; + m_length: TIdC_UINT; sigret: PByte; siglen: PIdC_UINT; const rsa: PRSA): TIdC_INT; cdecl; + + RSA_meth_set_verify_verify = function(dtype: TIdC_INT; const m: PByte; + m_length: TIdC_UINT; const sigbuf: PByte; siglen: TIdC_UINT; const rsa: PRSA): TIdC_INT; cdecl; + + RSA_meth_set_keygen_keygen = function(rsa: PRSA; bits: TIdC_INT; e: PBIGNUM; cb: PBN_GENCb): TIdC_INT; cdecl; + + RSA_meth_set_multi_prime_keygen_keygen = function(rsa: PRSA; bits: TIdC_INT; + primes: TIdC_INT; e: PBIGNUM; cb: PBN_GENCb): TIdC_INT; cdecl; + +//# define EVP_PKEY_CTX_set_rsa_padding(ctx, pad) \ +// RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_RSA_PADDING, pad, NULL) +// +//# define EVP_PKEY_CTX_get_rsa_padding(ctx, ppad) \ +// RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_GET_RSA_PADDING, 0, ppad) +// +//# define EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, len) \ +// RSA_pkey_ctx_ctrl(ctx, (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \ +// EVP_PKEY_CTRL_RSA_PSS_SALTLEN, len, NULL) + +//# define EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(ctx, len) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, EVP_PKEY_OP_KEYGEN, \ +// EVP_PKEY_CTRL_RSA_PSS_SALTLEN, len, NULL) +// +//# define EVP_PKEY_CTX_get_rsa_pss_saltlen(ctx, plen) \ +// RSA_pkey_ctx_ctrl(ctx, (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \ +// EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN, 0, plen) +// +//# define EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits) \ +// RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \ +// EVP_PKEY_CTRL_RSA_KEYGEN_BITS, bits, NULL) +// +//# define EVP_PKEY_CTX_set_rsa_keygen_pubexp(ctx, pubexp) \ +// RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \ +// EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP, 0, pubexp) +// +//# define EVP_PKEY_CTX_set_rsa_keygen_primes(ctx, primes) \ +// RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \ +// EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES, primes, NULL) +// +//# define EVP_PKEY_CTX_set_rsa_mgf1_md(ctx, md) \ +// RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md)) +// +//# define EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(ctx, md) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, EVP_PKEY_OP_KEYGEN, \ +// EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md)) +// +//# define EVP_PKEY_CTX_set_rsa_oaep_md(ctx, md) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_RSA_OAEP_MD, 0, (void *)(md)) +// +//# define EVP_PKEY_CTX_get_rsa_mgf1_md(ctx, pmd) \ +// RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_GET_RSA_MGF1_MD, 0, (void *)(pmd)) +// +//# define EVP_PKEY_CTX_get_rsa_oaep_md(ctx, pmd) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_GET_RSA_OAEP_MD, 0, (void *)(pmd)) +// +//# define EVP_PKEY_CTX_set0_rsa_oaep_label(ctx, l, llen) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_RSA_OAEP_LABEL, llen, (void *)(l)) +// +//# define EVP_PKEY_CTX_get0_rsa_oaep_label(ctx, l) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \ +// EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL, 0, (void *)(l)) +// +//# define EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx, md) \ +// EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, \ +// EVP_PKEY_OP_KEYGEN, EVP_PKEY_CTRL_MD, \ +// 0, (void *)(md)) + +//# define RSA_set_app_data(s,arg) RSA_set_ex_data(s,0,arg) +//# define RSA_get_app_data(s) RSA_get_ex_data(s,0) + + function RSA_new: PRSA; + function RSA_new_method(engine: PENGINE): PRSA; + function RSA_bits(const rsa: PRSA): TIdC_INT; + function RSA_size(const rsa: PRSA): TIdC_INT; + function RSA_security_bits(const rsa: PRSA): TIdC_INT; + + function RSA_set0_key(r: PRSA; n: PBIGNUM; e: PBIGNUM; d: PBIGNUM): TIdC_INT; + function RSA_set0_factors(r: PRSA; p: PBIGNUM; q: PBIGNUM): TIdC_INT; + function RSA_set0_crt_params(r: PRSA; dmp1: PBIGNUM; dmq1: PBIGNUM; iqmp: PBIGNUM): TIdC_INT; + //function RSA_set0_multi_prime_params(r: PRSA; primes: array of PBIGNUM; exps: array of PBIGNUM; coeffs: array of PBIGNUM; pnum: TIdC_INT): TIdC_INT; + + procedure RSA_get0_key(const r: PRSA; const n: PPBIGNUM; const e: PPBIGNUM; const d: PPBIGNUM); + procedure RSA_get0_factors(const r: PRSA; const p: PPBIGNUM; const q: PPBIGNUM); + function RSA_get_multi_prime_extra_count(const r: PRSA): TIdC_INT; + //function RSA_get0_multi_prime_factors(const r: PRSA; const primes: array of PBIGNUM): TIdC_INT; + procedure RSA_get0_crt_params(const r: PRSA; const dmp1: PPBIGNUM; const dmq1: PPBIGNUM; const iqmp: PPBIGNUM); + + //function RSA_get0_multi_prime_crt_params(const r: PRSA; const exps: array of PBIGNUM; const coeffs: array of PBIGNUM): TIdC_INT; + + function RSA_get0_n(const d: PRSA): PBIGNUM; + function RSA_get0_e(const d: PRSA): PBIGNUM; + function RSA_get0_d(const d: PRSA): PBIGNUM; + function RSA_get0_p(const d: PRSA): PBIGNUM; + function RSA_get0_q(const d: PRSA): PBIGNUM; + function RSA_get0_dmp1(const r: PRSA): PBIGNUM; + function RSA_get0_dmq1(const r: PRSA): PBIGNUM; + function RSA_get0_iqmp(const r: PRSA): PBIGNUM; + + procedure RSA_clear_flags(r: PRSA; flags: TIdC_INT); + function RSA_test_flags(const r: PRSA; flags: TIdC_INT): TIdC_INT; + procedure RSA_set_flags(r: PRSA; flags: TIdC_INT); + function RSA_get_version(r: PRSA): TIdC_INT; + function RSA_get0_engine(const r: PRSA): PENGINE; + + (* New version *) + function RSA_generate_key_ex(rsa: PRSA; bits: TIdC_INT; e: PBIGNUM; cb: PBN_GENCB): TIdC_INT; + (* Multi-prime version *) + function RSA_generate_multi_prime_key(rsa: PRSA; bits: TIdC_INT; primes: TIdC_INT; e: PBIGNUM; cb: PBN_GENCB): TIdC_INT; + function RSA_X931_derive_ex(rsa: PRSA; p1: PBIGNUM; p2: PBIGNUM; q1: PBIGNUM; q2: PBIGNUM; const Xp1: PBIGNUM; const Xp2: PBIGNUM; const Xp: PBIGNUM; const Xq1: PBIGNUM; const Xq2: PBIGNUM; const Xq: PBIGNUM; const e: PBIGNUM; cb: PBN_GENCB): TIdC_INT; + function RSA_X931_generate_key_ex(rsa: PRSA; bits: TIdC_INT; const e: PBIGNUM; cb: PBN_GENCB): TIdC_INT; + + function RSA_check_key(const v1: PRSA): TIdC_INT; + function RSA_check_key_ex(const v1: PRSA; cb: BN_GENCB): TIdC_INT; + (* next 4 return -1 on error *) + function RSA_public_encrypt(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT; + function RSA_private_encrypt(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT; + function RSA_public_decrypt(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT; + function RSA_private_decrypt(flen: TIdC_INT; const from: PByte; to_: PByte; rsa: PRSA; padding: TIdC_INT): TIdC_INT; + + procedure RSA_free(r: PRSA); + (* "up" the RSA object's reference count *) + function RSA_up_ref(r: PRSA): TIdC_INT; + + function RSA_flags(const r: PRSA): TIdC_INT; + + procedure RSA_set_default_method(const meth: PRSA_METHOD); + function RSA_get_default_method: PRSA_METHOD; + function RSA_null_method: PRSA_METHOD; + function RSA_get_method(const rsa: PRSA): PRSA_METHOD; + function RSA_set_method(rsa: PRSA; const meth: PRSA_METHOD): TIdC_INT; + + (* these are the actual RSA functions *) + function RSA_PKCS1_OpenSSL: PRSA_METHOD; + + function RSA_pkey_ctx_ctrl(ctx: PEVP_PKEY_CTX; optype: TIdC_INT; cmd: TIdC_INT; p1: TIdC_INT; p2: Pointer): TIdC_INT; + + function RSA_print(bp: PBIO; const r: PRSA; offset: TIdC_INT): TIdC_INT; + + (* + * The following 2 functions sign and verify a X509_SIG ASN1 object inside + * PKCS#1 padded RSA encryption + *) + function RSA_sign(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; sigret: PByte; siglen: PIdC_UINT; rsa: PRSA): TIdC_INT; + function RSA_verify(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; const sigbuf: PByte; siglen: TIdC_UINT; rsa: PRSA): TIdC_INT; + + (* + * The following 2 function sign and verify a ASN1_OCTET_STRING object inside + * PKCS#1 padded RSA encryption + *) + function RSA_sign_ASN1_OCTET_STRING(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; sigret: PByte; siglen: PIdC_UINT; rsa: PRSA): TIdC_INT; + function RSA_verify_ASN1_OCTET_STRING(type_: TIdC_INT; const m: PByte; m_length: TIdC_UINT; sigbuf: PByte; siglen: TIdC_UINT; rsa: PRSA): TIdC_INT; + + function RSA_blinding_on(rsa: PRSA; ctx: PBN_CTX): TIdC_INT; + procedure RSA_blinding_off(rsa: PRSA); + function RSA_setup_blinding(rsa: PRSA; ctx: PBN_CTX): PBN_BLINDING; + function RSA_padding_add_PKCS1_type_1(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT; + function RSA_padding_check_PKCS1_type_1(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT; + function RSA_padding_add_PKCS1_type_2(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT; + function RSA_padding_check_PKCS1_type_2(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT; + function PKCS1_MGF1(mask: PByte; len: TIdC_LONG; const seed: PByte; seedlen: TIdC_LONG; const dgst: PEVP_MD): TIdC_INT; + function RSA_padding_add_PKCS1_OAEP(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; const p: PByte; pl: TIdC_INT): TIdC_INT; + function RSA_padding_check_PKCS1_OAEP(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT; const p: PByte; pl: TIdC_INT): TIdC_INT; + function RSA_padding_add_PKCS1_OAEP_mgf1(to_: PByte; tlen: TIdC_INT; const from: PByte; flen: TIdC_INT; const param: PByte; plen: TIdC_INT; const md: PEVP_MD; const mgf1md: PEVP_MD): TIdC_INT; + function RSA_padding_check_PKCS1_OAEP_mgf1(to_: PByte; tlen: TIdC_INT; const from: PByte; flen: TIdC_INT; num: TIdC_INT; const param: PByte; plen: TIdC_INT; const md: PEVP_MD; const mgf1md: PEVP_MD): TIdC_INT; + function RSA_padding_add_SSLv23(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT; + function RSA_padding_check_SSLv23(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT; + function RSA_padding_add_none(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT; + function RSA_padding_check_none(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT; + function RSA_padding_add_X931(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT): TIdC_INT; + function RSA_padding_check_X931(to_: PByte; tlen: TIdC_INT; const f: PByte; fl: TIdC_INT; rsa_len: TIdC_INT): TIdC_INT; + function RSA_X931_hash_id(nid: TIdC_INT): TIdC_INT; + + function RSA_verify_PKCS1_PSS(rsa: PRSA; const mHash: PByte; const Hash: PEVP_MD; const EM: PByte; sLen: TIdC_INT): TIdC_INT; + function RSA_padding_add_PKCS1_PSS(rsa: PRSA; EM: PByte; const mHash: PByte; const Hash: PEVP_MD; sLen: TIdC_INT): TIdC_INT; + function RSA_verify_PKCS1_PSS_mgf1(rsa: PRSA; const mHash: PByte; const Hash: PEVP_MD; const mgf1Hash: PEVP_MD; const EM: PByte; sLen: TIdC_INT): TIdC_INT; + function RSA_padding_add_PKCS1_PSS_mgf1(rsa: PRSA; EM: PByte; const mHash: PByte; const Hash: PEVP_MD; const mgf1Hash: PEVP_MD; sLen: TIdC_INT): TIdC_INT; + + //#define RSA_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_RSA, l, p, newf, dupf, freef) + + function RSA_set_ex_data(r: PRSA; idx: TIdC_INT; arg: Pointer): TIdC_INT; + function RSA_get_ex_data(const r: PRSA; idx: TIdC_INT): Pointer; + function RSAPublicKey_dup(rsa: PRSA): PRSA; + function RSAPrivateKey_dup(rsa: PRSA): PRSA; + + function RSA_meth_new(const name: PIdAnsiChar; flags: TIdC_INT): PRSA_METHOD; + procedure RSA_meth_free(meth: PRSA_METHOD); + function RSA_meth_dup(const meth: PRSA_METHOD): PRSA_METHOD; + function RSA_meth_get0_name(const meth: PRSA_METHOD): PIdAnsiChar; + function RSA_meth_set1_name(meth: PRSA_METHOD; const name: PIdAnsiChar): TIdC_INT; + function RSA_meth_get_flags(const meth: PRSA_METHOD): TIdC_INT; + function RSA_meth_set_flags(meth: PRSA_METHOD; flags: TIdC_INT): TIdC_INT; + function RSA_meth_get0_app_data(const meth: PRSA_METHOD): Pointer; + function RSA_meth_set0_app_data(meth: PRSA_METHOD; app_data: Pointer): TIdC_INT; + + //int (*RSA_meth_get_pub_enc(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + //int RSA_meth_set_pub_enc(RSA_METHOD *rsa, + // int (*pub_enc) (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, + // int padding)); + //int (*RSA_meth_get_pub_dec(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + //int RSA_meth_set_pub_dec(RSA_METHOD *rsa, + // int (*pub_dec) (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, + // int padding)); + //int (*RSA_meth_get_priv_enc(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + //int RSA_meth_set_priv_enc(RSA_METHOD *rsa, + // int (*priv_enc) (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, + // int padding)); + //int (*RSA_meth_get_priv_dec(const RSA_METHOD *meth)) + // (int flen, const unsigned char *from, + // unsigned char *to_, RSA *rsa, int padding); + function RSA_meth_set_priv_dec(rsa: PRSA_METHOD; priv_dec: RSA_meth_set_priv_dec_priv_dec): TIdC_INT; + + //int (*RSA_meth_get_mod_exp(const RSA_METHOD *meth)) + // (BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx); + function RSA_meth_set_mod_exp(rsa: PRSA_METHOD; mod_exp: RSA_meth_set_mod_exp_mod_exp): TIdC_INT; + //int (*RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth)) + // (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, + // const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); + function RSA_meth_set_bn_mod_exp(rsa: PRSA_METHOD; bn_mod_exp: RSA_meth_set_bn_mod_exp_bn_mod_exp): TIdC_INT; + //int (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa); + function RSA_meth_set_init(rsa: PRSA_METHOD; init: RSA_meth_set_init_init): TIdC_INT; + //int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa); + function RSA_meth_set_finish(rsa: PRSA_METHOD; finish: RSA_meth_set_finish_finish): TIdC_INT; + //int (*RSA_meth_get_sign(const RSA_METHOD *meth)) + // (int type_, + // const unsigned char *m, unsigned int m_length, + // unsigned char *sigret, unsigned int *siglen, + // const RSA *rsa); + function RSA_meth_set_sign(rsa: PRSA_METHOD; sign: RSA_meth_set_sign_sign): TIdC_INT; + //int (*RSA_meth_get_verify(const RSA_METHOD *meth)) + // (int dtype, const unsigned char *m, + // unsigned int m_length, const unsigned char *sigbuf, + // unsigned int siglen, const RSA *rsa); + function RSA_meth_set_verify(rsa: PRSA_METHOD; verify: RSA_meth_set_verify_verify): TIdC_INT; + //int (*RSA_meth_get_keygen(const RSA_METHOD *meth)) + // (RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb); + function RSA_meth_set_keygen(rsa: PRSA_METHOD; keygen: RSA_meth_set_keygen_keygen): TIdC_INT; + //int (*RSA_meth_get_multi_prime_keygen(const RSA_METHOD *meth)) + // (RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb); + function RSA_meth_set_multi_prime_keygen(meth: PRSA_METHOD; keygen: RSA_meth_set_multi_prime_keygen_keygen): TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rsaerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rsaerr.h2pas new file mode 100644 index 000000000..4851c4cde --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_rsaerr.h2pas @@ -0,0 +1,184 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_rsaerr; + +interface + +// Headers for OpenSSL 1.1.1 +// rsaerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * RSA function codes. + *) + RSA_F_CHECK_PADDING_MD = 140; + RSA_F_ENCODE_PKCS1 = 146; + RSA_F_INT_RSA_VERIFY = 145; + RSA_F_OLD_RSA_PRIV_DECODE = 147; + RSA_F_PKEY_PSS_INIT = 165; + RSA_F_PKEY_RSA_CTRL = 143; + RSA_F_PKEY_RSA_CTRL_STR = 144; + RSA_F_PKEY_RSA_SIGN = 142; + RSA_F_PKEY_RSA_VERIFY = 149; + RSA_F_PKEY_RSA_VERIFYRECOVER = 141; + RSA_F_RSA_ALGOR_TO_MD = 156; + RSA_F_RSA_BUILTIN_KEYGEN = 129; + RSA_F_RSA_CHECK_KEY = 123; + RSA_F_RSA_CHECK_KEY_EX = 160; + RSA_F_RSA_CMS_DECRYPT = 159; + RSA_F_RSA_CMS_VERIFY = 158; + RSA_F_RSA_ITEM_VERIFY = 148; + RSA_F_RSA_METH_DUP = 161; + RSA_F_RSA_METH_NEW = 162; + RSA_F_RSA_METH_SET1_NAME = 163; + RSA_F_RSA_MGF1_TO_MD = 157; + RSA_F_RSA_MULTIP_INFO_NEW = 166; + RSA_F_RSA_NEW_METHOD = 106; + RSA_F_RSA_NULL = 124; + RSA_F_RSA_NULL_PRIVATE_DECRYPT = 132; + RSA_F_RSA_NULL_PRIVATE_ENCRYPT = 133; + RSA_F_RSA_NULL_PUBLIC_DECRYPT = 134; + RSA_F_RSA_NULL_PUBLIC_ENCRYPT = 135; + RSA_F_RSA_OSSL_PRIVATE_DECRYPT = 101; + RSA_F_RSA_OSSL_PRIVATE_ENCRYPT = 102; + RSA_F_RSA_OSSL_PUBLIC_DECRYPT = 103; + RSA_F_RSA_OSSL_PUBLIC_ENCRYPT = 104; + RSA_F_RSA_PADDING_ADD_NONE = 107; + RSA_F_RSA_PADDING_ADD_PKCS1_OAEP = 121; + RSA_F_RSA_PADDING_ADD_PKCS1_OAEP_MGF1 = 154; + RSA_F_RSA_PADDING_ADD_PKCS1_PSS = 125; + RSA_F_RSA_PADDING_ADD_PKCS1_PSS_MGF1 = 152; + RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1 = 108; + RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2 = 109; + RSA_F_RSA_PADDING_ADD_SSLV23 = 110; + RSA_F_RSA_PADDING_ADD_X931 = 127; + RSA_F_RSA_PADDING_CHECK_NONE = 111; + RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP = 122; + RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP_MGF1 = 153; + RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1 = 112; + RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2 = 113; + RSA_F_RSA_PADDING_CHECK_SSLV23 = 114; + RSA_F_RSA_PADDING_CHECK_X931 = 128; + RSA_F_RSA_PARAM_DECODE = 164; + RSA_F_RSA_PRINT = 115; + RSA_F_RSA_PRINT_FP = 116; + RSA_F_RSA_PRIV_DECODE = 150; + RSA_F_RSA_PRIV_ENCODE = 138; + RSA_F_RSA_PSS_GET_PARAM = 151; + RSA_F_RSA_PSS_TO_CTX = 155; + RSA_F_RSA_PUB_DECODE = 139; + RSA_F_RSA_SETUP_BLINDING = 136; + RSA_F_RSA_SIGN = 117; + RSA_F_RSA_SIGN_ASN1_OCTET_STRING = 118; + RSA_F_RSA_VERIFY = 119; + RSA_F_RSA_VERIFY_ASN1_OCTET_STRING = 120; + RSA_F_RSA_VERIFY_PKCS1_PSS_MGF1 = 126; + RSA_F_SETUP_TBUF = 167; + + (* + * RSA reason codes. + *) + RSA_R_ALGORITHM_MISMATCH = 100; + RSA_R_BAD_E_VALUE = 101; + RSA_R_BAD_FIXED_HEADER_DECRYPT = 102; + RSA_R_BAD_PAD_BYTE_COUNT = 103; + RSA_R_BAD_SIGNATURE = 104; + RSA_R_BLOCK_TYPE_IS_NOT_01 = 106; + RSA_R_BLOCK_TYPE_IS_NOT_02 = 107; + RSA_R_DATA_GREATER_THAN_MOD_LEN = 108; + RSA_R_DATA_TOO_LARGE = 109; + RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE = 110; + RSA_R_DATA_TOO_LARGE_FOR_MODULUS = 132; + RSA_R_DATA_TOO_SMALL = 111; + RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE = 122; + RSA_R_DIGEST_DOES_NOT_MATCH = 158; + RSA_R_DIGEST_NOT_ALLOWED = 145; + RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY = 112; + RSA_R_DMP1_NOT_CONGRUENT_TO_D = 124; + RSA_R_DMQ1_NOT_CONGRUENT_TO_D = 125; + RSA_R_D_E_NOT_CONGRUENT_TO_1 = 123; + RSA_R_FIRST_OCTET_INVALID = 133; + RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE = 144; + RSA_R_INVALID_DIGEST = 157; + RSA_R_INVALID_DIGEST_LENGTH = 143; + RSA_R_INVALID_HEADER = 137; + RSA_R_INVALID_LABEL = 160; + RSA_R_INVALID_MESSAGE_LENGTH = 131; + RSA_R_INVALID_MGF1_MD = 156; + RSA_R_INVALID_MULTI_PRIME_KEY = 167; + RSA_R_INVALID_OAEP_PARAMETERS = 161; + RSA_R_INVALID_PADDING = 138; + RSA_R_INVALID_PADDING_MODE = 141; + RSA_R_INVALID_PSS_PARAMETERS = 149; + RSA_R_INVALID_PSS_SALTLEN = 146; + RSA_R_INVALID_SALT_LENGTH = 150; + RSA_R_INVALID_TRAILER = 139; + RSA_R_INVALID_X931_DIGEST = 142; + RSA_R_IQMP_NOT_INVERSE_OF_Q = 126; + RSA_R_KEY_PRIME_NUM_INVALID = 165; + RSA_R_KEY_SIZE_TOO_SMALL = 120; + RSA_R_LAST_OCTET_INVALID = 134; + RSA_R_MISSING_PRIVATE_KEY = 179; + RSA_R_MGF1_DIGEST_NOT_ALLOWED = 152; + RSA_R_MODULUS_TOO_LARGE = 105; + RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R = 168; + RSA_R_MP_EXPONENT_NOT_CONGRUENT_TO_D = 169; + RSA_R_MP_R_NOT_PRIME = 170; + RSA_R_NO_PUBLIC_EXPONENT = 140; + RSA_R_NULL_BEFORE_BLOCK_MISSING = 113; + RSA_R_N_DOES_NOT_EQUAL_PRODUCT_OF_PRIMES = 172; + RSA_R_N_DOES_NOT_EQUAL_P_Q = 127; + RSA_R_OAEP_DECODING_ERROR = 121; + RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE = 148; + RSA_R_PADDING_CHECK_FAILED = 114; + RSA_R_PKCS_DECODING_ERROR = 159; + RSA_R_PSS_SALTLEN_TOO_SMALL = 164; + RSA_R_P_NOT_PRIME = 128; + RSA_R_Q_NOT_PRIME = 129; + RSA_R_RSA_OPERATIONS_NOT_SUPPORTED = 130; + RSA_R_SLEN_CHECK_FAILED = 136; + RSA_R_SLEN_RECOVERY_FAILED = 135; + RSA_R_SSLV3_ROLLBACK_ATTACK = 115; + RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD = 116; + RSA_R_UNKNOWN_ALGORITHM_TYPE = 117; + RSA_R_UNKNOWN_DIGEST = 166; + RSA_R_UNKNOWN_MASK_DIGEST = 151; + RSA_R_UNKNOWN_PADDING_TYPE = 118; + RSA_R_UNSUPPORTED_ENCRYPTION_TYPE = 162; + RSA_R_UNSUPPORTED_LABEL_SOURCE = 163; + RSA_R_UNSUPPORTED_MASK_ALGORITHM = 153; + RSA_R_UNSUPPORTED_MASK_PARAMETER = 154; + RSA_R_UNSUPPORTED_SIGNATURE_TYPE = 155; + RSA_R_VALUE_MISSING = 147; + RSA_R_WRONG_SIGNATURE_LENGTH = 119; + + function ERR_load_RSA_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_sha.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_sha.h2pas new file mode 100644 index 000000000..2c2f2e379 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_sha.h2pas @@ -0,0 +1,119 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_sha; + +interface + +// Headers for OpenSSL 1.1.1 +// sha.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + SHA_LBLOCK = 16; + SHA_CBLOCK = SHA_LBLOCK * 4; + + SHA_LAST_BLOCK = SHA_CBLOCK - 8; + SHA_DIGEST_LENGTH = 20; + + SHA256_CBLOCK = SHA_LBLOCK * 4; + + SHA224_DIGEST_LENGTH = 28; + SHA256_DIGEST_LENGTH = 32; + SHA384_DIGEST_LENGTH = 48; + SHA512_DIGEST_LENGTH = 64; + + SHA512_CBLOCK = SHA_LBLOCK * 8; + +type + SHA_LONG = TIdC_UINT; + + SHAstate_sf = record + h0, h1, h2, h3, h4: SHA_LONG; + Nl, Nh: SHA_LONG; + data: array[0 .. SHA_LAST_BLOCK - 1] of SHA_LONG; + num: TIdC_UINT; + end; + SHA_CTX = SHAstate_sf; + PSHA_CTX = ^SHA_CTX; + + SHAstate256_sf = record + h: array[0..7] of SHA_LONG; + Nl, Nh: SHA_LONG; + data: array[0 .. SHA_LAST_BLOCK - 1] of SHA_LONG; + num, md_len: TIdC_UINT; + end; + SHA256_CTX = SHAstate256_sf; + PSHA256_CTX = ^SHA256_CTX; + + SHA_LONG64 = TIdC_UINT64; + + SHA512state_st_u = record + case Integer of + 0: (d: array[0 .. SHA_LBLOCK - 1] of SHA_LONG64); + 1: (p: array[0 .. SHA512_CBLOCK - 1] of Byte); + end; + + SHA512state_st = record + h: array[0..7] of SHA_LONG64; + Nl, Nh: SHA_LONG64; + u: SHA512state_st_u; + num, md_len: TIdC_UINT; + end; + SHA512_CTX = SHA512state_st; + PSHA512_CTX = ^SHA512_CTX; + + function SHA1_Init(c: PSHA_CTX): TIdC_INT; + function SHA1_Update(c: PSHA_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT; + function SHA1_Final(md: PByte; c: PSHA_CTX): TIdC_INT; + function SHA1(const d: PByte; n: TIdC_SIZET; md: PByte): PByte; + procedure SHA1_Transform(c: PSHA_CTX; const data: PByte); + + function SHA224_Init(c: PSHA256_CTX): TIdC_INT; + function SHA224_Update(c: PSHA256_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT; + function SHA224_Final(md: PByte; c: PSHA256_CTX): TIdC_INT; + function SHA224(const d: PByte; n: TIdC_SIZET; md: PByte): PByte; + + function SHA256_Init(c: PSHA256_CTX): TIdC_INT; + function SHA256_Update(c: PSHA256_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT; + function SHA256_Final(md: PByte; c: PSHA256_CTX): TIdC_INT; + function SHA256(const d: PByte; n: TIdC_SIZET; md: PByte): PByte; + procedure SHA256_Transform(c: PSHA256_CTX; const data: PByte); + + function SHA384_Init(c: PSHA512_CTX): TIdC_INT; + function SHA384_Update(c: PSHA512_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT; + function SHA384_Final(md: PByte; c: PSHA512_CTX): TIdC_INT; + function SHA384(const d: PByte; n: TIdC_SIZET; md: PByte): PByte; + + function SHA512_Init(c: PSHA512_CTX): TIdC_INT; + function SHA512_Update(c: PSHA512_CTX; const data: Pointer; len: TIdC_SIZET): TIdC_INT; + function SHA512_Final(md: PByte; c: PSHA512_CTX): TIdC_INT; + function SHA512(const d: PByte; n: TIdC_SIZET; md: PByte): PByte; + procedure SHA512_Transform(c: PSHA512_CTX; const data: PByte); + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_srtp.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_srtp.h2pas new file mode 100644 index 000000000..9b93982be --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_srtp.h2pas @@ -0,0 +1,57 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_srtp; + +interface + +// Headers for OpenSSL 1.1.1 +// srtp.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_ssl; + +const + SRTP_AES128_CM_SHA1_80 = $0001; + SRTP_AES128_CM_SHA1_32 = $0002; + SRTP_AES128_F8_SHA1_80 = $0003; + SRTP_AES128_F8_SHA1_32 = $0004; + SRTP_NULL_SHA1_80 = $0005; + SRTP_NULL_SHA1_32 = $0006; + + (* AEAD SRTP protection profiles from RFC 7714 *) + SRTP_AEAD_AES_128_GCM = $0007; + SRTP_AEAD_AES_256_GCM = $0008; + + function SSL_CTX_set_tlsext_use_srtp(ctx: PSSL_CTX; const profiles: PIdAnsiChar): TIdC_INT; + function SSL_set_tlsext_use_srtp(ctx: PSSL_CTX; const profiles: PIdAnsiChar): TIdC_INT; + + //function SSL_get_srtp_profiles(s: PSSL): PSTACK_OF_SRTP_PROTECTION_PROFILE; + function SSL_get_selected_srtp_profile(s: PSSL): PSRTP_PROTECTION_PROFILE; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ssl.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ssl.h2pas new file mode 100644 index 000000000..d2943a393 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ssl.h2pas @@ -0,0 +1,3058 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ssl; + +interface + +// Headers for OpenSSL 1.1.1 +// ssl.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_async, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_crypto, + IdOpenSSLHeaders_pem, + IdOpenSSLHeaders_tls1, + IdOpenSSLHeaders_ssl3, + IdOpenSSLHeaders_x509; + +{$MINENUMSIZE 4} + +const + (* OpenSSL version number for ASN.1 encoding of the session information *) + (*- + * Version 0 - initial version + * Version 1 - added the optional peer certificate + *) + SSL_SESSION_ASN1_VERSION = $0001; + + SSL_MAX_SSL_SESSION_ID_LENGTH = 32; + SSL_MAX_SID_CTX_LENGTH = 32; + + SSL_MIN_RSA_MODULUS_LENGTH_IN_BYTES = 512/8; + SSL_MAX_KEY_ARG_LENGTH = 8; + SSL_MAX_MASTER_KEY_LENGTH = 48; + + (* The maximum number of encrypt/decrypt pipelines we can support *) + SSL_MAX_PIPELINES = 32; + + (* text strings for the ciphers *) + + (* These are used to specify which ciphers to use and not to use *) + + SSL_TXT_LOW = AnsiString('LOW'); + SSL_TXT_MEDIUM = AnsiString('MEDIUM'); + SSL_TXT_HIGH = AnsiString('HIGH'); + SSL_TXT_FIPS = AnsiString('FIPS'); + + SSL_TXT_aNULL = AnsiString('aNULL'); + SSL_TXT_eNULL = AnsiString('eNULL'); + SSL_TXT_NULL = AnsiString('NULL'); + + SSL_TXT_kRSA = AnsiString('kRSA'); + SSL_TXT_kDHr = AnsiString('kDHr'); + SSL_TXT_kDHd = AnsiString('kDHd'); + SSL_TXT_kDH = AnsiString('kDH'); + SSL_TXT_kEDH = AnsiString('kEDH'); + SSL_TXT_kDHE = AnsiString('kDHE'); + SSL_TXT_kECDHr = AnsiString('kECDHr'); +//const SSL_TXT_kECDHe = AnsiString('kECDHe'); + SSL_TXT_kECDH = AnsiString('kECDH'); + SSL_TXT_kEECDH = AnsiString('kEECDH'); + SSL_TXT_kECDHE = AnsiString('kECDHE'); + SSL_TXT_kPSK = AnsiString('kPSK'); + SSL_TXT_kRSAPSK = AnsiString('kRSAPSK'); + SSL_TXT_kECDHEPSK = AnsiString('kECDHEPSK'); + SSL_TXT_kDHEPSK = AnsiString('kDHEPSK'); + SSL_TXT_kGOST = AnsiString('kGOST'); + SSL_TXT_kSRP = AnsiString('kSRP'); + + SSL_TXT_aRSA = AnsiString('aRSA'); + SSL_TXT_aDSS = AnsiString('aDSS'); + SSL_TXT_aDH = AnsiString('aDH'); + SSL_TXT_aECDH = AnsiString('aECDH'); + SSL_TXT_aECDSA = AnsiString('aECDSA'); + SSL_TXT_aPSK = AnsiString('aPSK'); + SSL_TXT_aGOST94 = AnsiString('aGOST94'); + SSL_TXT_aGOST01 = AnsiString('aGOST01'); + SSL_TXT_aGOST12 = AnsiString('aGOST12'); + SSL_TXT_aGOST = AnsiString('aGOST'); + SSL_TXT_aSRP = AnsiString('aSRP'); + + SSL_TXT_DSS = AnsiString('DSS'); + SSL_TXT_DH = AnsiString('DH'); + SSL_TXT_DHE = AnsiString('DHE'); + SSL_TXT_EDH = AnsiString('EDH'); + //SSL_TXT_ADH = AnsiString('ADH'); + SSL_TXT_RSA = AnsiString('RSA'); + SSL_TXT_ECDH = AnsiString('ECDH'); + SSL_TXT_EECDH = AnsiString('EECDH'); + SSL_TXT_ECDHE = AnsiString('ECDHE'); + //SSL_TXT_AECDH = AnsiString('AECDH'); + SSL_TXT_ECDSA = AnsiString('ECDSA'); + SSL_TXT_PSK = AnsiString('PSK'); + SSL_TXT_SRP = AnsiString('SRP'); + + SSL_TXT_DES = AnsiString('DES'); + SSL_TXT_3DES = AnsiString('3DES'); + SSL_TXT_RC4 = AnsiString('RC4'); + SSL_TXT_RC2 = AnsiString('RC2'); + SSL_TXT_IDEA = AnsiString('IDEA'); + SSL_TXT_SEED = AnsiString('SEED'); + SSL_TXT_AES128 = AnsiString('AES128'); + SSL_TXT_AES256 = AnsiString('AES256'); + SSL_TXT_AES = AnsiString('AES'); + SSL_TXT_AES_GCM = AnsiString('AESGCM'); + SSL_TXT_AES_CCM = AnsiString('AESCCM'); + SSL_TXT_AES_CCM_8 = AnsiString('AESCCM8'); + SSL_TXT_CAMELLIA128 = AnsiString('CAMELLIA128'); + SSL_TXT_CAMELLIA256 = AnsiString('CAMELLIA256'); + SSL_TXT_CAMELLIA = AnsiString('CAMELLIA'); + SSL_TXT_CHACHA20 = AnsiString('CHACHA20'); + SSL_TXT_GOST = AnsiString('GOST89'); + SSL_TXT_ARIA = AnsiString('ARIA'); + SSL_TXT_ARIA_GCM = AnsiString('ARIAGCM'); + SSL_TXT_ARIA128 = AnsiString('ARIA128'); + SSL_TXT_ARIA256 = AnsiString('ARIA256'); + + SSL_TXT_MD5 = AnsiString('MD5'); + SSL_TXT_SHA1 = AnsiString('SHA1'); + SSL_TXT_SHA = AnsiString('SHA'); + SSL_TXT_GOST94 = AnsiString('GOST94'); + SSL_TXT_GOST89MAC = AnsiString('GOST89MAC'); + SSL_TXT_GOST12 = AnsiString('GOST12'); + SSL_TXT_GOST89MAC12 = AnsiString('GOST89MAC12'); + SSL_TXT_SHA256 = AnsiString('SHA256'); + SSL_TXT_SHA384 = AnsiString('SHA384'); + + SSL_TXT_SSLV3 = AnsiString('SSLv3'); + SSL_TXT_TLSV1 = AnsiString('TLSv1'); + SSL_TXT_TLSV1_1 = AnsiString('TLSv1.1'); + SSL_TXT_TLSV1_2 = AnsiString('TLSv1.2'); + + SSL_TXT_ALL = AnsiString('ALL'); + + (*- + * COMPLEMENTOF* definitions. These identifiers are used to (de-select) + * ciphers normally not being used. + * Example: "RC4" will activate all ciphers using RC4 including ciphers + * without authentication, which would normally disabled by DEFAULT (due + * the "!ADH" being part of default). Therefore "RC4:!COMPLEMENTOFDEFAULT" + * will make sure that it is also disabled in the specific selection. + * COMPLEMENTOF* identifiers are portable between version, as adjustments + * to the default cipher setup will also be included here. + * + * COMPLEMENTOFDEFAULT does not experience the same special treatment that + * DEFAULT gets, as only selection is being done and no sorting as needed + * for DEFAULT. + *) + SSL_TXT_CMPALL = AnsiString('COMPLEMENTOFALL'); + SSL_TXT_CMPDEF = AnsiString('COMPLEMENTOFDEFAULT'); + + (* + * The following cipher list is used by default. It also is substituted when + * an application-defined cipher list string starts with 'DEFAULT'. + * This applies to ciphersuites for TLSv1.2 and below. + *) + SSL_DEFAULT_CIPHER_LIST = AnsiString('ALL:!COMPLEMENTOFDEFAULT:!eNULL'); + (* This is the default set of TLSv1.3 ciphersuites *) + TLS_DEFAULT_CIPHERSUITES = AnsiString('TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256'); + + (* + * As of OpenSSL 1.0.0, ssl_create_cipher_list() in ssl/ssl_ciph.c always + * starts with a reasonable order, and all we have to do for DEFAULT is + * throwing out anonymous and unencrypted ciphersuites! (The latter are not + * actually enabled by ALL, but "ALL:RSA" would enable some of them.) + *) + + (* Used in SSL_set_shutdown()/SSL_get_shutdown(); *) + SSL_SENT_SHUTDOWN = 1; + SSL_RECEIVED_SHUTDOWN = 2; + + SSL_FILETYPE_ASN1 = X509_FILETYPE_ASN1; + SSL_FILETYPE_PEM = X509_FILETYPE_PEM; + + {Error codes for the SSL functions.} + SSL_F_SSL_CTX_USE_CERTIFICATE_CHAIN_FILE = 220; + + (* Extension context codes *) + (* This extension is only allowed in TLS *) + SSL_EXT_TLS_ONLY = $0001; + (* This extension is only allowed in DTLS *) + SSL_EXT_DTLS_ONLY = $0002; + (* Some extensions may be allowed in DTLS but we don't implement them for it *) + SSL_EXT_TLS_IMPLEMENTATION_ONLY = $0004; + (* Most extensions are not defined for SSLv3 but EXT_TYPE_renegotiate is *) + SSL_EXT_SSL3_ALLOWED = $0008; + (* Extension is only defined for TLS1.2 and below *) + SSL_EXT_TLS1_2_AND_BELOW_ONLY = $0010; + (* Extension is only defined for TLS1.3 and above *) + SSL_EXT_TLS1_3_ONLY = $0020; + (* Ignore this extension during parsing if we are resuming *) + SSL_EXT_IGNORE_ON_RESUMPTION = $0040; + SSL_EXT_CLIENT_HELLO = $0080; + (* Really means TLS1.2 or below *) + SSL_EXT_TLS1_2_SERVER_HELLO = $0100; + SSL_EXT_TLS1_3_SERVER_HELLO = $0200; + SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS = $0400; + SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST = $0800; + SSL_EXT_TLS1_3_CERTIFICATE = $1000; + SSL_EXT_TLS1_3_NEW_SESSION_TICKET = $2000; + SSL_EXT_TLS1_3_CERTIFICATE_REQUEST = $4000; + + (* + * Some values are reserved until OpenSSL 1.2.0 because they were previously + * included in SSL_OP_ALL in a 1.1.x release. + * + * Reserved value (until OpenSSL 1.2.0) $00000001U + * Reserved value (until OpenSSL 1.2.0) $00000002U + *) + (* Allow initial connection to servers that don't support RI *) + SSL_OP_LEGACY_SERVER_CONNECT = TIdC_UINT($00000004); + + (* Reserved value (until OpenSSL 1.2.0) $00000008U *) + SSL_OP_TLSEXT_PADDING = TIdC_UINT($00000010); + (* Reserved value (until OpenSSL 1.2.0) $00000020U *) + SSL_OP_SAFARI_ECDHE_ECDSA_BUG = TIdC_UINT($00000040); + (* + * Reserved value (until OpenSSL 1.2.0) $00000080U + * Reserved value (until OpenSSL 1.2.0) $00000100U + * Reserved value (until OpenSSL 1.2.0) $00000200U + *) + + (* In TLSv1.3 allow a non-(ec)dhe based kex_mode *) + SSL_OP_ALLOW_NO_DHE_KEX = TIdC_UINT($00000400); + + (* + * Disable SSL 3.0/TLS 1.0 CBC vulnerability workaround that was added in + * OpenSSL 0.9.6d. Usually (depending on the application protocol) the + * workaround is not needed. Unfortunately some broken SSL/TLS + * implementations cannot handle it at all, which is why we include it in + * SSL_OP_ALL. Added in 0.9.6e + *) + SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS = TIdC_UINT($00000800); + + (* DTLS options *) + SSL_OP_NO_QUERY_MTU = TIdC_UINT($00001000); + (* Turn on Cookie Exchange (on relevant for servers) *) + SSL_OP_COOKIE_EXCHANGE = TIdC_UINT($00002000); + (* Don't use RFC4507 ticket extension *) + SSL_OP_NO_TICKET = TIdC_UINT($00004000); + (* Use Cisco's "speshul" version of DTLS_BAD_VER + * (only with deprecated DTLSv1_client_method()) *) + SSL_OP_CISCO_ANYCONNECT = TIdC_UINT($00008000); + + (* As server, disallow session resumption on renegotiation *) + SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION = TIdC_UINT($00010000); + (* Don't use compression even if supported *) + SSL_OP_NO_COMPRESSION = TIdC_UINT($00020000); + (* Permit unsafe legacy renegotiation *) + SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION = TIdC_UINT($00040000); + (* Disable encrypt-then-mac *) + SSL_OP_NO_ENCRYPT_THEN_MAC = TIdC_UINT($00080000); + + (* + * Enable TLSv1.3 Compatibility mode. This is on by default. A future version + * of OpenSSL may have this disabled by default. + *) + SSL_OP_ENABLE_MIDDLEBOX_COMPAT = TIdC_UINT($00100000); + + (* Prioritize Chacha20Poly1305 when client does. + * Modifies SSL_OP_CIPHER_SERVER_PREFERENCE *) + SSL_OP_PRIORITIZE_CHACHA = TIdC_UINT($00200000); + + (* + * Set on servers to choose the cipher according to the server's preferences + *) + SSL_OP_CIPHER_SERVER_PREFERENCE = TIdC_UINT($00400000); + (* + * If set, a server will allow a client to issue a SSLv3.0 version number as + * latest version supported in the premaster secret, even when TLSv1.0 + * (version 3.1) was announced in the client hello. Normally this is + * forbidden to prevent version rollback attacks. + *) + SSL_OP_TLS_ROLLBACK_BUG = TIdC_UINT($00800000); + + (* + * Switches off automatic TLSv1.3 anti-replay protection for early data. This + * is a server-side option only (no effect on the client). + *) + SSL_OP_NO_ANTI_REPLAY = TIdC_UINT($01000000); + + SSL_OP_NO_SSLv3 = TIdC_UINT($02000000); + SSL_OP_NO_TLSv1 = TIdC_UINT($04000000); + SSL_OP_NO_TLSv1_2 = TIdC_UINT($08000000); + SSL_OP_NO_TLSv1_1 = TIdC_UINT($10000000); + SSL_OP_NO_TLSv1_3 = TIdC_UINT($20000000); + + SSL_OP_NO_DTLSv1 = TIdC_UINT($04000000); + SSL_OP_NO_DTLSv1_2 = TIdC_UINT($08000000); + + SSL_OP_NO_SSL_MASK = SSL_OP_NO_SSLv3 or SSL_OP_NO_TLSv1 or SSL_OP_NO_TLSv1_1 + or SSL_OP_NO_TLSv1_2 or SSL_OP_NO_TLSv1_3; + SSL_OP_NO_DTLS_MASK = SSL_OP_NO_DTLSv1 or SSL_OP_NO_DTLSv1_2; + + (* Disallow all renegotiation *) + SSL_OP_NO_RENEGOTIATION = TIdC_UINT($40000000); + + (* + * Make server add server-hello extension from early version of cryptopro + * draft, when GOST ciphersuite is negotiated. Required for interoperability + * with CryptoPro CSP 3.x + *) + SSL_OP_CRYPTOPRO_TLSEXT_BUG = TIdC_UINT($80000000); + + (* + * SSL_OP_ALL: various bug workarounds that should be rather harmless. + * This used to be $000FFFFFL before 0.9.7. + * This used to be $80000BFFU before 1.1.1. + *) + SSL_OP_ALL = SSL_OP_CRYPTOPRO_TLSEXT_BUG or SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS + or SSL_OP_LEGACY_SERVER_CONNECT or SSL_OP_TLSEXT_PADDING or SSL_OP_SAFARI_ECDHE_ECDSA_BUG; + + (* OBSOLETE OPTIONS: retained for compatibility *) + + (* Removed from OpenSSL 1.1.0. Was $00000001L *) + (* Related to removed SSLv2. *) + SSL_OP_MICROSOFT_SESS_ID_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $00000002L *) + (* Related to removed SSLv2. *) + SSL_OP_NETSCAPE_CHALLENGE_BUG = $0; + (* Removed from OpenSSL 0.9.8q and 1.0.0c. Was $00000008L *) + (* Dead forever, see CVE-2010-4180 *) + SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG = $0; + (* Removed from OpenSSL 1.0.1h and 1.0.2. Was $00000010L *) + (* Refers to ancient SSLREF and SSLv2. *) + SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $00000020 *) + SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER = $0; + (* Removed from OpenSSL 0.9.7h and 0.9.8b. Was $00000040L *) + SSL_OP_MSIE_SSLV2_RSA_PADDING = $0; + (* Removed from OpenSSL 1.1.0. Was $00000080 *) + (* Ancient SSLeay version. *) + SSL_OP_SSLEAY_080_CLIENT_DH_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $00000100L *) + SSL_OP_TLS_D5_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $00000200L *) + SSL_OP_TLS_BLOCK_PADDING_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $00080000L *) + SSL_OP_SINGLE_ECDH_USE = $0; + (* Removed from OpenSSL 1.1.0. Was $00100000L *) + SSL_OP_SINGLE_DH_USE = $0; + (* Removed from OpenSSL 1.0.1k and 1.0.2. Was $00200000L *) + SSL_OP_EPHEMERAL_RSA = $0; + (* Removed from OpenSSL 1.1.0. Was $01000000L *) + SSL_OP_NO_SSLv2 = $0; + (* Removed from OpenSSL 1.0.1. Was $08000000L *) + SSL_OP_PKCS1_CHECK_1 = $0; + (* Removed from OpenSSL 1.0.1. Was $10000000L *) + SSL_OP_PKCS1_CHECK_2 = $0; + (* Removed from OpenSSL 1.1.0. Was $20000000L *) + SSL_OP_NETSCAPE_CA_DN_BUG = $0; + (* Removed from OpenSSL 1.1.0. Was $40000000L *) + SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG = $0; + + (* + * Allow SSL_write(..., n) to return r with 0 < r < n (i.e. report success + * when just a single record has been written): + *) + SSL_MODE_ENABLE_PARTIAL_WRITE = TIdC_UINT($00000001); + (* + * Make it possible to retry SSL_write() with changed buffer location (buffer + * contents must stay the same!); this is not the default to avoid the + * misconception that non-blocking SSL_write() behaves like non-blocking + * write(): + *) + SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER = TIdC_UINT($00000002); + (* + * Never bother the application with retries if the transport is blocking: + *) + SSL_MODE_AUTO_RETRY = TIdC_UINT($00000004); + (* Don't attempt to automatically build certificate chain *) + SSL_MODE_NO_AUTO_CHAIN = TIdC_UINT($00000008); + (* + * Save RAM by releasing read and write buffers when they're empty. (SSL3 and + * TLS only.) Released buffers are freed. + *) + SSL_MODE_RELEASE_BUFFERS = TIdC_UINT($00000010); + (* + * Send the current time in the Random fields of the ClientHello and + * ServerHello records for compatibility with hypothetical implementations + * that require it. + *) + SSL_MODE_SEND_CLIENTHELLO_TIME = TIdC_UINT($00000020); + SSL_MODE_SEND_SERVERHELLO_TIME = TIdC_UINT($00000040); + (* + * Send TLS_FALLBACK_SCSV in the ClientHello. To be set only by applications + * that reconnect with a downgraded protocol version; see + * draft-ietf-tls-downgrade-scsv-00 for details. DO NOT ENABLE THIS if your + * application attempts a normal handshake. Only use this in explicit + * fallback retries, following the guidance in + * draft-ietf-tls-downgrade-scsv-00. + *) + SSL_MODE_SEND_FALLBACK_SCSV = TIdC_UINT($00000080); + (* + * Support Asynchronous operation + *) + SSL_MODE_ASYNC = TIdC_UINT($00000100); + + (* + * 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 + *) + SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG = TIdC_UINT($00000400); + + (* Cert related flags *) + (* + * Many implementations ignore some aspects of the TLS standards such as + * enforcing certificate chain algorithms. When this is set we enforce them. + *) + SSL_CERT_FLAG_TLS_STRICT = TIdC_UINT($00000001); + (* Suite B modes, takes same values as certificate verify flags *) + SSL_CERT_FLAG_SUITEB_128_LOS_ONLY = $10000; + (* Suite B 192 bit only mode *) + SSL_CERT_FLAG_SUITEB_192_LOS = $20000; + (* Suite B 128 bit mode allowing 192 bit algorithms *) + SSL_CERT_FLAG_SUITEB_128_LOS = $30000; + + (* Perform all sorts of protocol violations for testing purposes *) + SSL_CERT_FLAG_BROKEN_PROTOCOL = $10000000; + + (* Flags for building certificate chains *) + (* Treat any existing certificates as untrusted CAs *) + SSL_BUILD_CHAIN_FLAG_UNTRUSTED = $1; + (* Don't include root CA in chain *) + SSL_BUILD_CHAIN_FLAG_NO_ROOT = $2; + (* Just check certificates already there *) + SSL_BUILD_CHAIN_FLAG_CHECK = $4; + (* Ignore verification errors *) + SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR = $8; + (* Clear verification errors from queue *) + SSL_BUILD_CHAIN_FLAG_CLEAR_ERROR = $10; + + (* Flags returned by SSL_check_chain *) + (* Certificate can be used with this session *) + CERT_PKEY_VALID = $1; + (* Certificate can also be used for signing *) + CERT_PKEY_SIGN = $2; + (* EE certificate signing algorithm OK *) + CERT_PKEY_EE_SIGNATURE = $10; + (* CA signature algorithms OK *) + CERT_PKEY_CA_SIGNATURE = $20; + (* EE certificate parameters OK *) + CERT_PKEY_EE_PARAM = $40; + (* CA certificate parameters OK *) + CERT_PKEY_CA_PARAM = $80; + (* Signing explicitly allowed as opposed to SHA1 fallback *) + CERT_PKEY_EXPLICIT_SIGN = $100; + (* Client CA issuer names match (always set for server cert) *) + CERT_PKEY_ISSUER_NAME = $200; + (* Cert type matches client types (always set for server cert) *) + CERT_PKEY_CERT_TYPE = $400; + (* Cert chain suitable to Suite B *) + CERT_PKEY_SUITEB = $800; + + SSL_CONF_FLAG_CMDLINE = $1; + SSL_CONF_FLAG_FILE = $2; + SSL_CONF_FLAG_CLIENT = $4; + SSL_CONF_FLAG_SERVER = $8; + SSL_CONF_FLAG_SHOW_ERRORS = $10; + SSL_CONF_FLAG_CERTIFICATE = $20; + SSL_CONF_FLAG_REQUIRE_PRIVATE = $40; + (* Configuration value types *) + SSL_CONF_TYPE_UNKNOWN = $0; + SSL_CONF_TYPE_STRING = $1; + SSL_CONF_TYPE_FILE = $2; + SSL_CONF_TYPE_DIR = $3; + SSL_CONF_TYPE_NONE = $4; + + (* Maximum length of the application-controlled segment of a a TLSv1.3 cookie *) + SSL_COOKIE_LENGTH = 4096; + + (* 100k max cert list *) + SSL_MAX_CERT_LIST_DEFAULT = 1024 * 100; + SSL_SESSION_CACHE_MAX_SIZE_DEFAULT = 1024 * 20; + + SSL_SESS_CACHE_OFF = $0000; + SSL_SESS_CACHE_CLIENT = $0001; + SSL_SESS_CACHE_SERVER = $0002; + SSL_SESS_CACHE_BOTH = (SSL_SESS_CACHE_CLIENT or SSL_SESS_CACHE_SERVER); + SSL_SESS_CACHE_NO_AUTO_CLEAR = $0080; + (* enough comments already ... see SSL_CTX_set_session_cache_mode(3) *) + SSL_SESS_CACHE_NO_INTERNAL_LOOKUP = $0100; + SSL_SESS_CACHE_NO_INTERNAL_STORE = $0200; + SSL_SESS_CACHE_NO_INTERNAL = (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP or SSL_SESS_CACHE_NO_INTERNAL_STORE); + + OPENSSL_NPN_UNSUPPORTED = 0; + OPENSSL_NPN_NEGOTIATED = 1; + OPENSSL_NPN_NO_OVERLAP = 2; + + (* + * the maximum length of the buffer given to callbacks containing the + * resulting identity/psk + *) + PSK_MAX_IDENTITY_LEN = 128; + PSK_MAX_PSK_LEN = 256; + + SSL_NOTHING = 1; + SSL_WRITING = 2; + SSL_READING = 3; + SSL_X509_LOOKUP = 4; + SSL_ASYNC_PAUSED = 5; + SSL_ASYNC_NO_JOBS = 6; + SSL_CLIENT_HELLO_CB = 7; + + SSL_MAC_FLAG_READ_MAC_STREAM = 1; + SSL_MAC_FLAG_WRITE_MAC_STREAM = 2; + + (* TLSv1.3 KeyUpdate message types *) + (* -1 used so that this is an invalid value for the on-the-wire protocol *) + SSL_KEY_UPDATE_NONE = -1; + (* Values as defined for the on-the-wire protocol *) + SSL_KEY_UPDATE_NOT_REQUESTED = 0; + SSL_KEY_UPDATE_REQUESTED = 1; + + (* + * Most of the following state values are no longer used and are defined to be + * the closest equivalent value in_ the current state machine code. Not all + * defines have an equivalent and are set to a dummy value (-1). SSL_ST_CONNECT + * and SSL_ST_ACCEPT are still in_ use in_ the definition of SSL_CB_ACCEPT_LOOP, + * SSL_CB_ACCEPT_EXIT, SSL_CB_CONNECT_LOOP and SSL_CB_CONNECT_EXIT. + *) + SSL_ST_CONNECT = $1000; + SSL_ST_ACCEPT = $2000; + + SSL_ST_MASK = $0FFF; + + SSL_CB_LOOP = $01; + SSL_CB_EXIT = $02; + SSL_CB_READ = $04; + SSL_CB_WRITE = $08; + SSL_CB_ALERT = $4000; + SSL_CB_READ_ALERT = SSL_CB_ALERT or SSL_CB_READ; + SSL_CB_WRITE_ALERT = SSL_CB_ALERT or SSL_CB_WRITE; + SSL_CB_ACCEPT_LOOP = SSL_ST_ACCEPT or SSL_CB_LOOP; + SSL_CB_ACCEPT_EXIT = SSL_ST_ACCEPT or SSL_CB_EXIT; + SSL_CB_CONNECT_LOOP = SSL_ST_CONNECT or SSL_CB_LOOP; + SSL_CB_CONNECT_EXIT = SSL_ST_CONNECT or SSL_CB_EXIT; + SSL_CB_HANDSHAKE_START = $10; + SSL_CB_HANDSHAKE_DONE = $20; + + (* + * The following 3 states are kept in ssl->rlayer.rstate when reads fail, you + * should not need these + *) + SSL_ST_READ_HEADER = $F0; + SSL_ST_READ_BODY = $F1; + SSL_ST_READ_DONE = $F2; + + (* + * use either SSL_VERIFY_NONE or SSL_VERIFY_PEER, the last 3 options are + * 'ored' with SSL_VERIFY_PEER if they are desired + *) + SSL_VERIFY_NONE = $00; + SSL_VERIFY_PEER = $01; + SSL_VERIFY_FAIL_IF_NO_PEER_CERT = $02; + SSL_VERIFY_CLIENT_ONCE = $04; + SSL_VERIFY_POST_HANDSHAKE = $08; + + SSL_AD_REASON_OFFSET = 1000; (* offset to get SSL_R_... value + * from SSL_AD_... *) + (* These alert types are for SSLv3 and TLSv1 *) + SSL_AD_CLOSE_NOTIFY = SSL3_AD_CLOSE_NOTIFY; + (* fatal *) + SSL_AD_UNEXPECTED_MESSAGE = SSL3_AD_UNEXPECTED_MESSAGE; + (* fatal *) + SSL_AD_BAD_RECORD_MAC = SSL3_AD_BAD_RECORD_MAC; + SSL_AD_DECRYPTION_FAILED = TLS1_AD_DECRYPTION_FAILED; + SSL_AD_RECORD_OVERFLOW = TLS1_AD_RECORD_OVERFLOW; + (* fatal *) + SSL_AD_DECOMPRESSION_FAILURE = SSL3_AD_DECOMPRESSION_FAILURE; + (* fatal *) + SSL_AD_HANDSHAKE_FAILURE = SSL3_AD_HANDSHAKE_FAILURE; + (* Not for TLS *) + SSL_AD_NO_CERTIFICATE = SSL3_AD_NO_CERTIFICATE; + SSL_AD_BAD_CERTIFICATE = SSL3_AD_BAD_CERTIFICATE; + SSL_AD_UNSUPPORTED_CERTIFICATE = SSL3_AD_UNSUPPORTED_CERTIFICATE; + SSL_AD_CERTIFICATE_REVOKED = SSL3_AD_CERTIFICATE_REVOKED; + SSL_AD_CERTIFICATE_EXPIRED = SSL3_AD_CERTIFICATE_EXPIRED; + SSL_AD_CERTIFICATE_UNKNOWN = SSL3_AD_CERTIFICATE_UNKNOWN; + (* fatal *) + SSL_AD_ILLEGAL_PARAMETER = SSL3_AD_ILLEGAL_PARAMETER; + (* fatal *) + SSL_AD_UNKNOWN_CA = TLS1_AD_UNKNOWN_CA; + (* fatal *) + SSL_AD_ACCESS_DENIED = TLS1_AD_ACCESS_DENIED; + (* fatal *) + SSL_AD_DECODE_ERROR = TLS1_AD_DECODE_ERROR; + SSL_AD_DECRYPT_ERROR = TLS1_AD_DECRYPT_ERROR; + (* fatal *) + SSL_AD_EXPORT_RESTRICTION = TLS1_AD_EXPORT_RESTRICTION; + (* fatal *) + SSL_AD_PROTOCOL_VERSION = TLS1_AD_PROTOCOL_VERSION; + (* fatal *) + SSL_AD_INSUFFICIENT_SECURITY = TLS1_AD_INSUFFICIENT_SECURITY; + (* fatal *) + SSL_AD_INTERNAL_ERROR = TLS1_AD_INTERNAL_ERROR; + SSL_AD_USER_CANCELLED = TLS1_AD_USER_CANCELLED; + SSL_AD_NO_RENEGOTIATION = TLS1_AD_NO_RENEGOTIATION; + SSL_AD_MISSING_EXTENSION = TLS13_AD_MISSING_EXTENSION; + SSL_AD_CERTIFICATE_REQUIRED = TLS13_AD_CERTIFICATE_REQUIRED; + SSL_AD_UNSUPPORTED_EXTENSION = TLS1_AD_UNSUPPORTED_EXTENSION; + SSL_AD_CERTIFICATE_UNOBTAINABLE = TLS1_AD_CERTIFICATE_UNOBTAINABLE; + SSL_AD_UNRECOGNIZED_NAME = TLS1_AD_UNRECOGNIZED_NAME; + SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE = TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE; + SSL_AD_BAD_CERTIFICATE_HASH_VALUE = TLS1_AD_BAD_CERTIFICATE_HASH_VALUE; + (* fatal *) + SSL_AD_UNKNOWN_PSK_IDENTITY = TLS1_AD_UNKNOWN_PSK_IDENTITY; + (* fatal *) + SSL_AD_INAPPROPRIATE_FALLBACK = TLS1_AD_INAPPROPRIATE_FALLBACK; + SSL_AD_NO_APPLICATION_PROTOCOL = TLS1_AD_NO_APPLICATION_PROTOCOL; + SSL_ERROR_NONE = 0; + SSL_ERROR_SSL = 1; + SSL_ERROR_WANT_READ = 2; + SSL_ERROR_WANT_WRITE = 3; + SSL_ERROR_WANT_X509_LOOKUP = 4; + SSL_ERROR_SYSCALL = 5; (* look at error stack/return + * value/errno *) + SSL_ERROR_ZERO_RETURN = 6; + SSL_ERROR_WANT_CONNECT = 7; + SSL_ERROR_WANT_ACCEPT = 8; + SSL_ERROR_WANT_ASYNC = 9; + SSL_ERROR_WANT_ASYNC_JOB = 10; + SSL_ERROR_WANT_CLIENT_HELLO_CB = 11; + SSL_CTRL_SET_TMP_DH = 3; + SSL_CTRL_SET_TMP_ECDH = 4; + SSL_CTRL_SET_TMP_DH_CB = 6; + SSL_CTRL_GET_CLIENT_CERT_REQUEST = 9; + SSL_CTRL_GET_NUM_RENEGOTIATIONS = 10; + SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS = 11; + SSL_CTRL_GET_TOTAL_RENEGOTIATIONS = 12; + SSL_CTRL_GET_FLAGS = 13; + SSL_CTRL_EXTRA_CHAIN_CERT = 14; + SSL_CTRL_SET_MSG_CALLBACK = 15; + SSL_CTRL_SET_MSG_CALLBACK_ARG = 16; + (* only applies to datagram connections *) + SSL_CTRL_SET_MTU = 17; + (* Stats *) + SSL_CTRL_SESS_NUMBER = 20; + SSL_CTRL_SESS_CONNECT = 21; + SSL_CTRL_SESS_CONNECT_GOOD = 22; + SSL_CTRL_SESS_CONNECT_RENEGOTIATE = 23; + SSL_CTRL_SESS_ACCEPT = 24; + SSL_CTRL_SESS_ACCEPT_GOOD = 25; + SSL_CTRL_SESS_ACCEPT_RENEGOTIATE = 26; + SSL_CTRL_SESS_HIT = 27; + SSL_CTRL_SESS_CB_HIT = 28; + SSL_CTRL_SESS_MISSES = 29; + SSL_CTRL_SESS_TIMEOUTS = 30; + SSL_CTRL_SESS_CACHE_FULL = 31; + SSL_CTRL_MODE = 33; + SSL_CTRL_GET_READ_AHEAD = 40; + SSL_CTRL_SET_READ_AHEAD = 41; + SSL_CTRL_SET_SESS_CACHE_SIZE = 42; + SSL_CTRL_GET_SESS_CACHE_SIZE = 43; + SSL_CTRL_SET_SESS_CACHE_MODE = 44; + SSL_CTRL_GET_SESS_CACHE_MODE = 45; + SSL_CTRL_GET_MAX_CERT_LIST = 50; + SSL_CTRL_SET_MAX_CERT_LIST = 51; + SSL_CTRL_SET_MAX_SEND_FRAGMENT = 52; + (* see tls1.h for macros based on these *) + SSL_CTRL_SET_TLSEXT_SERVERNAME_CB = 53; + SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG = 54; + SSL_CTRL_SET_TLSEXT_HOSTNAME = 55; + SSL_CTRL_SET_TLSEXT_DEBUG_CB = 56; + SSL_CTRL_SET_TLSEXT_DEBUG_ARG = 57; + SSL_CTRL_GET_TLSEXT_TICKET_KEYS = 58; + SSL_CTRL_SET_TLSEXT_TICKET_KEYS = 59; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB = 63; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG = 64; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE = 65; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS = 66; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS = 67; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS = 68; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS = 69; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP = 70; + SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP = 71; + SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB = 72; + SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB = 75; + SSL_CTRL_SET_SRP_VERIFY_PARAM_CB = 76; + SSL_CTRL_SET_SRP_GIVE_CLIENT_PWD_CB = 77; + SSL_CTRL_SET_SRP_ARG = 78; + SSL_CTRL_SET_TLS_EXT_SRP_USERNAME = 79; + SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH = 80; + SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD = 81; + SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT = 85; + SSL_CTRL_GET_DTLS_EXT_HEARTBEAT_PENDING = 86; + SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS = 87; + DTLS_CTRL_GET_TIMEOUT = 73; + DTLS_CTRL_HANDLE_TIMEOUT = 74; + SSL_CTRL_GET_RI_SUPPORT = 76; + SSL_CTRL_CLEAR_MODE = 78; + SSL_CTRL_SET_NOT_RESUMABLE_SESS_CB = 79; + SSL_CTRL_GET_EXTRA_CHAIN_CERTS = 82; + SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS = 83; + SSL_CTRL_CHAIN = 88; + SSL_CTRL_CHAIN_CERT = 89; + SSL_CTRL_GET_GROUPS = 90; + SSL_CTRL_SET_GROUPS = 91; + SSL_CTRL_SET_GROUPS_LIST = 92; + SSL_CTRL_GET_SHARED_GROUP = 93; + SSL_CTRL_SET_SIGALGS = 97; + SSL_CTRL_SET_SIGALGS_LIST = 98; + SSL_CTRL_CERT_FLAGS = 99; + SSL_CTRL_CLEAR_CERT_FLAGS = 100; + SSL_CTRL_SET_CLIENT_SIGALGS = 101; + SSL_CTRL_SET_CLIENT_SIGALGS_LIST = 102; + SSL_CTRL_GET_CLIENT_CERT_TYPES = 103; + SSL_CTRL_SET_CLIENT_CERT_TYPES = 104; + SSL_CTRL_BUILD_CERT_CHAIN = 105; + SSL_CTRL_SET_VERIFY_CERT_STORE = 106; + SSL_CTRL_SET_CHAIN_CERT_STORE = 107; + SSL_CTRL_GET_PEER_SIGNATURE_NID = 108; + SSL_CTRL_GET_PEER_TMP_KEY = 109; + SSL_CTRL_GET_RAW_CIPHERLIST = 110; + SSL_CTRL_GET_EC_POINT_FORMATS = 111; + SSL_CTRL_GET_CHAIN_CERTS = 115; + SSL_CTRL_SELECT_CURRENT_CERT = 116; + SSL_CTRL_SET_CURRENT_CERT = 117; + SSL_CTRL_SET_DH_AUTO = 118; + DTLS_CTRL_SET_LINK_MTU = 120; + DTLS_CTRL_GET_LINK_MIN_MTU = 121; + SSL_CTRL_GET_EXTMS_SUPPORT = 122; + SSL_CTRL_SET_MIN_PROTO_VERSION = 123; + SSL_CTRL_SET_MAX_PROTO_VERSION = 124; + SSL_CTRL_SET_SPLIT_SEND_FRAGMENT = 125; + SSL_CTRL_SET_MAX_PIPELINES = 126; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE = 127; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB = 128; + SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG = 129; + SSL_CTRL_GET_MIN_PROTO_VERSION = 130; + SSL_CTRL_GET_MAX_PROTO_VERSION = 131; + SSL_CTRL_GET_SIGNATURE_NID = 132; + SSL_CTRL_GET_TMP_KEY = 133; + SSL_CERT_SET_FIRST = 1; + SSL_CERT_SET_NEXT = 2; + SSL_CERT_SET_SERVER = 3; + + (* + * The following symbol names are old and obsolete. They are kept + * for compatibility reasons only and should not be used anymore. + *) + SSL_CTRL_GET_CURVES = SSL_CTRL_GET_GROUPS; + SSL_CTRL_SET_CURVES = SSL_CTRL_SET_GROUPS; + SSL_CTRL_SET_CURVES_LIST = SSL_CTRL_SET_GROUPS_LIST; + SSL_CTRL_GET_SHARED_CURVE = SSL_CTRL_GET_SHARED_GROUP; + +// SSL_get1_curves = SSL_get1_groups; +// SSL_CTX_set1_curves = SSL_CTX_set1_groups; +// SSL_CTX_set1_curves_list = SSL_CTX_set1_groups_list; +// SSL_set1_curves = SSL_set1_groups; +// SSL_set1_curves_list = SSL_set1_groups_list; +// SSL_get_shared_curve = SSL_get_shared_group; + + (* serverinfo file format versions *) + SSL_SERVERINFOV1 = 1; + SSL_SERVERINFOV2 = 2; + + SSL_CLIENT_HELLO_SUCCESS = 1; + SSL_CLIENT_HELLO_ERROR = 0; + SSL_CLIENT_HELLO_RETRY = -1; + + SSL_READ_EARLY_DATA_ERROR = 0; + SSL_READ_EARLY_DATA_SUCCESS = 1; + SSL_READ_EARLY_DATA_FINISH = 2; + + SSL_EARLY_DATA_NOT_SENT = 0; + SSL_EARLY_DATA_REJECTED = 1; + SSL_EARLY_DATA_ACCEPTED = 2; + + //SSLv23_method = TLS_method; + //SSLv23_server_method = TLS_server_method; + //SSLv23_client_method = TLS_client_method; + + (* What the 'other' parameter contains in_ security callback *) + (* Mask for type *) + SSL_SECOP_OTHER_TYPE = $ffff0000; + SSL_SECOP_OTHER_NONE = 0; + SSL_SECOP_OTHER_CIPHER = (1 shl 16); + SSL_SECOP_OTHER_CURVE = (2 shl 16); + SSL_SECOP_OTHER_DH = (3 shl 16); + SSL_SECOP_OTHER_PKEY = (4 shl 16); + SSL_SECOP_OTHER_SIGALG = (5 shl 16); + SSL_SECOP_OTHER_CERT = (6 shl 16); + + (* Indicated operation refers to peer key or certificate *) + SSL_SECOP_PEER = $1000; + + (* Values for "op" parameter in security callback *) + + (* Called to filter ciphers *) + (* Ciphers client supports *) + SSL_SECOP_CIPHER_SUPPORTED = 1 or SSL_SECOP_OTHER_CIPHER; + (* Cipher shared by client/server *) + SSL_SECOP_CIPHER_SHARED = 2 or SSL_SECOP_OTHER_CIPHER; + (* Sanity check of cipher server selects *) + SSL_SECOP_CIPHER_CHECK = 3 or SSL_SECOP_OTHER_CIPHER; + (* Curves supported by client *) + SSL_SECOP_CURVE_SUPPORTED = 4 or SSL_SECOP_OTHER_CURVE; + (* Curves shared by client/server *) + SSL_SECOP_CURVE_SHARED = 5 or SSL_SECOP_OTHER_CURVE; + (* Sanity check of curve server selects *) + SSL_SECOP_CURVE_CHECK = 6 or SSL_SECOP_OTHER_CURVE; + (* Temporary DH key *) + SSL_SECOP_TMP_DH = 7 or SSL_SECOP_OTHER_PKEY; + (* SSL/TLS version *) + SSL_SECOP_VERSION = 9 or SSL_SECOP_OTHER_NONE; + (* Session tickets *) + SSL_SECOP_TICKET = 10 or SSL_SECOP_OTHER_NONE; + (* Supported signature algorithms sent to peer *) + SSL_SECOP_SIGALG_SUPPORTED = 11 or SSL_SECOP_OTHER_SIGALG; + (* Shared signature algorithm *) + SSL_SECOP_SIGALG_SHARED = 12 or SSL_SECOP_OTHER_SIGALG; + (* Sanity check signature algorithm allowed *) + SSL_SECOP_SIGALG_CHECK = 13 or SSL_SECOP_OTHER_SIGALG; + (* Used to get mask of supported public key signature algorithms *) + SSL_SECOP_SIGALG_MASK = 14 or SSL_SECOP_OTHER_SIGALG; + (* Use to see if compression is allowed *) + SSL_SECOP_COMPRESSION = 15 or SSL_SECOP_OTHER_NONE; + (* EE key in certificate *) + SSL_SECOP_EE_KEY = 16 or SSL_SECOP_OTHER_CERT; + (* CA key in certificate *) + SSL_SECOP_CA_KEY = 17 or SSL_SECOP_OTHER_CERT; + (* CA digest algorithm in certificate *) + SSL_SECOP_CA_MD = 18 or SSL_SECOP_OTHER_CERT; + (* Peer EE key in certificate *) + SSL_SECOP_PEER_EE_KEY = SSL_SECOP_EE_KEY or SSL_SECOP_PEER; + (* Peer CA key in certificate *) + SSL_SECOP_PEER_CA_KEY = SSL_SECOP_CA_KEY or SSL_SECOP_PEER; + (* Peer CA digest algorithm in certificate *) + SSL_SECOP_PEER_CA_MD = SSL_SECOP_CA_MD or SSL_SECOP_PEER; + + (* OPENSSL_INIT flag 0x010000 reserved for internal use *) + OPENSSL_INIT_NO_LOAD_SSL_STRINGS = TIdC_LONG($00100000); + OPENSSL_INIT_LOAD_SSL_STRINGS = TIdC_LONG($00200000); + OPENSSL_INIT_SSL_DEFAULT = OPENSSL_INIT_LOAD_SSL_STRINGS or OPENSSL_INIT_LOAD_CRYPTO_STRINGS; + + (* Support for ticket appdata *) + (* fatal error, malloc failure *) + SSL_TICKET_FATAL_ERR_MALLOC = 0; + (* fatal error, either from parsing or decrypting the ticket *) + SSL_TICKET_FATAL_ERR_OTHER = 1; + (* No ticket present *) + SSL_TICKET_NONE = 2; + (* Empty ticket present *) + SSL_TICKET_EMPTY = 3; + (* the ticket couldn't be decrypted *) + SSL_TICKET_NO_DECRYPT = 4; + (* a ticket was successfully decrypted *) + SSL_TICKET_SUCCESS = 5; + (* same as above but the ticket needs to be renewed *) + SSL_TICKET_SUCCESS_RENEW = 6; + + (* An error occurred *) + SSL_TICKET_RETURN_ABORT = 0; + (* Do not use the ticket, do not send a renewed ticket to the client *) + SSL_TICKET_RETURN_IGNORE = 1; + (* Do not use the ticket, send a renewed ticket to the client *) + SSL_TICKET_RETURN_IGNORE_RENEW = 2; + (* Use the ticket, do not send a renewed ticket to the client *) + SSL_TICKET_RETURN_USE = 3; + (* Use the ticket, send a renewed ticket to the client *) + SSL_TICKET_RETURN_USE_RENEW = 4; + +type + (* + * This is needed to stop compilers complaining about the 'struct ssl_st *' + * function parameters used to prototype callbacks in SSL_CTX. + *) + ssl_crock_st = ^ssl_st; + TLS_SESSION_TICKET_EXT = tls_session_ticket_ext_st; + ssl_method_st = type Pointer; + SSL_METHOD = ssl_method_st; + PSSL_METHOD = ^SSL_METHOD; + ssl_session_st = type Pointer; + SSL_CIPHER = ssl_session_st; + PSSL_CIPHER = ^SSL_CIPHER; + SSL_SESSION = ssl_session_st; + PSSL_SESSION = ^SSL_SESSION; + PPSSL_SESSION = ^PSSL_SESSION; + tls_sigalgs_st = type Pointer; + TLS_SIGALGS = tls_sigalgs_st; + ssl_conf_ctx_st = type Pointer; + SSL_CONF_CTX = ssl_conf_ctx_st; + PSSL_CONF_CTX = ^SSL_CONF_CTX; + ssl_comp_st = type Pointer; + SSL_COMP = ssl_comp_st; + + + //STACK_OF(SSL_CIPHER); + //STACK_OF(SSL_COMP); + + (* SRTP protection profiles for use with the use_srtp extension (RFC 5764)*) + srtp_protection_profile_st = record + name: PIdAnsiChar; + id: TIdC_ULONG; + end; + SRTP_PROTECTION_PROFILE = srtp_protection_profile_st; + PSRTP_PROTECTION_PROFILE = ^SRTP_PROTECTION_PROFILE; + + //DEFINE_STACK_OF(SRTP_PROTECTION_PROFILE) + + (* Typedefs for handling custom extensions *) + custom_ext_add_cb = function (s: PSSL; ext_type: TIdC_UINT; const out_: PByte; outlen: PIdC_SIZET; al: PIdC_INT; add_arg: Pointer): TIdC_INT; cdecl; + custom_ext_free_cb = procedure (s: PSSL; ext_type: TIdC_UINT; const out_: PByte; add_arg: Pointer); cdecl; + custom_ext_parse_cb = function (s: PSSL; ext_type: TIdC_UINT; const in_: PByte; inlen: TIdC_SIZET; al: PIdC_INT; parse_arg: Pointer): TIdC_INT; cdecl; + + SSL_custom_ext_add_cb_ex = function (s: PSSL; ext_type: TIdC_UINT; context: TIdC_UINT; const out_: PByte; outlen: PIdC_SIZET; x: Px509; chainidx: TIdC_SIZET; al: PIdC_INT; add_arg: Pointer): TIdC_INT; cdecl; + SSL_custom_ext_free_cb_ex = procedure (s: PSSL; ext_type: TIdC_UINT; context: TIdC_UINT; const out_: PByte; add_arg: Pointer); cdecl; + SSL_custom_ext_parse_cb_ex = function (s: PSSL; ext_type: TIdC_UINT; context: TIdC_UINT; const in_: PByte; inlen: TIdC_SIZET; x: Px509; chainidx: TIdC_SIZET; al: PIdC_INT; parse_arg: Pointer): TIdC_INT; cdecl; + + (* Typedef for verification callback *) + SSL_verify_cb = function (preverify_ok: TIdC_INT; x509_ctx: PX509_STORE_CTX): TIdC_INT; cdecl; + + tls_session_ticket_ext_cb_fn = function (s: PSSL; const data: PByte; len: TIdC_INT; arg: Pointer): TIdC_INT; cdecl; + + (* + * This callback type is used inside SSL_CTX, SSL, and in_ the functions that + * set them. It is used to override the generation of SSL/TLS session IDs in_ + * a server. Return value should be zero on an error, non-zero to proceed. + * Also, callbacks should themselves check if the id they generate is unique + * otherwise the SSL handshake will fail with an error - callbacks can do + * this using the 'ssl' value they're passed by; + * SSL_has_matching_session_id(ssl, id, *id_len) The length value passed in_ + * is set at the maximum size the session ID can be. in_ SSLv3/TLSv1 it is 32 + * bytes. The callback can alter this length to be less if desired. It is + * also an error for the callback to set the size to zero. + *) + GEN_SESSION_CB = function (ssl: PSSL; id: PByte; id_len: PIdC_UINT): TIdC_INT; cdecl; + + SSL_CTX_info_callback = procedure (const ssl: PSSL; type_: TIdC_INT; val: TIdC_INT); cdecl; + SSL_CTX_client_cert_cb = function (ssl: PSSL; x509: PPx509; pkey: PPEVP_PKEY): TIdC_INT; cdecl; + + SSL_CTX_cookie_verify_cb = function (ssl: PSSL; cookie: PByte; cookie_len: PIdC_UINT): TIdC_INT; cdecl; + SSL_CTX_set_cookie_verify_cb_app_verify_cookie_cb = function (ssl: PSSL; const cookie: PByte; cookie_len: TIdC_UINT): TIdC_INT; cdecl; + SSL_CTX_set_stateless_cookie_generate_cb_gen_stateless_cookie_cb = function (ssl: PSSL; cookie: PByte; cookie_len: PIdC_SIZET): TIdC_INT; cdecl; + SSL_CTX_set_stateless_cookie_verify_cb_verify_stateless_cookie_cb = function (ssl: PSSL; const cookie: PByte; cookie_len: TIdC_SIZET): TIdC_INT; cdecl; + + SSL_CTX_alpn_select_cb_func = function (ssl: PSSL; const out_: PPByte; outlen: PByte; const in_: PByte; inlen: TIdC_UINT; arg: Pointer): TIdC_INT; cdecl; + SSL_psk_client_cb_func = function (ssl: PSSL; const hint: PIdAnsiChar; identity: PIdAnsiChar; max_identity_len: TIdC_UINT; psk: PByte; max_psk_len: TIdC_UINT): TIdC_UINT; cdecl; + SSL_psk_server_cb_func = function (ssl: PSSL; const identity: PIdAnsiChar; psk: PByte; max_psk_len: TIdC_UINT): TIdC_UINT; cdecl; + SSL_psk_find_session_cb_func = function (ssl: PSSL; const identity: PByte; identity_len: TIdC_SIZET; sess: PPSSL_SESSION): TIdC_INT; cdecl; + SSL_psk_use_session_cb_func = function (ssl: PSSL; const md: PEVP_MD; const id: PPByte; idlen: PIdC_SIZET; sess: PPSSL_SESSION): TIdC_INT; cdecl; + + (* + * A callback for logging out TLS key material. This callback should log out + * |line| followed by a newline. + *) + SSL_CTX_keylog_cb_func = procedure(const ssl: PSSL; const line: PIdAnsiChar); cdecl; + + (* + * The valid handshake states (one for each type message sent and one for each + * type of message received). There are also two "special" states: + * TLS = TLS or DTLS state + * DTLS = DTLS specific state + * CR/SR = Client Read/Server Read + * CW/SW = Client Write/Server Write + * + * The "special" states are: + * TLS_ST_BEFORE = No handshake has been initiated yet + * TLS_ST_OK = A handshake has been successfully completed + *) + TLS_ST_OK = ( + DTLS_ST_CR_HELLO_VERIFY_REQUEST, + TLS_ST_CR_SRVR_HELLO, + TLS_ST_CR_CERT, + TLS_ST_CR_CERT_STATUS, + TLS_ST_CR_KEY_EXCH, + TLS_ST_CR_CERT_REQ, + TLS_ST_CR_SRVR_DONE, + TLS_ST_CR_SESSION_TICKET, + TLS_ST_CR_CHANGE, + TLS_ST_CR_FINISHED, + TLS_ST_CW_CLNT_HELLO, + TLS_ST_CW_CERT, + TLS_ST_CW_KEY_EXCH, + TLS_ST_CW_CERT_VRFY, + TLS_ST_CW_CHANGE, + TLS_ST_CW_NEXT_PROTO, + TLS_ST_CW_FINISHED, + TLS_ST_SW_HELLO_REQ, + TLS_ST_SR_CLNT_HELLO, + DTLS_ST_SW_HELLO_VERIFY_REQUEST, + TLS_ST_SW_SRVR_HELLO, + TLS_ST_SW_CERT, + TLS_ST_SW_KEY_EXCH, + TLS_ST_SW_CERT_REQ, + TLS_ST_SW_SRVR_DONE, + TLS_ST_SR_CERT, + TLS_ST_SR_KEY_EXCH, + TLS_ST_SR_CERT_VRFY, + TLS_ST_SR_NEXT_PROTO, + TLS_ST_SR_CHANGE, + TLS_ST_SR_FINISHED, + TLS_ST_SW_SESSION_TICKET, + TLS_ST_SW_CERT_STATUS, + TLS_ST_SW_CHANGE, + TLS_ST_SW_FINISHED, + TLS_ST_SW_ENCRYPTED_EXTENSIONS, + TLS_ST_CR_ENCRYPTED_EXTENSIONS, + TLS_ST_CR_CERT_VRFY, + TLS_ST_SW_CERT_VRFY, + TLS_ST_CR_HELLO_REQ, + TLS_ST_SW_KEY_UPDATE, + TLS_ST_CW_KEY_UPDATE, + TLS_ST_SR_KEY_UPDATE, + TLS_ST_CR_KEY_UPDATE, + TLS_ST_EARLY_DATA, + TLS_ST_PENDING_EARLY_DATA_END, + TLS_ST_CW_END_OF_EARLY_DATA + ); + OSSL_HANDSHAKE_STATE = TLS_ST_OK; + + SSL_CTX_set_cert_verify_callback_cb = function (v1: PX509_STORE_CTX; v2: Pointer): TIdC_INT; cdecl; + SSL_CTX_set_cert_cb_cb = function (ssl: PSSL; arg: Pointer): TIdC_INT; cdecl; + + SSL_CTX_set_srp_client_pwd_callback_cb = function (v1: PSSL; v2: Pointer): PIdAnsiChar; cdecl; + SSL_CTX_set_srp_verify_param_callback_cb = function (v1: PSSL; v2: Pointer): TIdC_INT; cdecl; + SSL_CTX_set_srp_username_callback_cb = function (v1: PSSL; v2: PIdC_INT; v3: Pointer): TIdC_INT; cdecl; + SSL_client_hello_cb_fn = function (s: PSSL; al: PIdC_INT; arg: Pointer): TIdC_INT; cdecl; + SSL_callback_ctrl_v3 = procedure; cdecl; + SSL_CTX_callback_ctrl_v3 = procedure; cdecl; + SSL_info_callback = procedure (const ssl: PSSL; type_: TIdC_INT; val: TIdC_INT); cdecl; + + (* NB: the |keylength| is only applicable when is_export is true *) + SSL_CTX_set_tmp_dh_callback_dh = function (ssl: PSSL; is_export: TIdC_INT; keylength: TIdC_INT): PDH; cdecl; + SSL_set_tmp_dh_callback_dh = function (ssl: PSSL; is_export: TIdC_INT; keylength: TIdC_INT): PDH; cdecl; + SSL_CTX_set_not_resumable_session_callback_cb = function (ssl: PSSL; is_forward_secure: TIdC_INT): TIdC_INT; cdecl; + SSL_set_not_resumable_session_callback_cb = function (ssl: PSSL; is_forward_secure: TIdC_INT): TIdC_INT; cdecl; + SSL_CTX_set_record_padding_callback_cb = function (ssl: PSSL; type_: TIdC_INT; len: TIdC_SIZET; arg: Pointer): TIdC_SIZET; cdecl; + SSL_set_record_padding_callback_cb = function (ssl: PSSL; type_: TIdC_INT; len: TIdC_SIZET; arg: Pointer): TIdC_SIZET; cdecl; + + (* + * The validation type enumerates the available behaviours of the built-in SSL + * CT validation callback selected via SSL_enable_ct() and SSL_CTX_enable_ct(). + * The underlying callback is a static function in libssl. + *) + SSL_CT_VALIDATION = ( + SSL_CT_VALIDATION_PERMISSIVE = 0, + SSL_CT_VALIDATION_STRICT + ); + SSL_security_callback = function (const s: PSSL; const ctx: PSSL_CTX; op: TIdC_INT; bits: TIdC_INT; nid: TIdC_INT; other: Pointer; ex: Pointer): TIdC_INT; cdecl; + + (* Status codes passed to the decrypt session ticket callback. Some of these + * are for internal use only and are never passed to the callback. *) + SSL_TICKET_STATUS = TIdC_INT; + SSL_TICKET_RETURN = TIdC_INT; + + SSL_CTX_generate_session_ticket_fn = function(s: PSSL; arg: Pointer): TIdC_INT; cdecl; + + SSL_CTX_decrypt_session_ticket_fn = function (s: PSSL; ss: PSSL_SESSION; const keyname: PByte; keyname_length: TIdC_SIZET; status: SSL_TICKET_STATUS; arg: Pointer): SSL_TICKET_RETURN; cdecl; + + DTLS_timer_cb = function(s: PSSL; timer_us: TIdC_UINT): TIdC_UINT; cdecl; + SSL_allow_early_data_cb_fn = function(s: PSSL; arg: Pointer): TIdC_INT; cdecl; + + SSL_CTX_sess_new_cb = function (ssl: PSSL; sess: PSSL_SESSION): TIdC_INT; cdecl; + + SSL_CTX_sess_remove_cb = procedure(ctx: PSSL_CTX; sess: PSSL_SESSION); cdecl; + + TSSL_CTX_set_verify_callback = function (ok : TIdC_INT; ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; + +function SSL_CTX_set_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_clear_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; {removed 1.0.0} + +function SSL_CTX_sess_set_cache_size(ctx: PSSL_CTX; t: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_sess_get_cache_size(ctx: PSSL_CTX): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set_session_cache_mode(ctx: PSSL_CTX; m: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_get_session_cache_mode(ctx: PSSL_CTX): TIdC_LONG; {removed 1.0.0} + +function SSL_clear_num_renegotiations(ssl: PSSL): TIdC_LONG; {removed 1.0.0} +function SSL_total_renegotiations(ssl: PSSL): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set_tmp_dh(ctx: PSSL_CTX; dh: PDH): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set_tmp_ecdh(ctx: PSSL_CTX; ecdh: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set_dh_auto(ctx: PSSL_CTX; onoff: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set_dh_auto(s: PSSL; onoff: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set_tmp_dh(ssl: PSSL; dh: PDH): TIdC_LONG; {removed 1.0.0} +function SSL_set_tmp_ecdh(ssl: PSSL; ecdh: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_add_extra_chain_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_get_extra_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_get_extra_chain_certs_only(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_clear_extra_chain_certs(ctx: PSSL_CTX): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set0_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_add0_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_add1_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_get0_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_clear_chain_certs(ctx: PSSL_CTX): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_build_cert_chain(ctx: PSSL_CTX; flags: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_select_current_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set_current_cert(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set0_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set0_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_set0_chain(s: PSSL; sk: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_chain(s: PSSL; sk: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_add0_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_add1_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_get0_chain_certs(s: PSSL; px509: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_clear_chain_certs(s: PSSL): TIdC_LONG; {removed 1.0.0} +function SSL_build_cert_chain(s: PSSL; flags: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_select_current_cert(s: PSSL; x509: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set_current_cert(s: PSSL; op: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set0_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set0_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_get1_groups(s: PSSL; glist: PIdC_INT): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_groups(ctx: PSSL_CTX; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_groups_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_groups(s: PSSL; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set1_groups_list(s: PSSL; str: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_get_shared_group(s: PSSL; n: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set1_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_client_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_client_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_set1_client_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set1_client_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_get0_certificate_types(s: PSSL; clist: PByte): TIdC_LONG; {removed 1.0.0} +function SSL_CTX_set1_client_certificate_types(ctx: PSSL_CTX; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_set1_client_certificate_types(s: PSSL; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; {removed 1.0.0} +function SSL_get_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_get_peer_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_get_peer_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_get_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_get0_raw_cipherlist(s: PSSL; plst: Pointer): TIdC_LONG; {removed 1.0.0} +function SSL_get0_ec_point_formats(s: PSSL; plst: Pointer): TIdC_LONG; {removed 1.0.0} + + //typedef TIdC_INT (*tls_session_secret_cb_fn)(s: PSSL, void *secret, TIdC_INT *secret_len, + // STACK_OF(SSL_CIPHER) *peer_ciphers, + // const SSL_CIPHER **cipher, void *arg); + + function SSL_CTX_get_options(const ctx: PSSL_CTX): TIdC_ULONG; {introduced 1.1.0} + function SSL_get_options(const s: PSSL): TIdC_ULONG; {introduced 1.1.0} + function SSL_CTX_clear_options(ctx: PSSL_CTX; op: TIdC_ULONG): TIdC_ULONG; {introduced 1.1.0} + function SSL_clear_options(s: PSSL; op: TIdC_ULONG): TIdC_ULONG; {introduced 1.1.0} + function SSL_CTX_set_options(ctx: PSSL_CTX; op: TIdC_ULONG): TIdC_ULONG; {introduced 1.1.0} + function SSL_set_options(s: PSSL; op: TIdC_ULONG): TIdC_ULONG; {introduced 1.1.0} + + //# define SSL_CTX_set_mode(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL) + //# define SSL_CTX_clear_mode(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_MODE,(op),NULL) + //# define SSL_CTX_get_mode(ctx) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,0,NULL) + //# define SSL_clear_mode(ssl,op) \ + // SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL) + //# define SSL_set_mode(ssl,op) \ + // SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL) + //# define SSL_get_mode(ssl) \ + // SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL) + //# define SSL_set_mtu(ssl, mtu) \ + // SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL) + //# define DTLS_set_link_mtu(ssl, mtu) \ + // SSL_ctrl((ssl),DTLS_CTRL_SET_LINK_MTU,(mtu),NULL) + //# define DTLS_get_link_min_mtu(ssl) \ + // SSL_ctrl((ssl),DTLS_CTRL_GET_LINK_MIN_MTU,0,NULL) + // + //# define SSL_get_secure_renegotiation_support(ssl) \ + // SSL_ctrl((ssl), SSL_CTRL_GET_RI_SUPPORT, 0, NULL) + // + //# ifndef OPENSSL_NO_HEARTBEATS + //# define SSL_heartbeat(ssl) \ + // SSL_ctrl((ssl),SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT,0,NULL) + //# endif + // + //# define SSL_CTX_set_cert_flags(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_CERT_FLAGS,(op),NULL) + //# define SSL_set_cert_flags(s,op) \ + // SSL_ctrl((s),SSL_CTRL_CERT_FLAGS,(op),NULL) + //# define SSL_CTX_clear_cert_flags(ctx,op) \ + // SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL) + //# define SSL_clear_cert_flags(s,op) \ + // SSL_ctrl((s),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL) + // + //void SSL_CTX_set_msg_callback(ctx: PSSL_CTX, + // void (*cb) (TIdC_INT write_p, TIdC_INT version, + // TIdC_INT content_type, const void *buf, + // TIdC_SIZET len, ssl: PSSL, void *arg)); + //void SSL_set_msg_callback(ssl: PSSL, + // void (*cb) (TIdC_INT write_p, TIdC_INT version, + // TIdC_INT content_type, const void *buf, + // TIdC_SIZET len, ssl: PSSL, void *arg)); + //# define SSL_CTX_set_msg_callback_arg(ctx, arg) SSL_CTX_ctrl((ctx), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg)) + //# define SSL_set_msg_callback_arg(ssl, arg) SSL_ctrl((ssl), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg)) + // + //# define SSL_get_extms_support(s) \ + // SSL_ctrl((s),SSL_CTRL_GET_EXTMS_SUPPORT,0,NULL) + // + //# ifndef OPENSSL_NO_SRP + + ///* see tls_srp.c */ + //__owur TIdC_INT SSL_SRP_CTX_init(s: PSSL); + //__owur TIdC_INT SSL_CTX_SRP_CTX_init(ctx: PSSL_CTX); + //TIdC_INT SSL_SRP_CTX_free(SSL *ctx); + //TIdC_INT SSL_CTX_SRP_CTX_free(ctx: PSSL_CTX); + //__owur TIdC_INT SSL_srp_server_param_with_username(s: PSSL, TIdC_INT *ad); + //__owur TIdC_INT SRP_Calc_A_param(s: PSSL); + + // # endif + + // LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(ctx: PSSL_CTX); + //# define SSL_CTX_sess_number(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_NUMBER,0,NULL) + //# define SSL_CTX_sess_connect(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT,0,NULL) + //# define SSL_CTX_sess_connect_good(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_GOOD,0,NULL) + //# define SSL_CTX_sess_connect_renegotiate(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_RENEGOTIATE,0,NULL) + //# define SSL_CTX_sess_accept(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT,0,NULL) + //# define SSL_CTX_sess_accept_renegotiate(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_RENEGOTIATE,0,NULL) + //# define SSL_CTX_sess_accept_good(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_GOOD,0,NULL) + //# define SSL_CTX_sess_hits(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_HIT,0,NULL) + //# define SSL_CTX_sess_cb_hits(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CB_HIT,0,NULL) + //# define SSL_CTX_sess_misses(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_MISSES,0,NULL) + //# define SSL_CTX_sess_timeouts(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_TIMEOUTS,0,NULL) + //# define SSL_CTX_sess_cache_full(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CACHE_FULL,0,NULL) + + procedure SSL_CTX_sess_set_new_cb(ctx: PSSL_CTX; new_session_cb: SSL_CTX_sess_new_cb); + function SSL_CTX_sess_get_new_cb(ctx: PSSL_CTX): SSL_CTX_sess_new_cb; + procedure SSL_CTX_sess_set_remove_cb(ctx: PSSL_CTX; remove_session_cb: SSL_CTX_sess_remove_cb); + function SSL_CTX_sess_get_remove_cb(ctx: PSSL_CTX): SSL_CTX_sess_remove_cb; + + //void SSL_CTX_sess_set_get_cb(ctx: PSSL_CTX, + // SSL_SESSION *(*get_session_cb) (struct ssl_st + // *ssl, + // const Byte + // *data, TIdC_INT len, + // TIdC_INT *copy)); + //SSL_SESSION *(*SSL_CTX_sess_get_get_cb(ctx: PSSL_CTX)) (struct ssl_st *ssl, + // const d: PByteata, + // TIdC_INT len, TIdC_INT *copy); + procedure SSL_CTX_set_info_callback(ctx: PSSL_CTX; cb: SSL_CTX_info_callback); + function SSL_CTX_get_info_callback(ctx: PSSL_CTX): SSL_CTX_info_callback; + procedure SSL_CTX_set_client_cert_cb(ctx: PSSL_CTX; client_cert_cb: SSL_CTX_client_cert_cb); + function SSL_CTX_get_client_cert_cb(ctx: PSSL_CTX): SSL_CTX_client_cert_cb; + function SSL_CTX_set_client_cert_engine(ctx: PSSL_CTX; e: PENGINE): TIdC_INT; + + procedure SSL_CTX_set_cookie_generate_cb(ctx: PSSL_CTX; app_gen_cookie_cb: SSL_CTX_cookie_verify_cb); + procedure SSL_CTX_set_cookie_verify_cb(ctx: PSSL_CTX; app_verify_cookie_cb: SSL_CTX_set_cookie_verify_cb_app_verify_cookie_cb); + procedure SSL_CTX_set_stateless_cookie_generate_cb(ctx: PSSL_CTX; gen_stateless_cookie_cb: SSL_CTX_set_stateless_cookie_generate_cb_gen_stateless_cookie_cb); {introduced 1.1.0} + procedure SSL_CTX_set_stateless_cookie_verify_cb(ctx: PSSL_CTX; verify_stateless_cookie_cb: SSL_CTX_set_stateless_cookie_verify_cb_verify_stateless_cookie_cb); {introduced 1.1.0} + + //__owur TIdC_INT SSL_CTX_set_alpn_protos(ctx: PSSL_CTX, const Byte *protos, + // TIdC_UINT protos_len); + //__owur TIdC_INT SSL_set_alpn_protos(ssl: PSSL, const Byte *protos, + // TIdC_UINT protos_len); + + procedure SSL_CTX_set_alpn_select_cb(ctx: PSSL_CTX; cb: SSL_CTX_alpn_select_cb_func; arg: Pointer); + procedure SSL_get0_alpn_selected(const ssl: PSSL; const data: PPByte; len: PIdC_UINT); + procedure SSL_CTX_set_psk_client_callback(ctx: PSSL_CTX; cb: SSL_psk_client_cb_func); + procedure SSL_set_psk_client_callback(ssl: PSSL; cb: SSL_psk_client_cb_func); + procedure SSL_CTX_set_psk_server_callback(ctx: PSSL_CTX; cb: SSL_psk_server_cb_func); + procedure SSL_set_psk_server_callback(ssl: PSSL; cb: SSL_psk_server_cb_func); + + //__owur TIdC_INT SSL_CTX_use_psk_identity_hint(ctx: PSSL_CTX, const PIdAnsiChar *identity_hint); + //__owur TIdC_INT SSL_use_psk_identity_hint(s: PSSL, const PIdAnsiChar *identity_hint); + //const PIdAnsiChar *SSL_get_psk_identity_hint(const s: PSSL); + //const PIdAnsiChar *SSL_get_psk_identity(const s: PSSL); + + procedure SSL_set_psk_find_session_callback(s: PSSL; cb: SSL_psk_find_session_cb_func); {introduced 1.1.0} + procedure SSL_CTX_set_psk_find_session_callback(ctx: PSSL_CTX; cb: SSL_psk_find_session_cb_func); {introduced 1.1.0} + procedure SSL_set_psk_use_session_callback(s: PSSL; cb: SSL_psk_use_session_cb_func); {introduced 1.1.0} + procedure SSL_CTX_set_psk_use_session_callback(ctx: PSSL_CTX; cb: SSL_psk_use_session_cb_func); {introduced 1.1.0} + + ///* Register callbacks to handle custom TLS Extensions for client or server. */ + + //__owur TIdC_INT SSL_CTX_has_client_custom_ext(const ctx: PSSL_CTX, + // TIdC_UINT ext_type); + // + //__owur TIdC_INT SSL_CTX_add_client_custom_ext(ctx: PSSL_CTX, + // TIdC_UINT ext_type, + // custom_ext_add_cb add_cb, + // custom_ext_free_cb free_cb, + // void *add_arg, + // custom_ext_parse_cb parse_cb, + // void *parse_arg); + // + //__owur TIdC_INT SSL_CTX_add_server_custom_ext(ctx: PSSL_CTX, + // TIdC_UINT ext_type, + // custom_ext_add_cb add_cb, + // custom_ext_free_cb free_cb, + // void *add_arg, + // custom_ext_parse_cb parse_cb, + // void *parse_arg); + // + //__owur TIdC_INT SSL_CTX_add_custom_ext(ctx: PSSL_CTX, TIdC_UINT ext_type, + // TIdC_UINT context, + // SSL_custom_ext_add_cb_ex add_cb, + // SSL_custom_ext_free_cb_ex free_cb, + // void *add_arg, + // SSL_custom_ext_parse_cb_ex parse_cb, + // void *parse_arg); + + //__owur TIdC_INT SSL_extension_supported(TIdC_UINT ext_type); + + + ///* These will only be used when doing non-blocking IO */ + //# define SSL_want_nothing(s) (SSL_want(s) == SSL_NOTHING) + //# define SSL_want_read(s) (SSL_want(s) == SSL_READING) + //# define SSL_want_write(s) (SSL_want(s) == SSL_WRITING) + //# define SSL_want_x509_lookup(s) (SSL_want(s) == SSL_X509_LOOKUP) + //# define SSL_want_async(s) (SSL_want(s) == SSL_ASYNC_PAUSED) + //# define SSL_want_async_job(s) (SSL_want(s) == SSL_ASYNC_NO_JOBS) + //# define SSL_want_client_hello_cb(s) (SSL_want(s) == SSL_CLIENT_HELLO_CB) + + (* + * SSL_CTX_set_keylog_callback configures a callback to log key material. This + * is intended for debugging use with tools like Wireshark. The cb function + * should log line followed by a newline. + *) + procedure SSL_CTX_set_keylog_callback(ctx: PSSL_CTX; cb: SSL_CTX_keylog_cb_func); {introduced 1.1.0} + (* + * SSL_CTX_get_keylog_callback returns the callback configured by + * SSL_CTX_set_keylog_callback. + *) + function SSL_CTX_get_keylog_callback(const ctx: PSSL_CTX): SSL_CTX_keylog_cb_func; {introduced 1.1.0} + function SSL_CTX_set_max_early_data(ctx: PSSL_CTX; max_early_data: TIdC_UINT32): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_get_max_early_data(const ctx: PSSL_CTX): TIdC_UINT32; {introduced 1.1.0} + function SSL_set_max_early_data(s: PSSL; max_early_data: TIdC_UINT32): TIdC_INT; {introduced 1.1.0} + function SSL_get_max_early_data(const s: PSSL): TIdC_UINT32; {introduced 1.1.0} + function SSL_CTX_set_recv_max_early_data(ctx: PSSL_CTX; recv_max_early_data: TIdC_UINT32): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_get_recv_max_early_data(const ctx: PSSL_CTX): TIdC_UINT32; {introduced 1.1.0} + function SSL_set_recv_max_early_data(s: PSSL; recv_max_early_data: TIdC_UINT32): TIdC_INT; {introduced 1.1.0} + function SSL_get_recv_max_early_data(const s: PSSL): TIdC_UINT32; {introduced 1.1.0} + + ///* + // * These need to be after the above set of includes due to a compiler bug + // * in_ VisualStudio 2015 + // */ + //DEFINE_STACK_OF_CONST(SSL_CIPHER) + //DEFINE_STACK_OF(SSL_COMP) + + ///* compatibility */ + //# define SSL_set_app_data(s,arg) (SSL_set_ex_data(s,0,(PIdAnsiChar *)(arg))) + //# define SSL_get_app_data(s) (SSL_get_ex_data(s,0)) + //# define SSL_SESSION_set_app_data(s,a) (SSL_SESSION_set_ex_data(s,0, \ + // (PIdAnsiChar *)(a))) + //# define SSL_SESSION_get_app_data(s) (SSL_SESSION_get_ex_data(s,0)) + //# define SSL_CTX_get_app_data(ctx) (SSL_CTX_get_ex_data(ctx,0)) + //# define SSL_CTX_set_app_data(ctx,arg) (SSL_CTX_set_ex_data(ctx,0, \ + // (PIdAnsiChar *)(arg))) + function SSL_get_app_data(const ssl: PSSL): Pointer ; {removed 1.0.0} + function SSL_set_app_data(ssl: PSSL; data: Pointer): TIdC_INT; {removed 1.0.0} + + ///* Is the SSL_connection established? */ + //# define SSL_in_connect_init(a) (SSL_in_init(a) && !SSL_is_server(a)) + //# define SSL_in_accept_init(a) (SSL_in_init(a) && SSL_is_server(a)) + function SSL_in_init(const s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_in_before(const s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_is_init_finished(const s: PSSL): TIdC_INT; {introduced 1.1.0} + + (*- + * Obtain latest Finished message + * -- that we sent (SSL_get_finished) + * -- that we expected from peer (SSL_get_peer_finished). + * Returns length (0 == no Finished so far), copies up to 'count' bytes. + *) + function SSL_get_finished(const s: PSSL; buf: Pointer; count: TIdC_SIZET): TIdC_SIZET; + function SSL_get_peer_finished(const s: PSSL; buf: Pointer; count: TIdC_SIZET): TIdC_SIZET; + + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define OpenSSL_add_ssl_algorithms() SSL_library_init() + //# define SSLeay_add_ssl_algorithms() SSL_library_init() + //# endif + function SSLeay_add_ssl_algorithms: TIdC_INT; {removed 1.0.0} + + ///* More backward compatibility */ + //# define SSL_get_cipher(s) \ + // SSL_CIPHER_get_name(SSL_get_current_cipher(s)) + //# define SSL_get_cipher_bits(s,np) \ + // SSL_CIPHER_get_bits(SSL_get_current_cipher(s),np) + //# define SSL_get_cipher_version(s) \ + // SSL_CIPHER_get_version(SSL_get_current_cipher(s)) + //# define SSL_get_cipher_name(s) \ + // SSL_CIPHER_get_name(SSL_get_current_cipher(s)) + //# define SSL_get_time(a) SSL_SESSION_get_time(a) + //# define SSL_set_time(a,b) SSL_SESSION_set_time((a),(b)) + //# define SSL_get_timeout(a) SSL_SESSION_get_timeout(a) + //# define SSL_set_timeout(a,b) SSL_SESSION_set_timeout((a),(b)) + // + //# define d2i_SSL_SESSION_bio(bp,s_id) ASN1_d2i_bio_of(SSL_SESSION,SSL_SESSION_new,d2i_SSL_SESSION,bp,s_id) + //# define i2d_SSL_SESSION_bio(bp,s_id) ASN1_i2d_bio_of(SSL_SESSION,i2d_SSL_SESSION,bp,s_id) + + //DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION) + + //# define DTLSv1_get_timeout(ssl, arg) \ + // SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0, (void *)(arg)) + //# define DTLSv1_handle_timeout(ssl) \ + // SSL_ctrl(ssl,DTLS_CTRL_HANDLE_TIMEOUT,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) + + //# if OPENSSL_API_COMPAT < 0x10100000L + //const SSL_CTX_need_tmp_RSA = (ctx) 0; + //const SSL_CTX_set_tmp_rsa = (ctx;rsa) 1; + //const SSL_need_tmp_RSA = (ssl) 0; + //const SSL_set_tmp_rsa = (ssl;rsa) 1; + + //# define SSL_CTX_set_ecdh_auto(dummy, onoff) ((onoff) != 0) + //# define SSL_set_ecdh_auto(dummy, onoff) ((onoff) != 0) + ///* + // * We 'pretend' to call the callback to avoid warnings about unused static + // * functions. + // */ + //# define SSL_CTX_set_tmp_rsa_callback(ctx, cb) while(0) (cb)(NULL, 0, 0) + //# define SSL_set_tmp_rsa_callback(ssl, cb) while(0) (cb)(NULL, 0, 0) + //# endif + // + function BIO_f_ssl: PBIO_METHOD; + function BIO_new_ssl(ctx: PSSL_CTX; client: TIdC_INT): PBIO; + function BIO_new_ssl_connect(ctx: PSSL_CTX): PBIO; + function BIO_new_buffer_ssl_connect(ctx: PSSL_CTX): PBIO; + function BIO_ssl_copy_session_id(to_: PBIO; from: PBIO): TIdC_INT; + + function SSL_CTX_set_cipher_list(v1: PSSL_CTX; const str: PIdAnsiChar): TIdC_INT; + function SSL_CTX_new(const meth: PSSL_METHOD): PSSL_CTX; + function SSL_CTX_set_timeout(ctx: PSSL_CTX; t: TIdC_LONG): TIdC_LONG; + function SSL_CTX_get_timeout(const ctx: PSSL_CTX): TIdC_LONG; + function SSL_CTX_get_cert_store(const v1: PSSL_CTX): PX509_STORE; + function SSL_want(const s: PSSL): TIdC_INT; + function SSL_clear(s: PSSL): TIdC_INT; + + procedure BIO_ssl_shutdown(ssl_bio: PBIO); + function SSL_CTX_up_ref(ctx: PSSL_CTX): TIdC_INT; {introduced 1.1.0} + procedure SSL_CTX_free(v1: PSSL_CTX); + procedure SSL_CTX_set_cert_store(v1: PSSL_CTX; v2: PX509_STORE); + procedure SSL_CTX_set1_cert_store(v1: PSSL_CTX; v2: PX509_STORE); {introduced 1.1.0} + + procedure SSL_CTX_flush_sessions(ctx: PSSL_CTX; tm: TIdC_LONG); + + function SSL_get_current_cipher(const s: PSSL): PSSL_CIPHER; + function SSL_get_pending_cipher(const s: PSSL): PSSL_CIPHER; {introduced 1.1.0} + function SSL_CIPHER_get_bits(const c: PSSL_CIPHER; var alg_bits: TIdC_INT): TIdC_INT; + function SSL_CIPHER_get_version(const c: PSSL_CIPHER): PIdAnsiChar; + function SSL_CIPHER_get_name(const c: PSSL_CIPHER): PIdAnsiChar; + function SSL_CIPHER_standard_name(const c: PSSL_CIPHER): PIdAnsiChar; {introduced 1.1.0} + function OPENSSL_cipher_name(const rfc_name: PIdAnsiChar): PIdAnsiChar; {introduced 1.1.0} + function SSL_CIPHER_get_id(const c: PSSL_CIPHER): TIdC_UINT32; + function SSL_CIPHER_get_protocol_id(const c: PSSL_CIPHER): TIdC_UINT16; {introduced 1.1.0} + function SSL_CIPHER_get_kx_nid(const c: PSSL_CIPHER): TIdC_INT; {introduced 1.1.0} + function SSL_CIPHER_get_auth_nid(const c: PSSL_CIPHER): TIdC_INT; {introduced 1.1.0} + function SSL_CIPHER_get_handshake_digest(const c: PSSL_CIPHER): PEVP_MD; {introduced 1.1.0} + function SSL_CIPHER_is_aead(const c: PSSL_CIPHER): TIdC_INT; {introduced 1.1.0} + + function SSL_get_fd(const s: PSSL): TIdC_INT; + function SSL_get_rfd(const s: PSSL): TIdC_INT; + function SSL_get_wfd(const s: PSSL): TIdC_INT; + function SSL_get_cipher_list(const s: PSSL; n: TIdC_INT): PIdAnsiChar; + function SSL_get_shared_ciphers(const s: PSSL; buf: PIdAnsiChar; size: TIdC_INT): PIdAnsiChar; + function SSL_get_read_ahead(const s: PSSL): TIdC_INT; + function SSL_pending(const s: PSSL): TIdC_INT; + function SSL_has_pending(const s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_set_fd(s: PSSL; fd: TIdC_INT): TIdC_INT; + function SSL_set_rfd(s: PSSL; fd: TIdC_INT): TIdC_INT; + function SSL_set_wfd(s: PSSL; fd: TIdC_INT): TIdC_INT; + procedure SSL_set0_rbio(s: PSSL; rbio: PBIO); {introduced 1.1.0} + procedure SSL_set0_wbio(s: PSSL; wbio: PBIO); {introduced 1.1.0} + procedure SSL_set_bio(s: PSSL; rbio: PBIO; wbio: PBIO); + function SSL_get_rbio(const s: PSSL): PBIO; + function SSL_get_wbio(const s: PSSL): PBIO; + function SSL_set_cipher_list(s: PSSL; const str: PIdAnsiChar): TIdC_INT; + function SSL_CTX_set_ciphersuites(ctx: PSSL_CTX; const str: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + function SSL_set_ciphersuites(s: PSSL; const str: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + function SSL_get_verify_mode(const s: PSSL): TIdC_INT; + function SSL_get_verify_depth(const s: PSSL): TIdC_INT; + function SSL_get_verify_callback(const s: PSSL): SSL_verify_cb; + procedure SSL_set_read_ahead(s: PSSL; yes: TIdC_INT); + procedure SSL_set_verify(s: PSSL; mode: TIdC_INT; callback: SSL_verify_cb); + procedure SSL_set_verify_depth(s: PSSL; depth: TIdC_INT); + //void SSL_set_cert_cb(s: PSSL, TIdC_INT (*cb) (ssl: PSSL, void *arg), void *arg); + + function SSL_use_RSAPrivateKey(ssl: PSSL; rsa: PRSA): TIdC_INT; + function SSL_use_RSAPrivateKey_ASN1(ssl: PSSL; const d: PByte; len: TIdC_LONG): TIdC_INT; + function SSL_use_PrivateKey(ssl: PSSL; pkey: PEVP_PKEY): TIdC_INT; + function SSL_use_PrivateKey_ASN1(pk: TIdC_INT; ssl: PSSL; const d: PByte; len: TIdC_LONG): TIdC_INT; + function SSL_use_certificate(ssl: PSSL; x: PX509): TIdC_INT; + function SSL_use_certificate_ASN1(ssl: PSSL; const d: PByte; len: TIdC_INT): TIdC_INT; + //__owur TIdC_INT SSL_use_cert_and_key(ssl: PSSL, x509: PX509, EVP_PKEY *privatekey, + // STACK_OF(X509) *chain, TIdC_INT override); + + (* Set serverinfo data for the current active cert. *) + function SSL_CTX_use_serverinfo(ctx: PSSL_CTX; const serverinfo: PByte; serverinfo_length: TIdC_SIZET): TIdC_INT; + function SSL_CTX_use_serverinfo_ex(ctx: PSSL_CTX; version: TIdC_UINT; const serverinfo: PByte; serverinfo_length: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_use_serverinfo_file(ctx: PSSL_CTX; const file_: PIdAnsiChar): TIdC_INT; + + function SSL_use_RSAPrivateKey_file(ssl: PSSL; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; + + function SSL_use_PrivateKey_file(ssl: PSSL; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; + function SSL_use_certificate_file(ssl: PSSL; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; + + function SSL_CTX_use_RSAPrivateKey_file(ctx: PSSL_CTX; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; + + function SSL_CTX_use_PrivateKey_file(ctx: PSSL_CTX; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; + function SSL_CTX_use_certificate_file(ctx: PSSL_CTX; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; + (* PEM type *) + function SSL_CTX_use_certificate_chain_file(ctx: PSSL_CTX; const file_: PIdAnsiChar): TIdC_INT; + function SSL_use_certificate_chain_file(ssl: PSSL; const file_: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + function SSL_load_client_CA_file(const file_: PIdAnsiChar): PSTACK_OF_X509_NAME; + function SSL_add_file_cert_subjects_to_stack(stackCAs: PSTACK_OF_X509_NAME; const file_: PIdAnsiChar):TIdC_INT; + function SSL_add_dir_cert_subjects_to_stack(stackCAs: PSTACK_OF_X509_NAME; const dir_: PIdAnsiChar): TIdC_INT; + + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_load_error_strings() \ + // OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \ + // | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL) + //# endif + procedure SSL_load_error_strings; {removed 1.1.0} + + function SSL_state_string(const s: PSSL): PIdAnsiChar; + function SSL_rstate_string(const s: PSSL): PIdAnsiChar; + function SSL_state_string_long(const s: PSSL): PIdAnsiChar; + function SSL_rstate_string_long(const s: PSSL): PIdAnsiChar; + function SSL_SESSION_get_time(const s: PSSL_SESSION): TIdC_LONG; + function SSL_SESSION_set_time(s: PSSL_SESSION; t: TIdC_LONG): TIdC_LONG; + function SSL_SESSION_get_timeout(const s: PSSL_SESSION): TIdC_LONG; + function SSL_SESSION_set_timeout(s: PSSL_SESSION; t: TIdC_LONG): TIdC_LONG; + function SSL_SESSION_get_protocol_version(const s: PSSL_SESSION): TIdC_INT; {introduced 1.1.0} + function SSL_SESSION_set_protocol_version(s: PSSL_SESSION; version: TIdC_INT): TIdC_INT; {introduced 1.1.0} + + function SSL_SESSION_get0_hostname(const s: PSSL_SESSION): PIdAnsiChar; {introduced 1.1.0} + function SSL_SESSION_set1_hostname(s: PSSL_SESSION; const hostname: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + procedure SSL_SESSION_get0_alpn_selected(const s: PSSL_SESSION; const alpn: PPByte; len: PIdC_SIZET); {introduced 1.1.0} + function SSL_SESSION_set1_alpn_selected(s: PSSL_SESSION; const alpn: PByte; len: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_SESSION_get0_cipher(const s: PSSL_SESSION): PSSL_CIPHER; {introduced 1.1.0} + function SSL_SESSION_set_cipher(s: PSSL_SESSION; const cipher: PSSL_CIPHER): TIdC_INT; {introduced 1.1.0} + function SSL_SESSION_has_ticket(const s: PSSL_SESSION): TIdC_INT; {introduced 1.1.0} + function SSL_SESSION_get_ticket_lifetime_hint(const s: PSSL_SESSION): TIdC_ULONG; {introduced 1.1.0} + procedure SSL_SESSION_get0_ticket(const s: PSSL_SESSION; const tick: PPByte; len: PIdC_SIZET); {introduced 1.1.0} + function SSL_SESSION_get_max_early_data(const s: PSSL_SESSION): TIdC_UINT32; {introduced 1.1.0} + function SSL_SESSION_set_max_early_data(s: PSSL_SESSION; max_early_data: TIdC_UINT32): TIdC_INT; {introduced 1.1.0} + function SSL_copy_session_id(to_: PSSL; const from: PSSL): TIdC_INT; + function SSL_SESSION_get0_peer(s: PSSL_SESSION): PX509; + function SSL_SESSION_set1_id_context(s: PSSL_SESSION; const sid_ctx: PByte; sid_ctx_len: TIdC_UINT): TIdC_INT; + function SSL_SESSION_set1_id(s: PSSL_SESSION; const sid: PByte; sid_len: TIdC_UINT): TIdC_INT; {introduced 1.1.0} + function SSL_SESSION_is_resumable(const s: PSSL_SESSION): TIdC_INT; {introduced 1.1.0} + + function SSL_SESSION_new: PSSL_SESSION; + function SSL_SESSION_dup(src: PSSL_SESSION): PSSL_SESSION; {introduced 1.1.0} + function SSL_SESSION_get_id(const s: PSSL_SESSION; len: PIdC_UINT): PByte; + function SSL_SESSION_get0_id_context(const s: PSSL_SESSION; len: PIdC_UINT): PByte; {introduced 1.1.0} + function SSL_SESSION_get_compress_id(const s: PSSL_SESSION): TIdC_UINT; + function SSL_SESSION_print(fp: PBIO; const ses: PSSL_SESSION): TIdC_INT; + function SSL_SESSION_print_keylog(bp: PBIO; const x: PSSL_SESSION): TIdC_INT; {introduced 1.1.0} + function SSL_SESSION_up_ref(ses: PSSL_SESSION): TIdC_INT; {introduced 1.1.0} + procedure SSL_SESSION_free(ses: PSSL_SESSION); + //__owur TIdC_INT i2d_SSL_SESSION(SSL_SESSION *in_, Byte **pp); + function SSL_set_session(to_: PSSL; session: PSSL_SESSION): TIdC_INT; + function SSL_CTX_add_session(ctx: PSSL_CTX; session: PSSL_SESSION): TIdC_INT; + function SSL_CTX_remove_session(ctx: PSSL_CTX; session: PSSL_SESSION): TIdC_INT; + function SSL_CTX_set_generate_session_id(ctx: PSSL_CTX; cb: GEN_SESSION_CB): TIdC_INT; + function SSL_set_generate_session_id(s: PSSL; cb: GEN_SESSION_CB): TIdC_INT; + function SSL_has_matching_session_id(const s: PSSL; const id: PByte; id_len: TIdC_UINT): TIdC_INT; + function d2i_SSL_SESSION(a: PPSSL_SESSION; const pp: PPByte; length: TIdC_LONG): PSSL_SESSION; + + function SSL_get_peer_certificate(const s: PSSL): PX509; {removed 3.0.0} + + //__owur STACK_OF(X509) *SSL_get_peer_cert_chain(const s: PSSL); + // + function SSL_CTX_get_verify_mode(const ctx: PSSL_CTX): TIdC_INT; + function SSL_CTX_get_verify_depth(const ctx: PSSL_CTX): TIdC_INT; + function SSL_CTX_get_verify_callback(const ctx: PSSL_CTX): SSL_verify_cb; + procedure SSL_CTX_set_verify(ctx: PSSL_CTX; mode: TIdC_INT; callback: SSL_verify_cb); + procedure SSL_CTX_set_verify_depth(ctx: PSSL_CTX; depth: TIdC_INT); + procedure SSL_CTX_set_cert_verify_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_cert_verify_callback_cb; arg: Pointer); + procedure SSL_CTX_set_cert_cb(c: PSSL_CTX; cb: SSL_CTX_set_cert_cb_cb; arg: Pointer); + function SSL_CTX_use_RSAPrivateKey(ctx: PSSL_CTX; rsa: PRSA): TIdC_INT; + function SSL_CTX_use_RSAPrivateKey_ASN1(ctx: PSSL_CTX; const d: PByte; len: TIdC_LONG): TIdC_INT; + function SSL_CTX_use_PrivateKey(ctx: PSSL_CTX; pkey: PEVP_PKEY): TIdC_INT; + function SSL_CTX_use_PrivateKey_ASN1(pk: TIdC_INT; ctx: PSSL_CTX; const d: PByte; len: TIdC_LONG): TIdC_INT; + function SSL_CTX_use_certificate(ctx: PSSL_CTX; x: X509): TIdC_INT; + function SSL_CTX_use_certificate_ASN1(ctx: PSSL_CTX; len: TIdC_INT; const d: PByte): TIdC_INT; + //function TIdC_INT SSL_CTX_use_cert_and_key(ctx: PSSL_CTX; x509: PX509; EVP_PKEY *privatekey; STACK_OF(X509) *chain; TIdC_INT override); + + procedure SSL_CTX_set_default_passwd_cb(ctx: PSSL_CTX; cb: pem_password_cb); {introduced 1.1.0} + procedure SSL_CTX_set_default_passwd_cb_userdata(ctx: PSSL_CTX; u: Pointer); {introduced 1.1.0} + function SSL_CTX_get_default_passwd_cb(ctx: PSSL_CTX): pem_password_cb; {introduced 1.1.0} + function SSL_CTX_get_default_passwd_cb_userdata(ctx: PSSL_CTX): Pointer; {introduced 1.1.0} + procedure SSL_set_default_passwd_cb(s: PSSL; cb: pem_password_cb); {introduced 1.1.0} + procedure SSL_set_default_passwd_cb_userdata(s: PSSL; u: Pointer); {introduced 1.1.0} + function SSL_get_default_passwd_cb(s: PSSL): pem_password_cb; {introduced 1.1.0} + function SSL_get_default_passwd_cb_userdata(s: PSSL): Pointer; {introduced 1.1.0} + + function SSL_CTX_check_private_key(const ctx: PSSL_CTX): TIdC_INT; + function SSL_check_private_key(const ctx: PSSL): TIdC_INT; + + function SSL_CTX_set_session_id_context(ctx: PSSL_CTX; const sid_ctx: PByte; sid_ctx_len: TIdC_UINT): TIdC_INT; + + function SSL_new(ctx: PSSL_CTX): PSSL; + function SSL_up_ref(s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_is_dtls(const s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_set_session_id_context(ssl: PSSL; const sid_ctx: PByte; sid_ctx_len: TIdC_UINT): TIdC_INT; + + function SSL_CTX_set_purpose(ctx: PSSL_CTX; purpose: TIdC_INT): TIdC_INT; + function SSL_set_purpose(ssl: PSSL; purpose: TIdC_INT): TIdC_INT; + function SSL_CTX_set_trust(ctx: PSSL_CTX; trust: TIdC_INT): TIdC_INT; + function SSL_set_trust(ssl: PSSL; trust: TIdC_INT): TIdC_INT; + + function SSL_set1_host(s: PSSL; const hostname: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + function SSL_add1_host(s: PSSL; const hostname: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + function SSL_get0_peername(s: PSSL): PIdAnsiChar; {introduced 1.1.0} + procedure SSL_set_hostflags(s: PSSL; flags: TIdC_UINT); {introduced 1.1.0} + + function SSL_CTX_dane_enable(ctx: PSSL_CTX): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_dane_mtype_set(ctx: PSSL_CTX; const md: PEVP_MD; mtype: TIdC_UINT8; ord: TIdC_UINT8): TIdC_INT; {introduced 1.1.0} + function SSL_dane_enable(s: PSSL; const basedomain: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + function SSL_dane_tlsa_add(s: PSSL; usage: TIdC_UINT8; selector: TIdC_UINT8; mtype: TIdC_UINT8; const data: PByte; dlen: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_get0_dane_authority(s: PSSL; mcert: PPX509; mspki: PPEVP_PKEY): TIdC_INT; {introduced 1.1.0} + function SSL_get0_dane_tlsa(s: PSSL; usage: PIdC_UINT8; selector: PIdC_UINT8; mtype: PIdC_UINT8; const data: PPByte; dlen: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + (* + * Bridge opacity barrier between libcrypt and libssl, also needed to support + * offline testing in test/danetest.c + *) + function SSL_get0_dane(ssl: PSSL): PSSL_DANE; {introduced 1.1.0} + + (* + * DANE flags + *) + function SSL_CTX_dane_set_flags(ctx: PSSL_CTX; flags: TIdC_ULONG): TIdC_ULONG; {introduced 1.1.0} + function SSL_CTX_dane_clear_flags(ctx: PSSL_CTX; flags: TIdC_ULONG): TIdC_ULONG; {introduced 1.1.0} + function SSL_dane_set_flags(ssl: PSSL; flags: TIdC_ULONG): TIdC_ULONG; {introduced 1.1.0} + function SSL_dane_clear_flags(ssl: PSSL; flags: TIdC_ULONG): TIdC_ULONG; {introduced 1.1.0} + + function SSL_CTX_set1_param(ctx: PSSL_CTX; vpm: PX509_VERIFY_PARAM): TIdC_INT; + function SSL_set1_param(ssl: PSSL; vpm: PX509_VERIFY_PARAM): TIdC_INT; + + function SSL_CTX_get0_param(ctx: PSSL_CTX): PX509_VERIFY_PARAM; + function SSL_get0_param(ssl: PSSL): PX509_VERIFY_PARAM; + + function SSL_CTX_set_srp_username(ctx: PSSL_CTX; name: PIdAnsiChar): TIdC_INT; + function SSL_CTX_set_srp_password(ctx: PSSL_CTX; password: PIdAnsiChar): TIdC_INT; + function SSL_CTX_set_srp_strength(ctx: PSSL_CTX; strength: TIdC_INT): TIdC_INT; + + function SSL_CTX_set_srp_client_pwd_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_srp_client_pwd_callback_cb): TIdC_INT; + function SSL_CTX_set_srp_verify_param_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_srp_verify_param_callback_cb): TIdC_INT; + function SSL_CTX_set_srp_username_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_srp_username_callback_cb): TIdC_INT; + + function SSL_CTX_set_srp_cb_arg(ctx: PSSL_CTX; arg: Pointer): TIdC_INT; + function SSL_set_srp_server_param(s: PSSL; const N: PBIGNUm; const g: PBIGNUm; sa: PBIGNUm; v: PBIGNUm; info: PIdAnsiChar): TIdC_INT; + function SSL_set_srp_server_param_pw(s: PSSL; const user: PIdAnsiChar; const pass: PIdAnsiChar; const grp: PIdAnsiChar): TIdC_INT; + + //__owur BIGNUM *SSL_get_srp_g(s: PSSL); + //__owur BIGNUM *SSL_get_srp_N(s: PSSL); + // + //__owur PIdAnsiChar *SSL_get_srp_username(s: PSSL); + //__owur PIdAnsiChar *SSL_get_srp_userinfo(s: PSSL); + // + ///* + // * ClientHello callback and helpers. + // */ + procedure SSL_CTX_set_client_hello_cb(c: PSSL_CTX; cb: SSL_client_hello_cb_fn; arg: Pointer); {introduced 1.1.0} + function SSL_client_hello_isv2(s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_client_hello_get0_legacy_version(s: PSSL): TIdC_UINT; {introduced 1.1.0} + function SSL_client_hello_get0_random(s: PSSL; const out_: PPByte): TIdC_SIZET; {introduced 1.1.0} + function SSL_client_hello_get0_session_id(s: PSSL; const out_: PPByte): TIdC_SIZET; {introduced 1.1.0} + function SSL_client_hello_get0_ciphers(s: PSSL; const out_: PPByte): TIdC_SIZET; {introduced 1.1.0} + function SSL_client_hello_get0_compression_methods(s: PSSL; const out_: PPByte): TIdC_SIZET; {introduced 1.1.0} + function SSL_client_hello_get1_extensions_present(s: PSSL; out_: PPIdC_INT; outlen: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_client_hello_get0_ext(s: PSSL; type_: TIdC_UINT; const out_: PPByte; outlen: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + procedure SSL_certs_clear(s: PSSL); + procedure SSL_free(ssl: PSSL); + + (* + * Windows application developer has to include windows.h to use these. + *) + function SSL_waiting_for_async(s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_get_all_async_fds(s: PSSL; fds: POSSL_ASYNC_FD; numfds: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_get_changed_async_fds(s: PSSL; addfd: POSSL_ASYNC_FD; numaddfds: PIdC_SIZET; delfd: POSSL_ASYNC_FD; numdelfds: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_accept(ssl: PSSL): TIdC_INT; + function SSL_stateless(s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_connect(ssl: PSSL): TIdC_INT; + function SSL_read(ssl: PSSL; buf: Pointer; num: TIdC_INT): TIdC_INT; + function SSL_read_ex(ssl: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + + function SSL_read_early_data(s: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_peek(ssl: PSSL; buf: Pointer; num: TIdC_INT): TIdC_INT; + function SSL_peek_ex(ssl: PSSL; buf: Pointer; num: TIdC_SIZET; readbytes: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_write(ssl: PSSL; const buf: Pointer; num: TIdC_INT): TIdC_INT; + function SSL_write_ex(s: PSSL; const buf: Pointer; num: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_write_early_data(s: PSSL; const buf: Pointer; num: TIdC_SIZET; written: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_callback_ctrl(v1: PSSL; v2: TIdC_INT; v3: SSL_callback_ctrl_v3): TIdC_LONG; + + function SSL_ctrl(ssl: PSSL; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG; + function SSL_CTX_ctrl(ctx: PSSL_CTX; cmd: TIdC_INT; larg: TIdC_LONG; parg: Pointer): TIdC_LONG; + function SSL_CTX_callback_ctrl(v1: PSSL_CTX; v2: TIdC_INT; v3: SSL_CTX_callback_ctrl_v3): TIdC_LONG; + + function SSL_get_early_data_status(const s: PSSL): TIdC_INT; {introduced 1.1.0} + + function SSL_get_error(const s: PSSL; ret_code: TIdC_INT): TIdC_INT; + function SSL_get_version(const s: PSSL): PIdAnsiChar; + + (* This sets the 'default' SSL version that SSL_new() will create *) + function SSL_CTX_set_ssl_version(ctx: PSSL_CTX; const meth: PSSL_METHOD): TIdC_INT; + + ///* Negotiate highest available SSL/TLS version */ + function TLS_method: PSSL_METHOD; {introduced 1.1.0} + function TLS_server_method: PSSL_METHOD; {introduced 1.1.0} + function TLS_client_method: PSSL_METHOD; {introduced 1.1.0} + + //__owur const SSL_METHOD *DTLS_method(void); /* DTLS 1.0 and 1.2 */ + //__owur const SSL_METHOD *DTLS_server_method(void); /* DTLS 1.0 and 1.2 */ + //__owur const SSL_METHOD *DTLS_client_method(void); /* DTLS 1.0 and 1.2 */ + // + //__owur TIdC_SIZET DTLS_get_data_mtu(const s: PSSL); + // + //__owur STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const s: PSSL); + //__owur STACK_OF(SSL_CIPHER) *SSL_CTX_get_ciphers(const ctx: PSSL_CTX); + //__owur STACK_OF(SSL_CIPHER) *SSL_get_client_ciphers(const s: PSSL); + //__owur STACK_OF(SSL_CIPHER) *SSL_get1_supported_ciphers(s: PSSL); + // + //__owur TIdC_INT SSL_do_handshake(s: PSSL); + function SSL_key_update(s: PSSL; updatetype: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function SSL_get_key_update_type(const s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_renegotiate(s: PSSL): TIdC_INT; + function SSL_renegotiate_abbreviated(s: PSSL): TIdC_INT; + function SSL_shutdown(s: PSSL): TIdC_INT; + procedure SSL_CTX_set_post_handshake_auth(ctx: PSSL_CTX; val: TIdC_INT); {introduced 1.1.0} + procedure SSL_set_post_handshake_auth(s: PSSL; val: TIdC_INT); {introduced 1.1.0} + + function SSL_renegotiate_pending(const s: PSSL): TIdC_INT; + function SSL_verify_client_post_handshake(s: PSSL): TIdC_INT; {introduced 1.1.0} + + function SSL_CTX_get_ssl_method(const ctx: PSSL_CTX): PSSL_METHOD; + function SSL_get_ssl_method(const s: PSSL): PSSL_METHOD; + function SSL_set_ssl_method(s: PSSL; const method: PSSL_METHOD): TIdC_INT; + function SSL_alert_type_string_long(value: TIdC_INT): PIdAnsiChar; + function SSL_alert_type_string(value: TIdC_INT): PIdAnsiChar; + function SSL_alert_desc_string_long(value: TIdC_INT): PIdAnsiChar; + function SSL_alert_desc_string(value: TIdC_INT): PIdAnsiChar; + + //void SSL_set0_CA_list(s: PSSL, STACK_OF(X509_NAME) *name_list); + //void SSL_CTX_set0_CA_list(ctx: PSSL_CTX, STACK_OF(X509_NAME) *name_list); + //__owur const STACK_OF(X509_NAME) *SSL_get0_CA_list(const s: PSSL); + //__owur const STACK_OF(X509_NAME) *SSL_CTX_get0_CA_list(const ctx: PSSL_CTX); + //__owur TIdC_INT SSL_add1_to_CA_list(ssl: PSSL, const X509 *x); + //__owur TIdC_INT SSL_CTX_add1_to_CA_list(ctx: PSSL_CTX, const X509 *x); + //__owur const STACK_OF(X509_NAME) *SSL_get0_peer_CA_list(const s: PSSL); + + //void SSL_set_client_CA_list(s: PSSL, STACK_OF(X509_NAME) *name_list); + //void SSL_CTX_set_client_CA_list(ctx: PSSL_CTX, STACK_OF(X509_NAME) *name_list); + //__owur STACK_OF(X509_NAME) *SSL_get_client_CA_list(const s: PSSL); + //__owur STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *s); + + procedure SSL_CTX_set_client_CA_list(ctx: PSSL_CTX; name_list: PSTACK_OF_X509_NAME); + function SSL_add_client_CA(ssl: PSSL; x: PX509): TIdC_INT; + function SSL_CTX_add_client_CA(ctx: PSSL_CTX; x: PX509): TIdC_INT; + + procedure SSL_set_connect_state(s: PSSL); + procedure SSL_set_accept_state(s: PSSL); + + //__owur TIdC_LONG SSL_get_default_timeout(const s: PSSL); + // + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_library_init() OPENSSL_init_ssl(0, NULL) + //# endif + function SSL_library_init: TIdC_INT; {removed 1.1.0} + + //__owur PIdAnsiChar *SSL_CIPHER_description(const SSL_CIPHER *, PIdAnsiChar *buf, TIdC_INT size); + //__owur STACK_OF(X509_NAME) *SSL_dup_CA_list(const STACK_OF(X509_NAME) *sk); + function SSL_CIPHER_description(cipher: PSSL_CIPHER; buf: PIdAnsiChar; size_ :TIdC_INT): PIdAnsiChar; + + function SSL_dup(ssl: PSSL): PSSL; + + function SSL_get_certificate(const ssl: PSSL): PX509; + (* + * EVP_PKEY + *) + function SSL_get_privatekey(const ssl: PSSL): PEVP_PKEY; + + function SSL_CTX_get0_certificate(const ctx: PSSL_CTX): PX509; + function SSL_CTX_get0_privatekey(const ctx: PSSL_CTX): PEVP_PKEY; + + procedure SSL_CTX_set_quiet_shutdown(ctx: PSSL_CTX; mode: TIdC_INT); + function SSL_CTX_get_quiet_shutdown(const ctx: PSSL_CTX): TIdC_INT; + procedure SSL_set_quiet_shutdown(ssl: PSSL; mode: TIdC_INT); + function SSL_get_quiet_shutdown(const ssl: PSSL): TIdC_INT; + procedure SSL_set_shutdown(ssl: PSSL; mode: TIdC_INT); + function SSL_get_shutdown(const ssl: PSSL): TIdC_INT; + function SSL_version(const ssl: PSSL): TIdC_INT; + function SSL_client_version(const s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_set_default_verify_paths(ctx: PSSL_CTX): TIdC_INT; + function SSL_CTX_set_default_verify_dir(ctx: PSSL_CTX): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_set_default_verify_file(ctx: PSSL_CTX): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_load_verify_locations(ctx: PSSL_CTX; const CAfile: PIdAnsiChar; const CApath: PIdAnsiChar): TIdC_INT; + //# define SSL_get0_session SSL_get_session/* just peek at pointer */ + function SSL_get_session(const ssl: PSSL): PSSL_SESSION; + (* obtain a reference count *) + function SSL_get1_session(ssl: PSSL): PSSL_SESSION; + function SSL_get_SSL_CTX(const ssl: PSSL): PSSL_CTX; + function SSL_set_SSL_CTX(ssl: PSSL; ctx: PSSL_CTX): PSSL_CTX; + procedure SSL_set_info_callback(ssl: PSSL; cb: SSL_info_callback); + function SSL_get_info_callback(const ssl: PSSL): SSL_info_callback; + function SSL_get_state(const ssl: PSSL): OSSL_HANDSHAKE_STATE; {introduced 1.1.0} + + procedure SSL_set_verify_result(ssl: PSSL; v: TIdC_LONG); + function SSL_get_verify_result(const ssl: PSSL): TIdC_LONG; + //__owur STACK_OF(X509) *SSL_get0_verified_chain(const s: PSSL); + + function SSL_get_client_random(const ssl: PSSL; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET; {introduced 1.1.0} + function SSL_get_server_random(const ssl: PSSL; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET; {introduced 1.1.0} + function SSL_SESSION_get_master_key(const sess: PSSL_SESSION; out_: PByte; outlen: TIdC_SIZET): TIdC_SIZET; {introduced 1.1.0} + function SSL_SESSION_set1_master_key(sess: PSSL_SESSION; const in_: PByte; len: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_SESSION_get_max_fragment_length(const sess: PSSL_SESSION): TIdC_UINT8; {introduced 1.1.0} + + //#define SSL_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL, l, p, newf, dupf, freef) + function SSL_set_ex_data(ssl: PSSL; idx: TIdC_INT; data: Pointer): TIdC_INT; + function SSL_get_ex_data(const ssl: PSSL; idx: TIdC_INT): Pointer; + //#define SSL_SESSION_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_SESSION, l, p, newf, dupf, freef) + function SSL_SESSION_set_ex_data(ss: PSSL_SESSION; idx: TIdC_INT; data: Pointer): TIdC_INT; + function SSL_SESSION_get_ex_data(const ss: PSSL_SESSION; idx: TIdC_INT): Pointer; + //#define SSL_CTX_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_CTX, l, p, newf, dupf, freef) + function SSL_CTX_set_ex_data(ssl: PSSL_CTX; idx: TIdC_INT; data: Pointer): TIdC_INT; + function SSL_CTX_get_ex_data(const ssl: PSSL_CTX; idx: TIdC_INT): Pointer; + + function SSL_get_ex_data_X509_STORE_CTX_idx: TIdC_INT; + + //# define SSL_CTX_get_default_read_ahead(ctx) SSL_CTX_get_read_ahead(ctx) + //# define SSL_CTX_set_default_read_ahead(ctx,m) SSL_CTX_set_read_ahead(ctx,m) + //# define SSL_CTX_get_read_ahead(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_GET_READ_AHEAD,0,NULL) + //# define SSL_CTX_set_read_ahead(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_READ_AHEAD,m,NULL) + //# define SSL_CTX_get_max_cert_list(ctx) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL) + //# define SSL_CTX_set_max_cert_list(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL) + //# define SSL_get_max_cert_list(ssl) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL) + //# define SSL_set_max_cert_list(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL) + // + //# define SSL_CTX_set_max_send_fragment(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL) + //# define SSL_set_max_send_fragment(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL) + //# define SSL_CTX_set_split_send_fragment(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL) + //# define SSL_set_split_send_fragment(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL) + //# define SSL_CTX_set_max_pipelines(ctx,m) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_PIPELINES,m,NULL) + //# define SSL_set_max_pipelines(ssl,m) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_MAX_PIPELINES,m,NULL) + + procedure SSL_CTX_set_default_read_buffer_len(ctx: PSSL_CTX; len: TIdC_SIZET); {introduced 1.1.0} + procedure SSL_set_default_read_buffer_len(s: PSSL; len: TIdC_SIZET); {introduced 1.1.0} + + procedure SSL_CTX_set_tmp_dh_callback(ctx: PSSL_CTX; dh: SSL_CTX_set_tmp_dh_callback_dh); + procedure SSL_set_tmp_dh_callback(ssl: PSSL; dh: SSL_set_tmp_dh_callback_dh); + + //__owur const COMP_METHOD *SSL_get_current_compression(const s: PSSL); + //__owur const COMP_METHOD *SSL_get_current_expansion(const s: PSSL); + //__owur const PIdAnsiChar *SSL_COMP_get_name(const COMP_METHOD *comp); + //__owur const PIdAnsiChar *SSL_COMP_get0_name(const SSL_COMP *comp); + //__owur TIdC_INT SSL_COMP_get_id(const SSL_COMP *comp); + //STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void); + //__owur STACK_OF(SSL_COMP) *SSL_COMP_set0_compression_methods(STACK_OF(SSL_COMP) + // *meths); + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_COMP_free_compression_methods() while(0) continue + //# endif + //__owur TIdC_INT SSL_COMP_add_compression_method(TIdC_INT id, COMP_METHOD *cm); + + function SSL_CIPHER_find(ssl: PSSL; const ptr: PByte): PSSL_CIPHER; + function SSL_CIPHER_get_cipher_nid(const c: PSSL_CIPHEr): TIdC_INT; {introduced 1.1.0} + function SSL_CIPHER_get_digest_nid(const c: PSSL_CIPHEr): TIdC_INT; {introduced 1.1.0} + //TIdC_INT SSL_bytes_to_cipher_list(s: PSSL, const Byte *bytes, TIdC_SIZET len, + // TIdC_INT isv2format, STACK_OF(SSL_CIPHER) **sk, + // STACK_OF(SSL_CIPHER) **scsvs); + + (* TLS extensions functions *) + function SSL_set_session_ticket_ext(s: PSSL; ext_data: Pointer; ext_len: TIdC_INT): TIdC_INT; + // + function SSL_set_session_ticket_ext_cb(s: PSSL; cb: tls_session_ticket_ext_cb_fn; arg: Pointer): TIdC_INT; + + ///* Pre-shared secret session resumption functions */ + //__owur TIdC_INT SSL_set_session_secret_cb(s: PSSL, + // tls_session_secret_cb_fn session_secret_cb, + // void *arg); + + procedure SSL_CTX_set_not_resumable_session_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_not_resumable_session_callback_cb); {introduced 1.1.0} + procedure SSL_set_not_resumable_session_callback(ssl: PSSL; cb: SSL_set_not_resumable_session_callback_cb); {introduced 1.1.0} + procedure SSL_CTX_set_record_padding_callback(ctx: PSSL_CTX; cb: SSL_CTX_set_record_padding_callback_cb); {introduced 1.1.0} + + procedure SSL_CTX_set_record_padding_callback_arg(ctx: PSSL_CTX; arg: Pointer); {introduced 1.1.0} + function SSL_CTX_get_record_padding_callback_arg(const ctx: PSSL_CTX): Pointer; {introduced 1.1.0} + function SSL_CTX_set_block_padding(ctx: PSSL_CTX; block_size: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + + procedure SSL_set_record_padding_callback(ssl: PSSL; cb: SSL_set_record_padding_callback_cb); {introduced 1.1.0} + + procedure SSL_set_record_padding_callback_arg(ssl: PSSL; arg: Pointer); {introduced 1.1.0} + function SSL_get_record_padding_callback_arg(const ssl: PSSL): Pointer; {introduced 1.1.0} + function SSL_set_block_padding(ssl: PSSL; block_size: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_set_num_tickets(s: PSSL; num_tickets: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_get_num_tickets(const s: PSSL): TIdC_SIZET; {introduced 1.1.0} + function SSL_CTX_set_num_tickets(ctx: PSSL_CTX; num_tickets: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_get_num_tickets(const ctx: PSSL_CTX): TIdC_SIZET; {introduced 1.1.0} + + //# if OPENSSL_API_COMPAT < 0x10100000L + //# define SSL_cache_hit(s) SSL_session_reused(s) + //# endif + + function SSL_session_reused(const s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_is_server(const s: PSSL): TIdC_INT; + + function SSL_CONF_CTX_new: PSSL_CONF_CTX; + function SSL_CONF_CTX_finish(cctx: PSSL_CONF_CTX): TIdC_INT; + procedure SSL_CONF_CTX_free(cctx: PSSL_CONF_CTX); + function SSL_CONF_CTX_set_flags(cctx: PSSL_CONF_CTX; flags: TIdC_UINT): TIdC_UINT; + function SSL_CONF_CTX_clear_flags(cctx: PSSL_CONF_CTX; flags: TIdC_UINT): TIdC_UINT; + function SSL_CONF_CTX_set1_prefix(cctx: PSSL_CONF_CTX; const pre: PIdAnsiChar): TIdC_INT; + function SSL_CONF_cmd(cctx: PSSL_CONF_CTX; const cmd: PIdAnsiChar; const value: PIdAnsiChar): TIdC_INT; + function SSL_CONF_cmd_argv(cctx: PSSL_CONF_CTX; pargc: PIdC_INT; pargv: PPPIdAnsiChar): TIdC_INT; + function SSL_CONF_cmd_value_type(cctx: PSSL_CONF_CTX; const cmd: PIdAnsiChar): TIdC_INT; + + procedure SSL_CONF_CTX_set_ssl(cctx: PSSL_CONF_CTX; ssl: PSSL); + procedure SSL_CONF_CTX_set_ssl_ctx(cctx: PSSL_CONF_CTX; ctx: PSSL_CTX); + procedure SSL_add_ssl_module; {introduced 1.1.0} + function SSL_config(s: PSSL; const name: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_config(ctx: PSSL_CTX; const name: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + +// procedure SSL_trace(write_p: TIdC_INT; version: TIdC_INT; content_type: TIdC_INT; const buf: Pointer; len: TIdC_SIZET; ssl: PSSL; arg: Pointer); + + function DTLSv1_listen(s: PSSL; client: PBIO_ADDr): TIdC_INT; {introduced 1.1.0} + + //# ifndef OPENSSL_NO_CT + // + ///* + // * A callback for verifying that the received SCTs are sufficient. + // * Expected to return 1 if they are sufficient, otherwise 0. + // * May return a negative integer if an error occurs. + // * A connection should be aborted if the SCTs are deemed insufficient. + // */ + //typedef TIdC_INT (*ssl_ct_validation_cb)(const CT_POLICY_EVAL_CTX *ctx, + // const STACK_OF(SCT) *scts, void *arg); + + ///* + // * Sets a |callback| that is invoked upon receipt of ServerHelloDone to validate + // * the received SCTs. + // * If the callback returns a non-positive result, the connection is terminated. + // * Call this function before beginning a handshake. + // * If a NULL |callback| is provided, SCT validation is disabled. + // * |arg| is arbitrary userdata that will be passed to the callback whenever it + // * is invoked. Ownership of |arg| remains with the caller. + // * + // * NOTE: A side-effect of setting a CT callback is that an OCSP stapled response + // * will be requested. + // */ + //function SSL_set_ct_validation_callback(s: PSSL; callback: ssl_ct_validation_cb; arg: Pointer): TIdC_INT; + //function SSL_CTX_set_ct_validation_callback(ctx: PSSL_CTX; callback: ssl_ct_validation_cb; arg: Pointer): TIdC_INT; + + //#define SSL_disable_ct(s) \ + // ((void) SSL_set_validation_callback((s), NULL, NULL)) + //#define SSL_CTX_disable_ct(ctx) \ + // ((void) SSL_CTX_set_validation_callback((ctx), NULL, NULL)) + + ///* + // * The validation type enumerates the available behaviours of the built-in SSL + // * CT validation callback selected via SSL_enable_ct() and SSL_CTX_enable_ct(). + // * The underlying callback is a static function in_ libssl. + // */ + + ///* + // * Enable CT by setting up a callback that implements one of the built-in + // * validation variants. The SSL_CT_VALIDATION_PERMISSIVE variant always + // * continues the handshake, the application can make appropriate decisions at + // * handshake completion. The SSL_CT_VALIDATION_STRICT variant requires at + // * least one valid SCT, or else handshake termination will be requested. The + // * handshake may continue anyway if SSL_VERIFY_NONE is in_ effect. + // */ + function SSL_enable_ct(s: PSSL; validation_mode: TIdC_INT): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_enable_ct(ctx: PSSL_CTX; validation_mode: TIdC_INT): TIdC_INT; {introduced 1.1.0} + + ///* + // * Report whether a non-NULL callback is enabled. + // */ + function SSL_ct_is_enabled(const s: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_ct_is_enabled(const ctx: PSSL_CTX): TIdC_INT; {introduced 1.1.0} + + ///* Gets the SCTs received from a connection */ + //const STACK_OF(SCT) *SSL_get0_peer_scts(s: PSSL); + + function SSL_CTX_set_default_ctlog_list_file(ctx: PSSL_CTX): TIdC_INT; {introduced 1.1.0} + function SSL_CTX_set_ctlog_list_file(ctx: PSSL_CTX; const path: PIdAnsiChar): TIdC_INT; {introduced 1.1.0} + procedure SSL_CTX_set0_ctlog_store(ctx: PSSL_CTX; logs: PCTLOG_STORE); {introduced 1.1.0} + + // const CTLOG_STORE *SSL_CTX_get0_ctlog_store(const ctx: PSSL_CTX); + + // # endif /* OPENSSL_NO_CT */ + + procedure SSL_set_security_level(s: PSSL; level: TIdC_INT); {introduced 1.1.0} + + ////__owur TIdC_INT SSL_get_security_level(const s: PSSL); + procedure SSL_set_security_callback(s: PSSL; cb: SSL_security_callback); {introduced 1.1.0} + function SSL_get_security_callback(const s: PSSL): SSL_security_callback; {introduced 1.1.0} + procedure SSL_set0_security_ex_data(s: PSSL; ex: Pointer); {introduced 1.1.0} + function SSL_get0_security_ex_data(const s: PSSL): Pointer; {introduced 1.1.0} + procedure SSL_CTX_set_security_level(ctx: PSSL_CTX; level: TIdC_INT); {introduced 1.1.0} + function SSL_CTX_get_security_level(const ctx: PSSL_CTX): TIdC_INT; {introduced 1.1.0} + //void SSL_CTX_set_security_callback(ctx: PSSL_CTX, + // TIdC_INT (*cb) (const s: PSSL, const ctx: PSSL_CTX, + // TIdC_INT op, TIdC_INT bits, TIdC_INT nid, + // void *other, void *ex)); + //TIdC_INT (*SSL_CTX_get_security_callback(const ctx: PSSL_CTX)) (const s: PSSL, + // const ctx: PSSL_CTX, + // TIdC_INT op, TIdC_INT bits, + // TIdC_INT nid, + // void *other, + // void *ex); + + function SSL_CTX_get0_security_ex_data(const ctx: PSSL_CTX): Pointer; {introduced 1.1.0} + + procedure SSL_CTX_set0_security_ex_data(ctx: PSSL_CTX; ex: Pointer); {introduced 1.1.0} + + function OPENSSL_init_ssl(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT; {introduced 1.1.0} + + //# ifndef OPENSSL_NO_UNIT_TEST + //__owur const struct openssl_ssl_test_functions *SSL_test_functions(void); + //# endif + + function SSL_free_buffers(ssl: PSSL): TIdC_INT; {introduced 1.1.0} + function SSL_alloc_buffers(ssl: PSSL): TIdC_INT; {introduced 1.1.0} + + function SSL_CTX_set_session_ticket_cb(ctx: PSSL_CTX; gen_cb: SSL_CTX_generate_session_ticket_fn; dec_cb: SSL_CTX_decrypt_session_ticket_fn; arg: Pointer): TIdC_INT; {introduced 1.1.0} + + function SSL_SESSION_set1_ticket_appdata(ss: PSSL_SESSION; const data: Pointer; len: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + function SSL_SESSION_get0_ticket_appdata(ss: PSSL_SESSION; data: PPointer; len: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + + //extern const PIdAnsiChar SSL_version_str[]; + + procedure DTLS_set_timer_cb(s: PSSL; cb: DTLS_timer_cb); {introduced 1.1.0} + procedure SSL_CTX_set_allow_early_data_cb(ctx: PSSL_CTX; cb: SSL_allow_early_data_cb_fN; arg: Pointer); {introduced 1.1.0} + procedure SSL_set_allow_early_data_cb(s: PSSL; cb: SSL_allow_early_data_cb_fN; arg: Pointer); {introduced 1.1.0} + + function SSLv2_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // SSLv2 + function SSLv2_server_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // SSLv2 + function SSLv2_client_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // SSLv2 + function SSLv3_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // SSLv3 + function SSLv3_server_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // SSLv3 + function SSLv3_client_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // SSLv3 + function SSLv23_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + function SSLv23_server_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + function SSLv23_client_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // SSLv3 but can rollback to v2 + function TLSv1_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // TLSv1.0 + function TLSv1_server_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // TLSv1.0 + function TLSv1_client_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // TLSv1.0 + function TLSv1_1_method: PSSL_METHOD; {removed 1.1.0 allow_nil} //TLS1.1 + function TLSv1_1_server_method: PSSL_METHOD; {removed 1.1.0 allow_nil} //TLS1.1 + function TLSv1_1_client_method: PSSL_METHOD; {removed 1.1.0 allow_nil} //TLS1.1 + function TLSv1_2_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // TLSv1.2 + function TLSv1_2_server_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // TLSv1.2 + function TLSv1_2_client_method: PSSL_METHOD; {removed 1.1.0 allow_nil} // TLSv1.2 + + //X509 *SSL_get0_peer_certificate(const SSL *s); + function SSL_get0_peer_certificate(const s: PSSL): PX509; {introduced 3.3.0} + // X509 *SSL_get1_peer_certificate(const SSL *s); + function SSL_get1_peer_certificate(const s: PSSL): PX509; {introduced 3.3.0} + +{helper_functions} + function IsOpenSSL_SSLv2_Available : Boolean; + function IsOpenSSL_SSLv3_Available : Boolean; + function IsOpenSSL_SSLv23_Available : Boolean; + function IsOpenSSL_TLSv1_0_Available : Boolean; + function IsOpenSSL_TLSv1_1_Available : Boolean; + function IsOpenSSL_TLSv1_2_Available : Boolean; + function HasTLS_method: boolean; + function SSL_CTX_set_min_proto_version(ctx: PSSL_CTX; version: TIdC_LONG): TIdC_LONG; + function SSL_CTX_set_max_proto_version(ctx: PSSL_CTX; version: TIdC_LONG): TIdC_LONG; + function SSL_CTX_get_min_proto_version(ctx: PSSL_CTX): TIdC_LONG; + function SSL_CTX_get_max_proto_version(ctx: PSSL_CTX): TIdC_LONG; + function SSL_set_min_proto_version(s: PSSL; version: TIdC_LONG): TIdC_LONG; + function SSL_set_max_proto_version(s: PSSL; version: TIdC_LONG): TIdC_LONG; + function SSL_get_min_proto_version(s: PSSL): TIdC_LONG; + function SSL_get_max_proto_version(s: PSSL): TIdC_LONG; +{/helper_functions} + + +implementation + +//# define SSL_get_peer_certificate SSL_get1_peer_certificate +function SSL_get_peer_certificate(const s: PSSL): PX509; +begin + Result := SSL_get1_peer_certificate(s); +end; + + +//# define SSL_CTX_set_mode(ctx,op) SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL) +function SSL_CTX_set_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_MODE, op, nil); +end; + +//# define SSL_CTX_clear_mode(ctx,op) SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_MODE,(op),NULL) +function SSL_CTX_clear_mode(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CLEAR_MODE, op, nil); +end; + +//# define SSL_CTX_sess_set_cache_size(ctx,t) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_SIZE,t,NULL) +function SSL_CTX_sess_set_cache_size(ctx: PSSL_CTX; t: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SESS_CACHE_SIZE, t, nil); +end; + +//# define SSL_CTX_sess_get_cache_size(ctx) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_SIZE,0,NULL) +function SSL_CTX_sess_get_cache_size(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_SESS_CACHE_SIZE, 0, nil); +end; + +//# define SSL_CTX_set_session_cache_mode(ctx,m) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_MODE,m,NULL) +function SSL_CTX_set_session_cache_mode(ctx: PSSL_CTX; m: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SESS_CACHE_MODE, m, nil); +end; + +//# define SSL_CTX_get_session_cache_mode(ctx) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_MODE,0,NULL) +function SSL_CTX_get_session_cache_mode(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_SESS_CACHE_MODE, 0, nil); +end; + +//# define SSL_num_renegotiations(ssl) SSL_ctrl((ssl),SSL_CTRL_GET_NUM_RENEGOTIATIONS,0,NULL) +function SSL_num_renegotiations(ssl: PSSL): TIdC_LONG; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_GET_NUM_RENEGOTIATIONS, 0, nil); +end; + +//# define SSL_clear_num_renegotiations(ssl) SSL_ctrl((ssl),SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS,0,NULL) +function SSL_clear_num_renegotiations(ssl: PSSL): TIdC_LONG; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS, 0, nil); +end; + +//# define SSL_total_renegotiations(ssl) SSL_ctrl((ssl),SSL_CTRL_GET_TOTAL_RENEGOTIATIONS,0,NULL) +function SSL_total_renegotiations(ssl: PSSL): TIdC_LONG; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_GET_TOTAL_RENEGOTIATIONS, 0, nil); +end; + +//# define SSL_CTX_set_tmp_dh(ctx,dh) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)(dh)) +function SSL_CTX_set_tmp_dh(ctx: PSSL_CTX; dh: PDH): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_TMP_DH, 0, dh); +end; + +//# define SSL_CTX_set_tmp_ecdh(ctx,ecdh) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh)) +function SSL_CTX_set_tmp_ecdh(ctx: PSSL_CTX; ecdh: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_TMP_ECDH, 0, ecdh); +end; + +//# define SSL_CTX_set_dh_auto(ctx, onoff) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_DH_AUTO,onoff,NULL) +function SSL_CTX_set_dh_auto(ctx: PSSL_CTX; onoff: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_DH_AUTO, onoff, nil); +end; + +//# define SSL_set_dh_auto(s, onoff) SSL_ctrl(s,SSL_CTRL_SET_DH_AUTO,onoff,NULL) +function SSL_set_dh_auto(s: PSSL; onoff: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_DH_AUTO, onoff, nil); +end; + +//# define SSL_set_tmp_dh(ssl,dh) SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)(dh)) +function SSL_set_tmp_dh(ssl: PSSL; dh: PDH): TIdC_LONG; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_SET_TMP_DH, 0, dh); +end; + +//# define SSL_set_tmp_ecdh(ssl,ecdh) SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh)) +function SSL_set_tmp_ecdh(ssl: PSSL; ecdh: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(ssl, SSL_CTRL_SET_TMP_ECDH, 0, ecdh); +end; + +//# define SSL_CTX_add_extra_chain_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)(x509)) +function SSL_CTX_add_extra_chain_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_EXTRA_CHAIN_CERT, 0, x509); +end; + +//# define SSL_CTX_get_extra_chain_certs(ctx,px509) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,0,px509) +function SSL_CTX_get_extra_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_EXTRA_CHAIN_CERTS, 0, px509); +end; + +//# define SSL_CTX_get_extra_chain_certs_only(ctx,px509) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,1,px509) +function SSL_CTX_get_extra_chain_certs_only(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_EXTRA_CHAIN_CERTS, 1, px509); +end; + +//# define SSL_CTX_clear_extra_chain_certs(ctx) SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS,0,NULL) +function SSL_CTX_clear_extra_chain_certs(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS, 0, nil); +end; + +//# define SSL_CTX_set0_chain(ctx,sk) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,0,(char *)(sk)) +function SSL_CTX_set0_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN, 0, sk); +end; + +//# define SSL_CTX_set1_chain(ctx,sk) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,1,(char *)(sk)) +function SSL_CTX_set1_chain(ctx: PSSL_CTX; sk: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN, 1, sk); +end; + +//# define SSL_CTX_add0_chain_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,0,(char *)(x509)) +function SSL_CTX_add0_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN_CERT, 0, x509); +end; + +//# define SSL_CTX_add1_chain_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,1,(char *)(x509)) +function SSL_CTX_add1_chain_cert(ctx: PSSL_CTX; x509: PX509): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_CHAIN_CERT, 1, x509); +end; + +//# define SSL_CTX_get0_chain_certs(ctx,px509) SSL_CTX_ctrl(ctx,SSL_CTRL_GET_CHAIN_CERTS,0,px509) +function SSL_CTX_get0_chain_certs(ctx: PSSL_CTX; px509: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_CHAIN_CERTS, 0, px509); +end; + +//# define SSL_CTX_clear_chain_certs(ctx) SSL_CTX_set0_chain(ctx,NULL) +function SSL_CTX_clear_chain_certs(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_set0_chain(ctx, nil); +end; + +//# define SSL_CTX_build_cert_chain(ctx, flags) SSL_CTX_ctrl(ctx,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL) +function SSL_CTX_build_cert_chain(ctx: PSSL_CTX; flags: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_BUILD_CERT_CHAIN, flags, nil); +end; + +//# define SSL_CTX_select_current_cert(ctx,x509) SSL_CTX_ctrl(ctx,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509)) +function SSL_CTX_select_current_cert(ctx: PSSL_CTX; x509: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SELECT_CURRENT_CERT, 0, x509); +end; + +//# define SSL_CTX_set_current_cert(ctx, op) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CURRENT_CERT, op, NULL) +function SSL_CTX_set_current_cert(ctx: PSSL_CTX; op: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CURRENT_CERT, op, nil); +end; + +//# define SSL_CTX_set0_verify_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st)) +function SSL_CTX_set0_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_VERIFY_CERT_STORE, 0, st); +end; + +//# define SSL_CTX_set1_verify_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st)) +function SSL_CTX_set1_verify_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_VERIFY_CERT_STORE, 1, st); +end; + +//# define SSL_CTX_set0_chain_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st)) +function SSL_CTX_set0_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CHAIN_CERT_STORE, 0, st); +end; + +//# define SSL_CTX_set1_chain_cert_store(ctx,st) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st)) +function SSL_CTX_set1_chain_cert_store(ctx: PSSL_CTX; st: Pointer): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CHAIN_CERT_STORE, 1, st); +end; + +//# define SSL_set0_chain(s,sk) SSL_ctrl(s,SSL_CTRL_CHAIN,0,(char *)(sk)) +function SSL_set0_chain(s: PSSL; sk: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN, 0, sk); +end; + +//# define SSL_set1_chain(s,sk) SSL_ctrl(s,SSL_CTRL_CHAIN,1,(char *)(sk)) +function SSL_set1_chain(s: PSSL; sk: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN, 1, sk); +end; + +//# define SSL_add0_chain_cert(s,x509) SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,0,(char *)(x509)) +function SSL_add0_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN_CERT, 0, x509); +end; + +//# define SSL_add1_chain_cert(s,x509) SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,1,(char *)(x509)) +function SSL_add1_chain_cert(s: PSSL; x509: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_CHAIN_CERT, 1, x509); +end; + +//# define SSL_get0_chain_certs(s,px509) SSL_ctrl(s,SSL_CTRL_GET_CHAIN_CERTS,0,px509) +function SSL_get0_chain_certs(s: PSSL; px509: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_CHAIN_CERTS, 0, px509); +end; + +//# define SSL_clear_chain_certs(s) SSL_set0_chain(s,NULL) +function SSL_clear_chain_certs(s: PSSL): TIdC_LONG; +begin + Result := SSL_set0_chain(s, nil); +end; + +//# define SSL_build_cert_chain(s, flags) SSL_ctrl(s,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL) +function SSL_build_cert_chain(s: PSSL; flags: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_BUILD_CERT_CHAIN, flags, nil); +end; + +//# define SSL_select_current_cert(s,x509) SSL_ctrl(s,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509)) +function SSL_select_current_cert(s: PSSL; x509: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SELECT_CURRENT_CERT, 0, x509); +end; + +//# define SSL_set_current_cert(s,op) SSL_ctrl(s,SSL_CTRL_SET_CURRENT_CERT, op, NULL) +function SSL_set_current_cert(s: PSSL; op: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CURRENT_CERT, op, nil); +end; + +//# define SSL_set0_verify_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st)) +function SSL_set0_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_VERIFY_CERT_STORE, 0, st); +end; + +//# define SSL_set1_verify_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st)) +function SSL_set1_verify_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_VERIFY_CERT_STORE, 1, st); +end; + +//# define SSL_set0_chain_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st)) +function SSL_set0_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CHAIN_CERT_STORE, 0, st); +end; + +//# define SSL_set1_chain_cert_store(s,st) SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st)) +function SSL_set1_chain_cert_store(s: PSSL; st: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CHAIN_CERT_STORE, 1, st); +end; + +//# define SSL_get1_groups(s, glist) SSL_ctrl(s,SSL_CTRL_GET_GROUPS,0,(TIdC_INT*)(glist)) +function SSL_get1_groups(s: PSSL; glist: PIdC_INT): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_GROUPS, 0, glist); +end; + +//# define SSL_CTX_set1_groups(ctx, glist, glistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist)) +function SSL_CTX_set1_groups(ctx: PSSL_CTX; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_GROUPS, glistlen, glist); +end; + +//# define SSL_CTX_set1_groups_list(ctx, s) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s)) +function SSL_CTX_set1_groups_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_GROUPS_LIST, 0, s); +end; + +//# define SSL_set1_groups(s, glist, glistlen) SSL_ctrl(s,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist)) +function SSL_set1_groups(s: PSSL; glist: PByte; glistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_GROUPS, glistlen, glist); +end; + +//# define SSL_set1_groups_list(s, str) SSL_ctrl(s,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(str)) +function SSL_set1_groups_list(s: PSSL; str: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_GROUPS_LIST, 0, str); +end; + +//# define SSL_get_shared_group(s, n) SSL_ctrl(s,SSL_CTRL_GET_SHARED_GROUP,n,NULL) +function SSL_get_shared_group(s: PSSL; n: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_SHARED_GROUP, n, nil); +end; + +//# define SSL_CTX_set1_sigalgs(ctx, slist, slistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function SSL_CTX_set1_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SIGALGS, slistlen, slist); +end; + +//# define SSL_CTX_set1_sigalgs_list(ctx, s) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(s)) +function SSL_CTX_set1_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_SIGALGS_LIST, 0, s); +end; + +//# define SSL_set1_sigalgs(s, slist, slistlen) SSL_ctrl(s,SSL_CTRL_SET_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function SSL_set1_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_SIGALGS, slistlen, slist); +end; + +//# define SSL_set1_sigalgs_list(s, str) SSL_ctrl(s,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(str)) +function SSL_set1_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_SIGALGS_LIST, 0, str); +end; + +//# define SSL_CTX_set1_client_sigalgs(ctx, slist, slistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function SSL_CTX_set1_client_sigalgs(ctx: PSSL_CTX; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CLIENT_SIGALGS, slistlen, slist); +end; + +//# define SSL_CTX_set1_client_sigalgs_list(ctx, s) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(s)) +function SSL_CTX_set1_client_sigalgs_list(ctx: PSSL_CTX; s: PByte): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CLIENT_SIGALGS_LIST, 0, s); +end; + +//# define SSL_set1_client_sigalgs(s, slist, slistlen) SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(TIdC_INT *)(slist)) +function SSL_set1_client_sigalgs(s: PSSL; slist: PIdC_INT; slistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CLIENT_SIGALGS, slistlen, slist); +end; + +//# define SSL_set1_client_sigalgs_list(s, str) SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(str)) +function SSL_set1_client_sigalgs_list(s: PSSL; str: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CLIENT_SIGALGS_LIST, 0, str); +end; + +//# define SSL_get0_certificate_types(s, clist) SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, (char *)(clist)) +function SSL_get0_certificate_types(s: PSSL; clist: PByte): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, clist); +end; + +//# define SSL_CTX_set1_client_certificate_types(ctx, clist, clistlen) SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen, (char *)(clist)) +function SSL_CTX_set1_client_certificate_types(ctx: PSSL_CTX; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_CLIENT_CERT_TYPES, clistlen, clist); +end; + +//# define SSL_set1_client_certificate_types(s, clist, clistlen) SSL_ctrl(s,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen,(char *)(clist)) +function SSL_set1_client_certificate_types(s: PSSL; clist: PByte; clistlen: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_CLIENT_CERT_TYPES, clistlen, clist); +end; + +//# define SSL_get_signature_nid(s, pn) SSL_ctrl(s,SSL_CTRL_GET_SIGNATURE_NID,0,pn) +function SSL_get_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_SIGNATURE_NID, 0, pn); +end; + +//# define SSL_get_peer_signature_nid(s, pn) SSL_ctrl(s,SSL_CTRL_GET_PEER_SIGNATURE_NID,0,pn) +function SSL_get_peer_signature_nid(s: PSSL; pn: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_PEER_SIGNATURE_NID, 0, pn); +end; + +//# define SSL_get_peer_tmp_key(s, pk) SSL_ctrl(s,SSL_CTRL_GET_PEER_TMP_KEY,0,pk) +function SSL_get_peer_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_PEER_TMP_KEY, 0, pk); +end; + +//# define SSL_get_tmp_key(s, pk) SSL_ctrl(s,SSL_CTRL_GET_TMP_KEY,0,pk) +function SSL_get_tmp_key(s: PSSL; pk: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_TMP_KEY, 0, pk); +end; + +//# define SSL_get0_raw_cipherlist(s, plst) SSL_ctrl(s,SSL_CTRL_GET_RAW_CIPHERLIST,0,plst) +function SSL_get0_raw_cipherlist(s: PSSL; plst: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_RAW_CIPHERLIST, 0, plst); +end; + +//# define SSL_get0_ec_point_formats(s, plst) SSL_ctrl(s,SSL_CTRL_GET_EC_POINT_FORMATS,0,plst) +function SSL_get0_ec_point_formats(s: PSSL; plst: Pointer): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_EC_POINT_FORMATS, 0, plst); +end; + +{helper_functions} + +function IsOpenSSL_SSLv2_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(SSLv2_method) and + Assigned(SSLv2_server_method) and + Assigned(SSLv2_client_method); + {$ELSE} + Result := false; + {$ENDIF} + end; + + function IsOpenSSL_SSLv3_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(SSLv3_method) and + Assigned(SSLv3_server_method) and + Assigned(SSLv3_client_method); + {$ELSE} + Result := true; + {$ENDIF} + end; + + function IsOpenSSL_SSLv23_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(SSLv23_method) and + Assigned(SSLv23_server_method) and + Assigned(SSLv23_client_method); + {$ELSE} + Result := false; + {$ENDIF} + end; + + function IsOpenSSL_TLSv1_0_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(TLSv1_method) and + Assigned(TLSv1_server_method) and + Assigned(TLSv1_client_method); + {$ELSE} + Result := true; + {$ENDIF} + end; + + function IsOpenSSL_TLSv1_1_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(TLSv1_1_method) and + Assigned(TLSv1_1_server_method) and + Assigned(TLSv1_1_client_method); + {$ELSE} + Result := true; + {$ENDIF} + end; + + function IsOpenSSL_TLSv1_2_Available : Boolean; + begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + Result := Assigned(TLSv1_2_method) and + Assigned(TLSv1_2_server_method) and + Assigned(TLSv1_2_client_method); + {$ELSE} + Result := true; + {$ENDIF} + end; + +function HasTLS_method: boolean; +begin + {$IFNDEF USE_EXTERNAL_LIBRARY} + if Assigned(SSLeay) then + Result := TLS_method_introduced <= (SSLeay shr 12); + {$ELSE} + Result := true; + {$ENDIF} +end; + + +//# define SSL_CTX_set_min_proto_version(ctx, version) SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL) +function SSL_CTX_set_min_proto_version(ctx: PSSL_CTX; version: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, nil); +end; + +//# define SSL_CTX_set_max_proto_version(ctx, version) SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL) +function SSL_CTX_set_max_proto_version(ctx: PSSL_CTX; version: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, nil); +end; + +//# define SSL_CTX_get_min_proto_version(ctx) SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL) +function SSL_CTX_get_min_proto_version(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, nil); +end; + +//# define SSL_CTX_get_max_proto_version(ctx) SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL) +function SSL_CTX_get_max_proto_version(ctx: PSSL_CTX): TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, nil); +end; + +//# define SSL_set_min_proto_version(s, version) SSL_ctrl(s, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL) +function SSL_set_min_proto_version(s: PSSL; version: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_MIN_PROTO_VERSION, version, nil); +end; + +//# define SSL_set_max_proto_version(s, version) SSL_ctrl(s, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL) +function SSL_set_max_proto_version(s: PSSL; version: TIdC_LONG): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_MAX_PROTO_VERSION, version, nil); +end; + +//# define SSL_get_min_proto_version(s) SSL_ctrl(s, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL) +function SSL_get_min_proto_version(s: PSSL): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, nil); +end; + +//# define SSL_get_max_proto_version(s) SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL) +function SSL_get_max_proto_version(s: PSSL): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, nil); +end; +{/helper_functions} + +function SSL_get_app_data(const ssl: PSSL): Pointer ; +begin + Result := SSL_get_ex_data(ssl,0); +end; + +procedure SSL_load_error_strings; +begin + OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS or OPENSSL_INIT_LOAD_CRYPTO_STRINGS,nil); +end; + +function SSL_library_init: TIdC_INT; +begin + Result := OPENSSL_init_ssl(0, nil); +end; + +function SSLeay_add_ssl_algorithms: TIdC_INT; +begin + Result := SSL_library_init; +end; + +function SSL_set_app_data(ssl: PSSL; data: Pointer): TIdC_INT; +begin + Result := SSL_set_ex_data(ssl,0,data); +end; + +{forward_compatibility} + +type + PSTACK_OF_SSL_CIPHER = pointer; + Plash_of_SSL_SESSION = pointer; + SSL_CTX_stats = record + sess_connect: TIdC_INT; // SSL new conn - started + sess_connect_renegotiate: TIdC_INT; // SSL reneg - requested + sess_connect_good: TIdC_INT; // SSL new conne/reneg - finished + sess_accept: TIdC_INT; // SSL new accept - started + sess_accept_renegotiate: TIdC_INT; // SSL reneg - requested + sess_accept_good: TIdC_INT; // SSL accept/reneg - finished + sess_miss: TIdC_INT; // session lookup misses + sess_timeout: TIdC_INT; // reuse attempt on timeouted session + sess_cache_full: TIdC_INT; // session removed due to full cache + sess_hit: TIdC_INT; // session reuse actually done + sess_cb_hit: TIdC_INT; // session-id that was not + // in the cache was + // passed back via the callback. This + // indicates that the application is + // supplying session-id's from other + // processes - spooky :-) + end; + PSTACK_OF_COMP = pointer; + PSSL_CTX_info_callback = pointer; + PX509_VERIFY_PARAM = pointer; + PCERT = pointer; + size_t = type integer; + PGEN_SESSION_CB = pointer; + PSSL_CTEX_tlsext_servername_callback = pointer; + Ptlsext_status_cb = pointer; + Ptlsext_ticket_key_cb = pointer; + Pssl3_buf_freelist_st = pointer; + PSRP_CTX = ^SRP_CTX; + SRP_CTX = record + //* param for all the callbacks */ + SRP_cb_arg : Pointer; + //* set client Hello login callback */ + TLS_ext_srp_username_callback : function(para1 : PSSL; para2 : TIdC_INT; para3 : Pointer) : TIdC_INT cdecl; + //int (*TLS_ext_srp_username_callback)(SSL *, int *, void *); + //* set SRP N/g param callback for verification */ + SRP_verify_param_callback : function(para1 : PSSL; para2 : Pointer) : TIdC_INT cdecl; +// int (*SRP_verify_param_callback)(SSL *, void *); + //* set SRP client passwd callback */ + SRP_give_srp_client_pwd_callback : function(para1 : PSSL; para2 : Pointer) : PIdAnsiChar cdecl; + // char *(*SRP_give_srp_client_pwd_callback)(SSL *, void *); + login : PIdAnsiChar; + N, g, s, B, A : PBIGNUM; + _a, _b, v : PBIGNUM; + info : PIdAnsiChar; + strength : TIdC_INT; + srp_Mask : TIdC_ULONG; + end; + PSTACK_OF_SRTP_PROTECTION_PROFILE = pointer; + + _PSSL_CTX = ^SSL_CTX; + SSL_CTX = record + method: PSSL_METHOD; + cipher_list: PSTACK_OF_SSL_CIPHER; + // same as above but sorted for lookup + cipher_list_by_id: PSTACK_OF_SSL_CIPHER; + cert_store: PX509_STORE; + sessions: Plash_of_SSL_SESSION; + // a set of SSL_SESSIONs + // Most session-ids that will be cached, default is + // SSL_SESSION_CACHE_MAX_SIZE_DEFAULT. 0 is unlimited. + session_cache_size: TIdC_ULONG; + session_cache_head: PSSL_SESSION; + session_cache_tail: PSSL_SESSION; + // This can have one of 2 values, ored together, + // SSL_SESS_CACHE_CLIENT, + // SSL_SESS_CACHE_SERVER, + // Default is SSL_SESSION_CACHE_SERVER, which means only + // SSL_accept which cache SSL_SESSIONS. + session_cache_mode: TIdC_INT; + session_timeout: TIdC_LONG; + // If this callback is not null, it will be called each + // time a session id is added to the cache. If this function + // returns 1, it means that the callback will do a + // SSL_SESSION_free() when it has finished using it. Otherwise, + // on 0, it means the callback has finished with it. + // If remove_session_cb is not null, it will be called when + // a session-id is removed from the cache. After the call, + // OpenSSL will SSL_SESSION_free() it. + new_session_cb: function (ssl : PSSL; sess: PSSL_SESSION): TIdC_INT; cdecl; + remove_session_cb: procedure (ctx : PSSL_CTX; sess : PSSL_SESSION); cdecl; + get_session_cb: function (ssl : PSSL; data : PByte; len: TIdC_INT; copy : PIdC_INT) : PSSL_SESSION; cdecl; + stats : SSL_CTX_stats; + + references: TIdC_INT; + // if defined, these override the X509_verify_cert() calls + app_verify_callback: function (_para1 : PX509_STORE_CTX; _para2 : Pointer) : TIdC_INT; cdecl; + app_verify_arg: Pointer; + // before OpenSSL 0.9.7, 'app_verify_arg' was ignored + // ('app_verify_callback' was called with just one argument) + // Default password callback. + default_passwd_callback: pem_password_cb; + // Default password callback user data. + default_passwd_callback_userdata: Pointer; + // get client cert callback + client_cert_cb: function (SSL : PSSL; x509 : PPX509; pkey : PPEVP_PKEY) : TIdC_INT; cdecl; + // verify cookie callback + app_gen_cookie_cb: function (ssl : PSSL; cookie : PByte; cookie_len : TIdC_UINT) : TIdC_INT; cdecl; + app_verify_cookie_cb: Pointer; + ex_data : CRYPTO_EX_DATA; + rsa_md5 : PEVP_MD; // For SSLv2 - name is 'ssl2-md5' + md5: PEVP_MD; // For SSLv3/TLSv1 'ssl3-md5' + sha1: PEVP_MD; // For SSLv3/TLSv1 'ssl3->sha1' + extra_certs: PSTACK_OF_X509; + comp_methods: PSTACK_OF_COMP; // stack of SSL_COMP, SSLv3/TLSv1 + // Default values used when no per-SSL value is defined follow + info_callback: PSSL_CTX_info_callback; // used if SSL's info_callback is NULL + // what we put in client cert requests + client_CA : PSTACK_OF_X509_NAME; + // Default values to use in SSL structures follow (these are copied by SSL_new) + options : TIdC_ULONG; + mode : TIdC_ULONG; + max_cert_list : TIdC_LONG; + cert : PCERT; + read_ahead : TIdC_INT; + // callback that allows applications to peek at protocol messages + msg_callback : procedure (write_p, version, content_type : TIdC_INT; const buf : Pointer; len : size_t; ssl : PSSL; arg : Pointer); cdecl; + msg_callback_arg : Pointer; + verify_mode : TIdC_INT; + sid_ctx_length : TIdC_UINT; + sid_ctx : array[0..SSL_MAX_SID_CTX_LENGTH - 1] of TIdAnsiChar; + default_verify_callback : function(ok : TIdC_INT; ctx : PX509_STORE_CTX) : TIdC_INT; cdecl; // called 'verify_callback' in the SSL + // Default generate session ID callback. + generate_session_id : PGEN_SESSION_CB; + param : PX509_VERIFY_PARAM; + {$IFDEF OMIT_THIS} + purpose : TIdC_INT; // Purpose setting + trust : TIdC_INT; // Trust setting + {$ENDIF} + + quiet_shutdown : TIdC_INT; + //* Maximum amount of data to send in one fragment. + // * actual record size can be more than this due to + // * padding and MAC overheads. + // */ + max_send_fragment : TIdC_UINT; + {$IFNDEF OPENSSL_ENGINE} + ///* Engine to pass requests for client certs to + // */ + client_cert_engine : PENGINE; + {$ENDIF} + {$IFNDEF OPENSSL_NO_TLSEXT} +//* TLS extensions servername callback */ + tlsext_servername_callback : PSSL_CTEX_tlsext_servername_callback; + tlsext_servername_arg : Pointer; + //* RFC 4507 session ticket keys */ + tlsext_tick_key_name : array [0..(16-1)] of TIdAnsiChar; + tlsext_tick_hmac_key : array [0..(16-1)] of TIdAnsiChar; + tlsext_tick_aes_key : array [0..(16-1)] of TIdAnsiChar; + //* Callback to support customisation of ticket key setting */ + // int (*tlsext_ticket_key_cb)(SSL *ssl, + // unsigned char *name, unsigned char *iv, + // EVP_CIPHER_CTX *ectx, + // HMAC_CTX *hctx, int enc); + tlsext_ticket_key_cb : Ptlsext_ticket_key_cb; + //* certificate status request info */ + //* Callback for status request */ + //int (*tlsext_status_cb)(SSL *ssl, void *arg); + tlsext_status_cb : Ptlsext_status_cb; + tlsext_status_arg : Pointer; + {$ENDIF} + //* draft-rescorla-tls-opaque-prf-input-00.txt information */ + tlsext_opaque_prf_input_callback : function(para1 : PSSL; peerinput : Pointer; len : size_t; arg : Pointer ) : TIdC_INT cdecl; + //int (*tlsext_opaque_prf_input_callback)(SSL *, void *peerinput, size_t len, void *arg); + tlsext_opaque_prf_input_callback_arg : Pointer; + +{$ifndef OPENSSL_NO_PSK} + psk_identity_hint : PIdAnsiChar; + psk_client_callback : function (ssl : PSSL; hint : PIdAnsiChar; + identity : PIdAnsiChar; max_identity_len : TIdC_UINT; + psk : PIdAnsiChar; max_psk_len : TIdC_UINT ) : TIdC_UINT cdecl; + // unsigned int (*psk_client_callback)(SSL *ssl, const char *hint, char *identity, +// unsigned int max_identity_len, unsigned char *psk, +// unsigned int max_psk_len); + psk_server_callback : function (ssl : PSSL; identity, psk : PIdAnsiChar; max_psk_len : TIdC_UINT) : TIdC_UINT cdecl; +// unsigned int (*psk_server_callback)(SSL *ssl, const char *identity, +// unsigned char *psk, unsigned int max_psk_len); +{$endif} + +{$ifndef OPENSSL_NO_BUF_FREELISTS} + freelist_max_len : TIdC_UINT; + wbuf_freelist : Pssl3_buf_freelist_st; + rbuf_freelist : Pssl3_buf_freelist_st; +{$endif} +{$ifndef OPENSSL_NO_SRP} + srp_ctx : SRP_CTX; //* ctx for SRP authentication */ +{$endif} + +{$ifndef OPENSSL_NO_TLSEXT} +//# ifndef OPENSSL_NO_NEXTPROTONEG + //* Next protocol negotiation information */ + //* (for experimental NPN extension). */ + + //* For a server, this contains a callback function by which the set of + // * advertised protocols can be provided. */ + next_protos_advertised_cb : function(s : PSSL; out but : PIdAnsiChar; + out len : TIdC_UINT; arg : Pointer) : TIdC_INT cdecl; +// int (*next_protos_advertised_cb)(SSL *s, const unsigned char **buf, +// unsigned int *len, void *arg); + next_protos_advertised_cb_arg : Pointer; + //* For a client, this contains a callback function that selects the + // * next protocol from the list provided by the server. */ + next_proto_select_cb : function(s : PSSL; out _out : PIdAnsiChar; + outlen : PIdAnsiChar; + _in : PIdAnsiChar; + inlen : TIdC_UINT; + arg : Pointer) : TIdC_INT cdecl; +// int (*next_proto_select_cb)(SSL *s, unsigned char **out, +// unsigned char *outlen, +// const unsigned char *in, +// unsigned int inlen, +// void *arg); + next_proto_select_cb_arg : Pointer; +//# endif + //* SRTP profiles we are willing to do from RFC 5764 */ + srtp_profiles : PSTACK_OF_SRTP_PROTECTION_PROFILE; +{$endif} + end; + +const + SSL_CTRL_OPTIONS = 32; + SSL_CTRL_CLEAR_OPTIONS = 77; + +function SSL_CTX_get_default_passwd_cb(ctx: PSSL_CTX): pem_password_cb; +begin + Result := _PSSL_CTX(ctx)^.default_passwd_callback; +end; + +function SSL_CTX_get_default_passwd_cb_userdata(ctx: PSSL_CTX): Pointer; +begin + Result := _PSSL_CTX(ctx)^.default_passwd_callback_userdata; +end; + +procedure SSL_CTX_set_default_passwd_cb(ctx: PSSL_CTX; cb: pem_password_cb); +begin + _PSSL_CTX(ctx)^.default_passwd_callback := cb; +end; + +procedure SSL_CTX_set_default_passwd_cb_userdata(ctx: PSSL_CTX; u: Pointer); +begin + _PSSL_CTX(ctx)^.default_passwd_callback_userdata := u; +end; + +//* Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value, +// * they cannot be used to clear bits. */ + +function SSL_CTX_set_options(ctx: PSSL_CTX; op: TIdC_LONG):TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, op, nil); +end; + +function SSL_CTX_clear_options(ctx : PSSL_CTX; op : TIdC_LONG):TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_OPTIONS,op,nil); +end; + +function SSL_CTX_get_options(ctx: PSSL_CTX) : TIdC_LONG; +begin + Result := SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS,0,nil); +end; + +function SSL_CTX_get_cert_store(const ctx: PSSL_CTX): PX509_STORE; +begin + Result := _PSSL_CTX(ctx)^.cert_store; +end; + +const + SSL_MAX_KRB5_PRINCIPAL_LENGTH = 256; + +type + PSESS_CERT = pointer; + _PSSL_SESSION = ^_SSL_SESSION; + _SSL_SESSION = record + ssl_version : TIdC_INT; // what ssl version session info is being kept in here? + // only really used in SSLv2 + key_arg_length: TIdC_UINT; + key_arg: Array[0..SSL_MAX_KEY_ARG_LENGTH-1] of Byte; + master_key_length: TIdC_INT; + master_key: Array[0..SSL_MAX_MASTER_KEY_LENGTH-1] of Byte; + // session_id - valid? + session_id_length: TIdC_UINT; + session_id: Array[0..SSL_MAX_SSL_SESSION_ID_LENGTH-1] of Byte; + // this is used to determine whether the session is being reused in + // the appropriate context. It is up to the application to set this, + // via SSL_new + sid_ctx_length: TIdC_UINT; + sid_ctx: array[0..SSL_MAX_SID_CTX_LENGTH-1] of Byte; + {$IFNDEF OPENSSL_NO_KRB5} + krb5_client_princ_len: TIdC_UINT; + krb5_client_princ: array[0..SSL_MAX_KRB5_PRINCIPAL_LENGTH-1] of Byte; + {$ENDIF} +{$ifndef OPENSSL_NO_PSK} + psk_identity_hint : PIdAnsiChar; + psk_identity : PIdAnsiChar; +{$endif} + not_resumable: TIdC_INT; + // The cert is the certificate used to establish this connection + sess_cert : PSESS_CERT; + + //* This is the cert for the other end. + // * On clients, it will be the same as sess_cert->peer_key->x509 + // * (the latter is not enough as sess_cert is not retained + // * in the external representation of sessions, see ssl_asn1.c). */ + peer : PX509; + //* when app_verify_callback accepts a session where the peer's certificate + // * is not ok, we must remember the error for session reuse: */ + verify_result : TIdC_LONG; //* only for servers */ + references : TIdC_INT; + timeout : TIdC_LONG; + time : TIdC_LONG; + compress_meth : TIdC_UINT; //* Need to lookup the method */ + + cipher : PSSL_CIPHER; + cipher_id : TIdC_ULONG; //* when ASN.1 loaded, this + // * needs to be used to load + // * the 'cipher' structure */ + ciphers : PSTACK_OF_SSL_CIPHER; //* shared ciphers? */ + ex_data : CRYPTO_EX_DATA; // application specific data */ + //* These are used to make removal of session-ids more + // * efficient and to implement a maximum cache size. */ + prev, next : PSSL_SESSION; + + {$IFNDEF OPENSSL_NO_TLSEXT} + tlsext_hostname : PIdAnsiChar; + {$IFDEF OPENSSL_NO_EC} + tlsext_ecpointformatlist_length : size_t; + tlsext_ecpointformatlist : PIdAnsiChar; //* peer's list */ + tlsext_ellipticcurvelist_length : size_t; + tlsext_ellipticcurvelist : PIdAnsiChar; //* peer's list */ + {$ENDIF} //* OPENSSL_NO_EC */ + + //* RFC4507 info */ + tlsext_tick : PIdAnsiChar;//* Session ticket */ + tlsext_ticklen : size_t;//* Session ticket length */ + tlsext_tick_lifetime_hint : TIdC_LONG;//* Session lifetime hint in seconds */ + {$ENDIF} +{$ifndef OPENSSL_NO_SRP} + srp_username : PIdAnsiChar; +{$endif} + end; + +function SSL_SESSION_get_protocol_version(const s: PSSL_SESSION): TIdC_INT; +begin + Result := _PSSL_SESSION(s).ssl_version; +end; + +function OPENSSL_init_ssl(opts: TIdC_UINT64; const settings: POPENSSL_INIT_SETTINGS): TIdC_INT; +begin + if opts and OPENSSL_INIT_LOAD_SSL_STRINGS <> 0 then + SSL_load_error_strings; + SSL_library_init; + Result := OPENSSL_init_crypto(opts,settings); +end; + +{/forward_compatibility} + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ssl3.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ssl3.h2pas new file mode 100644 index 000000000..5313af81d --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ssl3.h2pas @@ -0,0 +1,323 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ssl3; + +interface + +// Headers for OpenSSL 1.1.1 +// ssl3.h + + +uses + IdGlobal; + +const + (* + * Signalling cipher suite value from RFC 5746 + * (TLS_EMPTY_RENEGOTIATION_INFO_SCSV) + *) + SSL3_CK_SCSV = $030000FF; + + (* + * Signalling cipher suite value from draft-ietf-tls-downgrade-scsv-00 + * (TLS_FALLBACK_SCSV) + *) + SSL3_CK_FALLBACK_SCSV = $03005600; + + SSL3_CK_RSA_NULL_MD5 = $03000001; + SSL3_CK_RSA_NULL_SHA = $03000002; + SSL3_CK_RSA_RC4_40_MD5 = $03000003; + SSL3_CK_RSA_RC4_128_MD5 = $03000004; + SSL3_CK_RSA_RC4_128_SHA = $03000005; + SSL3_CK_RSA_RC2_40_MD5 = $03000006; + SSL3_CK_RSA_IDEA_128_SHA = $03000007; + SSL3_CK_RSA_DES_40_CBC_SHA = $03000008; + SSL3_CK_RSA_DES_64_CBC_SHA = $03000009; + SSL3_CK_RSA_DES_192_CBC3_SHA = $0300000A; + + SSL3_CK_DH_DSS_DES_40_CBC_SHA = $0300000B; + SSL3_CK_DH_DSS_DES_64_CBC_SHA = $0300000C; + SSL3_CK_DH_DSS_DES_192_CBC3_SHA = $0300000D; + SSL3_CK_DH_RSA_DES_40_CBC_SHA = $0300000E; + SSL3_CK_DH_RSA_DES_64_CBC_SHA = $0300000F; + SSL3_CK_DH_RSA_DES_192_CBC3_SHA = $03000010; + + SSL3_CK_DHE_DSS_DES_40_CBC_SHA = $03000011; + SSL3_CK_EDH_DSS_DES_40_CBC_SHA = SSL3_CK_DHE_DSS_DES_40_CBC_SHA; + SSL3_CK_DHE_DSS_DES_64_CBC_SHA = $03000012; + SSL3_CK_EDH_DSS_DES_64_CBC_SHA = SSL3_CK_DHE_DSS_DES_64_CBC_SHA; + SSL3_CK_DHE_DSS_DES_192_CBC3_SHA = $03000013; + SSL3_CK_EDH_DSS_DES_192_CBC3_SHA = SSL3_CK_DHE_DSS_DES_192_CBC3_SHA; + SSL3_CK_DHE_RSA_DES_40_CBC_SHA = $03000014; + SSL3_CK_EDH_RSA_DES_40_CBC_SHA = SSL3_CK_DHE_RSA_DES_40_CBC_SHA; + SSL3_CK_DHE_RSA_DES_64_CBC_SHA = $03000015; + SSL3_CK_EDH_RSA_DES_64_CBC_SHA = SSL3_CK_DHE_RSA_DES_64_CBC_SHA; + SSL3_CK_DHE_RSA_DES_192_CBC3_SHA = $03000016; + SSL3_CK_EDH_RSA_DES_192_CBC3_SHA = SSL3_CK_DHE_RSA_DES_192_CBC3_SHA; + + SSL3_CK_ADH_RC4_40_MD5 = $03000017; + SSL3_CK_ADH_RC4_128_MD5 = $03000018; + SSL3_CK_ADH_DES_40_CBC_SHA = $03000019; + SSL3_CK_ADH_DES_64_CBC_SHA = $0300001A; + SSL3_CK_ADH_DES_192_CBC_SHA = $0300001B; + + (* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] *) + SSL3_RFC_RSA_NULL_MD5 = AnsiString('TLS_RSA_WITH_NULL_MD5'); + SSL3_RFC_RSA_NULL_SHA = AnsiString('TLS_RSA_WITH_NULL_SHA'); + SSL3_RFC_RSA_DES_192_CBC3_SHA = AnsiString('TLS_RSA_WITH_3DES_EDE_CBC_SHA'); + SSL3_RFC_DHE_DSS_DES_192_CBC3_SHA = AnsiString('TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA'); + SSL3_RFC_DHE_RSA_DES_192_CBC3_SHA = AnsiString('TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA'); + SSL3_RFC_ADH_DES_192_CBC_SHA = AnsiString('TLS_DH_anon_WITH_3DES_EDE_CBC_SHA'); + SSL3_RFC_RSA_IDEA_128_SHA = AnsiString('TLS_RSA_WITH_IDEA_CBC_SHA'); + SSL3_RFC_RSA_RC4_128_MD5 = AnsiString('TLS_RSA_WITH_RC4_128_MD5'); + SSL3_RFC_RSA_RC4_128_SHA = AnsiString('TLS_RSA_WITH_RC4_128_SHA'); + SSL3_RFC_ADH_RC4_128_MD5 = AnsiString('TLS_DH_anon_WITH_RC4_128_MD5'); + + SSL3_TXT_RSA_NULL_MD5 = AnsiString('NULL-MD5'); + SSL3_TXT_RSA_NULL_SHA = AnsiString('NULL-SHA'); + SSL3_TXT_RSA_RC4_40_MD5 = AnsiString('EXP-RC4-MD5'); + SSL3_TXT_RSA_RC4_128_MD5 = AnsiString('RC4-MD5'); + SSL3_TXT_RSA_RC4_128_SHA = AnsiString('RC4-SHA'); + SSL3_TXT_RSA_RC2_40_MD5 = AnsiString('EXP-RC2-CBC-MD5'); + SSL3_TXT_RSA_IDEA_128_SHA = AnsiString('IDEA-CBC-SHA'); + SSL3_TXT_RSA_DES_40_CBC_SHA = AnsiString('EXP-DES-CBC-SHA'); + SSL3_TXT_RSA_DES_64_CBC_SHA = AnsiString('DES-CBC-SHA'); + SSL3_TXT_RSA_DES_192_CBC3_SHA = AnsiString('DES-CBC3-SHA'); + + SSL3_TXT_DH_DSS_DES_40_CBC_SHA = AnsiString('EXP-DH-DSS-DES-CBC-SHA'); + SSL3_TXT_DH_DSS_DES_64_CBC_SHA = AnsiString('DH-DSS-DES-CBC-SHA'); + SSL3_TXT_DH_DSS_DES_192_CBC3_SHA = AnsiString('DH-DSS-DES-CBC3-SHA'); + SSL3_TXT_DH_RSA_DES_40_CBC_SHA = AnsiString('EXP-DH-RSA-DES-CBC-SHA'); + SSL3_TXT_DH_RSA_DES_64_CBC_SHA = AnsiString('DH-RSA-DES-CBC-SHA'); + SSL3_TXT_DH_RSA_DES_192_CBC3_SHA = AnsiString('DH-RSA-DES-CBC3-SHA'); + + SSL3_TXT_DHE_DSS_DES_40_CBC_SHA = AnsiString('EXP-DHE-DSS-DES-CBC-SHA'); + SSL3_TXT_DHE_DSS_DES_64_CBC_SHA = AnsiString('DHE-DSS-DES-CBC-SHA'); + SSL3_TXT_DHE_DSS_DES_192_CBC3_SHA = AnsiString('DHE-DSS-DES-CBC3-SHA'); + SSL3_TXT_DHE_RSA_DES_40_CBC_SHA = AnsiString('EXP-DHE-RSA-DES-CBC-SHA'); + SSL3_TXT_DHE_RSA_DES_64_CBC_SHA = AnsiString('DHE-RSA-DES-CBC-SHA'); + SSL3_TXT_DHE_RSA_DES_192_CBC3_SHA = AnsiString('DHE-RSA-DES-CBC3-SHA'); + + (* + * This next block of six 'EDH' labels is for backward compatibility with + * older versions of OpenSSL. New code should use the six 'DHE' labels above + * instead: + *) + SSL3_TXT_EDH_DSS_DES_40_CBC_SHA = AnsiString('EXP-EDH-DSS-DES-CBC-SHA'); + SSL3_TXT_EDH_DSS_DES_64_CBC_SHA = AnsiString('EDH-DSS-DES-CBC-SHA'); + SSL3_TXT_EDH_DSS_DES_192_CBC3_SHA = AnsiString('EDH-DSS-DES-CBC3-SHA'); + SSL3_TXT_EDH_RSA_DES_40_CBC_SHA = AnsiString('EXP-EDH-RSA-DES-CBC-SHA'); + SSL3_TXT_EDH_RSA_DES_64_CBC_SHA = AnsiString('EDH-RSA-DES-CBC-SHA'); + SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA = AnsiString('EDH-RSA-DES-CBC3-SHA'); + + SSL3_TXT_ADH_RC4_40_MD5 = AnsiString('EXP-ADH-RC4-MD5'); + SSL3_TXT_ADH_RC4_128_MD5 = AnsiString('ADH-RC4-MD5'); + SSL3_TXT_ADH_DES_40_CBC_SHA = AnsiString('EXP-ADH-DES-CBC-SHA'); + SSL3_TXT_ADH_DES_64_CBC_SHA = AnsiString('ADH-DES-CBC-SHA'); + SSL3_TXT_ADH_DES_192_CBC_SHA = AnsiString('ADH-DES-CBC3-SHA'); + + SSL3_SSL_SESSION_ID_LENGTH = 32; + SSL3_MAX_SSL_SESSION_ID_LENGTH = 32; + + SSL3_MASTER_SECRET_SIZE = 48; + SSL3_RANDOM_SIZE = 32; + SSL3_SESSION_ID_SIZE = 32; + SSL3_RT_HEADER_LENGTH = 5; + + SSL3_HM_HEADER_LENGTH = 4; + + (* + * Some will argue that this increases memory footprint, but it's not + * actually true. Point is that malloc has to return at least 64-bit aligned + * pointers, meaning that allocating 5 bytes wastes 3 bytes in either case. + * Suggested pre-gaping simply moves these wasted bytes from the end of + * allocated region to its front, but makes data payload aligned, which + * improves performance:-) + *) + SSL3_ALIGN_PAYLOAD = 8; + + + (* + * This is the maximum MAC (digest) size used by the SSL library. Currently + * maximum of 20 is used by SHA1, but we reserve for future extension for + * 512-bit hashes. + *) + SSL3_RT_MAX_MD_SIZE = 64; + + (* + * Maximum block size used in all ciphersuites. Currently 16 for AES. + *) + SSL_RT_MAX_CIPHER_BLOCK_SIZE = 16; + SSL3_RT_MAX_EXTRA = 16384; + + (* Maximum plaintext length: defined by SSL/TLS standards *) + SSL3_RT_MAX_PLAIN_LENGTH = 16384; + (* Maximum compression overhead: defined by SSL/TLS standards *) + SSL3_RT_MAX_COMPRESSED_OVERHEAD = 1024; + + (* + * The standards give a maximum encryption overhead of 1024 bytes. In + * practice the value is lower than this. The overhead is the maximum number + * of padding bytes (256) plus the mac size. + *) + SSL3_RT_MAX_ENCRYPTED_OVERHEAD = 256 + SSL3_RT_MAX_MD_SIZE; + SSL3_RT_MAX_TLS13_ENCRYPTED_OVERHEAD = 256; + + (* + * OpenSSL currently only uses a padding length of at most one block so the + * send overhead is smaller. + *) + SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD = SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE; + + (* If compression isn't used don't include the compression overhead *) + SSL3_RT_MAX_COMPRESSED_LENGTH = SSL3_RT_MAX_PLAIN_LENGTH; +// SSL3_RT_MAX_COMPRESSED_LENGTH = (SSL3_RT_MAX_PLAIN_LENGTH + SSL3_RT_MAX_COMPRESSED_OVERHEAD); + + SSL3_RT_MAX_ENCRYPTED_LENGTH = SSL3_RT_MAX_ENCRYPTED_OVERHEAD + SSL3_RT_MAX_COMPRESSED_LENGTH; + SSL3_RT_MAX_TLS13_ENCRYPTED_LENGTH = SSL3_RT_MAX_PLAIN_LENGTH + SSL3_RT_MAX_TLS13_ENCRYPTED_OVERHEAD; + SSL3_RT_MAX_PACKET_SIZE = SSL3_RT_MAX_ENCRYPTED_LENGTH + SSL3_RT_HEADER_LENGTH; + + SSL3_MD_CLIENT_FINISHED_= TIdAnsiChar($43) + TIdAnsiChar($4C) + TIdAnsiChar($4E) + TIdAnsiChar($54); + SSL3_MD_SERVER_FINISHED_= TIdAnsiChar($53) + TIdAnsiChar($52) + TIdAnsiChar($56) + TIdAnsiChar($52); + + SSL3_VERSION = $0300; + SSL3_VERSION_MAJOR = $03; + SSL3_VERSION_MINOR = $00; + + SSL3_RT_CHANGE_CIPHER_SPEC = 20; + SSL3_RT_ALERT = 21; + SSL3_RT_HANDSHAKE = 22; + SSL3_RT_APPLICATION_DATA = 23; + DTLS1_RT_HEARTBEAT = 24; + + (* Pseudo content types to indicate additional parameters *) + TLS1_RT_CRYPTO = $1000; + TLS1_RT_CRYPTO_PREMASTER = TLS1_RT_CRYPTO or $1; + TLS1_RT_CRYPTO_CLIENT_RANDOM = TLS1_RT_CRYPTO or $2; + TLS1_RT_CRYPTO_SERVER_RANDOM = TLS1_RT_CRYPTO or $3; + TLS1_RT_CRYPTO_MASTER = TLS1_RT_CRYPTO or $4; + + TLS1_RT_CRYPTO_READ = $0000; + TLS1_RT_CRYPTO_WRITE = $0100; + TLS1_RT_CRYPTO_MAC = TLS1_RT_CRYPTO or $5; + TLS1_RT_CRYPTO_KEY = TLS1_RT_CRYPTO or $6; + TLS1_RT_CRYPTO_IV = TLS1_RT_CRYPTO or $7; + TLS1_RT_CRYPTO_FIXED_IV = TLS1_RT_CRYPTO or $8; + + (* Pseudo content types for SSL/TLS header info *) + SSL3_RT_HEADER = $100; + SSL3_RT_INNER_CONTENT_TYPE = $101; + + SSL3_AL_WARNING = 1; + SSL3_AL_FATAL = 2; + + SSL3_AD_CLOSE_NOTIFY = 0; + SSL3_AD_UNEXPECTED_MESSAGE = 10; (* fatal *) + SSL3_AD_BAD_RECORD_MAC = 20; (* fatal *) + SSL3_AD_DECOMPRESSION_FAILURE = 30; (* fatal *) + SSL3_AD_HANDSHAKE_FAILURE = 40; (* fatal *) + SSL3_AD_NO_CERTIFICATE = 41; + SSL3_AD_BAD_CERTIFICATE = 42; + SSL3_AD_UNSUPPORTED_CERTIFICATE = 43; + SSL3_AD_CERTIFICATE_REVOKED = 44; + SSL3_AD_CERTIFICATE_EXPIRED = 45; + SSL3_AD_CERTIFICATE_UNKNOWN = 46; + SSL3_AD_ILLEGAL_PARAMETER = 47; (* fatal *) + + TLS1_HB_REQUEST = 1; + TLS1_HB_RESPONSE = 2; + + SSL3_CT_RSA_SIGN = 1; + SSL3_CT_DSS_SIGN = 2; + SSL3_CT_RSA_FIXED_DH = 3; + SSL3_CT_DSS_FIXED_DH = 4; + SSL3_CT_RSA_EPHEMERAL_DH = 5; + SSL3_CT_DSS_EPHEMERAL_DH = 6; + SSL3_CT_FORTEZZA_DMS = 20; + + (* + * SSL3_CT_NUMBER is used to size arrays and it must be large enough to + * contain all of the cert types defined for *either* SSLv3 and TLSv1. + *) + SSL3_CT_NUMBER = 10; + + (* No longer used as of OpenSSL 1.1.1 *) + SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS = $0001; + + (* Removed from OpenSSL 1.1.0 *) + TLS1_FLAGS_TLS_PADDING_BUG = $0; + TLS1_FLAGS_SKIP_CERT_VERIFY = $0010; + + (* Set if we encrypt then mac instead of usual mac then encrypt *) + TLS1_FLAGS_ENCRYPT_THEN_MAC_READ = $0100; + TLS1_FLAGS_ENCRYPT_THEN_MAC = TLS1_FLAGS_ENCRYPT_THEN_MAC_READ; + + + (* Set if extended master secret extension received from peer *) + TLS1_FLAGS_RECEIVED_EXTMS = $0200; + + TLS1_FLAGS_ENCRYPT_THEN_MAC_WRITE = $0400; + + TLS1_FLAGS_STATELESS = $0800; + + SSL3_MT_HELLO_REQUEST = 0; + SSL3_MT_CLIENT_HELLO = 1; + SSL3_MT_SERVER_HELLO = 2; + SSL3_MT_NEWSESSION_TICKET = 4; + SSL3_MT_END_OF_EARLY_DATA = 5; + SSL3_MT_ENCRYPTED_EXTENSIONS = 8; + SSL3_MT_CERTIFICATE = 11; + SSL3_MT_SERVER_KEY_EXCHANGE = 12; + SSL3_MT_CERTIFICATE_REQUEST = 13; + SSL3_MT_SERVER_DONE = 14; + SSL3_MT_CERTIFICATE_VERIFY = 15; + SSL3_MT_CLIENT_KEY_EXCHANGE = 16; + SSL3_MT_FINISHED = 20; + SSL3_MT_CERTIFICATE_URL = 21; + SSL3_MT_CERTIFICATE_STATUS = 22; + SSL3_MT_SUPPLEMENTAL_DATA = 23; + SSL3_MT_KEY_UPDATE = 24; + SSL3_MT_NEXT_PROTO = 67; + SSL3_MT_MESSAGE_HASH = 254; + DTLS1_MT_HELLO_VERIFY_REQUEST = 3; + + (* Dummy message type for handling CCS like a normal handshake message *) + SSL3_MT_CHANGE_CIPHER_SPEC = $0101; + + SSL3_MT_CCS = 1; + + (* These are used when changing over to a new cipher *) + SSL3_CC_READ = $001; + SSL3_CC_WRITE = $002; + SSL3_CC_CLIENT = $010; + SSL3_CC_SERVER = $020; + SSL3_CC_EARLY = $040; + SSL3_CC_HANDSHAKE = $080; + SSL3_CC_APPLICATION = $100; + SSL3_CHANGE_CIPHER_CLIENT_WRITE = SSL3_CC_CLIENT or SSL3_CC_WRITE; + SSL3_CHANGE_CIPHER_SERVER_READ = SSL3_CC_SERVER or SSL3_CC_READ; + SSL3_CHANGE_CIPHER_CLIENT_READ = SSL3_CC_CLIENT or SSL3_CC_READ; + SSL3_CHANGE_CIPHER_SERVER_WRITE = SSL3_CC_SERVER or SSL3_CC_WRITE; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_sslerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_sslerr.h2pas new file mode 100644 index 000000000..474c0c77c --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_sslerr.h2pas @@ -0,0 +1,785 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_sslerr; + +interface + +// Headers for OpenSSL 1.1.1 +// sslerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +(* + * SSL function codes. + *) +const + SSL_F_ADD_CLIENT_KEY_SHARE_EXT = 438; + SSL_F_ADD_KEY_SHARE = 512; + SSL_F_BYTES_TO_CIPHER_LIST = 519; + SSL_F_CHECK_SUITEB_CIPHER_LIST = 331; + SSL_F_CIPHERSUITE_CB = 622; + SSL_F_CONSTRUCT_CA_NAMES = 552; + SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS = 553; + SSL_F_CONSTRUCT_STATEFUL_TICKET = 636; + SSL_F_CONSTRUCT_STATELESS_TICKET = 637; + SSL_F_CREATE_SYNTHETIC_MESSAGE_HASH = 539; + SSL_F_CREATE_TICKET_PREQUEL = 638; + SSL_F_CT_MOVE_SCTS = 345; + SSL_F_CT_STRICT = 349; + SSL_F_CUSTOM_EXT_ADD = 554; + SSL_F_CUSTOM_EXT_PARSE = 555; + SSL_F_D2I_SSL_SESSION = 103; + SSL_F_DANE_CTX_ENABLE = 347; + SSL_F_DANE_MTYPE_SET = 393; + SSL_F_DANE_TLSA_ADD = 394; + SSL_F_DERIVE_SECRET_KEY_AND_IV = 514; + SSL_F_DO_DTLS1_WRITE = 245; + SSL_F_DO_SSL3_WRITE = 104; + SSL_F_DTLS1_BUFFER_RECORD = 247; + SSL_F_DTLS1_CHECK_TIMEOUT_NUM = 318; + SSL_F_DTLS1_HEARTBEAT = 305; + SSL_F_DTLS1_HM_FRAGMENT_NEW = 623; + SSL_F_DTLS1_PREPROCESS_FRAGMENT = 288; + SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS = 424; + SSL_F_DTLS1_PROCESS_RECORD = 257; + SSL_F_DTLS1_READ_BYTES = 258; + SSL_F_DTLS1_READ_FAILED = 339; + SSL_F_DTLS1_RETRANSMIT_MESSAGE = 390; + SSL_F_DTLS1_WRITE_APP_DATA_BYTES = 268; + SSL_F_DTLS1_WRITE_BYTES = 545; + SSL_F_DTLSV1_LISTEN = 350; + SSL_F_DTLS_CONSTRUCT_CHANGE_CIPHER_SPEC = 371; + SSL_F_DTLS_CONSTRUCT_HELLO_VERIFY_REQUEST = 385; + SSL_F_DTLS_GET_REASSEMBLED_MESSAGE = 370; + SSL_F_DTLS_PROCESS_HELLO_VERIFY = 386; + SSL_F_DTLS_RECORD_LAYER_NEW = 635; + SSL_F_DTLS_WAIT_FOR_DRY = 592; + SSL_F_EARLY_DATA_COUNT_OK = 532; + SSL_F_FINAL_EARLY_DATA = 556; + SSL_F_FINAL_EC_PT_FORMATS = 485; + SSL_F_FINAL_EMS = 486; + SSL_F_FINAL_KEY_SHARE = 503; + SSL_F_FINAL_MAXFRAGMENTLEN = 557; + SSL_F_FINAL_RENEGOTIATE = 483; + SSL_F_FINAL_SERVER_NAME = 558; + SSL_F_FINAL_SIG_ALGS = 497; + SSL_F_GET_CERT_VERIFY_TBS_DATA = 588; + SSL_F_NSS_KEYLOG_INT = 500; + SSL_F_OPENSSL_INIT_SSL = 342; + SSL_F_OSSL_STATEM_CLIENT13_READ_TRANSITION = 436; + SSL_F_OSSL_STATEM_CLIENT13_WRITE_TRANSITION = 598; + SSL_F_OSSL_STATEM_CLIENT_CONSTRUCT_MESSAGE = 430; + SSL_F_OSSL_STATEM_CLIENT_POST_PROCESS_MESSAGE = 593; + SSL_F_OSSL_STATEM_CLIENT_PROCESS_MESSAGE = 594; + SSL_F_OSSL_STATEM_CLIENT_READ_TRANSITION = 417; + SSL_F_OSSL_STATEM_CLIENT_WRITE_TRANSITION = 599; + SSL_F_OSSL_STATEM_SERVER13_READ_TRANSITION = 437; + SSL_F_OSSL_STATEM_SERVER13_WRITE_TRANSITION = 600; + SSL_F_OSSL_STATEM_SERVER_CONSTRUCT_MESSAGE = 431; + SSL_F_OSSL_STATEM_SERVER_POST_PROCESS_MESSAGE = 601; + SSL_F_OSSL_STATEM_SERVER_POST_WORK = 602; + SSL_F_OSSL_STATEM_SERVER_PROCESS_MESSAGE = 603; + SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION = 418; + SSL_F_OSSL_STATEM_SERVER_WRITE_TRANSITION = 604; + SSL_F_PARSE_CA_NAMES = 541; + SSL_F_PITEM_NEW = 624; + SSL_F_PQUEUE_NEW = 625; + SSL_F_PROCESS_KEY_SHARE_EXT = 439; + SSL_F_READ_STATE_MACHINE = 352; + SSL_F_SET_CLIENT_CIPHERSUITE = 540; + SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET = 595; + SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET = 589; + SSL_F_SRP_VERIFY_SERVER_PARAM = 596; + SSL_F_SSL3_CHANGE_CIPHER_STATE = 129; + SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM = 130; + SSL_F_SSL3_CTRL = 213; + SSL_F_SSL3_CTX_CTRL = 133; + SSL_F_SSL3_DIGEST_CACHED_RECORDS = 293; + SSL_F_SSL3_DO_CHANGE_CIPHER_SPEC = 292; + SSL_F_SSL3_ENC = 608; + SSL_F_SSL3_FINAL_FINISH_MAC = 285; + SSL_F_SSL3_FINISH_MAC = 587; + SSL_F_SSL3_GENERATE_KEY_BLOCK = 238; + SSL_F_SSL3_GENERATE_MASTER_SECRET = 388; + SSL_F_SSL3_GET_RECORD = 143; + SSL_F_SSL3_INIT_FINISHED_MAC = 397; + SSL_F_SSL3_OUTPUT_CERT_CHAIN = 147; + SSL_F_SSL3_READ_BYTES = 148; + SSL_F_SSL3_READ_N = 149; + SSL_F_SSL3_SETUP_KEY_BLOCK = 157; + SSL_F_SSL3_SETUP_READ_BUFFER = 156; + SSL_F_SSL3_SETUP_WRITE_BUFFER = 291; + SSL_F_SSL3_WRITE_BYTES = 158; + SSL_F_SSL3_WRITE_PENDING = 159; + SSL_F_SSL_ADD_CERT_CHAIN = 316; + SSL_F_SSL_ADD_CERT_TO_BUF = 319; + SSL_F_SSL_ADD_CERT_TO_WPACKET = 493; + SSL_F_SSL_ADD_CLIENTHELLO_RENEGOTIATE_EXT = 298; + SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT = 277; + SSL_F_SSL_ADD_CLIENTHELLO_USE_SRTP_EXT = 307; + SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK = 215; + SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK = 216; + SSL_F_SSL_ADD_SERVERHELLO_RENEGOTIATE_EXT = 299; + SSL_F_SSL_ADD_SERVERHELLO_TLSEXT = 278; + SSL_F_SSL_ADD_SERVERHELLO_USE_SRTP_EXT = 308; + SSL_F_SSL_BAD_METHOD = 160; + SSL_F_SSL_BUILD_CERT_CHAIN = 332; + SSL_F_SSL_BYTES_TO_CIPHER_LIST = 161; + SSL_F_SSL_CACHE_CIPHERLIST = 520; + SSL_F_SSL_CERT_ADD0_CHAIN_CERT = 346; + SSL_F_SSL_CERT_DUP = 221; + SSL_F_SSL_CERT_NEW = 162; + SSL_F_SSL_CERT_SET0_CHAIN = 340; + SSL_F_SSL_CHECK_PRIVATE_KEY = 163; + SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT = 280; + SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO = 606; + SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG = 279; + SSL_F_SSL_CHOOSE_CLIENT_VERSION = 607; + SSL_F_SSL_CIPHER_DESCRIPTION = 626; + SSL_F_SSL_CIPHER_LIST_TO_BYTES = 425; + SSL_F_SSL_CIPHER_PROCESS_RULESTR = 230; + SSL_F_SSL_CIPHER_STRENGTH_SORT = 231; + SSL_F_SSL_CLEAR = 164; + SSL_F_SSL_CLIENT_HELLO_GET1_EXTENSIONS_PRESENT = 627; + SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD = 165; + SSL_F_SSL_CONF_CMD = 334; + SSL_F_SSL_CREATE_CIPHER_LIST = 166; + SSL_F_SSL_CTRL = 232; + SSL_F_SSL_CTX_CHECK_PRIVATE_KEY = 168; + SSL_F_SSL_CTX_ENABLE_CT = 398; + SSL_F_SSL_CTX_MAKE_PROFILES = 309; + SSL_F_SSL_CTX_NEW = 169; + SSL_F_SSL_CTX_SET_ALPN_PROTOS = 343; + SSL_F_SSL_CTX_SET_CIPHER_LIST = 269; + SSL_F_SSL_CTX_SET_CLIENT_CERT_ENGINE = 290; + SSL_F_SSL_CTX_SET_CT_VALIDATION_CALLBACK = 396; + SSL_F_SSL_CTX_SET_SESSION_ID_CONTEXT = 219; + SSL_F_SSL_CTX_SET_SSL_VERSION = 170; + SSL_F_SSL_CTX_SET_TLSEXT_MAX_FRAGMENT_LENGTH = 551; + SSL_F_SSL_CTX_USE_CERTIFICATE = 171; + SSL_F_SSL_CTX_USE_CERTIFICATE_ASN1 = 172; + SSL_F_SSL_CTX_USE_CERTIFICATE_FILE = 173; + SSL_F_SSL_CTX_USE_PRIVATEKEY = 174; + SSL_F_SSL_CTX_USE_PRIVATEKEY_ASN1 = 175; + SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE = 176; + SSL_F_SSL_CTX_USE_PSK_IDENTITY_HINT = 272; + SSL_F_SSL_CTX_USE_RSAPRIVATEKEY = 177; + SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_ASN1 = 178; + SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_FILE = 179; + SSL_F_SSL_CTX_USE_SERVERINFO = 336; + SSL_F_SSL_CTX_USE_SERVERINFO_EX = 543; + SSL_F_SSL_CTX_USE_SERVERINFO_FILE = 337; + SSL_F_SSL_DANE_DUP = 403; + SSL_F_SSL_DANE_ENABLE = 395; + SSL_F_SSL_DERIVE = 590; + SSL_F_SSL_DO_CONFIG = 391; + SSL_F_SSL_DO_HANDSHAKE = 180; + SSL_F_SSL_DUP_CA_LIST = 408; + SSL_F_SSL_ENABLE_CT = 402; + SSL_F_SSL_GENERATE_PKEY_GROUP = 559; + SSL_F_SSL_GENERATE_SESSION_ID = 547; + SSL_F_SSL_GET_NEW_SESSION = 181; + SSL_F_SSL_GET_PREV_SESSION = 217; + SSL_F_SSL_GET_SERVER_CERT_INDEX = 322; + SSL_F_SSL_GET_SIGN_PKEY = 183; + SSL_F_SSL_HANDSHAKE_HASH = 560; + SSL_F_SSL_INIT_WBIO_BUFFER = 184; + SSL_F_SSL_KEY_UPDATE = 515; + SSL_F_SSL_LOAD_CLIENT_CA_FILE = 185; + SSL_F_SSL_LOG_MASTER_SECRET = 498; + SSL_F_SSL_LOG_RSA_CLIENT_KEY_EXCHANGE = 499; + SSL_F_SSL_MODULE_INIT = 392; + SSL_F_SSL_NEW = 186; + SSL_F_SSL_NEXT_PROTO_VALIDATE = 565; + SSL_F_SSL_PARSE_CLIENTHELLO_RENEGOTIATE_EXT = 300; + SSL_F_SSL_PARSE_CLIENTHELLO_TLSEXT = 302; + SSL_F_SSL_PARSE_CLIENTHELLO_USE_SRTP_EXT = 310; + SSL_F_SSL_PARSE_SERVERHELLO_RENEGOTIATE_EXT = 301; + SSL_F_SSL_PARSE_SERVERHELLO_TLSEXT = 303; + SSL_F_SSL_PARSE_SERVERHELLO_USE_SRTP_EXT = 311; + SSL_F_SSL_PEEK = 270; + SSL_F_SSL_PEEK_EX = 432; + SSL_F_SSL_PEEK_INTERNAL = 522; + SSL_F_SSL_READ = 223; + SSL_F_SSL_READ_EARLY_DATA = 529; + SSL_F_SSL_READ_EX = 434; + SSL_F_SSL_READ_INTERNAL = 523; + SSL_F_SSL_RENEGOTIATE = 516; + SSL_F_SSL_RENEGOTIATE_ABBREVIATED = 546; + SSL_F_SSL_SCAN_CLIENTHELLO_TLSEXT = 320; + SSL_F_SSL_SCAN_SERVERHELLO_TLSEXT = 321; + SSL_F_SSL_SESSION_DUP = 348; + SSL_F_SSL_SESSION_NEW = 189; + SSL_F_SSL_SESSION_PRINT_FP = 190; + SSL_F_SSL_SESSION_SET1_ID = 423; + SSL_F_SSL_SESSION_SET1_ID_CONTEXT = 312; + SSL_F_SSL_SET_ALPN_PROTOS = 344; + SSL_F_SSL_SET_CERT = 191; + SSL_F_SSL_SET_CERT_AND_KEY = 621; + SSL_F_SSL_SET_CIPHER_LIST = 271; + SSL_F_SSL_SET_CT_VALIDATION_CALLBACK = 399; + SSL_F_SSL_SET_FD = 192; + SSL_F_SSL_SET_PKEY = 193; + SSL_F_SSL_SET_RFD = 194; + SSL_F_SSL_SET_SESSION = 195; + SSL_F_SSL_SET_SESSION_ID_CONTEXT = 218; + SSL_F_SSL_SET_SESSION_TICKET_EXT = 294; + SSL_F_SSL_SET_TLSEXT_MAX_FRAGMENT_LENGTH = 550; + SSL_F_SSL_SET_WFD = 196; + SSL_F_SSL_SHUTDOWN = 224; + SSL_F_SSL_SRP_CTX_INIT = 313; + SSL_F_SSL_START_ASYNC_JOB = 389; + SSL_F_SSL_UNDEFINED_FUNCTION = 197; + SSL_F_SSL_UNDEFINED_VOID_FUNCTION = 244; + SSL_F_SSL_USE_CERTIFICATE = 198; + SSL_F_SSL_USE_CERTIFICATE_ASN1 = 199; + SSL_F_SSL_USE_CERTIFICATE_FILE = 200; + SSL_F_SSL_USE_PRIVATEKEY = 201; + SSL_F_SSL_USE_PRIVATEKEY_ASN1 = 202; + SSL_F_SSL_USE_PRIVATEKEY_FILE = 203; + SSL_F_SSL_USE_PSK_IDENTITY_HINT = 273; + SSL_F_SSL_USE_RSAPRIVATEKEY = 204; + SSL_F_SSL_USE_RSAPRIVATEKEY_ASN1 = 205; + SSL_F_SSL_USE_RSAPRIVATEKEY_FILE = 206; + SSL_F_SSL_VALIDATE_CT = 400; + SSL_F_SSL_VERIFY_CERT_CHAIN = 207; + SSL_F_SSL_VERIFY_CLIENT_POST_HANDSHAKE = 616; + SSL_F_SSL_WRITE = 208; + SSL_F_SSL_WRITE_EARLY_DATA = 526; + SSL_F_SSL_WRITE_EARLY_FINISH = 527; + SSL_F_SSL_WRITE_EX = 433; + SSL_F_SSL_WRITE_INTERNAL = 524; + SSL_F_STATE_MACHINE = 353; + SSL_F_TLS12_CHECK_PEER_SIGALG = 333; + SSL_F_TLS12_COPY_SIGALGS = 533; + SSL_F_TLS13_CHANGE_CIPHER_STATE = 440; + SSL_F_TLS13_ENC = 609; + SSL_F_TLS13_FINAL_FINISH_MAC = 605; + SSL_F_TLS13_GENERATE_SECRET = 591; + SSL_F_TLS13_HKDF_EXPAND = 561; + SSL_F_TLS13_RESTORE_HANDSHAKE_DIGEST_FOR_PHA = 617; + SSL_F_TLS13_SAVE_HANDSHAKE_DIGEST_FOR_PHA = 618; + SSL_F_TLS13_SETUP_KEY_BLOCK = 441; + SSL_F_TLS1_CHANGE_CIPHER_STATE = 209; + SSL_F_TLS1_CHECK_DUPLICATE_EXTENSIONS = 341; + SSL_F_TLS1_ENC = 401; + SSL_F_TLS1_EXPORT_KEYING_MATERIAL = 314; + SSL_F_TLS1_GET_CURVELIST = 338; + SSL_F_TLS1_PRF = 284; + SSL_F_TLS1_SAVE_U16 = 628; + SSL_F_TLS1_SETUP_KEY_BLOCK = 211; + SSL_F_TLS1_SET_GROUPS = 629; + SSL_F_TLS1_SET_RAW_SIGALGS = 630; + SSL_F_TLS1_SET_SERVER_SIGALGS = 335; + SSL_F_TLS1_SET_SHARED_SIGALGS = 631; + SSL_F_TLS1_SET_SIGALGS = 632; + SSL_F_TLS_CHOOSE_SIGALG = 513; + SSL_F_TLS_CLIENT_KEY_EXCHANGE_POST_WORK = 354; + SSL_F_TLS_COLLECT_EXTENSIONS = 435; + SSL_F_TLS_CONSTRUCT_CERTIFICATE_AUTHORITIES = 542; + SSL_F_TLS_CONSTRUCT_CERTIFICATE_REQUEST = 372; + SSL_F_TLS_CONSTRUCT_CERT_STATUS = 429; + SSL_F_TLS_CONSTRUCT_CERT_STATUS_BODY = 494; + SSL_F_TLS_CONSTRUCT_CERT_VERIFY = 496; + SSL_F_TLS_CONSTRUCT_CHANGE_CIPHER_SPEC = 427; + SSL_F_TLS_CONSTRUCT_CKE_DHE = 404; + SSL_F_TLS_CONSTRUCT_CKE_ECDHE = 405; + SSL_F_TLS_CONSTRUCT_CKE_GOST = 406; + SSL_F_TLS_CONSTRUCT_CKE_PSK_PREAMBLE = 407; + SSL_F_TLS_CONSTRUCT_CKE_RSA = 409; + SSL_F_TLS_CONSTRUCT_CKE_SRP = 410; + SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE = 484; + SSL_F_TLS_CONSTRUCT_CLIENT_HELLO = 487; + SSL_F_TLS_CONSTRUCT_CLIENT_KEY_EXCHANGE = 488; + SSL_F_TLS_CONSTRUCT_CLIENT_VERIFY = 489; + SSL_F_TLS_CONSTRUCT_CTOS_ALPN = 466; + SSL_F_TLS_CONSTRUCT_CTOS_CERTIFICATE = 355; + SSL_F_TLS_CONSTRUCT_CTOS_COOKIE = 535; + SSL_F_TLS_CONSTRUCT_CTOS_EARLY_DATA = 530; + SSL_F_TLS_CONSTRUCT_CTOS_EC_PT_FORMATS = 467; + SSL_F_TLS_CONSTRUCT_CTOS_EMS = 468; + SSL_F_TLS_CONSTRUCT_CTOS_ETM = 469; + SSL_F_TLS_CONSTRUCT_CTOS_HELLO = 356; + SSL_F_TLS_CONSTRUCT_CTOS_KEY_EXCHANGE = 357; + SSL_F_TLS_CONSTRUCT_CTOS_KEY_SHARE = 470; + SSL_F_TLS_CONSTRUCT_CTOS_MAXFRAGMENTLEN = 549; + SSL_F_TLS_CONSTRUCT_CTOS_NPN = 471; + SSL_F_TLS_CONSTRUCT_CTOS_PADDING = 472; + SSL_F_TLS_CONSTRUCT_CTOS_POST_HANDSHAKE_AUTH = 619; + SSL_F_TLS_CONSTRUCT_CTOS_PSK = 501; + SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES = 509; + SSL_F_TLS_CONSTRUCT_CTOS_RENEGOTIATE = 473; + SSL_F_TLS_CONSTRUCT_CTOS_SCT = 474; + SSL_F_TLS_CONSTRUCT_CTOS_SERVER_NAME = 475; + SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET = 476; + SSL_F_TLS_CONSTRUCT_CTOS_SIG_ALGS = 477; + SSL_F_TLS_CONSTRUCT_CTOS_SRP = 478; + SSL_F_TLS_CONSTRUCT_CTOS_STATUS_REQUEST = 479; + SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS = 480; + SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_VERSIONS = 481; + SSL_F_TLS_CONSTRUCT_CTOS_USE_SRTP = 482; + SSL_F_TLS_CONSTRUCT_CTOS_VERIFY = 358; + SSL_F_TLS_CONSTRUCT_ENCRYPTED_EXTENSIONS = 443; + SSL_F_TLS_CONSTRUCT_END_OF_EARLY_DATA = 536; + SSL_F_TLS_CONSTRUCT_EXTENSIONS = 447; + SSL_F_TLS_CONSTRUCT_FINISHED = 359; + SSL_F_TLS_CONSTRUCT_HELLO_REQUEST = 373; + SSL_F_TLS_CONSTRUCT_HELLO_RETRY_REQUEST = 510; + SSL_F_TLS_CONSTRUCT_KEY_UPDATE = 517; + SSL_F_TLS_CONSTRUCT_NEW_SESSION_TICKET = 428; + SSL_F_TLS_CONSTRUCT_NEXT_PROTO = 426; + SSL_F_TLS_CONSTRUCT_SERVER_CERTIFICATE = 490; + SSL_F_TLS_CONSTRUCT_SERVER_HELLO = 491; + SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE = 492; + SSL_F_TLS_CONSTRUCT_STOC_ALPN = 451; + SSL_F_TLS_CONSTRUCT_STOC_CERTIFICATE = 374; + SSL_F_TLS_CONSTRUCT_STOC_COOKIE = 613; + SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG = 452; + SSL_F_TLS_CONSTRUCT_STOC_DONE = 375; + SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA = 531; + SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA_INFO = 525; + SSL_F_TLS_CONSTRUCT_STOC_EC_PT_FORMATS = 453; + SSL_F_TLS_CONSTRUCT_STOC_EMS = 454; + SSL_F_TLS_CONSTRUCT_STOC_ETM = 455; + SSL_F_TLS_CONSTRUCT_STOC_HELLO = 376; + SSL_F_TLS_CONSTRUCT_STOC_KEY_EXCHANGE = 377; + SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE = 456; + SSL_F_TLS_CONSTRUCT_STOC_MAXFRAGMENTLEN = 548; + SSL_F_TLS_CONSTRUCT_STOC_NEXT_PROTO_NEG = 457; + SSL_F_TLS_CONSTRUCT_STOC_PSK = 504; + SSL_F_TLS_CONSTRUCT_STOC_RENEGOTIATE = 458; + SSL_F_TLS_CONSTRUCT_STOC_SERVER_NAME = 459; + SSL_F_TLS_CONSTRUCT_STOC_SESSION_TICKET = 460; + SSL_F_TLS_CONSTRUCT_STOC_STATUS_REQUEST = 461; + SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_GROUPS = 544; + SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_VERSIONS = 611; + SSL_F_TLS_CONSTRUCT_STOC_USE_SRTP = 462; + SSL_F_TLS_EARLY_POST_PROCESS_CLIENT_HELLO = 521; + SSL_F_TLS_FINISH_HANDSHAKE = 597; + SSL_F_TLS_GET_MESSAGE_BODY = 351; + SSL_F_TLS_GET_MESSAGE_HEADER = 387; + SSL_F_TLS_HANDLE_ALPN = 562; + SSL_F_TLS_HANDLE_STATUS_REQUEST = 563; + SSL_F_TLS_PARSE_CERTIFICATE_AUTHORITIES = 566; + SSL_F_TLS_PARSE_CLIENTHELLO_TLSEXT = 449; + SSL_F_TLS_PARSE_CTOS_ALPN = 567; + SSL_F_TLS_PARSE_CTOS_COOKIE = 614; + SSL_F_TLS_PARSE_CTOS_EARLY_DATA = 568; + SSL_F_TLS_PARSE_CTOS_EC_PT_FORMATS = 569; + SSL_F_TLS_PARSE_CTOS_EMS = 570; + SSL_F_TLS_PARSE_CTOS_KEY_SHARE = 463; + SSL_F_TLS_PARSE_CTOS_MAXFRAGMENTLEN = 571; + SSL_F_TLS_PARSE_CTOS_POST_HANDSHAKE_AUTH = 620; + SSL_F_TLS_PARSE_CTOS_PSK = 505; + SSL_F_TLS_PARSE_CTOS_PSK_KEX_MODES = 572; + SSL_F_TLS_PARSE_CTOS_RENEGOTIATE = 464; + SSL_F_TLS_PARSE_CTOS_SERVER_NAME = 573; + SSL_F_TLS_PARSE_CTOS_SESSION_TICKET = 574; + SSL_F_TLS_PARSE_CTOS_SIG_ALGS = 575; + SSL_F_TLS_PARSE_CTOS_SIG_ALGS_CERT = 615; + SSL_F_TLS_PARSE_CTOS_SRP = 576; + SSL_F_TLS_PARSE_CTOS_STATUS_REQUEST = 577; + SSL_F_TLS_PARSE_CTOS_SUPPORTED_GROUPS = 578; + SSL_F_TLS_PARSE_CTOS_USE_SRTP = 465; + SSL_F_TLS_PARSE_STOC_ALPN = 579; + SSL_F_TLS_PARSE_STOC_COOKIE = 534; + SSL_F_TLS_PARSE_STOC_EARLY_DATA = 538; + SSL_F_TLS_PARSE_STOC_EARLY_DATA_INFO = 528; + SSL_F_TLS_PARSE_STOC_EC_PT_FORMATS = 580; + SSL_F_TLS_PARSE_STOC_KEY_SHARE = 445; + SSL_F_TLS_PARSE_STOC_MAXFRAGMENTLEN = 581; + SSL_F_TLS_PARSE_STOC_NPN = 582; + SSL_F_TLS_PARSE_STOC_PSK = 502; + SSL_F_TLS_PARSE_STOC_RENEGOTIATE = 448; + SSL_F_TLS_PARSE_STOC_SCT = 564; + SSL_F_TLS_PARSE_STOC_SERVER_NAME = 583; + SSL_F_TLS_PARSE_STOC_SESSION_TICKET = 584; + SSL_F_TLS_PARSE_STOC_STATUS_REQUEST = 585; + SSL_F_TLS_PARSE_STOC_SUPPORTED_VERSIONS = 612; + SSL_F_TLS_PARSE_STOC_USE_SRTP = 446; + SSL_F_TLS_POST_PROCESS_CLIENT_HELLO = 378; + SSL_F_TLS_POST_PROCESS_CLIENT_KEY_EXCHANGE = 384; + SSL_F_TLS_PREPARE_CLIENT_CERTIFICATE = 360; + SSL_F_TLS_PROCESS_AS_HELLO_RETRY_REQUEST = 610; + SSL_F_TLS_PROCESS_CERTIFICATE_REQUEST = 361; + SSL_F_TLS_PROCESS_CERT_STATUS = 362; + SSL_F_TLS_PROCESS_CERT_STATUS_BODY = 495; + SSL_F_TLS_PROCESS_CERT_VERIFY = 379; + SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC = 363; + SSL_F_TLS_PROCESS_CKE_DHE = 411; + SSL_F_TLS_PROCESS_CKE_ECDHE = 412; + SSL_F_TLS_PROCESS_CKE_GOST = 413; + SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE = 414; + SSL_F_TLS_PROCESS_CKE_RSA = 415; + SSL_F_TLS_PROCESS_CKE_SRP = 416; + SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE = 380; + SSL_F_TLS_PROCESS_CLIENT_HELLO = 381; + SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE = 382; + SSL_F_TLS_PROCESS_ENCRYPTED_EXTENSIONS = 444; + SSL_F_TLS_PROCESS_END_OF_EARLY_DATA = 537; + SSL_F_TLS_PROCESS_FINISHED = 364; + SSL_F_TLS_PROCESS_HELLO_REQ = 507; + SSL_F_TLS_PROCESS_HELLO_RETRY_REQUEST = 511; + SSL_F_TLS_PROCESS_INITIAL_SERVER_FLIGHT = 442; + SSL_F_TLS_PROCESS_KEY_EXCHANGE = 365; + SSL_F_TLS_PROCESS_KEY_UPDATE = 518; + SSL_F_TLS_PROCESS_NEW_SESSION_TICKET = 366; + SSL_F_TLS_PROCESS_NEXT_PROTO = 383; + SSL_F_TLS_PROCESS_SERVER_CERTIFICATE = 367; + SSL_F_TLS_PROCESS_SERVER_DONE = 368; + SSL_F_TLS_PROCESS_SERVER_HELLO = 369; + SSL_F_TLS_PROCESS_SKE_DHE = 419; + SSL_F_TLS_PROCESS_SKE_ECDHE = 420; + SSL_F_TLS_PROCESS_SKE_PSK_PREAMBLE = 421; + SSL_F_TLS_PROCESS_SKE_SRP = 422; + SSL_F_TLS_PSK_DO_BINDER = 506; + SSL_F_TLS_SCAN_CLIENTHELLO_TLSEXT = 450; + SSL_F_TLS_SETUP_HANDSHAKE = 508; + SSL_F_USE_CERTIFICATE_CHAIN_FILE = 220; + SSL_F_WPACKET_INTERN_INIT_LEN = 633; + SSL_F_WPACKET_START_SUB_PACKET_LEN__ = 634; + SSL_F_WRITE_STATE_MACHINE = 586; + SSL_R_APPLICATION_DATA_AFTER_CLOSE_NOTIFY = 291; + SSL_R_APP_DATA_IN_HANDSHAKE = 100; + SSL_R_ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT = 272; + SSL_R_AT_LEAST_TLS_1_0_NEEDED_IN_FIPS_MODE = 143; + SSL_R_AT_LEAST_TLS_1_2_NEEDED_IN_SUITEB_MODE = 158; + SSL_R_BAD_CHANGE_CIPHER_SPEC = 103; + SSL_R_BAD_CIPHER = 186; + SSL_R_BAD_DATA = 390; + SSL_R_BAD_DATA_RETURNED_BY_CALLBACK = 106; + SSL_R_BAD_DECOMPRESSION = 107; + SSL_R_BAD_DH_VALUE = 102; + SSL_R_BAD_DIGEST_LENGTH = 111; + SSL_R_BAD_EARLY_DATA = 233; + SSL_R_BAD_ECC_CERT = 304; + SSL_R_BAD_ECPOINT = 306; + SSL_R_BAD_EXTENSION = 110; + SSL_R_BAD_HANDSHAKE_LENGTH = 332; + SSL_R_BAD_HANDSHAKE_STATE = 236; + SSL_R_BAD_HELLO_REQUEST = 105; + SSL_R_BAD_HRR_VERSION = 263; + SSL_R_BAD_KEY_SHARE = 108; + SSL_R_BAD_KEY_UPDATE = 122; + SSL_R_BAD_LEGACY_VERSION = 292; + SSL_R_BAD_LENGTH = 271; + SSL_R_BAD_PACKET = 240; + SSL_R_BAD_PACKET_LENGTH = 115; + SSL_R_BAD_PROTOCOL_VERSION_NUMBER = 116; + SSL_R_BAD_PSK = 219; + SSL_R_BAD_PSK_IDENTITY = 114; + SSL_R_BAD_RECORD_TYPE = 443; + SSL_R_BAD_RSA_ENCRYPT = 119; + SSL_R_BAD_SIGNATURE = 123; + SSL_R_BAD_SRP_A_LENGTH = 347; + SSL_R_BAD_SRP_PARAMETERS = 371; + SSL_R_BAD_SRTP_MKI_VALUE = 352; + SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST = 353; + SSL_R_BAD_SSL_FILETYPE = 124; + SSL_R_BAD_VALUE = 384; + SSL_R_BAD_WRITE_RETRY = 127; + SSL_R_BINDER_DOES_NOT_VERIFY = 253; + SSL_R_BIO_NOT_SET = 128; + SSL_R_BLOCK_CIPHER_PAD_IS_WRONG = 129; + SSL_R_BN_LIB = 130; + SSL_R_CALLBACK_FAILED = 234; + SSL_R_CANNOT_CHANGE_CIPHER = 109; + SSL_R_CA_DN_LENGTH_MISMATCH = 131; + SSL_R_CA_KEY_TOO_SMALL = 397; + SSL_R_CA_MD_TOO_WEAK = 398; + SSL_R_CCS_RECEIVED_EARLY = 133; + SSL_R_CERTIFICATE_VERIFY_FAILED = 134; + SSL_R_CERT_CB_ERROR = 377; + SSL_R_CERT_LENGTH_MISMATCH = 135; + SSL_R_CIPHERSUITE_DIGEST_HAS_CHANGED = 218; + SSL_R_CIPHER_CODE_WRONG_LENGTH = 137; + SSL_R_CIPHER_OR_HASH_UNAVAILABLE = 138; + SSL_R_CLIENTHELLO_TLSEXT = 226; + SSL_R_COMPRESSED_LENGTH_TOO_LONG = 140; + SSL_R_COMPRESSION_DISABLED = 343; + SSL_R_COMPRESSION_FAILURE = 141; + SSL_R_COMPRESSION_ID_NOT_WITHIN_PRIVATE_RANGE = 307; + SSL_R_COMPRESSION_LIBRARY_ERROR = 142; + SSL_R_CONNECTION_TYPE_NOT_SET = 144; + SSL_R_CONTEXT_NOT_DANE_ENABLED = 167; + SSL_R_COOKIE_GEN_CALLBACK_FAILURE = 400; + SSL_R_COOKIE_MISMATCH = 308; + SSL_R_CUSTOM_EXT_HANDLER_ALREADY_INSTALLED = 206; + SSL_R_DANE_ALREADY_ENABLED = 172; + SSL_R_DANE_CANNOT_OVERRIDE_MTYPE_FULL = 173; + SSL_R_DANE_NOT_ENABLED = 175; + SSL_R_DANE_TLSA_BAD_CERTIFICATE = 180; + SSL_R_DANE_TLSA_BAD_CERTIFICATE_USAGE = 184; + SSL_R_DANE_TLSA_BAD_DATA_LENGTH = 189; + SSL_R_DANE_TLSA_BAD_DIGEST_LENGTH = 192; + SSL_R_DANE_TLSA_BAD_MATCHING_TYPE = 200; + SSL_R_DANE_TLSA_BAD_PUBLIC_KEY = 201; + SSL_R_DANE_TLSA_BAD_SELECTOR = 202; + SSL_R_DANE_TLSA_NULL_DATA = 203; + SSL_R_DATA_BETWEEN_CCS_AND_FINISHED = 145; + SSL_R_DATA_LENGTH_TOO_LONG = 146; + SSL_R_DECRYPTION_FAILED = 147; + SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC = 281; + SSL_R_DH_KEY_TOO_SMALL = 394; + SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG = 148; + SSL_R_DIGEST_CHECK_FAILED = 149; + SSL_R_DTLS_MESSAGE_TOO_BIG = 334; + SSL_R_DUPLICATE_COMPRESSION_ID = 309; + SSL_R_ECC_CERT_NOT_FOR_SIGNING = 318; + SSL_R_ECDH_REQUIRED_FOR_SUITEB_MODE = 374; + SSL_R_EE_KEY_TOO_SMALL = 399; + SSL_R_EMPTY_SRTP_PROTECTION_PROFILE_LIST = 354; + SSL_R_ENCRYPTED_LENGTH_TOO_LONG = 150; + SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST = 151; + SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN = 204; + SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE = 194; + SSL_R_EXCESSIVE_MESSAGE_SIZE = 152; + SSL_R_EXTENSION_NOT_RECEIVED = 279; + SSL_R_EXTRA_DATA_IN_MESSAGE = 153; + SSL_R_EXT_LENGTH_MISMATCH = 163; + SSL_R_FAILED_TO_INIT_ASYNC = 405; + SSL_R_FRAGMENTED_CLIENT_HELLO = 401; + SSL_R_GOT_A_FIN_BEFORE_A_CCS = 154; + SSL_R_HTTPS_PROXY_REQUEST = 155; + SSL_R_HTTP_REQUEST = 156; + SSL_R_ILLEGAL_POINT_COMPRESSION = 162; + SSL_R_ILLEGAL_SUITEB_DIGEST = 380; + SSL_R_INAPPROPRIATE_FALLBACK = 373; + SSL_R_INCONSISTENT_COMPRESSION = 340; + SSL_R_INCONSISTENT_EARLY_DATA_ALPN = 222; + SSL_R_INCONSISTENT_EARLY_DATA_SNI = 231; + SSL_R_INCONSISTENT_EXTMS = 104; + SSL_R_INSUFFICIENT_SECURITY = 241; + SSL_R_INVALID_ALERT = 205; + SSL_R_INVALID_CCS_MESSAGE = 260; + SSL_R_INVALID_CERTIFICATE_OR_ALG = 238; + SSL_R_INVALID_COMMAND = 280; + SSL_R_INVALID_COMPRESSION_ALGORITHM = 341; + SSL_R_INVALID_CONFIG = 283; + SSL_R_INVALID_CONFIGURATION_NAME = 113; + SSL_R_INVALID_CONTEXT = 282; + SSL_R_INVALID_CT_VALIDATION_TYPE = 212; + SSL_R_INVALID_KEY_UPDATE_TYPE = 120; + SSL_R_INVALID_MAX_EARLY_DATA = 174; + SSL_R_INVALID_NULL_CMD_NAME = 385; + SSL_R_INVALID_SEQUENCE_NUMBER = 402; + SSL_R_INVALID_SERVERINFO_DATA = 388; + SSL_R_INVALID_SESSION_ID = 999; + SSL_R_INVALID_SRP_USERNAME = 357; + SSL_R_INVALID_STATUS_RESPONSE = 328; + SSL_R_INVALID_TICKET_KEYS_LENGTH = 325; + SSL_R_LENGTH_MISMATCH = 159; + SSL_R_LENGTH_TOO_LONG = 404; + SSL_R_LENGTH_TOO_SHORT = 160; + SSL_R_LIBRARY_BUG = 274; + SSL_R_LIBRARY_HAS_NO_CIPHERS = 161; + SSL_R_MISSING_DSA_SIGNING_CERT = 165; + SSL_R_MISSING_ECDSA_SIGNING_CERT = 381; + SSL_R_MISSING_FATAL = 256; + SSL_R_MISSING_PARAMETERS = 290; + SSL_R_MISSING_RSA_CERTIFICATE = 168; + SSL_R_MISSING_RSA_ENCRYPTING_CERT = 169; + SSL_R_MISSING_RSA_SIGNING_CERT = 170; + SSL_R_MISSING_SIGALGS_EXTENSION = 112; + SSL_R_MISSING_SIGNING_CERT = 221; + SSL_R_MISSING_SRP_PARAM = 358; + SSL_R_MISSING_SUPPORTED_GROUPS_EXTENSION = 209; + SSL_R_MISSING_TMP_DH_KEY = 171; + SSL_R_MISSING_TMP_ECDH_KEY = 311; + SSL_R_MIXED_HANDSHAKE_AND_NON_HANDSHAKE_DATA = 293; + SSL_R_NOT_ON_RECORD_BOUNDARY = 182; + SSL_R_NOT_REPLACING_CERTIFICATE = 289; + SSL_R_NOT_SERVER = 284; + SSL_R_NO_APPLICATION_PROTOCOL = 235; + SSL_R_NO_CERTIFICATES_RETURNED = 176; + SSL_R_NO_CERTIFICATE_ASSIGNED = 177; + SSL_R_NO_CERTIFICATE_SET = 179; + SSL_R_NO_CHANGE_FOLLOWING_HRR = 214; + SSL_R_NO_CIPHERS_AVAILABLE = 181; + SSL_R_NO_CIPHERS_SPECIFIED = 183; + SSL_R_NO_CIPHER_MATCH = 185; + SSL_R_NO_CLIENT_CERT_METHOD = 331; + SSL_R_NO_COMPRESSION_SPECIFIED = 187; + SSL_R_NO_COOKIE_CALLBACK_SET = 287; + SSL_R_NO_GOST_CERTIFICATE_SENT_BY_PEER = 330; + SSL_R_NO_METHOD_SPECIFIED = 188; + SSL_R_NO_PEM_EXTENSIONS = 389; + SSL_R_NO_PRIVATE_KEY_ASSIGNED = 190; + SSL_R_NO_PROTOCOLS_AVAILABLE = 191; + SSL_R_NO_RENEGOTIATION = 339; + SSL_R_NO_REQUIRED_DIGEST = 324; + SSL_R_NO_SHARED_CIPHER = 193; + SSL_R_NO_SHARED_GROUPS = 410; + SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS = 376; + SSL_R_NO_SRTP_PROFILES = 359; + SSL_R_NO_SUITABLE_KEY_SHARE = 101; + SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM = 118; + SSL_R_NO_VALID_SCTS = 216; + SSL_R_NO_VERIFY_COOKIE_CALLBACK = 403; + SSL_R_NULL_SSL_CTX = 195; + SSL_R_NULL_SSL_METHOD_PASSED = 196; + SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED = 197; + SSL_R_OLD_SESSION_COMPRESSION_ALGORITHM_NOT_RETURNED = 344; + SSL_R_OVERFLOW_ERROR = 237; + SSL_R_PACKET_LENGTH_TOO_LONG = 198; + SSL_R_PARSE_TLSEXT = 227; + SSL_R_PATH_TOO_LONG = 270; + SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE = 199; + SSL_R_PEM_NAME_BAD_PREFIX = 391; + SSL_R_PEM_NAME_TOO_SHORT = 392; + SSL_R_PIPELINE_FAILURE = 406; + SSL_R_POST_HANDSHAKE_AUTH_ENCODING_ERR = 278; + SSL_R_PRIVATE_KEY_MISMATCH = 288; + SSL_R_PROTOCOL_IS_SHUTDOWN = 207; + SSL_R_PSK_IDENTITY_NOT_FOUND = 223; + SSL_R_PSK_NO_CLIENT_CB = 224; + SSL_R_PSK_NO_SERVER_CB = 225; + SSL_R_READ_BIO_NOT_SET = 211; + SSL_R_READ_TIMEOUT_EXPIRED = 312; + SSL_R_RECORD_LENGTH_MISMATCH = 213; + SSL_R_RECORD_TOO_SMALL = 298; + SSL_R_RENEGOTIATE_EXT_TOO_LONG = 335; + SSL_R_RENEGOTIATION_ENCODING_ERR = 336; + SSL_R_RENEGOTIATION_MISMATCH = 337; + SSL_R_REQUEST_PENDING = 285; + SSL_R_REQUEST_SENT = 286; + SSL_R_REQUIRED_CIPHER_MISSING = 215; + SSL_R_REQUIRED_COMPRESSION_ALGORITHM_MISSING = 342; + SSL_R_SCSV_RECEIVED_WHEN_RENEGOTIATING = 345; + SSL_R_SCT_VERIFICATION_FAILED = 208; + SSL_R_SERVERHELLO_TLSEXT = 275; + SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED = 277; + SSL_R_SHUTDOWN_WHILE_IN_INIT = 407; + SSL_R_SIGNATURE_ALGORITHMS_ERROR = 360; + SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE = 220; + SSL_R_SRP_A_CALC = 361; + SSL_R_SRTP_COULD_NOT_ALLOCATE_PROFILES = 362; + SSL_R_SRTP_PROTECTION_PROFILE_LIST_TOO_LONG = 363; + SSL_R_SRTP_UNKNOWN_PROTECTION_PROFILE = 364; + SSL_R_SSL3_EXT_INVALID_MAX_FRAGMENT_LENGTH = 232; + SSL_R_SSL3_EXT_INVALID_SERVERNAME = 319; + SSL_R_SSL3_EXT_INVALID_SERVERNAME_TYPE = 320; + SSL_R_SSL3_SESSION_ID_TOO_LONG = 300; + SSL_R_SSLV3_ALERT_BAD_CERTIFICATE = 1042; + SSL_R_SSLV3_ALERT_BAD_RECORD_MAC = 1020; + SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED = 1045; + SSL_R_SSLV3_ALERT_CERTIFICATE_REVOKED = 1044; + SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN = 1046; + SSL_R_SSLV3_ALERT_DECOMPRESSION_FAILURE = 1030; + SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE = 1040; + SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER = 1047; + SSL_R_SSLV3_ALERT_NO_CERTIFICATE = 1041; + SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE = 1010; + SSL_R_SSLV3_ALERT_UNSUPPORTED_CERTIFICATE = 1043; + SSL_R_SSL_COMMAND_SECTION_EMPTY = 117; + SSL_R_SSL_COMMAND_SECTION_NOT_FOUND = 125; + SSL_R_SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION = 228; + SSL_R_SSL_HANDSHAKE_FAILURE = 229; + SSL_R_SSL_LIBRARY_HAS_NO_CIPHERS = 230; + SSL_R_SSL_NEGATIVE_LENGTH = 372; + SSL_R_SSL_SECTION_EMPTY = 126; + SSL_R_SSL_SECTION_NOT_FOUND = 136; + SSL_R_SSL_SESSION_ID_CALLBACK_FAILED = 301; + SSL_R_SSL_SESSION_ID_CONFLICT = 302; + SSL_R_SSL_SESSION_ID_CONTEXT_TOO_LONG = 273; + SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH = 303; + SSL_R_SSL_SESSION_ID_TOO_LONG = 408; + SSL_R_SSL_SESSION_VERSION_MISMATCH = 210; + SSL_R_STILL_IN_INIT = 121; + SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED = 1116; + SSL_R_TLSV13_ALERT_MISSING_EXTENSION = 1109; + SSL_R_TLSV1_ALERT_ACCESS_DENIED = 1049; + SSL_R_TLSV1_ALERT_DECODE_ERROR = 1050; + SSL_R_TLSV1_ALERT_DECRYPTION_FAILED = 1021; + SSL_R_TLSV1_ALERT_DECRYPT_ERROR = 1051; + SSL_R_TLSV1_ALERT_EXPORT_RESTRICTION = 1060; + SSL_R_TLSV1_ALERT_INAPPROPRIATE_FALLBACK = 1086; + SSL_R_TLSV1_ALERT_INSUFFICIENT_SECURITY = 1071; + SSL_R_TLSV1_ALERT_INTERNAL_ERROR = 1080; + SSL_R_TLSV1_ALERT_NO_RENEGOTIATION = 1100; + SSL_R_TLSV1_ALERT_PROTOCOL_VERSION = 1070; + SSL_R_TLSV1_ALERT_RECORD_OVERFLOW = 1022; + SSL_R_TLSV1_ALERT_UNKNOWN_CA = 1048; + SSL_R_TLSV1_ALERT_USER_CANCELLED = 1090; + SSL_R_TLSV1_BAD_CERTIFICATE_HASH_VALUE = 1114; + SSL_R_TLSV1_BAD_CERTIFICATE_STATUS_RESPONSE = 1113; + SSL_R_TLSV1_CERTIFICATE_UNOBTAINABLE = 1111; + SSL_R_TLSV1_UNRECOGNIZED_NAME = 1112; + SSL_R_TLSV1_UNSUPPORTED_EXTENSION = 1110; + SSL_R_TLS_HEARTBEAT_PEER_DOESNT_ACCEPT = 365; + SSL_R_TLS_HEARTBEAT_PENDING = 366; + SSL_R_TLS_ILLEGAL_EXPORTER_LABEL = 367; + SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST = 157; + SSL_R_TOO_MANY_KEY_UPDATES = 132; + SSL_R_TOO_MANY_WARN_ALERTS = 409; + SSL_R_TOO_MUCH_EARLY_DATA = 164; + SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS = 314; + SSL_R_UNABLE_TO_FIND_PUBLIC_KEY_PARAMETERS = 239; + SSL_R_UNABLE_TO_LOAD_SSL3_MD5_ROUTINES = 242; + SSL_R_UNABLE_TO_LOAD_SSL3_SHA1_ROUTINES = 243; + SSL_R_UNEXPECTED_CCS_MESSAGE = 262; + SSL_R_UNEXPECTED_END_OF_EARLY_DATA = 178; + SSL_R_UNEXPECTED_MESSAGE = 244; + SSL_R_UNEXPECTED_RECORD = 245; + SSL_R_UNINITIALIZED = 276; + SSL_R_UNKNOWN_ALERT_TYPE = 246; + SSL_R_UNKNOWN_CERTIFICATE_TYPE = 247; + SSL_R_UNKNOWN_CIPHER_RETURNED = 248; + SSL_R_UNKNOWN_CIPHER_TYPE = 249; + SSL_R_UNKNOWN_CMD_NAME = 386; + SSL_R_UNKNOWN_COMMAND = 139; + SSL_R_UNKNOWN_DIGEST = 368; + SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE = 250; + SSL_R_UNKNOWN_PKEY_TYPE = 251; + SSL_R_UNKNOWN_PROTOCOL = 252; + SSL_R_UNKNOWN_SSL_VERSION = 254; + SSL_R_UNKNOWN_STATE = 255; + SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED = 338; + SSL_R_UNSOLICITED_EXTENSION = 217; + SSL_R_UNSUPPORTED_COMPRESSION_ALGORITHM = 257; + SSL_R_UNSUPPORTED_ELLIPTIC_CURVE = 315; + SSL_R_UNSUPPORTED_PROTOCOL = 258; + SSL_R_UNSUPPORTED_SSL_VERSION = 259; + SSL_R_UNSUPPORTED_STATUS_TYPE = 329; + SSL_R_USE_SRTP_NOT_NEGOTIATED = 369; + SSL_R_VERSION_TOO_HIGH = 166; + SSL_R_VERSION_TOO_LOW = 396; + SSL_R_WRONG_CERTIFICATE_TYPE = 383; + SSL_R_WRONG_CIPHER_RETURNED = 261; + SSL_R_WRONG_CURVE = 378; + SSL_R_WRONG_SIGNATURE_LENGTH = 264; + SSL_R_WRONG_SIGNATURE_SIZE = 265; + SSL_R_WRONG_SIGNATURE_TYPE = 370; + SSL_R_WRONG_SSL_VERSION = 266; + SSL_R_WRONG_VERSION_NUMBER = 267; + SSL_R_X509_LIB = 268; + SSL_R_X509_VERIFICATION_SETUP_PROBLEMS = 269; + + function ERR_load_SSL_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_stack.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_stack.h2pas new file mode 100644 index 000000000..e60f45cbd --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_stack.h2pas @@ -0,0 +1,229 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} +unit IdOpenSSLHeaders_stack; + +interface + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + + +{ + Automatically converted by H2Pas 1.0.0 from stack.h + The following command line parameters were used: + -p + -t + stack.h +} + + { + * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the OpenSSL license (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + } + + type + POPENSSL_STACK = pointer; + + TOPENSSL_sk_compfunc = function (_para1:pointer; _para2:pointer):longint;cdecl; + TOPENSSL_sk_freefunc = procedure (_para1:pointer);cdecl; + TOPENSSL_sk_copyfunc = function (_para1:pointer):pointer;cdecl; + + function OPENSSL_sk_num(_para1:POPENSSL_STACK):longint; {introduced 1.1.0} + function OPENSSL_sk_value(_para1:POPENSSL_STACK; _para2:longint):pointer; {introduced 1.1.0} + function OPENSSL_sk_set(st:POPENSSL_STACK; i:longint; data:pointer):pointer; {introduced 1.1.0} + function OPENSSL_sk_new(cmp:TOPENSSL_sk_compfunc):POPENSSL_STACK; {introduced 1.1.0} + function OPENSSL_sk_new_null:POPENSSL_STACK; {introduced 1.1.0} + function OPENSSL_sk_new_reserve(c:TOPENSSL_sk_compfunc; n:longint):POPENSSL_STACK; {introduced 1.1.0} + function OPENSSL_sk_reserve(st:POPENSSL_STACK; n:longint):longint; {introduced 1.1.0} + procedure OPENSSL_sk_free(_para1:POPENSSL_STACK); {introduced 1.1.0} + procedure OPENSSL_sk_pop_free(st:POPENSSL_STACK; func:TOPENSSL_sk_freefunc); {introduced 1.1.0} + function OPENSSL_sk_deep_copy(_para1:POPENSSL_STACK; c:TOPENSSL_sk_copyfunc; f:TOPENSSL_sk_freefunc):POPENSSL_STACK; {introduced 1.1.0} + function OPENSSL_sk_insert(sk:POPENSSL_STACK; data:pointer; where:longint):longint; {introduced 1.1.0} + function OPENSSL_sk_delete(st:POPENSSL_STACK; loc:longint):pointer; {introduced 1.1.0} + function OPENSSL_sk_delete_ptr(st:POPENSSL_STACK; p:pointer):pointer; {introduced 1.1.0} + function OPENSSL_sk_find(st:POPENSSL_STACK; data:pointer):longint; {introduced 1.1.0} + function OPENSSL_sk_find_ex(st:POPENSSL_STACK; data:pointer):longint; {introduced 1.1.0} + function OPENSSL_sk_push(st:POPENSSL_STACK; data:pointer):longint; {introduced 1.1.0} + function OPENSSL_sk_unshift(st:POPENSSL_STACK; data:pointer):longint; {introduced 1.1.0} + function OPENSSL_sk_shift(st:POPENSSL_STACK):pointer; {introduced 1.1.0} + function OPENSSL_sk_pop(st:POPENSSL_STACK):pointer; {introduced 1.1.0} + procedure OPENSSL_sk_zero(st:POPENSSL_STACK); {introduced 1.1.0} + function OPENSSL_sk_set_cmp_func(sk:POPENSSL_STACK; cmp:TOPENSSL_sk_compfunc):TOPENSSL_sk_compfunc; {introduced 1.1.0} + function OPENSSL_sk_dup(st:POPENSSL_STACK):POPENSSL_STACK; {introduced 1.1.0} + procedure OPENSSL_sk_sort(st:POPENSSL_STACK); {introduced 1.1.0} + function OPENSSL_sk_is_sorted(st:POPENSSL_STACK):longint; {introduced 1.1.0} + + function sk_num(_para1:POPENSSL_STACK):longint; {removed 1.1.0} + function sk_value(_para1:POPENSSL_STACK; _para2:longint):pointer; {removed 1.1.0} + function sk_set(st:POPENSSL_STACK; i:longint; data:pointer):pointer; {removed 1.1.0} + function sk_new(cmp:TOPENSSL_sk_compfunc):POPENSSL_STACK; {removed 1.1.0} + function sk_new_null:POPENSSL_STACK; {removed 1.1.0} + function sk_new_reserve(c:TOPENSSL_sk_compfunc; n:longint):POPENSSL_STACK; {removed 1.0.0} + function sk_reserve(st:POPENSSL_STACK; n:longint):longint; {removed 1.0.0} + procedure sk_free(_para1:POPENSSL_STACK); {removed 1.1.0} + procedure sk_pop_free(st:POPENSSL_STACK; func:TOPENSSL_sk_freefunc); {removed 1.1.0} + function sk_deep_copy(_para1:POPENSSL_STACK; c:TOPENSSL_sk_copyfunc; f:TOPENSSL_sk_freefunc):POPENSSL_STACK; {removed 1.1.0} + function sk_insert(sk:POPENSSL_STACK; data:pointer; where:longint):longint; {removed 1.1.0} + function sk_delete(st:POPENSSL_STACK; loc:longint):pointer; {removed 1.1.0} + function sk_delete_ptr(st:POPENSSL_STACK; p:pointer):pointer; {removed 1.1.0} + function sk_find(st:POPENSSL_STACK; data:pointer):longint; {removed 1.1.0} + function sk_find_ex(st:POPENSSL_STACK; data:pointer):longint; {removed 1.1.0} + function sk_push(st:POPENSSL_STACK; data:pointer):longint; {removed 1.1.0} + function sk_unshift(st:POPENSSL_STACK; data:pointer):longint; {removed 1.1.0} + function sk_shift(st:POPENSSL_STACK):pointer; {removed 1.1.0} + function sk_pop(st:POPENSSL_STACK):pointer; {removed 1.1.0} + procedure sk_zero(st:POPENSSL_STACK); {removed 1.1.0} + function sk_set_cmp_func(sk:POPENSSL_STACK; cmp:TOPENSSL_sk_compfunc):TOPENSSL_sk_compfunc; {removed 1.1.0} + function sk_dup(st:POPENSSL_STACK):POPENSSL_STACK; {removed 1.1.0} + procedure sk_sort(st:POPENSSL_STACK); {removed 1.1.0} + function sk_is_sorted(st:POPENSSL_STACK):longint; {removed 1.1.0} + +implementation + +function sk_num(_para1:POPENSSL_STACK):longint; +begin + Result := OPENSSL_sk_num(_para1); +end; + +function sk_value(_para1:POPENSSL_STACK; _para2:longint):pointer; +begin + Result := OPENSSL_sk_value(_para1,_para2); +end; + +function sk_set(st:POPENSSL_STACK; i:longint; data:pointer):pointer; +begin + Result := OPENSSL_sk_set(st,i,data); +end; + +function sk_new(cmp:TOPENSSL_sk_compfunc):POPENSSL_STACK; +begin + Result := OPENSSL_sk_new(cmp); +end; + +function sk_new_null:POPENSSL_STACK; +begin + Result := OPENSSL_sk_new_null; +end; + +function sk_new_reserve(c:TOPENSSL_sk_compfunc; n:longint):POPENSSL_STACK; +begin + Result := OPENSSL_sk_new_reserve(c,n); +end; + +function sk_reserve(st:POPENSSL_STACK; n:longint):longint; +begin + Result := OPENSSL_sk_reserve(st,n); +end; + +procedure sk_free(_para1:POPENSSL_STACK); +begin + OPENSSL_sk_free(_para1); +end; + +procedure sk_pop_free(st:POPENSSL_STACK; func:TOPENSSL_sk_freefunc); +begin + OPENSSL_sk_pop_free(st, func); +end; + +function sk_deep_copy(_para1:POPENSSL_STACK; c:TOPENSSL_sk_copyfunc; f:TOPENSSL_sk_freefunc):POPENSSL_STACK; +begin + Result := OPENSSL_sk_deep_copy(_para1,c,f); +end; + +function sk_insert(sk:POPENSSL_STACK; data:pointer; where:longint):longint; +begin + Result := OPENSSL_sk_insert(sk,data,where); +end; + +function sk_delete(st:POPENSSL_STACK; loc:longint):pointer; +begin + Result := OPENSSL_sk_delete(st,loc); +end; + +function sk_delete_ptr(st:POPENSSL_STACK; p:pointer):pointer; +begin + Result := OPENSSL_sk_delete_ptr(st,p); +end; + +function sk_find(st:POPENSSL_STACK; data:pointer):longint; +begin + Result := OPENSSL_sk_find(st,data); +end; + +function sk_find_ex(st:POPENSSL_STACK; data:pointer):longint; +begin + Result := OPENSSL_sk_find_ex(st,data); +end; + +function sk_push(st:POPENSSL_STACK; data:pointer):longint; +begin + Result := OPENSSL_sk_push(st,data); +end; + +function sk_unshift(st:POPENSSL_STACK; data:pointer):longint; +begin + Result := OPENSSL_sk_unshift(st,data); +end; + +function sk_shift(st:POPENSSL_STACK):pointer; +begin + Result := OPENSSL_sk_shift(st); +end; + +function sk_pop(st:POPENSSL_STACK):pointer; +begin + Result := OPENSSL_sk_pop(st); +end; + +procedure sk_zero(st:POPENSSL_STACK); +begin + OPENSSL_sk_zero(st); +end; + +function sk_set_cmp_func(sk:POPENSSL_STACK; cmp:TOPENSSL_sk_compfunc):TOPENSSL_sk_compfunc; +begin + Result := OPENSSL_sk_set_cmp_func(sk,cmp); +end; + +function sk_dup(st:POPENSSL_STACK):POPENSSL_STACK; +begin + Result := OPENSSL_sk_dup(st); +end; + +procedure sk_sort(st:POPENSSL_STACK); +begin + OPENSSL_sk_sort(st); +end; + +function sk_is_sorted(st:POPENSSL_STACK):longint; +begin + Result := OPENSSL_sk_is_sorted(st); +end; + + + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_storeerr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_storeerr.h2pas new file mode 100644 index 000000000..98c3fc42f --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_storeerr.h2pas @@ -0,0 +1,109 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_storeerr; + +interface + +// Headers for OpenSSL 1.1.1 +// storeerr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * OSSL_STORE function codes. + *) + OSSL_STORE_F_FILE_CTRL = 129; + OSSL_STORE_F_FILE_FIND = 138; + OSSL_STORE_F_FILE_GET_PASS = 118; + OSSL_STORE_F_FILE_LOAD = 119; + OSSL_STORE_F_FILE_LOAD_TRY_DECODE = 124; + OSSL_STORE_F_FILE_NAME_TO_URI = 126; + OSSL_STORE_F_FILE_OPEN = 120; + OSSL_STORE_F_OSSL_STORE_ATTACH_PEM_BIO = 127; + OSSL_STORE_F_OSSL_STORE_EXPECT = 130; + OSSL_STORE_F_OSSL_STORE_FILE_ATTACH_PEM_BIO_INT = 128; + OSSL_STORE_F_OSSL_STORE_FIND = 131; + OSSL_STORE_F_OSSL_STORE_GET0_LOADER_INT = 100; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_CERT = 101; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_CRL = 102; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME = 103; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME_DESCRIPTION = 135; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_PARAMS = 104; + OSSL_STORE_F_OSSL_STORE_INFO_GET1_PKEY = 105; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_CERT = 106; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_CRL = 107; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_EMBEDDED = 123; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_NAME = 109; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_PARAMS = 110; + OSSL_STORE_F_OSSL_STORE_INFO_NEW_PKEY = 111; + OSSL_STORE_F_OSSL_STORE_INFO_SET0_NAME_DESCRIPTION = 134; + OSSL_STORE_F_OSSL_STORE_INIT_ONCE = 112; + OSSL_STORE_F_OSSL_STORE_LOADER_NEW = 113; + OSSL_STORE_F_OSSL_STORE_OPEN = 114; + OSSL_STORE_F_OSSL_STORE_OPEN_INT = 115; + OSSL_STORE_F_OSSL_STORE_REGISTER_LOADER_INT = 117; + OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ALIAS = 132; + OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ISSUER_SERIAL = 133; + OSSL_STORE_F_OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT = 136; + OSSL_STORE_F_OSSL_STORE_SEARCH_BY_NAME = 137; + OSSL_STORE_F_OSSL_STORE_UNREGISTER_LOADER_INT = 116; + OSSL_STORE_F_TRY_DECODE_PARAMS = 121; + OSSL_STORE_F_TRY_DECODE_PKCS12 = 122; + OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED = 125; + + + (* + * OSSL_STORE reason codes. + *) + OSSL_STORE_R_AMBIGUOUS_CONTENT_TYPE = 107; + OSSL_STORE_R_BAD_PASSWORD_READ = 115; + OSSL_STORE_R_ERROR_VERIFYING_PKCS12_MAC = 113; + OSSL_STORE_R_FINGERPRINT_SIZE_DOES_NOT_MATCH_DIGEST = 121; + OSSL_STORE_R_INVALID_SCHEME = 106; + OSSL_STORE_R_IS_NOT_A = 112; + OSSL_STORE_R_LOADER_INCOMPLETE = 116; + OSSL_STORE_R_LOADING_STARTED = 117; + OSSL_STORE_R_NOT_A_CERTIFICATE = 100; + OSSL_STORE_R_NOT_A_CRL = 101; + OSSL_STORE_R_NOT_A_KEY = 102; + OSSL_STORE_R_NOT_A_NAME = 103; + OSSL_STORE_R_NOT_PARAMETERS = 104; + OSSL_STORE_R_PASSPHRASE_CALLBACK_ERROR = 114; + OSSL_STORE_R_PATH_MUST_BE_ABSOLUTE = 108; + OSSL_STORE_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES = 119; + OSSL_STORE_R_UI_PROCESS_INTERRUPTED_OR_CANCELLED = 109; + OSSL_STORE_R_UNREGISTERED_SCHEME = 105; + OSSL_STORE_R_UNSUPPORTED_CONTENT_TYPE = 110; + OSSL_STORE_R_UNSUPPORTED_OPERATION = 118; + OSSL_STORE_R_UNSUPPORTED_SEARCH_TYPE = 120; + OSSL_STORE_R_URI_AUTHORITY_UNSUPPORTED = 111; + + function ERR_load_OSSL_STORE_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_tls1.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_tls1.h2pas new file mode 100644 index 000000000..90ed49b71 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_tls1.h2pas @@ -0,0 +1,1195 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_tls1; + +interface + +// Headers for OpenSSL 1.1.1 +// tls1.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + (* Default security level if not overridden at config time *) + OPENSSL_TLS_SECURITY_LEVEL = 1; + + TLS1_VERSION = $0301; + TLS1_1_VERSION = $0302; + TLS1_2_VERSION = $0303; + TLS1_3_VERSION = $0304; + TLS_MAX_VERSION = TLS1_3_VERSION; + + (* Special value for method supporting multiple versions *) + TLS_ANY_VERSION = $10000; + + TLS1_VERSION_MAJOR = $03; + TLS1_VERSION_MINOR = $01; + + TLS1_1_VERSION_MAJOR = $03; + TLS1_1_VERSION_MINOR = $02; + + TLS1_2_VERSION_MAJOR = $03; + TLS1_2_VERSION_MINOR = $03; + + +//# define TLS1_get_version(s) \ +// ((SSL_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_version(s) : 0) +// +//# define TLS1_get_client_version(s) \ +// ((SSL_client_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_client_version(s) : 0) + + TLS1_AD_DECRYPTION_FAILED = 21; + TLS1_AD_RECORD_OVERFLOW = 22; + TLS1_AD_UNKNOWN_CA = 48; (* fatal *) + TLS1_AD_ACCESS_DENIED = 49; (* fatal *) + TLS1_AD_DECODE_ERROR = 50; (* fatal *) + TLS1_AD_DECRYPT_ERROR = 51; + TLS1_AD_EXPORT_RESTRICTION = 60; (* fatal *) + TLS1_AD_PROTOCOL_VERSION = 70; (* fatal *) + TLS1_AD_INSUFFICIENT_SECURITY = 71; (* fatal *) + TLS1_AD_INTERNAL_ERROR = 80; (* fatal *) + TLS1_AD_INAPPROPRIATE_FALLBACK = 86; (* fatal *) + TLS1_AD_USER_CANCELLED = 90; + TLS1_AD_NO_RENEGOTIATION = 100; + (* TLSv1.3 alerts *) + TLS13_AD_MISSING_EXTENSION = 109; (* fatal *) + TLS13_AD_CERTIFICATE_REQUIRED = 116; (* fatal *) + (* codes 110-114 are from RFC3546 *) + TLS1_AD_UNSUPPORTED_EXTENSION = 110; + TLS1_AD_CERTIFICATE_UNOBTAINABLE = 111; + TLS1_AD_UNRECOGNIZED_NAME = 112; + TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE = 113; + TLS1_AD_BAD_CERTIFICATE_HASH_VALUE = 114; + TLS1_AD_UNKNOWN_PSK_IDENTITY = 115; (* fatal *) + TLS1_AD_NO_APPLICATION_PROTOCOL = 120; (* fatal *) + + (* ExtensionType values from RFC3546 / RFC4366 / RFC6066 *) + TLSEXT_TYPE_server_name = 0; + TLSEXT_TYPE_max_fragment_length = 1; + TLSEXT_TYPE_client_certificate_url = 2; + TLSEXT_TYPE_trusted_ca_keys = 3; + TLSEXT_TYPE_truncated_hmac = 4; + TLSEXT_TYPE_status_request = 5; + (* ExtensionType values from RFC4681 *) + TLSEXT_TYPE_user_mapping = 6; + (* ExtensionType values from RFC5878 *) + TLSEXT_TYPE_client_authz = 7; + TLSEXT_TYPE_server_authz = 8; + (* ExtensionType values from RFC6091 *) + TLSEXT_TYPE_cert_type = 9; + + (* ExtensionType values from RFC4492 *) + (* + * Prior to TLSv1.3 the supported_groups extension was known as + * elliptic_curves + *) + TLSEXT_TYPE_supported_groups = 10; + TLSEXT_TYPE_elliptic_curves = TLSEXT_TYPE_supported_groups; + TLSEXT_TYPE_ec_poTIdC_INT_formats = 11; + + (* ExtensionType value from RFC5054 *) + TLSEXT_TYPE_srp = 12; + (* ExtensionType values from RFC5246 *) + TLSEXT_TYPE_signature_algorithms = 13; + + (* ExtensionType value from RFC5764 *) + TLSEXT_TYPE_use_srtp = 14; + + (* ExtensionType value from RFC5620 *) + TLSEXT_TYPE_heartbeat = 15; + + (* ExtensionType value from RFC7301 *) + TLSEXT_TYPE_application_layer_protocol_negotiation = 16; + + (* + * Extension type for Certificate Transparency + * https://tools.ietf.org/html/rfc6962#section-3.3.1 + *) + TLSEXT_TYPE_signed_certificate_timestamp = 18; + + (* + * ExtensionType value for TLS padding extension. + * http://tools.ietf.org/html/draft-agl-tls-padding + *) + TLSEXT_TYPE_padding = 21; + + (* ExtensionType value from RFC7366 *) + TLSEXT_TYPE_encrypt_then_mac = 22; + + (* ExtensionType value from RFC7627 *) + TLSEXT_TYPE_extended_master_secret = 23; + + (* ExtensionType value from RFC4507 *) + TLSEXT_TYPE_session_ticket = 35; + + (* As defined for TLS1.3 *) + TLSEXT_TYPE_psk = 41; + TLSEXT_TYPE_early_data = 42; + TLSEXT_TYPE_supported_versions = 43; + TLSEXT_TYPE_cookie = 44; + TLSEXT_TYPE_psk_kex_modes = 45; + TLSEXT_TYPE_certificate_authorities = 47; + TLSEXT_TYPE_post_handshake_auth = 49; + TLSEXT_TYPE_signature_algorithms_cert = 50; + TLSEXT_TYPE_key_share = 51; + + (* Temporary extension type *) + TLSEXT_TYPE_renegotiate = $ff01; + + (* This is not an IANA defined extension number *) + TLSEXT_TYPE_next_proto_neg = 13172; + + (* NameType value from RFC3546 *) + TLSEXT_NAMETYPE_host_name = 0; + (* status request value from RFC3546 *) + TLSEXT_STATUSTYPE_ocsp = 1; + + (* ECPoTIdC_INTFormat values from RFC4492 *) + TLSEXT_ECPOTIdC_INTFORMAT_first = 0; + TLSEXT_ECPOTIdC_INTFORMAT_uncompressed = 0; + TLSEXT_ECPOTIdC_INTFORMAT_ansiX962_compressed_prime = 1; + TLSEXT_ECPOTIdC_INTFORMAT_ansiX962_compressed_PIdAnsiChar2 = 2; + TLSEXT_ECPOTIdC_INTFORMAT_last = 2; + + (* Signature and hash algorithms from RFC5246 *) + TLSEXT_signature_anonymous = 0; + TLSEXT_signature_rsa = 1; + TLSEXT_signature_dsa = 2; + TLSEXT_signature_ecdsa = 3; + TLSEXT_signature_gostr34102001 = 237; + TLSEXT_signature_gostr34102012_256 = 238; + TLSEXT_signature_gostr34102012_512 = 239; + + (* Total number of different signature algorithms *) + TLSEXT_signature_num = 7; + + TLSEXT_hash_none = 0; + TLSEXT_hash_md5 = 1; + TLSEXT_hash_sha1 = 2; + TLSEXT_hash_sha224 = 3; + TLSEXT_hash_sha256 = 4; + TLSEXT_hash_sha384 = 5; + TLSEXT_hash_sha512 = 6; + TLSEXT_hash_gostr3411 = 237; + TLSEXT_hash_gostr34112012_256 = 238; + TLSEXT_hash_gostr34112012_512 = 239; + + (* Total number of different digest algorithms *) + TLSEXT_hash_num = 10; + + (* Flag set for unrecognised algorithms *) + TLSEXT_nid_unknown = $1000000; + + (* ECC curves *) + TLSEXT_curve_P_256 = 23; + TLSEXT_curve_P_384 = 24; + + (* OpenSSL value to disable maximum fragment length extension *) + TLSEXT_max_fragment_length_DISABLED = 0; + (* Allowed values for max fragment length extension *) + TLSEXT_max_fragment_length_512 = 1; + TLSEXT_max_fragment_length_1024 = 2; + TLSEXT_max_fragment_length_2048 = 3; + TLSEXT_max_fragment_length_4096 = 4; + + TLSEXT_MAXLEN_host_name = 255; + + SSL_TLSEXT_ERR_OK = 0; + SSL_TLSEXT_ERR_ALERT_WARNING = 1; + SSL_TLSEXT_ERR_ALERT_FATAL = 2; + SSL_TLSEXT_ERR_NOACK = 3; + + SSL_DTLSEXT_HB_ENABLED = $01; + SSL_DTLSEXT_HB_DONT_SEND_REQUESTS = $02; + SSL_DTLSEXT_HB_DONT_RECV_REQUESTS = $04; + + (* PSK ciphersuites from 4279 *) + TLS1_CK_PSK_WITH_RC4_128_SHA = $0300008A; + TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA = $0300008B; + TLS1_CK_PSK_WITH_AES_128_CBC_SHA = $0300008C; + TLS1_CK_PSK_WITH_AES_256_CBC_SHA = $0300008D; + TLS1_CK_DHE_PSK_WITH_RC4_128_SHA = $0300008E; + TLS1_CK_DHE_PSK_WITH_3DES_EDE_CBC_SHA = $0300008F; + TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA = $03000090; + TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA = $03000091; + TLS1_CK_RSA_PSK_WITH_RC4_128_SHA = $03000092; + TLS1_CK_RSA_PSK_WITH_3DES_EDE_CBC_SHA = $03000093; + TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA = $03000094; + TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA = $03000095; + + (* PSK ciphersuites from 5487 *) + TLS1_CK_PSK_WITH_AES_128_GCM_SHA256 = $030000A8; + TLS1_CK_PSK_WITH_AES_256_GCM_SHA384 = $030000A9; + TLS1_CK_DHE_PSK_WITH_AES_128_GCM_SHA256 = $030000AA; + TLS1_CK_DHE_PSK_WITH_AES_256_GCM_SHA384 = $030000AB; + TLS1_CK_RSA_PSK_WITH_AES_128_GCM_SHA256 = $030000AC; + TLS1_CK_RSA_PSK_WITH_AES_256_GCM_SHA384 = $030000AD; + TLS1_CK_PSK_WITH_AES_128_CBC_SHA256 = $030000AE; + TLS1_CK_PSK_WITH_AES_256_CBC_SHA384 = $030000AF; + TLS1_CK_PSK_WITH_NULL_SHA256 = $030000B0; + TLS1_CK_PSK_WITH_NULL_SHA384 = $030000B1; + TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA256 = $030000B2; + TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA384 = $030000B3; + TLS1_CK_DHE_PSK_WITH_NULL_SHA256 = $030000B4; + TLS1_CK_DHE_PSK_WITH_NULL_SHA384 = $030000B5; + TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA256 = $030000B6; + TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA384 = $030000B7; + TLS1_CK_RSA_PSK_WITH_NULL_SHA256 = $030000B8; + TLS1_CK_RSA_PSK_WITH_NULL_SHA384 = $030000B9; + + (* NULL PSK ciphersuites from RFC4785 *) + TLS1_CK_PSK_WITH_NULL_SHA = $0300002C; + TLS1_CK_DHE_PSK_WITH_NULL_SHA = $0300002D; + TLS1_CK_RSA_PSK_WITH_NULL_SHA = $0300002E; + + (* AES ciphersuites from RFC3268 *) + TLS1_CK_RSA_WITH_AES_128_SHA = $0300002F; + TLS1_CK_DH_DSS_WITH_AES_128_SHA = $03000030; + TLS1_CK_DH_RSA_WITH_AES_128_SHA = $03000031; + TLS1_CK_DHE_DSS_WITH_AES_128_SHA = $03000032; + TLS1_CK_DHE_RSA_WITH_AES_128_SHA = $03000033; + TLS1_CK_ADH_WITH_AES_128_SHA = $03000034; + TLS1_CK_RSA_WITH_AES_256_SHA = $03000035; + TLS1_CK_DH_DSS_WITH_AES_256_SHA = $03000036; + TLS1_CK_DH_RSA_WITH_AES_256_SHA = $03000037; + TLS1_CK_DHE_DSS_WITH_AES_256_SHA = $03000038; + TLS1_CK_DHE_RSA_WITH_AES_256_SHA = $03000039; + TLS1_CK_ADH_WITH_AES_256_SHA = $0300003A; + + (* TLS v1.2 ciphersuites *) + TLS1_CK_RSA_WITH_NULL_SHA256 = $0300003B; + TLS1_CK_RSA_WITH_AES_128_SHA256 = $0300003C; + TLS1_CK_RSA_WITH_AES_256_SHA256 = $0300003D; + TLS1_CK_DH_DSS_WITH_AES_128_SHA256 = $0300003E; + TLS1_CK_DH_RSA_WITH_AES_128_SHA256 = $0300003F; + TLS1_CK_DHE_DSS_WITH_AES_128_SHA256 = $03000040; + + (* Camellia ciphersuites from RFC4132 *) + TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA = $03000041; + TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA = $03000042; + TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA = $03000043; + TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA = $03000044; + TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA = $03000045; + TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA = $03000046; + + (* TLS v1.2 ciphersuites *) + TLS1_CK_DHE_RSA_WITH_AES_128_SHA256 = $03000067; + TLS1_CK_DH_DSS_WITH_AES_256_SHA256 = $03000068; + TLS1_CK_DH_RSA_WITH_AES_256_SHA256 = $03000069; + TLS1_CK_DHE_DSS_WITH_AES_256_SHA256 = $0300006A; + TLS1_CK_DHE_RSA_WITH_AES_256_SHA256 = $0300006B; + TLS1_CK_ADH_WITH_AES_128_SHA256 = $0300006C; + TLS1_CK_ADH_WITH_AES_256_SHA256 = $0300006D; + + (* Camellia ciphersuites from RFC4132 *) + TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA = $03000084; + TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA = $03000085; + TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA = $03000086; + TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA = $03000087; + TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA = $03000088; + TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA = $03000089; + + (* SEED ciphersuites from RFC4162 *) + TLS1_CK_RSA_WITH_SEED_SHA = $03000096; + TLS1_CK_DH_DSS_WITH_SEED_SHA = $03000097; + TLS1_CK_DH_RSA_WITH_SEED_SHA = $03000098; + TLS1_CK_DHE_DSS_WITH_SEED_SHA = $03000099; + TLS1_CK_DHE_RSA_WITH_SEED_SHA = $0300009A; + TLS1_CK_ADH_WITH_SEED_SHA = $0300009B; + + (* TLS v1.2 GCM ciphersuites from RFC5288 *) + TLS1_CK_RSA_WITH_AES_128_GCM_SHA256 = $0300009C; + TLS1_CK_RSA_WITH_AES_256_GCM_SHA384 = $0300009D; + TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256 = $0300009E; + TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384 = $0300009F; + TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256 = $030000A0; + TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384 = $030000A1; + TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256 = $030000A2; + TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384 = $030000A3; + TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256 = $030000A4; + TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384 = $030000A5; + TLS1_CK_ADH_WITH_AES_128_GCM_SHA256 = $030000A6; + TLS1_CK_ADH_WITH_AES_256_GCM_SHA384 = $030000A7; + + (* CCM ciphersuites from RFC6655 *) + TLS1_CK_RSA_WITH_AES_128_CCM = $0300C09C; + TLS1_CK_RSA_WITH_AES_256_CCM = $0300C09D; + TLS1_CK_DHE_RSA_WITH_AES_128_CCM = $0300C09E; + TLS1_CK_DHE_RSA_WITH_AES_256_CCM = $0300C09F; + TLS1_CK_RSA_WITH_AES_128_CCM_8 = $0300C0A0; + TLS1_CK_RSA_WITH_AES_256_CCM_8 = $0300C0A1; + TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8 = $0300C0A2; + TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8 = $0300C0A3; + TLS1_CK_PSK_WITH_AES_128_CCM = $0300C0A4; + TLS1_CK_PSK_WITH_AES_256_CCM = $0300C0A5; + TLS1_CK_DHE_PSK_WITH_AES_128_CCM = $0300C0A6; + TLS1_CK_DHE_PSK_WITH_AES_256_CCM = $0300C0A7; + TLS1_CK_PSK_WITH_AES_128_CCM_8 = $0300C0A8; + TLS1_CK_PSK_WITH_AES_256_CCM_8 = $0300C0A9; + TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8 = $0300C0AA; + TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8 = $0300C0AB; + + (* CCM ciphersuites from RFC7251 *) + TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM = $0300C0AC; + TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM = $0300C0AD; + TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8 = $0300C0AE; + TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8 = $0300C0AF; + + (* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 *) + TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256 = $030000BA; + TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 = $030000BB; + TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 = $030000BC; + TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 = $030000BD; + TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = $030000BE; + TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256 = $030000BF; + + TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256 = $030000C0; + TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 = $030000C1; + TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 = $030000C2; + TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 = $030000C3; + TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 = $030000C4; + TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256 = $030000C5; + + (* ECC ciphersuites from RFC4492 *) + TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA = $0300C001; + TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA = $0300C002; + TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA = $0300C003; + TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA = $0300C004; + TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA = $0300C005; + + TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA = $0300C006; + TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA = $0300C007; + TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA = $0300C008; + TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = $0300C009; + TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = $0300C00A; + + TLS1_CK_ECDH_RSA_WITH_NULL_SHA = $0300C00B; + TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA = $0300C00C; + TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA = $0300C00D; + TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA = $0300C00E; + TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA = $0300C00F; + + TLS1_CK_ECDHE_RSA_WITH_NULL_SHA = $0300C010; + TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA = $0300C011; + TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA = $0300C012; + TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA = $0300C013; + TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA = $0300C014; + + TLS1_CK_ECDH_anon_WITH_NULL_SHA = $0300C015; + TLS1_CK_ECDH_anon_WITH_RC4_128_SHA = $0300C016; + TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA = $0300C017; + TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA = $0300C018; + TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA = $0300C019; + + (* SRP ciphersuites from RFC 5054 *) + TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA = $0300C01A; + TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA = $0300C01B; + TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA = $0300C01C; + TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA = $0300C01D; + TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA = $0300C01E; + TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA = $0300C01F; + TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA = $0300C020; + TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA = $0300C021; + TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA = $0300C022; + + (* ECDH HMAC based ciphersuites from RFC5289 *) + TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256 = $0300C023; + TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384 = $0300C024; + TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256 = $0300C025; + TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384 = $0300C026; + TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256 = $0300C027; + TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384 = $0300C028; + TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256 = $0300C029; + TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384 = $0300C02A; + + (* ECDH GCM based ciphersuites from RFC5289 *) + TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = $0300C02B; + TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = $0300C02C; + TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = $0300C02D; + TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = $0300C02E; + TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = $0300C02F; + TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = $0300C030; + TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256 = $0300C031; + TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384 = $0300C032; + + (* ECDHE PSK ciphersuites from RFC5489 *) + TLS1_CK_ECDHE_PSK_WITH_RC4_128_SHA = $0300C033; + TLS1_CK_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA = $0300C034; + TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA = $0300C035; + TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA = $0300C036; + TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA256 = $0300C037; + TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA384 = $0300C038; + TLS1_CK_ECDHE_PSK_WITH_NULL_SHA = $0300C039; + + TLS1_CK_ECDHE_PSK_WITH_NULL_SHA256 = $0300C03A; + TLS1_CK_ECDHE_PSK_WITH_NULL_SHA384 = $0300C03B; + + (* Camellia-CBC ciphersuites from RFC6367 *) + TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = $0300C072; + TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = $0300C073; + TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = $0300C074; + TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = $0300C075; + TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = $0300C076; + TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 = $0300C077; + TLS1_CK_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 = $0300C078; + TLS1_CK_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 = $0300C079; + + TLS1_CK_PSK_WITH_CAMELLIA_128_CBC_SHA256 = $0300C094; + TLS1_CK_PSK_WITH_CAMELLIA_256_CBC_SHA384 = $0300C095; + TLS1_CK_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = $0300C096; + TLS1_CK_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = $0300C097; + TLS1_CK_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 = $0300C098; + TLS1_CK_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 = $0300C099; + TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = $0300C09A; + TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = $0300C09B; + + (* draft-ietf-tls-chacha20-poly1305-03 *) + TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305 = $0300CCA8; + TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 = $0300CCA9; + TLS1_CK_DHE_RSA_WITH_CHACHA20_POLY1305 = $0300CCAA; + TLS1_CK_PSK_WITH_CHACHA20_POLY1305 = $0300CCAB; + TLS1_CK_ECDHE_PSK_WITH_CHACHA20_POLY1305 = $0300CCAC; + TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305 = $0300CCAD; + TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305 = $0300CCAE; + + (* TLS v1.3 ciphersuites *) + TLS1_3_CK_AES_128_GCM_SHA256 = $03001301; + TLS1_3_CK_AES_256_GCM_SHA384 = $03001302; + TLS1_3_CK_CHACHA20_POLY1305_SHA256 = $03001303; + TLS1_3_CK_AES_128_CCM_SHA256 = $03001304; + TLS1_3_CK_AES_128_CCM_8_SHA256 = $03001305; + + (* Aria ciphersuites from RFC6209 *) + TLS1_CK_RSA_WITH_ARIA_128_GCM_SHA256 = $0300C050; + TLS1_CK_RSA_WITH_ARIA_256_GCM_SHA384 = $0300C051; + TLS1_CK_DHE_RSA_WITH_ARIA_128_GCM_SHA256 = $0300C052; + TLS1_CK_DHE_RSA_WITH_ARIA_256_GCM_SHA384 = $0300C053; + TLS1_CK_DH_RSA_WITH_ARIA_128_GCM_SHA256 = $0300C054; + TLS1_CK_DH_RSA_WITH_ARIA_256_GCM_SHA384 = $0300C055; + TLS1_CK_DHE_DSS_WITH_ARIA_128_GCM_SHA256 = $0300C056; + TLS1_CK_DHE_DSS_WITH_ARIA_256_GCM_SHA384 = $0300C057; + TLS1_CK_DH_DSS_WITH_ARIA_128_GCM_SHA256 = $0300C058; + TLS1_CK_DH_DSS_WITH_ARIA_256_GCM_SHA384 = $0300C059; + TLS1_CK_DH_anon_WITH_ARIA_128_GCM_SHA256 = $0300C05A; + TLS1_CK_DH_anon_WITH_ARIA_256_GCM_SHA384 = $0300C05B; + TLS1_CK_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 = $0300C05C; + TLS1_CK_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 = $0300C05D; + TLS1_CK_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 = $0300C05E; + TLS1_CK_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 = $0300C05F; + TLS1_CK_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 = $0300C060; + TLS1_CK_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 = $0300C061; + TLS1_CK_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 = $0300C062; + TLS1_CK_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 = $0300C063; + TLS1_CK_PSK_WITH_ARIA_128_GCM_SHA256 = $0300C06A; + TLS1_CK_PSK_WITH_ARIA_256_GCM_SHA384 = $0300C06B; + TLS1_CK_DHE_PSK_WITH_ARIA_128_GCM_SHA256 = $0300C06C; + TLS1_CK_DHE_PSK_WITH_ARIA_256_GCM_SHA384 = $0300C06D; + TLS1_CK_RSA_PSK_WITH_ARIA_128_GCM_SHA256 = $0300C06E; + TLS1_CK_RSA_PSK_WITH_ARIA_256_GCM_SHA384 = $0300C06F; + + (* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] *) + TLS1_RFC_RSA_WITH_AES_128_SHA = AnsiString('TLS_RSA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_DHE_DSS_WITH_AES_128_SHA = AnsiString('TLS_DHE_DSS_WITH_AES_128_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_AES_128_SHA = AnsiString('TLS_DHE_RSA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_ADH_WITH_AES_128_SHA = AnsiString('TLS_DH_anon_WITH_AES_128_CBC_SHA'); + TLS1_RFC_RSA_WITH_AES_256_SHA = AnsiString('TLS_RSA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_DHE_DSS_WITH_AES_256_SHA = AnsiString('TLS_DHE_DSS_WITH_AES_256_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_AES_256_SHA = AnsiString('TLS_DHE_RSA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_ADH_WITH_AES_256_SHA = AnsiString('TLS_DH_anon_WITH_AES_256_CBC_SHA'); + TLS1_RFC_RSA_WITH_NULL_SHA256 = AnsiString('TLS_RSA_WITH_NULL_SHA256'); + TLS1_RFC_RSA_WITH_AES_128_SHA256 = AnsiString('TLS_RSA_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_RSA_WITH_AES_256_SHA256 = AnsiString('TLS_RSA_WITH_AES_256_CBC_SHA256'); + TLS1_RFC_DHE_DSS_WITH_AES_128_SHA256 = AnsiString('TLS_DHE_DSS_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_DHE_RSA_WITH_AES_128_SHA256 = AnsiString('TLS_DHE_RSA_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_DHE_DSS_WITH_AES_256_SHA256 = AnsiString('TLS_DHE_DSS_WITH_AES_256_CBC_SHA256'); + TLS1_RFC_DHE_RSA_WITH_AES_256_SHA256 = AnsiString('TLS_DHE_RSA_WITH_AES_256_CBC_SHA256'); + TLS1_RFC_ADH_WITH_AES_128_SHA256 = AnsiString('TLS_DH_anon_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_ADH_WITH_AES_256_SHA256 = AnsiString('TLS_DH_anon_WITH_AES_256_CBC_SHA256'); + TLS1_RFC_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_RSA_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_RSA_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_DHE_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_DHE_RSA_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_DHE_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_DHE_RSA_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_DHE_DSS_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_DHE_DSS_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_DHE_DSS_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_DHE_DSS_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_ADH_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_DH_anon_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_ADH_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_DH_anon_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_RSA_WITH_AES_128_CCM = AnsiString('TLS_RSA_WITH_AES_128_CCM'); + TLS1_RFC_RSA_WITH_AES_256_CCM = AnsiString('TLS_RSA_WITH_AES_256_CCM'); + TLS1_RFC_DHE_RSA_WITH_AES_128_CCM = AnsiString('TLS_DHE_RSA_WITH_AES_128_CCM'); + TLS1_RFC_DHE_RSA_WITH_AES_256_CCM = AnsiString('TLS_DHE_RSA_WITH_AES_256_CCM'); + TLS1_RFC_RSA_WITH_AES_128_CCM_8 = AnsiString('TLS_RSA_WITH_AES_128_CCM_8'); + TLS1_RFC_RSA_WITH_AES_256_CCM_8 = AnsiString('TLS_RSA_WITH_AES_256_CCM_8'); + TLS1_RFC_DHE_RSA_WITH_AES_128_CCM_8 = AnsiString('TLS_DHE_RSA_WITH_AES_128_CCM_8'); + TLS1_RFC_DHE_RSA_WITH_AES_256_CCM_8 = AnsiString('TLS_DHE_RSA_WITH_AES_256_CCM_8'); + TLS1_RFC_PSK_WITH_AES_128_CCM = AnsiString('TLS_PSK_WITH_AES_128_CCM'); + TLS1_RFC_PSK_WITH_AES_256_CCM = AnsiString('TLS_PSK_WITH_AES_256_CCM'); + TLS1_RFC_DHE_PSK_WITH_AES_128_CCM = AnsiString('TLS_DHE_PSK_WITH_AES_128_CCM'); + TLS1_RFC_DHE_PSK_WITH_AES_256_CCM = AnsiString('TLS_DHE_PSK_WITH_AES_256_CCM'); + TLS1_RFC_PSK_WITH_AES_128_CCM_8 = AnsiString('TLS_PSK_WITH_AES_128_CCM_8'); + TLS1_RFC_PSK_WITH_AES_256_CCM_8 = AnsiString('TLS_PSK_WITH_AES_256_CCM_8'); + TLS1_RFC_DHE_PSK_WITH_AES_128_CCM_8 = AnsiString('TLS_PSK_DHE_WITH_AES_128_CCM_8'); + TLS1_RFC_DHE_PSK_WITH_AES_256_CCM_8 = AnsiString('TLS_PSK_DHE_WITH_AES_256_CCM_8'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_128_CCM'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_256_CCM'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM_8 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM_8 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8'); + TLS1_3_RFC_AES_128_GCM_SHA256 = AnsiString('TLS_AES_128_GCM_SHA256'); + TLS1_3_RFC_AES_256_GCM_SHA384 = AnsiString('TLS_AES_256_GCM_SHA384'); + TLS1_3_RFC_CHACHA20_POLY1305_SHA256 = AnsiString('TLS_CHACHA20_POLY1305_SHA256'); + TLS1_3_RFC_AES_128_CCM_SHA256 = AnsiString('TLS_AES_128_CCM_SHA256'); + TLS1_3_RFC_AES_128_CCM_8_SHA256 = AnsiString('TLS_AES_128_CCM_8_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_NULL_SHA = AnsiString('TLS_ECDHE_ECDSA_WITH_NULL_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA = AnsiString('TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_ECDHE_RSA_WITH_NULL_SHA = AnsiString('TLS_ECDHE_RSA_WITH_NULL_SHA'); + TLS1_RFC_ECDHE_RSA_WITH_DES_192_CBC3_SHA = AnsiString('TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_ECDHE_RSA_WITH_AES_128_CBC_SHA = AnsiString('TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_ECDHE_RSA_WITH_AES_256_CBC_SHA = AnsiString('TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_ECDH_anon_WITH_NULL_SHA = AnsiString('TLS_ECDH_anon_WITH_NULL_SHA'); + TLS1_RFC_ECDH_anon_WITH_DES_192_CBC3_SHA = AnsiString('TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_ECDH_anon_WITH_AES_128_CBC_SHA = AnsiString('TLS_ECDH_anon_WITH_AES_128_CBC_SHA'); + TLS1_RFC_ECDH_anon_WITH_AES_256_CBC_SHA = AnsiString('TLS_ECDH_anon_WITH_AES_256_CBC_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_SHA256 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_SHA384 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_ECDHE_RSA_WITH_AES_128_SHA256 = AnsiString('TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_ECDHE_RSA_WITH_AES_256_SHA384 = AnsiString('TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_PSK_WITH_NULL_SHA = AnsiString('TLS_PSK_WITH_NULL_SHA'); + TLS1_RFC_DHE_PSK_WITH_NULL_SHA = AnsiString('TLS_DHE_PSK_WITH_NULL_SHA'); + TLS1_RFC_RSA_PSK_WITH_NULL_SHA = AnsiString('TLS_RSA_PSK_WITH_NULL_SHA'); + TLS1_RFC_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_PSK_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_PSK_WITH_AES_128_CBC_SHA = AnsiString('TLS_PSK_WITH_AES_128_CBC_SHA'); + TLS1_RFC_PSK_WITH_AES_256_CBC_SHA = AnsiString('TLS_PSK_WITH_AES_256_CBC_SHA'); + TLS1_RFC_DHE_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA = AnsiString('TLS_DHE_PSK_WITH_AES_128_CBC_SHA'); + TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA = AnsiString('TLS_DHE_PSK_WITH_AES_256_CBC_SHA'); + TLS1_RFC_RSA_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA = AnsiString('TLS_RSA_PSK_WITH_AES_128_CBC_SHA'); + TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA = AnsiString('TLS_RSA_PSK_WITH_AES_256_CBC_SHA'); + TLS1_RFC_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_PSK_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_PSK_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_DHE_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_DHE_PSK_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_DHE_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_DHE_PSK_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_RSA_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('TLS_RSA_PSK_WITH_AES_128_GCM_SHA256'); + TLS1_RFC_RSA_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('TLS_RSA_PSK_WITH_AES_256_GCM_SHA384'); + TLS1_RFC_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('TLS_PSK_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('TLS_PSK_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_PSK_WITH_NULL_SHA256 = AnsiString('TLS_PSK_WITH_NULL_SHA256'); + TLS1_RFC_PSK_WITH_NULL_SHA384 = AnsiString('TLS_PSK_WITH_NULL_SHA384'); + TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('TLS_DHE_PSK_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('TLS_DHE_PSK_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_DHE_PSK_WITH_NULL_SHA256 = AnsiString('TLS_DHE_PSK_WITH_NULL_SHA256'); + TLS1_RFC_DHE_PSK_WITH_NULL_SHA384 = AnsiString('TLS_DHE_PSK_WITH_NULL_SHA384'); + TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('TLS_RSA_PSK_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('TLS_RSA_PSK_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_RSA_PSK_WITH_NULL_SHA256 = AnsiString('TLS_RSA_PSK_WITH_NULL_SHA256'); + TLS1_RFC_RSA_PSK_WITH_NULL_SHA384 = AnsiString('TLS_RSA_PSK_WITH_NULL_SHA384'); + TLS1_RFC_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA = AnsiString('TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA'); + TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA = AnsiString('TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA'); + TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256'); + TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384'); + TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA = AnsiString('TLS_ECDHE_PSK_WITH_NULL_SHA'); + TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA256 = AnsiString('TLS_ECDHE_PSK_WITH_NULL_SHA256'); + TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA384 = AnsiString('TLS_ECDHE_PSK_WITH_NULL_SHA384'); + TLS1_RFC_SRP_SHA_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA = AnsiString('TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA'); + TLS1_RFC_SRP_SHA_WITH_AES_128_CBC_SHA = AnsiString('TLS_SRP_SHA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_SRP_SHA_RSA_WITH_AES_128_CBC_SHA = AnsiString('TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA'); + TLS1_RFC_SRP_SHA_DSS_WITH_AES_128_CBC_SHA = AnsiString('TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA'); + TLS1_RFC_SRP_SHA_WITH_AES_256_CBC_SHA = AnsiString('TLS_SRP_SHA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_SRP_SHA_RSA_WITH_AES_256_CBC_SHA = AnsiString('TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA'); + TLS1_RFC_SRP_SHA_DSS_WITH_AES_256_CBC_SHA = AnsiString('TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_CHACHA20_POLY1305 = AnsiString('TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_ECDHE_RSA_WITH_CHACHA20_POLY1305 = AnsiString('TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 = AnsiString('TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_PSK_WITH_CHACHA20_POLY1305 = AnsiString('TLS_PSK_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_ECDHE_PSK_WITH_CHACHA20_POLY1305 = AnsiString('TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_DHE_PSK_WITH_CHACHA20_POLY1305 = AnsiString('TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_RSA_PSK_WITH_CHACHA20_POLY1305 = AnsiString('TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256'); + TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256'); + TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256'); + TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256'); + TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256'); + TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA = AnsiString('TLS_RSA_WITH_CAMELLIA_256_CBC_SHA'); + TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA = AnsiString('TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA = AnsiString('TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA'); + TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA = AnsiString('TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA'); + TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA = AnsiString('TLS_RSA_WITH_CAMELLIA_128_CBC_SHA'); + TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA = AnsiString('TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA = AnsiString('TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA'); + TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA = AnsiString('TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256'); + TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384'); + TLS1_RFC_RSA_WITH_SEED_SHA = AnsiString('TLS_RSA_WITH_SEED_CBC_SHA'); + TLS1_RFC_DHE_DSS_WITH_SEED_SHA = AnsiString('TLS_DHE_DSS_WITH_SEED_CBC_SHA'); + TLS1_RFC_DHE_RSA_WITH_SEED_SHA = AnsiString('TLS_DHE_RSA_WITH_SEED_CBC_SHA'); + TLS1_RFC_ADH_WITH_SEED_SHA = AnsiString('TLS_DH_anon_WITH_SEED_CBC_SHA'); + TLS1_RFC_ECDHE_PSK_WITH_RC4_128_SHA = AnsiString('TLS_ECDHE_PSK_WITH_RC4_128_SHA'); + TLS1_RFC_ECDH_anon_WITH_RC4_128_SHA = AnsiString('TLS_ECDH_anon_WITH_RC4_128_SHA'); + TLS1_RFC_ECDHE_ECDSA_WITH_RC4_128_SHA = AnsiString('TLS_ECDHE_ECDSA_WITH_RC4_128_SHA'); + TLS1_RFC_ECDHE_RSA_WITH_RC4_128_SHA = AnsiString('TLS_ECDHE_RSA_WITH_RC4_128_SHA'); + TLS1_RFC_PSK_WITH_RC4_128_SHA = AnsiString('TLS_PSK_WITH_RC4_128_SHA'); + TLS1_RFC_RSA_PSK_WITH_RC4_128_SHA = AnsiString('TLS_RSA_PSK_WITH_RC4_128_SHA'); + TLS1_RFC_DHE_PSK_WITH_RC4_128_SHA = AnsiString('TLS_DHE_PSK_WITH_RC4_128_SHA'); + TLS1_RFC_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_RSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_RSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DHE_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DHE_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DH_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DH_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DHE_DSS_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DHE_DSS_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DH_DSS_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DH_DSS_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DH_anon_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DH_anon_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DH_anon_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DH_anon_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_PSK_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_PSK_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_DHE_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_DHE_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384'); + TLS1_RFC_RSA_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256'); + TLS1_RFC_RSA_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384'); + + (* + * XXX Backward compatibility alert: Older versions of OpenSSL gave some DHE + * ciphers names with "EDH" instead of "DHE". Going forward, we should be + * using DHE everywhere, though we may indefinitely maTIdC_INTain aliases for + * users or configurations that used "EDH" + *) + TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA = AnsiString('DHE-DSS-RC4-SHA'); + + TLS1_TXT_PSK_WITH_NULL_SHA = AnsiString('PSK-NULL-SHA'); + TLS1_TXT_DHE_PSK_WITH_NULL_SHA = AnsiString('DHE-PSK-NULL-SHA'); + TLS1_TXT_RSA_PSK_WITH_NULL_SHA = AnsiString('RSA-PSK-NULL-SHA'); + + (* AES ciphersuites from RFC3268 *) + TLS1_TXT_RSA_WITH_AES_128_SHA = AnsiString('AES128-SHA'); + TLS1_TXT_DH_DSS_WITH_AES_128_SHA = AnsiString('DH-DSS-AES128-SHA'); + TLS1_TXT_DH_RSA_WITH_AES_128_SHA = AnsiString('DH-RSA-AES128-SHA'); + TLS1_TXT_DHE_DSS_WITH_AES_128_SHA = AnsiString('DHE-DSS-AES128-SHA'); + TLS1_TXT_DHE_RSA_WITH_AES_128_SHA = AnsiString('DHE-RSA-AES128-SHA'); + TLS1_TXT_ADH_WITH_AES_128_SHA = AnsiString('ADH-AES128-SHA'); + + TLS1_TXT_RSA_WITH_AES_256_SHA = AnsiString('AES256-SHA'); + TLS1_TXT_DH_DSS_WITH_AES_256_SHA = AnsiString('DH-DSS-AES256-SHA'); + TLS1_TXT_DH_RSA_WITH_AES_256_SHA = AnsiString('DH-RSA-AES256-SHA'); + TLS1_TXT_DHE_DSS_WITH_AES_256_SHA = AnsiString('DHE-DSS-AES256-SHA'); + TLS1_TXT_DHE_RSA_WITH_AES_256_SHA = AnsiString('DHE-RSA-AES256-SHA'); + TLS1_TXT_ADH_WITH_AES_256_SHA = AnsiString('ADH-AES256-SHA'); + + (* ECC ciphersuites from RFC4492 *) + TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA = AnsiString('ECDH-ECDSA-NULL-SHA'); + TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA = AnsiString('ECDH-ECDSA-RC4-SHA'); + TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA = AnsiString('ECDH-ECDSA-DES-CBC3-SHA'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA = AnsiString('ECDH-ECDSA-AES128-SHA'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA = AnsiString('ECDH-ECDSA-AES256-SHA'); + + TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA = AnsiString('ECDHE-ECDSA-NULL-SHA'); + TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA = AnsiString('ECDHE-ECDSA-RC4-SHA'); + TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA = AnsiString('ECDHE-ECDSA-DES-CBC3-SHA'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = AnsiString('ECDHE-ECDSA-AES128-SHA'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = AnsiString('ECDHE-ECDSA-AES256-SHA'); + + TLS1_TXT_ECDH_RSA_WITH_NULL_SHA = AnsiString('ECDH-RSA-NULL-SHA'); + TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA = AnsiString('ECDH-RSA-RC4-SHA'); + TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA = AnsiString('ECDH-RSA-DES-CBC3-SHA'); + TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA = AnsiString('ECDH-RSA-AES128-SHA'); + TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA = AnsiString('ECDH-RSA-AES256-SHA'); + + TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA = AnsiString('ECDHE-RSA-NULL-SHA'); + TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA = AnsiString('ECDHE-RSA-RC4-SHA'); + TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA = AnsiString('ECDHE-RSA-DES-CBC3-SHA'); + TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA = AnsiString('ECDHE-RSA-AES128-SHA'); + TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA = AnsiString('ECDHE-RSA-AES256-SHA'); + + TLS1_TXT_ECDH_anon_WITH_NULL_SHA = AnsiString('AECDH-NULL-SHA'); + TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA = AnsiString('AECDH-RC4-SHA'); + TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA = AnsiString('AECDH-DES-CBC3-SHA'); + TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA = AnsiString('AECDH-AES128-SHA'); + TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA = AnsiString('AECDH-AES256-SHA'); + + (* PSK ciphersuites from RFC 4279 *) + TLS1_TXT_PSK_WITH_RC4_128_SHA = AnsiString('PSK-RC4-SHA'); + TLS1_TXT_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('PSK-3DES-EDE-CBC-SHA'); + TLS1_TXT_PSK_WITH_AES_128_CBC_SHA = AnsiString('PSK-AES128-CBC-SHA'); + TLS1_TXT_PSK_WITH_AES_256_CBC_SHA = AnsiString('PSK-AES256-CBC-SHA'); + + TLS1_TXT_DHE_PSK_WITH_RC4_128_SHA = AnsiString('DHE-PSK-RC4-SHA'); + TLS1_TXT_DHE_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('DHE-PSK-3DES-EDE-CBC-SHA'); + TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA = AnsiString('DHE-PSK-AES128-CBC-SHA'); + TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA = AnsiString('DHE-PSK-AES256-CBC-SHA'); + TLS1_TXT_RSA_PSK_WITH_RC4_128_SHA = AnsiString('RSA-PSK-RC4-SHA'); + TLS1_TXT_RSA_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('RSA-PSK-3DES-EDE-CBC-SHA'); + TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA = AnsiString('RSA-PSK-AES128-CBC-SHA'); + TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA = AnsiString('RSA-PSK-AES256-CBC-SHA'); + + (* PSK ciphersuites from RFC 5487 *) + TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('PSK-AES128-GCM-SHA256'); + TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('PSK-AES256-GCM-SHA384'); + TLS1_TXT_DHE_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('DHE-PSK-AES128-GCM-SHA256'); + TLS1_TXT_DHE_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('DHE-PSK-AES256-GCM-SHA384'); + TLS1_TXT_RSA_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('RSA-PSK-AES128-GCM-SHA256'); + TLS1_TXT_RSA_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('RSA-PSK-AES256-GCM-SHA384'); + + TLS1_TXT_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('PSK-AES128-CBC-SHA256'); + TLS1_TXT_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('PSK-AES256-CBC-SHA384'); + TLS1_TXT_PSK_WITH_NULL_SHA256 = AnsiString('PSK-NULL-SHA256'); + TLS1_TXT_PSK_WITH_NULL_SHA384 = AnsiString('PSK-NULL-SHA384'); + + TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('DHE-PSK-AES128-CBC-SHA256'); + TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('DHE-PSK-AES256-CBC-SHA384'); + TLS1_TXT_DHE_PSK_WITH_NULL_SHA256 = AnsiString('DHE-PSK-NULL-SHA256'); + TLS1_TXT_DHE_PSK_WITH_NULL_SHA384 = AnsiString('DHE-PSK-NULL-SHA384'); + + TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('RSA-PSK-AES128-CBC-SHA256'); + TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('RSA-PSK-AES256-CBC-SHA384'); + TLS1_TXT_RSA_PSK_WITH_NULL_SHA256 = AnsiString('RSA-PSK-NULL-SHA256'); + TLS1_TXT_RSA_PSK_WITH_NULL_SHA384 = AnsiString('RSA-PSK-NULL-SHA384'); + + (* SRP ciphersuite from RFC 5054 *) + TLS1_TXT_SRP_SHA_WITH_3DES_EDE_CBC_SHA = AnsiString('SRP-3DES-EDE-CBC-SHA'); + TLS1_TXT_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA = AnsiString('SRP-RSA-3DES-EDE-CBC-SHA'); + TLS1_TXT_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA = AnsiString('SRP-DSS-3DES-EDE-CBC-SHA'); + TLS1_TXT_SRP_SHA_WITH_AES_128_CBC_SHA = AnsiString('SRP-AES-128-CBC-SHA'); + TLS1_TXT_SRP_SHA_RSA_WITH_AES_128_CBC_SHA = AnsiString('SRP-RSA-AES-128-CBC-SHA'); + TLS1_TXT_SRP_SHA_DSS_WITH_AES_128_CBC_SHA = AnsiString('SRP-DSS-AES-128-CBC-SHA'); + TLS1_TXT_SRP_SHA_WITH_AES_256_CBC_SHA = AnsiString('SRP-AES-256-CBC-SHA'); + TLS1_TXT_SRP_SHA_RSA_WITH_AES_256_CBC_SHA = AnsiString('SRP-RSA-AES-256-CBC-SHA'); + TLS1_TXT_SRP_SHA_DSS_WITH_AES_256_CBC_SHA = AnsiString('SRP-DSS-AES-256-CBC-SHA'); + + (* Camellia ciphersuites from RFC4132 *) + TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA = AnsiString('CAMELLIA128-SHA'); + TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA = AnsiString('DH-DSS-CAMELLIA128-SHA'); + TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA = AnsiString('DH-RSA-CAMELLIA128-SHA'); + TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA = AnsiString('DHE-DSS-CAMELLIA128-SHA'); + TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA = AnsiString('DHE-RSA-CAMELLIA128-SHA'); + TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA = AnsiString('ADH-CAMELLIA128-SHA'); + + TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA = AnsiString('CAMELLIA256-SHA'); + TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA = AnsiString('DH-DSS-CAMELLIA256-SHA'); + TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA = AnsiString('DH-RSA-CAMELLIA256-SHA'); + TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA = AnsiString('DHE-DSS-CAMELLIA256-SHA'); + TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA = AnsiString('DHE-RSA-CAMELLIA256-SHA'); + TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA = AnsiString('ADH-CAMELLIA256-SHA'); + + (* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 *) + TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('CAMELLIA128-SHA256'); + TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('DH-DSS-CAMELLIA128-SHA256'); + TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('DH-RSA-CAMELLIA128-SHA256'); + TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('DHE-DSS-CAMELLIA128-SHA256'); + TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('DHE-RSA-CAMELLIA128-SHA256'); + TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ADH-CAMELLIA128-SHA256'); + + TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('CAMELLIA256-SHA256'); + TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('DH-DSS-CAMELLIA256-SHA256'); + TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('DH-RSA-CAMELLIA256-SHA256'); + TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('DHE-DSS-CAMELLIA256-SHA256'); + TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('DHE-RSA-CAMELLIA256-SHA256'); + TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA256 = AnsiString('ADH-CAMELLIA256-SHA256'); + + TLS1_TXT_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('PSK-CAMELLIA128-SHA256'); + TLS1_TXT_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('PSK-CAMELLIA256-SHA384'); + TLS1_TXT_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('DHE-PSK-CAMELLIA128-SHA256'); + TLS1_TXT_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('DHE-PSK-CAMELLIA256-SHA384'); + TLS1_TXT_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('RSA-PSK-CAMELLIA128-SHA256'); + TLS1_TXT_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('RSA-PSK-CAMELLIA256-SHA384'); + TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ECDHE-PSK-CAMELLIA128-SHA256'); + TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('ECDHE-PSK-CAMELLIA256-SHA384'); + + (* SEED ciphersuites from RFC4162 *) + TLS1_TXT_RSA_WITH_SEED_SHA = AnsiString('SEED-SHA'); + TLS1_TXT_DH_DSS_WITH_SEED_SHA = AnsiString('DH-DSS-SEED-SHA'); + TLS1_TXT_DH_RSA_WITH_SEED_SHA = AnsiString('DH-RSA-SEED-SHA'); + TLS1_TXT_DHE_DSS_WITH_SEED_SHA = AnsiString('DHE-DSS-SEED-SHA'); + TLS1_TXT_DHE_RSA_WITH_SEED_SHA = AnsiString('DHE-RSA-SEED-SHA'); + TLS1_TXT_ADH_WITH_SEED_SHA = AnsiString('ADH-SEED-SHA'); + + (* TLS v1.2 ciphersuites *) + TLS1_TXT_RSA_WITH_NULL_SHA256 = AnsiString('NULL-SHA256'); + TLS1_TXT_RSA_WITH_AES_128_SHA256 = AnsiString('AES128-SHA256'); + TLS1_TXT_RSA_WITH_AES_256_SHA256 = AnsiString('AES256-SHA256'); + TLS1_TXT_DH_DSS_WITH_AES_128_SHA256 = AnsiString('DH-DSS-AES128-SHA256'); + TLS1_TXT_DH_RSA_WITH_AES_128_SHA256 = AnsiString('DH-RSA-AES128-SHA256'); + TLS1_TXT_DHE_DSS_WITH_AES_128_SHA256 = AnsiString('DHE-DSS-AES128-SHA256'); + TLS1_TXT_DHE_RSA_WITH_AES_128_SHA256 = AnsiString('DHE-RSA-AES128-SHA256'); + TLS1_TXT_DH_DSS_WITH_AES_256_SHA256 = AnsiString('DH-DSS-AES256-SHA256'); + TLS1_TXT_DH_RSA_WITH_AES_256_SHA256 = AnsiString('DH-RSA-AES256-SHA256'); + TLS1_TXT_DHE_DSS_WITH_AES_256_SHA256 = AnsiString('DHE-DSS-AES256-SHA256'); + TLS1_TXT_DHE_RSA_WITH_AES_256_SHA256 = AnsiString('DHE-RSA-AES256-SHA256'); + TLS1_TXT_ADH_WITH_AES_128_SHA256 = AnsiString('ADH-AES128-SHA256'); + TLS1_TXT_ADH_WITH_AES_256_SHA256 = AnsiString('ADH-AES256-SHA256'); + + (* TLS v1.2 GCM ciphersuites from RFC5288 *) + TLS1_TXT_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('AES128-GCM-SHA256'); + TLS1_TXT_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('AES256-GCM-SHA384'); + TLS1_TXT_DHE_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('DHE-RSA-AES128-GCM-SHA256'); + TLS1_TXT_DHE_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('DHE-RSA-AES256-GCM-SHA384'); + TLS1_TXT_DH_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('DH-RSA-AES128-GCM-SHA256'); + TLS1_TXT_DH_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('DH-RSA-AES256-GCM-SHA384'); + TLS1_TXT_DHE_DSS_WITH_AES_128_GCM_SHA256 = AnsiString('DHE-DSS-AES128-GCM-SHA256'); + TLS1_TXT_DHE_DSS_WITH_AES_256_GCM_SHA384 = AnsiString('DHE-DSS-AES256-GCM-SHA384'); + TLS1_TXT_DH_DSS_WITH_AES_128_GCM_SHA256 = AnsiString('DH-DSS-AES128-GCM-SHA256'); + TLS1_TXT_DH_DSS_WITH_AES_256_GCM_SHA384 = AnsiString('DH-DSS-AES256-GCM-SHA384'); + TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256 = AnsiString('ADH-AES128-GCM-SHA256'); + TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384 = AnsiString('ADH-AES256-GCM-SHA384'); + + (* CCM ciphersuites from RFC6655 *) + TLS1_TXT_RSA_WITH_AES_128_CCM = AnsiString('AES128-CCM'); + TLS1_TXT_RSA_WITH_AES_256_CCM = AnsiString('AES256-CCM'); + TLS1_TXT_DHE_RSA_WITH_AES_128_CCM = AnsiString('DHE-RSA-AES128-CCM'); + TLS1_TXT_DHE_RSA_WITH_AES_256_CCM = AnsiString('DHE-RSA-AES256-CCM'); + + TLS1_TXT_RSA_WITH_AES_128_CCM_8 = AnsiString('AES128-CCM8'); + TLS1_TXT_RSA_WITH_AES_256_CCM_8 = AnsiString('AES256-CCM8'); + TLS1_TXT_DHE_RSA_WITH_AES_128_CCM_8 = AnsiString('DHE-RSA-AES128-CCM8'); + TLS1_TXT_DHE_RSA_WITH_AES_256_CCM_8 = AnsiString('DHE-RSA-AES256-CCM8'); + + TLS1_TXT_PSK_WITH_AES_128_CCM = AnsiString('PSK-AES128-CCM'); + TLS1_TXT_PSK_WITH_AES_256_CCM = AnsiString('PSK-AES256-CCM'); + TLS1_TXT_DHE_PSK_WITH_AES_128_CCM = AnsiString('DHE-PSK-AES128-CCM'); + TLS1_TXT_DHE_PSK_WITH_AES_256_CCM = AnsiString('DHE-PSK-AES256-CCM'); + + TLS1_TXT_PSK_WITH_AES_128_CCM_8 = AnsiString('PSK-AES128-CCM8'); + TLS1_TXT_PSK_WITH_AES_256_CCM_8 = AnsiString('PSK-AES256-CCM8'); + TLS1_TXT_DHE_PSK_WITH_AES_128_CCM_8 = AnsiString('DHE-PSK-AES128-CCM8'); + TLS1_TXT_DHE_PSK_WITH_AES_256_CCM_8 = AnsiString('DHE-PSK-AES256-CCM8'); + + (* CCM ciphersuites from RFC7251 *) + TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM = AnsiString('ECDHE-ECDSA-AES128-CCM'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM = AnsiString('ECDHE-ECDSA-AES256-CCM'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM_8 = AnsiString('ECDHE-ECDSA-AES128-CCM8'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM_8 = AnsiString('ECDHE-ECDSA-AES256-CCM8'); + + (* ECDH HMAC based ciphersuites from RFC5289 *) + TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256 = AnsiString('ECDHE-ECDSA-AES128-SHA256'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_SHA384 = AnsiString('ECDHE-ECDSA-AES256-SHA384'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_128_SHA256 = AnsiString('ECDH-ECDSA-AES128-SHA256'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_256_SHA384 = AnsiString('ECDH-ECDSA-AES256-SHA384'); + TLS1_TXT_ECDHE_RSA_WITH_AES_128_SHA256 = AnsiString('ECDHE-RSA-AES128-SHA256'); + TLS1_TXT_ECDHE_RSA_WITH_AES_256_SHA384 = AnsiString('ECDHE-RSA-AES256-SHA384'); + TLS1_TXT_ECDH_RSA_WITH_AES_128_SHA256 = AnsiString('ECDH-RSA-AES128-SHA256'); + TLS1_TXT_ECDH_RSA_WITH_AES_256_SHA384 = AnsiString('ECDH-RSA-AES256-SHA384'); + + (* ECDH GCM based ciphersuites from RFC5289 *) + TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = AnsiString('ECDHE-ECDSA-AES128-GCM-SHA256'); + TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = AnsiString('ECDHE-ECDSA-AES256-GCM-SHA384'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = AnsiString('ECDH-ECDSA-AES128-GCM-SHA256'); + TLS1_TXT_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = AnsiString('ECDH-ECDSA-AES256-GCM-SHA384'); + TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('ECDHE-RSA-AES128-GCM-SHA256'); + TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('ECDHE-RSA-AES256-GCM-SHA384'); + TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256 = AnsiString('ECDH-RSA-AES128-GCM-SHA256'); + TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384 = AnsiString('ECDH-RSA-AES256-GCM-SHA384'); + + (* TLS v1.2 PSK GCM ciphersuites from RFC5487 *) + //TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256 = AnsiString('PSK-AES128-GCM-SHA256'); + //TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384 = AnsiString('PSK-AES256-GCM-SHA384'); + + (* ECDHE PSK ciphersuites from RFC 5489 *) + TLS1_TXT_ECDHE_PSK_WITH_RC4_128_SHA = AnsiString('ECDHE-PSK-RC4-SHA'); + TLS1_TXT_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA = AnsiString('ECDHE-PSK-3DES-EDE-CBC-SHA'); + TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA = AnsiString('ECDHE-PSK-AES128-CBC-SHA'); + TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA = AnsiString('ECDHE-PSK-AES256-CBC-SHA'); + + TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA256 = AnsiString('ECDHE-PSK-AES128-CBC-SHA256'); + TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA384 = AnsiString('ECDHE-PSK-AES256-CBC-SHA384'); + + TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA = AnsiString('ECDHE-PSK-NULL-SHA'); + TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA256 = AnsiString('ECDHE-PSK-NULL-SHA256'); + TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA384 = AnsiString('ECDHE-PSK-NULL-SHA384'); + + (* Camellia-CBC ciphersuites from RFC6367 *) + TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ECDHE-ECDSA-CAMELLIA128-SHA256'); + TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('ECDHE-ECDSA-CAMELLIA256-SHA384'); + TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ECDH-ECDSA-CAMELLIA128-SHA256'); + TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('ECDH-ECDSA-CAMELLIA256-SHA384'); + TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ECDHE-RSA-CAMELLIA128-SHA256'); + TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('ECDHE-RSA-CAMELLIA256-SHA384'); + TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 = AnsiString('ECDH-RSA-CAMELLIA128-SHA256'); + TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 = AnsiString('ECDH-RSA-CAMELLIA256-SHA384'); + + (* draft-ietf-tls-chacha20-poly1305-03 *) + TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305 = AnsiString('ECDHE-RSA-CHACHA20-POLY1305'); + TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 = AnsiString('ECDHE-ECDSA-CHACHA20-POLY1305'); + TLS1_TXT_DHE_RSA_WITH_CHACHA20_POLY1305 = AnsiString('DHE-RSA-CHACHA20-POLY1305'); + TLS1_TXT_PSK_WITH_CHACHA20_POLY1305 = AnsiString('PSK-CHACHA20-POLY1305'); + TLS1_TXT_ECDHE_PSK_WITH_CHACHA20_POLY1305 = AnsiString('ECDHE-PSK-CHACHA20-POLY1305'); + TLS1_TXT_DHE_PSK_WITH_CHACHA20_POLY1305 = AnsiString('DHE-PSK-CHACHA20-POLY1305'); + TLS1_TXT_RSA_PSK_WITH_CHACHA20_POLY1305 = AnsiString('RSA-PSK-CHACHA20-POLY1305'); + + (* Aria ciphersuites from RFC6209 *) + TLS1_TXT_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('ARIA128-GCM-SHA256'); + TLS1_TXT_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('ARIA256-GCM-SHA384'); + TLS1_TXT_DHE_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('DHE-RSA-ARIA128-GCM-SHA256'); + TLS1_TXT_DHE_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('DHE-RSA-ARIA256-GCM-SHA384'); + TLS1_TXT_DH_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('DH-RSA-ARIA128-GCM-SHA256'); + TLS1_TXT_DH_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('DH-RSA-ARIA256-GCM-SHA384'); + TLS1_TXT_DHE_DSS_WITH_ARIA_128_GCM_SHA256 = AnsiString('DHE-DSS-ARIA128-GCM-SHA256'); + TLS1_TXT_DHE_DSS_WITH_ARIA_256_GCM_SHA384 = AnsiString('DHE-DSS-ARIA256-GCM-SHA384'); + TLS1_TXT_DH_DSS_WITH_ARIA_128_GCM_SHA256 = AnsiString('DH-DSS-ARIA128-GCM-SHA256'); + TLS1_TXT_DH_DSS_WITH_ARIA_256_GCM_SHA384 = AnsiString('DH-DSS-ARIA256-GCM-SHA384'); + TLS1_TXT_DH_anon_WITH_ARIA_128_GCM_SHA256 = AnsiString('ADH-ARIA128-GCM-SHA256'); + TLS1_TXT_DH_anon_WITH_ARIA_256_GCM_SHA384 = AnsiString('ADH-ARIA256-GCM-SHA384'); + TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('ECDHE-ECDSA-ARIA128-GCM-SHA256'); + TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('ECDHE-ECDSA-ARIA256-GCM-SHA384'); + TLS1_TXT_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('ECDH-ECDSA-ARIA128-GCM-SHA256'); + TLS1_TXT_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('ECDH-ECDSA-ARIA256-GCM-SHA384'); + TLS1_TXT_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('ECDHE-ARIA128-GCM-SHA256'); + TLS1_TXT_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('ECDHE-ARIA256-GCM-SHA384'); + TLS1_TXT_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 = AnsiString('ECDH-ARIA128-GCM-SHA256'); + TLS1_TXT_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 = AnsiString('ECDH-ARIA256-GCM-SHA384'); + TLS1_TXT_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('PSK-ARIA128-GCM-SHA256'); + TLS1_TXT_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('PSK-ARIA256-GCM-SHA384'); + TLS1_TXT_DHE_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('DHE-PSK-ARIA128-GCM-SHA256'); + TLS1_TXT_DHE_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('DHE-PSK-ARIA256-GCM-SHA384'); + TLS1_TXT_RSA_PSK_WITH_ARIA_128_GCM_SHA256 = AnsiString('RSA-PSK-ARIA128-GCM-SHA256'); + TLS1_TXT_RSA_PSK_WITH_ARIA_256_GCM_SHA384 = AnsiString('RSA-PSK-ARIA256-GCM-SHA384'); + + TLS_CT_RSA_SIGN = 1; + TLS_CT_DSS_SIGN = 2; + TLS_CT_RSA_FIXED_DH = 3; + TLS_CT_DSS_FIXED_DH = 4; + TLS_CT_ECDSA_SIGN = 64; + TLS_CT_RSA_FIXED_ECDH = 65; + TLS_CT_ECDSA_FIXED_ECDH = 66; + TLS_CT_GOST01_SIGN = 22; + TLS_CT_GOST12_SIGN = 238; + TLS_CT_GOST12_512_SIGN = 239; + + (* + * when correcting this number, correct also SSL3_CT_NUMBER in ssl3.h (see + * comment there) + *) + TLS_CT_NUMBER = 10; + + TLS1_FINISH_MAC_LENGTH = 12; + + TLS_MD_MAX_CONST_SIZE = 22; + TLS_MD_CLIENT_FINISH_CONST = AnsiString('client finished'); + TLS_MD_CLIENT_FINISH_CONST_SIZE = 15; + TLS_MD_SERVER_FINISH_CONST = AnsiString('server finished'); + TLS_MD_SERVER_FINISH_CONST_SIZE = 15; + TLS_MD_KEY_EXPANSION_CONST = AnsiString('key expansion'); + TLS_MD_KEY_EXPANSION_CONST_SIZE = 13; + TLS_MD_CLIENT_WRITE_KEY_CONST = AnsiString('client write key'); + TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE = 16; + TLS_MD_SERVER_WRITE_KEY_CONST = AnsiString('server write key'); + TLS_MD_SERVER_WRITE_KEY_CONST_SIZE = 16; + TLS_MD_IV_BLOCK_CONST = AnsiString('IV block'); + TLS_MD_IV_BLOCK_CONST_SIZE = 8; + TLS_MD_MASTER_SECRET_CONST = AnsiString('master secret'); + TLS_MD_MASTER_SECRET_CONST_SIZE = 13; + TLS_MD_EXTENDED_MASTER_SECRET_CONST = AnsiString('extended master secret'); + TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE = 22; + +// (* +// * client finished +// *) +// TLS_MD_CLIENT_FINISH_CONST = TIdAnsiChar($63) + TIdAnsiChar($6c) + TIdAnsiChar($69) + TIdAnsiChar($65) + TIdAnsiChar($6e) + TIdAnsiChar($74) + TIdAnsiChar($20) + TIdAnsiChar($66) + TIdAnsiChar($69) + TIdAnsiChar($6e) + TIdAnsiChar($69) + TIdAnsiChar($73) + TIdAnsiChar($68) + TIdAnsiChar($65) + TIdAnsiChar($64); +// +// (* +// * server finished +// *) +// TLS_MD_SERVER_FINISH_CONST = TIdAnsiChar($73) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($76) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($20) + TIdAnsiChar($66) + TIdAnsiChar($69) + TIdAnsiChar($6e) + TIdAnsiChar($69) + TIdAnsiChar($73) + TIdAnsiChar($68) + TIdAnsiChar($65) + TIdAnsiChar($64); +// +// (* +// * server write key +// *) +// TLS_MD_SERVER_WRITE_KEY_CONST = TIdAnsiChar($73) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($76) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($20) + TIdAnsiChar($77) + TIdAnsiChar($72) + TIdAnsiChar($69) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($20) + TIdAnsiChar($6b) + TIdAnsiChar($65) + TIdAnsiChar($79); +// +// (* +// * key expansion +// *) +// TLS_MD_KEY_EXPANSION_CONST = TIdAnsiChar($6b) + TIdAnsiChar($65) + TIdAnsiChar($79) + TIdAnsiChar($20) + TIdAnsiChar($65) + TIdAnsiChar($78) + TIdAnsiChar($70) + TIdAnsiChar($61) + TIdAnsiChar($6e) + TIdAnsiChar($73) + TIdAnsiChar($69) + TIdAnsiChar($6f) + TIdAnsiChar($6e); +// +// (* +// * client write key +// *) +// TLS_MD_CLIENT_WRITE_KEY_CONST = TIdAnsiChar($63) + TIdAnsiChar($6c) + TIdAnsiChar($69) + TIdAnsiChar($65) + TIdAnsiChar($6e) + TIdAnsiChar($74) + TIdAnsiChar($20) + TIdAnsiChar($77) + TIdAnsiChar($72) + TIdAnsiChar($69) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($20) + TIdAnsiChar($6b) + TIdAnsiChar($65) + TIdAnsiChar($79); +// +// (* +// * server write key +// *) +// TLS_MD_SERVER_WRITE_KEY_CONST = TIdAnsiChar($73) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($76) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($20) + TIdAnsiChar($77) + TIdAnsiChar($72) + TIdAnsiChar($69) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($20) + TIdAnsiChar($6b) + TIdAnsiChar($65) + TIdAnsiChar($79); +// +// (* +// * IV block +// *) +// TLS_MD_IV_BLOCK_CONST = TIdAnsiChar($49) + TIdAnsiChar($56) + TIdAnsiChar($20) + TIdAnsiChar($62) + TIdAnsiChar($6c) + TIdAnsiChar($6f) + TIdAnsiChar($63) + TIdAnsiChar($6b); +// +// (* +// * master secret +// *) +// TLS_MD_MASTER_SECRET_CONST = TIdAnsiChar($6d) + TIdAnsiChar($61) + TIdAnsiChar($73) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($20) + TIdAnsiChar($73) + TIdAnsiChar($65) + TIdAnsiChar($63) + TIdAnsiChar($72) + TIdAnsiChar($65) + TIdAnsiChar($74); +// +// (* +// * extended master secret +// *) +// TLS_MD_EXTENDED_MASTER_SECRET_CONST = TIdAnsiChar($65) + TIdAnsiChar($78) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($6e) + TIdAnsiChar($64) + TIdAnsiChar($65) + TIdAnsiChar($64) + TIdAnsiChar($20) + TIdAnsiChar($6d) + TIdAnsiChar($61) + TIdAnsiChar($73) + TIdAnsiChar($74) + TIdAnsiChar($65) + TIdAnsiChar($72) + TIdAnsiChar($20) + TIdAnsiChar($73) + TIdAnsiChar($65) + TIdAnsiChar($63) + TIdAnsiChar($72) + TIdAnsiChar($65) + TIdAnsiChar($74); + +type + (* TLS Session Ticket extension struct *) + tls_session_ticket_ext_st = record + length: TIdC_USHORT; + data: Pointer; + end; + +function SSL_set_tlsext_host_name(s: PSSL; const name: PIdAnsiChar): TIdC_LONG; {removed 1.0.0} + + function SSL_CTX_set_tlsext_max_fragment_length(ctx: PSSL_CTx; mode: TIdC_UINT8): TIdC_INT; {introduced 1.1.0} + function SSL_set_tlsext_max_fragment_length(ssl: PSSL; mode: TIdC_UINT8): TIdC_INT; {introduced 1.1.0} + + function SSL_get_servername(const s: PSSL; const type_: TIdC_INT): PIdAnsiChar; + function SSL_get_servername_type(const s: PSSL): TIdC_INT; + (* + * SSL_export_keying_material exports a value derived from the master secret, + * as specified in RFC 5705. It writes |olen| bytes to |out| given a label and + * optional context. (Since a zero length context is allowed, the |use_context| + * flag controls whether a context is included.) It returns 1 on success and + * 0 or -1 otherwise. + *) + function SSL_export_keying_material(s: PSSL; out_: PByte; olen: TIdC_SIZET; const label_: PIdAnsiChar; llen: TIdC_SIZET; const context: PByte; contextlen: TIdC_SIZET; use_context: TIdC_INT): TIdC_INT; + + (* + * SSL_export_keying_material_early exports a value derived from the + * early exporter master secret, as specified in + * https://tools.ietf.org/html/draft-ietf-tls-tls13-23. It writes + * |olen| bytes to |out| given a label and optional context. It + * returns 1 on success and 0 otherwise. + *) + function SSL_export_keying_material_early(s: PSSL; out_: PByte; olen: TIdC_SIZET; const label_: PIdAnsiChar; llen: TIdC_SIZET; const context: PByte; contextlen: TIdC_SIZET): TIdC_INT; {introduced 1.1.0} + + function SSL_get_peer_signature_type_nid(const s: PSSl; pnid: PIdC_INT): TIdC_INT; {introduced 1.1.0} + function SSL_get_signature_type_nid(const s: PSSl; pnid: PIdC_INT): TIdC_INT; {introduced 1.1.0} + function SSL_get_sigalgs(s: PSSl; idx: TIdC_INT; psign: PIdC_INT; phash: PIdC_INT; psignandhash: PIdC_INT; rsig: PByte; rhash: PByte): TIdC_INT; + function SSL_get_shared_sigalgs(s: PSSl; idx: TIdC_INT; psign: PIdC_INT; phash: PIdC_INT; psignandhash: PIdC_INT; rsig: PByte; rhash: PByte): TIdC_INT; + + //__owur TIdC_INT SSL_check_chain(s: PSSL, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain); + + //# define SSL_set_tlsext_debug_callback(ssl, cb) \ + // SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,\ + // (void (*)(void))cb) + + //# define SSL_set_tlsext_debug_arg(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg) + // + //# define SSL_get_tlsext_status_type(ssl) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL) + // + //# define SSL_set_tlsext_status_type(ssl, type) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL) + // + //# define SSL_get_tlsext_status_exts(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS,0,arg) + // + //# define SSL_set_tlsext_status_exts(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS,0,arg) + // + //# define SSL_get_tlsext_status_ids(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS,0,arg) + // + //# define SSL_set_tlsext_status_ids(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS,0,arg) + // + //# define SSL_get_tlsext_status_ocsp_resp(ssl, arg) \ + // SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP,0,arg) + // + //# define SSL_set_tlsext_status_ocsp_resp(ssl, arg, arglen) \ + // SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP,arglen,arg) + // + //# define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \ + // SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_CB,\ + // (void (*)(void))cb) + + //# define SSL_CTX_set_tlsext_servername_arg(ctx, arg) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG,0,arg) + // + //# define SSL_CTX_get_tlsext_ticket_keys(ctx, keys, keylen) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_GET_TLSEXT_TICKET_KEYS,keylen,keys) + //# define SSL_CTX_set_tlsext_ticket_keys(ctx, keys, keylen) \ + // SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_TICKET_KEYS,keylen,keys) + // + //# define SSL_CTX_get_tlsext_status_cb(ssl, cb) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB,0,(void *)cb) + //# define SSL_CTX_set_tlsext_status_cb(ssl, cb) \ + // SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB,\ + // (void (*)(void))cb) + + //# define SSL_CTX_get_tlsext_status_arg(ssl, arg) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG,0,arg) + //# define SSL_CTX_set_tlsext_status_arg(ssl, arg) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG,0,arg) + // + //# define SSL_CTX_set_tlsext_status_type(ssl, type) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL) + // + //# define SSL_CTX_get_tlsext_status_type(ssl) \ + // SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL) + // + //# define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \ + // SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,\ + // (void (*)(void))cb) + +implementation + +uses + IdOpenSSLHeaders_ssl; + +//# define SSL_set_tlsext_host_name(s,name) SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name, (void *)name) +function SSL_set_tlsext_host_name(s: PSSL; const name: PIdAnsiChar): TIdC_LONG; +begin + Result := SSL_ctrl(s, SSL_CTRL_SET_TLSEXT_HOSTNAME, TLSEXT_NAMETYPE_host_name, Pointer(name)); +end; + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ts.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ts.h2pas new file mode 100644 index 000000000..ac92d311a --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ts.h2pas @@ -0,0 +1,552 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ts; + +interface + +// Headers for OpenSSL 1.1.1 +// ts.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_asn1, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_pkcs7, + IdOpenSSLHeaders_rsa, + IdOpenSSLHeaders_tserr, + IdOpenSSLHeaders_x509, + IdOpenSSLHeaders_x509v3; + +const + (* Possible values for status. *) + TS_STATUS_GRANTED = 0; + TS_STATUS_GRANTED_WITH_MODS = 1; + TS_STATUS_REJECTION = 2; + TS_STATUS_WAITING = 3; + TS_STATUS_REVOCATION_WARNING = 4; + TS_STATUS_REVOCATION_NOTIFICATION = 5; + + + (* Possible values for failure_info. *) + TS_INFO_BAD_ALG = 0; + TS_INFO_BAD_REQUEST = 2; + TS_INFO_BAD_DATA_FORMAT = 5; + TS_INFO_TIME_NOT_AVAILABLE = 14; + TS_INFO_UNACCEPTED_POLICY = 15; + TS_INFO_UNACCEPTED_EXTENSION = 16; + TS_INFO_ADD_INFO_NOT_AVAILABLE = 17; + TS_INFO_SYSTEM_FAILURE = 25; + + (* Optional flags for response generation. *) + + (* Don't include the TSA name in response. *) + TS_TSA_NAME = $01; + + (* Set ordering to true in response. *) + TS_ORDERING = $02; + + (* + * Include the signer certificate and the other specified certificates in + * the ESS signing certificate attribute beside the PKCS7 signed data. + * Only the signer certificates is included by default. + *) + TS_ESS_CERT_ID_CHAIN = $04; + + (* At most we accept usec precision. *) + TS_MAX_CLOCK_PRECISION_DIGITS = 6; + + (* Maximum status message length *) + TS_MAX_STATUS_LENGTH = 1024 * 1024; + + (* Verify the signer's certificate and the signature of the response. *) + TS_VFY_SIGNATURE = TIdC_UINT(1) shl 0; + (* Verify the version number of the response. *) + TS_VFY_VERSION = TIdC_UINT(1) shl 1; + (* Verify if the policy supplied by the user matches the policy of the TSA. *) + TS_VFY_POLICY = TIdC_UINT(1) shl 2; + (* + * Verify the message imprint provided by the user. This flag should not be + * specified with TS_VFY_DATA. + *) + TS_VFY_IMPRINT = TIdC_UINT(1) shl 3; + (* + * Verify the message imprint computed by the verify method from the user + * provided data and the MD algorithm of the response. This flag should not + * be specified with TS_VFY_IMPRINT. + *) + TS_VFY_DATA = TIdC_UINT(1) shl 4; + (* Verify the nonce value. *) + TS_VFY_NONCE = TIdC_UINT(1) shl 5; + (* Verify if the TSA name field matches the signer certificate. *) + TS_VFY_SIGNER = TIdC_UINT(1) shl 6; + (* Verify if the TSA name field equals to the user provided name. *) + TS_VFY_TSA_NAME = TIdC_UINT(1) shl 7; + + (* You can use the following convenience constants. *) + TS_VFY_ALL_IMPRINT = TS_VFY_SIGNATURE or TS_VFY_VERSION or TS_VFY_POLICY + or TS_VFY_IMPRINT or TS_VFY_NONCE or TS_VFY_SIGNER or TS_VFY_TSA_NAME; + + TS_VFY_ALL_DATA = TS_VFY_SIGNATURE or TS_VFY_VERSION or TS_VFY_POLICY + or TS_VFY_DATA or TS_VFY_NONCE or TS_VFY_SIGNER or TS_VFY_TSA_NAME; + +type + TS_msg_imprint_st = type Pointer; + TS_req_st = type Pointer; + TS_accuracy_st = type Pointer; + TS_tst_info_st = type Pointer; + + TS_MSG_IMPRINT = TS_msg_imprint_st; + PTS_MSG_IMPRINT = ^TS_MSG_IMPRINT; + PPTS_MSG_IMPRINT = ^PTS_MSG_IMPRINT; + + TS_REQ = TS_req_st; + PTS_REQ = ^TS_REQ; + PPTS_REQ = ^PTS_REQ; + + TS_ACCURACY = TS_accuracy_st; + PTS_ACCURACY = ^TS_ACCURACY; + PPTS_ACCURACY = ^PTS_ACCURACY; + + TS_TST_INFO = TS_tst_info_st; + PTS_TST_INFO = ^TS_TST_INFO; + PPTS_TST_INFO = ^PTS_TST_INFO; + + TS_status_info_st = type Pointer; + ESS_issuer_serial_st = type Pointer; + ESS_cert_id_st = type Pointer; + ESS_signing_cert_st = type Pointer; + ESS_cert_id_v2_st = type Pointer; + ESS_signing_cert_v2_st = type Pointer; + + TS_STATUS_INFO = TS_status_info_st; + PTS_STATUS_INFO = ^TS_STATUS_INFO; + PPTS_STATUS_INFO = ^PTS_STATUS_INFO; + + ESS_ISSUER_SERIAL = ESS_issuer_serial_st; + PESS_ISSUER_SERIAL = ^ESS_ISSUER_SERIAL; + PPESS_ISSUER_SERIAL = ^PESS_ISSUER_SERIAL; + + ESS_CERT_ID = ESS_cert_id_st; + PESS_CERT_ID = ^ESS_CERT_ID; + PPESS_CERT_ID = ^PESS_CERT_ID; + + ESS_SIGNING_CERT = ESS_signing_cert_st; + PESS_SIGNING_CERT = ^ESS_SIGNING_CERT; + PPESS_SIGNING_CERT = ^PESS_SIGNING_CERT; + +// DEFINE_STACK_OF(ESS_CERT_ID) + + ESS_CERT_ID_V2 = ESS_cert_id_v2_st; + PESS_CERT_ID_V2 = ^ESS_CERT_ID_V2; + PPESS_CERT_ID_V2 = ^PESS_CERT_ID_V2; + + ESS_SIGNING_CERT_V2 = ESS_signing_cert_v2_st; + PESS_SIGNING_CERT_V2 = ^ESS_SIGNING_CERT_V2; + PPESS_SIGNING_CERT_V2 = ^PESS_SIGNING_CERT_V2; + +// DEFINE_STACK_OF(ESS_CERT_ID_V2) + TS_resp_st = type Pointer; + TS_RESP = TS_resp_st; + PTS_RESP = ^TS_RESP; + PPTS_RESP = ^PTS_RESP; + + (* Forward declaration. *) + TS_resp_ctx = type Pointer; + PTS_resp_ctx = ^TS_resp_ctx; + PPTS_resp_ctx = ^PTS_resp_ctx; + + (* This must return a unique number less than 160 bits long. *) + TS_serial_cb = function({struct} v1: PTS_resp_ctx; v2: Pointer): PASN1_INTEGER; + + (* + * This must return the seconds and microseconds since Jan 1, 1970 in the sec + * and usec variables allocated by the caller. Return non-zero for success + * and zero for failure. + *) + TS_time_cb = function({struct} v1: PTS_resp_ctx; v2: Pointer; sec: PIdC_LONG; usec: PIdC_LONG): TIdC_INT; + + (* + * This must process the given extension. It can modify the TS_TST_INFO + * object of the context. Return values: !0 (processed), 0 (error, it must + * set the status info/failure info of the response). + *) + TS_extension_cb = function({struct} v1: PTS_resp_ctx; v2: PX509_Extension; v3: Pointer): TIdC_INT; + +// TS_VERIFY_CTX = TS_verify_ctx; + TS_VERIFY_CTX = type Pointer; + PTS_VERIFY_CTX = ^TS_VERIFY_CTX; + + function TS_REQ_new: PTS_REQ; + procedure TS_REQ_free(a: PTS_REQ); + function i2d_TS_REQ(a: PTS_REQ; pp: PPByte): TIdC_INT; + function d2i_TS_REQ(a: PPTS_REQ; pp: PPByte; length: TIdC_LONG): PTS_REQ; + + function TS_REQ_dup(a: PTS_REQ): PTS_REQ; + + function d2i_TS_REQ_bio(fp: PBIO; a: PPTS_REQ): PTS_REQ; + function i2d_TS_REQ_bio(fp: PBIO; a: PTS_REQ): TIdC_INT; + + function TS_MSG_IMPRINT_new: PTS_MSG_IMPRINT; + procedure TS_MSG_IMPRINT_free(a: PTS_MSG_IMPRINT); + function i2d_TS_MSG_IMPRINT(a: PTS_MSG_IMPRINT; pp: PPByte): TIdC_INT; + function d2i_TS_MSG_IMPRINT(a: PPTS_MSG_IMPRINT; pp: PPByte; length: TIdC_LONG): PTS_MSG_IMPRINT; + + function TS_MSG_IMPRINT_dup(a: PTS_MSG_IMPRINT): PTS_MSG_IMPRINT; + + function d2i_TS_MSG_IMPRINT_bio(bio: PBIO; a: PPTS_MSG_IMPRINT): PTS_MSG_IMPRINT; + function i2d_TS_MSG_IMPRINT_bio(bio: PBIO; a: PTS_MSG_IMPRINT): TIdC_INT; + + function TS_RESP_new: PTS_RESP; + procedure TS_RESP_free(a: PTS_RESP); + function i2d_TS_RESP(a: PTS_RESP; pp: PPByte): TIdC_INT; + function d2i_TS_RESP(a: PPTS_RESP; pp: PPByte; length: TIdC_LONG): PTS_RESP; + function PKCS7_to_TS_TST_INFO(token: PPKCS7): PTS_TST_Info; + function TS_RESP_dup(a: PTS_RESP): PTS_RESP; + + function d2i_TS_RESP_bio(bio: PBIO; a: PPTS_RESP): PTS_RESP; + function i2d_TS_RESP_bio(bio: PBIO; a: PTS_RESP): TIdC_INT; + + function TS_STATUS_INFO_new: PTS_STATUS_INFO; + procedure TS_STATUS_INFO_free(a: PTS_STATUS_INFO); + function i2d_TS_STATUS_INFO(a: PTS_STATUS_INFO; pp: PPByte): TIdC_INT; + function d2i_TS_STATUS_INFO(a: PPTS_STATUS_INFO; pp: PPByte; length: TIdC_LONG): PTS_STATUS_INFO; + function TS_STATUS_INFO_dup(a: PTS_STATUS_INFO): PTS_STATUS_INFO; + + function TS_TST_INFO_new: PTS_TST_Info; + procedure TS_TST_INFO_free(a: PTS_TST_Info); + function i2d_TS_TST_INFO(a: PTS_TST_Info; pp: PPByte): TIdC_INT; + function d2i_TS_TST_INFO(a: PPTS_TST_Info; pp: PPByte; length: TIdC_LONG): PTS_TST_Info; + function TS_TST_INFO_dup(a: PTS_TST_Info): PTS_TST_Info; + + function d2i_TS_TST_INFO_bio(bio: PBIO; a: PPTS_TST_Info): PTS_TST_Info; + function i2d_TS_TST_INFO_bio(bio: PBIO; a: PTS_TST_Info): TIdC_INT; + + function TS_ACCURACY_new: PTS_ACCURACY; + procedure TS_ACCURACY_free(a: PTS_ACCURACY); + function i2d_TS_ACCURACY(a: PTS_ACCURACY; pp: PPByte): TIdC_INT; + function d2i_TS_ACCURACY(a: PPTS_ACCURACY; pp: PPByte; length: TIdC_LONG): PTS_ACCURACY; + function TS_ACCURACY_dup(a: PTS_ACCURACY): PTS_ACCURACY; + + function ESS_ISSUER_SERIAL_new: PESS_ISSUER_SERIAL; + procedure ESS_ISSUER_SERIAL_free(a: PESS_ISSUER_SERIAL); + function i2d_ESS_ISSUER_SERIAL( a: PESS_ISSUER_SERIAL; pp: PPByte): TIdC_INT; + function d2i_ESS_ISSUER_SERIAL(a: PPESS_ISSUER_SERIAL; pp: PPByte; length: TIdC_LONG): PESS_ISSUER_SERIAL; + function ESS_ISSUER_SERIAL_dup(a: PESS_ISSUER_SERIAL): PESS_ISSUER_SERIAL; + + function ESS_CERT_ID_new: PESS_CERT_ID; + procedure ESS_CERT_ID_free(a: PESS_CERT_ID); + function i2d_ESS_CERT_ID(a: PESS_CERT_ID; pp: PPByte): TIdC_INT; + function d2i_ESS_CERT_ID(a: PPESS_CERT_ID; pp: PPByte; length: TIdC_LONG): PESS_CERT_ID; + function ESS_CERT_ID_dup(a: PESS_CERT_ID): PESS_CERT_ID; + + function ESS_SIGNING_CERT_new: PESS_SIGNING_Cert; + procedure ESS_SIGNING_CERT_free(a: PESS_SIGNING_Cert); + function i2d_ESS_SIGNING_CERT( a: PESS_SIGNING_Cert; pp: PPByte): TIdC_INT; + function d2i_ESS_SIGNING_CERT(a: PPESS_SIGNING_Cert; pp: PPByte; length: TIdC_LONG): PESS_SIGNING_Cert; + function ESS_SIGNING_CERT_dup(a: PESS_SIGNING_Cert): PESS_SIGNING_Cert; + + function ESS_CERT_ID_V2_new: PESS_CERT_ID_V2; + procedure ESS_CERT_ID_V2_free(a: PESS_CERT_ID_V2); + function i2d_ESS_CERT_ID_V2( a: PESS_CERT_ID_V2; pp: PPByte): TIdC_INT; + function d2i_ESS_CERT_ID_V2(a: PPESS_CERT_ID_V2; pp: PPByte; length: TIdC_LONG): PESS_CERT_ID_V2; + function ESS_CERT_ID_V2_dup(a: PESS_CERT_ID_V2): PESS_CERT_ID_V2; + + function ESS_SIGNING_CERT_V2_new: PESS_SIGNING_CERT_V2; + procedure ESS_SIGNING_CERT_V2_free(a: PESS_SIGNING_CERT_V2); + function i2d_ESS_SIGNING_CERT_V2(a: PESS_SIGNING_CERT_V2; pp: PPByte): TIdC_INT; + function d2i_ESS_SIGNING_CERT_V2(a: PPESS_SIGNING_CERT_V2; pp: PPByte; length: TIdC_LONG): PESS_SIGNING_CERT_V2; + function ESS_SIGNING_CERT_V2_dup(a: PESS_SIGNING_CERT_V2): PESS_SIGNING_CERT_V2; + + function TS_REQ_set_version(a: PTS_REQ; version: TIdC_LONG): TIdC_INT; + function TS_REQ_get_version(a: PTS_REQ): TIdC_LONG; + + function TS_STATUS_INFO_set_status(a: PTS_STATUS_INFO; i: TIdC_INT): TIdC_INT; + function TS_STATUS_INFO_get0_status(const a: PTS_STATUS_INFO): PASN1_INTEGER; + + // const STACK_OF(ASN1_UTF8STRING) *TS_STATUS_INFO_get0_text(const TS_STATUS_INFO *a); + + // const ASN1_BIT_STRING *TS_STATUS_INFO_get0_failure_info(const TS_STATUS_INFO *a); + + function TS_REQ_set_msg_imprint(a: PTS_REQ; msg_imprint: PTS_MSG_IMPRINT): TIdC_INT; + function TS_REQ_get_msg_imprint(a: PTS_REQ): PTS_MSG_IMPRINT; + + function TS_MSG_IMPRINT_set_algo(a: PTS_MSG_IMPRINT; alg: PX509_ALGOr): TIdC_INT; + function TS_MSG_IMPRINT_get_algo(a: PTS_MSG_IMPRINT): PX509_ALGOr; + + function TS_MSG_IMPRINT_set_msg(a: PTS_MSG_IMPRINT; d: PByte; len: TIdC_INT): TIdC_INT; + function TS_MSG_IMPRINT_get_msg(a: PTS_MSG_IMPRINT): PASN1_OCTET_STRING; + + function TS_REQ_set_policy_id(a: PTS_REQ; policy: PASN1_OBJECT): TIdC_INT; + function TS_REQ_get_policy_id(a: PTS_REQ): PASN1_OBJECT; + + function TS_REQ_set_nonce(a: PTS_REQ; nonce: PASN1_INTEGER): TIdC_INT; + function TS_REQ_get_nonce(const a: PTS_REQ): PASN1_INTEGER; + + function TS_REQ_set_cert_req(a: PTS_REQ; cert_req: TIdC_INT): TIdC_INT; + function TS_REQ_get_cert_req(a: PTS_REQ): TIdC_INT; + + //STACK_OF(X509_EXTENSION) *TS_REQ_get_exts(TS_REQ *a); + procedure TS_REQ_ext_free(a: PTS_REQ); + function TS_REQ_get_ext_count(a: PTS_REQ): TIdC_INT; + function TS_REQ_get_ext_by_NID(a: PTS_REQ; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function TS_REQ_get_ext_by_OBJ(a: PTS_REQ; obj: PASN1_Object; lastpos: TIdC_INT): TIdC_INT; + function TS_REQ_get_ext_by_critical(a: PTS_REQ; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function TS_REQ_get_ext(a: PTS_REQ; loc: TIdC_INT): PX509_Extension; + function TS_REQ_delete_ext(a: PTS_REQ; loc: TIdC_INT): PX509_Extension; + function TS_REQ_add_ext(a: PTS_REQ; ex: PX509_Extension; loc: TIdC_INT): TIdC_INT; + function TS_REQ_get_ext_d2i(a: PTS_REQ; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer; + + //* Function declarations for TS_REQ defined in ts/ts_req_print.c */ + + function TS_REQ_print_bio(bio: PBIO; a: PTS_REQ): TIdC_INT; + + //* Function declarations for TS_RESP defined in ts/ts_resp_utils.c */ + + function TS_RESP_set_status_info(a: PTS_RESP; info: PTS_STATUS_INFO): TIdC_INT; + function TS_RESP_get_status_info(a: PTS_RESP): PTS_STATUS_INFO; + + //* Caller loses ownership of PKCS7 and TS_TST_INFO objects. */ + procedure TS_RESP_set_tst_info(a: PTS_RESP; p7: PPKCS7; tst_info: PTS_TST_Info); + function TS_RESP_get_token(a: PTS_RESP): PPKCS7; + function TS_RESP_get_tst_info(a: PTS_RESP): PTS_TST_Info; + + function TS_TST_INFO_set_version(a: PTS_TST_Info; version: TIdC_LONG): TIdC_INT; + function TS_TST_INFO_get_version(const a: PTS_TST_Info): TIdC_LONG; + + function TS_TST_INFO_set_policy_id(a: PTS_TST_Info; policy_id: PASN1_Object): TIdC_INT; + function TS_TST_INFO_get_policy_id(a: PTS_TST_Info): PASN1_Object; + + function TS_TST_INFO_set_msg_imprint(a: PTS_TST_Info; msg_imprint: PTS_MSG_IMPRINT): TIdC_INT; + function TS_TST_INFO_get_msg_imprint(a: PTS_TST_Info): PTS_MSG_IMPRINT; + + function TS_TST_INFO_set_serial(a: PTS_TST_Info; const serial: PASN1_INTEGER): TIdC_INT; + function TS_TST_INFO_get_serial(const a: PTS_TST_INFO): PASN1_INTEGER; + + function TS_TST_INFO_set_time(a: PTS_TST_Info; gtime: PASN1_GENERALIZEDTIME): TIdC_INT; + function TS_TST_INFO_get_time(const a: PTS_TST_INFO): PASN1_GENERALIZEDTIME; + + function TS_TST_INFO_set_accuracy(a: PTS_TST_Info; accuracy: PTS_ACCURACY): TIdC_INT; + function TS_TST_INFO_get_accuracy(a: PTS_TST_Info): PTS_ACCURACY; + + function TS_ACCURACY_set_seconds(a: PTS_ACCURACY; const seconds: PASN1_INTEGER): TIdC_INT; + function TS_ACCURACY_get_seconds(const a: PTS_ACCURACY): PASN1_INTEGER; + + function TS_ACCURACY_set_millis(a: PTS_ACCURACY; const millis: PASN1_INTEGER): TIdC_INT; + function TS_ACCURACY_get_millis(const a: PTS_ACCURACY): PASN1_INTEGER; + + function TS_ACCURACY_set_micros(a: PTS_ACCURACY; const micros: PASN1_INTEGER): TIdC_INT; + function TS_ACCURACY_get_micros(const a: PTS_ACCURACY): PASN1_INTEGER; + + function TS_TST_INFO_set_ordering(a: PTS_TST_Info; ordering: TIdC_INT): TIdC_INT; + function TS_TST_INFO_get_ordering(const a: PTS_TST_Info): TIdC_INT; + + function TS_TST_INFO_set_nonce(a: PTS_TST_Info; const nonce: PASN1_INTEGER): TIdC_INT; + function TS_TST_INFO_get_nonce(const a: PTS_TST_INFO): PASN1_INTEGER; + + function TS_TST_INFO_set_tsa(a: PTS_TST_Info; tsa: PGENERAL_NAME): TIdC_INT; + function TS_TST_INFO_get_tsa(a: PTS_TST_Info): PGENERAL_NAME; + + //STACK_OF(X509_EXTENSION) *TS_TST_INFO_get_exts(TS_TST_INFO *a); + procedure TS_TST_INFO_ext_free(a: PTS_TST_Info); + function TS_TST_INFO_get_ext_count(a: PTS_TST_Info): TIdC_INT; + function TS_TST_INFO_get_ext_by_NID(a: PTS_TST_Info; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function TS_TST_INFO_get_ext_by_OBJ(a: PTS_TST_Info; const obj: PASN1_Object; lastpos: TIdC_INT): TIdC_INT; + function TS_TST_INFO_get_ext_by_critical(a: PTS_TST_Info; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function TS_TST_INFO_get_ext(a: PTS_TST_Info; loc: TIdC_INT): PX509_Extension; + function TS_TST_INFO_delete_ext(a: PTS_TST_Info; loc: TIdC_INT): PX509_Extension; + function TS_TST_INFO_add_ext(a: PTS_TST_Info; ex: PX509_Extension; loc: TIdC_INT): TIdC_INT; + function TS_TST_INFO_get_ext_d2i(a: PTS_TST_Info; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer; + + (* + * Declarations related to response generation, defined in ts/ts_resp_sign.c. + *) + + //DEFINE_STACK_OF_CONST(EVP_MD) + + (* Creates a response context that can be used for generating responses. *) + function TS_RESP_CTX_new: PTS_RESP_CTX; + procedure TS_RESP_CTX_free(ctx: PTS_RESP_CTX); + + (* This parameter must be set. *) + function TS_RESP_CTX_set_signer_cert(ctx: PTS_RESP_CTX; signer: PX509): TIdC_INT; + + (* This parameter must be set. *) + function TS_RESP_CTX_set_signer_key(ctx: PTS_RESP_CTX; key: PEVP_PKEY): TIdC_INT; + + function TS_RESP_CTX_set_signer_digest(ctx: PTS_RESP_CTX; signer_digest: PEVP_MD): TIdC_INT; + function TS_RESP_CTX_set_ess_cert_id_digest(ctx: PTS_RESP_CTX; md: PEVP_MD): TIdC_INT; + + (* This parameter must be set. *) + function TS_RESP_CTX_set_def_policy(ctx: PTS_RESP_CTX; def_policy: PASN1_Object): TIdC_INT; + + (* No additional certs are included in the response by default. *) + // int TS_RESP_CTX_set_certs(TS_RESP_CTX *ctx, STACK_OF(X509) *certs); + + (* + * Adds a new acceptable policy, only the default policy is accepted by + * default. + *) + function TS_RESP_CTX_add_policy(ctx: PTS_RESP_CTX; const policy: PASN1_Object): TIdC_INT; + + (* + * Adds a new acceptable message digest. Note that no message digests are + * accepted by default. The md argument is shared with the caller. + *) + function TS_RESP_CTX_add_md(ctx: PTS_RESP_CTX; const md: PEVP_MD): TIdC_INT; + + (* Accuracy is not included by default. *) + function TS_RESP_CTX_set_accuracy(ctx: PTS_RESP_CTX; secs: TIdC_INT; millis: TIdC_INT; micros: TIdC_INT): TIdC_INT; + + (* + * Clock precision digits, i.e. the number of decimal digits: '0' means sec, + * '3' msec, '6' usec, and so on. Default is 0. + *) + function TS_RESP_CTX_set_clock_precision_digits(ctx: PTS_RESP_CTX; clock_precision_digits: TIdC_UINT): TIdC_INT; + + (* No flags are set by default. *) + procedure TS_RESP_CTX_add_flags(ctx: PTS_RESP_CTX; flags: TIdC_INT); + + (* Default callback always returns a constant. *) + procedure TS_RESP_CTX_set_serial_cb(ctx: PTS_RESP_CTX; cb: TS_serial_cb; data: Pointer); + + (* Default callback uses the gettimeofday() and gmtime() system calls. *) + procedure TS_RESP_CTX_set_time_cb(ctx: PTS_RESP_CTX; cb: TS_time_cb; data: Pointer); + + (* + * Default callback rejects all extensions. The extension callback is called + * when the TS_TST_INFO object is already set up and not signed yet. + *) + (* FIXME: extension handling is not tested yet. *) + procedure TS_RESP_CTX_set_extension_cb(ctx: PTS_RESP_CTX; cb: TS_extension_cb; data: Pointer); + + (* The following methods can be used in the callbacks. *) + function TS_RESP_CTX_set_status_info(ctx: PTS_RESP_CTX; status: TIdC_INT; text: PIdAnsiChar): TIdC_INT; + + (* Sets the status info only if it is still TS_STATUS_GRANTED. *) + function TS_RESP_CTX_set_status_info_cond(ctx: PTS_RESP_CTX; status: TIdC_INT; text: PIdAnsiChar): TIdC_INT; + + function TS_RESP_CTX_add_failure_info(ctx: PTS_RESP_CTX; failure: TIdC_INT): TIdC_INT; + + (* The get methods below can be used in the extension callback. *) + function TS_RESP_CTX_get_request(ctx: PTS_RESP_CTX): PTS_REQ; + + function TS_RESP_CTX_get_tst_info(ctx: PTS_RESP_CTX): PTS_TST_Info; + + (* + * Creates the signed TS_TST_INFO and puts it in TS_RESP. + * In case of errors it sets the status info properly. + * Returns NULL only in case of memory allocation/fatal error. + *) + function TS_RESP_create_response(ctx: PTS_RESP_CTX; req_bio: PBIO): PTS_RESP; + + (* + * Declarations related to response verification, + * they are defined in ts/ts_resp_verify.c. + *) + + //int TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs, + // X509_STORE *store, X509 **signer_out); + + (* Context structure for the generic verify method. *) + + function TS_RESP_verify_response(ctx: PTS_VERIFY_CTX; response: PTS_RESP): TIdC_INT; + function TS_RESP_verify_token(ctx: PTS_VERIFY_CTX; token: PPKCS7): TIdC_INT; + + (* + * Declarations related to response verification context, + *) + function TS_VERIFY_CTX_new: PTS_VERIFY_CTX; + procedure TS_VERIFY_CTX_init(ctx: PTS_VERIFY_CTX); + procedure TS_VERIFY_CTX_free(ctx: PTS_VERIFY_CTX); + procedure TS_VERIFY_CTX_cleanup(ctx: PTS_VERIFY_CTX); + function TS_VERIFY_CTX_set_flags(ctx: PTS_VERIFY_CTX; f: TIdC_INT): TIdC_INT; + function TS_VERIFY_CTX_add_flags(ctx: PTS_VERIFY_CTX; f: TIdC_INT): TIdC_INT; + function TS_VERIFY_CTX_set_data(ctx: PTS_VERIFY_CTX; b: PBIO): PBIO; + function TS_VERIFY_CTX_set_imprint(ctx: PTS_VERIFY_CTX; hexstr: PByte; len: TIdC_LONG): PByte; + function TS_VERIFY_CTX_set_store(ctx: PTS_VERIFY_CTX; s: PX509_Store): PX509_Store; + // STACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs); + + (*- + * If ctx is NULL, it allocates and returns a new object, otherwise + * it returns ctx. It initialises all the members as follows: + * flags = TS_VFY_ALL_IMPRINT & ~(TS_VFY_TSA_NAME | TS_VFY_SIGNATURE) + * certs = NULL + * store = NULL + * policy = policy from the request or NULL if absent (in this case + * TS_VFY_POLICY is cleared from flags as well) + * md_alg = MD algorithm from request + * imprint, imprint_len = imprint from request + * data = NULL + * nonce, nonce_len = nonce from the request or NULL if absent (in this case + * TS_VFY_NONCE is cleared from flags as well) + * tsa_name = NULL + * Important: after calling this method TS_VFY_SIGNATURE should be added! + *) + function TS_REQ_to_TS_VERIFY_CTX(req: PTS_REQ; ctx: PTS_VERIFY_CTX): PTS_VERIFY_CTX; + + (* Function declarations for TS_RESP defined in ts/ts_resp_print.c *) + + function TS_RESP_print_bio(bio: PBIO; a: PTS_RESP): TIdC_INT; + function TS_STATUS_INFO_print_bio(bio: PBIO; a: PTS_STATUS_INFO): TIdC_INT; + function TS_TST_INFO_print_bio(bio: PBIO; a: PTS_TST_Info): TIdC_INT; + + (* Common utility functions defined in ts/ts_lib.c *) + + function TS_ASN1_INTEGER_print_bio(bio: PBIO; const num: PASN1_INTEGER): TIdC_INT; + function TS_OBJ_print_bio(bio: PBIO; const obj: PASN1_Object): TIdC_INT; + //function TS_ext_print_bio(bio: PBIO; const STACK_OF(): X509_Extension * extensions): TIdC_INT; + function TS_X509_ALGOR_print_bio(bio: PBIO; const alg: PX509_ALGOr): TIdC_INT; + function TS_MSG_IMPRINT_print_bio(bio: PBIO; msg: PTS_MSG_IMPRINT): TIdC_INT; + + (* + * Function declarations for handling configuration options, defined in + * ts/ts_conf.c + *) + + function TS_CONF_load_cert(file_: PIdAnsiChar): PX509; + function TS_CONF_load_key( file_: PIdAnsiChar; pass: PIdAnsiChar): PEVP_PKey; + function TS_CONF_set_serial(conf: PCONF; section: PIdAnsiChar; cb: TS_serial_cb; ctx: PTS_RESP_CTX): TIdC_INT; + //STACK_OF(X509) *TS_CONF_load_certs(const char *file); + function TS_CONF_get_tsa_section(conf: PCONF; const section: PIdAnsiChar): PIdAnsiChar; + function TS_CONF_set_crypto_device(conf: PCONF; section: PIdAnsiChar; device: PIdAnsiChar): TIdC_INT; + function TS_CONF_set_default_engine(name: PIdAnsiChar): TIdC_INT; + function TS_CONF_set_signer_cert(conf: PCONF; section: PIdAnsiChar; cert: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_certs(conf: PCONF; section: PIdAnsiChar; certs: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_signer_key(conf: PCONF; const section: PIdAnsiChar; key: PIdAnsiChar; pass: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_signer_digest(conf: PCONF; section: PIdAnsiChar; md: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_def_policy(conf: PCONF; section: PIdAnsiChar; policy: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_policies(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_digests(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_accuracy(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_clock_precision_digits(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_ordering(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_tsa_name(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_ess_cert_id_chain(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + function TS_CONF_set_ess_cert_id_digest(conf: PCONF; section: PIdAnsiChar; ctx: PTS_RESP_CTX): TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_tserr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_tserr.h2pas new file mode 100644 index 000000000..fc0d2f035 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_tserr.h2pas @@ -0,0 +1,144 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_tserr; + +interface + +// Headers for OpenSSL 1.1.1 +// tserr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * TS function codes. + *) + TS_F_DEF_SERIAL_CB = 110; + TS_F_DEF_TIME_CB = 111; + TS_F_ESS_ADD_SIGNING_CERT = 112; + TS_F_ESS_ADD_SIGNING_CERT_V2 = 147; + TS_F_ESS_CERT_ID_NEW_INIT = 113; + TS_F_ESS_CERT_ID_V2_NEW_INIT = 156; + TS_F_ESS_SIGNING_CERT_NEW_INIT = 114; + TS_F_ESS_SIGNING_CERT_V2_NEW_INIT = 157; + TS_F_INT_TS_RESP_VERIFY_TOKEN = 149; + TS_F_PKCS7_TO_TS_TST_INFO = 148; + TS_F_TS_ACCURACY_SET_MICROS = 115; + TS_F_TS_ACCURACY_SET_MILLIS = 116; + TS_F_TS_ACCURACY_SET_SECONDS = 117; + TS_F_TS_CHECK_IMPRINTS = 100; + TS_F_TS_CHECK_NONCES = 101; + TS_F_TS_CHECK_POLICY = 102; + TS_F_TS_CHECK_SIGNING_CERTS = 103; + TS_F_TS_CHECK_STATUS_INFO = 104; + TS_F_TS_COMPUTE_IMPRINT = 145; + TS_F_TS_CONF_INVALID = 151; + TS_F_TS_CONF_LOAD_CERT = 153; + TS_F_TS_CONF_LOAD_CERTS = 154; + TS_F_TS_CONF_LOAD_KEY = 155; + TS_F_TS_CONF_LOOKUP_FAIL = 152; + TS_F_TS_CONF_SET_DEFAULT_ENGINE = 146; + TS_F_TS_GET_STATUS_TEXT = 105; + TS_F_TS_MSG_IMPRINT_SET_ALGO = 118; + TS_F_TS_REQ_SET_MSG_IMPRINT = 119; + TS_F_TS_REQ_SET_NONCE = 120; + TS_F_TS_REQ_SET_POLICY_ID = 121; + TS_F_TS_RESP_CREATE_RESPONSE = 122; + TS_F_TS_RESP_CREATE_TST_INFO = 123; + TS_F_TS_RESP_CTX_ADD_FAILURE_INFO = 124; + TS_F_TS_RESP_CTX_ADD_MD = 125; + TS_F_TS_RESP_CTX_ADD_POLICY = 126; + TS_F_TS_RESP_CTX_NEW = 127; + TS_F_TS_RESP_CTX_SET_ACCURACY = 128; + TS_F_TS_RESP_CTX_SET_CERTS = 129; + TS_F_TS_RESP_CTX_SET_DEF_POLICY = 130; + TS_F_TS_RESP_CTX_SET_SIGNER_CERT = 131; + TS_F_TS_RESP_CTX_SET_STATUS_INFO = 132; + TS_F_TS_RESP_GET_POLICY = 133; + TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION = 134; + TS_F_TS_RESP_SET_STATUS_INFO = 135; + TS_F_TS_RESP_SET_TST_INFO = 150; + TS_F_TS_RESP_SIGN = 136; + TS_F_TS_RESP_VERIFY_SIGNATURE = 106; + TS_F_TS_TST_INFO_SET_ACCURACY = 137; + TS_F_TS_TST_INFO_SET_MSG_IMPRINT = 138; + TS_F_TS_TST_INFO_SET_NONCE = 139; + TS_F_TS_TST_INFO_SET_POLICY_ID = 140; + TS_F_TS_TST_INFO_SET_SERIAL = 141; + TS_F_TS_TST_INFO_SET_TIME = 142; + TS_F_TS_TST_INFO_SET_TSA = 143; + TS_F_TS_VERIFY = 108; + TS_F_TS_VERIFY_CERT = 109; + TS_F_TS_VERIFY_CTX_NEW = 144; + + (* + * TS reason codes. + *) + TS_R_BAD_PKCS7_TYPE = 132; + TS_R_BAD_TYPE = 133; + TS_R_CANNOT_LOAD_CERT = 137; + TS_R_CANNOT_LOAD_KEY = 138; + TS_R_CERTIFICATE_VERIFY_ERROR = 100; + TS_R_COULD_NOT_SET_ENGINE = 127; + TS_R_COULD_NOT_SET_TIME = 115; + TS_R_DETACHED_CONTENT = 134; + TS_R_ESS_ADD_SIGNING_CERT_ERROR = 116; + TS_R_ESS_ADD_SIGNING_CERT_V2_ERROR = 139; + TS_R_ESS_SIGNING_CERTIFICATE_ERROR = 101; + TS_R_INVALID_NULL_POINTER = 102; + TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE = 117; + TS_R_MESSAGE_IMPRINT_MISMATCH = 103; + TS_R_NONCE_MISMATCH = 104; + TS_R_NONCE_NOT_RETURNED = 105; + TS_R_NO_CONTENT = 106; + TS_R_NO_TIME_STAMP_TOKEN = 107; + TS_R_PKCS7_ADD_SIGNATURE_ERROR = 118; + TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR = 119; + TS_R_PKCS7_TO_TS_TST_INFO_FAILED = 129; + TS_R_POLICY_MISMATCH = 108; + TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE = 120; + TS_R_RESPONSE_SETUP_ERROR = 121; + TS_R_SIGNATURE_FAILURE = 109; + TS_R_THERE_MUST_BE_ONE_SIGNER = 110; + TS_R_TIME_SYSCALL_ERROR = 122; + TS_R_TOKEN_NOT_PRESENT = 130; + TS_R_TOKEN_PRESENT = 131; + TS_R_TSA_NAME_MISMATCH = 111; + TS_R_TSA_UNTRUSTED = 112; + TS_R_TST_INFO_SETUP_ERROR = 123; + TS_R_TS_DATASIGN = 124; + TS_R_UNACCEPTABLE_POLICY = 125; + TS_R_UNSUPPORTED_MD_ALGORITHM = 126; + TS_R_UNSUPPORTED_VERSION = 113; + TS_R_VAR_BAD_VALUE = 135; + TS_R_VAR_LOOKUP_FAILURE = 136; + TS_R_WRONG_CONTENT_TYPE = 114; + + function ERR_load_TS_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_txt_db.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_txt_db.h2pas new file mode 100644 index 000000000..794c755f5 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_txt_db.h2pas @@ -0,0 +1,75 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_txt_db; + +interface + +// Headers for OpenSSL 1.1.1 +// txt_db.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ; + +const + DB_ERROR_OK = 0; + DB_ERROR_MALLOC = 1; + DB_ERROR_INDEX_CLASH = 2; + DB_ERROR_INDEX_OUT_OF_RANGE = 3; + DB_ERROR_NO_INDEX = 4; + DB_ERROR_INSERT_INDEX_CLASH = 5; + DB_ERROR_WRONG_NUM_FIELDS = 6; + +type + OPENSSL_STRING = type Pointer; + POPENSSL_STRING = ^OPENSSL_STRING; +// DEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING) + + qual_func = function (v1: POPENSSL_STRING): TIdC_INT; + txt_db_st = record + num_fields: TIdC_INT; + data: Pointer; // STACK_OF(OPENSSL_PSTRING) * + index: Pointer; // LHASH_OF(OPENSSL_STRING) ** + qual: qual_func; + error: TIdC_LONG; + arg1: TIdC_LONG; + arg2: TIdC_LONG; + arg_row: POPENSSL_STRING; + end; + TXT_DB = txt_db_st; + PTXT_DB = ^TXT_DB; + + TXT_DB_create_index_qual = function(v1: POPENSSL_STRING): TIdC_INT; + + function TXT_DB_read(in_: PBIO; num: TIdC_INT): PTXT_DB; + function TXT_DB_write(out_: PBIO; db: PTXT_DB): TIdC_LONG; + //function TXT_DB_create_index(db: PTXT_DB; field: TIdC_INT; qual: TXT_DB_create_index_qual; hash: OPENSSL_LH_HashFunc; cmp: OPENSSL_LH_COMPFUNC): TIdC_INT; + procedure TXT_DB_free(db: PTXT_DB); + function TXT_DB_get_by_index(db: PTXT_DB; idx: TIdC_INT; value: POPENSSL_STRING): POPENSSL_STRING; + function TXT_DB_insert(db: PTXT_DB; value: POPENSSL_STRING): TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ui.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ui.h2pas new file mode 100644 index 000000000..7ae12dcd5 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_ui.h2pas @@ -0,0 +1,371 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_ui; + +interface + +// Headers for OpenSSL 1.1.1 +// ui.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_crypto, + IdOpenSSLHeaders_pem, + IdOpenSSLHeaders_uierr; + +{$MINENUMSIZE 4} + +const + (* These are the possible flags. They can be or'ed together. *) + (* Use to have echoing of input *) + UI_INPUT_FLAG_ECHO = $01; + (* + * Use a default password. Where that password is found is completely up to + * the application, it might for example be in the user data set with + * UI_add_user_data(). It is not recommended to have more than one input in + * each UI being marked with this flag, or the application might get + * confused. + *) + UI_INPUT_FLAG_DEFAULT_PWD = $02; + + + (* + * The user of these routines may want to define flags of their own. The core + * UI won't look at those, but will pass them on to the method routines. They + * must use higher bits so they don't get confused with the UI bits above. + * UI_INPUT_FLAG_USER_BASE tells which is the lowest bit to use. A good + * example of use is this: + * + * #define MY_UI_FLAG1 (0x01 << UI_INPUT_FLAG_USER_BASE) + * + *) + UI_INPUT_FLAG_USER_BASE = 16; + + (* The commands *) + (* + * Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the + * OpenSSL error stack before printing any info or added error messages and + * before any prompting. + *) + UI_CTRL_PRINT_ERRORS = 1; + (* + * Check if a UI_process() is possible to do again with the same instance of + * a user interface. This makes UI_ctrl() return 1 if it is redoable, and 0 + * if not. + *) + UI_CTRL_IS_REDOABLE = 2; + +type + (* + * Give a user interface parameterised control commands. This can be used to + * send down an integer, a data pointer or a function pointer, as well as be + * used to get information from a UI. + *) + UI_ctrl_f = procedure; + + (* + * The UI_STRING type is the data structure that contains all the needed info + * about a string or a prompt, including test data for a verification prompt. + *) + ui_string_st = type Pointer; + UI_STRING = ui_string_st; + PUI_STRING = ^UI_STRING; +// DEFINE_STACK_OF(UI_STRING) + + (* + * The different types of strings that are currently supported. This is only + * needed by method authors. + *) + UI_string_types = ( + UIT_NONE = 0, + UIT_PROMPT, (* Prompt for a string *) + UIT_VERIFY, (* Prompt for a string and verify *) + UIT_BOOLEAN, (* Prompt for a yes/no response *) + UIT_INFO, (* Send info to the user *) + UIT_ERROR (* Send an error message to the user *) + ); + + (* Create and manipulate methods *) + UI_method_opener_cb = function(ui: PUI): TIdC_INT; + UI_method_writer_cb = function(ui: PUI; uis: PUI_String): TIdC_INT; + UI_method_flusher_cb = function(ui: PUI): TIdC_INT; + UI_method_reader_cb = function(ui: PUI; uis: PUI_String): TIdC_INT; + UI_method_closer_cb = function(ui: PUI): TIdC_INT; + UI_method_data_duplicator_cb = function(ui: PUI; ui_data: Pointer): Pointer; + UI_method_data_destructor_cb = procedure(ui: PUI; ui_data: Pointer); + UI_method_prompt_constructor_cb = function(ui: PUI; const object_desc: PIdAnsiChar; const object_name: PIdAnsiChar): PIdAnsiChar; + + (* + * All the following functions return -1 or NULL on error and in some cases + * (UI_process()) -2 if interrupted or in some other way cancelled. When + * everything is fine, they return 0, a positive value or a non-NULL pointer, + * all depending on their purpose. + *) + + (* Creators and destructor. *) + function UI_new: PUI; + function UI_new_method(const method: PUI_Method): PUI; + procedure UI_free(ui: PUI); + + (* + * The following functions are used to add strings to be printed and prompt + * strings to prompt for data. The names are UI_{add,dup}__string + * and UI_{add,dup}_input_boolean. + * + * UI_{add,dup}__string have the following meanings: + * add add a text or prompt string. The pointers given to these + * functions are used verbatim, no copying is done. + * dup make a copy of the text or prompt string, then add the copy + * to the collection of strings in the user interface. + * + * The function is a name for the functionality that the given + * string shall be used for. It can be one of: + * input use the string as data prompt. + * verify use the string as verification prompt. This + * is used to verify a previous input. + * info use the string for informational output. + * error use the string for error output. + * Honestly, there's currently no difference between info and error for the + * moment. + * + * UI_{add,dup}_input_boolean have the same semantics for "add" and "dup", + * and are typically used when one wants to prompt for a yes/no response. + * + * All of the functions in this group take a UI and a prompt string. + * The string input and verify addition functions also take a flag argument, + * a buffer for the result to end up with, a minimum input size and a maximum + * input size (the result buffer MUST be large enough to be able to contain + * the maximum number of characters). Additionally, the verify addition + * functions takes another buffer to compare the result against. + * The boolean input functions take an action description string (which should + * be safe to ignore if the expected user action is obvious, for example with + * a dialog box with an OK button and a Cancel button), a string of acceptable + * characters to mean OK and to mean Cancel. The two last strings are checked + * to make sure they don't have common characters. Additionally, the same + * flag argument as for the string input is taken, as well as a result buffer. + * The result buffer is required to be at least one byte long. Depending on + * the answer, the first character from the OK or the Cancel character strings + * will be stored in the first byte of the result buffer. No NUL will be + * added, so the result is *not* a string. + * + * On success, the all return an index of the added information. That index + * is useful when retrieving results with UI_get0_result(). *) + + function UI_add_input_string(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT): TIdC_INT; + function UI_dup_input_string(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT): TIdC_INT; + function UI_add_verify_string(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT; const test_buf: PIdAnsiChar): TIdC_INT; + function UI_dup_verify_string(ui: PUI; const prompt: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar; minsize: TIdC_INT; maxsize: TIdC_INT; const test_buf: PIdAnsiChar): TIdC_INT; + function UI_add_input_boolean(ui: PUI; const prompt: PIdAnsiChar; const action_desc: PIdAnsiChar; const ok_chars: PIdAnsiChar; const cancel_chars: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar): TIdC_INT; + function UI_dup_input_boolean(ui: PUI; const prompt: PIdAnsiChar; const action_desc: PIdAnsiChar; const ok_chars: PIdAnsiChar; const cancel_chars: PIdAnsiChar; flags: TIdC_INT; result_buf: PIdAnsiChar): TIdC_INT; + function UI_add_info_string(ui: PUI; const text: PIdAnsiChar): TIdC_INT; + function UI_dup_info_string(ui: PUI; const text: PIdAnsiChar): TIdC_INT; + function UI_add_error_string(ui: PUI; const text: PIdAnsiChar): TIdC_INT; + function UI_dup_error_string(ui: PUI; const text: PIdAnsiChar): TIdC_INT; + + (* + * The following function helps construct a prompt. object_desc is a + * textual short description of the object, for example "pass phrase", + * and object_name is the name of the object (might be a card name or + * a file name. + * The returned string shall always be allocated on the heap with + * OPENSSL_malloc(), and need to be free'd with OPENSSL_free(). + * + * If the ui_method doesn't contain a pointer to a user-defined prompt + * constructor, a default string is built, looking like this: + * + * "Enter {object_desc} for {object_name}:" + * + * So, if object_desc has the value "pass phrase" and object_name has + * the value "foo.key", the resulting string is: + * + * "Enter pass phrase for foo.key:" + *) + function UI_construct_prompt(ui_method: PUI; const object_desc: PIdAnsiChar; const object_name: PIdAnsiChar): PIdAnsiChar; + + (* + * The following function is used to store a pointer to user-specific data. + * Any previous such pointer will be returned and replaced. + * + * For callback purposes, this function makes a lot more sense than using + * ex_data, since the latter requires that different parts of OpenSSL or + * applications share the same ex_data index. + * + * Note that the UI_OpenSSL() method completely ignores the user data. Other + * methods may not, however. + *) + function UI_add_user_data(ui: PUI; user_data: Pointer): Pointer; + (* + * Alternatively, this function is used to duplicate the user data. + * This uses the duplicator method function. The destroy function will + * be used to free the user data in this case. + *) + function UI_dup_user_data(ui: PUI; user_data: Pointer): TIdC_INT; + (* We need a user data retrieving function as well. *) + function UI_get0_user_data(ui: PUI): Pointer; + + (* Return the result associated with a prompt given with the index i. *) + function UI_get0_result(ui: PUI; i: TIdC_INT): PIdAnsiChar; + function UI_get_result_length(ui: PUI; i: TIdC_INT): TIdC_INT; + + (* When all strings have been added, process the whole thing. *) + function UI_process(ui: PUI): TIdC_INT; + + (* + * Give a user interface parameterised control commands. This can be used to + * send down an integer, a data pointer or a function pointer, as well as be + * used to get information from a UI. + *) + function UI_ctrl(ui: PUI; cmd: TIdC_INT; i: TIdC_LONG; p: Pointer; f: UI_ctrl_f): TIdC_INT; + + + (* Some methods may use extra data *) + //# define UI_set_app_data(s,arg) UI_set_ex_data(s,0,arg) + //# define UI_get_app_data(s) UI_get_ex_data(s,0) + + //# define UI_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_UI, l, p, newf, dupf, freef) + function UI_set_ex_data(r: PUI; idx: TIdC_INT; arg: Pointer): TIdC_INT; + function UI_get_ex_data(r: PUI; idx: TIdC_INT): Pointer; + + (* Use specific methods instead of the built-in one *) + procedure UI_set_default_method(const meth: PUI_Method); + function UI_get_default_method: PUI_METHOD; + function UI_get_method(ui: PUI): PUI_METHOD; + function UI_set_method(ui: PUI; const meth: PUI_METHOD): PUI_METHOD; + + (* The method with all the built-in thingies *) + function UI_OpenSSL: PUI_Method; + + (* + * NULL method. Literally does nothing, but may serve as a placeholder + * to avoid internal default. + *) + function UI_null: PUI_METHOD; + + (* ---------- For method writers ---------- *) + (* + A method contains a number of functions that implement the low level + of the User Interface. The functions are: + + an opener This function starts a session, maybe by opening + a channel to a tty, or by opening a window. + a writer This function is called to write a given string, + maybe to the tty, maybe as a field label in a + window. + a flusher This function is called to flush everything that + has been output so far. It can be used to actually + display a dialog box after it has been built. + a reader This function is called to read a given prompt, + maybe from the tty, maybe from a field in a + window. Note that it's called with all string + structures, not only the prompt ones, so it must + check such things itself. + a closer This function closes the session, maybe by closing + the channel to the tty, or closing the window. + + All these functions are expected to return: + + 0 on error. + 1 on success. + -1 on out-of-band events, for example if some prompting has + been canceled (by pressing Ctrl-C, for example). This is + only checked when returned by the flusher or the reader. + + The way this is used, the opener is first called, then the writer for all + strings, then the flusher, then the reader for all strings and finally the + closer. Note that if you want to prompt from a terminal or other command + line interface, the best is to have the reader also write the prompts + instead of having the writer do it. If you want to prompt from a dialog + box, the writer can be used to build up the contents of the box, and the + flusher to actually display the box and run the event loop until all data + has been given, after which the reader only grabs the given data and puts + them back into the UI strings. + + All method functions take a UI as argument. Additionally, the writer and + the reader take a UI_STRING. + *) + + function UI_create_method(const name: PIdAnsiChar): PUI_Method; + procedure UI_destroy_method(ui_method: PUI_Method); + + function UI_method_set_opener(method: PUI_Method; opener: UI_method_opener_cb): TIdC_INT; + function UI_method_set_writer(method: PUI_Method; writer: UI_method_writer_cb): TIdC_INT; + function UI_method_set_flusher(method: PUI_Method; flusher: UI_method_flusher_cb): TIdC_INT; + function UI_method_set_reader(method: PUI_Method; reader: UI_method_reader_cb): TIdC_INT; + function UI_method_set_closer(method: PUI_Method; closer: UI_method_closer_cb): TIdC_INT; + function UI_method_set_data_duplicator(method: PUI_Method; duplicator: UI_method_data_duplicator_cb; destructor_: UI_method_data_destructor_cb): TIdC_INT; + function UI_method_set_prompt_constructor(method: PUI_Method; prompt_constructor: UI_method_prompt_constructor_cb): TIdC_INT; + function UI_method_set_ex_data(method: PUI_Method; idx: TIdC_INT; data: Pointer): TIdC_INT; + + function UI_method_get_opener(const method: PUI_METHOD): UI_method_opener_cb; + function UI_method_get_writer(const method: PUI_METHOD): UI_method_writer_cb; + function UI_method_get_flusher(const method: PUI_METHOD): UI_method_flusher_cb; + function UI_method_get_reader(const method: PUI_METHOD): UI_method_reader_cb; + function UI_method_get_closer(const method: PUI_METHOD): UI_method_closer_cb; + function UI_method_get_prompt_constructor(const method: PUI_METHOD): UI_method_prompt_constructor_cb; + function UI_method_get_data_duplicator(const method: PUI_METHOD): UI_method_data_duplicator_cb; + function UI_method_get_data_destructor(const method: PUI_METHOD): UI_method_data_destructor_cb; + function UI_method_get_ex_data(const method: PUI_METHOD; idx: TIdC_INT): Pointer; + + (* + * The following functions are helpers for method writers to access relevant + * data from a UI_STRING. + *) + + (* Return type of the UI_STRING *) + function UI_get_string_type(uis: PUI_String): UI_string_types; + (* Return input flags of the UI_STRING *) + function UI_get_input_flags(uis: PUI_String): TIdC_INT; + (* Return the actual string to output (the prompt, info or error) *) + function UI_get0_output_string(uis: PUI_String): PIdAnsiChar; + (* + * Return the optional action string to output (the boolean prompt + * instruction) + *) + function UI_get0_action_string(uis: PUI_String): PIdAnsiChar; + (* Return the result of a prompt *) + function UI_get0_result_string(uis: PUI_String): PIdAnsiChar; + function UI_get_result_string_length(uis: PUI_String): TIdC_INT; + (* + * Return the string to test the result against. Only useful with verifies. + *) + function UI_get0_test_string(uis: PUI_String): PIdAnsiChar; + (* Return the required minimum size of the result *) + function UI_get_result_minsize(uis: PUI_String): TIdC_INT; + (* Return the required maximum size of the result *) + function UI_get_result_maxsize(uis: PUI_String): TIdC_INT; + (* Set the result of a UI_STRING. *) + function UI_set_result(ui: PUI; uis: PUI_String; const result: PIdAnsiChar): TIdC_INT; + function UI_set_result_ex(ui: PUI; uis: PUI_String; const result: PIdAnsiChar; len: TIdC_INT): TIdC_INT; + + (* A couple of popular utility functions *) + function UI_UTIL_read_pw_string(buf: PIdAnsiChar; length: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT; + function UI_UTIL_read_pw(buf: PIdAnsiChar; buff: PIdAnsiChar; size: TIdC_INT; const prompt: PIdAnsiChar; verify: TIdC_INT): TIdC_INT; + function UI_UTIL_wrap_read_pem_callback(cb: pem_password_cb; rwflag: TIdC_INT): PUI_Method; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_uierr.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_uierr.h2pas new file mode 100644 index 000000000..4ef1e080a --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_uierr.h2pas @@ -0,0 +1,82 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_uierr; + +interface + +// Headers for OpenSSL 1.1.1 +// uierr.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * UI function codes. + *) + UI_F_CLOSE_CONSOLE = 115; + UI_F_ECHO_CONSOLE = 116; + UI_F_GENERAL_ALLOCATE_BOOLEAN = 108; + UI_F_GENERAL_ALLOCATE_PROMPT = 109; + UI_F_NOECHO_CONSOLE = 117; + UI_F_OPEN_CONSOLE = 114; + UI_F_UI_CONSTRUCT_PROMPT = 121; + UI_F_UI_CREATE_METHOD = 112; + UI_F_UI_CTRL = 111; + UI_F_UI_DUP_ERROR_STRING = 101; + UI_F_UI_DUP_INFO_STRING = 102; + UI_F_UI_DUP_INPUT_BOOLEAN = 110; + UI_F_UI_DUP_INPUT_STRING = 103; + UI_F_UI_DUP_USER_DATA = 118; + UI_F_UI_DUP_VERIFY_STRING = 106; + UI_F_UI_GET0_RESULT = 107; + UI_F_UI_GET_RESULT_LENGTH = 119; + UI_F_UI_NEW_METHOD = 104; + UI_F_UI_PROCESS = 113; + UI_F_UI_SET_RESULT = 105; + UI_F_UI_SET_RESULT_EX = 120; + + (* + * UI reason codes. + *) + UI_R_COMMON_OK_AND_CANCEL_CHARACTERS = 104; + UI_R_INDEX_TOO_LARGE = 102; + UI_R_INDEX_TOO_SMALL = 103; + UI_R_NO_RESULT_BUFFER = 105; + UI_R_PROCESSING_ERROR = 107; + UI_R_RESULT_TOO_LARGE = 100; + UI_R_RESULT_TOO_SMALL = 101; + UI_R_SYSASSIGN_ERROR = 109; + UI_R_SYSDASSGN_ERROR = 110; + UI_R_SYSQIOW_ERROR = 111; + UI_R_UNKNOWN_CONTROL_COMMAND = 106; + UI_R_UNKNOWN_TTYGET_ERRNO_VALUE = 108; + UI_R_USER_DATA_DUPLICATION_UNSUPPORTED = 112; + + function ERR_load_UI_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_whrlpool.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_whrlpool.h2pas new file mode 100644 index 000000000..9da60101e --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_whrlpool.h2pas @@ -0,0 +1,63 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_whrlpool; + +interface + +// Headers for OpenSSL 1.1.1 +// whrlpool.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + WHIRLPOOL_DIGEST_LENGTH = 512 div 8; + WHIRLPOOL_BBLOCK = 512; + WHIRLPOOL_COUNTER = 256 div 8; + +type + WHIRLPOOL_CTX_union = record + case Byte of + 0: (c: array[0 .. WHIRLPOOL_DIGEST_LENGTH -1] of Byte); + (* double q is here to ensure 64-bit alignment *) + 1: (q: array[0 .. (WHIRLPOOL_DIGEST_LENGTH div SizeOf(TIdC_DOUBLE)) -1] of TIdC_DOUBLE); + end; + WHIRLPOOL_CTX = record + H: WHIRLPOOL_CTX_union; + data: array[0 .. (WHIRLPOOL_BBLOCK div 8) -1] of Byte; + bitoff: TIdC_UINT; + bitlen: array[0 .. (WHIRLPOOL_COUNTER div SizeOf(TIdC_SIZET)) -1] of TIdC_SIZET; + end; + PWHIRLPOOL_CTX = ^WHIRLPOOL_CTX; + + function WHIRLPOOL_Init(c: PWHIRLPOOL_CTX): TIdC_INT; + function WHIRLPOOL_Update(c: PWHIRLPOOL_CTX; inp: Pointer; bytes: TIdC_SIZET): TIdC_INT; + procedure WHIRLPOOL_BitUpdate(c: PWHIRLPOOL_CTX; inp: Pointer; bits: TIdC_SIZET); + function WHIRLPOOL_Final(md: PByte; c: PWHIRLPOOL_CTX): TIdC_INT; + function WHIRLPOOL(inp: Pointer; bytes: TIdC_SIZET; md: PByte): PByte; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509.h2pas new file mode 100644 index 000000000..4b7eecb87 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509.h2pas @@ -0,0 +1,1272 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_x509; + +interface + +// Headers for OpenSSL 1.1.1 +// x509.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_asn1, + IdOpenSSLHeaders_bio, + IdOpenSSLHeaders_evp, + IdOpenSSLHeaders_stack, + IdOpenSSLHeaders_objects, + IdOpenSSLHeaders_ossl_typ; + +type + X509_ALGORS = type Pointer; + +const + (* Flags for X509_get_signature_info() *) + (* Signature info is valid *) + X509_SIG_INFO_VALID = $1; + (* Signature is suitable for TLS use *) + X509_SIG_INFO_TLS = $2; + + X509_FILETYPE_PEM = 1; + X509_FILETYPE_ASN1 = 2; + X509_FILETYPE_DEFAULT = 3; + + X509v3_KU_DIGITAL_SIGNATURE = $0080; + X509v3_KU_NON_REPUDIATION = $0040; + X509v3_KU_KEY_ENCIPHERMENT = $0020; + X509v3_KU_DATA_ENCIPHERMENT = $0010; + X509v3_KU_KEY_AGREEMENT = $0008; + X509v3_KU_KEY_CERT_SIGN = $0004; + X509v3_KU_CRL_SIGN = $0002; + X509v3_KU_ENCIPHER_ONLY = $0001; + X509v3_KU_DECIPHER_ONLY = $8000; + X509v3_KU_UNDEF = $ffff; + + X509_EX_V_NETSCAPE_HACK = $8000; + X509_EX_V_INIT = $0001; + + + (* standard trust ids *) + + X509_TRUST_DEFAULT = 0; (* Only valid in purpose settings *) + + X509_TRUST_COMPAT = 1; + X509_TRUST_SSL_CLIENT = 2; + X509_TRUST_SSL_SERVER = 3; + X509_TRUST_EMAIL = 4; + X509_TRUST_OBJECT_SIGN = 5; + X509_TRUST_OCSP_SIGN = 6; + X509_TRUST_OCSP_REQUEST = 7; + X509_TRUST_TSA = 8; + + (* Keep these up to date! *) + X509_TRUST_MIN = 1; + X509_TRUST_MAX = 8; + + (* trust_flags values *) + X509_TRUST_DYNAMIC = TIdC_UINT(1) shl 0; + X509_TRUST_DYNAMIC_NAME = TIdC_UINT(1) shl 1; + (* No compat trust if self-signed, preempts "DO_SS" *) + X509_TRUST_NO_SS_COMPAT = TIdC_UINT(1) shl 2; + (* Compat trust if no explicit accepted trust EKUs *) + X509_TRUST_DO_SS_COMPAT = TIdC_UINT(1) shl 3; + (* Accept "anyEKU" as a wildcard trust OID *) + X509_TRUST_OK_ANY_EKU = TIdC_UINT(1) shl 4; + + (* check_trust return codes *) + + X509_TRUST_TRUSTED = 1; + X509_TRUST_REJECTED = 2; + X509_TRUST_UNTRUSTED = 3; + + (* Flags for X509_print_ex() *) + + X509_FLAG_COMPAT = 0; + X509_FLAG_NO_HEADER = TIdC_LONG(1); + X509_FLAG_NO_VERSION = TIdC_LONG(1) shl 1; + X509_FLAG_NO_SERIAL = TIdC_LONG(1) shl 2; + X509_FLAG_NO_SIGNAME = TIdC_LONG(1) shl 3; + X509_FLAG_NO_ISSUER = TIdC_LONG(1) shl 4; + X509_FLAG_NO_VALIDITY = TIdC_LONG(1) shl 5; + X509_FLAG_NO_SUBJECT = TIdC_LONG(1) shl 6; + X509_FLAG_NO_PUBKEY = TIdC_LONG(1) shl 7; + X509_FLAG_NO_EXTENSIONS = TIdC_LONG(1) shl 8; + X509_FLAG_NO_SIGDUMP = TIdC_LONG(1) shl 9; + X509_FLAG_NO_AUX = TIdC_LONG(1) shl 10; + X509_FLAG_NO_ATTRIBUTES = TIdC_LONG(1) shl 11; + X509_FLAG_NO_IDS = TIdC_LONG(1) shl 12; + + (* Flags specific to X509_NAME_print_ex() *) + + (* The field separator information *) + + XN_FLAG_SEP_MASK = $f shl 16; + + XN_FLAG_COMPAT = 0;(* Traditional; use old X509_NAME_print *) + XN_FLAG_SEP_COMMA_PLUS = 1 shl 16;(* RFC2253 ,+ *) + XN_FLAG_SEP_CPLUS_SPC = 2 shl 16;(* ,+ spaced: more readable *) + XN_FLAG_SEP_SPLUS_SPC = 3 shl 16;(* ;+ spaced *) + XN_FLAG_SEP_MULTILINE = 4 shl 16;(* One line per field *) + + XN_FLAG_DN_REV = 1 shl 20;(* Reverse DN order *) + + (* How the field name is shown *) + + XN_FLAG_FN_MASK = $3 shl 21; + + XN_FLAG_FN_SN = 0;(* Object short name *) + XN_FLAG_FN_LN = 1 shl 21;(* Object long name *) + XN_FLAG_FN_OID = 2 shl 21;(* Always use OIDs *) + XN_FLAG_FN_NONE = 3 shl 21;(* No field names *) + + XN_FLAG_SPC_EQ = 1 shl 23;(* Put spaces round '=' *) + + {function codes} + X509_F_ADD_CERT_DIR = 100; + X509_F_BY_FILE_CTRL = 101; + X509_F_CHECK_NAME_CONSTRAINTS = 106; + X509_F_CHECK_POLICY = 145; + X509_F_DIR_CTRL = 102; + X509_F_GET_CERT_BY_SUBJECT = 103; + X509_F_NETSCAPE_SPKI_B64_DECODE = 129; + X509_F_NETSCAPE_SPKI_B64_ENCODE = 130; + X509_F_X509AT_ADD1_ATTR = 135; + X509_F_X509V3_ADD_EXT = 104; + X509_F_X509_ATTRIBUTE_CREATE_BY_NID = 136; + X509_F_X509_ATTRIBUTE_CREATE_BY_OBJ = 137; + X509_F_X509_ATTRIBUTE_CREATE_BY_TXT = 140; + X509_F_X509_ATTRIBUTE_GET0_DATA = 139; + X509_F_X509_ATTRIBUTE_SET1_DATA = 138; + X509_F_X509_CHECK_PRIVATE_KEY = 128; + X509_F_X509_CRL_DIFF = 105; + X509_F_X509_CRL_PRINT_FP = 147; + X509_F_X509_EXTENSION_CREATE_BY_NID = 108; + X509_F_X509_EXTENSION_CREATE_BY_OBJ = 109; + X509_F_X509_GET_PUBKEY_PARAMETERS = 110; + X509_F_X509_LOAD_CERT_CRL_FILE = 132; + X509_F_X509_LOAD_CERT_FILE = 111; + X509_F_X509_LOAD_CRL_FILE = 112; + X509_F_X509_NAME_ADD_ENTRY = 113; + X509_F_X509_NAME_ENTRY_CREATE_BY_NID = 114; + X509_F_X509_NAME_ENTRY_CREATE_BY_TXT = 131; + X509_F_X509_NAME_ENTRY_SET_OBJECT = 115; + X509_F_X509_NAME_ONELINE = 116; + X509_F_X509_NAME_PRINT = 117; + X509_F_X509_PRINT_EX_FP = 118; + X509_F_X509_PUBKEY_GET = 119; + X509_F_X509_PUBKEY_SET = 120; + X509_F_X509_REQ_CHECK_PRIVATE_KEY = 144; + X509_F_X509_REQ_PRINT_EX = 121; + X509_F_X509_REQ_PRINT_FP = 122; + X509_F_X509_REQ_TO_X509 = 123; + X509_F_X509_STORE_ADD_CERT = 124; + X509_F_X509_STORE_ADD_CRL = 125; + X509_F_X509_STORE_CTX_GET1_ISSUER = 146; + X509_F_X509_STORE_CTX_INIT = 143; + X509_F_X509_STORE_CTX_NEW = 142; + X509_F_X509_STORE_CTX_PURPOSE_INHERIT = 134; + X509_F_X509_TO_X509_REQ = 126; + X509_F_X509_TRUST_ADD = 133; + X509_F_X509_TRUST_SET = 141; + X509_F_X509_VERIFY_CERT = 127; + + {Reason Codes} + X509_R_AKID_MISMATCH = 110; + X509_R_BAD_X509_FILETYPE = 100; + X509_R_BASE64_DECODE_ERROR = 118; + X509_R_CANT_CHECK_DH_KEY = 114; + X509_R_CERT_ALREADY_IN_HASH_TABLE = 101; + X509_R_CRL_ALREADY_DELTA = 127; + X509_R_CRL_VERIFY_FAILURE = 131; + X509_R_ERR_ASN1_LIB = 102; + X509_R_IDP_MISMATCH = 128; + X509_R_INVALID_DIRECTORY = 113; + X509_R_INVALID_FIELD_NAME = 119; + X509_R_INVALID_TRUST = 123; + X509_R_ISSUER_MISMATCH = 129; + X509_R_KEY_TYPE_MISMATCH = 115; + X509_R_KEY_VALUES_MISMATCH = 116; + X509_R_LOADING_CERT_DIR = 103; + X509_R_LOADING_DEFAULTS = 104; + X509_R_METHOD_NOT_SUPPORTED = 124; + X509_R_NAME_TOO_LONG = 134; + X509_R_NEWER_CRL_NOT_NEWER = 132; + X509_R_NO_CERT_SET_FOR_US_TO_VERIFY = 105; + X509_R_NO_CRL_NUMBER = 130; + X509_R_PUBLIC_KEY_DECODE_ERROR = 125; + X509_R_PUBLIC_KEY_ENCODE_ERROR = 126; + X509_R_SHOULD_RETRY = 106; + X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN = 107; + X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY = 108; + X509_R_UNKNOWN_KEY_TYPE = 117; + X509_R_UNKNOWN_NID = 109; + X509_R_UNKNOWN_PURPOSE_ID = 121; + X509_R_UNKNOWN_TRUST_ID = 120; + X509_R_UNSUPPORTED_ALGORITHM = 111; + X509_R_WRONG_LOOKUP_TYPE = 112; + X509_R_WRONG_TYPE = 122; + + (* + * This determines if we dump fields we don't recognise: RFC2253 requires + * this. + *) + + XN_FLAG_DUMP_UNKNOWN_FIELDS = 1 shl 24; + + XN_FLAG_FN_ALIGN = 1 shl 25;(* Align field names to 20 + * characters *) + + (* Complete set of RFC2253 flags *) + + XN_FLAG_RFC2253 = ASN1_STRFLGS_RFC2253 or XN_FLAG_SEP_COMMA_PLUS + or XN_FLAG_DN_REV or XN_FLAG_FN_SN or XN_FLAG_DUMP_UNKNOWN_FIELDS; + + (* readable oneline form *) + + XN_FLAG_ONELINE = ASN1_STRFLGS_RFC2253 or ASN1_STRFLGS_ESC_QUOTE + or XN_FLAG_SEP_CPLUS_SPC or XN_FLAG_SPC_EQ or XN_FLAG_FN_SN; + + (* readable multiline form *) + + XN_FLAG_MULTILINE = ASN1_STRFLGS_ESC_CTRL or ASN1_STRFLGS_ESC_MSB + or XN_FLAG_SEP_MULTILINE or XN_FLAG_SPC_EQ or XN_FLAG_FN_LN or XN_FLAG_FN_ALIGN; + + X509_EXT_PACK_UNKNOWN = 1; + X509_EXT_PACK_STRING = 2; + +type + + X509_val_st = record + notBefore: PASN1_TIME; + notAfter: PASN1_TIME; + end; + X509_VAL = X509_val_st; + PX509_VAL = ^X509_VAL; + PPX509_VAL = ^PX509_VAL; + + X509_SIG = type Pointer; // X509_sig_st + PX509_SIG = ^X509_SIG; + PPX509_SIG = ^PX509_SIG; + + X509_NAME_ENTRY = type Pointer; // X509_name_entry_st + PX509_NAME_ENTRY = ^X509_NAME_ENTRY; + PPX509_NAME_ENTRY = ^PX509_NAME_ENTRY; + + //DEFINE_STACK_OF(X509_NAME_ENTRY) + PSTACK_OF_X509_NAME_ENTRY = type pointer; + // + //DEFINE_STACK_OF(X509_NAME) + PSTACK_OF_X509_NAME = type pointer; + + X509_EXTENSION = type Pointer; // X509_extension_st + PX509_EXTENSION = ^X509_EXTENSION; + PPX509_EXTENSION = ^PX509_EXTENSION; + + //typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS; + // + //DEFINE_STACK_OF(X509_EXTENSION) + + X509_ATTRIBUTE = type Pointer; // x509_attributes_st + PX509_ATTRIBUTE = ^X509_ATTRIBUTE; + PPX509_ATTRIBUTE = ^PX509_ATTRIBUTE; + + //DEFINE_STACK_OF(X509_ATTRIBUTE) + + X509_REQ_INFO = type Pointer; // X509_req_info_st + PX509_REQ_INFO = ^X509_REQ_INFO; + PPX509_REQ_INFO = ^PX509_REQ_INFO; + + X509_CERT_AUX = type Pointer; // x509_cert_aux_st + + X509_CINF = type Pointer; // x509_cinf_st + + //DEFINE_STACK_OF(X509) + + (* This is used for a table of trust checking functions *) + + Px509_trust_st = ^x509_trust_st; + x509_trust_st = record + trust: TIdC_INT; + flags: TIdC_INT; + check_trust: function(v1: Px509_trust_st; v2: PX509; v3: TIdC_INT): TIdC_INT; cdecl; + name: PIdAnsiChar; + arg1: TIdC_INT; + arg2: Pointer; + end; + X509_TRUST = x509_trust_st; + PX509_TRUST = ^X509_TRUST; + + //DEFINE_STACK_OF(X509_TRUST) + + //DEFINE_STACK_OF(X509_REVOKED) + X509_CRL_INFO = type Pointer; // X509_crl_info_st + PX509_CRL_INFO = ^X509_CRL_INFO; + PPX509_CRL_INFO = ^PX509_CRL_INFO; + + //DEFINE_STACK_OF(X509_CRL) + + private_key_st = record + version: TIdC_INT; + (* The PKCS#8 data types *) + enc_algor: PX509_ALGOR; + enc_pkey: PASN1_OCTET_STRING; (* encrypted pub key *) + (* When decrypted, the following will not be NULL *) + dec_pkey: PEVP_PKEY; + (* used to encrypt and decrypt *) + key_length: TIdC_INT; + key_data: PIdAnsiChar; + key_free: TIdC_INT; (* true if we should auto free key_data *) + (* expanded version of 'enc_algor' *) + cipher: EVP_CIPHER_INFO; + end; + X509_PKEY = private_key_st; + PX509_PKEY = ^X509_PKEY; + + X509_info_st = record + x509: PX509; + crl: PX509_CRL; + x_pkey: PX509_PKEY; + enc_cipher: EVP_CIPHER_INFO; + enc_len: TIdC_INT; + enc_data: PIdAnsiChar; + end; + X509_INFO = X509_info_st; + PX509_INFO = ^X509_INFO; + + //DEFINE_STACK_OF(X509_INFO) + + (* + * The next 2 structures and their 8 routines are used to manipulate Netscape's + * spki structures - useful if you are writing a CA web page + *) + Netscape_spkac_st = record + pubkey: PX509_PUBKEY; + challenge: PASN1_IA5STRING; (* challenge sent in atlas >= PR2 *) + end; + NETSCAPE_SPKAC = Netscape_spkac_st; + PNETSCAPE_SPKAC = ^NETSCAPE_SPKAC; + + Netscape_spki_st = record + spkac: PNETSCAPE_SPKAC; (* signed public key and challenge *) + sig_algor: X509_ALGOR; + signature: PASN1_BIT_STRING; + end; + NETSCAPE_SPKI = Netscape_spki_st; + PNETSCAPE_SPKI = ^NETSCAPE_SPKI; + + (* Netscape certificate sequence structure *) +// Netscape_certificate_sequence: record +// type_: PASN1_OBJECT; +// certs: P --> STACK_OF(X509) <--; +// end; +// NETSCAPE_CERT_SEQUENCE = Netscape_certificate_sequence; + + (*- Unused (and iv length is wrong) + typedef struct CBCParameter_st + { + unsigned char iv[8]; + } CBC_PARAM; + *) + + (* Password based encryption structure *) + PBEPARAM_st = record + salt: PASN1_OCTET_STRING; + iter: PASN1_INTEGER; + end; + PBEPARAM = PBEPARAM_st; + + (* Password based encryption V2 structures *) + PBE2PARAM_st = record + keyfunc: PX509_ALGOR; + encryption: X509_ALGOR; + end; + PBE2PARAM = PBE2PARAM_st; + + PBKDF2PARAM_st = record + (* Usually OCTET STRING but could be anything *) + salt: PASN1_TYPE; + iter: PASN1_INTEGER; + keylength: PASN1_INTEGER; + prf: X509_ALGOR; + end; + PBKDF2PARAM = PBKDF2PARAM_st; + + SCRYPT_PARAMS_st = record + salt: PASN1_OCTET_STRING; + costParameter: PASN1_INTEGER; + blockSize: PASN1_INTEGER; + parallelizationParameter: PASN1_INTEGER; + keyLength: ASN1_INTEGER; + end; + SCRYPT_PARAMS = SCRYPT_PARAMS_st; + + //# define X509_extract_key(x) X509_get_pubkey(x)(*****) + //# define X509_REQ_extract_key(a) X509_REQ_get_pubkey(a) + //# define X509_name_cmp(a,b) X509_NAME_cmp((a),(b)) + // + + procedure X509_CRL_set_default_method(const meth: PX509_CRL_METHOD); +// function X509_CRL_METHOD_new(crl_init: function(crl: X509_CRL): TIdC_INT; +// crl_free: function(crl: PX509_CRL): TIdC_INT; +// crl_lookup: function(crl: PX509_CRL; ret: PPX509_REVOKED; ser: PASN1_INTEGER; issuer: PX509_NAME): TIdC_INT; +// crl_verify: function(crl: PX509_CRL, pk: PEVP_PKEY): TIdC_INT): PX509_CRL_METHOD; + procedure X509_CRL_METHOD_free(m: PX509_CRL_METHOD); + + procedure X509_CRL_set_meth_data(crl: PX509_CRL; dat: Pointer); + function X509_CRL_get_meth_data(crl: PX509_CRL): Pointer; + + function X509_verify_cert_error_string(n: TIdC_LONG): PIdAnsiChar; + + function X509_verify(a: PX509; r: PEVP_PKEY): TIdC_INT; + + function X509_REQ_verify(a: PX509_REQ; r: PEVP_PKEY): TIdC_INT; + function X509_CRL_verify(a: PX509_CRL; r: PEVP_PKEY): TIdC_INT; + function NETSCAPE_SPKI_verify(a: PNETSCAPE_SPKI; r: PEVP_PKEY): TIdC_INT; + + function NETSCAPE_SPKI_b64_decode(const str: PIdAnsiChar; len: TIdC_INT): PNETSCAPE_SPKI; + function NETSCAPE_SPKI_b64_encode(x: PNETSCAPE_SPKI): PIdAnsiChar; + function NETSCAPE_SPKI_get_pubkey(x: PNETSCAPE_SPKI): PEVP_PKEY; + function NETSCAPE_SPKI_set_pubkey(x: PNETSCAPE_SPKI; pkey: PEVP_PKEY): TIdC_INT; + + function NETSCAPE_SPKI_print(out_: PBIO; spki: PNETSCAPE_SPKI): TIdC_INT; + + function X509_signature_dump(bp: PBIO; const sig: PASN1_STRING; indent: TIdC_INT): TIdC_INT; + function X509_signature_print(bp: PBIO; const alg: PX509_ALGOR; const sig: PASN1_STRING): TIdC_INT; + + function X509_sign(x: PX509; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT; + function X509_sign_ctx(x: PX509; ctx: PEVP_MD_CTX): TIdC_INT; + + function X509_http_nbio(rctx: POCSP_REQ_CTX; pcert: PPX509): TIdC_INT; {removed 3.0.0} + + function X509_REQ_sign(x: PX509_REQ; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT; + function X509_REQ_sign_ctx(x: PX509_REQ; ctx: PEVP_MD_CTX): TIdC_INT; + function X509_CRL_sign(x: PX509_CRL; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT; + function X509_CRL_sign_ctx(x: PX509_CRL; ctx: PEVP_MD_CTX): TIdC_INT; + + function X509_CRL_http_nbio(rctx: POCSP_REQ_CTX; pcrl: PPX509_CRL): TIdC_INT; {removed 3.0.0} + + function NETSCAPE_SPKI_sign(x: PNETSCAPE_SPKI; pkey: PEVP_PKEY; const md: PEVP_MD): TIdC_INT; + + function X509_pubkey_digest(const data: PX509; const type_: PEVP_MD; md: PByte; len: PIdC_UINT): TIdC_INT; + function X509_digest(const data: PX509; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT; + function X509_CRL_digest(const data: PX509_CRL; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT; + function X509_REQ_digest(const data: PX509_REQ; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT; + function X509_NAME_digest(const data: PX509_NAME; const type_: PEVP_MD; md: PByte; var len: TIdC_UINT): TIdC_INT; + + //# ifndef OPENSSL_NO_STDIO + //X509 *d2i_X509_fp(FILE *fp, X509 **x509); + //TIdC_INT i2d_X509_fp(FILE *fp, X509 *x509); + //X509_CRL *d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl); + //TIdC_INT i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl); + //X509_REQ *d2i_X509_REQ_fp(FILE *fp, X509_REQ **req); + //TIdC_INT i2d_X509_REQ_fp(FILE *fp, X509_REQ *req); + //# ifndef OPENSSL_NO_RSA + //RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa); + //TIdC_INT i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa); + //RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa); + //TIdC_INT i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa); + //RSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa); + //TIdC_INT i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa); + //# endif + //# ifndef OPENSSL_NO_DSA + //DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa); + //TIdC_INT i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa); + //DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa); + //TIdC_INT i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa); + //# endif + //# ifndef OPENSSL_NO_EC + //EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey); + //TIdC_INT i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey); + //EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey); + //TIdC_INT i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey); + //# endif + //X509_SIG *d2i_PKCS8_fp(FILE *fp, X509_SIG **p8); + //TIdC_INT i2d_PKCS8_fp(FILE *fp, X509_SIG *p8); + //PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, + // PKCS8_PRIV_KEY_INFO **p8inf); + //TIdC_INT i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf); + //TIdC_INT i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key); + //TIdC_INT i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey); + //EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a); + //TIdC_INT i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey); + //EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a); + //# endif + + function d2i_X509_bio(bp: PBIO; x509: PPX509): PX509; + function i2d_X509_bio(bp: PBIO; x509: PX509): TIdC_INT; + function d2i_X509_CRL_bio(bp: PBIO; crl: PPX509_CRL): PX509_CRL; + function i2d_X509_CRL_bio(bp: PBIO; crl: PX509_CRL): TIdC_INT; + function d2i_X509_REQ_bio(bp: PBIO; req: PPX509_REQ): PX509_REQ; + function i2d_X509_REQ_bio(bp: PBIO; req: PX509_REQ): TIdC_INT; + + function d2i_RSAPrivateKey_bio(bp: PBIO; rsa: PPRSA): PRSA; + function i2d_RSAPrivateKey_bio(bp: PBIO; rsa: PRSA): TIdC_INT; + function d2i_RSAPublicKey_bio(bp: PBIO; rsa: PPRSA): PRSA; + function i2d_RSAPublicKey_bio(bp: PBIO; rsa: PRSA): TIdC_INT; + function d2i_RSA_PUBKEY_bio(bp: PBIO; rsa: PPRSA): PRSA; + function i2d_RSA_PUBKEY_bio(bp: PBIO; rsa: PRSA): TIdC_INT; + + function d2i_DSA_PUBKEY_bio(bp: PBIO; dsa: PPDSA): DSA; + function i2d_DSA_PUBKEY_bio(bp: PBIO; dsa: PDSA): TIdC_INT; + function d2i_DSAPrivateKey_bio(bp: PBIO; dsa: PPDSA): PDSA; + function i2d_DSAPrivateKey_bio(bp: PBIO; dsa: PDSA): TIdC_INT; + + function d2i_EC_PUBKEY_bio(bp: PBIO; eckey: PPEC_KEY): PEC_KEY; + function i2d_EC_PUBKEY_bio(bp: PBIO; eckey: PEC_KEY): TIdC_INT; + function d2i_ECPrivateKey_bio(bp: PBIO; eckey: PPEC_KEY): EC_KEY; + function i2d_ECPrivateKey_bio(bp: PBIO; eckey: PEC_KEY): TIdC_INT; + + function d2i_PKCS8_bio(bp: PBIO; p8: PPX509_SIG): PX509_SIG; + function i2d_PKCS8_bio(bp: PBIO; p8: PX509_SIG): TIdC_INT; + function d2i_PKCS8_PRIV_KEY_INFO_bio(bp: PBIO; p8inf: PPPKCS8_PRIV_KEY_INFO): PPKCS8_PRIV_KEY_INFO; + function i2d_PKCS8_PRIV_KEY_INFO_bio(bp: PBIO; p8inf: PPKCS8_PRIV_KEY_INFO): TIdC_INT; + function i2d_PKCS8PrivateKeyInfo_bio(bp: PBIO; key: PEVP_PKEY): TIdC_INT; + function i2d_PrivateKey_bio(bp: PBIO; pkey: PEVP_PKEY): TIdC_INT; + function d2i_PrivateKey_bio(bp: PBIO; a: PPEVP_PKEY): PEVP_PKEY; + function i2d_PUBKEY_bio(bp: PBIO; pkey: PEVP_PKEY): TIdC_INT; + function d2i_PUBKEY_bio(bp: PBIO; a: PPEVP_PKEY): PEVP_PKEY; + + function X509_dup(x509: PX509): PX509; + function X509_ATTRIBUTE_dup(xa: PX509_ATTRIBUTE): PX509_ATTRIBUTE; + function X509_EXTENSION_dup(ex: PX509_EXTENSION): PX509_EXTENSION; + function X509_CRL_dup(crl: PX509_CRL): PX509_CRL; + function X509_REVOKED_dup(rev: PX509_REVOKED): PX509_REVOKED; + function X509_REQ_dup(req: PX509_REQ): PX509_REQ; + function X509_ALGOR_dup(xn: PX509_ALGOR): PX509_ALGOR; + function X509_ALGOR_set0(alg: PX509_ALGOR; aobj: PASN1_OBJECT; ptype: TIdC_INT; pval: Pointer): TIdC_INT; + procedure X509_ALGOR_get0(const paobj: PPASN1_OBJECT; pptype: PIdC_INT; const ppval: PPointer; const algor: PX509_ALGOR); + procedure X509_ALGOR_set_md(alg: PX509_ALGOR; const md: PEVP_MD); + function X509_ALGOR_cmp(const a: PX509_ALGOR; const b: PX509_ALGOR): TIdC_INT; + + function X509_NAME_dup(xn: PX509_NAME): PX509_NAME; + function X509_NAME_ENTRY_dup(ne: PX509_NAME_ENTRY): PX509_NAME_ENTRY; + + function X509_cmp_time(const s: PASN1_TIME; t: PIdC_TIMET): TIdC_INT; + function X509_cmp_current_time(const s: PASN1_TIME): TIdC_INT; + function X509_time_adj(s: PASN1_TIME; adj: TIdC_LONG; t: PIdC_TIMET): PASN1_TIME; + function X509_time_adj_ex(s: PASN1_TIME; offset_day: TIdC_INT; offset_sec: TIdC_LONG; t: PIdC_TIMET): PASN1_TIME; + function X509_gmtime_adj(s: PASN1_TIME; adj: TIdC_LONG): PASN1_TIME; + + function X509_get_default_cert_area: PIdAnsiChar; + function X509_get_default_cert_dir: PIdAnsiChar; + function X509_get_default_cert_file: PIdAnsiChar; + function X509_get_default_cert_dir_env: PIdAnsiChar; + function X509_get_default_cert_file_env: PIdAnsiChar; + function X509_get_default_private_dir: PIdAnsiChar; + + function X509_to_X509_REQ(x: PX509; pkey: PEVP_PKEY; const md: PEVP_MD): PX509_REQ; + function X509_REQ_to_X509(r: PX509_REQ; days: TIdC_INT; pkey: PEVP_PKEY): PX509; + + function X509_ALGOR_new: PX509_ALGOR; + procedure X509_ALGOR_free(v1: PX509_ALGOR); + function d2i_X509_ALGOR(a: PPX509_ALGOR; const in_: PPByte; len: TIdC_LONG): PX509_ALGOR; + function i2d_X509_ALGOR(a: PX509_ALGOR; out_: PPByte): TIdC_INT; + //DECLARE_ASN1_ENCODE_FUNCTIONS(X509_ALGORS, X509_ALGORS, X509_ALGORS) + function X509_VAL_new: PX509_VAL; + procedure X509_VAL_free(v1: PX509_VAL); + function d2i_X509_VAL(a: PPX509_VAL; const in_: PPByte; len: TIdC_LONG): PX509_VAL; + function i2d_X509_VAL(a: PX509_VAL; out_: PPByte): TIdC_INT; + + function X509_PUBKEY_new: PX509_PUBKEY; + procedure X509_PUBKEY_free(v1: PX509_PUBKEY); + function d2i_X509_PUBKEY(a: PPX509_PUBKEY; const in_: PPByte; len: TIdC_LONG): PX509_PUBKEY; + function i2d_X509_PUBKEY(a: PX509_PUBKEY; out_: PPByte): TIdC_INT; + + function X509_PUBKEY_set(x: PPX509_PUBKEY; pkey: PEVP_PKEY): TIdC_INT; + function X509_PUBKEY_get0(key: PX509_PUBKEY): PEVP_PKEY; {introduced 1.1.0} + function X509_PUBKEY_get(key: PX509_PUBKEY): PEVP_PKEY; +// function X509_get_pubkey_parameters(pkey: PEVP_PKEY; chain: P STACK_OF(X509)): TIdC_INT; + function X509_get_pathlen(x: PX509): TIdC_LONG; {introduced 1.1.0} + function i2d_PUBKEY(a: PEVP_PKEY; pp: PPByte): TIdC_INT; + function d2i_PUBKEY(a: PPEVP_PKEY; const pp: PPByte; length: TIdC_LONG): PEVP_PKEY; + + function i2d_RSA_PUBKEY(a: PRSA; pp: PPByte): TIdC_INT; + function d2i_RSA_PUBKEY(a: PPRSA; const pp: PPByte; length: TIdC_LONG): PRSA; + + function i2d_DSA_PUBKEY(a: PDSA; pp: PPByte): TIdC_INT; + function d2i_DSA_PUBKEY(a: PPDSA; const pp: PPByte; length: TIdC_LONG): PDSA; + + function i2d_EC_PUBKEY(a: EC_KEY; pp: PPByte): TIdC_INT; + function d2i_EC_PUBKEY(a: PPEC_KEY; const pp: PPByte; length: TIdC_LONG): PEC_KEY; + + function X509_SIG_new: PX509_SIG; + procedure X509_SIG_free(v1: PX509_SIG); + function d2i_X509_SIG(a: PPX509_SIG; const in_: PPByte; len: TIdC_LONG): PX509_SIG; + function i2d_X509_SIG(a: PX509_SIG; out_: PPByte): TIdC_INT; + procedure X509_SIG_get0(const sig: PX509_SIG; const palg: PPX509_ALGOR; const pdigest: PPASN1_OCTET_STRING); {introduced 1.1.0} + procedure X509_SIG_getm(sig: X509_SIG; palg: PPX509_ALGOR; pdigest: PPASN1_OCTET_STRING); {introduced 1.1.0} + + function X509_REQ_INFO_new: PX509_REQ_INFO; + procedure X509_REQ_INFO_free(v1: PX509_REQ_INFO); + function d2i_X509_REQ_INFO(a: PPX509_REQ_INFO; const in_: PPByte; len: TIdC_LONG): PX509_REQ_INFO; + function i2d_X509_REQ_INFO(a: PX509_REQ_INFO; out_: PPByte): TIdC_INT; + + function X509_REQ_new: PX509_REQ; + procedure X509_REQ_free(v1: PX509_REQ); + function d2i_X509_REQ(a: PPX509_REQ; const in_: PPByte; len: TIdC_LONG): PX509_REQ; + function i2d_X509_REQ(a: PX509_REQ; out_: PPByte): TIdC_INT; + + function X509_ATTRIBUTE_new: PX509_ATTRIBUTE; + procedure X509_ATTRIBUTE_free(v1: PX509_ATTRIBUTE); + function d2i_X509_ATTRIBUTE(a: PPX509_ATTRIBUTE; const in_: PPByte; len: TIdC_LONG): PX509_ATTRIBUTE; + function i2d_X509_ATTRIBUTE(a: PX509_ATTRIBUTE; out_: PPByte): TIdC_INT; + function X509_ATTRIBUTE_create(nid: TIdC_INT; trtype: TIdC_INT; value: Pointer): PX509_ATTRIBUTE; + + function X509_EXTENSION_new: PX509_EXTENSION; + procedure X509_EXTENSION_free(v1: PX509_EXTENSION); + function d2i_X509_EXTENSION(a: PPX509_EXTENSION; const in_: PPByte; len: TIdC_LONG): PX509_EXTENSION; + function i2d_X509_EXTENSION(a: PX509_EXTENSION; out_: PPByte): TIdC_INT; + //DECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS) + + function X509_NAME_ENTRY_new: PX509_NAME_ENTRY; + procedure X509_NAME_ENTRY_free(v1: PX509_NAME_ENTRY); + function d2i_X509_NAME_ENTRY(a: PPX509_NAME_ENTRY; const in_: PPByte; len: TIdC_LONG): PX509_NAME_ENTRY; + function i2d_X509_NAME_ENTRY(a: PX509_NAME_ENTRY; out_: PPByte): TIdC_INT; + + function X509_NAME_new: PX509_NAME; + procedure X509_NAME_free(v1: PX509_NAME); + function d2i_X509_NAME(a: PPX509_NAME; const in_: PPByte; len: TIdC_LONG): PX509_NAME; + function i2d_X509_NAME(a: PX509_NAME; out_: PPByte): TIdC_INT; + + function X509_NAME_set(xn: PPX509_NAME; name: PX509_NAME): TIdC_INT; + + //DECLARE_ASN1_FUNCTIONS(X509_CINF) + + function X509_new: PX509; + procedure X509_free(v1: PX509); + function d2i_X509(a: PPX509; const in_: PPByte; len: TIdC_LONG): PX509; + function i2d_X509(a: PX509; out_: PPByte): TIdC_INT; + + //DECLARE_ASN1_FUNCTIONS(X509_CERT_AUX) + // + //#define X509_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509, l, p, newf, dupf, freef) + function X509_set_ex_data(r: PX509; idx: TIdC_INT; arg: Pointer): TIdC_INT; + function X509_get_ex_data(r: PX509; idx: TIdC_INT): Pointer; + function i2d_X509_AUX(a: PX509; pp: PPByte): TIdC_INT; + function d2i_X509_AUX(a: PPX509; const pp: PPByte; length: TIdC_LONG): PX509; + + function i2d_re_X509_tbs(x: PX509; pp: PPByte): TIdC_INT; + + function X509_SIG_INFO_get(const siginf: PX509_SIG_INFO; mdnid: PIdC_INT; pknid: PIdC_INT; secbits: PIdC_INT; flags: PIdC_UINT32): TIdC_INT; {introduced 1.1.0} + procedure X509_SIG_INFO_set(siginf: PX509_SIG_INFO; mdnid: TIdC_INT; pknid: TIdC_INT; secbits: TIdC_INT; flags: TIdC_UINT32); {introduced 1.1.0} + + function X509_get_signature_info(x: PX509; mdnid: PIdC_INT; pknid: PIdC_INT; secbits: PIdC_INT; flags: PIdC_UINT32): TIdC_INT; {introduced 1.1.0} + + procedure X509_get0_signature(var sig: PASN1_BIT_STRING; var alg: PX509_ALGOR; const x: PX509); {introduced 1.1.0} + function X509_get_signature_nid(const x: PX509): TIdC_INT; + + function X509_trusted(const x: PX509): TIdC_INT; {introduced 1.1.0} + function X509_alias_set1(x: PX509; const name: PByte; len: TIdC_INT): TIdC_INT; + function X509_keyid_set1(x: PX509; const id: PByte; len: TIdC_INT): TIdC_INT; + function X509_alias_get0(x: PX509; len: PIdC_INT): PByte; + function X509_keyid_get0(x: PX509; len: PIdC_INT): PByte; +// TIdC_INT (*X509_TRUST_set_default(TIdC_INT (*trust) (TIdC_INT, X509 *, TIdC_INT))) (TIdC_INT, X509 *, +// TIdC_INT); + function X509_TRUST_set(t: PIdC_INT; trust: TIdC_INT): TIdC_INT; + function X509_add1_trust_object(x: PX509; const obj: PASN1_OBJECT): TIdC_INT; + function X509_add1_reject_object(x: PX509; const obj: PASN1_OBJECT): TIdC_INT; + procedure X509_trust_clear(x: PX509); + procedure X509_reject_clear(x: PX509); + + //STACK_OF(ASN1_OBJECT) *X509_get0_trust_objects(X509 *x); + //STACK_OF(ASN1_OBJECT) *X509_get0_reject_objects(X509 *x); + // + function X509_REVOKED_new: PX509_REVOKED; + procedure X509_REVOKED_free(v1: PX509_REVOKED); + function d2i_X509_REVOKED(a: PPX509_REVOKED; const in_: PPByte; len: TIdC_LONG): PX509_REVOKED; + function i2d_X509_REVOKED(a: PX509_REVOKED; out_: PPByte): TIdC_INT; + function X509_CRL_INFO_new: PX509_CRL_INFO; + procedure X509_CRL_INFO_free(v1: PX509_CRL_INFO); + function d2i_X509_CRL_INFO(a: PPX509_CRL_INFO; const in_: PPByte; len: TIdC_LONG): PX509_CRL_INFO; + function i2d_X509_CRL_INFO(a: PX509_CRL_INFO; out_: PPByte): TIdC_INT; + function X509_CRL_new: PX509_CRL; + procedure X509_CRL_free(v1: PX509_CRL); + function d2i_X509_CRL(a: PPX509_CRL; const in_: PPByte; len: TIdC_LONG): PX509_CRL; + function i2d_X509_CRL(a: PX509_CRL; out_: PPByte): TIdC_INT; + + function X509_CRL_add0_revoked(crl: PX509_CRL; rev: PX509_REVOKED): TIdC_INT; + function X509_CRL_get0_by_serial(crl: PX509_CRL; ret: PPX509_REVOKED; serial: PASN1_INTEGER): TIdC_INT; + function X509_CRL_get0_by_cert(crl: PX509_CRL; ret: PPX509_REVOKED; x: PX509): TIdC_INT; + + function X509_PKEY_new: PX509_PKEY; + procedure X509_PKEY_free(a: PX509_PKEY); + + //DECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKI) + //DECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKAC) + //DECLARE_ASN1_FUNCTIONS(NETSCAPE_CERT_SEQUENCE) + + function X509_INFO_new: PX509_INFO; + procedure X509_INFO_free(a: PX509_INFO); + function X509_NAME_oneline(const a: PX509_NAME; buf: PIdAnsiChar; size: TIdC_INT): PIdAnsiChar; + +// function ASN1_verify(i2d: Pi2d_of_void; algor1: PX509_ALGOR; +// signature: PASN1_BIT_STRING; data: PIdAnsiChar; pkey: PEVP_PKEY): TIdC_INT; + +// TIdC_INT ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data, +// unsigned char *md, unsigned TIdC_INT *len); + +// TIdC_INT ASN1_sign(i2d_of_void *i2d, X509_ALGOR *algor1, +// X509_ALGOR *algor2, ASN1_BIT_STRING *signature, +// char *data, EVP_PKEY *pkey, const EVP_MD *type); + + function ASN1_item_digest(const it: PASN1_ITEM; const type_: PEVP_MD; data: Pointer; md: PByte; len: PIdC_UINT): TIdC_INT; + + function ASN1_item_verify(const it: PASN1_ITEM; algor1: PX509_ALGOR; signature: PASN1_BIT_STRING; data: Pointer; pkey: PEVP_PKEY): TIdC_INT; + + function ASN1_item_sign(const it: PASN1_ITEM; algor1: PX509_ALGOR; algor2: PX509_ALGOR; signature: PASN1_BIT_STRING; data: Pointer; pkey: PEVP_PKEY; const type_: PEVP_MD): TIdC_INT; + function ASN1_item_sign_ctx(const it: PASN1_ITEM; algor1: PX509_ALGOR; algor2: PX509_ALGOR; signature: PASN1_BIT_STRING; asn: Pointer; ctx: PEVP_MD_CTX): TIdC_INT; + + function X509_get_version(const x: PX509): TIdC_LONG; {introduced 1.1.0} + function X509_set_version(x: PX509; version: TIdC_LONG): TIdC_INT; + function X509_set_serialNumber(x: PX509; serial: PASN1_INTEGER): TIdC_INT; + function X509_get_serialNumber(x: PX509): PASN1_INTEGER; + function X509_get0_serialNumber(const x: PX509): PASN1_INTEGER; {introduced 1.1.0} + function X509_set_issuer_name(x: PX509; name: PX509_NAME): TIdC_INT; + function X509_get_issuer_name(const a: PX509): PX509_NAME; + function X509_set_subject_name(x: PX509; name: PX509_NAME): TIdC_INT; + function X509_get_subject_name(const a: PX509): PX509_NAME; + function X509_get0_notBefore(const x: PX509): PASN1_TIME; {introduced 1.1.0} + function X509_getm_notBefore(const x: PX509): PASN1_TIME; {introduced 1.1.0} + function X509_set1_notBefore(x: PX509; const tm: PASN1_TIME): TIdC_INT; {introduced 1.1.0} + function X509_get0_notAfter(const x: PX509): PASN1_TIME; {introduced 1.1.0} + function X509_getm_notAfter(const x: PX509): PASN1_TIME; {introduced 1.1.0} + function X509_set1_notAfter(x: PX509; const tm: PASN1_TIME): TIdC_INT; {introduced 1.1.0} + function X509_set_pubkey(x: PX509; pkey: PEVP_PKEY): TIdC_INT; + function X509_up_ref(x: PX509): TIdC_INT; {introduced 1.1.0} + function X509_get_signature_type(const x: PX509): TIdC_INT; {introduced 1.1.0} + + (* + * This one is only used so that a binary form can output, as in + * i2d_X509_PUBKEY(X509_get_X509_PUBKEY(x), &buf) + *) + function X509_get_X509_PUBKEY(const x: PX509): PX509_PUBKEY; {introduced 1.1.0} +// const STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x); + procedure X509_get0_uids(const x: PX509; const piuid: PPASN1_BIT_STRING; const psuid: PPASN1_BIT_STRING); {introduced 1.1.0} + function X509_get0_tbs_sigalg(const x: PX509): PX509_ALGOR; {introduced 1.1.0} + + function X509_get0_pubkey(const x: PX509): PEVP_PKEY; {introduced 1.1.0} + function X509_get_pubkey(x: PX509): PEVP_PKEY; + function X509_get0_pubkey_bitstr(const x: PX509): PASN1_BIT_STRING; + function X509_certificate_type(const x: PX509; const pubkey: PEVP_PKEY): TIdC_INT; + + function X509_REQ_get_version(const req: PX509_REQ): TIdC_LONG; {introduced 1.1.0} + function X509_REQ_set_version(x: PX509_REQ; version: TIdC_LONG): TIdC_INT; + function X509_REQ_get_subject_name(const req: PX509_REQ): PX509_NAME; {introduced 1.1.0} + function X509_REQ_set_subject_name(req: PX509_REQ; name: PX509_NAME): TIdC_INT; + procedure X509_REQ_get0_signature(const req: PX509_REQ; const psig: PPASN1_BIT_STRING; const palg: PPX509_ALGOR); {introduced 1.1.0} + function X509_REQ_get_signature_nid(const req: PX509_REQ): TIdC_INT; {introduced 1.1.0} + function i2d_re_X509_REQ_tbs(req: PX509_REQ; pp: PPByte): TIdC_INT; {introduced 1.1.0} + function X509_REQ_set_pubkey(x: PX509_REQ; pkey: PEVP_PKEY): TIdC_INT; + function X509_REQ_get_pubkey(req: PX509_REQ): PEVP_PKEY; + function X509_REQ_get0_pubkey(req: PX509_REQ): PEVP_PKEY; {introduced 1.1.0} + function X509_REQ_get_X509_PUBKEY(req: PX509_REQ): PX509_PUBKEY; {introduced 1.1.0} + function X509_REQ_extension_nid(nid: TIdC_INT): TIdC_INT; + function X509_REQ_get_extension_nids: PIdC_INT; + procedure X509_REQ_set_extension_nids(nids: PIdC_INT); +// STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req); + //TIdC_INT X509_REQ_add_extensions_nid(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts, + // TIdC_INT nid); + //TIdC_INT X509_REQ_add_extensions(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts); + function X509_REQ_get_attr_count(const req: PX509_REQ): TIdC_INT; + function X509_REQ_get_attr_by_NID(const req: PX509_REQ; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function X509_REQ_get_attr_by_OBJ(const req: PX509_REQ; const obj: ASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; + function X509_REQ_get_attr(const req: PX509_REQ; loc: TIdC_INT): PX509_ATTRIBUTE; + function X509_REQ_delete_attr(req: PX509_REQ; loc: TIdC_INT): PX509_ATTRIBUTE; + function X509_REQ_add1_attr(req: PX509_REQ; attr: PX509_ATTRIBUTE): TIdC_INT; + function X509_REQ_add1_attr_by_OBJ(req: PX509_REQ; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; + function X509_REQ_add1_attr_by_NID(req: PX509_REQ; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; + function X509_REQ_add1_attr_by_txt(req: PX509_REQ; const attrname: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; + + function X509_CRL_set_version(x: PX509_CRL; version: TIdC_LONG): TIdC_INT; + function X509_CRL_set_issuer_name(x: PX509_CRL; name: PX509_NAME): TIdC_INT; + function X509_CRL_set1_lastUpdate(x: PX509_CRL; const tm: PASN1_TIME): TIdC_INT; {introduced 1.1.0} + function X509_CRL_set1_nextUpdate(x: PX509_CRL; const tm: PASN1_TIME): TIdC_INT; {introduced 1.1.0} + function X509_CRL_sort(crl: PX509_CRL): TIdC_INT; + function X509_CRL_up_ref(crl: PX509_CRL): TIdC_INT; {introduced 1.1.0} + + function X509_CRL_get_version(const crl: PX509_CRL): TIdC_LONG; {introduced 1.1.0} + function X509_CRL_get0_lastUpdate(const crl: PX509_CRL): PASN1_TIME; {introduced 1.1.0} + function X509_CRL_get0_nextUpdate(const crl: PX509_CRL): PASN1_TIME; {introduced 1.1.0} + function X509_CRL_get_issuer(const crl: PX509_CRL): PX509_NAME; {introduced 1.1.0} + //const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl); + //STACK_OF(X509_REVOKED) *X509_CRL_get_REVOKED(X509_CRL *crl); + procedure X509_CRL_get0_signature(const crl: PX509_CRL; const psig: PPASN1_BIT_STRING; const palg: PPX509_ALGOR); {introduced 1.1.0} + function X509_CRL_get_signature_nid(const crl: PX509_CRL): TIdC_INT; {introduced 1.1.0} + function i2d_re_X509_CRL_tbs(req: PX509_CRL; pp: PPByte): TIdC_INT; {introduced 1.1.0} + + function X509_REVOKED_get0_serialNumber(const x: PX509_REVOKED): PASN1_INTEGER; {introduced 1.1.0} + function X509_REVOKED_set_serialNumber(x: PX509_REVOKED; serial: PASN1_INTEGER): TIdC_INT; + function X509_REVOKED_get0_revocationDate(const x: PX509_REVOKED): PASN1_TIME; {introduced 1.1.0} + function X509_REVOKED_set_revocationDate(r: PX509_REVOKED; tm: PASN1_TIME): TIdC_INT; + //const STACK_OF(X509_EXTENSION) * + //X509_REVOKED_get0_extensions(const X509_REVOKED *r); + + function X509_CRL_diff(base: PX509_CRL; newer: PX509_CRL; skey: PEVP_PKEY; const md: PEVP_MD; flags: TIdC_UINT): PX509_CRL; + + function X509_REQ_check_private_key(x509: PX509_REQ; pkey: PEVP_PKEY): TIdC_INT; + + function X509_check_private_key(const x509: PX509; const pkey: PEVP_PKEY): TIdC_INT; + //TIdC_INT X509_chain_check_suiteb(TIdC_INT *perror_depth, + // X509 *x, STACK_OF(X509) *chain, + // unsigned TIdC_LONG flags); + function X509_CRL_check_suiteb(crl: PX509_CRL; pk: PEVP_PKEY; flags: TIdC_ULONG): TIdC_INT; + //STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain); + + function X509_issuer_and_serial_cmp(const a: PX509; const b: PX509): TIdC_INT; + function X509_issuer_and_serial_hash(a: PX509): TIdC_ULONG; + + function X509_issuer_name_cmp(const a: PX509; const b: PX509): TIdC_INT; + function X509_issuer_name_hash(a: PX509): TIdC_uLONG; + + function X509_subject_name_cmp(const a: PX509; const b: PX509): TIdC_INT; + function X509_subject_name_hash(x: PX509): TIdC_ULONG; + + function X509_cmp(const a: PX509; const b: PX509): TIdC_INT; + function X509_NAME_cmp(const a: PX509_NAME; const b: PX509_NAME): TIdC_INT; + function X509_NAME_hash(x: PX509_NAME): TIdC_ULONG; {removed 3.0.0} + function X509_NAME_hash_old(x: PX509_NAME): TIdC_ULONG; + + function X509_CRL_cmp(const a: PX509_CRL; const b: PX509_CRL): TIdC_INT; + function X509_CRL_match(const a: PX509_CRL; const b: PX509_CRL): TIdC_INT; + function X509_aux_print(out_: PBIO; x: PX509; indent: TIdC_INT): TIdC_INT; {introduced 1.1.0} + //# ifndef OPENSSL_NO_STDIO + //TIdC_INT X509_print_ex_fp(FILE *bp, X509 *x, unsigned TIdC_LONG nmflag, + // unsigned TIdC_LONG cflag); + //TIdC_INT X509_print_fp(FILE *bp, X509 *x); + //TIdC_INT X509_CRL_print_fp(FILE *bp, X509_CRL *x); + //TIdC_INT X509_REQ_print_fp(FILE *bp, X509_REQ *req); + //TIdC_INT X509_NAME_print_ex_fp(FILE *fp, const X509_NAME *nm, TIdC_INT indent, + // unsigned TIdC_LONG flags); + //# endif + + function X509_NAME_print(bp: PBIO; const name: PX509_NAME; obase: TIdC_INT): TIdC_INT; + function X509_NAME_print_ex(out_: PBIO; const nm: PX509_NAME; indent: TIdC_INT; flags: TIdC_ULONG): TIdC_INT; + function X509_print_ex(bp: PBIO; x: PX509; nmflag: TIdC_ULONG; cflag: TIdC_ULONG): TIdC_INT; + function X509_print(bp: PBIO; x: PX509): TIdC_INT; + function X509_ocspid_print(bp: PBIO; x: PX509): TIdC_INT; + function X509_CRL_print_ex(out_: PBIO; x: PX509_CRL; nmflag: TIdC_ULONG): TIdC_INT; {introduced 1.1.0} + function X509_CRL_print(bp: PBIO; x: PX509_CRL): TIdC_INT; + function X509_REQ_print_ex(bp: PBIO; x: PX509_REQ; nmflag: TIdC_ULONG; cflag: TIdC_ULONG): TIdC_INT; + function X509_REQ_print(bp: PBIO; req: PX509_REQ): TIdC_INT; + + function X509_NAME_entry_count(const name: PX509_NAME): TIdC_INT; + function X509_NAME_get_text_by_NID(name: PX509_NAME; nid: TIdC_INT; buf: PIdAnsiChar; len: TIdC_INT): TIdC_INT; + function X509_NAME_get_text_by_OBJ(name: PX509_NAME; const obj: PASN1_OBJECT; buf: PIdAnsiChar; len: TIdC_INT): TIdC_INT; + + (* + * NOTE: you should be passing -1, not 0 as lastpos. The functions that use + * lastpos, search after that position on. + *) + function X509_NAME_get_index_by_NID(name: PX509_NAME; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function X509_NAME_get_index_by_OBJ(name: PX509_NAME; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; + function X509_NAME_get_entry(const name: PX509_NAME; loc: TIdC_INT): PX509_NAME_ENTRY; + function X509_NAME_delete_entry(name: PX509_NAME; loc: TIdC_INT): pX509_NAME_ENTRY; + function X509_NAME_add_entry(name: PX509_NAME; const ne: PX509_NAME_ENTRY; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT; + function X509_NAME_add_entry_by_OBJ(name: PX509_NAME; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT; + function X509_NAME_add_entry_by_NID(name: PX509_NAME; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT; + function X509_NAME_ENTRY_create_by_txt(ne: PPX509_NAME_ENTRY; const field: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_NAME_ENTRY; + function X509_NAME_ENTRY_create_by_NID(ne: PPX509_NAME_ENTRY; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_NAME_ENTRY; + function X509_NAME_add_entry_by_txt(name: PX509_NAME; const field: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT; loc: TIdC_INT; set_: TIdC_INT): TIdC_INT; + function X509_NAME_ENTRY_create_by_OBJ(ne: PPX509_NAME_ENTRY; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_NAME_ENTRY; + function X509_NAME_ENTRY_set_object(ne: PX509_NAME_ENTRY; const obj: PASN1_OBJECT): TIdC_INT; + function X509_NAME_ENTRY_set_data(ne: PX509_NAME_ENTRY; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; + function X509_NAME_ENTRY_get_object(const ne: PX509_NAME_ENTRY): PASN1_OBJECT; + function X509_NAME_ENTRY_get_data(const ne: PX509_NAME_ENTRY): PASN1_STRING; + function X509_NAME_ENTRY_set(const ne: PX509_NAME_ENTRY): TIdC_INT; {introduced 1.1.0} + + function X509_NAME_get0_der(nm: PX509_NAME; const pder: PPByte; pderlen: PIdC_SIZET): TIdC_INT; {introduced 1.1.0} + + //TIdC_INT X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x); + //TIdC_INT X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, + // TIdC_INT nid, TIdC_INT lastpos); + //TIdC_INT X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x, + // const ASN1_OBJECT *obj, TIdC_INT lastpos); + //TIdC_INT X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x, + // TIdC_INT crit, TIdC_INT lastpos); + //X509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, TIdC_INT loc); + //X509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, TIdC_INT loc); + //STACK_OF(X509_EXTENSION) *X509v3_add_ext(STACK_OF(X509_EXTENSION) **x, + // X509_EXTENSION *ex, TIdC_INT loc); + + function X509_get_ext_count(const x: PX509): TIdC_INT; + function X509_get_ext_by_NID(const x: PX509; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function X509_get_ext_by_OBJ(const x: PX509; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; + function X509_get_ext_by_critical(const x: PX509; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function X509_get_ext(const x: PX509; loc: TIdC_INT): PX509_EXTENSION; + function X509_delete_ext(x: PX509; loc: TIdC_INT): PX509_EXTENSION; + function X509_add_ext(x: PX509; ex: PX509_EXTENSION; loc: TIdC_INT): TIdC_INT; + function X509_get_ext_d2i(const x: PX509; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer; + function X509_add1_ext_i2d(x: PX509; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; flags: TIdC_ULONG): TIdC_INT; + + function X509_CRL_get_ext_count(const x: PX509_CRL): TIdC_INT; + function X509_CRL_get_ext_by_NID(const x: PX509_CRL; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function X509_CRL_get_ext_by_OBJ(const x: X509_CRL; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; + function X509_CRL_get_ext_by_critical(const x: PX509_CRL; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function X509_CRL_get_ext(const x: PX509_CRL; loc: TIdC_INT): PX509_EXTENSION; + function X509_CRL_delete_ext(x: PX509_CRL; loc: TIdC_INT): PX509_EXTENSION; + function X509_CRL_add_ext(x: PX509_CRL; ex: PX509_EXTENSION; loc: TIdC_INT): TIdC_INT; + function X509_CRL_get_ext_d2i(const x: PX509_CRL; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer; + function X509_CRL_add1_ext_i2d(x: PX509_CRL; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; flags: TIdC_ULONG): TIdC_INT; + + function X509_REVOKED_get_ext_count(const x: PX509_REVOKED): TIdC_INT; + function X509_REVOKED_get_ext_by_NID(const x: PX509_REVOKED; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function X509_REVOKED_get_ext_by_OBJ(const x: PX509_REVOKED; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; + function X509_REVOKED_get_ext_by_critical(const x: PX509_REVOKED; crit: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function X509_REVOKED_get_ext(const x: PX509_REVOKED; loc: TIdC_INT): PX509_EXTENSION; + function X509_REVOKED_delete_ext(x: PX509_REVOKED; loc: TIdC_INT): PX509_EXTENSION; + function X509_REVOKED_add_ext(x: PX509_REVOKED; ex: PX509_EXTENSION; loc: TIdC_INT): TIdC_INT; + function X509_REVOKED_get_ext_d2i(const x: PX509_REVOKED; nid: TIdC_INT; crit: PIdC_INT; idx: PIdC_INT): Pointer; + function X509_REVOKED_add1_ext_i2d(x: PX509_REVOKED; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; flags: TIdC_ULONG): TIdC_INT; + + function X509_EXTENSION_create_by_NID(ex: PPX509_EXTENSION; nid: TIdC_INT; crit: TIdC_INT; data: PASN1_OCTET_STRING): PX509_EXTENSION; + function X509_EXTENSION_create_by_OBJ(ex: PPX509_EXTENSION; const obj: PASN1_OBJECT; crit: TIdC_INT; data: PASN1_OCTET_STRING): PX509_EXTENSION; + function X509_EXTENSION_set_object(ex: PX509_EXTENSION; const obj: PASN1_OBJECT): TIdC_INT; + function X509_EXTENSION_set_critical(ex: PX509_EXTENSION; crit: TIdC_INT): TIdC_INT; + function X509_EXTENSION_set_data(ex: PX509_EXTENSION; data: PASN1_OCTET_STRING): TIdC_INT; + function X509_EXTENSION_get_object(ex: PX509_EXTENSION): PASN1_OBJECT; + function X509_EXTENSION_get_data(ne: PX509_EXTENSION): PASN1_OCTET_STRING; + function X509_EXTENSION_get_critical(const ex: PX509_EXTENSION): TIdC_INT; + + //TIdC_INT X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x); + //TIdC_INT X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x, TIdC_INT nid, + // TIdC_INT lastpos); + //TIdC_INT X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk, + // const ASN1_OBJECT *obj, TIdC_INT lastpos); + //X509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, TIdC_INT loc); + //X509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, TIdC_INT loc); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x, + // X509_ATTRIBUTE *attr); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE) + // **x, const ASN1_OBJECT *obj, + // TIdC_INT type, + // const unsigned char *bytes, + // TIdC_INT len); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE) + // **x, TIdC_INT nid, TIdC_INT type, + // const unsigned char *bytes, + // TIdC_INT len); + //STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE) + // **x, const PIdAnsiChar *attrname, + // TIdC_INT type, + // const unsigned char *bytes, + // TIdC_INT len); + //void *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x, + // const ASN1_OBJECT *obj, TIdC_INT lastpos, TIdC_INT type); + function X509_ATTRIBUTE_create_by_NID(attr: PPX509_ATTRIBUTE; nid: TIdC_INT; atrtype: TIdC_INT; const data: Pointer; len: TIdC_INT): PX509_ATTRIBUTE; + function X509_ATTRIBUTE_create_by_OBJ(attr: PPX509_ATTRIBUTE; const obj: PASN1_OBJECT; atrtype: TIdC_INT; const data: Pointer; len: TIdC_INT): PX509_ATTRIBUTE; + function X509_ATTRIBUTE_create_by_txt(attr: PPX509_ATTRIBUTE; const atrname: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): PX509_ATTRIBUTE; + function X509_ATTRIBUTE_set1_object(attr: PX509_ATTRIBUTE; const obj: PASN1_OBJECT): TIdC_INT; + function X509_ATTRIBUTE_set1_data(attr: PX509_ATTRIBUTE; attrtype: TIdC_INT; const data: Pointer; len: TIdC_INT): TIdC_INT; + function X509_ATTRIBUTE_get0_data(attr: PX509_ATTRIBUTE; idx: TIdC_INT; atrtype: TIdC_INT; data: Pointer): Pointer; + function X509_ATTRIBUTE_count(const attr: PX509_ATTRIBUTE): TIdC_INT; + function X509_ATTRIBUTE_get0_object(attr: PX509_ATTRIBUTE): PASN1_OBJECT; + function X509_ATTRIBUTE_get0_type(attr: PX509_ATTRIBUTE; idx: TIdC_INT): PASN1_TYPE; + + function EVP_PKEY_get_attr_count(const key: PEVP_PKEY): TIdC_INT; + function EVP_PKEY_get_attr_by_NID(const key: PEVP_PKEY; nid: TIdC_INT; lastpos: TIdC_INT): TIdC_INT; + function EVP_PKEY_get_attr_by_OBJ(const key: PEVP_PKEY; const obj: PASN1_OBJECT; lastpos: TIdC_INT): TIdC_INT; + function EVP_PKEY_get_attr(const key: PEVP_PKEY; loc: TIdC_INT): PX509_ATTRIBUTE; + function EVP_PKEY_delete_attr(key: PEVP_PKEY; loc: TIdC_INT): PX509_ATTRIBUTE; + function EVP_PKEY_add1_attr(key: PEVP_PKEY; attr: PX509_ATTRIBUTE): TIdC_INT; + function EVP_PKEY_add1_attr_by_OBJ(key: PEVP_PKEY; const obj: PASN1_OBJECT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; + function EVP_PKEY_add1_attr_by_NID(key: PEVP_PKEY; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; + function EVP_PKEY_add1_attr_by_txt(key: PEVP_PKEY; const attrname: PIdAnsiChar; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; + + function X509_verify_cert(ctx: PX509_STORE_CTX): TIdC_INT; + + (* lookup a cert from a X509 STACK *) +// function X509_find_by_issuer_and_serial(sk: P STACK_OF(X509); name: PX509_NAME; serial: PASN1_INTEGER): PX509; +// X509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name); + + //DECLARE_ASN1_FUNCTIONS(PBEPARAM) + //DECLARE_ASN1_FUNCTIONS(PBE2PARAM) + //DECLARE_ASN1_FUNCTIONS(PBKDF2PARAM) + //#ifndef OPENSSL_NO_SCRYPT + //DECLARE_ASN1_FUNCTIONS(SCRYPT_PARAMS) + //#endif + + function PKCS5_pbe_set0_algor(algor: PX509_ALGOR; alg: TIdC_INT; iter: TIdC_INT; const salt: PByte; saltlen: TIdC_INT): TIdC_INT; + + function PKCS5_pbe_set(alg: TIdC_INT; iter: TIdC_INT; const salt: PByte; saltlen: TIdC_INT): PX509_ALGOR; + function PKCS5_pbe2_set(const cipher: PEVP_CIPHER; iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT): PX509_ALGOR; + function PKCS5_pbe2_set_iv(const cipher: PEVP_CIPHER; iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT; aiv: PByte; prf_nid: TIdC_INT): PX509_ALGOR; + + function PKCS5_pbe2_set_scrypt(const cipher: PEVP_CIPHER; const salt: PByte; saltlen: TIdC_INT; aiv: PByte; N: TIdC_UINT64; r: TIdC_UINT64; p: TIdC_UINT64): PX509_ALGOR; {introduced 1.1.0} + + function PKCS5_pbkdf2_set(iter: TIdC_INT; salt: PByte; saltlen: TIdC_INT; prf_nid: TIdC_INT; keylen: TIdC_INT): PX509_ALGOR; + + (* PKCS#8 utilities *) + + //DECLARE_ASN1_FUNCTIONS(PKCS8_PRIV_KEY_INFO) + + function EVP_PKCS82PKEY(const p8: PPKCS8_PRIV_KEY_INFO): PEVP_PKEY; + function EVP_PKEY2PKCS8(pkey: PEVP_PKEY): PKCS8_PRIV_KEY_INFO; + + function PKCS8_pkey_set0(priv: PPKCS8_PRIV_KEY_INFO; aobj: PASN1_OBJECT; version: TIdC_INT; ptype: TIdC_INT; pval: Pointer; penc: PByte; penclen: TIdC_INT): TIdC_INT; + function PKCS8_pkey_get0(const ppkalg: PPASN1_OBJECT; const pk: PPByte; ppklen: PIdC_INT; const pa: PPX509_ALGOR; const p8: PPKCS8_PRIV_KEY_INFO): TIdC_INT; + + //const STACK_OF(X509_ATTRIBUTE) * + //PKCS8_pkey_get0_attrs(const PKCS8_PRIV_KEY_INFO *p8); + function PKCS8_pkey_add1_attr_by_NID(p8: PPKCS8_PRIV_KEY_INFO; nid: TIdC_INT; type_: TIdC_INT; const bytes: PByte; len: TIdC_INT): TIdC_INT; {introduced 1.1.0} + + function X509_PUBKEY_set0_param(pub: PX509_PUBKEY; aobj: PASN1_OBJECT; ptype: TIdC_INT; pval: Pointer; penc: PByte; penclen: TIdC_INT): TIdC_INT; + function X509_PUBKEY_get0_param(ppkalg: PPASN1_OBJECT; const pk: PPByte; ppklen: PIdC_INT; pa: PPX509_ALGOR; pub: PX509_PUBKEY): TIdC_INT; + + function X509_check_trust(x: PX509; id: TIdC_INT; flags: TIdC_INT): TIdC_INT; + function X509_TRUST_get_count: TIdC_INT; + function X509_TRUST_get0(idx: TIdC_INT): PX509_TRUST; + function X509_TRUST_get_by_id(id: TIdC_INT): TIdC_INT; +// TIdC_INT X509_TRUST_add(TIdC_INT id, TIdC_INT flags, TIdC_INT (*ck) (X509_TRUST *, X509 *, TIdC_INT), +// const PIdAnsiChar *name, TIdC_INT arg1, void *arg2); + procedure X509_TRUST_cleanup; + function X509_TRUST_get_flags(const xp: PX509_TRUST): TIdC_INT; + function X509_TRUST_get0_name(const xp: PX509_TRUST): PIdAnsiChar; + function X509_TRUST_get_trust(const xp: PX509_TRUST): TIdC_INT; + +// unsigned long X509_NAME_hash_ex(const X509_NAME *x, OSSL_LIB_CTX *libctx, +// const char *propq, int *ok); + function X509_NAME_hash_ex(const x: PX509_NAME; libctx: POSSL_LIB_CTX; const propq: PIdAnsiChar; ok: PIdC_INT): TIdC_ULONG; {introduced 3.0.0} + +{helper_functions} +type +{$EXTERNALSYM Tsk_pop_free_func} +{$EXTERNALSYM Tsk_new_cmp} +{$EXTERNALSYM PSTACK_OF_X509_INFO} + Tsk_new_cmp = function (const a, b : PIdAnsiChar; const c : PIdAnsiChar) : TIdC_INT cdecl; + Tsk_pop_free_func = procedure (p : Pointer); cdecl; + PSTACK_OF_X509_INFO = pointer; + {$EXTERNALSYM sk_X509_NAME_new} + {$EXTERNALSYM sk_X509_NAME_new_null} + {$EXTERNALSYM sk_X509_NAME_free} + {$EXTERNALSYM sk_X509_NAME_num} + {$EXTERNALSYM sk_X509_NAME_value} + {$EXTERNALSYM sk_X509_NAME_push} + {$EXTERNALSYM sk_X509_NAME_dup} + {$EXTERNALSYM sk_X509_NAME_find} + {$EXTERNALSYM sk_X509_NAME_pop_free} + {$EXTERNALSYM sk_X509_INFO_num} + {$EXTERNALSYM sk_X509_INFO_value} + {$EXTERNALSYM sk_X509_INFO_push} + {$EXTERNALSYM sk_X509_INFO_dup} + {$EXTERNALSYM sk_X509_INFO_find} + {$EXTERNALSYM sk_X509_INFO_pop_free} + + {$IFNDEF USE_EXTERNAL_LIBRARY} +{$EXTERNALSYM Tsk_X509_NAME_new} +{$EXTERNALSYM Tsk_X509_NAME_new_null} +{$EXTERNALSYM Tsk_X509_NAME_free} +{$EXTERNALSYM Tsk_X509_NAME_num} +{$EXTERNALSYM Tsk_X509_NAME_value} +{$EXTERNALSYM Tsk_X509_NAME_push} +{$EXTERNALSYM Tsk_X509_NAME_dup} +{$EXTERNALSYM Tsk_X509_NAME_find} +{$EXTERNALSYM Tsk_X509_NAME_pop_free} +{$EXTERNALSYM Tsk_X509_INFO_num} +{$EXTERNALSYM Tsk_X509_INFO_value} +{$EXTERNALSYM Tsk_X509_INFO_push} +{$EXTERNALSYM Tsk_X509_INFO_dup} +{$EXTERNALSYM Tsk_X509_INFO_find} +{$EXTERNALSYM Tsk_X509_INFO_pop_free} +{$EXTERNALSYM Tsk_new_cmp} +type + Tsk_X509_NAME_new = function(cmp : Tsk_new_cmp) : PSTACK_OF_X509_NAME cdecl; + Tsk_X509_NAME_new_null = function : PSTACK_OF_X509_NAME cdecl; + Tsk_X509_NAME_free = procedure(st : PSTACK_OF_X509_NAME) cdecl; + Tsk_X509_NAME_num = function (const sk : PSTACK_OF_X509_NAME) : TIdC_INT cdecl; + Tsk_X509_NAME_value = function (const sk : PSTACK_OF_X509_NAME; i : TIdC_INT) : PX509_NAME cdecl; + Tsk_X509_NAME_push = function (sk : PSTACK_OF_X509_NAME; st : PX509_NAME) : TIdC_INT cdecl; + Tsk_X509_NAME_dup = function (sk : PSTACK_OF_X509_NAME) : PSTACK_OF_X509_NAME cdecl; + Tsk_X509_NAME_find = function (sk : PSTACK_OF_X509_NAME; val : PX509_NAME) : TIdC_INT cdecl; + Tsk_X509_NAME_pop_free = procedure (sk : PSTACK_OF_X509_NAME; func: Tsk_pop_free_func) cdecl; + Tsk_X509_INFO_num = function (const sk : PSTACK_OF_X509_INFO) : TIdC_INT cdecl; + Tsk_X509_INFO_value = function (const sk : PSTACK_OF_X509_INFO; i : TIdC_INT) : PX509_INFO cdecl; + Tsk_X509_INFO_push = function (sk : PSTACK_OF_X509_INFO; st : PX509_INFO) : TIdC_INT cdecl; + Tsk_X509_INFO_dup = function (sk : PSTACK_OF_X509_INFO) : PSTACK_OF_X509_INFO cdecl; + Tsk_X509_INFO_find = function (sk : PSTACK_OF_X509_INFO; val : PX509_INFO) : TIdC_INT cdecl; + Tsk_X509_INFO_pop_free = procedure (sk : PSTACK_OF_X509_INFO; func: Tsk_pop_free_func) cdecl; + +var + sk_X509_NAME_new: Tsk_X509_NAME_new absolute sk_new; + sk_X509_NAME_new_null : Tsk_X509_NAME_new_null absolute sk_new_null; + sk_X509_NAME_free : Tsk_X509_NAME_free absolute sk_free; + sk_X509_NAME_num : Tsk_X509_NAME_num absolute sk_num; + sk_X509_NAME_value : Tsk_X509_NAME_value absolute sk_value; + sk_X509_NAME_push : Tsk_X509_NAME_push absolute sk_push; + sk_X509_NAME_dup : Tsk_X509_NAME_dup absolute sk_dup; + sk_X509_NAME_find : Tsk_X509_NAME_find absolute sk_find; + sk_X509_NAME_pop_free : Tsk_X509_NAME_pop_free absolute sk_pop_free; + sk_X509_INFO_num : Tsk_X509_INFO_num absolute sk_num; + sk_X509_INFO_value : Tsk_X509_INFO_value absolute sk_value; + sk_X509_INFO_push : Tsk_X509_INFO_push absolute sk_push; + sk_X509_INFO_dup : Tsk_X509_INFO_dup absolute sk_dup; + sk_X509_INFO_find : Tsk_X509_INFO_find absolute sk_find; + sk_X509_INFO_pop_free : Tsk_X509_INFO_pop_free absolute sk_pop_free; +{$ELSE} + function sk_X509_NAME_new(cmp : Tsk_new_cmp) : PSTACK_OF_X509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_new'; + function sk_X509_NAME_new_null : PSTACK_OF_X509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_new_null'; + procedure sk_X509_NAME_free(st : PSTACK_OF_X509_NAME) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_free'; + function sk_X509_NAME_num (const sk : PSTACK_OF_X509_NAME) : TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_num'; + function sk_X509_NAME_value (const sk : PSTACK_OF_X509_NAME; i : TIdC_INT): PX509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_value'; + function sk_X509_NAME_push (sk : PSTACK_OF_X509_NAME; st : PX509_NAME): TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_push'; + function sk_X509_NAME_dup (sk : PSTACK_OF_X509_NAME) : PSTACK_OF_X509_NAME cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_dup'; + function sk_X509_NAME_find (sk : PSTACK_OF_X509_NAME; val : PX509_NAME) : TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_find'; + procedure sk_X509_NAME_pop_free (sk : PSTACK_OF_X509_NAME; func: Tsk_pop_free_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_pop_free'; + function sk_X509_INFO_num (const sk : PSTACK_OF_X509_INFO) : TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_num'; + function sk_X509_INFO_value (const sk : PSTACK_OF_X509_INFO; i : TIdC_INT) : PX509_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_value'; + function sk_X509_INFO_push (sk : PSTACK_OF_X509_INFO; st : PX509_INFO) : TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_push'; + function sk_X509_INFO_dup (sk : PSTACK_OF_X509_INFO) : PSTACK_OF_X509_INFO cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_dup'; + function sk_X509_INFO_find (sk : PSTACK_OF_X509_INFO; val : PX509_INFO) : TIdC_INT cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_find'; + procedure sk_X509_INFO_pop_free (sk : PSTACK_OF_X509_INFO; func: Tsk_pop_free_func) cdecl; external {$IFNDEF OPENSSL_USE_STATIC_LIBRARY}CLibCrypto{$ENDIF} name 'OPENSSL_sk_pop_free'; + +{$ENDIF} +{/helper_functions} + +implementation + + +//# define X509_NAME_hash(x) X509_NAME_hash_ex(x, NULL, NULL, NULL) +function X509_NAME_hash(x: PX509_NAME): TIdC_ULONG; +begin + Result := X509_NAME_hash_ex(x,nil,nil,nil); +end; + +{forward_compatibility} + +const + ASIdentifierChoice_inherit = 0; + ASIdentifierChoice_asIdsOrRanges = 1; + SHA_DIGEST_LENGTH = 20; + +type + PSTACK= type pointer; + PSTACK_OF_X509_EXTENSION = PSTACK; + PX509_CINF = ^_X509_CINF; + _X509_CINF = record + version: PASN1_INTEGER; + serialNumber: PASN1_INTEGER; + signature: PX509_ALGOR; + issuer: PX509_NAME; + validity: PX509_VAL; + subject: PX509_NAME; + key: PX509_PUBKEY; + issuerUID: PASN1_BIT_STRING; // [ 1 ] optional in v2 + subjectUID: PASN1_BIT_STRING; // [ 2 ] optional in v2 + extensions: PSTACK_OF_X509_EXTENSION; + enc : ASN1_ENCODING; + end; + + PX509_ALGOR = ^X509_ALGOR; + X509_ALGOR = record + algorithm : PASN1_OBJECT; + parameter : PASN1_TYPE; + end; + + PSTACK_OF_ASIdOrRange = PSTACK; + + PSTACK_OF_DIST_POINT = PSTACK; + PSTACK_OF_GENERAL_NAME = PSTACK; + PSTACK_OF_IPAddressFamily = PSTACK; + PASIdOrRanges = PSTACK_OF_ASIdOrRange; + + ASIdentifierChoice_union = record + case byte of + ASIdentifierChoice_inherit : (inherit : PASN1_NULL); + ASIdentifierChoice_asIdsOrRanges : (asIdsOrRanges : PASIdOrRanges); + end; + + PASIdentifierChoice = ^ASIdentifierChoice; + ASIdentifierChoice = record + _type : TIdC_INT; + u : ASIdentifierChoice_union; + end; + + PASIdentifiers = ^ASIdentifiers; + ASIdentifiers = record + asnum : PASIdentifierChoice; + rdi : PASIdentifierChoice; + end; + + PX509_CERT_AUX = pointer; + + _PX509 = ^X509; + +X509 = record + cert_info: PX509_CINF; + sig_alg : PX509_ALGOR; + signature : PASN1_BIT_STRING; + valid : TIdC_INT; + references : TIdC_INT; + name : PIdAnsiChar; + ex_data : CRYPTO_EX_DATA; + // These contain copies of various extension values + ex_pathlen : TIdC_LONG; + ex_pcpathlen : TIdC_LONG; + ex_flags : TIdC_ULONG; + ex_kusage : TIdC_ULONG; + ex_xkusage : TIdC_ULONG; + ex_nscert : TIdC_ULONG; + skid : PASN1_OCTET_STRING; + akid : PAUTHORITY_KEYID; + policy_cache : PX509_POLICY_CACHE; + crldp : PSTACK_OF_DIST_POINT; + altname : PSTACK_OF_GENERAL_NAME; + nc : PNAME_CONSTRAINTS; + {$IFNDEF OPENSSL_NO_RFC3779} + rfc3779_addr : PSTACK_OF_IPAddressFamily; + rfc3779_asid : PASIdentifiers; + {$ENDIF} + {$IFNDEF OPENSSL_NO_SHA} + sha1_hash : array [0..SHA_DIGEST_LENGTH-1] of TIdAnsiChar; + {$ENDIF} + aux : PX509_CERT_AUX; + end; + +procedure X509_get0_signature(var sig: PASN1_BIT_STRING; var alg: PX509_ALGOR; const x: PX509); +begin + sig := _PX509(x)^.signature; + alg := _PX509(x)^.sig_alg; +end; + +function X509_get0_notBefore(const x: PX509): PASN1_TIME; +begin + Result := _PX509(x)^.cert_info.validity.notBefore; +end; + +function X509_get0_notAfter(const x: PX509): PASN1_TIME; +begin + Result := _PX509(x)^.cert_info.validity.notAfter; +end; + +function X509_get_signature_type(const x: PX509): TIdC_INT; +begin + Result := EVP_PKEY_type(OBJ_obj2nid(_PX509(x)^.sig_alg^.algorithm)); +end; + +{/forward_compatibility} + + + + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509_vfy.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509_vfy.h2pas new file mode 100644 index 000000000..9e8fa1c1c --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509_vfy.h2pas @@ -0,0 +1,641 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_x509_vfy; + +interface + +// Headers for OpenSSL 1.1.1 +// x509_vfy.h + + +{$MINENUMSIZE 4} + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ssl, + IdOpenSSLHeaders_ossl_typ; + +const + X509_L_FILE_LOAD = 1; + X509_L_ADD_DIR = 2; + + X509_V_OK = 0; + X509_V_ERR_UNSPECIFIED = 1; + X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT = 2; + X509_V_ERR_UNABLE_TO_GET_CRL = 3; + X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE = 4; + X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE = 5; + X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY = 6; + X509_V_ERR_CERT_SIGNATURE_FAILURE = 7; + X509_V_ERR_CRL_SIGNATURE_FAILURE = 8; + X509_V_ERR_CERT_NOT_YET_VALID = 9; + X509_V_ERR_CERT_HAS_EXPIRED = 10; + X509_V_ERR_CRL_NOT_YET_VALID = 11; + X509_V_ERR_CRL_HAS_EXPIRED = 12; + X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD = 13; + X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD = 14; + X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD = 15; + X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD = 16; + X509_V_ERR_OUT_OF_MEM = 17; + X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT = 18; + X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN = 19; + X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY = 20; + X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE = 21; + X509_V_ERR_CERT_CHAIN_TOO_LONG = 22; + X509_V_ERR_CERT_REVOKED = 23; + X509_V_ERR_INVALID_CA = 24; + X509_V_ERR_PATH_LENGTH_EXCEEDED = 25; + X509_V_ERR_INVALID_PURPOSE = 26; + X509_V_ERR_CERT_UNTRUSTED = 27; + X509_V_ERR_CERT_REJECTED = 28; + (* These are 'informational' when looking for issuer cert *) + X509_V_ERR_SUBJECT_ISSUER_MISMATCH = 29; + X509_V_ERR_AKID_SKID_MISMATCH = 30; + X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH = 31; + X509_V_ERR_KEYUSAGE_NO_CERTSIGN = 32; + X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER = 33; + X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION = 34; + X509_V_ERR_KEYUSAGE_NO_CRL_SIGN = 35; + X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION = 36; + X509_V_ERR_INVALID_NON_CA = 37; + X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED = 38; + X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE = 39; + X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED = 40; + X509_V_ERR_INVALID_EXTENSION = 41; + X509_V_ERR_INVALID_POLICY_EXTENSION = 42; + X509_V_ERR_NO_EXPLICIT_POLICY = 43; + X509_V_ERR_DIFFERENT_CRL_SCOPE = 44; + X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE = 45; + X509_V_ERR_UNNESTED_RESOURCE = 46; + X509_V_ERR_PERMITTED_VIOLATION = 47; + X509_V_ERR_EXCLUDED_VIOLATION = 48; + X509_V_ERR_SUBTREE_MINMAX = 49; + (* The application is not happy *) + X509_V_ERR_APPLICATION_VERIFICATION = 50; + X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE = 51; + X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX = 52; + X509_V_ERR_UNSUPPORTED_NAME_SYNTAX = 53; + X509_V_ERR_CRL_PATH_VALIDATION_ERROR = 54; + (* Another issuer check debug option *) + X509_V_ERR_PATH_LOOP = 55; + (* Suite B mode algorithm violation *) + X509_V_ERR_SUITE_B_INVALID_VERSION = 56; + X509_V_ERR_SUITE_B_INVALID_ALGORITHM = 57; + X509_V_ERR_SUITE_B_INVALID_CURVE = 58; + X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM = 59; + X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED = 60; + X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 = 61; + (* Host, email and IP check errors *) + X509_V_ERR_HOSTNAME_MISMATCH = 62; + X509_V_ERR_EMAIL_MISMATCH = 63; + X509_V_ERR_IP_ADDRESS_MISMATCH = 64; + (* DANE TLSA errors *) + X509_V_ERR_DANE_NO_MATCH = 65; + (* security level errors *) + X509_V_ERR_EE_KEY_TOO_SMALL = 66; + X509_V_ERR_CA_KEY_TOO_SMALL = 67; + X509_V_ERR_CA_MD_TOO_WEAK = 68; + (* Caller error *) + X509_V_ERR_INVALID_CALL = 69; + (* Issuer lookup error *) + X509_V_ERR_STORE_LOOKUP = 70; + (* Certificate transparency *) + X509_V_ERR_NO_VALID_SCTS = 71; + + X509_V_ERR_PROXY_SUBJECT_NAME_VIOLATION = 72; + (* OCSP status errors *) + X509_V_ERR_OCSP_VERIFY_NEEDED = 73; (* Need OCSP verification *) + X509_V_ERR_OCSP_VERIFY_FAILED = 74; (* Couldn't verify cert through OCSP *) + X509_V_ERR_OCSP_CERT_UNKNOWN = 75; (* Certificate wasn't recognized by the OCSP responder *) + + (* Certificate verify flags *) + + (* Use check time instead of current time *) + X509_V_FLAG_USE_CHECK_TIME = $2; + (* Lookup CRLs *) + X509_V_FLAG_CRL_CHECK = $4; + (* Lookup CRLs for whole chain *) + X509_V_FLAG_CRL_CHECK_ALL = $8; + (* Ignore unhandled critical extensions *) + X509_V_FLAG_IGNORE_CRITICAL = $10; + (* Disable workarounds for broken certificates *) + X509_V_FLAG_X509_STRICT = $20; + (* Enable proxy certificate validation *) + X509_V_FLAG_ALLOW_PROXY_CERTS = $40; + (* Enable policy checking *) + X509_V_FLAG_POLICY_CHECK = $80; + (* Policy variable require-explicit-policy *) + X509_V_FLAG_EXPLICIT_POLICY = $100; + (* Policy variable inhibit-any-policy *) + X509_V_FLAG_INHIBIT_ANY = $200; + (* Policy variable inhibit-policy-mapping *) + X509_V_FLAG_INHIBIT_MAP = $400; + (* Notify callback that policy is OK *) + X509_V_FLAG_NOTIFY_POLICY = $800; + (* Extended CRL features such as indirect CRLs, alternate CRL signing keys *) + X509_V_FLAG_EXTENDED_CRL_SUPPORT = $1000; + (* Delta CRL support *) + X509_V_FLAG_USE_DELTAS = $2000; + (* Check self-signed CA signature *) + X509_V_FLAG_CHECK_SS_SIGNATURE = $4000; + (* Use trusted store first *) + X509_V_FLAG_TRUSTED_FIRST = $8000; + (* Suite B 128 bit only mode: not normally used *) + X509_V_FLAG_SUITEB_128_LOS_ONLY = $10000; + (* Suite B 192 bit only mode *) + X509_V_FLAG_SUITEB_192_LOS = $20000; + (* Suite B 128 bit mode allowing 192 bit algorithms *) + X509_V_FLAG_SUITEB_128_LOS = $30000; + (* Allow partial chains if at least one certificate is in trusted store *) + X509_V_FLAG_PARTIAL_CHAIN = $80000; + (* + * If the initial chain is not trusted, do not attempt to build an alternative + * chain. Alternate chain checking was introduced 1.1.0. Setting this flag + * will force the behaviour to match that of previous versions. + *) + X509_V_FLAG_NO_ALT_CHAINS = $100000; + (* Do not check certificate/CRL validity against current time *) + X509_V_FLAG_NO_CHECK_TIME = $200000; + + X509_VP_FLAG_DEFAULT = $1; + X509_VP_FLAG_OVERWRITE = $2; + X509_VP_FLAG_RESET_FLAGS = $4; + X509_VP_FLAG_LOCKED = $8; + X509_VP_FLAG_ONCE = $10; + + (* Internal use: mask of policy related options *) + X509_V_FLAG_POLICY_MASK = X509_V_FLAG_POLICY_CHECK or X509_V_FLAG_EXPLICIT_POLICY + or X509_V_FLAG_INHIBIT_ANY or X509_V_FLAG_INHIBIT_MAP; + + + DANE_FLAG_NO_DANE_EE_NAMECHECKS = TIdC_Long(1) shl 0; + + (* Non positive return values are errors *) + X509_PCY_TREE_FAILURE = -2; (* Failure to satisfy explicit policy *) + X509_PCY_TREE_INVALID = -1; (* Inconsistent or invalid extensions *) + X509_PCY_TREE_INTERNAL = 0; (* Internal error, most likely malloc *) + + (* + * Positive return values form a bit mask, all but the first are internal to + * the library and don't appear in results from X509_policy_check(). + *) + X509_PCY_TREE_VALID = 1; (* The policy tree is valid *) + X509_PCY_TREE_EMPTY = 2; (* The policy tree is empty *) + X509_PCY_TREE_EXPLICIT = 4; (* Explicit policy required *) + +type + (*- + SSL_CTX -> X509_STORE + -> X509_LOOKUP + ->X509_LOOKUP_METHOD + -> X509_LOOKUP + ->X509_LOOKUP_METHOD + + SSL -> X509_STORE_CTX + ->X509_STORE + + The X509_STORE holds the tables etc for verification stuff. + A X509_STORE_CTX is used while validating a single certificate. + The X509_STORE has X509_LOOKUPs for looking up certs. + The X509_STORE then calls a function to actually verify the + certificate chain. + *) + + X509_LOOKUP_TYPE = ( + X509_LU_NONE = 0, + X509_LU_X509, + X509_LU_CRL + ); + + X509_STORE_CTX_verify_cb = function(v1: TIdC_INT; v2: PX509_STORE_CTX): TIdC_INT; + X509_STORE_CTX_verify_fn = function(v1: PX509_STORE_CTX): TIdC_INT; + X509_STORE_CTX_get_issuer_fn = function(issuer: PPX509; ctx: PX509_STORE_CTX; x: PX509): TIdC_INT; + X509_STORE_CTX_check_issued_fn = function(ctx: PX509_STORE_CTX; x: PX509; issuer: PX509): TIdC_INT; + X509_STORE_CTX_check_revocation_fn = function(ctx: PX509_STORE_CTX): TIdC_INT; + X509_STORE_CTX_get_crl_fn = function(ctx: PX509_STORE_CTX; crl: PPX509_CRL; x: PX509): TIdC_INT; + X509_STORE_CTX_check_crl_fn = function(ctx: PX509_STORE_CTX; crl: PX509_CRL): TIdC_INT; + X509_STORE_CTX_cert_crl_fn = function(ctx: PX509_STORE_CTX; crl: PX509_CRL; x: PX509): TIdC_INT; + X509_STORE_CTX_check_policy_fn = function(ctx: PX509_STORE_CTX): TIdC_INT; +// typedef STACK_OF(X509) *(*X509_STORE_CTX_lookup_certs_fn)(X509_STORE_CTX *ctx, +// X509_NAME *nm); +// typedef STACK_OF(X509_CRL) *(*X509_STORE_CTX_lookup_crls_fn)(X509_STORE_CTX *ctx, +// X509_NAME *nm); + X509_STORE_CTX_cleanup_fn = function(ctx: PX509_STORE_CTX): TIdC_INT; + + X509_LOOKUP_ctrl_fn = function(ctx: PX509_LOOKUP; cmd: TIdC_INT; + const argc: PIdAnsiChar; argl: TIdC_LONG; ret: PPIdAnsiChar): TIdC_INT; cdecl; + X509_LOOKUP_get_by_subject_fn = function(ctx: PX509_LOOKUP; + type_: X509_LOOKUP_TYPE; name: PX509_NAME; ret: PX509_OBJECT): TIdC_INT; cdecl; + X509_LOOKUP_get_by_issuer_serial_fn = function(ctx: PX509_LOOKUP; + type_: X509_LOOKUP_TYPE; name: PX509_NAME; serial: PASN1_INTEGER; ret: PX509_OBJECT): TIdC_INT; cdecl; + X509_LOOKUP_get_by_fingerprint_fn = function(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; + const bytes: PByte; len: TIdC_INT; ret: PX509_OBJECT): TIdC_INT; cdecl; + X509_LOOKUP_get_by_alias_fn = function(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; + const str: PIdAnsiChar; len: TIdC_INT; ret: PX509_OBJECT): TIdC_INT; cdecl; + + //DEFINE_STACK_OF(X509_LOOKUP) + //DEFINE_STACK_OF(X509_OBJECT) + //DEFINE_STACK_OF(X509_VERIFY_PARAM) + + function X509_STORE_set_depth(store: PX509_STORE; depth: TIdC_INT): TIdC_INT; + + procedure X509_STORE_CTX_set_depth(ctx: PX509_STORE_CTX; depth: TIdC_INT); + + //# define X509_STORE_CTX_set_app_data(ctx,data) \ + // X509_STORE_CTX_set_ex_data(ctx,0,data) + //# define X509_STORE_CTX_get_app_data(ctx) \ + // X509_STORE_CTX_get_ex_data(ctx,0) +function X509_STORE_CTX_get_app_data(ctx: PX509_STORE_CTX): Pointer; {removed 1.0.0} + // + //# define X509_LOOKUP_load_file(x,name,type) \ + // X509_LOOKUP_ctrl((x),X509_L_FILE_LOAD,(name),(TIdC_LONG)(type),NULL) + // + //# define X509_LOOKUP_add_dir(x,name,type) \ + // X509_LOOKUP_ctrl((x),X509_L_ADD_DIR,(name),(TIdC_LONG)(type),NULL) + // + //TIdC_INT X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type, + // X509_NAME *name); + //X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h, + // X509_LOOKUP_TYPE type, + // X509_NAME *name); + //X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h, + // X509_OBJECT *x); + function X509_OBJECT_up_ref_count(a: PX509_OBJECT): TIdC_INT; + function X509_OBJECT_new: PX509_OBJECT; {introduced 1.1.0} + procedure X509_OBJECT_free(a: PX509_OBJECT); {introduced 1.1.0} + function X509_OBJECT_get_type(const a: PX509_OBJECT): X509_LOOKUP_TYPE; {introduced 1.1.0} + function X509_OBJECT_get0_X509(const a: PX509_OBJECT): PX509; {introduced 1.1.0} + function X509_OBJECT_set1_X509(a: PX509_OBJECT; obj: PX509): TIdC_INT; {introduced 1.1.0} + function X509_OBJECT_get0_X509_CRL(a: PX509_OBJECT): PX509_CRL; {introduced 1.1.0} + function X509_OBJECT_set1_X509_CRL(a: PX509_OBJECT; obj: PX509_CRL): TIdC_INT; {introduced 1.1.0} + function X509_STORE_new: PX509_STORE; + procedure X509_STORE_free(v: PX509_STORE); + function X509_STORE_lock(ctx: PX509_STORE): TIdC_INT; {introduced 1.1.0} + function X509_STORE_unlock(ctx: PX509_STORE): TIdC_INT; {introduced 1.1.0} + function X509_STORE_up_ref(v: PX509_STORE): TIdC_INT; {introduced 1.1.0} + //STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *v); + + //STACK_OF(X509) *X509_STORE_CTX_get1_certs(X509_STORE_CTX *st, X509_NAME *nm); + //STACK_OF(X509_CRL) *X509_STORE_CTX_get1_crls(X509_STORE_CTX *st, X509_NAME *nm); + function X509_STORE_set_flags(ctx: PX509_STORE; flags: TIdC_ULONG): TIdC_INT; + function X509_STORE_set_purpose(ctx: PX509_STORE; purpose: TIdC_INT): TIdC_INT; + function X509_STORE_set_trust(ctx: PX509_STORE; trust: TIdC_INT): TIdC_INT; + function X509_STORE_set1_param(ctx: PX509_STORE; pm: PX509_VERIFY_PARAM): TIdC_INT; + function X509_STORE_get0_param(ctx: PX509_STORE): PX509_VERIFY_PARAM; {introduced 1.1.0} + + procedure X509_STORE_set_verify(ctx: PX509_STORE; verify: X509_STORE_CTX_verify_fn); {introduced 1.1.0} + //#define X509_STORE_set_verify_func(ctx, func) \ + // X509_STORE_set_verify((ctx),(func)) + procedure X509_STORE_CTX_set_verify(ctx: PX509_STORE_CTX; verify: X509_STORE_CTX_verify_fn); {introduced 1.1.0} + function X509_STORE_get_verify(ctx: PX509_STORE): X509_STORE_CTX_verify_fn; {introduced 1.1.0} + procedure X509_STORE_set_verify_cb(ctx: PX509_STORE; verify_cb: X509_STORE_CTX_verify_cb); + //# define X509_STORE_set_verify_cb_func(ctx,func) \ + // X509_STORE_set_verify_cb((ctx),(func)) + function X509_STORE_get_verify_cb(ctx: PX509_STORE): X509_STORE_CTX_verify_cb; {introduced 1.1.0} + procedure X509_STORE_set_get_issuer(ctx: PX509_STORE; get_issuer: X509_STORE_CTX_get_issuer_fn); {introduced 1.1.0} + function X509_STORE_get_get_issuer(ctx: PX509_STORE): X509_STORE_CTX_get_issuer_fn; {introduced 1.1.0} + procedure X509_STORE_set_check_issued(ctx: PX509_STORE; check_issued: X509_STORE_CTX_check_issued_fn); {introduced 1.1.0} + function X509_STORE_get_check_issued(ctx: PX509_STORE): X509_STORE_CTX_check_issued_fn; {introduced 1.1.0} + procedure X509_STORE_set_check_revocation(ctx: PX509_STORE; check_revocation: X509_STORE_CTX_check_revocation_fn); {introduced 1.1.0} + function X509_STORE_get_check_revocation(ctx: PX509_STORE): X509_STORE_CTX_check_revocation_fn; {introduced 1.1.0} + procedure X509_STORE_set_get_crl(ctx: PX509_STORE; get_crl: X509_STORE_CTX_get_crl_fn); {introduced 1.1.0} + function X509_STORE_get_get_crl(ctx: PX509_STORE): X509_STORE_CTX_get_crl_fn; {introduced 1.1.0} + procedure X509_STORE_set_check_crl(ctx: PX509_STORE; check_crl: X509_STORE_CTX_check_crl_fn); {introduced 1.1.0} + function X509_STORE_get_check_crl(ctx: PX509_STORE): X509_STORE_CTX_check_crl_fn; {introduced 1.1.0} + procedure X509_STORE_set_cert_crl(ctx: PX509_STORE; cert_crl: X509_STORE_CTX_cert_crl_fn); {introduced 1.1.0} + function X509_STORE_get_cert_crl(ctx: PX509_STORE): X509_STORE_CTX_cert_crl_fn; {introduced 1.1.0} + procedure X509_STORE_set_check_policy(ctx: PX509_STORE; check_policy: X509_STORE_CTX_check_policy_fn); {introduced 1.1.0} + function X509_STORE_get_check_policy(ctx: PX509_STORE): X509_STORE_CTX_check_policy_fn; {introduced 1.1.0} +// procedure X509_STORE_set_lookup_certs(ctx: PX509_STORE; lookup_certs: X509_STORE_CTX_lookup_certs_fn); +// function X509_STORE_get_lookup_certs(ctx: PX509_STORE): X509_STORE_CTX_lookup_certs_fn; +// procedure X509_STORE_set_lookup_crls(ctx: PX509_STORE; lookup_crls: X509_STORE_CTX_lookup_crls_fn); +// #define X509_STORE_set_lookup_crls_cb(ctx, func) \ +// X509_STORE_set_lookup_crls((ctx), (func)) +// function X509_STORE_get_lookup_crls(ctx: PX509_STORE): X509_STORE_CTX_lookup_crls_fn; + procedure X509_STORE_set_cleanup(ctx: PX509_STORE; cleanup: X509_STORE_CTX_cleanup_fn); {introduced 1.1.0} + function X509_STORE_get_cleanup(ctx: PX509_STORE): X509_STORE_CTX_cleanup_fn; {introduced 1.1.0} + + //#define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, l, p, newf, dupf, freef) + function X509_STORE_set_ex_data(ctx: PX509_STORE; idx: TIdC_INT; data: Pointer): TIdC_INT; {introduced 1.1.0} + function X509_STORE_get_ex_data(ctx: PX509_STORE; idx: TIdC_INT): Pointer; {introduced 1.1.0} + + function X509_STORE_CTX_new: PX509_STORE_CTX; + + function X509_STORE_CTX_get1_issuer(issuer: PPX509; ctx: PX509_STORE_CTX; x: PX509): TIdC_INT; + + procedure X509_STORE_CTX_free(ctx: PX509_STORE_CTX); +// TIdC_INT X509_STORE_CTX_init(ctx: PX509_STORE_CTX; store: PX509_STORE; x509: PX509; chain: P STACK_OF(X509)); +// procedure X509_STORE_CTX_set0_trusted_stack(ctx: PX509_STORE_CTX; sk: P STACK_OF(X509)); + procedure X509_STORE_CTX_cleanup(ctx: PX509_STORE_CTX); + + function X509_STORE_CTX_get0_store(ctx: PX509_STORE_CTX): PX509_STORE; + function X509_STORE_CTX_get0_cert(ctx: PX509_STORE_CTX): PX509; {introduced 1.1.0} + //STACK_OF(X509)* X509_STORE_CTX_get0_untrusted(X509_STORE_CTX *ctx); + //void X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk); + procedure X509_STORE_CTX_set_verify_cb(ctx: PX509_STORE_CTX; verify: X509_STORE_CTX_verify_cb); + function X509_STORE_CTX_get_verify_cb(ctx: PX509_STORE_CTX): X509_STORE_CTX_verify_cb; {introduced 1.1.0} + function X509_STORE_CTX_get_verify(ctx: PX509_STORE_CTX): X509_STORE_CTX_verify_fn; {introduced 1.1.0} + function X509_STORE_CTX_get_get_issuer(ctx: PX509_STORE_CTX): X509_STORE_CTX_get_issuer_fn; {introduced 1.1.0} + function X509_STORE_CTX_get_check_issued(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_issued_fn; {introduced 1.1.0} + function X509_STORE_CTX_get_check_revocation(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_revocation_fn; {introduced 1.1.0} + function X509_STORE_CTX_get_get_crl(ctx: PX509_STORE_CTX): X509_STORE_CTX_get_crl_fn; {introduced 1.1.0} + function X509_STORE_CTX_get_check_crl(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_crl_fn; {introduced 1.1.0} + function X509_STORE_CTX_get_cert_crl(ctx: PX509_STORE_CTX): X509_STORE_CTX_cert_crl_fn; {introduced 1.1.0} + function X509_STORE_CTX_get_check_policy(ctx: PX509_STORE_CTX): X509_STORE_CTX_check_policy_fn; {introduced 1.1.0} +// function X509_STORE_CTX_get_lookup_certs(ctx: PX509_STORE_CTX): X509_STORE_CTX_lookup_certs_fn; +// function X509_STORE_CTX_get_lookup_crls(ctx: PX509_STORE_CTX): X509_STORE_CTX_lookup_crls_fn; + function X509_STORE_CTX_get_cleanup(ctx: PX509_STORE_CTX): X509_STORE_CTX_cleanup_fn; {introduced 1.1.0} + + function X509_STORE_add_lookup(v: PX509_STORE; m: PX509_LOOKUP_METHOD): PX509_LOOKUP; + function X509_LOOKUP_hash_dir: PX509_LOOKUP_METHOD; + function X509_LOOKUP_file: PX509_LOOKUP_METHOD; + + function X509_LOOKUP_meth_new(const name: PIdAnsiChar): PX509_LOOKUP_METHOD; {introduced 1.1.0} + procedure X509_LOOKUP_meth_free(method: PX509_LOOKUP_METHOD); {introduced 1.1.0} + + //TIdC_INT X509_LOOKUP_meth_set_new_item(X509_LOOKUP_METHOD *method, + // TIdC_INT (*new_item) (X509_LOOKUP *ctx)); + //TIdC_INT (*X509_LOOKUP_meth_get_new_item(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + // + //TIdC_INT X509_LOOKUP_meth_set_free(X509_LOOKUP_METHOD *method, + // void (*free_fn) (X509_LOOKUP *ctx)); + //void (*X509_LOOKUP_meth_get_free(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + // + //TIdC_INT X509_LOOKUP_meth_set_init(X509_LOOKUP_METHOD *method, + // TIdC_INT (*init) (X509_LOOKUP *ctx)); + //TIdC_INT (*X509_LOOKUP_meth_get_init(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + // + //TIdC_INT X509_LOOKUP_meth_set_shutdown(X509_LOOKUP_METHOD *method, + // TIdC_INT (*shutdown) (X509_LOOKUP *ctx)); + //TIdC_INT (*X509_LOOKUP_meth_get_shutdown(const X509_LOOKUP_METHOD* method)) + // (X509_LOOKUP *ctx); + + function X509_LOOKUP_meth_set_ctrl(method: PX509_LOOKUP_METHOD; ctrl_fn: X509_LOOKUP_ctrl_fn): TIdC_INT; {introduced 1.1.0} + function X509_LOOKUP_meth_get_ctrl(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_ctrl_fn; {introduced 1.1.0} + + function X509_LOOKUP_meth_set_get_by_subject(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_subject_fn): TIdC_INT; {introduced 1.1.0} + function X509_LOOKUP_meth_get_get_by_subject(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_subject_fn; {introduced 1.1.0} + + function X509_LOOKUP_meth_set_get_by_issuer_serial(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_issuer_serial_fn): TIdC_INT; {introduced 1.1.0} + function X509_LOOKUP_meth_get_get_by_issuer_serial(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_issuer_serial_fn; {introduced 1.1.0} + + function X509_LOOKUP_meth_set_get_by_fingerprint(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_fingerprint_fn): TIdC_INT; {introduced 1.1.0} + function X509_LOOKUP_meth_get_get_by_fingerprint(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_fingerprint_fn; {introduced 1.1.0} + + function X509_LOOKUP_meth_set_get_by_alias(method: PX509_LOOKUP_METHOD; fn: X509_LOOKUP_get_by_alias_fn): TIdC_INT; {introduced 1.1.0} + function X509_LOOKUP_meth_get_get_by_alias(const method: PX509_LOOKUP_METHOD): X509_LOOKUP_get_by_alias_fn; {introduced 1.1.0} + + function X509_STORE_add_cert(ctx: PX509_STORE; x: PX509): TIdC_INT; + function X509_STORE_add_crl(ctx: PX509_STORE; x: PX509_CRL): TIdC_INT; + + function X509_STORE_CTX_get_by_subject(vs: PX509_STORE_CTX; type_: X509_LOOKUP_TYPE; name: PX509_NAME; ret: PX509_OBJECT): TIdC_INT; {introduced 1.1.0} + function X509_STORE_CTX_get_obj_by_subject(vs: PX509_STORE_CTX; type_: X509_LOOKUP_TYPE; name: PX509_NAME): PX509_OBJECT; {introduced 1.1.0} + + function X509_LOOKUP_ctrl(ctx: PX509_LOOKUP; cmd: TIdC_INT; const argc: PIdAnsiChar; argl: TIdC_LONG; ret: PPIdAnsiChar): TIdC_INT; + + function X509_load_cert_file(ctx: PX509_LOOKUP; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; + function X509_load_crl_file(ctx: PX509_LOOKUP; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; + function X509_load_cert_crl_file(ctx: PX509_LOOKUP; const file_: PIdAnsiChar; type_: TIdC_INT): TIdC_INT; + + function X509_LOOKUP_new(method: PX509_LOOKUP_METHOD): PX509_LOOKUP; + procedure X509_LOOKUP_free(ctx: PX509_LOOKUP); + function X509_LOOKUP_init(ctx: PX509_LOOKUP): TIdC_INT; + function X509_LOOKUP_by_subject(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; name: PX509_NAME; ret: PX509_OBJECT): TIdC_INT; + function X509_LOOKUP_by_issuer_serial(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; name: PX509_NAME; serial: PASN1_INTEGER; ret: PX509_OBJECT): TIdC_INT; + function X509_LOOKUP_by_fingerprint(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; const bytes: PByte; len: TIdC_INT; ret: PX509_OBJECT): TIdC_INT; + function X509_LOOKUP_by_alias(ctx: PX509_LOOKUP; type_: X509_LOOKUP_TYPE; const str: PIdAnsiChar; len: TIdC_INT; ret: PX509_OBJECT): TIdC_INT; + function X509_LOOKUP_set_method_data(ctx: PX509_LOOKUP; data: Pointer): TIdC_INT; {introduced 1.1.0} + function X509_LOOKUP_get_method_data(const ctx: PX509_LOOKUP): Pointer; {introduced 1.1.0} + function X509_LOOKUP_get_store(const ctx: PX509_LOOKUP): PX509_STORE; {introduced 1.1.0} + function X509_LOOKUP_shutdown(ctx: PX509_LOOKUP): TIdC_INT; + + function X509_STORE_load_locations(ctx: PX509_STORE; const file_: PIdAnsiChar; const dir: PIdAnsiChar): TIdC_INT; + function X509_STORE_set_default_paths(ctx: PX509_STORE): TIdC_INT; + + //#define X509_STORE_CTX_get_ex_new_index(l, p, newf, dupf, freef) \ + // CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE_CTX, l, p, newf, dupf, freef) + function X509_STORE_CTX_set_ex_data(ctx: PX509_STORE_CTX; idx: TIdC_INT; data: Pointer): TIdC_INT; + function X509_STORE_CTX_get_ex_data(ctx: PX509_STORE_CTX; idx: TIdC_INT): Pointer; + function X509_STORE_CTX_get_error(ctx: PX509_STORE_CTX): TIdC_INT; + procedure X509_STORE_CTX_set_error(ctx: X509_STORE_CTX; s: TIdC_INT); + function X509_STORE_CTX_get_error_depth(ctx: PX509_STORE_CTX): TIdC_INT; + procedure X509_STORE_CTX_set_error_depth(ctx: PX509_STORE_CTX; depth: TIdC_INT); {introduced 1.1.0} + function X509_STORE_CTX_get_current_cert(ctx: PX509_STORE_CTX): PX509; + procedure X509_STORE_CTX_set_current_cert(ctx: PX509_STORE_CTX; x: PX509); {introduced 1.1.0} + function X509_STORE_CTX_get0_current_issuer(ctx: PX509_STORE_CTX): PX509; + function X509_STORE_CTX_get0_current_crl(ctx: PX509_STORE_CTX): PX509_CRL; + function X509_STORE_CTX_get0_parent_ctx(ctx: PX509_STORE_CTX): PX509_STORE_CTX; +// STACK_OF(X509) *X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx); +// STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx); + procedure X509_STORE_CTX_set_cert(c: PX509_STORE_CTX; x: PX509); +// void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *c, STACK_OF(X509) *sk); +// void X509_STORE_CTX_set0_crls(X509_STORE_CTX *c, STACK_OF(X509_CRL) *sk); + function X509_STORE_CTX_set_purpose(ctx: PX509_STORE_CTX; purpose: TIdC_INT): TIdC_INT; + function X509_STORE_CTX_set_trust(ctx: PX509_STORE_CTX; trust: TIdC_INT): TIdC_INT; + function X509_STORE_CTX_purpose_inherit(ctx: PX509_STORE_CTX; def_purpose: TIdC_INT; purpose: TIdC_INT; trust: TIdC_INT): TIdC_INT; + procedure X509_STORE_CTX_set_flags(ctx: PX509_STORE_CTX; flags: TIdC_ULONG); +// procedure X509_STORE_CTX_set_time(ctx: PX509_STORE_CTX; flags: TIdC_ULONG; t: TIdC_TIMET); + + function X509_STORE_CTX_get0_policy_tree(ctx: PX509_STORE_CTX): PX509_POLICY_TREE; + function X509_STORE_CTX_get_explicit_policy(ctx: PX509_STORE_CTX): TIdC_INT; + function X509_STORE_CTX_get_num_untrusted(ctx: PX509_STORE_CTX): TIdC_INT; {introduced 1.1.0} + + function X509_STORE_CTX_get0_param(ctx: PX509_STORE_CTX): PX509_VERIFY_PARAM; + procedure X509_STORE_CTX_set0_param(ctx: PX509_STORE_CTX; param: PX509_VERIFY_PARAM); + function X509_STORE_CTX_set_default(ctx: PX509_STORE_CTX; const name: PIdAnsiChar): TIdC_INT; + + (* + * Bridge opacity barrier between libcrypt and libssl, also needed to support + * offline testing in test/danetest.c + *) + procedure X509_STORE_CTX_set0_dane(ctx: PX509_STORE_CTX; dane: PSSL_DANE); {introduced 1.1.0} + + (* X509_VERIFY_PARAM functions *) + + function X509_VERIFY_PARAM_new: PX509_VERIFY_PARAM; + procedure X509_VERIFY_PARAM_free(param: PX509_VERIFY_PARAM); + function X509_VERIFY_PARAM_inherit(to_: PX509_VERIFY_PARAM; const from: PX509_VERIFY_PARAM): TIdC_INT; + function X509_VERIFY_PARAM_set1(to_: PX509_VERIFY_PARAM; const from: PX509_VERIFY_PARAM): TIdC_INT; + function X509_VERIFY_PARAM_set1_name(param: PX509_VERIFY_PARAM; const name: PIdAnsiChar): TIdC_INT; + function X509_VERIFY_PARAM_set_flags(param: PX509_VERIFY_PARAM; flags: TIdC_ULONG): TIdC_INT; + function X509_VERIFY_PARAM_clear_flags(param: PX509_VERIFY_PARAM; flags: TIdC_ULONG): TIdC_INT; + function X509_VERIFY_PARAM_get_flags(param: PX509_VERIFY_PARAM): TIdC_ULONG; + function X509_VERIFY_PARAM_set_purpose(param: PX509_VERIFY_PARAM; purpose: TIdC_INT): TIdC_INT; + function X509_VERIFY_PARAM_set_trust(param: PX509_VERIFY_PARAM; trust: TIdC_INT): TIdC_INT; + procedure X509_VERIFY_PARAM_set_depth(param: PX509_VERIFY_PARAM; depth: TIdC_INT); + procedure X509_VERIFY_PARAM_set_auth_level(param: PX509_VERIFY_PARAM; auth_level: TIdC_INT); {introduced 1.1.0} +// function X509_VERIFY_PARAM_get_time(const param: PX509_VERIFY_PARAM): TIdC_TIMET; +// procedure X509_VERIFY_PARAM_set_time(param: PX509_VERIFY_PARAM; t: TIdC_TIMET); + function X509_VERIFY_PARAM_add0_policy(param: PX509_VERIFY_PARAM; policy: PASN1_OBJECT): TIdC_INT; + //TIdC_INT X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param, + // STACK_OF(ASN1_OBJECT) *policies); + + function X509_VERIFY_PARAM_set_inh_flags(param: PX509_VERIFY_PARAM; flags: TIdC_UINT32): TIdC_INT; {introduced 1.1.0} + function X509_VERIFY_PARAM_get_inh_flags(const param: PX509_VERIFY_PARAM): TIdC_UINT32; {introduced 1.1.0} + + function X509_VERIFY_PARAM_set1_host(param: PX509_VERIFY_PARAM; const name: PIdAnsiChar; namelen: TIdC_SIZET): TIdC_INT; + function X509_VERIFY_PARAM_add1_host(param: PX509_VERIFY_PARAM; const name: PIdAnsiChar; namelen: TIdC_SIZET): TIdC_INT; + procedure X509_VERIFY_PARAM_set_hostflags(param: PX509_VERIFY_PARAM; flags: TIdC_UINT); + function X509_VERIFY_PARAM_get_hostflags(const param: PX509_VERIFY_PARAM): TIdC_UINT; {introduced 1.1.0} + function X509_VERIFY_PARAM_get0_peername(v1: PX509_VERIFY_PARAM): PIdAnsiChar; + procedure X509_VERIFY_PARAM_move_peername(v1: PX509_VERIFY_PARAM; v2: PX509_VERIFY_PARAM); {introduced 1.1.0} + function X509_VERIFY_PARAM_set1_email(param: PX509_VERIFY_PARAM; const email: PIdAnsiChar; emaillen: TIdC_SIZET): TIdC_INT; + function X509_VERIFY_PARAM_set1_ip(param: PX509_VERIFY_PARAM; const ip: PByte; iplen: TIdC_SIZET): TIdC_INT; + function X509_VERIFY_PARAM_set1_ip_asc(param: PX509_VERIFY_PARAM; const ipasc: PIdAnsiChar): TIdC_INT; + + function X509_VERIFY_PARAM_get_depth(const param: PX509_VERIFY_PARAM): TIdC_INT; + function X509_VERIFY_PARAM_get_auth_level(const param: PX509_VERIFY_PARAM): TIdC_INT; {introduced 1.1.0} + function X509_VERIFY_PARAM_get0_name(const param: PX509_VERIFY_PARAM): PIdAnsiChar; + + function X509_VERIFY_PARAM_add0_table(param: PX509_VERIFY_PARAM): TIdC_INT; + function X509_VERIFY_PARAM_get_count: TIdC_INT; + function X509_VERIFY_PARAM_get0(id: TIdC_INT): PX509_VERIFY_PARAM; + function X509_VERIFY_PARAM_lookup(const name: PIdAnsiChar): X509_VERIFY_PARAM; + procedure X509_VERIFY_PARAM_table_cleanup; + + //TIdC_INT X509_policy_check(X509_POLICY_TREE **ptree, TIdC_INT *pexplicit_policy, + // STACK_OF(X509) *certs, + // STACK_OF(ASN1_OBJECT) *policy_oids, TIdC_UINT flags); + + procedure X509_policy_tree_free(tree: PX509_POLICY_TREE); + + function X509_policy_tree_level_count(const tree: PX509_POLICY_TREE): TIdC_INT; + function X509_policy_tree_get0_level(const tree: PX509_POLICY_TREE; i: TIdC_INT): PX509_POLICY_LEVEL; + + //STACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_policies(const + // X509_POLICY_TREE + // *tree); + // + //STACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_user_policies(const + // X509_POLICY_TREE + // *tree); + + function X509_policy_level_node_count(level: PX509_POLICY_LEVEL): TIdC_INT; + + function X509_policy_level_get0_node(level: PX509_POLICY_LEVEL; i: TIdC_INT): PX509_POLICY_NODE; + + function X509_policy_node_get0_policy(const node: PX509_POLICY_NODE): PASN1_OBJECT; + + //STACK_OF(POLICYQUALINFO) *X509_policy_node_get0_qualifiers(const + // X509_POLICY_NODE + // *node); + function X509_policy_node_get0_parent(const node: PX509_POLICY_NODE): PX509_POLICY_NODE; + +{helper_functions} +function X509_LOOKUP_load_file(ctx: PX509_LOOKUP; name: PIdAnsiChar; type_: TIdC_LONG): TIdC_INT; +{\helper_functions} + +implementation + +function X509_STORE_CTX_get_app_data(ctx: PX509_STORE_CTX): Pointer; +begin + Result := X509_STORE_CTX_get_ex_data(ctx,SSL_get_ex_data_X509_STORE_CTX_idx); +end; + +{forward_compatibility} +type + _PX509_LOOKUP_METHOD = ^_X509_LOOKUP_METHOD; + _X509_LOOKUP_METHOD = record + name : PIdAnsiChar; + new_item : function (ctx : PX509_LOOKUP): TIdC_INT; cdecl; + free : procedure (ctx : PX509_LOOKUP); cdecl; + init : function(ctx : PX509_LOOKUP) : TIdC_INT; cdecl; + shutdown : function(ctx : PX509_LOOKUP) : TIdC_INT; cdecl; + ctrl: function(ctx : PX509_LOOKUP; cmd : TIdC_INT; const argc : PIdAnsiChar; argl : TIdC_LONG; out ret : PIdAnsiChar ) : TIdC_INT; cdecl; + get_by_subject: function(ctx : PX509_LOOKUP; _type : TIdC_INT; name : PX509_NAME; ret : PX509_OBJECT ) : TIdC_INT; cdecl; + get_by_issuer_serial : function(ctx : PX509_LOOKUP; _type : TIdC_INT; name : PX509_NAME; serial : PASN1_INTEGER; ret : PX509_OBJECT) : TIdC_INT; cdecl; + get_by_fingerprint : function (ctx : PX509_LOOKUP; _type : TIdC_INT; bytes : PIdAnsiChar; len : TIdC_INT; ret : PX509_OBJECT): TIdC_INT; cdecl; + get_by_alias : function(ctx : PX509_LOOKUP; _type : TIdC_INT; str : PIdAnsiChar; ret : PX509_OBJECT) : TIdC_INT; cdecl; + end; + +const + Indy_x509_unicode_file_lookup: _X509_LOOKUP_METHOD = + ( + name: 'Load file into cache'; + new_item: nil; // * new */ + free: nil; // * free */ + init: nil; // * init */ + shutdown: nil; // * shutdown */ + ctrl: nil; // * ctrl */ + get_by_subject: nil; // * get_by_subject */ + get_by_issuer_serial: nil; // * get_by_issuer_serial */ + get_by_fingerprint: nil; // * get_by_fingerprint */ + get_by_alias: nil // * get_by_alias */ + ); + +function X509_LOOKUP_meth_new(const name: PIdAnsiChar): PX509_LOOKUP_METHOD; +begin + Result := @Indy_x509_unicode_file_lookup; +end; + +procedure X509_LOOKUP_meth_free(method: PX509_LOOKUP_METHOD); +begin + //Do nothing +end; + +function X509_LOOKUP_meth_set_ctrl(method: PX509_LOOKUP_METHOD; ctrl_fn: X509_LOOKUP_ctrl_fn): TIdC_INT; +begin + _PX509_LOOKUP_METHOD(method)^.ctrl := @ctrl_fn; + Result := 1; +end; +(* +struct x509_lookup_st { + int init; /* have we been started */ + int skip; /* don't use us. */ + X509_LOOKUP_METHOD *method; /* the functions */ + char *method_data; /* method data */ + X509_STORE *store_ctx; /* who owns us */ +} /* X509_LOOKUP */ ; +*) + +type + _PX509_LOOKUP = ^_X509_LOOKUP; + _X509_LOOKUP = record + init: TIdC_INT; + skip: TIdC_INT; + method: PX509_LOOKUP_METHOD; + method_data: PIdAnsiChar; + store_ctx: PX509_STORE; + end; + +function X509_LOOKUP_get_store(const ctx: PX509_LOOKUP): PX509_STORE; +begin + Result := _PX509_LOOKUP(ctx)^.store_ctx; +end; + +{/forward_compatibility} + +{helper_functions} +function X509_LOOKUP_load_file(ctx: PX509_LOOKUP; name: PIdAnsiChar; type_: TIdC_LONG): TIdC_INT; +begin + Result := X509_LOOKUP_ctrl(ctx,X509_L_FILE_LOAD,name,type_,nil); +end; +{\helper_functions} + + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509err.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509err.h2pas new file mode 100644 index 000000000..c7c51dafe --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509err.h2pas @@ -0,0 +1,147 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_x509err; + +interface + +// Headers for OpenSSL 1.1.1 +// x509err.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts; + +const + (* + * X509 function codes. + *) + X509_F_ADD_CERT_DIR = 100; + X509_F_BUILD_CHAIN = 106; + X509_F_BY_FILE_CTRL = 101; + X509_F_CHECK_NAME_CONSTRAINTS = 149; + X509_F_CHECK_POLICY = 145; + X509_F_DANE_I2D = 107; + X509_F_DIR_CTRL = 102; + X509_F_GET_CERT_BY_SUBJECT = 103; + X509_F_I2D_X509_AUX = 151; + X509_F_LOOKUP_CERTS_SK = 152; + X509_F_NETSCAPE_SPKI_B64_DECODE = 129; + X509_F_NETSCAPE_SPKI_B64_ENCODE = 130; + X509_F_NEW_DIR = 153; + X509_F_X509AT_ADD1_ATTR = 135; + X509_F_X509V3_ADD_EXT = 104; + X509_F_X509_ATTRIBUTE_CREATE_BY_NID = 136; + X509_F_X509_ATTRIBUTE_CREATE_BY_OBJ = 137; + X509_F_X509_ATTRIBUTE_CREATE_BY_TXT = 140; + X509_F_X509_ATTRIBUTE_GET0_DATA = 139; + X509_F_X509_ATTRIBUTE_SET1_DATA = 138; + X509_F_X509_CHECK_PRIVATE_KEY = 128; + X509_F_X509_CRL_DIFF = 105; + X509_F_X509_CRL_METHOD_NEW = 154; + X509_F_X509_CRL_PRINT_FP = 147; + X509_F_X509_EXTENSION_CREATE_BY_NID = 108; + X509_F_X509_EXTENSION_CREATE_BY_OBJ = 109; + X509_F_X509_GET_PUBKEY_PARAMETERS = 110; + X509_F_X509_LOAD_CERT_CRL_FILE = 132; + X509_F_X509_LOAD_CERT_FILE = 111; + X509_F_X509_LOAD_CRL_FILE = 112; + X509_F_X509_LOOKUP_METH_NEW = 160; + X509_F_X509_LOOKUP_NEW = 155; + X509_F_X509_NAME_ADD_ENTRY = 113; + X509_F_X509_NAME_CANON = 156; + X509_F_X509_NAME_ENTRY_CREATE_BY_NID = 114; + X509_F_X509_NAME_ENTRY_CREATE_BY_TXT = 131; + X509_F_X509_NAME_ENTRY_SET_OBJECT = 115; + X509_F_X509_NAME_ONELINE = 116; + X509_F_X509_NAME_PRINT = 117; + X509_F_X509_OBJECT_NEW = 150; + X509_F_X509_PRINT_EX_FP = 118; + X509_F_X509_PUBKEY_DECODE = 148; + X509_F_X509_PUBKEY_GET0 = 119; + X509_F_X509_PUBKEY_SET = 120; + X509_F_X509_REQ_CHECK_PRIVATE_KEY = 144; + X509_F_X509_REQ_PRINT_EX = 121; + X509_F_X509_REQ_PRINT_FP = 122; + X509_F_X509_REQ_TO_X509 = 123; + X509_F_X509_STORE_ADD_CERT = 124; + X509_F_X509_STORE_ADD_CRL = 125; + X509_F_X509_STORE_ADD_LOOKUP = 157; + X509_F_X509_STORE_CTX_GET1_ISSUER = 146; + X509_F_X509_STORE_CTX_INIT = 143; + X509_F_X509_STORE_CTX_NEW = 142; + X509_F_X509_STORE_CTX_PURPOSE_INHERIT = 134; + X509_F_X509_STORE_NEW = 158; + X509_F_X509_TO_X509_REQ = 126; + X509_F_X509_TRUST_ADD = 133; + X509_F_X509_TRUST_SET = 141; + X509_F_X509_VERIFY_CERT = 127; + X509_F_X509_VERIFY_PARAM_NEW = 159; + + (* + * X509 reason codes. + *) + X509_R_AKID_MISMATCH = 110; + X509_R_BAD_SELECTOR = 133; + X509_R_BAD_X509_FILETYPE = 100; + X509_R_BASE64_DECODE_ERROR = 118; + X509_R_CANT_CHECK_DH_KEY = 114; + X509_R_CERT_ALREADY_IN_HASH_TABLE = 101; + X509_R_CRL_ALREADY_DELTA = 127; + X509_R_CRL_VERIFY_FAILURE = 131; + X509_R_IDP_MISMATCH = 128; + X509_R_INVALID_ATTRIBUTES = 138; + X509_R_INVALID_DIRECTORY = 113; + X509_R_INVALID_FIELD_NAME = 119; + X509_R_INVALID_TRUST = 123; + X509_R_ISSUER_MISMATCH = 129; + X509_R_KEY_TYPE_MISMATCH = 115; + X509_R_KEY_VALUES_MISMATCH = 116; + X509_R_LOADING_CERT_DIR = 103; + X509_R_LOADING_DEFAULTS = 104; + X509_R_METHOD_NOT_SUPPORTED = 124; + X509_R_NAME_TOO_LONG = 134; + X509_R_NEWER_CRL_NOT_NEWER = 132; + X509_R_NO_CERTIFICATE_FOUND = 135; + X509_R_NO_CERTIFICATE_OR_CRL_FOUND = 136; + X509_R_NO_CERT_SET_FOR_US_TO_VERIFY = 105; + X509_R_NO_CRL_FOUND = 137; + X509_R_NO_CRL_NUMBER = 130; + X509_R_PUBLIC_KEY_DECODE_ERROR = 125; + X509_R_PUBLIC_KEY_ENCODE_ERROR = 126; + X509_R_SHOULD_RETRY = 106; + X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN = 107; + X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY = 108; + X509_R_UNKNOWN_KEY_TYPE = 117; + X509_R_UNKNOWN_NID = 109; + X509_R_UNKNOWN_PURPOSE_ID = 121; + X509_R_UNKNOWN_TRUST_ID = 120; + X509_R_UNSUPPORTED_ALGORITHM = 111; + X509_R_WRONG_LOOKUP_TYPE = 112; + X509_R_WRONG_TYPE = 122; + + function ERR_load_X509_strings: TIdC_INT; + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509v3.h2pas b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509v3.h2pas new file mode 100644 index 000000000..55bdfb5a0 --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/IdOpenSSLHeaders_x509v3.h2pas @@ -0,0 +1,920 @@ +{******************************************************************************} +{ } +{ Indy (Internet Direct) - Internet Protocols Simplified } +{ } +{ https://www.indyproject.org/ } +{ https://gitter.im/IndySockets/Indy } +{ } +{******************************************************************************} +{ } +{ This file is part of the Indy (Internet Direct) project, and is offered } +{ under the dual-licensing agreement described on the Indy website. } +{ (https://www.indyproject.org/license/) } +{ } +{ Copyright: } +{ (c) 1993-2020, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } +{ } +{******************************************************************************} +{ } +{ } +{******************************************************************************} + +unit IdOpenSSLHeaders_x509v3; + +interface + +// Headers for OpenSSL 1.1.1 +// x509v3.h + + +uses + IdCTypes, + IdGlobal, + IdSSLOpenSSLConsts, + IdOpenSSLHeaders_ossl_typ, + IdOpenSSLHeaders_asn1, + IdOpenSSLHeaders_asn1t, + IdOpenSSLHeaders_x509; + +const + (* ext_flags values *) + X509V3_EXT_DYNAMIC = $1; + X509V3_EXT_CTX_DEP = $2; + X509V3_EXT_MULTILINE = $4; + + // v3_ext_ctx + CTX_TEST = $1; + X509V3_CTX_REPLACE = $2; + + // GENERAL_NAME_st + GEN_OTHERNAME = 0; + GEN_EMAIL = 1; + GEN_DNS = 2; + GEN_X400 = 3; + GEN_DIRNAME = 4; + GEN_EDIPARTY = 5; + GEN_URI = 6; + GEN_IPADD = 7; + GEN_RID = 8; + + (* All existing reasons *) + CRLDP_ALL_REASONS = $807f; + + CRL_REASON_NONE = -1; + CRL_REASON_UNSPECIFIED = 0; + CRL_REASON_KEY_COMPROMISE = 1; + CRL_REASON_CA_COMPROMISE = 2; + CRL_REASON_AFFILIATION_CHANGED = 3; + CRL_REASON_SUPERSEDED = 4; + CRL_REASON_CESSATION_OF_OPERATION = 5; + CRL_REASON_CERTIFICATE_HOLD = 6; + CRL_REASON_REMOVE_FROM_CRL = 8; + CRL_REASON_PRIVILEGE_WITHDRAWN = 9; + CRL_REASON_AA_COMPROMISE = 10; + + (* Values in idp_flags field *) + (* IDP present *) + IDP_PRESENT = $1; + (* IDP values inconsistent *) + IDP_INVALID = $2; + (* onlyuser true *) + IDP_ONLYUSER = $4; + (* onlyCA true *) + IDP_ONLYCA = $8; + (* onlyattr true *) + IDP_ONLYATTR = $10; + (* indirectCRL true *) + IDP_INDIRECT = $20; + (* onlysomereasons present *) + IDP_REASONS = $40; + + EXT_END: array[0..13] of TIdC_INT = (-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); + + (* X509_PURPOSE stuff *) + + EXFLAG_BCONS = $1; + EXFLAG_KUSAGE = $2; + EXFLAG_XKUSAGE = $4; + EXFLAG_NSCERT = $8; + + EXFLAG_CA = $10; + (* Really self issued not necessarily self signed *) + EXFLAG_SI = $20; + EXFLAG_V1 = $40; + EXFLAG_INVALID = $80; + (* EXFLAG_SET is set to indicate that some values have been precomputed *) + EXFLAG_SET = $100; + EXFLAG_CRITICAL = $200; + EXFLAG_PROXY = $400; + + EXFLAG_INVALID_POLICY = $800; + EXFLAG_FRESHEST = $1000; + (* Self signed *) + EXFLAG_SS = $2000; + + KU_DIGITAL_SIGNATURE = $0080; + KU_NON_REPUDIATION = $0040; + KU_KEY_ENCIPHERMENT = $0020; + KU_DATA_ENCIPHERMENT = $0010; + KU_KEY_AGREEMENT = $0008; + KU_KEY_CERT_SIGN = $0004; + KU_CRL_SIGN = $0002; + KU_ENCIPHER_ONLY = $0001; + KU_DECIPHER_ONLY = $8000; + + NS_SSL_CLIENT = $80; + NS_SSL_SERVER = $40; + NS_SMIME = $20; + NS_OBJSIGN = $10; + NS_SSL_CA = $04; + NS_SMIME_CA = $02; + NS_OBJSIGN_CA = $01; + NS_ANY_CA = NS_SSL_CA or NS_SMIME_CA or NS_OBJSIGN_CA; + + XKU_SSL_SERVER = $1; + XKU_SSL_CLIENT = $2; + XKU_SMIME = $4; + XKU_CODE_SIGN = $8; + XKU_SGC = $10; + XKU_OCSP_SIGN = $20; + XKU_TIMESTAMP = $40; + XKU_DVCS = $80; + XKU_ANYEKU = $100; + + X509_PURPOSE_DYNAMIC = $1; + X509_PURPOSE_DYNAMIC_NAME = $2; + + X509_PURPOSE_SSL_CLIENT = 1; + X509_PURPOSE_SSL_SERVER = 2; + X509_PURPOSE_NS_SSL_SERVER = 3; + X509_PURPOSE_SMIME_SIGN = 4; + X509_PURPOSE_SMIME_ENCRYPT = 5; + X509_PURPOSE_CRL_SIGN = 6; + X509_PURPOSE_ANY = 7; + X509_PURPOSE_OCSP_HELPER = 8; + X509_PURPOSE_TIMESTAMP_SIGN = 9; + + X509_PURPOSE_MIN = 1; + X509_PURPOSE_MAX = 9; + + (* Flags for X509V3_EXT_print() *) + + X509V3_EXT_UNKNOWN_MASK = TIdC_LONG($f) shl 16; + (* Return error for unknown extensions *) + X509V3_EXT_DEFAULT = 0; + (* Print error for unknown extensions *) + X509V3_EXT_ERROR_UNKNOWN = TIdC_LONG(1) shl 16; + (* ASN1 parse unknown extensions *) + X509V3_EXT_PARSE_UNKNOWN = TIdC_LONG(2) shl 16; + (* BIO_dump unknown extensions *) + X509V3_EXT_DUMP_UNKNOWN = TIdC_LONG(3) shl 16; + + (* Flags for X509V3_add1_i2d *) + + X509V3_ADD_OP_MASK = TIdC_LONG($f); + X509V3_ADD_DEFAULT = TIdC_LONG(0); + X509V3_ADD_APPEND = TIdC_LONG(1); + X509V3_ADD_REPLACE = TIdC_LONG(2); + X509V3_ADD_REPLACE_EXISTING = TIdC_LONG(3); + X509V3_ADD_KEEP_EXISTING = TIdC_LONG(4); + X509V3_ADD_DELETE = TIdC_LONG(5); + X509V3_ADD_SILENT = $10; + + (* Flags for X509_check_* functions *) + + (* + * Always check subject name for host match even if subject alt names present + *) + X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT = $1; + (* Disable wildcard matching for dnsName fields and common name. *) + X509_CHECK_FLAG_NO_WILDCARDS = $2; + (* Wildcards must not match a partial label. *) + X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS = $4; + (* Allow (non-partial) wildcards to match multiple labels. *) + X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS = $8; + (* Constraint verifier subdomain patterns to match a single labels. *) + X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS = $10; + (* Never check the subject CN *) + X509_CHECK_FLAG_NEVER_CHECK_SUBJECT = $20; + (* + * Match reference identifiers starting with "." to any sub-domain. + * This is a non-public flag, turned on implicitly when the subject + * reference identity is a DNS name. + *) + _X509_CHECK_FLAG_DOT_SUBDOMAINS = $8000; + + ASIdOrRange_id = 0; + ASIdOrRange_range = 1; + + ASIdentifierChoice_inherit = 0; + ASIdentifierChoice_asIdsOrRanges = 1; + + IPAddressOrRange_addressPrefix = 0; + IPAddressOrRange_addressRange = 1; + + IPAddressChoice_inherit = 0; + IPAddressChoice_addressesOrRanges = 1; + + (* + * API tag for elements of the ASIdentifer SEQUENCE. + *) + V3_ASID_ASNUM = 0; + V3_ASID_RDI = 1; + + (* + * AFI values, assigned by IANA. It'd be nice to make the AFI + * handling code totally generic, but there are too many little things + * that would need to be defined for other address families for it to + * be worth the trouble. + *) + IANA_AFI_IPV4 = 1; + IANA_AFI_IPV6 = 2; + +type + (* Forward reference *) + //Pv3_ext_method = ^v3_ext_method; + //Pv3_ext_ctx = ^v3_ext_ctx; + + (* Useful typedefs *) + + //X509V3_EXT_NEW = function: Pointer; cdecl; + //X509V3_EXT_FREE = procedure(v1: Pointer); cdecl; + //X509V3_EXT_D2I = function(v1: Pointer; v2: PPByte; v3: TIdC_Long): Pointer; cdecl; + //X509V3_EXT_I2D = function(v1: Pointer; v2: PPByte): TIdC_INT; cdecl; +// typedef STACK_OF(CONF_VALUE) * +// (*X509V3_EXT_I2V) (const struct v3_ext_method *method, void *ext, +// STACK_OF(CONF_VALUE) *extlist); +// typedef void *(*X509V3_EXT_V2I)(const struct v3_ext_method *method, +// struct v3_ext_ctx *ctx, +// STACK_OF(CONF_VALUE) *values); + //X509V3_EXT_I2S = function(method: Pv3_ext_method; ext: Pointer): PIdAnsiChar; cdecl; + //X509V3_EXT_S2I = function(method: Pv3_ext_method; ctx: Pv3_ext_ctx; const str: PIdAnsiChar): Pointer; cdecl; + //X509V3_EXT_I2R = function(const method: Pv3_ext_method; ext: Pointer; out_: PBIO; indent: TIdC_INT): TIdC_INT; cdecl; + //X509V3_EXT_R2I = function(const method: Pv3_ext_method; ctx: Pv3_ext_ctx; const str: PIdAnsiChar): Pointer; cdecl; + +// (* V3 extension structure *) +// v3_ext_method = record +// ext_nid: TIdC_INT; +// ext_flags: TIdC_INT; +//(* If this is set the following four fields are ignored *) +// it: PASN1_ITEM_EXP; +//(* Old style ASN1 calls *) +// ext_new: X509V3_EXT_NEW; +// ext_free: X509V3_EXT_FREE; +// d2i: X509V3_EXT_D2I; +// i2d: X509V3_EXT_I2D; +//(* The following pair is used for string extensions *) +// i2s: X509V3_EXT_I2S; +// s2i: X509V3_EXT_S2I; +//(* The following pair is used for multi-valued extensions *) +// i2v: X509V3_EXT_I2V; +// v2i: X509V3_EXT_V2I; +//(* The following are used for raw extensions *) +// i2r: X509V3_EXT_I2R; +// r2i: X509V3_EXT_R2I; +// usr_data: Pointer; (* Any extension specific data *) +// end; +// X509V3_EXT_METHOD = v3_ext_method; +// PX509V3_EXT_METHOD = ^X509V3_EXT_METHOD; +// DEFINE_STACK_OF(X509V3_EXT_METHOD) + +// typedef struct X509V3_CONF_METHOD_st { +// PIdAnsiChar *(*get_string) (void *db, const section: PIdAnsiChar, const value: PIdAnsiChar); +// STACK_OF(CONF_VALUE) *(*get_section) (void *db, const section: PIdAnsiChar); +// void (*free_string) (void *db, PIdAnsiChar *string); +// void (*free_section) (void *db, STACK_OF(CONF_VALUE) *section); +// } X509V3_CONF_METHOD; + +// Moved to ossl_typ +// (* Context specific info *) +// v3_ext_ctx = record +// flags: TIdC_INT; +// issuer_cert: PX509; +// subject_cert: PX509; +// subject_req: PX509_REQ; +// crl: PX509_CRL; +// db_meth: PX509V3_CONF_METHOD; +// db: Pointer; +// (* Maybe more here *) +// end; + + ENUMERATED_NAMES = BIT_STRING_BITNAME; + + BASIC_CONSTRAINTS_st = record + ca: TIdC_INT; + pathlen: PASN1_INTEGER; + end; + BASIC_CONSTRAINTS = BASIC_CONSTRAINTS_st; + PBASIC_CONSTRAINTS = ^BASIC_CONSTRAINTS; + + PKEY_USAGE_PERIOD_st = record + notBefore: PASN1_GENERALIZEDTIME; + notAfter: PASN1_GENERALIZEDTIME; + end; + PKEY_USAGE_PERIOD = PKEY_USAGE_PERIOD_st; + PPKEY_USAGE_PERIOD = ^PKEY_USAGE_PERIOD; + + otherName_st = record + type_id: PASN1_OBJECT; + value: PASN1_TYPE; + end; + OTHERNAME = otherName_st; + POTHERNAME = ^OTHERNAME; + + EDIPartyName_st = record + nameAssigner: PASN1_STRING; + partyName: PASN1_STRING; + end; + EDIPARTYNAME = EDIPartyName_st; + PEDIPARTYNAME = ^EDIPARTYNAME; + + GENERAL_NAME_st_union = record + case TIdC_INT of + 0: (ptr: PIdAnsiChar); + 1: (otherName: POTHERNAME); (* otherName *) + 2: (rfc822Name: PASN1_IA5STRING); + 3: (dNSName: PASN1_IA5STRING); + 4: (x400Address: PASN1_TYPE); + 5: (directoryName: PX509_NAME); + 6: (ediPartyName: PEDIPARTYNAME); + 7: (uniformResourceIdentifier: PASN1_IA5STRING); + 8: (iPAddress: PASN1_OCTET_STRING); + 9: (registeredID: PASN1_OBJECT); + (* Old names *) + 10: (ip: PASN1_OCTET_STRING); (* iPAddress *) + 11: (dirn: PX509_NAME); (* dirn *) + 12: (ia5: PASN1_IA5STRING); (* rfc822Name, dNSName, + * uniformResourceIdentifier *) + 13: (rid: PASN1_OBJECT); (* registeredID *) + 14: (other: PASN1_TYPE); (* x400Address *) + end; + GENERAL_NAME_st = record + type_: TIdC_INT; + d: GENERAL_NAME_st_union; + end; + GENERAL_NAME = GENERAL_NAME_st; + PGENERAL_NAME = ^GENERAL_NAME; + + ACCESS_DESCRIPTION_st = record + method: PASN1_OBJECT; + location: PGENERAL_NAME; + end; + ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; + PACCESS_DESCRIPTION = ^ACCESS_DESCRIPTION; + +// typedef STACK_OF(ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS; + +// typedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE; + +// typedef STACK_OF(ASN1_INTEGER) TLS_FEATURE; + +// DEFINE_STACK_OF(GENERAL_NAME) +// typedef STACK_OF(GENERAL_NAME) GENERAL_NAMES; +// DEFINE_STACK_OF(GENERAL_NAMES) + +// DEFINE_STACK_OF(ACCESS_DESCRIPTION) +// DIST_POINT_NAME_st_union = record +// case TIdC_INT of +// 0: (GENERAL_NAMES *fullname); +// 1: (STACK_OF(X509_NAME_ENTRY) *relativename); +// end; + DIST_POINT_NAME_st = record + type_: TIdC_INT; + (* If relativename then this contains the full distribution point name *) + dpname: PX509_NAME; + end; + DIST_POINT_NAME = DIST_POINT_NAME_st; + PDIST_POINT_NAME = ^DIST_POINT_NAME; + + +// struct DIST_POINT_ST { +// DIST_POINT_NAME *distpoint; +// ASN1_BIT_STRING *reasons; +// GENERAL_NAMES *CRLissuer; +// TIdC_INT dp_reasons; +// }; + +// typedef STACK_OF(DIST_POINT) CRL_DIST_POINTS; + +// DEFINE_STACK_OF(DIST_POINT) + +// AUTHORITY_KEYID_st = record +// keyid: PASN1_OCTET_STRING; +// issuer: PGENERAL_NAMES; +// serial: PASN1_INTEGER; +// end; + + (* Strong extranet structures *) + + SXNET_ID_st = record + zone: PASN1_INTEGER; + user: PASN1_OCTET_STRING; + end; + SXNETID = SXNET_ID_st; + PSXNETID = ^SXNETID; +// DEFINE_STACK_OF(SXNETID) + +// SXNET_st = record +// ASN1_INTEGER *version; +// STACK_OF(SXNETID) *ids; +// end; +// SXNET = SXNET_st; +// PSXNET = ^SXNET; + +// NOTICEREF_st = record +// ASN1_STRING *organization; +// STACK_OF(ASN1_INTEGER) *noticenos; +// end; +// NOTICEREF = NOTICEREF_st; +// PNOTICEREF = ^NOTICEREF; + +// USERNOTICE_st = record +// noticeref: PNOTICEREF; +// exptext: PASN1_STRING; +// end; +// USERNOTICE = USERNOTICE_st; +// PUSERNOTICE = ^USERNOTICE; + +// POLICYQUALINFO_st_union = record +// case TIdC_INT of +// 0: (cpsuri: PASN1_IA5STRING); +// 1: (usernotice: PUSERNOTICE); +// 2: (other: PASN1_TYPE); +// end; +// POLICYQUALINFO_st = record +// pqualid: PASN1_OBJECT; +// d: POLICYQUALINFO_st_union; +// end; +// POLICYQUALINFO = POLICYQUALINFO_st; +// PPOLICYQUALINFO = ^POLICYQUALINFO; +// DEFINE_STACK_OF(POLICYQUALINFO) + +// POLICYINFO_st = record +// ASN1_OBJECT *policyid; +// STACK_OF(POLICYQUALINFO) *qualifiers; +// end; +// POLICYINFO = POLICYINFO_st; +// PPOLICYINFO = ^POLICYINFO; +// typedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES; +// DEFINE_STACK_OF(POLICYINFO) + + POLICY_MAPPING_st = record + issuerDomainPolicy: PASN1_OBJECT; + subjectDomainPolicy: PASN1_OBJECT; + end; + POLICY_MAPPING = POLICY_MAPPING_st; + PPOLICY_MAPPING = ^POLICY_MAPPING; +// DEFINE_STACK_OF(POLICY_MAPPING) +// typedef STACK_OF(POLICY_MAPPING) POLICY_MAPPINGS; + + GENERAL_SUBTREE_st = record + base: PGENERAL_NAME; + minimum: PASN1_INTEGER; + maximum: PASN1_INTEGER; + end; + GENERAL_SUBTREE = GENERAL_SUBTREE_st; + PGENERAL_SUBTREE = ^GENERAL_SUBTREE; +// DEFINE_STACK_OF(GENERAL_SUBTREE) + +// NAME_CONSTRAINTS_st = record +// STACK_OF(GENERAL_SUBTREE) *permittedSubtrees; +// STACK_OF(GENERAL_SUBTREE) *excludedSubtrees; +// end; + + POLICY_CONSTRAINTS_st = record + requireExplicitPolicy: PASN1_INTEGER; + inhibitPolicyMapping: PASN1_INTEGER; + end; + POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; + PPOLICY_CONSTRAINTS = ^POLICY_CONSTRAINTS; + + (* Proxy certificate structures, see RFC 3820 *) + PROXY_POLICY_st = record + policyLanguage: PASN1_OBJECT; + policy: PASN1_OCTET_STRING; + end; + PROXY_POLICY = PROXY_POLICY_st; + PPROXY_POLICY = ^PROXY_POLICY; +// DECLARE_ASN1_FUNCTIONS(PROXY_POLICY) + + PROXY_CERT_INFO_EXTENSION_st = record + pcPathLengthConstraint: PASN1_INTEGER; + proxyPolicy: PPROXY_POLICY; + end; + PROXY_CERT_INFO_EXTENSION = PROXY_CERT_INFO_EXTENSION_st; + PPROXY_CERT_INFO_EXTENSION = ^PROXY_CERT_INFO_EXTENSION; +// DECLARE_ASN1_FUNCTIONS(PROXY_CERT_INFO_EXTENSION) + +// ISSUING_DIST_POint_st = record +// distpoint: PDIST_POINT_NAME; +// TIdC_INT onlyuser; +// TIdC_INT onlyCA; +// onlysomereasons: PASN1_BIT_STRING; +// TIdC_INT indirectCRL; +// TIdC_INT onlyattr; +// end; + +// # define X509V3_conf_err(val) ERR_add_error_data(6, \ +// "section:", (val)->section, \ +// ",name:", (val)->name, ",value:", (val)->value) +// +// # define X509V3_set_ctx_test(ctx) \ +// X509V3_set_ctx(ctx, NULL, NULL, NULL, NULL, CTX_TEST) +// # define X509V3_set_ctx_nodb(ctx) (ctx)->db = NULL; +// +// # define EXT_BITSTRING(nid, table) { nid, 0, ASN1_ITEM_ref(ASN1_BIT_STRING), \ +// 0,0,0,0, \ +// 0,0, \ +// (X509V3_EXT_I2V)i2v_ASN1_BIT_STRING, \ +// (X509V3_EXT_V2I)v2i_ASN1_BIT_STRING, \ +// NULL, NULL, \ +// table} +// +// # define EXT_IA5STRING(nid) { nid, 0, ASN1_ITEM_ref(ASN1_IA5STRING), \ +// 0,0,0,0, \ +// (X509V3_EXT_I2S)i2s_ASN1_IA5STRING, \ +// (X509V3_EXT_S2I)s2i_ASN1_IA5STRING, \ +// 0,0,0,0, \ +// NULL} + + PX509_PURPOSE = ^X509_PURPOSE; + x509_purpose_st = record + purpose: TIdC_INT; + trust: TIdC_INT; (* Default trust ID *) + flags: TIdC_INT; + check_purpose: function(const v1: PX509_PURPOSE; const v2: PX509; v3: TIdC_INT): TIdC_INT; cdecl; + name: PIdAnsiChar; + sname: PIdAnsiChar; + usr_data: Pointer; + end; + X509_PURPOSE = x509_purpose_st; +// DEFINE_STACK_OF(X509_PURPOSE) + +// DECLARE_ASN1_FUNCTIONS(BASIC_CONSTRAINTS_st) + +// DECLARE_ASN1_FUNCTIONS(SXNET) +// DECLARE_ASN1_FUNCTIONS(SXNETID) + + ASRange_st = record + min, max: PASN1_INTEGER; + end; + ASRange = ASRange_st; + PASRange = ^ASRange; + + ASIdOrRange_st = record + type_: TIdC_INT; + case u: TIdC_INT of + 0: (id: PASN1_INTEGER); + 1: (range: PASRange); + end; + ASIdOrRange = ASIdOrRange_st; + PASIdOrRange = ^ASIdOrRange; +// typedef STACK_OF(ASIdOrRange) ASIdOrRanges; +// DEFINE_STACK_OF(ASIdOrRange) + +// ASIdentifierChoice_st = record +// type_: TIdC_INT; +// case u: TIdC_INT of +// 0: (inherit: PASN1_NULL); +// 1: (asIdsOrRanges: PASIdOrRanges); +// end; +// ASIdentifierChoice = ASIdentifierChoice_st; +// PASIdentifierChoice = ^ASIdentifierChoice; + +// ASIdentifiers_st = record +// asnum, rdi: PASIdentifierChoice; +// end; +// ASIdentifiers = ASIdentifiers_st; +// PASIdentifiers = ^ASIdentifiers; + +// DECLARE_ASN1_FUNCTIONS(ASRange) +// DECLARE_ASN1_FUNCTIONS(ASIdOrRange) +// DECLARE_ASN1_FUNCTIONS(ASIdentifierChoice) +// DECLARE_ASN1_FUNCTIONS(ASIdentifiers) + + IPAddressRange_st = record + min, max: PASN1_BIT_STRING; + end; + IPAddressRange = IPAddressRange_st; + PIPAddressRange = ^IPAddressRange; + + IPAddressOrRange_st = record + type_: TIdC_INT; + case u: TIdC_INT of + 0: (addressPrefix: PASN1_BIT_STRING); + 1: (addressRange: PIPAddressRange); + end; + IPAddressOrRange = IPAddressOrRange_st; + PIPAddressOrRange = ^IPAddressOrRange; + +// typedef STACK_OF(IPAddressOrRange) IPAddressOrRanges; +// DEFINE_STACK_OF(IPAddressOrRange) + +// IPAddressChoice_st = record +// type_: TIdC_INT; +// case u: TIdC_INT of +// 0: (inherit: PASN1_NULL); +// 1: (addressesOrRanges: PIPAddressOrRanges); +// end; +// IPAddressChoice = IPAddressChoice_st; +// PIPAddressChoice = ^IPAddressChoice; + +// IPAddressFamily_st = record +// addressFamily: PASN1_OCTET_STRING; +// ipAddressChoice: PIPAddressChoice; +// end; +// IPAddressFamily = IPAddressFamily_st; +// PIPAddressFamily = ^IPAddressFamily; + +// typedef STACK_OF(IPAddressFamily) IPAddrBlocks; +// DEFINE_STACK_OF(IPAddressFamily) + +// DECLARE_ASN1_FUNCTIONS(IPAddressRange) +// DECLARE_ASN1_FUNCTIONS(IPAddressOrRange) +// DECLARE_ASN1_FUNCTIONS(IPAddressChoice) +// DECLARE_ASN1_FUNCTIONS(IPAddressFamily) + + NamingAuthority_st = type Pointer; + NAMING_AUTHORITY = NamingAuthority_st; + PNAMING_AUTHORITY = ^NAMING_AUTHORITY; + + ProfessionInfo_st = type Pointer; + PROFESSION_INFO = ProfessionInfo_st; + PPROFESSION_INFO = ^PROFESSION_INFO; + + Admissions_st = type Pointer; + ADMISSIONS = Admissions_st; + PADMISSIONS = ^ADMISSIONS; + + AdmissionSyntax_st = type Pointer; + ADMISSION_SYNTAX = AdmissionSyntax_st; + PADMISSION_SYNTAX = ^ADMISSION_SYNTAX; +// DECLARE_ASN1_FUNCTIONS(NAMING_AUTHORITY) +// DECLARE_ASN1_FUNCTIONS(PROFESSION_INFO) +// DECLARE_ASN1_FUNCTIONS(ADMISSIONS) +// DECLARE_ASN1_FUNCTIONS(ADMISSION_SYNTAX) +// DEFINE_STACK_OF(ADMISSIONS) +// DEFINE_STACK_OF(PROFESSION_INFO) +// typedef STACK_OF(PROFESSION_INFO) PROFESSION_INFOS; + +// function SXNET_add_id_asc(psx: PPSXNET; const zone: PIdAnsiChar; const user: PIdAnsiChar; userlen: TIdC_INT): TIdC_INT; +// function SXNET_add_id_ulong(psx: PPSXNET; lzone: TIdC_ULONG; const user: PIdAnsiChar; userlen: TIdC_INT): TIdC_INT; +// function SXNET_add_id_INTEGER(psx: PPSXNET; izone: PASN1_INTEGER; const user: PIdAnsiChar; userlen: TIdC_INT): TIdC_INT; + +// function SXNET_get_id_asc(sx: PSXNET; const zone: PIdAnsiChar): PASN1_OCTET_STRING; +// function SXNET_get_id_ulong(sx: PSXNET; lzone: TIdC_ULONG): PASN1_OCTET_STRING; +// function SXNET_get_id_INTEGER(sx: PSXNET; zone: PASN1_INTEGER): PASN1_OCTET_STRING; + +// DECLARE_ASN1_FUNCTIONS(AUTHORITY_KEYID) + +// DECLARE_ASN1_FUNCTIONS(PKEY_USAGE_PERIOD) + +// DECLARE_ASN1_FUNCTIONS(GENERAL_NAME) +// GENERAL_NAME *GENERAL_NAME_dup(a: PGENERAL_NAME); + function GENERAL_NAME_cmp(a: PGENERAL_NAME; b: PGENERAL_NAME): TIdC_INT; + +// ASN1_BIT_STRING *v2i_ASN1_BIT_STRING(method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; STACK_OF(CONF_VALUE) *nval); +// STACK_OF(CONF_VALUE) *i2v_ASN1_BIT_STRING(method: PX509V3_EXT_METHOD; ASN1_BIT_STRING *bits; STACK_OF(CONF_VALUE) *extlist); + //function i2s_ASN1_IA5STRING(method: PX509V3_EXT_METHOD; ia5: PASN1_IA5STRING): PIdAnsiChar; + //function s2i_ASN1_IA5STRING(method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; const str: PIdAnsiChar): PASN1_IA5STRING; + +// STACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(method: PX509V3_EXT_METHOD; gen: PGENERAL_NAME; STACK_OF(CONF_VALUE) *ret); + function GENERAL_NAME_print(out_: PBIO; gen: PGENERAL_NAME): TIdC_INT; + +// DECLARE_ASN1_FUNCTIONS(GENERAL_NAMES) + +// STACK_OF(CONF_VALUE) *i2v_GENERAL_NAMES(method: PX509V3_EXT_METHOD, GENERAL_NAMES *gen, STACK_OF(CONF_VALUE) *extlist); +// GENERAL_NAMES *v2i_GENERAL_NAMES(const method: PX509V3_EXT_METHOD, ctx: PX509V3_CTX, STACK_OF(CONF_VALUE) *nval); + +// DECLARE_ASN1_FUNCTIONS(OTHERNAME) +// DECLARE_ASN1_FUNCTIONS(EDIPARTYNAME) + function OTHERNAME_cmp(a: POTHERNAME; b: POTHERNAME): TIdC_INT; + procedure GENERAL_NAME_set0_value(a: PGENERAL_NAME; type_: TIdC_INT; value: Pointer); + function GENERAL_NAME_get0_value(const a: PGENERAL_NAME; ptype: PIdC_INT): Pointer; + function GENERAL_NAME_set0_othername(gen: PGENERAL_NAME; oid: PASN1_OBJECT; value: PASN1_TYPE): TIdC_INT; + function GENERAL_NAME_get0_otherName(const gen: PGENERAL_NAME; poid: PPASN1_OBJECT; pvalue: PPASN1_TYPE): TIdC_INT; + + //function i2s_ASN1_OCTET_STRING(method: PX509V3_EXT_METHOD; const ia5: PASN1_OCTET_STRING): PIdAnsiChar; + //function s2i_ASN1_OCTET_STRING(method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; const str: PIdAnsiChar): PASN1_OCTET_STRING; + +// DECLARE_ASN1_FUNCTIONS(EXTENDED_KEY_USAGE) + function i2a_ACCESS_DESCRIPTION(bp: PBIO; const a: PACCESS_DESCRIPTION): TIdC_INT; + +// DECLARE_ASN1_ALLOC_FUNCTIONS(TLS_FEATURE) + +// DECLARE_ASN1_FUNCTIONS(CERTIFICATEPOLICIES) +// DECLARE_ASN1_FUNCTIONS(POLICYINFO) +// DECLARE_ASN1_FUNCTIONS(POLICYQUALINFO) +// DECLARE_ASN1_FUNCTIONS(USERNOTICE) +// DECLARE_ASN1_FUNCTIONS(NOTICEREF) + +// DECLARE_ASN1_FUNCTIONS(CRL_DIST_POINTS) +// DECLARE_ASN1_FUNCTIONS(DIST_POINT) +// DECLARE_ASN1_FUNCTIONS(DIST_POINT_NAME) +// DECLARE_ASN1_FUNCTIONS(ISSUING_DIST_POINT) + + function DIST_POINT_set_dpname(dpn: PDIST_POINT_NAME; iname: PX509_NAME): TIdC_INT; + + function NAME_CONSTRAINTS_check(x: PX509; nc: PNAME_CONSTRAINTS): TIdC_INT; + function NAME_CONSTRAINTS_check_CN(x: PX509; nc: PNAME_CONSTRAINTS): TIdC_INT; + +// DECLARE_ASN1_FUNCTIONS(ACCESS_DESCRIPTION) +// DECLARE_ASN1_FUNCTIONS(AUTHORITY_INFO_ACCESS) + +// DECLARE_ASN1_ITEM(POLICY_MAPPING) +// DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_MAPPING) +// DECLARE_ASN1_ITEM(POLICY_MAPPINGS) + +// DECLARE_ASN1_ITEM(GENERAL_SUBTREE) +// DECLARE_ASN1_ALLOC_FUNCTIONS(GENERAL_SUBTREE) + +// DECLARE_ASN1_ITEM(NAME_CONSTRAINTS) +// DECLARE_ASN1_ALLOC_FUNCTIONS(NAME_CONSTRAINTS) + +// DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_CONSTRAINTS) +// DECLARE_ASN1_ITEM(POLICY_CONSTRAINTS) + + //function a2i_GENERAL_NAME(out_: PGENERAL_NAME; const method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; TIdC_INT gen_type; const value: PIdAnsiChar; is_nc: TIdC_INT): GENERAL_NAME; + + //function v2i_GENERAL_NAME(const method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; cnf: PCONF_VALUE): PGENERAL_NAME; + //function v2i_GENERAL_NAME_ex(out_: PGENERAL_NAME; const method: PX509V3_EXT_METHOD; ctx: PX509V3_CTX; cnf: PCONF_VALUE; is_nc: TIdC_INT): PGENERAL_NAME; + //procedure X509V3_conf_free(val: PCONF_VALUE); + + function X509V3_EXT_nconf_nid(conf: PCONF; ctx: PX509V3_CTX; ext_nid: TIdC_INT; const value: PIdAnsiChar): PX509_EXTENSION; + function X509V3_EXT_nconf(conf: PCONF; ctx: PX509V3_CTX; const name: PIdAnsiChar; const value: PIdAnsiChar): PX509_EXTENSION; +// TIdC_INT X509V3_EXT_add_nconf_sk(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; STACK_OF(X509_EXTENSION) **sk); + function X509V3_EXT_add_nconf(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; cert: PX509): TIdC_INT; + function X509V3_EXT_REQ_add_nconf(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; req: PX509_REQ): TIdC_INT; + function X509V3_EXT_CRL_add_nconf(conf: PCONF; ctx: PX509V3_CTX; const section: PIdAnsiChar; crl: PX509_CRL): TIdC_INT; + + function X509V3_EXT_conf_nid(conf: Pointer; ctx: PX509V3_CTX; ext_nid: TIdC_INT; const value: PIdAnsiChar): PX509_EXTENSION; +// X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; ext_nid: TIdC_INT; const value: PIdAnsiChar); + function X509V3_EXT_conf(conf: Pointer; ctx: PX509V3_CTX; const name: PIdAnsiChar; const value: PIdAnsiChar): PX509_EXTENSION; +// X509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const name: PIdAnsiChar; const value: PIdAnsiChar); + function X509V3_EXT_add_conf(conf: Pointer; ctx: PX509V3_CTX; const section: PIdAnsiChar; cert: PX509): TIdC_INT; +// TIdC_INT X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const section: PIdAnsiChar; cert: PX509); + function X509V3_EXT_REQ_add_conf(conf: Pointer; ctx: PX509V3_CTX; const section: PIdAnsiChar; req: PX509_REQ): TIdC_INT; +// TIdC_INT X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const section: PIdAnsiChar; req: PX509_REQ); + function X509V3_EXT_CRL_add_conf(conf: Pointer; ctx: PX509V3_CTX; const section: PIdAnsiChar; crl: PX509_CRL): TIdC_INT; +// TIdC_INT X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf; ctx: PX509V3_CTX; const section: PIdAnsiChar; crl: PX509_CRL); + +// TIdC_INT X509V3_add_value_bool_nf(const name: PIdAnsiChar; TIdC_INT asn1_bool; STACK_OF(CONF_VALUE) **extlist); + //function X509V3_get_value_bool(const value: PCONF_VALUE; asn1_bool: PIdC_INT): TIdC_INT; + //function X509V3_get_value_int(const value: PCONF_VALUE; aint: PPASN1_INTEGER): TIdC_INT; + procedure X509V3_set_nconf(ctx: PX509V3_CTX; conf: PCONF); +// void X509V3_set_conf_lhash(ctx: PX509V3_CTX; LHASH_OF(CONF_VALUE) *lhash); + + function X509V3_get_string(ctx: PX509V3_CTX; const name: PIdAnsiChar; const section: PIdAnsiChar): PIdAnsiChar; +// STACK_OF(CONF_VALUE) *X509V3_get_section(ctx: PX509V3_CTX; const section: PIdAnsiChar); + procedure X509V3_string_free(ctx: PX509V3_CTX; str: PIdAnsiChar); +// void X509V3_section_free(ctx: PX509V3_CTX; STACK_OF(CONF_VALUE) *section); + procedure X509V3_set_ctx(ctx: PX509V3_CTX; issuer: PX509; subject: PX509; req: PX509_REQ; crl: PX509_CRL; flags: TIdC_INT); + +// TIdC_INT X509V3_add_value(const name: PIdAnsiChar; const value: PIdAnsiChar; STACK_OF(CONF_VALUE) **extlist); +// TIdC_INT X509V3_add_value_uPIdAnsiChar(const name: PIdAnsiChar; const Byte *value; STACK_OF(CONF_VALUE) **extlist); +// TIdC_INT X509V3_add_value_bool(const name: PIdAnsiChar; TIdC_INT asn1_bool; STACK_OF(CONF_VALUE) **extlist); +// TIdC_INT X509V3_add_value_int(const name: PIdAnsiChar; const aint: PASN1_INTEGER; STACK_OF(CONF_VALUE) **extlist); + //function i2s_ASN1_INTEGER(meth: PX509V3_EXT_METHOD; const aint: PASN1_INTEGER): PIdAnsiChar; + //function s2i_ASN1_INTEGER(meth: PX509V3_EXT_METHOD; const value: PIdAnsiChar): PASN1_INTEGER; + //function i2s_ASN1_ENUMERATED(meth: PX509V3_EXT_METHOD; const aint: PASN1_ENUMERATED): PIdAnsiChar; + //function i2s_ASN1_ENUMERATED_TABLE(meth: PX509V3_EXT_METHOD; const aint: PASN1_ENUMERATED): PIdAnsiChar; + //function X509V3_EXT_add(ext: PX509V3_EXT_METHOD): TIdC_INT; + //function X509V3_EXT_add_list(extlist: PX509V3_EXT_METHOD): TIdC_INT; + function X509V3_EXT_add_alias(nid_to: TIdC_INT; nid_from: TIdC_INT): TIdC_INT; + procedure X509V3_EXT_cleanup; + + //function X509V3_EXT_get(ext: PX509_EXTENSION): PX509V3_EXT_METHOD; + //function X509V3_EXT_get_nid(nid: TIdC_INT): PX509V3_EXT_METHOD; + function X509V3_add_standard_extensions: TIdC_INT; +// STACK_OF(CONF_VALUE) *X509V3_parse_list(const line: PIdAnsiChar); + function X509V3_EXT_d2i(ext: PX509_EXTENSION): Pointer; +// void *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x; nid: TIdC_INT; TIdC_INT *crit; TIdC_INT *idx); + + function X509V3_EXT_i2d(ext_nid: TIdC_INT; crit: TIdC_INT; ext_struc: Pointer): PX509_EXTENSION; +// TIdC_INT X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x; nid: TIdC_INT; value: Pointer; crit: TIdC_INT; TIdC_ULONG flags); + +// void X509V3_EXT_val_prn(out_: PBIO; STACK_OF(CONF_VALUE) *val; indent: TIdC_INT; TIdC_INT ml); + function X509V3_EXT_print(out_: PBIO; ext: PX509_EXTENSION; flag: TIdC_ULONG; indent: TIdC_INT): TIdC_INT; +// TIdC_INT X509V3_extensions_print(out_: PBIO; const PIdAnsiChar *title; const STACK_OF(X509_EXTENSION) *exts; flag: TIdC_ULONG; indent: TIdC_INT); + + function X509_check_ca(x: PX509): TIdC_INT; + function X509_check_purpose(x: PX509; id: TIdC_INT; ca: TIdC_INT): TIdC_INT; + function X509_supported_extension(ex: PX509_EXTENSION): TIdC_INT; + function X509_PURPOSE_set(p: PIdC_INT; purpose: TIdC_INT): TIdC_INT; + function X509_check_issued(issuer: PX509; subject: PX509): TIdC_INT; + function X509_check_akid(issuer: PX509; akid: PAUTHORITY_KEYID): TIdC_INT; + procedure X509_set_proxy_flag(x: PX509); + procedure X509_set_proxy_pathlen(x: PX509; l: TIdC_LONG); + function X509_get_proxy_pathlen(x: PX509): TIdC_LONG; + + function X509_get_extension_flags(x: PX509): TIdC_UINT32; + function X509_get_key_usage(x: PX509): TIdC_UINT32; + function X509_get_extended_key_usage(x: PX509): TIdC_UINT32; + function X509_get0_subject_key_id(x: PX509): PASN1_OCTET_STRING; + function X509_get0_authority_key_id(x: PX509): PASN1_OCTET_STRING; + //function X509_get0_authority_issuer(x: PX509): PGENERAL_NAMES; + function X509_get0_authority_serial(x: PX509): PASN1_INTEGER; + + function X509_PURPOSE_get_count: TIdC_INT; + function X509_PURPOSE_get0(idx: TIdC_INT): PX509_PURPOSE; + function X509_PURPOSE_get_by_sname(const sname: PIdAnsiChar): TIdC_INT; + function X509_PURPOSE_get_by_id(id: TIdC_INT): TIdC_INT; +// TIdC_INT X509_PURPOSE_add(id: TIdC_INT, TIdC_INT trust, flags: TIdC_INT, TIdC_INT (*ck) (const X509_PURPOSE *, const X509 *, TIdC_INT), const name: PIdAnsiChar, const sname: PIdAnsiChar, void *arg); + function X509_PURPOSE_get0_name(const xp: PX509_PURPOSE): PIdAnsiChar; + function X509_PURPOSE_get0_sname(const xp: PX509_PURPOSE): PIdAnsiChar; + function X509_PURPOSE_get_trust(const xp: PX509_PURPOSE): TIdC_INT; + procedure X509_PURPOSE_cleanup; + function X509_PURPOSE_get_id(const v1: PX509_PURPOSE): TIdC_INT; + +// STACK_OF(OPENSSL_STRING) *X509_get1_email(x: PX509); +// STACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x); +// void X509_email_free(STACK_OF(OPENSSL_STRING) *sk); +// STACK_OF(OPENSSL_STRING) *X509_get1_ocsp(x: PX509); + + function X509_check_host(x: PX509; const chk: PIdAnsiChar; chklen: TIdC_SIZET; flags: TIdC_UINT; peername: PPIdAnsiChar): TIdC_INT; + function X509_check_email(x: PX509; const chk: PIdAnsiChar; chklen: TIdC_SIZET; flags: TIdC_UINT): TIdC_INT; + function X509_check_ip(x: PX509; const chk: PByte; chklen: TIdC_SIZET; flags: TIdC_UINT): TIdC_INT; + function X509_check_ip_asc(x: PX509; const ipasc: PIdAnsiChar; flags: TIdC_UINT): TIdC_INT; + + function a2i_IPADDRESS(const ipasc: PIdAnsiChar): PASN1_OCTET_STRING; + function a2i_IPADDRESS_NC(const ipasc: PIdAnsiChar): PASN1_OCTET_STRING; +// TIdC_INT X509V3_NAME_from_section(X509_NAME *nm; STACK_OF(CONF_VALUE) *dn_sk; TIdC_ULONG chtype); + + procedure X509_POLICY_NODE_print(out_: PBIO; node: PX509_POLICY_NODE; indent: TIdC_INT); +// DEFINE_STACK_OF(X509_POLICY_NODE) + + (* + * Utilities to construct and extract values from RFC3779 extensions, + * since some of the encodings (particularly for IP address prefixes + * and ranges) are a bit tedious to work with directly. + *) + //function X509v3_asid_add_inherit(asid: PASIdentifiers; which: TIdC_INT): TIdC_INT; + //function X509v3_asid_add_id_or_range(asid: PASIdentifiers; which: TIdC_INT; min: PASN1_INTEGER; max: PASN1_INTEGER): TIdC_INT; + //function X509v3_addr_add_inherit(addr: PIPAddrBlocks; const afi: TIdC_UINT; const safi: PIdC_UINT): TIdC_INT; + //function X509v3_addr_add_prefix(addr: PIPAddrBlocks; const afi: TIdC_UINT; const safi: PIdC_UINT; a: PByte; const prefixlen: TIdC_INT): TIdC_INT; + //function X509v3_addr_add_range(addr: PIPAddrBlocks; const afi: TIdC_UINT; const safi: PIdC_UINT; min: PByte; max: PByte): TIdC_INT; + //function X509v3_addr_get_afi(const f: PIPAddressFamily): TIdC_UINT; + function X509v3_addr_get_range(aor: PIPAddressOrRange; const afi: TIdC_UINT; min: PByte; max: Byte; const length: TIdC_INT): TIdC_INT; + + (* + * Canonical forms. + *) + //function X509v3_asid_is_canonical(asid: PASIdentifiers): TIdC_INT; + //function X509v3_addr_is_canonical(addr: PIPAddrBlocks): TIdC_INT; + //function X509v3_asid_canonize(asid: PASIdentifiers): TIdC_INT; + //function X509v3_addr_canonize(addr: PIPAddrBlocks): TIdC_INT; + + (* + * Tests for inheritance and containment. + *) + //function X509v3_asid_inherits(asid: PASIdentifiers): TIdC_INT; + //function X509v3_addr_inherits(addr: PIPAddrBlocks): TIdC_INT; + //function X509v3_asid_subset(a: PASIdentifiers; b: PASIdentifiers): TIdC_INT; + //function X509v3_addr_subset(a: PIPAddrBlocks; b: PIPAddrBlocks): TIdC_INT; + + (* + * Check whether RFC 3779 extensions nest properly in chains. + *) + function X509v3_asid_validate_path(v1: PX509_STORE_CTX): TIdC_INT; + function X509v3_addr_validate_path(v1: PX509_STORE_CTX): TIdC_INT; +// TIdC_INT X509v3_asid_validate_resource_set(STACK_OF(X509) *chain; ASIdentifiers *ext; TIdC_INT allow_inheritance); +// TIdC_INT X509v3_addr_validate_resource_set(STACK_OF(X509) *chain; IPAddrBlocks *ext; TIdC_INT allow_inheritance); + + +// DEFINE_STACK_OF(ASN1_STRING) + + (* + * Admission Syntax + *) + function NAMING_AUTHORITY_get0_authorityId(const n: PNAMING_AUTHORITY): PASN1_OBJECT; + function NAMING_AUTHORITY_get0_authorityURL(const n: PNAMING_AUTHORITY): PASN1_IA5STRING; + function NAMING_AUTHORITY_get0_authorityText(const n: PNAMING_AUTHORITY): PASN1_STRING; + procedure NAMING_AUTHORITY_set0_authorityId(n: PNAMING_AUTHORITY; namingAuthorityId: PASN1_OBJECT); + procedure NAMING_AUTHORITY_set0_authorityURL(n: PNAMING_AUTHORITY; namingAuthorityUrl: PASN1_IA5STRING); + procedure NAMING_AUTHORITY_set0_authorityText(n: PNAMING_AUTHORITY; namingAuthorityText: PASN1_STRING); + + function ADMISSION_SYNTAX_get0_admissionAuthority(const as_: ADMISSION_SYNTAX): PGENERAL_NAME; + procedure ADMISSION_SYNTAX_set0_admissionAuthority(as_: ADMISSION_SYNTAX; aa: PGENERAL_NAME); +// const STACK_OF(ADMISSIONS) *ADMISSION_SYNTAX_get0_contentsOfAdmissions(const as_: ADMISSION_SYNTAX); +// void ADMISSION_SYNTAX_set0_contentsOfAdmissions(as_: ADMISSION_SYNTAX; STACK_OF(ADMISSIONS) *a); + function ADMISSIONS_get0_admissionAuthority(const a: PADMISSIONS): PGENERAL_NAME; + procedure ADMISSIONS_set0_admissionAuthority(a: PADMISSIONS; aa: PGENERAL_NAME); + function ADMISSIONS_get0_namingAuthority(const a: PADMISSIONS): PNAMING_AUTHORITY; + procedure ADMISSIONS_set0_namingAuthority(a: PADMISSIONS; na: PNAMING_AUTHORITY); + //function ADMISSIONS_get0_professionInfos(const a: PADMISSIONS): PPROFESSION_INFOS; + //procedure ADMISSIONS_set0_professionInfos(a: PADMISSIONS; pi: PPROFESSION_INFOS); + function PROFESSION_INFO_get0_addProfessionInfo(const pi: PPROFESSION_INFO): PASN1_OCTET_STRING; + procedure PROFESSION_INFO_set0_addProfessionInfo(pi: PPROFESSION_INFO; aos: PASN1_OCTET_STRING); + function PROFESSION_INFO_get0_namingAuthority(const pi: PPROFESSION_INFO): PNAMING_AUTHORITY; + procedure PROFESSION_INFO_set0_namingAuthority(pi: PPROFESSION_INFO; na: PNAMING_AUTHORITY); +// const STACK_OF(ASN1_STRING) *PROFESSION_INFO_get0_professionItems(const pi: PPROFESSION_INFO); +// void PROFESSION_INFO_set0_professionItems(pi: PPROFESSION_INFO; STACK_OF(ASN1_STRING) *as); +// const STACK_OF(ASN1_OBJECT) *PROFESSION_INFO_get0_professionOIDs(const pi: PPROFESSION_INFO); +// void PROFESSION_INFO_set0_professionOIDs(pi: PPROFESSION_INFO; STACK_OF(ASN1_OBJECT) *po); + function PROFESSION_INFO_get0_registrationNumber(const pi: PPROFESSION_INFO): PASN1_PRINTABLESTRING; + procedure PROFESSION_INFO_set0_registrationNumber(pi: PPROFESSION_INFO; rn: PASN1_PRINTABLESTRING); + + +implementation + +end. diff --git a/OpenSSLHdr_gen/sslheaders_source/tmp.hspas b/OpenSSLHdr_gen/sslheaders_source/tmp.hspas new file mode 100644 index 000000000..ffecc85dc --- /dev/null +++ b/OpenSSLHdr_gen/sslheaders_source/tmp.hspas @@ -0,0 +1,4 @@ + function SSL_get_app_data(const ssl: PSSL): Pointer ; {removed 1.1.1} + function SSL_set_app_data(ssl: PSSL; data: Pointer): TIdC_INT; {removed 1.1.1} +function SSL_set_app_data(ssl: PSSL; data: Pointer): TIdC_INT; + diff --git a/fpc/runtime/core/Makefile.fpc b/fpc/runtime/core/Makefile.fpc new file mode 100644 index 000000000..bda1a8a89 --- /dev/null +++ b/fpc/runtime/core/Makefile.fpc @@ -0,0 +1,21 @@ +[package] +name=indycore +version=$(INDY_VERSION) +main=indy + +[requires] +packages=indysystem + +[compiler] +options= -MDelphi $(OPT) -Scghi -CX -Ur -Xs -vew +unittargetdir= ../../units/$(CPU_TARGET)-$(OS_TARGET) +includedir=../../includes +unitdir=. + +[target] +units=indycorefpc + +[install] +fpcpackage=y +fpcsubdir=packages/extra +buildunit=indycorefpc diff --git a/fpc/runtime/protocols/Makefile.fpc b/fpc/runtime/protocols/Makefile.fpc new file mode 100644 index 000000000..0d1bf0961 --- /dev/null +++ b/fpc/runtime/protocols/Makefile.fpc @@ -0,0 +1,21 @@ +[package] +name=indyprotocols +version=$(INDY_VERSION) +main=indy + +[requires] +packages=indycore + +[compiler] +options= -MDelphi $(OPT) -Scghi -CX -Ur -Xs -vew +unittargetdir= ../../units/$(CPU_TARGET)-$(OS_TARGET) +includedir=../../includes +unitdir=.:opensslHdrs + +[target] +units=indyprotocolsfpc + +[install] +fpcpackage=y +fpcsubdir=packages/extra +buildunit=indyprotocolsfpc diff --git a/fpc/runtime/system/Makefile.fpc b/fpc/runtime/system/Makefile.fpc new file mode 100644 index 000000000..e632245d8 --- /dev/null +++ b/fpc/runtime/system/Makefile.fpc @@ -0,0 +1,21 @@ +[package] +name=indysystem +version=$(INDY_VERSION) +main=indy + +[requires] +packages=fcl-base + +[compiler] +options= -MDelphi $(OPT) -Scghi -CX -Ur -Xs -vew +unittargetdir= ../../units/$(CPU_TARGET)-$(OS_TARGET) +includedir=../../includes +unitdir=. + +[target] +units=indysystemfpc + +[install] +fpcpackage=y +fpcsubdir=packages/extra +buildunit=indysystemfpc From 9ee16ddc4544308a3473a8c0aa7f74761ea9fdd0 Mon Sep 17 00:00:00 2001 From: tony062017 Date: Tue, 19 Mar 2024 08:52:27 +0000 Subject: [PATCH 04/30] tests added --- OpenSSLHdr_gen/sslheaders_source/tmp.hspas | 4 - Test/OpenSSL/README.OpenSSL.Tests.txt | 55 + Test/OpenSSL/openssl-client/TestClient.pas | 371 ++++++ .../openssl-client/delphi_openssl_client.dpr | 22 + .../delphi_openssl_client.dproj | 115 ++ .../OpenSSL/openssl-client/fpc_openssl_client | Bin 0 -> 10113768 bytes .../openssl-client/fpc_openssl_client.lpi | 66 ++ .../openssl-client/fpc_openssl_client.lpr | 20 + .../openssl-client/fpc_openssl_client.lps | 1045 +++++++++++++++++ Test/OpenSSL/openssl-server/cacerts/ca.pem | 37 + .../OpenSSL/openssl-server/cacerts/d072eebc.0 | 37 + .../OpenSSL/openssl-server/certs/myclient.p12 | Bin 0 -> 5352 bytes .../OpenSSL/openssl-server/certs/myserver.pem | 104 ++ .../openssl-server/certs/myserverkey.pem | 30 + Test/OpenSSL/openssl-server/createpki.sh | 245 ++++ .../openssl-server/delphi_openssl_server.dpr | 19 + .../delphi_openssl_server.dproj | 113 ++ .../OpenSSL/openssl-server/fpc_openssl_server | Bin 0 -> 10263800 bytes .../openssl-server/fpc_openssl_server.lpi | 62 + .../openssl-server/fpc_openssl_server.lpr | 19 + .../openssl-server/fpc_openssl_server.lps | 483 ++++++++ Test/OpenSSL/openssl-server/testserver.pas | 413 +++++++ 22 files changed, 3256 insertions(+), 4 deletions(-) delete mode 100644 OpenSSLHdr_gen/sslheaders_source/tmp.hspas create mode 100644 Test/OpenSSL/README.OpenSSL.Tests.txt create mode 100644 Test/OpenSSL/openssl-client/TestClient.pas create mode 100644 Test/OpenSSL/openssl-client/delphi_openssl_client.dpr create mode 100644 Test/OpenSSL/openssl-client/delphi_openssl_client.dproj create mode 100755 Test/OpenSSL/openssl-client/fpc_openssl_client create mode 100644 Test/OpenSSL/openssl-client/fpc_openssl_client.lpi create mode 100644 Test/OpenSSL/openssl-client/fpc_openssl_client.lpr create mode 100644 Test/OpenSSL/openssl-client/fpc_openssl_client.lps create mode 100644 Test/OpenSSL/openssl-server/cacerts/ca.pem create mode 100644 Test/OpenSSL/openssl-server/cacerts/d072eebc.0 create mode 100644 Test/OpenSSL/openssl-server/certs/myclient.p12 create mode 100644 Test/OpenSSL/openssl-server/certs/myserver.pem create mode 100644 Test/OpenSSL/openssl-server/certs/myserverkey.pem create mode 100644 Test/OpenSSL/openssl-server/createpki.sh create mode 100644 Test/OpenSSL/openssl-server/delphi_openssl_server.dpr create mode 100644 Test/OpenSSL/openssl-server/delphi_openssl_server.dproj create mode 100755 Test/OpenSSL/openssl-server/fpc_openssl_server create mode 100644 Test/OpenSSL/openssl-server/fpc_openssl_server.lpi create mode 100644 Test/OpenSSL/openssl-server/fpc_openssl_server.lpr create mode 100644 Test/OpenSSL/openssl-server/fpc_openssl_server.lps create mode 100644 Test/OpenSSL/openssl-server/testserver.pas diff --git a/OpenSSLHdr_gen/sslheaders_source/tmp.hspas b/OpenSSLHdr_gen/sslheaders_source/tmp.hspas deleted file mode 100644 index ffecc85dc..000000000 --- a/OpenSSLHdr_gen/sslheaders_source/tmp.hspas +++ /dev/null @@ -1,4 +0,0 @@ - function SSL_get_app_data(const ssl: PSSL): Pointer ; {removed 1.1.1} - function SSL_set_app_data(ssl: PSSL; data: Pointer): TIdC_INT; {removed 1.1.1} -function SSL_set_app_data(ssl: PSSL; data: Pointer): TIdC_INT; - diff --git a/Test/OpenSSL/README.OpenSSL.Tests.txt b/Test/OpenSSL/README.OpenSSL.Tests.txt new file mode 100644 index 000000000..b454ba898 --- /dev/null +++ b/Test/OpenSSL/README.OpenSSL.Tests.txt @@ -0,0 +1,55 @@ +README OPENSSL TESTS + +The test/openssl directory contains two test programs used to demonstrate correct operation of, respectively, an OpenSSL Client and an OpenSSL Server. The first also tests use of a public PKI, while the second tests use of a private PKI. + +Variants of the test programs are available for both Delphi and FPC. + +TEST 1: openssl-client + +The test program is a console mode application and uses TIdHttp to provide the test application and performs a simple “GET” operation to return an print a remote text file. The remote text file is located at: + +https://www.mwasoftware.co.uk/openssltest.txt + +and contains a single line of text: “Success!” + +The program starts by reporting the OpenSSL library version string. + +The test program then “gets” the text file twice, The first time uses https without peer (the remote server) authentication. The second time requires authentication. In both cases, the TLS protocol version used is reported and the cipher suite in use. + +When authentication is performed, the remote side certificate and certificate chain is reported, For each validated certificate, the subject and issuer are reported. + +The test program has the following command line options: + +[fpc|delphi]_openssl_client [-h] [-n] [-l ] [-L] [OpenSSL lib dir] + +-h Prints out the programs purpose and command line syntax, and exits. + +-n Windows Only: By default the program prompts the user to press return before continuing. When the program is run from the IDE, this is to stop the terminal window being closed once the test is complete. If '-n' is present then the program runs to completion without prompting the user. + +-l Linux only. This sets the SSLOptions.VerifyDirs to . It is used when OpenSSL has not been installed and linked to the default root certificate directory e.g. when testing a recently compiled version of OpenSSL. + +-L Linux Only. This searches through well known locations to find the system default root certificate directory. When found, SSLOptions.VerifyDirs is to this location. + +"OpenSSL lib dir". When a directory path is present on the command line, it is assumed to be the path to the OpenSSL lib directory. The OpenSSL shared libraries are loaded from this location. If not present, then the system default installation of OpenSSL is used. + +TEST 2: openssl-server + +The test program is a console mode application and uses TIdHttp and TIdHttpServer (in a separate thread) to provide the test application; the client performs a simple GET operation on the server. In this case, the server returns: The received Get Command, the remote node's (client's) IP Address, and the text “Success!”, each on successive lines. + +The program starts by reporting the OpenSSL library version string. + +The test program then “gets” the text file twice, The first time uses https with peer (the remote server) authentication. The second time requires both client and server authentication. + +When authentication is performed, the remote side certificate and certificate chain is reported, For each validated certificate, the subject and issuer are reported. + +The test program has the following command line options: + +[fpc|delphi]_openssl_server [-h] [-n] [OpenSSL lib Dir] + +-h Prints out the programs purpose and command line syntax, and exits. + +-n Windows Only: By default the program prompts the user to press return before continuing. When the program is run from the IDE, this is to stop the terminal window being closed once the test is complete. If '-n' is present then the program runs to completion without prompting the user. + +"OpenSSL lib dir". When a directory path is present on the command line, it is assumed to be the path to the OpenSSL lib directory. The OpenSSL shared libraries are loaded from this location. If not present, then the system default installation of OpenSSL is used. + +Note: the private PKI used by Test 2 is contained in the cacerts and certs sub-directories. It can be regenerated using the “createpki.sh” shell script - there should be no need to do this when running the test program. The provided certificates should be sufficient. diff --git a/Test/OpenSSL/openssl-client/TestClient.pas b/Test/OpenSSL/openssl-client/TestClient.pas new file mode 100644 index 000000000..f7cbd0771 --- /dev/null +++ b/Test/OpenSSL/openssl-client/TestClient.pas @@ -0,0 +1,371 @@ +unit TestClient; + +{$IFDEF MSWINDOWS} +{$DEFINE WINDOWS} +{$ENDIF} + +{$IFDEF CPU386} +{$DEFINE CPU32} +{$ENDIF} + +{$IFDEF CPUX64} +{$DEFINE CPU64} +{$ENDIF} + +{$IFDEF FPC} +{$mode delphi} +{$codepage utf8} +{$ENDIF} + +interface + +uses + Classes, SysUtils, {$IFDEF FPC}CustApp,{$ENDIF}IdIOHandler, IdHTTP, + IdSSL, IdSSLOpenSSL, IdSSLOpenSSLLoader; + +const + remoteSource = 'https://www.mwasoftware.co.uk/openssltest.txt'; + sGetException = 'Error: Status = %d returned when GETting %s'; + rcAccept = 'Application/txt'; + {$if not declared(DirectorySeparator)} + DirectorySeparator = '\'; + {$ifend} + {$IFDEF UNIX} + SSLCertsDirs = '/etc/ssl/certs' {Debian and friends} + + ':/etc/pki/tls/certs' {Fedora/RHEL6} + + ':/etc/ssl' {OpenSUSE} + + ':/etc/pki/tks' {OpenELEC} + + ':/etc/pki/ca-trust' {CENTOS/RHEL 7} + + ':/var/ssl/certs' {AIX} ; + {$ENDIF} + + +type + {$if not declared(TCustomApplication)} + {$DEFINE LOCAL_TCUSTOMAPP} + TCustomApplication = class(TComponent) + private + FTitle: string; + protected + procedure DoRun; virtual; abstract; + public + function Exename: string; + procedure Run; + procedure Terminate; + property Title: string read FTitle write FTitle; + end; + {$IFEND} + + { TBasicHttpsClient } + + TBasicHttpsClient = class(TCustomApplication) + private + FSSLHandler: TIdSSLIOHandlerSocketOpenSSL; + FNoVerification: boolean; + FVerifyDirs: string; + FPromptOnExit: boolean; + FOpenSSLLibDir: string; + function DoTest: integer; + function GetSSLHandler(AOwner: TComponent): TIdIOHandler; + function IsDirectoryEmpty(Path: string): boolean; + {$IFDEF UNIX} + function FindOpenSSLCertsDir: string; + {$ENDIF} + function CertificateType(Certificate: TIdX509): string; + function ClientVerifyPeer(Certificate: TIdX509; AOk: Boolean; ADepth, AError: Integer): Boolean; + procedure ShowCertificate(Certificate : TIdX509); + protected + procedure DoRun; override; + public + constructor Create(TheOwner: TComponent); override; + destructor Destroy; override; + procedure WriteHelp; virtual; + end; + + { TResponseTextBuffer } + + TResponseTextBuffer = class(TMemoryStream) + private + function GetDataString: AnsiString; + public + property DataString: AnsiString read GetDataString; + end; + + +implementation + +{$IFDEF LOCAL_TCUSTOMAPP} +function TCustomApplication.Exename: string; +begin + Result := ParamStr(0); +end; + +procedure TCustomApplication.Run; +begin + try + DoRun; + except on E: Exception do + writeln(E.Message); + end; +end; + +procedure TCustomApplication.Terminate; +begin + +end; +{$ENDIF} + +{ TResponseTextBuffer } + +function TResponseTextBuffer.GetDataString: AnsiString; +begin + SetLength(Result,Size); + Position := 0; + Read(Result[1],Size); + SetCodePage(RawByteString(Result), DefaultSystemCodePage, False); +end; + + +{ TBasicHttpsClient } + +function TBasicHttpsClient.DoTest: integer; +var httpClient: TIdHttp; + ResponseStream: TResponseTextBuffer; +begin + httpClient := TIdHTTP.Create(nil); + try + httpClient.HTTPOptions := httpClient.HTTPOptions + [hoNoProtocolErrorException, + hoKeepOrigProtocol, + hoWantProtocolErrorContent]; + httpClient.ProtocolVersion := pv1_1; + httpClient.Request.CustomHeaders.Clear; + httpClient.Request.Accept := rcAccept; + httpClient.Request.BasicAuthentication:= false; + httpClient.HandleRedirects := true; + + httpClient.Request.UserAgent :=' Mozilla/5.0 (compatible; Indy Library)'; + httpClient.Request.ContentType := 'application/x-www-form-urlencoded'; + httpClient.IOHandler := GetSSLHandler(httpClient); + + httpClient.ConnectTimeout := 5000; + httpClient.ReadTimeout := 20000; + ResponseStream := TResponseTextBuffer.Create; + try + httpClient.Get(remoteSource,ResponseStream); + if assigned (FSSLHandler.SSLSocket) then + writeln('Using SSL/TLS Version ' + FSSLHandler.SSLSocket.SSLProtocolVersionStr, ' with cipher ',FSSLHandler.SSLSocket.Cipher.Name); + Result := httpClient.ResponseCode; + if Result = 200 then + begin + writeln('Remote Source returned:'); + writeln(ResponseStream.DataString); + end + else + writeln(Format(sGetException,[Result,remoteSource])); + finally + ResponseStream.Free; + end; + finally + httpClient.Free; + end; +end; + +function TBasicHttpsClient.GetSSLHandler(AOwner: TComponent): TIdIOHandler; +var IOHandler: TIdSSLIOHandlerSocketOpenSSL; +begin + IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(AOwner); + IOHandler.SSLOptions.Mode:= sslmClient; + {Linux: VerifyDirs set up to defaults + Windows: Default cert store copied into OpenSSL X509 store} + if not FNoVerification then + begin + IOHandler.SSLOptions.VerifyMode := [sslvrfPeer, sslvrfFailIfNoPeerCert]; + IOHandler.SSLOptions.VerifyDepth := 100; + {$IFDEF UNIX} + if FVerifyDirs <> '' then + begin + IOHandler.SSLOptions.VerifyDirs := FVerifyDirs; + writeln('Using certs from ', IOHandler.SSLOptions.VerifyDirs); + end; + {$ENDIF} + end + else + IOHandler.SSLOptions.VerifyMode := []; + IOHandler.OnVerifyPeer := ClientVerifyPeer; + FSSLHandler := IOHandler; + Result := IOHandler; +end; + +function TBasicHttpsClient.IsDirectoryEmpty(Path: string): boolean; +var Rslt: TSearchRec; +begin + Result := true; + if FindFirst(Path + DirectorySeparator + '*',faNormal or faSymLink,Rslt) = 0 then + begin + Result := false; + FindClose(Rslt); + end; +end; + +{$IFDEF UNIX} +function TBasicHttpsClient.FindOpenSSLCertsDir : string; +var SSLDirs: TStringList; + i : integer; +begin + Result := OpenSSLDir; + if Result <> '' then + Result := Result + '/certs'; + if (Result = '') or not DirectoryExists(Result) or IsDirectoryEmpty(Result) then + {See if we can find directory from list of known locations} + begin + SSLDirs := TStringList.Create; + try + SSLDirs.Delimiter := ':'; + SSLDirs.StrictDelimiter := true; + SSLDirs.DelimitedText := SSLCertsDirs; {Split list on delimiter} + for i := 0 to SSLDirs.Count - 1 do + if DirectoryExists(SSLDirs[i]) and not IsDirectoryEmpty(SSLDirs[i]) then + begin + Result := SSLDirs[i]; + break; + end; + finally + SSLDirs.Free; + end; + end; +end; +{$ENDIF} + +function TBasicHttpsClient.CertificateType(Certificate : TIdX509) : string; +begin + if Certificate.Issuer.Hash.C1 = Certificate.Subject.Hash.C1 then + Result := 'Root' + else + Result := 'Remote'; +end; + +function TBasicHttpsClient.ClientVerifyPeer(Certificate : TIdX509; + AOk : Boolean; ADepth , AError : Integer) : Boolean; +begin + writeln; + writeln('Client Side Verification'); + if AOK then + writeln(CertificateType(Certificate),' Certificate verification succeeded') + else + writeln(CertificateType(Certificate),' Certificate verification failed'); + ShowCertificate(certificate); + Result := AOK; +end; + +procedure TBasicHttpsClient.ShowCertificate(Certificate : TIdX509); +begin + writeln; + writeln('X.509 Certificate Details'); + writeln('Subject: ', Certificate.Subject.OneLine); + writeln('Issuer: ', Certificate.Issuer.OneLine); + writeln; +end; + +procedure TBasicHttpsClient.DoRun; + + procedure RunTest; + begin + writeln('Using ',OpenSSLVersion, ', OpenSSLDir: ', OpenSSLDir); + writeln('Getting ',remoteSource,' with no verification'); + FNoVerification := true; + DoTest; + FNoVerification := false; + writeln('Getting ',remoteSource,' with verification'); + writeln; + DoTest; +end; + +var i: integer; + +begin + FPromptOnExit := true; + try + // quick check parameters + i := 1; + while i <= ParamCount do + begin + if ParamStr(i) = '-h' then + begin + WriteHelp; + Terminate; + Exit; + end; + + if ParamStr(i) = '-n' then + FPromptOnExit := false + else + if (ParamStr(i) = '-l') and (i < ParamCount) then + begin + FVerifyDirs := ParamStr(i+1); + Inc(i); + if not DirectoryExists(FVerifyDirs) or IsDirectoryEmpty(FVerifyDirs) then + raise Exception.CreateFmt('%s is not a directory or is empty',[FVerifyDirs]); + end + {$IFDEF UNIX} + else + if ParamStr(i) = '-L' then + FVerifyDirs := FindOpenSSLCertsDir + {$ENDIF} + else + if DirectoryExists(ParamStr(i)) then + FOpenSSLLibDir := ParamStr(i) + else + raise Exception.CreateFmt('Unrecognised option - %s',[ParamStr(i)]); + Inc(i); + end; + + if GetOpenSSLLoader <> nil then + begin + if (FOpenSSLLibDir = '') or not IsDirectoryEmpty(FOpenSSLLibDir) then + begin + GetOpenSSLLoader.OpenSSLPath := FOpenSSLLibDir; + RunTest; + end + else + writeln('Directory ',FOpenSSLLibDir,' is empty!'); + end + else + RunTest; + + + {$IFDEF WINDOWS} + if FPromptOnExit then + begin + write('Press Return to continue'); + readln; //stop console disappearing until user presses return} + end; + {$ENDIF} + + except on E: Exception do + writeln('Error: ', E.Message); + end; + Terminate; +end; + +constructor TBasicHttpsClient.Create(TheOwner: TComponent); +begin + inherited Create(TheOwner); +// StopOnException:=True; +end; + +destructor TBasicHttpsClient.Destroy; +begin + inherited Destroy; +end; + +procedure TBasicHttpsClient.WriteHelp; +begin + { add your help code here } + writeln('Basic Https Client'); + writeln('Gets text file from ' + remoteSource + ' and prints it'); + writeln('Usage: ', ExtractFileName(ExeName), ' [-h] [-n] [-l ] [-L] [OpenSSL lib dir]') +end; + + +end. + diff --git a/Test/OpenSSL/openssl-client/delphi_openssl_client.dpr b/Test/OpenSSL/openssl-client/delphi_openssl_client.dpr new file mode 100644 index 000000000..cd82ad7b4 --- /dev/null +++ b/Test/OpenSSL/openssl-client/delphi_openssl_client.dpr @@ -0,0 +1,22 @@ +program delphi_openssl_client; + +{$APPTYPE CONSOLE} + +{$R *.res} + +uses + System.SysUtils, + TestClient in 'TestClient.pas', + IdSSLOpenSSL in '..\..\..\runtime\protocols\IdSSLOpenSSL.pas', + IdSSLOpenSSLLoader in '..\..\..\runtime\protocols\IdSSLOpenSSLLoader.pas'; + +var + Application: TBasicHttpsClient; +begin + Application:=TBasicHttpsClient.Create(nil); + Application.Title:='Basic Https Client Test'; + Application.Run; + Application.Free; +end. + +end. diff --git a/Test/OpenSSL/openssl-client/delphi_openssl_client.dproj b/Test/OpenSSL/openssl-client/delphi_openssl_client.dproj new file mode 100644 index 000000000..4ff3eaadb --- /dev/null +++ b/Test/OpenSSL/openssl-client/delphi_openssl_client.dproj @@ -0,0 +1,115 @@ + + + {5A8CD527-7B80-4061-A9D5-6FB19B77DF32} + 18.1 + None + delphi_openssl_client.dpr + True + Debug + Win32 + 1 + Console + + + true + + + true + Base + true + + + true + Base + true + + + true + Cfg_1 + true + true + + + true + Base + true + + + delphi_openssl_client + System;Xml;Data;Datasnap;Web;Soap;$(DCC_Namespace) + .\$(Platform)\$(Config) + .\$(Platform)\$(Config) + false + false + false + false + false + + + Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace) + 1033 + CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments= + true + rtl;vcl;vclactnband;vcldsnap;IndyCore;IndySystem;vclx;bindcomp;tethering;svnui;appanalytics;dsnap;bindcompvcl;vclimg;vcltouch;VclSmp;vcldb;bindcompfmx;svn;bindengine;dbrtl;IndyProtocols;fmx;fmxdae;xmlrtl;fmxobj;vclwinx;fmxase;$(DCC_UsePackage) + + + DEBUG;$(DCC_Define) + true + false + true + true + true + + + ..\libs\1.0\i386 + . + C:\Users\A User\projects\Indy\test\openssl\openssl-client\Win32\Debug\Project1.exe + ..\..\..\includes;..\..\..\runtime\protocols\opensslHdrs;..\..\..\runtime\system;..\..\..\runtime\core;..\..\..\runtime\protocols;$(DCC_UnitSearchPath) + 1033 + ..\..\Indy\runtime\protocols\opensslHdrs;$(BRCC_IncludePath) + (None) + false + + + false + RELEASE;$(DCC_Define) + 0 + 0 + + + + MainSource + + + + + + Cfg_2 + Base + + + Base + + + Cfg_1 + Base + + + + Delphi.Personality.12 + Application + + + + delphi_openssl_client.dpr + + + + True + + + 12 + + + + diff --git a/Test/OpenSSL/openssl-client/fpc_openssl_client b/Test/OpenSSL/openssl-client/fpc_openssl_client new file mode 100755 index 0000000000000000000000000000000000000000..f94550f2d4e225e2e6eda09ab7ae7c5760466745 GIT binary patch literal 10113768 zcmeFa4V+wMdH+2#*?~<6%qAuh6k&m&2?Pujc?*yYW^~eKl_FcwiU9))sRS_W0`jnA z!zQ|uVQjRaM#VO@SgA#cHiYOuF|#3N7aHvZW4nO>1C90!6LF;1m&*Rwpm@O_DRJQn;Cu}fllYMk6;N$zhfHscS!Y|r}B z6gxjQfxoB3PL3VHbDgE>jovlYTxTcjF&13w-D7MVSCzZPe}7A&i6=cb=@L8M{#LI6 zhPtX;_1EOzx@*y|Ah^aF+-sFf>ehdbH8kmo=O(*c{L5o&u0g(PebelHEOuqhwe2s( zfmkfKM$73<;j1Uu`@*+AUUR)=gF|%2Eyr1UP)_VnxuRdL=$8ww4L-kuYrs$OME~yf z-`|^P;z`dUk3X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