~ubuntu-branches/ubuntu/lucid/openssl/lucid-security

« back to all changes in this revision

Viewing changes to ssl/s3_enc.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:
146
146
#endif
147
147
        k=0;
148
148
        EVP_MD_CTX_init(&m5);
 
149
        EVP_MD_CTX_set_flags(&m5, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
149
150
        EVP_MD_CTX_init(&s1);
150
151
        for (i=0; (int)i<num; i+=MD5_DIGEST_LENGTH)
151
152
                {
518
519
 
519
520
void ssl3_init_finished_mac(SSL *s)
520
521
        {
 
522
        EVP_MD_CTX_set_flags(&(s->s3->finish_dgst1),
 
523
                EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
521
524
        EVP_DigestInit_ex(&(s->s3->finish_dgst1),s->ctx->md5, NULL);
522
525
        EVP_DigestInit_ex(&(s->s3->finish_dgst2),s->ctx->sha1, NULL);
523
526
        }
554
557
        EVP_MD_CTX ctx;
555
558
 
556
559
        EVP_MD_CTX_init(&ctx);
 
560
        EVP_MD_CTX_set_flags(&ctx, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
557
561
        EVP_MD_CTX_copy_ex(&ctx,in_ctx);
558
562
 
559
563
        n=EVP_MD_CTX_size(&ctx);