diff options
| author | miod <> | 2015-02-10 09:46:30 +0000 |
|---|---|---|
| committer | miod <> | 2015-02-10 09:46:30 +0000 |
| commit | 03858c0228d8ccda7d170fe43e0be79cd0dc6e5b (patch) | |
| tree | 8bb4657eb5417a2a0ea6710585ef13aa7b25433c /src/lib/libcrypto/aes/aes_ecb.c | |
| parent | ce353b3f386d415a03ecda102110c5c3f9899966 (diff) | |
| download | openbsd-03858c0228d8ccda7d170fe43e0be79cd0dc6e5b.tar.gz openbsd-03858c0228d8ccda7d170fe43e0be79cd0dc6e5b.tar.bz2 openbsd-03858c0228d8ccda7d170fe43e0be79cd0dc6e5b.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/aes/aes_ecb.c')
| -rw-r--r-- | src/lib/libcrypto/aes/aes_ecb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libcrypto/aes/aes_ecb.c b/src/lib/libcrypto/aes/aes_ecb.c index 976c48fdbc..b05e53994b 100644 --- a/src/lib/libcrypto/aes/aes_ecb.c +++ b/src/lib/libcrypto/aes/aes_ecb.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: aes_ecb.c,v 1.5 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: aes_ecb.c,v 1.6 2015/02/10 09:46:30 miod Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -54,7 +54,6 @@ | |||
| 54 | # define NDEBUG | 54 | # define NDEBUG |
| 55 | # endif | 55 | # endif |
| 56 | #endif | 56 | #endif |
| 57 | #include <assert.h> | ||
| 58 | 57 | ||
| 59 | #include <openssl/aes.h> | 58 | #include <openssl/aes.h> |
| 60 | #include "aes_locl.h" | 59 | #include "aes_locl.h" |
| @@ -63,9 +62,6 @@ void | |||
| 63 | AES_ecb_encrypt(const unsigned char *in, unsigned char *out, | 62 | AES_ecb_encrypt(const unsigned char *in, unsigned char *out, |
| 64 | const AES_KEY *key, const int enc) | 63 | const AES_KEY *key, const int enc) |
| 65 | { | 64 | { |
| 66 | assert(in && out && key); | ||
| 67 | assert((AES_ENCRYPT == enc) || (AES_DECRYPT == enc)); | ||
| 68 | |||
| 69 | if (AES_ENCRYPT == enc) | 65 | if (AES_ENCRYPT == enc) |
| 70 | AES_encrypt(in, out, key); | 66 | AES_encrypt(in, out, key); |
| 71 | else | 67 | else |
