diff options
Diffstat (limited to 'src/lib/libcrypto/pem/pem.h')
-rw-r--r-- | src/lib/libcrypto/pem/pem.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/libcrypto/pem/pem.h b/src/lib/libcrypto/pem/pem.h index 0ea04bece7..95f1e030b1 100644 --- a/src/lib/libcrypto/pem/pem.h +++ b/src/lib/libcrypto/pem/pem.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem.h,v 1.22 2022/01/14 07:49:49 tb Exp $ */ | 1 | /* $OpenBSD: pem.h,v 1.23 2022/01/14 07:52:24 tb Exp $ */ |
2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -137,14 +137,6 @@ extern "C" { | |||
137 | #define PEM_STRING_PARAMETERS "PARAMETERS" | 137 | #define PEM_STRING_PARAMETERS "PARAMETERS" |
138 | #define PEM_STRING_CMS "CMS" | 138 | #define PEM_STRING_CMS "CMS" |
139 | 139 | ||
140 | /* Note that this structure is initialised by PEM_SealInit and cleaned up | ||
141 | by PEM_SealFinal (at least for now) */ | ||
142 | typedef struct PEM_Encode_Seal_st { | ||
143 | EVP_ENCODE_CTX encode; | ||
144 | EVP_MD_CTX md; | ||
145 | EVP_CIPHER_CTX cipher; | ||
146 | } PEM_ENCODE_SEAL_CTX; | ||
147 | |||
148 | /* enc_type is one off */ | 140 | /* enc_type is one off */ |
149 | #define PEM_TYPE_ENCRYPTED 10 | 141 | #define PEM_TYPE_ENCRYPTED 10 |
150 | #define PEM_TYPE_MIC_ONLY 20 | 142 | #define PEM_TYPE_MIC_ONLY 20 |
@@ -412,14 +404,6 @@ int PEM_ASN1_write(i2d_of_void *i2d, const char *name, FILE *fp, | |||
412 | STACK_OF(X509_INFO) * PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, | 404 | STACK_OF(X509_INFO) * PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, |
413 | pem_password_cb *cb, void *u); | 405 | pem_password_cb *cb, void *u); |
414 | 406 | ||
415 | int PEM_SealInit(PEM_ENCODE_SEAL_CTX *ctx, EVP_CIPHER *type, | ||
416 | EVP_MD *md_type, unsigned char **ek, int *ekl, | ||
417 | unsigned char *iv, EVP_PKEY **pubk, int npubk); | ||
418 | void PEM_SealUpdate(PEM_ENCODE_SEAL_CTX *ctx, unsigned char *out, int *outl, | ||
419 | unsigned char *in, int inl); | ||
420 | int PEM_SealFinal(PEM_ENCODE_SEAL_CTX *ctx, unsigned char *sig, int *sigl, | ||
421 | unsigned char *out, int *outl, EVP_PKEY *priv); | ||
422 | |||
423 | int PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type); | 407 | int PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type); |
424 | int PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *d, unsigned int cnt); | 408 | int PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *d, unsigned int cnt); |
425 | int PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, | 409 | int PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, |