Branch: Tag:

2003-12-12

2003-12-12 21:53:42 by Martin Nilsson <mani@lysator.liu.se>

Added two name methods to be API compatible with ciphers.

Rev: src/post_modules/Nettle/nettle.cmod:1.24

1:   /* nettle.cmod -*- c -*- */      #include "global.h" - RCSID("$Id: nettle.cmod,v 1.23 2003/12/06 14:52:40 nilsson Exp $"); + RCSID("$Id: nettle.cmod,v 1.24 2003/12/12 21:53:42 nilsson Exp $");   #include "interpret.h"   #include "svalue.h"   /* For this_object() */
381:    MEMSET(THIS->iv, 0, THIS->block_size);    }    +  /*! @decl string name() +  */ +  PIKEFUN string name() { +  push_constant_text("CBC"); +  } +     /*! @decl int block_size()    */    PIKEFUN int block_size() {
502:    MEMSET(THIS->backlog, 0, THIS->block_size);    }    +  /*! @decl string name() +  */ +  PIKEFUN string name() { +  push_constant_text("Proxy"); +  } +     /*! @decl int block_size()    *!    *! Get the block size of the contained block crypto.