mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
ITS#10375 libldap/tls2: const up oids
to move it out of the .data section
This commit is contained in:
parent
ed2e55711b
commit
f584da2fe7
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue