/*
SSSD - certificate handling utils
The calls defined here should be useable outside of SSSD as well, e.g. in
libsss_certmap.
Copyright (C) Sumit Bose <sbose@redhat.com> 2017
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 <stdbool.h>
#include <errno.h>
#include <string.h>
#include "lib/certmap/sss_certmap_int.h"
char delim, char **short_name)
{
char *at;
char *s;
return EINVAL;
}
} else {
}
if (s == NULL) {
return ENOMEM;
}
*short_name = s;
return 0;
}
{
struct san_list *i;
return EINVAL;
}
if (i == NULL) {
return ENOMEM;
}
if (is_bin) {
i->bin_val_len = len;
} else {
}
talloc_free(i);
return ENOMEM;
}
*item = i;
return 0;
}
{
int ret;
if (i == NULL) {
return ENOMEM;
}
goto done;
}
if (ret != 0) {
goto done;
}
ret = 0;
done:
if (ret == 0) {
*item = i;
} else {
talloc_free(i);
}
return ret;
}
{
size_t c;
int ret;
goto done;
}
while (c != 0) {
c--;
rdn_list[c]);
goto done;
}
};
while (c != 0) {
c--;
goto done;
}
};
rdn_list[c]);
goto done;
}
}
(c == 0) ? "" : ",",
goto done;
}
}
} else {
goto done;
}
ret = 0;
done:
if (ret == 0) {
} else {
}
return ret;
}