summaryrefslogtreecommitdiff
path: root/sbin/iked/ca.c
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-08-14 21:13:16 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-08-14 21:13:16 +0000
commit6a5220f6dad792431343f75ce7dbbb56404927a3 (patch)
tree02bad25280a0192620b03cffe8dc7e27e6c400c5 /sbin/iked/ca.c
parent53e0a9bbcf28abaa93afe4ca3838e848de458d7a (diff)
Clean up unused variables.
Diffstat (limited to 'sbin/iked/ca.c')
-rw-r--r--sbin/iked/ca.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/iked/ca.c b/sbin/iked/ca.c
index afb45a24d92..3fd31af6732 100644
--- a/sbin/iked/ca.c
+++ b/sbin/iked/ca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ca.c,v 1.65 2020/07/27 14:22:53 tobhe Exp $ */
+/* $OpenBSD: ca.c,v 1.66 2020/08/14 21:13:15 tobhe Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -1463,7 +1463,6 @@ ca_validate_cert(struct iked *env, struct iked_static_id *id,
X509 *cert = NULL;
EVP_PKEY *pkey;
int ret = -1, result, error;
- X509_NAME *subject;
const char *errstr = "failed";
if (len == 0) {
@@ -1478,7 +1477,7 @@ ca_validate_cert(struct iked *env, struct iked_static_id *id,
}
/* Certificate needs a valid subjectName */
- if ((subject = X509_get_subject_name(cert)) == NULL) {
+ if (X509_get_subject_name(cert) == NULL) {
errstr = "invalid subject";
goto done;
}