[PATCH] Switch to OpenSSL 1.0.1 branch



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have upgraded OpenSSL in the base to 0.9.8x for all supported
branches. Now it is time to move *head* to OpenSSL 1.0.1 branch[1].

Here is the patch to switch OpenSSL from 0.9.8x to 1.0.1c:

http://people.freebsd.org/~jkim/openssl-1.0.1c.diff.bz2

I had to compress it because the patch was too big, unfortunately. :-(

Some notes:

- - Configuration is relatively close to what you'd expect when you run
config script with the following options[2]:

enable-rc5 enable-rfc3779 shared

- - MD2 was removed because a) it was deprecated by OpenSSL team and
disabled by default and b) we did the same for libmd.

- - Optimized i386 asm files are updated and new files are added.
Optimized amd64 asm files are added.

- - opensslconf-amd64.h and opensslconf-i386.h are merged to a new
opensslconf-x86.h[3].

- - A small change to libfetch was necessary to avoid buildworld breakage:

- --- lib/libfetch/common.h
+++ lib/libfetch/common.h
@@ -63,7 +63,7 @@ struct fetchconn {
SSL *ssl; /* SSL handle */
SSL_CTX *ssl_ctx; /* SSL context */
X509 *ssl_cert; /* server certificate */
- - SSL_METHOD *ssl_meth; /* SSL method */
+ const SSL_METHOD *ssl_meth; /* SSL method */
#endif
int ref; /* reference count */
};

- - Another small change to OpenSSL was necessary to avoid buildworld
breakage:

- --- crypto/openssl/ssl/srtp.h
+++ crypto/openssl/ssl/srtp.h
@@ -135,7 +135,6 @@
SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);

STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl);
- -SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);

#ifdef __cplusplus
}

It was very briefly tested on amd64 (and on i386 chroot).

Cheers,

Jung-uk Kim

1. We have no plan to switch stable branches to 1.0.X.

2. Add "no-asm" for non-x86 platforms. I believe rc5 and rfc3779 were
forcefully enabled on FreeBSD for POLA.

3. Very minimal changes were done for non-x86 platforms. They need
platform maintainers' attention.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/x3M0ACgkQmlay1b9qnVMClwCdEL1Vq2+r6fm3UAcMXqG0lUeB
+lMAnj9thNnXcgTd8JbzBzdlvfL59i7C
=tJYx
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-security@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: HEADS UP: OpenSSL problems after GCC 4.2 upgrade
    ... with GCC 4.2. ... our OpenSSL maintainerare currently en-route ... best way to fix the code and to integrate the fix into OpenSSL, ... People are advised to patch their ...
    (freebsd-current)
  • Re: HEADS UP: OpenSSL problems after GCC 4.2 upgrade
    ... aggressively de-supported by GCC 4.2 and GCC goes as far as inserting ... Just in case mailing list will eat the attachment, the patch can be ... our OpenSSL maintainerare currently en-route from ... I haven't seen enough reports of this patch working to be really ...
    (freebsd-current)
  • Re: Welche Distris kommen in Frage
    ... Das System mit den Sicherheitsupdates für die Anwender funktionierte ... Valgrind-Warnungen angesprochen, und nachgefragt, ob der Patch ok sei. ... Das sagt mindestens ebenso viel über die Dämlichkeit des OpenSSL Projekts ... Freiheit ist immer die Freiheit der Andersdenkenden. ...
    (de.comp.os.unix.linux.misc)
  • Re: Problems compiling some ports after upgrading to gcc 4.2.0
    ... the program will abort dsaparam.c:436: warning: function called ... Apply this patch and rebuild openssl. ... Fix runtime crash in OpenSSL with "Illegal instruction" by making some ...
    (freebsd-current)
  • Re: Request for test/comments: OpenSSL 0.9.8b import
    ... I have been working on preparing an import of OpenSSL 0.9.8b into the ... currently have in the base system) so I choose to bump the library ... In OpenSSL 0.9.8b the API libmp uses is broken so libmp has been ... The patch can be applied while standing in your src/ directory using: ...
    (freebsd-current)