Ticket #53087: patch-libressl-compat.diff

File patch-libressl-compat.diff, 949 bytes (added by jerryyhom, 8 years ago)
  • include/libssl_compat.h

    old new  
    2525#include "openssl/rsa.h"
    2626
    2727/* ----------------------------------------------------------------- */
    28 #if OPENSSL_VERSION_NUMBER < 0x10100000L
     28#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
    2929/* ----------------------------------------------------------------- */
    3030
    3131# include <openssl/objects.h>
  • libntp/libssl_compat.c

    old new  
    2323#include "ntp_types.h"
    2424
    2525/* ----------------------------------------------------------------- */
    26 #if OPENSSL_VERSION_NUMBER < 0x10100000L
     26#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
    2727/* ----------------------------------------------------------------- */
    2828
    2929#include "libssl_compat.h"