Re: Error Sending TLS SMTP email to servers that are not GMail

Peter Gutmann <[email protected]>
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
Topwiz <[email protected]> writes:

>I added the following code. cryptGetAttributeString returns -2 and sets
>ll_Strlen to -1. Do I not have the correct value for
>CRYPT_ATTRIBUTE_ERRORMESSAGE?
>
>Constant Long CRYPT_ATTRIBUTE_ERRORMESSAGE = 13
>String ls_Return, ls_Extended
>Long ll_RetVal, ll_Strlen
>
>ll_Strlen = 255
>ls_Extended = Space(ll_Strlen)
>
>ll_RetVal = cryptGetAttributeString(il_Session, &
>  CRYPT_ATTRIBUTE_ERRORMESSAGE, ls_Extended, ll_Strlen)

Hmm, this is odd, CRYPT_ATTRIBUTE_ERRORMESSAGE should always be a valid
attribute for sessions (and envelopes, and keysets, and ...).

Oh, you've set it yourself.  CRYPT_ATTRIBUTE_ERRORMESSAGE is 12, not 13 (you
can see the numeric values by looking at cryptlib.pas).

Peter.

_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.