comparison auth.h @ 1274:9da3e7b4fe55

add parentheses to macro
author Francois Perrad <francois.perrad@gadz.org>
date Fri, 01 Jan 2016 09:40:24 +0100
parents c45d65392c1a
children 9169e4e7cbee
comparison
equal deleted inserted replaced
1273:139935236c72 1274:9da3e7b4fe55
79 79
80 80
81 #define MAX_USERNAME_LEN 25 /* arbitrary for the moment */ 81 #define MAX_USERNAME_LEN 25 /* arbitrary for the moment */
82 82
83 #define AUTH_TYPE_NONE 1 83 #define AUTH_TYPE_NONE 1
84 #define AUTH_TYPE_PUBKEY 1 << 1 84 #define AUTH_TYPE_PUBKEY (1 << 1)
85 #define AUTH_TYPE_PASSWORD 1 << 2 85 #define AUTH_TYPE_PASSWORD (1 << 2)
86 #define AUTH_TYPE_INTERACT 1 << 3 86 #define AUTH_TYPE_INTERACT (1 << 3)
87 87
88 #define AUTH_METHOD_NONE "none" 88 #define AUTH_METHOD_NONE "none"
89 #define AUTH_METHOD_NONE_LEN 4 89 #define AUTH_METHOD_NONE_LEN 4
90 #define AUTH_METHOD_PUBKEY "publickey" 90 #define AUTH_METHOD_PUBKEY "publickey"
91 #define AUTH_METHOD_PUBKEY_LEN 9 91 #define AUTH_METHOD_PUBKEY_LEN 9