X509_STORE_CTX_new.3ossl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. .\" -*- mode: troff; coding: utf-8 -*-
  2. .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
  3. .\"
  4. .\" Standard preamble:
  5. .\" ========================================================================
  6. .de Sp \" Vertical space (when we can't use .PP)
  7. .if t .sp .5v
  8. .if n .sp
  9. ..
  10. .de Vb \" Begin verbatim text
  11. .ft CW
  12. .nf
  13. .ne \\$1
  14. ..
  15. .de Ve \" End verbatim text
  16. .ft R
  17. .fi
  18. ..
  19. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
  20. .ie n \{\
  21. . ds C` ""
  22. . ds C' ""
  23. 'br\}
  24. .el\{\
  25. . ds C`
  26. . ds C'
  27. 'br\}
  28. .\"
  29. .\" Escape single quotes in literal strings from groff's Unicode transform.
  30. .ie \n(.g .ds Aq \(aq
  31. .el .ds Aq '
  32. .\"
  33. .\" If the F register is >0, we'll generate index entries on stderr for
  34. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  35. .\" entries marked with X<> in POD. Of course, you'll have to process the
  36. .\" output yourself in some meaningful fashion.
  37. .\"
  38. .\" Avoid warning from groff about undefined register 'F'.
  39. .de IX
  40. ..
  41. .nr rF 0
  42. .if \n(.g .if rF .nr rF 1
  43. .if (\n(rF:(\n(.g==0)) \{\
  44. . if \nF \{\
  45. . de IX
  46. . tm Index:\\$1\t\\n%\t"\\$2"
  47. ..
  48. . if !\nF==2 \{\
  49. . nr % 0
  50. . nr F 2
  51. . \}
  52. . \}
  53. .\}
  54. .rr rF
  55. .\" ========================================================================
  56. .\"
  57. .IX Title "X509_STORE_CTX_NEW 3ossl"
  58. .TH X509_STORE_CTX_NEW 3ossl 2025-01-17 3.4.0 OpenSSL
  59. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  60. .\" way too many mistakes in technical documents.
  61. .if n .ad l
  62. .nh
  63. .SH NAME
  64. X509_STORE_CTX_new_ex, X509_STORE_CTX_new, X509_STORE_CTX_cleanup,
  65. X509_STORE_CTX_free, X509_STORE_CTX_init,
  66. X509_STORE_CTX_init_rpk,
  67. X509_STORE_CTX_set0_trusted_stack,
  68. X509_STORE_CTX_set_cert, X509_STORE_CTX_set0_crls,
  69. X509_STORE_CTX_set0_rpk,
  70. X509_STORE_CTX_get0_param, X509_STORE_CTX_set0_param,
  71. X509_STORE_CTX_get0_untrusted, X509_STORE_CTX_set0_untrusted,
  72. X509_STORE_CTX_get_num_untrusted,
  73. X509_STORE_CTX_get0_chain, X509_STORE_CTX_set0_verified_chain,
  74. X509_STORE_CTX_get0_rpk,
  75. X509_STORE_CTX_set_default,
  76. X509_STORE_CTX_set_verify,
  77. X509_STORE_CTX_verify_fn,
  78. X509_STORE_CTX_set_purpose,
  79. X509_STORE_CTX_set_trust,
  80. X509_STORE_CTX_purpose_inherit
  81. \&\- X509_STORE_CTX initialisation
  82. .SH SYNOPSIS
  83. .IX Header "SYNOPSIS"
  84. .Vb 1
  85. \& #include <openssl/x509_vfy.h>
  86. \&
  87. \& X509_STORE_CTX *X509_STORE_CTX_new_ex(OSSL_LIB_CTX *libctx, const char *propq);
  88. \& X509_STORE_CTX *X509_STORE_CTX_new(void);
  89. \& void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx);
  90. \& void X509_STORE_CTX_free(X509_STORE_CTX *ctx);
  91. \&
  92. \& int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *trust_store,
  93. \& X509 *target, STACK_OF(X509) *untrusted);
  94. \& int X509_STORE_CTX_init_rpk(X509_STORE_CTX *ctx, X509_STORE *trust_store,
  95. \& EVP_PKEY *rpk);
  96. \&
  97. \& void X509_STORE_CTX_set0_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);
  98. \&
  99. \& void X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *target);
  100. \& void X509_STORE_CTX_set0_crls(X509_STORE_CTX *ctx, STACK_OF(X509_CRL) *sk);
  101. \& void X509_STORE_CTX_set0_rpk(X509_STORE_CTX *ctx, EVP_PKEY *target);
  102. \&
  103. \& X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(const X509_STORE_CTX *ctx);
  104. \& void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param);
  105. \&
  106. \& STACK_OF(X509)* X509_STORE_CTX_get0_untrusted(const X509_STORE_CTX *ctx);
  107. \& void X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);
  108. \&
  109. \& int X509_STORE_CTX_get_num_untrusted(const X509_STORE_CTX *ctx);
  110. \& STACK_OF(X509) *X509_STORE_CTX_get0_chain(const X509_STORE_CTX *ctx);
  111. \& void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *chain);
  112. \& EVP_PKEY *X509_STORE_CTX_get0_rpk(const X509_STORE_CTX *ctx);
  113. \&
  114. \& int X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name);
  115. \& typedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *);
  116. \& void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, X509_STORE_CTX_verify_fn verify);
  117. \&
  118. \& int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose);
  119. \& int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust);
  120. \& int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,
  121. \& int purpose, int trust);
  122. .Ve
  123. .SH DESCRIPTION
  124. .IX Header "DESCRIPTION"
  125. These functions initialise an \fBX509_STORE_CTX\fR structure for subsequent use
  126. by \fBX509_verify_cert\fR\|(3) or \fBX509_STORE_CTX_verify\fR\|(3).
  127. .PP
  128. \&\fBX509_STORE_CTX_new_ex()\fR returns a newly initialised \fBX509_STORE_CTX\fR
  129. structure associated with the specified library context \fIlibctx\fR and property
  130. query string \fIpropq\fR. Any cryptographic algorithms fetched while performing
  131. processing with the X509_STORE_CTX will use that library context and property
  132. query string.
  133. .PP
  134. \&\fBX509_STORE_CTX_new()\fR is the same as \fBX509_STORE_CTX_new_ex()\fR except that
  135. the default library context and a NULL property query string are used.
  136. .PP
  137. \&\fBX509_STORE_CTX_cleanup()\fR internally cleans up an \fBX509_STORE_CTX\fR structure.
  138. It is used by \fBX509_STORE_CTX_init()\fR and \fBX509_STORE_CTX_free()\fR.
  139. .PP
  140. \&\fBX509_STORE_CTX_free()\fR completely frees up \fIctx\fR. After this call \fIctx\fR
  141. is no longer valid.
  142. If \fIctx\fR is NULL nothing is done.
  143. .PP
  144. \&\fBX509_STORE_CTX_init()\fR sets up \fIctx\fR for a subsequent verification operation.
  145. .PP
  146. \&\fBX509_STORE_CTX_init()\fR initializes the internal state and resources of the
  147. X509_STORE_CTX, and must be called before each call to \fBX509_verify_cert\fR\|(3) or
  148. \&\fBX509_STORE_CTX_verify\fR\|(3), i.e., a context is only good for one verification.
  149. If you want to verify a further certificate or chain with the same \fIctx\fR
  150. then you must call \fBX509_STORE_CTX_init()\fR again.
  151. The trusted certificate store is set to \fItrust_store\fR of type \fBX509_STORE\fR.
  152. This may be NULL because there are no trusted certificates or because
  153. they are provided simply as a list using \fBX509_STORE_CTX_set0_trusted_stack()\fR.
  154. The certificate to be verified is set to \fItarget\fR,
  155. and a list of additional certificates may be provided in \fIuntrusted\fR,
  156. which will be untrusted but may be used to build the chain.
  157. The \fItarget\fR certificate is not copied (its reference count is not updated),
  158. and the caller must not free it before verification is complete.
  159. Each of the \fItrust_store\fR, \fItarget\fR and \fIuntrusted\fR parameters can be NULL.
  160. Yet note that \fBX509_verify_cert\fR\|(3) and \fBX509_STORE_CTX_verify\fR\|(3)
  161. will need a verification target.
  162. This can also be set using \fBX509_STORE_CTX_set_cert()\fR.
  163. For \fBX509_STORE_CTX_verify\fR\|(3), which takes by default the first element of the
  164. list of untrusted certificates as its verification target,
  165. this can be also set indirectly using \fBX509_STORE_CTX_set0_untrusted()\fR.
  166. .PP
  167. \&\fBX509_STORE_CTX_init_rpk()\fR sets up \fIctx\fR for a subsequent verification
  168. operation for the \fItarget\fR raw public key.
  169. It behaves similarly to \fBX509_STORE_CTX_init()\fR.
  170. The \fItarget\fR raw public key can also be supplied separately, via
  171. \&\fBX509_STORE_CTX_set0_rpk()\fR.
  172. The \fItarget\fR public key is not copied (its reference count is not updated),
  173. and the caller must not free it before verification is complete.
  174. .PP
  175. \&\fBX509_STORE_CTX_set0_trusted_stack()\fR sets the set of trusted certificates of
  176. \&\fIctx\fR to \fIsk\fR. This is an alternative way of specifying trusted certificates
  177. instead of using an \fBX509_STORE\fR where its complexity is not needed
  178. or to make sure that only the given set \fIsk\fR of certificates are trusted.
  179. .PP
  180. \&\fBX509_STORE_CTX_set_cert()\fR sets the target certificate to be verified in \fIctx\fR
  181. to \fItarget\fR.
  182. The target certificate is not copied (its reference count is not updated),
  183. and the caller must not free it before verification is complete.
  184. .PP
  185. \&\fBX509_STORE_CTX_set0_rpk()\fR sets the target raw public key to be verified in \fIctx\fR
  186. to \fItarget\fR, a non-NULL raw public key preempts any target certificate, which
  187. is then ignored.
  188. The \fItarget\fR public key is not copied (its reference count is not updated),
  189. and the caller must not free it before verification is complete.
  190. .PP
  191. \&\fBX509_STORE_CTX_set0_verified_chain()\fR sets the validated chain to \fIchain\fR.
  192. Ownership of the chain is transferred to \fIctx\fR,
  193. and so it should not be free'd by the caller.
  194. .PP
  195. \&\fBX509_STORE_CTX_get0_chain()\fR returns the internal pointer used by the
  196. \&\fIctx\fR that contains the constructed (output) chain.
  197. .PP
  198. \&\fBX509_STORE_CTX_get0_rpk()\fR returns the internal pointer used by the
  199. \&\fIctx\fR that contains the raw public key.
  200. .PP
  201. \&\fBX509_STORE_CTX_set0_crls()\fR sets a set of CRLs to use to aid certificate
  202. verification to \fIsk\fR. These CRLs will only be used if CRL verification is
  203. enabled in the associated \fBX509_VERIFY_PARAM\fR structure. This might be
  204. used where additional "useful" CRLs are supplied as part of a protocol,
  205. for example in a PKCS#7 structure.
  206. .PP
  207. \&\fBX509_STORE_CTX_get0_param()\fR retrieves an internal pointer
  208. to the verification parameters associated with \fIctx\fR.
  209. .PP
  210. \&\fBX509_STORE_CTX_set0_param()\fR sets the internal verification parameter pointer
  211. to \fIparam\fR. After this call \fBparam\fR should not be used.
  212. .PP
  213. \&\fBX509_STORE_CTX_get0_untrusted()\fR retrieves an internal pointer to the
  214. stack of untrusted certificates associated with \fIctx\fR.
  215. .PP
  216. \&\fBX509_STORE_CTX_set0_untrusted()\fR sets the internal pointer to the stack
  217. of untrusted certificates associated with \fIctx\fR to \fIsk\fR.
  218. \&\fBX509_STORE_CTX_verify()\fR will take the first element, if any,
  219. as its default target if the target certificate is not set explicitly.
  220. .PP
  221. \&\fBX509_STORE_CTX_get_num_untrusted()\fR returns the number of untrusted certificates
  222. that were used in building the chain.
  223. This is can be used after calling \fBX509_verify_cert\fR\|(3) and similar functions.
  224. With \fBX509_STORE_CTX_verify\fR\|(3), this does not count the first chain element.
  225. .PP
  226. \&\fBX509_STORE_CTX_get0_chain()\fR returns the internal pointer used by the
  227. \&\fIctx\fR that contains the validated chain.
  228. .PP
  229. Details of the chain building and checking process are described in
  230. "Certification Path Building" in \fBopenssl\-verification\-options\fR\|(1) and
  231. "Certification Path Validation" in \fBopenssl\-verification\-options\fR\|(1).
  232. .PP
  233. \&\fBX509_STORE_CTX_set0_verified_chain()\fR sets the validated chain used
  234. by \fIctx\fR to be \fIchain\fR.
  235. Ownership of the chain is transferred to \fIctx\fR,
  236. and so it should not be free'd by the caller.
  237. .PP
  238. \&\fBX509_STORE_CTX_set_default()\fR looks up and sets the default verification
  239. method to \fIname\fR. This uses the function \fBX509_VERIFY_PARAM_lookup()\fR to
  240. find an appropriate set of parameters from the purpose identifier \fIname\fR.
  241. Currently defined purposes are \f(CW\*(C`sslclient\*(C'\fR, \f(CW\*(C`sslserver\*(C'\fR, \f(CW\*(C`nssslserver\*(C'\fR,
  242. \&\f(CW\*(C`smimesign\*(C'\fR, \f(CW\*(C`smimeencrypt\*(C'\fR, \f(CW\*(C`crlsign\*(C'\fR, \f(CW\*(C`ocsphelper\*(C'\fR, \f(CW\*(C`timestampsign\*(C'\fR,
  243. and \f(CW\*(C`any\*(C'\fR.
  244. .PP
  245. \&\fBX509_STORE_CTX_set_verify()\fR provides the capability for overriding the default
  246. verify function. This function is responsible for verifying chain signatures and
  247. expiration times.
  248. .PP
  249. A verify function is defined as an X509_STORE_CTX_verify type which has the
  250. following signature:
  251. .PP
  252. .Vb 1
  253. \& int (*verify)(X509_STORE_CTX *);
  254. .Ve
  255. .PP
  256. This function should receive the current X509_STORE_CTX as a parameter and
  257. return 1 on success or 0 on failure.
  258. .PP
  259. X509 certificates may contain information about what purposes keys contained
  260. within them can be used for. For example "TLS WWW Server Authentication" or
  261. "Email Protection". This "key usage" information is held internally to the
  262. certificate itself. In addition the trust store containing trusted certificates
  263. can declare what purposes we trust different certificates for. This "trust"
  264. information is not held within the certificate itself but is "meta" information
  265. held alongside it. This "meta" information is associated with the certificate
  266. after it is issued and could be determined by a system administrator. For
  267. example a certificate might declare that it is suitable for use for both
  268. "TLS WWW Server Authentication" and "TLS Client Authentication", but a system
  269. administrator might only trust it for the former. An X.509 certificate extension
  270. exists that can record extended key usage information to supplement the purpose
  271. information described above. This extended mechanism is arbitrarily extensible
  272. and not well suited for a generic library API; applications that need to
  273. validate extended key usage information in certificates will need to define a
  274. custom "purpose" (see below) or supply a nondefault verification callback
  275. (\fBX509_STORE_set_verify_cb_func\fR\|(3)).
  276. .PP
  277. \&\fBX509_STORE_CTX_set_purpose()\fR sets the purpose for the target certificate being
  278. verified in the \fIctx\fR. Built-in available values for the \fIpurpose\fR argument
  279. are \fBX509_PURPOSE_SSL_CLIENT\fR, \fBX509_PURPOSE_SSL_SERVER\fR,
  280. \&\fBX509_PURPOSE_NS_SSL_SERVER\fR, \fBX509_PURPOSE_SMIME_SIGN\fR,
  281. \&\fBX509_PURPOSE_SMIME_ENCRYPT\fR, \fBX509_PURPOSE_CRL_SIGN\fR, \fBX509_PURPOSE_ANY\fR,
  282. \&\fBX509_PURPOSE_OCSP_HELPER\fR, \fBX509_PURPOSE_TIMESTAMP_SIGN\fR and
  283. \&\fBX509_PURPOSE_CODE_SIGN\fR. It is also
  284. possible to create a custom purpose value. Setting a purpose requests that
  285. the key usage and extended key usage (EKU) extensions optionally declared within
  286. the certificate and its chain are verified to be consistent with that purpose.
  287. For SSL client, SSL server, and S/MIME purposes, the EKU is checked also for the
  288. CA certificates along the chain, including any given trust anchor certificate.
  289. Potentially also further checks are done (depending on the purpose given).
  290. Every purpose also has an associated default trust value, which will also be set
  291. at the same time. During verification, this trust setting will be verified
  292. to check whether it is consistent with the trust set by the system administrator
  293. for certificates in the chain.
  294. .PP
  295. \&\fBX509_STORE_CTX_set_trust()\fR sets the trust value for the target certificate
  296. being verified in the \fIctx\fR. Built-in available values for the \fItrust\fR
  297. argument are \fBX509_TRUST_COMPAT\fR, \fBX509_TRUST_SSL_CLIENT\fR,
  298. \&\fBX509_TRUST_SSL_SERVER\fR, \fBX509_TRUST_EMAIL\fR, \fBX509_TRUST_OBJECT_SIGN\fR,
  299. \&\fBX509_TRUST_OCSP_SIGN\fR, \fBX509_TRUST_OCSP_REQUEST\fR and \fBX509_TRUST_TSA\fR. It is
  300. also possible to create a custom trust value. Since \fBX509_STORE_CTX_set_purpose()\fR
  301. also sets the trust value it is normally sufficient to only call that function.
  302. If both are called then \fBX509_STORE_CTX_set_trust()\fR should be called after
  303. \&\fBX509_STORE_CTX_set_purpose()\fR since the trust setting of the last call will be
  304. used.
  305. .PP
  306. It should not normally be necessary for end user applications to call
  307. \&\fBX509_STORE_CTX_purpose_inherit()\fR directly. Typically applications should call
  308. \&\fBX509_STORE_CTX_set_purpose()\fR or \fBX509_STORE_CTX_set_trust()\fR instead. Using this
  309. function it is possible to set the purpose and trust values for the \fIctx\fR at
  310. the same time.
  311. Both \fIctx\fR and its internal verification parameter pointer must not be NULL.
  312. The \fIdef_purpose\fR and \fIpurpose\fR arguments can have the same
  313. purpose values as described for \fBX509_STORE_CTX_set_purpose()\fR above. The \fItrust\fR
  314. argument can have the same trust values as described in
  315. \&\fBX509_STORE_CTX_set_trust()\fR above. Any of the \fIdef_purpose\fR, \fIpurpose\fR or
  316. \&\fItrust\fR values may also have the value 0 to indicate that the supplied
  317. parameter should be ignored. After calling this function the purpose to be used
  318. for verification is set from the \fIpurpose\fR argument unless the purpose was
  319. already set in \fIctx\fR before, and the trust is set from the \fItrust\fR argument
  320. unless the trust was already set in \fIctx\fR before.
  321. If \fItrust\fR is 0 then the trust value will be set from
  322. the default trust value for \fIpurpose\fR. If the default trust value for the
  323. purpose is \fIX509_TRUST_DEFAULT\fR and \fItrust\fR is 0 then the default trust value
  324. associated with the \fIdef_purpose\fR value is used for the trust setting instead.
  325. .SH NOTES
  326. .IX Header "NOTES"
  327. The certificates and CRLs in a store are used internally and should \fBnot\fR
  328. be freed up until after the associated \fBX509_STORE_CTX\fR is freed.
  329. .SH BUGS
  330. .IX Header "BUGS"
  331. The certificates and CRLs in a context are used internally and should \fBnot\fR
  332. be freed up until after the associated \fBX509_STORE_CTX\fR is freed. Copies
  333. should be made or reference counts increased instead.
  334. .SH "RETURN VALUES"
  335. .IX Header "RETURN VALUES"
  336. \&\fBX509_STORE_CTX_new()\fR returns a newly allocated context or NULL if an
  337. error occurred.
  338. .PP
  339. \&\fBX509_STORE_CTX_init()\fR and \fBX509_STORE_CTX_init_rpk()\fR return 1 for success
  340. or 0 if an error occurred.
  341. .PP
  342. \&\fBX509_STORE_CTX_get0_param()\fR returns a pointer to an \fBX509_VERIFY_PARAM\fR
  343. structure or NULL if an error occurred.
  344. .PP
  345. \&\fBX509_STORE_CTX_get0_rpk()\fR returns a pointer to an \fBEVP_PKEY\fR structure if
  346. present, or NULL if absent.
  347. .PP
  348. \&\fBX509_STORE_CTX_cleanup()\fR, \fBX509_STORE_CTX_free()\fR,
  349. \&\fBX509_STORE_CTX_set0_trusted_stack()\fR,
  350. \&\fBX509_STORE_CTX_set_cert()\fR,
  351. \&\fBX509_STORE_CTX_set0_crls()\fR and \fBX509_STORE_CTX_set0_param()\fR do not return
  352. values.
  353. .PP
  354. \&\fBX509_STORE_CTX_set_default()\fR returns 1 for success or 0 if an error occurred.
  355. .PP
  356. \&\fBX509_STORE_CTX_get_num_untrusted()\fR returns the number of untrusted certificates
  357. used.
  358. .SH "SEE ALSO"
  359. .IX Header "SEE ALSO"
  360. \&\fBX509_verify_cert\fR\|(3), \fBX509_STORE_CTX_verify\fR\|(3),
  361. \&\fBX509_VERIFY_PARAM_set_flags\fR\|(3)
  362. .SH HISTORY
  363. .IX Header "HISTORY"
  364. The \fBX509_STORE_CTX_set0_crls()\fR function was added in OpenSSL 1.0.0.
  365. The \fBX509_STORE_CTX_get_num_untrusted()\fR function was added in OpenSSL 1.1.0.
  366. The \fBX509_STORE_CTX_new_ex()\fR function was added in OpenSSL 3.0.
  367. The \fBX509_STORE_CTX_init_rpk()\fR, \fBX509_STORE_CTX_get0_rpk()\fR, and
  368. \&\fBX509_STORE_CTX_set0_rpk()\fR functions were added in OpenSSL 3.2.
  369. .PP
  370. There is no need to call \fBX509_STORE_CTX_cleanup()\fR explicitly since OpenSSL 3.0.
  371. .SH COPYRIGHT
  372. .IX Header "COPYRIGHT"
  373. Copyright 2009\-2024 The OpenSSL Project Authors. All Rights Reserved.
  374. .PP
  375. Licensed under the Apache License 2.0 (the "License"). You may not use
  376. this file except in compliance with the License. You can obtain a copy
  377. in the file LICENSE in the source distribution or at
  378. <https://www.openssl.org/source/license.html>.