From: mar Date: Mon, 21 Sep 1992 12:28:17 +0000 (+0000) Subject: save session key for later encrypted file transfers X-Git-Tag: release77~410 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/06c2568b4fe801fb7ab75c527ac4068c93b3e43b save session key for later encrypted file transfers --- diff --git a/update/auth_001.c b/update/auth_001.c index 506d3597..83a5ebf7 100644 --- a/update/auth_001.c +++ b/update/auth_001.c @@ -28,6 +28,7 @@ extern char *PrincipalHostname(); static char service[] = "rcmd"; static char master[] = "sms"; static char qmark[] = "???"; +C_Block session; /* * authentication request auth_001: @@ -100,6 +101,8 @@ auth_001(str) if (send_ok()) lose("sending approval of authorization"); have_authorization = 1; + /* Stash away session key */ + bcopy(ad.session, session, sizeof(session)); return(0); auth_failed: sprintf(buf, "auth for %s.%s@%s failed: %s",