Closed Bug 950169 Opened 11 years ago Closed 10 years ago

LogInvalidCertError doesn't use about half of its arguments

Categories

(Core :: Security: PSM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: keeler, Assigned: retornam)

Details

(Whiteboard: [good first bug])

Attachments

(1 file, 3 obsolete files)

211 void
212 LogInvalidCertError(TransportSecurityInfo *socketInfo, 
213                     const nsACString &host, 
214                     const nsACString &hostWithPort,
215                     int32_t port,
216                     PRErrorCode errorCode,
217                     ::mozilla::psm::SSLErrorMessageType errorMessageType,
218                     nsIX509Cert* ix509)
219 {
220   nsString message;
221   socketInfo->GetErrorLogMessage(errorCode, errorMessageType, message);
222   
223   if (!message.IsEmpty()) {
224     nsContentUtils::LogSimpleConsoleError(message, "SSL");
225   }
226 }

host, hostWithPort, port, and ix509 are unused.
Assignee: nobody → mozbugs.retornam
Attached patch bug-950169.patch (obsolete) — Splinter Review
Attachment #8349651 - Flags: review?(dkeeler)
Comment on attachment 8349651 [details] [diff] [review]
bug-950169.patch

Review of attachment 8349651 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good. You'll also need to modify the call to LogInvalidCertError around line 423, though.

::: security/manager/ssl/src/SSLServerCertVerification.cpp
@@ +208,5 @@
>  
>  namespace {
>  
>  void
>  LogInvalidCertError(TransportSecurityInfo *socketInfo, 

While we're here, it would be nice to get rid of this unnecessary trailing whitespace.

@@ +215,4 @@
>  {
>    nsString message;
>    socketInfo->GetErrorLogMessage(errorCode, errorMessageType, message);
>    

There's some unnecessary whitespace on this line as well (although we can keep the blank line itself).
Attachment #8349651 - Flags: review?(dkeeler) → review-
Attached patch bug-950169.patch (obsolete) — Splinter Review
removed the extra whitespaces.
Attachment #8349651 - Attachment is obsolete: true
Attachment #8349665 - Flags: review?(dkeeler)
Attached patch bug-950169.patch (obsolete) — Splinter Review
Attachment #8349665 - Attachment is obsolete: true
Attachment #8349665 - Flags: review?(dkeeler)
Attachment #8349674 - Flags: review?(dkeeler)
Attached patch bug-950169.patchSplinter Review
Attachment #8349674 - Attachment is obsolete: true
Attachment #8349674 - Flags: review?(dkeeler)
Attachment #8349716 - Flags: review?(dkeeler)
Comment on attachment 8349716 [details] [diff] [review]
bug-950169.patch

Review of attachment 8349716 [details] [diff] [review]:
-----------------------------------------------------------------

Great!
If you're not already familiar with checkin procedure, I would have a look at this: http://blog.bonardo.net/2010/06/22/so-youre-about-to-use-checkin-needed
Attachment #8349716 - Flags: review?(dkeeler) → review+
https://hg.mozilla.org/mozilla-central/rev/f95bc5df7fcf
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: