aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/x509ca/x509_ca.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cert/x509ca/x509_ca.cpp')
-rw-r--r--src/cert/x509ca/x509_ca.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cert/x509ca/x509_ca.cpp b/src/cert/x509ca/x509_ca.cpp
index 57307d67e..9cb4c0a7f 100644
--- a/src/cert/x509ca/x509_ca.cpp
+++ b/src/cert/x509ca/x509_ca.cpp
@@ -97,7 +97,7 @@ X509_Certificate X509_CA::make_cert(PK_Signer* signer,
const X509_DN& subject_dn,
const Extensions& extensions)
{
- const u32bit X509_CERT_VERSION = 3;
+ const size_t X509_CERT_VERSION = 3;
const size_t SERIAL_BITS = 256;
BigInt serial_no(rng, SERIAL_BITS);
@@ -166,7 +166,7 @@ X509_CRL X509_CA::make_crl(const std::vector<CRL_Entry>& revoked,
u32bit crl_number, u32bit next_update,
RandomNumberGenerator& rng) const
{
- const u32bit X509_CRL_VERSION = 2;
+ const size_t X509_CRL_VERSION = 2;
if(next_update == 0)
next_update = timespec_to_u32bit("7d");