projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed SILC_ASN1_OCTET_STRING to plain binary data.
[silc.git]
/
lib
/
silcasn1
/
silcasn1_decode.c
diff --git
a/lib/silcasn1/silcasn1_decode.c
b/lib/silcasn1/silcasn1_decode.c
index 911515b2b88ae472c2ba7d5ac2d26cc4ad1e0d05..ad5fe79e17ea39feef43195e6e8010a199c099d7 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
6
Pekka Riikonen
+ Copyright (C) 2003 - 200
7
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
@@
-665,9
+665,10
@@
silc_asn1_decoder(SilcAsn1 asn1, SilcStack stack1, SilcAsn1Tag type,
case SILC_ASN1_TAG_OCTET_STRING:
{
case SILC_ASN1_TAG_OCTET_STRING:
{
- /* Octet string.
We take it as 8-bit ASCII
*/
+ /* Octet string.
Take data as is.
*/
SILC_ASN1_VAD_UCHAR(asn1, opts, unsigned char, s, s_len);
SILC_ASN1_VAD_UCHAR(asn1, opts, unsigned char, s, s_len);
- SILC_ASN1_DECODE_STRING(SILC_STRING_ASCII, s, s_len);
+ *s = silc_smemdup(stack1, rdata, rdata_len);
+ *s_len = rdata_len;
break;
}
break;
}