shishi-commit
[Top][All Lists]
Advanced

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

CVS shishi/lib


From: shishi-commit
Subject: CVS shishi/lib
Date: Fri, 10 Sep 2004 11:28:19 +0200

Update of /home/cvs/shishi/lib
In directory dopio:/tmp/cvs-serv19918

Modified Files:
        authenticator.c 
Log Message:
(shishi_authenticator_authorizationdata): Allocate output.


--- /home/cvs/shishi/lib/authenticator.c        2004/08/01 17:30:40     1.64
+++ /home/cvs/shishi/lib/authenticator.c        2004/09/10 09:28:18     1.65
@@ -794,9 +794,8 @@
  * @handle: shishi handle as allocated by shishi_init().
  * @authenticator: authenticator as allocated by shishi_authenticator().
  * @adtype: output authorization data type.
- * @addata: output authorization data.
- * @addatalen: on input, maximum size of output authorization data,
- *             on output, actual size of authorization data.
+ * @addata: newly allocated output authorization data.
+ * @addatalen: on output, actual size of newly allocated authorization data.
  * @nth: element number of authorization-data to extract.
  *
  * Extract n:th authorization data from authenticator.  The first
@@ -808,7 +807,7 @@
 shishi_authenticator_authorizationdata (Shishi * handle,
                                        Shishi_asn1 authenticator,
                                        int32_t *adtype,
-                                       char *addata, size_t * addatalen,
+                                       char **addata, size_t * addatalen,
                                        size_t nth)
 {
   char *format;
@@ -830,7 +829,7 @@
     return res;
 
   asprintf (&format, "authorization-data.?%d.ad-data", i);
-  res = shishi_asn1_read (handle, authenticator, format, addata, addatalen);
+  res = shishi_asn1_read2 (handle, authenticator, format, addata, addatalen);
   free (format);
   if (res != SHISHI_OK)
     return res;





reply via email to

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