diff options
author | Ben Laurie <ben@openssl.org> | 2002-01-22 22:29:58 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2002-01-22 22:29:58 +0000 |
commit | 0fc5cf0870c0c9e4240e118ee7a86e5d8b4a6891 (patch) | |
tree | a607373c3d631901191b83a22b04fa96b3e34a62 /crypto/err | |
parent | f78d4a35f865d7678a8b8e7a496e72a19f3df014 (diff) |
Make no config file not an error. Move /dev/crypto config to ctrl.
Diffstat (limited to 'crypto/err')
-rw-r--r-- | crypto/err/err.c | 7 | ||||
-rw-r--r-- | crypto/err/err.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c index f38d1a61da..1b1e9bbcb0 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -679,6 +679,13 @@ unsigned long ERR_get_error_line_data(const char **file, int *line, unsigned long ERR_peek_error(void) { return(get_error_values(0,NULL,NULL,NULL,NULL)); } +unsigned long ERR_peek_top_error(void) + { + ERR_STATE *es=ERR_get_state(); + + return es->err_buffer[es->top]; + } + unsigned long ERR_peek_error_line(const char **file, int *line) { return(get_error_values(0,file,line,NULL,NULL)); } diff --git a/crypto/err/err.h b/crypto/err/err.h index c20546be51..4456e0e971 100644 --- a/crypto/err/err.h +++ b/crypto/err/err.h @@ -243,6 +243,7 @@ unsigned long ERR_get_error_line(const char **file,int *line); unsigned long ERR_get_error_line_data(const char **file,int *line, const char **data, int *flags); unsigned long ERR_peek_error(void ); +unsigned long ERR_peek_top_error(void); unsigned long ERR_peek_error_line(const char **file,int *line); unsigned long ERR_peek_error_line_data(const char **file,int *line, const char **data,int *flags); |