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.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/lib/libcrypto/pem/pem.h b/src/lib/libcrypto/pem/pem.h
index e4bae0b4aa..6d3c446577 100644
--- a/src/lib/libcrypto/pem/pem.h
+++ b/src/lib/libcrypto/pem/pem.h
@@ -59,14 +59,20 @@
59#ifndef HEADER_PEM_H 59#ifndef HEADER_PEM_H
60#define HEADER_PEM_H 60#define HEADER_PEM_H
61 61
62#ifdef __cplusplus 62#ifndef NO_BIO
63extern "C" { 63#include <openssl/bio.h>
64#endif
65#ifndef NO_STACK
66#include <openssl/stack.h>
64#endif 67#endif
65
66#include <openssl/evp.h> 68#include <openssl/evp.h>
67#include <openssl/x509.h> 69#include <openssl/x509.h>
68#include <openssl/pem2.h> 70#include <openssl/pem2.h>
69 71
72#ifdef __cplusplus
73extern "C" {
74#endif
75
70#define PEM_BUFSIZE 1024 76#define PEM_BUFSIZE 1024
71 77
72#define PEM_OBJ_UNDEF 0 78#define PEM_OBJ_UNDEF 0
@@ -165,7 +171,7 @@ typedef struct pem_ctx_st
165 int num_recipient; 171 int num_recipient;
166 PEM_USER **recipient; 172 PEM_USER **recipient;
167 173
168#ifdef HEADER_STACK_H 174#ifndef NO_STACK
169 STACK *x509_chain; /* certificate chain */ 175 STACK *x509_chain; /* certificate chain */
170#else 176#else
171 char *x509_chain; /* certificate chain */ 177 char *x509_chain; /* certificate chain */
@@ -289,7 +295,7 @@ int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
289 295
290#endif 296#endif
291 297
292#ifdef HEADER_BIO_H 298#ifndef NO_BIO
293#define DECLARE_PEM_read_bio(name, type) \ 299#define DECLARE_PEM_read_bio(name, type) \
294 type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u); 300 type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u);
295 301
@@ -477,7 +483,7 @@ int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher);
477int PEM_do_header (EVP_CIPHER_INFO *cipher, unsigned char *data,long *len, 483int PEM_do_header (EVP_CIPHER_INFO *cipher, unsigned char *data,long *len,
478 pem_password_cb *callback,void *u); 484 pem_password_cb *callback,void *u);
479 485
480#ifdef HEADER_BIO_H 486#ifndef NO_BIO
481int PEM_read_bio(BIO *bp, char **name, char **header, 487int PEM_read_bio(BIO *bp, char **name, char **header,
482 unsigned char **data,long *len); 488 unsigned char **data,long *len);
483int PEM_write_bio(BIO *bp,const char *name,char *hdr,unsigned char *data, 489int PEM_write_bio(BIO *bp,const char *name,char *hdr,unsigned char *data,
@@ -525,9 +531,7 @@ void PEM_dek_info(char *buf, const char *type, int len, char *str);
525 531
526#ifndef SSLEAY_MACROS 532#ifndef SSLEAY_MACROS
527 533
528#ifdef VMS 534#include <openssl/symhacks.h>
529#include <openssl/vms_idhacks.h>
530#endif
531 535
532DECLARE_PEM_rw(X509, X509) 536DECLARE_PEM_rw(X509, X509)
533 537