]> the.earth.li Git - onak.git/blobdiff - keydb.h
Add ability to drop overly large packets
[onak.git] / keydb.h
diff --git a/keydb.h b/keydb.h
index 50f969a303831c5f8cbc27c77d5eb0568f40f29a..05405c334f8b06eca398cf7d19b977d8c897d622 100644 (file)
--- a/keydb.h
+++ b/keydb.h
  * more details.
  *
  * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef __KEYDB_H__
 #define __KEYDB_H__
 
+#include <stdbool.h>
 #include <inttypes.h>
 
 #include "keystructs.h"
@@ -81,8 +81,7 @@ struct onak_dbctx {
  * are using.
  */
        int (*fetch_key_fp)(struct onak_dbctx *,
-                       uint8_t *fp,
-                       size_t fpsize,
+                       struct openpgp_fingerprint *fingerprint,
                        struct openpgp_publickey **publickey,
                        bool intrans);
 
@@ -208,6 +207,11 @@ struct onak_dbctx {
                        void (*iterfunc)(void *ctx,
                        struct openpgp_publickey *key), void *ctx);
 
+/**
+ * @brief Configuration file information for this backend instance
+ */
+       struct onak_db_config *config;
+
 /**
  * @brief Private backend context information.
  */