Skip to content

Commit

Permalink
Merge pull request #123 from ouspg/stubs/README#Return-values-edit
Browse files Browse the repository at this point in the history
Edit stubs/README.md
  • Loading branch information
aleksiklasila authored Jul 26, 2016
2 parents dc78bb0 + e87331a commit 7905c8d
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions stubs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,20 @@ The data outputted by the stub should follow the following set of instructions o
<pre>
1.0 print (optional context)
2.0 if [the stub couldn't implement the requested behaviour (e.g. setting CA certificate bundle)] then
print "UNSUPPORTED"
return zero
print "UNSUPPORTED"
return zero
3.0 else if [the stub could connect to the service] then
print "VERIFY SUCCESS"
return zero
print "VERIFY SUCCESS"
return zero
4.0 else if [the stub could not connect to the service] then
print "VERIFY FAILURE"
return zero
4. 1 if [the stub could not connect due to reasons closely related to TLS/SSL (certificate, cipher suites, etc..)] then
print "VERIFY FAILURE"
return zero
4.2 else (the stub could not connect due to reasons unrelated to TLS/SSL (Name resolution, etc..))
goto "fatal error" (5.0, see one line below for more info)
5.0 else ("fatal error occured")
(optional error message)
return value other than zero
(optional error message)
return value other than zero
</pre>
---

Expand Down

0 comments on commit 7905c8d

Please sign in to comment.