File: 0004-Use-krb5_auth_con_getsendsubkey-instead-of-krb5_auth.patch

package info (click to toggle)
inetutils 2%3A2.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,312 kB
  • sloc: ansic: 125,847; sh: 12,435; yacc: 1,651; makefile: 697; perl: 72
file content (27 lines) | stat: -rw-r--r-- 801 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From d48d0d5422eb46a67872fd9d6cbdbd86c5f0efc8 Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@hadrons.org>
Date: Wed, 10 Aug 2022 01:57:24 +0200
Subject: [PATCH 4/5] Use krb5_auth_con_getsendsubkey() instead of
 krb5_auth_con_getlocalsubkey()

The latter is not exposed in the headers anymore.

Origin: vendor, Debian
Forwarded: no

diff --git a/libinetutils/kerberos5.c b/libinetutils/kerberos5.c
index 217b64e0..6d993dd3 100644
--- a/libinetutils/kerberos5.c
+++ b/libinetutils/kerberos5.c
@@ -152,7 +152,7 @@ kerberos_auth (krb5_context *ctx, int verbose, char **cname,
   krb5_data_free (&cksum_data);
 # endif
 
-  rc = krb5_auth_con_getlocalsubkey (*ctx, auth_ctx, key);
+  rc = krb5_auth_con_getsendsubkey (*ctx, auth_ctx, key);
 
   /* send size of AP-REQ to the server */
 
-- 
2.47.2