Skip to content

Commit

Permalink
Bug 1480647 - Warn about deprecation of key.h and keyt.h. Include key…
Browse files Browse the repository at this point in the history
…hi.h instead of key.h, and keythi.h instead of keyt.h. r=rrelyea
  • Loading branch information
Cosmin Truta committed Sep 14, 2018
1 parent a75a980 commit 8802096
Show file tree
Hide file tree
Showing 45 changed files with 50 additions and 46 deletions.
2 changes: 1 addition & 1 deletion cmd/crmf-cgi/crmfcgi.c
Expand Up @@ -4,7 +4,7 @@

#include "seccomon.h"
#include "nss.h"
#include "key.h"
#include "keyhi.h"
#include "cert.h"
#include "pk11func.h"
#include "secmod.h"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crmftest/testcrmf.c
Expand Up @@ -66,7 +66,7 @@
#include "crmf.h"
#include "secerr.h"
#include "pk11func.h"
#include "key.h"
#include "keyhi.h"
#include "cmmf.h"
#include "plgetopt.h"
#include "secutil.h"
Expand Down
2 changes: 1 addition & 1 deletion cmd/lib/secutil.h
Expand Up @@ -9,7 +9,7 @@
#include "secport.h"
#include "prerror.h"
#include "base64.h"
#include "key.h"
#include "keyhi.h"
#include "secpkcs7.h"
#include "secasn1.h"
#include "secder.h"
Expand Down
2 changes: 0 additions & 2 deletions cmd/tests/nonspr10.c
Expand Up @@ -26,9 +26,7 @@
#include "cryptoht.h"
#include "ecl-exp.h"
#include "hasht.h"
#include "key.h"
#include "keyhi.h"
#include "keyt.h"
#include "keythi.h"
#include "nss.h"
#include "nssb64.h"
Expand Down
2 changes: 1 addition & 1 deletion cmd/vfyserv/vfyserv.h
Expand Up @@ -24,7 +24,7 @@
#include "certt.h"
#include "nss.h"
#include "secder.h"
#include "key.h"
#include "keyhi.h"
#include "sslproto.h"

/* Custom header files */
Expand Down
2 changes: 1 addition & 1 deletion lib/certdb/cert.h
Expand Up @@ -18,7 +18,7 @@
#include "seccomon.h"
#include "secdert.h"
#include "secoidt.h"
#include "keyt.h"
#include "keythi.h"
#include "certt.h"

SEC_BEGIN_PROTOS
Expand Down
2 changes: 1 addition & 1 deletion lib/certhigh/certreq.c
Expand Up @@ -5,7 +5,7 @@
#include "cert.h"
#include "certt.h"
#include "secder.h"
#include "key.h"
#include "keyhi.h"
#include "secitem.h"
#include "secasn1.h"
#include "secerr.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/certhigh/ocsp.h
Expand Up @@ -12,7 +12,7 @@
#include "plarena.h"
#include "seccomon.h"
#include "secoidt.h"
#include "keyt.h"
#include "keythi.h"
#include "certt.h"
#include "ocspt.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/cryptohi/cryptohi.h
Expand Up @@ -14,7 +14,7 @@
#include "secoidt.h"
#include "secdert.h"
#include "cryptoht.h"
#include "keyt.h"
#include "keythi.h"
#include "certt.h"

SEC_BEGIN_PROTOS
Expand Down
6 changes: 4 additions & 2 deletions lib/cryptohi/key.h
Expand Up @@ -2,11 +2,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* This header is deprecated. Please include keyhi.h instead. */

#ifndef _KEY_H_
#define _KEY_H_

#if defined(_MSC_VER) || defined(__GNUC__) || defined(__clang__)
#pragma message("key.h is deprecated. Please include keyhi.h instead.")
#endif

#include "keyhi.h"

#endif /* _KEY_H_ */
4 changes: 4 additions & 0 deletions lib/cryptohi/keyt.h
Expand Up @@ -5,6 +5,10 @@
#ifndef _KEYT_H_
#define _KEYT_H_

