Merge 'master'
This commit is contained in:
@@ -21,6 +21,8 @@ AC_REQUIRE([AC_PROG_LIBTOOL])
|
||||
|
||||
AC_REQUIRE([AC_MIPS_ABI])
|
||||
|
||||
AC_DEFINE(rk_PATH_DELIM, '/', [Path name delimiter])
|
||||
|
||||
dnl C characteristics
|
||||
|
||||
AC_REQUIRE([AC_C___ATTRIBUTE__])
|
||||
|
@@ -13,4 +13,6 @@ typedef socklen_t krb5_socklen_t;
|
||||
#include <unistd.h>
|
||||
typedef ssize_t krb5_ssize_t;
|
||||
|
||||
typedef int krb5_socket_t;
|
||||
|
||||
#endif /* __krb5_types_h__ */
|
||||
|
@@ -2,9 +2,7 @@
|
||||
|
||||
#include <stddef.h>
|
||||
#include <time.h>
|
||||
#ifndef HAVE_INT32_T
|
||||
#include <krb5-types.h>
|
||||
#endif
|
||||
|
||||
#ifndef __asn1_common_definitions__
|
||||
#define __asn1_common_definitions__
|
||||
|
@@ -32,6 +32,9 @@
|
||||
*/
|
||||
|
||||
#undef ROKEN_RENAME
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "compile_et.h"
|
||||
#include <getarg.h>
|
||||
|
||||
@@ -219,19 +222,7 @@ main(int argc, char **argv)
|
||||
err(1, "%s", filename);
|
||||
|
||||
|
||||
p = strrchr(filename, '/');
|
||||
#ifdef BACKSLASH_PATH_DELIM
|
||||
{
|
||||
char * bs = strrchr(filename, '\\');
|
||||
|
||||
if (p) {
|
||||
if (p < bs)
|
||||
p = bs;
|
||||
} else {
|
||||
p = bs;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
p = strrchr(filename, rk_PATH_DELIM);
|
||||
if(p)
|
||||
p++;
|
||||
else
|
||||
|
@@ -33,10 +33,6 @@ typedef struct direct DIRENTRY;
|
||||
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||||
#endif /* !defined(S_ISDIR) */
|
||||
|
||||
#ifndef HAVE_CHAR
|
||||
typedef unsigned char CHAR;
|
||||
#endif
|
||||
|
||||
#define MEM_INC 64
|
||||
#define SCREEN_INC 256
|
||||
|
||||
|
@@ -145,7 +145,7 @@ read_string(const char *preprompt, const char *prompt,
|
||||
#else /* CONIO_H */
|
||||
|
||||
static int
|
||||
read_string_conio(const char *preprompt, const char *prompt,
|
||||
read_string(const char *preprompt, const char *prompt,
|
||||
char *buf, size_t len, int echo)
|
||||
{
|
||||
int of = 0;
|
||||
@@ -183,8 +183,6 @@ read_string_conio(const char *preprompt, const char *prompt,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define read_string read_string_conio
|
||||
|
||||
#endif
|
||||
|
||||
int
|
||||
|
@@ -113,7 +113,7 @@ dir_iter_start(hx509_context context,
|
||||
free(d);
|
||||
return errno;
|
||||
}
|
||||
#ifdef HAVE_DIRFD
|
||||
#ifndef _WIN32
|
||||
rk_cloexec(dirfd(d->dir));
|
||||
#endif
|
||||
d->certs = NULL;
|
||||
|
@@ -813,7 +813,7 @@ get_config_file_for_user(void)
|
||||
char *fn = NULL, *home = NULL;
|
||||
|
||||
#ifndef _WIN32
|
||||
if (getuid() == geteuid()) {
|
||||
if (!issuid()) {
|
||||
fn = getenv("SOFTPKCS11RC");
|
||||
if (fn)
|
||||
fn = strdup(fn);
|
||||
|
Reference in New Issue
Block a user