[Botan-devel] RFC: memory locking

Jack Lloyd lloyd at randombit.net
Wed Nov 14 13:12:35 EST 2007


On Tue, Nov 13, 2007 at 08:47:18AM +0100, Christoph Ludwig wrote:

> But more important, I think, is that the container used by Botand
> adhere to the standard containers' concepts; i.e., that they meet
> all the requirements laid down in chapter 23 of the current
> standard. That helps a lot if the Botan containers need to be used
> in combination with other libraries.

Step 1 of ? of this:

MemoryRegion::append() becomes push_back()
   [revid 3b7bfdf4cd9ce82f6af404bed00d6369b38a5945]

The obvious question: Why am I not just adding new members and leaving
append() be? One conceivable (and IMO somewhat attractive) path here
is to allow for these types to be transparently replaced with
std::vector<> or equivalent in any particular build of the library,
but that only works if callers are restricted to the API provided by
the container concepts. (Also because I'm betting this change will not
break any applications, though I'm sure I'll hear about it if that's
not the case).

-Jack


More information about the botan-devel mailing list