[EMAIL PROTECTED] wrote:
Hi,

I am begginer in Visual C++. but I need to write simple application
with OpenSSL. When I include for example <opensll/rsa.h> compiler
return error:
c:\program files\openssl\include\openssl\rsa.h(1) : error C2501: 'Link' : missing 
storage-class or type specifiers
c:\program files\openssl\include\openssl\rsa.h(1) : error C2239: unexpected token ':' 
following declaration of 'Link'
c:\program files\openssl\include\openssl\rsa.h(1) : error C2059: syntax error : '.'

could you please send me some example for Visual C++.

You can't just include rsa.h, since it depends on other headers. Look at apps/rsa.c in the OpenSSL source tree, for example. Note that your problem has nothing to do with VC++.

For example code, look in the demos and apps directories in the source
tree.  Also, the example programs from Eric Rescorla's book are at
http://www.rtfm.com/sslbook/examples.  You might want to acquire a
book.  Eric's "SSL and TLS" is excellent.  I understand there is now
an O'Reilly title on the subject as well.

Good luck!

Paul Allen

--
Boeing Phantom Works                   \ Paul L. Allen, (425) 865-3297
Math & Computing Technology              \ [EMAIL PROTECTED]
POB 3707 M/S 7L-40, Seattle, WA 98124-2207 \ Prototype Systems Group

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to