diff options
author | Damien Miller <djm@mindrot.org> | 2015-01-15 02:21:31 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-15 02:28:36 +1100 |
commit | 72ef7c148c42db7d5632a29f137f8b87b579f2d9 (patch) | |
tree | 47954a387f4260cc8b1e0ff33bbbaf22fd6f11fc /cipher-aesctr.c | |
parent | 4f38c61c68ae7e3f9ee4b3c38bc86cd39f65ece9 (diff) |
support --without-openssl at configure time
Disables and removes dependency on OpenSSL. Many features don't
work and the set of crypto options is greatly restricted. This
will only work on system with native arc4random or /dev/urandom.
Considered highly experimental for now.
Diffstat (limited to 'cipher-aesctr.c')
-rw-r--r-- | cipher-aesctr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cipher-aesctr.c b/cipher-aesctr.c index e13615195..850bbf7db 100644 --- a/cipher-aesctr.c +++ b/cipher-aesctr.c | |||
@@ -18,6 +18,8 @@ | |||
18 | #include <sys/types.h> | 18 | #include <sys/types.h> |
19 | #include <string.h> | 19 | #include <string.h> |
20 | 20 | ||
21 | #ifndef WITH_OPENSSL | ||
22 | |||
21 | #include "cipher-aesctr.h" | 23 | #include "cipher-aesctr.h" |
22 | 24 | ||
23 | /* | 25 | /* |
@@ -76,3 +78,4 @@ aesctr_encrypt_bytes(aesctr_ctx *x,const u8 *m,u8 *c,u32 bytes) | |||
76 | n = (n + 1) % AES_BLOCK_SIZE; | 78 | n = (n + 1) % AES_BLOCK_SIZE; |
77 | } | 79 | } |
78 | } | 80 | } |
81 | #endif /* !WITH_OPENSSL */ | ||