Commit d54f255d authored by Lev Walkin's avatar Lev Walkin

strip is generally unnecessary

parent 6550fd59
...@@ -147,9 +147,9 @@ NativeInteger_encode_der(asn_TYPE_descriptor_t *sd, void *ptr, ...@@ -147,9 +147,9 @@ NativeInteger_encode_der(asn_TYPE_descriptor_t *sd, void *ptr,
uint8_t buf[sizeof(int)]; uint8_t buf[sizeof(int)];
uint8_t *p; uint8_t *p;
/* Prepare fake INTEGER */ /* Prepare a fake INTEGER */
for(p = buf + sizeof(buf) - 1; p >= buf; p--, Int >>= 8) for(p = buf + sizeof(buf) - 1; p >= buf; p--, Int >>= 8)
*p = Int & 0xff; *p = Int;
tmp.buf = buf; tmp.buf = buf;
tmp.size = sizeof(buf); tmp.size = sizeof(buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment