]> WPIA git - cassiopeia.git/commitdiff
upd: start the counting part of the serial with a '1'
authorFelix Dörre <felix@dogcraft.de>
Sat, 23 Jan 2016 17:28:27 +0000 (18:28 +0100)
committerFelix Dörre <felix@dogcraft.de>
Sat, 23 Jan 2016 17:28:27 +0000 (18:28 +0100)
src/crypto/simpleOpensslSigner.cpp

index 17323a34adb45ddca61613e7c0209c48bb2d73c8..a75f91ede81d23f0af44d5050f53cd33685452b5 100644 (file)
@@ -35,7 +35,7 @@ std::pair<std::shared_ptr<BIGNUM>, std::string> SimpleOpensslSigner::nextSerial(
     if( res == "" ) {
         bn = BN_new();
 
-        if( !bn ) {
+        if( !bn || !BN_hex2bn( &bn, "1" )) {
             throw "Initing serial failed";
         }
     } else {