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

« back to all changes in this revision

Viewing changes to ssl/d1_enc.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:
146
146
                                fprintf(stderr, "%s:%d: rec->data != rec->input\n",
147
147
                                        __FILE__, __LINE__);
148
148
                        else if ( EVP_CIPHER_block_size(ds->cipher) > 1)
149
 
                                RAND_bytes(rec->input, EVP_CIPHER_block_size(ds->cipher));
 
149
                                {
 
150
                                if (!RAND_bytes(rec->input, EVP_CIPHER_block_size(ds->cipher)))
 
151
                                        return -1;
 
152
                                }
150
153
                        }
151
154
                }
152
155
        else