summaryrefslogtreecommitdiff
path: root/asn1.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-04-26 14:09:12 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-04-26 14:10:13 +0200
commit64bb6b36b0b12873a9ad93b77bc006f6fd7a70da (patch)
tree82f1b3ba62b7661112a77112a67f0fc9428ab5c2 /asn1.h
parentc9460c81c186c3f0cb10e16d72dcd8aaa8001d21 (diff)
downloadnettle-64bb6b36b0b12873a9ad93b77bc006f6fd7a70da.tar.gz
Use size_t for asn1 parser.
Diffstat (limited to 'asn1.h')
-rw-r--r--asn1.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/asn1.h b/asn1.h
index 50c2e144..ef7e9470 100644
--- a/asn1.h
+++ b/asn1.h
@@ -93,23 +93,23 @@ enum asn1_iterator_result
/* Parsing DER objects. */
struct asn1_der_iterator
{
- unsigned buffer_length;
+ size_t buffer_length;
const uint8_t *buffer;
/* Next object to parse. */
- unsigned pos;
+ size_t pos;
enum asn1_type type;
/* Pointer to the current object */
- unsigned length;
+ size_t length;
const uint8_t *data;
};
/* Initializes the iterator. */
enum asn1_iterator_result
asn1_der_iterator_first(struct asn1_der_iterator *iterator,
- unsigned length, const uint8_t *input);
+ size_t length, const uint8_t *input);
enum asn1_iterator_result
asn1_der_iterator_next(struct asn1_der_iterator *iterator);