| 1 | /* |
| 2 | Authors: |
| 3 | Pavel Březina <[email protected]> |
| 4 | |
| 5 | Copyright (C) 2018 Red Hat |
| 6 | |
| 7 | This program is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation; either version 3 of the License, or |
| 10 | (at your option) any later version. |
| 11 | |
| 12 | This program is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | GNU General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License |
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #include <string.h> |
| 22 | |
| 23 | #include "common/common.h"cxx . . $ `<file>/src/common/common.h`/ |
| 24 | #include "lib/constants.h"cxx . . $ `<file>/src/lib/constants.h`/ |
| 25 | |
| 26 | char * |
| 27 | authselect_profile_custom_idcxx . . $ authselect_profile_custom_id(a8b8e32347182212).(const char *name) |
| 28 | { |
| 29 | return formatcxx . . $ format(a849077ff1b8d812).("%s%s", AUTHSELECT_CUSTOM_PREFIXcxx . . $ `src/lib/constants.h:32:9`!, name); |
| 30 | } |
| 31 | |
| 32 | const char * |
| 33 | authselect_profile_parse_customcxx . . $ authselect_profile_parse_custom(fb58d2e09a2a1ce6).(const char *profile_id) |
| 34 | { |
| 35 | static size_t len = strlencxx . . $ strlen(751346f8406fd082).(AUTHSELECT_CUSTOM_PREFIXcxx . . $ `src/lib/constants.h:32:9`!); |
| 36 | |
| 37 | if (profile_id == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) { |
| 38 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 39 | } |
| 40 | |
| 41 | if (strncmpcxx . . $ strncmp(fd278af2f295fa2e).(AUTHSELECT_CUSTOM_PREFIXcxx . . $ `src/lib/constants.h:32:9`!, profile_id, len) != 0) { |
| 42 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 43 | } |
| 44 | |
| 45 | return profile_id + len; |
| 46 | } |
| 47 | |
| 48 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! |
| 49 | authselect_profile_is_customcxx . . $ authselect_profile_is_custom(c5f7da30cbc0f4e9).(const char *profile_id) |
| 50 | { |
| 51 | return authselect_profile_parse_customcxx . . $ authselect_profile_parse_custom(fb58d2e09a2a1ce6).(profile_id) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 52 | } |