~thomir-deactivatedaccount/drizzle/drizzle-fix-bug653747

« back to all changes in this revision

Viewing changes to include/drizzle_com.h

Merged in Jay's tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
366
366
extern "C" {
367
367
#endif
368
368
 
369
 
my_bool my_net_init(NET *net, Vio* vio);
 
369
bool    my_net_init(NET *net, Vio* vio);
370
370
void    my_net_local_init(NET *net);
371
371
void    net_end(NET *net);
372
 
  void  net_clear(NET *net, my_bool clear_buffer);
373
 
my_bool net_realloc(NET *net, size_t length);
374
 
my_bool net_flush(NET *net);
375
 
my_bool my_net_write(NET *net,const unsigned char *packet, size_t len);
376
 
my_bool net_write_command(NET *net,unsigned char command,
 
372
void    net_clear(NET *net, bool clear_buffer);
 
373
bool    net_realloc(NET *net, size_t length);
 
374
bool    net_flush(NET *net);
 
375
bool    my_net_write(NET *net,const unsigned char *packet, size_t len);
 
376
bool    net_write_command(NET *net,unsigned char command,
377
377
                          const unsigned char *header, size_t head_len,
378
378
                          const unsigned char *packet, size_t len);
379
 
int     net_real_write(NET *net,const unsigned char *packet, size_t len);
380
 
unsigned long my_net_read(NET *net);
 
379
int32_t net_real_write(NET *net,const unsigned char *packet, size_t len);
 
380
uint32_t my_net_read(NET *net);
381
381
 
382
382
#ifdef _global_h
383
383
void my_net_set_write_timeout(NET *net, uint timeout);
445
445
  implemented in sql/password.c
446
446
*/
447
447
 
448
 
void randominit(struct rand_struct *, unsigned long seed1,
449
 
                unsigned long seed2);
 
448
void randominit(struct rand_struct *, uint32_t seed1, uint32_t seed2);
450
449
double my_rnd(struct rand_struct *);
451
450
void create_random_string(char *to, unsigned int length, struct rand_struct *rand_st);
452
451
 
453
 
void hash_password(unsigned long *to, const char *password, unsigned int password_len);
454
 
void make_scrambled_password_323(char *to, const char *password);
455
 
void scramble_323(char *to, const char *message, const char *password);
456
 
my_bool check_scramble_323(const char *, const char *message,
457
 
                           unsigned long *salt);
458
 
void get_salt_from_password_323(unsigned long *res, const char *password);
459
 
void make_password_from_salt_323(char *to, const unsigned long *salt);
 
452
void hash_password(uint32_t *to, const char *password, uint32_t password_len);
460
453
 
461
454
void make_scrambled_password(char *to, const char *password);
462
455
void scramble(char *to, const char *message, const char *password);