diff --git a/security/manager/ssl/src/nsCrypto.cpp b/security/manager/ssl/src/nsCrypto.cpp index c603bdfc48bb..14fadff7c162 100644 --- a/security/manager/ssl/src/nsCrypto.cpp +++ b/security/manager/ssl/src/nsCrypto.cpp @@ -2013,9 +2013,6 @@ nsCrypto::GenerateCRMFRequest(JSContext* aContext, const_cast(aRegToken.get()), const_cast(aAuthenticator.get()), escrowCert); -#ifdef DEBUG_javi - printf ("Created the folloing CRMF request:\n%s\n", encodedRequest); -#endif if (!encodedRequest) { nsFreeKeyPairInfo(keyids, numRequests); aRv.Throw(NS_ERROR_FAILURE); diff --git a/security/manager/ssl/src/nsNSSCertificate.cpp b/security/manager/ssl/src/nsNSSCertificate.cpp index 161b30eb1b1f..be38d3151f06 100644 --- a/security/manager/ssl/src/nsNSSCertificate.cpp +++ b/security/manager/ssl/src/nsNSSCertificate.cpp @@ -1359,63 +1359,11 @@ nsNSSCertificate::GetUsagesString(bool localOnly, uint32_t* _verified, return NS_OK; } -#if defined(DEBUG_javi) || defined(DEBUG_jgmyers) -void -DumpASN1Object(nsIASN1Object* object, unsigned int level) -{ - nsAutoString dispNameU, dispValU; - unsigned int i; - nsCOMPtr asn1Objects; - nsCOMPtr isupports; - nsCOMPtr currObject; - bool processObjects; - uint32_t numObjects; - - for (i=0; iGetDisplayName(dispNameU); - nsCOMPtr sequence(do_QueryInterface(object)); - if (sequence) { - printf ("%s ", NS_ConvertUTF16toUTF8(dispNameU).get()); - sequence->GetIsValidContainer(&processObjects); - if (processObjects) { - printf("\n"); - sequence->GetASN1Objects(getter_AddRefs(asn1Objects)); - asn1Objects->GetLength(&numObjects); - for (i=0; iQueryElementAt(i, NS_GET_IID(nsISupports), - getter_AddRefs(currObject)); - DumpASN1Object(currObject, level+1); - } - } else { - object->GetDisplayValue(dispValU); - printf("= %s\n", NS_ConvertUTF16toUTF8(dispValU).get()); - } - } else { - object->GetDisplayValue(dispValU); - printf("%s = %s\n",NS_ConvertUTF16toUTF8(dispNameU).get(), - NS_ConvertUTF16toUTF8(dispValU).get()); - } -} -#endif - NS_IMETHODIMP nsNSSCertificate::GetASN1Structure(nsIASN1Object** aASN1Structure) { - nsNSSShutDownPreventionLock locker; - nsresult rv = NS_OK; NS_ENSURE_ARG_POINTER(aASN1Structure); - // First create the recursive structure os ASN1Objects - // which tells us the layout of the cert. - rv = CreateASN1Struct(aASN1Structure); - if (NS_FAILED(rv)) { - return rv; - } -#ifdef DEBUG_javi - DumpASN1Object(*aASN1Structure, 0); -#endif - return rv; + return CreateASN1Struct(aASN1Structure); } NS_IMETHODIMP