Bug 206926: certcgi.c should not include blapi.h. Use the PK11_PQG_

functions instead.
This commit is contained in:
wtc%netscape.com 2003-05-28 00:47:47 +00:00
parent f6dae5fad2
commit b10e3c77d3

View File

@ -47,8 +47,7 @@
#include "genname.h"
#include "xconst.h"
#include "secutil.h"
#include "blapi.h"
#include "pqgutil.h"
#include "pk11pqg.h"
#include "certxutl.h"
#include "secrng.h" /* for RNG_ */
#include "nss.h"
@ -510,7 +509,7 @@ makeCertReq(Pair *form_data,
error_out("ERROR: Unsupported Key length selected");
}
if (find_field_bool(form_data, "keyType-dsa", PR_TRUE)) {
rv = PQG_ParamGen(keySizeInBits, &pqgParams, &pqgVfy);
rv = PK11_PQG_ParamGen(keySizeInBits, &pqgParams, &pqgVfy);
if (rv != SECSuccess) {
error_out("ERROR: Unable to generate PQG parameters");
}
@ -541,10 +540,10 @@ makeCertReq(Pair *form_data,
SECKEY_DestroySubjectPublicKeyInfo(spki);
}
if (pqgParams != NULL) {
PQG_DestroyParams(pqgParams);
PK11_PQG_DestroyParams(pqgParams);
}
if (pqgVfy != NULL) {
PQG_DestroyVerify(pqgVfy);
PK11_PQG_DestroyVerify(pqgVfy);
}
return certReq;
}