2008-03-13 14:14:44 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2007-2008 Martin Willi
|
|
|
|
* Hochschule fuer Technik Rapperswil
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
|
|
* option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2008-05-08 12:11:30 +00:00
|
|
|
* @defgroup medsrv_creds_i medsrv_creds
|
2013-03-02 14:26:45 +00:00
|
|
|
* @{ @ingroup medsrv_p
|
2008-03-13 14:14:44 +00:00
|
|
|
*/
|
|
|
|
|
2008-05-08 12:11:30 +00:00
|
|
|
#ifndef MEDSRV_CREDS_H_
|
|
|
|
#define MEDSRV_CREDS_H_
|
2008-03-13 14:14:44 +00:00
|
|
|
|
|
|
|
#include <credentials/credential_set.h>
|
|
|
|
#include <database/database.h>
|
|
|
|
|
2008-05-08 12:11:30 +00:00
|
|
|
typedef struct medsrv_creds_t medsrv_creds_t;
|
2008-03-13 14:14:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Mediation credentials database.
|
|
|
|
*/
|
2008-05-08 12:11:30 +00:00
|
|
|
struct medsrv_creds_t {
|
2008-03-13 14:14:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements credential_set_t interface
|
|
|
|
*/
|
|
|
|
credential_set_t set;
|
2009-09-04 11:46:09 +00:00
|
|
|
|
2008-03-13 14:14:44 +00:00
|
|
|
/**
|
|
|
|
* Destroy the credentials databse.
|
|
|
|
*/
|
2009-09-04 11:46:09 +00:00
|
|
|
void (*destroy)(medsrv_creds_t *this);
|
2008-03-13 14:14:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2008-05-08 12:11:30 +00:00
|
|
|
* Create the medsrv credentials db.
|
2008-03-13 14:14:44 +00:00
|
|
|
*
|
|
|
|
* @param database underlying database
|
|
|
|
* @return credential set implementation on that database
|
|
|
|
*/
|
2008-05-08 12:11:30 +00:00
|
|
|
medsrv_creds_t *medsrv_creds_create(database_t *database);
|
2008-03-13 14:14:44 +00:00
|
|
|
|
2009-03-24 17:43:01 +00:00
|
|
|
#endif /** MEDSRV_CREDS_H_ @}*/
|