diff options
author | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 14:09:12 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 14:10:13 +0200 |
commit | 64bb6b36b0b12873a9ad93b77bc006f6fd7a70da (patch) | |
tree | 82f1b3ba62b7661112a77112a67f0fc9428ab5c2 /asn1.h | |
parent | c9460c81c186c3f0cb10e16d72dcd8aaa8001d21 (diff) | |
download | nettle-64bb6b36b0b12873a9ad93b77bc006f6fd7a70da.tar.gz |
Use size_t for asn1 parser.
Diffstat (limited to 'asn1.h')
-rw-r--r-- | asn1.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |