aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index d5a5a9c1e..4f5a14d6d 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -1047,14 +1047,14 @@ int crypto_seed_rng()
if (!provider_set) {
if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, 0)) {
if (GetLastError() != NTE_BAD_KEYSET) {
- log_fn(LOG_ERR,"Can't get CryptoAPI provider [1]");
- return -1;
+ log_fn(LOG_ERR,"Can't get CryptoAPI provider [1]");
+ return -1;
}
/* Yes, we need to try it twice. */
if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL,
- CRYPT_NEWKEYSET)) {
- log_fn(LOG_ERR,"Can't get CryptoAPI provider [2]");
- return -1;
+ CRYPT_NEWKEYSET)) {
+ log_fn(LOG_ERR,"Can't get CryptoAPI provider [2]");
+ return -1;
}
}
provider_set = 1;