summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkus <>2002-09-14 11:18:04 +0000
committermarkus <>2002-09-14 11:18:04 +0000
commit3a3a489a756f2852d798376f20cc0d4ab609c866 (patch)
tree2a4277fc9b7635e82c33faa3bae9f9380bc639e8
parent82d2611e1bb67683df1bb201dcc2afbff4c76980 (diff)
downloadopenbsd-3a3a489a756f2852d798376f20cc0d4ab609c866.tar.gz
openbsd-3a3a489a756f2852d798376f20cc0d4ab609c866.tar.bz2
openbsd-3a3a489a756f2852d798376f20cc0d4ab609c866.zip
merge with openssl-0.9.7-stable-SNAP-20020911,
new minor for libcrypto (_X509_REQ_print_ex) tested by miod@, pb@
-rw-r--r--src/lib/libcrypto/Makefile.ssl2
-rw-r--r--src/lib/libcrypto/asn1/a_bitstr.c6
-rw-r--r--src/lib/libcrypto/asn1/a_strex.c4
-rw-r--r--src/lib/libcrypto/asn1/t_req.c260
-rw-r--r--src/lib/libcrypto/asn1/tasn_dec.c6
-rw-r--r--src/lib/libcrypto/bio/b_print.c2
-rw-r--r--src/lib/libcrypto/bn/bn.h2
-rw-r--r--src/lib/libcrypto/crypto-lib.com10
-rw-r--r--src/lib/libcrypto/des/Makefile.ssl3
-rw-r--r--src/lib/libcrypto/des/des_ver.h4
-rw-r--r--src/lib/libcrypto/des/ecb_enc.c1
-rw-r--r--src/lib/libcrypto/des/set_key.c2
-rw-r--r--src/lib/libcrypto/doc/DH_set_method.pod102
-rw-r--r--src/lib/libcrypto/doc/DSA_dup_DH.pod2
-rw-r--r--src/lib/libcrypto/doc/DSA_new.pod3
-rw-r--r--src/lib/libcrypto/doc/DSA_set_method.pod91
-rw-r--r--src/lib/libcrypto/doc/DSA_size.pod2
-rw-r--r--src/lib/libcrypto/doc/EVP_SealInit.pod2
-rw-r--r--src/lib/libcrypto/doc/RAND_set_rand_method.pod44
-rw-r--r--src/lib/libcrypto/doc/RSA_new.pod6
-rw-r--r--src/lib/libcrypto/doc/RSA_set_method.pod127
-rw-r--r--src/lib/libcrypto/doc/RSA_size.pod2
-rw-r--r--src/lib/libcrypto/doc/dh.pod31
-rw-r--r--src/lib/libcrypto/doc/dsa.pod38
-rw-r--r--src/lib/libcrypto/doc/evp.pod10
-rw-r--r--src/lib/libcrypto/doc/rsa.pod31
-rw-r--r--src/lib/libcrypto/engine/hw_4758_cca.c2
-rw-r--r--src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c10
-rw-r--r--src/lib/libcrypto/engine/hw_ubsec.c8
-rw-r--r--src/lib/libcrypto/evp/evp_locl.h12
-rw-r--r--src/lib/libcrypto/krb5/Makefile.ssl10
-rw-r--r--src/lib/libcrypto/mem.c3
-rw-r--r--src/lib/libcrypto/objects/obj_dat.c2
-rw-r--r--src/lib/libcrypto/ocsp/Makefile.ssl10
-rw-r--r--src/lib/libcrypto/pem/pem_lib.c7
-rw-r--r--src/lib/libcrypto/pkcs12/p12_asn.c6
-rw-r--r--src/lib/libcrypto/pkcs7/pk7_lib.c7
-rw-r--r--src/lib/libcrypto/ripemd/rmdtest.c2
-rw-r--r--src/lib/libcrypto/util/libeay.num1
-rw-r--r--src/lib/libcrypto/x509/x509.h2
-rw-r--r--src/lib/libssl/crypto/shlib_version2
-rw-r--r--src/lib/libssl/doc/openssl.txt2
-rw-r--r--src/lib/libssl/s3_clnt.c12
-rw-r--r--src/lib/libssl/s3_srvr.c6
-rw-r--r--src/lib/libssl/src/CHANGES39
-rw-r--r--src/lib/libssl/src/Configure16
-rw-r--r--src/lib/libssl/src/FAQ14
-rw-r--r--src/lib/libssl/src/Makefile.org24
-rw-r--r--src/lib/libssl/src/NEWS8
-rw-r--r--src/lib/libssl/src/README2
-rw-r--r--src/lib/libssl/src/STATUS9
-rw-r--r--src/lib/libssl/src/TABLE313
-rw-r--r--src/lib/libssl/src/apps/Makefile.ssl951
-rw-r--r--src/lib/libssl/src/apps/apps.c39
-rw-r--r--src/lib/libssl/src/apps/apps.h4
-rw-r--r--src/lib/libssl/src/apps/ca.c9
-rw-r--r--src/lib/libssl/src/apps/dgst.c4
-rw-r--r--src/lib/libssl/src/apps/makeapps.com2
-rw-r--r--src/lib/libssl/src/apps/ocsp.c8
-rw-r--r--src/lib/libssl/src/apps/pkcs12.c12
-rw-r--r--src/lib/libssl/src/apps/pkcs8.c3
-rw-r--r--src/lib/libssl/src/apps/req.c16
-rw-r--r--src/lib/libssl/src/apps/rsa.c4
-rw-r--r--src/lib/libssl/src/apps/rsautl.c4
-rw-r--r--src/lib/libssl/src/apps/s_server.c14
-rw-r--r--src/lib/libssl/src/apps/smime.c2
-rw-r--r--src/lib/libssl/src/apps/spkac.c2
-rw-r--r--src/lib/libssl/src/apps/x509.c13
-rw-r--r--src/lib/libssl/src/config3
-rw-r--r--src/lib/libssl/src/crypto/Makefile.ssl2
-rw-r--r--src/lib/libssl/src/crypto/asn1/a_bitstr.c6
-rw-r--r--src/lib/libssl/src/crypto/asn1/a_strex.c4
-rw-r--r--src/lib/libssl/src/crypto/asn1/t_req.c260
-rw-r--r--src/lib/libssl/src/crypto/asn1/tasn_dec.c6
-rw-r--r--src/lib/libssl/src/crypto/bio/b_print.c2
-rw-r--r--src/lib/libssl/src/crypto/bn/bn.h2
-rw-r--r--src/lib/libssl/src/crypto/crypto-lib.com10
-rw-r--r--src/lib/libssl/src/crypto/des/Makefile.ssl3
-rw-r--r--src/lib/libssl/src/crypto/des/des_ver.h4
-rw-r--r--src/lib/libssl/src/crypto/des/ecb_enc.c1
-rw-r--r--src/lib/libssl/src/crypto/des/set_key.c2
-rw-r--r--src/lib/libssl/src/crypto/engine/hw_4758_cca.c2
-rw-r--r--src/lib/libssl/src/crypto/engine/hw_openbsd_dev_crypto.c10
-rw-r--r--src/lib/libssl/src/crypto/engine/hw_ubsec.c8
-rw-r--r--src/lib/libssl/src/crypto/evp/evp_locl.h12
-rw-r--r--src/lib/libssl/src/crypto/krb5/Makefile.ssl10
-rw-r--r--src/lib/libssl/src/crypto/mem.c3
-rw-r--r--src/lib/libssl/src/crypto/objects/obj_dat.c2
-rw-r--r--src/lib/libssl/src/crypto/ocsp/Makefile.ssl10
-rw-r--r--src/lib/libssl/src/crypto/pem/pem_lib.c7
-rw-r--r--src/lib/libssl/src/crypto/pkcs12/p12_asn.c6
-rw-r--r--src/lib/libssl/src/crypto/pkcs7/pk7_lib.c7
-rw-r--r--src/lib/libssl/src/crypto/ripemd/rmdtest.c2
-rw-r--r--src/lib/libssl/src/crypto/x509/x509.h2
-rw-r--r--src/lib/libssl/src/doc/crypto/DH_set_method.pod102
-rw-r--r--src/lib/libssl/src/doc/crypto/DSA_dup_DH.pod2
-rw-r--r--src/lib/libssl/src/doc/crypto/DSA_new.pod3
-rw-r--r--src/lib/libssl/src/doc/crypto/DSA_set_method.pod91
-rw-r--r--src/lib/libssl/src/doc/crypto/DSA_size.pod2
-rw-r--r--src/lib/libssl/src/doc/crypto/EVP_SealInit.pod2
-rw-r--r--src/lib/libssl/src/doc/crypto/RAND_set_rand_method.pod44
-rw-r--r--src/lib/libssl/src/doc/crypto/RSA_new.pod6
-rw-r--r--src/lib/libssl/src/doc/crypto/RSA_set_method.pod127
-rw-r--r--src/lib/libssl/src/doc/crypto/RSA_size.pod2
-rw-r--r--src/lib/libssl/src/doc/crypto/dh.pod31
-rw-r--r--src/lib/libssl/src/doc/crypto/dsa.pod38
-rw-r--r--src/lib/libssl/src/doc/crypto/evp.pod10
-rw-r--r--src/lib/libssl/src/doc/crypto/rand.pod24
-rw-r--r--src/lib/libssl/src/doc/crypto/rsa.pod31
-rw-r--r--src/lib/libssl/src/doc/openssl.txt2
-rw-r--r--src/lib/libssl/src/doc/ssl/SSL_CTX_set_msg_callback.pod2
-rw-r--r--src/lib/libssl/src/ssl/Makefile.ssl2
-rw-r--r--src/lib/libssl/src/ssl/s2_clnt.c41
-rw-r--r--src/lib/libssl/src/ssl/s2_enc.c3
-rw-r--r--src/lib/libssl/src/ssl/s2_lib.c40
-rw-r--r--src/lib/libssl/src/ssl/s2_srvr.c61
-rw-r--r--src/lib/libssl/src/ssl/s3_clnt.c12
-rw-r--r--src/lib/libssl/src/ssl/s3_srvr.c6
-rw-r--r--src/lib/libssl/src/ssl/ssl-lib.com2
-rw-r--r--src/lib/libssl/src/ssl/ssl.h6
-rw-r--r--src/lib/libssl/src/ssl/ssl_asn1.c7
-rw-r--r--src/lib/libssl/src/ssl/ssl_err.c6
-rw-r--r--src/lib/libssl/src/ssl/ssl_lib.c24
-rw-r--r--src/lib/libssl/src/ssl/ssl_locl.h5
-rw-r--r--src/lib/libssl/src/ssl/ssl_sess.c7
-rw-r--r--src/lib/libssl/src/ssl/ssltest.c12
-rw-r--r--src/lib/libssl/src/test/Makefile.ssl2
-rw-r--r--src/lib/libssl/src/test/maketests.com2
-rw-r--r--src/lib/libssl/src/test/tcrl.com4
-rw-r--r--src/lib/libssl/src/test/testenc.com4
-rw-r--r--src/lib/libssl/src/test/tpkcs7.com4
-rw-r--r--src/lib/libssl/src/test/tpkcs7d.com4
-rw-r--r--src/lib/libssl/src/test/treq.com4
-rw-r--r--src/lib/libssl/src/test/trsa.com4
-rw-r--r--src/lib/libssl/src/test/tsid.com4
-rw-r--r--src/lib/libssl/src/test/tx509.com4
-rw-r--r--src/lib/libssl/src/util/libeay.num1
-rw-r--r--src/lib/libssl/ssl.h6
-rw-r--r--src/lib/libssl/ssl_asn1.c7
-rw-r--r--src/lib/libssl/ssl_err.c6
-rw-r--r--src/lib/libssl/ssl_lib.c24
-rw-r--r--src/lib/libssl/ssl_locl.h5
-rw-r--r--src/lib/libssl/ssl_sess.c7
-rw-r--r--src/lib/libssl/test/Makefile.ssl2
-rw-r--r--src/lib/libssl/test/maketests.com2
-rw-r--r--src/lib/libssl/test/tcrl.com4
-rw-r--r--src/lib/libssl/test/testenc.com4
-rw-r--r--src/lib/libssl/test/tpkcs7.com4
-rw-r--r--src/lib/libssl/test/tpkcs7d.com4
-rw-r--r--src/lib/libssl/test/treq.com4
-rw-r--r--src/lib/libssl/test/trsa.com4
-rw-r--r--src/lib/libssl/test/tsid.com4
-rw-r--r--src/lib/libssl/test/tx509.com4
153 files changed, 2465 insertions, 1211 deletions
diff --git a/src/lib/libcrypto/Makefile.ssl b/src/lib/libcrypto/Makefile.ssl
index 2489b614c6..db8baf385e 100644
--- a/src/lib/libcrypto/Makefile.ssl
+++ b/src/lib/libcrypto/Makefile.ssl
@@ -98,7 +98,7 @@ lib: $(LIBOBJ)
98 98
99shared: 99shared:
100 if [ -n "$(SHARED_LIBS)" ]; then \ 100 if [ -n "$(SHARED_LIBS)" ]; then \
101 (cd ..; make $(SHARED_LIB)); \ 101 (cd ..; $(MAKE) $(SHARED_LIB)); \
102 fi 102 fi
103 103
104libs: 104libs:
diff --git a/src/lib/libcrypto/asn1/a_bitstr.c b/src/lib/libcrypto/asn1/a_bitstr.c
index ed0bdfbde1..e0265f69d2 100644
--- a/src/lib/libcrypto/asn1/a_bitstr.c
+++ b/src/lib/libcrypto/asn1/a_bitstr.c
@@ -120,6 +120,12 @@ ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, unsigned char **pp,
120 unsigned char *p,*s; 120 unsigned char *p,*s;
121 int i; 121 int i;
122 122
123 if (len < 1)
124 {
125 i=ASN1_R_STRING_TOO_SHORT;
126 goto err;
127 }
128
123 if ((a == NULL) || ((*a) == NULL)) 129 if ((a == NULL) || ((*a) == NULL))
124 { 130 {
125 if ((ret=M_ASN1_BIT_STRING_new()) == NULL) return(NULL); 131 if ((ret=M_ASN1_BIT_STRING_new()) == NULL) return(NULL);
diff --git a/src/lib/libcrypto/asn1/a_strex.c b/src/lib/libcrypto/asn1/a_strex.c
index 8dab29dca1..7ddb7662f1 100644
--- a/src/lib/libcrypto/asn1/a_strex.c
+++ b/src/lib/libcrypto/asn1/a_strex.c
@@ -544,7 +544,7 @@ int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in)
544{ 544{
545 ASN1_STRING stmp, *str = &stmp; 545 ASN1_STRING stmp, *str = &stmp;
546 int mbflag, type, ret; 546 int mbflag, type, ret;
547 if(!*out || !in) return -1; 547 if(!in) return -1;
548 type = in->type; 548 type = in->type;
549 if((type < 0) || (type > 30)) return -1; 549 if((type < 0) || (type > 30)) return -1;
550 mbflag = tag2nbyte[type]; 550 mbflag = tag2nbyte[type];
@@ -553,6 +553,6 @@ int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in)
553 stmp.data = NULL; 553 stmp.data = NULL;
554 ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING); 554 ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING);
555 if(ret < 0) return ret; 555 if(ret < 0) return ret;
556 if(out) *out = stmp.data; 556 *out = stmp.data;
557 return stmp.length; 557 return stmp.length;
558} 558}
diff --git a/src/lib/libcrypto/asn1/t_req.c b/src/lib/libcrypto/asn1/t_req.c
index 848c29a2dd..739f272ecf 100644
--- a/src/lib/libcrypto/asn1/t_req.c
+++ b/src/lib/libcrypto/asn1/t_req.c
@@ -82,7 +82,7 @@ int X509_REQ_print_fp(FILE *fp, X509_REQ *x)
82 } 82 }
83#endif 83#endif
84 84
85int X509_REQ_print(BIO *bp, X509_REQ *x) 85int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, unsigned long cflag)
86 { 86 {
87 unsigned long l; 87 unsigned long l;
88 int i; 88 int i;
@@ -92,143 +92,185 @@ int X509_REQ_print(BIO *bp, X509_REQ *x)
92 STACK_OF(X509_ATTRIBUTE) *sk; 92 STACK_OF(X509_ATTRIBUTE) *sk;
93 STACK_OF(X509_EXTENSION) *exts; 93 STACK_OF(X509_EXTENSION) *exts;
94 char str[128]; 94 char str[128];
95 char mlch = ' ';
96 int nmindent = 0;
97
98 if((nmflags & XN_FLAG_SEP_MASK) == XN_FLAG_SEP_MULTILINE) {
99 mlch = '\n';
100 nmindent = 12;
101 }
102
103 if(nmflags == X509_FLAG_COMPAT)
104 nmindent = 16;
105
95 106
96 ri=x->req_info; 107 ri=x->req_info;
97 sprintf(str,"Certificate Request:\n"); 108 if(!(cflag & X509_FLAG_NO_HEADER))
98 if (BIO_puts(bp,str) <= 0) goto err;
99 sprintf(str,"%4sData:\n","");
100 if (BIO_puts(bp,str) <= 0) goto err;
101
102 neg=(ri->version->type == V_ASN1_NEG_INTEGER)?"-":"";
103 l=0;
104 for (i=0; i<ri->version->length; i++)
105 { l<<=8; l+=ri->version->data[i]; }
106 sprintf(str,"%8sVersion: %s%lu (%s0x%lx)\n","",neg,l,neg,l);
107 if (BIO_puts(bp,str) <= 0) goto err;
108 sprintf(str,"%8sSubject: ","");
109 if (BIO_puts(bp,str) <= 0) goto err;
110
111 X509_NAME_print(bp,ri->subject,16);
112 sprintf(str,"\n%8sSubject Public Key Info:\n","");
113 if (BIO_puts(bp,str) <= 0) goto err;
114 i=OBJ_obj2nid(ri->pubkey->algor->algorithm);
115 sprintf(str,"%12sPublic Key Algorithm: %s\n","",
116 (i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i));
117 if (BIO_puts(bp,str) <= 0) goto err;
118
119 pkey=X509_REQ_get_pubkey(x);
120#ifndef OPENSSL_NO_RSA
121 if (pkey != NULL && pkey->type == EVP_PKEY_RSA)
122 { 109 {
123 BIO_printf(bp,"%12sRSA Public Key: (%d bit)\n","", 110 if (BIO_write(bp,"Certificate Request:\n",21) <= 0) goto err;
124 BN_num_bits(pkey->pkey.rsa->n)); 111 if (BIO_write(bp," Data:\n",10) <= 0) goto err;
125 RSA_print(bp,pkey->pkey.rsa,16);
126 } 112 }
127 else 113 if(!(cflag & X509_FLAG_NO_VERSION))
128#endif
129#ifndef OPENSSL_NO_DSA
130 if (pkey != NULL && pkey->type == EVP_PKEY_DSA)
131 { 114 {
132 BIO_printf(bp,"%12sDSA Public Key:\n",""); 115 neg=(ri->version->type == V_ASN1_NEG_INTEGER)?"-":"";
133 DSA_print(bp,pkey->pkey.dsa,16); 116 l=0;
117 for (i=0; i<ri->version->length; i++)
118 { l<<=8; l+=ri->version->data[i]; }
119 sprintf(str,"%8sVersion: %s%lu (%s0x%lx)\n","",neg,l,neg,l);
120 if (BIO_puts(bp,str) <= 0) goto err;
134 } 121 }
135 else 122 if(!(cflag & X509_FLAG_NO_SUBJECT))
136#endif 123 {
137 BIO_printf(bp,"%12sUnknown Public Key:\n",""); 124 if (BIO_printf(bp," Subject:%c",mlch) <= 0) goto err;
125 if (X509_NAME_print_ex(bp,ri->subject,nmindent, nmflags) < 0) goto err;
126 if (BIO_write(bp,"\n",1) <= 0) goto err;
127 }
128 if(!(cflag & X509_FLAG_NO_PUBKEY))
129 {
130 if (BIO_write(bp," Subject Public Key Info:\n",33) <= 0)
131 goto err;
132 if (BIO_printf(bp,"%12sPublic Key Algorithm: ","") <= 0)
133 goto err;
134 if (i2a_ASN1_OBJECT(bp, ri->pubkey->algor->algorithm) <= 0)
135 goto err;
136 if (BIO_puts(bp, "\n") <= 0)
137 goto err;
138 138
139 if (pkey != NULL) 139 pkey=X509_REQ_get_pubkey(x);
140 EVP_PKEY_free(pkey); 140 if (pkey == NULL)
141 {
142 BIO_printf(bp,"%12sUnable to load Public Key\n","");
143 ERR_print_errors(bp);
144 }
145 else
146#ifndef OPENSSL_NO_RSA
147 if (pkey->type == EVP_PKEY_RSA)
148 {
149 BIO_printf(bp,"%12sRSA Public Key: (%d bit)\n","",
150 BN_num_bits(pkey->pkey.rsa->n));
151 RSA_print(bp,pkey->pkey.rsa,16);
152 }
153 else
154#endif
155#ifndef OPENSSL_NO_DSA
156 if (pkey->type == EVP_PKEY_DSA)
157 {
158 BIO_printf(bp,"%12sDSA Public Key:\n","");
159 DSA_print(bp,pkey->pkey.dsa,16);
160 }
161 else
162#endif
163 BIO_printf(bp,"%12sUnknown Public Key:\n","");
141 164
142 /* may not be */ 165 EVP_PKEY_free(pkey);
143 sprintf(str,"%8sAttributes:\n",""); 166 }
144 if (BIO_puts(bp,str) <= 0) goto err;
145 167
146 sk=x->req_info->attributes; 168 if(!(cflag & X509_FLAG_NO_ATTRIBUTES))
147 if (sk_X509_ATTRIBUTE_num(sk) == 0)
148 { 169 {
149 sprintf(str,"%12sa0:00\n",""); 170 /* may not be */
171 sprintf(str,"%8sAttributes:\n","");
150 if (BIO_puts(bp,str) <= 0) goto err; 172 if (BIO_puts(bp,str) <= 0) goto err;
151 } 173
152 else 174 sk=x->req_info->attributes;
153 { 175 if (sk_X509_ATTRIBUTE_num(sk) == 0)
154 for (i=0; i<sk_X509_ATTRIBUTE_num(sk); i++)
155 { 176 {
156 ASN1_TYPE *at; 177 sprintf(str,"%12sa0:00\n","");
157 X509_ATTRIBUTE *a;
158 ASN1_BIT_STRING *bs=NULL;
159 ASN1_TYPE *t;
160 int j,type=0,count=1,ii=0;
161
162 a=sk_X509_ATTRIBUTE_value(sk,i);
163 if(X509_REQ_extension_nid(OBJ_obj2nid(a->object)))
164 continue;
165 sprintf(str,"%12s","");
166 if (BIO_puts(bp,str) <= 0) goto err; 178 if (BIO_puts(bp,str) <= 0) goto err;
167 if ((j=i2a_ASN1_OBJECT(bp,a->object)) > 0) 179 }
180 else
168 { 181 {
169 if (a->single) 182 for (i=0; i<sk_X509_ATTRIBUTE_num(sk); i++)
170 { 183 {
171 t=a->value.single; 184 ASN1_TYPE *at;
172 type=t->type; 185 X509_ATTRIBUTE *a;
173 bs=t->value.bit_string; 186 ASN1_BIT_STRING *bs=NULL;
174 } 187 ASN1_TYPE *t;
175 else 188 int j,type=0,count=1,ii=0;
189
190 a=sk_X509_ATTRIBUTE_value(sk,i);
191 if(X509_REQ_extension_nid(OBJ_obj2nid(a->object)))
192 continue;
193 sprintf(str,"%12s","");
194 if (BIO_puts(bp,str) <= 0) goto err;
195 if ((j=i2a_ASN1_OBJECT(bp,a->object)) > 0)
176 { 196 {
177 ii=0; 197 if (a->single)
178 count=sk_ASN1_TYPE_num(a->value.set); 198 {
199 t=a->value.single;
200 type=t->type;
201 bs=t->value.bit_string;
202 }
203 else
204 {
205 ii=0;
206 count=sk_ASN1_TYPE_num(a->value.set);
179get_next: 207get_next:
180 at=sk_ASN1_TYPE_value(a->value.set,ii); 208 at=sk_ASN1_TYPE_value(a->value.set,ii);
181 type=at->type; 209 type=at->type;
182 bs=at->value.asn1_string; 210 bs=at->value.asn1_string;
211 }
212 }
213 for (j=25-j; j>0; j--)
214 if (BIO_write(bp," ",1) != 1) goto err;
215 if (BIO_puts(bp,":") <= 0) goto err;
216 if ( (type == V_ASN1_PRINTABLESTRING) ||
217 (type == V_ASN1_T61STRING) ||
218 (type == V_ASN1_IA5STRING))
219 {
220 if (BIO_write(bp,(char *)bs->data,bs->length)
221 != bs->length)
222 goto err;
223 BIO_puts(bp,"\n");
224 }
225 else
226 {
227 BIO_puts(bp,"unable to print attribute\n");
228 }
229 if (++ii < count) goto get_next;
183 } 230 }
184 } 231 }
185 for (j=25-j; j>0; j--) 232 }
186 if (BIO_write(bp," ",1) != 1) goto err; 233 if(!(cflag & X509_FLAG_NO_ATTRIBUTES))
187 if (BIO_puts(bp,":") <= 0) goto err; 234 {
188 if ( (type == V_ASN1_PRINTABLESTRING) || 235 exts = X509_REQ_get_extensions(x);
189 (type == V_ASN1_T61STRING) || 236 if(exts)
190 (type == V_ASN1_IA5STRING)) 237 {
238 BIO_printf(bp,"%8sRequested Extensions:\n","");
239 for (i=0; i<sk_X509_EXTENSION_num(exts); i++)
191 { 240 {
192 if (BIO_write(bp,(char *)bs->data,bs->length) 241 ASN1_OBJECT *obj;
193 != bs->length) 242 X509_EXTENSION *ex;
243 int j;
244 ex=sk_X509_EXTENSION_value(exts, i);
245 if (BIO_printf(bp,"%12s","") <= 0) goto err;
246 obj=X509_EXTENSION_get_object(ex);
247 i2a_ASN1_OBJECT(bp,obj);
248 j=X509_EXTENSION_get_critical(ex);
249 if (BIO_printf(bp,": %s\n",j?"critical":"","") <= 0)
194 goto err; 250 goto err;
195 BIO_puts(bp,"\n"); 251 if(!X509V3_EXT_print(bp, ex, 0, 16))
196 } 252 {
197 else 253 BIO_printf(bp, "%16s", "");
198 { 254 M_ASN1_OCTET_STRING_print(bp,ex->value);
199 BIO_puts(bp,"unable to print attribute\n"); 255 }
256 if (BIO_write(bp,"\n",1) <= 0) goto err;
200 } 257 }
201 if (++ii < count) goto get_next; 258 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free);
202 } 259 }
203 } 260 }
204 261
205 exts = X509_REQ_get_extensions(x); 262 if(!(cflag & X509_FLAG_NO_SIGDUMP))
206 if(exts) { 263 {
207 BIO_printf(bp,"%8sRequested Extensions:\n",""); 264 if(!X509_signature_print(bp, x->sig_alg, x->signature)) goto err;
208 for (i=0; i<sk_X509_EXTENSION_num(exts); i++) {
209 ASN1_OBJECT *obj;
210 X509_EXTENSION *ex;
211 int j;
212 ex=sk_X509_EXTENSION_value(exts, i);
213 if (BIO_printf(bp,"%12s","") <= 0) goto err;
214 obj=X509_EXTENSION_get_object(ex);
215 i2a_ASN1_OBJECT(bp,obj);
216 j=X509_EXTENSION_get_critical(ex);
217 if (BIO_printf(bp,": %s\n",j?"critical":"","") <= 0)
218 goto err;
219 if(!X509V3_EXT_print(bp, ex, 0, 16)) {
220 BIO_printf(bp, "%16s", "");
221 M_ASN1_OCTET_STRING_print(bp,ex->value);
222 }
223 if (BIO_write(bp,"\n",1) <= 0) goto err;
224 } 265 }
225 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free);
226 }
227
228 if(!X509_signature_print(bp, x->sig_alg, x->signature)) goto err;
229 266
230 return(1); 267 return(1);
231err: 268err:
232 X509err(X509_F_X509_REQ_PRINT,ERR_R_BUF_LIB); 269 X509err(X509_F_X509_REQ_PRINT,ERR_R_BUF_LIB);
233 return(0); 270 return(0);
234 } 271 }
272
273int X509_REQ_print(BIO *bp, X509_REQ *x)
274 {
275 return X509_REQ_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
276 }
diff --git a/src/lib/libcrypto/asn1/tasn_dec.c b/src/lib/libcrypto/asn1/tasn_dec.c
index 0fc1f421e2..f87c08793a 100644
--- a/src/lib/libcrypto/asn1/tasn_dec.c
+++ b/src/lib/libcrypto/asn1/tasn_dec.c
@@ -913,10 +913,10 @@ static int asn1_check_tlen(long *olen, int *otag, unsigned char *oclass, char *i
913 ctx->ptag = ptag; 913 ctx->ptag = ptag;
914 ctx->hdrlen = p - q; 914 ctx->hdrlen = p - q;
915 ctx->valid = 1; 915 ctx->valid = 1;
916 /* If definite length, length + header can't exceed total 916 /* If definite length, and no error, length +
917 * amount of data available. 917 * header can't exceed total amount of data available.
918 */ 918 */
919 if(!(i & 1) && ((plen + ctx->hdrlen) > len)) { 919 if(!(i & 0x81) && ((plen + ctx->hdrlen) > len)) {
920 ASN1err(ASN1_F_ASN1_CHECK_TLEN, ASN1_R_TOO_LONG); 920 ASN1err(ASN1_F_ASN1_CHECK_TLEN, ASN1_R_TOO_LONG);
921 asn1_tlc_clear(ctx); 921 asn1_tlc_clear(ctx);
922 return 0; 922 return 0;
diff --git a/src/lib/libcrypto/bio/b_print.c b/src/lib/libcrypto/bio/b_print.c
index 3ce1290772..80c9cb69db 100644
--- a/src/lib/libcrypto/bio/b_print.c
+++ b/src/lib/libcrypto/bio/b_print.c
@@ -109,7 +109,7 @@
109 * o ... (for OpenSSL) 109 * o ... (for OpenSSL)
110 */ 110 */
111 111
112#if HAVE_LONG_DOUBLE 112#ifdef HAVE_LONG_DOUBLE
113#define LDOUBLE long double 113#define LDOUBLE long double
114#else 114#else
115#define LDOUBLE double 115#define LDOUBLE double
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h
index 1eaf879553..b40682f831 100644
--- a/src/lib/libcrypto/bn/bn.h
+++ b/src/lib/libcrypto/bn/bn.h
@@ -430,7 +430,7 @@ int BN_mod_mul_montgomery(BIGNUM *r,const BIGNUM *a,const BIGNUM *b,
430int BN_from_montgomery(BIGNUM *r,const BIGNUM *a, 430int BN_from_montgomery(BIGNUM *r,const BIGNUM *a,
431 BN_MONT_CTX *mont, BN_CTX *ctx); 431 BN_MONT_CTX *mont, BN_CTX *ctx);
432void BN_MONT_CTX_free(BN_MONT_CTX *mont); 432void BN_MONT_CTX_free(BN_MONT_CTX *mont);
433int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *modulus,BN_CTX *ctx); 433int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *mod,BN_CTX *ctx);
434BN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to,BN_MONT_CTX *from); 434BN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to,BN_MONT_CTX *from);
435 435
436BN_BLINDING *BN_BLINDING_new(BIGNUM *A,BIGNUM *Ai,BIGNUM *mod); 436BN_BLINDING *BN_BLINDING_new(BIGNUM *A,BIGNUM *Ai,BIGNUM *mod);
diff --git a/src/lib/libcrypto/crypto-lib.com b/src/lib/libcrypto/crypto-lib.com
index 4847a69a71..dfcff11860 100644
--- a/src/lib/libcrypto/crypto-lib.com
+++ b/src/lib/libcrypto/crypto-lib.com
@@ -231,7 +231,7 @@ $ LIB_RAND = "md_rand,randfile,rand_lib,rand_err,rand_egd,"+ -
231 "rand_vms" 231 "rand_vms"
232$ LIB_ERR = "err,err_all,err_prn" 232$ LIB_ERR = "err,err_all,err_prn"
233$ LIB_OBJECTS = "o_names,obj_dat,obj_lib,obj_err" 233$ LIB_OBJECTS = "o_names,obj_dat,obj_lib,obj_err"
234$ LIB_EVP = "encode,digest,evp_enc,evp_key,"+ - 234$ LIB_EVP = "encode,digest,evp_enc,evp_key,evp_acnf,"+ -
235 "e_des,e_bf,e_idea,e_des3,"+ - 235 "e_des,e_bf,e_idea,e_des3,"+ -
236 "e_rc4,e_aes,names,"+ - 236 "e_rc4,e_aes,names,"+ -
237 "e_xcbc_d,e_rc2,e_cast,e_rc5" 237 "e_xcbc_d,e_rc2,e_cast,e_rc5"
@@ -265,14 +265,14 @@ $ LIB_X509V3 = "v3_bcons,v3_bitst,v3_conf,v3_extku,v3_ia5,v3_lib,"+ -
265 "v3_prn,v3_utl,v3err,v3_genn,v3_alt,v3_skey,v3_akey,v3_pku,"+ - 265 "v3_prn,v3_utl,v3err,v3_genn,v3_alt,v3_skey,v3_akey,v3_pku,"+ -
266 "v3_int,v3_enum,v3_sxnet,v3_cpols,v3_crld,v3_purp,v3_info,"+ - 266 "v3_int,v3_enum,v3_sxnet,v3_cpols,v3_crld,v3_purp,v3_info,"+ -
267 "v3_ocsp,v3_akeya" 267 "v3_ocsp,v3_akeya"
268$ LIB_CONF = "conf_err,conf_lib,conf_api,conf_def,conf_mod,conf_mall" 268$ LIB_CONF = "conf_err,conf_lib,conf_api,conf_def,conf_mod,conf_mall,conf_sap"
269$ LIB_TXT_DB = "txt_db" 269$ LIB_TXT_DB = "txt_db"
270$ LIB_PKCS7 = "pk7_asn1,pk7_lib,pkcs7err,pk7_doit,pk7_smime,pk7_attr,"+ - 270$ LIB_PKCS7 = "pk7_asn1,pk7_lib,pkcs7err,pk7_doit,pk7_smime,pk7_attr,"+ -
271 "pk7_mime" 271 "pk7_mime"
272$ LIB_PKCS12 = "p12_add,p12_asn,p12_attr,p12_crpt,p12_crt,p12_decr,"+ - 272$ LIB_PKCS12 = "p12_add,p12_asn,p12_attr,p12_crpt,p12_crt,p12_decr,"+ -
273 "p12_init,p12_key,p12_kiss,p12_mutl,"+ - 273 "p12_init,p12_key,p12_kiss,p12_mutl,"+ -
274 "p12_utl,p12_npas,pk12err,p12_p8d,p12_p8e" 274 "p12_utl,p12_npas,pk12err,p12_p8d,p12_p8e"
275$ LIB_COMP = "comp_lib,"+ - 275$ LIB_COMP = "comp_lib,comp_err,"+ -
276 "c_rle,c_zlib" 276 "c_rle,c_zlib"
277$ LIB_OCSP = "ocsp_asn,ocsp_ext,ocsp_ht,ocsp_lib,ocsp_cl,"+ - 277$ LIB_OCSP = "ocsp_asn,ocsp_ext,ocsp_ht,ocsp_lib,ocsp_cl,"+ -
278 "ocsp_srv,ocsp_prn,ocsp_vfy,ocsp_err" 278 "ocsp_srv,ocsp_prn,ocsp_vfy,ocsp_err"
@@ -1325,7 +1325,7 @@ $ CC4 = CC - CCDISABLEWARNINGS + CC4DISABLEWARNINGS
1325$! 1325$!
1326$! Show user the result 1326$! Show user the result
1327$! 1327$!
1328$ WRITE SYS$OUTPUT "Main C Compiling Command: ",CC 1328$ WRITE/SYMBOL SYS$OUTPUT "Main C Compiling Command: ",CC
1329$! 1329$!
1330$! Else The User Entered An Invalid Arguement. 1330$! Else The User Entered An Invalid Arguement.
1331$! 1331$!
@@ -1356,7 +1356,7 @@ $ IF ARCH .EQS. "AXP" THEN MACRO = "MACRO/MIGRATION/''DEBUGGER'/''MACRO_OPTIMIZE
1356$! 1356$!
1357$! Show user the result 1357$! Show user the result
1358$! 1358$!
1359$ WRITE SYS$OUTPUT "Main MACRO Compiling Command: ",MACRO 1359$ WRITE/SYMBOL SYS$OUTPUT "Main MACRO Compiling Command: ",MACRO
1360$! 1360$!
1361$! Time to check the contents, and to make sure we get the correct library. 1361$! Time to check the contents, and to make sure we get the correct library.
1362$! 1362$!
diff --git a/src/lib/libcrypto/des/Makefile.ssl b/src/lib/libcrypto/des/Makefile.ssl
index ee5849d8fa..826ffcc58c 100644
--- a/src/lib/libcrypto/des/Makefile.ssl
+++ b/src/lib/libcrypto/des/Makefile.ssl
@@ -207,7 +207,8 @@ ecb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
207ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 207ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
208ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 208ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
209ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 209ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
210ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h ecb_enc.c spr.h 210ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
211ecb_enc.o: spr.h
211ede_cbcm_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 212ede_cbcm_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
212ede_cbcm_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 213ede_cbcm_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
213ede_cbcm_enc.o: ../../include/openssl/opensslconf.h 214ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
diff --git a/src/lib/libcrypto/des/des_ver.h b/src/lib/libcrypto/des/des_ver.h
index 0fa94d5368..ec9cc736e3 100644
--- a/src/lib/libcrypto/des/des_ver.h
+++ b/src/lib/libcrypto/des/des_ver.h
@@ -63,5 +63,5 @@
63# define OPENSSL_EXTERN OPENSSL_EXPORT 63# define OPENSSL_EXTERN OPENSSL_EXPORT
64#endif 64#endif
65 65
66OPENSSL_EXTERN char *DES_version; /* SSLeay version string */ 66OPENSSL_EXTERN const char *DES_version; /* SSLeay version string */
67OPENSSL_EXTERN char *libdes_version; /* old libdes version string */ 67OPENSSL_EXTERN const char *libdes_version; /* old libdes version string */
diff --git a/src/lib/libcrypto/des/ecb_enc.c b/src/lib/libcrypto/des/ecb_enc.c
index 4650f2fa0f..1b70f68806 100644
--- a/src/lib/libcrypto/des/ecb_enc.c
+++ b/src/lib/libcrypto/des/ecb_enc.c
@@ -57,6 +57,7 @@
57 */ 57 */
58 58
59#include "des_locl.h" 59#include "des_locl.h"
60#include "des_ver.h"
60#include "spr.h" 61#include "spr.h"
61#include <openssl/opensslv.h> 62#include <openssl/opensslv.h>
62 63
diff --git a/src/lib/libcrypto/des/set_key.c b/src/lib/libcrypto/des/set_key.c
index 683916e71b..143008ed9c 100644
--- a/src/lib/libcrypto/des/set_key.c
+++ b/src/lib/libcrypto/des/set_key.c
@@ -342,7 +342,7 @@ void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule)
342 register DES_LONG *k; 342 register DES_LONG *k;
343 register int i; 343 register int i;
344 344
345#if OPENBSD_DEV_CRYPTO 345#ifdef OPENBSD_DEV_CRYPTO
346 memcpy(schedule->key,key,sizeof schedule->key); 346 memcpy(schedule->key,key,sizeof schedule->key);
347 schedule->session=NULL; 347 schedule->session=NULL;
348#endif 348#endif
diff --git a/src/lib/libcrypto/doc/DH_set_method.pod b/src/lib/libcrypto/doc/DH_set_method.pod
index d990bf8786..73261fc467 100644
--- a/src/lib/libcrypto/doc/DH_set_method.pod
+++ b/src/lib/libcrypto/doc/DH_set_method.pod
@@ -2,7 +2,7 @@
2 2
3=head1 NAME 3=head1 NAME
4 4
5DH_set_default_openssl_method, DH_get_default_openssl_method, 5DH_set_default_method, DH_get_default_method,
6DH_set_method, DH_new_method, DH_OpenSSL - select DH method 6DH_set_method, DH_new_method, DH_OpenSSL - select DH method
7 7
8=head1 SYNOPSIS 8=head1 SYNOPSIS
@@ -10,45 +10,47 @@ DH_set_method, DH_new_method, DH_OpenSSL - select DH method
10 #include <openssl/dh.h> 10 #include <openssl/dh.h>
11 #include <openssl/engine.h> 11 #include <openssl/engine.h>
12 12
13 void DH_set_default_openssl_method(DH_METHOD *meth); 13 void DH_set_default_method(const DH_METHOD *meth);
14 14
15 DH_METHOD *DH_get_default_openssl_method(void); 15 const DH_METHOD *DH_get_default_method(void);
16 16
17 int DH_set_method(DH *dh, ENGINE *engine); 17 int DH_set_method(DH *dh, const DH_METHOD *meth);
18 18
19 DH *DH_new_method(ENGINE *engine); 19 DH *DH_new_method(ENGINE *engine);
20 20
21 DH_METHOD *DH_OpenSSL(void); 21 const DH_METHOD *DH_OpenSSL(void);
22 22
23=head1 DESCRIPTION 23=head1 DESCRIPTION
24 24
25A B<DH_METHOD> specifies the functions that OpenSSL uses for Diffie-Hellman 25A B<DH_METHOD> specifies the functions that OpenSSL uses for Diffie-Hellman
26operations. By modifying the method, alternative implementations 26operations. By modifying the method, alternative implementations
27such as hardware accelerators may be used. 27such as hardware accelerators may be used. IMPORTANT: See the NOTES section for
28 28important information about how these DH API functions are affected by the use
29Initially, the default is to use the OpenSSL internal implementation. 29of B<ENGINE> API calls.
30DH_OpenSSL() returns a pointer to that method. 30
31 31Initially, the default DH_METHOD is the OpenSSL internal implementation, as
32DH_set_default_openssl_method() makes B<meth> the default method for all DH 32returned by DH_OpenSSL().
33structures created later. B<NB:> This is true only whilst the default engine 33
34for Diffie-Hellman operations remains as "openssl". ENGINEs provide an 34DH_set_default_method() makes B<meth> the default method for all DH
35encapsulation for implementations of one or more algorithms, and all the DH 35structures created later. B<NB>: This is true only whilst no ENGINE has been set
36functions mentioned here operate within the scope of the default 36as a default for DH, so this function is no longer recommended.
37"openssl" engine. 37
38 38DH_get_default_method() returns a pointer to the current default DH_METHOD.
39DH_get_default_openssl_method() returns a pointer to the current default 39However, the meaningfulness of this result is dependant on whether the ENGINE
40method for the "openssl" engine. 40API is being used, so this function is no longer recommended.
41 41
42DH_set_method() selects B<engine> as the engine that will be responsible for 42DH_set_method() selects B<meth> to perform all operations using the key B<dh>.
43all operations using the structure B<dh>. If this function completes successfully, 43This will replace the DH_METHOD used by the DH key and if the previous method
44then the B<dh> structure will have its own functional reference of B<engine>, so 44was supplied by an ENGINE, the handle to that ENGINE will be released during the
45the caller should remember to free their own reference to B<engine> when they are 45change. It is possible to have DH keys that only work with certain DH_METHOD
46finished with it. NB: An ENGINE's DH_METHOD can be retrieved (or set) by 46implementations (eg. from an ENGINE module that supports embedded
47ENGINE_get_DH() or ENGINE_set_DH(). 47hardware-protected keys), and in such cases attempting to change the DH_METHOD
48 48for the key can have unexpected results.
49DH_new_method() allocates and initializes a DH structure so that 49
50B<engine> will be used for the DH operations. If B<engine> is NULL, 50DH_new_method() allocates and initializes a DH structure so that B<engine> will
51the default engine for Diffie-Hellman opertaions is used. 51be used for the DH operations. If B<engine> is NULL, the default ENGINE for DH
52operations is used, and if no default ENGINE is set, the DH_METHOD controlled by
53DH_set_default_method() is used.
52 54
53=head1 THE DH_METHOD STRUCTURE 55=head1 THE DH_METHOD STRUCTURE
54 56
@@ -82,17 +84,28 @@ the default engine for Diffie-Hellman opertaions is used.
82 84
83=head1 RETURN VALUES 85=head1 RETURN VALUES
84 86
85DH_OpenSSL() and DH_get_default_openssl_method() return pointers to the 87DH_OpenSSL() and DH_get_default_method() return pointers to the respective
86respective B<DH_METHOD>s. 88B<DH_METHOD>s.
89
90DH_set_default_method() returns no value.
91
92DH_set_method() returns non-zero if the provided B<meth> was successfully set as
93the method for B<dh> (including unloading the ENGINE handle if the previous
94method was supplied by an ENGINE).
87 95
88DH_set_default_openssl_method() returns no value. 96DH_new_method() returns NULL and sets an error code that can be obtained by
97L<ERR_get_error(3)|ERR_get_error(3)> if the allocation fails. Otherwise it
98returns a pointer to the newly allocated structure.
89 99
90DH_set_method() returns non-zero if the ENGINE associated with B<dh> 100=head1 NOTES
91was successfully changed to B<engine>.
92 101
93DH_new_method() returns NULL and sets an error code that can be 102As of version 0.9.7, DH_METHOD implementations are grouped together with other
94obtained by L<ERR_get_error(3)|ERR_get_error(3)> if the allocation fails. 103algorithmic APIs (eg. RSA_METHOD, EVP_CIPHER, etc) in B<ENGINE> modules. If a
95Otherwise it returns a pointer to the newly allocated structure. 104default ENGINE is specified for DH functionality using an ENGINE API function,
105that will override any DH defaults set using the DH API (ie.
106DH_set_default_method()). For this reason, the ENGINE API is the recommended way
107to control default implementations for use in DH and other cryptographic
108algorithms.
96 109
97=head1 SEE ALSO 110=head1 SEE ALSO
98 111
@@ -103,9 +116,14 @@ L<dh(3)|dh(3)>, L<DH_new(3)|DH_new(3)>
103DH_set_default_method(), DH_get_default_method(), DH_set_method(), 116DH_set_default_method(), DH_get_default_method(), DH_set_method(),
104DH_new_method() and DH_OpenSSL() were added in OpenSSL 0.9.4. 117DH_new_method() and DH_OpenSSL() were added in OpenSSL 0.9.4.
105 118
106DH_set_default_openssl_method() and DH_get_default_openssl_method() 119DH_set_default_openssl_method() and DH_get_default_openssl_method() replaced
107replaced DH_set_default_method() and DH_get_default_method() respectively, 120DH_set_default_method() and DH_get_default_method() respectively, and
108and DH_set_method() and DH_new_method() were altered to use B<ENGINE>s 121DH_set_method() and DH_new_method() were altered to use B<ENGINE>s rather than
109rather than B<DH_METHOD>s during development of OpenSSL 0.9.6. 122B<DH_METHOD>s during development of the engine version of OpenSSL 0.9.6. For
1230.9.7, the handling of defaults in the ENGINE API was restructured so that this
124change was reversed, and behaviour of the other functions resembled more closely
125the previous behaviour. The behaviour of defaults in the ENGINE API now
126transparently overrides the behaviour of defaults in the DH API without
127requiring changing these function prototypes.
110 128
111=cut 129=cut
diff --git a/src/lib/libcrypto/doc/DSA_dup_DH.pod b/src/lib/libcrypto/doc/DSA_dup_DH.pod
index 695f99a13b..7f6f0d1115 100644
--- a/src/lib/libcrypto/doc/DSA_dup_DH.pod
+++ b/src/lib/libcrypto/doc/DSA_dup_DH.pod
@@ -8,7 +8,7 @@ DSA_dup_DH - create a DH structure out of DSA structure
8 8
9 #include <openssl/dsa.h> 9 #include <openssl/dsa.h>
10 10
11 DH * DSA_dup_DH(DSA *r); 11 DH * DSA_dup_DH(const DSA *r);
12 12
13=head1 DESCRIPTION 13=head1 DESCRIPTION
14 14
diff --git a/src/lib/libcrypto/doc/DSA_new.pod b/src/lib/libcrypto/doc/DSA_new.pod
index 301af912dd..48e9b82a09 100644
--- a/src/lib/libcrypto/doc/DSA_new.pod
+++ b/src/lib/libcrypto/doc/DSA_new.pod
@@ -14,7 +14,8 @@ DSA_new, DSA_free - allocate and free DSA objects
14 14
15=head1 DESCRIPTION 15=head1 DESCRIPTION
16 16
17DSA_new() allocates and initializes a B<DSA> structure. 17DSA_new() allocates and initializes a B<DSA> structure. It is equivalent to
18calling DSA_new_method(NULL).
18 19
19DSA_free() frees the B<DSA> structure and its components. The values are 20DSA_free() frees the B<DSA> structure and its components. The values are
20erased before the memory is returned to the system. 21erased before the memory is returned to the system.
diff --git a/src/lib/libcrypto/doc/DSA_set_method.pod b/src/lib/libcrypto/doc/DSA_set_method.pod
index 36a1052d27..bc3cfb1f0a 100644
--- a/src/lib/libcrypto/doc/DSA_set_method.pod
+++ b/src/lib/libcrypto/doc/DSA_set_method.pod
@@ -2,7 +2,7 @@
2 2
3=head1 NAME 3=head1 NAME
4 4
5DSA_set_default_openssl_method, DSA_get_default_openssl_method, 5DSA_set_default_method, DSA_get_default_method,
6DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method 6DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method
7 7
8=head1 SYNOPSIS 8=head1 SYNOPSIS
@@ -10,11 +10,11 @@ DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method
10 #include <openssl/dsa.h> 10 #include <openssl/dsa.h>
11 #include <openssl/engine.h> 11 #include <openssl/engine.h>
12 12
13 void DSA_set_default_openssl_method(DSA_METHOD *meth); 13 void DSA_set_default_method(const DSA_METHOD *meth);
14 14
15 DSA_METHOD *DSA_get_default_openssl_method(void); 15 const DSA_METHOD *DSA_get_default_method(void);
16 16
17 int DSA_set_method(DSA *dsa, ENGINE *engine); 17 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth);
18 18
19 DSA *DSA_new_method(ENGINE *engine); 19 DSA *DSA_new_method(ENGINE *engine);
20 20
@@ -24,26 +24,35 @@ DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method
24 24
25A B<DSA_METHOD> specifies the functions that OpenSSL uses for DSA 25A B<DSA_METHOD> specifies the functions that OpenSSL uses for DSA
26operations. By modifying the method, alternative implementations 26operations. By modifying the method, alternative implementations
27such as hardware accelerators may be used. 27such as hardware accelerators may be used. IMPORTANT: See the NOTES section for
28 28important information about how these DSA API functions are affected by the use
29Initially, the default is to use the OpenSSL internal implementation. 29of B<ENGINE> API calls.
30DSA_OpenSSL() returns a pointer to that method. 30
31 31Initially, the default DSA_METHOD is the OpenSSL internal implementation,
32DSA_set_default_openssl_method() makes B<meth> the default method for 32as returned by DSA_OpenSSL().
33all DSA structures created later. B<NB:> This is true only whilst the 33
34default engine for DSA operations remains as "openssl". ENGINEs 34DSA_set_default_method() makes B<meth> the default method for all DSA
35provide an encapsulation for implementations of one or more algorithms at a 35structures created later. B<NB>: This is true only whilst no ENGINE has
36time, and all the DSA functions mentioned here operate within the scope 36been set as a default for DSA, so this function is no longer recommended.
37of the default "openssl" engine. 37
38 38DSA_get_default_method() returns a pointer to the current default
39DSA_get_default_openssl_method() returns a pointer to the current default 39DSA_METHOD. However, the meaningfulness of this result is dependant on
40method for the "openssl" engine. 40whether the ENGINE API is being used, so this function is no longer
41 41recommended.
42DSA_set_method() selects B<engine> for all operations using the structure B<dsa>. 42
43 43DSA_set_method() selects B<meth> to perform all operations using the key
44DSA_new_method() allocates and initializes a DSA structure so that 44B<rsa>. This will replace the DSA_METHOD used by the DSA key and if the
45B<engine> will be used for the DSA operations. If B<engine> is NULL, 45previous method was supplied by an ENGINE, the handle to that ENGINE will
46the default engine for DSA operations is used. 46be released during the change. It is possible to have DSA keys that only
47work with certain DSA_METHOD implementations (eg. from an ENGINE module
48that supports embedded hardware-protected keys), and in such cases
49attempting to change the DSA_METHOD for the key can have unexpected
50results.
51
52DSA_new_method() allocates and initializes a DSA structure so that B<engine>
53will be used for the DSA operations. If B<engine> is NULL, the default engine
54for DSA operations is used, and if no default ENGINE is set, the DSA_METHOD
55controlled by DSA_set_default_method() is used.
47 56
48=head1 THE DSA_METHOD STRUCTURE 57=head1 THE DSA_METHOD STRUCTURE
49 58
@@ -89,18 +98,29 @@ struct
89 98
90=head1 RETURN VALUES 99=head1 RETURN VALUES
91 100
92DSA_OpenSSL() and DSA_get_default_openssl_method() return pointers to the 101DSA_OpenSSL() and DSA_get_default_method() return pointers to the respective
93respective B<DSA_METHOD>s. 102B<DSA_METHOD>s.
94 103
95DSA_set_default_openssl_method() returns no value. 104DSA_set_default_method() returns no value.
96 105
97DSA_set_method() returns non-zero if the ENGINE associated with B<dsa> 106DSA_set_method() returns non-zero if the provided B<meth> was successfully set as
98was successfully changed to B<engine>. 107the method for B<dsa> (including unloading the ENGINE handle if the previous
108method was supplied by an ENGINE).
99 109
100DSA_new_method() returns NULL and sets an error code that can be 110DSA_new_method() returns NULL and sets an error code that can be
101obtained by L<ERR_get_error(3)|ERR_get_error(3)> if the allocation 111obtained by L<ERR_get_error(3)|ERR_get_error(3)> if the allocation
102fails. Otherwise it returns a pointer to the newly allocated structure. 112fails. Otherwise it returns a pointer to the newly allocated structure.
103 113
114=head1 NOTES
115
116As of version 0.9.7, DSA_METHOD implementations are grouped together with other
117algorithmic APIs (eg. RSA_METHOD, EVP_CIPHER, etc) in B<ENGINE> modules. If a
118default ENGINE is specified for DSA functionality using an ENGINE API function,
119that will override any DSA defaults set using the DSA API (ie.
120DSA_set_default_method()). For this reason, the ENGINE API is the recommended way
121to control default implementations for use in DSA and other cryptographic
122algorithms.
123
104=head1 SEE ALSO 124=head1 SEE ALSO
105 125
106L<dsa(3)|dsa(3)>, L<DSA_new(3)|DSA_new(3)> 126L<dsa(3)|dsa(3)>, L<DSA_new(3)|DSA_new(3)>
@@ -110,9 +130,14 @@ L<dsa(3)|dsa(3)>, L<DSA_new(3)|DSA_new(3)>
110DSA_set_default_method(), DSA_get_default_method(), DSA_set_method(), 130DSA_set_default_method(), DSA_get_default_method(), DSA_set_method(),
111DSA_new_method() and DSA_OpenSSL() were added in OpenSSL 0.9.4. 131DSA_new_method() and DSA_OpenSSL() were added in OpenSSL 0.9.4.
112 132
113DSA_set_default_openssl_method() and DSA_get_default_openssl_method() 133DSA_set_default_openssl_method() and DSA_get_default_openssl_method() replaced
114replaced DSA_set_default_method() and DSA_get_default_method() respectively, 134DSA_set_default_method() and DSA_get_default_method() respectively, and
115and DSA_set_method() and DSA_new_method() were altered to use B<ENGINE>s 135DSA_set_method() and DSA_new_method() were altered to use B<ENGINE>s rather than
116rather than B<DSA_METHOD>s during development of OpenSSL 0.9.6. 136B<DSA_METHOD>s during development of the engine version of OpenSSL 0.9.6. For
1370.9.7, the handling of defaults in the ENGINE API was restructured so that this
138change was reversed, and behaviour of the other functions resembled more closely
139the previous behaviour. The behaviour of defaults in the ENGINE API now
140transparently overrides the behaviour of defaults in the DSA API without
141requiring changing these function prototypes.
117 142
118=cut 143=cut
diff --git a/src/lib/libcrypto/doc/DSA_size.pod b/src/lib/libcrypto/doc/DSA_size.pod
index 23b6320a4d..ba4f650361 100644
--- a/src/lib/libcrypto/doc/DSA_size.pod
+++ b/src/lib/libcrypto/doc/DSA_size.pod
@@ -8,7 +8,7 @@ DSA_size - get DSA signature size
8 8
9 #include <openssl/dsa.h> 9 #include <openssl/dsa.h>
10 10
11 int DSA_size(DSA *dsa); 11 int DSA_size(const DSA *dsa);
12 12
13=head1 DESCRIPTION 13=head1 DESCRIPTION
14 14
diff --git a/src/lib/libcrypto/doc/EVP_SealInit.pod b/src/lib/libcrypto/doc/EVP_SealInit.pod
index 0451eb648a..25ef07f7c7 100644
--- a/src/lib/libcrypto/doc/EVP_SealInit.pod
+++ b/src/lib/libcrypto/doc/EVP_SealInit.pod
@@ -73,4 +73,6 @@ L<EVP_OpenInit(3)|EVP_OpenInit(3)>
73 73
74=head1 HISTORY 74=head1 HISTORY
75 75
76EVP_SealFinal() did not return a value before OpenSSL 0.9.7.
77
76=cut 78=cut
diff --git a/src/lib/libcrypto/doc/RAND_set_rand_method.pod b/src/lib/libcrypto/doc/RAND_set_rand_method.pod
index 464eba416d..c9bb6d9f27 100644
--- a/src/lib/libcrypto/doc/RAND_set_rand_method.pod
+++ b/src/lib/libcrypto/doc/RAND_set_rand_method.pod
@@ -8,22 +8,30 @@ RAND_set_rand_method, RAND_get_rand_method, RAND_SSLeay - select RAND method
8 8
9 #include <openssl/rand.h> 9 #include <openssl/rand.h>
10 10
11 void RAND_set_rand_method(RAND_METHOD *meth); 11 void RAND_set_rand_method(const RAND_METHOD *meth);
12 12
13 RAND_METHOD *RAND_get_rand_method(void); 13 const RAND_METHOD *RAND_get_rand_method(void);
14 14
15 RAND_METHOD *RAND_SSLeay(void); 15 RAND_METHOD *RAND_SSLeay(void);
16 16
17=head1 DESCRIPTION 17=head1 DESCRIPTION
18 18
19A B<RAND_METHOD> specifies the functions that OpenSSL uses for random 19A B<RAND_METHOD> specifies the functions that OpenSSL uses for random number
20number generation. By modifying the method, alternative 20generation. By modifying the method, alternative implementations such as
21implementations such as hardware RNGs may be used. Initially, the 21hardware RNGs may be used. IMPORTANT: See the NOTES section for important
22default is to use the OpenSSL internal implementation. RAND_SSLeay() 22information about how these RAND API functions are affected by the use of
23returns a pointer to that method. 23B<ENGINE> API calls.
24 24
25RAND_set_rand_method() sets the RAND method to B<meth>. 25Initially, the default RAND_METHOD is the OpenSSL internal implementation, as
26RAND_get_rand_method() returns a pointer to the current method. 26returned by RAND_SSLeay().
27
28RAND_set_default_method() makes B<meth> the method for PRNG use. B<NB>: This is
29true only whilst no ENGINE has been set as a default for RAND, so this function
30is no longer recommended.
31
32RAND_get_default_method() returns a pointer to the current RAND_METHOD.
33However, the meaningfulness of this result is dependant on whether the ENGINE
34API is being used, so this function is no longer recommended.
27 35
28=head1 THE RAND_METHOD STRUCTURE 36=head1 THE RAND_METHOD STRUCTURE
29 37
@@ -47,13 +55,29 @@ Each component may be NULL if the function is not implemented.
47RAND_set_rand_method() returns no value. RAND_get_rand_method() and 55RAND_set_rand_method() returns no value. RAND_get_rand_method() and
48RAND_SSLeay() return pointers to the respective methods. 56RAND_SSLeay() return pointers to the respective methods.
49 57
58=head1 NOTES
59
60As of version 0.9.7, RAND_METHOD implementations are grouped together with other
61algorithmic APIs (eg. RSA_METHOD, EVP_CIPHER, etc) in B<ENGINE> modules. If a
62default ENGINE is specified for RAND functionality using an ENGINE API function,
63that will override any RAND defaults set using the RAND API (ie.
64RAND_set_rand_method()). For this reason, the ENGINE API is the recommended way
65to control default implementations for use in RAND and other cryptographic
66algorithms.
67
50=head1 SEE ALSO 68=head1 SEE ALSO
51 69
52L<rand(3)|rand(3)> 70L<rand(3)|rand(3)>, L<engine(3)|engine(3)>
53 71
54=head1 HISTORY 72=head1 HISTORY
55 73
56RAND_set_rand_method(), RAND_get_rand_method() and RAND_SSLeay() are 74RAND_set_rand_method(), RAND_get_rand_method() and RAND_SSLeay() are
57available in all versions of OpenSSL. 75available in all versions of OpenSSL.
58 76
77In the engine version of version 0.9.6, RAND_set_rand_method() was altered to
78take an ENGINE pointer as its argument. As of version 0.9.7, that has been
79reverted as the ENGINE API transparently overrides RAND defaults if used,
80otherwise RAND API functions work as before. RAND_set_rand_engine() was also
81introduced in version 0.9.7.
82
59=cut 83=cut
diff --git a/src/lib/libcrypto/doc/RSA_new.pod b/src/lib/libcrypto/doc/RSA_new.pod
index 299047f31f..3d15b92824 100644
--- a/src/lib/libcrypto/doc/RSA_new.pod
+++ b/src/lib/libcrypto/doc/RSA_new.pod
@@ -14,7 +14,8 @@ RSA_new, RSA_free - allocate and free RSA objects
14 14
15=head1 DESCRIPTION 15=head1 DESCRIPTION
16 16
17RSA_new() allocates and initializes an B<RSA> structure. 17RSA_new() allocates and initializes an B<RSA> structure. It is equivalent to
18calling RSA_new_method(NULL).
18 19
19RSA_free() frees the B<RSA> structure and its components. The key is 20RSA_free() frees the B<RSA> structure and its components. The key is
20erased before the memory is returned to the system. 21erased before the memory is returned to the system.
@@ -30,7 +31,8 @@ RSA_free() returns no value.
30=head1 SEE ALSO 31=head1 SEE ALSO
31 32
32L<ERR_get_error(3)|ERR_get_error(3)>, L<rsa(3)|rsa(3)>, 33L<ERR_get_error(3)|ERR_get_error(3)>, L<rsa(3)|rsa(3)>,
33L<RSA_generate_key(3)|RSA_generate_key(3)> 34L<RSA_generate_key(3)|RSA_generate_key(3)>,
35L<RSA_new_method(3)|RSA_new_method(3)>
34 36
35=head1 HISTORY 37=head1 HISTORY
36 38
diff --git a/src/lib/libcrypto/doc/RSA_set_method.pod b/src/lib/libcrypto/doc/RSA_set_method.pod
index 14917dd35f..0687c2242a 100644
--- a/src/lib/libcrypto/doc/RSA_set_method.pod
+++ b/src/lib/libcrypto/doc/RSA_set_method.pod
@@ -11,52 +11,64 @@ RSA_null_method, RSA_flags, RSA_new_method - select RSA method
11 #include <openssl/rsa.h> 11 #include <openssl/rsa.h>
12 #include <openssl/engine.h> 12 #include <openssl/engine.h>
13 13
14 void RSA_set_default_openssl_method(RSA_METHOD *meth); 14 void RSA_set_default_method(const RSA_METHOD *meth);
15 15
16 RSA_METHOD *RSA_get_default_openssl_method(void); 16 RSA_METHOD *RSA_get_default_method(void);
17 17
18 int RSA_set_method(RSA *rsa, ENGINE *engine); 18 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
19 19
20 RSA_METHOD *RSA_get_method(RSA *rsa); 20 RSA_METHOD *RSA_get_method(const RSA *rsa);
21 21
22 RSA_METHOD *RSA_PKCS1_SSLeay(void); 22 RSA_METHOD *RSA_PKCS1_SSLeay(void);
23 23
24 RSA_METHOD *RSA_null_method(void); 24 RSA_METHOD *RSA_null_method(void);
25 25
26 int RSA_flags(RSA *rsa); 26 int RSA_flags(const RSA *rsa);
27 27
28 RSA *RSA_new_method(ENGINE *engine); 28 RSA *RSA_new_method(ENGINE *engine);
29 29
30=head1 DESCRIPTION 30=head1 DESCRIPTION
31 31
32An B<RSA_METHOD> specifies the functions that OpenSSL uses for RSA 32An B<RSA_METHOD> specifies the functions that OpenSSL uses for RSA
33operations. By modifying the method, alternative implementations 33operations. By modifying the method, alternative implementations such as
34such as hardware accelerators may be used. 34hardware accelerators may be used. IMPORTANT: See the NOTES section for
35 35important information about how these RSA API functions are affected by the
36Initially, the default is to use the OpenSSL internal implementation. 36use of B<ENGINE> API calls.
37RSA_PKCS1_SSLeay() returns a pointer to that method. 37
38 38Initially, the default RSA_METHOD is the OpenSSL internal implementation,
39RSA_set_default_openssl_method() makes B<meth> the default method for all B<RSA> 39as returned by RSA_PKCS1_SSLeay().
40structures created later. B<NB:> This is true only whilst the default engine 40
41for RSA operations remains as "openssl". ENGINEs provide an 41RSA_set_default_method() makes B<meth> the default method for all RSA
42encapsulation for implementations of one or more algorithms at a time, and all 42structures created later. B<NB>: This is true only whilst no ENGINE has
43the RSA functions mentioned here operate within the scope of the default 43been set as a default for RSA, so this function is no longer recommended.
44"openssl" engine. 44
45 45RSA_get_default_method() returns a pointer to the current default
46RSA_get_default_openssl_method() returns a pointer to the current default 46RSA_METHOD. However, the meaningfulness of this result is dependant on
47method for the "openssl" engine. 47whether the ENGINE API is being used, so this function is no longer
48 48recommended.
49RSA_set_method() selects B<engine> for all operations using the key 49
50B<rsa>. 50RSA_set_method() selects B<meth> to perform all operations using the key
51 51B<rsa>. This will replace the RSA_METHOD used by the RSA key and if the
52RSA_get_method() returns a pointer to the RSA_METHOD from the currently 52previous method was supplied by an ENGINE, the handle to that ENGINE will
53selected ENGINE for B<rsa>. 53be released during the change. It is possible to have RSA keys that only
54 54work with certain RSA_METHOD implementations (eg. from an ENGINE module
55RSA_flags() returns the B<flags> that are set for B<rsa>'s current method. 55that supports embedded hardware-protected keys), and in such cases
56attempting to change the RSA_METHOD for the key can have unexpected
57results.
58
59RSA_get_method() returns a pointer to the RSA_METHOD being used by B<rsa>.
60This method may or may not be supplied by an ENGINE implementation, but if
61it is, the return value can only be guaranteed to be valid as long as the
62RSA key itself is valid and does not have its implementation changed by
63RSA_set_method().
64
65RSA_flags() returns the B<flags> that are set for B<rsa>'s current
66RSA_METHOD. See the BUGS section.
56 67
57RSA_new_method() allocates and initializes an RSA structure so that 68RSA_new_method() allocates and initializes an RSA structure so that
58B<engine> will be used for the RSA operations. If B<engine> is NULL, 69B<engine> will be used for the RSA operations. If B<engine> is NULL, the
59the default engine for RSA operations is used. 70default ENGINE for RSA operations is used, and if no default ENGINE is set,
71the RSA_METHOD controlled by RSA_set_default_method() is used.
60 72
61=head1 THE RSA_METHOD STRUCTURE 73=head1 THE RSA_METHOD STRUCTURE
62 74
@@ -121,22 +133,45 @@ the default engine for RSA operations is used.
121 133
122=head1 RETURN VALUES 134=head1 RETURN VALUES
123 135
124RSA_PKCS1_SSLeay(), RSA_PKCS1_null_method(), RSA_get_default_openssl_method() 136RSA_PKCS1_SSLeay(), RSA_PKCS1_null_method(), RSA_get_default_method()
125and RSA_get_method() return pointers to the respective RSA_METHODs. 137and RSA_get_method() return pointers to the respective RSA_METHODs.
126 138
127RSA_set_default_openssl_method() returns no value. 139RSA_set_default_method() returns no value.
128 140
129RSA_set_method() selects B<engine> as the engine that will be responsible for 141RSA_set_method() returns a pointer to the old RSA_METHOD implementation
130all operations using the structure B<rsa>. If this function completes successfully, 142that was replaced. However, this return value should probably be ignored
131then the B<rsa> structure will have its own functional reference of B<engine>, so 143because if it was supplied by an ENGINE, the pointer could be invalidated
132the caller should remember to free their own reference to B<engine> when they are 144at any time if the ENGINE is unloaded (in fact it could be unloaded as a
133finished with it. NB: An ENGINE's RSA_METHOD can be retrieved (or set) by 145result of the RSA_set_method() function releasing its handle to the
134ENGINE_get_RSA() or ENGINE_set_RSA(). 146ENGINE). For this reason, the return type may be replaced with a B<void>
147declaration in a future release.
135 148
136RSA_new_method() returns NULL and sets an error code that can be 149RSA_new_method() returns NULL and sets an error code that can be obtained
137obtained by L<ERR_get_error(3)|ERR_get_error(3)> if the allocation fails. Otherwise 150by L<ERR_get_error(3)|ERR_get_error(3)> if the allocation fails. Otherwise
138it returns a pointer to the newly allocated structure. 151it returns a pointer to the newly allocated structure.
139 152
153=head1 NOTES
154
155As of version 0.9.7, RSA_METHOD implementations are grouped together with
156other algorithmic APIs (eg. DSA_METHOD, EVP_CIPHER, etc) into B<ENGINE>
157modules. If a default ENGINE is specified for RSA functionality using an
158ENGINE API function, that will override any RSA defaults set using the RSA
159API (ie. RSA_set_default_method()). For this reason, the ENGINE API is the
160recommended way to control default implementations for use in RSA and other
161cryptographic algorithms.
162
163=head1 BUGS
164
165The behaviour of RSA_flags() is a mis-feature that is left as-is for now
166to avoid creating compatibility problems. RSA functionality, such as the
167encryption functions, are controlled by the B<flags> value in the RSA key
168itself, not by the B<flags> value in the RSA_METHOD attached to the RSA key
169(which is what this function returns). If the flags element of an RSA key
170is changed, the changes will be honoured by RSA functionality but will not
171be reflected in the return value of the RSA_flags() function - in effect
172RSA_flags() behaves more like an RSA_default_flags() function (which does
173not currently exist).
174
140=head1 SEE ALSO 175=head1 SEE ALSO
141 176
142L<rsa(3)|rsa(3)>, L<RSA_new(3)|RSA_new(3)> 177L<rsa(3)|rsa(3)>, L<RSA_new(3)|RSA_new(3)>
@@ -149,8 +184,14 @@ well as the rsa_sign and rsa_verify components of RSA_METHOD were
149added in OpenSSL 0.9.4. 184added in OpenSSL 0.9.4.
150 185
151RSA_set_default_openssl_method() and RSA_get_default_openssl_method() 186RSA_set_default_openssl_method() and RSA_get_default_openssl_method()
152replaced RSA_set_default_method() and RSA_get_default_method() respectively, 187replaced RSA_set_default_method() and RSA_get_default_method()
153and RSA_set_method() and RSA_new_method() were altered to use B<ENGINE>s 188respectively, and RSA_set_method() and RSA_new_method() were altered to use
154rather than B<RSA_METHOD>s during development of OpenSSL 0.9.6. 189B<ENGINE>s rather than B<RSA_METHOD>s during development of the engine
190version of OpenSSL 0.9.6. For 0.9.7, the handling of defaults in the ENGINE
191API was restructured so that this change was reversed, and behaviour of the
192other functions resembled more closely the previous behaviour. The
193behaviour of defaults in the ENGINE API now transparently overrides the
194behaviour of defaults in the RSA API without requiring changing these
195function prototypes.
155 196
156=cut 197=cut
diff --git a/src/lib/libcrypto/doc/RSA_size.pod b/src/lib/libcrypto/doc/RSA_size.pod
index b36b4d58d5..5b7f835f95 100644
--- a/src/lib/libcrypto/doc/RSA_size.pod
+++ b/src/lib/libcrypto/doc/RSA_size.pod
@@ -8,7 +8,7 @@ RSA_size - get RSA modulus size
8 8
9 #include <openssl/rsa.h> 9 #include <openssl/rsa.h>
10 10
11 int RSA_size(RSA *rsa); 11 int RSA_size(const RSA *rsa);
12 12
13=head1 DESCRIPTION 13=head1 DESCRIPTION
14 14
diff --git a/src/lib/libcrypto/doc/dh.pod b/src/lib/libcrypto/doc/dh.pod
index b4be4be405..c3ccd06207 100644
--- a/src/lib/libcrypto/doc/dh.pod
+++ b/src/lib/libcrypto/doc/dh.pod
@@ -12,20 +12,20 @@ dh - Diffie-Hellman key agreement
12 DH * DH_new(void); 12 DH * DH_new(void);
13 void DH_free(DH *dh); 13 void DH_free(DH *dh);
14 14
15 int DH_size(DH *dh); 15 int DH_size(const DH *dh);
16 16
17 DH * DH_generate_parameters(int prime_len, int generator, 17 DH * DH_generate_parameters(int prime_len, int generator,
18 void (*callback)(int, int, void *), void *cb_arg); 18 void (*callback)(int, int, void *), void *cb_arg);
19 int DH_check(DH *dh, int *codes); 19 int DH_check(const DH *dh, int *codes);
20 20
21 int DH_generate_key(DH *dh); 21 int DH_generate_key(DH *dh);
22 int DH_compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh); 22 int DH_compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh);
23 23
24 void DH_set_default_openssl_method(DH_METHOD *meth); 24 void DH_set_default_method(const DH_METHOD *meth);
25 DH_METHOD *DH_get_default_openssl_method(void); 25 const DH_METHOD *DH_get_default_method(void);
26 int DH_set_method(DH *dh, ENGINE *engine); 26 int DH_set_method(DH *dh, const DH_METHOD *meth);
27 DH *DH_new_method(ENGINE *engine); 27 DH *DH_new_method(ENGINE *engine);
28 DH_METHOD *DH_OpenSSL(void); 28 const DH_METHOD *DH_OpenSSL(void);
29 29
30 int DH_get_ex_new_index(long argl, char *argp, int (*new_func)(), 30 int DH_get_ex_new_index(long argl, char *argp, int (*new_func)(),
31 int (*dup_func)(), void (*free_func)()); 31 int (*dup_func)(), void (*free_func)());
@@ -33,10 +33,10 @@ dh - Diffie-Hellman key agreement
33 char *DH_get_ex_data(DH *d, int idx); 33 char *DH_get_ex_data(DH *d, int idx);
34 34
35 DH * d2i_DHparams(DH **a, unsigned char **pp, long length); 35 DH * d2i_DHparams(DH **a, unsigned char **pp, long length);
36 int i2d_DHparams(DH *a, unsigned char **pp); 36 int i2d_DHparams(const DH *a, unsigned char **pp);
37 37
38 int DHparams_print_fp(FILE *fp, DH *x); 38 int DHparams_print_fp(FILE *fp, const DH *x);
39 int DHparams_print(BIO *bp, DH *x); 39 int DHparams_print(BIO *bp, const DH *x);
40 40
41=head1 DESCRIPTION 41=head1 DESCRIPTION
42 42
@@ -57,11 +57,20 @@ The B<DH> structure consists of several BIGNUM components.
57 }; 57 };
58 DH 58 DH
59 59
60Note that DH keys may use non-standard B<DH_METHOD> implementations,
61either directly or by the use of B<ENGINE> modules. In some cases (eg. an
62ENGINE providing support for hardware-embedded keys), these BIGNUM values
63will not be used by the implementation or may be used for alternative data
64storage. For this reason, applications should generally avoid using DH
65structure elements directly and instead use API functions to query or
66modify keys.
67
60=head1 SEE ALSO 68=head1 SEE ALSO
61 69
62L<dhparam(1)|dhparam(1)>, L<bn(3)|bn(3)>, L<dsa(3)|dsa(3)>, L<err(3)|err(3)>, 70L<dhparam(1)|dhparam(1)>, L<bn(3)|bn(3)>, L<dsa(3)|dsa(3)>, L<err(3)|err(3)>,
63L<rand(3)|rand(3)>, L<rsa(3)|rsa(3)>, L<DH_set_method(3)|DH_set_method(3)>, 71L<rand(3)|rand(3)>, L<rsa(3)|rsa(3)>, L<engine(3)|engine(3)>,
64L<DH_new(3)|DH_new(3)>, L<DH_get_ex_new_index(3)|DH_get_ex_new_index(3)>, 72L<DH_set_method(3)|DH_set_method(3)>, L<DH_new(3)|DH_new(3)>,
73L<DH_get_ex_new_index(3)|DH_get_ex_new_index(3)>,
65L<DH_generate_parameters(3)|DH_generate_parameters(3)>, 74L<DH_generate_parameters(3)|DH_generate_parameters(3)>,
66L<DH_compute_key(3)|DH_compute_key(3)>, L<d2i_DHparams(3)|d2i_DHparams(3)>, 75L<DH_compute_key(3)|DH_compute_key(3)>, L<d2i_DHparams(3)|d2i_DHparams(3)>,
67L<RSA_print(3)|RSA_print(3)> 76L<RSA_print(3)|RSA_print(3)>
diff --git a/src/lib/libcrypto/doc/dsa.pod b/src/lib/libcrypto/doc/dsa.pod
index 573500204b..ae2e5d81f9 100644
--- a/src/lib/libcrypto/doc/dsa.pod
+++ b/src/lib/libcrypto/doc/dsa.pod
@@ -12,13 +12,13 @@ dsa - Digital Signature Algorithm
12 DSA * DSA_new(void); 12 DSA * DSA_new(void);
13 void DSA_free(DSA *dsa); 13 void DSA_free(DSA *dsa);
14 14
15 int DSA_size(DSA *dsa); 15 int DSA_size(const DSA *dsa);
16 16
17 DSA * DSA_generate_parameters(int bits, unsigned char *seed, 17 DSA * DSA_generate_parameters(int bits, unsigned char *seed,
18 int seed_len, int *counter_ret, unsigned long *h_ret, 18 int seed_len, int *counter_ret, unsigned long *h_ret,
19 void (*callback)(int, int, void *), void *cb_arg); 19 void (*callback)(int, int, void *), void *cb_arg);
20 20
21 DH * DSA_dup_DH(DSA *r); 21 DH * DSA_dup_DH(const DSA *r);
22 22
23 int DSA_generate_key(DSA *dsa); 23 int DSA_generate_key(DSA *dsa);
24 24
@@ -27,13 +27,13 @@ dsa - Digital Signature Algorithm
27 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx, BIGNUM **kinvp, 27 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx, BIGNUM **kinvp,
28 BIGNUM **rp); 28 BIGNUM **rp);
29 int DSA_verify(int dummy, const unsigned char *dgst, int len, 29 int DSA_verify(int dummy, const unsigned char *dgst, int len,
30 unsigned char *sigbuf, int siglen, DSA *dsa); 30 const unsigned char *sigbuf, int siglen, DSA *dsa);
31 31
32 void DSA_set_default_openssl_method(DSA_METHOD *meth); 32 void DSA_set_default_method(const DSA_METHOD *meth);
33 DSA_METHOD *DSA_get_default_openssl_method(void); 33 const DSA_METHOD *DSA_get_default_method(void);
34 int DSA_set_method(DSA *dsa, ENGINE *engine); 34 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth);
35 DSA *DSA_new_method(ENGINE *engine); 35 DSA *DSA_new_method(ENGINE *engine);
36 DSA_METHOD *DSA_OpenSSL(void); 36 const DSA_METHOD *DSA_OpenSSL(void);
37 37
38 int DSA_get_ex_new_index(long argl, char *argp, int (*new_func)(), 38 int DSA_get_ex_new_index(long argl, char *argp, int (*new_func)(),
39 int (*dup_func)(), void (*free_func)()); 39 int (*dup_func)(), void (*free_func)());
@@ -42,7 +42,7 @@ dsa - Digital Signature Algorithm
42 42
43 DSA_SIG *DSA_SIG_new(void); 43 DSA_SIG *DSA_SIG_new(void);
44 void DSA_SIG_free(DSA_SIG *a); 44 void DSA_SIG_free(DSA_SIG *a);
45 int i2d_DSA_SIG(DSA_SIG *a, unsigned char **pp); 45 int i2d_DSA_SIG(const DSA_SIG *a, unsigned char **pp);
46 DSA_SIG *d2i_DSA_SIG(DSA_SIG **v, unsigned char **pp, long length); 46 DSA_SIG *d2i_DSA_SIG(DSA_SIG **v, unsigned char **pp, long length);
47 47
48 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); 48 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
@@ -52,14 +52,14 @@ dsa - Digital Signature Algorithm
52 DSA * d2i_DSAPublicKey(DSA **a, unsigned char **pp, long length); 52 DSA * d2i_DSAPublicKey(DSA **a, unsigned char **pp, long length);
53 DSA * d2i_DSAPrivateKey(DSA **a, unsigned char **pp, long length); 53 DSA * d2i_DSAPrivateKey(DSA **a, unsigned char **pp, long length);
54 DSA * d2i_DSAparams(DSA **a, unsigned char **pp, long length); 54 DSA * d2i_DSAparams(DSA **a, unsigned char **pp, long length);
55 int i2d_DSAPublicKey(DSA *a, unsigned char **pp); 55 int i2d_DSAPublicKey(const DSA *a, unsigned char **pp);
56 int i2d_DSAPrivateKey(DSA *a, unsigned char **pp); 56 int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);
57 int i2d_DSAparams(DSA *a,unsigned char **pp); 57 int i2d_DSAparams(const DSA *a,unsigned char **pp);
58 58
59 int DSAparams_print(BIO *bp, DSA *x); 59 int DSAparams_print(BIO *bp, const DSA *x);
60 int DSAparams_print_fp(FILE *fp, DSA *x); 60 int DSAparams_print_fp(FILE *fp, const DSA *x);
61 int DSA_print(BIO *bp, DSA *x, int off); 61 int DSA_print(BIO *bp, const DSA *x, int off);
62 int DSA_print_fp(FILE *bp, DSA *x, int off); 62 int DSA_print_fp(FILE *bp, const DSA *x, int off);
63 63
64=head1 DESCRIPTION 64=head1 DESCRIPTION
65 65
@@ -85,6 +85,14 @@ The B<DSA> structure consists of several BIGNUM components.
85 85
86In public keys, B<priv_key> is NULL. 86In public keys, B<priv_key> is NULL.
87 87
88Note that DSA keys may use non-standard B<DSA_METHOD> implementations,
89either directly or by the use of B<ENGINE> modules. In some cases (eg. an
90ENGINE providing support for hardware-embedded keys), these BIGNUM values
91will not be used by the implementation or may be used for alternative data
92storage. For this reason, applications should generally avoid using DSA
93structure elements directly and instead use API functions to query or
94modify keys.
95
88=head1 CONFORMING TO 96=head1 CONFORMING TO
89 97
90US Federal Information Processing Standard FIPS 186 (Digital Signature 98US Federal Information Processing Standard FIPS 186 (Digital Signature
diff --git a/src/lib/libcrypto/doc/evp.pod b/src/lib/libcrypto/doc/evp.pod
index edf47dbde6..b3ca14314f 100644
--- a/src/lib/libcrypto/doc/evp.pod
+++ b/src/lib/libcrypto/doc/evp.pod
@@ -24,6 +24,13 @@ functions. The B<EVP_Digest>I<...> functions provide message digests.
24 24
25Algorithms are loaded with OpenSSL_add_all_algorithms(3). 25Algorithms are loaded with OpenSSL_add_all_algorithms(3).
26 26
27All the symmetric algorithms (ciphers) and digests can be replaced by ENGINE
28modules providing alternative implementations. If ENGINE implementations of
29ciphers or digests are registered as defaults, then the various EVP functions
30will automatically use those implementations automatically in preference to
31built in software implementations. For more information, consult the engine(3)
32man page.
33
27=head1 SEE ALSO 34=head1 SEE ALSO
28 35
29L<EVP_DigestInit(3)|EVP_DigestInit(3)>, 36L<EVP_DigestInit(3)|EVP_DigestInit(3)>,
@@ -32,6 +39,7 @@ L<EVP_OpenInit(3)|EVP_OpenInit(3)>,
32L<EVP_SealInit(3)|EVP_SealInit(3)>, 39L<EVP_SealInit(3)|EVP_SealInit(3)>,
33L<EVP_SignInit(3)|EVP_SignInit(3)>, 40L<EVP_SignInit(3)|EVP_SignInit(3)>,
34L<EVP_VerifyInit(3)|EVP_VerifyInit(3)>, 41L<EVP_VerifyInit(3)|EVP_VerifyInit(3)>,
35L<OpenSSL_add_all_algorithms(3)|OpenSSL_add_all_algorithms(3)> 42L<OpenSSL_add_all_algorithms(3)|OpenSSL_add_all_algorithms(3)>,
43L<engine(3)|engine(3)>
36 44
37=cut 45=cut
diff --git a/src/lib/libcrypto/doc/rsa.pod b/src/lib/libcrypto/doc/rsa.pod
index 2b93a12b65..45ac53ffc1 100644
--- a/src/lib/libcrypto/doc/rsa.pod
+++ b/src/lib/libcrypto/doc/rsa.pod
@@ -16,13 +16,17 @@ rsa - RSA public key cryptosystem
16 unsigned char *to, RSA *rsa, int padding); 16 unsigned char *to, RSA *rsa, int padding);
17 int RSA_private_decrypt(int flen, unsigned char *from, 17 int RSA_private_decrypt(int flen, unsigned char *from,
18 unsigned char *to, RSA *rsa, int padding); 18 unsigned char *to, RSA *rsa, int padding);
19 int RSA_private_encrypt(int flen, unsigned char *from,
20 unsigned char *to, RSA *rsa,int padding);
21 int RSA_public_decrypt(int flen, unsigned char *from,
22 unsigned char *to, RSA *rsa,int padding);
19 23
20 int RSA_sign(int type, unsigned char *m, unsigned int m_len, 24 int RSA_sign(int type, unsigned char *m, unsigned int m_len,
21 unsigned char *sigret, unsigned int *siglen, RSA *rsa); 25 unsigned char *sigret, unsigned int *siglen, RSA *rsa);
22 int RSA_verify(int type, unsigned char *m, unsigned int m_len, 26 int RSA_verify(int type, unsigned char *m, unsigned int m_len,
23 unsigned char *sigbuf, unsigned int siglen, RSA *rsa); 27 unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
24 28
25 int RSA_size(RSA *rsa); 29 int RSA_size(const RSA *rsa);
26 30
27 RSA *RSA_generate_key(int num, unsigned long e, 31 RSA *RSA_generate_key(int num, unsigned long e,
28 void (*callback)(int,int,void *), void *cb_arg); 32 void (*callback)(int,int,void *), void *cb_arg);
@@ -32,13 +36,13 @@ rsa - RSA public key cryptosystem
32 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx); 36 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
33 void RSA_blinding_off(RSA *rsa); 37 void RSA_blinding_off(RSA *rsa);
34 38
35 void RSA_set_default_openssl_method(RSA_METHOD *meth); 39 void RSA_set_default_method(const RSA_METHOD *meth);
36 RSA_METHOD *RSA_get_default_openssl_method(void); 40 const RSA_METHOD *RSA_get_default_method(void);
37 int RSA_set_method(RSA *rsa, ENGINE *engine); 41 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
38 RSA_METHOD *RSA_get_method(RSA *rsa); 42 const RSA_METHOD *RSA_get_method(const RSA *rsa);
39 RSA_METHOD *RSA_PKCS1_SSLeay(void); 43 RSA_METHOD *RSA_PKCS1_SSLeay(void);
40 RSA_METHOD *RSA_null_method(void); 44 RSA_METHOD *RSA_null_method(void);
41 int RSA_flags(RSA *rsa); 45 int RSA_flags(const RSA *rsa);
42 RSA *RSA_new_method(ENGINE *engine); 46 RSA *RSA_new_method(ENGINE *engine);
43 47
44 int RSA_print(BIO *bp, RSA *x, int offset); 48 int RSA_print(BIO *bp, RSA *x, int offset);
@@ -49,11 +53,6 @@ rsa - RSA public key cryptosystem
49 int RSA_set_ex_data(RSA *r,int idx,char *arg); 53 int RSA_set_ex_data(RSA *r,int idx,char *arg);
50 char *RSA_get_ex_data(RSA *r, int idx); 54 char *RSA_get_ex_data(RSA *r, int idx);
51 55
52 int RSA_private_encrypt(int flen, unsigned char *from,
53 unsigned char *to, RSA *rsa,int padding);
54 int RSA_public_decrypt(int flen, unsigned char *from,
55 unsigned char *to, RSA *rsa,int padding);
56
57 int RSA_sign_ASN1_OCTET_STRING(int dummy, unsigned char *m, 56 int RSA_sign_ASN1_OCTET_STRING(int dummy, unsigned char *m,
58 unsigned int m_len, unsigned char *sigret, unsigned int *siglen, 57 unsigned int m_len, unsigned char *sigret, unsigned int *siglen,
59 RSA *rsa); 58 RSA *rsa);
@@ -90,6 +89,14 @@ B<p>, B<q>, B<dmp1>, B<dmq1> and B<iqmp> may be B<NULL> in private
90keys, but the RSA operations are much faster when these values are 89keys, but the RSA operations are much faster when these values are
91available. 90available.
92 91
92Note that RSA keys may use non-standard B<RSA_METHOD> implementations,
93either directly or by the use of B<ENGINE> modules. In some cases (eg. an
94ENGINE providing support for hardware-embedded keys), these BIGNUM values
95will not be used by the implementation or may be used for alternative data
96storage. For this reason, applications should generally avoid using RSA
97structure elements directly and instead use API functions to query or
98modify keys.
99
93=head1 CONFORMING TO 100=head1 CONFORMING TO
94 101
95SSL, PKCS #1 v2.0 102SSL, PKCS #1 v2.0
@@ -101,7 +108,7 @@ RSA was covered by a US patent which expired in September 2000.
101=head1 SEE ALSO 108=head1 SEE ALSO
102 109
103L<rsa(1)|rsa(1)>, L<bn(3)|bn(3)>, L<dsa(3)|dsa(3)>, L<dh(3)|dh(3)>, 110L<rsa(1)|rsa(1)>, L<bn(3)|bn(3)>, L<dsa(3)|dsa(3)>, L<dh(3)|dh(3)>,
104L<rand(3)|rand(3)>, L<RSA_new(3)|RSA_new(3)>, 111L<rand(3)|rand(3)>, L<engine(3)|engine(3)>, L<RSA_new(3)|RSA_new(3)>,
105L<RSA_public_encrypt(3)|RSA_public_encrypt(3)>, 112L<RSA_public_encrypt(3)|RSA_public_encrypt(3)>,
106L<RSA_sign(3)|RSA_sign(3)>, L<RSA_size(3)|RSA_size(3)>, 113L<RSA_sign(3)|RSA_sign(3)>, L<RSA_size(3)|RSA_size(3)>,
107L<RSA_generate_key(3)|RSA_generate_key(3)>, 114L<RSA_generate_key(3)|RSA_generate_key(3)>,
diff --git a/src/lib/libcrypto/engine/hw_4758_cca.c b/src/lib/libcrypto/engine/hw_4758_cca.c
index f404b1a3b8..6d41b9ed2a 100644
--- a/src/lib/libcrypto/engine/hw_4758_cca.c
+++ b/src/lib/libcrypto/engine/hw_4758_cca.c
@@ -953,7 +953,7 @@ static void cca_ex_free(void *obj, void *item, CRYPTO_EX_DATA *ad, int idx,
953#ifdef ENGINE_DYNAMIC_SUPPORT 953#ifdef ENGINE_DYNAMIC_SUPPORT
954static int bind_fn(ENGINE *e, const char *id) 954static int bind_fn(ENGINE *e, const char *id)
955 { 955 {
956 if(id && (strcmp(id, engine_cswift_id) != 0)) 956 if(id && (strcmp(id, engine_4758_cca_id) != 0))
957 return 0; 957 return 0;
958 if(!bind_helper(e)) 958 if(!bind_helper(e))
959 return 0; 959 return 0;
diff --git a/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c b/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c
index f946389b8a..b8aab545db 100644
--- a/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c
+++ b/src/lib/libcrypto/engine/hw_openbsd_dev_crypto.c
@@ -408,7 +408,7 @@ static int do_digest(int ses,unsigned char *md,const void *data,int len)
408 cryp.op=COP_ENCRYPT;/* required to do the MAC rather than check it */ 408 cryp.op=COP_ENCRYPT;/* required to do the MAC rather than check it */
409 cryp.len=len; 409 cryp.len=len;
410 cryp.src=(caddr_t)data; 410 cryp.src=(caddr_t)data;
411 cryp.dst=(caddr_t)data; // FIXME!!! 411 cryp.dst=(caddr_t)data; /* FIXME!!! */
412 cryp.mac=(caddr_t)md; 412 cryp.mac=(caddr_t)md;
413 413
414 if(ioctl(fd, CIOCCRYPT, &cryp) == -1) 414 if(ioctl(fd, CIOCCRYPT, &cryp) == -1)
@@ -420,7 +420,7 @@ static int do_digest(int ses,unsigned char *md,const void *data,int len)
420 dcopy=OPENSSL_malloc(len); 420 dcopy=OPENSSL_malloc(len);
421 memcpy(dcopy,data,len); 421 memcpy(dcopy,data,len);
422 cryp.src=dcopy; 422 cryp.src=dcopy;
423 cryp.dst=cryp.src; // FIXME!!! 423 cryp.dst=cryp.src; /* FIXME!!! */
424 424
425 if(ioctl(fd, CIOCCRYPT, &cryp) == -1) 425 if(ioctl(fd, CIOCCRYPT, &cryp) == -1)
426 { 426 {
@@ -437,7 +437,7 @@ static int do_digest(int ses,unsigned char *md,const void *data,int len)
437 return 0; 437 return 0;
438 } 438 }
439 } 439 }
440 // printf("done\n"); 440 /* printf("done\n"); */
441 441
442 return 1; 442 return 1;
443 } 443 }
@@ -483,7 +483,7 @@ static int dev_crypto_md5_copy(EVP_MD_CTX *to,const EVP_MD_CTX *from)
483 const MD_DATA *from_md=from->md_data; 483 const MD_DATA *from_md=from->md_data;
484 MD_DATA *to_md=to->md_data; 484 MD_DATA *to_md=to->md_data;
485 485
486 // How do we copy sessions? 486 /* How do we copy sessions? */
487 assert(from->digest->flags&EVP_MD_FLAG_ONESHOT); 487 assert(from->digest->flags&EVP_MD_FLAG_ONESHOT);
488 488
489 to_md->data=OPENSSL_malloc(from_md->len); 489 to_md->data=OPENSSL_malloc(from_md->len);
@@ -530,7 +530,7 @@ static const EVP_MD md5_md=
530 NID_md5, 530 NID_md5,
531 NID_md5WithRSAEncryption, 531 NID_md5WithRSAEncryption,
532 MD5_DIGEST_LENGTH, 532 MD5_DIGEST_LENGTH,
533 EVP_MD_FLAG_ONESHOT, // XXX: set according to device info... 533 EVP_MD_FLAG_ONESHOT, /* XXX: set according to device info... */
534 dev_crypto_md5_init, 534 dev_crypto_md5_init,
535 dev_crypto_md5_update, 535 dev_crypto_md5_update,
536 dev_crypto_md5_final, 536 dev_crypto_md5_final,
diff --git a/src/lib/libcrypto/engine/hw_ubsec.c b/src/lib/libcrypto/engine/hw_ubsec.c
index 63397f868c..ed8401ec16 100644
--- a/src/lib/libcrypto/engine/hw_ubsec.c
+++ b/src/lib/libcrypto/engine/hw_ubsec.c
@@ -93,7 +93,7 @@ static int ubsec_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa);
93static int ubsec_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, 93static int ubsec_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
94 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 94 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
95#ifndef OPENSSL_NO_DSA 95#ifndef OPENSSL_NO_DSA
96#if NOT_USED 96#ifdef NOT_USED
97static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1, 97static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1,
98 BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m, 98 BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m,
99 BN_CTX *ctx, BN_MONT_CTX *in_mont); 99 BN_CTX *ctx, BN_MONT_CTX *in_mont);
@@ -113,7 +113,7 @@ static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh)
113static int ubsec_dh_generate_key(DH *dh); 113static int ubsec_dh_generate_key(DH *dh);
114#endif 114#endif
115 115
116#if NOT_USED 116#ifdef NOT_USED
117static int ubsec_rand_bytes(unsigned char *buf, int num); 117static int ubsec_rand_bytes(unsigned char *buf, int num);
118static int ubsec_rand_status(void); 118static int ubsec_rand_status(void);
119#endif 119#endif
@@ -663,7 +663,7 @@ static int ubsec_mod_exp_crt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
663} 663}
664 664
665#ifndef OPENSSL_NO_DSA 665#ifndef OPENSSL_NO_DSA
666#if NOT_USED 666#ifdef NOT_USED
667static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1, 667static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1,
668 BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m, 668 BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m,
669 BN_CTX *ctx, BN_MONT_CTX *in_mont) 669 BN_CTX *ctx, BN_MONT_CTX *in_mont)
@@ -987,7 +987,7 @@ err:
987 } 987 }
988#endif 988#endif
989 989
990#if NOT_USED 990#ifdef NOT_USED
991static int ubsec_rand_bytes(unsigned char * buf, 991static int ubsec_rand_bytes(unsigned char * buf,
992 int num) 992 int num)
993 { 993 {
diff --git a/src/lib/libcrypto/evp/evp_locl.h b/src/lib/libcrypto/evp/evp_locl.h
index 7b088b4848..4d81a3bf4c 100644
--- a/src/lib/libcrypto/evp/evp_locl.h
+++ b/src/lib/libcrypto/evp/evp_locl.h
@@ -124,17 +124,17 @@ const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
124BLOCK_CIPHER_def1(cname, cbc, cbc, CBC, kstruct, nid, block_size, key_len, \ 124BLOCK_CIPHER_def1(cname, cbc, cbc, CBC, kstruct, nid, block_size, key_len, \
125 iv_len, flags, init_key, cleanup, set_asn1, get_asn1, ctrl) 125 iv_len, flags, init_key, cleanup, set_asn1, get_asn1, ctrl)
126 126
127#define BLOCK_CIPHER_def_cfb(cname, kstruct, nid, block_size, key_len, \ 127#define BLOCK_CIPHER_def_cfb(cname, kstruct, nid, key_len, \
128 iv_len, cbits, flags, init_key, cleanup, \ 128 iv_len, cbits, flags, init_key, cleanup, \
129 set_asn1, get_asn1, ctrl) \ 129 set_asn1, get_asn1, ctrl) \
130BLOCK_CIPHER_def1(cname, cfb##cbits, cfb, CFB, kstruct, nid, block_size, \ 130BLOCK_CIPHER_def1(cname, cfb##cbits, cfb, CFB, kstruct, nid, 1, \
131 key_len, iv_len, flags, init_key, cleanup, set_asn1, \ 131 key_len, iv_len, flags, init_key, cleanup, set_asn1, \
132 get_asn1, ctrl) 132 get_asn1, ctrl)
133 133
134#define BLOCK_CIPHER_def_ofb(cname, kstruct, nid, block_size, key_len, \ 134#define BLOCK_CIPHER_def_ofb(cname, kstruct, nid, key_len, \
135 iv_len, cbits, flags, init_key, cleanup, \ 135 iv_len, cbits, flags, init_key, cleanup, \
136 set_asn1, get_asn1, ctrl) \ 136 set_asn1, get_asn1, ctrl) \
137BLOCK_CIPHER_def1(cname, ofb##cbits, ofb, OFB, kstruct, nid, block_size, \ 137BLOCK_CIPHER_def1(cname, ofb##cbits, ofb, OFB, kstruct, nid, 1, \
138 key_len, iv_len, flags, init_key, cleanup, set_asn1, \ 138 key_len, iv_len, flags, init_key, cleanup, set_asn1, \
139 get_asn1, ctrl) 139 get_asn1, ctrl)
140 140
@@ -149,9 +149,9 @@ BLOCK_CIPHER_def1(cname, ecb, ecb, ECB, kstruct, nid, block_size, key_len, \
149 init_key, cleanup, set_asn1, get_asn1, ctrl) \ 149 init_key, cleanup, set_asn1, get_asn1, ctrl) \
150BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, iv_len, flags, \ 150BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, iv_len, flags, \
151 init_key, cleanup, set_asn1, get_asn1, ctrl) \ 151 init_key, cleanup, set_asn1, get_asn1, ctrl) \
152BLOCK_CIPHER_def_cfb(cname, kstruct, nid, block_size, key_len, iv_len, cbits, \ 152BLOCK_CIPHER_def_cfb(cname, kstruct, nid, key_len, iv_len, cbits, \
153 flags, init_key, cleanup, set_asn1, get_asn1, ctrl) \ 153 flags, init_key, cleanup, set_asn1, get_asn1, ctrl) \
154BLOCK_CIPHER_def_ofb(cname, kstruct, nid, block_size, key_len, iv_len, cbits, \ 154BLOCK_CIPHER_def_ofb(cname, kstruct, nid, key_len, iv_len, cbits, \
155 flags, init_key, cleanup, set_asn1, get_asn1, ctrl) \ 155 flags, init_key, cleanup, set_asn1, get_asn1, ctrl) \
156BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, iv_len, flags, \ 156BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, iv_len, flags, \
157 init_key, cleanup, set_asn1, get_asn1, ctrl) 157 init_key, cleanup, set_asn1, get_asn1, ctrl)
diff --git a/src/lib/libcrypto/krb5/Makefile.ssl b/src/lib/libcrypto/krb5/Makefile.ssl
index caf111be8d..7ad0cbb0bc 100644
--- a/src/lib/libcrypto/krb5/Makefile.ssl
+++ b/src/lib/libcrypto/krb5/Makefile.ssl
@@ -45,13 +45,13 @@ lib: $(LIBOBJ)
45 @touch lib 45 @touch lib
46 46
47files: 47files:
48 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 48 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
49 49
50links: 50links:
51 @sh $(TOP)/util/point.sh Makefile.ssl Makefile 51 @sh $(TOP)/util/point.sh Makefile.ssl Makefile ;
52 $(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 52 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
53 $(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 53 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
54 $(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 54 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
55 55
56install: 56install:
57 @for i in $(EXHEADER) ; \ 57 @for i in $(EXHEADER) ; \
diff --git a/src/lib/libcrypto/mem.c b/src/lib/libcrypto/mem.c
index effec714e8..a7826908e6 100644
--- a/src/lib/libcrypto/mem.c
+++ b/src/lib/libcrypto/mem.c
@@ -303,6 +303,9 @@ void *CRYPTO_realloc(void *str, int num, const char *file, int line)
303 { 303 {
304 void *ret = NULL; 304 void *ret = NULL;
305 305
306 if (str == NULL)
307 return CRYPTO_malloc(num, file, line);
308
306 if (realloc_debug_func != NULL) 309 if (realloc_debug_func != NULL)
307 realloc_debug_func(str, NULL, num, file, line, 0); 310 realloc_debug_func(str, NULL, num, file, line, 0);
308 ret = realloc_ex_func(str,num,file,line); 311 ret = realloc_ex_func(str,num,file,line);
diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c
index 02c3719f04..ce779dc1b5 100644
--- a/src/lib/libcrypto/objects/obj_dat.c
+++ b/src/lib/libcrypto/objects/obj_dat.c
@@ -425,7 +425,7 @@ ASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name)
425 a2d_ASN1_OBJECT(p,i,s,-1); 425 a2d_ASN1_OBJECT(p,i,s,-1);
426 426
427 p=buf; 427 p=buf;
428 op=d2i_ASN1_OBJECT(NULL,&p,i); 428 op=d2i_ASN1_OBJECT(NULL,&p,j);
429 OPENSSL_free(buf); 429 OPENSSL_free(buf);
430 return op; 430 return op;
431 } 431 }
diff --git a/src/lib/libcrypto/ocsp/Makefile.ssl b/src/lib/libcrypto/ocsp/Makefile.ssl
index 44eacbbb13..2be98179ae 100644
--- a/src/lib/libcrypto/ocsp/Makefile.ssl
+++ b/src/lib/libcrypto/ocsp/Makefile.ssl
@@ -47,13 +47,13 @@ lib: $(LIBOBJ)
47 @touch lib 47 @touch lib
48 48
49files: 49files:
50 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 50 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
51 51
52links: 52links:
53 @sh $(TOP)/util/point.sh Makefile.ssl Makefile 53 @sh $(TOP)/util/point.sh Makefile.ssl Makefile ;
54 $(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 54 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
55 $(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 55 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
56 $(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 56 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
57 57
58install: 58install:
59 @for i in $(EXHEADER) ; \ 59 @for i in $(EXHEADER) ; \
diff --git a/src/lib/libcrypto/pem/pem_lib.c b/src/lib/libcrypto/pem/pem_lib.c
index 18b751a91a..a8db6ffbf5 100644
--- a/src/lib/libcrypto/pem/pem_lib.c
+++ b/src/lib/libcrypto/pem/pem_lib.c
@@ -366,8 +366,11 @@ err:
366 memset(iv,0,sizeof(iv)); 366 memset(iv,0,sizeof(iv));
367 memset((char *)&ctx,0,sizeof(ctx)); 367 memset((char *)&ctx,0,sizeof(ctx));
368 memset(buf,0,PEM_BUFSIZE); 368 memset(buf,0,PEM_BUFSIZE);
369 memset(data,0,(unsigned int)dsize); 369 if (data != NULL)
370 OPENSSL_free(data); 370 {
371 memset(data,0,(unsigned int)dsize);
372 OPENSSL_free(data);
373 }
371 return(ret); 374 return(ret);
372 } 375 }
373 376
diff --git a/src/lib/libcrypto/pkcs12/p12_asn.c b/src/lib/libcrypto/pkcs12/p12_asn.c
index c327bdba03..a3739fee1a 100644
--- a/src/lib/libcrypto/pkcs12/p12_asn.c
+++ b/src/lib/libcrypto/pkcs12/p12_asn.c
@@ -83,8 +83,8 @@ ASN1_ADB_TEMPLATE(bag_default) = ASN1_EXP(PKCS12_BAGS, value.other, ASN1_ANY, 0)
83 83
84ASN1_ADB(PKCS12_BAGS) = { 84ASN1_ADB(PKCS12_BAGS) = {
85 ADB_ENTRY(NID_x509Certificate, ASN1_EXP(PKCS12_BAGS, value.x509cert, ASN1_OCTET_STRING, 0)), 85 ADB_ENTRY(NID_x509Certificate, ASN1_EXP(PKCS12_BAGS, value.x509cert, ASN1_OCTET_STRING, 0)),
86 ADB_ENTRY(NID_x509Certificate, ASN1_EXP(PKCS12_BAGS, value.x509crl, ASN1_OCTET_STRING, 0)), 86 ADB_ENTRY(NID_x509Crl, ASN1_EXP(PKCS12_BAGS, value.x509crl, ASN1_OCTET_STRING, 0)),
87 ADB_ENTRY(NID_x509Certificate, ASN1_EXP(PKCS12_BAGS, value.sdsicert, ASN1_IA5STRING, 0)), 87 ADB_ENTRY(NID_sdsiCertificate, ASN1_EXP(PKCS12_BAGS, value.sdsicert, ASN1_IA5STRING, 0)),
88} ASN1_ADB_END(PKCS12_BAGS, 0, type, 0, &bag_default_tt, NULL); 88} ASN1_ADB_END(PKCS12_BAGS, 0, type, 0, &bag_default_tt, NULL);
89 89
90ASN1_SEQUENCE(PKCS12_BAGS) = { 90ASN1_SEQUENCE(PKCS12_BAGS) = {
@@ -98,7 +98,7 @@ ASN1_ADB_TEMPLATE(safebag_default) = ASN1_EXP(PKCS12_SAFEBAG, value.other, ASN1_
98 98
99ASN1_ADB(PKCS12_SAFEBAG) = { 99ASN1_ADB(PKCS12_SAFEBAG) = {
100 ADB_ENTRY(NID_keyBag, ASN1_EXP(PKCS12_SAFEBAG, value.keybag, PKCS8_PRIV_KEY_INFO, 0)), 100 ADB_ENTRY(NID_keyBag, ASN1_EXP(PKCS12_SAFEBAG, value.keybag, PKCS8_PRIV_KEY_INFO, 0)),
101 ADB_ENTRY(NID_pkcs8ShroudedKeyBag, ASN1_EXP(PKCS12_SAFEBAG, value.keybag, X509_SIG, 0)), 101 ADB_ENTRY(NID_pkcs8ShroudedKeyBag, ASN1_EXP(PKCS12_SAFEBAG, value.shkeybag, X509_SIG, 0)),
102 ADB_ENTRY(NID_safeContentsBag, ASN1_EXP_SET_OF(PKCS12_SAFEBAG, value.safes, PKCS12_SAFEBAG, 0)), 102 ADB_ENTRY(NID_safeContentsBag, ASN1_EXP_SET_OF(PKCS12_SAFEBAG, value.safes, PKCS12_SAFEBAG, 0)),
103 ADB_ENTRY(NID_certBag, ASN1_EXP(PKCS12_SAFEBAG, value.bag, PKCS12_BAGS, 0)), 103 ADB_ENTRY(NID_certBag, ASN1_EXP(PKCS12_SAFEBAG, value.bag, PKCS12_BAGS, 0)),
104 ADB_ENTRY(NID_crlBag, ASN1_EXP(PKCS12_SAFEBAG, value.bag, PKCS12_BAGS, 0)), 104 ADB_ENTRY(NID_crlBag, ASN1_EXP(PKCS12_SAFEBAG, value.bag, PKCS12_BAGS, 0)),
diff --git a/src/lib/libcrypto/pkcs7/pk7_lib.c b/src/lib/libcrypto/pkcs7/pk7_lib.c
index c00ed6833a..985b07245c 100644
--- a/src/lib/libcrypto/pkcs7/pk7_lib.c
+++ b/src/lib/libcrypto/pkcs7/pk7_lib.c
@@ -74,6 +74,13 @@ long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg)
74 if (nid == NID_pkcs7_signed) 74 if (nid == NID_pkcs7_signed)
75 { 75 {
76 ret=p7->detached=(int)larg; 76 ret=p7->detached=(int)larg;
77 if (ret && PKCS7_type_is_data(p7->d.sign->contents))
78 {
79 ASN1_OCTET_STRING *os;
80 os=p7->d.sign->contents->d.data;
81 ASN1_OCTET_STRING_free(os);
82 p7->d.sign->contents->d.data = NULL;
83 }
77 } 84 }
78 else 85 else
79 { 86 {
diff --git a/src/lib/libcrypto/ripemd/rmdtest.c b/src/lib/libcrypto/ripemd/rmdtest.c
index 19e9741db2..be1fb8b1f6 100644
--- a/src/lib/libcrypto/ripemd/rmdtest.c
+++ b/src/lib/libcrypto/ripemd/rmdtest.c
@@ -59,7 +59,6 @@
59#include <stdio.h> 59#include <stdio.h>
60#include <string.h> 60#include <string.h>
61#include <stdlib.h> 61#include <stdlib.h>
62#include <openssl/ripemd.h>
63 62
64#ifdef OPENSSL_NO_RIPEMD 63#ifdef OPENSSL_NO_RIPEMD
65int main(int argc, char *argv[]) 64int main(int argc, char *argv[])
@@ -68,6 +67,7 @@ int main(int argc, char *argv[])
68 return(0); 67 return(0);
69} 68}
70#else 69#else
70#include <openssl/ripemd.h>
71#include <openssl/evp.h> 71#include <openssl/evp.h>
72 72
73#ifdef CHARSET_EBCDIC 73#ifdef CHARSET_EBCDIC
diff --git a/src/lib/libcrypto/util/libeay.num b/src/lib/libcrypto/util/libeay.num
index 512185e257..7e5728495f 100644
--- a/src/lib/libcrypto/util/libeay.num
+++ b/src/lib/libcrypto/util/libeay.num
@@ -2792,3 +2792,4 @@ ASN1_UNIVERSALSTRING_it 3234 EXIST:!EXPORT_VAR_AS_FUNCTION:VARIA
2792ASN1_UNIVERSALSTRING_it 3234 EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION: 2792ASN1_UNIVERSALSTRING_it 3234 EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION:
2793d2i_ASN1_UNIVERSALSTRING 3235 EXIST::FUNCTION: 2793d2i_ASN1_UNIVERSALSTRING 3235 EXIST::FUNCTION:
2794EVP_des_ede3_ecb 3236 EXIST::FUNCTION:DES 2794EVP_des_ede3_ecb 3236 EXIST::FUNCTION:DES
2795X509_REQ_print_ex 3237 EXIST::FUNCTION:BIO
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h
index c75aa0c717..7095440d36 100644
--- a/src/lib/libcrypto/x509/x509.h
+++ b/src/lib/libcrypto/x509/x509.h
@@ -331,6 +331,7 @@ DECLARE_STACK_OF(X509_TRUST)
331#define X509_FLAG_NO_EXTENSIONS (1L << 8) 331#define X509_FLAG_NO_EXTENSIONS (1L << 8)
332#define X509_FLAG_NO_SIGDUMP (1L << 9) 332#define X509_FLAG_NO_SIGDUMP (1L << 9)
333#define X509_FLAG_NO_AUX (1L << 10) 333#define X509_FLAG_NO_AUX (1L << 10)
334#define X509_FLAG_NO_ATTRIBUTES (1L << 11)
334 335
335/* Flags specific to X509_NAME_print_ex() */ 336/* Flags specific to X509_NAME_print_ex() */
336 337
@@ -1015,6 +1016,7 @@ int X509_print(BIO *bp,X509 *x);
1015int X509_ocspid_print(BIO *bp,X509 *x); 1016int X509_ocspid_print(BIO *bp,X509 *x);
1016int X509_CERT_AUX_print(BIO *bp,X509_CERT_AUX *x, int indent); 1017int X509_CERT_AUX_print(BIO *bp,X509_CERT_AUX *x, int indent);
1017int X509_CRL_print(BIO *bp,X509_CRL *x); 1018int X509_CRL_print(BIO *bp,X509_CRL *x);
1019int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag, unsigned long cflag);
1018int X509_REQ_print(BIO *bp,X509_REQ *req); 1020int X509_REQ_print(BIO *bp,X509_REQ *req);
1019#endif 1021#endif
1020 1022
diff --git a/src/lib/libssl/crypto/shlib_version b/src/lib/libssl/crypto/shlib_version
index 5b844bbf42..b39addfcc6 100644
--- a/src/lib/libssl/crypto/shlib_version
+++ b/src/lib/libssl/crypto/shlib_version
@@ -1,2 +1,2 @@
1major=7 1major=7
2minor=0 2minor=1
diff --git a/src/lib/libssl/doc/openssl.txt b/src/lib/libssl/doc/openssl.txt
index 5da519e7e4..432a17b66c 100644
--- a/src/lib/libssl/doc/openssl.txt
+++ b/src/lib/libssl/doc/openssl.txt
@@ -344,7 +344,7 @@ the extension.
344 344
345Examples: 345Examples:
346 346
347subjectAltName=email:copy,email:my@other.address,URL:http://my.url.here/ 347subjectAltName=email:copy,email:my@other.address,URI:http://my.url.here/
348subjectAltName=email:my@other.address,RID:1.2.3.4 348subjectAltName=email:my@other.address,RID:1.2.3.4
349 349
350Issuer Alternative Name. 350Issuer Alternative Name.
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c
index 27df7a5a64..9ce5373b51 100644
--- a/src/lib/libssl/s3_clnt.c
+++ b/src/lib/libssl/s3_clnt.c
@@ -545,7 +545,11 @@ static int ssl3_client_hello(SSL *s)
545 *(p++)=i; 545 *(p++)=i;
546 if (i != 0) 546 if (i != 0)
547 { 547 {
548 die(i <= sizeof s->session->session_id); 548 if (i > sizeof s->session->session_id)
549 {
550 SSLerr(SSL_F_SSL3_CLIENT_HELLO, ERR_R_INTERNAL_ERROR);
551 goto err;
552 }
549 memcpy(p,s->session->session_id,i); 553 memcpy(p,s->session->session_id,i);
550 p+=i; 554 p+=i;
551 } 555 }
@@ -1597,7 +1601,11 @@ static int ssl3_send_client_key_exchange(SSL *s)
1597 SSL_MAX_MASTER_KEY_LENGTH); 1601 SSL_MAX_MASTER_KEY_LENGTH);
1598 EVP_EncryptFinal_ex(&ciph_ctx,&(epms[outl]),&padl); 1602 EVP_EncryptFinal_ex(&ciph_ctx,&(epms[outl]),&padl);
1599 outl += padl; 1603 outl += padl;
1600 die(outl <= sizeof epms); 1604 if (outl > sizeof epms)
1605 {
1606 SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE, ERR_R_INTERNAL_ERROR);
1607 goto err;
1608 }
1601 EVP_CIPHER_CTX_cleanup(&ciph_ctx); 1609 EVP_CIPHER_CTX_cleanup(&ciph_ctx);
1602 1610
1603 /* KerberosWrapper.EncryptedPreMasterSecret */ 1611 /* KerberosWrapper.EncryptedPreMasterSecret */
diff --git a/src/lib/libssl/s3_srvr.c b/src/lib/libssl/s3_srvr.c
index dfffed7165..2e1b0eb892 100644
--- a/src/lib/libssl/s3_srvr.c
+++ b/src/lib/libssl/s3_srvr.c
@@ -966,7 +966,11 @@ static int ssl3_send_server_hello(SSL *s)
966 s->session->session_id_length=0; 966 s->session->session_id_length=0;
967 967
968 sl=s->session->session_id_length; 968 sl=s->session->session_id_length;
969 die(sl <= sizeof s->session->session_id); 969 if (sl > sizeof s->session->session_id)
970 {
971 SSLerr(SSL_F_SSL3_SEND_SERVER_HELLO, ERR_R_INTERNAL_ERROR);
972 return -1;
973 }
970 *(p++)=sl; 974 *(p++)=sl;
971 memcpy(p,s->session->session_id,sl); 975 memcpy(p,s->session->session_id,sl);
972 p+=sl; 976 p+=sl;
diff --git a/src/lib/libssl/src/CHANGES b/src/lib/libssl/src/CHANGES
index 5c80970b52..03b697cd7e 100644
--- a/src/lib/libssl/src/CHANGES
+++ b/src/lib/libssl/src/CHANGES
@@ -2,7 +2,13 @@
2 OpenSSL CHANGES 2 OpenSSL CHANGES
3 _______________ 3 _______________
4 4
5 Changes between 0.9.6e and 0.9.7 [XX xxx 2002] 5 Changes between 0.9.6h and 0.9.7 [XX xxx 2002]
6
7 *) Make -nameopt work fully for req and add -reqopt switch.
8 [Michael Bell <michael.bell@rz.hu-berlin.de>, Steve Henson]
9
10 *) The "block size" for block ciphers in CFB and OFB mode should be 1.
11 [Steve Henson, reported by Yngve Nysaeter Pettersen <yngve@opera.com>]
6 12
7 *) Make sure tests can be performed even if the corresponding algorithms 13 *) Make sure tests can be performed even if the corresponding algorithms
8 have been removed entirely. This was also the last step to make 14 have been removed entirely. This was also the last step to make
@@ -1667,6 +1673,37 @@ des-cbc 3624.96k 5258.21k 5530.91k 5624.30k 5628.26k
1667 *) Clean old EAY MD5 hack from e_os.h. 1673 *) Clean old EAY MD5 hack from e_os.h.
1668 [Richard Levitte] 1674 [Richard Levitte]
1669 1675
1676 Changes between 0.9.6g and 0.9.6h [xx XXX xxxx]
1677
1678 *) Reorder cleanup sequence in SSL_CTX_free(): only remove the ex_data after
1679 the cached sessions are flushed, as the remove_cb() might use ex_data
1680 contents. Bug found by Sam Varshavchik <mrsam@courier-mta.com>
1681 (see [openssl.org #212]).
1682 [Geoff Thorpe, Lutz Jaenicke]
1683
1684 *) Fix typo in OBJ_txt2obj which incorrectly passed the content
1685 length, instead of the encoding length to d2i_ASN1_OBJECT.
1686 [Steve Henson]
1687
1688 Changes between 0.9.6f and 0.9.6g [9 Aug 2002]
1689
1690 *) [In 0.9.6g-engine release:]
1691 Fix crypto/engine/vendor_defns/cswift.h for WIN32 (use '_stdcall').
1692 [Lynn Gazis <lgazis@rainbow.com>]
1693
1694 Changes between 0.9.6e and 0.9.6f [8 Aug 2002]
1695
1696 *) Fix ASN1 checks. Check for overflow by comparing with LONG_MAX
1697 and get fix the header length calculation.
1698 [Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>,
1699 Alon Kantor <alonk@checkpoint.com> (and others),
1700 Steve Henson]
1701
1702 *) Use proper error handling instead of 'assertions' in buffer
1703 overflow checks added in 0.9.6e. This prevents DoS (the
1704 assertions could call abort()).
1705 [Arne Ansper <arne@ats.cyber.ee>, Bodo Moeller]
1706
1670 Changes between 0.9.6d and 0.9.6e [30 Jul 2002] 1707 Changes between 0.9.6d and 0.9.6e [30 Jul 2002]
1671 1708
1672 *) Add various sanity checks to asn1_get_length() to reject 1709 *) Add various sanity checks to asn1_get_length() to reject
diff --git a/src/lib/libssl/src/Configure b/src/lib/libssl/src/Configure
index 74bd8877e5..292ca877c6 100644
--- a/src/lib/libssl/src/Configure
+++ b/src/lib/libssl/src/Configure
@@ -120,7 +120,7 @@ my $alpha_asm="::::::::";
120# -DB_ENDIAN slows things down on a sparc for md5, but helps sha1. 120# -DB_ENDIAN slows things down on a sparc for md5, but helps sha1.
121# So the md5_locl.h file has an undef B_ENDIAN if sun is defined 121# So the md5_locl.h file has an undef B_ENDIAN if sun is defined
122 122
123#config-string $cc : $cflags : $unistd : $thread_cflag : $sys_id : $lflags : $bn_ops : $bn_obj : $des_obj : $bf_obj : $md5_obj : $sha1_obj : $cast_obj : $rc4_obj : $rmd160_obj : $rc5_obj : $dso_scheme : $shared_target : $shared_cflag : $shared_ldflag : $shared_extension : $ranlib 123#config-string $cc : $cflags : $unistd : $thread_cflag : $sys_id : $lflags : $bn_ops : $bn_obj : $des_obj : $bf_obj : $md5_obj : $sha1_obj : $cast_obj : $rc4_obj : $rmd160_obj : $rc5_obj : $dso_scheme : $shared_target : $shared_cflag : $shared_ldflag : $shared_extension : $ranlib : $arflags
124 124
125my %table=( 125my %table=(
126# File 'TABLE' (created by 'make TABLE') contains the data from this list, 126# File 'TABLE' (created by 'make TABLE') contains the data from this list,
@@ -387,8 +387,8 @@ my %table=(
387"linux-mips", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::(unknown):::BN_LLONG:::", 387"linux-mips", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::(unknown):::BN_LLONG:::",
388"linux-ppc", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 388"linux-ppc", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
389"linux-m68k", "gcc:-DB_ENDIAN -DTERMIO -O2 -fomit-frame-pointer -Wall::-D_REENTRANT:::BN_LLONG::", 389"linux-m68k", "gcc:-DB_ENDIAN -DTERMIO -O2 -fomit-frame-pointer -Wall::-D_REENTRANT:::BN_LLONG::",
390"linux-s390", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT:::BN_LLONG::", 390"linux-s390", "gcc:-DB_ENDIAN -DTERMIO -DNO_ASM -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
391"linux-s390x", "gcc:-DB_ENDIAN -DTERMIO -DNO_ASM -O3 -fomit-frame-pointer -Wall::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG:::::::::::linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 391"linux-s390x", "gcc:-DB_ENDIAN -DTERMIO -DNO_ASM -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
392"linux-ia64", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR:asm/ia64.o:::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 392"linux-ia64", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR:asm/ia64.o:::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
393"NetBSD-sparc", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -mv8 -Wall -DB_ENDIAN::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 393"NetBSD-sparc", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -mv8 -Wall -DB_ENDIAN::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
394"NetBSD-m68", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall -DB_ENDIAN::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 394"NetBSD-m68", "gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall -DB_ENDIAN::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
@@ -438,6 +438,7 @@ my %table=(
438"aix-gcc", "gcc:-O3 -DB_ENDIAN::(unknown):AIX::BN_LLONG RC4_CHAR:::", 438"aix-gcc", "gcc:-O3 -DB_ENDIAN::(unknown):AIX::BN_LLONG RC4_CHAR:::",
439"aix43-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384::(unknown):::BN_LLONG RC4_CHAR::::::::::dlfcn:", 439"aix43-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384::(unknown):::BN_LLONG RC4_CHAR::::::::::dlfcn:",
440"aix43-gcc", "gcc:-O3 -DAIX -DB_ENDIAN::(unknown):::BN_LLONG RC4_CHAR::::::::::dlfcn:", 440"aix43-gcc", "gcc:-O3 -DAIX -DB_ENDIAN::(unknown):::BN_LLONG RC4_CHAR::::::::::dlfcn:",
441"aix64-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384 -q64::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHAR::::::::::dlfcn::::::-X 64",
441 442
442# 443#
443# Cray T90 and similar (SDSC) 444# Cray T90 and similar (SDSC)
@@ -586,6 +587,7 @@ my $idx_shared_cflag = $idx++;
586my $idx_shared_ldflag = $idx++; 587my $idx_shared_ldflag = $idx++;
587my $idx_shared_extension = $idx++; 588my $idx_shared_extension = $idx++;
588my $idx_ranlib = $idx++; 589my $idx_ranlib = $idx++;
590my $idx_arflags = $idx++;
589 591
590my $prefix=""; 592my $prefix="";
591my $openssldir=""; 593my $openssldir="";
@@ -940,6 +942,7 @@ my $shared_cflag = $fields[$idx_shared_cflag];
940my $shared_ldflag = $fields[$idx_shared_ldflag]; 942my $shared_ldflag = $fields[$idx_shared_ldflag];
941my $shared_extension = $fields[$idx_shared_extension]; 943my $shared_extension = $fields[$idx_shared_extension];
942my $ranlib = $fields[$idx_ranlib]; 944my $ranlib = $fields[$idx_ranlib];
945my $arflags = $fields[$idx_arflags];
943 946
944$cflags="$flags$cflags" if ($flags ne ""); 947$cflags="$flags$cflags" if ($flags ne "");
945 948
@@ -1067,7 +1070,7 @@ if ($zlib)
1067 { 1070 {
1068 $cflags = "-DZLIB $cflags"; 1071 $cflags = "-DZLIB $cflags";
1069 $cflags = "-DZLIB_SHARED $cflags" if $zlib == 2; 1072 $cflags = "-DZLIB_SHARED $cflags" if $zlib == 2;
1070 $lflags = "$lflags -lz" if $zlib == 2; 1073 $lflags = "$lflags -lz" if $zlib == 1;
1071 } 1074 }
1072 1075
1073# You will find shlib_mark1 and shlib_mark2 explained in Makefile.org 1076# You will find shlib_mark1 and shlib_mark2 explained in Makefile.org
@@ -1208,6 +1211,7 @@ while (<IN>)
1208 s/^RMD160_ASM_OBJ=.*$/RMD160_ASM_OBJ= $rmd160_obj/; 1211 s/^RMD160_ASM_OBJ=.*$/RMD160_ASM_OBJ= $rmd160_obj/;
1209 s/^PROCESSOR=.*/PROCESSOR= $processor/; 1212 s/^PROCESSOR=.*/PROCESSOR= $processor/;
1210 s/^RANLIB=.*/RANLIB= $ranlib/; 1213 s/^RANLIB=.*/RANLIB= $ranlib/;
1214 s/^ARFLAGS=.*/ARFLAGS= $arflags/;
1211 s/^PERL=.*/PERL= $perl/; 1215 s/^PERL=.*/PERL= $perl/;
1212 s/^KRB5_INCLUDES=.*/KRB5_INCLUDES=$withargs{"krb5-include"}/; 1216 s/^KRB5_INCLUDES=.*/KRB5_INCLUDES=$withargs{"krb5-include"}/;
1213 s/^LIBKRB5=.*/LIBKRB5=$withargs{"krb5-lib"}/; 1217 s/^LIBKRB5=.*/LIBKRB5=$withargs{"krb5-lib"}/;
@@ -1254,6 +1258,7 @@ print "SHA1_OBJ_ASM =$sha1_obj\n";
1254print "RMD160_OBJ_ASM=$rmd160_obj\n"; 1258print "RMD160_OBJ_ASM=$rmd160_obj\n";
1255print "PROCESSOR =$processor\n"; 1259print "PROCESSOR =$processor\n";
1256print "RANLIB =$ranlib\n"; 1260print "RANLIB =$ranlib\n";
1261print "ARFLAGS =$arflags\n";
1257print "PERL =$perl\n"; 1262print "PERL =$perl\n";
1258print "KRB5_INCLUDES =",$withargs{"krb5-include"},"\n" 1263print "KRB5_INCLUDES =",$withargs{"krb5-include"},"\n"
1259 if $withargs{"krb5-include"} ne ""; 1264 if $withargs{"krb5-include"} ne "";
@@ -1561,7 +1566,7 @@ sub print_table_entry
1561 my $bn_ops,my $bn_obj,my $des_obj,my $bf_obj, 1566 my $bn_ops,my $bn_obj,my $des_obj,my $bf_obj,
1562 my $md5_obj,my $sha1_obj,my $cast_obj,my $rc4_obj,my $rmd160_obj, 1567 my $md5_obj,my $sha1_obj,my $cast_obj,my $rc4_obj,my $rmd160_obj,
1563 my $rc5_obj,my $dso_scheme,my $shared_target,my $shared_cflag, 1568 my $rc5_obj,my $dso_scheme,my $shared_target,my $shared_cflag,
1564 my $shared_ldflag,my $shared_extension,my $ranlib)= 1569 my $shared_ldflag,my $shared_extension,my $ranlib,my $arflags)=
1565 split(/\s*:\s*/,$table{$target} . ":" x 30 , -1); 1570 split(/\s*:\s*/,$table{$target} . ":" x 30 , -1);
1566 1571
1567 print <<EOF 1572 print <<EOF
@@ -1589,6 +1594,7 @@ sub print_table_entry
1589\$shared_ldflag = $shared_ldflag 1594\$shared_ldflag = $shared_ldflag
1590\$shared_extension = $shared_extension 1595\$shared_extension = $shared_extension
1591\$ranlib = $ranlib 1596\$ranlib = $ranlib
1597\$arflags = $arflags
1592EOF 1598EOF
1593 } 1599 }
1594 1600
diff --git a/src/lib/libssl/src/FAQ b/src/lib/libssl/src/FAQ
index ee03d97676..28027fdcac 100644
--- a/src/lib/libssl/src/FAQ
+++ b/src/lib/libssl/src/FAQ
@@ -36,6 +36,7 @@ OpenSSL - Frequently Asked Questions
36* Why does the linker complain about undefined symbols? 36* Why does the linker complain about undefined symbols?
37* Why does the OpenSSL test fail with "bc: command not found"? 37* Why does the OpenSSL test fail with "bc: command not found"?
38* Why does the OpenSSL test fail with "bc: 1 no implemented"? 38* Why does the OpenSSL test fail with "bc: 1 no implemented"?
39* Why does the OpenSSL test fail with "bc: stack empty"?
39* Why does the OpenSSL compilation fail on Alpha Tru64 Unix? 40* Why does the OpenSSL compilation fail on Alpha Tru64 Unix?
40* Why does the OpenSSL compilation fail with "ar: command not found"? 41* Why does the OpenSSL compilation fail with "ar: command not found"?
41* Why does the OpenSSL compilation fail on Win32 with VC++? 42* Why does the OpenSSL compilation fail on Win32 with VC++?
@@ -64,7 +65,7 @@ OpenSSL - Frequently Asked Questions
64* Which is the current version of OpenSSL? 65* Which is the current version of OpenSSL?
65 66
66The current version is available from <URL: http://www.openssl.org>. 67The current version is available from <URL: http://www.openssl.org>.
67OpenSSL 0.9.6e was released on July 30, 2002. 68OpenSSL 0.9.6g was released on August 9, 2002.
68 69
69In addition to the current stable release, you can also access daily 70In addition to the current stable release, you can also access daily
70snapshots of the OpenSSL development version at <URL: 71snapshots of the OpenSSL development version at <URL:
@@ -402,6 +403,17 @@ and compile/install it. GNU bc (see http://www.gnu.org/software/software.html
402for download instructions) can be safely used, for example. 403for download instructions) can be safely used, for example.
403 404
404 405
406* Why does the OpenSSL test fail with "bc: stack empty"?
407
408On some DG/ux versions, bc seems to have a too small stack for calculations
409that the OpenSSL bntest throws at it. This gets triggered when you run the
410test suite (using "make test"). The message returned is "bc: stack empty".
411
412The best way to deal with this is to find another implementation of bc
413and compile/install it. GNU bc (see http://www.gnu.org/software/software.html
414for download instructions) can be safely used, for example.
415
416
405* Why does the OpenSSL compilation fail on Alpha Tru64 Unix? 417* Why does the OpenSSL compilation fail on Alpha Tru64 Unix?
406 418
407On some Alpha installations running Tru64 Unix and Compaq C, the compilation 419On some Alpha installations running Tru64 Unix and Compaq C, the compilation
diff --git a/src/lib/libssl/src/Makefile.org b/src/lib/libssl/src/Makefile.org
index 8808dd7922..d7af0815f3 100644
--- a/src/lib/libssl/src/Makefile.org
+++ b/src/lib/libssl/src/Makefile.org
@@ -59,7 +59,8 @@ DEPFLAG=
59PEX_LIBS= 59PEX_LIBS=
60EX_LIBS= 60EX_LIBS=
61EXE_EXT= 61EXE_EXT=
62AR=ar r 62ARFLAGS=
63AR=ar $(ARFLAGS) r
63RANLIB= ranlib 64RANLIB= ranlib
64PERL= perl 65PERL= perl
65TAR= tar 66TAR= tar
@@ -251,7 +252,8 @@ link-shared:
251 for i in $(SHLIBDIRS); do \ 252 for i in $(SHLIBDIRS); do \
252 prev=lib$$i$(SHLIB_EXT); \ 253 prev=lib$$i$(SHLIB_EXT); \
253 for j in $${tmp:-x}; do \ 254 for j in $${tmp:-x}; do \
254 ( set -x; ln -f -s $$prev lib$$i$$j ); \ 255 ( set -x; \
256 rm -f lib$$i$$j; ln -s $$prev lib$$i$$j ); \
255 prev=lib$$i$$j; \ 257 prev=lib$$i$$j; \
256 done; \ 258 done; \
257 done; \ 259 done; \
@@ -273,9 +275,7 @@ do_gnu-shared:
273 done 275 done
274 276
275DETECT_GNU_LD=${CC} -v 2>&1 | grep '^gcc' >/dev/null 2>&1 && \ 277DETECT_GNU_LD=${CC} -v 2>&1 | grep '^gcc' >/dev/null 2>&1 && \
276 collect2=`gcc -print-prog-name=collect2 2>&1` && \ 278 my_ld=`gcc -print-prog-name=ld 2>&1` && \
277 [ -n "$$collect2" ] && \
278 my_ld=`$$collect2 --help 2>&1 | grep Usage: | sed 's/^Usage: *\([^ ][^ ]*\).*/\1/'` && \
279 [ -n "$$my_ld" ] && \ 279 [ -n "$$my_ld" ] && \
280 $$my_ld -v 2>&1 | grep 'GNU ld' >/dev/null 2>&1 280 $$my_ld -v 2>&1 | grep 'GNU ld' >/dev/null 2>&1
281 281
@@ -731,7 +731,8 @@ install: all install_docs
731 done; \ 731 done; \
732 ( here="`pwd`"; \ 732 ( here="`pwd`"; \
733 cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \ 733 cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
734 make -f $$here/Makefile link-shared ); \ 734 set $(MAKE); \
735 $$1 -f $$here/Makefile link-shared ); \
735 fi 736 fi
736 737
737install_docs: 738install_docs:
@@ -740,22 +741,23 @@ install_docs:
740 $(INSTALL_PREFIX)$(MANDIR)/man3 \ 741 $(INSTALL_PREFIX)$(MANDIR)/man3 \
741 $(INSTALL_PREFIX)$(MANDIR)/man5 \ 742 $(INSTALL_PREFIX)$(MANDIR)/man5 \
742 $(INSTALL_PREFIX)$(MANDIR)/man7 743 $(INSTALL_PREFIX)$(MANDIR)/man7
743 @for i in doc/apps/*.pod; do \ 744 @pod2man="`cd util; ./pod2mantest $(PERL)`"; \
745 for i in doc/apps/*.pod; do \
744 fn=`basename $$i .pod`; \ 746 fn=`basename $$i .pod`; \
745 if [ "$$fn" = "config" ]; then sec=5; else sec=1; fi; \ 747 if [ "$$fn" = "config" ]; then sec=5; else sec=1; fi; \
746 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \ 748 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \
747 (cd `$(PERL) util/dirname.pl $$i`; \ 749 (cd `$(PERL) util/dirname.pl $$i`; \
748 sh -c "$(PERL) `cd ../../util; ./pod2mantest ignore` \ 750 sh -c "$$pod2man \
749 --section=$$sec --center=OpenSSL \ 751 --section=$$sec --center=OpenSSL \
750 --release=$(VERSION) `basename $$i`") \ 752 --release=$(VERSION) `basename $$i`") \
751 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \ 753 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
752 done 754 done; \
753 @for i in doc/crypto/*.pod doc/ssl/*.pod; do \ 755 for i in doc/crypto/*.pod doc/ssl/*.pod; do \
754 fn=`basename $$i .pod`; \ 756 fn=`basename $$i .pod`; \
755 if [ "$$fn" = "des_modes" ]; then sec=7; else sec=3; fi; \ 757 if [ "$$fn" = "des_modes" ]; then sec=7; else sec=3; fi; \
756 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \ 758 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \
757 (cd `$(PERL) util/dirname.pl $$i`; \ 759 (cd `$(PERL) util/dirname.pl $$i`; \
758 sh -c "$(PERL) `cd ../../util; ./pod2mantest ignore` \ 760 sh -c "$$pod2man \
759 --section=$$sec --center=OpenSSL \ 761 --section=$$sec --center=OpenSSL \
760 --release=$(VERSION) `basename $$i`") \ 762 --release=$(VERSION) `basename $$i`") \
761 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \ 763 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
diff --git a/src/lib/libssl/src/NEWS b/src/lib/libssl/src/NEWS
index 9531ba9c6e..418b3b0505 100644
--- a/src/lib/libssl/src/NEWS
+++ b/src/lib/libssl/src/NEWS
@@ -40,6 +40,14 @@
40 o SSL/TLS: add callback to retrieve SSL/TLS messages. 40 o SSL/TLS: add callback to retrieve SSL/TLS messages.
41 o SSL/TLS: support AES cipher suites (RFC3268). 41 o SSL/TLS: support AES cipher suites (RFC3268).
42 42
43 Major changes between OpenSSL 0.9.6f and OpenSSL 0.9.6g:
44
45 o Important building fixes on Unix.
46
47 Major changes between OpenSSL 0.9.6e and OpenSSL 0.9.6f:
48
49 o Various important bugfixes.
50
43 Major changes between OpenSSL 0.9.6d and OpenSSL 0.9.6e: 51 Major changes between OpenSSL 0.9.6d and OpenSSL 0.9.6e:
44 52
45 o Important security related bugfixes. 53 o Important security related bugfixes.
diff --git a/src/lib/libssl/src/README b/src/lib/libssl/src/README
index 5394a17e3e..4228e145f9 100644
--- a/src/lib/libssl/src/README
+++ b/src/lib/libssl/src/README
@@ -154,7 +154,7 @@
154 - Stack Traceback (if the application dumps core) 154 - Stack Traceback (if the application dumps core)
155 155
156 Report the bug to the OpenSSL project via the Request Tracker 156 Report the bug to the OpenSSL project via the Request Tracker
157 (http://www.openssl.org/rt2.html) by mail to: 157 (http://www.openssl.org/support/rt2.html) by mail to:
158 158
159 openssl-bugs@openssl.org 159 openssl-bugs@openssl.org
160 160
diff --git a/src/lib/libssl/src/STATUS b/src/lib/libssl/src/STATUS
index 0b752ecc08..fb61c932ee 100644
--- a/src/lib/libssl/src/STATUS
+++ b/src/lib/libssl/src/STATUS
@@ -1,11 +1,16 @@
1 1
2 OpenSSL STATUS Last modified at 2 OpenSSL STATUS Last modified at
3 ______________ $Date: 2002/06/07 03:45:33 $ 3 ______________ $Date: 2002/09/14 11:18:02 $
4 4
5 DEVELOPMENT STATE 5 DEVELOPMENT STATE
6 6
7 o OpenSSL 0.9.8: Under development... 7 o OpenSSL 0.9.8: Under development...
8 o OpenSSL 0.9.7-beta1: Released on June 1st, 2002 8 o OpenSSL 0.9.7-beta3: Released on July 30th, 2002
9 o OpenSSL 0.9.7-beta2: Released on June 16th, 2002
10 o OpenSSL 0.9.7-beta1: Released on June 1st, 2002
11 o OpenSSL 0.9.6g: Released on August 9th, 2002
12 o OpenSSL 0.9.6f: Released on August 8th, 2002
13 o OpenSSL 0.9.6e: Released on July 30th, 2002
9 o OpenSSL 0.9.6d: Released on May 9th, 2002 14 o OpenSSL 0.9.6d: Released on May 9th, 2002
10 o OpenSSL 0.9.6c: Released on December 21st, 2001 15 o OpenSSL 0.9.6c: Released on December 21st, 2001
11 o OpenSSL 0.9.6b: Released on July 9th, 2001 16 o OpenSSL 0.9.6b: Released on July 9th, 2001
diff --git a/src/lib/libssl/src/TABLE b/src/lib/libssl/src/TABLE
index 954c0fc553..3989ac7ebf 100644
--- a/src/lib/libssl/src/TABLE
+++ b/src/lib/libssl/src/TABLE
@@ -23,6 +23,7 @@ $shared_cflag =
23$shared_ldflag = 23$shared_ldflag =
24$shared_extension = 24$shared_extension =
25$ranlib = 25$ranlib =
26$arflags =
26 27
27*** BC-32 28*** BC-32
28$cc = bcc32 29$cc = bcc32
@@ -47,6 +48,7 @@ $shared_cflag =
47$shared_ldflag = 48$shared_ldflag =
48$shared_extension = 49$shared_extension =
49$ranlib = 50$ranlib =
51$arflags =
50 52
51*** BS2000-OSD 53*** BS2000-OSD
52$cc = c89 54$cc = c89
@@ -71,6 +73,7 @@ $shared_cflag =
71$shared_ldflag = 73$shared_ldflag =
72$shared_extension = 74$shared_extension =
73$ranlib = 75$ranlib =
76$arflags =
74 77
75*** Cygwin 78*** Cygwin
76$cc = gcc 79$cc = gcc
@@ -95,6 +98,7 @@ $shared_cflag =
95$shared_ldflag = 98$shared_ldflag =
96$shared_extension = .dll 99$shared_extension = .dll
97$ranlib = 100$ranlib =
101$arflags =
98 102
99*** Cygwin-pre1.3 103*** Cygwin-pre1.3
100$cc = gcc 104$cc = gcc
@@ -119,6 +123,32 @@ $shared_cflag =
119$shared_ldflag = 123$shared_ldflag =
120$shared_extension = 124$shared_extension =
121$ranlib = 125$ranlib =
126$arflags =
127
128*** DJGPP
129$cc = gcc
130$cflags = -I/dev/env/DJDIR/watt32/inc -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -Wall
131$unistd =
132$thread_cflag =
133$sys_id = MSDOS
134$lflags = -L/dev/env/DJDIR/watt32/lib -lwatt
135$bn_ops = BN_LLONG DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
136$bn_obj =
137$des_obj =
138$bf_obj =
139$md5_obj =
140$sha1_obj =
141$cast_obj =
142$rc4_obj =
143$rmd160_obj =
144$rc5_obj =
145$dso_scheme =
146$shared_target=
147$shared_cflag =
148$shared_ldflag =
149$shared_extension =
150$ranlib =
151$arflags =
122 152
123*** FreeBSD 153*** FreeBSD
124$cc = gcc 154$cc = gcc
@@ -143,6 +173,7 @@ $shared_cflag =
143$shared_ldflag = 173$shared_ldflag =
144$shared_extension = 174$shared_extension =
145$ranlib = 175$ranlib =
176$arflags =
146 177
147*** FreeBSD-alpha 178*** FreeBSD-alpha
148$cc = gcc 179$cc = gcc
@@ -167,6 +198,7 @@ $shared_cflag = -fPIC
167$shared_ldflag = 198$shared_ldflag =
168$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 199$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
169$ranlib = 200$ranlib =
201$arflags =
170 202
171*** FreeBSD-elf 203*** FreeBSD-elf
172$cc = gcc 204$cc = gcc
@@ -191,6 +223,7 @@ $shared_cflag = -fPIC
191$shared_ldflag = 223$shared_ldflag =
192$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 224$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
193$ranlib = 225$ranlib =
226$arflags =
194 227
195*** MPE/iX-gcc 228*** MPE/iX-gcc
196$cc = gcc 229$cc = gcc
@@ -215,6 +248,7 @@ $shared_cflag =
215$shared_ldflag = 248$shared_ldflag =
216$shared_extension = 249$shared_extension =
217$ranlib = 250$ranlib =
251$arflags =
218 252
219*** Mingw32 253*** Mingw32
220$cc = gcc 254$cc = gcc
@@ -239,6 +273,7 @@ $shared_cflag =
239$shared_ldflag = 273$shared_ldflag =
240$shared_extension = 274$shared_extension =
241$ranlib = 275$ranlib =
276$arflags =
242 277
243*** NetBSD-m68 278*** NetBSD-m68
244$cc = gcc 279$cc = gcc
@@ -263,6 +298,7 @@ $shared_cflag = -fPIC
263$shared_ldflag = 298$shared_ldflag =
264$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 299$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
265$ranlib = 300$ranlib =
301$arflags =
266 302
267*** NetBSD-sparc 303*** NetBSD-sparc
268$cc = gcc 304$cc = gcc
@@ -287,6 +323,7 @@ $shared_cflag = -fPIC
287$shared_ldflag = 323$shared_ldflag =
288$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 324$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
289$ranlib = 325$ranlib =
326$arflags =
290 327
291*** NetBSD-x86 328*** NetBSD-x86
292$cc = gcc 329$cc = gcc
@@ -311,6 +348,7 @@ $shared_cflag = -fPIC
311$shared_ldflag = 348$shared_ldflag =
312$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 349$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
313$ranlib = 350$ranlib =
351$arflags =
314 352
315*** OS2-EMX 353*** OS2-EMX
316$cc = gcc 354$cc = gcc
@@ -335,6 +373,7 @@ $shared_cflag =
335$shared_ldflag = 373$shared_ldflag =
336$shared_extension = 374$shared_extension =
337$ranlib = 375$ranlib =
376$arflags =
338 377
339*** OS390-Unix 378*** OS390-Unix
340$cc = c89.sh 379$cc = c89.sh
@@ -359,6 +398,7 @@ $shared_cflag =
359$shared_ldflag = 398$shared_ldflag =
360$shared_extension = 399$shared_extension =
361$ranlib = 400$ranlib =
401$arflags =
362 402
363*** OpenBSD 403*** OpenBSD
364$cc = gcc 404$cc = gcc
@@ -383,6 +423,7 @@ $shared_cflag = -fPIC
383$shared_ldflag = 423$shared_ldflag =
384$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 424$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
385$ranlib = 425$ranlib =
426$arflags =
386 427
387*** OpenBSD-alpha 428*** OpenBSD-alpha
388$cc = gcc 429$cc = gcc
@@ -407,6 +448,7 @@ $shared_cflag = -fPIC
407$shared_ldflag = 448$shared_ldflag =
408$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 449$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
409$ranlib = 450$ranlib =
451$arflags =
410 452
411*** OpenBSD-hppa 453*** OpenBSD-hppa
412$cc = gcc 454$cc = gcc
@@ -431,6 +473,7 @@ $shared_cflag = -fPIC
431$shared_ldflag = 473$shared_ldflag =
432$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 474$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
433$ranlib = 475$ranlib =
476$arflags =
434 477
435*** OpenBSD-i386 478*** OpenBSD-i386
436$cc = gcc 479$cc = gcc
@@ -455,6 +498,7 @@ $shared_cflag = -fPIC
455$shared_ldflag = 498$shared_ldflag =
456$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 499$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
457$ranlib = 500$ranlib =
501$arflags =
458 502
459*** OpenBSD-m68k 503*** OpenBSD-m68k
460$cc = gcc 504$cc = gcc
@@ -479,6 +523,7 @@ $shared_cflag = -fPIC
479$shared_ldflag = 523$shared_ldflag =
480$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 524$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
481$ranlib = 525$ranlib =
526$arflags =
482 527
483*** OpenBSD-m88k 528*** OpenBSD-m88k
484$cc = gcc 529$cc = gcc
@@ -503,6 +548,7 @@ $shared_cflag = -fPIC
503$shared_ldflag = 548$shared_ldflag =
504$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 549$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
505$ranlib = 550$ranlib =
551$arflags =
506 552
507*** OpenBSD-mips 553*** OpenBSD-mips
508$cc = gcc 554$cc = gcc
@@ -527,6 +573,7 @@ $shared_cflag = -fPIC
527$shared_ldflag = 573$shared_ldflag =
528$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 574$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
529$ranlib = 575$ranlib =
576$arflags =
530 577
531*** OpenBSD-powerpc 578*** OpenBSD-powerpc
532$cc = gcc 579$cc = gcc
@@ -551,6 +598,7 @@ $shared_cflag = -fPIC
551$shared_ldflag = 598$shared_ldflag =
552$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 599$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
553$ranlib = 600$ranlib =
601$arflags =
554 602
555*** OpenBSD-sparc 603*** OpenBSD-sparc
556$cc = gcc 604$cc = gcc
@@ -575,6 +623,7 @@ $shared_cflag = -fPIC
575$shared_ldflag = 623$shared_ldflag =
576$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 624$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
577$ranlib = 625$ranlib =
626$arflags =
578 627
579*** OpenBSD-sparc64 628*** OpenBSD-sparc64
580$cc = gcc 629$cc = gcc
@@ -599,6 +648,7 @@ $shared_cflag = -fPIC
599$shared_ldflag = 648$shared_ldflag =
600$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 649$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
601$ranlib = 650$ranlib =
651$arflags =
602 652
603*** OpenBSD-vax 653*** OpenBSD-vax
604$cc = gcc 654$cc = gcc
@@ -623,6 +673,7 @@ $shared_cflag = -fPIC
623$shared_ldflag = 673$shared_ldflag =
624$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 674$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
625$ranlib = 675$ranlib =
676$arflags =
626 677
627*** OpenUNIX-8 678*** OpenUNIX-8
628$cc = cc 679$cc = cc
@@ -647,6 +698,7 @@ $shared_cflag = -Kpic
647$shared_ldflag = 698$shared_ldflag =
648$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 699$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
649$ranlib = 700$ranlib =
701$arflags =
650 702
651*** OpenUNIX-8-gcc 703*** OpenUNIX-8-gcc
652$cc = gcc 704$cc = gcc
@@ -671,6 +723,7 @@ $shared_cflag = -fPIC
671$shared_ldflag = 723$shared_ldflag =
672$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 724$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
673$ranlib = 725$ranlib =
726$arflags =
674 727
675*** OpenUNIX-8-pentium 728*** OpenUNIX-8-pentium
676$cc = cc 729$cc = cc
@@ -695,6 +748,7 @@ $shared_cflag = -Kpic
695$shared_ldflag = 748$shared_ldflag =
696$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 749$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
697$ranlib = 750$ranlib =
751$arflags =
698 752
699*** OpenUNIX-8-pentium_pro 753*** OpenUNIX-8-pentium_pro
700$cc = cc 754$cc = cc
@@ -719,6 +773,7 @@ $shared_cflag = -Kpic
719$shared_ldflag = 773$shared_ldflag =
720$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 774$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
721$ranlib = 775$ranlib =
776$arflags =
722 777
723*** ReliantUNIX 778*** ReliantUNIX
724$cc = cc 779$cc = cc
@@ -743,6 +798,7 @@ $shared_cflag =
743$shared_ldflag = 798$shared_ldflag =
744$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 799$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
745$ranlib = 800$ranlib =
801$arflags =
746 802
747*** SINIX 803*** SINIX
748$cc = cc 804$cc = cc
@@ -767,6 +823,7 @@ $shared_cflag =
767$shared_ldflag = 823$shared_ldflag =
768$shared_extension = 824$shared_extension =
769$ranlib = 825$ranlib =
826$arflags =
770 827
771*** SINIX-N 828*** SINIX-N
772$cc = /usr/ucb/cc 829$cc = /usr/ucb/cc
@@ -791,6 +848,32 @@ $shared_cflag =
791$shared_ldflag = 848$shared_ldflag =
792$shared_extension = 849$shared_extension =
793$ranlib = 850$ranlib =
851$arflags =
852
853*** UWIN
854$cc = cc
855$cflags = -DTERMIOS -DL_ENDIAN -O -Wall
856$unistd =
857$thread_cflag =
858$sys_id = UWIN
859$lflags =
860$bn_ops = BN_LLONG DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
861$bn_obj =
862$des_obj =
863$bf_obj =
864$md5_obj =
865$sha1_obj =
866$cast_obj =
867$rc4_obj =
868$rmd160_obj =
869$rc5_obj =
870$dso_scheme = win32
871$shared_target=
872$shared_cflag =
873$shared_ldflag =
874$shared_extension =
875$ranlib =
876$arflags =
794 877
795*** VC-MSDOS 878*** VC-MSDOS
796$cc = cl 879$cc = cl
@@ -815,6 +898,7 @@ $shared_cflag =
815$shared_ldflag = 898$shared_ldflag =
816$shared_extension = 899$shared_extension =
817$ranlib = 900$ranlib =
901$arflags =
818 902
819*** VC-NT 903*** VC-NT
820$cc = cl 904$cc = cl
@@ -839,6 +923,7 @@ $shared_cflag =
839$shared_ldflag = 923$shared_ldflag =
840$shared_extension = 924$shared_extension =
841$ranlib = 925$ranlib =
926$arflags =
842 927
843*** VC-W31-16 928*** VC-W31-16
844$cc = cl 929$cc = cl
@@ -863,6 +948,7 @@ $shared_cflag =
863$shared_ldflag = 948$shared_ldflag =
864$shared_extension = 949$shared_extension =
865$ranlib = 950$ranlib =
951$arflags =
866 952
867*** VC-W31-32 953*** VC-W31-32
868$cc = cl 954$cc = cl
@@ -887,6 +973,7 @@ $shared_cflag =
887$shared_ldflag = 973$shared_ldflag =
888$shared_extension = 974$shared_extension =
889$ranlib = 975$ranlib =
976$arflags =
890 977
891*** VC-WIN16 978*** VC-WIN16
892$cc = cl 979$cc = cl
@@ -911,6 +998,7 @@ $shared_cflag =
911$shared_ldflag = 998$shared_ldflag =
912$shared_extension = 999$shared_extension =
913$ranlib = 1000$ranlib =
1001$arflags =
914 1002
915*** VC-WIN32 1003*** VC-WIN32
916$cc = cl 1004$cc = cl
@@ -935,6 +1023,7 @@ $shared_cflag =
935$shared_ldflag = 1023$shared_ldflag =
936$shared_extension = 1024$shared_extension =
937$ranlib = 1025$ranlib =
1026$arflags =
938 1027
939*** aix-cc 1028*** aix-cc
940$cc = cc 1029$cc = cc
@@ -959,6 +1048,7 @@ $shared_cflag =
959$shared_ldflag = 1048$shared_ldflag =
960$shared_extension = 1049$shared_extension =
961$ranlib = 1050$ranlib =
1051$arflags =
962 1052
963*** aix-gcc 1053*** aix-gcc
964$cc = gcc 1054$cc = gcc
@@ -983,6 +1073,7 @@ $shared_cflag =
983$shared_ldflag = 1073$shared_ldflag =
984$shared_extension = 1074$shared_extension =
985$ranlib = 1075$ranlib =
1076$arflags =
986 1077
987*** aix43-cc 1078*** aix43-cc
988$cc = cc 1079$cc = cc
@@ -1007,6 +1098,7 @@ $shared_cflag =
1007$shared_ldflag = 1098$shared_ldflag =
1008$shared_extension = 1099$shared_extension =
1009$ranlib = 1100$ranlib =
1101$arflags =
1010 1102
1011*** aix43-gcc 1103*** aix43-gcc
1012$cc = gcc 1104$cc = gcc
@@ -1031,6 +1123,32 @@ $shared_cflag =
1031$shared_ldflag = 1123$shared_ldflag =
1032$shared_extension = 1124$shared_extension =
1033$ranlib = 1125$ranlib =
1126$arflags =
1127
1128*** aix64-cc
1129$cc = cc
1130$cflags = -O -DAIX -DB_ENDIAN -qmaxmem=16384 -q64
1131$unistd =
1132$thread_cflag = (unknown)
1133$sys_id =
1134$lflags =
1135$bn_ops = SIXTY_FOUR_BIT_LONG RC4_CHAR
1136$bn_obj =
1137$des_obj =
1138$bf_obj =
1139$md5_obj =
1140$sha1_obj =
1141$cast_obj =
1142$rc4_obj =
1143$rmd160_obj =
1144$rc5_obj =
1145$dso_scheme = dlfcn
1146$shared_target=
1147$shared_cflag =
1148$shared_ldflag =
1149$shared_extension =
1150$ranlib =
1151$arflags = -X 64
1034 1152
1035*** alpha-cc 1153*** alpha-cc
1036$cc = cc 1154$cc = cc
@@ -1055,6 +1173,7 @@ $shared_cflag =
1055$shared_ldflag = 1173$shared_ldflag =
1056$shared_extension = .so 1174$shared_extension = .so
1057$ranlib = 1175$ranlib =
1176$arflags =
1058 1177
1059*** alpha-cc-rpath 1178*** alpha-cc-rpath
1060$cc = cc 1179$cc = cc
@@ -1079,6 +1198,7 @@ $shared_cflag =
1079$shared_ldflag = 1198$shared_ldflag =
1080$shared_extension = .so 1199$shared_extension = .so
1081$ranlib = 1200$ranlib =
1201$arflags =
1082 1202
1083*** alpha-gcc 1203*** alpha-gcc
1084$cc = gcc 1204$cc = gcc
@@ -1103,6 +1223,7 @@ $shared_cflag =
1103$shared_ldflag = 1223$shared_ldflag =
1104$shared_extension = .so 1224$shared_extension = .so
1105$ranlib = 1225$ranlib =
1226$arflags =
1106 1227
1107*** alpha164-cc 1228*** alpha164-cc
1108$cc = cc 1229$cc = cc
@@ -1127,6 +1248,7 @@ $shared_cflag =
1127$shared_ldflag = 1248$shared_ldflag =
1128$shared_extension = .so 1249$shared_extension = .so
1129$ranlib = 1250$ranlib =
1251$arflags =
1130 1252
1131*** alphaold-cc 1253*** alphaold-cc
1132$cc = cc 1254$cc = cc
@@ -1151,6 +1273,7 @@ $shared_cflag =
1151$shared_ldflag = 1273$shared_ldflag =
1152$shared_extension = .so 1274$shared_extension = .so
1153$ranlib = 1275$ranlib =
1276$arflags =
1154 1277
1155*** bsdi-elf-gcc 1278*** bsdi-elf-gcc
1156$cc = gcc 1279$cc = gcc
@@ -1175,6 +1298,7 @@ $shared_cflag = -fPIC
1175$shared_ldflag = 1298$shared_ldflag =
1176$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 1299$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
1177$ranlib = 1300$ranlib =
1301$arflags =
1178 1302
1179*** bsdi-gcc 1303*** bsdi-gcc
1180$cc = gcc 1304$cc = gcc
@@ -1199,6 +1323,7 @@ $shared_cflag =
1199$shared_ldflag = 1323$shared_ldflag =
1200$shared_extension = 1324$shared_extension =
1201$ranlib = 1325$ranlib =
1326$arflags =
1202 1327
1203*** cc 1328*** cc
1204$cc = cc 1329$cc = cc
@@ -1223,6 +1348,7 @@ $shared_cflag =
1223$shared_ldflag = 1348$shared_ldflag =
1224$shared_extension = 1349$shared_extension =
1225$ranlib = 1350$ranlib =
1351$arflags =
1226 1352
1227*** cray-j90 1353*** cray-j90
1228$cc = cc 1354$cc = cc
@@ -1247,6 +1373,7 @@ $shared_cflag =
1247$shared_ldflag = 1373$shared_ldflag =
1248$shared_extension = 1374$shared_extension =
1249$ranlib = 1375$ranlib =
1376$arflags =
1250 1377
1251*** cray-t3e 1378*** cray-t3e
1252$cc = cc 1379$cc = cc
@@ -1271,12 +1398,13 @@ $shared_cflag =
1271$shared_ldflag = 1398$shared_ldflag =
1272$shared_extension = 1399$shared_extension =
1273$ranlib = 1400$ranlib =
1401$arflags =
1274 1402
1275*** darwin-i386-cc 1403*** darwin-i386-cc
1276$cc = cc 1404$cc = cc
1277$cflags = -O3 -nostdinc -I/System/Library/Frameworks/System.framework/Headers -I/System/Library/Frameworks/System.frameworks/Headers/bsd -I/usr/include -fomit-frame-pointer -Wall -DB_ENDIAN 1405$cflags = -O3 -fomit-frame-pointer -fno-common -DB_ENDIAN
1278$unistd = 1406$unistd =
1279$thread_cflag = (unknown) 1407$thread_cflag = -D_REENTRANT
1280$sys_id = MACOSX 1408$sys_id = MACOSX
1281$lflags = 1409$lflags =
1282$bn_ops = BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR 1410$bn_ops = BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR
@@ -1295,12 +1423,13 @@ $shared_cflag = -fPIC
1295$shared_ldflag = 1423$shared_ldflag =
1296$shared_extension = .$(SHLIB_MAJOR).$(SHLIB_MINOR).dylib 1424$shared_extension = .$(SHLIB_MAJOR).$(SHLIB_MINOR).dylib
1297$ranlib = 1425$ranlib =
1426$arflags =
1298 1427
1299*** darwin-ppc-cc 1428*** darwin-ppc-cc
1300$cc = cc 1429$cc = cc
1301$cflags = -O3 -nostdinc -I/System/Library/Frameworks/System.framework/Headers -I/System/Library/Frameworks/System.frameworks/Headers/bsd -I/usr/include -fomit-frame-pointer -Wall -DB_ENDIAN 1430$cflags = -O3 -fomit-frame-pointer -fno-common -DB_ENDIAN
1302$unistd = 1431$unistd =
1303$thread_cflag = (unknown) 1432$thread_cflag = -D_REENTRANT
1304$sys_id = MACOSX 1433$sys_id = MACOSX
1305$lflags = 1434$lflags =
1306$bn_ops = BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR 1435$bn_ops = BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR
@@ -1319,10 +1448,11 @@ $shared_cflag = -fPIC
1319$shared_ldflag = 1448$shared_ldflag =
1320$shared_extension = .$(SHLIB_MAJOR).$(SHLIB_MINOR).dylib 1449$shared_extension = .$(SHLIB_MAJOR).$(SHLIB_MINOR).dylib
1321$ranlib = 1450$ranlib =
1451$arflags =
1322 1452
1323*** debug 1453*** debug
1324$cc = gcc 1454$cc = gcc
1325$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror 1455$cflags = -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror
1326$unistd = 1456$unistd =
1327$thread_cflag = (unknown) 1457$thread_cflag = (unknown)
1328$sys_id = 1458$sys_id =
@@ -1343,6 +1473,7 @@ $shared_cflag =
1343$shared_ldflag = 1473$shared_ldflag =
1344$shared_extension = 1474$shared_extension =
1345$ranlib = 1475$ranlib =
1476$arflags =
1346 1477
1347*** debug-ben 1478*** debug-ben
1348$cc = gcc 1479$cc = gcc
@@ -1367,6 +1498,7 @@ $shared_cflag =
1367$shared_ldflag = 1498$shared_ldflag =
1368$shared_extension = 1499$shared_extension =
1369$ranlib = 1500$ranlib =
1501$arflags =
1370 1502
1371*** debug-ben-debug 1503*** debug-ben-debug
1372$cc = gcc 1504$cc = gcc
@@ -1391,6 +1523,7 @@ $shared_cflag =
1391$shared_ldflag = 1523$shared_ldflag =
1392$shared_extension = 1524$shared_extension =
1393$ranlib = 1525$ranlib =
1526$arflags =
1394 1527
1395*** debug-ben-openbsd 1528*** debug-ben-openbsd
1396$cc = gcc 1529$cc = gcc
@@ -1415,6 +1548,7 @@ $shared_cflag =
1415$shared_ldflag = 1548$shared_ldflag =
1416$shared_extension = 1549$shared_extension =
1417$ranlib = 1550$ranlib =
1551$arflags =
1418 1552
1419*** debug-ben-openbsd-debug 1553*** debug-ben-openbsd-debug
1420$cc = gcc 1554$cc = gcc
@@ -1439,6 +1573,7 @@ $shared_cflag =
1439$shared_ldflag = 1573$shared_ldflag =
1440$shared_extension = 1574$shared_extension =
1441$ranlib = 1575$ranlib =
1576$arflags =
1442 1577
1443*** debug-ben-strict 1578*** debug-ben-strict
1444$cc = gcc 1579$cc = gcc
@@ -1463,6 +1598,7 @@ $shared_cflag =
1463$shared_ldflag = 1598$shared_ldflag =
1464$shared_extension = 1599$shared_extension =
1465$ranlib = 1600$ranlib =
1601$arflags =
1466 1602
1467*** debug-bodo 1603*** debug-bodo
1468$cc = gcc 1604$cc = gcc
@@ -1487,10 +1623,11 @@ $shared_cflag =
1487$shared_ldflag = 1623$shared_ldflag =
1488$shared_extension = 1624$shared_extension =
1489$ranlib = 1625$ranlib =
1626$arflags =
1490 1627
1491*** debug-levitte-linux-elf 1628*** debug-levitte-linux-elf
1492$cc = gcc 1629$cc = gcc
1493$cflags = -DLEVITTE_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -DPEDANTIC -ggdb -g3 -mcpu=i486 -pedantic -ansi -Wall -W -Wtraditional -Wundef -Wshadow -Wid-clash-31 -Wcast-align -Wconversion -Wno-long-long -pipe 1630$cflags = -DLEVITTE_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -DPEDANTIC -ggdb -g3 -mcpu=i486 -pedantic -ansi -Wall -W -Wundef -Wshadow -Wid-clash-31 -Wcast-align -Wconversion -Wno-long-long -pipe
1494$unistd = 1631$unistd =
1495$thread_cflag = -D_REENTRANT 1632$thread_cflag = -D_REENTRANT
1496$sys_id = 1633$sys_id =
@@ -1511,10 +1648,11 @@ $shared_cflag = -fPIC
1511$shared_ldflag = 1648$shared_ldflag =
1512$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 1649$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
1513$ranlib = 1650$ranlib =
1651$arflags =
1514 1652
1515*** debug-levitte-linux-noasm 1653*** debug-levitte-linux-noasm
1516$cc = gcc 1654$cc = gcc
1517$cflags = -DLEVITTE_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -DPEDANTIC -ggdb -g3 -mcpu=i486 -pedantic -ansi -Wall -W -Wtraditional -Wundef -Wshadow -Wid-clash-31 -Wcast-align -Wconversion -Wno-long-long -pipe 1655$cflags = -DLEVITTE_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -DPEDANTIC -ggdb -g3 -mcpu=i486 -pedantic -ansi -Wall -W -Wundef -Wshadow -Wid-clash-31 -Wcast-align -Wconversion -Wno-long-long -pipe
1518$unistd = 1656$unistd =
1519$thread_cflag = -D_REENTRANT 1657$thread_cflag = -D_REENTRANT
1520$sys_id = 1658$sys_id =
@@ -1535,6 +1673,7 @@ $shared_cflag = -fPIC
1535$shared_ldflag = 1673$shared_ldflag =
1536$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 1674$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
1537$ranlib = 1675$ranlib =
1676$arflags =
1538 1677
1539*** debug-linux-elf 1678*** debug-linux-elf
1540$cc = gcc 1679$cc = gcc
@@ -1559,6 +1698,7 @@ $shared_cflag = -fPIC
1559$shared_ldflag = 1698$shared_ldflag =
1560$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 1699$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
1561$ranlib = 1700$ranlib =
1701$arflags =
1562 1702
1563*** debug-linux-elf-noefence 1703*** debug-linux-elf-noefence
1564$cc = gcc 1704$cc = gcc
@@ -1583,6 +1723,7 @@ $shared_cflag =
1583$shared_ldflag = 1723$shared_ldflag =
1584$shared_extension = 1724$shared_extension =
1585$ranlib = 1725$ranlib =
1726$arflags =
1586 1727
1587*** debug-linux-pentium 1728*** debug-linux-pentium
1588$cc = gcc 1729$cc = gcc
@@ -1607,6 +1748,7 @@ $shared_cflag =
1607$shared_ldflag = 1748$shared_ldflag =
1608$shared_extension = 1749$shared_extension =
1609$ranlib = 1750$ranlib =
1751$arflags =
1610 1752
1611*** debug-linux-ppro 1753*** debug-linux-ppro
1612$cc = gcc 1754$cc = gcc
@@ -1631,6 +1773,7 @@ $shared_cflag =
1631$shared_ldflag = 1773$shared_ldflag =
1632$shared_extension = 1774$shared_extension =
1633$ranlib = 1775$ranlib =
1776$arflags =
1634 1777
1635*** debug-rse 1778*** debug-rse
1636$cc = cc 1779$cc = cc
@@ -1655,6 +1798,7 @@ $shared_cflag =
1655$shared_ldflag = 1798$shared_ldflag =
1656$shared_extension = 1799$shared_extension =
1657$ranlib = 1800$ranlib =
1801$arflags =
1658 1802
1659*** debug-solaris-sparcv8-cc 1803*** debug-solaris-sparcv8-cc
1660$cc = cc 1804$cc = cc
@@ -1679,6 +1823,7 @@ $shared_cflag = -KPIC
1679$shared_ldflag = 1823$shared_ldflag =
1680$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 1824$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
1681$ranlib = 1825$ranlib =
1826$arflags =
1682 1827
1683*** debug-solaris-sparcv8-gcc 1828*** debug-solaris-sparcv8-gcc
1684$cc = gcc 1829$cc = gcc
@@ -1703,6 +1848,7 @@ $shared_cflag = -fPIC
1703$shared_ldflag = 1848$shared_ldflag =
1704$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 1849$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
1705$ranlib = 1850$ranlib =
1851$arflags =
1706 1852
1707*** debug-solaris-sparcv9-cc 1853*** debug-solaris-sparcv9-cc
1708$cc = cc 1854$cc = cc
@@ -1727,6 +1873,7 @@ $shared_cflag = -KPIC
1727$shared_ldflag = 1873$shared_ldflag =
1728$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 1874$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
1729$ranlib = 1875$ranlib =
1876$arflags =
1730 1877
1731*** debug-solaris-sparcv9-gcc 1878*** debug-solaris-sparcv9-gcc
1732$cc = gcc 1879$cc = gcc
@@ -1751,6 +1898,7 @@ $shared_cflag = -fPIC
1751$shared_ldflag = 1898$shared_ldflag =
1752$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 1899$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
1753$ranlib = 1900$ranlib =
1901$arflags =
1754 1902
1755*** debug-steve 1903*** debug-steve
1756$cc = gcc 1904$cc = gcc
@@ -1775,6 +1923,7 @@ $shared_cflag =
1775$shared_ldflag = 1923$shared_ldflag =
1776$shared_extension = 1924$shared_extension =
1777$ranlib = 1925$ranlib =
1926$arflags =
1778 1927
1779*** debug-steve-linux-pseudo64 1928*** debug-steve-linux-pseudo64
1780$cc = gcc 1929$cc = gcc
@@ -1799,6 +1948,7 @@ $shared_cflag =
1799$shared_ldflag = 1948$shared_ldflag =
1800$shared_extension = 1949$shared_extension =
1801$ranlib = 1950$ranlib =
1951$arflags =
1802 1952
1803*** debug-ulf 1953*** debug-ulf
1804$cc = gcc 1954$cc = gcc
@@ -1823,6 +1973,7 @@ $shared_cflag =
1823$shared_ldflag = 1973$shared_ldflag =
1824$shared_extension = 1974$shared_extension =
1825$ranlib = 1975$ranlib =
1976$arflags =
1826 1977
1827*** dgux-R3-gcc 1978*** dgux-R3-gcc
1828$cc = gcc 1979$cc = gcc
@@ -1847,6 +1998,7 @@ $shared_cflag =
1847$shared_ldflag = 1998$shared_ldflag =
1848$shared_extension = 1999$shared_extension =
1849$ranlib = 2000$ranlib =
2001$arflags =
1850 2002
1851*** dgux-R4-gcc 2003*** dgux-R4-gcc
1852$cc = gcc 2004$cc = gcc
@@ -1871,6 +2023,7 @@ $shared_cflag =
1871$shared_ldflag = 2023$shared_ldflag =
1872$shared_extension = 2024$shared_extension =
1873$ranlib = 2025$ranlib =
2026$arflags =
1874 2027
1875*** dgux-R4-x86-gcc 2028*** dgux-R4-x86-gcc
1876$cc = gcc 2029$cc = gcc
@@ -1895,6 +2048,7 @@ $shared_cflag =
1895$shared_ldflag = 2048$shared_ldflag =
1896$shared_extension = 2049$shared_extension =
1897$ranlib = 2050$ranlib =
2051$arflags =
1898 2052
1899*** dist 2053*** dist
1900$cc = cc 2054$cc = cc
@@ -1919,6 +2073,7 @@ $shared_cflag =
1919$shared_ldflag = 2073$shared_ldflag =
1920$shared_extension = 2074$shared_extension =
1921$ranlib = 2075$ranlib =
2076$arflags =
1922 2077
1923*** gcc 2078*** gcc
1924$cc = gcc 2079$cc = gcc
@@ -1943,6 +2098,7 @@ $shared_cflag =
1943$shared_ldflag = 2098$shared_ldflag =
1944$shared_extension = 2099$shared_extension =
1945$ranlib = 2100$ranlib =
2101$arflags =
1946 2102
1947*** hpux-brokencc 2103*** hpux-brokencc
1948$cc = cc 2104$cc = cc
@@ -1967,6 +2123,7 @@ $shared_cflag = +Z
1967$shared_ldflag = 2123$shared_ldflag =
1968$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2124$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
1969$ranlib = 2125$ranlib =
2126$arflags =
1970 2127
1971*** hpux-brokengcc 2128*** hpux-brokengcc
1972$cc = gcc 2129$cc = gcc
@@ -1991,6 +2148,7 @@ $shared_cflag = -fPIC
1991$shared_ldflag = 2148$shared_ldflag =
1992$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2149$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
1993$ranlib = 2150$ranlib =
2151$arflags =
1994 2152
1995*** hpux-cc 2153*** hpux-cc
1996$cc = cc 2154$cc = cc
@@ -2015,6 +2173,7 @@ $shared_cflag = +Z
2015$shared_ldflag = 2173$shared_ldflag =
2016$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2174$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2017$ranlib = 2175$ranlib =
2176$arflags =
2018 2177
2019*** hpux-gcc 2178*** hpux-gcc
2020$cc = gcc 2179$cc = gcc
@@ -2039,6 +2198,7 @@ $shared_cflag = -fPIC
2039$shared_ldflag = 2198$shared_ldflag =
2040$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2199$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2041$ranlib = 2200$ranlib =
2201$arflags =
2042 2202
2043*** hpux-ia64-cc 2203*** hpux-ia64-cc
2044$cc = cc 2204$cc = cc
@@ -2063,6 +2223,7 @@ $shared_cflag = +Z
2063$shared_ldflag = 2223$shared_ldflag =
2064$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2224$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2065$ranlib = 2225$ranlib =
2226$arflags =
2066 2227
2067*** hpux-m68k-gcc 2228*** hpux-m68k-gcc
2068$cc = gcc 2229$cc = gcc
@@ -2087,6 +2248,7 @@ $shared_cflag =
2087$shared_ldflag = 2248$shared_ldflag =
2088$shared_extension = 2249$shared_extension =
2089$ranlib = 2250$ranlib =
2251$arflags =
2090 2252
2091*** hpux-parisc-cc 2253*** hpux-parisc-cc
2092$cc = cc 2254$cc = cc
@@ -2111,6 +2273,7 @@ $shared_cflag = +Z
2111$shared_ldflag = 2273$shared_ldflag =
2112$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2274$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2113$ranlib = 2275$ranlib =
2276$arflags =
2114 2277
2115*** hpux-parisc-cc-o4 2278*** hpux-parisc-cc-o4
2116$cc = cc 2279$cc = cc
@@ -2135,6 +2298,7 @@ $shared_cflag = +Z
2135$shared_ldflag = 2298$shared_ldflag =
2136$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2299$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2137$ranlib = 2300$ranlib =
2301$arflags =
2138 2302
2139*** hpux-parisc-gcc 2303*** hpux-parisc-gcc
2140$cc = gcc 2304$cc = gcc
@@ -2159,6 +2323,7 @@ $shared_cflag = -fPIC
2159$shared_ldflag = 2323$shared_ldflag =
2160$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2324$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2161$ranlib = 2325$ranlib =
2326$arflags =
2162 2327
2163*** hpux-parisc1_1-cc 2328*** hpux-parisc1_1-cc
2164$cc = cc 2329$cc = cc
@@ -2183,6 +2348,7 @@ $shared_cflag = +Z
2183$shared_ldflag = 2348$shared_ldflag =
2184$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2349$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2185$ranlib = 2350$ranlib =
2351$arflags =
2186 2352
2187*** hpux-parisc2-cc 2353*** hpux-parisc2-cc
2188$cc = cc 2354$cc = cc
@@ -2207,6 +2373,7 @@ $shared_cflag = +Z
2207$shared_ldflag = 2373$shared_ldflag =
2208$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2374$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2209$ranlib = 2375$ranlib =
2376$arflags =
2210 2377
2211*** hpux10-brokencc 2378*** hpux10-brokencc
2212$cc = cc 2379$cc = cc
@@ -2231,6 +2398,7 @@ $shared_cflag = +Z
2231$shared_ldflag = 2398$shared_ldflag =
2232$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2399$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2233$ranlib = 2400$ranlib =
2401$arflags =
2234 2402
2235*** hpux10-brokengcc 2403*** hpux10-brokengcc
2236$cc = gcc 2404$cc = gcc
@@ -2255,6 +2423,7 @@ $shared_cflag = -fPIC
2255$shared_ldflag = 2423$shared_ldflag =
2256$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2424$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2257$ranlib = 2425$ranlib =
2426$arflags =
2258 2427
2259*** hpux10-cc 2428*** hpux10-cc
2260$cc = cc 2429$cc = cc
@@ -2279,6 +2448,7 @@ $shared_cflag = +Z
2279$shared_ldflag = 2448$shared_ldflag =
2280$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2449$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2281$ranlib = 2450$ranlib =
2451$arflags =
2282 2452
2283*** hpux10-gcc 2453*** hpux10-gcc
2284$cc = gcc 2454$cc = gcc
@@ -2303,6 +2473,7 @@ $shared_cflag = -fPIC
2303$shared_ldflag = 2473$shared_ldflag =
2304$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2474$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2305$ranlib = 2475$ranlib =
2476$arflags =
2306 2477
2307*** hpux64-ia64-cc 2478*** hpux64-ia64-cc
2308$cc = cc 2479$cc = cc
@@ -2327,6 +2498,7 @@ $shared_cflag = +Z
2327$shared_ldflag = 2498$shared_ldflag =
2328$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2499$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2329$ranlib = 2500$ranlib =
2501$arflags =
2330 2502
2331*** hpux64-parisc-cc 2503*** hpux64-parisc-cc
2332$cc = cc 2504$cc = cc
@@ -2351,6 +2523,32 @@ $shared_cflag = +Z
2351$shared_ldflag = 2523$shared_ldflag =
2352$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2524$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2353$ranlib = 2525$ranlib =
2526$arflags =
2527
2528*** hpux64-parisc-gcc
2529$cc = gcc
2530$cflags = -DB_ENDIAN -DMD32_XARRAY
2531$unistd =
2532$thread_cflag = -D_REENTRANT
2533$sys_id =
2534$lflags = -ldl
2535$bn_ops = SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT
2536$bn_obj =
2537$des_obj =
2538$bf_obj =
2539$md5_obj =
2540$sha1_obj =
2541$cast_obj =
2542$rc4_obj =
2543$rmd160_obj =
2544$rc5_obj =
2545$dso_scheme = dlfcn
2546$shared_target= hpux64-shared
2547$shared_cflag = -fpic
2548$shared_ldflag =
2549$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2550$ranlib =
2551$arflags =
2354 2552
2355*** hpux64-parisc2-cc 2553*** hpux64-parisc2-cc
2356$cc = cc 2554$cc = cc
@@ -2375,6 +2573,7 @@ $shared_cflag = +Z
2375$shared_ldflag = 2573$shared_ldflag =
2376$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2574$shared_extension = .sl.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2377$ranlib = 2575$ranlib =
2576$arflags =
2378 2577
2379*** hurd-x86 2578*** hurd-x86
2380$cc = gcc 2579$cc = gcc
@@ -2399,6 +2598,7 @@ $shared_cflag = -fPIC
2399$shared_ldflag = 2598$shared_ldflag =
2400$shared_extension = 2599$shared_extension =
2401$ranlib = 2600$ranlib =
2601$arflags =
2402 2602
2403*** irix-cc 2603*** irix-cc
2404$cc = cc 2604$cc = cc
@@ -2423,6 +2623,7 @@ $shared_cflag =
2423$shared_ldflag = 2623$shared_ldflag =
2424$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2624$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2425$ranlib = 2625$ranlib =
2626$arflags =
2426 2627
2427*** irix-gcc 2628*** irix-gcc
2428$cc = gcc 2629$cc = gcc
@@ -2447,6 +2648,7 @@ $shared_cflag =
2447$shared_ldflag = 2648$shared_ldflag =
2448$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2649$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2449$ranlib = 2650$ranlib =
2651$arflags =
2450 2652
2451*** irix-mips3-cc 2653*** irix-mips3-cc
2452$cc = cc 2654$cc = cc
@@ -2471,6 +2673,7 @@ $shared_cflag =
2471$shared_ldflag = 2673$shared_ldflag =
2472$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2674$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2473$ranlib = 2675$ranlib =
2676$arflags =
2474 2677
2475*** irix-mips3-gcc 2678*** irix-mips3-gcc
2476$cc = gcc 2679$cc = gcc
@@ -2495,6 +2698,7 @@ $shared_cflag =
2495$shared_ldflag = 2698$shared_ldflag =
2496$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2699$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2497$ranlib = 2700$ranlib =
2701$arflags =
2498 2702
2499*** irix64-mips4-cc 2703*** irix64-mips4-cc
2500$cc = cc 2704$cc = cc
@@ -2519,6 +2723,7 @@ $shared_cflag =
2519$shared_ldflag = 2723$shared_ldflag =
2520$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2724$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2521$ranlib = 2725$ranlib =
2726$arflags =
2522 2727
2523*** irix64-mips4-gcc 2728*** irix64-mips4-gcc
2524$cc = gcc 2729$cc = gcc
@@ -2543,6 +2748,7 @@ $shared_cflag =
2543$shared_ldflag = 2748$shared_ldflag =
2544$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2749$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2545$ranlib = 2750$ranlib =
2751$arflags =
2546 2752
2547*** linux-alpha+bwx-ccc 2753*** linux-alpha+bwx-ccc
2548$cc = ccc 2754$cc = ccc
@@ -2567,6 +2773,7 @@ $shared_cflag =
2567$shared_ldflag = 2773$shared_ldflag =
2568$shared_extension = 2774$shared_extension =
2569$ranlib = 2775$ranlib =
2776$arflags =
2570 2777
2571*** linux-alpha+bwx-gcc 2778*** linux-alpha+bwx-gcc
2572$cc = gcc 2779$cc = gcc
@@ -2591,6 +2798,7 @@ $shared_cflag = -fPIC
2591$shared_ldflag = 2798$shared_ldflag =
2592$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2799$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2593$ranlib = 2800$ranlib =
2801$arflags =
2594 2802
2595*** linux-alpha-ccc 2803*** linux-alpha-ccc
2596$cc = ccc 2804$cc = ccc
@@ -2615,6 +2823,7 @@ $shared_cflag =
2615$shared_ldflag = 2823$shared_ldflag =
2616$shared_extension = 2824$shared_extension =
2617$ranlib = 2825$ranlib =
2826$arflags =
2618 2827
2619*** linux-alpha-gcc 2828*** linux-alpha-gcc
2620$cc = gcc 2829$cc = gcc
@@ -2639,6 +2848,7 @@ $shared_cflag = -fPIC
2639$shared_ldflag = 2848$shared_ldflag =
2640$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2849$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2641$ranlib = 2850$ranlib =
2851$arflags =
2642 2852
2643*** linux-aout 2853*** linux-aout
2644$cc = gcc 2854$cc = gcc
@@ -2663,6 +2873,7 @@ $shared_cflag =
2663$shared_ldflag = 2873$shared_ldflag =
2664$shared_extension = 2874$shared_extension =
2665$ranlib = 2875$ranlib =
2876$arflags =
2666 2877
2667*** linux-elf 2878*** linux-elf
2668$cc = gcc 2879$cc = gcc
@@ -2687,6 +2898,7 @@ $shared_cflag = -fPIC
2687$shared_ldflag = 2898$shared_ldflag =
2688$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2899$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2689$ranlib = 2900$ranlib =
2901$arflags =
2690 2902
2691*** linux-elf-arm 2903*** linux-elf-arm
2692$cc = gcc 2904$cc = gcc
@@ -2711,6 +2923,7 @@ $shared_cflag = -fPIC
2711$shared_ldflag = 2923$shared_ldflag =
2712$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2924$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2713$ranlib = 2925$ranlib =
2926$arflags =
2714 2927
2715*** linux-ia64 2928*** linux-ia64
2716$cc = gcc 2929$cc = gcc
@@ -2735,6 +2948,7 @@ $shared_cflag = -fPIC
2735$shared_ldflag = 2948$shared_ldflag =
2736$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2949$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2737$ranlib = 2950$ranlib =
2951$arflags =
2738 2952
2739*** linux-k6 2953*** linux-k6
2740$cc = gcc 2954$cc = gcc
@@ -2759,6 +2973,7 @@ $shared_cflag = -fPIC
2759$shared_ldflag = 2973$shared_ldflag =
2760$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 2974$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2761$ranlib = 2975$ranlib =
2976$arflags =
2762 2977
2763*** linux-m68k 2978*** linux-m68k
2764$cc = gcc 2979$cc = gcc
@@ -2783,6 +2998,7 @@ $shared_cflag =
2783$shared_ldflag = 2998$shared_ldflag =
2784$shared_extension = 2999$shared_extension =
2785$ranlib = 3000$ranlib =
3001$arflags =
2786 3002
2787*** linux-mips 3003*** linux-mips
2788$cc = gcc 3004$cc = gcc
@@ -2807,6 +3023,7 @@ $shared_cflag =
2807$shared_ldflag = 3023$shared_ldflag =
2808$shared_extension = 3024$shared_extension =
2809$ranlib = 3025$ranlib =
3026$arflags =
2810 3027
2811*** linux-mipsel 3028*** linux-mipsel
2812$cc = gcc 3029$cc = gcc
@@ -2831,6 +3048,7 @@ $shared_cflag =
2831$shared_ldflag = 3048$shared_ldflag =
2832$shared_extension = 3049$shared_extension =
2833$ranlib = 3050$ranlib =
3051$arflags =
2834 3052
2835*** linux-parisc 3053*** linux-parisc
2836$cc = gcc 3054$cc = gcc
@@ -2855,6 +3073,7 @@ $shared_cflag =
2855$shared_ldflag = 3073$shared_ldflag =
2856$shared_extension = 3074$shared_extension =
2857$ranlib = 3075$ranlib =
3076$arflags =
2858 3077
2859*** linux-pentium 3078*** linux-pentium
2860$cc = gcc 3079$cc = gcc
@@ -2879,6 +3098,7 @@ $shared_cflag = -fPIC
2879$shared_ldflag = 3098$shared_ldflag =
2880$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3099$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2881$ranlib = 3100$ranlib =
3101$arflags =
2882 3102
2883*** linux-ppc 3103*** linux-ppc
2884$cc = gcc 3104$cc = gcc
@@ -2903,6 +3123,7 @@ $shared_cflag = -fPIC
2903$shared_ldflag = 3123$shared_ldflag =
2904$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3124$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2905$ranlib = 3125$ranlib =
3126$arflags =
2906 3127
2907*** linux-ppro 3128*** linux-ppro
2908$cc = gcc 3129$cc = gcc
@@ -2927,14 +3148,15 @@ $shared_cflag = -fPIC
2927$shared_ldflag = 3148$shared_ldflag =
2928$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3149$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2929$ranlib = 3150$ranlib =
3151$arflags =
2930 3152
2931*** linux-s390 3153*** linux-s390
2932$cc = gcc 3154$cc = gcc
2933$cflags = -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall 3155$cflags = -DB_ENDIAN -DTERMIO -DNO_ASM -O3 -fomit-frame-pointer -Wall
2934$unistd = 3156$unistd =
2935$thread_cflag = -D_REENTRANT 3157$thread_cflag = -D_REENTRANT
2936$sys_id = 3158$sys_id =
2937$lflags = 3159$lflags = -ldl
2938$bn_ops = BN_LLONG 3160$bn_ops = BN_LLONG
2939$bn_obj = 3161$bn_obj =
2940$des_obj = 3162$des_obj =
@@ -2945,12 +3167,13 @@ $cast_obj =
2945$rc4_obj = 3167$rc4_obj =
2946$rmd160_obj = 3168$rmd160_obj =
2947$rc5_obj = 3169$rc5_obj =
2948$dso_scheme = 3170$dso_scheme = dlfcn
2949$shared_target= 3171$shared_target= linux-shared
2950$shared_cflag = 3172$shared_cflag = -fPIC
2951$shared_ldflag = 3173$shared_ldflag =
2952$shared_extension = 3174$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2953$ranlib = 3175$ranlib =
3176$arflags =
2954 3177
2955*** linux-s390x 3178*** linux-s390x
2956$cc = gcc 3179$cc = gcc
@@ -2958,7 +3181,7 @@ $cflags = -DB_ENDIAN -DTERMIO -DNO_ASM -O3 -fomit-frame-pointer -Wall
2958$unistd = 3181$unistd =
2959$thread_cflag = -D_REENTRANT 3182$thread_cflag = -D_REENTRANT
2960$sys_id = 3183$sys_id =
2961$lflags = 3184$lflags = -ldl
2962$bn_ops = SIXTY_FOUR_BIT_LONG 3185$bn_ops = SIXTY_FOUR_BIT_LONG
2963$bn_obj = 3186$bn_obj =
2964$des_obj = 3187$des_obj =
@@ -2969,12 +3192,13 @@ $cast_obj =
2969$rc4_obj = 3192$rc4_obj =
2970$rmd160_obj = 3193$rmd160_obj =
2971$rc5_obj = 3194$rc5_obj =
2972$dso_scheme = 3195$dso_scheme = dlfcn
2973$shared_target= linux-shared 3196$shared_target= linux-shared
2974$shared_cflag = -fPIC 3197$shared_cflag = -fPIC
2975$shared_ldflag = 3198$shared_ldflag =
2976$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3199$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
2977$ranlib = 3200$ranlib =
3201$arflags =
2978 3202
2979*** linux-sparcv7 3203*** linux-sparcv7
2980$cc = gcc 3204$cc = gcc
@@ -2999,6 +3223,7 @@ $shared_cflag =
2999$shared_ldflag = 3223$shared_ldflag =
3000$shared_extension = 3224$shared_extension =
3001$ranlib = 3225$ranlib =
3226$arflags =
3002 3227
3003*** linux-sparcv8 3228*** linux-sparcv8
3004$cc = gcc 3229$cc = gcc
@@ -3023,6 +3248,7 @@ $shared_cflag = -fPIC
3023$shared_ldflag = 3248$shared_ldflag =
3024$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3249$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3025$ranlib = 3250$ranlib =
3251$arflags =
3026 3252
3027*** linux-sparcv9 3253*** linux-sparcv9
3028$cc = gcc 3254$cc = gcc
@@ -3047,6 +3273,7 @@ $shared_cflag = -fPIC
3047$shared_ldflag = 3273$shared_ldflag =
3048$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3274$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3049$ranlib = 3275$ranlib =
3276$arflags =
3050 3277
3051*** ncr-scde 3278*** ncr-scde
3052$cc = cc 3279$cc = cc
@@ -3071,6 +3298,7 @@ $shared_cflag =
3071$shared_ldflag = 3298$shared_ldflag =
3072$shared_extension = 3299$shared_extension =
3073$ranlib = 3300$ranlib =
3301$arflags =
3074 3302
3075*** newsos4-gcc 3303*** newsos4-gcc
3076$cc = gcc 3304$cc = gcc
@@ -3095,6 +3323,7 @@ $shared_cflag =
3095$shared_ldflag = 3323$shared_ldflag =
3096$shared_extension = 3324$shared_extension =
3097$ranlib = 3325$ranlib =
3326$arflags =
3098 3327
3099*** nextstep 3328*** nextstep
3100$cc = cc 3329$cc = cc
@@ -3119,6 +3348,7 @@ $shared_cflag =
3119$shared_ldflag = 3348$shared_ldflag =
3120$shared_extension = 3349$shared_extension =
3121$ranlib = 3350$ranlib =
3351$arflags =
3122 3352
3123*** nextstep3.3 3353*** nextstep3.3
3124$cc = cc 3354$cc = cc
@@ -3143,6 +3373,7 @@ $shared_cflag =
3143$shared_ldflag = 3373$shared_ldflag =
3144$shared_extension = 3374$shared_extension =
3145$ranlib = 3375$ranlib =
3376$arflags =
3146 3377
3147*** purify 3378*** purify
3148$cc = purify gcc 3379$cc = purify gcc
@@ -3167,6 +3398,7 @@ $shared_cflag =
3167$shared_ldflag = 3398$shared_ldflag =
3168$shared_extension = 3399$shared_extension =
3169$ranlib = 3400$ranlib =
3401$arflags =
3170 3402
3171*** qnx4 3403*** qnx4
3172$cc = cc 3404$cc = cc
@@ -3191,6 +3423,7 @@ $shared_cflag =
3191$shared_ldflag = 3423$shared_ldflag =
3192$shared_extension = 3424$shared_extension =
3193$ranlib = 3425$ranlib =
3426$arflags =
3194 3427
3195*** qnx6 3428*** qnx6
3196$cc = cc 3429$cc = cc
@@ -3215,6 +3448,7 @@ $shared_cflag =
3215$shared_ldflag = 3448$shared_ldflag =
3216$shared_extension = 3449$shared_extension =
3217$ranlib = 3450$ranlib =
3451$arflags =
3218 3452
3219*** rhapsody-ppc-cc 3453*** rhapsody-ppc-cc
3220$cc = cc 3454$cc = cc
@@ -3239,6 +3473,7 @@ $shared_cflag =
3239$shared_ldflag = 3473$shared_ldflag =
3240$shared_extension = 3474$shared_extension =
3241$ranlib = 3475$ranlib =
3476$arflags =
3242 3477
3243*** sco3-gcc 3478*** sco3-gcc
3244$cc = gcc 3479$cc = gcc
@@ -3263,6 +3498,7 @@ $shared_cflag =
3263$shared_ldflag = 3498$shared_ldflag =
3264$shared_extension = 3499$shared_extension =
3265$ranlib = 3500$ranlib =
3501$arflags =
3266 3502
3267*** sco5-cc 3503*** sco5-cc
3268$cc = cc 3504$cc = cc
@@ -3287,6 +3523,7 @@ $shared_cflag = -Kpic
3287$shared_ldflag = 3523$shared_ldflag =
3288$shared_extension = 3524$shared_extension =
3289$ranlib = 3525$ranlib =
3526$arflags =
3290 3527
3291*** sco5-cc-pentium 3528*** sco5-cc-pentium
3292$cc = cc 3529$cc = cc
@@ -3311,6 +3548,7 @@ $shared_cflag =
3311$shared_ldflag = 3548$shared_ldflag =
3312$shared_extension = 3549$shared_extension =
3313$ranlib = 3550$ranlib =
3551$arflags =
3314 3552
3315*** sco5-gcc 3553*** sco5-gcc
3316$cc = gcc 3554$cc = gcc
@@ -3335,6 +3573,7 @@ $shared_cflag = -fPIC
3335$shared_ldflag = 3573$shared_ldflag =
3336$shared_extension = 3574$shared_extension =
3337$ranlib = 3575$ranlib =
3576$arflags =
3338 3577
3339*** solaris-sparc-sc3 3578*** solaris-sparc-sc3
3340$cc = cc 3579$cc = cc
@@ -3359,6 +3598,7 @@ $shared_cflag = -KPIC
3359$shared_ldflag = 3598$shared_ldflag =
3360$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3599$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3361$ranlib = 3600$ranlib =
3601$arflags =
3362 3602
3363*** solaris-sparcv7-cc 3603*** solaris-sparcv7-cc
3364$cc = cc 3604$cc = cc
@@ -3383,6 +3623,7 @@ $shared_cflag = -KPIC
3383$shared_ldflag = 3623$shared_ldflag =
3384$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3624$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3385$ranlib = 3625$ranlib =
3626$arflags =
3386 3627
3387*** solaris-sparcv7-gcc 3628*** solaris-sparcv7-gcc
3388$cc = gcc 3629$cc = gcc
@@ -3407,6 +3648,7 @@ $shared_cflag = -fPIC
3407$shared_ldflag = 3648$shared_ldflag =
3408$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3649$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3409$ranlib = 3650$ranlib =
3651$arflags =
3410 3652
3411*** solaris-sparcv8-cc 3653*** solaris-sparcv8-cc
3412$cc = cc 3654$cc = cc
@@ -3431,6 +3673,7 @@ $shared_cflag = -KPIC
3431$shared_ldflag = 3673$shared_ldflag =
3432$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3674$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3433$ranlib = 3675$ranlib =
3676$arflags =
3434 3677
3435*** solaris-sparcv8-gcc 3678*** solaris-sparcv8-gcc
3436$cc = gcc 3679$cc = gcc
@@ -3455,6 +3698,7 @@ $shared_cflag = -fPIC
3455$shared_ldflag = 3698$shared_ldflag =
3456$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3699$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3457$ranlib = 3700$ranlib =
3701$arflags =
3458 3702
3459*** solaris-sparcv9-cc 3703*** solaris-sparcv9-cc
3460$cc = cc 3704$cc = cc
@@ -3479,6 +3723,7 @@ $shared_cflag = -KPIC
3479$shared_ldflag = 3723$shared_ldflag =
3480$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3724$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3481$ranlib = 3725$ranlib =
3726$arflags =
3482 3727
3483*** solaris-sparcv9-gcc 3728*** solaris-sparcv9-gcc
3484$cc = gcc 3729$cc = gcc
@@ -3503,6 +3748,7 @@ $shared_cflag = -fPIC
3503$shared_ldflag = 3748$shared_ldflag =
3504$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3749$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3505$ranlib = 3750$ranlib =
3751$arflags =
3506 3752
3507*** solaris-sparcv9-gcc27 3753*** solaris-sparcv9-gcc27
3508$cc = gcc 3754$cc = gcc
@@ -3527,6 +3773,7 @@ $shared_cflag = -fPIC
3527$shared_ldflag = 3773$shared_ldflag =
3528$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3774$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3529$ranlib = 3775$ranlib =
3776$arflags =
3530 3777
3531*** solaris-x86-cc 3778*** solaris-x86-cc
3532$cc = cc 3779$cc = cc
@@ -3551,6 +3798,7 @@ $shared_cflag = -KPIC
3551$shared_ldflag = 3798$shared_ldflag =
3552$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3799$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3553$ranlib = 3800$ranlib =
3801$arflags =
3554 3802
3555*** solaris-x86-gcc 3803*** solaris-x86-gcc
3556$cc = gcc 3804$cc = gcc
@@ -3575,6 +3823,7 @@ $shared_cflag = -fPIC
3575$shared_ldflag = 3823$shared_ldflag =
3576$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3824$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3577$ranlib = 3825$ranlib =
3826$arflags =
3578 3827
3579*** solaris64-sparcv9-cc 3828*** solaris64-sparcv9-cc
3580$cc = cc 3829$cc = cc
@@ -3599,6 +3848,7 @@ $shared_cflag = -KPIC
3599$shared_ldflag = -xarch=v9 3848$shared_ldflag = -xarch=v9
3600$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3849$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3601$ranlib = /usr/ccs/bin/ar rs 3850$ranlib = /usr/ccs/bin/ar rs
3851$arflags =
3602 3852
3603*** solaris64-sparcv9-gcc 3853*** solaris64-sparcv9-gcc
3604$cc = gcc 3854$cc = gcc
@@ -3620,9 +3870,10 @@ $rc5_obj =
3620$dso_scheme = dlfcn 3870$dso_scheme = dlfcn
3621$shared_target= solaris-shared 3871$shared_target= solaris-shared
3622$shared_cflag = -fPIC 3872$shared_cflag = -fPIC
3623$shared_ldflag = 3873$shared_ldflag = -m64
3624$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3874$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3625$ranlib = 3875$ranlib =
3876$arflags =
3626 3877
3627*** solaris64-sparcv9-gcc31 3878*** solaris64-sparcv9-gcc31
3628$cc = gcc 3879$cc = gcc
@@ -3644,9 +3895,10 @@ $rc5_obj =
3644$dso_scheme = dlfcn 3895$dso_scheme = dlfcn
3645$shared_target= solaris-shared 3896$shared_target= solaris-shared
3646$shared_cflag = -fPIC 3897$shared_cflag = -fPIC
3647$shared_ldflag = 3898$shared_ldflag = -m64
3648$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 3899$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3649$ranlib = 3900$ranlib =
3901$arflags =
3650 3902
3651*** sunos-gcc 3903*** sunos-gcc
3652$cc = gcc 3904$cc = gcc
@@ -3671,6 +3923,7 @@ $shared_cflag =
3671$shared_ldflag = 3923$shared_ldflag =
3672$shared_extension = 3924$shared_extension =
3673$ranlib = 3925$ranlib =
3926$arflags =
3674 3927
3675*** ultrix-cc 3928*** ultrix-cc
3676$cc = cc 3929$cc = cc
@@ -3695,6 +3948,7 @@ $shared_cflag =
3695$shared_ldflag = 3948$shared_ldflag =
3696$shared_extension = 3949$shared_extension =
3697$ranlib = 3950$ranlib =
3951$arflags =
3698 3952
3699*** ultrix-gcc 3953*** ultrix-gcc
3700$cc = gcc 3954$cc = gcc
@@ -3719,14 +3973,15 @@ $shared_cflag =
3719$shared_ldflag = 3973$shared_ldflag =
3720$shared_extension = 3974$shared_extension =
3721$ranlib = 3975$ranlib =
3976$arflags =
3722 3977
3723*** unixware-2.0 3978*** unixware-2.0
3724$cc = cc 3979$cc = cc
3725$cflags = -DFILIO_H 3980$cflags = -DFILIO_H -DNO_STRINGS_H
3726$unistd = 3981$unistd =
3727$thread_cflag = -Kthread 3982$thread_cflag = -Kthread
3728$sys_id = 3983$sys_id =
3729$lflags = -lsocket -lnsl -lx 3984$lflags = -lsocket -lnsl -lresolv -lx
3730$bn_ops = DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT 3985$bn_ops = DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
3731$bn_obj = 3986$bn_obj =
3732$des_obj = 3987$des_obj =
@@ -3743,14 +3998,15 @@ $shared_cflag =
3743$shared_ldflag = 3998$shared_ldflag =
3744$shared_extension = 3999$shared_extension =
3745$ranlib = 4000$ranlib =
4001$arflags =
3746 4002
3747*** unixware-2.0-pentium 4003*** unixware-2.0-pentium
3748$cc = cc 4004$cc = cc
3749$cflags = -DFILIO_H -Kpentium 4005$cflags = -DFILIO_H -DNO_STRINGS_H -Kpentium
3750$unistd = 4006$unistd =
3751$thread_cflag = -Kthread 4007$thread_cflag = -Kthread
3752$sys_id = 4008$sys_id =
3753$lflags = -lsocket -lnsl -lx 4009$lflags = -lsocket -lnsl -lresolv -lx
3754$bn_ops = MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL 4010$bn_ops = MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
3755$bn_obj = 4011$bn_obj =
3756$des_obj = 4012$des_obj =
@@ -3767,6 +4023,7 @@ $shared_cflag =
3767$shared_ldflag = 4023$shared_ldflag =
3768$shared_extension = 4024$shared_extension =
3769$ranlib = 4025$ranlib =
4026$arflags =
3770 4027
3771*** unixware-2.1 4028*** unixware-2.1
3772$cc = cc 4029$cc = cc
@@ -3774,7 +4031,7 @@ $cflags = -O -DFILIO_H
3774$unistd = 4031$unistd =
3775$thread_cflag = -Kthread 4032$thread_cflag = -Kthread
3776$sys_id = 4033$sys_id =
3777$lflags = -lsocket -lnsl -lx 4034$lflags = -lsocket -lnsl -lresolv -lx
3778$bn_ops = DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT 4035$bn_ops = DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
3779$bn_obj = 4036$bn_obj =
3780$des_obj = 4037$des_obj =
@@ -3791,6 +4048,7 @@ $shared_cflag =
3791$shared_ldflag = 4048$shared_ldflag =
3792$shared_extension = 4049$shared_extension =
3793$ranlib = 4050$ranlib =
4051$arflags =
3794 4052
3795*** unixware-2.1-p6 4053*** unixware-2.1-p6
3796$cc = cc 4054$cc = cc
@@ -3798,7 +4056,7 @@ $cflags = -O -DFILIO_H -Kp6
3798$unistd = 4056$unistd =
3799$thread_cflag = -Kthread 4057$thread_cflag = -Kthread
3800$sys_id = 4058$sys_id =
3801$lflags = -lsocket -lnsl -lx 4059$lflags = -lsocket -lnsl -lresolv -lx
3802$bn_ops = MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL 4060$bn_ops = MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
3803$bn_obj = 4061$bn_obj =
3804$des_obj = 4062$des_obj =
@@ -3815,6 +4073,7 @@ $shared_cflag =
3815$shared_ldflag = 4073$shared_ldflag =
3816$shared_extension = 4074$shared_extension =
3817$ranlib = 4075$ranlib =
4076$arflags =
3818 4077
3819*** unixware-2.1-pentium 4078*** unixware-2.1-pentium
3820$cc = cc 4079$cc = cc
@@ -3822,7 +4081,7 @@ $cflags = -O -DFILIO_H -Kpentium
3822$unistd = 4081$unistd =
3823$thread_cflag = -Kthread 4082$thread_cflag = -Kthread
3824$sys_id = 4083$sys_id =
3825$lflags = -lsocket -lnsl -lx 4084$lflags = -lsocket -lnsl -lresolv -lx
3826$bn_ops = MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL 4085$bn_ops = MD2_CHAR RC4_INDEX DES_PTR DES_RISC1 DES_UNROLL
3827$bn_obj = 4086$bn_obj =
3828$des_obj = 4087$des_obj =
@@ -3839,6 +4098,7 @@ $shared_cflag =
3839$shared_ldflag = 4098$shared_ldflag =
3840$shared_extension = 4099$shared_extension =
3841$ranlib = 4100$ranlib =
4101$arflags =
3842 4102
3843*** unixware-7 4103*** unixware-7
3844$cc = cc 4104$cc = cc
@@ -3863,6 +4123,7 @@ $shared_cflag = -Kpic
3863$shared_ldflag = 4123$shared_ldflag =
3864$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 4124$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3865$ranlib = 4125$ranlib =
4126$arflags =
3866 4127
3867*** unixware-7-gcc 4128*** unixware-7-gcc
3868$cc = gcc 4129$cc = gcc
@@ -3887,6 +4148,7 @@ $shared_cflag = -fPIC
3887$shared_ldflag = 4148$shared_ldflag =
3888$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 4149$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3889$ranlib = 4150$ranlib =
4151$arflags =
3890 4152
3891*** unixware-7-pentium 4153*** unixware-7-pentium
3892$cc = cc 4154$cc = cc
@@ -3911,6 +4173,7 @@ $shared_cflag = -Kpic
3911$shared_ldflag = 4173$shared_ldflag =
3912$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 4174$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3913$ranlib = 4175$ranlib =
4176$arflags =
3914 4177
3915*** unixware-7-pentium_pro 4178*** unixware-7-pentium_pro
3916$cc = cc 4179$cc = cc
@@ -3935,6 +4198,7 @@ $shared_cflag = -Kpic
3935$shared_ldflag = 4198$shared_ldflag =
3936$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR) 4199$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
3937$ranlib = 4200$ranlib =
4201$arflags =
3938 4202
3939*** vxworks-ppc405 4203*** vxworks-ppc405
3940$cc = ccppc 4204$cc = ccppc
@@ -3959,3 +4223,4 @@ $shared_cflag =
3959$shared_ldflag = 4223$shared_ldflag =
3960$shared_extension = 4224$shared_extension =
3961$ranlib = 4225$ranlib =
4226$arflags =
diff --git a/src/lib/libssl/src/apps/Makefile.ssl b/src/lib/libssl/src/apps/Makefile.ssl
index c92009e82f..bb66ebbd60 100644
--- a/src/lib/libssl/src/apps/Makefile.ssl
+++ b/src/lib/libssl/src/apps/Makefile.ssl
@@ -157,612 +157,867 @@ progs.h: progs.pl
157 157
158# DO NOT DELETE THIS LINE -- make depend depends on it. 158# DO NOT DELETE THIS LINE -- make depend depends on it.
159 159
160app_rand.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 160app_rand.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
161app_rand.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
161app_rand.o: ../include/openssl/bn.h ../include/openssl/buffer.h 162app_rand.o: ../include/openssl/bn.h ../include/openssl/buffer.h
162app_rand.o: ../include/openssl/conf.h ../include/openssl/crypto.h 163app_rand.o: ../include/openssl/cast.h ../include/openssl/conf.h
163app_rand.o: ../include/openssl/dh.h ../include/openssl/dsa.h 164app_rand.o: ../include/openssl/crypto.h ../include/openssl/des.h
164app_rand.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 165app_rand.o: ../include/openssl/des_old.h ../include/openssl/dh.h
165app_rand.o: ../include/openssl/err.h ../include/openssl/evp.h 166app_rand.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
166app_rand.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 167app_rand.o: ../include/openssl/engine.h ../include/openssl/err.h
168app_rand.o: ../include/openssl/evp.h ../include/openssl/idea.h
169app_rand.o: ../include/openssl/lhash.h ../include/openssl/md2.h
170app_rand.o: ../include/openssl/md4.h ../include/openssl/md5.h
171app_rand.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
167app_rand.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 172app_rand.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
168app_rand.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 173app_rand.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
169app_rand.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 174app_rand.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
175app_rand.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
176app_rand.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
170app_rand.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 177app_rand.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
171app_rand.o: ../include/openssl/sha.h ../include/openssl/stack.h 178app_rand.o: ../include/openssl/sha.h ../include/openssl/stack.h
172app_rand.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 179app_rand.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
173app_rand.o: ../include/openssl/ui.h ../include/openssl/x509.h 180app_rand.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
174app_rand.o: ../include/openssl/x509_vfy.h app_rand.c apps.h 181app_rand.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h app_rand.c
175apps.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 182app_rand.o: apps.h
183apps.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
184apps.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
176apps.o: ../include/openssl/bn.h ../include/openssl/buffer.h 185apps.o: ../include/openssl/bn.h ../include/openssl/buffer.h
177apps.o: ../include/openssl/conf.h ../include/openssl/crypto.h 186apps.o: ../include/openssl/cast.h ../include/openssl/conf.h
178apps.o: ../include/openssl/dh.h ../include/openssl/dsa.h 187apps.o: ../include/openssl/crypto.h ../include/openssl/des.h
179apps.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 188apps.o: ../include/openssl/des_old.h ../include/openssl/dh.h
180apps.o: ../include/openssl/err.h ../include/openssl/evp.h 189apps.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
181apps.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 190apps.o: ../include/openssl/engine.h ../include/openssl/err.h
191apps.o: ../include/openssl/evp.h ../include/openssl/idea.h
192apps.o: ../include/openssl/lhash.h ../include/openssl/md2.h
193apps.o: ../include/openssl/md4.h ../include/openssl/md5.h
194apps.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
182apps.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 195apps.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
183apps.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 196apps.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
184apps.o: ../include/openssl/pem.h ../include/openssl/pem2.h 197apps.o: ../include/openssl/pem.h ../include/openssl/pem2.h
185apps.o: ../include/openssl/pkcs12.h ../include/openssl/pkcs7.h 198apps.o: ../include/openssl/pkcs12.h ../include/openssl/pkcs7.h
186apps.o: ../include/openssl/rand.h ../include/openssl/rsa.h 199apps.o: ../include/openssl/rand.h ../include/openssl/rc2.h
200apps.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
201apps.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
187apps.o: ../include/openssl/safestack.h ../include/openssl/sha.h 202apps.o: ../include/openssl/safestack.h ../include/openssl/sha.h
188apps.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 203apps.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
189apps.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 204apps.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
190apps.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h 205apps.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
191apps.o: ../include/openssl/x509v3.h apps.c apps.h 206apps.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h apps.c apps.h
192asn1pars.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 207asn1pars.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
208asn1pars.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
193asn1pars.o: ../include/openssl/bn.h ../include/openssl/buffer.h 209asn1pars.o: ../include/openssl/bn.h ../include/openssl/buffer.h
194asn1pars.o: ../include/openssl/conf.h ../include/openssl/crypto.h 210asn1pars.o: ../include/openssl/cast.h ../include/openssl/conf.h
195asn1pars.o: ../include/openssl/dh.h ../include/openssl/dsa.h 211asn1pars.o: ../include/openssl/crypto.h ../include/openssl/des.h
196asn1pars.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 212asn1pars.o: ../include/openssl/des_old.h ../include/openssl/dh.h
197asn1pars.o: ../include/openssl/err.h ../include/openssl/evp.h 213asn1pars.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
198asn1pars.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 214asn1pars.o: ../include/openssl/engine.h ../include/openssl/err.h
215asn1pars.o: ../include/openssl/evp.h ../include/openssl/idea.h
216asn1pars.o: ../include/openssl/lhash.h ../include/openssl/md2.h
217asn1pars.o: ../include/openssl/md4.h ../include/openssl/md5.h
218asn1pars.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
199asn1pars.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 219asn1pars.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
200asn1pars.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 220asn1pars.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
201asn1pars.o: ../include/openssl/pem.h ../include/openssl/pem2.h 221asn1pars.o: ../include/openssl/pem.h ../include/openssl/pem2.h
202asn1pars.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 222asn1pars.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
223asn1pars.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
224asn1pars.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
203asn1pars.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 225asn1pars.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
204asn1pars.o: ../include/openssl/sha.h ../include/openssl/stack.h 226asn1pars.o: ../include/openssl/sha.h ../include/openssl/stack.h
205asn1pars.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 227asn1pars.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
206asn1pars.o: ../include/openssl/ui.h ../include/openssl/x509.h 228asn1pars.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
207asn1pars.o: ../include/openssl/x509_vfy.h apps.h asn1pars.c 229asn1pars.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
208ca.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 230asn1pars.o: asn1pars.c
231ca.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
232ca.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
209ca.o: ../include/openssl/bn.h ../include/openssl/buffer.h 233ca.o: ../include/openssl/bn.h ../include/openssl/buffer.h
210ca.o: ../include/openssl/conf.h ../include/openssl/crypto.h 234ca.o: ../include/openssl/cast.h ../include/openssl/conf.h
211ca.o: ../include/openssl/dh.h ../include/openssl/dsa.h 235ca.o: ../include/openssl/crypto.h ../include/openssl/des.h
212ca.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 236ca.o: ../include/openssl/des_old.h ../include/openssl/dh.h
213ca.o: ../include/openssl/err.h ../include/openssl/evp.h 237ca.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
214ca.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 238ca.o: ../include/openssl/engine.h ../include/openssl/err.h
239ca.o: ../include/openssl/evp.h ../include/openssl/idea.h
240ca.o: ../include/openssl/lhash.h ../include/openssl/md2.h
241ca.o: ../include/openssl/md4.h ../include/openssl/md5.h
242ca.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
215ca.o: ../include/openssl/objects.h ../include/openssl/ocsp.h 243ca.o: ../include/openssl/objects.h ../include/openssl/ocsp.h
216ca.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h 244ca.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
217ca.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h 245ca.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h
218ca.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h 246ca.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
219ca.o: ../include/openssl/rand.h ../include/openssl/rsa.h 247ca.o: ../include/openssl/rand.h ../include/openssl/rc2.h
248ca.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
249ca.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
220ca.o: ../include/openssl/safestack.h ../include/openssl/sha.h 250ca.o: ../include/openssl/safestack.h ../include/openssl/sha.h
221ca.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 251ca.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
222ca.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 252ca.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
223ca.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h 253ca.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
224ca.o: ../include/openssl/x509v3.h apps.h ca.c 254ca.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h apps.h ca.c
225ciphers.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 255ciphers.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
256ciphers.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
226ciphers.o: ../include/openssl/bn.h ../include/openssl/buffer.h 257ciphers.o: ../include/openssl/bn.h ../include/openssl/buffer.h
227ciphers.o: ../include/openssl/comp.h ../include/openssl/conf.h 258ciphers.o: ../include/openssl/cast.h ../include/openssl/comp.h
228ciphers.o: ../include/openssl/crypto.h ../include/openssl/dh.h 259ciphers.o: ../include/openssl/conf.h ../include/openssl/crypto.h
229ciphers.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 260ciphers.o: ../include/openssl/des.h ../include/openssl/des_old.h
230ciphers.o: ../include/openssl/engine.h ../include/openssl/err.h 261ciphers.o: ../include/openssl/dh.h ../include/openssl/dsa.h
231ciphers.o: ../include/openssl/evp.h ../include/openssl/kssl.h 262ciphers.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
232ciphers.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 263ciphers.o: ../include/openssl/err.h ../include/openssl/evp.h
264ciphers.o: ../include/openssl/idea.h ../include/openssl/kssl.h
265ciphers.o: ../include/openssl/lhash.h ../include/openssl/md2.h
266ciphers.o: ../include/openssl/md4.h ../include/openssl/md5.h
267ciphers.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
233ciphers.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 268ciphers.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
234ciphers.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 269ciphers.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
235ciphers.o: ../include/openssl/pem.h ../include/openssl/pem2.h 270ciphers.o: ../include/openssl/pem.h ../include/openssl/pem2.h
236ciphers.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 271ciphers.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
272ciphers.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
273ciphers.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
237ciphers.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 274ciphers.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
238ciphers.o: ../include/openssl/sha.h ../include/openssl/ssl.h 275ciphers.o: ../include/openssl/sha.h ../include/openssl/ssl.h
239ciphers.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h 276ciphers.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
240ciphers.o: ../include/openssl/ssl3.h ../include/openssl/stack.h 277ciphers.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
241ciphers.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h 278ciphers.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
242ciphers.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 279ciphers.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
243ciphers.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h 280ciphers.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
244ciphers.o: ciphers.c 281ciphers.o: ../include/openssl/x509_vfy.h apps.h ciphers.c
245crl.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 282crl.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
283crl.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
246crl.o: ../include/openssl/bn.h ../include/openssl/buffer.h 284crl.o: ../include/openssl/bn.h ../include/openssl/buffer.h
247crl.o: ../include/openssl/conf.h ../include/openssl/crypto.h 285crl.o: ../include/openssl/cast.h ../include/openssl/conf.h
248crl.o: ../include/openssl/dh.h ../include/openssl/dsa.h 286crl.o: ../include/openssl/crypto.h ../include/openssl/des.h
249crl.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 287crl.o: ../include/openssl/des_old.h ../include/openssl/dh.h
250crl.o: ../include/openssl/err.h ../include/openssl/evp.h 288crl.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
251crl.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 289crl.o: ../include/openssl/engine.h ../include/openssl/err.h
290crl.o: ../include/openssl/evp.h ../include/openssl/idea.h
291crl.o: ../include/openssl/lhash.h ../include/openssl/md2.h
292crl.o: ../include/openssl/md4.h ../include/openssl/md5.h
293crl.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
252crl.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 294crl.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
253crl.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 295crl.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
254crl.o: ../include/openssl/pem.h ../include/openssl/pem2.h 296crl.o: ../include/openssl/pem.h ../include/openssl/pem2.h
255crl.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 297crl.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
298crl.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
299crl.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
256crl.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 300crl.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
257crl.o: ../include/openssl/sha.h ../include/openssl/stack.h 301crl.o: ../include/openssl/sha.h ../include/openssl/stack.h
258crl.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 302crl.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
259crl.o: ../include/openssl/ui.h ../include/openssl/x509.h 303crl.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
260crl.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h apps.h crl.c 304crl.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
261crl2p7.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 305crl.o: ../include/openssl/x509v3.h apps.h crl.c
306crl2p7.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
307crl2p7.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
262crl2p7.o: ../include/openssl/bn.h ../include/openssl/buffer.h 308crl2p7.o: ../include/openssl/bn.h ../include/openssl/buffer.h
263crl2p7.o: ../include/openssl/conf.h ../include/openssl/crypto.h 309crl2p7.o: ../include/openssl/cast.h ../include/openssl/conf.h
264crl2p7.o: ../include/openssl/dh.h ../include/openssl/dsa.h 310crl2p7.o: ../include/openssl/crypto.h ../include/openssl/des.h
265crl2p7.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 311crl2p7.o: ../include/openssl/des_old.h ../include/openssl/dh.h
266crl2p7.o: ../include/openssl/err.h ../include/openssl/evp.h 312crl2p7.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
267crl2p7.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 313crl2p7.o: ../include/openssl/engine.h ../include/openssl/err.h
314crl2p7.o: ../include/openssl/evp.h ../include/openssl/idea.h
315crl2p7.o: ../include/openssl/lhash.h ../include/openssl/md2.h
316crl2p7.o: ../include/openssl/md4.h ../include/openssl/md5.h
317crl2p7.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
268crl2p7.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 318crl2p7.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
269crl2p7.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 319crl2p7.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
270crl2p7.o: ../include/openssl/pem.h ../include/openssl/pem2.h 320crl2p7.o: ../include/openssl/pem.h ../include/openssl/pem2.h
271crl2p7.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 321crl2p7.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
322crl2p7.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
323crl2p7.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
272crl2p7.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 324crl2p7.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
273crl2p7.o: ../include/openssl/sha.h ../include/openssl/stack.h 325crl2p7.o: ../include/openssl/sha.h ../include/openssl/stack.h
274crl2p7.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 326crl2p7.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
275crl2p7.o: ../include/openssl/ui.h ../include/openssl/x509.h 327crl2p7.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
276crl2p7.o: ../include/openssl/x509_vfy.h apps.h crl2p7.c 328crl2p7.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
277dgst.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 329crl2p7.o: crl2p7.c
330dgst.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
331dgst.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
278dgst.o: ../include/openssl/bn.h ../include/openssl/buffer.h 332dgst.o: ../include/openssl/bn.h ../include/openssl/buffer.h
279dgst.o: ../include/openssl/conf.h ../include/openssl/crypto.h 333dgst.o: ../include/openssl/cast.h ../include/openssl/conf.h
280dgst.o: ../include/openssl/dh.h ../include/openssl/dsa.h 334dgst.o: ../include/openssl/crypto.h ../include/openssl/des.h
281dgst.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 335dgst.o: ../include/openssl/des_old.h ../include/openssl/dh.h
282dgst.o: ../include/openssl/err.h ../include/openssl/evp.h 336dgst.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
283dgst.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 337dgst.o: ../include/openssl/engine.h ../include/openssl/err.h
338dgst.o: ../include/openssl/evp.h ../include/openssl/idea.h
339dgst.o: ../include/openssl/lhash.h ../include/openssl/md2.h
340dgst.o: ../include/openssl/md4.h ../include/openssl/md5.h
341dgst.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
284dgst.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 342dgst.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
285dgst.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 343dgst.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
286dgst.o: ../include/openssl/pem.h ../include/openssl/pem2.h 344dgst.o: ../include/openssl/pem.h ../include/openssl/pem2.h
287dgst.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 345dgst.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
346dgst.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
347dgst.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
288dgst.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 348dgst.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
289dgst.o: ../include/openssl/sha.h ../include/openssl/stack.h 349dgst.o: ../include/openssl/sha.h ../include/openssl/stack.h
290dgst.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 350dgst.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
291dgst.o: ../include/openssl/ui.h ../include/openssl/x509.h 351dgst.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
292dgst.o: ../include/openssl/x509_vfy.h apps.h dgst.c 352dgst.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h dgst.c
293dh.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 353dh.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
354dh.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
294dh.o: ../include/openssl/bn.h ../include/openssl/buffer.h 355dh.o: ../include/openssl/bn.h ../include/openssl/buffer.h
295dh.o: ../include/openssl/conf.h ../include/openssl/crypto.h 356dh.o: ../include/openssl/cast.h ../include/openssl/conf.h
296dh.o: ../include/openssl/dh.h ../include/openssl/dsa.h 357dh.o: ../include/openssl/crypto.h ../include/openssl/des.h
297dh.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 358dh.o: ../include/openssl/des_old.h ../include/openssl/dh.h
298dh.o: ../include/openssl/err.h ../include/openssl/evp.h 359dh.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
299dh.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 360dh.o: ../include/openssl/engine.h ../include/openssl/err.h
361dh.o: ../include/openssl/evp.h ../include/openssl/idea.h
362dh.o: ../include/openssl/lhash.h ../include/openssl/md2.h
363dh.o: ../include/openssl/md4.h ../include/openssl/md5.h
364dh.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
300dh.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 365dh.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
301dh.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 366dh.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
302dh.o: ../include/openssl/pem.h ../include/openssl/pem2.h 367dh.o: ../include/openssl/pem.h ../include/openssl/pem2.h
303dh.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 368dh.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
369dh.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
370dh.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
304dh.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 371dh.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
305dh.o: ../include/openssl/sha.h ../include/openssl/stack.h 372dh.o: ../include/openssl/sha.h ../include/openssl/stack.h
306dh.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 373dh.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
307dh.o: ../include/openssl/ui.h ../include/openssl/x509.h 374dh.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
308dh.o: ../include/openssl/x509_vfy.h apps.h dh.c 375dh.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h dh.c
309dsa.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 376dsa.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
377dsa.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
310dsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h 378dsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h
311dsa.o: ../include/openssl/conf.h ../include/openssl/crypto.h 379dsa.o: ../include/openssl/cast.h ../include/openssl/conf.h
312dsa.o: ../include/openssl/dh.h ../include/openssl/dsa.h 380dsa.o: ../include/openssl/crypto.h ../include/openssl/des.h
313dsa.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 381dsa.o: ../include/openssl/des_old.h ../include/openssl/dh.h
314dsa.o: ../include/openssl/err.h ../include/openssl/evp.h 382dsa.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
315dsa.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 383dsa.o: ../include/openssl/engine.h ../include/openssl/err.h
384dsa.o: ../include/openssl/evp.h ../include/openssl/idea.h
385dsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h
386dsa.o: ../include/openssl/md4.h ../include/openssl/md5.h
387dsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
316dsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 388dsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
317dsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 389dsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
318dsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h 390dsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h
319dsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 391dsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
392dsa.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
393dsa.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
320dsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 394dsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
321dsa.o: ../include/openssl/sha.h ../include/openssl/stack.h 395dsa.o: ../include/openssl/sha.h ../include/openssl/stack.h
322dsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 396dsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
323dsa.o: ../include/openssl/ui.h ../include/openssl/x509.h 397dsa.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
324dsa.o: ../include/openssl/x509_vfy.h apps.h dsa.c 398dsa.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h dsa.c
325dsaparam.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 399dsaparam.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
400dsaparam.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
326dsaparam.o: ../include/openssl/bn.h ../include/openssl/buffer.h 401dsaparam.o: ../include/openssl/bn.h ../include/openssl/buffer.h
327dsaparam.o: ../include/openssl/conf.h ../include/openssl/crypto.h 402dsaparam.o: ../include/openssl/cast.h ../include/openssl/conf.h
328dsaparam.o: ../include/openssl/dh.h ../include/openssl/dsa.h 403dsaparam.o: ../include/openssl/crypto.h ../include/openssl/des.h
329dsaparam.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 404dsaparam.o: ../include/openssl/des_old.h ../include/openssl/dh.h
330dsaparam.o: ../include/openssl/err.h ../include/openssl/evp.h 405dsaparam.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
331dsaparam.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 406dsaparam.o: ../include/openssl/engine.h ../include/openssl/err.h
407dsaparam.o: ../include/openssl/evp.h ../include/openssl/idea.h
408dsaparam.o: ../include/openssl/lhash.h ../include/openssl/md2.h
409dsaparam.o: ../include/openssl/md4.h ../include/openssl/md5.h
410dsaparam.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
332dsaparam.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 411dsaparam.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
333dsaparam.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 412dsaparam.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
334dsaparam.o: ../include/openssl/pem.h ../include/openssl/pem2.h 413dsaparam.o: ../include/openssl/pem.h ../include/openssl/pem2.h
335dsaparam.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 414dsaparam.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
415dsaparam.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
416dsaparam.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
336dsaparam.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 417dsaparam.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
337dsaparam.o: ../include/openssl/sha.h ../include/openssl/stack.h 418dsaparam.o: ../include/openssl/sha.h ../include/openssl/stack.h
338dsaparam.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 419dsaparam.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
339dsaparam.o: ../include/openssl/ui.h ../include/openssl/x509.h 420dsaparam.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
340dsaparam.o: ../include/openssl/x509_vfy.h apps.h dsaparam.c 421dsaparam.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
341enc.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 422dsaparam.o: dsaparam.c
423enc.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
424enc.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
342enc.o: ../include/openssl/bn.h ../include/openssl/buffer.h 425enc.o: ../include/openssl/bn.h ../include/openssl/buffer.h
343enc.o: ../include/openssl/conf.h ../include/openssl/crypto.h 426enc.o: ../include/openssl/cast.h ../include/openssl/conf.h
344enc.o: ../include/openssl/dh.h ../include/openssl/dsa.h 427enc.o: ../include/openssl/crypto.h ../include/openssl/des.h
345enc.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 428enc.o: ../include/openssl/des_old.h ../include/openssl/dh.h
346enc.o: ../include/openssl/err.h ../include/openssl/evp.h 429enc.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
347enc.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 430enc.o: ../include/openssl/engine.h ../include/openssl/err.h
431enc.o: ../include/openssl/evp.h ../include/openssl/idea.h
432enc.o: ../include/openssl/lhash.h ../include/openssl/md2.h
433enc.o: ../include/openssl/md4.h ../include/openssl/md5.h
434enc.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
348enc.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 435enc.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
349enc.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 436enc.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
350enc.o: ../include/openssl/pem.h ../include/openssl/pem2.h 437enc.o: ../include/openssl/pem.h ../include/openssl/pem2.h
351enc.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 438enc.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
439enc.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
440enc.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
352enc.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 441enc.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
353enc.o: ../include/openssl/sha.h ../include/openssl/stack.h 442enc.o: ../include/openssl/sha.h ../include/openssl/stack.h
354enc.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 443enc.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
355enc.o: ../include/openssl/ui.h ../include/openssl/x509.h 444enc.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
356enc.o: ../include/openssl/x509_vfy.h apps.h enc.c 445enc.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h enc.c
357engine.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 446engine.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
447engine.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
358engine.o: ../include/openssl/bn.h ../include/openssl/buffer.h 448engine.o: ../include/openssl/bn.h ../include/openssl/buffer.h
359engine.o: ../include/openssl/comp.h ../include/openssl/conf.h 449engine.o: ../include/openssl/cast.h ../include/openssl/comp.h
360engine.o: ../include/openssl/crypto.h ../include/openssl/dh.h 450engine.o: ../include/openssl/conf.h ../include/openssl/crypto.h
361engine.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 451engine.o: ../include/openssl/des.h ../include/openssl/des_old.h
362engine.o: ../include/openssl/engine.h ../include/openssl/err.h 452engine.o: ../include/openssl/dh.h ../include/openssl/dsa.h
363engine.o: ../include/openssl/evp.h ../include/openssl/kssl.h 453engine.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
364engine.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 454engine.o: ../include/openssl/err.h ../include/openssl/evp.h
455engine.o: ../include/openssl/idea.h ../include/openssl/kssl.h
456engine.o: ../include/openssl/lhash.h ../include/openssl/md2.h
457engine.o: ../include/openssl/md4.h ../include/openssl/md5.h
458engine.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
365engine.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 459engine.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
366engine.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 460engine.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
367engine.o: ../include/openssl/pem.h ../include/openssl/pem2.h 461engine.o: ../include/openssl/pem.h ../include/openssl/pem2.h
368engine.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 462engine.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
463engine.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
464engine.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
369engine.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 465engine.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
370engine.o: ../include/openssl/sha.h ../include/openssl/ssl.h 466engine.o: ../include/openssl/sha.h ../include/openssl/ssl.h
371engine.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h 467engine.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
372engine.o: ../include/openssl/ssl3.h ../include/openssl/stack.h 468engine.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
373engine.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h 469engine.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
374engine.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 470engine.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
375engine.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h 471engine.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
376engine.o: engine.c 472engine.o: ../include/openssl/x509_vfy.h apps.h engine.c
377errstr.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 473errstr.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
474errstr.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
378errstr.o: ../include/openssl/bn.h ../include/openssl/buffer.h 475errstr.o: ../include/openssl/bn.h ../include/openssl/buffer.h
379errstr.o: ../include/openssl/comp.h ../include/openssl/conf.h 476errstr.o: ../include/openssl/cast.h ../include/openssl/comp.h
380errstr.o: ../include/openssl/crypto.h ../include/openssl/dh.h 477errstr.o: ../include/openssl/conf.h ../include/openssl/crypto.h
381errstr.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 478errstr.o: ../include/openssl/des.h ../include/openssl/des_old.h
382errstr.o: ../include/openssl/engine.h ../include/openssl/err.h 479errstr.o: ../include/openssl/dh.h ../include/openssl/dsa.h
383errstr.o: ../include/openssl/evp.h ../include/openssl/kssl.h 480errstr.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
384errstr.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 481errstr.o: ../include/openssl/err.h ../include/openssl/evp.h
482errstr.o: ../include/openssl/idea.h ../include/openssl/kssl.h
483errstr.o: ../include/openssl/lhash.h ../include/openssl/md2.h
484errstr.o: ../include/openssl/md4.h ../include/openssl/md5.h
485errstr.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
385errstr.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 486errstr.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
386errstr.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 487errstr.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
387errstr.o: ../include/openssl/pem.h ../include/openssl/pem2.h 488errstr.o: ../include/openssl/pem.h ../include/openssl/pem2.h
388errstr.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 489errstr.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
490errstr.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
491errstr.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
389errstr.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 492errstr.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
390errstr.o: ../include/openssl/sha.h ../include/openssl/ssl.h 493errstr.o: ../include/openssl/sha.h ../include/openssl/ssl.h
391errstr.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h 494errstr.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
392errstr.o: ../include/openssl/ssl3.h ../include/openssl/stack.h 495errstr.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
393errstr.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h 496errstr.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
394errstr.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 497errstr.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
395errstr.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h 498errstr.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
396errstr.o: errstr.c 499errstr.o: ../include/openssl/x509_vfy.h apps.h errstr.c
397gendh.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 500gendh.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
501gendh.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
398gendh.o: ../include/openssl/bn.h ../include/openssl/buffer.h 502gendh.o: ../include/openssl/bn.h ../include/openssl/buffer.h
399gendh.o: ../include/openssl/conf.h ../include/openssl/crypto.h 503gendh.o: ../include/openssl/cast.h ../include/openssl/conf.h
400gendh.o: ../include/openssl/dh.h ../include/openssl/dsa.h 504gendh.o: ../include/openssl/crypto.h ../include/openssl/des.h
401gendh.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 505gendh.o: ../include/openssl/des_old.h ../include/openssl/dh.h
402gendh.o: ../include/openssl/err.h ../include/openssl/evp.h 506gendh.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
403gendh.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 507gendh.o: ../include/openssl/engine.h ../include/openssl/err.h
508gendh.o: ../include/openssl/evp.h ../include/openssl/idea.h
509gendh.o: ../include/openssl/lhash.h ../include/openssl/md2.h
510gendh.o: ../include/openssl/md4.h ../include/openssl/md5.h
511gendh.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
404gendh.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 512gendh.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
405gendh.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 513gendh.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
406gendh.o: ../include/openssl/pem.h ../include/openssl/pem2.h 514gendh.o: ../include/openssl/pem.h ../include/openssl/pem2.h
407gendh.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 515gendh.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
516gendh.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
517gendh.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
408gendh.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 518gendh.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
409gendh.o: ../include/openssl/sha.h ../include/openssl/stack.h 519gendh.o: ../include/openssl/sha.h ../include/openssl/stack.h
410gendh.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 520gendh.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
411gendh.o: ../include/openssl/ui.h ../include/openssl/x509.h 521gendh.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
412gendh.o: ../include/openssl/x509_vfy.h apps.h gendh.c 522gendh.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h gendh.c
413gendsa.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 523gendsa.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
524gendsa.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
414gendsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h 525gendsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h
415gendsa.o: ../include/openssl/conf.h ../include/openssl/crypto.h 526gendsa.o: ../include/openssl/cast.h ../include/openssl/conf.h
416gendsa.o: ../include/openssl/dh.h ../include/openssl/dsa.h 527gendsa.o: ../include/openssl/crypto.h ../include/openssl/des.h
417gendsa.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 528gendsa.o: ../include/openssl/des_old.h ../include/openssl/dh.h
418gendsa.o: ../include/openssl/err.h ../include/openssl/evp.h 529gendsa.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
419gendsa.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 530gendsa.o: ../include/openssl/engine.h ../include/openssl/err.h
531gendsa.o: ../include/openssl/evp.h ../include/openssl/idea.h
532gendsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h
533gendsa.o: ../include/openssl/md4.h ../include/openssl/md5.h
534gendsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
420gendsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 535gendsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
421gendsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 536gendsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
422gendsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h 537gendsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h
423gendsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 538gendsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
539gendsa.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
540gendsa.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
424gendsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 541gendsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
425gendsa.o: ../include/openssl/sha.h ../include/openssl/stack.h 542gendsa.o: ../include/openssl/sha.h ../include/openssl/stack.h
426gendsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 543gendsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
427gendsa.o: ../include/openssl/ui.h ../include/openssl/x509.h 544gendsa.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
428gendsa.o: ../include/openssl/x509_vfy.h apps.h gendsa.c 545gendsa.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
429genrsa.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 546gendsa.o: gendsa.c
547genrsa.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
548genrsa.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
430genrsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h 549genrsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h
431genrsa.o: ../include/openssl/conf.h ../include/openssl/crypto.h 550genrsa.o: ../include/openssl/cast.h ../include/openssl/conf.h
432genrsa.o: ../include/openssl/dh.h ../include/openssl/dsa.h 551genrsa.o: ../include/openssl/crypto.h ../include/openssl/des.h
433genrsa.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 552genrsa.o: ../include/openssl/des_old.h ../include/openssl/dh.h
434genrsa.o: ../include/openssl/err.h ../include/openssl/evp.h 553genrsa.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
435genrsa.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 554genrsa.o: ../include/openssl/engine.h ../include/openssl/err.h
555genrsa.o: ../include/openssl/evp.h ../include/openssl/idea.h
556genrsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h
557genrsa.o: ../include/openssl/md4.h ../include/openssl/md5.h
558genrsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
436genrsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 559genrsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
437genrsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 560genrsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
438genrsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h 561genrsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h
439genrsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 562genrsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
563genrsa.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
564genrsa.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
440genrsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 565genrsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
441genrsa.o: ../include/openssl/sha.h ../include/openssl/stack.h 566genrsa.o: ../include/openssl/sha.h ../include/openssl/stack.h
442genrsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 567genrsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
443genrsa.o: ../include/openssl/ui.h ../include/openssl/x509.h 568genrsa.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
444genrsa.o: ../include/openssl/x509_vfy.h apps.h genrsa.c 569genrsa.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
445nseq.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 570genrsa.o: genrsa.c
571nseq.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
572nseq.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
446nseq.o: ../include/openssl/bn.h ../include/openssl/buffer.h 573nseq.o: ../include/openssl/bn.h ../include/openssl/buffer.h
447nseq.o: ../include/openssl/conf.h ../include/openssl/crypto.h 574nseq.o: ../include/openssl/cast.h ../include/openssl/conf.h
448nseq.o: ../include/openssl/dh.h ../include/openssl/dsa.h 575nseq.o: ../include/openssl/crypto.h ../include/openssl/des.h
449nseq.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 576nseq.o: ../include/openssl/des_old.h ../include/openssl/dh.h
450nseq.o: ../include/openssl/err.h ../include/openssl/evp.h 577nseq.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
451nseq.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 578nseq.o: ../include/openssl/engine.h ../include/openssl/err.h
579nseq.o: ../include/openssl/evp.h ../include/openssl/idea.h
580nseq.o: ../include/openssl/lhash.h ../include/openssl/md2.h
581nseq.o: ../include/openssl/md4.h ../include/openssl/md5.h
582nseq.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
452nseq.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 583nseq.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
453nseq.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 584nseq.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
454nseq.o: ../include/openssl/pem.h ../include/openssl/pem2.h 585nseq.o: ../include/openssl/pem.h ../include/openssl/pem2.h
455nseq.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 586nseq.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
587nseq.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
588nseq.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
456nseq.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 589nseq.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
457nseq.o: ../include/openssl/sha.h ../include/openssl/stack.h 590nseq.o: ../include/openssl/sha.h ../include/openssl/stack.h
458nseq.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 591nseq.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
459nseq.o: ../include/openssl/ui.h ../include/openssl/x509.h 592nseq.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
460nseq.o: ../include/openssl/x509_vfy.h apps.h nseq.c 593nseq.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h nseq.c
461ocsp.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 594ocsp.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
595ocsp.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
462ocsp.o: ../include/openssl/bn.h ../include/openssl/buffer.h 596ocsp.o: ../include/openssl/bn.h ../include/openssl/buffer.h
463ocsp.o: ../include/openssl/comp.h ../include/openssl/conf.h 597ocsp.o: ../include/openssl/cast.h ../include/openssl/comp.h
464ocsp.o: ../include/openssl/crypto.h ../include/openssl/dh.h 598ocsp.o: ../include/openssl/conf.h ../include/openssl/crypto.h
465ocsp.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 599ocsp.o: ../include/openssl/des.h ../include/openssl/des_old.h
466ocsp.o: ../include/openssl/engine.h ../include/openssl/err.h 600ocsp.o: ../include/openssl/dh.h ../include/openssl/dsa.h
467ocsp.o: ../include/openssl/evp.h ../include/openssl/kssl.h 601ocsp.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
468ocsp.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 602ocsp.o: ../include/openssl/err.h ../include/openssl/evp.h
603ocsp.o: ../include/openssl/idea.h ../include/openssl/kssl.h
604ocsp.o: ../include/openssl/lhash.h ../include/openssl/md2.h
605ocsp.o: ../include/openssl/md4.h ../include/openssl/md5.h
606ocsp.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
469ocsp.o: ../include/openssl/objects.h ../include/openssl/ocsp.h 607ocsp.o: ../include/openssl/objects.h ../include/openssl/ocsp.h
470ocsp.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h 608ocsp.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
471ocsp.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h 609ocsp.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h
472ocsp.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h 610ocsp.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
473ocsp.o: ../include/openssl/rand.h ../include/openssl/rsa.h 611ocsp.o: ../include/openssl/rand.h ../include/openssl/rc2.h
612ocsp.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
613ocsp.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
474ocsp.o: ../include/openssl/safestack.h ../include/openssl/sha.h 614ocsp.o: ../include/openssl/safestack.h ../include/openssl/sha.h
475ocsp.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h 615ocsp.o: ../include/openssl/ssl.h ../include/openssl/ssl2.h
476ocsp.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h 616ocsp.o: ../include/openssl/ssl23.h ../include/openssl/ssl3.h
477ocsp.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 617ocsp.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
478ocsp.o: ../include/openssl/tls1.h ../include/openssl/txt_db.h 618ocsp.o: ../include/openssl/tls1.h ../include/openssl/txt_db.h
479ocsp.o: ../include/openssl/ui.h ../include/openssl/x509.h 619ocsp.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
480ocsp.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h apps.h ocsp.c 620ocsp.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
481openssl.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 621ocsp.o: ../include/openssl/x509v3.h apps.h ocsp.c
622openssl.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
623openssl.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
482openssl.o: ../include/openssl/bn.h ../include/openssl/buffer.h 624openssl.o: ../include/openssl/bn.h ../include/openssl/buffer.h
483openssl.o: ../include/openssl/comp.h ../include/openssl/conf.h 625openssl.o: ../include/openssl/cast.h ../include/openssl/comp.h
484openssl.o: ../include/openssl/crypto.h ../include/openssl/dh.h 626openssl.o: ../include/openssl/conf.h ../include/openssl/crypto.h
485openssl.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 627openssl.o: ../include/openssl/des.h ../include/openssl/des_old.h
486openssl.o: ../include/openssl/engine.h ../include/openssl/err.h 628openssl.o: ../include/openssl/dh.h ../include/openssl/dsa.h
487openssl.o: ../include/openssl/evp.h ../include/openssl/kssl.h 629openssl.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
488openssl.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 630openssl.o: ../include/openssl/err.h ../include/openssl/evp.h
631openssl.o: ../include/openssl/idea.h ../include/openssl/kssl.h
632openssl.o: ../include/openssl/lhash.h ../include/openssl/md2.h
633openssl.o: ../include/openssl/md4.h ../include/openssl/md5.h
634openssl.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
489openssl.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 635openssl.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
490openssl.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 636openssl.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
491openssl.o: ../include/openssl/pem.h ../include/openssl/pem2.h 637openssl.o: ../include/openssl/pem.h ../include/openssl/pem2.h
492openssl.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 638openssl.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
639openssl.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
640openssl.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
493openssl.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 641openssl.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
494openssl.o: ../include/openssl/sha.h ../include/openssl/ssl.h 642openssl.o: ../include/openssl/sha.h ../include/openssl/ssl.h
495openssl.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h 643openssl.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
496openssl.o: ../include/openssl/ssl3.h ../include/openssl/stack.h 644openssl.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
497openssl.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h 645openssl.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
498openssl.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 646openssl.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
499openssl.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h 647openssl.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
500openssl.o: openssl.c progs.h s_apps.h 648openssl.o: ../include/openssl/x509_vfy.h apps.h openssl.c progs.h s_apps.h
501passwd.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 649passwd.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
650passwd.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
502passwd.o: ../include/openssl/bn.h ../include/openssl/buffer.h 651passwd.o: ../include/openssl/bn.h ../include/openssl/buffer.h
503passwd.o: ../include/openssl/conf.h ../include/openssl/crypto.h 652passwd.o: ../include/openssl/cast.h ../include/openssl/conf.h
504passwd.o: ../include/openssl/des.h ../include/openssl/des_old.h 653passwd.o: ../include/openssl/crypto.h ../include/openssl/des.h
505passwd.o: ../include/openssl/dh.h ../include/openssl/dsa.h 654passwd.o: ../include/openssl/des_old.h ../include/openssl/dh.h
506passwd.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 655passwd.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
507passwd.o: ../include/openssl/err.h ../include/openssl/evp.h 656passwd.o: ../include/openssl/engine.h ../include/openssl/err.h
508passwd.o: ../include/openssl/lhash.h ../include/openssl/md5.h 657passwd.o: ../include/openssl/evp.h ../include/openssl/idea.h
509passwd.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h 658passwd.o: ../include/openssl/lhash.h ../include/openssl/md2.h
510passwd.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h 659passwd.o: ../include/openssl/md4.h ../include/openssl/md5.h
511passwd.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h 660passwd.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
512passwd.o: ../include/openssl/rand.h ../include/openssl/rsa.h 661passwd.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
513passwd.o: ../include/openssl/safestack.h ../include/openssl/sha.h 662passwd.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
514passwd.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 663passwd.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
515passwd.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 664passwd.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
516passwd.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h 665passwd.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
517passwd.o: ../include/openssl/x509_vfy.h apps.h passwd.c 666passwd.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
518pkcs12.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 667passwd.o: ../include/openssl/sha.h ../include/openssl/stack.h
668passwd.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
669passwd.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
670passwd.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
671passwd.o: passwd.c
672pkcs12.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
673pkcs12.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
519pkcs12.o: ../include/openssl/bn.h ../include/openssl/buffer.h 674pkcs12.o: ../include/openssl/bn.h ../include/openssl/buffer.h
520pkcs12.o: ../include/openssl/conf.h ../include/openssl/crypto.h 675pkcs12.o: ../include/openssl/cast.h ../include/openssl/conf.h
521pkcs12.o: ../include/openssl/dh.h ../include/openssl/dsa.h 676pkcs12.o: ../include/openssl/crypto.h ../include/openssl/des.h
522pkcs12.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 677pkcs12.o: ../include/openssl/des_old.h ../include/openssl/dh.h
523pkcs12.o: ../include/openssl/err.h ../include/openssl/evp.h 678pkcs12.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
524pkcs12.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 679pkcs12.o: ../include/openssl/engine.h ../include/openssl/err.h
680pkcs12.o: ../include/openssl/evp.h ../include/openssl/idea.h
681pkcs12.o: ../include/openssl/lhash.h ../include/openssl/md2.h
682pkcs12.o: ../include/openssl/md4.h ../include/openssl/md5.h
683pkcs12.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
525pkcs12.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 684pkcs12.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
526pkcs12.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 685pkcs12.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
527pkcs12.o: ../include/openssl/pem.h ../include/openssl/pem2.h 686pkcs12.o: ../include/openssl/pem.h ../include/openssl/pem2.h
528pkcs12.o: ../include/openssl/pkcs12.h ../include/openssl/pkcs7.h 687pkcs12.o: ../include/openssl/pkcs12.h ../include/openssl/pkcs7.h
529pkcs12.o: ../include/openssl/rand.h ../include/openssl/rsa.h 688pkcs12.o: ../include/openssl/rand.h ../include/openssl/rc2.h
689pkcs12.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
690pkcs12.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
530pkcs12.o: ../include/openssl/safestack.h ../include/openssl/sha.h 691pkcs12.o: ../include/openssl/safestack.h ../include/openssl/sha.h
531pkcs12.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 692pkcs12.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
532pkcs12.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 693pkcs12.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
533pkcs12.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h 694pkcs12.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
534pkcs12.o: pkcs12.c 695pkcs12.o: ../include/openssl/x509_vfy.h apps.h pkcs12.c
535pkcs7.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 696pkcs7.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
697pkcs7.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
536pkcs7.o: ../include/openssl/bn.h ../include/openssl/buffer.h 698pkcs7.o: ../include/openssl/bn.h ../include/openssl/buffer.h
537pkcs7.o: ../include/openssl/conf.h ../include/openssl/crypto.h 699pkcs7.o: ../include/openssl/cast.h ../include/openssl/conf.h
538pkcs7.o: ../include/openssl/dh.h ../include/openssl/dsa.h 700pkcs7.o: ../include/openssl/crypto.h ../include/openssl/des.h
539pkcs7.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 701pkcs7.o: ../include/openssl/des_old.h ../include/openssl/dh.h
540pkcs7.o: ../include/openssl/err.h ../include/openssl/evp.h 702pkcs7.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
541pkcs7.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 703pkcs7.o: ../include/openssl/engine.h ../include/openssl/err.h
704pkcs7.o: ../include/openssl/evp.h ../include/openssl/idea.h
705pkcs7.o: ../include/openssl/lhash.h ../include/openssl/md2.h
706pkcs7.o: ../include/openssl/md4.h ../include/openssl/md5.h
707pkcs7.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
542pkcs7.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 708pkcs7.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
543pkcs7.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 709pkcs7.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
544pkcs7.o: ../include/openssl/pem.h ../include/openssl/pem2.h 710pkcs7.o: ../include/openssl/pem.h ../include/openssl/pem2.h
545pkcs7.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 711pkcs7.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
712pkcs7.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
713pkcs7.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
546pkcs7.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 714pkcs7.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
547pkcs7.o: ../include/openssl/sha.h ../include/openssl/stack.h 715pkcs7.o: ../include/openssl/sha.h ../include/openssl/stack.h
548pkcs7.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 716pkcs7.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
549pkcs7.o: ../include/openssl/ui.h ../include/openssl/x509.h 717pkcs7.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
550pkcs7.o: ../include/openssl/x509_vfy.h apps.h pkcs7.c 718pkcs7.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h pkcs7.c
551pkcs8.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 719pkcs8.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
720pkcs8.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
552pkcs8.o: ../include/openssl/bn.h ../include/openssl/buffer.h 721pkcs8.o: ../include/openssl/bn.h ../include/openssl/buffer.h
553pkcs8.o: ../include/openssl/conf.h ../include/openssl/crypto.h 722pkcs8.o: ../include/openssl/cast.h ../include/openssl/conf.h
554pkcs8.o: ../include/openssl/dh.h ../include/openssl/dsa.h 723pkcs8.o: ../include/openssl/crypto.h ../include/openssl/des.h
555pkcs8.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 724pkcs8.o: ../include/openssl/des_old.h ../include/openssl/dh.h
556pkcs8.o: ../include/openssl/err.h ../include/openssl/evp.h 725pkcs8.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
557pkcs8.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 726pkcs8.o: ../include/openssl/engine.h ../include/openssl/err.h
727pkcs8.o: ../include/openssl/evp.h ../include/openssl/idea.h
728pkcs8.o: ../include/openssl/lhash.h ../include/openssl/md2.h
729pkcs8.o: ../include/openssl/md4.h ../include/openssl/md5.h
730pkcs8.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
558pkcs8.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 731pkcs8.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
559pkcs8.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 732pkcs8.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
560pkcs8.o: ../include/openssl/pem.h ../include/openssl/pem2.h 733pkcs8.o: ../include/openssl/pem.h ../include/openssl/pem2.h
561pkcs8.o: ../include/openssl/pkcs12.h ../include/openssl/pkcs7.h 734pkcs8.o: ../include/openssl/pkcs12.h ../include/openssl/pkcs7.h
562pkcs8.o: ../include/openssl/rand.h ../include/openssl/rsa.h 735pkcs8.o: ../include/openssl/rand.h ../include/openssl/rc2.h
736pkcs8.o: ../include/openssl/rc4.h ../include/openssl/rc5.h
737pkcs8.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
563pkcs8.o: ../include/openssl/safestack.h ../include/openssl/sha.h 738pkcs8.o: ../include/openssl/safestack.h ../include/openssl/sha.h
564pkcs8.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 739pkcs8.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
565pkcs8.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 740pkcs8.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
566pkcs8.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h pkcs8.c 741pkcs8.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
567rand.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 742pkcs8.o: ../include/openssl/x509_vfy.h apps.h pkcs8.c
743rand.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
744rand.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
568rand.o: ../include/openssl/bn.h ../include/openssl/buffer.h 745rand.o: ../include/openssl/bn.h ../include/openssl/buffer.h
569rand.o: ../include/openssl/conf.h ../include/openssl/crypto.h 746rand.o: ../include/openssl/cast.h ../include/openssl/conf.h
570rand.o: ../include/openssl/dh.h ../include/openssl/dsa.h 747rand.o: ../include/openssl/crypto.h ../include/openssl/des.h
571rand.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 748rand.o: ../include/openssl/des_old.h ../include/openssl/dh.h
572rand.o: ../include/openssl/err.h ../include/openssl/evp.h 749rand.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
573rand.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 750rand.o: ../include/openssl/engine.h ../include/openssl/err.h
751rand.o: ../include/openssl/evp.h ../include/openssl/idea.h
752rand.o: ../include/openssl/lhash.h ../include/openssl/md2.h
753rand.o: ../include/openssl/md4.h ../include/openssl/md5.h
754rand.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
574rand.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 755rand.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
575rand.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 756rand.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
576rand.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 757rand.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
758rand.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
759rand.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
577rand.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 760rand.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
578rand.o: ../include/openssl/sha.h ../include/openssl/stack.h 761rand.o: ../include/openssl/sha.h ../include/openssl/stack.h
579rand.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 762rand.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
580rand.o: ../include/openssl/ui.h ../include/openssl/x509.h 763rand.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
581rand.o: ../include/openssl/x509_vfy.h apps.h rand.c 764rand.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h rand.c
582req.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 765req.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
766req.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
583req.o: ../include/openssl/bn.h ../include/openssl/buffer.h 767req.o: ../include/openssl/bn.h ../include/openssl/buffer.h
584req.o: ../include/openssl/conf.h ../include/openssl/crypto.h 768req.o: ../include/openssl/cast.h ../include/openssl/conf.h
585req.o: ../include/openssl/dh.h ../include/openssl/dsa.h 769req.o: ../include/openssl/crypto.h ../include/openssl/des.h
586req.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 770req.o: ../include/openssl/des_old.h ../include/openssl/dh.h
587req.o: ../include/openssl/err.h ../include/openssl/evp.h 771req.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
588req.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 772req.o: ../include/openssl/engine.h ../include/openssl/err.h
773req.o: ../include/openssl/evp.h ../include/openssl/idea.h
774req.o: ../include/openssl/lhash.h ../include/openssl/md2.h
775req.o: ../include/openssl/md4.h ../include/openssl/md5.h
776req.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
589req.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 777req.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
590req.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 778req.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
591req.o: ../include/openssl/pem.h ../include/openssl/pem2.h 779req.o: ../include/openssl/pem.h ../include/openssl/pem2.h
592req.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 780req.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
781req.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
782req.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
593req.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 783req.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
594req.o: ../include/openssl/sha.h ../include/openssl/stack.h 784req.o: ../include/openssl/sha.h ../include/openssl/stack.h
595req.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 785req.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
596req.o: ../include/openssl/ui.h ../include/openssl/x509.h 786req.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
597req.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h apps.h req.c 787req.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
598rsa.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 788req.o: ../include/openssl/x509v3.h apps.h req.c
789rsa.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
790rsa.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
599rsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h 791rsa.o: ../include/openssl/bn.h ../include/openssl/buffer.h
600rsa.o: ../include/openssl/conf.h ../include/openssl/crypto.h 792rsa.o: ../include/openssl/cast.h ../include/openssl/conf.h
601rsa.o: ../include/openssl/dh.h ../include/openssl/dsa.h 793rsa.o: ../include/openssl/crypto.h ../include/openssl/des.h
602rsa.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 794rsa.o: ../include/openssl/des_old.h ../include/openssl/dh.h
603rsa.o: ../include/openssl/err.h ../include/openssl/evp.h 795rsa.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
604rsa.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 796rsa.o: ../include/openssl/engine.h ../include/openssl/err.h
797rsa.o: ../include/openssl/evp.h ../include/openssl/idea.h
798rsa.o: ../include/openssl/lhash.h ../include/openssl/md2.h
799rsa.o: ../include/openssl/md4.h ../include/openssl/md5.h
800rsa.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
605rsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 801rsa.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
606rsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 802rsa.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
607rsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h 803rsa.o: ../include/openssl/pem.h ../include/openssl/pem2.h
608rsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 804rsa.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
805rsa.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
806rsa.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
609rsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 807rsa.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
610rsa.o: ../include/openssl/sha.h ../include/openssl/stack.h 808rsa.o: ../include/openssl/sha.h ../include/openssl/stack.h
611rsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 809rsa.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
612rsa.o: ../include/openssl/ui.h ../include/openssl/x509.h 810rsa.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
613rsa.o: ../include/openssl/x509_vfy.h apps.h rsa.c 811rsa.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h rsa.c
614rsautl.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 812rsautl.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
813rsautl.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
615rsautl.o: ../include/openssl/bn.h ../include/openssl/buffer.h 814rsautl.o: ../include/openssl/bn.h ../include/openssl/buffer.h
616rsautl.o: ../include/openssl/conf.h ../include/openssl/crypto.h 815rsautl.o: ../include/openssl/cast.h ../include/openssl/conf.h
617rsautl.o: ../include/openssl/dh.h ../include/openssl/dsa.h 816rsautl.o: ../include/openssl/crypto.h ../include/openssl/des.h
618rsautl.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 817rsautl.o: ../include/openssl/des_old.h ../include/openssl/dh.h
619rsautl.o: ../include/openssl/err.h ../include/openssl/evp.h 818rsautl.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
620rsautl.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 819rsautl.o: ../include/openssl/engine.h ../include/openssl/err.h
820rsautl.o: ../include/openssl/evp.h ../include/openssl/idea.h
821rsautl.o: ../include/openssl/lhash.h ../include/openssl/md2.h
822rsautl.o: ../include/openssl/md4.h ../include/openssl/md5.h
823rsautl.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
621rsautl.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 824rsautl.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
622rsautl.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 825rsautl.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
623rsautl.o: ../include/openssl/pem.h ../include/openssl/pem2.h 826rsautl.o: ../include/openssl/pem.h ../include/openssl/pem2.h
624rsautl.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 827rsautl.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
828rsautl.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
829rsautl.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
625rsautl.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 830rsautl.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
626rsautl.o: ../include/openssl/sha.h ../include/openssl/stack.h 831rsautl.o: ../include/openssl/sha.h ../include/openssl/stack.h
627rsautl.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 832rsautl.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
628rsautl.o: ../include/openssl/ui.h ../include/openssl/x509.h 833rsautl.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
629rsautl.o: ../include/openssl/x509_vfy.h apps.h rsautl.c 834rsautl.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
630s_cb.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 835rsautl.o: rsautl.c
836s_cb.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
837s_cb.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
631s_cb.o: ../include/openssl/bn.h ../include/openssl/buffer.h 838s_cb.o: ../include/openssl/bn.h ../include/openssl/buffer.h
632s_cb.o: ../include/openssl/comp.h ../include/openssl/conf.h 839s_cb.o: ../include/openssl/cast.h ../include/openssl/comp.h
633s_cb.o: ../include/openssl/crypto.h ../include/openssl/dh.h 840s_cb.o: ../include/openssl/conf.h ../include/openssl/crypto.h
634s_cb.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 841s_cb.o: ../include/openssl/des.h ../include/openssl/des_old.h
635s_cb.o: ../include/openssl/engine.h ../include/openssl/err.h 842s_cb.o: ../include/openssl/dh.h ../include/openssl/dsa.h
636s_cb.o: ../include/openssl/evp.h ../include/openssl/kssl.h 843s_cb.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
637s_cb.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 844s_cb.o: ../include/openssl/err.h ../include/openssl/evp.h
845s_cb.o: ../include/openssl/idea.h ../include/openssl/kssl.h
846s_cb.o: ../include/openssl/lhash.h ../include/openssl/md2.h
847s_cb.o: ../include/openssl/md4.h ../include/openssl/md5.h
848s_cb.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
638s_cb.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 849s_cb.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
639s_cb.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 850s_cb.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
640s_cb.o: ../include/openssl/pem.h ../include/openssl/pem2.h 851s_cb.o: ../include/openssl/pem.h ../include/openssl/pem2.h
641s_cb.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 852s_cb.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
853s_cb.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
854s_cb.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
642s_cb.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 855s_cb.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
643s_cb.o: ../include/openssl/sha.h ../include/openssl/ssl.h 856s_cb.o: ../include/openssl/sha.h ../include/openssl/ssl.h
644s_cb.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h 857s_cb.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
645s_cb.o: ../include/openssl/ssl3.h ../include/openssl/stack.h 858s_cb.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
646s_cb.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h 859s_cb.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
647s_cb.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 860s_cb.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
648s_cb.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h s_apps.h 861s_cb.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
649s_cb.o: s_cb.c 862s_cb.o: ../include/openssl/x509_vfy.h apps.h s_apps.h s_cb.c
650s_client.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 863s_client.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
864s_client.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
651s_client.o: ../include/openssl/bn.h ../include/openssl/buffer.h 865s_client.o: ../include/openssl/bn.h ../include/openssl/buffer.h
652s_client.o: ../include/openssl/comp.h ../include/openssl/conf.h 866s_client.o: ../include/openssl/cast.h ../include/openssl/comp.h
653s_client.o: ../include/openssl/crypto.h ../include/openssl/dh.h 867s_client.o: ../include/openssl/conf.h ../include/openssl/crypto.h
654s_client.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 868s_client.o: ../include/openssl/des.h ../include/openssl/des_old.h
655s_client.o: ../include/openssl/engine.h ../include/openssl/err.h 869s_client.o: ../include/openssl/dh.h ../include/openssl/dsa.h
656s_client.o: ../include/openssl/evp.h ../include/openssl/kssl.h 870s_client.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
657s_client.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 871s_client.o: ../include/openssl/err.h ../include/openssl/evp.h
872s_client.o: ../include/openssl/idea.h ../include/openssl/kssl.h
873s_client.o: ../include/openssl/lhash.h ../include/openssl/md2.h
874s_client.o: ../include/openssl/md4.h ../include/openssl/md5.h
875s_client.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
658s_client.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 876s_client.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
659s_client.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 877s_client.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
660s_client.o: ../include/openssl/pem.h ../include/openssl/pem2.h 878s_client.o: ../include/openssl/pem.h ../include/openssl/pem2.h
661s_client.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 879s_client.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
880s_client.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
881s_client.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
662s_client.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 882s_client.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
663s_client.o: ../include/openssl/sha.h ../include/openssl/ssl.h 883s_client.o: ../include/openssl/sha.h ../include/openssl/ssl.h
664s_client.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h 884s_client.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
665s_client.o: ../include/openssl/ssl3.h ../include/openssl/stack.h 885s_client.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
666s_client.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h 886s_client.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
667s_client.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 887s_client.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
668s_client.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h 888s_client.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
669s_client.o: s_apps.h s_client.c 889s_client.o: ../include/openssl/x509_vfy.h apps.h s_apps.h s_client.c
670s_server.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 890s_server.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
891s_server.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
671s_server.o: ../include/openssl/bn.h ../include/openssl/buffer.h 892s_server.o: ../include/openssl/bn.h ../include/openssl/buffer.h
672s_server.o: ../include/openssl/comp.h ../include/openssl/conf.h 893s_server.o: ../include/openssl/cast.h ../include/openssl/comp.h
673s_server.o: ../include/openssl/crypto.h ../include/openssl/dh.h 894s_server.o: ../include/openssl/conf.h ../include/openssl/crypto.h
674s_server.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 895s_server.o: ../include/openssl/des.h ../include/openssl/des_old.h
675s_server.o: ../include/openssl/engine.h ../include/openssl/err.h 896s_server.o: ../include/openssl/dh.h ../include/openssl/dsa.h
676s_server.o: ../include/openssl/evp.h ../include/openssl/kssl.h 897s_server.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
677s_server.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 898s_server.o: ../include/openssl/err.h ../include/openssl/evp.h
899s_server.o: ../include/openssl/idea.h ../include/openssl/kssl.h
900s_server.o: ../include/openssl/lhash.h ../include/openssl/md2.h
901s_server.o: ../include/openssl/md4.h ../include/openssl/md5.h
902s_server.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
678s_server.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 903s_server.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
679s_server.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 904s_server.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
680s_server.o: ../include/openssl/pem.h ../include/openssl/pem2.h 905s_server.o: ../include/openssl/pem.h ../include/openssl/pem2.h
681s_server.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 906s_server.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
907s_server.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
908s_server.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
682s_server.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 909s_server.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
683s_server.o: ../include/openssl/sha.h ../include/openssl/ssl.h 910s_server.o: ../include/openssl/sha.h ../include/openssl/ssl.h
684s_server.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h 911s_server.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
685s_server.o: ../include/openssl/ssl3.h ../include/openssl/stack.h 912s_server.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
686s_server.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h 913s_server.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
687s_server.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 914s_server.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
688s_server.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h 915s_server.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
689s_server.o: s_apps.h s_server.c 916s_server.o: ../include/openssl/x509_vfy.h apps.h s_apps.h s_server.c
690s_socket.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 917s_socket.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
918s_socket.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
691s_socket.o: ../include/openssl/bn.h ../include/openssl/buffer.h 919s_socket.o: ../include/openssl/bn.h ../include/openssl/buffer.h
692s_socket.o: ../include/openssl/comp.h ../include/openssl/conf.h 920s_socket.o: ../include/openssl/cast.h ../include/openssl/comp.h
693s_socket.o: ../include/openssl/crypto.h ../include/openssl/dh.h 921s_socket.o: ../include/openssl/conf.h ../include/openssl/crypto.h
694s_socket.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 922s_socket.o: ../include/openssl/des.h ../include/openssl/des_old.h
695s_socket.o: ../include/openssl/engine.h ../include/openssl/err.h 923s_socket.o: ../include/openssl/dh.h ../include/openssl/dsa.h
696s_socket.o: ../include/openssl/evp.h ../include/openssl/kssl.h 924s_socket.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
697s_socket.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 925s_socket.o: ../include/openssl/err.h ../include/openssl/evp.h
926s_socket.o: ../include/openssl/idea.h ../include/openssl/kssl.h
927s_socket.o: ../include/openssl/lhash.h ../include/openssl/md2.h
928s_socket.o: ../include/openssl/md4.h ../include/openssl/md5.h
929s_socket.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
698s_socket.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 930s_socket.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
699s_socket.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 931s_socket.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
700s_socket.o: ../include/openssl/pem.h ../include/openssl/pem2.h 932s_socket.o: ../include/openssl/pem.h ../include/openssl/pem2.h
701s_socket.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 933s_socket.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
934s_socket.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
935s_socket.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
702s_socket.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 936s_socket.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
703s_socket.o: ../include/openssl/sha.h ../include/openssl/ssl.h 937s_socket.o: ../include/openssl/sha.h ../include/openssl/ssl.h
704s_socket.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h 938s_socket.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
705s_socket.o: ../include/openssl/ssl3.h ../include/openssl/stack.h 939s_socket.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
706s_socket.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h 940s_socket.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
707s_socket.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 941s_socket.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
708s_socket.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h 942s_socket.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
709s_socket.o: s_apps.h s_socket.c 943s_socket.o: ../include/openssl/x509_vfy.h apps.h s_apps.h s_socket.c
710s_time.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 944s_time.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
945s_time.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
711s_time.o: ../include/openssl/bn.h ../include/openssl/buffer.h 946s_time.o: ../include/openssl/bn.h ../include/openssl/buffer.h
712s_time.o: ../include/openssl/comp.h ../include/openssl/conf.h 947s_time.o: ../include/openssl/cast.h ../include/openssl/comp.h
713s_time.o: ../include/openssl/crypto.h ../include/openssl/dh.h 948s_time.o: ../include/openssl/conf.h ../include/openssl/crypto.h
714s_time.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 949s_time.o: ../include/openssl/des.h ../include/openssl/des_old.h
715s_time.o: ../include/openssl/engine.h ../include/openssl/err.h 950s_time.o: ../include/openssl/dh.h ../include/openssl/dsa.h
716s_time.o: ../include/openssl/evp.h ../include/openssl/kssl.h 951s_time.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
717s_time.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 952s_time.o: ../include/openssl/err.h ../include/openssl/evp.h
953s_time.o: ../include/openssl/idea.h ../include/openssl/kssl.h
954s_time.o: ../include/openssl/lhash.h ../include/openssl/md2.h
955s_time.o: ../include/openssl/md4.h ../include/openssl/md5.h
956s_time.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
718s_time.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 957s_time.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
719s_time.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 958s_time.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
720s_time.o: ../include/openssl/pem.h ../include/openssl/pem2.h 959s_time.o: ../include/openssl/pem.h ../include/openssl/pem2.h
721s_time.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 960s_time.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
961s_time.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
962s_time.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
722s_time.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 963s_time.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
723s_time.o: ../include/openssl/sha.h ../include/openssl/ssl.h 964s_time.o: ../include/openssl/sha.h ../include/openssl/ssl.h
724s_time.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h 965s_time.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
725s_time.o: ../include/openssl/ssl3.h ../include/openssl/stack.h 966s_time.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
726s_time.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h 967s_time.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
727s_time.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 968s_time.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
728s_time.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h 969s_time.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
729s_time.o: s_apps.h s_time.c 970s_time.o: ../include/openssl/x509_vfy.h apps.h s_apps.h s_time.c
730sess_id.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 971sess_id.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
972sess_id.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
731sess_id.o: ../include/openssl/bn.h ../include/openssl/buffer.h 973sess_id.o: ../include/openssl/bn.h ../include/openssl/buffer.h
732sess_id.o: ../include/openssl/comp.h ../include/openssl/conf.h 974sess_id.o: ../include/openssl/cast.h ../include/openssl/comp.h
733sess_id.o: ../include/openssl/crypto.h ../include/openssl/dh.h 975sess_id.o: ../include/openssl/conf.h ../include/openssl/crypto.h
734sess_id.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 976sess_id.o: ../include/openssl/des.h ../include/openssl/des_old.h
735sess_id.o: ../include/openssl/engine.h ../include/openssl/err.h 977sess_id.o: ../include/openssl/dh.h ../include/openssl/dsa.h
736sess_id.o: ../include/openssl/evp.h ../include/openssl/kssl.h 978sess_id.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
737sess_id.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 979sess_id.o: ../include/openssl/err.h ../include/openssl/evp.h
980sess_id.o: ../include/openssl/idea.h ../include/openssl/kssl.h
981sess_id.o: ../include/openssl/lhash.h ../include/openssl/md2.h
982sess_id.o: ../include/openssl/md4.h ../include/openssl/md5.h
983sess_id.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
738sess_id.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 984sess_id.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
739sess_id.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 985sess_id.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
740sess_id.o: ../include/openssl/pem.h ../include/openssl/pem2.h 986sess_id.o: ../include/openssl/pem.h ../include/openssl/pem2.h
741sess_id.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 987sess_id.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
988sess_id.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
989sess_id.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
742sess_id.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 990sess_id.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
743sess_id.o: ../include/openssl/sha.h ../include/openssl/ssl.h 991sess_id.o: ../include/openssl/sha.h ../include/openssl/ssl.h
744sess_id.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h 992sess_id.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
745sess_id.o: ../include/openssl/ssl3.h ../include/openssl/stack.h 993sess_id.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
746sess_id.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h 994sess_id.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
747sess_id.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 995sess_id.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
748sess_id.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h 996sess_id.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
749sess_id.o: sess_id.c 997sess_id.o: ../include/openssl/x509_vfy.h apps.h sess_id.c
750smime.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 998smime.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
999smime.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
751smime.o: ../include/openssl/bn.h ../include/openssl/buffer.h 1000smime.o: ../include/openssl/bn.h ../include/openssl/buffer.h
752smime.o: ../include/openssl/conf.h ../include/openssl/crypto.h 1001smime.o: ../include/openssl/cast.h ../include/openssl/conf.h
753smime.o: ../include/openssl/dh.h ../include/openssl/dsa.h 1002smime.o: ../include/openssl/crypto.h ../include/openssl/des.h
754smime.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 1003smime.o: ../include/openssl/des_old.h ../include/openssl/dh.h
755smime.o: ../include/openssl/err.h ../include/openssl/evp.h 1004smime.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
756smime.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 1005smime.o: ../include/openssl/engine.h ../include/openssl/err.h
1006smime.o: ../include/openssl/evp.h ../include/openssl/idea.h
1007smime.o: ../include/openssl/lhash.h ../include/openssl/md2.h
1008smime.o: ../include/openssl/md4.h ../include/openssl/md5.h
1009smime.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
757smime.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 1010smime.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
758smime.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 1011smime.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
759smime.o: ../include/openssl/pem.h ../include/openssl/pem2.h 1012smime.o: ../include/openssl/pem.h ../include/openssl/pem2.h
760smime.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 1013smime.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
1014smime.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
1015smime.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
761smime.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 1016smime.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
762smime.o: ../include/openssl/sha.h ../include/openssl/stack.h 1017smime.o: ../include/openssl/sha.h ../include/openssl/stack.h
763smime.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 1018smime.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
764smime.o: ../include/openssl/ui.h ../include/openssl/x509.h 1019smime.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
765smime.o: ../include/openssl/x509_vfy.h apps.h smime.c 1020smime.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h smime.c
766speed.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h 1021speed.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
767speed.o: ../include/openssl/bio.h ../include/openssl/blowfish.h 1022speed.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
768speed.o: ../include/openssl/bn.h ../include/openssl/buffer.h 1023speed.o: ../include/openssl/bn.h ../include/openssl/buffer.h
@@ -786,71 +1041,97 @@ speed.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
786speed.o: ../include/openssl/txt_db.h ../include/openssl/ui.h 1041speed.o: ../include/openssl/txt_db.h ../include/openssl/ui.h
787speed.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h 1042speed.o: ../include/openssl/ui_compat.h ../include/openssl/x509.h
788speed.o: ../include/openssl/x509_vfy.h apps.h speed.c testdsa.h testrsa.h 1043speed.o: ../include/openssl/x509_vfy.h apps.h speed.c testdsa.h testrsa.h
789spkac.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 1044spkac.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
1045spkac.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
790spkac.o: ../include/openssl/bn.h ../include/openssl/buffer.h 1046spkac.o: ../include/openssl/bn.h ../include/openssl/buffer.h
791spkac.o: ../include/openssl/conf.h ../include/openssl/crypto.h 1047spkac.o: ../include/openssl/cast.h ../include/openssl/conf.h
792spkac.o: ../include/openssl/dh.h ../include/openssl/dsa.h 1048spkac.o: ../include/openssl/crypto.h ../include/openssl/des.h
793spkac.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 1049spkac.o: ../include/openssl/des_old.h ../include/openssl/dh.h
794spkac.o: ../include/openssl/err.h ../include/openssl/evp.h 1050spkac.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
795spkac.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 1051spkac.o: ../include/openssl/engine.h ../include/openssl/err.h
1052spkac.o: ../include/openssl/evp.h ../include/openssl/idea.h
1053spkac.o: ../include/openssl/lhash.h ../include/openssl/md2.h
1054spkac.o: ../include/openssl/md4.h ../include/openssl/md5.h
1055spkac.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
796spkac.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 1056spkac.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
797spkac.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 1057spkac.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
798spkac.o: ../include/openssl/pem.h ../include/openssl/pem2.h 1058spkac.o: ../include/openssl/pem.h ../include/openssl/pem2.h
799spkac.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 1059spkac.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
1060spkac.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
1061spkac.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
800spkac.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 1062spkac.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
801spkac.o: ../include/openssl/sha.h ../include/openssl/stack.h 1063spkac.o: ../include/openssl/sha.h ../include/openssl/stack.h
802spkac.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 1064spkac.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
803spkac.o: ../include/openssl/ui.h ../include/openssl/x509.h 1065spkac.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
804spkac.o: ../include/openssl/x509_vfy.h apps.h spkac.c 1066spkac.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h spkac.c
805verify.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 1067verify.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
1068verify.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
806verify.o: ../include/openssl/bn.h ../include/openssl/buffer.h 1069verify.o: ../include/openssl/bn.h ../include/openssl/buffer.h
807verify.o: ../include/openssl/conf.h ../include/openssl/crypto.h 1070verify.o: ../include/openssl/cast.h ../include/openssl/conf.h
808verify.o: ../include/openssl/dh.h ../include/openssl/dsa.h 1071verify.o: ../include/openssl/crypto.h ../include/openssl/des.h
809verify.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 1072verify.o: ../include/openssl/des_old.h ../include/openssl/dh.h
810verify.o: ../include/openssl/err.h ../include/openssl/evp.h 1073verify.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
811verify.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 1074verify.o: ../include/openssl/engine.h ../include/openssl/err.h
1075verify.o: ../include/openssl/evp.h ../include/openssl/idea.h
1076verify.o: ../include/openssl/lhash.h ../include/openssl/md2.h
1077verify.o: ../include/openssl/md4.h ../include/openssl/md5.h
1078verify.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
812verify.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 1079verify.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
813verify.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 1080verify.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
814verify.o: ../include/openssl/pem.h ../include/openssl/pem2.h 1081verify.o: ../include/openssl/pem.h ../include/openssl/pem2.h
815verify.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 1082verify.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
1083verify.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
1084verify.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
816verify.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 1085verify.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
817verify.o: ../include/openssl/sha.h ../include/openssl/stack.h 1086verify.o: ../include/openssl/sha.h ../include/openssl/stack.h
818verify.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 1087verify.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
819verify.o: ../include/openssl/ui.h ../include/openssl/x509.h 1088verify.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
820verify.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h apps.h 1089verify.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
821verify.o: verify.c 1090verify.o: ../include/openssl/x509v3.h apps.h verify.c
822version.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 1091version.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
823version.o: ../include/openssl/blowfish.h ../include/openssl/bn.h 1092version.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
824version.o: ../include/openssl/buffer.h ../include/openssl/conf.h 1093version.o: ../include/openssl/bn.h ../include/openssl/buffer.h
1094version.o: ../include/openssl/cast.h ../include/openssl/conf.h
825version.o: ../include/openssl/crypto.h ../include/openssl/des.h 1095version.o: ../include/openssl/crypto.h ../include/openssl/des.h
826version.o: ../include/openssl/des_old.h ../include/openssl/dh.h 1096version.o: ../include/openssl/des_old.h ../include/openssl/dh.h
827version.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h 1097version.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
828version.o: ../include/openssl/engine.h ../include/openssl/err.h 1098version.o: ../include/openssl/engine.h ../include/openssl/err.h
829version.o: ../include/openssl/evp.h ../include/openssl/idea.h 1099version.o: ../include/openssl/evp.h ../include/openssl/idea.h
830version.o: ../include/openssl/lhash.h ../include/openssl/md2.h 1100version.o: ../include/openssl/lhash.h ../include/openssl/md2.h
831version.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h 1101version.o: ../include/openssl/md4.h ../include/openssl/md5.h
832version.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h 1102version.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
833version.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h 1103version.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
834version.o: ../include/openssl/rand.h ../include/openssl/rc4.h 1104version.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
1105version.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
1106version.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
1107version.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
835version.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 1108version.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
836version.o: ../include/openssl/sha.h ../include/openssl/stack.h 1109version.o: ../include/openssl/sha.h ../include/openssl/stack.h
837version.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 1110version.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
838version.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h 1111version.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
839version.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h 1112version.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h apps.h
840version.o: version.c 1113version.o: version.c
841x509.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h 1114x509.o: ../e_os.h ../include/openssl/aes.h ../include/openssl/asn1.h
1115x509.o: ../include/openssl/bio.h ../include/openssl/blowfish.h
842x509.o: ../include/openssl/bn.h ../include/openssl/buffer.h 1116x509.o: ../include/openssl/bn.h ../include/openssl/buffer.h
843x509.o: ../include/openssl/conf.h ../include/openssl/crypto.h 1117x509.o: ../include/openssl/cast.h ../include/openssl/conf.h
844x509.o: ../include/openssl/dh.h ../include/openssl/dsa.h 1118x509.o: ../include/openssl/crypto.h ../include/openssl/des.h
845x509.o: ../include/openssl/e_os2.h ../include/openssl/engine.h 1119x509.o: ../include/openssl/des_old.h ../include/openssl/dh.h
846x509.o: ../include/openssl/err.h ../include/openssl/evp.h 1120x509.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
847x509.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 1121x509.o: ../include/openssl/engine.h ../include/openssl/err.h
1122x509.o: ../include/openssl/evp.h ../include/openssl/idea.h
1123x509.o: ../include/openssl/lhash.h ../include/openssl/md2.h
1124x509.o: ../include/openssl/md4.h ../include/openssl/md5.h
1125x509.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
848x509.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 1126x509.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
849x509.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 1127x509.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
850x509.o: ../include/openssl/pem.h ../include/openssl/pem2.h 1128x509.o: ../include/openssl/pem.h ../include/openssl/pem2.h
851x509.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 1129x509.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
1130x509.o: ../include/openssl/rc2.h ../include/openssl/rc4.h
1131x509.o: ../include/openssl/rc5.h ../include/openssl/ripemd.h
852x509.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 1132x509.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
853x509.o: ../include/openssl/sha.h ../include/openssl/stack.h 1133x509.o: ../include/openssl/sha.h ../include/openssl/stack.h
854x509.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h 1134x509.o: ../include/openssl/symhacks.h ../include/openssl/txt_db.h
855x509.o: ../include/openssl/ui.h ../include/openssl/x509.h 1135x509.o: ../include/openssl/ui.h ../include/openssl/ui_compat.h
856x509.o: ../include/openssl/x509_vfy.h ../include/openssl/x509v3.h apps.h x509.c 1136x509.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
1137x509.o: ../include/openssl/x509v3.h apps.h x509.c
diff --git a/src/lib/libssl/src/apps/apps.c b/src/lib/libssl/src/apps/apps.c
index a302119d7f..1a24b1c596 100644
--- a/src/lib/libssl/src/apps/apps.c
+++ b/src/lib/libssl/src/apps/apps.c
@@ -798,7 +798,7 @@ end:
798 return(x); 798 return(x);
799 } 799 }
800 800
801EVP_PKEY *load_key(BIO *err, const char *file, int format, 801EVP_PKEY *load_key(BIO *err, const char *file, int format, int maybe_stdin,
802 const char *pass, ENGINE *e, const char *key_descrip) 802 const char *pass, ENGINE *e, const char *key_descrip)
803 { 803 {
804 BIO *key=NULL; 804 BIO *key=NULL;
@@ -808,7 +808,7 @@ EVP_PKEY *load_key(BIO *err, const char *file, int format,
808 cb_data.password = pass; 808 cb_data.password = pass;
809 cb_data.prompt_info = file; 809 cb_data.prompt_info = file;
810 810
811 if (file == NULL) 811 if (file == NULL && (!maybe_stdin || format == FORMAT_ENGINE))
812 { 812 {
813 BIO_printf(err,"no keyfile specified\n"); 813 BIO_printf(err,"no keyfile specified\n");
814 goto end; 814 goto end;
@@ -828,12 +828,19 @@ EVP_PKEY *load_key(BIO *err, const char *file, int format,
828 ERR_print_errors(err); 828 ERR_print_errors(err);
829 goto end; 829 goto end;
830 } 830 }
831 if (BIO_read_filename(key,file) <= 0) 831 if (file == NULL && maybe_stdin)
832 { 832 {
833 BIO_printf(err, "Error opening %s %s\n", key_descrip, file); 833 setvbuf(stdin, NULL, _IONBF, 0);
834 ERR_print_errors(err); 834 BIO_set_fp(key,stdin,BIO_NOCLOSE);
835 goto end;
836 } 835 }
836 else
837 if (BIO_read_filename(key,file) <= 0)
838 {
839 BIO_printf(err, "Error opening %s %s\n",
840 key_descrip, file);
841 ERR_print_errors(err);
842 goto end;
843 }
837 if (format == FORMAT_ASN1) 844 if (format == FORMAT_ASN1)
838 { 845 {
839 pkey=d2i_PrivateKey_bio(key, NULL); 846 pkey=d2i_PrivateKey_bio(key, NULL);
@@ -867,7 +874,7 @@ EVP_PKEY *load_key(BIO *err, const char *file, int format,
867 return(pkey); 874 return(pkey);
868 } 875 }
869 876
870EVP_PKEY *load_pubkey(BIO *err, const char *file, int format, 877EVP_PKEY *load_pubkey(BIO *err, const char *file, int format, int maybe_stdin,
871 const char *pass, ENGINE *e, const char *key_descrip) 878 const char *pass, ENGINE *e, const char *key_descrip)
872 { 879 {
873 BIO *key=NULL; 880 BIO *key=NULL;
@@ -877,7 +884,7 @@ EVP_PKEY *load_pubkey(BIO *err, const char *file, int format,
877 cb_data.password = pass; 884 cb_data.password = pass;
878 cb_data.prompt_info = file; 885 cb_data.prompt_info = file;
879 886
880 if (file == NULL) 887 if (file == NULL && (!maybe_stdin || format == FORMAT_ENGINE))
881 { 888 {
882 BIO_printf(err,"no keyfile specified\n"); 889 BIO_printf(err,"no keyfile specified\n");
883 goto end; 890 goto end;
@@ -897,11 +904,18 @@ EVP_PKEY *load_pubkey(BIO *err, const char *file, int format,
897 ERR_print_errors(err); 904 ERR_print_errors(err);
898 goto end; 905 goto end;
899 } 906 }
900 if (BIO_read_filename(key,file) <= 0) 907 if (file == NULL && maybe_stdin)
901 { 908 {
902 BIO_printf(err, "Error opening %s %s\n", key_descrip, file); 909 setvbuf(stdin, NULL, _IONBF, 0);
903 ERR_print_errors(err); 910 BIO_set_fp(key,stdin,BIO_NOCLOSE);
904 goto end; 911 }
912 else
913 if (BIO_read_filename(key,file) <= 0)
914 {
915 BIO_printf(err, "Error opening %s %s\n",
916 key_descrip, file);
917 ERR_print_errors(err);
918 goto end;
905 } 919 }
906 if (format == FORMAT_ASN1) 920 if (format == FORMAT_ASN1)
907 { 921 {
@@ -1074,6 +1088,7 @@ int set_cert_ex(unsigned long *flags, const char *arg)
1074 { "no_extensions", X509_FLAG_NO_EXTENSIONS, 0}, 1088 { "no_extensions", X509_FLAG_NO_EXTENSIONS, 0},
1075 { "no_sigdump", X509_FLAG_NO_SIGDUMP, 0}, 1089 { "no_sigdump", X509_FLAG_NO_SIGDUMP, 0},
1076 { "no_aux", X509_FLAG_NO_AUX, 0}, 1090 { "no_aux", X509_FLAG_NO_AUX, 0},
1091 { "no_attributes", X509_FLAG_NO_ATTRIBUTES, 0},
1077 { "ext_default", X509V3_EXT_DEFAULT, X509V3_EXT_UNKNOWN_MASK}, 1092 { "ext_default", X509V3_EXT_DEFAULT, X509V3_EXT_UNKNOWN_MASK},
1078 { "ext_error", X509V3_EXT_ERROR_UNKNOWN, X509V3_EXT_UNKNOWN_MASK}, 1093 { "ext_error", X509V3_EXT_ERROR_UNKNOWN, X509V3_EXT_UNKNOWN_MASK},
1079 { "ext_parse", X509V3_EXT_PARSE_UNKNOWN, X509V3_EXT_UNKNOWN_MASK}, 1094 { "ext_parse", X509V3_EXT_PARSE_UNKNOWN, X509V3_EXT_UNKNOWN_MASK},
diff --git a/src/lib/libssl/src/apps/apps.h b/src/lib/libssl/src/apps/apps.h
index a88902ac13..32a79605ee 100644
--- a/src/lib/libssl/src/apps/apps.h
+++ b/src/lib/libssl/src/apps/apps.h
@@ -233,9 +233,9 @@ int app_passwd(BIO *err, char *arg1, char *arg2, char **pass1, char **pass2);
233int add_oid_section(BIO *err, CONF *conf); 233int add_oid_section(BIO *err, CONF *conf);
234X509 *load_cert(BIO *err, const char *file, int format, 234X509 *load_cert(BIO *err, const char *file, int format,
235 const char *pass, ENGINE *e, const char *cert_descrip); 235 const char *pass, ENGINE *e, const char *cert_descrip);
236EVP_PKEY *load_key(BIO *err, const char *file, int format, 236EVP_PKEY *load_key(BIO *err, const char *file, int format, int maybe_stdin,
237 const char *pass, ENGINE *e, const char *key_descrip); 237 const char *pass, ENGINE *e, const char *key_descrip);
238EVP_PKEY *load_pubkey(BIO *err, const char *file, int format, 238EVP_PKEY *load_pubkey(BIO *err, const char *file, int format, int maybe_stdin,
239 const char *pass, ENGINE *e, const char *key_descrip); 239 const char *pass, ENGINE *e, const char *key_descrip);
240STACK_OF(X509) *load_certs(BIO *err, const char *file, int format, 240STACK_OF(X509) *load_certs(BIO *err, const char *file, int format,
241 const char *pass, ENGINE *e, const char *cert_descrip); 241 const char *pass, ENGINE *e, const char *cert_descrip);
diff --git a/src/lib/libssl/src/apps/ca.c b/src/lib/libssl/src/apps/ca.c
index 322956de57..492b64f04f 100644
--- a/src/lib/libssl/src/apps/ca.c
+++ b/src/lib/libssl/src/apps/ca.c
@@ -699,7 +699,7 @@ bad:
699 goto err; 699 goto err;
700 } 700 }
701 } 701 }
702 pkey = load_key(bio_err, keyfile, keyform, key, e, 702 pkey = load_key(bio_err, keyfile, keyform, 0, key, e,
703 "CA private key"); 703 "CA private key");
704 if (key) memset(key,0,strlen(key)); 704 if (key) memset(key,0,strlen(key));
705 if (pkey == NULL) 705 if (pkey == NULL)
@@ -2089,9 +2089,8 @@ again2:
2089 } 2089 }
2090 } 2090 }
2091 2091
2092 row[DB_name]=X509_NAME_oneline(dn_subject,NULL,0);
2093 row[DB_serial]=BN_bn2hex(serial); 2092 row[DB_serial]=BN_bn2hex(serial);
2094 if ((row[DB_name] == NULL) || (row[DB_serial] == NULL)) 2093 if (row[DB_serial] == NULL)
2095 { 2094 {
2096 BIO_printf(bio_err,"Memory allocation failure\n"); 2095 BIO_printf(bio_err,"Memory allocation failure\n");
2097 goto err; 2096 goto err;
@@ -2304,10 +2303,10 @@ again2:
2304 2303
2305 /* row[DB_serial] done already */ 2304 /* row[DB_serial] done already */
2306 row[DB_file]=(char *)OPENSSL_malloc(8); 2305 row[DB_file]=(char *)OPENSSL_malloc(8);
2307 /* row[DB_name] done already */ 2306 row[DB_name]=X509_NAME_oneline(X509_get_subject_name(ret),NULL,0);
2308 2307
2309 if ((row[DB_type] == NULL) || (row[DB_exp_date] == NULL) || 2308 if ((row[DB_type] == NULL) || (row[DB_exp_date] == NULL) ||
2310 (row[DB_file] == NULL)) 2309 (row[DB_file] == NULL) || (row[DB_name] == NULL))
2311 { 2310 {
2312 BIO_printf(bio_err,"Memory allocation failure\n"); 2311 BIO_printf(bio_err,"Memory allocation failure\n");
2313 goto err; 2312 goto err;
diff --git a/src/lib/libssl/src/apps/dgst.c b/src/lib/libssl/src/apps/dgst.c
index e21c3d83ac..32e40c1f53 100644
--- a/src/lib/libssl/src/apps/dgst.c
+++ b/src/lib/libssl/src/apps/dgst.c
@@ -277,10 +277,10 @@ int MAIN(int argc, char **argv)
277 if(keyfile) 277 if(keyfile)
278 { 278 {
279 if (want_pub) 279 if (want_pub)
280 sigkey = load_pubkey(bio_err, keyfile, keyform, NULL, 280 sigkey = load_pubkey(bio_err, keyfile, keyform, 0, NULL,
281 e, "key file"); 281 e, "key file");
282 else 282 else
283 sigkey = load_key(bio_err, keyfile, keyform, NULL, 283 sigkey = load_key(bio_err, keyfile, keyform, 0, NULL,
284 e, "key file"); 284 e, "key file");
285 if (!sigkey) 285 if (!sigkey)
286 { 286 {
diff --git a/src/lib/libssl/src/apps/makeapps.com b/src/lib/libssl/src/apps/makeapps.com
index 2e666368b7..148246facc 100644
--- a/src/lib/libssl/src/apps/makeapps.com
+++ b/src/lib/libssl/src/apps/makeapps.com
@@ -1086,7 +1086,7 @@ $ CC = CC + "/DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS
1086$! 1086$!
1087$! Show user the result 1087$! Show user the result
1088$! 1088$!
1089$ WRITE SYS$OUTPUT "Main Compiling Command: ",CC 1089$ WRITE/SYMBOL SYS$OUTPUT "Main Compiling Command: ",CC
1090$! 1090$!
1091$! Special Threads For OpenVMS v7.1 Or Later 1091$! Special Threads For OpenVMS v7.1 Or Later
1092$! 1092$!
diff --git a/src/lib/libssl/src/apps/ocsp.c b/src/lib/libssl/src/apps/ocsp.c
index 49a156a1cf..59b97a634b 100644
--- a/src/lib/libssl/src/apps/ocsp.c
+++ b/src/lib/libssl/src/apps/ocsp.c
@@ -613,11 +613,11 @@ int MAIN(int argc, char **argv)
613 NULL, e, "CA certificate"); 613 NULL, e, "CA certificate");
614 if (rcertfile) 614 if (rcertfile)
615 { 615 {
616 rother = load_certs(bio_err, sign_certfile, FORMAT_PEM, 616 rother = load_certs(bio_err, rcertfile, FORMAT_PEM,
617 NULL, e, "responder other certificates"); 617 NULL, e, "responder other certificates");
618 if (!sign_other) goto end; 618 if (!rother) goto end;
619 } 619 }
620 rkey = load_key(bio_err, rkeyfile, FORMAT_PEM, NULL, NULL, 620 rkey = load_key(bio_err, rkeyfile, FORMAT_PEM, 0, NULL, NULL,
621 "responder private key"); 621 "responder private key");
622 if (!rkey) 622 if (!rkey)
623 goto end; 623 goto end;
@@ -663,7 +663,7 @@ int MAIN(int argc, char **argv)
663 NULL, e, "signer certificates"); 663 NULL, e, "signer certificates");
664 if (!sign_other) goto end; 664 if (!sign_other) goto end;
665 } 665 }
666 key = load_key(bio_err, keyfile, FORMAT_PEM, NULL, NULL, 666 key = load_key(bio_err, keyfile, FORMAT_PEM, 0, NULL, NULL,
667 "signer private key"); 667 "signer private key");
668 if (!key) 668 if (!key)
669 goto end; 669 goto end;
diff --git a/src/lib/libssl/src/apps/pkcs12.c b/src/lib/libssl/src/apps/pkcs12.c
index e345cf1489..1697f6157f 100644
--- a/src/lib/libssl/src/apps/pkcs12.c
+++ b/src/lib/libssl/src/apps/pkcs12.c
@@ -427,7 +427,7 @@ int MAIN(int argc, char **argv)
427 CRYPTO_push_info("process -export_cert"); 427 CRYPTO_push_info("process -export_cert");
428 CRYPTO_push_info("reading private key"); 428 CRYPTO_push_info("reading private key");
429#endif 429#endif
430 key = load_key(bio_err, keyname ? keyname : infile, FORMAT_PEM, 430 key = load_key(bio_err, keyname ? keyname : infile, FORMAT_PEM, 1,
431 passin, e, "private key"); 431 passin, e, "private key");
432 if (!key) { 432 if (!key) {
433 goto export_end; 433 goto export_end;
@@ -508,9 +508,10 @@ int MAIN(int argc, char **argv)
508 /* Exclude verified certificate */ 508 /* Exclude verified certificate */
509 for (i = 1; i < sk_X509_num (chain2) ; i++) 509 for (i = 1; i < sk_X509_num (chain2) ; i++)
510 sk_X509_push(certs, sk_X509_value (chain2, i)); 510 sk_X509_push(certs, sk_X509_value (chain2, i));
511 } 511 /* Free first certificate */
512 sk_X509_free(chain2); 512 X509_free(sk_X509_value(chain2, 0));
513 if (vret) { 513 sk_X509_free(chain2);
514 } else {
514 BIO_printf (bio_err, "Error %s getting chain.\n", 515 BIO_printf (bio_err, "Error %s getting chain.\n",
515 X509_verify_cert_error_string(vret)); 516 X509_verify_cert_error_string(vret));
516 goto export_end; 517 goto export_end;
@@ -537,8 +538,6 @@ int MAIN(int argc, char **argv)
537 } 538 }
538 sk_X509_pop_free(certs, X509_free); 539 sk_X509_pop_free(certs, X509_free);
539 certs = NULL; 540 certs = NULL;
540 /* ucert is part of certs so it is already freed */
541 ucert = NULL;
542 541
543#ifdef CRYPTO_MDEBUG 542#ifdef CRYPTO_MDEBUG
544 CRYPTO_pop_info(); 543 CRYPTO_pop_info();
@@ -627,7 +626,6 @@ int MAIN(int argc, char **argv)
627 if (certs) sk_X509_pop_free(certs, X509_free); 626 if (certs) sk_X509_pop_free(certs, X509_free);
628 if (safes) sk_PKCS7_pop_free(safes, PKCS7_free); 627 if (safes) sk_PKCS7_pop_free(safes, PKCS7_free);
629 if (bags) sk_PKCS12_SAFEBAG_pop_free(bags, PKCS12_SAFEBAG_free); 628 if (bags) sk_PKCS12_SAFEBAG_pop_free(bags, PKCS12_SAFEBAG_free);
630 if (ucert) X509_free(ucert);
631 629
632#ifdef CRYPTO_MDEBUG 630#ifdef CRYPTO_MDEBUG
633 CRYPTO_pop_info(); 631 CRYPTO_pop_info();
diff --git a/src/lib/libssl/src/apps/pkcs8.c b/src/lib/libssl/src/apps/pkcs8.c
index ba91caee6b..912e32006b 100644
--- a/src/lib/libssl/src/apps/pkcs8.c
+++ b/src/lib/libssl/src/apps/pkcs8.c
@@ -222,7 +222,8 @@ int MAIN(int argc, char **argv)
222 if (topk8) 222 if (topk8)
223 { 223 {
224 BIO_free(in); /* Not needed in this section */ 224 BIO_free(in); /* Not needed in this section */
225 pkey = load_key(bio_err, infile, informat, passin, e, "key"); 225 pkey = load_key(bio_err, infile, informat, 1,
226 passin, e, "key");
226 if (!pkey) { 227 if (!pkey) {
227 return (1); 228 return (1);
228 } 229 }
diff --git a/src/lib/libssl/src/apps/req.c b/src/lib/libssl/src/apps/req.c
index 5631a3839b..a3c1e0b4c4 100644
--- a/src/lib/libssl/src/apps/req.c
+++ b/src/lib/libssl/src/apps/req.c
@@ -151,7 +151,7 @@ int MAIN(int argc, char **argv)
151#ifndef OPENSSL_NO_DSA 151#ifndef OPENSSL_NO_DSA
152 DSA *dsa_params=NULL; 152 DSA *dsa_params=NULL;
153#endif 153#endif
154 unsigned long nmflag = 0; 154 unsigned long nmflag = 0, reqflag = 0;
155 int ex=1,x509=0,days=30; 155 int ex=1,x509=0,days=30;
156 X509 *x509ss=NULL; 156 X509 *x509ss=NULL;
157 X509_REQ *req=NULL; 157 X509_REQ *req=NULL;
@@ -356,6 +356,11 @@ int MAIN(int argc, char **argv)
356 if (--argc < 1) goto bad; 356 if (--argc < 1) goto bad;
357 if (!set_name_ex(&nmflag, *(++argv))) goto bad; 357 if (!set_name_ex(&nmflag, *(++argv))) goto bad;
358 } 358 }
359 else if (strcmp(*argv,"-reqopt") == 0)
360 {
361 if (--argc < 1) goto bad;
362 if (!set_cert_ex(&reqflag, *(++argv))) goto bad;
363 }
359 else if (strcmp(*argv,"-subject") == 0) 364 else if (strcmp(*argv,"-subject") == 0)
360 subject=1; 365 subject=1;
361 else if (strcmp(*argv,"-text") == 0) 366 else if (strcmp(*argv,"-text") == 0)
@@ -448,7 +453,8 @@ bad:
448 BIO_printf(bio_err," -extensions .. specify certificate extension section (override value in config file)\n"); 453 BIO_printf(bio_err," -extensions .. specify certificate extension section (override value in config file)\n");
449 BIO_printf(bio_err," -reqexts .. specify request extension section (override value in config file)\n"); 454 BIO_printf(bio_err," -reqexts .. specify request extension section (override value in config file)\n");
450 BIO_printf(bio_err," -utf8 input characters are UTF8 (default ASCII)\n"); 455 BIO_printf(bio_err," -utf8 input characters are UTF8 (default ASCII)\n");
451 BIO_printf(bio_err," -nameopt arg - various certificate name options\n"); 456 BIO_printf(bio_err," -nameopt arg - various certificate name options\n");
457 BIO_printf(bio_err," -reqopt arg - various request text options\n\n");
452 goto end; 458 goto end;
453 } 459 }
454 460
@@ -622,7 +628,7 @@ bad:
622 628
623 if (keyfile != NULL) 629 if (keyfile != NULL)
624 { 630 {
625 pkey = load_key(bio_err, keyfile, keyform, passin, e, 631 pkey = load_key(bio_err, keyfile, keyform, 0, passin, e,
626 "Private Key"); 632 "Private Key");
627 if (!pkey) 633 if (!pkey)
628 { 634 {
@@ -981,9 +987,9 @@ loop:
981 if (text) 987 if (text)
982 { 988 {
983 if (x509) 989 if (x509)
984 X509_print(out,x509ss); 990 X509_print_ex(out, x509ss, nmflag, reqflag);
985 else 991 else
986 X509_REQ_print(out,req); 992 X509_REQ_print_ex(out, req, nmflag, reqflag);
987 } 993 }
988 994
989 if(subject) 995 if(subject)
diff --git a/src/lib/libssl/src/apps/rsa.c b/src/lib/libssl/src/apps/rsa.c
index 60a3381527..4e19bc16fb 100644
--- a/src/lib/libssl/src/apps/rsa.c
+++ b/src/lib/libssl/src/apps/rsa.c
@@ -238,12 +238,12 @@ bad:
238 if (pubin) 238 if (pubin)
239 pkey = load_pubkey(bio_err, infile, 239 pkey = load_pubkey(bio_err, infile,
240 (informat == FORMAT_NETSCAPE && sgckey ? 240 (informat == FORMAT_NETSCAPE && sgckey ?
241 FORMAT_IISSGC : informat), 241 FORMAT_IISSGC : informat), 1,
242 passin, e, "Public Key"); 242 passin, e, "Public Key");
243 else 243 else
244 pkey = load_key(bio_err, infile, 244 pkey = load_key(bio_err, infile,
245 (informat == FORMAT_NETSCAPE && sgckey ? 245 (informat == FORMAT_NETSCAPE && sgckey ?
246 FORMAT_IISSGC : informat), 246 FORMAT_IISSGC : informat), 1,
247 passin, e, "Private Key"); 247 passin, e, "Private Key");
248 248
249 if (pkey != NULL) 249 if (pkey != NULL)
diff --git a/src/lib/libssl/src/apps/rsautl.c b/src/lib/libssl/src/apps/rsautl.c
index 9b02e6782e..36957e5b84 100644
--- a/src/lib/libssl/src/apps/rsautl.c
+++ b/src/lib/libssl/src/apps/rsautl.c
@@ -169,12 +169,12 @@ int MAIN(int argc, char **argv)
169 169
170 switch(key_type) { 170 switch(key_type) {
171 case KEY_PRIVKEY: 171 case KEY_PRIVKEY:
172 pkey = load_key(bio_err, keyfile, keyform, 172 pkey = load_key(bio_err, keyfile, keyform, 0,
173 NULL, e, "Private Key"); 173 NULL, e, "Private Key");
174 break; 174 break;
175 175
176 case KEY_PUBKEY: 176 case KEY_PUBKEY:
177 pkey = load_pubkey(bio_err, keyfile, keyform, 177 pkey = load_pubkey(bio_err, keyfile, keyform, 0,
178 NULL, e, "Public Key"); 178 NULL, e, "Public Key");
179 break; 179 break;
180 180
diff --git a/src/lib/libssl/src/apps/s_server.c b/src/lib/libssl/src/apps/s_server.c
index 497abf44ef..b03231f3ba 100644
--- a/src/lib/libssl/src/apps/s_server.c
+++ b/src/lib/libssl/src/apps/s_server.c
@@ -320,10 +320,10 @@ static char **local_argv;
320static int ebcdic_new(BIO *bi); 320static int ebcdic_new(BIO *bi);
321static int ebcdic_free(BIO *a); 321static int ebcdic_free(BIO *a);
322static int ebcdic_read(BIO *b, char *out, int outl); 322static int ebcdic_read(BIO *b, char *out, int outl);
323static int ebcdic_write(BIO *b, char *in, int inl); 323static int ebcdic_write(BIO *b, const char *in, int inl);
324static long ebcdic_ctrl(BIO *b, int cmd, long num, char *ptr); 324static long ebcdic_ctrl(BIO *b, int cmd, long num, void *ptr);
325static int ebcdic_gets(BIO *bp, char *buf, int size); 325static int ebcdic_gets(BIO *bp, char *buf, int size);
326static int ebcdic_puts(BIO *bp, char *str); 326static int ebcdic_puts(BIO *bp, const char *str);
327 327
328#define BIO_TYPE_EBCDIC_FILTER (18|0x0200) 328#define BIO_TYPE_EBCDIC_FILTER (18|0x0200)
329static BIO_METHOD methods_ebcdic= 329static BIO_METHOD methods_ebcdic=
@@ -388,7 +388,7 @@ static int ebcdic_read(BIO *b, char *out, int outl)
388 return(ret); 388 return(ret);
389} 389}
390 390
391static int ebcdic_write(BIO *b, char *in, int inl) 391static int ebcdic_write(BIO *b, const char *in, int inl)
392{ 392{
393 EBCDIC_OUTBUFF *wbuf; 393 EBCDIC_OUTBUFF *wbuf;
394 int ret=0; 394 int ret=0;
@@ -421,7 +421,7 @@ static int ebcdic_write(BIO *b, char *in, int inl)
421 return(ret); 421 return(ret);
422} 422}
423 423
424static long ebcdic_ctrl(BIO *b, int cmd, long num, char *ptr) 424static long ebcdic_ctrl(BIO *b, int cmd, long num, void *ptr)
425{ 425{
426 long ret; 426 long ret;
427 427
@@ -440,7 +440,7 @@ static long ebcdic_ctrl(BIO *b, int cmd, long num, char *ptr)
440 440
441static int ebcdic_gets(BIO *bp, char *buf, int size) 441static int ebcdic_gets(BIO *bp, char *buf, int size)
442{ 442{
443 int i, ret; 443 int i, ret=0;
444 if (bp->next_bio == NULL) return(0); 444 if (bp->next_bio == NULL) return(0);
445/* return(BIO_gets(bp->next_bio,buf,size));*/ 445/* return(BIO_gets(bp->next_bio,buf,size));*/
446 for (i=0; i<size-1; ++i) 446 for (i=0; i<size-1; ++i)
@@ -459,7 +459,7 @@ static int ebcdic_gets(BIO *bp, char *buf, int size)
459 return (ret < 0 && i == 0) ? ret : i; 459 return (ret < 0 && i == 0) ? ret : i;
460} 460}
461 461
462static int ebcdic_puts(BIO *bp, char *str) 462static int ebcdic_puts(BIO *bp, const char *str)
463{ 463{
464 if (bp->next_bio == NULL) return(0); 464 if (bp->next_bio == NULL) return(0);
465 return ebcdic_write(bp, str, strlen(str)); 465 return ebcdic_write(bp, str, strlen(str));
diff --git a/src/lib/libssl/src/apps/smime.c b/src/lib/libssl/src/apps/smime.c
index 90fe026f56..ef0e477464 100644
--- a/src/lib/libssl/src/apps/smime.c
+++ b/src/lib/libssl/src/apps/smime.c
@@ -428,7 +428,7 @@ int MAIN(int argc, char **argv)
428 } else keyfile = NULL; 428 } else keyfile = NULL;
429 429
430 if(keyfile) { 430 if(keyfile) {
431 key = load_key(bio_err, keyfile, keyform, passin, e, 431 key = load_key(bio_err, keyfile, keyform, 0, passin, e,
432 "signing key file"); 432 "signing key file");
433 if (!key) { 433 if (!key) {
434 goto end; 434 goto end;
diff --git a/src/lib/libssl/src/apps/spkac.c b/src/lib/libssl/src/apps/spkac.c
index 049a37963c..4ce53e36c9 100644
--- a/src/lib/libssl/src/apps/spkac.c
+++ b/src/lib/libssl/src/apps/spkac.c
@@ -186,7 +186,7 @@ bad:
186 if(keyfile) { 186 if(keyfile) {
187 pkey = load_key(bio_err, 187 pkey = load_key(bio_err,
188 strcmp(keyfile, "-") ? keyfile : NULL, 188 strcmp(keyfile, "-") ? keyfile : NULL,
189 FORMAT_PEM, passin, e, "private key"); 189 FORMAT_PEM, 1, passin, e, "private key");
190 if(!pkey) { 190 if(!pkey) {
191 goto end; 191 goto end;
192 } 192 }
diff --git a/src/lib/libssl/src/apps/x509.c b/src/lib/libssl/src/apps/x509.c
index a797da0ffa..5a41c389ee 100644
--- a/src/lib/libssl/src/apps/x509.c
+++ b/src/lib/libssl/src/apps/x509.c
@@ -861,8 +861,8 @@ bad:
861 if (Upkey == NULL) 861 if (Upkey == NULL)
862 { 862 {
863 Upkey=load_key(bio_err, 863 Upkey=load_key(bio_err,
864 keyfile,keyformat, passin, e, 864 keyfile, keyformat, 0,
865 "Private key"); 865 passin, e, "Private key");
866 if (Upkey == NULL) goto end; 866 if (Upkey == NULL) goto end;
867 } 867 }
868#ifndef OPENSSL_NO_DSA 868#ifndef OPENSSL_NO_DSA
@@ -880,8 +880,9 @@ bad:
880 if (CAkeyfile != NULL) 880 if (CAkeyfile != NULL)
881 { 881 {
882 CApkey=load_key(bio_err, 882 CApkey=load_key(bio_err,
883 CAkeyfile,CAkeyformat, passin, 883 CAkeyfile, CAkeyformat,
884 e, "CA Private Key"); 884 0, passin, e,
885 "CA Private Key");
885 if (CApkey == NULL) goto end; 886 if (CApkey == NULL) goto end;
886 } 887 }
887#ifndef OPENSSL_NO_DSA 888#ifndef OPENSSL_NO_DSA
@@ -908,8 +909,8 @@ bad:
908 else 909 else
909 { 910 {
910 pk=load_key(bio_err, 911 pk=load_key(bio_err,
911 keyfile,FORMAT_PEM, passin, e, 912 keyfile, FORMAT_PEM, 0,
912 "request key"); 913 passin, e, "request key");
913 if (pk == NULL) goto end; 914 if (pk == NULL) goto end;
914 } 915 }
915 916
diff --git a/src/lib/libssl/src/config b/src/lib/libssl/src/config
index 972cdb70a3..3e9af7680a 100644
--- a/src/lib/libssl/src/config
+++ b/src/lib/libssl/src/config
@@ -393,6 +393,9 @@ exit 0
393GCCVER=`(gcc -dumpversion) 2>/dev/null` 393GCCVER=`(gcc -dumpversion) 2>/dev/null`
394if [ "$GCCVER" != "" ]; then 394if [ "$GCCVER" != "" ]; then
395 CC=gcc 395 CC=gcc
396 # then strip off whatever prefix egcs prepends the number with...
397 # Hopefully, this will work for any future prefixes as well.
398 GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z]*\-//'`
396 # Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion 399 # Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion
397 # does give us what we want though, so we use that. We just just the 400 # does give us what we want though, so we use that. We just just the
398 # major and minor version numbers. 401 # major and minor version numbers.
diff --git a/src/lib/libssl/src/crypto/Makefile.ssl b/src/lib/libssl/src/crypto/Makefile.ssl
index 2489b614c6..db8baf385e 100644
--- a/src/lib/libssl/src/crypto/Makefile.ssl
+++ b/src/lib/libssl/src/crypto/Makefile.ssl
@@ -98,7 +98,7 @@ lib: $(LIBOBJ)
98 98
99shared: 99shared:
100 if [ -n "$(SHARED_LIBS)" ]; then \ 100 if [ -n "$(SHARED_LIBS)" ]; then \
101 (cd ..; make $(SHARED_LIB)); \ 101 (cd ..; $(MAKE) $(SHARED_LIB)); \
102 fi 102 fi
103 103
104libs: 104libs:
diff --git a/src/lib/libssl/src/crypto/asn1/a_bitstr.c b/src/lib/libssl/src/crypto/asn1/a_bitstr.c
index ed0bdfbde1..e0265f69d2 100644
--- a/src/lib/libssl/src/crypto/asn1/a_bitstr.c
+++ b/src/lib/libssl/src/crypto/asn1/a_bitstr.c
@@ -120,6 +120,12 @@ ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, unsigned char **pp,
120 unsigned char *p,*s; 120 unsigned char *p,*s;
121 int i; 121 int i;
122 122
123 if (len < 1)
124 {
125 i=ASN1_R_STRING_TOO_SHORT;
126 goto err;
127 }
128
123 if ((a == NULL) || ((*a) == NULL)) 129 if ((a == NULL) || ((*a) == NULL))
124 { 130 {
125 if ((ret=M_ASN1_BIT_STRING_new()) == NULL) return(NULL); 131 if ((ret=M_ASN1_BIT_STRING_new()) == NULL) return(NULL);
diff --git a/src/lib/libssl/src/crypto/asn1/a_strex.c b/src/lib/libssl/src/crypto/asn1/a_strex.c
index 8dab29dca1..7ddb7662f1 100644
--- a/src/lib/libssl/src/crypto/asn1/a_strex.c
+++ b/src/lib/libssl/src/crypto/asn1/a_strex.c
@@ -544,7 +544,7 @@ int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in)
544{ 544{
545 ASN1_STRING stmp, *str = &stmp; 545 ASN1_STRING stmp, *str = &stmp;
546 int mbflag, type, ret; 546 int mbflag, type, ret;
547 if(!*out || !in) return -1; 547 if(!in) return -1;
548 type = in->type; 548 type = in->type;
549 if((type < 0) || (type > 30)) return -1; 549 if((type < 0) || (type > 30)) return -1;
550 mbflag = tag2nbyte[type]; 550 mbflag = tag2nbyte[type];
@@ -553,6 +553,6 @@ int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in)
553 stmp.data = NULL; 553 stmp.data = NULL;
554 ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING); 554 ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING);
555 if(ret < 0) return ret; 555 if(ret < 0) return ret;
556 if(out) *out = stmp.data; 556 *out = stmp.data;
557 return stmp.length; 557 return stmp.length;
558} 558}
diff --git a/src/lib/libssl/src/crypto/asn1/t_req.c b/src/lib/libssl/src/crypto/asn1/t_req.c
index 848c29a2dd..739f272ecf 100644
--- a/src/lib/libssl/src/crypto/asn1/t_req.c
+++ b/src/lib/libssl/src/crypto/asn1/t_req.c
@@ -82,7 +82,7 @@ int X509_REQ_print_fp(FILE *fp, X509_REQ *x)
82 } 82 }
83#endif 83#endif
84 84
85int X509_REQ_print(BIO *bp, X509_REQ *x) 85int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, unsigned long cflag)
86 { 86 {
87 unsigned long l; 87 unsigned long l;
88 int i; 88 int i;
@@ -92,143 +92,185 @@ int X509_REQ_print(BIO *bp, X509_REQ *x)
92 STACK_OF(X509_ATTRIBUTE) *sk; 92 STACK_OF(X509_ATTRIBUTE) *sk;
93 STACK_OF(X509_EXTENSION) *exts; 93 STACK_OF(X509_EXTENSION) *exts;
94 char str[128]; 94 char str[128];
95 char mlch = ' ';
96 int nmindent = 0;
97
98 if((nmflags & XN_FLAG_SEP_MASK) == XN_FLAG_SEP_MULTILINE) {
99 mlch = '\n';
100 nmindent = 12;
101 }
102
103 if(nmflags == X509_FLAG_COMPAT)
104 nmindent = 16;
105
95 106
96 ri=x->req_info; 107 ri=x->req_info;
97 sprintf(str,"Certificate Request:\n"); 108 if(!(cflag & X509_FLAG_NO_HEADER))
98 if (BIO_puts(bp,str) <= 0) goto err;
99 sprintf(str,"%4sData:\n","");
100 if (BIO_puts(bp,str) <= 0) goto err;
101
102 neg=(ri->version->type == V_ASN1_NEG_INTEGER)?"-":"";
103 l=0;
104 for (i=0; i<ri->version->length; i++)
105 { l<<=8; l+=ri->version->data[i]; }
106 sprintf(str,"%8sVersion: %s%lu (%s0x%lx)\n","",neg,l,neg,l);
107 if (BIO_puts(bp,str) <= 0) goto err;
108 sprintf(str,"%8sSubject: ","");
109 if (BIO_puts(bp,str) <= 0) goto err;
110
111 X509_NAME_print(bp,ri->subject,16);
112 sprintf(str,"\n%8sSubject Public Key Info:\n","");
113 if (BIO_puts(bp,str) <= 0) goto err;
114 i=OBJ_obj2nid(ri->pubkey->algor->algorithm);
115 sprintf(str,"%12sPublic Key Algorithm: %s\n","",
116 (i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i));
117 if (BIO_puts(bp,str) <= 0) goto err;
118
119 pkey=X509_REQ_get_pubkey(x);
120#ifndef OPENSSL_NO_RSA
121 if (pkey != NULL && pkey->type == EVP_PKEY_RSA)
122 { 109 {
123 BIO_printf(bp,"%12sRSA Public Key: (%d bit)\n","", 110 if (BIO_write(bp,"Certificate Request:\n",21) <= 0) goto err;
124 BN_num_bits(pkey->pkey.rsa->n)); 111 if (BIO_write(bp," Data:\n",10) <= 0) goto err;
125 RSA_print(bp,pkey->pkey.rsa,16);
126 } 112 }
127 else 113 if(!(cflag & X509_FLAG_NO_VERSION))
128#endif
129#ifndef OPENSSL_NO_DSA
130 if (pkey != NULL && pkey->type == EVP_PKEY_DSA)
131 { 114 {
132 BIO_printf(bp,"%12sDSA Public Key:\n",""); 115 neg=(ri->version->type == V_ASN1_NEG_INTEGER)?"-":"";
133 DSA_print(bp,pkey->pkey.dsa,16); 116 l=0;
117 for (i=0; i<ri->version->length; i++)
118 { l<<=8; l+=ri->version->data[i]; }
119 sprintf(str,"%8sVersion: %s%lu (%s0x%lx)\n","",neg,l,neg,l);
120 if (BIO_puts(bp,str) <= 0) goto err;
134 } 121 }
135 else 122 if(!(cflag & X509_FLAG_NO_SUBJECT))
136#endif 123 {
137 BIO_printf(bp,"%12sUnknown Public Key:\n",""); 124 if (BIO_printf(bp," Subject:%c",mlch) <= 0) goto err;
125 if (X509_NAME_print_ex(bp,ri->subject,nmindent, nmflags) < 0) goto err;
126 if (BIO_write(bp,"\n",1) <= 0) goto err;
127 }
128 if(!(cflag & X509_FLAG_NO_PUBKEY))
129 {
130 if (BIO_write(bp," Subject Public Key Info:\n",33) <= 0)
131 goto err;
132 if (BIO_printf(bp,"%12sPublic Key Algorithm: ","") <= 0)
133 goto err;
134 if (i2a_ASN1_OBJECT(bp, ri->pubkey->algor->algorithm) <= 0)
135 goto err;
136 if (BIO_puts(bp, "\n") <= 0)
137 goto err;
138 138
139 if (pkey != NULL) 139 pkey=X509_REQ_get_pubkey(x);
140 EVP_PKEY_free(pkey); 140 if (pkey == NULL)
141 {
142 BIO_printf(bp,"%12sUnable to load Public Key\n","");
143 ERR_print_errors(bp);
144 }
145 else
146#ifndef OPENSSL_NO_RSA
147 if (pkey->type == EVP_PKEY_RSA)
148 {
149 BIO_printf(bp,"%12sRSA Public Key: (%d bit)\n","",
150 BN_num_bits(pkey->pkey.rsa->n));
151 RSA_print(bp,pkey->pkey.rsa,16);
152 }
153 else
154#endif
155#ifndef OPENSSL_NO_DSA
156 if (pkey->type == EVP_PKEY_DSA)
157 {
158 BIO_printf(bp,"%12sDSA Public Key:\n","");
159 DSA_print(bp,pkey->pkey.dsa,16);
160 }
161 else
162#endif
163 BIO_printf(bp,"%12sUnknown Public Key:\n","");
141 164
142 /* may not be */ 165 EVP_PKEY_free(pkey);
143 sprintf(str,"%8sAttributes:\n",""); 166 }
144 if (BIO_puts(bp,str) <= 0) goto err;
145 167
146 sk=x->req_info->attributes; 168 if(!(cflag & X509_FLAG_NO_ATTRIBUTES))
147 if (sk_X509_ATTRIBUTE_num(sk) == 0)
148 { 169 {
149 sprintf(str,"%12sa0:00\n",""); 170 /* may not be */
171 sprintf(str,"%8sAttributes:\n","");
150 if (BIO_puts(bp,str) <= 0) goto err; 172 if (BIO_puts(bp,str) <= 0) goto err;
151 } 173
152 else 174 sk=x->req_info->attributes;
153 { 175 if (sk_X509_ATTRIBUTE_num(sk) == 0)
154 for (i=0; i<sk_X509_ATTRIBUTE_num(sk); i++)
155 { 176 {
156 ASN1_TYPE *at; 177 sprintf(str,"%12sa0:00\n","");
157 X509_ATTRIBUTE *a;
158 ASN1_BIT_STRING *bs=NULL;
159 ASN1_TYPE *t;
160 int j,type=0,count=1,ii=0;
161
162 a=sk_X509_ATTRIBUTE_value(sk,i);
163 if(X509_REQ_extension_nid(OBJ_obj2nid(a->object)))
164 continue;
165 sprintf(str,"%12s","");
166 if (BIO_puts(bp,str) <= 0) goto err; 178 if (BIO_puts(bp,str) <= 0) goto err;
167 if ((j=i2a_ASN1_OBJECT(bp,a->object)) > 0) 179 }
180 else
168 { 181 {
169 if (a->single) 182 for (i=0; i<sk_X509_ATTRIBUTE_num(sk); i++)
170 { 183 {
171 t=a->value.single; 184 ASN1_TYPE *at;
172 type=t->type; 185 X509_ATTRIBUTE *a;
173 bs=t->value.bit_string; 186 ASN1_BIT_STRING *bs=NULL;
174 } 187 ASN1_TYPE *t;
175 else 188 int j,type=0,count=1,ii=0;
189
190 a=sk_X509_ATTRIBUTE_value(sk,i);
191 if(X509_REQ_extension_nid(OBJ_obj2nid(a->object)))
192 continue;
193 sprintf(str,"%12s","");
194 if (BIO_puts(bp,str) <= 0) goto err;
195 if ((j=i2a_ASN1_OBJECT(bp,a->object)) > 0)
176 { 196 {
177 ii=0; 197 if (a->single)
178 count=sk_ASN1_TYPE_num(a->value.set); 198 {
199 t=a->value.single;
200 type=t->type;
201 bs=t->value.bit_string;
202 }
203 else
204 {
205 ii=0;
206 count=sk_ASN1_TYPE_num(a->value.set);
179get_next: 207get_next:
180 at=sk_ASN1_TYPE_value(a->value.set,ii); 208 at=sk_ASN1_TYPE_value(a->value.set,ii);
181 type=at->type; 209 type=at->type;
182 bs=at->value.asn1_string; 210 bs=at->value.asn1_string;
211 }
212 }
213 for (j=25-j; j>0; j--)
214 if (BIO_write(bp," ",1) != 1) goto err;
215 if (BIO_puts(bp,":") <= 0) goto err;
216 if ( (type == V_ASN1_PRINTABLESTRING) ||
217 (type == V_ASN1_T61STRING) ||
218 (type == V_ASN1_IA5STRING))
219 {
220 if (BIO_write(bp,(char *)bs->data,bs->length)
221 != bs->length)
222 goto err;
223 BIO_puts(bp,"\n");
224 }
225 else
226 {
227 BIO_puts(bp,"unable to print attribute\n");
228 }
229 if (++ii < count) goto get_next;
183 } 230 }
184 } 231 }
185 for (j=25-j; j>0; j--) 232 }
186 if (BIO_write(bp," ",1) != 1) goto err; 233 if(!(cflag & X509_FLAG_NO_ATTRIBUTES))
187 if (BIO_puts(bp,":") <= 0) goto err; 234 {
188 if ( (type == V_ASN1_PRINTABLESTRING) || 235 exts = X509_REQ_get_extensions(x);
189 (type == V_ASN1_T61STRING) || 236 if(exts)
190 (type == V_ASN1_IA5STRING)) 237 {
238 BIO_printf(bp,"%8sRequested Extensions:\n","");
239 for (i=0; i<sk_X509_EXTENSION_num(exts); i++)
191 { 240 {
192 if (BIO_write(bp,(char *)bs->data,bs->length) 241 ASN1_OBJECT *obj;
193 != bs->length) 242 X509_EXTENSION *ex;
243 int j;
244 ex=sk_X509_EXTENSION_value(exts, i);
245 if (BIO_printf(bp,"%12s","") <= 0) goto err;
246 obj=X509_EXTENSION_get_object(ex);
247 i2a_ASN1_OBJECT(bp,obj);
248 j=X509_EXTENSION_get_critical(ex);
249 if (BIO_printf(bp,": %s\n",j?"critical":"","") <= 0)
194 goto err; 250 goto err;
195 BIO_puts(bp,"\n"); 251 if(!X509V3_EXT_print(bp, ex, 0, 16))
196 } 252 {
197 else 253 BIO_printf(bp, "%16s", "");
198 { 254 M_ASN1_OCTET_STRING_print(bp,ex->value);
199 BIO_puts(bp,"unable to print attribute\n"); 255 }
256 if (BIO_write(bp,"\n",1) <= 0) goto err;
200 } 257 }
201 if (++ii < count) goto get_next; 258 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free);
202 } 259 }
203 } 260 }
204 261
205 exts = X509_REQ_get_extensions(x); 262 if(!(cflag & X509_FLAG_NO_SIGDUMP))
206 if(exts) { 263 {
207 BIO_printf(bp,"%8sRequested Extensions:\n",""); 264 if(!X509_signature_print(bp, x->sig_alg, x->signature)) goto err;
208 for (i=0; i<sk_X509_EXTENSION_num(exts); i++) {
209 ASN1_OBJECT *obj;
210 X509_EXTENSION *ex;
211 int j;
212 ex=sk_X509_EXTENSION_value(exts, i);
213 if (BIO_printf(bp,"%12s","") <= 0) goto err;
214 obj=X509_EXTENSION_get_object(ex);
215 i2a_ASN1_OBJECT(bp,obj);
216 j=X509_EXTENSION_get_critical(ex);
217 if (BIO_printf(bp,": %s\n",j?"critical":"","") <= 0)
218 goto err;
219 if(!X509V3_EXT_print(bp, ex, 0, 16)) {
220 BIO_printf(bp, "%16s", "");
221 M_ASN1_OCTET_STRING_print(bp,ex->value);
222 }
223 if (BIO_write(bp,"\n",1) <= 0) goto err;
224 } 265 }
225 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free);
226 }
227
228 if(!X509_signature_print(bp, x->sig_alg, x->signature)) goto err;
229 266
230 return(1); 267 return(1);
231err: 268err:
232 X509err(X509_F_X509_REQ_PRINT,ERR_R_BUF_LIB); 269 X509err(X509_F_X509_REQ_PRINT,ERR_R_BUF_LIB);
233 return(0); 270 return(0);
234 } 271 }
272
273int X509_REQ_print(BIO *bp, X509_REQ *x)
274 {
275 return X509_REQ_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
276 }
diff --git a/src/lib/libssl/src/crypto/asn1/tasn_dec.c b/src/lib/libssl/src/crypto/asn1/tasn_dec.c
index 0fc1f421e2..f87c08793a 100644
--- a/src/lib/libssl/src/crypto/asn1/tasn_dec.c
+++ b/src/lib/libssl/src/crypto/asn1/tasn_dec.c
@@ -913,10 +913,10 @@ static int asn1_check_tlen(long *olen, int *otag, unsigned char *oclass, char *i
913 ctx->ptag = ptag; 913 ctx->ptag = ptag;
914 ctx->hdrlen = p - q; 914 ctx->hdrlen = p - q;
915 ctx->valid = 1; 915 ctx->valid = 1;
916 /* If definite length, length + header can't exceed total 916 /* If definite length, and no error, length +
917 * amount of data available. 917 * header can't exceed total amount of data available.
918 */ 918 */
919 if(!(i & 1) && ((plen + ctx->hdrlen) > len)) { 919 if(!(i & 0x81) && ((plen + ctx->hdrlen) > len)) {
920 ASN1err(ASN1_F_ASN1_CHECK_TLEN, ASN1_R_TOO_LONG); 920 ASN1err(ASN1_F_ASN1_CHECK_TLEN, ASN1_R_TOO_LONG);
921 asn1_tlc_clear(ctx); 921 asn1_tlc_clear(ctx);
922 return 0; 922 return 0;
diff --git a/src/lib/libssl/src/crypto/bio/b_print.c b/src/lib/libssl/src/crypto/bio/b_print.c
index 3ce1290772..80c9cb69db 100644
--- a/src/lib/libssl/src/crypto/bio/b_print.c
+++ b/src/lib/libssl/src/crypto/bio/b_print.c
@@ -109,7 +109,7 @@
109 * o ... (for OpenSSL) 109 * o ... (for OpenSSL)
110 */ 110 */
111 111
112#if HAVE_LONG_DOUBLE 112#ifdef HAVE_LONG_DOUBLE
113#define LDOUBLE long double 113#define LDOUBLE long double
114#else 114#else
115#define LDOUBLE double 115#define LDOUBLE double
diff --git a/src/lib/libssl/src/crypto/bn/bn.h b/src/lib/libssl/src/crypto/bn/bn.h
index 1eaf879553..b40682f831 100644
--- a/src/lib/libssl/src/crypto/bn/bn.h
+++ b/src/lib/libssl/src/crypto/bn/bn.h
@@ -430,7 +430,7 @@ int BN_mod_mul_montgomery(BIGNUM *r,const BIGNUM *a,const BIGNUM *b,
430int BN_from_montgomery(BIGNUM *r,const BIGNUM *a, 430int BN_from_montgomery(BIGNUM *r,const BIGNUM *a,
431 BN_MONT_CTX *mont, BN_CTX *ctx); 431 BN_MONT_CTX *mont, BN_CTX *ctx);
432void BN_MONT_CTX_free(BN_MONT_CTX *mont); 432void BN_MONT_CTX_free(BN_MONT_CTX *mont);
433int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *modulus,BN_CTX *ctx); 433int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *mod,BN_CTX *ctx);
434BN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to,BN_MONT_CTX *from); 434BN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to,BN_MONT_CTX *from);
435 435
436BN_BLINDING *BN_BLINDING_new(BIGNUM *A,BIGNUM *Ai,BIGNUM *mod); 436BN_BLINDING *BN_BLINDING_new(BIGNUM *A,BIGNUM *Ai,BIGNUM *mod);
diff --git a/src/lib/libssl/src/crypto/crypto-lib.com b/src/lib/libssl/src/crypto/crypto-lib.com
index 4847a69a71..dfcff11860 100644
--- a/src/lib/libssl/src/crypto/crypto-lib.com
+++ b/src/lib/libssl/src/crypto/crypto-lib.com
@@ -231,7 +231,7 @@ $ LIB_RAND = "md_rand,randfile,rand_lib,rand_err,rand_egd,"+ -
231 "rand_vms" 231 "rand_vms"
232$ LIB_ERR = "err,err_all,err_prn" 232$ LIB_ERR = "err,err_all,err_prn"
233$ LIB_OBJECTS = "o_names,obj_dat,obj_lib,obj_err" 233$ LIB_OBJECTS = "o_names,obj_dat,obj_lib,obj_err"
234$ LIB_EVP = "encode,digest,evp_enc,evp_key,"+ - 234$ LIB_EVP = "encode,digest,evp_enc,evp_key,evp_acnf,"+ -
235 "e_des,e_bf,e_idea,e_des3,"+ - 235 "e_des,e_bf,e_idea,e_des3,"+ -
236 "e_rc4,e_aes,names,"+ - 236 "e_rc4,e_aes,names,"+ -
237 "e_xcbc_d,e_rc2,e_cast,e_rc5" 237 "e_xcbc_d,e_rc2,e_cast,e_rc5"
@@ -265,14 +265,14 @@ $ LIB_X509V3 = "v3_bcons,v3_bitst,v3_conf,v3_extku,v3_ia5,v3_lib,"+ -
265 "v3_prn,v3_utl,v3err,v3_genn,v3_alt,v3_skey,v3_akey,v3_pku,"+ - 265 "v3_prn,v3_utl,v3err,v3_genn,v3_alt,v3_skey,v3_akey,v3_pku,"+ -
266 "v3_int,v3_enum,v3_sxnet,v3_cpols,v3_crld,v3_purp,v3_info,"+ - 266 "v3_int,v3_enum,v3_sxnet,v3_cpols,v3_crld,v3_purp,v3_info,"+ -
267 "v3_ocsp,v3_akeya" 267 "v3_ocsp,v3_akeya"
268$ LIB_CONF = "conf_err,conf_lib,conf_api,conf_def,conf_mod,conf_mall" 268$ LIB_CONF = "conf_err,conf_lib,conf_api,conf_def,conf_mod,conf_mall,conf_sap"
269$ LIB_TXT_DB = "txt_db" 269$ LIB_TXT_DB = "txt_db"
270$ LIB_PKCS7 = "pk7_asn1,pk7_lib,pkcs7err,pk7_doit,pk7_smime,pk7_attr,"+ - 270$ LIB_PKCS7 = "pk7_asn1,pk7_lib,pkcs7err,pk7_doit,pk7_smime,pk7_attr,"+ -
271 "pk7_mime" 271 "pk7_mime"
272$ LIB_PKCS12 = "p12_add,p12_asn,p12_attr,p12_crpt,p12_crt,p12_decr,"+ - 272$ LIB_PKCS12 = "p12_add,p12_asn,p12_attr,p12_crpt,p12_crt,p12_decr,"+ -
273 "p12_init,p12_key,p12_kiss,p12_mutl,"+ - 273 "p12_init,p12_key,p12_kiss,p12_mutl,"+ -
274 "p12_utl,p12_npas,pk12err,p12_p8d,p12_p8e" 274 "p12_utl,p12_npas,pk12err,p12_p8d,p12_p8e"
275$ LIB_COMP = "comp_lib,"+ - 275$ LIB_COMP = "comp_lib,comp_err,"+ -
276 "c_rle,c_zlib" 276 "c_rle,c_zlib"
277$ LIB_OCSP = "ocsp_asn,ocsp_ext,ocsp_ht,ocsp_lib,ocsp_cl,"+ - 277$ LIB_OCSP = "ocsp_asn,ocsp_ext,ocsp_ht,ocsp_lib,ocsp_cl,"+ -
278 "ocsp_srv,ocsp_prn,ocsp_vfy,ocsp_err" 278 "ocsp_srv,ocsp_prn,ocsp_vfy,ocsp_err"
@@ -1325,7 +1325,7 @@ $ CC4 = CC - CCDISABLEWARNINGS + CC4DISABLEWARNINGS
1325$! 1325$!
1326$! Show user the result 1326$! Show user the result
1327$! 1327$!
1328$ WRITE SYS$OUTPUT "Main C Compiling Command: ",CC 1328$ WRITE/SYMBOL SYS$OUTPUT "Main C Compiling Command: ",CC
1329$! 1329$!
1330$! Else The User Entered An Invalid Arguement. 1330$! Else The User Entered An Invalid Arguement.
1331$! 1331$!
@@ -1356,7 +1356,7 @@ $ IF ARCH .EQS. "AXP" THEN MACRO = "MACRO/MIGRATION/''DEBUGGER'/''MACRO_OPTIMIZE
1356$! 1356$!
1357$! Show user the result 1357$! Show user the result
1358$! 1358$!
1359$ WRITE SYS$OUTPUT "Main MACRO Compiling Command: ",MACRO 1359$ WRITE/SYMBOL SYS$OUTPUT "Main MACRO Compiling Command: ",MACRO
1360$! 1360$!
1361$! Time to check the contents, and to make sure we get the correct library. 1361$! Time to check the contents, and to make sure we get the correct library.
1362$! 1362$!
diff --git a/src/lib/libssl/src/crypto/des/Makefile.ssl b/src/lib/libssl/src/crypto/des/Makefile.ssl
index ee5849d8fa..826ffcc58c 100644
--- a/src/lib/libssl/src/crypto/des/Makefile.ssl
+++ b/src/lib/libssl/src/crypto/des/Makefile.ssl
@@ -207,7 +207,8 @@ ecb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
207ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 207ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
208ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 208ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
209ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 209ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
210ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h ecb_enc.c spr.h 210ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
211ecb_enc.o: spr.h
211ede_cbcm_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 212ede_cbcm_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
212ede_cbcm_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 213ede_cbcm_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
213ede_cbcm_enc.o: ../../include/openssl/opensslconf.h 214ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
diff --git a/src/lib/libssl/src/crypto/des/des_ver.h b/src/lib/libssl/src/crypto/des/des_ver.h
index 0fa94d5368..ec9cc736e3 100644
--- a/src/lib/libssl/src/crypto/des/des_ver.h
+++ b/src/lib/libssl/src/crypto/des/des_ver.h
@@ -63,5 +63,5 @@
63# define OPENSSL_EXTERN OPENSSL_EXPORT 63# define OPENSSL_EXTERN OPENSSL_EXPORT
64#endif 64#endif
65 65
66OPENSSL_EXTERN char *DES_version; /* SSLeay version string */ 66OPENSSL_EXTERN const char *DES_version; /* SSLeay version string */
67OPENSSL_EXTERN char *libdes_version; /* old libdes version string */ 67OPENSSL_EXTERN const char *libdes_version; /* old libdes version string */
diff --git a/src/lib/libssl/src/crypto/des/ecb_enc.c b/src/lib/libssl/src/crypto/des/ecb_enc.c
index 4650f2fa0f..1b70f68806 100644
--- a/src/lib/libssl/src/crypto/des/ecb_enc.c
+++ b/src/lib/libssl/src/crypto/des/ecb_enc.c
@@ -57,6 +57,7 @@
57 */ 57 */
58 58
59#include "des_locl.h" 59#include "des_locl.h"
60#include "des_ver.h"
60#include "spr.h" 61#include "spr.h"
61#include <openssl/opensslv.h> 62#include <openssl/opensslv.h>
62 63
diff --git a/src/lib/libssl/src/crypto/des/set_key.c b/src/lib/libssl/src/crypto/des/set_key.c
index 683916e71b..143008ed9c 100644
--- a/src/lib/libssl/src/crypto/des/set_key.c
+++ b/src/lib/libssl/src/crypto/des/set_key.c
@@ -342,7 +342,7 @@ void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule)
342 register DES_LONG *k; 342 register DES_LONG *k;
343 register int i; 343 register int i;
344 344
345#if OPENBSD_DEV_CRYPTO 345#ifdef OPENBSD_DEV_CRYPTO
346 memcpy(schedule->key,key,sizeof schedule->key); 346 memcpy(schedule->key,key,sizeof schedule->key);
347 schedule->session=NULL; 347 schedule->session=NULL;
348#endif 348#endif
diff --git a/src/lib/libssl/src/crypto/engine/hw_4758_cca.c b/src/lib/libssl/src/crypto/engine/hw_4758_cca.c
index f404b1a3b8..6d41b9ed2a 100644
--- a/src/lib/libssl/src/crypto/engine/hw_4758_cca.c
+++ b/src/lib/libssl/src/crypto/engine/hw_4758_cca.c
@@ -953,7 +953,7 @@ static void cca_ex_free(void *obj, void *item, CRYPTO_EX_DATA *ad, int idx,
953#ifdef ENGINE_DYNAMIC_SUPPORT 953#ifdef ENGINE_DYNAMIC_SUPPORT
954static int bind_fn(ENGINE *e, const char *id) 954static int bind_fn(ENGINE *e, const char *id)
955 { 955 {
956 if(id && (strcmp(id, engine_cswift_id) != 0)) 956 if(id && (strcmp(id, engine_4758_cca_id) != 0))
957 return 0; 957 return 0;
958 if(!bind_helper(e)) 958 if(!bind_helper(e))
959 return 0; 959 return 0;
diff --git a/src/lib/libssl/src/crypto/engine/hw_openbsd_dev_crypto.c b/src/lib/libssl/src/crypto/engine/hw_openbsd_dev_crypto.c
index f946389b8a..b8aab545db 100644
--- a/src/lib/libssl/src/crypto/engine/hw_openbsd_dev_crypto.c
+++ b/src/lib/libssl/src/crypto/engine/hw_openbsd_dev_crypto.c
@@ -408,7 +408,7 @@ static int do_digest(int ses,unsigned char *md,const void *data,int len)
408 cryp.op=COP_ENCRYPT;/* required to do the MAC rather than check it */ 408 cryp.op=COP_ENCRYPT;/* required to do the MAC rather than check it */
409 cryp.len=len; 409 cryp.len=len;
410 cryp.src=(caddr_t)data; 410 cryp.src=(caddr_t)data;
411 cryp.dst=(caddr_t)data; // FIXME!!! 411 cryp.dst=(caddr_t)data; /* FIXME!!! */
412 cryp.mac=(caddr_t)md; 412 cryp.mac=(caddr_t)md;
413 413
414 if(ioctl(fd, CIOCCRYPT, &cryp) == -1) 414 if(ioctl(fd, CIOCCRYPT, &cryp) == -1)
@@ -420,7 +420,7 @@ static int do_digest(int ses,unsigned char *md,const void *data,int len)
420 dcopy=OPENSSL_malloc(len); 420 dcopy=OPENSSL_malloc(len);
421 memcpy(dcopy,data,len); 421 memcpy(dcopy,data,len);
422 cryp.src=dcopy; 422 cryp.src=dcopy;
423 cryp.dst=cryp.src; // FIXME!!! 423 cryp.dst=cryp.src; /* FIXME!!! */
424 424
425 if(ioctl(fd, CIOCCRYPT, &cryp) == -1) 425 if(ioctl(fd, CIOCCRYPT, &cryp) == -1)
426 { 426 {
@@ -437,7 +437,7 @@ static int do_digest(int ses,unsigned char *md,const void *data,int len)
437 return 0; 437 return 0;
438 } 438 }
439 } 439 }
440 // printf("done\n"); 440 /* printf("done\n"); */
441 441
442 return 1; 442 return 1;
443 } 443 }
@@ -483,7 +483,7 @@ static int dev_crypto_md5_copy(EVP_MD_CTX *to,const EVP_MD_CTX *from)
483 const MD_DATA *from_md=from->md_data; 483 const MD_DATA *from_md=from->md_data;
484 MD_DATA *to_md=to->md_data; 484 MD_DATA *to_md=to->md_data;
485 485
486 // How do we copy sessions? 486 /* How do we copy sessions? */
487 assert(from->digest->flags&EVP_MD_FLAG_ONESHOT); 487 assert(from->digest->flags&EVP_MD_FLAG_ONESHOT);
488 488
489 to_md->data=OPENSSL_malloc(from_md->len); 489 to_md->data=OPENSSL_malloc(from_md->len);
@@ -530,7 +530,7 @@ static const EVP_MD md5_md=
530 NID_md5, 530 NID_md5,
531 NID_md5WithRSAEncryption, 531 NID_md5WithRSAEncryption,
532 MD5_DIGEST_LENGTH, 532 MD5_DIGEST_LENGTH,
533 EVP_MD_FLAG_ONESHOT, // XXX: set according to device info... 533 EVP_MD_FLAG_ONESHOT, /* XXX: set according to device info... */
534 dev_crypto_md5_init, 534 dev_crypto_md5_init,
535 dev_crypto_md5_update, 535 dev_crypto_md5_update,
536 dev_crypto_md5_final, 536 dev_crypto_md5_final,
diff --git a/src/lib/libssl/src/crypto/engine/hw_ubsec.c b/src/lib/libssl/src/crypto/engine/hw_ubsec.c
index 63397f868c..ed8401ec16 100644
--- a/src/lib/libssl/src/crypto/engine/hw_ubsec.c
+++ b/src/lib/libssl/src/crypto/engine/hw_ubsec.c
@@ -93,7 +93,7 @@ static int ubsec_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa);
93static int ubsec_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, 93static int ubsec_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
94 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 94 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
95#ifndef OPENSSL_NO_DSA 95#ifndef OPENSSL_NO_DSA
96#if NOT_USED 96#ifdef NOT_USED
97static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1, 97static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1,
98 BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m, 98 BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m,
99 BN_CTX *ctx, BN_MONT_CTX *in_mont); 99 BN_CTX *ctx, BN_MONT_CTX *in_mont);
@@ -113,7 +113,7 @@ static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh)
113static int ubsec_dh_generate_key(DH *dh); 113static int ubsec_dh_generate_key(DH *dh);
114#endif 114#endif
115 115
116#if NOT_USED 116#ifdef NOT_USED
117static int ubsec_rand_bytes(unsigned char *buf, int num); 117static int ubsec_rand_bytes(unsigned char *buf, int num);
118static int ubsec_rand_status(void); 118static int ubsec_rand_status(void);
119#endif 119#endif
@@ -663,7 +663,7 @@ static int ubsec_mod_exp_crt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
663} 663}
664 664
665#ifndef OPENSSL_NO_DSA 665#ifndef OPENSSL_NO_DSA
666#if NOT_USED 666#ifdef NOT_USED
667static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1, 667static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1,
668 BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m, 668 BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m,
669 BN_CTX *ctx, BN_MONT_CTX *in_mont) 669 BN_CTX *ctx, BN_MONT_CTX *in_mont)
@@ -987,7 +987,7 @@ err:
987 } 987 }
988#endif 988#endif
989 989
990#if NOT_USED 990#ifdef NOT_USED
991static int ubsec_rand_bytes(unsigned char * buf, 991static int ubsec_rand_bytes(unsigned char * buf,
992 int num) 992 int num)
993 { 993 {
diff --git a/src/lib/libssl/src/crypto/evp/evp_locl.h b/src/lib/libssl/src/crypto/evp/evp_locl.h
index 7b088b4848..4d81a3bf4c 100644
--- a/src/lib/libssl/src/crypto/evp/evp_locl.h
+++ b/src/lib/libssl/src/crypto/evp/evp_locl.h
@@ -124,17 +124,17 @@ const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
124BLOCK_CIPHER_def1(cname, cbc, cbc, CBC, kstruct, nid, block_size, key_len, \ 124BLOCK_CIPHER_def1(cname, cbc, cbc, CBC, kstruct, nid, block_size, key_len, \
125 iv_len, flags, init_key, cleanup, set_asn1, get_asn1, ctrl) 125 iv_len, flags, init_key, cleanup, set_asn1, get_asn1, ctrl)
126 126
127#define BLOCK_CIPHER_def_cfb(cname, kstruct, nid, block_size, key_len, \ 127#define BLOCK_CIPHER_def_cfb(cname, kstruct, nid, key_len, \
128 iv_len, cbits, flags, init_key, cleanup, \ 128 iv_len, cbits, flags, init_key, cleanup, \
129 set_asn1, get_asn1, ctrl) \ 129 set_asn1, get_asn1, ctrl) \
130BLOCK_CIPHER_def1(cname, cfb##cbits, cfb, CFB, kstruct, nid, block_size, \ 130BLOCK_CIPHER_def1(cname, cfb##cbits, cfb, CFB, kstruct, nid, 1, \
131 key_len, iv_len, flags, init_key, cleanup, set_asn1, \ 131 key_len, iv_len, flags, init_key, cleanup, set_asn1, \
132 get_asn1, ctrl) 132 get_asn1, ctrl)
133 133
134#define BLOCK_CIPHER_def_ofb(cname, kstruct, nid, block_size, key_len, \ 134#define BLOCK_CIPHER_def_ofb(cname, kstruct, nid, key_len, \
135 iv_len, cbits, flags, init_key, cleanup, \ 135 iv_len, cbits, flags, init_key, cleanup, \
136 set_asn1, get_asn1, ctrl) \ 136 set_asn1, get_asn1, ctrl) \
137BLOCK_CIPHER_def1(cname, ofb##cbits, ofb, OFB, kstruct, nid, block_size, \ 137BLOCK_CIPHER_def1(cname, ofb##cbits, ofb, OFB, kstruct, nid, 1, \
138 key_len, iv_len, flags, init_key, cleanup, set_asn1, \ 138 key_len, iv_len, flags, init_key, cleanup, set_asn1, \
139 get_asn1, ctrl) 139 get_asn1, ctrl)
140 140
@@ -149,9 +149,9 @@ BLOCK_CIPHER_def1(cname, ecb, ecb, ECB, kstruct, nid, block_size, key_len, \
149 init_key, cleanup, set_asn1, get_asn1, ctrl) \ 149 init_key, cleanup, set_asn1, get_asn1, ctrl) \
150BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, iv_len, flags, \ 150BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, iv_len, flags, \
151 init_key, cleanup, set_asn1, get_asn1, ctrl) \ 151 init_key, cleanup, set_asn1, get_asn1, ctrl) \
152BLOCK_CIPHER_def_cfb(cname, kstruct, nid, block_size, key_len, iv_len, cbits, \ 152BLOCK_CIPHER_def_cfb(cname, kstruct, nid, key_len, iv_len, cbits, \
153 flags, init_key, cleanup, set_asn1, get_asn1, ctrl) \ 153 flags, init_key, cleanup, set_asn1, get_asn1, ctrl) \
154BLOCK_CIPHER_def_ofb(cname, kstruct, nid, block_size, key_len, iv_len, cbits, \ 154BLOCK_CIPHER_def_ofb(cname, kstruct, nid, key_len, iv_len, cbits, \
155 flags, init_key, cleanup, set_asn1, get_asn1, ctrl) \ 155 flags, init_key, cleanup, set_asn1, get_asn1, ctrl) \
156BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, iv_len, flags, \ 156BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, iv_len, flags, \
157 init_key, cleanup, set_asn1, get_asn1, ctrl) 157 init_key, cleanup, set_asn1, get_asn1, ctrl)
diff --git a/src/lib/libssl/src/crypto/krb5/Makefile.ssl b/src/lib/libssl/src/crypto/krb5/Makefile.ssl
index caf111be8d..7ad0cbb0bc 100644
--- a/src/lib/libssl/src/crypto/krb5/Makefile.ssl
+++ b/src/lib/libssl/src/crypto/krb5/Makefile.ssl
@@ -45,13 +45,13 @@ lib: $(LIBOBJ)
45 @touch lib 45 @touch lib
46 46
47files: 47files:
48 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 48 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
49 49
50links: 50links:
51 @sh $(TOP)/util/point.sh Makefile.ssl Makefile 51 @sh $(TOP)/util/point.sh Makefile.ssl Makefile ;
52 $(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 52 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
53 $(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 53 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
54 $(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 54 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
55 55
56install: 56install:
57 @for i in $(EXHEADER) ; \ 57 @for i in $(EXHEADER) ; \
diff --git a/src/lib/libssl/src/crypto/mem.c b/src/lib/libssl/src/crypto/mem.c
index effec714e8..a7826908e6 100644
--- a/src/lib/libssl/src/crypto/mem.c
+++ b/src/lib/libssl/src/crypto/mem.c
@@ -303,6 +303,9 @@ void *CRYPTO_realloc(void *str, int num, const char *file, int line)
303 { 303 {
304 void *ret = NULL; 304 void *ret = NULL;
305 305
306 if (str == NULL)
307 return CRYPTO_malloc(num, file, line);
308
306 if (realloc_debug_func != NULL) 309 if (realloc_debug_func != NULL)
307 realloc_debug_func(str, NULL, num, file, line, 0); 310 realloc_debug_func(str, NULL, num, file, line, 0);
308 ret = realloc_ex_func(str,num,file,line); 311 ret = realloc_ex_func(str,num,file,line);
diff --git a/src/lib/libssl/src/crypto/objects/obj_dat.c b/src/lib/libssl/src/crypto/objects/obj_dat.c
index 02c3719f04..ce779dc1b5 100644
--- a/src/lib/libssl/src/crypto/objects/obj_dat.c
+++ b/src/lib/libssl/src/crypto/objects/obj_dat.c
@@ -425,7 +425,7 @@ ASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name)
425 a2d_ASN1_OBJECT(p,i,s,-1); 425 a2d_ASN1_OBJECT(p,i,s,-1);
426 426
427 p=buf; 427 p=buf;
428 op=d2i_ASN1_OBJECT(NULL,&p,i); 428 op=d2i_ASN1_OBJECT(NULL,&p,j);
429 OPENSSL_free(buf); 429 OPENSSL_free(buf);
430 return op; 430 return op;
431 } 431 }
diff --git a/src/lib/libssl/src/crypto/ocsp/Makefile.ssl b/src/lib/libssl/src/crypto/ocsp/Makefile.ssl
index 44eacbbb13..2be98179ae 100644
--- a/src/lib/libssl/src/crypto/ocsp/Makefile.ssl
+++ b/src/lib/libssl/src/crypto/ocsp/Makefile.ssl
@@ -47,13 +47,13 @@ lib: $(LIBOBJ)
47 @touch lib 47 @touch lib
48 48
49files: 49files:
50 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 50 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
51 51
52links: 52links:
53 @sh $(TOP)/util/point.sh Makefile.ssl Makefile 53 @sh $(TOP)/util/point.sh Makefile.ssl Makefile ;
54 $(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 54 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
55 $(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 55 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
56 $(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 56 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
57 57
58install: 58install:
59 @for i in $(EXHEADER) ; \ 59 @for i in $(EXHEADER) ; \
diff --git a/src/lib/libssl/src/crypto/pem/pem_lib.c b/src/lib/libssl/src/crypto/pem/pem_lib.c
index 18b751a91a..a8db6ffbf5 100644
--- a/src/lib/libssl/src/crypto/pem/pem_lib.c
+++ b/src/lib/libssl/src/crypto/pem/pem_lib.c
@@ -366,8 +366,11 @@ err:
366 memset(iv,0,sizeof(iv)); 366 memset(iv,0,sizeof(iv));
367 memset((char *)&ctx,0,sizeof(ctx)); 367 memset((char *)&ctx,0,sizeof(ctx));
368 memset(buf,0,PEM_BUFSIZE); 368 memset(buf,0,PEM_BUFSIZE);
369 memset(data,0,(unsigned int)dsize); 369 if (data != NULL)
370 OPENSSL_free(data); 370 {
371 memset(data,0,(unsigned int)dsize);
372 OPENSSL_free(data);
373 }
371 return(ret); 374 return(ret);
372 } 375 }
373 376
diff --git a/src/lib/libssl/src/crypto/pkcs12/p12_asn.c b/src/lib/libssl/src/crypto/pkcs12/p12_asn.c
index c327bdba03..a3739fee1a 100644
--- a/src/lib/libssl/src/crypto/pkcs12/p12_asn.c
+++ b/src/lib/libssl/src/crypto/pkcs12/p12_asn.c
@@ -83,8 +83,8 @@ ASN1_ADB_TEMPLATE(bag_default) = ASN1_EXP(PKCS12_BAGS, value.other, ASN1_ANY, 0)
83 83
84ASN1_ADB(PKCS12_BAGS) = { 84ASN1_ADB(PKCS12_BAGS) = {
85 ADB_ENTRY(NID_x509Certificate, ASN1_EXP(PKCS12_BAGS, value.x509cert, ASN1_OCTET_STRING, 0)), 85 ADB_ENTRY(NID_x509Certificate, ASN1_EXP(PKCS12_BAGS, value.x509cert, ASN1_OCTET_STRING, 0)),
86 ADB_ENTRY(NID_x509Certificate, ASN1_EXP(PKCS12_BAGS, value.x509crl, ASN1_OCTET_STRING, 0)), 86 ADB_ENTRY(NID_x509Crl, ASN1_EXP(PKCS12_BAGS, value.x509crl, ASN1_OCTET_STRING, 0)),
87 ADB_ENTRY(NID_x509Certificate, ASN1_EXP(PKCS12_BAGS, value.sdsicert, ASN1_IA5STRING, 0)), 87 ADB_ENTRY(NID_sdsiCertificate, ASN1_EXP(PKCS12_BAGS, value.sdsicert, ASN1_IA5STRING, 0)),
88} ASN1_ADB_END(PKCS12_BAGS, 0, type, 0, &bag_default_tt, NULL); 88} ASN1_ADB_END(PKCS12_BAGS, 0, type, 0, &bag_default_tt, NULL);
89 89
90ASN1_SEQUENCE(PKCS12_BAGS) = { 90ASN1_SEQUENCE(PKCS12_BAGS) = {
@@ -98,7 +98,7 @@ ASN1_ADB_TEMPLATE(safebag_default) = ASN1_EXP(PKCS12_SAFEBAG, value.other, ASN1_
98 98
99ASN1_ADB(PKCS12_SAFEBAG) = { 99ASN1_ADB(PKCS12_SAFEBAG) = {
100 ADB_ENTRY(NID_keyBag, ASN1_EXP(PKCS12_SAFEBAG, value.keybag, PKCS8_PRIV_KEY_INFO, 0)), 100 ADB_ENTRY(NID_keyBag, ASN1_EXP(PKCS12_SAFEBAG, value.keybag, PKCS8_PRIV_KEY_INFO, 0)),
101 ADB_ENTRY(NID_pkcs8ShroudedKeyBag, ASN1_EXP(PKCS12_SAFEBAG, value.keybag, X509_SIG, 0)), 101 ADB_ENTRY(NID_pkcs8ShroudedKeyBag, ASN1_EXP(PKCS12_SAFEBAG, value.shkeybag, X509_SIG, 0)),
102 ADB_ENTRY(NID_safeContentsBag, ASN1_EXP_SET_OF(PKCS12_SAFEBAG, value.safes, PKCS12_SAFEBAG, 0)), 102 ADB_ENTRY(NID_safeContentsBag, ASN1_EXP_SET_OF(PKCS12_SAFEBAG, value.safes, PKCS12_SAFEBAG, 0)),
103 ADB_ENTRY(NID_certBag, ASN1_EXP(PKCS12_SAFEBAG, value.bag, PKCS12_BAGS, 0)), 103 ADB_ENTRY(NID_certBag, ASN1_EXP(PKCS12_SAFEBAG, value.bag, PKCS12_BAGS, 0)),
104 ADB_ENTRY(NID_crlBag, ASN1_EXP(PKCS12_SAFEBAG, value.bag, PKCS12_BAGS, 0)), 104 ADB_ENTRY(NID_crlBag, ASN1_EXP(PKCS12_SAFEBAG, value.bag, PKCS12_BAGS, 0)),
diff --git a/src/lib/libssl/src/crypto/pkcs7/pk7_lib.c b/src/lib/libssl/src/crypto/pkcs7/pk7_lib.c
index c00ed6833a..985b07245c 100644
--- a/src/lib/libssl/src/crypto/pkcs7/pk7_lib.c
+++ b/src/lib/libssl/src/crypto/pkcs7/pk7_lib.c
@@ -74,6 +74,13 @@ long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg)
74 if (nid == NID_pkcs7_signed) 74 if (nid == NID_pkcs7_signed)
75 { 75 {
76 ret=p7->detached=(int)larg; 76 ret=p7->detached=(int)larg;
77 if (ret && PKCS7_type_is_data(p7->d.sign->contents))
78 {
79 ASN1_OCTET_STRING *os;
80 os=p7->d.sign->contents->d.data;
81 ASN1_OCTET_STRING_free(os);
82 p7->d.sign->contents->d.data = NULL;
83 }
77 } 84 }
78 else 85 else
79 { 86 {
diff --git a/src/lib/libssl/src/crypto/ripemd/rmdtest.c b/src/lib/libssl/src/crypto/ripemd/rmdtest.c
index 19e9741db2..be1fb8b1f6 100644
--- a/src/lib/libssl/src/crypto/ripemd/rmdtest.c
+++ b/src/lib/libssl/src/crypto/ripemd/rmdtest.c
@@ -59,7 +59,6 @@
59#include <stdio.h> 59#include <stdio.h>
60#include <string.h> 60#include <string.h>
61#include <stdlib.h> 61#include <stdlib.h>
62#include <openssl/ripemd.h>
63 62
64#ifdef OPENSSL_NO_RIPEMD 63#ifdef OPENSSL_NO_RIPEMD
65int main(int argc, char *argv[]) 64int main(int argc, char *argv[])
@@ -68,6 +67,7 @@ int main(int argc, char *argv[])
68 return(0); 67 return(0);
69} 68}
70#else 69#else
70#include <openssl/ripemd.h>
71#include <openssl/evp.h> 71#include <openssl/evp.h>
72 72
73#ifdef CHARSET_EBCDIC 73#ifdef CHARSET_EBCDIC
diff --git a/src/lib/libssl/src/crypto/x509/x509.h b/src/lib/libssl/src/crypto/x509/x509.h
index c75aa0c717..7095440d36 100644
--- a/src/lib/libssl/src/crypto/x509/x509.h
+++ b/src/lib/libssl/src/crypto/x509/x509.h
@@ -331,6 +331,7 @@ DECLARE_STACK_OF(X509_TRUST)
331#define X509_FLAG_NO_EXTENSIONS (1L << 8) 331#define X509_FLAG_NO_EXTENSIONS (1L << 8)
332#define X509_FLAG_NO_SIGDUMP (1L << 9) 332#define X509_FLAG_NO_SIGDUMP (1L << 9)
333#define X509_FLAG_NO_AUX (1L << 10) 333#define X509_FLAG_NO_AUX (1L << 10)
334#define X509_FLAG_NO_ATTRIBUTES (1L << 11)
334 335
335/* Flags specific to X509_NAME_print_ex() */ 336/* Flags specific to X509_NAME_print_ex() */
336 337
@@ -1015,6 +1016,7 @@ int X509_print(BIO *bp,X509 *x);
1015int X509_ocspid_print(BIO *bp,X509 *x); 1016int X509_ocspid_print(BIO *bp,X509 *x);
1016int X509_CERT_AUX_print(BIO *bp,X509_CERT_AUX *x, int indent); 1017int X509_CERT_AUX_print(BIO *bp,X509_CERT_AUX *x, int indent);
1017int X509_CRL_print(BIO *bp,X509_CRL *x); 1018int X509_CRL_print(BIO *bp,X509_CRL *x);
1019int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag, unsigned long cflag);
1018int X509_REQ_print(BIO *bp,X509_REQ *req); 1020int X509_REQ_print(BIO *bp,X509_REQ *req);
1019#endif 1021#endif
1020 1022
diff --git a/src/lib/libssl/src/doc/crypto/DH_set_method.pod b/src/lib/libssl/src/doc/crypto/DH_set_method.pod
index d990bf8786..73261fc467 100644
--- a/src/lib/libssl/src/doc/crypto/DH_set_method.pod
+++ b/src/lib/libssl/src/doc/crypto/DH_set_method.pod
@@ -2,7 +2,7 @@
2 2
3=head1 NAME 3=head1 NAME
4 4
5DH_set_default_openssl_method, DH_get_default_openssl_method, 5DH_set_default_method, DH_get_default_method,
6DH_set_method, DH_new_method, DH_OpenSSL - select DH method 6DH_set_method, DH_new_method, DH_OpenSSL - select DH method
7 7
8=head1 SYNOPSIS 8=head1 SYNOPSIS
@@ -10,45 +10,47 @@ DH_set_method, DH_new_method, DH_OpenSSL - select DH method
10 #include <openssl/dh.h> 10 #include <openssl/dh.h>
11 #include <openssl/engine.h> 11 #include <openssl/engine.h>
12 12
13 void DH_set_default_openssl_method(DH_METHOD *meth); 13 void DH_set_default_method(const DH_METHOD *meth);
14 14
15 DH_METHOD *DH_get_default_openssl_method(void); 15 const DH_METHOD *DH_get_default_method(void);
16 16
17 int DH_set_method(DH *dh, ENGINE *engine); 17 int DH_set_method(DH *dh, const DH_METHOD *meth);
18 18
19 DH *DH_new_method(ENGINE *engine); 19 DH *DH_new_method(ENGINE *engine);
20 20
21 DH_METHOD *DH_OpenSSL(void); 21 const DH_METHOD *DH_OpenSSL(void);
22 22
23=head1 DESCRIPTION 23=head1 DESCRIPTION
24 24
25A B<DH_METHOD> specifies the functions that OpenSSL uses for Diffie-Hellman 25A B<DH_METHOD> specifies the functions that OpenSSL uses for Diffie-Hellman
26operations. By modifying the method, alternative implementations 26operations. By modifying the method, alternative implementations
27such as hardware accelerators may be used. 27such as hardware accelerators may be used. IMPORTANT: See the NOTES section for
28 28important information about how these DH API functions are affected by the use
29Initially, the default is to use the OpenSSL internal implementation. 29of B<ENGINE> API calls.
30DH_OpenSSL() returns a pointer to that method. 30
31 31Initially, the default DH_METHOD is the OpenSSL internal implementation, as
32DH_set_default_openssl_method() makes B<meth> the default method for all DH 32returned by DH_OpenSSL().
33structures created later. B<NB:> This is true only whilst the default engine 33
34for Diffie-Hellman operations remains as "openssl". ENGINEs provide an 34DH_set_default_method() makes B<meth> the default method for all DH
35encapsulation for implementations of one or more algorithms, and all the DH 35structures created later. B<NB>: This is true only whilst no ENGINE has been set
36functions mentioned here operate within the scope of the default 36as a default for DH, so this function is no longer recommended.
37"openssl" engine. 37
38 38DH_get_default_method() returns a pointer to the current default DH_METHOD.
39DH_get_default_openssl_method() returns a pointer to the current default 39However, the meaningfulness of this result is dependant on whether the ENGINE
40method for the "openssl" engine. 40API is being used, so this function is no longer recommended.
41 41
42DH_set_method() selects B<engine> as the engine that will be responsible for 42DH_set_method() selects B<meth> to perform all operations using the key B<dh>.
43all operations using the structure B<dh>. If this function completes successfully, 43This will replace the DH_METHOD used by the DH key and if the previous method
44then the B<dh> structure will have its own functional reference of B<engine>, so 44was supplied by an ENGINE, the handle to that ENGINE will be released during the
45the caller should remember to free their own reference to B<engine> when they are 45change. It is possible to have DH keys that only work with certain DH_METHOD
46finished with it. NB: An ENGINE's DH_METHOD can be retrieved (or set) by 46implementations (eg. from an ENGINE module that supports embedded
47ENGINE_get_DH() or ENGINE_set_DH(). 47hardware-protected keys), and in such cases attempting to change the DH_METHOD
48 48for the key can have unexpected results.
49DH_new_method() allocates and initializes a DH structure so that 49
50B<engine> will be used for the DH operations. If B<engine> is NULL, 50DH_new_method() allocates and initializes a DH structure so that B<engine> will
51the default engine for Diffie-Hellman opertaions is used. 51be used for the DH operations. If B<engine> is NULL, the default ENGINE for DH
52operations is used, and if no default ENGINE is set, the DH_METHOD controlled by
53DH_set_default_method() is used.
52 54
53=head1 THE DH_METHOD STRUCTURE 55=head1 THE DH_METHOD STRUCTURE
54 56
@@ -82,17 +84,28 @@ the default engine for Diffie-Hellman opertaions is used.
82 84
83=head1 RETURN VALUES 85=head1 RETURN VALUES
84 86
85DH_OpenSSL() and DH_get_default_openssl_method() return pointers to the 87DH_OpenSSL() and DH_get_default_method() return pointers to the respective
86respective B<DH_METHOD>s. 88B<DH_METHOD>s.
89
90DH_set_default_method() returns no value.
91
92DH_set_method() returns non-zero if the provided B<meth> was successfully set as
93the method for B<dh> (including unloading the ENGINE handle if the previous
94method was supplied by an ENGINE).
87 95
88DH_set_default_openssl_method() returns no value. 96DH_new_method() returns NULL and sets an error code that can be obtained by
97L<ERR_get_error(3)|ERR_get_error(3)> if the allocation fails. Otherwise it
98returns a pointer to the newly allocated structure.
89 99
90DH_set_method() returns non-zero if the ENGINE associated with B<dh> 100=head1 NOTES
91was successfully changed to B<engine>.
92 101
93DH_new_method() returns NULL and sets an error code that can be 102As of version 0.9.7, DH_METHOD implementations are grouped together with other
94obtained by L<ERR_get_error(3)|ERR_get_error(3)> if the allocation fails. 103algorithmic APIs (eg. RSA_METHOD, EVP_CIPHER, etc) in B<ENGINE> modules. If a
95Otherwise it returns a pointer to the newly allocated structure. 104default ENGINE is specified for DH functionality using an ENGINE API function,
105that will override any DH defaults set using the DH API (ie.
106DH_set_default_method()). For this reason, the ENGINE API is the recommended way
107to control default implementations for use in DH and other cryptographic
108algorithms.
96 109
97=head1 SEE ALSO 110=head1 SEE ALSO
98 111
@@ -103,9 +116,14 @@ L<dh(3)|dh(3)>, L<DH_new(3)|DH_new(3)>
103DH_set_default_method(), DH_get_default_method(), DH_set_method(), 116DH_set_default_method(), DH_get_default_method(), DH_set_method(),
104DH_new_method() and DH_OpenSSL() were added in OpenSSL 0.9.4. 117DH_new_method() and DH_OpenSSL() were added in OpenSSL 0.9.4.
105 118
106DH_set_default_openssl_method() and DH_get_default_openssl_method() 119DH_set_default_openssl_method() and DH_get_default_openssl_method() replaced
107replaced DH_set_default_method() and DH_get_default_method() respectively, 120DH_set_default_method() and DH_get_default_method() respectively, and
108and DH_set_method() and DH_new_method() were altered to use B<ENGINE>s 121DH_set_method() and DH_new_method() were altered to use B<ENGINE>s rather than
109rather than B<DH_METHOD>s during development of OpenSSL 0.9.6. 122B<DH_METHOD>s during development of the engine version of OpenSSL 0.9.6. For
1230.9.7, the handling of defaults in the ENGINE API was restructured so that this
124change was reversed, and behaviour of the other functions resembled more closely
125the previous behaviour. The behaviour of defaults in the ENGINE API now
126transparently overrides the behaviour of defaults in the DH API without
127requiring changing these function prototypes.
110 128
111=cut 129=cut
diff --git a/src/lib/libssl/src/doc/crypto/DSA_dup_DH.pod b/src/lib/libssl/src/doc/crypto/DSA_dup_DH.pod
index 695f99a13b..7f6f0d1115 100644
--- a/src/lib/libssl/src/doc/crypto/DSA_dup_DH.pod
+++ b/src/lib/libssl/src/doc/crypto/DSA_dup_DH.pod
@@ -8,7 +8,7 @@ DSA_dup_DH - create a DH structure out of DSA structure
8 8
9 #include <openssl/dsa.h> 9 #include <openssl/dsa.h>
10 10
11 DH * DSA_dup_DH(DSA *r); 11 DH * DSA_dup_DH(const DSA *r);
12 12
13=head1 DESCRIPTION 13=head1 DESCRIPTION
14 14
diff --git a/src/lib/libssl/src/doc/crypto/DSA_new.pod b/src/lib/libssl/src/doc/crypto/DSA_new.pod
index 301af912dd..48e9b82a09 100644
--- a/src/lib/libssl/src/doc/crypto/DSA_new.pod
+++ b/src/lib/libssl/src/doc/crypto/DSA_new.pod
@@ -14,7 +14,8 @@ DSA_new, DSA_free - allocate and free DSA objects
14 14
15=head1 DESCRIPTION 15=head1 DESCRIPTION
16 16
17DSA_new() allocates and initializes a B<DSA> structure. 17DSA_new() allocates and initializes a B<DSA> structure. It is equivalent to
18calling DSA_new_method(NULL).
18 19
19DSA_free() frees the B<DSA> structure and its components. The values are 20DSA_free() frees the B<DSA> structure and its components. The values are
20erased before the memory is returned to the system. 21erased before the memory is returned to the system.
diff --git a/src/lib/libssl/src/doc/crypto/DSA_set_method.pod b/src/lib/libssl/src/doc/crypto/DSA_set_method.pod
index 36a1052d27..bc3cfb1f0a 100644
--- a/src/lib/libssl/src/doc/crypto/DSA_set_method.pod
+++ b/src/lib/libssl/src/doc/crypto/DSA_set_method.pod
@@ -2,7 +2,7 @@
2 2
3=head1 NAME 3=head1 NAME
4 4
5DSA_set_default_openssl_method, DSA_get_default_openssl_method, 5DSA_set_default_method, DSA_get_default_method,
6DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method 6DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method
7 7
8=head1 SYNOPSIS 8=head1 SYNOPSIS
@@ -10,11 +10,11 @@ DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method
10 #include <openssl/dsa.h> 10 #include <openssl/dsa.h>
11 #include <openssl/engine.h> 11 #include <openssl/engine.h>
12 12
13 void DSA_set_default_openssl_method(DSA_METHOD *meth); 13 void DSA_set_default_method(const DSA_METHOD *meth);
14 14
15 DSA_METHOD *DSA_get_default_openssl_method(void); 15 const DSA_METHOD *DSA_get_default_method(void);
16 16
17 int DSA_set_method(DSA *dsa, ENGINE *engine); 17 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth);
18 18
19 DSA *DSA_new_method(ENGINE *engine); 19 DSA *DSA_new_method(ENGINE *engine);
20 20
@@ -24,26 +24,35 @@ DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method
24 24
25A B<DSA_METHOD> specifies the functions that OpenSSL uses for DSA 25A B<DSA_METHOD> specifies the functions that OpenSSL uses for DSA
26operations. By modifying the method, alternative implementations 26operations. By modifying the method, alternative implementations
27such as hardware accelerators may be used. 27such as hardware accelerators may be used. IMPORTANT: See the NOTES section for
28 28important information about how these DSA API functions are affected by the use
29Initially, the default is to use the OpenSSL internal implementation. 29of B<ENGINE> API calls.
30DSA_OpenSSL() returns a pointer to that method. 30
31 31Initially, the default DSA_METHOD is the OpenSSL internal implementation,
32DSA_set_default_openssl_method() makes B<meth> the default method for 32as returned by DSA_OpenSSL().
33all DSA structures created later. B<NB:> This is true only whilst the 33
34default engine for DSA operations remains as "openssl". ENGINEs 34DSA_set_default_method() makes B<meth> the default method for all DSA
35provide an encapsulation for implementations of one or more algorithms at a 35structures created later. B<NB>: This is true only whilst no ENGINE has
36time, and all the DSA functions mentioned here operate within the scope 36been set as a default for DSA, so this function is no longer recommended.
37of the default "openssl" engine. 37
38 38DSA_get_default_method() returns a pointer to the current default
39DSA_get_default_openssl_method() returns a pointer to the current default 39DSA_METHOD. However, the meaningfulness of this result is dependant on
40method for the "openssl" engine. 40whether the ENGINE API is being used, so this function is no longer
41 41recommended.
42DSA_set_method() selects B<engine> for all operations using the structure B<dsa>. 42
43 43DSA_set_method() selects B<meth> to perform all operations using the key
44DSA_new_method() allocates and initializes a DSA structure so that 44B<rsa>. This will replace the DSA_METHOD used by the DSA key and if the
45B<engine> will be used for the DSA operations. If B<engine> is NULL, 45previous method was supplied by an ENGINE, the handle to that ENGINE will
46the default engine for DSA operations is used. 46be released during the change. It is possible to have DSA keys that only
47work with certain DSA_METHOD implementations (eg. from an ENGINE module
48that supports embedded hardware-protected keys), and in such cases
49attempting to change the DSA_METHOD for the key can have unexpected
50results.
51
52DSA_new_method() allocates and initializes a DSA structure so that B<engine>
53will be used for the DSA operations. If B<engine> is NULL, the default engine
54for DSA operations is used, and if no default ENGINE is set, the DSA_METHOD
55controlled by DSA_set_default_method() is used.
47 56
48=head1 THE DSA_METHOD STRUCTURE 57=head1 THE DSA_METHOD STRUCTURE
49 58
@@ -89,18 +98,29 @@ struct
89 98
90=head1 RETURN VALUES 99=head1 RETURN VALUES
91 100
92DSA_OpenSSL() and DSA_get_default_openssl_method() return pointers to the 101DSA_OpenSSL() and DSA_get_default_method() return pointers to the respective
93respective B<DSA_METHOD>s. 102B<DSA_METHOD>s.
94 103
95DSA_set_default_openssl_method() returns no value. 104DSA_set_default_method() returns no value.
96 105
97DSA_set_method() returns non-zero if the ENGINE associated with B<dsa> 106DSA_set_method() returns non-zero if the provided B<meth> was successfully set as
98was successfully changed to B<engine>. 107the method for B<dsa> (including unloading the ENGINE handle if the previous
108method was supplied by an ENGINE).
99 109
100DSA_new_method() returns NULL and sets an error code that can be 110DSA_new_method() returns NULL and sets an error code that can be
101obtained by L<ERR_get_error(3)|ERR_get_error(3)> if the allocation 111obtained by L<ERR_get_error(3)|ERR_get_error(3)> if the allocation
102fails. Otherwise it returns a pointer to the newly allocated structure. 112fails. Otherwise it returns a pointer to the newly allocated structure.
103 113
114=head1 NOTES
115
116As of version 0.9.7, DSA_METHOD implementations are grouped together with other
117algorithmic APIs (eg. RSA_METHOD, EVP_CIPHER, etc) in B<ENGINE> modules. If a
118default ENGINE is specified for DSA functionality using an ENGINE API function,
119that will override any DSA defaults set using the DSA API (ie.
120DSA_set_default_method()). For this reason, the ENGINE API is the recommended way
121to control default implementations for use in DSA and other cryptographic
122algorithms.
123
104=head1 SEE ALSO 124=head1 SEE ALSO
105 125
106L<dsa(3)|dsa(3)>, L<DSA_new(3)|DSA_new(3)> 126L<dsa(3)|dsa(3)>, L<DSA_new(3)|DSA_new(3)>
@@ -110,9 +130,14 @@ L<dsa(3)|dsa(3)>, L<DSA_new(3)|DSA_new(3)>
110DSA_set_default_method(), DSA_get_default_method(), DSA_set_method(), 130DSA_set_default_method(), DSA_get_default_method(), DSA_set_method(),
111DSA_new_method() and DSA_OpenSSL() were added in OpenSSL 0.9.4. 131DSA_new_method() and DSA_OpenSSL() were added in OpenSSL 0.9.4.
112 132
113DSA_set_default_openssl_method() and DSA_get_default_openssl_method() 133DSA_set_default_openssl_method() and DSA_get_default_openssl_method() replaced
114replaced DSA_set_default_method() and DSA_get_default_method() respectively, 134DSA_set_default_method() and DSA_get_default_method() respectively, and
115and DSA_set_method() and DSA_new_method() were altered to use B<ENGINE>s 135DSA_set_method() and DSA_new_method() were altered to use B<ENGINE>s rather than
116rather than B<DSA_METHOD>s during development of OpenSSL 0.9.6. 136B<DSA_METHOD>s during development of the engine version of OpenSSL 0.9.6. For
1370.9.7, the handling of defaults in the ENGINE API was restructured so that this
138change was reversed, and behaviour of the other functions resembled more closely
139the previous behaviour. The behaviour of defaults in the ENGINE API now
140transparently overrides the behaviour of defaults in the DSA API without
141requiring changing these function prototypes.
117 142
118=cut 143=cut
diff --git a/src/lib/libssl/src/doc/crypto/DSA_size.pod b/src/lib/libssl/src/doc/crypto/DSA_size.pod
index 23b6320a4d..ba4f650361 100644
--- a/src/lib/libssl/src/doc/crypto/DSA_size.pod
+++ b/src/lib/libssl/src/doc/crypto/DSA_size.pod
@@ -8,7 +8,7 @@ DSA_size - get DSA signature size
8 8
9 #include <openssl/dsa.h> 9 #include <openssl/dsa.h>
10 10
11 int DSA_size(DSA *dsa); 11 int DSA_size(const DSA *dsa);
12 12
13=head1 DESCRIPTION 13=head1 DESCRIPTION
14 14
diff --git a/src/lib/libssl/src/doc/crypto/EVP_SealInit.pod b/src/lib/libssl/src/doc/crypto/EVP_SealInit.pod
index 0451eb648a..25ef07f7c7 100644
--- a/src/lib/libssl/src/doc/crypto/EVP_SealInit.pod
+++ b/src/lib/libssl/src/doc/crypto/EVP_SealInit.pod
@@ -73,4 +73,6 @@ L<EVP_OpenInit(3)|EVP_OpenInit(3)>
73 73
74=head1 HISTORY 74=head1 HISTORY
75 75
76EVP_SealFinal() did not return a value before OpenSSL 0.9.7.
77
76=cut 78=cut
diff --git a/src/lib/libssl/src/doc/crypto/RAND_set_rand_method.pod b/src/lib/libssl/src/doc/crypto/RAND_set_rand_method.pod
index 464eba416d..c9bb6d9f27 100644
--- a/src/lib/libssl/src/doc/crypto/RAND_set_rand_method.pod
+++ b/src/lib/libssl/src/doc/crypto/RAND_set_rand_method.pod
@@ -8,22 +8,30 @@ RAND_set_rand_method, RAND_get_rand_method, RAND_SSLeay - select RAND method
8 8
9 #include <openssl/rand.h> 9 #include <openssl/rand.h>
10 10
11 void RAND_set_rand_method(RAND_METHOD *meth); 11 void RAND_set_rand_method(const RAND_METHOD *meth);
12 12
13 RAND_METHOD *RAND_get_rand_method(void); 13 const RAND_METHOD *RAND_get_rand_method(void);
14 14
15 RAND_METHOD *RAND_SSLeay(void); 15 RAND_METHOD *RAND_SSLeay(void);
16 16
17=head1 DESCRIPTION 17=head1 DESCRIPTION
18 18
19A B<RAND_METHOD> specifies the functions that OpenSSL uses for random 19A B<RAND_METHOD> specifies the functions that OpenSSL uses for random number
20number generation. By modifying the method, alternative 20generation. By modifying the method, alternative implementations such as
21implementations such as hardware RNGs may be used. Initially, the 21hardware RNGs may be used. IMPORTANT: See the NOTES section for important
22default is to use the OpenSSL internal implementation. RAND_SSLeay() 22information about how these RAND API functions are affected by the use of
23returns a pointer to that method. 23B<ENGINE> API calls.
24 24
25RAND_set_rand_method() sets the RAND method to B<meth>. 25Initially, the default RAND_METHOD is the OpenSSL internal implementation, as
26RAND_get_rand_method() returns a pointer to the current method. 26returned by RAND_SSLeay().
27
28RAND_set_default_method() makes B<meth> the method for PRNG use. B<NB>: This is
29true only whilst no ENGINE has been set as a default for RAND, so this function
30is no longer recommended.
31
32RAND_get_default_method() returns a pointer to the current RAND_METHOD.
33However, the meaningfulness of this result is dependant on whether the ENGINE
34API is being used, so this function is no longer recommended.
27 35
28=head1 THE RAND_METHOD STRUCTURE 36=head1 THE RAND_METHOD STRUCTURE
29 37
@@ -47,13 +55,29 @@ Each component may be NULL if the function is not implemented.
47RAND_set_rand_method() returns no value. RAND_get_rand_method() and 55RAND_set_rand_method() returns no value. RAND_get_rand_method() and
48RAND_SSLeay() return pointers to the respective methods. 56RAND_SSLeay() return pointers to the respective methods.
49 57
58=head1 NOTES
59
60As of version 0.9.7, RAND_METHOD implementations are grouped together with other
61algorithmic APIs (eg. RSA_METHOD, EVP_CIPHER, etc) in B<ENGINE> modules. If a
62default ENGINE is specified for RAND functionality using an ENGINE API function,
63that will override any RAND defaults set using the RAND API (ie.
64RAND_set_rand_method()). For this reason, the ENGINE API is the recommended way
65to control default implementations for use in RAND and other cryptographic
66algorithms.
67
50=head1 SEE ALSO 68=head1 SEE ALSO
51 69
52L<rand(3)|rand(3)> 70L<rand(3)|rand(3)>, L<engine(3)|engine(3)>
53 71
54=head1 HISTORY 72=head1 HISTORY
55 73
56RAND_set_rand_method(), RAND_get_rand_method() and RAND_SSLeay() are 74RAND_set_rand_method(), RAND_get_rand_method() and RAND_SSLeay() are
57available in all versions of OpenSSL. 75available in all versions of OpenSSL.
58 76
77In the engine version of version 0.9.6, RAND_set_rand_method() was altered to
78take an ENGINE pointer as its argument. As of version 0.9.7, that has been
79reverted as the ENGINE API transparently overrides RAND defaults if used,
80otherwise RAND API functions work as before. RAND_set_rand_engine() was also
81introduced in version 0.9.7.
82
59=cut 83=cut
diff --git a/src/lib/libssl/src/doc/crypto/RSA_new.pod b/src/lib/libssl/src/doc/crypto/RSA_new.pod
index 299047f31f..3d15b92824 100644
--- a/src/lib/libssl/src/doc/crypto/RSA_new.pod
+++ b/src/lib/libssl/src/doc/crypto/RSA_new.pod
@@ -14,7 +14,8 @@ RSA_new, RSA_free - allocate and free RSA objects
14 14
15=head1 DESCRIPTION 15=head1 DESCRIPTION
16 16
17RSA_new() allocates and initializes an B<RSA> structure. 17RSA_new() allocates and initializes an B<RSA> structure. It is equivalent to
18calling RSA_new_method(NULL).
18 19
19RSA_free() frees the B<RSA> structure and its components. The key is 20RSA_free() frees the B<RSA> structure and its components. The key is
20erased before the memory is returned to the system. 21erased before the memory is returned to the system.
@@ -30,7 +31,8 @@ RSA_free() returns no value.
30=head1 SEE ALSO 31=head1 SEE ALSO
31 32
32L<ERR_get_error(3)|ERR_get_error(3)>, L<rsa(3)|rsa(3)>, 33L<ERR_get_error(3)|ERR_get_error(3)>, L<rsa(3)|rsa(3)>,
33L<RSA_generate_key(3)|RSA_generate_key(3)> 34L<RSA_generate_key(3)|RSA_generate_key(3)>,
35L<RSA_new_method(3)|RSA_new_method(3)>
34 36
35=head1 HISTORY 37=head1 HISTORY
36 38
diff --git a/src/lib/libssl/src/doc/crypto/RSA_set_method.pod b/src/lib/libssl/src/doc/crypto/RSA_set_method.pod
index 14917dd35f..0687c2242a 100644
--- a/src/lib/libssl/src/doc/crypto/RSA_set_method.pod
+++ b/src/lib/libssl/src/doc/crypto/RSA_set_method.pod
@@ -11,52 +11,64 @@ RSA_null_method, RSA_flags, RSA_new_method - select RSA method
11 #include <openssl/rsa.h> 11 #include <openssl/rsa.h>
12 #include <openssl/engine.h> 12 #include <openssl/engine.h>
13 13
14 void RSA_set_default_openssl_method(RSA_METHOD *meth); 14 void RSA_set_default_method(const RSA_METHOD *meth);
15 15
16 RSA_METHOD *RSA_get_default_openssl_method(void); 16 RSA_METHOD *RSA_get_default_method(void);
17 17
18 int RSA_set_method(RSA *rsa, ENGINE *engine); 18 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
19 19
20 RSA_METHOD *RSA_get_method(RSA *rsa); 20 RSA_METHOD *RSA_get_method(const RSA *rsa);
21 21
22 RSA_METHOD *RSA_PKCS1_SSLeay(void); 22 RSA_METHOD *RSA_PKCS1_SSLeay(void);
23 23
24 RSA_METHOD *RSA_null_method(void); 24 RSA_METHOD *RSA_null_method(void);
25 25
26 int RSA_flags(RSA *rsa); 26 int RSA_flags(const RSA *rsa);
27 27
28 RSA *RSA_new_method(ENGINE *engine); 28 RSA *RSA_new_method(ENGINE *engine);
29 29
30=head1 DESCRIPTION 30=head1 DESCRIPTION
31 31
32An B<RSA_METHOD> specifies the functions that OpenSSL uses for RSA 32An B<RSA_METHOD> specifies the functions that OpenSSL uses for RSA
33operations. By modifying the method, alternative implementations 33operations. By modifying the method, alternative implementations such as
34such as hardware accelerators may be used. 34hardware accelerators may be used. IMPORTANT: See the NOTES section for
35 35important information about how these RSA API functions are affected by the
36Initially, the default is to use the OpenSSL internal implementation. 36use of B<ENGINE> API calls.
37RSA_PKCS1_SSLeay() returns a pointer to that method. 37
38 38Initially, the default RSA_METHOD is the OpenSSL internal implementation,
39RSA_set_default_openssl_method() makes B<meth> the default method for all B<RSA> 39as returned by RSA_PKCS1_SSLeay().
40structures created later. B<NB:> This is true only whilst the default engine 40
41for RSA operations remains as "openssl". ENGINEs provide an 41RSA_set_default_method() makes B<meth> the default method for all RSA
42encapsulation for implementations of one or more algorithms at a time, and all 42structures created later. B<NB>: This is true only whilst no ENGINE has
43the RSA functions mentioned here operate within the scope of the default 43been set as a default for RSA, so this function is no longer recommended.
44"openssl" engine. 44
45 45RSA_get_default_method() returns a pointer to the current default
46RSA_get_default_openssl_method() returns a pointer to the current default 46RSA_METHOD. However, the meaningfulness of this result is dependant on
47method for the "openssl" engine. 47whether the ENGINE API is being used, so this function is no longer
48 48recommended.
49RSA_set_method() selects B<engine> for all operations using the key 49
50B<rsa>. 50RSA_set_method() selects B<meth> to perform all operations using the key
51 51B<rsa>. This will replace the RSA_METHOD used by the RSA key and if the
52RSA_get_method() returns a pointer to the RSA_METHOD from the currently 52previous method was supplied by an ENGINE, the handle to that ENGINE will
53selected ENGINE for B<rsa>. 53be released during the change. It is possible to have RSA keys that only
54 54work with certain RSA_METHOD implementations (eg. from an ENGINE module
55RSA_flags() returns the B<flags> that are set for B<rsa>'s current method. 55that supports embedded hardware-protected keys), and in such cases
56attempting to change the RSA_METHOD for the key can have unexpected
57results.
58
59RSA_get_method() returns a pointer to the RSA_METHOD being used by B<rsa>.
60This method may or may not be supplied by an ENGINE implementation, but if
61it is, the return value can only be guaranteed to be valid as long as the
62RSA key itself is valid and does not have its implementation changed by
63RSA_set_method().
64
65RSA_flags() returns the B<flags> that are set for B<rsa>'s current
66RSA_METHOD. See the BUGS section.
56 67
57RSA_new_method() allocates and initializes an RSA structure so that 68RSA_new_method() allocates and initializes an RSA structure so that
58B<engine> will be used for the RSA operations. If B<engine> is NULL, 69B<engine> will be used for the RSA operations. If B<engine> is NULL, the
59the default engine for RSA operations is used. 70default ENGINE for RSA operations is used, and if no default ENGINE is set,
71the RSA_METHOD controlled by RSA_set_default_method() is used.
60 72
61=head1 THE RSA_METHOD STRUCTURE 73=head1 THE RSA_METHOD STRUCTURE
62 74
@@ -121,22 +133,45 @@ the default engine for RSA operations is used.
121 133
122=head1 RETURN VALUES 134=head1 RETURN VALUES
123 135
124RSA_PKCS1_SSLeay(), RSA_PKCS1_null_method(), RSA_get_default_openssl_method() 136RSA_PKCS1_SSLeay(), RSA_PKCS1_null_method(), RSA_get_default_method()
125and RSA_get_method() return pointers to the respective RSA_METHODs. 137and RSA_get_method() return pointers to the respective RSA_METHODs.
126 138
127RSA_set_default_openssl_method() returns no value. 139RSA_set_default_method() returns no value.
128 140
129RSA_set_method() selects B<engine> as the engine that will be responsible for 141RSA_set_method() returns a pointer to the old RSA_METHOD implementation
130all operations using the structure B<rsa>. If this function completes successfully, 142that was replaced. However, this return value should probably be ignored
131then the B<rsa> structure will have its own functional reference of B<engine>, so 143because if it was supplied by an ENGINE, the pointer could be invalidated
132the caller should remember to free their own reference to B<engine> when they are 144at any time if the ENGINE is unloaded (in fact it could be unloaded as a
133finished with it. NB: An ENGINE's RSA_METHOD can be retrieved (or set) by 145result of the RSA_set_method() function releasing its handle to the
134ENGINE_get_RSA() or ENGINE_set_RSA(). 146ENGINE). For this reason, the return type may be replaced with a B<void>
147declaration in a future release.
135 148
136RSA_new_method() returns NULL and sets an error code that can be 149RSA_new_method() returns NULL and sets an error code that can be obtained
137obtained by L<ERR_get_error(3)|ERR_get_error(3)> if the allocation fails. Otherwise 150by L<ERR_get_error(3)|ERR_get_error(3)> if the allocation fails. Otherwise
138it returns a pointer to the newly allocated structure. 151it returns a pointer to the newly allocated structure.
139 152
153=head1 NOTES
154
155As of version 0.9.7, RSA_METHOD implementations are grouped together with
156other algorithmic APIs (eg. DSA_METHOD, EVP_CIPHER, etc) into B<ENGINE>
157modules. If a default ENGINE is specified for RSA functionality using an
158ENGINE API function, that will override any RSA defaults set using the RSA
159API (ie. RSA_set_default_method()). For this reason, the ENGINE API is the
160recommended way to control default implementations for use in RSA and other
161cryptographic algorithms.
162
163=head1 BUGS
164
165The behaviour of RSA_flags() is a mis-feature that is left as-is for now
166to avoid creating compatibility problems. RSA functionality, such as the
167encryption functions, are controlled by the B<flags> value in the RSA key
168itself, not by the B<flags> value in the RSA_METHOD attached to the RSA key
169(which is what this function returns). If the flags element of an RSA key
170is changed, the changes will be honoured by RSA functionality but will not
171be reflected in the return value of the RSA_flags() function - in effect
172RSA_flags() behaves more like an RSA_default_flags() function (which does
173not currently exist).
174
140=head1 SEE ALSO 175=head1 SEE ALSO
141 176
142L<rsa(3)|rsa(3)>, L<RSA_new(3)|RSA_new(3)> 177L<rsa(3)|rsa(3)>, L<RSA_new(3)|RSA_new(3)>
@@ -149,8 +184,14 @@ well as the rsa_sign and rsa_verify components of RSA_METHOD were
149added in OpenSSL 0.9.4. 184added in OpenSSL 0.9.4.
150 185
151RSA_set_default_openssl_method() and RSA_get_default_openssl_method() 186RSA_set_default_openssl_method() and RSA_get_default_openssl_method()
152replaced RSA_set_default_method() and RSA_get_default_method() respectively, 187replaced RSA_set_default_method() and RSA_get_default_method()
153and RSA_set_method() and RSA_new_method() were altered to use B<ENGINE>s 188respectively, and RSA_set_method() and RSA_new_method() were altered to use
154rather than B<RSA_METHOD>s during development of OpenSSL 0.9.6. 189B<ENGINE>s rather than B<RSA_METHOD>s during development of the engine
190version of OpenSSL 0.9.6. For 0.9.7, the handling of defaults in the ENGINE
191API was restructured so that this change was reversed, and behaviour of the
192other functions resembled more closely the previous behaviour. The
193behaviour of defaults in the ENGINE API now transparently overrides the
194behaviour of defaults in the RSA API without requiring changing these
195function prototypes.
155 196
156=cut 197=cut
diff --git a/src/lib/libssl/src/doc/crypto/RSA_size.pod b/src/lib/libssl/src/doc/crypto/RSA_size.pod
index b36b4d58d5..5b7f835f95 100644
--- a/src/lib/libssl/src/doc/crypto/RSA_size.pod
+++ b/src/lib/libssl/src/doc/crypto/RSA_size.pod
@@ -8,7 +8,7 @@ RSA_size - get RSA modulus size
8 8
9 #include <openssl/rsa.h> 9 #include <openssl/rsa.h>
10 10
11 int RSA_size(RSA *rsa); 11 int RSA_size(const RSA *rsa);
12 12
13=head1 DESCRIPTION 13=head1 DESCRIPTION
14 14
diff --git a/src/lib/libssl/src/doc/crypto/dh.pod b/src/lib/libssl/src/doc/crypto/dh.pod
index b4be4be405..c3ccd06207 100644
--- a/src/lib/libssl/src/doc/crypto/dh.pod
+++ b/src/lib/libssl/src/doc/crypto/dh.pod
@@ -12,20 +12,20 @@ dh - Diffie-Hellman key agreement
12 DH * DH_new(void); 12 DH * DH_new(void);
13 void DH_free(DH *dh); 13 void DH_free(DH *dh);
14 14
15 int DH_size(DH *dh); 15 int DH_size(const DH *dh);
16 16
17 DH * DH_generate_parameters(int prime_len, int generator, 17 DH * DH_generate_parameters(int prime_len, int generator,
18 void (*callback)(int, int, void *), void *cb_arg); 18 void (*callback)(int, int, void *), void *cb_arg);
19 int DH_check(DH *dh, int *codes); 19 int DH_check(const DH *dh, int *codes);
20 20
21 int DH_generate_key(DH *dh); 21 int DH_generate_key(DH *dh);
22 int DH_compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh); 22 int DH_compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh);
23 23
24 void DH_set_default_openssl_method(DH_METHOD *meth); 24 void DH_set_default_method(const DH_METHOD *meth);
25 DH_METHOD *DH_get_default_openssl_method(void); 25 const DH_METHOD *DH_get_default_method(void);
26 int DH_set_method(DH *dh, ENGINE *engine); 26 int DH_set_method(DH *dh, const DH_METHOD *meth);
27 DH *DH_new_method(ENGINE *engine); 27 DH *DH_new_method(ENGINE *engine);
28 DH_METHOD *DH_OpenSSL(void); 28 const DH_METHOD *DH_OpenSSL(void);
29 29
30 int DH_get_ex_new_index(long argl, char *argp, int (*new_func)(), 30 int DH_get_ex_new_index(long argl, char *argp, int (*new_func)(),
31 int (*dup_func)(), void (*free_func)()); 31 int (*dup_func)(), void (*free_func)());
@@ -33,10 +33,10 @@ dh - Diffie-Hellman key agreement
33 char *DH_get_ex_data(DH *d, int idx); 33 char *DH_get_ex_data(DH *d, int idx);
34 34
35 DH * d2i_DHparams(DH **a, unsigned char **pp, long length); 35 DH * d2i_DHparams(DH **a, unsigned char **pp, long length);
36 int i2d_DHparams(DH *a, unsigned char **pp); 36 int i2d_DHparams(const DH *a, unsigned char **pp);
37 37
38 int DHparams_print_fp(FILE *fp, DH *x); 38 int DHparams_print_fp(FILE *fp, const DH *x);
39 int DHparams_print(BIO *bp, DH *x); 39 int DHparams_print(BIO *bp, const DH *x);
40 40
41=head1 DESCRIPTION 41=head1 DESCRIPTION
42 42
@@ -57,11 +57,20 @@ The B<DH> structure consists of several BIGNUM components.
57 }; 57 };
58 DH 58 DH
59 59
60Note that DH keys may use non-standard B<DH_METHOD> implementations,
61either directly or by the use of B<ENGINE> modules. In some cases (eg. an
62ENGINE providing support for hardware-embedded keys), these BIGNUM values
63will not be used by the implementation or may be used for alternative data
64storage. For this reason, applications should generally avoid using DH
65structure elements directly and instead use API functions to query or
66modify keys.
67
60=head1 SEE ALSO 68=head1 SEE ALSO
61 69
62L<dhparam(1)|dhparam(1)>, L<bn(3)|bn(3)>, L<dsa(3)|dsa(3)>, L<err(3)|err(3)>, 70L<dhparam(1)|dhparam(1)>, L<bn(3)|bn(3)>, L<dsa(3)|dsa(3)>, L<err(3)|err(3)>,
63L<rand(3)|rand(3)>, L<rsa(3)|rsa(3)>, L<DH_set_method(3)|DH_set_method(3)>, 71L<rand(3)|rand(3)>, L<rsa(3)|rsa(3)>, L<engine(3)|engine(3)>,
64L<DH_new(3)|DH_new(3)>, L<DH_get_ex_new_index(3)|DH_get_ex_new_index(3)>, 72L<DH_set_method(3)|DH_set_method(3)>, L<DH_new(3)|DH_new(3)>,
73L<DH_get_ex_new_index(3)|DH_get_ex_new_index(3)>,
65L<DH_generate_parameters(3)|DH_generate_parameters(3)>, 74L<DH_generate_parameters(3)|DH_generate_parameters(3)>,
66L<DH_compute_key(3)|DH_compute_key(3)>, L<d2i_DHparams(3)|d2i_DHparams(3)>, 75L<DH_compute_key(3)|DH_compute_key(3)>, L<d2i_DHparams(3)|d2i_DHparams(3)>,
67L<RSA_print(3)|RSA_print(3)> 76L<RSA_print(3)|RSA_print(3)>
diff --git a/src/lib/libssl/src/doc/crypto/dsa.pod b/src/lib/libssl/src/doc/crypto/dsa.pod
index 573500204b..ae2e5d81f9 100644
--- a/src/lib/libssl/src/doc/crypto/dsa.pod
+++ b/src/lib/libssl/src/doc/crypto/dsa.pod
@@ -12,13 +12,13 @@ dsa - Digital Signature Algorithm
12 DSA * DSA_new(void); 12 DSA * DSA_new(void);
13 void DSA_free(DSA *dsa); 13 void DSA_free(DSA *dsa);
14 14
15 int DSA_size(DSA *dsa); 15 int DSA_size(const DSA *dsa);
16 16
17 DSA * DSA_generate_parameters(int bits, unsigned char *seed, 17 DSA * DSA_generate_parameters(int bits, unsigned char *seed,
18 int seed_len, int *counter_ret, unsigned long *h_ret, 18 int seed_len, int *counter_ret, unsigned long *h_ret,
19 void (*callback)(int, int, void *), void *cb_arg); 19 void (*callback)(int, int, void *), void *cb_arg);
20 20
21 DH * DSA_dup_DH(DSA *r); 21 DH * DSA_dup_DH(const DSA *r);
22 22
23 int DSA_generate_key(DSA *dsa); 23 int DSA_generate_key(DSA *dsa);
24 24
@@ -27,13 +27,13 @@ dsa - Digital Signature Algorithm
27 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx, BIGNUM **kinvp, 27 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx, BIGNUM **kinvp,
28 BIGNUM **rp); 28 BIGNUM **rp);
29 int DSA_verify(int dummy, const unsigned char *dgst, int len, 29 int DSA_verify(int dummy, const unsigned char *dgst, int len,
30 unsigned char *sigbuf, int siglen, DSA *dsa); 30 const unsigned char *sigbuf, int siglen, DSA *dsa);
31 31
32 void DSA_set_default_openssl_method(DSA_METHOD *meth); 32 void DSA_set_default_method(const DSA_METHOD *meth);
33 DSA_METHOD *DSA_get_default_openssl_method(void); 33 const DSA_METHOD *DSA_get_default_method(void);
34 int DSA_set_method(DSA *dsa, ENGINE *engine); 34 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth);
35 DSA *DSA_new_method(ENGINE *engine); 35 DSA *DSA_new_method(ENGINE *engine);
36 DSA_METHOD *DSA_OpenSSL(void); 36 const DSA_METHOD *DSA_OpenSSL(void);
37 37
38 int DSA_get_ex_new_index(long argl, char *argp, int (*new_func)(), 38 int DSA_get_ex_new_index(long argl, char *argp, int (*new_func)(),
39 int (*dup_func)(), void (*free_func)()); 39 int (*dup_func)(), void (*free_func)());
@@ -42,7 +42,7 @@ dsa - Digital Signature Algorithm
42 42
43 DSA_SIG *DSA_SIG_new(void); 43 DSA_SIG *DSA_SIG_new(void);
44 void DSA_SIG_free(DSA_SIG *a); 44 void DSA_SIG_free(DSA_SIG *a);
45 int i2d_DSA_SIG(DSA_SIG *a, unsigned char **pp); 45 int i2d_DSA_SIG(const DSA_SIG *a, unsigned char **pp);
46 DSA_SIG *d2i_DSA_SIG(DSA_SIG **v, unsigned char **pp, long length); 46 DSA_SIG *d2i_DSA_SIG(DSA_SIG **v, unsigned char **pp, long length);
47 47
48 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); 48 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
@@ -52,14 +52,14 @@ dsa - Digital Signature Algorithm
52 DSA * d2i_DSAPublicKey(DSA **a, unsigned char **pp, long length); 52 DSA * d2i_DSAPublicKey(DSA **a, unsigned char **pp, long length);
53 DSA * d2i_DSAPrivateKey(DSA **a, unsigned char **pp, long length); 53 DSA * d2i_DSAPrivateKey(DSA **a, unsigned char **pp, long length);
54 DSA * d2i_DSAparams(DSA **a, unsigned char **pp, long length); 54 DSA * d2i_DSAparams(DSA **a, unsigned char **pp, long length);
55 int i2d_DSAPublicKey(DSA *a, unsigned char **pp); 55 int i2d_DSAPublicKey(const DSA *a, unsigned char **pp);
56 int i2d_DSAPrivateKey(DSA *a, unsigned char **pp); 56 int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);
57 int i2d_DSAparams(DSA *a,unsigned char **pp); 57 int i2d_DSAparams(const DSA *a,unsigned char **pp);
58 58
59 int DSAparams_print(BIO *bp, DSA *x); 59 int DSAparams_print(BIO *bp, const DSA *x);
60 int DSAparams_print_fp(FILE *fp, DSA *x); 60 int DSAparams_print_fp(FILE *fp, const DSA *x);
61 int DSA_print(BIO *bp, DSA *x, int off); 61 int DSA_print(BIO *bp, const DSA *x, int off);
62 int DSA_print_fp(FILE *bp, DSA *x, int off); 62 int DSA_print_fp(FILE *bp, const DSA *x, int off);
63 63
64=head1 DESCRIPTION 64=head1 DESCRIPTION
65 65
@@ -85,6 +85,14 @@ The B<DSA> structure consists of several BIGNUM components.
85 85
86In public keys, B<priv_key> is NULL. 86In public keys, B<priv_key> is NULL.
87 87
88Note that DSA keys may use non-standard B<DSA_METHOD> implementations,
89either directly or by the use of B<ENGINE> modules. In some cases (eg. an
90ENGINE providing support for hardware-embedded keys), these BIGNUM values
91will not be used by the implementation or may be used for alternative data
92storage. For this reason, applications should generally avoid using DSA
93structure elements directly and instead use API functions to query or
94modify keys.
95
88=head1 CONFORMING TO 96=head1 CONFORMING TO
89 97
90US Federal Information Processing Standard FIPS 186 (Digital Signature 98US Federal Information Processing Standard FIPS 186 (Digital Signature
diff --git a/src/lib/libssl/src/doc/crypto/evp.pod b/src/lib/libssl/src/doc/crypto/evp.pod
index edf47dbde6..b3ca14314f 100644
--- a/src/lib/libssl/src/doc/crypto/evp.pod
+++ b/src/lib/libssl/src/doc/crypto/evp.pod
@@ -24,6 +24,13 @@ functions. The B<EVP_Digest>I<...> functions provide message digests.
24 24
25Algorithms are loaded with OpenSSL_add_all_algorithms(3). 25Algorithms are loaded with OpenSSL_add_all_algorithms(3).
26 26
27All the symmetric algorithms (ciphers) and digests can be replaced by ENGINE
28modules providing alternative implementations. If ENGINE implementations of
29ciphers or digests are registered as defaults, then the various EVP functions
30will automatically use those implementations automatically in preference to
31built in software implementations. For more information, consult the engine(3)
32man page.
33
27=head1 SEE ALSO 34=head1 SEE ALSO
28 35
29L<EVP_DigestInit(3)|EVP_DigestInit(3)>, 36L<EVP_DigestInit(3)|EVP_DigestInit(3)>,
@@ -32,6 +39,7 @@ L<EVP_OpenInit(3)|EVP_OpenInit(3)>,
32L<EVP_SealInit(3)|EVP_SealInit(3)>, 39L<EVP_SealInit(3)|EVP_SealInit(3)>,
33L<EVP_SignInit(3)|EVP_SignInit(3)>, 40L<EVP_SignInit(3)|EVP_SignInit(3)>,
34L<EVP_VerifyInit(3)|EVP_VerifyInit(3)>, 41L<EVP_VerifyInit(3)|EVP_VerifyInit(3)>,
35L<OpenSSL_add_all_algorithms(3)|OpenSSL_add_all_algorithms(3)> 42L<OpenSSL_add_all_algorithms(3)|OpenSSL_add_all_algorithms(3)>,
43L<engine(3)|engine(3)>
36 44
37=cut 45=cut
diff --git a/src/lib/libssl/src/doc/crypto/rand.pod b/src/lib/libssl/src/doc/crypto/rand.pod
index 96901f109e..1c068c85b3 100644
--- a/src/lib/libssl/src/doc/crypto/rand.pod
+++ b/src/lib/libssl/src/doc/crypto/rand.pod
@@ -8,13 +8,14 @@ rand - pseudo-random number generator
8 8
9 #include <openssl/rand.h> 9 #include <openssl/rand.h>
10 10
11 int RAND_set_rand_engine(ENGINE *engine);
12
11 int RAND_bytes(unsigned char *buf, int num); 13 int RAND_bytes(unsigned char *buf, int num);
12 int RAND_pseudo_bytes(unsigned char *buf, int num); 14 int RAND_pseudo_bytes(unsigned char *buf, int num);
13 15
14 void RAND_seed(const void *buf, int num); 16 void RAND_seed(const void *buf, int num);
15 void RAND_add(const void *buf, int num, int entropy); 17 void RAND_add(const void *buf, int num, int entropy);
16 int RAND_status(void); 18 int RAND_status(void);
17 void RAND_screen(void);
18 19
19 int RAND_load_file(const char *file, long max_bytes); 20 int RAND_load_file(const char *file, long max_bytes);
20 int RAND_write_file(const char *file); 21 int RAND_write_file(const char *file);
@@ -22,14 +23,31 @@ rand - pseudo-random number generator
22 23
23 int RAND_egd(const char *path); 24 int RAND_egd(const char *path);
24 25
25 void RAND_set_rand_method(RAND_METHOD *meth); 26 void RAND_set_rand_method(const RAND_METHOD *meth);
26 RAND_METHOD *RAND_get_rand_method(void); 27 const RAND_METHOD *RAND_get_rand_method(void);
27 RAND_METHOD *RAND_SSLeay(void); 28 RAND_METHOD *RAND_SSLeay(void);
28 29
29 void RAND_cleanup(void); 30 void RAND_cleanup(void);
30 31
32 /* For Win32 only */
33 void RAND_screen(void);
34 int RAND_event(UINT, WPARAM, LPARAM);
35
31=head1 DESCRIPTION 36=head1 DESCRIPTION
32 37
38Since the introduction of the ENGINE API, the recommended way of controlling
39default implementations is by using the ENGINE API functions. The default
40B<RAND_METHOD>, as set by RAND_set_rand_method() and returned by
41RAND_get_rand_method(), is only used if no ENGINE has been set as the default
42"rand" implementation. Hence, these two functions are no longer the recommened
43way to control defaults.
44
45If an alternative B<RAND_METHOD> implementation is being used (either set
46directly or as provided by an ENGINE module), then it is entirely responsible
47for the generation and management of a cryptographically secure PRNG stream. The
48mechanisms described below relate solely to the software PRNG implementation
49built in to OpenSSL and used by default.
50
33These functions implement a cryptographically secure pseudo-random 51These functions implement a cryptographically secure pseudo-random
34number generator (PRNG). It is used by other library functions for 52number generator (PRNG). It is used by other library functions for
35example to generate random keys, and applications can use it when they 53example to generate random keys, and applications can use it when they
diff --git a/src/lib/libssl/src/doc/crypto/rsa.pod b/src/lib/libssl/src/doc/crypto/rsa.pod
index 2b93a12b65..45ac53ffc1 100644
--- a/src/lib/libssl/src/doc/crypto/rsa.pod
+++ b/src/lib/libssl/src/doc/crypto/rsa.pod
@@ -16,13 +16,17 @@ rsa - RSA public key cryptosystem
16 unsigned char *to, RSA *rsa, int padding); 16 unsigned char *to, RSA *rsa, int padding);
17 int RSA_private_decrypt(int flen, unsigned char *from, 17 int RSA_private_decrypt(int flen, unsigned char *from,
18 unsigned char *to, RSA *rsa, int padding); 18 unsigned char *to, RSA *rsa, int padding);
19 int RSA_private_encrypt(int flen, unsigned char *from,
20 unsigned char *to, RSA *rsa,int padding);
21 int RSA_public_decrypt(int flen, unsigned char *from,
22 unsigned char *to, RSA *rsa,int padding);
19 23
20 int RSA_sign(int type, unsigned char *m, unsigned int m_len, 24 int RSA_sign(int type, unsigned char *m, unsigned int m_len,
21 unsigned char *sigret, unsigned int *siglen, RSA *rsa); 25 unsigned char *sigret, unsigned int *siglen, RSA *rsa);
22 int RSA_verify(int type, unsigned char *m, unsigned int m_len, 26 int RSA_verify(int type, unsigned char *m, unsigned int m_len,
23 unsigned char *sigbuf, unsigned int siglen, RSA *rsa); 27 unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
24 28
25 int RSA_size(RSA *rsa); 29 int RSA_size(const RSA *rsa);
26 30
27 RSA *RSA_generate_key(int num, unsigned long e, 31 RSA *RSA_generate_key(int num, unsigned long e,
28 void (*callback)(int,int,void *), void *cb_arg); 32 void (*callback)(int,int,void *), void *cb_arg);
@@ -32,13 +36,13 @@ rsa - RSA public key cryptosystem
32 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx); 36 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
33 void RSA_blinding_off(RSA *rsa); 37 void RSA_blinding_off(RSA *rsa);
34 38
35 void RSA_set_default_openssl_method(RSA_METHOD *meth); 39 void RSA_set_default_method(const RSA_METHOD *meth);
36 RSA_METHOD *RSA_get_default_openssl_method(void); 40 const RSA_METHOD *RSA_get_default_method(void);
37 int RSA_set_method(RSA *rsa, ENGINE *engine); 41 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
38 RSA_METHOD *RSA_get_method(RSA *rsa); 42 const RSA_METHOD *RSA_get_method(const RSA *rsa);
39 RSA_METHOD *RSA_PKCS1_SSLeay(void); 43 RSA_METHOD *RSA_PKCS1_SSLeay(void);
40 RSA_METHOD *RSA_null_method(void); 44 RSA_METHOD *RSA_null_method(void);
41 int RSA_flags(RSA *rsa); 45 int RSA_flags(const RSA *rsa);
42 RSA *RSA_new_method(ENGINE *engine); 46 RSA *RSA_new_method(ENGINE *engine);
43 47
44 int RSA_print(BIO *bp, RSA *x, int offset); 48 int RSA_print(BIO *bp, RSA *x, int offset);
@@ -49,11 +53,6 @@ rsa - RSA public key cryptosystem
49 int RSA_set_ex_data(RSA *r,int idx,char *arg); 53 int RSA_set_ex_data(RSA *r,int idx,char *arg);
50 char *RSA_get_ex_data(RSA *r, int idx); 54 char *RSA_get_ex_data(RSA *r, int idx);
51 55
52 int RSA_private_encrypt(int flen, unsigned char *from,
53 unsigned char *to, RSA *rsa,int padding);
54 int RSA_public_decrypt(int flen, unsigned char *from,
55 unsigned char *to, RSA *rsa,int padding);
56
57 int RSA_sign_ASN1_OCTET_STRING(int dummy, unsigned char *m, 56 int RSA_sign_ASN1_OCTET_STRING(int dummy, unsigned char *m,
58 unsigned int m_len, unsigned char *sigret, unsigned int *siglen, 57 unsigned int m_len, unsigned char *sigret, unsigned int *siglen,
59 RSA *rsa); 58 RSA *rsa);
@@ -90,6 +89,14 @@ B<p>, B<q>, B<dmp1>, B<dmq1> and B<iqmp> may be B<NULL> in private
90keys, but the RSA operations are much faster when these values are 89keys, but the RSA operations are much faster when these values are
91available. 90available.
92 91
92Note that RSA keys may use non-standard B<RSA_METHOD> implementations,
93either directly or by the use of B<ENGINE> modules. In some cases (eg. an
94ENGINE providing support for hardware-embedded keys), these BIGNUM values
95will not be used by the implementation or may be used for alternative data
96storage. For this reason, applications should generally avoid using RSA
97structure elements directly and instead use API functions to query or
98modify keys.
99
93=head1 CONFORMING TO 100=head1 CONFORMING TO
94 101
95SSL, PKCS #1 v2.0 102SSL, PKCS #1 v2.0
@@ -101,7 +108,7 @@ RSA was covered by a US patent which expired in September 2000.
101=head1 SEE ALSO 108=head1 SEE ALSO
102 109
103L<rsa(1)|rsa(1)>, L<bn(3)|bn(3)>, L<dsa(3)|dsa(3)>, L<dh(3)|dh(3)>, 110L<rsa(1)|rsa(1)>, L<bn(3)|bn(3)>, L<dsa(3)|dsa(3)>, L<dh(3)|dh(3)>,
104L<rand(3)|rand(3)>, L<RSA_new(3)|RSA_new(3)>, 111L<rand(3)|rand(3)>, L<engine(3)|engine(3)>, L<RSA_new(3)|RSA_new(3)>,
105L<RSA_public_encrypt(3)|RSA_public_encrypt(3)>, 112L<RSA_public_encrypt(3)|RSA_public_encrypt(3)>,
106L<RSA_sign(3)|RSA_sign(3)>, L<RSA_size(3)|RSA_size(3)>, 113L<RSA_sign(3)|RSA_sign(3)>, L<RSA_size(3)|RSA_size(3)>,
107L<RSA_generate_key(3)|RSA_generate_key(3)>, 114L<RSA_generate_key(3)|RSA_generate_key(3)>,
diff --git a/src/lib/libssl/src/doc/openssl.txt b/src/lib/libssl/src/doc/openssl.txt
index 5da519e7e4..432a17b66c 100644
--- a/src/lib/libssl/src/doc/openssl.txt
+++ b/src/lib/libssl/src/doc/openssl.txt
@@ -344,7 +344,7 @@ the extension.
344 344
345Examples: 345Examples:
346 346
347subjectAltName=email:copy,email:my@other.address,URL:http://my.url.here/ 347subjectAltName=email:copy,email:my@other.address,URI:http://my.url.here/
348subjectAltName=email:my@other.address,RID:1.2.3.4 348subjectAltName=email:my@other.address,RID:1.2.3.4
349 349
350Issuer Alternative Name. 350Issuer Alternative Name.
diff --git a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_msg_callback.pod b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_msg_callback.pod
index a423932d0a..0015e6ea79 100644
--- a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_msg_callback.pod
+++ b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_msg_callback.pod
@@ -69,6 +69,8 @@ The B<SSL> object that received or sent the message.
69The user-defined argument optionally defined by 69The user-defined argument optionally defined by
70SSL_CTX_set_msg_callback_arg() or SSL_set_msg_callback_arg(). 70SSL_CTX_set_msg_callback_arg() or SSL_set_msg_callback_arg().
71 71
72=back
73
72=head1 NOTES 74=head1 NOTES
73 75
74Protocol messages are passed to the callback function after decryption 76Protocol messages are passed to the callback function after decryption
diff --git a/src/lib/libssl/src/ssl/Makefile.ssl b/src/lib/libssl/src/ssl/Makefile.ssl
index 3f6288696c..23fcab1a3a 100644
--- a/src/lib/libssl/src/ssl/Makefile.ssl
+++ b/src/lib/libssl/src/ssl/Makefile.ssl
@@ -65,7 +65,7 @@ lib: $(LIBOBJ)
65 65
66shared: 66shared:
67 if [ -n "$(SHARED_LIBS)" ]; then \ 67 if [ -n "$(SHARED_LIBS)" ]; then \
68 (cd ..; make $(SHARED_LIB)); \ 68 (cd ..; $(MAKE) $(SHARED_LIB)); \
69 fi 69 fi
70 70
71files: 71files:
diff --git a/src/lib/libssl/src/ssl/s2_clnt.c b/src/lib/libssl/src/ssl/s2_clnt.c
index a5beeb732e..b4ee0bfc31 100644
--- a/src/lib/libssl/src/ssl/s2_clnt.c
+++ b/src/lib/libssl/src/ssl/s2_clnt.c
@@ -535,7 +535,12 @@ static int get_server_hello(SSL *s)
535 } 535 }
536 536
537 s->s2->conn_id_length=s->s2->tmp.conn_id_length; 537 s->s2->conn_id_length=s->s2->tmp.conn_id_length;
538 die(s->s2->conn_id_length <= sizeof s->s2->conn_id); 538 if (s->s2->conn_id_length > sizeof s->s2->conn_id)
539 {
540 ssl2_return_error(s, SSL2_PE_UNDEFINED_ERROR);
541 SSLerr(SSL_F_GET_SERVER_HELLO, SSL_R_SSL2_CONNECTION_ID_TOO_LONG);
542 return -1;
543 }
539 memcpy(s->s2->conn_id,p,s->s2->tmp.conn_id_length); 544 memcpy(s->s2->conn_id,p,s->s2->tmp.conn_id_length);
540 return(1); 545 return(1);
541 } 546 }
@@ -637,7 +642,12 @@ static int client_master_key(SSL *s)
637 /* make key_arg data */ 642 /* make key_arg data */
638 i=EVP_CIPHER_iv_length(c); 643 i=EVP_CIPHER_iv_length(c);
639 sess->key_arg_length=i; 644 sess->key_arg_length=i;
640 die(i <= SSL_MAX_KEY_ARG_LENGTH); 645 if (i > SSL_MAX_KEY_ARG_LENGTH)
646 {
647 ssl2_return_error(s, SSL2_PE_UNDEFINED_ERROR);
648 SSLerr(SSL_F_CLIENT_MASTER_KEY, ERR_R_INTERNAL_ERROR);
649 return -1;
650 }
641 if (i > 0) RAND_pseudo_bytes(sess->key_arg,i); 651 if (i > 0) RAND_pseudo_bytes(sess->key_arg,i);
642 652
643 /* make a master key */ 653 /* make a master key */
@@ -645,7 +655,12 @@ static int client_master_key(SSL *s)
645 sess->master_key_length=i; 655 sess->master_key_length=i;
646 if (i > 0) 656 if (i > 0)
647 { 657 {
648 die(i <= sizeof sess->master_key); 658 if (i > sizeof sess->master_key)
659 {
660 ssl2_return_error(s, SSL2_PE_UNDEFINED_ERROR);
661 SSLerr(SSL_F_CLIENT_MASTER_KEY, ERR_R_INTERNAL_ERROR);
662 return -1;
663 }
649 if (RAND_bytes(sess->master_key,i) <= 0) 664 if (RAND_bytes(sess->master_key,i) <= 0)
650 { 665 {
651 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR); 666 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
@@ -689,7 +704,12 @@ static int client_master_key(SSL *s)
689 d+=enc; 704 d+=enc;
690 karg=sess->key_arg_length; 705 karg=sess->key_arg_length;
691 s2n(karg,p); /* key arg size */ 706 s2n(karg,p); /* key arg size */
692 die(karg <= sizeof sess->key_arg); 707 if (karg > sizeof sess->key_arg)
708 {
709 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
710 SSLerr(SSL_F_CLIENT_MASTER_KEY, ERR_R_INTERNAL_ERROR);
711 return -1;
712 }
693 memcpy(d,sess->key_arg,(unsigned int)karg); 713 memcpy(d,sess->key_arg,(unsigned int)karg);
694 d+=karg; 714 d+=karg;
695 715
@@ -710,7 +730,11 @@ static int client_finished(SSL *s)
710 { 730 {
711 p=(unsigned char *)s->init_buf->data; 731 p=(unsigned char *)s->init_buf->data;
712 *(p++)=SSL2_MT_CLIENT_FINISHED; 732 *(p++)=SSL2_MT_CLIENT_FINISHED;
713 die(s->s2->conn_id_length <= sizeof s->s2->conn_id); 733 if (s->s2->conn_id_length > sizeof s->s2->conn_id)
734 {
735 SSLerr(SSL_F_CLIENT_FINISHED, ERR_R_INTERNAL_ERROR);
736 return -1;
737 }
714 memcpy(p,s->s2->conn_id,(unsigned int)s->s2->conn_id_length); 738 memcpy(p,s->s2->conn_id,(unsigned int)s->s2->conn_id_length);
715 739
716 s->state=SSL2_ST_SEND_CLIENT_FINISHED_B; 740 s->state=SSL2_ST_SEND_CLIENT_FINISHED_B;
@@ -983,10 +1007,9 @@ static int get_server_finished(SSL *s)
983 { 1007 {
984 if (!(s->options & SSL_OP_MICROSOFT_SESS_ID_BUG)) 1008 if (!(s->options & SSL_OP_MICROSOFT_SESS_ID_BUG))
985 { 1009 {
986 die(s->session->session_id_length 1010 if ((s->session->session_id_length > sizeof s->session->session_id)
987 <= sizeof s->session->session_id); 1011 || (0 != memcmp(buf, s->session->session_id,
988 if (memcmp(buf,s->session->session_id, 1012 (unsigned int)s->session->session_id_length)))
989 (unsigned int)s->session->session_id_length) != 0)
990 { 1013 {
991 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR); 1014 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
992 SSLerr(SSL_F_GET_SERVER_FINISHED,SSL_R_SSL_SESSION_ID_IS_DIFFERENT); 1015 SSLerr(SSL_F_GET_SERVER_FINISHED,SSL_R_SSL_SESSION_ID_IS_DIFFERENT);
diff --git a/src/lib/libssl/src/ssl/s2_enc.c b/src/lib/libssl/src/ssl/s2_enc.c
index a28e747d2d..690252e3d3 100644
--- a/src/lib/libssl/src/ssl/s2_enc.c
+++ b/src/lib/libssl/src/ssl/s2_enc.c
@@ -96,7 +96,8 @@ int ssl2_enc_init(SSL *s, int client)
96 num=c->key_len; 96 num=c->key_len;
97 s->s2->key_material_length=num*2; 97 s->s2->key_material_length=num*2;
98 98
99 ssl2_generate_key_material(s); 99 if (ssl2_generate_key_material(s) <= 0)
100 return 0;
100 101
101 EVP_EncryptInit_ex(ws,c,NULL,&(s->s2->key_material[(client)?num:0]), 102 EVP_EncryptInit_ex(ws,c,NULL,&(s->s2->key_material[(client)?num:0]),
102 s->session->key_arg); 103 s->session->key_arg);
diff --git a/src/lib/libssl/src/ssl/s2_lib.c b/src/lib/libssl/src/ssl/s2_lib.c
index 247f4603a6..df2ea875de 100644
--- a/src/lib/libssl/src/ssl/s2_lib.c
+++ b/src/lib/libssl/src/ssl/s2_lib.c
@@ -63,7 +63,6 @@
63#include <openssl/objects.h> 63#include <openssl/objects.h>
64#include <openssl/evp.h> 64#include <openssl/evp.h>
65#include <openssl/md5.h> 65#include <openssl/md5.h>
66#include "ssl_locl.h"
67 66
68static long ssl2_default_timeout(void ); 67static long ssl2_default_timeout(void );
69const char *ssl2_version_str="SSLv2" OPENSSL_VERSION_PTEXT; 68const char *ssl2_version_str="SSLv2" OPENSSL_VERSION_PTEXT;
@@ -418,12 +417,15 @@ int ssl2_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p)
418 return(3); 417 return(3);
419 } 418 }
420 419
421void ssl2_generate_key_material(SSL *s) 420int ssl2_generate_key_material(SSL *s)
422 { 421 {
423 unsigned int i; 422 unsigned int i;
424 EVP_MD_CTX ctx; 423 EVP_MD_CTX ctx;
425 unsigned char *km; 424 unsigned char *km;
426 unsigned char c='0'; 425 unsigned char c='0';
426 const EVP_MD *md5;
427
428 md5 = EVP_md5();
427 429
428#ifdef CHARSET_EBCDIC 430#ifdef CHARSET_EBCDIC
429 c = os_toascii['0']; /* Must be an ASCII '0', not EBCDIC '0', 431 c = os_toascii['0']; /* Must be an ASCII '0', not EBCDIC '0',
@@ -431,23 +433,35 @@ void ssl2_generate_key_material(SSL *s)
431#endif 433#endif
432 EVP_MD_CTX_init(&ctx); 434 EVP_MD_CTX_init(&ctx);
433 km=s->s2->key_material; 435 km=s->s2->key_material;
434 die(s->s2->key_material_length <= sizeof s->s2->key_material); 436
435 for (i=0; i<s->s2->key_material_length; i+=MD5_DIGEST_LENGTH) 437 if (s->session->master_key_length < 0 || s->session->master_key_length > sizeof s->session->master_key)
438 {
439 SSLerr(SSL_F_SSL2_GENERATE_KEY_MATERIAL, ERR_R_INTERNAL_ERROR);
440 return 0;
441 }
442
443 for (i=0; i<s->s2->key_material_length; i += EVP_MD_size(md5))
436 { 444 {
437 EVP_DigestInit_ex(&ctx,EVP_md5(), NULL); 445 if (((km - s->s2->key_material) + EVP_MD_size(md5)) > sizeof s->s2->key_material)
446 {
447 /* EVP_DigestFinal_ex() below would write beyond buffer */
448 SSLerr(SSL_F_SSL2_GENERATE_KEY_MATERIAL, ERR_R_INTERNAL_ERROR);
449 return 0;
450 }
451
452 EVP_DigestInit_ex(&ctx, md5, NULL);
438 453
439 die(s->session->master_key_length >= 0
440 && s->session->master_key_length
441 < sizeof s->session->master_key);
442 EVP_DigestUpdate(&ctx,s->session->master_key,s->session->master_key_length); 454 EVP_DigestUpdate(&ctx,s->session->master_key,s->session->master_key_length);
443 EVP_DigestUpdate(&ctx,&c,1); 455 EVP_DigestUpdate(&ctx,&c,1);
444 c++; 456 c++;
445 EVP_DigestUpdate(&ctx,s->s2->challenge,s->s2->challenge_length); 457 EVP_DigestUpdate(&ctx,s->s2->challenge,s->s2->challenge_length);
446 EVP_DigestUpdate(&ctx,s->s2->conn_id,s->s2->conn_id_length); 458 EVP_DigestUpdate(&ctx,s->s2->conn_id,s->s2->conn_id_length);
447 EVP_DigestFinal_ex(&ctx,km,NULL); 459 EVP_DigestFinal_ex(&ctx,km,NULL);
448 km+=MD5_DIGEST_LENGTH; 460 km += EVP_MD_size(md5);
449 } 461 }
462
450 EVP_MD_CTX_cleanup(&ctx); 463 EVP_MD_CTX_cleanup(&ctx);
464 return 1;
451 } 465 }
452 466
453void ssl2_return_error(SSL *s, int err) 467void ssl2_return_error(SSL *s, int err)
@@ -472,10 +486,14 @@ void ssl2_write_error(SSL *s)
472 buf[2]=(s->error_code)&0xff; 486 buf[2]=(s->error_code)&0xff;
473 487
474/* state=s->rwstate;*/ 488/* state=s->rwstate;*/
475 error=s->error; 489
490 error=s->error; /* number of bytes left to write */
476 s->error=0; 491 s->error=0;
477 die(error >= 0 && error <= 3); 492 if (error < 0 || error > sizeof buf) /* can't happen */
493 return;
494
478 i=ssl2_write(s,&(buf[3-error]),error); 495 i=ssl2_write(s,&(buf[3-error]),error);
496
479/* if (i == error) s->rwstate=state; */ 497/* if (i == error) s->rwstate=state; */
480 498
481 if (i < 0) 499 if (i < 0)
diff --git a/src/lib/libssl/src/ssl/s2_srvr.c b/src/lib/libssl/src/ssl/s2_srvr.c
index a83605a1b7..f79c9a1651 100644
--- a/src/lib/libssl/src/ssl/s2_srvr.c
+++ b/src/lib/libssl/src/ssl/s2_srvr.c
@@ -116,7 +116,6 @@
116#include <openssl/rand.h> 116#include <openssl/rand.h>
117#include <openssl/objects.h> 117#include <openssl/objects.h>
118#include <openssl/evp.h> 118#include <openssl/evp.h>
119#include "ssl_locl.h"
120 119
121static SSL_METHOD *ssl2_get_server_method(int ver); 120static SSL_METHOD *ssl2_get_server_method(int ver);
122static int get_client_master_key(SSL *s); 121static int get_client_master_key(SSL *s);
@@ -399,8 +398,7 @@ static int get_client_master_key(SSL *s)
399 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY,SSL_R_READ_WRONG_PACKET_TYPE); 398 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY,SSL_R_READ_WRONG_PACKET_TYPE);
400 } 399 }
401 else 400 else
402 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY, 401 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY, SSL_R_PEER_ERROR);
403 SSL_R_PEER_ERROR);
404 return(-1); 402 return(-1);
405 } 403 }
406 404
@@ -408,8 +406,7 @@ static int get_client_master_key(SSL *s)
408 if (cp == NULL) 406 if (cp == NULL)
409 { 407 {
410 ssl2_return_error(s,SSL2_PE_NO_CIPHER); 408 ssl2_return_error(s,SSL2_PE_NO_CIPHER);
411 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY, 409 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY, SSL_R_NO_CIPHER_MATCH);
412 SSL_R_NO_CIPHER_MATCH);
413 return(-1); 410 return(-1);
414 } 411 }
415 s->session->cipher= cp; 412 s->session->cipher= cp;
@@ -420,8 +417,8 @@ static int get_client_master_key(SSL *s)
420 n2s(p,i); s->session->key_arg_length=i; 417 n2s(p,i); s->session->key_arg_length=i;
421 if(s->session->key_arg_length > SSL_MAX_KEY_ARG_LENGTH) 418 if(s->session->key_arg_length > SSL_MAX_KEY_ARG_LENGTH)
422 { 419 {
423 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY, 420 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
424 SSL_R_KEY_ARG_TOO_LONG); 421 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY, SSL_R_KEY_ARG_TOO_LONG);
425 return -1; 422 return -1;
426 } 423 }
427 s->state=SSL2_ST_GET_CLIENT_MASTER_KEY_B; 424 s->state=SSL2_ST_GET_CLIENT_MASTER_KEY_B;
@@ -429,11 +426,17 @@ static int get_client_master_key(SSL *s)
429 426
430 /* SSL2_ST_GET_CLIENT_MASTER_KEY_B */ 427 /* SSL2_ST_GET_CLIENT_MASTER_KEY_B */
431 p=(unsigned char *)s->init_buf->data; 428 p=(unsigned char *)s->init_buf->data;
432 die(s->init_buf->length >= SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER); 429 if (s->init_buf->length < SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER)
430 {
431 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
432 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY, ERR_R_INTERNAL_ERROR);
433 return -1;
434 }
433 keya=s->session->key_arg_length; 435 keya=s->session->key_arg_length;
434 len = 10 + (unsigned long)s->s2->tmp.clear + (unsigned long)s->s2->tmp.enc + (unsigned long)keya; 436 len = 10 + (unsigned long)s->s2->tmp.clear + (unsigned long)s->s2->tmp.enc + (unsigned long)keya;
435 if (len > SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER) 437 if (len > SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER)
436 { 438 {
439 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
437 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY,SSL_R_MESSAGE_TOO_LONG); 440 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY,SSL_R_MESSAGE_TOO_LONG);
438 return -1; 441 return -1;
439 } 442 }
@@ -512,7 +515,13 @@ static int get_client_master_key(SSL *s)
512#endif 515#endif
513 516
514 if (is_export) i+=s->s2->tmp.clear; 517 if (is_export) i+=s->s2->tmp.clear;
515 die(i <= SSL_MAX_MASTER_KEY_LENGTH); 518
519 if (i > SSL_MAX_MASTER_KEY_LENGTH)
520 {
521 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
522 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY, ERR_R_INTERNAL_ERROR);
523 return -1;
524 }
516 s->session->master_key_length=i; 525 s->session->master_key_length=i;
517 memcpy(s->session->master_key,p,(unsigned int)i); 526 memcpy(s->session->master_key,p,(unsigned int)i);
518 return(1); 527 return(1);
@@ -563,6 +572,7 @@ static int get_client_hello(SSL *s)
563 if ( (i < SSL2_MIN_CHALLENGE_LENGTH) || 572 if ( (i < SSL2_MIN_CHALLENGE_LENGTH) ||
564 (i > SSL2_MAX_CHALLENGE_LENGTH)) 573 (i > SSL2_MAX_CHALLENGE_LENGTH))
565 { 574 {
575 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
566 SSLerr(SSL_F_GET_CLIENT_HELLO,SSL_R_INVALID_CHALLENGE_LENGTH); 576 SSLerr(SSL_F_GET_CLIENT_HELLO,SSL_R_INVALID_CHALLENGE_LENGTH);
567 return(-1); 577 return(-1);
568 } 578 }
@@ -574,6 +584,7 @@ static int get_client_hello(SSL *s)
574 len = 9 + (unsigned long)s->s2->tmp.cipher_spec_length + (unsigned long)s->s2->challenge_length + (unsigned long)s->s2->tmp.session_id_length; 584 len = 9 + (unsigned long)s->s2->tmp.cipher_spec_length + (unsigned long)s->s2->challenge_length + (unsigned long)s->s2->tmp.session_id_length;
575 if (len > SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER) 585 if (len > SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER)
576 { 586 {
587 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
577 SSLerr(SSL_F_GET_CLIENT_HELLO,SSL_R_MESSAGE_TOO_LONG); 588 SSLerr(SSL_F_GET_CLIENT_HELLO,SSL_R_MESSAGE_TOO_LONG);
578 return -1; 589 return -1;
579 } 590 }
@@ -679,7 +690,12 @@ static int get_client_hello(SSL *s)
679 p+=s->s2->tmp.session_id_length; 690 p+=s->s2->tmp.session_id_length;
680 691
681 /* challenge */ 692 /* challenge */
682 die(s->s2->challenge_length <= sizeof s->s2->challenge); 693 if (s->s2->challenge_length > sizeof s->s2->challenge)
694 {
695 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
696 SSLerr(SSL_F_GET_CLIENT_HELLO, ERR_R_INTERNAL_ERROR);
697 return -1;
698 }
683 memcpy(s->s2->challenge,p,(unsigned int)s->s2->challenge_length); 699 memcpy(s->s2->challenge,p,(unsigned int)s->s2->challenge_length);
684 return(1); 700 return(1);
685mem_err: 701mem_err:
@@ -836,7 +852,12 @@ static int get_client_finished(SSL *s)
836 } 852 }
837 853
838 /* SSL2_ST_GET_CLIENT_FINISHED_B */ 854 /* SSL2_ST_GET_CLIENT_FINISHED_B */
839 die(s->s2->conn_id_length <= sizeof s->s2->conn_id); 855 if (s->s2->conn_id_length > sizeof s->s2->conn_id)
856 {
857 ssl2_return_error(s,SSL2_PE_UNDEFINED_ERROR);
858 SSLerr(SSL_F_GET_CLIENT_FINISHED, ERR_R_INTERNAL_ERROR);
859 return -1;
860 }
840 len = 1 + (unsigned long)s->s2->conn_id_length; 861 len = 1 + (unsigned long)s->s2->conn_id_length;
841 n = (int)len - s->init_num; 862 n = (int)len - s->init_num;
842 i = ssl2_read(s,(char *)&(p[s->init_num]),n); 863 i = ssl2_read(s,(char *)&(p[s->init_num]),n);
@@ -864,7 +885,11 @@ static int server_verify(SSL *s)
864 { 885 {
865 p=(unsigned char *)s->init_buf->data; 886 p=(unsigned char *)s->init_buf->data;
866 *(p++)=SSL2_MT_SERVER_VERIFY; 887 *(p++)=SSL2_MT_SERVER_VERIFY;
867 die(s->s2->challenge_length <= sizeof s->s2->challenge); 888 if (s->s2->challenge_length > sizeof s->s2->challenge)
889 {
890 SSLerr(SSL_F_SERVER_VERIFY, ERR_R_INTERNAL_ERROR);
891 return -1;
892 }
868 memcpy(p,s->s2->challenge,(unsigned int)s->s2->challenge_length); 893 memcpy(p,s->s2->challenge,(unsigned int)s->s2->challenge_length);
869 /* p+=s->s2->challenge_length; */ 894 /* p+=s->s2->challenge_length; */
870 895
@@ -884,10 +909,12 @@ static int server_finish(SSL *s)
884 p=(unsigned char *)s->init_buf->data; 909 p=(unsigned char *)s->init_buf->data;
885 *(p++)=SSL2_MT_SERVER_FINISHED; 910 *(p++)=SSL2_MT_SERVER_FINISHED;
886 911
887 die(s->session->session_id_length 912 if (s->session->session_id_length > sizeof s->session->session_id)
888 <= sizeof s->session->session_id); 913 {
889 memcpy(p,s->session->session_id, 914 SSLerr(SSL_F_SERVER_FINISH, ERR_R_INTERNAL_ERROR);
890 (unsigned int)s->session->session_id_length); 915 return -1;
916 }
917 memcpy(p,s->session->session_id, (unsigned int)s->session->session_id_length);
891 /* p+=s->session->session_id_length; */ 918 /* p+=s->session->session_id_length; */
892 919
893 s->state=SSL2_ST_SEND_SERVER_FINISHED_B; 920 s->state=SSL2_ST_SEND_SERVER_FINISHED_B;
@@ -1004,7 +1031,7 @@ static int request_certificate(SSL *s)
1004 len = 6 + (unsigned long)s->s2->tmp.clen + (unsigned long)s->s2->tmp.rlen; 1031 len = 6 + (unsigned long)s->s2->tmp.clen + (unsigned long)s->s2->tmp.rlen;
1005 if (len > SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER) 1032 if (len > SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER)
1006 { 1033 {
1007 SSLerr(SSL_F_GET_CLIENT_MASTER_KEY,SSL_R_MESSAGE_TOO_LONG); 1034 SSLerr(SSL_F_REQUEST_CERTIFICATE,SSL_R_MESSAGE_TOO_LONG);
1008 goto end; 1035 goto end;
1009 } 1036 }
1010 j = (int)len - s->init_num; 1037 j = (int)len - s->init_num;
diff --git a/src/lib/libssl/src/ssl/s3_clnt.c b/src/lib/libssl/src/ssl/s3_clnt.c
index 27df7a5a64..9ce5373b51 100644
--- a/src/lib/libssl/src/ssl/s3_clnt.c
+++ b/src/lib/libssl/src/ssl/s3_clnt.c
@@ -545,7 +545,11 @@ static int ssl3_client_hello(SSL *s)
545 *(p++)=i; 545 *(p++)=i;
546 if (i != 0) 546 if (i != 0)
547 { 547 {
548 die(i <= sizeof s->session->session_id); 548 if (i > sizeof s->session->session_id)
549 {
550 SSLerr(SSL_F_SSL3_CLIENT_HELLO, ERR_R_INTERNAL_ERROR);
551 goto err;
552 }
549 memcpy(p,s->session->session_id,i); 553 memcpy(p,s->session->session_id,i);
550 p+=i; 554 p+=i;
551 } 555 }
@@ -1597,7 +1601,11 @@ static int ssl3_send_client_key_exchange(SSL *s)
1597 SSL_MAX_MASTER_KEY_LENGTH); 1601 SSL_MAX_MASTER_KEY_LENGTH);
1598 EVP_EncryptFinal_ex(&ciph_ctx,&(epms[outl]),&padl); 1602 EVP_EncryptFinal_ex(&ciph_ctx,&(epms[outl]),&padl);
1599 outl += padl; 1603 outl += padl;
1600 die(outl <= sizeof epms); 1604 if (outl > sizeof epms)
1605 {
1606 SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE, ERR_R_INTERNAL_ERROR);
1607 goto err;
1608 }
1601 EVP_CIPHER_CTX_cleanup(&ciph_ctx); 1609 EVP_CIPHER_CTX_cleanup(&ciph_ctx);
1602 1610
1603 /* KerberosWrapper.EncryptedPreMasterSecret */ 1611 /* KerberosWrapper.EncryptedPreMasterSecret */
diff --git a/src/lib/libssl/src/ssl/s3_srvr.c b/src/lib/libssl/src/ssl/s3_srvr.c
index dfffed7165..2e1b0eb892 100644
--- a/src/lib/libssl/src/ssl/s3_srvr.c
+++ b/src/lib/libssl/src/ssl/s3_srvr.c
@@ -966,7 +966,11 @@ static int ssl3_send_server_hello(SSL *s)
966 s->session->session_id_length=0; 966 s->session->session_id_length=0;
967 967
968 sl=s->session->session_id_length; 968 sl=s->session->session_id_length;
969 die(sl <= sizeof s->session->session_id); 969 if (sl > sizeof s->session->session_id)
970 {
971 SSLerr(SSL_F_SSL3_SEND_SERVER_HELLO, ERR_R_INTERNAL_ERROR);
972 return -1;
973 }
970 *(p++)=sl; 974 *(p++)=sl;
971 memcpy(p,s->session->session_id,sl); 975 memcpy(p,s->session->session_id,sl);
972 p+=sl; 976 p+=sl;
diff --git a/src/lib/libssl/src/ssl/ssl-lib.com b/src/lib/libssl/src/ssl/ssl-lib.com
index 1f1921e162..d6829a8d64 100644
--- a/src/lib/libssl/src/ssl/ssl-lib.com
+++ b/src/lib/libssl/src/ssl/ssl-lib.com
@@ -1067,7 +1067,7 @@ $ ENDIF
1067$! 1067$!
1068$! Show user the result 1068$! Show user the result
1069$! 1069$!
1070$ WRITE SYS$OUTPUT "Main Compiling Command: ",CC 1070$ WRITE/SYMBOL SYS$OUTPUT "Main Compiling Command: ",CC
1071$! 1071$!
1072$! Else The User Entered An Invalid Arguement. 1072$! Else The User Entered An Invalid Arguement.
1073$! 1073$!
diff --git a/src/lib/libssl/src/ssl/ssl.h b/src/lib/libssl/src/ssl/ssl.h
index d9949e8eb2..e9d1e896d7 100644
--- a/src/lib/libssl/src/ssl/ssl.h
+++ b/src/lib/libssl/src/ssl/ssl.h
@@ -1462,6 +1462,7 @@ void ERR_load_SSL_strings(void);
1462 1462
1463/* Function codes. */ 1463/* Function codes. */
1464#define SSL_F_CLIENT_CERTIFICATE 100 1464#define SSL_F_CLIENT_CERTIFICATE 100
1465#define SSL_F_CLIENT_FINISHED 238
1465#define SSL_F_CLIENT_HELLO 101 1466#define SSL_F_CLIENT_HELLO 101
1466#define SSL_F_CLIENT_MASTER_KEY 102 1467#define SSL_F_CLIENT_MASTER_KEY 102
1467#define SSL_F_D2I_SSL_SESSION 103 1468#define SSL_F_D2I_SSL_SESSION 103
@@ -1475,7 +1476,9 @@ void ERR_load_SSL_strings(void);
1475#define SSL_F_I2D_SSL_SESSION 111 1476#define SSL_F_I2D_SSL_SESSION 111
1476#define SSL_F_READ_N 112 1477#define SSL_F_READ_N 112
1477#define SSL_F_REQUEST_CERTIFICATE 113 1478#define SSL_F_REQUEST_CERTIFICATE 113
1479#define SSL_F_SERVER_FINISH 239
1478#define SSL_F_SERVER_HELLO 114 1480#define SSL_F_SERVER_HELLO 114
1481#define SSL_F_SERVER_VERIFY 240
1479#define SSL_F_SSL23_ACCEPT 115 1482#define SSL_F_SSL23_ACCEPT 115
1480#define SSL_F_SSL23_CLIENT_HELLO 116 1483#define SSL_F_SSL23_CLIENT_HELLO 116
1481#define SSL_F_SSL23_CONNECT 117 1484#define SSL_F_SSL23_CONNECT 117
@@ -1487,6 +1490,7 @@ void ERR_load_SSL_strings(void);
1487#define SSL_F_SSL2_ACCEPT 122 1490#define SSL_F_SSL2_ACCEPT 122
1488#define SSL_F_SSL2_CONNECT 123 1491#define SSL_F_SSL2_CONNECT 123
1489#define SSL_F_SSL2_ENC_INIT 124 1492#define SSL_F_SSL2_ENC_INIT 124
1493#define SSL_F_SSL2_GENERATE_KEY_MATERIAL 241
1490#define SSL_F_SSL2_PEEK 234 1494#define SSL_F_SSL2_PEEK 234
1491#define SSL_F_SSL2_READ 125 1495#define SSL_F_SSL2_READ 125
1492#define SSL_F_SSL2_READ_INTERNAL 236 1496#define SSL_F_SSL2_READ_INTERNAL 236
@@ -1523,6 +1527,7 @@ void ERR_load_SSL_strings(void);
1523#define SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE 152 1527#define SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE 152
1524#define SSL_F_SSL3_SEND_CLIENT_VERIFY 153 1528#define SSL_F_SSL3_SEND_CLIENT_VERIFY 153
1525#define SSL_F_SSL3_SEND_SERVER_CERTIFICATE 154 1529#define SSL_F_SSL3_SEND_SERVER_CERTIFICATE 154
1530#define SSL_F_SSL3_SEND_SERVER_HELLO 242
1526#define SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE 155 1531#define SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE 155
1527#define SSL_F_SSL3_SETUP_BUFFERS 156 1532#define SSL_F_SSL3_SETUP_BUFFERS 156
1528#define SSL_F_SSL3_SETUP_KEY_BLOCK 157 1533#define SSL_F_SSL3_SETUP_KEY_BLOCK 157
@@ -1747,6 +1752,7 @@ void ERR_load_SSL_strings(void);
1747#define SSL_R_SHORT_READ 219 1752#define SSL_R_SHORT_READ 219
1748#define SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE 220 1753#define SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE 220
1749#define SSL_R_SSL23_DOING_SESSION_ID_REUSE 221 1754#define SSL_R_SSL23_DOING_SESSION_ID_REUSE 221
1755#define SSL_R_SSL2_CONNECTION_ID_TOO_LONG 1114
1750#define SSL_R_SSL3_SESSION_ID_TOO_LONG 1113 1756#define SSL_R_SSL3_SESSION_ID_TOO_LONG 1113
1751#define SSL_R_SSL3_SESSION_ID_TOO_SHORT 222 1757#define SSL_R_SSL3_SESSION_ID_TOO_SHORT 222
1752#define SSL_R_SSLV3_ALERT_BAD_CERTIFICATE 1042 1758#define SSL_R_SSLV3_ALERT_BAD_CERTIFICATE 1042
diff --git a/src/lib/libssl/src/ssl/ssl_asn1.c b/src/lib/libssl/src/ssl/ssl_asn1.c
index c550747947..23bfe44e21 100644
--- a/src/lib/libssl/src/ssl/ssl_asn1.c
+++ b/src/lib/libssl/src/ssl/ssl_asn1.c
@@ -57,8 +57,8 @@
57 */ 57 */
58 58
59#include <stdio.h> 59#include <stdio.h>
60#include "ssl_locl.h"
61#include <stdlib.h> 60#include <stdlib.h>
61#include "ssl_locl.h"
62#include <openssl/asn1_mac.h> 62#include <openssl/asn1_mac.h>
63#include <openssl/objects.h> 63#include <openssl/objects.h>
64#include <openssl/x509.h> 64#include <openssl/x509.h>
@@ -293,10 +293,11 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, unsigned char **pp,
293 i=SSL2_MAX_SSL_SESSION_ID_LENGTH; 293 i=SSL2_MAX_SSL_SESSION_ID_LENGTH;
294 294
295 if (os.length > i) 295 if (os.length > i)
296 os.length=i; 296 os.length = i;
297 if (os.length > sizeof ret->session_id) /* can't happen */
298 os.length = sizeof ret->session_id;
297 299
298 ret->session_id_length=os.length; 300 ret->session_id_length=os.length;
299 die(os.length <= sizeof ret->session_id);
300 memcpy(ret->session_id,os.data,os.length); 301 memcpy(ret->session_id,os.data,os.length);
301 302
302 M_ASN1_D2I_get(osp,d2i_ASN1_OCTET_STRING); 303 M_ASN1_D2I_get(osp,d2i_ASN1_OCTET_STRING);
diff --git a/src/lib/libssl/src/ssl/ssl_err.c b/src/lib/libssl/src/ssl/ssl_err.c
index 0cad32c855..7067a745f3 100644
--- a/src/lib/libssl/src/ssl/ssl_err.c
+++ b/src/lib/libssl/src/ssl/ssl_err.c
@@ -67,6 +67,7 @@
67static ERR_STRING_DATA SSL_str_functs[]= 67static ERR_STRING_DATA SSL_str_functs[]=
68 { 68 {
69{ERR_PACK(0,SSL_F_CLIENT_CERTIFICATE,0), "CLIENT_CERTIFICATE"}, 69{ERR_PACK(0,SSL_F_CLIENT_CERTIFICATE,0), "CLIENT_CERTIFICATE"},
70{ERR_PACK(0,SSL_F_CLIENT_FINISHED,0), "CLIENT_FINISHED"},
70{ERR_PACK(0,SSL_F_CLIENT_HELLO,0), "CLIENT_HELLO"}, 71{ERR_PACK(0,SSL_F_CLIENT_HELLO,0), "CLIENT_HELLO"},
71{ERR_PACK(0,SSL_F_CLIENT_MASTER_KEY,0), "CLIENT_MASTER_KEY"}, 72{ERR_PACK(0,SSL_F_CLIENT_MASTER_KEY,0), "CLIENT_MASTER_KEY"},
72{ERR_PACK(0,SSL_F_D2I_SSL_SESSION,0), "d2i_SSL_SESSION"}, 73{ERR_PACK(0,SSL_F_D2I_SSL_SESSION,0), "d2i_SSL_SESSION"},
@@ -80,7 +81,9 @@ static ERR_STRING_DATA SSL_str_functs[]=
80{ERR_PACK(0,SSL_F_I2D_SSL_SESSION,0), "i2d_SSL_SESSION"}, 81{ERR_PACK(0,SSL_F_I2D_SSL_SESSION,0), "i2d_SSL_SESSION"},
81{ERR_PACK(0,SSL_F_READ_N,0), "READ_N"}, 82{ERR_PACK(0,SSL_F_READ_N,0), "READ_N"},
82{ERR_PACK(0,SSL_F_REQUEST_CERTIFICATE,0), "REQUEST_CERTIFICATE"}, 83{ERR_PACK(0,SSL_F_REQUEST_CERTIFICATE,0), "REQUEST_CERTIFICATE"},
84{ERR_PACK(0,SSL_F_SERVER_FINISH,0), "SERVER_FINISH"},
83{ERR_PACK(0,SSL_F_SERVER_HELLO,0), "SERVER_HELLO"}, 85{ERR_PACK(0,SSL_F_SERVER_HELLO,0), "SERVER_HELLO"},
86{ERR_PACK(0,SSL_F_SERVER_VERIFY,0), "SERVER_VERIFY"},
84{ERR_PACK(0,SSL_F_SSL23_ACCEPT,0), "SSL23_ACCEPT"}, 87{ERR_PACK(0,SSL_F_SSL23_ACCEPT,0), "SSL23_ACCEPT"},
85{ERR_PACK(0,SSL_F_SSL23_CLIENT_HELLO,0), "SSL23_CLIENT_HELLO"}, 88{ERR_PACK(0,SSL_F_SSL23_CLIENT_HELLO,0), "SSL23_CLIENT_HELLO"},
86{ERR_PACK(0,SSL_F_SSL23_CONNECT,0), "SSL23_CONNECT"}, 89{ERR_PACK(0,SSL_F_SSL23_CONNECT,0), "SSL23_CONNECT"},
@@ -92,6 +95,7 @@ static ERR_STRING_DATA SSL_str_functs[]=
92{ERR_PACK(0,SSL_F_SSL2_ACCEPT,0), "SSL2_ACCEPT"}, 95{ERR_PACK(0,SSL_F_SSL2_ACCEPT,0), "SSL2_ACCEPT"},
93{ERR_PACK(0,SSL_F_SSL2_CONNECT,0), "SSL2_CONNECT"}, 96{ERR_PACK(0,SSL_F_SSL2_CONNECT,0), "SSL2_CONNECT"},
94{ERR_PACK(0,SSL_F_SSL2_ENC_INIT,0), "SSL2_ENC_INIT"}, 97{ERR_PACK(0,SSL_F_SSL2_ENC_INIT,0), "SSL2_ENC_INIT"},
98{ERR_PACK(0,SSL_F_SSL2_GENERATE_KEY_MATERIAL,0), "SSL2_GENERATE_KEY_MATERIAL"},
95{ERR_PACK(0,SSL_F_SSL2_PEEK,0), "SSL2_PEEK"}, 99{ERR_PACK(0,SSL_F_SSL2_PEEK,0), "SSL2_PEEK"},
96{ERR_PACK(0,SSL_F_SSL2_READ,0), "SSL2_READ"}, 100{ERR_PACK(0,SSL_F_SSL2_READ,0), "SSL2_READ"},
97{ERR_PACK(0,SSL_F_SSL2_READ_INTERNAL,0), "SSL2_READ_INTERNAL"}, 101{ERR_PACK(0,SSL_F_SSL2_READ_INTERNAL,0), "SSL2_READ_INTERNAL"},
@@ -128,6 +132,7 @@ static ERR_STRING_DATA SSL_str_functs[]=
128{ERR_PACK(0,SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,0), "SSL3_SEND_CLIENT_KEY_EXCHANGE"}, 132{ERR_PACK(0,SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,0), "SSL3_SEND_CLIENT_KEY_EXCHANGE"},
129{ERR_PACK(0,SSL_F_SSL3_SEND_CLIENT_VERIFY,0), "SSL3_SEND_CLIENT_VERIFY"}, 133{ERR_PACK(0,SSL_F_SSL3_SEND_CLIENT_VERIFY,0), "SSL3_SEND_CLIENT_VERIFY"},
130{ERR_PACK(0,SSL_F_SSL3_SEND_SERVER_CERTIFICATE,0), "SSL3_SEND_SERVER_CERTIFICATE"}, 134{ERR_PACK(0,SSL_F_SSL3_SEND_SERVER_CERTIFICATE,0), "SSL3_SEND_SERVER_CERTIFICATE"},
135{ERR_PACK(0,SSL_F_SSL3_SEND_SERVER_HELLO,0), "SSL3_SEND_SERVER_HELLO"},
131{ERR_PACK(0,SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE,0), "SSL3_SEND_SERVER_KEY_EXCHANGE"}, 136{ERR_PACK(0,SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE,0), "SSL3_SEND_SERVER_KEY_EXCHANGE"},
132{ERR_PACK(0,SSL_F_SSL3_SETUP_BUFFERS,0), "SSL3_SETUP_BUFFERS"}, 137{ERR_PACK(0,SSL_F_SSL3_SETUP_BUFFERS,0), "SSL3_SETUP_BUFFERS"},
133{ERR_PACK(0,SSL_F_SSL3_SETUP_KEY_BLOCK,0), "SSL3_SETUP_KEY_BLOCK"}, 138{ERR_PACK(0,SSL_F_SSL3_SETUP_KEY_BLOCK,0), "SSL3_SETUP_KEY_BLOCK"},
@@ -355,6 +360,7 @@ static ERR_STRING_DATA SSL_str_reasons[]=
355{SSL_R_SHORT_READ ,"short read"}, 360{SSL_R_SHORT_READ ,"short read"},
356{SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE,"signature for non signing certificate"}, 361{SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE,"signature for non signing certificate"},
357{SSL_R_SSL23_DOING_SESSION_ID_REUSE ,"ssl23 doing session id reuse"}, 362{SSL_R_SSL23_DOING_SESSION_ID_REUSE ,"ssl23 doing session id reuse"},
363{SSL_R_SSL2_CONNECTION_ID_TOO_LONG ,"ssl2 connection id too long"},
358{SSL_R_SSL3_SESSION_ID_TOO_LONG ,"ssl3 session id too long"}, 364{SSL_R_SSL3_SESSION_ID_TOO_LONG ,"ssl3 session id too long"},
359{SSL_R_SSL3_SESSION_ID_TOO_SHORT ,"ssl3 session id too short"}, 365{SSL_R_SSL3_SESSION_ID_TOO_SHORT ,"ssl3 session id too short"},
360{SSL_R_SSLV3_ALERT_BAD_CERTIFICATE ,"sslv3 alert bad certificate"}, 366{SSL_R_SSLV3_ALERT_BAD_CERTIFICATE ,"sslv3 alert bad certificate"},
diff --git a/src/lib/libssl/src/ssl/ssl_lib.c b/src/lib/libssl/src/ssl/ssl_lib.c
index 4a87a146e3..4bc4ce5b3a 100644
--- a/src/lib/libssl/src/ssl/ssl_lib.c
+++ b/src/lib/libssl/src/ssl/ssl_lib.c
@@ -1405,13 +1405,24 @@ void SSL_CTX_free(SSL_CTX *a)
1405 abort(); /* ok */ 1405 abort(); /* ok */
1406 } 1406 }
1407#endif 1407#endif
1408 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);
1409 1408
1409 /*
1410 * Free internal session cache. However: the remove_cb() may reference
1411 * the ex_data of SSL_CTX, thus the ex_data store can only be removed
1412 * after the sessions were flushed.
1413 * As the ex_data handling routines might also touch the session cache,
1414 * the most secure solution seems to be: empty (flush) the cache, then
1415 * free ex_data, then finally free the cache.
1416 * (See ticket [openssl.org #212].)
1417 */
1410 if (a->sessions != NULL) 1418 if (a->sessions != NULL)
1411 {
1412 SSL_CTX_flush_sessions(a,0); 1419 SSL_CTX_flush_sessions(a,0);
1420
1421 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);
1422
1423 if (a->sessions != NULL)
1413 lh_free(a->sessions); 1424 lh_free(a->sessions);
1414 } 1425
1415 if (a->cert_store != NULL) 1426 if (a->cert_store != NULL)
1416 X509_STORE_free(a->cert_store); 1427 X509_STORE_free(a->cert_store);
1417 if (a->cipher_list != NULL) 1428 if (a->cipher_list != NULL)
@@ -2289,10 +2300,3 @@ void SSL_set_msg_callback(SSL *ssl, void (*cb)(int write_p, int version, int con
2289 2300
2290IMPLEMENT_STACK_OF(SSL_CIPHER) 2301IMPLEMENT_STACK_OF(SSL_CIPHER)
2291IMPLEMENT_STACK_OF(SSL_COMP) 2302IMPLEMENT_STACK_OF(SSL_COMP)
2292
2293void OpenSSLDie(const char *file,int line,const char *assertion)
2294 {
2295 fprintf(stderr,"%s(%d): OpenSSL internal error, assertion failed: %s\n",
2296 file,line,assertion);
2297 abort();
2298 }
diff --git a/src/lib/libssl/src/ssl/ssl_locl.h b/src/lib/libssl/src/ssl/ssl_locl.h
index 4c77e27acc..dd6c7a7323 100644
--- a/src/lib/libssl/src/ssl/ssl_locl.h
+++ b/src/lib/libssl/src/ssl/ssl_locl.h
@@ -510,7 +510,7 @@ STACK_OF(SSL_CIPHER) *ssl_get_ciphers_by_id(SSL *s);
510int ssl_verify_alarm_type(long type); 510int ssl_verify_alarm_type(long type);
511 511
512int ssl2_enc_init(SSL *s, int client); 512int ssl2_enc_init(SSL *s, int client);
513void ssl2_generate_key_material(SSL *s); 513int ssl2_generate_key_material(SSL *s);
514void ssl2_enc(SSL *s,int send_data); 514void ssl2_enc(SSL *s,int send_data);
515void ssl2_mac(SSL *s,unsigned char *mac,int send_data); 515void ssl2_mac(SSL *s,unsigned char *mac,int send_data);
516SSL_CIPHER *ssl2_get_cipher_by_char(const unsigned char *p); 516SSL_CIPHER *ssl2_get_cipher_by_char(const unsigned char *p);
@@ -616,8 +616,5 @@ int ssl_ok(SSL *s);
616SSL_COMP *ssl3_comp_find(STACK_OF(SSL_COMP) *sk, int n); 616SSL_COMP *ssl3_comp_find(STACK_OF(SSL_COMP) *sk, int n);
617STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void); 617STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void);
618 618
619/* die if we have to */
620void OpenSSLDie(const char *file,int line,const char *assertion);
621#define die(e) ((e) ? (void)0 : OpenSSLDie(__FILE__, __LINE__, #e))
622 619
623#endif 620#endif
diff --git a/src/lib/libssl/src/ssl/ssl_sess.c b/src/lib/libssl/src/ssl/ssl_sess.c
index a0c3100b29..664f8c2230 100644
--- a/src/lib/libssl/src/ssl/ssl_sess.c
+++ b/src/lib/libssl/src/ssl/ssl_sess.c
@@ -250,7 +250,12 @@ int ssl_get_new_session(SSL *s, int session)
250 ss->session_id_length=0; 250 ss->session_id_length=0;
251 } 251 }
252 252
253 die(s->sid_ctx_length <= sizeof ss->sid_ctx); 253 if (s->sid_ctx_length > sizeof ss->sid_ctx)
254 {
255 SSLerr(SSL_F_SSL_GET_NEW_SESSION, ERR_R_INTERNAL_ERROR);
256 SSL_SESSION_free(ss);
257 return 0;
258 }
254 memcpy(ss->sid_ctx,s->sid_ctx,s->sid_ctx_length); 259 memcpy(ss->sid_ctx,s->sid_ctx,s->sid_ctx_length);
255 ss->sid_ctx_length=s->sid_ctx_length; 260 ss->sid_ctx_length=s->sid_ctx_length;
256 s->session=ss; 261 s->session=ss;
diff --git a/src/lib/libssl/src/ssl/ssltest.c b/src/lib/libssl/src/ssl/ssltest.c
index 1afdfa7750..4f6379e160 100644
--- a/src/lib/libssl/src/ssl/ssltest.c
+++ b/src/lib/libssl/src/ssl/ssltest.c
@@ -400,12 +400,22 @@ int main(int argc, char *argv[])
400 debug=1; 400 debug=1;
401 else if (strcmp(*argv,"-reuse") == 0) 401 else if (strcmp(*argv,"-reuse") == 0)
402 reuse=1; 402 reuse=1;
403#ifndef OPENSSL_NO_DH
404 else if (strcmp(*argv,"-dhe1024") == 0) 403 else if (strcmp(*argv,"-dhe1024") == 0)
404 {
405#ifndef OPENSSL_NO_DH
405 dhe1024=1; 406 dhe1024=1;
407#else
408 fprintf(stderr,"ignoring -dhe1024, since I'm compiled without DH\n";
409#endif
410 }
406 else if (strcmp(*argv,"-dhe1024dsa") == 0) 411 else if (strcmp(*argv,"-dhe1024dsa") == 0)
412 {
413#ifndef OPENSSL_NO_DH
407 dhe1024dsa=1; 414 dhe1024dsa=1;
415#else
416 fprintf(stderr,"ignoring -dhe1024, since I'm compiled without DH\n";
408#endif 417#endif
418 }
409 else if (strcmp(*argv,"-no_dhe") == 0) 419 else if (strcmp(*argv,"-no_dhe") == 0)
410 no_dhe=1; 420 no_dhe=1;
411 else if (strcmp(*argv,"-ssl2") == 0) 421 else if (strcmp(*argv,"-ssl2") == 0)
diff --git a/src/lib/libssl/src/test/Makefile.ssl b/src/lib/libssl/src/test/Makefile.ssl
index c1408021ba..f489332a65 100644
--- a/src/lib/libssl/src/test/Makefile.ssl
+++ b/src/lib/libssl/src/test/Makefile.ssl
@@ -224,7 +224,7 @@ test_ec:
224test_verify: 224test_verify:
225 @echo "The following command should have some OK's and some failures" 225 @echo "The following command should have some OK's and some failures"
226 @echo "There are definitly a few expired certificates" 226 @echo "There are definitly a few expired certificates"
227 ../apps/openssl verify -CApath ../certs ../certs/*.pem 227 -../apps/openssl verify -CApath ../certs ../certs/*.pem
228 228
229test_dh: 229test_dh:
230 @echo "Generate a set of DH parameters" 230 @echo "Generate a set of DH parameters"
diff --git a/src/lib/libssl/src/test/maketests.com b/src/lib/libssl/src/test/maketests.com
index b3bf8bb837..91e859deab 100644
--- a/src/lib/libssl/src/test/maketests.com
+++ b/src/lib/libssl/src/test/maketests.com
@@ -887,7 +887,7 @@ $ CC = CC + "/DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS
887$! 887$!
888$! Show user the result 888$! Show user the result
889$! 889$!
890$ WRITE SYS$OUTPUT "Main Compiling Command: ",CC 890$ WRITE/SYMBOL SYS$OUTPUT "Main Compiling Command: ",CC
891$! 891$!
892$! Else The User Entered An Invalid Arguement. 892$! Else The User Entered An Invalid Arguement.
893$! 893$!
diff --git a/src/lib/libssl/src/test/tcrl.com b/src/lib/libssl/src/test/tcrl.com
index 2e6ab2814d..86bf9735aa 100644
--- a/src/lib/libssl/src/test/tcrl.com
+++ b/src/lib/libssl/src/test/tcrl.com
@@ -13,7 +13,9 @@ $ write sys$output "testing CRL conversions"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/src/test/testenc.com b/src/lib/libssl/src/test/testenc.com
index 3b66f2e0d0..c24fa388c0 100644
--- a/src/lib/libssl/src/test/testenc.com
+++ b/src/lib/libssl/src/test/testenc.com
@@ -9,7 +9,9 @@ $ test := p.txt
9$ cmd := mcr 'exe_dir'openssl 9$ cmd := mcr 'exe_dir'openssl
10$ 10$
11$ if f$search(test) .nes. "" then delete 'test';* 11$ if f$search(test) .nes. "" then delete 'test';*
12$ copy 'testsrc' 'test' 12$ convert/fdl=sys$input: 'testsrc' 'test'
13RECORD
14 FORMAT STREAM_LF
13$ 15$
14$ if f$search(test+"-cipher") .nes. "" then delete 'test'-cipher;* 16$ if f$search(test+"-cipher") .nes. "" then delete 'test'-cipher;*
15$ if f$search(test+"-clear") .nes. "" then delete 'test'-clear;* 17$ if f$search(test+"-clear") .nes. "" then delete 'test'-clear;*
diff --git a/src/lib/libssl/src/test/tpkcs7.com b/src/lib/libssl/src/test/tpkcs7.com
index 9e345937c6..047834fba4 100644
--- a/src/lib/libssl/src/test/tpkcs7.com
+++ b/src/lib/libssl/src/test/tpkcs7.com
@@ -13,7 +13,9 @@ $ write sys$output "testing PKCS7 conversions"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/src/test/tpkcs7d.com b/src/lib/libssl/src/test/tpkcs7d.com
index 7d4f8794a4..193bb72137 100644
--- a/src/lib/libssl/src/test/tpkcs7d.com
+++ b/src/lib/libssl/src/test/tpkcs7d.com
@@ -13,7 +13,9 @@ $ write sys$output "testing PKCS7 conversions (2)"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/src/test/treq.com b/src/lib/libssl/src/test/treq.com
index 22c22c3aa9..5524e485ba 100644
--- a/src/lib/libssl/src/test/treq.com
+++ b/src/lib/libssl/src/test/treq.com
@@ -13,7 +13,9 @@ $ write sys$output "testing req conversions"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/src/test/trsa.com b/src/lib/libssl/src/test/trsa.com
index 6b6c318e2b..6dbe59ef64 100644
--- a/src/lib/libssl/src/test/trsa.com
+++ b/src/lib/libssl/src/test/trsa.com
@@ -24,7 +24,9 @@ $ write sys$output "testing RSA conversions"
24$ if f$search("fff.*") .nes "" then delete fff.*;* 24$ if f$search("fff.*") .nes "" then delete fff.*;*
25$ if f$search("ff.*") .nes "" then delete ff.*;* 25$ if f$search("ff.*") .nes "" then delete ff.*;*
26$ if f$search("f.*") .nes "" then delete f.*;* 26$ if f$search("f.*") .nes "" then delete f.*;*
27$ copy 't' fff.p 27$ convert/fdl=sys$input: 't' fff.p
28RECORD
29 FORMAT STREAM_LF
28$ 30$
29$ write sys$output "p -> d" 31$ write sys$output "p -> d"
30$ 'cmd' -in fff.p -inform p -outform d -out f.d 32$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/src/test/tsid.com b/src/lib/libssl/src/test/tsid.com
index bde23f9bb9..abd1d4d737 100644
--- a/src/lib/libssl/src/test/tsid.com
+++ b/src/lib/libssl/src/test/tsid.com
@@ -13,7 +13,9 @@ $ write sys$output "testing session-id conversions"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/src/test/tx509.com b/src/lib/libssl/src/test/tx509.com
index 985969c566..7b2592f773 100644
--- a/src/lib/libssl/src/test/tx509.com
+++ b/src/lib/libssl/src/test/tx509.com
@@ -13,7 +13,9 @@ $ write sys$output "testing X509 conversions"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/src/util/libeay.num b/src/lib/libssl/src/util/libeay.num
index 512185e257..7e5728495f 100644
--- a/src/lib/libssl/src/util/libeay.num
+++ b/src/lib/libssl/src/util/libeay.num
@@ -2792,3 +2792,4 @@ ASN1_UNIVERSALSTRING_it 3234 EXIST:!EXPORT_VAR_AS_FUNCTION:VARIA
2792ASN1_UNIVERSALSTRING_it 3234 EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION: 2792ASN1_UNIVERSALSTRING_it 3234 EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION:
2793d2i_ASN1_UNIVERSALSTRING 3235 EXIST::FUNCTION: 2793d2i_ASN1_UNIVERSALSTRING 3235 EXIST::FUNCTION:
2794EVP_des_ede3_ecb 3236 EXIST::FUNCTION:DES 2794EVP_des_ede3_ecb 3236 EXIST::FUNCTION:DES
2795X509_REQ_print_ex 3237 EXIST::FUNCTION:BIO
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h
index d9949e8eb2..e9d1e896d7 100644
--- a/src/lib/libssl/ssl.h
+++ b/src/lib/libssl/ssl.h
@@ -1462,6 +1462,7 @@ void ERR_load_SSL_strings(void);
1462 1462
1463/* Function codes. */ 1463/* Function codes. */
1464#define SSL_F_CLIENT_CERTIFICATE 100 1464#define SSL_F_CLIENT_CERTIFICATE 100
1465#define SSL_F_CLIENT_FINISHED 238
1465#define SSL_F_CLIENT_HELLO 101 1466#define SSL_F_CLIENT_HELLO 101
1466#define SSL_F_CLIENT_MASTER_KEY 102 1467#define SSL_F_CLIENT_MASTER_KEY 102
1467#define SSL_F_D2I_SSL_SESSION 103 1468#define SSL_F_D2I_SSL_SESSION 103
@@ -1475,7 +1476,9 @@ void ERR_load_SSL_strings(void);
1475#define SSL_F_I2D_SSL_SESSION 111 1476#define SSL_F_I2D_SSL_SESSION 111
1476#define SSL_F_READ_N 112 1477#define SSL_F_READ_N 112
1477#define SSL_F_REQUEST_CERTIFICATE 113 1478#define SSL_F_REQUEST_CERTIFICATE 113
1479#define SSL_F_SERVER_FINISH 239
1478#define SSL_F_SERVER_HELLO 114 1480#define SSL_F_SERVER_HELLO 114
1481#define SSL_F_SERVER_VERIFY 240
1479#define SSL_F_SSL23_ACCEPT 115 1482#define SSL_F_SSL23_ACCEPT 115
1480#define SSL_F_SSL23_CLIENT_HELLO 116 1483#define SSL_F_SSL23_CLIENT_HELLO 116
1481#define SSL_F_SSL23_CONNECT 117 1484#define SSL_F_SSL23_CONNECT 117
@@ -1487,6 +1490,7 @@ void ERR_load_SSL_strings(void);
1487#define SSL_F_SSL2_ACCEPT 122 1490#define SSL_F_SSL2_ACCEPT 122
1488#define SSL_F_SSL2_CONNECT 123 1491#define SSL_F_SSL2_CONNECT 123
1489#define SSL_F_SSL2_ENC_INIT 124 1492#define SSL_F_SSL2_ENC_INIT 124
1493#define SSL_F_SSL2_GENERATE_KEY_MATERIAL 241
1490#define SSL_F_SSL2_PEEK 234 1494#define SSL_F_SSL2_PEEK 234
1491#define SSL_F_SSL2_READ 125 1495#define SSL_F_SSL2_READ 125
1492#define SSL_F_SSL2_READ_INTERNAL 236 1496#define SSL_F_SSL2_READ_INTERNAL 236
@@ -1523,6 +1527,7 @@ void ERR_load_SSL_strings(void);
1523#define SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE 152 1527#define SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE 152
1524#define SSL_F_SSL3_SEND_CLIENT_VERIFY 153 1528#define SSL_F_SSL3_SEND_CLIENT_VERIFY 153
1525#define SSL_F_SSL3_SEND_SERVER_CERTIFICATE 154 1529#define SSL_F_SSL3_SEND_SERVER_CERTIFICATE 154
1530#define SSL_F_SSL3_SEND_SERVER_HELLO 242
1526#define SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE 155 1531#define SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE 155
1527#define SSL_F_SSL3_SETUP_BUFFERS 156 1532#define SSL_F_SSL3_SETUP_BUFFERS 156
1528#define SSL_F_SSL3_SETUP_KEY_BLOCK 157 1533#define SSL_F_SSL3_SETUP_KEY_BLOCK 157
@@ -1747,6 +1752,7 @@ void ERR_load_SSL_strings(void);
1747#define SSL_R_SHORT_READ 219 1752#define SSL_R_SHORT_READ 219
1748#define SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE 220 1753#define SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE 220
1749#define SSL_R_SSL23_DOING_SESSION_ID_REUSE 221 1754#define SSL_R_SSL23_DOING_SESSION_ID_REUSE 221
1755#define SSL_R_SSL2_CONNECTION_ID_TOO_LONG 1114
1750#define SSL_R_SSL3_SESSION_ID_TOO_LONG 1113 1756#define SSL_R_SSL3_SESSION_ID_TOO_LONG 1113
1751#define SSL_R_SSL3_SESSION_ID_TOO_SHORT 222 1757#define SSL_R_SSL3_SESSION_ID_TOO_SHORT 222
1752#define SSL_R_SSLV3_ALERT_BAD_CERTIFICATE 1042 1758#define SSL_R_SSLV3_ALERT_BAD_CERTIFICATE 1042
diff --git a/src/lib/libssl/ssl_asn1.c b/src/lib/libssl/ssl_asn1.c
index c550747947..23bfe44e21 100644
--- a/src/lib/libssl/ssl_asn1.c
+++ b/src/lib/libssl/ssl_asn1.c
@@ -57,8 +57,8 @@
57 */ 57 */
58 58
59#include <stdio.h> 59#include <stdio.h>
60#include "ssl_locl.h"
61#include <stdlib.h> 60#include <stdlib.h>
61#include "ssl_locl.h"
62#include <openssl/asn1_mac.h> 62#include <openssl/asn1_mac.h>
63#include <openssl/objects.h> 63#include <openssl/objects.h>
64#include <openssl/x509.h> 64#include <openssl/x509.h>
@@ -293,10 +293,11 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, unsigned char **pp,
293 i=SSL2_MAX_SSL_SESSION_ID_LENGTH; 293 i=SSL2_MAX_SSL_SESSION_ID_LENGTH;
294 294
295 if (os.length > i) 295 if (os.length > i)
296 os.length=i; 296 os.length = i;
297 if (os.length > sizeof ret->session_id) /* can't happen */
298 os.length = sizeof ret->session_id;
297 299
298 ret->session_id_length=os.length; 300 ret->session_id_length=os.length;
299 die(os.length <= sizeof ret->session_id);
300 memcpy(ret->session_id,os.data,os.length); 301 memcpy(ret->session_id,os.data,os.length);
301 302
302 M_ASN1_D2I_get(osp,d2i_ASN1_OCTET_STRING); 303 M_ASN1_D2I_get(osp,d2i_ASN1_OCTET_STRING);
diff --git a/src/lib/libssl/ssl_err.c b/src/lib/libssl/ssl_err.c
index 0cad32c855..7067a745f3 100644
--- a/src/lib/libssl/ssl_err.c
+++ b/src/lib/libssl/ssl_err.c
@@ -67,6 +67,7 @@
67static ERR_STRING_DATA SSL_str_functs[]= 67static ERR_STRING_DATA SSL_str_functs[]=
68 { 68 {
69{ERR_PACK(0,SSL_F_CLIENT_CERTIFICATE,0), "CLIENT_CERTIFICATE"}, 69{ERR_PACK(0,SSL_F_CLIENT_CERTIFICATE,0), "CLIENT_CERTIFICATE"},
70{ERR_PACK(0,SSL_F_CLIENT_FINISHED,0), "CLIENT_FINISHED"},
70{ERR_PACK(0,SSL_F_CLIENT_HELLO,0), "CLIENT_HELLO"}, 71{ERR_PACK(0,SSL_F_CLIENT_HELLO,0), "CLIENT_HELLO"},
71{ERR_PACK(0,SSL_F_CLIENT_MASTER_KEY,0), "CLIENT_MASTER_KEY"}, 72{ERR_PACK(0,SSL_F_CLIENT_MASTER_KEY,0), "CLIENT_MASTER_KEY"},
72{ERR_PACK(0,SSL_F_D2I_SSL_SESSION,0), "d2i_SSL_SESSION"}, 73{ERR_PACK(0,SSL_F_D2I_SSL_SESSION,0), "d2i_SSL_SESSION"},
@@ -80,7 +81,9 @@ static ERR_STRING_DATA SSL_str_functs[]=
80{ERR_PACK(0,SSL_F_I2D_SSL_SESSION,0), "i2d_SSL_SESSION"}, 81{ERR_PACK(0,SSL_F_I2D_SSL_SESSION,0), "i2d_SSL_SESSION"},
81{ERR_PACK(0,SSL_F_READ_N,0), "READ_N"}, 82{ERR_PACK(0,SSL_F_READ_N,0), "READ_N"},
82{ERR_PACK(0,SSL_F_REQUEST_CERTIFICATE,0), "REQUEST_CERTIFICATE"}, 83{ERR_PACK(0,SSL_F_REQUEST_CERTIFICATE,0), "REQUEST_CERTIFICATE"},
84{ERR_PACK(0,SSL_F_SERVER_FINISH,0), "SERVER_FINISH"},
83{ERR_PACK(0,SSL_F_SERVER_HELLO,0), "SERVER_HELLO"}, 85{ERR_PACK(0,SSL_F_SERVER_HELLO,0), "SERVER_HELLO"},
86{ERR_PACK(0,SSL_F_SERVER_VERIFY,0), "SERVER_VERIFY"},
84{ERR_PACK(0,SSL_F_SSL23_ACCEPT,0), "SSL23_ACCEPT"}, 87{ERR_PACK(0,SSL_F_SSL23_ACCEPT,0), "SSL23_ACCEPT"},
85{ERR_PACK(0,SSL_F_SSL23_CLIENT_HELLO,0), "SSL23_CLIENT_HELLO"}, 88{ERR_PACK(0,SSL_F_SSL23_CLIENT_HELLO,0), "SSL23_CLIENT_HELLO"},
86{ERR_PACK(0,SSL_F_SSL23_CONNECT,0), "SSL23_CONNECT"}, 89{ERR_PACK(0,SSL_F_SSL23_CONNECT,0), "SSL23_CONNECT"},
@@ -92,6 +95,7 @@ static ERR_STRING_DATA SSL_str_functs[]=
92{ERR_PACK(0,SSL_F_SSL2_ACCEPT,0), "SSL2_ACCEPT"}, 95{ERR_PACK(0,SSL_F_SSL2_ACCEPT,0), "SSL2_ACCEPT"},
93{ERR_PACK(0,SSL_F_SSL2_CONNECT,0), "SSL2_CONNECT"}, 96{ERR_PACK(0,SSL_F_SSL2_CONNECT,0), "SSL2_CONNECT"},
94{ERR_PACK(0,SSL_F_SSL2_ENC_INIT,0), "SSL2_ENC_INIT"}, 97{ERR_PACK(0,SSL_F_SSL2_ENC_INIT,0), "SSL2_ENC_INIT"},
98{ERR_PACK(0,SSL_F_SSL2_GENERATE_KEY_MATERIAL,0), "SSL2_GENERATE_KEY_MATERIAL"},
95{ERR_PACK(0,SSL_F_SSL2_PEEK,0), "SSL2_PEEK"}, 99{ERR_PACK(0,SSL_F_SSL2_PEEK,0), "SSL2_PEEK"},
96{ERR_PACK(0,SSL_F_SSL2_READ,0), "SSL2_READ"}, 100{ERR_PACK(0,SSL_F_SSL2_READ,0), "SSL2_READ"},
97{ERR_PACK(0,SSL_F_SSL2_READ_INTERNAL,0), "SSL2_READ_INTERNAL"}, 101{ERR_PACK(0,SSL_F_SSL2_READ_INTERNAL,0), "SSL2_READ_INTERNAL"},
@@ -128,6 +132,7 @@ static ERR_STRING_DATA SSL_str_functs[]=
128{ERR_PACK(0,SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,0), "SSL3_SEND_CLIENT_KEY_EXCHANGE"}, 132{ERR_PACK(0,SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,0), "SSL3_SEND_CLIENT_KEY_EXCHANGE"},
129{ERR_PACK(0,SSL_F_SSL3_SEND_CLIENT_VERIFY,0), "SSL3_SEND_CLIENT_VERIFY"}, 133{ERR_PACK(0,SSL_F_SSL3_SEND_CLIENT_VERIFY,0), "SSL3_SEND_CLIENT_VERIFY"},
130{ERR_PACK(0,SSL_F_SSL3_SEND_SERVER_CERTIFICATE,0), "SSL3_SEND_SERVER_CERTIFICATE"}, 134{ERR_PACK(0,SSL_F_SSL3_SEND_SERVER_CERTIFICATE,0), "SSL3_SEND_SERVER_CERTIFICATE"},
135{ERR_PACK(0,SSL_F_SSL3_SEND_SERVER_HELLO,0), "SSL3_SEND_SERVER_HELLO"},
131{ERR_PACK(0,SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE,0), "SSL3_SEND_SERVER_KEY_EXCHANGE"}, 136{ERR_PACK(0,SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE,0), "SSL3_SEND_SERVER_KEY_EXCHANGE"},
132{ERR_PACK(0,SSL_F_SSL3_SETUP_BUFFERS,0), "SSL3_SETUP_BUFFERS"}, 137{ERR_PACK(0,SSL_F_SSL3_SETUP_BUFFERS,0), "SSL3_SETUP_BUFFERS"},
133{ERR_PACK(0,SSL_F_SSL3_SETUP_KEY_BLOCK,0), "SSL3_SETUP_KEY_BLOCK"}, 138{ERR_PACK(0,SSL_F_SSL3_SETUP_KEY_BLOCK,0), "SSL3_SETUP_KEY_BLOCK"},
@@ -355,6 +360,7 @@ static ERR_STRING_DATA SSL_str_reasons[]=
355{SSL_R_SHORT_READ ,"short read"}, 360{SSL_R_SHORT_READ ,"short read"},
356{SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE,"signature for non signing certificate"}, 361{SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE,"signature for non signing certificate"},
357{SSL_R_SSL23_DOING_SESSION_ID_REUSE ,"ssl23 doing session id reuse"}, 362{SSL_R_SSL23_DOING_SESSION_ID_REUSE ,"ssl23 doing session id reuse"},
363{SSL_R_SSL2_CONNECTION_ID_TOO_LONG ,"ssl2 connection id too long"},
358{SSL_R_SSL3_SESSION_ID_TOO_LONG ,"ssl3 session id too long"}, 364{SSL_R_SSL3_SESSION_ID_TOO_LONG ,"ssl3 session id too long"},
359{SSL_R_SSL3_SESSION_ID_TOO_SHORT ,"ssl3 session id too short"}, 365{SSL_R_SSL3_SESSION_ID_TOO_SHORT ,"ssl3 session id too short"},
360{SSL_R_SSLV3_ALERT_BAD_CERTIFICATE ,"sslv3 alert bad certificate"}, 366{SSL_R_SSLV3_ALERT_BAD_CERTIFICATE ,"sslv3 alert bad certificate"},
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 4a87a146e3..4bc4ce5b3a 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1405,13 +1405,24 @@ void SSL_CTX_free(SSL_CTX *a)
1405 abort(); /* ok */ 1405 abort(); /* ok */
1406 } 1406 }
1407#endif 1407#endif
1408 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);
1409 1408
1409 /*
1410 * Free internal session cache. However: the remove_cb() may reference
1411 * the ex_data of SSL_CTX, thus the ex_data store can only be removed
1412 * after the sessions were flushed.
1413 * As the ex_data handling routines might also touch the session cache,
1414 * the most secure solution seems to be: empty (flush) the cache, then
1415 * free ex_data, then finally free the cache.
1416 * (See ticket [openssl.org #212].)
1417 */
1410 if (a->sessions != NULL) 1418 if (a->sessions != NULL)
1411 {
1412 SSL_CTX_flush_sessions(a,0); 1419 SSL_CTX_flush_sessions(a,0);
1420
1421 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);
1422
1423 if (a->sessions != NULL)
1413 lh_free(a->sessions); 1424 lh_free(a->sessions);
1414 } 1425
1415 if (a->cert_store != NULL) 1426 if (a->cert_store != NULL)
1416 X509_STORE_free(a->cert_store); 1427 X509_STORE_free(a->cert_store);
1417 if (a->cipher_list != NULL) 1428 if (a->cipher_list != NULL)
@@ -2289,10 +2300,3 @@ void SSL_set_msg_callback(SSL *ssl, void (*cb)(int write_p, int version, int con
2289 2300
2290IMPLEMENT_STACK_OF(SSL_CIPHER) 2301IMPLEMENT_STACK_OF(SSL_CIPHER)
2291IMPLEMENT_STACK_OF(SSL_COMP) 2302IMPLEMENT_STACK_OF(SSL_COMP)
2292
2293void OpenSSLDie(const char *file,int line,const char *assertion)
2294 {
2295 fprintf(stderr,"%s(%d): OpenSSL internal error, assertion failed: %s\n",
2296 file,line,assertion);
2297 abort();
2298 }
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 4c77e27acc..dd6c7a7323 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -510,7 +510,7 @@ STACK_OF(SSL_CIPHER) *ssl_get_ciphers_by_id(SSL *s);
510int ssl_verify_alarm_type(long type); 510int ssl_verify_alarm_type(long type);
511 511
512int ssl2_enc_init(SSL *s, int client); 512int ssl2_enc_init(SSL *s, int client);
513void ssl2_generate_key_material(SSL *s); 513int ssl2_generate_key_material(SSL *s);
514void ssl2_enc(SSL *s,int send_data); 514void ssl2_enc(SSL *s,int send_data);
515void ssl2_mac(SSL *s,unsigned char *mac,int send_data); 515void ssl2_mac(SSL *s,unsigned char *mac,int send_data);
516SSL_CIPHER *ssl2_get_cipher_by_char(const unsigned char *p); 516SSL_CIPHER *ssl2_get_cipher_by_char(const unsigned char *p);
@@ -616,8 +616,5 @@ int ssl_ok(SSL *s);
616SSL_COMP *ssl3_comp_find(STACK_OF(SSL_COMP) *sk, int n); 616SSL_COMP *ssl3_comp_find(STACK_OF(SSL_COMP) *sk, int n);
617STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void); 617STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void);
618 618
619/* die if we have to */
620void OpenSSLDie(const char *file,int line,const char *assertion);
621#define die(e) ((e) ? (void)0 : OpenSSLDie(__FILE__, __LINE__, #e))
622 619
623#endif 620#endif
diff --git a/src/lib/libssl/ssl_sess.c b/src/lib/libssl/ssl_sess.c
index a0c3100b29..664f8c2230 100644
--- a/src/lib/libssl/ssl_sess.c
+++ b/src/lib/libssl/ssl_sess.c
@@ -250,7 +250,12 @@ int ssl_get_new_session(SSL *s, int session)
250 ss->session_id_length=0; 250 ss->session_id_length=0;
251 } 251 }
252 252
253 die(s->sid_ctx_length <= sizeof ss->sid_ctx); 253 if (s->sid_ctx_length > sizeof ss->sid_ctx)
254 {
255 SSLerr(SSL_F_SSL_GET_NEW_SESSION, ERR_R_INTERNAL_ERROR);
256 SSL_SESSION_free(ss);
257 return 0;
258 }
254 memcpy(ss->sid_ctx,s->sid_ctx,s->sid_ctx_length); 259 memcpy(ss->sid_ctx,s->sid_ctx,s->sid_ctx_length);
255 ss->sid_ctx_length=s->sid_ctx_length; 260 ss->sid_ctx_length=s->sid_ctx_length;
256 s->session=ss; 261 s->session=ss;
diff --git a/src/lib/libssl/test/Makefile.ssl b/src/lib/libssl/test/Makefile.ssl
index c1408021ba..f489332a65 100644
--- a/src/lib/libssl/test/Makefile.ssl
+++ b/src/lib/libssl/test/Makefile.ssl
@@ -224,7 +224,7 @@ test_ec:
224test_verify: 224test_verify:
225 @echo "The following command should have some OK's and some failures" 225 @echo "The following command should have some OK's and some failures"
226 @echo "There are definitly a few expired certificates" 226 @echo "There are definitly a few expired certificates"
227 ../apps/openssl verify -CApath ../certs ../certs/*.pem 227 -../apps/openssl verify -CApath ../certs ../certs/*.pem
228 228
229test_dh: 229test_dh:
230 @echo "Generate a set of DH parameters" 230 @echo "Generate a set of DH parameters"
diff --git a/src/lib/libssl/test/maketests.com b/src/lib/libssl/test/maketests.com
index b3bf8bb837..91e859deab 100644
--- a/src/lib/libssl/test/maketests.com
+++ b/src/lib/libssl/test/maketests.com
@@ -887,7 +887,7 @@ $ CC = CC + "/DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS
887$! 887$!
888$! Show user the result 888$! Show user the result
889$! 889$!
890$ WRITE SYS$OUTPUT "Main Compiling Command: ",CC 890$ WRITE/SYMBOL SYS$OUTPUT "Main Compiling Command: ",CC
891$! 891$!
892$! Else The User Entered An Invalid Arguement. 892$! Else The User Entered An Invalid Arguement.
893$! 893$!
diff --git a/src/lib/libssl/test/tcrl.com b/src/lib/libssl/test/tcrl.com
index 2e6ab2814d..86bf9735aa 100644
--- a/src/lib/libssl/test/tcrl.com
+++ b/src/lib/libssl/test/tcrl.com
@@ -13,7 +13,9 @@ $ write sys$output "testing CRL conversions"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/test/testenc.com b/src/lib/libssl/test/testenc.com
index 3b66f2e0d0..c24fa388c0 100644
--- a/src/lib/libssl/test/testenc.com
+++ b/src/lib/libssl/test/testenc.com
@@ -9,7 +9,9 @@ $ test := p.txt
9$ cmd := mcr 'exe_dir'openssl 9$ cmd := mcr 'exe_dir'openssl
10$ 10$
11$ if f$search(test) .nes. "" then delete 'test';* 11$ if f$search(test) .nes. "" then delete 'test';*
12$ copy 'testsrc' 'test' 12$ convert/fdl=sys$input: 'testsrc' 'test'
13RECORD
14 FORMAT STREAM_LF
13$ 15$
14$ if f$search(test+"-cipher") .nes. "" then delete 'test'-cipher;* 16$ if f$search(test+"-cipher") .nes. "" then delete 'test'-cipher;*
15$ if f$search(test+"-clear") .nes. "" then delete 'test'-clear;* 17$ if f$search(test+"-clear") .nes. "" then delete 'test'-clear;*
diff --git a/src/lib/libssl/test/tpkcs7.com b/src/lib/libssl/test/tpkcs7.com
index 9e345937c6..047834fba4 100644
--- a/src/lib/libssl/test/tpkcs7.com
+++ b/src/lib/libssl/test/tpkcs7.com
@@ -13,7 +13,9 @@ $ write sys$output "testing PKCS7 conversions"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/test/tpkcs7d.com b/src/lib/libssl/test/tpkcs7d.com
index 7d4f8794a4..193bb72137 100644
--- a/src/lib/libssl/test/tpkcs7d.com
+++ b/src/lib/libssl/test/tpkcs7d.com
@@ -13,7 +13,9 @@ $ write sys$output "testing PKCS7 conversions (2)"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/test/treq.com b/src/lib/libssl/test/treq.com
index 22c22c3aa9..5524e485ba 100644
--- a/src/lib/libssl/test/treq.com
+++ b/src/lib/libssl/test/treq.com
@@ -13,7 +13,9 @@ $ write sys$output "testing req conversions"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/test/trsa.com b/src/lib/libssl/test/trsa.com
index 6b6c318e2b..6dbe59ef64 100644
--- a/src/lib/libssl/test/trsa.com
+++ b/src/lib/libssl/test/trsa.com
@@ -24,7 +24,9 @@ $ write sys$output "testing RSA conversions"
24$ if f$search("fff.*") .nes "" then delete fff.*;* 24$ if f$search("fff.*") .nes "" then delete fff.*;*
25$ if f$search("ff.*") .nes "" then delete ff.*;* 25$ if f$search("ff.*") .nes "" then delete ff.*;*
26$ if f$search("f.*") .nes "" then delete f.*;* 26$ if f$search("f.*") .nes "" then delete f.*;*
27$ copy 't' fff.p 27$ convert/fdl=sys$input: 't' fff.p
28RECORD
29 FORMAT STREAM_LF
28$ 30$
29$ write sys$output "p -> d" 31$ write sys$output "p -> d"
30$ 'cmd' -in fff.p -inform p -outform d -out f.d 32$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/test/tsid.com b/src/lib/libssl/test/tsid.com
index bde23f9bb9..abd1d4d737 100644
--- a/src/lib/libssl/test/tsid.com
+++ b/src/lib/libssl/test/tsid.com
@@ -13,7 +13,9 @@ $ write sys$output "testing session-id conversions"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d
diff --git a/src/lib/libssl/test/tx509.com b/src/lib/libssl/test/tx509.com
index 985969c566..7b2592f773 100644
--- a/src/lib/libssl/test/tx509.com
+++ b/src/lib/libssl/test/tx509.com
@@ -13,7 +13,9 @@ $ write sys$output "testing X509 conversions"
13$ if f$search("fff.*") .nes "" then delete fff.*;* 13$ if f$search("fff.*") .nes "" then delete fff.*;*
14$ if f$search("ff.*") .nes "" then delete ff.*;* 14$ if f$search("ff.*") .nes "" then delete ff.*;*
15$ if f$search("f.*") .nes "" then delete f.*;* 15$ if f$search("f.*") .nes "" then delete f.*;*
16$ copy 't' fff.p 16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
17$ 19$
18$ write sys$output "p -> d" 20$ write sys$output "p -> d"
19$ 'cmd' -in fff.p -inform p -outform d -out f.d 21$ 'cmd' -in fff.p -inform p -outform d -out f.d