summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2024-03-29 02:28:50 +0000
committerjsing <>2024-03-29 02:28:50 +0000
commit6d0c8245144130b7f334be3eab2f89d3e75ffad7 (patch)
treeb3300fce4776094e9ed249ff33347da19defd862
parentafa268daab7803faa5d66e8692a9a14e96698389 (diff)
downloadopenbsd-6d0c8245144130b7f334be3eab2f89d3e75ffad7.tar.gz
openbsd-6d0c8245144130b7f334be3eab2f89d3e75ffad7.tar.bz2
openbsd-6d0c8245144130b7f334be3eab2f89d3e75ffad7.zip
Stop playing #ifdef HEADER_PEM_H games in cms.h.
Rather than making prototypes appear and disappear depending on whether or not you've included pem.h before cms.h, just include pem.h from cms.h itself. ok joshua@ tb@
-rw-r--r--src/lib/libcrypto/cms/cms.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cms/cms.h b/src/lib/libcrypto/cms/cms.h
index 76672af097..75983cee3e 100644
--- a/src/lib/libcrypto/cms/cms.h
+++ b/src/lib/libcrypto/cms/cms.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: cms.h,v 1.16 2023/07/28 10:28:02 tb Exp $ */ 1/* $OpenBSD: cms.h,v 1.17 2024/03/29 02:28:50 jsing Exp $ */
2/* 2/*
3 * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 3 * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
4 * project. 4 * project.
@@ -58,8 +58,11 @@
58#include <openssl/opensslconf.h> 58#include <openssl/opensslconf.h>
59 59
60#ifndef OPENSSL_NO_CMS 60#ifndef OPENSSL_NO_CMS
61
62#include <openssl/pem.h>
61#include <openssl/x509.h> 63#include <openssl/x509.h>
62#include <openssl/x509v3.h> 64#include <openssl/x509v3.h>
65
63#ifdef __cplusplus 66#ifdef __cplusplus
64extern "C" { 67extern "C" {
65#endif 68#endif
@@ -138,14 +141,12 @@ ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms);
138int CMS_is_detached(CMS_ContentInfo *cms); 141int CMS_is_detached(CMS_ContentInfo *cms);
139int CMS_set_detached(CMS_ContentInfo *cms, int detached); 142int CMS_set_detached(CMS_ContentInfo *cms, int detached);
140 143
141#ifdef HEADER_PEM_H
142CMS_ContentInfo *PEM_read_bio_CMS(BIO *bp, CMS_ContentInfo **x, 144CMS_ContentInfo *PEM_read_bio_CMS(BIO *bp, CMS_ContentInfo **x,
143 pem_password_cb *cb, void *u); 145 pem_password_cb *cb, void *u);
144CMS_ContentInfo *PEM_read_CMS(FILE *fp, CMS_ContentInfo **x, 146CMS_ContentInfo *PEM_read_CMS(FILE *fp, CMS_ContentInfo **x,
145 pem_password_cb *cb, void *u); 147 pem_password_cb *cb, void *u);
146int PEM_write_bio_CMS(BIO *bp, const CMS_ContentInfo *x); 148int PEM_write_bio_CMS(BIO *bp, const CMS_ContentInfo *x);
147int PEM_write_CMS(FILE *fp, const CMS_ContentInfo *x); 149int PEM_write_CMS(FILE *fp, const CMS_ContentInfo *x);
148#endif
149int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms); 150int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms);
150CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms); 151CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);
151int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms); 152int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);