labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r744597 - in /labs/orthrus/trunk: include/orthrus.h src/ortcalc.c
Date Sun, 15 Feb 2009 02:16:12 GMT
Author: pquerna
Date: Sun Feb 15 02:16:11 2009
New Revision: 744597

URL: http://svn.apache.org/viewvc?rev=744597&view=rev
Log:
Change API to support multiple OTP algorithms.

Modified:
    labs/orthrus/trunk/include/orthrus.h
    labs/orthrus/trunk/src/ortcalc.c

Modified: labs/orthrus/trunk/include/orthrus.h
URL: http://svn.apache.org/viewvc/labs/orthrus/trunk/include/orthrus.h?rev=744597&r1=744596&r2=744597&view=diff
==============================================================================
--- labs/orthrus/trunk/include/orthrus.h (original)
+++ labs/orthrus/trunk/include/orthrus.h Sun Feb 15 02:16:11 2009
@@ -30,10 +30,14 @@
 /* Opaque Structure repersenting an OTP Response */
 typedef struct orthrus_response_t orthrus_response_t;
 
+  
+#define ORTHRUS_ALG_MD5 (1)
+
 orthrus_error_t* orthrus_create(apr_pool_t *pool, orthrus_t **ort);
 
 orthrus_error_t* orthrus_calculate(orthrus_t *ort,
                                    orthrus_response_t **reply,
+                                   apr_uint32_t alg,
                                    apr_uint64_t num,
                                    const char *seed,
                                    const char *pw,

Modified: labs/orthrus/trunk/src/ortcalc.c
URL: http://svn.apache.org/viewvc/labs/orthrus/trunk/src/ortcalc.c?rev=744597&r1=744596&r2=744597&view=diff
==============================================================================
--- labs/orthrus/trunk/src/ortcalc.c (original)
+++ labs/orthrus/trunk/src/ortcalc.c Sun Feb 15 02:16:11 2009
@@ -123,7 +123,8 @@
     return 1;
   }
 
-  err = orthrus_calculate(oc.ort, &reply, oc.num, oc.seed,
+  err = orthrus_calculate(oc.ort, &reply, ORTHRUS_ALG_MD5,
+                          oc.num, oc.seed,
                           oc.pwin, strlen(oc.pwin),
                           oc.pool);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message