Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • openldap/openldap
  • hyc/openldap
  • ryan/openldap
  • iboukris/openldap
  • ondra/openldap
  • sshanks-kx/openldap
  • blaggacao/openldap
  • pbrezina/openldap
  • quanah/openldap
  • dragos_h/openldap
  • lorenz/openldap
  • tsaarni/openldap
  • fei.ding/openldap
  • orent/openldap
  • arrowplum/openldap
  • barchiesi/openldap
  • jotik/openldap
  • hamano/openldap
  • ingovoss/openldap
  • henson/openldap
  • jlrine2/openldap
  • howeverAT/openldap
  • nivanova/openldap
  • orbea/openldap
  • rdubner/openldap
  • smckinney/openldap
  • jklowden/openldap
  • dpa-openldap/openldap
  • rouzier/openldap
  • orgads/openldap
  • ffontaine/openldap
  • jiaqingz/openldap
  • dcoutadeur/openldap
  • begeragus/openldap
  • pubellit/openldap
  • glandium/openldap
  • facboy/openldap
  • thesamesam/openldap
  • Johan/openldap
  • fkooman/openldap
  • gburd/openldap
  • h-homma/openldap
  • sgallagher/openldap
  • ahmed_zaki/openldap
  • gnoe/openldap
  • mid/openldap
  • clan/openldap
47 results
Show changes
Commits on Source (2)
...@@ -1499,6 +1499,8 @@ ldap_X509dn2bv( void *x509_name, struct berval *bv, LDAPDN_rewrite_func *func, ...@@ -1499,6 +1499,8 @@ ldap_X509dn2bv( void *x509_name, struct berval *bv, LDAPDN_rewrite_func *func,
for ( tag = ber_first_element( ber, &len, &rdn_end ); for ( tag = ber_first_element( ber, &len, &rdn_end );
tag == LBER_SEQUENCE; tag == LBER_SEQUENCE;
tag = ber_next_element( ber, &len, rdn_end )) { tag = ber_next_element( ber, &len, rdn_end )) {
if ( rdn_end > dn_end )
return LDAP_DECODING_ERROR;
tag = ber_skip_tag( ber, &len ); tag = ber_skip_tag( ber, &len );
ber_skip_data( ber, len ); ber_skip_data( ber, len );
navas++; navas++;
...@@ -1508,7 +1510,7 @@ ldap_X509dn2bv( void *x509_name, struct berval *bv, LDAPDN_rewrite_func *func, ...@@ -1508,7 +1510,7 @@ ldap_X509dn2bv( void *x509_name, struct berval *bv, LDAPDN_rewrite_func *func,
/* Rewind and prepare to extract */ /* Rewind and prepare to extract */
ber_rewind( ber ); ber_rewind( ber );
tag = ber_first_element( ber, &len, &dn_end ); tag = ber_first_element( ber, &len, &dn_end );
if ( tag == LBER_DEFAULT ) if ( tag != LBER_SET )
return LDAP_DECODING_ERROR; return LDAP_DECODING_ERROR;
/* Allocate the DN/RDN/AVA stuff as a single block */ /* Allocate the DN/RDN/AVA stuff as a single block */
...@@ -1621,6 +1623,10 @@ allocd: ...@@ -1621,6 +1623,10 @@ allocd:
/* X.690 bitString value converted to RFC4517 Bit String */ /* X.690 bitString value converted to RFC4517 Bit String */
rc = der_to_ldap_BitString( &Val, &newAVA->la_value ); rc = der_to_ldap_BitString( &Val, &newAVA->la_value );
goto allocd; goto allocd;
case LBER_DEFAULT:
/* decode error */
rc = LDAP_DECODING_ERROR;
goto nomem;
default: default:
/* Not a string type at all */ /* Not a string type at all */
newAVA->la_flags = 0; newAVA->la_flags = 0;
......
...@@ -4377,7 +4377,7 @@ serialNumberAndIssuerSerialCheck( ...@@ -4377,7 +4377,7 @@ serialNumberAndIssuerSerialCheck(
if ( in->bv_len < 3 ) return LDAP_INVALID_SYNTAX; if ( in->bv_len < 3 ) return LDAP_INVALID_SYNTAX;
/* no old format */ /* no old format */
if ( in->bv_val[0] != '{' && in->bv_val[in->bv_len-1] != '}' ) return LDAP_INVALID_SYNTAX; if ( in->bv_val[0] != '{' || in->bv_val[in->bv_len-1] != '}' ) return LDAP_INVALID_SYNTAX;
x.bv_val++; x.bv_val++;
x.bv_len -= 2; x.bv_len -= 2;
......