version 1.83, 2002/01/12 01:23:04
|
version 1.84, 2002/01/14 00:43:18
|
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.82 2002/01/07 20:48:17 kurt Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.83 2002/01/12 01:23:04 hyc Exp $ */ |
/* |
/* |
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. |
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
Line 309 typedef struct bgbvr {
|
Line 309 typedef struct bgbvr {
|
ber_len_t off; |
ber_len_t off; |
union { |
union { |
char ***c; |
char ***c; |
BVarray *ba; |
BerVarray *ba; |
struct berval ***bv; |
struct berval ***bv; |
} res; |
} res; |
} bgbvr; |
} bgbvr; |
Line 395 ber_get_stringbvr( bgbvr *b, int n )
|
Line 395 ber_get_stringbvr( bgbvr *b, int n )
|
*bvp = bv; |
*bvp = bv; |
break; |
break; |
case BvOff: |
case BvOff: |
*(BVarray)((long)(*b->res.ba)+n*b->siz+b->off) = bv; |
*(BerVarray)((long)(*b->res.ba)+n*b->siz+b->off) = bv; |
} |
} |
} else { |
} else { |
/* Failure will propagate up and free in reverse |
/* Failure will propagate up and free in reverse |
Line 884 ber_scanf ( BerElement *ber,
|
Line 884 ber_scanf ( BerElement *ber,
|
|
|
case 'v': /* sequence of strings */ |
case 'v': /* sequence of strings */ |
case 'V': /* sequence of strings + lengths */ |
case 'V': /* sequence of strings + lengths */ |
case 'W': /* BVarray */ |
case 'W': /* BerVarray */ |
case 'm': /* berval in-place */ |
case 'm': /* berval in-place */ |
case 'M': /* BVoff array in-place */ |
case 'M': /* BVoff array in-place */ |
case 'n': /* null */ |
case 'n': /* null */ |