version 1.105.2.4, 2008/02/11 23:26:41
|
version 1.105.2.5, 2008/09/02 23:54:37
|
Line 1
|
Line 1
|
/* decode.c - ber input decoding routines */ |
/* decode.c - ber input decoding routines */ |
/* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.105.2.3 2007/10/18 01:37:30 quanah Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.105.2.4 2008/02/11 23:26:41 kurt Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 1998-2008 The OpenLDAP Foundation. |
* Copyright 1998-2008 The OpenLDAP Foundation. |
Line 69 ber_decode_oid( BerValue *in, BerValue *
|
Line 69 ber_decode_oid( BerValue *in, BerValue *
|
val |= der[i] & 0x7f; |
val |= der[i] & 0x7f; |
if ( !( der[i] & 0x80 )) { |
if ( !( der[i] & 0x80 )) { |
if ( ptr == NULL ) { |
if ( ptr == NULL ) { |
/* Initial "x.y": val=x*40+y, x<=2, y<40 if x=2 */ |
/* Initial "x.y": val=x*40+y, x<=2, y<40 if x<2 */ |
ptr = out->bv_val; |
ptr = out->bv_val; |
val1 = (val < 80 ? val/40 : 2); |
val1 = (val < 80 ? val/40 : 2); |
val -= val1*40; |
val -= val1*40; |