ssl_cryptlib.pas - username/password fix (German Pablo Gentile)
git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@194 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
@ -1,9 +1,9 @@
|
|||||||
{==============================================================================|
|
{==============================================================================|
|
||||||
| Project : Ararat Synapse | 001.001.000 |
|
| Project : Ararat Synapse | 001.001.001 |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Content: SSL/SSH support by Peter Gutmann's CryptLib |
|
| Content: SSL/SSH support by Peter Gutmann's CryptLib |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Copyright (c)1999-2012, Lukas Gebauer |
|
| Copyright (c)1999-2015, Lukas Gebauer |
|
||||||
| All rights reserved. |
|
| All rights reserved. |
|
||||||
| |
|
| |
|
||||||
| Redistribution and use in source and binary forms, with or without |
|
| Redistribution and use in source and binary forms, with or without |
|
||||||
@ -33,7 +33,7 @@
|
|||||||
| DAMAGE. |
|
| DAMAGE. |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
||||||
| Portions created by Lukas Gebauer are Copyright (c)2005-2012. |
|
| Portions created by Lukas Gebauer are Copyright (c)2005-2015. |
|
||||||
| All Rights Reserved. |
|
| All Rights Reserved. |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Contributor(s): |
|
| Contributor(s): |
|
||||||
@ -286,6 +286,8 @@ var
|
|||||||
keysetobj: CRYPT_KEYSET;
|
keysetobj: CRYPT_KEYSET;
|
||||||
cryptContext: CRYPT_CONTEXT;
|
cryptContext: CRYPT_CONTEXT;
|
||||||
x: integer;
|
x: integer;
|
||||||
|
aUserName : AnsiString;
|
||||||
|
aPassword: AnsiString;
|
||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
FLastErrorDesc := '';
|
FLastErrorDesc := '';
|
||||||
@ -332,6 +334,8 @@ begin
|
|||||||
|
|
||||||
if FUsername <> '' then
|
if FUsername <> '' then
|
||||||
begin
|
begin
|
||||||
|
aUserName := fUserName;
|
||||||
|
aPassword := fPassword;
|
||||||
cryptSetAttributeString(FcryptSession, CRYPT_SESSINFO_USERNAME,
|
cryptSetAttributeString(FcryptSession, CRYPT_SESSINFO_USERNAME,
|
||||||
Pointer(FUsername), Length(FUsername));
|
Pointer(FUsername), Length(FUsername));
|
||||||
cryptSetAttributeString(FcryptSession, CRYPT_SESSINFO_PASSWORD,
|
cryptSetAttributeString(FcryptSession, CRYPT_SESSINFO_PASSWORD,
|
||||||
|
Reference in New Issue
Block a user