[Opendnssec-develop] string handling
Roland van Rijswijk
roland.vanrijswijk at surfnet.nl
Wed Apr 8 10:26:07 UTC 2009
Jakob Schlyter wrote:
> On 8 apr 2009, at 08.52, Roland van Rijswijk wrote:
>> I'd like to bail Rickard out a bit here. PKCS #11 uses a lot of
>> fixed-length strings, one of which is token label. And to make matters
>> even more confusing: the fixed-length strings in the PKCS #11 spec are
>> not NULL-terminated...
> then we perhaps should write helper functions that translates PKCS#11
> fixed-length strings to/from null-terminated strings?
Something like that could be helpful, to prevent buffer overflows.
-- Roland M. van Rijswijk
-- SURFnet Middleware Services
-- t: +31-30-2305388
-- e: roland.vanrijswijk at surfnet.nl
More information about the Opendnssec-develop