Hi,
At Sat, 9 Dec 2006 22:33:24 +0200,
"Alon Bar-Lev" <alon.barlev gmail.com> wrote:
> > Two bad reasons don't necessarily make a good
reason, but I still
> > kinda like it that way. Although I have to admit
that the macro
> > definitions are gross!
>
> I think that a program should be compiled using the
free version and
> the proprietary version,
I agree that this is useful to have, if you want it, and our
header
file should support that in the compatibility layer.
Thus I have changed how the compatibility layer works.
Selecting
CRYPTOKI_COMPAT now does not simply add a compat interface
to the "GNU
interface", but instead it replaces the GNU interface
completely with
the official API.
This works by #define'ing the GNU names to the PKCS#11 names
temporarily. As we control the content of the header file,
this
should not conflict with anything outside of the header
file. The
only way this could conflict is if the user already
#define's some of
the GNU names that we temporarily redefine before including
the header
file. I think that this would indicate bad style. Do you
think this
could be a problem?
> I don't think that PKCS#11 spec can fit into GNU
conventions... And I
> don't think that just renaming variables/types changes
the
> copyright...
I agree that the PKCS#11 spec has other idiomatic structures
that make
it unfit for GNU convention, but I am just sensitive to
naming.
Changing to the new naming will make my other code more
readable for
me, and I think that it is worth it. I hope that with the
new
compatibility layer we can find a compromise that suits both
types of
uses.
I agree that just changing a variable name does not affect
copyright.
But the two interface layers (compat/GNU) force some other
restructuring that can potentially affect copyright.
> So I don't think that these reasons apply... :(
>
> But it is your call...
>
> The current state is good enough to be usable.
Please let me know what you think about the new
compatibility layer.
I looked at gcc -dM to check that it does not leak any
definitions
that shouldn't be there, but I only tested it with Scute so
far.
Thanks,
Marcus
_______________________________________________
opensc-devel mailing list
opensc-devel lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel |