Implement POST /pks/hashquery

Bug #1197618 reported by Casey Marshall on 2013-07-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hockeypuck
Critical
Casey Marshall

Bug Description

SKS is trying to request missing digests recovered over recon. Need to implement the /pks/hashquery endpoint.

In SKS, /pks/hashquery is requested in reconComm.ml (get_keystrings_via_http), and served by dbserver.ml (webhandler).

Related branches

Casey Marshall (cmars) wrote :
Download full text (3.6 KiB)

SKS seems to end the hashquery response with a CRLF.

[c@exegesis sks-hashquery]$ ./sks-hashquery pool.sks-keyservers.net:11371 69aac1c00ac8e4b327140fb3cc6103c9 5d4dd0d458d0edd906286f477d4c21a8
2013/07/04 23:21:20 Response from server: 2 keys found
2013/07/04 23:21:20 Key# 1 : 8092 bytes
2013/07/04 23:21:20 &{98ddd688e9cbc8ee215f8abdc22aac979f0f4c3a 1 2048 [] [0xc2000d8600] [0xc2000d7720] [198 192 77 4 74 160 236 107 1 8 0 172 121 255 36 161 20 252 83 38 113 138 253 72 174 71 185 157 90 109 123 158 19 14 212 229 215 54 181 180 226 159 182 25 135 110 205 136 224 49 214 27 122 171 192 102 178 195 238 178 111 153 140 21 237 33 244 10 125 33 184 165 3 150 181 33 212 108 116 56 21 139 36 16 222 75 221 126 134 175 20 116 113 188 99 141 182 73 200 202 78 70 161 173 250 24 192 101 243 136 16 113 228 108 255 134 113 222 76 106 9 95 137 97 113 61 10 103 100 166 69 107 135 98 183 143 159 178 176 53 159 15 249 14 117 60 240 187 117 135 104 12 11 241 222 76 36 1 144 159 104 186 109 60 56 80 124 173 173 135 166 75 80 221 27 253 4 78 16 130 200 9 207 154 102 252 136 25 25 149 37 188 232 204 213 169 58 205 223 188 175 97 100 215 147 163 48 40 126 116 183 6 151 230 28 217 2 84 161 245 234 145 141 146 234 231 80 195 162 99 187 18 233 151 63 221 43 75 153 147 66 180 190 194 38 31 25 11 109 161 151 219 135 124 37 229 152 222 142 1 35 199 234 171 156 225 251 0 17 1 0 1] 2c7970b826879da1dc325787dc41c9bba40ae04f30b8ea32d0e79acbd96c940bbacbc898d390286a8e502aad9ed828de0d095c8e0d4644784129d52b1f1ba90b 0 0 }
2013/07/04 23:21:20 Key# 2 : 4407 bytes
2013/07/04 23:21:20 &{ef3c58e512966e2fc724cceba183d9f8a3757b30 1 4096 [] [0xc20015cd80] [0xc2000d7b40 0xc2000d7ba0 0xc2000d7000] [198 193 77 4 81 176 218 115 1 16 0 231 122 151 216 121 199 224 67 175 235 215 77 83 199 197 208 225 212 234 82 10 75 159 16 106 176 222 59 101 95 30 192 248 110 250 35 140 78 42 218 104 99 32 60 65 138 99 168 132 61 95 148 244 203 77 54 111 160 157 6 186 155 93 215 23 218 64 181 14 150 43 137 179 177 98 87 127 54 189 30 70 62 203 119 34 218 174 91 116 197 60 203 125 165 121 208 222 144 94 243 62 21 240 174 205 26 35 114 218 149 68 180 179 65 177 234 99 80 243 245 205 146 156 247 241 234 60 93 175 109 171 170 90 82 201 224 4 47 77 1 5 15 137 172 38 193 112 135 153 219 91 191 71 0 239 115 124 213 63 61 209 28 90 223 52 130 67 77 249 214 58 65 158 223 36 147 109 228 210 134 142 139 244 112 28 120 86 44 49 58 189 114 47 233 86 158 10 81 9 11 118 20 175 75 186 90 242 118 58 41 197 16 100 149 68 199 221 42 130 77 47 210 60 156 231 146 37 190 190 4 200 14 39 212 11 82 39 124 87 161 174 191 226 151 166 245 205 211 120 5 249 142 209 208 189 206 96 6 240 69 46 63 12 135 164 231 212 136 69 189 12 205 207 177 121 56 2 49 131 218 57 75 141 150 253 87 125 254 225 69 176 122 37 24 29 90 253 204 221 17 163 82 94 63 70 209 182 59 80 222 236 164 33 224 18 19 131 132 190 206 115 31 62 246 35 56 253 72 36 110 126 37 104 220 188 195 153 51 32 47 24 181 72 39 22 64 83 92 72 149 217 54 174 152 187 206 162 144 100 123 120 108 15 32 13 109 180 236 228 238 239 206 200 176 211 88 49 176 248 94 5 103 232 252 108 226 34 128 67 122 20 65 164 49 42 123 98 16 249 203 6 47 233 89 0 28 194 119 189 133 162 217 195 159 146 8 20 168 ...

Read more...

Casey Marshall (cmars) on 2013-07-05
Changed in hockeypuck:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers