File: credentials.h

package info (click to toggle)
cvm 0.97-0.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,036 kB
  • sloc: ansic: 4,065; sh: 2,758; makefile: 235; sql: 15
file content (15 lines) | stat: -rw-r--r-- 402 bytes parent folder | download | duplicates (5)
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