-/* $OpenBSD: pem.h,v 1.24 2022/07/12 14:42:50 kn Exp $ */
+/* $OpenBSD: pem.h,v 1.25 2023/04/24 22:24:39 tb Exp $ */
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
DECLARE_PEM_rw(PKCS7, PKCS7)
+#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
DECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE, NETSCAPE_CERT_SEQUENCE)
+#endif
DECLARE_PEM_rw(PKCS8, X509_SIG)
-/* $OpenBSD: pem_all.c,v 1.17 2016/09/04 16:10:38 jsing Exp $ */
+/* $OpenBSD: pem_all.c,v 1.18 2023/04/24 22:24:39 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
x, NULL, NULL, 0, NULL, NULL);
}
+#if !defined(LIBRESSL_NEXT_API)
int
PEM_write_NETSCAPE_CERT_SEQUENCE(FILE *fp, NETSCAPE_CERT_SEQUENCE *x)
{
return PEM_ASN1_write((i2d_of_void *)i2d_NETSCAPE_CERT_SEQUENCE, PEM_STRING_X509, fp,
x, NULL, NULL, 0, NULL, NULL);
}
+#endif
NETSCAPE_CERT_SEQUENCE *
PEM_read_NETSCAPE_CERT_SEQUENCE(FILE *fp, NETSCAPE_CERT_SEQUENCE **x, pem_password_cb *cb, void *u)
-/* $OpenBSD: x509.h,v 1.98 2023/04/24 08:39:06 job Exp $ */
+/* $OpenBSD: x509.h,v 1.99 2023/04/24 22:24:39 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
ASN1_BIT_STRING *signature;
} NETSCAPE_SPKI;
+#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
/* Netscape certificate sequence structure */
typedef struct Netscape_certificate_sequence {
ASN1_OBJECT *type;
STACK_OF(X509) *certs;
} NETSCAPE_CERT_SEQUENCE;
-
+#endif
/* Password based encryption structure */
NETSCAPE_SPKAC *d2i_NETSCAPE_SPKAC(NETSCAPE_SPKAC **a, const unsigned char **in, long len);
int i2d_NETSCAPE_SPKAC(NETSCAPE_SPKAC *a, unsigned char **out);
extern const ASN1_ITEM NETSCAPE_SPKAC_it;
+
+#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
NETSCAPE_CERT_SEQUENCE *NETSCAPE_CERT_SEQUENCE_new(void);
void NETSCAPE_CERT_SEQUENCE_free(NETSCAPE_CERT_SEQUENCE *a);
NETSCAPE_CERT_SEQUENCE *d2i_NETSCAPE_CERT_SEQUENCE(NETSCAPE_CERT_SEQUENCE **a, const unsigned char **in, long len);
int i2d_NETSCAPE_CERT_SEQUENCE(NETSCAPE_CERT_SEQUENCE *a, unsigned char **out);
extern const ASN1_ITEM NETSCAPE_CERT_SEQUENCE_it;
+#endif
#ifndef OPENSSL_NO_EVP
X509_INFO * X509_INFO_new(void);