From 03858c0228d8ccda7d170fe43e0be79cd0dc6e5b Mon Sep 17 00:00:00 2001 From: miod <> Date: Tue, 10 Feb 2015 09:46:30 +0000 Subject: Remove assert() or OPENSSL_assert() of pointers being non-NULL. The policy for libraries in OpenBSD is to deliberately let NULL pointers cause a SIGSEGV. ok doug@ jsing@ --- src/lib/libcrypto/gost/gost2814789.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/lib/libcrypto/gost') diff --git a/src/lib/libcrypto/gost/gost2814789.c b/src/lib/libcrypto/gost/gost2814789.c index e1084cb4ac..b1bef9eae3 100644 --- a/src/lib/libcrypto/gost/gost2814789.c +++ b/src/lib/libcrypto/gost/gost2814789.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gost2814789.c,v 1.3 2014/12/07 16:33:51 jsing Exp $ */ +/* $OpenBSD: gost2814789.c,v 1.4 2015/02/10 09:46:30 miod Exp $ */ /* * Copyright (c) 2014 Dmitry Eremin-Solenikov * Copyright (c) 2005-2006 Cryptocom LTD @@ -212,8 +212,6 @@ Gost2814789_cfb64_encrypt(const unsigned char *in, unsigned char *out, unsigned int n; size_t l = 0; - OPENSSL_assert(in && out && key && ivec && num); - n = *num; if (enc) { @@ -357,8 +355,6 @@ Gost2814789_cnt_encrypt(const unsigned char *in, unsigned char *out, size_t len, unsigned int n; size_t l = 0; - OPENSSL_assert(in && out && key && cnt_buf && num); - n = *num; #if !defined(OPENSSL_SMALL_FOOTPRINT) -- cgit v1.2.3-55-g6feb