~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/security_context.h

  • Committer: Dennis Schoen
  • Date: 2010-01-28 16:47:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1292.
  • Revision ID: dennis@blogma.de-20100128164702-0gyrsy2ymctj9ia4
add getSecurityContext()

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
class SecurityContext {
31
31
public:
32
32
  SecurityContext() {}
33
 
  /*
34
 
    host - host of the client
35
 
    user - user of the client, set to NULL until the user has been read from
36
 
    the connection
37
 
    priv_user - The user privilege we are using. May be "" for anonymous user.
38
 
    ip - client IP
39
 
  */
40
33
 
41
34
  std::string& getIp()
42
35
  {
43
36
    return ip;
44
37
  }
 
38
 
45
39
  void setIp(char * newip)
46
40
  {
47
41
    ip.assign(newip);
51
45
  {
52
46
    return user;
53
47
  }
 
48
 
54
49
  void setUser(char * newuser)
55
50
  {
56
51
    user.assign(newuser);