[pisa-src] r1477 - in trunk/libpisa: util.c util.h

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Mon, 02 Nov 2009 12:34:57 +0100

Author: tjansen
Date: Mon Nov  2 12:34:56 2009
New Revision: 1477

Log:
Removed unused function pisa_get_random_bytes.

Modified:
   trunk/libpisa/util.c
   trunk/libpisa/util.h

Modified: trunk/libpisa/util.c
==============================================================================
--- trunk/libpisa/util.c        Mon Nov  2 12:32:03 2009        (r1476)
+++ trunk/libpisa/util.c        Mon Nov  2 12:34:56 2009        (r1477)
@@ -169,20 +169,6 @@
 }
 
 /**
- * Generate arbitrary random data with the given length.
- * This is a simple wrapper of RAND_bytes() in OpenSSL.
- *
- * @param buf  [out] buffer where generated random data will be stored
- * @param n    length of data that will be generated
- *
- * TODO: TH: possible preauth remnant - check dependencies and remove if 
possible
- */
-void pisa_get_random_bytes(void *buf, int n)
-{
-       RAND_bytes(buf, n);
-}
-
-/**
  * Check if hipd runs, and if not, make it run.
  *
  * @return 0 if success, -1 if not

Modified: trunk/libpisa/util.h
==============================================================================
--- trunk/libpisa/util.h        Mon Nov  2 12:32:03 2009        (r1476)
+++ trunk/libpisa/util.h        Mon Nov  2 12:34:56 2009        (r1477)
@@ -108,8 +108,6 @@
 int pisa_build_digest(const int type, const void *in, int in_len, void *out);
 #endif
 
-void pisa_get_random_bytes(void *buf, int n);
-
 int pisa_make_hipd_run(void);
 int pisa_check_if_hipd_runs(void);
 

Other related posts:

  • » [pisa-src] r1477 - in trunk/libpisa: util.c util.h - Thomas Jansen