~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to ssl/s2_clnt.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-12-16 18:41:29 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041216184129-z7xjkul57mh1jiha
Tags: upstream-0.9.7e
ImportĀ upstreamĀ versionĀ 0.9.7e

Show diffs side-by-side

added added

removed removed

Lines of Context:
612
612
                s->s2->challenge_length=SSL2_CHALLENGE_LENGTH;
613
613
                s2n(SSL2_CHALLENGE_LENGTH,p);           /* challenge length */
614
614
                /*challenge id data*/
615
 
                RAND_pseudo_bytes(s->s2->challenge,SSL2_CHALLENGE_LENGTH);
 
615
                if(RAND_pseudo_bytes(s->s2->challenge,SSL2_CHALLENGE_LENGTH) <= 0)
 
616
                        return -1;
616
617
                memcpy(d,s->s2->challenge,SSL2_CHALLENGE_LENGTH);
617
618
                d+=SSL2_CHALLENGE_LENGTH;
618
619
 
660
661
                        SSLerr(SSL_F_CLIENT_MASTER_KEY, ERR_R_INTERNAL_ERROR);
661
662
                        return -1;
662
663
                        }
663
 
                if (i > 0) RAND_pseudo_bytes(sess->key_arg,i);
 
664
                if (i > 0)
 
665
                        if(RAND_pseudo_bytes(sess->key_arg,i) <= 0)
 
666
                                return -1;
664
667
 
665
668
                /* make a master key */
666
669
                i=EVP_CIPHER_key_length(c);