diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-11-10 16:43:23 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-11-11 13:38:37 +0100 |
commit | c2fa842bdcb88d0f7a16be9e49cc87b340cb68e2 (patch) | |
tree | 824bfcd9cd5f464699ed2b4983cfded8b726c039 /lib/x509/common.h | |
parent | 6d5c80e2bf7efbc4e99588b8d8ec4f383d34375f (diff) | |
download | gnutls-tmp-uninorm-everywhere.tar.gz |
x509: when writing fields known to be in UTF-8 form convert to NFCtmp-uninorm-everywhere
This ensures that we always write proper UTF-8 data, uniquely encoded.
Diffstat (limited to 'lib/x509/common.h')
-rw-r--r-- | lib/x509/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/x509/common.h b/lib/x509/common.h index 6716939255..73d202d173 100644 --- a/lib/x509/common.h +++ b/lib/x509/common.h @@ -143,6 +143,9 @@ int _gnutls_x509_read_string(ASN1_TYPE c, const char *root, int _gnutls_x509_write_value(ASN1_TYPE c, const char *root, const gnutls_datum_t * data); +int _gnutls_x509_write_utf8_value(ASN1_TYPE asn_struct, const char *where, + const uint8_t *data, size_t data_size); + int _gnutls_x509_write_string(ASN1_TYPE c, const char *root, const gnutls_datum_t * data, unsigned int etype); |