summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2008-10-13 11:58:24 +0000
committerCedric BAIL <cedric.bail@free.fr>2008-10-13 11:58:24 +0000
commit4c0daa8810e0b793d8947ac431411515df3f2478 (patch)
tree39c0d23c5dfebd395cff877154720fe6e7497155
parentb5c61b17c1a6cb3c3c9453206e13002d82ab8611 (diff)
Remove some more warning.
SVN revision: 36616
-rw-r--r--legacy/eet/src/lib/eet_cypher.c30
1 files changed, 26 insertions, 4 deletions
diff --git a/legacy/eet/src/lib/eet_cypher.c b/legacy/eet/src/lib/eet_cypher.c
index dcaab55357..29b09f3b83 100644
--- a/legacy/eet/src/lib/eet_cypher.c
+++ b/legacy/eet/src/lib/eet_cypher.c
@@ -17,6 +17,10 @@
17# include <openssl/dsa.h> 17# include <openssl/dsa.h>
18#endif 18#endif
19 19
20#ifdef HAVE_NETINET_IN_H
21# include <netinet/in.h>
22#endif
23
20#include "Eet.h" 24#include "Eet.h"
21#include "Eet_private.h" 25#include "Eet_private.h"
22 26
@@ -134,16 +138,16 @@ Eet_Error
134eet_identity_sign(FILE *fp, Eet_Key *key) 138eet_identity_sign(FILE *fp, Eet_Key *key)
135{ 139{
136#ifdef HAVE_SIGNATURE 140#ifdef HAVE_SIGNATURE
141 Eet_Error err = EET_ERROR_NONE;
137 unsigned char *x509_der = NULL; 142 unsigned char *x509_der = NULL;
138 void *sign = NULL; 143 void *sign = NULL;
139 void *data; 144 void *data;
140 int head[3]; 145 int head[3];
141 EVP_MD_CTX md_ctx; 146 unsigned int sign_length;
142 struct stat st_buf;
143 Eet_Error err = EET_ERROR_NONE;
144 int sign_length;
145 int x509_length; 147 int x509_length;
146 int fd; 148 int fd;
149 EVP_MD_CTX md_ctx;
150 struct stat st_buf;
147 151
148 /* A few check and flush pending write. */ 152 /* A few check and flush pending write. */
149 if (!fp 153 if (!fp
@@ -320,7 +324,16 @@ Eet_Error
320eet_cypher(void *data, unsigned int size, const char *key, unsigned int length) 324eet_cypher(void *data, unsigned int size, const char *key, unsigned int length)
321{ 325{
322#ifdef HAVE_CYPHER 326#ifdef HAVE_CYPHER
327 (void) data;
328 (void) size;
329 (void) key;
330 (void) length;
331 return EET_ERROR_NOT_IMPLEMENTED;
323#else 332#else
333 (void) data;
334 (void) size;
335 (void) key;
336 (void) length;
324 return EET_ERROR_NOT_IMPLEMENTED; 337 return EET_ERROR_NOT_IMPLEMENTED;
325#endif 338#endif
326} 339}
@@ -329,7 +342,16 @@ Eet_Error
329eet_decypher(void *data, unsigned int size, const char *key, unsigned int length) 342eet_decypher(void *data, unsigned int size, const char *key, unsigned int length)
330{ 343{
331#ifdef HAVE_CYPHER 344#ifdef HAVE_CYPHER
345 (void) data;
346 (void) size;
347 (void) key;
348 (void) length;
349 return EET_ERROR_NOT_IMPLEMENTED;
332#else 350#else
351 (void) data;
352 (void) size;
353 (void) key;
354 (void) length;
333 return EET_ERROR_NOT_IMPLEMENTED; 355 return EET_ERROR_NOT_IMPLEMENTED;
334#endif 356#endif
335} 357}