projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add BeOS support.
[openssl.git]
/
crypto
/
rand
/
rand_err.c
diff --git
a/crypto/rand/rand_err.c
b/crypto/rand/rand_err.c
index e6a7e56dca9c6dfa70439ff5e7503670a18b7c80..b2f2448b667c8d0956f454e817f2be1056d9faf1 100644
(file)
--- a/
crypto/rand/rand_err.c
+++ b/
crypto/rand/rand_err.c
@@
-1,6
+1,6
@@
/* crypto/rand/rand_err.c */
/* ====================================================================
/* crypto/rand/rand_err.c */
/* ====================================================================
- * Copyright (c) 1999 The OpenSSL Project. All rights reserved.
+ * Copyright (c) 1999
-2005
The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@
-54,7
+54,8
@@
*/
/* NOTE: this file was auto generated by the mkerr.pl script: any changes
*/
/* NOTE: this file was auto generated by the mkerr.pl script: any changes
- * made to it will be overwritten when the script next updates this file.
+ * made to it will be overwritten when the script next updates this file,
+ * only reason strings will be preserved.
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-62,16
+63,21
@@
#include <openssl/rand.h>
/* BEGIN ERROR CODES */
#include <openssl/rand.h>
/* BEGIN ERROR CODES */
-#ifndef NO_ERR
+#ifndef OPENSSL_NO_ERR
+
+#define ERR_FUNC(func) ERR_PACK(ERR_LIB_RAND,func,0)
+#define ERR_REASON(reason) ERR_PACK(ERR_LIB_RAND,0,reason)
+
static ERR_STRING_DATA RAND_str_functs[]=
{
static ERR_STRING_DATA RAND_str_functs[]=
{
-{ERR_PACK(0,RAND_F_SSLEAY_RAND_BYTES,0), "SSLEAY_RAND_BYTES"},
+{ERR_FUNC(RAND_F_RAND_GET_RAND_METHOD), "RAND_get_rand_method"},
+{ERR_FUNC(RAND_F_SSLEAY_RAND_BYTES), "SSLEAY_RAND_BYTES"},
{0,NULL}
};
static ERR_STRING_DATA RAND_str_reasons[]=
{
{0,NULL}
};
static ERR_STRING_DATA RAND_str_reasons[]=
{
-{
RAND_R_PRNG_NOT_SEEDED
,"PRNG not seeded"},
+{
ERR_REASON(RAND_R_PRNG_NOT_SEEDED)
,"PRNG not seeded"},
{0,NULL}
};
{0,NULL}
};
@@
-84,9
+90,9
@@
void ERR_load_RAND_strings(void)
if (init)
{
init=0;
if (init)
{
init=0;
-#ifndef NO_ERR
- ERR_load_strings(
ERR_LIB_RAND
,RAND_str_functs);
- ERR_load_strings(
ERR_LIB_RAND
,RAND_str_reasons);
+#ifndef
OPENSSL_
NO_ERR
+ ERR_load_strings(
0
,RAND_str_functs);
+ ERR_load_strings(
0
,RAND_str_reasons);
#endif
}
#endif
}