projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.1.0
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
connectivity
/
src
/
adapter_util
/
pkix
/
sn_store.c
diff --git
a/resource/csdk/connectivity/src/adapter_util/pkix/sn_store.c
b/resource/csdk/connectivity/src/adapter_util/pkix/sn_store.c
index
b393fbb
..
f3db429
100644
(file)
--- a/
resource/csdk/connectivity/src/adapter_util/pkix/sn_store.c
+++ b/
resource/csdk/connectivity/src/adapter_util/pkix/sn_store.c
@@
-58,8
+58,8
@@
void FreeSNStore(void)
PKIError StoreSerialNumber(const ByteArray sn)
{
FUNCTION_INIT(
PKIError StoreSerialNumber(const ByteArray sn)
{
FUNCTION_INIT(
- CHECK_NULL(sn.data, PKI_NULL_PASSED);
uint8_t *temp = NULL;
uint8_t *temp = NULL;
+ CHECK_NULL(sn.data, PKI_NULL_PASSED);
);
if (Store.array.len == 0 || Store.array.len + sn.len + 1 > CRL_BLOCK_LEN * Store.blockNumber)
{
);
if (Store.array.len == 0 || Store.array.len + sn.len + 1 > CRL_BLOCK_LEN * Store.blockNumber)
{
@@
-82,7
+82,8
@@
PKIError StoreSerialNumber(const ByteArray sn)
PKIError CheckSerialNumber(const ByteArray sn)
{
FUNCTION_INIT(
PKIError CheckSerialNumber(const ByteArray sn)
{
FUNCTION_INIT(
- int i, res;
+ unsigned long int i;
+ int res;
CHECK_NULL(sn.data, PKI_NULL_PASSED);
);
CHECK_NULL(Store.array.data, PKI_SUCCESS);
CHECK_NULL(sn.data, PKI_NULL_PASSED);
);
CHECK_NULL(Store.array.data, PKI_SUCCESS);