]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Refactored: Moved crypto.h inline functions to end of file
authorAdriaan de Jong <dejong@fox-it.com>
Thu, 23 Jun 2011 15:52:47 +0000 (17:52 +0200)
committerDavid Sommerseth <davids@redhat.com>
Wed, 19 Oct 2011 20:17:22 +0000 (22:17 +0200)
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>
crypto.h

index 1d19d2a67b640c5315b4380696418187b51c9bcc..dd2dda3b0013967a5e9f3589f93cfad1e61513ed 100644 (file)
--- a/crypto.h
+++ b/crypto.h
@@ -479,16 +479,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 */