diff options
author | lloyd <[email protected]> | 2006-06-25 21:59:12 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-06-25 21:59:12 +0000 |
commit | 5e7d09631aeafd16f8312b451563ecb686570251 (patch) | |
tree | f95bc42d4c6509978eb5007befc313ccba28df6f /src/x509self.cpp | |
parent | c8f7aac6c29984857a8984cddf61c8cb7cd2d743 (diff) |
Use X509_Object::make_signed, rather than running through the process
manually.
Diffstat (limited to 'src/x509self.cpp')
-rw-r--r-- | src/x509self.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/x509self.cpp b/src/x509self.cpp index 3e6f36e0f..3a80eb263 100644 --- a/src/x509self.cpp +++ b/src/x509self.cpp @@ -176,17 +176,8 @@ PKCS10_Request create_cert_req(const X509_Cert_Options& opts, .end_explicit() .end_cons(); - MemoryVector<byte> tbs_bits = tbs_req.get_contents(); - MemoryVector<byte> sig = signer->sign_message(tbs_bits); - DataSource_Memory source( - DER_Encoder() - .start_cons(SEQUENCE) - .raw_bytes(tbs_bits) - .encode(sig_algo) - .encode(sig, BIT_STRING) - .end_cons() - .get_contents() + X509_Object::make_signed(signer, sig_algo, tbs_req.get_contents()) ); return PKCS10_Request(source); |