shishi-commit
[Top][All Lists]
Advanced

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

shishi/lib shishi.h.in cfg.c


From: shishi-commit
Subject: shishi/lib shishi.h.in cfg.c
Date: Tue, 02 Dec 2003 13:14:36 -0500

CVSROOT:        /cvsroot/shishi
Module name:    shishi
Branch:         
Changes by:     Simon Josefsson <address@hidden>        03/12/02 13:14:36

Modified files:
        lib            : shishi.h.in cfg.c 

Log message:
        (shishi_cfg_clientkdcetype_fast): Add.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/lib/shishi.h.in.diff?tr1=1.185&tr2=1.186&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/lib/cfg.c.diff?tr1=1.39&tr2=1.40&r1=text&r2=text

Patches:
Index: shishi/lib/cfg.c
diff -u shishi/lib/cfg.c:1.39 shishi/lib/cfg.c:1.40
--- shishi/lib/cfg.c:1.39       Thu Oct  9 19:11:01 2003
+++ shishi/lib/cfg.c    Tue Dec  2 13:14:36 2003
@@ -502,6 +502,23 @@
 }
 
 /**
+ * shishi_cfg_clientkdcetype_fast:
+ * @handle: Shishi library handle create by shishi_init().
+ *
+ * Extract the default etype from the list of preferred client etypes.
+ *
+ * Return value: Return the default encryption types.
+ **/
+int32_t
+shishi_cfg_clientkdcetype_fast (Shishi * handle)
+{
+  if (handle->nclientkdcetypes > 0)
+    return handle->clientkdcetypes[0];
+  else
+    return SHISHI_AES256_CTS_HMAC_SHA1_96;
+}
+
+/**
  * shishi_cfg_clientkdcetype_set:
  * @handle: Shishi library handle create by shishi_init().
  * @value: string with encryption types.
Index: shishi/lib/shishi.h.in
diff -u shishi/lib/shishi.h.in:1.185 shishi/lib/shishi.h.in:1.186
--- shishi/lib/shishi.h.in:1.185        Thu Nov 27 14:06:15 2003
+++ shishi/lib/shishi.h.in      Tue Dec  2 13:14:36 2003
@@ -598,6 +598,7 @@
 extern const char *shishi_cfg_default_userdirectory (Shishi * handle);
 extern const char *shishi_cfg_default_userfile (Shishi * handle);
 extern int shishi_cfg_clientkdcetype (Shishi * handle, int32_t ** etypes);
+extern int32_t shishi_cfg_clientkdcetype_fast (Shishi * handle);
 extern int shishi_cfg_clientkdcetype_set (Shishi * handle, char *value);
 extern int shishi_cfg_authorizationtype_set (Shishi * handle, char *value);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]