Re: unusual behavior in cryptExportCert

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

>This is because when I use certLength the second call to cryptExportCert (the
>one with 'buffer' as the first argument) returns a -1.

Are you sure it isn't the first call that's returning the CRYPT_ERROR_PARAM1?
You're telling cryptlib that you have a buffer of size 4K, but passing a null
pointer, which would return an error for the buffer parameter.  If you're just
doing a length check you pass a NULL pointer with the buffer size set to zero.

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.