@@ -284,7 +284,7 @@ cupsCreateCredentials(
284284 cups_credusage_t usage_bit ; // Current usage
285285
286286
287- DEBUG_printf ("cupsCreateCredentials(path=\"%s\", ca_cert=%s, purpose=0x%x, type=%d, usage=0x%x, organization=\"%s\", org_unit=\"%s\", locality=\"%s\", state_province=\"%s\", country=\"%s\", common_name=\"%s\", num_alt_names=%u, alt_names=%p, root_name=\"%s\", expiration_date=%ld)" , path , ca_cert ? "true" : "false" , purpose , type , usage , organization , org_unit , locality , state_province , country , common_name , (unsigned )num_alt_names , alt_names , root_name , (long )expiration_date );
287+ DEBUG_printf ("cupsCreateCredentials(path=\"%s\", ca_cert=%s, purpose=0x%x, type=%d, usage=0x%x, organization=\"%s\", org_unit=\"%s\", locality=\"%s\", state_province=\"%s\", country=\"%s\", common_name=\"%s\", num_alt_names=%u, alt_names=%p, root_name=\"%s\", expiration_date=%ld)" , path , ca_cert ? "true" : "false" , purpose , type , usage , organization , org_unit , locality , state_province , country , common_name , (unsigned )num_alt_names , ( void * ) alt_names , root_name , (long )expiration_date );
288288
289289 // Filenames...
290290 if (!path )
@@ -600,7 +600,7 @@ cupsCreateCredentialsRequest(
600600 cups_credusage_t usage_bit ; // Current usage
601601
602602
603- DEBUG_printf ("cupsCreateCredentialsRequest(path=\"%s\", purpose=0x%x, type=%d, usage=0x%x, organization=\"%s\", org_unit=\"%s\", locality=\"%s\", state_province=\"%s\", country=\"%s\", common_name=\"%s\", num_alt_names=%u, alt_names=%p)" , path , purpose , type , usage , organization , org_unit , locality , state_province , country , common_name , (unsigned )num_alt_names , alt_names );
603+ DEBUG_printf ("cupsCreateCredentialsRequest(path=\"%s\", purpose=0x%x, type=%d, usage=0x%x, organization=\"%s\", org_unit=\"%s\", locality=\"%s\", state_province=\"%s\", country=\"%s\", common_name=\"%s\", num_alt_names=%u, alt_names=%p)" , path , purpose , type , usage , organization , org_unit , locality , state_province , country , common_name , (unsigned )num_alt_names , ( void * ) alt_names );
604604
605605 // Filenames...
606606 if (!path )
@@ -777,7 +777,7 @@ cupsGetCredentialsInfo(
777777
778778
779779 // Range check input...
780- DEBUG_printf ("cupsGetCredentialsInfo(credentials=%p, buffer=%p, bufsize=" CUPS_LLFMT ")" , credentials , buffer , CUPS_LLCAST bufsize );
780+ DEBUG_printf ("cupsGetCredentialsInfo(credentials=%p, buffer=%p, bufsize=" CUPS_LLFMT ")" , credentials , ( void * ) buffer , CUPS_LLCAST bufsize );
781781
782782 if (buffer )
783783 * buffer = '\0' ;
@@ -898,7 +898,7 @@ cupsGetCredentialsTrust(
898898 _cups_globals_t * cg = _cupsGlobals (); // Per-thread globals
899899
900900
901- DEBUG_printf ("cupsGetCredentialsTrust(path=\"%s\", common_name=\"%s\", credentials=%p , require_ca=%s)" , path , common_name , (void * ) credentials , require_ca ? "true" : "false" );
901+ DEBUG_printf ("cupsGetCredentialsTrust(path=\"%s\", common_name=\"%s\", credentials=\"%lu bytes\" , require_ca=%s)" , path , common_name , (unsigned long )( credentials ? strlen ( credentials ) : 0 ) , require_ca ? "true" : "false" );
902902
903903 // Range check input...
904904 if (!path )
@@ -1135,7 +1135,7 @@ cupsSignCredentialsRequest(
11351135 saw_san = false; // Saw NID_subject_alt_name?
11361136
11371137
1138- DEBUG_printf ("cupsSignCredentialsRequest(path=\"%s\", common_name=\"%s\", request=\"%s\", root_name=\"%s\", allowed_purpose=0x%x, allowed_usage=0x%x, cb=%p, cb_data=%p, expiration_date=%ld)" , path , common_name , request , root_name , allowed_purpose , allowed_usage , cb , cb_data , (long )expiration_date );
1138+ DEBUG_printf ("cupsSignCredentialsRequest(path=\"%s\", common_name=\"%s\", request=\"%s\", root_name=\"%s\", allowed_purpose=0x%x, allowed_usage=0x%x, cb=%p, cb_data=%p, expiration_date=%ld)" , path , common_name , request , root_name , allowed_purpose , allowed_usage , ( void * ) cb , cb_data , (long )expiration_date );
11391139
11401140 // Filenames...
11411141 if (!path )
@@ -1482,14 +1482,14 @@ httpCopyPeerCredentials(http_t *http) // I - Connection to server
14821482 STACK_OF (X509 ) * chain ; // Certificate chain
14831483
14841484
1485- DEBUG_printf ("httpCopyPeerCredentials(http=%p)" , http );
1485+ DEBUG_printf ("httpCopyPeerCredentials(http=%p)" , ( void * ) http );
14861486
14871487 if (http && http -> tls )
14881488 {
14891489 // Get the chain of certificates for the remote end...
14901490 chain = SSL_get_peer_cert_chain (http -> tls );
14911491
1492- DEBUG_printf ("1httpCopyPeerCredentials: chain=%p" , chain );
1492+ DEBUG_printf ("1httpCopyPeerCredentials: chain=%p" , ( void * ) chain );
14931493
14941494 if (chain )
14951495 {
@@ -1504,7 +1504,7 @@ httpCopyPeerCredentials(http_t *http) // I - Connection to server
15041504 BIO * bio = BIO_new (BIO_s_mem ());
15051505 // Memory buffer for cert
15061506
1507- DEBUG_printf ("1httpCopyPeerCredentials: chain[%d/%d]=%p" , i + 1 , count , cert );
1507+ DEBUG_printf ("1httpCopyPeerCredentials: chain[%d/%d]=%p" , i + 1 , count , ( void * ) cert );
15081508
15091509#ifdef DEBUG
15101510 char subjectName [256 ], issuerName [256 ];
@@ -1514,7 +1514,7 @@ httpCopyPeerCredentials(http_t *http) // I - Connection to server
15141514
15151515 STACK_OF (GENERAL_NAME ) * names ; // subjectAltName values
15161516 names = X509_get_ext_d2i (cert , NID_subject_alt_name , /*crit*/ NULL , /*idx*/ NULL );
1517- DEBUG_printf ("1httpCopyPeerCredentials: subjectAltNames=%p(%d)" , names , names ? sk_GENERAL_NAME_num (names ) : 0 );
1517+ DEBUG_printf ("1httpCopyPeerCredentials: subjectAltNames=%p(%d)" , ( void * ) names , names ? sk_GENERAL_NAME_num (names ) : 0 );
15181518 if (names )
15191519 GENERAL_NAMES_free (names );
15201520#endif // DEBUG
@@ -1600,7 +1600,7 @@ _httpCreateCredentials(
16001600 }
16011601 }
16021602
1603- DEBUG_printf ("1_httpCreateCredentials: Returning %p." , hcreds );
1603+ DEBUG_printf ("1_httpCreateCredentials: Returning %p." , ( void * ) hcreds );
16041604
16051605 return (hcreds );
16061606}
@@ -1754,7 +1754,7 @@ _httpTLSStart(http_t *http) // I - Connection to server
17541754 };
17551755
17561756
1757- DEBUG_printf ("3_httpTLSStart(http=%p)" , http );
1757+ DEBUG_printf ("3_httpTLSStart(http=%p)" , ( void * ) http );
17581758
17591759 if (!cg -> client_conf_loaded )
17601760 {
@@ -1822,7 +1822,7 @@ _httpTLSStart(http_t *http) // I - Connection to server
18221822 {
18231823 // Resolve hostname from connection address...
18241824 http_addr_t addr ; // Connection address
1825- socklen_t addrlen ; // Length of address
1825+ socklen_t addrlen ; // Length of address
18261826
18271827 addrlen = sizeof (addr );
18281828 if (getsockname (http -> fd , (struct sockaddr * )& addr , & addrlen ))
0 commit comments