Mercurial > trustbridge
diff common/binverify.c @ 1387:c64b6c56ce96 0.9.8
(issue95) Change keys for release build. Fix release build usage.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 15 Jan 2015 16:46:36 +0100 |
parents | 948f03bb5254 |
children | f3e2df6b49ba |
line wrap: on
line diff
--- a/common/binverify.c Thu Jan 15 16:14:35 2015 +0100 +++ b/common/binverify.c Thu Jan 15 16:46:36 2015 +0100 @@ -417,11 +417,11 @@ verify_binary_linux(const char *filename, size_t name_len) { int ret = -1; - const size_t sig_b64_size = TRUSTBRIDGE_RSA_KEY_SIZE / 8 * 4 / 3; + const size_t sig_b64_size = TRUSTBRIDGE_RSA_CODESIGN_SIZE / 8 * 4 / 3; char *data = NULL, signature_b64[sig_b64_size + 1]; size_t data_size = 0, - sig_size = TRUSTBRIDGE_RSA_KEY_SIZE / 8; + sig_size = TRUSTBRIDGE_RSA_CODESIGN_SIZE / 8; unsigned char signature[sig_size], hash[32]; FILE *fptr = NULL; @@ -471,7 +471,7 @@ ret = base64_decode(signature, &sig_size, (unsigned char *)signature_b64, sig_b64_size); - if (ret != 0 || sig_size != TRUSTBRIDGE_RSA_KEY_SIZE / 8) + if (ret != 0 || sig_size != TRUSTBRIDGE_RSA_CODESIGN_SIZE / 8) { ERRORPRINTF ("Base 64 decode failed with error: %i\n", ret); goto done;