From 77564480001eb3ef4e1db127ece07cd337c53d7d Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 4 Sep 2016 16:22:54 +0000 Subject: Place IMPLEMENT_PEM macros under #ifndef LIBRESSL_INTERNAL. --- src/lib/libcrypto/pem/pem.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/pem/pem.h b/src/lib/libcrypto/pem/pem.h index 3a0d8b3576..d1916a1833 100644 --- a/src/lib/libcrypto/pem/pem.h +++ b/src/lib/libcrypto/pem/pem.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pem.h,v 1.16 2014/06/12 15:49:30 deraadt Exp $ */ +/* $OpenBSD: pem.h,v 1.17 2016/09/04 16:22:54 jsing Exp $ */ /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -201,12 +201,12 @@ typedef struct pem_ctx_st { unsigned char *data; } PEM_CTX; +#ifndef LIBRESSL_INTERNAL /* These macros make the PEM_read/PEM_write functions easier to maintain and * write. Now they are all implemented with either: * IMPLEMENT_PEM_rw(...) or IMPLEMENT_PEM_rw_cb(...) */ - #define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \ type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\ { \ @@ -306,6 +306,8 @@ int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \ IMPLEMENT_PEM_read(name, type, str, asn1) \ IMPLEMENT_PEM_write_cb(name, type, str, asn1) +#endif + /* These are the same except they are for the declarations */ -- cgit v1.2.3-55-g6feb