Displaying 8 results from an estimated 8 matches for "reader_id".
2006 Apr 11
3
Validations and has_many :through (Join Models)
...cipies", number
16, "Many to Many Relationships Where the Relationship Iteself Has
Data".
Here are the tables:
create_table :magazines do |t|
t.column :title, :string
end
create_table :readers do |t|
t.column :name, :string
end
create_table :subscriptions do |t|
t.column :reader_id, :integer
t.column :magazine_id, :integer
t.column :last_renewal_on, :date
t.column :length_in_issues, :integer
end
And here are the models:
class Subscription < ActiveRecord::Base
belongs_to :reader
belongs_to :magazine
end
class Reader < ActiveRecord::Base
has_many :subscript...
2004 Oct 03
3
[PATCH] PreferAskpass in ssh_config
...conf.h"
/* argv0 */
extern char *__progname;
@@ -68,6 +69,11 @@
/* we keep a cache of one passphrases */
static char *pass = NULL;
+
+Options options;
+
+uid_t original_real_uid;
+
static void
clear_pass(void)
{
@@ -311,12 +317,30 @@
AuthenticationConnection *ac = NULL;
char *sc_reader_id = NULL;
int i, ch, deleting = 0, ret = 0;
+ char buf[256];
+ struct passwd *pw;
__progname = ssh_get_progname(argv[0]);
init_rng();
seed_rng();
SSLeay_add_all_algorithms();
+
+ /* Read options */
+ initialize_options(&options);
+
+ pw = getpwuid(original_real_uid = getuid());
+ i...
2006 Jul 27
0
CRUD, REST and associations
...has_many :through associations are
read-only. Instead, changes are handled through the join model. So,
let''s ameliorate this shortcoming
class Reader
def magazine_ids=(ids)
Reader.transaction do
subscriptions.clear
ids.each do |magazine_id|
subscription.create(:reader_id => id, :magazine_id => _id)
unless magazine_id.blank?
magazines(true) # force a reload
end
end
end
def subscribed_to?(magazine)
subscriptions.any? { |s| s.magazine_id == magazine.id }
end
end
Okay, this way it works. Still, surprisingly, it is more effort than
c...
2020 Jun 09
3
[PATCH v2 0/2] Add openssl engine keys with provider upgrade path
I've architected this in a way that looks future proof at least to the
openssl provider transition. What will happen in openssl 3.0.0 is
that providers become active and will accept keys via URI. The
current file mechanisms will still be available but internally it will
become a file URI. To support the provider interface, openssl will
have to accept keys by URI instead of file and may
2017 Oct 26
3
[RFC 0/2] add engine based keys
Engine keys are private key files which are only understood by openssl
external engines. ?The problem is they can't be loaded with the usual
openssl methods, they have to be loaded via ENGINE_load_private_key().
?Because they're files, they fit well into openssh pub/private file
structure, so they're not very appropriately handled by the pkcs11
interface because it assumes the private
2020 Jan 30
6
[PATCH 1/2] Add support for openssl engine based keys
....
* This call is intended only for use by ssh-add(1) and like applications.
diff --git a/authfd.h b/authfd.h
index c3bf6259a..1dd1070cb 100644
--- a/authfd.h
+++ b/authfd.h
@@ -38,6 +38,9 @@ int ssh_remove_identity(int sock, struct sshkey *key);
int ssh_update_card(int sock, int add, const char *reader_id,
const char *pin, u_int life, u_int confirm);
int ssh_remove_all_identities(int sock, int version);
+int ssh_add_engine_key(int sock, const char *file, const char *engine,
+ const char *pin, u_int lifetime, u_int confirm,
+ u_int maxsign);
int ssh_agent_sign(int sock, const stru...
2006 Nov 15
11
OpenSSH Certkey (PKI)
...degiqpclBHvxXyF:b:f:t:U:D:P:N:C:r:g:R:T:G:M:S:a:W:")) != -1) {
+ "degiqpsclBHvxXyF:b:f:t:U:D:P:N:C:r:g:R:T:G:M:S:a:W:")) != -1) {
switch (opt) {
case 'b':
bits = (u_int32_t)strtonum(optarg, 768, 32768, &errstr);
@@ -1156,6 +1295,9 @@
case 'U':
reader_id = optarg;
break;
+ case 's':
+ sign_host_key = 1;
+ break;
case 'v':
if (log_level == SYSLOG_LEVEL_INFO)
log_level = SYSLOG_LEVEL_DEBUG1;
@@ -1221,6 +1363,8 @@
printf("Can only have one of -p and -c.\n");
usage();
}
+ if (sign_host_key)
+ do_s...
2007 Sep 29
64
[Bug 1371] New: Add PKCS#11 (Smartcards) support into OpenSSH
http://bugzilla.mindrot.org/show_bug.cgi?id=1371
Summary: Add PKCS#11 (Smartcards) support into OpenSSH
Product: Portable OpenSSH
Version: 4.7p1
Platform: All
URL: http://alon.barlev.googlepages.com/openssh-pkcs11
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: