mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-24 05:00:45 -04:00
Add comment on apparent type mismatch
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
35f2220e37
commit
8a6fc08607
@ -276,7 +276,10 @@ usage:
|
|||||||
/* Work around an API mismatch between string_to_names() and
|
/* Work around an API mismatch between string_to_names() and
|
||||||
* mbedtls_x509_subject_alternative_name, which holds an
|
* mbedtls_x509_subject_alternative_name, which holds an
|
||||||
* actual mbedtls_x509_name while a pointer to one would be
|
* actual mbedtls_x509_name while a pointer to one would be
|
||||||
* more convenient here. */
|
* more convenient here. (Note mbedtls_x509_name and
|
||||||
|
* mbedtls_asn1_named_data are synonymous, again
|
||||||
|
* string_to_names() uses one while
|
||||||
|
* cur->node.san.directory_name is nominally the other.) */
|
||||||
mbedtls_asn1_named_data *tmp_san_dirname = NULL;
|
mbedtls_asn1_named_data *tmp_san_dirname = NULL;
|
||||||
if ((ret = mbedtls_x509_string_to_names(&tmp_san_dirname,
|
if ((ret = mbedtls_x509_string_to_names(&tmp_san_dirname,
|
||||||
subtype_value)) != 0) {
|
subtype_value)) != 0) {
|
||||||
|
@ -597,7 +597,10 @@ usage:
|
|||||||
/* Work around an API mismatch between string_to_names() and
|
/* Work around an API mismatch between string_to_names() and
|
||||||
* mbedtls_x509_subject_alternative_name, which holds an
|
* mbedtls_x509_subject_alternative_name, which holds an
|
||||||
* actual mbedtls_x509_name while a pointer to one would be
|
* actual mbedtls_x509_name while a pointer to one would be
|
||||||
* more convenient here. */
|
* more convenient here. (Note mbedtls_x509_name and
|
||||||
|
* mbedtls_asn1_named_data are synonymous, again
|
||||||
|
* string_to_names() uses one while
|
||||||
|
* cur->node.san.directory_name is nominally the other.) */
|
||||||
mbedtls_asn1_named_data *tmp_san_dirname = NULL;
|
mbedtls_asn1_named_data *tmp_san_dirname = NULL;
|
||||||
if ((ret = mbedtls_x509_string_to_names(&tmp_san_dirname,
|
if ((ret = mbedtls_x509_string_to_names(&tmp_san_dirname,
|
||||||
subtype_value)) != 0) {
|
subtype_value)) != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user