aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/cert/x509
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cert/x509')
-rw-r--r--src/lib/cert/x509/x509_ca.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/cert/x509/x509_ca.cpp b/src/lib/cert/x509/x509_ca.cpp
index 2857072ea..3a849a29f 100644
--- a/src/lib/cert/x509/x509_ca.cpp
+++ b/src/lib/cert/x509/x509_ca.cpp
@@ -101,7 +101,7 @@ X509_Certificate X509_CA::make_cert(PK_Signer* signer,
BigInt serial_no(rng, SERIAL_BITS);
- const std::vector<byte> cert = X509_Object::make_signed(
+ return X509_Certificate(X509_Object::make_signed(
signer, rng, sig_algo,
DER_Encoder().start_cons(SEQUENCE)
.start_explicit(0)
@@ -127,9 +127,8 @@ X509_Certificate X509_CA::make_cert(PK_Signer* signer,
.end_cons()
.end_explicit()
.end_cons()
- .get_contents());
-
- return X509_Certificate(cert);
+ .get_contents()
+ ));;
}
/*