"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "base/print_utils.c" between
ssldump-0.9b3.tar.gz and ssldump-1.3.tar.gz

About: ssldump is an SSLv3/TLS network protocol analyzer.

print_utils.c  (ssldump-0.9b3):print_utils.c  (ssldump-1.3)
skipping to change at line 44 skipping to change at line 44
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY SUCH DAMA GE. OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY SUCH DAMA GE.
$Id: print_utils.c,v 1.2 2000/10/17 16:09:58 ekr Exp $ $Id: print_utils.c,v 1.2 2000/10/17 16:09:58 ekr Exp $
ekr@rtfm.com Mon Feb 15 17:23:36 1999 ekr@rtfm.com Mon Feb 15 17:23:36 1999
*/ */
static char *RCSSTRING="$Id: print_utils.c,v 1.2 2000/10/17 16:09:58 ekr Exp $";
int explain(char *format,...) int explain(char *format,...)
{ {
va_list ap; va_list ap;
va_start(ap,format); va_start(ap,format);
INDENT; INDENT;
vprintf(format,ap); vprintf(format,ap);
va_end(ap); va_end(ap);
skipping to change at line 75 skipping to change at line 74
INDENT; INDENT;
if(name){ if(name){
sprintf(prefix,"%s[%d]=\n",name,data->len); sprintf(prefix,"%s[%d]=\n",name,data->len);
printf("%s",prefix); printf("%s",prefix);
INDENT_INCR; INDENT_INCR;
} }
for(i=0;i<data->len;i++){ for(i=0;i<data->len;i++){
if(!i && (data->len>8)) INDENT; if(!i && (data->len>8)) INDENT;
if((data->len>8) && i && !(i%12)){ if((data->len>8) && i && !(i%12)){
printf("\n"); INDENT; LF;INDENT;
} }
printf("%.2x ",data->data[i]&255); printf("%.2x ",data->data[i]&255);
} }
if(name) INDENT_POP; if(name) INDENT_POP;
if(data->len>8 && i%12) if(data->len>8 && i%12)
printf("\n"); LF;
return(0); return(0);
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)