chiark / gitweb /
server/: Replace the Diffie--Hellman group abstraction.
[tripe] / server / servutil.c
index dbca451d4ca920b9447359a3676aef6810f2cf2e..f19ce5314d5d6fc541ef4390057b43389e2981aa 100644 (file)
@@ -34,41 +34,6 @@ octet buf_i[PKBUFSZ], buf_o[PKBUFSZ], buf_t[PKBUFSZ], buf_u[PKBUFSZ];
 
 /*----- Main code ---------------------------------------------------------*/
 
-/* --- @mpstr@ --- *
- *
- * Arguments:  @mp *m@ = a multiprecision integer
- *
- * Returns:    A pointer to the integer's textual representation.
- *
- * Use:                Converts a multiprecision integer to a string.  Corrupts
- *             @buf_u@.
- */
-
-const char *mpstr(mp *m)
-{
-  if (mp_writestring(m, (char *)buf_u, sizeof(buf_u), 10))
-    return ("<failed>");
-  return ((const char *)buf_u);
-}
-
-/* --- @gestr@ --- *
- *
- * Arguments:  @group *g@ = a group
- *             @ge *x@ = a group element
- *
- * Returns:    A pointer to the element's textual representation.
- *
- * Use:                Converts a group element to a string.  Corrupts
- *             @buf_u@.
- */
-
-const char *gestr(group *g, ge *x)
-{
-  if (group_writestring(g, x, (char *)buf_u, sizeof(buf_u)))
-    return ("<failed>");
-  return ((const char *)buf_u);
-}
-
 /* --- @timestr@ --- *
  *
  * Arguments:  @time_t t@ = a time to convert