Changeset 582

Show
Ignore:
Timestamp:
08/15/08 17:24:21
Author:
rachel
Message:

ifdef out debug code which is causing problems on freebsd/debian.
The debug code will probably be removed permanently in the next few weeks.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openpgpsdk/trunk/src/lib/packet-parse.c

    r574 r582  
    25662566        mdc_hash=mdc+2; 
    25672567     
     2568#ifdef DEBUG 
    25682569        if (debug) 
    25692570            { 
     
    25802581            fprintf(stderr,"\n"); 
    25812582            } 
     2583#endif /*DEBUG*/ 
    25822584 
    25832585        ops_calc_mdc_hash(preamble,sz_preamble,plaintext,sz_plaintext,&hashed[0]); 
    2584         /* 
    2585         unsigned char c[0]; 
    2586  
    2587         hash.add(&hash, plaintext, sz_plaintext); 
    2588         c[0]=0xD3; 
    2589         hash.add(&hash,&c[0],1);   // MDC packet tag 
    2590         c[0]=0x14; 
    2591         hash.add(&hash,&c[0],1);   // MDC packet len 
    2592          
    2593         hash.finish(&hash,&hashed[0]); 
    2594         */ 
    25952586 
    25962587        if (memcmp(mdc_hash,hashed,OPS_SHA1_HASH_SIZE)) 
  • openpgpsdk/trunk/src/lib/writer_encrypt_se_ip.c

    r574 r582  
    213213    ops_writer_push_encrypt_crypt(cinfo, crypt); 
    214214 
     215#ifdef DEBUG 
    215216    if (debug) 
    216217        { 
    217218        fprintf(stderr,"writing %ld + %d + %ld\n", sz_preamble, len, ops_memory_get_length(mem_mdc)); 
    218219        } 
     220#endif /*DEBUG*/ 
    219221 
    220222    if (!ops_write(preamble, sz_preamble,cinfo)