You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Scott Cantor (JIRA)" <ji...@apache.org> on 2017/09/07 19:40:01 UTC

[jira] [Resolved] (SANTUARIO-473) Build failure using NSS

     [ https://issues.apache.org/jira/browse/SANTUARIO-473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor resolved SANTUARIO-473.
------------------------------------
    Resolution: Fixed

r1807640

> Build failure using NSS
> -----------------------
>
>                 Key: SANTUARIO-473
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-473
>             Project: Santuario
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: C++ 1.7.3
>         Environment: Debian
>            Reporter: Ferenc Wágner
>            Assignee: Scott Cantor
>             Fix For: C++ 2.0.0
>
>
> Santuario fails to build if NSS is present in the build environment. The configure script detects it, but the enabled conditional sources don't compile. I recommend the following patch:
> {code}
> diff --git a/xsec/enc/NSS/NSSCryptoSymmetricKey.cpp b/xsec/enc/NSS/NSSCryptoSymmetricKey.cpp
> index 0077ac0b..6f725091 100644
> --- a/xsec/enc/NSS/NSSCryptoSymmetricKey.cpp
> +++ b/xsec/enc/NSS/NSSCryptoSymmetricKey.cpp
> @@ -255,7 +255,7 @@ int NSSCryptoSymmetricKey::decryptCtxInit(const unsigned char * iv) {
>              m_ivSize = 16;
>  
>                 }
> -               else if (m_keyMode == MODE_ECB {
> +               else if (m_keyMode == MODE_ECB) {
>  
>                         SECItem * secParam = PK11_ParamFromIV(CKM_AES_ECB, NULL);
>                         mp_ctx = PK11_CreateContextBySymKey(CKM_AES_ECB, CKA_DECRYPT, mp_k, secParam);
> diff --git a/xsec/tools/xtest/xtest.cpp b/xsec/tools/xtest/xtest.cpp
> index 48ea8028..b06bf4a5 100644
> --- a/xsec/tools/xtest/xtest.cpp
> +++ b/xsec/tools/xtest/xtest.cpp
> @@ -2519,7 +2519,7 @@ int main(int argc, char **argv) {
>                 }
>  #endif
>  #if defined(XSEC_HAVE_NSS)
> -               else if (stricmp(argv[paramCount], "--nss") == 0 || stricmp(argv[paramCount], "-n") == 0) {
> +               else if (_stricmp(argv[paramCount], "--nss") == 0 || _stricmp(argv[paramCount], "-n") == 0) {
>                         g_useNSS = true;
>                         paramCount++;
>                 }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)