From d234de2397cb1137fe180aff5026894e4095abc5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Sat, 23 Jan 2016 18:28:27 +0100 Subject: [PATCH] upd: start the counting part of the serial with a '1' --- src/crypto/simpleOpensslSigner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/simpleOpensslSigner.cpp b/src/crypto/simpleOpensslSigner.cpp index 17323a3..a75f91e 100644 --- a/src/crypto/simpleOpensslSigner.cpp +++ b/src/crypto/simpleOpensslSigner.cpp @@ -35,7 +35,7 @@ std::pair, std::string> SimpleOpensslSigner::nextSerial( if( res == "" ) { bn = BN_new(); - if( !bn ) { + if( !bn || !BN_hex2bn( &bn, "1" )) { throw "Initing serial failed"; } } else { -- 2.47.3