Skip to content

Commit

Permalink
Merge pull request #316 from openpeer/issue310-fix
Browse files Browse the repository at this point in the history
Examples 6 and 7 are wrong
  • Loading branch information
Robin Raymond committed Jan 4, 2016
2 parents d41c541 + 2d500e2 commit 3a82ad0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ortc.html
Expand Up @@ -1467,10 +1467,11 @@ <h3>Examples</h3>
var dtlsTransports = [];

// Create the DTLS certificate and parameters
var cert;
var dtlsParameters = new RTCDtlsParameters();
var keygenAlgorithm = { name: "ECDSA", namedCurve: "P-256" };
RTCCertificate.generateCertificate(keygenAlgorithm).then(function(certificate){
var cert = certificate;
cert = certificate;
// Obtain the fingerprint of the created certificate
dtlsParameters.fingerprints[0] = cert.fingerprint;
}, function(){
Expand Down Expand Up @@ -1529,9 +1530,10 @@ <h3>Examples</h3>
};

// Create the DTLS certificate
var cert;
var keygenAlgorithm = { name: "ECDSA", namedCurve: "P-256" };
RTCCertificate.generateCertificate(keygenAlgorithm).then(function(certificate){
var cert = certificate;
cert = certificate;
}, function(){
trace('Certificate could not be created');
});
Expand Down Expand Up @@ -5882,6 +5884,10 @@ <h3>Changes since 20 November 2015</h3>
Added "public" to RTCIceGatherPolicy, as noted in:
<a href="https://github.com/openpeer/ortc/issues/305">Issue 305</a>
</li>
<li>
Fixed problems in Examples 6 and 7, as noted in:
<a href="https://github.com/openpeer/ortc/issues/310">Issue 310</a>
</li>
</ol>
</section>
<section id="since-05-October-2015*">
Expand Down

0 comments on commit 3a82ad0

Please sign in to comment.