summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/engine
diff options
context:
space:
mode:
authormiod <>2015-02-10 09:46:30 +0000
committermiod <>2015-02-10 09:46:30 +0000
commitc54f1e6efb3beda80d415ba75614cbc695f799be (patch)
tree8bb4657eb5417a2a0ea6710585ef13aa7b25433c /src/lib/libcrypto/engine
parentbedef42af36243e74221aa77e809718c15fae035 (diff)
downloadopenbsd-c54f1e6efb3beda80d415ba75614cbc695f799be.tar.gz
openbsd-c54f1e6efb3beda80d415ba75614cbc695f799be.tar.bz2
openbsd-c54f1e6efb3beda80d415ba75614cbc695f799be.zip
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@
Diffstat (limited to 'src/lib/libcrypto/engine')
-rw-r--r--src/lib/libcrypto/engine/eng_aesni.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/libcrypto/engine/eng_aesni.c b/src/lib/libcrypto/engine/eng_aesni.c
index 94c4c1fb6a..5f9a36236a 100644
--- a/src/lib/libcrypto/engine/eng_aesni.c
+++ b/src/lib/libcrypto/engine/eng_aesni.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: eng_aesni.c,v 1.7 2014/07/11 08:44:48 jsing Exp $ */ 1/* $OpenBSD: eng_aesni.c,v 1.8 2015/02/10 09:46:30 miod Exp $ */
2/* 2/*
3 * Support for Intel AES-NI intruction set 3 * Support for Intel AES-NI intruction set
4 * Author: Huang Ying <ying.huang@intel.com> 4 * Author: Huang Ying <ying.huang@intel.com>
@@ -73,7 +73,6 @@
73 * 73 *
74 */ 74 */
75 75
76#include <assert.h>
77#include <stdio.h> 76#include <stdio.h>
78 77
79#include <openssl/opensslconf.h> 78#include <openssl/opensslconf.h>
@@ -156,8 +155,6 @@ aesni_cfb128_encrypt(const unsigned char *in, unsigned char *out,
156 unsigned int n; 155 unsigned int n;
157 size_t l = 0; 156 size_t l = 0;
158 157
159 assert(in && out && key && ivec && num);
160
161 n = *num; 158 n = *num;
162 159
163 if (enc) { 160 if (enc) {
@@ -261,8 +258,6 @@ aesni_ofb128_encrypt(const unsigned char *in, unsigned char *out,
261 unsigned int n; 258 unsigned int n;
262 size_t l = 0; 259 size_t l = 0;
263 260
264 assert(in && out && key && ivec && num);
265
266 n = *num; 261 n = *num;
267 262
268#if !defined(OPENSSL_SMALL_FOOTPRINT) 263#if !defined(OPENSSL_SMALL_FOOTPRINT)