Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src



Jason Thorpe <thorpej%shagadelic.org@localhost> wrote:

> >> Perhaps we should provide SADB_X_EALG_AESCBC in our pfkey headers as
> >> well?
> >
> > I thought about it but I fear we could break software doing this:
> >
> >         switch(foo) {
> > #ifdef SADB_X_EALG_AESCBC
> >         case SADB_X_EALG_AESCBC:
> >                 /* whatever */
> > #endif
> > #ifdef SADB_X_EALG_AES
> >         case SADB_X_EALG_AES:
> >                 /* whatever */
> > #endif
> >         }
> 
> Ok, then perhaps we should simply change the name of our constant to 
> the AESCBC flavor.  It is certainly more descriptive.

That will break source compatibility with programs using
SADB_X_EALG_AES. But I may be a bit too conservative. 

-- 
Emmanuel Dreyfus
Un bouquin en français sur BSD:
http://www.eyrolles.com/Informatique/Livre/9782212114638/livre-bsd.php
manu%netbsd.org@localhost



Home | Main Index | Thread Index | Old Index