65 #ifndef HEADER_X509_VFY_H
66 #define HEADER_X509_VFY_H
69 #ifndef OPENSSL_NO_LHASH
82 typedef struct x509_hash_dir_st
117 #define X509_LU_RETRY -1
118 #define X509_LU_FAIL 0
119 #define X509_LU_X509 1
120 #define X509_LU_CRL 2
121 #define X509_LU_PKEY 3
213 #define X509_STORE_set_verify_cb_func(ctx,func) ((ctx)->verify_cb=(func))
214 #define X509_STORE_set_verify_func(ctx,func) ((ctx)->verify=(func))
282 #define X509_STORE_CTX_set_app_data(ctx,data) \
283 X509_STORE_CTX_set_ex_data(ctx,0,data)
284 #define X509_STORE_CTX_get_app_data(ctx) \
285 X509_STORE_CTX_get_ex_data(ctx,0)
287 #define X509_L_FILE_LOAD 1
288 #define X509_L_ADD_DIR 2
290 #define X509_LOOKUP_load_file(x,name,type) \
291 X509_LOOKUP_ctrl((x),X509_L_FILE_LOAD,(name),(long)(type),NULL)
293 #define X509_LOOKUP_add_dir(x,name,type) \
294 X509_LOOKUP_ctrl((x),X509_L_ADD_DIR,(name),(long)(type),NULL)
299 #define X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT 2
300 #define X509_V_ERR_UNABLE_TO_GET_CRL 3
301 #define X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE 4
302 #define X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE 5
303 #define X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY 6
304 #define X509_V_ERR_CERT_SIGNATURE_FAILURE 7
305 #define X509_V_ERR_CRL_SIGNATURE_FAILURE 8
306 #define X509_V_ERR_CERT_NOT_YET_VALID 9
307 #define X509_V_ERR_CERT_HAS_EXPIRED 10
308 #define X509_V_ERR_CRL_NOT_YET_VALID 11
309 #define X509_V_ERR_CRL_HAS_EXPIRED 12
310 #define X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD 13
311 #define X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD 14
312 #define X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD 15
313 #define X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD 16
314 #define X509_V_ERR_OUT_OF_MEM 17
315 #define X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT 18
316 #define X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN 19
317 #define X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY 20
318 #define X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE 21
319 #define X509_V_ERR_CERT_CHAIN_TOO_LONG 22
320 #define X509_V_ERR_CERT_REVOKED 23
321 #define X509_V_ERR_INVALID_CA 24
322 #define X509_V_ERR_PATH_LENGTH_EXCEEDED 25
323 #define X509_V_ERR_INVALID_PURPOSE 26
324 #define X509_V_ERR_CERT_UNTRUSTED 27
325 #define X509_V_ERR_CERT_REJECTED 28
327 #define X509_V_ERR_SUBJECT_ISSUER_MISMATCH 29
328 #define X509_V_ERR_AKID_SKID_MISMATCH 30
329 #define X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH 31
330 #define X509_V_ERR_KEYUSAGE_NO_CERTSIGN 32
332 #define X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER 33
333 #define X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION 34
334 #define X509_V_ERR_KEYUSAGE_NO_CRL_SIGN 35
335 #define X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION 36
336 #define X509_V_ERR_INVALID_NON_CA 37
337 #define X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED 38
338 #define X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE 39
339 #define X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED 40
341 #define X509_V_ERR_INVALID_EXTENSION 41
342 #define X509_V_ERR_INVALID_POLICY_EXTENSION 42
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
347 #define X509_V_ERR_UNNESTED_RESOURCE 46
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
358 #define X509_V_ERR_APPLICATION_VERIFICATION 50
363 #define X509_V_FLAG_CB_ISSUER_CHECK 0x1
365 #define X509_V_FLAG_USE_CHECK_TIME 0x2
367 #define X509_V_FLAG_CRL_CHECK 0x4
369 #define X509_V_FLAG_CRL_CHECK_ALL 0x8
371 #define X509_V_FLAG_IGNORE_CRITICAL 0x10
373 #define X509_V_FLAG_X509_STRICT 0x20
375 #define X509_V_FLAG_ALLOW_PROXY_CERTS 0x40
377 #define X509_V_FLAG_POLICY_CHECK 0x80
379 #define X509_V_FLAG_EXPLICIT_POLICY 0x100
381 #define X509_V_FLAG_INHIBIT_ANY 0x200
383 #define X509_V_FLAG_INHIBIT_MAP 0x400
385 #define X509_V_FLAG_NOTIFY_POLICY 0x800
387 #define X509_V_FLAG_EXTENDED_CRL_SUPPORT 0x1000
389 #define X509_V_FLAG_USE_DELTAS 0x2000
391 #define X509_V_FLAG_CHECK_SS_SIGNATURE 0x4000
394 #define X509_VP_FLAG_DEFAULT 0x1
395 #define X509_VP_FLAG_OVERWRITE 0x2
396 #define X509_VP_FLAG_RESET_FLAGS 0x4
397 #define X509_VP_FLAG_LOCKED 0x8
398 #define X509_VP_FLAG_ONCE 0x10
401 #define X509_V_FLAG_POLICY_MASK (X509_V_FLAG_POLICY_CHECK \
402 | X509_V_FLAG_EXPLICIT_POLICY \
403 | X509_V_FLAG_INHIBIT_ANY \
404 | X509_V_FLAG_INHIBIT_MAP)
447 long argl,
char **ret);
449 #ifndef OPENSSL_NO_STDIO
469 #ifndef OPENSSL_NO_STDIO
471 const char *
file,
const char *dir);
494 int purpose,
int trust);
519 unsigned long flags);