mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-13 06:12:19 +08:00
Merge pull request #10927 from HelloOO7/development
Restore __cplusplus guard absent from oid.h
This commit is contained in:
commit
f06454cd7b
@ -265,6 +265,10 @@
|
|||||||
* ecdsa-with-SHA2(3) 4 } */
|
* ecdsa-with-SHA2(3) 4 } */
|
||||||
#define MBEDTLS_OID_ECDSA_SHA512 MBEDTLS_OID_ANSI_X9_62_SIG_SHA2 "\x04"
|
#define MBEDTLS_OID_ECDSA_SHA512 MBEDTLS_OID_ANSI_X9_62_SIG_SHA2 "\x04"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_X509_USE_C)
|
#if defined(MBEDTLS_X509_USE_C)
|
||||||
/**
|
/**
|
||||||
* \brief Translate an ASN.1 OID into its numeric representation
|
* \brief Translate an ASN.1 OID into its numeric representation
|
||||||
@ -301,4 +305,8 @@ int mbedtls_oid_get_numeric_string(char *buf, size_t size, const mbedtls_asn1_bu
|
|||||||
int mbedtls_oid_from_numeric_string(mbedtls_asn1_buf *oid, const char *oid_str, size_t size);
|
int mbedtls_oid_from_numeric_string(mbedtls_asn1_buf *oid, const char *oid_str, size_t size);
|
||||||
#endif /* MBEDTLS_X509_CREATE_C */
|
#endif /* MBEDTLS_X509_CREATE_C */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* oid.h */
|
#endif /* oid.h */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user