version 1.1.1.2, 2012/05/29 12:26:49
|
version 1.1.1.5, 2014/06/15 16:12:54
|
Line 1
|
Line 1
|
/* |
/* |
* Copyright (c) 2009-2012 Todd C. Miller <Todd.Miller@courtesan.com> | * Copyright (c) 2009-2013 Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 19
|
Line 19
|
|
|
/* API version major/minor */ |
/* API version major/minor */ |
#define SUDO_API_VERSION_MAJOR 1 |
#define SUDO_API_VERSION_MAJOR 1 |
#define SUDO_API_VERSION_MINOR 2 | #define SUDO_API_VERSION_MINOR 5 |
#define SUDO_API_MKVERSION(x, y) ((x << 16) | y) |
#define SUDO_API_MKVERSION(x, y) ((x << 16) | y) |
#define SUDO_API_VERSION SUDO_API_MKVERSION(SUDO_API_VERSION_MAJOR, SUDO_API_VERSION_MINOR) |
#define SUDO_API_VERSION SUDO_API_MKVERSION(SUDO_API_VERSION_MAJOR, SUDO_API_VERSION_MINOR) |
|
|
Line 46 struct sudo_conv_message {
|
Line 46 struct sudo_conv_message {
|
int timeout; |
int timeout; |
const char *msg; |
const char *msg; |
}; |
}; |
|
|
|
/* |
|
* Maximum length of a reply (not including the trailing NUL) when |
|
* conversing with the user. In practical terms, this is the longest |
|
* password sudo will support. This means that a buffer of size |
|
* SUDO_CONV_REPL_MAX+1 is guaranteed to be able to hold any reply |
|
* from the conversation function. It is also useful as a max value |
|
* for memset_s() when clearing passwords returned by the conversation |
|
* function. |
|
*/ |
|
#define SUDO_CONV_REPL_MAX 255 |
|
|
struct sudo_conv_reply { |
struct sudo_conv_reply { |
char *reply; |
char *reply; |