[openssl/openssl] 5b05b7: Rename ASN1_STRING_length_ex() to ASN1_STRING_get_...

"'esyr' via openssl-commits" <[email protected]>
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 5b05b7da7c8109c8128dee71ce5ed73eb326fc15
      https://github.com/openssl/openssl/commit/5b05b7da7c8109c8128dee71ce5ed73eb326fc15
  Author: Eugene Syromiatnikov <[email protected]>
  Date:   2026-08-11 (Tue, 11 Aug 2026)

  Changed paths:
    M CHANGES.md
    M apps/asn1parse.c
    M apps/ca.c
    M apps/cms.c
    M apps/lib/apps.c
    M apps/lib/cmp_mock_srv.c
    M apps/pkcs12.c
    M apps/s_client.c
    M crypto/asn1/asn1_lib.c
    M crypto/asn1/evp_asn1.c
    M crypto/asn1/p8_pkey.c
    M crypto/cmp/cmp_protect.c
    M crypto/cmp/cmp_status.c
    M crypto/cms/cms_dh.c
    M crypto/cms/cms_ec.c
    M crypto/cms/cms_env.c
    M crypto/cms/cms_kemri.c
    M crypto/cms/cms_rsa.c
    M crypto/ct/ct_oct.c
    M crypto/ec/ec_asn1.c
    M crypto/ec/ecx_backend.c
    M crypto/ocsp/ocsp_srv.c
    M crypto/pkcs12/p12_mutl.c
    M crypto/pkcs7/pk7_attr.c
    M crypto/pkcs7/pk7_doit.c
    M crypto/pkcs7/pk7_smime.c
    M crypto/sm2/sm2_crypt.c
    M crypto/ts/ts_asn1.c
    M crypto/ts/ts_lib.c
    M crypto/ts/ts_rsp_sign.c
    M crypto/ts/ts_rsp_verify.c
    M crypto/ts/ts_verify_ctx.c
    M crypto/x509/t_x509.c
    M crypto/x509/v3_akid.c
    M crypto/x509/v3_lib.c
    M crypto/x509/v3_prn.c
    M doc/man3/ASN1_STRING_length.pod
    M include/openssl/asn1.h.in
    M ssl/statem/statem_srvr.c
    M test/asn1_string_test.c
    M test/helpers/pkcs12.c
    M test/tls-provider.c
    M test/x509_internal_test.c
    M util/libcrypto.num

  Log Message:
  -----------
  Rename ASN1_STRING_length_ex() to ASN1_STRING_get_length()

To make it in line with ASN1_BIT_STRING_get_length() and other (size)
getters.  The majority of the changes was done by

    for i in `git grep -l ASN1_STRING_length_ex`; do \
        sed -i 's/ASN1_STRING_length_ex/ASN1_STRING_get_length/g' "$i"; \
    done

with a manual touch-up in util/libcrypto.num.

Complements: 28179061bfcd "Prepare a now opaque ASN1_STRING for the size_t rapture."
Signed-off-by: Eugene Syromiatnikov <[email protected]>

Reviewed-by: Nikola Pajkovsky <[email protected]>
Reviewed-by: Bob Beck <[email protected]>
Reviewed-by: Simo Sorce <[email protected]>
MergeDate: Tue Aug 11 13:56:42 2026
(Merged from https://github.com/openssl/openssl/pull/32015)


  Commit: 786353f4c56ceadd2f8d8d2351cbd59c89b923f9
      https://github.com/openssl/openssl/commit/786353f4c56ceadd2f8d8d2351cbd59c89b923f9
  Author: Eugene Syromiatnikov <[email protected]>
  Date:   2026-08-11 (Tue, 11 Aug 2026)

  Changed paths:
    M CHANGES.md
    M apps/cmp.c
    M apps/spkac.c
    M apps/ts.c
    M crypto/asn1/a_int.c
    M crypto/asn1/a_mbstr.c
    M crypto/asn1/a_octet.c
    M crypto/asn1/a_time.c
    M crypto/asn1/asn1_gen.c
    M crypto/asn1/asn1_lib.c
    M crypto/asn1/p5_scrypt.c
    M crypto/asn1/tasn_dec.c
    M crypto/cmp/cmp_protect.c
    M crypto/cmp/cmp_status.c
    M crypto/cmp/cmp_util.c
    M crypto/cms/cms_dd.c
    M crypto/cms/cms_ess.c
    M crypto/cms/cms_sd.c
    M crypto/ocsp/ocsp_ext.c
    M crypto/pkcs7/pk7_attr.c
    M crypto/ts/ts_rsp_sign.c
    M crypto/x509/v3_cpols.c
    M crypto/x509/v3_ia5.c
    M crypto/x509/v3_ist.c
    M crypto/x509/v3_san.c
    M crypto/x509/v3_utf8.c
    M crypto/x509/x509_att.c
    M crypto/x509/x509name.c
    M crypto/x509/x_x509a.c
    M doc/man3/ASN1_STRING_length.pod
    M include/openssl/asn1.h.in
    M test/asn1_string_test.c
    M test/cmp_hdr_test.c
    M test/v3nametest.c
    M util/libcrypto.num

  Log Message:
  -----------
  Change set suffix in ASN1_STRING_set_{data,string} to set1

To comply with the naming guidelines for the API functions that transfer
ownership of the data.  The majority of the changes was done by

    for i in `git grep -l ASN1_STRING_set_data`; do \
        sed -i 's/ASN1_STRING_set_data/ASN1_STRING_set1_data/g' "$i"; \
    done
    for i in `git grep -l ASN1_STRING_set_string`; do \
        sed -i 's/ASN1_STRING_set_string/ASN1_STRING_set1_string/g' "$i"; \
    done

with a manual touch-up in util/libcrypto.num.

Complements: 28179061bfcd "Prepare a now opaque ASN1_STRING for the size_t rapture."
Signed-off-by: Eugene Syromiatnikov <[email protected]>

Reviewed-by: Nikola Pajkovsky <[email protected]>
Reviewed-by: Bob Beck <[email protected]>
Reviewed-by: Simo Sorce <[email protected]>
MergeDate: Tue Aug 11 13:56:44 2026
(Merged from https://github.com/openssl/openssl/pull/32015)


Compare: https://github.com/openssl/openssl/compare/d3961e8a44c8...786353f4c56c

To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications

-- 
You received this message because you are subscribed to the Google Groups "openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-commits/openssl/openssl/push/refs/heads/master/d3961e-786353%40github.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.