summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2020-07-25 11:53:38 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2020-07-25 11:53:38 +0000
commit104759d71509879fd48c570034353ea3565b952e (patch)
treecb147c930fcc6022c0876233fee54656224ba717 /lib
parent42657a93f538db67da1cdc06c5f247af3a5f53ab (diff)
remove half a dozen "goto" statements and a label
that change nothing whatsoever, except making the code harder to read; OK tb@
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/pem/pem_info.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/libcrypto/pem/pem_info.c b/lib/libcrypto/pem/pem_info.c
index 9561b5f4df1..33c1de43fd3 100644
--- a/lib/libcrypto/pem/pem_info.c
+++ b/lib/libcrypto/pem/pem_info.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pem_info.c,v 1.23 2020/07/23 17:15:35 schwarze Exp $ */
+/* $OpenBSD: pem_info.c,v 1.24 2020/07/25 11:53:37 schwarze Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -128,7 +128,6 @@ PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb,
}
goto err;
}
-start:
if ((strcmp(name, PEM_STRING_X509) == 0) ||
(strcmp(name, PEM_STRING_X509_OLD) == 0)) {
d2i = (D2I_OF(void))d2i_X509;
@@ -137,7 +136,6 @@ start:
goto err;
if ((xi = X509_INFO_new()) == NULL)
goto err;
- goto start;
}
pp = &(xi->x509);
} else if ((strcmp(name, PEM_STRING_X509_TRUSTED) == 0)) {
@@ -147,7 +145,6 @@ start:
goto err;
if ((xi = X509_INFO_new()) == NULL)
goto err;
- goto start;
}
pp = &(xi->x509);
} else if (strcmp(name, PEM_STRING_X509_CRL) == 0) {
@@ -157,7 +154,6 @@ start:
goto err;
if ((xi = X509_INFO_new()) == NULL)
goto err;
- goto start;
}
pp = &(xi->crl);
} else
@@ -169,12 +165,9 @@ start:
goto err;
if ((xi = X509_INFO_new()) == NULL)
goto err;
- goto start;
}
-
xi->enc_data = NULL;
xi->enc_len = 0;
-
xi->x_pkey = X509_PKEY_new();
if (xi->x_pkey == NULL)
goto err;
@@ -192,12 +185,9 @@ start:
goto err;
if ((xi = X509_INFO_new()) == NULL)
goto err;
- goto start;
}
-
xi->enc_data = NULL;
xi->enc_len = 0;
-
xi->x_pkey = X509_PKEY_new();
if (xi->x_pkey == NULL)
goto err;
@@ -215,12 +205,9 @@ start:
goto err;
if ((xi = X509_INFO_new()) == NULL)
goto err;
- goto start;
}
-
xi->enc_data = NULL;
xi->enc_len = 0;
-
xi->x_pkey = X509_PKEY_new();
if (xi->x_pkey == NULL)
goto err;