forked from enlightenment/efl
parent
fbfb3ec61a
commit
e0e6fd9201
|
@ -1,3 +1,10 @@
|
||||||
|
2012-09-27 Patryk Kaczmarek <patryk.k@samsung.com>
|
||||||
|
|
||||||
|
* Add eet file handle null checks to eet_data_write_cipher(),
|
||||||
|
eet_data_descriptor_decode_cipher(),
|
||||||
|
eet_data_descriptor_encode_cipher(), eet_data_xattr_cipher_get(),
|
||||||
|
eet_data_xattr_cipher_set().
|
||||||
|
|
||||||
2012-09-27 Carsten Haitzler (The Rasterman)
|
2012-09-27 Carsten Haitzler (The Rasterman)
|
||||||
|
|
||||||
* Fix return value of eina_mmap_safety_enabled_set() and
|
* Fix return value of eina_mmap_safety_enabled_set() and
|
||||||
|
|
|
@ -1821,6 +1821,7 @@ typedef int (*Eet_Key_Password_Callback)(char *buffer, int size, int rwflag, voi
|
||||||
*
|
*
|
||||||
* @see eet_identity_close()
|
* @see eet_identity_close()
|
||||||
*
|
*
|
||||||
|
* @warning You need to compile signature support in EET.
|
||||||
* @since 1.2.0
|
* @since 1.2.0
|
||||||
* @ingroup Eet_Cipher_Group
|
* @ingroup Eet_Cipher_Group
|
||||||
*/
|
*/
|
||||||
|
@ -1863,6 +1864,7 @@ eet_identity_set(Eet_File *ef,
|
||||||
* @param key the handle to print.
|
* @param key the handle to print.
|
||||||
* @param out where to print.
|
* @param out where to print.
|
||||||
*
|
*
|
||||||
|
* @warning You need to compile signature support in EET.
|
||||||
* @since 1.2.0
|
* @since 1.2.0
|
||||||
* @ingroup Eet_Cipher_Group
|
* @ingroup Eet_Cipher_Group
|
||||||
*/
|
*/
|
||||||
|
@ -1922,6 +1924,7 @@ eet_identity_sha1(Eet_File *ef,
|
||||||
* @param der_length The length the certificate.
|
* @param der_length The length the certificate.
|
||||||
* @param out where to print.
|
* @param out where to print.
|
||||||
*
|
*
|
||||||
|
* @warning You need to compile signature support in EET.
|
||||||
* @since 1.2.0
|
* @since 1.2.0
|
||||||
* @ingroup Eet_Cipher_Group
|
* @ingroup Eet_Cipher_Group
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2149,6 +2149,8 @@ eet_data_write_cipher(Eet_File *ef,
|
||||||
int size;
|
int size;
|
||||||
int val;
|
int val;
|
||||||
|
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(edd, 0);
|
||||||
|
|
||||||
ed = eet_dictionary_get(ef);
|
ed = eet_dictionary_get(ef);
|
||||||
|
|
||||||
data_enc = _eet_data_descriptor_encode(ed, edd, data, &size);
|
data_enc = _eet_data_descriptor_encode(ed, edd, data, &size);
|
||||||
|
@ -4737,6 +4739,8 @@ eet_data_descriptor_decode_cipher(Eet_Data_Descriptor *edd,
|
||||||
Eet_Free_Context context;
|
Eet_Free_Context context;
|
||||||
unsigned int deciphered_len = size_in;
|
unsigned int deciphered_len = size_in;
|
||||||
|
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL);
|
||||||
|
|
||||||
if (cipher_key && data_in)
|
if (cipher_key && data_in)
|
||||||
if (eet_decipher(data_in, size_in, cipher_key,
|
if (eet_decipher(data_in, size_in, cipher_key,
|
||||||
strlen(cipher_key), &deciphered, &deciphered_len))
|
strlen(cipher_key), &deciphered, &deciphered_len))
|
||||||
|
@ -4938,6 +4942,8 @@ eet_data_descriptor_encode_cipher(Eet_Data_Descriptor *edd,
|
||||||
unsigned int ciphered_len = 0;
|
unsigned int ciphered_len = 0;
|
||||||
int size;
|
int size;
|
||||||
|
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL);
|
||||||
|
|
||||||
ret = _eet_data_descriptor_encode(NULL, edd, data_in, &size);
|
ret = _eet_data_descriptor_encode(NULL, edd, data_in, &size);
|
||||||
if (cipher_key && ret)
|
if (cipher_key && ret)
|
||||||
{
|
{
|
||||||
|
@ -4983,6 +4989,8 @@ eet_data_xattr_cipher_get(const char *filename,
|
||||||
void *ret;
|
void *ret;
|
||||||
ssize_t size;
|
ssize_t size;
|
||||||
|
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL);
|
||||||
|
|
||||||
blob = eina_xattr_get(filename, attribute, &size);
|
blob = eina_xattr_get(filename, attribute, &size);
|
||||||
if (!blob) return NULL;
|
if (!blob) return NULL;
|
||||||
|
|
||||||
|
@ -5004,6 +5012,8 @@ eet_data_xattr_cipher_set(const char *filename,
|
||||||
int size;
|
int size;
|
||||||
Eina_Bool ret;
|
Eina_Bool ret;
|
||||||
|
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(edd, EINA_FALSE);
|
||||||
|
|
||||||
blob = eet_data_descriptor_encode_cipher(edd, data, cipher_key, &size);
|
blob = eet_data_descriptor_encode_cipher(edd, data, cipher_key, &size);
|
||||||
if (!blob) return EINA_FALSE;
|
if (!blob) return EINA_FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue