diff options
author | Adriaan de Jong <dejong@fox-it.com> | 2011-06-23 17:52:47 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-10-19 22:17:22 +0200 |
commit | 76dafacecdcdf30a8278ab3abcec64831e95054f (patch) | |
tree | c737b614e7e2fbfea75b2da97d06d0f379ef2025 | |
parent | 279a308eed40d756cf6644c5a1a82f2aecda8dd8 (diff) | |
download | openvpn-76dafacecdcdf30a8278ab3abcec64831e95054f.tar.gz openvpn-76dafacecdcdf30a8278ab3abcec64831e95054f.tar.xz openvpn-76dafacecdcdf30a8278ab3abcec64831e95054f.zip |
Refactored: Moved crypto.h inline functions to end of file
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r-- | crypto.h | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -480,16 +480,6 @@ void free_ssl_lib (void); #endif /* USE_SSL */ /* - * Inline functions - */ - -static inline bool -key_ctx_bi_defined(const struct key_ctx_bi* key) -{ - return key->encrypt.cipher || key->encrypt.hmac || key->decrypt.cipher || key->decrypt.hmac; -} - -/* * md5 functions */ @@ -509,5 +499,16 @@ void md5_digest_clear (struct md5_digest *digest); bool md5_digest_defined (const struct md5_digest *digest); bool md5_digest_equal (const struct md5_digest *d1, const struct md5_digest *d2); +/* + * Inline functions + */ + +static inline bool +key_ctx_bi_defined(const struct key_ctx_bi* key) +{ + return key->encrypt.cipher || key->encrypt.hmac || key->decrypt.cipher || key->decrypt.hmac; +} + + #endif /* USE_CRYPTO */ #endif /* CRYPTO_H */ |