diff options
Diffstat (limited to 'src/lib/emile/emile_cipher.h')
-rw-r--r-- | src/lib/emile/emile_cipher.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/lib/emile/emile_cipher.h b/src/lib/emile/emile_cipher.h index 3849c549c9..9e24de3a45 100644 --- a/src/lib/emile/emile_cipher.h +++ b/src/lib/emile/emile_cipher.h @@ -46,14 +46,14 @@ typedef enum _Emile_Cipher_Algorithm * * @since 1.14 */ -EAPI Eina_Bool emile_cipher_init(void); +EMILE_API Eina_Bool emile_cipher_init(void); /** * Get the name of the current used backend. * * @return the name of the current cipher backend. * @since 1.14 */ -EAPI Emile_Cipher_Backend emile_cipher_module_get(void); +EMILE_API Emile_Cipher_Backend emile_cipher_module_get(void); /** * Cipher a buffer with a defined algorithm and key. @@ -66,7 +66,7 @@ EAPI Emile_Cipher_Backend emile_cipher_module_get(void); * * @since 1.14 */ -EAPI Eina_Binbuf *emile_binbuf_cipher(Emile_Cipher_Algorithm algo, const Eina_Binbuf * in, const char *key, unsigned int length); +EMILE_API Eina_Binbuf *emile_binbuf_cipher(Emile_Cipher_Algorithm algo, const Eina_Binbuf * in, const char *key, unsigned int length); /** * Decipher a buffer with a defined algorithm and key. @@ -83,7 +83,7 @@ EAPI Eina_Binbuf *emile_binbuf_cipher(Emile_Cipher_Algorithm algo, const Eina_Bi * * @since 1.14 */ -EAPI Eina_Binbuf *emile_binbuf_decipher(Emile_Cipher_Algorithm algo, const Eina_Binbuf * in, const char *key, unsigned int length); +EMILE_API Eina_Binbuf *emile_binbuf_decipher(Emile_Cipher_Algorithm algo, const Eina_Binbuf * in, const char *key, unsigned int length); #ifdef EFL_BETA_API_SUPPORT @@ -102,29 +102,29 @@ typedef enum EMILE_WANT_WRITE = 3 } Emile_Want_Type; -EAPI Eina_Bool emile_binbuf_hmac_sha1(const char *key, unsigned int key_len, const Eina_Binbuf * data, unsigned char digest[20]); - -EAPI Eina_Bool emile_binbuf_sha1(const Eina_Binbuf * data, unsigned char digest[20]); - - -EAPI Emile_SSL *emile_cipher_server_listen(Emile_Cipher_Type t); -EAPI Emile_SSL *emile_cipher_client_connect(Emile_SSL * server, int fd); -EAPI Emile_SSL *emile_cipher_server_connect(Emile_Cipher_Type t); -EAPI Eina_Bool emile_cipher_free(Emile_SSL * emile); - -EAPI Eina_Bool emile_cipher_cafile_add(Emile_SSL * emile, const char *file); -EAPI Eina_Bool emile_cipher_cert_add(Emile_SSL * emile, const char *file); -EAPI Eina_Bool emile_cipher_privkey_add(Emile_SSL * emile, const char *file); -EAPI Eina_Bool emile_cipher_crl_add(Emile_SSL * emile, const char *file); -EAPI int emile_cipher_read(Emile_SSL * emile, Eina_Binbuf * buffer); -EAPI int emile_cipher_write(Emile_SSL * emile, const Eina_Binbuf * buffer); -EAPI const char *emile_cipher_error_get(const Emile_SSL * emile); -EAPI Eina_Bool emile_cipher_verify_name_set(Emile_SSL * emile, const char *name); -EAPI const char *emile_cipher_verify_name_get(const Emile_SSL * emile); -EAPI void emile_cipher_verify_set(Emile_SSL * emile, Eina_Bool verify); -EAPI void emile_cipher_verify_basic_set(Emile_SSL * emile, Eina_Bool verify_basic); -EAPI Eina_Bool emile_cipher_verify_get(const Emile_SSL * emile); -EAPI Eina_Bool emile_cipher_verify_basic_get(const Emile_SSL * emile); +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]); + + +EMILE_API Emile_SSL *emile_cipher_server_listen(Emile_Cipher_Type t); +EMILE_API Emile_SSL *emile_cipher_client_connect(Emile_SSL * server, int fd); +EMILE_API Emile_SSL *emile_cipher_server_connect(Emile_Cipher_Type t); +EMILE_API Eina_Bool emile_cipher_free(Emile_SSL * emile); + +EMILE_API Eina_Bool emile_cipher_cafile_add(Emile_SSL * emile, const char *file); +EMILE_API Eina_Bool emile_cipher_cert_add(Emile_SSL * emile, const char *file); +EMILE_API Eina_Bool emile_cipher_privkey_add(Emile_SSL * emile, const char *file); +EMILE_API Eina_Bool emile_cipher_crl_add(Emile_SSL * emile, const char *file); +EMILE_API int emile_cipher_read(Emile_SSL * emile, Eina_Binbuf * buffer); +EMILE_API int emile_cipher_write(Emile_SSL * emile, const Eina_Binbuf * buffer); +EMILE_API const char *emile_cipher_error_get(const Emile_SSL * emile); +EMILE_API Eina_Bool emile_cipher_verify_name_set(Emile_SSL * emile, const char *name); +EMILE_API const char *emile_cipher_verify_name_get(const Emile_SSL * emile); +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 |