]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/lhash/lhash.h
Import of old SSLeay release: SSLeay 0.9.1b (unreleased)
[thirdparty/openssl.git] / crypto / lhash / lhash.h
index 70cbc6dfe70aca179f1a2d6fe239751b61716462..06aad873b29f85f1370a7c64ea4dd84bf5048b40 100644 (file)
@@ -102,10 +102,16 @@ typedef struct lhash_st
        unsigned long num_retrieve;
        unsigned long num_retrieve_miss;
        unsigned long num_hash_comps;
+
+       int error;
        } LHASH;
 
 #define LH_LOAD_MULT   256
 
+/* Indicates a malloc() error in the last call, this is only bad
+ * in lh_insert(). */
+#define lh_error(lh)   ((lh)->error)
+
 #ifndef NOPROTO
 LHASH *lh_new(unsigned long (*h)(), int (*c)());
 void lh_free(LHASH *lh);