#if defined(_MSC_VER) || defined(__GNUC__) || defined(__clang__)
#pragma message("keyt.h is deprecated. Please include keythi.h instead.")
#endif

#include "keythi.h"

#endif /* _KEYT_H_ */
2 changes: 1 addition & 1 deletion lib/jar/jarint.h
Expand Up @@ -5,7 +5,7 @@
/* JAR internal routines */

#include "nspr.h"
#include "key.h"
#include "keyhi.h"
#include "base64.h"

extern CERTCertDBHandle *JAR_open_database(void);
Expand Down
2 changes: 1 addition & 1 deletion lib/nss/nssinit.c
Expand Up @@ -12,7 +12,7 @@
#include "prprf.h"
#include "prmem.h"
#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secmod.h"
#include "secoid.h"
#include "nss.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/pk11wrap/pk11akey.c
Expand Up @@ -13,7 +13,7 @@
#include "pkcs11t.h"
#include "pk11func.h"
#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "keyi.h"
#include "secitem.h"
#include "secasn1.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/pk11wrap/pk11cert.c
Expand Up @@ -15,7 +15,7 @@
#include "cert.h"
#include "certi.h"
#include "secitem.h"
#include "key.h"
#include "keyhi.h"
#include "secoid.h"
#include "pkcs7t.h"
#include "cmsreclist.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/pk11wrap/pk11kea.c
Expand Up @@ -14,7 +14,7 @@
#include "pkcs11.h"
#include "pk11func.h"
#include "secitem.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "sechash.h"
#include "cert.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/pk11wrap/pk11obj.c
Expand Up @@ -11,7 +11,7 @@
#include "pkcs11.h"
#include "pkcs11t.h"
#include "pk11func.h"
#include "key.h"
#include "keyhi.h"
#include "secitem.h"
#include "secerr.h"
#include "sslerr.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/pk11wrap/pk11pbe.c
Expand Up @@ -23,7 +23,7 @@
#include "pkcs11.h"
#include "pk11func.h"
#include "secitem.h"
#include "key.h"
#include "keyhi.h"

