File: credentials.h

package info (click to toggle)
cvm 0.90-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 836 kB
  • ctags: 555
  • sloc: ansic: 3,848; sh: 1,131; makefile: 118; sql: 15
file content (15 lines) | stat: -rw-r--r-- 402 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef CVM__CREDENTIALS__H__
#define CVM__CREDENTIALS__H__

#define CVM_CRED_ACCOUNT 1
#define CVM_CRED_DOMAIN 2
#define CVM_CRED_PASSWORD 3
#define CVM_CRED_SECRET 4
#define CVM_CRED_CHALLENGE 5
#define CVM_CRED_RESPONSE 6
#define CVM_CRED_RESPONSE_TYPE 7
#define CVM_CRED_MAX 7

#define CVM_CRED_REQUIRED(X) do{ if (cvm_module_credentials[CVM_CRED_##X].len==0) return CVME_NOCRED; }while(0)

#endif