ITS#10375 libldap/tls2: const up oids

to move it out of the .data section
This commit is contained in:
Caolán McNamara 2025-07-26 21:00:50 +01:00 committed by Howard Chu
parent ed2e55711b
commit f584da2fe7

View file

@ -51,7 +51,7 @@ typedef struct oid_name {
struct berval name;
} oid_name;
static oid_name oids[] = {
static const oid_name oids[] = {
{ BER_BVC("2.5.4.3"), BER_BVC("cn") },
{ BER_BVC("2.5.4.4"), BER_BVC("sn") },
{ BER_BVC("2.5.4.6"), BER_BVC("c") },
@ -1394,7 +1394,7 @@ ldap_start_tls_s ( LDAP *ld,
#define LBER_TAG_UNIVERSAL ((ber_tag_t) 0x1cUL)
#define LBER_TAG_BMP ((ber_tag_t) 0x1eUL)
static oid_name *
static const oid_name *
find_oid( struct berval *oid )
{
int i;
@ -1519,7 +1519,7 @@ ldap_X509dn2bv( void *x509_name, struct berval *bv, LDAPDN_rewrite_func *func,
int csize;
ber_tag_t tag;
ber_len_t len;
oid_name *oidname;
const oid_name *oidname;
struct berval Oid, Val, oid2, *in = x509_name;