HomePhorge

(#2848) Consistent return values from `subject_alt_names` accessors.
2b1ad43a9924Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#2848) Consistent return values from subject_alt_names accessors.

The various implementations of the subject_alt_names accessor on SSL objects
had different return types when the records were not present: nil, or an empty
array.

This unifies them to consistently return an empty array, which makes it easier
to iterate across the code. It also cleans up some logic around handling
policy on those, to make it cleaner and quicker by not duplicating the same
"are there any subjectAltName values?" test across every policy check.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
Nick Lewis <nick@puppetlabs.com>Committed on Oct 21 2011, 7:18 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUd8516d947c4f: (#2848) Consistently use `subject_alt_names` as accessor name.
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU2b1ad43a9924: (#2848) Consistent return values from `subject_alt_names` accessors. (authored by Daniel Pittman <daniel@puppetlabs.com>).Oct 21 2011, 7:18 PM