OpenBSD Journal

LibreSSL Will be Portable

Contributed by tbert on from the ssl-on-DOS-we-hardly-knew-ye dept.

Although much internet hand wringing has been performed in the service of "Won't someone think of the child^H^H^H^H^Hportability!", the OpenBSD devs are making changes in OpenBSD itself which will make the upcoming release of LibreSSL more easily portable to other operating systems:

CVSROOT:	/cvs
Module name:	src
Changes by:	deraadt@cvs.openbsd.org	2014/05/08 15:43:49

Modified files:
	lib/libc/stdlib: Makefile.inc malloc.c 
Added files:
	lib/libc/stdlib: reallocarray.c 

Log message:
move reallocarray() to a seperate file so that -portable applications
can avoid reinventing the wheel
ok guenther schwarze

reallocarray(3) was added to address issues found in the OpenSSL source, and now exists as a single, freely-licensed, easily-included file for any and all who require it to make LibreSSL work on their system, as long as that system isn't Irix running Visual C 1.5.2.

(Comments are closed)


Comments
  1. By Anonymous Coward (130.185.136.244) on

    I think reallocarray is already being used in other parts of OpenBSD.
    It's not that I doubt that LibreSSL will be portable, but might this not be to help the OpenSSH developers ( or OpenSMTPd ).

    Comments
    1. By Marc Espie (espie) on

      > I think reallocarray is already being used in other parts of OpenBSD.
      > It's not that I doubt that LibreSSL will be portable, but might this not be to help the OpenSSH developers ( or OpenSMTPd ).
      >

      Actually, the LibreSSL version has diverged so much from openssl already that it would be a pain to merge further changes in six months. So it's much easier to make it portable, wait until openssl dies, and profit.

      Comments
      1. By Anonymous Coward (79.238.43.227) on

        > > I think reallocarray is already being used in other parts of OpenBSD.
        > > It's not that I doubt that LibreSSL will be portable, but might this not be to help the OpenSSH developers ( or OpenSMTPd ).
        > >
        >
        > Actually, the LibreSSL version has diverged so much from openssl already that it would be a pain to merge further changes in six months. So it's much easier to make it portable, wait until openssl dies, and profit.

        But OpenSSL is updating their logo for platinum-level sponsors, which means they're serious, and will outlast LibreSSL!

        </sarcasm>

    2. By Anonymous Coward (31.17.99.179) on

      > I think reallocarray is already being used in other parts of OpenBSD.
      > It's not that I doubt that LibreSSL will be portable, but might this
      > not be to help the OpenSSH developers ( or OpenSMTPd ).

      The function reallocarray was already being used and is already being used in OpenBSD. It already "helps" (if that's the word), it already benefits OpenBSD and its related projects. The only change here is that the function is being moved from the OpenBSD malloc file to a separate file to make it easier for non-BSD OSes (which have their own malloc) to import the separate reallocarray file and thus also the function which they otherwise might not have.

      Others should correct me if I'm mistaken about any of the above, but that's what I make of this.

    3. By Anonymous Coward (174.22.209.229) on

      > I think reallocarray is already being used in other parts of OpenBSD.
      > It's not that I doubt that LibreSSL will be portable, but might this not be to help the OpenSSH developers ( or OpenSMTPd ).
      >

      What? Of course. Where have you been? OpenBSD. You got to get it, put it in you. OpenBSD is everywhere. You can't use a computer, you can't manage a switch, you can't cross the Internet, without using code touched by an OpenBSD dev. It is everywhere, android, macos, *bsd. This is just one more small step toward world domination. Look at the writing on the wall. The 30-year plan. time_t change. It's not Theo sneaking in your back door. There are smart devs everywhere; there are smart sysadmins everywhere; there are are smart netadmins everywhere; they are the ones bring in the good dope. Some day you're gonna wake up and your windows box will be nothing more than a gaudy fascad over an OpenBSD userland. And then we'll be ready for the robot apocolypse.

      Whoa.. oh sorry, I put on my puffy t-shirt today, don't know what came over me there...

      Comments
      1. By Anonymous Coward (68.148.29.82) on

        > Whoa.. oh sorry, I put on my puffy t-shirt today, don't know what came over me there...
        >

        Was it diarrhea?

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]