Skip to content

Commit

Permalink
Document support status of the legacy ASN.1 code.
Browse files Browse the repository at this point in the history
Change-Id: Ie0565b8b819b9fd837caf723d035866facc9543c
Reviewed-on: https://boringssl-review.googlesource.com/17026
Reviewed-by: Adam Langley <[email protected]>
Commit-Queue: Adam Langley <[email protected]>
  • Loading branch information
davidben committed Jun 9, 2017
1 parent c40e183 commit 5e61d53
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 7 deletions.
8 changes: 8 additions & 0 deletions include/openssl/asn1.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@
extern "C" {
#endif


/* Legacy ASN.1 library.
*
* This header is part of OpenSSL's ASN.1 implementation. It is retained for
* compatibility but otherwise underdocumented and not actively maintained. Use
* the new |CBS| and |CBB| library in <openssl/bytestring.h> instead. */


#define V_ASN1_UNIVERSAL 0x00
#define V_ASN1_APPLICATION 0x40
#define V_ASN1_CONTEXT_SPECIFIC 0x80
Expand Down
14 changes: 7 additions & 7 deletions include/openssl/asn1t.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,18 @@
#include <openssl/base.h>
#include <openssl/asn1.h>

#ifdef OPENSSL_BUILD_SHLIBCRYPTO
# undef OPENSSL_EXTERN
# define OPENSSL_EXTERN OPENSSL_EXPORT
#endif

/* ASN1 template defines, structures and functions */

#ifdef __cplusplus
extern "C" {
#endif


/* Legacy ASN.1 library template definitions.
*
* This header is used to define new types in OpenSSL's ASN.1 implementation. It
* is deprecated and will be unexported from the library. Use the new |CBS| and
* |CBB| library in <openssl/bytestring.h> instead. */


/* Macro to obtain ASN1_ADB pointer from a type (only used internally) */
#define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)(iptr))

Expand Down
8 changes: 8 additions & 0 deletions include/openssl/x509.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ extern "C" {
#endif


/* Legacy X.509 library.
*
* This header is part of OpenSSL's X.509 implementation. It is retained for
* compatibility but otherwise underdocumented and not actively maintained. In
* the future, a replacement library will be available. Meanwhile, minimize
* dependencies on this header where possible. */


#define X509_FILETYPE_PEM 1
#define X509_FILETYPE_ASN1 2
#define X509_FILETYPE_DEFAULT 3
Expand Down
8 changes: 8 additions & 0 deletions include/openssl/x509_vfy.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@
extern "C" {
#endif

/* Legacy X.509 library.
*
* This header is part of OpenSSL's X.509 implementation. It is retained for
* compatibility but otherwise underdocumented and not actively maintained. In
* the future, a replacement library will be available. Meanwhile, minimize
* dependencies on this header where possible. */


#if 0
/* Outer object */
typedef struct x509_hash_dir_st
Expand Down
9 changes: 9 additions & 0 deletions include/openssl/x509v3.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@
extern "C" {
#endif


/* Legacy X.509 library.
*
* This header is part of OpenSSL's X.509 implementation. It is retained for
* compatibility but otherwise underdocumented and not actively maintained. In
* the future, a replacement library will be available. Meanwhile, minimize
* dependencies on this header where possible. */


/* Forward reference */
struct v3_ext_method;
struct v3_ext_ctx;
Expand Down

0 comments on commit 5e61d53

Please sign in to comment.