~ubuntu-branches/ubuntu/lucid/openssl/lucid-proposed

« back to all changes in this revision

Viewing changes to crypto/evp/evp_test.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-06-13 18:15:46 UTC
  • mto: (11.1.5 squeeze)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20090613181546-vbfntai3b009dl1u
Tags: upstream-0.9.8k
ImportĀ upstreamĀ versionĀ 0.9.8k

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
            test1_exit(7);
221
221
            }
222
222
 
223
 
        if(outl+outl2 != cn)
 
223
        if(outl+outl2 != pn)
224
224
            {
225
225
            fprintf(stderr,"Plaintext length mismatch got %d expected %d\n",
226
 
                    outl+outl2,cn);
 
226
                    outl+outl2,pn);
227
227
            test1_exit(8);
228
228
            }
229
229
 
230
 
        if(memcmp(out,plaintext,cn))
 
230
        if(memcmp(out,plaintext,pn))
231
231
            {
232
232
            fprintf(stderr,"Plaintext mismatch\n");
233
 
            hexdump(stderr,"Got",out,cn);
234
 
            hexdump(stderr,"Expected",plaintext,cn);
 
233
            hexdump(stderr,"Got",out,pn);
 
234
            hexdump(stderr,"Expected",plaintext,pn);
235
235
            test1_exit(9);
236
236
            }
237
237
        }