based on Gisle's comment, I removed the use of syslog() and fixed the

netdb.h include, then I re-indented some code to use curl-style
This commit is contained in:
Daniel Stenberg 2003-12-04 15:21:49 +00:00
parent bff59dac12
commit 0ab2dff69c
1 changed files with 65 additions and 63 deletions

View File

@ -46,8 +46,9 @@
#include "security.h" #include "security.h"
#include "base64.h" #include "base64.h"
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_NETDB_H
#include <netdb.h> #include <netdb.h>
#include <syslog.h> #endif
#include <string.h> #include <string.h>
#include <krb.h> #include <krb.h>
#include <des.h> #include <des.h>
@ -128,8 +129,9 @@ krb4_decode(void *app_data, void *buf, int len, int level,
e = krb_rd_priv(buf, len, d->schedule, &d->key, e = krb_rd_priv(buf, len, d->schedule, &d->key,
(struct sockaddr_in *)REMOTE_ADDR, (struct sockaddr_in *)REMOTE_ADDR,
(struct sockaddr_in *)LOCAL_ADDR, &m); (struct sockaddr_in *)LOCAL_ADDR, &m);
if(e){ if(e) {
syslog(LOG_ERR, "krb4_decode: %s", krb_get_err_text(e)); struct SessionHandle *data = conn->data;
infof(data, "krb4_decode: %s\n", krb_get_err_text(e));
return -1; return -1;
} }
memmove(buf, m.app_data, m.app_length); memmove(buf, m.app_data, m.app_length);