diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-09-11 18:30:15 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-09-11 18:30:15 +0000 |
commit | 945667eb0158a7078bcb6ba5d347e9d35021a5d2 (patch) | |
tree | bcab7b6be5e37fe1a4a2136fb7f56534c14a7c76 /lib/debug.c | |
parent | 6e13096a346a6d6bc60221e6cf3bdb64f69f4718 (diff) | |
download | gnutls-945667eb0158a7078bcb6ba5d347e9d35021a5d2.tar.gz |
cleanups.
Diffstat (limited to 'lib/debug.c')
-rw-r--r-- | lib/debug.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/debug.c b/lib/debug.c index cc84628fcb..7b560a6268 100644 --- a/lib/debug.c +++ b/lib/debug.c @@ -45,7 +45,8 @@ void _gnutls_print_state(gnutls_session session) #endif -const char* _gnutls_packet2str( int packet) { +const char* _gnutls_packet2str( ContentType packet) +{ switch(packet) { case GNUTLS_CHANGE_CIPHER_SPEC: return "Change Cipher Spec"; @@ -61,7 +62,8 @@ const char* _gnutls_packet2str( int packet) { } } -const char* _gnutls_handshake2str( int handshake) { +const char* _gnutls_handshake2str( HandshakeType handshake) +{ switch(handshake) { case GNUTLS_HELLO_REQUEST: @@ -100,12 +102,12 @@ const char* _gnutls_handshake2str( int handshake) { } } -void _gnutls_dump_mpi(char* prefix, GNUTLS_MPI a) +void _gnutls_dump_mpi(const char* prefix, GNUTLS_MPI a) { char buf[1024]; size_t n = sizeof buf; if (gcry_mpi_print(GCRYMPI_FMT_HEX, buf, n, &n, a)) strcpy(buf, "[can't print value]"); /* Flawfinder: ignore */ - _gnutls_hard_log( "GNUTLS_MPI: length: %d\n\t%s%s\n", (n-1)/2, prefix, buf); + _gnutls_hard_log( "MPI: length: %d\n\t%s%s\n", (n-1)/2, prefix, buf); } |