shishi-commit
[Top][All Lists]
Advanced

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

(shishi_ap_etype_tktoptionsdata): Add.


From: shishi-commit
Subject: (shishi_ap_etype_tktoptionsdata): Add.
Date: Sat, 13 Dec 2003 13:59:49 +0100

Commit from jas 2003-12-13 13:59 CET
(shishi_ap_etype_tktoptionsdata): Add.
Module File name Revision
shishi lib/ap.c 1.58 >>> 1.59
shishi lib/shishi.h.in 1.189 >>> 1.190

shishi/lib/ap.c   1.58 >>> 1.59
Line 364
  }
 
  /**
+  * shishi_ap_etype_tktoptionsdata:
+  * @handle: shishi handle as allocated by shishi_init().
+  * @ap: pointer to new structure that holds information about AP exchange
+  * @etype: encryption type of newly generated random subkey.
+  * @tkt: ticket to set in newly created AP.
+  * @options: AP-REQ options to set in newly created AP.
+  * @data: input array with data to checksum in Authenticator.
+  * @len: length of input array with data to checksum in Authenticator.
+  *
+  * Create a new AP exchange using shishi_ap(), and set the ticket,
+  * AP-REQ apoptions and the Authenticator checksum data using
+  * shishi_ap_set_tktoptionsdata(). A random session key is added to
+  * the authenticator, using the same keytype as the ticket.
+  *
+  * Return value: Returns SHISHI_OK iff successful.
+  **/
+ int
+ shishi_ap_etype_tktoptionsdata (Shishi * handle,
+ Shishi_ap ** ap,
+ int32_t etype,
+ Shishi_tkt * tkt, int options,
+ const char *data, size_t len)
+ {
+   int rc;
+
+   rc = shishi_ap_etype (handle, ap, etype);
+   if (rc != SHISHI_OK)
+     return rc;
+
+   rc = shishi_ap_set_tktoptionsdata (*ap, tkt, options, data, len);
+   if (rc != SHISHI_OK)
+     return rc;
+
+   return SHISHI_OK;
+ }
+
+ /**
   * shishi_ap_tktoptionsasn1usage:
   * @handle: shishi handle as allocated by shishi_init().
   * @ap: pointer to new structure that holds information about AP exchange

shishi/lib/shishi.h.in   1.189 >>> 1.190
Line 1601
  extern int shishi_ap_tktoptions (Shishi * handle,
   Shishi_ap ** ap,
   Shishi_tkt * tkt, int options);
+ extern int shishi_ap_etype_tktoptionsdata (Shishi * handle,
+    Shishi_ap ** ap,
+    int32_t etype,
+    Shishi_tkt * tkt, int options,
+    const char *data, size_t len);
  extern int shishi_ap_set_tktoptionsdata (Shishi_ap * ap,
   Shishi_tkt * tkt,
   int options,



reply via email to

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