~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/password.h

  • Committer: Monty Taylor
  • Date: 2009-02-08 11:11:30 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mordred@inaugust.com-20090208111130-futpwptxv5he3boe
Renamed non-prefixed things from libdrizzleclient to drizzleclient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  };
37
37
 
38
38
 
39
 
  void randominit(struct rand_struct *, uint32_t seed1, uint32_t seed2);
40
 
  double my_rnd(struct rand_struct *);
41
 
  void create_random_string(char *to, unsigned int length,
 
39
  void drizzleclient_drizzleclient_randominit(struct rand_struct *, uint32_t seed1, uint32_t seed2);
 
40
  double drizzleclient_my_rnd(struct rand_struct *);
 
41
  void drizzleclient_create_random_string(char *to, unsigned int length,
42
42
                            struct rand_struct *rand_st);
43
43
 
44
 
  void hash_password(uint32_t *to, const char *password,
 
44
  void drizzleclient_hash_password(uint32_t *to, const char *password,
45
45
                     uint32_t password_len);
46
46
 
47
47
  void make_scrambled_password(char *to, const char *password);
50
50
                      const unsigned char *hash_stage2);
51
51
  void get_salt_from_password(unsigned char *res, const char *password);
52
52
  void make_password_from_salt(char *to, const unsigned char *hash_stage2);
53
 
  char *octet2hex(char *to, const char *str, unsigned int len);
 
53
  char *drizzleclient_drizzleclient_octet2hex(char *to, const char *str, unsigned int len);
54
54
 
55
55
#ifdef __cplusplus
56
56
}