if (version) printf("%s\n",SSLeay_version(SSLEAY_VERSION));
if (version) { if (SSLeay() == SSLEAY_VERSION_NUMBER) { printf("%s\n",SSLeay_version(SSLEAY_VERSION)); } else { printf("%s (Library: %s)\n", SSLEAY_VERSION_TEXT, SSLeay_version(SSLEAY_VERSION)); } }
int MAIN(int argc, char **argv)	{	int i,ret=0;	int cflags=0,version=0,date=0,options=0,platform=0,dir=0;	apps_startup();	if (bio_err == NULL)		if ((bio_err=BIO_new(BIO_s_file())) != NULL)			BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);	if (argc == 1) version=1;	for (i=1; i<argc; i++)		{		if (strcmp(argv[i],"-v") == 0)			version=1;			else if (strcmp(argv[i],"-b") == 0)			date=1;		else if (strcmp(argv[i],"-f") == 0)			cflags=1;		else if (strcmp(argv[i],"-o") == 0)			options=1;		else if (strcmp(argv[i],"-p") == 0)			platform=1;		else if (strcmp(argv[i],"-d") == 0)			dir=1;		else if (strcmp(argv[i],"-a") == 0)			date=version=cflags=options=platform=dir=1;		else			{			BIO_printf(bio_err,"usage:version -[avbofp]\n");			ret=1;			goto end;			}		}	if (version) printf("%s\n",SSLeay_version(SSLEAY_VERSION));	if (date)    printf("%s\n",SSLeay_version(SSLEAY_BUILT_ON));	if (platform) printf("%s\n",SSLeay_version(SSLEAY_PLATFORM));	if (options) 		{		printf("options:  ");		printf("%s ",BN_options());#ifndef OPENSSL_NO_MD2		printf("%s ",MD2_options());#endif#ifndef OPENSSL_NO_RC4		printf("%s ",RC4_options());#endif#ifndef OPENSSL_NO_DES		printf("%s ",DES_options());#endif#ifndef OPENSSL_NO_IDEA		printf("%s ",idea_options());#endif#ifndef OPENSSL_NO_BF		printf("%s ",BF_options());#endif		printf("\n");		}	if (cflags)  printf("%s\n",SSLeay_version(SSLEAY_CFLAGS));	if (dir)  printf("%s\n",SSLeay_version(SSLEAY_DIR));end:	apps_shutdown();	EXIT(ret);	}