summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pem/pem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/pem/pem.h')
-rw-r--r--src/lib/libcrypto/pem/pem.h18
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) */
142typedef 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,
412STACK_OF(X509_INFO) * PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, 404STACK_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
415int 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);
418void PEM_SealUpdate(PEM_ENCODE_SEAL_CTX *ctx, unsigned char *out, int *outl,
419 unsigned char *in, int inl);
420int PEM_SealFinal(PEM_ENCODE_SEAL_CTX *ctx, unsigned char *sig, int *sigl,
421 unsigned char *out, int *outl, EVP_PKEY *priv);
422
423int PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type); 407int PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type);
424int PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *d, unsigned int cnt); 408int PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *d, unsigned int cnt);
425int PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, 409int PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,