#include <sys/types.h>
#include <sys/stat.h>
+
+#include <assert.h>
+#include <ctype.h>
+#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
-#include <ctype.h>
-#include <errno.h>
-#include <assert.h>
#include <unistd.h>
+#include "apps.h"
+
+#include <openssl/bn.h>
#include <openssl/err.h>
-#include <openssl/x509.h>
-#include <openssl/x509v3.h>
#include <openssl/pem.h>
#include <openssl/pkcs12.h>
-#include <openssl/ui.h>
#include <openssl/safestack.h>
+#include <openssl/ui.h>
+#include <openssl/x509.h>
+#include <openssl/x509v3.h>
+
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
+
#ifndef OPENSSL_NO_RSA
#include <openssl/rsa.h>
#endif
-#include <openssl/bn.h>
-
-#include "apps.h"
-
typedef struct {
const char *name;
#ifndef HEADER_APPS_H
#define HEADER_APPS_H
-#include <openssl/e_os2.h>
+#include <signal.h>
+
#include <openssl/bio.h>
-#include <openssl/x509.h>
-#include <openssl/lhash.h>
#include <openssl/conf.h>
+#include <openssl/e_os2.h>
+#include <openssl/lhash.h>
+#include <openssl/ossl_typ.h>
#include <openssl/txt_db.h>
+#include <openssl/x509.h>
+
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
+
#ifndef OPENSSL_NO_OCSP
#include <openssl/ocsp.h>
#endif
-#include <openssl/ossl_typ.h>
extern CONF *config;
extern char *default_config_file;
extern BIO *bio_err;
-#include <signal.h>
-
typedef struct args_st {
char **data;
int count;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
+
#include <openssl/err.h>
#include <openssl/evp.h>
-#include <openssl/x509.h>
#include <openssl/pem.h>
+#include <openssl/x509.h>
/* -inform arg - input format - default PEM (DER or PEM)
* -in arg - input file - default stdin
* -oid file - extra oid description file
*/
-
int asn1parse_main(int, char **);
static int do_generate(BIO * bio, char *genstr, char *genconf, BUF_MEM * buf);
/* The PPKI stuff has been donated by Jeff Barber <jeffb@issl.atl.hp.com> */
+#include <sys/types.h>
+
+#ifndef W_OK
+#include <sys/file.h>
+#endif
+
+#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
#include <unistd.h>
-#include <sys/types.h>
-#include <openssl/conf.h>
+
+#include "apps.h"
+
#include <openssl/bio.h>
-#include <openssl/err.h>
#include <openssl/bn.h>
-#include <openssl/txt_db.h>
+#include <openssl/conf.h>
+#include <openssl/err.h>
#include <openssl/evp.h>
-#include <openssl/x509.h>
-#include <openssl/x509v3.h>
#include <openssl/objects.h>
#include <openssl/ocsp.h>
#include <openssl/pem.h>
-
-#ifndef W_OK
-#include <sys/file.h>
-#endif
-
-#include "apps.h"
+#include <openssl/txt_db.h>
+#include <openssl/x509.h>
+#include <openssl/x509v3.h>
#ifndef W_OK
#define F_OK 0
#define R_OK 4
#endif
-
#define BASE_SECTION "ca"
#define ENV_DEFAULT_CA "default_ca"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
+
#include <openssl/err.h>
#include <openssl/ssl.h>
-
static const char *ciphers_usage[] = {
"usage: ciphers args\n",
" -v - verbose mode, a textual listing of the SSL/TLS ciphers in OpenSSL\n",
#include <stdio.h>
#include <string.h>
+
#include "apps.h"
#ifndef OPENSSL_NO_CMS
+#include <openssl/cms.h>
#include <openssl/crypto.h>
-#include <openssl/pem.h>
#include <openssl/err.h>
+#include <openssl/pem.h>
#include <openssl/x509_vfy.h>
#include <openssl/x509v3.h>
-#include <openssl/cms.h>
static int save_certs(char *signerfile, STACK_OF(X509) * signers);
static int cms_cb(int ok, X509_STORE_CTX * ctx);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
#include <openssl/err.h>
+#include <openssl/pem.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
-#include <openssl/pem.h>
-
#define POSTFIX ".rvk"
* and donated 'to the cause' along with lots and lots of other fixes to
* the library. */
+#include <sys/types.h>
+
#include <stdio.h>
#include <string.h>
-#include <sys/types.h>
+
#include "apps.h"
+
#include <openssl/err.h>
#include <openssl/evp.h>
-#include <openssl/x509.h>
-#include <openssl/pkcs7.h>
-#include <openssl/pem.h>
#include <openssl/objects.h>
+#include <openssl/pem.h>
+#include <openssl/pkcs7.h>
+#include <openssl/x509.h>
static int add_certs_from_file(STACK_OF(X509) * stack, char *certfile);
*/
#include <stdio.h>
-#include <string.h>
#include <stdlib.h>
+#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/evp.h>
+#include <openssl/hmac.h>
#include <openssl/objects.h>
-#include <openssl/x509.h>
#include <openssl/pem.h>
-#include <openssl/hmac.h>
+#include <openssl/x509.h>
#define BUFSIZE 1024*8
-
int
do_fp(BIO * out, unsigned char *buf, BIO * bp, int sep, int binout,
EVP_PKEY * key, unsigned char *sigin, int siglen,
* [including the GNU Public Licence.]
*/
-#include <openssl/opensslconf.h>/* for OPENSSL_NO_DH */
+#include <openssl/opensslconf.h> /* for OPENSSL_NO_DH */
+
#ifndef OPENSSL_NO_DH
+
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
#include <string.h>
+#include <time.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
-#include <openssl/err.h>
#include <openssl/bn.h>
+#include <openssl/err.h>
#include <openssl/dh.h>
-#include <openssl/x509.h>
#include <openssl/pem.h>
-
+#include <openssl/x509.h>
/* -inform arg - input format - default PEM (DER or PEM)
* -outform arg - output format - default PEM
*
*/
-#include <openssl/opensslconf.h>/* for OPENSSL_NO_DH */
+#include <openssl/opensslconf.h> /* for OPENSSL_NO_DH */
+
#ifndef OPENSSL_NO_DH
+
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
#include <string.h>
+#include <time.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
-#include <openssl/err.h>
#include <openssl/bn.h>
+#include <openssl/err.h>
#include <openssl/dh.h>
-#include <openssl/x509.h>
#include <openssl/pem.h>
+#include <openssl/x509.h>
#ifndef OPENSSL_NO_DSA
#include <openssl/dsa.h>
#endif
-
#define DEFBITS 512
/* -inform arg - input format - default PEM (DER or PEM)
* [including the GNU Public Licence.]
*/
-#include <openssl/opensslconf.h>/* for OPENSSL_NO_DSA */
+#include <openssl/opensslconf.h> /* for OPENSSL_NO_DSA */
+
#ifndef OPENSSL_NO_DSA
+
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <time.h>
+#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
-#include <openssl/err.h>
+#include <openssl/bn.h>
#include <openssl/dsa.h>
+#include <openssl/err.h>
#include <openssl/evp.h>
-#include <openssl/x509.h>
#include <openssl/pem.h>
-#include <openssl/bn.h>
-
+#include <openssl/x509.h>
/* -inform arg - input format - default PEM (one of DER, NET or PEM)
* -outform arg - output format - default PEM
* [including the GNU Public Licence.]
*/
-#include <openssl/opensslconf.h>/* for OPENSSL_NO_DSA */
+#include <openssl/opensslconf.h> /* for OPENSSL_NO_DSA */
+
/* Until the key-gen callbacks are modified to use newer prototypes, we allow
* deprecated functions for openssl-internal code */
#ifdef OPENSSL_NO_DEPRECATED
#endif
#ifndef OPENSSL_NO_DSA
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
#include <string.h>
+#include <time.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
-#include <openssl/err.h>
#include <openssl/bn.h>
+#include <openssl/err.h>
#include <openssl/dsa.h>
-#include <openssl/x509.h>
#include <openssl/pem.h>
-
+#include <openssl/x509.h>
/* -inform arg - input format - default PEM (DER or PEM)
* -outform arg - output format - default PEM
*/
#include <openssl/opensslconf.h>
+
#ifndef OPENSSL_NO_EC
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
-
/* -inform arg - input format - default PEM (one of DER, NET or PEM)
* -outform arg - output format - default PEM
* -in arg - input file - default stdin
*/
#include <openssl/opensslconf.h>
+
#ifndef OPENSSL_NO_EC
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
#include <string.h>
+#include <time.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
-#include <openssl/err.h>
#include <openssl/bn.h>
#include <openssl/ec.h>
-#include <openssl/x509.h>
+#include <openssl/err.h>
#include <openssl/pem.h>
-
+#include <openssl/x509.h>
/* -inform arg - input format - default PEM (DER or PEM)
* -outform arg - output format - default PEM
* [including the GNU Public Licence.]
*/
+#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
+#include <openssl/comp.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/objects.h>
-#include <openssl/x509.h>
-#include <openssl/rand.h>
#include <openssl/pem.h>
-#include <openssl/comp.h>
-#include <ctype.h>
+#include <openssl/rand.h>
+#include <openssl/x509.h>
int set_hex(char *in, unsigned char *out, int size);
*
*/
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
-#include <openssl/err.h>
+
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
+#include <openssl/err.h>
#include <openssl/ssl.h>
-
static const char *engine_usage[] = {
"usage: engine opts [engine ...]\n",
" -v[v[v[v]]] - verbose mode, for each engine, list its 'control commands'\n",
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
-#include <openssl/lhash.h>
#include <openssl/err.h>
+#include <openssl/lhash.h>
#include <openssl/ssl.h>
-
int errstr_main(int, char **);
int
*/
#include <openssl/opensslconf.h>
+
/* Until the key-gen callbacks are modified to use newer prototypes, we allow
* deprecated functions for openssl-internal code */
#ifdef OPENSSL_NO_DEPRECATED
#endif
#ifndef OPENSSL_NO_DH
-#include <stdio.h>
-#include <string.h>
+
#include <sys/types.h>
#include <sys/stat.h>
+
+#include <stdio.h>
+#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
-#include <openssl/rand.h>
-#include <openssl/err.h>
#include <openssl/bn.h>
#include <openssl/dh.h>
-#include <openssl/x509.h>
+#include <openssl/err.h>
#include <openssl/pem.h>
+#include <openssl/rand.h>
+#include <openssl/x509.h>
#define DEFBITS 512
* [including the GNU Public Licence.]
*/
-#include <openssl/opensslconf.h>/* for OPENSSL_NO_DSA */
+#include <openssl/opensslconf.h> /* for OPENSSL_NO_DSA */
+
#ifndef OPENSSL_NO_DSA
-#include <stdio.h>
-#include <string.h>
+
#include <sys/types.h>
#include <sys/stat.h>
+
+#include <stdio.h>
+#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
-#include <openssl/err.h>
#include <openssl/bn.h>
#include <openssl/dsa.h>
-#include <openssl/x509.h>
+#include <openssl/err.h>
#include <openssl/pem.h>
+#include <openssl/x509.h>
#define DEFBITS 512
* Hudson (tjh@cryptsoft.com).
*
*/
+
#include <stdio.h>
#include <string.h>
+
#include "apps.h"
-#include <openssl/pem.h>
+
#include <openssl/err.h>
#include <openssl/evp.h>
+#include <openssl/pem.h>
+
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
*/
#include <openssl/opensslconf.h>
+
/* Until the key-gen callbacks are modified to use newer prototypes, we allow
* deprecated functions for openssl-internal code */
#ifdef OPENSSL_NO_DEPRECATED
#endif
#ifndef OPENSSL_NO_RSA
-#include <stdio.h>
-#include <string.h>
+
#include <sys/types.h>
#include <sys/stat.h>
+
+#include <stdio.h>
+#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
-#include <openssl/err.h>
#include <openssl/bn.h>
-#include <openssl/rsa.h>
+#include <openssl/err.h>
#include <openssl/evp.h>
-#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/rand.h>
+#include <openssl/rsa.h>
+#include <openssl/x509.h>
#define DEFBITS 2048
#include <stdio.h>
#include <string.h>
+
#include "apps.h"
-#include <openssl/pem.h>
-#include <openssl/err.h>
+#include <openssl/err.h>
+#include <openssl/pem.h>
int nseq_main(int, char **);
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include "apps.h" /* needs to be included before the openssl
- * headers! */
-#include <openssl/e_os2.h>
+
+/* Needs to be included before the openssl headers! */
+#include "apps.h"
+
+#include <openssl/bn.h>
#include <openssl/crypto.h>
+#include <openssl/e_os2.h>
#include <openssl/err.h>
-#include <openssl/ssl.h>
#include <openssl/evp.h>
-#include <openssl/bn.h>
+#include <openssl/ssl.h>
#include <openssl/x509v3.h>
/* Maximum leeway in validity period: default 5 minutes */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
+#include <openssl/conf.h>
#include <openssl/crypto.h>
-#include <openssl/rand.h>
+#include <openssl/err.h>
#include <openssl/lhash.h>
-#include <openssl/conf.h>
-#include <openssl/x509.h>
#include <openssl/pem.h>
+#include <openssl/rand.h>
#include <openssl/ssl.h>
+#include <openssl/x509.h>
+
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
+
#include "progs.h"
#include "s_apps.h"
-#include <openssl/err.h>
static void openssl_startup(void);
static void openssl_shutdown(void);
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/rand.h>
+
#ifndef OPENSSL_NO_DES
#include <openssl/des.h>
#endif
+
#ifndef NO_MD5CRYPT_1
#include <openssl/md5.h>
#endif
-
-
-
static unsigned const char cov_2char[64] = {
/* from crypto/des/fcrypt.c */
0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35,
*/
#include <openssl/opensslconf.h>
+
#if !defined(OPENSSL_NO_DES) && !defined(OPENSSL_NO_SHA1)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
+
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/pkcs12.h>
-
const EVP_CIPHER *enc;
-
#define NOKEYS 0x1
#define NOCERTS 0x2
#define INFO 0x4
#include <stdlib.h>
#include <string.h>
#include <time.h>
+
#include "apps.h"
+
#include <openssl/err.h>
-#include <openssl/objects.h>
#include <openssl/evp.h>
-#include <openssl/x509.h>
-#include <openssl/pkcs7.h>
+#include <openssl/objects.h>
#include <openssl/pem.h>
-
+#include <openssl/pkcs7.h>
+#include <openssl/x509.h>
/* -inform arg - input format - default PEM (DER or PEM)
* -outform arg - output format - default PEM
* Hudson (tjh@cryptsoft.com).
*
*/
+
#include <stdio.h>
#include <string.h>
+
#include "apps.h"
-#include <openssl/pem.h>
+
#include <openssl/err.h>
#include <openssl/evp.h>
+#include <openssl/pem.h>
#include <openssl/pkcs12.h>
-
int pkcs8_main(int, char **);
int
* Hudson (tjh@cryptsoft.com).
*
*/
+
#include <stdio.h>
#include <string.h>
+
#include "apps.h"
-#include <openssl/pem.h>
+
#include <openssl/err.h>
#include <openssl/evp.h>
-
+#include <openssl/pem.h>
int pkey_main(int, char **);
* Hudson (tjh@cryptsoft.com).
*
*/
+
#include <stdio.h>
#include <string.h>
+
#include "apps.h"
-#include <openssl/pem.h>
+
#include <openssl/err.h>
#include <openssl/evp.h>
-
+#include <openssl/pem.h>
int pkeyparam_main(int, char **);
*
*/
+#include <string.h>
#include "apps.h"
-#include <string.h>
+
#include <openssl/err.h>
-#include <openssl/pem.h>
#include <openssl/evp.h>
+#include <openssl/pem.h>
#define KEY_PRIVKEY 1
#define KEY_PUBKEY 2
static void usage(void);
-
-
static EVP_PKEY_CTX *init_ctx(int *pkeysize,
char *keyfile, int keyform, int key_type,
char *passargin, int pkey_op, ENGINE * e);
#include <string.h>
#include "apps.h"
-#include <openssl/bn.h>
-
+#include <openssl/bn.h>
int prime_main(int, char **);
*
*/
-#include "apps.h"
-
#include <ctype.h>
#include <stdio.h>
#include <string.h>
+#include "apps.h"
+
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/rand.h>
-
/* -out file - write to file
* -rand file:file - PRNG seed files
* -base64 - base64 encode output
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
#include <string.h>
+#include <time.h>
+
#include "apps.h"
+
+#include <openssl/asn1.h>
#include <openssl/bio.h>
-#include <openssl/evp.h>
+#include <openssl/bn.h>
#include <openssl/conf.h>
#include <openssl/err.h>
-#include <openssl/asn1.h>
-#include <openssl/x509.h>
-#include <openssl/x509v3.h>
+#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/pem.h>
-#include <openssl/bn.h>
-#ifndef OPENSSL_NO_RSA
-#include <openssl/rsa.h>
-#endif
+#include <openssl/x509.h>
+#include <openssl/x509v3.h>
+
#ifndef OPENSSL_NO_DSA
#include <openssl/dsa.h>
#endif
+#ifndef OPENSSL_NO_RSA
+#include <openssl/rsa.h>
+#endif
+
#define SECTION "req"
#define BITS "default_bits"
*/
#include <openssl/opensslconf.h>
+
#ifndef OPENSSL_NO_RSA
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
+#include <openssl/bn.h>
#include <openssl/err.h>
-#include <openssl/rsa.h>
#include <openssl/evp.h>
-#include <openssl/x509.h>
#include <openssl/pem.h>
-#include <openssl/bn.h>
-
+#include <openssl/rsa.h>
+#include <openssl/x509.h>
/* -inform arg - input format - default PEM (one of DER, NET or PEM)
* -outform arg - output format - default PEM
*/
#include <openssl/opensslconf.h>
+
#ifndef OPENSSL_NO_RSA
-#include "apps.h"
#include <string.h>
+
+#include "apps.h"
+
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
static void usage(void);
-
-
int rsautl_main(int argc, char **);
int
*
*/
+#include <sys/socket.h>
+
+#include <netinet/in.h>
+
+#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <netdb.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
#include "apps.h"
+
#include <openssl/err.h>
#include <openssl/rand.h>
-#include <openssl/x509.h>
#include <openssl/ssl.h>
+#include <openssl/x509.h>
+
#include "s_apps.h"
#define COOKIE_SECRET_LENGTH 16
#include <sys/types.h>
#include <sys/ioctl.h>
+#include <sys/socket.h>
#include <netinet/in.h>
+
#include <assert.h>
#include <ctype.h>
+#include <limits.h>
+#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
-#include <limits.h>
#include <string.h>
#include <unistd.h>
-#include <openssl/e_os2.h>
-#include <netdb.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
#include "apps.h"
-#include <openssl/x509.h>
-#include <openssl/ssl.h>
+
+#include <openssl/bn.h>
+#include <openssl/e_os2.h>
#include <openssl/err.h>
+#include <openssl/ocsp.h>
#include <openssl/pem.h>
#include <openssl/rand.h>
-#include <openssl/ocsp.h>
-#include <openssl/bn.h>
+#include <openssl/ssl.h>
+#include <openssl/x509.h>
+
#include "s_apps.h"
#include "timeouts.h"
-
-
/*#define SSL_HOST_NAME "www.netscape.com" */
/*#define SSL_HOST_NAME "193.118.187.102" */
#define SSL_HOST_NAME "localhost"
#undef OPENSSL_NO_DEPRECATED
#endif
+#include <sys/types.h>
#include <sys/ioctl.h>
+#include <sys/socket.h>
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/socket.h>
-#include <openssl/e_os2.h>
-
-#include <sys/types.h>
+#include "apps.h"
-#include <openssl/lhash.h>
#include <openssl/bn.h>
-#include "apps.h"
+#include <openssl/e_os2.h>
#include <openssl/err.h>
+#include <openssl/lhash.h>
+#include <openssl/ocsp.h>
#include <openssl/pem.h>
-#include <openssl/x509.h>
-#include <openssl/ssl.h>
#include <openssl/rand.h>
-#include <openssl/ocsp.h>
+#include <openssl/ssl.h>
+#include <openssl/x509.h>
+
#ifndef OPENSSL_NO_DH
#include <openssl/dh.h>
#endif
+
#ifndef OPENSSL_NO_RSA
#include <openssl/rsa.h>
#endif
+
#include "s_apps.h"
#include "timeouts.h"
-
#ifndef OPENSSL_NO_RSA
static RSA *tmp_rsa_cb(SSL * s, int is_export, int keylength);
#endif
* [including the GNU Public Licence.]
*/
+#include <sys/socket.h>
+
+#include <netinet/in.h>
+
+#include <errno.h>
+#include <netdb.h>
+#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <errno.h>
-#include <signal.h>
-#include <netdb.h>
#include <unistd.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-
-#include <openssl/e_os2.h>
#include "apps.h"
-#include "s_apps.h"
-#include <openssl/ssl.h>
+#include <openssl/e_os2.h>
+#include <openssl/ssl.h>
+#include "s_apps.h"
static int ssl_sock_init(void);
static int init_server(int *sock, int port, int type);
#define SOCKET_PROTOCOL IPPROTO_TCP
-
static int
ssl_sock_init(void)
{
Written and donated by Larry Streepy <streepy@healthcare.com>
-----------------------------------------*/
+#include <sys/socket.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/socket.h>
+#include <unistd.h>
#include "apps.h"
-#include <openssl/x509.h>
-#include <openssl/ssl.h>
-#include <openssl/pem.h>
-#include "s_apps.h"
+
#include <openssl/err.h>
-#include <unistd.h>
+#include <openssl/pem.h>
+#include <openssl/ssl.h>
+#include <openssl/x509.h>
+#include "s_apps.h"
#define SSL_CONNECT_NAME "localhost:4433"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
#include <openssl/err.h>
-#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
-
+#include <openssl/x509.h>
static const char *sess_id_usage[] = {
"usage: sess_id args\n",
#include <stdio.h>
#include <string.h>
+
#include "apps.h"
+
#include <openssl/crypto.h>
-#include <openssl/pem.h>
#include <openssl/err.h>
+#include <openssl/pem.h>
#include <openssl/x509_vfy.h>
#include <openssl/x509v3.h>
#include <string.h>
#include <unistd.h>
+#include "apps.h"
+
#include <openssl/bn.h>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/evp.h>
-#include <openssl/objects.h>
#include <openssl/modes.h>
+#include <openssl/objects.h>
#include <openssl/rand.h>
#include <openssl/x509.h>
#include <openssl/whrlpool.h>
#endif
-#include "apps.h"
-
#ifndef OPENSSL_NO_DSA
#include "./testdsa.h"
#endif
* Hudson (tjh@cryptsoft.com).
*
*/
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
#include <openssl/conf.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/lhash.h>
-#include <openssl/x509.h>
#include <openssl/pem.h>
-
+#include <openssl/x509.h>
/* -in arg - input file - default stdin
* -out arg - output file - default stdout
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
+#include <openssl/bn.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/rand.h>
#include <openssl/ts.h>
-#include <openssl/bn.h>
-
/* Length of the nonce of the request in bits (must be a multiple of 8). */
#define NONCE_LENGTH 64
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
+
#include <openssl/bio.h>
#include <openssl/err.h>
+#include <openssl/pem.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
-#include <openssl/pem.h>
-
static int cb(int ok, X509_STORE_CTX * ctx);
static int check(X509_STORE * ctx, char *file, STACK_OF(X509) * uchain,
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
-#include <openssl/evp.h>
-#include <openssl/crypto.h>
+
#include <openssl/bn.h>
-#ifndef OPENSSL_NO_RC4
-#include <openssl/rc4.h>
+#include <openssl/crypto.h>
+#include <openssl/evp.h>
+
+#ifndef OPENSSL_NO_BF
+#include <openssl/blowfish.h>
#endif
+
#ifndef OPENSSL_NO_DES
#include <openssl/des.h>
#endif
+
#ifndef OPENSSL_NO_IDEA
#include <openssl/idea.h>
#endif
-#ifndef OPENSSL_NO_BF
-#include <openssl/blowfish.h>
-#endif
+#ifndef OPENSSL_NO_RC4
+#include <openssl/rc4.h>
+#endif
int version_main(int, char **);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "apps.h"
-#include <openssl/bio.h>
+
#include <openssl/asn1.h>
-#include <openssl/err.h>
+#include <openssl/bio.h>
#include <openssl/bn.h>
+#include <openssl/err.h>
#include <openssl/evp.h>
-#include <openssl/x509.h>
-#include <openssl/x509v3.h>
#include <openssl/objects.h>
#include <openssl/pem.h>
-#ifndef OPENSSL_NO_RSA
-#include <openssl/rsa.h>
-#endif
+#include <openssl/x509.h>
+#include <openssl/x509v3.h>
+
#ifndef OPENSSL_NO_DSA
#include <openssl/dsa.h>
#endif
+#ifndef OPENSSL_NO_RSA
+#include <openssl/rsa.h>
+#endif
#define POSTFIX ".srl"
#define DEF_DAYS 30