From f0f6bb03f48dfed227454f14be36e8bca9b72223 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Fri, 21 Jan 2022 22:32:25 -0600 Subject: [PATCH] hdb: Lower-case HDB_DB_FORMAT to make it valid ASN.1 In order to resolve some shift/reduce conflicts in the ASn.1 compiler's grammar we need to be strict about value names starting with lower case and type names starting with upper-case. --- lib/hdb/hdb.asn1 | 2 +- lib/hdb/hdb.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/hdb/hdb.asn1 b/lib/hdb/hdb.asn1 index f6490783a..9eb96be73 100644 --- a/lib/hdb/hdb.asn1 +++ b/lib/hdb/hdb.asn1 @@ -4,7 +4,7 @@ BEGIN IMPORTS EncryptionKey, KerberosTime, Principal FROM krb5; -HDB_DB_FORMAT INTEGER ::= 2 -- format of database, +hdb_db_format INTEGER ::= 2 -- format of database, -- update when making changes -- these must have the same value as the pa-* counterparts diff --git a/lib/hdb/hdb.h b/lib/hdb/hdb.h index be51a58b5..a4805cf52 100644 --- a/lib/hdb/hdb.h +++ b/lib/hdb/hdb.h @@ -46,6 +46,8 @@ #include #include +#define HDB_DB_FORMAT hdb_db_format + typedef HDB_keyset hdb_keyset; typedef HDB_entry hdb_entry; typedef HDB_entry_alias hdb_entry_alias; -- 2.11.4.GIT