summaryrefslogtreecommitdiff
path: root/src/lib/eet
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-12-03 09:32:39 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-12-05 21:04:36 +0100
commit3b44645363dcdd561edd9610a64f3d2c382753a9 (patch)
tree64f6c4a580e563e79ca3f1867ae510025052fd64 /src/lib/eet
parentd2a7882b732b4cc3a8e7b11ec1c4336bdc2029bb (diff)
efl: add binary mode to f(re)open() calls
This allows better compatibility with Windows Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/eet')
-rw-r--r--src/lib/eet/Eet.h4
-rw-r--r--src/lib/eet/eet_cipher.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eet/Eet.h b/src/lib/eet/Eet.h
index 62074fd40d..c861165c09 100644
--- a/src/lib/eet/Eet.h
+++ b/src/lib/eet/Eet.h
@@ -3224,7 +3224,7 @@ typedef void (*Eet_Dump_Callback)(void *data, const char *str);
3224 * int len; 3224 * int len;
3225 * void *data; 3225 * void *data;
3226 * 3226 *
3227 * f = fopen(file, "r"); 3227 * f = fopen(file, "rb");
3228 * fseek(f, 0, SEEK_END); 3228 * fseek(f, 0, SEEK_END);
3229 * len = ftell(f); 3229 * len = ftell(f);
3230 * rewind(f); 3230 * rewind(f);
@@ -4030,7 +4030,7 @@ eet_data_xattr_cipher_set(const char *filename,
4030 * int len; 4030 * int len;
4031 * void *data; 4031 * void *data;
4032 * 4032 *
4033 * f = fopen(file, "r"); 4033 * f = fopen(file, "rb");
4034 * fseek(f, 0, SEEK_END); 4034 * fseek(f, 0, SEEK_END);
4035 * len = ftell(f); 4035 * len = ftell(f);
4036 * rewind(f); 4036 * rewind(f);
diff --git a/src/lib/eet/eet_cipher.c b/src/lib/eet/eet_cipher.c
index aa57e5caab..a34fdfff4b 100644
--- a/src/lib/eet/eet_cipher.c
+++ b/src/lib/eet/eet_cipher.c
@@ -192,7 +192,7 @@ on_error:
192 if (!emile_cipher_init()) return NULL; 192 if (!emile_cipher_init()) return NULL;
193 193
194 /* Load the X509 certificate in memory. */ 194 /* Load the X509 certificate in memory. */
195 fp = fopen(certificate_file, "r"); 195 fp = fopen(certificate_file, "rb");
196 if (!fp) 196 if (!fp)
197 return NULL; 197 return NULL;
198 198
@@ -207,7 +207,7 @@ on_error:
207 goto on_error; 207 goto on_error;
208 208
209 /* Load the private key in memory. */ 209 /* Load the private key in memory. */
210 fp = fopen(private_key_file, "r"); 210 fp = fopen(private_key_file, "rb");
211 if (!fp) 211 if (!fp)
212 goto on_error; 212 goto on_error;
213 213