diff options
Diffstat (limited to 'src/lib/emile/emile_cipher.h')
-rw-r--r-- | src/lib/emile/emile_cipher.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/emile/emile_cipher.h b/src/lib/emile/emile_cipher.h index 9e24de3a45..259073cbc2 100644 --- a/src/lib/emile/emile_cipher.h +++ b/src/lib/emile/emile_cipher.h @@ -46,14 +46,18 @@ typedef enum _Emile_Cipher_Algorithm * * @since 1.14 */ +#ifndef EMILE_HEADER_ONLY EMILE_API Eina_Bool emile_cipher_init(void); +#endif /** * Get the name of the current used backend. * * @return the name of the current cipher backend. * @since 1.14 */ +#ifndef EMILE_HEADER_ONLY EMILE_API Emile_Cipher_Backend emile_cipher_module_get(void); +#endif /** * Cipher a buffer with a defined algorithm and key. @@ -66,7 +70,9 @@ EMILE_API Emile_Cipher_Backend emile_cipher_module_get(void); * * @since 1.14 */ +#ifndef EMILE_HEADER_ONLY EMILE_API Eina_Binbuf *emile_binbuf_cipher(Emile_Cipher_Algorithm algo, const Eina_Binbuf * in, const char *key, unsigned int length); +#endif /** * Decipher a buffer with a defined algorithm and key. @@ -83,7 +89,9 @@ EMILE_API Eina_Binbuf *emile_binbuf_cipher(Emile_Cipher_Algorithm algo, const Ei * * @since 1.14 */ +#ifndef EMILE_HEADER_ONLY EMILE_API Eina_Binbuf *emile_binbuf_decipher(Emile_Cipher_Algorithm algo, const Eina_Binbuf * in, const char *key, unsigned int length); +#endif #ifdef EFL_BETA_API_SUPPORT @@ -102,6 +110,7 @@ typedef enum EMILE_WANT_WRITE = 3 } Emile_Want_Type; +#ifndef EMILE_HEADER_ONLY EMILE_API Eina_Bool emile_binbuf_hmac_sha1(const char *key, unsigned int key_len, const Eina_Binbuf * data, unsigned char digest[20]); EMILE_API Eina_Bool emile_binbuf_sha1(const Eina_Binbuf * data, unsigned char digest[20]); @@ -125,6 +134,7 @@ EMILE_API void emile_cipher_verify_set(Emile_SSL * emile, Eina_Bool verify); EMILE_API void emile_cipher_verify_basic_set(Emile_SSL * emile, Eina_Bool verify_basic); EMILE_API Eina_Bool emile_cipher_verify_get(const Emile_SSL * emile); EMILE_API Eina_Bool emile_cipher_verify_basic_get(const Emile_SSL * emile); +#endif #endif |