Displaying 3 results from an estimated 3 matches for "prepare_select".
2007 Feb 23
1
ssh-agent does not immediately clean timeouted keys from memory
during my seminar of advanced exploitation techniques (SEAT, [1]) i
developed some methods to crack into system via DMA (e.g. via firewire).
as part of this i developed a program that steals loaded ssh private
keys from ssh-agents. i was astonished to find that the keys are not
immediately removed from the agent when a timeout occurs, but only the
next time the agent is queried via its socket. i
2009 Aug 18
11
[Bug 1633] New: Race condition in ssh-agent AUTH_CONNECTION
https://bugzilla.mindrot.org/show_bug.cgi?id=1633
Summary: Race condition in ssh-agent AUTH_CONNECTION
Product: Portable OpenSSH
Version: 5.2p1
Platform: ix86
OS/Version: Linux
Status: NEW
Keywords: patch
Severity: normal
Priority: P2
Component: ssh-agent
AssignedTo: unassigned-bugs at
2012 Mar 11
2
[patch] Threading support in ssh-agent
...0;
+ } else if (numthreads == 1) {
+ numthreads = 0;
+ }
+#else
+ numthreads = 0; /* Single thread. */
+#endif /* HAVE___SC_NPROCESSORS_CONF */
+ }
+
+ if (tpool_init(&tpool, numthreads)) {
+ error("Failed to init threads pool.");
+ cleanup_exit(1);
+ }
+#endif
while (1) {
prepare_select(&readsetp, &writesetp, &max_fd, &nalloc, &tvp);
result = select(max_fd + 1, readsetp, writesetp, NULL, tvp);
--- ssh-openssl-thread-locking.c 2012-03-11 00:00:00.000000000 +0000
+++ ssh-openssl-thread-locking.c 2012-03-11 21:37:10.000000000 +0400
@@ -0,0 +1,132 @@
+/* This co...