/*
SSSD
System Database - certificate mapping rules related calls
Copyright (C) 2017 Sumit Bose <sbose@redhat.com>
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
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.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "db/sysdb_private.h"
bool user_name_hint)
{
goto done;
}
goto done;
}
if (ret != LDB_SUCCESS) {
goto done;
}
if (ret != LDB_SUCCESS) {
goto done;
}
/* do a synchronous add */
if (ret != LDB_SUCCESS) {
"Failed to add certmap container (%d, [%s])!\n",
goto done;
}
done:
return ret;
}
struct certmap_info *certmap)
{
int ret;
size_t c;
return ENOMEM;
}
goto done;
}
goto done;
}
goto done;
}
goto done;
}
goto done;
}
}
goto done;
}
}
goto done;
}
goto done;
}
el->num_values = c;
goto done;
}
goto done;
}
}
if (ret != LDB_SUCCESS) {
goto done;
}
}
goto done;
}
if (ret != LDB_SUCCESS) {
goto done;
}
done:
if (ret) {
}
return ret;
}
struct certmap_info **certmaps,
bool user_name_hint)
{
size_t c;
bool in_transaction = false;
int ret;
int sret;
return EINVAL;
}
if (container_dn == NULL) {
return ENOMEM;
}
goto done;
}
in_transaction = true;
goto done;
}
goto done;
}
goto done;
}
}
goto done;
}
in_transaction = false;
done:
if (in_transaction) {
}
}
return ret;
}
{
size_t c;
size_t d;
int ret;
const char *tmp_str;
NULL};
NULL};
bool hint = false;
goto done;
}
if (container_dn == NULL) {
goto done;
}
"Failed to read certmap config, skipping.\n");
} else {
SYSDB_CERTMAP_USER_NAME_HINT, false);
}
if (ret != LDB_SUCCESS) {
goto done;
}
goto done;
}
goto done;
}
goto done;
}
goto done;
}
goto done;
}
goto done;
}
}
goto done;
}
}
(uint64_t) -1);
if (tmp_uint > UINT32_MAX) {
(unsigned long) tmp_uint);
goto done;
}
}
} else {
num_values = 0;
}
num_values + 1);
goto done;
}
for (d = 0; d < num_values; d++) {
goto done;
}
}
}
done:
*user_name_hint = hint;
}
return ret;
}