Skip to content

Commit

Permalink
Fix compile error with VS2017 (GH #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Sep 7, 2021
1 parent d973117 commit 3833d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pem_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void PEM_CipherForAlgorithm(RandomNumberGenerator& rng, std::string algorithm,
unsigned int ksize=0, vsize=0;
stream.release();

secure_string alg = ToUpper(secure_string(algorithm));
secure_string alg = ToUpper(secure_string(algorithm.begin(), algorithm.end()));

if (alg.empty())
goto verify; // verify throws
Expand Down

0 comments on commit 3833d01

Please sign in to comment.