diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2001-08-23 17:22:43 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2001-08-23 17:22:43 +0000 |
commit | 11c8f0b79d91bf7faba0a688ad3a76b01f157888 (patch) | |
tree | 3138e198d5c2fcf46e7325bfdcd9cabe80d4cac9 /ssl/ssl_stat.c | |
parent | c4068186acec0f5cd370f7b5772b41f215903234 (diff) | |
download | openssl-11c8f0b79d91bf7faba0a688ad3a76b01f157888.tar.gz |
More manual pages. Constify.
Diffstat (limited to 'ssl/ssl_stat.c')
-rw-r--r-- | ssl/ssl_stat.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ssl/ssl_stat.c b/ssl/ssl_stat.c index 8e2b874f61..963a502678 100644 --- a/ssl/ssl_stat.c +++ b/ssl/ssl_stat.c @@ -59,9 +59,9 @@ #include <stdio.h> #include "ssl_locl.h" -char *SSL_state_string_long(SSL *s) +const char *SSL_state_string_long(SSL *s) { - char *str; + const char *str; switch (s->state) { @@ -199,9 +199,9 @@ default: str="unknown state"; break; return(str); } -char *SSL_rstate_string_long(SSL *s) +const char *SSL_rstate_string_long(SSL *s) { - char *str; + const char *str; switch (s->rstate) { @@ -213,9 +213,9 @@ char *SSL_rstate_string_long(SSL *s) return(str); } -char *SSL_state_string(SSL *s) +const char *SSL_state_string(SSL *s) { - char *str; + const char *str; switch (s->state) { @@ -347,7 +347,7 @@ default: str="UNKWN "; break; return(str); } -char *SSL_alert_type_string_long(int value) +const char *SSL_alert_type_string_long(int value) { value>>=8; if (value == SSL3_AL_WARNING) @@ -358,7 +358,7 @@ char *SSL_alert_type_string_long(int value) return("unknown"); } -char *SSL_alert_type_string(int value) +const char *SSL_alert_type_string(int value) { value>>=8; if (value == SSL3_AL_WARNING) @@ -369,9 +369,9 @@ char *SSL_alert_type_string(int value) return("U"); } -char *SSL_alert_desc_string(int value) +const char *SSL_alert_desc_string(int value) { - char *str; + const char *str; switch (value & 0xff) { @@ -404,9 +404,9 @@ char *SSL_alert_desc_string(int value) return(str); } -char *SSL_alert_desc_string_long(int value) +const char *SSL_alert_desc_string_long(int value) { - char *str; + const char *str; switch (value & 0xff) { @@ -487,9 +487,9 @@ char *SSL_alert_desc_string_long(int value) return(str); } -char *SSL_rstate_string(SSL *s) +const char *SSL_rstate_string(SSL *s) { - char *str; + const char *str; switch (s->rstate) { |