@annadata/capacitor-mqtt-quic 0.1.0 → 0.1.1

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.
Files changed (148) hide show
  1. package/ios/include/nghttp3/nghttp3.h +3295 -0
  2. package/ios/include/nghttp3/version.h +46 -0
  3. package/ios/include/ngtcp2/ngtcp2.h +6254 -0
  4. package/ios/include/ngtcp2/ngtcp2_crypto.h +1037 -0
  5. package/ios/include/ngtcp2/ngtcp2_crypto_quictls.h +147 -0
  6. package/ios/include/ngtcp2/version.h +51 -0
  7. package/ios/include/openssl/aes.h +111 -0
  8. package/ios/include/openssl/asn1.h +1131 -0
  9. package/ios/include/openssl/asn1_mac.h +10 -0
  10. package/ios/include/openssl/asn1err.h +140 -0
  11. package/ios/include/openssl/asn1t.h +946 -0
  12. package/ios/include/openssl/async.h +96 -0
  13. package/ios/include/openssl/asyncerr.h +29 -0
  14. package/ios/include/openssl/bio.h +887 -0
  15. package/ios/include/openssl/bioerr.h +65 -0
  16. package/ios/include/openssl/blowfish.h +78 -0
  17. package/ios/include/openssl/bn.h +584 -0
  18. package/ios/include/openssl/bnerr.h +47 -0
  19. package/ios/include/openssl/buffer.h +62 -0
  20. package/ios/include/openssl/buffererr.h +25 -0
  21. package/ios/include/openssl/camellia.h +117 -0
  22. package/ios/include/openssl/cast.h +71 -0
  23. package/ios/include/openssl/cmac.h +52 -0
  24. package/ios/include/openssl/cmp.h +597 -0
  25. package/ios/include/openssl/cmp_util.h +56 -0
  26. package/ios/include/openssl/cmperr.h +116 -0
  27. package/ios/include/openssl/cms.h +493 -0
  28. package/ios/include/openssl/cmserr.h +124 -0
  29. package/ios/include/openssl/comp.h +59 -0
  30. package/ios/include/openssl/comperr.h +31 -0
  31. package/ios/include/openssl/conf.h +214 -0
  32. package/ios/include/openssl/conf_api.h +46 -0
  33. package/ios/include/openssl/conferr.h +52 -0
  34. package/ios/include/openssl/configuration.h +149 -0
  35. package/ios/include/openssl/conftypes.h +44 -0
  36. package/ios/include/openssl/core.h +233 -0
  37. package/ios/include/openssl/core_dispatch.h +960 -0
  38. package/ios/include/openssl/core_names.h +561 -0
  39. package/ios/include/openssl/core_object.h +41 -0
  40. package/ios/include/openssl/crmf.h +227 -0
  41. package/ios/include/openssl/crmferr.h +50 -0
  42. package/ios/include/openssl/crypto.h +558 -0
  43. package/ios/include/openssl/cryptoerr.h +55 -0
  44. package/ios/include/openssl/cryptoerr_legacy.h +1466 -0
  45. package/ios/include/openssl/ct.h +573 -0
  46. package/ios/include/openssl/cterr.h +45 -0
  47. package/ios/include/openssl/decoder.h +133 -0
  48. package/ios/include/openssl/decodererr.h +28 -0
  49. package/ios/include/openssl/des.h +211 -0
  50. package/ios/include/openssl/dh.h +335 -0
  51. package/ios/include/openssl/dherr.h +58 -0
  52. package/ios/include/openssl/dsa.h +280 -0
  53. package/ios/include/openssl/dsaerr.h +44 -0
  54. package/ios/include/openssl/dtls1.h +57 -0
  55. package/ios/include/openssl/e_os2.h +308 -0
  56. package/ios/include/openssl/ebcdic.h +39 -0
  57. package/ios/include/openssl/ec.h +1572 -0
  58. package/ios/include/openssl/ecdh.h +10 -0
  59. package/ios/include/openssl/ecdsa.h +10 -0
  60. package/ios/include/openssl/ecerr.h +104 -0
  61. package/ios/include/openssl/encoder.h +124 -0
  62. package/ios/include/openssl/encodererr.h +28 -0
  63. package/ios/include/openssl/engine.h +833 -0
  64. package/ios/include/openssl/engineerr.h +63 -0
  65. package/ios/include/openssl/err.h +504 -0
  66. package/ios/include/openssl/ess.h +128 -0
  67. package/ios/include/openssl/esserr.h +32 -0
  68. package/ios/include/openssl/evp.h +2175 -0
  69. package/ios/include/openssl/evperr.h +134 -0
  70. package/ios/include/openssl/fips_names.h +77 -0
  71. package/ios/include/openssl/fipskey.h +36 -0
  72. package/ios/include/openssl/hmac.h +62 -0
  73. package/ios/include/openssl/http.h +109 -0
  74. package/ios/include/openssl/httperr.h +55 -0
  75. package/ios/include/openssl/idea.h +82 -0
  76. package/ios/include/openssl/kdf.h +138 -0
  77. package/ios/include/openssl/kdferr.h +16 -0
  78. package/ios/include/openssl/lhash.h +331 -0
  79. package/ios/include/openssl/macros.h +325 -0
  80. package/ios/include/openssl/md2.h +56 -0
  81. package/ios/include/openssl/md4.h +63 -0
  82. package/ios/include/openssl/md5.h +62 -0
  83. package/ios/include/openssl/mdc2.h +55 -0
  84. package/ios/include/openssl/modes.h +219 -0
  85. package/ios/include/openssl/obj_mac.h +5481 -0
  86. package/ios/include/openssl/objects.h +183 -0
  87. package/ios/include/openssl/objectserr.h +28 -0
  88. package/ios/include/openssl/ocsp.h +483 -0
  89. package/ios/include/openssl/ocsperr.h +53 -0
  90. package/ios/include/openssl/opensslconf.h +17 -0
  91. package/ios/include/openssl/opensslv.h +114 -0
  92. package/ios/include/openssl/ossl_typ.h +16 -0
  93. package/ios/include/openssl/param_build.h +63 -0
  94. package/ios/include/openssl/params.h +160 -0
  95. package/ios/include/openssl/pem.h +541 -0
  96. package/ios/include/openssl/pem2.h +19 -0
  97. package/ios/include/openssl/pemerr.h +58 -0
  98. package/ios/include/openssl/pkcs12.h +353 -0
  99. package/ios/include/openssl/pkcs12err.h +45 -0
  100. package/ios/include/openssl/pkcs7.h +430 -0
  101. package/ios/include/openssl/pkcs7err.h +63 -0
  102. package/ios/include/openssl/prov_ssl.h +34 -0
  103. package/ios/include/openssl/proverr.h +149 -0
  104. package/ios/include/openssl/provider.h +60 -0
  105. package/ios/include/openssl/quic.h +19 -0
  106. package/ios/include/openssl/rand.h +125 -0
  107. package/ios/include/openssl/randerr.h +69 -0
  108. package/ios/include/openssl/rc2.h +68 -0
  109. package/ios/include/openssl/rc4.h +47 -0
  110. package/ios/include/openssl/rc5.h +79 -0
  111. package/ios/include/openssl/ripemd.h +59 -0
  112. package/ios/include/openssl/rsa.h +610 -0
  113. package/ios/include/openssl/rsaerr.h +107 -0
  114. package/ios/include/openssl/safestack.h +297 -0
  115. package/ios/include/openssl/seed.h +113 -0
  116. package/ios/include/openssl/self_test.h +94 -0
  117. package/ios/include/openssl/sha.h +138 -0
  118. package/ios/include/openssl/srp.h +285 -0
  119. package/ios/include/openssl/srtp.h +56 -0
  120. package/ios/include/openssl/ssl.h +2671 -0
  121. package/ios/include/openssl/ssl2.h +30 -0
  122. package/ios/include/openssl/ssl3.h +347 -0
  123. package/ios/include/openssl/sslerr.h +348 -0
  124. package/ios/include/openssl/sslerr_legacy.h +468 -0
  125. package/ios/include/openssl/stack.h +90 -0
  126. package/ios/include/openssl/store.h +369 -0
  127. package/ios/include/openssl/storeerr.h +49 -0
  128. package/ios/include/openssl/symhacks.h +39 -0
  129. package/ios/include/openssl/tls1.h +1186 -0
  130. package/ios/include/openssl/trace.h +312 -0
  131. package/ios/include/openssl/ts.h +505 -0
  132. package/ios/include/openssl/tserr.h +67 -0
  133. package/ios/include/openssl/txt_db.h +63 -0
  134. package/ios/include/openssl/types.h +239 -0
  135. package/ios/include/openssl/ui.h +407 -0
  136. package/ios/include/openssl/uierr.h +38 -0
  137. package/ios/include/openssl/whrlpool.h +62 -0
  138. package/ios/include/openssl/x509.h +1279 -0
  139. package/ios/include/openssl/x509_vfy.h +894 -0
  140. package/ios/include/openssl/x509err.h +69 -0
  141. package/ios/include/openssl/x509v3.h +1453 -0
  142. package/ios/include/openssl/x509v3err.h +93 -0
  143. package/ios/libs/libcrypto.a +0 -0
  144. package/ios/libs/libnghttp3.a +0 -0
  145. package/ios/libs/libngtcp2.a +0 -0
  146. package/ios/libs/libngtcp2_crypto_quictls.a +0 -0
  147. package/ios/libs/libssl.a +0 -0
  148. package/package.json +2 -2
