ssl_cryptlib.pas fix bug #35 (Haim Gelfenbeyn)

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@220 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby 2021-06-12 16:03:27 +00:00
parent 5f49014160
commit b039138b11

View File

@ -1,5 +1,5 @@
{==============================================================================| {==============================================================================|
| Project : Ararat Synapse | 001.001.001 | | Project : Ararat Synapse | 001.001.002 |
|==============================================================================| |==============================================================================|
| Content: SSL/SSH support by Peter Gutmann's CryptLib | | Content: SSL/SSH support by Peter Gutmann's CryptLib |
|==============================================================================| |==============================================================================|
@ -337,9 +337,9 @@ begin
aUserName := fUserName; aUserName := fUserName;
aPassword := fPassword; aPassword := fPassword;
cryptSetAttributeString(FcryptSession, CRYPT_SESSINFO_USERNAME, cryptSetAttributeString(FcryptSession, CRYPT_SESSINFO_USERNAME,
Pointer(FUsername), Length(FUsername)); Pointer(aUsername), Length(aUsername));
cryptSetAttributeString(FcryptSession, CRYPT_SESSINFO_PASSWORD, cryptSetAttributeString(FcryptSession, CRYPT_SESSINFO_PASSWORD,
Pointer(FPassword), Length(FPassword)); Pointer(aPassword), Length(aPassword));
end; end;
if FSSLType = LT_SSHv2 then if FSSLType = LT_SSHv2 then
if FSSHChannelType <> '' then if FSSHChannelType <> '' then