test_negcache.c revision 9face844e3063b61ab19e1d82bbf3d9f9de76ac7
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen NSS Responder
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen Pallavi Jha <pallavikumarijha@gmail.com>
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen Copyright (C) 2013 Red Hat
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen This program is free software; you can redistribute it and/or modify
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen it under the terms of the GNU General Public License as published by
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen the Free Software Foundation; either version 3 of the License, or
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen (at your option) any later version.
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen This program is distributed in the hope that it will be useful,
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen but WITHOUT ANY WARRANTY; without even the implied warranty of
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen GNU General Public License for more details.
08a0b7b0d0444875001847ef2b1b7b76122620abTimo Sirainen You should have received a copy of the GNU General Public License
08a0b7b0d0444875001847ef2b1b7b76122620abTimo Sirainen along with this program. If not, see <http://www.gnu.org/licenses/>.
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen#define CERT "MIIECTCCAvGgAwIBAgIBCTANBgkqhkiG9w0BAQsFADA0MRIwEAYDVQQKDAlJUEEuREVWRUwxHjAcBgNVBAMMFUNlcnRpZmljYXRlIEF1dGhvcml0eTAeFw0xNTA0MjgxMDIxMTFaFw0xNzA0MjgxMDIxMTFaMDIxEjAQBgNVBAoMCUlQQS5ERVZFTDEcMBoGA1UEAwwTaXBhLWRldmVsLmlwYS5kZXZlbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCA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CmzZsM2QPUMBVlBPDhfTVcWXQwN385uycW/ARtSzzSME2jKKWSIQ="
* responder_common.c module
static struct nss_ctx *
if (!nctx) {
return NULL;
return NULL;
return NULL;
return nctx;
struct test_state {
int ret;
int ret;
bool permanent;
permanent = true;
permanent = false;
bool permanent;
permanent = true;
permanent = false;
bool permanent;
permanent = true;
permanent = false;
bool permanent;
permanent = true;
permanent = false;
bool permanent;
permanent = true;
permanent = false;
bool permanent;
permanent = true;
permanent = false;
bool permanent;
permanent = true;
permanent = false;
bool permanent;
permanent = true;
permanent = false;
bool permanent;
PROTO);
PROTO);
permanent = true;
PROTO);
PROTO);
permanent = false;
PROTO);
PROTO);
int ret;
const bool permanent = true;
int ret;
int ret;
int ret;
int main(void)
int rv;
teardown),
teardown),
if (rv == 0) {
return rv;