Permalink
Browse files

wo#7597 . move errant LIBNSS setup to private_key_setup

  • Loading branch information...
mcr authored and shussain committed Oct 1, 2018
1 parent 3e30c6f commit 2b58c29196cf7becfe5bb13f687514ccc0ccbfda
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/libopenswan/secrets.c
@@ -692,6 +692,9 @@ void private_key_setup(struct private_key_stuff *pks)
pks->pub->alg = PUBKEY_ALG_RSA;
reference_key(pks->pub);
}
#ifdef HAVE_LIBNSS
pks->pub->nssCert = NULL;
#endif
}
@@ -1320,9 +1323,6 @@ osw_process_secret_records(struct secret **psecrets, int verbose,
s->secretlineno=flp->lino;
s->next = NULL;
#ifdef HAVE_LIBNSS
s->pks.pub->nssCert = NULL;
#endif
private_key_setup(&s->pks);

0 comments on commit 2b58c29

Please sign in to comment.