Repository: thrift Updated Branches: refs/heads/master 8f11f5234 -> 33f3f01ce
THRIFT-1844: Overwrite password string after passing it to openssl. Sponsored-by: Roger Meier <[email protected]> Signed-off-by: Claudius Heine <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/33f3f01c Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/33f3f01c Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/33f3f01c Branch: refs/heads/master Commit: 33f3f01ce2a7e0aa1348deada026edec20c937ee Parents: 8f11f52 Author: Claudius Heine <[email protected]> Authored: Tue Jul 7 11:42:04 2015 +0200 Committer: Roger Meier <[email protected]> Committed: Wed Jul 8 13:46:29 2015 +0200 ---------------------------------------------------------------------- lib/cpp/src/thrift/transport/TSSLSocket.cpp | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/33f3f01c/lib/cpp/src/thrift/transport/TSSLSocket.cpp ---------------------------------------------------------------------- diff --git a/lib/cpp/src/thrift/transport/TSSLSocket.cpp b/lib/cpp/src/thrift/transport/TSSLSocket.cpp index 622dfa4..ecc7896 100644 --- a/lib/cpp/src/thrift/transport/TSSLSocket.cpp +++ b/lib/cpp/src/thrift/transport/TSSLSocket.cpp @@ -581,6 +581,7 @@ int TSSLSocketFactory::passwordCallback(char* password, int size, int, void* dat length = size; } strncpy(password, userPassword.c_str(), length); + userPassword.assign(userPassword.size(), '*'); return length; }