typedef struct SEC_PKCS5PBEParameterStr SEC_PKCS5PBEParameter;
struct SEC_PKCS5PBEParameterStr {
Expand Down
2 changes: 1 addition & 1 deletion lib/pk11wrap/pk11pk12.c
Expand Up @@ -14,7 +14,7 @@
#include "pkcs11.h"
#include "pk11func.h"
#include "secitem.h"
#include "key.h"
#include "keyhi.h"
#include "secoid.h"
#include "secasn1.h"
#include "secerr.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/pk11wrap/pk11priv.h
Expand Up @@ -7,7 +7,7 @@
#include "seccomon.h"
#include "secoidt.h"
#include "secdert.h"
#include "keyt.h"
#include "keythi.h"
#include "certt.h"
#include "pkcs11t.h"
#include "secmodt.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/pk11wrap/pk11pub.h
Expand Up @@ -7,7 +7,7 @@
#include "seccomon.h"
#include "secoidt.h"
#include "secdert.h"
#include "keyt.h"
#include "keythi.h"
#include "certt.h"
#include "pkcs11t.h"
#include "secmodt.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/pk11wrap/secmodi.h
Expand Up @@ -13,7 +13,7 @@
#include "secdert.h"
#include "certt.h"
#include "secmodt.h"
#include "keyt.h"
#include "keythi.h"

SEC_BEGIN_PROTOS

Expand Down
2 changes: 1 addition & 1 deletion lib/pkcs12/p12.h
Expand Up @@ -6,7 +6,7 @@
#define _P12_H_

#include "secoid.h"
#include "key.h"
#include "keyhi.h"
#include "secpkcs7.h"
#include "p12t.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/pkcs12/p12t.h
Expand Up @@ -6,7 +6,7 @@
#define _P12T_H_

#include "secoid.h"
#include "key.h"
#include "keythi.h"
#include "pkcs11.h"
#include "secpkcs7.h"
#include "secdig.h" /* for SGNDigestInfo */
Expand Down
2 changes: 1 addition & 1 deletion lib/pkcs12/pkcs12t.h
Expand Up @@ -8,7 +8,7 @@
#include "seccomon.h"
#include "secoid.h"
#include "cert.h"
#include "key.h"
#include "keythi.h"
#include "plarena.h"
#include "secpkcs7.h"
#include "secdig.h" /* for SGNDigestInfo */
Expand Down
2 changes: 1 addition & 1 deletion lib/pkcs7/p7decode.c
Expand Up @@ -16,7 +16,7 @@
/* include should be removed! */
/*#include "cdbhdl.h" */
#include "cryptohi.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secitem.h"
#include "secoid.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/pkcs7/secmime.c
Expand Up @@ -14,7 +14,7 @@
#include "secasn1.h"
#include "secitem.h"
#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secerr.h"

typedef struct smime_cipher_map_struct {
Expand Down
2 changes: 1 addition & 1 deletion lib/pkcs7/secpkcs7.h
Expand Up @@ -13,7 +13,7 @@

#include "secoidt.h"
#include "certt.h"
#include "keyt.h"
#include "keythi.h"
#include "hasht.h"
#include "pkcs7t.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cms.h
Expand Up @@ -13,7 +13,7 @@

#include "secoidt.h"
#include "certt.h"
#include "keyt.h"
#include "keythi.h"
#include "hasht.h"
#include "cmst.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cmsasn1.c
Expand Up @@ -9,7 +9,7 @@
#include "cmslocal.h"

#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secitem.h"
#include "secoid.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cmsdecode.c
Expand Up @@ -9,7 +9,7 @@
#include "cmslocal.h"

#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secitem.h"
#include "secoid.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cmsdigest.c
Expand Up @@ -9,7 +9,7 @@
#include "cmslocal.h"

#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secitem.h"
#include "secoid.h"
#include "pk11func.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cmsencdata.c
Expand Up @@ -8,7 +8,7 @@

#include "cmslocal.h"

#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secitem.h"
#include "secoid.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cmsencode.c
Expand Up @@ -9,7 +9,7 @@
#include "cmslocal.h"

#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secoid.h"
#include "secitem.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cmsenvdata.c
Expand Up @@ -9,7 +9,7 @@
#include "cmslocal.h"

#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secitem.h"
#include "secoid.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cmspubkey.c
Expand Up @@ -9,7 +9,7 @@
#include "cmslocal.h"

#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secitem.h"
#include "secoid.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cmsrecinfo.c
Expand Up @@ -9,7 +9,7 @@
#include "cmslocal.h"

#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secitem.h"
#include "secoid.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cmsreclist.c
Expand Up @@ -9,7 +9,7 @@
#include "cmslocal.h"

#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secitem.h"
#include "secoid.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cmssiginfo.c
Expand Up @@ -9,7 +9,7 @@
#include "cmslocal.h"

#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secitem.h"
#include "secoid.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/cmsutil.c
Expand Up @@ -9,7 +9,7 @@
#include "cmslocal.h"

#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secitem.h"
#include "secoid.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/smimemessage.c
Expand Up @@ -10,7 +10,7 @@
#include "smime.h"

#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secasn1.h"
#include "secitem.h"
#include "secoid.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/smime/smimeutil.c
Expand Up @@ -13,7 +13,7 @@
#include "secasn1.h"
#include "secitem.h"
#include "cert.h"
#include "key.h"
#include "keyhi.h"
#include "secerr.h"
#include "cms.h"
#include "nss.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ssl/authcert.c
Expand Up @@ -13,7 +13,7 @@
#include "cert.h"
#include "nspr.h"
#include "secder.h"
#include "key.h"
#include "keyhi.h"
#include "nss.h"
#include "ssl.h"
#include "pk11func.h" /* for PK11_ function calls */
Expand Down

0 comments on commit 8802096

Please sign in to comment.