Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Introduce widget type application/vnd.agl.resource
[src/app-framework-main.git]
/
src
/
wgtpkg-xmlsec.c
diff --git
a/src/wgtpkg-xmlsec.c
b/src/wgtpkg-xmlsec.c
index
6b5f646
..
fe1a581
100644
(file)
--- a/
src/wgtpkg-xmlsec.c
+++ b/
src/wgtpkg-xmlsec.c
@@
-1,5
+1,7
@@
/*
/*
- Copyright 2015 IoT.bzh
+ Copyright (C) 2015-2019 IoT.bzh
+
+ author: José Bollo <jose.bollo@iot.bzh>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@
-33,7
+35,9
@@
#include "verbose.h"
#include "verbose.h"
-#include "wgtpkg.h"
+#include "wgtpkg-files.h"
+#include "wgtpkg-workdir.h"
+#include "wgtpkg-xmlsec.h"
static int initstatus;
static int initdone;
static int initstatus;
static int initdone;
@@
-76,7
+80,7
@@
static void *file_open_cb(const char *file)
/* read the opened file */
static int file_read_cb(void *context, char *buffer, int len)
{
/* read the opened file */
static int file_read_cb(void *context, char *buffer, int len)
{
- size_t r = fread(buffer, 1, len, (FILE*)context);
+ size_t r = fread(buffer, 1,
(unsigned)
len, (FILE*)context);
return r ? (int)r : feof((FILE*)context) ? 0 : - 1;
}
return r ? (int)r : feof((FILE*)context) ? 0 : - 1;
}
@@
-270,7
+274,7
@@
static const struct { const char *id; const char *xml; } properties[2] = {
/* create a signature of 'index' (0 for author, other values for distributors)
using the private 'key' (filename) and the certificates 'certs' (filenames)
as trusted chain */
/* create a signature of 'index' (0 for author, other values for distributors)
using the private 'key' (filename) and the certificates 'certs' (filenames)
as trusted chain */
-xmlDocPtr xmlsec_create(int index, const char *key, const char **certs)
+xmlDocPtr xmlsec_create(
unsigned
int index, const char *key, const char **certs)
{
unsigned int i, fc, mask;
struct filedesc *fdesc;
{
unsigned int i, fc, mask;
struct filedesc *fdesc;