@@ -277,7 +277,7 @@ OPENSSL_EXPORT uint32_t X509_get_extension_flags(X509 *x509);
277
277
//
278
278
// TODO(crbug.com/boringssl/381): Decoding an |X509| object will not check for
279
279
// invalid extensions. To detect the error case, call
280
- // |X509_get_extensions_flags | and check the |EXFLAG_INVALID| bit.
280
+ // |X509_get_extension_flags | and check the |EXFLAG_INVALID| bit.
281
281
OPENSSL_EXPORT long X509_get_pathlen (X509 * x509 );
282
282
283
283
// X509v3_KU_* are key usage bits returned from |X509_get_key_usage|.
@@ -336,7 +336,7 @@ OPENSSL_EXPORT uint32_t X509_get_extended_key_usage(X509 *x509);
336
336
//
337
337
// TODO(crbug.com/boringssl/381): Decoding an |X509| object will not check for
338
338
// invalid extensions. To detect the error case, call
339
- // |X509_get_extensions_flags | and check the |EXFLAG_INVALID| bit.
339
+ // |X509_get_extension_flags | and check the |EXFLAG_INVALID| bit.
340
340
OPENSSL_EXPORT const ASN1_OCTET_STRING * X509_get0_subject_key_id (X509 * x509 );
341
341
342
342
// X509_get0_authority_key_id returns keyIdentifier of |x509|'s authority key
@@ -347,7 +347,7 @@ OPENSSL_EXPORT const ASN1_OCTET_STRING *X509_get0_subject_key_id(X509 *x509);
347
347
//
348
348
// TODO(crbug.com/boringssl/381): Decoding an |X509| object will not check for
349
349
// invalid extensions. To detect the error case, call
350
- // |X509_get_extensions_flags | and check the |EXFLAG_INVALID| bit.
350
+ // |X509_get_extension_flags | and check the |EXFLAG_INVALID| bit.
351
351
OPENSSL_EXPORT const ASN1_OCTET_STRING * X509_get0_authority_key_id (X509 * x509 );
352
352
353
353
DEFINE_STACK_OF (GENERAL_NAME )
@@ -361,7 +361,7 @@ typedef STACK_OF(GENERAL_NAME) GENERAL_NAMES;
361
361
//
362
362
// TODO(crbug.com/boringssl/381): Decoding an |X509| object will not check for
363
363
// invalid extensions. To detect the error case, call
364
- // |X509_get_extensions_flags | and check the |EXFLAG_INVALID| bit.
364
+ // |X509_get_extension_flags | and check the |EXFLAG_INVALID| bit.
365
365
OPENSSL_EXPORT const GENERAL_NAMES * X509_get0_authority_issuer (X509 * x509 );
366
366
367
367
// X509_get0_authority_serial returns the authorityCertSerialNumber of |x509|'s
@@ -372,7 +372,7 @@ OPENSSL_EXPORT const GENERAL_NAMES *X509_get0_authority_issuer(X509 *x509);
372
372
//
373
373
// TODO(crbug.com/boringssl/381): Decoding an |X509| object will not check for
374
374
// invalid extensions. To detect the error case, call
375
- // |X509_get_extensions_flags | and check the |EXFLAG_INVALID| bit.
375
+ // |X509_get_extension_flags | and check the |EXFLAG_INVALID| bit.
376
376
OPENSSL_EXPORT const ASN1_INTEGER * X509_get0_authority_serial (X509 * x509 );
377
377
378
378
// X509_get0_extensions returns |x509|'s extension list, or NULL if |x509| omits
@@ -1427,12 +1427,17 @@ OPENSSL_EXPORT X509_NAME *X509_NAME_dup(X509_NAME *name);
1427
1427
// Although even the library itself passes this to a sorting function.
1428
1428
OPENSSL_EXPORT int X509_NAME_cmp (const X509_NAME * a , const X509_NAME * b );
1429
1429
1430
- // X509_NAME_get0_der sets |*out_der| and |*out_der_len|
1430
+ // X509_NAME_get0_der marshals |name| as a DER-encoded X.509 Name (RFC 5280). On
1431
+ // success, it returns one and sets |*out_der| and |*out_der_len| to a buffer
1432
+ // containing the result. Otherwise, it returns zero. |*out_der| is owned by
1433
+ // |name| and must not be freed by the caller. It is invalidated after |name| is
1434
+ // mutated or freed.
1431
1435
//
1432
1436
// Avoid this function and prefer |i2d_X509_NAME|. It is one of the reasons
1433
- // these functions are not consistently thread-safe or const-correct. Depending
1434
- // on the resolution of https://crbug.com/boringssl/407, this function may be
1435
- // removed or cause poor performance.
1437
+ // |X509_NAME| functions, including this one, are not consistently thread-safe
1438
+ // or const-correct. Depending on the resolution of
1439
+ // https://crbug.com/boringssl/407, this function may be removed or cause poor
1440
+ // performance.
1436
1441
OPENSSL_EXPORT int X509_NAME_get0_der (X509_NAME * name , const uint8_t * * out_der ,
1437
1442
size_t * out_der_len );
1438
1443
0 commit comments