mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 12:02:28 +02:00
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>
This commit is contained in:
parent
279a308eed
commit
76dafacecd
21
crypto.h
21
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user