]> andersk Git - moira.git/commitdiff
save session key for later encrypted file transfers
authormar <mar>
Mon, 21 Sep 1992 12:28:17 +0000 (12:28 +0000)
committermar <mar>
Mon, 21 Sep 1992 12:28:17 +0000 (12:28 +0000)
update/auth_001.c

index 506d3597e4defd6c0cc6eabc2afd10f6325c0e39..83a5ebf7ac92c9a0e397f21decfd22f6cba2388e 100644 (file)
@@ -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",
This page took 0.065044 seconds and 5 git commands to generate.