~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_crypt.h

  • Committer: Brian Aker
  • Date: 2008-07-15 08:57:01 UTC
  • Revision ID: brian@tangent.org-20080715085701-h7i77in02mqsg2sv
Commit cleanup of export types.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
{
23
23
  struct rand_struct rand,org_rand;
24
24
  char decode_buff[256],encode_buff[256];
25
 
  uint shift;
26
 
  void crypt_init(ulong *seed);
 
25
  uint32_t shift;
 
26
  void crypt_init(uint32_t *seed);
27
27
 public:
28
28
  SQL_CRYPT(const char *seed);
29
 
  SQL_CRYPT(ulong *seed)
 
29
  SQL_CRYPT(uint32_t *seed)
30
30
  {
31
31
    crypt_init(seed);
32
32
  }
33
33
  ~SQL_CRYPT() {}
34
34
  void init() { shift=0; rand=org_rand; }
35
 
  void encode(char *str, uint length);
36
 
  void decode(char *str, uint length);
 
35
  void encode(char *str, uint32_t length);
 
36
  void decode(char *str, uint32_t length);
37
37
};