Gilles Peskine
96ddb0ab4d
Revert "asn1: Remove dependency on X.509"
...
This reverts commit d8087713aea2bf3d61bb2470a8d74409e74907fb.
2020-03-19 14:23:45 +01:00
Hanno Becker
34aada2df5
Replace use of uint8_t by unsigned char in ASN.1 seq traversal API
...
The rest of the ASN.1 API uses `unsigned char`, too.
2020-02-03 10:39:55 +00:00
Hanno Becker
199b709e53
ASN.1: Add ASN.1 SEQUENCE traversal API
2020-01-31 15:37:26 +00:00
Gilles Peskine
b5c74a53d8
Document one more error code for mbedtls_asn1_get_sequence_of
...
Also fix a copypasta.
2020-01-31 15:37:26 +00:00
Hanno Becker
12ae27dd0e
ASN.1: Introduce helper function to free ASN.1 sequence
2020-01-31 15:37:26 +00:00
Hanno Becker
63e38fe914
ASN.1: Add helper macro to compare ASN.1 buffer to OID string
2020-01-31 15:37:26 +00:00
Hanno Becker
cba7122d74
ASN.1: Add helper macro to detect string types
2020-01-31 15:37:26 +00:00
Mykhailo Sopiha
20180ca919
Add ASN.1 ENUMERATED tag support
...
Add ASN.1 ENUMERATED [1] tag to supported tag list.
1. https://tools.ietf.org/html/rfc3641#page-8
Signed-off-by: Mykhailo Sopiha <mykhailo.sopiha@linaro.org>
2019-10-31 19:17:26 +02:00
Gilles Peskine
dc2db4832d
Fix typos in documentation
2019-10-04 11:35:09 +02:00
Gilles Peskine
aac3853348
Fix long-standing bug in error code description
...
MBEDTLS_ERR_ASN1_INVALID_DATA is documented as "not used", but it has
been used since the PolarSSL days.
2019-09-11 18:16:11 +02:00
Gilles Peskine
bcbe1dfb23
Improve the documentation of ASN.1 parsing functions
...
Document preconditions on parameters, values changed through pointers,
and error codes.
This commit leaves some issues regarding integers (especially negative
integers) open, because we don't have a policy decision on how to
handle them yet.
2019-09-11 15:46:44 +02:00
Jaeden Amero
c49fbbf3eb
Use mbedtls-based path for includes
...
To help the build system find the correct include files, paths starting
with "mbedtls/" or "psa/" must be used. Otherwise, you can run into
build failures like the following when building Mbed Crypto as a
submodule.
In file included from chachapoly.c:31:0:
../../include/mbedtls/chachapoly.h:43:10: fatal error: poly1305.h: No such file or directory
#include "poly1305.h"
^~~~~~~~~~~~
compilation terminated.
Includes for ALT implementations are not modified, as the alt headers
are provided by system integrators and not Mbed TLS or Mbed Crypto.
2019-07-15 15:52:25 +01:00
Jaeden Amero
d8087713ae
asn1: Remove dependency on X.509
...
Doxygen will fail to build if we have references to files that don't
exist. Since we are planning on removing X.509 soon, we even need to
remove explicit Doxygen references to X.509 things as those will no
longer resolve once the X.509 files are deleted.
fixup! asn1: Remove dependency on X.509
2019-03-11 16:48:36 +00:00
Gilles Peskine
5f1932817c
Merge remote-tracking branch 'upstream-restricted/pr/398' into development-restricted-proposed
2018-03-13 17:18:06 +01:00
Gilles Peskine
1ed45ea36b
Refer to X.690 by number
...
It's easier to identify and find by number than by its very wordy
title, especially as there was a typo in the title.
2018-03-08 18:19:17 +01:00
Darryl Green
a40a101e26
Update Doxygen file blocks to remove copyright and license information
2018-01-23 15:44:39 +00:00
Andres Amaya Garcia
7786abc16b
Define ASN1 bitmask macros in more direct way
2017-11-07 20:21:56 +00:00
Andres Amaya Garcia
7512bf7d63
Add macros to ASN.1 module to parse ASN.1 tags
...
The macros simply extract the component bits of an ASN.1 tag value
2017-11-07 19:34:35 +00:00
Andres Amaya Garcia
9fb02057a5
Fix typo in asn1.h
2017-10-12 23:21:37 +01:00
Manuel Pégourié-Gonnard
37ff14062e
Change main license to Apache 2.0
2015-09-04 14:21:07 +02:00
Manuel Pégourié-Gonnard
6fb8187279
Update date in copyright line
2015-07-28 17:11:58 +02:00
Manuel Pégourié-Gonnard
b8186a5e54
Rename len to bitlen in function parameters
...
Clarify a few comments too.
2015-06-18 14:58:58 +02:00
Manuel Pégourié-Gonnard
6a8ca33fa5
Rename ERR_xxx_MALLOC_FAILED to ..._ALLOC_FAILED
2015-05-28 16:25:05 +02:00
Manuel Pégourié-Gonnard
2cf5a7c98e
The Great Renaming
...
A simple execution of tmp/invoke-rename.pl
2015-04-08 13:25:31 +02:00
Manuel Pégourié-Gonnard
6e0643762d
Reverse meaning of OID_CMP
2015-03-19 16:54:56 +00:00
Manuel Pégourié-Gonnard
7f8099773e
Rename include directory to mbedtls
2015-03-10 11:23:56 +00:00