openbsd-ports/net/ejabberd/patches/patch-src_tls_sha_drv_c
2010-10-07 17:00:18 +00:00

28 lines
823 B
Plaintext

$OpenBSD: patch-src_tls_sha_drv_c,v 1.1 2010/10/07 17:00:18 jasper Exp $
Disable MD2 as this is disabled in OpenSSL now.
Patch via from Gentoo via https://support.process-one.net/browse/EJAB-1285
--- src/tls/sha_drv.c.orig Wed Oct 6 13:18:03 2010
+++ src/tls/sha_drv.c Wed Oct 6 13:18:16 2010
@@ -20,7 +20,6 @@
#include <erl_driver.h>
#include <openssl/sha.h>
-#include <openssl/md2.h>
static ErlDrvData sha_drv_start(ErlDrvPort port, char *buf)
{
@@ -36,11 +35,6 @@ static int sha_drv_control(ErlDrvData handle,
ErlDrvBinary *b = NULL;
switch (command) {
- case 2:
- rlen = MD2_DIGEST_LENGTH;
- b = driver_alloc_binary(rlen);
- if (b) MD2((unsigned char*)buf, len, (unsigned char*)b->orig_bytes);
- break;
case 224:
rlen = SHA224_DIGEST_LENGTH;
b = driver_alloc_binary(rlen);