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)
20 #include <openssl/evp.h>
21 #include <openssl/x509.h>
22 #include <openssl/pem.h>
25 typedef struct _Eet_String Eet_String;
46 unsigned int converted : 1;
47 unsigned int is_float : 1;
50 struct _Eet_Dictionary
71 EVP_PKEY *private_key;
75 Eet_Dictionary *eet_dictionary_add(void);
76 void eet_dictionary_free(Eet_Dictionary *ed);
77 int eet_dictionary_string_add(Eet_Dictionary *ed, const char *string);
78 int eet_dictionary_string_get_size(const Eet_Dictionary *ed, int index);
79 const char *eet_dictionary_string_get_char(const Eet_Dictionary *ed, int index);
80 int eet_dictionary_string_get_float(const Eet_Dictionary *ed, int index, float *result);
81 int eet_dictionary_string_get_double(const Eet_Dictionary *ed, int index, double *result);
82 int eet_dictionary_string_get_hash(const Eet_Dictionary *ed, int index);
84 int _eet_hash_gen(const char *key, int hash_size);
86 const void* eet_identity_check(const void *data_base, unsigned int data_length,
87 const void *signature_base, unsigned int signature_length,
89 Eet_Error eet_cypher(void *data, unsigned int size, const char *key, unsigned int length);
90 Eet_Error eet_decypher(void *data, unsigned int size, const char *key, unsigned int length);
91 Eet_Error eet_identity_sign(FILE *fp, Eet_Key *key);
92 void eet_identity_unref(Eet_Key *key);
93 void eet_identity_ref(Eet_Key *key);
100 #define EET_ASSERT(Test, Do) if (Test == 0) Do;
102 #define EET_ASSERT(Test, Do) if (Test == 0) abort();