Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wim Lewis
nettle
Commits
629fd5bd
Commit
629fd5bd
authored
19 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Added name mangling defines, and a few new declarations.
Rev: src/nettle/asn1.h:1.2
parent
82323812
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
asn1.h
+24
-0
24 additions, 0 deletions
asn1.h
with
24 additions
and
0 deletions
asn1.h
+
24
−
0
View file @
629fd5bd
...
...
@@ -28,6 +28,17 @@
#include
"nettle-types.h"
/* Name mangling */
#define asn1_der_iterator_first nettle_asn1_der_iterator_first
#define asn1_der_iterator_next nettle_asn1_der_iterator_next
#define asn1_der_decode_constructed nettle_asn1_der_decode_constructed
#define asn1_der_decode_constructed_last nettle_asn1_der_decode_constructed_last
#define asn1_der_decode_bitstring nettle_asn1_der_decode_bitstring
#define asn1_der_decode_bitstring_last nettle_asn1_der_decode_bitstring_last
#define asn1_der_get_uint32 nettle_asn1_der_get_uint32
#define asn1_der_get_bignum nettle_asn1_der_get_bignum
/* enum asn1_type keeps the class number and the constructive in bits
13-14, and the constructive flag in bit 12. The remaining 14 bits
are the tag (although currently, only tags in the range 0-30 are
...
...
@@ -104,6 +115,19 @@ enum asn1_iterator_result
asn1_der_decode_constructed
(
struct
asn1_der_iterator
*
i
,
struct
asn1_der_iterator
*
contents
);
/* For the common case that we have a sequence at the end of the
object. Checks that the current object is the final one, and ten
reinitialize the iterator to parse its ontents. */
enum
asn1_iterator_result
asn1_der_decode_constructed_last
(
struct
asn1_der_iterator
*
i
);
enum
asn1_iterator_result
asn1_der_decode_bitstring
(
struct
asn1_der_iterator
*
i
,
struct
asn1_der_iterator
*
contents
);
enum
asn1_iterator_result
asn1_der_decode_bitstring_last
(
struct
asn1_der_iterator
*
i
);
/* All these functions return 1 on success, 0 on failure */
int
asn1_der_get_uint32
(
struct
asn1_der_iterator
*
i
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment