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

« back to all changes in this revision

Viewing changes to ssl/d1_srvr.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-05-15 16:00:58 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060515160058-pg6lnbkkpkwpdj2e
Tags: upstream-0.9.8b
ImportĀ upstreamĀ versionĀ 0.9.8b

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
int dtls1_accept(SSL *s)
145
145
        {
146
146
        BUF_MEM *buf;
147
 
        unsigned long l,Time=time(NULL);
 
147
        unsigned long l,Time=(unsigned long)time(NULL);
148
148
        void (*cb)(const SSL *ssl,int type,int val)=NULL;
149
149
        long num1;
150
150
        int ret= -1;
666
666
                {
667
667
                buf=(unsigned char *)s->init_buf->data;
668
668
                p=s->s3->server_random;
669
 
                Time=time(NULL);                        /* Time */
 
669
                Time=(unsigned long)time(NULL);                 /* Time */
670
670
                l2n(Time,p);
671
671
                RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-sizeof(Time));
672
672
                /* Do the message type and length last */