#include <pakfire/private.h>
#include <pakfire/string.h>
+#define DEFAULT_KEYTAB "/etc/krb5.keytab"
+
struct pakfire_buildservice {
struct pakfire_ctx* ctx;
int nrefs;
char url[PATH_MAX];
+ char keytab[PATH_MAX];
};
static int pakfire_buildservice_setup(struct pakfire_buildservice* service) {
struct pakfire_config* config = NULL;
const char* url = NULL;
+ const char* keytab = NULL;
int r;
// Fetch the configuration
if (r)
goto ERROR;
+ // Fetch the keytab
+ keytab = pakfire_config_get(config, "client", "keytab", DEFAULT_KEYTAB);
+
+ // Store the keytab
+ r = pakfire_string_set(service->keytab, keytab);
+ if (r)
+ goto ERROR;
+
ERROR:
if (config)
pakfire_config_unref(config);