Commit f7a7510a authored by Dominik Charousset's avatar Dominik Charousset

Fix sign warning

parent 7bae0c95
...@@ -39,7 +39,7 @@ int pem_passwd_cb(char* buf, int size, int, void* ptr) { ...@@ -39,7 +39,7 @@ int pem_passwd_cb(char* buf, int size, int, void* ptr) {
auto passphrase = reinterpret_cast<session*>(ptr)->openssl_passphrase(); auto passphrase = reinterpret_cast<session*>(ptr)->openssl_passphrase();
strncpy(buf, passphrase, static_cast<size_t>(size)); strncpy(buf, passphrase, static_cast<size_t>(size));
buf[size - 1] = '\0'; buf[size - 1] = '\0';
return strlen(buf); return static_cast<int>(strlen(buf));
} }
} // namespace <anonymous> } // namespace <anonymous>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment