diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_local.h')
-rw-r--r-- | src/lib/libcrypto/x509/x509_local.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_local.h b/src/lib/libcrypto/x509/x509_local.h index f62f5ad57d..1e813797e1 100644 --- a/src/lib/libcrypto/x509/x509_local.h +++ b/src/lib/libcrypto/x509/x509_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_local.h,v 1.18 2024/01/06 17:37:23 tb Exp $ */ | 1 | /* $OpenBSD: x509_local.h,v 1.19 2024/03/02 10:17:37 tb Exp $ */ |
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 2013. | 3 | * project 2013. |
4 | */ | 4 | */ |
@@ -360,6 +360,37 @@ int X509_policy_check(const STACK_OF(X509) *certs, | |||
360 | const STACK_OF(ASN1_OBJECT) *user_policies, unsigned long flags, | 360 | const STACK_OF(ASN1_OBJECT) *user_policies, unsigned long flags, |
361 | X509 **out_current_cert); | 361 | X509 **out_current_cert); |
362 | 362 | ||
363 | PBEPARAM *PBEPARAM_new(void); | ||
364 | void PBEPARAM_free(PBEPARAM *a); | ||
365 | PBEPARAM *d2i_PBEPARAM(PBEPARAM **a, const unsigned char **in, long len); | ||
366 | int i2d_PBEPARAM(PBEPARAM *a, unsigned char **out); | ||
367 | |||
368 | /* Password based encryption V2 structures */ | ||
369 | typedef struct PBE2PARAM_st { | ||
370 | X509_ALGOR *keyfunc; | ||
371 | X509_ALGOR *encryption; | ||
372 | } PBE2PARAM; | ||
373 | |||
374 | PBE2PARAM *PBE2PARAM_new(void); | ||
375 | void PBE2PARAM_free(PBE2PARAM *a); | ||
376 | PBE2PARAM *d2i_PBE2PARAM(PBE2PARAM **a, const unsigned char **in, long len); | ||
377 | int i2d_PBE2PARAM(PBE2PARAM *a, unsigned char **out); | ||
378 | extern const ASN1_ITEM PBE2PARAM_it; | ||
379 | |||
380 | typedef struct PBKDF2PARAM_st { | ||
381 | /* Usually OCTET STRING but could be anything */ | ||
382 | ASN1_TYPE *salt; | ||
383 | ASN1_INTEGER *iter; | ||
384 | ASN1_INTEGER *keylength; | ||
385 | X509_ALGOR *prf; | ||
386 | } PBKDF2PARAM; | ||
387 | |||
388 | PBKDF2PARAM *PBKDF2PARAM_new(void); | ||
389 | void PBKDF2PARAM_free(PBKDF2PARAM *a); | ||
390 | PBKDF2PARAM *d2i_PBKDF2PARAM(PBKDF2PARAM **a, const unsigned char **in, long len); | ||
391 | int i2d_PBKDF2PARAM(PBKDF2PARAM *a, unsigned char **out); | ||
392 | extern const ASN1_ITEM PBKDF2PARAM_it; | ||
393 | |||
363 | __END_HIDDEN_DECLS | 394 | __END_HIDDEN_DECLS |
364 | 395 | ||
365 | #endif /* !HEADER_X509_LOCAL_H */ | 396 | #endif /* !HEADER_X509_LOCAL_H */ |