summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509.h')
-rw-r--r--src/lib/libcrypto/x509/x509.h33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h
index fe18202533..bd8497d9c4 100644
--- a/src/lib/libcrypto/x509/x509.h
+++ b/src/lib/libcrypto/x509/x509.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509.h,v 1.103 2023/11/02 20:25:48 tb Exp $ */ 1/* $OpenBSD: x509.h,v 1.104 2024/03/02 10:17:37 tb Exp $ */
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 *
@@ -328,28 +328,11 @@ typedef struct Netscape_spki_st {
328 ASN1_BIT_STRING *signature; 328 ASN1_BIT_STRING *signature;
329} NETSCAPE_SPKI; 329} NETSCAPE_SPKI;
330 330
331/* Password based encryption structure */
332
333typedef struct PBEPARAM_st { 331typedef struct PBEPARAM_st {
334 ASN1_OCTET_STRING *salt; 332 ASN1_OCTET_STRING *salt;
335 ASN1_INTEGER *iter; 333 ASN1_INTEGER *iter;
336} PBEPARAM; 334} PBEPARAM;
337 335
338/* Password based encryption V2 structures */
339
340typedef struct PBE2PARAM_st {
341 X509_ALGOR *keyfunc;
342 X509_ALGOR *encryption;
343} PBE2PARAM;
344
345typedef struct PBKDF2PARAM_st {
346 /* Usually OCTET STRING but could be anything */
347 ASN1_TYPE *salt;
348 ASN1_INTEGER *iter;
349 ASN1_INTEGER *keylength;
350 X509_ALGOR *prf;
351} PBKDF2PARAM;
352
353#ifdef __cplusplus 336#ifdef __cplusplus
354} 337}
355#endif 338#endif
@@ -1033,21 +1016,7 @@ X509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk,X509_NAME *name,
1033 ASN1_INTEGER *serial); 1016 ASN1_INTEGER *serial);
1034X509 *X509_find_by_subject(STACK_OF(X509) *sk,X509_NAME *name); 1017X509 *X509_find_by_subject(STACK_OF(X509) *sk,X509_NAME *name);
1035 1018
1036PBEPARAM *PBEPARAM_new(void);
1037void PBEPARAM_free(PBEPARAM *a);
1038PBEPARAM *d2i_PBEPARAM(PBEPARAM **a, const unsigned char **in, long len);
1039int i2d_PBEPARAM(PBEPARAM *a, unsigned char **out);
1040extern const ASN1_ITEM PBEPARAM_it; 1019extern const ASN1_ITEM PBEPARAM_it;
1041PBE2PARAM *PBE2PARAM_new(void);
1042void PBE2PARAM_free(PBE2PARAM *a);
1043PBE2PARAM *d2i_PBE2PARAM(PBE2PARAM **a, const unsigned char **in, long len);
1044int i2d_PBE2PARAM(PBE2PARAM *a, unsigned char **out);
1045extern const ASN1_ITEM PBE2PARAM_it;
1046PBKDF2PARAM *PBKDF2PARAM_new(void);
1047void PBKDF2PARAM_free(PBKDF2PARAM *a);
1048PBKDF2PARAM *d2i_PBKDF2PARAM(PBKDF2PARAM **a, const unsigned char **in, long len);
1049int i2d_PBKDF2PARAM(PBKDF2PARAM *a, unsigned char **out);
1050extern const ASN1_ITEM PBKDF2PARAM_it;
1051 1020
1052int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter, 1021int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,
1053 const unsigned char *salt, int saltlen); 1022 const unsigned char *salt, int saltlen);