summaryrefslogtreecommitdiff
path: root/lib/libcrypto/pem/pem_x509.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2016-09-04 16:10:39 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2016-09-04 16:10:39 +0000
commit4069d02e14d279fbf9e945c85a1342d8b88eb650 (patch)
tree9ffe109fd7eabc0c48f4e60d310696e9f76354e4 /lib/libcrypto/pem/pem_x509.c
parentd9123b7946dc99b122c27b2c0cf255dac6a0051d (diff)
Sort and group functions.
Diffstat (limited to 'lib/libcrypto/pem/pem_x509.c')
-rw-r--r--lib/libcrypto/pem/pem_x509.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/libcrypto/pem/pem_x509.c b/lib/libcrypto/pem/pem_x509.c
index 350c48ba9a3..f440a9f0aa3 100644
--- a/lib/libcrypto/pem/pem_x509.c
+++ b/lib/libcrypto/pem/pem_x509.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pem_x509.c,v 1.7 2016/09/04 15:53:03 jsing Exp $ */
+/* $OpenBSD: pem_x509.c,v 1.8 2016/09/04 16:10:38 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2001.
*/
@@ -66,13 +66,6 @@
X509 *
-PEM_read_bio_X509(BIO *bp, X509 **x, pem_password_cb *cb, void *u)
-{
- return PEM_ASN1_read_bio((d2i_of_void *)d2i_X509, PEM_STRING_X509, bp,
- (void **)x, cb, u);
-}
-
-X509 *
PEM_read_X509(FILE *fp, X509 **x, pem_password_cb *cb, void *u)
{
return PEM_ASN1_read((d2i_of_void *)d2i_X509, PEM_STRING_X509, fp,
@@ -80,15 +73,22 @@ PEM_read_X509(FILE *fp, X509 **x, pem_password_cb *cb, void *u)
}
int
-PEM_write_bio_X509(BIO *bp, X509 *x)
+PEM_write_X509(FILE *fp, X509 *x)
{
- return PEM_ASN1_write_bio((i2d_of_void *)i2d_X509, PEM_STRING_X509, bp,
+ return PEM_ASN1_write((i2d_of_void *)i2d_X509, PEM_STRING_X509, fp,
x, NULL, NULL, 0, NULL, NULL);
}
+X509 *
+PEM_read_bio_X509(BIO *bp, X509 **x, pem_password_cb *cb, void *u)
+{
+ return PEM_ASN1_read_bio((d2i_of_void *)d2i_X509, PEM_STRING_X509, bp,
+ (void **)x, cb, u);
+}
+
int
-PEM_write_X509(FILE *fp, X509 *x)
+PEM_write_bio_X509(BIO *bp, X509 *x)
{
- return PEM_ASN1_write((i2d_of_void *)i2d_X509, PEM_STRING_X509, fp,
+ return PEM_ASN1_write_bio((i2d_of_void *)i2d_X509, PEM_STRING_X509, bp,
x, NULL, NULL, 0, NULL, NULL);
}