|
|
@ -265,7 +265,7 @@ func oxPublishPubKey(jid string, client *xmpp.Client, iqc chan xmpp.IQ,
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if iqReply.Type != "result" {
|
|
|
|
if iqReply.Type != strResult {
|
|
|
|
return errors.New("error while publishing public key")
|
|
|
|
return errors.New("error while publishing public key")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ownPubKeyRingFromPubsub, err := oxRecvPublicKeys(client, iqc, jid, fingerprint)
|
|
|
|
ownPubKeyRingFromPubsub, err := oxRecvPublicKeys(client, iqc, jid, fingerprint)
|
|
|
@ -313,7 +313,7 @@ func oxPublishPubKey(jid string, client *xmpp.Client, iqc chan xmpp.IQ,
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if iqReply.Type != "result" {
|
|
|
|
if iqReply.Type != strResult {
|
|
|
|
return errors.New("couldn't publish public key list")
|
|
|
|
return errors.New("couldn't publish public key list")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
@ -499,7 +499,7 @@ func oxRecvPublicKeys(client *xmpp.Client, iqc chan xmpp.IQ, recipient string,
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if oxPublicKey.Type != "result" {
|
|
|
|
if oxPublicKey.Type != strResult {
|
|
|
|
return nil, errors.New("error while requesting public key for " +
|
|
|
|
return nil, errors.New("error while requesting public key for " +
|
|
|
|
recipient)
|
|
|
|
recipient)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -574,7 +574,7 @@ func oxGetPublicKeyRing(client *xmpp.Client, iqc chan xmpp.IQ,
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if oxPublicKeyList.Type != "result" {
|
|
|
|
if oxPublicKeyList.Type != strResult {
|
|
|
|
return nil, errors.New("error while requesting public openpgp keys for " +
|
|
|
|
return nil, errors.New("error while requesting public openpgp keys for " +
|
|
|
|
recipient)
|
|
|
|
recipient)
|
|
|
|
}
|
|
|
|
}
|
|
|
|