X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblber%2Fbprint.c;h=5d55628549586b9eee80623f8a4653c2cac0809e;hb=c216e1809971ac6c5b2b973501e0e8a766b77287;hp=e7cd18d0fbf3842880c2a100da9af3433b909105;hpb=d4124e0e031f5b76a80f9c25a04146d334bcf898;p=openldap diff --git a/libraries/liblber/bprint.c b/libraries/liblber/bprint.c index e7cd18d0fb..5d55628549 100644 --- a/libraries/liblber/bprint.c +++ b/libraries/liblber/bprint.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2008 The OpenLDAP Foundation. + * Copyright 1998-2013 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -276,47 +276,21 @@ ber_dump( ber_bprint( ber->ber_ptr, len ); } +typedef struct seqorset Seqorset; + +/* Exists for binary compatibility with OpenLDAP 2.4.17-- */ int ber_log_sos_dump( int errlvl, int loglvl, Seqorset *sos ) { - assert( sos != NULL ); - - if ( !ber_log_check( errlvl, loglvl )) { - return 0; - } - - ber_sos_dump( sos ); - return 1; + return 0; } +/* Exists for binary compatibility with OpenLDAP 2.4.17-- */ void ber_sos_dump( Seqorset *sos ) { - char buf[132]; - - assert( sos != NULL ); - - (*ber_pvt_log_print)( "*** sos dump ***\n" ); - - while ( sos != NULL ) { - sprintf( buf, "ber_sos_dump: clen %ld first %p ptr %p\n", - (long) sos->sos_clen, - sos->sos_first, - sos->sos_ptr ); - (*ber_pvt_log_print)( buf ); - - sprintf( buf, " current len %ld contents:\n", - (long) (sos->sos_ptr - sos->sos_first) ); - (*ber_pvt_log_print)( buf ); - - ber_bprint( sos->sos_first, sos->sos_ptr - sos->sos_first ); - - sos = sos->sos_next; - } - - (*ber_pvt_log_print)( "*** end dump ***\n" ); }