projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow tinc to be compiled without OpenSSL.
[tinc]
/
src
/
cipher.h
diff --git
a/src/cipher.h
b/src/cipher.h
index
47cd1cd
..
f194c0d
100644
(file)
--- a/
src/cipher.h
+++ b/
src/cipher.h
@@
-24,6
+24,8
@@
#define CIPHER_MAX_IV_SIZE 16
#define CIPHER_MAX_KEY_SIZE 32
#define CIPHER_MAX_IV_SIZE 16
#define CIPHER_MAX_KEY_SIZE 32
+#ifndef DISABLE_LEGACY
+
typedef struct cipher cipher_t;
extern cipher_t *cipher_open_by_name(const char *) __attribute__ ((__malloc__));
typedef struct cipher cipher_t;
extern cipher_t *cipher_open_by_name(const char *) __attribute__ ((__malloc__));
@@
-40,3
+42,5
@@
extern int cipher_get_nid(const cipher_t *);
extern bool cipher_active(const cipher_t *);
#endif
extern bool cipher_active(const cipher_t *);
#endif
+
+#endif