aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/x509')
-rw-r--r--src/lib/x509/x509_crl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/x509/x509_crl.cpp b/src/lib/x509/x509_crl.cpp
index da075e009..47742c1da 100644
--- a/src/lib/x509/x509_crl.cpp
+++ b/src/lib/x509/x509_crl.cpp
@@ -143,7 +143,7 @@ std::unique_ptr<CRL_Data> decode_crl_body(const std::vector<uint8_t>& body,
if(next.is_a(SEQUENCE, CONSTRUCTED))
{
- BER_Decoder cert_list(next);
+ BER_Decoder cert_list(std::move(next));
while(cert_list.more_items())
{
@@ -156,7 +156,7 @@ std::unique_ptr<CRL_Data> decode_crl_body(const std::vector<uint8_t>& body,
if(next.is_a(0, ASN1_Tag(CONSTRUCTED | CONTEXT_SPECIFIC)))
{
- BER_Decoder crl_options(next);
+ BER_Decoder crl_options(std::move(next));
crl_options.decode(data->m_extensions).verify_end();
next = tbs_crl.get_next_object();
}