| /openbsd-src/regress/usr.bin/ssh/misc/sk-dummy/ |
| H A D | sk-dummy.c | 76 pack_key_ecdsa(struct sk_enroll_response *response) in pack_key_ecdsa() argument 86 response->public_key = NULL; in pack_key_ecdsa() 87 response->public_key_len = 0; in pack_key_ecdsa() 88 response->key_handle = NULL; in pack_key_ecdsa() 89 response->key_handle_len = 0; in pack_key_ecdsa() 106 response->public_key_len = EC_POINT_point2oct(g, q, in pack_key_ecdsa() 108 if (response->public_key_len == 0 || response->public_key_len > 2048) { in pack_key_ecdsa() 110 response->public_key_len); in pack_key_ecdsa() 113 if ((response->public_key = malloc(response->public_key_len)) == NULL) { in pack_key_ecdsa() 118 response->public_key, response->public_key_len, NULL) == 0) { in pack_key_ecdsa() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteCommunicationServerCommon.cpp | 180 StreamString response; in Handle_qHostInfo() local 186 response.PutCString("triple:"); in Handle_qHostInfo() 187 response.PutStringAsRawHex8(host_triple.getTriple()); in Handle_qHostInfo() 188 response.Printf(";ptrsize:%u;", host_arch.GetAddressByteSize()); in Handle_qHostInfo() 192 response.PutCString("distribution_id:"); in Handle_qHostInfo() 193 response.PutStringAsRawHex8(distribution_id); in Handle_qHostInfo() 194 response.PutCString(";"); in Handle_qHostInfo() 199 response.PutCString("vendor:apple;"); in Handle_qHostInfo() 205 response.Printf("cputype:%u;", cpu); in Handle_qHostInfo() 207 response.Printf("cpusubtype:%u;", sub); in Handle_qHostInfo() [all …]
|
| H A D | GDBRemoteCommunicationClient.cpp | 209 StringExtractorGDBRemote response; in QueryNoAckModeSupported() local 210 if (SendPacketAndWaitForResponse("QStartNoAckMode", response) == in QueryNoAckModeSupported() 212 if (response.IsOKResponse()) { in QueryNoAckModeSupported() 226 StringExtractorGDBRemote response; in GetListThreadsInStopReplySupported() local 227 if (SendPacketAndWaitForResponse("QListThreadsInStopReply", response) == in GetListThreadsInStopReplySupported() 229 if (response.IsOKResponse()) in GetListThreadsInStopReplySupported() 239 StringExtractorGDBRemote response; in GetVAttachOrWaitSupported() local 240 if (SendPacketAndWaitForResponse("qVAttachOrWaitSupported", response) == in GetVAttachOrWaitSupported() 242 if (response.IsOKResponse()) in GetVAttachOrWaitSupported() 253 StringExtractorGDBRemote response; in GetSyncThreadStateSupported() local [all …]
|
| H A D | GDBRemoteClientBase.cpp | 41 StringExtractorGDBRemote &response) { in SendContinuePacketAndWaitForResponse() argument 43 response.Clear(); in SendContinuePacketAndWaitForResponse() 62 PacketResult read_result = ReadPacket(response, computed_timeout, false); in SendContinuePacketAndWaitForResponse() 94 if (response.Empty()) in SendContinuePacketAndWaitForResponse() 97 const char stop_type = response.GetChar(); in SendContinuePacketAndWaitForResponse() 99 response.GetStringRef().data()); in SendContinuePacketAndWaitForResponse() 114 response.GetHexByteString(inferior_stdout); in SendContinuePacketAndWaitForResponse() 120 llvm::StringRef(response.GetStringRef()).substr(1)); in SendContinuePacketAndWaitForResponse() 123 delegate.HandleAsyncStructuredDataPacket(response.GetStringRef()); in SendContinuePacketAndWaitForResponse() 128 const bool should_stop = ShouldStop(signals, response); in SendContinuePacketAndWaitForResponse() [all …]
|
| H A D | GDBRemoteCommunicationServerLLGS.cpp | 487 StreamGDBRemote response; in SendWResponse() local 488 response.PutChar('E'); in SendWResponse() 489 response.PutHex8(GDBRemoteServerError::eErrorExitStatus); in SendWResponse() 490 return SendPacketNoLock(response.GetString()); in SendWResponse() 501 StreamGDBRemote response; in SendWResponse() local 502 response.Format("{0:g}", *wait_status); in SendWResponse() 505 response.Format(";process:{0:x-}", process->GetID()); in SendWResponse() 508 response.GetString()); in SendWResponse() 509 return SendPacketNoLock(response.GetString()); in SendWResponse() 512 static void AppendHexValue(StreamString &response, const uint8_t *buf, in AppendHexValue() argument [all …]
|
| H A D | GDBRemoteCommunicationServerPlatform.cpp | 268 StreamGDBRemote response; in Handle_qLaunchGDBServer() local 270 response.Printf("pid:%" PRIu64 ";port:%u;", debugserver_pid, in Handle_qLaunchGDBServer() 273 response.PutCString("socket_name:"); in Handle_qLaunchGDBServer() 274 response.PutStringAsRawHex8(socket_name); in Handle_qLaunchGDBServer() 275 response.PutChar(';'); in Handle_qLaunchGDBServer() 278 PacketResult packet_result = SendPacketNoLock(response.GetString()); in Handle_qLaunchGDBServer() 302 StreamGDBRemote response; in Handle_qQueryGDBServer() local 303 response.AsRawOstream() << std::move(server_list); in Handle_qQueryGDBServer() 306 escaped_response.PutEscapedBytes(response.GetString().data(), in Handle_qQueryGDBServer() 307 response.GetSize()); in Handle_qQueryGDBServer() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn30/ |
| H A D | dcn30_clk_mgr_smu_msg.c | 112 uint32_t response = 0; in dcn30_smu_test_message() local 117 DALSMC_MSG_TestMessage, input, &response)) in dcn30_smu_test_message() 118 if (response == input + 1) in dcn30_smu_test_message() 142 uint32_t response = 0; in dcn30_smu_check_driver_if_version() local 147 DALSMC_MSG_GetDriverIfVersion, 0, &response)) { in dcn30_smu_check_driver_if_version() 149 smu_print("SMU driver if version: %d\n", response); in dcn30_smu_check_driver_if_version() 151 if (response == SMU11_DRIVER_IF_VERSION) in dcn30_smu_check_driver_if_version() 161 uint32_t response = 0; in dcn30_smu_check_msg_header_version() local 166 DALSMC_MSG_GetMsgHeaderVersion, 0, &response)) { in dcn30_smu_check_msg_header_version() 168 smu_print("SMU msg header version: %d\n", response); in dcn30_smu_check_msg_header_version() [all …]
|
| /openbsd-src/usr.bin/ssh/ |
| H A D | sk-usbhid.c | 478 struct sk_enroll_response *response) in pack_public_key_ecdsa() argument 486 response->public_key = NULL; in pack_public_key_ecdsa() 487 response->public_key_len = 0; in pack_public_key_ecdsa() 515 response->public_key_len = EC_POINT_point2oct(g, q, in pack_public_key_ecdsa() 517 if (response->public_key_len == 0 || response->public_key_len > 2048) { in pack_public_key_ecdsa() 519 response->public_key_len); in pack_public_key_ecdsa() 522 if ((response->public_key = malloc(response->public_key_len)) == NULL) { in pack_public_key_ecdsa() 527 response in pack_public_key_ecdsa() 549 pack_public_key_ed25519(const fido_cred_t * cred,struct sk_enroll_response * response) pack_public_key_ed25519() argument 581 pack_public_key(uint32_t alg,const fido_cred_t * cred,struct sk_enroll_response * response) pack_public_key() argument 714 struct sk_enroll_response *response = NULL; sk_enroll() local 904 pack_sig_ecdsa(fido_assert_t * assert,struct sk_sign_response * response) pack_sig_ecdsa() argument 942 pack_sig_ed25519(fido_assert_t * assert,struct sk_sign_response * response) pack_sig_ed25519() argument 971 pack_sig(uint32_t alg,fido_assert_t * assert,struct sk_sign_response * response) pack_sig() argument 1022 struct sk_sign_response *response = NULL; sk_sign() local [all...] |
| /openbsd-src/gnu/usr.bin/perl/cpan/HTTP-Tiny/t/ |
| H A D | 030_response.t | 22 my $response = join $CRLF, 'HTTP/1.1 200 OK', 'Foo: Foo', 'Bar: Bar', '', ''; 23 my $fh = tmpfile($response); 30 my $response = join $LF, 'HTTP/1.1 200 OK', 'Foo: Foo', 'Bar: Bar', '', ''; 31 my $fh = tmpfile($response); 39 my $response = join $LF, "HTTP/08.15 66x Foo\nbar", 'Foo: Foo', 'Bar: Bar', '', ''; 40 my $fh = tmpfile($response); 48 my $response = join $LF, "HTTP/2.0 200 Okish", 'Foo: Foo', 'Bar: Bar', '', ''; 49 my $fh = tmpfile($response); 58 my $response = join $LF, 'HTTP/1.1 200 ', 'Foo: Foo', 'Bar: Bar', '', ''; 59 my $fh = tmpfile($response); [all …]
|
| H A D | 100_get.t | 52 my $response = $http->get(@call_args); 71 is( $response->{status}, $rc, "$label response code $rc" ) 72 or diag $response->{content}; 75 ok( $response->{success}, "$label success flag true" ); 78 ok( ! $response->{success}, "$label success flag false" ); 81 is ( $response->{url}, $url, "$label response URL" ); 85 is_deeply($response->{headers}, \%expected, "$label expected headers"); 105 is ( $response->{content}, '', "$label resp content empty" ); 108 $check_expected->( $response->{content}, "$label content" ); 111 ok ( ! exists $response->{redirects}, "$label redirects array doesn't exist") [all …]
|
| /openbsd-src/regress/lib/libradius/ |
| H A D | test10.c | 12 RADIUS_PACKET *response; in test10() local 23 response = radius_new_response_packet(RADIUS_CODE_ACCESS_ACCEPT, request); in test10() 24 radius_put_string_attr(response, 10, "foobarbaz"); in test10() 25 radius_set_response_authenticator(response, "sharedsecret"); in test10() 34 CHECK(radius_get_length(response) == sizeof(responsedata)); in test10() 35 CHECK(memcmp(radius_get_data(response), responsedata, sizeof(responsedata)) == 0); in test10() 36 CHECK(radius_check_response_authenticator(response, "sharedsecret") == 0); in test10() 38 radius_set_raw_attr(response, 10, "zapzapzap", 9); in test10() 39 CHECK(radius_check_response_authenticator(response, "sharedsecret") != 0); in test10()
|
| H A D | test23.c | 12 RADIUS_PACKET *response; in test23() local 40 response = radius_new_response_packet(RADIUS_CODE_ACCESS_ACCEPT, packet); in test23() 41 radius_put_string_attr(response, 10, "foobarbaz"); in test23() 42 radius_put_message_authenticator(response, "sharedsecret"); in test23() 44 radius_get_authenticator(response, responsedata + 4); in test23() 53 CHECK(radius_get_length(response) == sizeof(responsedata)); in test23() 54 CHECK(memcmp(radius_get_data(response), responsedata, sizeof(responsedata)) == 0); in test23() 55 CHECK(radius_check_message_authenticator(response, "sharedsecret") == 0); in test23() 59 radius_set_raw_attr(response, 10, "zapzapzap", 9); in test23() 60 CHECK(radius_check_message_authenticator(response, "sharedsecre in test23() [all...] |
| /openbsd-src/gnu/usr.bin/perl/cpan/libnet/lib/Net/ |
| H A D | FTP.pm | 166 unless ($ftp->response() == CMD_OK) { 242 $ftp->response(); 250 $ftp->response(); 386 $ok = $ftp->command("SITE", ${*$ftp}{'net_ftp_host'})->response; 389 $ok = $ftp->command("OPEN", ${*$ftp}{'net_ftp_host'})->response; 400 $ok = $ftp->response() 525 $ftp->response(); 1150 if (CMD_INFO == $ftp->response()) { 1182 $ok = CMD_INFO == $ftp->response(); 1218 sub response { subroutine [all …]
|
| H A D | NNTP.pm | 107 unless ($obj->response() == CMD_OK) { 213 && $nntp->command($user, $pass)->response == CMD_OK; 713 sub _ARTICLE { shift->command('ARTICLE', @_)->response == CMD_OK } 714 sub _AUTHINFO { shift->command('AUTHINFO', @_)->response } 715 sub _BODY { shift->command('BODY', @_)->response == CMD_OK } 716 sub _DATE { shift->command('DATE')->response == CMD_INFO } 717 sub _GROUP { shift->command('GROUP', @_)->response == CMD_OK } 718 sub _HEAD { shift->command('HEAD', @_)->response == CMD_OK } 719 sub _HELP { shift->command('HELP', @_)->response == CMD_INFO } 720 sub _IHAVE { shift->command('IHAVE', @_)->response == CMD_MORE } [all …]
|
| H A D | POP3.pm | 101 unless ($obj->response() == CMD_OK) { 361 sub _STAT { shift->command('STAT' )->response() == CMD_OK } 362 sub _LIST { shift->command('LIST', @_)->response() == CMD_OK } 363 sub _RETR { shift->command('RETR', $_[0])->response() == CMD_OK } 364 sub _DELE { shift->command('DELE', $_[0])->response() == CMD_OK } 365 sub _NOOP { shift->command('NOOP' )->response() == CMD_OK } 366 sub _RSET { shift->command('RSET' )->response() == CMD_OK } 367 sub _QUIT { shift->command('QUIT' )->response() == CMD_OK } 368 sub _TOP { shift->command( 'TOP', @_)->response() == CMD_OK } 369 sub _UIDL { shift->command('UIDL', @_)->response() == CMD_OK } [all …]
|
| H A D | SMTP.pm | 105 unless ($obj->response() == CMD_OK) { 225 while (($code = $self->command(@cmd)->response()) == CMD_MORE) { 527 && $me->response() == CMD_OK; 543 && $me->response() == CMD_OK; 597 sub _EHLO { shift->command("EHLO", @_)->response() == CMD_OK } 598 sub _HELO { shift->command("HELO", @_)->response() == CMD_OK } 599 sub _MAIL { shift->command("MAIL", @_)->response() == CMD_OK } 600 sub _RCPT { shift->command("RCPT", @_)->response() == CMD_OK } 601 sub _SEND { shift->command("SEND", @_)->response() == CMD_OK } 602 sub _SAML { shift->command("SAML", @_)->response() == CMD_OK } [all …]
|
| /openbsd-src/gnu/llvm/lldb/tools/lldb-vscode/ |
| H A D | lldb-vscode.cpp | 591 llvm::json::Object response; in request_attach() local 593 FillResponse(request, response); in request_attach() 631 response["success"] = llvm::json::Value(false); in request_attach() 632 EmplaceSafeString(response, "message", status.GetCString()); in request_attach() 633 g_vsc.SendJSON(llvm::json::Value(std::move(response))); in request_attach() 684 response["success"] = llvm::json::Value(false); in request_attach() 685 EmplaceSafeString(response, "message", std::string(error.GetCString())); in request_attach() 690 g_vsc.SendJSON(llvm::json::Value(std::move(response))); in request_attach() 752 llvm::json::Object response; in request_continue() local 753 FillResponse(request, response); in request_continue() [all …]
|
| /openbsd-src/usr.bin/talk/ |
| H A D | invite.c | 67 CTL_RESPONSE response; in invite_remote() local 114 ctl_transact(my_machine_addr, msg, DELETE, &response); in invite_remote() 116 ctl_transact(his_machine_addr, msg, DELETE, &response); in invite_remote() 171 CTL_RESPONSE response; in announce_invite() local 174 ctl_transact(his_machine_addr, msg, ANNOUNCE, &response); in announce_invite() 175 remote_id = response.id_num; in announce_invite() 176 if (response.answer != SUCCESS) in announce_invite() 177 quit(response.answer < NANSWERS ? answers[response.answer] : NULL, 0); in announce_invite() 179 ctl_transact(my_machine_addr, msg, LEAVE_INVITE, &response); in announce_invite() 180 local_id = response.id_num; in announce_invite()
|
| H A D | look_up.c | 47 CTL_RESPONSE response; in check_local() local 58 if (!look_for_invite(&response)) in check_local() 66 if (ntohs(response.addr.sa_family) != AF_INET) in check_local() 69 if (connect(sockt, (struct sockaddr *)&response.addr, in check_local() 70 sizeof (response.addr)) != -1) in check_local() 81 ctl_transact(his_machine_addr, msg, DELETE, &response); in check_local()
|
| /openbsd-src/libexec/talkd/ |
| H A D | talkd.c | 90 CTL_RESPONSE response; in main() local 91 socklen_t len = sizeof(response.addr); in main() 96 memset(&response, 0, sizeof(response)); in main() 98 sizeof(request), 0, (struct sockaddr *)&response.addr, in main() 118 process_request(&request, &response); in main() 120 cc = sendto(STDOUT_FILENO, (char *)&response, in main() 121 sizeof(response), 0, &ctl_addr, sizeof(ctl_addr)); in main() 122 if (cc != sizeof(response)) in main()
|
| /openbsd-src/gnu/llvm/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/ |
| H A D | lldbvscode_testcase.py | 32 response = self.vscode.request_setBreakpoints( 34 if response is None: 36 breakpoints = response['body']['breakpoints'] 48 response = self.vscode.request_setFunctionBreakpoints( 50 if response is None: 52 breakpoints = response['body']['breakpoints'] 149 response = self.vscode.request_stackTrace(threadId=threadId, 153 if response: 154 stackFrames = self.get_dict_value(response, ['body', 'stackFrames']) 155 totalFrames = self.get_dict_value(response, ['body', 'totalFrames']) [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/HTTP-Tiny/lib/HTTP/ |
| H A D | Tiny.pm | 28 #pod * C<max_size> — Maximum response size in bytes (only when not using a data 41 #pod read or write takes longer than the timeout, the request response status code 59 #pod and a reason of "Internal Exception". The content field in the response will 212 #pod $response = $http->get($url); 213 #pod $response = $http->get($url, \%options); 214 #pod $response = $http->head($url); 218 #pod See C<request()> for valid options and a description of the response. 220 #pod The C<success> field of the response will be true if the status code is 2XX. 239 #pod $response = $http->post_form($url, $form_data); 240 #pod $response [all...] |
| /openbsd-src/gnu/usr.bin/perl/cpan/CPAN/lib/CPAN/HTTP/ |
| H A D | Client.pm | 39 my ($response, %headers); 42 $response = $http->mirror( $uri, $path, {headers => \%headers} ); 43 if ( $response->{status} eq '401' ) { 44 last unless $self->_get_auth_params( $response, 'non_proxy' ); 46 elsif ( $response->{status} eq '407' ) { 47 last unless $self->_get_auth_params( $response, 'proxy' ); 58 return $response; 96 my ($self, $response, $mode) = @_; 99 if ( ! $response->{success} ) { # auth failed 105 $self->_get_challenge( $response, "${prefix}-Authenticate"); [all …]
|
| /openbsd-src/libexec/login_skey/ |
| H A D | login_skey.c | 59 char challenge[SKEY_MAX_CHALLENGE+17], response[SKEY_MAX_PW_LEN+1]; in main() local 140 if (!readpassphrase(challenge, response, sizeof(response), 0)) in main() 142 if (response[0] == '\0') in main() 144 response, sizeof(response), RPP_ECHO_ON); in main() 194 cp = response; in main() 195 ep = response + sizeof(response); in main() 224 if (haskey && skeyverify(&skey, response) == 0) { in main()
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Term-ReadKey/example/ |
| H A D | test.pl | 107 my $response; 113 $response = 118 $response = 123 $response = 128 $response = 133 $response = "Term::ReadKey is using Win32 functions.\n"; 137 $response = 146 print $response if $interactive;
|