1 /* precheck/chk-openssl.c  -  Check that OpenSSL include files and libraries are available
2  * Copyright (c) 2008 Symlabs (symlabs@symlabs.com), All Rights Reserved.
3  * Author: Sampo Kellomaki (sampo@iki.fi)
4  * This is confidential unpublished proprietary source code of the author.
5  * NO WARRANTY, not even implied warranties. Contains trade secrets.
6  * Distribution prohibited unless authorized in writing.
7  * Licensed under Apache License 2.0, see file COPYING.
8  * $Id: chk-openssl.c,v 1.3 2009-10-18 12:39:10 sampo Exp $
9  *
10  * 16.9.2008, created --Sampo
11  */
12 
13 #include <openssl/x509.h>
14 #include <openssl/ssl.h>
15 #include <openssl/opensslv.h>
16 #include <openssl/crypto.h>
17 #include <openssl/err.h>
18 
19 #include <stdio.h>
20 
21 /* Called by: */
main(int argc,char ** argv)22 int main(int argc, char** argv)
23 {
24   SSL_library_init();  /* in -lssl */
25   ERR_clear_error();   /* in -lcrypto */
26   printf("  -- OpenSSL version from opensslv.h: %s, crypto.h: %x\n",
27 	 OPENSSL_VERSION_TEXT, (unsigned int)SSLEAY_VERSION_NUMBER);
28   printf("  -- from SSLeay_version(): %s\n", SSLeay_version(SSLEAY_VERSION));
29   return 0;
30 }
31 
32 /* EOF  --  chk-openssl.c */
33