| OLD | NEW |
| 1 /* x509v3.h */ | 1 /* x509v3.h */ |
| 2 /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 * project 1999. | 3 * project 1999. |
| 4 */ | 4 */ |
| 5 /* ==================================================================== | 5 /* ==================================================================== |
| 6 * Copyright (c) 1999-2004 The OpenSSL Project. All rights reserved. | 6 * Copyright (c) 1999-2004 The OpenSSL Project. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 /* Forward reference */ | 69 /* Forward reference */ |
| 70 struct v3_ext_method; | 70 struct v3_ext_method; |
| 71 struct v3_ext_ctx; | 71 struct v3_ext_ctx; |
| 72 | 72 |
| 73 /* Useful typedefs */ | 73 /* Useful typedefs */ |
| 74 | 74 |
| 75 typedef void * (*X509V3_EXT_NEW)(void); | 75 typedef void * (*X509V3_EXT_NEW)(void); |
| 76 typedef void (*X509V3_EXT_FREE)(void *); | 76 typedef void (*X509V3_EXT_FREE)(void *); |
| 77 typedef void * (*X509V3_EXT_D2I)(void *, const unsigned char ** , long); | 77 typedef void * (*X509V3_EXT_D2I)(void *, const unsigned char ** , long); |
| 78 typedef int (*X509V3_EXT_I2D)(void *, unsigned char **); | 78 typedef int (*X509V3_EXT_I2D)(void *, unsigned char **); |
| 79 typedef STACK_OF(CONF_VALUE) * (*X509V3_EXT_I2V)(struct v3_ext_method *method, v
oid *ext, STACK_OF(CONF_VALUE) *extlist); | 79 typedef STACK_OF(CONF_VALUE) * |
| 80 typedef void * (*X509V3_EXT_V2I)(struct v3_ext_method *method, struct v3_ext_ctx
*ctx, STACK_OF(CONF_VALUE) *values); | 80 (*X509V3_EXT_I2V)(const struct v3_ext_method *method, void *ext, |
| 81 typedef char * (*X509V3_EXT_I2S)(struct v3_ext_method *method, void *ext); | 81 » » STACK_OF(CONF_VALUE) *extlist); |
| 82 typedef void * (*X509V3_EXT_S2I)(struct v3_ext_method *method, struct v3_ext_ctx
*ctx, const char *str); | 82 typedef void * (*X509V3_EXT_V2I)(const struct v3_ext_method *method, |
| 83 typedef int (*X509V3_EXT_I2R)(struct v3_ext_method *method, void *ext, BIO *out,
int indent); | 83 » » » » struct v3_ext_ctx *ctx, |
| 84 typedef void * (*X509V3_EXT_R2I)(struct v3_ext_method *method, struct v3_ext_ctx
*ctx, const char *str); | 84 » » » » STACK_OF(CONF_VALUE) *values); |
| 85 typedef char * (*X509V3_EXT_I2S)(const struct v3_ext_method *method, void *ext); |
| 86 typedef void * (*X509V3_EXT_S2I)(const struct v3_ext_method *method, |
| 87 » » » » struct v3_ext_ctx *ctx, const char *str); |
| 88 typedef int (*X509V3_EXT_I2R)(const struct v3_ext_method *method, void *ext, |
| 89 » » » BIO *out, int indent); |
| 90 typedef void * (*X509V3_EXT_R2I)(const struct v3_ext_method *method, |
| 91 » » » » struct v3_ext_ctx *ctx, const char *str); |
| 85 | 92 |
| 86 /* V3 extension structure */ | 93 /* V3 extension structure */ |
| 87 | 94 |
| 88 struct v3_ext_method { | 95 struct v3_ext_method { |
| 89 int ext_nid; | 96 int ext_nid; |
| 90 int ext_flags; | 97 int ext_flags; |
| 91 /* If this is set the following four fields are ignored */ | 98 /* If this is set the following four fields are ignored */ |
| 92 ASN1_ITEM_EXP *it; | 99 ASN1_ITEM_EXP *it; |
| 93 /* Old style ASN1 calls */ | 100 /* Old style ASN1 calls */ |
| 94 X509V3_EXT_NEW ext_new; | 101 X509V3_EXT_NEW ext_new; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 220 |
| 214 DECLARE_STACK_OF(ACCESS_DESCRIPTION) | 221 DECLARE_STACK_OF(ACCESS_DESCRIPTION) |
| 215 DECLARE_ASN1_SET_OF(ACCESS_DESCRIPTION) | 222 DECLARE_ASN1_SET_OF(ACCESS_DESCRIPTION) |
| 216 | 223 |
| 217 typedef struct DIST_POINT_NAME_st { | 224 typedef struct DIST_POINT_NAME_st { |
| 218 int type; | 225 int type; |
| 219 union { | 226 union { |
| 220 GENERAL_NAMES *fullname; | 227 GENERAL_NAMES *fullname; |
| 221 STACK_OF(X509_NAME_ENTRY) *relativename; | 228 STACK_OF(X509_NAME_ENTRY) *relativename; |
| 222 } name; | 229 } name; |
| 230 /* If relativename then this contains the full distribution point name */ |
| 231 X509_NAME *dpname; |
| 223 } DIST_POINT_NAME; | 232 } DIST_POINT_NAME; |
| 233 /* All existing reasons */ |
| 234 #define CRLDP_ALL_REASONS 0x807f |
| 224 | 235 |
| 225 typedef struct DIST_POINT_st { | 236 #define CRL_REASON_NONE»» » » -1 |
| 237 #define CRL_REASON_UNSPECIFIED» » » 0 |
| 238 #define CRL_REASON_KEY_COMPROMISE» » 1 |
| 239 #define CRL_REASON_CA_COMPROMISE» » 2 |
| 240 #define CRL_REASON_AFFILIATION_CHANGED» » 3 |
| 241 #define CRL_REASON_SUPERSEDED» » » 4 |
| 242 #define CRL_REASON_CESSATION_OF_OPERATION» 5 |
| 243 #define CRL_REASON_CERTIFICATE_HOLD» » 6 |
| 244 #define CRL_REASON_REMOVE_FROM_CRL» » 8 |
| 245 #define CRL_REASON_PRIVILEGE_WITHDRAWN» » 9 |
| 246 #define CRL_REASON_AA_COMPROMISE» » 10 |
| 247 |
| 248 struct DIST_POINT_st { |
| 226 DIST_POINT_NAME *distpoint; | 249 DIST_POINT_NAME *distpoint; |
| 227 ASN1_BIT_STRING *reasons; | 250 ASN1_BIT_STRING *reasons; |
| 228 GENERAL_NAMES *CRLissuer; | 251 GENERAL_NAMES *CRLissuer; |
| 229 } DIST_POINT; | 252 int dp_reasons; |
| 253 }; |
| 230 | 254 |
| 231 typedef STACK_OF(DIST_POINT) CRL_DIST_POINTS; | 255 typedef STACK_OF(DIST_POINT) CRL_DIST_POINTS; |
| 232 | 256 |
| 233 DECLARE_STACK_OF(DIST_POINT) | 257 DECLARE_STACK_OF(DIST_POINT) |
| 234 DECLARE_ASN1_SET_OF(DIST_POINT) | 258 DECLARE_ASN1_SET_OF(DIST_POINT) |
| 235 | 259 |
| 236 typedef struct AUTHORITY_KEYID_st { | 260 struct AUTHORITY_KEYID_st { |
| 237 ASN1_OCTET_STRING *keyid; | 261 ASN1_OCTET_STRING *keyid; |
| 238 GENERAL_NAMES *issuer; | 262 GENERAL_NAMES *issuer; |
| 239 ASN1_INTEGER *serial; | 263 ASN1_INTEGER *serial; |
| 240 } AUTHORITY_KEYID; | 264 }; |
| 241 | 265 |
| 242 /* Strong extranet structures */ | 266 /* Strong extranet structures */ |
| 243 | 267 |
| 244 typedef struct SXNET_ID_st { | 268 typedef struct SXNET_ID_st { |
| 245 ASN1_INTEGER *zone; | 269 ASN1_INTEGER *zone; |
| 246 ASN1_OCTET_STRING *user; | 270 ASN1_OCTET_STRING *user; |
| 247 } SXNETID; | 271 } SXNETID; |
| 248 | 272 |
| 249 DECLARE_STACK_OF(SXNETID) | 273 DECLARE_STACK_OF(SXNETID) |
| 250 DECLARE_ASN1_SET_OF(SXNETID) | 274 DECLARE_ASN1_SET_OF(SXNETID) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 typedef STACK_OF(POLICY_MAPPING) POLICY_MAPPINGS; | 320 typedef STACK_OF(POLICY_MAPPING) POLICY_MAPPINGS; |
| 297 | 321 |
| 298 typedef struct GENERAL_SUBTREE_st { | 322 typedef struct GENERAL_SUBTREE_st { |
| 299 GENERAL_NAME *base; | 323 GENERAL_NAME *base; |
| 300 ASN1_INTEGER *minimum; | 324 ASN1_INTEGER *minimum; |
| 301 ASN1_INTEGER *maximum; | 325 ASN1_INTEGER *maximum; |
| 302 } GENERAL_SUBTREE; | 326 } GENERAL_SUBTREE; |
| 303 | 327 |
| 304 DECLARE_STACK_OF(GENERAL_SUBTREE) | 328 DECLARE_STACK_OF(GENERAL_SUBTREE) |
| 305 | 329 |
| 306 typedef struct NAME_CONSTRAINTS_st { | 330 struct NAME_CONSTRAINTS_st { |
| 307 STACK_OF(GENERAL_SUBTREE) *permittedSubtrees; | 331 STACK_OF(GENERAL_SUBTREE) *permittedSubtrees; |
| 308 STACK_OF(GENERAL_SUBTREE) *excludedSubtrees; | 332 STACK_OF(GENERAL_SUBTREE) *excludedSubtrees; |
| 309 } NAME_CONSTRAINTS; | 333 }; |
| 310 | 334 |
| 311 typedef struct POLICY_CONSTRAINTS_st { | 335 typedef struct POLICY_CONSTRAINTS_st { |
| 312 ASN1_INTEGER *requireExplicitPolicy; | 336 ASN1_INTEGER *requireExplicitPolicy; |
| 313 ASN1_INTEGER *inhibitPolicyMapping; | 337 ASN1_INTEGER *inhibitPolicyMapping; |
| 314 } POLICY_CONSTRAINTS; | 338 } POLICY_CONSTRAINTS; |
| 315 | 339 |
| 316 /* Proxy certificate structures, see RFC 3820 */ | 340 /* Proxy certificate structures, see RFC 3820 */ |
| 317 typedef struct PROXY_POLICY_st | 341 typedef struct PROXY_POLICY_st |
| 318 { | 342 { |
| 319 ASN1_OBJECT *policyLanguage; | 343 ASN1_OBJECT *policyLanguage; |
| 320 ASN1_OCTET_STRING *policy; | 344 ASN1_OCTET_STRING *policy; |
| 321 } PROXY_POLICY; | 345 } PROXY_POLICY; |
| 322 | 346 |
| 323 typedef struct PROXY_CERT_INFO_EXTENSION_st | 347 typedef struct PROXY_CERT_INFO_EXTENSION_st |
| 324 { | 348 { |
| 325 ASN1_INTEGER *pcPathLengthConstraint; | 349 ASN1_INTEGER *pcPathLengthConstraint; |
| 326 PROXY_POLICY *proxyPolicy; | 350 PROXY_POLICY *proxyPolicy; |
| 327 } PROXY_CERT_INFO_EXTENSION; | 351 } PROXY_CERT_INFO_EXTENSION; |
| 328 | 352 |
| 329 DECLARE_ASN1_FUNCTIONS(PROXY_POLICY) | 353 DECLARE_ASN1_FUNCTIONS(PROXY_POLICY) |
| 330 DECLARE_ASN1_FUNCTIONS(PROXY_CERT_INFO_EXTENSION) | 354 DECLARE_ASN1_FUNCTIONS(PROXY_CERT_INFO_EXTENSION) |
| 331 | 355 |
| 356 struct ISSUING_DIST_POINT_st |
| 357 { |
| 358 DIST_POINT_NAME *distpoint; |
| 359 int onlyuser; |
| 360 int onlyCA; |
| 361 ASN1_BIT_STRING *onlysomereasons; |
| 362 int indirectCRL; |
| 363 int onlyattr; |
| 364 }; |
| 365 |
| 366 /* Values in idp_flags field */ |
| 367 /* IDP present */ |
| 368 #define IDP_PRESENT 0x1 |
| 369 /* IDP values inconsistent */ |
| 370 #define IDP_INVALID 0x2 |
| 371 /* onlyuser true */ |
| 372 #define IDP_ONLYUSER 0x4 |
| 373 /* onlyCA true */ |
| 374 #define IDP_ONLYCA 0x8 |
| 375 /* onlyattr true */ |
| 376 #define IDP_ONLYATTR 0x10 |
| 377 /* indirectCRL true */ |
| 378 #define IDP_INDIRECT 0x20 |
| 379 /* onlysomereasons present */ |
| 380 #define IDP_REASONS 0x40 |
| 332 | 381 |
| 333 #define X509V3_conf_err(val) ERR_add_error_data(6, "section:", val->section, \ | 382 #define X509V3_conf_err(val) ERR_add_error_data(6, "section:", val->section, \ |
| 334 ",name:", val->name, ",value:", val->value); | 383 ",name:", val->name, ",value:", val->value); |
| 335 | 384 |
| 336 #define X509V3_set_ctx_test(ctx) \ | 385 #define X509V3_set_ctx_test(ctx) \ |
| 337 X509V3_set_ctx(ctx, NULL, NULL, NULL, NULL, CTX_TEST) | 386 X509V3_set_ctx(ctx, NULL, NULL, NULL, NULL, CTX_TEST) |
| 338 #define X509V3_set_ctx_nodb(ctx) (ctx)->db = NULL; | 387 #define X509V3_set_ctx_nodb(ctx) (ctx)->db = NULL; |
| 339 | 388 |
| 340 #define EXT_BITSTRING(nid, table) { nid, 0, ASN1_ITEM_ref(ASN1_BIT_STRING), \ | 389 #define EXT_BITSTRING(nid, table) { nid, 0, ASN1_ITEM_ref(ASN1_BIT_STRING), \ |
| 341 0,0,0,0, \ | 390 0,0,0,0, \ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 366 /* Really self issued not necessarily self signed */ | 415 /* Really self issued not necessarily self signed */ |
| 367 #define EXFLAG_SI 0x20 | 416 #define EXFLAG_SI 0x20 |
| 368 #define EXFLAG_SS 0x20 | 417 #define EXFLAG_SS 0x20 |
| 369 #define EXFLAG_V1 0x40 | 418 #define EXFLAG_V1 0x40 |
| 370 #define EXFLAG_INVALID 0x80 | 419 #define EXFLAG_INVALID 0x80 |
| 371 #define EXFLAG_SET 0x100 | 420 #define EXFLAG_SET 0x100 |
| 372 #define EXFLAG_CRITICAL 0x200 | 421 #define EXFLAG_CRITICAL 0x200 |
| 373 #define EXFLAG_PROXY 0x400 | 422 #define EXFLAG_PROXY 0x400 |
| 374 | 423 |
| 375 #define EXFLAG_INVALID_POLICY 0x800 | 424 #define EXFLAG_INVALID_POLICY 0x800 |
| 425 #define EXFLAG_FRESHEST 0x1000 |
| 376 | 426 |
| 377 #define KU_DIGITAL_SIGNATURE 0x0080 | 427 #define KU_DIGITAL_SIGNATURE 0x0080 |
| 378 #define KU_NON_REPUDIATION 0x0040 | 428 #define KU_NON_REPUDIATION 0x0040 |
| 379 #define KU_KEY_ENCIPHERMENT 0x0020 | 429 #define KU_KEY_ENCIPHERMENT 0x0020 |
| 380 #define KU_DATA_ENCIPHERMENT 0x0010 | 430 #define KU_DATA_ENCIPHERMENT 0x0010 |
| 381 #define KU_KEY_AGREEMENT 0x0008 | 431 #define KU_KEY_AGREEMENT 0x0008 |
| 382 #define KU_KEY_CERT_SIGN 0x0004 | 432 #define KU_KEY_CERT_SIGN 0x0004 |
| 383 #define KU_CRL_SIGN 0x0002 | 433 #define KU_CRL_SIGN 0x0002 |
| 384 #define KU_ENCIPHER_ONLY 0x0001 | 434 #define KU_ENCIPHER_ONLY 0x0001 |
| 385 #define KU_DECIPHER_ONLY 0x8000 | 435 #define KU_DECIPHER_ONLY 0x8000 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 } X509_PURPOSE; | 467 } X509_PURPOSE; |
| 418 | 468 |
| 419 #define X509_PURPOSE_SSL_CLIENT 1 | 469 #define X509_PURPOSE_SSL_CLIENT 1 |
| 420 #define X509_PURPOSE_SSL_SERVER 2 | 470 #define X509_PURPOSE_SSL_SERVER 2 |
| 421 #define X509_PURPOSE_NS_SSL_SERVER 3 | 471 #define X509_PURPOSE_NS_SSL_SERVER 3 |
| 422 #define X509_PURPOSE_SMIME_SIGN 4 | 472 #define X509_PURPOSE_SMIME_SIGN 4 |
| 423 #define X509_PURPOSE_SMIME_ENCRYPT 5 | 473 #define X509_PURPOSE_SMIME_ENCRYPT 5 |
| 424 #define X509_PURPOSE_CRL_SIGN 6 | 474 #define X509_PURPOSE_CRL_SIGN 6 |
| 425 #define X509_PURPOSE_ANY 7 | 475 #define X509_PURPOSE_ANY 7 |
| 426 #define X509_PURPOSE_OCSP_HELPER 8 | 476 #define X509_PURPOSE_OCSP_HELPER 8 |
| 477 #define X509_PURPOSE_TIMESTAMP_SIGN 9 |
| 427 | 478 |
| 428 #define X509_PURPOSE_MIN 1 | 479 #define X509_PURPOSE_MIN 1 |
| 429 #define X509_PURPOSE_MAX» » 8 | 480 #define X509_PURPOSE_MAX» » 9 |
| 430 | 481 |
| 431 /* Flags for X509V3_EXT_print() */ | 482 /* Flags for X509V3_EXT_print() */ |
| 432 | 483 |
| 433 #define X509V3_EXT_UNKNOWN_MASK (0xfL << 16) | 484 #define X509V3_EXT_UNKNOWN_MASK (0xfL << 16) |
| 434 /* Return error for unknown extensions */ | 485 /* Return error for unknown extensions */ |
| 435 #define X509V3_EXT_DEFAULT 0 | 486 #define X509V3_EXT_DEFAULT 0 |
| 436 /* Print error for unknown extensions */ | 487 /* Print error for unknown extensions */ |
| 437 #define X509V3_EXT_ERROR_UNKNOWN (1L << 16) | 488 #define X509V3_EXT_ERROR_UNKNOWN (1L << 16) |
| 438 /* ASN1 parse unknown extensions */ | 489 /* ASN1 parse unknown extensions */ |
| 439 #define X509V3_EXT_PARSE_UNKNOWN (2L << 16) | 490 #define X509V3_EXT_PARSE_UNKNOWN (2L << 16) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 464 | 515 |
| 465 ASN1_OCTET_STRING *SXNET_get_id_asc(SXNET *sx, char *zone); | 516 ASN1_OCTET_STRING *SXNET_get_id_asc(SXNET *sx, char *zone); |
| 466 ASN1_OCTET_STRING *SXNET_get_id_ulong(SXNET *sx, unsigned long lzone); | 517 ASN1_OCTET_STRING *SXNET_get_id_ulong(SXNET *sx, unsigned long lzone); |
| 467 ASN1_OCTET_STRING *SXNET_get_id_INTEGER(SXNET *sx, ASN1_INTEGER *zone); | 518 ASN1_OCTET_STRING *SXNET_get_id_INTEGER(SXNET *sx, ASN1_INTEGER *zone); |
| 468 | 519 |
| 469 DECLARE_ASN1_FUNCTIONS(AUTHORITY_KEYID) | 520 DECLARE_ASN1_FUNCTIONS(AUTHORITY_KEYID) |
| 470 | 521 |
| 471 DECLARE_ASN1_FUNCTIONS(PKEY_USAGE_PERIOD) | 522 DECLARE_ASN1_FUNCTIONS(PKEY_USAGE_PERIOD) |
| 472 | 523 |
| 473 DECLARE_ASN1_FUNCTIONS(GENERAL_NAME) | 524 DECLARE_ASN1_FUNCTIONS(GENERAL_NAME) |
| 525 GENERAL_NAME *GENERAL_NAME_dup(GENERAL_NAME *a); |
| 526 int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b); |
| 527 |
| 474 | 528 |
| 475 | 529 |
| 476 ASN1_BIT_STRING *v2i_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, | 530 ASN1_BIT_STRING *v2i_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, |
| 477 X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval); | 531 X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval); |
| 478 STACK_OF(CONF_VALUE) *i2v_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, | 532 STACK_OF(CONF_VALUE) *i2v_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, |
| 479 ASN1_BIT_STRING *bits, | 533 ASN1_BIT_STRING *bits, |
| 480 STACK_OF(CONF_VALUE) *extlist); | 534 STACK_OF(CONF_VALUE) *extlist); |
| 481 | 535 |
| 482 STACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(X509V3_EXT_METHOD *method, GENERAL_NAME *
gen, STACK_OF(CONF_VALUE) *ret); | 536 STACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(X509V3_EXT_METHOD *method, GENERAL_NAME *
gen, STACK_OF(CONF_VALUE) *ret); |
| 483 int GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen); | 537 int GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen); |
| 484 | 538 |
| 485 DECLARE_ASN1_FUNCTIONS(GENERAL_NAMES) | 539 DECLARE_ASN1_FUNCTIONS(GENERAL_NAMES) |
| 486 | 540 |
| 487 STACK_OF(CONF_VALUE) *i2v_GENERAL_NAMES(X509V3_EXT_METHOD *method, | 541 STACK_OF(CONF_VALUE) *i2v_GENERAL_NAMES(X509V3_EXT_METHOD *method, |
| 488 GENERAL_NAMES *gen, STACK_OF(CONF_VALUE) *extlist); | 542 GENERAL_NAMES *gen, STACK_OF(CONF_VALUE) *extlist); |
| 489 GENERAL_NAMES *v2i_GENERAL_NAMES(X509V3_EXT_METHOD *method, | 543 GENERAL_NAMES *v2i_GENERAL_NAMES(const X509V3_EXT_METHOD *method, |
| 490 » » » » X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval); | 544 » » » » X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval); |
| 491 | 545 |
| 492 DECLARE_ASN1_FUNCTIONS(OTHERNAME) | 546 DECLARE_ASN1_FUNCTIONS(OTHERNAME) |
| 493 DECLARE_ASN1_FUNCTIONS(EDIPARTYNAME) | 547 DECLARE_ASN1_FUNCTIONS(EDIPARTYNAME) |
| 548 int OTHERNAME_cmp(OTHERNAME *a, OTHERNAME *b); |
| 549 void GENERAL_NAME_set0_value(GENERAL_NAME *a, int type, void *value); |
| 550 void *GENERAL_NAME_get0_value(GENERAL_NAME *a, int *ptype); |
| 551 int GENERAL_NAME_set0_othername(GENERAL_NAME *gen, |
| 552 ASN1_OBJECT *oid, ASN1_TYPE *value); |
| 553 int GENERAL_NAME_get0_otherName(GENERAL_NAME *gen, |
| 554 ASN1_OBJECT **poid, ASN1_TYPE **pvalue); |
| 494 | 555 |
| 495 char *i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method, ASN1_OCTET_STRING *ia5); | 556 char *i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method, ASN1_OCTET_STRING *ia5); |
| 496 ASN1_OCTET_STRING *s2i_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method, X509V3_CTX *
ctx, char *str); | 557 ASN1_OCTET_STRING *s2i_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method, X509V3_CTX *
ctx, char *str); |
| 497 | 558 |
| 498 DECLARE_ASN1_FUNCTIONS(EXTENDED_KEY_USAGE) | 559 DECLARE_ASN1_FUNCTIONS(EXTENDED_KEY_USAGE) |
| 499 int i2a_ACCESS_DESCRIPTION(BIO *bp, ACCESS_DESCRIPTION* a); | 560 int i2a_ACCESS_DESCRIPTION(BIO *bp, ACCESS_DESCRIPTION* a); |
| 500 | 561 |
| 501 DECLARE_ASN1_FUNCTIONS(CERTIFICATEPOLICIES) | 562 DECLARE_ASN1_FUNCTIONS(CERTIFICATEPOLICIES) |
| 502 DECLARE_ASN1_FUNCTIONS(POLICYINFO) | 563 DECLARE_ASN1_FUNCTIONS(POLICYINFO) |
| 503 DECLARE_ASN1_FUNCTIONS(POLICYQUALINFO) | 564 DECLARE_ASN1_FUNCTIONS(POLICYQUALINFO) |
| 504 DECLARE_ASN1_FUNCTIONS(USERNOTICE) | 565 DECLARE_ASN1_FUNCTIONS(USERNOTICE) |
| 505 DECLARE_ASN1_FUNCTIONS(NOTICEREF) | 566 DECLARE_ASN1_FUNCTIONS(NOTICEREF) |
| 506 | 567 |
| 507 DECLARE_ASN1_FUNCTIONS(CRL_DIST_POINTS) | 568 DECLARE_ASN1_FUNCTIONS(CRL_DIST_POINTS) |
| 508 DECLARE_ASN1_FUNCTIONS(DIST_POINT) | 569 DECLARE_ASN1_FUNCTIONS(DIST_POINT) |
| 509 DECLARE_ASN1_FUNCTIONS(DIST_POINT_NAME) | 570 DECLARE_ASN1_FUNCTIONS(DIST_POINT_NAME) |
| 571 DECLARE_ASN1_FUNCTIONS(ISSUING_DIST_POINT) |
| 572 |
| 573 int DIST_POINT_set_dpname(DIST_POINT_NAME *dpn, X509_NAME *iname); |
| 574 |
| 575 int NAME_CONSTRAINTS_check(X509 *x, NAME_CONSTRAINTS *nc); |
| 510 | 576 |
| 511 DECLARE_ASN1_FUNCTIONS(ACCESS_DESCRIPTION) | 577 DECLARE_ASN1_FUNCTIONS(ACCESS_DESCRIPTION) |
| 512 DECLARE_ASN1_FUNCTIONS(AUTHORITY_INFO_ACCESS) | 578 DECLARE_ASN1_FUNCTIONS(AUTHORITY_INFO_ACCESS) |
| 513 | 579 |
| 514 DECLARE_ASN1_ITEM(POLICY_MAPPING) | 580 DECLARE_ASN1_ITEM(POLICY_MAPPING) |
| 515 DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_MAPPING) | 581 DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_MAPPING) |
| 516 DECLARE_ASN1_ITEM(POLICY_MAPPINGS) | 582 DECLARE_ASN1_ITEM(POLICY_MAPPINGS) |
| 517 | 583 |
| 518 DECLARE_ASN1_ITEM(GENERAL_SUBTREE) | 584 DECLARE_ASN1_ITEM(GENERAL_SUBTREE) |
| 519 DECLARE_ASN1_ALLOC_FUNCTIONS(GENERAL_SUBTREE) | 585 DECLARE_ASN1_ALLOC_FUNCTIONS(GENERAL_SUBTREE) |
| 520 | 586 |
| 521 DECLARE_ASN1_ITEM(NAME_CONSTRAINTS) | 587 DECLARE_ASN1_ITEM(NAME_CONSTRAINTS) |
| 522 DECLARE_ASN1_ALLOC_FUNCTIONS(NAME_CONSTRAINTS) | 588 DECLARE_ASN1_ALLOC_FUNCTIONS(NAME_CONSTRAINTS) |
| 523 | 589 |
| 524 DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_CONSTRAINTS) | 590 DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_CONSTRAINTS) |
| 525 DECLARE_ASN1_ITEM(POLICY_CONSTRAINTS) | 591 DECLARE_ASN1_ITEM(POLICY_CONSTRAINTS) |
| 526 | 592 |
| 593 GENERAL_NAME *a2i_GENERAL_NAME(GENERAL_NAME *out, |
| 594 const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, |
| 595 int gen_type, char *value, int is_nc); |
| 596 |
| 527 #ifdef HEADER_CONF_H | 597 #ifdef HEADER_CONF_H |
| 528 GENERAL_NAME *v2i_GENERAL_NAME(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, | 598 GENERAL_NAME *v2i_GENERAL_NAME(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, |
| 529 » » » » » » » CONF_VALUE *cnf); | 599 » » » CONF_VALUE *cnf); |
| 530 GENERAL_NAME *v2i_GENERAL_NAME_ex(GENERAL_NAME *out, X509V3_EXT_METHOD *method, | 600 GENERAL_NAME *v2i_GENERAL_NAME_ex(GENERAL_NAME *out, |
| 531 » » » » X509V3_CTX *ctx, CONF_VALUE *cnf, int is_nc); | 601 » » » » const X509V3_EXT_METHOD *method, |
| 602 » » » » X509V3_CTX *ctx, CONF_VALUE *cnf, int is_nc); |
| 532 void X509V3_conf_free(CONF_VALUE *val); | 603 void X509V3_conf_free(CONF_VALUE *val); |
| 533 | 604 |
| 534 X509_EXTENSION *X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int ext_nid, c
har *value); | 605 X509_EXTENSION *X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int ext_nid, c
har *value); |
| 535 X509_EXTENSION *X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, char *name, char *
value); | 606 X509_EXTENSION *X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, char *name, char *
value); |
| 536 int X509V3_EXT_add_nconf_sk(CONF *conf, X509V3_CTX *ctx, char *section, STACK_OF
(X509_EXTENSION) **sk); | 607 int X509V3_EXT_add_nconf_sk(CONF *conf, X509V3_CTX *ctx, char *section, STACK_OF
(X509_EXTENSION) **sk); |
| 537 int X509V3_EXT_add_nconf(CONF *conf, X509V3_CTX *ctx, char *section, X509 *cert)
; | 608 int X509V3_EXT_add_nconf(CONF *conf, X509V3_CTX *ctx, char *section, X509 *cert)
; |
| 538 int X509V3_EXT_REQ_add_nconf(CONF *conf, X509V3_CTX *ctx, char *section, X509_RE
Q *req); | 609 int X509V3_EXT_REQ_add_nconf(CONF *conf, X509V3_CTX *ctx, char *section, X509_RE
Q *req); |
| 539 int X509V3_EXT_CRL_add_nconf(CONF *conf, X509V3_CTX *ctx, char *section, X509_CR
L *crl); | 610 int X509V3_EXT_CRL_add_nconf(CONF *conf, X509V3_CTX *ctx, char *section, X509_CR
L *crl); |
| 540 | 611 |
| 541 X509_EXTENSION *X509V3_EXT_conf_nid(LHASH *conf, X509V3_CTX *ctx, int ext_nid, c
har *value); | 612 X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, |
| 542 X509_EXTENSION *X509V3_EXT_conf(LHASH *conf, X509V3_CTX *ctx, char *name, char *
value); | 613 » » » » int ext_nid, char *value); |
| 543 int X509V3_EXT_add_conf(LHASH *conf, X509V3_CTX *ctx, char *section, X509 *cert)
; | 614 X509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, |
| 544 int X509V3_EXT_REQ_add_conf(LHASH *conf, X509V3_CTX *ctx, char *section, X509_RE
Q *req); | 615 » » » » char *name, char *value); |
| 545 int X509V3_EXT_CRL_add_conf(LHASH *conf, X509V3_CTX *ctx, char *section, X509_CR
L *crl); | 616 int X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, |
| 617 » » » char *section, X509 *cert); |
| 618 int X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, |
| 619 » » » char *section, X509_REQ *req); |
| 620 int X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, |
| 621 » » » char *section, X509_CRL *crl); |
| 546 | 622 |
| 547 int X509V3_add_value_bool_nf(char *name, int asn1_bool, | 623 int X509V3_add_value_bool_nf(char *name, int asn1_bool, |
| 548 » » » » » » STACK_OF(CONF_VALUE) **extlist); | 624 » » » STACK_OF(CONF_VALUE) **extlist); |
| 549 int X509V3_get_value_bool(CONF_VALUE *value, int *asn1_bool); | 625 int X509V3_get_value_bool(CONF_VALUE *value, int *asn1_bool); |
| 550 int X509V3_get_value_int(CONF_VALUE *value, ASN1_INTEGER **aint); | 626 int X509V3_get_value_int(CONF_VALUE *value, ASN1_INTEGER **aint); |
| 551 void X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf); | 627 void X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf); |
| 552 void X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH *lhash); | 628 void X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH_OF(CONF_VALUE) *lhash); |
| 553 #endif | 629 #endif |
| 554 | 630 |
| 555 char * X509V3_get_string(X509V3_CTX *ctx, char *name, char *section); | 631 char * X509V3_get_string(X509V3_CTX *ctx, char *name, char *section); |
| 556 STACK_OF(CONF_VALUE) * X509V3_get_section(X509V3_CTX *ctx, char *section); | 632 STACK_OF(CONF_VALUE) * X509V3_get_section(X509V3_CTX *ctx, char *section); |
| 557 void X509V3_string_free(X509V3_CTX *ctx, char *str); | 633 void X509V3_string_free(X509V3_CTX *ctx, char *str); |
| 558 void X509V3_section_free( X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *section); | 634 void X509V3_section_free( X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *section); |
| 559 void X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subject, | 635 void X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subject, |
| 560 X509_REQ *req, X509_CRL *crl, int flags); | 636 X509_REQ *req, X509_CRL *crl, int flags); |
| 561 | 637 |
| 562 int X509V3_add_value(const char *name, const char *value, | 638 int X509V3_add_value(const char *name, const char *value, |
| 563 STACK_OF(CONF_VALUE) **extlist); | 639 STACK_OF(CONF_VALUE) **extlist); |
| 564 int X509V3_add_value_uchar(const char *name, const unsigned char *value, | 640 int X509V3_add_value_uchar(const char *name, const unsigned char *value, |
| 565 STACK_OF(CONF_VALUE) **extlist); | 641 STACK_OF(CONF_VALUE) **extlist); |
| 566 int X509V3_add_value_bool(const char *name, int asn1_bool, | 642 int X509V3_add_value_bool(const char *name, int asn1_bool, |
| 567 STACK_OF(CONF_VALUE) **extlist); | 643 STACK_OF(CONF_VALUE) **extlist); |
| 568 int X509V3_add_value_int(const char *name, ASN1_INTEGER *aint, | 644 int X509V3_add_value_int(const char *name, ASN1_INTEGER *aint, |
| 569 STACK_OF(CONF_VALUE) **extlist); | 645 STACK_OF(CONF_VALUE) **extlist); |
| 570 char * i2s_ASN1_INTEGER(X509V3_EXT_METHOD *meth, ASN1_INTEGER *aint); | 646 char * i2s_ASN1_INTEGER(X509V3_EXT_METHOD *meth, ASN1_INTEGER *aint); |
| 571 ASN1_INTEGER * s2i_ASN1_INTEGER(X509V3_EXT_METHOD *meth, char *value); | 647 ASN1_INTEGER * s2i_ASN1_INTEGER(X509V3_EXT_METHOD *meth, char *value); |
| 572 char * i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *meth, ASN1_ENUMERATED *aint); | 648 char * i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *meth, ASN1_ENUMERATED *aint); |
| 573 char * i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *meth, ASN1_ENUMERATED *aint)
; | 649 char * i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *meth, ASN1_ENUMERATED *aint)
; |
| 574 int X509V3_EXT_add(X509V3_EXT_METHOD *ext); | 650 int X509V3_EXT_add(X509V3_EXT_METHOD *ext); |
| 575 int X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist); | 651 int X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist); |
| 576 int X509V3_EXT_add_alias(int nid_to, int nid_from); | 652 int X509V3_EXT_add_alias(int nid_to, int nid_from); |
| 577 void X509V3_EXT_cleanup(void); | 653 void X509V3_EXT_cleanup(void); |
| 578 | 654 |
| 579 X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext); | 655 const X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext); |
| 580 X509V3_EXT_METHOD *X509V3_EXT_get_nid(int nid); | 656 const X509V3_EXT_METHOD *X509V3_EXT_get_nid(int nid); |
| 581 int X509V3_add_standard_extensions(void); | 657 int X509V3_add_standard_extensions(void); |
| 582 STACK_OF(CONF_VALUE) *X509V3_parse_list(const char *line); | 658 STACK_OF(CONF_VALUE) *X509V3_parse_list(const char *line); |
| 583 void *X509V3_EXT_d2i(X509_EXTENSION *ext); | 659 void *X509V3_EXT_d2i(X509_EXTENSION *ext); |
| 584 void *X509V3_get_d2i(STACK_OF(X509_EXTENSION) *x, int nid, int *crit, int *idx); | 660 void *X509V3_get_d2i(STACK_OF(X509_EXTENSION) *x, int nid, int *crit, int *idx); |
| 585 | 661 |
| 586 | 662 |
| 587 X509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc); | 663 X509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc); |
| 588 int X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid, void *value, int crit
, unsigned long flags); | 664 int X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid, void *value, int crit
, unsigned long flags); |
| 589 | 665 |
| 590 char *hex_to_string(unsigned char *buffer, long len); | 666 char *hex_to_string(const unsigned char *buffer, long len); |
| 591 unsigned char *string_to_hex(char *str, long *len); | 667 unsigned char *string_to_hex(const char *str, long *len); |
| 592 int name_cmp(const char *name, const char *cmp); | 668 int name_cmp(const char *name, const char *cmp); |
| 593 | 669 |
| 594 void X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent, | 670 void X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent, |
| 595 int ml); | 671 int ml); |
| 596 int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, int inde
nt); | 672 int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, int inde
nt); |
| 597 int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent); | 673 int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent); |
| 598 | 674 |
| 599 int X509V3_extensions_print(BIO *out, char *title, STACK_OF(X509_EXTENSION) *ext
s, unsigned long flag, int indent); | 675 int X509V3_extensions_print(BIO *out, char *title, STACK_OF(X509_EXTENSION) *ext
s, unsigned long flag, int indent); |
| 600 | 676 |
| 601 int X509_check_ca(X509 *x); | 677 int X509_check_ca(X509 *x); |
| 602 int X509_check_purpose(X509 *x, int id, int ca); | 678 int X509_check_purpose(X509 *x, int id, int ca); |
| 603 int X509_supported_extension(X509_EXTENSION *ex); | 679 int X509_supported_extension(X509_EXTENSION *ex); |
| 604 int X509_PURPOSE_set(int *p, int purpose); | 680 int X509_PURPOSE_set(int *p, int purpose); |
| 605 int X509_check_issued(X509 *issuer, X509 *subject); | 681 int X509_check_issued(X509 *issuer, X509 *subject); |
| 682 int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid); |
| 606 int X509_PURPOSE_get_count(void); | 683 int X509_PURPOSE_get_count(void); |
| 607 X509_PURPOSE * X509_PURPOSE_get0(int idx); | 684 X509_PURPOSE * X509_PURPOSE_get0(int idx); |
| 608 int X509_PURPOSE_get_by_sname(char *sname); | 685 int X509_PURPOSE_get_by_sname(char *sname); |
| 609 int X509_PURPOSE_get_by_id(int id); | 686 int X509_PURPOSE_get_by_id(int id); |
| 610 int X509_PURPOSE_add(int id, int trust, int flags, | 687 int X509_PURPOSE_add(int id, int trust, int flags, |
| 611 int (*ck)(const X509_PURPOSE *, const X509 *, int), | 688 int (*ck)(const X509_PURPOSE *, const X509 *, int), |
| 612 char *name, char *sname, void *arg); | 689 char *name, char *sname, void *arg); |
| 613 char *X509_PURPOSE_get0_name(X509_PURPOSE *xp); | 690 char *X509_PURPOSE_get0_name(X509_PURPOSE *xp); |
| 614 char *X509_PURPOSE_get0_sname(X509_PURPOSE *xp); | 691 char *X509_PURPOSE_get0_sname(X509_PURPOSE *xp); |
| 615 int X509_PURPOSE_get_trust(X509_PURPOSE *xp); | 692 int X509_PURPOSE_get_trust(X509_PURPOSE *xp); |
| 616 void X509_PURPOSE_cleanup(void); | 693 void X509_PURPOSE_cleanup(void); |
| 617 int X509_PURPOSE_get_id(X509_PURPOSE *); | 694 int X509_PURPOSE_get_id(X509_PURPOSE *); |
| 618 | 695 |
| 619 STACK *X509_get1_email(X509 *x); | 696 STACK_OF(OPENSSL_STRING) *X509_get1_email(X509 *x); |
| 620 STACK *X509_REQ_get1_email(X509_REQ *x); | 697 STACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x); |
| 621 void X509_email_free(STACK *sk); | 698 void X509_email_free(STACK_OF(OPENSSL_STRING) *sk); |
| 622 STACK *X509_get1_ocsp(X509 *x); | 699 STACK_OF(OPENSSL_STRING) *X509_get1_ocsp(X509 *x); |
| 623 | 700 |
| 624 ASN1_OCTET_STRING *a2i_IPADDRESS(const char *ipasc); | 701 ASN1_OCTET_STRING *a2i_IPADDRESS(const char *ipasc); |
| 625 ASN1_OCTET_STRING *a2i_IPADDRESS_NC(const char *ipasc); | 702 ASN1_OCTET_STRING *a2i_IPADDRESS_NC(const char *ipasc); |
| 626 int a2i_ipadd(unsigned char *ipout, const char *ipasc); | 703 int a2i_ipadd(unsigned char *ipout, const char *ipasc); |
| 627 int X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE)*dn_sk, | 704 int X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE)*dn_sk, |
| 628 unsigned long chtype); | 705 unsigned long chtype); |
| 629 | 706 |
| 630 void X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent); | 707 void X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent); |
| 708 DECLARE_STACK_OF(X509_POLICY_NODE) |
| 631 | 709 |
| 632 #ifndef OPENSSL_NO_RFC3779 | 710 #ifndef OPENSSL_NO_RFC3779 |
| 633 | 711 |
| 634 typedef struct ASRange_st { | 712 typedef struct ASRange_st { |
| 635 ASN1_INTEGER *min, *max; | 713 ASN1_INTEGER *min, *max; |
| 636 } ASRange; | 714 } ASRange; |
| 637 | 715 |
| 638 #define ASIdOrRange_id 0 | 716 #define ASIdOrRange_id 0 |
| 639 #define ASIdOrRange_range 1 | 717 #define ASIdOrRange_range 1 |
| 640 | 718 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 | 858 |
| 781 /* BEGIN ERROR CODES */ | 859 /* BEGIN ERROR CODES */ |
| 782 /* The following lines are auto generated by the script mkerr.pl. Any changes | 860 /* The following lines are auto generated by the script mkerr.pl. Any changes |
| 783 * made after this point may be overwritten when the script is next run. | 861 * made after this point may be overwritten when the script is next run. |
| 784 */ | 862 */ |
| 785 void ERR_load_X509V3_strings(void); | 863 void ERR_load_X509V3_strings(void); |
| 786 | 864 |
| 787 /* Error codes for the X509V3 functions. */ | 865 /* Error codes for the X509V3 functions. */ |
| 788 | 866 |
| 789 /* Function codes. */ | 867 /* Function codes. */ |
| 790 #define X509V3_F_ASIDENTIFIERCHOICE_CANONIZE» » 156 | 868 #define X509V3_F_A2I_GENERAL_NAME» » » 164 |
| 791 #define X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL» 157 | 869 #define X509V3_F_ASIDENTIFIERCHOICE_CANONIZE» » 161 |
| 870 #define X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL» 162 |
| 792 #define X509V3_F_COPY_EMAIL 122 | 871 #define X509V3_F_COPY_EMAIL 122 |
| 793 #define X509V3_F_COPY_ISSUER 123 | 872 #define X509V3_F_COPY_ISSUER 123 |
| 794 #define X509V3_F_DO_DIRNAME 144 | 873 #define X509V3_F_DO_DIRNAME 144 |
| 795 #define X509V3_F_DO_EXT_CONF 124 | 874 #define X509V3_F_DO_EXT_CONF 124 |
| 796 #define X509V3_F_DO_EXT_I2D 135 | 875 #define X509V3_F_DO_EXT_I2D 135 |
| 797 #define X509V3_F_DO_EXT_NCONF 151 | 876 #define X509V3_F_DO_EXT_NCONF 151 |
| 798 #define X509V3_F_DO_I2V_NAME_CONSTRAINTS 148 | 877 #define X509V3_F_DO_I2V_NAME_CONSTRAINTS 148 |
| 878 #define X509V3_F_GNAMES_FROM_SECTNAME 156 |
| 799 #define X509V3_F_HEX_TO_STRING 111 | 879 #define X509V3_F_HEX_TO_STRING 111 |
| 800 #define X509V3_F_I2S_ASN1_ENUMERATED 121 | 880 #define X509V3_F_I2S_ASN1_ENUMERATED 121 |
| 801 #define X509V3_F_I2S_ASN1_IA5STRING 149 | 881 #define X509V3_F_I2S_ASN1_IA5STRING 149 |
| 802 #define X509V3_F_I2S_ASN1_INTEGER 120 | 882 #define X509V3_F_I2S_ASN1_INTEGER 120 |
| 803 #define X509V3_F_I2V_AUTHORITY_INFO_ACCESS 138 | 883 #define X509V3_F_I2V_AUTHORITY_INFO_ACCESS 138 |
| 804 #define X509V3_F_NOTICE_SECTION 132 | 884 #define X509V3_F_NOTICE_SECTION 132 |
| 805 #define X509V3_F_NREF_NOS 133 | 885 #define X509V3_F_NREF_NOS 133 |
| 806 #define X509V3_F_POLICY_SECTION 131 | 886 #define X509V3_F_POLICY_SECTION 131 |
| 807 #define X509V3_F_PROCESS_PCI_VALUE 150 | 887 #define X509V3_F_PROCESS_PCI_VALUE 150 |
| 808 #define X509V3_F_R2I_CERTPOL 130 | 888 #define X509V3_F_R2I_CERTPOL 130 |
| 809 #define X509V3_F_R2I_PCI 155 | 889 #define X509V3_F_R2I_PCI 155 |
| 810 #define X509V3_F_S2I_ASN1_IA5STRING 100 | 890 #define X509V3_F_S2I_ASN1_IA5STRING 100 |
| 811 #define X509V3_F_S2I_ASN1_INTEGER 108 | 891 #define X509V3_F_S2I_ASN1_INTEGER 108 |
| 812 #define X509V3_F_S2I_ASN1_OCTET_STRING 112 | 892 #define X509V3_F_S2I_ASN1_OCTET_STRING 112 |
| 813 #define X509V3_F_S2I_ASN1_SKEY_ID 114 | 893 #define X509V3_F_S2I_ASN1_SKEY_ID 114 |
| 814 #define X509V3_F_S2I_SKEY_ID 115 | 894 #define X509V3_F_S2I_SKEY_ID 115 |
| 895 #define X509V3_F_SET_DIST_POINT_NAME 158 |
| 815 #define X509V3_F_STRING_TO_HEX 113 | 896 #define X509V3_F_STRING_TO_HEX 113 |
| 816 #define X509V3_F_SXNET_ADD_ID_ASC 125 | 897 #define X509V3_F_SXNET_ADD_ID_ASC 125 |
| 817 #define X509V3_F_SXNET_ADD_ID_INTEGER 126 | 898 #define X509V3_F_SXNET_ADD_ID_INTEGER 126 |
| 818 #define X509V3_F_SXNET_ADD_ID_ULONG 127 | 899 #define X509V3_F_SXNET_ADD_ID_ULONG 127 |
| 819 #define X509V3_F_SXNET_GET_ID_ASC 128 | 900 #define X509V3_F_SXNET_GET_ID_ASC 128 |
| 820 #define X509V3_F_SXNET_GET_ID_ULONG 129 | 901 #define X509V3_F_SXNET_GET_ID_ULONG 129 |
| 821 #define X509V3_F_V2I_ASIDENTIFIERS» » » 158 | 902 #define X509V3_F_V2I_ASIDENTIFIERS» » » 163 |
| 822 #define X509V3_F_V2I_ASN1_BIT_STRING 101 | 903 #define X509V3_F_V2I_ASN1_BIT_STRING 101 |
| 823 #define X509V3_F_V2I_AUTHORITY_INFO_ACCESS 139 | 904 #define X509V3_F_V2I_AUTHORITY_INFO_ACCESS 139 |
| 824 #define X509V3_F_V2I_AUTHORITY_KEYID 119 | 905 #define X509V3_F_V2I_AUTHORITY_KEYID 119 |
| 825 #define X509V3_F_V2I_BASIC_CONSTRAINTS 102 | 906 #define X509V3_F_V2I_BASIC_CONSTRAINTS 102 |
| 826 #define X509V3_F_V2I_CRLD 134 | 907 #define X509V3_F_V2I_CRLD 134 |
| 827 #define X509V3_F_V2I_EXTENDED_KEY_USAGE 103 | 908 #define X509V3_F_V2I_EXTENDED_KEY_USAGE 103 |
| 828 #define X509V3_F_V2I_GENERAL_NAMES 118 | 909 #define X509V3_F_V2I_GENERAL_NAMES 118 |
| 829 #define X509V3_F_V2I_GENERAL_NAME_EX 117 | 910 #define X509V3_F_V2I_GENERAL_NAME_EX 117 |
| 911 #define X509V3_F_V2I_IDP 157 |
| 830 #define X509V3_F_V2I_IPADDRBLOCKS 159 | 912 #define X509V3_F_V2I_IPADDRBLOCKS 159 |
| 831 #define X509V3_F_V2I_ISSUER_ALT 153 | 913 #define X509V3_F_V2I_ISSUER_ALT 153 |
| 832 #define X509V3_F_V2I_NAME_CONSTRAINTS 147 | 914 #define X509V3_F_V2I_NAME_CONSTRAINTS 147 |
| 833 #define X509V3_F_V2I_POLICY_CONSTRAINTS 146 | 915 #define X509V3_F_V2I_POLICY_CONSTRAINTS 146 |
| 834 #define X509V3_F_V2I_POLICY_MAPPINGS 145 | 916 #define X509V3_F_V2I_POLICY_MAPPINGS 145 |
| 835 #define X509V3_F_V2I_SUBJECT_ALT 154 | 917 #define X509V3_F_V2I_SUBJECT_ALT 154 |
| 836 #define X509V3_F_V3_ADDR_VALIDATE_PATH_INTERNAL 160 | 918 #define X509V3_F_V3_ADDR_VALIDATE_PATH_INTERNAL 160 |
| 837 #define X509V3_F_V3_GENERIC_EXTENSION 116 | 919 #define X509V3_F_V3_GENERIC_EXTENSION 116 |
| 838 #define X509V3_F_X509V3_ADD1_I2D 140 | 920 #define X509V3_F_X509V3_ADD1_I2D 140 |
| 839 #define X509V3_F_X509V3_ADD_VALUE 105 | 921 #define X509V3_F_X509V3_ADD_VALUE 105 |
| 840 #define X509V3_F_X509V3_EXT_ADD 104 | 922 #define X509V3_F_X509V3_EXT_ADD 104 |
| 841 #define X509V3_F_X509V3_EXT_ADD_ALIAS 106 | 923 #define X509V3_F_X509V3_EXT_ADD_ALIAS 106 |
| 842 #define X509V3_F_X509V3_EXT_CONF 107 | 924 #define X509V3_F_X509V3_EXT_CONF 107 |
| 843 #define X509V3_F_X509V3_EXT_I2D 136 | 925 #define X509V3_F_X509V3_EXT_I2D 136 |
| 844 #define X509V3_F_X509V3_EXT_NCONF 152 | 926 #define X509V3_F_X509V3_EXT_NCONF 152 |
| 845 #define X509V3_F_X509V3_GET_SECTION 142 | 927 #define X509V3_F_X509V3_GET_SECTION 142 |
| 846 #define X509V3_F_X509V3_GET_STRING 143 | 928 #define X509V3_F_X509V3_GET_STRING 143 |
| 847 #define X509V3_F_X509V3_GET_VALUE_BOOL 110 | 929 #define X509V3_F_X509V3_GET_VALUE_BOOL 110 |
| 848 #define X509V3_F_X509V3_PARSE_LIST 109 | 930 #define X509V3_F_X509V3_PARSE_LIST 109 |
| 849 #define X509V3_F_X509_PURPOSE_ADD 137 | 931 #define X509V3_F_X509_PURPOSE_ADD 137 |
| 850 #define X509V3_F_X509_PURPOSE_SET 141 | 932 #define X509V3_F_X509_PURPOSE_SET 141 |
| 851 | 933 |
| 852 /* Reason codes. */ | 934 /* Reason codes. */ |
| 853 #define X509V3_R_BAD_IP_ADDRESS 118 | 935 #define X509V3_R_BAD_IP_ADDRESS 118 |
| 854 #define X509V3_R_BAD_OBJECT 119 | 936 #define X509V3_R_BAD_OBJECT 119 |
| 855 #define X509V3_R_BN_DEC2BN_ERROR 100 | 937 #define X509V3_R_BN_DEC2BN_ERROR 100 |
| 856 #define X509V3_R_BN_TO_ASN1_INTEGER_ERROR 101 | 938 #define X509V3_R_BN_TO_ASN1_INTEGER_ERROR 101 |
| 857 #define X509V3_R_DIRNAME_ERROR 149 | 939 #define X509V3_R_DIRNAME_ERROR 149 |
| 940 #define X509V3_R_DISTPOINT_ALREADY_SET 160 |
| 858 #define X509V3_R_DUPLICATE_ZONE_ID 133 | 941 #define X509V3_R_DUPLICATE_ZONE_ID 133 |
| 859 #define X509V3_R_ERROR_CONVERTING_ZONE 131 | 942 #define X509V3_R_ERROR_CONVERTING_ZONE 131 |
| 860 #define X509V3_R_ERROR_CREATING_EXTENSION 144 | 943 #define X509V3_R_ERROR_CREATING_EXTENSION 144 |
| 861 #define X509V3_R_ERROR_IN_EXTENSION 128 | 944 #define X509V3_R_ERROR_IN_EXTENSION 128 |
| 862 #define X509V3_R_EXPECTED_A_SECTION_NAME 137 | 945 #define X509V3_R_EXPECTED_A_SECTION_NAME 137 |
| 863 #define X509V3_R_EXTENSION_EXISTS 145 | 946 #define X509V3_R_EXTENSION_EXISTS 145 |
| 864 #define X509V3_R_EXTENSION_NAME_ERROR 115 | 947 #define X509V3_R_EXTENSION_NAME_ERROR 115 |
| 865 #define X509V3_R_EXTENSION_NOT_FOUND 102 | 948 #define X509V3_R_EXTENSION_NOT_FOUND 102 |
| 866 #define X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED 103 | 949 #define X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED 103 |
| 867 #define X509V3_R_EXTENSION_VALUE_ERROR 116 | 950 #define X509V3_R_EXTENSION_VALUE_ERROR 116 |
| 868 #define X509V3_R_ILLEGAL_EMPTY_EXTENSION 151 | 951 #define X509V3_R_ILLEGAL_EMPTY_EXTENSION 151 |
| 869 #define X509V3_R_ILLEGAL_HEX_DIGIT 113 | 952 #define X509V3_R_ILLEGAL_HEX_DIGIT 113 |
| 870 #define X509V3_R_INCORRECT_POLICY_SYNTAX_TAG 152 | 953 #define X509V3_R_INCORRECT_POLICY_SYNTAX_TAG 152 |
| 871 #define X509V3_R_INVALID_ASNUMBER» » » 160 | 954 #define X509V3_R_INVALID_MULTIPLE_RDNS» » » 161 |
| 872 #define X509V3_R_INVALID_ASRANGE» » » 161 | 955 #define X509V3_R_INVALID_ASNUMBER» » » 162 |
| 956 #define X509V3_R_INVALID_ASRANGE» » » 163 |
| 873 #define X509V3_R_INVALID_BOOLEAN_STRING 104 | 957 #define X509V3_R_INVALID_BOOLEAN_STRING 104 |
| 874 #define X509V3_R_INVALID_EXTENSION_STRING 105 | 958 #define X509V3_R_INVALID_EXTENSION_STRING 105 |
| 875 #define X509V3_R_INVALID_INHERITANCE» » » 162 | 959 #define X509V3_R_INVALID_INHERITANCE» » » 165 |
| 876 #define X509V3_R_INVALID_IPADDRESS» » » 163 | 960 #define X509V3_R_INVALID_IPADDRESS» » » 166 |
| 877 #define X509V3_R_INVALID_NAME 106 | 961 #define X509V3_R_INVALID_NAME 106 |
| 878 #define X509V3_R_INVALID_NULL_ARGUMENT 107 | 962 #define X509V3_R_INVALID_NULL_ARGUMENT 107 |
| 879 #define X509V3_R_INVALID_NULL_NAME 108 | 963 #define X509V3_R_INVALID_NULL_NAME 108 |
| 880 #define X509V3_R_INVALID_NULL_VALUE 109 | 964 #define X509V3_R_INVALID_NULL_VALUE 109 |
| 881 #define X509V3_R_INVALID_NUMBER 140 | 965 #define X509V3_R_INVALID_NUMBER 140 |
| 882 #define X509V3_R_INVALID_NUMBERS 141 | 966 #define X509V3_R_INVALID_NUMBERS 141 |
| 883 #define X509V3_R_INVALID_OBJECT_IDENTIFIER 110 | 967 #define X509V3_R_INVALID_OBJECT_IDENTIFIER 110 |
| 884 #define X509V3_R_INVALID_OPTION 138 | 968 #define X509V3_R_INVALID_OPTION 138 |
| 885 #define X509V3_R_INVALID_POLICY_IDENTIFIER 134 | 969 #define X509V3_R_INVALID_POLICY_IDENTIFIER 134 |
| 886 #define X509V3_R_INVALID_PROXY_POLICY_SETTING 153 | 970 #define X509V3_R_INVALID_PROXY_POLICY_SETTING 153 |
| 887 #define X509V3_R_INVALID_PURPOSE 146 | 971 #define X509V3_R_INVALID_PURPOSE 146 |
| 888 #define X509V3_R_INVALID_SAFI 164 | 972 #define X509V3_R_INVALID_SAFI 164 |
| 889 #define X509V3_R_INVALID_SECTION 135 | 973 #define X509V3_R_INVALID_SECTION 135 |
| 890 #define X509V3_R_INVALID_SYNTAX 143 | 974 #define X509V3_R_INVALID_SYNTAX 143 |
| 891 #define X509V3_R_ISSUER_DECODE_ERROR 126 | 975 #define X509V3_R_ISSUER_DECODE_ERROR 126 |
| 892 #define X509V3_R_MISSING_VALUE 124 | 976 #define X509V3_R_MISSING_VALUE 124 |
| 893 #define X509V3_R_NEED_ORGANIZATION_AND_NUMBERS 142 | 977 #define X509V3_R_NEED_ORGANIZATION_AND_NUMBERS 142 |
| 894 #define X509V3_R_NO_CONFIG_DATABASE 136 | 978 #define X509V3_R_NO_CONFIG_DATABASE 136 |
| 895 #define X509V3_R_NO_ISSUER_CERTIFICATE 121 | 979 #define X509V3_R_NO_ISSUER_CERTIFICATE 121 |
| 896 #define X509V3_R_NO_ISSUER_DETAILS 127 | 980 #define X509V3_R_NO_ISSUER_DETAILS 127 |
| 897 #define X509V3_R_NO_POLICY_IDENTIFIER 139 | 981 #define X509V3_R_NO_POLICY_IDENTIFIER 139 |
| 898 #define X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED 154 | 982 #define X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED 154 |
| 899 #define X509V3_R_NO_PUBLIC_KEY 114 | 983 #define X509V3_R_NO_PUBLIC_KEY 114 |
| 900 #define X509V3_R_NO_SUBJECT_DETAILS 125 | 984 #define X509V3_R_NO_SUBJECT_DETAILS 125 |
| 901 #define X509V3_R_ODD_NUMBER_OF_DIGITS 112 | 985 #define X509V3_R_ODD_NUMBER_OF_DIGITS 112 |
| 902 #define X509V3_R_OPERATION_NOT_DEFINED 148 | 986 #define X509V3_R_OPERATION_NOT_DEFINED 148 |
| 903 #define X509V3_R_OTHERNAME_ERROR 147 | 987 #define X509V3_R_OTHERNAME_ERROR 147 |
| 904 #define X509V3_R_POLICY_LANGUAGE_ALREADTY_DEFINED» 155 | 988 #define X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED» 155 |
| 905 #define X509V3_R_POLICY_PATH_LENGTH 156 | 989 #define X509V3_R_POLICY_PATH_LENGTH 156 |
| 906 #define X509V3_R_POLICY_PATH_LENGTH_ALREADTY_DEFINED» 157 | 990 #define X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED» 157 |
| 907 #define X509V3_R_POLICY_SYNTAX_NOT_CURRENTLY_SUPPORTED 158 | 991 #define X509V3_R_POLICY_SYNTAX_NOT_CURRENTLY_SUPPORTED 158 |
| 908 #define X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY 159 | 992 #define X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY 159 |
| 909 #define X509V3_R_SECTION_NOT_FOUND 150 | 993 #define X509V3_R_SECTION_NOT_FOUND 150 |
| 910 #define X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS 122 | 994 #define X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS 122 |
| 911 #define X509V3_R_UNABLE_TO_GET_ISSUER_KEYID 123 | 995 #define X509V3_R_UNABLE_TO_GET_ISSUER_KEYID 123 |
| 912 #define X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT 111 | 996 #define X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT 111 |
| 913 #define X509V3_R_UNKNOWN_EXTENSION 129 | 997 #define X509V3_R_UNKNOWN_EXTENSION 129 |
| 914 #define X509V3_R_UNKNOWN_EXTENSION_NAME 130 | 998 #define X509V3_R_UNKNOWN_EXTENSION_NAME 130 |
| 915 #define X509V3_R_UNKNOWN_OPTION 120 | 999 #define X509V3_R_UNKNOWN_OPTION 120 |
| 916 #define X509V3_R_UNSUPPORTED_OPTION 117 | 1000 #define X509V3_R_UNSUPPORTED_OPTION 117 |
| 1001 #define X509V3_R_UNSUPPORTED_TYPE 167 |
| 917 #define X509V3_R_USER_TOO_LONG 132 | 1002 #define X509V3_R_USER_TOO_LONG 132 |
| 918 | 1003 |
| 919 #ifdef __cplusplus | 1004 #ifdef __cplusplus |
| 920 } | 1005 } |
| 921 #endif | 1006 #endif |
| 922 #endif | 1007 #endif |
| OLD | NEW |