for (i=0; i<locallen; i++) {
logger_log(&conn->raop->logger, LOGGER_INFO, "%02x", local[i]);
}
+ logger_log(&conn->raop->logger, LOGGER_INFO, "\n");
logger_log(&conn->raop->logger, LOGGER_INFO, "Remote: ");
for (i=0; i<remotelen; i++) {
logger_log(&conn->raop->logger, LOGGER_INFO, "%02x", remote[i]);
memset(signature, 0, sizeof(signature));
rsakey_sign(raop->rsakey, signature, sizeof(signature), challenge,
conn->local, conn->locallen, raop->hwaddr, raop->hwaddrlen);
- logger_log(&conn->raop->logger, LOGGER_INFO, "Got signature: %s\n", signature);
+ logger_log(&conn->raop->logger, LOGGER_DEBUG, "Got signature: %s\n", signature);
http_response_add_header(res, "Apple-Response", signature);
}
if (!strcmp(method, "OPTIONS")) {
data = http_request_get_data(request, &datalen);
if (data) {
sdp_t *sdp = sdp_init(data, datalen);
- logger_log(&conn->raop->logger, LOGGER_INFO, "rsaaeskey: %s\n", sdp_get_rsaaeskey(sdp));
- logger_log(&conn->raop->logger, LOGGER_INFO, "aesiv: %s\n", sdp_get_aesiv(sdp));
+ logger_log(&conn->raop->logger, LOGGER_DEBUG, "rsaaeskey: %s\n", sdp_get_rsaaeskey(sdp));
+ logger_log(&conn->raop->logger, LOGGER_DEBUG, "aesiv: %s\n", sdp_get_aesiv(sdp));
aeskeylen = rsakey_decrypt(raop->rsakey, aeskey, sizeof(aeskey),
sdp_get_rsaaeskey(sdp));
aesivlen = rsakey_parseiv(raop->rsakey, aesiv, sizeof(aesiv),
sdp_get_aesiv(sdp));
- logger_log(&conn->raop->logger, LOGGER_INFO, "aeskeylen: %d\n", aeskeylen);
- logger_log(&conn->raop->logger, LOGGER_INFO, "aesivlen: %d\n", aesivlen);
+ logger_log(&conn->raop->logger, LOGGER_DEBUG, "aeskeylen: %d\n", aeskeylen);
+ logger_log(&conn->raop->logger, LOGGER_DEBUG, "aesivlen: %d\n", aesivlen);
conn->raop_rtp = raop_rtp_init(&raop->logger, &raop->callbacks, sdp_get_fmtp(sdp), aeskey, aesiv);
sdp_destroy(sdp);
/* FIXME: Should use the parsed ports for resend */
raop_rtp_start(conn->raop_rtp, use_udp, 1234, 1234, &cport, &tport, &dport);
- logger_log(&conn->raop->logger, LOGGER_INFO, "cport %d tport %d dport %d\n", cport, tport, dport);
memset(buffer, 0, sizeof(buffer));
if (use_udp) {
}
http_response_finish(res, NULL, 0);
- logger_log(&conn->raop->logger, LOGGER_INFO, "Got request %s with URL %s\n", method, http_request_get_url(request));
+ logger_log(&conn->raop->logger, LOGGER_DEBUG, "Got request %s with URL %s\n", method, http_request_get_url(request));
*response = res;
}
addr = (struct sockaddr *)&raop_rtp->control_saddr;
addrlen = raop_rtp->control_saddr_len;
- logger_log(raop_rtp->logger, LOGGER_INFO, "Got resend request %d %d\n", seqnum, count);
+ logger_log(raop_rtp->logger, LOGGER_DEBUG, "Got resend request %d %d\n", seqnum, count);
ourseqnum = raop_rtp->control_seqnum++;
/* Fill the request buffer */
if (packetlen >= 12) {
char type = packet[1] & ~0x80;
- logger_log(raop_rtp->logger, LOGGER_INFO, "Got control packet of type 0x%02x\n", type);
+ logger_log(raop_rtp->logger, LOGGER_DEBUG, "Got control packet of type 0x%02x\n", type);
if (type == 0x56) {
/* Handle resent data packet */
int ret = raop_buffer_queue(raop_rtp->buffer, packet+4, packetlen-4, 1);