summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-11-22 09:03:31 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-11-22 10:28:10 +0100
commite8c20aafb1385585cdd005fb9b75b87fe6893599 (patch)
treec92e89b4418ff09157a1f37954a5e0bc0fff8d1c /xmlsecurity
parent67fd1ea44506994d49833bd032bf0b07582e18c2 (diff)
xmlsecurity mscrypt: use SAL_N_ELEMENTS()
Change-Id: I39ddffc48c169ca5c95b4cc6b4799530c5d1984e Reviewed-on: https://gerrit.libreoffice.org/45069 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/mscrypt/oid.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmlsecurity/source/xmlsec/mscrypt/oid.hxx b/xmlsecurity/source/xmlsec/mscrypt/oid.hxx
index 94fa4c412558..26986aff762d 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/oid.hxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/oid.hxx
@@ -20,6 +20,8 @@
#ifndef INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_OID_HXX
#define INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_OID_HXX
+#include <sal/macros.h>
+
typedef struct {
char const *oid;
char const *desc;
@@ -147,7 +149,7 @@ OIDItem OIDs[] = {
{"1.2.643.2.2.36.0", "GOST_R_34.10-2001_Sign_DH_PRO"}
};
-int nOID = 119;
+const int nOID = SAL_N_ELEMENTS(OIDs);
#endif