From c54f1e6efb3beda80d415ba75614cbc695f799be 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/modes/cfb128.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/lib/libcrypto/modes/cfb128.c') diff --git a/src/lib/libcrypto/modes/cfb128.c b/src/lib/libcrypto/modes/cfb128.c index 593c337e8b..8399f0c5be 100644 --- a/src/lib/libcrypto/modes/cfb128.c +++ b/src/lib/libcrypto/modes/cfb128.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cfb128.c,v 1.3 2014/06/12 15:49:30 deraadt Exp $ */ +/* $OpenBSD: cfb128.c,v 1.4 2015/02/10 09:46:30 miod Exp $ */ /* ==================================================================== * Copyright (c) 2008 The OpenSSL Project. All rights reserved. * @@ -58,7 +58,6 @@ # define NDEBUG # endif #endif -#include /* The input and output encrypted as though 128bit cfb mode is being * used. The extra state information to record how much of the @@ -72,8 +71,6 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, unsigned int n; size_t l = 0; - assert(in && out && key && ivec && num); - n = *num; if (enc) { @@ -215,9 +212,6 @@ void CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out, size_t n; unsigned char c[1],d[1]; - assert(in && out && key && ivec && num); - assert(*num == 0); - for(n=0 ; n