HomePhorge

(#2848) Consistent return values from `subject_alt_names` accessors.
5f2a44d78a64Unpublished

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 22 2011, 12:51 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU5e507f20fbfa: (#2848) Consistently use `subject_alt_names` as accessor name.
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU5f2a44d78a64: (#2848) Consistent return values from `subject_alt_names` accessors. (authored by Daniel Pittman <daniel@puppetlabs.com>).Oct 22 2011, 12:51 AM