[BACK]Return to enc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/enc.c between version 1.2 and 1.3

version 1.2, 2014/09/01 20:54:37 version 1.3, 2014/10/22 13:54:03
Line 69 
Line 69 
 #include <openssl/evp.h>  #include <openssl/evp.h>
 #include <openssl/objects.h>  #include <openssl/objects.h>
 #include <openssl/pem.h>  #include <openssl/pem.h>
 #include <openssl/rand.h>  
 #include <openssl/x509.h>  #include <openssl/x509.h>
   
 int set_hex(char *in, unsigned char *out, int size);  int set_hex(char *in, unsigned char *out, int size);
Line 461 
Line 460 
                                                             "invalid hex salt value\n");                                                              "invalid hex salt value\n");
                                                         goto end;                                                          goto end;
                                                 }                                                  }
                                         } else if (RAND_pseudo_bytes(salt, sizeof salt) < 0)                                          } else
                                                 goto end;                                                  arc4random_buf(salt,
                                                       sizeof(salt));
                                         /*                                          /*
                                          * If -P option then don't bother                                           * If -P option then don't bother
                                          * writing                                           * writing

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3