projects
/
crypto.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New SILC PKCS API, enabling support for other public keys/certs.
[crypto.git]
/
lib
/
silcasn1
/
silcasn1_decode.c
diff --git
a/lib/silcasn1/silcasn1_decode.c
b/lib/silcasn1/silcasn1_decode.c
index 34b93ca26ab182020458843602b5556469b3f439..8fdfef24720343da660036fcb69806fb2d3f6e01 100644
(file)
--- a/
lib/silcasn1/silcasn1_decode.c
+++ b/
lib/silcasn1/silcasn1_decode.c
@@
-4,7
+4,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2003 - 200
5
Pekka Riikonen
+ Copyright (C) 2003 - 200
6
Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-21,7
+21,6
@@
#include "silcasn1.h"
#include "silcber.h"
#include "silcasn1.h"
#include "silcber.h"
-
/************************** ASN.1 Decoder routines **************************/
/* Internal SEQUENCE OF and SET OF decoder. This is used only when decoding
/************************** ASN.1 Decoder routines **************************/
/* Internal SEQUENCE OF and SET OF decoder. This is used only when decoding
@@
-472,7
+471,7
@@
silc_asn1_decoder(SilcAsn1 asn1, SilcStack stack1, SilcAsn1Tag type,
/* 2s complement and change sign */
silc_mp_init(&z);
/* 2s complement and change sign */
silc_mp_init(&z);
- silc_mp_set(&z, 0);
+ silc_mp_set
_ui
(&z, 0);
silc_mp_add_ui(*intval, *intval, 1);
silc_mp_sub(*intval, &z, *intval);
silc_mp_uninit(&z);
silc_mp_add_ui(*intval, *intval, 1);
silc_mp_sub(*intval, &z, *intval);
silc_mp_uninit(&z);