Debian Codegraph @

TODO

raw
1 - bug: when the session is started by megatools dl, it will have an
2 empty fs_nodes list, so next call to megatools ls will return empty
3 results and user needs to do --reload
4
5 - add usages to the code
6
7 ---------------------------------------
8
9 - https://github.com/megous/megatools/issues/306
10 Use XDG_CONFIG_HOME for configuration file #306
11 - https://github.com/megous/megatools/issues/305
12 megals return values when secifying invalid paths
13 - https://github.com/megous/megatools/issues/292
14 Create remote folder if it doesn't exist when using megacopy #292
15 - Output coloring doesn't work on non-utf8 Linux #270
16 My system is using the fi_FI@euro locale, which uses the ISO-8859-15 encoding.
17 - https://github.com/megous/megatools/issues/269
18 - key pinning
19 - Add time left and download speed #239
20 - https://github.com/megous/megatools/issues/163
21 - Prompt for decryption key when not avaliable in megadl #163
22 - megacopy: show paths relative to destination directory
23 https://github.com/megous/megatools/issues/120
24 - Make remote path optional for megacopy #307
25 - https://github.com/megous/megatools/issues/322
26 --force option
27 - https://github.com/megous/megatools/issues/372
28 improve output
29
30 - gpg/ssh agent/windows vault support
31
32 #include <windows.h>
33 #include <wincred.h>
34 #include <tchar.h>
35 #pragma hdrstop
36
37 void main ()
38 {
39 { //--- SAVE
40 char* password = "brillant";
41 DWORD cbCreds = 1 + strlen(password);
42
43 CREDENTIALW cred = {0};
44 cred.Type = CRED_TYPE_GENERIC;
45 cred.TargetName = L"FOO/account";
46 cred.CredentialBlobSize = cbCreds;
47 cred.CredentialBlob = (LPBYTE) password;
48 cred.Persist = CRED_PERSIST_LOCAL_MACHINE;
49 cred.UserName = L"paula";
50
51 BOOL ok = ::CredWriteW (&cred, 0);
52 wprintf (L"CredWrite() - errno %d\n", ok ? 0 : ::GetLastError());
53 if (!ok) exit(1);
54 }
55 { //--- RETRIEVE
56 PCREDENTIALW pcred;
57 BOOL ok = ::CredReadW (L"FOO/account", CRED_TYPE_GENERIC, 0, &pcred);
58 wprintf (L"CredRead() - errno %d\n", ok ? 0 : ::GetLastError());
59 if (!ok) exit(1);
60 wprintf (L"Read username = '%s', password='%S' (%d bytes)\n",
61 pcred->UserName, (char*)pcred->CredentialBlob, pcred->CredentialBlobSize);
62 // must free memory allocated by CredRead()!
63 ::CredFree (pcred);
64 }
65 }
66
67 - only retry on non-persistent errors
68 - rework streaming (split download function into a streaming core and a wrapper)
69
70 ------
71
72 - better abort mechanism for http workers
73
74 - https://github.com/megous/megatools/issues/324