CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
authz.cc
Go to the documentation of this file.
1 
5 #include "authz.h"
6 
7 #include <cstring>
8 
9 #include "smalloc.h"
10 
12  AuthzToken *result = new AuthzToken();
13  result->type = this->type;
14  result->size = this->size;
15  if (this->size > 0) {
16  result->data = smalloc(result->size);
17  memcpy(result->data, this->data, this->size);
18  } else {
19  result->data = NULL;
20  }
21  return result;
22 }
void * data
Definition: authz.h:33
AuthzToken * DeepCopy()
Definition: authz.cc:11
AuthzToken()
Definition: authz.h:29
AuthzTokenType type
Definition: authz.h:32
unsigned size
Definition: authz.h:34