#include "util.h"
#include "event.h"
#include "packet.h"
-#include "queue.h"
#include "security.h"
#include "security-util.h"
#include "stream.h"
-#include "version.h"
#include "sockaddr-util.h"
#ifdef KRB5_HEIMDAL_INCLUDES
*/
#define GSS_TIMEOUT 30
-/*
- * The largest buffer we can send/receive.
- */
-#define AMANDA_MAX_TOK_SIZE (MAX_TAPE_BLOCK_BYTES * 4)
-
/*
* This is the tcp stream buffer size
*/
-#define KRB5_STREAM_BUFSIZE (MAX_TAPE_BLOCK_BYTES * 2)
+#define KRB5_STREAM_BUFSIZE (32768 * 2)
/*
* This is the max number of outgoing connections we can have at once.
gss_name_t gss_name;
gss_cred_id_t gss_creds;
char *p, *realm, *msg;
- uid_t euid;
int rval = -1;
int rvalue;
char errbuf[256];
* out of the default keytab. We also need to be root in
* gss_accept_context() thanks to the replay cache code.
*/
- euid = geteuid();
- if (getuid() != 0) {
- g_snprintf(errbuf, SIZEOF(errbuf),
- _("real uid is %ld, needs to be 0 to read krb5 host key"),
- (long)getuid());
- goto out;
- }
if (!set_root_privs(0)) {
g_snprintf(errbuf, SIZEOF(errbuf),
- _("can't seteuid to uid 0: %s"), strerror(errno));
+ _("can't take root privileges to read krb5 host key: %s"), strerror(errno));
goto out;
}