Skip to content

Commit

Permalink
Recent changes from 0.9.7-stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
levitte committed Mar 23, 2004
1 parent e51f113 commit 2fb2e00
Show file tree
Hide file tree
Showing 19 changed files with 75 additions and 26 deletions.
14 changes: 13 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@
OpenSSL CHANGES
_______________

Changes between 0.9.7c and 0.9.7d [xx XXX XXXX]
Changes between 0.9.7d and 0.9.7e [XX xxx XXXX]

*)

Changes between 0.9.7c and 0.9.7d [17 Mar 2004]

*) Fix null-pointer assignment in do_change_cipher_spec() revealed
by using the Codenomicon TLS Test Tool (CAN-2004-0079)
[Joe Orton, Steve Henson]

*) Fix flaw in SSL/TLS handshaking when using Kerberos ciphersuites
(CAN-2004-0112)
[Joe Orton, Steve Henson]

*) Make it possible to have multiple active certificates with the same
subject in the CA index file. This is done only if the keyword
Expand Down
2 changes: 1 addition & 1 deletion FAQ
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ OpenSSL - Frequently Asked Questions
* Which is the current version of OpenSSL?

The current version is available from <URL: http://www.openssl.org>.
OpenSSL 0.9.7c was released on September 30, 2003.
OpenSSL 0.9.7d was released on March 17, 2004.

In addition to the current stable release, you can also access daily
snapshots of the OpenSSL development version at <URL:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
---------------

/* ====================================================================
* Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved.
* Copyright (c) 1998-2004 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
2 changes: 1 addition & 1 deletion Makefile.org
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ do_irix-shared:
if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \
libs="$(LIBKRB5) $$libs"; \
fi; \
( WHOLELIB="-all lib$$i.a -noall"; \
( WHOLELIB="-all lib$$i.a -notall"; \
(${CC} -v 2>&1 | grep gcc) > /dev/null && WHOLELIB="-Wl,-all,lib$$i.a,-notall"; \
set -x; ${CC} ${SHARED_LDFLAGS} \
-shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
Expand Down
8 changes: 8 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
This file gives a brief overview of the major changes between each OpenSSL
release. For more details please read the CHANGES file.

Major changes between OpenSSL 0.9.7c and OpenSSL 0.9.7d:

o Security: Fix Kerberos ciphersuite SSL/TLS handshaking bug
o Security: Fix null-pointer assignment in do_change_cipher_spec()
o Allow multiple active certificates with same subject in CA index
o Multiple X590 verification fixes
o Speed up HMAC and other operations

Major changes between OpenSSL 0.9.7b and OpenSSL 0.9.7c:

o Security: fix various ASN1 parsing bugs.
Expand Down
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

OpenSSL 0.9.7c 30 Sep 2003
OpenSSL 0.9.7d 17 Mar 2004

Copyright (c) 1998-2003 The OpenSSL Project
Copyright (c) 1998-2004 The OpenSSL Project
Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson
All rights reserved.

Expand Down
5 changes: 4 additions & 1 deletion STATUS
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@

OpenSSL STATUS Last modified at
______________ $Date: 2003/10/02 10:55:20 $
______________ $Date: 2004/03/23 15:00:59 $

DEVELOPMENT STATE

o OpenSSL 0.9.8: Under development...
o OpenSSL 0.9.7d: Released on March 17th, 2004
o OpenSSL 0.9.7c: Released on September 30th, 2003
o OpenSSL 0.9.7b: Released on April 10th, 2003
o OpenSSL 0.9.7a: Released on February 19th, 2003
o OpenSSL 0.9.7: Released on December 31st, 2002
o OpenSSL 0.9.6m: Released on March 17th, 2004
o OpenSSL 0.9.6l: Released on November 4th, 2003
o OpenSSL 0.9.6k: Released on September 30th, 2003
o OpenSSL 0.9.6j: Released on April 10th, 2003
o OpenSSL 0.9.6i: Released on February 19th, 2003
Expand Down
7 changes: 5 additions & 2 deletions apps/apps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1944,6 +1944,9 @@ int rotate_index(char *dbfile, char *new_suffix, char *old_suffix)

void free_index(CA_DB *db)
{
TXT_DB_free(db->db);
OPENSSL_free(db);
if (db)
{
if (db->db) TXT_DB_free(db->db);
OPENSSL_free(db);
}
}
1 change: 0 additions & 1 deletion apps/x509.c
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,6 @@ int MAIN(int argc, char **argv)
static ASN1_INTEGER *x509_load_serial(char *CAfile, char *serialfile, int create)
{
char *buf = NULL, *p;
MS_STATIC char buf2[1024];
ASN1_INTEGER *bs = NULL;
BIGNUM *serial = NULL;
size_t len;
Expand Down
2 changes: 1 addition & 1 deletion crypto/bio/b_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ fmtfp(
multiplying by a factor of 10 */
fracpart = roundv((pow10(max)) * (ufvalue - intpart));

