summaryrefslogtreecommitdiff
path: root/packages/gnutls/src/gnutls.pp
diff options
context:
space:
mode:
authormichael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-01-07 19:59:22 +0000
committermichael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-01-07 19:59:22 +0000
commit8df6180c90f05c6469df614768bc166c10c4f8b1 (patch)
tree0f0a15a1a529d8c4c78ed7c878c743dc4fb487dd /packages/gnutls/src/gnutls.pp
parent6784dee67c0e0a4cf1394db7469581c4a0847840 (diff)
downloadfpc-8df6180c90f05c6469df614768bc166c10c4f8b1.tar.gz
* Add X509 functions and example from Silvio Clecio to generate private key
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@40800 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/gnutls/src/gnutls.pp')
-rw-r--r--packages/gnutls/src/gnutls.pp1256
1 files changed, 1191 insertions, 65 deletions
diff --git a/packages/gnutls/src/gnutls.pp b/packages/gnutls/src/gnutls.pp
index 3a16d8cdec..61d179da79 100644
--- a/packages/gnutls/src/gnutls.pp
+++ b/packages/gnutls/src/gnutls.pp
@@ -66,17 +66,6 @@ Const
GNUTLS_CIPHER_AES256_PGP_CFB = 207;
GNUTLS_CIPHER_TWOFISH_PGP_CFB = 208;
- // gnutls_pkcs_encrypt_flags_t
- GNUTLS_PKCS_PLAIN = 1;
- GNUTLS_PKCS_PKCS12_3DES = 1 shl 1;
- GNUTLS_PKCS_PKCS12_ARCFOUR = 1 shl 2;
- GNUTLS_PKCS_PKCS12_RC2_40 = 1 shl 3;
- GNUTLS_PKCS_PBES2_3DES = 1 shl 4;
- GNUTLS_PKCS_PBES2_AES_128 = 1 shl 5;
- GNUTLS_PKCS_PBES2_AES_192 = 1 shl 6;
- GNUTLS_PKCS_PBES2_AES_256 = 1 shl 7;
- GNUTLS_PKCS_NULL_PASSWORD = 1 shl 8;
- GNUTLS_PKCS_PBES2_DES = 1<<9;
// gnutls_kx_algorithm_t ;
@@ -379,20 +368,6 @@ Const
GNUTLS_EXT_MANDATORY = 3;
GNUTLS_EXT_NONE = 4;
- // enum gnutls_certificate_verify_flags {
- GNUTLS_VERIFY_DISABLE_CA_SIGN = 1 shl 0;
- GNUTLS_VERIFY_DO_NOT_ALLOW_SAME = 1 shl 2;
- GNUTLS_VERIFY_ALLOW_ANY_X509_V1_CA_CRT = 1 shl 3;
- GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD2 = 1 shl 4;
- GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD5 = 1 shl 5;
- GNUTLS_VERIFY_DISABLE_TIME_CHECKS = 1 shl 6;
- GNUTLS_VERIFY_DISABLE_TRUSTED_TIME_CHECKS = 1 shl 7;
- GNUTLS_VERIFY_DO_NOT_ALLOW_X509_V1_CA_CRT = 1 shl 8;
- GNUTLS_VERIFY_DISABLE_CRL_CHECKS = 1 shl 9;
- GNUTLS_VERIFY_ALLOW_UNSORTED_CHAIN = 1 shl 10;
- GNUTLS_VERIFY_DO_NOT_ALLOW_UNSORTED_CHAIN = 1 shl 11;
- GNUTLS_VERIFY_DO_NOT_ALLOW_WILDCARDS = 1 shl 12;
- GNUTLS_VERIFY_USE_TLS1_RSA = 1 shl 13;
// GNU TLS Error codes
GNUTLS_E_SUCCESS = 0;
@@ -582,6 +557,169 @@ Const
GNUTLS_E_UNIMPLEMENTED_FEATURE = -(1250);
GNUTLS_E_APPLICATION_ERROR_MAX = -(65000);
GNUTLS_E_APPLICATION_ERROR_MIN = -(65500);
+const
+ GNUTLS_OID_X520_COUNTRY_NAME = '2.5.4.6';
+ GNUTLS_OID_X520_ORGANIZATION_NAME = '2.5.4.10';
+ GNUTLS_OID_X520_ORGANIZATIONAL_UNIT_NAME = '2.5.4.11';
+ GNUTLS_OID_X520_COMMON_NAME = '2.5.4.3';
+ GNUTLS_OID_X520_LOCALITY_NAME = '2.5.4.7';
+ GNUTLS_OID_X520_STATE_OR_PROVINCE_NAME = '2.5.4.8';
+ GNUTLS_OID_X520_INITIALS = '2.5.4.43';
+ GNUTLS_OID_X520_GENERATION_QUALIFIER = '2.5.4.44';
+ GNUTLS_OID_X520_SURNAME = '2.5.4.4';
+ GNUTLS_OID_X520_GIVEN_NAME = '2.5.4.42';
+ GNUTLS_OID_X520_TITLE = '2.5.4.12';
+ GNUTLS_OID_X520_DN_QUALIFIER = '2.5.4.46';
+ GNUTLS_OID_X520_PSEUDONYM = '2.5.4.65';
+ GNUTLS_OID_X520_POSTALCODE = '2.5.4.17';
+ GNUTLS_OID_X520_NAME = '2.5.4.41';
+ GNUTLS_OID_LDAP_DC = '0.9.2342.19200300.100.1.25';
+ GNUTLS_OID_LDAP_UID = '0.9.2342.19200300.100.1.1';
+ GNUTLS_OID_PKCS9_EMAIL = '1.2.840.113549.1.9.1';
+ GNUTLS_OID_PKIX_DATE_OF_BIRTH = '1.3.6.1.5.5.7.9.1';
+ GNUTLS_OID_PKIX_PLACE_OF_BIRTH = '1.3.6.1.5.5.7.9.2';
+ GNUTLS_OID_PKIX_GENDER = '1.3.6.1.5.5.7.9.3';
+ GNUTLS_OID_PKIX_COUNTRY_OF_CITIZENSHIP = '1.3.6.1.5.5.7.9.4';
+ GNUTLS_OID_PKIX_COUNTRY_OF_RESIDENCE = '1.3.6.1.5.5.7.9.5';
+ GNUTLS_KP_TLS_WWW_SERVER = '1.3.6.1.5.5.7.3.1';
+ GNUTLS_KP_TLS_WWW_CLIENT = '1.3.6.1.5.5.7.3.2';
+ GNUTLS_KP_CODE_SIGNING = '1.3.6.1.5.5.7.3.3';
+ GNUTLS_KP_MS_SMART_CARD_LOGON = '1.3.6.1.4.1.311.20.2.2';
+ GNUTLS_KP_EMAIL_PROTECTION = '1.3.6.1.5.5.7.3.4';
+ GNUTLS_KP_TIME_STAMPING = '1.3.6.1.5.5.7.3.8';
+ GNUTLS_KP_OCSP_SIGNING = '1.3.6.1.5.5.7.3.9';
+ GNUTLS_KP_IPSEC_IKE = '1.3.6.1.5.5.7.3.17';
+ GNUTLS_KP_ANY = '2.5.29.37.0';
+ GNUTLS_OID_AIA = '1.3.6.1.5.5.7.1.1';
+ GNUTLS_OID_AD_OCSP = '1.3.6.1.5.5.7.48.1';
+ GNUTLS_OID_AD_CAISSUERS = '1.3.6.1.5.5.7.48.2';
+ GNUTLS_FSAN_SET = 0;
+ GNUTLS_FSAN_APPEND = 1;
+ GNUTLS_X509EXT_OID_SUBJECT_KEY_ID = '2.5.29.14';
+ GNUTLS_X509EXT_OID_KEY_USAGE = '2.5.29.15';
+ GNUTLS_X509EXT_OID_PRIVATE_KEY_USAGE_PERIOD = '2.5.29.16';
+ GNUTLS_X509EXT_OID_SAN = '2.5.29.17';
+ GNUTLS_X509EXT_OID_IAN = '2.5.29.18';
+ GNUTLS_X509EXT_OID_BASIC_CONSTRAINTS = '2.5.29.19';
+ GNUTLS_X509EXT_OID_NAME_CONSTRAINTS = '2.5.29.30';
+ GNUTLS_X509EXT_OID_CRL_DIST_POINTS = '2.5.29.31';
+ GNUTLS_X509EXT_OID_CRT_POLICY = '2.5.29.32';
+ GNUTLS_X509EXT_OID_AUTHORITY_KEY_ID = '2.5.29.35';
+ GNUTLS_X509EXT_OID_EXTENDED_KEY_USAGE = '2.5.29.37';
+ GNUTLS_X509EXT_OID_AUTHORITY_INFO_ACCESS = '1.3.6.1.5.5.7.1.1';
+ GNUTLS_X509EXT_OID_PROXY_CRT_INFO = '1.3.6.1.5.5.7.1.14';
+ GNUTLS_NAME_CONSTRAINTS_FLAG_APPEND = 1;
+
+{ was #define dname def_expr }
+ GNUTLS_MAX_QUALIFIERS = 8;
+ GNUTLS_X509_DN_OID_RETURN_OID = 1;
+ GNUTLS_VFLAGS_PROFILE_MASK = $ff000000;
+
+ GNUTLS_TL_VERIFY_CRL = 1;
+ GNUTLS_TL_USE_IN_TLS = 1 shl 1;
+ GNUTLS_TL_NO_DUPLICATES = 1 shl 2;
+ GNUTLS_TL_NO_DUPLICATE_KEY = 1 shl 3;
+ GNUTLS_TL_GET_COPY = 1 shl 4;
+
+ GNUTLS_PKCS7_ATTR_ENCODE_OCTET_STRING = 1;
+
+ //gnutls_info_access_what_t = Longint;
+ GNUTLS_IA_ACCESSMETHOD_OID = 1;
+ GNUTLS_IA_ACCESSLOCATION_GENERALNAME_TYPE = 2;
+ GNUTLS_IA_URI = 106;
+ GNUTLS_IA_UNKNOWN = 10000;
+ GNUTLS_IA_OCSP_URI = 10006;
+ GNUTLS_IA_CAISSUERS_URI = 10106;
+
+ // gnutls_x509_crl_reason_flags_t = Longint;
+ GNUTLS_CRL_REASON_UNSPECIFIED = 0;
+ GNUTLS_CRL_REASON_PRIVILEGE_WITHDRAWN = 1;
+ GNUTLS_CRL_REASON_CERTIFICATE_HOLD = 2;
+ GNUTLS_CRL_REASON_CESSATION_OF_OPERATION = 4;
+ GNUTLS_CRL_REASON_SUPERSEDED = 8;
+ GNUTLS_CRL_REASON_AFFILIATION_CHANGED = 16;
+ GNUTLS_CRL_REASON_CA_COMPROMISE = 32;
+ GNUTLS_CRL_REASON_KEY_COMPROMISE = 64;
+ GNUTLS_CRL_REASON_UNUSED = 128;
+ GNUTLS_CRL_REASON_AA_COMPROMISE = 32768;
+ GNUTLS_CRL_REASON_SUPERSEEDED = GNUTLS_CRL_REASON_SUPERSEDED;
+
+ // gnutls_x509_qualifier_t = Longint;
+ GNUTLS_X509_QUALIFIER_UNKNOWN = 0;
+ GNUTLS_X509_QUALIFIER_URI = 1;
+ GNUTLS_X509_QUALIFIER_NOTICE = 2;
+
+ // gnutls_certificate_verify_flags
+ GNUTLS_VERIFY_DISABLE_CA_SIGN = 1 shl 0;
+ GNUTLS_VERIFY_DO_NOT_ALLOW_SAME = 1 shl 2;
+ GNUTLS_VERIFY_ALLOW_ANY_X509_V1_CA_CRT = 1 shl 3;
+ GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD2 = 1 shl 4;
+ GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD5 = 1 shl 5;
+ GNUTLS_VERIFY_DISABLE_TIME_CHECKS = 1 shl 6;
+ GNUTLS_VERIFY_DISABLE_TRUSTED_TIME_CHECKS = 1 shl 7;
+ GNUTLS_VERIFY_DO_NOT_ALLOW_X509_V1_CA_CRT = 1 shl 8;
+ GNUTLS_VERIFY_DISABLE_CRL_CHECKS = 1 shl 9;
+ GNUTLS_VERIFY_ALLOW_UNSORTED_CHAIN = 1 shl 10;
+ GNUTLS_VERIFY_DO_NOT_ALLOW_UNSORTED_CHAIN = 1 shl 11;
+ GNUTLS_VERIFY_DO_NOT_ALLOW_WILDCARDS = 1 shl 12;
+ GNUTLS_VERIFY_USE_TLS1_RSA = 1 shl 13;
+
+ GNUTLS_VERIFY_ALLOW_BROKEN = GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD2 or GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD5;
+
+ // gnutls_certificate_verification_profiles_t
+
+ GNUTLS_PROFILE_VERY_WEAK = 1;
+ GNUTLS_PROFILE_LOW = 2;
+ GNUTLS_PROFILE_LEGACY = 4;
+ GNUTLS_PROFILE_MEDIUM = 5;
+ GNUTLS_PROFILE_HIGH = 6;
+ GNUTLS_PROFILE_ULTRA = 7;
+ GNUTLS_PROFILE_SUITEB128 = 32;
+ GNUTLS_PROFILE_SUITEB192 = 33;
+
+ // gnutls_pkcs7_sign_flags
+
+ GNUTLS_PKCS7_EMBED_DATA = 1;
+ GNUTLS_PKCS7_INCLUDE_TIME = 1 shl 1;
+ GNUTLS_PKCS7_INCLUDE_CERT = 1 shl 2;
+ GNUTLS_PKCS7_WRITE_SPKI = 1 shl 3;
+
+ // gnutls_pkcs_encrypt_flags_t
+
+ GNUTLS_PKCS_PLAIN = 1;
+ GNUTLS_PKCS_PKCS12_3DES = 1 shl 1;
+ GNUTLS_PKCS_PKCS12_ARCFOUR = 1 shl 2;
+ GNUTLS_PKCS_PKCS12_RC2_40 = 1 shl 3;
+ GNUTLS_PKCS_PBES2_3DES = 1 shl 4;
+ GNUTLS_PKCS_PBES2_AES_128 = 1 shl 5;
+ GNUTLS_PKCS_PBES2_AES_192 = 1 shl 6;
+ GNUTLS_PKCS_PBES2_AES_256 = 1 shl 7;
+ GNUTLS_PKCS_NULL_PASSWORD = 1 shl 8;
+ GNUTLS_PKCS_PBES2_DES = 1 shl 9;
+ GNUTLS_PKCS8_PLAIN = GNUTLS_PKCS_PLAIN;
+
+ // gnutls_certificate_import_flags
+ GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED = 1;
+ GNUTLS_X509_CRT_LIST_FAIL_IF_UNSORTED = 1 shl 1;
+ GNUTLS_X509_CRT_LIST_SORT = 1 shl 2;
+
+ // gnutls_keyid_flags_t
+
+ GNUTLS_KEYID_USE_SHA1 = 0;
+ GNUTLS_KEYID_USE_SHA256 = 1 shl 0;
+ GNUTLS_KEYID_USE_BEST_KNOWN = 1 shl 30;
+
+ GNUTLS_PKCS8_USE_PKCS12_3DES = GNUTLS_PKCS_PKCS12_3DES;
+ GNUTLS_PKCS8_USE_PKCS12_ARCFOUR = GNUTLS_PKCS_PKCS12_ARCFOUR;
+ GNUTLS_PKCS8_USE_PKCS12_RC2_40 = GNUTLS_PKCS_PKCS12_RC2_40;
+
+ GNUTLS_PKCS_USE_PKCS12_3DES = GNUTLS_PKCS_PKCS12_3DES;
+ GNUTLS_PKCS_USE_PKCS12_ARCFOUR = GNUTLS_PKCS_PKCS12_ARCFOUR;
+ GNUTLS_PKCS_USE_PKCS12_RC2_40 = GNUTLS_PKCS_PKCS12_RC2_40;
+ GNUTLS_PKCS_USE_PBES2_3DES = GNUTLS_PKCS_PBES2_3DES;
+ GNUTLS_PKCS_USE_PBES2_AES_128 = GNUTLS_PKCS_PBES2_AES_128;
+ GNUTLS_PKCS_USE_PBES2_AES_192 = GNUTLS_PKCS_PBES2_AES_192;
+ GNUTLS_PKCS_USE_PBES2_AES_256 = GNUTLS_PKCS_PBES2_AES_256;
{ Pointers to basic pascal types, inserted by h2pas conversion program.}
@@ -594,7 +732,7 @@ Type
PDouble = ^Double;
Tsize_t = cint;
Tssize_t = cint;
- Ttime_t = record end;
+ Ttime_t = int64; // Doubtful
PPdword = ^PDWord;
Type
@@ -979,6 +1117,104 @@ Type
TSeqArray = array[0..7] of byte;
+ Pgnutls_name_constraints_st = ^gnutls_name_constraints_st;
+ gnutls_name_constraints_st = record
+ end;
+ PPgnutls_x509_crl_t = ^Pgnutls_x509_crl_t;
+
+ Pgnutls_certificate_import_flags = ^Tgnutls_certificate_import_flags;
+ Tgnutls_certificate_import_flags = Longint;
+ Pgnutls_keyid_flags_t = ^Tgnutls_keyid_flags_t;
+ Tgnutls_keyid_flags_t = Longint;
+ Pgnutls_info_access_what_t = ^Tgnutls_info_access_what_t;
+ Tgnutls_info_access_what_t = Longint;
+ Pgnutls_x509_name_constraints_t = ^Tgnutls_x509_name_constraints_t;
+ Tgnutls_x509_name_constraints_t = Pgnutls_name_constraints_st;
+ Pgnutls_x509_crl_reason_flags_t = ^Tgnutls_x509_crl_reason_flags_t;
+ Tgnutls_x509_crl_reason_flags_t = Longint;
+ Pgnutls_x509_qualifier_t = ^Tgnutls_x509_qualifier_t;
+ Tgnutls_x509_qualifier_t = Longint;
+ Pgnutls_x509_policy_st = ^Tgnutls_x509_policy_st;
+ Tgnutls_x509_policy_st = record
+ oid : Pchar;
+ qualifiers : dword;
+ qualifier : array[0..7] of record
+ _type : Tgnutls_x509_qualifier_t;
+ data : Pchar;
+ size : dword;
+ end;
+ end;
+ Pgnutls_x509_dn_st = ^gnutls_x509_dn_st;
+ gnutls_x509_dn_st = record
+ end;
+
+ Pgnutls_x509_dn_t = ^Tgnutls_x509_dn_t;
+ Tgnutls_x509_dn_t = Pgnutls_x509_dn_st;
+
+ Pgnutls_x509_ava_st = ^Tgnutls_x509_ava_st;
+ Tgnutls_x509_ava_st = record
+ oid : Tgnutls_datum_t;
+ value : Tgnutls_datum_t;
+ value_tag : dword;
+ end;
+ Pgnutls_x509_crl_iter = ^tgnutls_x509_crl_iter;
+ tgnutls_x509_crl_iter = record
+ end;
+ Pgnutls_x509_crl_iter_t = ^Tgnutls_x509_crl_iter_t;
+ Tgnutls_x509_crl_iter_t = Pgnutls_x509_crl_iter;
+ Pgnutls_certificate_verify_flags = ^Tgnutls_certificate_verify_flags;
+ Pgnutls_pkcs_encrypt_flags_t = ^Tgnutls_pkcs_encrypt_flags_t;
+
+ Pgnutls_certificate_verification_profiles_t = ^Tgnutls_certificate_verification_profiles_t;
+ Tgnutls_certificate_verification_profiles_t = Longint;
+ Pgnutls_x509_trust_list_t = ^Tgnutls_x509_trust_list_t;
+ Pgnutls_x509_trust_list_st = ^Tgnutls_x509_trust_list_st;
+ Tgnutls_x509_trust_list_st = record
+ end;
+ Tgnutls_x509_trust_list_t = Pgnutls_x509_trust_list_st;
+ Pgnutls_x509_trust_list_iter_t = ^Tgnutls_x509_trust_list_iter_t;
+ Pgnutls_x509_trust_list_iter = ^Tgnutls_x509_trust_list_iter;
+ tgnutls_x509_trust_list_iter = record
+ end;
+ Tgnutls_x509_trust_list_iter_t = Pgnutls_x509_trust_list_iter;
+
+ Tgnutls_verify_output_function = function(cert : tgnutls_x509_crt_t; issuer :tgnutls_x509_crt_t; crl : tgnutls_x509_crl_t; verification_output : dword) : cint; cdecl;
+
+ Pgnutls_x509_ext_st = ^Tgnutls_x509_ext_st;
+ Tgnutls_x509_ext_st = record
+ oid : Pchar;
+ critical : dword;
+ data : Tgnutls_datum_t;
+ end;
+ Pgnutls_pkcs7_int = ^Tgnutls_pkcs7_int;
+ Tgnutls_pkcs7_int = record
+ {undefined structure}
+ end;
+
+ Pgnutls_pkcs7_t = ^Tgnutls_pkcs7_t;
+ Tgnutls_pkcs7_t = Pgnutls_pkcs7_int;
+ Pgnutls_pkcs7_attrs_st = ^Tgnutls_pkcs7_attrs_st;
+ Tgnutls_pkcs7_attrs_st = record
+ end;
+
+ Pgnutls_pkcs7_attrs_t = ^Tgnutls_pkcs7_attrs_t;
+ Tgnutls_pkcs7_attrs_t = Pgnutls_pkcs7_attrs_st;
+
+ Pgnutls_pkcs7_signature_info_st = ^Tgnutls_pkcs7_signature_info_st;
+ Tgnutls_pkcs7_signature_info_st = record
+ algo : Tgnutls_sign_algorithm_t;
+ sig : Tgnutls_datum_t;
+ issuer_dn : Tgnutls_datum_t;
+ signer_serial : Tgnutls_datum_t;
+ issuer_keyid : Tgnutls_datum_t;
+ signing_time : Ttime_t;
+ signed_attrs : Tgnutls_pkcs7_attrs_t;
+ unsigned_attrs : Tgnutls_pkcs7_attrs_t;
+ pad : array[0..63] of char;
+ end;
+ Pgnutls_pkcs7_sign_flags = ^Tgnutls_pkcs7_sign_flags;
+ Tgnutls_pkcs7_sign_flags = Longint;
+
Var
gnutls_malloc : Tgnutls_alloc_function;cvar;external;
gnutls_realloc : Tgnutls_realloc_function;cvar;external;
@@ -1352,44 +1588,336 @@ var
gnutls_supplemental_recv : procedure(session:Tgnutls_session_t; do_recv_supplemental:dword);cdecl;
gnutls_supplemental_send : procedure(session:Tgnutls_session_t; do_send_supplemental:dword);cdecl;
gnutls_fips140_mode_enabled : function:longint;cdecl;
+var
+ gnutls_x509_crt_init : function(cert:Pgnutls_x509_crt_t):longint;cdecl;
+ gnutls_x509_crt_deinit : procedure(cert:Tgnutls_x509_crt_t);cdecl;
+ gnutls_x509_crt_import : function(cert:Tgnutls_x509_crt_t; data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t):longint;cdecl;
+ gnutls_x509_crt_list_import2 : function(certs:PPgnutls_x509_crt_t; size:Pdword; data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t; flags:dword):longint;cdecl;
+ gnutls_x509_crt_list_import : function(certs:Pgnutls_x509_crt_t; cert_max:Pdword; data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t; flags:dword):longint;cdecl;
+ gnutls_x509_crt_import_url : function(crt:Tgnutls_x509_crt_t; url:Pchar; flags:dword):longint;cdecl;
+ gnutls_x509_crt_export : function(cert:Tgnutls_x509_crt_t; format:Tgnutls_x509_crt_fmt_t; output_data:pointer; output_data_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_export2 : function(cert:Tgnutls_x509_crt_t; format:Tgnutls_x509_crt_fmt_t; outd:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_get_private_key_usage_period : function(cert:Tgnutls_x509_crt_t; activation:Ptime_t; expiration:Ptime_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_issuer_dn : function(cert:Tgnutls_x509_crt_t; buf:Pchar; buf_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_issuer_dn2 : function(cert:Tgnutls_x509_crt_t; dn:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_get_issuer_dn_oid : function(cert:Tgnutls_x509_crt_t; indx:longint; oid:pointer; oid_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_issuer_dn_by_oid : function(cert:Tgnutls_x509_crt_t; oid:Pchar; indx:longint; raw_flag:dword; buf:pointer;
+ buf_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_dn : function(cert:Tgnutls_x509_crt_t; buf:Pchar; buf_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_dn2 : function(cert:Tgnutls_x509_crt_t; dn:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_get_dn_oid : function(cert:Tgnutls_x509_crt_t; indx:longint; oid:pointer; oid_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_dn_by_oid : function(cert:Tgnutls_x509_crt_t; oid:Pchar; indx:longint; raw_flag:dword; buf:pointer;
+ buf_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_check_hostname : function(cert:Tgnutls_x509_crt_t; hostname:Pchar):longint;cdecl;
+ gnutls_x509_crt_check_hostname2 : function(cert:Tgnutls_x509_crt_t; hostname:Pchar; flags:dword):longint;cdecl;
+ gnutls_x509_crt_check_email : function(cert:Tgnutls_x509_crt_t; email:Pchar; flags:dword):longint;cdecl;
+ gnutls_x509_crt_get_signature_algorithm : function(cert:Tgnutls_x509_crt_t):longint;cdecl;
+ gnutls_x509_crt_get_signature : function(cert:Tgnutls_x509_crt_t; sig:Pchar; sizeof_sig:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_version : function(cert:Tgnutls_x509_crt_t):longint;cdecl;
+ gnutls_x509_crt_get_key_id : function(crt:Tgnutls_x509_crt_t; flags:dword; output_data:Pbyte; output_data_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_set_private_key_usage_period : function(crt:Tgnutls_x509_crt_t; activation:Ttime_t; expiration:Ttime_t):longint;cdecl;
+ gnutls_x509_crt_set_authority_key_id : function(cert:Tgnutls_x509_crt_t; id:pointer; id_size:Tsize_t):longint;cdecl;
+ gnutls_x509_crt_get_authority_key_id : function(cert:Tgnutls_x509_crt_t; id:pointer; id_size:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_authority_key_gn_serial : function(cert:Tgnutls_x509_crt_t; seq:dword; alt:pointer; alt_size:Psize_t; alt_type:Pdword;
+ serial:pointer; serial_size:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_subject_key_id : function(cert:Tgnutls_x509_crt_t; ret:pointer; ret_size:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_subject_unique_id : function(crt:Tgnutls_x509_crt_t; buf:Pchar; buf_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_issuer_unique_id : function(crt:Tgnutls_x509_crt_t; buf:Pchar; buf_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_set_pin_function : procedure(crt:Tgnutls_x509_crt_t; fn:Tgnutls_pin_callback_t; userdata:pointer);cdecl;
+ gnutls_x509_crt_get_authority_info_access : function(crt:Tgnutls_x509_crt_t; seq:dword; what:longint; data:Pgnutls_datum_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_name_constraints_check : function(nc:Tgnutls_x509_name_constraints_t; _type:Tgnutls_x509_subject_alt_name_t; name:Pgnutls_datum_t):dword;cdecl;
+ gnutls_x509_name_constraints_check_crt : function(nc:Tgnutls_x509_name_constraints_t; _type:Tgnutls_x509_subject_alt_name_t; crt:Tgnutls_x509_crt_t):dword;cdecl;
+ gnutls_x509_name_constraints_init : function(nc:Pgnutls_x509_name_constraints_t):longint;cdecl;
+ gnutls_x509_name_constraints_deinit : procedure(nc:Tgnutls_x509_name_constraints_t);cdecl;
+ gnutls_x509_crt_get_name_constraints : function(crt:Tgnutls_x509_crt_t; nc:Tgnutls_x509_name_constraints_t; flags:dword; critical:Pdword):longint;cdecl;
+ gnutls_x509_name_constraints_add_permitted : function(nc:Tgnutls_x509_name_constraints_t; _type:Tgnutls_x509_subject_alt_name_t; name:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_name_constraints_add_excluded : function(nc:Tgnutls_x509_name_constraints_t; _type:Tgnutls_x509_subject_alt_name_t; name:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_set_name_constraints : function(crt:Tgnutls_x509_crt_t; nc:Tgnutls_x509_name_constraints_t; critical:dword):longint;cdecl;
+ gnutls_x509_name_constraints_get_permitted : function(nc:Tgnutls_x509_name_constraints_t; idx:dword; _type:Pdword; name:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_name_constraints_get_excluded : function(nc:Tgnutls_x509_name_constraints_t; idx:dword; _type:Pdword; name:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_get_crl_dist_points : function(cert:Tgnutls_x509_crt_t; seq:dword; ret:pointer; ret_size:Psize_t; reason_flags:Pdword;
+ critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_set_crl_dist_points2 : function(crt:Tgnutls_x509_crt_t; _type:Tgnutls_x509_subject_alt_name_t; data:pointer; data_size:dword; reason_flags:dword):longint;cdecl;
+ gnutls_x509_crt_set_crl_dist_points : function(crt:Tgnutls_x509_crt_t; _type:Tgnutls_x509_subject_alt_name_t; data_string:pointer; reason_flags:dword):longint;cdecl;
+ gnutls_x509_crt_cpy_crl_dist_points : function(dst:Tgnutls_x509_crt_t; src:Tgnutls_x509_crt_t):longint;cdecl;
+ gnutls_x509_crl_sign2 : function(crl:Tgnutls_x509_crl_t; issuer:Tgnutls_x509_crt_t; issuer_key:Tgnutls_x509_privkey_t; dig:Tgnutls_digest_algorithm_t; flags:dword):longint;cdecl;
+ gnutls_x509_crt_get_activation_time : function(cert:Tgnutls_x509_crt_t):Ttime_t;cdecl;
+ gnutls_x509_crt_get_expiration_time : function(cert:Tgnutls_x509_crt_t):Ttime_t;cdecl;
+ gnutls_x509_crt_get_serial : function(cert:Tgnutls_x509_crt_t; result:pointer; result_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_pk_algorithm : function(cert:Tgnutls_x509_crt_t; bits:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_pk_rsa_raw : function(crt:Tgnutls_x509_crt_t; m:Pgnutls_datum_t; e:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_get_pk_dsa_raw : function(crt:Tgnutls_x509_crt_t; p:Pgnutls_datum_t; q:Pgnutls_datum_t; g:Pgnutls_datum_t; y:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_get_pk_ecc_raw : function(crt:Tgnutls_x509_crt_t; curve:Pgnutls_ecc_curve_t; x:Pgnutls_datum_t; y:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_get_subject_alt_name : function(cert:Tgnutls_x509_crt_t; seq:dword; san:pointer; san_size:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_subject_alt_name2 : function(cert:Tgnutls_x509_crt_t; seq:dword; san:pointer; san_size:Psize_t; san_type:Pdword;
+ critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_subject_alt_othername_oid : function(cert:Tgnutls_x509_crt_t; seq:dword; oid:pointer; oid_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_issuer_alt_name : function(cert:Tgnutls_x509_crt_t; seq:dword; ian:pointer; ian_size:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_issuer_alt_name2 : function(cert:Tgnutls_x509_crt_t; seq:dword; ian:pointer; ian_size:Psize_t; ian_type:Pdword;
+ critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_issuer_alt_othername_oid : function(cert:Tgnutls_x509_crt_t; seq:dword; ret:pointer; ret_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_ca_status : function(cert:Tgnutls_x509_crt_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_basic_constraints : function(cert:Tgnutls_x509_crt_t; critical:Pdword; ca:Pdword; pathlen:Plongint):longint;cdecl;
+ gnutls_x509_crt_get_key_usage : function(cert:Tgnutls_x509_crt_t; key_usage:Pdword; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_set_key_usage : function(crt:Tgnutls_x509_crt_t; usage:dword):longint;cdecl;
+ gnutls_x509_crt_set_authority_info_access : function(crt:Tgnutls_x509_crt_t; what:longint; data:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_get_proxy : function(cert:Tgnutls_x509_crt_t; critical:Pdword; pathlen:Plongint; policyLanguage:PPchar; policy:PPchar;
+ sizeof_policy:Psize_t):longint;cdecl;
+ gnutls_x509_policy_release : procedure(policy:Pgnutls_x509_policy_st);cdecl;
+ gnutls_x509_crt_get_policy : function(crt:Tgnutls_x509_crt_t; indx:longint; policy:Pgnutls_x509_policy_st; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_set_policy : function(crt:Tgnutls_x509_crt_t; policy:Pgnutls_x509_policy_st; critical:dword):longint;cdecl;
+ gnutls_x509_dn_oid_known : function(oid:Pchar):longint;cdecl;
+ gnutls_x509_dn_oid_name : function(oid:Pchar; flags:dword):Pchar;cdecl;
+ gnutls_x509_crt_get_extension_oid : function(cert:Tgnutls_x509_crt_t; indx:longint; oid:pointer; oid_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_extension_by_oid : function(cert:Tgnutls_x509_crt_t; oid:Pchar; indx:longint; buf:pointer; buf_size:Psize_t;
+ critical:Pdword):longint;cdecl;
+ gnutls_x509_crq_get_signature_algorithm : function(crq:Tgnutls_x509_crq_t):longint;cdecl;
+ gnutls_x509_crq_get_extension_by_oid2 : function(crq:Tgnutls_x509_crq_t; oid:Pchar; indx:longint; output:Pgnutls_datum_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_extension_info : function(cert:Tgnutls_x509_crt_t; indx:longint; oid:pointer; oid_size:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_extension_data : function(cert:Tgnutls_x509_crt_t; indx:longint; data:pointer; sizeof_data:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_extension_data2 : function(cert:Tgnutls_x509_crt_t; indx:dword; data:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_set_extension_by_oid : function(crt:Tgnutls_x509_crt_t; oid:Pchar; buf:pointer; sizeof_buf:Tsize_t; critical:dword):longint;cdecl;
+ gnutls_x509_crt_set_dn : function(crt:Tgnutls_x509_crt_t; dn:Pchar; err:PPchar):longint;cdecl;
+ gnutls_x509_crt_set_dn_by_oid : function(crt:Tgnutls_x509_crt_t; oid:Pchar; raw_flag:dword; name:pointer; sizeof_name:dword):longint;cdecl;
+ gnutls_x509_crt_set_issuer_dn_by_oid : function(crt:Tgnutls_x509_crt_t; oid:Pchar; raw_flag:dword; name:pointer; sizeof_name:dword):longint;cdecl;
+ gnutls_x509_crt_set_issuer_dn : function(crt:Tgnutls_x509_crt_t; dn:Pchar; err:PPchar):longint;cdecl;
+ gnutls_x509_crt_set_version : function(crt:Tgnutls_x509_crt_t; version:dword):longint;cdecl;
+ gnutls_x509_crt_set_key : function(crt:Tgnutls_x509_crt_t; key:Tgnutls_x509_privkey_t):longint;cdecl;
+ gnutls_x509_crt_set_ca_status : function(crt:Tgnutls_x509_crt_t; ca:dword):longint;cdecl;
+ gnutls_x509_crt_set_basic_constraints : function(crt:Tgnutls_x509_crt_t; ca:dword; pathLenConstraint:longint):longint;cdecl;
+ gnutls_x509_crt_set_subject_unique_id : function(cert:Tgnutls_x509_crt_t; id:pointer; id_size:Tsize_t):longint;cdecl;
+ gnutls_x509_crt_set_issuer_unique_id : function(cert:Tgnutls_x509_crt_t; id:pointer; id_size:Tsize_t):longint;cdecl;
+ gnutls_x509_crt_set_subject_alternative_name : function(crt:Tgnutls_x509_crt_t; _type:Tgnutls_x509_subject_alt_name_t; data_string:Pchar):longint;cdecl;
+ gnutls_x509_crt_set_subject_alt_name : function(crt:Tgnutls_x509_crt_t; _type:Tgnutls_x509_subject_alt_name_t; data:pointer; data_size:dword; flags:dword):longint;cdecl;
+ gnutls_x509_crt_set_issuer_alt_name : function(crt:Tgnutls_x509_crt_t; _type:Tgnutls_x509_subject_alt_name_t; data:pointer; data_size:dword; flags:dword):longint;cdecl;
+ gnutls_x509_crt_sign : function(crt:Tgnutls_x509_crt_t; issuer:Tgnutls_x509_crt_t; issuer_key:Tgnutls_x509_privkey_t):longint;cdecl;
+ gnutls_x509_crt_sign2 : function(crt:Tgnutls_x509_crt_t; issuer:Tgnutls_x509_crt_t; issuer_key:Tgnutls_x509_privkey_t; dig:Tgnutls_digest_algorithm_t; flags:dword):longint;cdecl;
+ gnutls_x509_crt_set_activation_time : function(cert:Tgnutls_x509_crt_t; act_time:Ttime_t):longint;cdecl;
+ gnutls_x509_crt_set_expiration_time : function(cert:Tgnutls_x509_crt_t; exp_time:Ttime_t):longint;cdecl;
+ gnutls_x509_crt_set_serial : function(cert:Tgnutls_x509_crt_t; serial:pointer; serial_size:Tsize_t):longint;cdecl;
+ gnutls_x509_crt_set_subject_key_id : function(cert:Tgnutls_x509_crt_t; id:pointer; id_size:Tsize_t):longint;cdecl;
+ gnutls_x509_crt_set_proxy_dn : function(crt:Tgnutls_x509_crt_t; eecrt:Tgnutls_x509_crt_t; raw_flag:dword; name:pointer; sizeof_name:dword):longint;cdecl;
+ gnutls_x509_crt_set_proxy : function(crt:Tgnutls_x509_crt_t; pathLenConstraint:longint; policyLanguage:Pchar; policy:Pchar; sizeof_policy:Tsize_t):longint;cdecl;
+ gnutls_x509_crt_print : function(cert:Tgnutls_x509_crt_t; format:Tgnutls_certificate_print_formats_t; outd:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crl_print : function(crl:Tgnutls_x509_crl_t; format:Tgnutls_certificate_print_formats_t; outd:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_get_raw_issuer_dn : function(cert:Tgnutls_x509_crt_t; start:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_get_raw_dn : function(cert:Tgnutls_x509_crt_t; start:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_rdn_get : function(idn:Pgnutls_datum_t; buf:Pchar; sizeof_buf:Psize_t):longint;cdecl;
+ gnutls_x509_rdn_get_oid : function(idn:Pgnutls_datum_t; indx:longint; buf:pointer; sizeof_buf:Psize_t):longint;cdecl;
+ gnutls_x509_rdn_get_by_oid : function(idn:Pgnutls_datum_t; oid:Pchar; indx:longint; raw_flag:dword; buf:pointer;
+ sizeof_buf:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_subject : function(cert:Tgnutls_x509_crt_t; dn:Pgnutls_x509_dn_t):longint;cdecl;
+ gnutls_x509_crt_get_issuer : function(cert:Tgnutls_x509_crt_t; dn:Pgnutls_x509_dn_t):longint;cdecl;
+ gnutls_x509_dn_get_rdn_ava : function(dn:Tgnutls_x509_dn_t; irdn:longint; iava:longint; ava:Pgnutls_x509_ava_st):longint;cdecl;
+ gnutls_x509_dn_get_str : function(dn:Tgnutls_x509_dn_t; str:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_dn_init : function(dn:Pgnutls_x509_dn_t):longint;cdecl;
+ gnutls_x509_dn_import : function(dn:Tgnutls_x509_dn_t; data:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_dn_export : function(dn:Tgnutls_x509_dn_t; format:Tgnutls_x509_crt_fmt_t; output_data:pointer; output_data_size:Psize_t):longint;cdecl;
+ gnutls_x509_dn_export2 : function(dn:Tgnutls_x509_dn_t; format:Tgnutls_x509_crt_fmt_t; outd:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_dn_deinit : procedure(dn:Tgnutls_x509_dn_t);cdecl;
+ gnutls_x509_crl_init : function(crl:Pgnutls_x509_crl_t):longint;cdecl;
+ gnutls_x509_crl_deinit : procedure(crl:Tgnutls_x509_crl_t);cdecl;
+ gnutls_x509_crl_import : function(crl:Tgnutls_x509_crl_t; data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t):longint;cdecl;
+ gnutls_x509_crl_export : function(crl:Tgnutls_x509_crl_t; format:Tgnutls_x509_crt_fmt_t; output_data:pointer; output_data_size:Psize_t):longint;cdecl;
+ gnutls_x509_crl_export2 : function(crl:Tgnutls_x509_crl_t; format:Tgnutls_x509_crt_fmt_t; outd:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crl_get_raw_issuer_dn : function(crl:Tgnutls_x509_crl_t; dn:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crl_get_issuer_dn : function(crl:Tgnutls_x509_crl_t; buf:Pchar; sizeof_buf:Psize_t):longint;cdecl;
+ gnutls_x509_crl_get_issuer_dn2 : function(crl:Tgnutls_x509_crl_t; dn:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crl_get_issuer_dn_by_oid : function(crl:Tgnutls_x509_crl_t; oid:Pchar; indx:longint; raw_flag:dword; buf:pointer;
+ sizeof_buf:Psize_t):longint;cdecl;
+ gnutls_x509_crl_get_dn_oid : function(crl:Tgnutls_x509_crl_t; indx:longint; oid:pointer; sizeof_oid:Psize_t):longint;cdecl;
+ gnutls_x509_crl_get_signature_algorithm : function(crl:Tgnutls_x509_crl_t):longint;cdecl;
+ gnutls_x509_crl_get_signature : function(crl:Tgnutls_x509_crl_t; sig:Pchar; sizeof_sig:Psize_t):longint;cdecl;
+ gnutls_x509_crl_get_version : function(crl:Tgnutls_x509_crl_t):longint;cdecl;
+ gnutls_x509_crl_get_this_update : function(crl:Tgnutls_x509_crl_t):Ttime_t;cdecl;
+ gnutls_x509_crl_get_next_update : function(crl:Tgnutls_x509_crl_t):Ttime_t;cdecl;
+ gnutls_x509_crl_get_crt_count : function(crl:Tgnutls_x509_crl_t):longint;cdecl;
+ gnutls_x509_crl_get_crt_serial : function(crl:Tgnutls_x509_crl_t; indx:longint; serial:Pbyte; serial_size:Psize_t; t:Ptime_t):longint;cdecl;
+ gnutls_x509_crl_iter_crt_serial : function(crl:Tgnutls_x509_crl_t; para2:Pgnutls_x509_crl_iter_t; serial:Pbyte; serial_size:Psize_t; t:Ptime_t):longint;cdecl;
+ gnutls_x509_crl_iter_deinit : procedure(para1:Tgnutls_x509_crl_iter_t);cdecl;
+ gnutls_x509_crl_check_issuer : function(crl:Tgnutls_x509_crl_t; issuer:Tgnutls_x509_crt_t):longint;cdecl;
+ gnutls_x509_crl_list_import2 : function(crls:PPgnutls_x509_crl_t; size:Pdword; data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t; flags:dword):longint;cdecl;
+ gnutls_x509_crl_list_import : function(crls:Pgnutls_x509_crl_t; crl_max:Pdword; data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t; flags:dword):longint;cdecl;
+ gnutls_x509_crl_set_version : function(crl:Tgnutls_x509_crl_t; version:dword):longint;cdecl;
+ gnutls_x509_crl_set_this_update : function(crl:Tgnutls_x509_crl_t; act_time:Ttime_t):longint;cdecl;
+ gnutls_x509_crl_set_next_update : function(crl:Tgnutls_x509_crl_t; exp_time:Ttime_t):longint;cdecl;
+ gnutls_x509_crl_set_crt_serial : function(crl:Tgnutls_x509_crl_t; serial:pointer; serial_size:Tsize_t; revocation_time:Ttime_t):longint;cdecl;
+ gnutls_x509_crl_set_crt : function(crl:Tgnutls_x509_crl_t; crt:Tgnutls_x509_crt_t; revocation_time:Ttime_t):longint;cdecl;
+ gnutls_x509_crl_get_authority_key_id : function(crl:Tgnutls_x509_crl_t; id:pointer; id_size:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crl_get_authority_key_gn_serial : function(crl:Tgnutls_x509_crl_t; seq:dword; alt:pointer; alt_size:Psize_t; alt_type:Pdword;
+ serial:pointer; serial_size:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crl_get_number : function(crl:Tgnutls_x509_crl_t; ret:pointer; ret_size:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crl_get_extension_oid : function(crl:Tgnutls_x509_crl_t; indx:longint; oid:pointer; sizeof_oid:Psize_t):longint;cdecl;
+ gnutls_x509_crl_get_extension_info : function(crl:Tgnutls_x509_crl_t; indx:longint; oid:pointer; sizeof_oid:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crl_get_extension_data : function(crl:Tgnutls_x509_crl_t; indx:longint; data:pointer; sizeof_data:Psize_t):longint;cdecl;
+ gnutls_x509_crl_get_extension_data2 : function(crl:Tgnutls_x509_crl_t; indx:dword; data:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crl_set_authority_key_id : function(crl:Tgnutls_x509_crl_t; id:pointer; id_size:Tsize_t):longint;cdecl;
+ gnutls_x509_crl_set_number : function(crl:Tgnutls_x509_crl_t; nr:pointer; nr_size:Tsize_t):longint;cdecl;
+ gnutls_x509_crt_check_issuer : function(cert:Tgnutls_x509_crt_t; issuer:Tgnutls_x509_crt_t):longint;cdecl;
+ gnutls_x509_crt_list_verify : function(cert_list:Pgnutls_x509_crt_t; cert_list_length:longint; CA_list:Pgnutls_x509_crt_t; CA_list_length:longint; CRL_list:Pgnutls_x509_crl_t;
+ CRL_list_length:longint; flags:dword; verify:Pdword):longint;cdecl;
+ gnutls_x509_crt_verify : function(cert:Tgnutls_x509_crt_t; CA_list:Pgnutls_x509_crt_t; CA_list_length:longint; flags:dword; verify:Pdword):longint;cdecl;
+ gnutls_x509_crl_verify : function(crl:Tgnutls_x509_crl_t; CA_list:Pgnutls_x509_crt_t; CA_list_length:longint; flags:dword; verify:Pdword):longint;cdecl;
+ gnutls_x509_crt_verify_data2 : function(crt:Tgnutls_x509_crt_t; algo:Tgnutls_sign_algorithm_t; flags:dword; data:Pgnutls_datum_t; signature:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_check_revocation : function(cert:Tgnutls_x509_crt_t; crl_list:Pgnutls_x509_crl_t; crl_list_length:longint):longint;cdecl;
+ gnutls_x509_crt_get_fingerprint : function(cert:Tgnutls_x509_crt_t; algo:Tgnutls_digest_algorithm_t; buf:pointer; buf_size:Psize_t):longint;cdecl;
+ gnutls_x509_crt_get_key_purpose_oid : function(cert:Tgnutls_x509_crt_t; indx:longint; oid:pointer; oid_size:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_set_key_purpose_oid : function(cert:Tgnutls_x509_crt_t; oid:pointer; critical:dword):longint;cdecl;
+ gnutls_pkcs_schema_get_name : function(schema:dword):Pchar;cdecl;
+ gnutls_pkcs_schema_get_oid : function(schema:dword):Pchar;cdecl;
+ gnutls_x509_privkey_init : function(key:Pgnutls_x509_privkey_t):longint;cdecl;
+ gnutls_x509_privkey_deinit : procedure(key:Tgnutls_x509_privkey_t);cdecl;
+ gnutls_x509_privkey_sec_param : function(key:Tgnutls_x509_privkey_t):Tgnutls_sec_param_t;cdecl;
+ gnutls_x509_privkey_set_pin_function : procedure(key:Tgnutls_x509_privkey_t; fn:Tgnutls_pin_callback_t; userdata:pointer);cdecl;
+ gnutls_x509_privkey_cpy : function(dst:Tgnutls_x509_privkey_t; src:Tgnutls_x509_privkey_t):longint;cdecl;
+ gnutls_x509_privkey_import : function(key:Tgnutls_x509_privkey_t; data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t):longint;cdecl;
+ gnutls_x509_privkey_import_pkcs8 : function(key:Tgnutls_x509_privkey_t; data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t; password:Pchar; flags:dword):longint;cdecl;
+ gnutls_x509_privkey_import_openssl : function(key:Tgnutls_x509_privkey_t; data:Pgnutls_datum_t; password:Pchar):longint;cdecl;
+ gnutls_pkcs8_info : function(data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t; schema:Pdword; cipher:Pdword; salt:pointer;
+ salt_size:Pdword; iter_count:Pdword; oid:PPchar):longint;cdecl;
+ gnutls_x509_privkey_import2 : function(key:Tgnutls_x509_privkey_t; data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t; password:Pchar; flags:dword):longint;cdecl;
+ gnutls_x509_privkey_import_rsa_raw : function(key:Tgnutls_x509_privkey_t; m:Pgnutls_datum_t; e:Pgnutls_datum_t; d:Pgnutls_datum_t; p:Pgnutls_datum_t;
+ q:Pgnutls_datum_t; u:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_privkey_import_rsa_raw2 : function(key:Tgnutls_x509_privkey_t; m:Pgnutls_datum_t; e:Pgnutls_datum_t; d:Pgnutls_datum_t; p:Pgnutls_datum_t;
+ q:Pgnutls_datum_t; u:Pgnutls_datum_t; e1:Pgnutls_datum_t; e2:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_privkey_import_ecc_raw : function(key:Tgnutls_x509_privkey_t; curve:Tgnutls_ecc_curve_t; x:Pgnutls_datum_t; y:Pgnutls_datum_t; k:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_privkey_fix : function(key:Tgnutls_x509_privkey_t):longint;cdecl;
+ gnutls_x509_privkey_export_dsa_raw : function(key:Tgnutls_x509_privkey_t; p:Pgnutls_datum_t; q:Pgnutls_datum_t; g:Pgnutls_datum_t; y:Pgnutls_datum_t;
+ x:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_privkey_import_dsa_raw : function(key:Tgnutls_x509_privkey_t; p:Pgnutls_datum_t; q:Pgnutls_datum_t; g:Pgnutls_datum_t; y:Pgnutls_datum_t;
+ x:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_privkey_get_pk_algorithm : function(key:Tgnutls_x509_privkey_t):longint;cdecl;
+ gnutls_x509_privkey_get_pk_algorithm2 : function(key:Tgnutls_x509_privkey_t; bits:Pdword):longint;cdecl;
+ gnutls_x509_privkey_get_key_id : function(key:Tgnutls_x509_privkey_t; flags:dword; output_data:Pbyte; output_data_size:Psize_t):longint;cdecl;
+ gnutls_x509_privkey_generate : function(key:Tgnutls_x509_privkey_t; algo:Tgnutls_pk_algorithm_t; bits:dword; flags:dword):longint;cdecl;
+ gnutls_x509_privkey_verify_params : function(key:Tgnutls_x509_privkey_t):longint;cdecl;
+ gnutls_x509_privkey_export : function(key:Tgnutls_x509_privkey_t; format:Tgnutls_x509_crt_fmt_t; output_data:pointer; output_data_size:Psize_t):longint;cdecl;
+ gnutls_x509_privkey_export2 : function(key:Tgnutls_x509_privkey_t; format:Tgnutls_x509_crt_fmt_t; outd:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_privkey_export_pkcs8 : function(key:Tgnutls_x509_privkey_t; format:Tgnutls_x509_crt_fmt_t; password:Pchar; flags:dword; output_data:pointer;
+ output_data_size:Psize_t):longint;cdecl;
+ gnutls_x509_privkey_export2_pkcs8 : function(key:Tgnutls_x509_privkey_t; format:Tgnutls_x509_crt_fmt_t; password:Pchar; flags:dword; outd:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_privkey_export_rsa_raw2 : function(key:Tgnutls_x509_privkey_t; m:Pgnutls_datum_t; e:Pgnutls_datum_t; d:Pgnutls_datum_t; p:Pgnutls_datum_t;
+ q:Pgnutls_datum_t; u:Pgnutls_datum_t; e1:Pgnutls_datum_t; e2:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_privkey_export_rsa_raw : function(key:Tgnutls_x509_privkey_t; m:Pgnutls_datum_t; e:Pgnutls_datum_t; d:Pgnutls_datum_t; p:Pgnutls_datum_t;
+ q:Pgnutls_datum_t; u:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_privkey_export_ecc_raw : function(key:Tgnutls_x509_privkey_t; curve:Pgnutls_ecc_curve_t; x:Pgnutls_datum_t; y:Pgnutls_datum_t; k:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_privkey_sign_data : function(key:Tgnutls_x509_privkey_t; digest:Tgnutls_digest_algorithm_t; flags:dword; data:Pgnutls_datum_t; signature:pointer;
+ signature_size:Psize_t):longint;cdecl;
+ gnutls_x509_crq_sign2 : function(crq:Tgnutls_x509_crq_t; key:Tgnutls_x509_privkey_t; dig:Tgnutls_digest_algorithm_t; flags:dword):longint;cdecl;
+ gnutls_x509_crq_print : function(crq:Tgnutls_x509_crq_t; format:Tgnutls_certificate_print_formats_t; outd:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crq_verify : function(crq:Tgnutls_x509_crq_t; flags:dword):longint;cdecl;
+ gnutls_x509_crq_init : function(crq:Pgnutls_x509_crq_t):longint;cdecl;
+ gnutls_x509_crq_deinit : procedure(crq:Tgnutls_x509_crq_t);cdecl;
+ gnutls_x509_crq_import : function(crq:Tgnutls_x509_crq_t; data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t):longint;cdecl;
+ gnutls_x509_crq_get_private_key_usage_period : function(cert:Tgnutls_x509_crq_t; activation:Ptime_t; expiration:Ptime_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crq_get_dn : function(crq:Tgnutls_x509_crq_t; buf:Pchar; sizeof_buf:Psize_t):longint;cdecl;
+ gnutls_x509_crq_get_dn2 : function(crq:Tgnutls_x509_crq_t; dn:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crq_get_dn_oid : function(crq:Tgnutls_x509_crq_t; indx:longint; oid:pointer; sizeof_oid:Psize_t):longint;cdecl;
+ gnutls_x509_crq_get_dn_by_oid : function(crq:Tgnutls_x509_crq_t; oid:Pchar; indx:longint; raw_flag:dword; buf:pointer;
+ sizeof_buf:Psize_t):longint;cdecl;
+ gnutls_x509_crq_set_dn : function(crq:Tgnutls_x509_crq_t; dn:Pchar; err:PPchar):longint;cdecl;
+ gnutls_x509_crq_set_dn_by_oid : function(crq:Tgnutls_x509_crq_t; oid:Pchar; raw_flag:dword; data:pointer; sizeof_data:dword):longint;cdecl;
+ gnutls_x509_crq_set_version : function(crq:Tgnutls_x509_crq_t; version:dword):longint;cdecl;
+ gnutls_x509_crq_get_version : function(crq:Tgnutls_x509_crq_t):longint;cdecl;
+ gnutls_x509_crq_set_key : function(crq:Tgnutls_x509_crq_t; key:Tgnutls_x509_privkey_t):longint;cdecl;
+ gnutls_x509_crq_set_challenge_password : function(crq:Tgnutls_x509_crq_t; pass:Pchar):longint;cdecl;
+ gnutls_x509_crq_get_challenge_password : function(crq:Tgnutls_x509_crq_t; pass:Pchar; sizeof_pass:Psize_t):longint;cdecl;
+ gnutls_x509_crq_set_attribute_by_oid : function(crq:Tgnutls_x509_crq_t; oid:Pchar; buf:pointer; sizeof_buf:Tsize_t):longint;cdecl;
+ gnutls_x509_crq_get_attribute_by_oid : function(crq:Tgnutls_x509_crq_t; oid:Pchar; indx:longint; buf:pointer; sizeof_buf:Psize_t):longint;cdecl;
+ gnutls_x509_crq_export : function(crq:Tgnutls_x509_crq_t; format:Tgnutls_x509_crt_fmt_t; output_data:pointer; output_data_size:Psize_t):longint;cdecl;
+ gnutls_x509_crq_export2 : function(crq:Tgnutls_x509_crq_t; format:Tgnutls_x509_crt_fmt_t; outd:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crt_set_crq : function(crt:Tgnutls_x509_crt_t; crq:Tgnutls_x509_crq_t):longint;cdecl;
+ gnutls_x509_crt_set_crq_extensions : function(crt:Tgnutls_x509_crt_t; crq:Tgnutls_x509_crq_t):longint;cdecl;
+ gnutls_x509_crq_set_private_key_usage_period : function(crq:Tgnutls_x509_crq_t; activation:Ttime_t; expiration:Ttime_t):longint;cdecl;
+ gnutls_x509_crq_set_key_rsa_raw : function(crq:Tgnutls_x509_crq_t; m:Pgnutls_datum_t; e:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crq_set_subject_alt_name : function(crq:Tgnutls_x509_crq_t; nt:Tgnutls_x509_subject_alt_name_t; data:pointer; data_size:dword; flags:dword):longint;cdecl;
+ gnutls_x509_crq_set_key_usage : function(crq:Tgnutls_x509_crq_t; usage:dword):longint;cdecl;
+ gnutls_x509_crq_set_basic_constraints : function(crq:Tgnutls_x509_crq_t; ca:dword; pathLenConstraint:longint):longint;cdecl;
+ gnutls_x509_crq_set_key_purpose_oid : function(crq:Tgnutls_x509_crq_t; oid:pointer; critical:dword):longint;cdecl;
+ gnutls_x509_crq_get_key_purpose_oid : function(crq:Tgnutls_x509_crq_t; indx:longint; oid:pointer; sizeof_oid:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crq_get_extension_data : function(crq:Tgnutls_x509_crq_t; indx:longint; data:pointer; sizeof_data:Psize_t):longint;cdecl;
+ gnutls_x509_crq_get_extension_data2 : function(crq:Tgnutls_x509_crq_t; indx:dword; data:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crq_get_extension_info : function(crq:Tgnutls_x509_crq_t; indx:longint; oid:pointer; sizeof_oid:Psize_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_crq_get_attribute_data : function(crq:Tgnutls_x509_crq_t; indx:longint; data:pointer; sizeof_data:Psize_t):longint;cdecl;
+ gnutls_x509_crq_get_attribute_info : function(crq:Tgnutls_x509_crq_t; indx:longint; oid:pointer; sizeof_oid:Psize_t):longint;cdecl;
+ gnutls_x509_crq_get_pk_algorithm : function(crq:Tgnutls_x509_crq_t; bits:Pdword):longint;cdecl;
+ gnutls_x509_crq_get_key_id : function(crq:Tgnutls_x509_crq_t; flags:dword; output_data:Pbyte; output_data_size:Psize_t):longint;cdecl;
+ gnutls_x509_crq_get_key_rsa_raw : function(crq:Tgnutls_x509_crq_t; m:Pgnutls_datum_t; e:Pgnutls_datum_t):longint;cdecl;
+ gnutls_x509_crq_get_key_usage : function(crq:Tgnutls_x509_crq_t; key_usage:Pdword; critical:Pdword):longint;cdecl;
+ gnutls_x509_crq_get_basic_constraints : function(crq:Tgnutls_x509_crq_t; critical:Pdword; ca:Pdword; pathlen:Plongint):longint;cdecl;
+ gnutls_x509_crq_get_subject_alt_name : function(crq:Tgnutls_x509_crq_t; seq:dword; ret:pointer; ret_size:Psize_t; ret_type:Pdword;
+ critical:Pdword):longint;cdecl;
+ gnutls_x509_crq_get_subject_alt_othername_oid : function(crq:Tgnutls_x509_crq_t; seq:dword; ret:pointer; ret_size:Psize_t):longint;cdecl;
+ gnutls_x509_crq_get_extension_by_oid : function(crq:Tgnutls_x509_crq_t; oid:Pchar; indx:longint; buf:pointer; sizeof_buf:Psize_t;
+ critical:Pdword):longint;cdecl;
+ gnutls_x509_crt_get_extension_by_oid2 : function(cert:Tgnutls_x509_crt_t; oid:Pchar; indx:longint; output:Pgnutls_datum_t; critical:Pdword):longint;cdecl;
+ gnutls_x509_trust_list_init : function(list:Pgnutls_x509_trust_list_t; size:dword):longint;cdecl;
+ gnutls_x509_trust_list_deinit : procedure(list:Tgnutls_x509_trust_list_t; all:dword);cdecl;
+ gnutls_x509_trust_list_get_issuer : function(list:Tgnutls_x509_trust_list_t; cert:Tgnutls_x509_crt_t; issuer:Pgnutls_x509_crt_t; flags:dword):longint;cdecl;
+ gnutls_x509_trust_list_get_issuer_by_dn : function(list:Tgnutls_x509_trust_list_t; dn:Pgnutls_datum_t; issuer:Pgnutls_x509_crt_t; flags:dword):longint;cdecl;
+ gnutls_x509_trust_list_get_issuer_by_subject_key_id : function(list:Tgnutls_x509_trust_list_t; dn:Pgnutls_datum_t; spki:Pgnutls_datum_t; issuer:Pgnutls_x509_crt_t; flags:dword):longint;cdecl;
+ gnutls_x509_trust_list_add_cas : function(list:Tgnutls_x509_trust_list_t; clist:Pgnutls_x509_crt_t; clist_size:dword; flags:dword):longint;cdecl;
+ gnutls_x509_trust_list_remove_cas : function(list:Tgnutls_x509_trust_list_t; clist:Pgnutls_x509_crt_t; clist_size:longint):longint;cdecl;
+ gnutls_x509_trust_list_add_named_crt : function(list:Tgnutls_x509_trust_list_t; cert:Tgnutls_x509_crt_t; name:pointer; name_size:Tsize_t; flags:dword):longint;cdecl;
+ gnutls_x509_trust_list_add_crls : function(list:Tgnutls_x509_trust_list_t; crl_list:Pgnutls_x509_crl_t; crl_size:longint; flags:dword; verification_flags:dword):longint;cdecl;
+ gnutls_x509_trust_list_iter_get_ca : function(list:Tgnutls_x509_trust_list_t; iter:Pgnutls_x509_trust_list_iter_t; crt:Pgnutls_x509_crt_t):longint;cdecl;
+ gnutls_x509_trust_list_iter_deinit : procedure(iter:Tgnutls_x509_trust_list_iter_t);cdecl;
+ gnutls_x509_trust_list_verify_named_crt : function(list:Tgnutls_x509_trust_list_t; cert:Tgnutls_x509_crt_t; name:pointer; name_size:Tsize_t; flags:dword;
+ verify:Pdword; func:Tgnutls_verify_output_function):longint;cdecl;
+ gnutls_x509_trust_list_verify_crt2 : function(list:Tgnutls_x509_trust_list_t; cert_list:Pgnutls_x509_crt_t; cert_list_size:dword; data:Pgnutls_typed_vdata_st; elements:dword;
+ flags:dword; voutput:Pdword; func:Tgnutls_verify_output_function):longint;cdecl;
+ gnutls_x509_trust_list_verify_crt : function(list:Tgnutls_x509_trust_list_t; cert_list:Pgnutls_x509_crt_t; cert_list_size:dword; flags:dword; verify:Pdword;
+ func:Tgnutls_verify_output_function):longint;cdecl;
+ gnutls_x509_trust_list_add_trust_mem : function(list:Tgnutls_x509_trust_list_t; cas:Pgnutls_datum_t; crls:Pgnutls_datum_t; _type:Tgnutls_x509_crt_fmt_t; tl_flags:dword;
+ tl_vflags:dword):longint;cdecl;
+ gnutls_x509_trust_list_add_trust_file : function(list:Tgnutls_x509_trust_list_t; ca_file:Pchar; crl_file:Pchar; _type:Tgnutls_x509_crt_fmt_t; tl_flags:dword;
+ tl_vflags:dword):longint;cdecl;
+ gnutls_x509_trust_list_add_trust_dir : function(list:Tgnutls_x509_trust_list_t; ca_dir:Pchar; crl_dir:Pchar; _type:Tgnutls_x509_crt_fmt_t; tl_flags:dword;
+ tl_vflags:dword):longint;cdecl;
+ gnutls_x509_trust_list_remove_trust_file : function(list:Tgnutls_x509_trust_list_t; ca_file:Pchar; _type:Tgnutls_x509_crt_fmt_t):longint;cdecl;
+ gnutls_x509_trust_list_remove_trust_mem : function(list:Tgnutls_x509_trust_list_t; cas:Pgnutls_datum_t; _type:Tgnutls_x509_crt_fmt_t):longint;cdecl;
+ gnutls_x509_trust_list_add_system_trust : function(list:Tgnutls_x509_trust_list_t; tl_flags:dword; tl_vflags:dword):longint;cdecl;
+ gnutls_certificate_set_trust_list : procedure(res:Tgnutls_certificate_credentials_t; tlist:Tgnutls_x509_trust_list_t; flags:dword);cdecl;
+ gnutls_certificate_get_trust_list : procedure(res:Tgnutls_certificate_credentials_t; tlist:Pgnutls_x509_trust_list_t);cdecl;
+ gnutls_x509_ext_deinit : procedure(ext:Pgnutls_x509_ext_st);cdecl;
+ gnutls_x509_ext_print : function(exts:Pgnutls_x509_ext_st; exts_size:dword; format:Tgnutls_certificate_print_formats_t; outd:Pgnutls_datum_t):longint;cdecl;
+ gnutls_pkcs7_init : function(pkcs7:Pgnutls_pkcs7_t):longint;cdecl;
+ gnutls_pkcs7_deinit : procedure(pkcs7:Tgnutls_pkcs7_t);cdecl;
+ gnutls_pkcs7_import : function(pkcs7:Tgnutls_pkcs7_t; data:Pgnutls_datum_t; format:Tgnutls_x509_crt_fmt_t):longint;cdecl;
+ gnutls_pkcs7_export : function(pkcs7:Tgnutls_pkcs7_t; format:Tgnutls_x509_crt_fmt_t; output_data:pointer; output_data_size:Psize_t):longint;cdecl;
+ gnutls_pkcs7_export2 : function(pkcs7:Tgnutls_pkcs7_t; format:Tgnutls_x509_crt_fmt_t; outd:Pgnutls_datum_t):longint;cdecl;
+ gnutls_pkcs7_get_signature_count : function(pkcs7:Tgnutls_pkcs7_t):longint;cdecl;
+ gnutls_pkcs7_get_embedded_data : function(pkcs7:Tgnutls_pkcs7_t; idx:dword; data:Pgnutls_datum_t):longint;cdecl;
+ gnutls_pkcs7_get_crt_count : function(pkcs7:Tgnutls_pkcs7_t):longint;cdecl;
+ gnutls_pkcs7_get_crt_raw : function(pkcs7:Tgnutls_pkcs7_t; indx:longint; certificate:pointer; certificate_size:Psize_t):longint;cdecl;
+ gnutls_pkcs7_set_crt_raw : function(pkcs7:Tgnutls_pkcs7_t; crt:Pgnutls_datum_t):longint;cdecl;
+ gnutls_pkcs7_set_crt : function(pkcs7:Tgnutls_pkcs7_t; crt:Tgnutls_x509_crt_t):longint;cdecl;
+ gnutls_pkcs7_delete_crt : function(pkcs7:Tgnutls_pkcs7_t; indx:longint):longint;cdecl;
+ gnutls_pkcs7_get_crl_raw : function(pkcs7:Tgnutls_pkcs7_t; indx:longint; crl:pointer; crl_size:Psize_t):longint;cdecl;
+ gnutls_pkcs7_get_crl_count : function(pkcs7:Tgnutls_pkcs7_t):longint;cdecl;
+ gnutls_pkcs7_set_crl_raw : function(pkcs7:Tgnutls_pkcs7_t; crl:Pgnutls_datum_t):longint;cdecl;
+ gnutls_pkcs7_set_crl : function(pkcs7:Tgnutls_pkcs7_t; crl:Tgnutls_x509_crl_t):longint;cdecl;
+ gnutls_pkcs7_delete_crl : function(pkcs7:Tgnutls_pkcs7_t; indx:longint):longint;cdecl;
+ gnutls_pkcs7_signature_info_deinit : procedure(info:Pgnutls_pkcs7_signature_info_st);cdecl;
+ gnutls_pkcs7_get_signature_info : function(pkcs7:Tgnutls_pkcs7_t; idx:dword; info:Pgnutls_pkcs7_signature_info_st):longint;cdecl;
+ gnutls_pkcs7_verify_direct : function(pkcs7:Tgnutls_pkcs7_t; signer:Tgnutls_x509_crt_t; idx:dword; data:Pgnutls_datum_t; flags:dword):longint;cdecl;
+ gnutls_pkcs7_verify : function(pkcs7:Tgnutls_pkcs7_t; tl:Tgnutls_x509_trust_list_t; vdata:Pgnutls_typed_vdata_st; vdata_size:dword; idx:dword;
+ data:Pgnutls_datum_t; flags:dword):longint;cdecl;
+ gnutls_pkcs7_add_attr : function(list:Pgnutls_pkcs7_attrs_t; oid:Pchar; data:Pgnutls_datum_t; flags:dword):longint;cdecl;
+ gnutls_pkcs7_attrs_deinit : procedure(list:Tgnutls_pkcs7_attrs_t);cdecl;
+ gnutls_pkcs7_get_attr : function(list:Tgnutls_pkcs7_attrs_t; idx:dword; oid:PPchar; data:Pgnutls_datum_t; flags:dword):longint;cdecl;
+ gnutls_pkcs7_sign : function(pkcs7:Tgnutls_pkcs7_t; signer:Tgnutls_x509_crt_t; signer_key:Tgnutls_privkey_t; data:Pgnutls_datum_t; signed_attrs:Tgnutls_pkcs7_attrs_t;
+ unsigned_attrs:Tgnutls_pkcs7_attrs_t; dig:Tgnutls_digest_algorithm_t; flags:dword):longint;cdecl;
+ gnutls_pkcs7_get_crt_raw2 : function(pkcs7:Tgnutls_pkcs7_t; indx:longint; cert:Pgnutls_datum_t):longint;cdecl;
+ gnutls_pkcs7_get_crl_raw2 : function(pkcs7:Tgnutls_pkcs7_t; indx:longint; crl:Pgnutls_datum_t):longint;cdecl;
+ gnutls_pkcs7_print : function(pkcs7:Tgnutls_pkcs7_t; format:Tgnutls_certificate_print_formats_t; outd:Pgnutls_datum_t):longint;cdecl;
+
+
+
+function GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION : Ttime_t;
+function gnutls_x509_crl_get_certificate_count(crl:Tgnutls_x509_crl_t) : cint;
+function gnutls_x509_crl_get_certificate (crl:Tgnutls_x509_crl_t; indx:longint; serial:Pbyte; serial_size:Psize_t; t:Ptime_t):longint;
-const
- GNUTLS_X509EXT_OID_KEY_USAGE = '2.5.29.15';
- GNUTLS_X509EXT_OID_PRIVATE_KEY_USAGE_PERIOD = '2.5.29.16';
- GNUTLS_X509EXT_OID_SAN = '2.5.29.17';
- GNUTLS_X509EXT_OID_IAN = '2.5.29.18';
- GNUTLS_X509EXT_OID_BASIC_CONSTRAINTS = '2.5.29.19';
- GNUTLS_X509EXT_OID_NAME_CONSTRAINTS = '2.5.29.30';
- GNUTLS_X509EXT_OID_CRL_DIST_POINTS = '2.5.29.31';
- GNUTLS_X509EXT_OID_CRT_POLICY = '2.5.29.32';
- GNUTLS_X509EXT_OID_AUTHORITY_KEY_ID = '2.5.29.35';
- GNUTLS_X509EXT_OID_EXTENDED_KEY_USAGE = '2.5.29.37';
- GNUTLS_X509EXT_OID_AUTHORITY_INFO_ACCESS = '1.3.6.1.5.5.7.1.1';
- GNUTLS_X509EXT_OID_PROXY_CRT_INFO = '1.3.6.1.5.5.7.1.14';
- GNUTLS_NAME_CONSTRAINTS_FLAG_APPEND = 1;
-
-
-const
- GNUTLS_MAX_QUALIFIERS = 8;
- GNUTLS_X509_DN_OID_RETURN_OID = 1;
- GNUTLS_VERIFY_ALLOW_BROKEN = GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD2 or GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD5;
- GNUTLS_VFLAGS_PROFILE_MASK = $ff000000;
- GNUTLS_PKCS8_PLAIN = GNUTLS_PKCS_PLAIN;
- GNUTLS_PKCS8_USE_PKCS12_3DES = GNUTLS_PKCS_PKCS12_3DES;
- GNUTLS_PKCS8_USE_PKCS12_ARCFOUR = GNUTLS_PKCS_PKCS12_ARCFOUR;
- GNUTLS_PKCS8_USE_PKCS12_RC2_40 = GNUTLS_PKCS_PKCS12_RC2_40;
- GNUTLS_PKCS_USE_PKCS12_3DES = GNUTLS_PKCS_PKCS12_3DES;
- GNUTLS_PKCS_USE_PKCS12_ARCFOUR = GNUTLS_PKCS_PKCS12_ARCFOUR;
- GNUTLS_PKCS_USE_PKCS12_RC2_40 = GNUTLS_PKCS_PKCS12_RC2_40;
- GNUTLS_PKCS_USE_PBES2_3DES = GNUTLS_PKCS_PBES2_3DES;
- GNUTLS_PKCS_USE_PBES2_AES_128 = GNUTLS_PKCS_PBES2_AES_128;
- GNUTLS_PKCS_USE_PBES2_AES_192 = GNUTLS_PKCS_PBES2_AES_192;
- GNUTLS_PKCS_USE_PBES2_AES_256 = GNUTLS_PKCS_PBES2_AES_256;
- GNUTLS_TL_VERIFY_CRL = 1;
- GNUTLS_TL_USE_IN_TLS = 1 shl 1;
- GNUTLS_TL_NO_DUPLICATES = 1 shl 2;
- GNUTLS_TL_NO_DUPLICATE_KEY = 1 shl 3;
- GNUTLS_TL_GET_COPY = 1 shl 4;
procedure gnutls_transport_set_int(s : tgnutls_session_t; r : cint);
@@ -1403,6 +1931,24 @@ implementation
uses
SysUtils, dynlibs;
+{ was #define dname def_expr }
+function GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION : Ttime_t;
+ begin
+ GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION:=Ttime_t(4294197631);
+ end;
+
+function gnutls_x509_crl_get_certificate (crl:Tgnutls_x509_crl_t; indx:longint; serial:Pbyte; serial_size:Psize_t; t:Ptime_t):longint;
+
+begin
+ Result:=gnutls_x509_crl_get_crt_serial(crl,indx,serial,serial_size,t);
+end;
+
+function gnutls_x509_crl_get_certificate_count(crl:Tgnutls_x509_crl_t) : cint;
+
+begin
+ Result:=gnutls_x509_crl_get_crt_count(crl);
+end;
+
procedure gnutls_transport_set_int(s : tgnutls_session_t; r : cint);
begin
@@ -1777,6 +2323,296 @@ begin
gnutls_supplemental_recv:=nil;
gnutls_supplemental_send:=nil;
gnutls_fips140_mode_enabled:=nil;
+ gnutls_x509_crt_init:=nil;
+ gnutls_x509_crt_deinit:=nil;
+ gnutls_x509_crt_import:=nil;
+ gnutls_x509_crt_list_import2:=nil;
+ gnutls_x509_crt_list_import:=nil;
+ gnutls_x509_crt_import_url:=nil;
+ gnutls_x509_crt_export:=nil;
+ gnutls_x509_crt_export2:=nil;
+ gnutls_x509_crt_get_private_key_usage_period:=nil;
+ gnutls_x509_crt_get_issuer_dn:=nil;
+ gnutls_x509_crt_get_issuer_dn2:=nil;
+ gnutls_x509_crt_get_issuer_dn_oid:=nil;
+ gnutls_x509_crt_get_issuer_dn_by_oid:=nil;
+ gnutls_x509_crt_get_dn:=nil;
+ gnutls_x509_crt_get_dn2:=nil;
+ gnutls_x509_crt_get_dn_oid:=nil;
+ gnutls_x509_crt_get_dn_by_oid:=nil;
+ gnutls_x509_crt_check_hostname:=nil;
+ gnutls_x509_crt_check_hostname2:=nil;
+ gnutls_x509_crt_check_email:=nil;
+ gnutls_x509_crt_get_signature_algorithm:=nil;
+ gnutls_x509_crt_get_signature:=nil;
+ gnutls_x509_crt_get_version:=nil;
+ gnutls_x509_crt_get_key_id:=nil;
+ gnutls_x509_crt_set_private_key_usage_period:=nil;
+ gnutls_x509_crt_set_authority_key_id:=nil;
+ gnutls_x509_crt_get_authority_key_id:=nil;
+ gnutls_x509_crt_get_authority_key_gn_serial:=nil;
+ gnutls_x509_crt_get_subject_key_id:=nil;
+ gnutls_x509_crt_get_subject_unique_id:=nil;
+ gnutls_x509_crt_get_issuer_unique_id:=nil;
+ gnutls_x509_crt_set_pin_function:=nil;
+ gnutls_x509_crt_get_authority_info_access:=nil;
+ gnutls_x509_name_constraints_check:=nil;
+ gnutls_x509_name_constraints_check_crt:=nil;
+ gnutls_x509_name_constraints_init:=nil;
+ gnutls_x509_name_constraints_deinit:=nil;
+ gnutls_x509_crt_get_name_constraints:=nil;
+ gnutls_x509_name_constraints_add_permitted:=nil;
+ gnutls_x509_name_constraints_add_excluded:=nil;
+ gnutls_x509_crt_set_name_constraints:=nil;
+ gnutls_x509_name_constraints_get_permitted:=nil;
+ gnutls_x509_name_constraints_get_excluded:=nil;
+ gnutls_x509_crt_get_crl_dist_points:=nil;
+ gnutls_x509_crt_set_crl_dist_points2:=nil;
+ gnutls_x509_crt_set_crl_dist_points:=nil;
+ gnutls_x509_crt_cpy_crl_dist_points:=nil;
+ gnutls_x509_crl_sign2:=nil;
+ gnutls_x509_crt_get_activation_time:=nil;
+ gnutls_x509_crt_get_expiration_time:=nil;
+ gnutls_x509_crt_get_serial:=nil;
+ gnutls_x509_crt_get_pk_algorithm:=nil;
+ gnutls_x509_crt_get_pk_rsa_raw:=nil;
+ gnutls_x509_crt_get_pk_dsa_raw:=nil;
+ gnutls_x509_crt_get_pk_ecc_raw:=nil;
+ gnutls_x509_crt_get_subject_alt_name:=nil;
+ gnutls_x509_crt_get_subject_alt_name2:=nil;
+ gnutls_x509_crt_get_subject_alt_othername_oid:=nil;
+ gnutls_x509_crt_get_issuer_alt_name:=nil;
+ gnutls_x509_crt_get_issuer_alt_name2:=nil;
+ gnutls_x509_crt_get_issuer_alt_othername_oid:=nil;
+ gnutls_x509_crt_get_ca_status:=nil;
+ gnutls_x509_crt_get_basic_constraints:=nil;
+ gnutls_x509_crt_get_key_usage:=nil;
+ gnutls_x509_crt_set_key_usage:=nil;
+ gnutls_x509_crt_set_authority_info_access:=nil;
+ gnutls_x509_crt_get_proxy:=nil;
+ gnutls_x509_policy_release:=nil;
+ gnutls_x509_crt_get_policy:=nil;
+ gnutls_x509_crt_set_policy:=nil;
+ gnutls_x509_dn_oid_known:=nil;
+ gnutls_x509_dn_oid_name:=nil;
+ gnutls_x509_crt_get_extension_oid:=nil;
+ gnutls_x509_crt_get_extension_by_oid:=nil;
+ gnutls_x509_crq_get_signature_algorithm:=nil;
+ gnutls_x509_crq_get_extension_by_oid2:=nil;
+ gnutls_x509_crt_get_extension_info:=nil;
+ gnutls_x509_crt_get_extension_data:=nil;
+ gnutls_x509_crt_get_extension_data2:=nil;
+ gnutls_x509_crt_set_extension_by_oid:=nil;
+ gnutls_x509_crt_set_dn:=nil;
+ gnutls_x509_crt_set_dn_by_oid:=nil;
+ gnutls_x509_crt_set_issuer_dn_by_oid:=nil;
+ gnutls_x509_crt_set_issuer_dn:=nil;
+ gnutls_x509_crt_set_version:=nil;
+ gnutls_x509_crt_set_key:=nil;
+ gnutls_x509_crt_set_ca_status:=nil;
+ gnutls_x509_crt_set_basic_constraints:=nil;
+ gnutls_x509_crt_set_subject_unique_id:=nil;
+ gnutls_x509_crt_set_issuer_unique_id:=nil;
+ gnutls_x509_crt_set_subject_alternative_name:=nil;
+ gnutls_x509_crt_set_subject_alt_name:=nil;
+ gnutls_x509_crt_set_issuer_alt_name:=nil;
+ gnutls_x509_crt_sign:=nil;
+ gnutls_x509_crt_sign2:=nil;
+ gnutls_x509_crt_set_activation_time:=nil;
+ gnutls_x509_crt_set_expiration_time:=nil;
+ gnutls_x509_crt_set_serial:=nil;
+ gnutls_x509_crt_set_subject_key_id:=nil;
+ gnutls_x509_crt_set_proxy_dn:=nil;
+ gnutls_x509_crt_set_proxy:=nil;
+ gnutls_x509_crt_print:=nil;
+ gnutls_x509_crl_print:=nil;
+ gnutls_x509_crt_get_raw_issuer_dn:=nil;
+ gnutls_x509_crt_get_raw_dn:=nil;
+ gnutls_x509_rdn_get:=nil;
+ gnutls_x509_rdn_get_oid:=nil;
+ gnutls_x509_rdn_get_by_oid:=nil;
+ gnutls_x509_crt_get_subject:=nil;
+ gnutls_x509_crt_get_issuer:=nil;
+ gnutls_x509_dn_get_rdn_ava:=nil;
+ gnutls_x509_dn_get_str:=nil;
+ gnutls_x509_dn_init:=nil;
+ gnutls_x509_dn_import:=nil;
+ gnutls_x509_dn_export:=nil;
+ gnutls_x509_dn_export2:=nil;
+ gnutls_x509_dn_deinit:=nil;
+ gnutls_x509_crl_init:=nil;
+ gnutls_x509_crl_deinit:=nil;
+ gnutls_x509_crl_import:=nil;
+ gnutls_x509_crl_export:=nil;
+ gnutls_x509_crl_export2:=nil;
+ gnutls_x509_crl_get_raw_issuer_dn:=nil;
+ gnutls_x509_crl_get_issuer_dn:=nil;
+ gnutls_x509_crl_get_issuer_dn2:=nil;
+ gnutls_x509_crl_get_issuer_dn_by_oid:=nil;
+ gnutls_x509_crl_get_dn_oid:=nil;
+ gnutls_x509_crl_get_signature_algorithm:=nil;
+ gnutls_x509_crl_get_signature:=nil;
+ gnutls_x509_crl_get_version:=nil;
+ gnutls_x509_crl_get_this_update:=nil;
+ gnutls_x509_crl_get_next_update:=nil;
+ gnutls_x509_crl_get_crt_count:=nil;
+ gnutls_x509_crl_get_crt_serial:=nil;
+ gnutls_x509_crl_iter_crt_serial:=nil;
+ gnutls_x509_crl_iter_deinit:=nil;
+ gnutls_x509_crl_check_issuer:=nil;
+ gnutls_x509_crl_list_import2:=nil;
+ gnutls_x509_crl_list_import:=nil;
+ gnutls_x509_crl_set_version:=nil;
+ gnutls_x509_crl_set_this_update:=nil;
+ gnutls_x509_crl_set_next_update:=nil;
+ gnutls_x509_crl_set_crt_serial:=nil;
+ gnutls_x509_crl_set_crt:=nil;
+ gnutls_x509_crl_get_authority_key_id:=nil;
+ gnutls_x509_crl_get_authority_key_gn_serial:=nil;
+ gnutls_x509_crl_get_number:=nil;
+ gnutls_x509_crl_get_extension_oid:=nil;
+ gnutls_x509_crl_get_extension_info:=nil;
+ gnutls_x509_crl_get_extension_data:=nil;
+ gnutls_x509_crl_get_extension_data2:=nil;
+ gnutls_x509_crl_set_authority_key_id:=nil;
+ gnutls_x509_crl_set_number:=nil;
+ gnutls_x509_crt_check_issuer:=nil;
+ gnutls_x509_crt_list_verify:=nil;
+ gnutls_x509_crt_verify:=nil;
+ gnutls_x509_crl_verify:=nil;
+ gnutls_x509_crt_verify_data2:=nil;
+ gnutls_x509_crt_check_revocation:=nil;
+ gnutls_x509_crt_get_fingerprint:=nil;
+ gnutls_x509_crt_get_key_purpose_oid:=nil;
+ gnutls_x509_crt_set_key_purpose_oid:=nil;
+ gnutls_pkcs_schema_get_name:=nil;
+ gnutls_pkcs_schema_get_oid:=nil;
+ gnutls_x509_privkey_init:=nil;
+ gnutls_x509_privkey_deinit:=nil;
+ gnutls_x509_privkey_sec_param:=nil;
+ gnutls_x509_privkey_set_pin_function:=nil;
+ gnutls_x509_privkey_cpy:=nil;
+ gnutls_x509_privkey_import:=nil;
+ gnutls_x509_privkey_import_pkcs8:=nil;
+ gnutls_x509_privkey_import_openssl:=nil;
+ gnutls_pkcs8_info:=nil;
+ gnutls_x509_privkey_import2:=nil;
+ gnutls_x509_privkey_import_rsa_raw:=nil;
+ gnutls_x509_privkey_import_rsa_raw2:=nil;
+ gnutls_x509_privkey_import_ecc_raw:=nil;
+ gnutls_x509_privkey_fix:=nil;
+ gnutls_x509_privkey_export_dsa_raw:=nil;
+ gnutls_x509_privkey_import_dsa_raw:=nil;
+ gnutls_x509_privkey_get_pk_algorithm:=nil;
+ gnutls_x509_privkey_get_pk_algorithm2:=nil;
+ gnutls_x509_privkey_get_key_id:=nil;
+ gnutls_x509_privkey_generate:=nil;
+ gnutls_x509_privkey_verify_params:=nil;
+ gnutls_x509_privkey_export:=nil;
+ gnutls_x509_privkey_export2:=nil;
+ gnutls_x509_privkey_export_pkcs8:=nil;
+ gnutls_x509_privkey_export2_pkcs8:=nil;
+ gnutls_x509_privkey_export_rsa_raw2:=nil;
+ gnutls_x509_privkey_export_rsa_raw:=nil;
+ gnutls_x509_privkey_export_ecc_raw:=nil;
+ gnutls_x509_privkey_sign_data:=nil;
+ gnutls_x509_crq_sign2:=nil;
+ gnutls_x509_crq_print:=nil;
+ gnutls_x509_crq_verify:=nil;
+ gnutls_x509_crq_init:=nil;
+ gnutls_x509_crq_deinit:=nil;
+ gnutls_x509_crq_import:=nil;
+ gnutls_x509_crq_get_private_key_usage_period:=nil;
+ gnutls_x509_crq_get_dn:=nil;
+ gnutls_x509_crq_get_dn2:=nil;
+ gnutls_x509_crq_get_dn_oid:=nil;
+ gnutls_x509_crq_get_dn_by_oid:=nil;
+ gnutls_x509_crq_set_dn:=nil;
+ gnutls_x509_crq_set_dn_by_oid:=nil;
+ gnutls_x509_crq_set_version:=nil;
+ gnutls_x509_crq_get_version:=nil;
+ gnutls_x509_crq_set_key:=nil;
+ gnutls_x509_crq_set_challenge_password:=nil;
+ gnutls_x509_crq_get_challenge_password:=nil;
+ gnutls_x509_crq_set_attribute_by_oid:=nil;
+ gnutls_x509_crq_get_attribute_by_oid:=nil;
+ gnutls_x509_crq_export:=nil;
+ gnutls_x509_crq_export2:=nil;
+ gnutls_x509_crt_set_crq:=nil;
+ gnutls_x509_crt_set_crq_extensions:=nil;
+ gnutls_x509_crq_set_private_key_usage_period:=nil;
+ gnutls_x509_crq_set_key_rsa_raw:=nil;
+ gnutls_x509_crq_set_subject_alt_name:=nil;
+ gnutls_x509_crq_set_key_usage:=nil;
+ gnutls_x509_crq_set_basic_constraints:=nil;
+ gnutls_x509_crq_set_key_purpose_oid:=nil;
+ gnutls_x509_crq_get_key_purpose_oid:=nil;
+ gnutls_x509_crq_get_extension_data:=nil;
+ gnutls_x509_crq_get_extension_data2:=nil;
+ gnutls_x509_crq_get_extension_info:=nil;
+ gnutls_x509_crq_get_attribute_data:=nil;
+ gnutls_x509_crq_get_attribute_info:=nil;
+ gnutls_x509_crq_get_pk_algorithm:=nil;
+ gnutls_x509_crq_get_key_id:=nil;
+ gnutls_x509_crq_get_key_rsa_raw:=nil;
+ gnutls_x509_crq_get_key_usage:=nil;
+ gnutls_x509_crq_get_basic_constraints:=nil;
+ gnutls_x509_crq_get_subject_alt_name:=nil;
+ gnutls_x509_crq_get_subject_alt_othername_oid:=nil;
+ gnutls_x509_crq_get_extension_by_oid:=nil;
+ gnutls_x509_crt_get_extension_by_oid2:=nil;
+ gnutls_x509_trust_list_init:=nil;
+ gnutls_x509_trust_list_deinit:=nil;
+ gnutls_x509_trust_list_get_issuer:=nil;
+ gnutls_x509_trust_list_get_issuer_by_dn:=nil;
+ gnutls_x509_trust_list_get_issuer_by_subject_key_id:=nil;
+ gnutls_x509_trust_list_add_cas:=nil;
+ gnutls_x509_trust_list_remove_cas:=nil;
+ gnutls_x509_trust_list_add_named_crt:=nil;
+ gnutls_x509_trust_list_add_crls:=nil;
+ gnutls_x509_trust_list_iter_get_ca:=nil;
+ gnutls_x509_trust_list_iter_deinit:=nil;
+ gnutls_x509_trust_list_verify_named_crt:=nil;
+ gnutls_x509_trust_list_verify_crt2:=nil;
+ gnutls_x509_trust_list_verify_crt:=nil;
+ gnutls_x509_trust_list_add_trust_mem:=nil;
+ gnutls_x509_trust_list_add_trust_file:=nil;
+ gnutls_x509_trust_list_add_trust_dir:=nil;
+ gnutls_x509_trust_list_remove_trust_file:=nil;
+ gnutls_x509_trust_list_remove_trust_mem:=nil;
+ gnutls_x509_trust_list_add_system_trust:=nil;
+ gnutls_certificate_set_trust_list:=nil;
+ gnutls_certificate_get_trust_list:=nil;
+ gnutls_x509_ext_deinit:=nil;
+ gnutls_x509_ext_print:=nil;
+ gnutls_pkcs7_init:=nil;
+ gnutls_pkcs7_deinit:=nil;
+ gnutls_pkcs7_import:=nil;
+ gnutls_pkcs7_export:=nil;
+ gnutls_pkcs7_export2:=nil;
+ gnutls_pkcs7_get_signature_count:=nil;
+ gnutls_pkcs7_get_embedded_data:=nil;
+ gnutls_pkcs7_get_crt_count:=nil;
+ gnutls_pkcs7_get_crt_raw:=nil;
+ gnutls_pkcs7_set_crt_raw:=nil;
+ gnutls_pkcs7_set_crt:=nil;
+ gnutls_pkcs7_delete_crt:=nil;
+ gnutls_pkcs7_get_crl_raw:=nil;
+ gnutls_pkcs7_get_crl_count:=nil;
+ gnutls_pkcs7_set_crl_raw:=nil;
+ gnutls_pkcs7_set_crl:=nil;
+ gnutls_pkcs7_delete_crl:=nil;
+ gnutls_pkcs7_signature_info_deinit:=nil;
+ gnutls_pkcs7_get_signature_info:=nil;
+ gnutls_pkcs7_verify_direct:=nil;
+ gnutls_pkcs7_verify:=nil;
+ gnutls_pkcs7_add_attr:=nil;
+ gnutls_pkcs7_attrs_deinit:=nil;
+ gnutls_pkcs7_get_attr:=nil;
+ gnutls_pkcs7_sign:=nil;
+ gnutls_pkcs7_get_crt_raw2:=nil;
+ gnutls_pkcs7_get_crl_raw2:=nil;
+ gnutls_pkcs7_print:=nil;
end;
@@ -1787,8 +2623,8 @@ procedure LoadGnuTLS(alib : String = '');
begin
Result:=GetProcAddress(hlib,aName);
// For debugging purposes
- // if Result=Nil then
- // Writeln('Failed to get address for '+AName);
+ if Result=Nil then
+ Writeln('Failed to get address for '+AName);
end;
begin
@@ -2155,6 +2991,296 @@ begin
pointer(gnutls_supplemental_recv):=GPA('gnutls_supplemental_recv');
pointer(gnutls_supplemental_send):=GPA('gnutls_supplemental_send');
pointer(gnutls_fips140_mode_enabled):=GPA('gnutls_fips140_mode_enabled');
+ pointer(gnutls_x509_crt_init):=GPA('gnutls_x509_crt_init');
+ pointer(gnutls_x509_crt_deinit):=GPA('gnutls_x509_crt_deinit');
+ pointer(gnutls_x509_crt_import):=GPA('gnutls_x509_crt_import');
+ pointer(gnutls_x509_crt_list_import2):=GPA('gnutls_x509_crt_list_import2');
+ pointer(gnutls_x509_crt_list_import):=GPA('gnutls_x509_crt_list_import');
+ pointer(gnutls_x509_crt_import_url):=GPA('gnutls_x509_crt_import_url');
+ pointer(gnutls_x509_crt_export):=GPA('gnutls_x509_crt_export');
+ pointer(gnutls_x509_crt_export2):=GPA('gnutls_x509_crt_export2');
+ pointer(gnutls_x509_crt_get_private_key_usage_period):=GPA('gnutls_x509_crt_get_private_key_usage_period');
+ pointer(gnutls_x509_crt_get_issuer_dn):=GPA('gnutls_x509_crt_get_issuer_dn');
+ pointer(gnutls_x509_crt_get_issuer_dn2):=GPA('gnutls_x509_crt_get_issuer_dn2');
+ pointer(gnutls_x509_crt_get_issuer_dn_oid):=GPA('gnutls_x509_crt_get_issuer_dn_oid');
+ pointer(gnutls_x509_crt_get_issuer_dn_by_oid):=GPA('gnutls_x509_crt_get_issuer_dn_by_oid');
+ pointer(gnutls_x509_crt_get_dn):=GPA('gnutls_x509_crt_get_dn');
+ pointer(gnutls_x509_crt_get_dn2):=GPA('gnutls_x509_crt_get_dn2');
+ pointer(gnutls_x509_crt_get_dn_oid):=GPA('gnutls_x509_crt_get_dn_oid');
+ pointer(gnutls_x509_crt_get_dn_by_oid):=GPA('gnutls_x509_crt_get_dn_by_oid');
+ pointer(gnutls_x509_crt_check_hostname):=GPA('gnutls_x509_crt_check_hostname');
+ pointer(gnutls_x509_crt_check_hostname2):=GPA('gnutls_x509_crt_check_hostname2');
+ pointer(gnutls_x509_crt_check_email):=GPA('gnutls_x509_crt_check_email');
+ pointer(gnutls_x509_crt_get_signature_algorithm):=GPA('gnutls_x509_crt_get_signature_algorithm');
+ pointer(gnutls_x509_crt_get_signature):=GPA('gnutls_x509_crt_get_signature');
+ pointer(gnutls_x509_crt_get_version):=GPA('gnutls_x509_crt_get_version');
+ pointer(gnutls_x509_crt_get_key_id):=GPA('gnutls_x509_crt_get_key_id');
+ pointer(gnutls_x509_crt_set_private_key_usage_period):=GPA('gnutls_x509_crt_set_private_key_usage_period');
+ pointer(gnutls_x509_crt_set_authority_key_id):=GPA('gnutls_x509_crt_set_authority_key_id');
+ pointer(gnutls_x509_crt_get_authority_key_id):=GPA('gnutls_x509_crt_get_authority_key_id');
+ pointer(gnutls_x509_crt_get_authority_key_gn_serial):=GPA('gnutls_x509_crt_get_authority_key_gn_serial');
+ pointer(gnutls_x509_crt_get_subject_key_id):=GPA('gnutls_x509_crt_get_subject_key_id');
+ pointer(gnutls_x509_crt_get_subject_unique_id):=GPA('gnutls_x509_crt_get_subject_unique_id');
+ pointer(gnutls_x509_crt_get_issuer_unique_id):=GPA('gnutls_x509_crt_get_issuer_unique_id');
+ pointer(gnutls_x509_crt_set_pin_function):=GPA('gnutls_x509_crt_set_pin_function');
+ pointer(gnutls_x509_crt_get_authority_info_access):=GPA('gnutls_x509_crt_get_authority_info_access');
+ pointer(gnutls_x509_name_constraints_check):=GPA('gnutls_x509_name_constraints_check');
+ pointer(gnutls_x509_name_constraints_check_crt):=GPA('gnutls_x509_name_constraints_check_crt');
+ pointer(gnutls_x509_name_constraints_init):=GPA('gnutls_x509_name_constraints_init');
+ pointer(gnutls_x509_name_constraints_deinit):=GPA('gnutls_x509_name_constraints_deinit');
+ pointer(gnutls_x509_crt_get_name_constraints):=GPA('gnutls_x509_crt_get_name_constraints');
+ pointer(gnutls_x509_name_constraints_add_permitted):=GPA('gnutls_x509_name_constraints_add_permitted');
+ pointer(gnutls_x509_name_constraints_add_excluded):=GPA('gnutls_x509_name_constraints_add_excluded');
+ pointer(gnutls_x509_crt_set_name_constraints):=GPA('gnutls_x509_crt_set_name_constraints');
+ pointer(gnutls_x509_name_constraints_get_permitted):=GPA('gnutls_x509_name_constraints_get_permitted');
+ pointer(gnutls_x509_name_constraints_get_excluded):=GPA('gnutls_x509_name_constraints_get_excluded');
+ pointer(gnutls_x509_crt_get_crl_dist_points):=GPA('gnutls_x509_crt_get_crl_dist_points');
+ pointer(gnutls_x509_crt_set_crl_dist_points2):=GPA('gnutls_x509_crt_set_crl_dist_points2');
+ pointer(gnutls_x509_crt_set_crl_dist_points):=GPA('gnutls_x509_crt_set_crl_dist_points');
+ pointer(gnutls_x509_crt_cpy_crl_dist_points):=GPA('gnutls_x509_crt_cpy_crl_dist_points');
+ pointer(gnutls_x509_crl_sign2):=GPA('gnutls_x509_crl_sign2');
+ pointer(gnutls_x509_crt_get_activation_time):=GPA('gnutls_x509_crt_get_activation_time');
+ pointer(gnutls_x509_crt_get_expiration_time):=GPA('gnutls_x509_crt_get_expiration_time');
+ pointer(gnutls_x509_crt_get_serial):=GPA('gnutls_x509_crt_get_serial');
+ pointer(gnutls_x509_crt_get_pk_algorithm):=GPA('gnutls_x509_crt_get_pk_algorithm');
+ pointer(gnutls_x509_crt_get_pk_rsa_raw):=GPA('gnutls_x509_crt_get_pk_rsa_raw');
+ pointer(gnutls_x509_crt_get_pk_dsa_raw):=GPA('gnutls_x509_crt_get_pk_dsa_raw');
+ pointer(gnutls_x509_crt_get_pk_ecc_raw):=GPA('gnutls_x509_crt_get_pk_ecc_raw');
+ pointer(gnutls_x509_crt_get_subject_alt_name):=GPA('gnutls_x509_crt_get_subject_alt_name');
+ pointer(gnutls_x509_crt_get_subject_alt_name2):=GPA('gnutls_x509_crt_get_subject_alt_name2');
+ pointer(gnutls_x509_crt_get_subject_alt_othername_oid):=GPA('gnutls_x509_crt_get_subject_alt_othername_oid');
+ pointer(gnutls_x509_crt_get_issuer_alt_name):=GPA('gnutls_x509_crt_get_issuer_alt_name');
+ pointer(gnutls_x509_crt_get_issuer_alt_name2):=GPA('gnutls_x509_crt_get_issuer_alt_name2');
+ pointer(gnutls_x509_crt_get_issuer_alt_othername_oid):=GPA('gnutls_x509_crt_get_issuer_alt_othername_oid');
+ pointer(gnutls_x509_crt_get_ca_status):=GPA('gnutls_x509_crt_get_ca_status');
+ pointer(gnutls_x509_crt_get_basic_constraints):=GPA('gnutls_x509_crt_get_basic_constraints');
+ pointer(gnutls_x509_crt_get_key_usage):=GPA('gnutls_x509_crt_get_key_usage');
+ pointer(gnutls_x509_crt_set_key_usage):=GPA('gnutls_x509_crt_set_key_usage');
+ pointer(gnutls_x509_crt_set_authority_info_access):=GPA('gnutls_x509_crt_set_authority_info_access');
+ pointer(gnutls_x509_crt_get_proxy):=GPA('gnutls_x509_crt_get_proxy');
+ pointer(gnutls_x509_policy_release):=GPA('gnutls_x509_policy_release');
+ pointer(gnutls_x509_crt_get_policy):=GPA('gnutls_x509_crt_get_policy');
+ pointer(gnutls_x509_crt_set_policy):=GPA('gnutls_x509_crt_set_policy');
+ pointer(gnutls_x509_dn_oid_known):=GPA('gnutls_x509_dn_oid_known');
+ pointer(gnutls_x509_dn_oid_name):=GPA('gnutls_x509_dn_oid_name');
+ pointer(gnutls_x509_crt_get_extension_oid):=GPA('gnutls_x509_crt_get_extension_oid');
+ pointer(gnutls_x509_crt_get_extension_by_oid):=GPA('gnutls_x509_crt_get_extension_by_oid');
+ pointer(gnutls_x509_crq_get_signature_algorithm):=GPA('gnutls_x509_crq_get_signature_algorithm');
+ pointer(gnutls_x509_crq_get_extension_by_oid2):=GPA('gnutls_x509_crq_get_extension_by_oid2');
+ pointer(gnutls_x509_crt_get_extension_info):=GPA('gnutls_x509_crt_get_extension_info');
+ pointer(gnutls_x509_crt_get_extension_data):=GPA('gnutls_x509_crt_get_extension_data');
+ pointer(gnutls_x509_crt_get_extension_data2):=GPA('gnutls_x509_crt_get_extension_data2');
+ pointer(gnutls_x509_crt_set_extension_by_oid):=GPA('gnutls_x509_crt_set_extension_by_oid');
+ pointer(gnutls_x509_crt_set_dn):=GPA('gnutls_x509_crt_set_dn');
+ pointer(gnutls_x509_crt_set_dn_by_oid):=GPA('gnutls_x509_crt_set_dn_by_oid');
+ pointer(gnutls_x509_crt_set_issuer_dn_by_oid):=GPA('gnutls_x509_crt_set_issuer_dn_by_oid');
+ pointer(gnutls_x509_crt_set_issuer_dn):=GPA('gnutls_x509_crt_set_issuer_dn');
+ pointer(gnutls_x509_crt_set_version):=GPA('gnutls_x509_crt_set_version');
+ pointer(gnutls_x509_crt_set_key):=GPA('gnutls_x509_crt_set_key');
+ pointer(gnutls_x509_crt_set_ca_status):=GPA('gnutls_x509_crt_set_ca_status');
+ pointer(gnutls_x509_crt_set_basic_constraints):=GPA('gnutls_x509_crt_set_basic_constraints');
+ pointer(gnutls_x509_crt_set_subject_unique_id):=GPA('gnutls_x509_crt_set_subject_unique_id');
+ pointer(gnutls_x509_crt_set_issuer_unique_id):=GPA('gnutls_x509_crt_set_issuer_unique_id');
+ pointer(gnutls_x509_crt_set_subject_alternative_name):=GPA('gnutls_x509_crt_set_subject_alternative_name');
+ pointer(gnutls_x509_crt_set_subject_alt_name):=GPA('gnutls_x509_crt_set_subject_alt_name');
+ pointer(gnutls_x509_crt_set_issuer_alt_name):=GPA('gnutls_x509_crt_set_issuer_alt_name');
+ pointer(gnutls_x509_crt_sign):=GPA('gnutls_x509_crt_sign');
+ pointer(gnutls_x509_crt_sign2):=GPA('gnutls_x509_crt_sign2');
+ pointer(gnutls_x509_crt_set_activation_time):=GPA('gnutls_x509_crt_set_activation_time');
+ pointer(gnutls_x509_crt_set_expiration_time):=GPA('gnutls_x509_crt_set_expiration_time');
+ pointer(gnutls_x509_crt_set_serial):=GPA('gnutls_x509_crt_set_serial');
+ pointer(gnutls_x509_crt_set_subject_key_id):=GPA('gnutls_x509_crt_set_subject_key_id');
+ pointer(gnutls_x509_crt_set_proxy_dn):=GPA('gnutls_x509_crt_set_proxy_dn');
+ pointer(gnutls_x509_crt_set_proxy):=GPA('gnutls_x509_crt_set_proxy');
+ pointer(gnutls_x509_crt_print):=GPA('gnutls_x509_crt_print');
+ pointer(gnutls_x509_crl_print):=GPA('gnutls_x509_crl_print');
+ pointer(gnutls_x509_crt_get_raw_issuer_dn):=GPA('gnutls_x509_crt_get_raw_issuer_dn');
+ pointer(gnutls_x509_crt_get_raw_dn):=GPA('gnutls_x509_crt_get_raw_dn');
+ pointer(gnutls_x509_rdn_get):=GPA('gnutls_x509_rdn_get');
+ pointer(gnutls_x509_rdn_get_oid):=GPA('gnutls_x509_rdn_get_oid');
+ pointer(gnutls_x509_rdn_get_by_oid):=GPA('gnutls_x509_rdn_get_by_oid');
+ pointer(gnutls_x509_crt_get_subject):=GPA('gnutls_x509_crt_get_subject');
+ pointer(gnutls_x509_crt_get_issuer):=GPA('gnutls_x509_crt_get_issuer');
+ pointer(gnutls_x509_dn_get_rdn_ava):=GPA('gnutls_x509_dn_get_rdn_ava');
+ pointer(gnutls_x509_dn_get_str):=GPA('gnutls_x509_dn_get_str');
+ pointer(gnutls_x509_dn_init):=GPA('gnutls_x509_dn_init');
+ pointer(gnutls_x509_dn_import):=GPA('gnutls_x509_dn_import');
+ pointer(gnutls_x509_dn_export):=GPA('gnutls_x509_dn_export');
+ pointer(gnutls_x509_dn_export2):=GPA('gnutls_x509_dn_export2');
+ pointer(gnutls_x509_dn_deinit):=GPA('gnutls_x509_dn_deinit');
+ pointer(gnutls_x509_crl_init):=GPA('gnutls_x509_crl_init');
+ pointer(gnutls_x509_crl_deinit):=GPA('gnutls_x509_crl_deinit');
+ pointer(gnutls_x509_crl_import):=GPA('gnutls_x509_crl_import');
+ pointer(gnutls_x509_crl_export):=GPA('gnutls_x509_crl_export');
+ pointer(gnutls_x509_crl_export2):=GPA('gnutls_x509_crl_export2');
+ pointer(gnutls_x509_crl_get_raw_issuer_dn):=GPA('gnutls_x509_crl_get_raw_issuer_dn');
+ pointer(gnutls_x509_crl_get_issuer_dn):=GPA('gnutls_x509_crl_get_issuer_dn');
+ pointer(gnutls_x509_crl_get_issuer_dn2):=GPA('gnutls_x509_crl_get_issuer_dn2');
+ pointer(gnutls_x509_crl_get_issuer_dn_by_oid):=GPA('gnutls_x509_crl_get_issuer_dn_by_oid');
+ pointer(gnutls_x509_crl_get_dn_oid):=GPA('gnutls_x509_crl_get_dn_oid');
+ pointer(gnutls_x509_crl_get_signature_algorithm):=GPA('gnutls_x509_crl_get_signature_algorithm');
+ pointer(gnutls_x509_crl_get_signature):=GPA('gnutls_x509_crl_get_signature');
+ pointer(gnutls_x509_crl_get_version):=GPA('gnutls_x509_crl_get_version');
+ pointer(gnutls_x509_crl_get_this_update):=GPA('gnutls_x509_crl_get_this_update');
+ pointer(gnutls_x509_crl_get_next_update):=GPA('gnutls_x509_crl_get_next_update');
+ pointer(gnutls_x509_crl_get_crt_count):=GPA('gnutls_x509_crl_get_crt_count');
+ pointer(gnutls_x509_crl_get_crt_serial):=GPA('gnutls_x509_crl_get_crt_serial');
+ pointer(gnutls_x509_crl_iter_crt_serial):=GPA('gnutls_x509_crl_iter_crt_serial');
+ pointer(gnutls_x509_crl_iter_deinit):=GPA('gnutls_x509_crl_iter_deinit');
+ pointer(gnutls_x509_crl_check_issuer):=GPA('gnutls_x509_crl_check_issuer');
+ pointer(gnutls_x509_crl_list_import2):=GPA('gnutls_x509_crl_list_import2');
+ pointer(gnutls_x509_crl_list_import):=GPA('gnutls_x509_crl_list_import');
+ pointer(gnutls_x509_crl_set_version):=GPA('gnutls_x509_crl_set_version');
+ pointer(gnutls_x509_crl_set_this_update):=GPA('gnutls_x509_crl_set_this_update');
+ pointer(gnutls_x509_crl_set_next_update):=GPA('gnutls_x509_crl_set_next_update');
+ pointer(gnutls_x509_crl_set_crt_serial):=GPA('gnutls_x509_crl_set_crt_serial');
+ pointer(gnutls_x509_crl_set_crt):=GPA('gnutls_x509_crl_set_crt');
+ pointer(gnutls_x509_crl_get_authority_key_id):=GPA('gnutls_x509_crl_get_authority_key_id');
+ pointer(gnutls_x509_crl_get_authority_key_gn_serial):=GPA('gnutls_x509_crl_get_authority_key_gn_serial');
+ pointer(gnutls_x509_crl_get_number):=GPA('gnutls_x509_crl_get_number');
+ pointer(gnutls_x509_crl_get_extension_oid):=GPA('gnutls_x509_crl_get_extension_oid');
+ pointer(gnutls_x509_crl_get_extension_info):=GPA('gnutls_x509_crl_get_extension_info');
+ pointer(gnutls_x509_crl_get_extension_data):=GPA('gnutls_x509_crl_get_extension_data');
+ pointer(gnutls_x509_crl_get_extension_data2):=GPA('gnutls_x509_crl_get_extension_data2');
+ pointer(gnutls_x509_crl_set_authority_key_id):=GPA('gnutls_x509_crl_set_authority_key_id');
+ pointer(gnutls_x509_crl_set_number):=GPA('gnutls_x509_crl_set_number');
+ pointer(gnutls_x509_crt_check_issuer):=GPA('gnutls_x509_crt_check_issuer');
+ pointer(gnutls_x509_crt_list_verify):=GPA('gnutls_x509_crt_list_verify');
+ pointer(gnutls_x509_crt_verify):=GPA('gnutls_x509_crt_verify');
+ pointer(gnutls_x509_crl_verify):=GPA('gnutls_x509_crl_verify');
+ pointer(gnutls_x509_crt_verify_data2):=GPA('gnutls_x509_crt_verify_data2');
+ pointer(gnutls_x509_crt_check_revocation):=GPA('gnutls_x509_crt_check_revocation');
+ pointer(gnutls_x509_crt_get_fingerprint):=GPA('gnutls_x509_crt_get_fingerprint');
+ pointer(gnutls_x509_crt_get_key_purpose_oid):=GPA('gnutls_x509_crt_get_key_purpose_oid');
+ pointer(gnutls_x509_crt_set_key_purpose_oid):=GPA('gnutls_x509_crt_set_key_purpose_oid');
+ pointer(gnutls_pkcs_schema_get_name):=GPA('gnutls_pkcs_schema_get_name');
+ pointer(gnutls_pkcs_schema_get_oid):=GPA('gnutls_pkcs_schema_get_oid');
+ pointer(gnutls_x509_privkey_init):=GPA('gnutls_x509_privkey_init');
+ pointer(gnutls_x509_privkey_deinit):=GPA('gnutls_x509_privkey_deinit');
+ pointer(gnutls_x509_privkey_sec_param):=GPA('gnutls_x509_privkey_sec_param');
+ pointer(gnutls_x509_privkey_set_pin_function):=GPA('gnutls_x509_privkey_set_pin_function');
+ pointer(gnutls_x509_privkey_cpy):=GPA('gnutls_x509_privkey_cpy');
+ pointer(gnutls_x509_privkey_import):=GPA('gnutls_x509_privkey_import');
+ pointer(gnutls_x509_privkey_import_pkcs8):=GPA('gnutls_x509_privkey_import_pkcs8');
+ pointer(gnutls_x509_privkey_import_openssl):=GPA('gnutls_x509_privkey_import_openssl');
+ pointer(gnutls_pkcs8_info):=GPA('gnutls_pkcs8_info');
+ pointer(gnutls_x509_privkey_import2):=GPA('gnutls_x509_privkey_import2');
+ pointer(gnutls_x509_privkey_import_rsa_raw):=GPA('gnutls_x509_privkey_import_rsa_raw');
+ pointer(gnutls_x509_privkey_import_rsa_raw2):=GPA('gnutls_x509_privkey_import_rsa_raw2');
+ pointer(gnutls_x509_privkey_import_ecc_raw):=GPA('gnutls_x509_privkey_import_ecc_raw');
+ pointer(gnutls_x509_privkey_fix):=GPA('gnutls_x509_privkey_fix');
+ pointer(gnutls_x509_privkey_export_dsa_raw):=GPA('gnutls_x509_privkey_export_dsa_raw');
+ pointer(gnutls_x509_privkey_import_dsa_raw):=GPA('gnutls_x509_privkey_import_dsa_raw');
+ pointer(gnutls_x509_privkey_get_pk_algorithm):=GPA('gnutls_x509_privkey_get_pk_algorithm');
+ pointer(gnutls_x509_privkey_get_pk_algorithm2):=GPA('gnutls_x509_privkey_get_pk_algorithm2');
+ pointer(gnutls_x509_privkey_get_key_id):=GPA('gnutls_x509_privkey_get_key_id');
+ pointer(gnutls_x509_privkey_generate):=GPA('gnutls_x509_privkey_generate');
+ pointer(gnutls_x509_privkey_verify_params):=GPA('gnutls_x509_privkey_verify_params');
+ pointer(gnutls_x509_privkey_export):=GPA('gnutls_x509_privkey_export');
+ pointer(gnutls_x509_privkey_export2):=GPA('gnutls_x509_privkey_export2');
+ pointer(gnutls_x509_privkey_export_pkcs8):=GPA('gnutls_x509_privkey_export_pkcs8');
+ pointer(gnutls_x509_privkey_export2_pkcs8):=GPA('gnutls_x509_privkey_export2_pkcs8');
+ pointer(gnutls_x509_privkey_export_rsa_raw2):=GPA('gnutls_x509_privkey_export_rsa_raw2');
+ pointer(gnutls_x509_privkey_export_rsa_raw):=GPA('gnutls_x509_privkey_export_rsa_raw');
+ pointer(gnutls_x509_privkey_export_ecc_raw):=GPA('gnutls_x509_privkey_export_ecc_raw');
+ pointer(gnutls_x509_privkey_sign_data):=GPA('gnutls_x509_privkey_sign_data');
+ pointer(gnutls_x509_crq_sign2):=GPA('gnutls_x509_crq_sign2');
+ pointer(gnutls_x509_crq_print):=GPA('gnutls_x509_crq_print');
+ pointer(gnutls_x509_crq_verify):=GPA('gnutls_x509_crq_verify');
+ pointer(gnutls_x509_crq_init):=GPA('gnutls_x509_crq_init');
+ pointer(gnutls_x509_crq_deinit):=GPA('gnutls_x509_crq_deinit');
+ pointer(gnutls_x509_crq_import):=GPA('gnutls_x509_crq_import');
+ pointer(gnutls_x509_crq_get_private_key_usage_period):=GPA('gnutls_x509_crq_get_private_key_usage_period');
+ pointer(gnutls_x509_crq_get_dn):=GPA('gnutls_x509_crq_get_dn');
+ pointer(gnutls_x509_crq_get_dn2):=GPA('gnutls_x509_crq_get_dn2');
+ pointer(gnutls_x509_crq_get_dn_oid):=GPA('gnutls_x509_crq_get_dn_oid');
+ pointer(gnutls_x509_crq_get_dn_by_oid):=GPA('gnutls_x509_crq_get_dn_by_oid');
+ pointer(gnutls_x509_crq_set_dn):=GPA('gnutls_x509_crq_set_dn');
+ pointer(gnutls_x509_crq_set_dn_by_oid):=GPA('gnutls_x509_crq_set_dn_by_oid');
+ pointer(gnutls_x509_crq_set_version):=GPA('gnutls_x509_crq_set_version');
+ pointer(gnutls_x509_crq_get_version):=GPA('gnutls_x509_crq_get_version');
+ pointer(gnutls_x509_crq_set_key):=GPA('gnutls_x509_crq_set_key');
+ pointer(gnutls_x509_crq_set_challenge_password):=GPA('gnutls_x509_crq_set_challenge_password');
+ pointer(gnutls_x509_crq_get_challenge_password):=GPA('gnutls_x509_crq_get_challenge_password');
+ pointer(gnutls_x509_crq_set_attribute_by_oid):=GPA('gnutls_x509_crq_set_attribute_by_oid');
+ pointer(gnutls_x509_crq_get_attribute_by_oid):=GPA('gnutls_x509_crq_get_attribute_by_oid');
+ pointer(gnutls_x509_crq_export):=GPA('gnutls_x509_crq_export');
+ pointer(gnutls_x509_crq_export2):=GPA('gnutls_x509_crq_export2');
+ pointer(gnutls_x509_crt_set_crq):=GPA('gnutls_x509_crt_set_crq');
+ pointer(gnutls_x509_crt_set_crq_extensions):=GPA('gnutls_x509_crt_set_crq_extensions');
+ pointer(gnutls_x509_crq_set_private_key_usage_period):=GPA('gnutls_x509_crq_set_private_key_usage_period');
+ pointer(gnutls_x509_crq_set_key_rsa_raw):=GPA('gnutls_x509_crq_set_key_rsa_raw');
+ pointer(gnutls_x509_crq_set_subject_alt_name):=GPA('gnutls_x509_crq_set_subject_alt_name');
+ pointer(gnutls_x509_crq_set_key_usage):=GPA('gnutls_x509_crq_set_key_usage');
+ pointer(gnutls_x509_crq_set_basic_constraints):=GPA('gnutls_x509_crq_set_basic_constraints');
+ pointer(gnutls_x509_crq_set_key_purpose_oid):=GPA('gnutls_x509_crq_set_key_purpose_oid');
+ pointer(gnutls_x509_crq_get_key_purpose_oid):=GPA('gnutls_x509_crq_get_key_purpose_oid');
+ pointer(gnutls_x509_crq_get_extension_data):=GPA('gnutls_x509_crq_get_extension_data');
+ pointer(gnutls_x509_crq_get_extension_data2):=GPA('gnutls_x509_crq_get_extension_data2');
+ pointer(gnutls_x509_crq_get_extension_info):=GPA('gnutls_x509_crq_get_extension_info');
+ pointer(gnutls_x509_crq_get_attribute_data):=GPA('gnutls_x509_crq_get_attribute_data');
+ pointer(gnutls_x509_crq_get_attribute_info):=GPA('gnutls_x509_crq_get_attribute_info');
+ pointer(gnutls_x509_crq_get_pk_algorithm):=GPA('gnutls_x509_crq_get_pk_algorithm');
+ pointer(gnutls_x509_crq_get_key_id):=GPA('gnutls_x509_crq_get_key_id');
+ pointer(gnutls_x509_crq_get_key_rsa_raw):=GPA('gnutls_x509_crq_get_key_rsa_raw');
+ pointer(gnutls_x509_crq_get_key_usage):=GPA('gnutls_x509_crq_get_key_usage');
+ pointer(gnutls_x509_crq_get_basic_constraints):=GPA('gnutls_x509_crq_get_basic_constraints');
+ pointer(gnutls_x509_crq_get_subject_alt_name):=GPA('gnutls_x509_crq_get_subject_alt_name');
+ pointer(gnutls_x509_crq_get_subject_alt_othername_oid):=GPA('gnutls_x509_crq_get_subject_alt_othername_oid');
+ pointer(gnutls_x509_crq_get_extension_by_oid):=GPA('gnutls_x509_crq_get_extension_by_oid');
+ pointer(gnutls_x509_crt_get_extension_by_oid2):=GPA('gnutls_x509_crt_get_extension_by_oid2');
+ pointer(gnutls_x509_trust_list_init):=GPA('gnutls_x509_trust_list_init');
+ pointer(gnutls_x509_trust_list_deinit):=GPA('gnutls_x509_trust_list_deinit');
+ pointer(gnutls_x509_trust_list_get_issuer):=GPA('gnutls_x509_trust_list_get_issuer');
+ pointer(gnutls_x509_trust_list_get_issuer_by_dn):=GPA('gnutls_x509_trust_list_get_issuer_by_dn');
+ pointer(gnutls_x509_trust_list_get_issuer_by_subject_key_id):=GPA('gnutls_x509_trust_list_get_issuer_by_subject_key_id');
+ pointer(gnutls_x509_trust_list_add_cas):=GPA('gnutls_x509_trust_list_add_cas');
+ pointer(gnutls_x509_trust_list_remove_cas):=GPA('gnutls_x509_trust_list_remove_cas');
+ pointer(gnutls_x509_trust_list_add_named_crt):=GPA('gnutls_x509_trust_list_add_named_crt');
+ pointer(gnutls_x509_trust_list_add_crls):=GPA('gnutls_x509_trust_list_add_crls');
+ pointer(gnutls_x509_trust_list_iter_get_ca):=GPA('gnutls_x509_trust_list_iter_get_ca');
+ pointer(gnutls_x509_trust_list_iter_deinit):=GPA('gnutls_x509_trust_list_iter_deinit');
+ pointer(gnutls_x509_trust_list_verify_named_crt):=GPA('gnutls_x509_trust_list_verify_named_crt');
+ pointer(gnutls_x509_trust_list_verify_crt2):=GPA('gnutls_x509_trust_list_verify_crt2');
+ pointer(gnutls_x509_trust_list_verify_crt):=GPA('gnutls_x509_trust_list_verify_crt');
+ pointer(gnutls_x509_trust_list_add_trust_mem):=GPA('gnutls_x509_trust_list_add_trust_mem');
+ pointer(gnutls_x509_trust_list_add_trust_file):=GPA('gnutls_x509_trust_list_add_trust_file');
+ pointer(gnutls_x509_trust_list_add_trust_dir):=GPA('gnutls_x509_trust_list_add_trust_dir');
+ pointer(gnutls_x509_trust_list_remove_trust_file):=GPA('gnutls_x509_trust_list_remove_trust_file');
+ pointer(gnutls_x509_trust_list_remove_trust_mem):=GPA('gnutls_x509_trust_list_remove_trust_mem');
+ pointer(gnutls_x509_trust_list_add_system_trust):=GPA('gnutls_x509_trust_list_add_system_trust');
+ pointer(gnutls_certificate_set_trust_list):=GPA('gnutls_certificate_set_trust_list');
+ pointer(gnutls_certificate_get_trust_list):=GPA('gnutls_certificate_get_trust_list');
+ pointer(gnutls_x509_ext_deinit):=GPA('gnutls_x509_ext_deinit');
+ pointer(gnutls_x509_ext_print):=GPA('gnutls_x509_ext_print');
+ pointer(gnutls_pkcs7_init):=GPA('gnutls_pkcs7_init');
+ pointer(gnutls_pkcs7_deinit):=GPA('gnutls_pkcs7_deinit');
+ pointer(gnutls_pkcs7_import):=GPA('gnutls_pkcs7_import');
+ pointer(gnutls_pkcs7_export):=GPA('gnutls_pkcs7_export');
+ pointer(gnutls_pkcs7_export2):=GPA('gnutls_pkcs7_export2');
+ pointer(gnutls_pkcs7_get_signature_count):=GPA('gnutls_pkcs7_get_signature_count');
+ pointer(gnutls_pkcs7_get_embedded_data):=GPA('gnutls_pkcs7_get_embedded_data');
+ pointer(gnutls_pkcs7_get_crt_count):=GPA('gnutls_pkcs7_get_crt_count');
+ pointer(gnutls_pkcs7_get_crt_raw):=GPA('gnutls_pkcs7_get_crt_raw');
+ pointer(gnutls_pkcs7_set_crt_raw):=GPA('gnutls_pkcs7_set_crt_raw');
+ pointer(gnutls_pkcs7_set_crt):=GPA('gnutls_pkcs7_set_crt');
+ pointer(gnutls_pkcs7_delete_crt):=GPA('gnutls_pkcs7_delete_crt');
+ pointer(gnutls_pkcs7_get_crl_raw):=GPA('gnutls_pkcs7_get_crl_raw');
+ pointer(gnutls_pkcs7_get_crl_count):=GPA('gnutls_pkcs7_get_crl_count');
+ pointer(gnutls_pkcs7_set_crl_raw):=GPA('gnutls_pkcs7_set_crl_raw');
+ pointer(gnutls_pkcs7_set_crl):=GPA('gnutls_pkcs7_set_crl');
+ pointer(gnutls_pkcs7_delete_crl):=GPA('gnutls_pkcs7_delete_crl');
+ pointer(gnutls_pkcs7_signature_info_deinit):=GPA('gnutls_pkcs7_signature_info_deinit');
+ pointer(gnutls_pkcs7_get_signature_info):=GPA('gnutls_pkcs7_get_signature_info');
+ pointer(gnutls_pkcs7_verify_direct):=GPA('gnutls_pkcs7_verify_direct');
+ pointer(gnutls_pkcs7_verify):=GPA('gnutls_pkcs7_verify');
+ pointer(gnutls_pkcs7_add_attr):=GPA('gnutls_pkcs7_add_attr');
+ pointer(gnutls_pkcs7_attrs_deinit):=GPA('gnutls_pkcs7_attrs_deinit');
+ pointer(gnutls_pkcs7_get_attr):=GPA('gnutls_pkcs7_get_attr');
+ pointer(gnutls_pkcs7_sign):=GPA('gnutls_pkcs7_sign');
+ pointer(gnutls_pkcs7_get_crt_raw2):=GPA('gnutls_pkcs7_get_crt_raw2');
+ pointer(gnutls_pkcs7_get_crl_raw2):=GPA('gnutls_pkcs7_get_crl_raw2');
+ pointer(gnutls_pkcs7_print):=GPA('gnutls_pkcs7_print');
LoadedLibName:=aLib;
end;