VirtualBox

Changeset 51902 in vbox for trunk/src


Ignore:
Timestamp:
Jul 7, 2014 12:12:40 PM (11 years ago)
Author:
vboxsync
Message:

Fall back on our own MD2 if OpenSSL doesn't include it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/checksum/openssl-md2.cpp

    r51851 r51902  
    3131#include "internal/iprt.h"
    3232
    33 #include <openssl/md2.h>
     33#include <openssl/opensslconf.h>
     34#ifndef OPENSSL_NO_MD2
     35# include <openssl/md2.h>
    3436
    35 #define RT_MD2_PRIVATE_CONTEXT
    36 #include <iprt/md2.h>
     37# define RT_MD2_PRIVATE_CONTEXT
     38# include <iprt/md2.h>
    3739
    38 #include <iprt/assert.h>
     40# include <iprt/assert.h>
    3941
    4042AssertCompile(RT_SIZEOFMEMB(RTMD2CONTEXT, abPadding) >= RT_SIZEOFMEMB(RTMD2CONTEXT, Private));
     
    7173RT_EXPORT_SYMBOL(RTMd2Final);
    7274
     75
     76#else /* OPENSSL_NO_MD2 */
     77/*
     78 * If the OpenSSL build doesn't have MD2, use the IPRT implementation.
     79 */
     80# include "alt-md2.cpp"
     81#endif /* OPENSSL_NO_MD2 */
     82
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette