2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
10 // BROKEN in gcc 4 on amd64
11 //# pragma GCC visibility push(hidden)
18 #include <openssl/evp.h>
19 #include <openssl/x509.h>
20 #include <openssl/pem.h>
23 typedef struct _Eet_String Eet_String;
44 unsigned int converted : 1;
45 unsigned int is_float : 1;
48 struct _Eet_Dictionary
69 EVP_PKEY *private_key;
73 Eet_Dictionary *eet_dictionary_add(void);
74 void eet_dictionary_free(Eet_Dictionary *ed);
75 int eet_dictionary_string_add(Eet_Dictionary *ed, const char *string);
76 int eet_dictionary_string_get_size(const Eet_Dictionary *ed, int index);
77 const char *eet_dictionary_string_get_char(const Eet_Dictionary *ed, int index);
78 int eet_dictionary_string_get_float(const Eet_Dictionary *ed, int index, float *result);
79 int eet_dictionary_string_get_double(const Eet_Dictionary *ed, int index, double *result);
80 int eet_dictionary_string_get_hash(const Eet_Dictionary *ed, int index);
82 int _eet_hash_gen(const char *key, int hash_size);
84 const void* eet_identity_check(const void *data_base, unsigned int data_length,
85 const void *signature_base, unsigned int signature_length,
87 Eet_Error eet_cypher(void *data, unsigned int size, const char *key, unsigned int length);
88 Eet_Error eet_decypher(void *data, unsigned int size, const char *key, unsigned int length);
89 Eet_Error eet_identity_sign(FILE *fp, Eet_Key *key);
90 void eet_identity_unref(Eet_Key *key);
91 void eet_identity_ref(Eet_Key *key);
98 #define EET_ASSERT(Test, Do) if (Test == 0) Do;
100 #define EET_ASSERT(Test, Do) if (Test == 0) abort();