if (fracpart >= pow10(max)) {
if (fracpart >= (long)pow10(max)) {
intpart++;
fracpart -= (long)pow10(max);
}
Expand Down
14 changes: 7 additions & 7 deletions crypto/bio/bss_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr)
b->shutdown=(int)num&BIO_CLOSE;
b->ptr=(char *)ptr;
b->init=1;
{
int fd = fileno((FILE*)ptr);
#if defined(OPENSSL_SYS_WINDOWS)
if (num & BIO_FP_TEXT)
_setmode(fileno((FILE *)ptr),_O_TEXT);
_setmode(fd,_O_TEXT);
else
_setmode(fileno((FILE *)ptr),_O_BINARY);
_setmode(fd,_O_BINARY);
#elif defined(OPENSSL_SYS_MSDOS)
{
int fd = fileno((FILE*)ptr);
/* Set correct text/binary mode */
if (num & BIO_FP_TEXT)
_setmode(fd,_O_TEXT);
Expand All @@ -235,13 +235,13 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr)
else
_setmode(fd,_O_BINARY);
}
}
#elif defined(OPENSSL_SYS_OS2)
if (num & BIO_FP_TEXT)
setmode(fileno((FILE *)ptr), O_TEXT);
setmode(fd, O_TEXT);
else
setmode(fileno((FILE *)ptr), O_BINARY);
setmode(fd, O_BINARY);
#endif
}
break;
case BIO_C_SET_FILENAME:
file_free(b);
Expand Down
2 changes: 1 addition & 1 deletion crypto/ec/ecp_smpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ int ec_GFp_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
}
form = buf[0];
y_bit = form & 1;
form = form & ~1;
form = form & ~1U;
if ((form != 0) && (form != POINT_CONVERSION_COMPRESSED)
&& (form != POINT_CONVERSION_UNCOMPRESSED)
&& (form != POINT_CONVERSION_HYBRID))
Expand Down
4 changes: 2 additions & 2 deletions crypto/opensslv.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for
* major minor fix final patch/beta)
*/
#define OPENSSL_VERSION_NUMBER 0x00907040L
#define OPENSSL_VERSION_TEXT "OpenSSL 0.9.7d-dev [fips] xx XXX XXXX"
#define OPENSSL_VERSION_NUMBER 0x00907050L
#define OPENSSL_VERSION_TEXT "OpenSSL 0.9.7e-dev [fips] XX xxx XXXX"
#define OPENSSL_VERSION_PTEXT " part of " OPENSSL_VERSION_TEXT


Expand Down
2 changes: 1 addition & 1 deletion doc/crypto/pem.pod
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,6 @@ is guaranteed to work.
=head1 RETURN CODES

The read routines return either a pointer to the structure read or NULL
is an error occurred.
if an error occurred.

The write routines return 1 for success or 0 for failure.
2 changes: 1 addition & 1 deletion openssl.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%define libmaj 0
%define libmin 9
%define librel 7
%define librev c
%define librev d
Release: 1

%define openssldir /var/ssl
Expand Down
4 changes: 2 additions & 2 deletions ssl/kssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ print_krb5_authdata(char *label, krb5_authdata **adata)
printf("%s, authdata==0\n", label);
return;
}
printf("%s [%p]\n", label, adata);
printf("%s [%p]\n", label, (void *)adata);
#if 0
{
int i;
Expand Down Expand Up @@ -1725,7 +1725,7 @@ kssl_ctx_show(KSSL_CTX *kssl_ctx)
return;
}
else
printf("%p\n", kssl_ctx);
printf("%p\n", (void *)kssl_ctx);

printf("\tservice:\t%s\n",
(kssl_ctx->service_name)? kssl_ctx->service_name: "NULL");
Expand Down
8 changes: 8 additions & 0 deletions ssl/s3_pkt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,14 @@ int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek)
goto err;
}

/* Check we have a cipher to change to */
if (s->s3->tmp.new_cipher == NULL)
{
i=SSL_AD_UNEXPECTED_MESSAGE;
SSLerr(SSL_F_SSL3_GET_CERT_VERIFY,SSL_R_CCS_RECEIVED_EARLY);
goto err;
}

rr->length=0;

if (s->msg_callback)
Expand Down
16 changes: 16 additions & 0 deletions ssl/s3_srvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1597,11 +1597,27 @@ static int ssl3_get_client_key_exchange(SSL *s)

n2s(p,i);
enc_ticket.length = i;

if (n < enc_ticket.length + 6)
{
SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE,
SSL_R_DATA_LENGTH_TOO_LONG);
goto err;
}

enc_ticket.data = (char *)p;
p+=enc_ticket.length;

n2s(p,i);
authenticator.length = i;

if (n < enc_ticket.length + authenticator.length + 6)
{
SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE,
SSL_R_DATA_LENGTH_TOO_LONG);
goto err;
}

authenticator.data = (char *)p;
p+=authenticator.length;

Expand Down
2 changes: 1 addition & 1 deletion tools/c_issuer
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
for i in $*
do
n=`openssl x509 -issuer -noout -in $i`
echo "$i\t$n"
echo "$i $n"
done

0 comments on commit 2fb2e00

Please sign in to comment.