some const fixes

This commit is contained in:
Nils Larsch 2005-03-20 22:56:07 +00:00
parent 130db968b8
commit f4bfd357e5
2 changed files with 5 additions and 5 deletions

View File

@ -959,13 +959,13 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(const SSL_METHOD *ssl_method,
char *SSL_CIPHER_description(SSL_CIPHER *cipher, char *buf, int len) char *SSL_CIPHER_description(SSL_CIPHER *cipher, char *buf, int len)
{ {
int is_export,pkl,kl; int is_export,pkl,kl;
char *ver,*exp_str; const char *ver,*exp_str;
char *kx,*au,*enc,*mac; const char *kx,*au,*enc,*mac;
unsigned long alg,alg2,alg_s; unsigned long alg,alg2,alg_s;
#ifdef KSSL_DEBUG #ifdef KSSL_DEBUG
static char *format="%-23s %s Kx=%-8s Au=%-4s Enc=%-9s Mac=%-4s%s AL=%lx\n"; static const char *format="%-23s %s Kx=%-8s Au=%-4s Enc=%-9s Mac=%-4s%s AL=%lx\n";
#else #else
static char *format="%-23s %s Kx=%-8s Au=%-4s Enc=%-9s Mac=%-4s%s\n"; static const char *format="%-23s %s Kx=%-8s Au=%-4s Enc=%-9s Mac=%-4s%s\n";
#endif /* KSSL_DEBUG */ #endif /* KSSL_DEBUG */
alg=cipher->algorithms; alg=cipher->algorithms;

View File

@ -81,7 +81,7 @@ int SSL_SESSION_print_fp(FILE *fp, SSL_SESSION *x)
int SSL_SESSION_print(BIO *bp, SSL_SESSION *x) int SSL_SESSION_print(BIO *bp, SSL_SESSION *x)
{ {
unsigned int i; unsigned int i;
char *s; const char *s;
if (x == NULL) goto err; if (x == NULL) goto err;
if (BIO_puts(bp,"SSL-Session:\n") <= 0) goto err; if (BIO_puts(bp,"SSL-Session:\n") <= 0) goto err;