@@ -0,0 +1,116 @@
1
+ /*
2
+ * Generated by util/mkerr.pl DO NOT EDIT
3
+ * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
6
+ * this file except in compliance with the License. You can obtain a copy
7
+ * in the file LICENSE in the source distribution or at
8
+ * https://www.openssl.org/source/license.html
9
+ */
10
+
11
+ #ifndef OPENSSL_CMPERR_H
12
+ # define OPENSSL_CMPERR_H
13
+ # pragma once
14
+
15
+ # include <openssl/opensslconf.h>
16
+ # include <openssl/symhacks.h>
17
+ # include <openssl/cryptoerr_legacy.h>
18
+
19
+
20
+ # ifndef OPENSSL_NO_CMP
21
+
22
+
23
+ /*
24
+ * CMP reason codes.
25
+ */
26
+ # define CMP_R_ALGORITHM_NOT_SUPPORTED 139
27
+ # define CMP_R_BAD_CHECKAFTER_IN_POLLREP 167
28
+ # define CMP_R_BAD_REQUEST_ID 108
29
+ # define CMP_R_CERTHASH_UNMATCHED 156
30
+ # define CMP_R_CERTID_NOT_FOUND 109
31
+ # define CMP_R_CERTIFICATE_NOT_ACCEPTED 169
32
+ # define CMP_R_CERTIFICATE_NOT_FOUND 112
33
+ # define CMP_R_CERTREQMSG_NOT_FOUND 157
34
+ # define CMP_R_CERTRESPONSE_NOT_FOUND 113
35
+ # define CMP_R_CERT_AND_KEY_DO_NOT_MATCH 114
36
+ # define CMP_R_CHECKAFTER_OUT_OF_RANGE 181
37
+ # define CMP_R_ENCOUNTERED_KEYUPDATEWARNING 176
38
+ # define CMP_R_ENCOUNTERED_WAITING 162
39
+ # define CMP_R_ERROR_CALCULATING_PROTECTION 115
40
+ # define CMP_R_ERROR_CREATING_CERTCONF 116
41
+ # define CMP_R_ERROR_CREATING_CERTREP 117
42
+ # define CMP_R_ERROR_CREATING_CERTREQ 163
43
+ # define CMP_R_ERROR_CREATING_ERROR 118
44
+ # define CMP_R_ERROR_CREATING_GENM 119
45
+ # define CMP_R_ERROR_CREATING_GENP 120
46
+ # define CMP_R_ERROR_CREATING_PKICONF 122
47
+ # define CMP_R_ERROR_CREATING_POLLREP 123
48
+ # define CMP_R_ERROR_CREATING_POLLREQ 124
49
+ # define CMP_R_ERROR_CREATING_RP 125
50
+ # define CMP_R_ERROR_CREATING_RR 126
51
+ # define CMP_R_ERROR_PARSING_PKISTATUS 107
52
+ # define CMP_R_ERROR_PROCESSING_MESSAGE 158
53
+ # define CMP_R_ERROR_PROTECTING_MESSAGE 127
54
+ # define CMP_R_ERROR_SETTING_CERTHASH 128
55
+ # define CMP_R_ERROR_UNEXPECTED_CERTCONF 160
56
+ # define CMP_R_ERROR_VALIDATING_PROTECTION 140
57
+ # define CMP_R_ERROR_VALIDATING_SIGNATURE 171
58
+ # define CMP_R_FAILED_BUILDING_OWN_CHAIN 164
59
+ # define CMP_R_FAILED_EXTRACTING_PUBKEY 141
60
+ # define CMP_R_FAILURE_OBTAINING_RANDOM 110
61
+ # define CMP_R_FAIL_INFO_OUT_OF_RANGE 129
62
+ # define CMP_R_INVALID_ARGS 100
63
+ # define CMP_R_INVALID_OPTION 174
64
+ # define CMP_R_MISSING_CERTID 165
65
+ # define CMP_R_MISSING_KEY_INPUT_FOR_CREATING_PROTECTION 130
66
+ # define CMP_R_MISSING_KEY_USAGE_DIGITALSIGNATURE 142
67
+ # define CMP_R_MISSING_P10CSR 121
68
+ # define CMP_R_MISSING_PBM_SECRET 166
69
+ # define CMP_R_MISSING_PRIVATE_KEY 131
70
+ # define CMP_R_MISSING_PRIVATE_KEY_FOR_POPO 190
71
+ # define CMP_R_MISSING_PROTECTION 143
72
+ # define CMP_R_MISSING_PUBLIC_KEY 183
73
+ # define CMP_R_MISSING_REFERENCE_CERT 168
74
+ # define CMP_R_MISSING_SECRET 178
75
+ # define CMP_R_MISSING_SENDER_IDENTIFICATION 111
76
+ # define CMP_R_MISSING_TRUST_ANCHOR 179
77
+ # define CMP_R_MISSING_TRUST_STORE 144
78
+ # define CMP_R_MULTIPLE_REQUESTS_NOT_SUPPORTED 161
79
+ # define CMP_R_MULTIPLE_RESPONSES_NOT_SUPPORTED 170
80
+ # define CMP_R_MULTIPLE_SAN_SOURCES 102
81
+ # define CMP_R_NO_STDIO 194
82
+ # define CMP_R_NO_SUITABLE_SENDER_CERT 145
83
+ # define CMP_R_NULL_ARGUMENT 103
84
+ # define CMP_R_PKIBODY_ERROR 146
85
+ # define CMP_R_PKISTATUSINFO_NOT_FOUND 132
86
+ # define CMP_R_POLLING_FAILED 172
87
+ # define CMP_R_POTENTIALLY_INVALID_CERTIFICATE 147
88
+ # define CMP_R_RECEIVED_ERROR 180
89
+ # define CMP_R_RECIPNONCE_UNMATCHED 148
90
+ # define CMP_R_REQUEST_NOT_ACCEPTED 149
91
+ # define CMP_R_REQUEST_REJECTED_BY_SERVER 182
92
+ # define CMP_R_SENDER_GENERALNAME_TYPE_NOT_SUPPORTED 150
93
+ # define CMP_R_SRVCERT_DOES_NOT_VALIDATE_MSG 151
94
+ # define CMP_R_TOTAL_TIMEOUT 184
95
+ # define CMP_R_TRANSACTIONID_UNMATCHED 152
96
+ # define CMP_R_TRANSFER_ERROR 159
97
+ # define CMP_R_UNEXPECTED_PKIBODY 133
98
+ # define CMP_R_UNEXPECTED_PKISTATUS 185
99
+ # define CMP_R_UNEXPECTED_PVNO 153
100
+ # define CMP_R_UNKNOWN_ALGORITHM_ID 134
101
+ # define CMP_R_UNKNOWN_CERT_TYPE 135
102
+ # define CMP_R_UNKNOWN_PKISTATUS 186
103
+ # define CMP_R_UNSUPPORTED_ALGORITHM 136
104
+ # define CMP_R_UNSUPPORTED_KEY_TYPE 137
105
+ # define CMP_R_UNSUPPORTED_PROTECTION_ALG_DHBASEDMAC 154
106
+ # define CMP_R_VALUE_TOO_LARGE 175
107
+ # define CMP_R_VALUE_TOO_SMALL 177
108
+ # define CMP_R_WRONG_ALGORITHM_OID 138
109
+ # define CMP_R_WRONG_CERTID 189
110
+ # define CMP_R_WRONG_CERTID_IN_RP 187
111
+ # define CMP_R_WRONG_PBM_VALUE 155
112
+ # define CMP_R_WRONG_RP_COMPONENT_COUNT 188
113
+ # define CMP_R_WRONG_SERIAL_IN_RP 173
114
+
115
+ # endif
116
+ #endif
@@ -0,0 +1,493 @@
1
+ /*
2
+ * WARNING: do not edit!
3
+ * Generated by Makefile from include/openssl/cms.h.in
4
+ *
5
+ * Copyright 2008-2021 The OpenSSL Project Authors. All Rights Reserved.
6
+ *
7
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
8
+ * this file except in compliance with the License. You can obtain a copy
9
+ * in the file LICENSE in the source distribution or at
10
+ * https://www.openssl.org/source/license.html
11
+ */
12
+
13
+
14
+
15
+ #ifndef OPENSSL_CMS_H
16
+ # define OPENSSL_CMS_H
17
+ # pragma once
18
+
19
+ # include <openssl/macros.h>
20
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
21
+ # define HEADER_CMS_H
22
+ # endif
23
+
24
+ # include <openssl/opensslconf.h>
25
+
26
+ # ifndef OPENSSL_NO_CMS
27
+ # include <openssl/x509.h>
28
+ # include <openssl/x509v3.h>
29
+ # include <openssl/cmserr.h>
30
+ # ifdef __cplusplus
31
+ extern "C" {
32
+ # endif
33
+
34
+ typedef struct CMS_ContentInfo_st CMS_ContentInfo;
35
+ typedef struct CMS_SignerInfo_st CMS_SignerInfo;
36
+ typedef struct CMS_CertificateChoices CMS_CertificateChoices;
37
+ typedef struct CMS_RevocationInfoChoice_st CMS_RevocationInfoChoice;
38
+ typedef struct CMS_RecipientInfo_st CMS_RecipientInfo;
39
+ typedef struct CMS_ReceiptRequest_st CMS_ReceiptRequest;
40
+ typedef struct CMS_Receipt_st CMS_Receipt;
41
+ typedef struct CMS_RecipientEncryptedKey_st CMS_RecipientEncryptedKey;
42
+ typedef struct CMS_OtherKeyAttribute_st CMS_OtherKeyAttribute;
43
+
44
+ SKM_DEFINE_STACK_OF_INTERNAL(CMS_SignerInfo, CMS_SignerInfo, CMS_SignerInfo)
45
+ #define sk_CMS_SignerInfo_num(sk) OPENSSL_sk_num(ossl_check_const_CMS_SignerInfo_sk_type(sk))
46
+ #define sk_CMS_SignerInfo_value(sk, idx) ((CMS_SignerInfo *)OPENSSL_sk_value(ossl_check_const_CMS_SignerInfo_sk_type(sk), (idx)))
47
+ #define sk_CMS_SignerInfo_new(cmp) ((STACK_OF(CMS_SignerInfo) *)OPENSSL_sk_new(ossl_check_CMS_SignerInfo_compfunc_type(cmp)))
48
+ #define sk_CMS_SignerInfo_new_null() ((STACK_OF(CMS_SignerInfo) *)OPENSSL_sk_new_null())
49
+ #define sk_CMS_SignerInfo_new_reserve(cmp, n) ((STACK_OF(CMS_SignerInfo) *)OPENSSL_sk_new_reserve(ossl_check_CMS_SignerInfo_compfunc_type(cmp), (n)))
50
+ #define sk_CMS_SignerInfo_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_CMS_SignerInfo_sk_type(sk), (n))
51
+ #define sk_CMS_SignerInfo_free(sk) OPENSSL_sk_free(ossl_check_CMS_SignerInfo_sk_type(sk))
52
+ #define sk_CMS_SignerInfo_zero(sk) OPENSSL_sk_zero(ossl_check_CMS_SignerInfo_sk_type(sk))
53
+ #define sk_CMS_SignerInfo_delete(sk, i) ((CMS_SignerInfo *)OPENSSL_sk_delete(ossl_check_CMS_SignerInfo_sk_type(sk), (i)))
54
+ #define sk_CMS_SignerInfo_delete_ptr(sk, ptr) ((CMS_SignerInfo *)OPENSSL_sk_delete_ptr(ossl_check_CMS_SignerInfo_sk_type(sk), ossl_check_CMS_SignerInfo_type(ptr)))
55
+ #define sk_CMS_SignerInfo_push(sk, ptr) OPENSSL_sk_push(ossl_check_CMS_SignerInfo_sk_type(sk), ossl_check_CMS_SignerInfo_type(ptr))
56
+ #define sk_CMS_SignerInfo_unshift(sk, ptr) OPENSSL_sk_unshift(ossl_check_CMS_SignerInfo_sk_type(sk), ossl_check_CMS_SignerInfo_type(ptr))
57
+ #define sk_CMS_SignerInfo_pop(sk) ((CMS_SignerInfo *)OPENSSL_sk_pop(ossl_check_CMS_SignerInfo_sk_type(sk)))
58
+ #define sk_CMS_SignerInfo_shift(sk) ((CMS_SignerInfo *)OPENSSL_sk_shift(ossl_check_CMS_SignerInfo_sk_type(sk)))
59
+ #define sk_CMS_SignerInfo_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_CMS_SignerInfo_sk_type(sk),ossl_check_CMS_SignerInfo_freefunc_type(freefunc))
60
+ #define sk_CMS_SignerInfo_insert(sk, ptr, idx) OPENSSL_sk_insert(ossl_check_CMS_SignerInfo_sk_type(sk), ossl_check_CMS_SignerInfo_type(ptr), (idx))
61
+ #define sk_CMS_SignerInfo_set(sk, idx, ptr) ((CMS_SignerInfo *)OPENSSL_sk_set(ossl_check_CMS_SignerInfo_sk_type(sk), (idx), ossl_check_CMS_SignerInfo_type(ptr)))
62
+ #define sk_CMS_SignerInfo_find(sk, ptr) OPENSSL_sk_find(ossl_check_CMS_SignerInfo_sk_type(sk), ossl_check_CMS_SignerInfo_type(ptr))
63
+ #define sk_CMS_SignerInfo_find_ex(sk, ptr) OPENSSL_sk_find_ex(ossl_check_CMS_SignerInfo_sk_type(sk), ossl_check_CMS_SignerInfo_type(ptr))
64
+ #define sk_CMS_SignerInfo_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_CMS_SignerInfo_sk_type(sk), ossl_check_CMS_SignerInfo_type(ptr), pnum)
65
+ #define sk_CMS_SignerInfo_sort(sk) OPENSSL_sk_sort(ossl_check_CMS_SignerInfo_sk_type(sk))
66
+ #define sk_CMS_SignerInfo_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_CMS_SignerInfo_sk_type(sk))
67
+ #define sk_CMS_SignerInfo_dup(sk) ((STACK_OF(CMS_SignerInfo) *)OPENSSL_sk_dup(ossl_check_const_CMS_SignerInfo_sk_type(sk)))
68
+ #define sk_CMS_SignerInfo_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(CMS_SignerInfo) *)OPENSSL_sk_deep_copy(ossl_check_const_CMS_SignerInfo_sk_type(sk), ossl_check_CMS_SignerInfo_copyfunc_type(copyfunc), ossl_check_CMS_SignerInfo_freefunc_type(freefunc)))
69
+ #define sk_CMS_SignerInfo_set_cmp_func(sk, cmp) ((sk_CMS_SignerInfo_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_CMS_SignerInfo_sk_type(sk), ossl_check_CMS_SignerInfo_compfunc_type(cmp)))
70
+ SKM_DEFINE_STACK_OF_INTERNAL(CMS_RecipientEncryptedKey, CMS_RecipientEncryptedKey, CMS_RecipientEncryptedKey)
71
+ #define sk_CMS_RecipientEncryptedKey_num(sk) OPENSSL_sk_num(ossl_check_const_CMS_RecipientEncryptedKey_sk_type(sk))
72
+ #define sk_CMS_RecipientEncryptedKey_value(sk, idx) ((CMS_RecipientEncryptedKey *)OPENSSL_sk_value(ossl_check_const_CMS_RecipientEncryptedKey_sk_type(sk), (idx)))
73
+ #define sk_CMS_RecipientEncryptedKey_new(cmp) ((STACK_OF(CMS_RecipientEncryptedKey) *)OPENSSL_sk_new(ossl_check_CMS_RecipientEncryptedKey_compfunc_type(cmp)))
74
+ #define sk_CMS_RecipientEncryptedKey_new_null() ((STACK_OF(CMS_RecipientEncryptedKey) *)OPENSSL_sk_new_null())
75
+ #define sk_CMS_RecipientEncryptedKey_new_reserve(cmp, n) ((STACK_OF(CMS_RecipientEncryptedKey) *)OPENSSL_sk_new_reserve(ossl_check_CMS_RecipientEncryptedKey_compfunc_type(cmp), (n)))
76
+ #define sk_CMS_RecipientEncryptedKey_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk), (n))
77
+ #define sk_CMS_RecipientEncryptedKey_free(sk) OPENSSL_sk_free(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk))
78
+ #define sk_CMS_RecipientEncryptedKey_zero(sk) OPENSSL_sk_zero(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk))
79
+ #define sk_CMS_RecipientEncryptedKey_delete(sk, i) ((CMS_RecipientEncryptedKey *)OPENSSL_sk_delete(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk), (i)))
80
+ #define sk_CMS_RecipientEncryptedKey_delete_ptr(sk, ptr) ((CMS_RecipientEncryptedKey *)OPENSSL_sk_delete_ptr(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk), ossl_check_CMS_RecipientEncryptedKey_type(ptr)))
81
+ #define sk_CMS_RecipientEncryptedKey_push(sk, ptr) OPENSSL_sk_push(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk), ossl_check_CMS_RecipientEncryptedKey_type(ptr))
82
+ #define sk_CMS_RecipientEncryptedKey_unshift(sk, ptr) OPENSSL_sk_unshift(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk), ossl_check_CMS_RecipientEncryptedKey_type(ptr))
83
+ #define sk_CMS_RecipientEncryptedKey_pop(sk) ((CMS_RecipientEncryptedKey *)OPENSSL_sk_pop(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk)))
84
+ #define sk_CMS_RecipientEncryptedKey_shift(sk) ((CMS_RecipientEncryptedKey *)OPENSSL_sk_shift(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk)))
85
+ #define sk_CMS_RecipientEncryptedKey_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk),ossl_check_CMS_RecipientEncryptedKey_freefunc_type(freefunc))
86
+ #define sk_CMS_RecipientEncryptedKey_insert(sk, ptr, idx) OPENSSL_sk_insert(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk), ossl_check_CMS_RecipientEncryptedKey_type(ptr), (idx))
87
+ #define sk_CMS_RecipientEncryptedKey_set(sk, idx, ptr) ((CMS_RecipientEncryptedKey *)OPENSSL_sk_set(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk), (idx), ossl_check_CMS_RecipientEncryptedKey_type(ptr)))
88
+ #define sk_CMS_RecipientEncryptedKey_find(sk, ptr) OPENSSL_sk_find(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk), ossl_check_CMS_RecipientEncryptedKey_type(ptr))
89
+ #define sk_CMS_RecipientEncryptedKey_find_ex(sk, ptr) OPENSSL_sk_find_ex(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk), ossl_check_CMS_RecipientEncryptedKey_type(ptr))
90
+ #define sk_CMS_RecipientEncryptedKey_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk), ossl_check_CMS_RecipientEncryptedKey_type(ptr), pnum)
91
+ #define sk_CMS_RecipientEncryptedKey_sort(sk) OPENSSL_sk_sort(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk))
92
+ #define sk_CMS_RecipientEncryptedKey_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_CMS_RecipientEncryptedKey_sk_type(sk))
93
+ #define sk_CMS_RecipientEncryptedKey_dup(sk) ((STACK_OF(CMS_RecipientEncryptedKey) *)OPENSSL_sk_dup(ossl_check_const_CMS_RecipientEncryptedKey_sk_type(sk)))
94
+ #define sk_CMS_RecipientEncryptedKey_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(CMS_RecipientEncryptedKey) *)OPENSSL_sk_deep_copy(ossl_check_const_CMS_RecipientEncryptedKey_sk_type(sk), ossl_check_CMS_RecipientEncryptedKey_copyfunc_type(copyfunc), ossl_check_CMS_RecipientEncryptedKey_freefunc_type(freefunc)))
95
+ #define sk_CMS_RecipientEncryptedKey_set_cmp_func(sk, cmp) ((sk_CMS_RecipientEncryptedKey_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_CMS_RecipientEncryptedKey_sk_type(sk), ossl_check_CMS_RecipientEncryptedKey_compfunc_type(cmp)))
96
+ SKM_DEFINE_STACK_OF_INTERNAL(CMS_RecipientInfo, CMS_RecipientInfo, CMS_RecipientInfo)
97
+ #define sk_CMS_RecipientInfo_num(sk) OPENSSL_sk_num(ossl_check_const_CMS_RecipientInfo_sk_type(sk))
98
+ #define sk_CMS_RecipientInfo_value(sk, idx) ((CMS_RecipientInfo *)OPENSSL_sk_value(ossl_check_const_CMS_RecipientInfo_sk_type(sk), (idx)))
99
+ #define sk_CMS_RecipientInfo_new(cmp) ((STACK_OF(CMS_RecipientInfo) *)OPENSSL_sk_new(ossl_check_CMS_RecipientInfo_compfunc_type(cmp)))
100
+ #define sk_CMS_RecipientInfo_new_null() ((STACK_OF(CMS_RecipientInfo) *)OPENSSL_sk_new_null())
101
+ #define sk_CMS_RecipientInfo_new_reserve(cmp, n) ((STACK_OF(CMS_RecipientInfo) *)OPENSSL_sk_new_reserve(ossl_check_CMS_RecipientInfo_compfunc_type(cmp), (n)))
102
+ #define sk_CMS_RecipientInfo_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_CMS_RecipientInfo_sk_type(sk), (n))
103
+ #define sk_CMS_RecipientInfo_free(sk) OPENSSL_sk_free(ossl_check_CMS_RecipientInfo_sk_type(sk))
104
+ #define sk_CMS_RecipientInfo_zero(sk) OPENSSL_sk_zero(ossl_check_CMS_RecipientInfo_sk_type(sk))
105
+ #define sk_CMS_RecipientInfo_delete(sk, i) ((CMS_RecipientInfo *)OPENSSL_sk_delete(ossl_check_CMS_RecipientInfo_sk_type(sk), (i)))
106
+ #define sk_CMS_RecipientInfo_delete_ptr(sk, ptr) ((CMS_RecipientInfo *)OPENSSL_sk_delete_ptr(ossl_check_CMS_RecipientInfo_sk_type(sk), ossl_check_CMS_RecipientInfo_type(ptr)))
107
+ #define sk_CMS_RecipientInfo_push(sk, ptr) OPENSSL_sk_push(ossl_check_CMS_RecipientInfo_sk_type(sk), ossl_check_CMS_RecipientInfo_type(ptr))
108
+ #define sk_CMS_RecipientInfo_unshift(sk, ptr) OPENSSL_sk_unshift(ossl_check_CMS_RecipientInfo_sk_type(sk), ossl_check_CMS_RecipientInfo_type(ptr))
109
+ #define sk_CMS_RecipientInfo_pop(sk) ((CMS_RecipientInfo *)OPENSSL_sk_pop(ossl_check_CMS_RecipientInfo_sk_type(sk)))
110
+ #define sk_CMS_RecipientInfo_shift(sk) ((CMS_RecipientInfo *)OPENSSL_sk_shift(ossl_check_CMS_RecipientInfo_sk_type(sk)))
111
+ #define sk_CMS_RecipientInfo_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_CMS_RecipientInfo_sk_type(sk),ossl_check_CMS_RecipientInfo_freefunc_type(freefunc))
112
+ #define sk_CMS_RecipientInfo_insert(sk, ptr, idx) OPENSSL_sk_insert(ossl_check_CMS_RecipientInfo_sk_type(sk), ossl_check_CMS_RecipientInfo_type(ptr), (idx))
113
+ #define sk_CMS_RecipientInfo_set(sk, idx, ptr) ((CMS_RecipientInfo *)OPENSSL_sk_set(ossl_check_CMS_RecipientInfo_sk_type(sk), (idx), ossl_check_CMS_RecipientInfo_type(ptr)))
114
+ #define sk_CMS_RecipientInfo_find(sk, ptr) OPENSSL_sk_find(ossl_check_CMS_RecipientInfo_sk_type(sk), ossl_check_CMS_RecipientInfo_type(ptr))
115
+ #define sk_CMS_RecipientInfo_find_ex(sk, ptr) OPENSSL_sk_find_ex(ossl_check_CMS_RecipientInfo_sk_type(sk), ossl_check_CMS_RecipientInfo_type(ptr))
116
+ #define sk_CMS_RecipientInfo_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_CMS_RecipientInfo_sk_type(sk), ossl_check_CMS_RecipientInfo_type(ptr), pnum)
117
+ #define sk_CMS_RecipientInfo_sort(sk) OPENSSL_sk_sort(ossl_check_CMS_RecipientInfo_sk_type(sk))
118
+ #define sk_CMS_RecipientInfo_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_CMS_RecipientInfo_sk_type(sk))
119
+ #define sk_CMS_RecipientInfo_dup(sk) ((STACK_OF(CMS_RecipientInfo) *)OPENSSL_sk_dup(ossl_check_const_CMS_RecipientInfo_sk_type(sk)))
120
+ #define sk_CMS_RecipientInfo_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(CMS_RecipientInfo) *)OPENSSL_sk_deep_copy(ossl_check_const_CMS_RecipientInfo_sk_type(sk), ossl_check_CMS_RecipientInfo_copyfunc_type(copyfunc), ossl_check_CMS_RecipientInfo_freefunc_type(freefunc)))
121
+ #define sk_CMS_RecipientInfo_set_cmp_func(sk, cmp) ((sk_CMS_RecipientInfo_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_CMS_RecipientInfo_sk_type(sk), ossl_check_CMS_RecipientInfo_compfunc_type(cmp)))
122
+ SKM_DEFINE_STACK_OF_INTERNAL(CMS_RevocationInfoChoice, CMS_RevocationInfoChoice, CMS_RevocationInfoChoice)
123
+ #define sk_CMS_RevocationInfoChoice_num(sk) OPENSSL_sk_num(ossl_check_const_CMS_RevocationInfoChoice_sk_type(sk))
124
+ #define sk_CMS_RevocationInfoChoice_value(sk, idx) ((CMS_RevocationInfoChoice *)OPENSSL_sk_value(ossl_check_const_CMS_RevocationInfoChoice_sk_type(sk), (idx)))
125
+ #define sk_CMS_RevocationInfoChoice_new(cmp) ((STACK_OF(CMS_RevocationInfoChoice) *)OPENSSL_sk_new(ossl_check_CMS_RevocationInfoChoice_compfunc_type(cmp)))
126
+ #define sk_CMS_RevocationInfoChoice_new_null() ((STACK_OF(CMS_RevocationInfoChoice) *)OPENSSL_sk_new_null())
127
+ #define sk_CMS_RevocationInfoChoice_new_reserve(cmp, n) ((STACK_OF(CMS_RevocationInfoChoice) *)OPENSSL_sk_new_reserve(ossl_check_CMS_RevocationInfoChoice_compfunc_type(cmp), (n)))
128
+ #define sk_CMS_RevocationInfoChoice_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_CMS_RevocationInfoChoice_sk_type(sk), (n))
129
+ #define sk_CMS_RevocationInfoChoice_free(sk) OPENSSL_sk_free(ossl_check_CMS_RevocationInfoChoice_sk_type(sk))
130
+ #define sk_CMS_RevocationInfoChoice_zero(sk) OPENSSL_sk_zero(ossl_check_CMS_RevocationInfoChoice_sk_type(sk))
131
+ #define sk_CMS_RevocationInfoChoice_delete(sk, i) ((CMS_RevocationInfoChoice *)OPENSSL_sk_delete(ossl_check_CMS_RevocationInfoChoice_sk_type(sk), (i)))
132
+ #define sk_CMS_RevocationInfoChoice_delete_ptr(sk, ptr) ((CMS_RevocationInfoChoice *)OPENSSL_sk_delete_ptr(ossl_check_CMS_RevocationInfoChoice_sk_type(sk), ossl_check_CMS_RevocationInfoChoice_type(ptr)))
133
+ #define sk_CMS_RevocationInfoChoice_push(sk, ptr) OPENSSL_sk_push(ossl_check_CMS_RevocationInfoChoice_sk_type(sk), ossl_check_CMS_RevocationInfoChoice_type(ptr))
134
+ #define sk_CMS_RevocationInfoChoice_unshift(sk, ptr) OPENSSL_sk_unshift(ossl_check_CMS_RevocationInfoChoice_sk_type(sk), ossl_check_CMS_RevocationInfoChoice_type(ptr))
135
+ #define sk_CMS_RevocationInfoChoice_pop(sk) ((CMS_RevocationInfoChoice *)OPENSSL_sk_pop(ossl_check_CMS_RevocationInfoChoice_sk_type(sk)))
136
+ #define sk_CMS_RevocationInfoChoice_shift(sk) ((CMS_RevocationInfoChoice *)OPENSSL_sk_shift(ossl_check_CMS_RevocationInfoChoice_sk_type(sk)))
137
+ #define sk_CMS_RevocationInfoChoice_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_CMS_RevocationInfoChoice_sk_type(sk),ossl_check_CMS_RevocationInfoChoice_freefunc_type(freefunc))
138
+ #define sk_CMS_RevocationInfoChoice_insert(sk, ptr, idx) OPENSSL_sk_insert(ossl_check_CMS_RevocationInfoChoice_sk_type(sk), ossl_check_CMS_RevocationInfoChoice_type(ptr), (idx))
139
+ #define sk_CMS_RevocationInfoChoice_set(sk, idx, ptr) ((CMS_RevocationInfoChoice *)OPENSSL_sk_set(ossl_check_CMS_RevocationInfoChoice_sk_type(sk), (idx), ossl_check_CMS_RevocationInfoChoice_type(ptr)))
140
+ #define sk_CMS_RevocationInfoChoice_find(sk, ptr) OPENSSL_sk_find(ossl_check_CMS_RevocationInfoChoice_sk_type(sk), ossl_check_CMS_RevocationInfoChoice_type(ptr))
141
+ #define sk_CMS_RevocationInfoChoice_find_ex(sk, ptr) OPENSSL_sk_find_ex(ossl_check_CMS_RevocationInfoChoice_sk_type(sk), ossl_check_CMS_RevocationInfoChoice_type(ptr))
142
+ #define sk_CMS_RevocationInfoChoice_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_CMS_RevocationInfoChoice_sk_type(sk), ossl_check_CMS_RevocationInfoChoice_type(ptr), pnum)
143
+ #define sk_CMS_RevocationInfoChoice_sort(sk) OPENSSL_sk_sort(ossl_check_CMS_RevocationInfoChoice_sk_type(sk))
144
+ #define sk_CMS_RevocationInfoChoice_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_CMS_RevocationInfoChoice_sk_type(sk))
145
+ #define sk_CMS_RevocationInfoChoice_dup(sk) ((STACK_OF(CMS_RevocationInfoChoice) *)OPENSSL_sk_dup(ossl_check_const_CMS_RevocationInfoChoice_sk_type(sk)))
146
+ #define sk_CMS_RevocationInfoChoice_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(CMS_RevocationInfoChoice) *)OPENSSL_sk_deep_copy(ossl_check_const_CMS_RevocationInfoChoice_sk_type(sk), ossl_check_CMS_RevocationInfoChoice_copyfunc_type(copyfunc), ossl_check_CMS_RevocationInfoChoice_freefunc_type(freefunc)))
147
+ #define sk_CMS_RevocationInfoChoice_set_cmp_func(sk, cmp) ((sk_CMS_RevocationInfoChoice_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_CMS_RevocationInfoChoice_sk_type(sk), ossl_check_CMS_RevocationInfoChoice_compfunc_type(cmp)))
148
+
149
+
150
+ DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)
151
+ DECLARE_ASN1_FUNCTIONS(CMS_ReceiptRequest)
152
+ DECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo)
153
+
154
+ CMS_ContentInfo *CMS_ContentInfo_new_ex(OSSL_LIB_CTX *libctx, const char *propq);
155
+
156
+ # define CMS_SIGNERINFO_ISSUER_SERIAL 0
157
+ # define CMS_SIGNERINFO_KEYIDENTIFIER 1
158
+
159
+ # define CMS_RECIPINFO_NONE -1
160
+ # define CMS_RECIPINFO_TRANS 0
161
+ # define CMS_RECIPINFO_AGREE 1
162
+ # define CMS_RECIPINFO_KEK 2
163
+ # define CMS_RECIPINFO_PASS 3
164
+ # define CMS_RECIPINFO_OTHER 4
165
+
166
+ /* S/MIME related flags */
167
+
168
+ # define CMS_TEXT 0x1
169
+ # define CMS_NOCERTS 0x2
170
+ # define CMS_NO_CONTENT_VERIFY 0x4
171
+ # define CMS_NO_ATTR_VERIFY 0x8
172
+ # define CMS_NOSIGS \
173
+ (CMS_NO_CONTENT_VERIFY|CMS_NO_ATTR_VERIFY)
174
+ # define CMS_NOINTERN 0x10
175
+ # define CMS_NO_SIGNER_CERT_VERIFY 0x20
176
+ # define CMS_NOVERIFY 0x20
177
+ # define CMS_DETACHED 0x40
178
+ # define CMS_BINARY 0x80
179
+ # define CMS_NOATTR 0x100
180
+ # define CMS_NOSMIMECAP 0x200
181
+ # define CMS_NOOLDMIMETYPE 0x400
182
+ # define CMS_CRLFEOL 0x800
183
+ # define CMS_STREAM 0x1000
184
+ # define CMS_NOCRL 0x2000
185
+ # define CMS_PARTIAL 0x4000
186
+ # define CMS_REUSE_DIGEST 0x8000
187
+ # define CMS_USE_KEYID 0x10000
188
+ # define CMS_DEBUG_DECRYPT 0x20000
189
+ # define CMS_KEY_PARAM 0x40000
190
+ # define CMS_ASCIICRLF 0x80000
191
+ # define CMS_CADES 0x100000
192
+ # define CMS_USE_ORIGINATOR_KEYID 0x200000
193
+
194
+ const ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms);
195
+
196
+ BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont);
197
+ int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio);
198
+
199
+ ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms);
200
+ int CMS_is_detached(CMS_ContentInfo *cms);
201
+ int CMS_set_detached(CMS_ContentInfo *cms, int detached);
202
+
203
+ # ifdef OPENSSL_PEM_H
204
+ DECLARE_PEM_rw(CMS, CMS_ContentInfo)
205
+ # endif
206
+ int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms);
207
+ CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);
208
+ int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);
209
+
210
+ BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms);
211
+ int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags);
212
+ int PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in,
213
+ int flags);
214
+ CMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont);
215
+ CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, int flags, BIO **bcont, CMS_ContentInfo **ci);
216
+ int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags);
217
+
218
+ int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont,
219
+ unsigned int flags);
220
+
221
+ CMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey,
222
+ STACK_OF(X509) *certs, BIO *data,
223
+ unsigned int flags);
224
+ CMS_ContentInfo *CMS_sign_ex(X509 *signcert, EVP_PKEY *pkey,
225
+ STACK_OF(X509) *certs, BIO *data,
226
+ unsigned int flags, OSSL_LIB_CTX *ctx,
227
+ const char *propq);
228
+
229
+ CMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si,
230
+ X509 *signcert, EVP_PKEY *pkey,
231
+ STACK_OF(X509) *certs, unsigned int flags);
232
+
233
+ int CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags);
234
+ CMS_ContentInfo *CMS_data_create(BIO *in, unsigned int flags);
235
+ CMS_ContentInfo *CMS_data_create_ex(BIO *in, unsigned int flags,
236
+ OSSL_LIB_CTX *ctx, const char *propq);
237
+
238
+ int CMS_digest_verify(CMS_ContentInfo *cms, BIO *dcont, BIO *out,
239
+ unsigned int flags);
240
+ CMS_ContentInfo *CMS_digest_create(BIO *in, const EVP_MD *md,
241
+ unsigned int flags);
242
+ CMS_ContentInfo *CMS_digest_create_ex(BIO *in, const EVP_MD *md,
243
+ unsigned int flags, OSSL_LIB_CTX *ctx,
244
+ const char *propq);
245
+
246
+ int CMS_EncryptedData_decrypt(CMS_ContentInfo *cms,
247
+ const unsigned char *key, size_t keylen,
248
+ BIO *dcont, BIO *out, unsigned int flags);
249
+
250
+ CMS_ContentInfo *CMS_EncryptedData_encrypt(BIO *in, const EVP_CIPHER *cipher,
251
+ const unsigned char *key,
252
+ size_t keylen, unsigned int flags);
253
+ CMS_ContentInfo *CMS_EncryptedData_encrypt_ex(BIO *in, const EVP_CIPHER *cipher,
254
+ const unsigned char *key,
255
+ size_t keylen, unsigned int flags,
256
+ OSSL_LIB_CTX *ctx,
257
+ const char *propq);
258
+
259
+ int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph,
260
+ const unsigned char *key, size_t keylen);
261
+
262
+ int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs,
263
+ X509_STORE *store, BIO *dcont, BIO *out, unsigned int flags);
264
+
265
+ int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms,
266
+ STACK_OF(X509) *certs,
267
+ X509_STORE *store, unsigned int flags);
268
+
269
+ STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms);
270
+
271
+ CMS_ContentInfo *CMS_encrypt(STACK_OF(X509) *certs, BIO *in,
272
+ const EVP_CIPHER *cipher, unsigned int flags);
273
+ CMS_ContentInfo *CMS_encrypt_ex(STACK_OF(X509) *certs, BIO *in,
274
+ const EVP_CIPHER *cipher, unsigned int flags,
275
+ OSSL_LIB_CTX *ctx, const char *propq);
276
+
277
+ int CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pkey, X509 *cert,
278
+ BIO *dcont, BIO *out, unsigned int flags);
279
+
280
+ int CMS_decrypt_set1_pkey(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert);
281
+ int CMS_decrypt_set1_pkey_and_peer(CMS_ContentInfo *cms, EVP_PKEY *pk,
282
+ X509 *cert, X509 *peer);
283
+ int CMS_decrypt_set1_key(CMS_ContentInfo *cms,
284
+ unsigned char *key, size_t keylen,
285
+ const unsigned char *id, size_t idlen);
286
+ int CMS_decrypt_set1_password(CMS_ContentInfo *cms,
287
+ unsigned char *pass, ossl_ssize_t passlen);
288
+
289
+ STACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms);
290
+ int CMS_RecipientInfo_type(CMS_RecipientInfo *ri);
291
+ EVP_PKEY_CTX *CMS_RecipientInfo_get0_pkey_ctx(CMS_RecipientInfo *ri);
292
+ CMS_ContentInfo *CMS_AuthEnvelopedData_create(const EVP_CIPHER *cipher);
293
+ CMS_ContentInfo *
294
+ CMS_AuthEnvelopedData_create_ex(const EVP_CIPHER *cipher, OSSL_LIB_CTX *ctx,
295
+ const char *propq);
296
+ CMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher);
297
+ CMS_ContentInfo *CMS_EnvelopedData_create_ex(const EVP_CIPHER *cipher,
298
+ OSSL_LIB_CTX *ctx,
299
+ const char *propq);
300
+
301
+ CMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms,
302
+ X509 *recip, unsigned int flags);
303
+ CMS_RecipientInfo *CMS_add1_recipient(CMS_ContentInfo *cms, X509 *recip,
304
+ EVP_PKEY *originatorPrivKey, X509 * originator, unsigned int flags);
305
+ int CMS_RecipientInfo_set0_pkey(CMS_RecipientInfo *ri, EVP_PKEY *pkey);
306
+ int CMS_RecipientInfo_ktri_cert_cmp(CMS_RecipientInfo *ri, X509 *cert);
307
+ int CMS_RecipientInfo_ktri_get0_algs(CMS_RecipientInfo *ri,
308
+ EVP_PKEY **pk, X509 **recip,
309
+ X509_ALGOR **palg);
310
+ int CMS_RecipientInfo_ktri_get0_signer_id(CMS_RecipientInfo *ri,
311
+ ASN1_OCTET_STRING **keyid,
312
+ X509_NAME **issuer,
313
+ ASN1_INTEGER **sno);
314
+
315
+ CMS_RecipientInfo *CMS_add0_recipient_key(CMS_ContentInfo *cms, int nid,
316
+ unsigned char *key, size_t keylen,
317
+ unsigned char *id, size_t idlen,
318
+ ASN1_GENERALIZEDTIME *date,
319
+ ASN1_OBJECT *otherTypeId,
320
+ ASN1_TYPE *otherType);
321
+
322
+ int CMS_RecipientInfo_kekri_get0_id(CMS_RecipientInfo *ri,
323
+ X509_ALGOR **palg,
324
+ ASN1_OCTET_STRING **pid,
325
+ ASN1_GENERALIZEDTIME **pdate,
326
+ ASN1_OBJECT **potherid,
327
+ ASN1_TYPE **pothertype);
328
+
329
+ int CMS_RecipientInfo_set0_key(CMS_RecipientInfo *ri,
330
+ unsigned char *key, size_t keylen);
331
+
332
+ int CMS_RecipientInfo_kekri_id_cmp(CMS_RecipientInfo *ri,
333
+ const unsigned char *id, size_t idlen);
334
+
335
+ int CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri,
336
+ unsigned char *pass,
337
+ ossl_ssize_t passlen);
338
+
339
+ CMS_RecipientInfo *CMS_add0_recipient_password(CMS_ContentInfo *cms,
340
+ int iter, int wrap_nid,
341
+ int pbe_nid,
342
+ unsigned char *pass,
343
+ ossl_ssize_t passlen,
344
+ const EVP_CIPHER *kekciph);
345
+
346
+ int CMS_RecipientInfo_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);
347
+ int CMS_RecipientInfo_encrypt(const CMS_ContentInfo *cms, CMS_RecipientInfo *ri);
348
+
349
+ int CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out,
350
+ unsigned int flags);
351
+ CMS_ContentInfo *CMS_compress(BIO *in, int comp_nid, unsigned int flags);
352
+
353
+ int CMS_set1_eContentType(CMS_ContentInfo *cms, const ASN1_OBJECT *oid);
354
+ const ASN1_OBJECT *CMS_get0_eContentType(CMS_ContentInfo *cms);
355
+
356
+ CMS_CertificateChoices *CMS_add0_CertificateChoices(CMS_ContentInfo *cms);
357
+ int CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert);
358
+ int CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert);
359
+ STACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms);
360
+
361
+ CMS_RevocationInfoChoice *CMS_add0_RevocationInfoChoice(CMS_ContentInfo *cms);
362
+ int CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl);
363
+ int CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl);
364
+ STACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms);
365
+
366
+ int CMS_SignedData_init(CMS_ContentInfo *cms);
367
+ CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms,
368
+ X509 *signer, EVP_PKEY *pk, const EVP_MD *md,
369
+ unsigned int flags);
370
+ EVP_PKEY_CTX *CMS_SignerInfo_get0_pkey_ctx(CMS_SignerInfo *si);
371
+ EVP_MD_CTX *CMS_SignerInfo_get0_md_ctx(CMS_SignerInfo *si);
372
+ STACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms);
373
+
374
+ void CMS_SignerInfo_set1_signer_cert(CMS_SignerInfo *si, X509 *signer);
375
+ int CMS_SignerInfo_get0_signer_id(CMS_SignerInfo *si,
376
+ ASN1_OCTET_STRING **keyid,
377
+ X509_NAME **issuer, ASN1_INTEGER **sno);
378
+ int CMS_SignerInfo_cert_cmp(CMS_SignerInfo *si, X509 *cert);
379
+ int CMS_set1_signers_certs(CMS_ContentInfo *cms, STACK_OF(X509) *certs,
380
+ unsigned int flags);
381
+ void CMS_SignerInfo_get0_algs(CMS_SignerInfo *si, EVP_PKEY **pk,
382
+ X509 **signer, X509_ALGOR **pdig,
383
+ X509_ALGOR **psig);
384
+ ASN1_OCTET_STRING *CMS_SignerInfo_get0_signature(CMS_SignerInfo *si);
385
+ int CMS_SignerInfo_sign(CMS_SignerInfo *si);
386
+ int CMS_SignerInfo_verify(CMS_SignerInfo *si);
387
+ int CMS_SignerInfo_verify_content(CMS_SignerInfo *si, BIO *chain);
388
+
389
+ int CMS_add_smimecap(CMS_SignerInfo *si, STACK_OF(X509_ALGOR) *algs);
390
+ int CMS_add_simple_smimecap(STACK_OF(X509_ALGOR) **algs,
391
+ int algnid, int keysize);
392
+ int CMS_add_standard_smimecap(STACK_OF(X509_ALGOR) **smcap);
393
+
394
+ int CMS_signed_get_attr_count(const CMS_SignerInfo *si);
395
+ int CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid,
396
+ int lastpos);
397
+ int CMS_signed_get_attr_by_OBJ(const CMS_SignerInfo *si, const ASN1_OBJECT *obj,
398
+ int lastpos);
399
+ X509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc);
400
+ X509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc);
401
+ int CMS_signed_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr);
402
+ int CMS_signed_add1_attr_by_OBJ(CMS_SignerInfo *si,
403
+ const ASN1_OBJECT *obj, int type,
404
+ const void *bytes, int len);
405
+ int CMS_signed_add1_attr_by_NID(CMS_SignerInfo *si,
406
+ int nid, int type,
407
+ const void *bytes, int len);
408
+ int CMS_signed_add1_attr_by_txt(CMS_SignerInfo *si,
409
+ const char *attrname, int type,
410
+ const void *bytes, int len);
411
+ void *CMS_signed_get0_data_by_OBJ(const CMS_SignerInfo *si,
412
+ const ASN1_OBJECT *oid,
413
+ int lastpos, int type);
414
+
415
+ int CMS_unsigned_get_attr_count(const CMS_SignerInfo *si);
416
+ int CMS_unsigned_get_attr_by_NID(const CMS_SignerInfo *si, int nid,
417
+ int lastpos);
418
+ int CMS_unsigned_get_attr_by_OBJ(const CMS_SignerInfo *si,
419
+ const ASN1_OBJECT *obj, int lastpos);
420
+ X509_ATTRIBUTE *CMS_unsigned_get_attr(const CMS_SignerInfo *si, int loc);
421
+ X509_ATTRIBUTE *CMS_unsigned_delete_attr(CMS_SignerInfo *si, int loc);
422
+ int CMS_unsigned_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr);
423
+ int CMS_unsigned_add1_attr_by_OBJ(CMS_SignerInfo *si,
424
+ const ASN1_OBJECT *obj, int type,
425
+ const void *bytes, int len);
426
+ int CMS_unsigned_add1_attr_by_NID(CMS_SignerInfo *si,
427
+ int nid, int type,
428
+ const void *bytes, int len);
429
+ int CMS_unsigned_add1_attr_by_txt(CMS_SignerInfo *si,
430
+ const char *attrname, int type,
431
+ const void *bytes, int len);
432
+ void *CMS_unsigned_get0_data_by_OBJ(CMS_SignerInfo *si, ASN1_OBJECT *oid,
433
+ int lastpos, int type);
434
+
435
+ int CMS_get1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest **prr);
436
+ CMS_ReceiptRequest *CMS_ReceiptRequest_create0(
437
+ unsigned char *id, int idlen, int allorfirst,
438
+ STACK_OF(GENERAL_NAMES) *receiptList,
439
+ STACK_OF(GENERAL_NAMES) *receiptsTo);
440
+ CMS_ReceiptRequest *CMS_ReceiptRequest_create0_ex(
441
+ unsigned char *id, int idlen, int allorfirst,
442
+ STACK_OF(GENERAL_NAMES) *receiptList,
443
+ STACK_OF(GENERAL_NAMES) *receiptsTo,
444
+ OSSL_LIB_CTX *ctx);
445
+
446
+ int CMS_add1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest *rr);
447
+ void CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest *rr,
448
+ ASN1_STRING **pcid,
449
+ int *pallorfirst,
450
+ STACK_OF(GENERAL_NAMES) **plist,
451
+ STACK_OF(GENERAL_NAMES) **prto);
452
+ int CMS_RecipientInfo_kari_get0_alg(CMS_RecipientInfo *ri,
453
+ X509_ALGOR **palg,
454
+ ASN1_OCTET_STRING **pukm);
455
+ STACK_OF(CMS_RecipientEncryptedKey)
456
+ *CMS_RecipientInfo_kari_get0_reks(CMS_RecipientInfo *ri);
457
+
458
+ int CMS_RecipientInfo_kari_get0_orig_id(CMS_RecipientInfo *ri,
459
+ X509_ALGOR **pubalg,
460
+ ASN1_BIT_STRING **pubkey,
461
+ ASN1_OCTET_STRING **keyid,
462
+ X509_NAME **issuer,
463
+ ASN1_INTEGER **sno);
464
+
465
+ int CMS_RecipientInfo_kari_orig_id_cmp(CMS_RecipientInfo *ri, X509 *cert);
466
+
467
+ int CMS_RecipientEncryptedKey_get0_id(CMS_RecipientEncryptedKey *rek,
468
+ ASN1_OCTET_STRING **keyid,
469
+ ASN1_GENERALIZEDTIME **tm,
470
+ CMS_OtherKeyAttribute **other,
471
+ X509_NAME **issuer, ASN1_INTEGER **sno);
472
+ int CMS_RecipientEncryptedKey_cert_cmp(CMS_RecipientEncryptedKey *rek,
473
+ X509 *cert);
474
+ int CMS_RecipientInfo_kari_set0_pkey(CMS_RecipientInfo *ri, EVP_PKEY *pk);
475
+ int CMS_RecipientInfo_kari_set0_pkey_and_peer(CMS_RecipientInfo *ri, EVP_PKEY *pk, X509 *peer);
476
+ EVP_CIPHER_CTX *CMS_RecipientInfo_kari_get0_ctx(CMS_RecipientInfo *ri);
477
+ int CMS_RecipientInfo_kari_decrypt(CMS_ContentInfo *cms,
478
+ CMS_RecipientInfo *ri,
479
+ CMS_RecipientEncryptedKey *rek);
480
+
481
+ int CMS_SharedInfo_encode(unsigned char **pder, X509_ALGOR *kekalg,
482
+ ASN1_OCTET_STRING *ukm, int keylen);
483
+
484
+ /* Backward compatibility for spelling errors. */
485
+ # define CMS_R_UNKNOWN_DIGEST_ALGORITM CMS_R_UNKNOWN_DIGEST_ALGORITHM
486
+ # define CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE \
487
+ CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE
488
+
489
+ # ifdef __cplusplus
490
+ }
491
+ # endif
492
+ # endif
493
+ #endif