mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-20 21:43:12 -07:00
Session Request working
This commit is contained in:
parent
546c452755
commit
2fa6ad8b21
11 changed files with 263 additions and 33 deletions
3
gui/CMakeLists.txt
Normal file
3
gui/CMakeLists.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
|
||||
add_executable(chiaki main.c)
|
||||
target_link_libraries(chiaki chiaki-lib)
|
|
@ -25,8 +25,8 @@ int main(int argc, const char *argv[])
|
|||
memset(connect_info.auth + auth_len, 0, sizeof(connect_info.auth) - auth_len);
|
||||
|
||||
size_t morning_size = sizeof(connect_info.morning);
|
||||
bool r = chiaki_base64_decode(argv[5], strlen(argv[5]), connect_info.morning, &morning_size);
|
||||
if(!r || morning_size != sizeof(connect_info.morning))
|
||||
ChiakiErrorCode err = chiaki_base64_decode(argv[5], strlen(argv[5]), connect_info.morning, &morning_size);
|
||||
if(err != CHIAKI_ERR_SUCCESS || morning_size != sizeof(connect_info.morning))
|
||||
{
|
||||
printf("morning invalid.\n");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue