version 1.2, 2014/09/01 20:54:37 |
version 1.3, 2014/10/22 13:54:03 |
|
|
#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); |
|
|
"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 |