Session rekeying support in OpenSSH

Darren Tucker dtucker at zip.com.au
Wed May 15 15:51:33 EST 2013


On Wed, May 15, 2013 at 2:38 PM, Damien Miller <djm at mindrot.org> wrote:

> On Wed, 15 May 2013, Darren Tucker wrote:
>
> > +                     switch (toupper(*endofnumber)) {
> > +                     case '\0':
> > +                             scale = 1;
> > +                             break;
> > +                     case 'K':
> > +                             scale = 1<<10;
> > +                             break;
> > +                     case 'M':
> > +                             scale = 1<<20;
> > +                             break;
> > +                     case 'G':
> > +                             scale = 1<<30;
> > +                             break;
>
> Good opportunity to switch to scan_scaled()?


sure.  I was going to factor out that code as a separate change, but if
there's a library function we can steal then even better.


>
> -d
>

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list