- 時間撮記:
- 2022-3-3 下午07:17:34 (3 年 以前)
- svn:sync-xref-src-repo-rev:
- 150325
- 位置:
- trunk/src/libs/openssl-3.0.1
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/libs/openssl-3.0.1
- 屬性 svn:mergeinfo
-
old new 12 12 /vendor/openssl/1.1.1c:131722-131725 13 13 /vendor/openssl/1.1.1k:145841-145843 14 /vendor/openssl/3.0.1:150323-150324 15 /vendor/openssl/current:147554-150322
-
- 屬性 svn:mergeinfo
-
trunk/src/libs/openssl-3.0.1/include/crypto/x509.h
r91772 r94082 2 2 * Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved. 3 3 * 4 * Licensed under the OpenSSL license(the "License"). You may not use4 * Licensed under the Apache License 2.0 (the "License"). You may not use 5 5 * this file except in compliance with the License. You can obtain a copy 6 6 * in the file LICENSE in the source distribution or at … … 8 8 */ 9 9 10 #include "internal/refcount.h" 11 #include <openssl/x509.h> 12 #include <openssl/conf.h> 10 #ifndef OSSL_CRYPTO_X509_H 11 # define OSSL_CRYPTO_X509_H 12 # pragma once 13 14 # include "internal/refcount.h" 15 # include <openssl/asn1.h> 16 # include <openssl/x509.h> 17 # include <openssl/conf.h> 18 # include "crypto/types.h" 13 19 14 20 /* Internal X509 structures and functions: not for application use */ … … 74 80 CRYPTO_REF_COUNT references; 75 81 CRYPTO_RWLOCK *lock; 82 83 /* Set on live certificates for authentication purposes */ 84 ASN1_OCTET_STRING *distinguishing_id; 85 OSSL_LIB_CTX *libctx; 86 char *propq; 76 87 }; 77 88 … … 112 123 void *meth_data; 113 124 CRYPTO_RWLOCK *lock; 125 126 OSSL_LIB_CTX *libctx; 127 char *propq; 114 128 }; 115 129 … … 178 192 STACK_OF(GENERAL_NAME) *altname; 179 193 NAME_CONSTRAINTS *nc; 180 # ifndef OPENSSL_NO_RFC3779194 # ifndef OPENSSL_NO_RFC3779 181 195 STACK_OF(IPAddressFamily) *rfc3779_addr; 182 196 struct ASIdentifiers_st *rfc3779_asid; … … 186 200 CRYPTO_RWLOCK *lock; 187 201 volatile int ex_cached; 202 203 /* Set on live certificates for authentication purposes */ 204 ASN1_OCTET_STRING *distinguishing_id; 205 206 OSSL_LIB_CTX *libctx; 207 char *propq; 188 208 } /* X509 */ ; 189 209 … … 194 214 */ 195 215 struct x509_store_ctx_st { /* X509_STORE_CTX */ 196 X509_STORE * ctx;216 X509_STORE *store; 197 217 /* The following are set by the caller */ 198 218 /* The cert to check */ … … 224 244 /* Check policy status of the chain */ 225 245 int (*check_policy) (X509_STORE_CTX *ctx); 226 STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm); 227 STACK_OF(X509_CRL) *(*lookup_crls) (X509_STORE_CTX *ctx, X509_NAME *nm); 246 STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, 247 const X509_NAME *nm); 248 /* cannot constify 'ctx' param due to lookup_certs_sk() in x509_vfy.c */ 249 STACK_OF(X509_CRL) *(*lookup_crls) (const X509_STORE_CTX *ctx, 250 const X509_NAME *nm); 228 251 int (*cleanup) (X509_STORE_CTX *ctx); 229 252 /* The following is built up */ … … 256 279 /* signed via bare TA public key, rather than CA certificate */ 257 280 int bare_ta_signed; 281 282 OSSL_LIB_CTX *libctx; 283 char *propq; 258 284 }; 259 285 … … 283 309 }; 284 310 285 int a2i_ipadd(unsigned char *ipout, const char *ipasc); 286 int x509_set1_time(ASN1_TIME **ptm, const ASN1_TIME *tm); 287 288 void x509_init_sig_info(X509 *x); 311 int ossl_a2i_ipadd(unsigned char *ipout, const char *ipasc); 312 int ossl_x509_set1_time(ASN1_TIME **ptm, const ASN1_TIME *tm); 313 int ossl_x509_print_ex_brief(BIO *bio, X509 *cert, unsigned long neg_cflags); 314 int ossl_x509v3_cache_extensions(X509 *x); 315 int ossl_x509_init_sig_info(X509 *x); 316 317 int ossl_x509_set0_libctx(X509 *x, OSSL_LIB_CTX *libctx, const char *propq); 318 int ossl_x509_crl_set0_libctx(X509_CRL *x, OSSL_LIB_CTX *libctx, 319 const char *propq); 320 int ossl_x509_req_set0_libctx(X509_REQ *x, OSSL_LIB_CTX *libctx, 321 const char *propq); 322 int ossl_asn1_item_digest_ex(const ASN1_ITEM *it, const EVP_MD *type, 323 void *data, unsigned char *md, unsigned int *len, 324 OSSL_LIB_CTX *libctx, const char *propq); 325 int ossl_x509_add_cert_new(STACK_OF(X509) **sk, X509 *cert, int flags); 326 int ossl_x509_add_certs_new(STACK_OF(X509) **p_sk, STACK_OF(X509) *certs, 327 int flags); 328 329 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_dup(const STACK_OF(X509_ATTRIBUTE) *x); 330 331 int ossl_x509_PUBKEY_get0_libctx(OSSL_LIB_CTX **plibctx, const char **ppropq, 332 const X509_PUBKEY *key); 333 /* Calculate default key identifier according to RFC 5280 section 4.2.1.2 (1) */ 334 ASN1_OCTET_STRING *ossl_x509_pubkey_hash(X509_PUBKEY *pubkey); 335 336 X509_PUBKEY *ossl_d2i_X509_PUBKEY_INTERNAL(const unsigned char **pp, 337 long len, OSSL_LIB_CTX *libctx); 338 void ossl_X509_PUBKEY_INTERNAL_free(X509_PUBKEY *xpub); 339 340 RSA *ossl_d2i_RSA_PSS_PUBKEY(RSA **a, const unsigned char **pp, long length); 341 int ossl_i2d_RSA_PSS_PUBKEY(const RSA *a, unsigned char **pp); 342 # ifndef OPENSSL_NO_DH 343 DH *ossl_d2i_DH_PUBKEY(DH **a, const unsigned char **pp, long length); 344 int ossl_i2d_DH_PUBKEY(const DH *a, unsigned char **pp); 345 DH *ossl_d2i_DHx_PUBKEY(DH **a, const unsigned char **pp, long length); 346 int ossl_i2d_DHx_PUBKEY(const DH *a, unsigned char **pp); 347 # endif /* OPENSSL_NO_DH */ 348 # ifndef OPENSSL_NO_EC 349 ECX_KEY *ossl_d2i_ED25519_PUBKEY(ECX_KEY **a, 350 const unsigned char **pp, long length); 351 int ossl_i2d_ED25519_PUBKEY(const ECX_KEY *a, unsigned char **pp); 352 ECX_KEY *ossl_d2i_ED448_PUBKEY(ECX_KEY **a, 353 const unsigned char **pp, long length); 354 int ossl_i2d_ED448_PUBKEY(const ECX_KEY *a, unsigned char **pp); 355 ECX_KEY *ossl_d2i_X25519_PUBKEY(ECX_KEY **a, 356 const unsigned char **pp, long length); 357 int ossl_i2d_X25519_PUBKEY(const ECX_KEY *a, unsigned char **pp); 358 ECX_KEY *ossl_d2i_X448_PUBKEY(ECX_KEY **a, 359 const unsigned char **pp, long length); 360 int ossl_i2d_X448_PUBKEY(const ECX_KEY *a, unsigned char **pp); 361 # endif /* OPENSSL_NO_EC */ 362 EVP_PKEY *ossl_d2i_PUBKEY_legacy(EVP_PKEY **a, const unsigned char **pp, 363 long length); 289 364 290 365 int x509v3_add_len_value_uchar(const char *name, const unsigned char *value, 291 366 size_t vallen, STACK_OF(CONF_VALUE) **extlist); 367 #endif /* OSSL_CRYPTO_X509_H */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器