@crossbind/port-openssl-linuxmusl 2.0.0-beta.66 → 2.0.0-beta.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prebuilt/linuxmusl-arm64-mt-release/crossbind-source.fingerprint +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/asn1.h +329 -43
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/asn1err.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/asn1t.h +45 -6
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/asyncerr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/bio.h +53 -23
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/bioerr.h +4 -4
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/bnerr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/buffererr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/cmp.h +259 -30
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/cmperr.h +1 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/cms.h +185 -21
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/cmserr.h +1 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/comp.h +43 -5
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/comperr.h +1 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/conf.h +43 -5
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/conferr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/configuration.h +10 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/core_dispatch.h +8 -0
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/core_names.h +9 -0
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/crmf.h +129 -15
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/crmferr.h +1 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/crypto.h +47 -5
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/cryptoerr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ct.h +95 -11
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/cterr.h +1 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/decodererr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/dherr.h +1 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/dsaerr.h +1 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/dtls1.h +17 -3
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/e_os2.h +19 -6
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/e_ostime.h +3 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ec.h +0 -4
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ecdh.h +6 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ecdsa.h +6 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ecerr.h +1 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ech.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/encodererr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ess.h +86 -10
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/esserr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/evp.h +29 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/evperr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/kdf.h +12 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/macros.h +16 -14
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/obj_mac.h +12 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/objectserr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ocsp.h +184 -24
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ocsperr.h +1 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/opensslv.h +6 -6
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ossl_typ.h +6 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/pem.h +38 -8
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/pemerr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/pkcs12.h +43 -5
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/pkcs12err.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/pkcs7.h +134 -16
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/pkcs7err.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/prov_ssl.h +7 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/proverr.h +9 -0
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/randerr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/rsaerr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/safestack.h +157 -18
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/self_test.h +5 -0
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/srp.h +129 -15
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ssl.h +114 -14
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ssl3.h +6 -3
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/stack.h +2 -0
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/storeerr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/tls1.h +0 -7
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ts.h +4 -4
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/tserr.h +1 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/types.h +1 -0
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/ui.h +43 -5
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/uierr.h +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/x509.h +344 -40
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/x509_acert.h +172 -20
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/x509_vfy.h +175 -21
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/x509v3.h +1085 -130
- package/dist/prebuilt/linuxmusl-arm64-mt-release/include/openssl/x509v3err.h +2 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/lib/cmake/OpenSSL/OpenSSLConfig.cmake +1 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/lib/cmake/OpenSSL/OpenSSLConfigVersion.cmake +4 -4
- package/dist/prebuilt/linuxmusl-arm64-mt-release/lib/libcrypto.a +0 -0
- package/dist/prebuilt/linuxmusl-arm64-mt-release/lib/libssl.a +0 -0
- package/dist/prebuilt/linuxmusl-arm64-mt-release/lib/ossl-modules/legacy.so +0 -0
- package/dist/prebuilt/linuxmusl-arm64-mt-release/lib/pkgconfig/libcrypto.pc +2 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/lib/pkgconfig/libssl.pc +2 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/lib/pkgconfig/openssl.pc +2 -2
- package/dist/prebuilt/linuxmusl-arm64-mt-release/ssl/openssl.cnf +0 -1
- package/dist/prebuilt/linuxmusl-arm64-mt-release/ssl/openssl.cnf.dist +0 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/crossbind-source.fingerprint +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/asn1.h +329 -43
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/asn1err.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/asn1t.h +45 -6
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/asyncerr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/bio.h +53 -23
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/bioerr.h +4 -4
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/bnerr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/buffererr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/cmp.h +259 -30
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/cmperr.h +1 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/cms.h +185 -21
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/cmserr.h +1 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/comp.h +43 -5
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/comperr.h +1 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/conf.h +43 -5
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/conferr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/configuration.h +10 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/core_dispatch.h +8 -0
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/core_names.h +9 -0
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/crmf.h +129 -15
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/crmferr.h +1 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/crypto.h +47 -5
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/cryptoerr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ct.h +95 -11
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/cterr.h +1 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/decodererr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/dherr.h +1 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/dsaerr.h +1 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/dtls1.h +17 -3
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/e_os2.h +19 -6
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/e_ostime.h +3 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ec.h +0 -4
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ecdh.h +6 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ecdsa.h +6 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ecerr.h +1 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ech.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/encodererr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ess.h +86 -10
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/esserr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/evp.h +29 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/evperr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/kdf.h +12 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/macros.h +16 -14
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/obj_mac.h +12 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/objectserr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ocsp.h +184 -24
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ocsperr.h +1 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/opensslv.h +6 -6
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ossl_typ.h +6 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/pem.h +38 -8
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/pemerr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/pkcs12.h +43 -5
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/pkcs12err.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/pkcs7.h +134 -16
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/pkcs7err.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/prov_ssl.h +7 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/proverr.h +9 -0
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/randerr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/rsaerr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/safestack.h +157 -18
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/self_test.h +5 -0
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/srp.h +129 -15
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ssl.h +114 -14
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ssl3.h +6 -3
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/stack.h +2 -0
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/storeerr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/tls1.h +0 -7
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ts.h +4 -4
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/tserr.h +1 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/types.h +1 -0
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/ui.h +43 -5
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/uierr.h +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/x509.h +344 -40
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/x509_acert.h +172 -20
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/x509_vfy.h +175 -21
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/x509v3.h +1085 -130
- package/dist/prebuilt/linuxmusl-x64-mt-release/include/openssl/x509v3err.h +2 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/lib/cmake/OpenSSL/OpenSSLConfig.cmake +1 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/lib/cmake/OpenSSL/OpenSSLConfigVersion.cmake +4 -4
- package/dist/prebuilt/linuxmusl-x64-mt-release/lib/libcrypto.a +0 -0
- package/dist/prebuilt/linuxmusl-x64-mt-release/lib/libssl.a +0 -0
- package/dist/prebuilt/linuxmusl-x64-mt-release/lib/ossl-modules/legacy.so +0 -0
- package/dist/prebuilt/linuxmusl-x64-mt-release/lib/pkgconfig/libcrypto.pc +2 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/lib/pkgconfig/libssl.pc +2 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/lib/pkgconfig/openssl.pc +2 -2
- package/dist/prebuilt/linuxmusl-x64-mt-release/ssl/openssl.cnf +0 -1
- package/dist/prebuilt/linuxmusl-x64-mt-release/ssl/openssl.cnf.dist +0 -1
- package/package.json +4 -4
|
@@ -50,9 +50,30 @@ typedef struct SRP_gN_cache_st {
|
|
|
50
50
|
SKM_DEFINE_STACK_OF_INTERNAL(SRP_gN_cache, SRP_gN_cache, SRP_gN_cache)
|
|
51
51
|
#define sk_SRP_gN_cache_num(sk) OPENSSL_sk_num(ossl_check_const_SRP_gN_cache_sk_type(sk))
|
|
52
52
|
#define sk_SRP_gN_cache_value(sk, idx) ((SRP_gN_cache *)OPENSSL_sk_value(ossl_check_const_SRP_gN_cache_sk_type(sk), (idx)))
|
|
53
|
-
#define sk_SRP_gN_cache_new(cmp)
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
#define sk_SRP_gN_cache_new(cmp) \
|
|
54
|
+
((STACK_OF(SRP_gN_cache) *)OPENSSL_sk_set_thunks( \
|
|
55
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
56
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
57
|
+
OPENSSL_sk_new(ossl_check_SRP_gN_cache_compfunc_type(cmp)), \
|
|
58
|
+
sk_SRP_gN_cache_cmpfunc_thunk), \
|
|
59
|
+
sk_SRP_gN_cache_copyfunc_thunk), \
|
|
60
|
+
sk_SRP_gN_cache_freefunc_thunk))
|
|
61
|
+
#define sk_SRP_gN_cache_new_null() \
|
|
62
|
+
((STACK_OF(SRP_gN_cache) *)OPENSSL_sk_set_thunks( \
|
|
63
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
64
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
65
|
+
OPENSSL_sk_new_null(), \
|
|
66
|
+
sk_SRP_gN_cache_cmpfunc_thunk), \
|
|
67
|
+
sk_SRP_gN_cache_copyfunc_thunk), \
|
|
68
|
+
sk_SRP_gN_cache_freefunc_thunk))
|
|
69
|
+
#define sk_SRP_gN_cache_new_reserve(cmp, n) \
|
|
70
|
+
((STACK_OF(SRP_gN_cache) *)OPENSSL_sk_set_thunks( \
|
|
71
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
72
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
73
|
+
OPENSSL_sk_new_reserve(ossl_check_SRP_gN_cache_compfunc_type(cmp), (n)), \
|
|
74
|
+
sk_SRP_gN_cache_cmpfunc_thunk), \
|
|
75
|
+
sk_SRP_gN_cache_copyfunc_thunk), \
|
|
76
|
+
sk_SRP_gN_cache_freefunc_thunk))
|
|
56
77
|
#define sk_SRP_gN_cache_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_SRP_gN_cache_sk_type(sk), (n))
|
|
57
78
|
#define sk_SRP_gN_cache_free(sk) OPENSSL_sk_free(ossl_check_SRP_gN_cache_sk_type(sk))
|
|
58
79
|
#define sk_SRP_gN_cache_zero(sk) OPENSSL_sk_zero(ossl_check_SRP_gN_cache_sk_type(sk))
|
|
@@ -70,8 +91,25 @@ SKM_DEFINE_STACK_OF_INTERNAL(SRP_gN_cache, SRP_gN_cache, SRP_gN_cache)
|
|
|
70
91
|
#define sk_SRP_gN_cache_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_SRP_gN_cache_sk_type(sk), ossl_check_SRP_gN_cache_type(ptr), pnum)
|
|
71
92
|
#define sk_SRP_gN_cache_sort(sk) OPENSSL_sk_sort(ossl_check_SRP_gN_cache_sk_type(sk))
|
|
72
93
|
#define sk_SRP_gN_cache_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_SRP_gN_cache_sk_type(sk))
|
|
73
|
-
#define sk_SRP_gN_cache_dup(sk)
|
|
74
|
-
|
|
94
|
+
#define sk_SRP_gN_cache_dup(sk) \
|
|
95
|
+
((STACK_OF(SRP_gN_cache) *)OPENSSL_sk_set_thunks( \
|
|
96
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
97
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
98
|
+
OPENSSL_sk_dup(ossl_check_const_SRP_gN_cache_sk_type(sk)), \
|
|
99
|
+
sk_SRP_gN_cache_cmpfunc_thunk), \
|
|
100
|
+
sk_SRP_gN_cache_copyfunc_thunk), \
|
|
101
|
+
sk_SRP_gN_cache_freefunc_thunk))
|
|
102
|
+
#define sk_SRP_gN_cache_deep_copy(sk, copyfunc, freefunc) \
|
|
103
|
+
((STACK_OF(SRP_gN_cache) *)OPENSSL_sk_set_thunks( \
|
|
104
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
105
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
106
|
+
OPENSSL_sk_deep_copy( \
|
|
107
|
+
ossl_check_const_SRP_gN_cache_sk_type(sk), \
|
|
108
|
+
ossl_check_SRP_gN_cache_copyfunc_type(copyfunc), \
|
|
109
|
+
ossl_check_SRP_gN_cache_freefunc_type(freefunc)), \
|
|
110
|
+
sk_SRP_gN_cache_cmpfunc_thunk), \
|
|
111
|
+
sk_SRP_gN_cache_copyfunc_thunk), \
|
|
112
|
+
sk_SRP_gN_cache_freefunc_thunk))
|
|
75
113
|
#define sk_SRP_gN_cache_set_cmp_func(sk, cmp) ((sk_SRP_gN_cache_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_SRP_gN_cache_sk_type(sk), ossl_check_SRP_gN_cache_compfunc_type(cmp)))
|
|
76
114
|
|
|
77
115
|
/* clang-format on */
|
|
@@ -91,9 +129,30 @@ typedef struct SRP_user_pwd_st {
|
|
|
91
129
|
SKM_DEFINE_STACK_OF_INTERNAL(SRP_user_pwd, SRP_user_pwd, SRP_user_pwd)
|
|
92
130
|
#define sk_SRP_user_pwd_num(sk) OPENSSL_sk_num(ossl_check_const_SRP_user_pwd_sk_type(sk))
|
|
93
131
|
#define sk_SRP_user_pwd_value(sk, idx) ((SRP_user_pwd *)OPENSSL_sk_value(ossl_check_const_SRP_user_pwd_sk_type(sk), (idx)))
|
|
94
|
-
#define sk_SRP_user_pwd_new(cmp)
|
|
95
|
-
|
|
96
|
-
|
|
132
|
+
#define sk_SRP_user_pwd_new(cmp) \
|
|
133
|
+
((STACK_OF(SRP_user_pwd) *)OPENSSL_sk_set_thunks( \
|
|
134
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
135
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
136
|
+
OPENSSL_sk_new(ossl_check_SRP_user_pwd_compfunc_type(cmp)), \
|
|
137
|
+
sk_SRP_user_pwd_cmpfunc_thunk), \
|
|
138
|
+
sk_SRP_user_pwd_copyfunc_thunk), \
|
|
139
|
+
sk_SRP_user_pwd_freefunc_thunk))
|
|
140
|
+
#define sk_SRP_user_pwd_new_null() \
|
|
141
|
+
((STACK_OF(SRP_user_pwd) *)OPENSSL_sk_set_thunks( \
|
|
142
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
143
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
144
|
+
OPENSSL_sk_new_null(), \
|
|
145
|
+
sk_SRP_user_pwd_cmpfunc_thunk), \
|
|
146
|
+
sk_SRP_user_pwd_copyfunc_thunk), \
|
|
147
|
+
sk_SRP_user_pwd_freefunc_thunk))
|
|
148
|
+
#define sk_SRP_user_pwd_new_reserve(cmp, n) \
|
|
149
|
+
((STACK_OF(SRP_user_pwd) *)OPENSSL_sk_set_thunks( \
|
|
150
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
151
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
152
|
+
OPENSSL_sk_new_reserve(ossl_check_SRP_user_pwd_compfunc_type(cmp), (n)), \
|
|
153
|
+
sk_SRP_user_pwd_cmpfunc_thunk), \
|
|
154
|
+
sk_SRP_user_pwd_copyfunc_thunk), \
|
|
155
|
+
sk_SRP_user_pwd_freefunc_thunk))
|
|
97
156
|
#define sk_SRP_user_pwd_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_SRP_user_pwd_sk_type(sk), (n))
|
|
98
157
|
#define sk_SRP_user_pwd_free(sk) OPENSSL_sk_free(ossl_check_SRP_user_pwd_sk_type(sk))
|
|
99
158
|
#define sk_SRP_user_pwd_zero(sk) OPENSSL_sk_zero(ossl_check_SRP_user_pwd_sk_type(sk))
|
|
@@ -111,8 +170,25 @@ SKM_DEFINE_STACK_OF_INTERNAL(SRP_user_pwd, SRP_user_pwd, SRP_user_pwd)
|
|
|
111
170
|
#define sk_SRP_user_pwd_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_SRP_user_pwd_sk_type(sk), ossl_check_SRP_user_pwd_type(ptr), pnum)
|
|
112
171
|
#define sk_SRP_user_pwd_sort(sk) OPENSSL_sk_sort(ossl_check_SRP_user_pwd_sk_type(sk))
|
|
113
172
|
#define sk_SRP_user_pwd_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_SRP_user_pwd_sk_type(sk))
|
|
114
|
-
#define sk_SRP_user_pwd_dup(sk)
|
|
115
|
-
|
|
173
|
+
#define sk_SRP_user_pwd_dup(sk) \
|
|
174
|
+
((STACK_OF(SRP_user_pwd) *)OPENSSL_sk_set_thunks( \
|
|
175
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
176
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
177
|
+
OPENSSL_sk_dup(ossl_check_const_SRP_user_pwd_sk_type(sk)), \
|
|
178
|
+
sk_SRP_user_pwd_cmpfunc_thunk), \
|
|
179
|
+
sk_SRP_user_pwd_copyfunc_thunk), \
|
|
180
|
+
sk_SRP_user_pwd_freefunc_thunk))
|
|
181
|
+
#define sk_SRP_user_pwd_deep_copy(sk, copyfunc, freefunc) \
|
|
182
|
+
((STACK_OF(SRP_user_pwd) *)OPENSSL_sk_set_thunks( \
|
|
183
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
184
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
185
|
+
OPENSSL_sk_deep_copy( \
|
|
186
|
+
ossl_check_const_SRP_user_pwd_sk_type(sk), \
|
|
187
|
+
ossl_check_SRP_user_pwd_copyfunc_type(copyfunc), \
|
|
188
|
+
ossl_check_SRP_user_pwd_freefunc_type(freefunc)), \
|
|
189
|
+
sk_SRP_user_pwd_cmpfunc_thunk), \
|
|
190
|
+
sk_SRP_user_pwd_copyfunc_thunk), \
|
|
191
|
+
sk_SRP_user_pwd_freefunc_thunk))
|
|
116
192
|
#define sk_SRP_user_pwd_set_cmp_func(sk, cmp) ((sk_SRP_user_pwd_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_SRP_user_pwd_sk_type(sk), ossl_check_SRP_user_pwd_compfunc_type(cmp)))
|
|
117
193
|
|
|
118
194
|
/* clang-format on */
|
|
@@ -152,9 +228,30 @@ typedef struct SRP_gN_st {
|
|
|
152
228
|
SKM_DEFINE_STACK_OF_INTERNAL(SRP_gN, SRP_gN, SRP_gN)
|
|
153
229
|
#define sk_SRP_gN_num(sk) OPENSSL_sk_num(ossl_check_const_SRP_gN_sk_type(sk))
|
|
154
230
|
#define sk_SRP_gN_value(sk, idx) ((SRP_gN *)OPENSSL_sk_value(ossl_check_const_SRP_gN_sk_type(sk), (idx)))
|
|
155
|
-
#define sk_SRP_gN_new(cmp)
|
|
156
|
-
|
|
157
|
-
|
|
231
|
+
#define sk_SRP_gN_new(cmp) \
|
|
232
|
+
((STACK_OF(SRP_gN) *)OPENSSL_sk_set_thunks( \
|
|
233
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
234
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
235
|
+
OPENSSL_sk_new(ossl_check_SRP_gN_compfunc_type(cmp)), \
|
|
236
|
+
sk_SRP_gN_cmpfunc_thunk), \
|
|
237
|
+
sk_SRP_gN_copyfunc_thunk), \
|
|
238
|
+
sk_SRP_gN_freefunc_thunk))
|
|
239
|
+
#define sk_SRP_gN_new_null() \
|
|
240
|
+
((STACK_OF(SRP_gN) *)OPENSSL_sk_set_thunks( \
|
|
241
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
242
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
243
|
+
OPENSSL_sk_new_null(), \
|
|
244
|
+
sk_SRP_gN_cmpfunc_thunk), \
|
|
245
|
+
sk_SRP_gN_copyfunc_thunk), \
|
|
246
|
+
sk_SRP_gN_freefunc_thunk))
|
|
247
|
+
#define sk_SRP_gN_new_reserve(cmp, n) \
|
|
248
|
+
((STACK_OF(SRP_gN) *)OPENSSL_sk_set_thunks( \
|
|
249
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
250
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
251
|
+
OPENSSL_sk_new_reserve(ossl_check_SRP_gN_compfunc_type(cmp), (n)), \
|
|
252
|
+
sk_SRP_gN_cmpfunc_thunk), \
|
|
253
|
+
sk_SRP_gN_copyfunc_thunk), \
|
|
254
|
+
sk_SRP_gN_freefunc_thunk))
|
|
158
255
|
#define sk_SRP_gN_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_SRP_gN_sk_type(sk), (n))
|
|
159
256
|
#define sk_SRP_gN_free(sk) OPENSSL_sk_free(ossl_check_SRP_gN_sk_type(sk))
|
|
160
257
|
#define sk_SRP_gN_zero(sk) OPENSSL_sk_zero(ossl_check_SRP_gN_sk_type(sk))
|
|
@@ -172,8 +269,25 @@ SKM_DEFINE_STACK_OF_INTERNAL(SRP_gN, SRP_gN, SRP_gN)
|
|
|
172
269
|
#define sk_SRP_gN_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_SRP_gN_sk_type(sk), ossl_check_SRP_gN_type(ptr), pnum)
|
|
173
270
|
#define sk_SRP_gN_sort(sk) OPENSSL_sk_sort(ossl_check_SRP_gN_sk_type(sk))
|
|
174
271
|
#define sk_SRP_gN_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_SRP_gN_sk_type(sk))
|
|
175
|
-
#define sk_SRP_gN_dup(sk)
|
|
176
|
-
|
|
272
|
+
#define sk_SRP_gN_dup(sk) \
|
|
273
|
+
((STACK_OF(SRP_gN) *)OPENSSL_sk_set_thunks( \
|
|
274
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
275
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
276
|
+
OPENSSL_sk_dup(ossl_check_const_SRP_gN_sk_type(sk)), \
|
|
277
|
+
sk_SRP_gN_cmpfunc_thunk), \
|
|
278
|
+
sk_SRP_gN_copyfunc_thunk), \
|
|
279
|
+
sk_SRP_gN_freefunc_thunk))
|
|
280
|
+
#define sk_SRP_gN_deep_copy(sk, copyfunc, freefunc) \
|
|
281
|
+
((STACK_OF(SRP_gN) *)OPENSSL_sk_set_thunks( \
|
|
282
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
283
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
284
|
+
OPENSSL_sk_deep_copy( \
|
|
285
|
+
ossl_check_const_SRP_gN_sk_type(sk), \
|
|
286
|
+
ossl_check_SRP_gN_copyfunc_type(copyfunc), \
|
|
287
|
+
ossl_check_SRP_gN_freefunc_type(freefunc)), \
|
|
288
|
+
sk_SRP_gN_cmpfunc_thunk), \
|
|
289
|
+
sk_SRP_gN_copyfunc_thunk), \
|
|
290
|
+
sk_SRP_gN_freefunc_thunk))
|
|
177
291
|
#define sk_SRP_gN_set_cmp_func(sk, cmp) ((sk_SRP_gN_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_SRP_gN_sk_type(sk), ossl_check_SRP_gN_compfunc_type(cmp)))
|
|
178
292
|
|
|
179
293
|
/* clang-format on */
|
|
@@ -250,9 +250,30 @@ typedef struct srtp_protection_profile_st {
|
|
|
250
250
|
SKM_DEFINE_STACK_OF_INTERNAL(SRTP_PROTECTION_PROFILE, SRTP_PROTECTION_PROFILE, SRTP_PROTECTION_PROFILE)
|
|
251
251
|
#define sk_SRTP_PROTECTION_PROFILE_num(sk) OPENSSL_sk_num(ossl_check_const_SRTP_PROTECTION_PROFILE_sk_type(sk))
|
|
252
252
|
#define sk_SRTP_PROTECTION_PROFILE_value(sk, idx) ((SRTP_PROTECTION_PROFILE *)OPENSSL_sk_value(ossl_check_const_SRTP_PROTECTION_PROFILE_sk_type(sk), (idx)))
|
|
253
|
-
#define sk_SRTP_PROTECTION_PROFILE_new(cmp)
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
#define sk_SRTP_PROTECTION_PROFILE_new(cmp) \
|
|
254
|
+
((STACK_OF(SRTP_PROTECTION_PROFILE) *)OPENSSL_sk_set_thunks( \
|
|
255
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
256
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
257
|
+
OPENSSL_sk_new(ossl_check_SRTP_PROTECTION_PROFILE_compfunc_type(cmp)), \
|
|
258
|
+
sk_SRTP_PROTECTION_PROFILE_cmpfunc_thunk), \
|
|
259
|
+
sk_SRTP_PROTECTION_PROFILE_copyfunc_thunk), \
|
|
260
|
+
sk_SRTP_PROTECTION_PROFILE_freefunc_thunk))
|
|
261
|
+
#define sk_SRTP_PROTECTION_PROFILE_new_null() \
|
|
262
|
+
((STACK_OF(SRTP_PROTECTION_PROFILE) *)OPENSSL_sk_set_thunks( \
|
|
263
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
264
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
265
|
+
OPENSSL_sk_new_null(), \
|
|
266
|
+
sk_SRTP_PROTECTION_PROFILE_cmpfunc_thunk), \
|
|
267
|
+
sk_SRTP_PROTECTION_PROFILE_copyfunc_thunk), \
|
|
268
|
+
sk_SRTP_PROTECTION_PROFILE_freefunc_thunk))
|
|
269
|
+
#define sk_SRTP_PROTECTION_PROFILE_new_reserve(cmp, n) \
|
|
270
|
+
((STACK_OF(SRTP_PROTECTION_PROFILE) *)OPENSSL_sk_set_thunks( \
|
|
271
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
272
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
273
|
+
OPENSSL_sk_new_reserve(ossl_check_SRTP_PROTECTION_PROFILE_compfunc_type(cmp), (n)), \
|
|
274
|
+
sk_SRTP_PROTECTION_PROFILE_cmpfunc_thunk), \
|
|
275
|
+
sk_SRTP_PROTECTION_PROFILE_copyfunc_thunk), \
|
|
276
|
+
sk_SRTP_PROTECTION_PROFILE_freefunc_thunk))
|
|
256
277
|
#define sk_SRTP_PROTECTION_PROFILE_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_SRTP_PROTECTION_PROFILE_sk_type(sk), (n))
|
|
257
278
|
#define sk_SRTP_PROTECTION_PROFILE_free(sk) OPENSSL_sk_free(ossl_check_SRTP_PROTECTION_PROFILE_sk_type(sk))
|
|
258
279
|
#define sk_SRTP_PROTECTION_PROFILE_zero(sk) OPENSSL_sk_zero(ossl_check_SRTP_PROTECTION_PROFILE_sk_type(sk))
|
|
@@ -270,8 +291,25 @@ SKM_DEFINE_STACK_OF_INTERNAL(SRTP_PROTECTION_PROFILE, SRTP_PROTECTION_PROFILE, S
|
|
|
270
291
|
#define sk_SRTP_PROTECTION_PROFILE_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_SRTP_PROTECTION_PROFILE_sk_type(sk), ossl_check_SRTP_PROTECTION_PROFILE_type(ptr), pnum)
|
|
271
292
|
#define sk_SRTP_PROTECTION_PROFILE_sort(sk) OPENSSL_sk_sort(ossl_check_SRTP_PROTECTION_PROFILE_sk_type(sk))
|
|
272
293
|
#define sk_SRTP_PROTECTION_PROFILE_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_SRTP_PROTECTION_PROFILE_sk_type(sk))
|
|
273
|
-
#define sk_SRTP_PROTECTION_PROFILE_dup(sk)
|
|
274
|
-
|
|
294
|
+
#define sk_SRTP_PROTECTION_PROFILE_dup(sk) \
|
|
295
|
+
((STACK_OF(SRTP_PROTECTION_PROFILE) *)OPENSSL_sk_set_thunks( \
|
|
296
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
297
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
298
|
+
OPENSSL_sk_dup(ossl_check_const_SRTP_PROTECTION_PROFILE_sk_type(sk)), \
|
|
299
|
+
sk_SRTP_PROTECTION_PROFILE_cmpfunc_thunk), \
|
|
300
|
+
sk_SRTP_PROTECTION_PROFILE_copyfunc_thunk), \
|
|
301
|
+
sk_SRTP_PROTECTION_PROFILE_freefunc_thunk))
|
|
302
|
+
#define sk_SRTP_PROTECTION_PROFILE_deep_copy(sk, copyfunc, freefunc) \
|
|
303
|
+
((STACK_OF(SRTP_PROTECTION_PROFILE) *)OPENSSL_sk_set_thunks( \
|
|
304
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
305
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
306
|
+
OPENSSL_sk_deep_copy( \
|
|
307
|
+
ossl_check_const_SRTP_PROTECTION_PROFILE_sk_type(sk), \
|
|
308
|
+
ossl_check_SRTP_PROTECTION_PROFILE_copyfunc_type(copyfunc), \
|
|
309
|
+
ossl_check_SRTP_PROTECTION_PROFILE_freefunc_type(freefunc)), \
|
|
310
|
+
sk_SRTP_PROTECTION_PROFILE_cmpfunc_thunk), \
|
|
311
|
+
sk_SRTP_PROTECTION_PROFILE_copyfunc_thunk), \
|
|
312
|
+
sk_SRTP_PROTECTION_PROFILE_freefunc_thunk))
|
|
275
313
|
#define sk_SRTP_PROTECTION_PROFILE_set_cmp_func(sk, cmp) ((sk_SRTP_PROTECTION_PROFILE_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_SRTP_PROTECTION_PROFILE_sk_type(sk), ossl_check_SRTP_PROTECTION_PROFILE_compfunc_type(cmp)))
|
|
276
314
|
|
|
277
315
|
/* clang-format on */
|
|
@@ -361,7 +399,7 @@ typedef int (*SSL_async_callback_fn)(SSL *s, void *arg);
|
|
|
361
399
|
#define SSL_OP_LEGACY_SERVER_CONNECT SSL_OP_BIT(2)
|
|
362
400
|
/* Enable support for Kernel TLS */
|
|
363
401
|
#define SSL_OP_ENABLE_KTLS SSL_OP_BIT(3)
|
|
364
|
-
|
|
402
|
+
/* SSL_OP_BIT(4) was SSL_OP_TLSEXT_PADDING, now a no-op */
|
|
365
403
|
#define SSL_OP_SAFARI_ECDHE_ECDSA_BUG SSL_OP_BIT(6)
|
|
366
404
|
#define SSL_OP_IGNORE_UNEXPECTED_EOF SSL_OP_BIT(7)
|
|
367
405
|
#define SSL_OP_ALLOW_CLIENT_RENEGOTIATION SSL_OP_BIT(8)
|
|
@@ -369,7 +407,7 @@ typedef int (*SSL_async_callback_fn)(SSL *s, void *arg);
|
|
|
369
407
|
/* In TLSv1.3 allow a non-(ec)dhe based kex_mode */
|
|
370
408
|
#define SSL_OP_ALLOW_NO_DHE_KEX SSL_OP_BIT(10)
|
|
371
409
|
/*
|
|
372
|
-
* Disable
|
|
410
|
+
* Disable TLS 1.0 CBC vulnerability workaround that was added
|
|
373
411
|
* in OpenSSL 0.9.6d. Usually (depending on the application protocol)
|
|
374
412
|
* the workaround is not needed. Unfortunately some broken SSL/TLS
|
|
375
413
|
* implementations cannot handle it at all, which is why we include it
|
|
@@ -433,6 +471,7 @@ typedef int (*SSL_async_callback_fn)(SSL *s, void *arg);
|
|
|
433
471
|
#define SSL_OP_NO_TLSv1_3 SSL_OP_BIT(29)
|
|
434
472
|
#define SSL_OP_NO_DTLSv1 SSL_OP_BIT(26)
|
|
435
473
|
#define SSL_OP_NO_DTLSv1_2 SSL_OP_BIT(27)
|
|
474
|
+
#define SSL_OP_NO_DTLSv1_3 SSL_OP_BIT(29)
|
|
436
475
|
/* Disallow all renegotiation */
|
|
437
476
|
#define SSL_OP_NO_RENEGOTIATION SSL_OP_BIT(30)
|
|
438
477
|
/*
|
|
@@ -476,6 +515,9 @@ typedef int (*SSL_async_callback_fn)(SSL *s, void *arg);
|
|
|
476
515
|
#define SSL_OP_ECH_GREASE_RETRY_CONFIG SSL_OP_BIT(40)
|
|
477
516
|
#endif
|
|
478
517
|
|
|
518
|
+
/* RFC 8701: Send GREASE values in ClientHello */
|
|
519
|
+
#define SSL_OP_GREASE SSL_OP_BIT(41)
|
|
520
|
+
|
|
479
521
|
/*
|
|
480
522
|
* Option "collections."
|
|
481
523
|
*/
|
|
@@ -488,7 +530,7 @@ typedef int (*SSL_async_callback_fn)(SSL *s, void *arg);
|
|
|
488
530
|
/* Various bug workarounds that should be rather harmless. */
|
|
489
531
|
#define SSL_OP_ALL \
|
|
490
532
|
(SSL_OP_CRYPTOPRO_TLSEXT_BUG | SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS \
|
|
491
|
-
|
|
|
533
|
+
| SSL_OP_SAFARI_ECDHE_ECDSA_BUG)
|
|
492
534
|
|
|
493
535
|
/*
|
|
494
536
|
* OBSOLETE OPTIONS retained for compatibility
|
|
@@ -511,6 +553,7 @@ typedef int (*SSL_async_callback_fn)(SSL *s, void *arg);
|
|
|
511
553
|
#define SSL_OP_PKCS1_CHECK_2 0x0
|
|
512
554
|
#define SSL_OP_NETSCAPE_CA_DN_BUG 0x0
|
|
513
555
|
#define SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG 0x0
|
|
556
|
+
#define SSL_OP_TLSEXT_PADDING 0x0
|
|
514
557
|
|
|
515
558
|
/*
|
|
516
559
|
* Allow SSL_write(..., n) to return r with 0 < r < n (i.e. report success
|
|
@@ -1027,9 +1070,30 @@ extern "C" {
|
|
|
1027
1070
|
SKM_DEFINE_STACK_OF_INTERNAL(SSL_CIPHER, const SSL_CIPHER, SSL_CIPHER)
|
|
1028
1071
|
#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
|
|
1029
1072
|
#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
|
|
1030
|
-
#define sk_SSL_CIPHER_new(cmp)
|
|
1031
|
-
|
|
1032
|
-
|
|
1073
|
+
#define sk_SSL_CIPHER_new(cmp) \
|
|
1074
|
+
((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_set_thunks( \
|
|
1075
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
1076
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
1077
|
+
OPENSSL_sk_new(ossl_check_SSL_CIPHER_compfunc_type(cmp)), \
|
|
1078
|
+
sk_SSL_CIPHER_cmpfunc_thunk), \
|
|
1079
|
+
sk_SSL_CIPHER_copyfunc_thunk), \
|
|
1080
|
+
sk_SSL_CIPHER_freefunc_thunk))
|
|
1081
|
+
#define sk_SSL_CIPHER_new_null() \
|
|
1082
|
+
((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_set_thunks( \
|
|
1083
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
1084
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
1085
|
+
OPENSSL_sk_new_null(), \
|
|
1086
|
+
sk_SSL_CIPHER_cmpfunc_thunk), \
|
|
1087
|
+
sk_SSL_CIPHER_copyfunc_thunk), \
|
|
1088
|
+
sk_SSL_CIPHER_freefunc_thunk))
|
|
1089
|
+
#define sk_SSL_CIPHER_new_reserve(cmp, n) \
|
|
1090
|
+
((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_set_thunks( \
|
|
1091
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
1092
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
1093
|
+
OPENSSL_sk_new_reserve(ossl_check_SSL_CIPHER_compfunc_type(cmp), (n)), \
|
|
1094
|
+
sk_SSL_CIPHER_cmpfunc_thunk), \
|
|
1095
|
+
sk_SSL_CIPHER_copyfunc_thunk), \
|
|
1096
|
+
sk_SSL_CIPHER_freefunc_thunk))
|
|
1033
1097
|
#define sk_SSL_CIPHER_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_SSL_CIPHER_sk_type(sk), (n))
|
|
1034
1098
|
#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
|
|
1035
1099
|
#define sk_SSL_CIPHER_zero(sk) OPENSSL_sk_zero(ossl_check_SSL_CIPHER_sk_type(sk))
|
|
@@ -1047,8 +1111,25 @@ SKM_DEFINE_STACK_OF_INTERNAL(SSL_CIPHER, const SSL_CIPHER, SSL_CIPHER)
|
|
|
1047
1111
|
#define sk_SSL_CIPHER_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_SSL_CIPHER_sk_type(sk), ossl_check_SSL_CIPHER_type(ptr), pnum)
|
|
1048
1112
|
#define sk_SSL_CIPHER_sort(sk) OPENSSL_sk_sort(ossl_check_SSL_CIPHER_sk_type(sk))
|
|
1049
1113
|
#define sk_SSL_CIPHER_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_SSL_CIPHER_sk_type(sk))
|
|
1050
|
-
#define sk_SSL_CIPHER_dup(sk)
|
|
1051
|
-
|
|
1114
|
+
#define sk_SSL_CIPHER_dup(sk) \
|
|
1115
|
+
((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_set_thunks( \
|
|
1116
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
1117
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
1118
|
+
OPENSSL_sk_dup(ossl_check_const_SSL_CIPHER_sk_type(sk)), \
|
|
1119
|
+
sk_SSL_CIPHER_cmpfunc_thunk), \
|
|
1120
|
+
sk_SSL_CIPHER_copyfunc_thunk), \
|
|
1121
|
+
sk_SSL_CIPHER_freefunc_thunk))
|
|
1122
|
+
#define sk_SSL_CIPHER_deep_copy(sk, copyfunc, freefunc) \
|
|
1123
|
+
((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_set_thunks( \
|
|
1124
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
1125
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
1126
|
+
OPENSSL_sk_deep_copy( \
|
|
1127
|
+
ossl_check_const_SSL_CIPHER_sk_type(sk), \
|
|
1128
|
+
ossl_check_SSL_CIPHER_copyfunc_type(copyfunc), \
|
|
1129
|
+
ossl_check_SSL_CIPHER_freefunc_type(freefunc)), \
|
|
1130
|
+
sk_SSL_CIPHER_cmpfunc_thunk), \
|
|
1131
|
+
sk_SSL_CIPHER_copyfunc_thunk), \
|
|
1132
|
+
sk_SSL_CIPHER_freefunc_thunk))
|
|
1052
1133
|
#define sk_SSL_CIPHER_set_cmp_func(sk, cmp) ((sk_SSL_CIPHER_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_SSL_CIPHER_sk_type(sk), ossl_check_SSL_CIPHER_compfunc_type(cmp)))
|
|
1053
1134
|
|
|
1054
1135
|
/* clang-format on */
|
|
@@ -1139,7 +1220,11 @@ typedef enum {
|
|
|
1139
1220
|
TLS_ST_EARLY_DATA,
|
|
1140
1221
|
TLS_ST_PENDING_EARLY_DATA_END,
|
|
1141
1222
|
TLS_ST_CW_END_OF_EARLY_DATA,
|
|
1142
|
-
TLS_ST_SR_END_OF_EARLY_DATA
|
|
1223
|
+
TLS_ST_SR_END_OF_EARLY_DATA,
|
|
1224
|
+
TLS_ST_CR_ACK,
|
|
1225
|
+
TLS_ST_CW_ACK,
|
|
1226
|
+
TLS_ST_SR_ACK,
|
|
1227
|
+
TLS_ST_SW_ACK
|
|
1143
1228
|
} OSSL_HANDSHAKE_STATE;
|
|
1144
1229
|
|
|
1145
1230
|
/*
|
|
@@ -2359,6 +2444,8 @@ __owur int SSL_is_connection(SSL *s);
|
|
|
2359
2444
|
__owur int SSL_is_listener(SSL *ssl);
|
|
2360
2445
|
__owur SSL *SSL_get0_listener(SSL *s);
|
|
2361
2446
|
#define SSL_LISTENER_FLAG_NO_VALIDATE (1UL << 1)
|
|
2447
|
+
#define SSL_LISTENER_FLAG_ADDRESS_VALIDATION (1UL << 2)
|
|
2448
|
+
#define SSL_LISTENER_FLAG_SINGLE_THREAD (1UL << 3)
|
|
2362
2449
|
__owur SSL *SSL_new_listener(SSL_CTX *ctx, uint64_t flags);
|
|
2363
2450
|
__owur SSL *SSL_new_listener_from(SSL *ssl, uint64_t flags);
|
|
2364
2451
|
__owur SSL *SSL_new_from_listener(SSL *ssl, uint64_t flags);
|
|
@@ -2484,8 +2571,18 @@ __owur int SSL_get_conn_close_info(SSL *ssl,
|
|
|
2484
2571
|
#define SSL_VALUE_STREAM_WRITE_BUF_SIZE 7
|
|
2485
2572
|
#define SSL_VALUE_STREAM_WRITE_BUF_USED 8
|
|
2486
2573
|
#define SSL_VALUE_STREAM_WRITE_BUF_AVAIL 9
|
|
2574
|
+
#define SSL_VALUE_QUIC_UDP_PAYLOAD_SIZE_MAX 10
|
|
2575
|
+
#define SSL_VALUE_QUIC_WINDOWCON 11
|
|
2576
|
+
#define SSL_VALUE_QUIC_WINDOWBSTR 12
|
|
2577
|
+
#define SSL_VALUE_QUIC_WINDOWUSTR 13
|
|
2578
|
+
#define SSL_VALUE_QUIC_ACK_DELAY_EXPONENT 14
|
|
2579
|
+
#define SSL_VALUE_QUIC_ACK_DELAY_MAX 15
|
|
2487
2580
|
#define SSL_VALUE_QUIC_MAX_PENDING_CONNS 16
|
|
2488
2581
|
|
|
2582
|
+
#define SSL_VALUE_DTLS_LISTENER_MAX_PENDING_CONNS 17
|
|
2583
|
+
#define SSL_VALUE_DTLS_LISTENER_PENDING_TIMEOUT 18
|
|
2584
|
+
#define SSL_VALUE_DTLS_LISTENER_MAX_DGRAM_SIZE 19
|
|
2585
|
+
|
|
2489
2586
|
#define SSL_VALUE_EVENT_HANDLING_MODE_INHERIT 0
|
|
2490
2587
|
#define SSL_VALUE_EVENT_HANDLING_MODE_IMPLICIT 1
|
|
2491
2588
|
#define SSL_VALUE_EVENT_HANDLING_MODE_EXPLICIT 2
|
|
@@ -2823,8 +2920,11 @@ __owur void *SSL_CTX_get0_security_ex_data(const SSL_CTX *ctx);
|
|
|
2823
2920
|
int OPENSSL_init_ssl(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);
|
|
2824
2921
|
|
|
2825
2922
|
#ifndef OPENSSL_NO_UNIT_TEST
|
|
2923
|
+
#ifndef OPENSSL_NO_DEPRECATED_4_1
|
|
2924
|
+
OSSL_DEPRECATEDIN_4_1
|
|
2826
2925
|
__owur const struct openssl_ssl_test_functions *SSL_test_functions(void);
|
|
2827
2926
|
#endif
|
|
2927
|
+
#endif
|
|
2828
2928
|
|
|
2829
2929
|
__owur int SSL_free_buffers(SSL *ssl);
|
|
2830
2930
|
__owur int SSL_alloc_buffers(SSL *ssl);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 1995-
|
|
2
|
+
* Copyright 1995-2026 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
3
|
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
@@ -173,8 +173,6 @@ extern "C" {
|
|
|
173
173
|
|
|
174
174
|
#define SSL3_RT_MAX_EXTRA (16384)
|
|
175
175
|
|
|
176
|
-
/* Maximum plaintext length: defined by SSL/TLS standards */
|
|
177
|
-
#define SSL3_RT_MAX_PLAIN_LENGTH 16384
|
|
178
176
|
/* Maximum compression overhead: defined by SSL/TLS standards */
|
|
179
177
|
#define SSL3_RT_MAX_COMPRESSED_OVERHEAD 1024
|
|
180
178
|
|
|
@@ -220,6 +218,7 @@ extern "C" {
|
|
|
220
218
|
#define SSL3_RT_ALERT 21
|
|
221
219
|
#define SSL3_RT_HANDSHAKE 22
|
|
222
220
|
#define SSL3_RT_APPLICATION_DATA 23
|
|
221
|
+
#define SSL3_RT_ACK 26 /* RFC 9147 */
|
|
223
222
|
|
|
224
223
|
/* Pseudo content types to indicate additional parameters */
|
|
225
224
|
#define TLS1_RT_CRYPTO 0x1000
|
|
@@ -333,6 +332,9 @@ extern "C" {
|
|
|
333
332
|
#define SSL3_MT_MESSAGE_HASH 254
|
|
334
333
|
#define DTLS1_MT_HELLO_VERIFY_REQUEST 3
|
|
335
334
|
|
|
335
|
+
/* Dummy message type for handling ACK like a normal handshake message */
|
|
336
|
+
#define DTLS13_MT_ACK 0x0126
|
|
337
|
+
|
|
336
338
|
/* Dummy message type for handling CCS like a normal handshake message */
|
|
337
339
|
#define SSL3_MT_CHANGE_CIPHER_SPEC 0x0101
|
|
338
340
|
|
|
@@ -346,6 +348,7 @@ extern "C" {
|
|
|
346
348
|
#define SSL3_CC_EARLY 0x040
|
|
347
349
|
#define SSL3_CC_HANDSHAKE 0x080
|
|
348
350
|
#define SSL3_CC_APPLICATION 0x100
|
|
351
|
+
#define SSL3_CC_COMP_CERT 0x200
|
|
349
352
|
#define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT | SSL3_CC_WRITE)
|
|
350
353
|
#define SSL3_CHANGE_CIPHER_SERVER_READ (SSL3_CC_SERVER | SSL3_CC_READ)
|
|
351
354
|
#define SSL3_CHANGE_CIPHER_CLIENT_READ (SSL3_CC_CLIENT | SSL3_CC_READ)
|
|
@@ -26,6 +26,7 @@ typedef int (*OPENSSL_sk_compfunc)(const void *, const void *);
|
|
|
26
26
|
typedef void (*OPENSSL_sk_freefunc)(void *);
|
|
27
27
|
typedef void (*OPENSSL_sk_freefunc_thunk)(OPENSSL_sk_freefunc, void *);
|
|
28
28
|
typedef void *(*OPENSSL_sk_copyfunc)(const void *);
|
|
29
|
+
typedef void *(*OPENSSL_sk_copyfunc_thunk)(OPENSSL_sk_copyfunc, const void *);
|
|
29
30
|
|
|
30
31
|
int OPENSSL_sk_num(const OPENSSL_STACK *);
|
|
31
32
|
void *OPENSSL_sk_value(const OPENSSL_STACK *, int);
|
|
@@ -37,6 +38,7 @@ OPENSSL_STACK *OPENSSL_sk_new_null(void);
|
|
|
37
38
|
OPENSSL_STACK *OPENSSL_sk_new_reserve(OPENSSL_sk_compfunc c, int n);
|
|
38
39
|
OPENSSL_STACK *OPENSSL_sk_set_thunks(OPENSSL_STACK *st, OPENSSL_sk_freefunc_thunk f_thunk);
|
|
39
40
|
OPENSSL_STACK *OPENSSL_sk_set_cmp_thunks(OPENSSL_STACK *st, int (*c_thunk)(int (*)(const void *, const void *), const void *, const void *));
|
|
41
|
+
OPENSSL_STACK *OPENSSL_sk_set_copy_thunks(OPENSSL_STACK *st, OPENSSL_sk_copyfunc_thunk cp_thunk);
|
|
40
42
|
int OPENSSL_sk_reserve(OPENSSL_STACK *st, int n);
|
|
41
43
|
void OPENSSL_sk_free(OPENSSL_STACK *);
|
|
42
44
|
void OPENSSL_sk_pop_free(OPENSSL_STACK *st, OPENSSL_sk_freefunc func);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
-
* Copyright 1995-
|
|
3
|
+
* Copyright 1995-2026 The OpenSSL Project Authors. All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
6
6
|
* this file except in compliance with the License. You can obtain a copy
|
|
@@ -1103,10 +1103,6 @@ int SSL_CTX_set_tlsext_ticket_key_evp_cb(SSL_CTX *ctx, int (*fp)(SSL *, unsigned
|
|
|
1103
1103
|
#define TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256 "ECDH-RSA-AES128-GCM-SHA256"
|
|
1104
1104
|
#define TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384 "ECDH-RSA-AES256-GCM-SHA384"
|
|
1105
1105
|
|
|
1106
|
-
/* TLS v1.2 PSK GCM ciphersuites from RFC5487 */
|
|
1107
|
-
#define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256 "PSK-AES128-GCM-SHA256"
|
|
1108
|
-
#define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384 "PSK-AES256-GCM-SHA384"
|
|
1109
|
-
|
|
1110
1106
|
/* ECDHE PSK ciphersuites from RFC 5489 */
|
|
1111
1107
|
#define TLS1_TXT_ECDHE_PSK_WITH_RC4_128_SHA "ECDHE-PSK-RC4-SHA"
|
|
1112
1108
|
#define TLS1_TXT_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA "ECDHE-PSK-3DES-EDE-CBC-SHA"
|
|
@@ -1216,9 +1212,6 @@ int SSL_CTX_set_tlsext_ticket_key_evp_cb(SSL_CTX *ctx, int (*fp)(SSL *, unsigned
|
|
|
1216
1212
|
/* ASCII: "client write key", in hex for EBCDIC compatibility */
|
|
1217
1213
|
#define TLS_MD_CLIENT_WRITE_KEY_CONST "\x63\x6c\x69\x65\x6e\x74\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79"
|
|
1218
1214
|
#define TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE 16
|
|
1219
|
-
/* ASCII: "server write key", in hex for EBCDIC compatibility */
|
|
1220
|
-
#define TLS_MD_SERVER_WRITE_KEY_CONST "\x73\x65\x72\x76\x65\x72\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79"
|
|
1221
|
-
#define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE 16
|
|
1222
1215
|
/* ASCII: "IV block", in hex for EBCDIC compatibility */
|
|
1223
1216
|
#define TLS_MD_IV_BLOCK_CONST "\x49\x56\x20\x62\x6c\x6f\x63\x6b"
|
|
1224
1217
|
#define TLS_MD_IV_BLOCK_CONST_SIZE 8
|
|
@@ -418,19 +418,19 @@ void TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx);
|
|
|
418
418
|
int TS_VERIFY_CTX_set_flags(TS_VERIFY_CTX *ctx, int f);
|
|
419
419
|
int TS_VERIFY_CTX_add_flags(TS_VERIFY_CTX *ctx, int f);
|
|
420
420
|
#ifndef OPENSSL_NO_DEPRECATED_3_4
|
|
421
|
-
OSSL_DEPRECATEDIN_3_4_FOR("
|
|
421
|
+
OSSL_DEPRECATEDIN_3_4_FOR("unclear semantics, replace with TS_VERIFY_CTX_set0_data()")
|
|
422
422
|
BIO *TS_VERIFY_CTX_set_data(TS_VERIFY_CTX *ctx, BIO *b);
|
|
423
423
|
#endif
|
|
424
424
|
int TS_VERIFY_CTX_set0_data(TS_VERIFY_CTX *ctx, BIO *b);
|
|
425
425
|
#ifndef OPENSSL_NO_DEPRECATED_3_4
|
|
426
|
-
OSSL_DEPRECATEDIN_3_4_FOR("
|
|
426
|
+
OSSL_DEPRECATEDIN_3_4_FOR("unclear semantics, replace with TS_VERIFY_CTX_set0_imprint()")
|
|
427
427
|
unsigned char *TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx,
|
|
428
428
|
unsigned char *hexstr, long len);
|
|
429
429
|
#endif
|
|
430
430
|
int TS_VERIFY_CTX_set0_imprint(TS_VERIFY_CTX *ctx,
|
|
431
431
|
unsigned char *hexstr, long len);
|
|
432
432
|
#ifndef OPENSSL_NO_DEPRECATED_3_4
|
|
433
|
-
OSSL_DEPRECATEDIN_3_4_FOR("
|
|
433
|
+
OSSL_DEPRECATEDIN_3_4_FOR("unclear semantics, replace with TS_VERIFY_CTX_set0_store()")
|
|
434
434
|
X509_STORE *TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *s);
|
|
435
435
|
#endif
|
|
436
436
|
int TS_VERIFY_CTX_set0_store(TS_VERIFY_CTX *ctx, X509_STORE *s);
|
|
@@ -438,7 +438,7 @@ int TS_VERIFY_CTX_set0_store(TS_VERIFY_CTX *ctx, X509_STORE *s);
|
|
|
438
438
|
#define TS_VERIFY_CTS_set_certs(ctx, cert) TS_VERIFY_CTX_set_certs(ctx, cert)
|
|
439
439
|
#endif
|
|
440
440
|
#ifndef OPENSSL_NO_DEPRECATED_3_4
|
|
441
|
-
OSSL_DEPRECATEDIN_3_4_FOR("
|
|
441
|
+
OSSL_DEPRECATEDIN_3_4_FOR("unclear semantics, replace with TS_VERIFY_CTX_set0_certs()")
|
|
442
442
|
STACK_OF(X509) *TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs);
|
|
443
443
|
#endif
|
|
444
444
|
int TS_VERIFY_CTX_set0_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
-
* Copyright 1995-
|
|
3
|
+
* Copyright 1995-2026 The OpenSSL Project Authors. All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
6
6
|
* this file except in compliance with the License. You can obtain a copy
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
#include <openssl/cryptoerr_legacy.h>
|
|
18
18
|
|
|
19
19
|
#ifndef OPENSSL_NO_TS
|
|
20
|
-
|
|
21
20
|
/*
|
|
22
21
|
* TS reason codes.
|
|
23
22
|
*/
|
|
@@ -296,9 +296,30 @@ typedef struct ui_string_st UI_STRING;
|
|
|
296
296
|
SKM_DEFINE_STACK_OF_INTERNAL(UI_STRING, UI_STRING, UI_STRING)
|
|
297
297
|
#define sk_UI_STRING_num(sk) OPENSSL_sk_num(ossl_check_const_UI_STRING_sk_type(sk))
|
|
298
298
|
#define sk_UI_STRING_value(sk, idx) ((UI_STRING *)OPENSSL_sk_value(ossl_check_const_UI_STRING_sk_type(sk), (idx)))
|
|
299
|
-
#define sk_UI_STRING_new(cmp)
|
|
300
|
-
|
|
301
|
-
|
|
299
|
+
#define sk_UI_STRING_new(cmp) \
|
|
300
|
+
((STACK_OF(UI_STRING) *)OPENSSL_sk_set_thunks( \
|
|
301
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
302
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
303
|
+
OPENSSL_sk_new(ossl_check_UI_STRING_compfunc_type(cmp)), \
|
|
304
|
+
sk_UI_STRING_cmpfunc_thunk), \
|
|
305
|
+
sk_UI_STRING_copyfunc_thunk), \
|
|
306
|
+
sk_UI_STRING_freefunc_thunk))
|
|
307
|
+
#define sk_UI_STRING_new_null() \
|
|
308
|
+
((STACK_OF(UI_STRING) *)OPENSSL_sk_set_thunks( \
|
|
309
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
310
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
311
|
+
OPENSSL_sk_new_null(), \
|
|
312
|
+
sk_UI_STRING_cmpfunc_thunk), \
|
|
313
|
+
sk_UI_STRING_copyfunc_thunk), \
|
|
314
|
+
sk_UI_STRING_freefunc_thunk))
|
|
315
|
+
#define sk_UI_STRING_new_reserve(cmp, n) \
|
|
316
|
+
((STACK_OF(UI_STRING) *)OPENSSL_sk_set_thunks( \
|
|
317
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
318
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
319
|
+
OPENSSL_sk_new_reserve(ossl_check_UI_STRING_compfunc_type(cmp), (n)), \
|
|
320
|
+
sk_UI_STRING_cmpfunc_thunk), \
|
|
321
|
+
sk_UI_STRING_copyfunc_thunk), \
|
|
322
|
+
sk_UI_STRING_freefunc_thunk))
|
|
302
323
|
#define sk_UI_STRING_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_UI_STRING_sk_type(sk), (n))
|
|
303
324
|
#define sk_UI_STRING_free(sk) OPENSSL_sk_free(ossl_check_UI_STRING_sk_type(sk))
|
|
304
325
|
#define sk_UI_STRING_zero(sk) OPENSSL_sk_zero(ossl_check_UI_STRING_sk_type(sk))
|
|
@@ -316,8 +337,25 @@ SKM_DEFINE_STACK_OF_INTERNAL(UI_STRING, UI_STRING, UI_STRING)
|
|
|
316
337
|
#define sk_UI_STRING_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_UI_STRING_sk_type(sk), ossl_check_UI_STRING_type(ptr), pnum)
|
|
317
338
|
#define sk_UI_STRING_sort(sk) OPENSSL_sk_sort(ossl_check_UI_STRING_sk_type(sk))
|
|
318
339
|
#define sk_UI_STRING_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_UI_STRING_sk_type(sk))
|
|
319
|
-
#define sk_UI_STRING_dup(sk)
|
|
320
|
-
|
|
340
|
+
#define sk_UI_STRING_dup(sk) \
|
|
341
|
+
((STACK_OF(UI_STRING) *)OPENSSL_sk_set_thunks( \
|
|
342
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
343
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
344
|
+
OPENSSL_sk_dup(ossl_check_const_UI_STRING_sk_type(sk)), \
|
|
345
|
+
sk_UI_STRING_cmpfunc_thunk), \
|
|
346
|
+
sk_UI_STRING_copyfunc_thunk), \
|
|
347
|
+
sk_UI_STRING_freefunc_thunk))
|
|
348
|
+
#define sk_UI_STRING_deep_copy(sk, copyfunc, freefunc) \
|
|
349
|
+
((STACK_OF(UI_STRING) *)OPENSSL_sk_set_thunks( \
|
|
350
|
+
OPENSSL_sk_set_copy_thunks( \
|
|
351
|
+
OPENSSL_sk_set_cmp_thunks( \
|
|
352
|
+
OPENSSL_sk_deep_copy( \
|
|
353
|
+
ossl_check_const_UI_STRING_sk_type(sk), \
|
|
354
|
+
ossl_check_UI_STRING_copyfunc_type(copyfunc), \
|
|
355
|
+
ossl_check_UI_STRING_freefunc_type(freefunc)), \
|
|
356
|
+
sk_UI_STRING_cmpfunc_thunk), \
|
|
357
|
+
sk_UI_STRING_copyfunc_thunk), \
|
|
358
|
+
sk_UI_STRING_freefunc_thunk))
|
|
321
359
|
#define sk_UI_STRING_set_cmp_func(sk, cmp) ((sk_UI_STRING_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_UI_STRING_sk_type(sk), ossl_check_UI_STRING_compfunc_type(cmp)))
|
|
322
360
|
|
|
323
361
|
/* clang-format on */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
-
* Copyright 1995-
|
|
3
|
+
* Copyright 1995-2026 The OpenSSL Project Authors. All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
6
6
|
* this file except in compliance with the License. You can obtain a copy
|