1 2016-09-04 00:33:11 0|achow101|how do I use cookie auth with curl
2 2016-09-04 00:33:55 0|achow101|I keep getting 401 unauthorized
3 2016-09-04 01:16:11 0|gmaxwell|look in the file, see the username and passowrd. use it.
4 2016-09-04 01:16:26 0|gmaxwell|you might be having an escaping problem with the password.
5 2016-09-04 01:16:56 0|gmaxwell|I think I opened an issue that some http software is moronic and won't escape things as the http protocol requires... and we should subset the character set used.
6 2016-09-04 01:19:26 0|achow101|It looks right to me. This is the line for the cookie from using curl in verbose > Cookie: __cookie__:Yxv/LANJXLkG19E9tjJNNETb8GAtyZDfVe0zjAd0LZE=
7 2016-09-04 01:24:00 0|gmaxwell|> Cookie? cookie auth has nothing to do with http cookies.
8 2016-09-04 01:24:25 0|gmaxwell|is a character that might get mangled.
9 2016-09-04 01:24:48 0|achow101|then what are the cookies for if not for https cookies?
10 2016-09-04 01:24:52 0|achow101|*http
11 2016-09-04 01:26:07 0|gmaxwell|cookie /n./
12 2016-09-04 01:26:09 0|gmaxwell|A handle, transaction ID, or other token of agreement between cooperating programs. "I give him a packet, he gives me back a cookie." The claim check you get from a dry-cleaning shop is a perfect mundane example of a cookie; the only thing it's useful for is to relate a later transaction to this one (so you get the same clothes back). Compare magic cookie; see also fortune cookie.
13 2016-09-04 01:26:49 0|gmaxwell|^ hackers dictionary definition of the word; same term is used for authentication in many protocols, including X11...
14 2016-09-04 01:27:15 0|achow101|so it's just used as a normal user:password combo for auth?
15 2016-09-04 01:27:17 0|gmaxwell|In the case of bitcoin the cookie auth is an ephemeral username and password, saved in a cookie file, which can be used for HTTP authentication.
16 2016-09-04 01:27:20 0|gmaxwell|Yes.
17 2016-09-04 01:27:35 0|gmaxwell|the username is __cookie__ and the password is Yxv/LANJXLkG19E9tjJNNETb8GAtyZDfVe0zjAd0LZE=
18 2016-09-04 01:27:37 0|achow101|great! Terminology here can be very confusing...
19 2016-09-04 01:28:00 0|gmaxwell|I never expected someone to confuse it with http cookies, but I can see why someone might!
20 2016-09-04 12:19:13 0|MarcoFalke|wumpus: Sorry for letting the qa/test pulls pile up. I will try to look at them next week.
21 2016-09-04 12:27:29 0|wumpus|MarcoFalke: great, thank you!
22 2016-09-04 12:30:31 0|GitHub105|[13bitcoin] 15btcdrak opened pull request #8662: Update btcdrak signing key (06master...06updatekey) 02https://github.com/bitcoin/bitcoin/pull/8662
23 2016-09-04 14:52:10 0|achow101|when did bitcoind stop appearing as if it was just hanging and actually launch the process in the background?
24 2016-09-04 15:23:44 0|sipa|achow101: -daemon
25 2016-09-04 15:24:01 0|sipa|introduced in version 0.2.2, february 2010 :)
26 2016-09-04 15:24:07 0|achow101|yeah, I just realized that
27 2016-09-04 15:24:11 0|achow101|forgot I had that set
28 2016-09-04 15:36:34 0|Chris_Stewart_5|What is the easiest way to check equivalency of two CDataStreams? There isn't a '==' operator defined
29 2016-09-04 15:43:49 0|sipa|add one :)
30 2016-09-04 15:46:19 0|GitHub8|[13bitcoin] 15rebroad closed pull request #8642: Less reliance on protocol version (06master...06LessRelianceOnNodeVersion) 02https://github.com/bitcoin/bitcoin/pull/8642
31 2016-09-04 15:47:38 0|GitHub195|[13bitcoin] 15mruddy opened pull request #8663: trivial: remove unnecessary variable fDaemon (06master...06trivial_fDaemon) 02https://github.com/bitcoin/bitcoin/pull/8663
32 2016-09-04 15:51:59 0|Chris_Stewart_5|sipa: Definitely open to that, I'm just trying to figure out where the underlying buffer is that hold all of the bytes inside of CDataStream
33 2016-09-04 15:52:19 0|Chris_Stewart_5|there doesn't seem to be some private member? https://github.com/bitcoin/bitcoin/blob/d612837814020ae832499d18e6ee5eb919a87907/src/streams.h#L66
34 2016-09-04 15:53:01 0|sipa|the data is stored in CDataStream::vch
35 2016-09-04 15:54:39 0|Chris_Stewart_5|and vector_type is some generic type that is determined at runtime for efficiency or something?
36 2016-09-04 15:55:14 0|sipa|no, it is exactly CDataStream
37 2016-09-04 15:55:19 0|sipa|eh
38 2016-09-04 15:55:29 0|sipa|it is exactly CSerializeData
39 2016-09-04 15:55:42 0|sipa|typedef just gives a new name to an existing type
40 2016-09-04 15:55:53 0|sipa|see the line above
41 2016-09-04 15:59:28 0|Chris_Stewart_5|And CSerializeData is defined here right? https://github.com/bitcoin/bitcoin/blob/a6a860796a44a2805a58391a009ba22752f64e32/src/support/allocators/zeroafterfree.h#L46
42 2016-09-04 15:59:38 0|Chris_Stewart_5|Just making sure I am following these typdefs correctly..
43 2016-09-04 16:01:57 0|sipa|indeed
44 2016-09-04 16:04:30 0|Chris_Stewart_5|thanks
45 2016-09-04 17:54:42 0|sipa|bah, it seems c++ concepts won't even be included in C++17
46 2016-09-04 17:55:24 0|luke-jr|:x
47 2016-09-04 17:57:10 0|sipa|(concepts would make template matches more efficient, and its error messages much more readable)
48 2016-09-04 17:57:43 0|luke-jr|LLVM does a decent job at template errors; G++ isn't bad these days either.
49 2016-09-04 17:58:43 0|sipa|yeah, but inherently the language pretty much requires the compiler to just try all combinations, and see if one doesn't result in (certain classes of) compile errors
50 2016-09-04 17:59:00 0|sipa|which means it can't tell you why matching failed, only what it tried
51 2016-09-04 18:00:38 0|sipa|anyway, reading http://honermann.net/blog/2016/03/06/why-concepts-didnt-make-cxx17/, i do agree with the arguments against
52 2016-09-04 18:01:03 0|sipa|but that probably means in practice we can't use it in bitcoin core until 2024 or so :p
53 2016-09-04 18:14:04 0|gmaxwell|it'll take that long to catch up with C++11 anyways. :)
54 2016-09-04 18:19:48 0|sipa|the changes in c++14 aren't that big
55 2016-09-04 18:20:12 0|sipa|just more of the same... more constexpr, more auto, ...
56 2016-09-04 21:00:34 0|GitHub142|[13bitcoin] 15fivepiece closed pull request #8598: Fix displaying of invalid and non-minimal small pushes as numbers (06master...06fixasm) 02https://github.com/bitcoin/bitcoin/pull/8598