Re: [PATCH v3 1/2] git-imap-send: Add CRAM-MD5 authenticate method support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hitoshi Mitake
Date: Friday, February 12, 2010 - 4:23 am

On 2010年02月12日 05:30, Junio C Hamano wrote:

Thanks, I'll separate and fix the third line.


Do you mean like this?

    ---
    v3: Erik's noticed that there were some garbage lines in this patch.
    I removed these. And 2/2 wasn't changed, I'm sending 1/2 only.

Sorry, I don't know well about custom of Git.


This is remnant of my dirty code. I removed it.


It is accidentally indentation, removed.


Clearly not... I moved it to inside of #ifdef ... #endif block.


I was too optimistic, my next patch
caliculate exact size of these buffer.


If I declare them as unsigned char *,
then another casting for strlen() required. And these are more than
current casting(current casts:6, calling strlen:7).


Exact calculation of required length of buffer is possible,
I implemented.


Calculating size of response_64 before calling cram() is possible.
But doing ENCODED_SIZE(strlen(user) + 1 + strlen(hex) + 1) is not
read for readability, I think.
# Please think that ENCODED_SIZE(n) is maximum required buffer size
# encoding n bytes by base64.


This was custom of perf of linux kernel, and improper for Git, I removed 
these.


Cleary not...


I didn't know error(), I'll use it.

Thanks for your detailed review!
I'll send v4 later.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
imap.preformattedHTML and imap.sslverify, Junio C Hamano, (Sat Feb 6, 12:26 pm)
Re: imap.preformattedHTML and imap.sslverify, Jeremy White, (Mon Feb 8, 3:31 pm)
Re: imap.preformattedHTML and imap.sslverify, Junio C Hamano, (Mon Feb 8, 4:05 pm)
[PATCH 0/4] Some improvements for git-imap-send, Hitoshi Mitake, (Tue Feb 9, 5:09 am)
[PATCH 1/4] Add base64 encoder and decoder, Hitoshi Mitake, (Tue Feb 9, 5:09 am)
[PATCH 2/4] Add stuffs for MD5 hash algorithm, Hitoshi Mitake, (Tue Feb 9, 5:09 am)
[PATCH 3/4] git-imap-send: Implement CRAM-MD5 auth method, Hitoshi Mitake, (Tue Feb 9, 5:09 am)
Re: [PATCH 1/4] Add base64 encoder and decoder, Erik Faye-Lund, (Tue Feb 9, 7:45 am)
Re: [PATCH 0/4] Some improvements for git-imap-send, Erik Faye-Lund, (Tue Feb 9, 8:13 am)
Re: [PATCH 0/4] Some improvements for git-imap-send, Erik Faye-Lund, (Tue Feb 9, 11:37 am)
Re: [PATCH 0/4] Some improvements for git-imap-send, Jeff King, (Tue Feb 9, 11:54 am)
Re: [PATCH 1/4] Add base64 encoder and decoder, Hitoshi Mitake, (Thu Feb 11, 7:37 am)
Re: [PATCH v3 1/2] git-imap-send: Add CRAM-MD5 authenticat ..., Hitoshi Mitake, (Fri Feb 12, 4:23 am)