Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Side by Side Diff: openssl/crypto/x509/x509_vfy.h

Issue 9254031: Upgrade chrome's OpenSSL to same version Android ships with. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « openssl/crypto/x509/x509_txt.c ('k') | openssl/crypto/x509/x509_vfy.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* crypto/x509/x509_vfy.h */ 1 /* crypto/x509/x509_vfy.h */
2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * This package is an SSL implementation written 5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com). 6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL. 7 * The implementation was written so as to conform with Netscapes SSL.
8 * 8 *
9 * This library is free for commercial and non-commercial use as long as 9 * This library is free for commercial and non-commercial use as long as
10 * the following conditions are aheared to. The following conditions 10 * the following conditions are aheared to. The following conditions
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #include <openssl/lhash.h> 70 #include <openssl/lhash.h>
71 #endif 71 #endif
72 #include <openssl/bio.h> 72 #include <openssl/bio.h>
73 #include <openssl/crypto.h> 73 #include <openssl/crypto.h>
74 #include <openssl/symhacks.h> 74 #include <openssl/symhacks.h>
75 75
76 #ifdef __cplusplus 76 #ifdef __cplusplus
77 extern "C" { 77 extern "C" {
78 #endif 78 #endif
79 79
80 #if 0
80 /* Outer object */ 81 /* Outer object */
81 typedef struct x509_hash_dir_st 82 typedef struct x509_hash_dir_st
82 { 83 {
83 int num_dirs; 84 int num_dirs;
84 char **dirs; 85 char **dirs;
85 int *dirs_type; 86 int *dirs_type;
86 int num_dirs_alloced; 87 int num_dirs_alloced;
87 } X509_HASH_DIR_CTX; 88 } X509_HASH_DIR_CTX;
89 #endif
88 90
89 typedef struct x509_file_st 91 typedef struct x509_file_st
90 { 92 {
91 int num_paths; /* number of paths to files or directories */ 93 int num_paths; /* number of paths to files or directories */
92 int num_alloced; 94 int num_alloced;
93 char **paths; /* the list of paths or directories */ 95 char **paths; /* the list of paths or directories */
94 int *path_type; 96 int *path_type;
95 } X509_CERT_FILE_CTX; 97 } X509_CERT_FILE_CTX;
96 98
97 /*******************************/ 99 /*******************************/
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 193
192 /* Callbacks for various operations */ 194 /* Callbacks for various operations */
193 int (*verify)(X509_STORE_CTX *ctx); /* called to verify a certificat e */ 195 int (*verify)(X509_STORE_CTX *ctx); /* called to verify a certificat e */
194 int (*verify_cb)(int ok,X509_STORE_CTX *ctx); /* error callback */ 196 int (*verify_cb)(int ok,X509_STORE_CTX *ctx); /* error callback */
195 int (*get_issuer)(X509 **issuer, X509_STORE_CTX *ctx, X509 *x); /* get i ssuers cert from ctx */ 197 int (*get_issuer)(X509 **issuer, X509_STORE_CTX *ctx, X509 *x); /* get i ssuers cert from ctx */
196 int (*check_issued)(X509_STORE_CTX *ctx, X509 *x, X509 *issuer); /* chec k issued */ 198 int (*check_issued)(X509_STORE_CTX *ctx, X509 *x, X509 *issuer); /* chec k issued */
197 int (*check_revocation)(X509_STORE_CTX *ctx); /* Check revocation status of chain */ 199 int (*check_revocation)(X509_STORE_CTX *ctx); /* Check revocation status of chain */
198 int (*get_crl)(X509_STORE_CTX *ctx, X509_CRL **crl, X509 *x); /* retriev e CRL */ 200 int (*get_crl)(X509_STORE_CTX *ctx, X509_CRL **crl, X509 *x); /* retriev e CRL */
199 int (*check_crl)(X509_STORE_CTX *ctx, X509_CRL *crl); /* Check CRL valid ity */ 201 int (*check_crl)(X509_STORE_CTX *ctx, X509_CRL *crl); /* Check CRL valid ity */
200 int (*cert_crl)(X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x); /* Check c ertificate against CRL */ 202 int (*cert_crl)(X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x); /* Check c ertificate against CRL */
203 STACK_OF(X509) * (*lookup_certs)(X509_STORE_CTX *ctx, X509_NAME *nm);
204 STACK_OF(X509_CRL) * (*lookup_crls)(X509_STORE_CTX *ctx, X509_NAME *nm);
201 int (*cleanup)(X509_STORE_CTX *ctx); 205 int (*cleanup)(X509_STORE_CTX *ctx);
202 206
203 CRYPTO_EX_DATA ex_data; 207 CRYPTO_EX_DATA ex_data;
204 int references; 208 int references;
205 } /* X509_STORE */; 209 } /* X509_STORE */;
206 210
207 int X509_STORE_set_depth(X509_STORE *store, int depth); 211 int X509_STORE_set_depth(X509_STORE *store, int depth);
208 212
209 #define X509_STORE_set_verify_cb_func(ctx,func) ((ctx)->verify_cb=(func)) 213 #define X509_STORE_set_verify_cb_func(ctx,func) ((ctx)->verify_cb=(func))
210 #define X509_STORE_set_verify_func(ctx,func) ((ctx)->verify=(func)) 214 #define X509_STORE_set_verify_func(ctx,func) ((ctx)->verify=(func))
(...skipping 28 matching lines...) Expand all
239 /* Callbacks for various operations */ 243 /* Callbacks for various operations */
240 int (*verify)(X509_STORE_CTX *ctx); /* called to verify a certificat e */ 244 int (*verify)(X509_STORE_CTX *ctx); /* called to verify a certificat e */
241 int (*verify_cb)(int ok,X509_STORE_CTX *ctx); /* error callbac k */ 245 int (*verify_cb)(int ok,X509_STORE_CTX *ctx); /* error callbac k */
242 int (*get_issuer)(X509 **issuer, X509_STORE_CTX *ctx, X509 *x); /* get i ssuers cert from ctx */ 246 int (*get_issuer)(X509 **issuer, X509_STORE_CTX *ctx, X509 *x); /* get i ssuers cert from ctx */
243 int (*check_issued)(X509_STORE_CTX *ctx, X509 *x, X509 *issuer); /* chec k issued */ 247 int (*check_issued)(X509_STORE_CTX *ctx, X509 *x, X509 *issuer); /* chec k issued */
244 int (*check_revocation)(X509_STORE_CTX *ctx); /* Check revocation status of chain */ 248 int (*check_revocation)(X509_STORE_CTX *ctx); /* Check revocation status of chain */
245 int (*get_crl)(X509_STORE_CTX *ctx, X509_CRL **crl, X509 *x); /* retriev e CRL */ 249 int (*get_crl)(X509_STORE_CTX *ctx, X509_CRL **crl, X509 *x); /* retriev e CRL */
246 int (*check_crl)(X509_STORE_CTX *ctx, X509_CRL *crl); /* Check CRL valid ity */ 250 int (*check_crl)(X509_STORE_CTX *ctx, X509_CRL *crl); /* Check CRL valid ity */
247 int (*cert_crl)(X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x); /* Check c ertificate against CRL */ 251 int (*cert_crl)(X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x); /* Check c ertificate against CRL */
248 int (*check_policy)(X509_STORE_CTX *ctx); 252 int (*check_policy)(X509_STORE_CTX *ctx);
253 STACK_OF(X509) * (*lookup_certs)(X509_STORE_CTX *ctx, X509_NAME *nm);
254 STACK_OF(X509_CRL) * (*lookup_crls)(X509_STORE_CTX *ctx, X509_NAME *nm);
249 int (*cleanup)(X509_STORE_CTX *ctx); 255 int (*cleanup)(X509_STORE_CTX *ctx);
250 256
251 /* The following is built up */ 257 /* The following is built up */
252 int valid; /* if 0, rebuild chain */ 258 int valid; /* if 0, rebuild chain */
253 int last_untrusted; /* index of last untrusted cert */ 259 int last_untrusted; /* index of last untrusted cert */
254 STACK_OF(X509) *chain; /* chain of X509s - built up and trusted */ 260 STACK_OF(X509) *chain; /* chain of X509s - built up and trusted */
255 X509_POLICY_TREE *tree; /* Valid policy tree */ 261 X509_POLICY_TREE *tree; /* Valid policy tree */
256 262
257 int explicit_policy; /* Require explicit policy value */ 263 int explicit_policy; /* Require explicit policy value */
258 264
259 /* When something goes wrong, this is why */ 265 /* When something goes wrong, this is why */
260 int error_depth; 266 int error_depth;
261 int error; 267 int error;
262 X509 *current_cert; 268 X509 *current_cert;
263 X509 *current_issuer; /* cert currently being tested as valid issuer * / 269 X509 *current_issuer; /* cert currently being tested as valid issuer * /
264 X509_CRL *current_crl; /* current CRL */ 270 X509_CRL *current_crl; /* current CRL */
265 271
272 int current_crl_score; /* score of current CRL */
273 unsigned int current_reasons; /* Reason mask */
274
275 X509_STORE_CTX *parent; /* For CRL path validation: parent context */
276
266 CRYPTO_EX_DATA ex_data; 277 CRYPTO_EX_DATA ex_data;
267 } /* X509_STORE_CTX */; 278 } /* X509_STORE_CTX */;
268 279
269 void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth); 280 void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth);
270 281
271 #define X509_STORE_CTX_set_app_data(ctx,data) \ 282 #define X509_STORE_CTX_set_app_data(ctx,data) \
272 X509_STORE_CTX_set_ex_data(ctx,0,data) 283 X509_STORE_CTX_set_ex_data(ctx,0,data)
273 #define X509_STORE_CTX_get_app_data(ctx) \ 284 #define X509_STORE_CTX_get_app_data(ctx) \
274 X509_STORE_CTX_get_ex_data(ctx,0) 285 X509_STORE_CTX_get_ex_data(ctx,0)
275 286
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 #define X509_V_ERR_KEYUSAGE_NO_CRL_SIGN 35 334 #define X509_V_ERR_KEYUSAGE_NO_CRL_SIGN 35
324 #define X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION 36 335 #define X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION 36
325 #define X509_V_ERR_INVALID_NON_CA 37 336 #define X509_V_ERR_INVALID_NON_CA 37
326 #define X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED 38 337 #define X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED 38
327 #define X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE 39 338 #define X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE 39
328 #define X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED 40 339 #define X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED 40
329 340
330 #define X509_V_ERR_INVALID_EXTENSION 41 341 #define X509_V_ERR_INVALID_EXTENSION 41
331 #define X509_V_ERR_INVALID_POLICY_EXTENSION 42 342 #define X509_V_ERR_INVALID_POLICY_EXTENSION 42
332 #define X509_V_ERR_NO_EXPLICIT_POLICY 43 343 #define X509_V_ERR_NO_EXPLICIT_POLICY 43
344 #define X509_V_ERR_DIFFERENT_CRL_SCOPE 44
345 #define X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE 45
333 346
334 #define»» X509_V_ERR_UNNESTED_RESOURCE» » » 44 347 #define»» X509_V_ERR_UNNESTED_RESOURCE» » » 46
348
349 #define»» X509_V_ERR_PERMITTED_VIOLATION» » » 47
350 #define»» X509_V_ERR_EXCLUDED_VIOLATION» » » 48
351 #define»» X509_V_ERR_SUBTREE_MINMAX» » » 49
352 #define»» X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE» » 51
353 #define»» X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX» 52
354 #define»» X509_V_ERR_UNSUPPORTED_NAME_SYNTAX» » 53
355 #define»» X509_V_ERR_CRL_PATH_VALIDATION_ERROR» » 54
335 356
336 /* The application is not happy */ 357 /* The application is not happy */
337 #define X509_V_ERR_APPLICATION_VERIFICATION 50 358 #define X509_V_ERR_APPLICATION_VERIFICATION 50
338 359
339 /* Certificate verify flags */ 360 /* Certificate verify flags */
340 361
341 /* Send issuer+subject checks to verify_cb */ 362 /* Send issuer+subject checks to verify_cb */
342 #define X509_V_FLAG_CB_ISSUER_CHECK 0x1 363 #define X509_V_FLAG_CB_ISSUER_CHECK 0x1
343 /* Use check time instead of current time */ 364 /* Use check time instead of current time */
344 #define X509_V_FLAG_USE_CHECK_TIME 0x2 365 #define X509_V_FLAG_USE_CHECK_TIME 0x2
(...skipping 10 matching lines...) Expand all
355 /* Enable policy checking */ 376 /* Enable policy checking */
356 #define X509_V_FLAG_POLICY_CHECK 0x80 377 #define X509_V_FLAG_POLICY_CHECK 0x80
357 /* Policy variable require-explicit-policy */ 378 /* Policy variable require-explicit-policy */
358 #define X509_V_FLAG_EXPLICIT_POLICY 0x100 379 #define X509_V_FLAG_EXPLICIT_POLICY 0x100
359 /* Policy variable inhibit-any-policy */ 380 /* Policy variable inhibit-any-policy */
360 #define X509_V_FLAG_INHIBIT_ANY 0x200 381 #define X509_V_FLAG_INHIBIT_ANY 0x200
361 /* Policy variable inhibit-policy-mapping */ 382 /* Policy variable inhibit-policy-mapping */
362 #define X509_V_FLAG_INHIBIT_MAP 0x400 383 #define X509_V_FLAG_INHIBIT_MAP 0x400
363 /* Notify callback that policy is OK */ 384 /* Notify callback that policy is OK */
364 #define X509_V_FLAG_NOTIFY_POLICY 0x800 385 #define X509_V_FLAG_NOTIFY_POLICY 0x800
365 386 /* Extended CRL features such as indirect CRLs, alternate CRL signing keys */
387 #define X509_V_FLAG_EXTENDED_CRL_SUPPORT» 0x1000
388 /* Delta CRL support */
389 #define X509_V_FLAG_USE_DELTAS» » » 0x2000
366 /* Check selfsigned CA signature */ 390 /* Check selfsigned CA signature */
367 #define X509_V_FLAG_CHECK_SS_SIGNATURE 0x4000 391 #define X509_V_FLAG_CHECK_SS_SIGNATURE 0x4000
368 392
393
369 #define X509_VP_FLAG_DEFAULT 0x1 394 #define X509_VP_FLAG_DEFAULT 0x1
370 #define X509_VP_FLAG_OVERWRITE 0x2 395 #define X509_VP_FLAG_OVERWRITE 0x2
371 #define X509_VP_FLAG_RESET_FLAGS 0x4 396 #define X509_VP_FLAG_RESET_FLAGS 0x4
372 #define X509_VP_FLAG_LOCKED 0x8 397 #define X509_VP_FLAG_LOCKED 0x8
373 #define X509_VP_FLAG_ONCE 0x10 398 #define X509_VP_FLAG_ONCE 0x10
374 399
375 /* Internal use: mask of policy related options */ 400 /* Internal use: mask of policy related options */
376 #define X509_V_FLAG_POLICY_MASK (X509_V_FLAG_POLICY_CHECK \ 401 #define X509_V_FLAG_POLICY_MASK (X509_V_FLAG_POLICY_CHECK \
377 | X509_V_FLAG_EXPLICIT_POLICY \ 402 | X509_V_FLAG_EXPLICIT_POLICY \
378 | X509_V_FLAG_INHIBIT_ANY \ 403 | X509_V_FLAG_INHIBIT_ANY \
379 | X509_V_FLAG_INHIBIT_MAP) 404 | X509_V_FLAG_INHIBIT_MAP)
380 405
381 int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, int type, 406 int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, int type,
382 X509_NAME *name); 407 X509_NAME *name);
383 X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,int type,X 509_NAME *name); 408 X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,int type,X 509_NAME *name);
384 X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h, X509_OBJECT *x ); 409 X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h, X509_OBJECT *x );
385 void X509_OBJECT_up_ref_count(X509_OBJECT *a); 410 void X509_OBJECT_up_ref_count(X509_OBJECT *a);
386 void X509_OBJECT_free_contents(X509_OBJECT *a); 411 void X509_OBJECT_free_contents(X509_OBJECT *a);
387 X509_STORE *X509_STORE_new(void ); 412 X509_STORE *X509_STORE_new(void );
388 void X509_STORE_free(X509_STORE *v); 413 void X509_STORE_free(X509_STORE *v);
389 414
415 STACK_OF(X509)* X509_STORE_get1_certs(X509_STORE_CTX *st, X509_NAME *nm);
416 STACK_OF(X509_CRL)* X509_STORE_get1_crls(X509_STORE_CTX *st, X509_NAME *nm);
390 int X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags); 417 int X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags);
391 int X509_STORE_set_purpose(X509_STORE *ctx, int purpose); 418 int X509_STORE_set_purpose(X509_STORE *ctx, int purpose);
392 int X509_STORE_set_trust(X509_STORE *ctx, int trust); 419 int X509_STORE_set_trust(X509_STORE *ctx, int trust);
393 int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm); 420 int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm);
394 421
422 void X509_STORE_set_verify_cb(X509_STORE *ctx,
423 int (*verify_cb)(int, X509_STORE_CTX *));
424
395 X509_STORE_CTX *X509_STORE_CTX_new(void); 425 X509_STORE_CTX *X509_STORE_CTX_new(void);
396 426
397 int X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x); 427 int X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x);
398 428
399 void X509_STORE_CTX_free(X509_STORE_CTX *ctx); 429 void X509_STORE_CTX_free(X509_STORE_CTX *ctx);
400 int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, 430 int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store,
401 X509 *x509, STACK_OF(X509) *chain); 431 X509 *x509, STACK_OF(X509) *chain);
402 void X509_STORE_CTX_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk); 432 void X509_STORE_CTX_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);
403 void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx); 433 void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx);
404 434
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 #endif 473 #endif
444 474
445 int X509_STORE_CTX_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_fu nc, 475 int X509_STORE_CTX_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_fu nc,
446 CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); 476 CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
447 int X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx,int idx,void *data); 477 int X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx,int idx,void *data);
448 void * X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx,int idx); 478 void * X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx,int idx);
449 int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx); 479 int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);
450 void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s); 480 void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s);
451 int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx); 481 int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);
452 X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx); 482 X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);
483 X509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx);
484 X509_CRL *X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx);
485 X509_STORE_CTX *X509_STORE_CTX_get0_parent_ctx(X509_STORE_CTX *ctx);
453 STACK_OF(X509) *X509_STORE_CTX_get_chain(X509_STORE_CTX *ctx); 486 STACK_OF(X509) *X509_STORE_CTX_get_chain(X509_STORE_CTX *ctx);
454 STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx); 487 STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx);
455 void X509_STORE_CTX_set_cert(X509_STORE_CTX *c,X509 *x); 488 void X509_STORE_CTX_set_cert(X509_STORE_CTX *c,X509 *x);
456 void X509_STORE_CTX_set_chain(X509_STORE_CTX *c,STACK_OF(X509) *sk); 489 void X509_STORE_CTX_set_chain(X509_STORE_CTX *c,STACK_OF(X509) *sk);
457 void X509_STORE_CTX_set0_crls(X509_STORE_CTX *c,STACK_OF(X509_CRL) *sk); 490 void X509_STORE_CTX_set0_crls(X509_STORE_CTX *c,STACK_OF(X509_CRL) *sk);
458 int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose); 491 int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose);
459 int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust); 492 int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust);
460 int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose, 493 int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,
461 int purpose, int trust); 494 int purpose, int trust);
462 void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags); 495 void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 STACK_OF(POLICYQUALINFO) * 558 STACK_OF(POLICYQUALINFO) *
526 X509_policy_node_get0_qualifiers(const X509_POLICY_NODE *node); 559 X509_policy_node_get0_qualifiers(const X509_POLICY_NODE *node);
527 const X509_POLICY_NODE * 560 const X509_POLICY_NODE *
528 X509_policy_node_get0_parent(const X509_POLICY_NODE *node); 561 X509_policy_node_get0_parent(const X509_POLICY_NODE *node);
529 562
530 #ifdef __cplusplus 563 #ifdef __cplusplus
531 } 564 }
532 #endif 565 #endif
533 #endif 566 #endif
534 567
OLDNEW
« no previous file with comments | « openssl/crypto/x509/x509_txt.c ('k') | openssl/crypto/x509/x509_vfy.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698