OpenSSL_add_all_algorithms(); //the warning message returned here
SSL_load_error_strings();       //the warning message returned here

You are redeclaring the above functions in your program which are
already declared and implemented in openssl lib. U need to move these
functions into main() or some other function

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of omronz
Sent: 03 August 2009 10:11
To: [email protected]
Subject: warning: data definition has no type or storage class


Hai everyone

I am new in SSL. I start to play around OpenSSL by creating a simple
server
that uses openssl. So, I just intialize the openssl main library but my
program returned the warning message "data definition  has no type or
storage class" What does this mean and how can i eliminate this warning
message? Hope that anyone here can help me since I am really new in
OpenSSL.
My OpenSSL version is 0.9.8g 19 Oct 2007.

#include <openssl/bio.h>
//#include <openssl/ssl.h>
//#include <openssl/err.h>

OpenSSL_add_all_algorithms(); //the warning message returned here
SSL_load_error_strings();       //the warning message returned here

int main()
{
  return 0;
}

Another error i received is 
- "previous declaration of 'OPENSSL_add_all_algorithms_noconf' was here"
- "conflicting types for 'SSL_load_error_strings' "

These error message above only appeared if i cancel the comment tag at
the
#include <openssl/ssl.h> and #include <openssl/err.h>

Hope that anyone can help me. I am now referring 3 basic manuals about
openssl and these 3 gives different initialization library. Some uses 
OpenSSL_add_all_algorithms(); and there are some uses
SSL_library_init(). I
know that by using different library, they offer different encryption
and
hash function example like DES or any other encryption algo. Can both of
them be used using my openssl version? Thanks a lot.
-- 
View this message in context:
http://www.nabble.com/warning%3A-data-definition-has-no-type-or-storage-
class-tp24785280p24785280.html
Sent from the OpenSSL - Dev mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to