version 1.113, 2008/01/07 23:20:03
|
version 1.114, 2008/08/06 11:36:53
|
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.112 2007/10/17 23:35:07 hyc Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.113 2008/01/07 23:20:03 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; |