Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/heimdal merge in 0.3a



details:   https://anonhg.NetBSD.org/src/rev/29ca1f7e1117
branches:  trunk
changeset: 495662:29ca1f7e1117
user:      assar <assar%NetBSD.org@localhost>
date:      Wed Aug 02 20:08:33 2000 +0000

description:
merge in 0.3a

diffstat:

 crypto/dist/heimdal/kdc/connect.c      |  14 +++++++++++---
 crypto/dist/heimdal/lib/krb5/context.c |  34 +++++++++++++++++++---------------
 2 files changed, 30 insertions(+), 18 deletions(-)

diffs (105 lines):

diff -r 4c822377c7de -r 29ca1f7e1117 crypto/dist/heimdal/kdc/connect.c
--- a/crypto/dist/heimdal/kdc/connect.c Wed Aug 02 20:04:45 2000 +0000
+++ b/crypto/dist/heimdal/kdc/connect.c Wed Aug 02 20:08:33 2000 +0000
@@ -33,7 +33,7 @@
 
 #include "kdc_locl.h"
 
-RCSID("$Id: connect.c,v 1.2 2000/06/21 06:05:01 thorpej Exp $");
+RCSID("$Id: connect.c,v 1.3 2000/08/02 20:08:33 assar Exp $");
 
 /*
  * a tuple describing on what to listen
@@ -129,10 +129,18 @@
     add_port_service(family, "kerberos", 88, "tcp");
     add_port_service(family, "kerberos-sec", 88, "udp");
     add_port_service(family, "kerberos-sec", 88, "tcp");
-    add_port_service(family, "kerberos-iv", 750, "udp");
-    add_port_service(family, "kerberos-iv", 750, "tcp");
     if(enable_http)
        add_port_service(family, "http", 80, "tcp");
+#ifdef KRB4
+    if(enable_v4) {
+       add_port_service(family, "kerberos-iv", 750, "udp");
+       add_port_service(family, "kerberos-iv", 750, "tcp");
+    }
+    if(enable_524) {
+       add_port_service(family, "krb524", 4444, "udp");
+       add_port_service(family, "krb524", 4444, "tcp");
+    }
+#endif
 #ifdef KASERVER
     if (enable_kaserver)
        add_port_service(family, "afs3-kaserver", 7004, "udp");
diff -r 4c822377c7de -r 29ca1f7e1117 crypto/dist/heimdal/lib/krb5/context.c
--- a/crypto/dist/heimdal/lib/krb5/context.c    Wed Aug 02 20:04:45 2000 +0000
+++ b/crypto/dist/heimdal/lib/krb5/context.c    Wed Aug 02 20:08:33 2000 +0000
@@ -33,7 +33,7 @@
 
 #include "krb5_locl.h"
 
-RCSID("$Id: context.c,v 1.2 2000/07/16 18:27:53 thorpej Exp $");
+RCSID("$Id: context.c,v 1.3 2000/08/02 20:08:33 assar Exp $");
 
 #define INIT_FIELD(C, T, E, D, F)                                      \
     (C)->E = krb5_config_get_ ## T ## _default ((C), NULL, (D),        \
@@ -89,27 +89,26 @@
     INIT_FIELD(context, time, kdc_timeout, 3, "kdc_timeout");
     INIT_FIELD(context, int, max_retries, 3, "max_retries");
 
-    context->http_proxy = krb5_config_get_string(context, NULL, "libdefaults", 
-                                          "http_proxy", NULL);
+    INIT_FIELD(context, string, http_proxy, NULL, "http_proxy");
 
     set_etypes (context, "default_etypes", &context->etypes);
     set_etypes (context, "default_etypes_des", &context->etypes_des);
 
     /* default keytab name */
-    context->default_keytab = krb5_config_get_string(context, NULL, 
-                                              "libdefaults", 
-                                              "default_keytab_name", 
-                                              NULL);
-    if(context->default_keytab == NULL)
-       context->default_keytab = KEYTAB_DEFAULT;
+    INIT_FIELD(context, string, default_keytab, 
+              KEYTAB_DEFAULT, "default_keytab_name");
+
+    INIT_FIELD(context, string, time_fmt, 
+              "%Y-%m-%dT%H:%M:%S", "time_format");
 
-    context->time_fmt = krb5_config_get_string(context, NULL, "libdefaults", 
-                                        "time_format", NULL);
-    if(context->time_fmt == NULL)
-       context->time_fmt = "%Y-%m-%dT%H:%M:%S";
-    context->log_utc = krb5_config_get_bool(context, NULL, "libdefaults",
-                                           "log_utc", NULL);
+    INIT_FIELD(context, string, date_fmt, 
+              "%Y-%m-%d", "date_format");
 
+    INIT_FIELD(context, bool, log_utc, 
+              FALSE, "log_utc");
+
+
+    
     /* init dns-proxy slime */
     tmp = krb5_config_get_string(context, NULL, "libdefaults", 
                                 "dns_proxy", NULL);
@@ -213,6 +212,10 @@
   free(context);
 }
 
+/*
+ * set `etype' to a malloced list of the default enctypes
+ */
+
 static krb5_error_code
 default_etypes(krb5_enctype **etype)
 {
@@ -220,6 +223,7 @@
        ETYPE_DES3_CBC_SHA1,
        ETYPE_DES3_CBC_MD5,
        ETYPE_DES_CBC_MD5,
+       ETYPE_ARCFOUR_HMAC_MD5,
        ETYPE_DES_CBC_MD4,
        ETYPE_DES_CBC_CRC,
        ETYPE_NULL



Home | Main Index | Thread Index | Old Index