diff options
author | Jack Lloyd <[email protected]> | 2018-05-22 22:47:49 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-05-22 22:47:49 -0400 |
commit | 4314e368d2638878d2e885e7599bd45b48c87c9a (patch) | |
tree | ba27a15da03209dc02acc8b9ab25c4b9b0fc916d /src/lib/pubkey/pkcs8.cpp | |
parent | c97b3406f544ba98ae9b579d711b887b247032a7 (diff) |
Fix PBE decoding and fix test macro check
Diffstat (limited to 'src/lib/pubkey/pkcs8.cpp')
-rw-r--r-- | src/lib/pubkey/pkcs8.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/pkcs8.cpp b/src/lib/pubkey/pkcs8.cpp index 1034dfa99..8d3eba6dc 100644 --- a/src/lib/pubkey/pkcs8.cpp +++ b/src/lib/pubkey/pkcs8.cpp @@ -169,7 +169,7 @@ choose_pbe_params(const std::string& pbe_algo, const std::string& key_algo) SCAN_Name request(pbe_algo); if(request.algo_name() != "PBE-PKCS5v20" || request.arg_count() != 2) throw Exception("Unsupported PBE " + pbe_algo); - return std::make_pair(request.arg(1), request.arg(0)); + return std::make_pair(request.arg(0), request.arg(1)); } } |