diff options
author | Tao Bao <tbao@google.com> | 2017-03-21 20:01:21 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-03-21 20:01:23 +0100 |
commit | 5b2bf90e13229c8df6a5c02233753a6bd6d1c928 (patch) | |
tree | aba97506271d30aad9c52d438caf0f83fd084dad /asn1_decoder.h | |
parent | Merge "Add testcases for load_keys()." (diff) | |
parent | verify_file: Add constness to a few addresses. (diff) | |
download | android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar.gz android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar.bz2 android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar.lz android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar.xz android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar.zst android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.zip |
Diffstat (limited to 'asn1_decoder.h')
-rw-r--r-- | asn1_decoder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/asn1_decoder.h b/asn1_decoder.h index b17141c44..fbd118f90 100644 --- a/asn1_decoder.h +++ b/asn1_decoder.h @@ -22,7 +22,7 @@ typedef struct asn1_context asn1_context_t; -asn1_context_t* asn1_context_new(uint8_t* buffer, size_t length); +asn1_context_t* asn1_context_new(const uint8_t* buffer, size_t length); void asn1_context_free(asn1_context_t* ctx); asn1_context_t* asn1_constructed_get(asn1_context_t* ctx); bool asn1_constructed_skip_all(asn1_context_t* ctx); @@ -30,7 +30,7 @@ int asn1_constructed_type(asn1_context_t* ctx); asn1_context_t* asn1_sequence_get(asn1_context_t* ctx); asn1_context_t* asn1_set_get(asn1_context_t* ctx); bool asn1_sequence_next(asn1_context_t* seq); -bool asn1_oid_get(asn1_context_t* ctx, uint8_t** oid, size_t* length); -bool asn1_octet_string_get(asn1_context_t* ctx, uint8_t** octet_string, size_t* length); +bool asn1_oid_get(asn1_context_t* ctx, const uint8_t** oid, size_t* length); +bool asn1_octet_string_get(asn1_context_t* ctx, const uint8_t** octet_string, size_t* length); #endif /* ASN1_DECODER_H_ */ |